No example for how to use 0.9 Store() constructor

Documentation shows:
/// Create a new store.
/// - Parameter model: A model description generated using ObjectBox.modelBuilder
/// - Parameter directory: The path to thedirectory in which ObjectBox is to save the files related to the database.
/// - Parameter maxDbSizeInKByte: Maximum size the database may take up on disk.
/// - Parameter fileMode: The unix permissions (like 0o755) to use for creating the database files.
/// - Parameter maxReaders: How many threads may be reading at the same time at once.
but no examples of how to use ObjectBox.modelBuilder

The code generator will generate that code for you, so you should generally not need to use the model builder, or that Store constructor.
That said, there should be Swift documentation comments in the EntityBuilder and ModelBuilder headers, if you're curious.

Sorry, but there is only one constructor and it doesn't give to init store without all params!

How are you installing ObjectBox in your project? Did you use the setup.rb script? That should install a shell script build phase in your project that will call upon our code generator to generate the init method for you.
You find the init method in the generated/EntityInfo-PROJECTNAME.generated.swift file that the code generator produces. The method signature looks like this:
convenience init(directoryPath: String, maxDbSizeInKByte: UInt64 = 1024 * 1024, fileMode: UInt32 = 0o755, maxReaders: UInt32 = 0) throws {

How did you set up your project?

The error above looks like the code generator is not being run, or the generated/EntityInfo-PROJECTNAME.generated.swift file hasn't been added to your target.

In case you had issues using the setup.rb script, the 1.0 release has fixed a few issues in that area if you're not using CocoaPods. Let me know if you encounter any issues.


Server returns 'test value firstName' and lots of other issues. Is the Cosync service still being maintained?

Hi Richard Krueger, I just tried the sample React native app. I really like theCosync  service as it was easy to get started and would like to use it for my app. I found Cosync through one of your articles on Medium.
But there are quite a few issues with the app and the service, therefore first of all:
Is the Cosync service still being maintained? Will the service still be available in 12 months?
One reason I ask, is because the certificate of the https://cosync.io domain is expired. Also the React Native package https://www.npmjs.com/package/cosync-jwt-react-native only gets about one download per week, showing very slow adoption. Another reason is, because the change-log 'blog' has not been updated for about 10 months.
I will bring up just this issue now which I had with the demo app:  The global.userData.data which is metaData presumably returned from the server all shows test value ... instead of the name:
global.userData.data
{"status":"active","createdAt":"2021-07-30T07:21:39.000Z","updatedAt":"2021-07-30T07:21:39.000Z",
<EMAIL_ADDRESS>"twoFactorPhoneVerification":false,"twoFactorGoogleVerification":false,
"appId":"143b39f20f3643019ee60bf5b353cc6a",

"metaData":{"user_data":{"name":{"first":"test value firstName","last":"test value lastName"},"email":"test value email"}},

"lastLogin":"2021-07-30T07:21:54.000Z"}

from the console log

Yes the Cosync service is still being maintained. We got sidetracked this last month working on a self-hosted version of the CosyncJWT service. This new service will allow you to run a CosyncJWT authentication server on your own host and administer it through the Cosync Portal. We fixed the certificate issue with https://cosync.io - turned out that the associated credit card for the certification renewal had expired. I will look into the metadata issue that you brought up.
Richard Krueger


JSON Patch for Array Elements

Hi Team,
We are using nlohmann in our project.  I have a query (as I am not aware about if this is actually a bug) on adding an array element.
1> Does the indexing is required ?
2> Should the value be in [ ]
What is the issue you have?
As per RFC 6902, we see the below information -
An example target JSON document:
   { "foo": [ "bar", "baz" ] }

A JSON Patch document:
   [
     { "op": "add", "path": "/foo/1", "value": "qux" }
   ]

The resulting JSON document:
   { "foo": [ "bar", "qux", "baz" ] }

But when we see example for json patch, we see below -
 { "op": "add", "path": "/hello", "value": ["world"] },

--> Don't see any index mentioned and the value is put inside [ ]

We have an array element with 4 values. But when we add the third element, we are observing the below error -
Failed to parse message: [json.exception.out_of_range.401] array index 2 is out of range, exception id:"}
The below statement is throwing the above error -
json json_patched_doc = bsc_json.patch(config_patch_as_json);

Please describe the steps to reproduce the issue.

Can you provide a small but working code example?
In our setup, we are receiving the request from GUI as below -
{
 "op":"add",
 "path":"/supported-param/1",
  "value":"ONE"
}

But if the request comes as below, we see error -
{
 "op":"add",
 "path":"/supported-param/2",
  "value":"TWO"
}

Failed to parse message: [json.exception.out_of_range.401] array index 2 is out of range, exception id:"}

What is the expected behavior?

And what is the actual behavior instead?

Which compiler and operating system are you using?
CentOS 7.6

Compiler: ___GCC 4.8.5 20150623
Operating system: ___ CENTOS7.6

Which version of the library did you use?
version 3.9.1

[ ] latest release version 3.10.2
[x] other release - please state the version: ___ 3.9.1
[ ] the develop branch

If you experience a compilation error: can you compile and run the unit tests?

[x] yes
[ ] no - please copy/paste the error message below

I would need to understand your examples better. This is what I tried:
#include <iostream>

#include "json.hpp"

using json = nlohmann::json;

int main()
{
    json target1 = R"({ "foo": [ "bar", "baz" ] })"_json;
    json patch1 = R"([ { "op": "add", "path": "/foo/1", "value": "qux" } ])"_json;
    json patch2 = R"([ { "op": "add", "path": "/hello", "value": ["world"] } ])"_json;

    std::cout << target1.patch(patch1) << std::endl;
    std::cout << target1.patch(patch2) << std::endl;

    json target2 = R"( {"supported-param": ["one", "two", "three", "four"]} )"_json;
    json patch3 = R"([ { "op":"add", "path":"/supported-param/1", "value":"ONE" } ])"_json;
    json patch4 = R"([ { "op":"add", "path":"/supported-param/2", "value":"TWO" } ])"_json;

    std::cout << target2.patch(patch3) << std::endl;
    std::cout << target2.patch(patch4) << std::endl;
}

Output:
{"foo":["bar","qux","baz"]}
{"foo":["bar","baz"],"hello":["world"]}
{"supported-param":["one","ONE","two","three","four"]}
{"supported-param":["one","two","TWO","three","four"]}

@nlohmann
Thanks for your quick response.
Please find the code snippet that is being validated -
myjson.json
{
"myPath": {
"myParam": [
"FOUR",
"FIVE"
]
}
}
readPatch( )
{
std::string input = "{"op":"add","path":"/myPath/myParam","value":"ONE"}";
json bsc_json;
/* This is reading from a file (myjson.json) */
readFullJson(bsc_json);

const auto patch_as_json = json::parse(input);

json json_patched_doc = bsc_json.patch(patch_as_json);

for (auto& el : config_patch_as_json.items())
{
    	 std::cout << "------------" << std::endl;
      	 std::cout << "key: " << el.key() << ", op:" << el.value()["op"] << std::endl;
    	 std::cout << "key: " << el.key() << ", path:" << el.value()["path"] << std::endl;
  	  	 std::cout << "key: " << el.key() << ", value:" << el.value()["value"] << std::endl;
}

}
My query was,
1> Should nlohmann library expects the value in [ ] ?
2> Does nlohmann library doesn't need any index in the path ?

I still do not understand your exact problem. I would need a concrete code example and a description where the behavior of the library deviates from your expectations.
As for your questions: The library implements JSON Patch as specified in RFC 6902. For value, any JSON value can be added. The RFC describes the way the path is treated for add operations, see https://datatracker.ietf.org/doc/html/rfc6902#section-4.1.

@nlohmann
Please find the full compiled code -
#include
#include
#include <nlohmann/json.hpp>
#include
using json = nlohmann::json;
#define JSON_FILE_PATH "myJson.json"
json bsc_json;
bool readFullJson()
{
std::ifstream file;
file.open(JSON_FILE_PATH);
if(!file)
{
    //file does not exists
    std::cout << "File not present  "<< CONFIG_FILE_PATH << std::endl;
    return false;
}

auto result = false;

bsc_json = nlohmann::json::parse(file);

std::cout << " ------->> " << bsc_json.dump(4) << std::endl;

return true;

}
void replaceAll(std::string& str, const std::string& from, const std::string& to)
{
if (from.empty())
return;
size_t start_pos = 0;

while ((start_pos = str.find(from, start_pos)) != std::string::npos) {
    str.replace(start_pos, from.length(), to);
    start_pos += to.length(); // In case 'to' contains 'from', like replacing 'x' with 'yx'
}

}
void applyPatch(std::string input)
{
const auto patch_as_json = json::parse(input);
const auto patch_input_as_json = patch_as_json["patch"];
std::cout << " ------->> " << patch_input_as_json.dump(4) << std::endl;

const auto patch_input_as_string = patch_input_as_json.dump();
std::string patch_input_as_string_after_trimming = patch_input_as_string;
if(patch_input_as_string.at(0) == '\"')
{
   patch_input_as_string_after_trimming = patch_input_as_string.substr(1, patch_input_as_string.size() - 2);
}
replaceAll(patch_input_as_string_after_trimming, "\\\"", "\"");
const auto patch_input_as_valid_json_string = patch_input_as_string_after_trimming;
const auto patch_json = json::parse(patch_input_as_valid_json_string);

json json_patched_doc = bsc_json.patch(patch_json);

std::cout << " ------->> " << json_patched_doc.dump(4) << std::endl;

}
int main()
{
std::string input = "{"patch": [{"op":"add","path":"/myPath/myParam/2","value":"ONE"}]\n}";
if( true != readFullJson())
    return -1;

applyPatch(input);

return 0;

}
Output:
------->> {
"myPath": {
"myParam": [
"FOUR",
"FIVE"
]
}
}
------->> [
{
"op": "add",
"path": "/myPath/myParam/2",
"value": "ONE"
}
]
------->> {
"myPath": {
"myParam": [
"FOUR",
"FIVE",
"ONE"
]
}
}
My query here is :
In path, if I don't give the index, it will not work.
std::string input = "{"patch": [{"op":"add","path":"/myPath/myParam","value":"ONE"}]\n}";
------->> {
"myPath": {
"myParam": [
"FOUR",
"FIVE"
]
}
}
------->> [
{
"op": "add",
"path": "/myPath/myParam",
"value": "ONE"
}
]
------->> {
"myPath": {
"myParam": "ONE"
}
}
But its confirmed that the value can come with (or) without [ ] and this will not matter for adding an element to the array.

Thanks. The behavior looks as expected to me.
From RFC 6902, Sect. 4.2:

The "add" operation performs one of the following functions,
depending upon what the target location references:
o  If the target location specifies an array index, a new value is
inserted into the array at the specified index.
o  If the target location specifies an object member that does not
already exist, a new member is added to the object.
o  If the target location specifies an object member that does exist,
that member's value is replaced.

When you use /myPath/myParam/2 as path, then you are in the first bullet point, and

a new value is inserted into the array at the specified index.

In your case, the value was ["FOUR", "FIVE"], and the index is 2. The RFC further states

The specified index MUST NOT be greater than the
number of elements in the array.  If the "-" character is used to
index the end of the array (see [RFC6901]), this has the effect of
appending the value to the array.

So the value will be appended, resulting in ["FOUR", "FIVE", "ONE"].
The value given in the patch will be used as is - it's type does not matter. You can add array brackets if you want to add an array, but this has nothing to do with the place the value is added.

@nlohmann
thanks for your time and support.


Make LineEdit's minimal size adapt to its icons

Now LineEdit takes its icons into account when calculating its minimal size.

Thanks!


[Feat] On map i can show route to the hospital from your location.

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I can use leaflet library and show user route to the nearest hospital from its location.
In emergency condition user can use this map to go to the hospitals.
Additional i need time for it to work on as i know it takes time.
it will look like this
https://github.com/user-attachments/assets/261ce7e1-6b91-4e1c-b94a-de1edf4995e8
if you wanted this kind of feature then we can think about it.
Use Case
Enhance Functionality of showing hospital on maps and maps feature.
Benefits
No response
Priority
High
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

@VinayLodhi1712
yeah that'd be great, can we do this when user books instant opd, we can show him the route to the hospital he/she was assigned

@VinayLodhi1712 yeah that'd be great, can we do this when user books instant opd, we can show him the route to the hospital he/she was assigned

first let me do this route functionality on map because its just add more functionality to the map page .
then i can work on it because i have to see on things like user has assigned which hospital and then have to show route.
So currently i am thinking on work on route from current location to the different hospitals which are showing on the pages. So if you wanted this so assigned level also in it. Because it also take time.

okay


inference by CURL ?

there is only python, c++ client example
but i wonder if TRTIS supports inference by curl command
I tried a lot but kept failing with invalid argument problem.
what i tried:
CHECK STATUS
r@a:~$ curl localhost:8000/api/status/mnist_savedmodel
id: "inference:0"
version: "0.11.0"
uptime_ns:<PHONE_NUMBER>0191
model_status {
key: "mnist_savedmodel"
value {
config {
name: "mnist_savedmodel"
platform: "tensorflow_savedmodel"
version_policy {
latest {
num_versions: 1
}
}
max_batch_size: 50
input {
name: "inputs"
data_type: TYPE_FP32
dims: 28
dims: 28
}
output {
name: "probabilities"
data_type: TYPE_FP32
dims: 10
}
instance_group {
name: "mnist_savedmodel"
count: 1
gpus: 0
kind: KIND_GPU
}
default_model_filename: "model.savedmodel"
}
version_status {
key: 2
value {
ready_state: MODEL_READY
infer_stats {
key: 0
value {
failed {
count: 113
total_time_ns: 11686947
}
}
}
infer_stats {
key: 1
value {
success {
count: 12
total_time_ns: 341116850
}
failed {
count: 8
total_time_ns: 18810494
}
compute {
count: 12
total_time_ns: 339262819
}
queue {
count: 12
total_time_ns: 321890
}
}
}
model_execution_count: 12
model_inference_count: 12
}
}
}
}
ready_state: SERVER_READY
R E Q U E S T
curl \
-X POST localhost:8000/api/infer/mnist_savedmodel
-H "Content-Type: application/octet-stream"
-H 'NV-InferRequest:batch_size: 1 input { name: "inputs" dims: 28 dims: 28 } output { name: "probabilities" cls { count: 1 } }'
-v
--data-binary<EMAIL_ADDRESS>\
R E S P O N S E

Trying localhost...
Connected to localhost (localhost) port 8000 (#0)

POST /api/infer/mnist_savedmodel HTTP/1.1
Host: localhost:8000
User-Agent: curl/7.47.0
Accept: /
Content-Type: application/octet-stream
NV-InferRequest:batch_size: 1 input { name: "inputs" dims: 28 dims: 28 } output { name: "probabilities" cls { count: 1 } }
Content-Length: 259

upload completely sent off: 259 out of 259 bytes

HTTP/1.1 400 Bad Request
NV-Status: code: INVALID_ARG msg: "unexpected size for input 'inputs', missing expecting 2877 bytes for model 'mnist_savedmodel'" server_id: "inference:0"
Content-Type: application/octet-stream
Date: Thu, 09 May 2019 05:21:28 GMT
Content-Length: 0

Connection #0 to host localhost left intact

T R I A L  AND E R R O R

W/O NV INFERENCE HEADER

NV-Status 	 code: INVALID_ARG msg: "inference request batch-size must be >= 1 for 'mnist_savedmodel'" server_id: "inference:0"

WRONG NV INFERENCE HEADER

NV-Status 	 code: INVALID_ARG msg: "unexpected inference input 'inputdsas' for model 'mnist_savedmodel'" server_id: "inference:0"

W/O IMAGE, WITH NV HEADER

NV-Status 	 code: INTERNAL msg: "unexpected input index 0

W/ IMAGE BINARY

NV-Status 	 code: INVALID_ARG msg: "unexpected size for input 'inputs', missing expecting 3135 bytes for model 'mnist_savedmodel'" server_id: "inference:0"

W/ IMAGE (BINARY)

NV-Status 	 code: INVALID_ARG msg: "unexpected additional input data for model 'mnist_savedmodel'" server_id: "inference:0"

@jazztronomers the image being passed to the mnist model must be 28x28 (Only 1 channel). Are you passing an image of that dimension? If not you might want to preprocess the image prior to this. You can follow the function mentioned here (should). https://github.com/NVIDIA/tensorrt-inference-server/blob/30b8b8f5b6a42d8c3d9a8576e86fae7feb4433d5/src/clients/python/grpc_image_client.py#L143
I hope this helps! Feel free to reach out if you are still facing this issue

As mentioned by @CoderHam, the image will need to be preprocessed as your model is expecting the binary form of a 28x28 FP32 tensor, while the data you uploaded is the image encoded as "png".
Another feature you may be interested in is the ensembling https://github.com/NVIDIA/tensorrt-inference-server/issues/25#issuecomment-491038621 . We provide an example ensemble (combination of preprocessing custom model and resnet50 model) that takes "nearly raw" image and returns the classification result.
"nearly raw" because the example uses STRING data type to hold the image file, and TRTIS requires that the STRING data must be prefixed with the size of the content. You should be able to create your own preprocess model using non-string data type tensor to avoid that.
Anyway, with the ensemble example, you can infer with CURL as following:
# prepend image file size 1005970 in 4 bytes
printf "\x00\x0f\x59\x92" | cat - ./images/mug.jpg > stuff_mug

# send infer request (note that "batch_byte_size" is 1005974)
curl -X POST --data-binary @stuff_mug -H 'Expect:' -H "Content-Type: application/octet-stream" -H "Content-Length: 1005974" -H 'NV-InferRequest:batch_size: 1 input { name: "INPUT" dims: 1 batch_byte_size: 1005974 } output { name: "OUTPUT" cls { count: 1 } }' -H "Accept: */*" localhost:8000/api/infer/preprocess_resnet50_ensemble

And response:
model_name: "preprocess_resnet50_ensemble"
model_version: 1
batch_size: 1
output {
  name: "OUTPUT"
  batch_classes {
    cls {
      idx: 504
      value: 0.723991275
      label: "COFFEE MUG"
    }
  }
}

@CoderHam
--data-binary read file as binary, so i thought i passed the right binary (the image preprocessed) cause it is 28x28 grayscale image, but it seems wrong
and then i tried passing bytes formatted, preprocessed image and finally succeed
here's my full code:
PREPROCESSING PYTHON CODE
from PIL import Image
import numpy as np

def preprocess(img, format, dtype, h, w, scaling):

    sample_img = img.convert('L')

    resized_img = sample_img.resize((w, h), Image.BILINEAR)
    resized = np.array(resized_img)
    resized = resized.astype(dtype)

    return resized

# png img file
img = Image.open('./data/6.png')

# preprocessed img, FP32 formated numpy array
img = preprocess(img, format, "float32", 28, 28, None)

# to bytes
img = img.tofile('6.binaryimage',format='binary')

COMMAND LINE
rubenchu@astronomers:curl \
-X POST localhost:8000/api/infer/mnist_savedmodel
-H "Content-Type: application/octet-stream"
-H 'NV-InferRequest:batch_size: 1 input { name: "inputs" dims: 28 dims: 28 } output { name:     "probabilities" cls { count: 1 } }'
--data-binary<EMAIL_ADDRESS>

model_name: "mnist_savedmodel"
model_version: 2
batch_size: 1
output {
  name: "probabilities"
  batch_classes {
    cls {
  idx: 6
  value: 1
    }
  }
}

@CoderHam @GuanLuo
Thanks a lot !


unexpected token

Describe the bug

basically that
Expected Behaviour
for it do just deobfuscate I guess?
Code
https://raw.githubusercontent.com/BotSolver/krunk/main/game_1_4.js

Logs
no logs, used site.

That script is incomplete, should be like 10x bigger and end with ;}]));

if you got it from the chrome console, try right click -> save... copying sometimes cuts it off iirc


Module update

Hi, first of all, thanks for the module and for the great idea.
I've cleared some unused deps and updated the rest of them and all the code.
Also switched to jest instead of mocha which has some features included in the core such code coverage.
I've cleaned up a little bit the project and updated the readme file. enabled travis check for node LTS version 6 and coveralls reports.
Also the first time I tried it wasn't working, I fixed it by using os.EOL variable to split the dictionary files, like this shouldn't bug anymore in any device.
Let me know if you are interested to merge my PR otherwise I will create another module since i'm using this functionality in one of my projects.

Sorry for the frequent commits, I'm using snyk globally and authenticated and I didn't realize without the authorization (like in the travis server for example) will not work.
Now with nsp is pretty much doing the same and it's working.

@b4dnewz Thanks for the great work. This project has been not so active for some time and haven't got the time to look into things.

@b4dnewz Updated the NPM package too. Its 1.3.0.
Let know if you want to be added as a contributor to this project. I'd love to add.

Hi @skepticfx, thanks for been so quick to answer!

This project has been not so active for some time and haven't got the time to look into things.

Did you found other projects or simply you hadn't enough time to dedicate to it?

Let know if you want to be added as a collaborator to this project

Yes, I would like, thank you!
By the way I'm using your package in a project called domain-scanner which scans a domain for various things and from yesterday, subdomains too.. so I will actively both of them in my spare time.

Cool! 👍 Added you as a collaborator.


Change Emoji position

If the user selected a subtitle block a small emoji appears on the right side of the subtitle line.

While clicking on the emoji the user opens a new window where a emoji can be selected for the corresponding subtitle.

@LauraEhlis Yes, I like to bring this closer to the editing action. We may want to make it configurable if this is displayed or not. Emojis may not be used in every scenario/by every user.

The following recording shows the current problem this issue tries to resolve.


Edit test commands to run on windows

The changes allow the test commands to run on windows (my laptop with win11 anyway). Got the solution from here in case you prefer a different method, but this seemed the best with no extra packages. Please can you check on mac.
https://stackoverflow.com/questions/53948521/node-options-is-not-recognized-as-an-internal-or-external-command

This works on mac as well, perfect!


Only populate prelude for crate-level DefMaps

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8281
bors r+

changelog fix

This brought down the memory usage on analysis-stats/self from 1060 to 1017 MB.

oh wow, name resolution data is still pretty large


fix bug where the assembly tries to load None

Hey @mkunz7, you correctly found my mistake—thanks for the PR! I noticed this issue separately and fixed in 43f545a, and only saw this PR afterward. I'll still merge your change to credit you with finding the issue and providing a fix before I did.


[MPLUGIN-439] Support custom phases in Execute annotation

Add Unit test for JavaAnnotationsMojoDescriptorExtractor

@kwin do you plan to create a similar PR for api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Execute.java ?

@gnodet Done in https://github.com/apache/maven/pull/865.


eval run cmd in local environment

Current Behavior
We only run the complete-flow evaluation in controller.
Proposed Behavior
When we run swcli eval run --local，cli will use local swmp and swds  to run complete-flow evaluation. The feature make a great help for debug.

[ ] Use docker to reproduce eval flow.
[ ] Do not depend on minio.

Design:

cmd schema

swcli eval run [--local/--remote] --model xx  --dataset xx --dataset yy [--project xx] [--baseimage xx] [--resource gpu:1]  [--name xx] [--description xx]


Is there a point to the params?

Given:
function requestLogin(creds) {
  return {
    type: LOGIN_REQUEST,
    isFetching: true,
    isAuthenticated: false,
    creds
  }
}

and:
case LOGIN_REQUEST:
      return Object.assign({}, state, {
        isFetching: true,
        isAuthenticated: false,
        creds: action.creds
      })

Isn't it simpler to just have the action defined as:
function requestLogin(creds) {
  return {
    type: LOGIN_REQUEST,
    creds
  }
}

Since the isFetching and isAuthenticated params on the action are ignored? This had me wondering what the point was and why all the duplication. The other option is to do:
case LOGIN_REQUEST:
      return Object.assign({}, state, action)

...and just treat the action params as new state (except that would put the "type" property into state). But, the way it is in the repo is confusing. This goes for all of the actions, this was just a simple example. It'll help simplify the code to remove code that is ignored.

Another options is to just have a LOGIN_ACTION (or something) action (and get rid of all the rest), which just takes the params from the action and puts them in app state. Then just have the actions define the isAuthenticated value, etc. This would remove 3/4 of the case statements and only have one const needed for all login actions. I don't see any gains from all of the extra code and frankly, when I first looked at this as an example of redux it made me think I'd traveled back in time with how tedious it is to do very simple tasks and if it takes all of that just for login, my apps would be huge to extrapolate that pattern for everything they do.
Just do this for the reducer.
const { type, ...rest } = action;
switch (type) {
    case LOGIN_ACTION:
      return Object.assign({}, state, rest)
    default:
      return state
  }

Then have functions like this where the params are actually read:
export function receiveLogin(user) {
  return {
    type: LOGIN_ACTION,
    isAuthenticated:true,
    isFetching: false,
    user
  }
}

export function logout() {
  return {
    type: LOGIN_ACTION,
    isAuthenticated:false,
    isFetching:false,
    user:null
  }
}

I don't see the use for the way it's done in this repo other than making more work for devs. I still feel like the React ecosystem has a long way to go with some of this to make it quick and terse to set up complex interactions let alone simple ones like this.


Can torchmeta supports meta-curvature?

Torchmeta does not have utilities for Meta-Curvature at the moment unfortunately. But someone was doing an implementation of Meta-Curvature in Torchmeta here: https://github.com/tristandeleu/pytorch-meta/issues/77

Torchmeta does not have utilities for Meta-Curvature at the moment unfortunately. But someone was doing an implementation of Meta-Curvature in Torchmeta here: https://github.com/tristandeleu/pytorch-meta/issues/77

Thanks a lot.

Thanks a lot.


Fix: developer environment.

Had to struggle a bit with the dev env.
Added working bin/setup that uses copy_env to get settings from Staging, otherwise things like rake db:setup fail.
Moved developer instructions to DEV.md to avoid polluting README.
Added links to staging and production.
Removed basic auth from development version.

In the interest of consistency, consider building on the "common" setup provided by Potential (doc, script). An example of a project-specific setup script that builds on that is Gravity's.

I copied this from Bearden, maybe this is something that @orta can add to his TODO list to standardize?

🙏 thanks!


The question about the date attribute in post articles

When I create a markdown file in the '_posts' directory, I write the front matter in the file. But when the date I write is fast the time in the default timezone, the file will not be show on the blog. So I write the timezone attribute in the "_config.yml" file, but it doesn't work. So how to write the date attribute so that the file could be show on the blog everytime ?

Try using the future: true in your _config.yml. Default Jekyll configuration won't publish future dated posts.

Future
Publish posts or collection documents with a future date.
future: true or jekyll serve --future


Add the new FCPE F0 method

I can see from the official so-vits-svc repository that they are implementing a new F0 detection method that is designed for real-time voice conversion. Here are the official links to this method:

Official repository: https://github.com/CNChTu/FCPE
Pretrained model: https://huggingface.co/datasets/ylzz1997/rmvpe_pretrain_model/blob/main/fcpe.pt

It could be a nice addition to the actual RVC project, maybe it could support or replace the current RMVPE which is already good.

This is in the plan. At present, it is found that the anti-noise ability of fcpe is still not ideal. We are adding data to train some better weights for testing.

Alright, that's good news. Keep up the hard work!

Are there any updates?

#1618
It's already implemented.

As I understand it, it has been implemented only for the real-time GUI. Is there a way to use it for regular audio file processing?

In 2024, rmvpe and fcpe which is best f0 predictor for real-time infering?

As I understand it, it has been implemented only for the real-time GUI. Is there a way to use it for regular audio file processing?

I would like to know too.

As I understand it, it has been implemented only for the real-time GUI. Is there a way to use it for regular audio file processing?

https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/pull/1934


Migrate from JCenter to Maven Central for gradle dependencies

JCenter has issued a deprecation notice (https://blog.gradle.org/jcenter-shutdown). It is recommended to move to Maven Central, which Flutter itself is also officially doing.
This PR addresses bug #56 by removing JCenter and adding Maven Central for gradle dependency resolution.

Thanks and sorry, I overlooked 🙏


Split out the root finding from the bag auditor, so we do it pre-verification

Closes https://github.com/wellcometrust/platform/issues/3644

I'm heading out now, but to remind myself for the morning: the problem is that the bag_root_finder payload gets passed through to the bag_auditor, and it's in the wrong format right now.

^^ this works now


Usage in combination with Tailwind CSS Prettier Plugin

Is it possible to run it with the Tailwind CSS Prettier Plugin? I installed it alongside this package and it is not working.
I would expect it to properly sort the classes when both plugins are installed.
<div class="white px-4 sm:px-8 py-2 sm:py-3 bg-sky-700 hover:bg-sky-800">
</div>

@Wulfheart
Unfortunately, the Tailwind CSS Prettier Plugin doesn't support blade, so it might be a bit tricky to integrate with this plugin with Official Tailwind CSS Prettier plugin.
https://github.com/shufo/prettier-plugin-blade/issues/18#issuecomment-1036044040
There is a solution for sorting Tailwind CSS classes that you might use.

https://marketplace.visualstudio.com/items?itemName=heybourn.headwind (VSCode exxtension)
https://github.com/avencera/rustywind (CLI version of headwind)

However, I know there's a demand for integration with the Tailwind CSS Plugin, so I'll look into it!

Maybe you could team up with @ryangjchandler who is currently developing https://github.com/ryangjchandler/prettier-plugin-blade.

Our plugin uses the TW plugin's HTML formatter so it works out of the box.

@Wulfheart
Added Tailwind CSS class sorting feature at https://github.com/shufo/prettier-plugin-blade/releases/tag/v1.1.0
PR:
https://github.com/shufo/prettier-plugin-blade/pull/26#issue-1152960473


bugfix Add @Data to the class parameter,change the version number of Common to 1.0.3

bugfix Add @Data to the class parameter,change the version number of Common to 1.0.3

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Documentation Update: Usage of FeathersVuexFormWrapper and diffOnPatch only with eager option

I use a Model with the FeathersVuexFormWrapper. For patches I also use the Model method diffOnPatch.
diffOnPatch takes the new data and fetches old data from the store to get the difference.
But if the FeathersVuexFormWrapper attribute "eager" is set to true, the clone is first commited and afterwards saved. So the store is updated, before the diffOnPatch is executed and the method can't figure out a difference.
It is solved by setting the attribute "eager" to false. Could you update the documentation?
(sorry for not using the template)
Best regards and thank you for creating this wonderful tool,
Niclas

I've updated the docs.  Thank you!


Request attach UploadedFile param from previous Request

Describe the bug
Discovered the error.  After loading a file, any subsequent request merges the previous request.
Expected behaviour

Request to route put('/image/1') with formData: {"image": file, "id": string}
Another request to post('/another/2') with data: {"view": string}

Actual behaviour

Request to route put('/example/1') — all ok
Another request to post('/another/2') — request data merge "image"

Steps to reproduce
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class MediaController extends Controller
{
  public function storeImage(Request $request)
  {
  if($request->file('image')->isFile())
    \Log::debug('File controller: Request has file', ["keys" => $request->keys(), "file" => $request->file()]);

  //During testing, removed all code from this controller. Only left Log
  }

  public function destroy(int $id, Request $request)
  {
    \Log::debug('Second another controller:', ["keys" => $request->keys(), "dump" => $request->all()]);
  }
}

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AnotherController extends Controller {

  public function test(Request $request)
  {
    \Log::debug('Another controller:', ["keys" => $request->keys(), "dump" => $request->all()]);
  }

}

```php
// ../routes/api.php

Route::put('image', [MediaController::class, 'storeImage'])->middleware('throttle:4,1');
Route::delete('image/{id}', [MediaController::class, 'destroy'])->middleware('throttle:4,1');
Route::post('another/{id}', [AnotherController::class, 'test']);

```js
//These functions are called on click, not one by one

/* ... */
let formData = new FormData()
formData.append('image', file)
formData.append('id', id)

api.call('put', '/image', formData, true) // axios custom function
/* ... */

/* ... */
api.call('post', '/another/1', {view: 'some_view'}, true)
/* ... */

/* ... */
api.call('delete', '/image/3', null, true)
/* ... */

I started the image download. Then I ran the other functions several times. In different browsers. As you can see in the log file below, image was added to the next few requests to other controllers. But after 19 seconds this problem was no longer present. Sometimes this time is longer, sometimes less. I want to note that the storeImage function is empty and only writes to the log file. I was hoping #84 would help me, but no.
[2022-05-05 19:38:25] local.DEBUG: File controller: Request has file {"keys":["id","image"],"file":{"image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony627429a0502e68.45060554eeEPIl"}}}
[2022-05-05 19:38:29] local.DEBUG: Another controller: {"keys":["view","image"],"dump":{"image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony627427b590d531.49483253lfALkE"}}}
[2022-05-05 19:38:33] local.DEBUG: Second another controller: {"keys":["image"],"dump":{"image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony627427b9e289c3.01216694JPpKGg"}}}
[2022-05-05 19:39:44] local.DEBUG: Another controller: {"keys":["view"],"dump":{"view":"technical_halftime"}}

System information

Please, complete the following information:

Key
Value

PHP version
PHP 8.1.5 (cli) (built: Apr 18 2022 23:48:54) (NTS)

Current package version
"spiral/roadrunner-laravel": "^5.9"

RoadRunner version
FROM spiralscout/roadrunner:2.8.8

Environment
Docker version 20.10.14, build a224086

Laravel
8.83.11

RoadRunner configuration file content

rpc:
  listen: tcp://<IP_ADDRESS>:6001

server:
  command: "php ./vendor/bin/rr-worker start --relay-dsn unix:///var/run/rr/rr-relay.sock"
  relay: "unix:///var/run/rr/rr-relay.sock"
  relay_timeout: 60s

http:
  address: <IP_ADDRESS>:8080
  access_logs: true
  max_request_size: 256
  middleware: ["static", "headers", "gzip"]

  uploads:
    dir: "/tmp"
    forbid: [".php", ".exe", ".bat", ".sh"]

  headers:
    response:
      X-Powered-By: "RoadRunner"

  static:
    dir: "/app/public"
    forbid: [".htaccess", ".php"]
    response:
      X-Powered-By: "RoadRunner"

  pool:
    num_workers: 0
    max_jobs: 0
    allocate_timeout: 10s
    destroy_timeout: 10s
    supervisor:
      max_worker_memory: 128
      exec_ttl: 60s
  ssl:
    address: <IP_ADDRESS>:8443
    redirect: false
    cert: /etc/ssl/certs/selfsigned.crt
    key: /etc/ssl/private/selfsigned.key
  http2:
    h2c: false
    max_concurrent_streams: 128
status:
  address: <IP_ADDRESS>:8082
  unavailable_status_code: 503
reload:
  interval: 1s
  patterns: [".php"]
  services:
    http:
      dirs: ["."]
      recursive: true
      ignore: ["vendor"]

Package configuration file content
<?php

use Spiral\RoadRunnerLaravel\Events;
use Spiral\RoadRunnerLaravel\Defaults;
use Spiral\RoadRunnerLaravel\Listeners;
use Spiral\RoadRunner\Environment\Mode;

return [
    'force_https' => (bool) env('APP_FORCE_HTTPS', false),

    'listeners' => [
        Events\BeforeLoopStartedEvent::class => [
            ...Defaults::beforeLoopStarted(),
        ],

        Events\BeforeLoopIterationEvent::class => [
            ...Defaults::beforeLoopIteration(),
        ],

        Events\BeforeRequestHandlingEvent::class => [
            ...Defaults::beforeRequestHandling(),
            Listeners\InjectStatsIntoRequestListener::class,
        ],

        Events\AfterRequestHandlingEvent::class => [
            ...Defaults::afterRequestHandling(),
        ],

        Events\AfterLoopIterationEvent::class => [
            ...Defaults::afterLoopIteration(),
            Listeners\RunGarbageCollectorListener::class, // keep the memory usage low
			\App\Listeners\ClearCachedListener::class,
			Listeners\CleanupUploadedFilesListener::class, // remove temporary files
        ],

        Events\AfterLoopStoppedEvent::class => [
            ...Defaults::afterLoopStopped(),
        ],

        Events\LoopErrorOccurredEvent::class => [
            ...Defaults::loopErrorOccurred(),
            Listeners\SendExceptionToStderrListener::class,
            Listeners\StopWorkerListener::class,
        ],
    ],

    'warm' => [
        ...Defaults::servicesToWarm(),
    ],

    'clear' => [
        ...Defaults::servicesToClear(),
        // 'auth', // is not required for Laravel >= v8.35
    ],

    'reset_providers' => [
        ...Defaults::providersToReset(),
        // Illuminate\Auth\AuthServiceProvider::class,             // is not required for Laravel >= v8.35
        // Illuminate\Pagination\PaginationServiceProvider::class, // is not required for Laravel >= v8.35
    ],

    'workers' => [
        Mode::MODE_HTTP => \Spiral\RoadRunnerLaravel\Worker::class,
        // Mode::MODE_JOBS => ...,
        // Mode::MODE_TEMPORAL => ...,
    ],
];

Additional context
UPD:
Problem not reproduced from Feature tests.
But repoduced by Postman.
In this test, i remove throttle and auth middlewares
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://localhost:8080/api/image',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'PUT',
  CURLOPT_POSTFIELDS => array('image'=> new CURLFILE('/Users/username/Desktop/rest.png')),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://localhost:8080/api/image/1?test=test',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'DELETE',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

[2022-05-05 20:39:22] local.DEBUG: File controller: Request has file {"keys":["image"],"file":{"image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony627435fa4e03f5.66579937FhLMDD"}}}
[2022-05-05 20:39:24] local.DEBUG: Second another controller: {"keys":["test","image"],"dump":{"test":"test","image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony627435fc93dc47.00211737ejGbJo"}}}
[2022-05-05 20:39:30] local.DEBUG: Second another controller: {"keys":["test","image"],"dump":{"test":"test","image":{"Illuminate\\Http\\UploadedFile":"/tmp/symfony62743602c08170.56470976iagnNl"}}}

UPD 2: Trying with empty project
Clone, make install, init, up
tarampampam/laravel-roadrunner-in-docker
// App\Http\Controllers\TestController.php

//....

/**
* Test Request after upload
* @param Request $request
*
* @return JsonResponse
*/
public function afterUpload(Request $request): JsonResponse
{
		if($request->has('data'))
			return new JsonResponse([
										'success' => false,
										'error'   => 'Request has another file data',
										'keys'   => $request->keys(),
									], 400);

		return new JsonResponse([
									'success' => true,
									'keys'   => $request->keys(),
								], 200);
}

//....

// routes/web

//....

Route::post('/after-upload', [\App\Http\Controllers\TestController::class, 'afterUpload'])
		->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]);

//....

And this two Postman requests for import (need change test.webp file to your):

{
	"info": {
		"_postman_id": "0f1dadbd-e5d9-4dd5-a29b-a5041d27aeed",
		"name": "Test Laravel RR File uploading",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Test Image Upload",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "data",
							"type": "file",
							"src": "./test.webp"
						}
					]
				},
				"url": {
					"raw": "http://localhost:8080/test/upload",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"test",
						"upload"
					],
					"query": [
						{
							"key": "image",
							"value": null,
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Test After Upload",
			"request": {
				"method": "POST",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/test/after-upload?test=test",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"test",
						"after-upload"
					],
					"query": [
						{
							"key": "test",
							"value": "test"
						}
					]
				}
			},
			"response": []
		}
	]
}

And.....
Run first POST http://localhost:8080/test/upload
{
    "success": true,
    "content_size": 7944,
    "duration_sec": 0.014369010925292969,
    "memory_bytes": 9312
}

Run second POST http://localhost:8080/test/after-upload
{
    "success": false,
    "error": "Request has another file data",
    "keys": [
        "test",
        "data"
    ]
}

Today try test with empty project. Update Issue -> see UPD 2 block.

Fixed
The problem is on the RR side. It has been resolved in v2.9.3 https://github.com/roadrunner-server/http/pull/25
But:

But in version 2.9.3 there is a problem with the size of the downloaded files, see the link #1115

The problem can be solved in  roadrunner-server/http/pull/26


Don't downgrade package installs when the current package is deleted

Describe the problem/challenge you have
When deleting a package that has the highest version of all available packages, kapp-controller will downgrade the package installs to the n-1 version. This isn't a safe thing to do and may break some software.
Describe the solution you'd like
kapp-controller never downgrades a package automatically

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

whoops, duplicate of #183


Add files via upload

If you like it, please accept my pull request...

congratulations on your hactoberfest contribution. if you like this repo then give it a star. Happy hacking..


ERROR : Audio files & transcripts mismatch

hello Meyer,
i have created all the files what you described in readme file and i created the file exactly by soft links and i ran the command ./run_gmm.sh corpus 001, than data corpus and plp_corpus folders and transcripts in input_corpus have created, here i am getting the error
local/prepare_audio_data.sh: looking for audio data in input_corpus/audio

ERROR: Audio files & transcripts mismatch

i checked the wav in  audio folder in input corpus (corpus_as prefix)  and trasncripts in input corpus, they are same i.e i have 7 wav files and 7 texts of those 7 wav file ids prefix with corpus below is the snipshot of those files
corpus_5030082_20180406174312.wav (in audios folder)
below one is snipshot of transcripts file
corpus_2172253165_20180406172509-0000323-0000405 good afternoon sir
corpus_2172253165_20180406172509-0000496-0000678 hello good evening
corpus_2172253165_20180406172509-0000707-0000824 hello
corpus_2172253165_20180406172509-0000873-0000993
is the format is correct or should do any change?
thanks!!

Transcripts file must contain the the audio file name without extension and transcription
eg:
corpus_5030082_20180406174312 good afternoon sir


treewide: drop hardware-configuration.nix boilerplate

hardware-configuration.nix is still relied upon for hard drive configuration, and it handles variations of hardware (custom configurations, subrevisions).

sounds good

Just for the record, my idea with this was a sanity check: the hardware detection is by no means immune to regressions, it's good to have compare to a known-good state.

@Ericson2314 Perhaps you're right, but:

model name can't cover all customizations that any specific machine might or might not have (e.g. fingerprint sensor, BIOS disabled devices)
we might decide that some other module is better for the hardware at hand (e.g. out-of-tree tp_smapi vs. thinkpad-acpi), or kernel module name might change
hardware configs currently generated by nixos-generate-config are by no means complete: if that were the case, this repo would have no meaning; which means, it's not only perceptible to regressions, but also to missing/buggy hardware detection, i.e. known-good state might not actually be good, and probably isn't, newer nixos-generate-config will probably identify more hardware and have less bugs


Firefox complains about SHA-1

This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.
Firefox 42

Good morning!
Please consider using SHA-256 signed certificates.
Thank you!

@szepeviktor Cc @cdnjs/team-cdnjs

Thank you @PeterDaveHello.

CloudFlare TLS PM here. @terinjokes brought this to my attention.
We're in the process of issuing SHA-256 certificates for all of the several million zones on us (incl. cdnjs.com), and once done, this warning will disappear. We expect this to happen within the next few days.

@prdonahue Thanks

Thank you.
I'm closing this because the next few days is close enough.

Excuse me for reporting this in the wrong place.
https://github.com/cdnjs/cdnjs/issues/4807

Just wanted to let you know that cdnjs.com now has three (3) certificates per our new standard fall back. Modern user agents will get a SHA-256 ECDSA cert or a SHA-256 RSA (if it doesn't have ECC support) while legacy UAs will get SHA-1 RSA.
$ echo | openssl s_client -connect cdnjs.com:443 -tls1_2 -sigalgs ECDSA+SHA256:RSA+SHA256:RSA+SHA1 2>/dev/null | openssl x509 -noout -text | grep "Signature Algorithm" | tail -1
    Signature Algorithm: ecdsa-with-SHA256

$ echo | openssl s_client -connect cdnjs.com:443 -tls1_2 -sigalgs RSA+SHA256:RSA+SHA1 2>/dev/null | openssl x509 -noout -text | grep "Signature Algorithm" | tail -1
    Signature Algorithm: sha256WithRSAEncryption

$ echo | openssl s_client -connect cdnjs.com:443 -tls1_1  2>/dev/null | openssl x509 -noout -text | grep "Signature Algorithm" | tail -1
    Signature Algorithm: sha1WithRSAEncryption

Thank you.

https://dev.ssllabs.com/ssltest/analyze.html?d=cdnjs.com&s=<IP_ADDRESS>&hideResults=on&latest


RHIDP-204 Publish OCI Registry (Nexus) plugin install docs to the CP

@Gerry-Forde I've made a small suggestion below. Additionally, could you please confirm if the Nexus plugin will be in Tech Preview for RHDH 1.1?

@hmanwani-rh Thanks for your review, I've applied the update that you suggested. WRT support levels, I've created a new Jira to confirm support levels and version numbers for dynamic plugins prior to publication of the RHDH 1.1 documentation.

@Gerry-Forde I've made a small suggestion below. Additionally, could you please confirm if the Nexus plugin will be in Tech Preview for RHDH 1.1?

@hmanwani-rh Thanks for your review, I've applied the update that you suggested. WRT support levels, I've created a new Jira to confirm support levels and version numbers for dynamic plugins prior to publication of the RHDH 1.1 documentation.

Thanks. Please feel free to merge this PR.


Parse push not saved in database

I am using windows server 2008 for migrating mongodb and parse server, but my push notifications do not show up in the migrated/parse database and neither do i receive them

Can you provide more details?
Please refer to this issue for an example of a great bug report.

I followed the parse migration guide and parse-server-example on Github but in place of Heroku/AWS, I used my Windows server 2008.
https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App
Also followed the parse push migration guide
https://github.com/ParsePlatform/parse-server/wiki/Push
Here are the steps:
-Installed mongodb on windows 2008 server. Added the connection string to my project on parse.com and migrated the data. Tested push notifications. Worked fine: the pushes were updated in parse db as well as self hosted db, and I received them perfectly.
-installed parse server on windows server 2008. Gave the server url, app id, client id while initializing parse from Android. Everything worked fine.
-made changes to manifest (as described in the link above), and added GCM credentials to index.js as well as to the manifest. That's when the pushes stopped showing up in the database and were not sent.
I still receive the pushes I send from Parse.com but not the ones I send from my code (I use cloud code to filter out channels on which to send notifications. In my case, notifications are triggered when the user posts a comment, and are received by only specified users)

Having the same issue here.

Closing due to lack of activity, please update to latest parse-server version and reopen if the issue persist.
Don't forget to include your current:

node version
npm version
parse-server version
any relevant logs (VERBOSE=1 will enable verbose logging)


DB Query App

Currently db query app supports only mysql and postgresql. Is there a plan to support other databases such as Oracle, SQL Server, Teradata etc.. ?
We are currently on CDH 5.5.1 and Hue 3.10 - I believe this version supports only Mysql and Postgresql

Yes, this is coming http://gethue.com/custom-sql-query-editors/ and will be official in Hue 4 I think

Thank you. Any plan on getting Teradata and SQL Server support in future versions ?

We will promote the JDBC connector in Hue 4, this will which opens up to any database out of the box

https://docs.gethue.com/latest/administrator/configuration/editor/


got error when state no set

README say the state is no required.

Prop
Type
Required

state
object
no

but when i run the example and remove the state, i got this.
Uncaught SyntaxError: Unexpected token u in JSON at position 0

when checked the source, i found this
https://github.com/adambrgmn/react-oauth-flow/blob/f7cb4949a106a1f574eb12dc1bdf4f8b7f71ecb2/src/OauthReceiver/index.js#L64
when state is undefined, boom...

Oh that was a strange bug from my side! As I mentioned in your other issue (#22) I don't have much time at hand right now. But I would welcome a PR from your side if you feel into it.
Otherwise I will probably have more free time in the end of may when I can look in to this.
Have you encountered anything else while trying out this module? Anything that can be worked on or improved?

:tada: This issue has been resolved in version 1.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Using Spyder plugin (Reading a Model)

Hello everyone, after I created a copy of a lifelib project from Spyder’s IPython console using lifelib.create function, and a new folder is created.
in Reading a Model
The project folder I just created doesn't contain a model folder named model, like what they said, and hence I cannot read The model from the model folder into a live IPython session.
please any help

I couldn't reproduce the issue.

What version of lifelib did you use? (Check lifelib.__version__)
Are you using the zip file from the download page or did you install lifelib in your Python environment?
Exactly what command did you write and execute?
Is the project folder empty? Does it have other files?

I just checked the files on https://pypi.org/project/lifelib/ and you're right, these files don't seem to be packaged correctly.
I'll update the files shortly. A similar incidence (#6 ) happened before, not sure what the cause is. Sorry for the inconvenience.

Just put lifelib v0.0.19 on PyPI. pip install lifelib --upgrade will do the job. The WinPython zip will be updated in a few days.

The https://lifelib.io site and also the downloadable have been updated.

I have downloaded the updated file
Thank you very much Mr.Fumitoh
best regards


method UnsubscribeClient's packet add fixedHeader

When calling the OnUnsubscribed method during secondary development, the corresponding processor will be selected based on the type of the packet. However, the lack of packet type in UnsubscribeClient results in the inability to select the appropriate processor successfully.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.876%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5279

Relevant Lines:
5339

💛  - Coveralls


After adding image, no way add more content

Issue Summary
I had an empty paragraph at the end of a post into which I dropped an image file - the image card was created ok but there is no new paragraph underneath and no way to use cursor navigation to get a cursor under the image card to continue writing.
Steps to Reproduce

Use Enter to add a blank paragraph at the bottom of the editor
Drag an image file onto the editor to upload & create an image card
Note that ↓ or → will not get you a cursor to continue writing but instead jump the cursor to the title input.

Edit: I eventually found that if you got a hard-selection on the bottom image card by clicking or using the keyboard cursor navigation then press Enter a new paragraph is added underneath which works but wasn't particularly intuitive.
Technical details:

Ghost Version: https://github.com/TryGhost/Ghost-Admin/commit/d70ea177969e4e940a1acc6af1f3f35a3cd103a4
Browser/OS: Chrome/MacOS

When adding a card with the markdown shortcuts the card isn't added with a following paragraph either.


Tests updated

Codecov Report

Merging #4 into master will increase coverage by 5%.
The diff coverage is n/a.

@@         Coverage Diff          @@
##           master    #4   +/-   ##
====================================
+ Coverage      90%   95%   +5%
====================================
  Files           1     1
  Lines          20    20
  Branches        5     5
====================================
+ Hits           18    19    +1
+ Misses          2     1    -1

Impacted Files
Coverage Δ

src/index.js
95% <0%> (+5%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08c5a14...306d9bd. Read the comment docs.


Add build and push actions

Add build and push at harbor

Argo sync fail

Argo sync fail

Argo sync fail

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url

Update repo fail

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url

deploy success url


Update CriticalFlickNote.mts

Having a separate effect for critical tap and critical flick notes.

Please consolidate all relevant PRs into one, with clear commit messages describing what each commit does (you can use past commits as a reference)
As for the implementation:

This breaks particle compatibility where using particles not made for Sekai engine will no longer work for these notes. Fallback effects must be provided to ensure all particles are still usable.
New particles are only implemented for play mode, missing in other modes such as watch mode.


3588 name canonicalization

@dtarb @martinseul @cuahsimarko
Normalize discovery author and contributor names according to a new set of rules that don't mangle CZO contributor names.

Don't correct capitalizations for names. Leave these alone.
Recognize adjacent capital characters as acronyms and treat as organizations.
Pad adjacent initials, e.g., "A.L." with spaces, to wit; "A. L."

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

@cuahsimarko See the management command hs_core/management/commands/name_norm_test.py to see what it does to the CZO names. You can delete this after you're satisfied.

@alvacouch if you think this is the right approach, I am happy for you to implement.

@sblack-usu:
@cuahsimarko and I use management commands as a form of communication. I'll post a management command to demonstrate how to do something or how something works. Then he can remove it when he's satisfied. We do this all the time, so you'll see more of it. I often write a management command like this one to demonstrate that a problem is solved.

@alvacouch if you think this is the right approach, I am happy for you to implement.

@dtarb The mangling was inadvertent and would affect many non-CZO names adversely. What I did with this PR is to fix not only CZO names, but also mangling of other names in like manner. Thus this is not a CZO customization. The fact that CZO names were mangled is a symptom of a general problem that I think this fixes.

@sblack-usu @cuahsimarko I removed the demo code and converted to tests. There is one issue remaining. Some foreign names are not recognized as names and are not normalized. I do not have a solution for this.  All tests pass. Awaiting Jenkins success.


Version 1.4 breaks on npm run build

I did not get the impression that version 1.4 is a breaking change? If it's not, there may be a bug?
I run npm run build just like always (from your Youtube video). I get this.
npm run build

><EMAIL_ADDRESS>build D:\projects\libraries\doBlog
> postcss assets/css/src/tailwind.css -o assets/css/dist/tailwind.css

D:\projects\libraries\doBlog\node_modules\fs-extra\lib\mkdirs\make-dir.js:86
      } catch {
              ^

SyntaxError: Unexpected token {
    at new Script (vm.js:51:7)
    at createScript (vm.js:138:10)
    at Object.runInThisContext (vm.js:199:10)
    at Module._compile (module.js:624:28)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `postcss assets/css/src/tailwind.css -o assets/css/dist/tailwind.css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\jenst\AppData\Roaming\npm-cache\_logs\2020-04-30T07_33_00_206Z-debug.log

Possible reason
My guess is that the purge option is not optional but required, which breaks when the config file is not changed to support it?

This was probably not related to Tailwind at all. First I updated with npm update. After that it stopped working.
I had Node 9 installed and the current version is 12. That seems to be the cause of this problem.
I found the solution here where they had a similar problem: https://github.com/ColorlibHQ/AdminLTE/issues/2631

This should have worked anyways honestly — we test against Node 8, 10, and 12. There were a few releases where we mistakenly broke Node 8 support (1.3.0 through 1.3.4) but 1.4.0 should definitely be Node 8 compatible. Glad you got it fixed, I suspect another solution would have been to delete node_modules and re-install.

@adamwathan I did a whole lot of things, including deleting node_modules, rolled back to Tailwind 1.3 and so on. I even reverted all settings and styles, but it was still broken. Therefor it was not really related to Tailwind in the first place.
The problem seems to appear when I had the latest version of fs-extra (when I updated all node modules) in combination of an old Node version.


Link to the fpm packages index?

Apologies if I missed it - but I could not see a link to the fpm packages index from this page? As fpm enables the use of packages, and there is a good index available of packages to use with fpm, I thought it would be good to link to it...
Suggested word are just that - so feel free to alter if you agree this link would be useful for others.
Thanks
Simon

Good idea, I think a separate section in the landing page would be best for this (placed after the navigation and before the news?). Maybe we can put an external link in the toctree as well, like it has been done for the FORD generated documentation in the reference:
https://github.com/fortran-lang/fpm-docs/blob/6e282dd56112b74f0cb06f71b7834d1ee2ce416f/pages/spec/index.md#L13-L16
Eventually, would like to get the fpm registry included as part of the docs here rather than the package index: https://github.com/fortran-lang/fpm-docs/issues/23. This way we can actually integrate the registry data with our pages, e.g. like done with https://crates.io/ and similar.


Create more tutorials

[x] : Extracting rules (in 2.3.0)
[x] : Using rules to fill a form (in 2.3.0)
[x] :  value functions : return a random value (in 2.3.0)
[x] : value functions : return a formatted date (in 2.3.0)
[x] : value functions : clicking on things (Libs.h.click; unreleased)
[x] : value functions : submitting forms (unreleased)
[x] : before functions : creating data (in 2.3.0)
[x] : before functions : creating data from XHR (in 2.3.0)
[x] : before functions : asking for input
[x] : before functions : using the context -> .url
[x] : before functions : using the context -> .findHtml()
[x] : before functions : using the context -> .storage.set(), get()
[x] : creating customer libraries (Libs.something)
[x] : Shared rules
[x] : Workflows

and ... done in 2.4.0


Replace torch.lstsq with torch.linalg.lstsq

Fixes #3843
Replace torch.lstsq with torch.linalg.lstsq in perspective transform .
It would be good to fix this before the next release, so that users don't get those warnings.

@datumbox  Sure I would like to work upon this PR .

Awesome, we can fix the tests by updating their expected values. It should be an easy fix. :)

@datumbox  I found something useful regarding this issue
Why is the output of torch.lstsq drastically different than np.linalg.lstsq?
torch.lstq(a, b) solves minX L2∥bX−a∥ while np.linalg.lstsq(a, b) solves minX L2∥aX−b∥
a = torch.tensor([[1., 1, 1],
[2, 3, 4],
[3, 5, 2],
[4, 2, 5],
[5, 4, 3]])
b = torch.tensor([[-10., -3],
[ 12, 14],
[ 14, 12],
[ 16, 16],
[ 18, 16]])
a1 = a.clone().numpy()
b1 = b.clone().numpy()
x, _ = torch.lstsq(a, b)
x1, res, r1, s = np.linalg.lstsq(b1, a1)
print(f'torch_x: {x[:b.shape[1]]}')
print(f'np_x: {x1}')
Results:
torch_x: tensor([[-0.1145, -0.1047, -0.2863],
[ 0.3591,  0.3372,  0.5407]])
np_x: [[-0.11452514 -0.10474861 -0.28631285]
[ 0.35913807  0.33719075  0.54070234]]

Hi @Gaurav7888 , thanks for your work so far!
The current test failures are due to some instability in torch.linalg.lstsq, which actually returns different output across various executions:
import torch
torch.set_printoptions(precision=10)

a = torch.tensor([[    3,     2,     1,     0,     0,     0,     0,     0],
                  [    0,     0,     0,     3,     2,     1,     0,     0],
                  [   32,     3,     1,     0,     0,     0, -1056,   -99],
                  [    0,     0,     0,    32,     3,     1,     0,     0],
                  [   30,    24,     1,     0,     0,     0,  -990,  -792],
                  [    0,     0,     0,    30,    24,     1,  -750,  -600],
                  [    2,    25,     1,     0,     0,     0,     0,     0],
                  [    0,     0,     0,     2,    25,     1,   -50,  -625]]).to(torch.float)
b = torch.tensor([ 0.,  0., 33.,  0., 33., 25.,  0., 25.])
torch.linalg.lstsq(a, b).solution

will sometimes output
tensor([ 1.0224266052e+00,  4.4453188777e-02, -3.1561851501e+00,
        -3.5440485924e-02,  1.0277750492e+00, -1.9492297173e+00,
        -2.9531884938e-03, -1.8849190092e-03])

and sometimes
tensor([ 1.0224264860e+00,  4.4453065842e-02, -3.1561782360e+00,
        -3.5440552980e-02,  1.0277750492e+00, -1.9492284060e+00,
        -2.9531936161e-03, -1.8849160988e-03])

ultimately leading to a big difference in pixel values.
It's a bit surprising since the matrix is well-conditioned:
torch.linalg.cond(a, p=-2), torch.linalg.cond(a, p=2)
(tensor(0.0003948331), tensor(2532.7155761719))

but oh well.
I believe that changing the solver will help here. 'gels' seems to solve the instability and it is the only available driver for CPU and GPU, so let's use it:
torch.linalg.lstsq(a, b, driver='gels').solution

I just pushed a fix, hopefully this will make the CI go green!


Output buffering when using multiCapabilities

Hi,
When using multiCapabilities, the protractor process gets forked and the output of the subprocesses is buffered. The buffer is flushed to terminal only after an error or after the task finishes.
I didn't really like this, as I wanted to monitor the test execution in my test automation in real time, so I hacked my protractor to flush buffers immediately after every output.
Would you consider it a good idea to make something like this into a proper, configurable feature of protractor?
Best regards,
Jan

Hi Jan,
Could you please update your issue to follow the format of the issue template? Also, if you could add more description of how you'd like feature to function (input/output examples would be great). Thanks!

4.1.0 will add the --verboseMultiSessions flag, let me know how that works for you.


Add retry around docker image pulling

After talking to Charlie, agreed we might be getting rate limited on tag pulls, would be good to use the retry_10 utility. Alternative presumably is an upgraded dockerhub plan, but this seems like good either way if we might temporarily hit rate limits but not the 5000 tags per day limit. Alternatively upping the plan may be good.

Done


Broken Build

Markata run broke in my GH Actions this morning
Run markata build --no-pretty
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/bin/markata", line 33, in <module>
    sys.exit(load_entry_point('markata==0.2.0', 'console_scripts', 'markata')())
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/cli/cli.py", line 76, in cli
    m = Markata()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/__init__.py", line 117, in __init__
    self.configure()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/__init__.py", line 102, in wrapper
    result = function(self, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/__init__.py", line 231, in configure
    self._pm.hook.configure(markata=self)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/plugins/setup_logging.py", line 210, in configure
    setup_log(markata, logging.DEBUG)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/plugins/setup_logging.py", line 111, in setup_log
    path = setup_html_log(markata, level)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/plugins/setup_logging.py", line 180, in setup_html_log
    template = Template(template_file.read_text(), undefined=SilentUndefined)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/pathlib.py", line 1236, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/pathlib.py", line 1222, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/pathlib.py", line 1078, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/markata/plugins/default_log_template.html'
Error: Process completed with exit code 1.

Is this me geing a dope?

 I removed @develop in the build and it passed

I am installing the develop branch in CI... should I plan to pin a version to 0.0.2?

For most people this sounds the safest, your site will always build as you expect if you do that.  For someone who can easily roll back, raise an issue, or DM me, If you could build off of latest that would help make sure that these issues are resolved before it hits folks without those debugging skills.
by latest I mean pip install markata right out of pypi, or the  @main branch, they are the same.

 I removed @develop in the build and it passed

I ended up having the same issue on my own build, and had resolved it about the same time you raised the issue ironically enough.  It's a non .py file missing from the manifest.

Sweet, I'll close the issue and plan to only open with issues on main!


BUG: sparse: Clean up 1D input handling to sparse array/matrix and add tests

Fixes #20415
1D input to sparse matrix constructor creates a 2D matrix with one row. This could be thought of as a bug (1D input should not create 2D output) or a feature (1D input saves an extra square bracket pair of typing). But it definitely needs to be changed when moving to a sparse array api that supports 1D sparse arrays.
In addition, the 1D input case is not handled gracefully in 1.13 for csr_array because the CSR 1D support PR did not get in in time.
The 1D input case to 2D output does have a test for sparse matrices, but not for arrays. So new tests are needed as well. The module test_base.py even uses 1D input in 2 places -- this PR changes those to 2D input. The test for the 1D input -> 2D output behavior is left as is. The test for arrays depends on format and in this PR is added to test_common1d.py updated to check arrays as well as matrices that the FutureWarning is in place.
This PR also adds tests to ensure behavior is determined for 1D input for all formats. It improves the ValueError message for the csr_array case to adjust the reported confusing ValueError message (which will become moot when the csr PR is merged).  It adds FutureWarnings for sparse matrix when 1D constructor input occurs in all formats. It adds ValueErrors with better error messages for sparse formats that are not planned to support 1D arrays.
The sparse working group should discuss this on Monday to ensure no other similar cases have been missed.
Precommit linting required some changes which are not directly related to the other content in this PR.

I think the big question to resolve here is: should spmatrix types continue to support construction from 1d dense inputs?

In the April 15 sparse arrays meeting it was pointed out that np.matrix also constructs 2D matrix from 1D input. So we should leave spmatrix behavior as it is. I've updated this PR to only change behavior for sparray. It raises a ValueError when format does not support 1D otherwise it creates a 1D sparse array.
For test_base.py it changes a few tests which use 1D input to use 2D input and leaves the explicit test of 1D input as is for spmatrix. The 1D input for sparray is tested in test_common1d.py
@perimosocordiae can you take another look at this one?

This fixes a complaint about 1.13.0, so I've tentatively added a backport label. Whether it actually gets backported depends on the situation with merge conflicts, since sparse has been fairly active.


Multiple Unreal Engines In Library on setup

Describe the bug
i just installed this app after tried a lot of times to install unreal engine some other ways
for some reason i already have some unreal engines in my library
you can look at the image

Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: fedora 41
Version 3.8.6

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Does not need to be in the directory in settings... But needs to be launched at least once on the system.

It's just different versions of UE for Windows and Mac. Do you want an option to hide these, or what is the issue exactly?
Also to download UE just head to unrealengine.com/en-US/linux and press download on the version you need. Then you should be able to launch it from epic asset manager, in the "Engines" tab (if it is inside a directory specified in the settings).

hi there, yes i would like to hide it or find the path of these multiple installation or what causing this specific number of unreals and delete it (better than just hiding)

Hi, I think there might be some misunderstanding going on. These engines are not installed, they are just a part of your library, just like any other asset/game/dlc/etc on your account.

As @PhilippKosarev  said. the philosophy behind EAM is to offer everything that is available on the Epic Games Store API to download, including all the various versions of their Engine builds.
That is also why there is the big red warning in the details mentioning that this is the Windows build with a link to the Engines tab where you can see/manage your local installs of the Engine.


True Color in Terminal.app

https://github.com/frenchja/dotfiles/blob/master/vim/.vimrc#L55-L57
:help termguicolors suggests reading xterm-true-color instead.
Behavior
Breaks gruvbox in Terminal.app without tmux.  Both iTerm2 and tmux seem to support the True Color setting.

https://gist.github.com/XVilka/8346728 indicates that Terminal.app doesn't support true color.  Does tmux simply allow gruvbox to degrade gracefully, then?


Getting error when installing via yarn

$ yarn add -g sync-yarnlock-into-packagejson
yarn add v1.3.2
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Hi, I have solved this issuse by changing the name of the package to
syncyarnlock
please try
yarn add global syncyarnlock
reopen the issuse if there is another problem
best of luck!


perf: reduce query selector

Description
Reduces use of unnecessary querySelector use.
Additional context
It is faster to read DOM once.

What is the purpose of this pull request?

[ ] Bug fix
[x] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.

Related, though I didn't want to add it to this PR, why is this being awaited in the first place?
I didn't try this, but it should be just:
-  return Promise.all(
-    deps.map((dep) => {
-      // @ts-ignore
-      dep = assetsURL(dep, importerUrl)
-      // @ts-ignore
-      if (dep in seen) return
-      // @ts-ignore
-      seen[dep] = true
-      const isCss = dep.endsWith('.css')
-      // @ts-ignore check if the file is already preloaded by SSR markup
-      if (documentLinkUrls.includes(dep)) {
-        return
-      }
-      // @ts-ignore
-      const link = document.createElement('link')
-      // @ts-ignore
-      link.rel = isCss ? 'stylesheet' : scriptRel
-      if (!isCss) {
-        link.as = 'script'
-        link.crossOrigin = ''
-      }
-      link.href = dep
-      // @ts-ignore
-      document.head.appendChild(link)
-      if (isCss) {
-        return new Promise((res, rej) => {
-          link.addEventListener('load', res)
-          link.addEventListener('error', () =>
-            rej(new Error(`Unable to preload CSS for ${dep}`))
-          )
-        })
-      }
-    })
-  ).then(() => baseModule())
+  for (const dep of deps) {
+    // @ts-ignore
+    dep = assetsURL(dep, importerUrl)
+    // @ts-ignore
+    if (dep in seen) return
+    // @ts-ignore
+    seen[dep] = true
+    const isCss = dep.endsWith('.css')
+    // @ts-ignore check if the file is already preloaded by SSR markup
+    if (documentLinkUrls.includes(dep)) {
+      return
+    }
+    // @ts-ignore
+    const link = document.createElement('link')
+    // @ts-ignore
+    link.rel = isCss ? 'stylesheet' : scriptRel
+    if (!isCss) {
+      link.as = 'script'
+      link.crossOrigin = ''
+    }
+    link.href = dep
+    // @ts-ignore
+    document.head.appendChild(link)
+  }
+
+  return baseModule();

Waiting for scripts to be actually loaded is not needed for any logic that follows, as far as I can tell.

Please re-run tests. It looks like it is a CI/CD failure.

@1yyx990803 @patak-dev can someone re-run tests?

@gajus A couple notes about your proposed code below:

for (const dep of deps) {
  // @ts-ignore
  dep = assetsURL(dep, importerUrl)
  // @ts-ignore
  if (dep in seen) return
  // @ts-ignore
  seen[dep] = true
  const isCss = dep.endsWith('.css')
  // @ts-ignore check if the file is already preloaded by SSR markup
  if (documentLinkUrls.includes(dep)) {
    return
  }
  // @ts-ignore
  const link = document.createElement('link')
  // @ts-ignore
  link.rel = isCss ? 'stylesheet' : scriptRel
  if (!isCss) {
    link.as = 'script'
    link.crossOrigin = ''
  }
  link.href = dep
  // @ts-ignore
  document.head.appendChild(link)
}

return baseModule();

Only the first @ts-ignore is needed to silence the error for assetsURL, which is dynamically generated.
const dep of deps should be let dep of deps, since dep is re-assigned.

@gajus A couple notes about your proposed code below:

for (const dep of deps) {
  // @ts-ignore
  dep = assetsURL(dep, importerUrl)
  // @ts-ignore
  if (dep in seen) return
  // @ts-ignore
  seen[dep] = true
  const isCss = dep.endsWith('.css')
  // @ts-ignore check if the file is already preloaded by SSR markup
  if (documentLinkUrls.includes(dep)) {
    return
  }
  // @ts-ignore
  const link = document.createElement('link')
  // @ts-ignore
  link.rel = isCss ? 'stylesheet' : scriptRel
  if (!isCss) {
    link.as = 'script'
    link.crossOrigin = ''
  }
  link.href = dep
  // @ts-ignore
  document.head.appendChild(link)
}

return baseModule();

Only the first @ts-ignore is needed to silence the error for assetsURL, which is dynamically generated.
const dep of deps should be let dep of deps, since dep is re-assigned.

None of the code that you reference is added by this PR.

Yeah, I'm aware 😄  Otherwise, I would've noted it in the PR. I was merely commenting.

Related, though I didn't want to add it to this PR, why is this being awaited in the first place?

It's likely to prevent FOUC if the preload links aren't properly loaded yet, and also to prevent runtime race conditions between preload deps and base module.

Closing as this PR brings in breaking changes.


🐛 [dynamic-links] sendSignInLinkToEmail dynamic link not being "caught"

Bug report
Describe the bug
I am using sendSignInLinkToEmail to generate an email for the user to signin with.
I receive the email link and try to "activate" it, either by using the mobile app and using the emulator.
Unfortunately any time it hits one of the places that the dynamic link should be used, it is a null value.
At the moment I do not know if this is an issue with dynamic-links or with firebase_auth. There are many issues listed for both packages that relate to this same error.
See code example bellow.
Expected behavior
When clicking the dynamic link it should open the app either from shutdown or resume and give the dynamic link.
Sample project
Initial Call:
await FirebaseAuth.instance
        .sendSignInLinkToEmail(
            email: signupModel.email,
            actionCodeSettings: ActionCodeSettings(
                url:
                    "https://APP.page.link/user-registered?email=$signupModel.email",
                handleCodeInApp: true,
                androidPackageName: "com.APP.debug",
                iOSBundleId: "com.APP.debug",
                androidMinimumVersion: "28",
                androidInstallApp: true))
        .catchError((onError) {
          SnackBar(content: Text('Error sending email verification $onError'));
        })
        .whenComplete(() => print("bob"))
        .then((value) => () {
              print("then");
              FirebaseAuth.instance.currentUser?.updateEmail(signupModel.email);
              const SnackBar(
                  content: Text(('Successfully sent email verification')));
            });

main.dart
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);

  // Get any initial links
  final PendingDynamicLinkData? initialLink =
      await FirebaseDynamicLinks.instance.getInitialLink();

  final Uri? deepLink = initialLink?.link;

  debugPrint("Main" + "Url" + deepLink.toString());

  FirebaseDynamicLinks.instance.onLink.listen((dynamicLinkData) {
    final Uri? deepLink = dynamicLinkData.link;

    print("Main Url: " + deepLink.toString());
  }).onError((error) {
    print('onLink error');
    print(error.message);
  });

  runApp(const MyApp());
}

AppLifecycleReactor
I have also tried to use an AppLifecycleReactor which checks for the url (https://api.flutter.dev/flutter/widgets/WidgetsBindingObserver-class.html)
didChangeAppLifecycleState
I also tried to use didChangeAppLifecycleState within the page that generates the url but same result.

Additional info
The url generated:
https://APP.page.link/?link=https://app-2b3ca.firebaseapp.com/__/auth/action?apiKey%3DAIzaSyAykcA-lWM3o0MxEHS_YqMxDC16KzGXq2I%26mode%3DsignIn%26oobCode%3Dh5bDEYHGIonYxCoFXsROjm8TyQYoqTSGpaQZXeePSdsAAAF97hobXQ%26continueUrl%3Dhttps://app-2b3ca.firebaseapp.com/user-registered/%26lang%3Den&apn=com.APP.debug
DynamicLink Debug

Dynamic Links page

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[√] Flutter (Channel stable, 2.8.0, on Microsoft Windows [Version 10.0.19043.1415], locale en-150)
    • Flutter version 2.8.0 at C:\Users\chris\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cf44000065 (2 weeks ago), 2021-12-08 14:06:50 -0800
    • Engine revision 40a99c5951
    • Dart version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\chris\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code, 64-bit edition (version 1.63.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.29.0

[√] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 96.0.4664.110
    • Edge (web)                 • edge          • web-javascript • Microsoft Edge 96.0.1054.57

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.15.0
Flutter SDK 2.8.0
date_tonight_mobile 1.0.0+1

dependencies:
- cloud_firestore 3.1.5 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- connectivity 3.0.6 [flutter meta connectivity_platform_interface connectivity_macos connectivity_for_web]
- cupertino_icons 1.0.4
- dio 4.0.4 [http_parser path]
- email_validator 2.0.1
- firebase_auth 3.3.4 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.10.6 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_dynamic_links 4.0.3 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_logs 2.1.4 [flutter]
- flutter_secure_storage 5.0.2 [meta flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows]
- form_field_validator 1.1.0 [flutter intl]
- http 0.13.4 [async http_parser meta path]
- image_picker 0.8.4+4 [flutter flutter_plugin_android_lifecycle image_picker_for_web image_picker_platform_interface]
- intl 0.17.0 [clock path]
- json_annotation 4.4.0 [meta]
- jwt_decode 0.3.1
- path 1.8.0
- path_provider 2.0.8 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- permission_handler 8.3.0 [flutter meta permission_handler_platform_interface]
- sembast 3.1.1+1 [meta path synchronized]
- smooth_page_indicator 1.0.0+2 [flutter]

dev dependencies:
- build_runner 2.1.7 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- json_serializable 6.1.3 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]

transitive dependencies:
- _fe_analyzer_shared 32.0.0 [meta]
- analyzer 3.0.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- args 2.3.0
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.2.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]- build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.3 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.1.3 [built_collection collection fixnum meta]
- characters 1.2.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- cli_util 0.3.5 [meta path]
- clock 1.1.0
- cloud_firestore_platform_interface 5.4.10 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.6.5 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.1.0 [built_collection built_value collection matcher meta]
- collection 1.15.0
- connectivity_for_web 0.4.0+1 [connectivity_platform_interface flutter_web_plugins flutter]
- connectivity_macos 0.2.1+2 [flutter connectivity_platform_interface]
- connectivity_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- convert 3.0.1 [typed_data]
- cross_file 0.3.2 [flutter js meta]
- crypto 3.0.1 [collection typed_data]
- dart_style 2.2.1 [analyzer args path pub_semver source_span]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_auth_platform_interface 6.1.9 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.5 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.2.3 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.5.3 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_dynamic_links_platform_interface 0.2.0+3 [firebase_core flutter meta plugin_platform_interface]
- fixnum 1.0.0
- flutter_plugin_android_lifecycle 2.0.5 [flutter]
- flutter_secure_storage_linux 1.1.0 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_macos 1.1.0 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_platform_interface 1.0.0 [flutter plugin_platform_interface]
- flutter_secure_storage_web 1.0.2 [flutter flutter_web_plugins flutter_secure_storage_platform_interface js]
- flutter_secure_storage_windows 1.1.2 [flutter flutter_secure_storage_platform_interface]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- frontend_server_client 2.1.2 [async path]
- glob 2.0.2 [async collection file path string_scanner]
- graphs 2.1.0 [collection]
- http_multi_server 3.0.1 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image_picker_for_web 2.1.4 [flutter flutter_web_plugins image_picker_platform_interface meta]
- image_picker_platform_interface 2.4.1 [flutter http meta plugin_platform_interface cross_file]
- io 1.0.3 [meta path string_scanner]
- js 0.6.3
- lints 1.0.1
- logging 1.0.2
- matcher 0.12.11 [stack_trace]
- meta 1.7.0
- mime 1.0.1
- package_config 2.0.2 [path]
- path_provider_android 2.0.11 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.7 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.4 [ffi flutter meta path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.4 [flutter meta path_provider_platform_interface]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.4 [ffi flutter meta path path_provider_platform_interface win32]
- permission_handler_platform_interface 3.7.0 [flutter meta plugin_platform_interface]
- platform 3.1.0
- plugin_platform_interface 2.0.2 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.0 [collection meta]
- pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
- shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_gen 1.2.1 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.1 [analyzer collection source_gen]
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- synchronized 3.0.0
- term_glyph 1.2.0
- test_api 0.4.3 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timing 1.0.0 [json_annotation]
- typed_data 1.3.0 [collection]
- vector_math 2.1.1
- watcher 1.0.1 [async path]
- web_socket_channel 2.1.0 [async crypto stream_channel]
- win32 2.3.3 [ffi]
- xdg_directories 0.2.0 [meta path process]
- yaml 3.1.0 [collection source_span string_scanner]

@czioutas
Thanks for the report. Does getInitialLink() show any data or is null and whether onLink() is getting called when you try to hit the link ?

Hey @darshankawar
Whenever I would debug on getInitialLink it was null and onLink() listener was never hit.
I had even made this appstate management cycle around the app to try and hit it onLink but it never it.
What I thought afterwards was, that maybe firebase package someone intercepts it and it consumes the onLink before it ever hits my listener   await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
I decided to remove the onlink etc and just try to catch the reference url on my own so I rolled out to use an onGenerateRoute from the materiappl like bellow. Also somehow now the link generated has changed and added an afl parameter but I cannot find what I have changed in the codebase :/
New Link:
https://app.page.link/?link=https://date-2b3ca.firebaseapp.com/__/auth/action?apiKey%3DAIzaSyAykcA-lWM3o0MxEHS_YqMxDC16KzGXq2I%26mode%3DsignIn%26oobCode%3DOaww8b7LS8ZRXTUrorBglKRMXDE5mJuoQpKWV8jIUWMAAAF-AhllxA%26continueUrl%3Dhttps://app.com/signup?email%253Dz.chris.92<EMAIL_ADDRESS>
And this is how I try to catch it now, which works but it does way too many redirects on the browser so I think there must be something wrong.
In addition, this approach now doesnt work on a mobile and only on the emulator. On mobile I get on the web browser "ERR CONNECTION BLOCKED" when it navigates to https://app.com
      onGenerateRoute: (settings) {
        Uri url = Uri.parse(settings?.name ?? "");
        var path = url.path;

        if (path == "/signup") {
          return MaterialPageRoute(
              builder: (context) => Scaffold(
                    body: SignUpVerifyScreen(link: url),
                  ));
        }
      },

Me and a friend have been looking everywhere to find a proper solution and even made a separate app to test it but cant seem to be able to work on this. I am posting my pubspec again just in case.
 In order to rule out dart-only initialization issue as I see you seem to have used it, is there a way for you to go back to previous Firebase initialization and check if you still get same behavior with it too ?

await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);

Sorry for the late reply. @darshankawar as this is the first time using it, we are not aware of any version that works properly so going back to a "version" would be quite needle in the haystack :/

/cc @russellwheatley for further input on this case.

Hey @czioutas, I'm going to assume you're using an android emulator. The first thing to do would be to lower your androidMinimumVersion (Initially lower it to "0" to rule it out). Same issue for this user here.
Let me know if this helps. Thanks.


Player Permissions

Players have Permissions to create Floating Textes without Permissions.
How can i set this to false?
Pocketmine 3.11.5
Texter Version Latest

https://github.com/fuyutsuki/Texter/blob/21ed1c83281a5cad8e6b7ef19407ddcdf2927063/resources/config.yml#L13
Please change it in plugin_data\Texter\config.yml to true

Oh i havent seen this
Sorry
Thank you for Help

You're welcome <3


⚠ Bofrost.at has degraded performance

In 70c1b1b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2176 ms

Resolved: Bofrost.at performance has improved in b723c42 after 50 minutes.