Inject into executable path option

Hey, I know this is still pretty new but I was wondering if the -p option is going to be added to cyan too. Thanks!

nope, it's useless, and cyan aims to remove some of the garbage from pyzule

What about tweaks like Watusi/Regram that crash if not injected to the executable path?? I'm guessing that's gonna be a problem since you use them too no?

nope, it's useless, and cyan aims to remove some of the garbage from pyzule

What about tweaks like Watusi/Regram that crash if not injected to the executable path?? I'm guessing that's gonna be a problem since you use them too no?

huh? no they dont, are you using the debs for those tweaks? they arent meant to be injected into ipas
extract the tweaks from an existing ipa meant for sideloading and inject those, it'll work

nope, it's useless, and cyan aims to remove some of the garbage from pyzule

What about tweaks like Watusi/Regram that crash if not injected to the executable path?? I'm guessing that's gonna be a problem since you use them too no?

huh? no they dont, are you using the debs for those tweaks? they arent meant to be injected into ipas
extract the tweaks from an existing ipa meant for sideloading and inject those, it'll work

Actually no, Fouad the developer of Regram always advice ppl to copy files & inject Regram.dylib into executable path ( for those with IPAs & sideloading). I used pyzule alot, and always used -p option with it, I hope to see it in Cuan.
You can add it, if its needed, user just can pass it in command.
Much appreciated.

oh yeah, i remember this, it actually works completely fine without it in @executable_path ,, he just hardcoded a check to make sure it's there. kinda nonsensical.. i can send you a patched dylib if you message me on telegram however, this feature wont be added to cyan

@asdfzxcvbn Yes, same files and same flags...
pyzule -i IG356.ipa -o IG356_Tweaked.ipa -f Regram.dylib Regram.Bundle/ libWatusiToolsSL.dylib WatusiTools.bundle/ -p
and Cyan:
cyan -i IG356.ipa -o IG356_Tweaked.ipa -f Regram.dylib Regram.Bundle/ libWatusiToolsSL.dylib WatusiTools.bundle/
both worked, BUT with Cyan I need to go and refresh my license (already logged in) in order to use features & IT HAPPENS EVERYTIME I close app and re-open it...
I tried with Sideloadly too (Just exporting ipa), same thing...
Worked without any issues with pyzule, u can try it ur self.

this is literally what i just told you lol

it actually works completely fine without it in @executable_path ,, he** just hardcoded a check to make sure it's there**. kinda nonsensical.. i can send you a patched dylib if you message me on telegram

fouad makes this an issue on purpose for no real reason. also you didnt use the same flags, cyan doesnt even have -p ... also why is your ".bundle" capatalized?


update to 3 card hoempage design and footer link

Changes in this PR:
update to 3 card hoempage design and footer link
Jira card / Rollbar error (etc)
https://national-archives.atlassian.net/jira/software/projects/FCL/boards/136?selectedIssue=FCL-450
Screenshots of UI changes:
Before

After

Video After
after-video.webm

[ ] Requires env variable(s) to be updated

Hi @Donna-H ,
on top of what I shared directly with you, I've now looked at your video and have the following feedback.
Mobile:

In the yellow page, can you add 1rem padding above the headline ' Find out more about FCL'
(so it has more space between the text and the top yellow border.

Can you decrease the space after the headline 'Find out more about FCL' 1rem should be enough. maybe 1.25rem.

Align headline with link list (they are just not quite aligning.

Here's a marked up image...


Add assertions

As proposed on Reddit, the code should be enriched with assertions to document and check the invariants of the functions.

I added assertions for pointer access and iterator dereferencing.

Todo:

[ ] Add a note to file README.md explaining how assertions can be switched off.

Done.


ng build error: Invalid version: "15.2-15.3"

🐞 Bug report
Command (mark with an x)

[ ] new
[x] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Description
 When i build project with Angular CLI, I get this error:
An unhandled exception occurred: Transform failed with 1 error: error: Invalid version: "15.2-15.3" See "C:\Users\MOHAMM~1\AppData\Local\Temp\ng-JBqIfM\angular-errors.log" for further details.
And in angular-errors.log file:
[error] HookWebpackError: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
    at makeWebpackError (E:\workingfolder\test-app\node_modules\webpack\lib\HookWebpackError.js:48:9)
    at E:\workingfolder\test-app\node_modules\webpack\lib\Compilation.js:3057:12
    at eval (eval at create (E:\workingfolder\test-app\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:98:1)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
-- inner error --
Error: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
    at failureErrorWithLog (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:1557:15)
    at E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:1346:29
    at E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:637:9
    at handleIncomingPacket (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:734:9)
    at Socket.readFromStdout (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:604:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)

🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 13.2.0
Node: 16.13.2
Package Manager: npm 8.4.0
OS: win32 x64

Angular: 13.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1302.0
@angular-devkit/build-angular   13.2.0
@angular-devkit/core            13.2.0
@angular-devkit/schematics      13.2.0
@schematics/angular             13.2.0
rxjs                            7.5.2
typescript                      4.5.5

Literally was coming here to post the exact error. thanks

This comes from browserslist
npx browserslist
and_chr 97
and_ff 95
and_qq 10.4
and_uc 12.12
android 97
baidu 7.12
chrome 97
chrome 96
chrome 95
chrome 94
edge 97
edge 96
firefox 96
firefox 95
firefox 94
firefox 91
firefox 78
ie 11
ios_saf 15.2-15.3
ios_saf 15.0-15.1
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 2.5
op_mini all
op_mob 64
opera 82
opera 81
safari 15.2-15.3
safari 15.1
safari 14.1
safari 13.1
samsung 16.0
samsung 15.0

The versions interval comes from here :
ios_saf 15.2-15.3

clearing .browserslistrc makes compilation happy again but this is not a real solution !

This comes from browserslist
npx browserslist
and_chr 97
and_ff 95
and_qq 10.4
and_uc 12.12
android 97
baidu 7.12
chrome 97
chrome 96
chrome 95
chrome 94
edge 97
edge 96
firefox 96
firefox 95
firefox 94
firefox 91
firefox 78
ie 11
ios_saf 15.2-15.3
ios_saf 15.0-15.1
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 2.5
op_mini all
op_mob 64
opera 82
opera 81
safari 15.2-15.3
safari 15.1
safari 14.1
safari 13.1
samsung 16.0
samsung 15.0

The versions interval comes from here :
ios_saf 15.2-15.3

clearing .browserslistrc makes compilation happy again but this is not a real solution !

works. thanks

Removing content or properly configurating .browserslistrc file fixes it indeed. Thanks @idwebmedia

Removing content or properly configurating .browserslistrc file fixes it indeed. Thanks @idwebmedia

But i mean i want to have the configuration from the Browserlistrc file?

This doesn't solve my problem. I am building a library, not an app. The library doesn't have a .browserlistrc file. There's no .browserlistrc in the root folder either. When I run ng build my-library I get the following:
Building Angular Package

------------------------------------------------------------------------------
Building entry point 'my-library'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in Ivy partial compilation mode.
Transform failed with 1 error:
error: Invalid version: "15.2-15.3"

Any ideas?

@abf7d
add a .browserlistrc with this content to your library
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version

Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

package.json
{
...
  "browserslist": [
    "and_chr 97",
    "and_ff 95",
    "and_qq 10.4",
    "and_uc 12.12",
    "android 97",
    "baidu 7.12",
    "chrome 97",
    "chrome 96",
    "chrome 95",
    "chrome 94",
    "edge 97",
    "edge 96",
    "firefox 96",
    "firefox 95",
    "firefox 94",
    "firefox 91",
    "firefox 78",
    "ie 11",
    "ios_saf 15.0-15.1",
    "ios_saf 14.0-14.4",
    "kaios 2.5",
    "op_mini all",
    "op_mob 64",
    "opera 82",
    "safari 13.1",
    "samsung 16.0",
    "samsung 15.0"
  ],
  ...
}

Works for me.

add a .browserlistrc with this content to your library

This worked for me. Thanks!

Are you serious, Angular apps cannot run on the newest versions of IOS anymore?
Should it really be an improvement?
I suppose this has passed the internal tests, i.e. deemed fine that Angular apps cannot run on the newest versions of IOS anymore.
I must say, that I totally disagree on that position.
Is this going to remain, because then I must revert to the previous version of Angular.
Is it the official policy of Angular, that going forward support for IOS should be discontinued?

this isnt fun
https://github.com/nrwl/nx/issues/8768
with .browserslistrc
or without .browserslistrc
or an empty .browserslistrc
nothing works
nx fails out of the box when a project is attempted to be created with npx create-nx-workspace@latest

@henrikdahl8240, this is just a bug in the parsing logic of Safari browser versions which needs to be corrected.
We expect browserslist to return an entry for each version ("safari 15.2", "safari 15.3") instead of a range  ("safari 15.2-15.3").
This issue is also causing by a change in a transitive dependency which was released over the weekend caniuse-lite which as a result is also causing our (angular-cli) CI to be red.
I should be able to land a fix for this tomorrow.

@alan-agius4 OK. So will it be version 13.2.1 so we can just run update once more?

Yes, once release 13.2.1should contain the fix for this issue…

@alan-agius4 , do you think it may also be released tomorrow or when do you think it may be released?
My real point obviously is, if I should rollback or just wait until tomorrow.

I resolved the problem.
Create a file in the root directory with the name ".browserslistrc"
and put into it the following content:
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
not ios_saf 15.2-15.3
not safari 15.2-15.3

@henrikdahl8240, this is just a bug in the parsing logic of Safari browser versions which needs to be corrected.
We expect browserslist to return an entry for each version ("safari 15.2", "safari 15.3") instead of a range ("safari 15.2-15.3").
This issue is also causing by a change in a transitive dependency which was released over the weekend caniuse-lite which as a result is also causing our (angular-cli) CI to be red.
I should be able to land a fix for this tomorrow.

ok it seems apple gang flanked and no one knew it could happen. After releasing my app thrut heir playstore process I deemed apple a failed organization. Execs stole all the money and they left nothing to make their R&D ripe. so beware of the apple gang as well.

I resolved the problem. Create a file in the root directory with the name ".browserslistrc" and put into it the following content:
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
not ios_saf 15.2-15.3
not safari 15.2-15.3

this solutions did not work for my nx/angular
thanks for trying

my suggestion is to roll it back
all fluff no stuff
and no huff
re-think what the ground conditions are
and proceed with caution
simple
if you can create an nx project and run nx report and compile an nx project... that should be a flag ship unit test

regular expressions are fairly fail safe if modeled properly... bulletproof
any version logic should rightfully be using regular expressions
just another helpful suggestion
if you have any snippets Im happy to assist

Yes, once released 13.2.1should contain the fix for this issue.

It should be fixed in Angular 12 too.
Thank you.

This workaround seems to work:
npm install<EMAIL_ADDRESS>--save-dev --save-exact

If don't, add to npm overrides or yarn resolutions.

To resolve the issue , edit the browser list on Package.json file , the browserlistrc file isn't taken into consideration.
and use a configuration that explicitly specifies not to build for these Browser versions , like this one :
"browserslist": [
"android 97",
"chrome 97",
"chrome 96",
"chrome 95",
"chrome 94",
"edge 97",
"edge 96",
"firefox 96",
"firefox 95",
"firefox 94",
"firefox 91",
"firefox 78",
"ios_saf 15.0-15.1",
"ios_saf 14.0-14.4",
"kaios 2.5",
"opera 82",
"safari 13.1",
"samsung 16.0",
"samsung 15.0"
]
You can verify if the modification is taken into account by running the following command : npx browserslist

@abadakhshan, the fix will also be back ported to version 12.

Had the same issue, using Angular v.13.1.1. Removing the line "last 2 Safari major versions" from the file .browserslistrc fixed this issue for me.

To resolve the issue , edit the browser list on Package.json file , the browserlistrc file isn't taken into consideration.
and use a configuration that explicitly specifies not to build for these Browser versions , like this one : "browserslist": [ "android 97", "chrome 97", "chrome 96", "chrome 95", "chrome 94", "edge 97", "edge 96", "firefox 96", "firefox 95", "firefox 94", "firefox 91", "firefox 78", "ios_saf 15.0-15.1", "ios_saf 14.0-14.4", "kaios 2.5", "opera 82", "safari 13.1", "samsung 16.0", "samsung 15.0" ]
You can verify if the modification is taken into account by running the following command : npx browserslist

this solution still fails nx project
package.json
{
...
  "browserslist": [
    "android 97",
    "chrome 97",
    "chrome 96",
    "chrome 95",
    "chrome 94",
    "edge 97",
    "edge 96",
    "firefox 96",
    "firefox 95",
    "firefox 94",
    "firefox 91",
    "firefox 78",
    "ios_saf 15.0-15.1",
    "ios_saf 14.0-14.4",
    "kaios 2.5",
    "opera 82",
    "safari 13.1",
    "samsung 16.0",
    "samsung 15.0"
  ]
}

meanstack02@admin lmig % nx run-many --all --target build
✔  nx run api:build (4s)

✖  nx run lmds:build:production

✔ Browser application bundle generation complete.
Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

NX   Ran target build for 2 projects (5s)

✖    1/2 failed
✔    1/2 succeeded [0 read from cache]

See Nx Cloud run details at https://nx.app/runs/AenVG4NCJI0

Also seeing this issue Angular 12

This workaround seems to work:
npm install<EMAIL_ADDRESS>--save-dev --save-exact

If don't, add to npm overrides or yarn resolutions.

Having this error after using this workaround

Facing same issue in Angular 12 @alan-agius4

Fix is merged and we're triggering a release now, should be out soon.

This is fixed in v12.2.16 and v13.2.1, please update if you are experiencing this issue. Users on v11 shouldn't be affected.

ok this looks good now... thank you for the response to this
nx is building

This is fixed in v12.2.16 and v13.2.1, please update if you are experiencing this issue. Users on v11 shouldn't be affected.

I do also have to problem in v13.1.x do I need to upgrade to v13.2.x or will it also be fixed in this version

@sass1997, you will need to update to v13.2.1.

I have updated to 13.2.1 but still got this error.

@henrikdahl8240 okay maybe it is currently not available I only thought it is about the angular-cli package and this is available in version 13.2.1

@gkTim , yes, since yesterday evening, Danish time, but it is not.

You need to update @angular/cli and @angular-devkit/build-angularto version13.2.1and not@angular/core`.
You can run the below command:
ng update @angular/cli

@alan-agius4 what about if we are running angular 12? Running the command ng update @angular/cli pushed all my libs up to angular 13. But we need to stay on 12

@JKennedy24 Perhaps you should have used @angular/cli@TheVersionYouPreferred?

For anyone using NX it's tracked here: https://github.com/nrwl/nx/issues/8768

I have updated to 13.2.1 but still got this error. (Nx repo maybe also an existing error there?)

I confirm the same - using Nx and after upgrading to 13.2.1 nothing changed. Still the same error.

I had to run:
ng update<EMAIL_ADDRESS>ng update<EMAIL_ADDRESS>--legacy-peer-deps
And this worked

@alan-agius4 I would like to confirm, that after I have run ng update @angular/cli compilation goes without any issue.

12.2.6 upgrade alone does not work for those building libraries.
ng-packager also needs an update (12.2.7 worked)

I resolved the problem. Create a file in the root directory with the name ".browserslistrc" and put into it the following content:
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
not ios_saf 15.2-15.3
not safari 15.2-15.3

This worked for me! Thanks.

added the following lines to the default .browserslistrc, and it was resolved.
not ios_saf 15.2-15.3
not safari 15.2-15.3

@Sampath-Lokuge Please allow me to ask you a question, which is a bit off topic. I would say that I am rather mastering Angular and I have a master's degree in computer science. I could also be interested in developing native IOS and Android apps, e.g. using Ionic. Therefore I would like to kindly ask you, is it relatively easy and quick to learn or is it a huge field it requires many, many hours for studying in order to do something meaningful, i.e. professional app, when considering the Ionic contribution in workload?

Hi @henrikdahl8240
If you know Angular then learning Ionic is super easy. I would like to help you here. i.e. I can recommend good courses and etc. to you. You can find out my email on my Git profile.

Hi @henrikdahl8240
Yes, I have developed around 30 Native Ionic/Angular apps within the last 6 years for the USA and European clients. So we can have almost any native feature using Capacitor and Cordova plugins. It has that much of a huge list of native plugins.
Cordova Plugins: https://ionicframework.com/docs/native
Capacitor Plugins: https://github.com/riderx/awesome-capacitor

Updating with ng update didnt resolve it, in my case adding the 2 lines in .browserslistrc did

added the following lines to the default .browserslistrc, and it was resolved.
not ios_saf 15.2-15.3 not safari 15.2-15.3

It works
Thanks

hello guys,
adding all of the above solution didnt work for me.
So I had to run npm audit fix --force after updating .browserslistrc, and it worked for me.

Hello guys, I am really new to angular (but have used maven a lot).
I would like to learn how to pack a angular app with maven and run it from a app-server like weblogic for eg.
If I remeber correct used this tutorial (or any plain vanilla angular-app I guess would work as well):
https://vorozco.com/blog/2019/2019-09-11-Packagin-Angular-8-Apps-War.html
But during this work I run into the same problem as in this thread.
I did not have a .browserlistrc file.
But I had a package.json-file.
I just took a wild stab in the dark and changed the following in that file:
"devDependencies": {
"@angular-devkit/build-angular": "~13.1.2",
"@angular/cli": "~13.1.2",
to
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.1",
"@angular/cli": "~13.2.1",
Voila it builds.
Please comment if this is a bad solution.
How ever it now seems to be able to pack witk maven and run from my weblogic 14.1.1
Best regards
Fredrik

What is the impact of the built artefacts when excluding iOS Safari and Safari from the list of browsers please? Any negative impact we should be aware of?
And, i understand this to be a work-around, think the right solution is to make transitive dependencies work in the build process. Any perspectives and timelines here?
Cheers,

you should yourself create .browserlistsrc file incase it is not present in your project folder.

So editing .browserslistrc is a nonsense. Just update your ng upto 13.2. Check your global and local versions of Angular CLI.

This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
For additional information regarding the format and rule options, please see:
https://github.com/browserslist/browserslist#queries
For the full list of supported browsers by the Angular framework, please see:
https://angular.io/guide/browser-support
You can see what browsers were selected by your queries by running:
npx browserslist
last 1 Chrome version
last 1 Firefox version
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

I had to remove

package.json
{
...
  "browserslist": [
    "and_chr 97",
    "and_ff 95",
    "and_qq 10.4",
    "and_uc 12.12",
    "android 97",
    "baidu 7.12",
    "chrome 97",
    "chrome 96",
    "chrome 95",
    "chrome 94",
    "edge 97",
    "edge 96",
    "firefox 96",
    "firefox 95",
    "firefox 94",
    "firefox 91",
    "firefox 78",
    "ie 11",
    "ios_saf 15.0-15.1",
    "ios_saf 14.0-14.4",
    "kaios 2.5",
    "op_mini all",
    "op_mob 64",
    "opera 82",
    "safari 13.1",
    "samsung 16.0",
    "samsung 15.0"
  ],
  ...
}

This worked for me.

I had to remove Android 97 to make this work.

Resolví el problema. Cree un archivo en el directorio raíz con el nombre ".browserslistrc" y coloque en él el siguiente contenido:
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
not ios_saf 15.2-15.3
not safari 15.2-15.3

Eres Dios bro, muchas gracias.

Hello Guys
i try npm audit fix --force after updated, browserlist file with below.
last 2 Chrome version
last 2 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
it's resolved with me

Yes, once released 13.2.1should contain the fix for this issue.

That's great.  Thanks.  Any chance the fix is going to be pushed into Angular 12?
Using the latest Angular 12 (12.2.16) compiler also has this issue.

@eemt, this should be fixed in 12.2.16. Can you confirm that all your Angular packages are updated? If you still see the error, can you post ng version?

@dgp1130 I had updated @angular/compiler, @angular/cli & @angular/compiler-cli to 12.2.16, but I hadn't updated core and common (12.2.15).  Now that I updated core and common to 12.2.16, the error is indeed gone.
Thanks!

I'm using Angular 13.2.6 and still have the problem in our CI build (not locally, though).

I still get this error 13.1.4 with range in browserlist
Angular CLI: 13.1.4
Node: 16.13.0
Package Manager: npm 8.1.4
OS: win32 x64
Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker
Package                         Version
@angular-devkit/architect       0.1301.4
@angular-devkit/build-angular   13.1.4
@angular-devkit/core            13.1.4
@angular-devkit/schematics      13.1.4
@angular/cdk                    13.2.6
@angular/cli                    13.1.4
@schematics/angular             13.1.4
rxjs                            7.4.0
typescript                      4.5.5
i cant go above as i have peer dependency, nice update there i will have to roll back angular to lower version as was ok there,

I have solved that by doing:
ng update @angular/core @angular/cli
ng update

Hope it helps.

Didn't work for me

My approach for this rather unknown starter project:
grep -R 'last 2 Safari major' .
<EMAIL_ADDRESS>       'last 2 Safari major versions',
./node_modules/@schematics/angular/library/files/.browserslistrc.template:last 2 Safari major versions
./node_modules/@schematics/angular/application/files/.browserslistrc.template:last 2 Safari major versions

npm ls @angular-devkit/build-angular
[...]
└──<EMAIL_ADDRESS>
npm ls @schematics/angular
[...]
└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>
david | grep @angular-devkit/build-angular
│ @angular-devkit/build-angular │ ~13.1.0  │ 13.3.2  │

npm install --legacy-peer-deps --save<EMAIL_ADDRESS>david | grep @angular/cli
│ @angular/cli                  │ ~13.1.0  │ 13.3.2  │

npm install --legacy-peer-deps --save-dev<EMAIL_ADDRESS>Luckily these updates were enough to also update the browser support configurations in the affected dependencies.

run npm audit fix --force or update @angular-devkit/build-angular

run npm audit fix --force or update @angular-devkit/build-angular

I tried run this command, but I had unsuccessful.

ng update @angular/core @angular/cli

First updated to Angular using npm install -g @angular/cli outside the project folder.
Angular CLI: 13.3.4
Node: 14.17.5
Package Manager: npm 8.3.0
OS: linux x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1303.4 (cli-only)
@angular-devkit/core         13.3.4 (cli-only)
@angular-devkit/schematics   13.3.4 (cli-only)
@schematics/angular          13.3.4 (cli-only)

Then in my project:
Had to remove the node_modules and package-lock.json after updating the version numbers. After that ran npm install again and all is working now.
In my package.json:
  "dependencies": {
    "@angular/animations": "~13.3.5",
    "@angular/cdk": "^13.3.4",
    "@angular/common": "~13.3.5",
    "@angular/compiler": "~13.3.5",
    "@angular/core": "~13.3.5",
    "@angular/forms": "~13.3.5",
    "@angular/material": "^13.3.4",
    "@angular/material-moment-adapter": "^13.3.4",
    "@angular/platform-browser": "~13.3.5",
    "@angular/platform-browser-dynamic": "~13.3.5",
    "@angular/router": "~13.3.5",

I do not have a .browserslistrc in my project folder


Linker Error when combining Criterias using the && or || operator

I'm using drogon with sqlite and orm on Windows x64. I've installed it using vcpkg. (vcpkg install drogon[ctl,sqlite3,orm]:x64-windows).
When I try to combine two Criteria using the && or the || operator, I get a LNK2019 linker error.
error LNK2019: Reference to unresolved external symbol ""class drogon::orm::Criteria const __cdecl drogon::orm::operator&&(class drogon::orm::Criteria,class drogon::orm::Criteria)"
As long as I only use single criterion, everything works fine.

OS: Windows 10 Version	10.0.19043 Build 19043
Compiler: msvc amd64 17.0.1 (VS 2022)
I'm sorry if this is a mistake on my part, but I'm running out of ideas.

The 1.7.3 version of drogon was not updated to vcpkg by us, and the ORM part of it seems to be unavailable, you could use the 1.7.1 version of of drogon by resetting vcpkg to the correct submission, or wait for us to fix it. Sorry for confusing you.

Thanks for the fast response. I will build drogon locally for the time being.
Your Framework is amazing! :)


When the number of active scheduler is 0, the running peer will crash on its own

Bug report:
When the number of active schedulers becomes 0, the peer will continuously crash on its own, causing machines using Docker mode to be unable to pull images(docker proxy exist but daemon crash)
Here are the logs before and after peer restart
after-crash.log
before-crash.log
Expected behavior:
When the number of active schedulers is 0, the running peer can continue to run normally and back source on its own
How to reproduce it:
Scale the scheduler to 0 and wait for up to 5 minutes (Redis cache expiration time)
Environment:

Dragonfly version: v2.1.0
OS: ubuntu 16.04

There is no scheduler available when the daemon is started. It’s not that there is no scheduler available after successful startup.

{"log":"2024-04-01T12:22:12.026Z\u0009WARN\u0009zap/client_interceptors.go:52\u0009finished client unary call\u0009{\"system\": \"grpc\", \"span.kind\": \"client\", \"grpc.service\": \"scheduler.Scheduler\", \"grpc.method\": \"AnnounceHost\", \"error\": \"rpc error: code = Unavailable desc = last connection error: connection error: desc = \\\"transport: Error while dialing: dial tcp <IP_ADDRESS>:8002: connect: connection refused\\\"\", \"grpc.code\": \"Unavailable\", \"grpc.time_ms\": 1014.044}\n","stream":"stderr","time":"2024-04-01T12:22:12.026825095Z"}

The panic of closing the daemon has been fixed in the new version.

The panic of closing the daemon has been fixed in the new version.

Which version is referred to here? Has it been fixed since 2.1.1?

There is no scheduler available when the daemon is started. It’s not that there is no scheduler available after successful startup.

{"log":"2024-04-01T12:22:12.026Z\u0009WARN\u0009zap/client_interceptors.go:52\u0009finished client unary call\u0009{\"system\": \"grpc\", \"span.kind\": \"client\", \"grpc.service\": \"scheduler.Scheduler\", \"grpc.method\": \"AnnounceHost\", \"error\": \"rpc error: code = Unavailable desc = last connection error: connection error: desc = \\\"transport: Error while dialing: dial tcp <IP_ADDRESS>:8002: connect: connection refused\\\"\", \"grpc.code\": \"Unavailable\", \"grpc.time_ms\": 1014.044}\n","stream":"stderr","time":"2024-04-01T12:22:12.026825095Z"}

The panic of closing the daemon has been fixed in the new version.

Sorry, I found out that I am not using version v2.1.0. I am building from the main branch, as of this submission https://github.com/dragonflyoss/Dragonfly2/pull/3024

I have used the latest version, but it still causes peer crashes when I scale scheduler to 0

I have used the latest version, but it still causes peer crashes when I scale scheduler to 0; but I found the log in peer
{"log":"2024-04-01T16:11:18.602Z\u0009WARN\u0009dependency/dependency.go:149\u0009receive signal: terminated\n","stream":"stderr","time":"2024-04-01T16:11:18.60252273Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:18.602549283Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:19.618173676Z"}
{"log":"2024-04-01T16:11:19.618Z\u0009WARN\u0009dependency/dependency.go:153\u0009handle signal: terminated finish\n","stream":"stderr","time":"2024-04-01T16:11:19.618579754Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:19.618590611Z"}
and some log in kubelet is as below, the container was killed because grpc liveness failed multiple times
Liveness probe for "dragonfly-dfdaemon-m76dl_dragonfly-system(7b1c5b41-9bda-4ed9-98f8-57655c5fa0c1):dfdaemon" failed (failure): service unhealthy (responded with "NOT_SERVING")
Killing unwanted container "dfdaemon"(id={"docker" "fc63d3f4032abca8e59bc1ea9cac3cfa4cd4f85e14c4331a431913b5d81f266b"}) for pod "dragonfly-dfdaemon-m76dl_dragonfly-system(7b1c5b41-9bda-4ed9-98f8-57655c5fa0c1)"

Without a scheduler, the dfdaemon health check will fail and k8s will restart the daemon. If you do not want it to be restarted, you can delete the probe.

I have used the latest version, but it still causes peer crashes when I scale scheduler to 0; but I found the log in peer
{"log":"2024-04-01T16:11:18.602Z\u0009WARN\u0009dependency/dependency.go:149\u0009receive signal: terminated\n","stream":"stderr","time":"2024-04-01T16:11:18.60252273Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:18.602549283Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:19.618173676Z"}
{"log":"2024-04-01T16:11:19.618Z\u0009WARN\u0009dependency/dependency.go:153\u0009handle signal: terminated finish\n","stream":"stderr","time":"2024-04-01T16:11:19.618579754Z"}
{"log":"d7y.io/dragonfly/v2/cmd/dependency.SetupQuitSignalHandler.func1\n","stream":"stderr","time":"2024-04-01T16:11:19.618590611Z"}
and some log in kubelet is as below, the container was killed because grpc liveness failed multiple times
Liveness probe for "dragonfly-dfdaemon-m76dl_dragonfly-system(7b1c5b41-9bda-4ed9-98f8-57655c5fa0c1):dfdaemon" failed (failure): service unhealthy (responded with "NOT_SERVING")
Killing unwanted container "dfdaemon"(id={"docker" "fc63d3f4032abca8e59bc1ea9cac3cfa4cd4f85e14c4331a431913b5d81f266b"}) for pod "dragonfly-dfdaemon-m76dl_dragonfly-system(7b1c5b41-9bda-4ed9-98f8-57655c5fa0c1)"

Without a scheduler, the dfdaemon health check will fail and k8s will restart the daemon. If you do not want it to be restarted, you can delete the probe.

thx, I found relevant feat. https://github.com/dragonflyoss/Dragonfly2/pull/2130
Can @jim3ma  please explain some reasons behind this? Because in my understanding, even if the scheduler fails, it should not have affected the status of dfdaemon, dfdaemon can back source itself.


[WIP] Prevent runaway memory consumption

Fixes #4023

Abort a poll of a repository if one is already in progress. Previously, these would build up, with a new poll starting every minute for each repository. If they took longer than a minute, they would accumulate and overwhelm them system.
Use package revision ResourceVersion to avoid sending unnecessary watch updates for package revisions.
Reduce noisy logging.
Not clear this fixes the root cause, but it likely will fix the periodic failures.

Summary of analysis:

The APF errors were a red herring. APF was being activated because the server was starting to get overwhelmed and time out. This tickled an APF bug. But disabling APF does not fix the problem, it just gets rid of the error messages; the server still crashes.
It seems to be a resource leak, or an issue where some back pressure is needed. I tried bumping the resources for the porch-server pod and it lasts longer but still eventually gets OOMKilled. As it is happening, the number of watch events increases, as do the latencies for returning API calls. My guess is there is a feedback loop where a delayed API call of some sort causes clients and/or the server itself to make additional requests, which in turn slows things down more, and then either leaks or a backlog fill up memory until it is killed and restarted.
I suspect the sending of extraneous watches is causing a lot of strain on the porch-server, so this PR fixes that "over notification". This may not fix the underlying issue - the system should protect itself so that it does not get into a runaway state and get OOMKilled.
Even if it doesn't fix the underlying issue, it should increase stability of the system, since it will reduce the chance that the system gets pushed past the point where the feedback loop kicks in.
See https://github.com/kptdev/kpt/pull/4042#issuecomment-1726037268 for some graphs.
I am running a test now, we can watch it for a day or two and see if stability has increased.
We should follow up with load tests to see if we can induce this state even with the change in here.

soak test in progress

/hold
I think I have the root cause, testing the theory.

Replaced by #4050


Screen recording breaks pan on scroll

Describe the Bug
The canvas works fine in most cases, although when I start a screen recording multiple functionalities break.

Pan on scroll does not work, instead it just adjusts the zoom level
Sometimes no actions get registered (e.g., pan, zoom, click, drag)

This issue persists until I stop the recording and refresh the screen
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Start a screen recording
The above mentioned issues appear

Expected behavior
The canvas continues to function as expected even during screen recording
Screenshots or Videos
https://github.com/wbkd/react-flow/assets/78320332/16f998d9-b37c-43bc-babd-ed170571d5ff
Platform

OS: macOS
Browser: Chrome, Edge
Version: newest versions

Additional context
No response

Strange, works fine for me if I test it in a sandbox (both in FF and Chrome)
https://github.com/wbkd/react-flow/assets/78412429/b96ef327-fba4-4f08-a2e1-be1c84945d04

If you are doing a screen recording, you should start to record, reload the page and everything should work fine. I will close in favour of #824


Dependencies

Batr - Playwright is the important part, but testing could be good too
Cheerio or daq-proc. Depending on use case: Just crawling or Crawling and document processing.

Don't think I need cheerio since Playwright has CSS selectors built in.


Error with multi gpu training

I can train the network on KITTI with single gpu.
However when I added "--gpus 2,3" for multi-gpu training with the full command as follows:
python main.py tracking --exp_id kitti_fulltrain --dataset kitti_tracking --dataset_version train --pre_hm --same_aug --hm_disturb 0.05 --lost_disturb 0.2 -- fp_disturb 0.1 --batch_size 4 --load_model ../models/nuScenes_3Ddetection_e140.pth --gpus 2,3
I got the following error:
error in modulated_deformable_im2col_cuda: no kernel image is available for execution on the device
Traceback (most recent call last):
File "main.py", line 101, in
main(opt)
File "main.py", line 70, in main
log_dict_train, _ = trainer.train(epoch, train_loader)
File "/home/kejie/CenterTrack/src/lib/trainer.py", line 317, in train
return self.run_epoch('train', epoch, data_loader)
File "/home/kejie/CenterTrack/src/lib/trainer.py", line 149, in run_epoch
output, loss, loss_stats = model_with_loss(batch)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 162, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 85, in parallel_apply
output.reraise()
File "/opt/conda/lib/python3.7/site-packages/torch/_utils.py", line 394, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in replica 0 on device 0.
Original Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
output = module(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/kejie/CenterTrack/src/lib/trainer.py", line 98, in forward
outputs = self.model(batch['image'], pre_img, pre_hm)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/kejie/CenterTrack/src/lib/model/networks/base_model.py", line 75, in forward
feats = self.imgpre2feats(x, pre_img, pre_hm)
File "/home/kejie/CenterTrack/src/lib/model/networks/dla.py", line 633, in imgpre2feats
x = self.dla_up(x)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/kejie/CenterTrack/src/lib/model/networks/dla.py", line 572, in forward
ida(layers, len(layers) -i - 2, len(layers))
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/kejie/CenterTrack/src/lib/model/networks/dla.py", line 543, in forward
layers[i] = upsample(project(layers[i]))
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 778, in forward
output_padding, self.groups, self.dilation)
RuntimeError: CUDA error: an illegal memory access was encountered
Any clues?

THis is from the DCNv2 layers. It might be caused by the cuda version/ gpu type on your running machine mismatched the cuda version/ gpu type when you compiling DCNv2. Please try to re-compile DCNv2 in the same environments.


Added CMake build

Useful when used in other CMake projects.

I don't care to turn this into a library. It's meant to be just swallowed into your tree like a single-file library.


UI does not display binary annotation value if it contains a JSON string

Our instrumentation emits some binary annotations as JSON strings. When returned from query service, it looks all properly escaped:
{ "key": "haproxy.LogMessage",
  "value": "{\"msg\":{\"Tw\":\"0\",\"Tt\":\"8625\",\"Tr\":\"0\",\"Tq\":\"8624\",\"Tc\":\"1\",\"backend\", ....

But in the span popup it is displayed like this:
haproxy.LogMessage  [object Object]

cc @eirslett

Yes, that's a "bug" (or feature, if you want) in jQuery. If it encounters a string that looks a bit like JSON, it will parse it as JSON and end up with an object instead of a string.
The fix would be to force the message to be parsed as a string. I'm not sure exactly where in the UI code it happens.

reproduced by uploading a test span and looking at trace 1
$ curl -s -X POST -H 'Content-Type: application/json' localhost:9411/api/v1/spans -d '[{"traceId":"1","name":"bang","id":"2","timestamp":1234,"duration":100,"binaryAnnotations":[{"key":"json","value":"{\"msg\":{\"detail\":\"foo\"}}","endpoint":{"serviceName":"flintstones","ipv4":"<IP_ADDRESS>"}}]}]'
$ open http://localhost:9411/traces/1

fooling around here: https://github.com/openzipkin/zipkin/blob/master/zipkin-ui/js/component_ui/spanPanel.js#L37

Same issue for annotation values, can you please fix it in logs as well

zipkin doesn't have logs. I presume you mean to say annotations where
someone encoded json as the value.. first check to see if that is valid.
for example one thing that causes this is OpenTracing, but as far as I
recall, "logs" are encoded in annotation as k1=v1,k2=v2 which is
simultaneously easier to read (in one line) and also not json.

yes I have added same fix in annotations, can you please verify and merge


[Suggestion] Filter for pokemon so you can hunt for specific ones

Add a filter to allow you to only capture specific pokemon. So if you're looking for charizard's family, you can list only those pokemon (id's or names) to try and capture.

done on dev

Does this actually go to those specific pokemon?


Add way of configuring custom plugins (JSON mapper, template engines, etc)

Turns out there's no way to combine generics and lambdas, which makes the implementation a bit more clunky. The mapper variable is so you won't have to create the mapper every time, but maybe it's better to let the user keep track of their own mapper?
 I can agree that it gives more flexibility, but I think this should do the job:
interface JsonFactory { // or some other name
  fun serialize(obj: Any) : String
  fun <T> deserialize(json: String, targetClass: Class<T>) : T
}

and from there you could write:
class JacksonJsonFactory(val mapper: ObjectMapper): JsonFactory { // or some other name
  override fun serialize(obj: Any) : String { /* . . . */ }
  override fun <T> deserialize(json: String, targetClass: Class<T>) : T { /* . . . */ }
}

If one needs the underlying "mapper" he would need to cast it any way, so you cast the JsonFactory to the expected type. I think this approach is more flexible because if you have some complex logic for serialization, it can sit in another class.

@LouizFC I will be giving my 2 cents:

I prefer the second approach, but I think that two interfaces can be a bit of a overkill. I can agree that it gives more flexibility, but I think this should do the job:

Thanks for your input. Some people will only be doing one or the other, and the code for declaring a mapper becomes a lot simpler when using dedicated interfaces. The generic interfaces sadly can't work with lambdas, but if someone only needs to map objects to JSON they just need to write obj -> mapper.toJson(obj), which is pretty nice.
Might need to get some better names for them though.

Closed by #205


Nodejs Cheat Sheets

Change Summary
Provide summary of changes with issue number if any.
Checklist
If you haven't fulfilled the below requirements or even delete the entire checklist, your PR won't be reviewed and will be closed without notice.
General

[x] This Pull Request is all my own work. (You'll be blacklisted if you are caught for plagiarism.)
[x] I've read CONTRIBUTING.md
[x] I've made some valid changes to the CheatSheet, and they are not just minor changes.

Changes

[x] I've read and followed the Solution Template

Note: To mark the checkbox, put an x inside the [ ] (like this: [x]).

Hi Aryan, Sorry for the delay.. Here is the Node.js cheatsheets.. Hope it will be merge.. Thanks.

Look Good 🍁


Crash in Shortcut Guide

Environment
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): ShortcutGuide

Steps to reproduce
ShortcutGuide crashes when it is being disabled while shown

Fixed by https://github.com/microsoft/PowerToys/pull/772#issuecomment-558399876

This is now fixed in PowerToys 0.14.0 https://github.com/microsoft/PowerToys/releases


Different admin approach?

Hi Joe,
as discussed yesterday this is a reminder that the current way to register as teacher is not optimal yet.
Thank you again for this amazing plugin!

Thanks! Yeah, I think, it would be sufficient at first to add script like bin/register-teacher that could be invoked after the DB is setup with bin/mikro-orm migration:up:
bin/register-teacher -e<EMAIL_ADDRESS>-n "Jane Doe" -p "supersecretpassword"

What do you think?

That would be great!

Just an FYI: I added sample configuration for nginx and production-ready deployment in the readme with this commit c3d7f834f934a216561233ebc9949cd9bc605f13

Now, while your backend is running with docker-compose, you can create a new teacher with the following command (from within the backend/ directory):
bin/cli teachers register -e <email> -n <name> -p <password>

Great! Actually, I also use an nginx setting via port 443. With production settings, I was running into a PostgreSQL SSL problem, but didn't investigate further. This seems promising: DISABLE_MIKRO_ORM_SSL: 'true'
Maybe I find the time to test this over the weekend...

DISABLE_MIKRO_ORM_SSL should fix this, indeed. I had a similar problem for my demo in a prod environment 😅


[WIP] Feat/apply dark theme

What does this PR do?

[x] My bugfix

Related Ticket(s)

Notion Ticket

Key Changes

How does the code change address the issue? Describe, at a high level, what
was done to affect change.
What side effects does this change have? This is the most important question
to answer, as it can point out problems where you are making too many changes
in one commit or branch. One or two bullet points for related changes may be
okay, but five or six are likely indicators of a commit that is doing too many
things.

How to test

Create a detailed description of what you need to do to set this PR up. ie:
Does it need migrations? Do you need to install something?
Create a step by step list of what the engineer needs to do to test.

Media (Loom or gif)

Insert media here (if applicable)

Update cái PR message nha e.


Rename "Fix Politics" to "CFC App" for now until new name determined

The following needs to be renamed:
Phase 1: CODE
"Fix Politics" in the web screens, base.html,  index.html, etc.
"Fix Politics" in the HTML and TEXT templates for Reports:  email-results.HTML, email-results.TXT
Rename the "fixpol" application and sub-directory to "cfc_app"
Specify "APP_NAME" in cfc_project/settings.py
Create "cfc_app/templatetags/cfc_tags.py" to use settings.APP_NAME in tempaltes
Phase 2: DATABASE
Rename "fixpoldb" to "cfcappdb"
Rename "fixadmin" to "cfcadmin"
Rename "fixpol_" tables to "cfc_app_" tables
Phase 3: CLOUD
Rename IBM Cloud project from "fix-politics"  to new name (we can use "dev_ap" if needed)
Rewrite Dockerfile, Tekton files to reflect these new changes
Phase 4: GITHUB
Rename Github Repo to new name

Phase 2 complete.  cfcappdb is the new database name.
Phase 3 complete. new IBM Cloud project "legit-info" crated in Redhat Openshift cluster.
Phase 4 complete.  Github moved and renamed to https://github.com/Call-for-Code-for-Racial-Justice/Legit-Info


Alerts: CPU usage alerts shouldn't be triggered when user load is high

What would you like to be added:
CPU usage alert only triggers when OpenPAI service is in high workload.
Why is this needed:
There are a lot of CPU alerts triggered by user usage. It's expected on a computing platform, and shouldn't trigger alerts.
Without this feature, how does the current module work:
If CPU is in high usage, there are alerts triggered. Admin have to investigate with extra effort or ignore them but ignore real alerts also.

close and track in #2472


Pixi 3 loader won't load json from a data URI

In Pixi 2 we could load json spritesheets from a data URI:
https://jsfiddle.net/oy8rpdvr/ (draws a red square from a spritesheet)
In Pixi 3 trying to do the same...
https://jsfiddle.net/xah346ps/1/
... results in ...

Uncaught Error: The frameId "Symbol1" does not exist in the texture cache

Is there any intention of reinstating this functionality?

Data urls should still work fine in pixi 3, this is a bug and I will look into it as soon as I have some time.
Thanks for the repro cases!

This has been fixed in resource-loader v1.6.0, and pixi has been bumped to use that version.
The next pixi release will include this fix (v3.0.6)


Mechanism for parsing specially-formatted data

There needs to be a general mechanism for parsing specifically-formatted data. Examples include:

Date/time (observation time, Earth received time)
Spacecraft clock count (with partition number) or Voyager FDS
Cassini rev_no (A, B, C, then numeric)

In each case the original string should be kept to display in the metadata, and a shadow field should be kept that is searchable (unique integer ID, floating point representation of time, etc.). When the user enters a search range, the special code needs to convert it to the internal representation for searching.

When this is implemented, add PRODUCT_CREATION_TIME to obs_general. Take from COISS tab file. Allow search on this single date/time.

I agree that it would be better to have a numeric range. The tricky part is the numbering: 0, A, B, C, 3, 4, ...
You will need to write a special parser that reads the input and converts it to a numeric range. It will need to handle cases like zeros in front of the A, B and C because that is used in the CIMS ID.
I think I wrote such a parser once, but I don't know what ever happened to it. Here's a quickie, where we use this mapping:
"0" -> -1
"A" -> 0
"B" -> 1
"C" -> 2
others map to themselves.
parse_cassini_revno_dict = {'': -1, 'A': 0, 'B': 1, 'C': 2}
def parse_cassini_revno(arg):
arg = arg.strip().lstrip('0').upper()
return parse_cassini_revno_dict.get(arg, int(arg))
If you want to save this complication for a future revision, feel free.
--Mark

The general mechanism has been implemented. It currently supports Cassini/Galileo/New Horizons/Voyager spacecraft clock count.


Styling: Use new icons for My Analyses and download current subset

Follow up to Creating New Icons issue #415

Closed with above PRs. Note, only changes icons. General styling will be fixed when addressing #450


Document the spec.hubTemplateOptions.serviceAccountName field

Relates:
https://issues.redhat.com/browse/ACM-13572

/hold for reviews

Thanks @dhaiducek! Your suggestions sound better.

/unhold


[Feature] Organizing notes - sort by various characteristics

Classic sorting notes:

Alphabetically
By creation date
By last updated date

If nobody is working on this already, I can look into it. :)

Go for it! It’ll need a new UI element, too.

A dropdown in the settings alongside line preview, color theme, etc. should be sufficient for the UI. We can have "last updated" as the default sort characteristic. This will be a good opportunity to clean up the sorting, since it's a bit scattered throughout the app.

I'll take this on next week if nobody has done it by then!

I'll take this on next week if nobody has done it by then!

Hey, you can take this. I tried working on this but the project fails to run on my Windows PC, and I am having trouble with Docker, which is why I have been unable to work on it. Sorry for the delay guys.

Interesting, I’ll look at Windows local setup soon.


Can the results predicted by NeuralRTI be imported into RTIViewer for display? Is there any relevant tutorials? Thank you!

no they cannot. OpenLime can now visualize NeuralRTI layers https://github.com/cnr-isti-vclab/openlime
no tutorials however are available for the moment


[Task]: Fix flakiness of cypress/e2e/Regression/ClientSide/OneClickBinding/TableWidget/mysql_spec.ts

SubTasks
Entire spec is skipped from July 6, 2023 Ref: https://github.com/appsmithorg/appsmith/commit/f24ecc2473b86b8f87f1e54e6d1b8a87383a1137

Hey team! Please add your planning poker estimate with Zenhub @AmanAgarwal041 @carinanfonseca @rishabhrathod01 @rohan-arthur @sneha122


add more language around publishing

not sure if this is the right format for the section. open to changing.

merging for agility. open to revisions in additional PRs.


Layout issue progress bar card IE 11

Select one ... (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior
Progress bar should be displayed correctly in a card
Actual behavior
Progress bar isn't displayed correctly
Reproduction of behavior
Note can only be reproduced with Internet Explorer.
https://stackblitz.com/edit/clarity-light-theme-v012-3ux5ga
Environment details

Angular version: 6.0.4

Clarity version: 0.12.4

OS and version: Windows 10

Browser: IE 11.165.17134.0

@RobArbor: Can you post an image as to what you are seeing on IE11? I couldn't get the StackBlitz to open on IE11 but our website documentation (Progress Bars in Cards)
https://vmware.github.io/clarity/documentation/v0.12/cards

@RobArbor: Please try this link: https://stackblitz.com/edit/clarity-light-theme-v012-qupq1v?file=src/app/app.component.html on IE11
You need to use attr.value and attr.max for it to work on IE. I believe this should solve your issue.
Please let us know if it doesn't

Thanks for the help.
Swapping the attributes fixed my issue
<progress [max]="100" [value]="70"></progress>
strange behaviour of IE... 😕
looks related
https://github.com/angular/angular/issues/24001


Daemon closes the connection after request

Description of problem:
I have searched existing issues on SIGPIPE and SO_KEEPALIVE.  Hence reporting as a new issue.
I am using Docker Remote Api to start a container and then inspect the container.  However the daemon has already closed the connection (SIGPIPE raised) from its end after the first request.
I have tried the SO_KEEPALIVE to keep the link open. Although that does not seem to have an effect.
The Docker Info
Containers: 1
Images: 92
Server Version: 1.9.0-rc4
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.3.0-040300-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 2
Total Memory: 1.756 GiB

uname -a:
Linux pyrus 4.3.0-040300-generic #201511020949 SMP Mon Nov 2 14:50:44 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Environment
Google Compute Engine machine.

Steps to re-produce
1. Send start command via the API
2. Send a second command
3. Observe the SIGPIPE indicating the connection has been closed by the Docker server.

The strace.
Open the socket
socket(PF_LOCAL, SOCK_STREAM, 0)        = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/docker.sock"}, 22) = 0
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0

Request start container
sendto(3, "POST /containers/20ba90de12b3/start HTTP/1.2\r\nUser-Agent: hello/1.0\r\nAccept: */*\r\n\r\n\r\n", 86, 0, NULL, 0) = 86
recvfrom(3, 0x10cd01c, 86, 0, 0, 0)     = -1 EAGAIN (Resource temporarily unavailable)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fffca765e80)       = 0

Response OK - started
recvfrom(3, "HTTP/1.1 204 No Content\r\nServer: Docker/1.9.0-rc4 (linux)\r\nDate: Fri, 20 Nov 2015 06:09", 87, 0, NULL, NULL) = 87
recvfrom(3, "", 0, 0, NULL, NULL)       = 0
fstat(1, {st_dev=makedev(0, 14), st_ino=11, st_mode=S_IFCHR|0620, st_nlink=1, st_uid=8868, st_gid=5, st_blksize=1024, st_blocks=0, st_rdev=make
dev(136, 8), st_atime=2015/11/20-06:09:44, st_mtime=2015/11/20-06:09:44, st_ctime=2015/11/19-13:32:39}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa352ec2000
write(1, "TTP/1.1 204 No Content\r\n", 24) = 24
write(1, "Server: Docker/1.9.0-rc4 (linux)\r\n", 34) = 34
write(1, "Date: Fri, 20 Nov 2015 06:09\n", 29) = 29

Request Inspection - However connection closed by the Daemon
sendto(3, "TTP/1.1 204 No Content\r\nServer: Docker/1.9.0-rc4 (linux)\r\nDate: Fri, 20 Nov 2015 06:09GET /containers/20ba90de12b3/json HTTP/1.2
\r\nUser-Agent: hello/1.0\r\nAccept: */*\r\n\r\n\r\n", 170, 0, NULL, 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13661, si_uid=0} ---
write(1, "SIGPIPE!! the other end closed the connection\n", 46) = 46
exit_group(1)                           = ?
+++ exited with 1 +++

The code.
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <arpa/inet.h>
#include <sys/un.h>

#define MAX_FRAME_BUFFER_SIZE	256

#define CONSTRUCT_PACKET(str) this_session->component_length = strlen(str); \
	strcpy(this_session->buffer + this_session->full_length, str); \
	this_session->full_length += this_session->component_length

typedef struct session {
	int sockfd;
	int full_length;
	int component_length;
	char buffer[MAX_FRAME_BUFFER_SIZE];
} session;

void sigpipe_handler(int sig0) {
	printf("SIGPIPE!! the other end closed the connection\n");
	 exit(1);
}

void end_with_error(char *errorMessage) {
	perror(errorMessage);
	exit(1);
}

session* open_session() {
	session* this_session = malloc(sizeof(session));
	this_session->sockfd = socket(AF_UNIX, SOCK_STREAM, 0);

	if(this_session->sockfd  < 0)
	{
		end_with_error("\n Error : Could not create socket \n");
	}

	struct sockaddr_un serv_addr;
	serv_addr.sun_family = AF_UNIX;
	strcpy(serv_addr.sun_path, "/var/run/docker.sock");

	int rc = connect(this_session->sockfd, (struct sockaddr *)&serv_addr,
		strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family));

	if( rc < 0)
	{
		end_with_error("\n Error : Connect Failed \n");
	}

	if ( fcntl(this_session->sockfd, F_SETFL, O_NONBLOCK) < 0) {
		end_with_error("\n Error : fcntl Failed \n");
	}

	int optval = 1;
	socklen_t optlen = sizeof(optval);

	if (setsockopt(this_session->sockfd, SOL_SOCKET, SO_REUSEADDR, &optval, optlen) < 0)
	{
		end_with_error("\n Error : setsockopt SO_REUSEADDR Failed \n");
	}

	if (setsockopt(this_session->sockfd, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen) < 0)
	{
		end_with_error("\n Error : setsockopt SO_KEEPALIVE Failed \n");
	}

	return this_session;
}

void close_session(session* this_session)
{
	close(this_session->sockfd);
	free(this_session);
}

void build_http_frame(session* this_session)
{
	CONSTRUCT_PACKET( " HTTP/1.2\r\n" );
	CONSTRUCT_PACKET( "User-Agent: hello/1.0\r\n" );
	CONSTRUCT_PACKET("Accept: */*\r\n" );
	CONSTRUCT_PACKET( "\r\n" );
	CONSTRUCT_PACKET( "\r\n" );

	/* add "\r\n" at the header end */
}

int send_frame(session* this_session)
{
	char* pos = this_session->buffer;
	int n_written = 0, remaining = this_session->full_length;

	while (remaining) {
		n_written = send(this_session->sockfd, pos, remaining, 0);

		if (n_written <= 0) {
			if (errno != EAGAIN) {
				end_with_error("\n Error : send Failed \n");
			}
		}
		else {
			remaining -= n_written;
			pos += n_written;
		}
	}

	return pos - this_session->buffer;
}

int recv_frame(session* this_session)
{
	char* pos = this_session->buffer;
	int n_read = 0, remaining = this_session->full_length;

	while (1) {
        n_read = recv(this_session->sockfd, pos, remaining, 0);
        if (n_read == 0) {
            break;
        } else if (n_read < 0) {
			if (errno != EAGAIN) {
				end_with_error("\n Error : recv Failed \n");
			}
			else {
				sleep(1);
			}
        }
		remaining -= n_read;
		pos += n_read;
    }

	return pos - this_session->buffer;
}

int print_frame(session* this_session)
{
	puts(this_session->buffer);
}

int start_container(session* this_session, const char* id)
{
	CONSTRUCT_PACKET("POST ");
	CONSTRUCT_PACKET("/containers/");
	CONSTRUCT_PACKET(id);
	CONSTRUCT_PACKET("/start");

	build_http_frame(this_session);

	send_frame(this_session);
	recv_frame(this_session);
	print_frame(this_session);
}

int inspect_container(session* this_session, const char* id)
{
	CONSTRUCT_PACKET("GET ");
	CONSTRUCT_PACKET("/containers/");
	CONSTRUCT_PACKET(id);
	CONSTRUCT_PACKET("/json");

	build_http_frame(this_session);

	send_frame(this_session);
	recv_frame(this_session);
	print_frame(this_session);
}

int main(int argc, char *argv[])
{
	signal(SIGPIPE, sigpipe_handler);

	session* this_session = open_session();

	start_container(this_session, argv[1]);
	inspect_container(this_session, argv[1]);

	close_session(this_session);

    return 0;
}

To compile and run
gcc -g -O0 test.c -o test
./test <container-id>

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

I have updated the information as requested.  Thank you.

Are you making sure you are creating the container first before starting it?

I am positive the container is running.

Never saw this since. Feel free to open new issue if problem still persists.


cannot use visibleIf and clearInvisibleValues = "onHidden" together in matrixdynamic with preloaded data

Are you requesting a feature, reporting a bug or ask a question?
bug maybe
What is the current behavior?
cannot use visibleIf and clearInvisibleValues = "onHidden" together in matrixdynamic with preloaded data
What is the expected behavior?
use visibleIf and clearInvisibleValues = "onHidden" together
How would you reproduce the current behavior (if this is a bug)?
you need to comment out clearInvisibleValues = "onHidden" to prepopulate the survey
https://plnkr.co/edit/8AK8XcQeHz7SAYMhe1xf?p=preview

Fix will be available in the nearest update


Problematic attribute renaming and a missing directory

We pulled in the 1.0 release of this cookbook to our environment and suddenly saw our aptly root directory disappear from its expected location.  It turns out renaming the Chef attribute rootdir to rootDir resulted in the default recipe changing the aptly user's home from our rootdir value to the cookbook default rootDir value, which the Chef user resource then interprets as a request to move the old home to the new home.  Until we figured that out, though, it certainly looked like this release destroyed the entire repository.
I understand this is a major release with no assurances of backwards compatibility, but this ultimately minor change has enormous and undeclared consequences.  In my experience, renaming attributes needs a really good reason - I don't see one provided here - and either transitional bits to assist the change or a big warning to users to not get tripped up on the shift.

Hi @zepheiryan,
Sorry for the late response.
Effectively, the attributes were renamed for personal reason. I think the attributes (and the cookbook in global) is more maintainable if attributes reflects the name of service's parameters. Like you say it is a major release (last update was August, 17) with a big refacto and I made efforts to enhance Readme.
However, I agree with you that I should have written I visible Warning in Readme to warn users. I will do that asap.
Regards.

@zepheiryan I'm going to close this, but I'd love to have you actively involved in the future. Could you add yourself to https://github.com/sous-chefs/terraform-github-org and help us maintain this?


Add file system tree support

Acceptance

[ ] We have a local file tree browser in the UI similar to what we have in vscode.dev
[ ] Sidebar should toggle open and close

Resources

https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API

@AceTheCreator Update on this. I actually need file system support to test out some functionality. Do you want me to pick this up and assign you to another issue?

@risenW So I'm done with this issue, So wanna add that should I add the ability to open file in a new tab inside this game PR or create an issue for that?

@risenW So I'm done with this issue, So wanna add that should I add the ability to open file in a new tab inside this game PR or create an issue for that?

Let’s do that in a separate issue. Push what you have first. Also, ensure to pull the latest, as I made some updates yesterday. 👏🏻👏🏻


In ConsulDtabStore add an option to set desired DC

Now local agent can be used to access remote datacenter K/V namespace if needed

@adleong Another piece of #576 - please take a look whenever you will have time. Thanks

:star: Great!

👍


Allow to programatically remove selection in TreeView

Items in the TreeView can be selected using the reveal method, but there is no way, that I am aware of, to programmatically clear the selection.
Something similar was already requested in issue #48754 (which was stalled for almost 3 years and then disregarded)
This would currently be needed when wanting to handle the event of a user clicking an item in the TreeView, which is currently only possible using the TreeView.onDidChangeSelection() event. BUT this is does NOT handle every click on a TreeView item, since it remains selected after the first click and therefore it wont fire on consecutive clicks.

This would currently be needed when wanting to handle the event of a user clicking an item in the TreeView,

@DaveWasTakn can you walk me through why the TreeItem command doesn't work for this?

Hello,
you are correct! I should have described what I am trying to achieve:
I want to handle consecutive clicks on a TreeItem and update the selection depending on a few factors, like where the user is at currently. For example, I want to handle and deselect an item when clicking it while it is selected (i.e. deselect when clicking an item the second time).


Analyzer Feedback from IntelliJ

Analyzer Feedback from IntelliJ
Version information

IDEA AI-181.55<IP_ADDRESS>14246
2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e
AI-181.55<IP_ADDRESS>14246, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14 unknown, screens 1680x1050  Retina

Exception
Please append the contents of:
file:///private/var/folders/64/fswhg6s107g5jwr4fn04pwwc0000gn/T/report.txt
Dart analysis server, SDK version 2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e, server version 1.20.5, error: Analysis failed: /Users/jiyouxu/StudioProjects/community_app/lib/page/home/tag/zone/write_blog_page.dart context: exception_20181014_102200_324
Exception: Element not found in summary: package:flutter/src/widgets/editable_text.dart

Thanks for filing!
Possible duplicate of #34716
Can you provide us with either a stack trace or a short set of reproduction steps (or both)? Without either of those there's probably nothing we can do to track this down.
For example, did this happen as a result of doing a flutter upgrade?
@scheglov

Probably https://github.com/dart-lang/sdk/issues/34823


Add support for client timezone information

If the user is in a timezone that follows daylight saving, the transaction history grouping is done without taking it into consideration.
Problem
If a user is in a  UTC+1 timezone (winter) and UTC+2 (summer), a transaction done during daylight savings will be incorrectly grouped when daylight savings are not observed.
When daylight savings is not being observed, the clients send a UTC+1 difference in milliseconds (3600000 ms). The Safe Client Gateway will then create transaction groups taking only the 3600000 shift into consideration.
If the clients use a solution that takes daylight savings into consideration, this might cause some transactions to be rendered with UTC+2 and potentially making the group that was created with UTC+1 to contain transactions of the following/previous day.
Example

TX1 done on Sun Jul 30 2023 22:46:47 UTC+0000.
TX2 done on Sun Jul 30 2023 21:46:47 UTC+0000
Client on UTC+1 Winter, UTC+2 Summer
Client is on Winter timezone

Client sends timezone offset of +1 hour
CGW computes groups with 1 hour difference.
CGW returns a group with July 30 (22:46:47 UTC+0000) with transactions TX1 and TX2
Clients, aware of daylight savings, shift the header label to July 31 (00:46:47 UTC+2) that will include TX1 and TX2 while there should be two groups rendered: July 31 with TX1 and July 30 with TX2.

The transaction was therefore shifted to a different day on the client side while it should've been grouped correctly on the CGW side.
Expected Result
Given the same example as the one above:

Client sends timezone offset of +1 hour
CGW computes groups with 1 hour difference and takes into consideration daylight savings.
CGW returns two groups:

July 30 (22:46:47 UTC+0000) with TX1
July 30 (21:46:47 UTC+0000) with TX2

Clients, aware of daylight savings, shift the first header label to July 31 (00:46:47 UTC+2) which includes TX1.

From https://github.com/safe-global/safe-client-gateway/issues/924#issuecomment-2270889249:

Researching the UTC and DST (daylight saving time), it seems that the best way to resolved the issue with DST is to use the timezone ID, like Europe/Paris instead of the timezone_offset (+1:00). This way, backend gets full information about the timezone from the clients, including the DST adjustment. If the timezone ID is not available then we can fall back to the timezone offset.
References: https://tc39.es/proposal-temporal/docs/ambiguity.html#understanding-time-zones-offset-changes-and-dst https://tc39.es/proposal-temporal/docs/ambiguity.html#ambiguity-due-to-dst-or-other-time-zone-offset-changes


Giles receiver creates a file even when --no-write is specified

Giles receiver creates an output file even when --no-write is specified as one of the arguments to it.

I'm in the process of deprecating giles receiver for end users. As such this only effects us at WallarooLabs if we decide to keep using Giles receiver. Moving this to 0.5.0 for now.

obviated by #2341


GitIgnored scenes being added to SceneGuidToPathMap json

(1) Add one of your scenes to .gitignore
(2) run SceneGuitToPathMap.  the .gitignored scene will be partof the json.
(3) howeber, other users of the repo wont have that scene in their proj (since gitignored) but it wil be listed in the map.
there could be potential issues where users create a new asset, and it gets randomly assigned the same guid that according to the scene map is pointing to a scene, but accoriding to unity its pointing to a completely unrelated asset.

It is extremely unlikely for Unity to generate the same GUID twice, so the general consensus when working with them is to ignore that possibility altogether. GUID collisions usually happen due to user error; such as duplicating the meta files, partially reverting in version control, etc.
However, yes, we should still give an option to skip scenes ignored in version control, just to prevent irrelevant changes. I will work on this.

On second thought: instead of trying to figure out which files are ignored in version control, which would slow the editor down, would be hard to implement, and cause a lot of bloat in the package; just ignoring the map file itself in version control might be a better idea. It is a generated file after all, and will get re-generated according to the settings.
What do you think? Would that solve the issue? @Ale1

Closed with #16.
Added a new section to README that recommends ignoring the map file, and made the generator generate a .keep file in the generated map folder to make sure it gets tracked by all VCS without issues.
Will be included in the next release.

Included in 1.2.1.


Cannot build due to EASTL issue

Hi folks, I'm building with clang++15, ubuntu 20.04.
I encounter a compilation error that is related with EASTL
Err log:
In file included from /home/dev/LuisaCompute/src/ext/EASTL/include/EASTL/algorithm.h:243:
/home/dev/LuisaCompute/src/ext/EASTL/include/EASTL/internal/copy_help.h:135:90: error: no member named 'contiguous_iterator_tag' in namespace 'std'
                                                                  (eastl::is_pointer<InputIterator>::value  || eastl::is_same<IIC, EASTL_ITC_NS::contiguous_iterator_tag>::value) &&
                                                                                ~~~~~~~~~~~~~~^
/home/dev/LuisaCompute/src/ext/EASTL/include/EASTL/internal/copy_help.h:136:90: error: no member named 'contiguous_iterator_tag' in namespace 'std'
                                                                  (eastl::is_pointer<OutputIterator>::value || eastl::is_same<OIC, EASTL_ITC_NS::contiguous_iterator_tag>::value);
                                                                                ~~~~~~~~~~~~~~^
/home/dev/LuisaCompute/src/ext/EASTL/include/EASTL/internal/copy_help.h:138:51: error: non-type template argument is not a constant expression
                return eastl::move_and_copy_helper<IIC, isMove, canBeMemmoved>::move_or_copy(first, last, result); // Need to chose based on the input iterator tag and not the output iterator tag, because containers accept input ranges of iterator types different than self.
                                                                ^~~~~~~~~~~~~

This seems the same error with https://github.com/electronicarts/EASTL/issues/482
EASTL commit hash b6f329dc9c09ffaf68a979c6591e66a12cf6c2b9
Do you have any suggestions about this?

Hi, @turbo0628. Thanks for reporting this.
The issue looks the same as https://github.com/electronicarts/EASTL/issues/482, but should not occur with a C++20-compatible compiler like clang 15... I'm setting up similar environments to yours in the GitHub workflows to reproduce the issue.
Meanwhile, would you mind providing the CMake log when you configured the project? Maybe it's because CMake is not finding the correct compiler.

Yeah I'm very confused about it too.
The CMakeCache.txt is attached as follows
CMakeCache.txt
I think the CMake system located the right compiler.
The clang-15 compiler is freshly installed with LLVM apt repository https://apt.llvm.org/
clang version 15.0.6

I think I've reproduced a similar error in the workflows, where the compiler is clang 15.0.6 but it failed to find the C++20 <barrier> header.
However, this error is gone with a newer gcc. So the most likely explanation is that clang is using the standard library headers from the old gcc?

It looks like the error can be worked around by specifying the stdlib to use.
Please pull the latest master branch and try the following steps to see if they can solve your error:

Install libc++-15-dev and libc++abi-15-dev via apt;
Pass -D CMAKE_CXX_FLAGS="-stdlib=libc++" to CMake when configuring the project.

Thanks!
Sorry for the late reply as I didn't have time to proceed in the last month. I close this issue as I have successfully compiled the project with gcc 11.3 on a freshly installed ubuntu 22.04.
Nice work!


isElementPresent with Variable?

I want to fill the input elements in a webform with Data from an excel Sheet.
i can loop through a table of IDs to fill the input elements with data from another table but i would like to check before if the specific input element exists.
I want to use IsElementPresent(FindBy.ID(...)) but it only accepts an object and all i have is the ID as a string.
FindElementById works just fine with variables, but not IsElementPresent.
can IsElementPresent work with a variable for the ID?
if not, is there a workaround?
The code Section:
        IDType = ThisWorkbook.Worksheets("FieldIDs").Cells(RowNumFieldIDs, ColIDType)
        IDValue = ThisWorkbook.Worksheets("FieldIDs").Cells(RowNumFieldIDs, ColNumFieldIDs).Value
        CellValue = ThisWorkbook.Worksheets("DataInput").Cells(RowNumDataInput, ColNumDataInput).Value

        If IDType = "Input" Then   'works fine
            'If wb.IsElementPresent(FindBy.ID(FieldID), 1000) Then      'does not work
                wb.FindElementById(IDValue).SendKeys CellValue    'works fine
            'End If
        End If

Thx!

Hi @MathisPr,
In SeleniumVBA, there is no method called IsElementPresent.
We do have a method called IsPresent which performs a similar function I think.
    driver.Wait 1000
    If driver.IsPresent(By.ID, IDValue) Then
         driver.FindElementById(IDValue).SendKeys CellValue
    End If

However, unlike your IsElementPresent, which appears to allow you to specify a maximum timeout value to wait for presence, IsPresent in SeleniumVBA checks for immediate presence (timeout=0), so that is why I added the explicit wait in my code above. Because my code will wait 1 second whether the element is present or not, it is likely to be slower than when using an implicit wait.
But your question raises an important issue with our IsPresent method. On the next version of SeleniumVBA, we will consider adding an optional implicit wait parameter to the IsPresent method, so that the explicit wait is not necessary.
Thanks for your question.

@MathisPr, with SeleniumVBA version 3.1 you can now try:
    If driver.IsPresent(By.ID, IDValue, 1000) Then
         driver.FindElementById(IDValue).SendKeys CellValue
    End If

Thank you very much for the instant reply and the solution! I'm quite impressed how quickly you updated SeleniumVBA. I plan to switch my project from Seleniumbasic to SeleniumVBA altogether when i have the time. Keep up the great work!

No problem @MathisPr! Be aware that there is now an ActiveX Dll available, in case you want to try that. It does not require a redistributable like .Net Framework, nor does it require a particular install location, and you get the bonus of automated driver/browser version alignment. It would be great to have someone moving from SeleniumBasic to put the Dll through a rigorous test challenge.


.live stories page is showing the stats block at the top of the page

Not sure who can resolve this, but I wanted to flag that the stats block is appearing at the top of the Stories landing page.

@sharrocksb I'm not sure why it was doing that, but I fixed it just now. For some reason, I had to go to that URL and use the bookmarklet to republish while at that URL (not from within Word).


Layers Panel Cosmetic Updates

Description
Some tweaks to the layers panel styles found here: https://www.figma.com/file/dc9xrVlRhQq4KTE9WQzU1R/Editor-Sprint-Feature-Level-Designs?node-id=9954%3A422171

Vertical size of each panel reduced from 44px to 35px
Image squares 21x21px

Acceptance criteria

Vertical size of each panel reduced from 44px to 35px
Image squares 21x21px

Hi - is it available? Would love to work on this.


batch_create does not report on 'store is read-only' errors

When using the python client with client.batch and having crossed the   DISK_USE_READONLY_PERCENTAGE my ingest fails when using data_object.create but will seemingly succeed when using batches. However the ingest that succeeded using batch did not contain any items when running a Get query though they have been processed by my t2v-transformers container.
There might be other errors that are not covered by batch.create and I only found out through a helpful comment in Weaviate Slack and after running into my issue. This seems to also have been the issue with https://github.com/semi-technologies/weaviate/issues/1929 .

Oh I was just about to file mine version of this issue... :)
So I'll just add  that I encountered similar problem, where batch command doesn't report this error either:
Creating object! Unexpected status code: 422, with response body: {'error': [{'message': "invalid object: 'id' is a reserved property name"}]}
I was able to retrieve this error by switching to one-by-one loop via  self.client.data_object.create()
but calling this lines of code didn't report any errors, but no data were imported
            results = batch.create_objects()
            if results is not None:
                for result in results:
                    if 'result' in result and 'errors' in result['result'] and  'error' in result['result']['errors']:
                        for message in result['result']['errors']['error']:
                            raise Exception(message['message'])

for reference, it was discussed on slack with @StefanBogdan  in this thread: https://weaviate.slack.com/archives/C017EG2SL3H/p1648577835143169

Hi @chris-aeviator (cc @StefanBogdan)
I've tried this using curl to make sure this is not broken in Weaviate itself and I can't reproduce the problem. I get the correct error message. Steps to reproduce:
I was running with the contextionary module, but that doesn't matter, should be the same with another or no module:
# Create a class
 curl localhost:8080/v1/schema -H 'content-type: application/json' -d '{"class": "Demo", "properties": [{"name": "foo", "dataType":["string"]}]}'

# inspect the shards of the newly created class
curl localhost:8080/v1/schema/Demo/shards
[{"name":"VLDrddZu3xm0","status":"READY"}]

# update the shard as read-only
curl localhost:8080/v1/schema/Demo/shards/VLDrddZu3xm0 -X PUT -d '{"status": "READONLY"}' -H 'content-type: application/json'
{"status":"READONLY"}

# try to import using batch
curl localhost:8080/v1/batch/objects -H 'content-type:application/json' -d '{"objects":[{"class": "Demo", "properties":{"foo": "Hello"}}]}'
[{"additional":{"interpretation":{"source":[{"concept":"demo","occurrence":2498970,"weight":0.2275829017162323},{"concept":"hello","occurrence":6818552,"weight":0.10000000149011612}]}},"class":"Demo","creationTimeUnix":1651062680441,"id":"548dfaa9-be1b-4ad9-8532-d6ec0e9656cb","lastUpdateTimeUnix":1651062680441,"properties":{"foo":"Hello"},"vector":[-0.5832661, ..., -0.47240162],"deprecations":null,"result":{"errors":{"error":[{"message":"store is read-only"}]}}}]

It reports the error correctly
"result":{"errors":{"error":[{"message":"store is read-only"}]}}}

So, I can't reproduce this.

Hi,
I tried the similar curl command with my Id problem and got the result back...
so I assumed the bug will be in python client... however since I've updated to v3.4.0 two days ago, so I thought I can give it a try and found out that I couldn't reproduce it anymore either.
So I assume is has been fixed lately?

Oh, thanks for following up @ju-bezdek, I was about to suggest creating a separate issue for your case. But maybe they are the same. Was there a recent fix around this somewhere in the python client, @StefanBogdan?

Maybe @chris-aeviator  could confirm what client and weaviate version he was on, to confirm this hypothesis too

weaviate-client~=3.4.1
Weaviate V1.12.1

I just used some old code that was still using python client batch and realized it was not even throwing on any error. My ingest succeeded (empty data) and I was only able to see this error with data_object.create()
Creating object! Unexpected status code: 422, with response body: {'error': [{'message': "invalid object: invalid string property 'onvId' on class 'OnvCompanyIndustry_CCCCCCKKKKKTEST0004': not a string, but json.Number"}]}

Thanks for the update, just to confirm: Is the error message valid?
not a string, but json.Number
Did you indeed try to send a number to a string field? Or do you expect this to be an (unrelated) bug?

@etiennedi yes the error was valid, I was indeed trying to set a number as a string.

Hi, sorry I missed my tag in here.
The python client does not do any manipulation of the results. I would recommend using a callback function when using auto-batching.
def check_batch_result(results: dict) -> None:
    """
    Check batch results for errors.

    Parameters
    ----------
    results : dict
        The Weaviate batch creation return value.
    """

    if results is not None:
        for result in results:
            if 'result' in result and 'errors' in result['result']:
                if 'error' in result['result']['errors']:
                    for message in result['result']['errors']['error']:
                        print(message['message'], flush=True)

client.batch.configure(
    batch_size=BATCH_SIZE,
    callback=check_batch_result,
    ...
)

@StefanBogdan thanks for pointing this out, I will try this approach when I find the time to see if it solves my issue. Wouldnt it make sense to provide an on_error hook alongside the callback on the client level rather than expecting the user to do deeply nested checking for errors?

@StefanBogdan You explained to me on slack, that there is no need to use callback if I wan't synch result... that I'll get the result dict as a response/output for create_object if callback is not provided.
so this method of error detection
            results = batch.create_objects()
            if results is not None:
                for result in results:
                    if 'result' in result and 'errors' in result['result'] and  'error' in result['result']['errors']:
                        for message in result['result']['errors']['error']:
                            raise Exception(message['message'])

should get the same result... the only difference is that with callback the calls are asynchronous (which could lead to some performance gains I suppose
Am I right, or I misunderstood you there?

@chris-aeviator

Wouldnt it make sense to provide an on_error hook alongside the callback on the client level rather than expecting the user to do deeply nested checking for errors?

This is under development.

@ju-bezdek I think you misunderstood. The current version of the python client does not support async functionality. The callback is used in case you have auto-batching. If you use the methods client.batch.create_objects()/client.batch.create_references() and check the  returned value, it is going to be the same, i.e.:
# auto-batching (when we set `batch_size` to a non-None value)
client.batch.configure(
  batch_size=100,
  callback=check_batch_result,
)

# is the same as
client.batch.configure(
  batch_size=None,
)

check_batch_result(
  client.batch.create_objects() # every time I call this method
)


Push doesn't collect all objects if multiple blobs use the same hash

After making a test repo of a bunch of copied and pasted files, then trying to modify one and push using es-git I get a 0055fatal: did not receive expected object 20076e54bbad301d4f0ac236bd594ee0cf37331f
https://github.com/es-git/es-git/blob/6cfa07a51e9f625935500c0e99693fab0ce46446/packages/push-mixin/ts/index.ts#L39
Also thanks for such a great library!

Hmm, the idea behind this is to not add duplicates. So when walking a tree, if the tree has already been added to the map then there is no point in adding the subtrees, since they too must have been added to the map. It's a performance improvement only, since the map cannot store duplicates, so I'm willing to accept this pull-request, but I would prefer to understand why the code isn't working correctly today.

oh, it's breaking out of the whole treeWalking, not just the current subtree...
I guess the walkTree method needs to handle feedback better, so that it can skip a subtree but continue walking the siblings

I've implemented a better walker in v0.3.2, please try it and see if things have improved

Yup, everything works now, thanks!


feat: add api key mgmt to user profile

Description

Adds a button to launch the API Key Management Dialog from the User Profile view
Migrates the UserProfile view into bh-shared-ui to reduce duplication of code
Migrates several reusable components into bh-shared-ui
Decoupled global state to create NotificationProvider and AppNotifications components to support the above Migrations
Added response types to relevant client APIs

Motivation and Context

Currently, only users with the Administrator role can create/revoke API keys. This change allows users to manage their own API keys from the My Profile view. Additionally, several components have been duplicated to support the enterprise variant of BloodHound. This change includes several refactors to reduce the unnecessary duplication and to better keep the enterprise and community editions in sync.
How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

[ ] Chore (a change that does not modify the application functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] Documentation updates are needed, and have been made accordingly.
[ ] I have added and/or updated tests to cover my changes.
[x] All new and existing tests passed.
[ ] My changes include a database migration.

The feature works as expected and I agree with Wes that it is nice that you put in the effort to avoid code duplication.

Just fixed a small merge conflict


Button has wrong typings for component property

The Button component accept a component as a property. According to the documentation, this might be any component. But the typings say, it should be React.ReactType<ButtonProps>. This is quite restrictive.
Also, in the documentation it says, that "Any other properties supplied will be spread to the root element", so any property of the component should be allowed as a property of Button.
This issue concerns typescript only.
This issue also affects other components like MenuItem.

[x] This is a v1.x issue (v0.x is no longer maintained).
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Button component accepts any component as component property.
Typescript accepts properties of provided component as properties of Button

Current Behavior

Button does not accept every component as component property (I tested with react-router-dom's Link component)
Typescript does accept properties of the provided component as properties of Button

Steps to Reproduce (for bugs)

The following should not produce a typescript error:
import * as React from 'react';
import Button from '@material-ui/core/Button';
import { Link } from 'react-router-dom';

export default () => {
  return <Button component={Link} to={'new-route'} />;
};

The error says
Error:(6, 18) TS2326: Types of property 'component' are incompatible.
  Type 'typeof Link' is not assignable to type 'string | ComponentClass<ButtonProps> | StatelessComponent<ButtonProps> | undefined'.
    Type 'typeof Link' is not assignable to type 'StatelessComponent<ButtonProps>'.
      Type 'typeof Link' provides no match for the signature '(props: ButtonProps & { children?: ReactNode; }, context?: any): ReactElement<any> | null'.

Even when typecasting Link to any, typescript complains:
import * as React from 'react';
import Button from '@material-ui/core/Button';
import { Link } from 'react-router-dom';

export default () => {
  return <Button component={Link as any} to={'new-route'} />;
};

Error:(6, 42) TS2339: Property 'to' does not exist on type 'IntrinsicAttributes & ButtonProps & { children?: ReactNode; }'.

Your Environment

Tech
Version

Material-UI
v1.2.3

React
v16.4.1

Typescript
v2.9.2

I'm closing as a duplicate of https://github.com/mui-org/material-ui/issues/8598#issuecomment-399166441


Corrected the path for backend and static-website packaged-template.yml

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


WEATHER APP Schema

@nikgraf I suggest we take twitter use case (its more generic and scalable). What say!?