[Designer] Make Card Structure panel keyboard accessible

Related Issue
Fixes VSO 24096574
Partially fixes VSO 24096354, 24096574
Description
Expose the "Card Structure" panel to accessibility tooling and add keyboard shortcuts.
How Verified

local build, devtools, narrator

Microsoft Reviewers: Open in CodeFlow

for now I'm just generating a PR site build to get help from the narrator folks -- feel free to disregard this PR :)

I should note that the keyboard accessibility here is broken when using new Edge and Narrator, but that's an actual platform issue. Feel free to contact me for details.


Default file create permissions

I checked the behaviour of file creation in different programming languages. Particularly, how the permissions interact with umask. For example, with umask 0053 I see the following:
-rw----r-- 1 johannes johannes 0 Mai 11 15:11 Crystal.txt
-rw--w-r-- 1 johannes johannes 0 Mai 11 15:11 Python.txt
-rw--w-r-- 1 johannes johannes 0 Mai 11 15:11 Ruby.txt

producer script
crystal eval 'File.touch("Crystal.txt")'
ruby -e 'File.write("Ruby.txt", "")'
python -c 'open("Python.txt", "w").close();'

Crystal's default permission don't have the write bit set for group and other. But apparently Ruby and Python set those bits. I suppose they use full permissions (0666) by default which then gets trimmed down by umask. The most common umask setting is 0022 which aligns with Crystal's default permission of 0644.
https://github.com/crystal-lang/crystal/blob/7aa5cdd86544005a37090f848d1304df1c181fa4/src/file.cr#L69
But it does not follow broader permissions configured via umask.
So I think the default permissions should be expanded to 0666. That would result in the same behaviour as in Ruby and Python (and I presume, most other languages), which means the resulting permissions are solely dependent on umask.

For Windows' treatment of DEFAULT_CREATE_PERMISSIONS (there is currently none): https://github.com/crystal-lang/crystal/issues/13233#issuecomment-1544590496

Also it is worth checking whether certain umask values could break specs related to file permissions


[FR] Go to the note containing the image

Sometimes you see an image and you would like to go to the note where it is contained.
It would be great if the note opened by pressing CTRL + click on the image.

There can be multiple notes where it is contained, do you mean ctrl click to take you to the meta file? or perhaps open the image itself?

It's true, I hadn't thought about it.  In my vault I don't have any images
repeated in several notes.  Perhaps in such a case, a warning or a selector
could appear?  I think it's very useful to be able to go to the note,
sometimes you don't remember the name of the note but you know it contains
an image or when you see the image it reminds you of an old note that you
want to review.
El mar, 12 sept 2023 20:54, Tom Norris @.***> escribió:

There can be multiple notes where it is contained, do you mean ctrl click
to take you to the meta file? or perhaps open the image itself?
—
Reply to this email directly, view it on GitHub
https://github.com/TomNCatz/obsidian-gallery/issues/9#issuecomment-1716254271,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2GF4FW2LCDO5AIOOYYC6LX2CVVRANCNFSM6AAAAAA4VGEUJU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Currently the image meta file contains a list of backlinks to anywhere the image is referenced. Maybe I can find a way to add a right click option to open that to the side when you click an image. I can see other use cases for such a feature anyway.

Maybe I don't understand it well, but in the metadata I don't see the possibility of going to the TEST3 note that contains the image.

Firstly, as I went to demonstrate this I found a bug where the backlinks don't work in the side panel for some reason, so I'm going to make a separate bug ticket for that.
Secondly, once I FIX the side panel back links, they are marked on this image in pink. Also marked in green is a link to the actual image file. If you open the meta file the links currently work, but I will figure out how to get them working again in the side panel too.


Multiple versions of @aurelia-ux/core found:

I'm submitting a bug report

Library Version:
0.16.0

Please tell us about your environment:

Operating System:
Windows 10

Node Version:
10.16.0

NPM Version:
6.9.0

JSPM OR Webpack AND Version
webpack 4.34.0

Browser:
all

Language:
TypeScript 3.5.1

Current behavior:
I have followed the instructions in a new Aurelia project, to add aurelia-ux.
When building the project, there are various warnings:
WARNING in @aurelia-ux/core
Multiple versions of @aurelia-ux/core found:
0.16.0 ./~/@aurelia-ux\core
0.4.0 ./~/@aurelia-ux\slider/~/@aurelia-ux\core
WARNING in aurelia-dependency-injection
Multiple versions of aurelia-dependency-injection found:
1.3.1 ./~/@aurelia-ux\slider/~/@aurelia-ux\core/~/aurelia-dependency-injection
1.4.2 ./~/aurelia-dependency-injection
WARNING in aurelia-metadata
Multiple versions of aurelia-metadata found:
1.0.3 ./~/@aurelia-ux\slider/~/@aurelia-ux\core/~/aurelia-metadata
1.0.6 ./~/aurelia-metadata
WARNING in aurelia-pal
Multiple versions of aurelia-pal found:
1.3.0 ./~/@aurelia-ux\slider/~/@aurelia-ux\core/~/aurelia-pal
1.8.2 ./~/aurelia-pal
It appears to me that the slider control has invalid and/or unneeded references
Expected/desired behavior:
When adding aurelia UX to a new Aurelia project, it should not have warnings when building.

What is the expected behavior?

What is the motivation / use case for changing the behavior?
It appears to be a bug

OK - I think I can see the issue. It appears that the slider component is including it's own node_modules folder as per the attached image. I'm hoping this is something that is easily fixed.
Manually deleting the node_modules removes the warning, and the app runs correctly.

This should be solved by recent work from @MaximBalaganskiy that put @aurelia-ux/core as peer dependency. Thanks for creating this issue.


HDFS-15674. TestBPOfferService#testMissBlocksWhenReregister fails on trunk.

https://issues.apache.org/jira/browse/HDFS-15674
The test intermittently fails if count of IBR does not reached to expected value(4000).
[ERROR] Failures:
[ERROR]   TestBPOfferService.testMissBlocksWhenReregister:341 Timed out wait for IBR counts FBRCount = 2441, IBRCount = 3999; expected = 4000. Exception: Timed out waiting for condition. Thread diagnostics:
Timestamp: 2020-11-16 12:45:57,425
{noformat}

This waiting condition does not make sense because pending IBRs are possible to be deleted by clearIBRs() in BPServiceActor#reRegister. It is ok because succeeding full block report covers them based on the discussion of HDFS-15113.
The tests should check that all blocks are reported rather than counting number of reported blocks in FBR/IBR independently.

The failure could be reproduced within 10 tries on my local environment. I checked that pending IBRs are cleared before sending heartbeat in failed case by adding debug logging to IncrementalBlockReportManager#clearIBRs. (The logging is not including the PR.)
$ cd hadoop-hdfs-project/hadoop-hdfs
$ for i in `seq 100` ; do echo $i && mvn test -Dtest=TestBPOfferService#testMissBlocksWhenReregister -DignoreTestFailure=false  || break ; done

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
26m 14s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:

0m  0s
test4tests
The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
33m 48s

trunk passed

+1 :green_heart:
compile
1m 19s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
compile
1m 13s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
checkstyle
0m 49s

trunk passed

+1 :green_heart:
mvnsite
1m 18s

trunk passed

+1 :green_heart:
shadedclient
21m 35s

branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 59s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 31s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+0 :ok:
spotbugs
3m  6s

Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
3m  4s

trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 14s

the patch passed

+1 :green_heart:
compile
1m  9s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javac
1m  9s

the patch passed

+1 :green_heart:
compile
1m  8s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
javac
1m  8s

the patch passed

+1 :green_heart:
checkstyle
0m 40s

the patch passed

+1 :green_heart:
mvnsite
1m 11s

the patch passed

+1 :green_heart:
whitespace
0m  0s

The patch has no whitespace issues.

+1 :green_heart:
shadedclient
14m 49s

patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 48s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 21s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
findbugs
3m  1s

the patch passed

_ Other Tests _

-1 :x:
unit
100m 16s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
0m 39s

The patch does not generate ASF License warnings.

219m 57s

Reason
Tests

Failed junit tests
hadoop.hdfs.server.namenode.TestDiskspaceQuotaUpdate

hadoop.hdfs.server.namenode.TestAddStripedBlockInFBR

hadoop.hdfs.TestDecommissionWithBackoffMonitor

hadoop.hdfs.server.blockmanagement.TestUnderReplicatedBlocks

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2467/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2467

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux f861655c6c83 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / b57f04cd5bf

Default Java
Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2467/1/testReport/

Max. process+thread count
4925 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2467/1/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

Thanks @iwasakims for your works. +1 from my side.

I merged this. Thanks, @Hexiaoqiao and @goiri .


Characteristics are 4x higher than they should be (iOS, Android)

Imported HDC Characteristics are being calculated 4x higher in Hero System Mobile than Hero Designer?
Character is using 5E rules. HSM setting to 5th Ed Rules. Import of HDC file. View Characteristics tab, click details of a characteristic such as STR. HDC version 3 and 6 yield same results when their files are opened in HSM.

Stat
Cost
Val
HDC Levels
HSM Val
HSM Cost

STR
x1
13
3
56
3

DEX
x3
14
4
56
12

CON
x2
17
7
72
14

BOD
x2
16
6
64
12

INT
x1
8
-2
32
-2

EGO
x2
11
2
44
2

PRE
x1
14
4
56
4

COM
x.5
8
-2
32
-1

PD
s/5+1
6
3
24
3

ED
c/5+1
6
3
28
3

Seems the levels (points) are being multiplied by the point cost an extra time in the calculation.

Please send me a sample character with the issue. If you prefer not to leave it here, DM or email the character.
HDC and HSM agree with my test characters.


Add support for URL query parameters

Add support for URL query parameters in the application to facilitate easier linking and enhance user experience. This would allow users to share specific views within the app by simply appending query parameters to the URL.
This would be very helpful for documentation and playbooks where you can link to a specific project.
Example:
https://jit.example.com/home?project=<PROJECT_ID>

That's a great idea, thanks.

Version 1.4.1 now includes this feature.


Missing lib/utils/index.ts

Hi
I've cloned the gandalf project and encountered an issue where the lib/utils/index.ts file is missing. This file is referenced in several parts of the frontend code, such as in components/ui/avatar.tsx.
Could you please provide guidance on whether this file should be included in the repository, or if there's a specific setup step that I'm missing?
Thank you for your help!

@mancohxm1986 I've just tested everything (works in my machine 😅 ) and updated the README.md to give better setup/ installation guidance.
The correct file is frontend/lib/utils.ts instead of lib/utils/index.ts. Can you check if it works for you?
This project originated at the AGI House hackathon. Out of curiosity, how did you discover it & what are you looking to achieve? Super eager to learn more from you :)


Editing README.md for better clarity

Fixing some grammar and spelling mistakes, and removing / replacing / adding some words so that there is better clarity.

Thanks for the correctios


Support section images are broken

Describe the Bug
on website docs, when clicking images of support snippets (for example last section of https://react.email/docs/components/hr).
zoom modal opens two times and for closing the modal, user has to click outside two times.
Which package is affected (leave empty if unsure)
docs
Link to the code that reproduces this issue
https://react.email/docs/components/hr
To Reproduce
click on the Gmail icon in support snippet
Expected Behavior
to click outside one time to close the modal.
What's your node version? (if relevant)
No response

i checked with another sites that use mintlify, the problem does not exist in
https://flatfile.com/docs/guides/theming
https://docs.depict.ai/react-ui-guide/setup/product-card
if you look at the react email source, the img tag is wrapped with the modal trigger two times, and has two separate click event listeners for modals.

            <button aria-label="Expand image: Outlook" data-rmiz-btn-zoom="" type="button">
               <svg aria-hidden="true" data-rmiz-btn-zoom-icon="true" fill="currentColor" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
                  <path d="M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"></path>
               </svg>
            </button>

      <button aria-label="Expand image: Outlook" data-rmiz-btn-zoom="" type="button">
         <svg aria-hidden="true" data-rmiz-btn-zoom-icon="true" fill="currentColor" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
            <path d="M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"></path>
         </svg>
      </button>

Outlook

I think this is an issue with Mintlify though, but it only happens when having a snippet with an image inside, I tried the opposite and the issue seems to go away 🤔.

Going to close this as this seems to be an issue with Mintlify here. We'll talk to them.

Update on this, I think changing the way we use the snippets fixes it I'll get a PR out with a different file structure and this as well.


Refactor FILTER_QUERY to Handle Query Sample IDs via File Input for csvtk

The FILTER_QUERY module has been refactored to improve how query sample IDs are handled. Instead of passing sample IDs as individual strings to csvtk filter2, the IDs are now written to a single file (.collectFile) in the workflow and passed directly into csvtk grep.
This change prevents errors caused by overly long command-line strings and simplifies the process of handling large numbers of query samples efficiently.
PR checklist

[x] This comment contains a description of changes (with reason).
[x] Make sure your code lints (nf-core lint).
[x] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[x] Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
[x] CHANGELOG.md is updated.

Looks good! Hadn't really looked into the documentation of csvtk before (except that one time I used it in staramr). Looks handy! Good to keep in mind instead of doing everything in bash code blocks!


Security : Rescue Exception is evil in Ruby. You have to never do tha…

…t. More infos : http://stackoverflow.com/a/10048406/2431728

Would love to see this merged.

Thanks :) I do agree rescue Exception is annoying, however it's not a security issue as far as I am aware?


Remember tubclean count (feature request)

This is just a small tweak, the tubclean count shows N/A after turning off the washer for a while. I think it would make more sense to maintain the counter and update it as the number changes.
Thanks for all the updates, "patiently" waiting for the dryer release that you are working on.

I just released Dryer, test can start now.Please provide feed-back and send to me logs (possible debug), because not having Dryer I wasnìt able to do any test
It is strange that tubclean come back to N/A. This should happen only after HA reboot.

Ok, I'll create a new issue for the dryer testing.

Is there any way for the counter to survive a restart?

Problem is that at restart, when washer is off, this value is not available. As I know in HA is not possible to save a state and restore at reboot.

Ok thanks, I'll close this.


DROP Statement fails in Wolverine.SqlServer

I introduced PersistMessagesWithSqlServer() into my code.
While the first run did work as expected (tables, procedures created),
the second run of the code produced an exception at application startup:
Microsoft.Data.SqlClient.SqlException: 'Cannot drop type 'wolverine.EnvelopeIdList' because it is being referenced by object 'uspDeleteIncomingEnvelopes'. There may be other objects that reference this type.'
(SQLServer does not allow dropping the table because the stored procedure does have a reference on it)
The same behaviour is shown in version 2.11.1 and 2.12.2.
If i manually drop all procedures the application starts and runs as expected.
Full exception trace:
Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot drop type 'wolverine.EnvelopeIdList' because it is being referenced by object 'uspDeleteIncomingEnvelopes'. There may be other objects that reference this type.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)    at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod)
at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult)
at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
at Microsoft.Data.SqlClient.SqlCommand.<>c.b__210_1(IAsyncResult result)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)

Okay, but that would only run if you were trying to tear down the storage

Weasel schema migration detects a difference in SchemaMigration.DetermineAsync()
Still can't find the reason for it, but will close this issue as it is nothing to bother for Wolverine.SqlServer.
Thank you!

see comment above


Document status versus 1.8

It seems that all or most of the features of this package have made it into the mainline of Django. However, whether it is all or most is not clear. Also, it is not clear whether this package will be maintained in some form or other.
It would be great to find this back in the README and/or other documentation.
Thanks!

Yes, thanks for the nudge, I'll update the docs. The answers are "yes, it was all merged into Django 1.8" and "no, I don't plan to maintain django-secure any longer" now that 1.8 is (or will shortly be) the minimum supported Django version.

Fixed.


Panic in src/phy/sys/raw_socket.rs

I'm using smoltcp to ferry packets between two interfaces via raw sockets (with some custom filtering), and ran into this panic when stress-testing my program:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }',
 /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/smoltcp-0.8.0/src/phy/sys/raw_socket.rs:107:49

I see an explicit unwrap at https://github.com/smoltcp-rs/smoltcp/blob/master/src/phy/sys/raw_socket.rs#L107 :
if len == -1 {
    Err(io::Error::last_os_error()).unwrap()
}

and in the outer function that calls this at https://github.com/smoltcp-rs/smoltcp/blob/master/src/phy/raw_socket.rs#L114 :
lower..send(&buffer[..]).unwrap();

Is there a reason to explicitly panic here, or would it be reasonable to propagate that error up to the caller?

Oh, raw socket send can WouldBlock under load? huh.
The cleanest solution is probably returning an error from consume, yes. This way the stack knows the send failed and can retry later.
Perhaps translate Exhausted to WouldBlock, and the others to Illegal


SAP HANA on Azure Large Instances - Sunset

SAP HANA on Azure Large Instances is in sunset mode and should include the note - Suggestion that all HLI topic pages should include some version of the note

Note found on https://learn.microsoft.com/en-us/azure/sap/large-instances/hana-overview-architecture

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

ID: 297fe58b-8232-9b2a-c92e-9f7f94ec3e4e
Version Independent ID: 3da45f17-e475-f23e-c77f-465933ed02f4
Content: Run SAP HANA Large Instances - Azure Reference Architectures
Content Source: docs/reference-architectures/sap/hana-large-instances.yml
Service: architecture-center
Sub-service: reference-architecture
GitHub Login: @bqtrinh
Microsoft Alias: bentrin

@eric-camplin
Thanks for your feedback! We will investigate and update as appropriate.

@eric-camplin - We've added a note to the top of this page. Thank you!

#please-close


chore(tests) include kong*.rockspec to cache hash calculation on travis

Summary
If it is not included in cache hash calculation, dependencies that are updated in .rockspec might be leaked to other tests / builds.

I would like to hear more opinions from others, for the following reasons:

Every time before the tests are ran, make dev is executed, which will correct all the dependency issue, if any.
Adding rockspec makes the cache granularity unnecessarily large. This means even if we are just adding new Kong lua files to the rockspec, a full rebuild is triggered, which is very slow and reduces our cache hit rate.

Basically, everything that can not be corrected by make dev are inside the .requirments file, which is part of the hash as f today. Everything else should be correctable by make dev much quicker than a full rebuild.
Obviously, being defensive is a good thing, for the CI runs the most defensive thing we could have done is to not use cache at all. We choose to not do that because it creates more harm without solving any known issues for us, the same principle should apply here as well.

I would like to hear more opinions from others, for the following reasons:

Every time before the tests are ran, make dev is executed, which will correct all the dependency issue, if any.

It does not seem like. Why this PR is green, while others are red?

Adding rockspec makes the cache granularity unnecessarily large. This means even if we are just adding new Kong lua files to the rockspec, a full rebuild is triggered, which is very slow and reduces our cache hit rate.

We do this non-frequently.

Basically, everything that can not be corrected by make dev are inside the .requirements

We tried couple of things. But didn't find the solution that is better than this. Could we go with this solution as it makes cache correct, and then try to optimize it later? If you have better way to solve this, I am open to see it. Here is a sister PR to this that is for next and it is green on travis: https://github.com/Kong/kong/pull/6383 (so this fix really works). The Github Actions fix can be found on kong-build-tools.
If cache gets correct, everything will suddenly turn green, so you never know do you have this: https://github.com/Kong/kong/pull/6361 screwing up the cache. It depends that does cache have that or almost any other branch based on next.

We could only hash the rockspec dependencies, but not when adding a new file to Kong (or when adding a blank line to the rockspec).
resty -e "setmetatable(_G,nil); assert(loadfile('kong-2.1.3-0.rockspec'))(); table.sort(dependencies); for _,d in ipairs(dependencies) do print(d) end"

Output looks like:
inspect == 3.1.1
kong-lapis == <IP_ADDRESS>
kong-plugin-acme ~> 0.2
...

Could we hash that 👆instead?

We could only hash the rockspec dependencies, but not when adding a new file to Kong (or when adding a blank line to the rockspec).
resty -e "setmetatable(_G,nil); assert(loadfile('kong-2.1.3-0.rockspec'))(); table.sort(dependencies); for _,d in ipairs(dependencies) do print(d) end"

Output looks like:
inspect == 3.1.1
kong-lapis == <IP_ADDRESS>
kong-plugin-acme ~> 0.2
...

Could we hash that 👆instead?

Or just cat kong-2.1.4-0.rockspec | awk '/dependencies/,/}/ { print }'

Something like:
DEPS_HASH=$({ cat .ci/setup_env.sh .travis.yml .requirements Makefile; cat kong-*.rockspec | awk '/dependencies/,/}/'; } | md5sum | awk '{ print $1 }')

Something like:
DEPS_HASH=$({ cat .ci/setup_env.sh .travis.yml .requirements Makefile; cat kong-*.rockspec | awk '/dependencies/,/}/'; } | md5sum | awk '{ print $1 }')

I updated the PR with this change.

I'll close this, let's just merge this to next:
https://github.com/Kong/kong/pull/6383


Query with = on subject_associated_project fails

Description
Going by the usage documentation  'subject_associated_project = "TCGA-OV" seems like a legitimate query. However, it gives an error.
This field turns out to be an array of strings (though the schema does not indicate this)
    "subject_associated_project": [
       "TCGA-OV",
        "CPTAC-TCGA",
        "CPTAC-TCGA",
        "tcga_ov"
    ]

Arrays of other objects work fine when queried by Q() - so this seems like a bug.
To Reproduce
q1 = Q('subject_associated_project = "TCGA-OV"')
r = q1.run()
print(r)

returns
ERROR:root:
            Http Status: 500
            Error Message: No matching signature for operator = for argument types: ARRAY<STRING>, STRING. Supported signature: ANY = ANY at [1:72]

Total execution time: 880 ms

Expected behavior
The query would return any subject where any element of subject_associated_project matched the provided value.

Hi @ianfore if you look at the warning under the unique_terms() section, just above the Q() section here, it lists several terms that are array type and you cannot use these terms to query, with "subject_associated_project" being one of the terms listed.

Thanks for the note Elijah. That certainly provides the warning - but I would come back to the basic point that one can query on arrays of other kinds of objects, and that there is user benefit to be able to do so for this subject_associated_project. I'll try and provide examples by way of illustration.
In the meantime there are a couple of issues with the 'warning'. I started by detailing them here, but it turned out to be better to create a separate issue.

It looks like there are just some issues with that particular fields data type in BigQuery. Any other list type object is a repeated record, and automatically unnested within the Q query translator. Since subject_associated_project is a repeated string type, that needs to be queried slightly differently. For instance the query below is what you are hoping to achieve if you want any patients that are associated with the TCGA-OV project:
SELECT * FROM gdc-bq-sample.integration.all_v2 where 'TCGA-OV' in unnest(subject_associated_project)

Indeed. SQL to the rescue yet again.
This is another case which adds complexity to what the Q query translator has to do. As more and more is done - is this just writing a query language. See cda-python/issues/15.

This has been fixed in release 3 (coming out end of June)


Examples links are returning an Error

hi, the links under examples are returning an error, or because these are for version 2 and does not have any connection with the current one?
error : Call to undefined function html5qp()

Hi,
The examples still need to be upgraded to the latest version.
Sorry for the convenience.
For now, you can check the demo integration packages, and ask any question.

Symfony: https://github.com/jaxon-php/jaxon-demo-symfony
Laravel: https://github.com/jaxon-php/jaxon-demo-laravel
CakePHP: https://github.com/jaxon-php/jaxon-demo-cakephp
Slim: https://github.com/jaxon-php/jaxon-demo-slim
Yii: https://github.com/jaxon-php/jaxon-demo-yii
CodeIgniter: https://github.com/jaxon-php/jaxon-demo-codeigniter

This is still an issue.  Can you fix?  I'm coming from Xajax.

Hi,
I think I'll simply deprecate these examples.
Jaxon has been forked from Xajax for too long now, and I do not recommend using it the Xajax way anymore.
So, you'll need an extra effort to upgrade to Jaxon. That means at least:

Have a single entry point in your application to process all Jaxon requests: https://www.jaxon-php.org/docs/v4x/requests/processing.html.
Register namespaces, instead of functions or classes: https://www.jaxon-php.org/docs/v4x/registrations/namespaces.html. Make sure your namespaces are registered with autoloading.
Bootstrap the Jaxon library from a config file: https://www.jaxon-php.org/docs/v4x/features/bootstrap.html.

Optionally, you can check the Application features and Annotations section in the documentation https://www.jaxon-php.org/docs/v4x.html to see more features.
There are also some real world open source applications that are using Jaxon.
A Supervisor dashboard
https://github.com/lagdo/jaxon-supervisor
The Jaxon classes: https://github.com/lagdo/jaxon-supervisor/tree/master/ajax
The Jaxon config: https://github.com/lagdo/jaxon-supervisor/blob/master/config/supervisor.php
A database admin
Forked from Adminer, and still being developed
https://github.com/lagdo/jaxon-dbadmin
The Jaxon classes: https://github.com/lagdo/jaxon-dbadmin/tree/main/app
The Jaxon config: https://github.com/lagdo/jaxon-dbadmin/blob/main/config/config.php
Tontine (african) management
Also a Laravel application
https://github.com/lagdo/tontine
The Jaxon classes: https://github.com/lagdo/tontine/tree/main/app/Ajax
The Jaxon config: https://github.com/lagdo/tontine/blob/main/config/jaxon.php

Hi,
The examples are fixed now.
Please keep in mind that they were designed to work with the version 2.x of the library. Today the version 5.0 is being prepared.
I've added a warning message.


Add support for SNS create and list subscriptions

Hey there, happy to merge this if you make the changes from the review and fix merge issues.

Yep, I'll tackle it today.

Closing for now. Happy to merge if we can rebase and make reviewed changes.


🐞 Default animations throw error on navigation in Svelte

Description
If we add one of the default animations anywhere in the page1, and then navigate to page2, then client will throw error:
Uncaught TypeError: Cannot read properties of undefined (reading 'count')
    at o (index.bundle.mjs:1:55431)
    at _a.delete (index.bundle.mjs:1:55804)
    at MutationObserver.<anonymous> (index.bundle.mjs:1:53414)

This is not the case with the custom animations created in masterCSS config.
Reproduction

git clone https://github.com/oskar-gmerek/mastercss-pr-svelte-bug
git checkout animation-bug
bun install (enjoy speed of bun) & bun run dev OR bun install & bun run build & bun run preview
Go to localhost in browser and open developers tools console
Click any link to navigate to other page and look at browser console
Remove animation @fade|1s|infinite from header and check again - no errors will appear in the console

System Informations
Browser: Latest Brave Browser
OS: macOS 14.0
Node: 18
Package manager: Bun 1.0.0

Forget to mention that, in addition to error in console there is also broken styles (need to refresh page)


Mouse cursor only hidden when placed at the center of the video player

When playing a video, the cursor remains visible when being placed on the left or the right side of the video player, it is hidden when being place in the center of the video player. These positions seem to be related to the div.shake-rewind-container and div.shaka-fast-forward-container seen in the (edited) screenshot (the green area is the one where the cursor is hidden).

If the play button is shown, the cursor will not be hidden with the rest of the UI no matter where it is on the screen.

@joeyparrish
After commenting out the cursor tracking everything works fine. So you're right.

@FiberOnePL what lines did you comment out?

Would you please consider sending a PR?

The cursor is also not hidden along with the rest of the UI if it's placed on other elements such as the center play button, if enabled, or the progress bar area.

When the cursor is placed over the big play button, the DevTools debugger does break if the breakpoint is set to the line that sets the cursor style to 'none' , but the cursor does not disappear.

@joeyparrish
After commenting out the cursor tracking everything works fine. So you're right.

Can you create a PR with your change? Thanks!

@joeyparrish @avelad
I hid the elements that overlap in css, this is only a temporary solution but not a permanent solution.

@avelad #7458 doesn't resolve the issue, the cursor is still not hidden if it's placed over other UI elements such as the center play button or the video controls.

Recursively changing the cursor feels hacky.  Shouldn't elements below the container inherit the cursor style instead?

Recursively changing the cursor feels hacky. Shouldn't elements below the container inherit the cursor style instead?

cursor styles with more specificity (that take precedence) are defined in CSS for many of those elements

in the case of the big play button, the user agent stylesheet overrides its cursor style

Hrm... then maybe we should adjust those as well.  Maybe some of them are not needed?


about openpose model

how can i choose the model of openpose during training？
the default is mobilenet_thin！
i wanna to compare accuracy using different models

In the config file, see this paragraph:
openpose:
      model: mobilenet_thin
      img_size: 656x368
      # model: cmu
      # img_size: 432x368

You can comment out line 1&2, and uncomment line 3&4.
Currently, there are only these 2 models.

hello @felixchenfy such a great project. i wanna change openpose model to openpose-darknet. may i  get some advise??

hi,
for better opse estimation
Just change model = cmu


Chapter 6 typos and sample program bugs

Fixed some typos and sample program bugs in Ch 6.
In 6.4-sequence-processing-with-convnets.ipynb, the chart of 'temperature forecasting problem' was showing imdb chart, because of the cnn_history bug.

Thanks!


Use pnpm for examples??

@orta I was about to make a PR with that, but then I wanted to make sure first. Is there any specific reason why you didn't use pnpm for examples? I mean you could include the examples in the workspace and it'll be much better right? Now since you have to use yarn, you have to rm node_modules and install dependencies again in the example folders if you want to check an updated state.
If you don't want to install them together with the packages, or you don't want them with build and bootstrap scripts, you could technically filter them out in pnpm right?

I didn't want their dependencies filling up the main repo, as they're pretty optional, there's lot of deps, they could clash and will get out of date pretty quickly.
I think we could have a second package.json in the examples dir which has all of them? though theat doesn't solve the linking problem realistically

Yea makes sense, but we can technically use pnpm i --filter=!examples to install deps to the packages only. pnpm i --filter=!packages --frozen-lockfile to install deps for examples. Then the lock file is clear & also since it's pnpm, the repeated deps in examples are not gonna be installed again and again, right?
We just have to add them as scripts to package.json and make sure other ppl know about it in CONTRIBUTING.md.

I've switched Docusaurus to use link:/ in the package.json - this. means you do not need to yarn upgrade to get the latest build

Oo sweet. I didn't know link: exists and have been manually linking the examples with packages.


nebra does not work.

[x] I understand that this is only to report software bugs and not for customer support. Please use nebra.io/helium-support.

Describe the bug
Don't worry if your device hasn't been testifying for 3 months
To Reproduce
Steps to reproduce the behavior:

Send an email to Support
open a ticket
search for solutions to the problem on the forums
nebra doesn't answer.
nebra will sell you a new emmc key.
the miner will not work again.
now it's 1. go back to the matter.

Screenshots

This is not a support forum. Please contact<EMAIL_ADDRESS>


Instructions embeddings for RLBench Tasks

Hi, Thanks for the great work!
I wanted to generate custom instruction embeddings for the RL bench tasks, I see that you have provided a script for doing so in calvin that uses the dataset annotations, Can you please share anything similar for RLBench?

Hi, thanks for your interest in our work!
It seems useful to add such a script indeed. Until then:

You can find the language inside each task class, for example here https://github.com/MohitShridhar/RLBench/blob/peract/rlbench/tasks/basketball_in_hoop.py.

We had used this script in the past https://github.com/zhouxian/act3d-chained-diffuser/blob/main/data_preprocessing/preprocess_instructions.py.

Hope that helps!

That certainly helps, Thanks! Can you please confirm if these annotations are the same ones used while testing the 3d_diffuser_actor
https://github.com/zhouxian/act3d-chained-diffuser/blob/main/data_preprocessing/annotations.json

Hi,
I believe that annotations.json does not include the 18 PerAct tasks, which will instead be loaded from RLBench library.  We will need to test the script before updating to the github repo in few days.  If you have run the script and find any problem, please let us know.  That would be very helpful!

Hi,
We can confirm that the script works out-of-box.  We tried the following command:
> python data_preprocessing/preprocess_instructions.py  --tasks place_cups close_jar insert_onto_square_peg light_bulb_in meat_off_grill open_drawer place_shape_in_shape_sorter place_wine_at_rack_location push_buttons put_groceries_in_cupboard put_item_in_drawer put_money_in_safe reach_and_drag slide_block_to_color_target stack_blocks stack_cups sweep_to_dustpan_of_size turn_tap --output instructions.pkl

Notably, the description of open_drawer in RLBench library of PerAct and Hiveformer  is slightly different.  The embeddings we provided are obtained with Hiveformer's RLBench, since during then, we didn't notice the difference between RLBench libraries.

Hi @twke18 Thanks for confirming the script. I think I am good to go now, I am closing the issue.

“> python data_preprocessing/preprocess_instructions.py  --tasks place_cups close_jar insert_onto_square_peg light_bulb_in meat_off_grill open_drawer place_shape_in_shape_sorter place_wine_at_rack_location push_buttons put_groceries_in_cupboard put_item_in_drawer put_money_in_safe reach_and_drag slide_block_to_color_target stack_blocks stack_cups sweep_to_dustpan_of_size turn_tap --output instructions.pkl”
HI, thanks for your great work!
I've noticed that the instruction embedding generated by the script above is not quite consistent with the official one. Is there any issue with that? Eg. task ="push_buttons" and variation=0,

And eg. The task "push_buttons" has a total of 48 variations, but the instruction.pkl only contains 18.


Possible to work with MS Sculpt Ergonomic Mouse

Right now it doesn't seem to work with MS Sculpt Ergonomic Mouse, only with Sculpt Comfort. Even the logging app doesn't show anything when running. Would it be possible to extend the app to Ergo Mouse as well?

Open Apple Menu -> About This Mac -> [More Info] -> System Report.
Find information related to your mouse and send me Product/Vendor ID.

Product ID produktu: 0x07a5
Vendor ID: 0x045e  (Microsoft Corporation)
It's the ID of the USB Transceiver 9.0 included with the mouse. I couldn't find any info for the mouse itself.
Thanks!

Check the updated debug tool
https://www.dropbox.com/s/r1ibabs11x7o3y7/Sculpt Comfort Debug Tool.app.zip?dl=0

OK so the blue button sends code 231.

Sorry for the long silence. I'm planning to make the app more configurable. That basically means you will be able to specify any arbitrary device identifiers, button codes, and maybe even manually assign certain actions to buttons (e.g. to get 'natural' swipe direction).
I'll start working on the update approximately in 1-2 weeks.

That's very cool! I'd be happy to pay a little money for that.

Sorry for the delay again. I've released a new version, now you can configure device id and button codes.

Awesome! Where can I download the binary? I'm not very apt with Xcode. The
built product (.app) runs and then disappears form dock.
2015-11-11 22:27 GMT+01:00 Maxim Naumov<EMAIL_ADDRESS>
Sorry for the delay again. I've released a new version, now you can
configure device id and button codes.
—
Reply to this email directly or view it on GitHub
https://github.com/ultimate-deej/Sculpt-Comfort-Mission-Control/issues/4#issuecomment-155915305
.

It works great! Click blue button for Expose and long-click for App Expose works great! You've jsut made this mouse much more usable for Mac users :)


Merge dotnet_build_support branch to develop

Issue #, if available:
Description of changes:
Checklist:

[ ] Write Design Document (Do I need to write a design document?)
[ ] Write unit tests
[ ] Write/update functional tests
[ ] Write/update integration tests
[ ] make pr passes
[ ] Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Verified that the only changes on this PR are related to dotnet.

restarting build, since aws-lambda-builders 0.3.0 is released and containers are updated.

Integration tests are good to go, squashing and merging onto develop.


System for sharing libraries

This is a great tool, and I was thinking about extending it with paper archives beyond arXiv. But if everyone set up their own version of arxiv-sanity, the benefit of having access to other users' libraries for the recommendation system disappears.
Would you consider a system for exporting the library database? I guess something as simple as providing a regular static dump of DOI sets corresponding to anonymized libraries would be a good start. Then every admin of an arxiv-sanity setup (or other tools for that matter) can benefit from the user base of others.

The entire database is stored inside as.db, so it is easy to ship around different arxiv sanity forks.


L298 motor board receives start signal on script start, cannot stop motor

I've asked around and searched high and low and can't find any answer to my issue; the only piece in here which may be causing the problem is Raspi-IO. I have a Raspberry Pi Zero W, a L298N Board for running a motor, and a simple DC motor. I've simplified my code to cause the issue:
const raspi = require('raspi-io').RaspiIO
const five = require('johnny-five')
const board = new five.Board({
  io: new raspi()
})

board.on('ready', function () {
  const motor = new five.Motor(['GPIO23', 'GPIO24'])
})

Library versions:
Raspbian Stretch
NodeJS: v10.15.0
"johnny-five": "^1.4.0"
"raspi-io": "^11.0.0"

And the wiring layout is as follows:

The line new five.Motor() causes the motor to start spinning, and it won't stop even if I kill the script. I have swapped out cables, changed the GPIO pins used to three different places, and tried the second output on the L298 board, so I know it's not a hardware issue there.
I guess that means that the PWM pin (GPIO23 in this example) is set to HIGH, but I'm not exactly sure as I'm new to this. I apologize for being somewhat vague, this is my first foray into this. Could it be that the new version of the library (v11) has some problem here? I feel like I had this working with an older version of raspi-io. Your help is greatly appreciated.

For your motor initialization try:
const motor = new five.Motor({
  pins: ['GPIO23', 'GPIO24'],
  invertPWM: true
})

This note explains what that does and why it's necessary sometimes.

Oh my god it worked. Thank you!


[7.x.x] Bump Dependencies #4960523851

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

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Duplicate of https://github.com/wso2/product-is/pull/15868


Support X-RateLimit- headers for throttling.

Description:
Support throttling via those 3 headers after every call:

X-RateLimit-Limit   # maximum requests limit configured for the API endpoint
X-RateLimit-Remaining  # remaining requests for the API endpoint until next counter reset
X-RateLimit-Reset  # remaining seconds until next counter reset (same as Retry-After)

Steps To Reproduce
Affected Product Version:
3.x
OS, DB, other environment details and versions:
any
Steps to reproduce:
.1 I invoke a throttled API
Current Result
I get no throttling headers
Expected Result
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 99
X-RateLimit-Reset: 58          # seconds to counter reset

Related Issues:
https://github.com/wso2/product-apim/issues/1654
Notes
The spec is implemented by Kong, 3Scale and Envoy Proxy; while Azure API Gateway can be configured to implement this behavior.

Hi all,
we also are going to implement this kind of support for our apim installations.
Is it reasonable to try to extend the communication between gateway and traffic manager in order to include these information in the messages from traffic to gateway?
Thanks,
Matteo.

For APIM 3.0.0 we have added the Retry-After header. (PR https://github.com/wso2/carbon-apimgt/pull/7059)

@tharindu1st is that closed as wontfix?
Currently this model is described here https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-ratelimit-headers and supported by

envoyproxy
kong
3scale
azure api gateway


How should an SQLite database migration file look like?

The documentation is very lacking so it's not clear at all.
Firstly, in the def migrate(migrator, database, fake=False, **kwargs): method, migrator is of type peewee_migrate.migrator.Migrator, so I have to use migrator.migrator to access the peewee_migrate.migrator.SqliteMigrator so it doesn't crashes. Is this the intended behavior?
Secondly, I'm using migrator.migrator.drop_not_null('user', 'username') and nothing is happening. Is drop_not_null supported or not?

I successfully managed to get it working using:
from peewee import Model
from peewee_migrate import Migrator, Router
from playhouse.sqlite_ext import SqliteExtDatabase

database = SqliteExtDatabase('file_convert.sqlite')

database.connect()

migrator = Migrator(database)

router = Router(database)

class BaseModel(Model):
    class Meta:
        database = database

class User(BaseModel):
    ...

migrator.create_table(User) # The most important part

router.migrator = migrator
router.run()

Take a look here for a complete, working example.


Incident Management Training: Create Scenario

Description:
Develop a realistic incident response scenario aimed at training Incident Commanders (ICs) and Operation Leads (OLs). This exercise should simulate a critical incident and guide participants through the decision-making and coordination processes required for effective response and resolution.

general guideline https://docs.google.com/document/d/1acLtfA7bvVdl_4nTj6QnTu3zo23KDse8GlMGjSQwRIk/edit#heading=h.avzuldutzw76 and more specifically for on-call https://cds-snc.github.io/guide-product-teams-equipes-produits/product_support_guidance/


Merge a few crash tickets fix and static linking fix

Fixed a few nil pointer issues, 2) Fix static linking issue

Squash and merge


requirements Conflict

Describe the bug

A clear and concise description of what the bug is.

using pip install deepke
get error from console: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 2.0.0 requires tqdm>=4.62.1, but you have tqdm 4.60.0 which is incompatible.
when I upgrade tqdm to 4.64.0 ,another error occured: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
deepke 2.0.5 requires tqdm==4.60.0, but you have tqdm 4.64.0 which is incompatible.
how to solve this?
Environment (please complete the following information):

OS: [e.g. mac / window]
Python Version [e.g. 3.6]

windows 10
python 3.8.8
Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

以下几个方面检查并解决：
1、是否创建了新的虚拟环境，datasets包是从哪来的，因为3,.4.0的transformers并不依赖于datasets
2、卸载之前安装的依赖包，修改setup.py中的tqdm==4.64.0，再通过python setup.py install 的方式进行安装依赖包

Check as followings:

Whether a new virtual environment is created, and where does the datasets package come from, because 3,.4.0 transformers does not rely on datasets
Uninstall the previously installed deepke package, modify tqdm==4.64.0 in setup.py, and then use 'python setup.py install' to install dependent packages


HighlightShadowTintFilter does not work

I use the HighlightAndShadowTint filter and change value of the shadowTintIntensity property, but nothing happen.
`
override func loadView() {
    super.loadView()

    picture = PictureInput(image: UIImage(named: "WID-small.jpg")!)
    filter = HighlightAndShadowTint()
    picture --> filter --> renderView
    picture.processImage()
}

@IBAction func updateValue(sender: AnyObject) {
    filter.shadowTintIntensity = shadowIntensitySlider.value
    picture.processImage()

    print(filter.shadowTintIntensity)
}

`

It looks like there were an incorrect number of color components in the shader on the iOS side. This should be fixed in the latest commit.

Thank you. I found that the other properties do not work except the highlightTintIntensity property.

Is this true even with the code I committed today?

Good! I pull the newest code and it works.
HighlightShadowTint_GLES.fsh
uniform highp vec3 shadowTintColor; uniform highp vec3 highlightTintColor;
Now the type of shadowTintColor property is vec3. Can I change the alpha value?

Not in the current code, which uses just the RGB components for performance. If it's important enough that this be done, the shader and matching filter could be modified to use the full four color components, but I've not done that by default in color inputs to make things faster in the majority of cases.


Data Type Issue

I have built the data with 10-minute frequency.
And there is no problem when training the data.
However, when trading the data with A2C model, one error occurs.
It should not have a problem in trading when training is good.
But I don't know how to fix the problem here.

Now there is not problem in data format.

One more point is that the problem occurs when using the data from 2020-03-01 to 2020-03-31. There is no error when using this period of data to train the model.

I am having the same problem

!

Here is my implementation of env_kwargs!


fix: [Prod]Git account breaking whenever opening an existing account git repo.

Description
Exposed an API to fetch disabled git providers by ID
Fixes # https://dev.azure.com/DevtronLabs/Devtron/_workitems/edit/6200
How Has This Been Tested?

[ ] Test case A

Checklist:

[x] The title of the PR states what changed and the related issues number (used for the release note).
[ ] Does this PR requires documentation updates?
[ ] I've updated documentation as required by this PR.
[x] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have tested it for all user roles.
[ ] I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?

Not required anymore


Lowest common ancestor through binary lifting in cpp

I wish to contribute. Kindly assign me this.

I would like to contribute Python implementation of the classic "Merge Sort" algorithm. Kindly assign me this.

I would like to contribute Java implementation of "Lowest common ancestor through binary lifting ". Assign this task to me


fix: Update README.md with clear steps to run SDK unit tests

fix https://github.com/edgexfoundry-holding/app-functions-sdk-python/issues/3
Update README.md for a more clear steps to run unit tests on SDK.
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/master/.github/CONTRIBUTING.md.
What is the current behavior?

Issue Number:
https://github.com/edgexfoundry-holding/app-functions-sdk-python/issues/3
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

New Imports
Are there any new imports or modules? If so, what are they used for and why?
Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

It changed. But there are more errors now ...
Please find the log below.
LOG.txt

It changed. But there are more errors now ...
Please find the log below.
LOG.txt

@ProttayMondalAdhikari-eaton
By checking your log, I realized that you are running the sdk unit tests with python 3.12 and those unit tests failures result from a breaking change of pkg_resources deprecation in python 3.12.
As the app-functions-sdk-python was implemented based on python 3.10, could you please running the unit tests in a python 3.10 venv?
I also submit a PR at https://github.com/edgexfoundry-holding/app-functions-sdk-python/pull/5 to stick the sdk with python 3.10 to avoid confusion.


AI chip can only be created with two stacks of one capacitor, rather that one stack of two

Title
This works:

This does not:

i think it's a dupe issue

duplicate i already reported

Dupe issue


How into Add AntD plugin to this project setup

Note: How into Add AntD plugin to reactGo project
Description

Type:  Question
Related Issue: AntD Plugin

Bug
Expected Behavior
Actual Behavior
Steps to Reproduce

Enhancement
Reason to enhance/problem with existing solution
Suggested enhancement
Pros
Cons

Question
How to?

You can see an example implementation of babel-plugin-import and less-loader in my fork of reactGo. This is not a problem.

It help lot and one more you in this STF Refresh project use config packge by this your getting config.get('db') etc where is that config file please help on this please

It's an alternative to drawing from environment variables for config info like ports, secrets etc. Docs
There's info on the repo's wiki, and you can review the package docs. Generally speaking, though, you should just reference the repo for the antd/less implementation and then work off reactGo as your boilerplate.

I'm closing since its not a issue with this project. We can still continue speaking about it even if the issue is closed.
Moreover, in case you have a specific issue with adding AntD plugin, please ask a more specific question so that we'll be able to better understand what you're struggling with.

@RcKeller
Even when using exactly your webpack configuration, the style is not applied. I saw that you manually imported all the style, but not even that works for us.
babel-loader works partially, since in the browser are only the components loaded that we use. However, only the html is inserted, the style is missing.
Does someone have an idea why the style is not shown?
We tried with less, without less, with 'style: true' in the babel-loader, different include/exclude settings, with no style setting (in the babel-loader, to not make it modularily) at all, with webpack 4, but the CSS of external libraries simply does not get loaded in ReactGo.
Same issue with material UI.


unpack() in Lua scripts doesn't work

EVAL "unpack({'foo', 'bar'})" 0

causes an error. This is probably because unpack() was moved to table.unpack() in Lua 5.2, and LuaJ 3.x implements Lua 5.2. But Redis uses Lua 5.1.

Fixed in v 1.1.4


fix(coverage): inject babel helpers for transform

Merge activity

Oct 23, 8:34 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


Failed e2e tests don't appear to be stored (now with USE_GO_RUNNER=true)

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
I run test suite with the command:
sonobuoy run --plugin-env=e2e.E2E_USE_GO_RUNNER=true --plugin-env=e2e.E2E_EXTRA_ARGS="--allowed-not-ready-nodes=1"
Sonobuoy reports the test results as failed, but there are no test results in the archive
201912101700_sonobuoy_052565c6-f6d5-4018-a9ca-572626bb1e2d.tar.gz
$ sonobuoy e2e<PHONE_NUMBER>00_sonobuoy_052565c6-f6d5-4018-a9ca-572626bb1e2d.tar.gz
ERRO[0000] could not get tests from archive: failed to find results file "plugins/e2e/results/global/junit_01.xml" in archive
$ cat ct/plugins/e2e/sonobuoy_results.yaml
name: e2e
status: failed
items:
- name: 'pods is forbidden: User "system:serviceaccount:sonobuoy:sonobuoy-serviceaccount"
    cannot list resource "pods" in API group "" in the namespace "sonobuoy"'
  status: failed
  meta:
    file: errors/global/error.json
  details:
    error: 'pods is forbidden: User "system:serviceaccount:sonobuoy:sonobuoy-serviceaccount"
      cannot list resource "pods" in API group "" in the namespace "sonobuoy"'
$ kubectl auth can-i list pods --as system:serviceaccount:sonobuoy:sonobuoy-serviceaccount
yes
$ sonobuoy version --kubeconfig dvi-5231-ct-1575995653-admin-config.yaml
Sonobuoy Version: v0.16.5
MinimumKubeVersion: 1.14.0
MaximumKubeVersion: 1.16.99
GitSHA: 99d45a1492050fcb58585568aeeae9c3e4a392ba
API Version:  v1.16.3

What did you expect to happen:
To be able to inspect and list the failures that have occurred.
Anything else you would like to add:
(found this after I submitted the issue):
sonobuoy run with default settings (no --plugin-env=e2e.E2E_USE_GO_RUNNER=true option) on the same cluster passes the test.
Environment:

Sonobuoy version: v0.16.5
Kubernetes version: (use kubectl version): v1.16.3
Kubernetes installer & version: custom
Cloud provider or hardware configuration: AWS t2.xlarge
OS (e.g. from /etc/os-release): Ubuntu 18.04
Sonobuoy tarball (which contains * below) https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.16.5/sonobuoy_0.16.5_linux_amd64.tar.gz

Hi @dmitry-irtegov , sorry you're running into problems.
A few things to note after just looking at this for a minute or two:

the error does seem surprising since you can open the tarball and see that we could get the podlogs for the e2e run and actually ran many tests. It clearly had permissions to do a great many things to get that far.
Slightly confused about the kubeconfig settings; in the issue description you specify kubeconfig when checking the version (sonobuoy version --kubeconfig dvi-5231-ct-1575995653-admin-config.yaml) but do not specify it when running the kubectl auth can-i ... command. I just want to make sure that you're being consistent using the same kubeconfig for running the tests as for checking the auth and such.
The error came from the aggregator itself failing to monitor the plugin; not the plugin reporting the error. You can tell that by the aggregator log line: {"level":"info","msg":"received internal aggregator result","node":"global","plugin_name":"e2e","time":"2019-12-10T18:49:30Z"} specifying it was an internal aggregator result.
It is also very strange that the queries didn't really run; again the aggregator itself seemed unable to query anything about the cluster. You can tell this by the fact that the meta/config.json shows you're querying lots of resources but there are no logs for querying those, no data from the results (e.g. all the yaml describing the pods and other resources in the cluster), and the meta/query-times.json file is also very bare.

After all those thoughts; I'd have a few follow up questions for you:

Has this been reproducible?
Check the cluster to see if all the containers are still around. It seems odd that it was complaining about failing to list pods but since the plugins ran you clearly could create pods and I'm guessing the cleanup routine also was OK so you could delete pods.

Without much else to go on, I'm left wondering if the auth system can ever give false negatives; did some temporary error give rise to a situation where k8s couldn't determine if the acct had access to a resource and so it defaulted to denying the request.
@zubron Any other ideas?

Also, a note for this issue:

It would have been useful if that error message gave some extra debug information about when that was triggered.
If it is possible that a few auth responses can be misleading, then we need to enable the queries to retry a few times which is very doable.

Also, FYI, as of Sonobuoy 0.16.1 (I think thats the right version) we default to using the E2E_USE_GO_RUNNER if you're using the CLI to do sonobuoy run, so you didnt have to specify that manually.

I was also just looking at the logs and noticed that the e2e pod log file ends abruptly, and close to the end of the file you can see the following error (beginning line 12851):
STEP: Destroying namespace "custom-resource-definition-4778" for this suite.
Dec 10 18:49:24.252: INFO: Error while waiting for namespace to be terminated: Get https://<IP_ADDRESS>:443/api/v1/namespaces/custom-resource-definition-4778: dial tcp <IP_ADDRESS>:443: connect: connection refused
Dec 10 18:49:30.888: INFO: Error while waiting for namespace to be terminated: namespaces "custom-resource-definition-4778" is forbidden: User "system:serviceaccount:sonobuoy:sonobuoy-serviceaccount" cannot get resource "namespaces" in API group "" in the namespace "custom-resource-definition-4778"
Dec 10 18:49:36.254: INFO: Waiting up to 30s for server preferred namespaced resources to be successfully discovered
Dec 10 18:49:36.335: INFO: namespace custom-resource-definition-4778 deletion completed in 14.151319489s

It looks like there was a temporary error in attempting to delete the namespace created as part of the test. It seems like it failed to connect to the API server, encountered an auth error but then retried and succeeded.

Good find! That does seem to verify the idea that the auth errors can be transient which I am pretty sure our code does not assume.
Going to consider this ticket scoped to adding that retry logic then. SGTY?

Hi @johnSchnake

slightly confused about the kubeconfig settings; in the issue description you specify kubeconfig when checking the version (sonobuoy version --kubeconfig dvi-5231-ct-1575995653-admin-config.yaml) but do not specify it when running the kubectl auth can-i ... command.

Other commands (including sonobuoy run) were using KUBECONFIG environment variable, which sonobuoy version does not seem to understand.  I'm pretty sure it was the same config, because at the moment I had no other live clusters with sonobuoy.

Has this been reproducible?
On our custom installer, yes.  I hit this on a test cluster with logging/monitoring, then I created a bare minimum cluster and hit it again.  Not tried on standard installers like kubeadm though.

May be we had some issue on cluster or infrastructure side, like OOMkilled critical pods.  Need to check this, transient API failures do not look good.

Check the cluster to see if all the containers are still around. It seems odd that it was complaining about failing to list pods but since the plugins ran you clearly could create pods and I'm guessing the cleanup routine also was OK so you could delete pods.

When I checked the cluster, sonobuoy container was on, but test containers were deleted.  There was a namespace custom-resource-definition-4778 with some secret object.  Later, I had to clean up the cluster and stop it, but I can try to reproduce the condition again,

Another 👍 for this; I just got notified of another user hitting a problem in the same way but with a different error text from the API server:
{"error":"the server was unable to return a response in the time allotted, but may still be processing the request (get pods)"}


[AY23/24 S1 Final] About binding in generic methods

In question 8, the answer given in the video was in the image below. Why do we only have to bind <C>, but not A and B (i.e. why don't we do something like <A,B,C> C apply A(...) { })?

A and B already defined in the class, so dont have to redefine it for the method. Also B is not relevant here.

A and B already defined in the class, so dont have to redefine it for the method. Also B is not relevant here.

So that means generic types defined in the class's name need not to be declared again right?

A and B already defined in the class, so dont have to redefine it for the method. Also B is not relevant here.

So that means generic types defined in the class's name need not to be declared again right?

ye correct

yes, so before you define classes or methods u can to define generics, at the top of IfElse it goes:
class IfElse<T,R> {...}
here T and R is defined, so in a method it does not have to be redefined, however if you want to introduce new generics, you have to define them at the begining on each method

Thank you for all your responses.


uboot fails to load kernel on raspi 4B

I cant seem to get the PI to boot with A/B dual partition + rauc.  I've followed this tutorial here https://www.konsulko.com/getting-started-with-rauc-on-raspberry-pi-2/, but no matter what I do I always see the bellow error. Even setting kernel=uImage in config.txt and setting KERNEL_IMAGETYPE = "uImage" yields the same results.

Hi @EasyIP2023,
Which Yocto/OE release and respectively branch of meta-rauc-community are you using?
Keep in mind that the project has evolved since I wrote the article and numerous community contributions have been merged in master and honestly due to lack of enough time for testing they may resulted in certain issues.
Thanks,
Leon

@leon-anavi no worries. Thanks for writing that! I was on Yocto/OE (Dunfell 3.1.8) when I was first testing later switched to (Dunfell 3.1.10). Also on the latest commit of meta-rauc-community branch dunfell. Will first try to switch to branch master. If that doesn't work revert to a later meta-rauc-community commit maybe one from before Sept 2020.

Hi @EasyIP2023,
Sounds as a good plan. If you are using Yocto/OE release Dunfell 3.1.8 I would recommend using the dunfell branch. There were some recent syntax changes in master which are not compatible with dunfell, for example GitHub pull requests https://github.com/rauc/meta-rauc-community/pull/20 and https://github.com/rauc/meta-rauc-community/pull/19.
Please provide feedback of your finding as it will be useful for the community and fixing these issues.
Thanks,
Leon

@leon-anavi Closing issue as after some investigation the problem isn't with the meta-rauc-community/meta-rauc-raspberrypi layer, but with u-boot support for the raspberrypi 4B. Seems like it doesn't want to work with the latest raspberrypi bootloader/firmwar.
U-Boot 2021.10-rc3-dirty (Sep 05 2021 - 15:23:39 -0500)

DRAM:  3.9 GiB
RPI 4 Model B (0xc03112)
mbox: Timeout waiting for response
bcm2835: Could not set module 3 power state
initcall sequence 000000003b3d28f8 failed at call<PHONE_NUMBER>084344 (err=-5)

Here's a link to something similar years ago. Implemented by agherzan.

https://www.raspberrypi.org/forums/viewtopic.php?t=244785

I decided to try the compile u-boot from source and try it on the latest raspberry pi stock image. Ran into similar results. Which leads me to believe. u-boot isn't configured to work with the latest raspberrypi bootloader/firmware. At least from what I am seeing.

https://andrei.gherzan.ro/linux/uboot-on-rpi/

Thank you for the feedback and the provided details.
Best regards, Leon


Encryption

I see that encryption is on your road map -- and it's a feature I desperately want in a library like this.
I'm tempted to try and implement it myself in a fork, but I'd likely use something like Inferno. How are you planning to add encryption?
I was looking at the code and I figured it would be fairly easy to register some packet handlers for passing public keys between client/server and then encrypting/decrypting just before serialization/deserialization.

NETCore.Encrypt looks like a solid library which will be suitable. Let's assume for now that if encryption is enabled then every packet going through the library will be encrypted.
There are various benefits to using interfaces. We can use dependency injection to register our encryption handlers and hopefully we can support multiple encryption types.
For example, we might have an interface such as IPacketEncryptor.
public interface IPacketEncryptor
{
   byte[] Encrypt(NetworkerPacketBase packetBase);
}

From this, we can create an MD5PacketEncryptor class and an AESPacketEncryptor class. Then inside the NetworkerServerBuilder class we can add new methods such as UseMd5Encryption() and UseAesEncryption(). These methods will register the encryption implementation with the IOC container.
We can create a factory class for providing the packet encryptor and decryptor.
public interface IPacketEncryption
{
  IPacketEncryptor GetEncryptor();
  IPacketDecryptor GetDecryptor();
  byte[] GenerateKey();
  void SetKey(byte[] key);
}

I think the best place to deserialize the packets will be before they are passed to the packet handlers, such as in NetworkerServerBase.HandlePacket method. This means the IPacketEncryption needs to be injected into the NetworkerServerBase class so we can call them.
IPacketEncryption will probably have to be injected into TcpConnection and UdpConnection as that is also where packets are sent. Each time we inject the IPacketEncryption the dependency injection library will create a new instance, so we can set the key for each connection.
As far as UDP goes, I think we can make the assumption for now that the user already knows the key and there is one global key for the whole instance of Networker. This means hard-coding or adding as configuration. We can revisit this in the future.

I've done a bunch of reading on IoC and it's currently above my skill level to implement it as you've laid out above, unfortunately. I'm not sure how to inject/resolve it into the TcpConnection and UdpConnection instances.

@LostSoulFly I'll try and take a look at this soon and see if I can add some stubbed code in for you.

Here's the basics of some of what you outlined above:
https://github.com/LostSoulFly/Networker/commit/8f390d52b2b7e8167b58e9e6bf01221885056773
On Fri, Feb 16, 2018 at 9:48 AM, Mark Eastwood<EMAIL_ADDRESS>wrote:

@LostSoulFly https://github.com/lostsoulfly I'll try and take a look at
this soon and see if I can add some stubbed code in for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MarkioE/Networker/issues/8#issuecomment-366255280,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIsrB74oabPRXy-P0mt1nuP9S6pYz_Xrks5tVZVHgaJpZM4Rlkd6
.

I pulled those changes into my repo and started expanding on it here: https://github.com/MarkioE/Networker/commit/bf7890e21bbf17ad69f247bbe587b53168005326
Still work to do but hopefully that gives you a bit more insight.
See the "encryption" branch.


Reference Chart Data in Chart Model

Chart Data (that comes from the MPAndroidChart library) can be referenced in the Chart Model to directly manipulate the data, without having any data logic at all in the Chart component.
This change has already been applied to Mock components.

Handled in #52.


No way to use npm package if it uses Native lib supported in iOS but not tvOS

Version: "react-native"<EMAIL_ADDRESS>When I want to use some library that is supported by iOS but not tvOS, for example react-native-webview, I am unable to build tvOS anymore.
Steps To Reproduce

yarn add react-native-webview
cd ios && pod install

Expected:
pod installs for iOS but not for tvOS
Actual
pod install attempts to install for tvOS and throws fatal error, blocker
[!] The platform of the target `MyApp-tvOS` (tvOS 9.2) is not compatible with `react-native-webview (7.2.5)`, which does not support `tvos`.
error Command failed with exit code 1.

Attempted workarounds:

tried editing the .podspec from the library to support the tvOS target:
  s.platforms    = { :ios => "9.0" } --> s.platforms    = { :ios => "9.0", :tvos => "9.2" }

this allowed me to install the pod. but then i encountered fatal errors, because this lib uses webkit and webkit/webviews is not supported by tvOS
Desired solution:
Is there a way to change the Podfile so that the tvOS target section can "exclude" an autolinked pod form node_modules?
If we can't do this, then we would be forced to only use libraries which are supported by both iOS and tvOS, which is not great.
Snapshot of my Podfile
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'MyApp' do
  platform :ios, '9.0'
  # Pods for MyApp
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  use_native_modules!

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'MyApp-tvOS' do
  platform :tvos, '9.2'

  # Pods for MyApp-tvOS
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  use_native_modules!

  target 'MyApp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

On tvOS there is no WebView so you will need to only add that library to the iOS Target and not the tvOS Target.
This can be specified in the Podfile. More information can be found here: https://guides.cocoapods.org/syntax/podfile.html
But I don't see it in your Podfile so I guess React-Native magically finds/installs the react-native-webview library?
You could try commenting this line:
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
and manually add the link(s) to the Podspecs like this for example:
  pod 'react-native-webview', :podspec =><EMAIL_ADDRESS>And make sure to only add the react-native-webview to the MyApp Target.

I think the problem is the use_native_modules! line.  That is going to try to automatically pick up any NPM dependencies that have native modules.
If you take that out, and put in a pod line for the iOS target that explicitly pulls in react-native-webview pod, that should solve the issue.

Thanks guys. I understand the workaround, and it makes sense.
However, it seems like a steep price to pay to remove the very helpful (and now industry standard) use_native_modules script.  If I get rid of this, I then no longer have the benefit of auto-linking RN libraries through cocoapods, which was a key benefit of upgrading to RN 0.60.
Would it not be a better long term solution to emulate/fix the ruby file provided in
@react-native-community/cli-platform-ios/native_modules.rb so that it simply skips adding pods that don't match platform for each platform section of the Podfile?
I propose a PR to add a new script to the template project here, like this:

copy the script @react-native-community/cli-platform-ios/native_modules.rb
save it to react-native-tvos/template/ios/native_modules.rb
modify script to do the following:

capture the current platform being targeted (i.e. look for platform declaration the target block in the Podfile, like platform :ios, '9.0'
as it loops through the .podspec files it discovers in node_modules, for each spec, check the spec.platforms
if the given .podspec doesn't contain platform matching the Podfile block, skip installing

I see in the script @react-native-community/cli-platform-ios/native_modules.rb that there is already a line like this:
packages.each do |package_name, package|
 next unless package_config = package["platforms"]["ios"]

I have a proof of concept already, I'm just stuck on getting Ruby to access the platforms key out of the .podspec in the loop.  I'm just not familiar enough with ruby/cocoapods to understand what i'm missing.
Here's what I mean:
Assuming I have some library in node_modules with this .podspec
...
Pod::Spec.new do |s|
 s.name = "RNCAsyncStorage"
 s.version = package['version']
 s.summary = package['description']
 s.license = package['license']

 s.authors = package['author']
 s.homepage = package['homepage']
 s.platforms = { :ios => "9.0", :tvos => "9.2" }
...

And my application's Podfile looks like:
target 'MyApp' do
 platform :ios, '9.0'
 # Pods for MyApp
 ...
 use_native_modules!
 ...
end

target 'MyApp-tvOS' do
 platform :tvos, '9.2'
 # Pods for MyApp-tvOS
 ...
 use_native_modules!
 ...
end

Then, in my modified version of @react-native-community/cli-platform-ios/native_modules.rb I have:
(line 28)
packages.each do |package_name, package|
 next unless package_config = package["platforms"]["ios"]

 podspec_path = package_config["podspecPath"]

 # Add a warning to the queue and continue to the next dependency if the podspec_path is nil/empty
 if podspec_path.nil? || podspec_path.empty?
 Pod::UI.warn("use_native_modules! skipped the react-native dependency '#{package["name"]}'. No podspec file was found.",
 [
 "Check to see if there is an updated version that contains the necessary podspec file",
 "Contact the library maintainers or send them a PR to add a podspec. The react-native-webview podspec is a good example of a package.json driven podspec. See https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec",
 "If necessary, you can disable autolinking for the dependency and link it manually. See https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library"
 ])
 end
 next if podspec_path.nil? || podspec_path.empty?

 spec = Pod::Specification.from_file(podspec_path)

 # We want to do a look up inside the current CocoaPods target
 # to see if it's already included, this:
 # 1. Gives you the chance to define it beforehand
 # 2. Ensures CocoaPods won't explode if it's included twice
 #
 this_target = current_target_definition
 existing_deps = current_target_definition.dependencies

 # Skip dependencies that the user already activated themselves.
 next if existing_deps.find do |existing_dep|
 existing_dep.name.split('/').first == spec.name
 end

 podspec_dir_path = Pathname.new(File.dirname(podspec_path))
 project_root = Pathname.new(config_root)
 relative_path = podspec_dir_path.relative_path_from project_root

  # MY EDITS HERE
 Pod::UI.puts "****************************************************"
 Pod::UI.puts "pod spec name: #{spec.name}"
 Pod::UI.puts "pod spec platforms: #{spec.platforms}"
 ...

This yields the following error message when I try to run pod install:
pod install
****************************************************
pod spec name: RNCAsyncStorage

[!] Invalid `Podfile` file: undefined method `platforms' for #<Pod::Specification name="RNCAsyncStorage">
Did you mean?  platforms=
               platform=.

Do you know what I am missing?  Why does spec.name work, but not spec.platforms?? I f I can figure this out, I can submit a PR

I'll have a look

Try this:
 # MY EDITS HERE
 Pod::UI.puts "****************************************************"
 Pod::UI.puts "pod spec name: #{spec.name}"
 spec.available_platforms.map { |p| Pod::UI.puts "pod spec platform found: #{p.name}" }

Thank you! That is the magic key I needed.
I guess the field platforms get transmuted under the hood somehow into available_platforms under the hood.
Do you know of any shorter ruby syntax to deduce whether an item is present in a given collection?
Like in javascript something like:
const myPlatform = 'tvos'

const isCompatible = spec.available_platforms.find(platform => platform.name === myPlatform)

Just a nice to have. Also don't mind looping through and just using a sentinel boolean var...

@octopicorn any update on this?

***** use_native_modules => platform: tvos  ******
[!] Invalid Podfile file: No such file or directory - ../../node_modules/.bin/react-native.
from /Users/imac2/Desktop/Dhaval/TvApp/ios/Podfile:72
-------------------------------------------

use_native_modules!

-------------------------------------------
still it is not working. when I run pod install it gives this error and when I add react-native-webview pod manually, it gives this type error '[!] The platform of the target PreventionCloud-tvOS (tvOS 9.2) is not compatible with react-native-webview (9.4.0), which does not support tvOS.'

same issue here
"react-native"<EMAIL_ADDRESS>

react-native-webview should not be added manually to the tvOS target.  tvOS does not support webviews, so it will never be compatible with tvOS.


Gitpod Sample - make fail

While I am playing around the Gitpod sample - https://pthom-imguimanual-ddodw9hmo84.ws-us114.gitpod.io/
When I did the first make, I got follow error. Is it something outdated on Gitpod repository?
[ 50%] Building CXX object external/hello_imgui/src/hello_imgui/CMakeFiles/hello_imgui.dir/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp.o
/workspace/imgui_manual/external/hello_imgui/src/hello_imgui/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp:94:29: error: use of undeclared identifier 'SDL_WINDOW_METAL'; did you mean 'SDL_WINDOW_OPENGL'?
            window_flags |= SDL_WINDOW_METAL;
                            ^~~~~~~~~~~~~~~~
                            SDL_WINDOW_OPENGL
/home/gitpod/emsdk/upstream/emscripten/cache/sysroot/include/SDL2/SDL_video.h:101:5: note: 'SDL_WINDOW_OPENGL' declared here
    SDL_WINDOW_OPENGL = 0x00000002,             /**< window usable with OpenGL context */
    ^
/workspace/imgui_manual/external/hello_imgui/src/hello_imgui/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp:172:36: error: use of undeclared identifier 'SDL_FLASH_UNTIL_FOCUSED'
        SDL_FlashWindow(sdlWindow, SDL_FLASH_UNTIL_FOCUSED);
                                   ^
2 errors generated.

Sorry I do not maintain the gitpod example anymore. I should remove it from the repository.

But you can comment out the lines that fail, it should work.
This is due to the fact that the SDL version shipped with emscripten is out of date.

Thanks for the reply. Very much appreciated.


Hamburger menu is not accessible since "Not enough CELO.."  banner stays for longer duration when user navigates back to homepage by using device back

Frequency : 100%
Repro on build version: Android Internal Release Build V:1.30.1 Android Playstore Build V:1.30.1
Repro on device : OnePlus 7t(11.0), Google Pixel 2XL(11.0),
Does not Repro on Build : iOS Internal TestFlight Release Build V:1.30.1,iOS Appstore Build V:1.30.1
Does not Repro on devices : iPhone 12(14.7.1), iPhone 13 mini(15.1.1)
Pre-condition:
1] User must have installed the application
2] User must have completed onboarding process
3] User must have funds in the account
4] User must be on CELO landing page
Repro Steps:
1] Click on Sell CELO
2] Enter a large number in the number
3] Alert will be seen
4] Now navigate back to homepage by using device back
5] Click on area where hamburger menu is placed and observe
Bug : user is not able to access the Hamburger menu as it is overlapped by alert
Expected Behavior : The alert should not be seen for longer duration and user should be able to access other menu in application
Investigation :

The above mentioned is also happening for Buy flow
Alert does not go until user kills the app and reopen it
When user enters '.' multiple times then 0.000 amount is seen
X button should be clickable to discard the pop up
Alert is seen across the pages in the application
on iOS user is able to discard the alert by clicking on X button

Impact : Bad user experience
Attachment : alert.mp4

Hey @MuckT, We have verified the above issue on Latest Android Internal Release Build V1.37.1 & Observed that the issue is fixed now. Hamburger menu is accessible and "Not enough CELO.." banner is not seen when user navigates back to homepage by using device back
Hence we are closing the issue.
Devices: Google Pixel 4a(12.0), Google Pixel XL(10.0)
Attachments: alert message.mp4
Thanks..!!


[Feat] Update generic bar chart components according to new design

This feature contains 3 aspects

Standard bar chart
Stacked bar chart
shared component

Standard bar chart - design is TBD
component: BarChartView
Stacked bar chart
component: StackedBarChartView

shared component
some logic and component are shared for both type of charts, especially:

solution for a chase when there are small number of bars

bar style (shadow like)

See which element can be extracted externally (can be a component, contestants etc)
Resources
Drop shadow can be used to achieve shadow effect (even for svg elements)
Round bar edges can be achieved by the Bar radius property

changes needed in json:

Are the values in percentage? (or general prefix/postfix)
how many bars in group? (1-X)
isStacked?

Issues:

labels in bars - dynamic positioning issue.
shadow in stacked chart overlapping bars.
hide if bar value is 0.
need to test on real stacked data.
tooltip design (can be postpone)
change labels/names to objects
general issue found: unnecessary loading the component for every widget - need to add keys.
How it currently looks:

1 bar:

2 bars:

3 bars - stacked:

Regarding json, can we change the format from:
"name": "accident_count_by_accident_year",
      "data": {
        "items": {
          "1": { "2017": 1, "2018": 3, "2019": 1, "2021": 1, "2020": 0 },
          "2": { "2017": 5, "2018": 3, "2019": 6, "2020": 5, "2021": 5 },
          "3": { "2017": 55, "2018": 50, "2019": 68, "2020": 47, "2021": 39 }
        },
        "text": {
          "title": "\u05de\u05e1\u05e4\u05e8 \u05ea\u05d0\u05d5\u05e0\u05d5\u05ea \u05dc\u05e4\u05d9 \u05e9\u05e0\u05d4, \u05de\u05d7\u05d5\u05dc\u05e7\u05d5\u05ea \u05dc\u05e4\u05d9 \u05d7\u05d5\u05de\u05e8\u05d4, \u05d1\u05de\u05e7\u05d8\u05e2 \u05de\u05d7\u05dc\u05e3 \u05dc\u05e7\u05d9\u05d9\u05d4 - \u05e6\u05d5\u05de\u05ea \u05e2\u05e8\u05d3",
          "labels": {
            "1": {
              "name": "fatal",
              "localized_name": "\u05e7\u05d8\u05dc\u05e0\u05d9\u05ea"
            },
            "2": { "name": "severe", "localized_name": "\u05e7\u05e9\u05d4" },
            "3": { "name": "light", "localized_name": "\u05e7\u05dc\u05d4" }
          }
        }

to:
items  = [
    { 'year':2011, 'killed_injury_severity_count': 40, 'severe_injury_severity_count': 50, 'light_injury_severity_count': 70 },
    { 'year':2012,'killed_injury_severity_count': 6, 'severe_injury_severity_count': 2, 'light_injury_severity_count': 8 },
    { 'year':2013,'killed_injury_severity_count': 12, 'severe_injury_severity_count': 34, 'light_injury_severity_count': 67 },
    { 'year':2014,'killed_injury_severity_count': 36, 'severe_injury_severity_count': 152, 'light_injury_severity_count': 263 },
    { 'year':2015,'killed_injury_severity_count': 13, 'severe_injury_severity_count': 2, 'light_injury_severity_count': 3 },
    { 'year':2016,'killed_injury_severity_count': 7, 'severe_injury_severity_count': 7, 'light_injury_severity_count': 45 },
    { 'year':2017,'killed_injury_severity_count': 37, 'severe_injury_severity_count': 12, 'light_injury_severity_count': 23 },
  ]

How about this?
"name": "accident_count_by_accident_year",
"data":  {
       "items": [
          {
            "label_key": "2017"
            "series": [
              { "label_key":  "light", "value": 55},
              { "label_key":  "severe", "value": 5},
              { "label_key":  "fatal", "value": 1},
            ]
          },
          {
            "label_key": "2018"
            "series": [
              { "label_key":  "light", "value": 50},
              { "label_key":  "severe", "value": 3},
              { "label_key":  "fatal", "value": 3},
            ]
          }
        ]
        },
        "text": {
          "title": "widget title bla bla"
          "labels_map": {
            "light": "\u05e7\u05d8\u05dc\u05e0\u05d9\u05ea"
            "severe": "\u05e7\u05e9\u05d4"
            "light": "\u05e7\u05dc\u05d4"
          }
        }
}

Hi,
1 - Just verifying, the value may also be a string that needs to be translated.
2 - In addition to the more verbose style
{ "label_key":  "light", "value": 55},
we may prefer a shorter style
{ "light": 55}
3 - I suggest to specifically specify the number of depth levels we have in items, e.g.
{
    "name": "accident_count_by_accident_year",
    "data": {
        "items_depth": 2,
        "items": [
            {
                "vehicle type": "car",
                "series": [
                    {"light": 55},
                    {"severe": 5},
                    {"fatal": 0}
                ]
            },
        ]
    },
    "text": {
        "title": "widget title bla bla",
        "labels_map": {
            "light": "\u05e7\u05d8\u05dc\u05e0\u05d9\u05ea",
            "severe": "\u05e7\u05e9\u05d4",
            "fatal": "\u05e7\u05dc\u05d4",
            "year": 'שנה',
            "vehicle type": 'סוג רכב',
            "car": "מכונית פרטית"
        }
    }
}

and then single level will be
{
    "name": "accident_count_by_accident_year",
    "data": {
        "items_depth": 1,
        "items": [
              {"label_key": "light", "value": 55},
              {"label_key": "severe", "value": 5},
              {"label_key": "fatal", "value": 1},
         ]
}

What do you think?

for me it's easier not to extract data from keys (not "vehicle type": "car" but "label_key": "car", )
if we do "series": [{"light": 55},{"severe": 5},{"fatal": 0}] why not one object without  array {"light": 55,"severe": 5,"fatal": 0}? but again generally I prefer to have label_key separately.
I also need the params:

 is_percentage: boolean
  is_stacked: boolean

the transform function is able to handle single/multiple bars with the "series" object. Is it important to split?

const transformedItems = items.map((item) => {
    const { label_key, series } = item;
    const result: stringNumObject = {};
    const label = label_key.toString();
    result[translatedYLabelName] = getTranslatedLabel(label); //   {'סוג רכב':'אופניים'}    {'שנה':'2017'}
    series.forEach((dataPoint) => {
      const { label_key, value } = dataPoint;
      const label = getTranslatedLabel(label_key);
      result[label] = Math.round(value); //   {'year':2017, 'percentage_segment':5 ...series}
    });
    return result;
  });

After discussion (8 Dec), we agreed on this spec
https://github.com/hasadna/anyway-newsflash-infographics/issues/779#issuecomment-971718076

@chenmu10 is working on this issue, to create 2 generic components:

single bar chart
multi bar chart + stacked

closing #601


RAW-JSON response and RAW masspay-list - to pay for leasings

Hello. I see here: https://forum.wavesplatform.com/t/w8io-waves-explorer-based-on-php-sqlite/1424
There is possible to get RAW-data as JSON, but this is displayed inside HTML-page, and not always correct.
Example, test for donation address pywaves (3P5dg6PtSAQmdH1qCGKJWu7bkzRG27mny5i)
https://w8io.ru/3P5dg6PtSAQmdH1qCGKJWu7bkzRG27mny5i/pay/1725000/5000000
one data
https://w8io.ru/3P5dg6PtSAQmdH1qCGKJWu7bkzRG27mny5i/pay/1725000/5000000/raw
another data...
Can you fix this, and return the pure JSON, which can be parsed?
Something, like:
https://w8io.ru/NODEADDRESS/pay/STARTBLOCK/ENDBLOCK/json -> pure JSON to pay for leasers for their leasing, according generated blocks on the node NODEADDRESS, from STARTBLOCK up to ENDBLOCK.
Also, will be better to add something, like masspay text:
https://w8io.ru/NODEADDRESS/pay/STARTBLOCK/ENDBLOCK/masspay
to just copy and paste this, parse, or just get by XMLHttpRequest,
and pay for leasers, using one masspay transaction, using some script.
Best regards.

Good point, will be done.

@deemru, Hi, Dmitry!
Btw, I see here: https://forum.wavesplatform.com/t/where-can-i-manually-sign-a-message/8625
Your post about singing and verify messages:
I think, I have already implemented this, to work client-side.
If you interested this, you can see the following issue: https://github.com/wavesplatform/Waves/issues/2625
Best regards.


#132 Fixed unexpected ability to create annotations outside of the annotatable container

Issue - https://github.com/recogito/text-annotator-js/issues/132
Changes Made

Added trimRangeToContainer method that trims the range down to a specified element when its edges "stick out".
Added trimming of the global selection range to the annotatable container in the selection handler.
Therefore, users can no longer annotate content outside of the container over which the annotator was initialized ✔

Demo
https://github.com/user-attachments/assets/66ee5681-dcdc-483a-92f1-70961424d0d3

That's a nice addition - thanks!


Black Rhinoceros

If your PR is related to a contribution to the taxonomy, please, fill
out the following questionnaire. If not, replace this whole text and the
following questionnaire with whatever information is applicable to your PR.
Describe the contribution to the taxonomy

...
...
...

Input given at the prompt

   ...

Response from the original model

  ...

Response from the fine-tuned model

  ...

Contribution checklist

[ ] The contribution was tested with ilab generate
[ ] No errors or warnings were produced by ilab generate
[ ] All commits are signed off (DCO)
[ ] The qna.yaml file contains at least 5 seed_examples
[ ] The qna.yaml file was linted and prettified (yaml-validator can do both)
[ ] An attribution.txt file in the same folder as the qna.yaml file
[ ] Content does not include PII or otherwise sensitive or confidential information
[ ] Content does not include anything documented in the project's Avoid these Topics guidelines

Closed per the combined PR here: https://github.com/instructlab/taxonomy/pull/1182