note on deploying workers

Add document here: https://drive.google.com/open?id=1_K374OwYTTIuRICUPaqVBgVq0y2Zyb7Q
Here are some of the notes that I wrote:
"Terminal Commands:
eb list - lists all apps/instances eb use { desired instance } - navigates to desired instance eb deploy - deploys instance eb log - downloads logs to see console.log statements for debugging purposes
In AWS dashboard:
Add env variables after you create a new instance and it has healthy (green) status Make sure to leave a blank key-valu pair at end
Go to the list view of all instances running, select where to deploy the code in the list by checking the box, click on ‘deploy’ and a drop down list should display. Select the instance to deploy and then apply the changes."

I don't necessarily know if the guidelines are the right place for this... We should definitely keep track of this kind of documentation, but I don't know if it's the right thing for the public docs. Open for discussion.

@vinnieking06 I think you originally opened this issue on an LH dashboard. I agree with @swilliams that it shouldn't go in the guidelines. Could you instead create a google doc here:
https://drive.google.com/drive/folders/1_K374OwYTTIuRICUPaqVBgVq0y2Zyb7Q
Thanks

@mmislam101 yep, no problem


404 links at https://ocm.software/*

What happened:
404 at https://ocm.software/docs/guides/getting-started-with-ocm for:

To do this, create a file named [.ocmconfig](https://ocm.software/docs/guides/getting-started-with-ocm/.ocmconfig) in your home directory with the following:
The [component descriptor](https://ocm.software/docs/specification/elements/README.md#component-descriptor) is stored as a yaml file named component-descriptor.yaml. It describes the content of a component version.
Because we use content from the local environment, it is directly packaged into the component archive using the [access method](https://github.com/open-component-model/ocm-spec/blob/main/doc/specification/elements/README.md#artifact-access) of type [local](https://github.com/open-component-model/ocm-spec/blob/main/doc/appendix/B/localBlob.md).
is used to describe the [access method](https://github.com/open-component-model/ocm-spec/blob/main/doc/appendix/B/README.md).

https://ocm.software/project/about/

[OCM Specifications](https://github.com/open-component-model/ocm-spec/tree/main/doc/specification) - The ocm-spec repository contains semantic, formatting, and other types of specifications for OCM.
Read about the [problem statement](https://github.com/open-component-model/ocm-spec/tree/main/doc/introduction) that the OCM set of solutions can help to solve.
Start with the documentation about Model Elements [here](https://github.com/open-component-model/ocm-spec/tree/main/doc/specification/elements).

https://ocm.software/docs/guides/structuring-software-with-ocm/

The [toi installation toolkit](https://github.com/open-component-model/ocm/blob/main/docs/reference/ocm_bootstrap_componentversions_toi-bootstrapping.md) is one tool supporting this
The [Flux OCM controllers](https://ocm.software/docs/guides/getting-started-with-ocm-flux/) offer this functionality too.

https://ocm.software/docs/controller-reference/api-reference/ocm-controller/#delivery.ocm.software/v1alpha1.ResourceReference

Field	Description ElementMeta [github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/versions/ocm.software/v3alpha1.ElementMeta](https://pkg.go.dev/github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/versions/ocm%5c.software/v3alpha1%5c.ElementMeta)	 (Members of ElementMeta are embedded into this type.)
referencePath [[]github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/meta/v1.Identity](https://pkg.go.dev/github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/meta/v1/Identity)	(Optional)

@stb1337 I fixed everything, but the controller Api stuff.
@Skarlso, how do we create the API doc on the OCM website? Is this a copy/paste of some (never :-)) current state? What to reference to get the https://ocm.software/docs/controller-reference/api-reference/ocm-controller/#delivery.ocm.software/v1alpha1.ResourceReference fixed?

@morri-son I'll take a look at my notes. :D I don't remember if it was just generating the docs on the ocm-controller and the copying it over.

Yep, it's make api-docs on the controller side and then copy and paste it to the website.

@Skarlso oki, thanks. Got it. Could you please also check my other comment?
What to reference to get the https://ocm.software/docs/controller-reference/api-reference/ocm-controller/#delivery.ocm.software/v1alpha1.ResourceReference fixed?


Beta release

Bugs

[x] Requires extra lib on Windows - #220, ethereumproject/emerald-rs#173

Design

[x] General color/style schema
[x] Header - #260
[x] Create TX form - #261
[x] TX details screen - #262

New Features

[x] Import addr from Ledger - #253
[x] Backup PK
[ ] Import raw PK

Release

[x] tag v0.4.0

Notes

Just basic stuff for design at the moment

Done https://github.com/ethereumproject/emerald-wallet/releases/tag/v0.4.0


Local ARAGORN

ARAGORN receives TRAPI queries, which may contain workflows.   If a TRAPI query does not contain a workflow, a default workflow is run.
One of the possible workflow elements is "lookup" which consults data sources to provide all possible answers to the question.  In current ARAGORN, lookup is implemented by making an asynchronous TRAPI call to strider, which implements a federated lookup to all translator KPs.
We want to make a Local ARAGORN.   This would be another instance of the container, with a different configuration (Helm chart?)
When a lookup operation happens, then Local ARAGORN will not call strider, but will instead consult a single automat endpoint (either robokop or covidkop probably).   It's not quite as simple as replacing the strider URL with the automat URL because automat can only be consulted synchronously.
Additionally, there will soon be another operation (infer or creative lookup) which will have different implementations in the two ARAGORNs: Federated ARAGORN will use mined rules to query strider, while Local ARAGORN will simply consult a database of pre-calculated results.

I think it'd be good to call this either Internal or Centralized ARAGORN instead of Local, because Local implies that it's on your local development machine. Internal implies that it's not dependent on an external source of truth/database, but if that's not true I think Centralized makes the most sense because it distinguishes it well from the Federated version.

I think Centralized is good.  Consolidated maybe?

https://docs.google.com/presentation/d/1sPaBtLW8Dj_fesng1pOkljRCaO_LKF7WvsZRKlodU5M/edit#slide=id.p

change value from strider_url to lookup_url (in values files; environment variables)
Add a boolean value for lookup_synchronous in values, pass as environment variable
2 new instances, prod and dev, with lookup_url pointing to automat.renci.org/covidkop, synchronous=True
Update "strider" function to "lookup" function, get lookup_url and synch from environment; pass to post

This is complete, the local aragorn is called robokop b/c it makes use of the local robokop graph.


Are Eltako FWZ12-65A and Eltako FBH65S (a5-08-01) working?

Hi,
I have problems in getting the above Eltako sensors working. Even after learning the sensors, the telegrams don't get decoded by the actor node. Is this still in development or should it work?
Best regards
Thomas

that should definitely work. can you post a raw telegram you get from the sensor here, please. I'll have a look at it.

Thanks a lot. I think I learned the sensors right.
Here is the raw telegram of FBH65S:

{"payload":"55000a0701eba5a900000d019aaf3a0001ffffffff580053","meta":{"type":"radio-erp1","rorg":165,"senderId":"019aaf3a","destinationId":"ffffffff","subTelNum":1,"rssi":88,"timestamp":1578836033952,"status":0},"_msgid":"e6014457.2843e8"}
And here the one of FWZ12-65A:
{"payload":"55000a0701eba50000470c008743160001ffffffff430011","meta":{"type":"radio-erp1","rorg":165,"senderId":"00874316","destinationId":"ffffffff","subTelNum":1,"rssi":67,"timestamp":1578837459265,"status":0},"_msgid":"646eda76.e63da4"}
I already thought that I need to decode the telegram by myself. Hope that this is not the case.

can you also post a screenshot of your flow...

here it is:


Latest rc (1.15.0-alpha.1) of testcafe gives babel errors in docker

What is your Test Scenario?

Run tests in docker
What is the Current behavior?

ERROR Cannot prepare tests due to an error.

Error: [BABEL] /testcafe/tests/pos/verification/td_tests/preverification_page/preverification-page-tests.spec.js: Failed to resolve "@babel/runtime" relative to "/testcafe" (While processing: "base$0")

What is the Expected behavior?

Run tests in docker
What is your web application and your TestCafe test code?

Execute this command...
See the error...

Your Environment details:

testcafe version:
1.15.0-alpha.1
node.js version:
command-line arguments:
browser name and version:
platform and version:
other:

Hello @raj-balaebail,
I couldn't reproduce the error with the specified version of TestCafe (1.15.0-alpha.1) in Docker. I used the following command:
docker run -it -v ${PWD}:/tests -w /tests testcafe/testcafe:1.15.0-alpha.1 chromium,firefox test.js

The tests passed without any problems. Could you please share an example showing how we can reproduce the issue on our side?

Interestingly, I can't reproduce this anymore too. We did have some issues with our internal artifactory which stores all the images around the same time. Presumably the image had gotten corrupted.


scraping entire marketplace like alibaba

i need to create code to scrape entire marketplaces
anyone intrested may message my whatsapp +255625622866


Good Friday is Czech holiday from 2016

In 2016, Czech Republic added Good Friday as an official public holiday.
https://www.cnb.cz/en/public/media_service/schedules/media_svatky.html

oh! thank you for the information. as I understand, the "Good Friday" holiday will also be a holiday in the future years, do you confirm it?

Yes, it's official holiday from 2016 onwards.

thx. working on a patch, I'll make a bugfix release right after it.

closed by #149

I've made a 0.8.0 release with this fix. You're free to upgrade, now ;op


create3_teleop does not work when overriding ROS2 namespace

Hello,
Everything works fine if I don't override the namespace in App Config. However when overriding the create3 namespace, the create3_teleop stops working when launched like:
ros2 launch create3_teleop teleop_joystick_launch.py namespace:=/robot_base
I've tried adding a namespace launch configuration and passing it to the nodes here:
https://github.com/mcvlad/create3_examples/commit/9fe2cb2548dbb26c2b8d15a739515acd71eb868e#diff-75a203173afe2ebcf63e3c5af7df1c3ff2fe40a800b61c3281f43d1c370fc569R67
Now I see /robot_base/cmd_vel and /robot_base/joy topics, but the robot only moves forward when pressing the Turbo on button 5.. The joystick steering/throttle control is not responsive.
So something is getting through, but I'm unsure what's missing. Do you have any further ideas? Peaking at the topics, the joy commands are correct, but the /robot_base/cmd_vel is only set to a constant linear and angular velocity when button 5 is pressed:
---
linear:
  x: 0.4999999701976776
  y: 0.0
  z: 0.0
angular:
  x: 0.0
  y: 0.0
  z: 0.4999999701976776

Thanks,
Mike

Happy to say I got it working by remapping topics instead of overriding the node namespace:
                    remappings=[
                        ('joy', '/robot_base/joy'),
                        ('cmd_vel', '/robot_base/cmd_vel'),
                        ('joy/set_feedback', '/robot_base/joy/set_feedback')
                    ],


Create .gitignore

PR Summary

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[x] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

Hey @Neto562 👋,
PSSA has a .gitignore file, at the root of the project. You look to be creating one in an IDE specific folder?
Perhaps this PR should instead be to add the .idea folder to the existing .gitignore?
🙂

Hey @Neto562 👋,
PSSA has a .gitignore file, at the root of the project. You look to be creating one in an IDE specific folder?
Perhaps this PR should instead be to add the .idea folder to the existing .gitignore?
🙂


Work around Fedora pkgconf issue

This PR is two commits:

first a CI job to reproduce the underlying failure
then a commit to work around upstream https://github.com/flavorjones/mini_portile/issues/118

Closes #354

Hopefully the first commit will get CI to fail; then I'll push the workaround to go green.

Succeeded in reproducing the failure in CI: https://github.com/sparklemotion/sqlite3-ruby/actions/runs/3223232509/jobs/5273088767#step:6:256

Nice, this went green. I'll merge and cut a release in the next day or so.


generateJava fails while .graphqlconfig is present in the schema dir

It seems the plugin simply concatenates all files inside the schema dir(s) and then tries to parse them. Why would it do so? Why does it include the .graphqlconfig file as well? There doesn't seem to be any option to exclude some files from the schema paths, unfortunatelly.
Execution failed for task ':app:generateJava'.
> Unable to parse the schema...
  Invalid Syntax : offending token '"schemaPath"' at line 2 column 3

Then it prints the whole schema and apparently the contents of .graphqlconfig is part of it:
  {
    "schemaPath": "schema.graphql"
  }

Thanks for reporting the issue. We will fix this in an upcoming release.
On Fri, Feb 17, 2023 at 6:48 AM Adam Hošek @.***> wrote:

It seems the plugin simply concatenates all files inside the schema dir(s)
and then tries to parse them. Why would it do so? Why does it include the
.graphqlconfig file as well? There doesn't seem to be any option to
exclude some files from the schema paths, unfortunatelly.
Execution failed for task ':app:generateJava'.

Unable to parse the schema...
Invalid Syntax : offending token '"schemaPath"' at line 2 column 3

Then it prints the whole schema and apparently the contents of
.graphqlconfig is part of it:
{
"schemaPath": "schema.graphql"
}
—
Reply to this email directly, view it on GitHub
https://github.com/Netflix/dgs-codegen/issues/524, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ5JPXN5OQVIF2KXETCDDWLWX6FUTANCNFSM6AAAAAAU7QQDMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Parameter schemaPaths accepts list of files/paths and I'm pretty sure this issue is no longer valid.
Certainly you can do something like this:
schemaPaths = File("${projectDir}/src/main/resources/schema/").walkTopDown()
            .filter { it.name.endsWith(".graphqls") }
            .map { it.path }.toMutableList()


Revert "[No QA][TS migration] Migrate 'UserUtils.js' lib to TypeScript"

Reverts Expensify/App#27778

Also went ahead with identifying the fix by the time I got on so I chose that PR, thanks for making the revert ❤ https://github.com/Expensify/App/pull/28686


Reuse validation enqueuer

Fixes https://github.com/keras-team/keras/issues/10474
Attempt at reusing the validation enqueuer (I thought we were already doing that).
Not sure how to test this. Suggestion welcome.

This commit does not fix the problem, yet.

It's WIP

With this patch on the second epoch the validation gets slow again, but the strange thing is that there is a huge 1cpu workload after the validation finished that blocks the start of the next epoch.
Also saving of the model is broken.
 File "/home/apit/.local/lib/python3.6/site-packages/keras/engine/network.py", line 1104, in save
    save_model(self, filepath, overwrite, include_optimizer)
  File "/home/apit/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 106, in save_model
    f = h5py.File(filepath, mode='w')
  File "/usr/local/lib/python3.6/dist-packages/h5py/_hl/files.py", line 312, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  File "/usr/local/lib/python3.6/dist-packages/h5py/_hl/files.py", line 148, in make_fid
    fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5f.pyx", line 98, in h5py.h5f.create
OSError: Unable to create file (unable to lock file, errno = 11, error message = 'Resource temporarily unavailable')

Sry, I appreciate your help and just tried to help you with debug information.

As for the single core being used, it's probably that the queue is full so the other workers are not doing anything.
The model saving issue is not related to this PR.

I made some tests and seems to gets some valuable improvements when using large objects.

Before
After

Generator
67.87834
47.59921

Sequence
70.4015
48.8415

I also validate that all cores are used in this example. The enqueuer is also closed at the end.
Repro
import time

import numpy as np

from keras.layers import Dense
from keras.models import Sequential
from keras.utils import Sequence

class SequenceGen(Sequence):
    def __init__(self, batch_size):
        self.super_large = ['rick'] * 100000
        self.batch_size = batch_size

    def __len__(self):
        return 20  # dummy

    def __getitem__(self, idx):
        batch_x = np.zeros((self.batch_size, 100))
        batch_y = np.zeros((self.batch_size, 1))
        time.sleep(0.1)
        return batch_x, batch_y

def super_gen(seq):
    # Creates a gen from a Sequence
    while True:
        for i in range(len(seq)):
            yield seq[i]

data_generator = SequenceGen(batch_size=20)
val_generator = SequenceGen(batch_size=20)

# Dummy Model
model = Sequential()

model.add(Dense(100, input_shape=(100,)))
model.add(Dense(units=25))
model.add(Dense(units=1))

model.compile(optimizer='sgd', loss='mae')

# Timing for Sequence
start = time.time()
model.fit_generator(
    generator=data_generator,
    epochs=100,
    verbose=0,
    validation_data=val_generator,
    max_queue_size=10,
    workers=5,
    use_multiprocessing=True)
end = time.time()
print("SEQUENCE", end - start)

# Timing for Generator
start = time.time()
model.fit_generator(
    generator=super_gen(data_generator),
    steps_per_epoch=len(data_generator),
    epochs=100,
    verbose=0,
    validation_data=super_gen(val_generator),
    validation_steps=len(val_generator),
    max_queue_size=10,
    workers=5,
    use_multiprocessing=True)
end = time.time()
print("Generator", end - start)


scripts/check-signed-off: allow more than one Signed-off-by trailer

Check if any of the Signed-off-by commit trailers match the commit author instead of expecting a single trailer.

While at it, can you also implement to skip this check for merge commits? I created a merge commit recently within GitHub which did not have any Signed-off-bytags. This made the checker not pass.


Add an application_name PostgreSQL connection parameter

Motivation and context

This will let us more easily identify PostgreSQL sessions that come from CVAT. See https://www.postgresql.org/docs/15/runtime-config-logging.html#GUC-APPLICATION-NAME.
How has this been tested?

SELECT * FROM pg_stat_activity;

Checklist

[x] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

This would be useful for some debugging I'm currently doing. @azhavoro Could you take a look?


Need to upgrade Swagger UI to v2.2.10

#974
In the new version of Swagger UI v2.2.10 added propery to setup type of client authentication. Can you update Swagger UI to the new version?
I need this from swagger-ui.js
 setClientAuthenticationType: function (e) {
        var type = $(e.target).val();
        var $el = this.$el;
        this.model.set('clientAuthenticationType', type);

        switch(type) {
            case 'none':
                $el.find('.oauth-client-authentication').hide();
                break;
            case 'basic':
            case 'request-body':
                $el.find('.oauth-client-id').removeClass(this.cls.error);
                $el.find('.oauth-client-authentication').show();
                break;
        }
    }

This is done in PR #974

@heldersepu thanks man, I know. As you can see I've posted some comments in that PR

I guess you can close this issue...


"ESNext" target doesn't compile "using" keyword while "ES2022" does

🔎 Search Terms
"ESNext", "using", "keyword", "ES2022", "target"
🕗 Version & Regression Information
When I tried compiling my lib with Rollup, including the new "using" keyword, under "ESNext" target, it failed with "Unexpected token" error; but when compiling under "ES2022" target, it works fine
⏯ Playground Link
No response
💻 Code
using disposable = ...

🙁 Actual behavior
"Unexpected token" error
🙂 Expected behavior
Successful compilation, just like ES2022, since ESNext >= ES2022
Additional information about the issue
tsconfig.json
{
  "compilerOptions": {
    "target": "ESNext",
    "baseUrl": "./src",
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "strict": true,
    "downlevelIteration": true,
    "lib": [
      "DOM",
      "ESNext"
    ]
  },
  "include": [
    "./src/**/**.ts",
  ],
}

package.json.devDependencies
"rollup": "^3.28.1",
"@rollup/plugin-typescript": "^11.1.3",
"tslib": "^2.6.2",
"typescript": "^5.3.0-dev.20230902"

rollup.config.js
import ts from "@rollup/plugin-typescript"

export const config = [
  {
    input: "./src/index.ts",
    output: [{
      dir: "./dist/esm",
      format: "esm",
      exports: "named",
      preserveModules: true,
      sourcemap: true,
      entryFileNames: "[name].mjs",
    }, {
      dir: "./dist/cjs",
      format: "cjs",
      exports: "named",
      preserveModules: true,
      sourcemap: true,
      entryFileNames: "[name].cjs",
    }],
    plugins: [ts()]
  }
]

export default config

Works just fine on the playground: Playground link
Are you sure it's not an issue with rollup? Does it happen too when you compile without rollup, just by using tsc?

Works just fine on the playground: Playground link

I have the following error on the playground link you submitted: "Unexpected identifier 'disposable'"

Are you sure it's not an issue with rollup? Does it happen too when you compile without rollup, just by using tsc?

You're right, it works when using tsc --project tsconfig.json --outdir dist with both ESNext and ES2022
Maybe this has to do with tslib or @rollup/plugin-typescript?

I have the following error on the playground link you submitted: "Unexpected identifier 'disposable'"

That's a runtime SyntaxError thrown by the browser, because it doesn't natively support using.  There are no compile-time errors.

This sounds like @hazae41 is trying to run the compiled code in an environment that does not support using and is confusing runtime errors with a compile time error. Under ES2022 it's polyfilled, under ESNext not.

This sounds like @hazae41 is trying to run the compiled code in an environment that does not support using and is confusing runtime errors with a compile time error. Under ES2022 it's polyfilled, under ESNext not.

No, this is a compile-time error when compiling with Rollup:
[!] RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)
src/node/mods/index.ts (9:10)
 7: }
 8: export function test() {
 9:     using example = window;
              ^
10: }

That's a rollup issue, then.  You need to report it there, if you haven't already.

According to the comment in your other issue Rollup simply does not support using yet. This is completely unrelated to TypeScript.
https://github.com/rollup/rollup/issues/5113#issuecomment-1700305458

That's a Rollup issue, then. You need to report it there, if you haven't already.

I'm not sure this is a Rollup issue or TypeScript issue, I already made an issue there too

According to the comment in your other issue Rollup simply does not support using yet. This is completely unrelated to TypeScript.
rollup/rollup#5113 (comment)

No, it does support "using" when targetting ES2022, which is why it makes me think it's probably a TypeScript issue

No, it does support "using" when targetting ES2022, which is why it makes me think it's probably a TypeScript issue

When you target ES2022, TypeScript will emit downlevel code for runtimes that don't support using yet, so the resulting JavaScript code does not contain any using anymore. As far as I understand Rollup is using this emitted JavaScript code, so it doesn't have any issue parsing the code, since there's no using.
When you target ESNext, TypeScript will emit the using, so the JavaScript code ends up containing using and Rollup fails to parse it.

No, it does support "using" when targetting ES2022, which is why it makes me think it's probably a TypeScript issue

When you target ES2022, TypeScript will emit downlevel code for runtimes that don't support using yet, so the resulting JavaScript code does not contain any using anymore. As far as I understand Rollup is using this emitted JavaScript code, so it doesn't have any issue parsing the code, since there's no using.
When you target ESNext, TypeScript will emit the using, so the JavaScript code ends up containing using and Rollup fails to parse it.

Thanks, that's probably what's happening, I'm closing this issue for now


[SPARK-40583] Fixing artifactId name for cloud integration

What changes were proposed in this pull request?
I am changing the name of the artifactId that enables the integration with several cloud infrastructures.
Why are the changes needed?
The name of the package is wrong and it does not exist.
Does this PR introduce any user-facing change?
No
How was this patch tested?
It is not needed.

[DOCS] should be added to pr title

Welcome to the Apache Spark community, @danitico .
I added you to the Apache Spark contributor group and assign SPARK-40583 to you.


TRY002 does not take into account BaseException

See https://github.com/astral-sh/ruff/issues/12612

Fixed on d2a6beb


[Deep Learning] Add Named Entity Recognition Scenario to Model Builder

Summary
Add Named Entity Recognition as one of the supported language scenarios in Model Builder.

Supported Training Environments

Local CPU
Local GPU

Supported Data Formats

File
SQL

Dependencies

[ ] ML.NET framework needs to add the API to enable this scenario.

@luisquintanilla hello
I'm trying to use the NER scenario but the model always gives the first token an empty string label so the model has a very bad accuracy
I don't know where is the problem
can you provide me with a sample dataset to test the scenario?
my dataset was formed like this
John is 25 years old  Name	0	Age  0	0


[Feature Request]: support for selecting few rows of sdds-table-body could be selected initially when using multi select

Requirements before reporting

[X] No duplicated issue reported
[X] I have read the contribution guidelines
[X] I have checked the lastest version if the feature exist there

Type of feature request
Functionality
What is your feature request?
In sdds-table-body we currently load the table information using the  'body-data' attribute. This allows with a multiselect a way to the end user that the value can be selected.
Using an API, we save this information, and when the next time the user is tries to fetch the selected rows we can populate the table and mark their previously selected choices as a clicked checkbox.
We could have a 'selected-body-data' where I can pass the rows which are selected
Background
We currently do this already by using shadowRoot to mark the selected rows, but on low CPU/slow internet situations it fails to work as the shadowRoot for the individual rows are not ready and we try to mark them as selected. Only possible means is to keep a long enough timeout which seems to be a bad solution going forward as the customer may have to wait a lot of time.
Idea
I would like an attribute like 'data-selected-rows' or 'selected-body-data'  which could allow me to tell the rows which are selected out of all the rows on the table.
Goals and objectives
As this issue happened on slow internet/slow CPU and i have a custom solution using shadowRoot which is not so good a programmer experience as it could be functionality which could be entirely in the web component.
Timeline
No response
Resources
No response
Contact information
<EMAIL_ADDRESS>

This has been enabled in the 1.0-beta release of @scania/tegel: https://github.com/scania-digital-design-system/tegel/releases/tag/%40scania%2Ftegel%401.0.0


Windows support

It would be nice if LavinMQ worked on Windows.
I have done some testing, and unfortunately it's not super straight-forward. Below are some of my findings.
Some info on porting to Windows can be found here https://github.com/crystal-lang/crystal/wiki/Porting-to-Windows#running-crystal-compiler-on-windows-bootstrapping
Current state
Branch: https://github.com/cloudamqp/lavinmq/tree/windows-support
LavinMQ can be started with a fresh datadir. HTTP server and mgmt GUI is working.
Queues, vhosts, exchanges can be created. Messages can be published and read.
A lot of things are not working though.
LavinMQ can not be started when there is data in the datadir.
Most specs are faliing.
Findings
Flag
You can use {% if flag?(:windows) %} or {% if flag?(:win32) %} to do Windows-specific things.
MFiles  / Files
Memory mapped files exists in windows as well, see https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping . But I haven't gotten that to work properly yet, so I have used fallback to regular files instead. Crystal's own file handling seems to be enough.
That also comes with a bunch of problems though, mainly because of how we read (and write) data to IO's in different places in both LavinMQ and AMQProtocol.cr. Performance is also pretty bad using regular files.
I've had some problems with reading existing messages on startup, where we read the wrong bytes in some places. I think this has to do with how and when we update the pos when reading data.
There might also be some differences with how uninitialized slices work, but I'm not sure.
Files has to be opened with a or a+ mode to ensure we write to the end of the file.
Paths
Paths are not as standardized in Windows. They are generally formatted like C:\dir\file.ending. Should work if we just use windows paths.
System info
Below follows some ways of getting system info like disk stats, memory usage, etc, on Windows.
Disk stats
fun GetDiskFreeSpaceExA(lpRootPathName : Char*, lpFreeBytesAvailableToCaller : Void*, lpTotalNumberOfBytes : Void*, lpTotalNumberOfFreeBytes : Void*) : Bool
bavail = blocks = c = 0_i64
LibC.GetDiskFreeSpaceExA(path.check_no_null_byte, pointerof(bavail), pointerof(blocks), pointerof(c))

Memory stats
    fun GlobalMemoryStatusEx(Void*) : Void*
    struct MEMORYSTATUSEX
      dwLength : Int
      dwMemoryLoad : Int
      ullTotalPhys : Int64
      ullAvailPhys : Int64
      ullTotalPageFile : Int64
      ullAvailPageFile : Int64
      ullTotalVirtual : Int64
      ullAvailVirtual : Int64
      ullAvailExtendedVirtual : Int64
    end

      memory = LibC::MEMORYSTATUSEX.new
      memory.dwLength = sizeof(LibC::MEMORYSTATUSEX)
      ptr = pointerof(memory)
      mem = LibC.GlobalMemoryStatusEx(ptr)
      memory.ullTotalPhys

PAGE_SIZE =
fun GetSystemInfo : SYSTEM_INFO
PAGE_SIZE = LibC.GetSystemInfo.@dwPageSize

set_rlimit
fun _setmaxstdio(max : Int) : Int

getrusage
times = Process.times
ResourceUsage.new(times.@utime, times.@stime, 0_i64, 0_i64, 0_i64, 0_i64, 0_i64, 0_i64, 0_i64)

Other
SystemD - fixed by this
Sockets - Haven't looked into this, but can not bind to unix sockets.

Probably not putting that much more work into this at the moment, but we might pick it up later.

Yes, in MFile we only update pos when reading, not when appending, which is different from how normal File works. If you have opened a File in a+ mode you can read at any pos, but when you write to that file the pos will be reset to the end of the file, in MFile we skip that part for performance reasons.

I thought that UNIX domain sockets wasn't available in Windows, but it looks like i was wrong: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

For cross platform compatible paths we https://devdocs.io/crystal/path


.vscode: fix tasks files again

What
Fix VSCode task file again.
Why
VSCode keeps saying the file is out of date and needs updating on every open which creates permanent diffs in local checkouts. In #3908 I committed a fixed VSCode file, but it must have only been partial.

I think @bartekn's previous comments about should we even have this file still is valid. I'm not sure. I'm also not sure the consequence of us deleting it. But at the very least this PR will stop the diffs.


Allow a single test to be executed by line number

Can specify a line number as an option when declaring a context block. The tests within that context block will only execute if their block source_location matches that line number.

As an alternative API we could support the CLI format used by M and now rails test. That is: test my_test.rb:5

I think the file+line number format makes most sense. A line number has no meaning when extracted from the context of the file in question.

Thanks for the PR!
I'm going to assume that the intended benefit of a specifying a line number is for integrating a text editor with a test script you're working on. How valuable is this feature to you? I used to set up a keybinding to "run the test under the cursor" in vim ages ago, but haven't had that as part of my workflow for some time.
This looks like a very reasonable feature that should be useful to some (but not all) users. There is a big caveat, though, and that is that since test bench executes and loads in a single pass, a test block might depend on previous test blocks running:
x = 1

test do
  x += 1
end

test do
  assert x == 2
end

In the above example, you'll get different behavior if you only run the second test block. Of course, the interdependence between those tests is very contrived almost certainly a bad idea, but it goes against the overarching design of Test Bench's single pass execution -- the test script always runs start to finish. Here's an example of where someone might get tripped up:
context do
  test do
    # some test
  end

  some_code # This will still run even if you are "focusing" on the previous test
end

The larger question I have is this: is the tooling and workflow benefit worth the additional concept cost?

Partially this feels like a feature that tooling will need to fully support workflows like running or rerunning a single test. Or for example re-running a set of failed tests. My test suite generally is small and fast enough that it isn't a big deal but I've been thinking of adding a keyboard shortcut in vim to quickly run a test I'm looking at while I'm working on it to isolate distraction from other failures during a refactoring.

I think another use case would be for, example a test runner or file watcher that wants to rerun previously failed tests after a change. Though I agree typically I run all the tests, but it is good immediate feedback to know which failed tests failed.
In that case I could see it being useful that the array of paths allowed each file to specify one or more line numbers to run. This would also require that the telemetry returned the file and line numbers for failing tests so they could be used.
In this case I might make sense to support simply storing a hash of filenames and line numbers.

Closing this in favour of the solution proposed in #9


use destination insertion points when calculating the path

Fixes #3201 by using destination insertion points for computing the path (following this algorithm https://github.com/w3c/webcomponents/blob/91f9a1fa681c39cf8ee9dff898db78fc7797354c/spec/shadow/index.html#L536). Specifically:
If a node has destination insertion points:

append them all (except the last one) to path
set current to be the last destination insertion point

@sorvell FYI, kindly review. What's the best place to add some tests? I noticed there are already some smoke tests on path in test/smoke/patch-dom.html

LGTM. Thx!

\o/


Expose datum paths as environment variables

It's common for the first lines of a pachyderm pipeline to looks something like this:
for f in /pfs/input/*
do
    code.py $f
done

This boiler plate can be saved by instead exposing the datum's path as an environment variable whose name is the name of input it comes from. Then this could be written as:
code.py $input

@jtratner We'd love your feedback on this issue to make sure it solving the problems we discussed.

The fix in #2233 works for arbitrarily many data repos? (i.e., a different env var for each name?)
only issue here is you'd still need to use stdin because it's not giving you the subpath from the repo for the datum.
i.e., stdin becomes something like:
cmd: ["/bin/bash"]
stdin: ["code.py $input /pfs/out/${input##/.*/.*}"]

but yeah basically handles what I'm looking for - would it only work in stdin?

The fix in #2233 works for arbitrarily many data repos? (i.e., a different env var for each name?)
yes, each env var will be the name given to the input, which defaults to the name of the repo if unspecified.

only issue here is you'd still need to use stdin because it's not giving you the subpath from the repo for the datum.

$input will be the full path to the datum. For example if you have a repo foo with a file  bar in it and you use a glob pattern of * then $foo will be /pfs/foo/bar. The only time you should have to deal with subpaths is if your datums are actually directories which contain multiple files in which case you'll have to traverse those files. I'm not sure if there's a way we could make that use case better, we can't really bind them to env vars because we don't even know how many files there are so user code is always going to have to handle that variability.

Realized I didn't answer your last question, the env vars should work outside stdin too. So you can just as easily have your python code access them directly.
Also I'm not totally sure I answered your question 2nd question. When you pass /pfs/out/${input##/.*/.*} what is that communicating to your code?

Often the transform I want to do is:
code.py --bam=/pfs/input/FlowcellA/Sample1/somefile.bam
--vcf=/pfs/input/FlowcellA/Sample1/something.vcf
/pfs/out/FlowcellA/Sample1/outputfile.txt
So my assumption is this would look like:
code.py --bam=$input/somefile.bam --vcf=$input/something.vcf
/pfs/out/${input#/./.}
Where the goal is to strip out "/pfs/input" and put "/pfs/out" instead.
But def much cleaner
On Thu, Aug 31, 2017 at 6:13 PM Joe Doliner<EMAIL_ADDRESS>wrote:

Realized I didn't answer your last question, the env vars should work
outside stdin too. So you can just as easily have your python code access
them directly.
Also I'm not totally sure I answered your question 2nd question. When you
pass /pfs/out/${input##/./.} what is that communicating to your code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pachyderm/pachyderm/issues/2232#issuecomment-326460992,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABhjq9qxGQ2oDIHTZfijUmXv3mohGuCUks5sd1o2gaJpZM4PJg6o
.

Just noting that this isn't documented but should be. There's no other way of discovering the implementation of this feature other than exploration which some users won't do.

Thanks @thedrow.
@dwhitena Let's add this to our docs queue.

Added @JoeyZwicker. Thanks.

Just noting that this does seem to now be documented here: https://docs.pachyderm.io/en/latest/reference/pipeline_spec.html#environment-variables


add histogram axes type

closes #555

Does this fix the "can't create multiple traces" issue?? that's surprising! why does it fail without these lines?

It does indeed.
This is where the error was thrown from:
https://github.com/plotly/react-chart-editor/blob/4f3492ca01daf59b8d86f59aea9fad342a3d7cca/src/lib/getAllAxes.js#L46

Presumably this makes transforms available to histograms as well right? #556

added histogram2dcontour
the rest are fine


Release 0.1.157 - TypeError: Cannot read property 'isBatchingLegacy' of undefined

Description
Hello,
Trying this library this morning (which by the way seems pretty amazing), I found out the following error on release 0.1.157.
TypeError: Cannot read property 'isBatchingLegacy' of undefined
Environnement :
Platform : Android
Device : Read device (google pixel 3a)
Version
0.1.157
Steps to reproduce
My code :
const SkiaRaw = observer(({   }: {   }) => {

  const image = useImage('https://bit.ly/3fkulX5')
  if (!image) {
    return null
  }

  return (
    <View style={{ width: 300, height: 300, backgroundColor: 'white' }}>
      <Canvas style={{ flex: 1 }}>{image && <Image image={image} fit="contain" x={0} y={0} width={256} height={256} />}</Canvas>
    </View>
  )
})

export const Skia = SkiaRaw

The error :
TypeError: Cannot read property 'isBatchingLegacy' of undefined
The workaround :
Downgrading to 0.1.156 made it work
Snack, code example, screenshot, or link to a repository
Code shared in Steps to reproduce section

What version of React are you using? I had this same error and fixed it by upgrading react and react-dom to ^18.0.0.

I am getting this error to on RN 0.68.
I know a lot of users are avoiding 0.69 for now due to the deprecation of ViewPropTypes etc which leads to a lot of headaches, so upgrading is not such a simple solution for many.
Why does this package need 0.69 >

I am getting this error to on RN 0.68.
I know a lot of users are avoiding 0.69 for now due to the deprecation of ViewPropTypes etc which leads to a lot of headaches, so upgrading is not such a simple solution for many.
Why does this package need 0.69 >

@nica0012 I don't think so. I'm currently using it on "react-native": "0.68.2".

I can confirm downgrading to 0.1.156 works for me!

At the moment React 18 is required.
As @gabrielvincent mentioned, upgrading may work. Resolving React 18 only to RN Skia may work too?
Keep us posted there.

i can confirm with package.json
"dependencies": {     "@shopify/react-native-skia": "0.1.156",     "react": "17.0.2",     "react-native": "0.66.5"   }
is worked
use latest : "@shopify/react-native-skia": "^0.1.159",
is causing this error

I recently faced a similar issue, where I had in package.json
"dependencies": { "@shopify/react-native-skia": "^0.1.136", "react": "17.0.2", "react-native": "0.66.5" }
and still was not able to install node modules.
I had the following error in the console:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@shopify/react-native-skia
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/vladryabinin/.npm/eresolve-report.txt for a full report.

npm ERR!      /Users/vladryabinin/.npm/_logs/2022-11-24T18_02_52_111Z-debug-0.log

Process finished with exit code 1

In order to fix that I had to remove ^ symbol before the skia version, like this:
"@shopify/react-native-skia": "0.1.136",
Hope it'll help somebody,
Cheers!

Yes upgrading react to "18.0.0" fixed it.
Thanks for the answer.

Yes upgrading react to "18.0.0" fixed it.
Thanks for your help.

At the moment React 18 is required.
As @gabrielvincent mentioned, upgrading may work. Resolving React 18 only to RN Skia may work too?
Please keep us posted there.

It helped me THANKS so much

RN Skia should support RN back to version 0.64. Would be awesome to get a more complete example with some explanation, maybe a small project on Github reproducing only this behaviour?RN Skia 应该支持将 RN 恢复到 0.64 版本。如果能得到一个更完整的例子并有一些解释，那就太棒了，也许是 Github 上的一个小项目只复制了这种行为？
The main thing that happened between 0.1.156/0.1.157 was that we upgraded the reconciler to version 0.27 - could this be related? Could you try adding react-reconciler version 0.29 (which seems to be the latest one) as a dependency in your project to see if it helps solve the error?0.1.156/0.1.157 之间发生的主要事情是我们将协调器升级到 0.27 版 - 这可能相关吗？您能否尝试将 react-reconciler 版本 0.29（似乎是最新版本）添加为项目中的依赖项，看看它是否有助于解决错误？

upgrade react-reconciler to 0.29


Allow extension to work without syncing with an asbplayer instance

Related: https://github.com/killergerbah/asbplayer/issues/242


UICollectionView deallocated while update was in flight

in cow_cleanup

Number of crashes: 1
Impacted devices: 1

There's a lot more information about this crash on crashlytics.com:
https://fabric.io/githawk/ios/apps/com.whoisryannystrom.freetime/issues/5a5fa2658cb3c2fa630859c7?utm_medium=service_hooks-github&utm_source=issue_impact

Closing this for now, as it seems to have been resolved.


Ability to Run Coverage Report Standalone

It looks like the only way to print jest's code coverage report to the console is to use jest {...} --coverage, which will inherently always runs the test suite before spitting out the coverage report. They cannot be de-coupled.
It would be great if the coverage report could be run standalone. In my use-case, I have three test suites:

Eslint (style)
Flow (type check)
Jest (unit)

And 2 coverage reports:

Flow (via flow-coverage-report)
Jest

I'd like to run all test suites first, in a group, and then all code coverage second, in another group, as this makes grouping like tasks very clean on CI systems like CircleCI. I'd like to achieve this with npm scripts, i.e.:
    "test": "npm-run-all test:*",
    "test:lint": "eslint --fix .",
    "test:types": "flow",
    "test:unit": "jest",

    "posttest": "yarn coverage",

    "coverage": "npm-run-all coverage:*",
    "coverage:types": "flow-coverage-report'",
    "coverage:unit": "NEED COMMAND HERE",

I am migrating from a mocha / nyc / instanbul setup which allowed me to achieve this, and I'd like to keep this type of setup if I can. Thanks!

We are not planning on splitting coverage up from test runs.


Prompt to Install Dependencies after new project from a template is created to get started with the new Evidence app

We now have a working template project users can create and run after reworking that onboarding UX flow in #55.
However, users need to click on the Evidence dev server status button to install node.js app dependencies and get started with the sample app.

[ ] We'll add a prompt to Install Dependencies after template project files are cloned from an Evidence app template github Url
[ ] We'll copy over the existing prompt we have on activation startup, check for node.js version, presence of node_modules, etc. See #53 for more info.
[x] Will create new src/views/prompts.ts to host this install dependencies prompt for now, and others later
[ ] Also, need to add proper title to the template repository Url prompt

Added new Template Repository Url title to the github repository Url prompt:
Note: this feature can be used with any valid Evidence application template or repository, so that your clients and users can create and use there own.

New Install Dependencies prompt after Evidence proj. from template is created:


Add EIP-2333 derive_{child, master}_SK functions

This is to address issue #55 adding derive_child_SK and derive_master_SK functions described in EIP-2333 based on mcl implementation of BLS12-381 curve.
The code uses the names used in EIP-2333 as-is to improve readability.
The unit tests cover all the test cases provided in EIP-2333. Regarding the `Test Vector with Intermediate values', the unit test checks master SK and child SK, but the intermediate values (lamport0, lamport1 and compressed_lamport_PK) are assumed to be correct and not checked.

Reviewed code and test vectors, it looks all good. Tested locally, and tests pass. Approving and merging.


[trivial] add note on usage of twox hash

Adding some note to justify using twox hasher for storage maps where key is user generated.
Longer explanation
By convention, a storage map that has user generated key should use a cryptographic hasher (such as blake2). For storage maps which are populated by a signed AccountId as key though, it is fine to use twox hasher since generated AccountId is itself a secure hash.

Does this satisfy a convention in substrate?

Does this satisfy a convention in substrate?

Added some more context in the description. Shawn's blog explains this in more depth.


mail_debug incompatible with Python 3.12

Python 3.12 dropped asyncore which has been deprecated since 3.6, recommending asyncio instead as the replacement:
https://docs.python.org/3.12/whatsnew/3.12.html#removed

Also smtpd

It would be wonderful to get this resolved.  Just wanting to bump this issue...


Add option to ignore files

Thanks for making the project.
Please add option to ignore files from commit.

you can add ignore list in the .gitignore file first.


5.x -> 6.0.0 Upgrade Guide

Version: 5.x
Environment: DOM
Type: Docs / General

Description
Hi there, looking for an upgrade guide from 5.x to 6.x.  I've searched the docs, issues, and the blog post but apologies if I've overlooked it somewhere.
Sidenote, I'm the author of Semantic UI React and have been trialing fela in some side projects.  Love it so far.  It seems breaking changes are fairly frequent still, any feel as to when it may stabilize?

Heyhey,
Yeah there is no migration guide for 5 to 6. Actually you should not need one. We did a major update to ensure nothing breaks as lots of internal implementations got refactored/improved, but the public API should remain the same :)
E.g. I was able to just upgrade the versions at work where we use it for a huge project atm.
Btw: semantic UI looks great! Planning to try Fela with it?

(Going to close this, feel free to chat on Gitter!)

We did a major update ... but the public API should remain the same :)

Interesting, does fela have plans to follow standard semver.org at some point?

Btw: semantic UI looks great! Planning to try Fela with it?

I hope so!  Theming via JS is easily one of the most common requests and one of the biggest hangups for folks.
I wrote a short novel on the topic for SUIR in https://github.com/Semantic-Org/Semantic-UI-React/issues/1009.   The interop with RN and ability to generate conventional CSS stylesheets is a big win for we'd need.

Yeah, we actually do that since 4.x, but I as I was changing a lot internally, I wanted to ensure nothing breaks (even though if no breaking changes have been added).
According your goals: If you need any advice, feel free to check the Gitter chat. We'd love to collaborate and help here :)

is has become as in createComponent. There are other issues which have popped up as well. It's not quite as clean a transition as you'd think. Anyone else having these issues?

I am also having issues with undefined theme when moving to version 6 of react-fela.


typeText Emoji support?

Hi, first of all just want to say this is a super cool utility you've put together. Nice work!
Unfortunately, the use case I had for this was for being able to type emojis within google docs, which doesn't work due to emojis not actually having a valid keyboard key associated with them.
I know you've alluded to this being a known issue in the readme. Just wondering if you've made any progress or had any ideas on how support for non-keyboard character events might work? I thought maybe you could simulate typing alt-codes but it doesn't seem possible.

Hm, it looks like at the moment typeText supports only characters that can be represented in a single UTF-16 code unit.
That I mean is that you can use typeText to type any Unicode characters that are <= 0xFFFF (it is all characters from Unicode Basic Multilingual Plane).
For example, consider this emoji - ✅. It is \u2705 in Unicode (UTF-16). And this one - 😀. It is \u1F600. Because in JavaScript a string is a sequence of 16-bit code points, \u1F600 should be represented by surrogate pair - \uD83D\uDE00.
'✅'.length === 1
'😀'.length === 2

So, GoogleDocsUtils.typeText('✅') will type this emoji, same for GoogleDocsUtils.typeText('\u2705'). But GoogleDocsUtils.typeText('😀') or GoogleDocsUtils.typeText('\uD83D\uDE00') will not type anything.
At the moment I'm suggesting you to use only emoji that are <= 0xFFFF, because typeText not supports anything else. I will try to provide support for other characters.

Here is Google Docs code fragments, just for my reference.
By debugging<PHONE_NUMBER>-client_js_prod_kix_core__ru.js file I can see that this code fires every time when KeyboardEvent occurs:
line: 114303
x.Ioa = function(a) {
    if (this.F && this.F.ma(a))
        a.preventDefault();
    else {
        var b = ty(), c = Cy(b, new JI(WMa,SBa)), d = a.shiftKey, e = a.keyCode, f = a.charCode, g = new w7c(a), k = Y7c(g), l = g.charCode, m;
        if (!(m = !or || g.keyCode == g.charCode))
            a: if (m = g.keyCode,
            48 <= m && 57 >= m || 96 <= m && 106 >= m || 65 <= m && 90 >= m || (pr || mr) && 0 == m)
                m = !0;
            else
                switch (m) {
                case 32:
                case 43:
                case 63:
                case 64:
                case 107:
                case 109:
                case 110:
                case 111:
                case 186:
                case 59:
                case 189:
                case 187:
                case 61:
                case 188:
                case 190:
                case 191:
                case 192:
                case 222:
                case 219:
                case 220:
                case 221:
                    m = !0;
                    break a;
                default:
                    m = !1
                }
        if (l = (m || 0 == g.keyCode) && 32 <= l) {
            if (!(k = !k) && (k = g.altKey && g.ctrlKey)) {
                a: switch (g.charCode) {
                case 44:
                case 46:
                case 47:
                case 48:
                case 49:
                case 50:
                case 51:
                case 52:
                case 53:
                case 54:
                case 69:
                case 80:
                case 97:
                case 98:
                case 99:
                case 100:
                case 101:
                case 102:
                case 103:
                case 104:
                case 105:
                case 106:
                case 107:
                case 108:
                case 109:
                case 110:
                case 111:
                case 112:
                case 113:
                case 114:
                case 115:
                case 116:
                case 117:
                case 118:
                case 119:
                case 120:
                case 122:
                    k = !0;
                    break a;
                case 34:
                case 43:
                case 58:
                case 60:
                case 65:
                case 66:
                case 67:
                case 68:
                case 71:
                case 72:
                case 73:
                case 74:
                case 75:
                case 76:
                case 77:
                case 78:
                case 79:
                case 82:
                case 83:
                case 84:
                case 86:
                case 88:
                case 90:
                    k = g.shiftKey;
                    break a;
                default:
                    k = !1
                }
                k = !k
            }
            l = k
        }
        l && F8c(this, String.fromCharCode(f), a);
        Y7c(g) || !(!or || wr.$p && wr.Ih("65") || 112 > e || 123 < e) || d && 45 == e || (m6c(this.V),
        a.preventDefault());
        Ey(b, c)
    }
}

This fragment F8c(this, String.fromCharCode(f), a) will call chain of other handlers. Notice String.fromCharCode(f). This code returns an actual input character based on it charCode. For ✅ character charCode will be 9989, for 😀 - 128512. But this method not supports values that are > 0xFFFF. So, String.fromCharCode(128512) will return  ("Undefined Character", U+FFFF I suppose). This character will be passed down to other handlers.
By analyzing call stack I can see this code fragment:
line: 71479
rjc.prototype.wc = function(a) {
    a = a.C;
    a = Btb(a);
    var b = new uhc(1)
      , c = new bM(this.getContext(),a);
    QL(this, c);
    whc(vhc(b, c.L), c.J);
    OL(this, kF(dF(c.H + a.length | 0)), !0, null);
    this.F = new sjc(Nva,new njc(c.J,a),b.aa())
}

It accepts result of earlier String.fromCharCode call. Notice  a = Btb(a).
By analyzing call stack I can see this code fragment:
line: 29172
function Btb(a) {
    uE();
    return a.replace(atb, "")
}

And by analyzing the code I see this code fragment:
line: 28994
var atb = /[\x00-\b\f-\u001f\ue000-\uf8ff]/g;

It is range of characters that are invalid for typing by Google Docs handlers and shouldn't by passed down to next handlers.
So, in short, what is happening here is:
let input = String.fromCharCode(128512); // `charCode` of 😀
input = input.replace(/[\x00-\b\f-\u001f\ue000-\uf8ff]/g, '');

Google Docs accepts key code of character, handles it with String.fromCharCode, and clears invalid characters. Because String.fromCharCode supports only characters from first Unicode plane, it will never produce valid character for any characters that are greater than 0xFFFF.
I do not know why Google Docs uses String.fromCharCode and String.prototype.charCodeAt for such cases. Probably it is intended. String.fromCodePoint and String.prototype.codePointAt will handle characters that are outside of first Unicode plane (😀, for example). By the way, String.fromCharCode(0xD83D, 0xDE00) is also valid.

I think I should try to simulate insert event, not keyboard event


hoodie.properties.backup file does not exist

Env:
Hudi:0.14
Flink:1.6
CHD：6.32
HDFS：3.0.0
Hive:2.1.1
Action: Search hudi table
We are currently using version Hudi 0.14, which was upgraded from 0.13. We did not encounter this issue in version 0.13.
Specific Issue: I have a streaming task table that runs in production without making any changes to the table or the task, and the following exception is reported:
2024-06-25 01:28:10,582 WARN  org.apache.hudi.common.table.HoodieTableConfig               [] - Invalid properties file hdfs://<IP_ADDRESS>:8020/user/ods/ods_pom_in_transit_time_config/.hoodie/hoodie.properties: {}
2024-06-25 01:28:10,586 WARN  org.apache.hudi.common.table.HoodieTableConfig               [] - Could not read properties from hdfs://<IP_ADDRESS>:8020/user/ods/ods_pom_in_transit_time_config/.hoodie/hoodie.properties.backup: java.io.FileNotFoundException: File does not exist: /user/ods/ods_pom_in_transit_time_config/.hoodie/hoodie.properties.backup
The current streaming task deployment model is Session, and this issue occurs occasionally.
I have the following initial doubts:
1.Without involving any changes to table structure, index, partition, etc., why is the hoodie.properties file cleared?
2.Why was the corresponding hoodie.properties.backup file not generated before the hoodie.properties operation?
It's not just a single table experiencing this issue; currently, we have nearly 30 tables in production with similar problems. This issue frequently occurs in our development environment as well. We have not yet identified the specific cause of this problem.
Thanks!

Maybe this is what you need: https://github.com/apache/hudi/pull/8609

Are these failing jobs uses separate compaction with Spark, or do they have concurernt write with Spark writers?

Spark enables the MDT while Flink does not, maybe that's the reason why the table properties are updated frequently.

Flink for writing and Spark for separate compaction.

enables

How can we configure it to avoid this issue?

I mean did you have both Spark and Flink job writing into the same table, if it is, you might need to disable the MDT on Spark writer.

I mean did you have both Spark and Flink job writing into the same table, if it is, you might need to disable the MDT on Spark writer.

Oh. We don't have that scenario. Each table only has one fink task responsible for writing; there is no situation where multiple sinks correspond to one table.

@danny0405 ：I found that this situation tends to occur after Session tasks report errors.


Bump Dependencies #2826253973

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/2826253973

 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.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Missing information on configuration with gateway and organizational account

Missing information on adding to gateway, also no options for organizational account - please correct this.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: daf84287-d3e6-38f3-e67d-41b7aaf350ce
Version Independent ID: b03d56d0-1fba-bea4-6f02-97fbc5832651
Content: Import Azure Log Analytics data into Power BI - Azure Monitor
Content Source: articles/azure-monitor/platform/powerbi.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

@R34rvi3w Thank you for your feedback, we will look into it and get back to you at the earliest.

@R34rvi3w Thanks again for taking time to share your feedback, trying to better understand the feedback are you referring to PowerBI Gateway and whether we can import Log Analytics logs to PowerBI Gateway which is being run using organizational account ? please share additional information so that we can evaluate and have a backlog item to enhance the documentation accordingly. Thank you

@R34rvi3w We really appreciate you taking time to share your feedback,  however it would really help if you can confirm if the feedback is related to PowerBI gateway , so that we can take your feedback and have it reviewed with our document author and internal product team and have a backlog item to enhance the document if needed.
On a side note , i did reach out to our Internal product team to confirm if there is a limitation to import Log analytics logs into powerBI gateway or other modes of powerBI . Will keep the thread updated if we have any information substantial to share.
For now closing this issue , however as soon as we hear more information from you will reopen the thread to continue the conversation and see what document enhancements we can make to improve our documentation experience. Thank you


Coursier fails to resolve all maven dependencies

Coursier v2.0.0-RC6-24.
> coursier resolve -t com.google.inject:guice:3.0
  Result:
└─ com.google.inject:guice:3.0
   ├─ aopalliance:aopalliance:1.0
   └─ javax.inject:javax.inject:1

Direct compile dependency  org.sonatype.sisu.inject:cglib:2.2.1-v20090111 is missing: https://mvnrepository.com/artifact/com.google.inject/guice/3.0

@kamilkloch That seems to be expected. The POM of guice has a guice.with.jarjar profile, which gets automatically activated (the guice.with.jarjar is not false, as it's undefined, which activates the guice.with.jarjar profile). This profile marks the cglib as optional.
Manually setting the property to false disables the profile, and pulls cglib:
$ cs resolve com.google.inject:guice:3.0 --pom-property guice.with.jarjar=false
aopalliance:aopalliance:1.0:default
asm:asm:3.1:default
com.google.inject:guice:3.0:default
javax.inject:javax.inject:1:default
org.sonatype.sisu.inject:cglib:2.2.1-v20090111:default

Maven behaves the same: with a simple POM like
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
  <modelVersion>4.0.0</modelVersion>

  <groupId>test</groupId>
  <artifactId>main</artifactId>
  <version>0.1.0</version>

  <organization>
    <name>test</name>
    <url>https://github.com</url>
  </organization>
  <name>main</name>

  <dependencies>
    <dependency>
      <groupId>com.google.inject</groupId>
      <artifactId>guice</artifactId>
      <version>3.0</version>
    </dependency>
  </dependencies>

</project>

we get
$ mvn dependency:build-classpath
…
[INFO] Dependencies classpath:
/Users/alexandre/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar:/Users/alexandre/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/alexandre/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
…

(no cglib either).

@alexarchambault Thanks for the clarification. I would like ask a follow-up question as I am struggling with a migration of an sbt project to coursier-based artifact resolution. The dependency in sbt reads as follows:
libraryDependencies += ("xxx" % "yyy" % "Rel.20190709.3" %
  "compile->mddiarchive-library-compile, mddiarchive-library-master; runtime->mddiarchive-library-runtime").
  withBranchName(Some("rel")).
  artifacts(Artifact("exemaster-dataserver-mddiarchive"))

The corresponding ivy.xml looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">
    <info organisation="xxx" module="yyy" branch="dev" revision="Dev.20200818.1" status="integration" publication="20200818104217"/>
    <configurations>
        <conf name="client-library-default" extends="client-library-runtime, client-library-master"/>
        <conf name="client-library-runtime" extends="client-library-compile"/>
        <conf name="client-library-compile"/>
        <conf name="client-library-sources"/>
        <conf name="client-library-master"/>

        <conf name="mddiarchive-library-default" extends="mddiarchive-library-runtime, mddiarchive-library-master"/>
        <conf name="mddiarchive-library-runtime" extends="mddiarchive-library-compile"/>
        <conf name="mddiarchive-library-compile"/>
        <conf name="mddiarchive-library-sources"/>
        <conf name="mddiarchive-library-master"/>

    </configurations>

    <publications>
        <artifact name="yyy-client" type="jar" ext="jar" conf="client-library-master"/>
        <artifact name="yyy-client" type="source" ext="zip" conf="client-library-sources" e:classifier="sources"/>

        <artifact name="yyy-mddiarchive" type="jar" ext="jar" conf="mddiarchive-library-master"/>
        <artifact name="yyy-mddiarchive" type="source" ext="zip" conf="mddiarchive-library-sources" e:classifier="sources"/>
    </publications>

    <dependencies>
        <dependency org="xxx" name="yyy-utilities" rev="Dev.20200818.1" branchConstraint="dev" revConstraint="latest.integration" changing="true" branch="dev">
            <conf name="client-library-compile" mapped="basic-compile, basic-master"/>
            <conf name="client-library-runtime" mapped="basic-runtime"/>
            <conf name="mddiarchive-library-compile" mapped="basic-compile, basic-master"/>
            <conf name="mddiarchive-library-runtime" mapped="basic-runtime"/>
        </dependency>

        <dependency org="org.apache.commons" name="commons-collections4" rev="4.4">
            <conf name="mddiarchive-library-compile" mapped="compile, master"/>
            <conf name="mddiarchive-library-runtime" mapped="runtime"/>
        </dependency>

        <dependency org="io.netty" name="netty-all" rev="4.1.37.Final">
            <conf name="client-library-compile" mapped="compile, master"/>
            <conf name="client-library-runtime" mapped="runtime"/>
        </dependency>

        <dependency org="org.lz4" name="lz4-java" rev="1.6.0">
            <conf name="mddiarchive-library-compile" mapped="compile, master"/>
            <conf name="mddiarchive-library-runtime" mapped="runtime"/>
        </dependency>

        <exclude org="javax.activation" module="activation"/>
    </dependencies>
</ivy-module>

sbt 1.4.0-M1 with Coursier disabled resolves transitively org.lz4:lz4-java:1.6.0. With coursier-based resolution enabled,  org.lz4:lz4-java:1.6.0 is no longer resolved as a dependency. I suspect it may have something to do with a somewhat convoluted configuration mapping. I found no doc about configuration for coursier CLI...

Looks like with SBT 1.6.2 (Coursier 2.1.0-M2) still suffers from this.
With default coursier resolution 5 deps are missing, including aws-java-sdk-core, which comes in as tertiary transitive dependency of other AWS libs.
When disabling courser, the 5 libs return.

@spangaer What dependencies exactly suffer from this?

Well, some transitive dependencies between components of the AWS suite. Let me try to dig up the specifics.

So at first I thought it had to do with transitive dependencies, but that I observed that it seemed to have "auto resolved" when switching from 1.11.x to 1.12.x .
Only one of the deps I had defined
libraryDependencies += "com.amazonaws" % "aws-java-sdk-core" % Versions.aws

had gone missing.
So that wasn't even a transitive dependency.
But while investigating I noticed a clear difference in resolution location (for a lib that was found)
working: \\AppData\\Local\\Coursier\\Cache\\v1\\https\\repo1.maven.org\\maven2\\com\\amazonaws\\aws-java-sdk-sts\\
broken: \\.m2\\repository\\com\\amazonaws\\aws-java-sdk-sts\\
And indeed, when I go looking in to the .m2 folder of the libs which go missing during resolve, the pom is there, but the jar is missing.

So it looks like something botched the download of those deps. (e.g. competing package resolutions of sorts) and because the pom is there, the assumption is "that is it" and that makes the dep go missing.
I guess if you parse the XML and observe that the POM belongs to a Jar you could judge, that the folder is incomplete?

@spangaer The use of ~/.m2/repository as a repository should be the culprit here. It often has POMs without the corresponding JAR, which confuses coursier (that requires JARs to live alongside the POM, in the same repository). I'd recommend not using it with coursier.

Well I use the maven repo to "install" artifacts locally from source (e.g. via publishM2), e.g. across Win and WSL2, so it's somewhat of importance in my workflow.
Now it could be that some ordering effects complicate things (e.g. perhaps Ivy had downloaded already), but that Ivy doesn't seem to trip seems to indicate that there are means to cope with this unreliable piece of information?

People usually use ~/.ivy2/local for that (via publishLocal), which acts only as a repository, and not as a cache.

If you also interact with maven managed sources, that doesn't get you out of the woods of course.


Pushes being deleted from notification bar when cold start

I am sending 3 pushes with different notId and when my app is in foreground it receives all 3 pushes, but when it is running in background or it is closed, I receive the 3 pushes on the notification bar, but when I click one of the pushes it gets the app opened and shows the message from the push, but the other 2 messages disappear from the notification bar.

@franciswagner on the init method you can now pass clearNotifications: false to prevent the other notifications from being cleared. See the README.


Metadata update

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/persistence-in-unity.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/persistence-in-unity.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Unified attachments/images/links system

In current version of inventree we have three different entities for a part:

attachment: multiple (uploaded file + comment)
image: single
link: single

Which is pretty limiting if you have a lot of pictures of item and links to datasheets or manufacturer website.
What do you think about creation of new unified attachment model with above mentioned entities as members?
New attributes:

'type' - define the type of entity: 'attachment, picture, link'.
'link' - could have url of remote document (pdf, picture, etc.) or local file for uploaded media.
'comment' - name or description of the document (

If one wants to make a local copy of document during adding, it could be done by 'download' checkbox.

I like the idea - although isn't an "image" just a particular type of "attachment"? Currently you can add any amount of images under the "attachments" field?

isn't an "image" just a particular type of "attachment"?

Yes your are right, but it is not very convenient from UX point of view. Even the current implementation of part image does not allow to open it in full size (without involvement of right mouse button). It would be great if click on part image could open modal window with enlarged image, thumbnails and Carousel style controls.
About the links. I know it good to have your own copy of every datasheet pdf or part image, but why limit yourself to everything local if we can just add a link to manufacturer or distributor website. In my current inventory system I mostly use links to various documents related to specific part including images. Only exceptions are my own projects and rare parts.


feat: [259] when creating a new site, have the user choose a default …

…privacy setting for their data.
default data privacy input for create new site. Note: cant view default privacy setting for edit site form.
Steps to test:

create a new site
set default data privacy
view sections look at privacy setting in question nav. Make sure is initially set to default.
change section privacy. Refresh to make sure saved.

when I go to a form and switch from what ever the default is, it doesn't show the change after its selected. For example if it's default is public, and I switch to private, it will still show public in the select. See gif for better explanation. It looks like its actually saving as the correct item, because when I refresh, i'll see the change


Support for "offline" or "unauthenticated" modes

For FeTS challenge (and future challenges), we want to enable competitors to test the challenge pipeline without having MedPerf user accounts. Initial thoughts on how this could work:

Use Mocker and have specific mocked servers for given challenges
Actual local server with pre-configured db
Mechanism to specify a pipeline directly (i.e. no benchmark required) with pre-cached cubes

third option could work out-of-the-box with the current implementation. The compatibility test allows you to pass all the parameters that are required for a pipeline execution, up to the point of completely specifying a local benchmark.
It would be ideal if the benchmark had an option for allowing unauthenticated execution, but I'm not sure if this could be exploitable in any way. It implies that every time an unauthenticated user tries to retrieve a benchmark, it is loaded and then checked if it is allowed to be shown. Could this cause security issues?

Only checking for authentication if the client needs to talk to the server would fix this. Setting up the local storage so it contains everything required for offline testing would allow users to run the tests in offline mode


SES ConfigurationSet, ConfigurationSetArgs, and ConfigurationSetState Typo

Minor typo for typescript SES ConfigurationSet class, ConfigurationSetArgs, and ConfigurationSetState interfaces. Missing an "i" for Configuration.
ConfigurationSet ts file

@stack72 Another case of a typo in the name of a resource:
https://github.com/pulumi/pulumi-aws/blob/377945d2fea136d27dfea1402221b607e41554c5/resources.go#L1564


Impeller rendering issue on Android

Steps to reproduce

Install the app from http://play.google.com/store/apps/details?id=com.mineswap.app
It does not occur on every device, it is very specific, even I can't reproduce on my device, but I have screenshots from users

Expected results
Actual results

Actual results
Green overlay on some devices
Samsung z flip
Itel A70 (Android 13)
Tecno Pop 7 Pro (Android 12)

Code sample
Code sample
// No code, since it is overlaying green on basic widgets, I think it happens on all impeller apps on these devices

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64, locale
    en-PK)
    • Flutter version 3.22.3 on channel stable at
      /Users/asjad/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (8 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/asjad/Library/Android/sdk
    • Platform android-34, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (4 available)
    • Asjad’s iPhone (mobile)         • 00008120-001471610258201E • ios            • iOS 17.5.1 21F90
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.5 23F79
      darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.5 23F79
      darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome
      119.0.6045.123

[✓] Network resources
    • All expected network resources are available.

• No issues found!

(I upgraded to 3.22.3 afterwards, but the app is using 3.22.2, I have not yet updated the app with 3.22.3)

@AsjadSiddiqui
According to https://docs.flutter.dev/perf/impeller#android,
Impeller on Android with Vulkan is supported. Do you know if the devices on which this behavior occurs support Vulkan ?
You can determine whether the affected device supports Vulkan at checking for Vulkan support.

Install the app from http://play.google.com/store/apps/details?id=com.mineswap.app

Does it use flutter_svg package or any svg icons / images ?
A minimal code sample instead of the entire app, would be helpful to analyze further.

Hi,
Yes, the devices support Vulkan
Some of the impacted devices are:
Samsung z flip
Itel A70 (Android 13)
Tecno Pop 7 Pro (Android 12)
and Vulkan is a requirement for Android devices beginning with Android 10.0
and yes flutter_svg is used throughout the app
also, as you can see in the screenshots, apart from the svgs normal container and text widgets are also being shown with a green overlay
Regarding the code sample, I am unable to reproduce this locally as I mentioned, but it appears to be happening on simple flutter widgets as well

I haver updated the app and switched it to use Skia now
But I think a simple hello world app running Impeller would give the same output on these devices
I unfortunately don't have the devices to test, so I cannot confirm this

I believe this is a duplicate of https://github.com/flutter/flutter/issues/143573 : all affected devices should be PowerVR devices which have a buggy Vulkan driver. The fix is not in 3.22, but will be in the next stable and is in the 3.23 beta.

@jonahwilliams
Thanks for bringing that to my attention
I was not aware of #143573
I will test with 3.23 when it is stable

Closing as duplicate.


How to initiate Page CURL with less offset

Thanks for this awesome library. Actually am trying to turn the page when User even has little touchmove on the screen. Is there parameter to set page turn offset? .. I have checked with CurlView onTouch event and not sure where to change to achieve the effect. Please guide me the proper way.

I have got one solution, not sure its proper but works. If any better solution, please post it. Thank you.
case MotionEvent.ACTION_UP: {
		Log.v("ACTION UP", ""+getCurrentIndex());
		if (mCurlState == CURL_LEFT || mCurlState == CURL_RIGHT) {
			if(mCurlState == CURL_LEFT){
				mAnimationTarget.set(mDragStartPos);
				mAnimationTarget.x = mRenderer
						.getPageRect(CurlRenderer.PAGE_RIGHT).right;
				mAnimationTargetEvent = SET_CURL_TO_RIGHT;
			}else{
				mAnimationTarget.set(mDragStartPos);
				mAnimationTarget.x = mRenderer
						.getPageRect(CurlRenderer.PAGE_LEFT).left;
				mAnimationTargetEvent = SET_CURL_TO_LEFT;
			}

			mAnimate = true;
			requestRender();
		}
		break;


npm audit shows moderate vulnerabilities for tunnel-agent vulnerability

Node version: 10.10.0
Npm version: 6.4.1
OS: Windows 10
After installing grunt-contribg-imagemin version: 2.01,
 npm install<EMAIL_ADDRESS>--save-dev.
npm found that there are 6 moderate vulnerabilities. The results of npm audit is as follows:
                       === npm audit security report ===

                                 Manual Review
             Some vulnerabilities require your attention to resolve

          Visit https://go.npm.me/audit-guide for additional guidance

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-gifsicle > gifsicle >
                  bin-build > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-gifsicle > gifsicle >
                  bin-wrapper > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-jpegtran > jpegtran-bin >
                  bin-build > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-jpegtran > jpegtran-bin >
                  bin-wrapper > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-optipng > optipng-bin >
                  bin-build > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

  Moderate        Memory Exposure

  Package         tunnel-agent

  Patched in      >=0.6.0

  Dependency of   grunt-contrib-imagemin [dev]

  Path            grunt-contrib-imagemin > imagemin-optipng > optipng-bin >
                  bin-wrapper > download > caw > tunnel-agent

  More info       https://nodesecurity.io/advisories/598

This is not related to this, rather the imagimin-* packages. You should report it there.


[Sortable] Sorting is always done case sensitive - add an option to make sort case insensitive

Bug, feature request, or proposal:
Bug, feature request, or proposal - I guess all of the above...
What is the expected behavior?
If a flag existed that allowed you to set sort as  case insensitive , a  case insensitive sort would work like this:
A
b
C
What is the current behavior?
It works like this:
A
C
b
What are the steps to reproduce?
use
https://stackblitz.com/angular/dmykovoxxbv?file=app%2Ftable-sorting-example.ts
and change some of the names intial letter to lowercase
What is the use-case or motivation for changing an existing behavior?
I think more people than me need it :)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular:  5.1.0
Material: 5.0.1
Browser: Chrome
TYpescript:  2.6.2
Is there anything else we should know?

@andrewseguin At least it should be documented properly with a big label of "We know that our default is weird, but we can't change it now, here's how to fix it:".
When you break the least-surprise rule, you need to be very explicit about it.

Can someone please write an example how to override sortingDataAccessor?

@skined90 Luckily, it's pretty simple. Here I based it on the original StackBlitz: https://stackblitz.com/edit/angular-yfw5ia?file=app/table-sorting-example.ts
Only difference is the added constructor (ngInit might be a better place, but this is what is used in our production code, so this I know works), and the data changed to get some lowercase names.

@LosD Thank you very much!

You're very welcome. :)

This is a code that does a special case for a string, but otherwise just returns the value:
`this.dataSource.sortingDataAccessor = (data: any, sortHeaderId: string): string => {
if (typeof data[sortHeaderId] === 'string') {
return data[sortHeaderId].toLocaleLowerCase();
}
  return data[sortHeaderId];
};`

This is a code that does a special case for a string, but otherwise just returns the value:
this.dataSource.sortingDataAccessor = (data: any, sortHeaderId: string): string => {
  if (typeof data[sortHeaderId] === 'string') {
    return data[sortHeaderId].toLocaleLowerCase();
  }

  return data[sortHeaderId];
};

How can I sort alphabetically when I have empty fields? ex:
I've this
A
B
""
C
And MatTable/Matsort orders
""
A
B
C
I want that always send the gaps at the end and get:
ascending
A
B
C
""
descending
C
B
A
""

Hi @juanjinario
It's not exactly a pretty way, but you can trick it quite easily by putting something sortable in front of the actual string, like a number (or a,b,c or whatever you prefer):
    this.dataSource.sortingDataAccessor = (data, sortHeaderId) => {
      if(!data[sortHeaderId]) {
        return this.sort.direction === "asc" ? '3' : '1';
      }
      return '2' + data[sortHeaderId].toLocaleLowerCase();
    }

(Assumes you have the matSort element as a viewChild named sort)

Thank you, its a good way for me

Can someone please tell me how to sort a table like this?
a
aa
ae
A
Aa
ae

@amanpunj17 Not sure I follow; you have two "ae", and you want one of them to come before the capital letters, and one of them come after?
If it's just "lowercase first, then uppercase" (i.e. switch around upper and lowercase order, but keep lexical order), I'd make a test for caseness, then use the trick above to order by that first.
If it's anything more complex, you'll probably have to describe how your sort order is supposed to work.

@LosD, Sorry I have updated the comment its like lowerCase first and then upperCase...can you share that link where you added the test for caseness.

@amanpunj17 I didn't mean that I added a caseness test, just that you could replace (or add to) the current empty/null check with a caseness check to the sortingDataAccessor in the example you also linked to.

Hi @juanjinario
It's not exactly a pretty way, but you can trick it quite easily by putting something sortable in front of the actual string, like a number (or a,b,c or whatever you prefer):
    this.dataSource.sortingDataAccessor = (data, sortHeaderId) => {
      if(!data[sortHeaderId]) {
        return this.sort.direction === "asc" ? '3' : '1';
      }
      return '2' + data[sortHeaderId].toLocaleLowerCase();
    }

(Assumes you have the matSort element as a viewChild named sort)
Edit: Changed the StackBlitz example to make use of it: https://stackblitz.com/edit/angular-yfw5ia-tewcfd?file=app/table-sorting-example.ts (I killed "Oxygen" for the demonstration).

But what if there is a column for which type is string[]. It throws an error for string[].

@cigcurios then you'll have to make the function recognize that column (you can just look at the sortHeaderId for that), and react appropriately, e.g. sort by first element of the string array.


Add @lexical/html to docs

Somehow @lexical/html is not on the docs. So this PR adds @lexical/html to docs.
and I tried to supplement Exporting in headless mode as much as Importing covers but it needs some checks:

@ts-expect-error for assigning window seems inevitable at the moment:
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/51276
https://github.com/capricorn86/happy-dom/issues/1227
but I'm not sure this should be included in instruction here.

I've seen that DocumentFrament used to be needed with nextjs which seems not anymore with the latest lexical (https://stackblitz.com/~/github.com/2wheeh/lexical-nextjs-ssr) and apparently navigator is needed sometimes(#3616). But I couldn't address the reason and when :( Would this comment be enough for now?

Is sidebar_position effective? there are some duplicative numbers already. Should this be same as order in the sidebar?

While at this, I also fixed some typos and added @lexical/mark, @lexical/overflow (they are practically empty though).

Is sidebar_position effective? there are some duplicative numbers already. Should this be same as order in the sidebar?

Effective in what sense? I think it's functional, though perhaps not the best design I've ever seen for managing the order of items in a sidebar.
At the end of the day, I don't think it matters too much what order these are in, so what you have is probably fine.

Effective in what sense? I think it's functional, though perhaps not the best design I've ever seen for managing the order of items in a sidebar.

I was just curious whether it determines the actual order in rendering and accordingly what i did would be a problem. Sorry for my bad English. Thank you for the explanation though!


Add "page" extension method for listing queries

To improve getting next page, the sdk should provide extra extension method.

closed by https://github.com/Kentico/kontent-delivery-sdk-js/commit/a28ddb3e18162c8b80dabbf8967e64a23b40fbb1


Python cleanup

@aabogdanov Are we ready to merge this PR?  I'd like to not keep PRs open for long if the work is done.  Thanks!


Merge pull request #120 from MicrosoftDocs/master

moving working changes to live branch

Docs Build status updates of commit 76725ec:
:warning: Validation status: warnings
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


WIP check that the fuzzers still build in CI

I am positively shocked that worked on the first try (and correctly identified that I broke the processor fuzzer!)

@Swatinem given that your name is listed in the CI infra, can I assume you'd be the right person to ask about if there's anything I should do to optimize this new workflow?
@5225225 if you find time to fix the processor, this will prevent it from breaking again

ehhh why rebase and cherry-pick when I can just land this and break CI for 20 minutes