WASM: Cant't resolve env

Bug report

What is the current behavior?
When importing a WASM file from mediainfo.js, I am getting 2 errors:
ERROR in ./app/client/lib/mediainfo.wasm
Module not found: Error: Can't resolve 'env' in '/path/app/client/lib'
 @ ./app/client/lib/mediainfo.wasm
ERROR in ./app/client/lib/mediainfo.wasm
Module not found: Error: Can't resolve 'global.Math' in '/path/app/client/lib'
 @ ./app/client/lib/mediainfo.wasm

If the current behavior is a bug, please provide the steps to reproduce.
WASM file can be found here: https://www.dropbox.com/s/58e4h04pg71wug9/mediainfo.wasm?dl=0 (4 MB). It is compiled from https://github.com/buzz/mediainfo.js using em++ -Os --llvm-lto 0  -s TOTAL_MEMORY=1073741824 -s NO_FILESYSTEM=1 -s MODULARIZE=1 --bind mediainfojs.o MediaInfoLib/Project/GNU/Library/.libs/libmediainfo.a ZenLib/Project/GNU/Library/.libs/libzen.a Shared/Source/zlib/libz.a -o mediainfo.js
Module rule for WASM is from the example:
{
  test: /\.wasm$/,
  type: "webassembly/experimental",
}

It does not compile a simple file:
async function test() {
  const mediainfo = await import("lib/mediainfo.wasm")
  console.log(mediainfo)
}

What is the expected behavior?
The WASM file should be loadable by import and added to the build outputs.
If this is an expected error (this is my first try with "real" WASM), I havent been able to find a clue anywhere.

Other relevant information:
webpack version:  4.8.3
Node.js version: 10.1.0
Operating System: MacOS 10.13.4
Additional tools: emscripten 1.18.1

Currently we don't have a support for emscripten out of the box. See https://github.com/webpack/webpack/issues/7352

Ok thanks. I will try the workaround you mentioned in the other issue.
I am not sure how, but maybe this should be mentioned somewhere (doc? error message?), I guess I wont be the only one trying to run emscripten-compiled code.

@renchap Did you figure it out?

@renchap Did you figure it out?

2k24 and still interested in this, im currently having issues when importing a wasm module which uses emscripten bindings, all this on nextjs bundled with turbopack. And just because of this I can't bind C++ classes.
you can solve the issue by linking the env api, but I don't want to deal with this anymore.


Build development setup quickly seems not work in 1.14.5

Not sure if's it's bug or did I miss something? My cilium code version is 1.14.5.
Slack Message
I tried to build a development setup in my host. Accroding to Development Setup. My steps are as follows

download cilium code
make kind: build kind cluster
install Cilium CLI
make kind-install-cilium-fast: install cilium to kind cluster
make some change to local code
make kind-image-fast: build Cilium from local code, and install new binary target to kind cluster

But I found cilium-agent in Cilium Pod was not updated, Do I need to update it manually?
new built cilium-agent:
# docker exec -it kind-worker /bin/bash
root@kind-worker:/# md5sum cilium-binaries/cilium-agent
3a28c5dee3c307c0f579d3697d28c1d5  cilium-binaries/cilium-agent

cilium-agent in Cilium pod not update:
root@kind-worker:/# crictl ps
CONTAINER           IMAGE               CREATED             STATE               NAME                ATTEMPT             POD ID              POD
09b6b11a6d8d1       a408285c55c0a       55 minutes ago      Running             cilium-agent        0                   ab58c8ef2f644       cilium-dvq9c
9358e02cf0d1c       9d5429f6d7697       3 hours ago         Running             kube-proxy          0                   82c6ec08eca37       kube-proxy-n227w
root@kind-worker:/# crictl exec -it 09b6b11a6d8d1 md5sum /usr/bin/cilium-agent
4891c042385142ac608faa9ea5bc2297  /usr/bin/cilium-agent

After some investigation and change, it seems work. Not sure if it's bug.

use KIND_VALUES_FAST_FILES="--helm-values=contrib/testing/kind-fast.yaml" make kind-install-cilium-fast  to install cilium
Add some code in kind-image-fast target

Hi @joestringer
I tried main branch, it works well.

OK. In that case, you could work around by using the regular image targets instead of -fast, or develop on main. I doubt there is much interest in fixing this target in the v1.14 branch since we've already branched for the next stable release v1.15.x and all future development will be on main for v1.16.x.


Port Graph CLI from commander.js to gluegun

I have not been too happy with commander.js since the moment we created Graph CLI.
Now that we have decided to make graph init interactive, I thought it would be a good time to move away from it and use https://infinitered.github.io/gluegun/ instead.
This PR does exactly that. All commands and some of the tools (like the compiler and type generator) are updated to Gluegun and its so-called toolbox. This not only makes logging less fragile, it also makes the output a bit prettier and introduces visual spinners for different steps of the commands (especially those that can run longer, like compiling or making HTTP requests).
Flags like --verbose or --debug are no longer needed but also don't break anything.
Help output
➜  ~ graph --help
graph version 0.7.3

  graph         -
  version (v)   Output the version number
  remove        Unregisters a subgraph name
  init          Creates a new subgraph with basic scaffolding
  deploy        Deploys the subgraph to a Graph node
  create        Registers a subgraph name
  codegen       Generates AssemblyScript types for a subgraph
  build         Builds a subgraph and (optionally) uploads it to IPFS
  auth          Sets the access token to use when deploying to a Graph node
  help (h)      -

➜  ~ graph remove --help

graph remove [options] <subgraph-name>

Options:

      --access-token <token>
                            Graph access token
  -h, --help                Show usage information
  -g, --node <url>          Graph node to create the subgraph in

➜  ~ graph init --help

graph init [options] <subgraph-name>

Options:

  -h, --help                Show usage information
      --allow-simple-name   Use a subgraph name without a prefix component (default: false)

➜  ~ graph deploy --help

graph deploy [options] <subgraph-name> [<subgraph-manifest>]

Options:

      --access-token <token>
                            Graph access token
  -g, --node                Graph node to deploy the subgraph to
  -h, --help                Show usage information
      --ipfs <node>         Upload build results to an IPFS node
  -o, --output-dir <path>   Output directory for build results (default: build/)
  -w, --watch               Regenerate types when subgraph files change (default: false)

➜  ~ graph create --help

graph create [options] <subgraph-name>

Options:

      --access-token <token>
                            Graph access token
  -h, --help                Show usage information
  -g, --node <url>          Graph node to create the subgraph in

➜  ~ graph codegen --help

graph codegen [options] [<subgraph-manifest>]

Options:

  -h, --help                Show usage information
  -o, --output-dir <path>   Output directory for generated types (default: generated/)
  -w, --watch               Regenerate types when subgraph files change (default: false)

➜  ~ graph build --help

graph build [options] [<subgraph-manifest>]

Options:

  -h, --help                Show usage information
      --ipfs <node>         Upload build results to an IPFS node
  -o, --output-dir <path>   Output directory for build results (default: build/)
  -t, --output-format <format>
                            Output format for mappings (wasm, wast) (default: wasm)
  -w, --watch               Regenerate types when subgraph files change (default: false)

➜  ~ graph auth --help

graph auth [options] <node> <access-token>

Options:

  -h, --help                Show usage information

Command output

Visual progress

-i used to be short for --ipfs, which is not the case in this PR. Was that an accident?

@leodasvacas Good point, yes, that was by mistake. I'll add it back. How's everything else looking?

Also I think we used to default the IPFS port to 5001 if no port was provided. I'm testing out the branch and making comments as I go, haven't looked at the code yet.

@leodasvacas -i (and also -o, which I missed in a few places) have been added back. I checked master for port 5001 but it looks like we didn't default to it anywhere: https://github.com/graphprotocol/graph-cli/search?utf8=✓&q=5001&type=


Remove elbow

In the demo you can add more points to the line, but is there a way to remove a point without having to recreate the line?

Sadly not, but it shouldn't be too difficult to implement.


Sign CI images

Implement container image signing using cosign in the build CI images workflow. Use Cosign to sign without keys by authenticating with an OIDC protocol supported by Sigstore. Leveraging image signing gives users confidence that the container images they got from the container registry was the trusted code that the maintainer built and published.
Sign CI images

ci image signing has been tested here ✅ https://github.com/cilium/cilium/pull/21669

Closing as testing container image signing was successful.


New release?

Hello!
We've been using your great plugin to display build statuses of freestyle jobs for quite some time and it's great! However, we've recently switched to Pipelines and I've noticed that Build Monitor 1.12 doesn't display statuses of their stages.
After a while of digging, I've stumbled across #286 it seems that our needs have been met already. So, when can we expect a new release of your plugin to enjoy monitoring pipelines?
Best regards,
Łukasz

Hi Łukasz and thanks for your kind words! Apologies, the last couple of months have been a bit hectic and I didn't get to spend any time on Build Monitor. I've just pushed the latest build to the Jenkins registry, so hopefully the features you're after should be with you shortly!
Best,
Jan

e


Initial hw1 for Gokul Puthumanaillam (gokulp2)

Completed Deliverables

[x] Implementation of the following algorithms

[x] Policy iteration
[x] Value Iteration
[x] SARSA
[x] QLearning
[x] TD(0) Approximation for SARSA and QLearning

Hey Gokul! I'll review your code.

The code is really well written and easy to understand. Just a few comments:

Add the code for plotting
The policy eval function can be written a bit more concisely by eliminating the extra new_v variable
Some lines of code are very long (eg: policy_improve function - here you can write a separate loop for actions which would make the code a bit easier to read)
For policy and value iteration you've defined pi as an array of actions but for SARSA and Q-Learning, you've defined it as a 2d array of probabilities. It would be better if you can make it the same for all algorithms.
You can remove the act function in SARSA and choose_action function in Q-Learning and make a common function called epsilon_greedy or something.
Log the return G for SARSA and Q-Learning (we need this later for plotting)
You can add the print statements inside the functions for each algorithm

Hi Manav, thanks a lot for the review!

Working on it :)
That was a mistake, I expected to use new_v at some point, which I did not. Will fix
Just wanted to make everything as pythonic as I could
I believe it becomes easier this way to choose deterministic and non-deterministic pi. I was working on the render function for the pendulum.
Understood, will change the function name to epsilon_greedy
6, 7. Working on it

Best,
gokulp01


Exports not happening

We are not able to export CSVs or JSONs.  The console log shows a websocket connection error.
Expected behavior:

Filter list of items to export
Select All (optional -> All results that match this search)
Choose an export type (CSV or JSON)
File compiles and Notifications in the menu displays a red icon
Navigate to Notifications and download file

Actual behavior

Filter list of items to export
Select All (optional -> All results that match this search)
Choose an export type (CSV or JSON)
Nothing happens. Console shows multiple errors listed as action_cable.js:241 WebSocket connection to 'wss://geomg.lib.umn.edu/cable' failed:

@mberkowski Do you know if this is a server configuration issue? I am not sure when exports stopped working. I believe that it was functional when Eric pushed the enhancement last month.

@karenmajewicz Last communications I had with EL, ActionCable was not yet working properly. "It's not a show stopper that AC isn't working there, it just means you don't know your export file is ready unless you refresh the page"
2 things going on:

as EL noted, the ActionCable integration doesn't yet work so you need to refresh to see the notifications light up.
The Sidekiq service which does background job processing on these exports was not running. This has probably been since a server patch & reboot about a week and a half ago. I will figure out why this happened, but it's not the application's fault.

Right now it lists 5 CSVs for download, some of which were probably me.

Thank you! I had forgotten the refresh part!
I know that our RA tried to do some exports last week that never showed up. Maybe the Sidekiq service was the problem.

I am seeing this same behavior on geomg prod today. I can only export 1 page of records at a time.

#179 is a better descriptor of the current issue.


Tabular data import and display

It is my understanding that Nunaliit has new functionality to support loading and displaying large amounts of tabular data. However, I've been unable to locate any documentation to understand this functionality. It's entirely possible I've just overlooked it, hoping you can point me in the right direction to get started.
Thanks,
Brendan

Related question. After getting the tabular display working using a module with a canvas the user now wants to know if I can display the tabular data when selecting a document (on the map) in the sidebar. In short the desired functionality would be:
user clicks on station in map (selecting the station document for display)
Station display triggers display of table data (and in future graph) for the data related to the select station either in side panel or in additional portion of the screen.
I think this would require displaying two modules at the same time, and from my limited knowledge this wouldn't be possible. I looked through the widgets thinking this is where I would find something if it existed but don't see anything. So can you either point me in the right direction or let me know if this is not possible?
Thanks!

I figured out a solution to this for a small amount of data, having the user put CSV into a text field and then using javascript to display the csv as a graph and/or table.

Hi Brendan,
Thank you for pointing out the gaps in our wiki. Following our converstations through email, I’ve since added documentation on both the Table Canvas and the ElementGenerator, which I think answers your original question.
Bob


The example of the input repositories is wrong.

The example is wrong.
https://github.com/tibdex/github-app-token/blob/3eb77c7243b85c65e84acfa93fdbac02fb6bd532/README.md?plain=1#L42-L44
repositories must be a list of repository names, not repository full names.
Please see the example of the official API document.
https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app
curl -L \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/app/installations/1/access_tokens \
  -d '{"repository":"Hello-World","permissions":{"issues":"write","contents":"read"}}'

If we pass repository full names, this action can't issue tokens.
https://github.com/suzuki-shunsuke/test-github-action/actions/runs/6992873445/job/19024947554
Run tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
Error: Could not create installation access token.

  [cause]: RequestError [HttpError]: There is at least one repository that does not exist or is not accessible to the parent installation.

I opened a pull request to resolve the issue.

https://github.com/tibdex/github-app-token/pull/104


Could not connect to Ryuk - Linux, Docker 20.10.0, 1.15.0-rc2

As this is my first issue i would like to say "Thank you" to all maintainers and contributors.
Apparently, out of nothing my tests started to throw:
Caused by: java.lang.IllegalStateException: Could not connect to Ryuk at localhost:49160
	at org.testcontainers.utility.ResourceReaper.start(ResourceReaper.java:171)
	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:201)
	at org.testcontainers.LazyDockerClient.getDockerClient(LazyDockerClient.java:14)
	at org.testcontainers.LazyDockerClient.listImagesCmd(LazyDockerClient.java:12)
	at org.testcontainers.images.LocalImagesCache.maybeInitCache(LocalImagesCache.java:68)
	at org.testcontainers.images.LocalImagesCache.get(LocalImagesCache.java:32)
	at org.testcontainers.images.AbstractImagePullPolicy.shouldPull(AbstractImagePullPolicy.java:18)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:65)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:26)
	at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:17)
	at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:39)
	at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1280)
	... 266 more

I am on Linux with:
openjdk 11.0.8 2020-07-14
testcontainers 1.15.0-rc2
docker 20.10.0
The container seems to start:
$ docker ps -a
CONTAINER ID   IMAGE                       COMMAND   CREATED        STATUS                  PORTS                     NAMES
85335add1def   testcontainers/ryuk:0.3.0   "/app"    1 second ago   Up Less than a second   <IP_ADDRESS>:49160->8080/tcp   testcontainers-ryuk-2b08ab75-8559-48fc-8f73-8d233b45c430

and the logs do not seem too wrong:
$ docker logs 85335add1def
2020/12/09 09:47:37 Pinging Docker...
2020/12/09 09:47:37 Docker daemon is available!
2020/12/09 09:47:37 Starting on port 8080...
2020/12/09 09:47:37 Started!

Still, the above exception happens after the default timeout of 30 seconds.
Let me know if you need more information, stack traces or logs.

Hi @ullrichp,
Thanks for your kind words! :)
Have you tried the latest release (1.15.0)? Also, does it work if you attempt to connect to Ryuk from CLI?

Experiencing the same out of the blue when executing in EC2, this was still working this morning. The stack trace has this:
Caused by:
3530                        org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=postgres:11.8-alpine, imagePullPolicy=DefaultPullPolicy())
3531                            at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1278)
3532                            at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:612)
3533                            at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:317)
3534                            ... 114 more
3535                            Caused by:
3536                            com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"No such image: testcontainers/ryuk:0.3.0"}

But looking at the Docker Hub that image does exists there.

@arhohuttunen you issue seems to be different and caused by the registry returning 404 for an image that exists.

My mistake, was too hasty to draw conclusions between the two issues.

I have exactly the same issue on latest (1.15.0). What is more seems to be not-deterministic one :/ Anyway seems like they are some compatibility issues with the newest docker.

Experiencing the same out of the blue when executing in EC2, this was still working this morning. The stack trace has this:
Caused by:
    org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=postgres:11.8-alpine, imagePullPolicy=DefaultPullPolicy())
    at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1278)
    at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:612)
    at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:317)
    ... 114 more
        Caused by:
        com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"No such image: testcontainers/ryuk:0.3.0"}

But looking at the Docker Hub that image does exists there.

We had the same issue today. Temporary fixed by pinning docker version to 19.03.

@amelnikov-mylivn what does it have to do with the docker version? have they changed anything in the latest version?

I am also seeing the same issue with the stack trace:
[12/09/2020 11:09:31:957 CST] 040 ResourceReaper                 lambda$null$1                  W Can not connect to Ryuk at localhost:32769
java.net.SocketException: Protocol wrong type for socket (Write failed)
	at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
	at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:138)
	at org.testcontainers.utility.ResourceReaper$FilterRegistry.register(ResourceReaper.java:406)
	at org.testcontainers.utility.ResourceReaper.lambda$null$1(ResourceReaper.java:135)
	at org.testcontainers.utility.ResourceReaper$$Lambda$131/000000002833D020.run(Unknown Source)
	at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
	at org.testcontainers.utility.ResourceReaper.lambda$start$2(ResourceReaper.java:119)
	at org.testcontainers.utility.ResourceReaper$$Lambda$130/00000000279F0A20.run(Unknown Source)
	at java.base/java.lang.Thread.run(Thread.java:834)

Also got {{com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"No such image: testcontainers/ryuk:0.3.0"}}}
Looks like related to docker version:
Working version:
{noformat}
13:02:20.718 [main] INFO org.testcontainers.DockerClientFactory - Connected to docker:
Server Version: 19.03.14
API Version: 1.40
Operating System: Ubuntu 16.04.4 LTS
Total Memory: 31907 MB
{noformat}
Non working version:
{noformat}
19:03:20.528 [main] INFO org.testcontainers.DockerClientFactory - Connected to docker:
Server Version: 20.10.0
API Version: 1.41
Operating System: Ubuntu 16.04.4 LTS
Total Memory: 31907 MB
{noformat}

I am also seeing this com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: quay.io/testcontainers/ryuk:0.3.0"}

@amelnikov-mylivn what does it have to do with the docker version? have they changed anything in the latest version?

Honestly idk, I did not dig enough into. Our CI runs on spot EC2 instances which are created for each task. Today builds started to fail with 404 No such image. We wasted most of the day, nothing helped, but when found that docker 20.10 appeared in repos yesterday, we pinned its version to an old one, and it worked.
P.S. Sorry for the off-topic.

A manual docker pull testcontainers/ryuk:0.3.0 helps. Without having debugged the issue, yet, it seems like docker-java doesn't transparently pull the missing image on status code 404. This should be the default behaviour.
I'm also running into this issue using the recent Docker for Mac 2.5.4/Docker Engine 20.10.0-rc2.

Without having debugged the issue, yet, it seems like docker-java doesn't transparently pull the missing image on status code 404.

It doesn't, yes.

This should be the default behaviour.

Why? 404 is "not found" and 4xx type of an http code, non-retriable. I don't think registries should return 404 for images that exist.
Although the original issue report is talking about some other, TCP related issue, so please consider reporting 404 separately, this is some other issue.

Filed an issue for "No such image: testcontainers/ryuk:0.3.0" (Status 404) at #3574.
Sorry for the spam.

I'm trying to reproduce this TCP/connection to Ryuk issue, but haven't managed to so far 😬
Using a fresh VM with Ubuntu 20.04 (LTS) x64 and Docker version 20.10.0, build 7287ab3
I'm testing with 1.15-0rc2, 1.15.0 and master/HEAD and so far not able to reproduce. Will continue to try.

Have you tried the latest release (1.15.0)?

Yes, i get the same exception.

Also, does it work if you attempt to connect to Ryuk from CLI?

I assume you mean $ docker attach -> Apparenlty, no. That seems not to be possible:
$ docker ps -a
CONTAINER ID        IMAGE                       COMMAND             CREATED                  STATUS              PORTS               NAMES
e2fa3727c9aa        testcontainers/ryuk:0.3.0   "/app"              Less than a second ago   Created                                 testcontainers-ryuk-e31ea349-ae04-4762-9c9d-c45e600d4b19
$ docker attach e2fa3727c9aa
panic: Timed out waiting for the initial connection

goroutine 1 [running]:
main.main()
        /go/src/github.com/testcontainers/moby-ryuk/main.go:104 +0xce7

@ullrichp your last docker ps output doesn't seem to have any listening ports listed for ryuk, whereas your first does. This seems very strange.
Out of interest, which Linux distro and version are you using?

I played a little with my docker installation and are now back to version 19.03.14. Maybe the output changes because of that.
I am using Gentoo.

I am having the same issue on ubuntu 20.04 with
$ docker --version
Docker version 20.10.0, build 7287ab3

Test containers 1.14.3 works but 1.15.0 I get the exception saying there is no ryuk image. Stack trace below
      Caused by:
       java.lang.IllegalStateException: Failed to load ApplicationContext
           at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132)
           at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123)
           at org.springframework.test.context.junit.jupiter.SpringExtension.getApplicationContext(SpringExtension.java:207)
           at org.springframework.test.context.junit.jupiter.SpringExtension.resolveParameter(SpringExtension.java:193)
           at org.junit.jupiter.engine.execution.ExecutableInvoker.resolveParameter(ExecutableInvoker.java:216)
           ... 65 more

           Caused by:
           org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Container startup failed
               at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
               at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
               at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
               at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
               at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
               at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
               at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
               at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
               at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
               at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1161)
               at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915)
               at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
               at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
               at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
               at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
               at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
               at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:122)
               at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)
               at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
               ... 69 more

               Caused by:
               com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Container startup failed
                   at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:595)
                   at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:581)
                   at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
                   at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
                   at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
                   at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:69)
                   at org.flywaydb.core.Flyway.execute(Flyway.java:475)
                   at org.flywaydb.core.Flyway.migrate(Flyway.java:164)
                   at com.programmingmastery.database.schema.SchemaManagerImpl.migrate(SchemaManagerImpl.java:72)
                   at com.programmingmastery.database.schema.SchemaManagerImpl.migrate(SchemaManagerImpl.java:54)
                   at com.programmingmastery.database.schema.MigrationStrategy.migrate(MigrationStrategy.java:24)
                   at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:62)
                   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847)
                   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
                   ... 87 more

                   Caused by:
                   org.testcontainers.containers.ContainerLaunchException: Container startup failed
                       at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:327)
                       at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:308)
                       at org.testcontainers.jdbc.ContainerDatabaseDriver.connect(ContainerDatabaseDriver.java:118)
                       at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
                       at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
                       at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
                       at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
                       at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
                       ... 99 more

                       Caused by:
                       org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=postgres:12, imagePullPolicy=DefaultPullPolicy())
                           at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1278)
                           at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:612)
                           at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:317)
                           ... 106 more

                           Caused by:
                           com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"No such image: testcontainers/ryuk:0.3.0"}
                               at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:241)
                               at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.post(DefaultInvocationBuilder.java:125)
                               at org.testcontainers.shaded.com.github.dockerjava.core.exec.CreateContainerCmdExec.execute(CreateContainerCmdExec.java:33)
                               at org.testcontainers.shaded.com.github.dockerjava.core.exec.CreateContainerCmdExec.execute(CreateContainerCmdExec.java:13)
                               at org.testcontainers.shaded.com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21)
                               at org.testcontainers.shaded.com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35)
                               at org.testcontainers.shaded.com.github.dockerjava.core.command.CreateContainerCmdImpl.exec(CreateContainerCmdImpl.java:595)
                               at org.testcontainers.utility.ResourceReaper.start(ResourceReaper.java:91)
                               at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:203)
                               at org.testcontainers.LazyDockerClient.getDockerClient(LazyDockerClient.java:14)
                               at org.testcontainers.LazyDockerClient.listImagesCmd(LazyDockerClient.java:12)
                               at org.testcontainers.images.LocalImagesCache.maybeInitCache(LocalImagesCache.java:68)
                               at org.testcontainers.images.LocalImagesCache.get(LocalImagesCache.java:32)
                               at org.testcontainers.images.AbstractImagePullPolicy.shouldPull(AbstractImagePullPolicy.java:18)
                               at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:66)
                               at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:27)
                               at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:17)
                               at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:39)
                               at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1276)
                               ... 108 more

i have the same problem

Same here with Ubuntu 20.04, Docker 20.10 and Testcontainer 1.15.0. With a downgrade to docker version 19.03.14 everything is fine.

FYI 1.15.1 is released and fixes "No such image" issue (#3574). Please only comment if you still see the issue with 1.15.1 and and it related to TCP connectivity, not image pulling. Thanks.

I found out that my issue must be related to the VPN i am connected to.
When i turn if off everything works fine.
When i am connected i get those connection problems. Will try to figure out whats going on with my networking.
Thanks so far.

I still get
Caused by: java.lang.IllegalStateException: Could not connect to Ryuk at localhost:55003 	at org.testcontainers.utility.ResourceReaper.start(ResourceReaper.java:198) 	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:205) 	at org.testcontainers.LazyDockerClient.getDockerClient(LazyDockerClient.java:14) 	at org.testcontainers.LazyDockerClient.authConfig(LazyDockerClient.java:12) 	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:310)
:(
Docker version: 20.10.0 (docker for windows 3.0.0)
+
testImplementation "org.testcontainers:mysql:1.15.1"
testImplementation "org.testcontainers:testcontainers:1.15.1"

@uzoltan could you please share full logs?

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.1.RELEASE)

2020-12-15 10:33:24.017  INFO [ocpi-command,,,] 8572 --- [           main] o.t.d.DockerClientProviderStrategy       : Loaded org.testcontainers.dockerclient.NpipeSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
2020-12-15 10:33:24.587  INFO [ocpi-command,,,] 8572 --- [           main] o.t.d.DockerClientProviderStrategy       : Found Docker environment with local Npipe socket (npipe:////./pipe/docker_engine)
2020-12-15 10:33:24.588  INFO [ocpi-command,,,] 8572 --- [           main] org.testcontainers.DockerClientFactory   : Docker host IP address is localhost
2020-12-15 10:33:24.623  INFO [ocpi-command,,,] 8572 --- [           main] org.testcontainers.DockerClientFactory   : Connected to docker:
  Server Version: 20.10.0
  API Version: 1.41
  Operating System: Docker Desktop
  Total Memory: 1989 MB
2020-12-15 10:33:24.627  INFO [ocpi-command,,,] 8572 --- [           main] o.t.utility.ImageNameSubstitutor         : Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2020-12-15 10:33:24.876  INFO [ocpi-command,,,] 8572 --- [           main] o.t.utility.RegistryAuthLocator          : Credential helper/store (docker-credential-desktop) does not have credentials for index.docker.io
2020-12-15 10:33:28.928  WARN [ocpi-command,,,] 8572 --- [containers-ryuk] o.testcontainers.utility.ResourceReaper  : Can not connect to Ryuk at localhost:55005

java.net.ConnectException: Connection refused: connect
	at java.base/java.net.PlainSocketImpl.connect0(Native Method)
	at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
	at java.base/java.net.Socket.connect(Socket.java:591)
	at java.base/java.net.Socket.connect(Socket.java:540)
	at java.base/java.net.Socket.<init>(Socket.java:436)
	at java.base/java.net.Socket.<init>(Socket.java:213)
	at org.testcontainers.utility.ResourceReaper.lambda$null$1(ResourceReaper.java:160)
	at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
	at org.testcontainers.utility.ResourceReaper.lambda$start$2(ResourceReaper.java:158)
	at java.base/java.lang.Thread.run(Thread.java:834)

@uzoltan thanks! Do you happen to have some VPN or anything else that might affect the network?
Maybe you issue is similar to @ullrichp's:
https://github.com/testcontainers/testcontainers-java/issues/3572#issuecomment-744417283

No VPN, docker doesn't run local kube cluster either, I only have 1 other mongo container running on 27017.

FYI: I solved all my issues with correctly configuring strongswan VPN with the bypass-lan plugin. Turns out its not done automatically and all local trafffic was send to the VPN.

Same issue here (1.15.1 and TCP connectivity), resolved by stopping VPN (Cisco AnyConnect) then restarting Docker for Windows then (re)starting VPN. Could not reproduce the issue after that though. Did not try 'Allow local LAN access', will do next time.

Same issue here (1.15.1 and TCP connectivity), resolved by stopping VPN (Cisco AnyConnect) then restarting Docker for Windows then (re)starting VPN. Could not reproduce the issue after that though. Did not try 'Allow local LAN access', will do next time.

Encountered the same issue (1.15.2, ubuntu 20.04 LTS with ufw enabled). It turns out that the Ryuk container is started on the default bridge network, while my other containers are started in my custom bridge network. Then the ufw firewall doesn't allow communication between these private networks, which I could resolve by adding rules. A nicer solution for me would be if I could specify in which network the Ryuk container is started, but I can't find that anywhere, such that it also starts in my custom bridge network.

Encountering this issue after updating docker desktop on Windows to the latest version version 3.4.0 (65384)

any update here ?


Add emptyColor option fill the star instead of it just colors the border

Currently, the emptyColor only colors the border of the star. We can add a prop to use a star type for the emptyColor.

I'm not sure what you mean. The default empty icon is basically just a border, it's not filled. You can always use the StarIconComponent prop to do your own customizations. Here is an example: https://github.com/bviebahn/react-native-star-rating-widget/blob/master/example/src/CustomIconExample.tsx


P47

Regarding "While we don’t expect that second watch to execute, we don’t expect an exception to be thrown either, which is what actually happens."
No exception was thrown. kindly recheck test code.

Confirm. Modifying the test to catch exception fails it.

I'm getting an exception as described in the book.
'undefined' is not an object (evaluating 'watcher.watchFn')


Type Error: Cannot read property 'X' Of Null

Error
`
} else { throw e }
^
TypeError: Cannot read property 'x' of null
at isPositionNearPath (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:195:40)
at EventEmitter. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:288:9)
at EventEmitter.emit (events.js:315:20)
at WorldSync. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:470:44)
at WorldSync.emit (events.js:315:20)
at WorldSync._emitBlockUpdate (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:61:10)
at WorldSync.setBlockStateId (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:150:10)
at updateBlockState (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:257:15)
at Client. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:364:5)
at Client.emit (events.js:315:20)
`
Request
according to mineflayer api:https://github.com/PrismarineJS/mineflayer/blob/master/docs/api.md#blockupdate-oldblock-newblock
In BlockUpdate function,oldblock can be null
but your plugin does not handle such type of null error
it is suggested that in the isPositionNearPath function,you add null check error first
then everything will be solved
it can be predicted that more errors like this can show up because as i remember some other events also have null parameters
it is strongly recommended to review the code once a while in order to prevent them thereafter

Thanks has been fixed with #269


The Modbus RTU server is not working as expected.

Describe the bug
I followed step by step according to Modbus RTU
But the result is different with what is shown in this page.
To Reproduce

run these commands:
west build -b nrf52840dk_nrf52840 samples/subsys/modbus/rtu_server -- -DDTC_OVERLAY_FILE=cdc-acm.overlay -DEXTRA_CONF_FILE=overlay-cdc-acm.conf
west flash
install pymodbus using PIP.
run this comamnd:
pymodbus.console serial --port COM8 --baudrate 19200  --bytesize 8 --parity N --stopbits 2
run this command

client.write_coils address=0 values=0,1,1 unit=1

run this command

client.read_coils address=0 count=3 unit=1

Expected behavior
I'm expecting this output:

Logs and console output
But I received this output:

Environment (please complete the following information):
OS: windows 11
Zephyr version: 3.6
Zephyr sdk: 0.16.5
Target: nrf52840DK
Additional context
The only difference between the instructions implied in the document with what I have done, is that in the document is says --port /dev/ttyUSB0 in pymodbus.console serial --port /dev/ttyUSB0 --baudrate 19200 --bytesize 8 --parity N --stopbits 2 but i have changed the port because I'm using windows.

Update: I tested using a USB to TTL adapter instead of the NRF52840 USB, but I obtained the same result.

Any update?
@jfischer-no

Hi,
@nashif @henrikbrixandersen @jfischer-no
Any update?

3. rity N --stopbits 2
4\. run this command

client.write_coils address=0 values=0,1,1 unit=1

6. run this command

client.read_coils address=0 count=3 unit=1

Sorry, finally found some time to look at this and reproduce it, pymodbus changed the user interface in newer releases, our sample documentation is fixed in 8e026ba19e9a4706dfb269ccc8bfee1e50b2622. It looks like if device address (slave argument) is not specified, it defaults to 0, what is broadcast address, from the spec, "No response is returned to broadcast requests sent by the master. The broadcast requests are necessarily writing commands.".
https://docs.zephyrproject.org/latest/samples/subsys/modbus/rtu_server/README.html
> client.write_coils address=0 values=0,1,1 slave=1
{
    "address": 0,
    "count": 3
}

> client.read_coils address=0 count=3 slave=1
{
    "bits": [
        false,
        true,
        true,
        false,
        false,
        false,
        false,
        false
    ]
}


docker-compose and helm: Add variables for celeryworker prefork and uwsgi thread/procs control

uwsgi: add 2 variables for processes and threads number
celery: add variables for control over pool type and related config
(While this is in draft, the actual default values would not reflect what would go upstream, but more what I am playing with).

Tested docker-compose, looks good.
Have not tested the helm stuff. @ccojocar maybe you can take a look?

LGTM

fyi @dsever - minor changes in the helm configmap.


How to Filter Raw Query with DataTables as a Service

I am using the DataTables as a Service and in the query() method, I am trying to use a RAW query because of its complexity. I followed the suggestions in Issue #239:
public function query() {

   $registrations = DB::table(DB::raw("(select distinct(ev.id) as event_vendor_id, ...

   return $this->applyScopes($registrations);
}

However, in the ajax() method when I try to implement a custom filter as below, I get back the same error - "SQLSTATE[42000]: Syntax error or access violation: 1583 Incorrect parameters in the call to native function 'lower' (SQL: select count(*) as aggregate from (select * from (select distinct(ev.id) as event_vendor_id, ...
public function ajax() {

   $registrations = $this->query();

   return $this->datatables
      ::of($registrations)
      ->filterColumn('event_vendor_status_datetime', function ($query, $keyword) {
         $query->whereRaw("DATE_FORMAT(ev.event_vendor_status_datetime,'%m/%d/%Y') like ?", ["%$keyword%"]);
      })
      ->make(true);
}

I also tried changing the query to the following:
public function query() {

   $registrations = DB::select("select distinct(ev.id) as event_vendor_id, ...

   $registrations = collect($registrations);

   return $this->applyScopes($registrations);
}

In this case, the filter does not return an error but also doesn't do any filtering at all.

Maybe try creating a view instead that encapsulates your complex query? Then use it like a normal table? And btw, please avoid using ::of on service approach as it's a bit buggy.
public function query() {

   $registrations = DB::table('your_view_name')

   return $this->applyScopes($registrations);
}

...

return $this->datatables->queryBuilder($registrations)->make(true);

Is using a view the only solution? Also, just trying to understand why it doesn't work the way it is. Is it because DB::select returns the result set right away in the query() method whereas DB::table returns a Builder? Thanks for all your help!

You can still use a raw query if you prefer like the demo on unions.
I think DB::select returns a collection if using 5.3 so the correct engine would be ->collection($data)
For DB::table it returns, a Query\Builder instance.


chore: remove helm rbac

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

Project coverage is 0.00%. Comparing base (885c3fd) to head (2425721).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1366   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files         69      69
  Lines       6685    6685
=====================================
  Misses      6685    6685

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


Docker build shell test

The build will fail for bash v3.0.0 as the dependency bats fails in bash 3.0.0

@mtdowling Please let me know what else is needed to merge this PR.
FreeBSD is not supported by docker as of now as a freebsd docker image can only be run on a FreeBSD OS.

Reminder, please review the PR and let me know what else this needs to be merged.

I could really use some help here please @area51nrage


Extract credentials into a .env file

Background on the problem the feature will solve/improved user experience
The credentials are coded in the src file.
https://github.com/Call-for-Code-for-Racial-Justice/Open-Sentencing-UI/blob/main/web/src/app/services/appid-authentication.service.ts
Describe the solution you'd like
Take out the credentials into .env file
Tasks
FYI @demilolu

Just curious, there are typescript files for environment variables in the web > src >environments directory, would it be better to just make fields for the credentials there?


Chunks with extreme offset cause ValueError

I guess we could further stricten our sanity checks to disallow chunks having greater than (1<<63)-1 offsets.
The offending chunks comes from the yaffs handler:
Traceback (most recent call last):
  File "/home/vlaci/devel/git/github.com/IoT-Inspector/unblob/unblob/finder.py", line 74, in search_chunks_by_priority
    chunk = handler.calculate_chunk(limited_reader, real_offset)
  File "/home/vlaci/devel/git/github.com/IoT-Inspector/unblob/unblob/handlers/filesystem/yaffs.py", line 148, in calculate_chunk
    files, offset = self.get_files(file, start_offset, config)
  File "/home/vlaci/devel/git/github.com/IoT-Inspector/unblob/unblob/handlers/filesystem/yaffs.py", line 105, in get_files
    file.seek(current_offset, io.SEEK_SET)
  File "/home/vlaci/devel/git/github.com/IoT-Inspector/unblob/unblob/file_utils.py", line 215, in seek
    new_pos = self._file.seek(offset, whence)
ValueError: cannot fit 'int' into an offset-sized integer

Wrong repository, sorry for the noise


Notebook: running query does not show any results (web)

Steps to Reproduce:

open our my-work.github.issues in web
run any query

=> 🐛 not result showing up
Works fine in insiders native.

I am seeing this in devtools:
VM10:7 GET https://a62bc1b8-38eb-4214-bd84-57c485de2fbb.vscode-webview-test.com/db40434f562994116e5b21c24015a2e40b2504e6/vscode-resource/vscode-remote//localhost%3A9777/Users/bpasero/.vscode-web/extensions/ms-vscode.vscode-github-issue-notebooks-0.0.39/dist/renderer.js net::ERR_ABORTED 404

@connor4312 looks like the render doesn't load correctly on the web. Looks like paths are double-joined

@jrieken are you hitting this? https://github.com/microsoft/vscode-internalbacklog/issues/1318

This still reproduces with today's insider and the linked issues are closed.

This works in the playground for me -- are you seeing the same 404 error?

@connor4312 can you try running locally? Via resources/server/web-selfhost.sh?

cc @mattbierner

@connor4312 This seems caused by 24b712d7c201f74a6bd50742f1eb7602f699e640. Other webview resources are loading fine so I think it is notebook specific.
The requesting uri looks like:
https://UUID.vscode-webview-test.com/COMMIT/vscode-resource/vscode-remote//localhost%3A9888/Users/matb/.vscode-web-dev/extensions/ms-vscode.vscode-github-issue-notebooks-0.0.41/dist/renderer.js

While one from the markdown preview looks like:
https://UUID.vscode-webview-test.com/COMMIT/vscode-resource/file///Users/matb/projects/vscode/extensions/markdown-language-features/media/markdown.css

The part after vscode-resource is supposed to be the uri scheme.  Notice how the markdown resource is using file here while the notebook one is using  vscode-remote.
Will keep investigating

The vscode-remote part comes from the extension location here:
https://github.com/microsoft/vscode/blob/24b712d7c201f74a6bd50742f1eb7602f699e640/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.ts#L34

After investigating I think that notebook resource loading never worked in web. It seems like we had shims for webviews loading remote resources when associated with a single extension, but this is not the case for renderers.
I don't have a deep understanding of webview related things, but I learned a lot more and made a commit that fixes it here: https://github.com/microsoft/vscode/commit/41fb3d6e8160a7360c438360a7951f2b371954c7 Let me know if you think this is the right approach.

Thanks for the investigation @connor4312.
https://github.com/microsoft/vscode/commit/02bafd47bb732773b77882b1a15e2f2dd09fa987 seems to have fixed the issue for me? Can someone else please verify this though before I close this out

I'll give it a shot, might have overcomplicated things when debugging :)

Yep that works.


fix hint errors

This PR fixes two minor hint errors and simplifies the hint package.json script.

protip: package.json scripts will look for executables in ./node_modules/.bin/ by default

I was originally trying to see how easy it would be to swap out your URL fetching logic and replace it with himawari-urls -- turns out it's more complicated than I thought.
@jakiestfu let me know if you'd like commit access on himawari-urls since it's based on your work and was meant to provide a solution to #3. It's an open open source project :grin:

This PR makes me want to add some actual tests too -- do you have a strong preference for writing tests in your modules? I tend to use tape.

This requires the user to have jshint installed globally and thats a dependency I'd rather not meet... If you agree and are willing to revert that package.json change, I'll gladly merge.
Thoughts?

@jakiestfu it doesn't require the user to have jshint installed globally. I 100% agree that users shouldn't have to install global dependencies to develop a node module.
What I'm saying above is that
"hint": "./node_modules/jshint/bin/jshint index.js bin/cli.js",
and
"hint": "jshint index.js bin/cli.js",
are equivalent, because npm looks for the jshint executable in the local ./node_modules/.bin directory. I don't have jshint installed globally, but npm run hint works fine for me. Just less things to keep in package.scripts. See docs here: https://docs.npmjs.com/misc/scripts#path

Thanks dude!


[xrc20-balance-of] add support for iotex testnet

@bonustrack @ChaituVR please check it, thanks a lot.


request help: Why apisix-go-plguin have performed very poorly

Issue description
use lua-fault-injection return message，its performance is normal，but, use go-plguin-say return message, which have performed very poorly
Environment

APISIX Go Plugin Runner's version: 0.2.0
APISIX version: 2.13
Go version: go 1.17
OS (cmd: uname -a):
apisix deployed in CentOS 7.9 64， ali ecs 2C8G
wrk deployed in CentOS 7.9 64，ali ecs 8C16G

path:/hello，lua-fault-injection
path:/get，go-plguin-say

The data don't surprise me.
The performance of Lua version is very high because its path is shorter:
client -> APISIX -> client
The path of the Go version is:
client -> APISIX -> Runner -> APISIX -> client.
For a regular path (client -> APISIX -> [Runner -> APISIX ->] upstream -> APISIX -> client), requests go through the runner will be 50% slower because of the RPC overhead.
The RPC overhead is high when it is measured with a simple Hello world case.


LBRY associates itself with html files on GNU/Linux without asking

Bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
"Each time when I start LBRY it sets HTML file
association to itself. I really don't want to open HTML files on my
computer with LBRY. This behavior is annoying."
System Configuration

Operating system: Debian 10 and Debian 11
Latest app from Deb file

Additional context
Reported by user via email

Duplicate of #4729


[COASTAL-1291] update for pluggable protocol

https://tidepool.atlassian.net/browse/COASTAL-1291

@ps2 Did you want to review this?


Bindings for C++

Let's start the equivalent of osm2street-js, but for C++. I haven't looked through the different options for doing this yet.
CC @wxinix

We're still interested in doing this at some point, but no active plans to -- help is very welcome!


codesandbox>axios dependency update

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
When codesandbox has updated its axios dependency, and then remark-codesandbox upgraded to include that dependency, update our gatsby-remark-inline-codesandbox dependency.
PR to bump axios from 0.18.1 to 0.21.1
Examples 🌈
No response
Motivation 🔦
No response

This may no longer be necessary, with the change to dependency organization

No longer adding features to this project. Closing.


Pornhub Playlists Unsupported

Hello!
Are there any plans to include support for playlists on Pornhub?  They currently fail as unsupported URLs.
youtube-dl --verbose http://www.pornhub.com/playlist/6201671
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.pornhub.com/playlist/6201671']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.3 - Linux-3.13.0-45-generic-x86_64-with-Ubuntu-12.04-precise
[debug] exe versions: avconv 0.8.16-4, avprobe 0.8.16-4, ffmpeg 0.8.16-4, ffprobe 0.8.16-4, rtmpdump 2.3
[debug] Proxy map: {}
[generic] 6201671: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 6201671: Downloading webpage
[generic] 6201671: Extracting information
ERROR: Unsupported URL: http://www.pornhub.com/playlist/6201671
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 730, in _real_extract
doc = parse_xml(webpage)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1515, in parse_xml
tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 75, column 22
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 643, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 269, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1169, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.pornhub.com/playlist/6201671

Playlist will be supported in the next version. Thanks for the report.

I believe this issue to be fixed in youtube-dl 2<IP_ADDRESS>. See our FAQ if you need help updating.


Update router-configuration.js

#134 line have an expression error.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

exportToRouter is the correct method name.


Update windows install prerequisites script

The script for installing prerequisites on windows has he following shortcomings:

it does not work on a fresh msys installation
it fails to extend PATH so that it can use the python interpreter it installs
it incorrectly adds the toolchain to PATH
it does not gracefully handle a failed download of the toolchain zip file
it references an outdated toolchain zip file

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Thanks @stefangotz , this looks good and handles most (all?) of the Windows bringup issues mentioned in #200.
Can you please click through and sign the repository's CLA?

@stefangotz ???

As I've discussed with @projectgus via e-mail, I'm not comfortable signing the CLA. Sorry about that.


replace haproxy with traefik?

the project look very promising: https://github.com/containous/traefik
What do you think?

Traefik does not support plain tcp. Otherwise it looks pretty cool and we have been following that project closely.

@mtrofimm what features are you missing from our haproxy based loadbalancer?

Mostly letsencrypt, sticky sessions.

Added issue about sticky sessions: #799 . Letsencrypt is tracked in #704 .


Graph multiple cell types

Is it possible to return a joint graph visualization given a list of CellType objects ?
Something akin to the cellxgene cell ontology graph would be super useful, which would display relationships between a subgraph of selected cell types as well as non-selected parent and children entities

Thank you for requesting @j-bac! It still needs to be built, but we'll have that soon and likely also in the UI!


Can not create admin User

Hello after suscesfully installing gadael the application is running but, I think that in the first use it should ask me to set a default admin, but I browse http://<IP_ADDRESS>:3000 and I can not set the administrator user.
Is there anything I can do?

Hello,
Yes, if you used the install.js command to create the database, you need to set the config.mongodb.init to FALSE in the config.js file because your database is already initialized (i think this setting is unclear in documentation, i need to fix that or change de default value).
You can change the url setting in config, the default value is wrong for your setup.
If the users collection is empty in your database and if the server is started successfully, a popup will appear on first page for the first admin creation

Hello, I already changed the  config.mongodb.init to FALSE. And the application starts only with a warning:
(node:3264) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
With the server started If I go to localhost:3000 There is no pop-up (I checked the users collection in MongoDB and is empty).
This is the webpage I get:

What do you mean, about this? You can change the url setting in config, the default value is wrong for your setup.
Thanks a lot.

from your screenshot, i think the javascript/html is not loading correctly.
in your config.js, the url setting should look like this:
config.url = 'http://<IP_ADDRESS>:3000/';

No luck with the change I have the same behaviour. I send you my config.
I have also tried config.host = 'localhost'
config.zip

Thanks for your help

@marcoscq-sp what was the solution ?


feature: split build workflows into smaller ones

Is there an existing issue for this?

[X] I have searched the existing issues

Feature idea
split build workflow into

build package build.yml
execute unittest test.yml
upload code coverage coverage.yml

Alternatives
e.g. if upload of code coverage fails, all unittests have to be executed again just to trigger a reupload
Implementation idea
No response
Participation

[X] I am willing to submit a pull request to implement this feature.

Link to the idea discussion
No response

do not split workflows but rather use fail_ci_if_error such that the ci fails if the coverage upload fails. also, by branch permissions, merging is blocked if ci failed


Exposed histogram data are not always consistent (concurrency issue)

Summary
According to Prometheus Exposition Format, a single Histogram is represented by multiple time series (1 time series per bucket).
The values of those time series must be consistent (every next bucket must have a greater or equal value).
Apparently, Kong Prometheus Plugin occasionally breaks this requirement.
Presumably, it is a concurrency issue (histogram is being updated while scraping is in progress).
Steps to reproduce

Configure Prometheus Plugin (e.g., curl -X POST http://localhost:8001/plugins --data "name=prometheus')
Create a concurrent load on Kong Proxy (e.g., ab -t 60 -c 20 -H 'Host: www.example.org' http://localhost:8000/)
Scrape metrics while load test is in progress (e.g., curl http://localhost:8001/metrics)

Occasionally, returned values are inconsistent, e.g.
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="00001.0"} 569
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="00002.0"} 2221
...
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="00300.0"} 195204
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="00400.0"} 195228
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="00500.0"} 195230
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="01000.0"} 195230
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="02000.0"} 195230
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="05000.0"} 195230
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="10000.0"} 195230
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="30000.0"} 195229
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="60000.0"} 195229
kong_latency_bucket{type="upstream",service="kong-demo-1.nginx.80",le="+Inf"} 195230
kong_latency_count{type="upstream",service="kong-demo-1.nginx.80"} 195230
kong_latency_sum{type="upstream",service="kong-demo-1.nginx.80"} 4482078

Notice that a value for buckets le="30000.0" and le="60000.0" is lower than for bucket le="10000.0.

This shouldn't be the case anymore with recent performance improvements that fffonion has put in. Thanks for the report.


Where is it recommended to run validation centrally?

I'd like to manage HTML validation in one place and automatically run it once a page loads in any case. This is for a project that utilizes Atata page classes only to a small extent. What would be your recommendation for this? There is no "page loaded" event in Selenium.
We do use central extension methods for clicking on elements and navigating to URLs (as in RemoteWebDriver.Navigate()). My idea is to extend these methods with automatic HTML validation if the URL changed after the action (or better, if a common element like <html> from before the action became stale after the action so even reloads of the same page will trigger it).
While clicks and explicit navigation are not necessarily the only actions that can change the HTML output of a page of course, nor is a crude dirty check like the URL changing or the <html> element becoming stale perfect but I think this is a good enough approach for most pieces of UI. Then for anything else not covered an explicit validation call can happen.
What do you think?

Generally, I would probably execute HTML validation in a separate set of tests that only does the validation. Keeping functional E2E tests clean with only the verifications that they do. I prefer a concept of a test that does a single assertion, or a single joint set of assertions.
Invalid HTML, in case of injected HTML validation into regular UI tests, can fail and stop the test execution because of minor HTML issues. I would better have separate CI test results information, for functional UI tests and validation UI tests.

If you surely want to inject HTML validation, then as an option is to create a trigger attribute like below:
public class ValidateHtmlAttribute : TriggerAttribute
{
    public ValidateHtmlAttribute(TriggerEvents on = TriggerEvents.Init, TriggerPriority priority = TriggerPriority.Medium)
        : base(on, priority)
    {
    }

    protected override void Execute<TOwner>(TriggerContext<TOwner> context)
    {
        context.Component.Owner.ValidateHtml();
    }
}

Then add it to all page classes to be invoked upon page object init:
AtataContext.GlobalConfiguration
    .Attributes.Global.Add(new ValidateHtmlAttribute());

Now this trigger will execute HTML validation at any page visit. But, as you mentioned, you firstly need to find a way to wait for a pages to load. There is no silver bullet here, you need to investigate client-side site engine to find an indicator of page readiness. It can be some HTML indicator or JavaScript flag/method. There are triggers in Atata, for example, for jQuery-based sites and Angular.js.

Great, thank you!
While in theory I'd agree that a test should have a single assertion but UI tests already do a lot of implicit assertions. And they're expensive so running them once is more than enough and I'd collect as much data as possible (an HTML validation error is a fail for the test regardless of it being logically correct).


Support "base" config of Vite or alternatives

What is the feature you are proposing?
When client code is present, it is not possible to deploy a site built with HonoX to GitHub Pages.
When deploying a site built with Vite to GitHub Pages, it is instructed to change the base setting.
Behavior for embedded deployments is also provided.
FYI: My workaround and considerations:

vite.config.js cannot be read from runtime, so I could not directly tell the Script component the value of base. And the Script component uses "/", so it is not configurable.
I have implemented my own Script component equivalent to get around this, but there may be a better way to do it.

The base value is shared by environment variables.

Hi @berlysia
I don't understand your problem 100%, but will it be resolved if you change the path /dist/.vite/manifest.json in this line?
https://github.com/honojs/honox/blob/f2094e35ac0010dd8e7b52771fadd2f0b426c4b2/src/server/components/script.tsx#L18


docs: generate and host R documentation

Yeah. I don't think the theme is too big a deal; if anything, it'd be better to give R users something familiar.


refactor(instr-knex): use exported strings for attributes

Which problem is this PR solving?

Updates #2025

Short description of the changes

Update @opentelemetry/semantic-conventions to ^1.22
Replace SemanticAttributes.* with exported strings SEMATTRS_*
Update README with new semantic convention package version and key

This one looks like it's missing the update to package.json and package-lock.json 🙂

Indeed! thanks for the heads up :)


How to specify operator right associativity

For example, exponentiation(^) is right associative

I have some ideas about branch_tag and associativity.
expr <- lhs=expr ("+"/"-") rhs=expr #ADD
    / lhs=expr ("*"/"/") rhs=expr   #MUL
    / lhs=expr "^" rhs=expr         #POW
    / "(" expr ")"                  #P
    / num                           #N

We can solve it as:
expr <- expr0;               #ADD
expr0 <- expr0 "+-" expr1
    / expr1;                 #MUL
expr1 <- expr1 "*/" expr2
    / expr2;                 #POW
expr2 <- expr3 "^" expr2
    / expr3;                 #?
expr3 <- "(" expr ")"        #P
    / num;                   #N

I still think this way of writing in ANTLR is more appropriate
I wrote a transformation to put
expr <- "(" expr ")"
    / expr ("+"/"-") expr
    / expr ("*"/"/") expr
    / expr "^" expr
    / prefix ~ expr
    / expr ~ postfix
    / num
    ;

num <- re#0|[0-9][1-9]+#;
prefix <- "++"/"+";
postfix <- "++";

into
expr <- expr0 EOI
	;
expr0 <- "(" expr0 ")"
    / expr1
    ;
expr1 <- expr1 ("+"/"-") expr2
    / expr2
    ;
expr2 <- expr2 ("*"/"/") expr3
    / expr3
    ;
expr3 <- expr4 "^" expr3
    / expr4
    ;
expr4 <- expr4 postfix
    / expr5
    ;
expr5 <- prefix expr5
    / expr6
    ;
expr6 <- var;

var <- re#[a-z]#;
prefix <- "++"/"--"/"+"/"-";
postfix <- "++";

In my experiment, it can correctly handle the precedence and associativity.
I now need a way to simplify the intermediate nodes, which requires additional node information.
Now there are two solutions, one is to add the tag Rule::PROMOTE, and the other is tag_node("PROMOTE")
    Rule::PROMOTE => {
        let len = node.children.len();
        match len {
            0 => {  },
            1 => {
                let mut children = node.children;
                flatten_rec(children.remove(0), buffer)
            },
            _ => buffer.push(flatten(node))
        }
    }

I haven't decided how to do it yet, I'm going to wait until branch_tag is available and deal with it together


python310Packages.velbus-aio: 2022.9.1 -> 2022.10.1

Description of changes
https://github.com/Cereal2nd/velbus-aio/releases/tag/2022.10.1

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 194175 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.velbus
python310Packages.velbus-aio
python39Packages.velbus-aio


Decryption not working on IOS 13

decryption work fine pervious version but not working on IOS 13.please help

mytext: 1234
crypto: LXY1ElqyWvsPV+YaRf6FdoY3GNUbijO4bKUwlcJTmuA=
decrypt: cannot decrypt
key: mykey
cannot decrypting , in ios13, xcode 11, macos catalina, Please help.

same issue

same issue decryption not working on IOS 13

I am having the same problem just started to debug. It is not refreshing the encryption on login. I will let you know if I find anything out

I have partially gone through apples code and have not seen any major changes to the lib as of yet. I did change a little code in order to get a new encrypted password each time, which wasn't working properly. My server has been throwing Errors only on Xcode 11 builds so it is clearly something in Xcode11.

The sha256 for the same key on iOS12 and iOS13 are different, the problem could be somewhere there. The return value for CryptLib().sha256("placeholderKey", length: 32) is

iOS13 0x8cce86e407960

iOS12 0x8cce86e407960550edf12b4ebbc16cb7

@skavinvarnan
@Farcvel
@squ
Inside:
- (NSString*) sha256:(NSString *)key length:(NSInteger) length
I replaced
NSString *hash=[out description];
To
NSString *hash=[out debugDescription];
And everything got back to normal

worked for me, awesome!

@skavinvarnan
@Farcvel
@squshipillow
@ahsankhatri
Inside:
- (NSString*) sha256:(NSString *)key length:(NSInteger) length
I replaced
NSString *hash=[out description];
To
NSString *hash=[out debugDescription];
And everything got back to normal
#31

thanks man work fine now

@skavinvarnan
@ahsankhatri
I have found another issue with the decryption method  -decryptCipherText: key : iv:
`- (NSString *) decryptCipherText:(NSString *)ciperText key:(NSString *)key iv:(NSString *)iv {
return [[NSString alloc] initWithData:[[CryptLib alloc] decrypt:[[NSData alloc] initWithBase64EncodedString:ciperText options:NSDataBase64DecodingIgnoreUnknownCharacters] key:[[CryptLib alloc] sha256:key length:32] iv:[[CryptLib alloc] generateRandomIV16]] encoding:NSUTF8StringEncoding];

}
Please see that the above method does not use the given argument for iv and it generates a random IV instead. This will also results invalid result while decrypting data. Please look into this and kindly change accordingly.
Thanks in advance.

Refer below link.
https://stackoverflow.com/questions/58098958/aes-encryption-cryptlib-in-ios-13-not-working
You can use for nsdata to hex conversion below
#pragma mark - String Conversion
-(NSString*)hex:(NSData*)data{
NSMutableData result = [NSMutableData dataWithLength:2data.length];
unsigned const char* src = data.bytes;
unsigned char* dst = result.mutableBytes;
unsigned char t0, t1;
 for (int i = 0; i < data.length; i ++ ) {
      t0 = src[i] >> 4;
      t1 = src[i] & 0x0F;

      dst[i*2] = 48 + t0 + (t0 / 10) * 39;
      dst[i*2+1] = 48 + t1 + (t1 / 10) * 39;
 }

 return [[NSString alloc] initWithData:result encoding:NSASCIIStringEncoding];

}

(NSString *) decryptCipherTextRandomIVWithCipherText:(NSString *)cipherText key:(NSString *)key;
is not working properly in iOS13

@skavinvarnan
@Farcvel
@squshipillow
@ahsankhatri
Inside:
- (NSString*) sha256:(NSString *)key length:(NSInteger) length
I replaced
NSString *hash=[out description];
To
NSString *hash=[out debugDescription];
And everything got back to normal
#31

thanks you man work fine now

`NSString *hash=[out debugDescription];

Inside:

(NSString*) sha256:(NSString *)key length:(NSInteger) length
I replaced
NSString *hash=[out description];
To
NSString *hash=[out debugDescription];
And everything got back to normal


Add custom transpiled circuit setter

Summary
This PR enables users to provide custom transpiled circuits by setting exp.custom_transpiled_circuits.
To-do:

Add documentation

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


Make the class path relative to the project

When the sbt option retrieveManaged is 'true', then it would be nice for the classpaths set in .classpath to be relative to the project root. This allows the .classpath to be shared by more than one user when devs check out code.

For "lib" entries in the generated .classpath, the location of the user's Ivy cache is hard-coded, e.g., "/home/myuser/.ivy2/cache/org.scala-tools.sbt/sbt_2.9.1/jars/sbt_2.9.1-0.11.0.jar". Can this be changed via configuration? This location should ideally be defined in a Classpath Variable like IVY_CACHE which is then referenced in the .classpath.

excellent thanks

Is this still not fixed in 4.0.0?
EclipseKeys.relativizeLibs := true
generates
<classpathentry sourcepath="/home/norru/.ivy2/cache/org.slf4j/slf4j-api/srcs/slf4j-api-1.7.7-sources.jar" kind="lib" path="/home/norru/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar"/>
I would expect a mechanism to replace /home/norru with USER_HOME as suggested by a comment above.

This seems to work with both keys set:
retrieveManaged := true,  EclipseKeys.relativizeLibs := true,


Add version: TopazLabs.TopazPhotoAI version 1.0.2

Pull request has been created with Komac v1.11.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

Hi @BiosPlus,
This manifest adds Apps and Features entries that aren't present in previous PR versions. Should these entries also be added to the previous versions?
(Automated response - build 655.)


⚠ ClamAV has degraded performance

In a3cf3a0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 198 ms

Resolved: ClamAV performance has improved in 11b3a5c.


Dynamic plug-in infrastructure

DroneCore has its functionality built with compile-time plug-ins such as Action, Mission, Telemetry, etc. When DroneCore is built, we can choose which plug-ins we're interested in. Build chooses plug-ins in plugins directory and generates DevicePluginContainer class and methods to access to the "choosen" plug-in objects. It is necessary to build DroneCore if we wanted to add a new plug-in to it.
We're interested to add new plug-ins which DroneCore will pick it up run-time. Theoretical approach for this is here.
However, as we're interested to developing language bindings using gRPC; gRPC requires .proto files for each of the plug-in to be known at compile-time.
We're yet to investigate the feasibility of both (gRPC & dynamic plug-in).
Updates on this activity will posted here.

One idea was to mangle multiple files together into one .proto. The plugins' proto files would basically be incomplete proto files that only work once embedded in a parent dronecore.proto file.

One idea was to mangle multiple files together into one .proto. The plugins' proto files would basically be incomplete proto files that only work once embedded in a parent dronecore.proto file.

Would that allow run-time plugins (".proto files for each of the plug-in to be known at compile-time.")?

Would that allow run-time plugins (".proto files for each of the plug-in to be known at compile-time.")?

The .proto files are used to generate the gRPC headers, so that would be compile time.

Would that allow run-time plugins (".proto files for each of the plug-in to be known at compile-time.")?

The .proto files are used to generate the gRPC headers, so that would be compile time.

So interesting idea, but doesn't fit the original requirement.

Well, we can't have it all I think.

Well, we can't have it all I think.

The whole problem to be addressed by this issue is summarised up the top as: "It is necessary to build DroneCore if we wanted to add a new plug-in to it."
So I'm not concerned about having it all, but the fact that we're talking about solutions that don't meet any stated requirement.

@hamishwillee so actually @avinash-palleti made the proposal in the last SDK call to use separate .proto files. This way would support plugins to be loaded at runtime.
Here are some notes:
https://docs.google.com/document/d/1qmmbpal6k8QYL2jGSRdpB1owIw9LU56EREuezfQbzN4/edit

Thanks! Works for me.


[server] Get package version on the login page

Closes #2791

Create a new API function under the Authentication API endpoint
which can be used to get the package version without authentication.

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 4

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 15

Complexity increasing per file
==============================
- web/server/vue-cli/src/store/modules/version.js  2
- web/server/vue-cli/src/services/api/version.service.js  1
- web/server/codechecker_server/api/version_handler.py  1
- web/server/codechecker_server/server.py  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 14

Complexity increasing per file
==============================
- web/server/vue-cli/src/services/api/version.service.js  1
- web/server/codechecker_server/server.py  1
- web/server/codechecker_server/api/version_handler.py  1
- web/server/vue-cli/src/store/modules/version.js  2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 14

Complexity increasing per file
==============================
- web/server/vue-cli/src/store/modules/server-info.js  2
- web/server/vue-cli/src/services/api/server-info.service.js  1
- web/server/codechecker_server/api/server_info_handler.py  1
- web/server/codechecker_server/server.py  1

See the complete overview on Codacy


Add configuration value for last used display device

Even though I said here: #1914 that I would wait, I went ahead and implemented the simplest mentioned approach as a proof of concept. Please let me know if you prefer a different way to store the last display than via its index.
It does work for all window modes, provided the changes of #1909 are present.
(I excluded them from this PR to avoid merge conflicts)

[x] Depends on #1909

There are currently two methods: GetCurrentDisplay (overridden from GameWindow) and SetCurrentDisplay (declared in DesktopGameWindow). Should they be exposed in a property instead?
That would require adding a setter to the base class, but I don't see how that would be an issue.
As far as I can tell, DesktopGameWindow and MacOSGameWindow are currently the only classes inheriting from GameWindow in both the framework and the main repository and potential future child classes could simply choose to not implement the setter without breaking anything.
The refactoring wouldn't affect the main repository, just three files in the framework.
If you support the idea, please also let me know whether to keep the property name (CurrentDisplay) or change it to something else.

Having it in a property sounds like a welcome refactoring. Also probably worth it to create a separate method for CenterToScreen().


PiMios - HIP19 third party manufacturer application

Submitting PiMios for third party manufacturer approval.
Email<EMAIL_ADDRESS>Application: https://github.com/PiMios/HIP/blob/master/0019-third-party-manufacturers/pimios.md
This effort is very important to us, and we would love to contribute to the Helium community. Thank you for your consideration!

Hello! Thanks for your interest in joining the network. Someone from the Manufacturing Oversight Committee will be in touch.


Backup view showing all bucket files including non backup files

The backup view is currently showing all types of uploaded files in from the bucket. It should show pocketbase backups only. Affected versions are 0.22 & 0.23

It is expected if you are using the same bucket.
I recommend keeping the backups separate from your uploaded files storage (that is also the reason why there is support for 2 different S3 configs).

I have a feeling that I already duplicated it from a previous issue I created. Sorry if I did so. What if the config of next 0.24 prevents using the same bucket for files and backups by design?

I guess it is possible to add extra validations but I don't think it is really necessary. At the end we don't store references to the backups in the database and the listing is just a convenient method utilizing the ListObjects/ListObjectsV2 S3 API, meaning that anything that you put in the bucket for which you have permissions would be visible (this includes custom backup files generated via the hooks).


error: could not compile syn (build script) due to 1 previous error

following the official quickstart, i ran into errors trying to generate proofs
while in the script directory, i ran cargo run --release and got errors
i am using an ubuntu 20.04 virtual server

sp1 was directly downloaded from pre-built binary

proof was generated sucessfully using ubuntu 22.04 system and repeating the process that generated the initial errors

I have very similar error, and my friend could compile my code without any errors, so highly likely the problem is in my setup (like which clang is used, which linker is used, etc). However, I didn't find fix yet

Closing for now as likely outdated, feel free to reopen.


Problem with playing the demo

Hey, so when I try to play the demo on the website, it says bad gateway and everything’s fine but it says host error in so I’m trying to figure out what’s going on

right now its down, we are checking out whats wrong )


Set fixed animation duration for radial chart

Summary
For radial charts, we would like to be able to set a fixed animation duration, so we can control how long an animation takes.
Currently, it is only possible to set an animation speed, but the actual animation duration is calculated based on the value, so the animation for a low value is very fast, and the animation for a high value is slower.
API Changes
Either the way the duration of the radial chart animation is calculated should be changed to a fixed duration (which could be configured via the speed setting), instead of calculating it based on the values. Or you should be able to configure whether you want to set a fixed duration or use a relative speed.
Intended Use Case
Currently, when you have a radial chart, the animation duration is dependent on the value of the chart and the speed setting. For a low value, the animation is very fast; for a higher value, the animation takes longer.
The problem here is that when there is a lower value, there is actually less to animate (the radial chart is filled less), and it takes less time to fill it. So when you have a lower value, the animation is so fast, it is hardly noticeable. Of course you could increase the speed setting, but that would time charts with a higher value would take too long to animate. So imo, setting a fixed duration would be better: animating takes 800 ms, for example.
In our use case, we also have multiple radial charts on the same page, each with different value, and thus each now have a different duration. It would be much easier on the eyes if the duration for all these charts would be the same, regardless of the value. So a chart with a low value, animates slower, and a chart with a higher value, animates faster. But they all have the same duration, so they're all finished animating at the same time.
So in this example, I want both charts to be finished animating at the same time

Like this:

The work around currently would be to calculate the speed needed for a fixed duration: https://codepen.io/bartrikers/pen/PoJEZEp
PS: I'm not familiar with other chart types, so I don't know if this also applies for other chart types.

You're right. The current implementation is wrong as it shouldn't take the value into consideration and just finish the animation by the speed set by the user.
I will correct this behavior, thanks for pointing this out!