bug: java.lang.NoSuchMethodError on executing a graphql query against an apollo server

Expected behavior
Retrieve data from apollo server with the dgs client.
Actual behavior
I am getting the following error:
ERROR 366844 --- [nio-9102-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: 'reactor.util.context.ContextView reactor.core.publisher.MonoSink.contextView()'] with root cause

java.lang.NoSuchMethodError: 'reactor.util.context.ContextView reactor.core.publisher.MonoSink.contextView()'
        at reactor.netty.http.client.HttpClientConnect$HttpObserver.<init>(HttpClientConnect.java:329) ~[reactor-netty-http-1.0.18.jar:1.0.18]
        at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.lambda$subscribe$0(HttpClientConnect.java:259) ~[reactor-netty-http-1.0.18.jar:1.0.18]
        at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:57) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.FluxRetryWhen.subscribe(FluxRetryWhen.java:77) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.MonoRetryWhen.subscribeOrReturn(MonoRetryWhen.java:46) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:272) ~[reactor-netty-http-1.0.18.jar:1.0.18]
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.Mono.subscribe(Mono.java:4361) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.Mono.subscribeWith(Mono.java:4476) ~[reactor-core-3.4.10.jar:3.4.10]
        at reactor.core.publisher.Mono.subscribe(Mono.java:4193) ~[reactor-core-3.4.10.jar:3.4.10]

Steps to reproduce
I have the following code:
Query to execute against apollo server:
query getMovie($id: ID!) {
  movie(id: $id) {
    id
    name
  }
}

and my dgs client code is:
public Movie findAll(String id) {
  Movie movie = null;
  try {
    String URL = env.getProperty("graphql-movie.url");
    WebClient webClient = WebClient.create(URL);
    WebClientGraphQLClient client = MonoGraphQLClient.createWithWebClient(webClient);

    Map<String, Object> variables = new HashMap<>();
    variables.put("id", id);

    String query = StreamUtils.copyToString(new ClassPathResource("movie.graphql").getInputStream(), Charset.defaultCharset());

    Mono<GraphQLResponse> graphQLResponseMono = client.reactiveExecuteQuery(query, variables);
    Mono<Movie> response = graphQLResponseMono.map(r -> r.extractValueAsObject("movie", Movie.class));
    response.subscribe();
  } catch (Exception e) {
    e.printStackTrace();
  }
  return movie;
}

I am using dgs framework 5.0.5 version (but the same error occurs with any other older versions).
I only could execute this query with spring-boot 2.6.6 or lower versions. When I upgrade spring-boot version to 2.6.7 or higher I get the error mentioned above, and the query is not even getting to the apollo server.
I am not sure if this is a bug.
I noticed that in the change from 2.6.6 to 2.6.7 release of spring-boot, the reactor package was updated.
Upgrade to Reactor 2020.0.18 https://github.com/spring-projects/spring-boot/issues/30596)

Any advice?
For the moment I will continue using the 2.6.6 version of spring-boot.

Sorry, we haven't been able to look into this issue yet due to internal
priorities. If you are blocked, feel free to open a PR if you have more
context on how to fix this.
On Tue, Sep 13, 2022 at 9:02 AM Liam Osycka @.***>
wrote:

any update of this?
—
Reply to this email directly, view it on GitHub
https://github.com/Netflix/dgs-framework/issues/1182#issuecomment-1245622047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ5JPXIAORICRS63CSWX4OTV6CQSNANCNFSM55WK74BA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

This looks like it was an issue between reactor-netty and reactor-core; reactor-netty likely needed 3.5.+, while on your classpath you only had reactor-core 3.4.x. You'd either want to override the reactor-core version in SBN, or try upgrading to the latest DGS, since we've bumped the reactor-core version in our BOM in the meantime.


getting Assertion failed: ret == 0, when using example from repository of bcrypt.c file

Using gcc in netbeans on windows 10 to make the .a file,
I then link the .a file to a test project, and include the header file in it,
It compiles well, and executes but when calling

ret = bcrypt_gensalt(12, salt);
assert(ret == 0);

I get ret "Assertion failed: ret == 0, file main.c, line 20"
is this a bug or has it to do with the linking process

I'm guessing the library is unable to open /dev/urandom while running on Windows. As a matter of fact, I was unaware the library could be compiled on Windows. It's implemented for Unix-like systems. You should be able to verify the problem by checking the value of "ret".

the value in return is indeed ZERO, so I guess this issue should be closed. Thanks for the info.


[QUESTION] Add another section for cards

Question information
Hi, just want to know if we can also put cards just like https://sph-docs.netlify.app/
I want to move the developer here to make it good docs.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

A layout component?

Something like a layout component?

Sorry, I forgot to include this,

yep something like this ☝ so we can separate the docs for development. I forgot what hashi means, but if it's okay to include other docs, implement this xD

Yep we can make those, we just have to do the following to get the layout component to prod.

[ ] Create design spec in the Design Audit figma file.
[ ] Create a syntax spec.
[ ] Code the layout component.

For the mean time (while we're creating the component), you can create a grid layout class for the project.

Cancelling this request, since layouts are to be solved in the project's local environments


optionally set caching headers for /latest/, invalidate caches after build

This is a follow-up to #1569 and enables us to control caching for /latest/ pages too.
Similarly to versioned pages we can define a normal max-age, combined with stale-while-revalidate.
This also adds CloudFront invalidation after releases. For now the invalidation choices we have are:

don't invalidate anything
invalidate the whole /krate/* prefix
invalidate only the /krate/latest/* prefix.

without any settings it won't do anything, so we can slowly increase caching times and watch what happens.
To keep in mind when we play around with the settings: CloudFront invalidations can be relatively slow, up to 10-15 minutes. I'm not sure if the time depends on the amount of paths / patterns in the request, or the amount of files matching that pattern.

@jsha this could be the next step, what do you think?

Without having read the source yet, I like the plan.
One caveat: for correctness, it would be ideal if we could prevent caching of /krate/latest/.../*.js. That encompasses "invocation specific" files like sidebar-itemsXXX.js, source-filesXXX.js, search-indexXXX.js, and implementors/.../trait.YYY.js (where XXX is the resource suffix).
In other words, we should cache the static JS, CSS, and images (already done, for a long time). And we should cache the HTML (this PR). But we shouldn't cache invocation specific JS files, because then a fresh HTML page could get a browser-cached invocation specific JS file, and produce inconsistent/surprising behavior.
As a concrete example, assuming invocation specific JS is cached:

Doc reader visits /krate/latest/krate/bar/fn.foo.html. This triggers a load of /krate/latest/krate/bar/sidebar-itemsXXX.js, which gets browser cached.
Crate author publishes a release that deletes an item (fn qux) from mod bar. This does a CloudFront invalidation.
Doc reader visits /krate/latest/krate/bar/fn.baz.html. This triggers a load of /krate/latest/krate/bar/sidebar-itemsXXX.js from the browser cache, so the sidebar lists qux. However, clicking on qux in the sidebar goes to a 404.

There are ways to solve this in rustdoc, for instance by mixing crate version into the filename for invocation specific files. But for now I think we should consider invocation specific JS files under /krate/latest/ to be non-cacheable, at least for the browser.
The performance impact of not caching these should be pretty low, since they are not on the critical path for page load.

@jsha perhaps I'm missing something, but if this would be an problem, wouldn't it already be an problem?
Since the resource suffix includes the nightly version (for example: https://docs.rs/itertools/latest/search-index-20211205-1.59.0-nightly-e2116acae.js), in most cases we will get a new path when there is a new release under /latest/. Of course there is an edge-case when I release more than one time on a certain day.
I also remember a discussion about this, if needed I can try to find the issue.
If we want to optimize this, one other option is to only use s-maxage, and rely on our active purge. Only issue with that is that other caches might also cache these, and we don't control them. Sadly CloudFront doesn't have Surrogate-Control like fastly, which would make this really easy to solve.

if this would be an problem, wouldn't it already be an problem?

Oh! I didn't think to look before, but yes, it looks like invocation-specific files (like https://docs.rs/rustls/latest/rustls/sidebar-items-20220517-1.63.0-nightly-4c5f6e627.js) currently get the cache-control: public, max-age=31104000, which means it's already a problem. Though, as you point out, the unlikelihood of doing two releases on the same toolchain with significantly differing (e.g.) sidebars is fairly low.
So, no need to address the problem I mentioned in this PR. Thanks for checking.

Aha, here's the issue from January: https://github.com/rust-lang/docs.rs/issues/1593

I'll add some more tests , but I would love some feedback around the general idea here

@jsha this is ready for another round, also cc @Nemo157
I'm not 100% certain about the cdn-backend design, I'm happy to take other ideas that make testing it in the builder possible :)
I removed purging only /latest/ since it would have had some edge cases ( like rebuilds of old versions) that would have to be handled correctly. Purging the whole crate is good enough IMO.

Don't we already have a tokio runtime stored somewhere? Why do we need another?

valid concern!
We had another in the S3 storage backend. In this PR I'm moving the runtime to the context, and the S3 backend will also use the same.

Let's park this PR for now, I just had another idea around caching on the CDN.
( any feedback is welcome anyways )

ping @jsha @rust-lang/docs-rs anyone got time for reviewing?
Thinking longer about https://github.com/rust-lang/docs.rs/issues/1552#issuecomment-1253165340
I can imagine also stale-while-revalidate together with purging would work for /latest/ too, while the downside would be that the browser & other caches also respect this.
Otherwise the default TTL option with no-cache is still a safer option.

@Nemo157 I added the requested changes

@jsha @Nemo157 fyi,
while working on https://github.com/rust-lang/docs.rs/issues/1552#issuecomment-1253165340 I came to the conclusion that I want a different structure for defining the caching headers, so I'll remove it from this PR and will create a new one for this.
So the main piece remaining here is the CDN invalidation after build


activemq: 5.18.3 -> 6.0.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/activemq/versions.
meta.description for activemq is: Messaging and Integration Patterns server written in Java
meta.homepage for activemq is: https://activemq.apache.org/
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 6.0.0 with grep in /nix/store/qffi3z237r2nsnrg3crnckccy2drv9jb-apache-activemq-6.0.0
found 6.0.0 in filename of file in /nix/store/qffi3z237r2nsnrg3crnckccy2drv9jb-apache-activemq-6.0.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
activemq

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qffi3z237r2nsnrg3crnckccy2drv9jb-apache-activemq-6.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A activemq https://github.com/r-ryantm/nixpkgs/archive/d9eb9d9ac758fac9b644ff596e6bde9e4e1db684.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/d9eb9d9ac758fac9b644ff596e6bde9e4e1db684#activemq

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qffi3z237r2nsnrg3crnckccy2drv9jb-apache-activemq-6.0.0
ls -la /nix/store/qffi3z237r2nsnrg3crnckccy2drv9jb-apache-activemq-6.0.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

activemq

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/activemq/versions.
meta.description for activemq is: Messaging and Integration Patterns server written in Java
meta.homepage for activemq is: https://activemq.apache.org/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 6.0.1 with grep in /nix/store/im23zhrpk08cn2imngm5mknf7xxzwh3l-apache-activemq-6.0.1
found 6.0.1 in filename of file in /nix/store/im23zhrpk08cn2imngm5mknf7xxzwh3l-apache-activemq-6.0.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
activemq

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/im23zhrpk08cn2imngm5mknf7xxzwh3l-apache-activemq-6.0.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A activemq https://github.com/r-ryantm/nixpkgs/archive/a6c62ca14dfbf91199135c31a7bbef041e70abed.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a6c62ca14dfbf91199135c31a7bbef041e70abed#activemq

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/im23zhrpk08cn2imngm5mknf7xxzwh3l-apache-activemq-6.0.1
ls -la /nix/store/im23zhrpk08cn2imngm5mknf7xxzwh3l-apache-activemq-6.0.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

activemq

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/activemq/versions.
meta.description for activemq is: Messaging and Integration Patterns server written in Java
meta.homepage for activemq is: https://activemq.apache.org/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 6.1.0 with grep in /nix/store/7x6y8rzhk3vygdpzawpsvr6b6x1bz8j5-apache-activemq-6.1.0
found 6.1.0 in filename of file in /nix/store/7x6y8rzhk3vygdpzawpsvr6b6x1bz8j5-apache-activemq-6.1.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
activemq

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7x6y8rzhk3vygdpzawpsvr6b6x1bz8j5-apache-activemq-6.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A activemq https://github.com/r-ryantm/nixpkgs/archive/c2006ace954cb11825495fed2395e66d4e27e3d3.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/c2006ace954cb11825495fed2395e66d4e27e3d3#activemq

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7x6y8rzhk3vygdpzawpsvr6b6x1bz8j5-apache-activemq-6.1.0
ls -la /nix/store/7x6y8rzhk3vygdpzawpsvr6b6x1bz8j5-apache-activemq-6.1.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

activemq

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/activemq/versions.
meta.description for activemq is: Messaging and Integration Patterns server written in Java
meta.homepage for activemq is: https://activemq.apache.org/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 6.1.2 with grep in /nix/store/lr0d0ybxmkw764brx1601b25x57jagh4-apache-activemq-6.1.2
found 6.1.2 in filename of file in /nix/store/lr0d0ybxmkw764brx1601b25x57jagh4-apache-activemq-6.1.2

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

activemq

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/lr0d0ybxmkw764brx1601b25x57jagh4-apache-activemq-6.1.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A activemq https://github.com/r-ryantm/nixpkgs/archive/2f88855f059eeb2220d1683ad905531c051b3b12.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/2f88855f059eeb2220d1683ad905531c051b3b12#activemq

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/lr0d0ybxmkw764brx1601b25x57jagh4-apache-activemq-6.1.2
ls -la /nix/store/lr0d0ybxmkw764brx1601b25x57jagh4-apache-activemq-6.1.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

activemq

Maintainer pings


mssql-server: init at 15.0.4003.23-3

Motivation for this change
Packages mssql-server for NixOS.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-faq?view=sql-server-ver15

All files in the /var/opt/mssql file folder should be owned by the mssql user and belong to the mssql group. Both the mssql user and group should have read-write permissions of all files and directories.

@xavierzwirtz how does this work with the /nix/store?

I'm not sure that this is correct, but when I run sqlserver without sudo it blows up saying it doesnt have access to that directory:
/nix/store/r38dpv9wkd638nd5c9wmjp5ngbilkxdz-mssql-server-15.0.4003.23-3/opt/mssql/bin/sqlservr_old: Unable to open /var/opt/mssql/.system//instance_id: Permission denied (13)
However when run with sudo it launches and writes to /var/opt/mssql/. Not sure if that's acceptable, new to nix.

You should probably create a systemd service running as a dedicated mssql user and see if you can get the program to limit mutable data to somewhere like /var/lib/mssql.
I wonder if @jonringer has any experience running mssql on linux and could provide any information... :thinking:

Unfortunately there are no config options to do that, it has to be done with NIX_REDIRECT. I did experiment with doing that, but something with the way sqlserver did file access made it where each file that it touched had to be created before hand.

Seems like mssql is at least reasonably configurable to separate mutable state from binaries:

https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-mssql-conf?view=sql-server-ver15#mssql-conf-format
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-ver15

I assume that if properly configured mutable state and immutable binaries+config can be achieved. A systemd service configured via a NixOS module would be a very nice addition to this PR... :smile:

Could I get some clarification on what you mean by separate mutable state from binaries? Is the problem that /var/opt/mssql/ is not where programs should be storing mutable state, and you want this wrapped up in a systemd service that configures mssql-server to store it in a more idiomatic place?

@xavierzwirtz from your earlier posts I was under the impression mssql was putting binaries and/or config into /var/opt/mssql but after going through your posts again it is possible I have misinterpreted this. Though to your point about a more idiomatic place the preference is always to store mutable state in something like /var/lib/mssql, logs in /var/logs/mssql, etc... as a default. On top of locations we can look at running this as a non root user, and applying some security features of systemd on top of it.

No binaries in /var/opt/mssql, it is storing config though. Trying to be very specific, only packaged simple things before. I will take a stab at using NIX_REDIRECTS to move where mssql-server is storing that data again; the environment variables they expose only allow you to move database files, not the system configuration.

Experimented some more with using NIX_REDIRECTS to move the database and config files out of /var/opt/mssql. It's doing something that libredirect.c doesn't currently support though, and I haven't been able to figure out what that is by fiddling with the wires. strace logging here.

Upstream released version 15.0.4249.2

@xavierzwirtz Are you still interested in pursuing this?

Tentatively closing. Happy to reopen if you're still interested.


feat/gene: add types for UTR5, CDS, UTR3

A draft API following the discussion after https://github.com/biogo/biogo/pull/41#issuecomment-225650607.

Note that I marked the UTR5Start, etc as deprecated.

Any other comments on this? If the API looks good I will go on and refactor the tests to test new functionality.

Addressed the comments and added tests.


Fix For Gradle cmdlet issue in recognizing single module/multi module

Weird behavious of Boolean expression evaluation of powershell caused…

Hi @nigurr, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Nitin Gurram). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

seems fine.. lets discuss in scrum tomorrow before pushing to release branch


service garbage_collection.collect_garbage and Daylight saving time

Describe the bug

Called service garbage_collection.collect_garbage and set last_collection: 2020-08-29T07:30:00.000Z. Checked the state attributes for that same entity and it shows last_collection: '2020-08-29T08:30:00+01:00'.
Configuration
Do you configure the integration in YAML or Config Flow (GUI)? : Config Flow

                "connection_class": "local_poll",
                "data": {
                    "collection_days": [
                        "mon",
                        "sat"
                    ],
                    "date_format": "%d-%b-%Y",
                    "exclude_dates": [
                        "2020-04-01",
                        "2020-04-02",
                        "2020-04-03",
                        "2020-04-04",
                        "2020-04-05",
                        "2020-04-06",
                        "2020-04-07",
                        "2020-04-08",
                        "2020-04-09",
                        "2020-04-10",
                        "2020-04-12",
                        "2020-04-13",
                        "2020-04-14",
                        "2020-04-15",
                        "2020-04-16",
                        "2020-04-17",
                        "2020-04-18",
                        "2020-04-19",
                        "2020-04-20",
                        "2020-04-21",
                        "2020-04-22",
                        "2020-04-23",
                        "2020-04-24",
                        "2020-04-25",
                        "2020-04-26",
                        "2020-04-28",
                        "2020-04-29",
                        "2020-04-30",
                        "2020-05-01",
                        "2020-05-02",
                        "2020-05-03",
                        "2020-05-04",
                        "2020-05-05",
                        "2020-05-06",
                        "2020-05-07",
                        "2020-05-08",
                        "2020-05-09",
                        "2020-05-10",
                        "2020-05-12",
                        "2020-05-13",
                        "2020-05-14",
                        "2020-05-15",
                        "2020-05-16",
                        "2020-05-17",
                        "2020-05-18",
                        "2020-05-19",
                        "2020-05-20",
                        "2020-05-21",
                        "2020-05-22",
                        "2020-05-24",
                        "2020-05-25",
                        "2020-05-26",
                        "2020-05-27",
                        "2020-05-28",
                        "2020-05-29",
                        "2020-05-30",
                        "2020-05-31",
                        "2020-06-01",
                        "2020-06-02",
                        "2020-06-03",
                        "2020-06-04",
                        "2020-06-05",
                        "2020-06-06",
                        "2020-06-07",
                        "2020-06-09",
                        "2020-06-10",
                        "2020-06-11",
                        "2020-06-12",
                        "2020-06-13",
                        "2020-06-14",
                        "2020-06-15",
                        "2020-06-16",
                        "2020-06-17",
                        "2020-06-18",
                        "2020-06-19",
                        "2020-06-20",
                        "2020-06-21",
                        "2020-06-23",
                        "2020-06-24",
                        "2020-06-25",
                        "2020-06-26",
                        "2020-06-27",
                        "2020-06-28",
                        "2020-06-29",
                        "2020-06-30",
                        "2020-07-01",
                        "2020-07-02",
                        "2020-07-03",
                        "2020-07-04",
                        "2020-07-05",
                        "2020-07-07",
                        "2020-07-08",
                        "2020-07-09",
                        "2020-07-10",
                        "2020-07-11",
                        "2020-07-12",
                        "2020-07-13",
                        "2020-07-14",
                        "2020-07-15",
                        "2020-07-16",
                        "2020-07-17",
                        "2020-07-18",
                        "2020-07-19",
                        "2020-07-21",
                        "2020-07-22",
                        "2020-07-23",
                        "2020-07-24",
                        "2020-07-25",
                        "2020-07-26",
                        "2020-07-27",
                        "2020-07-28",
                        "2020-07-29",
                        "2020-07-30",
                        "2020-07-31",
                        "2020-08-01",
                        "2020-08-02",
                        "2020-08-04",
                        "2020-08-05",
                        "2020-08-06",
                        "2020-08-07",
                        "2020-08-08",
                        "2020-08-09",
                        "2020-08-10",
                        "2020-08-11",
                        "2020-08-12",
                        "2020-08-13",
                        "2020-08-14",
                        "2020-08-15",
                        "2020-08-16",
                        "2020-08-18",
                        "2020-08-19",
                        "2020-08-20",
                        "2020-08-21",
                        "2020-08-22",
                        "2020-08-23",
                        "2020-08-24",
                        "2020-08-25",
                        "2020-08-26",
                        "2020-08-27",
                        "2020-08-28",
                        "2020-08-30",
                        "2020-08-31",
                        "2020-09-01",
                        "2020-09-02",
                        "2020-09-03",
                        "2020-09-04",
                        "2020-09-05",
                        "2020-09-06",
                        "2020-09-07",
                        "2020-09-08",
                        "2020-09-09",
                        "2020-09-10",
                        "2020-09-11",
                        "2020-09-12",
                        "2020-09-13",
                        "2020-09-15",
                        "2020-09-16",
                        "2020-09-17",
                        "2020-09-18",
                        "2020-09-19",
                        "2020-09-20",
                        "2020-09-21",
                        "2020-09-22",
                        "2020-09-23",
                        "2020-09-24",
                        "2020-09-25",
                        "2020-09-26",
                        "2020-09-27",
                        "2020-09-29",
                        "2020-09-30",
                        "2020-10-01",
                        "2020-10-02",
                        "2020-10-03",
                        "2020-10-04",
                        "2020-10-05",
                        "2020-10-06",
                        "2020-10-07",
                        "2020-10-08",
                        "2020-10-09",
                        "2020-10-10",
                        "2020-10-11",
                        "2020-10-13",
                        "2020-10-14",
                        "2020-10-15",
                        "2020-10-16",
                        "2020-10-17",
                        "2020-10-18",
                        "2020-10-19",
                        "2020-10-20",
                        "2020-10-21",
                        "2020-10-22",
                        "2020-10-23",
                        "2020-10-24",
                        "2020-10-25",
                        "2020-10-27",
                        "2020-10-28",
                        "2020-10-29",
                        "2020-10-30",
                        "2020-10-31",
                        "2020-11-01",
                        "2020-11-02",
                        "2020-11-03",
                        "2020-11-04",
                        "2020-11-05",
                        "2020-11-06",
                        "2020-11-07",
                        "2020-11-08",
                        "2020-11-10",
                        "2020-11-11",
                        "2020-11-12",
                        "2020-11-13",
                        "2020-11-14",
                        "2020-11-15",
                        "2020-11-16",
                        "2020-11-17",
                        "2020-11-18",
                        "2020-11-19",
                        "2020-11-20",
                        "2020-11-21",
                        "2020-11-22",
                        "2020-11-24",
                        "2020-11-25",
                        "2020-11-26",
                        "2020-11-27",
                        "2020-11-28",
                        "2020-11-29",
                        "2020-11-30",
                        "2020-12-01",
                        "2020-12-02",
                        "2020-12-03",
                        "2020-12-04",
                        "2020-12-05",
                        "2020-12-06",
                        "2020-12-08",
                        "2020-12-09",
                        "2020-12-10",
                        "2020-12-11",
                        "2020-12-12",
                        "2020-12-13",
                        "2020-12-14",
                        "2020-12-15",
                        "2020-12-16",
                        "2020-12-17",
                        "2020-12-18",
                        "2020-12-19",
                        "2020-12-20",
                        "2020-12-21",
                        "2020-12-22",
                        "2020-12-23",
                        "2020-12-24",
                        "2020-12-25",
                        "2020-12-26",
                        "2020-12-27",
                        "2020-12-28",
                        "2020-12-29",
                        "2020-12-30",
                        "2020-12-31",
                        "2021-01-01",
                        "2021-01-02",
                        "2021-01-03",
                        "2021-01-04",
                        "2021-01-05",
                        "2021-01-06",
                        "2021-01-07",
                        "2021-01-08",
                        "2021-01-09",
                        "2021-01-10",
                        "2021-01-11",
                        "2021-01-12",
                        "2021-01-13",
                        "2021-01-14",
                        "2021-01-15",
                        "2021-01-16",
                        "2021-01-17",
                        "2021-01-18",
                        "2021-01-19",
                        "2021-01-20",
                        "2021-01-21",
                        "2021-01-22",
                        "2021-01-23",
                        "2021-01-24",
                        "2021-01-25",
                        "2021-01-26",
                        "2021-01-27",
                        "2021-01-28",
                        "2021-01-29",
                        "2021-01-30",
                        "2021-01-31",
                        "2021-02-01",
                        "2021-02-02",
                        "2021-02-03",
                        "2021-02-04",
                        "2021-02-05",
                        "2021-02-06",
                        "2021-02-07",
                        "2021-02-08",
                        "2021-02-09",
                        "2021-02-10",
                        "2021-02-11",
                        "2021-02-12",
                        "2021-02-13",
                        "2021-02-14",
                        "2021-02-15",
                        "2021-02-16",
                        "2021-02-17",
                        "2021-02-18",
                        "2021-02-19",
                        "2021-02-20",
                        "2021-02-21",
                        "2021-02-22",
                        "2021-02-23",
                        "2021-02-24",
                        "2021-02-25",
                        "2021-02-26",
                        "2021-02-27",
                        "2021-02-28",
                        "2021-03-02",
                        "2021-03-03",
                        "2021-03-04",
                        "2021-03-05",
                        "2021-03-06",
                        "2021-03-07",
                        "2021-03-08",
                        "2021-03-09",
                        "2021-03-10",
                        "2021-03-11",
                        "2021-03-12",
                        "2021-03-13",
                        "2021-03-14",
                        "2021-03-16",
                        "2021-03-17",
                        "2021-03-18",
                        "2021-03-19",
                        "2021-03-20",
                        "2021-03-21",
                        "2021-03-22",
                        "2021-03-23",
                        "2021-03-24",
                        "2021-03-25",
                        "2021-03-26",
                        "2021-03-27",
                        "2021-03-28",
                        "2021-03-30",
                        "2021-03-31",
                        ""
                    ],
                    "first_month": "apr",
                    "frequency": "weekly",
                    "holiday_in_week_move": false,
                    "icon_normal": "mdi:spade",
                    "icon_today": "mdi:spade",
                    "icon_tomorrow": "mdi:spade",
                    "include_dates": [
                        "2020-04-11",
                        "2020-04-27",
                        "2020-05-11",
                        "2020-05-23",
                        "2020-06-08",
                        "2020-06-22",
                        "2020-07-06",
                        "2020-07-20",
                        "2020-08-03",
                        "2020-08-17",
                        "2020-08-29",
                        "2020-09-14",
                        "2020-09-28",
                        "2020-10-12",
                        "2020-10-26",
                        "2020-11-09",
                        "2020-11-23",
                        "2020-12-07",
                        "2021-03-01",
                        "2021-03-15",
                        "2021-03-29",
                        ""
                    ],
                    "last_month": "mar",
                    "observed": true,
                    "unique_id": "7d39c5c6-7529-4a98-b141-2b630c109083",
                    "verbose_format": "on {date}, in {days} days"
                },
                "domain": "garbage_collection",
                "entry_id": "305f0419de80467eba15185c0e9f4375",
                "options": {},
                "source": "user",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "Grass bin",
                "unique_id": null,
                "version": 1
            },

Error log/debug information

N/A
Screenshots

Version
Integration version: 3.04
Home Assistant version: 0.114.4
Thanks for implementing this, with the help of Node-Red I'll be creating a simple Lovelace button to let me mark when the bins have been collected and set the date.

I do not understand what is the problem. 7:30 UTC (Z as Zero Time Zone) us 8:30 CET (+1).
Try setting the time without the time zone, it should assume the same time zone as configured in HA.

The problem is my own lack of understanding...sorry, didn't realise the Z on the end of the time was setting a timezone and I'd used fill example data .
Thanks all sorted (not that it was broken).


Go Live [12 Nov]

Push to live

Docs Build status updates of commit 2849fe4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/concepts/app-fundamentals-overview.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Add a shortcut to save as '.ium'

There is now a way to save the current state as '.ium' file.
I would like to be able to simply press 'CMD+s' (on macintosh) or 'CTRL+s' (on windows) in order to save the current state.
I guess the following library should be used to achieve this goal:
https://github.com/zakodium-oss/react-kbs
@targos do you think that Wadjih could implement this feature or there will be some problems ?

He may try. I recommend to use global shortcuts for now.


Can not refresh expandable adapter

Hi. How correctly to refresh expandable adapter when count of group's children has changed?
Because when I do notifyDataSetChanged it updates only groups but not group's children.

Already fixed in 0.7.3.
Use RecyclerViewExpandableItemManager.notifyChildItemRangeRemoved(int groupPosition, int childPositionStart, int itemCount).

Thank you. :+1:


sum() got an unexpected keyword argument 'keepdims'

I'm not sure if this is related to #4311 because in my case it only occurs using Dask.
Also, before, I was on Dask 1.2.0 and this error was inexistent:

Dask 2.0.0+11.g7f26af69
Pandas 0.24.2
NumPy 1.16.4

import pandas as pd
import dask.dataframe as dd
from dask.array import stats as dstats
from scipy import stats as sstats

s = pd.Series(list(range(1,10000)), name='series', dtype=float)
sd = dd.from_pandas(s, npartitions=2)

sstats.moment(s, 2, 0)
# 8331666.666666667

sstats.moment(sd, 2, 0)
# 8331666.666666667

dstats.moment(sd, 2, 0)

TypeError                                 Traceback (most recent call last)
<ipython-input-5-200bbf2f1719> in <module>
      1
      2
----> 3 dstats.moment(sd, 2, 0)

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/stats.py in moment(a, moment, axis, nan_policy)
    364             "`nan_policy` other than 'propagate' " "have not been implemented."
    365         )
--> 366     return da.moment(a, moment, axis=axis)
    367
    368

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/reductions.py in moment(a, order, axis, dtype, keepdims, ddof, split_every, out)
    740         out=out,
    741         concatenate=False,
--> 742         combine=partial(moment_combine, order=order),
    743     )
    744

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/reductions.py in reduction(x, chunk, aggregate, axis, keepdims, dtype, split_every, combine, name, out, concatenate, output_size, meta)
    156     # The dtype of `tmp` doesn't actually matter, and may be incorrect.
    157     tmp = blockwise(
--> 158         chunk, inds, x, inds, axis=axis, keepdims=True, dtype=dtype or float
    159     )
    160     tmp._chunks = tuple(

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/blockwise.py in blockwise(func, out_ind, name, token, dtype, adjust_chunks, new_axes, align_arrays, concatenate, meta, *args, **kwargs)
    231         from .utils import compute_meta
    232
--> 233         meta = compute_meta(func, dtype, *args[::2], **kwargs)
    234     if meta is not None:
    235         return Array(graph, out, chunks, meta=meta)

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/utils.py in compute_meta(func, _dtype, *args, **kwargs)
    120     else:
    121         try:
--> 122             meta = func(*args_meta, **kwargs_meta)
    123         except TypeError as e:
    124             if (

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/dask/array/reductions.py in moment_chunk(A, order, sum, numel, dtype, meta, **kwargs)
    624
    625     n = n.astype(np.int64)
--> 626     total = sum(A, dtype=dtype, **kwargs)
    627     with np.errstate(divide="ignore", invalid="ignore"):
    628         u = total / n

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/numpy/core/fromnumeric.py in sum(a, axis, dtype, out, keepdims, initial)
   2074
   2075     return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims,
-> 2076                           initial=initial)
   2077
   2078

~/anaconda/envs/tarsierenv/lib/python3.7/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
     80             # support a dtype.
     81             if dtype is not None:
---> 82                 return reduction(axis=axis, dtype=dtype, out=out, **passkwargs)
     83             else:
     84                 return reduction(axis=axis, out=out, **passkwargs)

TypeError: sum() got an unexpected keyword argument 'keepdims'

Any ideas what the problem may be?

It looks like this is failing during meta computation because the pandas.Series.sum method doesn't accept the keepdims argument, but the dask array method uses it.
If we were to ignore the meta= failure then things here would work out, but it's not clear yet where to do that cleanly.  I can take another look tomorrow.

Just FYI, on pandas master this works
dstats.moment(sd, 2, 0)
## -- End pasted text --
Out[1]: dask.array<moment_agg-aggregate, shape=(), dtype=float64, chunksize=()>

In [2]: dstats.moment(sd, 2, 0).compute()
Out[2]: 8331666.666666667

pandas DataFrame.sum now accepts keepdims.
A pandas release is imminent. We're supposed to do a release candidate today (though it may not happen).

I know how to fix this, will send a PR soon.


Archive size too big

After implementing in existing project, the size of the app archive is over 1G (libassimp.a = 927Mb)
is there a way to make it lighter? as it's not AppStore friendly at all.
Any help greatly appreciated.

thanks for you effort! i believe it worked initially, but latest build generates the following error(s) when built using EnableBitcode: Yes :
/libcrypto.a(a_object.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

Updated Python-iOS package with fix. Please update the package to see if the issue is resolved.

@kewlbear  Thanks you for these update


test(abci): update e2e tests to check against ABCI 2.0 grammar

This PR partially closes #1404. Namely, it updates the grammar and other parts of the code to be able to check whether CometBFT respects ABCI 2.0. The only thing missing is to update ADR when this implementation is accepted.

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments
[ ] Title follows the Conventional Commits spec

@nenadmilosevic95, can you run make mockery  and make lint. The latter is failing.
If you want to automatically fix (most) of the lint problems, you can run golangci-lint run --fix.

@nenadmilosevic95 can you turn this into a (non-draft) PR, so I can approve?


Change the approach to creating empty directories

Turns out that while the directories get created when running mix raxx.kit demo from the raxx_kit project directory, they don't when the generator comes from hex.
I don't have a good explanation, but I think this should help.

also, if the migrations directory is not created, ecto complains when the app gets started, this should fix it.

weird, but good spot

I'll need to push this as 0.8.1 so it should probably have a changelog entry.
Even if that says whitespace weirdness

I'm not a 100% sure it's going to work, and I don't think I will be until this gets published. It shouldn't break anything though :man_shrugging:

Ah so just experimenting with hex.
I could add you as an owner on hex too, though a cursory glance doesn't make it obvious how to

No point in only partially doing the changelog, discipline is good here.


brpc/example/http_c++ Failed to make on ubuntu 16.04

sudo apt-get install git g++ make libssl-dev
sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev
sudo apt-get install libsnappy-dev
sudo apt-get install google-perftools libgoogle-perftools-dev
sh config_brpc.sh --headers=/usr/include --libs=/usr/lib
gcc version 5.3.1
Error:
ubuntu:~/brpc/example/http_c++$ make
../..//config.mk:15: *** "Fail to find gperftools".  Stop.

Something might go wrong with your gperftools installation, check if the headers/libs are actually there, or you can set NEED_GPERFTOOLS to 0 in the Makefile of the example, which turns off tcmalloc linkage.

I had the same issue and I disabled NEED_GPERFTOOLS to make it work. It seems the getting started tutorial should mention about installing gpertools before the example instead of after it.

I met this bug on centos.
Fail to find gperftools,why?

please resolve this fatal bug ,dear baiduer

@jamesge yes


InstallerUrl: Microsoft.dotNetFramework version 4.7.1

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

What? Microsoft's URL is failing validation!


[WIP] - Add mount support

#161

Codecov Report

Merging #174 (67e7ecc) into main (c60be8c) will decrease coverage by 0.28%.
The diff coverage is 70.00%.

@@             Coverage Diff             @@
##              main     #174      +/-   ##
===========================================
- Coverage   100.00%   99.71%   -0.29%
===========================================
  Files           45       45
  Lines         4236     4273      +37
===========================================
+ Hits          4236     4261      +25
- Misses           0       12      +12

Impacted Files
Coverage Δ

blacksheep/server/application.py
96.47% <37.50%> (-3.53%)
:arrow_down:

blacksheep/server/routing.py
99.30% <91.66%> (-0.70%)
:arrow_down:

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 c60be8c...67e7ecc. Read the comment docs.

@RobertoPrevato PR is ready for review.

Let's close this one, since I applied some changes on a new PR -> https://github.com/Neoteroi/BlackSheep/pull/177/files - where we result both contributors 😄


Brackets in PlantUML are sometimes incorrectly highlighted as broken

To draw Entity Relation diagrams in PlantUML you sometimes need to use syntax like }|-- to show a "one or many" relationship with unclosed curly brackets. These unclosed curly brackets are totally fine PlantUML syntax, but they are shown as errors by the bracket pair colorizer:

Does this issue occur when all extensions are disabled?: No (but that's because I need the extension to have syntax highlighting at all)

VS Code Version: 1.66.0-insider, Commit: 6fa3243d3facbbf8b87222bcf4e81c5eddf5d47f, Date: 2022-03-16T05:17:03.981Z
OS Version: macOS 11.6.5

Steps to Reproduce:

Install the PlantUML extension
Open up a file new and select plantuml as the language
Copy+paste the following code:

@startuml show-syntax-highlighting

entity Entity01 {
  * identifying_attribute
  --
  * mandatory_attribute
  optional_attribute
}

Entity01 }|..|| Entity02
Entity03 }o..o| Entity04
Entity05 ||--o{ Entity06
Entity07 |o--|| Entity08

@enduml

You should see error syntax highlighting on }|..||, }o..o|, and ||--o{ as in the image above

Is this a bug with the extension? Or with VS Code's bracket pair colorization?

/causedByExtension

/cc @hediet

PlantUML should not mark { ... } as bracket pair, as they are not always balanced.

@hediet Is it possible to only sometimes mark { ... } as a bracket pair? Because there are valid use cases for curly braces as bracket pairs in PlantUML, see line 3 and line 8 in the image in the starting post.

See #144736.


[Set Audio Device] Enabling "Include AirPlay Speakers" makes nothing show up under the "Set Output Device" command

Extension
https://www.raycast.com/benvp/audio-device
Description
With "Include AirPlay Speakers" off, everything seems to work as expected. But as soon as I turn that option on and try to use the "Set Output Device" command it just tells me there are no results.
Steps To Reproduce

Turn on "Include AirPlay Speakers"
Run "Set Output Device"
See the "No Results" graphic

Current Behaviour
No response
Expected Behaviour
No response

The same problem occurs for me

yes, same problem here


Failed to open text color config: Function not implmented.

Recently I have installed Stickerhax on my NEW 3DS XL Firmware 11. I wanted to install a cia using FBI. But of course I get the kernel access error. So I got the FBI.3dsx and renamed it to boot.3dsx and placed it in the root of my SD. But then I get a different error: Failed to open text color config: Function not implemented. Does anyone know what's wrong?

I assume this has to do with launching it as boot.3dsx causing RomFS access problems. Either way, running it as boot.3dsx won't help; if you're on 11.0.0, it simply won't work as a 3dsx.


[Youtube] Abort download on missing formats warnings

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[x] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm requesting a site-specific feature
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Example URLs
https://www.youtube.com/watch?v=BaW_jenozKc
Provide a description that is worded well enough to be understood
Some warnings can indicate when formats will be missing, such as nsig extraction failed: Some formats may be missing and Webpage contains broken formats (poToken experiment detected).
The download will continue in both cases.
As far as I can tell, there is no way to abort the current download on specific warnings (or in general).
Since yt-dlp can detect it, can a feature to abort the download be implemented for warnings that are known to result in missing formats?
I think one or more extractor args somewhat like --extractor-args "youtube:raise_incomplete_data" can be implemented to solve this, by changing the warning(s) to terminating errors, or otherwise stopping the download of the current video.
Maybe called abort_on_missing_formats or abort_on_nsig, abort_on_potoken or something along those lines
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
#nsig warning example, using<EMAIL_ADDRESS>
[debug] Command-line config: ['-s', '-v', 'https://www.youtube.com/watch?v=BaW_jenozKc']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [ffd7781d6] (zip)
[debug] Python 3.10.14 (CPython x86_64 64bit) - Linux-6.5.0-1025-gcp-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: none
[debug] Optional libraries: sqlite3-3.45.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1830 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=BaW_jenozKc
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading ios player API JSON
[youtube] BaW_jenozKc: Downloading tv player API JSON
[debug] Loading youtube-nsig.28fd7348 from cache
WARNING: [youtube] BaW_jenozKc: nsig extraction failed: Some formats may be missing
         Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
         n = jlWd3dJO0yUeGN10P ; player = https://www.youtube.com/s/player/28fd7348/player_ias.vflset/en_US/base.js
[debug] [youtube] slice must be applied on a list in: a.slice(0,0); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[debug] Loading youtube-nsig.28fd7348 from cache
WARNING: [youtube] BaW_jenozKc: nsig extraction failed: Some formats may be missing
         Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
         n = BUk_TAYzaUBCVVz0a ; player = https://www.youtube.com/s/player/28fd7348/player_ias.vflset/en_US/base.js
[youtube] BaW_jenozKc: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] BaW_jenozKc: Downloading 1 format(s): 137+140

You are an old version. Update to the latest version, as you falsely stated to have done in the issue template checklist.

Webpage contains broken formats (poToken experiment detected)

This warning does not mean that any formats are missing. It means that the broken formats are being ignored and those formats are being re-requested via the API instead. This warning does not happen on the latest version, which is why you should update before opening a bug report/feature request.

nsig extraction failed: Some formats may be missing

This warning also does not happen on the latest version

Sorry, I want to clarify I downgraded to show the logs and behavior when the warning occurs. I wasn't sure what to put there since up to date logs wouldn't show anything.
The warnings don't occur at the moment, but it's possible that it breaks again in the future. It would be nice if yt-dlp could automatically catch this (when knowable, at least) and skip the download.
As for the poToken warning, I meant when the retries are exhausted on the API, which does lead to missing formats.

Sorry, I want to clarify I downgraded to show the logs and behavior when the warning occurs. I wasn't sure what to put there since up to date logs wouldn't show anything.

Alright, that makes sense, but in the future please note this in the original post of the issue

As for the poToken warning, I meant when the retries are exhausted on the API, which does lead to missing formats.

The poToken warning is a dead code path for now, since the poToken rollout is complete for the android+web clients and yt-dlp has abandoned them as defaults. Also, it's not yet known how to detect poToken enforcement on other clients (and enforcement on other clients has not yet been confirmed).

It would be nice if yt-dlp could automatically catch this (when knowable, at least) and skip the download.

The most notable formats lost due to nsig/potoken failure would be 18 and 251. (I think there are also some VR formats lost, but if you really care about VR formats then you should be using an alternative client.) If losing format 251 is a dealbreaker for you, you could pass something like-f bv+251, and yt-dlp will error if 251 is not available. If losing format 18 is the problem, passing -f b should suffice.
I do recognize that neither of those workarounds are perfect (especially the workaround for 251, since it's a format that may not be available for all videos even if there is no client failure), so this request has validity and I will reopen


travis: update go versions

Coverage remained the same at 87.5% when pulling 730be93da9cb7338d7b676b11d14ef81db04cd36 on dvrkps:patch-1 into 1501d51a5ce38beb1794857981b134a246ae200b on sony:master.

Coverage remained the same at 87.5% when pulling 730be93da9cb7338d7b676b11d14ef81db04cd36 on dvrkps:patch-1 into 1501d51a5ce38beb1794857981b134a246ae200b on sony:master.

Coverage remained the same at 87.5% when pulling 730be93da9cb7338d7b676b11d14ef81db04cd36 on dvrkps:patch-1 into 1501d51a5ce38beb1794857981b134a246ae200b on sony:master.

Coverage remained the same at 87.5% when pulling 730be93da9cb7338d7b676b11d14ef81db04cd36 on dvrkps:patch-1 into 1501d51a5ce38beb1794857981b134a246ae200b on sony:master.

Thank you!


optimize certain rules

For standard S->I transitions, the pattern to match is:
SI = @acset SIR begin Agent=2; I=1; S=1; s=[1]; i=[2] end

In most cases, we won't care about what particular I infected S. In this case, we'd simply want to know, for each S, how many of the total number of SI homomorphisms into G that particular S was involved in, say n. Then to see if that S becomes infected on this time step, we'd draw a single random number to see if any of them occurred, and then use any of the n matches to update that S's status (could be the first one, arbitrarily, or a random sample).

A really lame way to do this is to have the S->I transition be spontaneous and then compute the probability the standard way for each person, $1 - \exp{\beta * I / N}$

Is it possible to make postcompose_partial more optimized for certain cases? Consider the case where Agent 1 experiences an S->I transition (due to infection from some particular infected). Then we can throw out all other matches from Infection -> G where Agent 1 is the susceptible person involved.


upgrade to v0.113.0

Description:

Link to tracking Issue:
Testing:
Documentation:

checkpoint


Result wrapper should not be mutated in progressive mode

When in progressive mode the first result we receive for a particular get operation is subsequently mutated when the new results are received. This means that client code cannot easily assert that the results have indeed changed i.e. by doing a === on the previous and current response.
A better approach would be to create a new result wrapper object when new results are received and copy any existing results onto it.

This feature shares the same implementation with the proposed update feature. Update  will accept a previous response and emit a new response, copying nodes by reference into the new message when they haven't changed.
The first step will be to add a version flag to each node in the message that corresponds to the version on the cache node. Then when updating the response we'll compare the response version number against the cache version number.

I'll take this on. I've been looking at the get algorithm closely over the last two weeks.

This was fixed in https://github.com/Netflix/falcor/pull/766


chore: bdd-spring-1581613685 to 0.0.1

chore: Promote bdd-spring-1581613685 to version 0.0.1

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

Needs approval from an approver in each of these files:

OWNERS

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


NaturalMobSpawning

描述你希望添加的功能。 Describe the feature you'd like.
The natural mob spawning may load chunks that aren't ready for spawning the mobs, causing mspt spikes, if you create something like a patch for this, that would be awesome.
其他 Other
No response

I think Paper has already done this

I am not sure, I believe this happens mostly on the nether search for fortress.
Can you add me on discord? I'd love to contribute to Luminol, we run
discord.gg/donutsmp.


[Resolver] Add unit/singleton set

This will allow specifying the exact requirement of a version, useful in
cases like pinning.

https://bugs.swift.org/browse/SR-3171

@swift-ci please test


onStickerSelectEventListener issue

Hello, I am trying to use your library for an app I am making in Android with Kotlin (even though this was made in Java, I am able to invoke any function used here in Kotlin as well)
I have my timeTable set up with two dummy schedules. I added the schedules to the time table, so their stickers DO show up on the timeTableView UI.
After that, I made a binding by doing timeTable.setOnStickerSelectListener. I am able to access IDX and an array list of stickers.
My issue is that when I click on a sticker, IDX is still 0. Is that supposed to happen? Is IDX supposed to represent a unique ID for each sticker? How can I capture the sticker that was just selected properly, and convert that to a Schedule object?

I had the same problem.
The error is in the file "TimetableView.java"
Affected lines:

int count = specIdx < 0 ? ++stickerCount : specIdx;
int finalCount = count;
count = count + 1;

So was my code that solves it:
`private void add(final ArrayList schedules, int specIdx) {
int count = specIdx < 0 ? ++stickerCount : specIdx;
Sticker sticker = new Sticker();
for (Schedule schedule : schedules) {
TextView tv = new TextView(context);
        RelativeLayout.LayoutParams param = createStickerParam(schedule);
        tv.setLayoutParams(param);
        tv.setPadding(10, 0, 10, 0);
        tv.setText(schedule.getClassTitle() + "\n" + schedule.getClassPlace());
        tv.setTextColor(Color.parseColor("#FFFFFF"));
        tv.setTextSize(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_STICKER_FONT_SIZE_DP);
        tv.setTypeface(null, Typeface.BOLD);

        int finalCount = count;
        tv.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                if(stickerSelectedListener != null){
                    stickerSelectedListener.OnStickerSelected(finalCount, schedules);
                }
            }
        });

        sticker.addTextView(tv);
        sticker.addSchedule(schedule);
        stickers.put(count, sticker);
        stickerBox.addView(tv);
        count = count + 1;
    }
    setStickerColor();
}`

I had the same problem.
The error is in the file "TimetableView.java"
Affected lines:

int count = specIdx < 0 ? ++stickerCount : specIdx;
int finalCount = count;
count = count + 1;

So was my code that solves it:
`private void add(final ArrayList schedules, int specIdx) {
int count = specIdx < 0 ? ++stickerCount : specIdx;
Sticker sticker = new Sticker();
for (Schedule schedule : schedules) {
TextView tv = new TextView(context);
        RelativeLayout.LayoutParams param = createStickerParam(schedule);
        tv.setLayoutParams(param);
        tv.setPadding(10, 0, 10, 0);
        tv.setText(schedule.getClassTitle() + "\n" + schedule.getClassPlace());
        tv.setTextColor(Color.parseColor("#FFFFFF"));
        tv.setTextSize(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_STICKER_FONT_SIZE_DP);
        tv.setTypeface(null, Typeface.BOLD);

        int finalCount = count;
        tv.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                if(stickerSelectedListener != null){
                    stickerSelectedListener.OnStickerSelected(finalCount, schedules);
                }
            }
        });

        sticker.addTextView(tv);
        sticker.addSchedule(schedule);
        stickers.put(count, sticker);
        stickerBox.addView(tv);
        count = count + 1;
    }
    setStickerColor();
}`

@BrianMedina0903 how did you override the method?

Thanks @devbrianmedina


Not working with Angular Material

Hi,
I'm using material with Angular 6.
I have tried integrating this plug-in in my application.
I'm getting the below error.

Please use StackBlitz to build an app and show the issue you mention about
I would close this until it is confirmed as an issue.

Hi,
https://angular-qatkhn.stackblitz.io/
Please check this link

Your link is a dead link.

It's not at all loading after adding the code

app.module.ts
`import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import {MatButtonModule,MatCheckboxModule,MatCardModule,MatGridListModule,MatInputModule,MatFormFieldModule,MatIconModule,MatToolbarModule,MatSelectModule,MAT_LABEL_GLOBAL_OPTIONS, MatSidenavModule, MatListModule,MatDatepickerModule } from '@angular/material';
import { OwlDateTimeModule, OwlNativeDateTimeModule } from 'ng-pick-datetime';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
OwlDateTimeModule,
OwlNativeDateTimeModule,
FormsModule
],
exports:[ ],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
**app.component.html**<mat-form-field owlDateTimeMaterialTrigger [autoDialog]="true">
<input [owlDateTime]="dt" matInput readonly placeholder="Select the date and time" [(ngModel)]="startDate">
<owl-date-time #dt>
`
And i have followed the steps you have mentioned in Github.


Display Margins

Currently, the words in the book go all the way to the edge of the display which doesn't look very nice. It would be nice if there was a small margin on either side.

+1 up-vote to this issue since it will be the next upgrade for a more comfortable reading experience :)


Validator deep dive

Structure

Global vision
History of GTFS Schedule validators
Current objectives
v2.0 features / changes
how to contribute
questions

Previous slide deck: https://docs.google.com/presentation/d/1C3ecOi1-7pVfy2qMPll6P6RVaNYNaQHTv94QL7gVw4A/edit


Suppress stdout of cargo metadata

For large project, the stdout of cargo metadata may exceed maxBuffer ( default 1024x1024 ) length.
So I added --no-deps flag to suppress it.

I published<EMAIL_ADDRESS>please confirm that it works for you

@xtuc Thank you! I confirmed it worked fine for my project.


Update template.yaml [Do not merge]

Proposed changes
What changed
template.yaml
Updated build to be the same as prod and removed unused conditions

Why did it change
In order to do effective performances tests that accurately reflect how high volume would effect production - we need our testing environment to match that of production.

Issue tracking

OJ-1643

Checklists
Environment variables or secrets

[X] No environment variables or secrets were added or changed

Closed in favour of https://github.com/alphagov/di-ipv-cri-kbv-api/pull/276/


adding readme

can someone pls add readme.txt

can i have this issue

can i have this issue

sure

git fetch origin
git checkout 1-adding-readme


Sideboard guide

Is it possible to add an a easier way to add sidebaord guide.
Like when we edit the deck, we add a matchup deck name, and we can add the card we get in and out, using the same way we add card to sideboard for exemple, or an other way ?
Thank when we go to the deck, it shows a sheet of the sideboard guide ?
Thanks

Hi!Thank you for your message. Sideboard is one of the main parts of playing events. But for now, i can not see how can we add some sideboard guides.


Support for redis sentinel

Does bottleneck support redis sentinel for clustering.
@SGrondin Any idea of supporting it ?

Bottleneck uses the https://github.com/NodeRedis/node_redis driver. NodeRedis does not appear to be compatible with Sentinel.

v2.8.0 adds support for ioredis, Redis Cluster and Redis Sentinel

To use ioredis instead of Node Redis, pass the following option to Bottleneck: { datastore: "ioredis" }. ioredis supports Redis Cluster and Redis Sentinel
To use Redis Cluster, pass the following options to Bottleneck: { datastore: "redis", clusterNodes: [nodes] }. See the ioredis cluster docs and the Bottleneck docs for more information


9.5 rel

9.5 release

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: vishwanathan-m1:x: kumari-hYou have signed the CLA already but the status is still pending? Let us recheck it.


Question on "Files" field

In the "Files" field, if I enter something like this $(ApplicationPath)\ui-tests\reports\cucumber-html . Will the files and folders inside cucumber-html be selected for upload ? and will cucumber-html also be uploaded ?
I wanted to upload all the files and folders inside cucumber-html

Sorry I accidently hit enter and couldnt enter the description.
Here's the question
In the "Files" field, if I enter something like this $(ApplicationPath)\ui-tests\reports\cucumber-html . Will the files and folders inside cucumber-html be selected for upload ?

@hussainsam is this question still actual to you?

@hussainsam, closing this issue due to inactivity, please feel free to reopen it.


HydrusNetwork.HydrusNetwork version 505b

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.2 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree

My apologies Levvie, I'll keep that mind with any further work I do. Changes have been made.

Screw it, I can't see an easy way to change the path...
Using wincreate to make a new on here: https://github.com/microsoft/winget-pkgs/pull/88253

Screw it, I can't see an easy way to change the path...

fyi: You can do this easily here in GitHub by pressing the . (dot) key on your keyboard. That'll open up the changes brought in by this PR in VSCode Online where you can easily rename the folder from the explorer menu

Once you've made your changes, you can stage and commit them from the Source Control menu on the left (the changes are automatically pushed).

Thank you, that is really neat @mdanish-kh. Though I do note it warns me it can't find the source branch for the pull.

Thank you, that is really neat @mdanish-kh. Though I do note it warns me it can't find the source branch for the pull.

That's probably because you deleted the branch. The tip was just an fyi for future PRs.

Heh, forgot about that.


empty initialized model

I want to have a static variable which holds a model, but I want it to be lazy-loaded. This way, I only have to initialize it once and reuse it during runtime. The final model has been serialized in a file from which it can be loaded.
I'm thinking of something like this:
static mut model: LinearRegression<f64, DenseMatrix<f64>> = None;

fn init(model_path: str) {
    unsafe {
        model = {
            let mut buf: Vec<u8> = Vec::new();
            File::open(&model_path)
                .and_then(|mut f| f.read_to_end(&mut buf))
                .expect("Can not load model");
            bincode::deserialize(&buf).expect("Can not deserialize the model")
        }
    }
}

But it is not possible to initialize a LinearRegression<f64, DenseMatrix<f64>> with None. Is there another easy way to initialize a "default" or "empty" model? I thought of a constructor-like API:
LinearRegression::new()

which constructs an empty model without any parameters.
Additional info
I think in python's scikit-learn this can also be achieved with sklearn.linear_model.LinearRegression().
I tried an alternative by wrapping the model type with an Option<> like this:
static mut model: Option<LinearRegression<f64, DenseMatrix<f64>>> = None;

but this brings in other challenges and feels a little hacky.
Thanks in Advance!

Do you mean that you want to initialize that in compile time? If that is true, I think that you could try using the lazy_static crate.

I checked out the crate, but I didn't understand which initial value to assign to my static model variable. In the examples, they seemed to always provide an initial value, but mine comes when invoking the ‘init‘ function during runtime (it get's a path string from outside).

Maybe you can try https://docs.rs/once_cell/1.4.0/once_cell/#lazy-initialized-global-data with something like this(?)
fn model(model_path: &str) -> &'static LinearRegression<f64, DenseMatrix<f64>> {
    static MODEL: OnceCell<LinearRegression<f64, DenseMatrix<f64>>> = OnceCell::new();
    MODEL.get_or_init(|| {
            let mut buf: Vec<u8> = Vec::new();
            File::open(&model_path)
                .and_then(|mut f| f.read_to_end(&mut buf))
                .expect("Can not load model");
            bincode::deserialize(&buf).expect("Can not deserialize the model")
    })
 }

Hi @morenol , thank you a lot. I'm happy to report your suggested solution works as expected :). Though, I can only use the once_cell crate only in nightly (currently 1.54.0) and when adding #![feature(once_cell)] to to the top of my source file. For reference, here's how I implemented it with MODEL being on the top level:
static mut MODEL: OnceCell<LinearRegression<f64, DenseMatrix<f64>>> = OnceCell::new();
pub fn init(model_path: *mut c_char) {
    unsafe {
        let file_name = CStr::from_ptr(model_path).to_str().unwrap();
        MODEL.get_or_init(|| {
            let mut buf: Vec<u8> = Vec::new();
            File::open(&file_name)
                .and_then(|mut f| f.read_to_end(&mut buf))
                .expect("Can not load model");
            bincode::deserialize(&buf).expect("Can not deserialize the model")
        });
    }
}


Sync develop from main

Upgraded the deployment image version.

Fixed TCP port in the production overlay manifest file.

Fixed logout task

Created a draft version of a load test script of a test user that creates user apps in Serve.

Installed additional pip libraries

Created user type Student as a subtype of PowerUser. This user created JupyterLab notebooks and is used in the classroom test plan.

Version 1.1.0 of the Serve Locust project.

Obsolete


Failed to call service

Finally I managed to get my uuid and local key, using HttpCanary (Packet Capture is not working anymore), added my heater (GPCV330) to my HA config.
The heater shows up, but I have issues toggling on/off. At first I need to switch between Operation/Preset modes, until it turns ON.
After that, no matter what temp I set, the Currently value stays at 30C although the Comfort temp is set lower.
When I try to set the temp, I'm getting the error:  Failed to call service climate/set_temperature. 25 is not in list

According to my Goldair app, there's no firmware upgrade available. I'm running WiFi Module: 2.2.6 and MCU Module 1.0.0
tuya-cli with protocol-version 3.2 returns:
  devId: '16750538cc50e3xxxx',
  dps: {
    '1': true,
    '2': true,
    '3': 30,
    '4': 25,
    '5': 0,
    '6': 0,
    '7': 'Low'
  }
}

As an update, Log Viewer shows this error:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 550, in _update_entity_states
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
    attr = self.capability_attributes
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 181, in capability_attributes
    self.hass, self.min_temp, self.temperature_unit, self.precision
  File "/config/custom_components/goldair_climate/heater/climate.py", line 126, in min_temp
    if self.preset_mode and self.preset_mode != STATE_ANTI_FREEZE:
  File "/config/custom_components/goldair_climate/heater/climate.py", line 195, in preset_mode
    return GoldairTuyaDevice.get_key_for_value(PRESET_MODE_TO_DPS_MODE, dps_mode)
  File "/config/custom_components/goldair_climate/__init__.py", line 250, in get_key_for_value
    return keys[values.index(value)]
ValueError: 22 is not in list

Based on the DPS reported, this is a completely different device than the GPPH series heaters.
It looks almost similar to the Kogan heater I have, but with rearranged DPS indexes.  In fact I did a web search and cosmetically the heater looks identical to the Kogan heater, so its like they took the same predesigned product from China and someone with OCD rearranged the DPS indexes to group the booleans, ints and text attributes together.
If you turn the heater on, does dps 1 switch to true, or dps 2?
Does it have just LOW and HIGH modes, or are there more?
Is the temperature range 15-35 like the Kogan (and Tuya cloud integration), or 5-35 like the GPPH?
Does it have a timer function? Both the Kogan and GPPH heaters seem to use a boolean and an int for this, so that would explain the second false and one of the 0 values.  I guess the other int is a fault code, which the Kogan is missing, but GPPH has.
Is there a child lock and/or ability to turn off the light (maybe if there is no timer, otherwise it does not look like there are enough DPS attributes exposed).
If it has a timer, which of the 0 values changes when you set it?  On Kogan it is dps[8] and the GPPH dps[102], so neither gives a clue as to this one.

Sorry, you got me lost with the DPS values. How can I find these out?
Here are the other answers:
It has two modes, high/low
Temp range is 15-35
It has a timer function, goes from 00 to 24h.
There is a child lock, but didn't find an option to turn the display off.

You wrote

tuya-cli with protocol-version 3.2 returns:

  devId: '16750538cc50e3xxxx',
  dps: {
    '1': true,
    '2': true,
    '3': 30,
    '4': 25,
    '5': 0,
    '6': 0,
    '7': 'Low'
  }
}

If you change some settings using the buttons on the heater while monitoring with tuya_cli, you should see those values change.  The main one is whether Power on/off is the expected '1' (same as the GPPH series, and same as most Tuya based switches, lights etc).   Secondary is to set the timer and see whether '5' or '6' changes, as that will allow us to guess that the other one is probably a fault code, as most Goldair devices seem to have a fault code and you have one additional setting beyond what the Kogan heater has (that does not have a fault code).
On my Kogan heater Power is '7', and the timer off/on toggle is '6', so if they just shifted those together, you may have ended up with power on '2' instead of '1'.  Once we can figure out which is power, it should be fairly easy to add support for this heater, as the target and current temperatures and preset mode are fairly obvious, and none of the other devices internal timers are supported so we will skip that.

Sorry, my head was somewhere else ;)
1 - power - true for on, false for off
2 - child lock
3 - set temp
4 - measured temp
5 - is timer in minutes
6 - can't figure it out what it is
7 - high/low

Interesting that you mention it has a child lock. When I go back to my Kogan manual, it also mentions a child lock, and the official app also seems to have it.  I'd previously assumed based on my investigations into the Goldair GPPH720 I have that the timer used an integer for the minute countdown, and a boolean to indicate whether to switch on or off at the end of the countdown.  But it seems that second boolean might be for the child lock rather than the timer.

Does 6 change with the timer setting (maybe if you set it to more than one hour)?  Or just stays at 0?
If it stays at 0, it is most likely a fault code.  Unlike the dehumidifier where you can remove the tank to trigger it, I don't think there is any safe and easy way to trigger a fault on a heater.

There's no way to set it the minute, only the hours. Is the same in the app and on the heater.
I had a hope that it could be the timer in minutes until the set off time.
I've set it to 5 hrs, hoping that dps 5 will stay at 300 (minutes) and 6 will start counting up.
But nope, 5 is counting down, 6 still has the value of 0.
    '5': 297,
    '6': 0,

There are basically two ways to add support

As a separate device (gpcv_heater) - quick and easy, but maybe too messy for @nikrolls to accept as a pull request
By adding some auto-detection into the heater component.  I am not sure if this can be done early enough for the capabilities to be set appropriately, and how to prevent the user from configuring a light entity since this heater doesn't support it. So this will be more complex, but is probably tidier.

I've gone with approach 1 for quick and easy kogan heater support in my own forked repository, but my eventual aim is to move everything into configuration files, which will probably mean some incompatible configuration changes along the way.

Thanks everyone for the research you've done so far!
I've already implemented auto-detection in master so we could build off that. It kicks in early enough that we can use completely different device classes to handle different devices (including different capabilities).
I'm happy to take a stab at supporting your device once I get this release out (I'm pretty close, maybe a week away). Otherwise we could chat here to figure out a strategy so you could get started on a PR yourself.

No rush, I can use it manually or via the app until the next release. I've tried the beta as well, but it was buggy, the operation drop down was empty.

If you're happy with a separate device, then it should be fairly similar to the kogan_heater support in make-all/tuya-local, with some dps adjustments and child lock added back in.

tuya-local is kind of a no go, tried installing it via HACS and it hangs forever while adding it as an integration. Sometimes it gives me this almost blank form.

There is an issue with HACS handling of symlinks.  You'll see the same if you install the 0.1.0 beta releases from nikrolls/homeassistant-goldair-climate
If you log in using ssh and manually run the following commands, then it should act more properly:
cd config/custom_components/tuya_local
rm .translations translations/en.json
ln -s translations .translations
cd translations
ln -s ../strings.json en.json
ha core restart

But there are other issues, which is why I initially branched off from 0.0.8 for the above push.  But I am not sure a branch is usable via HACS.

@make-all I've tried your commit and so far everything looks good. Thanks

@make-all's PR has now been merged and released as 0.1.1b0. @etamtlosz, would you mind upgrading to this in HACS and testing it for a few days? I'll also run it locally to regression test against the devices I have. Then I can move to public release.
If you can't see the update, you'll just need to show beta updates in HACS: go to the Goldair component, click the three dots, and select "Show beta":

Cool,
I've installed the beta. I'm going to keep an eye on it, and I'll report back if I notice something wrong.

Thanks!

Hi Guys,
Sorry for jacking your thread.
I got this device yesterday, have tried using HTTP Canary to MITM but all apps fail to discover the heater until I disable HTTP Canary and then I can register fine (I also have the same issue if I connect to my wireguard VPN while at home not sure why)
Will try to see if I can get the Tuya Smart Link method to work instead.
Anyway I did manage to get the DPS schema from HTTP Canary post registering the device (I get the "No Lan connection or device is occupied" message in the Android app when using HTTP canary or VPN) So it seems like TCP / UDP doesnt want to work when using any of those.

 DPS Schema

[
  {
    "mode": "rw",
    "code": "Switch",
    "name": "开关",
    "property": {
      "type": "bool"
    },
    "id": 1,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "rw",
    "code": "Lock",
    "name": "童锁",
    "property": {
      "type": "bool"
    },
    "id": 2,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "rw",
    "code": "Temp_set",
    "name": "温度",
    "property": {
      "unit": "℃",
      "min": 5,
      "max": 40,
      "scale": 0,
      "step": 1,
      "type": "value"
    },
    "id": 3,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "ro",
    "code": "Temp_current",
    "name": "当前温度",
    "property": {
      "unit": "℃",
      "min": 0,
      "max": 100,
      "scale": 0,
      "step": 1,
      "type": "value"
    },
    "id": 4,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "rw",
    "code": "Timer",
    "name": "倒计时",
    "property": {
      "unit": "min",
      "min": 0,
      "max": 1440,
      "scale": 0,
      "step": 60,
      "type": "value"
    },
    "id": 5,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "ro",
    "code": "FAULT",
    "scope": "fault",
    "name": "故障告警",
    "property": {
      "label": [
        "Fault_1",
        "Fault_2"
      ],
      "type": "bitmap",
      "maxlen": 2
    },
    "id": 6,
    "type": "obj",
    "desc": ""
  },
  {
    "mode": "rw",
    "code": "Mode",
    "name": "工作档位",
    "property": {
      "range": [
        "High",
        "Low"
      ],
      "type": "enum"
    },
    "id": 7,
    "type": "obj",
    "desc": ""
  }
]

Sorry to revive this very old thread.
After reading, it looks like the bug was located and a fix was pushed, but I'm having the exact same issue as the op.
On/off doesnt work; is the work around a manual one you have to keep doing each time you upgrade HA?

I just tried to add this with HACS, but there is nothing to add, is this manual only now?
Secondly the two heaters I want to control I added to Tuya account (rather than Goldair app).
Does this integration only work if my HA is on the same LAN as my heater as mine isn't.
I can see the heaters in my HA at the moment, but as op described cant control them as low/high on/off isn't available.
I can change the temp at the moment and see data logging.
Just wondering before I go down a rabbit hole of manually configuring if the IP is used for local comms and I wont be able to do it that way


Padding iphone x

Closes #782
✅ Pull Request Checklist:

[x] Included link to corresponding React Spectrum GitHub Issue.
[x] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[x] Filled out test instructions.
[x] Updated documentation (if it already exists for this component).
[x] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
Open the picker examples on an iPhone X or newer (without a physical home button) in portrait mode and try to tap the last item.
The solution still isn't perfect, but it seems to at least clear the home bar at the bottom of the screen
🧢 Your Project:
None

Thanks @ronderksen! I've removed the extra 8px of padding in addition to the safe area inset because that would affect non-iPhones and also when the Safari toolbar is visible. Also, the tray is always the last child of the tray wrapper element, so always adding the padding is fine.
I assume the extra 8px was to try to avoid tapping near the bottom showing the toolbar and hiding the tray due to scrolling. I'm going to open a separate PR to prevent that.

#1023


ARTEMIS-1866 - Make wait time for reply configurable once vote goes o…

…ut to acquire a quorum
Im refactoring a lot of this original fix as it has broken API compatibilty by removing a default constructor.
Also it should be set via a setter.
https://issues.apache.org/jira/projects/ARTEMIS/issues/ARTEMIS-1866

The original commit was incorrect in a number of ways. Ive fixed and sent this PR


loadRewardsWithCallback and redeemRewards:forBucket:callback are not called on the main thread

Based on crashes I'm receiving it seems somewhere after 0.12.20 that loadRewardsWithCallback: or  redeemRewards:forBucket:callback: might have started running its callback on a thread other than main? I'm trying to absolutely confirm that this was not a change with my code but if anyone familiar with the code base knows I'd be much apprecaited!!

Seemed to be fixed in 0.12.50! Can close but would love to confirm with someone that I wasn't crazy for seeing this in 0.12.30…

I made sure that the call backs happen on the main thread in release 0.13.5.

Exactly what I noticed. Thanks for the confirmation. I'll work on using reward history to remedy the rewards I previously crashed delivering to my users.

Oh man, sorry about that.

Hopefully it's something a test gets added for in the future on both ends eh? ;)
It'd definitely a bit of a headache but luckily since the creditHistory does exist I should be able to roughly fix it using date ranges. There isn't a way to check the SDK version the rewarded was redeemed by is there?

Not easily.  How many do you think there are?

~13k credits for ~11k users. If it requires anything crazy don't worry about it, I think the date range thing—although potentially messy—should be sufficient.

I'm not sure I could improve the search much beyond a date range.

No worries! I'll see what I can do.


Adding Box Plot series

This is a series popular among statisticians and different scientists:
https://en.wikipedia.org/wiki/Box_plot
I believe that we should support it (as we support candlesticks and other specialized series).

I will take this feature

Added in e743e0f70ddf6730dc8edc29ed730710ca2e33d8


[Android] "-9700", "white screen cause create instanceContext failed,check js stack ->

-9700
createInstanceContextSyntaxError: Unexpected end of script  getTemplateInfo== template md5 fc5037288db7909ee55f0052d56ec8 length 65536 base64 md5 APxQNyiNt5Ce5V8AUtVuyA== response header {"templateSourceBase64MD5":["APxQNyiNt5Ce5V8AUtVuyA=="],"templateSourceMD5":["fc5037288db7909ee55f0052d56ec8"]}
This is a weex page error. Can you tell me who should resolve it,android or web?And how to solve it.
Thanks very much.

syntaxError: Unexpected end of script

Check your JS file, the error message is pretty clear.

syntaxError: Unexpected end of script

Check your JS file, the error message is pretty clear.

I'm sorray,I can't find any thing about the error in JS file. Can you give me some advices?

Unexpected end of script

This is the log reported by JS engine, which means your JS file is invalid.


Update docs to point at v0.3.0

We released v0.3.0 🎊

I realized that we don't actually check in the CRD references.


Scope of outermost part of child template

There are some problem with scope in outermost (out of any block) part of child template.
Parents outermost variables is not availble from outermost part of child template but normally visible inside a block.

Template Code
base.html:
{% set basestr = 'John' -%}

{% block X %}
{% endblock X %}

child.html:
{% extends 'base.html' %}

{% set childstr = 'Mary' %}
{% set child_hello = 'Hello,'~ childstr %}
{% set base_hello = 'Hello,'~ basestr %}

{%- block X %}
 basestr: {{basestr}}
 childstr: {{childstr}}
 base_hello: {{base_hello}}
 child_hello: {{child_hello}}
{% endblock %}

Expected Behavior
basestr: John
childstr: Mary
base_hello: Hello,John
child_hello: Hello,Mary
Actual Behavior
basestr: John
childstr: Mary
base_hello: Hello,
child_hello: Hello,Mary
Your Environment

Python version: 2.7.13
Jinja version: 2.9.6

This is actually documented at https://jinja.palletsprojects.com/en/2.10.x/templates/#block-nesting-and-scope
The solution is to specify scoped on the {% block X %} and it will include the basestr variable in the child template