Sharing Entity classes between NestJS applications leads to error.

Describe the bug
When using a NestJS mono-repo, with an API application and a separate Microservice, the ideal is to share entity files in a NestJS library and use an EntityRepository to access them.
This works well for the first project.
However, when attempting to use the same entities/files in the Microservice project, various errors are thrown (generally related to things being "undefined"). For example, calling "box.feedback.init()" - where feedback is a OneToMany collection in box, leads to an error on the "name" property of box - as this is the first property.
I believe this may be related in some way to the paths referenced in the temp folder.
The workaround is to copy the entity files and name them differently. However, this is not ideal.
Any ideas for a fix?

[Nest] 14108   - 10/07/2019, 00:20:48   [RpcExceptionsHandler] Cannot read property 'find' of undefined +7ms
TypeError: Cannot read property 'find' of undefined
    at Collection.init (/home/richard/Documents/brilliance-backend/node_modules/mikro-orm/dist/entity/Collection.js:87:32)
    at MatchingController.matchNameOnFeedbackCreation (/home/richard/Documents/brilliance-backend/dist/apps/matching/apps/matching/src/matching/controllers/matching.controller.js:29:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async /home/richard/Documents/brilliance-backend/node_modules/@nestjs/microservices/context/rpc-proxy.js:10:32
    at async ServerRMQ.handleEvent (/home/richard/Documents/brilliance-backend/node_modules/@nestjs/microservices/server/server.js:60:32)

Oops. Solved. For reference:
If you build the entity files library using "nest build entities(/library name)", then you can change tsconfig "paths" to use the "dist/lib/entities" build.
Then clear the temp folder, delete any existing built applications, and run it again.


reflect: MakeFunc can't handle return values which are the zero Value

package main

import "reflect"

func main() {
	r := reflect.MakeFunc(reflect.TypeOf(func() error { return nil }),
		func(args []reflect.Value) []reflect.Value {
			var x [1]reflect.Value
			return x[:]
		}).Interface().(func() error)
	r()
}

This code will cause the r() call to panic with a nil pointer dereference. We should really panic with something sensible instead.
The code is trying to provide a sensible panic, but panics when trying to build that panic message. It gets to here:
			if v.typ != typ {
				panic("reflect: function created by MakeFunc using " + funcName(f) +
					" returned wrong type: have " +
					out[i].typ.String() + " for " + typ.String())
			}

But v.typ is nil, so out[i].typ.String() (v and out[i] are the same) panics inside (*rtype).String.
This has been the case since at least go 1.2.  Marking for 1.13.

See also #6871.


Add Contact Details Section

Is your feature request related to a problem? Please describe.

New Feature Request

Add Contact Section in portfolio template
User can add their Contact details.

Describe the solution you'd like
N/A
Additional context
N/A

Hey, can I work on this issue? Also can you please specify the contact platforms which need to be included?

Hello @sakkshm26 👋,
For Sure you can work on this I'm assigning this issue to you.
For Contact Platform you can use: Twitter, LinkedIn, GitHub, Instagram and if you think any other platform than add according to you

Sorry but I am not able to resolve this issue. I am having some problems in the JS part.

Sorry but I am not able to resolve this issue. I am having some problems in the JS part.

Did you need any help?
join our Discord server. You will get help from our members and moderators.

@sakkshm26 Do you need any help with JS then I'll try to help you or you would not like to work on this issue anymore?

Yeah I am unassigning myself.

I would like to give this a try.
Proposed solution - File system implementation similar to the other add functions ( add project, experience, etc. )
Any style guides I should be following?

I would like to give this a try. Proposed solution - File system implementation similar to the other add functions ( add project, experience, etc. ) Any style guides I should be following?

Alright, I'm assigning to you can you please explain to me your proposal on discord?


TCGA -How to reproduce the same number of patches of the publication?

Hello @binli123 ,
I'm trying to tile the TCGA dataset with the command :
python deepzoom_tiler.py -m 0 2 -b 20
But the number of patches at 20x is much higher ( almost 20K / bag)).
Which is the exact command to reproduce your work?

You can use a higher threshold. In the original experiment, a different metric was used to threshold the patches.


Scrub the package spatial visualization functions

There are many visualization tools that can be consolidated and/or removed. Find what is redundant and fix

Closing stale issue that isn't a high priority


confirmation that this works on an M1 Pro

the text is barely legible with a regular black-on-white terminal, but it seems to work on the M1 Pro on my desk

We really only support dark backgrounds, try setting your terminal background to black or a darker color for better legibility. Thank you for reporting.
I recommend using https://warp.dev for terminal app


database/sql: failed to send SQL Batch error

$ go version
go version go1.12 windows/amd64

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config

While using database/sql and jmoiron/sqlx modules, 99% of the time everything works fine. Occasionally, I get the following error:
failed to send SQL Batch: write tcp :58725->:1433: wsasend: An existing connection was forcibly closed by the remote host.
This happens randomly; I can't reproduce it reliably, although it seems to happen when the API (gin-gonic) hasn't handled any requests for a few minutes. It only seems to happen when API is running through IIS on my web server (tried both ASP.Net Core and HTTP Platform handlers). Could not reproduce it on my local dev machine.
Has anyone seen this at all? I have no idea how to go about diagnosing or fixing this, any help at all is much appreciated.

This issue seems to be a question about how to use Go, rather than a feature request or defect report about the Go language and/or toolchain.
We have decided that our experiment to allow questions on the issue tracker has not had the outcome we desired, so I am closing this issue. I'm sorry that we can't answer your question here.
There are many other methods to get help if you're still looking for answers:

The golang-nuts mailing list.

Stack Overflow, with questions tagged go.

The Go Forum, a web-based forum hosted by GoBridge.

The Gophers Slack hosted by GopherAcademy; use the invite app for access.
The #general channel is a good starting point.

Go Community on Hashnode with questions and posts tagged with "go"

IRC channel #go-nuts on Freenode

Thanks


[459] Refactor of organization's section in the footer

Story / Bug id: https://github.com/CodeForPoznan/volontulo/issues/459
Reference person: @mlipa
Description:
Remove newsletter link in footer

Codecov Report

Merging #565 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #565   +/-   ##
=====================================
  Coverage      93%    93%
=====================================
  Files          76     76
  Lines        2573   2573
=====================================
  Hits         2393   2393
  Misses        180    180

Continue to review full report at Codecov.

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

LF


sfdx force:org:list working with cmd but not working with powershell

I have weird issue.
i am trying to execute this command.
sfdx force:org:list

this command is working fine in cmd.exe but it fails in powershell
in cmd.exe
== Orgs
     ALIAS  USERNAME                                   ORG ID              CONNECTED STATUS
───  ─────  ─────────────────────────────────────────  ──────────────────  ─────────────────────
(U)  MyDomain<EMAIL_ADDRESS>XXXXXXXXXXXXXXX  Connected

No active scratch orgs found. Specify --all to see all scratch orgs

C:\Users\webapp>

but in powershell
C:\Users\webapp>sfdx force:org:list
Error: connect ETIMEDOUT XX.XX.XX.XX:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: 'XX.XX.XX.XX',
  port: 443
}
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
     ALIAS  USERNAME                                   ORG ID              CONNECTED STATUS
───  ─────  ─────────────────────────────────────────  ──────────────────  ────────────────
 (U)  MyDomain<EMAIL_ADDRESS>                 XXXXXXXXXXXXXXX  ETIMEDOUT

No active scratch orgs found. Specify --all to see all scratch orgs

C:\Users\webapp>

i am working behind a proxy. otherwise i cant access the internet.
but i applied this command.
set HTTP_PROXY=http://xx.xxx.xx.xx:8000
set HTTPS_PROXY=http://xx.xxx.xx.xx:8000

any idea why this happen ?

We occasionally see DNS timeout issues when working with proxies. Try setting SFDX_DNS_TIMEOUT to something higher (defaults to 3).

the weird thing it is always success in cmd. and fails in powershell. event if i executed the commands at the same time side by side.
in cmd it success with no delay. and in powershell fails with mentioned error. seems that powershell doesnt listen to the proxy

the weird thing

We occasionally see DNS timeout issues when working with proxies. Try setting SFDX_DNS_TIMEOUT to something higher (defaults to 3).

can you please advise how can i change this ? i am new to this .. sorry

Have you confirmed that the PROXY env vars are set in powershell? You need to set env vars a little differently in PS:
For the session it's:
$env:VAR_NAME=VALUE
to set it permanently it's:
[System.Environment]::SetEnvironmentVariable('VAR_NAME','VALUE')


Webpack 4 support

Briefly describe the issue you are experiencing (or the feature you want to see
added to the plugin). Tell us what you were trying to do and what happened
instead. Remember, this is not a place to ask questions. For that, go to
http://gitter.im/postcss/postcss
Details

Trying to use postcss-loader with<EMAIL_ADDRESS>(https://github.com/webpack/webpack/issues/6064).
Error (Logs|Stacks)

The main error seems to be Module build failed: TypeError: loader._compilation.applyPluginsWaterfall is not a function.
ERROR in D:/work/angular/aio/node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!D:/work/angular/aio/node_modules/postcss-loader?{"ident":"postcss","sourceMap":false}!D:/work/angular/aio/node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!D:/work/angular/aio/src/styles.scss
Module build failed: TypeError: loader._compilation.applyPluginsWaterfall is not a function
    at D:\work\angular\aio\node_modules\postcss-loader\index.js:122:43
    at <anonymous>
 @ D:/work/angular/aio/src/styles.scss 4:14-189
 @ multi D:/work/angular/aio/src/styles.scss

Reproduction [Code]

I think this happens whenever postcss-loader is used with Webpack 4, but if you think that's not the case and need to zone in on the issue let me know and I will make a repro.
Environment

Please provide information about your environment.

OS
node
npm
PostCSS

Windows 10
8.9.1
5.6.0
2.0.8

hmm.. I wonder where this is actually coming from in v2.0.0 since I removed the 'Custom Plugin Compilation Hook' in v1.0.0...v2.0.0. Could you point my to the where in angular-cli the loader is getting used atm ?

We use it here<EMAIL_ADDRESS>But now that you mention the versions, I went and checked and it seems that in that project the postcss-loader version was actually 1.3.x. I updated to 2.0.8 and didn't have that problem anymore. So, user error :/

Saw same issue, upgrading to "postcss-loader": "^2.1.5" and the problem went away

What was the exact fix for this issue, and in which release did it first appear?
Upgrading to the latest version isn't a great solution, as many times that only replaces old bugs for new bugs. If we can work in terms of specific fixes, then we can deal with bugs on a case-by-case basis.

It appears the fix for this issue first appeared in v2.0.0, although the changelog doesn't mention it: https://github.com/postcss/postcss-loader/blob/928d5c41d5e2bdec130b3c0899760889466ae7bd/CHANGELOG.md#200-2017-05-08


Problem with Left Controls Submenu Style and Auto-Hide Plus

Foundry VTT: Version 11 Stable
Build: 315
PF2e: 5.12.7
Minimal UI: 1.6.11
I've come across something with the latest version of Minimal UI that I hope you can help me with.
Left Controls Submenu Style is set to Auto-Hide Plus.
When I hover over the Left Controls and then move away it fades out properly.
However, if I click on any button in the Left Controls and then move away it no longer fades out, but instead remains on-screen for about five-seconds and then disappears.
This happens when logged-in on either the GM or a Player/Trusted Player account.

Set the Left Controls Submenu Style to Auto-Hide.
When I hovered over the Left Controls the part that was supposed to fade out did so properly.
I then tried clicking different buttons on the Left Controls and moving away. Each time the part that was supposed to fade away did so properly.

Hello @KaosKubes - to my understanding this is working as I intended. Perhaps we can figure out what exactly is expected compared to what is happening?


ToNDArray()  "Given shape size (198000) does not match the size of the given storage size (264000)'"

This is the code I use

and this is  "faster_rcnn_inception_v2_coco.config"  file:
https://drive.google.com/open?id=1qLU2KYi9eepkKJ4OOYhj0Do9yzTKPNTy
My input image is sized (400,165)
I use ReadTensorFromFile (file_name), everything works fine, but it is very slow because I have to save pictures continuously to the hard drive.

Is there any solution that can convert NdArray from Bitmap? Or am I wrong somewhere during training?
Thanks very much.

It might be with the image you are loading, can I have an image that you try to load which causes the error?

It might be with the image you are loading, can I have an image that you try to load which causes the error?

Basically 198,000 is 3 pixels image and 264,000 is 4 pixels image. Meaning the image you are loading is likely to support transparency (alpha pixel).
I'll look into it tommorow first thing in the morning.

@Nucs Thanks for taking the time

@Nucs  Thanks a lot,
I solved the problem by converting photos to PixelFormat.Format24bppRgb before using ToNDArray(). Thanks for suggesting me on transparency image.

I'll close this once I present a solution on the library.

I've released 0.20.4 for NumSharp.Bitmap.
One of the related changes is you can do now:
var nd = bitmap.ToNDArray(discardAlpha: true); //returns ndarray shaped (1, height, width, 3) instead of (..., 4).


Remote Debugging Remote Symbols clarification

About this part:
https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2022#set-up-debugging-with-remote-symbols
Assuming:

Remote Symbols are the symbols on the remote pc running the Remote Debugger
Local symbols are the symbols on the Visual Studio pc

Remote Debugging native code with only remote symbols should just work without any additional parameter like /FallbackLoadRemoteManagedPdbs with managed code?
Or it does not work at all?

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

ID: 3a52d11c-1c52-fb1d-c785-75845f6edee3
Version Independent ID: 35a11332-d74c-03dd-dbdd-75f256bd68b3
Content: Remote debugging - Visual Studio (Windows)
Content Source: docs/debugger/remote-debugging.md
Product: visual-studio-windows
Technology: vs-ide-debug
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@deaklajos -- Deák, thank you for your clear questions.  Please consider these resources:
Please consider these resources:

Ask a question or find an answer on the Microsoft Q&A page for Visual Studio.
Check the Visual Studio MSDN Forum.
Stack Overflow
Reddit

@Mikejo5000 -- Mike, please look into this issue.

@deaklajos  Asking about this. You might reference the VS 2013 section here:
https://devblogs.microsoft.com/devops/net-remote-symbol-loading-changes-in-visual-studio-2012-and-2013/
It's possible you need to use /LoadPdbsNextToModule

@deaklajos Turns out it doesn't work at all unless you point VS to a remote Windows folder using the Debugger > Symbols page in Tools > Options. Doc update should be live by noon on 3/20 PST.


cmd/go: expected 'package', found 'EOF' errors with module indexing enabled on WSL2

What version of Go are you using (go version)?

$ go version
go version go1.19 linux/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jhaumont/.cache/go-build"
GOENV="/home/jhaumont/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/jhaumont/go/pkg/mod"
GONOPROXY="github.com/blablacar"
GONOSUMDB="github.com/blablacar"
GOOS="linux"
GOPATH="/home/jhaumont/go"
GOPRIVATE="github.com/blablacar"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/jhaumont/bin/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/jhaumont/bin/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1850192189=/tmp/go-build -gno-record-gcc-switches"

What did you do?
When installing 1.19 go version & reinstall/update the additional go tools like gopls & dlv, I have an issue with delve and the package https://github.com/hashicorp/golang-lru/tree/master/simplelru.
So, I can't install delve. But if I use the 1.18.5 version of go, I have no issue and I can install the last delve version (1.9.0)
But if I use GODEBUG=goindex=0, it works :)
Reproduce:
I try to do a fresh install of go (with 1.19.0) and then, install delve.

Install go:

rm -rf ${HOME}/bin/go
cd "$(mktemp -d)"
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
tar -C ${HOME}/bin -xzf go1.19.linux-amd64.tar.gz

Install devel:

go install -v github.com/go-delve/delve/cmd/dlv@latest

What did you expect to see?
No error,  devel is correctly installed
What did you see instead?
pkg/mod/github.com/hashicorp/golang-lru@v0.5.4/simplelru/lru.go:1:1: expected 'package', found 'EOF'

This one close https://github.com/go-delve/delve/issues/3118

Assigned @bcmills for now, anyone looking at this should know that this is not reproducible in general (I tried with 1.19 and tip on macOS and Linux), but there was nonetheless a problem, which is linked to the delve bug and referenced files above.  So it remains open.

By the way @dr2chase, I work with Debian on WSL.

Hello
I face the same issue with 2 new packages (not link to delve) on an internal go projet:
../../go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:1:1: expected 'package', found 'EOF' ../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:1:1: expected 'package', found 'EOF'
Using GODEBUG=goindex=0 fix the issue

@jhaumont, just to rule out filesystem weirdness, what filesystem are you using for /home/jhaumont/go/pkg/mod?

And does running go clean -cache also fix the issue (without GODEBUG=goindex=0) when it happens?

@bcmills I'm on WSL. This is the result of mount | column -t command:
/dev/sdc     on  /                          type  ext4         (rw,relatime,discard,errors=remount-ro,data=ordered)
And for the second question, the answer is no (I already test it before opening the issue)

@aarzilli WSL2 with debian

This is currently the only report we have of this kind of corruption. It's not clear to me whether this is a bug in Go, a bug in WSL2, or both. Moving to the Backlog pending more user reports and/or test failures that might shed some light for debugging.

I have go on both my system and I am having the same issue after installing go and trying to run a go file "go:1:1: expected 'package', found 'EOF'"

@bcmills @Obasoro on my side, I have wiped out my WSL and it works normally. I ve no idea why 😕

I've faced the same issue today.
If I run go build with GOPATH="$(realpath ../gopath)", the command fails. However, I was able to resolve the error by several workarounds:

Setting GOPATH to somewhere else, such as ../../gopath. I have no idea what makes the difference.
By using GODEBUG=goindex=0.
Locating the building directory somewhere else (see below on this).

Something about the location of building directory appears to cause the error. First of all, the problem is only caused when the building directory is either ~/aur/yay/src/yay-11.3.2, ~/aur/yay/src/yay, ~/aur/yay/src/foobarbaz, or anything else of that kind. Otherwise, I wasn't able to reproduce the error, e.g. the building works perfectly in ~/aur/yay/yay. It seems like there's something special about ~/aur/yay/src.
Permissions don't seem to cause the error. I've removed and created ~/aur several times.
go version
go version go1.20 linux/amd64

go env
output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/azat/.cache/go-build"
GOENV="/home/azat/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/azat/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/azat/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/azat/aur/yay/src/foo/barbaz/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1292885877=/tmp/go-build -gno-record-gcc-switches"

what I did
mkdir -p aur/yay/src
cd aur/yay/src
git clone https://github.com/Jguer/yay
cd yay
GOPATH="$(realpath ../gopath)" go build

what I expected to see
output
go: downloading github.com/Jguer/aur v1.1.3
go: downloading github.com/deckarep/golang-set/v2 v2.1.0
go: downloading github.com/leonelquinteros/gotext v1.5.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/term v0.3.0
go: downloading golang.org/x/sys v0.3.0
go: downloading golang.org/x/text v0.5.0
go: downloading github.com/itchyny/gojq v0.12.11
go: downloading github.com/ohler55/ojg v1.15.0
go: downloading github.com/itchyny/timefmt-go v0.1.5

what I saw
notice completely different list of downloaded packages
output
go: downloading github.com/Jguer/aur v1.1.3
go: downloading github.com/Jguer/go-alpm/v2 v2.1.2
go: downloading github.com/Jguer/votar v1.0.0
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/deckarep/golang-set/v2 v2.1.0
go: downloading github.com/leonelquinteros/gotext v1.5.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading github.com/adrg/strutil v0.3.0
go: downloading golang.org/x/term v0.3.0
go: downloading golang.org/x/sys v0.3.0
go: downloading github.com/itchyny/gojq v0.12.11
go: downloading github.com/ohler55/ojg v1.15.0
go: downloading golang.org/x/text v0.5.0
go: downloading github.com/itchyny/timefmt-go v0.1.5
../gopath/pkg/mod/github.com/!jguer/votar@v1.0.0/pkg/vote/aur.go:1:1: expected 'package', found 'EOF'
../gopath/pkg/mod/github.com/!morganamilo/go-pacmanconf@v0.0.0-20210502114700-cff030e927a5/cmd.go:1:1: expected 'package', found 'EOF'
../gopath/pkg/mod/github.com/!morganamilo/go-srcinfo@v1.0.0/examples_test.go:1:1: expected 'package', found 'EOF'
../gopath/pkg/mod/github.com/adrg/strutil@v0.3.0/example_test.go:1:1: expected 'package', found 'EOF'
../gopath/pkg/mod/github.com/adrg/strutil@v0.3.0/metrics/examples_test.go:1:1: expected 'package', found 'EOF'

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

I've faced the same issue today.
And solved with your method， thanks

@azat-reason @Windeal are you using WSL2?

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

Had the issue on centOS 7.
Fixed it for me either - thank you!

Well I was having a lot of xxx.go:1:1: expected 'package', found 'EOF' problems when I went to build the kubectl-debug tool in WSL2
After deleting the cache directory under gowork/pkg/mod and all the packages that prompted for EOF in the file header, I re-make and solved the problem
In the situation I was in, this command was executed in the ~/gowork/pkg/mod directory: sudo rm -rf cache sigs.k8s.io github.com golang.org k8s.io

您好 ，我刚刚更新到 1.20，我这边没问题。所以我只有从 1.18 到 1.19 的更新有问题
我也是20版本 不过我是Windows版本的vscode环境下的

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

It's helpful! Works for me after go clean -cache  on WSL1.

Using VS Code for GO, and faced the same issue. Saving the file 'Ctrl+S' on Windows fixed the issue.

我删除了go-build缓存后问题已经解决~/.cache/go-build

nice, solved my problem

currently having this issue on Linux Mint 21.2 when run as a normal user:
../go/pkg/mod/github.com/h2non/bimg@v1.1.5/type.go:1:1: expected 'package', found 'EOF'
runs fine when run as root, fails in sudo

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

Thanks, it is helpful.

This can also be due to go files in the module, not having the package declaration: https://stackoverflow.com/a/38812470/3263374

go clean -cache works for me on WSL 2. Thanks for sharing!

The problem has been resolved after I deleted go-build cache in ~/.cache/go-build

It's helpful! Works for me after go clean -cache on WSL1.

Full clean by these if folder exists
rm -rf ~/.cache/go-build
rm -rf ~/.cache/golangci-lint
go clean -modcache
go mod tidy
Then it should be frash for go build


[java] Skip fail debugger test as bug

Motivation
https://github.com/DataDog/system-tests-dashboard/actions/runs/9395377808/job/25874810262#step:55:94
Changes
Skip tests/debugger/test_debugger_pii.py::Test_Debugger_PII_Redaction::test_pii_redaction_full as bug
Workflow

⚠ Create your PR as draft ⚠
Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
Mark it as ready for review

Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
Framework is modified, or non obvious usage of it -> get a review from R&P team

:rocket: Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist

[ ] Relevant label (run-parametric-scenario, run-profiling-scenario...) are presents
[ ] If PR title starts with [<language>], double-check that only <language> is impacted by the change
[ ] No system-tests internal is modified. Otherwise, I have the approval from R&P team
[ ] CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
[ ] A docker base image is modified?

[ ] the relevant build-XXX-image label is present

[ ] A scenario is added (or removed)?

[ ] Get a review from R&P team

#2530


refactor(window): use subscribeToResult with outerSubscriber

This PR's following effort to https://github.com/ReactiveX/RxJS/pull/1259, utilizes subscribeToResult where applicable.

Merged with 2878aed.


User message format

The USER message format needs to be stricter
It should be foo 0 * bar. However, Libera seems to accept even foo 1 0 bar.

Could you please elaborate a little bit on Libera? Was unable to find anything about it

@nenkoru I'm not exactly sure what information you're looking for. You can find information about the USER command here.
However, the IRC server Libera seems to accept other formats.


nccopy to compressed NetCDF-4 file is magnitudes slower on version 4.6.0+

Mike Chen<EMAIL_ADDRESS>via unidata.ucar.edu
7:51 AM (1 hour ago)
￼￼
to netcdfgroup
￼
Hi,
We have a storage shortage and we'd like to leverage the compression to save space.
The idea works fine for some time.
However, I was testing different NetCDF versions and happens to find that the nccopy to compressed NetCDF-4 file is magnitudes slower on version 4.6.0+.
The test method follows:
OS: CentOS 6.10
HDF5: 1.10.5
NetCDF: <IP_ADDRESS>, 4.5.0, 4.6.2, 4.7.0, HPC-NetCDF <IP_ADDRESS> from NOAA
All building uses system-provided GCC suite 4.4.1.
The test is simple: nccopy a ~400MB classic NetCDF file to NetCDF-4 with:
nccopy -4 -d 1 -s input.nc output.nc4
With version v4.5.0 and lower, the process takes ~7 seconds.
HPC-NetCDF also gives similar speed.
(gzip-ing the same file takes similar time.)
But with version v4.6.2+, the copy can take ~25 minutes!
Our production system still uses 4.4.0, so the speed should be okay.
But I'd like to know more so I can plan the updates accordingly.
Mike Chen
Research Assistant / System Engineer
Dept. of Atmospheric Science
National Taiwan University

Probably related to close issue #1398?

Is the fix for https://github.com/Unidata/netcdf-c/issues/1398
in version 4.7.0 or is it still only in master?

In any case, you might try forcing the chunk sizes to see if that makes
the speed problem go away. That will tell us if https://github.com/Unidata/netcdf-c/issues/1398 is the same issue.

I am pretty sure the problem is the default chunking.

I'm the original mail poster.
It looks like the default chunking is the blame.
I'll turn away for now and see if the NCO (our colleagues uses ncks rather than the nccopy) with newer NetCDF has this issue too.

Nccopy is actually overriding the default chunking incorrectly.
The problem appears to be with UNLIMITED dimensions.
As a temporary work-around, add the option "-c U/1"
to the nccopy command where U is the name of any unlimited dimension.

If you need a quick fix, then use that attached nccopy.c and tell me
if it solves your problem.
nccopy.zip


Support gamepad mapping via SDL_GameControllerDB

Subject of the issue
I've been enjoying SFML's Joystick API, however inconsistencies between different controllers will cause different values for buttons and axis. I found out GLFW and SDL supports mappings via SDL_GameControllerDB, and I was wondering if the same thing can be implemented for SFML?
Your environment

Windows 10
SFML 2.5.1
Visual Studio 2022 Preview

Steps to reproduce
Expected behavior
Actual behavior

Any updates on this? Right now I have to use both SFML and SDL, which SDL was SOLELY for controller emulation. Even GLFW supports using GameControllerDB, and it'd be really nice if SFML could support it too.

I found out GLFW and SDL supports mappings via SDL_GameControllerDB

If I understand this correctly, it means that they recognize several models/vendors of game controllers based on this database, and hardcode what a certain button means for them? But since different controllers often have different labels/symbols for each button and sometimes completely different layout, where exactly does the mapping help?

and I was wondering if the same thing can be implemented for SFML?

I don't think anyone would oppose it, if there is a good use case. Would you be willing to contribute with a pull request?

But since different controllers often have different labels/symbols for each button and sometimes completely different layout, where exactly does the mapping help?

It helps being able to have a consistent mapping between all controllers. Yes, different controllers have different buttons and layouts, but having a consistent mapping relieves the burden of handling different controllers. And, if change in mapping is needed, the mapping database can be modified to one's liking.

if there is a good use case. Would you be willing to contribute with a pull request?

I have not familiarized myself with SFML as well as how to implement it, so I was hoping to create this issue so someone else can.

The first thing to understand is that in SDL there are 2 different APIs that you can use to interact with controllers, the Joystick API (comparable to SFML's Joystick API) and the Controller API. The Joystick API is lower level and therefore was also the first to exist. It handles the interaction with the OS.
Because game developers can't be expected to acquire 1000 different controllers and hard code the mapping of controller input objects to actions in their game SDL decided to introduce a kind of "model controller", something that can represent the vast majority of all controllers on the market to a high degree. This shifts the work of mapping enumerated input objects from the game developers to the library developers, but since this work would only have to be done once and could be reused over and over it made sense.
The reason why SFML in its current state can't make use of the DB is because SFML currently does not have a Controller API that the DB would be used for. It's that simple. Before focusing on integrating the DB, a public Controller API would have to be designed and accepted. I don't want to be the bearer of bad news, but such API discussions (especially for completely new APIs) tend to take longer than many people expect (see other similar PRs).
So, in short, SFML could make use of the DB, but only after a Controller API exists. The focus therefore shouldn't be on integrating the DB itself, but designing the Controller API so that it fits into SFML. After that is done DB integration becomes just another implementation detail.

Yes, different controllers have different buttons and layouts
During some experimenting, I noticed that even the same controller can send different button codes based on how it is connected to the host. Saw this when using a XBox 360 controller connected either through USB or Bluetooth.

but having a consistent mapping relieves the burden of handling different controllers.
After experiencing this above I thought, how nice it would be to have an abstraction layer! And surprise, a similar thing would already exist for SDL.

Could we maybe discuss what requirements there would be for such a Controller API for SFML? Can we estimate how much interest there would be from fellow developers to have such an API?

Yes, different controllers have different buttons and layouts

During some experimenting, I noticed that even the same controller can send different button codes based on how it is connected to the host. Saw this when using a XBox 360 controller connected either through USB or Bluetooth.

but having a consistent mapping relieves the burden of handling different controllers.

After experiencing this above I thought, how nice it would be to have an abstraction layer! And surprise, a similar thing would already exist for SDL.
Could we maybe discuss what requirements there would be for such a Controller API for SFML? Can we estimate how much interest there would be from fellow developers to have such an API?

I think if you really want to gauge interest or discuss this with just users your best place to visit is the forums or the Discord. From my experience a lot of people who use SFML to make games and would be interested in this don't really check Github issues. So try out contacting the community and see what you get back

FIY: there's some work I did about it here
I don't use SFML anymore so I don't have interested on working on it further, but maybe it'll be somewhat useful as a start.


Update main.lua

Made code quality better. Removed usage of string methamethods in favor of string globals. Did proper intending as well as some other fixes.

why was this closed?


Lack of Match.MatchFunction.When<T,R> then method which could consume matching object

It is quite frequent that we want to initiate some action on matching object and not exactly return some value. I know that it is not in agree with functional paradigm, but other way it is impossible to map many switch statements written in java to java.slang pattern matching. Adding methods which could consume matching object, for example	then(java.util.function.Consumer<? super T> consumer)  would solve this gap.
Example:
of(obj).
whenType(Foo.class).then(out::println)

:+1:

I see the use case.
In fact Match is the generalization of an If. In other words eventually someone may ask to implement an else case:
Match.of(...).when(...).then(v -> performSideEffects(v)).otherwise(v -> performOtherSideEffects(v));

then and otherwise need the following arg types:

Consumer
Runnable

Please not that it will be possible to create:
Match.of(...)
    .when(...).then(function1)
    .when(...).then(function2)
    .when(...).then(consumer) // after this call only otherwise(Consumer) is possible
    .otherwise(consumer); // optional

It is great that You will include this use case in the upcoming release but Your proposition only partially solve presented (admittedly, poorly described) problem. What I am really talking about is such example scenario:
Match.of(msg)
    .whenType(Date.class).then(date -> println(date.getTime()))
    .whenType(String.class).then(str -> println(str.length()))
    .whenType(Number.class).then(num -> println(num.intValue()))
    .otherwise(obj -> println("Unknown " + obj));

Similarly
when().then()

should be possible.
For more info take a look
https://github.com/nurkiewicz/typeof

Thanks for clarification, that is possible. I will do it.

Awesome :)

Wow, great news :)

The question is when do you want to do that when I look at the issue list. Maybe it would be a nice PR or a :santa: gift. :) Looking at @krzysztofik

I have reserved nearest weekend for that. I will do my best :)

Cool to hear that, I will assist you!
Here come some first informations:
Match is implemented as internal Domain-Specific Language (DSL). The types are modeled as inner classes. The structure of the type hierarchy helps to understand how to write sentences in the DSL:
Match
    MatchFunction
        WhenUntyped
        When
            Then
        WhenApplicable
        Otherwise
        Case<R>
    MatchMonad
        Of
        WhenUntyped
        When
            Then
        WhenApplicable
        Otherwise

Basically we distinguish between two types of Match expressions.

Match Function: Function<Object, R> f = Match.when(...).then(...);
Match Monad: R result = Match.of(obj).when(...).then(...).get();

Our goal is to add these functions:
public Then then(Supplier<? extends R> supplier) {
to these types:

WhenUntyped
When
Otherwise

Hello, I have 2 open questions.

I have prepared pull request with implementation for MatchFunction. Unfortunately overloaded methods with Function and Consumer introduce ambiguity. Any idea? :)

Regarding MatchMonad, internals assumes that any action for matching condition should return something other than null.

private static <T, R> Option<Supplier<? extends R>> computeResult(...) {
...
return Option.of(() -> f.apply(value));
}

Consumer or Runnable returns null, so MatchMonad will consume each matching case and otherwise case too :/

Should be all ok FWICS (but haven't tested it in depth). Have you tried it? It should not matter if the function f does return null because we create an Option of a Supplier (which is always Some(Supplier)) instead of an Option of a Value.
// Some(Supplier)
Option<Supplier<Void>> opt1 = Option.of(() -> null);

// None
Option<Void> opt2 = Option.of(null);

Thx for your contribution!

Yes you have right. It was my mistake. I will correct it and create another pull request :)

Thx :)

Mmhh - but you didn't change anything regarding the computeResult method (see PR). It should be all fine as it is.
Could you please test the expected behavior? Then we will see if we have a todo.
Thx!

No, i do not have to change any line of existing code and of course all will cover all changes with tests.

Great, I'm looking forward to it!


fix issue with quoted fields

fix #18

Thanks for the patch!
I tested this branch against the inputs that were failing with 0.6 and it works as expected 👍

I've released 0.7 with the fix, thanks again for the help.


Proposal: configure devices with their name and their connector

Input devices
Currently input devices are configured with their wlr_input_device.name - but if you have two identical devices, you can't configure them independently:
[backend/libinput/events.c:73] Added Metadot - Das Keyboard Das Keyboard [9456:320]
[backend/libinput/events.c:73] Added Metadot - Das Keyboard Das Keyboard [9456:320]

Unfortunately, inputs devices don't seem to have a serial number - only a friendly name, manufacturer and model.
Proposal: being able to configure them by their connector (retrieved from udev). We could add a char *connector field to wlr_input_device for that.
Ouputs
Outputs are always identified by their connector for now: VGA-1, HDMI-1-A... However, if you have for instance two DisplayPort connectors, it can make more sense to configure outputs by their name (just like input devices right now). Also outputs have a serial number which can be used to uniquely identify them (given a valid EDID).
Proposal: being able to configure them by their name (manufacturer, model and serial). The wlr_output currently has a name field used for the connector name - we could rename it to connector and add a serial field (make and model are already here).

However, if you have for instance two DisplayPort connectors, it can make more sense to configure outputs by their name

The names already describe a physical connector on a GPU so there is already no ambiguity, but I do see the value in configuring a monitor based on information about the monitor itself, instead of where you plugged it in.
Maybe you have some external monitor that is only plugged in occasionally and may not use the same connector every time. Also, DP MST can sometimes renumber the DP connectors in different ways if your setup changes, breaking your configs (There is a way to get more stable naming for these, but we currently don't do it).
None of this configuration needs to live in wlroots, though. We already make users configure it from a wlr_output, so they can make their decision based on whatever fields they want. Internally, name is meaningless.
The only thing that would actually require wlroots changes is adding a serial number, which is a pretty minor change. DRM is the only backend you could get this information. Although, I suppose it's the only backend that would find it useful too.

currently has a name field used for the connector name - we could rename it to connector

I don't see the point in doing this in particular.

The names already describe a physical connector on a GPU
I don't see the point in doing this in particular.

That's why I want to rename wlr_output.name to wlr_output.connector - the name isn't the name of the output, but the name of the connector. In other words, if there's a wlr_output.name field, it should be the name of the output, not the connector. It would be more consistent with wlr_input_device (whose name field isn't a connector name but the device name) and less confusing for users.

None of this configuration needs to live in wlroots, though.

Yes, most of the work will be in rootston. We just need to add some fields in wlr_input_device and wlr_output.

the name isn't the name of the output, but the name of the connector

In the DRM backend, there is no distinction between output and connector.
Also, the using connector seems inappropriate for the X11 and Wayland backends, where there really is no connector involved.

In the DRM backend, there is no distinction between output and connector.

 People don't know and don't need to know how the internals work.

Also, the using connector seems inappropriate for the X11 and Wayland backends, where there really is no connector involved.

Maybe physical_name? Do you have another idea? We should pick a name that works for both input devices and outputs.

Do we want to support syspaths as unique device identifiers?
@SirCmpwn: can you add this to backend/libinput/events.c:67 and tell me if it has a different value for your keyboards?
struct udev_device *udev_dev = libinput_device_get_udev_device(libinput_dev);
const char *sysname = udev_device_get_sysname(udev_dev);
wlr_log(L_DEBUG, "sysname: %s", sysname);

Might be able to do good stuff with udev properties:
udevadm info --query=property --name=/dev/input/by-id/usb-Wacom_Co._Ltd._CTH-470-mouse
DEVLINKS=/dev/input/by-id/usb-Wacom_Co._Ltd._CTH-470-mouse /dev/input/by-path/pci-0000:00:1a.0-usb-0:<IP_ADDRESS>:1.0-mouse
DEVNAME=/dev/input/mouse3
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.2/1-<IP_ADDRESS>/1-<IP_ADDRESS>:1.0/0003:056A:00DE.0027/input/input95/mouse3
ID_BUS=usb
ID_INPUT=1
ID_INPUT_TABLET=1
ID_MODEL=CTH-470
ID_MODEL_ENC=CTH-470
ID_MODEL_ID=00de
ID_PATH=pci-0000:00:1a.0-usb-0:<IP_ADDRESS>:1.0
ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_5_2_4_1_0
ID_REVISION=0100
ID_SERIAL=Wacom_Co._Ltd._CTH-470
ID_TYPE=hid
ID_USB_DRIVER=usbhid
ID_USB_INTERFACES=:030102:030000:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=Wacom_Co._Ltd.
ID_VENDOR_ENC=Wacom\x20Co.\x2cLtd.
ID_VENDOR_ID=056a
MAJOR=13
MINOR=35
SUBSYSTEM=input
USEC_INITIALIZED=41587848863


Use latin unicode to fix IE rendering issue

@choffmeister,
issue:

How to represent this bug:
font-family: 'Roboto', sans-serif;
font-weight: 300;

@matass Thanks for the PR. Will be happy to merge this. But before: Could you tell me, where you got this unicode ranges from?

@choffmeister Take a look at this file – https://fonts.googleapis.com/css?family=Roboto:400&subset=latin-ext
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v16/Ks_cVxiCiwUWVsFWFA3Bjn-_kf6ByYO6CLYdB4HQE-Y.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}

@matass Nice. Would merge it, but the unicode-range still is missing in the .less and .scss files and (probably) in the condensed and slab fontface.

@choffmeister, I will add same unicode-range to these files

@choffmeister the problem seems to appear only with fonts with weight 100 ant 300. I've made a simple test below
Before:

After:

@choffmeister, what do you thin? Actually this fix won't solve the main problem – 100/300 font-weight rendering in legacy browsers.  But this fix will avoid browsers to render light font. Example image
The main problem is with subset. Subset works correctly when loading font directly from google fonts. Interesting thing is that family=Roboto:300 and 300&subset=latin-ext has no diffs..


Support non-integer serial numbers

This resolves #860 in a manner that shouldn't break the numeric serial number support.
I've done a lot of testing with random serials over the last few days (as we've been populating stock in our "production" InvenTree) and that all seems to be fine. Integer ones seem OK from the basic testing I've done, but more eyes would be good at this point.

@bcc  looks great! I've added a couple of other fixes and re-submitted this over at https://github.com/inventree/InvenTree/pull/948

Thanks for getting this 99% of the way 👍


Export code-tools jenkins scripts to Git SCM

Also fixes shellcheck problems within the scripts

Closes: #43
Signed-off-by: Morgan Davies<EMAIL_ADDRESS>

Testing at https://ci.adoptopenjdk.net/view/Dependencies/job/testing. So far I have the following jobs working:

[x] https://ci.adoptopenjdk.net/view/Dependencies/job/testing/job/alpha-asmtools/11/console
[ ] https://ci.adoptopenjdk.net/view/Dependencies/job/testing/job/alpha-jcov/
[ ] https://ci.adoptopenjdk.net/view/Dependencies/job/testing/job/alpha-jtharness/
[ ] https://ci.adoptopenjdk.net/view/Dependencies/job/testing/job/alpha-jtreg/
[ ] https://ci.adoptopenjdk.net/view/Dependencies/job/testing/job/alpha-sigtest/

I wonder if we should pull those tools from github instead of hg ( https://github.com/openjdk/  vs http://hg.openjdk.java.net/code-tools/) ? Looks like openjdk hg is stale all new changes only go to github?  For example: github jcov was updated 4 days ago while hg jcov was updated 11 months ago. For jcov the latest release requires asm8 and to work with jdk16 jcov requires asm9.1.  Using github repo building with latest release tag might work better with newer jdk version.

I wonder if we should pull those tools from github instead of hg ( https://github.com/openjdk/ vs http://hg.openjdk.java.net/code-tools/) ? Looks like openjdk hg is stale all new changes only go to github? For example: github jcov was updated 4 days ago while hg jcov was updated 11 months ago. For jcov the latest release requires asm8 and to work with jdk16 jcov requires asm9.1. Using github repo building with latest release tag might work better with newer jdk version.

Yes we should swap to this for the nightlies - if they also have the tagged versions then we can go with GH for that as well.

Swapped to the skara repos. They have tags so all seems well.

@sophia-guo are you going to be able to change the test jobs to get the artefact from ./jtreg? See https://ci.adoptopenjdk.net/job/testing/job/alpha_pipeline/32/artifact/ to see what the new layout would look like. Once you're happy we'll merge and create a new job

I think that the change needs to be made in https://github.com/AdoptOpenJDK/TKG/blob/master/scripts/getDependencies.pl but I'll let @sophia-guo confirm

Yes @gdams . Both  https://github.com/AdoptOpenJDK/TKG/blob/master/scripts/getDependencies.pl and https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/openjdk/build.xml#L57 need to be updated. I will try to test it.

Yes, that's good. I can update test materials in openjdk-tests and TKG.

@M-Davies can you handle setting up the new pipeline?

@M-Davies can you handle setting up the new pipeline?

Done. Test pipeline running https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/1/console

@sophia-guo The new pipeline is now available at https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/
Let me know when you've migrated the test jobs and I'll clear up the old jobs.


wget and globus transfer not working

Neither the wget nor globus transfer option works to get CMIP6 data. It just provides an error message.

Same here.

Hi, there is a server problem at LLNL.  We have a holiday on April 1 for the day coinciding with Easter Monday so might be slow to restore services.

Services have been restored.


Encrypting Multiple Pages

How does one encrypt multiple pages in a website?
I mean, entering the password on one page decrypts all other pages at once.
And all routes are protected as well.

Do you mean something like this:

I have a Hugo website, using Netlify, and would like to know how to not require all pages on the site to ask for the password if it has already been entered on another page. Any help would be greatly appreciated. The following is my Netlify build command
hugo && npm install && find public -type f -name '*.html' -exec staticrypt {} ****** \\;
Thanks,
Eli

Answer comes in pretty late - you can now use the "Remember me" checkbox to automatically decrypt all pages on the same domain

Thank you!


duplicate cluster name

when i applied my config from previous issue via command
kubitect apply --config local_k8s.yaml --local

i got a duplicated cluster name while i tried to get any commands e.g.
~: kubitect ls clusters
Clusters:
  - local-k8s (active)
  - local-k8s (active, local)

~: kubitect export config --cluster local-k8s
 Error: multiple clusters (2) have been found with the name 'local-k8s'

but in clusters dir i see one folder
~: ls -l .kubitect/clusters
итого 4
drwxr-xr-x 5 user user 4096 июн  1 22:19 local-k8s

~: kubitect --version
kubitect version v3.1.0

Hi @artarik,
based on the provided output, one of the clusters is located in the current directory.
Clusters:
  - local-k8s (active).       # ~/.kubitect/clusters/local-k8s
  - local-k8s (active, local) # ./.kubitect/clusters/local-k8s

With version 3.0.0 global clusters (those in ~/.kubitect directory) can no longer be created with local- prefix. This prefix is now reserved exclusively for clusters that are created using --local flag.
This means if the cluster named k8s is created using --local flag, the resulting name would be local-k8s. Note that local clusters are created in the current directory (./.kubitect/)

wow, thank you for explain this situation.
But i have the same error then trying to create cluster from preset example-multi-worker
~: kubitect ls clusters
Clusters:
  - k8s-cluster (active)
  - k8s-cluster (active, local)

~: kubitect export kubeconfig --cluster k8s-cluster
┌
│ Error: multiple clusters (2) have been found with the name 'k8s-cluster'
└

or, if i creating cluster via command kubitect apply --config example-config-multi-worker.yaml --local
~: kubitect ls clusters
Clusters:
  - local-k8s-cluster (active)
  - local-k8s-cluster (active, local)

Yes, I haven't realized till now that local and global paths conflict in the home directory.
Will fix that asap.
In the mean time, you can workaround this problem by changing into any directory that is not home (~) and it should work.

Thanks @artarik for opening this issue.
It has been fixed in v3.1.1.


[BUG] Crash on start up

Describe the bug 🐛
Dooit 3.0.3 crashes on start up.
To Reproduce 🐣
Steps to reproduce the behavior:

Type dooit in terminal

Expected behavior  🤔
Not crashing
Screenshots 🧐

Desktop (please complete the following information):  🤖

OS: ArchLinux
Kernel 6.11.8-arch1-2

Additional context 📝
Package installed from AuR using yay.

That is weird. Did you install from the AUR?

Yup. I just run pacman - Syu and then update the dooit package from AUR.

Alright. Thanks for confirming, I'll update this in an hour or so

Hi @nguyentran0212,
should be fixed now. Can you re-sync the packages and check again? Thanks :)

@kraanzu thanks for the quick response! I can confirm that version 3.0.4 works without any problem.


Add auto merge

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/optimade-feedstock#4.


Generate deserialize tests with harness

This PR adds datatest-stable as a custom test harness.
Datatest generates a test for each file matching a glob. We can use this to generate a deserialization test for each test (json) file instead of looping through all json files within one test.

@JKRhb Yep, MSRV will be 1.66 then for 0.6

I propose to not run tests against MSRV.
This Rust RFC describes the current situation:

In some cases, the MSRV-incompatible dependencies might be restricted to dev-dependencies. Though local development can’t be performed with the MSRV, the fact that the tests are verifying (on a newer toolchain) that the build/normal dependencies work gives a good amount of confidence that they will work on the MSRV so long as they compile.

We could run the tests by locking to clap == 4.3.24 in Cargo.lock. I suspect that dependabot is unaware of this constraints and will keep updating the lock.


TaskCanceledException thrown from ReadItemStreamAsync

Describe the bug
When invoking ReadItemStreamAsync without passing a cancellation token, it returned an task cancelled exception. I assume a transient issue occurred to cause the error.
However, the bug I am reporting is that it threw the exception, rather returning a response that we can examine for the cause of the error or invoke ThrowExceptionIfUnsucessful on.
It may or may not have also bypassed the built-in retry logic for errors.
To Reproduce
This is intermittent and has only happened to us once in millions of executions of the same query pattern. This issue isn't that it fails, but it throws an unexpected exception type.
Expected behavior
A failed call to ReadItemStreamAsync should return a response with error information that can be turned into a CosmosException by calling ThrowExceptionIfUnsuccessful() when its internal tasks are cancelled.
Actual behavior
A call to ReadItemStreamAsync can sometimes throw a TaskCancelledException even though no cancellation token was passed in.
Environment summary
SDK Version: 3.8
OS Version: Azure Functions V3 host
We have updated our SDK to 3.9 but this is a rare issue and haven't reproduced it there.
Additional context
Our application logging captured  a partial stack trace. It deletes lines that are just async continuation information.
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.DocumentClient.HttpRequestMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.Azure.Cosmos.ClientExtensions.GetAsync(HttpClient client, Uri uri, INameValueCollection additionalHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Routing.GatewayAddressCache.GetServerAddressesViaGatewayAsync(DocumentServiceRequest request, String collectionRid, IEnumerable`1 partitionKeyRangeIds, Boolean forceRefresh)
at Microsoft.Azure.Cosmos.Routing.GatewayAddressCache.GetAddressesForRangeIdAsync(DocumentServiceRequest request, String collectionRid, String partitionKeyRangeId, Boolean forceRefresh)
at Microsoft.Azure.Cosmos.Common.AsyncCache`2.GetAsync(TKey key, TValue obsoleteValue, Func`1 singleValueInitFunc, CancellationToken cancellationToken, Boolean forceRefresh)
at Microsoft.Azure.Cosmos.Routing.GatewayAddressCache.TryGetAddressesAsync(DocumentServiceRequest request, PartitionKeyRangeIdentity partitionKeyRangeIdentity, ServiceIdentity serviceIdentity, Boolean forceRefreshPartitionAddresses, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.AddressResolver.TryResolveServerPartitionAsync(DocumentServiceRequest request, ContainerProperties collection, CollectionRoutingMap routingMap, Boolean collectionCacheIsUptodate, Boolean collectionRoutingMapCacheIsUptodate, Boolean forceRefreshPartitionAddresses, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.AddressResolver.ResolveAddressesAndIdentityAsync(DocumentServiceRequest request, Boolean forceRefreshPartitionAddresses, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.AddressResolver.ResolveAsync(DocumentServiceRequest request, Boolean forceRefreshPartitionAddresses, CancellationToken cancellationToken)
at Microsoft.Azure.Documents.AddressSelector.ResolveAddressesAsync(DocumentServiceRequest request, Boolean forceAddressRefresh)
at Microsoft.Azure.Documents.AddressSelector.ResolveAllUriAsync(DocumentServiceRequest request, Boolean includePrimary, Boolean forceRefresh)
at Microsoft.Azure.Documents.StoreReader.ReadMultipleReplicasInternalAsync(DocumentServiceRequest entity, Boolean includePrimary, Int32 replicaCountToRead, Boolean requiresValidLsn, Boolean useSessionToken, ReadMode readMode, Boolean checkMinLSN, Boolean forceReadAll)
at Microsoft.Azure.Documents.StoreReader.ReadMultipleReplicaAsync(DocumentServiceRequest entity, Boolean includePrimary, Int32 replicaCountToRead, Boolean requiresValidLsn, Boolean useSessionToken, ReadMode readMode, Boolean checkMinLSN, Boolean forceReadAll)
at Microsoft.Azure.Documents.QuorumReader.ReadQuorumAsync(DocumentServiceRequest entity, Int32 readQuorum, Boolean includePrimary, ReadMode readMode)
at Microsoft.Azure.Documents.QuorumReader.ReadStrongAsync(DocumentServiceRequest entity, Int32 readQuorumValue, ReadMode readMode)
at Microsoft.Azure.Documents.ReplicatedResourceClient.<>c__DisplayClass27_0.<<InvokeAsync>b__0>d.MoveNext()
at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func`1 executeAsync, Func`1 prepareRequest, IRequestRetryPolicy`2 policy, CancellationToken cancellationToken, Func`1 inBackoffAlternateCallbackMethod, Nullable`1 minBackoffForInBackoffCallback)
at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func`1 executeAsync, Func`1 prepareRequest, IRequestRetryPolicy`2 policy, CancellationToken cancellationToken, Func`1 inBackoffAlternateCallbackMethod, Nullable`1 minBackoffForInBackoffCallback)
at Microsoft.Azure.Documents.StoreClient.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken, IRetryPolicy retryPolicy, Func`2 prepareRequestAsyncDelegate)
at Microsoft.Azure.Documents.ServerStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`3 callShouldRetryException, CosmosDiagnosticsContext diagnosticsContext, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(Uri resourceUri, ResourceType resourceType, OperationType operationType, RequestOptions requestOptions, ContainerCore cosmosContainerCore, Nullable`1 partitionKey, Stream streamPayload, Action`1 requestEnricher, CosmosDiagnosticsContext diagnosticsContext, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.ContainerCore.ProcessItemStreamAsync(Nullable`1 partitionKey, String itemId, Stream streamPayload, OperationType operationType, ItemRequestOptions requestOptions, CosmosDiagnosticsContext diagnosticsContext, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.ContainerCore.ReadItemStreamAsync(String id, PartitionKey partitionKey, ItemRequestOptions requestOptions, CancellationToken cancellationToken)

I've now also seen an OperationCancelledExcpetion being thrown. In this case, our application didn't record the full stack trace so i can't tell which method was being called but it could only have been ReadItemStreamAsync or FeedIterator.ReadNextAsync on the results of a call to GetItemQueryStreamIterator
 at System.Threading.CancellationToken.ThrowOperationCanceledException()
 at System.Threading.CancellationToken.ThrowIfCancellationRequested()
 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
 at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)
 at System.Net.Security.SslStream.ThrowIfExceptional()
 at System.Net.Security.SslStream.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
 at System.Net.Security.SslStream.EndProcessAuthentication(IAsyncResult result)
 at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
 at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__65_1(IAsyncResult iar)
 at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
 at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
 at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 at Microsoft.Azure.Cosmos.DocumentClient.HttpRequestMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
 at Microsoft.Azure.Cosmos.ClientExtensions.GetAsync(HttpClient client, Uri uri, INameValueCollection additionalHeaders, CancellationToken cancellationToken)
 at Microsoft.Azure.Cosmos.Routing.GatewayAddressCache.GetServerAddressesViaGatewayAsync(DocumentServiceRequest request, String collectionRid, IEnumerable`1 partitionKeyRangeIds, Boolean forceRefresh)
 at Microsoft.Azure.Cosmos.Routing.GatewayAddressCache.GetAddressesForRangeIdAsync(DocumentServiceRequest request, String collectionRid, String partitionKeyRangeId, Boolean forceRefresh)
 at Microsoft.Azure.Cosmos.Common.AsyncCache`2.GetAsync(TKey key, TValue obsoleteValue, Func`1 singleValueInitFunc, CancellationToken cancellationToken, Boolean forceRefresh)

All these exceptions point at connectivity issues, looking at the stack they are all coming from the System.Net.Http.HttpClient. HttpClient throws a TaskCanceledException when the timeout happens (which in this case seems to be coming from the CosmosClientOptions.RequestTimeout). References:

https://github.com/dotnet/corefx/blob/bdd33976fe3713cc3e78b83cf2a1176c70b793be/src/System.Net.Http/src/System/Net/Http/HttpClient.cs#L488
https://github.com/dotnet/runtime/issues/21965

The OperationCanceledException has the same source (a timeout).
Do you have a singleton CosmosClient in your application? Or multiple instances? Are you by any chance running into some of the scenarios described in: https://docs.microsoft.com/en-us/azure/cosmos-db/troubleshoot-dot-net-sdk#request-timeouts

The timeouts were being caused by a hot partition.
However, the bug I was reporting wasn't that these errors occurred, but that when they did occur, the they weren't trapped in the SDK code and transformed into a response with the error details on it.

I think that for these types (OperationCanceledException and TaskCanceledException) we are not wrapping it on a CosmosException on purpose, right @j82w?. There was even an ask in a previous issue about it.
The fact that HttpClient also uses these to indicate a timeout because it internally converts the timeout value into a CancellationToken is an implementation detail of the HttpClient, but TaskCanceledException/OperationCanceledException are naturally thrown by the SDK if you do pass a CancellationToken with some value.

This seems like a bug and we should be converting this to a 408 request timeout. The gateway store already does this. I think it provides a more consistent and better user experience if it get converted, and this should be considered a bug.

Closing as TaskCanceledExceptions as the SDK now wraps them with a request timeout https://github.com/Azure/azure-cosmos-dotnet-v3/blob/04db8518ef66c4052d934bbc0731801982a3281c/Microsoft.Azure.Cosmos/src/GatewayStoreClient.cs#L425


[Bug] Patch API getting flagged on page load

This API has been flagged as onPageLoad even though it's a PATCH API and its response is not bound to a view and it is being triggered by a widget
https://app.appsmith.com/applications/5fc8d29a357c3201e6a4f273/pages/5fc8d29a357c3201e6a4f275/edit/api/5fd212fe3261b502f6ce2536

Update this might be due to copying an action to configure this but I don't remember if the previous action was explicitly marked onPageLoad.

@Nikhil-Nandagopal I've been able to repro this by copying an existing API (which had onPageLoad set) but not by triggering the API call on button click. Invited you to this app to check repro steps:
https://app.appsmith.com/applications/5fbde54e58377818ddaec540/pages/5fbde54e58377818ddaec542/edit

@nidhi-nair yes that seems to be the issue. This is wrong since the API was not explicitly marked onPageLoad


[BUG] New-PnPTeamsTeam: Failed to find users with user principal name

Reporting an Issue or Missing Feature
I am reporting a bug
Expected behavior
New-PnPTeamsTeam should not throw any errors when -Owners or -Members parameters are specified.
Actual behavior
When  -Owners or -Members parameters are specified New-PnPTeamsTeam gives an error

Failed to find users with user principal name

Steps to reproduce behavior
Connect-PnPOnline
New-PnPTeamsTeam -DisplayName Team -MailNickName Team  -Owners<EMAIL_ADDRESS>-Visibility Private -Members<EMAIL_ADDRESS><EMAIL_ADDRESS>
What is the version of the Cmdlet module you are running?
Name    : PnP.PowerShell
Version : 1.10.28

Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

I had the same bug. this happened if the casing of the UPN was wrong. as a workaround you can use the userId instead of UPN.
But I think this issue has just now been fixed by MSGraph. @YuriySamorodov can you confirm that it's working now?

Thanks @4ndri ,
I can confirm UPNs are correct. Moreover, Add-PnPTeamsUser accepts the same UPN addresses no problem.
Nevertheless, the issue is indeed resolved now. Just wondering, if you have a corresponding ticket from MSGraph? It would be beneficial to  mention it there for future reference and tracking.
Appreciate quick turnaround!

I'm sorry, I don't have any ticket or other reference. I was working on this problem and tried in graph explorer and suddenly it worked.

Oh, wow! Sounds like a miracle. =) Thanks again, @4ndri . I guess we are good to go!


Can you upload the max frequency that picorv32 could run on Xilinx Atrix-7?

At present, only results of K7, V7, KU, VU, KU+, VU+ is displayed in README.MD. Sorry but I don't have a Vivado license. So it is very helpful if you can upload the result of A7.
Thanks.

Vivado license is free for Artix S7 - afaik. Is it not?

What @shufps said.


Data streaming interfaces

In addition to #55, it also will be usefull to come up with interfaces for streams.
Basically, there will be two major types of data streaming:

binary data - just bunch of bytes splitted and sent in chunks
json data - some structured data
Server-side streams API :

class BaseStreamResponse extends Writable {}

class BinaryStreamResponse extends BaseStreamResponse {}

class JsonStreamResponse extends BaseStreamResponse {}

// example of binary data stream
declareProcedure(() => {
  const stream = new BinaryStreamResponse()
  fs.createReadableStream('/path/to/static/file').pipe(stream)
  return stream
})

// example of json data stream
declareProcedure(() => {
  async function getDataFromDb() {
    for await (const rows of cursor) {
       rows.length ? stream.write(rows) : stream.end()
    }
  }
  const stream = new JsonStreamResponse()
  getDataFromDb()
  return stream
})

Then client-side stream API could be something like this, where client.rpc return instance of Readable (which can be used as async iterable):
const stream = await client.rpc(`v1/binary-stream`, someInput)

for await (const arrayBuffer of stream) {
  // do something with buffer
}

const items = []
function loadItems() {
  const stream = await client.rpc(`v1/json-stream`, someInput)

  for await (const rows of stream) {
    items.push(...rows)
  }
}

loadItems()

Concerns and important things that need to take care of:

Clean API for stream abortion, both client and server side
Backpressure
Consistency across different transports and environments (e.g browsers will require polyfils if use node's streams that will noticeable increase to bundle size)

UPD:
After some thought, the best option for client-side streams so far seem to be just Streams API. It is the most portable solution for now, supported pretty much everywhere: Web, Node, Bun and Deno.
If a client is being used in Node.js or Bun env, then it can easily be transfromed to Node's Readable with Readable.fromWeb().
Also, asyncIterable is not widely supported in browsers yet, so it might be usefull to provider some toAsyncIterable() method.

Reopen as it is not finished yet. There's also client-to-server streaming

Added with #66

Finalized in #67


v1.17.2 have some lag!

VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:59:48.528Z)
OS Version: Windows_NT ia32 6.3.9600
Extensions:

Extension
Author (truncated)
Version

html-class-suggestions
And
1.0.7

text-transform
flo
0.1.0

vscode-icons
rob
7.16.0

wordpress-snippet
tun
1.1.2

sort-lines
Tyr
1.3.0

Hi
When I update vscode to 1.17.2, get some lags on:

scrolling the page not continuously
html tag suggestion
some time, when I typing code, nothing show on monitor and after 1 sec, the typed code is displayed.
delay on opening vscode

I did not have this problem in previous versions and my extension on new and old versions not changed.

me to

same here!

Same here!

@jrieken assigning to you for awareness. I know nothing you can fix alone.

Are all "me too"s @dtmkeng @linxiaoru @DrMueller also on windows and vscode 1.17.2?

@michaelchiche and everyone else, please create a CPU profile and attach it here. How it's down is documented here: https://github.com/Microsoft/vscode/wiki/Performance-Issues#creating-performance-profiles

@jrieken My CPU profile:
CPU-20171025T185931.zip

@miladghiravani Thanks for the additional information... There seems to be an issue with the tungvn.wordpress-snippet-snippets. We have a check in place that makes sure snippets use placeholders and not variables (some an old would confuse) and when we find a snippet like that we fix it and print a warning. It seems that there is a warning avalanche causes slowness..
I can reproduce locally, I'll make sure to get it fixed

@miladghiravani This should be a lot better with tomorrows insiders


Language dependency

Hi, This model is language independent. isn't it? I get negative score for Persian bonafide input. I guess that the pre-trained model is dependent to English language. Is there any condition for input audio?

Hello, did you apply softmax non-linearity to the output and check the value of bona-fide node?


Using the client to decode Server Sent Events misbehaves on both JVM and JS

Re: https://discord.com/channels/632277896739946517/632286375311573032/1020733581703786608
Repro: https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc
scala-cli test https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc
As discussed with @armanbilge, we observed on both JVM and JS two different wrong behaviours, the JVM will throw a ClosedChannelException, the JS runtime will hang after the first event, when the source advertises an event every 2 seconds, observable through:
$ curl -N --location --compressed --request GET 'https://sse.dev/test' --header 'Accept: text/event-stream'

Here's my JS reproducer. I inlined the EventStream decoder and added a .debugChunks(). It seems that only one chunk is arriving before the hang, which makes me suspect ember.

//> using lib "org.scalameta::munit::1.0.0-M6"
//> using lib "org.typelevel::munit-cats-effect::2.0.0-M3"
//> using lib "org.http4s::http4s-ember-client::0.23.16"
//> using lib "org.http4s::http4s-circe::0.23.16"
//> using lib "org.http4s::http4s-dsl::0.23.16"
//> using lib "io.circe::circe-generic::0.14.3"
//> using platform "js"
//> using jsModuleKind "common"

import munit.CatsEffectSuite
import fs2.Stream
import org.http4s.ember.client.EmberClientBuilder
import cats._
import cats.effect._
import org.http4s._
import org.http4s.implicits._
import org.http4s.Method._
import org.http4s.client.dsl.io._

class Repro extends CatsEffectSuite {

  def eventStream[F[_]: Applicative]: EntityDecoder[F, EventStream[F]] =
    EntityDecoder.decodeBy(MediaType.`text/event-stream`) { msg =>
      DecodeResult.successT(msg.body.debugChunks().through(ServerSentEvent.decoder))
    }

  test("repro") {
    val io = Stream.resource(EmberClientBuilder.default[IO].build).flatMap { client =>
      val req: Request[IO] = GET(uri"https://sse.dev/test")

      Stream.eval(client.expect[EventStream[IO]](req)(eventStream)).flatMap { eventStream =>
        eventStream.debug()
      }
    }.compile.drain

    assertIO(io, ())
  }
}

Which gets
Repro:
Chunk(100, 97, 116, 97, 58, 32, 123, 34, 116, 101, 115, 116, 105, 110, 103, 34, 58, 116, 114, 117, 101, 44, 34, 115, 115, 101, 95, 100, 101, 118, 34, 58, 34, 105, 115, 32, 103, 114, 101, 97, 116, 34, 44, 34, 109, 115, 103, 34, 58, 34, 73, 116, 32, 119, 111, 114, 107, 115, 33, 34, 44, 34, 110, 111, 119, 34, 58, 49, 54, 54, 51, 52, 51, 53, 50, 55, 57, 51, 55, 53, 125, 10, 10)
ServerSentEvent(Some({"testing":true,"sse_dev":"is great","msg":"It works!","now":1663435279375}),None,None,None)
==> X Repro.repro 30.20s java.util.concurrent.TimeoutException: test timed out after 30 seconds

With some pain I got the Scala Native version working as well, which got me this.
Repro:
ServerSentEvent(Some({"testing":true,"sse_dev":"is great","msg":"It works!","now":1663434391243}),None,None,None)
==> X Repro.repro 0.80s fs2.io.net.tls.S2nException: cannot resize a static stuffer

I'm not sure what that means, but possibly that ember is somehow giving bad input to the TLS stuff? No idea.

Reproducing with http4s-jdk-http-client

//> using lib "org.scalameta::munit::1.0.0-M6"
//> using lib "org.typelevel::munit-cats-effect::2.0.0-M3"
//> using lib "org.http4s::http4s-jdk-http-client::1.0.0-M5"
//> using lib "org.http4s::http4s-circe::1.0.0-M35"
//> using lib "org.http4s::http4s-dsl::1.0.0-M35"
//> using lib "io.circe::circe-generic::0.14.2"
//> using scala "2.13.8"

import munit.CatsEffectSuite
import fs2.Stream
import org.http4s.jdkhttpclient.JdkHttpClient
import cats.effect.IO
import org.http4s._
import org.http4s.implicits._
import org.http4s.Method._
import org.http4s.client.dsl.io._

class Repro extends CatsEffectSuite {

  test("repro") {
    val io = Stream.resource(JdkHttpClient.simple[IO]).flatMap { client =>
      val req: Request[IO] = GET(uri"https://sse.dev/test")

      Stream.eval(client.expect[EventStream[IO]](req)).flatMap { eventStream =>
        eventStream.debug()
      }
    }.compile.drain

    assertIO(io, ())
  }
}

Output:

repro$Repro:
==> X repro$Repro.repro  1.016s java.lang.IllegalStateException: This publisher has already one subscriber
    at jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber.subscribe(ResponseSubscribers.java:973)
    at org.reactivestreams.FlowAdapters$ReactivePublisherFromFlow.subscribe(FlowAdapters.java:348)
    at org.http4s.jdkhttpclient.JdkHttpClient$.$anonfun$apply$13(JdkHttpClient.scala:219)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Pull$.fs2$Pull$$interruptGuard$1(Pull.scala:929)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Pull$.fs2$Pull$$interruptGuard$1(Pull.scala:929)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at get @ fs2.internal.Scope.openScope(Scope.scala:281)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Pull$.fs2$Pull$$interruptGuard$1(Pull.scala:929)

.... and it works with the Node.js built-in client. 🤯

//> using lib "org.scalameta::munit::1.0.0-M6"
//> using lib "org.typelevel::munit-cats-effect::2.0.0-M3"
//> using lib "org.http4s::http4s-ember-client::0.23.16"
//> using lib "org.http4s::http4s-circe::0.23.16"
//> using lib "org.http4s::http4s-dsl::0.23.16"
//> using lib "io.circe::circe-generic::0.14.3"
//> using platform "js"
//> using jsModuleKind "common"

package org.http4s.client

import munit.CatsEffectSuite
import fs2.Stream
import org.http4s.ember.client.EmberClientBuilder
import cats._
import cats.effect._
import org.http4s._
import org.http4s.implicits._
import org.http4s.Method._
import org.http4s.client.dsl.io._

class Repro extends CatsEffectSuite {

  def eventStream[F[_]: Applicative]: EntityDecoder[F, EventStream[F]] =
    EntityDecoder.decodeBy(MediaType.`text/event-stream`) { msg =>
      DecodeResult.successT(msg.body.debugChunks().through(ServerSentEvent.decoder))
    }

  test("repro") {
    val io = Stream.resource(NodeJSClientBuilder[IO].resource).flatMap { client =>
      val req: Request[IO] = GET(uri"https://sse.dev/test")

      Stream.eval(client.expect[EventStream[IO]](req)(eventStream)).flatMap { eventStream =>
        eventStream.debug()
      }
    }.compile.drain

    assertIO(io, ())
  }
}

It emits the event every two seconds exactly as expected.
So all of our other clients are broken 😛

@Koroeskohr thanks, I tried running your repro, but I'm not sure if I was able to reproduce. For this test:
  // still fails
  s("repro byte".only) {

You say that it still fails. Can you clarify what you mean by that? For me it printed out chunks periodically for 30 seconds until the test timeout. Which is the expected behavior I believe.

ah, that's running the wrong test probably, I was not aware of "".only and added a function (s) to quickly skip over tests I didnt want to run while testing, you're likely running "repro byte no expect"

Oh, d'oh 😂 let me try that again

ok thanks I just reproduced! nice work!

Ah, I understood the problem. Crap 😕 there was a reason this didn't exist, and now I know why. My PR https://github.com/http4s/http4s/pull/6413 was a mistake and we're going to have to deprecate this as broken.
The problem is quite simple: expect cannot be used with streaming results because expect does not return a Resource. It returns an F[_] and therefore must consume the entirety of the entity body before returning. This is incompatible with the notion of streaming the result.
Thanks for your minimization efforts, it took an embarrassing amount of further minimization to realize what is actually fairly obvious 🤦


Original JSON is not valid according to schema

Steps required to reproduce the problem
For some reason, normalize package didn't worked against my schema, even it certainly correct (tested on https://www.jsonschemavalidator.net/).
There it is:
{
    "description": "Domains management system",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=7.1.0",
        "yiisoft/yii2": "~2.0.14",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0",
        "linslin/yii2-curl": "1.2.1",
        "symfony/dom-crawler": "^3.3",
        "symfony/css-selector": "^3.4",
        "mikemadisonweb/yii2-rabbitmq": "^2.0",
        "php-amqplib/php-amqplib": "^2.7",
        "guzzlehttp/guzzle": "~6.0",
        "sabre/xml": "^2.1",
        "yiisoft/yii2-mongodb": "^2.1",
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-gii": "~2.0.0",
        "ext-sockets": "*"
    },
    "require-dev": {
        "phpunit/phpunit": "^8",
        "symfony/var-dumper": "^4.2"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ],
        "test": "phpunit ./tests"
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        }
    }
}

I had the same problem today.
I never manually edited the file composer.json so I guess it should be valid.

I had the same problem, checked https://getcomposer.org/schema.json, it required
"required": [
    "name",
    "description"
],

in my case, I don't have a description. after add back the description. it works fine.

@etshy @iLexN @ilyachase
The problem is the following:

in Localheinz\Json\Normalizer\Validator\SchemaValidator::isValid() we validate according to the original JSON schema
in Composer\Json\JsonFile::validateSchema a lax validation (no fields are required, additional properties are ok) is performed

I should probably perform a lax validation as well.

Ok, so I double checked original schema (https://getcomposer.org/schema.json) and my JSON, and I actually don't have name in it. So I don't think you should change the code. I should fix my JSON and try again.


get inscription content error

I am receiving error not found on this request, but the ID is correct and does indeed exist
GET on this link: https://api.hiro.so/ordinals/v1/inscriptions/d88cfc96b40111d142dbdd8e855c3dc8428d2562567bb03b41f8d3ab0d98eedai0/content
Data does indeed exist: https://ordinals.com/inscription/d88cfc96b40111d142dbdd8e855c3dc8428d2562567bb03b41f8d3ab0d98eedai0

Thanks for the report. This inscription wasn't indexed for some reason.
We will look into it on the API/chainhook side of things 🙏


test: Add test to ImageZoom component

So, this is my test proposal for ImageZoom 😄
I'm accepting any type of suggestions 💃

Awesome everyone, I'll refactor. Thanks for the suggestions 😄

Coverage increased (+0.9%) to 38.124% when pulling 6b044c1e91bd7a710bb63409f4f04954bae77a4a on jouderianjr:testes/imageZoom into 6780754cf9b00f457269fbc88e2405c1b34e5328 on gitpoint:master.

Hey @alejandronanez @andrewda , I recreated the tests, What do you think guys? 😄

Nice catch!

Coverage increased (+0.9%) to 38.124% when pulling bc429197e566829a7fc5bd7e6c4fd8e1a679c56e on jouderianjr:testes/imageZoom into 6780754cf9b00f457269fbc88e2405c1b34e5328 on gitpoint:master.

@alejandronanez I think all the changes are done. Thanks for all suggestions 💃

Coverage increased (+0.8%) to 40.18% when pulling 6757a3c59e50c414b22cc521bc039bd921529df3 on jouderianjr:testes/imageZoom into 34b84d2576b9ff1d6e9eaeee4947a6bf488e4aad on gitpoint:master.


Display won't turn back on after turning off. Connected party did not properly respond after a period of time

hey just updated to the latest version. v1.6.2
using a network <IP_ADDRESS> broadcast and it looks like that DisplayPowerOnThread() is not able to hit the TV even though the PowerOffThread works perfectly fine.
I've added some logging data.. where i turned of the screen off. and it worked fine, but turning on i tried 3 times and it fails.
log data.txt

What are your Windows settings for screen timeout and/or display off?
Are you turning off the TV with your remote and then trying to resume before any of those Windows settings kick in?
What is your Power On timeout value in the app?
Are you sure your TV IP hasn't changed?  (I had similar weird issues with the resume a while back before I realized that my IP address on the TV had changed and set a DHCP reservation to prevent it from changing).

Can you try the two other network options and let me know if that makes a difference?

Hi @Amoeba00 any update on this issue?

@syaoran68 had the issue, I was just relaying my troubleshooting tips since I had a similar issue happen to me a while back.  :-)

Whoops my bad, sorry mate!
@syaoran68 any update on this? 😁

Closinig the issue due to lack of additional feedback


A setting to turn off auto-installed dependencies

Having dependencies installed automatically is a nice default behaviour, but hyperclick and browser-plus are not essential for Ensime, so if I uninstall them (because they slow down atom loading process), I don't want to get them back every time atom relaunches. Would be nice to have a setting to turn this off.
If I will have time on the weekend, I'll try to do it (but I can't promise). @hedefalk says it's a low-hanging fruit :tangerine:

Awesome! I'll give you a hint:
https://github.com/ensime/ensime-atom/blob//v0.35.3/lib/ensime.coffee#L120

@laughedelic I'm gonna steal this one from you!

Haha 👍 I don't have time for it anyway


[Autocomplete] If the same label exists, dummy options is added

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
If there are two or more of the same label for an option in Autocomplete, the option is infinitely added.
Every time you search for the same keyword.
Expected behavior 🤔
Every time, You should get same result, when you search for the same keyword
Steps to reproduce 🕹
Steps:

set autocomplete
Please add options that have two or more of the same label for an option
search by the same keyword. erased and enter again
Please see the list of items.

Codesandbox
https://user-images.githubusercontent.com/25470245/173973064-b655092c-cecd-4a2b-9084-2e4553a2afb1.mov
)
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

The demo seems to be broken in the codensadbox link. It crashes when trying to open the autocomplete. Can you check and maybe start by fixing the console errors shown or open a new issue if necessary.

the issue is missing key attribute for list item in renderOption.

Is there any Way to fix the issue.


add criteriaMode: all support to class-validator resolver

Fix nested errors
support criteriaMode: all
perf: reduce bundle size (~93% per bundle)
Fix warning at build time:

The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten

@mzalevski Here is the changes, that was not simple to fix nested errors 😅
Can you review this one please ? let me know it I need change something, thx

Awesome stuff @jorisre The package size reduction is amazing! I will update the doc soon as well. we should tweet this this week. a brand new resolver.

Awesome stuff @jorisre The package size reduction is amazing! I will update the doc soon as well. we should tweet this this week. a brand new resolver.

Yeah thanks again to @mzalevski


HTML DOM parsing

Hi,
I would like to get the position of the DOM elements (top, left, right, bottom) on an HTML page in C#. I was thinking about using your library. Can I do it with this library ?
Thanks!

No, sorry, this is a library for running JavaScript. It's not a library for interpreting or manipulating HTML.