feat(webhook): adds webhook that handles fetching annotations from external integration

For V1, the annotations API makes an HTTP request out to an external integrator and asks for annotations that should placed on the package page. This annotation information will then be rendered on the package page as a widget.
As an example, we might talk to a security integration, like Lift, and ask whether there are any known security vulnerabilities on the yargs module.
In this pull request we, I introduce logic that:

allows annotations to be fetched for a given package name.

it first checks if there are annotations in cache for this package, and returns them from cache.
if it misses cache, it queries the external services and places the response in cache.

see also: https://github.com/npm/annotation-poller which will consume from this API.
reviewers: @nexdrew, @soldair

Coverage decreased (-4.3%) to 95.714% when pulling b2657546ba702f74ea17325b517dd8326f47783a on wearing-implementation-hat into 20944aaeb44d721197f0b098dbd37bbe9fe7ee53 on master.

Coverage decreased (-4.3%) to 95.714% when pulling 9e5a6e71e76a1a59a895dfb164ccb661242a8fcd on wearing-implementation-hat into 20944aaeb44d721197f0b098dbd37bbe9fe7ee53 on master.


make: *** [fetch] Error 1

Getting the following error, seems the string /opt/android/manifests is getting picked up as a git repository.
~/os$ make DEVICE=marlin keys
docker run
-it
-h "android"
-v android:/home/build
-v /home/elproducto/os:/opt/android
hashbang/os bash -c "fetch"
Get /opt/android/manifests
fatal: '/opt/android/manifests' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: '/opt/android/manifests' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: cannot obtain manifest /opt/android/manifests
Makefile:28: recipe for target 'fetch' failed
make: *** [fetch] Error 1

If you are running latest master, the manifests are now committed as part of the repo like a "lockfile". They end up in /opt/android/manifests only if you have rebuilt your image.
"make image" first then see if you are sorted

@lrvick thanks for your help through these issues.  make image command worked successfully, however when I issue the "make DEVICE=marlin keys" command I got the same error as above.  Next thing I tried was removing all docker images, and volumes.  I then issued the "make DEVICE=marlin keys" command again and got the same error as above.

Okay I was able to reproduce in a clean env, and made some fixes in master. Give it another go.

Tried Make keys command again. I got the following after about 35 minutes.
Resolving deltas: 100% (1910318/1910318), done.
From https://android.googlesource.com/platform/frameworks/base

[new tag]                 android-9.0.0_r30 -> android-9.0.0_r30

error: Exited sync due to fetch errors
Makefile:28: recipe for target 'fetch' failed
make: *** [fetch] Error 1

If you do this multiple times do you get the same results? I can't reproduce this, but could just be a network blip.

NVM reproduced by deleting my basedir and starting from scratch again. Pushed manifest updates to master. Looks like AndroidHardeningProject force pushed to one of their repos.

I got past make key command.  However, got the following with make DEVICE=marlin clean build release.  Is there any recommendations on how to speedup build process, i threw 8 vCPU at the VM, but does not seem to speed things up.  I am kicking of the make ... release command again to see if it get past this error.
ERROR at //skia/BUILD.gn:54:13: Undefined identifier   defines = skia_for_chromium_defines             ^------------------------ See //BUILD.gn:71:5: which caused the file to be included.     "//skia:skia_unittests",     ^---------------------- Makefile:57: recipe for target 'build' failed make: *** [build] Error 1

That error is a transient one that feels like a race condition. Build again
and see if it keeps going. I just did multiple successfull builds from
master.
On Fri, Feb 8, 2019 at 8:29 AM elproducto<EMAIL_ADDRESS>wrote:

I got past make key command. However, got the following with make
DEVICE=marlin clean build release. Is there any recommendations on how to
speedup build process, i threw 8 vCPU at the VM, but does not seem to speed
things up. I am kicking of the make ... release command again to see if it
get past this error.
ERROR at //skia/BUILD.gn:54:13: Undefined identifier defines =
skia_for_chromium_defines ^------------------------ See //BUILD.gn:71:5:
which caused the file to be included. "//skia:skia_unittests",
^---------------------- Makefile:57: recipe for target 'build' failed make:
*** [build] Error 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hashbang/os/issues/18#issuecomment-461861128, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEOUGxDX4dHK_xEKPCQu6CqkaSpSCAJks5vLaX7gaJpZM4akc4x
.

--
Lance R. Vick

Cell    -<PHONE_NUMBER>
IRC     -<EMAIL_ADDRESS>Website -  http://lrvick.net
PGP Key -  http://lrvick.net/0x36C8AAA9.asc

Build successful but error int the next step.
`
build completed successfully
/home/build
docker run
-it
-h "android"
-v android:/home/build
-v /home/elproducto/os:/opt/android
-v /home/elproducto/os/release:/home/build/release
-e DEVICE=marlin
hashbang/os release
Running sign_target_files_apks
Enter password for /home/build/keys/marlin/media key>
Enter password for /home/build/keys/marlin/platform key>
Enter password for /home/build/keys/marlin/releasekey key>
Enter password for /home/build/keys/marlin/shared key>
Rewriting BOOT/RAMDISK/default.prop:
Rewriting BOOT/RAMDISK/prop.default:
replace:  ro.bootimage.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/test-keys
with:  ro.bootimage.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/release-keys
replace:  ro.build.display.id=PQ2A.190205.003 test-keys
with:  ro.build.display.id=PQ2A.190205.003
replace:  ro.build.tags=test-keys
with:  ro.build.tags=release-keys
replace:  ro.build.description=aosp_marlin-user 9 PQ2A.190205.003 12022314 test-keys
with:  ro.build.description=aosp_marlin-user 9 PQ2A.190205.003 12022314 release-keys
replace:  ro.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/test-keys
with:  ro.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/release-keys
replace:  ro.vendor.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/test-keys
with:  ro.vendor.build.fingerprint=Android/aosp_marlin/marlin:9/PQ2A.190205.003/12022314:user/release-keys
Rewriting ROOT/default.prop:
signing: BasicDreams.apk                         (/home/build/keys/marlin/releasekey)
java.lang.ClassCastException: org.bouncycastle.asn1.DLSequence cannot be cast to org.bouncycastle.asn1.ASN1Integer
at org.bouncycastle.asn1.pkcs.PrivateKeyInfo.(PrivateKeyInfo.java:79)
at org.bouncycastle.asn1.pkcs.PrivateKeyInfo.getInstance(PrivateKeyInfo.java:45)
at com.android.signapk.SignApk.readPrivateKey(SignApk.java:273)
at com.android.signapk.SignApk.main(SignApk.java:1024)
ERROR: signapk.jar failed: return code 1
Makefile:92: recipe for target 'release' failed
make: *** [release] Error 1
`

Overhauled master to contain everything to one directory and get rid of a lot of the various permissions issues etc we keep seeing, and make it a lot easier to develop on.
You may need to copy over keys and start from scratch though.
Just did end to end build/release for marlin and crosshatch

Got an error from before below.  What OS is your docker host?
make DEVICE=marlin keys
Get /home/build/manifests
fatal: '/home/build/manifests' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: '/home/build/manifests' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: cannot obtain manifest /home/build/manifests
Makefile:28: recipe for target 'fetch' failed
make: *** [fetch] Error 1

I tracked down this error and a few others, mostly tied to dirty trees between sweeping changes I have been making.
I cleaned up the "clean" system, and added a "make mrproper" to nuke the world and start fresh (but don't delete keys).
Also everything will now be locally stored in the "$PWD/build" directory.
You will probably have to nuke and build from scratch without some data transplanting, but please give it another go.
I actually tested on three systems this time :-P
Once I get someone else to confirm this builds for them I'll tag and get in the habit of tagging at known safe build points now that I know other people are using this.

Tested again got the following error.
fatal: not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). skipping tools/loganalysis/ skipping tools/metalava/ skipping tools/repohooks/ skipping tools/test/connectivity/ skipping tools/tradefederation/contrib/ skipping tools/tradefederation/core/ skipping vendor/android-prepare-vendor/ Makefile:35: recipe for target 'fetch' failed make: *** [fetch] Error 128

This has been fixed for a while now. If it pops up again please feel free to reopen. Thanks.


License Request

Hello,
Could you put a license, ideally something very permissive, on this project?
Thanks.

Apologies, I somehow missed the "MIT License" on the side.


Add esp_pthread function implementations for linux target (IDFGH-13489)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Current esp32 implementations for linux target are just empty functions. This issue is to add functionality to such functions.

Thanks for reporting and contribution again, changes have been merged withhttps://github.com/espressif/esp-idf/commit/4c7d9f9859e13bfed9137ef59418a06b18e848c8 in PR https://github.com/espressif/esp-idf/pull/14384.


EventHandler to work with multiple events

At this point vtimer.events.EventHandler only stores one event. A second event will overwrite it. We need to handle this in some way:

Store and consume an event queue.
Simply throw an exception if the event is overwritten.

It's a bit ugly, but now if the event is overwritten we throw a EventOverwriteException. If we try to retrieve a nonexistent event we throw a NoEventException.


Improve Navbar

The Home and the Data navlink are doing the same thing. Also we can link the logo to home such that whenever user clicks on Logo they are redirected to https://sa-l-d-app.vercel.app/

I would like to work on this issue. Please assign it to me under GSSoC'23.

If possible share the video or image .

You can test this by clicking on the Data link and Home link on the Navbar.

is this same as ur issue if yes tell me so  that i can re assign that p person.  #71

Yes, It is same. You can assign it to me as I raised the issue first.

really sorry bro that issue is merged and closed . Please after next time don't forget to chk if someone is trying to take ur issue or not.


Stage 4 tracking

This proposal achieved stage 3 at the July 2018 meeting. This is a tracking issue for getting stage 4.

I've started writing test262 tests.

I'll prepare the spec PR, once #20 is merged.

I was looking around for a definition of “significant in-the-field experience” to better that final remaining tracking item and only turned up the document originating the phrase + people asking what the definition is :)
Not super important since this is just me being curious, but can anybody clarify it?

Nope! :-D That bullet point is the one that we don’t have concrete consensus on, and that we debate case by case on every proposal seeking stage 4.


Guild Quests Distinction

I have noticed Guild Quests cant be differenciated from any other quests. in /quests they appear as regular quests, and there is no section for them in /questlore. This happens with all Guild Quests. This can be easily solved with either creating a section for them in /questlore , and adding a ''tag'' in /quests (Example: Flight of the Light Brigade Chatter has been heard... and see if you can learn more -Vulpe) [I dont really know what guild that quest is for] Basically adding a tag at the end of the description, so people are able to know which guild that quest is for.

This will be fixed in the next big update. Stay tuned


Update minimist package

What
Update minimist package
Mitigate against https://security.snyk.io/vuln/SNYK-JS-MINIMIST-559764

🚨⚠ Please do not merge this pull request via the GitHub UI ⚠🚨

yeah, dependabot not happy though
Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).


Enhancement: include platform and arch in the asset name

To prevent people from accidentally overwriting an asset resource from different platforms into their live configuration, we should extend the asset name as encoded in the metadata block to include platform and arch.

yikes!
There is a bug  in the formatting of the name.
Need to use dashes between
Currently Bad:
name: debian amd64 - sensu-plugins-memory-checks
Strawman Fix:
sensu-plugins-memory-checks_debian_amd64

sensu-plugins-memory-checks_debian_amd64 format is deployed to staging now

I just pulled:
https://bonsai-asset-index-staging.herokuapp.com/assets/jspaleta/sensu-plugins-http/versions/5.2.0-jef.1
For centos amd64... sensuctl create -f installed it.

i added tags in staging as well,   the tags annotation looks good too.


Visualization page subtask

Visualizations:
Title: Instance Segmentation Visualizations using BlastoSPIM
Text: Below are interactive visualization examples for mouse embryo nuclei
at the 8, 16, 32, 64, and 128 cell stage.
(the first four of these are now under: Segmentation detail Visualizations (bottom of page)
visualization of 8,16,32,64 and 100+ embryos - we need to give you the one for 100+

Visualization page is here.
https://users.flatironinstitute.org/~awatters/blastospim/html/vis.html

I'm closing this since I got no complaints or corrections.


ssl cert trustAll value type should be boolean and not string

found by @aleruz refer discussion here: https://github.com/intuit/karate/issues/193#issuecomment-491701243

@aleruz can you confirm that the fix works which means the doc does not need to be changed

@ptrthomas can confirm that it works in develop branch.
Still, I think that part of doc is not clear enough and, apart from the "boolean" part to revert, the other still applies (not mandatoriness of some attributes). wdyt?
When will this version be released?

@aleruz ok - can you adjust the PR one more time for the mandatory-ness part. we can release 0.9.3.RC2 within a week

@ptrthomas can I find the snapshot release somewhere? would like to use it to start my project, so to have this and other things fixed.

@aleruz yes 0.9.3.RC2 - and twitter is the best way to be notified of releases: https://twitter.com/KarateDSL

@ptrthomas thanks. Will use that. I was also searching for the snapshot of the current develop, since sometimes this could be helpful (even if not stable).

@aleruz we don't have snapshots as of now. maybe later

@ptrthomas not sure if intended, but atm the netty library karate-netty is not present in the version 0.9.3.RC2

@aleruz yes that's intended, the classes needed are all in karate-core now since https://github.com/intuit/karate/releases/tag/v0.9.0 - but we now are stopping the artifact
thanks for pointing it out though.

@ptrthomas as an additional remark, karate-netty was also having net.masterthought » cucumber-reporting as dependency that is now missing in the karate-core. Not sure where it fits better, but I think it should be somewhere.

@aleruz ah, you are right. the thing is, that item brings in an awful lot of extra dependencies and we don't want that. the official docs for adding that are here:
I will update the release notes, draft here: https://github.com/intuit/karate/wiki/v0.9.3

released 0.9.3


Migrate multi listing submissions

This got complicated when we started to consider sub-categories!
See af063eca12d82ded8a2568d1c61a54320b7b60e2 for my attempt to deal with them. I'm not sure how well the code speaks for itself; happy to get on a call if that would be easier/better.
The one_time:split_listings rake task should be idempotent on repeated runs, though it will always have to pull and examine any listings with sub-categories (since the query looks for any listing with multiple tags). I formatted the puts output to be csv compatible with 3 columns:

an indicator for visual scanning (# - listing being processed, - listing after processing, + newly created listings),
the listing id (original or new),
tag_list

Will definitely need some 👀 to verify my specs/logic and do some more testing.

Force pushed with a simple TagSplitter algorithm, see af063eca12d82ded8a2568d1c61a54320b7b60e2.


Added Links for Prerequisites download , Formatted Readme for Better Look

Description

Added Links for direct download/installing Prerequisites in Readme
Formatted Readme
- Center align logo.
- Center align badges
- Better look

Contribution Guidelines
Please Read through the Contribution Guidelines.
Fixed Issues

None

"BEFORE" and "AFTER" output
BEFORE
N.A
AFTER
N.A
Contribution checklist

[x] I have read the Contributing Guidelines.
[ ] The commits refer to an active issue in the repository.
[ ] I have added automated testing to cover this case.

Notes
These Commits are not in relation of any active issues. Also have not added automated testing for these.

I'm sorry but we cannot accept these kind of changes.


GitHub Action Not Working

Need to update project URL in GitHub action to fix it due to repo name change.

Closed as of #65.


Current resume training does not record and continue the epoch and step number correctly

Another question is about 'find_model' function and opt.load_state_dict(state_dict["opt"]), you may need to modify these two places when you are doing resume training.

Thanks for spotting this! We will update accordingly


Alexandra Lysuenko

Please, rename your Pull Request using the following template:
Laboratory work #1, Kuznetsova Valeriya - 19FPL1

Open another PR with lab_2.


Fix error when very large numbers are typed into blocks

Before, they just compiled to "Infinity" and you got a "name not recognized" error.

Could we add tests?


Added name and coordinates

Thanks for contributing! But you have made the pull request to your own repository. Go to https://github.com/abhijitparida/hacktobermap and then make a pull request.

Whoops! Thanks for bringing this to my attention!


https://github.com/microsoft/vscode-remote-repositories-github/issues/488

https://github.com/microsoft/vscode-remote-repositories-github/issues/491

#491


Add back intentional typo in RFC 3013

The typo which was corrected in 1ddcc5fda380fc5b5be21532ae1c9d15d77105d7 was intentional as the purpose of RFC 3013 is to enable the Rust compiler to detect typos such as the example given. I've reverted the change and added a comment to draw attention to the intentional typo.
Rendered

Sorry about that, if I'd expanded the file contents beyond what GitHub showed in the diff that would've been obvious even without the new comment

No worries! I just noticed it because I was reading the RFC and could not find the typo it was talking about 😆


Spatial subset and not use DEM for the coastal areas

Dear Colleges,
Could you please guide me the options in startmaja program to subset a small regions for quick processing. My computer is not strong enough to process entire scene of Sentinel - 2. I checked the options in startmaja but found no solutions.
In addition, can we turn off the functions of creating and using DEM during the process? Since my regions are the coastal areas, all the land will be masked after the atmospheric correction, therefore the DEM will not be necessary to me.
Recently, I processed a Sentinel - 2 scene but got the following error with DEM:
./startmaja -f /home/metal/Downloads/maja/MAJA-4.2.1/folder/folder.txt -t 60HVD
2020-10-23 14:51:49,572 [INFO ] =============This is Start_Maja v4.2.0==============
2020-10-23 14:51:49,793 [INFO ] Detecting input products...
2020-10-23 14:51:49,854 [INFO ] 1 L1C product(s) detected for tile 60HVD in /home/metal/Downloads/maja/MAJA-4.2.1/folder/work/S2-L1C/60HVD
2020-10-23 14:51:49,855 [WARNI] No L2A products detected for tile 60HVD in /home/metal/Downloads/maja/MAJA-4.2.1/folder/work/S2-L2A/60HVD
2020-10-23 14:51:49,920 [INFO ] Skipping CAMS file detection.
2020-10-23 14:51:49,920 [INFO ] Checking GIPP files
2020-10-23 14:51:49,920 [INFO ] Setting up GIPP folder: /home/metal/Downloads/maja/MAJA-4.2.1/folder/gipp
2020-10-23 14:51:49,934 [INFO ] Cannot find GIPP for SENTINEL2_NATIF. Will attempt to download it.
2020-10-23 14:51:49,935 [INFO ] Searching for DTM
2020-10-23 14:51:49,937 [INFO ] Cannot find DTM. Will attempt to download it for type 'any'
2020-10-23 14:51:49,937 [INFO ] Attempting to download DTM...
No input files selected.
Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*
                     [-ps pixelsize_x pixelsize_y] [-tap] [-separate] [-q] [-v] [-pct]
                     [-ul_lr ulx uly lrx lry] [-init "value [value...]"]
                     [-n nodata_value] [-a_nodata output_nodata_value]
                     [-ot datatype] [-createonly] input_files
                     [--help-general]

2020-10-23 14:52:17,055 [ERROR] Command 'gdal_merge.py  -n -32767 -a_nodata 0 -q -o /tmp/raw_dem_lt1fwc75/eudem_10m.tif' returned non-zero exit status 1.
/home/metal/Downloads/maja/MAJA-4.2.1/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:114: RuntimeWarning: divide by zero encountered in true_divide
  aspect = np.where(dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme))
/home/metal/Downloads/maja/MAJA-4.2.1/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:114: RuntimeWarning: invalid value encountered in true_divide
  aspect = np.where(dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme))
/home/metal/Downloads/maja/MAJA-4.2.1/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:114: RuntimeWarning: invalid value encountered in arccos
  aspect = np.where(dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme))
Killed

Thank you for all supports!
Thang

Dear Than,
I will let @petket-5 or @jerome-colin answer for your issue with DEM generation (it looks as if your computer was not able to download the input DTMs), but regarding the first question, we don't have implemented yet the possibility to run MAJA on a subset of Sentinel-2 images.  There is however another possibility, which is to use PEPS on demand processing facility for MAJA :
https://github.com/olivierhagolle/maja_peps
Best regards,
Olivier

Dear Olivier,
Many thanks to your quick response. I successfully processed a Sentinel - 2 from L1C to L2A. It's quite costly using my computer (need 4 cores and 8 Gb RAM) but finally done.
In the meanwhile, I will try to process entire scene while waiting for the subset functions from MAJA.
Cheers,
Thang


Add proxies and contexts to tests

"Not achievable until #10 and #12 are done." (Lewis)

17/09/2023 - Converted from Draft to Issue

Since we are now focusing on the HttpClient test suite, I will close this issue as stale.


update tf2's executable detection

tf2 doesn't show up in discord since the executable changed with a new update, if possible it could be updated to detect the new one

Indeed, the new executable name is 'tf_linux64'


Python design and architecture review

We really need a thorough read trough of our Python code, and a review of the architecture.
A suggestion of action could be could have a hour'ish session with Sebastian from Halfspace.

@Victor Petren Hansen from Halfspace will review Python (Collaboration with Sebastian)
Regarding Spark: @slb-halfspace will review here
Lets have a 15 min kick-off @lasrinnil  when you have time


[Support Request] Artis-Recrafted

Artis-Recrafted allows for registering custom tables and recipe types, unfortunately it doesn't currently have native EMI support.

Artis-Recrafted added native EMI support in version 4.0.0 https://modrinth.com/mod/artisrecrafted/version/4.0.0+1.20


Keeping encoder fixed for cLR-GAN step

Hello,
In the original paper the authors state they keep the encoder fixed when performing the update step for cLR-GAN. However, in your code it seems that it is being updated. Are you aware of this?
Thanks

Thanks for the comment.
Can you point out the description in the paper about fixing the encoder while updating cLR-GAN?
I cannot find it and updating both the encoder and the generator makes more sense to me.

Hi, thanks for your reply.
A correction to my comment: it is specifically for the L1 loss on the latent code rather than cLR-GAN as a whole. It is in section 4, under subtitle "Training details":

We only update G for the L1 loss L1latent(G, E) on the latent code (Equation 7), while keeping E fixed. We found optimizing G and E simultaneously for the loss would encourage G and E to hide the information of the latent code without learning meaningful modes.

I also just noticed another difference. In the same section they write:

For the encoder, only the predicted mean is used in cLR-GAN.

But it seems in your code you are sampling from the approximate posterior.
Thanks

I couldn't find it because I followed the old version of the paper.
I'll test these two changes and update the repo later.
Thanks so much.


Not clear how to set admin username and password

It is not clearly described how to add admin usernamen and password.
Password has to be set through a secrets block which is not in line with how the resource itself functions.

Will update the example and/or readme, and at this moment it is not possible to do this for Linux VM's yet.

fixed by #67


SciPy v1.2.0rc1 cannot be imported on Python 2.7.15

My title says it all, basically.
When I try to import scipy.stats on Python 2.7.15 using SciPy v1.2.0rc1 (which, apparently, is on PyPI despite it being a development version), I get the following error (which was generated by Travis CI):
import scipy.stats
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/stats/__init__.py:367: in <module>
    from .stats import *
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/stats/stats.py:173: in <module>
    from . import distributions
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/stats/distributions.py:10: in <module>
    from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/stats/_distn_infrastructure.py:16: in <module>
    from scipy.misc import doccer
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/misc/__init__.py:68: in <module>
    from scipy.interpolate._pade import pade as _pade
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/interpolate/__init__.py:175: in <module>
    from .interpolate import *
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/interpolate/interpolate.py:32: in <module>
    from .interpnd import _ndim_coords_from_arrays
interpnd.pyx:1: in init scipy.interpolate.interpnd
    ???
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/spatial/__init__.py:104: in <module>
    from . import transform
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/spatial/transform/__init__.py:22: in <module>
    from .rotation import Rotation, Slerp
E     File "/home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/spatial/transform/rotation.py", line 1574
E   SyntaxError: Non-ASCII character '\xe2' in file /home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/scipy/spatial/transform/rotation.py on line 1575, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

If I attempt to do the same on Python 3.5/3.6/3.7, it works perfectly fine.
I'm using NumPy 1.15.4 and the Xenial distribution on Travis CI.

using SciPy v1.2.0rc1 (which, apparently, is on PyPI despite it being a development version)

You should only be getting that when you do pip install scipy --pre (to select pre-releases)

the error is odd, that should have been caught by CI if it's a real issue

using SciPy v1.2.0rc1 (which, apparently, is on PyPI despite it being a development version)

You should only be getting that when you do pip install scipy --pre (to select pre-releases)

Yeah, that is what I thought as well, but I simply use pip install -r requirements.txt, which lists scipy>=1.0.0.

what pip version did you use?

I cannot reproduce that:
$ pip --version
pip 18.1 from /Users/rgommers/anaconda3/envs/pip-pre/lib/python3.6/site-packages/pip (python 3.6)

$ cat requirements.txt
scipy>=1.0.0

$ pip install -r requirements.txt
Collecting scipy>=1.0.0 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/a0/b6/70bf61c1badb5fea82d4c558e05e76c2dee5e77bb072fe465d7c7a87287d/scipy-1.1.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: numpy>=1.8.2 in /Users/rgommers/anaconda3/envs/pip-pre/lib/python3.6/site-packages (from scipy>=1.0.0->-r requirements.txt (line 1)) (1.15.4)
Installing collected packages: scipy
Successfully installed scipy-1.1.0

And on https://pypi.org/project/scipy/#history 1.2.0rc1 is correctly labelled as a pre-release.
My pip is the one packaged by conda though - maybe it's not 100% identical to yours. How did you install pip?

My pip is the one packaged by conda though - maybe it's not 100% identical to yours. How did you install pip?
python -m pip install --disable-pip-version-check --user --upgrade pip.
However, I am using Conda as well.

But, installing SciPy is not the problem, since that succeeds.
The problem is trying to import scipy.stats.

Well, there are 2 problems. Somehow you're getting the wrong version, and then you get an exception that shouldn't be there.

Well, there are 2 problems. Somehow you're getting the wrong version, and then you get an exception that shouldn't be there.

Oh, wait, hold on.
SciPy is installed by the execution of python setup.py install, where 'scipy>=1.0.0' is listed in the install_requires argument in the setup function.
It does not use the pip install -r requirements.txt method.

python setup.py install where exactly?

python setup.py install where exactly?

Inside the directory of the package that I am trying to install.
However, I think that automatically uses easy-install if I am not mistaken, since the installation process generates:
Searching for scipy>=1.0.0
Reading https://pypi.org/simple/scipy/
Downloading https://files.pythonhosted.org/packages/44/9b/4df7879d580f90f6a9841f16a737624819b83048ba5f0c3a3d905268f836/scipy-1.2.0rc1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=38857eb49f7e38d3ec079772225a79235d0bd847e24d2fa8c9a9fa70ee69f0a2
Best match: scipy 1.2.0rc1
Processing scipy-1.2.0rc1-cp27-cp27mu-manylinux1_x86_64.whl
Installing scipy-1.2.0rc1-cp27-cp27mu-manylinux1_x86_64.whl to /home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages
writing requirements to /home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg/EGG-INFO/requires.txt
Adding scipy 1.2.0rc1 to easy-install.pth file
Installed /home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/scipy-1.2.0rc1-py2.7-linux-x86_64.egg

However, I think that automatically uses easy-install if I am not mistaken, since the installation process generates:

Ah yes, good catch. Well, that can't be helped then. The advice you'll get from packaging people is simply to not use python setup.py install but pip install . instead.

it used a cached SciPy build. That might make a difference.

No that shouldn't matter - pip first determines the version it wants, and then checks its cache.

The bug is real, can reproduce. It seems the tests aren't run for spatial.transform on TravisCI, or that should have failed.

However, I think that automatically uses easy-install if I am not mistaken, since the installation process generates:

Ah yes, good catch. Well, that can't be helped then. The advice you'll get from packaging people is simply to not use python setup.py install but pip install . instead.

Ah, yes, I have heard it before, but I am so used to using python setup.py install and never had any problems with that at all (until now I guess) that I never changed my ways of using it.
Guess now is the time to do that.

@rgommers wrote

The bug is real,

Ralf, how did you reproduce the bug?  With Mac OS X 10.9 running Python 2.7.15, I didn't get the error with either scipy master or with 1.2.0rc1 installed with pip.
It looks like the problem is the non-ascii opening and closing double-quotes around the title of a reference.

I don't have a full py27 install at hand, but a basic py27 installed with conda and then
cd scipy/spatial/transform
python2.7 rotation.py

shows me the SyntaxError.

It looks like the problem is the non-ascii opening and closing double-quotes around the title of a reference.

Indeed, fix in gh-9541. Still need to investigate why that's showing up only now.

Could have to do with import order perhaps, or be platform dependent. The issue shows up for @1313e when he does import scipy.stats. The tests never do that. There's # -*- coding: utf-8 -*- comments scattered around in various files. The encoding should be set per file according to PEP 263, but perhaps that's not the case?

Could have to do with import order perhaps, or be platform dependent. The issue shows up for @1313e when he does import scipy.stats. The tests never do that. There's # -*- coding: utf-8 -*- comments scattered around in various files. The encoding should be set per file according to PEP 263, but perhaps that's not the case?

In my own package, I always use # -*- coding: utf-8 -*- comments everywhere as well.
The import scipy.stats is however done by an external package (mlxtend), which does not do that.
I obviously did not really know that that might be the issue, so I came here.

I don't get the syntax error with import stats:
~$ ~/miniconda2/bin/python
Python 2.7.15 |Anaconda, Inc.| (default, Nov 13 2018, 17:07:45)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.__version__
'1.2.0rc1'
>>> import scipy.stats
>>>
>>> from scipy.spatial.transform.rotation import Rotation
>>>

@WarrenWeckesser do you get the error with python2.7 rotation.py?

Has anyone solved this yet? I am still getting this error while using with tensorflow

@crizzy9 it's solved in scipy 1.2.1, please upgrade to that version


Outputsize

Hey,
are the inputsize and the outputsize of the images equal?

They should be if you want your model to work properly.


CI failure: coreDns not ready within specified time after restart（R00005）

Set title to be in the format CI:
coreDns not ready within specified time after restart（R00005）
Copy-paste the output the test failure.
  Unexpected error:
      <*errors.errorString | 0xc000270540>: {s: "context timeout"}
      context timeout
  occurred
  In [It] at: /home/runner/work/spiderpool/spiderpool/test/e2e/reliability/reliability_test.go:49

Upload the zip file generated from that test failure.
e2edebugLog 35.txt
Copy-paste the link of the CI build where that test failure has happen.
https://github.com/spidernet-io/spiderpool/runs/8171901310?check_suite_focus=true
Include any output from logs that you think may be relevant (to ease GitHub searches).

Waiting

fix #683


feat: first release as official asyncapi plugin with automation

automated releases on GitHub based on semantic-release and conventional commits
additional workflow for releasing extensions to official VSCode Marketplace and Open one from Eclipse
secrets are already added o repo
ignore during review all workflows from .github/workflows/ as they were all just updated with latest version we use in org
the only relevant workflow for review is .github/workflows/release-to-marketplaces.yml

I guess we are ready to merge, right? and see the world collapse 😆
I suggest we merge on Tuesday as I take some days off, and won't be able to react if something is configured wrong

@ivangsa sorry for delay 😅 are you there this week in case we get some issues after the merge?

yes, I will be online until friday..

@ivangsa the GitHub release was created without an issue, but will investigate why marketplace release was skipped


Appstudio update test-component-pac-mxzx

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-mxzx-on-pull-request has successfully validated your commit.


Add "default" section in createReducer()

There are use cases for this. Two examples how I use it:

matching action not by the exact type:

function loadingReducer(state, action) {
  if (action.type.includes('REQUEST:STARTED') {
    return true;
  }
  if (action.type.includes('REQUEST:DONE') {
    return false;
  }
  return state;
}

extending an existing reducer:

import baseReducer from './another-reducer';

function derivativeReducer(state, action) {
  switch (action.type) {
    case SOME_ACTION: return /* some processing */;
    case ANOTHER_ACTION: return /* more processing */;
    default: return baseReducer(state, action);
  }
}

One of the easiest ways is to make the third optional argument that will be used as the default reducer:
createReducer(initState, handle => [
  handle(action, reducer),
], (state, action) => { /* this will be the default reducer */ });

Do you plan to add something like this? What do you think of this proposal?

Below is a workaround that may be used to implement the desired behavior. More than that, it even tries to prevent the "default" part from executing if the state was changed by the "switch" reducer, but it's verbose and make much more than it should. It may be much easier to just create a pull request with this fix, but I've never done it before and don't know how one usually does that.
const inc = createAction('INC');
const subtract = createAction('SUBTRACT', res => (v: number) => res(v));

const switchReducer = createReducer(0, handle => [
  handle(inc, state => state + 1),
  handle(subtract, (state, { payload }) => state - payload),
]);

const reducer: typeof switchReducer = (state, action) => {
  const newState = switchReducer(state, action);
  if (newState !== state) {
    return newState;
  }
  // this is the "default" part
  return state;
};

I propose following API:
const reducer = createReducer(defaultState, handle => [
  handle(increment, state => state + 1),
  handle(decrement, state => state - 1),
  handle.default((state, action) => state)
])

PRs welcome.

The changes must be complete. New tests run. There is a couple of other tests that complain about obsolete snapshots, and I'm not sure if I can just ignore them for a moment.
I guess, now I'm waiting for review, don't I?

Some checks have failed. I'll try to investigate them on my own.


Change SideBar Drawer Content

I want to change SideBar included in Drawer content according to customer authenticated role, for example i have two users roles, customer and salesman, i want to be able to change sidebar content menu according to user authenticated role, I save in localStorage, customer authenticated data, this change allways that customer authenticates, and try to load this data from SideBar component in function 'componentWillMount', I place several console.logs in this function but only calls on App first load, I think that the problem is that the SideBar component only calls once and because of this I'm not able to see the change.
There is a way to say Drawer that reload again the SideBar component, or call a refresh or something like this?

I fix the problem using: DeviceEventEmitter, solution, emit event when the data change, listen this event in SideBar and show or hide components according to recive data


Fowarding azure_vm_size.

Forwarding the azure_vm_size variable to the jobs.  This was causing failures to our jobs.
@kargakis @pweil- @jim-minter

With our recent changes to switching the PRs to use the resource group of the cluster that was built by the same job we are now seeing this:
2018/06/24 17:38:13 Cannot untar master tarball: tar (child): /go/src/github.com/Azure/acs-engine/_output/ci-test_pr_origin_extended_c_azure-755/master.tar.gz: Cannot open: No such file or directory


V0.1.0 rc

Working version of the role.

@gwarf @enolfc @orviz this is ready for review.
The PR is passing on Travis. Please check for

minor inconsistencies
whether the README is sensible and complete and
Any obvious tests which have not been added to the test coverage.

@enolfc @orviz I think I have addressed your reviews - can you take a look and approve if necessary ?
Thanks!


How to find Path or Nuget_ID to uninstall templates

dotnet --list  shows LongName shortName Language and Tags.
To uninstall I need either the Path or the Nuget_ID.
-u|--uninstall <PATH|NUGET_ID>

what command gives u the path or the NugetId of the installed templates?

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

ID: 0b952f8a-18e1-4843-0741-6ca877fb303a
Version Independent ID: d80dfb96-bc86-a960-abec-255dd907d04d
Content: dotnet new command - .NET Core CLI
Content Source: docs/core/tools/dotnet-new.md
Product: dotnet-core
GitHub Login: @mairaw
Microsoft Alias: mairaw

Thanks for your question @StevenTCramer. @KathleenDollard @livarcocc can you help with this question?

Boiethios mentioned here https://github.com/dotnet/templating/issues/961 how to get the template names needed for the uninstall command, use "dotnet new -u".
> dotnet new -u

Template Instantiation Commands for .NET Core CLI

Currently installed items:
 Microsoft.DotNet.Common.ItemTemplates
 Microsoft.DotNet.Common.ProjectTemplates.2.1
 Microsoft.DotNet.Test.ProjectTemplates.2.1
 Microsoft.DotNet.Web.ItemTemplates
 Microsoft.DotNet.Web.ProjectTemplates.2.1
 Microsoft.DotNet.Web.Spa.ProjectTemplates
 NUnit3.DotNetNew.Template

Thank you! I've added this as part of the PR that updates the dotnet-new docs: #14356


Credential FSMs require connection handle as parameter

Signed-off-by: Patrik Stas<EMAIL_ADDRESS>

Closing, instead opened https://github.com/hyperledger/aries-vcx/pull/243


RV Bayesian is unable to search inside the Iteration folder

File storage is working as expected!  Connected to #12

Can't do much about this. Passing the correct path to RV_step should be left to the user


Check feasibility for auto-injecting annotations in the model/runtime pod

In OpenShift, when an InferenceService is created, there are three annotations that should be manually added. For example/reference, see the caikit-isvc.yaml of the caikit-tgis demo.
If these annotations are mandatory in the OpenShift case, to improve UX they should be injected automatically. The odh-model-controller may be a good place for this automation.
Once this automation is implemented, the following change should be reverted: https://github.com/opendatahub-io/kserve/pull/39/files#diff-415beca2410090793afe9797616d410d3dcdeeb7ab2a667ca63b089356aa05d5R153

Moved to: https://issues.redhat.com/browse/RHOAIENG-1040


Have the "Invalid repository ID format" error include details on why the input is invalid

When creating a new repository, the Repository ID field may return the error message "Invalid repository ID format" without any information on why the ID is invalid.  The error message should give some indication of why the input is invalid.

We’re using zod for the schema validation and react-hook-forms so this should be a quick “update the message and properly display it in the form” fix


[FEATURE] allow recruiters to see sent messages

This PR adds a new "Sent Messages" page, accessible to recruiters and admins, showing any messages they've previously sent to developers.
I've also included two small fixes alongside this PR:

Fix sender_id missing in the developer_profile_messages database schema
Fix the "email" field being blanked after sending a message, making it difficult to message multiple developers from the jobs page

Screenshots:

Scenario
Screenshot

No messages

Many messages

Solves #83
/claim #83

thank you @rjackson - testing in prod now


Added support for Cassandra Authentication

This PR adds config keys for username and password to application.conf, as follows:
cassandra {
    hosts = ["localhost"]
    port = 9042
    keyspace = "filodb"
    username = "cassandra"
    password = "cassandra"
}

There are two tests that appear to be failing to pick up the auth settings.  After stepping through with the debugger I am unable to determine the root cause of this, as the session in scope always contains the settings.  My real-world tests don't exhibit this behavior, so I'm at a bit of a loss as to where the issue is.

@rstrickland many thanks!    We can investigate the test issue later.   Going to merge.


feat: satisfiability for source packages

@baszalmstra tried to fix satisfiabily test issue, but had to use multithreaded runtime not sure if there is a better way? Next the diagnostic seems off in snapshot?
Tested on ros workspace though and works like a charm!

I restructured the test to use rstest instead of insta::glob this has the added benefit of running in parallel.

I moved the GlobHash and GlobHashCache to pixi_glob. Maybe thats also useful for your work? However you only need to check the timestamps instead of the hashes I guess. But at least globbing might be useful!


typo in polarisdeps/get-deps.cmd

In the following line, "rapisjson_build" should be changed by "rapidjson_build"
IF EXIST %LOGDIR%\rapidjson_build.log (DEL %LOGDIR%\rapisjson_build.log)

Fixed in master commit: https://github.com/anl-polaris/polaris/commit/c3c869eef970a65b8cfb55b00cf829982df1c0df


Testcafe command not found

What is your Test Scenario?

I didn't run any test yet, because testcafe command is still missing on my system!
What is the Current behavior?

I'm getting a warning during the installation of testcafe regarding the version of core-js.
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
At the end of the installation I have received the following message:
+<EMAIL_ADDRESS>added 427 packages from 295 contributors in 48.274s
When I run
npm ls -g testcafe
I receive the following message:
C:\Users\MyNameOrWhat\AppData\Roaming\npm
--<EMAIL_ADDRESS>What is the Expected behavior?

When I run testcafe chrome demo_test.js
I was expecting, that the test will start and will run the test inside the chrome browser!
But I'm receiving the following message instead: The command "testcafe" is either written incorrectly or could not be found.
What is your web application and your TestCafe test code?

});

Your Environment details:

testcafe version: 1.5.0
node.js version: v10.16.3
command-line arguments: testcafe chrome demo_test.js
browser name and version: Chrome v76.0....
platform and version: Window 10, v10.0.17763 Build 17763
other:

It seems TestCafe was not installed correctly on your machine. Check if the file C:\Users\MyNameOrWhat\AppData\Roaming\npm\testcafe.cmd exists.
Also you can try to reinstall TestCafe.

Thank you @Dmitry-Ostashev for your reply.
Yes the file does exists and here is the content:
@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\testcafe\bin\testcafe-with-v8-flag-filter.js" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  node  "%~dp0\node_modules\testcafe\bin\testcafe-with-v8-flag-filter.js" %*
)

I also reinstalled it several time... It didn't help, this is why I have opened this ticket.

Hello @remram,
I think that you have an issue with the PATH environment variable, but not TestCafe. Make sure that it contains the C:\Users\MyNameOrWhat\AppData\Roaming\npm directory. You can display the value of the PATH environment variable with the following command:
echo %PATH%
echo $env:PATH

Also, you can test another module by installing the cowsay module globally and execute the cowsay TestCafe command to confirm this. So, I'll close this issue.


DATASTD-1499 added Edfacts descriptors

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[host] Fix upcoming lints.

This addresses lints that will be emitted by the nightly-2024-01-01 toolchain, unblocking a toolchain update.

Thanks @jrvanwhy


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 10:42:29 on 2023.04.10
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 3, errors out: 0
Original problem ID: 6812
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=6812

Problem has been resolved in 12m 0s at 10:54:29 on 2023.04.10
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 6812


Match typeUrls with leading slash in google.protobuf.Any

Closes https://github.com/bufbuild/protobuf-es/issues/617

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for being so quick and responsive! 🎊

Just released in v1.5.0 🙂


toDataURL() very slow

I have a report with charts and tables.
I am using the html2canvas with jsPDF to export this report to PDF file.
But the process is taking a long time, more than 11000ms.
See below the code I used:
html2canvas($('#first-page'), {
    onrendered: function(canvas) {
        firstPage = canvas.toDataURL('image/jpeg', 0.5);
    },
    background: '#ffffff'
});

I'm doing something wrong or really is a problem?
How I can improve the performance?
EDIT: I discovered the problem isn't toDataURL() method, but is the process to render the content onto the canvas, but, the problem continues.

It's slow for me as well.
Any other alternative?

Unfortunately I did not find any other solution, I had to use it with this delay. The solution I found was to use a css loader.

Try this code:
html2canvas([$('#first-page')], {
onrendered: function(canvas) {
firstPage = canvas.toDataURL('image/jpeg', 0.5);
},
background: '#ffffff'
});
In my project this change help me)

You can try if canvas.toDataURL(); is faster as it won't need to do jpg compression.

It's really slow -_-" .... any idea ?

umm... it would be faster to render a jpg than it would be to render a png and the default toDataURL() returns a png so it has a transparency layer... which takes longer

It is still slow in 2019, when extracting 5-6 html content into pdf with html2canvas.

how can I make it fast in react in any idea.
function generatePdf() {
toggleIspdfSaving(true);
setTimeout(() => {
try {
const input = document.getElementById("report-page");
html2canvas(input, {
logging: true,
letterRendering: 1,
useCORS: true,
windowWidth: 1920,
windowHeight: 1080,
allowTaint:true,
})
.then((canvas) => {
console.log("testing .... time",canvas.height);
const imgWidth = 270;
const imgHeight = (canvas.height * imgWidth) / canvas.width;
const imgData = canvas.toDataURL("img/jpeg",0.5);
const pdf = new jsPDF("p", "px", [202, imgHeight]);
pdf.addImage(imgData, "PNG", 0, 0, imgWidth, imgHeight,undefined,'FAST');
// pdf.addImage(imgData, 'PNG', 0, 0, imgWidth, imgHeight);
pdf.save(
${outputDetail?.name}-version-${outputDetail?.version}-report
);
toggleIspdfSaving(false);
dispatch(
toastNotificationAction.initiateToastDisplay({
text: "Summary exported successfully",
toastType: "success",
})
);
})
.catch((error) => {
console.log("error in exporting summary", error);
toggleIspdfSaving(false);
dispatch(
toastNotificationAction.initiateToastDisplay({
text: "Unable to export summary",
toastType: "error",
})
);
});
} catch (err) {
toggleIspdfSaving(false);
dispatch(
toastNotificationAction.initiateToastDisplay({
text: "Unable to export summary",
toastType: "error",
})
);
}
}, 100);
}

Use html-to-image instead of html2canvas. It reduced the image rendering by ~95% for me


How to run offline dataset?

Hi！First of all, thank you for your code. I want to use the code you provided to run the collected odometer and laser scanning data. How can this be achieved? I am looking forward to your reply. Thank you！

Just bag the data and then run the slam system as if you would run with
real time data.
On Mon, Aug 27, 2018 at 9:36 PM woshidaye<EMAIL_ADDRESS>wrote:

Hi！First of all, thank you for your code. I want to use the code you
provided to run the collected odometer and laser scanning data. How can
this be achieved? I am looking forward to your reply. Thank you！
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sauravag/slam_karto_g2o/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADDohrzHfEiXzhgvfpkroM6jRFyhMfd_ks5uVKymgaJpZM4WOz4C
.

--
Regards
Saurav Agarwal
www.sauravag.com

I have a .bag file which contains information on odometer and laser scanning. But I don't know how to run your program. Do I run your launch file directly?


CLI: Failed to get library available

Library Manager , CLI: Failed to get library available

What is the OS of your computer ?
Copy the output of the "Arduino CLI" output window

and the "Arduino Extension" Window

I get the same problem, here is the output from the Arduino CLI:
Running Arduino CLI...
/Users/max/.vscode/extensions/thelastoutpostworkshop.arduino-maker-workshop-0.4.92-darwin-arm64/arduino_cli/darwin/arm64/arduino-cli
version --json
Failed to run command: spawn /Users/max/.vscode/extensions/thelastoutpostworkshop.arduino-maker-workshop-0.4.92-darwin-arm64/arduino_cli/darwin/arm64/arduino-cli EACCES
Command failed with code -13.

And the extension:
Arduino Extension started on darwin
Cannot get CLI version

I have created a new issue since your on a Mac : https://github.com/thelastoutpostworkshop/arduino-maker-workshop/issues/12


fix: do not update sidebar for active report drafts

Details

Add shouldComponentUpdate method to limit re-renders to cases where draft comment changes were made to reports other than the active report.
Fixed Issues

$ https://github.com/Expensify/App/issues/5166
Tests

For wide width screens

Open a report, start writing something. The reports shouldn't prioritize.
Switch to another report, the previous report with the draft comment should prioritize.
Switch back to the report with draft comment, remove the comment, the report should not de-prioritize.
Switch to another report, the previous report should de-prioritize and the pencil icon should also be removed.
Open a new tab where you create a draft comment on another report, the reports should prioritize on the first tab.

For small screen widths

Reports with draft comments should always prioritize and de-prioritize as it should.

QA Steps

For wide width screens

Open a report, start writing something. The reports shouldn't prioritize.
Switch to another report, the previous report with the draft comment should prioritize.
Switch back to the report with draft comment, remove the comment, the report should not de-prioritize.
Switch to another report, the previous report should de-prioritize and the pencil icon should also be removed.
Open a new tab where you create a draft comment on another report, the reports should prioritize on the first tab.

For small screen widths

Reports with draft comments should always prioritize and de-prioritize as it should.

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[ ] Android

Screenshots

Web

https://user-images.githubusercontent.com/7620533/133742245-85244526-0db2-45c8-921b-26f6dace0f2c.mov
Mobile Web

https://user-images.githubusercontent.com/7620533/133744781-ac38f245-1eef-4d08-b60e-6f052c763e03.mp4
Desktop

https://user-images.githubusercontent.com/7620533/133742662-39910a48-a7fc-4cb0-b0f2-2cf655f68c0a.mov
iOS

https://user-images.githubusercontent.com/7620533/133743852-17b703f1-e610-42e0-b0ab-d7e80ab0f596.mp4
Android

Need help testing android, don't have a working local environment for android. Thanks!

@meetmangukiya Thanks you very much 🙏 Putting this on hold for the time being.

@parasharrajat Thank you for having a look into this. I am not sure if I understand the problem here, I think that is the behaviour we want (to be different than in staging), essentially we do not want to make any ui changes to LHN while user is typing (on web or desktop where you can see LHN). Therefore we will add the pencil icon or reshuffle the LHN once user switches reports as I do not need to know I have a draft report in the report I just type.
Have you meant some other problem? Sorry if I have misunderstood your comment 😅

I expect the pencil icon to go away as soon as we clear the draft even if that report is active.
Why?
lets you are chatting with someone and the draft icon will stay forever until to go to another chat.
What I understood from the issue description is that we want to block the shuffle until we switch the chat. (but title says different story).
So IMO, a solution should

Block the shuffle until the user switches the chat which is the reason we created this issue.https://github.com/Expensify/App/issues/4615#issuecomment-912689604
Pencil icon should react based on the draft state.

Let me know if this makes sense.

I think it wouldn't be a simple implementation. Currently, we are achieving this by using shouldComponentUpdate to limit the renders. However, if we want to re-render(to show pencil). We'd have to manage it inside the render function https://github.com/Expensify/App/blob/4547d90105b1c9f186fdffb15a7a74ac10cd1c0c/src/pages/home/sidebar/SidebarLinks.js#L165-L172
The pencil is conditional on .hasDraftComment which should be accurate and already be set accordingly. However, to achieve this we'd have to keep track of previous order and then re-order the ordered recentReports back to the order that we previously had.
If we had to do this, I suppose we can do something like:

Store lastRecentReports in some internal class variable for having previous order on re-render
Store another class variable to indicate if this update was only to active report draft comment onlyActiveReportDraftUpdated
if onlyActiveReportDraftUpdated then re-order the newly returned recentReports the same as previous order by using the lastRecentReports' order. If not, we continue as normal, no re-ordering already ordered result.

Although this isn't a particularly good solution. Can think about more if we do decide this is what we want to do.

Web
https://user-images.githubusercontent.com/7620533/138209899-bfa76aa2-24fa-4f7e-8943-8d24717b4659.mov
Desktop
https://user-images.githubusercontent.com/7620533/138210136-c815433f-82f0-47fb-b59d-1c287cf43f2a.mov

@mountiny any idea why the CI is failing?


Add built-in algorithms enum

[ ] add enum class for built-in algorithm names for easy use in client plugin.
[ ] [Optional:] add new interface based on this enum for built-in algorithms

Done in this PR https://github.com/opensearch-project/ml-commons/pull/93


Add scroll up button to website

Closes #9108
Since the other pull request has been stuck for some time I decided to give it a go as well.

I also gave the button a higher z-index because it the "overview" page it was hiding behind the map on mobile.

@simondriesen thank you!


Leaking Rate (a)

Is there anywhere in the code the leaking parameter (a) in order to calculate the states of the network?
Thank you.

Hi, I'm not sure I parsed your question correctly, but there's currently no leakage parameter. In other words, the only way to control how 'excitable' the network is (i.e. how strongly and for how long it will reverberate in response to input) is by adjusting the magnitude of the recurrent weights and of the input (i.e. playing with spectral_radius and input_scaling). For example, with a lower spectral radius, activity will die out sooner.

Thank you for your response,
I think you answered my question!

So, if I will try to add the leakage parameter, it would be pissible or the structure of the code doesn't allow such modification?
The spectral radius concerns the initialization of recurrent weight.
The leaking rate concerns how quickly the network forgets the previous states.
Right?

yes, that should be possible! be sure to use a default value for the new parameter that keeps the current behavior (= no decay)


JavaScript Capstone: Implement Likes and Comment

In this pull request I

Implemented the likes api
Implemented the comments api
added comment popup with minimal styles

I added some styles to the CSS and fixed linter errors


扩展了der格式的公钥加载

在new方法的入参对象里新增了一个key_type的属性，用来区分是pem还是der.
默认是PEM ,可选:DER

@bigsmoke9527 Thanks for your contribution, I'll look into it soon 👍

I'm using bigsmoke's code because it supports DER.  I can't figure out how to move DER format over to the format C.PEM_read_bio_RSAPublicKey expects.. it was driving me insane.  Please merge this.

Ideally just constructing off of a modulus and exponent would.. AMAZING.

@bigsmoke9527
Would you have time to rebase your pull request?

I have one ready - but would prefer @bigsmoke9527 got the love.. I'll wait a week or so and then submit a pull request with @bigsmoke9527 in the comments.

Nice, let's wait a week first.

@whardier
A week has gone. Do you have time to submit the pull request?


feat: uTask API server is YAML capable

Build is failing because no vendor as been generated, we should merge #116 before.


Jacobian Dimension is wrong in get_dense_linear_jacobian

The get_dense_linear_jacobian in articulated_system.cpp initialize the jacobian with getGeneralizedCoordinateDim(). For floating-based, because of the quaternion, the dimension is 7+N.
I think the Jacobian is respect to the \dot{q}, whose dimension is 6+N from from getDOF

thx for reporting the bug. the fix is pushed


Update in-code docs for MethodEnum.swift

The MethodEnum is used to enumerate which methods are available through the TikiPlatformChannel. Each method needs documentation explaining what it does and where it is used. Doesn't need to add the details about its usage here. Just the explanation of what it is and the link for the documentation of the underlying method in SDK dart.

[ ] BUILD
[ ] ASSIGN_OWNERSHIP
[ ] GET_OWNERSHIP
[ ] MODIFY_CONSENT
[ ] GET_CONSENT
[ ] APPLY_CONSENT

just public classes will be documented


Update all.json

temporary block until issue gets resolved

yikes, webshell

Since it is down and being worked on, will ignore this one for now.

Unfortunately the webshell is still there...
anyone with the password can control both the website contents and the underlying host OS's file system as well...
i alerted them.


Gaps in RNG function supported by numba_dpex.kernel v/s numba.cuda

Evaluate the RNG feature supported by numba.cuda and develop a plan on how to include support for similar functionality for numba_dpex.kernel.

Feature
numba.cuda
numba_dpex

New device array initialized for n random number generators
numba.cuda.random.create_xoroshiro128p_states(n, seed, subsequence_start=0, stream=0)
no

Initialize RNG states on the GPU for parallel generators
numba.cuda.random.init_xoroshiro128p_states(states, seed, subsequence_start=0, stream=0)
no

Return a float32 in range [0.0, 1.0) and advance states[index]
numba.cuda.random.xoroshiro128p_uniform_float32(states, index)
no

Return a float64 in range [0.0, 1.0) and advance states[index]
numba.cuda.random.xoroshiro128p_uniform_float64(states, index)
no

Return a normally distributed float32 and advance states[index]
numba.cuda.random.xoroshiro128p_normal_float32(states, index)
no

Return a normally distributed float64 and advance states[index]
numba.cuda.random.xoroshiro128p_normal_float64(states, index)
no

UPDATE: The issue was updated to only capture the missing RNG functionality in numba_dpex.kernel API.

Could be related:

https://github.com/IntelPython/numba-dppy/pull/141

Could be related:

https://github.com/IntelPython/numba-dppy/pull/141

@ZzEeKkAa I believe that the missing functionality is more or less implemented by in sklearn-numba-dpex
in https://github.com/soda-inria/sklearn-numba-dpex/blob/main/sklearn_numba_dpex/common/random.py. We may be able to close the issue by simply porting over the file to numba-dpex.


Add types for execSync, execFileSync, spawnSync

The types added in this commit were designed based on the definitions of
the relevant functions here
An attempt was made to follow the conventions found in lib/node.js, but
there wasn't a precedent for return objects hence the name spawnRet.

Signed.

Looks good to me. Thanks for doing this work!


Cannot connect to GitHub from inside the devcontainer

I'm trying to push to a branch in Rong's fork from inside the devcontainer. First, the following dialog appears on Windows:

After entering my username and password, the terminal shows the following message. I need to press Ctrl+C to exit the command.
$ git push rrchai HEAD:rong-test
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://github.com': terminal prompts disabled

Running the command directly from WSL where I have SSH key for GH configured simply works.

@rrchai @vpchung Have you ever bumped into this issue?

Update
I cloned my fork using the HTTPS url insitead of the SSH url.

I remember now that GH disable authentication using username/password. In a terminal outside of VS Code, I can successfully authenticate when pushing using my GH username and PAT. An error message is displayed if I use my password.
From VS Code, the GH popup doesn't seem to work even if I enter my PAT instead of my password in the password field. Whatever I enter, the terminal in VS Code will tell me twice Logon failed, use ctrl+c to cancel basic credential prompt. but then it will performed the action as if I was authenticated. I realized that I can also click twice on the Cancel button of the popup to get the same behavior.

Ideally I should be able to cache my GH credentials after cloning the fork with the HTTPS link.

Do you use GitHub CLI or Git Credential Manager to store your GH credentials for repos cloned with the HTTPS protocol, @vpchung @rrchai ?

@tschaffter I have never encountered this error.
As for GH credentials, I'm actually using the macOS keychain, but I will probably switch to GCM moving forward.

Just switched to GCM and am still able to perform git actions smoothly!

I installed GCM locally (WSL) and it didn't kick in when working remotely in the devcontainer (expected)
I installed GCM in the devcontainer and it kicked in when I tried to push to Rong's branch.

$ git push rrchai HEAD:rong-test
fatal: No credential store has been selected.

Set the GCM_CREDENTIAL_STORE environment variable or the credential.credentialStore Git configuration setting to one of the following options:

  secretservice : freedesktop.org Secret Service (requires graphical interface)
  gpg           : GNU `pass` compatible credential storage (requires GPG and `pass`)
  cache         : Git's in-memory credential cache
  plaintext     : store credentials in plain-text files (UNSECURE)

See https://aka.ms/gcm/credstores for more information.

fatal: No credential store has been selected.

Set the GCM_CREDENTIAL_STORE environment variable or the credential.credentialStore Git configuration setting to one of the following options:

  secretservice : freedesktop.org Secret Service (requires graphical interface)
  gpg           : GNU `pass` compatible credential storage (requires GPG and `pass`)
  cache         : Git's in-memory credential cache
  plaintext     : store credentials in plain-text files (UNSECURE)

See https://aka.ms/gcm/credstores for more information.

yarn run v1.22.18
$ nx affected:test

 >  NX   Affected criteria defaulted to --base=main --head=HEAD

    ✔  nx run web-challenge-search:test  [existing outputs match the cache, left as is]
    ✔  nx run web-ui:test  [existing outputs match the cache, left as is]
    ✔  nx run web-user-profile:test  [existing outputs match the cache, left as is]
    ✔  nx run web-org-profile:test  [existing outputs match the cache, left as is]
    ✔  nx run web-org-search:test  [existing outputs match the cache, left as is]
    ✔  nx run web-challenge:test  [existing outputs match the cache, left as is]
    ✔  nx run web-not-found:test  [existing outputs match the cache, left as is]
    ✔  nx run web-signup:test  [existing outputs match the cache, left as is]
    ✔  nx run web-about:test  [existing outputs match the cache, left as is]
    ✔  nx run web-login:test  [existing outputs match the cache, left as is]
    ✔  nx run web-home:test  [existing outputs match the cache, left as is]

 ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Successfully ran target test for 11 projects (120ms)

   Nx read the output from the cache instead of running the command for 11 out of 11 tasks.

Done in 1.56s.
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 319 bytes | 319.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/rrchai/challenge-registry
   7375cea..fcb25ac  HEAD -> rong-test

I still need to find how to solve the issue reported in the log. If this works, we should then add GCM to the definition of the devcontainer. I'm also puzzled as to why I can push to rong's branch without providing credentials (at least I think I didn't).

The solution to the above issue is described here:
git config --global credential.credentialStore plaintext

At the time of the first push, GCM asked me to authenticate. GCM automatically used the credentials for subsequent pushes. :-)

Interesting... I didn't install GCM in the devcontainer but the prompt to relogin with GCM did prompt for me when I attempted to push (from the SSH remote of the devcontainer).  After logging in, I was able to successfully push into Rong's PR.

@vpchung Where did you install GCM? Were you prompted to enter your credentials when being inside the devcontainer on the EC2 instance?

It was installed on my local machine, and yes, I was prompted to enter my credentials while inside the devcontainer on the instance.  Hence my confusion....
Maybe it's a Mac thing....?

Push to GitHub remote from remote devcontainer
Attempt 1: fresh container
When committing for the first time in the devcontainer:
vscode@1887abfa3791:/workspaces/challenge-registry$ git commit -S -m 'Test edit'
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email<EMAIL_ADDRESS>  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'vscode@1887abfa3791.(none)')

When attempting to push to the branch of another developer:
$ git push
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push rrchai HEAD:rong-test

To push to the branch of the same name on the remote, use

    git push rrchai HEAD

To choose either option permanently, see push.default in 'git help config'.

Using the first push command, the following popup is shown. For some reason I can cancel the popup twice and the push will still complete (how?). This popup is broken to me. Whatever I input is not accepted. Note that GH no longer accept authentication with the combo username+password. Inputing a PAT doesn't work easier.

Note that GCM is installed on WSL but it didn't kick in.
This shows that I was able to push to the remote repo right after failing to authenticate twice:
vscode@1887abfa3791:/workspaces/challenge-registry$ git push --set-upstream origin test-gcm
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://github.com': terminal prompts disabled
yarn run v1.22.18
$ nx affected:test

 >  NX   Affected criteria defaulted to --base=main --head=HEAD

 >  NX   Successfully ran target test for 0 projects (10ms)

Done in 1.62s.
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Create a pull request for 'test-gcm' on GitHub by visiting:
remote:      https://github.com/tschaffter/challenge-registry/pull/new/test-gcm
remote:
To https://github.com/tschaffter/challenge-registry
 * [new branch]      test-gcm -> test-gcm
Branch 'test-gcm' set up to track remote branch 'test-gcm' from 'origin'.

Attempt 2: Configure git to use plaintext credentials in devcontainer
First, looking at the git config for the repo in the devcontainer:
$ git config --list | grep credential
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
...

This may be what is used by VS Code to show the GitHub login popup.
Run this command in the devcontainer:
git config --global credential.credentialStore plaintext

See the git config again:
$ git config --list | grep credential
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
credential.credentialstore=plaintext

The login popup is still displayed.
Attempt 3: Installing GCM in devcontainer
$ sudo dpkg -i gcmcore-linux_amd<IP_ADDRESS>6.deb
Selecting previously unselected package gcmcore.
(Reading database ... 25324 files and directories currently installed.)
Preparing to unpack gcmcore-linux_amd<IP_ADDRESS>6.deb ...
Unpacking gcmcore (2.0.696) ...
Setting up gcmcore (2.0.696) ...
vscode@1887abfa3791:/workspaces/challenge-registry$ git-credential-manager-core configure
Configuring component 'Git Credential Manager'...
Configuring component 'Azure Repos provider'...

Removing the property added in Attempt 2:
git config --global --unset credential.credentialStore

See config:
$ git config --list | grep credential
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
credential.helper=!f() { /home/vscode/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-25127d5bc909798e35bb5afa12ebc23db5cd142b.js $*; }; f
credential.helper=
credential.helper=/usr/local/share/gcm-core/git-credential-manager-core
credential.https://dev.azure.com.usehttppath=true

It looks like GCM added/overwrote credential.helper.
UPDATE: The git config credential.credentialStore is required, otherwise we get the following message:
$ git push
fatal: No credential store has been selected.

Set the GCM_CREDENTIAL_STORE environment variable or the credential.credentialStore Git configuration setting to one of the following options:

  secretservice : freedesktop.org Secret Service (requires graphical interface)
  gpg           : GNU `pass` compatible credential storage (requires GPG and `pass`)
  cache         : Git's in-memory credential cache
  plaintext     : store credentials in plain-text files (UNSECURE)

See https://aka.ms/gcm/credstores for more information.

fatal: No credential store has been selected.

Set the GCM_CREDENTIAL_STORE environment variable or the credential.credentialStore Git configuration setting to one of the following options:

  secretservice : freedesktop.org Secret Service (requires graphical interface)
  gpg           : GNU `pass` compatible credential storage (requires GPG and `pass`)
  cache         : Git's in-memory credential cache
  plaintext     : store credentials in plain-text files (UNSECURE)

See https://aka.ms/gcm/credstores for more information.

yarn run v1.22.18
$ nx affected:test

 >  NX   Affected criteria defaulted to --base=main --head=HEAD

 >  NX   Successfully ran target test for 0 projects (9ms)

Done in 1.56s.
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 293 bytes | 293.00 KiB/s, done.
Total 3 (delta 2), reused 1 (delta 1), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/tschaffter/challenge-registry
   25f2292..ac84875  test-gcm -> test-gcm

Once again, I was able to push without providing credentials?
After adding the plaintext property back to git config, GCM properly kicks in:
$ git push
Select an authentication method for 'https://github.com/':
  1. Device code (default)
  2. Personal access token
option (enter for default): 2
Enter GitHub personal access token for 'https://github.com/'...
Token:
yarn run v1.22.18
$ nx affected:test

 >  NX   Affected criteria defaulted to --base=main --head=HEAD

 >  NX   Successfully ran target test for 0 projects (8ms)

Done in 1.48s.
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 291 bytes | 291.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/tschaffter/challenge-registry
   ac84875..0ee49c2  test-gcm -> test-gcm

Additional pushes no longer asks for GH credentials.
Conclusion
Attempt 3 where GCM is installed in the devcontainer is an acceptable solution. GCM can be preinstalled in the devcontainer so that developers will simply have to input their credentials once when automatically prompted.
@vpchung told me that she was able to get her remote devcontainer to use the credentials stored in the GCM instance she installed locally (Mac). This would be the ideal solution as developers could "stream" their credentials to the remote devcontainer thanks to VS Code.

@tschaffter I could push the code to my fork. It did ask me about git config initially.
That's the history of the commands I ran:
vscode@59a84a85647d:/workspaces/challenge-registry$ git fetch origin
vscode@59a84a85647d:/workspaces/challenge-registry$ git checkout rong-test
Branch 'rong-test' set up to track remote branch 'rong-test' from 'origin'.

Run

  git config --global user.email<EMAIL_ADDRESS>  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'vscode@59a84a85647d.(none)')
vscode@59a84a85647d:/workspaces/challenge-registry$ git config --global user.email<EMAIL_ADDRESS>vscode@59a84a85647d:/workspaces/challenge-registry$ git config --global user.name "Rongrong Chai"
vscode@59a84a85647d:/workspaces/challenge-registry$ git config --local init.defaultBranch main
vscode@59a84a85647d:/workspaces/challenge-registry$ git add -u
vscode@59a84a85647d:/workspaces/challenge-registry$ git status
On branch rong-test
Your branch is up to date with 'origin/rong-test'.

Changes to be committed:
  (use "git restore --staged <file>..."
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 286 bytes | 286.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/rrchai/challenge-registry
   b6e7ef5..ec26200  rong-test -> rong-test

Thanks for sharing your commands. Do you have GCM installed on our laptop? If not, I'm wondering how you and I can push to GH remotes without apparently specifying our credentials. Maybe there is a trace of a previous authentication on the EC2 instances or VS Code is somehow grabbing credentials from our hosts..

@tschaffter I don't remember if I used GCM before, but I did use Github CLI with its configuration setup. So I guess I have some credentials stored locally. :)

Since I'm working from the office I decided to give a try using my MBP. I just installed GCM locally but the devcontainer never showed signed that GCM was used. Upon committing, VS Code triggered a GitHub login dialog that offers more option than the dialog I have on Windows. Here I was able to authenticate myself using a PAT (see screenshot). The credentials are saved somewhere so that I didn't have to enter them again for subsequent pushes.

This thread confirms that GCM should not be installed in the devcontainer and that VS Code should be redirecting authentication request to the local instance of GCM.

Yeah, if you don't install the GCM in the container, and you have it configured locally in your .gitconfig, it should be used by the dev container automatically. If you install the GCM in the container, that will take over, and theres no way to pop anything up from inside the container itself. Only text would be allowed.

The redirection is defined in two locations inside the devcontainer:
vscode@fe83bf95e5bd:/workspaces$ cd /home/vscode/
vscode@fe83bf95e5bd:~$ cat .gitconfig
[credential]
        helper = "!f() { /home/vscode/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-3e37fb277048489a6f31b854d451e4b0cf64893f.js $*; }; f"
[user]
        email =<EMAIL_ADDRESS>        name = Thomas Schaffter

vscode@fe83bf95e5bd:~$ git config --list | grep credential
credential.helper=!f() { /home/vscode/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-3cec0e5dd2ad1eaba11b3a5cdd0513f9845bdbb8.js $*; }; f
credential.helper=!f() { /home/vscode/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-3cec0e5dd2ad1eaba11b3a5cdd0513f9845bdbb8.js $*; }; f

So authentication works seamlessly on remote devcontainer on MacOS. On Windows-WSL, a solution to the broken authentication dialog is to installed GCM in the devcontainer.

Update 2024-04-12
The latest solution is to configure the GitHub CLI as credential helper, see #2638


PubSub component not configured

I am trying to setup PubSub using Redis with Dapr. I am trying to make the quickstarts working (.NET):
https://github.com/dapr/quickstarts/tree/master/pub_sub/csharp/sdk
and I also tried to make the tutorial example work:
https://github.com/dapr/quickstarts/tree/master/tutorials/pub-sub
but in both case I met the same error.
When I try to run my publisher I always end up with the following error:
time="2023-05-11T16:29:23.5283698+02:00" level=debug msg="rpc error: code = FailedPrecondition desc = no pubsub is configured" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.api type=log ver=1.10.6
== APP == Unhandled exception. Dapr.DaprException: Publish operation failed: the Dapr endpoint indicated a failure. See InnerException for details.
== APP ==  ---> Grpc.Core.RpcException: Status(StatusCode="FailedPrecondition", Detail="no pubsub is configured")
== APP ==    at Dapr.Client.DaprClientGrpc.MakePublishRequest(String pubsubName, String topicName, ByteString content, Dictionary`2 metadata, String dataContentType, CancellationToken cancellationToken)
== APP ==    --- End of inner exception stack trace ---
== APP ==    at Dapr.Client.DaprClientGrpc.MakePublishRequest(String pubsubName, String topicName, ByteString content, Dictionary`2 metadata, String dataContentType, CancellationToken cancellationToken)
== APP ==    at Program.<Main>$(String[] args) in C:\Dev\Github\quickstarts\pub_sub\csharp\sdk\checkout\Program.cs:line 11
== APP ==    at Program.<Main>(String[] args)

But the thing is, it is configured and properly found:
time="2023-05-11T16:29:22.2932885+02:00" level=debug msg="found component. name: orderpubsub, type: pubsub.rabbitmq/v1" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
I have tried with the default configuration of pubsub coming when running dapr init :
pubsub.yml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: orderpubsub
spec:
  type: pubsub.redis
  version: v1
  metadata:
  - name: redisHost
    value: localhost:6379
  - name: redisPassword
    value: ""

and also tried with rabbitMQ sample from the doc: https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/:
What version of Dapr?
I am using Dapr(1.10 on Windows)
Expected Behavior
I expected the Sample from tutorial & quickstart to work :(
PubSub should be found and working when specified as a component on windows. specified in %UserProfile%.dapr\components\pubsub.yaml or by using the --resources-path command parameter
Actual Behavior
PubSub not found and application unable to publish anything. Either from dapr.Client or directly from the sidecar (via HTTP)
Steps to Reproduce the Problem
Nothing special, just follow the steps from the documentation and the same behavior should happen. I am using Windows 10.

@LucienMoor After log trace of Found component, do you also see something like Loading component and then Loaded component: orderpubsub, something like following:
time="2023-05-12T09:30:56.3942678+05:30" level=info msg="Component loaded: statestore-actors (state.redis/v1)" app_id=orderapp instance=LAPTOP-J62MA7E9 scope=dapr.runtime type=log ver=unknown

or do you see any error?
As, it seems that from Failed precondition that pubsub was not loaded successfully.
Please confirm.

Here is the full output for the checkout-sdk application (publisher):
I start the application using dapr run --app-id checkout-sdk --resources-path ../../../components/ --app-port 6001 --dapr-http-port 3601 --dapr-grpc-port 60001 --log-level debug -- dotnet run --project .
Starting Dapr with id checkout-sdk. HTTP Port: 3601. gRPC Port: 60001
time="2023-05-15T08:44:37.2706829+02:00" level=info msg="starting Dapr Runtime -- version 1.10.6 -- commit a2511d924f7a866907d4bf2db73da5ea6cd63c36" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2736361+02:00" level=info msg="log level set to: debug" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2736361+02:00" level=info msg="metrics server started on :65410/" app_id=checkout-sdk instance=FI-101 scope=dapr.metrics type=log ver=1.10.6
time="2023-05-15T08:44:37.2763458+02:00" level=debug msg="Found 0 resiliency configurations." app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2763458+02:00" level=info msg="Resiliency configuration loaded." app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2768485+02:00" level=info msg="standalone mode configured" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2769063+02:00" level=info msg="app id: checkout-sdk" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2769063+02:00" level=info msg="mTLS is disabled. Skipping certificate request and tls validation" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.277454+02:00" level=info msg="Dapr trace sampler initialized: DaprTraceSampler(P=1.000000)" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2917495+02:00" level=info msg="local service entry announced: checkout-sdk -> <IP_ADDRESS>:65411" app_id=checkout-sdk component="mdns (nameResolution/v1)" instance=FI-101 scope=dapr.contrib type=log ver=1.10.6
time="2023-05-15T08:44:37.2917495+02:00" level=info msg="Initialized name resolution to mdns" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2922552+02:00" level=debug msg="the current OS does not support pluggable components feature, skipping initialization" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2924487+02:00" level=info msg="loading components" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2940755+02:00" level=debug msg="found component. name: orderpubsub, type: pubsub.rabbitmq/v1" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2945799+02:00" level=info msg="waiting for all outstanding components to be processed" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2946441+02:00" level=info msg="all outstanding components processed" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2946441+02:00" level=info msg="gRPC proxy enabled" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.2952204+02:00" level=info msg="gRPC server listening on TCP address: :60001" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.api type=log ver=1.10.6
time="2023-05-15T08:44:37.2952204+02:00" level=info msg="Enabled gRPC tracing middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.api type=log ver=1.10.6
time="2023-05-15T08:44:37.2957736+02:00" level=info msg="Enabled gRPC metrics middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.api type=log ver=1.10.6
time="2023-05-15T08:44:37.2957736+02:00" level=info msg="configuring workflow engine gRPC endpoint" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.wfengine type=log ver=1.10.6
time="2023-05-15T08:44:37.2963857+02:00" level=info msg="API gRPC server is running on port 60001" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.299329+02:00" level=info msg="enabled metrics http middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.http type=log ver=1.10.6
time="2023-05-15T08:44:37.299329+02:00" level=info msg="enabled tracing http middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.http type=log ver=1.10.6
time="2023-05-15T08:44:37.2998722+02:00" level=info msg="HTTP server listening on TCP address: :3601" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.http type=log ver=1.10.6
time="2023-05-15T08:44:37.2998722+02:00" level=info msg="http server is running on port 3601" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.3004011+02:00" level=info msg="The request body size parameter is: 4" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.3019288+02:00" level=info msg="gRPC server listening on TCP address: :65411" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.internal type=log ver=1.10.6
time="2023-05-15T08:44:37.3068632+02:00" level=info msg="Enabled gRPC tracing middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.internal type=log ver=1.10.6
time="2023-05-15T08:44:37.3073899+02:00" level=info msg="Enabled gRPC metrics middleware" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.internal type=log ver=1.10.6
time="2023-05-15T08:44:37.3115924+02:00" level=info msg="internal gRPC server is running on port 65411" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
time="2023-05-15T08:44:37.3121096+02:00" level=info msg="application protocol: http. waiting on port 6001.  This will block until the app is listening on that port." app_id=checkout-sdk instance=FI-101 scope=dapr.runtime type=log ver=1.10.6
Updating metadata for appPID: 107460
Updating metadata for app command: dotnet run --project .
You're up and running! Both Dapr and your app logs will appear here.

time="2023-05-15T08:44:38.8516677+02:00" level=debug msg="rpc error: code = FailedPrecondition desc = no pubsub is configured" app_id=checkout-sdk instance=FI-101 scope=dapr.runtime.grpc.api type=log ver=1.10.6
== APP == Unhandled exception. Dapr.DaprException: Publish operation failed: the Dapr endpoint indicated a failure.    3 days ago     Up 3 minutes          <IP_ADDRESS>:6379->6379/tcp             dapr_redis
f5b5bd1d2ccb   daprio/dapr:1.10.6   "./placement"            3 days ago     Up 3 minutes          <IP_ADDRESS>:6050->50005/tcp            dapr_placement
7b4352daff7d   openzipkin/zipkin    "start-zipkin"           3 days ago     Up 3 days (healthy)   9410/tcp, <IP_ADDRESS>:9411->9411/tcp   dapr_zipkin

Quick update: After some testing, it seems the problem does not from the PubSub component but components in general.
I have the same problem with de fault statestore component (also defined when running dapr init)
it seems components are not loading properly on a windows self-hosted environnement. Can anyone make default component work on a windows self-hosted env with dapr 1.10?
CLI version: 1.10.0
Runtime version: 1.10.6

PS: if I start a sidecar in the docker containers, it works. But I would like to avoid working in this setup

Late update: After reinstalling windows, everything is working as expected. But not a great solution. I think something on my PC was interfering with Dapr, but I have no way to know what it was.
It would be great if we could have more details on components loading process in the daprd log?


setters on interfaces

Most (all?) of the properties on the interfaces in NodeEditorAvalonia.Model have public setters.
Would it be possible to remove those setters, unless it is required for NodeEditor's operation?
For example:

I want my implementations of INodeTemplate to be immutable; it doesn't make sense to change the "Line" tool's name to "Circle"
I don't want public consumers of my IEditor to be able to add templates.  I may, in my own internal model, have a method to add templates, but I don't want anyone to be able to do it.

I can implement the interface explicitly, and throw a NotSupportedException if someone calls the setters - but I would rather not do this.

Well those would be breaking changes and we have just released v11 as stable.


fix: update to eye v10.24.23

fix: update to eye v10.24.23

:tada: This PR is included in version 16.28.25 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v16.28.25

Your semantic-release bot :package::rocket: