convert error

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary):
TensorFlow version (or github SHA if from source):

Provide the text output from tflite_convert
 and pasting the following:

Some of the operators in the model are not supported by the standard TensorFlow Lite runtime. If those are native TensorFlow operators, you might be able to use the extended runtime by passing --enable_select_tf_ops, or by setting target_ops=TFLITE_BUILTINS,SELECT_TF_OPS when calling tf.lite.TFLiteConverter(). Otherwise, if you have a custom implementation for them you can disable this error with --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: ADD, CONV_2D, DEPTHWISE_CONV_2D, DIV, FLOOR, FULLY_CONNECTED, MAX_POOL_2D, MUL, RESHAPE, SUB. Here is a list of operators for which you will need custom implementations: RandomUniform.

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Also, please include a link to a GraphDef or the model if possible.
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and files
should be attached.

@307509256
Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary?
Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.
We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!


NDRS-573: Rename vote to unit.

Use the term "unit" for what we called "votes" so far, to be in line with the paper.
The word "vote" is still used in the tallies modules and a few other places, where it is appropriate: A "unit" is considered to carry multiple "votes", one at each block height, for the block that is the ancestor of the unit's new block or fork choice.
https://casperlabs.atlassian.net/browse/NDRS-573

bors r+


ipv6 change broke ipv4+ipv6 test-stemcells

revert: https://github.com/cloudfoundry/bosh-deployment/commit/96d644bc54f6ab074fab1b1a2d7801113742cb6e
https://main.bosh-ci.cf-app.com/teams/main/pipelines/bosh:stemcells/jobs/test-stemcells/builds/224
cc @cunnie

Closing - seems like it is no longer broken and not sure what else may be necessary. If more changes need to happen, feel free to test them out and PR them separately.


📝 Update includes in docs/es/docs/tutorial/path-params.md

Fixes  #12554

Hi @luigiPinna, thanks for your interest in contributing to FastAPI.
However, I've found several errors in the preview because of the spacing. Could you please update it? Thanks for your effort. :raised_hands:

Hi @alejsdev, I've updated the PR fixing the spacing issues. Thank you

Thanks for the effort! :cake:
This was handled in another PR, so I'll close this one now. :coffee:


Feedback from Markus

The app was very nicely designed and implemented. I like the map!
Two suggestions:

it may be a good idea to show a message to prompt user to select neighbourhood(s) if he/she has deselected all. Currently the top the bottom plots are simply blank when no neighbourhood is selected.
blank Time Of Day is essentially the same as selecting Day and Night according to the behavior of the app. It may be better not to allow user to deselect all in that widget.


Indicators page: Can't see Indicator plan or reporting period links when there are no indicators

Issues

Before I start adding indicators, I need to make any necessary adjustments to my reporting date range so that the correct periodic targets are generated.
In the near future, we'll be exploring ways to create the indicator plan in Tola and/or import from a spreadsheet template. So I'd like to expose the "Indicator plan" link now and get people used to seeing it and interacting with it, even if it's empty to start.

Right now, neither action is available if your program has no indicators. See the top example, compared to the bottom example:

Acceptance criteria

When my program has no indicators, I can still access the Reporting period link.
When my program has no indicators, I can still access the Indicator plan link.
When my program has no indicators, the placeholder text that is used instead of the expansion button should read "No indicators have been entered for this program" (i.e. eliminate what is currently the second sentence) and text should be same size as link text.

Validated.
@sanjuroj Can you please add a period at the end of the sentence "No indicators have been entered."
(I see that I have a typo in my mockup, and didn't intend to leave out the period -- sorry about that.)


Notify isolation segments management

What
Notify may have some extra traffic ahead and want to be able to do some load testing.
How to review
Look at it, check for typos. Don't think it's really testable.

🚨⚠ Please do not merge this pull request via the GitHub UI ⚠🚨

@schmie is apparently going to add some doppler scalin' on top of this... standby...


feat(macOS): Implement basic menubar

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes. Issue #___
[x] No

The PR fulfills these requirements:

[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
[x] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

If adding a new feature, the PR's description includes:

[x] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
Related to #46

https://user-images.githubusercontent.com/22237916/115715392-11680500-a346-11eb-9b15-1901cb8d60c2.mov

The menu does not work on the first render.
We need to focus in / focus out of the window.
Also, it seems to cause an issue with the keyboard shortcut, sometimes it works, sometimes it doesn't.
It's related to focus issue with Winit / Webview probably related to https://github.com/tauri-apps/wry/issues/184

Known bug by winit for focus on first draw
https://github.com/rust-windowing/winit/pull/1903

Closing in favor of https://github.com/tauri-apps/tao/pull/12


[feat] TypeScript support? (Again)

Describe the feature
#143 was closed and locked in 2020. It's 2023 now, and most real-world applications rely heavily on TypeScript these days. Is there any chance that you changed your mind on this?
Checklist

[x] I have searched through GitHub issues for similar issues.
[x] I have completely read through the README and documentation.

This is the reason I can't use Cabin. I won't use a library that doesn't provide typescript types.

This is the smallest problem actually. Just after installing with npm, it reported:
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 72 packages, and audited 703 packages in 7s

164 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (3 low, 3 high)

This is a no-go for any serious project.

I'm not going to do the work only for consideration, sorry. I need a bit more certainty.


Swift 1.2

Swift 1.2 support would be awesome!

+1 :+1:

https://github.com/dongri/OAuthSwift/pull/28

When do you plan to release it? The last release does not include Swift 1.2 support...
Thanks again :+1:

I'm sorry, now I've just released v0.3.3 (Support Swift 1.2)
Carthage:
github "dongri/OAuthSwift" ~> 0.3.3

CocoaPods:
pod "OAuthSwift", "~> 0.3.3"

Great, thank you!!


Network - Resource request error: QNetworkReply::NetworkError(HostNotFoundError) ( "Host awesome.dev not found" )

Which version of PhantomJS are you using? Tip: run phantomjs --version.
2.1.1
What steps will reproduce the problem?

start phantomjs with --webdriver=4444 --debug=true
get a session id curl -H "Accept: application/json" -H "Content-Type: application/json;charset=UTF-8" --data "{\"desiredCapabilities\":{\"unexpectedAlertBehaviour\":\"accept\",\"webStorageEnabled\":true,\"browserName\":\"phantomjs\",\"proxy\":{\"httpProxy\":\"none\",\"proxyType\":\"manual\"}}}" http://localhost:4444/wd/hub/session
request a remote url curl --data "{\"url\":\"http:\/\/<IP_ADDRESS>\/tests\/joomla-cms3\/installation\/index.php\"}" http://localhost:4444/wd/hub/session/2a11c810-175b-11e6-a3e8-03a5c58922d4/url
see the error message in the phantomjs windows:

2016-05-11T11:32:11 [DEBUG] HTTP Request - HTTP Version 1.1
2016-05-11T11:32:11 [DEBUG] HTTP Request - Query String
2016-05-11T11:32:11 [DEBUG] HTTP Request - Receiving Header "User-Agent" = "curl/7.33.0"
2016-05-11T11:32:11 [DEBUG] HTTP Request - Receiving Header "Host" = "localhost:4444"
2016-05-11T11:32:11 [DEBUG] HTTP Request - Receiving Header "Accept" = "*/*"
2016-05-11T11:32:11 [DEBUG] HTTP Request - Receiving Header "Content-Length" = "75"
2016-05-11T11:32:11 [DEBUG] HTTP Request - Receiving Header "Content-Type" = "application/x-www-form-urlencoded"
2016-05-11T11:32:11 [DEBUG] HTTP Request - Method POST/PUT
2016-05-11T11:32:11 [DEBUG] HTTP Request - Content Body: {"url":"http:\/\/<IP_ADDRESS>\/tests\/joomla-cms3\/installation\/index.php"}
2016-05-11T11:32:11 [DEBUG] WebPage - updateLoadingProgress: 10
2016-05-11T11:32:13 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(HostNotFoundError) ( "Host <IP_ADDRESS> not found" ) URL: "http://<IP_ADDRESS>/tests/joomla-cms3/installation/index.php"
2016-05-11T11:32:13 [DEBUG] WebPage - updateLoadingProgress: 100
2016-05-11T11:32:13 [DEBUG] WebPage - setupFrame ""
2016-05-11T11:32:13 [DEBUG] WebPage - setupFrame ""
2016-05-11T11:32:13 [DEBUG] HTTP Response - Status Code 200 OK
2016-05-11T11:32:13 [DEBUG] HTTP Response - Sending Header "Cache" = "no-cache"
2016-05-11T11:32:13 [DEBUG] HTTP Response - Sending Header "Content-Length" = "74"
2016-05-11T11:32:13 [DEBUG] HTTP Response - Sending Header "Content-Type" = "application/json;charset=UTF-8"

the most important message is this: Network - Resource request error: QNetworkReply::NetworkError(HostNotFoundError) ( "Host <IP_ADDRESS> not found" ). The connection works perfectly with localhost or <IP_ADDRESS>. But if I add another IP or host name the request fails with HostNotFoundError.
Which operating system are you using?
Windows 7
Did you use binary PhantomJS or did you compile it from source?
Binary
Please provide any additional information below.
the steps to repeat do use curl only. Running a request to the same url from a javascript file called like phantomjs test.js works fine.

Perhaps something is wrong with your network?

That's possible. But in this case I would expect the same behavior for both the normal phantomjs call and the webdriver mode. I just does not work in webdriver mode. Is there something different I overlooked?

I had the same error, and only for locally hosted sites. While the URL worked in a normal browser PhantomJS couldn't work it out.
I retried via a wildcard DNS service (http://xip.io), and suddenly it worked. So it seems some networking/permission thing.
Any idea's what can be the problem?

I managed to solve my problem. The difference is that I used a domain  name as a host and the original question is about an IP address. Still I think it a network issue.
A good way to check if a domain name can be resolved is using the following command (unix):
getent hosts some.domain. If it doesn't return anything, but dig some.domain does, you probably have to change the hosts config in /etc/nsswitch.conf. I had to make resolve the first item, since my resolve file defines the DNS server to use.


boxart repo / animated

/packages
/boxart-animated
/tests
/packages
/boxart-animated

What is this?

Subtask of #46


Add support for only publishing a language if it more than NN% translated

When the source material keeps changing, the translations will naturally lag behind. In that case, it could be nice to only publish a new version if it mostly up-to-date, meaning it is more than NN% translated.
This kind of functionality can be built today by looking at the output of msgfmt since it shows the number of translated and untranslated messages. We should try to package the functionality in a reusable fashion.

This is implemented in #87, https://github.com/google/comprehensive-rust/pull/1243 and https://github.com/google/comprehensive-rust/pull/1252!

I'm implementing a slightly different scheme: instead of a percentage, I'm implementing support for freezing the English source for a translation. This means that translators can work on a PO file for weeks and fully complete a translations — changes to the English source text won't invalidate the translation any longer.
To update a translation, run mdbook-xgettext and msgmerge like normal: this will add new strings and also update the POT-Creation-Date field in the PO file. When publishing the translation next, the English source files are taken from the time of POT-Creation-Date. This will give translations much more control over when strings are invalidated.
/cc @henrif75.

This was fixed via #87 and https://github.com/google/comprehensive-rust/pull/1243.


Fix the logic

fix #56
The cleanResultsPath method should have an empty folder, but the current logic was removing the directory.
The fixed logic cleans up all files in the directory but keep the directory itself.

@hiroyone any idea when this will get reviewed/merged? I'm facing the issue this appears to fix.

Let's ask the creator.
@tnicola
Hello.
How can we get an approval and merge this PR.

Thanks for your contribution @hiroyone !It's now merged and published in 0.10.0


Is there a way to format HTML asynchronously

My renderer has the html options which performs logic on HTML elements and spits out React elements instead. Inside the HTML function, I need to do asynchronous work before returning but it's not working. The console shows:
Uncaught Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.

Is there a present way to format HTML asynchronously?
Many thanks for your work!

I guess I can simply take care of the async operation inside the React component.

I really want this feature because sometimes you do need the renderer input/options to trigger the async operation.


mem-ruby: Unused L3CacheCntrl freed

Seems like the MOESI_AMD_Base-L3Cache.sm file is unused in the VIPER protocol. It's confusing to have it in the GPU_VIPER.slicc file.

Closing, with a few clarifications:

My intention was to improve readability/save a second or two for new developers.
No comment
No comment
Understanding the code base well enough usually takes time, and having more files to look into, I thought, perhaps lengthens it. It's confusing for new users is what I meant; maybe I'm wrong.

I understand your concerns. Thanks for taking the time to review this.

Just FYI, this is used in AMD_MOESI_base: https://github.com/gem5/gem5/blob/783bae7c39339a168dc6d871895a4dd89aa42c78/src/mem/ruby/protocol/MOESI_AMD_Base.slicc#L5
State machines in SLICC can be used in more than one protocol. So, just because a state machine doesn't appear in a particular protocol doesn't mean it's unused.

But that's a different protocol altogether, right?
It is unused in GPU_VIPER.slicc is what I meant. And the changes proposed were still within GPU_VIPER. Please correct me if I'm wrong.

I am not using VIPER, so I doubt anyone would notice changes to VIPER

Hi @mysoreanoop ,
All pull requests to gem5 require Change IDs to be present in all commit messages. The commits in this PR do not have Change IDs. Please follow these steps to add a change ID to your commits:

Run the following commands:

f=.git/hooks/commit-msg
mkdir -p
curl -Lo $f https://gerrit-review.googlesource.com/tools/hooks/commit-msg
chmod +x $f/commit-msg

Then, amend the commit with git commit --amend --no-edit, and update your pull request.

Yes, I'll be able to do that in a couple of hours.
On Thu, Nov 30, 2023 at 7:23 PM Ivana Mitrovic @.***>
wrote:

@mysoreanoop https://github.com/mysoreanoop, are you going to be able
to make these changes before the staging branch is created tomorrow?
—
Reply to this email directly, view it on GitHub
https://github.com/gem5/gem5/pull/598#issuecomment-1834319485, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6PFORKBQXHKLM56FR54C3YHDFLZAVCNFSM6AAAAAA7ZSCJMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGMYTSNBYGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Harshil2107 is this okay?


Broadcasted events not sending over database queue driver

Hello,
I have configured the laravel-websockets on 3 servers (laravel forge), and 1 is not working. and I can not figure out what is wrong. It seems that even when I am setting the BROADCAST_DRIVER to pusher it keeps fallbacking to my log.
The set-up is a same server nginx websocket using the provided guide.
The version of laravel-websockets I am using is  "^1.4" and the version of laravel is "5.8.*".
Hosted on digital ocean (don't think that should matter tho :-))
To start of, I have already checked with tinker on the production server config('broadcasting') if the variables are set correctly.  I also integrate cache and config clears in my build scripts.
When I skip the env('BROADCAST_DRIVER') and manually set this to pusher I receive a BroadcastException
in
Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php:119)
Currently, it seems that the broadcast can not connect to the pusher server and fall backs to log.
The config I'm using works on the other servers:
        'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_APP_CLUSTER'),
                'encrypted' => true,
                'host' => '<IP_ADDRESS>',
                'port' => 6001,
                'scheme' => 'https',
                'curl_options' => [
                    CURLOPT_SSL_VERIFYHOST => 0,
                    CURLOPT_SSL_VERIFYPEER => 0,
                ],
            ],

And 'verify_peer' => false,  is enabled.
I have tried using both enabling and disabling LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT and LARAVEL_WEBSOCKETS_SSL_LOCAL_PK same for 'useTLS' => true,
Echo is connecting to the socket server, no problem, it's the events that are not broadcasting to pusher. And seeing the events end up in the log the queue is sending them correctly.
[Update] when setting the driver to sync the events work fine
Any tips on what options I have not yet explored in order to resolve this issue?

I'm confirm, have same issue with 'database driver' I have spend few hours to figure out what a problem, after I came across your topic, I changed the driver QUEUE_DRIVER=sync, and it's worked


Effects not showing on physicsless parts

After trying to make RealPlume configs for certain engines, I noticed some parts won't show effects applied with SmokeScreen. After a few experiments, I found that parts with PhysicsSignificance = 1 in there configs will not show effects at all.

Just looked in the SmokeScreen code, it seems it prevents particles when there is no rigidbody, which explains the problem. In these cases, would it be possible to use the parent parts' rigidbody instead?

I am not seeing it after a quick scan of the code. Can you point me to that rigibody test and I ll see how many change it require.

https://github.com/sarbian/SmokeScreen/blob/master/ModelMultiParticlePersistFX.cs#L266

I've just done some testing with the modifications above, and the numbers returned in a simple test were identical to the numbers produced with the current method. Not saying that this is the solution, as there are likely issues somewhere, but plumes now show on physicsless parts

physicsless parts should not be used at all except for some really specific cases. I am not adding a change that promote miss use of the part config.

Okay then, I'll see about resolving this on RealPlumes end then, by removing the PhysicsSignificance line. Thanks anyway!


How to use on workspace?

I have a workspace consisting of two sub packages a,b:
[workspace]
resolver = "2"
members = ["a", "b"]

In a is a dependency i want to patch. I also prefer to use a build.rs script

Hey @richarddd,
this functionality is shown in this test:
https://github.com/itmettkeDE/cargo-patch/blob/master/tests/patch_crates_io.rs#L195
Basically, the package.metadata.patch part belongs into the Cargo.toml of the workspace. Same goes for the [patch.crates-io] part. The Cargo.toml of the member must not be changed.
Not, however, that this patches the crate for all workspace members. It is not possible to patch a given dependency only for one crate. If you need a functionality like this, then it should be possible to add the dependency with a custom name and only patching that using:
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml

Hi @mettke in my case it is a bit different , I want to patch a package inside a workspace ,but the workspace itselft is a dependecy to my project
I am trying to patch heim-host which is a package inside workspace heim and I  heim is a dependency of vector .
In this case how can I apply the patch?
I have
package.metadata.patch.heim.heim-host
version = "1.0"
patches = ["heim.patch"]

But, only heim is downloaded to target/patch not the  depedent packages, Thanks!

Hey @jabir366,
yes your situation is in fact different. This is how you have to do it:
First you need to add  heim-host as a direct dependency to Vector. Otherwise you will not be able to patch it. Once its patched like this, Helm will also use the patched version.
[dependencies]
helm-host = { version = "*" }

Afterwards you can change the metadata part to this:
[package.metadata.patch.heim-host]
version = "1.0"
patches = ["heim.patch"]

Now you can add the patch entry;
[patch.crates-io]
helm-host = { path = './target/patch/helm-host-x.x.x' }

Once you compile you will notice that helm is using the patched dependency.

hi @mettke , unfortunately , it did not work for me.
I added the following in my Vector Cargo.toml
[dependencies]
heim-host = { version = "*"}

[patch.crates-io]
heim-host = { path = "./target/patch/heim-host-0.1.0-rc.1" }

[package.metadata.patch.heim-host]
patches = [ "heim.patch" ]
version = "1.0"

When I was doing the cargo patch I was getting the following error
[root@machine1 vector]# cargo patch
Error: failed to select a version for the requirement `platforms = "^0.2.0"`
candidate versions found which didn't match: 3.4.0, 3.3.0, 3.2.0, ...
location searched: crates.io index
required by package `heim-host v0.0.1`
    ... which satisfies dependency `heim-host = "*"` of package `vector v0.36.0 (/root/megha_old/jab/vector)`
perhaps a crate was updated and forgotten to be re-vendored?

Later, I changed the heim-host version from * to 0.1.0-rc.1
now the error got changed to even more complex dependency issue
vector]# cargo patch
Error: failed to select a version for `platforms`.
    ... required by package `heim-host v0.1.0-rc.1`
    ... which satisfies dependency `heim-host = "^0.1.0-rc.1"` of package `vector v0.36.0 (/root/megha_old/jab/vector)`
versions that meet the requirements `~1.0` are: 1.0.3, 1.0.2

all possible versions conflict with previously selected packages.

  previously selected package `platforms v1.1.0`
    ... which satisfies dependency `platforms = "^1.1"` (locked to 1.1.0) of package `heim-host v0.1.0-rc.1 (https://github.com/vectordotdev/heim.git?branch=update-nix#a66c4407)`
    ... which satisfies git dependency `heim-host` (locked to 0.1.0-rc.1) of package `heim v0.1.0-rc.1 (https://github.com/vectordotdev/heim.git?branch=update-nix#a66c4407)`
    ... which satisfies git dependency `heim` (locked to 0.1.0-rc.1) of package `vector v0.36.0 (/root/megha_old/jab/vector)`

failed to select a version for `platforms` which could resolve this conflict

I later tried changing platforms version in heim-host to see any changes are happening. nothing happened except these two errors. Thanks.

hm... would you mind giving me a full Cargo.toml file so that I can investigate. At the moment its a bit hard for me to understand where the problem might be.

package.metadata.patch

In my case that wont work since my root workspace does not contain a [package] definition.
[workspace]
resolver = "2"
members = ["a", "b"]

[package.metadata.patch.serde] #<--- this here wont work
version = "*"
patches = ["patches/promise-poll.patch"]

hi @mettke, you can refer this one,  if you want to re-produce the changes, try to apply patch to  heim-host, which is a dependency for vector, thanks

@richarddd
Ok now I understand your problem. This is how to solve it:
The workspace toml needs to look like this:
[workspace]
members = ["test_pkg1", "test_pkg2"]
resolver = "2"

[patch.crates-io]
serde = { path = "./target/patch/serde-1.0.203" }

The package toml has to look like this:
[package]
name = "test_pkg1"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = "1.0.203"

[package.metadata.patch.serde]
version = "1.0.203"
patches = []

And then you can use cargo patch to patch it.
Using a build.rs works similar, by using the following toml for the package:
[package]
name = "test_pkg1"
version = "0.1.0"
edition = "2021"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = "1.0.203"

[package.metadata.patch.serde]
version = "1.0.203"
patches = []

[build-dependencies]
cargo-patch = "0.3"

@jabir366
Unfortunately I'm not able to find helm-host at the link you gave me. Its neither referenced in the Cargo.toml nor in the Cargo.lock. Not sure whether I'm missing something

@mettke the only issue I'm having now is that i can't run it from a sub package build.rs as it will create a target directory inside my sub package rather than the root package.

I have the same issue as @richarddd. I have tried all the possible combinations (with build.rs, without build.rs, with different patch paths, etc.) in a workspace environment, and I didn't manage to make it work. I'm using cargo-dist, and I can't install cargo-patch and execute cargo patch, which would solve my problem.

@mettke, is it necessary to use [patch.crates-io] when using the build.rs?
[patch.crates-io]
serde = { path = './target/patch/serde-1.0.110' }


Feature Request: Color Dropper

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

It would be nice to have a color dropper (like Adobe Fireworks or Photoshop) to match the color of other objects. It could save a bit of time to use the dropper than to go to the other object, pull the color, and then apply it to another object.
Here is a link to another open source project that has already developed a color dropper in JavaScript.
https://github.com/taufik-nurrohman/color-picker

See https://twitter.com/drawio/status/1430123597096538120 or try Shift+Click:


Cross v0.1.15 Breaks f32/f64 to_bits on PowerPC

The following code worked for cross v0.1.14, so any issues were introduced with the latest release.
Targets

powerpc-unknown-linux-gnu
powerpc64-unknown-linux-gnu
powerpc64le-unknown-linux-gnu

Failing Code
pub fn main() {
    let f: f32 = 1e-45;
    println!("to_bits={:#b}", f.to_bits());

    let p = &f as *const f32;
    let p = p as *const i32;
    unsafe {
        println!("transmuted as integer={:#b}", *p);
    }
}

Results
to_bits=0b100
transmuted as integer=0b1

The value of f.to_bits() is 4, rather than 1, as expected, since 1e-45 is the smallest denormal 32-bit floating point number. The direct type-pun through a pointer alias gets the correct value of 1. to_bits directly calls mem::transmute, which should just pun the bytes to a new type.
Explanation
The binary representation for the IEEE-754 single-precision floating point number 1e-45 is:
0 | 00000000 |<PHONE_NUMBER>0000000000001

The first group is the sign bit, the second group is the exponent (including the hidden bit), and the third group is the significant digits (mantissa). The endianness of floats should be the same as integers on the architecture. Therefore, f.to_bits() should return 1, instead, for some unknown reason, it returns 4.
Minimal Steps to Reproduce

Create a repository (cargo new --bin sample).
Copy the failing code into main.rs.
Run the binary on a PowerPC architecture (cross run --target powerpc-unknown-linux-gnu).

Is this the same QEMU bug as in https://github.com/rust-embedded/cross/issues/314?

@reitermarkus I doubt it's the same Qemu bug, but it appears to be another bug in Qemu. I'm attempting to diagnose which versions are currently affected now.
Function
pub fn to_bits(f: f32) -> u32 {
    f.to_bits()
}

The x86 assembly is simple, just a move instruction, as we'd expect:
example::to_bits:
        mov     eax, dword ptr [esp + 4]
        ret

The PowerPC assembly is as follows:
example::to_bits:
        stwu 1, -16(1)
        stfs 1, 12(1)
        lwz 3, 12(1)
        addi 1, 1, 16
        blr

The PowerPC assembly for the type alias is identical:
example::to_bits_alias:
        stwu 1, -16(1)
        stfs 1, 12(1)
        lwz 3, 12(1)
        addi 1, 1, 16
        blr

Run Instructions

$ docker run \
    -t -i \
    -v ~/Desktop/sample/target:/target \
    docker.io/rustembedded/cross:powerpc-unknown-linux-gnu-0.1.15 \
    /bin/bash

# qemu-ppc --version
qemu-ppc version 4.1.0
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

# qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
8
2

$ docker run \
    -t -i \
    -v ~/Desktop/sample/target:/target \
    docker.io/japaric/powerpc-unknown-linux-gnu:v0.1.14 \
    /bin/bash

# qemu-ppc --version
qemu-ppc version 2.10.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
# qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
1
1

It seems like Qemu 4.10 is just spitting out garbage values.

Versions:

2.12.1 (works)
3.0.1 (works)
3.1.0 (fails)
3.1.1 (fails)

I've tried other Qemu versions using:
# Install dependencies
apt install curl python zlib1g-dev libglib2.0-dev libpixman-1-dev -y

# Download the Qemu from version
version=...
curl -L https://download.qemu.org/qemu-$version.tar.xz --output qemu-$version.tar.xz
tar xvf qemu-$version.tar.xz

# Build from source
cd qemu-$version
mkdir build && cd build
../configure --disable-kvm --target-list="ppc-linux-user"
make -j 5

# Test the Version
ppc-linux-user/qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample

Results
2.12.1
# ppc-linux-user/qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
1
1

3.0.1
# ppc-linux-user/qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
1
1

3.1.0
# ppc-linux-user/qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
8
2

3.1.1
# ppc-linux-user/qemu-ppc /target/powerpc-unknown-linux-gnu/debug/sample
8
2

@reitermarkus I'll file another upstream bug, in the meantime, since such rudimentary code is failing on PowerPC (just loads and stores), it might be prudent to use Qemu version 3.0.1 on PowerPC.

Thanks. Can you submit a PR downgrading QEMU with a comment pointing to the upstream issue?

@reitermarkus I believe it's a duplicate of this bug, since on further inspection, it affects both conversions to-and-from single-precision floats, but not double-precision floats. It seems to occur due to an internal conversion to a double, and was introduced in the same version I reported. I'll send the patch now.
Code
fn f32_to_bits(f: f32) -> u32 {
    f.to_bits()
}

fn f32_to_bits_alias(f: f32) -> u32 {
    let p = &f as *const f32;
    let p = p as *const u32;
    unsafe {
        *p
    }
}

fn f64_to_bits(f: f64) -> u64 {
    f.to_bits()
}

fn f64_to_bits_alias(f: f64) -> u64 {
    let p = &f as *const f64;
    let p = p as *const u64;
    unsafe {
        *p
    }
}

fn f32_from_bits(dw: u32) -> f32 {
    f32::from_bits(dw)
}

fn f32_from_bits_alias(dw: u32) -> f32 {
    let p = &dw as *const u32;
    let p = p as *const f32;
    unsafe {
        *p
    }
}

fn f64_from_bits(dw: u64) -> f64 {
    f64::from_bits(dw)
}

fn f64_from_bits_alias(dw: u64) -> f64 {
    let p = &dw as *const u64;
    let p = p as *const f64;
    unsafe {
        *p
    }
}

pub fn main() {
    // Both have a single bit set, equivalent to 0x1.
    let f: f32 = 1e-45;
    let d: f64 = 5e-324;
    println!("f32_to_bits={:?}", f32_to_bits(f));
    println!("f32_to_bits_alias={:?}", f32_to_bits_alias(f));
    println!("f64_to_bits={:?}", f64_to_bits(d));
    println!("f64_to_bits_alias={:?}", f64_to_bits_alias(d));

    let dw: u32 = 0x1;
    let qw: u64 = 0x1;
    println!("f32_from_bits={:?}", f32_from_bits(dw));
    println!("f32_from_bits_alias={:?}", f32_from_bits_alias(dw));
    println!("f64_from_bits={:?}", f64_from_bits(qw));
    println!("f64_from_bits_alias={:?}", f64_from_bits_alias(qw));
}

Results
f32_to_bits=8
f32_to_bits_alias=2
f64_to_bits=1
f64_to_bits_alias=1
f32_from_bits=0.000000000000000000000000000000000000000000011
f32_from_bits_alias=0.000000000000000000000000000000000000000000003
f64_from_bits=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005
f64_from_bits_alias=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005


syfony demo fails

Hello
Trying execute "symfony demo", but getting error:
$ symfony demo
Downloading the Symfony Demo Application...
Preparing project...
PHP Warning:  file_get_contents(/home/user/tmp/symfony_demo/composer.lock): failed to open stream: No such file or directory in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 120
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 122
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 126
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 52
✔  Symfony Demo Application was successfully installed. Now you can:
....
System:
PHP 7.1
Symfony Installer (1.5.9)
Composer version 1.4.1
Linux ubunt 16
NOTE:
$ ls -l symfony_demo/
total 8
-rw-rw-rw- 1 user user 3 Kov 21 11:05 composer.json
-rw-rw-rw- 1 user user 5 Kov 21 11:05 composer.lock

@Eligijus1 thanks for reporting this. We're investigating why an empty package was generated and we're trying to regenerate it by hand.

Sysadmins from SensioLabs have fixed some issue and regenerated the packages. I've tested and it works for me, but I'd like you to test it too before closing this as "fixed". Thanks!

Trying:
symfony self-update
// Symfony Installer is already updated to the latest version (1.5.9).
Same version

Sorry, but I explained myself wrong. The installer was OK; the problem was the Symfony Demo package (it was empty). If you execute symfony demo with your current installer, it should work now.

Hello
Sorry, but not works:
$ symfony demo
Downloading the Symfony Demo Application...
Preparing project...
PHP Warning:  file_get_contents(/home/user/tmp/symfony_demo/composer.lock): failed to open stream: No such file or directory in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 120
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 122
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 126
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 52
✔  Symfony Demo Application was successfully installed. Now you can:
1. Change your current directory to /home/user/tmp/symfony_demo

2. Execute the php bin/console server:start command to run the demo application.

3. Browse to the http://localhost:8000 URL to see the demo application in action.

This has to be a cache issue (we use a CDN to serve the packages and the changes probably haven't propagated yet). For instance, if I check the size of the packages, I now see the right values:
$ curl -I https://get.symfony.com/Symfony_Demo.zip
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Length: 14914202
...

$ curl -I https://get.symfony.com/Symfony_Demo.tgz
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Length: 8214718
...

Same error here with 1.5.9

For me, this looks like a wrong json format of the composer.lock file, hence a null json_decode.

Which is the content-length when you run curl -I https://get.symfony.com/Symfony_Demo.zip ?

# symfony demo -vvv
*   Trying <IP_ADDRESS>...
* Connected to get.symfony.com (<IP_ADDRESS>) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*        subject: OU=Domain Control Validated; OU=Gandi Standard Wildcard SSL; CN=*.symfony.com
*        start date: Jun 23 00:00:00 2015 GMT
*        expire date: Jan  7 23:59:59 2018 GMT
*        subjectAltName: get.symfony.com matched
*        issuer: C=FR; ST=Paris; L=Paris; O=Gandi; CN=Gandi Standard SSL CA 2
*        SSL certificate verify ok.
> GET /symfony.version HTTP/1.1
Host: get.symfony.com
User-Agent: Guzzle/5.3.1 curl/7.47.0 PHP/7.1.2-2+deb.sury.org~xenial+1

< HTTP/1.1 200 OK
< Content-Type: application/octet-stream
< Content-Length: 5
< Connection: keep-alive
< Date: Sun, 19 Mar 2017 13:35:21 GMT
< Last-Modified: Mon, 24 Oct 2016 11:44:36 GMT
< ETag: "fe647c79e7cc70f25279b791587fa6bc"
< Accept-Ranges: bytes
< Server: AmazonS3
< X-Cache: RefreshHit from cloudfront
< Via: 1.1 a171e7841621158d2aaef33e456c3688.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: SQp9RTYwMQibfr7wQ467eWB2vUHLZAvMYuiyb1QD-eWkyckE0G0MSw==
<
* Connection #0 to host get.symfony.com left intact

 Downloading the Symfony Demo Application...

*   Trying <IP_ADDRESS>...
* Connected to symfony.com (<IP_ADDRESS>) port 80 (#0)
> GET /download?v=Symfony_Demo.tgz HTTP/1.1
Host: symfony.com
User-Agent: Guzzle/5.3.1 curl/7.47.0 PHP/7.1.2-2+deb.sury.org~xenial+1

< HTTP/1.1 302 Found
< Age: 494
< Cache-Control: public, s-maxage=600
< Content-Type: text/html; charset=UTF-8
< Date: Tue, 21 Mar 2017 15:32:44 GMT
< Location: https://get.symfony.com/Symfony_Demo.tgz
< Server: nginx/1.4.6 (Ubuntu)
< Via: 1.1 varnish-v4
< X-Varnish: 373000523 372933723
< Content-Length: 4877
< Connection: keep-alive
<
* Connection #0 to host symfony.com left intact
* Hostname get.symfony.com was found in DNS cache
*   Trying <IP_ADDRESS>...
* Connected to get.symfony.com (<IP_ADDRESS>) port 443 (#1)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*        subject: OU=Domain Control Validated; OU=Gandi Standard Wildcard SSL; CN=*.symfony.com
*        start date: Jun 23 00:00:00 2015 GMT
*        expire date: Jan  7 23:59:59 2018 GMT
*        subjectAltName: get.symfony.com matched
*        issuer: C=FR; ST=Paris; L=Paris; O=Gandi; CN=Gandi Standard SSL CA 2
*        SSL certificate verify ok.
> GET /Symfony_Demo.tgz HTTP/1.1
Host: get.symfony.com
User-Agent: Guzzle/5.3.1 curl/7.47.0 PHP/7.1.2-2+deb.sury.org~xenial+1

< HTTP/1.1 200 OK
< Content-Type: application/octet-stream
< Content-Length: 118
< Connection: keep-alive
< Date: Tue, 21 Mar 2017 00:22:09 GMT
< Last-Modified: Sun, 19 Mar 2017 20:08:50 GMT
< ETag: "07236ebdd9c407dfc1f2ff941f00a1f2"
< Accept-Ranges: bytes
< Server: AmazonS3
< Age: 55130
< X-Cache: Hit from cloudfront
< Via: 1.1 73fe2017e2b0be945abea2b1766a47ac.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: XyHcSjb2_RqZ38b3rygSq8GQnP4_zReTjVC2-OwUmP7Oa0kUEhbjoA==
<
* Connection #1 to host get.symfony.com left intact
 Preparing project...

PHP Warning:  file_get_contents(/home/yceruto/symfony_demo_2/composer.lock): failed to open stream: No such file or directory in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 120
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 122
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 126
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/local/bin/symfony/src/Symfony/Installer/Manager/ComposerManager.php on line 52
*   Trying <IP_ADDRESS>...
* Connected to raw.githubusercontent.com (<IP_ADDRESS>) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*        subject: C=US; ST=California; L=San Francisco; O=Fastly, Inc.; CN=www.github.com
*        start date: Jan 20 00:00:00 2016 GMT
*        expire date: Apr  6 12:00:00 2017 GMT
*        subjectAltName: raw.githubusercontent.com matched
*        issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
*        SSL certificate verify ok.
> GET /symfony/symfony-standard/v/.gitignore HTTP/1.1
Host: raw.githubusercontent.com
User-Agent: Guzzle/5.3.1 curl/7.47.0 PHP/7.1.2-2+deb.sury.org~xenial+1

< HTTP/1.1 404 Not Found
< Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'
< Strict-Transport-Security: max-age=31536000
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< X-GitHub-Request-Id: 2ACC:2040F:5531C91:5879071:58D1498A
< Content-Length: 15
< Accept-Ranges: bytes
< Date: Tue, 21 Mar 2017 15:40:58 GMT
< Via: 1.1 varnish
< Connection: keep-alive
< X-Served-By: cache-jfk8140-JFK
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1490110858.764478,VS0,VE26
< Vary: Authorization,Accept-Encoding
< Access-Control-Allow-Origin: *
< X-Fastly-Request-ID: 1ddec570dc1c96bc2cfe712c7c9cac4fdc94f3aa
< Expires: Tue, 21 Mar 2017 15:45:58 GMT
< Source-Age: 0
<
* Connection #0 to host raw.githubusercontent.com left intact
 ✔  Symfony Demo Application was successfully installed. Now you can:

    1. Change your current directory to /home/yceruto/symfony_demo_2

    2. Execute the php bin/console server:start command to run the demo application.

    3. Browse to the http://localhost:8000 URL to see the demo application in action.

If I understand this right, the last connection, the one that actually downloads the file, returns a file of 118 bytes, instead of the 8214718 bytes I'm getting:
> GET /Symfony_Demo.tgz HTTP/1.1
Host: get.symfony.com
User-Agent: Guzzle/5.3.1 curl/7.47.0 PHP/7.1.2-2+deb.sury.org~xenial+1

< HTTP/1.1 200 OK
< Content-Type: application/octet-stream
< Content-Length: 118

Can you please confirm this with curl -I https://get.symfony.com/Symfony_Demo.tgz  thanks!

# curl -I https://get.symfony.com/Symfony_Demo.zip
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Length: 14914202
Connection: keep-alive
Date: Tue, 21 Mar 2017 15:21:56 GMT
Last-Modified: Tue, 21 Mar 2017 13:51:57 GMT
ETag: "7233664bf609ee2fbd055e688800cd73"
Accept-Ranges: bytes
Server: AmazonS3
Age: 1616
X-Cache: Hit from cloudfront
Via: 1.1 fa4f76dbd9d5c46d8063e2c61ef5b64f.cloudfront.net (CloudFront)
X-Amz-Cf-Id: ojbKuooeOLy6nfZuXB7h8nZXL5wuWx9hoRnMYXkf00oe-y1xy5hYxA==

Url defined in symfony-installer:
# curl -I http://symfony.com/download?v=Symfony_Demo
HTTP/1.1 302 Found
Age: 0
Cache-Control: public, s-maxage=600
Content-Type: text/html; charset=UTF-8
Date: Tue, 21 Mar 2017 15:47:18 GMT
Location: https://get.symfony.com/Symfony_Demo
Server: nginx/1.4.6 (Ubuntu)
Via: 1.1 varnish-v4
X-Varnish: 372447339
Connection: keep-alive

Yes! 118 bytes
# curl -I https://get.symfony.com/Symfony_Demo.tgz
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Length: 118
Connection: keep-alive
Date: Tue, 21 Mar 2017 00:22:09 GMT
Last-Modified: Sun, 19 Mar 2017 20:08:50 GMT
ETag: "07236ebdd9c407dfc1f2ff941f00a1f2"
Accept-Ranges: bytes
Server: AmazonS3
Age: 55808
X-Cache: Hit from cloudfront
Via: 1.1 3fe062e94df57e4dee2ade20002471d5.cloudfront.net (CloudFront)
X-Amz-Cf-Id: mRsk02Po5LBn64Ig4t-rBUiiJwDQqH8oBJMrD8aPJP38KNO4g1Bz-Q==

The URL defined in the installer is the one you showed ... but then it's redirected internally to the real URL where the file is download. I still think that the problem is that the last HTTP response gives you a 118 byte file instead of a 8MB file ... that's why decompressing fails and parsin the composer.* file fails, etc.

I'm getting the file from today ( Last-Modified: Tue, 21 Mar 2017 13:51:56 GMT) and you are still getting the cached one (Last-Modified: Sun, 19 Mar 2017 20:08:50 GMT):
$ curl -I https://get.symfony.com/Symfony_Demo.tgz
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Length: 8214718
Connection: keep-alive
Date: Tue, 21 Mar 2017 14:11:07 GMT
Last-Modified: Tue, 21 Mar 2017 13:51:56 GMT
ETag: "60512b1fcdd4ab806a576c5576c803e8"
Accept-Ranges: bytes
Server: AmazonS3
Age: 6149
X-Cache: Hit from cloudfront
Via: 1.1 ee06b6659af5ce1214562f7cc21a3d4c.cloudfront.net (CloudFront)
X-Amz-Cf-Id: AhE_ADh64fcbevbRPKH7h7GQBED3NKrXz_X3qThfcBs_7fE_Lng1eA==

So this is likely an Amazon CloudFront cache thing ... and the only solution is to wait a bit until the changes are propagated to all nodes.

Could the symfony installer perform a checksum after download to avoid future errors?

Anyway the cache soundn't return a complete file?

@yceruto yes ... but the problem is that there was an issue when generating the package ... and that wrong package is the one cached until a new package was generated today :(

Is there a way to force download without caching it?

I don't think so. I'm really sorry!

If you need to remove an object from CloudFront edge caches before it expires, you can do one of the following:

Invalidate the object from edge caches. The next time a viewer requests the object, CloudFront returns to the origin to fetch the latest version of the object.

http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

Hello
Checked today. It works :)

Fixed today! thanks.

Closing it as fixed. We're really sorry for all the troubles!


[Demo] Loading code examples in docs from external files to ease CS.

Description
A lot of recent PRs deal with fixing the CS of examples in the docs.
This PR demonstrates loading the examples as php files into the docs.
The output is identical:

This way, e.g., php-cs-fixer can easily be applied to all source files of the docs.
Note that this requires discussion of the folder structure to store the snippet files and requires some initial work to extract all samples.
Checklist:
Only for demonstration.

Why does the fixer not recognize the extra space in the if condition?

Not sure, but maybe because it is missing the leading <?php ?

Not sure, but maybe because it is missing the leading <?php ?

Possibly, however, other rules were applied. I will play around a litte.

The demo is working now.
Not so happy about the :lines: 2- solution.
Possible workarounds:

tell sphinx to ignore the first line or opening tags in general
tell php-cs-fixer to also handle files without php opening tag

Yet, none of these seems to be possible as far as I could find.
Just curious whether the people think this would be helpful or just increase the number of files to maintain.
Personally, I feel this approach is worth the work it requires to be initialized, as I like includes in general and also storing code in the format it should be  😃

I think this way is very good, but the initial work is a lot of work.

I can do the conversion, might just take some time.

I will make a fresh PR with the changes in the next days.


Offboarding Heather Rienks - Last day on project 1/17/2023

Offboarding checklist
Note: please do not put sensitive information here (issues are public)
Initially assign to team lead for person being offboarded.
Engineering specific:

[ ] Change GitHub access level
[ ] Zenhub
[ ] Azure (CDC as a result of ActiveDirectory)
[ ] PagerDuty
[ ] Splunk
[ ] Docker Desktop license assignment

General Access:

[ ] Revoke Okta accounts (Search for name, agency email, and contractor email)

[ ] staging
[ ] prod

[ ] Slack access to channels

[ ] USDS
[ ] Contract's Slack

[ ] Metabase

[ ] staging
[ ] prod

[ ] Office 365 (CDC as a result of ActiveDirectory)
[ ] Keybase

❗ VPN creditials in /prime_dev_ops/vpn (revoke?)

I do not see a abrewster vpn directory, which means I do not have access to his certificate to revoke it.

[ ] Access to keybase itself

[ ] Mural
[ ] Lucid Chart
[ ] SendGrid access
[ ] Any additional CDC-specific off-boarding (did they get a PIV?) -- Not applicable for Heather

Workflow:

[ ] Reassign any github issues
[ ] Verify no open git PRs
[ ] Delete any old, open branches (maybe work in progress)
[ ] Set Away message in CDC Outlook saying they've left and who to contact instead.
This is required since it takes time for CDC to deactivate their account.

@HeatherRienks is responsible for setting an Away message on her Outlook. Other than that, @stephenkao @chris-kuryak  please make sure she gets removed accordingly. @MauriceReeves-usds is a good resource for this if you're unsure who has access to what. Thanks!

@chris-kuryak - my CDC email is currently set with an Automatic Reply on. You are listed as the POC.


Backward op support for Neg

PR link:https://github.com/tenstorrent-metal/tt-metal/pull/4340

merged


Board Review: Final reivew for dotnet Azure.ResourceManager libraries

Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure.
The Architecture Board reviews Track 2 libraries only. If your library does not meet this requirement, please reach out to Architecture Board before creating the issue.
Please reference our review process guidelines to understand what is being asked for in the issue template.
To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together.  In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings.
For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis.
Before submitting, ensure you adjust the title of the issue appropriately.
Note that the required material must be included before a meeting can be scheduled.
Contacts and Timeline

Responsible service team: SDK Team
Main contacts: Michael Nash, Arthur Ma
Expected code complete date: 2/28
Expected release date: 3/14

About the Service
This is the new generation for dotnet management plane SDKs.  We have incorporated all of the feedback from previous reviews and are looking to do the final review before we GA.
About the client library

Name of the client library: Azure.ResourceManager.*
Languages for this review: Dotnet

Artifacts required (per language)
Please read through “API Review” section here to understand how these artifacts are generated. It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.
.NET

APIView Link:
o	Azure.ResourceManager
o	Azure.ResourceManager.KeyVault
o	Azure.ResourceManager.Resources
o	Azure.ResourceManager.Compute
Link to Champion Scenarios/Quickstart samples:
https://github.com/Azure/azure-sdk-for-net/blob/f0718b12ea/sdk/resourcemanager/Azure.ResourceManager/README.md
https://github.com/Azure/azure-sdk-for-net/blob/f0718b12ea/sdk/compute/Azure.ResourceManager.Compute/README.md
https://github.com/Azure/azure-sdk-for-net/blob/f0718b12ea/sdk/resources/Azure.ResourceManager.Resources/README.md
https://github.com/Azure/azure-sdk-for-net/blob/f0718b12ea/sdk/keyvault/Azure.ResourceManager.KeyVault/README.md

For all other languages, send a request to the Architecture Board to discuss the best format on individual basis.
Thank you!

scheduled for 2/24 2-4pm pst

Per @tg-msft we also want to talk about how to represent generic objects in the schema in dotnet.  Right now it is generated as an object which is not ideal.  Here is usage today on how a customer can use these objects https://gist.github.com/m-nash/da14d7d7bee8679f281ed963e9ea53d4

Recording[MS INTERNAL ONLY]


Register 0.1.16

@JuliaRegistrator register
Bop version number for Nemo in Project.toml

Registration pull request created: JuliaRegistries/General/100904
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.16 -m "<description of version>" 4502ce6754a8eadb83f43e108404e2d537d0db87
git push origin v0.1.16


UX: Hitting the close button shouldn't terminate the app

Specially when listening to podcasts you might want to minize the app while you listen, but the app gets killed by pressing the X button on the top bar :((((

@shelldandy What platform are you running this on? Windows?

Just implemented this feature. Will be released in the next macOS update. Thanks again!


DocString with correct indentation at start delimiter but incorrect at content and end delimiter doesn't report problem

If I have a docstring like below:
    When a step with docstring
      """
      multiline text
    """

The linter won't report a problem. Since, the starting delimiter has a correct indentation, the Rule doesn't care to check the indentation of the lines below.

Tasks:

[ ] propose fix
[ ] move failing tests to the passing list
[ ] uncomment tests from testdata related to this issue.

Note: the fixer for this correctly fixes the whole DocString block for the case when the whole block indent is wrong by the same amount. It adds the extra characters of indent the same to every line.


[Event Request] Codeunit 5780 "Whse. Cross-Dock Management" – New Event  “OnBeforeGetUseCrossDock”

Could we please have a new publisher “OnBeforeGetUseCrossDock” in Function “GetUseCrossDock”, Codeunit 5780 "Whse. Cross-Dock Management” including a handled pattern?
    procedure GetUseCrossDock(var UseCrossDock: Boolean; LocationCode: Code[10]; ItemNo: Code[20])
    var
        Item: Record Item;
        SKU: Record "Stockkeeping Unit";
        Location: Record Location;
*** start new code ***
        IsHandled: boolean;
*** stop new code ***
    begin
*** start new code ***
        IsHandled := false;
        OnBeforeGetUseCrossDock(ItemNo, UseCrossDock, IsHandled);
        if IsHandled then begin
            exit;
        end;
*** stop new code ***
        Location.Get(LocationCode);
        Item.Get(ItemNo);
…
*** start new code ***
    [IntegrationEvent(false, false)]
    local procedure OnBeforeGetUseCrossDock(ItemNo: Code[20]; var UseCrossDocking: Boolean; var IsHandled: Boolean)
    begin
    end;
*** stop new code ***

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. We will update this issue with information about availability.


docs(hybrid-mode) add descriptions of the Hybrid mode version check and

modified the Admin API output to reflect the actual output from Kong

@dndx Ack - this PR (and the release branch) are breaking because there's no 2.3.x includes folder. Can you duplicate the 2.2.x folder here to create a 2.3.x?
https://github.com/Kong/docs.konghq.com/tree/release/2.3/app/_includes/md
Ideally, this will be part of the strategy for shared content going forward, and was just being tested with 2.2.x.

@lena-larionova Thanks for the advise. I amended the commit on the release/2.3 branch and the build is now running.

@dndx Looks like the branch this is targeting an Enterprise 2.3.x branch - was that created by mistake? We normally create Enterprise branches in our private repo, and it looks like this doc here is supposed to go into Community docs, not enterprise.

@dndx Looks like the branch this is targeting an Enterprise 2.3.x branch - was that created by mistake? We normally create Enterprise branches in our private repo, and it looks like this doc here is supposed to go into Community docs, not enterprise.

@lena-larionova this pr only touches app/2.3.x/hybrid-mode.md now and LGTM, so I am going to merge this into release/2.3.

We normally create Enterprise branches in our private repo

Let's keep talking in #2543

@lena-larionova this pr only touches app/2.3.x/hybrid-mode.md now and LGTM, so I am going to merge this into release/2.3.

We normally create Enterprise branches in our private repo

Let's keep talking in #2543


Cannot touchpad scroll horizontally in notebook error output

Here:

I cant use my touchpad to scroll. I have to click on the scrubber and drag it. MacOS

Tested with latest Insiders, horizontal scrolling now works.


Only download go sdk when not using host sdk

In downstream builds we override the go_version variable setting it to host, so that we can use our version of the go binary, not the upstream/community vanilla compiler.

... override the go_version variable setting it to host

no objections to allowing this - but i think the point remains - why build non-hermetically?

Well, this is subjective, I think. Our builder environment has a very stable set of packages, including the golang compiler. Building using the host tooling (clang, java, go, etc) is a hard requirement for us.


Add serviceaccount instructions for k8s dashboard

I believe that k3s does install kubectl for you. I only added a download of it because it was trying to use the config from /etc/rancher/k3s/k3s.yaml.
Assuming that setting KUBECONFIG fixes that, we probably don't need to install kubectl at all - but this requires verifying.

@gilesknap FYI I have tested that setting KUBECONFIG solves needing sudo for /etc/rancher/k3s/k3s.yaml


1.4.23

1.4.23

Coverage decreased (-0.06%) to 97.482% when pulling 7e37cdd262f8641e3d9e812dbb23073a465df716 on development into 70d1b7a16d13948bfaa8c3d82efa48ec6a6e1765 on master.


push to CDN

address https://github.com/oasislabs/oasis.js/issues/158

I basically took what we already had for web3c.js. I don't like the idea that the updates we push are not versioned in a systematic way, but maybe that's something that we can solve later on


Investigate how Gateway performs GraphQL query normalization

@aasseman can you please point @tumaysem to the AutoAgora processor code that does normalization "our way"?

After some gateway code investigation. queries are matched against agora models with CostModel.cost_with_context method which maps to agora library. I found a good unit test to investigate further.
https://github.com/graphprotocol/agora/blob/bbe0c3c5882eb8685697f4615e285572706bde88/lang/src/tests.rs#L69

If we assume query { a(skip: 10), b(bob: 5) }  has two separate top fields as a and b. For each top field and predicate in the model,  match_field is executed.
1-  Matches top field names with predicate name
2- Check top field is not excluded due to query directives skip:if true or include:false
3- Matches predicate argument vs query variable names and values
4- Matches selection fields. This is checked recursively and some graphQL structures such as fragments.
For each top field first matched cost is aggregated to calculate the total cost.

We should be using directly agora library because the code complexity and heavy graphQL language dependent match is prone to frequent changes. Thus required a patch to model providing a more detailed cost result with the matched predicates.

After wrapping the agora and extend it to provide cost details, I have come to a conclusion that current processing of queries inside agora cost models is fully heuristic and without any normalization similar to semiotic-ai gql utils.
:bookmark: Cost details leads to a new idea. Gateway can provide list of tuples containing hash of selected cost model branch (top field in agora lang.) and cost to indexers with query instead of aggregated cost as price. Thus enables indexers to validate both provided price for a query (model validation) and payment verification  (@aasseman) .

should we try to upstream AutoAgora processing/normalization to the Gateway?

should we try to upstream AutoAgora processing/normalization to the Gateway?

We can't upstream the Python code as Agora is in Rust. However @tumaysem is working on documenting (upstream issue) the disparities between how Agora compares queries, and how graph-node actually manipulates the GQL.


Updated values.yaml

Added the new parameter enableExecutorSandbox and description.

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


Allow unencrypted passwords

Mongo less than 3 have different password interfaces for users than the
providers expose. They have to be set in plaintext and read in md5 form.
This PR adds the plaintext password attribute to the user resource.

Pcci failed: http://ci.puppet.community/buildlogs/puppetlabs+puppetlabs-mongodb+229+1440641626+FAIL

Yeah, this passes on centos 6, but fix all the ubuntu errors. I only got three errors when running against 14.04 locally though.

FWIW, usage in README already claims that this parameter exists:
https://github.com/puppetlabs/puppetlabs-mongodb/blob/master/README.md#usage

closing in favor of #382


Web site broken

http://www.vienna-rss.com/ Is not working again. This is probably due to db or wordpress issues on the sourceforge hosting.

I suspect some infrastructure problem at Sourceforge.
If you visit the current list of Vienna's downloads, 3.1.16 is not there anymore… They probably have restarted from a backup.
I hope they will restore vienna-rss.com soon and I will reinstall the missing files.

yup, you are right they had an outage. https://twitter.com/sfnet_ops
luckily it is not our doing!

Seems to be all working now!


Display List of information based on Security Rules in Firebase

Hi,
I used AngularFire2
I Cannot get Firebase data with security rules using ionic 2,
This is my Firebase rules
{
rules:
{
.read:"auth!=null",
.write:"auth!=null"
}
}
But i cannot access Firebase data if authorized user
Kindly advice me,
Thanks & Regards,

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!

Hi,
How to pass login authData in each Pages onclick using ionic 2.
Kindly advice me,
Thanks & Regards,


Add connection actions (edit, delete, etc...)

It should be able to execute some common operation with saved connections.

Connect/disconnect;
Edit settings;
Refresh;
Delete connection;

If not connected, the connect option will be available, otherwise the disconnect option will be visible.
The edit button must open the same modal used to create a connection but with the fields filled saving the connection in the end.
The refresh must be visible only after connected, this option refreshes all databases inside the connection and each individual key count.
The delete connection will delete permanently the connection from the store, it would be great to confirm with the user before the final delete, something like writing the name of the connection to delete or writing DELETE.
All of these options should be available when the user clicks with the right mouse button in a connection.
Layout: https://www.figma.com/file/YRor24p0TmTxcjl5L86jGb/Rocket-Redis?node-id=15%3A13

@diego3g I will work on this one, if that's okay.

@natanaelsirqueira That's great!

@diego3g Do you have any recommendations for implementing the context menu? A library perhaps? I looked into a few options but can't decide which one is the right call.

@natanaelsirqueira I don't remember to have something similar to share with you. Did you start to create something? I'm trying to get the MVP out this week so if you have something so we could work together to finish this.

@diego3g I opened a PR with only the layout because I wasn't sure about some things. I'm already working on the rest of the implementation while I wait for your feedback.


How to delete many rows

I want to generate this query with Cequel:
DELETE FROM users where pk = 'jsmith' and cc < 100;

Let's say my user model looks like this
ruby
class Users
    include Cequel::Record

    key :pk, :bigint, { partition: true } # partition key
    key :cc, :timestamp, { order: :desc } # clustering column

end

Right now, I am iterating through the rows using a simple where clause and destroy them one by one.
How can I use my Users model to generate the above CQL statement.
EDIT: Also posted on stackoverflow

@Micka33 have you tried:
Users.where(pk: 'jsmith').upto(100).delete_all

Although I think that will still perform a SELECT followed by a series of DELETE WHERE…IN statements—I don't think Cassandra has always supported the DELETE approach you have above, does that definitely work now?

@outoftime
Actually trying on Cassandra 2.1.2 with CQL 3.2.0.
You are are right about the smaller-than part, it is not allowed to use it on a primary key part in a DELETE statement.
 ~ cqlsh
Connected to Test Cluster at <IP_ADDRESS>:9042.
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh:db_development> DELETE FROM users WHERE pk = 'jsmith' AND cc < 100 ;
code=2200 [Invalid query] message="Invalid operator < for PRIMARY KEY part cc"
cqlsh:db_development> DELETE FROM users WHERE pk = 'jsmith' AND cc = 100 ;
cqlsh:db_development>

Thank you for pointing me to the delete_all method.
irb(main):036:0> Users.where(pk: 'jsmith').where(cc: 100).delete_all
CQL (2ms) DELETE FROM users WHERE pk = 'jsmith' AND cc = 100
=> #<Cassandra::Result:0x3fdb891da8cc @rows=[] @last_page=true>
irb(main):037:0>

As I have more clustering columns after the cc one, iterating through the ccs gives me a more effective solution than iterating through each of the other clustering columns under cc.


Unify the DISABLED modes

Currently we have two modes of disabled tasks in the scheduler. One mode is disabled forever until re-scheduled from a worker and the other mode is getting re-enabled after a timeout.
Can we unify them? I think it makes sense that DISABLED modes are always time limited and after the time limit they are always pruned. They do survive if a worker abandons them because we don't want it to get scheduled anew (FAILED tasks should have the same treatment btw). When DISABLED the status should be hard to change (luigid shouldn't do it automatically, rather human UI interaction should be able to).
@daveFNbuck, you've been the pioneer of this status. Did you ever write down the purpose of having DISABLED tasks?

what are the two modes? DISABLED is one, what is the other one? FAILED? I don't follow

@erikbern the two modes are that a task can either be automatically disabled by the scheduler, or scheduled as disabled by the worker. We track which way it got disabled and automatically re-enable if the disable was automatic.
@Tarrasch There are two main purposes for disabling tasks, reflected in the two kinds of disables. The first is to stop repeatedly failing tasks from clogging up pipelines. A small number of high priority tasks can completely prevent other ready tasks from running if they keep failing.
The second purpose is to make it easier to temporarily remove tasks from pipelines without having to also remove all downstream tasks. If you find a bug in the output of a job, it's often much faster and easier to mark it as disabled than to cut it from your pipeline until you can fix it.

So you describe two common scenarios which make sense to support. But I dare to say one simple implementation is enough to cover those scenarios. What if a DISABLED status is always time limited? So for the second scenario, it should work out because you probably have your job cronned anyway, and the DISABLED-timeout is updated (increased) every hour by your cron job. What do you think @daveFNbuck?

Most of my crons only schedule recent jobs, with larger backfills scheduled less often to make sure we're not missing anything. The larger backfills would end up scheduling lots of older disabled jobs that would run down the timer before being rescheduled. This would also be a potential problem with large one-off runs that incidentally include disabled jobs. This could be fixed by setting the disable to a very long time when disabled by the scheduler.
This would also cause problems with unsetting disabled in the code. Right now if you set a job as disabled and later re-enable it, the central planner will see that it was disabled by scheduling and allow scheduling to re-enable it. With your solution, the job will now also have to be re-enabled by the user or wait several hours/days/whatever until the disable timer ran out. This problem becomes worse if we set scheduled disabled jobs to have a very long disable timer.
The other issue I'd have with this is manual re-enabling of automatically disabled jobs. I tend to have many jobs scheduled as disabled and one or two occasionally get automatically disabled. It's easy to find and re-enable the automatically disabled ones in the scheduler because they're the ones that have a re-enable button. It doesn't make much sense to re-enable a job that's regularly getting scheduled as disabled. For this reason, I've actually considered splitting these two kinds of disables into two different statuses.

Just want to chime in here. I discussed something related to this with @daveFNbuck today. I have some use case where I want to disable the auto-disable, or change auto-disable window for certain tasks. I think @Tarrasch 's suggestion of submitting DISABLED status always from worker side can help here.
On the other hand, for the second use case (where we want to actual disable job for an indefinite period of time), we can assign an infinite state for DISABLED status (for instance like ttl=-1). This way we can still differenciate the two cases.


Shutil.ignore_patterns '.*' ?

Does it make sens to ignore hidden files ? like backup file, or swap files ?
(or at least warn that some have been found)

.svn would be a bigger problem, I guess. But on the other hand, code could also be using those hidden files, and I don't want to break that by excluding everything.
I have thought about having an 'exclude' option in the config file so the user can specify globs to exclude.

I found this issue looking for a solution to ignore non-source files from the wheel built by flit. I have also read most of the discussions regarding src directory (#115) but I think it is irrelevant in this case.
Is there any way/trick to ignore files while issuing flit build? We have many files which are tracked in git for testing, benchmarks, docs, etc. which we don't want to add to the package, mainly to keep the the package clutter-free and small.

I just compared the contents of flit installed package on my machine with flit's git repository contents. They are different, i.e. the installed package is basically the flit folder in the repo. However when I package my repo, flit packages everything it finds in the root of the git repository. Could someone perhaps shed some light on this?

Files outside the package itself should be included in the sdist, but not the wheel. People installing your package will normally get the wheel, which should be relatively small.
The rationale here is that the sdist (source distribution) should contain everything you need for working on the package, as if you had checked out a tag from version control. Downstream packagers want things like docs and tests to be in the sdist, so that they can use those to prepare their own packages. And if in 10 years time your git repo has disappeared from the internet, the sdists are a backup which someone could use to adopt your project and continue development.
You'll see this in Flit's own packages as well: the sdist includes docs and tests, while the wheel doesn't.
Anyway, the original issue here is long out of date; the sdist work all happened after this. So I'm going to close this.

@takluyver thanks for your quick reply. It was very helpful.


See if we can do release pipeline on scale set pools to allow for || deployment

We should upgrade the agent pool running the release job since the current one will be deprecated in mid 2022.

Component release pipelines are moved to scale set agent pool running VS2019

The "Parallelism" config for the release pipeline might be the key to enable parallel deployments. Not going to test it in 1.23.0.

I set the maximum number of parallel deployments to 5. The config is at pre-deployment conditions.


How can we understand the results and get the similar results presented in the YOLOStereo3D paper?

Hello,
Thanks a lot for sharing such an amazing work. I am struggling to understand the results and match it with the results in your paper. The following image is the result after I trained 50 epochs.

How can I get the results similar as those in your paper?

19-07f00ad7-f999-431d-b2eb-bd464bed1364.png">
Looking forward to hearing from you.
Best regards,

The performance you get is model trained with 7000 training images and evaluate on 300 images. The table you posted from the table shows the result evaluated on the test split. You need to evaluate and save the results of the 7500+ test splits images and submit the files to the KITTI server.

Thanks, I also run the test code  on 7548 test images, and they are stored with *.txt (s). Thank you very much for your reply!

Hi Owen,
Are there any offline methods to generate the results. It's not possible to upload the generated results to kitti server every time when we are still testing and modifying the methods.  Thanks in advance.
Looking forward to hearing from you.
Regards,


 I had the same problem, not on double kill, but on defender, and mostly on defeat and finale (i was there for 5 minutes in defeat just repeating the start of the song and the game lagging on 5 notes killing me)
i was forced to play on 5 misses because on that and all of these 5 misses were done due to lag so i FC'd the song lmaooooo
but yeah there's no mechanic and if game lags it's probably because of that

when missing notes the game drains your hp EXTREMELY FAST which means that if the game lags for long enough it can just instantely kill you, it doesnt need to lag for 5 whole seconds for it to kill you. I had the same problem, not on double kill, but on defender, and mostly on defeat and finale (i was there for 5 minutes in defeat just repeating the start of the song and the game lagging on 5 notes killing me)
i was forced to play on 5 misses because on that and all of these 5 misses were done due to lag so i FC'd the song lmaooooo
but yeah there's no mechanic and if game lags it's probably because of that

Is there a way to disable it? Cause everytime i do it my game lags at that part

It's because of the chart, there are way too many notes causing the game to lag, if you don't believe me just erase the notes and you'll see what I mean


[Production Only] SignIn method calls api/auth/callback/credentials with error 403: CSRF Token Mismatch

Environment

Operating System: Linux
Node Version:     v18.19.0
Nuxt Version:     3.10.0
CLI Version:      3.10.0
Nitro Version:    2.8.1
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      app, devtools, typescript, $production, $development, runtimeConfig, nitro, vite, plugins, image, build, modules, components, alias, css
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction

Url: https://admin.hexasync.com
User & pwd: any user & password.
Click Submit

Actual: the network console will returns 403: Forbidden because of CSRF Token Mismatch
I take a look at the networking behind the scene and saw that it always calls api/auth/callback/credentials? with undefined csrfToken.
Question: How can I set the csrfToken and how does the nuxt server api verify it? I don't see any setup for csrfToken in nuxt tutorial, neither this site's tutorial.
# request
Request URL:
https://admin.hexasync.com/api/auth/callback/credentials?
Request Method:
POST
Status Code:
403 Forbidden
Payload:
- redirect: false
- username<EMAIL_ADDRESS>- password: abc123456
- csrfToken: undefined  // I don't know why this is undefined and how to fille its value.
- callbackUrl: https://admin.hexasync.com/login

# response
{
    "url": "/api/auth/callback/credentials?",
    "statusCode": 403,
    "statusMessage": "CSRF Token Mismatch",
    "message": "CSRF Token Mismatch",
    "stack": ""
}

Describe the bug

There is no module related to csrf installed
There is no security module installed
The signIn() method always calls api/auth/callback/credentials and there is no way to set the csrfToken. Thus, the csrfToken always null/undefined.
The nuxt server will not accept the request.

Below is the configurations
# nuxt.config.ts
import * as antd from 'ant-design-vue'
import { addComponent } from '@nuxt/kit'
import { resolve } from "node:path"

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    // baseURL: '/profiles',
    head: {
      title: 'HexaSync Integration Platform',
      meta: [
        { name: 'description', content: 'HexaSync Admin' }
      ],
      link: [
        // { rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' }
      ]
    }
  },
  devtools: { enabled: true },
  typescript: {
    shim: false,
    typeCheck: true
  },
  $production: {
    routeRules: {
      '/**': { isr: true }
    }
  },
  $development: {
    //
  },
  runtimeConfig: {
    // The private keys which are only available server-side
    // apiSecret: '123',
    // Keys within public are also exposed client-side
    authJs: {
      secret: process.env.NUXT_NEXTAUTH_SECRET, // You can generate one with `openssl rand -base64 32`
      guestRedirectTo: "/login",
      authenticatedRedirectTo: "/"
    },
    hexasync: {
      ssoSecret: process.env.SSO_SERVICE_SECRET,
      ssoUrl: process.env.SSO_SERVICE_URL,
      profileUrl: process.env.PROFILE_SERVICE_URL
    },
    // github: {

    // },
    public: {
      // apiBase: '/api'
      authJs: {
        baseUrl: process.env.NUXT_NEXTAUTH_URL,
        verifyClientOnEveryRequest: true,
      }
    }
  },
  nitro: {
    routeRules: {
      "/": { ssr: true, prerender: false },
      "/sso-proxy/**": { proxy: `${process.env.SSO_SERVICE_URL}/**` },
    }
  },
  vite: {
    vue: {
      customElement: true
    },
    vueJsx: {
      mergeProps: true
    }
  },
  plugins: [
  ],
  image: {
    inject: true,
    quality: 80
  },
  build: {
    transpile: ['lodash']
  },
  modules: [
    // '@nuxtjs/vuetify',
    // 'nuxt-vite',
    // '@nuxt/vite-builder',
    '@nuxt/image',
    async function (options, nuxt) {
      for (const key in antd) {
        if (['version', 'install'].includes(key)) continue
        await addComponent({
          filePath: 'ant-design-vue',
          name: `A${key}`,
          export: key
        })
      }
    },
    '@hebilicious/authjs-nuxt'
  ],
  components: {
    global: true,
    dirs: ['~/components']
  },
  alias: {
    cookie: resolve(__dirname, "node_modules/cookie")
  },
  css: [
    '~/assets/scss/main.scss'
  ]
})

# packages.json
{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "lint": "eslint .",
  "lint:fix": "eslint . --fix",
  "scripts": {
    "build": "nuxt build --standalone",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@nuxt/eslint-config": "^0.2.0",
    "@nuxt/vite-builder": "^3.10.0",
    "@types/jsonwebtoken": "^9.0.5",
    "@types/lodash": "^4.14.202",
    "@types/luxon": "^3.4.2",
    "@vitejs/plugin-vue": "^5.0.3",
    "@vitejs/plugin-vue-jsx": "^3.1.0",
    "@vue/babel-plugin-jsx": "^1.2.1",
    "eslint": "^8.56.0",
    "node-gyp": "^10.0.1",
    "nuxt": "^3.10.0",
    "nuxt-security": "^1.1.1",
    "sass": "^1.70.0",
    "typescript": "^5.3.3",
    "vue": "^3.4.15",
    "vue-router": "^4.2.5",
    "vue-tsc": "^1.8.27"
  },
  "dependencies": {
    "@ant-design/icons-vue": "^7.0.1",
    "@auth/core": "^0.17.0",
    "@hebilicious/authjs-nuxt": "^0.3.5",
    "@nuxt/image": "^1.3.0",
    "ant-design-vue": "^4.1.2",
    "chart.js": "^4.4.1",
    "chartjs-adapter-luxon": "^1.3.1",
    "jsonwebtoken": "^9.0.2",
    "lodash": "^4.17.21",
    "luxon": "^3.4.4",
    "node-addon-api": "^7.1.0",
    "vue-chartjs": "^5.3.0"
  }
}

# /server/api/auth/[...].ts
import CredentialsProvider from "@auth/core/providers/credentials"
import type { AuthConfig } from "@auth/core/types"

import { NuxtAuthHandler } from "#auth"
import { AccountService } from "~/services/accountService"
import { verifyToken } from "~/utils/jwt"

// The #auth virtual import comes from this module. You can use it on the client
// and server side, however not every export is universal. For example do not
// use sign-in and sign-out on the server side.

const runtimeConfig = useRuntimeConfig()

// Refer to Auth.js docs for more details

export const authOptions: AuthConfig = {
  // secret: runtimeConfig.authJs.secret,
  secret: process.env.NUXT_NEXTAUTH_SECRET,
  session: {
    strategy: 'jwt'
  },
  providers: [
    CredentialsProvider({
      id: 'credentials',
      type: 'credentials',
      name: 'credentials',
      credentials: {
        username: { label: "Username", type: "text", placeholder<EMAIL_ADDRESS>},
        password: { label: "Password", type: "password" },
      },
      async authorize(credentials) {
        const accountService = new AccountService(runtimeConfig)
        const jwt = await accountService.login(credentials.username as string, credentials.password as string)
        const user = await accountService.me(jwt.accessToken)
        if (user?.email?.indexOf('beehexa.com') || user?.email?.indexOf('hexasync.com')) {
          return {...user, jwt: {...jwt}}
        }
        return null as any
      }
    })
  ],
  callbacks: {
    async jwt({ token, user }) {
      if (!token) {
        return {}
      }
      // it is token, but it is not. It's a user info with jwt token
      let result = {...token} as any
      if (user) {
        result = {...result, ...user}
      }
      let {jwt} = result
      const accessToken = await verifyToken(jwt.accessToken)
      if (accessToken.isValid) {
        return {...result, claims: {...accessToken.decoded}}
      }
      const refreshToken = await verifyToken(jwt.refreshToken)
      if (!refreshToken.isValid) {
        return {}
      }

      const accountService = new AccountService(runtimeConfig)
      jwt = await accountService.refreshToken(jwt.refreshToken)
      const newAccessToken = await verifyToken(jwt.accessToken)

      return {
        ...result,
        ...user,
        jwt: {...jwt},
        claims: {...newAccessToken.decoded}
      }
    },
    async session({ session, token }) {
      if (!token) {
        return {} as any
      }
      // it is token, but it is not. It's a user info with jwt token
      return {
        ...session,
        user: {
          ...token
        },
        token: {
          ...token
        }
      }
    }
  }
}

export default NuxtAuthHandler(authOptions, runtimeConfig)

After click Submit, the Auth Module calls /api/auth/callback/credentials and received:
Request URL:
https://admin.hexasync.com/api/auth/callback/credentials?
Request Method:
POST
Status Code:
403 Forbidden
Payload:
- redirect: false
- username<EMAIL_ADDRESS>- password: abc123456
- csrfToken: undefined
- callbackUrl: https://admin.hexasync.com/login

Response: {
    "url": "/api/auth/callback/credentials?",
    "statusCode": 403,
    "statusMessage": "CSRF Token Mismatch",
    "message": "CSRF Token Mismatch",
    "stack": ""
}

Additional context
No response
Logs
No response

same problem is anyone able to figure this out somehow?

Auth.js has a skipCSRFcheck parameter in the config, but i cannot get it to work.
It does not accept a Boolean it seems, it wants an Symbol 🤷♂

I think I'm getting the same problem here? A CSRF protected error

Is this package dead ??
I'm facing the same error in production.
We can't event set skipCSRFcheck to true.

@ghyath5 I was able to resolve some of my problems by pinning @auth/core to a specific version in my package.json
{
    //...
    "@auth/core": "0.17.0",
    "@hebilicious/authjs-nuxt": "^0.3.5",
    //...
}

the skipCSRFcheck is a unique symbol that you have to import:
import { skipCSRFCheck } from "@auth/core";

then used as:
export const authOptions: AuthConfig = {
    // ...,
    skipCSRFCheck,
};

However despite this, I do still have the same error, and my @auth/core is in version 0.17.0


[PDI-16809|PDI-16812|PDI-16824] Add a checksum - generates wrong checksum

added new logic for the binary data checksum generation
added new compatibility flag "Old Checksum Behaviour Mode"
added new checkbox on the "Add Checksum" step UI
regression with the wrong field checksum calculation was fixed
new tests were created

@mchen-len-son @pamval @mbatchelor @bmorrise please review

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'ui,engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'ui,engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'ui,engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/checksum/CheckSum.java
  engine/src/main/java/org/pentaho/di/trans/steps/checksum/CheckSumMeta.java
  engine/src/main/resources/org/pentaho/di/trans/steps/checksum/messages/messages_en_US.properties
  engine/src/test/java/org/pentaho/di/trans/steps/checksum/CheckSumMetaTest.java
  engine/src/test/java/org/pentaho/di/trans/steps/checksum/CheckSumTest.java
  ui/src/main/java/org/pentaho/di/ui/trans/steps/checksum/CheckSumDialog.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.core.injection.bean.BeanInjector

Branch Change: -0.8% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:

org.pentaho.di.trans.step.StepMeta

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -0.6% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Branch Change: -2.6% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.www.cache.CarteStatusCache

Instruction Change: -1.2% :small_red_triangle_down:
Line Change: -1.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceinsert.SalesforceInsertMeta

Instruction Change: -0.1% :small_red_triangle_down:


Allowing to update files and services private stuff (SDKv1)

fix: doing service available for all the http verbs
fix: allowing to update files and services private metadata

Description
Add a description of your changes here.
Is this PR related with an open issue?
Related to Issue #
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] Follows the code style of this project.
[ ] Tests Cover Changes
[ ] Documentation

Funny gif

There is an independent issue with the artifacts domain, I will merge because this change is not totally independent


Fix UX of the apply as a mentee page

Is your feature request related to a problem? Please describe.
A lot of users in the last program commented on the placement of the apply button and it not being that accessibility friendly
Describe the solution you'd like

Analyse the current view and suggest a better workflow (could be something simple like moving the apply button to a different place)
Implement that suggestion

@YaiyaSam working on this


Run AbstractTestDistributedQueries for SQLServer

Requires https://github.com/prestosql/tempto/pull/7

ready for review

cc @electrum

Rebased on top of https://github.com/prestosql/presto/pull/586


fix: fix presubmit

Make sure our dependencies are installed in BazelCI

1804 has an older version of Clang which doesn't work for us.


Disable Grouped of JFXTreeTableColum

Hello, is there any method to disable grouping? So that it does not show the popup by clicking secondary on the column.

Hello,
Currently there is no such a method, but you can simply remove this behavior by setting the context menu of the tree table column to null.
I noticed that the context menu is being set in Platform.runlater, this will be removed. so setting the context menu to null directly after calling the constructor should do the trick.
Regards,


Add ellipsis option to text (icons browser as an example)

Achieved by setting both .block and .nowrap to true, for example:
Text(
    "This-is-a-very-long-text",
    width=50,
    height=50,
    border_style="double",
    border_width=1,
    block=True,
    nowrap=True,
)

Update docs!

Achieved by setting both .block and .nowrap to true, for example:

In CSS, there is still no out-of-the-box way for having ellipsis with multiline text. Have to check if Fluent UI provides any support for it.


GraphQL improvements

What is the motivation/use case for changing the behavior or adding new feature?

We need to make graphQL more extendable. Of course - one can use AppoloQuery to directly query the data but still many users will be using SearchQuery and vuex stores maintaining the API/graphQL interoperability.

Acceptance criteria

[ ] Add the mechanism to extend the graphQL queries / entity types: https://github.com/DivanteLtd/vue-storefront/pull/1616/files#r216917642
[ ] Add support for _sourceInclude and _sourceExclude fields  - https://github.com/DivanteLtd/vue-storefront/pull/1616/files#r216919147 - it should be passed from frontend to backend (currently it's being configured in the backend only which may be misleading for the developers (as for ES it's passed from frontend to backend). Moreover to have this "progressive caching" feature up and running the frontend must have a choose which fields is it fetching: https://github.com/DivanteLtd/vue-storefront/blob/2aee2fc4cc98341dcc643916dc118c96568daeec/core/store/modules/category/actions.ts#L156 (the fields list vary on the case - once we're getting full product list other time just a limited number of fields)
[ ] Get rid off te warning <ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly.

Anyway, great job with this graphQL support!

Maybe we can completely switch to Apollo?


ZkIdentity from message does not work in browser

The sha256 implementation is not compatible in browser when the crypto shim is used. Maybe we should use like js-sha256

how about we use @semaphore-protocol/identity?

Yes I think it's a good idea

#377


Return alignment info

With the k2 models, is it possible to output phone-alignment and word-alignment info along with confidence like the old kaldi models?

It is doable. We can output token force alignment information with icefall.
See https://github.com/k2-fsa/icefall/tree/master/egs/librispeech/ASR/transducer_stateless
For the confidence information, you have to change the code to return the scores.

this seems to be obtaining the alignment in batches. Is it possible to obtain this alignment info in real-time while streaming?

@csukuangfj Just following up on this question: is it possible to obtain this alignment info in real-time, e.g. get alignment for each decoded segment while streaming?

Do you want to return the alignment information in frame numbers or in seconds?
Also, do you want the origin to be relative to the start of a segment or the start of the utterance?

Preferably in seconds. Either relative to the start of the segment or utterance should be fine


v2 search results enhancements

Context
Following https://github.com/Police-Data-Accessibility-Project/data-sources-app-v2/pull/107
There are a few structural enhancements which would be helpful prior to other more style-related changes.
Requirements

[ ] Let's let the data source name wrap to 2 lines; almost all of them are getting truncated.
[ ] Let's eliminate the "search location" boxed result on the right; the intent there was that the search form would basically just be recreated in that sidebar, which it is.
[ ] Where icons appear ("types of data") let's put them at the start of the line of text, rather than at the end.
[ ] It's generally preferred to use an en dash rather than a hyphen and spaces between years, replacing the word "to": "2023–2024" instead of "2023 - 2024".

[ ] Might be a decent time to look at font sizing
Almost all interactive components use the component token except for the tag which uses small with some padding.
Components fall into 3 heights that somewhat align to font sizes, 44px, 36px and 20px. The use of 0x line-heights on some fonts help achieve a standard height and assumes that those components are rarely multi-line.

[ ] The description has an ellipsis but also extends by a line or more.
[ ] The rows should be 4px rounded and 1px borders unlike the other components that are all 2px.
[ ] The entire row should be a click area with a hover effect.
[ ] Updated the Agency row to bold because it's easy to miss that the agency changed.

[ ] Need to look at columns both for wide and mobile a bit closer.
[ ] For mobile It might be easier to change the whole font scale. There's a way to do this with rem but I need a refresher.


Reduce release build time

Especially for Nix packaging (#12), the cold release builds take a long time. I believe I can turn off some of the clap feature flags to free up some build time.

This issue needs to be considered by #16