chainer faster RCNN seems load pretrained model npz not success!

After whole 2 days of training faster RCNN ( I have slight modify your code to meet my needs), I found that result/snapshot_model.npz  seems not load success.
I use https://github.com/chainer/chainercv/blob/master/chainercv/links/model/faster_rcnn/faster_rcnn_vgg.py#L139 to load npz file.
Today I wake up and to continue to train the model, then load the result/snapshot_model.npz, then I found in the start training , the loss is above 2.0, because in yestoday's training the loss has already drop to 0.5.
So I think this may be issue or bug inside chainer?
But I found another interesting thing, The loss decrease fast and after 10~20 iterations catch up with yestoday 0.5.
Is this normal?

weird problem. look at below log:
iteration   epoch       elapsed_time  lr          main/loss   validation/main/all
20          0           20.9103       0.0001      1.17345
40          0           39.3119       0.0001      0.848364
60          0           57.7876       0.0001      0.669107
80          0           76.0707       0.0001      0.725216
100         0           96.1029       0.0001      0.57862180

It decrease quickly and begin with 1.17, but yestoday I already decrease loss about equals 0.5
If I don't load .npz file , It will begin with 2.1, So I think it load npz may success, but because your class FasterRCNN is inherit and composite of other 2 class head and vgg feature extractor class.
Does npz success load into other 2 component of FasterRCNN?

If you want to completely restart your training, you need to resume trainer's parameters as well. They contain optimizer params that are related to training.
You can check that in MNIST example.
You need to add an extension to save snapshot of the trainer and an extension to load the saved snapshot. These two are not included in the training code of Faster R-CNN.

By the way, I am pretty sure that FasterRCNN is loading head, feature extractor and RPN properly.

@yuyu2172  I have figured out reason. after I load optimizer parameter from npz file, It works normally

It is good to hear that.


added comments to code

Description

added comments about previous code. changed api call url to the one DS fixed.
Fixes # (issue)
updated DS endpoint

Change Status

[x] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

Please check against PR #77
I believe there is a duplication of work.


FFM-7219: Adds nodejs 1.2.12 release notes

Has been tech reviewed via slack

Preview environment: https://hdh.pr.harness.io/pr-1009

Thanks @SudheendraKatte !


ChannelCredentialsBuilder leaks secrets on drop

ChannelCredentialsBuilder contains an Option field called cert_key_pair that contains secrets when Some. The drop function assumes that cert_key_pair has been moved into grpc_sys, but it is possible for that not to be true if build is never called.
The drop method should look into this field and call clear_key_securely on it if it still exists.

This is incorrect. Not sure what I was looking at.


danger pr fails: cannot find your git remote

I'm trying danger pr and it doesn't work:
$ danger pr
/home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/support/pull_request_finder.rb:33:in `check_if_any_pull_request!': No recent Pull Requests found for this repo, danger requires at least one Pull Request for the local mode. (RuntimeError)
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/support/pull_request_finder.rb:15:in `call'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/local_git_repo.rb:100:in `found_pull_request'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/local_git_repo.rb:45:in `initialize'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/danger_core/environment_manager.rb:30:in `new'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/danger_core/environment_manager.rb:30:in `initialize'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/commands/pr.rb:48:in `new'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/commands/pr.rb:48:in `run'
	from /home/coder/.gem/ruby/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/bin/danger:5:in `<top (required)>'
	from /home/coder/bin/danger:22:in `load'
	from /home/coder/bin/danger:22:in `<main>'

When I'm trying to see available options it fails with error:
$ danger pr -h
/home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/local_git_repo.rb:61:in `raise_error_for_missing_remote': danger cannot find your git remote, please set a remote. And the repository must host on GitHub.com or GitHub Enterprise. (RuntimeError)
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/ci_source/local_git_repo.rb:43:in `initialize'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/danger_core/environment_manager.rb:30:in `new'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/danger_core/environment_manager.rb:30:in `initialize'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/commands/pr.rb:48:in `new'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/lib/danger/commands/pr.rb:48:in `run'
	from /home/coder/.gem/ruby/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
	from /home/coder/.gem/ruby/gems/danger-4.2.2/bin/danger:5:in `<top (required)>'
	from /home/coder/bin/danger:22:in `load'
	from /home/coder/bin/danger:22:in `<main>'

Why it couldn't find remote? There is origin that could be used:
$ git remote --verbose show
Shkarin	https://github.com/Shkarin/mystamps-1 (fetch)
Shkarin	https://github.com/Shkarin/mystamps-1 (push)
bodom91	https://github.com/bodom91/mystamps (fetch)
bodom91	https://github.com/bodom91/mystamps (push)
origin	git@github.com:php-coder/mystamps.git (fetch)
origin	git@github.com:php-coder/mystamps.git (push)

I have cloned the repo from bitbucket and getting same error.


A negative VM count displays on the host page

A negative VM count displays on the host page

Validated


Polar Fails to Load with Cookies Disabled

I've encountered an issue where the website fails to load when cookies are disabled. This poses two major concerns:

Privacy Protection: Many users disable cookies for privacy reasons. Our site should support these privacy choices by remaining functional without cookies.
SEO Impact: Search engine spiders and crawlers often access websites with cookies disabled. The current issue could negatively impact our site's search engine indexing and ranking.

Addressing this will improve user privacy support and ensure better SEO.
Regards!

Hey @eusonlito! Thanks for the bug report, to help investigating this, could you please share which browser that you're using, and how you've configured it to disable cookies? It looks like you're using Firefox, or are you using a fork? Are you using any extension to disable cookies?
Thanks.

Hi @zegl! My first visit attempt has been on a mobile browser (Brave) where I browse without cookies by default (I only enable them on some sites where I need authentication).
For this issue I simply sent the screenshot from desktop firefox with cookies disabled (I use the extension https://addons.mozilla.org/es/firefox/addon/mcookies-disable/).

Access to storage (and cookies) should always be done through a simple wapper that takes these situations into account. It is easy to implement and the rest of the application forgets to control access related issues.
For example, here a very simple storage wrapper for one of my projects https://github.com/eusonlito/GPS-Tracker/blob/master/resources/views/assets/js/local-storage.js
:)


wrong status code '404', expected '200' with one specific Ingress

Describe the bug:
I'm using cert-manager to provision TLS certs for nginx-ingress via letsencrypt, and normally it is working fine. I have one specific Ingress where cert provisioning fails and I can't figure out why. This is in the cert-manager logs:
I0909 20:40:14.876090       1 trigger_controller.go:194] "cert-manager/certificates-trigger: Certificate must be re-issued" key="kasten-io/ingress-tls" reason="DoesNotExist" message="Issuing certificate as Secret does not exist"
I0909 20:40:14.876152       1 conditions.go:203] Setting lastTransitionTime for Certificate "ingress-tls" condition "Issuing" to 2023-09-09 20:40:14.876136175 +0000 UTC m=+2326.040099160
I0909 20:40:14.876493       1 conditions.go:203] Setting lastTransitionTime for Certificate "ingress-tls" condition "Ready" to 2023-09-09 20:40:14.876486208 +0000 UTC m=+2326.040449194
I0909 20:40:14.903592       1 controller.go:162] "cert-manager/certificates-readiness: re-queuing item due to optimistic locking on resource" key="kasten-io/ingress-tls" error="Operation cannot be fulfilled on certificates.cert-manager.io \"ingress-tls\": the object has been modified; please apply your changes to the latest version and try again"
I0909 20:40:14.903639       1 conditions.go:203] Setting lastTransitionTime for Certificate "ingress-tls" condition "Ready" to 2023-09-09 20:40:14.903634044 +0000 UTC m=+2326.067597005
I0909 20:40:15.000640       1 controller.go:162] "cert-manager/certificates-key-manager: re-queuing item due to optimistic locking on resource" key="kasten-io/ingress-tls" error="Operation cannot be fulfilled on certificates.cert-manager.io \"ingress-tls\": the object has been modified; please apply your changes to the latest version and try again"
I0909 20:40:15.062049       1 conditions.go:263] Setting lastTransitionTime for CertificateRequest "ingress-tls-dztbt" condition "Approved" to 2023-09-09 20:40:15.062041599 +0000 UTC m=+2326.226004563
I0909 20:40:15.165707       1 conditions.go:263] Setting lastTransitionTime for CertificateRequest "ingress-tls-dztbt" condition "Ready" to 2023-09-09 20:40:15.165699677 +0000 UTC m=+2326.329662642
I0909 20:40:15.255097       1 conditions.go:263] Setting lastTransitionTime for CertificateRequest "ingress-tls-dztbt" condition "Ready" to 2023-09-09 20:40:15.255089891 +0000 UTC m=+2326.419052851
I0909 20:40:15.274478       1 controller.go:162] "cert-manager/certificaterequests-issuer-acme: re-queuing item due to optimistic locking on resource" key="kasten-io/ingress-tls-dztbt" error="Operation cannot be fulfilled on certificaterequests.cert-manager.io \"ingress-tls-dztbt\": the object has been modified; please apply your changes to the latest version and try again"
I0909 20:40:17.328186       1 pod.go:71] "cert-manager/challenges/http01/ensurePod: creating HTTP01 challenge solver pod" resource_name="ingress-tls-dztbt-2032437801-664857528" resource_namespace="kasten-io" resource_kind="Challenge" resource_version="v1" dnsName="backup.mydomain.com" type="HTTP-01"
I0909 20:40:17.417386       1 pod.go:59] "cert-manager/challenges/http01/selfCheck/http01/ensurePod: found one existing HTTP01 solver pod" resource_name="ingress-tls-dztbt-2032437801-664857528" resource_namespace="kasten-io" resource_kind="Challenge" resource_version="v1" dnsName="backup.mydomain.com" type="HTTP-01" related_resource_name="cm-acme-http-solver-w5kbc" related_resource_namespace="kasten-io" related_resource_kind="" related_resource_version=""
I0909 20:40:17.417669       1 service.go:45] "cert-manager/challenges/http01/selfCheck/http01/ensureService: found one existing HTTP01 solver Service for challenge resource" resource_name="ingress-tls-dztbt-2032437801-664857528" resource_namespace="kasten-io" resource_kind="Challenge" resource_version="v1" dnsName="backup.mydomain.com" type="HTTP-01" related_resource_name="cm-acme-http-solver-9mgd4" related_resource_namespace="kasten-io" related_resource_kind="" related_resource_version=""
E0909 20:40:17.515700       1 sync.go:190] "cert-manager/challenges: propagation check failed" err="wrong status code '404', expected '200'" resource_name="ingress-tls-dztbt-2032437801-664857528" resource_namespace="kasten-io" resource_kind="Challenge" resource_version="v1" dnsName="backup.mydomain.com" type="HTTP-01"

Obviously my cert is stuck provisioning:
$ kubectl get cert
NAME          READY   SECRET        AGE
ingress-tls   False   ingress-tls   33m

This is the Ingress resource. I have substituted my domain with mydomain.com for privacy. My actual domain has wildcard DNS *.mydomain.com which points at the ingress controller IP.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    meta.helm.sh/release-name: k10
    meta.helm.sh/release-namespace: kasten-io
  creationTimestamp: "2023-09-05T19:08:51Z"
  generation: 11
  labels:
    app: k10
    app.kubernetes.io/instance: k10
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: k10
    helm.sh/chart: k10-6.0.6
    heritage: Helm
    release: k10
  name: k10-ingress
  namespace: kasten-io
  resourceVersion: "89592941"
  uid: 0af872d8-85e3-4634-b580-004b5da7c821
spec:
  ingressClassName: public
  rules:
  - host: backup.mydomain.com
    http:
      paths:
      - backend:
          service:
            name: gateway
            port:
              number: 8000
        path: /k10/
        pathType: ImplementationSpecific
  tls:
  - hosts:
    - backup.mydomain.com
    secretName: ingress-tls
status:
  loadBalancer:
    ingress:
    - ip: <IP_ADDRESS>

And here's the temporary http01 solver Ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/whitelist-source-range: <IP_ADDRESS>/0,::/0
  creationTimestamp: "2023-09-09T20:40:17Z"
  generateName: cm-acme-http-solver-
  generation: 1
  labels:
    acme.cert-manager.io/http-domain: "1002112676"
    acme.cert-manager.io/http-token: "918621676"
    acme.cert-manager.io/http01-solver: "true"
  name: cm-acme-http-solver-s9hk8
  namespace: kasten-io
  ownerReferences:
  - apiVersion: acme.cert-manager.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: Challenge
    name: ingress-tls-dztbt-2032437801-664857528
    uid: 99decbd8-a245-49c6-ac98-aaa50a8c28cb
  resourceVersion: "89593224"
  uid: dffaee17-448f-403d-97f9-876c042de232
spec:
  ingressClassName: public
  rules:
  - host: backup.mydomain.com
    http:
      paths:
      - backend:
          service:
            name: cm-acme-http-solver-9mgd4
            port:
              number: 8089
        path: /.well-known/acme-challenge/uJVJc7oUB4LKQkQrqYhI7eA7wCMEhtLO0DKab-LAmVQ
        pathType: ImplementationSpecific
status:
  loadBalancer:
    ingress:
    - ip: <IP_ADDRESS>

These resources look OK to me. The K10 Ingress works on port 80 without TLS but it looks like something is wrong with the http01 solver. I have multiple other Ingresses on this cluster, all subdomains of *.mydomain.com and these are able to provision and renew certs just fine.
Expected behaviour:
I expect HTTP 200 from the http-solver
Steps to reproduce the bug:
Create minimal values.yaml:
ingress:
  create: true
  tls:
    enabled: true
    secretName: ingress-tls
  host: backup.mydomain.com
  urlPath: "" #url path for k10 gateway
  pathType: ImplementationSpecific
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod

helm repo add kasten https://charts.kasten.io/
helm repo update kasten
helm upgrade -i --create-namespace -n kasten-io k10 -f values.yaml kasten/k10

Environment details::

Kubernetes version: MicroK8s v1.26.8
Cloud-provider/provisioner: Bare metal
cert-manager version: v1.12.4
Install method: Helm

/kind bug

@djjudas21 I have same setup, this is a ingress class bug, just change issuer ingress class to public will fix this.
    solvers:
    - http01:
        ingress:
          class: public

Hi @djjudas21 did you find any solution for this?

@Ek1m5 I honestly can't remember how I fixed it, although it is no longer a problem for me. My public ingress class is the default. I found this commit in my git history. It may or may not be relevant.
-  class: ""
+ #class: public

@yoyoys my clusterissuer config includes this, and seems to be working fine
    solvers:
    - http01:
        ingress: {}


Minor change to create/update migration stubs

This minor change to the create and update migration stubs puts the table name in one place.

As a quick way to explain this PR, I thought I'd add a few quick comments.
I doubt too many people are clamoring for such a change, but I finally decided to attempt to make the change after some time working with Laravel and specifically Laravel migrations for the following two reasons:

In practice, I'll often copy part of another migration, especially from the down() method, and especially the Schema::table() block.  Often, when I do the latter, I remember to change/update the table name, but sometimes I don't.  A simple change like this will save me a little bit of time and help to prevent the occasional error.
With the change, it's ever-so-slightly DRYer than before.  This is a very minor reason, and it might reflect a little OCD, but it's a fair reason, I believe.  :-)

I should add that I recognize that there may be times where such a change might introduce additional work or otherwise be detrimental...although I can't think of any scenarios.  I'd like to hear from anyone who might know of a scenario where this would be anything other than positive.

I think the original was fine.

That's unfortunate.  The original was definitely fine.  I think this minor change introduces some benefits, however, which relate primarily to saving time and minimizing error.  If that's not worth it, then so be it.
I'd like to see this reconsidered, if possible, especially since there's no (apparent) downside and the benefit, no matter how small, is still a benefit.  :-)
Whatever the case...thanks for your time/effort.

@taylorotwell First, thanks for the time/consideration.  :-)
Second, would you mind explaining why the small benefits aren't worth it?  I work with migrations quite a bit and a change like this will save me time and help keep me from making errors.  The original was definitely fine, as you say, but a change like this seems to make things better...if only slightly.
Thanks again for your time and, hopefully, reconsideration.  :-)


Update shouty.js to bring inline with shouty.java.

Updated the shouty.js codebase to be consistent with the current shouty.java implementation

Added Jest unit test framework, with failing unit test
Added implementation in line with shouty.java
Added sample scenarios, with Step Definition implementation

The changes here are now complete and ready for review.

I switched from Jest to Mocha because Jest was taking far too long to execute the tests.  ~5s, compared to a few < 50ms with Mocha.

Thanks @temyers!


newVar: inVBlock check not in global

fix https://github.com/goplus/c2go/issues/165
main.c
int main() {
    int t = 's';
    const int *set;
    if (t == 's') {
       static const int spaces[] = {'\0'};
       set = spaces;
    } else {
       goto end;
    }
	if (0) {
    goto end;
end:
        return 1;
    }
    return 0;
}

c2go main.c
func _cgo_main() int32 {

	var t int32 = 's'
	var set *int32
	if !(t == 's') {
		goto _cgol_2
	}
	set = (*int32)(unsafe.Pointer(&_cgos_main_spaces_main))
	goto _cgol_1
_cgol_2:
	goto end
_cgol_1:
	if true {
		goto _cgol_3
	}
	goto end
end:
	return int32(1)
_cgol_3:
	return int32(0)
}

var _cgos_main_spaces_main [1]int32 = [1]int32{'\x00'}

Codecov Report
Base: 89.02% // Head: 89.03% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (3f774d7) compared to base (4f582df).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #166   +/-   ##
=======================================
  Coverage   89.02%   89.03%
=======================================
  Files          10       10
  Lines        3390     3393    +3
=======================================
+ Hits         3018     3021    +3
  Misses        291      291
  Partials       81       81

Impacted Files
Coverage Δ

cl/blockctx.go
86.44% <100.00%> (+0.13%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


operator doc structure

Moved the API Operator overview to the reference section because otherwise, the content will repeat.
The operator's 'How To' docs are moved under 'Deploying on K8s'

 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.


Freesync Issue

Type: Performance Issue
This issue began with v1.78 and is still present in 1.80. If I revert to v1.77, it's fine. Disabling freesync for code.exe also works to stop this issue.
Hitting F11 on the keyboard (full screen shortcut) causes my monitor's refresh rate to drop by roughly half from 144hz, followed by random fluctuations. Exiting full screen may result in the refresh rate returning to 144hz, but not always. If the frame rate does not return to normal, then restarting the computer is required to fix it. Have tested by disabling all extensions as well, no change. The reduction in frame rate is clear and is the same if I were to specifically choose a lower refresh rate in Windows' display options. The refresh rate has been confirmed by using my monitor's OSD tools.
Windows 11 22H2
AOC 24G2W1G4
RX 6600, v23.7.1 (tried many other driver versions)

Steps:

Open Code
Hit F11
Observe reduced refresh rate

Profile-20230708T184409.zip
VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.22621
Modes: Restricted

System Info

Item
Value

CPUs
AMD Ryzen 5 3600 6-Core Processor               (12 x 3600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
31.93GB (20.53GB free)

Process Argv
--crash-reporter-id f09cc018-6a18-4dba-871e-f35a855e1b72

Screen Reader
no

VM
50%

Process Info
CPU %	Mem MB	   PID	Process
    0	   106	 11056	code main
    0	   164	  1580	window [2] (Untitled-1 - Visual Studio Code)
    0	    32	  1992	   crashpad-handler
    0	    86	  3180	fileWatcher [2]
    0	    84	  8620	shared-process
    0	    43	  9904	   utility-network-service
    0	   160	 16184	   gpu-process
    0	    88	 20064	window [5] (Issue Reporter)
    0	   120	 20440	extensionHost [2]
    0	    71	 20948	ptyHost

Workspace Info
;

Extensions (4)

Extension
Author (truncated)
Version

prettier-vscode
esb
9.19.0

remote-ssh
ms-
0.102.0

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.1

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30784847
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30785052
pythongtdpath:30769146
bgfeh915:30780428
pythonnosmt12:30779714
pythonidxpt:30784022
pythonnoceb:30776495
h7j2d465:30772216
cmakestatusbarv2:30779594

This needs to be resolved in the runtime, refs https://bugs.chromium.org/p/chromium/issues/detail?id=807406
You can also use --disable-gpu-vsync as a workaround.


Overlapped status

This makes it possible in general to reliably determine whether an I/O operation succeeded. For example, it enables graceful handling of TCP connect failures.
This PR enables https://github.com/carllerche/mio/pull/603.
Many thanks to @retep998 for his patient advice over the course of this work--this is my first foray into Windows systems programming and I certainly would have had a much more difficult time on my own.

Further investigation suggests that this is not in fact necessary for graceful handling of TCP connect failures. In lieu of any other motivating cases, I am closing the PR.


Rename cancellation

Issue Type: Bug
if I copy and paste a directory  and try to rename it immediately(in 150ms), it gets canceled. I think it is a process of updating the screen as the directory is copied.
VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T14:58:13.605Z)
OS version: Linux x64 4.15.0-161-generic
Restricted Mode: No

Duplicate of #112293


Attempting to run xunit integration test results in "Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll' file for package Microsoft.AspNetCore.Antiforgery.Reference" exception ( on 3.0.100-preview8-013596)

From @ossentoo on Tuesday, July 30, 2019 2:04:21 PM
HI,
I've upgraded a project from v2.2 sdk to v3.0 sdk.  This is because we want to use some of the new functionality in Microsoft.Data.SqlClient. and other web app features.
The web app runs fine (bar one or two problems that we are still investigating).
However, most of our web app integration tests are failing with the following exception:

System.InvalidOperationException : Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll' file for package Microsoft.AspNetCore.Antiforgery.Reference
at Microsoft.Extensions.DependencyModel.Resolution.ReferenceAssemblyPathResolver.TryResolveAssemblyPaths(CompilationLibrary library, List1 assemblies)    at Microsoft.Extensions.DependencyModel.Resolution.CompositeCompilationAssemblyResolver.TryResolveAssemblyPaths(CompilationLibrary library, List1 assemblies)
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List1 assemblies)    at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()    at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPartExtensions.<>c.<GetReferencePaths>b__0_0(CompilationLibrary library)    at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext()
at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.GetReferencePaths()
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.GetCompilationReferences()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func1 valueFactory)    at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func1 valueFactory)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.get_CompilationReferences()
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.LazyMetadataReferenceFeature.get_References()
at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorProjectEngine.ProcessCore(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.RazorProjectEngine.Process(RazorProjectItem projectItem)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.CompileAndEmit(String relativePath)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.OnCacheMiss(String normalizedPath)

Here's dotnet info
$ dotnet --info                                                                                .NET Core SDK (reflecting any global.json):                                                                                Version:   3.0.100-preview8-013596                                                                                Commit:    425adefb59                                                                                Runtime Environment:                                                                                OS Name:     Windows                                                                                OS Version:  10.0.14393                                                                                OS Platform: Windows                                                                                RID:         win10-x64                                                                                Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview8-013596\                                                                                Host (useful for support):                                                                                Version: 3.0.0-preview8-28379-02                                                                                Commit:  3a87ac0079                                                                                .NET Core SDKs installed:                                                                                1.0.4 [C:\Program Files\dotnet\sdk]                                                                                2.1.601 [C:\Program Files\dotnet\sdk]                                                                                2.2.100 [C:\Program Files\dotnet\sdk]                                                                                3.0.100-preview7-012821 [C:\Program Files\dotnet\sdk]                                                                                3.0.100-preview8-013596 [C:\Program Files\dotnet\sdk]                                                                                .NET Core runtimes installed:                                                                                Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]                                                    Microsoft.AspNetCore.All 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]                                                    Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]                                                   Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]                                                    Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                                    Microsoft.AspNetCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                                    Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                                   Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                                    Microsoft.AspNetCore.App 3.0.0-preview7.19365.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                   Microsoft.AspNetCore.App 3.0.0-preview8.19377.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]                                   Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                                          Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                                          Microsoft.NETCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                                          Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                                         Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                                          Microsoft.NETCore.App 3.0.0-preview7-27912-14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                        Microsoft.NETCore.App 3.0.0-preview8-28379-02 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]                                        Microsoft.WindowsDesktop.App 3.0.0-preview7-27912-14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]                          Microsoft.WindowsDesktop.App 3.0.0-preview8-28379-02 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]                                                                                To install additional .NET Core runtimes or SDKs:                                                                                https://aka.ms/dotnet-download

We are using a WebServerBase test startup class like this:
`    public class WebServerBase : IDisposable
{
public HttpClient Client;
    public WebServerBase()
    {

        var integrationTestsPath = PlatformServices.Default.Application.ApplicationBasePath;
        var applicationPath = Path.GetFullPath(Path.Combine(integrationTestsPath, "../../../../../application.web"));

        var server = new TestServer(new WebHostBuilder()

//                    .UseApplicationInsights()
.UseStartup()
.UseConfiguration(new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build()
)
.UseContentRoot(applicationPath))
{
BaseAddress = new Uri("https://localhost")
};
        Client = server.CreateClient();

        // ... initialize data in the test database ...
    }

    public void Dispose()
    {
        Client.Dispose();
        Client = null;
    }
}`

TestStartup has an override method to be used by tests only that looks like this:
`        protected override void ConfigureMvc(IServiceCollection services)
{
var assembly = Assembly.Load(new AssemblyName("application.web"));
        services.AddMvc(opts =>
        {
            opts.Filters.Add(new AllowAnonymousFilter());
        })
        .AddRazorRuntimeCompilation()
        .AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver =
            new CamelCasePropertyNamesContractResolver())
        .SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
        .AddApplicationPart(assembly);
    }`

I noticed that the app.UseMvc call is no longer being made for v3.0 apps.  However, for tests, I can't seem to remove AddMvc because if I do, I get a 404 response when a call is made to any controller action.
As you can see, I added AddRazorRuntimeCompilation to AddMvc because otherwise, another error was raised: The view 'Index' was not found.
As documented here:
https://github.com/aspnet/AspNetCore/issues/8783
It seems Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation does have Microsoft.AspNetCore.Antiforgery as a dependency, but can't find out for some reason.  In checking the bin/Debug/netcoreapp3.0 directory for the tests project, no assembly called Microsoft.AspNetCore.Antiforgery.dll is found.  At first I thought this was because dotnet was pulling this from the nuget packages directory (where it is present).  However, even if I try and force the assembly to the output directory by adding this statement to the csproj file:
true
it still doesn't appear.
I can provide access to the source if required via one of our private github repos if review is required.
Copied from original issue: dotnet/core-sdk#3603

From @livarcocc on Tuesday, July 30, 2019 2:38:59 PM
Moving this to asp.net for them to have a first look. If this is indeed on the SDK, just let us know.

@ossentoo could you share a minimal sample that reproduces the issue?

sure @pranavkm.  Let me try and put something together

@pranavkm can you I add you to private github repo?  It would make it easier to demonstrate the problem

Sure. That works

ok I'll try and get something to you tomorrow.

Sure. That works

@pranavkm You should have received an invite with code which reproduces the issue.  Let me know if anyone else needs access.

Thanks @ossentoo. I have a follow up issue to consider a possible fix for this (#12768), but it'd be much easier for you to resolve the issue by avoiding runtime compilation. As part of TestStartup.ConfigureServices, just add the views assembly as an application part:
protected override void ConfigureMvc(IServiceCollection services)
{
    var assembly = Assembly.Load(new AssemblyName("mercle.xperters.web"));
    var viewsAssembly = Assembly.Load(new AssemblyName("mercle.xperters.web.Views"));

    services.AddMvc(opts =>
    {
        opts.Filters.Add(new AllowAnonymousFilter());
    })
    .AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver =
        new CamelCasePropertyNamesContractResolver())
    .SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
    .AddApplicationPart(assembly)
    .AddApplicationPart(viewsAssembly);
}

Ok @pranavkm. i’ll give that a try and let you know.

thanks a lot @pranavkm .  I removed the razor compilation package and added the changes you suggested.  The test now works.
Please close the issue.


Pretrained AE resnet50-imagenet is unavailable

🐛 Bug
I am following the example on doc, and it seems there is not "resnet50-imagenet" pretrained model as I get the error shown below:
Traceback (most recent call last):
  File "/tmp/a.py", line 19, in <module>
    model = model.from_pretrained('resnet50-imagenet')
  File "/home/nitta/.pyenv/versions/anaconda3-5.3.1/envs/bolts/lib/python3.8/site-packages/pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py", line 94, in from_pretrained
    raise KeyError(str(checkpoint_name) + ' not present in pretrained weights.')
KeyError: 'resnet50-imagenet not present in pretrained weights.'

To Reproduce
Minimal code to reproduce:
from pl_bolts.models.autoencoders import AE
model = AE(input_height=32)
model = model.from_pretrained("resnet50-imagenet")

Just created a PR #225 to fix the AE example as well as the VAE example.


Bug: New-PSDrive : A drive with the name 'TestDrive' already exists.

Issue
This is a bug or unexpected behaviour.
Bug Report
General Troubleshooting steps

[x] Verified running the latest release of dbachecks?

Do versions match?
(Find-Module dbachecks).Version
(Get-Module dbachecks).Version.ToString()

Yes: 1.1.127
Major  Minor  Build  Revision
-----  -----  -----  --------
1      1      127    -1

[ ] Verified errors are not related to permissions?
Not sure.

[ ] Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)?
No

Version Information

Operating System (Name|Version):  Microsoft Windows 10 Enterprise | 10.0.17134 N/A Build 17134
PowerShell Version: 5.1.17134.48
SQL Server (Edition|Version): NA

Steps to Reproduce
import-module dbachecks
Invoke-DbcCheck -AllChecks -ExcludeCheck TestLastBackupVerifyOnly,LinkedServerConnection -show Summary -PassThru | Update-DbcPowerBiDataSource -Environment SQL

[ ] Attach any screenshots (if possible/allowed)
[x] Attach output from PowerShell console (if possible/allowed)

WARNING: [11:56:46][Invoke-DbcCheck] LogShipping ExtendedEvent HADR PseudoSimple spn will be skipped
Executing all tests in '.'
WARNING: [12:17:12][HADR.Tests.ps1] FailoverClusters module could not load - Please install the Failover Cluster module
 using Windows Features  | The specified module 'FailoverClusters' was not loaded because no valid module file was
found in any module directory.
WARNING: You need to use Set-DbcConfig -Name policy.xevent.requiredstoppedsession -Value to add some Extended Events
session names to run this check
WARNING: You need to use Set-DbcConfig -Name policy.xevent.requiredrunningsession -Value to add some Extended Events
session names to run this check
WARNING: You need to use Set-DbcConfig -Name policy.xevent.validrunningsession -Value to add some Extended Events
session names to run this check
New-PSDrive : A drive with the name 'TestDrive' already exists.
At C:\Program Files\WindowsPowerShell\Modules\Pester\4.3.1\Functions\TestDrive.ps1:22 char:9
+         & $SafeCommands['New-PSDrive'] -Name $DriveName -PSProvider F ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (TestDrive:String) [New-PSDrive], SessionStateException
    + FullyQualifiedErrorId : DriveAlreadyExists,Microsoft.PowerShell.Commands.NewPSDriveCommand

Tests completed in 12775.49s
Tests Passed: 20765, Failed: 1225, Skipped: 60, Pending: 0, Inconclusive: 0
[15:29:45][Update-DbcPowerBiDataSource] Wrote results to C:\WINDOWS\temp\dbachecks\dbachecks_1_SQL.json

Hmm, I havent seen this before. Could you run  with -Verbose and attach the output.
You may need to run
$tests = Invoke-DbcCheck -AllChecks -ExcludeCheck TestLastBackupVerifyOnly,LinkedServerConnection -show Summary -PassThru -Verbose
$tests | clip

to get it into the clipboard to paste

@SQLDBAWithABeard Here's the one ran now. Lmk if you need anything else. Thx!

TagFilter         : {}
ExcludeTagFilter  : {TestLastBackupVerifyOnly, LinkedServerConnection}
TestNameFilter    :
TotalCount        : 22785
PassedCount       : 21452
FailedCount       : 1295
SkippedCount      : 38
PendingCount      : 0
InconclusiveCount : 0
Time              : 01:05:18.7467663
TestResult        : {@{ErrorRecord=; ParameterizedSuiteName=; Describe=SQL Agent Account; Parameters=System.Collections.Specialized.OrderedDictionary; Passed=True; Show=Summary; FailureMessage=; Time=00:00:01.3739215; Name=SQL Agent Should Be running on HIRAMWKS; Result=Passed; Context=Testing SQL Agent is running on HIRAMWKS; StackTrace=}, @{ErrorRecord=Expected strings to be the same, because Otherwise the Agent Jobs wont run if the server is restarted, but
                    they were different.
                    Expected length: 9
                    Actual length:   6
                    Strings differ at index 0.
                    Expected: 'Automatic'
                    But was:  'Manual'
                    -----------^; ParameterizedSuiteName=; Describe=SQL Agent Account; Parameters=System.Collections.Specialized.OrderedDictionary; Passed=False; Show=Summary; FailureMessage=Expected strings to be the same, because Otherwise the Agent Jobs wont run if the server is restarted, but they were different.
                    Expected length: 9
                    Actual length:   6
                    Strings differ at index 0.
                    Expected: 'Automatic'
                    But was:  'Manual'
                    -----------^; Time=00:00:00.0084901; Name=SQL Agent service should have a start mode of Automatic on HIRAMWKS; Result=Failed; Context=Testing SQL Agent is running on HIRAMWKS; StackTrace=at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\dbachecks\1.1.127\checks\Agent.Tests.ps1: line 13
                    13:                         $psitem.StartMode | Should -Be "Automatic" -Because 'Otherwise the Agent Jobs wont run if the server is restarted'}, @{ErrorRecord=; ParameterizedSuiteName=; Describe=SQL Agent Account; Parameters=System.Collections.Specialized.OrderedDictionary; Passed=True; Show=Summary; FailureMessage=; Time=00:00:01.4749571; Name=SQL Agent Should Be running on DEVSQLSVR01; Result=Passed; Context=Testing SQL Agent is running on
                    DEVSQLSVR01; StackTrace=}, @{ErrorRecord=; ParameterizedSuiteName=; Describe=SQL Agent Account; Parameters=System.Collections.Specialized.OrderedDictionary; Passed=True; Show=Summary; FailureMessage=; Time=00:00:00.0046799; Name=SQL Agent service should have a start mode of Automatic on DEVSQLSVR01; Result=Passed; Context=Testing SQL Agent is running on DEVSQLSVR01; StackTrace=}...}


feat: TES Compliance Suite via YAML jobs & Pydantic models

The following changes include

CLI Interface
TES v1.0 API Specs
YAML Test Files
Job Runner and Test Runner
REST requestor
Exception Handling
Unit Tests (Coverage 97%)

I have updated the code for most of the comments. Thank you for suggesting them, some of them really improved the code structure.
Just 2 major things remaining -

Regarding File Paths - Since we are splitting the repo, so it will be updated later.
Regarding ComplianceException - I am catching all exceptions under it so that I can process all the Test files without exiting the code.


Aquarium and pH

A lot happening here.  I've sent out a usage document, which should probably become public documentation at some point.
Main changes:

Aquarium created
pH created
Clay queues incoming changes so that no more than one change happens in a single event
Various small sequencing changes in vanes, to improve robustness
Clay stores the rift number that we had for the foreign ship with its desks.  We should use this information for individual breaches, but this doesn't attempt to solve that.

@philipcmonk, how long do some of these basic tests task? It'd be nice to wire something up for CI, as an example for future testing efforts if nothing else.

Haven't timed it, but something like 5-10 minutes on my machine.  It's significantly faster if you don't start collections, acme, dns, and hall.  If it's easy to wire up to CI, I'd say we should do it.  CI is changing in cc-release, so we also could just hook it up to CI there.

@philipcmonk, i think it's worth adding to CI. It's not particularly complicated to add now, and then re-add once arvo/next converges with vere/cc-release. Duplicating the |mass implementation (here: https://github.com/urbit/arvo/blob/next/.travis/test.js#L77) gets you most of the way, you just need to scrape for an error condition (a la https://github.com/urbit/runner-js/blob/master/lib/actions.js#L26). I can help if runner-js gives you trouble.

Added it to CI.  Now CI takes ~25 minutes.  Looks like the old builds took between 8 and 17 minutes (not sure what causes them to be longer; maybe changes to /sys?).

Changes to sys/ definitely should take longer, as they build a new pill;
are there many that are not close to 8 or close to 17 minutes?
On Fri, Mar 29, 2019 at 4:59 PM Philip Monk<EMAIL_ADDRESS>wrote:

Added it to CI. Now CI takes ~25 minutes. Looks like the old builds took
between 8 and 17 minutes (not sure what causes them to be longer; maybe
changes to /sys?).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/1120#issuecomment-478183538, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABxXhqZsUifobA8vJ5fGvKYRqv_X7f_Iks5vbqjggaJpZM4cEoU2
.

Also, would it be possible to add custom folds for individual test phases showing more granular timings? Even 8 minutes is rather a lot.
(5 of those is the actual test script, 8 in the pill case; it looks like we're maybe building the pill twice??)

@ohAitch, we have to build a second pill to correctly capture userspace changes (which are now stored in the pill).
I think the right approach is to a) split the different test types across different CI jobs and b) cache and promote build artifacts more efficiently. The right place will be on top of cc-release, which now uses nix and make as the build system, and urb.py as the test runner. The right time will be when somebody is free to work on it.

Hm, I don't see it being built at all in the 8 minute cases though, is this
a master vs cc-release difference? (And even if you have to add userspace,
recompiling everything from scratch seems superfluous given you could
instead just mutate the "userspace files" event at the end of the pill)
Agree that the Travis build matrix seems useful here, if most of the test
time is in fact straightforwardly parallelizable.
On Friday, 29 March 2019, Joe Bryan<EMAIL_ADDRESS>wrote:

@joemfb approved this pull request.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/1120#pullrequestreview-220807219, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABxXho-G1P51CtKs0xv6Dfxnh-E_jwLAks5vbuccgaJpZM4cEoU2
.

It's still only built on changes to sys, but when it's built it's build twice twice: first to stage the kernel changes, second to make the complete up-to-date pill that will be uploaded. This is of course stupid and inefficient, but was the easiest way to make the new pills not wrong. My grand plan is to let the pain of these slow builds increase until someone (maybe me!) snaps and makes it fast.

In that case it is certainly correct to merge the 25-minute version B)
On Friday, 29 March 2019, Joe Bryan<EMAIL_ADDRESS>wrote:

It's still only built on changes to sys, but when it's built it's build
twice twice: first to stage the kernel changes, second to make the complete
up-to-date pill that will be uploaded. This is of course stupid and
inefficient, but was the easiest way to make the new pills not wrong. My
grand plan is to let the pain of these slow builds increase until someone
(maybe me!) snaps and makes it fast.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/1120#issuecomment-478206581, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABxXhoXFduH_mLPkEjTSQwJ9zp9qnLORks5vbupugaJpZM4cEoU2
.


the contributors.svg does not work

I do not know why this svg does not work:

The image appears to be working - maybe it was temporary?

Thanks，it works now.

Mine doesn't work too. Should I wait some time?

I think there is an issue pulling the contributors image right now - I'm getting a not found when I test @dooboolab

@monkeywithacupcake Any idea how to solve this? Others works fine but mine doesn't..

@dooboolab @monkeywithacupcake Everything should work, if you have any issue, please post the address of the SVG that you're having problem with.

@lr1d works now.

@znarf Hi, https://opencollective.com/ctf-wiki/contributors.svg returns "Not found", and also it does update after a long time..

Hi, @iromise - it looks like the image is working now

yeah, now it can be shows.. but the number of the people is less than the number of contributor as github shows(https://github.com/ctf-wiki/ctf-wiki/graphs/contributors)...

@monkeywithacupcake fixed

I'm getting "Not Found" for https://opencollective.com/marko-js/contributors.svg
Wasn't sure if this warranted a new issue as there have been a few urls mentioned in this thread.

@mlrawlings looks like your Collective was not active yet. I manually triggered the creation of the badge.

I am getting not found https://opencollective.com/restaurant-app/contributors.svg

@znarf  https://opencollective.com/reixs/contributors.svg returns "Not found"

Hi @znarf https://opencollective.com/rdebug/contributors.svg return "Not found"

@znarf
Hi,
I am reporting that the contributors.svg of my GitHub repositories doesn't work, returning "Not found".
https://opencollective.com/ants/contributors.svg
https://opencollective.com/gnet/contributors.svg

@znarf https://opencollective.com/gacp/contributors.svg does not work.

Hi,  @znarf  https://opencollective.com/we-cropper/contributors.svg return "Not found"

Hi @znarf https://opencollective.com/vue-material/contributors.svg return "Not Found"!

Hi @znarf https://opencollective.com/gui-ui-guideline/contributors.svg return "Not found"


Think about how to handle duplicate sessions (e.g. behaviour vs. ephys > behaviour)

Often experiments are structured with long periods of behavioural training (behaviour only) interspered with ephys or other sessions that include behaviour as a contstituent part (e.g. a test session with NP recording + behaivour). How to handle the behaviour stored in this case is not clear.  Options are:

store behaviour data under ephys - this is nice as all session data is together. However this is a problem when looking at behaviour folder as this session will be missing, and the session number could be duplicated.
store ephys behaviour data under behavior . This means that behaviour folder sessions are aligned, but ephys behaviour data is not with the other ephys files, and there is some divergence e.g. 'ephys session 2 used behaviour session 32'

A possible solution is symlinking (e..g make a symlink to ephys>behav folder in behav (though might be some cross platform issues https://unix.stackexchange.com/questions/63172/does-windows-recognize-linuxs-symbolic-links).
This is something to discuss with researchers about preferred behavior and how they currently handle this organisation.

Hmm, this seems important.
I'm not a huge fan of storing one type of data "under" another. Is there a way we can solve this with metadata? I.e. when you create a new session (that might be ephys session 1 but behaviour session 50) there is some metadata that associates these? This metadata could be expanded later to align recordings in time.

Yes I've discussed with Niko a bit too and its definately a key thing to think about. Using the meta-data is a nice idea, it would definately be cleanest to split by data type.
I think it would be good to survey researchers about what they do at the moment / think is the best approach. The main issue of splitting up the data-type is that it can make things a bit more confusing as there is some duplication of session number. e.g. for some arbitary experimental design where there are 5 training sessinons,  a test session, then another 5 training sessions, and a second test session. You might usually split this into training data - behaviour, and ephys data. Then its easy to think 'test behaviour is in ephys tests 1, 2' rather than having to figure out 'behaviour session 6 is ephys session 1, behaviour session 12 is ephys session 2'. Obviously if you have 100 training sessions and 10 test sessions this can get quite complicated, although we could of course provide tools to make it as smooth as possible.
Overall its definatly neater, and better for project organisation to split it by data type, and many labs may already do this, but it could be something people might feel strongly about. I'll also raise an issue on the BIDS extension protocol github to see what their thoughts are on this.

Then its easy to think 'test behaviour is in ephys tests 1, 2'

To me it's very confusing if ephys anything 1 doesn't actually have any ephys data.
Agree that a survey is the right approach. We may find common patterns of how people like to store/handle/analyse data.
In the end I think any schema is better than nothing though, so we will have to decide on something.
Another option is to focus on the API and not on the storage backend. How will people actually interact with the data? And could we offer both a data-first and an experiment-first interface?

I like the symlink approach, but as you said Joe, this will probably lead to cross-platform issues. Storing the 'link' info in a metadata file could be the fall-back solution.
I just had another idea though:
Currently the data is organized as follows:
└── project_name/
    └── raw_data/
        ├── ephys/
        │   └── sub-001/
        │       ├── ses-001
        │       └── ses-002
        └── behav/
            └── sub-001/
                ├── ses-001
                └── ses-002

Instead, we could organise the data with the modality (ephys, behav, etc) level below the session level, thus:
└── project_name/
    └── raw_data/
        ├── sub-001/
        │   └── ses-001/
        │       ├── ephys/
        │       └── behav/
        │   └── histology/
        └── sub-002/
            └── ses-001/
                ├── behav/
                └── imaging/
            └── ses-002/
                └── behav/
            └── histology/

This way, the session number always increments by one no matter what experiment was done (ephys, behav, imaging). Each session subfolder includes directories only for the modalities that were actually acquired. If ephys was acquired only during a subset of a behavioral session, this should be somehow stored in metadata to handle synchronisation. Histology is an exception to this scheme, since it can only be done once per subject, so it belongs under the subject-level directory.
The added benefit of nesting the modalities under the sub/ses levels is that it directly mirrors how BIDS handles MRI data. Quote from their specification:

Data type - A functional group of different types of data. Data files are contained in a directory named for the data type. In raw datasets, the data type directory is nested inside subject and (optionally) session directories. BIDS defines the following data types: func (task based and resting state functional MRI), dwi (diffusion weighted imaging), fmap (field inhomogeneity mapping data such as field maps), anat (structural imaging such as T1, T2, PD, and so on).....

There may be ways in which this scheme doesn't work for systems neuroscience experiments, though I cannot foresee them without getting direct feedback. I also do realise that if we go with my suggestion, the code will require lots of restructuring.
What do you think?

I think that is a nice approach that solves the main problem, the reasons for not originally going that route are below*, but I think those issues are less than those caused by the current implementation, for which either solution is sub-optimal.
I posted an issue on https://github.com/INCF/neuroscience-data-structure/issues/12, please feel free to add / I am happy to make any edits. Also, for surveying researchers, how about something like the below message (happy for anyone to post it) on SWC slack (not sure what is best channel for this):
"Hi everyone, we at the neuroinformatics-unit are thinking about the best ways to standardised project folder structure as much as possible across the SWC. There have been many great initiatives to promote standardized folder structures (e.g. BIDS), but there still many cases where the appropriate structure is not clear. We wanted to know how you are structuring your project folders, in particular the different data types (e.g. ephys, behaviour, imaging etc.). e.g. do you store all behavioural types for a single session together, or split all sessions by data type? It would be great to hear back how you do this, or event create a quick example of your structure at: https://tree.nathanfriend.io/! Thanks, neuroinformatics team"
^quite rough so please feel free to edit as much as you like

Not arguing these points but just want I thought at the time:

because the structure it mixes the data types, it is difficult for a researcher with no coding experience to select the data by datatype and transfer it, by hand. Similarly, it is difficult to find certain sessions by browsing the folder structure rather than accessing programmatically. Although datashuttle would do all of this for the user, I like the idea that the folder structure is still very convenient to manipulate by hand in a way that is natural for the researcher, just so working with their data outside datashuttle is not frustrating. That been said, maybe researchers already use this structure and copy by hand anyway.

the BEP for ephys top level directory is ephys, and there are other BEP e.g. for intracellular electrophysiology, microscopy (https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/10-microscopy.html). This gave me a vague idea it would be better to split the folders by datatype, but I think these considerations should come second to optimal directory organisation.

"Hi everyone, we at the neuroinformatics-unit are thinking about the best ways to standardised project folder structure as much as possible across the SWC. There have been many great initiatives to promote standardized folder structures (e.g. BIDS), but there still many cases where the appropriate structure is not clear. We wanted to know how you are structuring your project folders, in particular the different data types (e.g. ephys, behaviour, imaging etc.). e.g. do you store all behavioural types for a single session together, or split all sessions by data type? It would be great to hear back how you do this, or event create a quick example of your structure at: https://tree.nathanfriend.io/! Thanks, neuroinformatics team"

Looks good to me. I think you should post it as you're leading this effort (otherwise there will be a lot of forwarding messages to you).
Agree with your other points above. I think I'm leaning towards the session-first approach, but as @robertoostenveld pointed out in https://github.com/INCF/neuroscience-data-structure/issues/12#issuecomment-1305769552, the most important thing is that we have a standard, and that we support it very well with tools/docs/training etc.

Hey @JoeZiminski ,
In case you haven't sent the message around, below I suggest a bit of rephrasing, and have also added tree examples, to make sure it's clear what we mean. Feel free to adopt (parts of) my version, or not.
"Hi everyone, we at the neuroinformatics-unit are thinking about the best ways to standardise project folder structure as much as possible across the SWC. There have been many great initiatives to promote standardized folder structures (e.g. BIDS), but in many cases the appropriate structure is not clear.
We wanted to know how you are structuring your project folders, in particular when they include different data types (e.g. ephys, behaviour, imaging etc.). Do you store all data types for a single session together (resembling option A), or split all sessions by data type (closer to Option B)?
Option A
Project
└── mouse-01
    ├── session-01
    │   ├── ephys
    │   └── behaviour
    └── session-02
        ├── ephys
        └── behaviour

Option B
Project
└── mouse-01
    ├── ephys
    │   ├── session-01
    │   └── session-02
    └── behaviour
        ├── session-01
        └── session-02

It would be great to hear back how you do this, or what appears as more useful/intuitive to you. The best would be to create a quick example of your project folder structure at: https://tree.nathanfriend.io/!
Thanks, the neuroinformatics team"


Add missing circleci context

This context contain the GITHUB_TOKEN env var needed to publish a new release. We previously used this context but for some reason we dropped it when moving from cloudskiff to snyk.

Codecov Report

Merging #1289 (59a6718) into main (7a3b7f7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1289   +/-   ##
=======================================
  Coverage   81.90%   81.90%
=======================================
  Files         398      398
  Lines       14442    14442
=======================================
  Hits        11828    11828
  Misses       2319     2319
  Partials      295      295


pybind11 default arguments slow

This should be improved by adding small python functions that call them and therefore remove the default arguments from pybind11. This way people who really need even more performance can directly call the cpp function and specify all arguments while everyone else keeps the nice interface with the default arguments

Improved in 996cac3417d255052f0ba757b012e7e859b99b48


Feature oop

Used Decorator design pattern to validate and correct the names of people.

Created a class Corrector with a method correct_name
Set an instance of Corrector in Person on initialization.
In Person added a method validate_name that uses the Corrector instance to validate and save the corrected name.

STATUS: APPROVED 🟢 🥳
Hi @peterdgreat 🥇 ,
Congratulations!!! 🥳 🎉
You have successfully completed all the expectations for this project, there is nothing more to do here, now you can go on your way and keep improving your skills.
Cheers and Happy coding!👏👏👏

If anything is not 100% clear please leave your questions or comments in the PR thread, we will be glad to help you 😄.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Can't seem to find location/actually download a youtube video

I'm not sure whether it's failing to download, or just the location is set incorrectly.
Environment: VSCode
Windows 11
Bash Shell
async function downloadYoutubeToFolder({ episode, url, title }) {
  const pathToDL = "D:/path/to/directory/";
  // Check if the directory exists
  if (!fs.existsSync(pathToDL)) {
    // If it doesn't exist, create the directory
    fs.mkdirSync(pathToDL);
  }
  const outputFilePath = `${pathToDL}/${title}.json`;
  const outputFilePathVid = `${pathToDL}/${title}`;
  const YT_OPTS = {
    dumpSingleJson: true,
    noCheckCertificates: true,
    preferFreeFormats: true,
    addHeader: ["referer:youtube.com", "user-agent:googlebot"],
    path: outputFilePathVid,
    output: title,
    writeInfoJson: true,
  };
  try {
    const promise = youtubeDl(url, YT_OPTS).then((output) =>
      fs.writeFileSync(outputFilePath, JSON.stringify(output, null, 2))
    );
    const result = await logger(promise, title);
  } catch (err) {
    console.log("error", err);
  }
  //console.log(result);
}

The result is here:

With the following in the output in the JSON section under filename
     "_filename": "D:\\path\\to\\video", "filename": "D:\\path\\to\\video",       "__write_download_archive": false
Attached is the JSON output. I'm really confused as to where it's downloading, or if it's failing to download, how to get it to download in a chosen directory.
JSONOutput.json

Hello, this library is a simple connector for https://github.com/yt-dlp/yt-dlp. I can't help there, try to use yt-dlp via CL and then do the same using this library.


Add SideBar Example

Subject
SideBar
Description
Create a component example where SideBar is the subject.
https://flowbite.com/docs/components/sidebar/
Are you willing to participate in the development of this component and create a pull request?
None

This isuue will be closed as the navigation/navigation bar is sufficient. (Identification verified)


updating for 1.08 Steam patch

This is the updated offset for Steam patch 1.08.
Verified working on my machine.

You don't have a release? Somehow I can't build the project using pyinstaller

How do I use this to update TekkenBotPrime myself?  I'm searching where MemoryAddressEnum.py is but I can't find it?  Should I change memory_address.config?

You need to use pyinstaller, but it's not building properly on my end

Pull requests aren't for support, please take the conversation over to the Issues section. Thanks.

Would you be able to upload all the files for a simple download of the working build?

Yes please Pobega.  The fate of the world is in your hands!  Can you just upload an already compiled version for us plebs?

For future reference can you explain how you got the offset value.

Sorry for the late reply; Roguelike2D uploaded a video tutorial on how to do it himself, it took me a while to find:
https://www.youtube.com/watch?v=wqY3A6R-gVM&feature=youtu.be

I'm closing this PR since it's a bit outdated, but I'll see about making a build for the current Tekken patch sometime this weekend if someone else hasn't done it already.


[Suggestion] Cascading Fisher

Just an early-ish game block that could be placed over water (say a 3x3x3 pool minimum) that fishes.

I like this alot, actually. Need more early game consumers. Will implement
On Tue, Jul 7, 2015 at 8:59 AM, Ayrrow<EMAIL_ADDRESS>wrote:

Just an early-ish game block that could be placed over water (say a 333
pool minimum) that fishes.
—
Reply to this email directly or view it on GitHub
https://github.com/pixlepix/Aura-Cascade/issues/67.

--
This message has been encrpyted with ROT-13 twice for double security.


adds function to return a bytes object from a PK in hexadecimal values

Updates #11
Simply replace sender_pk as per the below picture to test.

After testing, the code is correct.


chore: bdd-spring-1586363056 to 0.0.1

chore: Promote bdd-spring-1586363056 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


fix: bn overflow error

most of the time calling toNumber() would result in Number can only safely store up to 53 bits, workaround is to just call toString() into Number()

I've seen it as well, would be great to have it fixed in the lib directly, could be someone setting orders with very large prices that causes that? not sure.

@armaniferrante, can help take a look with this? Some serum orderbook break when fetching l2 because of large number, this would mitigate it


Identify core SFDC Entities and dbt models

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/361
Originally created by @iroussos on 2019-02-07 15:38:31

Identify a self-sufficient, simple to understand and good for showcasing transforms subset of the models defined in gitlab-data/analytics/ for SFDC.
We could start as an example with {user, account, lead, opportunity, contact}

Check that tap-salesforce properly runs when those entities are selected. e.g.
meltano init sfdc-project
cd sfdc-project

# Update .env with the proper credentials for SFDC (`$SFDC_USERNAME`, etc)

meltano add extractor tap-salesforce
meltano select tap-salesforce "user" "*"
meltano select tap-salesforce "account" "*"
meltano select tap-salesforce "lead" "*"
meltano select tap-salesforce "opportunity" "*"
meltano select tap-salesforce "contact" "*"
meltano add loader target-postgres

meltano elt tap-salesforce target-postgres

Relevant discussion on undefined##undefined

View 3 previous comments from the original issue on GitLab


Can the code be used to generate the triggers for the vision transformer?

Hi, Yizeng. Thank you for your excellent work. Can your code be used to generate trigger for another architecture, e.g. ViT? Looking forward to your reply!

Hi there. Thanks for your interest in this work.
FYI, guess you are talking about Section 5 to generate the smooth trigger. The code can directly be used to generalize to ViT if your model structures are defined in TensorFlow. You can do it in PyTorch as well, which is also quite simple: {load your model (ViT), plug in a PGD attack workflow in PyTorch, replace the gradient projection in PGD with the low-pass filter}, then you should be good to go.
However, one thing I would like to clarify is that the generated trigger for CIFAR-10 and GTSRB should enjoy quite well generalizability to attack different structures. You might not need to generate a trigger dedicated to ViTs.
Some side notes: Our recent work developed an in-ward pointing design of a clean-label backdoor attack. Given the same low-pass filter as the constraint, the new attack is more effective than the smooth trigger developed in this paper with better stealthiness (lower poison ratio/ clean-label attack/ higher ASR).

Yizeng, thank you for your reply!!! Your suggestion is quite helpful!!!


Add property helper function

Closes #17

@hespuck19 can you take a look at this? Hopefully useful in a number of places

@hespuck19 can you take a look at this? Hopefully useful in a number of places

Definitely looks helpful! I think there may be one section where I don't want to evaluate Laurent polynomials but I think the way its setup now should still work with the changes you suggested there.

Looks like I broke all the tests, do you have time to look more at this, @hespuck19? There's also many more places this function could be used (once it actually works of course)

Looks like I broke all the tests, do you have time to look more at this, @hespuck19? There's also many more places this function could be used (once it actually works of course)

I'll make a new branch and try to implement something that (maybe, hopefully) doesn't break the tests.


[TC-BRBINFO-2.1] Script has to be updated as per test plan changes

Description:

TC-BRBINFO-2.1: Step 62 and 63 has been added newly in test plan. So Yaml script has to be updated for the same.

@KishokG fixed in PR 30951 please verify it and close the ticket.

Issue resolved

Issue resolved


feat: popup amount notation

Context

Closes #.
Changes proposed in this pull request

Extension builds preview

Name
Link

Latest commit
83932d339513a38849b375936951a7217b45aacb

Latest job logs
Run #8614388066

N/AN/A


[stable/oauth2-proxy] Support advanced secret config in oauth2-proxy

This change allows clientID, clientSecret and cookieSecret to all
be managed independently. This enables easy integration with other
services such as keycloak-operator.
Checklist

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

Any update on this PR ?
I think it is related to #21198

@kfox1111  if you don't mind :

could you please share the full stack ( keyCloack-operator, oauth2-proxy, ... )  and how it works
And what's your workaround as this PR has not been merged ?

Sorry. I didn't see the comments on this till now.
I deployed the keycloak-operator as in whats described on operatorhub.io
then created a client like:
apiVersion: keycloak.org/v1alpha1
kind: KeycloakClient
metadata:
  name: foo
  namespace: my-keycloak-operator
  labels:
    app: sso
spec:
  client:
    redirectUris:
    - 'https://mysite.mydomain'
    description: Foo Client
    enabled: true
    clientId: foo
    name: foo
    secret: fooclient
  realmSelector:
    matchLabels:
      app: sso

then you can use oauth2 proxy to read the secrets with this patch like:
https://github.com/helm/charts/pull/22231/files#diff-1814985cb280af8b98f23690d9facec5R159-R168
As a workaround, I had to manually create the oauth2 proxy secret reading out the data in the keycloak managed secret and putting it into the oauth2 proxy secret. This is not ideal though.


\n in output isn't interpreted.

Could you elaborate? Is \n not translated into a new line?

Exactly, @onbjerg. Try executing echo "one\ntwo" in Black Screen and, say, iTerm.

@shockone I ran a few scenarios through mac terminal and black-screen. mac terminal behaved as I would have expected:
reference
# echo "a\nb"
a\nb
# echo -e "a\nb"
a
b
# echo "a\\nb"
a\nb
# echo -e "a\\nb"
a\nb

black-screen
# echo "a\nb"
anb
# echo -e "a\nb"
anb
# echo "a\\nb"
a
b
# echo -e "a\\nb"
a\nb

Hi,
I tried to run the same scenarios in iTerm2, Terminal and black-screen and I get different behaviours in almost all of them.
After reading this stackexchange answer it seems that it depends on the implementation of the echo command you have.

The behaviour of the echo command depends on the default shell which you have in your OS.
You could check which one you are using by executing the echo $SHELL command in your terminal. Black-screen can use bash or zsh for your commands execution depending on that variable, that's why behaviour can be different for different users.

I'm closing this because it seems that now it behaves correctly.


ESP32-C3: Correct GPIO pin in hello_rgb example

It seems that the LED pin was changed accidentally in an older commit, fix this.
The LED is connected to pin 8 and not pin 2, see:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/hw-reference/esp32c3/user-guide-devkitm-1.html#j3
Thank you!
Thank you for your contribution.
Please make sure that your submission includes the following:
Must

[x] The code compiles without errors or warnings.
[x] All examples work.
[x] cargo fmt was run.
[x] Your changes were added to the CHANGELOG.md in the proper section.
[ ] You updated existing examples or added examples (if applicable).
[ ] Added examples are checked in CI (not applicable)

Nice to have

[x] You add a description of your work to this PR.
[ ] You added proper docs for your newly added features and code. (not applicable)

Thanks! The chosen GPIO is for the Rust-board ( https://github.com/esp-rs/esp-rust-board ) but there is currently a huge overhaul of the examples in progress and the plan is to configure the examples for DevKitC (which would be GPIO 8)

Given all the examples will be changed soon - any thoughts regarding this, @jessebraham ?

The chosen GPIO is for the Rust-board ( https://github.com/esp-rs/esp-rust-board )

I see, then maybe the comment in the source file should be changed to reflect that? Because at the moment it says "ESP32-C3-DevKitM-1 and ESP32-C3-DevKitC-02 boards" and "GPIO8 pin". Or does it not matter as it will be changed to DevKitC anyway?

Oh yes - the current comment and the used pin don't match. We need to make sure not to have a similar inconsistency in the changed examples. Thanks for pointing this out

I will be submitting a PR tomorrow which nukes the chip-specific HAL packages, so any changes to examples merged before then will be almost immediately deleted :)

Ah ok, interesting. I guess I will close this then.


docs(architecture) Adds an architecture page.

Adds a simple architecture description.

it appears that sphinx is configured with the mermaid plugin, might be good to use that for the diagrams (since it's just markdown then)

Will try to redraw it there later.


Console: Feature request: provide example payloads in function invocation screen

It would be good to mimic the behaviour of the lambda test screen on the AWS console in which templates are available to send as payloads.
Example: an apigateway proxy payload

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


Importing error in scipy.spatial.distance

I am getting an error while importing scipy.spatial.distance.
code example:
"""
import numpy as np
from scipy.spatial.distance import pdist
x=np.array([[[-0.22008298,  0.28819615,  0.09895946,  0.16789497,  0.02379252,
-0.25700486,  0.1628186,   0.12296761,  0.01750283]],
[[ 0.29891527,  0.17249978, -0.10084602, -0.16522293,  0.06811064,
0.07434326, -0.19697316, -0.22199543,  0.07647966]],
[[-0.04112297,  0.13392878, -0.06575392,  0.0893533,   0.22577047,
0.00289264,  0.09996213,  0.17324321,  0.08673526]]])
B =x.transpose(1,2,0).reshape(-1,x.shape[0])
print(B.shape)
print (B.ndim)
#array.astype(int)
print(B)
y=1-(pdist(B, metric='cosine'))
print(y)
"""
Getting this error,
Traceback (most recent call last):
File "cos1.py", line 3, in
from scipy.spatial.distance import pdist
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/spatial/init.py", line 94, in
from .kdtree import *
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/spatial/kdtree.py", line 8, in
import scipy.sparse
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/sparse/init.py", line 229, in
from .csr import *
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/sparse/csr.py", line 20, in
from .compressed import _cs_matrix
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/sparse/compressed.py", line 11, in
from scipy._lib._util import _prune_array
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/_lib/_util.py", line 9, in
import inspect
File "/usr/lib/python2.7/inspect.py", line 37, in
import dis
File "/home/mayesha/dis.py", line 2, in
from scipy.spatial.distance import pdist
File "/home/mayesha/venv/local/lib/python2.7/site-packages/scipy/spatial/distance.py", line 119, in
from scipy._lib._util import _asarray_validated
ImportError: cannot import name _asarray_validated

Based on your traceback, it appears that you have a file named dis.py on your $PYTHONPATH, which is being used in place of the standard library dis module.
Shadowing stdlib modules is a bad idea, so if you can, rename your version to something else.


Update LINQS dataset URLs for directory change

Some URLs associated with datasets from https://linqs.soe.ucsc.edu/data have changed. In particular, the contents of https://linqs-data.soe.ucsc.edu/public/ has been rearranged. For instance, Cora was previously at https://linqs-data.soe.ucsc.edu/public/lbc/cora.tgz and is now at https://linqs-data.soe.ucsc.edu/public/cora/cora.tar.gz (/lbc/ -> /cora/).
Affected datasets:

Cora
PubMed-Diabetes (the internal directory was also renamed to be lowercase)
CiteSeer (this also had its internal directory renamed)

Based on our CI runs, it looks like this happened somewhere in the ~18 hours between the following two builds:

2020-06-20T14:25+1000: https://buildkite.com/stellar/stellargraph-public/builds/5123
2020-06-21T08:30+1000: https://buildkite.com/stellar/stellargraph-public/builds/5124

See: #1735

Looks like this Cora is back to old url: https://linqs-data.soe.ucsc.edu/public/lbc/cora.tgz

Oh, haha! It looks like the new locations still work, though.


Add setFill and setStroke to Shapes

This rounds out the shape style sto be more
consistent and make the setFill and setStroke
methods available.

Reusing RegularShape like this would be rather inefficient as @ahocevar noted. The currently available setters all work without a need to re-render the cached canvas-image.

I haven't looked that closely, but it may enough to call this.render() after updating properties (like fill or stroke) that would invalidate previously cached versions.

Updated the regular shapes example that demonstrates changing the stroke/fill of a regular shape style.
Added a rendering test for both setFill and setStroke.
@tschaub was spot-on, calling this.render did invalidate the old cached images and they re-rendered properly. (https://github.com/openlayers/openlayers/pull/13747/files#diff-e3750617700415f875eb42b59eb88fae43039d3037b66e989ffa9572c81e34f4R210)

Reusing RegularShape like this would be rather inefficient as @ahocevar noted. The currently available setters all work without a need to re-render the cached canvas-image.

This really does round-out the setter functionality that is common across other classes. While there may be other approaches that can be more performant in specific environments, this is still a worthwhile rounding-out of the API that does address a set of missing functionality.

Thanks for this addition, @theduckylittle


Connexion request user

Fixes #433
Adds back the support to connexion.request instance pointing to flask.request.
Also simplifies some parts of the codebase with unnecessary complexity.

"Simple is better than complex."
The Zen of Python

Coverage remained the same at 100.0% when pulling f09977cd29111e9359730f3b8d598ea3f7b4faf8 on connexion-request-user into a95b986d818dc60d77d4262fc04559ff5f9d246b on master.

@rafaelcaricio can you add one test to make sure we won't introduce a similar regression bug in the future again?

@hjacobs Done.

:+1:

Coverage remained the same at 100.0% when pulling 197cfc8597b7bc15c8a2d38a9fddffc54afce442 on connexion-request-user into a95b986d818dc60d77d4262fc04559ff5f9d246b on master.

Coverage remained the same at 100.0% when pulling 197cfc8597b7bc15c8a2d38a9fddffc54afce442 on connexion-request-user into a95b986d818dc60d77d4262fc04559ff5f9d246b on master.

@rafaelcaricio please release it! :smile:


Make "Syntax Highlighter" a radio menu

Godot version:
1ec2fa4
Issue description:
I don't exactly know what's its purpose, but while it acts like a radio menu, it's not set as one:

CC @Paulb23

Please remove this entry (it is an useless feature, the syntax should be already
known to the editor). At least move it somewhere else (e.g. File menu, Editor configuration, …)
Thanks.

It's not useless, but I agree that it should be a sub-menu (probably in Edit?).

Most editors allow manually specifying the language, while still detecting it automatically. It would be even more useful if we ever add support to the editor for editing non-script files.
IMO, it should be moved to the status bar at the bottom, next to the line and column labels. Language, encoding and line endings selectors are commonly placed there.

I don't remember the last time I needed to disable the autodetection in a general purpose editor and they must cope with an endless amount of possibilities.
Godot generally have to know how to handle any text file anyway, so I think the internal editor doesn't need such overrides.

There are many files which have a custom file extension even though they use are a known format. Things like csproj/*proj (xml), ini-like formats. It's good to give the user a choice on this.

Actually I like the current alpaca design pattern to not swallow unknown vegetables in the first place ;)
The engine or plug-in can associate all known used files with a format or meaning (e.g with a content header/ID independent of the file extension). I think, it's a better to give the alpaca the choice and don't bother the editor-user with an, at a some point, giant syntax-options-tree. The engine or plug-in unrelated files are out of scope of the internal editor and belong to an another IDE.

Fixed by https://github.com/godotengine/godot/pull/19166


[Bug]: Cannot install Toast

Reproduction
https://stackblitz.com/edit/vitejs-vite-k7cybx?file=src%2FApp.vue
Describe the bug
Trying to install toast in my vue project, that is not using typescript using: npx shadcn-vue@latest add toast
[@vue/compiler-sfc] Failed to resolve extends base type.
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:

interface Props extends /* @vue-ignore */ Base {}

Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.

anonymous.vue

Try the command in the reproduction project, and say yes to overwriting.
It installs some files, but some styling seems to be missing, and animations.
System Info
System:
    OS: Linux 6.7 Fedora Linux 39 (Workstation Edition)
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
    Memory: 37.49 GB / 46.95 GB
    Container: Yes
    Shell: 5.2.26 - /bin/bash
  Binaries:
    Node: 20.10.0 - ~/.volta/tools/image/node/20.10.0/bin/node
    Yarn: 3.5.1 - ~/.volta/tools/image/yarn/3.5.1/bin/yarn
    npm: 10.2.3 - ~/.volta/tools/image/node/20.10.0/bin/npm
  Browsers:
    Chrome: 122.0.6261.57
  npmPackages:
    @vueuse/core: ^10.8.0 => 10.8.0
    radix-vue: ^1.4.7 => 1.4.7
    vue: 3.4.19 => 3.4.19

Contributes

[ ] I am willing to submit a PR to fix this issue
[ ] I am willing to submit a PR with failing tests

Hi we have a bunch of the same issues so let's track it in this issue
https://github.com/radix-vue/shadcn-vue/issues/355


I want get all following and followers by username

Form
Put an [x] if you meet the condition, else leave [ ].

[x] I've searched the Issues
[x] I've read the basic concepts
[x] I'm using the latest version

Question
I try to get all followers and following and got some error
Code
A meaningful section of your code (else delete this). If you are using TypeScript replace js with typescript.
import { IgApiClient } from 'instagram-private-api';

const ig = new IgApiClient();
ig.state.generateDevice(process.env.IG_USERNAME);
ig.state.proxyUrl = process.env.IG_PROXY;
(async () => {
    await ig.simulate.preLoginFlow();
    const loggedInUser = await ig.account.login("", "");
    process.nextTick(async () => await ig.simulate.postLoginFlow());
    try {
        let id = await ig.user.getIdByUsername("efalrk");
        let usersFollowers = await ig.feed.accountFollowing(id).items()

        console.log(usersFollowers)
    } catch (e) {
        console.log("Error: " + e)
    }
})();

async function searchFolowing(username) {
    let id = await ig.user.getIdByUsername(username);
    let usersFollowers = await ig.feed.accountFollowing(id).items()

    console.log(usersFollowers)
}

Error and Output
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

IgNotFoundError: GET /api/v1/fbsearch/suggested_searches/?type=users - 404 Not Found;
    at Request.handleResponseError (C:\Users\pcdev\OneDrive\Documents\instagram-data\node_modules\instagram-private-api\dist\core\request.js:103:20)
    at Request.send (C:\Users\pcdev\OneDrive\Documents\instagram-data\node_modules\instagram-private-api\dist\core\request.js:54:28)
    at async FbsearchRepository.suggestedSearches (C:\Users\pcdev\OneDrive\Documents\instagram-data\node_modules\instagram-private-api\dist\repositories\fbsearch.repository.js:7:26)

Node.js v20.12.1

It seems that you can only get all the followers of your own account, right? Can’t you get all the followers of other people?

I want to get followers of other people's accounts with their usernames, is this possible?

I want to get followers of other people's accounts with their usernames, is this possible?

I tested it and it seems that this API can only get one page of data~ because there is no nextMaxId in the returned data.

ok thanks for your help


Valid SQLite schema generates invalid hcl document

Related to issue #1001 , the hcl document no longer crashes atlas apply
However, the offending schema is still valid in sqlite3 and cannot be applied.
The schema appears in Calibre's metadata db and is:
CREATE TABLE IF NOT EXISTS 'annotations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID;
Expected Result
one could run atlas inspect on a sqlite database and then atlas apply that hcl document on the same database without error. Or apply the schema on an empty sqlite database without error.
Observed Result
Upon applying the result of an atlas inspect on a specific sqlite schema I get the error:
$ atlas schema apply -u "sqlite3://sqlite.db" -f atlas.hcl
Error: atlas.hcl:5,12-16: Error in function call; Call to function "sql" failed: empty expression.

To Reproduce
Build from master (I tested on commit SHA ba73d5501)
This is on Fedora 36 compiled with go 1.18.4
# create valid sqlite3 table that offends atlas (presumably due to the lack of types)
echo "CREATE TABLE IF NOT EXISTS 'annotations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID;" | sqlite3 sqlite.db

# inspect the schema and write the offending HCL doc
atlas schema inspect -u "sqlite3://sqlite.db" > atlas.hcl

# attempt to apply that schema against the same database
atlas schema apply -u "sqlite3://sqlite.db" -f atlas.hcl
# we get the error:
## Error: atlas.hcl:5,12-16: Error in function call; Call to function "sql" failed: empty expression.

# attempt to apply that schema against a new database
atlas schema apply -u "sqlite3://new.db" -f atlas.hcl
# We get the same error

For reference, the generated HCL documented looks like this:
table "annotations_fts_idx" {
  schema = schema.main
  column "pgno" {
    null = true
    type = sql("")
  }
  column "segid" {
    null = false
    type = sql("")
  }
  column "term" {
    null = false
    type = sql("")
  }
  primary_key {
    columns = [column.segid, column.term]
  }
}
schema "main" {
}


[FEATURE]: example - Diffusion Model

Describe the feature
e.g. Latent Diffusion

Hi, I'm interested in working on the issue. Could you articulate this issue?
Thank you.

Done.
https://github.com/hpcaitech/ColossalAI/tree/main/examples/images/diffusion


Add text output to pixel viewer

This issue is user submitted and needs to be validated (assuming it's for the pixel viewer):
Is it possible to retrieve the information of the picture (somehow) into a text format ?
Would like to have it in coordinates and colors for pixel canvas ;)

Interesting idea. A csv format might be good


scripts: add "-Ordered" Flag to ConvertFrom-Yaml

this keeps the  docker-compose.prod.yml from getting scrambled up on every write

Oh nice! I guess it solves https://github.com/toradex/vscode-torizon-templates/issues/153?

yes! thats the exact problem i had
its now easier to track the docker-compose.prod.yml under git

Hey @xlukem thanks a lot for the contribution!


Certain Linux distributions do not come with python3 by default

Known distributions that do not come with python3 installed by default:

[x] Arch Linux
[x] Debian
[x] CentOS 8-Stream

A mechanism needs to be added where cleantest can install python3 before it tries to inject itself into the instance otherwise there is going to be a bloodbath.

Note: There may be other test environment instance bases that do not come with python3 installed by default. I will add the bases to the list as I stumble upon them in my testing.

Can probably make sure that Python 3 is installed by using cloud-init, but that would require switching the LXD images over to the cloud variants rather than the default variants. Also, it needs to be determined if there are ARM64 versions of the cloud images or there are only AMD64 ones.

This is fixed in the 0.5.0-dev branch so once those commits land I can close out this issue. The upcoming pull request is going to be a big one!


can you release train code?

I want to train this model in other dataset, but i don't know how to prepare train dataset , can you release train code?

We are applying for open source training code in the company asap. It won't take long.

Waiting for the training code +1!

Waiting for the training code +1!

+1!

I am also waiting for the training code!

I am waiting  for the training code!  +1

Waiting for the training code +1 !!!

I'd also like to train a model

training code +1 !!!


Don't lint snapshots in pre-commit

Technically a snapshot file is valid JS source code, but doesn't and shouldn't adhere to customary JS formatting conventions.

@mattsolo1 small fix to the push I made the other day introducing snapshots, which addresses a problem that came up in my current refactoring work-in-progress.


Permit specifying/overriding field names

I have a handwritten struct that is shared between services in Python, TypeScript, C#, and Go.
The Go version has a field like this (where Date is a custom date type):
    EffectiveDate Date `json:"effective"`

It looks like it's currently impossible to generate a drop-in replacement because the field name doesn't match the JSON field name. Would it be possible to add the equivalent of metadata.<lang>Type but for field-naming? I.e., I'd like the schema to be able to generate the field like this:
    "effective": {
      "metadata": {
        "description": "The date that this transaction takes effect",
        "goField": "EffectiveDate"
      },
      "type": "Date"
    },

Presumably the TypeScript generator wouldn't offer this option for the reasons explained here, but I think it makes sense to offer it for all other supported languages.

I have a workaround that seems a bit dangerous, but should be pretty safe:
Assuming the type in question is called MyType, and the generated version lives in a package called generated, the handwritten type can be replaced with a wrapper using MyType as an embedded struct:
type MyType struct {
    generated.MyType
    // EffectiveDate causes 'Effective' to be ignored while marshaling.
    EffectiveDate Date `json:"effective"`
}

// Effective ensures that clients cannot accidentally access MyType.MyType.Effective.
func (mt MyType) Effective() Date {
    return mt.EffectiveDate
}


Contribution Model Working Group Report

Apologies this is one of those emails that was caught in spam. I think 15 minutes during the plenary would be good. It would likely be a brief presentation and leave around 10 minutes for a question and answer period.

8/23 - Email to Rosalyn Metz to conform this is what is needed.

8/23 I think it was suggested to me to take time in the plenary slot.  Which is to say, I’m flexible.  I do think it would be good for it to be mentioned during the plenary, because I suspect people will want to know.  But it could be mentioned as part of general announcements.  Something like “The final draft of the contribution model report was sent out to the various lists, and there was discussions yesterday during the partner meetings.  Please take a look at the report.”


Add $cordovaBeacon plugin

Add iBeacon plugin for https://github.com/petermetz/cordova-plugin-ibeacon

+1

Anyone have any idea when this is being merged in?

Please update, rebase, and re-issue this PR. There are conflicts currently.

@gortok
Done in https://github.com/driftyco/ng-cordova/pull/911
Thanks


[Openjdk-1464] upgrade to  maven 3.8

https://issues.redhat.com/browse/OPENJDK-1464
I'm not sure when to release this, whether we need to give people some warning. Gathering further information.
The approach I've taken assumes we don't need to mix maven versions between images in the ubi9 branch.
Note simplification of module versioning scheme -- see comment in the second commit in series for a fuller explanation.
All current behave tests pass.

Test builds:

quay.io/jdowland/ubi9-openjdk-17:OPENJDK-1464
quay.io/jdowland/ubi9-openjdk-11:OPENJDK-1464

Why not call it by the maven version number 3.8? It seems counter-intuitive to see jboss.container.maven => version: 11 and version: 17 both pulling in module version 3.8.

Nevermind. It's because of the maven-openjdkXX package, which is JDK specific. I'd propose to call it 3.8.11 and 3.8.17, though.