support filepaths to .contentType()

I noticed the readme makes it seem as though file paths will please the .contentType() method, but when used with a path like "here/is/my/file.json", the directory separator / is being mistaken for a content-type's /, which is interpreted as "I don't need you to lookup the content-type". Instead of looking for a /, I changed it look for a ;. Hope this isn't a terrible solution!

As long as .contentType() supports an actual MIME type, we really cannot add more ambiguity here. Just think you want to set your content type to the type application/vnd.apache.thrift.json ... we cannot tell what you want to do.

I still need to revive the set-type lib, but I don't see a good reason not to just use path.extname. I added an example to the README for this.

The only reason I thought this was supported in the first place was the second example in the readme (https://github.com/jshttp/mime-types/blob/master/README.md#mimecontenttypetype):
mime.contentType('file.json') // 'application/json; charset=utf-8'

When I saw that, I thought "that makes so much sense!" That's my most common use case. I don't know why getting back what you give it is a more common one, but regardless, I'll continue to be a happy user of the library. Thanks!

Right. This is one reason I don't particularly like functions that behave differently depending on their argument. Ideally we would have a CT function that takes a type and a different CT function that takes file paths.


TensorFlowNet Examples references projects: TensorFlowNet.Hub, TensorFlowNet.Models

Neither of these projects seem to be available, and the namespace hub and models do not appear within TensorFlow.
Can someone help me? I'm probably doing something silly.

Should work now.


Uninstall scripts are not copied to opt/google

To be consistent with the 5.1.3, we should maintain the uninstall scripts even after temp staged directory is removed.
hence deploy following scripts in the location similar to 5.1.3 i.e.  somewhere on /opt/google
earthenterprise/earth_enterprise/src/installer/uninstall_fusion.sh and
earthenterprise/earth_enterprise/src/installer/uninstall_geserver.sh

Duplicate of #303.  That one is already in the 5.2.1 milestone, so I'm going to close this one.


test(operator): add a missed file

Checklist

[x] Investigated and inspected CI test results
[x] ~Unit test and regression tests added~
[x] ~Evaluated and added CHANGELOG entry if required~
[x] ~Determined and documented upgrade steps~
[x] ~Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

Testing Performed
Here I tell how I validated my change
CI is sufficient.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

Thanks for the review @johannes94 !


fix(core): do not overwrite traffic guard configurations

Defaulting this to an empty list also means we will always have an empty list when performing an update, which is not great.

Fix should be cherry-picked to the release branches where the original [] default went out


Update README

Remove reference to ansys-api-tools-file-transfer, since that is not the name of
this package, but a "hypothetical" instantiation of this template. I think that's somewhat
confusing, so I made this more explicit. [1]
Update the Github organization name to ansys-internal
Remove the restriction on click<8 when installing cookiecutter.

[1] See also the original description, which mentions that file_transfer is an example, but is still confusing.

Thanks for the review @PipKat!


Module registred in SpamAssasin but not adding headers when using amavis

Hello,
thanks for DMARC plugin. I have loaded dmarc SA plugin on my AlmaLinux 8 server with ISPConfig, but I have a problem that I cant fix.
When I check the .eml file with:
spamassassin -D < email-dmarc.eml > /root/email-dmarc.eml-debug.log 2>&1
in results I see - plugin dmarc is loaded and works:
$ cat email-dmarc.eml-debug.log |grep 'dbg: check: tests'
Aug 21 12:46:07.474 [839769] dbg: check: tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,HTML_MESSAGE,RCVD_IN_DNSWL_HI,RDNS_NONE,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED

but my Spamassasin not running as daemon and has called from amavisd.
When I recieve a mail - amavis does not add DMARC check in mail header:
X-Virus-Scanned: Cloud Home Spam System on mail.domain.com
X-Spam-Flag: NO
X-Spam-Score: -3.21
X-Spam-Level:
X-Spam-Status: No, score=-3.21 tagged_above=-999 required=5
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5,
	RDNS_NONE=2, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
	T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
Authentication-Results: mail.domain.com (amavisd-new);

As can you see all checks is same as that with spamassasin -D, but without DMARC.
I have start amavis with sa_debug = 1, to check what is wrong  but I only see:
Aug 21 12:11:30 mail amavis[827327]: SpamAssassin loaded plugins: AskDNS, AutoLearnThreshold, Bayes, BodyEval, Check, DKIM, DNSEval, Dmarc, FreeMail, HTMLEval, HTTPSMismatch, HeaderEval, ImageInfo, MIMEEval, MIMEHeader, Pyzor, Razor2, RelayEval, ReplaceTags, SPF, SpamCop, URIDNSBL, URIDetail, URIEval, VBounce, WLBLEval, WhiteListSubject
and I see correctly loaded Dmarc plugin.
Any ideas why tests for DMARC was not added in message header when spamassasin used with amavis ?
$ rpm -qa |egrep -i 'spamassassin|amavis'
amavis-2.12.1-5.el8.noarch
spamassassin-3.4.6-1.el8.x86_64

Latest version (just synced from Apache src tree) has a fix for Amavisd.
The plugin has been renamed to DMARC for consistency with the RFC.

Hello and big thanks.
I have updated files, running spamassassin -D --lint, and restart amavisd. Now everithing work fine.
Thanks again @bigio. You can close that.

Fixed with commit 3e3f06146a2a8cd0cbaa9741327d8cf85a46167a


WAL disk usage based flush strategy

What type of enhancement is this?
Tech debt reduction
What does the enhancement do?
If WAL takes up too much disk space, the recovery process may take a long time to finish.
We can implement a FlushStrategy by checking the disk usage of WAL files, and flush the data in memtable to SST so that WAL files can be compacted.
Implementation challenges
No response

I'm interested in this issue. Can you assign this task to me?

I'm interested in this issue. Can you assign this task to me?

Some info that maybe useful for this:

Engine::get_used_size returns the disk usage of log files.
FlushStrategy determines whether to flush memtables to SST.
And the check happens everytime a new batch is written to memtable.

Please let me know if you need any help :grinning:

Thx!

We can implement a FlushStrategy by checking the disk usage of WAL files, and flush the data in memtable to SST

We might need to find out the regions with largest disk consumption or referring the oldest WAL file and flush those regions. But we lack some mechanism to get a global view of the regions now.

As mentioned in #1462, I'd like to close this issue. We could reopen #1462 if we need to implement a flush strategy based on disk usage.


Add Optional.Publisher for Rx from operator

@freak4pc Thank you for the suggestion. I fixed it.

@yuzushioh thanks, can you run the script again? the image doesn't seem updated

@freak4pc Done!


StdlibUnittest: new feature: data-parameterized tests

@swift-ci Please test and merge

All checks actually passed, but CI couldn't merge automatically.


[terra-hyperlink] Implement Accessibility changes (Part-1)

Summary
Marked isUnderlineHidden and isDisabled props as private. Markup changes for Disabled Hyperlink for better accessibility. Replaced children with text prop.

Closes #
Deployment Link

https://terra-core-deployed-pr-#.herokuapp.com/
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

Is there a tech design for this story?


Smarter UserStatus

Track AWAY using latest actions,
Handle extraneous logout through loss of all subscriptions or similar to track OFFLINE status.

Couldn't be completed since we lost a group member in the beginning.
Please find further explanation in the group report.


Add support for persons in Swedish

Support for persons in Swedish is missing.

Tried to resolve with #2171


Update to AIMNet2 architecture for radial and vector embedding

Update to AIMNet2 architecture for radial and vector embedding. Updated the wiki  entry.
Summary of changes:
This PR introduces significant improvements to the AimNet2 architecture, specifically in handling radial and vector contributions. The original implementation was limited in capturing angular dependencies and omitted clear aggregation and transformations for certain atomic interactions. These changes aim to enhance model expressiveness and bring it closer to the (somewhat vague) description in the original paper.
Key Modifications:

Refinement of Radial and Vector Features:  gs and gv tensors are introduced to represent radial and vector (angular) symmetry functions, respectively. The radial basis (gs) captures pairwise distances, while gv encodes directional vectors for atom pairs.
Vector Contribution Computation: using an Einstein summation operation (torch.einsum), gv and an agh transformation matrix capture the vector (angular) contributions. This setup adds expressiveness by handling directional information, aligning the model closer with angular-dependent symmetry functions. The operation structure: torch.einsum("pa, pdg, agh -> phd", a_j, gv, agh) ensures the features align over vector components.
Enhanced Broadcasting and Aggregation: to match dimensions, radial and vector tensors undergo explicit broadcasting (via .unsqueeze()). This step avoids mismatches and clarifies the contribution structure.
Aggregated Contributions: output radial and vector contributions for each pair are aggregated per atom using index_add_ to collect contributions correctly.
Scaling with f Factor: a scaling factor f is applied to delta_q (charge updates), which is introduced to improve control over charge accumulation during message-passing steps. This approach allows initializing and incrementally updating charges in a more controlled manner.
Unified Message Module: each message-passing module now utilizes an MLP with outputs split into delta_q, f, and delta_a, making the function of each component explicit. This organization supports independent updates for atomic embeddings (delta_a) and partial charges (delta_q), providing finer control over per-atom features and charge states.
Structural Adjustments for Message Passing: the first interaction module updates only atomic embeddings, while subsequent modules also modify partial charges. The message composition in later modules combines features from both embeddings and charges, producing a richer atomic feature set.

Paper Vague on Equations
The original paper is vague regarding details, especially for the equations governing vector contributions and aggregation. This implementation assumes certain interpretations based on the partial information given, and are not easily to decode. This is therefore not a literal implementation of AimNet2, but only a interpretation.

Codecov Report
Attention: Patch coverage is 96.55172% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.42%. Comparing base (c1430f2) to head (eb91512).

Additional details and impacted files


No progress report on upload when Sharing to Open Food Facts

Share an image with a barcode, from your photoroll, to Open Food Facts
The barcode should be detected
When clicking upload to Open Food Facts, there's no visible progress report.

You can take a snapshot of a barcode ?


feat: change github workflow

Related Issue(required)

Description(required)

Review Procedure(required)

Related PR(optional)

Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.

[x] Read commit-guidelines
[x] Assign PR to reviewer

If you are adding new package following items are required:

[ ] Documentation with description of the package is available
[ ] A sample launch file and parameter file are available if the package contains executable nodes

Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.

[ ] Commits are properly organized and messages are according to the guideline
[ ] PR title describes the changes

Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.

[ ] All open points are addressed and tracked via issues or tickets

CI Checks

Build and test for PR / build-and-test-pr: Required to pass before the merge.
Build and test for PR / clang-tidy-pr: NOT required to pass before the merge. It is up to the reviewer(s). Found false positives? See the [guidelines][clang-tidy-guidelines].
Check spelling: NOT required to pass before the merge. It is up to the reviewer(s). See here if you want to add some words to the spell check dictionary.

:smiling_face_with_tear:

The code looks good to me. Can be merged after https://github.com/autowarefoundation/autoware-github-actions/pull/4 is merged and TODO is resolved.

I'll fix this and https://github.com/autowarefoundation/autoware-github-actions/pull/4 this weekend.

Since PRs from fork can't update workflows, I'll re-create PR.


BCD Testnet node ip

Hi, anyone could send me the ip of the nodes on BCD testnet please. We are trying to implement BCD to yiimp mining pool. Seems we are able to mine now, but I wanna check if the block can be mined or not.
The daemon could only find one node on the testnet, the syncing process stopped at height 1075151. Guess I might need to connect to some other node for syncing cause I am getting this message 'error -10: bitcoindiamond is downloading' at yiimp side. Thanks.
"version": 1010100,   "protocolversion": 70015,   "walletversion": 130000,   "balance": 0.0000000,   "blocks": 1075151,   "timeoffset": 0,   "connections": 1,   "proxy": "",   "difficulty": 1.130557041075094,   "testnet": true,   "keypoololdest":<PHONE_NUMBER>,   "keypoolsize": 100,   "paytxfee": 0.0000000,   "relayfee": 0.0001000,   "errors": ""

Back to normal now. You can have a try.

It works now, and we are getting the blocks on testnet. Thank you!


Take thread count from scijava

When determining the number of threads for multithreaded options. It would be good to respect the settings from ImageJ / Fiji or SciJava.

There doesn't appear to be one preferences or setting for this, so the bead option appears to provide an option where needed for setting the thread count.
This has now been added to all commands where required and method calls where possible. Where the thread count is not provided the number of processors will be set as the thread count.


How to setup cnmem usage

Hi
Im trying out Digits in my local PC. It has only 1GB VRAM.
most CNN i tried show error that low memory in my VGA.
In theano i can set up Cnmem with .theanorc file like this
[lib]
cnmem=.5
How can i set up it in Digits ?
Thanks

I think this wont fix my issue , right ?
I think i need to upgrade my gpu

The simplest solution is to upgrade your GPU, as you said.
 Are you not able to?

I was able to run LeNet and Alexnet ( alex net wtith small image size ) I think there best thing to do is upgrade my VGA. Thanks for the response.


Allow for less history

We currently crash if there aren't enough previous rounds to look up.

Closed by #20


feat: source env.bash with args

This PR replaces #1 so I could make some tweaks before squashing and merging.

Codecov Report

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

@@          Coverage Diff          @@
##           master     #2   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           6      6
  Lines         174    198   +24
=====================================
+ Hits          174    198   +24

Impacted Files
Coverage Δ

envbash/read.py
100% <100%> (ø)
:arrow_up:

tests/test_read.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Storage History pruning by contract address or storage slot

Describe the feature
Inspired by https://github.com/paradigmxyz/reth/issues/2753.
Basically, be able to prune Storage History part in a similar way as we can prune receipts by specifying the log addresses, but instead by specifying the contract address or storage slot.
Additional context
No response

I could try this one

A question: filtering by storage slot you mean filtering both with a specific contract address and then save only the specific storage slots you filtered?

@alessandromazza98 great! I assigned you.

you mean filtering both with a specific contract address and then save only the specific storage slots you filtered?

Yes, that's right. We need to have both option to save all storage changes related to specific contract, and save only the changes related to specific contract + its storage slot(s).
See how logs filtering configuration works now: https://paradigmxyz.github.io/reth/run/config.html#example-of-the-custom-pruning-configuration, I think we want granular storage history pruning behave in a similar way, so something like this:
# Prune all storage history entries, leaving only those that belong to:
# - Contract `0x7ea2be2df7ba6e54b1a9c70676f668455e329d29`, starting from the block 15000000
# - Contract `0x7ea2be2df7ba6e54b1a9c70676f668455e329d29` and its storage slot `0x517586d1d6aba629182cbaba4171a955c27c86f2859f2b735993a00af12e70a0`, starting from the block 17000000
# - Contract `0xdac17f958d2ee523a2206206994597c13d831ec7` in the last 1001 blocks
[prune.parts.storage_history_filter]
"0x7ea2be2df7ba6e54b1a9c70676f668455e329d29" = { before = 15000000 }
"0x7ea2be2df7ba6e54b1a9c70676f668455e329d29".slots."0x517586d1d6aba629182cbaba4171a955c27c86f2859f2b735993a00af12e70a0" = { before = 17000000 }
"0xdac17f958d2ee523a2206206994597c13d831ec7" = { distance = 1000 }

I think this is a legit TOML syntax.


Extending a class of an imported script (

From @enjikaka on August 28, 2018 8:33

VSCode Version: Version 1.26.1 (1.26.1)
OS Version: macOS 10.13.4 (17E199)

Steps to Reproduce:
Reproducible setup and steps here -> https://github.com/enjikaka/type-fail-params-vscode
Copied from original issue: Microsoft/vscode#57339

Duplicate of #23911 -- currently we won't inherit parameter types from a superclass.


Import issues when importing a React component from @carbon/ibmdotcom-react

Detailed description

Describe in detail the issue you're having.

When importing a component from the React package, getting a build error that axios is missing

Is this a feature request (new component, new icon), a bug, or a general
issue?

Bug

Is this issue related to a specific component?

HorizontalRule, but believe this is for all components

What did you expect to happen? What happened instead? What would you like to
see changed?

No build errors

What browser are you working in?

Chrome

What version of the IBM.com Library are you using?

v0.5.1

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

N/A
Steps to reproduce the issue

Go to codesandbox.com and create a project with @carbon/ibmdotcom-react
Import a component
See screenshot:

Fixed, will be released in v0.5.2


Add flag to show cmd input/output

I personally found myself wanting to see exactly what commands where being run, and what their output was, using clint. I was constantly repeating myself (print command, run command, print output and return code).
This lead to me abandoning use of envoy in favor of a pattern like this. Needless to say, copying this into every file was getting to be a chore, but it didn't seem like "enough" to warrant its own library.
If this seems like a worthwhile addition, please take it. Otherwise, would love advice from others on how best to release.
This is my first pull request to open source that I'm aware of, so please let me know if I'm deficient/out of line in any way here!

I think I'm going to pass on this, for now. But, thank you very much!

I feel bad for not accepting your first pull request ever, and I especially feel bad for taking so long to get back to you. I haven't been doing a very active job lately of maintaining my open source projects, and that is why you haven't heard from me until now (1.5 years later?).
Here's some cake though, everyone loves cake.
:sparkles: :cake: :sparkles:

:-) thanks for the cake! (and the explanation)
On Thu, Feb 4, 2016, 02:47 Kenneth Reitz<EMAIL_ADDRESS>wrote:

I feel bad for not accepting your first pull request ever, and I
especially feel bad for taking so long to get back to you. I haven't been
doing a very active job lately of maintaining my open source projects, and
that is why you haven't heard from me until now (1.5 years later?).
Here's some cake though, everyone loves cake.
[image: :sparkles:] [image: :cake:] [image: :sparkles:]
—
Reply to this email directly or view it on GitHub
https://github.com/kennethreitz/envoy/pull/70#issuecomment-179766502.


CVE updates stuck

It seems that since april 2023 our CVE update on the web always retrieves 200143 CVEs (not more, not less).
The logs contain this:
[2024-09-18 00:00:00,635] [PID 3308083] [Thread-6] [sec_certs_page.vuln.tasks] [INFO] Getting CVEs.
[2024-09-18 00:00:22,265] [PID 3308083] [Thread-6] [sec_certs.utils.nvd_dataset_builder] [INFO] Building arguments for NVD requests to CVE endpoint. Will send
 0 requests.
[2024-09-18 00:00:22,266] [PID 3308083] [Thread-6] [sec_certs_page.vuln.tasks] [INFO] Got 200143 CVEs.

It seems that the request logic got somehow broken and now it does not make any requests for new CVEs.

Fixed by #436


[KYUUBI #2373][SUB-TASK][KPIP-4] Support to recovery batch session on Kyuubi instances restart

Why are the changes needed?

To close #2373
How was this patch tested?

[x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

will rebase it after #2800 merged

thanks, merging to master

thanks for your review @ulysses-you


files-from flag does not working properly

I confirm that files-from flag does not working properly with windows 8.1

rclone version (1.37)

(Windows 8.1 Pro, 64 bit)

(Google Drive)

.\rclone\rclone.exe sync --files-from include-paths.txt C:\Users\Amasya\Desktop\rclone-test GDrive:include-paths -vv (Running with predefined environmeltal variables.)

2017/09/18 18:45:04 NOTICE: Config file "C:\Users\Amasya\.config\rclone\rclone.conf" not found - using defaults
2017/09/18 18:45:04 DEBUG : rclone: Version "v1.37" starting with parameters [".\rclone\rclone.exe" "sync" "--files-from" "include-paths.txt" "C:\Users\Amasya\Desktop\rclone-test" "GDrive:include-paths" "-vv"]
2017/09/18 18:45:04 DEBUG : GDrive: Saved new token in config file 2017/09/18 18:45:06 INFO  : Google drive root 'include-paths': Modify window is 1ms
2017/09/18 18:45:06 DEBUG : Kitapcik-PHP.zip: Excluded from sync (and deletion) 2017/09/18 18:45:06 DEBUG : offline_javascript_dersleri.zip: Excluded from sync (and deletion)
2017/09/18 18:45:06 DEBUG : offline_php_dersleri.zip: Excluded from sync (and deletion)
2017/09/18 18:45:06 DEBUG : PHP_Kitap.zip: Excluded from sync (and deletion)
2017/09/18 18:45:06 DEBUG : Yeni Metin Belgesix.txt: Excluded from sync (and deletion)
2017/09/18 18:45:06 INFO  : Google drive root 'include-paths': Waiting for checks to finish
2017/09/18 18:45:06 INFO  : Google drive root 'include-paths': Waiting for transfers to finish
2017/09/18 18:45:06 INFO  : Waiting for deletions to finish
2017/09/18 18:45:06 INFO  :
Transferred:      0 Bytes (0 Bytes/s)
Errors:                 0
Checks:                 0
Transferred:            0
Elapsed time:        2.2s

2017/09/18 18:45:06 DEBUG : Go routines at exit 7
2017/09/18 18:45:06 DEBUG : rclone: Version "v1.37" finishing with parameters [".\rclone\rclone.exe" "sync" "--files-from" "include-paths.txt" "C:\Users\Amasya\Desktop\rclone-test" "GDrive:include-paths" "-vv"]

What did you expect to happen?  And what actually happened?  What is the contents of include-paths.txt?

include-paths.txt includes another directory path which is C:\Users\Amasya\Desktop\rclone-test-2
I was expecting this paths will sync with gdrive also.
But sync failed.

I confirm that files-from flag does not working properly with v1.38 also

I confirm that --filter-from filter-file.txt flag does not working with v1.38 on windows also.
.\rclone\rclone.exe sync --filter-from filter-file.txt D:\Active-Sync\rclone-test GDrive:backup -vv

This is my filter-file.txt

D:\Active-Sync\rclone-test2**

Problem is causing when path is not inside defined variable. Otherwise cmd is working properly

This looks solved. Closing out.


use assert_matches!()

Signed-off-by: Jayice<EMAIL_ADDRESS>
What problem does this PR solve?
Issue Number: ref https://github.com/tikv/tikv/issues/11435
Problem Summary:
assert! provides too little information when failing
What is changed and how it works?
use assert_matches!()
Check List
Tests

Unit test
Integration test

Release note
use assert_matches!()

/close

/open

/reopen

/retest

/test

/close


Create ranks community

Hi @BeyondKarto
I am a little confused by this PR and the creation of a new file within /src/content/docs/assets of this repo
What is the intention? Adding a new schema/category? or were you trying to upload the image linked above to the /assets folder?
Thanks for clarifying

Hi @BeyondKarto
I am a little confused by this PR and the creation of a new file within /src/content/docs/assets of this repo
What is the intention? Adding a new schema/category? or were you trying to upload the image linked above to the /assets folder?
Thanks for clarifying

Yes, I would like to add a new image to Docs and I need to upload it to github, sorry I'm new to the platform and maybe I'm doing something wrong

Alright - no problem there @BeyondKarto
I presume the checks are failing because the filename has a space in it and the file extension is not specified.
Within your /patch-3 branch try renaming the file you uploaded as 'ranks-community.png' and push the commit. That should update the tests and hopefully the Vercel check passes.


Clean up error handling inside for loops in type_check

e.g. all the literal expressions have very ugly for loops in order to handle possible errors. There is probably a better way.

Also present in StructLiteral

And FunctionCall


Add SRVName / id-on-dnsSRV

Service name are defined in RFC 4985. This patch adds the OID and NID
for id-on-dnsSRV as well as print support.
A certificate with SRVName other name can be generated with:
[ req ext ]
subjectAltName = @san

[ san ]
otherName.1 = <IP_ADDRESS>.<IP_ADDRESS>.7;IA5STRING:_https.www.example.org

Signed-off-by: Christian Heimes<EMAIL_ADDRESS>
Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

The enhancement is missing tests. What's the best way to generate a test cert with a srvname? I played with test/certs/setup.sh but it re-generates all certs.

otherName.1 = <IP_ADDRESS>.<IP_ADDRESS>.7;IA5STRING:_https.www.example.org

I wonder if one has to use numbers...

Obsoleted by merging #9965
Closing.


Add workflow_dispatch trigger

For manually triggering tests from the browser.

I've reproduced the failed CI run on our side. It seems to be related to changes in the CI environment. I'm not working on reproducing the problem locally and hopefully fix it.

@roedoejet and I figured it out, he's preparing a patch.


Streamlit update and merge with main.py

Streamlit Updated and merged with main.py

Fixed Background issues


Minor HTML suggestions

Since the theme is HTML5, you could remove the default types for css ( type="text/css" and js type="text/javascript" files from everywhere.

Yes, that is something I was postponing for months.
Will see it coming for 18.31

Will be tweaked in 18.31.
Thanks.


Was logged

Adds a "was-logged?" function which can be used to assert if something was logged outside the context of a clojure.test/is assertion.
Extracts a "create-outcome" function to re-use code between "logged?" and "was-logged?"
Q: Do we care about a 2 arity implementation of was-logged?

Looks good to me!


Correct the comment example for AuthenticationSchemeOptions.ForwardSignOut.

Addresses #11978.
My VS Code auto-format also killed a couple of eol whitespaces. If that's not cool, I can put them back.

My VS Code auto-format also killed a couple of eol whitespaces. If that's not cool, I can put them back.

In general that's just fine! We just don't want PRs with a huge array of reformatting changes. A couple little auto-format fixups in the files you're already editing is just fine (and appreciated!)

@aspnet-hello triage https://dev.azure.com/dnceng/public/_build/results?buildId=255722

Test failures look unrelated, I'll kick the build a little bit :)

This comment was made automatically. If there is a problem contact<EMAIL_ADDRESS>I've triaged the above build.


Error in Sending Adaptive Card with People Picker to Message

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
What package version of the SDK are you using.
4.14.2
Describe the bug
Give a clear and concise description of what the bug is.
When sending message using adaptive card that contains a People Picker with dataset, Activity can't be serialized (FlatterningSerializer throws error):
Caused by: java.lang.ClassCastException: class com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to class com.fasterxml.jackson.databind.node.ObjectNode (com.fasterxml.jackson.databind.node.ArrayNode and com.fasterxml.jackson.databind.node.ObjectNode are in unnamed module of loader 'app')
at com.microsoft.bot.restclient.serializer.FlatteningSerializer.serialize(FlatteningSerializer.java:187) ~[bot-connector-4.14.2.jar:4.14.2]
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480) ~[jackson-databind-2.13.3.jar:2.13.3]
... 27 common frames omitted
To Reproduce
Steps to reproduce the behavior:
1 Prepare an adaptive card containing People Picker:
    {
      "type": "Input.ChoiceSet",
      "choices": [],
      "choices.data": {
        "type": "Data.Query",
        "dataset": "graph.microsoft.com/users?scope=currentContext"
      },
      "isMultiSelect": true,
      "placeholder": "Choose at least one person for this feedback",
      "label": "Request to",
      "style": "filtered",
      "id": "userId"
    },

Send card as message
See error in log

Expected behavior
Give a clear and concise description of what you expected to happen.
Expect adaptive card to be sent to chat
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The same adaptive card works for Task Module.
The problem is in FlatterningSerializer, where it tries to flat "choices.data", how ever, this can't be done, for the expected flatterned data is:
choices: {
  data: {..}
}

but there's already a choices: [] existing. These two can't match.

@johnmiroki What channel are you using?

Thanks, @johnmiroki, I'm investigating this.

Hi @johnmiroki,
Thanks for raising this issue, I was able to repro.
Looks like when sending People Picker in Adaptive Cards, the following error message is thrown:
Caused by: java.lang.ClassCastException: class com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to class com.fasterxml.jackson.databind.node.ObjectNode (com.fasterxml.jackson.databind.node.ArrayNode and com.fasterxml.jackson.databind.node.ObjectNode are in unnamed module of loader 'app')
	at com.microsoft.bot.restclient.serializer.FlatteningSerializer.serialize(FlatteningSerializer.java:187) ~[bot-connector-4.14.1.jar:4.14.1]
	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480) ~[jackson-databind-2.11.3.jar:2.11.3]
	... 25 common frames omitted

Error source code:
/bot-connector/src/main/java/com/microsoft/bot/restclient/serializer/FlatteningSerializer.java

@ramfattah Thank you for the confirmation!

Thank you @johnmiroki, we are working on this fix for the next patch release.

  Ram and I will resolve it and include in the next patch release for Java.  I don't have a solid ETA on that release, but it's sooner rather than later.

@tracyboehrer good to hear. Thank you very much!

@tracyboehrer Hi Tracy, any ETA regarding this fix? Much appreciated!

The root of the problem is the 'choices.data' property.  It would appear this is a flattened JSON property.  I do believe that this should be an object under the 'choices' array.  It's a tricky issue and it will take me more research to understand this JSON notation.  What the existing FlatteningSerialzier is doing just doesn't handle it correctly.
In other words, I think a mitigating step is to change the JSON.

@tracyboehrer agreed. It's rare to use a property as an object and an array at the same time. But the change should be from MS side. We as third party developers can't do much about it.


Privacy Badger prevents data from being sent to Proliferate

At the end of an experiment when data is sent to the proliferate server, the request may fail if the participant has Privacy Badger enabled. Because the Proliferate server is not the same origin as the experiment, PB blocks the request and Proliferate returns a 500 error and no data. There is no visual indication that anything has gone wrong (the redirect and target both appear as normal, though errors and warnings appear in console), though use of a failure and success callback may help.
To resolve this issue, disable PB for the site. This solution works even after reaching the Prolific redirect target as the data is resent after the PB disabling.
Not a bug so much as an FYI should others run into a similar problem. I had this problem with Privacy Badger, but presumably any browser add-on which enforces same-origin policies will cause the error.

Good to know! I'll look into whether one can detect this somehow, and if x-site requests are blocked, submit the data differently or at least show an error message to the participant. Can you also post/send me a screenshot of the error message in the console?

Here are the errors: https://imgur.com/a/9hG8m9t
Part of the problem is that the post seems to succeed. You get the prolific confirmation screen, but when you run proliferate getresults ... The data you receive is an HTML page reporting an HTTP 500 error and nothing else.


gainputtest Visual Studio linker error

I use Visual studio 2015. Generate project by cmake -G 'Visual Studio 14'. Got error when build gainputtest target:
MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol  _WinMain@16  referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)

I have found solution for visual studio. But first i will test it on mingw to prevent undefined behavior.


Add Linear Algebra routines in ChainerX

I'd like to work on adding linear algebra routines to ChainerX during GSoC. Most of the numpy.linalg functions listed in ChainerX routines spreadsheet have low priority, so their implementation probably can wait for the summer.
Many linalg operations have optimized implementations in various open source alternatives,
for example in LAPACK (there is a C++ interface).
Is it expected to implement forward operations from scratch, or link to existing implementations?
For autodiff, derivatives for some routines are described here
Ref. #6423

Here is the table to track the progress

Routine
Forward CUDA
Forward Native
Backward

linalg.cholesky
☑

linalg.qr
☑

linalg.svd
☑

[linalg.eigh]
in progress

linalg.solve
☑

linalg.inv
☑

linalg.pinv
☑

#7474 has now been merged :)

It might be worth tracking in the above table whether the routine has been merged or not.

#7411 also merged.

Notes Linear Algebra on several matrices at once:
Since NumPy 1.8 several of the numpy.linalg routines are able to compute results for several matrices at once, if they are stacked into the same array.
This generalizes the linear algebra operations to work on higher-dimensional arrays: the last 1 or 2 dimensions of a multidimensional array are interpreted as vectors or matrices, as appropriate for each operation.
cuSOLVER has specialized batched versions of a few routines

cusolverDnpotrfBatched
cusolverDngesvdjBatched
cusolverDn<t>gesvdjBatched requires that all matrices are not greater than 32x32
cusolverDnsyevjBatched
cusolverDn<t>syevjBatched requires that all matrices are not greater than 32x32
As last two specialized GPU routines are restricted on allowed size it might be better to have them separately.

NumPy has this feature implemented using gufunc.
In ChainerX this can be done just looping over matrices on the routine level:
for (int64_t i = 0; i < batch_size; i++) {
  Array& a = batched_input.At(...)
  Array& out = batched_output.At(...)
  device.backend().CallKernel<LinalgKernel>(a, out);
}

Linalg routines make a working copy inside kernels, it might be better to create a copy once for the whole batched array and pass this working copy to the kernel. Some routines require transposed input matrix (because of column major ordering), then only last two dimensions of array has to be transposed.
Backward mode for many routines requires matrix-matrix multiplication.
Before going and implementing batched support for forward mode, numpy.matmul needs to be implemented in ChainerX first. dot and matmul work differently on higher-dimensional arrays.
Error handling needs to be done so that it is easy to identify and inform which input matrix in the stack is problematic.

#7503 has now been merged.

I noticed that we've left the failing test to rely on forward_accept_errors but it's probably better to rewrite them using pytest.raises.


TypeError: 'dict' object is not callable

I get the following traceback. Not really sure why.
Happens when I try the following code and I have an index.html file in templates.

if __name__ == '__main__':
    contexts = [
        ('.*.html', {'test': 'test'})
    ]
    site = make_site(
        contexts=contexts
    )
    site.render(use_reloader=True)

Traceback (most recent call last):
  File "performancepage.py", line 26, in <module>
    site.render(use_reloader=True)
  File "/Users/jonathan/.virtualenvs/perf/lib/python2.7/site-packages/staticjinja/staticjinja.py", line 290, in render
    self.render_templates(self.templates)
  File "/Users/jonathan/.virtualenvs/perf/lib/python2.7/site-packages/staticjinja/staticjinja.py", line 261, in render_templates
    self.render_template(template, filepath)
  File "/Users/jonathan/.virtualenvs/perf/lib/python2.7/site-packages/staticjinja/staticjinja.py", line 236, in render_template
    context = self.get_context(template)
  File "/Users/jonathan/.virtualenvs/perf/lib/python2.7/site-packages/staticjinja/staticjinja.py", line 128, in get_context
    return context_generator()
TypeError: 'dict' object is not callable

Ah, I need to fix the documentation to stay in sync with the latest stable version rather than master. Anyway, I just released a new version, 0.3.3 which includes the change you'll need to get that to work. Thanks for pointing this out. :+1:


How to connect testnet?

rpc_url = "http://localhost:5050/" how can I change to connect testnet?
I change the url to "https://starknet-goerli.infura.io/v3/", got the error:
Failed to migrate executor: Migrator(Provider(StarknetError(InvalidContractClass)))
I also try to use "katana --chain-id SN_GOERLI" , it not works.

katana is a local dev environment, it can be deployed remotely but not with that command.
jump into the discord to discuss https://discord.gg/KG9w9BmDrV
closing this issue

What can I do if I want to migrate my contracts to testnet? No on answer me in discord.


Issue trying to export an image used in an extension

I am trying to create an extension for supporting some very simple materials like spheerical mapping. The material has some parameters and an image and in Blender is implemented a ShaderNodeCustomGroup.
For exporting this material, I am looking for the socket where the ImageTexture node is connected and I use the gather_texture_info function which is used for other textures in the standard material. This function returns a gltf2_io.TextureInfo
However, when I add this object to my extension definition, I get an error "TextureInfo is not JSON serializable" although is used several times accross the code.
texture_info = self.gather_texture_info((env_socket,), export_settings)
gltf2_material.extensions[bl_info['name']] = self.Extension(
      name=bl_info['name'],
      extension={"img": texture_info},
      required=False
)

How should I add the texture info so It works?

Turn it into a dict with .to_dict().

Shouldn;t that be called automatically when trying to serialize the TextureInfo? For example, in gltf_io.py, for the baseColorTexture there is
result["baseColorTexture"] = from_union([lambda x: to_class(TextureInfo, x), from_none],
                                                self.base_color_texture)

which somehow calls the appropiate stuff.
I was expecting this happens automatically given my TextureInfo is in the extensions object...

In fact, doing to_dict() gives the following error:
  File "/home/kdab/.config/blender/2.81/scripts/addons/kuesa/materials/KDAB_custom_materials.py", line 139, in gather_material_hook
    extension={"img": texture_info.to_dict()},
  File "/home/kdab/.config/blender/2.81/scripts/addons/io_scene_gltf2/io/com/gltf2_io.py", line 661, in to_dict
    result["index"] = from_int(self.index)
  File "/home/kdab/.config/blender/2.81/scripts/addons/io_scene_gltf2/io/com/gltf2_io.py", line 29, in from_int
    assert isinstance(x, int) and not isinstance(x, bool)
AssertionError

Nothing actually gets traversed automatically in the to_dict pass. Every single class makes a decision about what to call on each of its fields. Extensions are just dicts and nothing gets called on their fields.
The problem with calling to_dict early here is there's a __traverse pass that gathers stuff like accessors into a top-level array and replaces them with an index, and then there's a to_dict pass that turns the classes into dicts, and since the to_dict pass is second it assumes everything's been replaced by an index. But extensions want to run to_dict early. None of the existing extensions reference any of the top-level arrays so this hasn't been a problem so far.
The easiest immediate fix is for you to just convert the TextureInfo into a dict yourself. I tested this and it works fine.
I guess to_dict could be changed to traverse extensions and extras and call to_dict on stuff that isn't valid JSON (sort of like __to_json_compatible).

Nothing actually gets traversed automatically in the to_dict pass. Every single class makes a decision about what to call on each of its fields. That line you quoted is explicitly calling to_dict (through to_class) on the TextureInfo object.
The problem with calling to_dict early here is there's a __traverse pass that gathers stuff like accessors into a top-level array and replaces them with an index, and then there's a to_dict pass that turns the classes into dicts, and since the to_dict pass is second it assumes everything's been replaced by an index (hence the assert). But extensions want to run to_dict early. None of the existing extensions reference any of the top-level arrays so this hasn't been a problem so far.

I have another extension which creates a top level entry of layers and then the nodes reference the layers where they belong. This works fine, although probably because the layer is just a string, with is serializable.
            layers = [self.current_collections[collection.name] for collection in blender_object.users_collection]
            gltf2_object.extensions[bl_info['name']] = self.Extension(
                name=bl_info['name'],
                extension={"layers": layers},
                required=False
            )

The easiest immediate fix is for you to just convert the TextureInfo into a dict yourself. I tested this and it seems to work fine.
I guess to_dict could be changed to traverse extensions and extras and call to_dict on stuff that isn't valid JSON (sort of like __to_json_compatible does).

I like the idea of being able to call recursively to_dict for extensions or something like that. Can we discuss that?

Proof of concept for traversing extensions and extras and calling to_dict and to_list on stuff. This makes your original code work.
Let's see if anyone has other ideas. The official addon will also have to solve this somehow if it ever supports exporting pbrSpecularGlossiness materials.

I have tried the code and works fine, but I have some doubts. In gltf2_io, for the baseColorTexture data, you use
result["baseColorTexture"] = from_union([lambda x: to_class(TextureInfo, x), from_none], self.base_color_texture)

self.base_color_texture is a TextureInfo and in this case we use this line of code to convert the TextureInfo to some serializable while if using a TextureInfo in an extension, the to_dict() code will be called (through the jsonify). Is this going to cause some kind of trouble?

What sort of trouble? That code just checks that self.base_color_texture is either an instance of TextureInfo, in which case .to_dict() is called on it, or None. IOW that line "knows" what the type of self.base_color_texture should be and will throw an error if its wrong. But for extensions and extras we don't know what the type of each property should be.

Understood. My Python knowledge is still limited :)
The code works fine, are you going to create a PR with it?

(It is a rather opaque line.) Nah, I wanna see what other people think.

Do you think its possible to try to get this into 2.82? Without this, I think user extensions are not so useful

The json encoder support a default function for non serializable object. Maybe we can use this? I have done some tests passing the following function
lambda x: x.to_dict()
and works more or less correctly. The only issue is that it adds some data that shouldn't be there.
                        "extensions" : {},
                        "extras" : null,
                        "index" : 0,
                        "texCoord" : 0
                    }

If there is an easy way to remove the extras and extensions if not needed, maybe its an easier way and less intrusive for the rest of the code.
What do you think?

That sounds like a good idea. Do the extensions and extras properties not get removed by __fix_json already?

Im trying to find why is not happening

Oh, __fix_json is called before json.dump.

Im trying to understand what is happening here.
So the exporter produces a dictionary. For the extension part, the dictionary basically contains "{img: instance of TextureInfo}".
Then we do the __fix_json stuff, which of course does nothing for the TextureInfo object.
Finally, we call dumps which produces the json string to be saved. At this point is where the to_dict() is called.
Moving to a custom encoder means that we can remove the not needed keys while encoding, right?

Actually, would it be easier to add the to_dict() stuff in __fix_json?

I have done something similar. Works fine, but seems a bit out of place.

Isn't that what my first proof of concept did? You could write it like this instead
result["extensions"] = from_union([lambda x: from_dict(lambda x: from_dict(jsonify, x), x), from_none],
                                  self.extensions)

Right. I;m not sure which one looks better. One is a oneliner, but looks a bit out of place. The other one is more complex, but the result is a directly serializable dictionary.
Are extensions of extensions allowed? If they are allowed, I think the only valid method is the oneliner, as its recursive and will produce the correct result for the inner extension. I think your first POC will fail in this case, no?

Extensions of extensions are allowed. The first PoC is recursive too, it works fine with nested extensions.
I also realized that one thing just changing __fix_json can't handle is
'extensions': {
    'my_ext': TextureInfo instance
}

(ie. the extension value is a TextureInfo instance directly, not a {'img': TextureInfo instance}) because to_dict demands that the values in the extensions dict be dicts themselves. Fixing this in __fix_json is too late, to_dict has already been called and asserted that the values are dicts.
So I think it is better to change to_dict like in the first PoC.

Im not sure I understand the problem

If you only change __fix_json this is ok
gltf2_material.extensions[bl_info['name']] = self.Extension(
      name=bl_info['name'],
      extension={"img": texture_info},
      required=False
)

but this doesn't work
gltf2_material.extensions[bl_info['name']] = self.Extension(
      name=bl_info['name'],
      extension=texture_info,
      required=False
)

Yep, you are right. The issue is in from_dict, right? Because we expect the extensions to be a dictionary and in this case it isnt.

In to_dict, yeah.

I am trying a recursive extension and having some issues with your first POC.
texture_info = self.gather_texture_info((env_socket,), export_settings)
                    texture_info.extensions = {"img"}

                    gltf2_material.extensions[bl_info['name']] = self.Extension(
                        name=bl_info['name'],
                        extension=texture_info,
                        required=False
                    )

Thinking again I'm good with your current PR. It's should be easy to get merged and it will be fine for current extensions.
If anyone ever does want a non-dict as an extension value we can revisit with a more robust implementation then. Existing code won't have to change.

Are you sure about it? I expect people raising issues when trying to create their own extensions which we wont be aware of...

Well, if you do want to change it, that's fine with me too.

I will close the PR for now and I will reopen it tomorrow with your POC. Or maybe its better if you create it, since its your code :)

Not too sure about the details of my PoC. And I'm still trying to annoy someone into noticing my existing PRs lol ( ´ ▽ ` ;) If you want to pull it into your own branch, go for it.

I see a big caveat in using something like your POC. That file is automatically generated by quicktype, so we cant modify it.

You're right. Could be done as a separate pass just before to_dict then but like I said, I wanna see if anyone has better ideas.

I have been checking and that file has been modified manually several times, so I guess there's no problem


[Advanced Paste] Remove clipboard history

Description of the new feature / enhancement
Remove the clipboard history function from Advanced Paste.
Scenario when this would be used?
Windows has built in clipboard history (win + v) , it’s redundant to reimplement this feature and put it in the pop up.
Supporting information
No response

Thanks for the suggestion, I think a better way could be if you have the option turned off, this just isn't visible.


Activate an object and chain action

For #6 .
When an object is clicked, if it has the "onUse" property set to 'toggle ceiling_light', it will lookup an object with the name 'ceiling_light' and toggle it's texture between the 'on' and 'off' textures.

@nwforrer Thanks!


Infinite loading screen... aka Quest 2 not working

Hallo!
I love your plugin
But I have just activated it, packed my game after just adding a test loading screen... and my game keeps the three dots from the default loading screen, so basically it never loads.
Doesn't it work for Quest VR?
Thanks!

Hi, VR does not support 2D UI. Hence the Async Loading Screen plugin does not work on VR. You should use 3D widgets (UMG) for VR instead.


adding main

The setup.py already provides an entrypoint to main.

yes, but I wanted to be able to run it without installing it or or running setup.py

Does it still work with pkg_resources then?

It should not affect anything, it is just an addon and a common practice.
On Wed, Mar 30, 2016 at 3:09 AM, Martin Zimmermann<EMAIL_ADDRESS>
wrote:

Does it still work with pkg_resources then?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/posativ/isso/pull/246#issuecomment-203283141

--
James Michael DuPont
Kansas Linux Fest http://kansaslinuxfest.us
Free/Libre Open Source and Open Knowledge Association of Kansas
http://openkansas.us
Member of Free Libre Open Source Software Kosova http://www.flossk.org
Saving Wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com

This change is not useful, let me show why.
diff --git a/isso/__init__.py b/isso/__init__.py
index ff8f6b4..99a4ec1 100644
--- a/isso/__init__.py
+++ b/isso/__init__.py
@@ -268,3 +268,6 @@ def main():
             if ex.errno != errno.ENOENT:
                 raise
         wsgi.SocketHTTPServer(sock, make_app(conf)).serve_forever()
+
+if __name__ == '__main__':
+    main()

Now, you can just execute __init__.py, e .g. python isso/__init__.py, which results into a DistributionNotFound error. You have to use python setup.py develop (only symlinks) or python setup.py install.
Traceback (most recent call last):
  File "isso/__init__.py", line 31, in <module>
    dist = pkg_resources.get_distribution("isso")
  File "/home/user/.local/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 540, in get_distribution
    dist = get_provider(dist)
  File "/home/user/.local/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 420, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/home/user/.local/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 941, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/user/.local/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 828, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'isso' distribution was not found and is required by the application


We should shift our dependency management setup to poetry.

By using poetry we can handle packages easily.

We can also implement dev and prod libraries for making testing or linting functionality.

This is not under the scope of GSSoC contributions that we are currently accepting.


core dumped when running serve_8B.py

When running serve_8B.py on Tesla V100(Driver Version: 565.57.01, CUDA Version: 12.7), I encountered the error of the following:
terminate called after throwing an instance of 'thrust::system::system_error'
what():  This program was not compiled for SM 70
: cudaErrorInvalidDevice: invalid device ordinal
Aborted (core dumped)

I have found the source of the problem: The Attention operator in the project is implemented based on the FlashInfer library, which does not provide support for the Volta architecture.


Focus Node with key event not working on web

Following code does not work on dartpad
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

final Color darkBlue = Color.fromARGB(255, 18, 32, 47);

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: MyWidget(),
        ),
      ),
    );
  }
}

class MyWidget extends StatefulWidget {
  @override
  _MyWidgetState createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  late FocusNode _focusNode;
  @override
  void initState() {
    super.initState();
    _focusNode = FocusNode(onKey: (node, event) {
      _handleKeyEvents(node, event);
    });
  }

  bool _handleKeyEvents(node, event) {
    if (event.isKeyPressed(LogicalKeyboardKey.arrowDown)) {
      print("Arrow down pressed");
    } else if (event.isKeyPressed(LogicalKeyboardKey.arrowUp)) {
      print("Arrow up pressed");
    }
    return true;
  }

  @override
  Widget build(BuildContext context) {
    return TextField(focusNode: _focusNode);
  }
}

I am also having trouble with this locally on web.
The error on web is
Assertion failed: file:///path/to/flutter/packages/flutter/lib/src/widgets/focus_manager.dart:1677:16
result is bool || result is KeyEventResult
"Value returned from onKey handler must be a non-null bool or KeyEventResult, not Null"

Steps to Reproduce

...
...
...

Logs

Logs

[✓] Flutter (Channel dev, 2.1.0-12.1.pre, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 4.1)
[✓] Connected device (2 available)

As the error message says, you must return a non-null bool or KeyEventResult value. So your onKey callback must return  something.
  _focusNode = FocusNode(onKey: (node, event) {
    return _handleKeyEvents(node, event);
  });

Closing as working as intended.


README.md: Pointless change to retrigger container builds

Hopefully this gets us a container built; xref https://github.com/osbuild/bootc-image-builder/issues/276

We merged https://github.com/osbuild/bootc-image-builder/pull/278 since #276, and we didn't get a new build (I checked the timestamps). Did something change between #278 and now?


MPLabX

created the ignore file for Microchip MPLabX
Reasons for making this change:
No file exists for Microchip MPLabX.  Some C could be used, but that doesn't include all of the files for this particular suite.
Links to documentation supporting these rule changes:
http://microchip.wikidot.com/faq:72
If this is a new template:
http://www.microchip.com/mplab/mplab-x-ide

Links to documentation supporting these rule changes:
http://microchip.wikidot.com/faq:72

Another link:

https://microchipdeveloper.com/mplabx:version-control-working-with

Besides they are not being cited in the Microchip's official list, they are based on a very old list. (The MPLAB X IDE has undergone several changes since this Gist [5999375] creation.)

This duplicate PR (https://github.com/github/gitignore/pull/3091) contains a example: https://github.com/github/gitignore/pull/3091/commits/0e5d7be211159fd329a7ec1bb486467bac9a1a40.


fe-assessment-1

Laptop view:

Table view:

Mobile view:

Metric
Value

alert_status
:white_check_mark: OK

bugs
2

code_smells
6

reliability_rating
D (at least 1 Critical Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:white_check_mark: OK

bugs
2

code_smells
6

reliability_rating
D (at least 1 Critical Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


25 4.1 letter of agreement

US_4.1 (#25)
Implemented the ability to upload a letter of agreement for every event for which one has an accepted application to one's profile, if one is <18 years of age.

Coverage decreased (-1.4%) to 98.571% when pulling cc71273edbabf816e809c0e06647e4ec24601ca0 on 25_4.1_LetterOfAgreement into b7223e7135938e1d52b2bdf7cd3867b08939d962 on master.

Shouldn't this be merged into dev, not master?

PR #74 already adds tests for that function. We could cherry-pick them into this branch if you think it's necessary.

Neither of both PRs have 100% test coverage... Either add the tests to the corresponding PR or wait for the tests to be merged, so we always have 100% coverage.

Coverage remained the same at 100.0% when pulling bf64e6faf71af2c56be807cbf2df660643bc1135 on 25_4.1_LetterOfAgreement into bdd0e79a54e491a5ff176f85b776c83924527bad on dev.

Coverage remained the same at 100.0% when pulling fb38e4f67c5ad8a1d3653a7e04ee33d059113633 on 25_4.1_LetterOfAgreement into bdd0e79a54e491a5ff176f85b776c83924527bad on dev.

Code Review: Approve
Merge it after solve conflicts..

Coverage remained the same at 100.0% when pulling beac7bb6ff3d25e95b87fd1ba188dabac6eaff22 on 25_4.1_LetterOfAgreement into b812a7f8702906cd49d891f5fb094081ae8cddb3 on dev.


[BUG] - cannot get crc to start on windows, system-tray app will not stay running for more than 3 seconds

General information

OS: Windows 10 Home, 21H1
Hypervisor: I assume hyper-v? I wasn't asked to install a hypervisor. Installation unpacked a hyper-v.  I know I had virtualbox installed on the machine at one point.
Did you run crc setup before starting it (Yes/No)?  Yes
Running CRC on: Laptop / Baremetal-Server / VM  Laptop

CRC version
CodeReady Containers version: 1.31.2+19538dab
OpenShift version: 4.8.4 (not embedded in executable)

CRC status

DEBU CodeReady Containers version: 1.31.2+19538dab
DEBU OpenShift version: 4.8.4 (not embedded in executable)
DEBU Running 'crc status'
DEBU Checking file: C:\Users\rob\.crc\machines\crc\.crc-exist
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Machine does not exist. Use 'crc start' to create it

CRC config
- consent-telementry      : yes

Host Operating System

Host Name:                 DESKTOP-LET5SIJ
OS Name:                   Microsoft Windows 10 Home
OS Version:                10.0.19043 N/A Build 19043
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          [sic]
Registered Organization:
Product ID:                00326-10861-73294-AA479
Original Install Date:     7/28/2020, 12:42:34 AM
System Boot Time:          8/23/2021, 1:44:38 PM
System Manufacturer:       Gigabyte Technology Co., Ltd.
System Model:              AB350M-Gaming 3
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: AMD64 Family 23 Model 8 Stepping 2 AuthenticAMD ~3600 Mhz
BIOS Version:              American Megatrends Inc. F22, 3/15/2018
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory:     32,719 MB
Available Physical Memory: 29,200 MB
Virtual Memory: Max Size:  37,583 MB
Virtual Memory: Available: 33,428 MB
Virtual Memory: In Use:    4,155 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\DESKTOP-LET5SIJ
Hotfix(s):                 12 Hotfix(s) Installed.
                           [01]: KB5004331
                           [02]: KB4561600
                           [03]: KB4566785
                           [04]: KB4570334
                           [05]: KB4577266
                           [06]: KB4580325
                           [07]: KB4586864
                           [08]: KB4593175
                           [09]: KB4598481
                           [10]: KB5000736
                           [11]: KB5005033
                           [12]: KB5005260
Network Card(s):           1 NIC(s) Installed.
                           [01]: Realtek PCIe GbE Family Controller
                                 Connection Name: Ethernet 2
                                 DHCP Enabled:    Yes
                                 DHCP Server:     <IP_ADDRESS>
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
                                 [02]: fe80::70b2:b750:a222:d58f
                                 [03]: 2605:a601:a610:5c00:891b:fbf3:bdab:5a87
                                 [04]: 2605:a601:a610:5c00:70b2:b750:a222:d58f
Hyper-V Requirements:      VM Monitor Mode Extensions: Yes
                           Virtualization Enabled In Firmware: Yes
                           Second Level Address Translation: Yes
                           Data Execution Prevention Available: Yes

Steps to reproduce

run crc delete
run crc cleanup
run crc setup --check-only
run crc setup --log-level debug
run crc start --log-level debug
crc fails to start, indicating the tray application is not running.
Try to run the tray application

Expected
I expect the tray application (and then later, the crc) to start.
Actual
The CRC does not start. The important part of the log below is that the system-tray app is not running. When running the system-tray command, the openshift logo appears in the tray for 3 seconds before disappearing. No indication anywhere as to why it was terminated.
Logs
Before gather the logs try following if that fix your issue
$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

https://gist.github.com/robstryker/4f817cb778d7b20f81f26d9c5477d50f

@robstryker OS: Windows 10 Home, 21H1 https://crc.dev/crc/#_microsoft_windows we don't support windows home and in the tray there is check which prevent it to run on windows home addition.

The remaining question is why this invalid configuration hasn't been detected earlier (by crc setup --check-only for example) ?

We have a bug in our windows edition detection, we are using the EditionID to detect if the version of windows is Home, but in fact the name of the edition is "Core"

The tray failing to start will be because of other checks in the chain, Like hyper-v not available, since on windows home it is not available by default


Missing parameter 1 value

MEMORY_MANAGEMENT (1a)
# Any other values for parameter 1 must be individually examined.
Arguments:
Arg1:<PHONE_NUMBER>06194a, The subtype of the bugcheck.
Arg2:<PHONE_NUMBER>000000
Arg3:<PHONE_NUMBER>000200
Arg4:<PHONE_NUMBER>000001

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

ID: de955911-dfbf-33b3-778a-767a5a578a0d
Version Independent ID: 23fb5cbd-5f7d-f7ca-1622-5885020966c2
Content: Bug Check 0x1A MEMORY_MANAGEMENT - Windows drivers
Content Source: windows-driver-docs-pr/debugger/bug-check-0x1a--memory-management.md
Product: windows-hardware
GitHub Login: @DOMARS
Microsoft Alias: domars

@jakeoshins - I'm checking with the dev team to see if we can document the 6194A parameter 1.

@jakeoshins - I added this description for to a month or so back, but missed closing this issue.
0x6194A - An error occurred when decrementing the reference counts on I/O space physical pages which are being unmapped. An entry which is not currently referenced is being dereferenced.  Parameter 2 and 3 describe the caller’s I/O space range being unmapped, and parameter 4 is the I/O space physical page which is expected to be referenced but is not.
Thanks for the interest in our docs and this issue.


Packaging

The NPM run build packaged Mac application has no content. Where is the problem, and how to package the application under Windows?

I found the packaged app, after running, often reported that the module can not find abnormal. such as axios, socket-client.

Having the same issue in windows,getting a blank page and the message cant find module 'is-buffer' in the builded app. If I remove axios from it complains about some other module.
In development all works fine.

Removing node_modules and using yarn solved the problem

@jinjinwa
Have you had a chance to try @ruimgoncalves's solution?

Having the same issue in windows,  yarn and npm i also try,but not solve. can help me,very hury?????

Closing due to inactivity from original issue creator. I'm also pretty sure this is a npm related issue with version 5.3.0. See #364 for more info.

how to package the application under Windows?

These is a question better suited for your selected build tool.


Error on tautomer example

Describe the bug
The tautomer example gets an error when running on a clean install. This error seems to be originating from RDKit.
To Reproduce
Steps to reproduce the behavior:

Follow the instalation instructions
Install and start jupyterlab
Run the cells of the tautomers examples: /examples/tautomer.ipynb
See error

Expected behavior
The example should run without errors.
Error messages
/examples/tautomer.ipynb
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/var/folders/c1/ly1p3sf14rnc9fpcrzq46q440000gp/T/ipykernel_1014/1582100770.py in <module>
      4                    optimizing_engine="ANI2xt",  #ANI2xt is NNP designed for tautomers
      5                    max_confs=10, patience=200, use_gpu=False)
----> 6     tautomer_out = get_stable_tautomers(args, tauto_k=3)

~/miniconda3/envs/autoed-2/lib/python3.7/site-packages/Auto3D/tautomer.py in get_stable_tautomers(args, tauto_k, tauto_window)
     81     """
     82     out = main(args)
---> 83     out_tautomer = select_tautomers(out, tauto_k, tauto_window)
     84     return out_tautomer

~/miniconda3/envs/autoed-2/lib/python3.7/site-packages/Auto3D/tautomer.py in select_tautomers(sdf, k, window)
     63     basename = os.path.basename(sdf).split(".")[0].strip() + "_top_tautomers.sdf"
     64     output_path = os.path.join(folder, basename)
---> 65     with Chem.SDWriter(output_path) as w:
     66         for mol in results:
     67             w.write(mol)

AttributeError: __enter__

System information:

Operating System: macOS Catalina 10.15.7 (19H2026)
Auto3D version: 2.0
Python version: 3.7.16
RDKit version: 2<IP_ADDRESS>
PyTorch version: 1.13.1

Hey @izxle , thanks for the detailed bug information!
This indeed seems like an issue with RDKit. Could you try to update RDkit to be at least 2022.03.1, then run again to see if the problem persists? For me, I run tautomer.ipynb on MBP, and it took just 3 minutes.
conda install "rdkit >= 2022.03.1"

Thanks, it worked now. It took more than an hour to run on my machine.

@izxle do you use GPU? Please check if you have a CUDA device in your system.

@LiuCMU No, I just checked it again. It now took 45 min.

@isayev I have an NVIDIA GeForce GTX 512 MB. But I didn't tell the program to use it, do I have to enable it somehow?

Also, a minor "error" on the order of the cells. The fourth code cell displays the tautomers list but this variable is defined on the next code cell. So if you run it all you get a NameError and need to backtrack after running the fifth code cell to not get the error.

Thanks for the feedback! I will update the tautomer.ipynb example.
It should be within minutes even on the CPU. Could you check you RDKit version (using print(rdkit.__version__)) in the jupyter notebook you are running? Just to make sure the RDKit in this specific environment is expected. I noted that you got 533 total conformers even when max_confs=10, which indicating the this argument is not working. This behavior happens on older RDKit versions.
It runs much faster on GPU. To use GPU, you just need to specify that use_gpu=True:
    args = options(input_path, k=1, enumerate_tautomer=True, tauto_engine="rdkit",
                   optimizing_engine="ANI2xt",  #ANI2xt is NNP designed for tautomers
                   max_confs=10, patience=200, use_gpu=True)

rdkit version = 2022.09.1
I tried the use_gpu=True but it said that it didn't detect any CUDA device.

@izxle You need to install a modern NVIDIA GPU driver and CUDA toolkit. Next, if all work correctly, you could run nvidia-smi from the command line. It will show you available CUDA devices e.g.:

Apparently, there aren't any drivers for MacOS for the NVIDIA GeForce GTX 660M 512 MB.


Update dependencies, CircleCI image and Android SDK

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.66%. Comparing base (47bce10) to head (516ef16).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #107   +/-   ##
=======================================
  Coverage   66.66%   66.66%
=======================================
  Files           1        1
  Lines           3        3
  Branches        1        1
=======================================
  Hits            2        2
  Misses          1        1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


devspace deploy with --wait=true doesn't fail after timeout

What happened?
I run the following deploy command: devspace deploy --skip-build --config=devspace-ci.yaml --timeout=30 --wait=true.
It should wait for pod to be running or fails after given timeout.
The deployed pod status is ImagePullBackOff so it never swtich to Running state, this is an expected behaviour because I was testing an eventual pod deployment failure.
NAMESPACE                          NAME                                       READY   STATUS             RESTARTS      AGE     IP              NODE     NOMINATED NODE   READINESS GATES

pullrequest-1                      api-647b944564-g4rh8                       0/1     ImagePullBackOff   0             6m57s   <IP_ADDRESS>   node-1   <none>           <none>

However:
[info]   Using kube context 'kubernetes-admin@kubernetes'
deployment.apps/api created
[done] √ Successfully deployed pullrequest with kubectl
[done] √ Successfully deployed!

The devspace deploy command above do not check if the pod is in a Running state, as a result it never fails.
What did you expect to happen instead?
Since --wait=true and the pod is never running, it should fail after given timeout.
My devspace.yaml:
version: v1beta11
deployments:
  - name: pullrequest
    namespace: pullrequest-1
    kubectl:
      manifests:
        - manifests/production/api/

Local Environment:

DevSpace Version: 5.18.4
Operating System:  linux
ARCH of the OS: AMD64
Kubernetes Cluster:
Cloud Provider: vanilla k8s on a Hetzner Cloud vps
Kubernetes Version: 1.23.5

Anything else we need to know?

/kind bug

The problem was related to the currently configured namespace.


How to clear or delete the cookie?

How can I clear the JWT cookie from the browser?
Can it be done by javascript, or backend (django-graphql-jwt) code is required?

I have done it with react-cookies
import React, { Component } from 'react'
import cookie from 'react-cookies'

export default class SignOut extends Component {
    componentWillMount() {
        cookie.save('JWT',"")
        cookie.remove('JWT')
    }

    render() {
        return (

You have successfully sign out.

        )
    }
}

Done with axios and django views
Django views
from django.http import HttpResponse def deleteJWT(request):     # print(request.COOKIES)     response = HttpResponse("Cookies Deleted")     response.delete_cookie("JWT", path="/")     return response
And with axios:
`import React, { Component } from 'react'
import axios from 'axios'
import { apiUrl } from "../config.json"
export default class SignOut extends Component {
componentDidMount() {
axios.get(apiUrl + '/delcookie', {withCredentials: true}).then(res => {
window.location="/"
})
}
render() {
    return (

You have successfully sign out.

    )
}

}
`

Why do you need a view that deletes cookie?

Why do you need a view that deletes cookie?

Than how to delete server-side cookies?  I am using jwt_cookie
`from django.urls import path
from graphene_django.views import GraphQLView
from graphql_jwt.decorators import jwt_cookie
urlpatterns = [
path('graphql/', jwt_cookie(GraphQLView.as_view())),
]`

If you would like to logout you could delete the cookie on the client side.
For example
import { Cookies } from 'react-cookie';

const cookie = new Cookies();

cookie.remove("COOKIE_NAME");

One approach is to set the cookie time to be really short, the default is 5 mins, and use a refreshToken to refresh the jwt_token. On the server side you can call revokeToken to revoke the refresh token for the jwt_token. I don't think that there is a function to invalidate a particular jwt_token.
I am guessing that a possible concern is that the jwt_token gets stolen and an attacker may use the remaining time to perform an attack or that you might want to handle multiple login sessions on different computers. Which would require you to invalidate a particular jwt_token. To my knowledge multiple session management has yet to be implemented and is something that can be looked into.

+1 to this -- it would be nice if there was a built-in mutation that deletes a cookie rather than having to switch to using axios or another request library on the client-side if possible

FWIW, I have solved for now like so (note, I'm actually not revoking a token currently, but would love to learn how to do so):
# urls.py
from django.contrib import admin
from django.urls import path

from graphene_django.views import GraphQLView
from graphql_jwt.decorators import jwt_cookie

class CustomGraphQLView(GraphQLView):
    def dispatch(self, request, *args, **kwargs):
        response = super().dispatch(request, *args, **kwargs)
        response = self._delete_cookies_on_response_if_needed(request, response)
        return response

    def _delete_cookies_on_response_if_needed(self, request, response):
        data = self.parse_body(request)
        operation_name = self.get_graphql_params(request, data)[2]

        if operation_name and operation_name == 'Logout':
            response.delete_cookie('JWT')

        return response

urlpatterns = [
    path('admin/', admin.site.urls),
    path('graphql', jwt_cookie(CustomGraphQLView.as_view(graphiql=True))),
]

# schema.py
....

class Logout(graphene.Mutation):
    """ The real action happens in our custom GraphQLView """
    # Just because we have to have a field, we put this; the meat occurs in the
    # GraphQLView where we remove the cookie
    noop = graphene.Field(graphene.Boolean)

    def mutate(self, info):
        # TODO: Consider revoking token here?
        pass

....

How to delete a Token from the server-side (mutation). when a user gives a logout the token will be destroyed from server-side by using mutation? is it possible? If so. please explain.


Default page size for Genotype Calls API from 1000 to 1 Million

Brapi default page size for brapi genotype calls is 1000 for now.
Genotypes are stored usually as matrices. For example, a small dataset with 5000 marker with 1000 samples will have 5 million data points ends up making 5000 requests to server.
It is not an issue when BrAPI data sources are deployed in local servers. With servers deployed in AWS, It creates lot of read I/Os which becomes a problem when I/O cap limits reach fast. (Imagine, If some application sets pageSize as 10 or 1 against a large dataset). We are adding the restriction of minimum page size to the genotype calls.
So, Assuming everyone will face similar problems, as genotype data are usually large, I propose to change default page size from 1000 to 1000000(1000*1000 matrix) just for Genotype Calls, as an effective way to communicate to the developers who develop applications against BrAPI server. Any other way to communicate about the page size restrictions directly through brapi specification is also welcome.

@vg249 with the addition of #451 and the work being done by the Genotyping working group, is this change still helpful or necessary?


Off line generation of environments

Hello!
Thanks for sharing this, pretty amazing work!
Was wondering if there's an easy way to generate environments off line, simply save them to disk without running the agents on them. I haven't been able to figure out where these are made and stored, if that happens.
I just started looking into the codebase, apologies if this was clear.
Best,
Theodore.

Hi, Theodore!
Did you ever find a solution to this? I working with this code base now, and cannot make heads or tail of how to load and save the components of POET.
Best,
Eirik


1.6.4 - 1.12.2 support (legacy fabric)

it would be nice to have branches for legacy and cursed loaders.
even if there is only fabric, having the common files will help with multi-version support.

This template is specifically for targeting multiple mod loaders from a common code base, this is only possible if all loaders use the mappings provided my mojang, which only go back to 1.14.
In all versions before 1.17, forge either used MCP names, or a cursed combination of MCP class names but mojmap method / field names, meaning that it can't work off a common non forge codebase.
Along with that, both "common" minecraft providers that we have used (VanillaGradle and ModDevGradle) have limited version support, VanillaGradle strictly works with mojmaps, so 1.14+, and ModDevGradle, even with their legacy plugin, only works on 1.17+, so there is no good way to provide a common minecraft artifact for the older versions you requested.


Feedback for Video Conference Tool

For the video conference toolbar add an option to either pin or unpin it. If it's pinned it will stay on your screen unless you have the "Hide toolbar when both camera and microphone are unmuted" option turned on. If it's unpinned the bar will go away after a few seconds, and you can customize how long it takes for it to dissapear. I don't use the video conferencing tool much because if I use the mute tool I see the bar on my screen constantly.

Partely tracked in #6374

Great suggestion, I believe this is tracked within #6374 by https://github.com/microsoft/PowerToys/issues/6763


failed to run on ubuntu linux

Installed everything on ubuntu linux. No success running. Apparently this works as is on Windows boxes only.

Can confirm it works on Ubuntu 22.04 with Python 3.10.12
You will also need an NVIDIA GPU with recent drivers and 10-12GB VRAM
I have this fork with a setup and run script for linux :
https://github.com/AmmarkoV/clean-ui
Hope it helps


cibuildwheel fails with missing libraries for musllinux

The<EMAIL_ADDRESS>(v2.16.5, v2.17) fails for Linux distributions using Musl (see screenshot).

@jcfr This is quite new for me and I heavily relied on your usage of the scientific python package template in the s5cmd project. Do you know what the best approach would be to target this issue? Any hint into the right direction is appreciated and likely will save me hours of try & error.

See action: https://github.com/ImagingDataCommons/dcmqi-python-distributions/actions/runs/8800019693

Since the s5cmd excutables repackaged in the context of s5cmd-python-distributions^1 are implemented in Go, they do not have any dependency on a specific C standard library implementation. This means that supporting musl and manylinux (glibc) was straightforward.
In the context of dcmqi, I suggest to exclude musl support at first.

Thank you @jcfr! 🙏

Thank you, @jcfr. This helped a lot!!
I'll exclude musl support for now.
Implemented in 591cd41cad986927e0239b3eac4bb82b0eb047bb.


Improve kernel sorting

Description
Small modification to the regex in order to consider the complete kernel number for version comparison. Fixes #31
Testing

[x] Tested GRUB with external pool for kernels
Shouldn't be that relevant as the code change is not configuration dependent.

Thanks @mkessler001 !


sql integrity error at DFK shutdown after failed tasks

I'm getting the below exception from monitoring code at DFK shutdown. My gut feeling is it is coming from trying to record tasks that have not been submitted for execution (because they are waiting on dependencies) and so don't have a submit time - but I haven't looking in the code to confirm this.
parsl.dataflow.error.DependencyError: [3] Dependency failure from: [[2] Dependency failure from: [AppFailure('[import_ci_hsc] App failed with exit code: 128', 128)]]
2019-06-27 14:41:01 parsl.dataflow.dflow:822 [INFO]  DFK cleanup initiated
INFO:parsl.dataflow.dflow:DFK cleanup initiated
2019-06-27 14:41:01 parsl.dataflow.dflow:733 [INFO]  Summary of tasks in DFK:
INFO:parsl.dataflow.dflow:Summary of tasks in DFK:
2019-06-27 14:41:01 parsl.dataflow.dflow:764 [INFO]  Tasks in state States.done: 1, 5
INFO:parsl.dataflow.dflow:Tasks in state States.done: 1, 5
2019-06-27 14:41:01 parsl.dataflow.dflow:764 [INFO]  Tasks in state States.failed: 0, 4
INFO:parsl.dataflow.dflow:Tasks in state States.failed: 0, 4
2019-06-27 14:41:01 parsl.dataflow.dflow:764 [INFO]  Tasks in state States.dep_fail: 2, 3
INFO:parsl.dataflow.dflow:Tasks in state States.dep_fail: 2, 3
2019-06-27 14:41:01 parsl.dataflow.dflow:771 [INFO]  End of summary
INFO:parsl.dataflow.dflow:End of summary
2019-06-27 14:41:01 parsl.dataflow.dflow:846 [INFO]  Terminating flow_control and strategy threads
INFO:parsl.dataflow.dflow:Terminating flow_control and strategy threads
2019-06-27 14:41:01 parsl.executors.threads:96 [DEBUG]  Done with executor shutdown
DEBUG:parsl.executors.threads:Done with executor shutdown
2019-06-27 14:41:01 parsl.executors.threads:96 [DEBUG]  Done with executor shutdown
DEBUG:parsl.executors.threads:Done with executor shutdown
2019-06-27 14:41:01 parsl.data_provider.data_manager:98 [DEBUG]  Done with executor shutdown
DEBUG:parsl.data_provider.data_manager:Done with executor shutdown
INFO:monitoring_hub:Terminating Monitoring Hub
INFO:monitoring_hub:Waiting Hub to receive all messages and terminate
Process Process-2:
Traceback (most recent call last):
  File "/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/sqlalchemy/1.2.16/lib/python/SQLAlchemy-1.2.16-py3.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1210, in _execute_context
    cursor, statement, parameters, context
  File "/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/sqlalchemy/1.2.16/lib/python/SQLAlchemy-1.2.16-py3.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 533, in do_executemany
    cursor.executemany(statement, parameters)
sqlite3.IntegrityError: NOT NULL constraint failed: task.task_time_submitted

Do you have a script to reproduce this error?

I'll add a test case

I think this is caused by these two lines: https://github.com/Parsl/parsl/blob/f98fdd076b9bb0edb5c9d99fb116de933d777a87/parsl/dataflow/dflow.py#L261-L262
As the tasks failed, so they do not have any submitted_time

#1111 sometimes shows this (athough it never fails in the pytest sense)

This should be fixed by #1109


Something going wrong when clicking "not a spammer" or "nuked" in the "Spammers on site" page.

Something going wrong when clicking "not a spammer" or "nuked" from https://metasmoke.erwaysoftware.com/spammers/site?site=3
In the console:
    something went wrong: update returned 500 NameError in StackExchangeUsersController#dead

    undefined local variable or method `id' for #<StackExchangeUsersController:0x000000062b8238>
    Extracted source (around line #36):

    #34
    #35   def dead
    *36     @user = StackExchangeUser.find params[id]
    #37     if @user.update(still_alive: false)
    #38       render plain: 'ok'
    #39     else

    Extracted source (around line #4):

    #2   module BasicImplicitRender # :nodoc:
    #3     def send_action(method, *args)
    *4       super.tap { default_render unless performed? }
    #5     end
    #6
    #7     def default_render(*args)

    Extracted source (around line #186):

    #184       # which is *not* necessarily the same as the action name.
    #185       def process_action(method_name, *args)
    *186         send_action(method_name, *args)
    #187       end
    #188
    #189       # Actually call the method associated with the action. Override

    Rails.root: /var/railsapps/metasmoke/releases/20170523043909

    Application Trace
    app/controllers/stack_exchange_users_controller.rb:36:in `dead'
    […]

Blaming Rubocop refactor for this - should be :id not id.
Tests and fix needed.


closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: NO_ERROR

I use the v3 version of Microservices. When I republish it, the following error will be reported：
closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: NO_ERROR

We don't support v3 sorry.


Add a update service to update the clients with latest changes in messages in a chat

In this issue, we wish to provide a way for the frontend to effectively receive updates from the backend and efficiently update the display to the players, with minimum requirements of reload
We are going to write a view, which upon query will give updates from the token_id held by the frontend, including all the updates to messages as well as new messages. Please notice once a message entry is posted into the database, it will not be modified in any way; Instead, we will use later messages to update or delete it if necessary
Token ID combined with Update On is a new design and should be updated fields to the model. Token ID is designed to reduce the payload in each query and to effectively track changes, with Update On is to effectively keep track of changes to the msg.
When a msg is created:

A unique PK is created
A unique Token ID is created, which is incremental to this specific chat
Update On is null, as we are not updating any previous code in this request

When a msg is updated:

A new msg is created with a new unique PK and unique and incremental Token ID
The Update_On will be set to the old message it is updating to

When a msg is deleted:

A new msg is created with a new unique PK and unique and incremental Token ID
The Update_On will be set to the old message it is updating to
Content is set to null

[IMPORTANT] When the user request to read the messages:

The user will send the latest token ID it has from the front end
The server will return it with the messages having the token ID greater than the current token ID the frontend has back
The frontend can then update the views based on the results from the payload - it can update previous histories of messages if necessary and can add new messages, all dependent on the Update_On field and Content field of the payload entries

By doing so, we will save a lot of bandwidth and provide a feasible way to real-time update and send messages. To be honest, this is pretty complex and need to be reviewed heavily.
References: Adopted some log update logic from the design of distributed database systems

Reminder: This is gonna be the last issue to be finished in the workflow of creating a chat view for the tournaments. To address this issue, we have the following TODOs:

Add an API endpoint for update service, together with some tests for this API
Connect this API with a getmessage method from the frontend to enable our frontend to "subscribe" to the backend for changes and finish the logic by enabling per second updates

Metrics for closing this issue, which indicates that we have finished all issues related to the major logic of the chat:

The frontend is functioning, enabling users to create and delete messages
The frontend will auto-update every second

Closing Statement:
@MuyanXie worked on coding the frontend and API. @MikeChen012345 worked on reviewing the code and pointing out inefficiencies. @rqueiroz20 worked on peer programming with Sam on the API.

Issue Score: Excellent
Comments:
Very clearly defined description of why the update_on attribute is necessary and what it will look like.


Create an intro

Add an intro about yourself: who are you, what is your strength, why are you here.

My first comment fot intro


@Iconify/tools isnot compatible with vite-plugin-dynamic-import

I use vite-plugin-dynamic-import in my Vue+Vite project. and also, the @iconify-vue is used. During the build of project, the following error appears:

'promises' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>
apparently , the @iconify/tool is not compatible with the plugin.
How can handle this issue?

You are probably using old version of Node or @types/node

Also that file should not be bundled. @iconify/tools package is server only, not for bundles.


About alignment

Hello, I 'm trying to reproduce this good work, and I wonder if the multiPIE dataset needs to be aligned for the first training process?

I get it. Thank you !


DPDK sender/receiver test, threaded node init, threaded testpmd run

sender/receiver test, some major refactoring of init to allow for multiple nodes to init concurrently, also added a testpmd concurrent runner.

Need to make some changes, will ping when they're ready

@squirrelsc ready for another review round 🙂

Please check unresolved comments. If fixed, don't resolve them, I will do that. If it's needed, you can use reaction to track which comments is fixed. Thank you.

@squirrelsc ready for another round of review

@squirrelsc comments addressed


Support for multi-prompting

Hi, from what I gather, nanoGCG does not yet support multi-promp optimizations.
Is this feature going to be implemented?

AFAIK, the original algorithm is designed to work with a single prompt. You would have to revise the algorithm to make this work. I am working on something like that:
https://github.com/ceferisbarov/nanoGCG/tree/batch
You can check the README for code samples (other parts of README are not updated). The code is not polished yet, but it should work.

it wouldn't be difficult to add (we simply need to aggregate gradients over all the prompts in our multi-prompt optimization). there's just added complexity when it comes to, for example, storing prefix caches for all the prompts if using prefix caching. not sure if the feature is worth the added complexity + readability.

@justinwangx Yes, I have seen the original repo, but I think it would also be nice to have a "nano" implementation. Maybe we can keep it as a separate branch for now.

+1. The original repo is too messy and it would be awesome to support multi-prompt optimization here.

I've implemented multi-prompting here in my fork. You guys are welcome to use until it's added.


Proxy to Socksv5

Is it possible?

TBH. Never tried it.
You could try these npm packages:
https://www.npmjs.com/package/socks5-https-client
https://www.npmjs.com/package/socks5-http-client
And configure the proxy agent similar to:
https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/corporate-proxy.md
Basically provide a socksv5 compatible agent as config.
Let me know if this works or not.

Cool. I'll let you know. Thanks!

Hi chimurai. We enabled http proxy and it's working now. :)
I have a question though. Since this configuration is proxy-agent or as client, what does the target property really do especially the agent is already pointing to a proxy server?
var options = {
    target: 'http://localhost:3000',
    agent: new HttpsProxyAgent('http://internal-squid-svr:3128')
};

var apiProxy = proxy('/api', options);

Glad to hear you've found a working setup.
Mind sharing which npm module you used for HttpsProxyAgent?

You can see target as application logic. i.e. proxy /api request to this target.
How the actual requests/connection are handled is determined by agent
https://nodejs.org/dist/latest-v9.x/docs/api/http.html#http_class_http_agent
These requests can be configured to go through another proxy as well...

The npm proxy module is the one from the link you sent above, http-proxy-agent. :)
Another question. When my request is https, I don't see the traffic goes to our proxy. What could be wrong in my setup? I'm using the same configuration from https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/corporate-proxy.md
Here is my setup. On my laptop, I'm running http-proxy-middle-ware and http-proxy-agent. Let's say our http proxy is <IP_ADDRESS>:2301
var proxyConfig = proxy({
  agent: new HttpsProxyAgent('http://<IP_ADDRESS>:2301'),
  target: 'http://website-A.example.com'
});
app.use('/', proxyConfig);

However, I also need to reach https://website-B.example.com and this is the one that I cannot reach. However, if I configure my browser's network proxy setting pointing to http://<IP_ADDRESS>:2301, I can reach https://website-B.example.com. What could be missing on my code?

can target: be an array like
target: ['http://website-A.example.com', 'http://website-B.example.com']

I got it working :)
I created two entries
app.use('/app/path', proxyHttpConfig);
app.use('/app/another/path', proxyHttpsConfig); // <- this is working now :)
app.use('/', proxyHttpConfig);


Problem with sound.

My script
`from win11toast import toast
toast('Привет!', 'Pomidor666 , добро пожаловать!', audio=r"C:\Users\unknown\Downloads\Music\notif.wav" , app_id='Система' , icon= 'C:\Users\unknown\Pictures\666.png')`
Toast notifications appear, everything is fine, but the sound overlaps itself (duplicates) and as a result it seems like the sound has some kind of echo.

The issue is from lines 346/347 in win11toast.py
if audio and isinstance(audio, str) and not audio.startswith('ms'):
        futures.append(loop.create_task(play_sound(audio)))

Comment these two lines out and the duplication goes away. The 'notify' function also adds audio when the audio is a file string so it's added twice.