Tray does not appears on Linux

The tray example does not work on Linux. The tray is not shown.
Tested with atom-shell 0.22.3 + Ubuntu 14 and atom-shell 0.22.3 + Debian Jessi
var app = require('app');
var Menu = require('menu');
var Tray = require('tray');

var appIcon = null;

app.on('ready', function(){
  appIcon = new Tray('icon.png');
  var contextMenu = Menu.buildFromTemplate([
    { label: 'Item1', type: 'radio' },
    { label: 'Item2', type: 'radio' },
    { label: 'Item3', type: 'radio', checked: true },
    { label: 'Item4', type: 'radio' },
  ]);
  appIcon.setToolTip('This is my application.');
  appIcon.setContextMenu(contextMenu);
});

Tray has been working for us, though whether the tray icon actually shows up is super distro-specific (some distros don't allow tray icons at all)

I agree that it is distro specific, but atom-shell doc says that Tray is supported on Linux with AppIndicator or GTK => https://github.com/atom/atom-shell/blob/master/docs/api/tray.md
So i think this is a bug because both Ubutu 14 and Debian Jessi use AppIndicator.

Yeah it supports app indicator, and it used to work on Ubuntu 14.04, it seems to be a regression.

Can confirm, also experiencing this issue on Ubuntu 14.04.

I'm having this issue in Electron 0.29.2

I'm having an issue in Electrong 0.29.1 when trying to initialise tray, give me following error "A JavaScript error occured in the browser process
Uncaught Exception:
TypeError: Error processing argument 0.
at TypeError (native)
at EventEmitter. (/Users/xxxxxxx/xxxxxxx/first-electron-app/main.js:34:13)
at emitOne (events.js:82:20)
at EventEmitter.emit (events.js:169:7)"
Line 34 in "main.js" is the initialisation line. Here it is ("appIcon = new Tray('file://' + __dirname + '/tree.png');"
Any help would be much appreciated.

Found the problem I had. When creating a new Tray it does not recognise the path I put in the argument. I had to use 'path' module to load the location of the image for the icon.
I.e.: var iconIdle = path.join(__dirname, 'images', 'tree.png');
appIcon = new Tray(iconIdle);
Then it works.

I need to install libappindicator1 to get the tray working, is that right?

sergiovilar, no you do not need it at all, only "tray".

@alexandrkazah unfortunately I had to install libappindicator1 on Ubuntu 14.04+ to get the Tray working.

@sergiovilar Yeah the libappindicator1 has to be installed to make Tray working on Ubuntu, thanks for finding it out!

@zcbenza any clue to get the Tray working on Fedora 22? libappindicator1 is not available on dnf repositories.

@zcbenz any clue to get the Tray working on Debian 8? The Tray doesn't appear even with libappindicator1 installed.


Sentinel and server at parallele

Hello,
I would be good to be able to run a redis-server instance on default port (6379) and sentinel instance at the same time.
I propose a modification of the role to handle this capacity.

I've already done the same thing in our code base.

My only concern with this is that it changes behavior for users that relied only on the redis_sentinel flag, but I don't think that's too big of a deal. I'll get this merged after I confirm the test-kitchen runs still work and the documentation is updated.

At my workplace we're also running the same configuration -- we have a number of dev redis clusters that run sentinel and redis on the same VM. This patch applies cleanly and works well.

Hello. Any update on this PR ? It would be good to have it ...


fix type hinting

Codecov Report

Merging #114 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #114   +/-   ##
=======================================
  Coverage   88.64%   88.64%
=======================================
  Files         126      126
  Lines        3207     3207
=======================================
  Hits         2843     2843
  Misses        364      364

Impacted Files
Coverage Δ

creme/base.py
81.48% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for the PR!
Indeed the return types are wrong for Transformer and Clusterer, they should be 'Transformer' and 'Clusterer', respectively. Can you update your PR?


Exact versions of dependencies for pix2pix net?

Hi,
I am trying to train the pix2pix model. Unfortunately I get errors with several combinations of Theano / Keras and Tensorflow / Keras. Which versions and which dimension order should I use? Is it documented somewhere?

I have not documented it sorry.
Should run with theano 0.9 or tensorflow 1.0 and keras 1.2.2

OK, does not work for me with tensorflow because I use CUDA 8.0 but it seems to work with theano 0.9. At least I did not get an error yet. Should I open a pull request to update the README or can you do that?


Add GPU report to the session info

http://stackoverflow.com/questions/29667666/how-get-gpu-information-in-c

https://github.com/Microsoft/RTVS/commit/bfde563e3fd5ba6f9a51568cdf9558d43de93867


Update documentation

Solved issue #4
Added the way to create a new issue. Also, added a way to start contributing to the project.

@soyo-kaze I have solved the typos.

I think you have accidentally closed the PR,😂 I am reopening it

Great work @Abhirv08 !! 🚀🚀


[SPARK-29629][SQL] Support typed integer literal expression

What changes were proposed in this pull request?

postgres=# select date '2001-09-28' + integer '7';
  ?column?
------------
 2001-10-05
(1 row)postgres=# select integer '7';
 int4
------
    7
(1 row)

Add support for typed integer literal expression from postgreSQL.
Why are the changes needed?

SPARK-27764 Feature Parity between PostgreSQL and Spark
Does this PR introduce any user-facing change?

support typed integer lit in SQL
How was this patch tested?

add uts

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17763/
Test PASSed.

Test build #112828 has started for PR 26291 at commit b453a2e.

Test build #112828 has finished for PR 26291 at commit b453a2e.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112828/
Test FAILed.

retest this please

Test build #112831 has started for PR 26291 at commit b453a2e.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17766/
Test PASSed.

Test build #112834 has started for PR 26291 at commit cdce795.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17769/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17771/
Test PASSed.

Test build #112836 has started for PR 26291 at commit 1960b29.

Test build #112831 has finished for PR 26291 at commit b453a2e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112831/
Test PASSed.

Test build #112834 has finished for PR 26291 at commit cdce795.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112834/
Test PASSed.

Test build #112836 has finished for PR 26291 at commit 1960b29.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112836/
Test PASSed.

Merged to master.

Shall we revert it? It seems weird to me to write int literals with INTEGER '1' instead of 1. Now we don't care too much about pgsql compatibility, and we need to make sure these new features are reasonable.
cc @gatorsmile @xuanyuanking @gengliangwang

Postgre +1 Presto +1 MySQL -1, ANSI Standard (Seems -1)

I am +1 for reverting this one.
In PostgreSQL, all the data types in https://www.postgresql.org/docs/9.1/datatype-numeric.html should be supported. E.g. smallint '1', float '2.3'
It is wired to support 'integer' only.
I am going to revert this one.
Also cc @HyukjinKwon

+1 for reverting, the Jira SPARK-30125 should be reused, then all the reverting PRs are gathered together.


“Authorized user:” not recognizing my username

16” M1 Pro macbook with all the latest
During the step2.sh section of Asahi Linux Desktop setup, the “Authorized user:” prompt is not recognizing my username. I know the username is correct and the one I had selected, even confirmed it by going to the Startup Disk tool and clicking Unlock on my macOS boot volume.

In a Mac terminal, can you run sudo whoami ? Are you using that password?
Are there other user accounts?

Thank you so much! I had no idea that the username and user were different things.


RFM - nmm

I am mostly stepping away from chocolatey as I do not really use it anymore and don't really have time to upkeep my packages (fixing issues or checking and seeing if everything is still working as it should be) I have been maintaining for a good while now, so I am currently on the lookout for someone to take over pretty much all my packages (I'll be creating an issue for each package).

Current Maintainer

[x] I am the maintainer of the package and wish to pass it to someone else;

Checklist

[x] Issue title starts with 'RFM - '

Existing Package Details
Package URL: https://chocolatey.org/packages/nmm
Package source URL: https://github.com/JourneyOver/chocolatey-packages/tree/5046f4d352f51a07a95bd40762275339949f6b81/automatic/nmm

Hello @JourneyOver , me again, i'll take this package too.
Ready on my repo.
Can you add me ? tunisiano
Thank you.

@tunisiano187 I have added you as a maintainer (that you need to accept), thanks for taking over the package.


Advice on trimming down package size?

I'd like to use deepface in an AWS Lambda but with deepface plus a few other things installed, my current docker container is at 10.7 GB, and the AWS limit is 10.0 GB.
Since I am only using MTCNN face alignment and nothing else, is there some easy place I can trim some dependencies or model files I don't need, post install?
From what I can see, pip install deepface consumed 2.44 GB, and then the yum -y update && yum -y install mesa-libGL (that I seem to require to obtain libGL.so) consumes an additional 0.5 GB or so. Intuitively I feel there must be at least 0.7 GB I can find and delete without losing functionality.
Thanks in advance.

Well, I came to the realization that there's not much that can be done with this package, since tensorflow alone makes up 2.2 GB. However, on the positive side of things, I managed to get my install of torch (yes I need both :-) down to minimal levels by excluding GPU support, via pip install torch --extra-index-url https://download.pytorch.org/whl/cpu. Mow my container is under 5GB!
Closing since this issue is not even related to deepface anymore...

@delta42 did you figure it out. Been trying to do the same thing but running into timeouts

Hey @delta42  can we connect,I also want to use deepface on AWS Lambda for inference for Face recognition task,But due high dependencies,I am not able to do it,Can you suggest some other ways like using AWS Sagemaker instead of this approach ?

Hi guys, were you able to fix this?


Avoid useless work when switching a modern Zulip server to Pgroonga

This avoids creating an index that we're going to drop in an immediately following migration.
@kou FYI.
As of yet untested beyond CI.

Merged, thanks for the reviews!


Add a go module feed

Go doesn't allow code execution at download time, but it would still be useful to add a package feed for other use cases.
Docs here: https://proxy.golang.org/
Feed here: https://index.golang.org/index

I'll take a crack at this

This can be closed now with https://github.com/ossf/package-feeds/pull/55 landing? :smiley:

Thanks!


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Mon Mar 14 2016 23:01:51 GMT 0700 (SE Asia Standard Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\Jackky\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\Jackky\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470


fix(email): Sender-receiver name, ID Field

General:
Sender and receiver name not showing correctly in an email.
Additionally package status change email, ID field not working.

@MrHumanRebel Teszteld légyszi, javítva


Update website plugin list

https://typedoc.org/guides/plugins/ lists a few TypeDoc plugins. There doesn't seem to be much rhyme or reason for how these were chosen, and some of them appear abandoned and don't work on the latest version of TypeDoc.

[ ] Create GitHub action to automatically generate plugin list
[ ] Make --plugin link to https://typedoc.org/guides/options/#plugin

A couple of plugins to add that were mentioned in Gitter:

UML class generation by @krisztianb - https://github.com/krisztianb/typedoc-umlclass
Specify a favicon + include generation time in the footer by @Drarig29 - https://www.npmjs.com/package/typedoc-plugin-extras

I'd like to propose another useful plugin for the list: https://github.com/artifacthealth/typedoc-plantuml

This one too https://github.com/mipatterson/typedoc-plugin-pages

The plantuml plugin above has been abandoned, I think I'll just list https://github.com/krisztianb/typedoc-umlclass since it's still maintained.

Reworked this a bit - it should be possible to use GitHub actions to query npm for a plugin list, then the site can just display plugins  with a release in the last 3? 6? months

Reworked this a bit - it should be possible to use GitHub actions to query npm for a plugin list, then the site can just display plugins  with a release in the last 3? 6? months


support ECDSA-NIST256P-CHALLENGE?

Since it's mentioned in the official Weechat docs:
https://www.weechat.org/files/doc/stable/weechat_user.en.html#irc_sasl_authentication

Nah, we shouldn't support this mechanism, for backstory see https://github.com/ircv3/ircv3.github.io/pull/11
One I really do want to implement is SCRAM-SHA-256 though, recommended by v3 and has some implementation (Atheme I think, bitbot, irccloud): https://tools.ietf.org/html/rfc7677

#175 for SCRAM-SHA-256.


Navigation bar chaning

Logo are little small and add the search bar

@rakhiiprajapati assigned!

Dear sir ,
Hello sir I am changing the game logo
Sir please guide me how to contribute many more
On Fri, 11 Oct, 2024, 7:26 pm SK MIRAJUL ISLAM, @.***>
wrote:

@rakhiiprajapati https://github.com/rakhiiprajapati assigned!
—
Reply to this email directly, view it on GitHub
https://github.com/Vin205/Enyanjyoti/issues/191#issuecomment-2407472416,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJBKAQIBBEH5QPQT55AAJWDZ27KKTAVCNFSM6AAAAABPYAJXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGQ3TENBRGY
.
You are receiving this because you were assigned.Message ID:
@.***>

@rakhiiprajapati yes how i can assist you ?

Thank you for your response.
On Fri, 11 Oct, 2024, 9:44 pm SK MIRAJUL ISLAM, @.***>
wrote:

@rakhiiprajapati https://github.com/rakhiiprajapati yes how i can
assist you ?
—
Reply to this email directly, view it on GitHub
https://github.com/Vin205/Enyanjyoti/issues/191#issuecomment-2407729785,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJBKAQLJBY77QVGI5JDPGT3Z272OJAVCNFSM6AAAAABPYAJXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXG4ZDSNZYGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Awesome, thanks for the update!
On Mon, 14 Oct, 2024, 11:51 am SK MIRAJUL ISLAM, @.***>
wrote:

Closed #191 https://github.com/Vin205/Enyanjyoti/issues/191 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Vin205/Enyanjyoti/issues/191#event-14625610787, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BJBKAQIVPMDKI3H55IK343DZ3NPG7AVCNFSM6AAAAABPYAJXUCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGYZDKNRRGA3TQNY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Unify structure sinks for tracing and serialization (tuples, lists, ..)?

plan is to migrate everything to the bytecode impl


Changed email validation so emails require domain.

The tests show that an email such as name@domain is valid. Is this the way it should be?
Thanks!

See https://github.com/jzaefferer/jquery-validation/blob/master/CONTRIBUTING.md

IMPORTANT NOTE ABOUT EMAIL VALIDATION. As of version 1.12.0 this plugin is using the same regular expression that the HTML5 specification suggests for browsers to use. We will follow their lead and use the same check. If you think the specification is wrong, please report the issue to them. If you have different requirements, consider using a custom method.

see https://github.com/jzaefferer/validation-content/pull/14/files for how to use a custom email pattern

So sorry! Lesson learned. Thank you!

@acodeinprogress no problem, feel free to participate in any other form :-).
Email format is like a running gag though, since we get ~1 report per week ... Seems that people do not read the readme or search the issue tracker.

Then why not making this more visible and offer a solution that would work for both? I came here because exactly the same reason. Your validation plugin (is quite great!) says email is valid, but my PHP code says it's not. And I never heard that name@domain could be a valid email address. Maybe in closed local network, but not on the internet.

@DePalmo where do we miss to inform the user about the email validation pattern?
AFAIR we have it in the README & CONTRIBUTION File on github, as well as the official docs for the email method.

I'm only saying it because:

I did look at the docs (but not readme) and didn't found this mentioned
you mentioned that you have an issue opened about this almost each week

So, you could add this note to the documentation available on plugin's website. That would actually make it visible.

See http://jqueryvalidation.org/email-method/ its mentioned and even linked in the docs.
Thx for suggesting ways to improve, though

Then I must be blind. On the link provided, I only see that we can use a custom validation for email but there's no notice that emails are validated strictly by HTML5 specs and that most coders most probably won't like it.
It would be nice if there would be a notice about this for us, "dumb people". I'm also sure it will bring down the "issues reported" because we will know what's wrong and will look for a solution from there on and not came here reporting issues that are not there. Bonus would be to have a working example for custom email rule on your website.
And no problem, just trying to help.

Ah now I get what you think is missing. Feel free to provide a PR at https://github.com/jzaefferer/validation-content
Thx


BVAL-561

Supersedes #134.

Thanks for your revise.
I have checked it out, and it seems all right to me,
except for removing a comma(,) between @Pattern annotation in EmmanuelsEmail.java.

Thanks, good catch! Seems I didn't compile the example :)

Fixed the example. Thanks again, @kasabuta4!


still got ModuleNotFoundError

File "D:\workspace\ripcio.prj\testarea\vidgear.py", line 6, in
from vidgear.gears import CamGear
ModuleNotFoundError: No module named 'vidgear.gears'; 'vidgear' is not a package
I've tried everything........

Sorry...settled...I used vidgear.py for my filename
change to vdg.py ....then everything OK
Thank you

@kamarisoim There's already similar issue #140 & #150 that are resolved. Kindly search previous issues before opening a new one.


Feature request: Automatically download files and run as administrator

If a webpage has files to download they should be downloaded. Also every 10 secs a random photo or link that says download should be cliked to make sketcy websites safer.

This would be very convenient when I need to install bonzi buddy compatibility patch on a new system

It would make using it a lot easier and viruses would have a nicer time.


Bun 1.1.27

Static routes in serve, Per-request timeouts. Cancel method in ReadableStream is called. bun run handles CTRL + C better. Faster buffered streams. bun outdated package filtering. Watch arbtirary file types in --hot and --watch. + MORE!

Thanks!

@7heMech It usually gets synced during internal releases -- I'd actually already assumed this had been picked up. Let me kick it for you right now

@7heMech OK, the build has finished and the release is rolling out to clusters as we speak. Sorry for the delay, as always thank you for your contribution!


ISPN-14033 Change multicast address to private network

https://issues.redhat.com/browse/ISPN-14033

I'm sorry @diegolovison, but this does not make any sense to me. Is there a user using Infinispan over the internet with UDP!?

https://github.com/belaban/JGroups/commit/50b109036515e72ec9cb27dbe764351c70b9cae8
https://github.com/belaban/JGroups/commit/df9107fa9d4b3885796ad06d526d1a784500d184

merged! thanks @diegolovison !


Insertion and deletions in singly and doubly linked list

@Yaser-123 , I can write code for insertion and deletion in singly and doubly linked list
I got to know about ur repo through github , if u need any help in python, do contact me

@Arisha2902
Thanks for reaching out! Feel free to go ahead and contribute the code for insertion and deletion in linked lists. I’ll definitely contact you if I need help with Python. 😊 By the way, if you're working on any project, I'd be happy to contribute!


Deleting a comment prevents adding a comment without refreshing

This could be a chance to add in the editing feature - by making this an edit icon - performing the delete and creating an input box with the original comment text. Behind the scenes, it'll just follow the same API calls.

@Sumukh I'd be willing to take this one on. Is there a design doc for the editing feature already?

There is not - I'd be happy to talk about it though. Send me an email and we can find a time to meet.

Duplicate of #404 ?

@papajohn I think #404 is a dup of this one.
I've got the editing feature (and the fix for this) almost finished. I'll try and wrap them up soon.

@jordonwii Turns it out, the problem was twofold: (1) hideBox was still true, even though the button was trying to toggle showComment (2) this behavior was enforced because the comment wasn't actually removed from the page. Just in case you were curious. x)


Adds yamllint

yamllint is a linter for YAML files.
Added yamllint to documentation.
Added yamllint to tests.
Tested it locally:

Looks good to me, thanks 👍🏾


Problem: Hare uses older Consul version 1.7.8

Solution:
Update hare requirement for Consul version to 1.9.1.
Signed-off-by: Mandar Sawant<EMAIL_ADDRESS>

Few questions:

Why 1.9.1 if there is already 1.9.2?
Why not to try the more stable 1.8.x branch? Why to risk with 1.9? Is there some new feature there that we need?

Few questions:

Why 1.9.1 if there is already 1.9.2?
Why not to try the more stable 1.8.x branch? Why to risk with 1.9? Is there some new feature there that we need?

Few questions:

Why 1.9.1 if there is already 1.9.2?
Why not to try the more stable 1.8.x branch? Why to risk with 1.9? Is there some new feature there that we need?
No, Just tried with the latest available Consul version, I found 1.9.1, looks like its1.9.2 now, but did some basic testing with 1.9.1,  bootstrapping which worked. So went ahead with it. I did not check 1.8.x. I think we need to run more tests to see if everything works fine. Probably cQA can do that or I can try to run some more failure test cases next week.

Few questions:

Why 1.9.1 if there is already 1.9.2?
Why not to try the more stable 1.8.x branch? Why to risk with 1.9? Is there some new feature there that we need?
No, Just tried with the latest available Consul version, I found 1.9.1, looks like its1.9.2 now, but did some basic testing with 1.9.1,  bootstrapping which worked. So went ahead with it. I did not check 1.8.x. I think we need to run more tests to see if everything works fine. Probably cQA can do that or I can try to run some more failure test cases next week.

@andriytk, tested bootstrapping, node failure, node join did not see any consul specific issue.

@andriytk, tested bootstrapping, node failure, node join did not see any consul specific issue.


Added Z Algorithm for Strings in Python

I have included Z Algorithm for Strings in Python

Great keep contributing !


Could not resolve junit:junit:4.12.          > Could not parse POM https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.pom

Steps to Reproduce
I'm using the flutter 2.10.0 for building my application.
I have the following as dependencies
`dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_riverpod: ^1.0.3
hive: ^2.0.6
hive_flutter: ^1.1.0
mockito: ^5.1.0
http: ^0.13.4
dartz: ^0.10.1
get_it: ^7.2.0
validators: ^3.0.0
url_launcher: ^6.0.20
data_connection_checker_tv: ^0.3.5-nullsafety
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
hive_generator: ^1.1.2
build_runner: ^2.1.7`
I'm running on windows 11

To get the result I got
To get the error I got just try to build the final apk using : flutter build apk --split-per-abi

Actual results:
`Building with sound null safety
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:lintVitalRelease'.

Could not resolve all artifacts for configuration ':path_provider_android:debugUnitTestRuntimeClasspath'.
Could not resolve junit:junit:4.12.
Required by:
project :path_provider_android
Could not resolve junit:junit:4.12.
Could not parse POM https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.pom
Resetting to invalid mark
Could not resolve junit:junit:4.12.
Could not parse POM https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.pom
Resetting to invalid mark
Could not resolve junit:junit:4.12.
Could not parse POM https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.pom
Resetting to invalid mark

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1m 4s
Running Gradle task 'assembleRelease'...                           66,0s
Gradle task assembleRelease failed with exit code 1`
As the project was an open source project here is the code link
https://github.com/SiProgramming/trace_in_mobile_app.git

@ofceab
I cloned the repo and ran the said command which built the apk properly for me without any issues:

C:\Users\Win\Downloads\trace_in_mobile_app-main\trace_in_mobile_app-main>flutter build apk --split-per-abi
Running "flutter pub get" in trace_in_mobile_app-main...           12.7s

 Building with sound null safety

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Note: D:\FlutterSDK\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.12\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
WARNING: [Processor] Library 'C:\Users\Win\.gradle\caches\modules-2\files-2.1\org.robolectric\shadows-framework\4.3\150103d5732c432906f6130b734e7452855dd67b\shadows-framework-4.3.jar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
 Example of androidX reference: 'androidx/test/runner/lifecycle/Stage'
 Example of support library reference: 'android/support/annotation/NonNull'
Running Gradle task 'assembleRelease'...                          300.0s
√  Built build\app\outputs\flutter-apk\app-armeabi-v7a-release.apk (6.8MB).

C:\Users\Win\Downloads\trace_in_mobile_app-main\trace_in_mobile_app-main>

I am latest stable (2.10.3).
Looking at the error log, it seems to indicate you might be on older version of gradle and it may not have anything to do with Flutter, so closing this as not an issue. You may ask about the same on support channels like stackoverflow.


Unhandled messages

Akka's default behavior for unhandled messages is to send a akka.actor.UnhandledMessage to the actor system's global event stream. By handling even the unknown messages in our actor implementations, we're breaking this fall back.
This PR changes the implemenation of all receive methods to ignore unknown messages so that they can be handled by the actor system instead.

What does the actor system do when it receives an unknown message?

They will be published to the system's event stream. You can enable debug logging of handled messages by setting the akka.actor.debug.unhandled configuration setting to ON

Can we provide this as a default configuration? I'd hate to swallow such errors.

Sure!

LGTM. Feel free to merge! :)


Sarif file failing to upload due to duplicate CVE warning

Describe the bug
This week our CI builds have broken due to duplicate CVE warnings appearing in the sarif report from the prisma-cloud-scan action

Expected behavior
Before this week builds were working fine and were able to upload the sarif file to github without issue.

Current behavior
Currently, there is a duplicate CVE (CVE-2022-45061) appearing in our sarif report. The upload to github fails as it does not expect a duplicate in the results. We are scanning a dotnet lambda docker image. The exact image is public.ecr.aws/lambda/dotnet:6.2<IP_ADDRESS>.

Possible solution
Option to ignore duplicate issues found. Could also be solved by having the upload action ignore duplicates or AWS updating their images.

Steps to reproduce

Create a dockerfile using public.ecr.aws/lambda/dotnet:6.2<IP_ADDRESS> as the base image
FROM public.ecr.aws/lambda/dotnet:6.2<IP_ADDRESS>

Scan the dockerfile using the PaloAltoNetworks/prisma-cloud-scan@v1 action in github actions

- name: Prisma Cloud Image Scan
        id: scan
        uses: PaloAltoNetworks/prisma-cloud-scan@v1
        with:
          pcc_console_url: ${{ secrets.PRISMA_BASE_URL }}
          pcc_user: ${{ secrets.PRISMA_ACCESS_KEY_ID }}
          pcc_pass: ${{ secrets.PRISMA_SECRET_KEY }}
          image_name: ${{ env.IMAGE_NAME }}:${{ steps.gitversion.outputs.nuGetVersionV2 }}

Try to upload the SARIF file using github/codeql-action/upload-sarif@v2 in github actions

- name: Upload SARIF file
        if: always()
        uses: github/codeql-action/upload-sarif@v2
        with:
          sarif_file: ${{ steps.scan.outputs.sarif_file }}

Error should appear Error details: instance.runs[0].tool.driver.rules contains duplicate item

Screenshots

Context
This has broken CI builds as the sarif file with the duplicates cannot be uploaded

Your Environment

Version used: PaloAltoNetworks/prisma-cloud-scan@v1
Environment name and version: Github actions running on Ubuntu-Latest

We are facing same issue as well! Could you please provide an workaround until the issue is fixed?

We are also facing the same issue. Any news on this?

We are also facing the same issue. Any news on this?

I do not see the duplicate CVE issue for this image. This could have been a bug on the Prisma Cloud side, that was generating the duplicate CVE in the output.   Is this still occurring for you in the latest releases of the plugin and Console?

I've tested with this image FROM alperthod/dotnet:latest  and I'l seeing the failure on CVE CVE-2021-24112


Zoom level indicator

Addresses the first suggestion from #2392 - in the resource view, a small horizontal resource scale is displayed from which we can see how deeply we've zoomed. The problem of having zoomed to deeply into a wide box and not seeing any changes when scrolling was brought to me a couple of times.
Notes

~The resource boxes of zero width are hidden from the resource view now, which fixes the zoom limit being overflown in the CPU view.~ #2499
We display percentages differently on the zooming scale (from how they are shown on the nodes) - in particular, we use a flexible point precision, with up to 4 digits after the decimal point (as 2 were not precise enough for deep zooms).
To get a satisfying number rounding policy for zoom scale percentages, I dug up the old round helper from #2028 that was removed in the meantime.

~Additional changes~

~Made the displayed metric info reflect the adjustment in resource boxes width. Now the data we display is fully consistent with the layout, although the information is not really always that accurate. Makes #2389 less obvious, but doesn't really fix it.~ #2499
~The way we calculate viewport dimensions has been adjusted for consistency between running Scope UI independently as a part of Weave Cloud (previously the margins were a bit off because of the difference in the nav bar height between the two).~ #2472

The scale helps a lot, but I found two issues:
The numbers dont add up: 130 + 77 > 160

And zooming in on the center makes the upper boxes in the upper band disappear (whereas if I zoom in on the far left, they keep getting displayed)

VS (both scales around 128MB

@davkal PTAL. I draw only a simple small scale in the bottom-right corner now, according to your feedback and our discussion that followed (I also tried it closer to the resource boxes, but didn't look that good to me).

The numbers not adding up is a blocker, because it diminishes trust.

I adjusted the displayed metrics info (last commit) so hopefully the trust will not be diminished now :)

LGTM. This can be merged as is.
I still find the two axis confusing (eg., expressing used memory both in x and y dimensions). Also, when zooming into the center part, the boxes to the left still disappear and you have no way of knowing that they are there. I am aware that other flame graphs suffer the same problems, but maybe indicators could help: either a thumbnail overview with a rectangle representing the visible part, or thin-lined boxes to the left that afford a panning action to get them into view.

Thanks for reviewing @davkal.
I agree with both of your points, let me try to summarize my thoughts on them:

I still find the two axis confusing (eg., expressing used memory both in x and y dimensions).

This currently only affects the Hosts layer, but in the future it might affect any layer with the notion of resource capacity, so it'd be good to decide on the final looks sooner rather than later. Here are some ideas that I had:

Drop the notion of capacity and show only the resource utilization for every node.

PROS: full design consistency between the layers, simpler and more intuitive layout
CONS: the capacity information actually seems more important to show for hosts than the resource consumption as the latter can be roughly approximated by the stack of containers above it

Make the above the default and then have a sort of check-box Show capacities that would switch to the view as it is now.

PROS: serves the more intuitive layout first, doesn't remove any information from the resource view
CONS: your comment would still apply to the layout with capacities, e.g. if someone lands there first

Make hosts resource boxes look the same as containers/processes ones, but let their width stand for capacity instead of resource utilization.

PROS: showing arguably the most useful information while keeping the design consistent
CONS: inconsistent semantics between the layers, hosts would feel empty

Note: Show the bar for hosts horizontally instead of vertically maybe sounds like a good idea but it actually looked quite messy when I tried it.
I don't really have any other ideas that wouldn't require major changes to the layout. However, I got this comment more than once so I quickly prototyped another layout idea in another experimental branch. Looks more or less like this:

So basically all the layers are collapsed into one and the nodes are embedded into their parents instead of being shown on top of them. The trigger for me was thinking how point 3. above leaves hosts empty, so I thought of filling them with some information.

Also, when zooming into the center part, the boxes to the left still disappear and you have no way of knowing that they are there. I am aware that other flame graphs suffer the same problems, but maybe indicators could help: either a thumbnail overview with a rectangle representing the visible part, or thin-lined boxes to the left that afford a panning action to get them into view.

Thin-lined boxes on the sides would break the existing zooming isometry and would not be consistent with the zooming scale info, so I'm not a huge fan of that idea (unless we modify this PR to show only the zooming factor instead of displaying the scale).
Some sort of pseudo rectangle that gives hint about what is outside of the viewport sounds better to me and is definitely something I could implement in another story.
Alternatively, a trick with very little impact that could hint there is some content behind the screen would be to extend the text info background for the resource box. Compare the two pictures below:

In conclusion, I'm not sure whether it makes sense to actually merge this PR, especially if we are going to do some changes to the current layout, so I'd freeze it a bit before I get more feedback on what I wrote above I think.

Dropped in favor of a more generic zoom control/indicator #2513.


errors with undefined symbol: _ZNK3c106SymIntltEl during training

During training I receive A few errors, namely

ImportError: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
ImportError: DamoFdDetect: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
ImportError: FaceDetectionPipeline: DamoFdDetect: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl

as well as

FileNotFoundError: Couldn't find a dataset script at /workspace/facechain/worker_data/qw/training_data/ly261666/cv_portrait_model/me2_labeled/me2_labeled.py or any data file in the same directory.

Please find the complete log below.
I am unaware of what to do, since I've only ran the pipeline and got the error immediately. Any help will be appreciated
2023-11-29 11:58:26,379 - modelscope - INFO - Use user-specified model revision: v1.0.0
2023-11-29 11:58:31,830 - modelscope - INFO - PyTorch version 2.1.0+cu118 Found.
2023-11-29 11:58:31,833 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2023-11-29 11:58:31,875 - modelscope - INFO - Loading done! Current index file version is 1.9.5, with md5 02febd683a9af26d5de93d288790bf07 and a total number of 945 components indexed
/workspace/facechain/app.py:1264: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
output_images = gr.Gallery(label='Output', show_label=False).style(columns=3, rows=2, height=600,
[['/workspace/facechain/resources/inpaint_template/1.jpg'], ['/workspace/facechain/resources/inpaint_template/2.jpg'], ['/workspace/facechain/resources/inpaint_template/3.jpg'], ['/workspace/facechain/resources/inpaint_template/4.jpg'], ['/workspace/facechain/resources/inpaint_template/5.jpg']]
/workspace/facechain/app.py:1367: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
output_images = gr.Gallery(
[['resources/tryon_garment/garment1.png'], ['resources/tryon_garment/garment2.png'], ['resources/tryon_garment/garment3.png'], ['resources/tryon_garment/garment4.png']]
/workspace/facechain/app.py:1510: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
output_images = gr.Gallery(
2023-11-29 11:58:38,572 - modelscope - INFO - Use user-specified model revision: v4.0
2023-11-29 11:58:44,597 - modelscope - INFO - Use user-specified model revision: v1.0.1
Downloading: 100%|███████████████████████████| 121k/121k [00:00<00:00, 1.47MB/s]
Downloading: 100%|█████████████████████████████| 118/118 [00:00<00:00, 59.1kB/s]
Downloading: 100%|███████████████████████████| 146k/146k [00:00<00:00, 1.69MB/s]
Downloading: 100%|███████████████████████████| 217M/217M [00:07<00:00, 30.0MB/s]
Downloading: 100%|█████████████████████████| 97.8M/97.8M [00:02<00:00, 49.7MB/s]
Downloading: 100%|█████████████████████████| 12.4k/12.4k [00:00<00:00, 7.26MB/s]
Downloading: 100%|█████████████████████████| 51.2M/51.2M [00:01<00:00, 41.7MB/s]
Downloading: 100%|█████████████████████████| 4.90k/4.90k [00:00<00:00, 5.07MB/s]
Downloading: 100%|███████████████████████████| 104M/104M [00:02<00:00, 47.1MB/s]
Downloading: 100%|█████████████████████████| 76.4k/76.4k [00:00<00:00, 1.30MB/s]
Downloading: 100%|█████████████████████████| 82.0k/82.0k [00:00<00:00, 1.40MB/s]
2023-11-29 11:59:10,831 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file
2023-11-29 11:59:10,831 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_unet_skin_retouching_torch
2023-11-29 11:59:10,831 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_unet_skin_retouching_torch.
2023-11-29 11:59:10,833 - modelscope - WARNING - No preprocessor field found in cfg.
2023-11-29 11:59:10,833 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-11-29 11:59:10,833 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_unet_skin_retouching_torch'}. trying to build by task and model information.
2023-11-29 11:59:10,833 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-11-29 11:59:16,829 - modelscope - WARNING - Model revision not specified, use revision: v2.0.2
Downloading: 100%|██████████████████████████████| 509/509 [00:00<00:00, 248kB/s]
Downloading: 100%|███████████████████████████| 104M/104M [00:02<00:00, 46.7MB/s]
Downloading: 100%|█████████████████████████| 5.78k/5.78k [00:00<00:00, 2.64MB/s]
Downloading: 100%|███████████████████████████| 980k/980k [00:00<00:00, 5.55MB/s]
Downloading: 100%|███████████████████████████| 137k/137k [00:00<00:00, 1.55MB/s]
2023-11-29 11:59:28,514 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_resnet50_face-detection_retinaface
2023-11-29 11:59:28,514 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_resnet50_face-detection_retinaface.
2023-11-29 11:59:28,516 - modelscope - WARNING - No preprocessor field found in cfg.
2023-11-29 11:59:28,516 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-11-29 11:59:28,516 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-11-29 11:59:28,516 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-11-29 11:59:28,517 - modelscope - INFO - loading model from /root/.cache/modelscope/hub/damo/cv_resnet50_face-detection_retinaface/pytorch_model.pt
2023-11-29 11:59:29,101 - modelscope - INFO - load model done
2023-11-29 11:59:30.980673186 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2649'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980706806 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2657'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980712234 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2644'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980718387 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2594'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980726631 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2596'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980736959 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2653'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980743234 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2624'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980750943 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2652'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980761113 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2645'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980767152 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2643'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980776493 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2648'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980782942 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2647'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980789415 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2641'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980797308 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2633'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980819980 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2632'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980828207 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2614'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980834643 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2613'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980846135 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2658'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980855249 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2606'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:30.980860760 [W:onnxruntime:, graph.cc:3543 CleanUnusedInitializersAndNodeArgs] Removing initializer 'const_fold_opt__2598'. It is not used by any node and should be removed from the model.
2023-11-29 11:59:34,193 - modelscope - INFO - Use user-specified model revision: v1.1
Downloading: 100%|██████████████████████████████| 235/235 [00:00<00:00, 116kB/s]
Downloading: 100%|█████████████████████████| 5.82k/5.82k [00:00<00:00, 2.40MB/s]
Downloading: 100%|█████████████████████████| 2.17M/2.17M [00:00<00:00, 10.8MB/s]
Downloading: 100%|█████████████████████████| 8.10k/8.10k [00:00<00:00, 3.48MB/s]
2023-11-29 11:59:38,797 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_ddsar_face-detection_iclr23-damofd
2023-11-29 11:59:38,797 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_ddsar_face-detection_iclr23-damofd.
2023-11-29 11:59:38,798 - modelscope - INFO - initialize model from /root/.cache/modelscope/hub/damo/cv_ddsar_face-detection_iclr23-damofd
Process Process-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 210, in build_from_cfg
return obj_cls._instantiate(**args)
File "/usr/local/lib/python3.10/dist-packages/modelscope/models/base/base_model.py", line 67, in _instantiate
return cls(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/modelscope/models/cv/face_detection/scrfd/damofd_detect.py", line 31, in init
super().init(model_dir, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/modelscope/models/cv/face_detection/scrfd/scrfd_detect.py", line 36, in init
from mmdet.models import build_detector
File "/usr/local/lib/python3.10/dist-packages/mmdet/models/init.py", line 2, in
from .backbones import *  # noqa: F401,F403
File "/usr/local/lib/python3.10/dist-packages/mmdet/models/backbones/init.py", line 2, in
from .csp_darknet import CSPDarknet
File "/usr/local/lib/python3.10/dist-packages/mmdet/models/backbones/csp_darknet.py", line 11, in
from ..utils import CSPLayer
File "/usr/local/lib/python3.10/dist-packages/mmdet/models/utils/init.py", line 13, in
from .point_sample import (get_uncertain_point_coords_with_randomness,
File "/usr/local/lib/python3.10/dist-packages/mmdet/models/utils/point_sample.py", line 3, in
from mmcv.ops import point_sample
File "/usr/local/lib/python3.10/dist-packages/mmcv/ops/init.py", line 2, in
from .active_rotated_filter import active_rotated_filter
File "/usr/local/lib/python3.10/dist-packages/mmcv/ops/active_rotated_filter.py", line 10, in
ext_module = ext_loader.load_ext(
File "/usr/local/lib/python3.10/dist-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 212, in build_from_cfg
return obj_cls(**args)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/cv/face_detection_pipeline.py", line 36, in init
super().init(model=model, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/base.py", line 99, in init
self.model = self.initiate_single_model(model)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/base.py", line 53, in initiate_single_model
return Model.from_pretrained(
File "/usr/local/lib/python3.10/dist-packages/modelscope/models/base/base_model.py", line 183, in from_pretrained
model = build_model(model_cfg, task_name=task_name)
File "/usr/local/lib/python3.10/dist-packages/modelscope/models/builder.py", line 35, in build_model
model = build_from_cfg(
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 215, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
ImportError: DamoFdDetect: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/workspace/facechain/facechain/inference.py", line 25, in _data_process_fn_process
Blipv2()(input_img_dir)
File "/workspace/facechain/facechain/data_process/preprocessing.py", line 207, in init
self.face_detection = pipeline(task=Tasks.face_detection, model='damo/cv_ddsar_face-detection_iclr23-damofd', model_revision='v1.1')
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/builder.py", line 162, in pipeline
return build_pipeline(cfg, task_name=task)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/builder.py", line 65, in build_pipeline
return build_from_cfg(
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 215, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
ImportError: FaceDetectionPipeline: DamoFdDetect: /usr/local/lib/python3.10/dist-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
instance_data_dir /workspace/facechain/worker_data/qw/training_data/ly261666/cv_portrait_model/me2
** project dir: /workspace/facechain
** params: >base_model_path:ly261666/cv_portrait_model, >revision:v2.0, >sub_path:film/film, >output_img_dir:/workspace/facechain/worker_data/qw/training_data/ly261666/cv_portrait_model/me2, >work_dir:/workspace/facechain/worker_data/qw/ly261666/cv_portrait_model/me2, >lora_r:4, >lora_alpha:32
The following values were not passed to accelerate launch and had defaults used instead:
--num_processes was set to a value of 1
--num_machines was set to a value of 1
--mixed_precision was set to a value of 'no'
--dynamo_backend was set to a value of 'no'
To avoid this warning pass in values for each of the problematic parameters or run accelerate config.
2023-11-29 11:59:48,298 - modelscope - INFO - PyTorch version 2.1.0+cu118 Found.
2023-11-29 11:59:48,300 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2023-11-29 11:59:48,344 - modelscope - INFO - Loading done! Current index file version is 1.9.5, with md5 02febd683a9af26d5de93d288790bf07 and a total number of 945 components indexed
/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.py:384: UserWarning: log_with=tensorboard was passed but no supported trackers are currently installed.
warnings.warn(f"log_with={log_with} was passed but no supported trackers are currently installed.")
Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
11/29/2023 11:59:50 - INFO - main - Distributed environment: NO
Num processes: 1
Process index: 0
Local process index: 0
Device: cuda
Mixed precision type: no
2023-11-29 11:59:51,629 - modelscope - INFO - Use user-specified model revision: v2.0
{'sample_max_value', 'thresholding', 'variance_type', 'clip_sample_range', 'dynamic_thresholding_ratio'} was not found in config. Values will be initialized to default values.
{'force_upcast'} was not found in config. Values will be initialized to default values.
{'dropout', 'reverse_transformer_layers_per_block', 'attention_type'} was not found in config. Values will be initialized to default values.
Traceback (most recent call last):
File "/workspace/facechain/facechain/train_text_to_image_lora.py", line 1222, in
main()
File "/workspace/facechain/facechain/train_text_to_image_lora.py", line 791, in main
dataset = load_dataset(
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1773, in load_dataset
builder_instance = load_dataset_builder(
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1502, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1221, in dataset_module_factory
raise FileNotFoundError(
FileNotFoundError: Couldn't find a dataset script at /workspace/facechain/worker_data/qw/training_data/ly261666/cv_portrait_model/me2_labeled/me2_labeled.py or any data file in the same directory.
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/accelerate_cli.py", line 47, in main
args.func(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 994, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 636, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/workspace/facechain/facechain/train_text_to_image_lora.py', '--pretrained_model_name_or_path=ly261666/cv_portrait_model', '--revision=v2.0', '--sub_path=film/film', '--output_dataset_name=/workspace/facechain/worker_data/qw/training_data/ly261666/cv_portrait_model/me2', '--caption_column=text', '--resolution=512', '--random_flip', '--train_batch_size=1', '--num_train_epochs=200', '--checkpointing_steps=5000', '--learning_rate=1.5e-04', '--lr_scheduler=cosine', '--lr_warmup_steps=0', '--seed=42', '--output_dir=/workspace/facechain/worker_data/qw/ly261666/cv_portrait_model/me2', '--lora_r=4', '--lora_alpha=32', '--lora_text_encoder_r=32', '--lora_text_encoder_alpha=32', '--resume_from_checkpoint=fromfacecommon']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1185, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 661, in wrapper
response = f(*args, **kwargs)
File "/workspace/facechain/app.py", line 799, in run
train_lora_fn(base_model_path=base_model_path,
File "/workspace/facechain/app.py", line 209, in train_lora_fn
raise gr.Error("训练失败 (Training failed)")
gradio.exceptions.Error: '训练失败 (Training failed)'

Please install mmcv with:
min install mmcv-full==1.7.2
ref: https://mmcv.readthedocs.io/en/latest/get_started/installation.html


nil arguments are still considered required

Nil arguments to functions are considered required arguments despite the default argument being nil
Example:
local function test(test1: string, test2: nil)

end
test("test")

wrong number of arguments (given 1, expects 2)

Possibly a bug with the vscode-teal PR but I don't know the specifics


footer.tmpl not load

Description
https://docs.gitea.com/next/administration/customizing-gitea#example-plantuml
Using plantuml through this document, but footer.tmpl is not effective
6bd7ffca6666:/data/gitea/templates$ echo $GITEA_CUSTOM
/data/gitea
6bd7ffca6666:/data/gitea/templates$ tree
.
└── custom
└── footer.tmpl
1 directories, 1 files
6bd7ffca6666:/data/gitea/templates$
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.40.1
Operating System
linux
How are you running Gitea?
run from docker
I deployed a service
https://gitea.wangzq.cn/
Database
SQLite

footer.tmpl must be in custom.

footer.tmpl in custom dir


Guidance to help complete the form

Came out of user research. The forms should show guidance, such as on wind speed conversions.
Hover over text was mentioned, but it's not possible to have hover over text on a mobile device, so we'll need to think about how best to do this. Adding text to the form would be one option, but would also mean more scrolling.

I think this was another 'would be nice' but not essential. I believe the user was referring to a guide to help them remember the different sea states that can be recorded when inputting environmental conditions. A potential option could be to include an image which shows the different sea conditions - can Qfield show images?
We could provide this separate to the app, so no need for you to worry about this if not possible.


Bug in filtering None values

When a filter value is None, pypika should generate query as WHERE name is NULL instead of WHERE "name"=NULL.

WHERE "name"=NULL is always going to be Falsy since NULL = NULL will always be falsy (why? best put by Matt as "I don't have a sister, and nor does my friend. If "NULL = NULL" then we have a common sister, and are therefore related!" here). Also, for reference this Wiki page on NULL -> https://en.wikipedia.org/wiki/Null_(SQL)#Controversy


[BUG] Error checking stopping condition: 'str' object is not callable error when using a very, very basic agent.

Describe the bug
When using a very basic Agent to test functionality, after adding the stopping_condition as a string to the Agent() class construction, I see the error shown in the issue title.
To Reproduce
This is the Agent code:
dumb_agent = Agent(agent_name='dumb-tester',
                   agent_description=('does dumb things'),
                   llm=get_groq_llm(),
                   max_loops=10,
                   verbose=True,
                   stopping_condition="finish")

This is how I run it:
dumb_agent.run('make me a linked in post about machine learning. it can only be 240 chars. output the text and the # of chars used. provide detailed reasoning why you chose the wording for this post.')

Despite a successful run on the first "loop," the agent runs to the maximum loop number because there's no stopping condition.

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@aimzieslol the stopping condition is supposed to be a callable function, i think what you're looking for is the stopping_token="finish", let me know if this works!

@aimzieslol did it work well?

Latest test using the same code from before produces this error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-4-527ba3a8ba9b>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from swarms import Agent, OpenAIChat
      2
      3 agent = Agent(
      4     agent_name="API Requester",
      5     agent_description="This agent is responsible for making API requests.",

6 frames
[/usr/local/lib/python3.10/dist-packages/swarms/__init__.py](https://localhost:8080/#) in <module>
----> 1 from swarms.telemetry.bootup import bootup  # noqa: E402, F403
      2 from swarms.telemetry.sentry_active import activate_sentry
      3
      4 bootup()
      5 activate_sentry()

[/usr/local/lib/python3.10/dist-packages/swarms/telemetry/bootup.py](https://localhost:8080/#) in <module>
      4
      5 from swarms.telemetry.auto_upgrade_swarms import auto_update
----> 6 from swarms.utils.disable_logging import disable_logging
      7
      8

[/usr/local/lib/python3.10/dist-packages/swarms/utils/__init__.py](https://localhost:8080/#) in <module>
      1 from swarms.utils.class_args_wrapper import print_class_parameters
----> 2 from swarms.tools.prebuilt.code_interpreter import (
      3     SubprocessCodeInterpreter,
      4 )
      5 from swarms.utils.data_to_text import (

[/usr/local/lib/python3.10/dist-packages/swarms/tools/__init__.py](https://localhost:8080/#) in <module>
      3     tool_find_by_name,
      4 )
----> 5 from swarms.tools.func_calling_executor import openai_tool_executor
      6 from swarms.tools.pydantic_to_json import (
      7     _remove_a_key,

[/usr/local/lib/python3.10/dist-packages/swarms/tools/func_calling_executor.py](https://localhost:8080/#) in <module>
      1 import concurrent.futures
      2 from typing import Callable, Any, Dict, List
----> 3 from swarms.utils.loguru_logger import logger
      4
      5

[/usr/local/lib/python3.10/dist-packages/swarms/utils/loguru_logger.py](https://localhost:8080/#) in <module>
      8
      9 logger.add(
---> 10     os.path.join(WORKSPACE_DIR, "swarms.log"),
     11     level="INFO",
     12     colorize=True,

[/usr/lib/python3.10/posixpath.py](https://localhost:8080/#) in join(a, *p)
     74     will be discarded.  An empty last part will result in a path that
     75     ends with a separator."""
---> 76     a = os.fspath(a)
     77     sep = _get_sep(a)
     78     path = a

TypeError: expected str, bytes or os.PathLike object, not NoneType


Propose quiesce subcommand in crane

After discussion with @alaypatel07 @djzager @eriknelson @shawn-hurley we are rejecting this enhancement. Highlights from the discussion:

Quiescing applications correctly depends on the nature of the application. It is a problem that cannot be reliably solved with a subcommand. The "quiesce" subcommand will only work for best cases and will leave room for hard to solve corner cases.
Crane is meant to be a collection of sharp tools which works flawlessly for anything Kubernetes. The quiesce subcommand will only work on a very small subset of workload resources in Kubernetes. It doesn't fit into the philosophy of sharp tools.
Implementing a subcommand like quiesce in Crane gives users a false hope that it will intelligently quiesce their applications. It is not true. Quiesce subcommand discussed in this enhancement is not intelligent. It is simply taking resource replicas down.

Conclusion:

Merge this enhancement as "rejected"
Work on a follow up enhancement PR which describes a potential "scale" subcommand  instead. It will simply attempt to scale down the resources. The enhancement will compare the user experience of scale command and compare it with equivalent bash scripts that achieve the same result.


color #000 is missing in the default color palette

Hello, why isn't there a pure black #000000 color in the default color palette? Is this intentional?
Thanks!

Yeah that's intentional; there's not really enough situations where you would use real black in web design to warrant including it by default.
Here's a great article about not using black in design that might be interesting:
https://ianstormtaylor.com/design-tip-never-use-black/

ok thanks, it is good that tailwind is configurable 😃.
here is a great article to understand why I was asking https://www.wired.com/2016/10/how-the-web-became-unreadable/

Yeah, color palette is encouraged to be changed anyway. :slightly_smiling_face:
Just a note to this that contrast accessibility with tailwind's black is not bad at all, its still in the advised contrast range even with grey (8.2:1) and even in the minimum with grey-dark (4.8:1).
WCAG advised for body text is 7:1 and minimum is 4.5:1.


Missing Table Column Headers for Active-Directory Area

Column headers are required for tables in Docs. Add appropriate header text or remove any extra table cells that cause an extra column in the following topics:
https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/preview/active-directory.md
https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/legacy/active-directory.md

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Tables:0.37524632,Docs:0.08202803,Azure.Core:0.05833136'

These two files are only in docs repo. Not deploy through our release pipeline.
Fixed them in docs repo.
https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/preview/active-directory.md
https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/legacy/active-directory.md


Diagram creation and export API

Feature name
Perspective diagram creating and export API
Is your feature request related to a problem? Please describe.
Currently creating an exporting diagrams is a manual process.
Describe the feature you'd like to see implemented
A mechanism to automatically create and export previously configured diagrams for use in electronic documentation, such as confluence.
Describe the value this feature will add to AWS Perspective
The requesting customer would like to automatically keep diagrams generate in Perspective and shared via other means up-to-date.
Describe alternatives you've considered
It might be possible to automate this with the existing UI with selenium scripts etc. but this seems brittle and error-prone.

This was a direct request from a customer considering deploying Perspective and comparing it with third-party offerings

We will be launching an SDK to allow programmatic access to the APIs that underlie the frontend: https://github.com/aws-solutions/workload-discovery-on-aws/pull/399.


TemplateURL with Nested Stacks is not updated

I'm getting the following error TemplateURL must be an Amazon S3 URL. whenever I'm using a nested stack.
My root stack looks like this
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Root stack template'
Resources:
  ObjectStorageStack:
    Type: AWS::CloudFormation::Stack
    Properties:
      TemplateURL: 'object_storage_template.yml'

And nested stack is in file object_storage_template.yml
Resources:
    ObjectBucket:
      Type: AWS::S3::Bucket

I would expect that this deploy action performs packaging and therefore the TemplateURL gets updated.
Is this behavior supported by this action?

The behavior is not supported by the action. How would like to have this behavior implemented? We would have to govern a bucket and perhaps resolved some other things.

Ideally, it would be cool to execute aws cloudformation package, but seems there is no such option in SDKs so far. That being set we need to upload nested stack beforehand to S3.
That would be fine for now, but we need to pass S3 bucket name to the config somehow. I was expected to specify the configuration in key-value pair as s3-bucket=<my_bucket_name>, however, it doesn't work.

Let me point out, that https://github.com/aws-actions/aws-cloudformation-github-deploy/blob/79dba8560a6a700994b1046e01da386f4c664cd6/action.yml#L10 template can be an S3 url. So you could upload everything before and then execute with the action. However, there is no officially supported action for the upload.

I would prefer to have a template in a repository and then get it to upload through this action to AWS. As far as I know, CloudFormation uploads the template first to S3. Is it possible to know what is the S3 bucket used?

In order to support the behavior we will have to replicate the upload behavior of the AWS CLI.

Correct. I realized that. So far my solution works in a way that I have to run aws cloudformation package command. Would be nice to have it as part of this action.
If this is not planned, feel free to close this issue.

closing this in favour of https://github.com/aws-actions/aws-cloudformation-github-deploy/issues/33

closing this in favour of #33


ci: Fix aya-bpf workflow

This was testing the aya crate with the nightly toolchain which wasn't
what was intented
Signed-off-by: Dave Tucker<EMAIL_ADDRESS>

LGTM


05 shopping cart session

Thanks for the updates

Best Regard
On Sat, Sep 9, 2017 at 2:27 PM, lucifier15<EMAIL_ADDRESS>wrote:

Closed #7
https://github.com/mschwarzmueller/laravel-shopping-cart-tutorial/pull/7
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mschwarzmueller/laravel-shopping-cart-tutorial/pull/7#event-1241853562,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANk7VgJg6E9e0AJk_cQ6EQG3m2nsv2Joks5sgoQ7gaJpZM4PR-wV
.


Can't use npm scripts with colon or underscore in the names?

  I initially tried this:
task webBuild(dependsOn: [npmInstall, 'npm_run_build:prod'])

war {
    dependsOn webBuild
}

But the error is

Could not determine the dependencies of task 'webapp:webBuild'.
Task with path 'npm_run_build:prod' not found in project 'webapp'.

So I went into my package.json and tried replacing all the colons (:) with underscores (_) as follows:
    "build": "npm run build_dev",
    "build_dev": "npm run lessc && npm run tsc",
    "build_prod": "npm run lessc && npm run tsc && npm run gulp_bundle",
    "gulp_bundle": "node --max-old-space-size=2048 node_modules/gulp/bin/gulp bundle",

and then updating my build.gradle (which is better for the dependency setup anyway:)
task npm_run_build_prod {
    dependsOn npmInstall
}

task webBuild(dependsOn: npm_run_build_prod)

war {
    dependsOn webBuild
}

but it seems that the pattern recognition for dynamic tasks splits on all the underscores.  So instead of invoking, say, build_prod as I'd hoped, gradle is invoking the build script with an argument of prod which causes the build to puke.
What are the options here (besides renaming to buildprod)?

Ok, yeah.  https://github.com/srs/gradle-node-plugin/blob/master/src/main/groovy/com/moowork/gradle/node/NodePlugin.groovy#L74
It's just splitting on underscores.  I see why this is happening now.  I guess for now I have to create a custom task for this.  Bummer.

We could probably split both on _ (underscore) and : (colon).

It might make sense to detect special cases (like run or install) by splitting on something like _run_ or _install_ instead of splitting on underscore?  The second value in the resulting array could then just be passed without manipulation.

Regardless, I was able to move past this using the following (in case anyone else ever runs into this and finds this thread):
task webBuild(type: NpmTask, dependsOn: npmInstall) {
    args = ['run', 'build:dev']
}

So feel free to close this issue unless you consider it a bug.  Thanks.

Great that you was able to move past this. Closing this issue. Not a bug ;-)

@srs I had the same problem and I'm glad I could use the same solution. Because colons are quiten often used in npm script names, I'd prefer to have this documented. But it would be awesome, if it would work out of the box. I would expect using npm_run_build_dev or npm_run_build:dev :)

Same problem here. gradle-node-plugin is usually used to avoid global installations of Node.js for back-end developers and ensuring same node version for all developers, therefore all manuals and tasks that are supposed to run in CLI use npm_run_task-name.
It will be nice to see support for : in script names as enhancement.


remove duplicate port

Please provide a description of this PR:
fix: https://github.com/istio/istio/issues/38407

This is kept for for legacy reasons as mentioned in #36183

reasonable.


g++-8 internal compiler error under WSL (Debian Buster, Ubuntu Bionic)

Your Windows build number:  10.0.18362.356

What you're doing and what's happening:
x86_64-linux-gnu-g++-8 -O1 -c ice_gcc.cpp
Result: x86_64-linux-gnu-g++-8: internal compiler error: Segmentation fault signal terminated program cc1plus
https://gist.github.com/Nekto89/f17bc6dac4dfcf969e54709185aa5c2c

What's wrong / what should be happening instead:
Expected: no internal compiler error
There is no internal compiler error using Docker with same version of g++

Debian:
FROM debian:buster-20190910-slim
RUN apt-get update && apt-get -y --no-install-recommends install g++-8=8.3.0-6  && rm -rf /var/lib/apt/lists/*
COPY ice_gcc.cpp /usr/src/ice/ice_gcc.cpp
WORKDIR /usr/src/ice
RUN x86_64-linux-gnu-g++-8 -v
RUN x86_64-linux-gnu-g++-8 -O1 -c ice_gcc.cpp

Ubuntu:
FROM ubuntu:bionic-20190807
RUN apt-get update && apt-get -y --no-install-recommends install g++-8=8.3.0-6ubuntu1~18.04.1  && rm -rf /var/lib/apt/lists/*
COPY ice_gcc.cpp /usr/src/ice/ice_gcc.cpp
WORKDIR /usr/src/ice
RUN x86_64-linux-gnu-g++-8 -v
RUN x86_64-linux-gnu-g++-8 -O1 -c ice_gcc.cpp

Strace of the failing command, if applicable:
Debian: https://gist.github.com/Nekto89/ce11e8fc22329ef94682579bbc2dbffa

133   --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x7fffc6823fbc} ---
133   +++ killed by SIGSEGV (core dumped) +++
132   <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 133

Thanks so much for the well formed submission including the strace logs. It really helps. Hence effort to expended to look.
That address (0x7fffc6823fbc) sure doesn't look mapped alright. Nothing mapped up past the 0x74..........-ish range. So it looks like WSL1 is doing what it is told, and faulting as ordered.
Unfortunately (?) I can't seem to reproduce on WSL1 (sic) and 18980. It compiles fine; here's y strace. Pretty much the same deal up to line 949, but no illegal access. g++-8 continues along.

I don't have a 18362 handy, but there is almost no way the version Win10 version is going to make a difference here. That segv is all userspace. You could try insiders on a lark. Stranger things have happened.
My WAG is that there is something very subtly different between your Docker userspace and your WSL1 userspace that is causing gcc++-8 to choke. It almost has to be, because with g++, despite it being enormous, doesn't actually hit much interesting syscall surface to actually fail [with weasel-word 'much' acknoledged.] In short, "an ICE is an ICE". If I could reproduce it here we'd have a thread to tug, but it works, so we don't.
Debugging g++-8 with gdb and finding out why it is actually faulting is pretty much out of the question unless you've got a week to burn. Practical guidance would be install gcc++-9 and see if it still fails. That will at least vary g++'s the userspace environment. If that doesn't work, try Insiders.
If that doesn't work, I suppose you could duplicate your Docker environment verbatim in a WSL1 chroot and see if it still fails. But by that point we'd be grasping big time. If it still failed with an identical userspace, finding out why it works for me but not you would amount to some too-subtle-to-look difference between my rig and yours (CPU, amount of RAM, whoknows). By then solution would be pull anchor and try WSL2. Or keep using Docker. Bonne chance.


Add the missing functions in to README.md

I think the current version is good.
As a developer, I want to know what a library can do quickly.
The Method section is a good overview, it tells me your library provide the function
I want, so I decide to use this library and move on the Usage section.
The Usage section is good, I can find out the parameter type and return value
from the examples easily.
What make me confusing is, I don't know your library can help me convert user id
to user name until I read the source code. I almost going to write my own version!
So I submit this pull request and want to improve the documentation.
Method section as an overview, we better keep it complete and simple.

I partly agree with @mishk0, I currently (both in master and in this PR) some of the methods section list params and others don't. It should at least be consistent.
Re: seeing what the library can do quickly, I don't think that adding params is going to increase the time it takes someone to identify what methods are available.
The method names explain exactly what the methods do anyway, so if you were looking to omit something to save space I'd probably omit the brief description.

@mishk0 @leviwheatcroft
That's truth, let me specify params and types first.


Bump Helm to v3.9.2

Bumping Helm to latest.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I've been using 3.9.1, so this should be fine

3.9.2 was released just around 4 hours ago, and there's essentially no diff from 3.9.1 other than them changing their Golang CI image.

/approve

/cherrypick release-0.10


[Safe Apps] Infinite loader when the app is not found

Title/Description

When an app cannot be fetched, we show an infinite loader.
Steps to reproduce

Go to Safe Apps on dev/staging
Click on "Broken App" app
Console says there's an error loading the app but the user sees an infinite loader

Expected result

It should show an error to the user.
Obtained result

Loading spinner.
Screenshots

Reopening because we need to change how we handle a timeout: we need to show the message "The app is taking too long, consider refreshing" but not crash.


Python Email Injection

Python Mail Injection - CWE-079
Synopsis
This query identifies cases where a user passes tainted data into an email that is sent by the application. Tainted data can be any type of user data. If the tainted data is passed into the HTML body of the email, the malicious user can generate HTML on the email recipient's computer. This can result in emails with manipulated text, potential XSS, leaked user data, and more.
Please note that this CWE is already covered in CodeQL's Python library. Because of this, we are making an improvement on the CWE-079 query.
Background Info
When using a Python email library, most libraries allow the developer to send the email as both plain-text and HTML. It is crucial that the developer pass tainted data to the HTML email and not the plain-text email. If the data is only passed into the plain-text of the email, we don't have a vulnerability.
Libraries We Want To Target

Python's smtplib library
Flask-Mail
Flask-SendMail
Sendgrid Python

Note: We will likely only find vulnerabilities in Flask-Mail. This is because over 36,000 repos use flask-mail. The Django Mailer has far fewer (only 500+ repos use it). We will likely have a hard time finding vulnerabilities for the smtplib library in the wild because there is no dedicated github repo for it so I can't find any dependent repos that use it.
Testing Locally
This code presented here has yet to be tested. This link may help here.
TODOS

[ ] Add examples to CWE-079 query - assigned:jorge
[ ] Pass tainted user data into sinks in the query tests. This is not done yet. - assigned:jorge
[ ] Test both examples and query tests locally to ensure Python code is sound.
[ ] Write CodeQL code to cover the smtp-lib library. assigned: thank_you
[ ] Write CodeQL code to cover the SendGrid Python library. assigned:jorge
[ ] Run tests and generate .expected file assigned:jorge
[ ] Write QLDoc file
[ ] LGTM scan of vulnerabilities - assigned:thank_you
[ ] Handle disclosure of found open-source vulnerabilities

This query now covers Flask-SendMail, it is almost a copy of Flask-Mail.

This query now covers django.core.mail.

Closing this PR because of https://github.com/github/codeql/pull/7127.


'$Registry' has to be either changed or better explained

[Enter feedback here]
Hello, all !
Pls. have a look at the following snippet of this page:
'
The following example uses $Registry to specify the registry where you run the command:
az acr run --registry myContainerRegistry008
--cmd '$Registry/sample/hello-world:v1' /dev/null
'
In this example the name of the Azure Container Registry is 'myContainerRegistry008', but '$Registry' is 'myContainerRegistry008.azurecr.io'
So, '$Registry' has to be either changed or better explained in order to make things crystal clear.

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

ID: 4f357648-1ce0-04eb-fab1-add2e2bce02e
Version Independent ID: 982ac987-43f5-7fdd-6853-a7fe823040cc
Content: Quickstart - Build a container image on-demand in Azure - Azure Container Registry
Content Source: articles/container-registry/container-registry-quickstart-task-cli.md
Service: container-registry
GitHub Login: @dlepow
Microsoft Alias: tejaswikolli

@alexeyshishkin01 Thank you for your feedback!  We are reviewing the code sample and will get back to you shortly.

Please assign to current ACR writer
#reassign: @tejaswikolli-web

Created a PR to add a description “The following example uses $Registry to specify the endpoint of the registry where you run the command” https://github.com/MicrosoftDocs/azure-docs-pr/pull/222906

#please-close


Add data model for three-phase alternating current

This pull request proposes a new data model entity type called 3PhaseACMeasurement which represents a measurement from an electrical system
that uses three-phase alternating current. It has attributes for various
electrical measurements such as power, frequency, current and voltage. For some
attributes such as current and voltage the value is a structured value with
properties for the three different phases: L1, L2 and L3. For some measurements
such as the different power types (active, reactive and apparent power) there is
an attribute for the total from all phases e.g. totalActivePower and an
attribute for values from each phase as a structured value e.g. activePower.
There are also attributes for different energy types: active (delivered net
energy), reactive and apparent. They are cumulative values and the start time
for their measurement can be saved to the dateEnergyMeteringStarted attribute.
This model was developed in Tampere University as a part
of the CityIoT project. Its basis was
electrical measurements included in the
StreetlightControlCabinet
entity of the
Street Lighting data model.
I am proposing this now as a 3PhaseACMeasurement data model containing a single entity type with the same name. Alternatively I could propose this as a wider electricity data model containing currently only one entity type but which could be later expanded with other related entity types. However we are not currently planning to develop more entities.

@ohylli thanks for providing this, it is a very complete contribution!
I think we need to create a new folder under specs named Energy and hanging from that folder we need to create a new folder for this data model
specs/Energy
README.md
3phaseAcMeasurement
doc/spec.md
schema.json
example.json
etc.