Upgrade to 3.2.0 from 3.1.1 causes error: ERROR: Could not resolve "#app/nuxt"

Environment

Operating System: Darwin
Node Version:     v16.19.0
Nuxt Version:     3.2.0
Nitro Version:    2.2.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      imports, modules, sourcemap, runtimeConfig
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-yabkao?file=composables%2FuseToast.js,app.vue
Describe the bug
Upgrade to 3.2.0 from 3.1.1 causes error: ERROR: Could not resolve "#app/nuxt"
 ERROR  12:38:42 PM [vite] error while updating dependencies:
 Error: Build failed with 1 error:
 node_modules/nuxt/dist/head/runtime/composables.mjs:2:27: ERROR: Could not resolve "#app/nuxt"
     at failureErrorWithLog (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:1604:15)
     at /Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:1056:28
     at runOnEndCallbacks (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:1476:61)
     at buildResponseToResult (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:1054:7)
     at /Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:1166:14
     at responseCallbacks.<computed> (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:701:9)
     at handleIncomingPacket (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:756:9)
     at Socket.readFromStdout (/Users/me/project/node_modules/vite/node_modules/esbuild/lib/main.js:677:7)
     at Socket.emit (node:events:513:28)
     at Socket.emit (node:domain:489:12)

Additional context
No response
Logs
No response

I've experience the same thing and was about to post this. Thanks!

For now, you can either import directly from '#app' or add 'nuxt/app' to your build.transpile:
- import { callWithNuxt } from 'nuxt/app'
+ import { callWithNuxt } from '#app'

The import is in a Nuxt package directly, so we can't (should't) modify it ourselves.
Adding a build.transpile property to nuxtconfig.ts as directed resolved this error as a workaround. Thanks!
    build: {
        transpile: [
            'nuxt/app'
        ]
    },

You have an import from nuxt/app in your app. Updating that is what I'm referring to.

I think this all auto-imports and import aliases makes more problems. Why not to give people option to explicitly import everything from packages directly? I would prefer this option instead of aliases magic.

Yup. That was definitely the better fix. I didn't realize that was in use in our code. Fixing it in our code was definitely the better solution.


When Sending Emails we don't want Gov.uk branding on them, we want our own so it isn't confused as spam

What?

Strip out branding from emails
Replace with GoC Logo

@sboots Help ensuring we are FIP compliance with this using previous guidelines

The template for this are in a separate repo - found here
https://github.com/alphagov/notifications-utils/blob/master/notifications_utils/jinja_templates/email_template.jinja2
We also need to update the requirements in the admin:
<EMAIL_ADDRESS>

Template is updated - https://github.com/cds-snc/notifier-utils


How to save/load route?

I want to create route from point A to point B, edit this route exactly where I want to, and save it to the database. Is there any way to do this? I'm about saving/ loading of route. I planned save to database String A point, String B point and string array of waypoints. And I planned: then i will be load theese data I  will create route from A to B and set it waypoints in order to get the exact route previously created(saved in db). But I did not find any setters, opportunities to implement theese. There is some possibility to realize something similar??? Sorry my bad english. Thanks!

DirectionsRequest can take an array of DirectionsWaypoint via the constructor, so this is how you would recreate the route. To save to the database you would process the returned DirectionLegs and store away the start and end locations of each leg. The google maps javascript API for waypoints might offer some useful information, though I'm not sure how much of the functionality has been implemented in the directions component here.
https://developers.google.com/maps/documentation/directions/intro

@GeoffCapper, thank you for your help. I was helpful.


Add tests for multiple cookies.

Types of Changes

New feature.

Contribution

[x] I added tests for my changes.
[x] I tested my changes locally.
[x] I agree to the Developer's Certificate of Origin 1.1.

@MSP-Greg @dentarg is it just me, or is Falcon the only server doing the correct thing here?
Multiple cookie headers should be combined using a semi-colon, right? or am I halucinating?

@jeremyevans do we have any specific guidance in Rack on how to combine cookie headers into HTTP_COOKIE?

RFC 6265 Section 5.4 states that browsers should not submit more than one Cookie header: https://www.rfc-editor.org/rfc/rfc6265#section-5.4 .  Since it isn't allowed by the RFC, I don't think Rack SPEC should mention how to handle that case.

RFC 6265 Section 5.4 states "When the user agent generates an HTTP request, the user agent MUST NOT attach more than one Cookie header field."
RFC9113 doesn't change this semantic but does allow multiple cookie headers on the wire:
To allow for better compression efficiency, the Cookie header field MAY be split into separate header fields, each with one or more cookie-pairs. If there are multiple Cookie header fields after decompression, these MUST be concatenated into a single octet string using the two-octet delimiter of 0x3b, 0x20 (the ASCII string "; ") before being passed into a non-HTTP/2 context, such as an HTTP/1.1 connection, or a generic HTTP server application.

Therefore, the following two lists of Cookie header fields are semantically equivalent.

cookie: a=b; c=d; e=f

cookie: a=b
cookie: c=d
cookie: e=f

Therefore, HTTP/2 user agents may emit multiple cookie headers. I agree, this doesn't need to be specified by the spec, however, what servers are currently doing - concatenating cookies using a comma, is wrong. They should either reject the request or concatenate the cookies correctly. Doing otherwise may be a potential security issue.

what servers are currently doing - concatenating cookies using a comma, is wrong.

Sort of.  Both specs imply that an HTTP/1.1 (non-HTTP/2 context) servers should only accept a 'single octet string'.
So, what should non-HTTP/2 servers do?  Fail the connection, ignore all cookies lines but the first, or combine them as a HTTP/2 server should?

According to the CGI specification:

The header data can be presented as sent by the client, or can be rewritten in ways which do not change its semantics.  If multiple header fields with the same field-name are received then the server MUST rewrite them as a single value having the same semantics.

In other words, it's definitely wrong for the server to combine them using a comma, and that could change the semantics of the field, which is in violation of the CGI RFC.

There is a good discussion here from Apache: https://bz.apache.org/bugzilla/show_bug.cgi?id=63434

It looks like comma-separated cookie headers might be semantically equivalent, given that:
       token          = 1*<any CHAR except CTLs or separators>
       separators     = "(" | ")" | "<" | ">" | "@"
                      | "," | ";" | ":" | "\" | <">
                      | "/" | "[" | "]" | "?" | "="
                      | "{" | "}" | SP | HT

In summary, unless you use Falcon, a user agent that submits a request to any other server tested here, with multiple cookie headers, will fail to parse correctly by Rack::Request#cookies.
I see three options:

Servers reject such requests (400 bad request).
Servers combine the cookie headers using semi-colons.
Servers combine the cookie header using commas, and Rack::Request.cookies splits based on /[,;]/.

Instead of /[,;]/, maybe /, |;/?  Can't recall if a comma is ok, or it must be a comma & space?  I just started on the Apache thread,  not even sure how long it is...

I don't think it should be sensitive to whitespace, but at least it is one option to consider some kind of "what works in practice", i.e. ", " might be a slightly more robust, non-standard separator.

Not sure what are considered allowable characters in either a cookie key or value (as in <key>=<value>).
I haven't checked unicorn, but I don't recall many (if any) Puma issues related to cookies.

but what to do in the incorrect cases

The expectation that servers will properly handle malicious or malformed requests, and also handle any failure in upstream code  is certainly my idea of fun...

This test suite includes test for unicorn and you can see it's failing.
ile test/rack/conform/cookies.rb it can respond with multiple cookie headers test/rack/conform/cookies.rb:37
	expect 200 to
		be == 200
			✓ assertion passed test/rack/conform/cookies.rb:40
	expect #<Protocol::HTTP::Headers [["Date", "Thu, 06 Jun 2024 16:48:13 GMT"], ["Connection", "close"], ["x-http-cookie", "a=1,b=2"], ["Set-Cookie", "a=1%2Cb%3D2"]]> to
		have {key "x-http-cookie" be == ["a=1;b=2"], key "set-cookie" be == ["a=1", "b=2"]}
			key "x-http-cookie" be == ["a=1;b=2"]
				✓ has key test/rack/conform/cookies.rb:41
				expect ["a=1", "b=2"] to
					be == ["a=1;b=2"]
						✗ assertion failed test/rack/conform/cookies.rb:41
			key "set-cookie" be == ["a=1", "b=2"]
				✓ has key test/rack/conform/cookies.rb:41
				expect ["a=1%2Cb%3D2"] to
					be == ["a=1", "b=2"]
						✗ assertion failed test/rack/conform/cookies.rb:41

The expectation that servers will properly handle malicious or malformed requests, and also handle any failure in upstream code is certainly my idea of fun...

Evidence here suggests most servers are just combining it together with ,.
What will happen, is that those cookies will get parsed incorrectly.
The request may fail, but only if the cookies are critical (e.g. session cookie will be foobar).

Okay, I have one more data point - Node.js appears to do the correct thing - it concatenates cookie headers using a semi-colon.
e.g.
samuel@sakura ~/D/s/r/e/node-cookies (multiple-cookies) [SIGINT]> cat server.js
const http = require('http');

// Create an HTTP server
const server = http.createServer((req, res) => {
  // Get the cookies from the request headers
  const cookies = req.headers['cookie'];

  // Print the cookies to the console
  console.log('Received cookies:', cookies);

  // Send a response back to the client
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Cookies received\n');
});

// Listen on port 3000
const PORT = 3000;
server.listen(PORT, () => {
  console.log(`Server is listening on port ${PORT}`);
});
samuel@sakura ~/D/s/r/e/node-cookies (multiple-cookies)> node server.js
Server is listening on port 3000
Received cookies: cookie1=value1; cookie2=value2

Client:
samuel@Sakura ~/D/s/r/e/node-cookies (multiple-cookies) [7]> curl -v -H "Cookie: cookie1=value1" -H "Cookie: cookie2=value2" http://localhost:3000
* Host localhost:3000 was resolved.
* IPv6: ::1
* IPv4: <IP_ADDRESS>
*   Trying [::1]:3000...
* Connected to localhost (::1) port 3000
> GET / HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/8.7.1
> Accept: */*
> Cookie: cookie1=value1
> Cookie: cookie2=value2
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/plain
< Date: Fri, 07 Jun 2024 02:44:06 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< Transfer-Encoding: chunked
<
Cookies received
* Connection #0 to host localhost left intact

It's not unreasonable to imagine that this scenario would become more common given HTTP/2, and I could imagine load balancers just appending cookie: ... headers to a request to insert extra state tracking.

Ok, I think Puma should change its behavior...

If you agree, I'll also try to fix webrick.

Hmm, it also looks like passenger is doing the correct thing - joining using ;.

Okay, WEBrick is fixed but unreleased.


xcaddy doesn't add the module

Describe the issue
$ xcaddy build --with github.com/greenpau/caddy-auth-jwt
I tried this on several machines (linux/mac) and it just doesn't work...
Configuration
Clean installation of go (even remove ~/go)
Version Information
Provide output of caddy list-modules -versions | grep auth below:
$ ./caddy list-modules -versions | grep auth
http.authentication.hashes.bcrypt v2.4.1
http.authentication.hashes.scrypt v2.4.1
http.authentication.providers.http_basic v2.4.1
http.handlers.authentication v2.4.1
http.authentication.providers.jwt v1.2.7

Expected behavior
expecting the caddy-auth-jwt to be in the list

$  ./caddy list-modules -versions|grep jwt
http.authentication.providers.jwt v1.2.7

Could this be part of the problem?

Ah, https://github.com/greenpau/caddy-auth-jwt/blob/main/plugin.go#L39 - so maybe it is added, however
$ ./caddy validate --config assets/conf/v2/Caddyfile
2021/06/08 14:14:51.349	INFO	using provided configuration	{"config_file": "assets/conf/v2/Caddyfile", "config_adapter": ""}
validate: adapting config using caddyfile: parsing caddyfile tokens for 'route': assets/conf/v2/Caddyfile:25 - Error during parsing: parsing caddyfile tokens for 'jwt': assets/conf/v2/Caddyfile:15 - Error during parsing: unsupported root directive: crypto

That was my original issue, it just looked like the module isn't added.

@sixtus , I just release the latest new version. Try building without the dot.
xcaddy build --with github.com/greenpau/caddy-auth-jwt@latest


Examine volatility control

Would be nice to have some way of minimizing the volatility. Some ideas:

Accept stablecoins (not a big fan of them, but it's an option)
Have a service that immediately sends the coins to an exchange and sells them for fiat (should run your own server for this to make sense I guess)
Use something like detoken/anyhedge

I don't think it makes sense for us to integrate with detoken/anyhedge or similar. There it's better to have the hedging functionality built into the wallet, and I think that's something someone else will develop.
Similarly, automatically transferring to an exchange and selling it could be done with a separate service. Here it might make a bit more sense for us to develop this, but it's a bit away from the core focus of accepting payments.


Bundle Qt4 and build it in Scons

Bundles Qt4 (so we have it for all platforms) and builds it in scons. Qt4 shared objects are also installed for runtime.
To test (on El6, El7, EL8, and Ubuntu):

Build and install
Verify that fusion works, and that Qt shared object files are installed under /opt/google/lib

With qt4 bundled I might have expected this to build in ci, but travis has ubuntu 14...so this should be looked into.


Is it possible yml file can set one question with more than one answer?

Hi guys, I know yml file is set with one question and its respective one answer and it repeat for all input. But is it possible it can also take one question with few answers and not consistent with number of answers?
For example,
- - who is Alex?
  - Alex is my best friend.
  - Alex is a gamer.
- - Who is John?
  - John is a basketball player.
- - Who is Nathan?
  - Nathan is a programmer.
  - Nathan likes to eat.
  - Nathan is a musician.

Then when I ask who is Nathan?. It will reply me those three answer provided in yml file. Thanks

Hi @DanielUnn Right now the only way to do this would be like this:
- - who is Alex?
  - Alex is my best friend.
- - who is Alex?
  - Alex is a gamer.

@gunthercox  okay, but how it will know which answer to reply me when I ask who is Alex? By random?


improve MPI makefile

Summary:
The MPI makefiles currently do not build boost in parallel and they also do not integrate well with cmdstan.
Description:

Builds are slow due to not using parallelization of boost builds.
make/setup_mpi adds to the global LDFLAFS and CXXFLAGS which is problematic for cmdstan.
We should be able to use our standard CC=clang++ in make/local to configure the compiler used for the shared Boost libraries as well. By default it picks something installed on the system somewhat at random and if this is different than the compiler used to compile Stan programs we can achieve segfaults.

Reproducible Steps:
NA
Current Output:
NA
Expected Output:
NA
Additional Information:
Provide any additional information here.
Current Version:
develop

@wds15 is this still an issue?


Allow env variables to override configuration

Hi,
What do you think about giving the highest priority to configuration from env variables?
here the priority is: secrets, credentials, env variables.
This doesn't allow us to use env variables to override configuration in review env or staging env
That would be interresting to use the same priority as in rails for DATABASE_URL for example
What do you think?

ENV should probably be first to allow overrides. 👍 PR?

almost ready

here is the PR: https://github.com/jasoncharnes/pay/pull/74


Fixing updateMany link

Should point to #updatemany, not #updateMany
Describe this PR

Changes

What issue does this fix?

Any other relevant information

Thanks @AndrewRayCode for your contribution


Export to PNG missing metadata

Hi,
Whilst the PNG export works well, it is missing some useful metadata. In particular, it's missing the physical image size (the "pHYs" chunk). Having this chunk present means that desktop publishing systems (even MSWord) can set the "physical" size of the image correctly on the page.
Without this "pHYs" chunk, the app that makes use of the PNG can only guess at the size.
This makes the creation of documents that have multiple diagrams in them (that require higher resolution output than the draw.io default) hard to manage in a way that looks consistent.
Here's a screenshot from TweakPNG showing an example of a PNG that has a "pHYs" chunk present, with correct data. Draw.io's exported PNGs are missing this chunk entirely.

I'm not an expert in these things (sorry!) but to set the "pHYs" value correctly, presumably there needs to be some calculation between the number of pixels (width and height) that the draw.io user sets in the export dialog box, and the "physical" size of the image.
In other words, the pixel width and pixel height can be customised by the draw.io user, but the physical size will never change, no matter what pixel height and pixel width is set. The physical size remains dependant upon the bounds of the image that the user has drawn.
Another way of looking at it is:

The user defines the physical size of the image (by drawing the image to the size they want)
The user defines the number of pixels (pixel width and pixel height) they want the output PNG to have in the Export dialog box
Draw.io takes both of the above values and calculates the correct "pHYs" pixelsize

(Alternatively, the user defines the physical size and the pixel size, and Draw.io calculates the correct number of pixels to use in the exported PNG... this also results in a PNG with the correct metadata, but allows the user to set the DPI rather than pixelwidth/height)

https://twitter.com/floongle/status/1162037679019712512

I'm sure you know this already, but it looks as if the magic should happen here

src\main\webapp\js\diagramly\Editor.js
Editor.prototype.writeGraphModelToPng

I tried to be a good citizen and fix it, but not being a JS wiz, nor much of a bit-fiddler, I stepped back from what would have been many nights of befuddlement!
That said, I'm very pleased to report that your build guide on the wiki was easy to follow for someone who hasn't dealt with this sort of thing in years!
Other than adding the exact ant commands (which admittedly are super-simple) I can't fault it.

You can now set the DPI of PNG exported images in advanced export dialog (File -> Export as -> Advanced...)

Hi,
Just tested it using the latest app version on Windows, v11.2.5.
The DPI dropdown is present, however unfortunately, the pHYs chunk isn't present when creating a png (via File>Export>Advanced). - I checked this using TweakPNG.

Also, the UI doesn't work in an intuitive way. If you set the DPI to a different value, there's no reason for the Zoom level to change in sympathy. It's the pixel width and height that should change.
I've attached the 100 DPI and 300 DPI examples that I generated below, in case they are of help.

Please could this be reopened?

Bug fixed, it will be available in the next release
Currently, you can try DPI on draw.io
The logic of changing Zoom level with DPI is the following:
DPI only tells how many pixels in an inch, so if we only set the DPI info in the PNG metadata, the resulting image dimensions will remains the same on the screen but changes when printed.
But since DPI is mainly for printing, then when an image DPI is increased from 96 DPI (default) to 300 DPI, the image is better scaled 300% to compensate.
Anyway, it is only a UI hint, you can change the zoom level to 100% manually after changing DPI
The following are two PNGs with different DPI that prints to the same area since we changed the Zoom level
100 DPI:

300 DPI:

@ashrafteleb I'm not sure about how exactly the PNG metadata work but when I upload an image to GitHub, it can usually detect whether it's high-res or low-res and generate appropriate Markdown. Unfortunately, I'm not seeing this behavior with PNG exports from diagrams.net.
For example, I took a screenshot on macOS with a Redina display, and it encoded PPI into the image:

When I upload this screenshot to GitHub, it is smart enough to use  instead of just ![alt](src) and I get this nice rendering:

Markdown source for this:

Without this trick, the rendering would be ugly:

When I try something similar with diagrams.net imports, I can see that some DPI metadata is in the image:

However, uploads to GitHub still look ugly:

The correct rendering of the first image should be this (I've manually converted it to the  syntax):

So something is probably wrong with the metadata.
BTW, this is how the Export as... > Advanced dialog looked like when I did the 300 DPI version:

Another example:
I've tried creating a similar image in Excalidraw with https://github.com/excalidraw/excalidraw/pull/3530 applied (works in this preview version: https://excalidraw-git-fork-tomashubelbauer-master-excalidraw.vercel.app/. I've exported in "2x" resolution and uploaded to GitHub:

Similar test and a 200 DPI export from diagrams.net:

Markdown source for both:

--- vs. ---

![DPI test – 200 DPI](https://user-images.githubusercontent.com/101152/124161061-3f339d80-da9d-11eb-8481-ac7f4c84d717.png)

One last desperate attempt was to set DPI to 200 but reset Zoom back to 100:
https://user-images.githubusercontent.com/101152/124161638-f16b6500-da9d-11eb-924e-136833f73ef1.mov
Didn't help either (correct physical resolution but blurry, Markdown is still not ):

There's also File > Embed > Image... where I can check "Retina". That indeed generates a markup that is "correct":
<img src="data:image/png;base64,[encoded data, 9184 characters]" width="121" height="121" style="max-width:100%;" />
But GitHub doesn't render it (and I don't want data encoded into data:image/png;base64 anyway).

Unfortunately, it's a GitHub issue, they only add the width with 144 DPI. Export from draw.io with custom DPI of 144 and it will be recognized by GitHub similar to the following image

@ashrafteleb Aha! That's a great tip, thanks!


make individual thematic search result types 'optional'

based on what we talked about at #cfasummit, should we pick a single thematic topic (ie: crime or something else) to start with for the rewrite?

also, should we continue to point at your AWS instance for now?  i'd also be happy to set up some free esri hosted services with a couple of your shapefiles if you want to test something independent.

I think just picking one topic, like crime, is good way to move forward. Lets get that working, and then start to figure out ways to more easily scale out to more topics. Lets continue to use the City of Asheville's AWS instance for now to get all the functionality down, and we can try to see how it'll work with other datasets. If we design it right it should just work.


Update adopters.md to include Qualys

added register entry for Qualys.
[Title: created a register entry for Qualys]
[ Added some information about Qualys Gateway Service which uses Flatcar Container Linux.]
How to use
[ Please approve this request to add Qualys entry to adopters.md ]
Testing done
[Not relevant]
[nothing else relevant, just editing a file]

 N: Qualys, Inc
  D: Qualys Gateway Service uses Flatcar Container Linux as a base for its container-based appliance, which is mainly focussed on proxy and caching services, serving other Qualys sensors such as Cloud Agent, Scanner and Passive Sensor. QGS also serves Qualys modules including VMDR, Patch Management, Policy Compliance, EDR, FIM and XDR.
  L: https://www.qualys.com/documentation/#qualys-gateway-service
  C<EMAIL_ADDRESS>

Did you close the PR on purpose? We would be very much interested in merging this.


Question: How can I skip loading the pretrained weights?

What happened?
So I can load the model with the pretrained weights, but what if I want to load it without the pretrained weights? I want to return just the model structure, uninitialized preferably, and then load my own weights into it using model.load_weights.
Relevant code
bit_model_url = "https://tfhub.dev/google/bit/s-r101x1/1"
model = hub.KerasLayer(bit_model_url)
model.load_weights('temp.h5')

Relevant log output
bit_model_url = "https://tfhub.dev/google/bit/s-r101x1/1"
model = hub.KerasLayer(bit_model_url)
model.load_weights('temp.h5')

tensorflow_hub Version
0.12.0 (latest stable release)
TensorFlow Version
2.8 (latest stable release)
Other libraries
No response
Python Version
3.x
OS
Linux

Currently there is no support for loading model structure without loading the pretrained weights. The underlying mechanism for loading models in hub.KerasLayer and hub.load comes from the core TF library, so it may make sense to raise the question of whether any work-around exists for tf.saved_model.load() on the TF repo.

Hi, @hyang0129
As @akhorlin mentioned above we don't have an option to load pre-trained model without pre-trained weights and biases because all TF Hub models are pre-trained models and there will be pre-trained weights and biases with it so if you're looking to build your model with own model layers and want to train it, you can do it with the help of Keras API and you'll have to set trainable parameter to True in hub.KerasLayer() like below in that only pre-trained model parameters won't be trained and only newly added model layers parameters will be trained and you can save that entire model can be saved in two different file formats (SavedModel and HDF5) and to restore model weights you can use model.load_weights() you can refer our official documentation and article about Transfer Learning with Tensorflow Hub :
model = hub.KerasLayer(bit_model_url, input_shape=[],
                           dtype=tf.string, trainable=True)

Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ?
If you have any further questions or need any further assistance, please let us know ?
Thank you!

Hi, @hyang0129
Closing this issue due to lack of recent activity for couple of weeks. Please feel free to reopen the issue or post comments, if you need any further assistance or update
Thank you!


Bump CUDA version to 11 for compatibility with gcc 9.x?

CUDA 11 has been released, and is compatible with devtoolset-9. There is currently logic to (correctly) disable CUDA 10.2 when gcc 9.x is present (see 67240b9610649b61d77fdfdfbb2b46fdda5fa3d6). Does it make sense to roll the CUDA version to 11 in the 2021 config?

Hi @adamlichtl indeed I'm planning to update as soon as the nvidia docker images get released: https://hub.docker.com/r/nvidia/cudagl/tags
Not sure what the ETA is for these though.

The main cuda docker images are now available for cuda-11, but the cudagl is not ready yet, I'm hearing it should happen soon though.

Cross-linking with the corresponding NVidia issue: https://gitlab.com/nvidia/container-images/cuda/-/issues/90 images are coming soon!

Thanks for the update!


Simple dex

Description
This contract is based on the Balancer design - automated market maker with an underlying multi-asset LP.
A must-read before reviewing is at least glancing at the Balancer whitepaper: https://balancer.fi/whitepaper.pdf
There is one pool with three PSP22 game reward tokens + native AZERO token, with equal weights all. Swaps can be done between all pairs in the pool (see Out-Given-In).
Liquidity providing works for single (native) asset deposits / withdrawals, as the Foundation will be the sole liquidity provider for the pool.

native_deposit : based on the the Single-Asset Deposit from the whitepaper
native_withdrawal: based on the Single-Asset Withdrawal but expressed for the number of redeemed pool shares (P_redeemed in the paper).

I don't want to be The Party Pooper but I think we should extract the wAZERO commit to a separate PR and give it the review it deserves, unit tests etc.
Also, since it will almost certainly be present in every execution path (i.e. people will have to use wAZERO to interact with other dApps), should we consider making it a pallet instead? Would that improve the performance?

I don't want to be The Party Pooper but I think we should extract the wAZERO commit to a separate PR and give it the review it deserves, unit tests etc.
Also, since it will almost certainly be present in every execution path (i.e. people will have to use wAZERO to interact with other dApps), should we consider making it a pallet instead? Would that improve the performance?

IMHO overkill - this token differs in 2 functions (maybe 20 lines) from a vanilla PSP22, all that needs to be reviewed is wrap and unwrap.


Broken link

The link in the readme on the heading contributing is broken. Should probably just add contribution guidelines :)

Fixed


Create CONTRIBUTING.md

What this PR does / why we need it:
Adds contributing guidelines to the project.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer (optional):

.. mostly copied from multus.


fix ci action warnings

likely needs upgrading the pinned java and checkout actions
https://github.com/ockam-network/ockam/actions/runs/320647290

fixed in #531


PDF file of schematic and pcb layout

Hi @bdring
Can you share schematic and pcb layout of your latest 6 pack board? As I can't open files given. I use EasyEDA for pcb designing. I want to make some changes as per my machine and taste.

Download Diptrace and try it out 30 days. Opne the file and then export as a file you want.

Added

Thanks a lot. :)


kele-get output does not respect "original" YAML multi-line strings

Consider the following output:
> kubectl get configmap -n kube-system coredns -o yaml
apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf {
           max_concurrent 1000
        }
        cache 30
        loop
        reload
        loadbalance
    }
kind: ConfigMap
metadata:
  creationTimestamp: "2024-06-02T13:01:05Z"
  name: coredns
  namespace: kube-system
  resourceVersion: "216"
  uid: 20648886-7d37-45d6-bfd4-cf3ab1cfcc50

The equivalent output w/ kele-get is:
kind: ConfigMap
apiVersion: v1
metadata:
  name: coredns
  namespace: kube-system
  uid: 20648886-7d37-45d6-bfd4-cf3ab1cfcc50
  resourceVersion: 216
  creationTimestamp: "2024-06-02T13:01:05Z"
data:
  Corefile: ".:53 {\n    errors\n    health {\n       lameduck 5s\n    }\n    ready\n    kubernetes cluster.local in-addr.arpa ip6.arpa {\n       pods insecure\n       fallthrough in-addr.arpa ip6.arpa\n       ttl 30\n    }\n    prometheus :9153\n    forward . /etc/resolv.conf {\n       max_concurrent 1000\n    }\n    cache 30\n    loop\n    reload\n    loadbalance\n}\n"

Wonder if emacs-libyaml would make a better alternative? Worth experimenting with.


Add a recommended custom instruction on README

Now that OpenAI has Custom Instructions (a persistent instruction for new conversations), we should show a recommended custom instruction on README.
Currently, I have this:
When editing a file with 50+ lines with Kaguya, use search and replace, not updateWholeFile. Confirm with me before you edit a file.

When you have output from Kaguya, there's no need to repeat everything from there. Instead, you can summarize it concisely.

When you want to use executeCommand in a subdirectory, make sure to cd there first every time.

I might refine it as I go, but it should be good enough for now.

Please assign this to me. Anything else you want to add to Custom Instructions?

No I think they're ok as is for now!


Complete translation of Whitepaper and Yellow paper to Vietnamese.

Based my weight on other works on the same subject that I saw in the contribution list

Thanks for the contribution. Nice to see Vietnamese.
30 weights at $400 USD implied current value is a request for $12,000 USD for these translations.
That's pretty high. Considering anyone could go get a professional translation done for $400. https://github.com/MorpheusAIs/Docs/blob/main/English Guides/Code Contributor Weights Guide.md
Please update this to 1 weight instead of 30. Or withdraw the PR. Thanks.

Looks like someone has already completed this translation for 1 weight.

Have almost all the pictures translated could u use them?
Please let me know and I would accept any weight for it


Provide definitions for MDN's "support labels"

See https://github.com/mdn/pab/issues/33
Basically, do we provide concrete definitions of support labels we use such as "Basic support"? Write them if not.
Acceptance criteria

[ ] Research which labels we use, and if we have definions for them on MDN, or on the BCD repo say.

[ ] Write definitions if needed.

@chrisdavidmills This was "Continue in next sprint" at the end of Fantasia, but was not added to any later sprint. Should I put it in the Parking Lot?

We can close this. I investigated it, and the conclusion reached was that the main problem label we needed to define was "Basic support" — this then prompted the discussion that led to @Elchi3 submitting a PR to remove the "Basic support" label from the BCD tables.


Trim the branch prefix from action.GetBranch

#13882 has revealed that the refname of an action is actually only a
refname pattern and necessarily a branch. For examplem pushing to
refs/heads/master will result in action with refname refs/heads/master
but pushing to master will result in a refname master.
The simplest solution to providing a fix here is to trim the prefix
therefore this PR proposes this.
Fix #13979
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

@zeripath Please fix lint :)

Codecov Report

Merging #13981 (339c6d4) into master (729f0f5) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #13981      +/-   ##
==========================================
- Coverage   42.23%   42.21%   -0.03%
==========================================
  Files         710      710
  Lines       77233    77233
==========================================
- Hits        32623    32606      -17
- Misses      39245    39262      +17
  Partials     5365     5365

Impacted Files
Coverage Δ

models/action.go
50.71% <0.00%> (ø)

modules/util/timer.go
42.85% <0.00%> (-42.86%)
:arrow_down:

models/repo_mirror.go
2.38% <0.00%> (-11.91%)
:arrow_down:

modules/cron/tasks_basic.go
87.35% <0.00%> (-3.45%)
:arrow_down:

modules/log/event.go
59.90% <0.00%> (-1.89%)
:arrow_down:

services/mirror/mirror.go
15.78% <0.00%> (-1.11%)
:arrow_down:

services/pull/check.go
51.09% <0.00%> (-0.73%)
:arrow_down:

services/pull/pull.go
40.68% <0.00%> (-0.50%)
:arrow_down:

modules/git/blame.go
67.14% <0.00%> (+1.42%)
:arrow_up:

modules/process/manager.go
75.00% <0.00%> (+2.50%)
:arrow_up:

... and 1 more

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 729f0f5...339c6d4. Read the comment docs.

Please send backport


Closed captions button does not show up & no default track available

Browser: Version 59.0.3071.115 (Official Build) (64-bit)
OS: Win 10 - 64 Bit
Clappr Version: 0.2.71
Hi,
I have tested the closed captions feature with Arabic WebVTT subtitles and i got the following issues:

"CC" button is hidden when i have checked the CSS props with developer tools i found that is caused by display: none, When removing this none value it's working fine (Check screenshot).
I have tried to set the Arabic subtitle as a default subtitle by adding default: true as mentioned in the W3 website, But i got no luck. My goal is to set this subtitle as auto-selected and viewed when the clappr initialized.

I have tried to change the vertical alignment of the subtitle but i couldn't even with the ::cue CSS props, I could change the font-family and color, I hope if you can support changing the background color, opacity and vertical alignment.

My code:
        var playerElement = document.getElementById("playerhubllxgAnwSY");
        var player = new Clappr.Player({
            source: 'http://<IP_ADDRESS>:8081/vod/_definst_/mp4:test.mp4/playlist.m3u8',
            autoPlay: true,
            width: 720,
            watermark: "img/vodu.png", position: 'top-right',
            playback: {
                preload: 'metadata',
                controls: false,
                playInline: true,
                recycleVideo: Clappr.Browser.isMobile,
                externalTracks: [
                  {lang: 'ar', label: 'Arabic', src: 'http://<IP_ADDRESS>/test.webvtt', kind: 'subtitles', default: true}
                ]
              }
        });

By default, CC is set to disabled. There is no "autoselect" or "selected by default" feature implemented yet. (so default: true has no effect. Thought it should be possible to implement such feature. I will try to have a look).
About CC button not showing, could you try to add the crossOrigin parameter ? :
var playerElement = document.getElementById("playerhubllxgAnwSY");
var player = new Clappr.Player({
    source: 'http://<IP_ADDRESS>:8081/vod/_definst_/mp4:test.mp4/playlist.m3u8',
    autoPlay: true,
    width: 720,
    watermark: "img/vodu.png", position: 'top-right',
    playback: {
        preload: 'metadata',
        controls: false,
        playInline: true,
        recycleVideo: Clappr.Browser.isMobile,
        crossOrigin: 'anonymous', // Required if track loaded from another domain
        externalTracks: [
          {lang: 'ar', label: 'Arabic', src: 'http://<IP_ADDRESS>/test.webvtt'}
        ]
      }
});

@kslimani hello.
I wanna to ask if we can choose one track as the default track showing when play video?

@zy87302728 this feature is not implemented yet, but it should be easy to do. (an additional configuration parameter, if set with lang value, will attempt to select and enable CC when video start to play).

@kslimani  the code video.textTracks[0].mode = 'showing'; does not worked. I wanna to know how to set the additional configuration.
by the way If there is some parameter to adjust the height of the subtitle?

This feature require the following changes :

add a new function in all supported playbacks to get a track ID by language code (for example getClosedCaptionsTrackIdByLang(lang)
in the closed caption plugin, listen playback container "playing" event and use the new function to attempt to get track ID using lang value from a configuration option. If it successfully get a track id then use container closedCaptionsTrackId setter to enable track.

@zy87302728 to the code video.textTracks[0].mode = 'showing'; work the video must be played, so I did this way:
var playerElement = document.getElementById("my_player");
var player = new Clappr.Player({
    source: 'my_url/my_source.mp4',
    ..., //my other options
    externalTracks: [{
            lang: 'pt-BR', //come to Brazil!
            label: 'Subtitles',
            src: "my_url/my_subtitle.vtt",
            kind: 'subtitles'
    }],
    events: {
            onPlay: function() { $('video')['0'].textTracks[0].mode = 'showing'; },
    },
});

It worked for me! I hope it helps others.
Thanks Clappr!

@areeb111 : can you also try to add crossOrigin: 'anonymous' property value in your playback configuration; this may explains why CC button is not displayed. (an example usage is available here).

@zy87302728 sure it can. If you have two or more subtitles track it's better use this code:
           onPlay: function() {                var isShowing = false;               $.each($('video')['0'].textTracks, function(idx,val){                 if($('video')['0'].textTracks[idx].mode == 'showing'){                   isShowing = true;                 }               });               if(!isShowing){                 $('video')['0'].textTracks[0].mode = 'showing';                }             },
The code I did before was forcing track 0 to be always showing, then when you choose another track you got two tracks displaying, it's really a mess on the screen.
The code above will prevent this to happen, and only displays the track 0 if there is no other track selected. The only trouble is if you pause, disable the tracks and then press play again it will enable the track 0. But if you don't pause you can disable tracks and change tracks for good.

var player = new Clappr.Player({
source: "playlist.m3u8",
parentId: "#player",
poster: "/newage/oleposs.png",
autoplay: true,
playback: {
    preload: 'auto',
    controls: false,
    playInline: true, // allows inline playback when running on iOS UIWebview
    crossOrigin: 'use-credentials',
    recycleVideo: Clappr.Browser.isMobile, // Recycle <video> element only for mobile. (default is true)
    triggerFatalErrorOnResourceDenied: true, // Triggers playback fatal error if resource is denied. (default is false)
    externalTracks: [ // Add external <track> (if supported by browser, see also https://www.w3.org/TR/html5/embedded-content-0.html#the-track-element)
      {lang: 'tr', label: 'Turkce', src: 'alt.vtt', kind: 'subtitles'},
    ],
  },
events: {
            onPlay: function() { $('video')['0'].textTracks[0].mode = 'showing'; },
    },
});

This worked for me. Thanks for informations

Hey @kslimani I seem to be facing the same issue as @areeb111 in the opening post. My CC button has display set to none. Enabling that manually works well. What am I doing wrong?
As you said, crossorigin might help, but, I'm loading subtitles from my own website. I still added the attribute, but, that didn't help. The CC button stays hidden.
This is my config:
players.forEach(player =>
  {
    var clapprConfig =
      {
        width: '100%',
        height: '100%',
        source: player.getAttribute('src'),
        poster: player.getAttribute('poster'),
        playback:
          {
            preload: 'none',
            playInline: true,
            disableContextMenu: true,
            crossorigin: 'anonymous',
            externalTracks: [
              {
                lang: 'en',
                label: 'English',
                kind: 'subtitles',
                src: player.getAttribute('subtitles'),
              }
            ]
          },
        plugins: [LevelSelector],
        levelSelectorConfig:
          {
            title: 'Quality',
            labelCallback: function(playbackLevel)
              {
                return playbackLevel.level.height+'p';
              }
          }
      }
var clappr = new Clappr.Player(clapprConfig);
clappr.attachTo(player);

The live demo can be checked here: https://5fc2a909639e170007e19aa3--hrishikeshk.netlify.app/projects/carry-on-bot/ (scroll to the bottom of the page).


[Fix] Bottom OptionBar is blocked when page length is not scrollable #87 FIxed

updated buid.gradle to latest configuration and update classpath also corect pubsec.yml fonts also fixed minscroll and maxscroll

Thank you very much for working on this @Aman-786

Please review it so that it merge


Query builder pagination is broken

Laravel Version: 8.21
PHP Version: 7.3
Database Driver & Version: mysql 8.0

Description:
I did a big upgrade from laravel 5.8 to laravel 8.0
I have a Collection and Resource that were working fine on 5.8
my controller:
$data = $this->ad->getAll();
return new AdCollection($data);

where $this->ad is a repository that does a BIG query using the query builder.
at the end of the query builder i'm doing this:
->orderBy('updated_at')
->paginate(10);

and if i dd the result, it's a LenghtAwarePagination with items
if i dd a single element from my Resource it gives me the correct information
IF i instead do this:
->orderBy('updated_at')
->get()

it shows me the correct response but WITHOUT the pagination
so that's why it appears that the pagination is not working... or something regarding the Resource?
the error at the end is this: "Undefined property: stdClass::$resource""
i don't even have a $resource variable anywhere...
The logs are showing this:
[2021-01-05 16:14:25] local.ERROR: Undefined property: stdClass::$resource {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$resource at /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php:29)
[stacktrace]
#0 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php(29): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Undefined prope...', '/var/www/og_pla...', 29, Array)
#1 [internal function]: Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse->Illuminate\\Http\\Resources\\Json\\{closure}(Object(stdClass), 0)
#2 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(630): array_map(Object(Closure), Array, Array)
#3 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Support\\Collection->map(Object(Closure))
#4 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pagination/AbstractPaginator.php(738): Illuminate\\Pagination\\AbstractPaginator->forwardCallTo(Object(Illuminate\\Support\\Collection), 'map', Array)
#5 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php(30): Illuminate\\Pagination\\AbstractPaginator->__call('map', Array)
#6 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Support/helpers.php(263): Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse->Illuminate\\Http\\Resources\\Json\\{closure}(Object(Illuminate\\Http\\JsonResponse))
#7 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php(33): tap(Object(Illuminate\\Http\\JsonResponse), Object(Closure))
#8 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(132): Illuminate\\Http\\Resources\\Json\\PaginatedResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#9 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(112): Illuminate\\Http\\Resources\\Json\\ResourceCollection->preparePaginatedResponse(Object(Illuminate\\Http\\Request))
#10 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(765): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse(Object(Illuminate\\Http\\Request))
#11 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(752): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Origin\\Http\\Resources\\Ad\\AdCollection))
#12 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(692): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Origin\\Http\\Resources\\Ad\\AdCollection))
#13 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#14 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#16 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(63): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#18 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), '60', '1')
#19 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(694): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#23 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(669): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#24 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#25 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#26 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#27 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#28 /var/www/og_platform-originplatform/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#32 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /var/www/og_platform-originplatform/vendor/fruitcake/laravel-cors/src/HandleCors.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\\Cors\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /var/www/og_platform-originplatform/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 /var/www/og_platform-originplatform/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#48 /var/www/og_platform-originplatform/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#49 {main}
"}
[2021-01-05 16:14:25] local.ERROR: Undefined property: stdClass::$resource

Steps To Reproduce:

Return a query builder result collection on a ResourceCollection from your controller

Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!

Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!

just FYI someone also opened a ticket for doctrine
https://github.com/laravel-doctrine/orm/issues/444

just FYI someone also opened a ticket for doctrine
https://github.com/laravel-doctrine/orm/issues/444

Same problem. I just using QueryBuilder as $resource and paginate this:
class BarCollectionSearchResource extends ResourceCollection
{
    protected YandexSearchDTO $dto;

    public function __construct(YandexSearchDTO $dto)
    {
        $this->dto = $dto;

        parent::__construct($this->getResource());
    }

    public function toArray($request)
    {
        return $this->resource->map(function(stdClass $bar) {
            $bar = (array) $bar;

            return [
                'url' => \Base_Url::toBarCard($bar),
                'name' => $this->setHighlight($bar['name']),
                'address' => $this->setHighlight($bar['address']),
                'vip' => \Bar_Service_Tariff::isActive($bar['id']),
                'renamed_to' => $this->setHighlight($bar['renamed_to']),
                'partner' => \Partner_Service_Main::normalizePartnerName(\Bar_Helper_Bron::getPartnerForButton($bar))
                //etc transformations
            ];
        });
    }

    protected function getResource(): AbstractPaginator
    {
        $builder = DB::table('bar_struct as s')
            //some of joins
            ->select() //some of selects
            ->where() //some of where
            ->groupBy('s.id');

        return $builder->paginate($this->dto->perPage, ['*'], 'page', $this->dto->page);
    }

    protected function setHighlight(string $where = null):? string
    {
 	return preg_replace('~(' . $this->dto->query . ')~iu', "<em>$1</em>", $where);
    }
}

But got error Undefined property: stdClass::$resource in controller:
class YandexSearchController extends Controller
{
    public function indexAction(Request $request)
    {
        return new BarCollectionSearchResource(
            new YandexSearchDTO($request)
        );
    }
}


Workflow's steps doesn't preserve order

References

Fixes #8419

Description
The configuration file workflow.xml contains workflows with steps, but once readed the steps' ordering is not preserved.
Instructions for Reviewers
List of changes in this PR:

Changed with LinkedHashMap inside Workflow.java in order to preserve order;
Added some new tests to verify that the order is correct.

Checklist

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
[x] My PR passes Checkstyle validation based on the Code Style Guide.
[x] My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
[x] My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
[x] If my PR includes new, third-party dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR modifies the REST API, I've linked to the REST Contract page (or open PR) related to this change.

If I understand this patch, it actually addresses the order of roles assigned to the steps of a workflow.
Workflow holds Steps in a List, so they will always be produced in entry order when the collection is traversed.  But Workflow.getRoles collects Roles of the flow's Steps in a Map, and various Map implementations may traverse their content in different or indeterminate orders.  LinkedHashMap preserves entry order, so with this patch the collection returned by getRoles will iterate in order as the Steps were defined in the XML document.
Have I understood the intent of the patch?

If I understand this patch, it actually addresses the order of roles assigned to the steps of a workflow.
Workflow holds Steps in a List, so they will always be produced in entry order when the collection is traversed. But Workflow.getRoles collects Roles of the flow's Steps in a Map, and various Map implementations may traverse their content in different or indeterminate orders. LinkedHashMap preserves entry order, so with this patch the collection returned by getRoles will iterate in order as the Steps were defined in the XML document.
Have I understood the intent of the patch?

Yes, the order of the computed Roles, is not preserved once the Map has been populated because of the implementation used HashMap vs LinkedHashMap.
The main problem was inside the org.dspace.app.rest.link.CollectionResourceWorkflowGroupHalLinkFactory.addLinks(CollectionResource, Pageable, LinkedList<Link>), here we are linking to a workflowGroups by traversing the roles' Map, and the order was not preserved.


github.io links -> github.io pages

As an author or reviewer using the checklist generator,
When I click on the name of a method, I want to go to the page for the corresponding standard on the github.io site instead of going to the corresponding standard in on the github.com repo.
Before attempting this issue, please resolve issue 28: https://github.com/acmsigsoft/EmpiricalStandards/issues/28

All of the relative links in the checklists (e.g. describes in detail what, where, when and how data were collected (see the Sampling Supplement) should also point to the pages on gtihub.io rather than the markdown files in the repo.

As an author or reviewer using the checklist generator,
When I click on the name of a method, I want to go to the page for the corresponding standard on the github.io site instead of going to the corresponding standard in on the github.com repo.

This should be done easily.

All of the relative links in the checklists (e.g. describes in detail what, where, when and how data were collected (see the Sampling Supplement) should also point to the pages on gtihub.io rather than the markdown files in the repo.

So, you mean when someone accesses the standards/supplements from the repo, links should point to markdown files in the repo, but while using the checklist generator, links should point to gtihub.io instead?

Yes - if you're on github.io, the links should point to other html pages on github.io. If you're looking at a standard on the repo, the links should point to other markdown files on the repo.

I think this issue is now fixed everywhere. We can reopen if something is still missing.


Create codeql-analysis.yml

Objective
Understand github code analyzer
Description
Enable using github code analyze.

@Mazon Closing as SonarCloud already handles this.


OSX Support

Are you planning OSX support?

Currently OSX is not our primary focus area, but I hope that we will support it soon. (Although I think it should work on Mac. I'll give it a try when I will have time and access to an OSX machine.)

Thanks for the reply, I will try it under OSX in the following weeks!

We have tried it on a Macbook. After several minor issue, the build of the UI parts completely stucked. It seems it needs too much effort for now... Sorry for the false information.


feat(hits): Add BEM styling to the hits widget

Add BEM classes to the hit list and each hit element
Add one when the list is empty
Renamed the key from hit to item in CSS class, template and
transformData to stay consistent with other widgets
Updated the doc accordingly, with styling examples
Updated tests
Updated the bemHelper to be able to use a modifier without an
element (ais-hits__empty)

BREAKING CHANGE: The hit template and transform data key is renamed
from hit to item to stay consistent with the other widgets

One comment, otherwise looks great :)


Bug/Radial linear scale grid get correct options at index

Resolves #10007

Can't seem to get it to work so that indexable options don't break while sciptable options work correctly

A backup branch of the current 3.9 state has been made if any bugfixes need to be done:
https://github.com/chartjs/Chart.js/tree/3.9
Is there anything else we need to do before we can merge this so we can start adding the breaking changes to the migration guide?

I don't think there's anything else to do


Add info for application insights

Adds instructions for using app insights

Hey we merged this through Justin's PR #28


Issues related to "auto start" of an application with vsjitdebugger.exe

This page does not address issues with debugging an application that has been started by modifying the registry (i.e., /Computer/HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Microsoft/Windows NT/CurrentVersion/Image File Execution Options; add application as a folder and within it added a debugger-folder with vsjitdebugger.exe as the "Data value") and spawning the application from another application (e.g. VS while debugging another application which performs the spawn).
Is this called Auto-Start?
In what directory vsjitdebugger execute execute application?
How to ensure the .pdb file is available and loaded by vsjitdebugger for the indicated application?
What privileges will vsjitdebugger need to execute with?
How can one tell what command-line arguments have been provided?
Etc.
This is the in between use case, but you don't address it.
Note - I have vsjitdebugger spawning,  but cannot determine if my application has been loaded into vsjitdebugger.  It indicates I cannot "attach" to run, but this is not an "attach" situation.  Very confusing.

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

ID: 975e5ca6-98b1-0e2e-1c57-364fe1e13337
Version Independent ID: 1b18b1df-023b-3c13-f95e-e0166ee7f704
Content: Debug using the Just-In-Time Debugger - Visual Studio (Windows)
Content Source: docs/debugger/debug-using-the-just-in-time-debugger.md
Product: visual-studio-windows
Technology: vs-ide-debug
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@SoftwareSculptor -- thank you for your feedback and questions, and sorry for the delay in responding.  Please consider these resources:

Visual Studio on Microsoft Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

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


can't install cmake

when run the vcpkg
Failed to do post-extract rename-in-place.
fs.rename(D:\vcpkg\vcpkg\downloads\tools\cmake-3.10.2-windows.partial, D:\vcpkg\vcpkg\downloads\tools\cmake-3.10.2-windows, operation not permitted)

same here

Same here; a temporary workaround is to rename manually cmake-3.10.2-windows.partial
to cmake-3.10.2-windows and re-run the vcpkg command.

same here, but for git instead of cmake...

@repex That worked for me! How did you figure that out?

The error message hinted that the rename operation was not successful, so i tried to perform it manually, and it worked.

I had this too (with cmake) and I simply repeated the install command (was trying to install boost-python) and it worked the second time.

Thanks for posting this issue. Please open a new issue if this is still a problem for you.

In my case it was the virus scanner that blocked the operation. After disabling the virus scanner, it worked.

This solve my problem.

We also had this issue in our company. After adding an exception to our antivirus solution.


Do not print error message if pod not found when getting task location

Do not print error message if pod not found when getting task location

Release note

Key changed/added classes in this PR

KubernetesTaskRunner

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[x] been tested in a test Druid cluster.

could we still do a log.info when KubernetesResourceNotFoundException occurs. It seems useful to have trace of that exception though it need not logged as an error.


TypeError: Cannot assign to read-only property 'validated'

Giving an error when I try to swipe to the left 4times and 3times to the right both android and ios

Version 2.0.0 has been released, try it out with the new version.
Currently, there is no documentation for version 2.0.0, but I will update it in the next few days. In the meantime, you can follow the example code if you want to use the library early.


[BUG] Cooldown before Ability doesn't work anymore

As of 4.8.9 it doesn't work anymore!

It checks if there are any active cooldowns in the lane.

Ohh, ok, then its good, it was what i indended to do, ok i will watch it and look if it works...
So now it triggers the Cool down only if there is not already one? If so perfect! :)

Yes it does

Yeah, well was to fast then, sorry, only saw that things was triggered without... :)


Deadlock creating a new window on the IPC handler on Windows

Describe the bug
On Tauri, we allow users to create a window from a IPC handler. This results in a deadlock on Windows on the create_controller function (the second closure is never called). This might be an issue on the windows crate instead.
Steps To Reproduce
I've changed the multi_window example to reproduce this issue (note that I'm not using the event loop proxy to send a message because Tauri needs a response from the event loop (the window id).
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

fn main() -> wry::Result<()> {
  use std::collections::HashMap;
  use std::ops::Deref;
  use wry::{
    application::{
      event::{Event, WindowEvent},
      event_loop::{ControlFlow, EventLoop, EventLoopProxy, EventLoopWindowTarget},
      window::{Window, WindowBuilder, WindowId},
    },
    webview::{WebView, WebViewBuilder},
  };

  #[derive(Clone)]
  enum UserEvents {
    CloseWindow(WindowId),
    NewWindow(),
  }

  fn create_new_window(
    title: String,
    event_loop: EventLoopWindowTarget<UserEvents>,
    proxy: EventLoopProxy<UserEvents>,
  ) -> (WindowId, WebView) {
    let window = WindowBuilder::new()
      .with_title(title)
      .build(&event_loop)
      .unwrap();
    let window_id = window.id();
    let event_loop_ = event_loop.clone();
    let handler = move |window: &Window, req: String| match req.as_str() {
      "new-window" => {
        //let _ = proxy.send_event(UserEvents::NewWindow());
        create_new_window("something".into(), event_loop_.clone(), proxy.clone());
      }
      "close" => {
        let _ = proxy.send_event(UserEvents::CloseWindow(window.id()));
      }
      _ if req.starts_with("change-title") => {
        let title = req.replace("change-title:", "");
        window.set_title(title.as_str());
      }
      _ => {}
    };

    let webview = WebViewBuilder::new(window)
      .unwrap()
      .with_html(
        r#"
          <button onclick="window.ipc.postMessage('new-window')">Open a new window</button>
          <button onclick="window.ipc.postMessage('close')">Close current window</button>
          <input oninput="window.ipc.postMessage(`change-title:${this.value}`)" />
      "#,
      )
      .unwrap()
      .with_ipc_handler(handler)
      .build()
      .unwrap();
    (window_id, webview)
  }

  let event_loop = EventLoop::<UserEvents>::with_user_event();
  let mut webviews = HashMap::new();
  let proxy = event_loop.create_proxy();

  let new_window = create_new_window(
    format!("Window {}", webviews.len() + 1),
    event_loop.deref().clone(),
    proxy.clone(),
  );
  webviews.insert(new_window.0, new_window.1);

  event_loop.run(move |event, event_loop, control_flow| {
    *control_flow = ControlFlow::Wait;

    match event {
      Event::WindowEvent {
        event, window_id, ..
      } => match event {
        WindowEvent::CloseRequested => {
          webviews.remove(&window_id);
          if webviews.is_empty() {
            *control_flow = ControlFlow::Exit
          }
        }
        WindowEvent::Resized(_) => {
          let _ = webviews[&window_id].resize();
        }
        _ => (),
      },
      Event::UserEvent(UserEvents::NewWindow()) => {
        let new_window = create_new_window(
          format!("Window {}", webviews.len() + 1),
          event_loop.clone(),
          proxy.clone(),
        );
        webviews.insert(new_window.0, new_window.1);
      }
      Event::UserEvent(UserEvents::CloseWindow(id)) => {
        webviews.remove(&id);
        if webviews.is_empty() {
          *control_flow = ControlFlow::Exit
        }
      }
      _ => (),
    }
  });
}

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform and Versions (please complete the following information):
OS:
Rustc:
Would you assign yourself to resolve this bug?

[ ] Yes
[x] No

Additional context
Add any other context about the problem here.

I'm pushing the approach to Tauri so this is not a priority.

This looks like a wry issue not tao, right? Why was it transferred from wry?

My bad, I'll transfer it back. I confused with another issue.


Lavalink Music + Other Changes

Got rid of the old way of playing the music and added Lavalink Music.
Disabled Cleverbot because that API is apparently abandoned.
Removed Volume command as it would've caused more load than doing good. Use User Volume which is inbuilt Discord, please.
Changed bunch of changes to music.js, stats.js, info.js, and other information commands.
Other bug fixes...

musicBackend.js has some ESLint issues, will be fixing after merge.


[IRGen] Cast fixed-size opaque globals.

In https://github.com/apple/swift/pull/66560 , a bug in the lowering of global_addr was fixed.  Part of that fix was to postpone mapping the type of the global into context until getting the address of the global and projecting the buffer for the out-of-line value; at that point, the type is mapped into context and the address is cast.
It introduced an issue for fixed-size globals, however: the type of such globals was not mapped into context; the result was that the lowered value set for the corresponding SIL value would have the wrong type.
Fix that by extracting the code which mapped the type into context and cast the address to the appropriate lowered type into a lambda and call that lambda both in both the fixed-size (newly) and non-fixed-size (as before) cases.
rdar://114013709

Resolves https://github.com/apple/swift/issues/67891

@swift-ci please test


Invoke Hangs using C API

I am working on a project DOODS https://github.com/snowzach/doods that is an image detection API wrapper around TF/TFLite with EdgeTPU support. I am experiencing random hangs during invoke when using the EdgeTPU.
DOODS is written in Go and uses a wrapper around the Tensorflow Lite C API. Is there a good way to debug the hang? Is this the right place to open the issue?

@snowzach interesting project 👀
I'm away from my desk right now, but to eliminate all early suspects, can you try different USB 3.0 ports and/or would you happen to have another accelerator to try with? Humm I wonder if the gdb still can gives some info with the go wrapper

Is there an environment variable you can set to get additional logging from tensorflow or the edgetpu library? It's not something I can easily reproduce unfortunately which makes me think it's hardware but a lot of my users are having the issue so maybe not.

@snowzach I see, are you able to reproduce the issue on your end? I'm just suggesting those as early suspects but I can't tell if it's actually hardware related.
libedgetpu doesn't have any debugging variables but you can do this for tensorflow:
$ export TF_CPP_MIN_LOG_LEVEL={0||1||2||3}

where 0 shows the most and 3 shows the least. I'm not sure how this will play out with your go c wrapper. On another note, I don't believe the tensorflow output would also tell you much, maybe strace or dmesg would actually help in this case?
Btw, is your server trying to access the same accelerator at the same time with multiple threads by any chance? I know that as a back end service it's crucial to be able to handle multiple clients, but in term of resources, having multiple processes accessing the same USB devices at the same time may causes unintended behavior. A very basic example:
https://gist.github.com/Namburger/7b99d4622dff53ee4f76d720a92e286c

@Namburger I did wonder about threaded access to the EdgeTPU and just went with the safe assumption that using it from multiple threads would lead to bad outcomes. :-)
I am using Tensorflow Lite, but I will try with the debugging flags to see if that produces something interesting. It's very irregular when it crashes. Some people it crashes once a day, others it's every 5 minutes. I am still leaning towards some power issue.
So I am not a tensorflow expert, can I use the same Interpreter over and over again just changing the input and invoking it again or is there a process needed to reset the state? I wondered if that was somehow causing the issue as well. Thanks for the feedback.

@snowzach
To answer your question:

So I am not a tensorflow expert, can I use the same Interpreter over and over again just changing the input and invoking it again or is there a process needed to reset the state?
Not a tensorflow expert either lol. But if by "changing the input" you meant the images inputs for inference, then that's totally fine.

I'm not too sure if tflite has the same debugging mechanism as tensorflow. Right now I'd say that a USB port that can supplies up to 900mA (we measured this as the peak draws from our hardware) is crucial. Another thought is that for iot devices, I can see running a server like this can potentially consumes tons of power for cpu usage depending on the load. Maybe monitoring htop at time of crashes also? Btw, is it crashing or just hanging?

@Namburger it would appear that it's just hanging. Unloading and reloading the library seems to get it working again.

That's really interesting as well. I believe the USB 3.0 spec says 900ma which means it's probably driving it right up to the limit.

@snowzach interesting, this could be helpful:
$ lsusb -v|egrep "^Bus|MaxPower"
Bus 002 Device 005: ID 18d1:9302 Google Inc.
can't get debug descriptor: Resource temporarily unavailable
    MaxPower              896mA
...

I'm at ~ 900mA most of the time when running inference in iterations, which is fine on my system, but I don't think it'll translate well on iot devices, especially with CPUs also running with a smaller power supply.

@snowzach Can you please provide more details about hang/crash? For example, dmesg output would be helpful or you can run you program under gdb and call backtrace when it fails.

At this point I have been running 10-15 detections per second for over 2.5 days without issue on a USB 3.0 on my Raspberry Pi 4. I am officially chalking the issue up to insufficient power/hardware issues for the time being. Thanks for your consideration and debugging suggestions. Closing for now.


update withNavigation doc

Updating doc for reflect API changes introduced on PR: https://github.com/react-navigation/react-navigation-core/pull/30#issuecomment-458306044

@vonovak I've checked it and I do not see that another file has to update.
Please correct me is I'm wrong

@bySabi does this explanation help? https://github.com/react-navigation/react-navigation.github.io/blob/source/.github/PULL_REQUEST_TEMPLATE.md

@bySabi does this explanation help? https://github.com/react-navigation/react-navigation.github.io/blob/source/.github/PULL_REQUEST_TEMPLATE.md
I hope soo :-)

Closing due to no response.


Hygieia Product View Build stage not showing metrics.

I configured product view and repos and build are having commits. but build stage is not showing any metrics like average time and standard deviation

@nireeshT @tabladrum commits are not moving from commit stage to build also.

What tool are you using for you builds?

I am using Jenkins Hygieia Plug in to publish Build and Deploy Jobs.
I am able to get metrics like avg time and sd in Build and Commit stage. but, Deploy Stage is not getting any metrics. i think the issue is similar to  [https://github.com/Hygieia/Hygieia/issues/2832] .

i am pasting my artifact and deploy information here .

@rvema can you look in to this ? i am not getting any commit info in environments other than commit and build. i am using jenkins-hygieia plugin for deploy widget.

@gopiprasanthpotipireddy , I’m having the same problem. What was your fix?

No fix @jjoyneriv the jenkins plugin is not having any commit data with it. that is plugin coding issue.


python crashes with no error when running env.reset()

I am working on trying to implement the L2M2019 challenge, and I have an issue where, if I try to run
from osim.env import L2M2019Env

env = L2M2019Env(visualize=True)
observation = env.reset()
for i in range(200):
    observation, reward, done, info = env.step(env.action_space.sample())

then python terminal/jupyter kernel or whatever I use just closes/dies with no error being shown.
I found a similar problem here
except the solution doesn't seem to change anything for me.
That issue has been marked as closed however the issue still persists for me, any help is massively appreciated.
(I am very new to opensim so if this is a simple thing to fix or something then I apologise)

Does it work properly with visualize=False?
Which system are you using?

@kidzik thanks for the quick reply, it doesnt work with visualize=False.
I am on Windows 10

@kidzik I have more insight into what is going on but I don't know how to solve it. when running in powershell I can see that i get an Intel MKL ERROR.
Intel MKL ERROR: Parameter 1 was incorrect on entry to CPTEQR.
This error occurs whether or not i have visualize as true or false.
Any understand as to what this could be? thanks!

Have you tried compiling from the source? Alternatively maybe running within a docker container could help since the linux version is better maintained

@samstar197 could you solve this problem?

I think I am experiencing the same issue.
Going through it step by step it seems that both the call to model.equilibrateMuscles(state) as well as manager.initialize(state) are what crashes the jupyter kernel for me.

I'm using VSC not Jupiter. I remember the problem was a version conflict. I'm using Python 3.6.2 for L2M2019Env env, and it is working fine now.

The crash seems to happen inside one of the c functions from opensim.

Turns out this was some issue with the Intel MLK for me.
This solution fixed the problem for me https://github.com/alumae/kaldi-gstreamer-server/issues/251#issuecomment-801871858

Hello @samstar197 . I got the same problem as you. Did you solve it? Thanks!!


Get SoftAsserts exception when some action performed on some page element in @BeforeMethod

The problem
Selenide throws Using soft asserts, but without @SoftAsserts annotation exception if there is some action performed on some page element in the test method annotated with TestNG' @BeforeMethod when using Soft Assertion Mode.
Environment

Selenide Version: 4.7
TestNG Version: 6.11

Code To Reproduce Issue
@Listeners({ SoftAsserts.class })
public class SimpleTest
{
    @BeforeClass
    public void beforeClass()
    {
        Configuration.browser = "chrome";
        Configuration.assertionMode = Configuration.AssertionMode.SOFT;
    }

    @BeforeMethod(alwaysRun = true)
    public void setUp()
    {
        Selenide.open("https://www.google.com/");
        $(By.xpath("//input[@name='btnI']")).click();
    }

    @Test
    public void testMethod()
    {

    }
}

Can be fixed with this pull request.

Fixed in PR https://github.com/codeborne/selenide/pull/615
Going to release in Selenide 4.8


az feedback and az extension * failed with unexpected error in Win11 Powershell

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
When I try to run az extension list or az feedback the command fails with an unexpected error
To Reproduce
Open a Powershell on Windows 11 and try to execute az feedback
Expected behavior
The command can be executed
Environment summary
Windows 11
PowerShell 7.2.1
Powershell 5.1.22000.282
azure-cli                         2.34.1
core                              2.34.1
telemetry                          1.0.6
Extensions:
arcdata                          Unknown
azure-iot                         0.11.0
connectedk8s                       1.2.0
Dependencies:
msal                              1.16.0
azure-mgmt-resource               20.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\johndoe.azure\cliextensions'
Python (Windows) 3.8.9 (tags/v3.8.9:a743f81, Apr  6 2021, 13:22:56) [MSC v.1928 32 bit (Intel)]
Additional context
Error message
az feedback
The command failed with an unexpected error. Here is the traceback:
Expected 1 module to load starting with 'azext_': got []
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 512, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 434, in load_command_table
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 328, in _update_command_table_from_extensions
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 315, in filter_modname
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/init.py", line 308, in get_extension_modname
AssertionError: Expected 1 module to load starting with 'azext': got []
To open an issue, please run: 'az feedback'

@jiasli for awareness

The command failed at
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/__init__.py", line 308, in get_extension_modname
AssertionError: Expected 1 module to load starting with 'azext_': got []

@kairu-ms, could you help take a look?


Deploying with vercel leads to issues due to mismatch in ENV variables

title
to reproduce just deploy with vercel. it will fail.

Did you use the deploy button? I've tested that and am unable to reproduce.


Analytics protocol or Backup protocol sometimes hangs

Based on --debug output, either analytics.run() or backup.run() (or both) takes a very long time. The student was connected to the internet. I'm not sure how to reproduce.

Duplicate of #121 ?

Oops, my bad


feature request: access to size classes

I am tring to use svbench and extract the TP, FP, etc from the dataframe. As far as I can tell, that's actually a bit difficulty.
I am using the script below. Basically, I want access to the evalutions for each size class and each of INS, DEL.
Am I missing a simple way to do that. I read the code that prints it out during score but I don't see a simple way to access.
Thanks in advance.
import svbench as svb

include_regions = "/media/brentp/transcend/data/human/HG002_SVs_Tier1_v0.6.bed"
truth_vcf = "/media/brentp/transcend/data/human/HG002_SVs_Tier1_v0.6.vcf.gz"
dysgu_vcf = "dysgu.vcf.gz"

def svbench_evaluate(true_v, test_v, include_regions, caller, sizes=(50, 500, 5000), slop=100, name="HG002"):
    true = svb.CallSet(dataset=name).load_vcf(true_v, other_cols=["FILTER"])

    true = true.filter_include_bed(include_regions, inplace=False)
    true = true.add_intervals(slop=slop)

    test = getattr(svb, "load_" + caller)(test_v, dataset=name)

    callers = [test]

    #score = svb.score(true, callers)
    #print(len(score))
    #score = score[0]
    #print(score.scores)

    inss = [i.filter_by_svtype("INS", inplace=False) for i in callers]
    dels = [i.filter_by_svtype("DEL", inplace=False) for i in callers]

    true_ins = true.filter_by_svtype("INS", inplace=False)
    true_ins = true.add_intervals(slop=slop)

    true_del = true.filter_by_svtype("DEL", inplace=False)
    true_del = true.add_intervals(slop=slop)

    trues = {"INS": true_ins, "DEL": true_del}
    tests = {"INS": inss, "DEL": dels}
    sizes = list(sizes) + [10000000]

    for ev in ("INS", "DEL"):
        for i, sizemin in enumerate(sizes):
            if i == len(sizes) - 1: break
            sizemax = sizes[i + 1]

            tr = trues[ev].filter_by_size(sizemin, sizemax)
            te = [tests[0][ev].filter_by_size(sizemin, sizemax)]

            # I've been messing with these 2 lines and moving them around but seem to always get the full set of scores.
            sc = svb.score(tr, te, ref_size_bins=sizes,
                    min_ref_size=sizes[0] - 20, stratify=True)[0]

            r = sc.filter_by_size(sizemin, sizemax, inplace=False)
            r = dict(r.scores.iloc[0])
            r["precision"] = r.pop("Precision")
            r["recall"] = r.pop("Recall")
            r["sizemin"] = str(sizemin)
            r["sizemax"] = str(sizemax)
            r["svtype"] = ev
            r.pop("T >=")
            r["f1"] = r.pop("F1")
            r["name"] = "svbench"
            yield r

for r in  svbench_evaluate(truth_vcf, dysgu_vcf, include_regions, "dysgu"):
    fmt = "{svtype}\t{name}\t{sizemin}\t{sizemax}\t{precision}\t{recall}\t{TP}\t{FP}\t{FN}"
    print(fmt.format(**r))

Hi @brentp,
I think what you want is the size_scores table, which is available as an attribute - this gets filled out during scoring. e.g:
svb.score(true_dels, dels)
print(dels.scores)
print(dels.size_scores)
print(dels.gt_scores)

Also some other pointers for using svbench; you should filter the query calls using the input bed:
 test = getattr(svb, "load_" + caller)(test_v, dataset=name).filter_include_bed(include_regions)
Also the add_intervals function should be called after all the filtering as been done, otherwise the added intervals can be invalid (the added intervals are not filtered when other filtering steps are called).
As of v0.5.1 all filtering functions have inplace=False which is a bit more intuitive.
Also of note, CallSets are also pickle friendly which can save you a lot of time when loading the HG002 reference set, for example:
import pickle
import time

t0 = time.time()
hg002_tier1 = svb.CallSet(dataset="HG002").\
    load_vcf(truth_vcf, other_cols=["FILTER"]).\
    filter_include_bed(include_regions)
print(time.time() - t0)  # 11.79092001914978

pickle.dump(hg002_tier1, open("hg002.tier1.pkl", "wb"))

t0 = time.time()
hg002_tier1 = pickle.load(open("hg002.tier1.pkl", "rb"))
print(time.time() - t0)  # 0.0782470703125, about 2 MB in size

ok. so I have it working with size_scores, that's much simpler. Is there a reason there is no FN column with size scores?

also, thanks for the thorough reply!
FYI, matplotlib is not in the requirements.txt but it seems to be required.

Thanks, FN is now in the table and matplotlib is in requirements

seems to also need joblib. Not sure if something changed with how I install. Wasn't seeing these before.

Thanks, this has been fixed

cheers. using it here: https://github.com/brentp/sveval


README Example Outdated: Incorrect Package Reference for NewAPIConfig

The README example for using the Confidence SDK with OpenFeature appears to be out of date. Specifically, the lines:
import (
    "github.com/open-feature/go-sdk/openfeature"
    confidence "github.com/spotify/confidence-sdk-go/pkg/provider"
)
....

provider, err := confidence.NewFlagProvider(confidence.NewAPIConfig("clientSecret"))

is incorrect because the NewAPIConfig function is not part of the github.com/spotify/confidence-sdk-go/pkg/provider package. Instead, it is located in the github.com/spotify/confidence-sdk-go/pkg/confidence package.

Thanks for taking the time to report this, we'll take care of it right away 👍

Thank you @nicklasl for the quick response!
The proposed solution works however your variable names collide with the package names so the go linters are going to complain a bit.
I would recommend either changing
confidence := confidence.NewConfidenceBuilder().SetAPIConfig(confidence.APIConfig{APIKey: "clientSecret"}).Build()
provider := provider.NewFlagProvider(confidence)

to something like:
confidenceApp := confidence.NewConfidenceBuilder().SetAPIConfig(confidence.APIConfig{APIKey: "clientSecret"}).Build()
confidenceProvider := provider.NewFlagProvider(confidenceApp)

The import aliases e.g: confidence "github.com/spotify/confidence-sdk-go/pkg/confidence" also seem redundant since the package names are the same. if you wanted to keep your variable names as confidence and provider you should change the aliases to another name.

Keeping the alias sounds fine for readability - thanks again! The variable names should change then to stop the name collisions.  Other than that I can confirm everything works as intended.


Container Registry: Added 2019-04-only tag for Java and added Java readme

Can one of the admins verify this patch?

Automation for azure-sdk-for-js

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java


Official Revel Debugging Guide

In #95 we discussed the options for using gdb to debug a Revel app.
I'd like to get together an official guide on how to set breakpoints and walkthrough a Revel app at runtime with gdb and hopefully with some IDE integration.

Do we need to put this in the FAQ ?

@pedromorgan we need a guide for it somewhere, eventually. Where were you thinking? The website or the wiki?

I'd stick it in the manual as a quick quide, with some footer links to some externals..

@pedromorgan that sounds like a good idea.

started a page here..
http://revel-docs.daffodil.uk.com/manual/debug.html
Just need time to check and finish it.. hopefully by the weekend
On 5 January 2015 at 22:18, Brenden Soares<EMAIL_ADDRESS>wrote:

@pedromorgan https://github.com/pedromorgan that sounds like a good
idea.
—
Reply to this email directly or view it on GitHub
https://github.com/revel/revel/issues/523#issuecomment-68792264.


Questions about WMR future

I am wondering if external tracking will ever be a thing? I mean will there be an officially supported version of this? For examples using external cameras? Another thought I had was hand tracking, is that something your planning to release to WMR HMDs?

It's safe to say WMR won't have any major updates anymore. The only significant changes that will be available to WMR Headset users will be updates pushed to the OpenXR tools and SteamVR bridge, mainly maintained by @mbucchia. He is also involved in a few cool repos that give WMR some extra features, like WMR Passthrough access for OpenXR applications.

I see, thank you for the information. Have you considered making the drivers/applications open source, or this is something that will not happen?

I see, thank you for the information. Have you considered making the drivers/applications open source, or this is something that will not happen?

I'm not a Microsoft dev, but I'm pretty sure even they wouldn't know, most of the people in this repo here are technical writers so I don't think they know the executive decisions that MSFT is planning. Also, Microsoft rarely ever makes proprietary code open-source.
I do know of a project that have access to the WMR hardware to some capacity, though it can't use the tracking algorithm. The project is called ALVR.


1.21 Port?

Hey I just wanted to know if this mod is going to be ported to 1.21, as this mod is really important to me since world view bobbing makes me sick while I don't want to lose the hand animation when moving. ty in advance! :)

#6