Setup custom SSL certs for Caddy

Using self signed certificates is quite useful for testing, but for production environments, valid certs could be useful. In our install, we have wildcard certs and setting them up in Caddy would be helpful.
This could be achieved by:

defining CADDY_CUSTOM_CERTS in ansible/clusters/swarmstack
cert.pem and key.pem should exist in caddycerts px volume
adding a couple of tasks in the swarmstack ansible playbook to replace tls self_signed with tls /etc/caddycerts/cert.pem /etc/caddycerts/key.pem

Hi Jose,
I think I've generalized the changes down to just 2 cluster file definitions that should allow Caddy to be used with TLS self_signed by default, but should support Lets Encrypt and user-supplied certs now. Please see ansible/clusters/swarmstack CADDY_TLS and CADDY_URL notes, and all see caddy/caddycerts/README.md.
Please try master branch and let me know if this suits your needs, or more work is needed here.

Hi Mike,
Certainly, your patch was more elegant and simple than mine. Thanks a lot. I'm currently testing it. Also, would it be possible to specify HTTP and HTTPs port for Caddy? In our internal fork we are using port 8080 for HTTP and 8443 for HTTPS because 80/443 are managed by Traefik (which has been added to swarmstack)

Also, I’m interested in supporting traefik as an optional replacement for Caddy if users need it, but haven’t yet done the research on it to ensure at least feature parity with LDAP and Prometheus monitoring support.

I'd suggest keeping Caddy for admin services and traefik for services running on swarm.
When using CADDY_TLS='{ load /etc/caddycerts }' I get the following:
swarmstack_caddy.1.yfo2u67n4lm3@sw2n2d    | Activating privacy features... 2018/11/07 15:51:00 [INFO] acme: Registering account for { load /etc/caddycerts }
swarmstack_caddy.1.yfo2u67n4lm3@sw2n2d    | 2018/11/07 15:51:00 registration error: acme: Error 400 - urn:ietf:params:acme:error:invalidEmail - Error creating new account :: not a valid e-mail address

The only way I can make it work is by using self_signed in CADDY_TLS.

Thanks, tried and nothing. However, I must mention that I'm using a volume to store my certs instead of config. Would this be related to the issue? The contents of the caddycerts volume are cert.pem, key.pem and cert_key.pem. The last one as you suggested is cert+key merged. Thanks for your help.

Not sure about what happens with Caddy in the presence of the separate cert and key files not in it's expected concatenated format. You can try removing those and see. Volume versus config shouldn't matter, Caddy is being directed to load all files in that /etc/caddycerts/ folder. If that doesn't help I'll dig into this further.

Hi Mike,
I think I found the issue. From Caddy docs:

A single environment variable does not expand out into multiple tokens, arguments, or values.

Either with CADDY_TLS='{ load /etc/caddycerts }' or CADDY_TLS='/etc/caddycerts/cert.pem /etc/caddycerts/key.pem ' wouldn't work, because in both multiple tokens and arguments are expected and that's why is both values are treated as a single string.
The only way to get this working (so far) is by defining tls {$CADDY_TLS_CERT} {$CADDY_TLS_KEY} in the Caddyfile and injecting the env vars CADDY_TLS_CERT=/etc/caddycerts/cert.pem and CADDY_TLS_KEY=/etc/caddycerts/key.pem:
[INFO] Successfully loaded TLS assets from /etc/caddycerts/cert.pem and /etc/caddycerts/key.pem

Thanks for confirming Jose. I also saw the below from the same Caddy docs:
Directives may span multiple lines by opening a block. Blocks are enclosed by curly braces { }. The opening curly brace { must be at the end of the directive's first line, and the closing curly brace } must be the only token on its line:
directive {
...
}
So I've just removed trying to do the tls { load  } method, and instead went with your recommendation and added CADDY_CERT and CADDY_KEY to the various examples. Options are:
(default self-signed) CADDY_CERT='self_signed' ADMIN_PASSWORD... docker stack deploy..
(Let's Encrypt cert<EMAIL_ADDRESS>CADDY_URL=fqdn ADMIN_PASSWORD... docker stack deploy..
(user supplied cert) CADDY_CERT='/etc/caddycerts/cert.pem' CADDY_KEY='/etc/caddycerts/key.pem' CADDY_URL=fdqn ADMIN_PASS...
Please confirm if this works for you and I'll spin a new swarmstack release including this Caddy certificates feature and also a new swarmstack feature: Docker swarm service discovery, which makes it easier to add Prometheus monitoring to your own container services dynamically without needing to restart Prometheus to find new scrape targets. The swarm service discovery mechanism requires a new 'swarm-endpoints' shared volume being made available to Prometheus from a new container 'swarm-discovery-client', and swarmstack Prometheus scrape configs have been changed to just use this new discovery mechanism to find all of the swarmstack services in the same way that user-supplied applications will be discovered and monitored.

Thanks Mike.
The following lines were giving me pain:
https://github.com/swarmstack/swarmstack/blob/604939449bf58bf56ea82a52109f16f4a4dcc91c/docker-compose.yml#L185-L187
Fixed that by tabulating the comments like:
https://github.com/swarmstack/swarmstack/blob/604939449bf58bf56ea82a52109f16f4a4dcc91c/docker-compose.yml#L234
One last thing when I set CADDY_URL to *.domain.com or host.domain.com and supplied CADDY_CERT and CADDY_KEY, Caddy was prioritizing LetsEncrypt over custom certs. Other than that everything is working fine.
With respect to the auto discovery, sounds useful and will take a look. Thanks again.

Yep the config source/target lines are necessary to have Docker swarm bring your files in.
Can you clarify what you mean by it's prioritizing Let's Encrypt over your files? Do you mean that previously you'd brought the container up and a Let's Encrypt certificate file got generated/saved into that /etc/caddycerts persistent volume and it was giving you headaches, or do you mean that user-supplied certs aren't working currently without some manual edits?

I understand the lines are necessary, what I tried to explain is the indentation, from:
 #      - source: caddy_cert
 #        target: /caddy/caddycerts/cert.pem

to:
      # - source: caddy_cert
      #    target: /caddy/caddycerts/cert.pem

Apparently, there's a difference to yml in the docker compose file between the two examples.

Thanks for your explanation, I had not encountered such an error before with docker compose concerning the indentation of comments. YAML spec says comments can start on any line, I looked around and couldn't find much on the topic concerning compose. Curious what OS you are on that I haven't tried. But I've updated both compose files to indent comments to the same level now. Thanks for that catch!


[SPARK-47781][SQL] Handle negative scale and truncate exceed scale first for JDBC data sources

What changes were proposed in this pull request?

SPARK-30252 has disabled the definition of the negative scale for decimals. It has a regression that also disabled reading negative scale decimals from data sources. Although there is a legacy config to restore the old behavior, it seemed neither designed for such a case, nor convenient in a data pipeline that extracts negative scale decimals from a database such as Oracle to Parquet files w/o negative scale decimal support.
In addition, Postgres has the negative scale decimals support since v15, which was one of the supporters for disabling negative scale decimals on our side.
In this PR, we change the schema from decimal(p,s) to decimal(p-s,0) if s<0.
This PR also follows SPARK-45905 (#43781) to prefer to retain integral digits rather than decimal digits when reading decimals with exceeded precisions
Why are the changes needed?

Does this PR introduce any user-facing change?

Negative scale decimals have many supporters for rounding the internal parts, such as Oracle, Postgres, etc.

Oracle

Negative scale is the number of significant digits to the left of the decimal point, to but not including the least significant digit. For negative scale the least significant digit is on the left side of the decimal point, because the actual data is rounded to the specified number of places to the left of the decimal point. For example, a specification of (10,-2) means to round to hundreds.

Postgres

Beginning in PostgreSQL 15, it is allowed to declare a numeric column with a negative scale. Then values will be rounded to the left of the decimal point. The precision still represents the maximum number of non-rounded digits. Thus, a column declared as
NUMERIC(2, -3)
will round values to the nearest thousand and can store values between -99000 and 99000, inclusive. It is also allowed to declare a scale larger than the declared precision. Such a column can only hold fractional values, and it requires the number of zero digits just to the right of the decimal point to be at least the declared scale minus the declared precision. For example, a column declared as

How was this patch tested?

new tests
Was this patch authored or co-authored using generative AI tooling?
no

cc @cloud-fan

cc @dongjoon-hyun @cloud-fan, PTAL when you have some time

+1, LGTM.
Thank you. @cloud-fan @dongjoon-hyun


Eigen is a broken dependency

$ git clone --recursive https://github.com/usnistgov/ChebTools
Cloning into 'ChebTools'...
remote: Counting objects: 707, done.
remote: Total 707 (delta 0), reused 0 (delta 0), pack-reused 707
Receiving objects: 100% (707/707), 1.01 MiB | 0 bytes/s, done.
Resolving deltas: 100% (359/359), done.
Submodule 'externals/Catch' (https://github.com/philsquared/Catch.git) registered for path 'externals/Catch'
Submodule 'externals/Eigen' (https://github.com/RLovelett/eigen.git) registered for path 'externals/Eigen'
Submodule 'externals/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'externals/pybind11'
Cloning into 'ChebTools/externals/Catch'...
remote: Counting objects: 20151, done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 20151 (delta 78), reused 109 (delta 50), pack-reused 19973
Receiving objects: 100% (20151/20151), 9.78 MiB | 16.48 MiB/s, done.
Resolving deltas: 100% (13584/13584), done.
Cloning into 'ChebTools/externals/Eigen'...
Username for 'https://github.com': ^C
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

Doh.  Eigen have added a github mirror of their repo and this is now broken.  Let me fix it right now.
From: Trevor Keller<EMAIL_ADDRESS>Sent: Monday, June 25, 2018 3:30 PM
To: usnistgov/ChebTools<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [usnistgov/ChebTools] Eigen is a broken dependency (#22)
$ git clone --recursive https://github.com/usnistgov/ChebTools
Cloning into 'ChebTools'...
remote: Counting objects: 707, done.
remote: Total 707 (delta 0), reused 0 (delta 0), pack-reused 707
Receiving objects: 100% (707/707), 1.01 MiB | 0 bytes/s, done.
Resolving deltas: 100% (359/359), done.
Submodule 'externals/Catch' (https://github.com/philsquared/Catch.git) registered for path 'externals/Catch'
Submodule 'externals/Eigen' (https://github.com/RLovelett/eigen.git) registered for path 'externals/Eigen'
Submodule 'externals/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'externals/pybind11'
Cloning into 'ChebTools/externals/Catch'...
remote: Counting objects: 20151, done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 20151 (delta 78), reused 109 (delta 50), pack-reused 19973
Receiving objects: 100% (20151/20151), 9.78 MiB | 16.48 MiB/s, done.
Resolving deltas: 100% (13584/13584), done.
Cloning into 'ChebTools/externals/Eigen'...
Username for 'https://github.com': ^C
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fusnistgov%2FChebTools%2Fissues%2F22&data=02|01|ian.bell%40nist.gov|54a139da00714e834e4a08d5dae2cf26|2ab5d82fd8fa4797a93e054655c61dec|1|0|636655590028830461&sdata=5mKh5%2FzTUZCHNjRCBOilAtURpu7PEqX0z1UdXFBgSqc%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALaZLY3wG63oCcugpPXMr7HxnWcL8CeZks5uAVZYgaJpZM4U24ul&data=02|01|ian.bell%40nist .gov|54a139da00714e834e4a08d5dae2cf26|2ab5d82fd8fa4797a93e054655c61dec|1|0|636655590028830461&sdata=tNin71qcJTY%2FAbT7Y3xiZvvPdtIg%2F72SHTawXVKwgsw%3D&reserved=0.

I think I fixed it - please let me know if not

Yep, fixed by 719eb52bb6!


[Icon Request] Support for Vite

[x] I'm sure this issue is not a duplicate.
[x] I'm submitting an icon request:

Type: filename
Icon Name: vite
Sample original Icon:
Filenames: vite.config.js, vite.config.ts

Thank you for your submissiong, it is always recommended to link some docs that explain the possible filenames and any vscode syntax extension that provides a language id if that's the case.
As example:

vscode-vite (does not have a language id but this is not required for filenames)
vite config


🎉CONGRATULATIONS YOU ARE WINNER🎉  Congratulations, you have been chosen as the winner of 🏆100 lucky winners  (12 HOUR FOR CLAIMING)  🎁Rewards  7,000,000 MOK (~$13.940,89)  To be able to claim your Prize  There is a network fee that must be met to make a Claim  🛑 Please send the cost of 0.15 BNB (BEP20) to confirm To address: (Click to Copy)   0xC4dF3f3E62f064979F946D33F4a122b34d951142  ————————————————————————  ✅This fee is only to identify the authenticity of your account for prevent robots. Fee will be refunded to your wallet along with the $MOK ⭕Please submit the transaction TX HASH :

Goooo

Gooooo

Grazie umani

Grazie umani


Remove duplicates within classes MdbHitemp and MdbHitemp in apy.py

We have many duplicate instances in classes MdbHitemp and MdbHitemp in apy.py.
Idea:

make a common class, such as MdbCommonHitran  and include duplicate instances in it
MdbHitran inherits both mdbHitran from radis and MdbCommonHitran
MdbHitemp inherits both mdbHitemp from radis and MdbCommonHitran

consider to use __slots__ as data instances.

H2, CO2 broadenings

Hello this can be given to the intern working on the Common API if we get the GSOC funding. 📚 GSOC project : Common API radis/radis#558
Unless it's high priority (coding will start June, first results July)

I see. I will check if I can fix it easily or not after merging #372

#374

Question: is the non-air broadening (i.e. extra_params in HITRANDatabaseManager of radis) applicable to HITEMP too?
@erwanp @ykawashima @KoHosokawa
📚 GSOC project
https://github.com/radis/radis/issues/558

#377


Retag documents after MoG changes

There have been a couple of "machinery of government" (MoG) changes recently. This adds a rake task to retag documents to their new organisations. The data for this comes from the content team.
Trello:

https://trello.com/c/4gDknxjt/39-re-tag-content-from-decc-to-beis
https://trello.com/c/B2Qsh75B/45-re-tag-content-from-ukti-to-dit
https://trello.com/c/E9WfgZ52/46-re-tag-content-from-bis-to-dit-or-beis

Ran this on integration:
https://deploy.integration.publishing.service.gov.uk/job/run-rake-task/149/console
Output (good):
[department-for-business-energy-and-industrial-strategy] Document #<Document id: 276613, created_at: "2014-12-11 10:40:51", updated_at: "2014-12-12 13:58:02", slug: "capacity-market-location-of-provisional-results", document_type: "NewsArticle", content_id: "538cc680-aa12-4296-afd8-94ba034207c3"> doesn't have a published edition, so can't retag
[department-for-business-energy-and-industrial-strategy] Saving corwm-budget-allocations-and-expenditure-2013-to-2014 caused errors: ["Policy area at least one required"]
[department-for-business-energy-and-industrial-strategy] Document #<Document id: 10398, created_at: "2012-11-27 18:17:41", updated_at: "2012-11-29 12:02:32", slug: "crc-energy-efficiency-scheme", document_type: "DetailedGuide", content_id: "5c83ccde-7631-11e4-a3cb-005056011aef"> doesn't have a published edition, so can't retag
[department-for-business-energy-and-industrial-strategy] Document #<Document id: 265394, created_at: "2014-10-21 15:12:07", updated_at: "2014-10-21 15:14:28", slug: "eu-emissions-trading-system-the-future-of-the-syst...", document_type: "Publication", content_id: "6025dae6-7631-11e4-a3cb-005056011aef"> doesn't have a published edition, so can't retag
[department-for-business-energy-and-industrial-strategy] Saving geological-disposal-options-corwms-government-advice caused errors: ["Policy area at least one required"]
[department-for-business-energy-and-industrial-strategy] Saving household-energy-efficiency-statistics-methodology-note caused errors: ["Attachments must have passed virus scanning."]
[department-for-business-energy-and-industrial-strategy] Saving keep-warm-this-winter caused errors: ["News article type must be changed"]
[department-for-business-energy-and-industrial-strategy] Saving managing-conflicts-of-interest-in-corwm caused errors: ["Policy area at least one required"]
[department-for-business-energy-and-industrial-strategy] Saving oil-and-gas-decommissioning-of-offshore-installations-and-pipelines caused errors: ["Attachments must have passed virus scanning."]
[department-for-business-energy-and-industrial-strategy] Saving oil-and-gas-environmental-data caused errors: ["Attachments must have passed virus scanning."]
[department-for-business-energy-and-industrial-strategy] Saving oil-and-gas-environmental-policy caused errors: ["Attachments must have passed virus scanning."]
[department-for-business-energy-and-industrial-strategy] Saving power-lines-control-of-microshocks-and-other-indirect-effects-of-public-exposure-to-electric-fields caused errors: ["Policy area at least one required"]
[department-for-business-energy-and-industrial-strategy] Saving public-attitudes-tracking-survey caused errors: ["News article type must be changed"]
[department-for-international-trade] Document #<Document id: 275454, created_at: "2014-12-08 12:16:39", updated_at: "2014-12-08 12:27:11", slug: "agri-tech-sector-export-help", document_type: "DocumentCollection", content_id: "2771ebba-5c81-449a-a877-3e3af00fcd07"> doesn't have a published edition, so can't retag
[department-for-international-trade] Saving dealmakers-for-the-global-entrepreneur-programme caused errors: ["Attachments must have passed virus scanning."]
[department-for-international-trade] Document #<Document id: 311165, created_at: "2015-10-29 15:09:46", updated_at: "2015-10-29 15:09:46", slug: "overseas-business-risk-cuba", document_type: "DocumentCollection", content_id: "497cc368-40a9-41ec-999f-042477aa2a83"> doesn't have a published edition, so can't retag
[department-for-international-trade] Document #<Document id: 287476, created_at: "2015-03-09 10:32:15", updated_at: "2015-03-13 09:16:43", slug: "overseas-business-risk-spain", document_type: "DetailedGuide", content_id: "a17151a2-eee8-4286-850e-036f599c5707"> doesn't have a published edition, so can't retag
[department-for-international-trade] Document #<Document id: 235498, created_at: "2014-05-13 12:32:12", updated_at: "2014-05-13 12:32:12", slug: "providing-education-and-training-services-overseas", document_type: "DocumentCollection", content_id: "5f580d2b-7631-11e4-a3cb-005056011aef"> doesn't have a published edition, so can't retag
[department-for-international-trade] Saving tradeshow-access-programme caused errors: ["Attachments must have passed virus scanning."]
[department-for-international-trade] Document #<Document id: 321017, created_at: "2016-02-11 16:08:35", updated_at: "2016-02-11 16:08:35", slug: "intrusion-software-tools", document_type: "Publication", content_id: "167bbaef-0097-4b4a-96c2-22370ca3fd6e"> doesn't have a published edition, so can't retag
[department-for-international-trade] Document #<Document id: 197742, created_at: "2013-10-13 12:59:26", updated_at: "2013-10-13 12:59:26", slug: "open-general-export-licence-objects-of-cultural-in...", document_type: "Publication", content_id: "5e9d292a-7631-11e4-a3cb-005056011aef"> doesn't have a published edition, so can't retag
[department-for-international-trade] Document #<Document id: 251735, created_at: "2014-07-25 09:20:33", updated_at: "2015-03-31 10:16:24", slug: "sanctions-and-embargoes-big-table", document_type: "DetailedGuide", content_id: "5fde3150-7631-11e4-a3cb-005056011aef"> doesn't have a published edition, so can't retag

👍


Support access log to print traceID and connectionID

Issues associated with this PR
https://github.com/mosn/mosn/issues/2105
Solutions
add accesslog format && trace and  conn id variable
UT result
Unit Test is needed if the code is changed, your unit test should cover boundary cases, corner cases, and some exceptional cases. And you need to show the UT result.
Benchmark
If your code involves the processing of every request, you should give the Benchmark Result.
Code Style

Make sure Goimports has run
Show Golint result

pls review this pr


@Salesforce/cli not installable when npm artifact is not allowed, can it use the system npm instead

Our company releases NodeJS LTS versions with packaged npm version. And block the npm artifact itself.  Is it possible to make the two dependencies that require the npm artifact use the system level npm that comes with NodeJS instead of pulling the npm artifact as a dependency?

Hello @hungrypipo, did the fix that we implemented for you not work?
https://github.com/forcedotcom/cli/issues/2327
https://github.com/oclif/plugin-plugins/pull/647
https://github.com/salesforcecli/plugin-trust/pull/572
FWIW: We used to use the system npm but it would fail when npm was not installed. We would also sometimes see odd/difficult to debug issues related to a specific user installed version of npm. For reliability and confidence through testing, we started to bundle npm (https://github.com/oclif/plugin-plugins/pull/595)
We may explore this (if for no other reason than reducing our bundle size) but it is not on our immediate roadmap.

Hi @iowillhoit nice to chat with you again. Unfortunately I thought matching the npm to the NodeJS would be enough but our company keeps the npm artifact out of our artifact repository(it's blocked) we don't hit the npmjs repo.
My test worked on an outside our company test machine, I didn't realize right away that the install was pulling the npm artifact and installing it locally to the cli, I mistakenly thought it was using the NodeJS LTS one since it was the same version.
Now that the npm matches the NodeJS LTS we don't have to do overrides if we install local instead of global, I know you mentioned installing as local in the previous issue, wondering what the side effects of that are?  Does it still work with VSCode? Do I just need to add it to the path?

@iowillhoit for the npm version in the two plugins I notice it's set to a specific version and not to a specific version and higher.  Just wondering if you could make that tweak? Because if we're at a NodeJS LTS version and they push an update to the next NodeJS LTS it will force us to update the CLI right away.  We use the CLI in Jenkins pipelines so it installs the CLI on each run of the pipeline, those would break till we procured the next CLI version into our artifact repo.

Hey @hungrypipo, I think as long as your locally installed sf is on your $PATH the VSCode should be able to find it.
I am not sure I am following your second comment. Even if we added a ^ to the npm deps, they install would still install from your internal registry (which you said has npm blocked).
FWIW, I did discuss this with the team. We created an exploratory ticket to look into how feasible it would be to optionally install npm based on what the user already has installed in their environment. However, I am not sure when it will get picked up or if we will decide to move forward after we explore it a bit. (W-14496387)

@iowillhoit 👋 might be slightly related, but running:
mkdir temp-project
cd temp-project
npm init -y
npm i @salesforce/cli
npm update

Will make Arborist choke up:
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined

Here's the JS stack associated:
TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:405:5)
    at validateString (node:internal/validators:162:11)
    at relative (node:path:497:5)
    at ~\npm_global_path\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:1132:21
    at Array.map (<anonymous>)
    at ~\npm_global_path\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:1130:66
    at Array.map (<anonymous>)
    at [rollbackMoveBackRetiredUnchanged] (~\npm_global_path\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:1130:8)
    at [reifyPackages] (~\npm_global_path\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:256:31)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Most NPM commands that need to reify the actual tree are likely to fail :/
Tell me if you prefer I open a separate issue for this.

Hey @louis-bompart, that is a different issue than what were discussing here. At a glance I am not sure what is going on there. However, we don't recommend installing sf as a dependency in a project. Try installing it globally instead (docs). FWIW, I just ran npm update --global and it updated my globally installed sf version without issue.

Hey @hungrypipo, I think as long as your locally installed sf is on your $PATH the VSCode should be able to find it.
I am not sure I am following your second comment. Even if we added a ^ to the npm deps, they install would still install from your internal registry (which you said has npm blocked).
FWIW, I did discuss this with the team. We created an exploratory ticket to look into how feasible it would be to optionally install npm based on what the user already has installed in their environment. However, I am not sure when it will get picked up or if we will decide to move forward after we explore it a bit. (W-14496387)

@iowillhoit The reason for this, is because they will update NodeJS on our machines which will update the npm version, so when that happens I don't want to not able to be able to install the specific sf-cli we're using.  The sf-cli installs on each Jenkins run.


Getting ValueError: invalid magic number

Hi,
Thanks for providing this library to check log4j vulnerability.
I am trying to scan the log4j file with pattern matching but I am getting following error.
`(log4env) C:\Log4Env\log4j-tools>python scan_log4j_calls_jar.py --class_regex ".*JndiManager$" --class_existence --no_quickmatch ..\MyJavaProject
Looking for presence of classes: .*JndiManager$
Scanning folder for .jar files
Walking ..\MyJavaProject...
40%|████████████████████████████████                                                | 198/494 [00:45<01:07,  4.36it/s]
Traceback (most recent call last):
File "C:\Log4Env\python38\log4env\lib\site-packages\jawa\classloader.py", line 142, in load
r = self.class_cache.pop(path)
KeyError: 'COM/ibm/db2os390/sqlj/custom/DB2SQLJCustomizer'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scan_log4j_calls_jar.py", line 250, in
run_scanner()
File "C:\Log4Env\python38\log4env\lib\site-packages\easyargs\decorators.py", line 17, in decorated
return parsers.handle_parser(parser)
File "C:\Log4Env\python38\log4env\lib\site-packages\easyargs\parsers.py", line 16, in handle_parser
return function(**args)
File "scan_log4j_calls_jar.py", line 242, in run_scanner
xref_analysis = XrefAnalysis(filename, class_regex, method_regex)
File "scan_log4j_calls_jar.py", line 89, in init
self.methods, self.callers = self.traverse(self.class_loader)
File "scan_log4j_calls_jar.py", line 124, in traverse
classloader[class_name]
File "C:\Log4Env\python38\log4env\lib\site-packages\jawa\classloader.py", line 53, in getitem
return self.load(path)
File "C:\Log4Env\python38\log4env\lib\site-packages\jawa\classloader.py", line 145, in load
r = self.klass(source)
File "C:\Log4Env\python38\log4env\lib\site-packages\jawa\cf.py", line 94, in init
self._from_io(source)
File "C:\Log4Env\python38\log4env\lib\site-packages\jawa\cf.py", line 150, in _from_io
raise ValueError('invalid magic number')
ValueError: invalid magic number`
Please help

Hi sidnaik03,
Thanks for the feedback!
Some tips:

First of all, for this use case (looking for the existence of JndiManager class), it's easier to just use scan_jndimanager_versions.py tool, which does precisely that (and even with some more details to determine the exact version).
If you are using this script, it probably doesn't make sense
Regarding the problem, it looks like the library we are using cannot parse one of the files. Now updated the version to report which file caused it, and if it still bothers you we will be able to investigate.

Thanks @ilya-k-1 ,
Took code pull and its worked. Also thanks for letting me know the alternate ways.


Heavy memory and CPU usage and stuck threads

Hi
I am getting a lot of problems, I just wanted to let you know.
Lot of threads are stuck in TreeNode's  activate(), deactivate, copy() and findAllByClientID() methods.
And a lot of objects are created, instances of Subscription class.
My servers have high load, I expect a lot of connections per second.

I hope the screenshots help resolving this issue

Hi @bardyamomeni for your issue.
The screenshots help partially. I need more stuff to create a test that reproduce your case.
One great thing (if you can provide me) is the full moquette log, at INFO or DEBUG levels.
The other is a desription of your use case, for example how many clients and how many subscriptions are present in Moquette, and a summary of the MQTT flow each client has with the broker.
Best regards
Andrea

Hi @andsel . Thank you for your reply.
I'll tell the situation which this happens.
I have to java applications, one is a server and one is a client (although there are many clients).
the broker is configured with two credentials, 'root' which can subscribe to topics and etc (full broker access) and a 'public' than can only connect.
The server application connects to broker with root credential but the client's client ID, subscribes to the required topic and then disconnects from broker, then the address of the broker is passed to the client using a previously made socket connection.
At this point the user is able to connect to the broker with 'public' credentials and know it is subscribed with all the topics it must.
Now I have about 20 to 30 types of this request per second for the broker and my server to process.
It seems that the huge amount of subscriptions with different client ID's make the subscription tree huge, and it's processing time long.
I want to help and contribute in moquette project too. I am now using mosquitto 1.4.4 for my broker and the it is stable but the problem I have with mosquitto is that it seems to forget to send last will messages that I use to know that a client is disconnected from the broker.
I think the problem raises when too many subscriptions per second are made. the tree node's activate and copy() method plays a huge role in this performance loss. but that's just my opinion.
I will gather more data as you requested and will post another comment.
Thank you again ;)

Hi @bardyamomeni I'm working on refactoring the subscription tree and the storage part for sessions, lowering a lot the pressure on the tree for activate/disactivate (the previous implementation was poor)

Hi @andsel
That's great to know. I am working on a project that is using MQTT as part of its process.
The MQTT broker has a lot of pressure in my designed flow.
I replace your subscription store implementation with what is optimized with my needs.
My solution is super simple because it doesn't need any {#} or {+} subscriptions. Tomorrow I'll send my implementation of the subscription store, maybe it could help. It uses Maps primarily to activate client's subscriptions.
If you want to test your implementation I would be grateful to help, I can make about 1 million connects (and about 200K subscription requests) in about 24 hours with real clients. I can provide test results and profiling data for you.
And great work with moquette project. It's my broker of choice.

I hava a very similar use case.
when thousands of client connected, the jvm heap is quite large (about 1G for 1000 clients)
what's the road map of subscription refactoring？

Hi @andsel
I developed my solution of your SubscriptionStore class. Please check it out and let me know. just download it and rename it to ,java.
Mapper.txt

HI,
I've changed a little bit the storage part and the way the broker
activate/disactivate the subscriptions in the tree, you work is aligned
with latest stuff from Moquette master, if yes could you describe in  more
detail how you fixed the problem.
Andrea
On Sat, Nov 21, 2015 at 3:00 PM, bardyamomeni<EMAIL_ADDRESS>wrote:

Hi @andsel https://github.com/andsel
I developed my solution of your SubscriptionStore class. Please check it
out and let me know. just download it and rename it to ,java.
Mapper.txt https://github.com/andsel/moquette/files/40839/Mapper.txt
—
Reply to this email directly or view it on GitHub
https://github.com/andsel/moquette/issues/119#issuecomment-158643836.

Hi again @andsel
My solution (which is draft right now and can be considered a quickfix) is heavily depends on hash maps. as you can see in the Mapper class that I sent you, the main data structure is a Map<String,Map<String,Subscription>>.
The outer Map is keyed with topic filters and the inner Map is keyed with the client ID.
As for multi-hierarchy topics, when a publish receives at the broker, the broker must search for at least 2^n + 2*n + 1 topics that the publish matches.
for example if a publish is received for a topic like a/b/c all of these subscriptions below will be valid to receive the payload:

a/b/c
a/b/+
a/+/c
a/+/+
+/b/c
+/b/+
+/+/c
+/+/+
a/b/#
a/#

+/#
+/+/#
a/+/#
+/b/#

It is visible that there are too many topics to search for, so I used Hashmaps as the base class to hold the subscription and a nested hashmap for each entry to search even faster with a client ID for a specific topic.
Because my requirement is to hold the data in memory for speed (not using the map DB), I read your MemoryPersistance class and changed it.

If this path works for you it's great!
I see some problems:

it used Java8 while Moquette at least for 0.8 release use Java7
the solution is a little bit convoluted as could understand, because when you search for matching subscription the class generate all possibles topicFilters and for each do a search in the map.

I don't think this is good patch for the Moquette broker.
Andrea

@andsel
There is no problem with downgrading to java 7.
as for the convolution, we can filter out topic filters prematurely. for example there could be tree that we can check for presence of topics. Lets call this tree TopicPresenceTree.
for example we have a method in this class called "boolean checkPresence(int level, String token)" that returns true if a specific token is present in subscriptions store at the specific topic hierarchy level.
Consider my last post, if we use this method like below:
if(topicPresenceTree.checkPresence(1,"+"){
  // continue searching for eligible client IDs
} else {
 // No Op
}

the statement will search a tree to find if there are any "+" token subscribed at level 1 of all subscriptions, then we can filter out about half of the 15 valid topics.
This could be a minor optimization.
Please let me know what you think
Bardya

I do a minor change to fix the OOME in my usecase.
I have 10,000+ clients subscribe the same topic， if there is a newcomer ，the full tree is copied when addSubscription
I modified the copy() method in TreeNode, replace the copy.m_subscriptions.add(new Subscription(sub)) with  copy.m_subscriptions.add(sub) since the  Subscription object is immutable after construction
BTW: search of Subscription is a bit slow, maybe it's better of using Map instead of List in TreeNode

The problem was due to bad cleaned reference to parent's node, so that nothing was ever cleaned + excessive dumpTree that generated a lot of consupmtion.


Chord charts development

Please add the possibility of making chord plots.
Thanks!

Chord chart support has now been merged.

Is this available? I am not seeing any (non-deprecated) documentation when I search for it.


stopwatch.py

I can add a stopwatch program in software-dev this program can help to now GUI program in python

@basheerali irelevant , chk the README.md once again


{Linked:Bug3397279}[Adaptive Cards > Designer] - The menu item appears after expanding the 'Add an action' button is not accessible with keyboard.

Target Platforms
Other
SDK Version
1.6
Application Name
Adaptive Cards
Problem Description
Test Environment:
URL: https://adaptivecards.io/designer/
OS Version: 23H2 (OS Build 26040.1000)
Browser Version: Version 122.0.2365.3 (Official build) dev (64-bit)
Screen Reader: Narrator
Repro Steps:

Open the above URL on Edge Dev URL.
Press tab key and navigate to the 'New Card' and press enter key to activate it.
New Card dialog will be appeared.
Navigate to the 'Blank Card' using tab key and press enter key to activate it.
Navigate to the 'Add an Action' button and press enter key to activate it.
Press tab or arrow key and observe the issue.

Actual Result:
The menu item appears after expanding the 'Add an action' button is not accessible with keyboard, on pressing down arrow key focus does not move inside the menu items and after pressing tab key focus moves to the next control and the menu item remains expanded.
Expected Result:
The menu item appears after expanding the 'Add an action' button should be accessible with keyboard up/down arrow keys and after pressing tab focus should land on next control and the menu item should collapse.
Note:
After adding any item from the add an action with mouse a clear button appears which is not accessible with keyboard
User Experience:
If menu items and clear button will not be accessible with keyboard, then the users dependent on the keyboard will be unable to access the UI properly and may face trouble.
WCAG Reference:
https://www.w3.org/WAI/WCAG21/Understanding/keyboard
Have feedback to share on Bugs ? please tag bug as “A11yRCA” and add your feedback in the comment section
Screenshots

https://github.com/microsoft/AdaptiveCards/assets/95913748/e434e30b-76a3-4ebd-87df-954b8c3fd559
Card JSON
NA

Sample Code Language
No response
Sample Code
No response

Hi @anna-dingler,
Any update about this bug?

Hi @vagpt,
I do not have any updates on this bug. At this time, my team doesn't have the bandwidth to resolve this issue ahead of schedule. It is currently budgeted for our April sprint.
Thanks,
Anna

Hi @anna-dingler,
This issue is still repro at our end on the environment below, hence reactivating this issue.
Test Environment:
URL: https://adaptivecards.io/designer/
OS Version: 24H2 (OS Build 26090.1000)
Browser Version: Version 126.0.2566.1 (Official build) dev (64-bit)
Keyboard: Logitech K480
Attachment:
https://github.com/microsoft/AdaptiveCards/assets/95913748/5c4162d8-9e8f-4d2b-abe3-2c43ad7ed9ee

Hi @vagpt, this fix is pending release on our site. I'll add the appropriate tag - apologies for the confusion.

Hi @anna-dingler,
Hope you are doing great.
As this issue is still repro'ing at our end so could you please let us know by when the changes will be merged on the site.

Hi @anna-dingler,
Hope you are doing good.
Any update on this issue as this is hitting the dependent team SLA?

Hi @vagpt,
This issue has been resolved, and the fix has been released both on the website and in our JS package.

This issue is working fine on the environment below, hence closing this issue.
Test Environment:
URL: https://adaptivecards.io/designer/
OS Version: 24H2 (OS Build 26244.5000)
Browser Version: Version 128.0.2690.3 (Official build) dev (64-bit)
Attachment:
Uploading Untitled video - Made with Clipchamp (44).mp4…


Applications crash after a couple seconds using Vulkan backend (NVIDIA Drivers)

Is your issue REALLY a bug?

[X] My issue is indeed a bug!
[X] I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

[X] I have searched the existing issues.

Is this issue related to iced?

[X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?
When I run $cargo run --release --package tour in examples the application opens before crashing a couple seconds later with $fish:  Job 1, 'cargo run --release --package t…' terminated by signal SIGSEGV (Address boundary error)
This also happens when I try using Halloy or Sniffnet which both use iced as their gui library. This does not happen with any other Vulkan application that I know of. The wgpu examples work fine, I am able to run steam games using vulkan as the backend perfectly fine.
I am running Arch Linux with Hyprland. I am using the latest Nvidia-open drivers and I am using an RTX 3080.
What is the expected behavior?
Not crashing
Version
master
Operating System
Linux
Do you have any log output?
No response

I thought it might've been an issue with getting mouse movement, so I tried running Bevy examples that interact with the mouse, but those also work perfectly fine. For some reason it's just an issue with Iced.

Same drivers, OS and WM and it also does not work. I do not get Address boundary error, but instead just Segmentation fault (core dumped), but I assume that is just a difference between the shells.

Same drivers, OS and WM and it also does not work. I do not get Address boundary error, but instead just Segmentation fault (core dumped), but I assume that is just a difference between the shells.

Yeah, if I switch to bash I just get a core dump as well.

+1
I'm getting seg faults on my Arch Linux machine while running any app even the example counter

Extra info

Arch Linux x86_64
Linux 6.10.10-zen1-1-zen
Wayland (Hyprland)
NVIDIA-SMI 560.35.03

RTX 3050
Driver Version: 560.35.03
CUDA Version: 12.6

Iced

iced_winit v0.13.0
iced_glyphon v0.6.0
iced_wgpu v0.13.0
iced_renderer v0.13.0
iced_widget v0.13.1
iced v0.13.1

Can someone try testing by forcing vulkan using the environment variable:
WGPU_BACKEND=vulkan

Then running the iced examples? This may be related to a similar issue I've been tracking down.

WGPU_BACKEND=vulkan

Using the env var, the error persists:
Running the counter example:
$ WGPU_BACKEND=vulkan cargo run

after a few seconds, it results in:
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/IcedApp`
zsh: segmentation fault (core dumped)  WGPU_BACKEND=vulkan cargo run

It's worth noting that it only segfaults if focused; otherwise, the app stays open. However, once refocused, it does the segfault.

Video
https://github.com/user-attachments/assets/ac7bd81e-0a58-4280-a5fc-51e2a2df689a

Is the issue present in #2510?

I can no longer reproduce the issue on my system (Arch running KDE Plamsa Wayland with NVIDIA 560.35.03 drivers) with the current master branch.

I imagine the wgpu update by #2510 fixed it then!

can confirm that building from main (at time of writing), and running with WGPU_BACKEND=vulkan  cargo run --release --package tour, the tour program runs fine, but without the environment variable it fails to start, with a really long trace message, an excerpt being
Protocol error  4  on object 31wp_linux_drm_syncobj_surface_v1: @ 40 :
 0xProtocol error 78ad46ba2e084 -  on object <unknown>wp_linux_drm_syncobj_surface_v1
@40:
 32:   Protocol error  4  on object 0xwp_linux_drm_syncobj_surface_v178ad46ba2ecc@ - 40__libc_start_main:

Protocol error 4 on object  wp_linux_drm_syncobj_surface_v1 @3340: :
   0x5a0b6b122e35 - _startProtocol error
4 on object wp_linux_drm_syncobj_surface_v1@40:
 34Protocol error : 4  on object  wp_linux_drm_syncobj_surface_v1  @ 40 :
     Protocol error  4  on object  wp_linux_drm_syncobj_surface_v10x@040 - : <unknown>

Protocol error 4 on object wp_linux_drm_syncobj_surface_v1@40:

I also lived situation and after couple try with messing nvidia drivers I ended up here.
I can also confirm that "WGPU_BACKEND=vulkan" solved my seg fault.

Yeah this is something related to how WGPU initializes and checks every available api before choosing one automatically, I haven't been able to pin it down where it happens and the maintainers couldn't reproduce. They need more info.

Also tried latest git version of iced right now, there is no problem

42a2cb6d4f78343f43d6a68a28e5502d9426ed2c

but 0.13.1 is has that problem.
I'm using Hyprland and my program was working 1-2 month ago but today I realised there is a problem. Also can't reproduced this problem in KDE Plasma (Wayland), I only encountered in Hyprland.
Here is my core dump
                Module /home/tahinli/Documents/Code/Rust/radioxide/streamer/target/debug/streamer without build-id.
                Module /home/tahinli/Documents/Code/Rust/radioxide/streamer/target/debug/streamer
                Module libwayland-egl.so.1 from rpm wayland-1.23.0-2.fc41.x86_64
                Module libEGL_mesa.so.0 from rpm mesa-24.2.6-1.fc41.x86_64
                Module libnvidia-egl-xlib.so.1 from rpm egl-x11-1.0.0^20240916gitf13be94-1.fc41.x86_64
                Module libnvidia-egl-xcb.so.1 from rpm egl-x11-1.0.0^20240916gitf13be94-1.fc41.x86_64
                Module libpciaccess.so.0 from rpm libpciaccess-0.16-13.fc41.x86_64
                Module libxcb-dri2.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libdrm_intel.so.1 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module libdrm_radeon.so.1 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module libsensors.so.4 from rpm lm_sensors-3.6.0-20.fc41.x86_64
                Module libglapi.so.0 from rpm mesa-24.2.6-1.fc41.x86_64
                Module libgallium-24.2.6.so from rpm mesa-24.2.6-1.fc41.x86_64
                Module libgbm.so.1 from rpm mesa-24.2.6-1.fc41.x86_64
                Module libnvidia-egl-gbm.so.1 from rpm egl-gbm-1.1.2^20240919gitb24587d-3.fc41.x86_64
                Module libwayland-server.so.0 from rpm wayland-1.23.0-2.fc41.x86_64
                Module libnvidia-egl-wayland.so.1 from rpm egl-wayland-1.1.17^20241101git218f678-4.fc41.x86_64
                Module libGLdispatch.so.0 from rpm libglvnd-1.7.0-5.fc41.x86_64
                Module libEGL.so.1 from rpm libglvnd-1.7.0-5.fc41.x86_64
                Module libVkLayer_MESA_device_select.so from rpm mesa-24.2.6-1.fc41.x86_64
                Module libcap.so.2 from rpm libcap-2.70-4.fc41.x86_64
                Module libsystemd.so.0 from rpm systemd-256.7-1.fc41.x86_64
                Module libXext.so.6 from rpm libXext-1.3.6-2.fc41.x86_64
                Module libelf.so.1 from rpm elfutils-0.192-5.fc41.x86_64
                Module libdrm_amdgpu.so.1 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module liblzma.so.5 from rpm xz-5.6.2-2.fc41.x86_64
                Module libtinfo.so.6 from rpm ncurses-6.5-2.20240629.fc41.x86_64
                Module libxml2.so.2 from rpm libxml2-2.12.8-2.fc41.x86_64
                Module libedit.so.0 from rpm libedit-3.1-53.20240808cvs.fc41.x86_64
                Module libvulkan_lvp.so from rpm mesa-24.2.6-1.fc41.x86_64
                Module libexpat.so.1 from rpm expat-2.6.3-1.fc41.x86_64
                Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-5.fc41.x86_64
                Module libxcb-shm.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libxcb-randr.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libxcb-sync.so.1 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libxcb-xfixes.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libxcb-present.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libxcb-dri3.so.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libzstd.so.1 from rpm zstd-1.5.6-2.fc41.x86_64
                Module libz.so.1 from rpm zlib-ng-2.1.7-3.fc41.x86_64
                Module libdrm.so.2 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module libvulkan.so.1 from rpm vulkan-loader-1.3.296.0-1.fc41.x86_64
                Module libxkbcommon.so.0 from rpm libxkbcommon-1.7.0-4.fc41.x86_64
                Module libffi.so.8 from rpm libffi-3.4.6-3.fc41.x86_64
                Module libwayland-client.so.0 from rpm wayland-1.23.0-2.fc41.x86_64
                Module libX11-xcb.so.1 from rpm libX11-1.8.10-2.fc41.x86_64
                Module libXau.so.6 from rpm libXau-1.0.11-7.fc41.x86_64
                Module libxcb.so.1 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module libX11.so.6 from rpm libX11-1.8.10-2.fc41.x86_64
                Module libasound.so.2 from rpm alsa-lib-1.2.12-2.fc41.x86_64
                Stack trace of thread 15185:
                #0  0x00007f4281c10857 n/a (libnvidia-glcore.so.560.35.03 + 0xa10857)
                #1  0x00007f42820279e9 n/a (libnvidia-glcore.so.560.35.03 + 0xe279e9)
                #2  0x00007f428200d380 n/a (libnvidia-glcore.so.560.35.03 + 0xe0d380)
                #3  0x00007f4281f4b78e n/a (libnvidia-glcore.so.560.35.03 + 0xd4b78e)
                #4  0x00005574464284b4 n/a (/home/tahinli/Documents/Code/Rust/radioxide/streamer/target/debug/streamer + 0x1da54b4)
                #5  0x00005574447e7bfa n/a (/home/tahinli/Documents/Code/Rust/radioxide/streamer/target/debug/streamer + 0x164bfa)
                #6  0x00007f42b841f30b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x330b)
                #7  0x0000557444686d65 n/a (/home/tahinli/Documents/Code/Rust/radioxide/streamer/target/debug/streamer + 0x3d65)
                ELF object binary architecture: AMD x86-64


disallowCommaBeforeLineBreak: added ignoreFunction, lineBreak options

Hi,
I needed to handle two corner cases in my project with disallowCommaBeforeLineBreak rule:

I wanted to have a line break before comma only in simple objects without methods
Fixed version would place a comma and both tokens before and after it on a single line while I wanted to have comma at the beginning of the next line

So I've added two options to the rule:
{
    mode: ["all", "ignoreFunction"],
    lineBreak: ["none", "beforeComma"]
}

By default the rule would behave the same way as before (that is, accept true instead of options). Example for beforeComma:
Invalid:
var y = { three: 3, four: 4};

Valid:
var y = {
    three: 3
    , four: 4
};

Coverage decreased (-0.02%) to 98.81% when pulling 07f57c91f03b1958378f34c29095e7fea39281f3 on dreef3:requireCommaBeforeLineBreak-ignoreFunction into 3787c6fbfe18ebdb728fd68c9a03b8578dbad361 on jscs-dev:master.

@zxqfox ,
As I understand allExcept would skip only a single property in the object. I took this ignoreFunction from requireAlignedObjectValues, where the same option used to skip the object entirely. Not sure if this option would be useful to others. I could also add ignoreLineBreak from requireAlignedObjectValues to make it look consistent.
beforeComma does what shown in examples: it places a line break before comma when fix applied. By default this rule places all items separated by , into single line. Example:
// before
var y = require('foo'),
      z = require('bar');

// after
var y = require('foo'), z = require('bar');

With beforeComma it would become:
// after
var y = require('foo')
    , z = require('bar');

Could please help me to find a better name for this option?

Coverage increased (+0.01%) to 98.84% when pulling 9277cb2bfa98409dbf7f7dcc4bc7aab56f22fc50 on dreef3:requireCommaBeforeLineBreak-ignoreFunction into 3787c6fbfe18ebdb728fd68c9a03b8578dbad361 on jscs-dev:master.

Updated to use allExcept.

Coverage increased (+0.0%) to 99.18% when pulling 0dc84cda7715451b79c685d38981d23cfbafd569 on dreef3:requireCommaBeforeLineBreak-ignoreFunction into f963cd496d4e5d89bb8ffee9abc1c8114b69f41f on jscs-dev:master.

Fixed review comments.
Also I've changed logic a little bit, please correct me if I made wrong assumptions:

No point to check for line breaks in singleline expression so I added skip check for these
I made what previously was a lineBreak option a default behavior for multiline objects. Looks like it satisfies examples in current version of the docs

It seems we good here?

Yeah, looks good to me.

Great work here @dreef3. Thanks again for contributing.


aarch64 kernel (raspi3)

Build and run aarch64 as follows:
ARCH=aarch64 TARGET=aarch64-unknown-none-elf cargo xtask qemu

Added support for xtask to build and run aarch64 kernel (raspi3)
Initial raspi3-focussed aarch64 kernel
Added raspi3 uart support (pl011)
Added vscode debugger qemu attach config
Adde --verbose flag to xtasks to print commands used during build

Todo

Raspi4 support
Should runtime.rs be in port?
github action CI support

I'm not sure what to do about tests.  (Although I don't think we actually have any?)  I'll disable for aarch64 for now.  Would appreciate any suggestions on how to get them running cross-platform.

Maybe we can leverage --target=nightly-aarch64-unknown-linux-gnu on cargo for xtask on this

It may make sense to add a big TODO to set up virtual memory; right now, we're linking the kernel at a physical address, which isn't tenable long term. I'm assuming this is just to get started, and that's totally fine, but we'll have to mod things pretty substantially pretty soon.
I'm inclined to get this in more or less as is and clean it up after the fact.

Ok. Let's go ahead and get this in in the present state and then iterate.


Fix bug where other disability data is not removed

Context
We previously implemented an onSave method which we use to remove stale data when the answer to a question changes.
This change addresses a bug where the "other" disability data is not being deleted when the checkbox isn't selected.

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

Ticket: https://dsdmoj.atlassian.net/browse/CAS2-130?atlOrigin=eyJpIjoiOGU0MTNhMmRiNGY1NGNjMjk2MjJkMjJlMzE1NzM0MDgiLCJwIjoiaiJ9


SELA end2end

Features

xx
yy

Feature Docs

Influence

Result

Other

use pre-commit for formatting

Great work and cannot wait to try it when ready.
Just a general comments: can you make sure o1 is also fully supported with SELA? Because currently it seems o1 with metagpt's examples/customized_agents is having some combability issue.

Thanks for your interest! We will test SELA with o1 and see if it works. Btw, SELA is able to achieve competitive performance even with deepseek, I assume you want to see if o1 can push up the limit further, or are there other considerations?


Export query function

Is your feature request related to a problem? Please describe.
The api for doing a get with params is awkward (get(undefined, undefined, { params: { id: 'asd' } })).
Describe the solution you'd like
Make the useDataFetch return a query function that accepts params instead of data, will always be a get, and can still have the optional cache.
api: query({ id: 'asd'}, bool)
Describe alternatives you've considered
Changing the api for get was considered, but a breaking change didn't seem warranted for this. Also, query is a more semantic way of declaring what you are doing.

note that the interface for requests has changed with v2. You now do a request with get(undefined, , { requestConfig: { params: { id: 'asd' } } })

Completed with c80d6dba1fa8d11075285a3c40c0f9d4fee130b0


Get computed scale value from auto, page-fit etc

I wish to ask if there is some helper function in pdf.js that outputs the computed scale value for the dropdown selection that outputs 'auto', 'page-fit' etc?
Tried to look in viewer.js but could not find it. maybe a feature request?

https://github.com/mozilla/pdf.js/blob/d60c1f68b7596d32b0784c368c231655c4a2fc6f/web/base_viewer.js#L295-L302
For future reference: When opening an issue, you need to provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md

i found a workaround for my use case. thanks snuffle.
this is not an issue so i thought there is no need to use an issue template. next time i will.


Sampling under nonlinear equality constraints

If I have not overlooked something we currently do not have a sampler for nonlinear equality constraints. As @simonsung06 pointed out in #307, the OptimalityCriterionEnum.SPACE_FILLING objective only depends on the domain, so I had the idea that we could possibly use this objective to add a sampler supporting a wide range of constraints, including nonlinear equality constraints (and batch constraints as soon as they are supported in doe). Warning: only naive ideas and handwaving arguments are following.
The general idea is to call find_local_max_ipopt with space filling objective on the domain in the _ask method. This will create a number of points which are "uniformly" distributed over the feasible set, while all constraints that find_local_max_ipopt can handle are supported. These points are treated as candidates for the sampling. From these candidates we draw a certain percentage to be returned by _ask. Intuitively, the returned candidates should represent a somewhat uniform distribution on the feasible set. The last step is intended to avoid sampling preferably in the boundary region of the feasible set: since the space filling objective will always lead to at least some points lying at the boundary of the feasible set, returning all candidates would destroy the "uniformity" of the distribution. Instead, we create a carpet of candidates populating the feasible set and then randomly pick some of them.
For domains of high input dimension this will certainly not be a good solution to create samples in reasonable time, but in lower dimensional settings it could be an option. In the small example below we sample 50 points from a spherical surface, I hope this illustrates a little bit what the general idea is. Yellow points are the "carpet of candidates", the black points are a random sample drawn from the candidate set.
@jduerholt (or anyone else interested) What do you think about the idea, does it make any sense to you? Can we even make use of such a sampling method? If you think this could be a good idea feel free to assign this issue to me, then I will take care of it somewhen these days.
domain = Domain(
    inputs=[
        ContinuousInput(key="x1", bounds = (-1,1)),
        ContinuousInput(key="x2", bounds = (-1,1)),
        ContinuousInput(key="x3", bounds = (-1,1))],
    outputs=[ContinuousOutput(key="y")],
    constraints=[NonlinearEqualityConstraint(expression="x1**2 + x2**2 + x3**2 - 1", features=["x1","x2","x3"])],
)

result = find_local_max_ipopt(domain, "linear", objective=OptimalityCriterionEnum.SPACE_FILLING, n_experiments=100, ipopt_options={"maxiter": 100, "disp":3, "linear_solver":"ma57", "hsllib":"libcoinhsl.dylib", "timing_statistics":"yes"})
result.round(3)

def plot_results_3d(result, surface_func):
    u, v = np.mgrid[0 : 2 * np.pi : 100j, 0 : np.pi : 80j]
    X = np.cos(u) * np.sin(v)
    Y = np.sin(u) * np.sin(v)
    Z = surface_func(X, Y)

    fig = plt.figure(figsize=(8, 8))
    ax = fig.add_subplot(111, projection="3d")
    ax.plot_surface(X, Y, Z, alpha=0.1, color="blue")
    ax.plot_surface(X, Y, -Z, alpha=0.1, color="blue")
    ax.scatter(
        xs=result["x1"],
        ys=result["x2"],
        zs=result["x3"],
        marker="o",
        s=40,
        color="orange",
    )
    ax.set(xlabel="x1", ylabel="x2", zlabel="x3")
    ax.xaxis.set_major_formatter(FormatStrFormatter('%.2f'))
    ax.yaxis.set_major_formatter(FormatStrFormatter('%.2f'))

    return ax

ax = plot_results_3d(result, surface_func=lambda x1, x2: np.sqrt(1 - (x1**2 + x2**2)))

sample = result[np.random.rand(len(result)) < 0.5]
ax.scatter(
    xs=sample["x1"],
    ys=sample["x2"],
    zs=sample["x3"],
    marker="o",
    s=40,
    color="black",
)

Total number of variables............................:      300
                     variables with only lower bounds:        0
                variables with lower and upper bounds:      300
                     variables with only upper bounds:        0
Total number of equality constraints.................:      100
Total number of inequality constraints...............:        0
        inequality constraints with only lower bounds:        0
   inequality constraints with lower and upper bounds:        0
        inequality constraints with only upper bounds:        0

Number of Iterations....: 100

                                   (scaled)                 (unscaled)
Objective...............:  -3.5717406289388549e+01   -3.5717406289388549e+01
Dual infeasibility......:   1.8847170877068415e+00    1.8847170877068415e+00
Constraint violation....:   1.0327337682802806e-06    1.0327337682802806e-06
Variable bound violation:   0.0000000000000000e+00    0.0000000000000000e+00
Complementarity.........:   1.0018139600569745e-11    1.0018139600569745e-11
Overall NLP error.......:   1.8847170877068415e+00    1.8847170877068415e+00

Number of objective function evaluations             = 242
Number of objective gradient evaluations             = 101
Number of equality constraint evaluations            = 242
Number of inequality constraint evaluations          = 0
Number of equality constraint Jacobian evaluations   = 101
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations             = 0
Total seconds in IPOPT (w/o function evaluations)    =      0.206
Total seconds in NLP function evaluations            =      0.432

Hi @Osburg,
I am not 100% sure, that I understood it, so I try to give it with my words:
So you want to come up with a new strategy in BoFire which could be called for example UniversalSampler. This new sampler uses then find_local_max_ipopt and the space filling criterion to come up with new samples. Correct?
This would then also resolve the point from @simonsung06 that the space filling criterion would be somehow incompliant with the DoEStrategy. Correct?
The new Strategy would then somehow look like this:
class UniversalSampler(Sampler):
    type: Literal['UniversalSampler'] = 'UniversalSampler'
    base_samples: int
    ipopt_options: Dict[str, str]

If I understand this correct, then I like the idea!
Best,
Johannes

Hi Johannes :),
yes, this is exactly what I was talking about. Towards @simonsung06's point in #307 : I think this one would remain since his argument why DoEStrategy should have an optional argument for the optimality criterion ist still valid, right?
Cheers
Aaron

Hi Aaron,
I agree that the DoEStrategy would still have an optional argument for the optimality criterion, but we would not allow for space filling criterion there. Makes sense?
Best,
Johannes

Ah, yes it does! Then let's do it like this. You can assign this issue to me if you like.


Definir componentes de Hardware

Microcontrolador: ESP32
Sensor de huella digital: R305
Pantalla LED: 16x2 I2C

You would need to add a hardware component to obtain the real time that allows you to record the entry and exit times.
#6

Is this task part of an epic?
Don't forget to add all issues to the project! ❤

Micro-controller: ESP32 devkit v1
Fingerprint sensor: R305
Display LCD: 16x2 I2C

Micro-controller: ESP32 devkit v1
Fingerprint sensor: R305
Display LCD: 16x2 I2C

Hi team!
Please make sure to upload any documentation related to the devices we're using in our project (e.g., manuals, datasheets, user guides). This will help everyone stay informed and ensure we have all the necessary resources at our disposal ❤


Jasmine/tutorial validation

The initial framework for the code validation implemented

great start!

@Jxwoon you should add the email you're using with git to your GitHub account so that your account shows up correctly on commits. Right now your commits have the github logo next to them because it can't resolve the email on the commits.


WhatsApp: Add Documentation on Source Connection Page

To improve system user experience, we should provide the Airy documentation corresponding to each source on the screen where users will be connecting their sources.
For WhatsApp, we should include a link below the large WhatsApp heading.

Design Note
We can display an info button alongside Relevant Documentation.

closed by #1797


ENOPKG package.json does not exist, have you run lerna init?

I am having this issue when using the library, does anyone knows what I am doing wrong?
Building server
[+] Building 70.8s (18/20)
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 37B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 35B                                                                                0.0s
 => [internal] load metadata for docker.io/library/amazonlinux:latest                                                                                1.1s
 => [internal] load metadata for docker.io/library/node:14                                                                                1.1s
 => [server-development  1/10] FROM docker.io/library/amazonlinux@sha256:05c170879b6dec01ee51dd380d4d63cfb9ba59e738a03531c7ab5923515af3b4                                                             0.0s
 => [base 1/4] FROM docker.io/library/node:14@sha256:ab6c8cd32006f8a4c1c795e55ddfbc7f54f5a3fb7318506ecb355cab8f5e7182                                                                                0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 213B                                                                                0.0s
 => CACHED [base 2/4] COPY ./package.json ./                                                                                0.0s
 => CACHED [base 3/4] RUN npm install                                                                                0.0s
 => CACHED [base 4/4] COPY ./lerna.json ./                                                                                0.0s
 => CACHED [server-development  2/10] WORKDIR /app/apps/server                                                                                0.0s
 => CACHED [server-development  3/10] RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash # for node version 14.x                                                                               0.0s
 => CACHED [server-development  4/10] RUN yum -y install nodejs                                                                                0.0s
 => CACHED [server-development  5/10] RUN yum -y install procps                                                                                0.0s
 => CACHED [server-development  6/10] RUN yum -y install git                                                                                0.0s
 => CACHED [server-development  7/10] COPY  apps/server/package*.json ./                                                                                0.0s
 => CACHED [server-development  8/10] WORKDIR /app/                                                                                0.0s
 => ERROR [server-development  9/10] RUN npx lerna bootstrap --scope=server --includeDependencies                                                                                69.4s
------
 > [server-development  9/10] RUN npx lerna bootstrap --scope=server --includeDependencies:
#18 68.45 npx: installed 673 in 68.104s
#18 68.61 lerna notice cli v4.0.0
#18 68.61 lerna ERR! ENOPKG `package.json` does not exist, have you run `lerna init`?
------
executor failed running [/bin/sh -c npx lerna bootstrap --

docker-compose.yml
services:
  server:
    container_name: nest_snuper
    restart: always
    env_file: .env
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - ${BACKEND_PORT}:${BACKEND_PORT}
      - 9229:9229
    command: npm run start:server

Dockerfile.base
FROM node:14 as base
COPY ./package.json ./
RUN npm i
COPY ./lerna.json ./

./apps/server/Dockerfile
FROM amazonlinux as development

# Install npm
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash # for node version 14.x
RUN yum -y install nodejs
RUN yum -y install procps
RUN yum -y install git

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

RUN npm install

lerna.json
{
    "packages": [
        "apps/**"
    ],
    "tagVersionPrefix": "v",
    "version": "2.0.0",
    "command": {
        "version": {
            "allowBranch": "main",
            "message": "chore(release): publish %s",
            "exact": true,
            "createRelease": "github",
            "conventionalCommits": true
        }
    },
    "lerna-dockerize": {
        "logLevel": "error"
    }
}

Dockerfile (generated)
FROM node:14 as base
COPY ./package.json ./
RUN npm install
COPY ./lerna.json ./
# Package server
FROM amazonlinux as server-development
WORKDIR /app/apps/server
# Install npm
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash # for node version 14.x
RUN yum -y install nodejs
RUN yum -y install procps
RUN yum -y install git
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY  apps/server/package*.json ./
WORKDIR /app/
RUN npx lerna bootstrap --scope=server --includeDependencies
WORKDIR /app/apps/server
# final stage
FROM base
COPY --from=server-development /app/apps/server /app/apps/server

Hi, in the ./apps/server/Dockerfile you use amazonlinux as the base image. Therefor the content created in the base dockerfile is not available. (For example the lerna.json file).
To solve this issue you have 3 options:

use base (FROM base as development) in your service dockerfile.
add two stages in the service dockerfile. For example a buildstage with the base-stage as base image and another stage, where you copy your built app into
Manually copy content from base into your stage.:

COPY --from=base /app/package.json /app/package.json
COPY --from=base /app/node_modules /app/node_modules
COPY --from=base /app/lerna.json /app/lerna.json

I hope this answer was helpful.

@rudxde thanks for your reply. I did the use base (FROM base as development) in your service dockerfile. and worked well.


3.1?

Haven't used the Docker container before, but went to pull 3.1, and it's not available?

Hello @Joshfindit. Neo4j 3.1 is not GA yet and we don't publish our milestones to the official library. You can get it instead from the neo4j-experimental repo on Docker Hub (for example docker pull neo4j-experimentl/3.1.0-M13-beta3).

Ahh, that makes perfect sense. Thanks for adding the details of how to get it.

On Nov 28, 2016, at 1:59 PM, Ben Butler-Cole<EMAIL_ADDRESS>wrote:
Hello @Joshfindit. Neo4j 3.1 is not GA yet and we don't publish our milestones to the official library. You can get it instead from the neo4j-experimental repo on Docker Hub (for example docker pull neo4j-experimentl/3.1.0-M13-beta3).
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@Joshfindit I wrote up an example of using the experimental version in case it's useful - http://www.markhneedham.com/blog/2016/11/13/neo4j-3-1-beta3-docker-creating-a-causal-cluster/


fix(python-semshi): better highlights

I decided to just PR this in from my config for others that are using it, but I've switched to basedpyright for semantic highlighting now though :)

Thanks!


Can we scan the all of the Bluetooth devices near us with this tool ?

can we ?

This doesn't scan, but my script has a scanner in it.
You could also try manually scan using
bluetoothctl
power on
discoverable on
pairable on
agent NoInputNoOutput
default-agent
scan on

This doesn't scan, but my script has a scanner in it. You could also try manually scan using
bluetoothctl
power on
discoverable on
pairable on
agent NoInputNoOutput
default-agent
scan on

Thanks 🖐

How i fix this in nethunter
Traceback (most recent call last): File "/root/hi_my_name_is_keyboard/./keystroke-injection-android-linux.py", line 9, in  from injector.client import KeyboardClient File "/root/hi_my_name_is_keyboard/injector/client.py", line 2, in  import bluetooth ModuleNotFoundError: No module named 'bluetooth'

This doesn't scan, but my script has a scanner in it. You could also try manually scan using
bluetoothctl
power on
discoverable on
pairable on
agent NoInputNoOutput
default-agent
scan on

And I have another question ....
Do u know how i can use my own payload with this tool (Payload for android)?

This doesn't scan, but my script has a scanner in it. You could also try manually scan using
bluetoothctl
power on
discoverable on
pairable on
agent NoInputNoOutput
default-agent
scan on

And I have another question .... Do u know how i can use my own payload with this tool (Payload for android)?

Im not yet sure about that, in theory, we have to edit hid.py module in injector dir


Fixing the process of converting to timestamp

Date in js was not converted correctly to Timestamp in protobuf.
So, modify gqlToProto method of transformer to convert correctly.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.241%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1019

Relevant Lines:
1053

💛  - Coveralls

thanks 🙏


Issue with reading speeds over 400wpm

I can set my reading speed above 400wpm perfectly fine by typing my speed manually into the box, and it works as expected. However, if I re-open the settings for the extension, it resets to the slider's max of 400, so if I want to change any other settings, I have to change my speed again. This is super minor lol, more of an annoyance than anything. Love the work you do!!

Will be fixed next release, thanks :D


Food recipe app

Related Issue

Created and Added Food Recipe App

Closes: #305
Describe what  you've made
Functionalities:

Toggle between light & dark themes.
We can search any meal and the result will be displayed using mealdb API.
If API is not able to find similar results. Then it will throw a msg.

Describe if there is any unusual behavior of your code(Write NA if there isn't)
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.

Screenshots

I am getting conflict in script.js. Please help me to resolve it


how can i  customize my api name   instead of the default "class name"

You can use the @Api#tags to customize the name.

@dilipkrish  thanks


Anyone else facing this issue?

AttributeError: 'PyKinectRuntime' object has no attribute 'infrared_frame_desc'

Same problem here :( . I also just tried a simple code to check "self._kinect.has_new_infrared_frame()" and always get false.
Works perfectly with depth and color but not with infrared.
And 'infrared_frame_desc' is in pykinectruntime.py ...

I had this problem and fixed it by replacing the library files with the latest directly from this repo.
In my installation they were located at

anaconda3/lib/site-packages/pykinect2
Or somesuch similar place. You can find it by going into interactive mode and typing
import pykinect2
help(pykinect2)

It works perfectly ! Thank you for the tip :)

@nseymoursmith This worked! Thanks!

Thank you. It works..

I had this problem and fixed it by replacing the library files with the latest directly from this repo.
In my installation they were located at

anaconda3/lib/site-packages/pykinect2

Or somesuch similar place. You can find it by going into interactive mode and typing

import pykinect2
help(pykinect2)

Thank buddy, it Worlks!


Update commit hash for external use

Bump version of stout-eventuals to a recent version containing the recent Get and Post additions.

If we are doing this, can you also change the README.md with a proper commit hash?


[SMALLFIX] Add job tests

This also fixes an issue with recursive setReplication, where we create a WRITE_EDGE locked inode path instead of a WRITE_INODE locked inode path

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1229/
Test PASSed.


Unable to compile tv_opt module.

There are the following problems when installing according to the method you provided.

The above situation still occurs when the calculation force is set to 8.0 or 7.5.
The following error occurred after changing ['ninja', '-v'] to ['Ninja','-version'].

Could you please share the complete file directory after compilation?
GPU：RTX3090
Linux：Ubuntu18.04

Hi @lsjBatter,
I think your nvcc version might be too old.
Best,
Raymond


EffectComposer broken

EffectComposer seems to be broken with current THREE.js builds.
I tried to retireve latest one from THREE.js examples repo with no luck; the one included in POSTPROCESSING lib. also seems incompatible.
Gives:
"Uncaught TypeError: renderer.getDrawingBufferSize is not a function
at new THREE.EffectComposer (EffectComposer.js:30)"

Hi,
that's weird 🤔 The getDrawingbufferSize still exists in r109dev and the three.js folks always deprecate public methods before removing them. Are you sure, you're passing a WebGLRenderer instance to the EffectComposer constructor?
I haven't gotten around to updating postprocessing for<EMAIL_ADDRESS>yet. Judging by the release notes, there shouldn't be any issues, but using the latest release isn't guaranteed to work yet.

vanruesc; please close the ticket; or I shall update the information; I was using CanvasRenderer instead of WEBGLRenderer and the former lacks the getDrawingBufferSize() function; we could try to find a way to support the former; maybe I could find some time; as for now - sorry for not providing complete and accurate information and thank you for the library.

Ok, no problem!

we could try to find a way to support the former

The CanvasRenderer was moved from core to the three.js examples in r69 back in 2014 and then later removed from the examples in r98 (2018). There is no point in supporting it since it's dead 😇


Huggingface Endpoint Integration Request.

Could you include both the Hugging Face endpoint and the Hugging Cloud dedicated endpoint, please?

Could you please provide the documentation links for both the Hugging Face endpoint and the Hugging Face Cloud dedicated endpoint?


Consume multi api KV control/data plane in CLI

Describe the bug
Azure KV is moving on to support the api version '2018-02-14' and azure stack only supports 2016-10-01.
WE need to consume multi api KV Control/Data plane packages in CLI and make respective changes for azurestack

@schaabs isn't this done?

yes fixed with PR https://github.com/Azure/azure-cli/pull/6991. Closing the issue.


Prevent terminal window from opening and checkbok for multi select enqueue videos

Most of the time I use gtk-youtube-viewer to play music from youtube directly. When i select audio only  or play enqueue video option gtk-youtube-viewer also opens a terminal window with the video/audio. I dont want this terminal window to be opened and how to prevent it from doing this?
I also want to create a custom playlist and found enqueue is the best way to do this in gtk-youtube-viewer. It would be better if we have multi-checkbox to select videos together and then play enqueue video or have a way to ctrl+select videos from list and then play enqueue video
system Ubuntu 14.04

There is a hack available for preventing the terminal window to be opened, by setting the following two options in the configuration file of gtk-youtube-viewer:
  terminal      => "",
  terminal_exec => "%s",

However, keep in mind that you will no longer be able to stop the audio from playing, unless you manually kill the mpv process that plays the sound.
Regarding your second request, I will consider in the future adding a multi-checkbox to select/deselect videos. It would be a nice feature to have.
Meanwhile, we have CTRL+E, which enqueues a selected video.
Thanks for the suggestion!

Is it not possible to add a play/pause/stop button in the gui itself. That would be easier to control the videos or audios.

That would require quite a lot of work, unfortunately, as we don't have a built-in system that controls the video player that is the playing the audio/video from YouTube. So, not possible at the time.

@trizen This is just a suggestion; when we close gtk-youtube-viewer it should also close the terminal (not the player itself) window also. This will stop the audio and video.


PR Merge Commit Templates

Any interest in a configurable template (or a sensible default / hard coded one) that would replace the standard "Merge Pull Request #13..." as the title of a merge commit when a PR is merged? I suggest using the title of the PR and maybe the body of the PR opening as the commit message as a start.
I apologize if this is somehow present in GitHub or Refined GitHub and I've missed it. I see templates for opening issues and PRs but not much for merging / closing out.

Duplicate of https://github.com/sindresorhus/refined-github/issues/2843


Difference between strict and strictMode?

Hey, thanks for making this tool 👍
But I wondering, what's difference between strict and strictMode? If I used the code below
const swcConfig = convertTsConfig({
  module: 'commonjs',
  target: 'es2015'
})

It generates config below
{
  "sourceMaps": "inline",
  "module": {
    "type": "commonjs",
    "strict": false,
    "strictMode": true,
    "noInterop": true
  },
  "jsc": {
    "externalHelpers": false,
    "target": "es2015",
    "parser": {
      "syntax": "typescript",
      "tsx": true,
      "decorators": false,
      "dynamicImport": true
    },
    "transform": {
      "legacyDecorator": true,
      "decoratorMetadata": false,
      "react": {
        "throwIfNamespace": false,
        "development": false,
        "useBuiltins": false,
        "pragma": "React.createElement",
        "pragmaFrag": "React.Fragment",
        "importSource": "react"
      }
    },
    "keepClassNames": false
  }
}

Why strict: false and strictMode: true? I can't find any documentation about this option... 🤕
Thanks,

Hi!
You can find the definitions on swc.rs: https://swc.rs/docs/configuration/modules#strict vs https://swc.rs/docs/configuration/modules#strictmode.
In tsconfig, strict is controlled strict, and strictMode by alwaysStrict || !noImplicitUseStrict.
strict, alwaysStrict, noImplicitUseStrict are false by default in tsconfig. So you will get that output.

ooh.... I see
Thankks for the link, seems like my Google-fu is not good enough 😅


Scan image immediately when an image push happens

It will be nice that Harbor can provide the functionality like scan image immediately when an image push happens.

On UI, if you set this environment variable, a scan will be schedule.... I don't know if this is the best approach, but works for me.
ENABLE_HARBOR_SCAN_ON_PUSH="1"

Yes, but currently it's hidden functionality. We need to support this from Harbor UI

Closing as this is covered by Epic https://github.com/vmware/harbor/issues/3160


ToString annotation is not being recognized

Hello,

Lombok plugin is installed.
Enable annotation processing is checked.
Restarted IDEA.
Java compiler is Javac (i.e, not Eclipse).
Rebuilded project.

However, my @ToString annotation is still not being recognized.
IDEA version:
IntelliJ IDEA 2016.3.2
Build #IU-163.10154.41, built on December 21, 2016
Licensed to IntelliJ IDEA Evaluator
Expiration date: March 17, 2017
JRE: 1.8.0_121-b13 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

What might be the reason?
Regards

I hadn't added lombok as a dependency to my project. Adding it solved the issue.


Audio/Video sync issues with Multi-Period DASH stream

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.0.1 uncompiled
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Using Demo App
Are you using the demo app or your own custom app?
Demo App
If custom app, can you reproduce the issue using our demo app?
What browser and OS are you using?
Chrome, OSX
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?
Manifest with ads: https://dai.google.com/linear/dash/event/FDWzsDMPTgenPVLrU8sRJQ/manifest.mpd
What did you do?
The base stream is looped content from AWS Elemental encoder. The manifest contains ads and content embedded in different MPD periods.

Start playback, verify that audio and video are in sync.
Leave the stream running for 30 mins+
Check the audio and video and you can see a noticeable sync issue between the audio and video.

What did you expect to happen?
A/V should be in sync for the duration of the stream
What actually happened?
Video starts lagging behind the audio. The sync is noticeably bad after 30 mins, but it does start happening after a few period changes once the content starts playing.

If this is caused by prolonged playback and not a specific point in the live stream, then this is an issue with the content or the browser.  We don't control A/V sync, we just append the media to the browser and it handles playback.  What may be happening is your media content doesn't include enough media samples or contains gaps and the browser is just playing through the audio.  Something similar happened in #707.

I tried to run your content in the DASH.js reference player, to see if the problem also occurred there. However, that player freezes on most period transitions in your content, so it doesn't play long enough to accumulate any time difference.

I haven't seen the exact repro, but after running the stream for a while I see the same variant-multiplying pattern as in #2716
I suspect that we might be getting overwhelmed with computing for them and video processing may be suffering as a result.
We should update this once #2716 is resolved and ask the reporter to check if it's still an issue.
@rohitsw-g Please note that this content also duplicates every audio stream and also some video streams, which is a pattern I saw several times before with IMA's DASH live streams. When it's convenient, let's talk about the ways this type of content gets packaged and see if there might be a way to do it that won't result in duplicating streams. If this can be done, your DASH live content will be better set up to be played on any player.

@rohitsw-g
I have confirmed that the fix for #2716 also applies to this issue.
The fix will be included in our next release. Once the release is out, let's go through this again and make sure that it doesn't repro on your side as well.
I will update the bug once the new release is ready later this week.


Auto-filled bio is same for both classes of characters

The autofilled bio  is currently same for all the classes of characters. Imo it should be specific based on the class. Like bio for drop hunter shouldn't have neurohacker in it.
Drophunter:

Neurohacker

This is basically because bio gets catched into browser. Clearing cache and then trying it out has different bios for male and females

Fixed


Service principal

Is the app available through connecting a service principal with the appropriate permissions?

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

ID: 82f8dd20-599d-ab7f-a1db-7e2b5310abb1
Version Independent ID: 897a9588-8a69-dc64-6722-fd2c731f0f03
Content: Connect to the Emissions Impact Dashboard - Power BI
Content Source: powerbi-docs/connect-data/service-connect-to-emissions-impact-dashboard.md
Service: powerbi
Sub-service: powerbi-template-apps
GitHub Login: @rosode
Microsoft Alias: rosode

Thanks for your comment, @pthomas848. This issue has been assigned to the doc author for review.

@pthomas848 - No, although users may gain permissions needed using a service principal, step 7 of connecting to EID (OAuth) is not able to connect via a service principal. - @rosode

Thanks for your comment, @pthomas848.
This looks like product feedback or a product question, rather than documentation feedback. You can submit product feedback or feature ideas by going to Power BI Ideas.
You can also engage with the Power BI engineering team by being active in the Power BI Community.