Corpses variations and random spawners

About the PR

This PR adding a lot of corpses for mapping, loot and other, with some random spawners.
I have all description for variations and spawners, in pdf file, because there is too much text to write it here.
I tried to make sure that when examining the spawner or entity, exhaustive information was described and it would be difficult to make a mistake in the choice.
Why is this necessary?
• This may come in handy for mappers - there is an opportunity to create new
interesting places on the maps;
• It can also be useful for mapping salvage debris and loot in them;
• It can also be useful for events;
• It can also be useful for dungeons on salvage expeditions in the future.
The rest of the possibilities you can come up with yourself.
Also, when creating, I was guided by the rules I created, which are described in the pdf so that the game remains balanced.
Media

Corpses_Variations_And_Random_Spawners.pdf

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: Added 151 variations of corpses for working roles, 66 corpses of animals (including pets, xenos, rats etc.), 20 variations of ERT, 2 variations of Death squad, 2 variations of CBURN and 7 syndicate variations.
add: Added 39 spawners for randomizing corpses.

cant even imagine the absolute gauntlet youd have to go through for the filled deathsquad gear, very cool stuff

also, all corpses have a random appearance (but not species - a new component is needed for this)

fairly sure the component already exists, see humanoids for use of it i think

fairly sure the component already exists, see humanoids for use of it i think

im tried to use this - it's randomizing species, but  they spawned alive (with 200 damage), and they died after one blow, so it didn't fit and i used RandomHumanoidAppearance with randomizeName: false

would probably also impact game load time

This is way too many prototypes, this is another 10% of total prototypes that will bloat the spawn menu. The startinggear especially is something that's going to need to be actively maintained.
We won't need a prototype for every single job, at best it should be a couple.

Well, what do you suggest? what jobs should be left?

This is way too many prototypes, this is another 10% of total prototypes that will bloat the spawn menu. The startinggear especially is something that's going to need to be actively maintained.
We won't need a prototype for every single job, at best it should be a couple.

Well, what do you suggest? what jobs should be left?

One way is just pulling job gear but only pulling certain slots. For the actual spawner itself it should just have a pool rather than RD + captain + HoS + etc.

This is way too many prototypes, this is another 10% of total prototypes that will bloat the spawn menu. The startinggear especially is something that's going to need to be actively maintained.
We won't need a prototype for every single job, at best it should be a couple.

Well, what do you suggest? what jobs should be left?

One way is just pulling job gear but only pulling certain slots. For the actual spawner itself it should just have a pool rather than RD + captain + HoS + etc.

is there any way I can do this without C#?

This is way too many prototypes, this is another 10% of total prototypes that will bloat the spawn menu. The startinggear especially is something that's going to need to be actively maintained.
We won't need a prototype for every single job, at best it should be a couple.

Well, what do you suggest? what jobs should be left?

One way is just pulling job gear but only pulling certain slots. For the actual spawner itself it should just have a pool rather than RD + captain + HoS + etc.

So, i can do inventory_template for default corpse without PDA and Headset slots and use roles startinggear from jobs? in this case PDA and Headset shouldn't spawn. Is this acceptable?

changed PR the way I understood you. Is it still a lot?

I think best choice is created prototype with random civilian corpse, random command corpse, and some special corpse, not need create every in single.
but ur idea is great

I think best choice is created prototype with random civilian corpse, random command corpse, and some special corpse, not need create every in single. but ur idea is great

you're talking about a random spawner. To create it, you need to have prototypes. I can make random department spawners, but single corpses need too - what if you want to create a botany department overgrown with kudzu, where there are a bunch of botanist corpses? a specific entity is needed here, since a randomizer will not fit.

Not only botanist can die in Kudzu near botany. But with every single profession u or somebody else need to create his Corpse proto too, and add it to some random spawner too, BUT if we have only random spawners, we need ONLY to add in random spawner, nothing more. And in this way we will have great mechanic with corpse, and much smaller prototype count

Not only botanist can die in Kudzu near botany. But with every single profession u or somebody else need to create his Corpse proto too, and add it to some random spawner too, BUT if we have only random spawners, we need ONLY to add it in random spawner, nothing more. And in this way we will have great mechanic with corpse, and much smaller prototype count

can you give me your discrod?

We have this mechanic in another fork, we dont want to transfer it to this repo, if u want u can copy something from our solution


allow compare series to origin point

it will be nice to have this function. use cases: retention plot.

Codecov Report

Merging #5366 into master will increase coverage by <.01%.
The diff coverage is 62.5%.

@@            Coverage Diff             @@
##           master    #5366      +/-   ##
==========================================
+ Coverage   61.31%   61.31%   +<.01%
==========================================
  Files         369      369
  Lines       23497    23501       +4
  Branches     2715     2715
==========================================
+ Hits        14407    14410       +3
- Misses       9078     9079       +1
  Partials       12       12

Impacted Files
Coverage Δ

superset/assets/src/explore/controls.jsx
47.32% <ø> (ø)
:arrow_up:

superset/viz.py
81.33% <62.5%> (-0.02%)
:arrow_down:

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 6b15592...9f17e7e. Read the comment docs.


Support setting alluxio.logs.dir in ALLUXIO_JAVA_OPTS

What changes are proposed in this pull request?
Before
$ export ALLUXIO_JAVA_OPTS="-Dalluxio.logs.dir=/tmp"
$ bin/alluxio getConf alluxio.logs.dir
/Users/binfan/projects/alluxio/alluxio/logs

After
$ export ALLUXIO_JAVA_OPTS="-Dalluxio.logs.dir=/tmp"
$ bin/alluxio getConf alluxio.logs.dir
/tmp

Why are the changes needed?
An issue reported in https://github.com/Alluxio/alluxio/pull/14837
Does this PR introduce any user facing changes?
No

if the java opts for alluxio.logs.dir is set, then all these places will not be using the correct logs dir:
$ grep -r "ALLUXIO_LOGS_DIR" bin                                                                 [13:12:52]
bin/alluxio-workers.sh:mkdir -p "${ALLUXIO_LOGS_DIR}"
bin/alluxio-workers.sh:ALLUXIO_TASK_LOG="${ALLUXIO_LOGS_DIR}/task.log"
bin/alluxio-start.sh:  if [[ ! -d "${ALLUXIO_LOGS_DIR}" ]]; then
bin/alluxio-start.sh:    echo "ALLUXIO_LOGS_DIR: ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    mkdir -p ${ALLUXIO_LOGS_DIR}
bin/alluxio-start.sh:    echo "Starting job master @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    (nohup ${BIN}/launch-process job_master > ${ALLUXIO_LOGS_DIR}/job_master.out 2>&1) &
bin/alluxio-start.sh:  echo "Starting job worker @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:  (nohup ${BIN}/launch-process job_worker > ${ALLUXIO_LOGS_DIR}/job_worker.out 2>&1) &
bin/alluxio-start.sh:    echo "Starting job worker #$((c+1)) @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    nohup ${BIN}/launch-process job_worker > ${ALLUXIO_LOGS_DIR}/job_worker.out 2>&1) &
bin/alluxio-start.sh:    nohup ${BIN}/launch-process logserver > ${ALLUXIO_LOGS_DIR}/logserver.out 2>&1) &
bin/alluxio-start.sh:    echo "Starting secondary master @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    (nohup ${BIN}/launch-process secondary_master > ${ALLUXIO_LOGS_DIR}/secondary_master.out 2>&1) &
bin/alluxio-start.sh:    echo "Starting master @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    (JOURNAL_BACKUP="${journal_backup}" nohup ${BIN}/launch-process master > ${ALLUXIO_LOGS_DIR}/master.out 2>&1) &
bin/alluxio-start.sh:    nohup ${BIN}/launch-process hub_agent > ${ALLUXIO_LOGS_DIR}/hub_agent.out 2>&1) &
bin/alluxio-start.sh:    nohup ${BIN}/launch-process hub_manager > ${ALLUXIO_LOGS_DIR}/hub_manager.out 2>&1) &
bin/alluxio-start.sh:  echo "Starting proxy @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:  (nohup ${BIN}/launch-process proxy > ${ALLUXIO_LOGS_DIR}/proxy.out 2>&1) &
bin/alluxio-start.sh:  echo "Starting worker @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:     nohup ${BIN}/launch-process worker > ${ALLUXIO_LOGS_DIR}/worker.out 2>&1 ) &
bin/alluxio-start.sh:    echo "Restarting worker @ $(hostname -f). Logging to ${ALLUXIO_LOGS_DIR}"
bin/alluxio-start.sh:    (nohup ${BIN}/launch-process worker > ${ALLUXIO_LOGS_DIR}/worker.out 2>&1) &
bin/alluxio-masters.sh:mkdir -p "${ALLUXIO_LOGS_DIR}"
bin/alluxio-masters.sh:ALLUXIO_TASK_LOG="${ALLUXIO_LOGS_DIR}/task.log"
bin/alluxio-monitor.sh:  ALLUXIO_TASK_LOG="${ALLUXIO_LOGS_DIR}/task.log"
bin/alluxio-monitor.sh:  local node_logs=( "${ALLUXIO_LOGS_DIR}/${node_type}.log" "${ALLUXIO_LOGS_DIR}/${node_type}.out" )

so each of these scripts should evaluate the configured value of alluxio.logs.dir wherever ALLUXIO_LOGS_DIR is read as a value

I could manually read value of alluxio.logs.dir to assigne to ALLUXIO_LOGS_DIR in beginning of each script, I feel it is error prone and hacky (what if some one adding more script without knowing this convention?)
It looks to me env var ALLUXIO_LOGS_DIR shall be the only way to set log dir (similar to ALLUXIO_HOME and ALLUXIO_CONF_DIR).  They are anyway used and treated in a very different way from other conf properties.
To keep it consistent, I would simply hide alluxio.logs.dir and also alluxio.home from the public property list from users, as we are not expecting users to change them at all through property.
@Xenorith @yuzhu what's your thought?

this is the crux of the discussion in the prev PR and probably why it got stalled.
if we only allow the env var as the mechanism to set, we should somehow warn or disallow users who are trying to set the logs dir through the java opts. this is not a random corner case because it is definitely happening; more than one reporter have tried to use the java opts to set and wondering why it is not being respected. at the minimum, we have to do regex parsing in the java opts strings (and remember, there are multiple java opts for the process specific ones) to know whether or not to trigger a deprecation warning/failure. some of this work was done in the previous PR and both @jiacheliu3 and i noted how complex this logic is.
so seems like either choice, there is going to be yucky code to add, but which one is more yucky?

Agree. I will

warn if anyone is setting this property through java opts

suggest looking at this change as a starting point: https://github.com/Alluxio/alluxio/pull/14837/files#diff-9dd02c390f78580fa089e750abbed7dda6962da737f8fb6941e8800df3481aa0

hide this property from docs (I could not fully remove them as they are used in internal tests) --- so there will no way for users to know the existence of "alluxio.logs.dir" unless they read the src code.

is there also a way to hide it from being shown in the generated table: https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html

clean up docs

Going this way is fine -- at least no ugly code added

i guess this is ugly but not production effective. this also needs to be clearly stated in the next release notes

Agree. I will

warn if anyone is setting this property through java opts

suggest looking at this change as a starting point: https://github.com/Alluxio/alluxio/pull/14837/files#diff-9dd02c390f78580fa089e750abbed7dda6962da737f8fb6941e8800df3481aa0
Ok

hide this property from docs (I could not fully remove them as they are used in internal tests) --- so there will no way for users to know the existence of "alluxio.logs.dir" unless they read the src code.

is there also a way to hide it from being shown in the generated table: https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html

yes  that's exactly what I mean -- hide it from this page

clean up docs

Going this way is fine -- at least no ugly code added

i guess this is ugly but not production effective. this also needs to be clearly stated in the next release notes
SG

PTAL @Xenorith @yuzhu

Error: 6.598 [ERROR] Errors:
Error: 6.598 [ERROR]   LocationCommandIntegrationTest>AbstractFileSystemShellTest.beforeClass:122 » Runtime

LGTM. from  #14837


libs: Add expiry for JWT

Add expiration to JWT generation

Besides, we should keep support for indefinite tokens

Do we want a fixed TTL for the token? or better to give a config param which configures this?

Besides, we should keep support for indefinite tokens
In other words - token with no TTL is still a correct token (assuming signature is correct).


Animation widget performance bottlneck

Either load simple.czml into Viewer or use the Sandcastle example (local link).  Chrome shows laying out the animation widget each frame as 16% of the rendering time.  This is because of the time string on the SVG.  With such a large percentage of time being eaten up per-frame (Chrome timeline shows 3ms) this is a performance killer.
I'm not  sure if it's due to SVG, or if it's simply related to how the SVG is laid out, but this really needs to be fixed.

Whatever I thought I saw 20 months ago doesn't appear to be there now, and toggling the animation widget on or off has no affect on the fps.

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain biomassiv.es has exceeded the max emails per hour (122/100 (122%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext8.iad.github.net ([<IP_ADDRESS>]:54969 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by server23.websitehostserver.net with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.85)
(envelope-from<EMAIL_ADDRESS>id 1ZmSD2-003bdc-L1
for<EMAIL_ADDRESS>Wed, 14 Oct 2015 14:59:37 -0500
Date: Wed, 14 Oct 2015 12:59:36 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1444852776;
bh=LMtlYPaSNZE0o0KB5AhjLvEV7nm9LasMFrtTkzep1lg=;
h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=qsWymwc1oSJxD4tfJuS267ObRKmKhLGiIq7fedvcF9mOnjFH/Q1SDClMSlrHND5ah
PcyWmQGamyMoz2gXBJz06bp0Zx2f/Ml19P6cavOXv0VJQQJ5xalILS093GY5zP1fra
hxN2WHzNFi3TmuVJFmdxPXEu97QNGSmzcZ+h09ZU=
From: Matthew Amato<EMAIL_ADDRESS>Reply-To: AnalyticalGraphicsInc/cesium<EMAIL_ADDRESS>To: AnalyticalGraphicsInc/cesium<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>In-Reply-To<EMAIL_ADDRESS>References<EMAIL_ADDRESS>Subject: Re: [cesium] Animation widget performance bottlneck (#1148)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_561eb42860b3_12cc3fa04297d2a0978da";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: mramato
X-GitHub-Recipient: biomassives
List-ID: AnalyticalGraphicsInc/cesium
<cesium.AnalyticalGraphicsInc.github.com>
List-Archive: https://github.com/AnalyticalGraphicsInc/cesium
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/AELU4nhJfGg4vyjNdp1m-iL0Cxm2wb8Mks5o7quogaJpZM4A_qY5
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>X-Spam-Status: No, score=0.0
X-Spam-Score: 0
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "server23.websitehostserver.net",
has NOT identified this incoming email as spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
root@localhost for details.
Content preview:  Closed #1148. --- Reply to this email directly or view it
on GitHub: https://github.com/AnalyticalGraphicsInc/cesium/issues/1148#event-435651295
Closed #1148. [...]
Content analysis details:   (0.0 points, 5.0 required)
pts rule name              description

0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: github.com]
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
2.1 HTML_IMAGE_ONLY_12     BODY: HTML: images with 800-1200 bytes of words
0.0 HTML_MESSAGE           BODY: HTML included in message
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
[<IP_ADDRESS> listed in wl.mailspike.net]
-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Spam-Flag: NO
----==_mimepart_561eb42860b3_12cc3fa04297d2a0978da
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closed #1148.

Reply to this email directly or view it on GitHub:
https://github.com/AnalyticalGraphicsInc/cesium/issues/1148#event-435651295
----==_mimepart_561eb42860b3_12cc3fa04297d2a0978da
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closed #1148.
—Reply to this email directly or view it on GitHub.

----==_mimepart_561eb42860b3_12cc3fa04297d2a0978da--

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain biomassiv.es has exceeded the max emails per hour (121/100 (121%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext4.iad.github.net ([<IP_ADDRESS>]:54856 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by server23.websitehostserver.net with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.85)
(envelope-from<EMAIL_ADDRESS>id 1ZmSD1-003bbE-Py
for<EMAIL_ADDRESS>Wed, 14 Oct 2015 14:59:36 -0500
Date: Wed, 14 Oct 2015 12:59:35 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1444852775;
bh=mSfvIff8/YEzSWg8S5AUOHkC4eVAkWNuL375+2gQgRM=;
h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=U+HPwhdyYOqGpKiy8GDrs5LrzkacrE5ORNknsj/Z1xHkyKZi6RdGOucmU7045Onke
KvLUM2oNH+GMjgmKphf5zbHXTs1s9RGRRJxGJLL3vKE3tkR9PKOQgXBZ1dfGaaeMoq
PI/tWsvqtFY3bSTgGw7CasAfYUnhK7vvTmJZJAOo=
From: Matthew Amato<EMAIL_ADDRESS>Reply-To: AnalyticalGraphicsInc/cesium<EMAIL_ADDRESS>To: AnalyticalGraphicsInc/cesium<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>In-Reply-To<EMAIL_ADDRESS>References<EMAIL_ADDRESS>Subject: Re: [cesium] Animation widget performance bottlneck (#1148)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_561eb42745a36_17b93fe529ee92bc1176a";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: mramato
X-GitHub-Recipient: biomassives
List-ID: AnalyticalGraphicsInc/cesium
<cesium.AnalyticalGraphicsInc.github.com>
List-Archive: https://github.com/AnalyticalGraphicsInc/cesium
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/AELU4h8JjKsoMfyLn-8-3PQlodm26CjVks5o7qungaJpZM4A_qY5
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>X-Spam-Status: No, score=0.0
X-Spam-Score: 0
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "server23.websitehostserver.net",
has NOT identified this incoming email as spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
root@localhost for details.
Content preview:  Whatever I thought I saw 20 months ago doesn't appear to be
there now, and toggling the animation widget on or off has no affect on the
fps. --- Reply to this email directly or view it on GitHub: https://github.com/AnalyticalGraphicsInc/cesium/issues/1148#issuecomment-148178845
[...]
Content analysis details:   (0.0 points, 5.0 required)
pts rule name              description

0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: github.com]
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
2.1 HTML_IMAGE_ONLY_12     BODY: HTML: images with 800-1200 bytes of words
0.0 HTML_MESSAGE           BODY: HTML included in message
-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
[<IP_ADDRESS> listed in wl.mailspike.net]
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Spam-Flag: NO
----==_mimepart_561eb42745a36_17b93fe529ee92bc1176a
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Whatever I thought I saw 20 months ago doesn't appear to be there now, and toggling the animation widget on or off has no affect on the fps.

Reply to this email directly or view it on GitHub:
https://github.com/AnalyticalGraphicsInc/cesium/issues/1148#issuecomment-148178845
----==_mimepart_561eb42745a36_17b93fe529ee92bc1176a
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Whatever I thought I saw 20 months ago doesn't appear to be there now, and toggling the animation widget on or off has no affect on the fps.
—Reply to this email directly or view it on GitHub.

----==_mimepart_561eb42745a36_17b93fe529ee92bc1176a--


Fix format specifiers leading to makefile error

The incorrect format specifier in pkg/imagebuilder/content.go was causing the makefile target unit-test to fail with make: *** [Makefile:26: unit-test] Error 2. This PR fixes the format specifier.
Before this fix:
go test -v ./pkg/imagebuilder/...
# github.com/openshift-agent-team/fleeting/pkg/imagebuilder
pkg/imagebuilder/content.go:54:3: Errorf call has error-wrapping directive %w, which is only supported by Errorf
pkg/imagebuilder/content.go:59:3: Errorf call has error-wrapping directive %w, which is only supported by Errorf
pkg/imagebuilder/content.go:64:3: Errorf call has error-wrapping directive %w, which is only supported by Errorf
make: *** [Makefile:26: unit-test] Error 2

After this fix:
The above error is resolved.

/lgtm


Split Object/Face Recognition

Hi,
For me, recognizing objects and recognizing faces are two completely different things. While objects are simply recognized, faces have to be detected, a person has to be recognized, suggested, labeled, filtered, clustered, ....
So should this be split?
Cheers
tknobi

Yes, i agree. I would think that any application that has face detection will also have object detection, but the quality of object detection could still vary widely.
We should probably also split out some other 'Features' like Mobile App and Desktop App. I'll create separate issues for those.


[fix] Cannot find module 'qjsc'

version 0.2.2 cannot install
error message:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ mainToC: `node scripts/js_to_c.js -s ../dist/main.js -o ../dist` npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ mainToC script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/xxx/.npm/_logs/2022-11-21T03_29_16_598Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build:release: `NODE_ENV=production rollup --config rollup.config.js && npm run mainToC && npm run testToC`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build:release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/xxx/.npm/_logs/2022-11-21T03_29_16_639Z-debug.log
/Users/xxx/webf/node_modules/async-done/index.js:18
    throw err;
    ^

version 0.2.2 cannot install error message:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ mainToC: `node scripts/js_to_c.js -s ../dist/main.js -o ../dist` npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ mainToC script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/xxx/.npm/_logs/2022-11-21T03_29_16_598Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build:release: `NODE_ENV=production rollup --config rollup.config.js && npm run mainToC && npm run testToC`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build:release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/xxx/.npm/_logs/2022-11-21T03_29_16_639Z-debug.log
/Users/xxx/webf/node_modules/async-done/index.js:18
    throw err;
    ^

The essential error message are on the above.


Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "E:\Stable Diffusion\py310\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "E:\Stable Diffusion\py310\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\base.py", line 78, in call_next
message = await recv_stream.receive()
File "E:\Stable Diffusion\py310\lib\site-packages\anyio\streams\memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Stable Diffusion\py310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "E:\Stable Diffusion\py310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\fastapi\applications.py", line 273, in call
await super().call(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "E:\Stable Diffusion\modules\api\api.py", line 96, in log_and_time
res: Response = await call_next(req)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\gzip.py", line 26, in call
await self.app(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "E:\Stable Diffusion\py310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "E:\Stable Diffusion\py310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "E:\Stable Diffusion\py310\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "E:\Stable Diffusion\py310\lib\site-packages\fastapi\routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "E:\Stable Diffusion\py310\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "E:\Stable Diffusion\py310\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\Stable Diffusion\py310\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:\Stable Diffusion\py310\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:\Stable Diffusion\modules\api\api.py", line 310, in img2imgapi
processed = process_images(p)
File "E:\Stable Diffusion\modules\processing.py", line 486, in process_images
res = process_images_inner(p)
File "E:\Stable Diffusion\modules\processing.py", line 625, in process_images_inner
uc = get_conds_with_caching(prompt_parser.get_learned_conditioning, negative_prompts, p.steps, cached_uc)
File "E:\Stable Diffusion\modules\processing.py", line 570, in get_conds_with_caching
cache[1] = function(shared.sd_model, required_prompts, steps)
File "E:\Stable Diffusion\modules\prompt_parser.py", line 140, in get_learned_conditioning
conds = model.get_learned_conditioning(texts)
File "E:\Stable Diffusion\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 669, in get_learned_conditioning
c = self.cond_stage_model(c)
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\modules\sd_hijack_clip.py", line 229, in forward
z = self.process_tokens(tokens, multipliers)
File "E:\Stable Diffusion\modules\sd_hijack_clip.py", line 254, in process_tokens
z = self.encode_with_transformers(tokens)
File "E:\Stable Diffusion\modules\sd_hijack_clip.py", line 302, in encode_with_transformers
outputs = self.wrapped.transformer(input_ids=tokens, output_hidden_states=-opts.CLIP_stop_at_last_layers)
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\py310\lib\site-packages\transformers\models\clip\modeling_clip.py", line 811, in forward
return self.text_model(
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\py310\lib\site-packages\transformers\models\clip\modeling_clip.py", line 721, in forward
encoder_outputs = self.encoder(
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\py310\lib\site-packages\transformers\models\clip\modeling_clip.py", line 650, in forward
layer_outputs = encoder_layer(
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\py310\lib\site-packages\transformers\models\clip\modeling_clip.py", line 379, in forward
hidden_states, attn_weights = self.self_attn(
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\py310\lib\site-packages\transformers\models\clip\modeling_clip.py", line 268, in forward
query_states = self.q_proj(hidden_states) * self.scale
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\extensions-builtin\Lora\lora.py", line 197, in lora_Linear_forward
return lora_forward(self, input, torch.nn.Linear_forward_before_lora(self, input))
File "E:\Stable Diffusion\extensions\a1111-sd-webui-locon\scripts\main.py", line 494, in lora_forward
res = res + module.inference(x) * scale
File "E:\Stable Diffusion\extensions\a1111-sd-webui-locon\scripts\main.py", line 219, in inference
return self.up_model(self.down_model(x))
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\Stable Diffusion\extensions-builtin\Lora\lora.py", line 197, in lora_Linear_forward
return lora_forward(self, input, torch.nn.Linear_forward_before_lora(self, input))
File "E:\Stable Diffusion\py310\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_CUDA_mm)
This is a issue I encountered today, is this my setup error?

Could you provide me with more information about the error? What action are you performing when the error occurs? Is it while using the ControlNet?


Update one example to use auto gui, plus wx support

[x] Update cube example
[x] Add examples specific to qt and wx
[x] Fix for wx

On Windows 11, cube.py (with glfw) and cube_qt.py (with pyside6) work. cube_wx.py acts weird; it shows up, renders the first frame, but only shows the rotation after I resize the window, but before I release the left mouse button.


added test for BTS-1775

Scope & Purpose
https://arangodb.atlassian.net/browse/BTS-1775
This PR adds a test that reproduces the issue reported in BTS-1775. It does not yet fix the bug.

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[ ] Tests

[ ] Regression tests
[ ] C++ Unit tests
[x] integration tests
[ ] resilience tests

[ ] :book: CHANGELOG entry made
[ ] :books: documentation written (release notes, API changes, ...)
[ ] Backports

[ ] Backport for 3.11: -
[ ] Backport for 3.10: -

Related Information

[ ] Docs PR:
[ ] Enterprise PR:
[x] GitHub issue / Jira ticket: https://arangodb.atlassian.net/browse/BTS-1775
[ ] Design document:

Adopted by @alexbakharew.


copy plugin with multiple stores (paticularly AWS S3 and Elasticsearch) and ignore_error behaves differently when Elasticsearch is down

Describe the bug
When copy plugin is used with multiple stores (paticularly S3 and Elasticsearch) along with ignore_error, one of the edge cases do not behaves as expected.
In my setup, I have been sending logs to S3 and Elasticsearch. But when the Elasticsearch is down, it tries to connect to the ES host but meanwhile fluentd does not sends logs to other stores (S3). Even with ignore_error applied to the store containing ES plugin, error is not handled which prevents the logs to be sent to S3.
fluent.conf below
To Reproduce
using the below fluent.conf file in the docker-compose setup having Elasticsearch and fluentd services.
Scenario

Initially all the services of the docker-compose are down
Start the fluentd service keeping the ES service down

Observation
In the fluentd container logs:

fluentd tries to connect to ES host and shows the following logs -

fluentd          | 2022-06-14 09:16:59 +0000 [info]: starting fluentd-1.14.6 pid=7 ruby="2.7.5"
fluentd          | 2022-06-14 09:16:59 +0000 [info]: spawn command to main:  cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "--config", "/fluentd/etc/fluent.conf", "--plugin", "/fluentd/plugins", "--under-supervisor"]
fluentd          | 2022-06-14 09:16:59 +0000 [info]: adding match pattern="file.**" type="copy"
fluentd          | 2022-06-14 09:17:01 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-14 09:17:01 +0000 [warn]: #0 Remaining retry: 14. Retry to communicate after 2 second(s).
fluentd          | 2022-06-14 09:17:05 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-14 09:17:05 +0000 [warn]: #0 Remaining retry: 13. Retry to communicate after 4 second(s).
fluentd          | 2022-06-14 09:17:13 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-14 09:17:13 +0000 [warn]: #0 Remaining retry: 12. Retry to communicate after 8 second(s).
.
.
.

These logs goes on till last retry with exponential time gap in between.
fluent.conf
<source>
  @type tail
  format json
  read_from_head true
  tag file.log
  path /fluentd/log/*.logs
  time_format %Y-%m-%dT%H:%M:%S
  pos_file /tmp/file-logs.pos
</source>

<match ** >
@type copy
<store ignore_error>
  @type elasticsearch
  host elasticsearch
  port 9200
  index_name fluentd_docker
  type_name fluentd

  <buffer>
    @type file
    path /var/log/fluent/es/es.*.log

    timekey_use_utc true # use utc

    flush_interval 30s
    flush_mode interval
    flush_at_shutdown true
  </buffer>
</store>

<store>
  @type s3

  aws_key_id "#{ENV['AWS_KEY_ID']}"
  aws_sec_key "#{ENV['AWS_SEC_KEY']}"

  s3_bucket <my_bucket_name>
  s3_region <aws_region_name>
  path logs/

  s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
  store_as json

  <buffer>
    @type file
    path /var/log/fluent/s3/s3.*.log
    timekey_use_utc true

    flush_interval 30s
    flush_mode interval
    flush_at_shutdown true
  </buffer>

  time_slice_format %Y%m%d%H

  <format>
    @type json
  </format>
</store>

</match>

docker-compose.yml
version: "3.9"
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.17.3
    environment:
      - node.name=elasticsearch
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - discovery.type=single-node

    ports:
      - 9200:9200
    deploy:
      resources:
        limits:
          cpus: "0.50" # Use at most 50% of one CPU core
          memory: 1G # Use at most 50 MB of RAM
    ulimits:
      memlock:
        hard: -1
        soft: -1
      nofile:
        hard: 65535
        soft: 65535
      nproc: 65535

  fluentd:
    container_name: fluentd
    build:
      context: ./
    volumes:
    - ./configurations/fluent.conf:/fluentd/etc/fluent.conf
    - ./logs:/fluentd/log/
    logging:
      driver: "local"
    environment:
      - AWS_KEY_ID=${AWS_KEY_ID}
      - AWS_SEC_KEY=${AWS_SEC_KEY}

Dockerfile to build custom image on fluent/fluentd image:
FROM fluent/fluentd:v1.14.6-debian-1.0
USER root
RUN gem install elasticsearch -v 7.17.0
RUN fluent-gem install fluent-plugin-elasticsearch

Logs are not sent to S3
Expected behavior
Behaviour expected was logs to be sent to the store containing AWS S3 plugin if ES is down. But such behaviour was not witnessed in my experimentation.
Your Environment
- Fluentd version: fluentd 1.4.6
- TD Agent version:
- Operating system: "Debian GNU/Linux 11 (bullseye)"
- Kernel version: 5.14.0-1038-oem

Your Configuration
`fluent.conf`, `docker-compose.yml` and `Dockerfile` to build custom image mentioned in **To Reproduce**

Your Error Log
fluentd          | 2022-06-15 12:50:01 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluent.conf"
fluentd          | 2022-06-15 12:50:01 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '5.2.2'
fluentd          | 2022-06-15 12:50:01 +0000 [info]: gem 'fluent-plugin-prometheus' version '2.0.3'
fluentd          | 2022-06-15 12:50:01 +0000 [info]: gem 'fluentd' version '1.14.6'
fluentd          | 2022-06-15 12:50:01 +0000 [info]: using configuration file: <ROOT>
fluentd          |   <source>
fluentd          |     @type tail
fluentd          |     format json
fluentd          |     read_from_head true
fluentd          |     tag file.log
fluentd          |     path /fluentd/log/*.logs
fluentd          |     time_format %Y-%m-%dT%H:%M:%S
fluentd          |     pos_file /tmp/file-logs.pos
fluentd          |   </source>
fluentd          |
fluentd          |   <match file.** >
fluentd          |   @type copy
fluentd          |   <store ignore_error>
fluentd          |     @type elasticsearch
fluentd          |     host elasticsearch
fluentd          |     port 9200
fluentd          |     index_name fluentd_docker
fluentd          |     type_name fluentd
fluentd          |
fluentd          |     <buffer>
fluentd          |       @type file
fluentd          |       path /var/log/fluent/es/es.*.log
fluentd          |
fluentd          |       timekey_use_utc true # use utc
fluentd          |
fluentd          |       flush_interval 30s
fluentd          |       flush_mode interval
fluentd          |       flush_at_shutdown true
fluentd          |     </buffer>
fluentd          |   </store>
fluentd          |
fluentd          |   <store>
fluentd          |     @type s3
fluentd          |
fluentd          |     aws_key_id "#{ENV['AWS_KEY_ID']}"
fluentd          |     aws_sec_key "#{ENV['AWS_SEC_KEY']}"
fluentd          |
fluentd          |     s3_bucket <my_bucket_name>
fluentd          |     s3_region <aws_region_name>
fluentd          |     path logs/
fluentd          |
fluentd          |     s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
fluentd          |     store_as json
fluentd          |
fluentd          |     <buffer>
fluentd          |       @type file
fluentd          |       path /var/log/fluent/s3/s3.*.log
fluentd          |       timekey_use_utc true
fluentd          |
fluentd          |       flush_interval 30s
fluentd          |       flush_mode interval
fluentd          |       flush_at_shutdown true
fluentd          |     </buffer>
fluentd          |
fluentd          |     time_slice_format %Y%m%d%H
fluentd          |
fluentd          |     <format>
fluentd          |       @type json
fluentd          |     </format>
fluentd          |   </store>
fluentd          |
fluentd          |   </match>
fluentd          | </ROOT>
fluentd          | 2022-06-15 12:50:01 +0000 [info]: starting fluentd-1.14.6 pid=7 ruby="2.7.5"
fluentd          | 2022-06-15 12:50:01 +0000 [info]: spawn command to main:  cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "--config", "/fluentd/etc/fluent.conf", "--plugin", "/fluentd/plugins", "--under-supervisor"]
fluentd          | 2022-06-15 12:50:02 +0000 [info]: adding match pattern="file.**" type="copy"
fluentd          | 2022-06-15 12:50:04 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-15 12:50:04 +0000 [warn]: #0 Remaining retry: 14. Retry to communicate after 2 second(s).
fluentd          | 2022-06-15 12:50:08 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-15 12:50:08 +0000 [warn]: #0 Remaining retry: 13. Retry to communicate after 4 second(s).
fluentd          | 2022-06-15 12:50:16 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-15 12:50:16 +0000 [warn]: #0 Remaining retry: 12. Retry to communicate after 8 second(s).
fluentd          | 2022-06-15 12:50:32 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-15 12:50:32 +0000 [warn]: #0 Remaining retry: 11. Retry to communicate after 16 second(s).
fluentd          | 2022-06-15 12:51:04 +0000 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for <IP_ADDRESS>:9200 (Errno::ECONNREFUSED)
fluentd          | 2022-06-15 12:51:04 +0000 [warn]: #0 Remaining retry: 10. Retry to communicate after 32 second(s).
.
.
.

Additional context
No response

Anyone has solution for this issue please

Anyone has solution for this issue please


Content alignment in the trigger slot

Is your feature request related to a problem? Please describe.
I am unable to left and right justify content in the trigger slot.
Describe the solution you'd like
I would like to be able to specify an addition option like justifyRight but for having the div under the triggerContentWrapper fill the width of its parent.

 // This would fill the wrapper             <slot name="trigger" class="trigger"></slot>
             <slot class="subTrigger" name="subTrigger"></slot>

Describe alternatives you've considered
We might be able to inline-block our content and calculate the width to force the div bigger but that wouldn't be ideal
Additional context
We are trying to have the content inline with the chevron on both the left and the right

Is there a design spec you are going for that the current accordion does not allow for?

This came up for a design that has an accordion like this (red and blue boxes are my annotations), where there's additional content at the end of the slot:

My team implemented this on one of our projects, and now Corigan's team needs something similar. Because of how the component's slots are structured, it's hard to make content fill the entire slot like this. When we implemented it, I had to use absolute positioning on the auro-badge since a flex container doesn't work.
I don't think this needs to be a flag. In my mind a solution would be always applying flex: 1 to this div:
https://github.com/AlaskaAirlines/auro-accordion/blob/e0f237f5cc4ff3354c037b62fdc7d213487f774f/src/auro-accordion.js#L145-L149
With that change, instead of the slotted content only taking up the red box in the above screenshot, it could take up the blue box. Then the design could be implemented easily using flexbox.
This was a little hard to put into words -- happy to jump onto a call to explain if necessary.

I don't think this needs to be a flag. In my mind a solution would be always applying flex: 1 to this div:

That makes perfect sense. I would argue that this can be addressed with a patch release.

The scope of this issue is to address the box model for the trigger slot, as well as add a quick demo for inserting additional content into the slot that can be managed by the user of the element.


Update sklearn.py by addind catch to OptunaSearchCV

To allow for catching exceptions during fit, an init param for "catch" is added, which is passed to self.study_.optimize
Motivation
catch was previously not passed to self.study_.optimize, meaning that there was no way to catch exceptions at fit time (see issue: https://github.com/optuna/optuna-integration/issues/162
Description of the changes
Simply adding an init parameter called catch, which is then passed to self.study_.optimize

Thank you for creating the issue and pull request! Could you write a corresponding docstring of introduced catch  argument around https://github.com/optuna/optuna-integration/blob/e401294815c6ef5c5607efb0b0c1b11e277ed60a/optuna_integration/sklearn/sklearn.py#L503 and add a test function in https://github.com/optuna/optuna-integration/blob/main/tests/sklearn/test_sklearn.py?

Adding docstring in this commit: d9bfca508db3d541d621e5b25c867f0564a9ace2

Incorporating required changes, now passing CI.


Idea of the project

Create a CLI using click
Write a script using Julia and logging the user activity
Flask server
Showing the analysis on a discord bot

[API 1]:
Purpose: Store user details in the database and receive user hash
Request Body: {                              "userID":"some string",                              "roles":[ roles ]                             }
Response: {                          "statusCode"=200,                          "userHash":"some string"                       }
@pandafy

Add API routes to communicate with CLI

To log active windows
To change status of user


Suggested schema validation additions

We should have a warning in the schema validation for suggestedTag or relatedTag that are not in the schema or are the same tag is this tag.

This issue would be better placed in the hed-python repository. It is now hed-standard/hed-python#349.  I am closing this issue.


add html mime type as utf-8

Coverage decreased (-0.02%) to 49.692% when pulling 141edca6776389d00005f8a3236512858c000744 on nobodyiam:fix-index-encoding into 20b5b8e6f4fa90bb827b91d9f2d7bbf11c4bf69e on ctripcorp:master.

Codecov Report

Merging #558 into master will decrease coverage by -0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master     #558      +/-   ##
============================================
- Coverage     46.33%   46.32%   -0.01%
- Complexity     1357     1358       +1
============================================
  Files           325      325
  Lines          8774     8778       +4
  Branches        841      841
============================================
+ Hits           4065     4066       +1
- Misses         4413     4417       +4
+ Partials        296      295       -1

Impacted Files
Coverage Δ
Complexity Δ

...amework/apollo/common/controller/WebMvcConfig.java
0% <0%> (ø)
0 <0> (ø)
:x:

...ervice/service/ReleaseMessageServiceWithCache.java
85.71% <0%> (+1.19%)
24% <0%> (+1%)
:white_check_mark:

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 20b5b8e...141edca. Read the comment docs.


util.prompt_for_user_token stops opening correct browser page to actually log in to Spotify for authorization

Hi everyone! Looking forward to the updates to this awesome project and hoping to help out. I just started working with this API this weekend, and I made a simple console application that scrapes setlist URLs in order to automatically create playlists for people based on setlist.fm urls. Repo : https://github.com/grantbrewster/SpotifySetlistCreator . However for my auth, after the first time i run the program, it never again correctly opens a browser window to let me log in to spotify, so it limits the app to only work for my account. I tried deleting the cache in the directory as well as clearing my chrome cache and then running it but that does not solve the problem. SO i feel the issue may be in the prompt_for_user_token method. I found this stackoverflow that mentions that webbrowser.open() may be at fault : https://stackoverflow.com/questions/38574629/webbrowser-not-opening-new-windows
here is the code from util
def prompt_for_user_token(username, scope=None, client_id = None,
        client_secret = None, redirect_uri = None):
    ''' prompts the user to login if necessary and returns
        the user token suitable for use with the spotipy.Spotify
        constructor

        Parameters:

         - username - the Spotify username
         - scope - the desired scope of the request
         - client_id - the client id of your app
         - client_secret - the client secret of your app
         - redirect_uri - the redirect URI of your app

    '''

    if not client_id:
        client_id = os.getenv('SPOTIPY_CLIENT_ID')

    if not client_secret:
        client_secret = os.getenv('SPOTIPY_CLIENT_SECRET')

    if not redirect_uri:
        redirect_uri = os.getenv('SPOTIPY_REDIRECT_URI')

    if not client_id:
        print('''
            You need to set your Spotify API credentials. You can do this by
            setting environment variables like so:

            export SPOTIPY_CLIENT_ID='your-spotify-client-id'
            export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
            export SPOTIPY_REDIRECT_URI='your-app-redirect-url'

            Get your credentials at
                https://developer.spotify.com/my-applications
        ''')
        raise spotipy.SpotifyException(550, -1, 'no credentials set')

    sp_oauth = oauth2.SpotifyOAuth(client_id, client_secret, redirect_uri,
        scope=scope, cache_path=".cache-" + username )

    # try to get a valid token for this user, from the cache,
    # if not in the cache, the create a new (this will send
    # the user to a web page where they can authorize this app)

    token_info = sp_oauth.get_cached_token()

    if not token_info:
        print('''

            User authentication requires interaction with your
            web browser. Once you enter your credentials and
            give authorization, you will be redirected to
            a url.  Paste that url you were directed to to
            complete the authorization.

        ''')
        auth_url = sp_oauth.get_authorize_url()
        try:
            webbrowser.open(auth_url)
            print("Opened %s in your browser" % auth_url)
        except:
            print("Please navigate here: %s" % auth_url)

        print()
        print()
        try:
            response = raw_input("Enter the URL you were redirected to: ")
        except NameError:
            response = input("Enter the URL you were redirected to: ")

        print()
        print()

        code = sp_oauth.parse_response_code(response)
        token_info = sp_oauth.get_access_token(code)
    # Auth'ed API request
    if token_info:
        return token_info['access_token']
    else:
        return None

and this is how I get the token:
def getNewAccessToken():

    token = util.prompt_for_user_token(spotifyUserId,scope,client_id=clientId,client_secret=clientSecret,redirect_uri=redirect_uri)
    if token:
        return token
    else:
        raise Exception("Can't get token")

I am new to Spotipy so maybe i am doing something incorrectly but according to the documentation this seems to be the correct way of doing it ! Any help would be appreciated

Does it work if you print the link and manually navigate to the page? Then it might be webbrowser at fault, in which case you could construct another version of the function yourself. However, if you are talking about an automatic login, that's Spotify remembering that you already gave permission to the app. Changing scope might require another login. But in that case, printing the link and opening it in a private window might do the trick!

It seems like the prompt correctly opening a Spotify auth is pretty buggy, but honestly might be on the chrome side of things opposed to the the Spotipy side. Sometimes it works, and other times it does not even if both the local/chrome cache are deleted. The only thing that spotipy caches in this function is the user token correct? Thanks for the quick reply!

For me, when I use an equivalent routine, the redirects are automatic yielding the final redirect url with code immediately. But it works as expected consistently. I think it is a Spotify login session thing before anything else. Can't really speak for you if you think there is something else happening. I'm on Windows 10 and Firefox.
Yes, only the token is cached.


problem with assign novel isoforms to annotated gene

Hi I have run scallop and I obtained a gtf with annotated and unique isoforms reconstructed by scallop. I want to know the gene ID associated to the novel isoform. How can I do this?
thanks for your help!

Hi, Scallop gave a "gene ID" for each transcript, but I assume you are looking for the association with gene IDs from a reference annotation or a gene nomenclature. Scallop does not produce that. You may associate a predicted gene (by Scallop) to a known annotated gene by checking: (1) if the range (genomic coordinates) of the two genes overlap a lot, and (2) if two transcripts, one from each gene, share one or more identical intron-exon boundaries.  -Mingfu


Include() does not work if used after Union()

I have the following data context:
public class Foo
{
    public long Id { get; set; }
}

public class Bar
{
    public long Id { get; set; }
    public Foo Foo { get; set; }
}

public class DataContext : DbContext
{
    public DbSet<Foo> Foos { get; set; }
    public DbSet<Bar> Bars { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        optionsBuilder.UseSqlServer(@"data source=(local);initial catalog=IncludeTest;Integrated Security=True");
    }
}

With this setup, I'm not able to use Include after I applied Union:
var list = ctx.Bars
    .Union(ctx.Bars)
    .Include(b => b.Foo)
    .ToList();

// items will have null Foo, even though the associated entity is present

This will work if Include() is used before Union(), but this workaround is less than ideal, when I want the queryable to be reusable and only care about fetching the association in specific cases.
Further technical details
EF Core version: 2.2.4
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.9.3

related to https://github.com/aspnet/EntityFrameworkCore/issues/6812

Notes from triage: We plan to implement this in 3.0, but consider:

Union (and likely other set operations) must operate on the same shape to be translated. This means that if the first ctx.Bars has an Include, then the second must also do so.
So this is okay:

var list = ctx.Bars.Include(b => b.Foo)
    .Union(ctx.Bars.Include(b => b.Foo))
    .ToList();

But this will throw:
var list = ctx.Bars.Include(b => b.Foo)
    .Union(ctx.Bars)
    .ToList();

It is likely that putting the Include at the end will work in 3.0, although semantically it can be different from two Includes on the two roots.
Note that this implies that putting the Include on only the first query root means something different from putting at the end after the two roots are combined into a single query. In other words, this:

var list = ctx.Bars
    .Include(b => b.Foo)
    .Union(ctx.Bars)
    .ToList();

is different from this:
var list = ctx.Bars
    .Union(ctx.Bars)
    .Include(b => b.Foo)
    .ToList();

Assigning to @roji
/cc @smitpatel @divega for anything I missed.

@maumar @ajcvickers Thanks for clarification. It's a fair distinction and in makes sense this does not work with the current in-memory implementation of Union (if maybe surprising for new users coming from EF6).

This works in the new implementation, see test Union_Include introduced in #16249.


Nice and pretty notification popups when things change on the Hub

We need tray icon blinking when something happened and if something important happened we need some message from tray (like baloon message in windows).

Added CNotificationObserver and messages to tray icon.


[CUDA] Simple extend to optimize reuse for static shared memory.

#759 proposed a pass storage_rewrite and provided a trivial storage reuse plan based on liveness analysis, just as #9341 mentioned, the solution has some limitations:

storage_rewrite can't handle buffer with different dtypes.int8 A_shared[32];
int8 B_shared[32];
int32 C_shared[4]; // will not be reused even we have enough workspace as different types.

storage_rewrite can't allocate a buffer in the place of another 2 buffers.   int8 A_shared[32];
   int8 B_shared[32];
   int8 C_shared[64];
  // will be reused as A_shared[32], B_shared[64],  results in 32 half elements space waste.

#8571 and #9341 introduced a pass MergeDynamicSharedMemoryAllocations, which can support efficient memory reuse solely for dynamic shared memory. However, sometimes we do not want to use dynamic shared memory for codegen, so this pull request made a simple extend to MergeDynamicSharedMemoryAllocations to support both dynamic and static shared memory optimal reuse.
By default, the static shared memory merge is disabled to maintain consistency, to enable the static part:
with tvm.transform.PassContext(config={"tir.merge_static_smem": True}):
    cuda_mod = tvm.build(sch.mod, target="cuda")

Take int8xint8=int32 tensorcore gemm as an example, we have a big tile and used static shared memory, before the pass:
__global__ void __launch_bounds__(128) Fused(int8_t* __restrict__ input0, int8_t* __restrict__ input1, int* __restrict__ output0) {

  int mediate0_shared_warp[128];
  __shared__ signed char input0_shared[16384];
  __shared__ signed char input1_shared[16384];
  signed char input0_shared_warp[64];
  signed char input1_shared_warp[64];
  signed char input0_shared_warp_1[64];
  signed char input1_shared_warp_1[64];
  __shared__ int mediate0_shared[6400];

it will exceed the maximum available static shared memory, and compilation will fail. After this pass
__global__ void __launch_bounds__(128) Fused(int8_t* __restrict__ input0, int8_t* __restrict__ input1, int* __restrict__ output0) {

  __shared__ uchar buf_shmem[32768];
  int mediate0_shared_warp[128];
  signed char input0_shared_warp[64];
  signed char input1_shared_warp[64];
  signed char input0_shared_warp_1[64];
  signed char input1_shared_warp_1[64];

we can save around 50% shared memory and the compilation can pass, code generation perf with fastdlight can achieve 510+Tflops (without the pass, the best tile is around 420TFlops on A100), this pass will enable us to explore more tile configs under static shared memory.
Moreover, the pass can optimize the dynamic shared memory plan as well, as the storage_rewrite pass will merge C_shared to B_shared in this example, which is not friendly for further memory plan analysis, the flag merge_static_smem will disable the trivial reuse behavior by (don't know if the flag can be improved):
if (!enable_reuse || is_small_array || !is_flat_memory_space) {
  return NewAlloc(op, attach_scope, scope, const_nbits);
}

This is really amazing addition! Particularly, I found it painful that existing storage-rewrite pass doesn't handle heterogeneous dtypes (which CUDA does support casting in-between), and also on the second point, yes it's limited by current rewriting - thanks for the contribution!

It seems that this PR is not merged in squash mode.

oops sorry this is a mistake

This PR should have been sent to main.


To have a section for hackathon problem statements with solutions.

🚀 Feature
A section for hackathons that are held across different domains for different tech stack.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
I have realised that there are a lot of people who want to learn new things but are not really comfortable in participating in hackathons publicly. There are also instances where people want to try to learn from these events and participate but they don't know which ones to really go for. So this section is a culmination where the ones who are not comfortable in taking part publicly can access the data to it and also the ones who are late in the race would be able to access and find all the problem statements and solutions to these hackathons/competitions at one place.
Pitch
This feature will be added as a resource to the repository. It will have sub-sections which will have the folder name as the name of the competition. These sub-sections/sub-folders will have problem statements in the readme.md file of that sub-section which will be used for informing about the competition: problem statement, when was it held, who hosted it and the dataset.
This subsection will also have a dummy solution which won't be the most optimal solution but a solution good enough to make the newbie understand the problem and how to approach it.

Hackathon Problems are too broad to be covered over here. Because All I have seen here is direct questions which can be quantified into an algorithm and written code for. Although @HarshCasper might have some more ideas about how we can go forward with this.

I agree, @gat786. We can make segregate different hackathons on the grounds of their domains. Like different section for data science, web dev etc. I would like to know your views on this too, @HarshCasper

That would make the Project having too many solutions that would simply disturb the flow of the Project. Closing the Issue.


Add new integration tests for trigger binding

Closes #309
Add integration test to verify the behavior for various error conditions.

There are some tests failing - please fix those before merging in.


add apn device token assignment

This is a fix for #727
Seems to be happening on the newest ios and osx updates.

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {     [FIRMessaging messaging].APNSToken = deviceToken;     NSLog(@"deviceToken1 = %@", deviceToken); }

I'm not sure this PR is required.  #727 was closed without needing a fix.  If someone else from the community could chime in here and let me know if in fact this PR is needed, I'll reconsider merging.  I'm going to close it for now.


Add skip_commits.files support to .appveyor.yml

Appveyor kindly provides free usage to open source projects. We could make better use of the those resources by taking advantage of their skip_commits.files functionality to automatically skip CI for commits that are all for types of files that shouldn't need testing. For example a commit that only changed .md files in the ponyc repo could be skipped.
I think we should collect together a list of file extensions we could ignore, or directories that shouldn't trigger builds etc and start taking a bit of a load off of Appveyor. Ideally TravisCI would also support this but as far as I can find, they only support the [skip ci] message that has to be manually added to commit messages.
https://www.appveyor.com/docs/how-to/filtering-commits/#commit-files-github-and-bitbucket-only
I'm marking this as "needs discussion during sync" so we can go over at the next sync meeting and come up with our basic list.

Its a little unclear from there documentation but after talking with Appveyor it sounds like
**/*.md is the pattern you would use to do skip ci for .md files anywhere in the repo.

Having .travis.yml in that list makes a lot of sense. No reason to run appveyor CI if the only change is to .travis.yml

I opened #1711 for the .travis.yml part of this.

Any objection to adding

.md
.txt
.gitignore
.gitattributes
.gitmodules
Dockerfile
License
Makefile

as files that shouldn't trigger a Windows build
?


Are the Sum of Digits in the Numbers Equal?

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement:
Create a function that takes two parameters and, if both parameters are strings, add them as if they were integers or if the two parameters are integers, concatenate them.
Problem Link:
https://edabit.com/challenge/6dnhESWBcTMMF3gsa

Before submitting a PR please Check some details.Check Edabit for problem task

[ ] fileName formet should be in camelcase
example- returnTheNextNumber.py
[ ]  Add label for Problem
[ ]  In file there should be problem statement and link to probelm
example -

'''
    Probem Task : This program will add two numbers
    Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
'''
*/
def main():
    return a + b

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

@aayushi-droid May I please work on this?

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement:
Create a function that takes two parameters and, if both parameters are strings, add them as if they were integers or if the two parameters are integers, concatenate them.
Problem Link:
https://edabit.com/challenge/6dnhESWBcTMMF3gsa
Before submitting a PR please Check some details.Check Edabit for problem task

[ ]  fileName formet should be in camelcase
example- returnTheNextNumber.py
[ ]   Add label for Problem
[ ]   In file there should be problem statement and link to probelm
example -

'''
    Probem Task : This program will add two numbers
    Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
'''
*/
def main():
    return a + b

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

Hey @rishabmallick I'd like to work on this. Please assign it to me

I did like to work on this please assign me. I recently completed python and completed 5 star in hackerrank. > Thanks

i would love to work on it plz assign this to me

@snehagupta-4 please create a new issue. green button on right upper corner


Stopped updating code files and continued to provide code update sin the chat, just like a standard chatbot

Describe the bug
Responses to my prompts started adding only to the chat and would no longer update my code files. When I asked the model to continue updating my code files it advised me that I would be require to do this with the code provided.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-ctae46
Steps to reproduce
Just standard updated prompts. This was after a long chat also.
Expected behavior
I expected the model to continue updating an writing my code files in my repository rather than begin responding with the code snippets in the chat, similar to how the standard claude or chatgpt models work.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 215145766,
  "usedJSHeapSize": 189197718,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = BuildCal
Chat ID = d78f7b94a484

Additional context
No response

@BuildCal Did you get a fix for this? I am running into the same issue


take into account when value returned is not 'Gi'

don't assume 'type' is defined as selector for all pods

[test] again please, now that fix is in place.


feat: add small-wu-pond config

I'm submitting a...
[ ] Bug Fix
[ ] Feature
[  ] Other (Refactoring, Added tests, Documentation, ...)

Checklist

[  ] Commit Messages follow the Conventional Commits pattern

A feature commit message is prefixed "feat:"
A bugfix commit message is prefixed "fix:"

[ ] Tests for the changes have been added

Description
please describe the changes that you are making
for features, please describe how to use the new feature
please include a reference to an existing issue, if applicable
Does this PR introduce a breaking change?
[ ] Yes
[  ] No

feat: add small-wu-pond config

delete patch-2
merge patch-2 to patch-1


HAWQ-164. A typo in the file name of dumped resource queue status

Fix a typo in file name string.

Looks good.

The fix looks good. +1


Increase test coverage

The test coverage is already pretty good right now, but it can always be improved,
$ pip install pytest-cov
$ pytest --cov=icubam .
[...]
----------- coverage: platform linux, python 3.8.2-final-0 -----------
Name                                       Stmts   Miss  Cover
--------------------------------------------------------------
icubam/__init__.py                             0      0   100%
icubam/backoffice/__init__.py                  0      0   100%
icubam/backoffice/handlers/__init__.py         0      0   100%
icubam/backoffice/handlers/base.py            31      5    84%
icubam/backoffice/handlers/home.py             7      1    86%
icubam/backoffice/handlers/list_users.py      14      5    64%
icubam/backoffice/handlers/login.py           25     15    40%
icubam/backoffice/handlers/logout.py           8      0   100%
icubam/backoffice/server.py                   26      1    96%
icubam/backoffice/server_test.py              28      0   100%
icubam/base_server.py                         27      8    70%
icubam/config.py                              32      1    97%
icubam/config_test.py                         10      0   100%
icubam/db/__init__.py                          0      0   100%
icubam/db/gsheets.py                          26     12    54%
icubam/db/queue_writer.py                     12      5    58%
icubam/db/sqlite.py                           62      2    97%
icubam/db/store.py                           255     21    92%
icubam/db/synchronizer.py                     94     94     0%
icubam/db/test_gsheets.py                     15      3    80%
icubam/db/test_sqlite.py                      71      1    99%
icubam/db/test_store.py                      268      0   100%
icubam/messaging/__init__.py                   0      0   100%
icubam/messaging/message.py                   16     16     0%
icubam/messaging/scheduler.py                 68     68     0%
icubam/messaging/server.py                    27     27     0%
icubam/messaging/sms_sender.py                48      9    81%
icubam/messaging/sms_sender_test.py           15      0   100%
icubam/time_utils.py                          48      4    92%
icubam/time_utils_test.py                     40      1    98%
icubam/www/__init__.py                         0      0   100%
icubam/www/handlers/__init__.py                0      0   100%
icubam/www/handlers/base.py                   16      0   100%
icubam/www/handlers/db.py                     26     15    42%
icubam/www/handlers/home.py                  106     14    87%
icubam/www/handlers/show.py                   42     23    45%
icubam/www/handlers/static.py                  7      1    86%
icubam/www/handlers/update.py                 35     10    71%
icubam/www/handlers/upload_csv.py             22     11    50%
icubam/www/server.py                          41      1    98%
icubam/www/server_test.py                     33      0   100%
icubam/www/token.py                           17      0   100%
icubam/www/token_test.py                      11      0   100%
icubam/www/updater.py                         35      1    97%
--------------------------------------------------------------
TOTAL                                       1664    375    77%

Just to have a list of files where it might be more useful to look.

The coverage is now at 82% (and more ~85% with https://github.com/icubam/icubam/pull/399).
Closing it's more a continuous concern.


[Bugfix] rbenv doesn't respect POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false

Similar to #1283
resolves #1282

It's funny - the Ruby segments were some of the first that p9k ever had, and aside from VCS segments, I think they require the most maintenance, hah.
Thanks so much, @Syphdias :)


[PULL] Implement Bower

Implements bower locally with postinstall, which shall hopefully make front end dependency management simpler.

Tested successfully on localhost.

Unsuccessful test on openshift, permission denied to $home dir.

It works! Finally.


[Script]: NATO Alphabet Project

Aim
Converts word to nato phonetic alphabets
Details
You enter the word will return a list of letters in the word in the form of the NATO Phonetic Alphabet
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Go Ahead @whiteknight16


Moving all array-like data classes into the same package

Pull Request Description
Fixes #6299 by:

moving all array-like data classes into a single package - Done in 22016374d564ef2534d2136c14c3cd7eba215bca
removing all public methods of Vector & Array - Done
hiding the classes from direct public access (Done in 1dd97a8 & 4c3e383)
offering ArrayLikeLengthNode and ArrayLikeAtNode & co. to access them - Done
simplify all other code by using those nodes - like in f128f8b and 1dd97a8 - Done

Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] Make sure all Enso objects subclass EnsoObject and check for that
[x] All code follows the style guides.
All code has been tested:

[x] Unit tests have been written where possible.
[x] Benchmarks show no regressions

Current state seems to be stable. Let's do a bit of benchmarking.

d098ae5 introduces LongVector - a dedicated vector over long[]. As such it doesn't need to:

do any HostValueToEnso checks
use InteropLibrary to query the storage
check for any warnings
wrap numbers to java.lang.Long.

The code is dirty and deserves to be changed, but I expect major benchmark improvements. To be continued...

6181b10 introduces Vector.EnsoOnly that is likely to speed up the IfVsCase benchmarks.

Another benchmark run to check the effect of ArrayBuilder builtin.

benchmark_results.pdf show the state of the benchmarks at the time of merging. Mostly improvements or on par. Slight regression at:

about 30% in WarningBenchmarks_randomElementsVecSum
13% in VectorBenchmarks_averageOverArrayProxy... and VectorBenchmarks_averageAbstractList and VectorBenchmarks_averageOverArray

I merged anyway to avoid further conflicts. We can address the slowdowns in follow up issues.


Please implement containerLogMaxSize and containerLogMaxFiles on Provisioner kubelet configuration

Description
What problem are you trying to solve?
Hi there. I'm having some issues with disk pressure on a Cluster and to tackle them I have to do some configuration on log file sizes
I tried adding the fields containerLogMaxSize and containerLogMaxFiles to spec.kubeletConfiguration but received the following error on cloudformation
Received response status [FAILED] from custom resource. Message returned:
Error: b'error: error validating "/tmp/manifest.yaml": error validating data:
[ValidationError(Provisioner.spec.kubeletConfiguration): unknown field "containerLogMaxFiles"
in sh.karpenter.v1alpha5.Provisioner.spec.kubeletConfiguration,
ValidationError(Provisioner.spec.kubeletConfiguration):
unknown field "containerLogMaxSize" in sh.karpenter.v1alpha5.Provisioner.spec.kubeletConfiguration]

In the docs It's stated to cut an issue if you’d like to see another field implemented. So I guess that these fields are not yet implemented, right?
How important is this feature to you?
This would help me reduce the amount of log files on my nodes, therefore, reducing disk pressure

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

You mean setting userData on the NodeTemplate? I tried that with no success. The template changed but when I spined up a new node, nothing changed.
I validated by fetching the config with the command kubectl get --raw "/api/v1/nodes/NODE_ID/proxy/configz" , maybe I should look into another place?

@tauanlemos I have AWSNodeTeamplate with
  userData: |
    #!/bin/bash
    echo $(jq '.containerLogMaxFiles=10|.containerLogMaxSize="100Mi"' /etc/kubernetes/kubelet/kubelet-config.json) > /etc/kubernetes/kubelet/kubelet-config.json

and see the change applied in files locally on VM and using kubectl you posted. I'm using AL2.


Show with a callback with no params is getting re-computed

Describe the bug
Show with a callback with no params is getting re-computed if a signal used in when is also used before or after with jsx expression {signal()}
Your Example Website or App
https://playground.solidjs.com/?hash=1389243964&version=1.3.7
Steps to Reproduce the Bug or Issue

Go to the linked playground
Click the button a few times. The inner function creation should log and should not log any further
Un-comment line 12 or 20
Click the button again a couple times. There'll be create, cleanup logs whenever the button is clicked

Expected behavior
Step 4 should behave the same as  Step 2
Screenshots or Videos
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
I also reported this in discord server https://discord.com/channels/722131463138705510/751355413701591120/947858138315505724

I think this is related to components wrapped in a thunk within fragments rather than Show. If you replace the fragment with a div in the example given, the issue disappears. If you remove the Show component completely, leaving just {() => <Inner />}, the issue persists.
Minimal reproduction showing this: https://playground.solidjs.com/?hash=-12796868&version=1.3.7

Aha fixed it https://playground.solidjs.com/?hash=1513808350&version=1.3.7

I'll just put this here also, cause this is related but falls under feature request. https://playground.solidjs.com/?hash=101101936&version=1.3.7

Hmm. Yeah that's tricky.. mostly that Show doesn't treat the callback without arguments as a callback but instead as passing an accessor as a child. There just isn't a good way to differentiate. In which case it is just passing the function through which isn't memoized or an actual signal itself. This means that in the fragment context it is re-running without guards.. which happens because it's nested as the Show is memoized but the value it returns is just a function that isn't, and in theory this could be true to n-depth.
The handling is imperfect but also I'd argue this usage is incorrect since your intention isn't to return a non-memoized child and rather have it work like a callback form.  Technically the correct solve is to run the children helper perhaps but this may have other implications. Hmm... the conceptual problem is that callback without argument behaves differently. In a sense that the helper is too overloaded. It's possible control flow should be returning children(() =>) instead of createMemo(() =>). That is interesting.

Yeah given this issue will just go stale here. I am going to close it as we aren't going to be taking any action in the near future as this pattern basically is a concession by design and easy to point to as improper use as there shouldn't be an expectation of it working as indicated. This takes more than just wrapping the value sufficiently as the API basically doesn't lend to it.


How to run the README example.

Maybe I am doing this incorrectly, but the example will not run with:
cargo build
cargo run

Instead I did:
cd target/debug
mpirun -np 2 ./<project_name>

I have updated the example in b4b649417d14c8e4ccdb759b503fc0fd0b14b6d5 and it should now run on an arbitrary number of processes, so a simple cargo run should suffice. Thanks for the nudge.

Cool. Thanks!


Update Composer dependencies (2022-01-06-00-10)

Visual regression test passed!
View the visual regression test report


@Setter(AccessLevel.NONE) triggers "final field is not allowed"

We sometimes use @Setter on class level, but @Setter(AccessLevel.NONE) to suppress the setter for individual fields.
The plugin's annotations inspection still complains that
@lombok.Setter on final field is not allowed
for
@Setter(AccessLevel.NONE)
private final String bug = "final";

If you use Setter on class level it ignores final fields.

@Setter on final field is useless, because lombok ignores all final fields
(and fields that start with $ or are static). So you can simple remove you field annotation:)
But you are right, it's working some different than lombok self at the moment.
Annotation inspection should only warn you, because you will get only a warning by lombok compiler: "Not generating setter for this field: Setters cannot be generated for final fields." later in this case.
And it is a warning only for all other AccessLevels but not for AccessLevel.NONE, like in your example.
I will chnage it, to be more compatible with lombok implementation.


fix(route): $destroy scope after update and reload

When we update route (changing only search param, no route reload) and then reload (change to different
route), it did not $destroy last scope.

LGTM

b9001e914740ea0e3bba357a33ddaf13610c874f


Add reset of functions to hard_clean_db fixtures

Description
Currently the hard-clean function remove tables and types but not functions. This function is used by fixtures to reset the db
and therefore it should also remove functions. This commit adds the remove of functions.
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[ ] Attached issue to pull request
[x] Changelog entry
[ ] Type annotations are present
[x] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches master in 5f94526121a0c4a04bf9e5bacdcef40aebcf4095

Processing #4005.

Processing #4004.


Fix numpy pin

Closes #18
Closes #20 (giving up on experiment since we couldn't find build artifacts)
It appears that some changes I recently made in hopes of solving ABI compatibility issues ended up leading to some unexpected side-effects in the form of a spurious extra numpy pin. Thus we revert to avoid trouble.

Checklist

[X] Used a personal fork of the feedstock to propose changes
[X] Bumped the build number (if the version is unchanged)
[X] Reset the build number to 0 (if the version changed)
[X] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[X] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

For anyone wondering what's going on here, I don't understand why this is failing. The spurious numpy pin described in #18 seems to have been introduced by my commit in #16. So fixing it should be a simple matter of reverting that commit, right? :joy:
I have various other draft PRs aiming to bisect the problem. In #25 I tried removing only the numpy-related line. (Probably the better approach since the other things are genuine host deps, and we don't want them to be pip-installed.) Result: the same failure as here.
In #24 I tested rerendering without any other changes. Result: everything green
In #20 I was trying to figure out exactly where the numpy pin was coming from, so I tried to configure conda-forge to store the build artifacts during the CI run, but it didn't work.
It feels like I'm just having really bad luck at the moment. This shouldn't be difficult but nothing's working.

@conda-forge-admin, please rerender

Calling Ghostbusters


Improve gif performance

Breaking this out from #191.
Investigate using Rastermill or android-gif-drawable for better performance.

Obsolete


Rewrite all template code

Motivation
I started reading the project's code and realized that the codes are full of bad practices and there are codes that need to be refactored. So, I decided to restart the project's code from 0 and gradually rewrite it, already using a code linter from the beginning, analyzing particularities and adopting a clean and well-made code pattern in order to avoid future complications and improve the readability of the whole the project.
!!DO NOT MERGE UNTIL DONE!!
TODO List

[x] Delete all project files and start from scratch
[x] Rewrite package.json scripts and move unecessary runtime dependencies from dependencies to devDependencies
[x] Fix the glob warning problem while executing build:compile script
[x] Use eslint as linter
[x] Add typescript-eslint and prettier plugins to the eslint config file
[x] Use discordx decorators instead of @decorators (src/utils/decorators) since we don't need these abstractions
[x] Move from MikroORM to Prisma
[x] Remove Database service because we can simply register PrismaClient in tsyringe container
[ ] Filter which services are needed and rewrite them (Logger, ErrorHandler, ImagesUpload, etc.)
[ ] Create the Schedule decorator
[ ] Support for Guards
[ ] Add i18n support for commands and plugins
[ ] Add support for plugins
[ ] Add more configuration options
[ ] Add support for bot using REST option
[ ] Docker support
[ ] GitHub Actions


Battery Plugin not working

I follow all the guide on the https://pub.dev/packages/battery page, but it throw an error
E/flutter (10474): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method getBatteryLevel on channel plugins.flutter.io/battery)
E/flutter (10474): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
E/flutter (10474):
E/flutter (10474): #1      Battery.batteryLevel (package:battery/battery.dart:36:8)
E/flutter (10474): #2      mainAppState.check (package:ui/main.dart:17:25)
E/flutter (10474):
E/flutter (10474): #3      mainAppState.change (package:ui/main.dart:21:5)
E/flutter (10474): #4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14)
E/flutter (10474): #5      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:566:30)
E/flutter (10474): #6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
E/flutter (10474): #7      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
E/flutter (10474): #8      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:177:9)
E/flutter (10474): #9      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:436:9)
E/flutter (10474): #10     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter (10474): #11     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter (10474): #12     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:221:19)
E/flutter (10474): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
E/flutter (10474): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (10474): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (10474): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (10474): #17     _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter (10474): #18     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (10474): #19     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (10474): #20     _invoke1 (dart:ui/hooks.dart:233:10)
E/flutter (10474): #21     _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)

Hi KevinYobeth,
A couple of questions:

Was error thrown on Simulator or actual platform? Also, what are your host (development OS) and target platform?

Did you run flutter doctor and flutter package get? If you can share the output of flutter doctor it will be helpful to debug and help.

Hi, i'm getting a similar issue when using the battery package. I get the message;
E/flutter ( 4856): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(UNAVAILABLE, Charging status unavailable, null)
E/flutter ( 4856): null
Anyone know a fix for this??
I've run the flutter doctor and everything is fine.

@ketanm also it's both the simulator and on an android device. I've just run the package example from scratch to see if it's any implementation but get the same error message.

Hi,
I just pulled the package to latest code, ran flutter build apk and installed app-release.apk on my Android phone and ran the application successfully.
Can you give more details about your setup and how you are building?
Ketan

Hi @KevinYobeth
are you still experiencing this issue with the latest version of Flutter?
If so please reply attaching your flutter doctor -v.
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Still having this issue.
I'm building the demo application https://github.com/flutter/plugins/blob/master/packages/battery/battery/example/lib/main.dart.
> flutter run
Running "flutter pub get" in battery...                             1.0s
Launching lib/main.dart on A920 in debug mode...
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        16.6s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...                15.2s
Waiting for A920 to report its views...                             12ms
Syncing files to device A920...                                    552ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on A920 is available at: http://<IP_ADDRESS>:57925/MuhkkiG3zKU=/
E/flutter (23346): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(UNAVAILABLE, Charging status unavailable, null)
E/flutter (23346):

> flutter doctor -v                                                                                ~/github/battery 0
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-GB)
    • Flutter version 1.20.4 at /Users/alexander/flutter
    • Framework revision fba99f6cf9 (4 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/alexander/Library/Android/sdk
    • Platform android-29, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
    • A920 (mobile) •<PHONE_NUMBER> • android-arm • Android 7.1.2 (API 25)

• No issues found!```

The issue will be fixed by https://github.com/flutter/flutter/issues/66125.


Higher Res Favicons

Guys, if you have a better private way to get favicons that are also higher res, would appreciate your contribution!

this is a limitation of websites having low-res favicons


Cannot load underlying module for 'Async'

installed the pod and when 'Import Async' in the main via controller got this error.
Cannot load underlying module for 'Async'
can build and run the 'AsyncExample iOS' w/o error
total noob here, any advice is appreciated

What version of CocoaPods + Xcode are you using? And what does your podfile look like?

Thanks for the quick response Tobias,
I am using Xcode Version 7.1.1 (7B1005), and the latest AsyncSwift CocoaPod my pod file looks like this:
platform :ios, '8.0'
use_frameworks!
target 'mBibe' do
pod 'SVProgressHUD', '~> 1.1'
pod 'PermissionScope', '~> 1.0'
pod 'SwiftLocation', '~> 0.2.0'
pod 'PromiseKit', '~> 3.0.0'
pod 'EVCloudKitDao'
pod 'AsyncSwift'
end

Are you also using the latest version of CocoaPods?

On 18 Nov 2015, at 18:20, Kevin Clarke<EMAIL_ADDRESS>wrote:
Thanks for the quick response Tobias,
I am using Xcode Version 7.1.1 (7B1005), and the latest AsyncSwift CocoaPod my pod file looks like this:
platform :ios, '8.0'
use_frameworks!
target 'mBibe' do
pod 'SVProgressHUD', '~> 1.1'
pod 'PermissionScope', '~> 1.0'
pod 'SwiftLocation', '~> 0.2.0'
pod 'PromiseKit', '~> 3.0.0'
pod 'EVCloudKitDao'
pod 'AsyncSwift'
end
—
Reply to this email directly or view it on GitHub.

I just Un-installed / installed and now I'm using cocoapods-0.39.0
Now I can import Async
Thank you!