Add class to run a collection of transformers for data processing

Is your feature request related to a problem? Please describe.
During exploratory data analysis it would be nice to be able to have an easy way to run several transformations (say a box-cox transformation and then a detrender) in the specified order in order to re-use the transformed series for different exploratory data analysis tasks.
Describe the solution you'd like
Sktime has functionality similar to this built into TransformedTargetForecaster.  @aiwalter also has this functionality built-into his proposed ForecastingPipeline (See #844) that also includes the ability to do transformations to exogenous data (not just the endogenous series).
An initial solution would be to just handle transformation of the endogenous (Y) data, ala TransformedTargetForecaster.
In that initial case, I'd propose the transformer functionality of TransformedTargetForecaster be added in a separate class called TransformerPipeline.  While this doesn't seem like it adds a lot of functionality, the benefit would be making it more streamlined for users to do exploratory data analysis and avoiding the need for users to recreate code that sktime is implicitly using internally.
For example, in the simple case that ignores exogenous data:
processing_pipe = TransformerPipeline(
    [
        ('boxcox', BoxCoxTransformer(...)),
        ('detrend', DeTrender(...)),
    ]
)
yt = processing_pipe.fit_transform(y)
plot_series(yt)

A more complete solution would be to build this into the framework in #844 or
Or in the case that parallels #844:
processing_pipe = TransformerPipeline(
    [
        ('boxcox', BoxCoxTransformer(...), ["y"]),
        ('detrend', DeTrender(...), ["y"]),
        ("scaler", TabularToSeriesAdaptor(MinMaxScaler()), ["y", "X"]),
    ]
)
yt, xt = processing_pipe.fit_transform(y, x)
# The function below is hypothetical but would be a potential use-case if it existed
plot_cross_correlation(yt, xt)

Describe alternatives you've considered
The primary alternative is for users to manually loop through the desired transformations and apply them, but having a concise way to do this would make it easy for users to get right to exploratory data analysis.
Plus, by explicitly having a TransformerPipeline we'd be exposing the functionality that sktime is already using internally, so users don't have to write the code on their own.

@RNKuhns lets integrate this into TransformedTargetForecaster? I will then also have it in the future ForecastingPipeline..

I just created a new issue for TransformedTargetForecaster to do what you wrote here. Maybe lets close this here then? @RNKuhns
#1090

Closed in favor of #1090.


feat: update cache method [APE-1500]

What I did
Allows easily updating the project manifest cache.
How I did it
Create method for updating it and share some stuff
How to verify it
https://github.com/ApeWorX/ape-solidity/pull/124
Requires https://github.com/ApeWorX/ethpm-types/pull/94
Checklist

[ ] All changes are completed
[ ] New test cases have been added
[ ] Documentation has been updated

this isnt working yet... lots of problems... but i know what to do.

ok i may actually need this now... trying to fix etherscan verification

required https://github.com/ApeWorX/ethpm-types/pull/103

now, i have compilers being output in ape-solidity and about to make sure is being used in ape-etherscan.
maybe it won't fix our verification bug, maybe it will... but in any case, the settings are 100% more honest now and i think that is a huge win.
still need to do same in ape-vyper pr


json feature

I think it would be a good idea to add an option to toggle a json mode, to use the json type in redis instead of string

Can you explain why?

because im using ft.search and json.get tu search and get part of json object stored with bentocache, and I think this shouldn't be to difficult to add the option here directly if it help other people

I'll add my 2 cents - de/serialization is known to be expensive, plus it unexpectedly transforms values.
A common use-case is to cache database models. Let's say your article model has createdAt attribute, hydrated by your ORM to Date object. You wrap the fetch to bentocache, and your GraphQL engine starts complaining, because the Date scalar expects Date instance, not string (which is the result of de/serialization).
This is especially confusing when using just L1 inmemory cache, which doesn't need serialization at all. Having an option to provide a no-op serializer, or better, to use best matching native methods at the storage driver level, would (massively, I believe) increase throughput/rps for L1-only scenarios, and reduce integration hiccups, such as the Date-string conversion.

I'll add my 2 cents - de/serialization is known to be expensive, plus it unexpectedly transforms values.
A common use-case is to cache database models. Let's say your article model has createdAt attribute, hydrated by your ORM to Date object. You wrap the fetch to bentocache, and your GraphQL engine starts complaining, because the Date scalar expects Date instance, not string (which is the result of de/serialization).
This is especially confusing when using just L1 inmemory cache, which doesn't need serialization at all. Having an option to provide a no-op serializer, or better, to use best matching native methods at the storage driver level, would (massively, I believe) increase throughput/rps for L1-only scenarios, and reduce integration hiccups, such as the Date-string conversion.

Sorry I think I did'nt really understood what you meant. Because all these problems will still exist if you use RedisJSON
To come back to the main issue: I think the ideal would just be to have a RedisJSON driver rather than modifying the original redis driver. Maybe a community package, or even a PR that add that driver could do the job. Would you be willing to contribute that @yovanoc ? Should be pretty easy to do if your take a look at other drivers :  https://github.com/Julien-R44/bentocache/blob/main/packages/bentocache/src/drivers/redis.ts

IORedis doesn't support JSON out of the box, but I created myself a wrapper around it, if I can add that too (only for this new redis json driver), I can try to open a PR !

Because all these problems will still exist if you use RedisJSON

@Julien-R44 right, I'm sorry for the confusion and for "hijacking" the issue with a different topic.

Because all these problems will still exist if you use RedisJSON

@Julien-R44 right, I'm sorry for the confusion and for "hijacking" the issue with a different topic.

Oh okay, no worries. Feel free to open another issue about this issue if needed


Flakiness in github.com/docker/swarmkit/ca_test.TestRequestAndSaveNewCertificatesWithIntermediates

This test seems to timeout after 600s about 10-20% of the time in my testing:
$ for i in $(seq -w 1 10) ; do time make test | 2>&1 tee test-master.$i.log; done
...
$ grep -E 'ran too long|^(FAIL|ok  )\     github.com/docker/swarmkit/ca' test-master.*.log
test-master.01.log:ok  	github.com/docker/swarmkit/ca	17.772s
test-master.02.log:ok  	github.com/docker/swarmkit/ca	17.649s
test-master.03.log:ok  	github.com/docker/swarmkit/ca	17.134s
test-master.04.log:ok  	github.com/docker/swarmkit/ca	17.602s
test-master.05.log:ok  	github.com/docker/swarmkit/ca	17.248s
test-master.06.log:ok  	github.com/docker/swarmkit/ca	17.245s
test-master.07.log:ok  	github.com/docker/swarmkit/ca	17.943s
test-master.08.log:*** Test killed with quit: ran too long (10m0s).
test-master.08.log:FAIL	github.com/docker/swarmkit/ca	600.068s
test-master.09.log:ok  	github.com/docker/swarmkit/ca	19.579s
test-master.10.log:*** Test killed with quit: ran too long (10m0s).
test-master.10.log:FAIL	github.com/docker/swarmkit/ca	600.079s

I noticed this because I updated gRPC from v1.0.4 to v1.3.0 and the failure rate jumped to ~50% (which might provide an avenue to easier reproduction).
The failure only seems to occur with a full make test. I haven't been able to reproduce with go test github.com/docker/swarmkit/ca (with and without -race). The -race detector is not triggering.
Failure logs from the above:

test-master.10.log
test-master.08.log

I pushed my gRPC update to https://github.com/ijc25/swarmkit/tree/tickle-2221 might be useful since it makes it fail much more often (assuming it isn't adding some second failure mode). NB that branch also reduces the timeout from 600s to 60s since it was too boring waiting for it to fail, I think that is still more than long enough not to give false negatives.

Looks like this stops it happening:
diff --git a/ca/certificates_test.go b/ca/certificates_test.go
index dc34141d..f8c1d19e 100644
--- a/ca/certificates_test.go
+++ b/ca/certificates_test.go
@@ -380,7 +380,7 @@ func TestRequestAndSaveNewCertificatesNoIntermediate(t *testing.T) {
 }

 func TestRequestAndSaveNewCertificatesWithIntermediates(t *testing.T) {
-	t.Parallel()
+	//t.Parallel()

 	// use a RootCA with an intermediate
 	apiRootCA := api.RootCA{

Not a fix of course!
Separately I see these in the logs right before the failure, hard to say if they are related due to the parallelism and multiple tests though:
time="2017-06-07T16:03:18+01:00" level=error msg="failed to renew the certificate" error="rpc error: code = 5 desc = node z21sikivr2qpo0whm0yvfus0k not found when attempting to renew certificate" module=tls node.id=z21sikivr2qpo0whm0yvfus0k node.role=swarm-worker
...
time="2017-06-07T16:03:18+01:00" level=error msg="failed to sign CSR" error="unable to perform certificate signing request: context canceled" method="(*Server).signNodeCert" module=ca node.id=pij3l0e2w2dw3xlxegc0ewzmr

I wondered (as a complete wild guess) if maybe the "node not found" was due to cross talk between tests?


not working show(pil_images, 6)

pil_images = []
scores = []
for top_k, top_p, images_num in [
    (2048, 0.995, 3),
    (1536, 0.99, 3),
#    (1024, 0.99, 3),
#    (1024, 0.98, 3),
#    (512, 0.97, 3),
#    (384, 0.96, 3),
#    (256, 0.95, 3),
#    (128, 0.95, 3),
]:
    _pil_images, _scores = generate_images(text, tokenizer, dalle, vae, top_k=top_k, images_num=images_num, top_p=top_p)
    pil_images += _pil_images
    scores += _scores

show(pil_images, 6)

Apparently due to the fact that you are not running through Jupiter notebook.

works with version rudalle==0.0.1rc5


Update upstream response header from response body

Summary
I need to create a cookie to add to the response header but only after the body from the upstream service have completely been received. The cookie content is generated from the upstream service response.
I use the body_filter  to recover all chunk, but I get the following message when trying to update the header to set the cookie:
attempt to set ngx.header.HEADER after sending out response headers while sending to client
Also, if the cookie creation fails, how can I throw an error. I tried with the following code from the body_filter:
return responses.send(500, "Could not generate session cookie")
but I get this error: attempt to set ngx.status after sending out response headers while sending to client
What's the right method to do that? Thank you
Additional Details & Logs

Kong version ($ kong version) : 0.11.0
Kong error logs (<KONG_PREFIX>/logs/error.log)

2017/12/01 13:36:48 [error] 190#0: *352 attempt to set ngx.status after sending out response headers while sending to client, client: <IP_ADDRESS>, server: kong, request: "POST /xxx HTTP/1.1", upstream: "https://104.
46.61.116:443/api/account/authenticate", host: "dev.domain.com:8000"
2017/12/01 13:36:48 [error] 190#0: *352 attempt to set ngx.header.HEADER after sending out response headers while sending to client, client: <IP_ADDRESS>, server: kong, request: "POST /xxx HTTP/1.1", upstream: "https
://<IP_ADDRESS>:443/api/account/authenticate", host: "dev.domain.com:8000"

should be use the phase NGX_HTTP_CONTENT_PHASE to generate a response, but Kong not use.

Hi, thank you for your reply. How do I make use on this in Kong ? Thanks

@ctessier I'm sorry, I don't know.  I think it's hard to use NGX_HTTP_CONTENT_PHASE in Kong

Indeed. The default Kong configuration allows plugins to hook into header_filter_by_lua_block and body_filter_by_lua_block (so it gets to filter the headers, then they are sent, and then it filters the body, and then it is sent).
See also: https://github.com/openresty/lua-nginx-module/issues/825
The default nginx config in nginx_kong.lua does not define content_by_lua_block for the main / handler, as it is incompatible with proxy_pass.
I'm afraid you'd need to handle this directly at the nginx level.


Add initial ServiceRuntime for Dynamic Services [ECR-3404]

Overview

Adds initial implementation of ServiceRuntime operations for dynamic services.
The code in dependent on core modules has not been migrated as the ServiceRuntime interface is not finalized yet, neither are the user-facing interfaces (like Service, Transaction, etc.).

See: https://jira.bf.local/browse/ECR-3404
Definition of Done

[ ] There are no TODOs left in the code
[x] Change is covered by automated tests
[x] The coding guidelines are followed
[x] Public API has Javadoc
[x] Method preconditions are checked and documented in the Javadoc of the method
[ ] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

How to review:

Java: everything, but start with:

ServiceRuntime
ServiceRuntimeIntegrationTest
ServiceFactory & its implementation and test
Service
ServiceWrapper
everything else

Rust:

(for native interface) ServiceRuntimeAdapter and ServiceRuntime
jni_cache

+1,612 −1,605 — nothing was added, actually 🙃

Looks good to me, but where is beforeCommit method? Can't find any task for it and it is mentioned in documentation of ServiceRuntime.

beforeCommit

It's under 8 in https://wiki.bf.local/display/EJB/Java+Dynamic+Services+P1+Design#JavaDynamicServicesP1Design-Задачи


STORM-2503: Fix lgtm.com alerts on equality and comparison operations.

This PR addresses STORM-2503, by fixing a number of alerts found by lgtm.com at https://lgtm.com/projects/g/apache/storm/alerts/ that indicate genuine bugs in comparison operations in the Storm code.
These rules are:

Equals on incomparable types (due to typos, fixed here)
Hashed value without hashCode definition
Inconsistent equals and hashCode (together with the previous item, this indicates some missing hashCode implementations, which have been added here)
Comparison of identical values (indicating a comparator logic typo in DefaultResourceAwareStrategy, which is fixed here along with a fix to the overall comparator logic, to consider components with fewer connections as being smaller)
Useless comparison test (indicating a variable name typo, which is fixed here)
Suspicious reference equality test of boxed types (indicating a spurious use of ==, replaced here by equals, on boxed types)

lgtm.com also provides PR integration, in case it would be useful to catch such alerts directly from incoming PRs.

Thanks @adityasharad  this looks good. +1. Can you please squash your commits into single one.

@adityasharad Some of the tests are failing now specifically TestDefaultResourceAwareStrategy.
I'll try and spend some time looking into it to see if I can see why it is failing, because the test itself is not giving any useful information at all.

@adityasharad so the test itself was testing for the wrong behavior, and when you fixed it the test stated to fail.  I will try to make a pull request to your repo with a fix for the test.
Please let me know if you want any help getting this in as I really would like to see these fixed.

@adityasharad I put up https://github.com/adityasharad/storm/pull/1 to your repo that should fix the failing test.

Thank you both!
@harshach - I have squashed my commits into one as requested.
@revans2 - I have merged your PR into this branch, so the commit is now included to resolve the test failure.

I am +1 on the change, but because my fix for the test is a part of this please consider my +1 non-binding.

+1

@adityasharad
Could you raise PR also for 1.x-branch? I think you're fixing some bugs which should be backported to 1.x version line but now both branches are diverged so can't cherry-pick it easily.

@adityasharad thanks for addressing these issues but can you tell me why you decided to change the compare function that I commented above?
@revans2 do you believe the sorting mentioned was incorrect before?

@jerrypeng The reason that particular piece of code was flagged was because the logic and the return values were not consistent with each other.
returning -1 means less than (but the code was checking for a greater than).
As for me I was mostly looking at the tests and as all of the tests passed (except for one that was not actually impacted by this change but another change that was a really serious bug).  If we need to switch this particular part of the change back I am happy to do it.

@jerrypeng: as @revans2 says the existing comparator logic was incorrect, so I put it back in a way that seemed consistent with the intent. I see that my changes make the sortNeighbours and sortConnections methods use opposite comparison logic -- if you think these should be identical then I am happy to make them match.
@HeartSaVioR I will port this to the 1.x branch.

@adityasharad is I agree with your change for the sortComponents on line 544.  Thank you for correcting that, but can you change the sorting logic of sortNeighbors to as before since I believe that is the correct sorting logic.  Thanks!


API v10

As Microsoft has said they are discounting v9 this year as the quote from the blog show, I was wondering when we may see an update to the sdk for v10.

We will sunset and remove v9 Campaign Management, Bulk, Optimizer and Ad Intelligence services at the end of calendar Q2 2016. Please migrate your applications from v9 to v10 at your earliest convenience. To help with your migration, we have provided a guide for migration from Bing Ads API V9 to v10.

Thanks for this sdk it has made my job automating some of our inhouse ppc work so much easier
Matt

@mwight4 I'm glad you are using the library and it is useful!
I have a work in progress of v10 here. This is version 11/16/2015 but give it a try and let me know how well it works.
I'm planning to wrap it up and send a new PR as soon as the pending PR for gets merged and tagged, although I need to make sure @dweichel and the CPCStrategy team review it.


stretch-slim: gnupg not removed when gnupg2 purged

The new stretch-slim images include a line like this in the Dockerfile to determine whether or not to install gnupg2 and dirmngr:
$(command -v gpg > /dev/null || echo 'gnupg2 dirmngr')

These packages are later purged, but because of apt (?), the dependencies of gnupg2 are not removed. To demonstrate:
❯ docker run --rm -it debian:stretch-slim bash
root@45ffcfc8aad0:/# apt-get update
...
root@45ffcfc8aad0:/# apt-get install -y --no-install-recommends gnupg2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gnupg gnupg-agent libassuan0 libksba8 libnpth0 libreadline7 libsqlite3-0 pinentry-curses readline-common
Suggested packages:
  parcimonie xloadimage dbus-user-session libpam-systemd pinentry-gnome3 scdaemon pinentry-doc readline-doc
Recommended packages:
  dirmngr gnupg-l10n
The following NEW packages will be installed:
  gnupg gnupg-agent gnupg2 libassuan0 libksba8 libnpth0 libreadline7 libsqlite3-0 pinentry-curses readline-common
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 2977 kB of archives.
After this operation, 6081 kB of additional disk space will be used.
...
root@45ffcfc8aad0:/# apt-get purge -y --auto-remove gnupg2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  gnupg2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 316 kB disk space will be freed.
(Reading database ... 6472 files and directories currently installed.)
Removing gnupg2 (2.1.18-8~deb9u1) ...

This has a few effects:

gnupg and its dependencies remain installed taking up space.
This gnupg doesn't work in a lot of cases because dirmngr will have been removed.
The command -v gpg test done originally doesn't help to determine whether one should install gnupg2 and dirmngr anymore, since the command is still available.

I'm not sure whether the solution is to install gnupg instead of gnupg2 or to explicitly install both packages so that both are later removed.

@tianon could I trouble you for this one too, please? 🙏  Admittedly, not a huge issue but could be an annoying problem if this pattern is reused in many other images.
Thanks a lot for your responses to the other issue/PRs 🎁

Issues get lost far too quickly. :disappointed: (my inbox is an absolute nightmare)
I think you're dead on with the correct solution here -- https://packages.debian.org/stretch/gnupg2 used to be the package providing gpg 2.x, but now is instead just a dummy package providing /usr/bin/gpg2, so it should be correct to simply swap to gnupg+dirmngr instead. :+1:

We probably need to make a similar change in quite a few images, especially/including buildpack-deps. :innocent:

A partial list: gcc, rabbitmq, buildpack-deps, python, neurodebian, php, postgres

As noted by the reference spam above, I've got a bunch of PRs open for this now, thanks @JayH5 :heart: :heart:
(Working on a PR for NeuroDebian now -- it's a bit more complicated due to needing to support both Debian and Ubuntu across many versions.)

https://github.com/docker-library/python/pull/239 is all that's left here! :smile:

Thank you! Sorry for making so much work for you 😅. Would've helped but it was the middle of the night in my timezone.

Oh it's all good; it went very quickly.  I was actually going to just enumerate all the places and let you do the work, but once I'd come up with a decent one-liner to grep all my local checkouts, it was just as easy to change the grep into sed and then run git status across all the repos to find offenders.  Once they were found, it was as simple as doing cd into each, making a branch, re-using my same formulaic commit, and using GitHub's hub tool to open each PR from the CLI before moving on to the next one and letting Travis start doing testing. :smile:


Update the pin for pydantic to allow for more recent versions

Description
This is blocking the use of the latest pyam-iamc package
Checklist
Please confirm that this pull request has done the following:

[ ] Tests added
[ ] Documentation added (where applicable)
[ ] Changelog item added to changelog/

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

Project coverage is 91.96%. Comparing base (b05dbeb) to head (e920873).
Report is 1 commits behind head on move-package.

Additional details and impacted files
@@              Coverage Diff              @@
##           move-package     #113   +/-   ##
=============================================
  Coverage         91.96%   91.96%
=============================================
  Files                15       15
  Lines               672      672
  Branches             72       72
=============================================
  Hits                618      618
  Misses               31       31
  Partials             23       23

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


Too many parallel connection error

{"message":"There are too many connections from your internet address.","name":"Error","stack":"Error: There are too many connections from your internet address.\n    at makeError (/Users/00831103/Workspace/project-2/image-pf-node/node_modules/ftp/lib/connection.js:1067:13)\n    at Parser.<anonymous> (/Users/00831103/Workspace/project-2/image-pf-node/node_modules/ftp/lib/connection.js:113:25)\n    at emitTwo (events.js:87:13)\n    at Parser.emit (events.js:172:7)\n    at Parser._write (/Users/00831103/Workspace/project-2/image-pf-node/node_modules/ftp/lib/parser.js:59:10)\n    at doWrite (_stream_writable.js:292:12)\n    at writeOrBuffer (_stream_writable.js:278:5)\n    at Parser.Writable.write (_stream_writable.js:207:11)\n    at Socket.ondata (/Users/00831103/Workspace/project-2/-pf-node/node_modules/ftp/lib/connection.js:273:20)\n    at emitOne (events.js:77:13)","code":421},"msg":"There are too many connections from your internet address.

There's nothing this module can do about that. It does not open multiple connections by itself. You will either need to lower the number of simultaneous connections or have some sort of retry algorithm if your IP is shared with others.


[dev] Don't share servers among tests

Why
We currently set up a single server that is shared among multiple test
cases. That's undesirable, since we want isolation in each test.
What changed
This change brings the isolation back. We're also giving up on onTestFinished.
Versioning

[ ] Breaking protocol change
[ ] Breaking ts/js API change

no longer needed


Decompose CnXGate grows exponentially in terms of CX, instead of linear

@anedumla noticed that theorem 5 in https://arxiv.org/abs/1501.06911 bounds the amount of CNOTs needed to decompose a SU(2) gate when (n-1)-controlled.

The bound of resulting CNOTs in the decomposition grows linearly with respect to the amount of controlled qubits. However, the decomposition of MCX groups exponentially:
number_of_qubits = []
result = []
boundery = []
for k in range(1, 10):
    n = k+1
    circuit = QuantumCircuit(k+1)
    circuit.append(XGate().control(k), list(range(k+1)))
    unroller = Unroller(basis_gates)
    qc = unroller(circuit)
    number_of_qubits.append(n)
    result.append(qc.count_ops()['cx'])
    boundery.append(28*n-88)

What is the expected enhancement?
A non-ancilla decomposition of QuantumCircuit.mcx() should result in a linear amount of CNOTs. https://arxiv.org/abs/1501.06911 refers to https://arxiv.org/abs/quant-ph/9503016 for calculating A-B-C, that can be precomputed.

In it's generic form, Theorem 5 can be applied any multi-controlled-W, where W \in SU(2). Therefore, I assume is can be generalised to fix the example https://github.com/Qiskit/qiskit-terra/issues/5840 by creating a possible decomposition.

How to decompose a gate in SU(2) into A, B, C : https://arxiv.org/abs/quant-ph/9503016
From Lemma 4.1., every element of SU(2) can be expressed as

Then, from the proof of Lemma 4.3.:

For a general unitary, not in SU(2), (i.e X gate) Theorem 4[1] seems to be applicable that gives a CNOT count that scales quadratic. According to the upper bound they give, it's beneficial to use their scheme only when n > 10. (however the bound they give seems not to be tight and i can think it can be improved).
Even ancilla decompositions of mcx can be proved (according to section 1 of the appendix A[1]) when:

mode=recursion. Current implementation uses 1 ancilla and has exponential CNOT count. With one ancilla qubit, it can be done with linear cost (16n - 40) (n: total no. of qubits)
mode=v-chain-dirty. Current implementation uses (12k - 22) CNOTs (k: no. of controls). It can be reduced to (8k - 6) that is better for k > 4.

Can i work on this?
[1] https://arxiv.org/pdf/1501.06911.pdf

Can i work on this?

Sure!

Hi @georgios-ts ! Any news?

I'm cleaning the assignees so it can be back to the pool of available short projects.

Hi Luciano,
Can I work on this?

Sounds good! @mtreinish should a synthesis interface be used for this?

Hi @1ucian0 ,
We have been working on this issue. Instead of using theorem 5 in [https://arxiv.org/abs/1501.06911], this issue motivated us to develop a new decomposition that requires a smaller number of gates for SU(2) multi-controlled gates [https://arxiv.org/abs/2302.06377]. PR#8710 is the first step to solve this issue and reduces the number of gates in the MCXRecursive (that now is not recursive).

@AlexisRalli: this issue and all the PRs that link to it above are what I was trying to find when you asked me about them the other day.  For others' reference: Alexis had also had some ideas about the generalised MCU constructions (see #9574 for one part, but I think he had more in the works as well), who I then told @alexanderivrii and @ShellyGarion about.
I don't have much to contribute myself to the discussion, just trying to link up all the folks I know about working on this, or things adjacent to this.

Thanks @jakelishman,
We intend to contribute with an n-qubit multi-controlled su(2) decomposition that requires ~16n cx if the gate has one real diagonal and ~20n for any other su2 gate.

Hi everyone,
I am reporting what we have done up until now about this issue.
We found some problems that need a fix concerning multi-controlled gates: multi-controlled rotations grow exponentially #9741; MCXVChain with dirty ancilla not optimal #9740; and MCXRecursive not optimal #9743.
We fixed the MCXVChain with dirty auxiliary qubits #9687 and the MCXRecursive #8710. We also fixed mcry and mcrx #9688. There is a conflict PR about multi-controlled rotations #9574. However, #9688 produces circuits with fewer cx gates because it implements our recent work about su(2) multi-controlled gates.
We did not fix mcrz because the actual implementation of mcrz applies an mcp gate (not su(2)) #9202. I do not know if we should open a PR with a fix to mcrz because this will impact several test cases and other users.
We would also like to contribute to #7505.

@ewinston. PR #9836 fix the mcrz. However it breaks compatibility tests. It is also necessary to include the multiplexer with a small number of control qubits.

@adjs @rafaella-vale - according to your paper [1] and to the function _mcsu2_real_diagonal, this function should decompose any multi-controlled SU(2) gate with a real main diagonal or secondary diagonal, hence it should also be able to decompose mcx or mcp gates.
[1] https://arxiv.org/abs/2302.06377
However, this decomposition does not work properly, since it does not provide the expected operator:
from qiskit.circuit.library.standard_gates import multi_control_rotation_gates as mcrg
for num_controls in range(3, 10, 2):
    qc = mcrg._mcsu2_real_diagonal(XGate().to_matrix(), num_controls, use_basis_gates=True)
    qc1 = QuantumCircuit(num_controls+1)
    qc1.mcx(list(range(num_controls)), num_controls)

    print (np.allclose(Operator(qc).to_matrix(), Operator(qc1).to_matrix() ))
    print (Operator(qc).equiv(Operator(qc1)))

gives False and False.
It also does not work for PhaseGate() and mcp.
But the same code seems to work for the pairs: RXGate() and mcrx, RYGate() and mcry, RZGate() and mcrz.
Moreover,
num_controls = 2
qc = mcrg._mcsu2_real_diagonal(XGate().to_matrix(), num_controls, use_basis_gates=True)
(Operator(qc).to_matrix()).round(decimals=0)

produces a wrong matrix for the Toffoli gate (in the last line it should be 1 and not -1):
array([[ 1.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j, 0.+0.j],
       [ 0.+0.j,  1.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j, 0.+0.j],
       [ 0.+0.j,  0.+0.j,  1.+0.j,  0.+0.j,  0.+0.j,  0.+0.j, -0.-0.j, 0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j, -0.-0.j,  0.+0.j,  0.+0.j,  0.+0.j, 1.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  1.+0.j,  0.+0.j,  0.+0.j, 0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  1.+0.j,  0.+0.j, 0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.-0.j,  0.+0.j,  0.+0.j,  0.+0.j,  1.+0.j, 0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j, -1.-0.j,  0.+0.j,  0.+0.j,  0.+0.j, 0.+0.j]])

Another synthesis method for MCX gates, if we also allow ancillas, then I think that the best method appears here:
https://arxiv.org/abs/1508.03273

Another synthesis method for MCX gates: if we also allow ancillas, then I think that the best method appears here: https://arxiv.org/abs/1508.03273

Hi @ShellyGarion, in this PR #9687 the mcx requires 8k-6 cnots (and k-2 ancillary qubits) to implement a k-controlled mcx. PR #8710 improves the number of cx gates with one auxiliary qubit (lemma 9 of https://arxiv.org/pdf/1501.06911.pdf).

The approximated multi controlled U(2) without ancillary qubits is implemented in qclib.
pip install qclib
import numpy as np
import qiskit
from qiskit.quantum_info import Operator
from qclib.gates.mcu import MCU

tol = 10**-2
n_controls = 11
X = np.array([[0, 1], [1, 0]])
qc = qiskit.QuantumCircuit(n_controls)
MCU.mcu(qc, X, list(range(n_controls-1)), n_controls-1, tol)
tqc = qiskit.transpile(qc, basis_gates=['u', 'cx'])

print('mcu # operations', tqc.count_ops())

qiskit_circuit = qiskit.QuantumCircuit(n_controls)
qiskit_circuit.mcx(list(range(n_controls-1)), n_controls-1)
qiskit_circuit.draw()

t_qiskit_circuit = qiskit.transpile(qiskit_circuit, basis_gates=['u', 'cx'])
print('qiskit # operations', t_qiskit_circuit.count_ops())

qc_matrix = Operator(qc).to_matrix()
qiskit_matrix = Operator(qiskit_circuit).to_matrix()

print(np.allclose(qc_matrix, qiskit_matrix, atol=tol))

will return
mcu # operations OrderedDict([('u', 395), ('cx', 360)])
qiskit # operations OrderedDict([('u', 3070), ('cx', 3068)])
True

It is also possible to decompose a multi controlled U(2) gate with linear circuit depth [1] and also with linear circuit size if we allow an approximation [2] .
[1] https://journals.aps.org/pra/abstract/10.1103/PhysRevA.106.042602
[2] https://arxiv.org/abs/2310.14974

Thank you @adjs for referring us to your recent manuscripts [1] and [2]. Would you be interested in contributing the code to Qiskit?

It is also possible to decompose a multi controlled U(2) gate with linear circuit depth [1] and also with linear circuit size if we allow an approximation [2] .
[1] https://journals.aps.org/pra/abstract/10.1103/PhysRevA.106.042602
[2] https://arxiv.org/abs/2310.14974

Thank you @adjs for referring us to your recent manuscripts [1] and [2]. Would you be interested in contributing the code to Qiskit?

@thiagom123 and @JeffersonDeyvis can you implement approximate multi-controlled gate in qiskit?

The primary focus of this issue is to decompose an MCXGate() using non-exponential number of CX gates, without using ancillas, thus fixing https://github.com/Qiskit/qiskit/issues/11823.

I am very happy to finally close this issue as all the PRs mentioned here have finally been merged!
I would like to thank @adjs and everyone who contributed to this enormous effort!
Feel free to open new issues and PRs with further synthesis algorithms for MCX with or without ancilla qubits if you think that they may be better than the current code.


cy.origin() failed to run the callback function due to the following error:

Using cy.origin() when I use the command Cypress.require() with any path from a class or requiring some file it gives the user the error bellow:
cy.origin() failed to run the callback function due to the following error:

Processing the origin callback errored:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

    at new NodeError (node:internal/errors:405:5)

    at validateString (node:internal/validators:162:11)

    at Object.dirname (node:path:654:5)

    at addTypeScriptConfig (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\node_modules@cypress\webpack-batteries-included-preprocessor\index.js:30:64)

    at preprocessor.getFullWebpackOptions (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\node_modules@cypress\webpack-batteries-included-preprocessor\index.js:189:12)

    at Object.processCallback [as handler] (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\cross_origin.js:16:26)

    at invoke (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_plugins.js:183:18)

    at C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\util.js:59:14

    at tryCatcher (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules\bluebird\js\release\util.js:16:23)

    at Function.Promise.attempt.Promise.try (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules\bluebird\js\release\method.js:39:29)

    at Object.wrapChildPromise (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\util.js:58:23)

    at RunPlugins.execute (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_plugins.js:164:21)

    at EventEmitter.<anonymous> (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\child\run_plugins.js:56:12)

    at EventEmitter.emit (node:events:517:28)

    at EventEmitter.emit (node:domain:489:12)

    at process.<anonymous> (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@packages\server\lib\plugins\util.js:33:22)

    at process.emit (node:events:517:28)

    at process.emit (node:domain:489:12)

    at process.emit.sharedData.processEmitHook.installedValue [as emit] (C:\Users\eduar\AppData\Local\Cypress\Cache\12.14.0\Cypress\resources\app\node_modules@cspotcode\source-map-support\source-map-support.js:745:40)

    at emit (node:internal/child_process:944:14)

    at processTicksAndRejections (node:internal/process/task_queues:83:21)

The code I use for the step is:
import { When } from "@badeball/cypress-cucumber-preprocessor";

When('I test origin', () => {
    cy.origin('https://www.google.com', () => {
        const basePO = Cypress.require('../page_objects/basePO')
        basePO.getPageTitle()
    })
})

This can be reproduced by solely using @bahmutov/cypress-esbuild-preprocessor and not including this preprocessor, as seen here. Thus, the issue lies elsewhere. You can try opening up an issue at either repositories.


Update Emulationstation over Retropie-Setup

Hello Guys,
When iam update Emulationstation or install Emulationstation-dev i get a older version from v4.1 and not the actual 4.2
With all old menu entries....
I am not alone with the problem, i make only the issue here
http://orangepi.club/showthread.php?tid=3087
https://github.com/retr0rangepi/EmulationStation/blob/master/es-app/src/guis/GuiMenu.cpp
GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "ROPi 4.1 MENU"), mVersion(window)
please update the source and fix the problem thx

this should fix
https://github.com/retr0rangepi/RetroPie-Setup/commit/061c06b1b5def0524c6e8fa7b587a746911d2714

very fast fix thx, i write it in the board

now works the update and i have follow error
lvl0: VolumeControl ::init() failed to find mixer elements
sound works... always the volume error and in sound settings is volume 0% can change it to 100 after reopen the menu 0% and volume error

ok, will take a look at this closer to release

i have change in es_settings the AudioDevice from Master to lineout now is the error solved
now not the best solution, better is an option to change the hdmi volume

Probably will have to branch ES because of mainline and other settings if we  move completely to pulseaudio


Add option for single file freezing using PyInstaller's --onefile option

As above; I attempted a simple hack of switching the the onedir option in _app.py to onefile and commenting out the part that copies modules to a then non-existent directory, but that then failes because the modules aren't present in the single file runtime.
Having checked throuh flexx/util/freeze.py I can see that this is because of the SourceImporter, so sadly a few-line hack won't work on this any thoughts/plans to implement the single file option (possibly bundling a minimal web runtime also)?

I don't have plans for implementing that myself at the moment. But a PR that implements it would be welcome :)


Add Managers Links to ComputerSystem, EnclosureChassis and BladeChassis

closes #86

This change is

Review status: 0 of 6 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: 0 of 6 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 6 of 6 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Issue within the geo_selector starting to investigate

What was I trying to do?
I'm trying to make the app running locally and try to deal with Geo_selector view

setup
All set up done as describe inside the Readme, The app is running locally.

Does anyone have issue to use Geo_selector locally ?
I was just so curious to try it tonight and to see how it's running behind the scene.
Here the issue
I can select the @region and the region stay displayed
I can select the  @subregion but the form closed it self just after having clicked on the @subregion.
So i never see the @country select form. I just start to investigate that and I was wondering if it'q a local issue or if it's a well know issue

The expo expects to have redis running as cache_store. This fails silently.
So even if you have enabled the dev cache with rails dev:cache it will not work unless there is a redis instance running and reachable under ENV["REDIS_URL"]
So the geo_selector will not work because sessions are not persisted across reflexes or requests.
So try to install redis, run it, set the REDIS_URL and see if it works now.

@v2lrf did @RolandStuder's solution work for you?

@leastbad seems like a yes based on the reaction.
Closing this. Feel free to reopen if needed.


Also, "cast" to string will use the separator setting in effect, so if this is the desired result there is a way to do it instead of relying on "@@".

Also doing interpolation you will also get the separators if enabled, as in:
c = pi * 10e20 -> 314,159,265,358,979,323,846,264.3383279503
`$c` -> "314,159,265,358,979,323,846,264.3383279503"
@@c -> "314159265358979323846264.3383279503"


Error after last Esphome version 2024.5.0

After last esphome version 2024.5.0, there are the follow compile error about library register:
`
Compiling .pioenvs/air-door/src/esphome/components/nuki_lock/nuki_lock.cpp.o
In file included from .piolibdeps/air-door/NukiBleEsp/src/NukiLock.h:3,
from src/esphome/components/nuki_lock/nuki_lock.h:10,
from src/esphome/components/nuki_lock/nuki_lock.cpp:2:
.piolibdeps/air-door/NukiBleEsp/src/NukiBle.h:14:10: fatal error: NimBLEDevice.h: No such file or directory

Looking for NimBLEDevice.h dependency? Check our library registry!

CLI  > platformio lib search "header:NimBLEDevice.h"
Web  > https://registry.platformio.org/search?q=header:NimBLEDevice.h

#include "NimBLEDevice.h"
^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/air-door/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1
========================= [FAILED] Took 59.81 seconds =========================
========== [ERROR] /config/esphome/air-door.yaml ==========

How can resolve the error ?
Thanks

I have the same problem. Already here #43

I confirm that reverting ESPHome back to previous version (2024.4.2) the problem is gone

I suspect that this is because ESPHome changed platformio version. Please check if adding h2zero/NimBLE-Arduino to libraries section solves the problem:
  libraries:
  - Preferences
  - https://github.com/h2zero/NimBLE-Arduino
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32

I suspect that this is because ESPHome changed platformio version. Please check if adding h2zero/NimBLE-Arduino to libraries section solves the problem:
  libraries:
  - Preferences
  - https://github.com/h2zero/NimBLE-Arduino
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32

Tested now.
Adding "NimBLE-Arduino" repository to libraries list solves the issue! 👍
Thank you very much for your support

Great issue resolved !  - CLOSED -
Be attention: use the same sequence of the libraries, if reversed again the issue
Thank you very much for your support

This issue can be closed since it was fixed in PR https://github.com/uriyacovy/ESPHome_nuki_lock/pull/48

Solved in rel v0.0.3


emissary does not configure knative grpc (http/2 cleartext) correctly

Describe the bug
I want to create a Knative service with Emissary that responds using the grpc protocol. This will require the port to be labeled as h2c and for traffic between my emissary ingress gateway and my knative service to be cleartext HTTP/2. However, the configuration created by Emissary in Knative Mode does not specify h2c at all, and the connection to my service ends up being HTTP/1.1.
To Reproduce
I attempted to create such an h2c knative service with the following knative client command:
kn -n $NAMESPACE service create \
    --force my-service \
    --image=myregistry.example.com/myimage:latest \
    --pull-secret my-secret \
    --port "h2c:8080" \
    --annotation getambassador.io/ambassador-id=my-id \
    --no-wait

The image I refer to contains a Golang HTTP/2 cleartext (h2c) server resembling this example, to allow for easy troubleshooting.
When the ksvc is created I can verify that it contains a port in the spec named h2c:
  ports:
  - containerPort: 8080
    name: h2c

When I issue an HTTP/2 request to the service with curl --http2-prior-knowledge https://myservice.example.com/status, the connection my client makes with Emissary is HTTP/2, but the back-end connection that reaches my service is HTTP/1.1, confirmed with tcpdump.
Expected behavior
The connection that reaches my service should be cleartext HTTP/2. The Ambassador Diagnostics page should show that my service is known to be HTTP/2.
Versions (please complete the following information):

Kubernetes environment: bare metal
Kubernetes version v1.19.9
Emissary version: emissary-ingress v2.0.2-ea
Knative mode: on
Knative version: v0.22.2

Additional info
I also have a tlsconfig that looks like this:
{
  "ambassador_id": "my-id",
  "hosts": [
    "*.example.com"
  ],
  "min_tls_version": "v1.2"
}

@bobby @boffbowsh it seem that this ticket from @sdhoward didn't get attention just yet, would you be so kind to look into the issue and prioritize the fix?

Did you mean to tag me @alexanderGalushka? I have no involvement with this project

my apologies, tagged you by accident

Is there any visibility on when this feature might roll out?


Keyword which can return the elements State

As a tester, I need a new keyword through which I can read or get the state of the element.

But in Inspector I find a State Property through they can be detected if they are enabled or not. Here the property called Unavailable.

Don't needed


Use css functions instead of importing css in each file

https://css.oddbird.net/sasslike/mixins-functions/#todo


When the code would use the best_model_func, cheap_model_func and embedding_func separately?

In one case nano will use cheap_model_func: summary the entities' description.
The rest of the cases will use best_model_func


commit confirm time

after change config commit and confirm else reboot

wontfix: for now will not add to vycontrol


Component to ingest spans from Kafka, writing to Cassandra/Elasticsearch

Requirement - what kind of business use case are you trying to solve?
Ability to see traces on the UI when using the Kafka storage plugin.
Problem - what in Jaeger blocks you from solving the requirement?
There's currently no component ingesting the spans from Kafka and writing it to Cassandra/Elasticsearch, so that the Query component cannot display the reported traces.
Proposal - what do you suggest to solve the problem or improve the existing situation?
My initial proposal is to have a separate component that registers itself as a Kafka consumer and writes data to Elasticsearch/Cassandra using the current storage plugin for them.
Like other components, this can be executed separately on its own binary and/or included as part of the standalone.

we will be open sourcing these components within the following weeks

ref #929

ingester was released in 1.7 (although didn't make it as docker container, that will happen in 1.8)


Upgrade Apache Commons Collections to v3.2.2

Version 3.2.1 has a CVSS 10.0 vulnerability. That is the worst kind of
vulnerability that exists. By merely existing on the classpath, this
library causes the Java serialization parser for the entire JVM process
to go from being a state machine to a turing machine. A turing machine
with an exec() function!
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8103
https://commons.apache.org/proper/commons-collections/security-reports.html
http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/

Thanks Glenn. I have released the latest version which fixes the vulnerability.


Determinant example documentation fix

The determinant of the example is supposed to be zero, which is the output of  xt::linalg::det(a). And for zero determinant matrices, the sign is 0 and logdet is -inf.

Thanks! How about using a different example that gives nicer results?

I agree @wolfv we should use something that is well-determined. This may give unneeded confusion...

See https://github.com/xtensor-stack/xtensor-blas/issues/191 . The current example is terrible, because it involves taking log(0), which we really shouldn't do, for sure not in an example.

@tdegeus @wolfv done! Check if this example suffices.

@tatatupi thanx!
The issues on the CI are due to the removal of gcc-7 and gcc-8 from the defualt install. I will fix them in a dedicated PR.


Deprecation

Closes #116
New feature allows removal of deprecated resources without triggering a breaking-change.
For full details see: https://github.com/Tufin/oasdiff/tree/deprecation#non-breaking-removal-of-deprecated-resources

Codecov Report

Merging #133 (89de7d8) into main (8141118) will decrease coverage by 0.16%.
The diff coverage is 82.75%.

@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   89.51%   89.34%   -0.17%
==========================================
  Files          70       71       +1
  Lines        4043     4121      +78
==========================================
+ Hits         3619     3682      +63
- Misses        303      313      +10
- Partials      121      126       +5

Flag
Coverage Δ

unittests
89.34% <82.75%> (-0.17%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

diff/config.go
100.00% <ø> (ø)

diff/endpoints_diff.go
85.57% <80.00%> (-1.24%)
:arrow_down:

diff/operations_diff.go
86.84% <81.25%> (-1.16%)
:arrow_down:

diff/paths_diff.go
91.04% <81.25%> (-1.46%)
:arrow_down:

diff/deprecation.go
82.85% <82.85%> (ø)

diff/method_diff.go
92.30% <100.00%> (+0.20%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Hi, I can't build into WebAssembly

#include <Carbon/Carbon.h>
^~~~~~~~~~~~~~~~~
make[2]: *** [subrepos/glfw/src/CMakeFiles/glfw.dir/cocoa_joystick.m.o] Error 1
make[2]: *** [subrepos/glfw/src/CMakeFiles/glfw.dir/monitor.c.o] Error 1
1 error generated.
shared:ERROR: '/Users/liyunhang/Documents/code/emsdk/fastcomp/fastcomp/bin/clang -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=42 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/include/libcxx -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/lib/libcxxabi/include -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/include/compat -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/include -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/include/libc -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/local/include -DEMSCRIPTEN -D_GLFW_USE_CONFIG_H -I/Users/liyunhang/Documents/code/CppOpenGLWebAssemblyCMake -I/Users/liyunhang/Documents/code/CppOpenGLWebAssemblyCMake/subrepos/glfw/include -I/Users/liyunhang/Documents/code/CppOpenGLWebAssemblyCMake/subrepos/glfw/src -I/Users/liyunhang/Documents/code/CppOpenGLWebAssemblyCMake/build/subrepos/glfw/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fPIC -Wall -c /Users/liyunhang/Documents/code/CppOpenGLWebAssemblyCMake/subrepos/glfw/src/init.c -Xclang -disable-O0-optnone -Xclang -isystem/Users/liyunhang/Documents/code/emsdk/fastcomp/emscripten/system/include/SDL -c -o CMakeFiles/glfw.dir/init.c.o -emit-llvm' failed (1)
make[2]: *** [subrepos/glfw/src/CMakeFiles/glfw.dir/init.c.o] Error 1
make[1]: *** [subrepos/glfw/src/CMakeFiles/glfw.dir/all] Error 2
make: *** [all] Error 2

Thank you for you did. Above was one of i got errors. Could you help me?

@Mrcooder can you provide the full log of the build? Seems like the Carbon.h file is missing or the header path is no properly set in compiler flags.

@Mrcooder I fixed some typos and on the pull request the builds run successfully either on CI (emscripten version tag-1.38.43) and locally with emscripten sdk-1.38.31-64bit.
I would suggest you to try with the one of two versions of emscripten above, or to try on an another machine which can help sorting out what the problem is, let me know!

@Mrcooder I fixed some typos and on the pull request the builds run successfully either on CI (emscripten version tag-1.38.43) and locally with emscripten sdk-1.38.31-64bit.
I would suggest you to try with the one of two versions of emscripten above, or to try on an another machine which can help sorting out what the problem is, let me know!

Thank you for your did

@Mrcooder let me know if you managed to get the game built!


fix[New Event]: Fix margin on new event('/new/event');

The entire component is not visible on the New Event input form at '/new/event'. The component needs to be pushed down.

PR #13 has resolved this issue.


provisioning for the case of zero routes

currently creating a PIC from a yaml netlist fails if there are not yet routes defined (routes is empty). this fix provisions for the case of empty routes, such that now simply no elements will be generated

thank you Troy @tvt173


bridge: Initialize bridge_with_slack.

[x] Add typing annotation

It works when run on a server where websocket connections aren't blocked. check_zulip_message_validity is copied from bridge_with_matrix, so I think there should be a util library to import all common bridge operations.

What's the status of this in terms of testing etc?  I'd be fine with merging to master and iterating from there assuming someone else has successfully run this (@punchagan have you?).

I haven't run this after the slackclient was updated. I'll give it another spin and report back.

@punchagan I know it is super late to ask, but how was the testing going?

Just figured I'd post a bump on this thread.

I have just updated the PR by removing the sender field from msg_data.

@punchagan do you have time to test this again?

I added 2 commits. One is to update members list to the new API, the other is adding documentation. I wasn't able to test the new bridge because I can't connect using websocket. @timabbott should I not use Slack's websocket feature so that the bridge is more robust?

Update: Mirroring messages sent in Zulip into Slack works. But the reverse is hard to do because according to https://github.com/slackapi/python-slackclient#basic-usage-of-the-rtm-client,

Please note that the default way of creating Slack apps no longer supports RTM API. Events using the RTM API must use a classic Slack app (with a plain bot scope).

I am now experimenting with the classic bot. Things surely have change in the past 2 years since this bridge was first written.

Now the bridge works with classic bot app, as of July 2020. I have updated the documentation!!

Posted one comment on the docs; @rht can you also think about which commits should be squashed here?
I'm leaning towards merging this and iterating on it post-master since it's been hard to get someone else to test, and you've put a lot of work into this.  Does the bridge work bidirectionally with the current version?  Wanted to make sure I understand the remarks above.

Does the bridge work bidirectionally with the current version?

Yes, it works bidirectionally.

@timabbott I have squashed some of the commits.

Hey guys! I'm really interested in this feature. I tried to set it up and I couldn't figure out what was going wrong. Do you have any loom/gif/describer to help me install this?

@maneeshsethi let's talk at https://chat.zulip.org/#narrow/stream/127-integrations/topic/slack. I'm Rein Zustand if you can catch me online there. To me, the hardest part is in creating the Slack classic bot account. Not even Matterbridge describes how to do this.
Let me know which part of https://github.com/zulip/python-zulip-api/pull/493/files#diff-539431824ef0be4c6375957e3fba57b5R18 is unclear so that I can improve the documentation.

@maneeshsethi  the more you can provide detail for the trouble, the more I can help debug.

Hey all. I got it working. No problems on our end. Using now. Anything I can do to help @rht in getting it merged?
I'd love to see a version that lets us map multiple slack channels to multiple zulip streams. A thread in a slack channel, could create a Topic in zulip -- that would be cool.
Possibly can contribute my developer if wanted/necessary. Let me know.

Merged, thanks @rht!  Can you submit a PR for zulip/zulip to add documentation for this?  We'll probably want to give this the token slack_bridge for the docs and add cross-links with https://zulip.com/integrations/doc/slack and https://zulip.com/integrations/doc/slack_incoming.

@eeshangarg can you prepare a python-zulip-api release?  There's a bunch of nice changes since the last release.

@timabbott I made https://github.com/zulip/zulip/pull/16201. Not sure how to make the documentation to be discoverable though.


Install Chrome as part of developer dependencies

This PR adds puppeteer as a developer dependency and then we set the CHROME_BIN path to the puppeteer chrome binary path.
This is useful in environments where Chrome isn't installed such as Codespaces.
See https://github.com/karma-runner/karma-chrome-launcher#headless-chromium-with-puppeteer

Using playwright to run tests and running on Firefox & Webkit sounds good. I'll leave those for the future as I ran into issues with launching Firefox as well as the binary itself. Figured we can still do this change to unblock people running into the issue of not being able to run the tests because Chrome isn't available.


Look for externally shared DynamoDB Tables

New feature motivation
On march 20th, AWS announced Amazon DynamoDB now supports resource-based policies. It would be good to have a Prowler check to look for DDB tables that have been shared to other accounts (note: it's not possible to share a table publicly, so this is good).
Solution Proposed
Boto3 call for the solution
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/get_resource_policy.html
Describe alternatives you've considered
None, this is a new feature release.
Additional context
No response

Thanks for letting us know this new change @jchrisfarris !
I'm working on this new check 💪🏼


Hi, i got a problem in bot.py..

DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
This is the error, and the bot when is hosted don't show any commands..
Thank you very much for your code!

Try to replace loop = asyncio.get_event_loop() with:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

Perfect thank you, now the bot runs good...
But when I wanna add a new parcel, after adding the name of the collection the bot replies this: Ой-ой... Что-то пошло не так - код 403
How can i fix it? Thank you!

This is because the site has Cloudflare protection that blocks requests. I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can

Ohh okay mate, i'll try... thank you!
On Wed, 2 Feb 2022 at 17:30, lleballex @.***> wrote:

This is because the site has Cloudflare protection that blocks requests.
I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can
—
Reply to this email directly, view it on GitHub
https://github.com/lleballex/magiceden-bot/issues/1#issuecomment-1028121760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVXYP3PYQ33MVCWQIOAHDLTUZFL3BANCNFSM5NJTDMYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

https://stackoverflow.com/questions/68930114/bypass-cloudflares-captcha-with-headless-chrome-using-puppeteer-on-heroku
Maybe can help..


Need example of deleting duplicate data with both the Key and Value

LMDB allows you delete duplicate keys by providing both the key and the value (for databases opened with MDB_DUPSORT).
I have created a database that allows dup keys and opened it with:
keyIsUint32: true,
dupSort: true,
dupFixed: true,
integerDup: true
Both the key and the value are numbers (based on the definition I believe they would both be 32bit unsigned ints...)
Delete works fine if I specify just the key, but it deletes all the data as expected.
txn.del(dbiRelationship, key);
txn.del(dbiRelationship, 16);
However, when I try to delete one of the duplicate entries using both the key and value, I get an error:  "Specified key type doesn't match the key you gave."  The key is correct and if used alone (as shown above, it works fine).  The value is correct and exists...
txn.del(dbiRelationship, key, value);
txn.del(dbiRelationship, 16, 256);
I don't know whether I'm doing something wrong, or whether there is an issue with the library.  I searched, but did not find an example specifying both the key and the value when deleting.
Thanks

@nwbrad Thanks for reporting this! I believe it's a regression in the last few releases. Can you please put together a simple, but complete test case that I could use to test your use case?

If you have the time, even better would be if you could add it to the module tests and send me a pull request for that.

I have never done this before, so hopefully I did it correctly.
Added the file dupsort_delete.js
It is modeled after your dupsort.js, but it just has a case for the specific issue I encountered.
I tested with integer key and integer value.  But, but I imagine the same issue will happen with other values.

@nwbrad Thanks! I'll take a look this weekend and get back to you.

Sorry for taking so long, I've had some other stuff I needed to take care of. I'll look into this bug as soon as I can.

Thanks.
From: Timur Kristóf<EMAIL_ADDRESS>Sent: Thursday, June 08, 2017 4:30 AM
To: Venemo/node-lmdb
Cc: nwbrad; Mention
Subject: Re: [Venemo/node-lmdb] Need example of deleting duplicate data with both the Key and Value (#106)
Sorry for taking so long, I've had some other stuff I needed to take care of. I'll look into this bug as soon as I can.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Venemo/node-lmdb/issues/106#issuecomment-307076644 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAVNVVJ58g27PA2y-QXvfZh4E7w5LFPeks5sB9tHgaJpZM4NdPEU .  https://github.com/notifications/beacon/AAVNVYE6AlP7c7J0D7KFu7aknQwBmArpks5sB9tHgaJpZM4NdPEU.gif

@nwbrad The issue has been fixed and the fix has been release with v0.4.13 can you please take a look and see if it works for you?

Thanks.  It works for me now!
From: Timur Kristóf<EMAIL_ADDRESS>Sent: Wednesday, June 21, 2017 3:12 PM
To: Venemo/node-lmdb
Cc: nwbrad; Mention
Subject: Re: [Venemo/node-lmdb] Cursor.del doesn't work with dupsort databases when specifying both key and data (#106)
@nwbrad https://github.com/nwbrad  The issue has been fixed and the fix has been release with v0.4.13 can you please take a look and see if it works for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Venemo/node-lmdb/issues/106#issuecomment-310220023 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAVNVTnz4XU67nN0_1M6Rj0HwinfXxxxks5sGZU0gaJpZM4NdPEU .  https://github.com/notifications/beacon/AAVNVUXZCcEaUkRNB0PGRhlK7rLOqEhzks5sGZU0gaJpZM4NdPEU.gif

Awesome, thanks!


Inlcude MagmaEgg implications in build (and fix-up application symbol)

The previous PR adding these implications (#216) did not include the implications in Generated.lean so they haven't gotten picked up by the main build and all the subsequent tooling (dashboards, etc.)
Add it to Generated.lean, and fix-up the changed application symbol.

Oops, sorry, I think I lost that change when rebasing.


Write a script to check if the command have conflict or not

rite a python script which read a file or a string to check if there is any conflict in commands or not, it should show the messages like this:

No conflicts
(means new command has no conflict with the pre used commands)
Warning
(means some of the words match with the pre used strings)
Error
(means string will cause issue as there is already similar string is in use)

Note: This is for TTGO input_manager function as we have to set strings for some task so to avoid conflict this task should be help in this case.


Rename DapAccess to UntypedDapAccess, combine ApAccess and DpAccess into TypedDapAccess

I don't think having separate traits for ApAccess and DpAccess makes much sense anymore, so I've combined them nto a single trait. The flush method must be available as well, so this can also be on the same trait.

 As an alternative, maybe we could move the typed API into GenericAp/MemoryAp? So it sits "on top of" DapAccess, instead of "alongside" it.
struct MemoryAp {..}
impl MemoryAp {
   pub fn read_csw(&mut self, dap: &mut impl DapAccess) -> Result<CSW, Error> {..}
   pub fn write_csw(&mut self, dap: &mut impl DapAccess, value: CSW) -> Result<(), Error> {..}

}

Yes, I don't like the names as well, they are more place holders...
Putting the typed API onto the AP structs themselves sounds interesting as well, I'll try to figure out a nice way to do that. I wonder how we should handle the different debug port versions though.

Maybe a struct Dp which is the equivalent of MemoryAp/GenericAp for DPs? It could then contain fields like the DP version, and the read_xx/write_xx methods could check the version.

For now we could just add default implementations for the typed methods? So just move them to the existing DapAccesstrait. We can then still cleanup later, but this would remove two traits and cleanup the interface.
What do you think?

I think the end goal is moving the typed API to a "higher layer" though, to MemoryAp, GenericAp, Dp structs. Changing stuff to change it later again seems a bit pointless :)

Is this still a thing?


Add auto compelete attribute to the filed tag helper

Add auto compelete attribute to the filed tag helper

Thanks!


Windows Executable?

I am missing a Windows executable since this is a Go wrapper and a Windows OS release would be really nice to have.

Release 1.1.0 has now added builds for all supported Go platforms, including Windows.


Updating GraphQL Mesh /reference

This PR updates the /reference documentation originated from https://github.com/Urigo/graphql-mesh to the current version.
Also closes https://github.com/AdobeDocs/graphql-mesh-gateway/issues/77

@brasewel @revanth0212 This PR updates the Guild documentation in our /reference/ section with the changes for V2.


Issue with /docs/admin/authentication/

This is a...

[ ] Feature Request
[x] Bug Report

Problem:
Incorrect HTTP header is quoted in the "Putting a Bearer Token in a Request" section.
Proposed Solution:
Replace the word Authentication with Authorization so the line becomes:
Authorization: Bearer 31ada4fd-adec-460c-809a-9e56ceb75269
Page to Update:
http://kubernetes.io/docs/admin/authentication/

Fixed


utoronto: Don't force usage of notebookapp

https://github.com/2i2c-org/infrastructure/pull/3582 has been merged, so we can stop forcing NotebookApp in prod.
Without this, JupyterLab actually fails to launch, fixed upstream in https://github.com/jupyter-server/jupyter_server/pull/1384
Ref https://github.com/2i2c-org/infrastructure/issues/2729

self-merging to restore JupyterLab on the prod utoronto hub


Updated value not reflected in field

While you can set the default value via:
<ReactPhoneInput value="..." />

There is an issue in that if you change the state of the component it is in then it won't get the updated value. It would appear a change need to be made to componentWillReceiveProps() function to accept an update value.
Expectation is that the number in the field, in the example below, will end up being "+33 4 93 42 64 90":
class MyView extends Component {

   constructor(props) {
      super(props);

      this.state({
          phone: "+1<PHONE_NUMBER>"
      });
   }

   componentWillMount() {
      this.setState({
        phone: "+33 4 93 42 64 90"
     });
   }

   render() {
      return <ReactPhoneInput value={this.state.phone} />
   }
}

@razagill could you please merge that pull request?


Emojis didn't change (Ubuntu)

I followed the instructions, rebuild the cache and even tried a reboot, but the new emojis just won't be used by my Ubuntu PC.
I'm on Ubuntu 22.04.03.
I checked and I only have AppleColorEmoji.ttf in ~/.local/share/fonts/ so there shouldn't be any conflicts with different fonts.

Hi @Arche151, could you try this and see if that fixes it?

@dmlls Didn't work unfortunately :/

@Arche151 could you then try a system-wide installation placing the font at /usr/local/share/fonts or /usr/share/fonts?

placing the font at /usr/local/share/fonts or /usr/share/fonts?

This worked for me on Ubuntu 24.04 LTS x86_64


Update to 1.4.0 fails

Hello there,
CLI is prompting an update, but the latter does not work. Seems that you're referencing your test-artifact repo.
➜  ~ ic update
Checking for updates...
New version 1.4.0 is available.
Release notes: https://github.com/IBM-Cloud/ibm-cloud-cli-release/releases/tag/v1.4.0

Do you want to update now? [Y/n] > y

Installing version '1.4.0'...
Downloading...
FAILED
An error occurred when downloading the binary:
Get "https://downloads.clis.test.cloud.ibm.com/ibm-cloud-cli/1.4.0/binaries/IBM_Cloud_CLI_1.4.0_macos.tgz": dial tcp <IP_ADDRESS>:443: i/o timeout
Try again later.

Thanks for reporting the issue. We noticed it and rolled back.  We are investigating the issue and will get it fixed asap.

It was fixed earlier today.


Fixed missing for loop to allow for compilation with stars

Looks like this line was missing a loop over chunks. I don't actually know what this code does, but every other reading routine has it.
This is only seen if trying to compile with -DVR_WITH_STAR=ON.

@JBorrow I actually tried compiling the latest master only with -DVR_WITH_STAR=ON and saw a bunch of other errors apart from that. Did you encounter those as well? It seems the code in principle should support this settings on its own right, but at the moment only works correctly if you specify -DVR_WITH_GAS=ON as well (hence the Travis builds haven't failed).
Please let me know if you find see these extra errors I'm mentioning. If you do, would you like to try fixing those as well? I feel like I don't have enough knowledge on how to fix them myself. Or if you prefer, you can just work around this problem for the time being by adding the additional GAS option to the build; in that case I'd rather leave this PR on hold until Pascal is back and has some time to look into it.

My 2 cents that you can happily ignore: I would think that compiling with stars only makes sense if you also have gas.


Specs on data import missing

Can you please clarify the format expected for the Static list data import? Below is the example that fails with no helpful information provided in the error. It would be beneficial to have an example in UI. I am unclear, for example, how the custom metadata should look in CSV...?
MarketingEmails.csv

There is a fix merged for the list you provided. Have additionally added some documentation on what fields are available to the lists page: https://docs.parcelvoy.com/how-to/lists


DatePicker with calendar 'single' fires onChange with an empty array instead of the selected date

If I create a DatePicker of the single type to allow selection from a calendar, the onChange event that fires contains an empty arguments as its value instead of an actual event.
To reproduce see the storybook link below.  Clear the events section and use the calendar to pick a date.  Notice the onChange event is an empty array.
See this link:
http://react.carbondesignsystem.com/?selectedKind=DatePicker&selectedStory=single with calendar&full=0&down=1&left=1&panelRight=0&downPanel=storybook%2Factions%2Factions-panel

Thanks for taking the time to write out the steps to reproduce! Super helpful.
Confirmed that the issue exists, will try and get this prioritized for a bug fix.


Adding helm init

Helm commands will not work if helm init has not been run first. For example:
$ helm repo add jetstack https://charts.jetstack.io
Error: Couldn't load repositories file (/home/rancher/.helm/repository/repositories.yaml).
You might need to run helm init (or helm init --client-only if tiller is already installed)
Also, it doesn't hurt to run "helm init" a second time if user has run it in the past.

@dnoland1 we're about to release new air gap docs with the v2.3 release and it changes this whole section. can you review the staging branch on where this should be updated?


Add HTTPRoute support for request mirror filters

Adds support for request mirror filters for HTTPRoutes.
Resolves https://github.com/envoyproxy/gateway/issues/656 but as noted on that issue, the request mirrors will need to be added for gRPCRoutes as well.
if there is anything left that needs to be done for request mirror filters on gRPCRoutes once support for them lands from https://github.com/envoyproxy/gateway/pull/805 then I can take that as a separate/follow-up issue.

one minor comment, but overall LGTM @AliceProxy !

I will take a quick review, if nothing is blocking I will merge it. Thanks!


Memory leak when device firmware update is ready

I agree to the following

[X] I have read the documentation right now
[X] I have read the FAQs right now
[X] I am aware of the latest release notes
[X] I am aware that an integration that was installed via HACS also needs to be updated via HACS
[X] The Backend (CCU/Homegear/...) is working as expected, devices are taught in and are controllable by its own UI.
[X] I am running the latest version of the custom_component (and Home Assistant)

The problem
Follow up to #1622 which is locked and I can't reopen.
As a dict was growing constantly, I did a profiler.dump_log_objects. As this gave me a 600mb txt file, it took me some time to analyze, but I found something that looks like a leak:
The dict object contains 22.889 entries and each entry contains a list with 1030 duplicate entries or a multiple of it e.g. for HmIP-RCV-1 it have 51.500 list entries (with values 1-50 repeated 1030 times):

HmIP-RCV-1:

Maybe this helps to locate the memory leak.
Note: The dump was taken with version 1.64.0b3.
What version of HomematicIP (local) has the issue?
1.64.0b3
What was the last working version of HomematicIP (local)?
No response
What type of installation are you running?
Home Assistant OS
What type of installation are you running for your homematic backend?
CCU3
Which version of your homematic backend are you running?
3.75.7
What hardware are you running for your system?
Pi4 for HA, Pi3 for piVCCU3
Which config details do you use

[ ] TLS
[ ] callback data (see)

Which interfaces do you use?

[X] Homematic IP
[ ] Homematic (Bidcos-RF)
[X] Groups (Heating-Group)
[ ] BidCos-Wired (HM-Wired)

Diagnostics information (no logs here)
see #1622
Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!
No errors, log file is 600+ MB due to dump

Additional information
No response

Nice!

Please retest with 1.65.0b3

1.65.0b4 should have some minor optimisations.

Thanks, updated to latest beta! I'll report back in the next days.

The memory consumption of HA core (and the whole HA OS) is stable again. It seems that the memory leaks are solved now. Thanks!


Mismatched versions in "Write Your First Flutter App, part 2"

In the codelabs tutorial -> https://codelabs.developers.google.com/codelabs/first-flutter-app-pt2#2
there is a link for the source of lib/main.dart from the first part of the tutorial. It points to the latest version in the github repo, however the remaining part of the tutorial refers to methods that were removed on 1/4/2022. Either the link should point to the earlier version ( https://raw.githubusercontent.com/flutter/codelabs/30ab69be4162410fd48b2e0f05be37169e012430/startup_namer/step4_infinite_list/lib/main.dart ), or the tutorial needs to be updated to work around the change.
In it's current state part 2 of the tutorial doesn't make any sense.

Actually, it might be prudent to check all of the source code links in part 2 of the tutorial. They all seem to point to more recent versions that don't match the instructions in the tutorial.

/cc @domesticmouse


Importing .blend causes endless dialog loop and locks entire system (Arch Linux-provided Blender)

Godot version
v4.1.stable.arch_linux
System information
Artix Linux AMD64, Blender 3.6.0
Issue description
Trying to import .blend files causes all manner of weird problems:

It imports as just one plane instead of the actual contents of the file
At one point, that plane appeared in a different scene entirely
I tried saving another copy of the .blend file, which Godot automatically imports, but...
...the import fails, saying the file is corrupt, and then it tries again, and again, and again.

The result is it gets into a loop of opening the import progress dialog, deciding the file is corrupt, closing the dialog, and immediately opening it again. This actually made my entire desktop unusable because Godot was stealing focus several times per second and wouldn't respond to attempts to close it. I could only recover by switching to another VT and killing it there.
I can't open the project to remove extraneous files, since opening it immediately causes the same dialog loop. I've zipped the project files with unrelated ones omitted.
The relevant .blend file that fails to import is maps/pyramid/pyramid.blend. The one that I added that causes the dialog loop is maps/pyramid/pyramid2.blend. I also left maps/fox because that was the map that started doing strange things, like showing the plane that imports from pyramid.blend, and at one point saying its .tscn file was corrupt.
Steps to reproduce

Open the project
If it doesn't break immediately, try to import pyramid.blend
The import shows just one plane, but opening it in Blender should reveal a much more complex structure

Minimal reproduction project
project.zip

Will jump in adding that I am seeing the exact same behavior trying to import blend files on Arch with Godot 4.1

Me too, also on Arch. I removed the .godot directory for unrelated reasons, then opened the project in the editor, and it just loops indefinitely trying to import each .blend file in turn. The import fails, probably due to #80540, but there is no reason it should be retried over and over again.

Similar problem here on Archlinux. As soon as I start Godot it gets stuck in a loop going back and forth between the main window and the open dialog. This happens with both 4.1.1 and 4.1.2 RC
It does not happen with 3.5.2

This is an issue with the Blender Arch Linux package. Please use the download from blender.org until it's fixed.

There is definitely multiple issues here. The forever loop on the dialog doesn't seem to have anything to do with Blender

Getting this with both Blender 3.6.1 and 3.6.7. Testing with simple cube Godot 4.2.1 goes into a loop with errors "Error importing 'res://something.blend'".

Unsure if this is exactly the same issue, but I've switched to a new PC and installed Arch Linux from scratch (as you do) and I'm getting the following error. I do want to note that this didn't appear to be a problem in my previous (also Arch) install.
  modules/gltf/gltf_document.cpp:7673 - Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
  Error importing 'res://terrain.blend'.

Godot: v4.2.2.stable.mono.official [15073afe3]
Blender: 4.2.0
@Calinou Your comment left me just as confused and frustrated. What's the source of this claim? Is this issue tracked anywhere on Arch's end?
According to the package details there's a patch enabling glTF compression, which actually allows Blender to open certain files it couldn't before. From what I understand looking at the related issue, anyway. This is a recent issue but the patch is 2 years old. I'm not sure this is also used when exporting, but if so, this would lead me to believe the issue is with Godot not being able to open compressed glTF files. I could have a look to see if this is the case.
But if I'm wrong, regardless, I would like to know what the issue is, other than "it just doesn't work with X".

Yes, Godot doesn't support Draco mesh compression.
If there's a way to explicitly turn it off when exporting from Blender, we should do that.

According to Blender's API for export_scene, the option to enable compression (export_draco_mesh_compression_enable) should be off by default. I wish there was an easy way to check the .gltf file Godot asks Blender to make to inspect it. That is, assuming I'm even on the right track.

Okay following the error backwards and trying to understand what's going on:
ERROR: Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
   at: append_from_file (modules/gltf/gltf_document.cpp:7673)

Is the error displayed in the terminal. Looking at append_from_file this likely because the file simply doesn't exist.
	Ref<FileAccess> file = FileAccess::open(p_path, FileAccess::READ, &err);
	ERR_FAIL_COND_V(err != OK, ERR_FILE_CANT_OPEN);

I can see this being called here, which leads me to believe that Blender was started a couple lines above, which causes this python script to run in Blender, but didn't produce a .gltf file. So the question remains: Why? Is there an error silently getting ignored?

Notably, when I set the Blender RPC port to 0, I get the looping import dialog behavior described in the first post.

The other potential line of attack could be checking if it has something to do with the version Python used. Unsure about official releases, but I believe Arch will build Blender with and use the system provided version of Python which for me is 3.12.4.

You can use a debugger or add some print_line in the Godot code to check what command is passed to Blender, and then try to run it manually yourself from the command line, to see what happens.

You can use a debugger or add some print_line in the Godot code to check what command is passed to Blender, and then try to run it manually yourself from the command line, to see what happens.

Doesn't --verbose print it already? We should make it do that if it's not done already.

Running Godot itself with that flag? Here's my output:
[...]

CORE API HASH: 622119089
EDITOR API HASH: 497707466
EditorSettings: Load OK!
Found .NET Sdk version '8.0.107': /usr/share/dotnet/sdk/8.0.107
Loaded system CA certificates
EditorSettings: Save OK!
Socket error: 111
Connection to remote host failed!

[Above two lines repeat about 100 times ...]

Blender 4.2.0 (hash a51f293548ad built 2024-08-03 07:45:49)
Socket error: 111
Connection to remote host failed!

[Again, above two lines repeat about 100 times ...]

Read blend: "/home/copygirl/Projects/godot/SlimeDream/terrain_source.blend"
<IP_ADDRESS> - - [08/Aug/2024 19:00:27] "POST / HTTP/1.1" 200 -
ERROR: Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
   at: append_from_file (modules/gltf/gltf_document.cpp:7673)
ERROR: Error importing 'res://terrain_source.blend'.
   at: _reimport_file (editor/editor_file_system.cpp:2061)
Read blend: "/home/copygirl/Projects/godot/SlimeDream/terrain_source.blend"
<IP_ADDRESS> - - [08/Aug/2024 19:00:27] "POST / HTTP/1.1" 200 -
ERROR: Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
   at: append_from_file (modules/gltf/gltf_document.cpp:7673)
ERROR: Error importing 'res://terrain_source.blend'.
   at: _reimport_file (editor/editor_file_system.cpp:2061)
Read blend: "/home/copygirl/Projects/godot/SlimeDream/terrain_source.blend"
<IP_ADDRESS> - - [08/Aug/2024 19:00:27] "POST / HTTP/1.1" 200 -
ERROR: Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
   at: append_from_file (modules/gltf/gltf_document.cpp:7673)
ERROR: Error importing 'res://terrain_source.blend'.
   at: _reimport_file (editor/editor_file_system.cpp:2061)

Now if I once again set the RPC port to 0, I get a little more:
Blender 4.2.0 (hash a51f293548ad built 2024-08-03 07:45:49)
Read blend: "/home/copygirl/Projects/godot/SlimeDream/terrain_source.blend"
Traceback (most recent call last):
  File "<string>", line 9, in <module>
  File "/usr/share/blender/4.2/scripts/modules/bpy/ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Converting py args to operator properties:: keyword "export_colors" unrecognized

Blender quit
ERROR: Condition "err != OK" is true. Returning: ERR_FILE_CANT_OPEN
   at: append_from_file (modules/gltf/gltf_document.cpp:7673)
ERROR: Error importing 'res://terrain_source.blend'.
   at: _reimport_file (editor/editor_file_system.cpp:2061)

[This repeats until I forcibly close the program ...]

export_colors, set here, does not exist as a parameter to export_scene.gltf. However, this if branch is not supposed to be run, as the Blender version is 4.2 or above:
if (blender_major_version > 4 || (blender_major_version == 4 && blender_minor_version >= 2)) {
	if (p_options.has(SNAME("blender/meshes/colors")) && p_options[SNAME("blender/meshes/colors")]) {
		parameters_map["export_vertex_color"] = "MATERIAL";
	} else {
		parameters_map["export_vertex_color"] = "NONE";
	}
} else {
	if (p_options.has(SNAME("blender/meshes/colors")) && p_options[SNAME("blender/meshes/colors")]) {
		parameters_map["export_colors"] = true;
	} else {
		parameters_map["export_colors"] = false;
	}
}

@copygirl This is 4.3 code, but you're using Godot 4.2.2, which predates Blender 4.2 and its compat breakage on the export_colors parameter. This was already fixed by #93998 which will be cherry-picked for Godot 4.2.3 once I get a respite from finalizing 4.3 :)
Still, there's room for improving how our importer deals with failing Blender exports. You also seem to be having issues using the rpcxml method, which may be the issue that was found to be specific to the Arch package maybe?

@akien-mga Considering how much effort I put into code surfing, I sure could've checked when that code was committed. :sweat_smile: Alright. All good, then. On the bright side, I hopefully will have added some information on how people can get some info on why the importing fails, if it still does.
Not sure what the socket errors mean. Are they related to communicating with Blender? It feels like the rpcxml thing works fine, after all it appears to return status code 200. Maybe the same error occurs, but it simply doesn't get displayed using this method?

This issue is getting rather convoluted now, with various ways in which Blender imports can fail, some of which are tracked and fixed in other issues:

Whatever caused the original report
export_nla_strips being removed since Blender 3.6 (tracked in #80540)
Draco mesh compression not being supported by Godot
export_colors being removed since Blender 4.2 (fixed in #93998)

I propose for this issue to be repurposed and renamed to: Blender import failure causes endless dialog loop, regardless of the cause of the import failure. Thus, it has nothing to do with Blender versions, and not with Arch Linux either.


Doc config file

Hi @ShahriyarR
I've updated a part of your doc/config_file.rst.
Some of the options took a litte time to figure out. Maybe this way I can save others some time by sharing this ;-)
A couple of questions:

prepare_archive
What does this actually do?
move_archive
I've noticed when I use the following structure and NOT move_archive (thus tar.gz when archiving) this goes well. But if you use move_archive the move function will move the archive in itself in a kind of endless loop eventually filling up diskspace.

/mnt/backup/full
/mnt/backup/inc
/mnt/backup/archive

In that case I add another dir containing the full and inc dirs, e.g:
/mnt/backup/backups/full
/mnt/backup/backups/inc
/mnt/backup/archive

Let me know what you think!

Hi @JasperAlgra
About prepare_archive :
                if hasattr(self, 'prepare_archive'):
                    logger.debug("Started to prepare backups, prior archiving!")
                    prepare_obj = Prepare(config=self.conf, dry_run=self.dry, tag=self.tag)
                    prepare_obj.prepare_inc_full_backups()

This feature is implemented to have already prepared backup in archive. I.E it is going to prepare all backups and then archive them.
For move_archive it should create full_backup_name+'_archive' directory inside archive_dir and move backup there:
                if hasattr(self, 'move_archive') and (int(self.move_archive) == 1):
                    dir_name = self.archive_dir + '/' + i + '_archive'
                    try:
                        shutil.copytree(self.backupdir, dir_name)
                    except Exception as err:
                        logger.error("FAILED: Archiving ")
                        logger.error(err)
                        raise
                    else:
                        return True

Merging to release_v1.5.3 branch.


Feel free to check out my implementation!

I've implemented:

Rectified flow model from SD 2.1
Flow Matching inversion (similar to DDIM Inversion)
Euler, Midpoint and RK4 solvers
$Reflow^2$
$Reflow^2$ one step distillaiton

https://github.com/leffff/FlowModels

@leffff haha nice, i try not to read other people's code these days, but glad you are looking into it as well!


Add system test for epoch commands

I think @lucafavatella meant that the PR should mention the change, not a comment in the code itself.

Correct - I meant comment in PR on github not code - though fine anyway.

The comment seems to be gone now, as far as I can see


JSX syntax usage

Hi there, I'm using this way of writing React and I'm trying to access the click outside functionality. Could you please suggest how to do it in this case:
import React from 'react';
import OnClickOutside from 'react-onclickoutside';

export default class Menu extends React.Component {

	constructor(props){
		super(props);
	}

	render() {

		return (
			<OnClickOutside>

Test 1

Test 2

Test 3

			</OnClickOutside>
		);
	}

    handleClickOutside(event) {
    	console.log('Clicked outside.');
    }
}

What does it say when you use this syntax?

This solved my issue:
http://stackoverflow.com/questions/36961465/wrapping-a-high-order-componenthoc-around-a-react-component-in-jsx

ah, good to know. Thanks for filing and solving!


Hard crash (sound and monitor freeze)

Describe the bug
Randomly while playing computer will freeze, monitors turn to a single color and any sound playing will freeze.
To Reproduce

Turn on GPU plugin
be patient

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: Windows, version 2004, build 19041.928
RuneLite version: 1.7.6
Launcher version: 2.1.0

Additional context
Only way to reset is to restart the computer by holding the power button.
GPU is radeon Vega 64 and cpu is i7 6700k no clock
client.log: https://pastebin.com/2eLRLNL6
launcher.log: https://pastebin.com/858UvfaA

The issue tracker is not a support forum. Please join the Discord for questions of support.


Task Does NOT complete after forcing application close

Start task from app
Close app while task is occurring (
Reopen app =》 recall enque using unique task and 'KEEP' ExistingPolicy)
NOTHING happens  (problem is here ....task should resume!!!)

Thanks for reporting this.
I'm closing this issue because this forum is for issues with the codelab.
If you think that this is a problem of the WorkManager library, please open a bug on the WorkManager public issue tracker
Your issue may be related to this issue: b/111765866
Please reopen if you still think this is an issue with the codelab.


Fix handling of IPFS shared URLs

A share URL from IPFS like https://ipfs.io/ipfs/Qm...Fd?filename=voicechat-1.16.5-1.3.9.jar gets saved as the filename of the CID without the jar extension. As a result the mod(s) don't get loaded. It should make use of the filename query parameter or append .jar extension when missing.

I looked into it, and I think the best way to resolve this would be to change the command in this repo. If you think this also makes sense, I can open an issue there and start working on it. I think the best way to implement this would be either:

add an option with a fallback filename if the determined filename doesn't end with a given extension (this would give a nice filename, but would require extra work in the shell scripts too)
add an option to add a file extension if one doesn't exist (this would make the filename the long Qm...Fd string, but with a proper suffix)


nixos/tomcat: add aliases sub-option for virtual hosts

Motivation for this change
Specifying aliases is an essential part of the virtual host feature.
Things done

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

[ ] 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 nox --run "nox-review wip"
[ ] 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)
[x] Fits CONTRIBUTING.md.

cc @danbst

Probably rename to serverAliases, it will be then consistent with Nginx and Apache httpd. You may even copy description from there.
https://nixos.org/nixos/options.html#nginx+serveraliases
https://nixos.org/nixos/options.html#httpd+serveraliases

@danbst Consistency is good, but serverAliases would look rather out of place here, both semantically (why "server" if we're configuring a "virtual host"?) and stylistically (all other attributes here are short single words; nginx's and apache's virtual host configurations, on the contrary, use many multi-word attributes).

Alright, agreed. Good to go then!

@GrahamcOfBorg test tomcat

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: tests.tomcat
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: tests.tomcat
Partial log (click to expand)
server: exit status 0
client: running command: sync
client: exit status 0
test script finished in 31.45s
cleaning up
killing server (pid 597)
killing client (pid 609)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/bv3ccfy8jmrqmjl5n286hnprf631672a-vm-test-run-tomcat

ping @danbst @Mic92


[Request for External] Page 7139 "Sales Budget Overview" CurrentBudgetName and PeriodType

Please make the global variables CurrentBudgetName and PeriodType protected.
protected var
    CurrentBudgetName: Code[10];
    PeriodType: Option Day,Week,Month,Quarter,Year,"Accounting Period";

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.