SHA256 hash mismatches (deno cache and curl | sha256sum disagree)

This is kind of a weird problem. When nix building one of my projects with deno2nix, I get errors like:
$ nix build '.#executable'
warning: Git tree '/Users/amos/bearcove/keysmash2' is dirty
error: hash mismatch in file downloaded from<EMAIL_ADDRESS>         specified: sha256:0dpp3ypl1j86v8whp3yqlx7i3aam3pzsqx7hccb511wbxdaw33ib
         got:       sha256:049xy78c6l4i6c6cwppgpgyrilcz2n78ydvjppv8rr8gifklzz4n
(use '--show-trace' to show detailed location information)

I'm not sure how those hashes are formatted (they don't look like hex, there's w in there), but out of curiosity, I checked what was in deno.lock and compared it with curl url | gsha256sum, and they disagree:
The deno.lock file has 2b8ec155eb8b87501663f074acff1d55a9114fa7d88f0b39da06c940af1ff736, but:
$ curl -s<EMAIL_ADDRESS>| gsha256sum
96fc4fa78b0fe58cf6bd72378f8e159fd198fdbbef5ece0c339150c3d0f13d11  -

This might be a bug in deno cache (1.30.3), or esm.sh might be serving something different for different user-agents (and in this case it can be fixed in deno2nix?). All I know right now is that it's weird and I'm wondering if you have any idea where this could come from.
(My best idea of a workaround right now is to write a tool that updates deno.lock with the proper SHA256 sums before calling nix build, but that's not great).

There is a (lengthy) discussion of hash mismatches here
https://github.com/NixOS/nix/issues/1885
which might be useful (and it's certainly extensive enough to suggest you're not the only one).

It looks like esm.sh returns something different based on the User-Agent, so deno2nix should set it: https://mspsocial.net/users/ironiridis/statuses/109866537157919405

@fasterthanlime Note that my instance doesn't permit unauthenticated access due to an upstream Mastodon change so here's the text of that post:

You were right, it checks the UA. See the ESBuild Options section on this page: https://esm.sh/#docs
Luckily you can override it.
curl -s 'https://esm.sh/preact@10.11.0/hooks?target=deno' | sha256sum
2b8ec155eb8b87501663f074acff1d55a9114fa7d88f0b39da06c940af1ff736  -

This is in the context of Amos's post.

I tried passing curlOpts with a User-Agent: Deno/1.0 (which in my local testing should give the right hash) in this branch but I'm now stuck on another nix-related error that may be another bug entirely / me holding it wrong:
nix build --show-trace '.#executable'
warning: Git tree '/Users/amos/bearcove/keysmash2' is dirty
error: builder for '/nix/store/ly08n3gzfqcxy6akl5ci0l3s8hplsgdw--preact-render-to-string-5.2.4.drv' failed to produce output path for output 'out' at '/nix/store/bdfx0mf5i8hf1axk832f42wvhn8krji8--preact-render-to-string-5.2.4'
error: 1 dependencies of derivation '/nix/store/qvq7hwmvcq1yg49pyf1d0gidi3d5v154-deps.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yb0n6sg94cpi68m2mdyh14aibzpv3wfh-simple-executable-0.1.0.drv' failed to build

Oh, this is a duplicate of #6! Closing.

I tried passing curlOpts with a User-Agent: Deno/1.0 (which in my local testing should give the right hash) in this branch but I'm now stuck on another nix-related error that may be another bug entirely / me holding it wrong:
nix build --show-trace '.#executable'
warning: Git tree '/Users/amos/bearcove/keysmash2' is dirty
error: builder for '/nix/store/ly08n3gzfqcxy6akl5ci0l3s8hplsgdw--preact-render-to-string-5.2.4.drv' failed to produce output path for output 'out' at '/nix/store/bdfx0mf5i8hf1axk832f42wvhn8krji8--preact-render-to-string-5.2.4'
error: 1 dependencies of derivation '/nix/store/qvq7hwmvcq1yg49pyf1d0gidi3d5v154-deps.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yb0n6sg94cpi68m2mdyh14aibzpv3wfh-simple-executable-0.1.0.drv' failed to build

@fasterthanlime The reason it fails is because curlOpts doesn't like spaces, you should use curlOptsList = [ "-H" "User-Agent: Deno/1.0" ];. Unfortunately after this we're back to the checksum issue. No matter what I use: nix-prefetch-url, curl  + target=deno + sha256sum, curl + deno user agent + sha256, I am just not able to get the checksum that are in deno.lock.

@voidcontext Can you try -A instead? https://everything.curl.dev/http/requests/user-agent

@voidcontext Can you try -A instead? https://everything.curl.dev/http/requests/user-agent

@ironiridis yup, same issue with this: https://github.com/voidcontext/deno2nix/commit/ab9ac6ee36f0b8a515980010db2c540d9e29e8b1

curlOptsList = [ "-H" "User-Agent: Deno/1.0" ];

Deno/1.0 UA still causes hash mismatch, I changed it to Deno/${deno.version} and everything seems working now


tf.image.per_image_standardization unexpected behavior with unsigned integer input

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04.4
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): v2.2.0-57-g25fba035f3 2.2.1
Python version: 3.7.7
CUDA/cuDNN version: 10.1.243
GPU model and memory: Nvidia Tesla V100-DGXS-32GB,

Describe the current behavior
tf.image.per_image_standardization has no special handling for unsigned integers but still converts back to unsigned before returning. Thus uint inputs get saturated at zero (fully half of the data!) and at their maximum value. Currently no explanation of uint behavior is given in the docstring, and no warning or other indication that behavior might be unexpected is shown.
Describe the expected behavior
In previous versions of TensorFlow (I believe changed after 1.14), per_image_standardization just returned a float rather than converting back to the original datatype, so it didn't have this problem. I would expect something safe like that, leaving it up to the developer to decide how they want this conversion handled, or at least a warning printed in the event a uint input is given. Some documentation specifying that uints are not handled differently and will be saturated might be nice too.
Standalone code to reproduce the issue
Colab notebook link.
Other info / logs
No tracebacks or logs because it doesn't throw an error. I would call this a failure mode, but it fails silently. I suspect it's an edge case that isn't tested.

@Engineero
Please, grant me access to colab link. Thanks!

Sorry, haven't used colab much. It should be fixed now.

I have tried in colab with TF version 2.3 and nightly version(2.5.0-dev20201118) and was able to reproduce the issue. Please, find the gist here. Thanks!

For the record, I think the behavior changed between 1.14 and 1.15, which is why I suspect an untested edge case. I had a use case where this affected training, and while it's certainly not backwards-incompatible (doesn't error out anyway), it is a surprise.

@engineero, related issue:
https://github.com/tensorflow/tensorflow/issues/33892

Here is the offending commit:
906e0e3

Oh, hey @mixxen! Good find, thanks!

It looks like simply casting (not with convert_image_dtype, just tf.cast) to float prior to per_image_normalization prevents information loss. I'd create a pull request, but I think the bigger question is what is the intended behavior when given unsigned integer input and how should that be communicated? Also covering this edge case with tests.

Thank you for reporting the issue @Engineero and identifying the offending commit @mixxen.
The changes in https://github.com/tensorflow/tensorflow/commit/906e0e3bc0dfe12db19afa261e4d793b73cb64ec appears to have changed the behavior of per_image_standardization unintentionally and should be reverted back in my opinion. It especially does not make sense for unsigned integer data types because images that have zero-mean will consist of negative and positive values (unless all values are 0). The API function has been working with uint dtypes (until the breaking change) and should continue to do so. I'll get a fix in shortly.

Here is a colab verifying the fix with tf-nightly. Closing the issue; please feel free to reopen if you encounter additional issues.


Revise.jl is a dep in Project.toml. Is this really needed?

Revise is very useful for developing. But, I don't think it belongs there.

closed accidentally


Spring breaks Run in Terminal

Great work with this! I'd love to get it working fully for my project in VS Code.
My project uses spring to reload the development environment on code changes. When I use the CodeLens Run or Run in Terminal commands, they fail like this:
💥 bundle exec bin/rspec /Users/daniel/myproject/my_spec.rb
/Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:100:in `block in preload': Spring reloads, and therefore needs the application to have reloading enabled.
Please, set config.cache_classes to false in config/environments/test.rb.
 (RuntimeError)
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `instance_exec'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in `run'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:347:in `each'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:347:in `call'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/railties-7.0.8/lib/rails/initializable.rb:60:in `run_initializers'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/railties-7.0.8/lib/rails/application.rb:372:in `initialize!'
        from /Users/daniel/docker/tatou/api/config/environment.rb:5:in `<main>'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:107:in `preload'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:166:in `serve'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:148:in `block in run'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:142:in `loop'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application.rb:142:in `run'
        from /Users/daniel/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/spring-4.1.3/lib/spring/application/boot.rb:19:in `<top (required)>'
        from <internal:/Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/Users/daniel/.rbenv/versions/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from -e:1:in `<main>'

but I can make the same command work in my terminal by putting an environment variable at the start:
DISABLE_SPRING=1 bundle exec bin/rspec /Users/daniel/myproject/my_spec.rb

This is a workaround I picked up from other projects, e.g. https://github.com/ruby-debug/ruby-debug-ide/issues/152#issuecomment-432741366
Is there a way to customise the command this gem uses to run RSpec?

IMO the right solution to solve this problem is to properly configure your Rails app for Spring: https://github.com/rails/spring/issues/598#issuecomment-554030462
This workaround may help too: https://github.com/rails/spring/issues/598#issuecomment-1268885973


[Techical Writing] Detailed article on how to create REST API

Related Issue
#209
Description
A detailed article on how to create a REST API using Node JS and Mango DB and how to host it.
Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[x] Other (specify): Technical Writing

Screenshots / videos (if applicable)

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
I apologize for the late PR. I wrote a detailed article on how to create a REST-API by explaining the book catalog api project.
I used node, mongodb for this. I tested all the code for this rest api in my local machine and it works very well. As for the deployment part, I'm experimenting in platforms like render and netlify and I'm facing quite some error. So, I added only a single line about the deployment platforms in the blog. It would be really helpful for me if you suggest any deployment platforms.

@Durgesh-Vaigandla kindly check this PR

Add Free Hosting platform aka render to deploy the API

@Durgesh-Vaigandla , I deployed the api on render. Thank you for your suggestion.
Kindly check the edits. The Api link 'https://bookcatalog-restapi.onrender.com/bookStack'


Import file issue

Hi, i'm importing the FAPanels but it is showing an error that no such module. I have properly installed the pods but it is showing such issue.
Second one i want to ask that in my centerVC how can i open LeftFAPanel in click of button and same with other View controllers just on click of a button?
It would be more better if u have a video tutorial also.

Hi, i'm facing an issue in appdelegate.swift class. My code in appdelegate class is this,
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
    let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)

    let leftMenuVC: LeftVC = mainStoryboard.instantiateViewController(withIdentifier: "LeftVC") as! LeftVC

    let centerVC: CentralVC = mainStoryboard.instantiateViewController(withIdentifier: "CentralVC") as! CentralVC
    let centerNavVC = UINavigationController(rootViewController: centerVC)

    //  Set the Panel controllers with just two lines of code

    let rootController: FAPanelController = window?.rootViewController as! FAPanelController

    rootController.configs.panFromEdge = false
    rootController.configs.minEdgeForLeftPanel  = 70

     _ = rootController.center(centerNavVC).left(leftMenuVC)

    //  For Case 1 only
    window?.rootViewController = rootController

    return true
}

When i run the app it crashes by showing this error,
Unknown class _TtC12SideMenuDemo17FAPanelController in Interface Builder file. 2018-03-13 10:33:25.484182+0500 SideMenuDemo[12142:467374] Unknown class LeftVC in Interface Builder file. Could not cast value of type 'UIViewController' (0x109cabca8) to 'SideMenuDemo.LeftVC' (0x1075293d0). 2018-03-13 10:33:25.484882+0500 SideMenuDemo[12142:467374] Could not cast value of type 'UIViewController' (0x109cabca8) to 'SideMenuDemo.LeftVC'
My storyboard is like this,

I have place a tab bar as my centralVC it open the first tab bar item but doesn't show tab bar at the bottom.

@Hamza-Brainplow
No.1

i'm importing the FAPanels but it is showing an error that no such module. I have properly installed the pods but it is showing such issue.

If you have installed the pods correctly and imported in the file you are using FAPanels, then just try to build the project with Command + b because some times the newly installed pods are in Red color under Pods in your workspace. Just give it a try and let me know in case you face issue again.
No.2

Second one i want to ask that in my centerVC how can i open LeftFAPanel in click of button and same with other View controllers just on click of a button?
It would be more better if u have a video tutorial also.

Please read this https://github.com/fahidattique55/FAPanels#openclose-panels
No.3

Please share the code snippets so that I can look into details of it. For some work around please see #1 to understand the working of FAPanels with Tab bar controllers.

Hi, thanks for ur response bro, i have tried your code for opening the Left FAPanel on click of a button. This is my second view controller in which i'm trying to open it but nothing is happening on click of button. This is my viewDidLoad method,
`override func viewDidLoad() {
super.viewDidLoad()
self.navigationController?.isNavigationBarHidden = true
    panel?.configs = FAPanelConfigurations()
}`

This is my button action,
@IBAction func Menu(_ sender: Any) {       panel?.openLeft(animated: true)     }
Its not working.

@Hamza-Brainplow
There are two possibilities,
No.1
Either the leftPanelVC is nil
No.2
Or the panel you are trying to get for using openLeft(animated: true) is nil

@Hamza-Brainplow
Are you able to diagnose the problem ?

Closing issue as not activity response from @Hamza-Brainplow


Add new kernel documentation link leads to 404

In the readme, there is a sentence "More information on how to add new kernels to the library can be found in the documentation." but the link leads to a 404 error.

I presume it should point here: https://github.com/clEsperanto/CLIc/blob/master/docs/how_to_contribute/kernel_function_creation.md
Happy to send a PR :-)


Found during bug bash

The exception message becomes:
No API Key specified. Set the INDUCTIVA_API_KEY environment variable.
  Exiting with code 1.

Can you check the problem that was occuring also when using the CLI without a key set up?

Yes, fixed now


Unable to find ETS2 or ATS in this GAMEDIR. - Even after installing using truckersmp-cli

I hope I am not missing something totally obvious here, in case I do, I am sorry ;-;
First off: I installed ETS using the ./truckersmp-cli -eu -n [Username] command.

I assume this is how it should look like?
Afterwards I tried the update and start command referenced in the readme:
./truckersmp-cli -eusp -n [Username] which seems to always run into errors for me
Hastebin of the command output
(my linux username and steam username have been replaced respectively in the command output)
While the script is running a few things happen: Steam opens up, tries to run ETS, actually gets it to display running in Steam (and shows that I am actually playing the game rn) but never opens up the game window. About where it displays "running..." next to the game the command displays Unable to find ETS2 or ATS in this GAMEDIR.
I also tried starting it with Wine (and a 64 bit install of Steam) which also caused errors for me.
As said above I am probably just missing something totally obvious.
Looking up different issues I have seen the Proton warning near the end multiple times, I assume that isn't the error?
Thanks in advance for the help :)

Please run ./truckersmp-cli -espv -n [Username] and post the output. That should give some more information without restarting steam.

no moddir set and fallback found
/home/linuxUserName/github/truckersmp-cli/truckersmp
checking for errors
Game not found in /home/linuxUserName/.local/share/truckersmp-cli/Euro Truck Simulator 2/data
Need to download (-u) the game?
removing /tmp/truckersmp-cli.5zA5fRqmBj and /tmp/truckersmp-cli.tmWij0lwyT

For some weird reason the folder specified is indeed totally empty, even though I downloaded the game prior (apparently). Using the install command: ./truckersmp-cli -eu -n [Username] again, does not change anything, the data folder stays empty. Do I have to set the moddir by hand?

Do I have to set the moddir by hand?

That shouldn't be needed, that's only relevant for the files of TruckersMP which get now placed in the legacy path inside the script directory. Please also pass the -v argument to the install command: ./truckersmp-cli -euv -n [Username]
Really strange that files aren't at the download path.

Don't wanna spam the entire post with a long log: truckersmp-cli-install-issue.log
Thank you again for your help. ;w;

From what I can see is that the files should be in $XDG_DATA_HOME/truckersmp-cli/Euro Truck Simulator 2/data. The path gets correctly passed to steamcmd which reports it as installed in that location. Are you sure they aren't there? They're somewhere as steamcmd doesn't download them again and just verifies everything's there. Please search for eurotrucks2.exe as it has to be somewhere. find $XDG_DATA_HOME -name "eurotrucks2.exe"
You're the first one I've seen with steamcmd installed system wide, I wonder if that's causing some problems.

You're the first one I've seen with steamcmd installed system wide, I wonder if that's causing some problems.

Thought I was supposed to...oof
$ find $XDG_DATA_HOME -name "eurotrucks2.exe"
./home/linuxUserName/.local/share/truckersmp-cli/Euro/bin/win_x64/eurotrucks2.exe
./home/linuxUserName/.local/share/truckersmp-cli/Euro/bin/win_x86/eurotrucks2.exe

Strangely enough it downloads all the files into the Euro directory (the Truck Simulator 2 part cut off; probably because of the space?). Moved all the files from the Euro directory to Euro Truck Simulator 2/data and the game loaded fine...with TruckersMP enabled.
Maybe some technical facts: I am using Arch with the bash shell.

Yes, that's the space but that shouldn't matter because the string is quoted: https://github.com/lhark/truckersmp-cli/blob/8e95826bacab03044073fdba6c30fb4ebef97d36/truckersmp-cli#L337
The bug is already reported by @lhark and the maintainer refused to acknowledge it as a bug:

In the steamcmd script, you must quote the "$@", or else arguments with spaces in their names will get split a second time.

Seeing as that script was taken with little modifications from Debian, I will leave it as is.

I recommend to uninstall steamcmd so this script downloads the script into userspace as it seems that the package won't get an update soon. Other option would be to manually edit the file which you'll probably have to do again on every update.
I also recommend to have a look into #31 if you're familiar with git as it'll allow to use the latest Proton 4.11 and has the ability to take the huge performance improvements given by d9vk.
Happy trucking!

Will do that as soon as I have time :)
Thank you for the great help, removing steamcmd finally fixed the it for good

Suppose I should close the issue now?

If it is fixed: yes.


cli: fix substitutions feature

there's WIP on https://github.com/getpopper/popper/tree/parser-fixes . There are many other things that need to get fixed (that I broke when moving to using a YAML spec for the workflow). Working on it and hopefully submitting a PR today or tomorrow


Added an endpoint to list available versions to install

Added an endpoint to respond with available versions to install. This is the second part of the following ADO card.
Work Item - https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/10581245
Currently it responds with hard coded data until we have the real data in the form of OpenShift version documents in cosmosdb

Awesome stuff, LGTM!

@anshulvermapatel, we can't update the existing published API 2022-04-01.
It can only be a new versioned API: 2022-09-04
https://github.com/Azure/ARO-RP/pull/2225/commits/4d05a1b620776e8cf354d81d700fc3b9004d2181

@25region , I have now shifted it to the latest API which is unpublished right now 2022-09-04.


Solve the compilation error of org.apache.dubbo.remoting.http.tomcat.tomcathttpbindertest ා shouldablehandlerequestfortomcatbinder method

What is the purpose of the change
Solve the compilation error of org.apache.dubbo.remoting.http.tomcat.tomcathttpbindertest ා shouldablehandlerequestfortomcatbinder method
Brief changelog
Introducing httpclient package needed for compilation into POM file under Dubbo remoting HTTP module
Verifying this change

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@028d5f0). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master   #5367   +/-   ##
========================================
  Coverage          ?   61.2%
  Complexity        ?     423
========================================
  Files             ?     919
  Lines             ?   37434
  Branches          ?    5443
========================================
  Hits              ?   22911
  Misses            ?   12008
  Partials          ?    2515

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 028d5f0...d094dfd. Read the comment docs.

As the following dependency gives transitive dependency to httpclient, I don't think it's necessary.
      <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>fluent-hc</artifactId>
            <version>4.5.5</version>
            <scope>test</scope>
        </dependency>

Reopen if necessary.


Clicking on day header opens the native calendar app instead of allowing to choose the calendar app

User Report:
when I click on a date ( not an event ) it always pops up the Samsung calendar app instead of a chooser of the installed calendar apps (where i can set which should open from now on).
It is a problem because I do not use the Samsung calendar app but an other. The bug appears only by clicking on the date, clicking on an event pops up a calendar app chooser as it should.

This WFM with version 1.8.6 on a Galaxy S4.

I just tested this on my Android 7.0 device after clearing all default for the Google Calendar application: clicking on a Widget Calendar prompts to select between the two "Calendar" applications, installed on my device. See the screenshot below.


Combine methods from Prelude and Compiler modules into single Compiler class

Codecov Report
Attention: Patch coverage is 76.64430% with 174 lines in your changes missing coverage. Please review.

Project coverage is 82.86%. Comparing base (2742981) to head (b316215).

Files with missing lines
Patch %
Lines

src/Escalier.Compiler/Compiler.fs
76.64%
174 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
- Coverage   82.87%   82.86%   -0.02%
==========================================
  Files          28       27       -1
  Lines       13357    13359       +2
  Branches     1897     1906       +9
==========================================
  Hits        11070    11070
- Misses       2287     2289       +2

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


feat(docs): Update README.md

Changes

[x] Added logo to the readme
[x] aligned header items to the center

This will make it look a lot cleaner and readable.

I like it! Thanks for suggesting!


KubeConfigLoader does not support insecure-skip-tls-verify: true

KubeConfigLoader does not honor the insecure-skip-tls-verify cluster property mentioned on https://kubernetes.io/docs/user-guide/kubeconfig-file/
Obviously nobody should disable TLS verification, but it's sometimes useful for development etc :smirk:

This is supported by pykube btw: https://github.com/kelproject/pykube/blob/33b251140145e4edd3022fddfb56e80c9db05e6a/pykube/session.py#L38

looks easy to add, what are the test steps for this?


AOT plugin does not recognize static inner classes

In this arrangement, the static inner class is not ending up in the spring.components file:
@Entity
class MyEntity {

  @Embeddable
  static class MyEmbeddable {}
}

Moving the MyEmbeddable type into a dedicated file makes it appear.

Do you mean this is a pattern recognized by the regular spring-context-indexer AP when added as a dependency but not when using Spring AOT + Spring Native?

I haven't yet verified which of the components is the root cause here. Let me try the context indexer standalone.

There's some interesting observations, I think: In general, it looks like the AOT plugin skips the creation of a spring.components on its own. That's unfortunate, as apparently the algorithms for the creation of that file differ, i.e. the plain output of spring-context-indexer is different than from the AOT plugin. I assume that's due to SCI operating on the sole compile result and thus does not see annotations potentially added through post-compile byte-code manipulation adding annotations. The AOT plugin seems to see those, but not on nested classes.

it looks like the AOT plugin skips the creation of a spring.components on its own

Isn't it created in for example target/generated-sources/spring-aot/src/main/resources/META-INF/spring.components when using Maven?
We should ideally use the same algorithm but due to the AP nature of spring-context-indexer we have to mimic it for now in Spring AOT, even if not ideal, if I remember what @aclement said to me some times ago.

Actually, I prefer what Spring AOT does. Mostly because it's running later than the APT based content indexer and thus can see the class files after a post-processing step (ByteBuddy based adding of annotations in my case). I wonder if Spring AOT should just always create a spring.components on its own as you might end up with an incomplete listing of classes if you by accident use the spring-context-indexer and miss half the files that Spring AOT would actually include.

For the original request, it looks like the creation only considers nested classes if they are Spring components, but not any other stereotypes like JPA entities, embeddables etc.

few things to comment on. Early versions of synthesizing spring.components were being conservative, its a new idea - hence not treading on the toes of an existing file. But yes, AOT synthesis may catch more things resulting in a more complete list, especially in a system using spring libraries that introduce their own components (like spring cloud and its controllers) which were not built with the indexer. (the current indexer - deliberately - only catches things in the source it is compiled with).
Sebastien and I have talked about turning it ON always. But I honestly am not sure who wins the race condition between having one already existing in your current project and the one Spring Native would generate. It needs checking. If there is an issue, I suppose a temporary substitution on the existing indexer to ask "is spring native around? If so I won't do anything" would avoid that because spring.components is never manually maintained.
We can easily extend the model to catch other things, if you can describe to me what they are. That code you linked to Ollie is separate to the code that does the synthesis. And again, written in a way to 'get something going', definitely open to improve for covering more scenarios.

Great feedback, Andy, thanks. The main difference I found was @Embeddables not being written by spring-context-indexer but implicitly kept around by the AOT indexer as it just creates entries for everything javax.…. Still the AOT indexer didn't find the inner class @Embeddable as it apparently doesn't process the inner classes unless they're Spring components. I thought the code I linked to was the actual handling of the classes found in the first pass.
In the end I'd like to be able to keep @Embeddable classes as inner classes and have them shop up in the index as well. The actual effect of them missing is Hibernate complaining about them not carrying identifier properties as it doesn't recognize them as embeddables. They are, however, identifier implementations in my case.
I really like that the AOT indexer produces a more complete set of components as – as mentioned above – it allows me to add the annotations it's looking for through byte code manipulation, so that the original code can stay free of technical annotations but the code would still be treated correctly by the infrastructure.
I was kind of hoping / assuming that the AOT functionality would – at some point in the future – end up in the Spring Boot build plugin anyway and spring-context-indexer deprecated effectively as I assume that the more complete index created would also be beneficial to plain JVM based arrangements, too.

I was kind of hoping / assuming that the AOT functionality would – at some point in the future – end up in the Spring Boot build plugin anyway and spring-context-indexer deprecated effectively as I assume that the more complete index created would also be beneficial to plain JVM based arrangements, too.

That's my hope as well, I am totally in favor of getting more consistency across the build-time transformation we do but I guess that's a Spring Framework 6 / Spring Boot 3 discussion we need to have with @jhoeller and the wider team.

Sounds like the simple enhancement first is to get inner classes treated properly. Then we should raise an issue that really evaluates always synthesizing it and working through potential clashes with any existing index.

I don't see this working for RESTBucks. Steps to reproduce:
$ git clone https://github.com/odrotbohm/spring-restbucks
$ cd spring-restbucks/server
$ git checkout hacking/native
$ mvn clean package -DskipTests

The annotations on the inner class get added via the Maven ByteBuddy plugin. The log output of that should document the annotations being added. Note how the spring.components does not contain entries for e.g. OrderIdentifier or LineItemIdentifier. Also note, how it contains an entry for CreditCardNumber, which also gets the annotations added via ByteBuddy but is a top level type.

Debugging this close, you have a point that the code I point to is not the cause for the entries being removed. synthesizeSpringComponents() is where things go off. While scanForSpringComponents() still contains the entry, the call to filterOutNestedTypes() right after that drops them based on the sole fact that they're nested types.

Yep, i do see the rogue call but it doesn't affect my output so clearly something a little more subtle going on, let me dig into it. thanks for the real example code to kick around.

Refreshing my memory!  The reason the removal was occurring is that we don't really wanted nested configuration classes listed. That is because the outer may have conditions on that mean we don't want to process the inner. When processing configurations we dive into the inner after successfully handling the outer.
Of course, this was all done before Spring Data was considered. That's why it is breaking down now.
So I've modified it so that the filtering only occurs for configuration classes.
This allows OrderIdentifier through and LineItemIdentifier too:
That's the first part of things.

hey @odrotbohm how can I test this is doing what you need? I think they are no longer discarded - but I can't build restbucks reliably (even without native-image). I can't get a runnable jar (via mvn clean package -DskipTests) and I can't get a docker image via mvn clean spring-boot:build-image - is there something special I have to do?

I think we're fine here. I've upgraded the hacking/native branch to 0.9.2 snapshots of spring-native and the nested classes appear in spring.components. I've got the native image build to complete with that and the bootstrap now failing with some other Hibernate error (#692). Also, I think @christophstrobl's work on the Spring Data REST related hints is much more advanced than what I have thrown together here.
I think we can definitely resolve this ticket here.
Sorry for the confusion about the branches. I guess you have tried the master branch. I only keep it around for reference. Primary develop one main, all tweaks trying to make it work for native is in hacking/native. A flavor of this using Buildpacks in hacking/native-buildpacks.


Can't get a response from the routed web server

I've been trying to get this ingress router set up on my 1.12.3 swarm cluster, and am stuck. I have it set up pretty much according to the example. I have a nginx alpine container set up as in the example named web-test. DNS for it is set up as web-test.example.com via multiple A records pointing at my 3 worker nodes (but not my 3 manager nodes). The router is running on all 6 nodes due to docker bug docker/swarmkit#1570.
I've verified all router nodes can get a proper response from nginx on the web-test container via telnet. I've verified that the redis store has what looks like a legitimate key:
"[{"URL":"web-test:80","DNSName":"web-test.example.com","Secure":false,"ForceTLS":false,"EncodedCert":"","EncodedKey":""}]"
When I hit it from a web browser I get a blank page. When I test via telnet to one of the worker nodes this happens:
MBP:~ dave$ telnet <IP_ADDRESS> 80
Trying <IP_ADDRESS>...
Connected to docker1.example.com.
Escape character is '^]'.
GET / HTTP/1.1
Host: web-test.example.com
< 40 second pause >
HTTP/1.1 200 OK
Server: fasthttp
Date: Sat, 29 Oct 2016 21:04:13 GMT
Content-Length: 0
Meanwhile, this is what shows in the logs of one of the routers:
2016/10/29 20:30:39 Registering service for web-test.example.com
2016/10/29 20:30:39 Routes updated
2016/10/29 20:30:49 Registering service for web-test.example.com
2016/10/29 20:30:49 Routes updated
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:39118 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:36368 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:53796 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:39124 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:36374 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:53802 using host web-test.example.com
2016/10/29 20:30:58 Started GET "/" for <IP_ADDRESS>:39130 using host web-test.example.com
< keeps repeating at a rate of 50-100 per second on random port numbers >
2016/10/29 20:31:37 Started GET "/" for <IP_ADDRESS>:51990 using host web-test.example.com
2016/10/29 20:31:37 Started GET "/" for <IP_ADDRESS>:41190 using host web-test.example.com
2016/10/29 20:31:37 Started GET "/" for <IP_ADDRESS>:54750 using host web-test.example.com
2016/10/29 20:31:39 Registering service for web-test.example.com
2016/10/29 20:31:39 Routes updated
<IP_ADDRESS>, 6 and 7 are the ingress IPs for the 3 worker nodes.
I am stumped. One thing that really puzzles me is that the log messages cycle on the 3 ingress IPs for the worker nodes even when I telnet specifically to one of them, not using the round robin DNS. I'd expect if anything it'd either not cycle, or cycle against all 6 nodes including the managers.
Any help would be much appreciated.
(IPs/host names have been sanitized of course)

At a glance I'm afraid I've got no idea what the issue here is, but I'll try and reproduce when i get time.

Can do. Glad (?) to know it's not something obvious I did wrong.
Is it correct that if I am doing a telnet test to one of the specific node IPs, that I should only see one "Started GET ..." message on one of the ingress IPs, not across all 3?

Yeah the idea is that a request comes into any node in the Swarm (whether or not it is running the router) on port 80 / 443 depending on TLS config, and the request is proxied to the correct service based on the hostname. So each request should only be served by Nginx once from a single container. Docker's internal round robin DNS / floating IPs handles the load balancing between containers.

I'm back to trying to debug this, and for reasons I can't tell, the behavior has changed. It doesn't look like a new version of the image has been pushed up to the hub, but I no longer get the massive log spam when connecting to it. When testing via telnet, I get a message on one of the router nodes (not necessarily the one DNS chose for my telnet client, but I will have to assume that is due to swarm's own ingress routing) along these lines:
2016/11/08 21:21:57 Started GET "/" for <IP_ADDRESS>:51891 using host web-test.example.com
2016/11/08 21:21:57 0.002 #0000000100000001 - <IP_ADDRESS>:8080<-><IP_ADDRESS>:51891 - GET http://web-test.example.com/ - error when proxying the request: dial tcp4 <IP_ADDRESS>:8080: getsockopt: connection refused
<IP_ADDRESS> makes sense, that's the ingress IP for the node. As does the <IP_ADDRESS> address - that's the IP DNS selected for my telnet client, although it is not the IP of the docker node this particular router is running on.
The <IP_ADDRESS> address is what is confusing me - that's the ingress IP for the router that this was logged on. Why would it be trying to connect to 8080 on that container? Shouldn't it be trying to connect to the internal VIP for the web-test service? Which in this case would be <IP_ADDRESS>.
I'm running out of ideas - I've been going through the code, but the way it's acting has me questioning if I even understand how it is supposed to work.

Did you ever get to the bottom of this? I could no reproduce so I'm going to close the issue unless you need more help with it.

Afraid not, I gave up and moved on to a different load balancing (and clustering) solution. I appreciate the help.


Memory leak

I tried to reproduce a C++ code that did motion detection using this package and I have a memory leak that I can't seem to find the source of. I'm not sure if it's from my code or from one of the bindings. Can someone look at my code and help me out with this? If it's not my code, maybe this will help find the possible source in the binding code.
https://gist.github.com/fredcarle/2b73b82ed2657b297824fe55caf94b52#file-motiondetect-go

How do you know there's a memory leak?  I've been running the nifty program for about 10 minutes now and I see no change in my memory usage.

I ran it all night long and accumulated 1GB of ram for that process.

I'll let it keep running and see if I can reproduce that.

It was indeed leaking and I found the source (hopefully it's the only one).
In detectMotion() you get the result's width and height by doing result.GetMat().Cols() and then result.GetMat().Rows().  Each time you do that you are creating a new Mat with the GetMat().  A full copy is made and is never released.
Instead you should simply do result.Width() and result.Height(), which isn't creating anything new.

Makes sense. I'm sad I didn't catch that one by myself. I was definitely skipping over this section thinking everything was OK. Thanks a lot for your help!
Do you think this piece of code could be a good example to add to the samples? Or do you have a better idea of a way to share it to help others?

Sure, I think this would work great as an example.
I do have a few questions about the code:

Why use 3 images (previous, current and next) to test for changes?  Why not do only the current and next frame?
What's the purpose of the Erode?  Simply make any changes smaller?  I guess it would kill any single pixel sized changes?
When you loop through the pixels, why is the increment += 2?    Is it simply to speed up the search?
You have these x and y Start and Stops to define the region of interest.  Why not crop the frame using those values so that your processing is done on only that portion of the image.  If the region of interest becomes small, then changes outside the region will affect the stdDeviation calculation which may not be what you want.  If you intended to keep the region of interest large, over the entire image, then maybe they should be removed from the program to make things simpler.

Also, here are some other suggestions (don't feel like you have to take them):

Have some of the variables controlled by trackbars.  Especially the maxDeviation and the thereIsMotion vars.  That way the user can adjust them while the program is running and see how sensitive the detection becomes.
Another idea would be to have the region of interest (xStart,xStop,yStart, and yStop) also controlled by trackbars, and then draw a different color rectangle showing the area that is under surveillance.  The user could then adjust the detection area after the program has started.
If you want, in detectionMotion(), you could use some of the code I pushed this morning to create a sequence of points for each detected change, and then pass that to BoundingRect() to create the red rectangle.  That way you don't have to keep track of Min and Max values.  This works just fine how it is though.
It would be cool to see the motion image after diffImg() is returned, and also after the final Erode().  You could have a trackbar that goes from 0-2.  If the trackbar is value is 0, then it shows the result image.  If its value is 1, then it shows the motion image after diffImg() returns.  If the value is 2, then it shows the motion image after Erode() returns.  That way the user can immediately see what each operation is doing.

Again, you don't have to do any of these things, I think it would work okay as is.

To answer your questions:

You can find the reason for this in this paper, see section 3.1.1
Thats correct
Exactly. skipping a pixel wont affect the result but will speed up the process
You're right. The way I used it there isn't really useful but my plan is to later make it go around moving trees to avoid false positives. Good idea to trim the image though.

I'll definitely try to implement what you suggested. I'm a bit busy this weekend but I'll send the changes early next week.
Thanks again for your time @kevinabrandon


Package incompatible with Next.JS 13 /app directory

Since Next.JS's new /app directory moves away from built-in i18n support and instead advises to use generateStaticParams and middleware in the app directory, are you planning on adding such a middleware solution to this package? Currently the usage of useRouter crashes the I18nProvder in the new version of Next.JS

Yeah, this library isn't compatible with Next.js 13 inside the app directory. I haven't yet got the time to look into how to properly support it, but it's definitely something that I want to have in the future.

Awesome to hear! Let me know if I can be of any kind of help with implementation 😃

Hey @QuiiBz - it seems NextJS has updated their docs about i18n.
https://beta.nextjs.org/docs/guides/internationalization
They added also some examples - Maybe a good startpoint to make the package Next13 ready?

Thanks for the heads-up! I'll take a look at it this weekend.

Hey @saphewilliam, is it still incompatible? In case so, have you found any solution?

I've just published<EMAIL_ADDRESS>with initial support for the App Router: https://github.com/QuiiBz/next-international/releases/tag/0.5.0
See the documentation here
I'm closing this issue but feel free to open new ones if you find bugs in this new implementation.


Immutable List is really slow on push

https://jsperf.com/native-list-vs-immutable-list

By design, Immutable List is creating a new array for each push, whereas the native push is mutating the existing list. If you want to do multiple mutations in sequence like this, you should batch them. See the "Batching Mutations" section on the homepage -- it has an example of doing exactly this.

Thanks, Actually I figured that immutable is faster than / as quick as  Vanilla JS if u are creating a new array or object. I am happy about immutable now :) http://jsperf.com/immutable-set-vs-native-set-with-lodash-clone/4


Updated TTC4900 Dataset

The source address of the TTC4900 dataset of @savasy has been updated for direct download.
Updated readme.

@lhoestq, lütfen bu PR'ı gözden geçirebilir misiniz?

Thanks ! This looks all good now :)

Thanks


Gaps on the ruler when adding new lines

VSCode Version: 0.10.11 (0.10.11) [f291f4ad600767626b24a4b15816b04bee9a3049]
OS Version: El Capitan 10.11.3 (15D21)

Steps to Reproduce:

Set the editor settings to show ruler (in my case is 80)
Open a new window or file
Try adding a lot of new lines
There is a gap on the ruler

This has been fixed in the meantime.


Fix: Changing footer absolute link to relative link

Fixes # Fix: Changing footer Logo absolute link to relative link
Describe the changes you have made in this PR -
Fix: Changed footer Logo absolute link to relative link
Screenshots of the changes (If any) -

Coverage remained the same at 84.266% when pulling 86eb05c6a6a3daec3eafae81ef0c7b40ddbb4876 on darkshredder:patch-1 into a5d25759e688d138fc473786ec210d9dc99ecba5 on CircuitVerse:master.

@tachyons

@tachyons please merge


docker_test_ml: remove tf1.15 for JP5.1

Add a comment on the line for l4t-tensorflow tf1.15-py3 since this tag does not exist (see https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-tensorflow/tags) for latest r35.2.1 L4T release

Actually I see that it's built at https://github.com/dusty-nv/jetson-containers/commit/e8a04010c5369c5cfd13ebe112b957f2bdfefb28#diff-1387bd5fcae9f168e3852e4ad78f22a58661d594871f81bef70619f5ee673d42R266 just not pushed to https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-tensorflow/tags for some reason.
We use this script to test OE4T implementation with upstream containers, see https://github.com/dusty-nv/jetson-containers/pull/189 - if there was a way we could share logic about which containers ultimately go to ngc and which only support build from dockerfiles this would be ideal.  Let us know if we can help with this.

Hi @dwalkes, we've held off on publishing the TF 1.15 container image for r35.2.1 due to security vulnerabilities in TF 1.x that are only resolved in TF 2.x.  Pull statistics show the majority of users have migrated to the TF 2 version of the container, but those that still need the TF 1.15 container can build it from the dockerfile.  Thanks for the PR!


fluent-bit: 1.0.6

Motivation for this change
adding a package that installs https://fluentbit.io
Things done
created a pkg, and added to all-packages.nix

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

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

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

@GrahamcOfBorg build fluent-bit

@GrahamcOfBorg build fluent-bit

It would be nice if the git history was rewritten here into 2 commits, the first of which adding samrose to the maintainer list, and the second being the rest squashed.


Migrate Violin plot type to react

Violin plot is the next step for migrating the plot app. The complexity comes with implementing the selectors that show at the top of the page. These include the gene selector, study selector, group by dropdown, and scale dropdown. This is explained in some detail here.
There are 3 modes the app can operate in, standalone app, embedded in study page, and embedded in gene page. The selectors behave slightly differently in each case.
standalone app
In this case, there is either nothing in the url (example) or both Study and NCBI_GeneID url parameters are present (example).

All selectors should be available
with no url parameters:

fetch gene selector with no constraints

default to first gene in set returned

fetch study selector info based on gene

All Studies

default group to Anatomical Source (plot-config)

with both parameters

fetch gene selector info based on study

modify gene URL to append NCBI_GeneID
use gene from url as default

fetch study selector info based on gene

modify study URL to append RID
fetch tuple for study from url for rowname info to display

embedded in study page
In this case there is only Study defined in the url (example).

fetch gene selector info based on study

default to first gene in set returned

remove study selector (don't fetch study set)

fetch study info in case it's used in title or other parts of graph

embedded in gene page
In this case there is only Study defined in the url (example).

disable gene selector (don't fetch gene set)

fetch rowname for gene that was selected and display in input
fetch study selector info based on gene

All Studies

default group to Anatomical Source (plot-config)

recordset modal
Both the gene and study selectors should use the recordset modal component from chaise. Here is the component and here is an example of using it.

While implementing the migration to react I've noticed some things about plot-config.js I think that are reasonable to change/cleanup:

Suggestion
Justification

snake_case to camelCase
consistency, readability, brevity

plot_type moved to trace as justtype
same as plotly convention, added support for multiple types in one chart

generalize naming such as gene_uri_pattern to selectorUriPattern
allow any plot to have selector

move and append options for any data relevant to ours e.g. trace: [{ options: {uri 'uristuff', xKey: '#_Released', yKey: 'Data_Type'}, type: 'bar', orientation: 'h' }]
clean differentiation for both users and developers. Easier maintenance: to pass in only plotly related data without changing implementation every time.

unnest config file. e.g. move study-violin contents as the only config
cleaner, modularity, easier for a user of the library, current config file too big, multiple people can work on separate config files without conflict

@hongsudt


Add Quantum Computing

https://github.com/desireevl/awesome-quantum-computing
List on quantum computing resources. QC is a hot topic of interest with wide applications and offers the opportunity to advance fields such as machine learning. As it grows, so does its users who are interested in learning more about it.
The list had a positive response from the community when posted to the quantum sub-Reddit and Facebook group.
By submitting this pull request I confirm I've read and complied with the below requirements.
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.

I have read and understood the contribution guidelines and the instructions for creating a list.
This pull request has a descriptive title.For example, Add Name of List, not Update readme.md or Add awesome list.
The entry in the Awesome list should:

Include a short description about the project/theme of the list. It should not describe the list itself.Example: - [Fish](…) - User-friendly shell., not - [Fish](…) - Resources for Fish..
Be added at the bottom of the appropriate category.

The list I'm submitting complies with these requirements:

Has been around for at least 30 days.That means 30 days from either the first real commit or when it was open-sourced. Whatever is most recent.
It's the result of hard work and the best I could possibly produce.
Non-generated Markdown file in a GitHub repo.
Includes a succinct description of the project/theme at the top of the readme. (Example)
The repo should have awesome-list & awesome as GitHub topics. I encourage you to add more relevant topics.
Not a duplicate.
Only has awesome items. Awesome lists are curations of the best, not everything.
Includes a project logo/illustration whenever possible.

Either fullwidth or placed at the top-right of the readme. (Example)
The image should link to the project website or any relevant website.
The image should be high-DPI. Set it to maximum half the width of the original image.

Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
Includes the Awesome badge.

Should be placed on the right side of the readme heading.
Should link back to this list.

Has a Table of Contents section.

Should be named Contents, not Table of Contents.
Should be the first section in the list.
Should only have one level of sub-lists, preferably none.

Has an appropriate license.

That means something like CC0, not a code licence like MIT, BSD, Apache, etc.
WTFPL and Unlicense are not acceptable licenses.
If you use a license badge, it should be SVG, not PNG.

Has contribution guidelines.

The file should be named contributing.md. Casing is up to you.

Has consistent formatting and proper spelling/grammar.

The link and description are separated by a dash. Example: - [AVA](…) - JavaScript test runner.
The description starts with an uppercase character and ends with a period.
Drop all the A / An prefixes in the descriptions.
Consistent and correct naming. For example, Node.js, not NodeJS or node.js.

Doesn't include a Travis badge.You can still use Travis for list linting, but the badge has no value in the readme.

Go to the top and read it again.

@sindresorhus do you have any feedback on my list? :)

The logo should link to some sort of other website about quantum computing. Like a Wikipedia page or something. What is a MOOC?

MOOC = massively open online course.
On Thu, May 3, 2018 at 2:17 PM, Joshua Bennett<EMAIL_ADDRESS>wrote:

The logo should link to some sort of other website about quantum
computing. Like a Wikipedia page or something. What is a MOOC?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sindresorhus/awesome/pull/1226#issuecomment-386439306,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADEXEraIWKB4hwdfcqB9Mswr9tKyQxrEks5tu3PqgaJpZM4SSHQU
.

--
Gabriel Donnini
E-mail<EMAIL_ADDRESS>Cell:<PHONE_NUMBER>

Ah thank you

Hey, sorry for the lack of response, please see #1363.

Thanks for your response @sindresorhus. I have reviewed #1305 and #1276 :)

Very good list with a lot of potential growth.
All points are cleared except the license that is missing.

@Solido already have a license file but have now added a license section on the readme (y)

❯ awesome-lint https://github.com/desireevl/awesome-quantum-computing
✖ Linting

  README.md:71:3
  ✖  12:1  ToC item "MOOCS" does not match corresponding heading "MOOCs"  remark-lint:awesome/toc
  ✖  71:3  Link to http://www-reynal.ensea.fr/docs/iq/QC10th.pdf is dead  remark-lint:no-dead-urls

  2 errors

https://github.com/sindresorhus/awesome-lint

Can you fix the merge conflict?

Fixed merge conflict and lint errors @sindresorhus. Thanks for your review :)

Includes a succinct description of the project/theme at the top of the readme. (Example)

This should also explain what quantum computing is.

Ping

Hi, sorry I missed one of your comments earlier. Everything should be fixed now

Tweet: https://twitter.com/awesome__re/status/1133955188471914496


feat(deprecated): add requirement of user signature in batcherpaymentservice

This is a first exploration of batcherPaymentService implementation. This PR should probably not be merged, instead, #629 should be merged.
This PR is temporarily left as draft as a helper.

#629 implemented


Fix: Contribution - update

Ok, as discussed I will have a look. Thanks for updating that old file.

Ok for me 🙂


Can't open pock

I downloaded Pock via pock.dev, unzip pock_0_5_2_lack.zip, and double click Pock.app, alert shows "Application Pock can't be opened"
Desktop (please complete the following information):

MACOS 10.14.5

That's strange because I have the same macOS version and I can run it on without issues. 🤔
Could you please provide more information about your setup?

Hi I'm having the same issue as George... I'm using a 2018 Macbook pro 13" and I've tried redownloading it multiple times. I've switched accounts and it works on some accounts but won't open on others. I'm also using macOS 10.14.5 and have downloaded V0.5.3 of Pock. Access has been granted to pock in the system preferences and the touch bar has been set to display app controls. Hope this helps

I'm using 2018 MacBook Pro with 10.14.15 OS.  I've tried redownloading it multiple times. Click on it and it seems to open but does not show up anywhere. The touch bar has been set to display app controls.

It works after I change another unzip tools.


fix(guide): radix sort formatting/inconsistencies

@jonathan-grah Technically, according to the styling guidelines, code sections should use two-space indentation.

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


python38Packages.jupyterlab_server: 2.6.0 -> 2.7.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.jupyterlab_server is: "JupyterLab Server"
meta.homepage for python38Packages.jupyterlab_server is: "https://jupyter.org"
meta.changelog for python38Packages.jupyterlab_server is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.7.0 with grep in /nix/store/m1xy9b41i83mzcbpc5s1scp5dhj7gkdv-python3.8-jupyterlab_server-2.7.0

found 2.7.0 in filename of file in /nix/store/m1xy9b41i83mzcbpc5s1scp5dhj7gkdv-python3.8-jupyterlab_server-2.7.0

directory tree listing: https://gist.github.com/49a550834c3bbdde2be899f299057bfc

du listing: https://gist.github.com/92a9e935b9d231cc2d787b0bcabc414b

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

24 total rebuild path(s)

6 package rebuild(s)

6 x86_64-linux rebuild(s)
6 i686-linux rebuild(s)
6 x86_64-darwin rebuild(s)
6 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.jupyterlab
python38Packages.jupyterlab_server
python38Packages.jupytext
python39Packages.jupyterlab
python39Packages.jupyterlab_server
python39Packages.jupytext

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/m1xy9b41i83mzcbpc5s1scp5dhj7gkdv-python3.8-jupyterlab_server-2.7.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/m1xy9b41i83mzcbpc5s1scp5dhj7gkdv-python3.8-jupyterlab_server-2.7.0
ls -la /nix/store/m1xy9b41i83mzcbpc5s1scp5dhj7gkdv-python3.8-jupyterlab_server-2.7.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @costrouc for testing.

Result of nixpkgs-review pr 133862 at 68e98baa run on x86_64-linux 1

6 packages failed to build:

python38Packages.jupyterlab
python38Packages.jupyterlab_server
python38Packages.jupytext
python39Packages.jupyterlab
python39Packages.jupyterlab_server
python39Packages.jupytext

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


convolution-input-gradient-overfeat-test failed on arm64

convolution-input-gradient-overfeat-test  failed on arm64
TEST(FT16x16, conv2) {
OverFeat_Fast::conv2()
.batchSize(128)
.errorLimit(1.0e-5)
.testInputGradient(nnp_convolution_algorithm_ft16x16);
}
[----------] 4 tests from FT16x16
[ RUN      ] FT16x16.conv2
/home/taishan/master/NNPACK/test/testers/convolution.h:316: Failure
Expected: (median(maxErrors)) < (errorLimit()), actual: 1.11966e-05 vs 1e-05
[  FAILED  ] FT16x16.conv2 (10959 ms)
[ RUN      ] FT16x16.conv3
[       OK ] FT16x16.conv3 (10753 ms)
[ RUN      ] FT16x16.conv4

@Maratyszcza could you please help to investigate this issue?

The error is just above the limit, looks like the error tolerance is just too low in the test


update exchange rate FAQ

https://github.com/zkSNACKs/WalletWasabi/pull/13028
https://docs.wasabiwallet.io/FAQ/FAQ-UseWasabi.html#where-does-the-btc-exchange-rate-come-from

#1771 was reverted because https://github.com/WalletWasabi/WasabiDoc/pull/1771#issuecomment-2212049203


Fake Identity Page: Language & About do not show

Summary
Using the "About" and "🇬🇧 English" buttons on the following page don't result in showing the about section nor the translation dropdowns (as shown on the homepage): http://justdelete.me/fake-identity-generator/

This still appears to be a bug? 😕


Send branch to cloudflare so merge to master deploys to prod

Change-type: patch

@balena-ci rebase

Thanks for getting this through @anujdeshpande, This PR is blocking docs deployments for several repos.
IMHO if @ab77's comment is not critical then let's dismiss the review and get this merged.


add cpr

https://github.com/whoshuu/cpr
requires a fork

requires a fork

Done: https://github.com/hunter-packages/cpr


Change the sudo command to publish

Change the sudo command from yarn install to npm publish.

coverage: 100.0%. remained the same
when pulling fde1e62672136152ae5348d8c01abc4f5e62827c on change_sudo_to_publish
into e93beabe659f43ab0dba0e4e83273d5a7d630cea on master.


Does it support iOS and Android?

Hello, I am going to develop a Flutter APP and I will need to use TdLib, does this plugin support Android and iOS now?

how to use it in Flutter？

Hi, IOS support is off the table for now!
Take a look at /example to see the laziest example ever (simple usage case!)


Description updates

Also bumps go-template-utils to pick up the description updates for the template-resolver.
ref: https://issues.redhat.com/browse/ACM-14630

/cc @dockerymick @drkho


Fix bug with misprint of "project" variable in update method of CLI

Add test for this case

Thanks for his @vovanbo!


Allow for custom stringifier

Based on the results (and looking at the code here and here it looks like the native JSON.stringify is used to serialize the transmission, and then naturally the native JSON.parse is used to deserialize the message. My question is ... would it be possible to provide custom replacer / reviver methods, so that we can pass forms of data not traditionally supported by JSON.stringify? A simple example would be Map or Set, which most browsers do not support stringifying natively (even though it is part of the spec), and only recently did core-js do a polyfill for it.
Something like this should be relatively straightforward to apply, just providing a couple of new options that would default to undefined so as not to break the existing functionality, and then passing those options to the calls of JSON.stringify and JSON.parse. What do you think?

Hey @planttheidea
It makes sense to me. If you can help in contributing the feature, it would be appreciated.
Thanks


defaults property missing from Axios

I just added Flow to a module that uses transformResponse in the config and noticed I get the error property `defaults`. Property not found in Axios. Being new to Flow, I modified the definition to include defaults: Object; and was able to continue with no errors, but I'm concerned this may not be preferred. Since AxiosXHRConfig is a generic interface, I wasn't sure if it was possible to get the type inside the non-generic Axios class.

How does your module interact with the axios node_module? How do you import it?

import axios from 'axios';

I just installed the v0.15.x libdef and wrote following program:
import axios from 'axios';

const a = axios({
  url: 'foo',
  transformResponse: [function (data) {
    // Do whatever you want to transform the data

    return data;
  }]
});

It does typecheck for me... which flow version & axios libdef version did you use?

Sorry, I should have included more about the usage in my last reply. The error I see appears when using axios like the following:
constructor() {
  this.api = axios.create({
    baseURL: '/api/v1/applications',
  });
}

getKeys(id: string) {
  const config = {
    transformResponse: this.api.defaults.transformResponse.concat(getEnhancedKeys),
  };
  // ...
}

Oh yeah, that makes sense... so you would probably need to add a defaults property to the Axis class definition as well... since AxisConfig has transformResponse as optional, you will probably also need to null check first in this case (which makes sense)...

Closing as the latest def has defaults on the constructor.


Add delta lake integration docs

closes #1910

incorporated Oz's suggestions and re-wrote a little. Hope this is an improvement!


Failed to activate the ruby-string-interpolation package

[Enter steps to reproduce below:]

Within ""
pressing alt+3 to insert a # causes the issue and from there not able to insert a # when editing any document.

Atom Version: 0.207.0
System: Mac OS X 10.10.3
Thrown From: ruby-string-interpolation package, v0.1.8
Stack Trace
Failed to activate the ruby-string-interpolation package
At Cannot read property 'command' of undefined

TypeError: Cannot read property 'command' of undefined
  at Object.module.exports.activate (/Users/sduke/.atom/packages/ruby-string-interpolation/lib/ruby-string-interpolation.coffee:6:23)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:238:19)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:770:25
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:219:20)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)

Commands
     -0:00.7.0 ruby-string-interpolation:insert (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "metrics"
    ],
    "projectHome": "/Users/sduke/repos/lcn/"
  }
}

Installed Packages
# User
linter, v0.12.6
regex-railroad-diagram, v0.7.4
ruby-define-method, v0.2.1
ruby-string-interpolation, v0.1.8

# Dev
No dev packages

+1 same issue here

+1 same here, couldn't type a # at all because of the error, As above though I've removed the package with no ill effects, so I guess it's unnecessary.

I'm also experiencing this issue.
I literally can't type a # sign when I press Shift - 3.

+1 for this issue too.

To "fix" the error, i fork the project and create a new package for atom.
This one includes the waiting PR for the keymap deprecated error too. I fix some other deprecate (menus, ...)
https://atom.io/packages/ruby-string-interpolation-atom-1


Have "Run Selection/Line in Python terminal" work with "Start REPL"

Discussed in https://github.com/microsoft/vscode-python/discussions/22227

Originally posted by cbrnr October 16, 2023
With the new smart Shift+Enter feature, it is now very convenient to run a line (or a selection of lines) of code in the interactive interpreter. After hitting Shift+Enter (or selecting "Run Selection/Line in Python terminal"), a new terminal titled "Python" opens with the interactive interpreter, which accepts intput from this command.
However, I was wondering if I can manually start this terminal (i.e., the Python one, which is connected to the "Run Selection/Line in Python terminal" action). I found the "Python: Start REPL" action, which launches the interactive interpreter, but this terminal does not accept input from Shift+Enter.
Would it be possible to unify these two ways of starting the interactive Python interpreter and/or running code? Or maybe let users decide to which terminal they want to send their Shift+Enter commands? This would be very convenient, because right now the only way to kickstart the interpreter for sending commands is to actually send the first line of code.

Verification step:

Please download latest pre-release version of the Python extension
In Python file of your choice, Shift+enter or chose Run/Selection/Line in Python Terminal to send your Python command to Python Terminal REPL
Open command palette and trigger Start Terminal REPL
Observe that additional Python Terminal REPL is NOT created
Try in reverse order (Start Terminal REPL first), and observe additional REPL is not created.

@eleanorjboyd could you to toggle off switch in setting to not send to native REPL? Try shift+enter and the command 'Start Terminal REPL' then.

On Windows 11, no matter what value I use for python.REPL.sendToNativeREPL, I notice that Start Terminal REPL always creates a terminal REPL and that Shift+enter on a line always seems to send it to the Interactive Window. Therefore, steps 4 and 5 both fail.

Had discussion with @rzhao271 Essentially shift+enter was opening Interactive Window provided by Jupyter (with conda environment in his case), not the new Python REPL because of the setting
 was enabled. In this case, shift+enter would always send things to Interactive Window instance provided by Jupyter.

Should this be live?
It is not working for me.
I tried with version 2024.10.0 and with pre-release 2024.11 and I still see the same behaviour that @eleanorjboyd posted.
Shift + Enter opens the new Python REPL but the "Python: Start Terminal REPL" command still opens the terminal window.
I tried toggling the "Send to native REPL" option on and off, and i have Jupyter disabled. In fact, I don't even have the Jupyter extension installed.

@maflAT yes, it should be in the latest release.

@anthonykim1 I reopened the issue to see if this is still an issue.

Hi @maflAT
correct, so when you run "Python: Start Terminal REPL", it SHOULD open the terminal window regardless of your settings enabled for native REPL.
We have renamed the previously "Python: Start REPL" into "Python: Start Terminal REPL" and plan to add "Python: Start Native REPL" for the new REPL itself.
I believe everything is as expected if I didn't miss anything, but feel free to ping me again. Terminal REPL refers to the traditional ">>>" REPL you would get in the bottom of the VS Code editor.
Shift+enter will bind send commands either ONE of the Terminal REPL or the Native REPL depending on your setting. (Please  make sure to check both the user and workspace setting for this).
You should be able to trigger Terminal REPL from the command palette regardless of this setting, but currently no way to trigger Start Native REPL without enabling setting and manually shift+enter on a Python file (this will come soon!)
Jupyter should not be involved in either of these scenario, so I'm bit lost on the context there. It should say "Python REPL" on the top right hand side of the editor if the native REPL gets launched.

Oh, I see. I misunderstood then.
I thought there should already be a command for the new REPL.

@maflAT Great, yes not at the moment but this should be coming soon! - thanks for your feedback. Will let you know when we push this out so you can give it a try.


Timeout settings not being respected

I am using flexirest to issue rest calls from inside the worker thread created by sneakers:run.
I added debugging puts statements to the connection.rb class (in the post method) and can verify that my connection timeout setting is 60 seconds, but when I execute the code I am seeing it timeout in less than 2.
Something about how flexirest is running when inside the sneakers thread is making the timeout settings be ignored, or at least that the best I can tell. I have verfiied that it's a Flexirest::Timeoutexecption that is being returned from the call.
I know this is a weird setup, and it's possible that the sneakers side is really the problem, but I have exhausted my debugging ability trying to track this down.

Sorry to pass you around, but if timeouts work in normal code, we do nothing different if it's being done in a Thread.  We use Faraday to set the timeouts, so if it's not working I'd recommend raising it up to them. Sorry I can't help you more.


Add support for quarter frame MTC.

Previously, we have not supported quarter frame MTC messages.  We have discussed adding support as part of #7, if feasible.

I may leave a series of TODO messages linking to this, depending on how the MIDI file player work goes.


dir auto added to view-line children spans

This PR fixes #137036
Hi! I'm solving this issue as a good-first-issue. If you think anything is wrong please help me to solve it. :)
I explained about change in the code here in this comment.

Thank you for your suggestion, but unfortunately this proposed change doesn't appear to have any effect on the rendering of text from https://github.com/microsoft/vscode/issues/137036


tensorflow version

is there any tensorflow version of this code?
what kind of change i have to make i i want to write this code in tensorflow not in pytorch?

Hi @afmsaif ,
I don't have any tensorflow implementation of this code.
Obviously, if you want to convert it to TensorFlow code, then you need to understand PyTorch first.


Help text should consistently refer to an "API token"

GLPI lets me generate two different tokens, a "Personal token" and an "API token"
The README.md mentions an API token, but the help text in the scripts should make it clear which kind of token it's expecting.

https://github.com/redhat-eets/glpi-helper-scripts/pull/34


Record Id improvements

Improve the parsing of different record id structures. Should cover all different valid structures and return a RecordId

@hammo92 can you fix the lint issues to make the pipeline green?

Will do, need to make a couple of changes to use the StringRecordId for string parsing instead, transforming to RecordId doesn't work well with array or object ids when they've been stringified


.subject  executes without being called if there is a .subject! in upper context

As you can see the subject(:a) is not executed at all while the subject(:b) is executed. before(:each) does not affect the result but it shows that subject(b) is executed first anyway.
# rspec -v
# 3.4.4
# rspec --init

# spec/test_spec.rb
require 'spec_helper'

RSpec.describe do
  subject!(:a) do
    puts 'subject!'
  end

  context 'context 2' do
    before(:each) do
      puts 'before'
    end

    subject(:b) do
      puts 'usual subject'
    end

    it '' do
    end
  end
end

# usual subject
# before
# .
#
# Finished in 0.00048 seconds (files took 0.06446 seconds to load)
# 1 example, 0 failures

I got rspec 3.4.4 from rubygems which seems to be the latest one there. What version should I use instead?

This is not a bug.  This is subject! working as it is designed to work.  Specifically it:

Declares a subject
Tells RSpec to call subject in a before hook.

Then you redefine subject in the nested context -- but it does not change the fact that you told RSpec to call subject in a before hook.
In general, I recommend avoiding subject!.  It exists for API consistency/parity with let/let! but I don't think I've ever seen a good use case, to be honest.  (And I personally avoid let!, too).


ModuleNotFoundError: No module named 'jose' while mocking cognito_idp

python-jose package dependency not included for models.py
First of all this is my first issue so forgive me if it doesn't match your contributing guidelines.
What happened:
I am getting a ModuleNotFound Error after importing
from moto import mock_s3, mock_cognitoidp

and putting
@mock_cognitoidp
class TestMain(TestCase):

above my testcase.
Traceback:
ImportError: Failed to import test module: test_main
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "<PATH_TO_DIR>/tests/test_main.py", line 19, in <module>
    class TestMain(TestCase):
  File "<PATH_TO_DIR>/.env/lib/python3.10/site-packages/moto/__init__.py", line 30, in f
    module = importlib.import_module(module_name, "moto")
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<PATH_TO_DIR>/.env/lib/python3.10/site-packages/moto/cognitoidp/__init__.py", line 1, in <module>
    from .models import cognitoidp_backends
  File <PATH_TO_DIR>/.env/lib/python3.10/site-packages/moto/cognitoidp/models.py", line 10, in <module>
    from jose import jws
ModuleNotFoundError: No module named 'jose'

What did I expect to happen:
I expected this dependency to already get installed while installing the moto library and using mock_cognitoidp.
Fix
Quickfix:
I installed python-jose additionally and then it worked, which suggests that it was just forgotten as a dependency for mocks.
General fix
From what I saw, the problem lies in the import in this file.
Maybe the problem is, that in setup.py in line 84, all services which start with "mock_" are not assigned any extra dependencies, while "mock_cognito" would actually require _dep_python_jose.
I am not sure if this exactly is where the problem lays. I hope I provided all the needed information and helps solving the issue. Let me know if you need more info.
Additional information:
Python version:  Python 3.10.4 (tried with python 3.9 and had same problem)
pip version: pip 22.0.4
boto3==1.23.1
botocore==1.26.1
moto==3.1.9
and during my quickfix I installed:
python-jose==3.3.0

Hi @maharajamihir, in order to reduce the number of dependencies, we require users to specify which services they use on installation.
If you only use CognitoIDP and S3, you can install Moto like this:
pip install moto[cognitoidp,s3]
This will install all required dependencies for Cognito and S3 (such as python-jose), but skips other dependencies required for other services.
Note that if you have many services,, or if limiting the dependencies is not a concern, you can simply install dependencies for all services:
pip install moto[all]

Alright thanks!


teleport an element from outside of VUE instead of v-html

What problem does this feature solve?
Can we teleport an element from outside of VUE and use it instead of v-html? I am trying to create a solution for javascript disabled situations for PWA. I need a solution to prevent duplicate content for first loading of the page. Kinda partial hydration, I think..
What does the proposed API look like?
No idea

Can you provide a little more context? I don't see any connection between Teleport and v-html, so I don't really get what you are asking for.

PWA is a nice thing to have. Main problem of PWA is; it is basically useless in javascript disabled situations, Open Graph support and SEO.. even with crawler bots' effort. SSR and SSG are current solutions but what if we don't use node.js server or static content? apache/nginx CMS systems are pretty common thing.
From my perspective;
apache/nginx CMS can send first page's main content and after first page load, vue-router can handle the rest of routing. I know this isn't perfect functionality for most of cases but for me, it is enough to support all problems above.
Let me give an example of what is going on in my project;
This is my page's main content inside vue:

Content is coming from CMS so it is sanitized. What I am doing right now;
 This is my example content.

Sending content to outside of app's mounted element and deleting it with javascript. If javascript is disabled, it doesn't get deleted and PWA is not working so content is available for user.
I tried using this content instead of v-html for first page load with if (null !== $router.options.history.state.back) {} but because of vue's internal system, it couldn't change page content because it was not rendered, I think. I am thinking I need some kind of hydration solution here.


Update Dependencies based on Security Issues

Summary of Changes
Updated various dependencies and fixed various incompatibilities that arose

Removed usages of getDerivedStateFromProps because it was wrong
Moved curated tags generation into reducer/saga from component

Tests
What tests did you add or modify and why? If no tests were added or modified, explain why. Remove this line
Documentation
What documentation did you add or modify and why? Add any relevant links then remove this line
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes, including screenshots of any UI changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public python functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes all tests documented in the developer guide

Codecov Report

Merging #354 into master will increase coverage by 0.2%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master     #354     +/-   ##
=========================================
+ Coverage   76.29%   76.49%   +0.2%
=========================================
  Files         163       26    -137
  Lines        4083     1187   -2896
  Branches      516      109    -407
=========================================
- Hits         3115      908   -2207
+ Misses        931      250    -681
+ Partials       37       29      -8

Impacted Files
Coverage Δ

...ication/static/js/components/common/Tabs/index.tsx

...ndsen_application/static/js/ducks/search/api/v0.ts

...ion/static/js/components/PreferencesPage/index.tsx

...tic/js/components/common/EditableText/constants.ts

...ication/static/js/components/common/Flag/index.tsx

...ts/common/ResourceListItem/TableListItem/index.tsx

.../js/components/TableDetail/FrequentUsers/index.tsx

...tatic/js/components/common/ScrollTracker/index.tsx

...pplication/static/js/ducks/popularTables/api/v0.ts

.../js/components/TableDetail/ExploreButton/index.tsx

... and 120 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a643fc...8dd11b8. Read the comment docs.

as long as it works for FE staging, I am ok.


Added Slider to the CircleGraph preview

The user can interact with the CircleGraph in the preview

All good! And its well isolated in the preview!
Btw, are you able to merge yourself once i approve? I don`t want to take out the satisfaction out of merging and deleting branches from you 😆

No, I don't have write access 😁

Roger that, will give that access now, and will try to setup that we are unable to merge until its approved. So in that case, whenever approval is there, feel free to merge :)
Who knows, in time i might add some tests and other bells and whistles 👍

Great! Thanks 👍

Do you have any preferred merge strategy?

Not really, no...to be honest i never considered it for this project as i thought it would be kind of a slow repo and mostly personal. 😅
I love "three flow" the most. Open to suggestions.
Basically MAIN - CANDIDATE - RELEASE or whatever naming we end up with


[Question] will desktop support be added again?

Basically, what the title says. The old repo had desktop support and it has been removed in this repo. Are there plans for supporting desktop platforms again?

Hey. I'd like to at some point, but it isn't on the roadmap for now. First goal was to get things modernized and I'm going to start on additional samples soon.

Thank you for the quick reply.
That's quite sad to hear as my desktop app relies on TF Lite, then gonna stick with the old repo for now.
Is there a specific reason why it has been removed as it was working as intended?

Mainly because it was only working in kind of limited cases, and the API (2.2 I think?) was really far behind.  From what I could tell with the older repo, desktop support was the last thing to be added in one update, so was still sort of an alpha feature.

I am not sure which limitations you are talking about as I did never see difference between mobile and desktop. But this can also be due to me not using much of TF Lite just some Conv Nets.
However, when I build a TF Lite binary with CMake I didn't encounter problems with any TF Lite version (ex.: 2.5) as the plugin just loads the dynamic library. Except on Linux, there was a PR that does things differently.
Could you maybe somewhere write down the current roadmap? Would be quite interesting to see and maybe also motivate some community contributions.

Honest answer is there isn't really a current roadmap :p
I started getting this plugin back under regular maintenance because I think it's important and shouldn't just sit idle for a few years, but eng/product want to see adoption and results before investing from their teams (I'm in ML DevRel, so a separate area). Next month (during I/O Connect in Amsterdam) I'm talking with someone who works with the FlutterFire team to see how they do their support and feature development now that this has been getting some legs. Other than that, this is still a very-much community pushed project, but I'll try to get a list of things together for it.
Now that we're on 2.12, acceleration service and delegates are going to be the next big focus for features I think. I'll talk to product when they're ready to see what priorities should be from there as I ramp up on how this all works under the hood.

What would be the requirements for a desktop implementation? Depending on how difficult they are, I could invest some work into it.

I think the biggest thing is thorough testing. Desktop for mac requires Intel based, M1, and M2 testing. I'm not 100% on if it works for Windows (I haven't actually worked with Flutter for Desktop yet), but that could also require some setup and testing. I'd say basically making sure all of the existing samples work would be a solid starting point, then documenting the edge cases where things fall apart.

I can give it a shot in the coming days. I can try it on Windows and M1 Mac.
I guess to to follow the same approach as on mobile, using pre-built binaries would be preffered. Is there a repo (or something) with desktop TF Lite binaries?

Oh no. Yeah I honestly don't know - let me ping some iOS folks to see what they think. My guess is you're going to run into the same issue with style transfer and super resolution, as well, since they also access the library gallery and camera.

Might also be a good StackOverflow question since it's less TFLite related and more platform in general.

My guess is you're going to run into the same issue with style transfer and super resolution, as well, since they also access the library gallery and camera.

The app actually compiles fine and there happens a runtime exception when pressing the button. I can adapt the examples to use file picker. Then it can be tested on Desktop.

Might also be a good StackOverflow question since it's less TFLite related and more platform in general.

To be honest, there are already a lot of question on SO about this (some indicator that it's not that easy). I tried a few with no success, would really appreciate some guidance on this as I have nearly no experience in this regard. Windows and Linux should be much easier for me as they use CMake.

Might also be a good StackOverflow question since it's less TFLite related and more platform in general.

To be honest, there are already a lot of question on SO about this (some indicator that it's not that obvious how to do it). I tried a few with no success, would really appreciate some guidance on this as I have nearly no experience in this regard. Windows and Linux should be much easier for me as they use CMake.

Has there been any progress?

@allyssonmast see here

Going to close this since you've done the work for MacOS and know what's going on :)


Cannot read property 'on' of undefined  when a task belong to a series task group

Two tasks and group them using  gulp.series
var gulp = require('gulp');
var del = require('del');
var sourcemaps = require('gulp-sourcemaps');
var sass = require('gulp-sass');

function clean() {
    return del([
        'public/css/app.css',
    ]);
}

function sass_ferry() {
    returnn  gulp.src('./resources/assets/sass/ferry.scss')
        .pipe(sourcemaps.init())
        .pipe(sass())
        .pipe(sourcemaps.write('../../../public/css/map', {addComment: false}))
        .pipe(gulp.dest('./resources/views/css'));
}

// group theses two tasks
var sass = gulp.series(clean, sass_ferry);

exports.sass_ferry = sass_ferry;
exports.sass = sass;

run gulp sass_ferry, and I found that task clean  also start
[16:39:58] Using gulpfile /vagrant/www/zc/gulpfile.js
[16:39:58] Starting 'sass_ferry'...
[16:39:58] Starting 'clean'...
[16:39:58] 'sass_ferry' errored after 22 ms
[16:39:58] TypeError: Cannot read property 'on' of undefined
    at sass_ferry (/vagrant/www/zc/gulpfile.js:261:92)
    at taskWrapper (/vagrant/www/zc/node_modules/undertaker/lib/set-task.js:13:15)
    at bound (domain.js:301:14)
    at runBound (domain.js:314:12)
    at asyncRunner (/vagrant/www/zc/node_modules/async-done/index.js:55:18)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[16:39:58] The following tasks did not complete: clean
[16:39:58] Did you forget to signal async completion?

If I del var sass = gulp.series(clean, sass_ferry);  ,  this error disappear.
It seamed that task sass_ferry and clean are binded together.
What version of gulp are you using?
4.0
What versions of npm and node are you using?
8.10.0
5.6.0

This is not a support forum. Please direct support questions to StackOverflow.


Compile flags not correctly extracted from target

I have a library that uses SSE4.1 and is included as a dependency in my application. I use modern CMake with targets and try to improve build speed with cotire. The library has exported its compile flags with target_compile_options(lib PUBLIC -msse4.1) and the dependency between both targets is set with target_link_libraries(app lib).
The problem is, when using the precompiled headers in the application, the compiler complains that the -msse4.1 flag has not been set when creating them. For single files however, the compile option is set correctly. Here is the relevant build output:
[ 75%] Generating CXX prefix header app/cotire/app_CXX_prefix.hxx
/usr/bin/cmake -DCOTIRE_BUILD_TYPE:STRING= -DCOTIRE_VERBOSE:BOOL=1 -P /home/fschoenm/devel/cotire-bug/cotire.cmake combine /home/fschoenm/devel/cotire-bug/build/app/app_CXX_cotire.cmake /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.cxx
#ifdef __cplusplus
#include "/home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.cxx"
#endif

[ 83%] Building CXX precompiled header app/cotire/app_CXX_prefix.hxx.gch
cd /home/fschoenm/devel/cotire-bug/app && /usr/bin/cmake -DCOTIRE_BUILD_TYPE:STRING= -DCOTIRE_VERBOSE:BOOL=1 -P /home/fschoenm/devel/cotire-bug/cotire.cmake precompile /home/fschoenm/devel/cotire-bug/build/app/app_CXX_cotire.cmake /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx.gch app.cpp
-- execute_process: /usr/bin/c++;-x;c++-header;-c;/home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx;-o;/home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx.gch
cd /home/fschoenm/devel/cotire-bug/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/fschoenm/devel/cotire-bug /home/fschoenm/devel/cotire-bug/app /home/fschoenm/devel/cotire-bug/build /home/fschoenm/devel/cotire-bug/build/app /home/fschoenm/devel/cotire-bug/build/app/CMakeFiles/app.dir/DependInfo.cmake --color=
Dependee "/home/fschoenm/devel/cotire-bug/build/app/CMakeFiles/app.dir/DependInfo.cmake" is newer than depender "/home/fschoenm/devel/cotire-bug/build/app/CMakeFiles/app.dir/depend.internal".
Dependee "/home/fschoenm/devel/cotire-bug/build/app/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/fschoenm/devel/cotire-bug/build/app/CMakeFiles/app.dir/depend.internal".
Scanning dependencies of target app
make[2]: Leaving directory '/home/fschoenm/devel/cotire-bug/build'
make -f app/CMakeFiles/app.dir/build.make app/CMakeFiles/app.dir/build
make[2]: Entering directory '/home/fschoenm/devel/cotire-bug/build'
[ 91%] Building CXX object app/CMakeFiles/app.dir/app.cpp.o
cd /home/fschoenm/devel/cotire-bug/build/app && /usr/bin/c++    -Winvalid-pch -include /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx -msse4.1 -o CMakeFiles/app.dir/app.cpp.o -c /home/fschoenm/devel/cotire-bug/app/app.cpp
cc1plus: warning: /home/fschoenm/devel/cotire-bug/build/app/cotire/app_CXX_prefix.hxx.gch: created and used with differing settings of '-mno-sse4'

It seems as if the compile flags for the precompiled header are not correctly extracted from the target (in this case app).
I attached a small sample project that shows the behavior. Call CMake with the following arguments to force generation of precompiled headers: cmake -D COTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=1 ..
cotire-bug.tar.gz

#159

Hit this issue too, in my case caused by including OpenCV and PointCloudLibrary