mpv-unwrapped: 0.34.1 -> 0.35.0

./result/bin/mpv https://www.youtube.com/watch?v=dQw4w9WgXcQ works
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Can't request a review from @adisbladis, then so be it.

https://github.com/mpv-player/mpv/releases/tag/v0.35.0

We probably want to migrate to meson
We definiately want pipewire support on linux

./result/bin/mpv https://www.youtube.com/watch?v=dQw4w9WgXcQ works

nice

We probably want to migrate to meson
We definitely want to support pipewire on linux

very agreed on both accounts

We probably want to migrate to meson

Yes, I want it!

We definitely want pipewire support on linux

Good.

Motivated me enough to get #200922 going.

We definitely want pipewire support on linux

Totally missed that because my brain ignored everything that looked like git log.

We probably want to migrate to meson

I can give it a try but if it is buggy then I'll leave the fixing to someone else.

@ofborg build mpv-unwrapped mpv

Aaaaand... Darwin blows up again
https://logs.nix.ci/?key=nixos/nixpkgs.200914&attempt_id=ce2e3323-3003-4ddc-96f1-cec2ab675e41

I suggest to split this commit into two: the one updating version and hash, and the next updating the build system. After all, the thing still builds with waf.

Took a look at this, needs xcodebuild for Darwin but seems to then require Swift as well and that's not packaged for Darwin yet, which turns this into a bit of a blocker : / Being worked on in #189977 though \o/

FWIW: mpv-player/mpv#10859
Seems to require an unconventional setup to actually trigger but it's probably worth waiting a bit to see where this goes.

I took the liberty of fixing up this PR:

Commits are split into two, one for the version bump and another for the meson changes
We could drop the meson changes from this PR and deal with meson in a follow-up PR if it's a blocker on darwin.
dvdbinSupport is a typo, it should be dvbinSupport
pipewireSupport shouldn't be guarded by config.pulseaudio, just check stdenv.isLinux instead.
Used the mesonFeatureFlag implementation from @AndersonTorres as it's more readable.
Removed the top-level with lib; statement as it breaks static analysis.

IMO this should also not be backported to stable; too much room for breakage.

I'm generally in favour of using meson over legacy build systems but it seems that must wait until we support its dependencies on Darwin in this case.

Seems like a nice idea after all!

The whole idea was to recognize the release notes when doing updates. There was no indication that darwin would break in a non-fixable way.

Lets see how happy fruit corp is with just the version bump #201367

Nice idea implemented. Thanks you all!

No, it isn't. The meson change is still open and now I must open a new PR because I force pushed the closed PR.

Yes it is. Now we can focus on making meson work, while the end users can use mpv on Darwin.
Looks like an absolute win to me.

My plan was to repurpose this PR to keep the feedback on the meson switch since it is not as trivial as first thought.


MINOR: fully encapsulate user restore listener in the DelegatingRestoreListener

Minor cleanup to make it easier to follow the restore listener logic. Currently, the KafkaStreams class tracks two restore listener  fields: there is a non-final, nullable "globalRestoreListener" that holds the restore listener specified by the user (if any), and then there is a final "delegatingRestoreListener" that's used to encapsulate the null checks for the user-specified restore listener. It's a bit confusing to follow along with what each of these restore listener fields is doing and the relationship between them when they're on equal footing like this, when in reality they're more hierarchical and the DelegatingRestoreListener is actually a wrapper over the user-specified globalRestoreListener. The term "global" is also a bit misleading as it can get mixed up with global state stores, when it's really meant to be "global" in the sense that it applies to all state stores in the application.
It would be nice to just move the user listener completely inside the DelegatingRestoreListener class and then make that class static, as well as renaming the field to "userRestoreListener"

Lots of test failures, but all are unrelated


Clean implementation with app

Slightly rewritten native code
Automatic JNI interface generation
OpenCV is now automaticly downloaded through CMake

Linting of the native part is failing but it is fine for now.

Image of the depth map seems to differ from the first implementation -- I'll look into it.

Merging to dev


Timeout value in run-test-suite-test262.sh

I found that with no timeout, Jerry passes a few more cases than with timeout.
Currently Timeout is 5s, but some cases take way longer than 5s but it passes.
I think we should increase timeout value or get rid of timeout.
Here are some of the tests that take long but pass.

ch15/15.10/15.10.2/<IP_ADDRESS>/S<IP_ADDRESS>_A1_T1
ch15/15.10/15.10.2/<IP_ADDRESS>/S<IP_ADDRESS>_A2_T1

@wateret, if it is still an issue on the current master, then please create a PR with an appropriate timeout value.

Invalid now.


ImageNet expected speed on Pascal GPUs with resnet-50?

Hi All,
Wondering if any body knows the expected rate with resnet-50 for imagenet on Pascal GPUs. I am debugging a problem (most likely an I/O issue) but knowing in what range will it be can help me,
(bs=128). Even a single node or single GPU rate would also help,
thanks

http://mxnet.io/how_to/perf.html#nvidia-gpu

Thanks..I think I am getting very close to the 32 batch for P100 number now. I am planning to launch a large scale run. May be I will open another issue for that.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


UnhandledPromiseRejectionWarning: Error: Forbidden

Issue Summary
I'm relatively new to using sendgrid with node.js, and wanted to check it out. I followed all the instructions provided on https://app.sendgrid.com/guide/integrate/langs/nodejs. I even tried to replacing the "to" and "from" properties of "msg" with my own email id, and got the same error as the result.
Steps to Reproduce
1.Created a new account and generated API Key over at https://app.sendgrid.com/guide/integrate/langs/nodejs
2.Followed steps 2,3,4
3..Tried to implement step 5, and the below mentioned error was encountered
4..In order to get the log of the error, I set up a try-catch statement to work as a promise handler which would output the error 5.log, if there was an error.
Code Snippet
const sgMail = require('@sendgrid/mail')
sgMail.setApiKey("xxxxxxxxx-xxx-xxxxx");

//routes
app.use('/', indexRouter);

//contact form
app.post('/send', (req,res)=>{
  const msg = {
    to<EMAIL_ADDRESS>    from<EMAIL_ADDRESS>    subject: 'Sending with SendGrid is Fun',
    text: 'and easy to do anywhere, even with Node.js',
    html: 'and easy to do anywhere, even with Node.js',
  }

 sgMail. send(msg);
});

Exception/Log
# paste exception/log here
(node:8248) UnhandledPromiseRejectionWarning: Error: Forbidden
    at C:\Users\Derry-uk\Desktop\work space\projects\01 portfolio website\v1\node_modules\@sendgrid\client\src\classes\client.js:133:29
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:8248) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:8248) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
POST /send - - ms - -

### Technical details:
* sendgrid-nodejs version:
* node version:
*windows10 OS

Hello @Derry-ukere,
Could you please provide the code which contains your try-catch logic so that I may try to reproduce? Thanks!
With best regards,
Elmer

@thazhemadam Please could you reopen this?
It's a documentation issue, since the page doesn't mention that you need to use a verified sender, and ideally a recipient. Since there is a validation step that interrogates logs, it would seem reasonable to use the example.com email addresses provided. Not so.
To set up a verified sender, see: https://app.sendgrid.com/settings/sender_auth
Incidentally, you might find that that once the test mail does send, that it lands in spam (at least it did for me in gmail).

@thinkingserious Regarding the try/catch error - it's coming from sendgrid-nodejs. You get the same error using the script provided here: https://app.sendgrid.com/guide/integrate/langs/nodejs

The UnhandledPromiseRejectionWarning is likely due to the code provided not being wrapped in a try/catch block or not resolving the Promise returned by sgMail.send(msg); A straightforward way to resolve this issue would be use .then(...).catch(...);. Please see our guide on handing the Promise returned by send for further help.

@eshanholtz That sounds like a second opportunity to improve the page https://app.sendgrid.com/guide/integrate/langs/nodejs (in addition to clarifying the need for a verified sender or domain).:
// using Twilio SendGrid's v3 Node.js Library
// https://github.com/sendgrid/sendgrid-nodejs
const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
  to<EMAIL_ADDRESS>  from<EMAIL_ADDRESS>  subject: 'Sending with Twilio SendGrid is Fun',
  text: 'and easy to do anywhere, even with Node.js',
  html: 'and easy to do anywhere, even with Node.js',
};
-sgMail.send(msg);
+ sgMail.send(msg)
+  .then(() => {
+    console.log("Message sent");
+  })
+  .catch(error => {
+    console.error(error);
+  };

...or similar.

Thank you for the documentation update suggestions @mbrookes! I have forwarded them to our documentation team.

@thinkingserious How did you do that?

@childish-sambino - @thinkingserious works for Twilio (SendGrid owner).
Presumably the issue can also be labelled as 'type: docs update'.

@mbrookes So do I. Just trying to figure out the proper protocol.

Oops! 😆

@childish-sambino I put a request in via the AirTable form.

Hi All,
Thanks for looping in the docs team. We have updated the code samples for that integration guide in the app here:
GitHub Gist: https://gist.github.com/sendgrid-gists/069d788aefb7853706f424cbdfd7ee3c
And we just pushed up a PR to our Node.js quickstart in the docs here:
PR: https://github.com/sendgrid/docs/pull/6255
Docs Page: https://sendgrid.com/docs/for-developers/sending-email/quickstart-nodejs/
They should both have inline comments to help make it clear that the "From" address should change to a verified address. They also now have a catch( error => {console.error(error)} ) on the send() method. The quickstart has more explanation about the need for a verified address and links to our domain authentication docs. I hope this all helps.

Looks good. Glad to have helped. 🙂


CAMEL-17579: Preserve the data type of a message on copy

Backport of https://github.com/apache/camel/pull/6866 for 3.14

Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project camel-support: Compilation failure
Error:  /home/runner/work/camel/camel/core/camel-support/src/test/java/org/apache/camel/support/AbstractExchangeTest.java:[161,19] error: MyCamelContext is not abstract and does not override abstract method setBeanPostProcessor(CamelBeanPostProcessor) in ExtendedCamelContext

@essobedo

Please open another PR to fix this.

@oscerd ok

@essobedo the camel-spring-xml has an unit test that reuses a test from camel-core, and now it fails because it was updated as part of this PR
I wonder if you could take a look, see in camel-spring-xml, its the SpringTransformerRouteTest
You likely need to add a route for the new test in the XML file this test uses.

@davsclaus of course, no problem, in which branch?

@davsclaus all branches obviously


[Task] Adapt script to generate challenge headlines so that it can be used by Gaia

What product(s) is this story for?
OpenChallenges
As a user, I want
NA
Description
No response
Acceptance criteria

[ ] The user can specify challenge data (description) instead of fetching data from openchallenges.io
[ ] The user can generate challenge headlines for one challenge
[ ] @gaiaandreoletti can generate challenge headlines

Tasks
No response
Anything else?
No response
Have you linked this story to a GitHub Project?

[X] I have linked this story to a GitHub Project and set its metadata.

Actually we can keep the script for generating batch of headlines. Single headlines can be generated using the UI of OpenAI, Bard, etc.


Traceback error

[] Running XSS Scan []
Traceback (most recent call last):
File "traxss.py", line 6, in
menu.start()
File "/home/jb/gh/traxss/traxss/core/menu.py", line 163, in start
scanner.run_on_url()
File "/home/jb/gh/traxss/traxss/core/scanner.py", line 128, in run_on_url
self.driver = webdriver.Chrome(chrome_options=options)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevghActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
$chromedriver -v
ChromeDriver 78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/3904@{#877})

I have this problem too,
chromedriver -v
ChromeDriver 97.0.4692.99 (d740da257583289dbebd2eb37e8668928fac5ead-refs/branch-heads/4692@{#1461})

same , someone managed to fix it ?
[*] Running XSS Scan [*] Traceback (most recent call last):   File "/opt/traxss/traxss.py", line 6, in <module>     menu.start()   File "/opt/traxss/traxss/core/menu.py", line 254, in start     scanner.run_on_url()   File "/opt/traxss/traxss/core/scanner.py", line 128, in run_on_url     self.driver = webdriver.Chrome(chrome_options=options)   File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__     RemoteWebDriver.__init__(   File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__     self.start_session(capabilities, browser_profile)   File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session     response = self.execute(Command.NEW_SESSION, parameters)   File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute     self.error_handler.check_response(response)   File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response     raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.   (unknown error: DevToolsActivePort file doesn't exist)   (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)


feat(login): add redirect query param to login page, fixes #65

Fixes #65

I think it's a Vercel problem that it shows 404 when going to for example https://testaustime-ouygrwic1-testaustime.vercel.app/friends...


plot_topomap doesnt work with axes

It only works if colorbar=None.
The following doesn't work (it only shows the colorbar)
evoked.plot_topomap([0],axes = ax,colorbar=True)

Yes I know the above can be achieved by doing
fig, axes = plt.subplots(nrows=1, ncols=6, figsize=(4,2))
evoked.plot_topomap([0,1,2,3,4,5],vmin=-200,vmax=200,axes=axes,colorbar=None)

But I need to be able to plot different in evoked datasets in the same figure but in different subplots. That is the reason why I wanted this enhancement.

As you can see in Ipython notebook. The function plots it twice.

@jaeilepp can you have a look?

But I need to be able to plot different evoked datasets in the same figure but in different subplots. That is the reason why I wanted this enhancement.
For example the following doesnt work

fig, axes = plt.subplots(nrows=2, ncols=6, figsize=(4,2))
evoked.plot_topomap([0,1,2,3,4,5],axes=axes[1,:],colorbar=None)
evoked1.plot_topomap([0,1,2,3,4,5],axes=axes[0,:],colorbar=None)

You can use mne.viz.topomap.plot_evoked_topomap to achieve this.
fig, axes = plt.subplots(nrows=2, ncols=6, figsize=(4,2)) mne.viz.topomap.plot_evoked_topomap(evoked, show=False,  axes=axes[0]) mne.viz.topomap.plot_evoked_topomap(evoked1, show=True,  axes=axes[1]))

I dont want to plot all evoked time points
Even if I do the following it doesnt work

This code
import mne
import numpy as np
from matplotlib import pyplot as plt
%matplotlib inline

# Channel positions
ch_names = ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16', 'A17', 'A18', 'A19', 'A20', 'A21', 'A22', 'A23', 'A24', 'A25', 'A26', 'A27', 'A28', 'A29', 'A30', 'A31', 'A32', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'B12', 'B13', 'B14', 'B15', 'B16', 'B17', 'B18', 'B19', 'B20', 'B21', 'B22', 'B23', 'B24', 'B25', 'B26', 'B27', 'B28', 'B29', 'B30', 'B31', 'B32', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'C10', 'C11', 'C12', 'C13', 'C14', 'C15', 'C16', 'C17', 'C18', 'C19', 'C20', 'C21', 'C22', 'C23', 'C24', 'C25', 'C26', 'C27', 'C28', 'C29', 'C30', 'C31', 'C32', 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'D10', 'D11', 'D12', 'D13', 'D14', 'D15', 'D16', 'D17', 'D18', 'D19', 'D20', 'D21', 'D22', 'D23', 'D24', 'D25', 'D26', 'D27', 'D28', 'D29', 'D30', 'D31', 'D32']
montage = mne.channels.read_montage('biosemi128')
info = mne.create_info(ch_names, 100, 'eeg', montage)

# EEG data
temp = [-0.00054827592108, 0.031668073094, 0.0704223162929, 0.0865540229014, 0.085150043403, 0.0457380793299, 0.0509495732895, 0.0987022550764, 0.0801886633895, 0.04976969651, 0.00614093831533, -0.0373887332355, -0.0197260623702, -0.000444422313751, 0.0248963507643, 0.0589171499815, 0.0717817674042, 0.0787944587508, 0.130753138626, 0.124899705387, 0.0975269669664, 0.0419575393272, -0.00793216362559, -0.0151265531253, -0.0348081764706, 0.0215552729428, 0.0249141780785, 0.0655540808354, 0.108124467678, 0.124820721722, 0.146384148659, 0.140718598747, 0.0199164974076, 0.0571570915027, 0.0876578355539, 0.0923016839654, 0.133136594185, 0.152798531971, 0.122602552914, 0.0714821347463, 0.0537612111322, 0.0469385417282, 0.0740553145655, 0.0915974711193, 0.0743604227044, 0.0110220331254, 0.0234080078001, 0.0325478142343, 0.0477724066775, 0.047792830146, 0.0666905921563, 0.0189050684572, 0.00897804762235, 0.0227890832216, 0.0197423673457, -0.00454527858583, -0.00615177981404, -0.0201675075456, -0.0920040702005, -0.0464443873328, -0.0414552367577, -0.0531930278853, -0.0307912429832, -0.0412551750461, -0.0123007168696, -0.0112167955503, -0.0542948025463, -0.0857190408132, -0.0771482839, -0.113035664, -0.124491501499, -0.122871051658, -0.10429939481, -0.0749259731853, -0.0494703403965, -0.0760484386394, -0.0866986470174, -0.108261995558, -0.103236351804, -0.0826894600891, -0.114552515316, -0.0938510344287, -0.0872763177219, -0.0658120109097, -0.109361027459, -0.0545709142688, -0.0465159668016, -0.0374219872666, -0.0657419626256, -0.0692102438198, -0.0685479219719, -0.0770634783383, -0.0872426401117, -0.0666948763193, -0.0573920809363, -0.0800195158044, -0.0249282154474, -0.0257314683258, -0.0342883027284, -0.0602967350127, -0.0379301562186, -0.0422883555211, -0.0357673248702, -0.00463023885605, -0.0154207203639, -0.0236424654065, -0.00446259655858, 0.00180786601789, -0.000400985259411, 0.000962388449819, 0.0113404811841, 0.0430510059066, 0.0267019564535, -0.00120974681118, 0.00317540453295, 0.00662862089829, -0.0460368212177, -0.0417816042596, 0.00620115910578, -0.0218318617073, -0.0349000304808, -0.0231747760115, 0.0320176071901, 0.00236553571098, 0.0207500486866, 0.0235998503673, -0.00664424438941, -0.0175665711621]

l = mne.channels.make_eeg_layout(info)

# Make topomap plots
fig, axes = plt.subplots(nrows=1, ncols=3, figsize=(7,3))

ax = axes[0]
mne.viz.topomap.plot_topomap(temp,l.pos,axis=ax)

ax = axes[1]
mne.viz.topomap.plot_topomap(temp,l.pos,axis=ax)

ax = axes[2]
mne.viz.topomap.plot_topomap(temp,l.pos,axis=ax)

Still doesn't work

The problem of everything plotting twice it still there.
Also the right most subplot is the colorbar which is not correct because it omits a time instance.

The problem of everything plotting twice it still there.

You can prevent the plot from showing prematurely by giving show=False to first two calls of mne.viz.topomap.plot_topomap.

Also the right most subplot is the colorbar which is not correct because it omits a time instance.

You can either give more space for the colorbar by making an extra column for the figure or giving colorbar=False to plot_evoked_topomap.

Thanks for the show=False tip. Solves most of the problems

How to show a colorbar for mne.viz.plot_topomap?
How to get the colorbar from the plot returned by plot_evoked_topomap or evoked.plot_topomap and plot it a different axis?

please have a look at the code. It needs a bit of work. If you struggle ask
again. And if you could share your progress with a PR it would be great.

@ImmanuelSamuel : Cause I'm lazy, to suppress double showing of the last element in %matplotlib inline notebooks, I usually do this:
_ = plot_something(...
(The notebook will return the last returned element by default, and if it's a figure, it will show it. If you feed it to an argument, you avoid this double plot.)

or just end the line with ;

Oh, I didn't know that! That's even lazier :)

@ImmanuelSamuel I suspect that both of those colorbar issues can be solved by looking at matplotlib Figure properties and the like. Feel free to reopen if you think these use cases should be part of mne-python

Yeah ok thanks for the tips. Right now I am just plotting some random stuff in an axes and getting the colorbar handle. I hide that axes after that.


Environment/Leaf Icon

Something to represent the environment would be great! This could perhaps include a recycle symbol.
Example:

Yes please! Recycling and the leaf would be amazing!


Error while running planning module using "cyber_launch"

platform: ubuntu 18.04+apollo 3.5
module: planning
issue:
I use "bash apollo.sh build_cpu" command to build the apollo3.5. The build was successful without any error message. However, when I try to launch the individual planning module using the command: "cyber_launch start modules/planning/launch/planning.launch", I got the following error messages:

Please note that other modules (e.g. control module), was able to run successfully using the same method.
Any help would be appreciated.

@zezhang seems libplanning_component is missing from the log, have you double checked if the so is in there?

Yes. The file is under the specified directory. It looks the libadolc.so.2 is missing, but I'm not sure where does this library come from. I don't think it's related to Apollo since I can compile everything successfully.

@zezhang  Maybe libadolc.so.2 is missing, I think there is a problem with the docker environment. Can I find this file? "/local/adolc/lib64/libadolc.so.2 ."

Closing this issue as it appears to be resolved. Feel free to reopen if you have additional questions. Thanks!


how to start workflow using API

current
    lightflow workflow start <simple>

Is there an way to start workflow like this?
    import lightflow
    import simple
    lightflow.start_workflow(simple)

Absolutely, the following code starts a workflow 'simple':
from lightflow.config import Config
from lightflow.workflows import start_workflow

config = Config()
config.load_from_file()

job_id = start_workflow(name='simple', config=config)
print('Started workflow with ID', job_id)

You will need to create a Config object either manually or loading from a config file (shown above) and then call the start_workflow function. Does this help?


cross reference wikidata Q id

New Feature Summary
Current implementation performs NEL to a dbpedia URI (@wricketts correct me if I'm wrong about this). It would be great if the app can also map the dbpedia entry to a wikidata entry (references by Q id). This issue is for further discussion of implementation of the feature.
@wricketts can you start by doing some research and compare two databases(?) and write a comment below about possibility and requirements of automatic mapping?

Having the Q id would be very desirable from the GBH perspective.  Besides querying a DBpedia endpoint, another approach might be to query a Wikidata endpoint.  Also, a simple-minded approach might be to periodically generate a static look-up table with mappings between DBpedia and Wikidata identifiers.

Another problem we found is that DBPedia is a "done" project as of 2016 so nothing from wikidata side added since around 2016 can be mappable to DBPedia-based effort. Once this is wrapped up, we should find a better linking strategy/tool that directly utilizes wikidata as the backend.

Something else to note is that a DBpedia entry can map to multiple Wikidata nodes.
So for example, the entry for Ukraine maps to 3 different Q ids, the last of which is actually a Polish village different from the country. I'm not sure how we would want to deal with these cases.

I guess in the most naive way, we can throw all Q ids in to a list of "grounding" field in the NE annotation type. That is, what we currently have is
https://github.com/clamsproject/app-dbpedia-spotlight-wrapper/blob/45d8df2aceb2a3cf0341346ef6793f374c75605d/app.py#L63
But we haven't really fixated the name to use for encoding grounding (NEL) information in the NE type, and the type definition at http://vocab.lappsgrid.org/NamedEntity.html is underspecified. So the most naive implementation I'm suggesting is having a field like grounding that is a standard JSON list of URIs (and list all DBPedia and Wikidata URIs).
A question we might need to answer sometime soon is how we want to upgrade the lapps at_types for additional field names we used in the CLAMS project, and if so, whether we want to maintain lapps vocab under clams responsibility.  @marcverhagen please let us know if you have thought about this.

My idea was similar to the above, have some field with a URI or list URIs. At first I was thinking a field named dbpedia, but I think grounding is better. With that we would need some metadata to determine what the grounding is to.
At first I was thinking it would be be silly not to use and adapt the LAPPS vocabulary, and once we have revived vocab.lappsgrid.org that should be easy. But since maintaining one repository is better than maintaining two I am also starting to feel good about adding NamedEntity to the CLAMS vocabulary.

@keighrim When debugging I found that URIs such as https://dbpedia.org/page/Money_(magazine) or https://dbpedia.org/page/Rock_Hill,_South_Carolina resulted in bad sparql queries because of the special characters in the entity names. I pushed code to escape special characters and the app can fully process that transcript now. But it's possible that unaccounted edge cases can still come up in other data.

Looks like the SPARQL spec has a predefined character set for escaping. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rPN_LOCAL (see PN_LOCAL_ESC row).

Actually, disregard my previous comment. I made another fix and it should work without needing to escape characters.


Promotional coupons

@deanperry @jhchabran Have you started implementing coupons feature already ?

Not yet I'm afraid. The project I was using Shoppe for has been put on hold for the moment

Same scenario here, we had issues with how taxes are handled, we needed Euro style VAT, where you enter the price with taxes then it computes how much it should be sold without and we couldn't afford taking time to code it so we went for another solution.

OK, fair enough - thanks for a quick response! :+1:

has there been any development on this?

Hi @daltonrenaldo, not currently but I may be taking the project over. If so then I'll be adding a number of features and making a few changes. Watch this space :)

Alright, I might be working on something too since I'll need a similar
feature for a project in the next few weeks. So we can work together if
you'd like.
On Sat, Jun 4, 2016, 12:16 PM Dean Perry<EMAIL_ADDRESS>wrote:

Hi @daltonrenaldo https://github.com/daltonrenaldo, not currently but I
may be taking the project over. If so then I'll be adding a number of
features and making a few changes. Watch this space :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tryshoppe/shoppe/issues/13#issuecomment-223764110,
or mute the thread
https://github.com/notifications/unsubscribe/ABtOSfsoatSLAV5jkai885Nfepunz7gcks5qIaT3gaJpZM4BEkoS
.

@deanpcmad I wish I had noticed the reference sooner... just got done creating a gem: https://github.com/daltonrenaldo/shoppe-discounts
... well, more variety I guess. I do like some of the naming of promocode better, so I may rename.


add design

webpage:-
Added some design like fix image size and added come colors and design and make it fully responsive for all devices.
demo is attached.

issue related;- #21

I changed the navigation alignment and added padding. I also added a functionality for color changing. I created two variables—if you want to change the color, just modify those, and the whole webpage color will automatically update.


Please update wezterm theme config instructions :-)

First, there's already a Dracula color scheme built into wezterm:
https://github.com/wez/wezterm/blob/main/assets/colors/Dracula.toml
that comes from https://github.com/mbadolato/iTerm2-Color-Schemes
Please consider adding your theme there and perhaps renaming it to disambiguate!
I periodically update and bundle the latest version of that repo with wezterm.
Secondly, it would be great to factor out the theme information from the current advice shown on https://draculatheme.com/wezterm so that it is easier for users to consume.
I would suggest creating a toml file that can be downloaded and placed in a color schemes directory:
https://wezfurlong.org/wezterm/config/appearance.html#defining-a-color-scheme-in-a-separate-file
An alternative would be to make a dracula.lua file that returns the colors section:
return {
   ansi = {...}
}

and then place that in $HOME/.config/wezterm/dracula.lua and adjust the main wezterm.lua:
local dracula = require 'dracula';
return {
   colors = dracula,
}

Updated, with the color scheme seperated out as dracula.lua, and included a sperate section in INSTALL.md to inform users how to use the bundled theme
As for iTerm2-Color-Schemes or creating a toml file, since this config also apply stylings to tab bar, to my understanding both options currently do not support that?
See if the changes fits, also thanks for the great terminal wez <3

I'd love to see a toml file used for this; since .lua files are essentially arbitrary code, sharing a color scheme as a lua file introduces some risk to the user, especially if they get in the habit of blindly downloading and consuming those files.
You can specify the tab bar colors in TOML files. In addition, you can include metadata showing the origin and author of the color scheme, which wezterm's color scheme importer/automation can then use to show your color scheme in the docs.  See https://wezfurlong.org/wezterm/colorschemes/d/index.html#dracula and scroll down for the next couple of dracula spin-offs schemes.
Current wezterm versions have some helper functions that will make it easy to produce the toml file: you can load your lua-based color scheme definition per your current instructions, but add something like this:
local metadata = {
   name = "Dracula",
   author = "Whomever",
  origin_url = "https://github.com/dracula/wezterm",
}
wezterm.color.save_scheme(dracula, metadata, "/tmp/dracula.toml")

Then wezterm will save out a toml version of the file when it is launched.
If you check that file into this repo, I can have it synced into nightly builds and it will be shipped as part of the next release.
See https://github.com/EdenEast/nightfox.nvim/issues/183 for a similar thread for the nightfox color schemes.

toml file generated, and w/ the corresponding documents updated.
The helper function is very convenient, see if the changes fits

Thanks! This is now sync'd to wezterm and visible in the docs: https://wezfurlong.org/wezterm/colorschemes/d/index.html#dracula-official
It will show up in the next nightly build and subsequent releases!


Cannot build from source on Cent OS 7.4 devtoolset-9

Background
I want to try tcmalloc per-cpu cache & hpaa with TensorFlow. gperftools tcmalloc so is distributed as a yum package so I didn't have to build it.
Setup
I read through the platform & quick start documentation and tried to build google's tcmalloc from source. I'm on Cent OS 7.4 with devtoolset-9 (gcc 9.3.1), python 3.7 & bazel 5.3.0. I can build tensorflow successfully so I don't suspect general issues with my setup.
Issues
** 'KPF_ZERO_PAGE' was not declared in this scope - unsolved, need help**
Looks related to the issue I thought I solved below. Update: I see that my kernel headers are missing KPF_ZERO_PAGE. Is there a required minimum kernel version to build tcmalloc?
uname: 3.10.0-1160.83.1.el7.x86_64
[root@a246b12ad384 tcmalloc]# bazel test //tcmalloc/...
DEBUG: /root/.cache/bazel/_bazel_root/288768f7cffec1374a88652b2943bc4a/external/rules_python/python/repositories.bzl:32:10: py_repositories is a no-op and is deprecated. You can remove this from your WORKSPACE file
INFO: Analyzed 433 targets (0 packages loaded, 0 targets configured).
INFO: Found 123 targets and 310 test targets...
FAIL: //tcmalloc/testing:sampling_test (see /root/.cache/bazel/_bazel_root/288768f7cffec1374a88652b2943bc4a/execroot/com_google_tcmalloc/bazel-out/k8-fastbuild/testlogs/tcmalloc/testing/sampling_test/test.log)
FAIL: //tcmalloc/testing:get_stats_test (see /root/.cache/bazel/_bazel_root/288768f7cffec1374a88652b2943bc4a/execroot/com_google_tcmalloc/bazel-out/k8-fastbuild/testlogs/tcmalloc/testing/get_stats_test/test.log)
FAIL: //tcmalloc:heap_profiling_test (see /root/.cache/bazel/_bazel_root/288768f7cffec1374a88652b2943bc4a/execroot/com_google_tcmalloc/bazel-out/k8-fastbuild/testlogs/tcmalloc/heap_profiling_test/test.log)
ERROR: /home/source/tcmalloc/tcmalloc/internal/BUILD:600:8: Compiling tcmalloc/internal/percpu_tcmalloc_test.cc failed: (Exit 1): gcc failed: error executing command /opt/rh/devtoolset-9/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall
 -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 54 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
tcmalloc/internal/percpu_tcmalloc_test.cc: In function 'void tcmalloc::tcmalloc_internal::subtle::percpu::{anonymous}::ResizeSlabsThread(tcmalloc::tcmalloc_internal::subtle::percpu::{anonymous}::Context&, tcmalloc::tcmalloc_internal::subtle::per
cpu::TcmallocSlab<4>::DrainHandler, absl::Span<std::pair<void*, long unsigned int> >)':
tcmalloc/internal/percpu_tcmalloc_test.cc:769:29: error: 'KPF_ZERO_PAGE' was not declared in this scope; did you mean 'KPF_NOPAGE'?
  769 |             (uint64_t{1} << KPF_ZERO_PAGE) | (uint64_t{1} << KPF_NOPAGE);
      |                             ^~~~~~~~~~~~~
      |                             KPF_NOPAGE
INFO: Elapsed time: 756.142s, Critical Path: 685.78s
INFO: 932 processes: 369 internal, 563 processwrapper-sandbox.
FAILED: Build did NOT complete successfully

Executed 115 out of 310 tests: 124 tests pass, 1 fails to build, 3 fail locally and 182 were skipped.
FAILED: Build did NOT complete successfully

reallocarray isn't in scope - solved
[root@a246b12ad384 tcmalloc]# bazel test //tcmalloc/...
DEBUG: /root/.cache/bazel/_bazel_root/288768f7cffec1374a88652b2943bc4a/external/rules_python/python/repositories.bzl:32:10: py_repositories is a no-op and is deprecated. You can remove this from your WORKSPACE file
INFO: Analyzed 433 targets (49 packages loaded, 2987 targets configured).
INFO: Found 123 targets and 310 test targets...
ERROR: /home/source/tcmalloc/tcmalloc/testing/BUILD:66:26: Compiling tcmalloc/testing/tcmalloc_test.cc failed: (Exit 1): gcc failed: error executing command /opt/rh/devtoolset-9/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused
-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 54 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
tcmalloc/testing/tcmalloc_test.cc: In member function 'virtual void tcmalloc::{anonymous}::TcmallocTest_ReallocArray_Test::TestBody()':
tcmalloc/testing/tcmalloc_test.cc:259:11: error: 'reallocarray' was not declared in this scope
  259 |       p = reallocarray(p, start_sizes[s] + deltas[d], 1);
      |           ^~~~~~~~~~~~
tcmalloc/testing/tcmalloc_test.cc:269:11: error: 'reallocarray' was not declared in this scope
  269 |       p = reallocarray(p, start_sizes[s] - deltas[d], 1);
      |           ^~~~~~~~~~~~
tcmalloc/testing/tcmalloc_test.cc: In member function 'virtual void tcmalloc::{anonymous}::TcmallocTest_ReallocArrayOverflow_Test::TestBody()':
tcmalloc/testing/tcmalloc_test.cc:299:17: error: 'reallocarray' was not declared in this scope
  299 |     void* ptr = reallocarray(nullptr, t.n, t.s);
      |                 ^~~~~~~~~~~~
INFO: Elapsed time: 265.541s, Critical Path: 38.75s
INFO: 1128 processes: 280 internal, 848 processwrapper-sandbox.
FAILED: Build did NOT complete successfully

The following diff ensured the signature is linkable from a C caller. But the next issue above makes me suspect a subtle incompatibility with the compiler.
[root@a246b12ad384 tcmalloc]# git diff
diff --git a/tcmalloc/testing/tcmalloc_test.cc b/tcmalloc/testing/tcmalloc_test.cc
index 5101481..e31d9ed 100644
--- a/tcmalloc/testing/tcmalloc_test.cc
+++ b/tcmalloc/testing/tcmalloc_test.cc
@@ -102,6 +102,8 @@ static const int kSizeBits = 8 * sizeof(size_t);
 static const size_t kMaxTestSize = ~static_cast<size_t>(0);
 static const size_t kMaxSignedSize = ((size_t(1) << (kSizeBits - 1)) - 1);

+extern "C" void *reallocarray(void *, size_t, size_t);
+
 namespace tcmalloc {
 extern ABSL_ATTRIBUTE_WEAK bool want_hpaa();
 }  // namespace tcmalloc

Upgraded to a newer kernel and dropped into a constant 24 for the page flags.


Small endpoints do not get TXFIFO space

Small EP (less than 64 bytes) are left unconfigured. Instead, pad up to the minimum size of 64 bytes and log.

Fixed in 9342df09e78eb17301dab69aab5a6390eaa126b7.


Revert "Make g_rgWellKnownMethodNames specific to binder (#5390)"

This reverts commit b02c2edaa6b4390615de5bb1daefdf1ec39d5e7b.
This commit didn't actually fully fix #5390 (it's an external issue), but it triggered a linker warning on Windows (AsmOffsetsVerify.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library). It doesn't seem worth it to try to fix the warning and the useless extern nicely works around the problem...

I would rather add explicit workaround for the linker warning to AsmOffsetsVerify.cpp; or disable the linker warning. I think depending on random piece of code to workaround is not nice.
#ifdef _MSC_VER
namespace { char WorkaroundLNK4221; };
#endif


added S3 website settings for making a bucket serve static content

Do you think website should be enabled or disabled by default?

This looks fine to me, it is low risk and only touching new features. Nothing seems off, and everything seems accounted for. Thanks!


Need a 'class/group' field in the user credentials

As part of user accounts under AuthorizedKeysRequest->AccountCredentials and AuthorizedUsersRequest->UserPolicy, a 'class' field is required to ADD a "new" user account. The 'class' field is of type string that defines a class name. The 'class' is used to associate the user account with the 'class'. The 'class' defines the permissions for the 'user' account. In order to handle "new" user account creation with a 'credentials' configuration pushed through bootz (bootz.proto), a user 'class' is required. Or an acceptable default 'class' will have to be used, where the "default" class has the necessary permissions that can be applied to all user accounts created through RPCs via gnsi-credentialz. Request is to make provision in credentialz.proto to be able to specify a user 'class' under "AccountCredentials" and "UserPolicy".

'class' sounds very vendor specific... there's perhaps another word we could use here?
how about 'role' ?

Thanks for getting back on this. 'role' sounds good to me. we can go with
that.
On Sat, Dec 28, 2024 at 2:26 PM Chris Morrow @.***>
wrote:

'class' sounds very vendor specific... there's perhaps another word we
could use here?
how about 'role' ?
—
Reply to this email directly, view it on GitHub
https://github.com/openconfig/gnsi/issues/189#issuecomment-2564412817,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWSZRYTJ2Q5V7IOODTLWZ32H33PBAVCNFSM6AAAAABUKB5N2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGQYTEOBRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


可以打个tag吗？v0.1.0

安装报错 The package is not available in a stable-enough version according to your minimum-stability setting
方便的话 打个tag吧

Done


Add request body

add the request body to curl samples

Missing:

[ ] application/octet-stream
[ ] multipart-form


'tr' from backslash generates bad code

'tr' from backslash generates bad code.  For example:
$fd =~ tr{\\}(/);

Test case added to test_s_tr.pl

Fixed in v0.968


Check for nil interfaces on various functions

This fixes #34 by ensuring that nil interfaces don't cause panics if supplied.

Thanks for your pull request. Great work!

This is now in release v1.2.4


Update Unit Testing using mstest with csproj based builds

docs/core/testing/unit-testing-with-dotnet-test.md
docs/core/testing/using-mstest-on-windows.md

can we close this one @BillWagner? PR seems to be merged into csproj

@mairaw Thanks for spotting.  Closing now.
This was fixed in PR# 1531


Recommended way to install Calico on AWS EKS

It is not clear what is a recommended way to install Calico on EKS and how to make it correctly using only Helm and Tigera operator.
In the official Calico doc about EKS it is recommended (still) to use generated manifest calico-vxlan.yaml. Also installation process requires to delete aws-node daemonset and patch calico-node daemonset later.  This must be done before nodegroup creation. This procedure works fine for me.
From other side many other pages recommending to use Helm which setting up Tigera operator, which should handle installation. Also official aws doc recommends this.
I tried to migrate to the Helm setup (new cluster) but nodes never been able to get to healthy state due to cni errors. Also it is not clear if operator would/should handle aws-node deletion and if result would be similar to the calico-vxlan.yaml. So at the moment i reverted to old, manifest based setup.
Expected Behavior
Documentation on how to setup EKS with Helm/Tigera or note that it is not [yet] supported.
Current Behavior
Page about Manifest based setup is very detailed and provides working Calico setup and Helm based installation failing and no details are covered. E.g. how to tell Tigera to use images from the private ECR, of if Tigera must be created before node groups, do we need to delete aws-node daemonset, etc.
Possible Solution
Update documentation about EKS/Calico installation.
Steps to Reproduce (for bugs)

Create new EKS cluster
Install calico from helm
Nodes are never comes up to ready state due to CNI errors.

Context
I would like, if possible, to use Helm based installation to simplify upgrade process.
Your Environment
AWS EKS setup, latest helm version.

@samm-git the doc that you linked to itself has a link to the official EKS documentation for installing Calico on EKS: https://docs.aws.amazon.com/eks/latest/userguide/calico.html
That guide includes instructions for how to use a helm chart to install Calico. The helm chart itself includes the tigera operator as its install mechanism, and results in EKS with Amazon VPC CNI networking.
For installing Calico networking on EKS, the instructions currently only include a manifst-based approach for v3.22, although we are working on updating the docs to include an operator-based approach (which will also work for helm).
This is the install config I needed for Calico to run with Calico networking (not VPC CNI) on EKS:
kind: Installation
apiVersion: operator.tigera.io/v1
metadata:
  name: default
spec:
  kubernetesProvider: EKS
  cni:
    type: Calico
  calicoNetwork:
    bgp: Disabled

From the official EKS docs: The recommended way to install Calico on Amazon EKS is by using the Calico Operator instead of these charts or manifests.

We'll need to submit a PR to update that to be more precise. The Amazon EKS team does not maintain the charts or manifests in the procedure, nor do they maintain the Calico Operator. However, the chart in the procedure is the very same Calico Operator that they recommend.
There is history here:

Amazon used to maintain their own manifest for installing Calico
Amazon used to maintain their own helm chart for installing Calico
Amazon has since deprecated and removed support for both of those methods above.
Instead, Amazon now recommends the use of the Calico Operator helm chart, supported by the Calico team.

I believe the warning is referring to (1) and (2) when it mentions the unsupported manifest and chart, whereas the instructions have been updated to use (4), which is the recommended way.


feat(gantry): support rev1 boards

Do similar refactors to what was needed to support head rev1 to bring up the rev1 x and y boards (actually the same board in both places). They, too, have a tmc2160 instead of a tmc2130, so the same changes are needed.
This is tested on the proto boards, but has yet to be tested on the actual new rev hardware.

Looks good to me. I think it would be nice if we updated the build presets in CMakePresets.json to reflect the new target names but not a blocker.

So that all revs were built when you do cmake --build --preset=gantry?


Receiving country does not support the transaction currency.

Hi. I'm trying to buy an item from my online shop. I'm using PrestaShop <IP_ADDRESS>.
When I pay using dollars, everything works fine, but when I try to pay using Lempiras (which is the main currency in my shop), I get this error:
[10605] Transaction refused because of an invalid argument. See additional error messages for details.
Mensaje de error adicional: Receiving country does not support the transaction currency.
Actually, I would just like this module to include an option that let me pay just in dollars. I mean, if my clients are trying to pay in Lempiras, it would be nice this module to transfer payment to Dollars in the cart.
Sorry for my english.
Thank you

Hello !
Thank you for your message.
For fixing this issue you can simply change the currency for PayPal module in the "Payment - Preferences" tab, "Currency restrictions". You can select "Dollar" or "Shop default currency" if the default currency is $.
Best regards,


Store stdout of failing tests

test.py needs to emit a logs.json file containing the logs for all failing tests.

This was done in 0caf8dd8ed968b4ab56e2a91d58681fdab3505f0


Add tx validity for handling reference tests

We need to skip reference tests which have invalid transaction, hence we need to keep this information while parsing the reference tests json.

fixed in besu directly

fixed by https://github.com/hyperledger/besu/pull/7773


Fix deprecation of OpenSSL::Cipher::Cipher

Use OpenSSL::Cipher instead

Fixes cvonkleist/encrypted_cookie#12

Hi, thanks for this patch.
Do you know for how long OpenSSL::Cipher has been available as a class? (i.e. what minimum version of ruby this patch would require)

@namelessjon looks like OpenSSL::Cipher.new (as opposed to OpenSSL::Cipher::Cipher.new)  is supported at least back to Ruby 2.0.0 based on this doc:
https://ruby-doc.org/stdlib-2.0.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html

My apologies for going quiet for a while, I hope to address this pull request soon.  I just want to check the specs work for me.
Okay, that's helpful to know.  Anyone using a version of ruby that old (or older) should have upgraded long ago.


Add tests for Ad-Entity

Wrote tests for the Ad entity for the following endpoints:

GET /ad   (Get all ads or search ads by keyword)
PUT /ad/{adid}   (Show interest in an ad)
DELETE /user/{userID}/ad/{adID}   (Delete an ad from user account)

Those endpoints were tested both by calling their function and by doing API endpoint calls

LGTM!

thanks,
resolved minor conflict, merging


jest+babel+TypeScript: Template literal types cannot have any substitution

🐛 Bug Report
jest is not using the same config as Babel producing SyntaxError on TypeScript 4.1 template literal type.
In below you can see that babel is parsing the file IsPositive.ts without error,
but jest throws an error to the same file.
$yarn babel src/math/IsPositive.ts
yarn run v1.22.5
$ D:\code\unional\type-plus\node_modules\.bin\babel src/math/IsPositive.ts
"use strict";

Done in 1.52s.

unional type-plus (template-literal-error)
$yarn jest src/math/IsPositive.spec.ts
yarn run v1.22.5
$ D:\code\unional\type-plus\node_modules\.bin\jest src/math/IsPositive.spec.ts
 FAIL  src/math/IsPositive.spec.ts
  ● Test suite failed to run

    SyntaxError: D:\code\unional\type-plus\src\math\IsPositive.ts: Template literal types cannot have any substitution (8:7)

      6 | export type IsPositive<N extends number> = number extends N
      7 |   ? false
    > 8 |   : `${N}` extends `-${number}` ? false : true
        |        ^
      9 |

      at Object._raise (node_modules/@babel/parser/src/parser/error.js:60:45)
      at Object.raiseWithData (node_modules/@babel/parser/src/parser/error.js:55:17)
      at Object.raise (node_modules/@babel/parser/src/parser/error.js:39:17)
      at Object.tsParseTemplateLiteralType (node_modules/@babel/parser/src/plugins/typescript/index.js:765:14)
      at Object.tsParseNonArrayType (node_modules/@babel/parser/src/plugins/typescript/index.js:835:23)
      at Object.tsParseArrayTypeOrHigher (node_modules/@babel/parser/src/plugins/typescript/index.js:842:23)
      at Object.parseConstituentType [as tsParseTypeOperatorOrHigher] (node_modules/@babel/parser/src/plugins/typescript/index.js:902:16)
      at Object.tsParseUnionOrIntersectionType (node_modules/@babel/parser/src/plugins/typescript/index.js:911:18)
      at Object.parseConstituentType [as tsParseIntersectionTypeOrHigher] (node_modules/@babel/parser/src/plugins/typescript/index.js:927:19)
      at Object.tsParseUnionOrIntersectionType (node_modules/@babel/parser/src/plugins/typescript/index.js:911:18)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        2.605 s
Ran all test suites matching /src\\math\\IsPositive.spec.ts/i.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

babel.config.js:
module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        targets: {
          node: 'current',
        },
      },
    ],
    ['@babel/preset-typescript', {
      allowNamespaces: true
    }],
  ],
  plugins: [
    '@babel/plugin-proposal-class-properties',
    '@babel/plugin-proposal-optional-chaining',
    '@babel/plugin-proposal-nullish-coalescing-operator'
  ],
};

To Reproduce
// IsPositive.ts (simplified)
export type IsPositive<N extends number> = `${N}` extends `-${number}` ? false : true

Expected behavior
No error
Link to repl or repo (highly encouraged)
I have created a branch in type-plus to demonstrate this error:
https://github.com/unional/type-plus/tree/template-literal-error
Check it out and run:
yarn

yarn jest src/math/IsPositive.spec.ts

to see the error
envinfo

$npx envinfo --preset jest
npx: installed 1 in 1.603s

  System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Binaries:
    Node: 14.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.8 - D:\code\unional\type-plus\node_modules\.bin\npm.CMD
  npmPackages:
    jest: ^26.6.3 => 26.6.3

One weird thing is if I don't export them to the top level index.ts, jest is running fine.
i.e. this fail:
// src/math/IsPositive.spec.ts
import { IsPositive } from './IsPositive'

// src/math/index.ts
export * from './IsPositive'

// src/index.ts
export * from './math'

but this is fine:
// src/math/IsPositive.spec.ts
import { IsPositive } from './IsPositive'

// src/index.ts
// comment out: export * from './math'

One weird thing is if I don't export them to the top level index.ts, jest is running fine.
i.e. this fail:
// src/math/IsPositive.spec.ts
import { IsPositive } from './IsPositive'

// src/math/index.ts
export * from './IsPositive'

// src/index.ts
export * from './math'

but this is fine:
// src/math/IsPositive.spec.ts
import { IsPositive } from './IsPositive'

// src/index.ts
// comment out: export * from './math'

You have an old version of @babel/core for Jest which doesn't support the syntax.
$ yarn why @babel/core
yarn why v1.22.10
[1/4] 🤔  Why do we have the module<EMAIL_ADDRESS>[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found "<EMAIL_ADDRESS>info Has been hoisted to "@babel/core"
info This module exists because it's specified in "devDependencies".
info Disk size without dependencies: "4.63MB"
info Disk size with unique dependencies: "23.46MB"
info Disk size with transitive dependencies: "32.98MB"
info Number of shared dependencies: 37
=> Found "@jest/transform#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#@jest#transform" depends on it.
info Disk size without dependencies: "1.11MB"
info Disk size with unique dependencies: "20.5MB"
info Disk size with transitive dependencies: "30.04MB"
info Number of shared dependencies: 39
=> Found "jest-config#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#jest-config" depends on it.
info Disk size without dependencies: "336KB"
info Disk size with unique dependencies: "19.72MB"
info Disk size with transitive dependencies: "29.26MB"
info Number of shared dependencies: 39
=> Found "istanbul-lib-instrument#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#@jest#reporters#istanbul-lib-instrument" depends on it.
info Disk size without dependencies: "424KB"
info Disk size with unique dependencies: "19.81MB"
info Disk size with transitive dependencies: "29.35MB"
info Number of shared dependencies: 39
✨  Done in 1.37s.

Apply this diff
diff --git i/yarn.lock w/yarn.lock
index d047ec5..7fc1778 100644
--- i/yarn.lock
+++ w/yarn.lock
@@ -38,28 +38,6 @@
   resolved<EMAIL_ADDRESS>   integrity sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==

-"<EMAIL_ADDRESS>"<EMAIL_ADDRESS>-  version "7.11.6"
-  resolved<EMAIL_ADDRESS>-  integrity sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==
-  dependencies:
-    "@babel/code-frame" "^7.10.4"
-    "@babel/generator" "^7.11.6"
-    "@babel/helper-module-transforms" "^7.11.0"
-    "@babel/helpers" "^7.10.4"
-    "@babel/parser" "^7.11.5"
-    "@babel/template" "^7.10.4"
-    "@babel/traverse" "^7.11.5"
-    "@babel/types" "^7.11.5"
-    convert-source-map "^1.7.0"
-    debug "^4.1.0"
-    gensync "^1.0.0-beta.1"
-    json5 "^2.1.2"
-    lodash "^4.17.19"
-    resolve "^1.3.2"
-    semver "^5.4.1"
-    source-map "^0.5.0"
-
 "<EMAIL_ADDRESS>   version "7.12.10"
   resolved<EMAIL_ADDRESS>
and run yarn (which will apply further diffs) and it works

This is why we ask for minimal reproductions - if you start a new project (or just delete your yarn.lock and generate a new one) you'd have seen it working

One weird thing is if I don't export them to the top level index.ts, jest is running fine.

Jest does JIT translation, so if you don't import it the file isn't transpiled (and thus won't fail). Guessing that's why, but haven't dug into it

You have an old version of @babel/core for Jest which doesn't support the syntax.
$ yarn why @babel/core
yarn why v1.22.10
[1/4] 🤔  Why do we have the module<EMAIL_ADDRESS>[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found "<EMAIL_ADDRESS>info Has been hoisted to "@babel/core"
info This module exists because it's specified in "devDependencies".
info Disk size without dependencies: "4.63MB"
info Disk size with unique dependencies: "23.46MB"
info Disk size with transitive dependencies: "32.98MB"
info Number of shared dependencies: 37
=> Found "@jest/transform#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#@jest#transform" depends on it.
info Disk size without dependencies: "1.11MB"
info Disk size with unique dependencies: "20.5MB"
info Disk size with transitive dependencies: "30.04MB"
info Number of shared dependencies: 39
=> Found "jest-config#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#jest-config" depends on it.
info Disk size without dependencies: "336KB"
info Disk size with unique dependencies: "19.72MB"
info Disk size with transitive dependencies: "29.26MB"
info Number of shared dependencies: 39
=> Found "istanbul-lib-instrument#<EMAIL_ADDRESS>info This module exists because "jest#@jest#core#@jest#reporters#istanbul-lib-instrument" depends on it.
info Disk size without dependencies: "424KB"
info Disk size with unique dependencies: "19.81MB"
info Disk size with transitive dependencies: "29.35MB"
info Number of shared dependencies: 39
✨  Done in 1.37s.

Apply this diff
diff --git i/yarn.lock w/yarn.lock
index d047ec5..7fc1778 100644
--- i/yarn.lock
+++ w/yarn.lock
@@ -38,28 +38,6 @@
   resolved<EMAIL_ADDRESS>   integrity sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==

-"<EMAIL_ADDRESS>"<EMAIL_ADDRESS>-  version "7.11.6"
-  resolved<EMAIL_ADDRESS>-  integrity sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==
-  dependencies:
-    "@babel/code-frame" "^7.10.4"
-    "@babel/generator" "^7.11.6"
-    "@babel/helper-module-transforms" "^7.11.0"
-    "@babel/helpers" "^7.10.4"
-    "@babel/parser" "^7.11.5"
-    "@babel/template" "^7.10.4"
-    "@babel/traverse" "^7.11.5"
-    "@babel/types" "^7.11.5"
-    convert-source-map "^1.7.0"
-    debug "^4.1.0"
-    gensync "^1.0.0-beta.1"
-    json5 "^2.1.2"
-    lodash "^4.17.19"
-    resolve "^1.3.2"
-    semver "^5.4.1"
-    source-map "^0.5.0"
-
 "<EMAIL_ADDRESS>   version "7.12.10"
   resolved<EMAIL_ADDRESS>
and run yarn (which will apply further diffs) and it works

This is why we ask for minimal reproductions - if you start a new project (or just delete your yarn.lock and generate a new one) you'd have seen it working

One weird thing is if I don't export them to the top level index.ts, jest is running fine.

Jest does JIT translation, so if you don't import it the file isn't transpiled (and thus won't fail). Guessing that's why, but haven't dug into it

Many thanks! Didn't realize there is another @babel/core.
Was scratching my head over this.
Seems like just doing ncu -u is not necessary a good thing. :)
And thanks again for sharing yarn why <library>.

Many thanks! Didn't realize there is another @babel/core.
Was scratching my head over this.
Seems like just doing ncu -u is not necessary a good thing. :)
And thanks again for sharing yarn why <library>.


Fixing asComment method cannot handle multibyte characters

Original asComment method breaks character because of its way to separate sentence.
For exmaple "あいうえお" has 5 characters but it contains 15 bytes (3 bytes per 1 character) in UTF-8.
If we separate it by 5 bytes it will be broken.
As a result of the broken text, format.Source in Generate method in gen.go reports error something like illegal UTF-8 encoding.
This PR changes asComment method that it able to handle maxLen as a number of character count not byte count. So most case in single byte characters such as English would not be affected by this changes.

Would you mind adding a test case?

I added a test and merged a version of this. Thank you very much!


Missing cron table after fresh installation

Describe the bug
Certain page cannot be open, for example, Debug page.
I enable the error logging, and this was the error:
Severity: error --> Exception: Table 'wavelog.cron' doesn't exist /.../system/database/drivers/mysqli/mysqli_driver.php 301
Version Information
We need some information about your versions. You can get all Information in the Admin > Debug Menu

OS:               CentOS
PHP:              8.1.29
MySQL/MariaDB:    MariaDB 10.4.34
Wavelog:          master?

Additional Context
I was following the wiki installation guide, maybe I was using the wrong branch? I can't find the cron table definition inside install/assets/install.sql either.

Hello @yuko1225
this sounds like the database migrations or at least some of them failed. Please answer the following questions so we can figure out what happened here:
Did you install via git or manually with downloading the zip file?
If you installed via git go to the directory of your Wavelog Installation and perform a git branch -vv and copy the output in here.
Please check the value of $config['migration_version'] in the file application/config/migration.php. Don't change any value here!
If you have mysql access, show us the output of the following command:
SELECT * FROM migrations
You installed Wavelog on CentOS. Did you had any warnings in the installer?

It is a fresh installation, I gave up on migration from cloudlog(it was too missing something after migration). I used the git method.  Here is the output of git branch -vv:

master 8a9a0f0 [origin/master] Merge pull request #553 from wavelog/dev

I tried to checkout to the v1.7 tags, it didn't do anything.
$config['migration_version'] = 208;

MariaDB [wavelog]> SELECT * FROM migrations;
+---------+
| version |
+---------+
|     195 |
+---------+
1 row in set (0.001 sec)

No warning during installation, although it didn't went through the first time because I had InnoDB engine disabled on MariaDB. I re-enable the engine and went through the install wizard without any warnings. It is worth to notice that install wizard didn't check if the InnoDB is present.

Please turn on Error Logging (log_threshold) to Level 2 (Debug) and then call the page [WAVELOG_URL]/index.pgp/migrate
Check what you see in the Browser and the Error Log in application/logs/....

Please turn on Error Logging (log_threshold) to Level 2 (Debug) in your application/config/config.php and then call the page [WAVELOG_URL]/index.php/migrate
Check what you see in the Browser and the Error Log in application/logs/

Here is what I got:

DEBUG - 2024-07-29 21:18:45 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:18:50 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:18:55 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:18:56 --> No URI present. Default controller set.
DEBUG - 2024-07-29 21:18:56 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:18:56 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:18:56 --> Migration class already loaded. Second attempt ignored.
DEBUG - 2024-07-29 21:18:56 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:00 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:02 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:02 --> Migration class already loaded. Second attempt ignored.
DEBUG - 2024-07-29 21:19:02 --> Migration process is currently locked. Second migration attempt ignored.
ERROR - 2024-07-29 21:19:02 --> Severity: Warning --> Undefined property: stdClass::$user_language /.../application/controllers/User.php 795
DEBUG - 2024-07-29 21:19:02 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:03 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:03 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:05 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:05 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:05 --> Migration class already loaded. Second attempt ignored.
DEBUG - 2024-07-29 21:19:05 --> Migration process is currently locked. Second migration attempt ignored.
DEBUG - 2024-07-29 21:19:10 --> Migration process is currently locked. Second migration attempt ignored.

please delete the file application/cache/.migration_running and try the same again.
After that check if you can call the Debug Page (Admin > Debug Information)

please delete the file application/cache/.migration_running and try the same again.
After that check if you can call the Debug Page (Admin > Debug Information)

Okay. So I found the cause after remove this lock file.

DEBUG - 2024-07-30 02:08:13 --> Created migration lockfile
DEBUG - 2024-07-30 02:08:13 --> Migrating up from version 195 to version 196
ERROR - 2024-07-30 02:08:13 --> Severity: error --> Exception: Specified key was too long; max key length is 1000 bytes /home/cloudlog/system/database/drivers/mysqli/mysqli_driver.php 301

Apparently it was still related to the InnoDB, while I did enable the InnoDB I still kept the default engine as MyISAM. And it doesn't support key that over 1000 bytes long.

please delete the file application/cache/.migration_running and try the same again.
After that check if you can call the Debug Page (Admin > Debug Information)

please delete the file application/cache/.migration_running and try the same again.
After that check if you can call the Debug Page (Admin > Debug Information)

Okay. So I found the cause after remove this lock file.

DEBUG - 2024-07-30 02:08:13 --> Created migration lockfile
DEBUG - 2024-07-30 02:08:13 --> Migrating up from version 195 to version 196
ERROR - 2024-07-30 02:08:13 --> Severity: error --> Exception: Specified key was too long; max key length is 1000 bytes /.../system/database/drivers/mysqli/mysqli_driver.php 301

Apparently it was still related to the InnoDB, while I did enable the InnoDB I still kept the default engine as MyISAM. And it doesn't support key that over 1000 bytes long.

@yuko1225
There are sooooo many possible configurations and setups out there. We have a recommendation for a working setup. Installing on CentOS with a custom MySQL configuration is beyond the possible check coverage.
Did you manage to install Wavelog properly now by setting InnoDB as default?

@HB9HIL Yes it looks like it is working fine now. I understand my setup is atypical, still it wouldn't hurt to note on installation guide that InnoDB is required on wavelog. I'm pretty sure it wasn't required on Cloudlog.


Remove USDT from cross-conversion

After discussion -> keep as general token in cross-conversion. Closed.


Wasteful use of memory in AC and DiAC functions

@blakejohnson and @caryan can correct me if I am wrong, but I think redeclaring arrays of function and angles in the AC and DiAC methods leads to a lot of memory allocation and decallocation.
I suggest the static variable pattern, for example
begin
  local pulses = [
		q -> Id(q),
		q -> X90(q),
		q -> X(q),
		q -> X90m(q),
		q -> Y90(q),
		q -> Y(q),
		q -> Y90m(q),
		q -> Z90(q),
		q -> Z(q),
		q -> Z90m(q)
	]
  global AC

  function AC(q::Qubit, num)
	return pulses[num](q)
  end

end

I think I've already fixed this on the brj/review branch. I'm not 100% sure that Julia doesn't do this optimization for free. But in either case, it is better to simply make a list of function handles rather than anonymous functions.

Closed by https://github.com/BBN-Q/QGL.jl/pull/23


Multiple widgets used the same GlobalKey

hello, I want to ask why I got an error like the one below, even though I didn't make globalkey on my page or widget? but the error appears
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [LabeledGlobalKey#11994] was used by multiple widgets. The parents of those widgets were different widgets that both had the following description:
_EffectiveTickerMode(effective mode: enabled)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0      GlobalKey._debugVerifyGlobalKeyReservation... (package:flutter/src/widgets/framework.dart:253:13)
#1      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#2      GlobalKey._debugVerifyGlobalKeyReservation.. (package:flutter/src/widgets/framework.dart:200:20)
#3      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#4      GlobalKey._debugVerifyGlobalKeyReservation. (package:flutter/src/widgets/framework.dart:196:26)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

Hi @abdulrojak288
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

Hi @abdulrojak288
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

Flutter (Channel unknown, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale id-ID)
• Flutter version 1.22.5 at /Users/project_flutter/flutter
• Framework revision<PHONE_NUMBER> (3 months ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.0
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• iPhone  (mobile) • 6194bb18d853de19709ab7949c1db8f47623b634 • ios • iOS 12.5.1

Hi @abdulrojak288
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

class _MyAppState extends State with WidgetsBindingObserver {
StreamController _showLockScreenStream = StreamController();
StreamSubscription _showLockScreenSubs;
GlobalKey _navigatorKey = GlobalKey();
@override
void initState() {
super.initState();
WidgetsBinding.instance.addObserver(this);
_showLockScreenSubs = _showLockScreenStream.stream.listen((bool show){
  if (mounted && show) {
    _showLockScreenDialog();
  }
});

}
@override
void dispose() {
WidgetsBinding.instance.removeObserver(this);
_showLockScreenSubs?.cancel();
super.dispose();
}
// Listen for when the app enter in background or foreground state.
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
// user returned to our app, we push an event to the stream
_showLockScreenStream.add(true);
} else if (state == AppLifecycleState.inactive) {
// app is inactive
} else if (state == AppLifecycleState.paused) {
// user is about quit our app temporally
} else if (state == AppLifecycleState.suspending) {
// app suspended (not used in iOS)
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: _navigatorKey,
...
);
}
void _showLockScreenDialog() {
_navigatorKey.currentState.
.pushReplacement(new MaterialPageRoute(builder: (BuildContext context) {
return PassCodeScreen();
}));
}
}

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.

@abdulrojak288
try not to use the same key multiple times
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: _navigatorKey,
...
);
}

void _showLockScreenDialog() {
_navigatorKey.currentState.
.pushReplacement(new MaterialPageRoute(builder: (BuildContext context) {
return PassCodeScreen();
}));
}

this doesn't seem a bug with flutter
if you need assistance with your code please follow the link I want help writing my application in the new issue menu

Hi @abdulrojak288
I cannot reproduce this on latest stable channel using the code bellow.

code sample
import 'dart:async';

import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

Future<void> main() async {
  runApp(MaterialApp(
    theme: ThemeData.light(),
    home: App(),
  ));
}

class App extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class MainView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 200),
          child: TextFormField(
            textCapitalization: TextCapitalization.words,
            autofocus: false,
            keyboardType: TextInputType.text,
            textInputAction: TextInputAction.next,
            decoration: InputDecoration(
                contentPadding: EdgeInsets.zero,
                filled: true,
                hintText: 'Enter your name',
                suffix: IconButton(
                  icon: Icon(Icons.keyboard),
                  onPressed: () => {},
                )),
          ),
        ),
      ),
    );
  }
}

class _MyAppState extends State<App> with WidgetsBindingObserver {
  StreamController _showLockScreenStream = StreamController();
  StreamSubscription _showLockScreenSubs;
  GlobalKey<NavigatorState> _navigatorKey = GlobalKey();

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addObserver(this);

    _showLockScreenSubs = _showLockScreenStream.stream.listen((show){
      if (mounted && show) {
        _showLockScreenDialog();
      }
    });
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    _showLockScreenSubs?.cancel();
    super.dispose();
  }

// Listen for when the app enter in background or foreground state.
  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    if (state == AppLifecycleState.resumed) {
// user returned to our app, we push an event to the stream
      _showLockScreenStream.add(true);
    } else if (state == AppLifecycleState.inactive) {
// app is inactive
    } else if (state == AppLifecycleState.paused) {
// user is about quit our app temporally
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        navigatorKey: _navigatorKey,
        home: MainView(),
    );
  }

  void _showLockScreenDialog() {
    _navigatorKey.currentState.pushReplacement(new MaterialPageRoute(builder: (BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text('Lock Screen!'),
      ),
    );
    }));
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.2 20D80 darwin-x64, locale en-AO)
    • Flutter version 2.0.2 at /Users/pedromassango/Code/flutter_stable
    • Framework revision 8962f6dc68 (5 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/pedromassango/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 54.0.3
    • Dart plugin version 203.7759

[✓] VS Code (version 1.54.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.2 20D80 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.82

! Doctor found issues in 1 category.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Missing collection boot issue

My Environment

ArangoDB Version:         3.3.14 or self-compiled devel branch
Storage Engine:             MMFiles
Deployment Mode:      single
Deployment Strategy:   docker
Configuration:               basic
Infrastructure:               baremetal
Operating System:        Ubuntu 18.04
Used Package:              docker

Component, Query & Data
Affected feature:
server boot
AQL query (if applicable):
AQL explain (if applicable):

Dataset:

Replication Factor & Number of Shards (Cluster only):

Steps to reproduce

disk filled up
cleanup disk, reboot arango
arango wont boot

Problem:
This is what i see in the log file
2018-10-05T11:16:14Z [1] INFO replaying WAL logfile '/var/lib/arangodb3/journals/logfile-47161298.db' (1 of 1)
2018-10-05T11:16:22Z [1] INFO WAL recovery finished successfully
2018-10-05T11:16:23Z [1] INFO using endpoint 'http+tcp://<IP_ADDRESS>:8529' for non-encrypted requests
2018-10-05T11:16:23Z [1] ERROR JavaScript exception in file<EMAIL_ADDRESS>at 97,12: ArangoError 1203: collection not found: _queues
2018-10-05T11:16:23Z [1] ERROR !  internal.createQueue(key, maxWorkers || 1);
2018-10-05T11:16:23Z [1] ERROR !           ^
2018-10-05T11:16:23Z [1] FATAL {v8} error during execution of JavaScript file 'server/server.js'
Any ideas on how to recover from this situation?

Can you try starting arangod with option --foxx.queues false?
This should avoid this particular problem at server start.

Hi @cbluth
Just sending a followup - did you have the chance to try jsteemann's suggestion?
Best

Hi @cbluth
I am closing this ticket as we did not receive any update for you so far.
If needed please, comment here and we will reopen this ticket again
Best,


chore(policies): use display-name label for policy listing

Use display-name and namespace labels for policy listings

I noticed that the mock for the affected dataplanes endpoint was static, so I changed that up but also that this endpoint is paged, but we don't offer any paging and we use frontend searching on the single page. I stopped short of doing anything towards changing this tho. Not sure if its on purpose or just an accidental omission? We might want to follow up with changing that soon.
Closes https://github.com/kumahq/kuma-gui/issues/2372

but we don't offer any paging and we use frontend searching on the single page. I stopped short of doing anything towards changing this tho. Not sure if its on purpose or just an accidental omission?

@kleinfreund any thoughts on this ^

@kleinfreund any thoughts on this ^

Not really. This can definitely be improved, but users are relatively unlikely to run into limitations here


suggestion to add lighting metadata to Datapoint

to:
https://github.com/DatagenTech/dgutils/blob/59b518946d29e5be16b2b4808e334f41144fa55f/DataLoader/DatapointHandler.py#L98-L102
add the following:
        if "environment" in fn:
            for env_dict in local_dict["environments"]:
                if env_dict['image_name'] == os.path.basename(self._render_path):
                    local_dict = env_dict
                    break

to:
https://github.com/DatagenTech/dgutils/blob/59b518946d29e5be16b2b4808e334f41144fa55f/DataLoader/DatapointHandler.py#L197-L201
add:
            "environment.json "

to:
https://github.com/DatagenTech/dgutils/blob/59b518946d29e5be16b2b4808e334f41144fa55f/DataLoader/Datapoint.py#L55-L58
add:
            # Image modalities handlers. This is a private field.
            # Use the property fields below to access image modalities
            image_handlers: Structure

             # lighting
              image_name: str
              environment: str
              time_of_day: str
              background: str

Thank you, we will pass the feature request to Product.


type mismatch (metal)

Tried converting the shader below in Unity 2018.1.2 and received this error -
Shader error in 'ShaderMan/Seascape': type mismatch at line 125 (on metal)
Compiling Vertex program
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING
https://www.shadertoy.com/view/Ms2SD1

Are there specific shader types that this works with?

Tried that on the default build mode in editor - Mac/Win
also tried converting to iOS - I suppose this isn't supported there yet?

Hi thanks for your feedback
It's common problem and you can solve It easily
change uv *= octave_m; to uv = mul(octave_m,uv);

my friend coverted this shader you can use his code :
https://github.com/przemyslawzaworski/Unity3D-CG-programming/blob/master/ocean.cs
https://github.com/przemyslawzaworski/Unity3D-CG-programming/blob/master/ocean.shader


docs: fix incorrect light-client example

Motivation
Make sure that the light-client example embedded in the README.md file compiles.

Maybe we should run yarn check-readme in CI along with tests to keep these readmes compile-able?

We actually do
https://github.com/ChainSafe/lodestar/blob/88744d8a4877499c8c7aa43aeb4d576b98581faf/.github/workflows/test.yml#L144-L145
But it doesn't seem to care at all
~/projects/ethereum/lodestar/packages/light-client [unstable ≡ +0 ~1 -0 !]> yarn check-readme
yarn run v1.22.19
$ typescript-docs-verifier
ℹ Compiling documentation TypeScript code snippets from README.md
ℹ Found 1 TypeScript snippets
✔ All snippets compiled OK

@jeluard how did you verify and determine the changes to make it compile, just copy pasted it into a .ts file?

@nflaig Yes, copy pasted.

:tada: This PR is included in v1.15.0 :tada:


Update to archiver@latest

Seems like this was an archiver issue that has since been fixed.
Upgraded dependency to archiver@latest.
Fixes node-freight/freight#22

Thanks!


tryCatch in an interface/"typeclass"?

🚀 Feature request
Is there a plan (or is it already possible) to have a single interface representing IOEither and TaskEither that includes their tryCatch (like by adding to MonadIO2)?
Current Behavior
tryCatch is not part of MonadIO2 and not part of any relevant typeclass best I can tell.
I consume an API that currently is over the network and it makes sense to use TaskEither. I anticipate this will move closer to the application (say, changing from DB to flat file) and it will make sense to be IOEither instead.
If I wanted to write this API interface in "tagless final" (or at least generically) so I don't have to change a bunch of code when we switch from async to sync, I might do (and then like to do):
interface Consumer<M extends URIS2> {
  getDatum: (a:string) => Kind2<M, DomainError, number>
}
const consumer = <M extends URIS2>(m:IOMonad2<M>) => ({
  getDatum: m.tryCatch(()=>someApiCall('test'), ()=>({_tag:'SomeDomainError'})
})

What I Tried
The problem is that IOMonad2 (and, it seems, no related interface) has tryCatch as a property. I tried creating my own,
interface Tryable<M extends URIS2> {
  tryCatch: <E,A>(f:Lazy<Promise<A>>, onError: (reason: unknown) => E) => Kind2<M, E, A>
}

But as you can guess this does not work because only TaskEither's tryCatch takes Lazy<Promise<A>>. The others take Lazy<A>.
Suggested Solution
Right now, I figure I need to pass in the "thunk type" as part of the interface definition:
interface Tryable<M extends URIS2, ThunkType extends 'Task'|'IO'> extends MonadIO2<M> {
  tryCatch: <E, A>(f:Kind<ThunkType, A>, onError: (e:unknown)=>E) => Kind2<M, E, A>
}
const te: Tryable<'TaskEither', 'Task'> = { ...TE.taskEither, tryCatch: TE.tryCatch}
const ioe: Tryable<'IOEither', 'IO'> = { ...IOE.ioEither, tryCatch: IOE.tryCatch}

Luckily Lazy<Promise<A>> is the same type as Task<A> and Lazy<A> is the same type as IO<A>, but this wouldn't hold true for, say, Option.tryCatch. I suppose that would be o: Tryable<'Option', 'IO'> as a hack. Same for e: Tryable<'Either', 'IO'>. IT feels like a hack to involve IO in Option and Either to make Tryable work.
Who does this impact? Who is this for?
This impacts anyone who'd like to write in a more generic style. I think this is "tagless final", but I am not fully fluent in FP terminology yet.
Your environment

Software
Version(s)

fp-ts
2.6.0

TypeScript
3.9.2

Hm, this still doesn't seem to work when trying to instantiate an object that implements an interface
export default <M extends URIS2>(m:Tryable<M>) => (config: Config) => ({
  repository: consumer(m)(config.repoConfig)
})

Need to pass in an N generic as well, but there's no current way of tying M and N together. Maybe some kind of "thunk type lookup table":
interface MNLookup {
  'TaskEither': 'Task'
  'IOEither': 'IO'
}
interface _Tryable<M extends keyof MNLookup> extends Monad2<M> {
  tryCatch: <E,A>(m:Kind<MNLookup[M],A>, onError: (e:unknown) => E) => Kind2<M,E,A>
}

declare const _te: _Tryable<'TaskEither'>
declare const _ioe: _Tryable<'IOEither'>
declare const f: (i:string)=>Promise<number>
const isEven = (a:number) => a%2===0

F.pipe(
  _te.tryCatch(()=>f('test'), _e => 'async error'),
  resultTE => _te.map(resultTE, isEven)
)  // TaskEither<string,boolean> (TE.right(false))

F.pipe(
  _ioe.tryCatch(()=>5, _e => 'sync error'),
  resultIOE => _ioe.map(resultIOE, isEven)
) // IOEither<string,boolean> (IOE.right(false))

Hmm, seems like at the end of the day, you still end up having your core repository functions explicitly written using fetch (async) or sequeliteTable.findAll or fs.readFileSync, so maybe is just a pointless exercise.

tryCatch is for interop so it's supposed to be used to define an instance of the Consumer type class
import { Kind2, URIS2 } from 'fp-ts/HKT'
import { Monad2 } from 'fp-ts/Monad'
import * as TE from 'fp-ts/TaskEither'
import * as IE from 'fp-ts/IOEither'

// -------------------------------------
// tagless final pattern
// -------------------------------------

// type class
interface Consumer2<M extends URIS2> extends Monad2<M> {
  readonly getDatum: (a: string) => Kind2<M, Error, number>
}

// program usgin the type class
function myprogram<M extends URIS2>(C: Consumer2<M>): Kind2<M, Error, string> {
  return C.map(C.getDatum('a'), (n): string => (n > 0 ? 'positive' : 'non positive'))
}

// instance for TaskEither
const consumerTaskEither: Consumer2<TE.URI> = {
  ...TE.taskEither,
  getDatum: (s) =>
    TE.tryCatch(
      () => Promise.resolve(s.length),
      () => new Error()
    )
}

// instance for IOEither
const consumerIOEither: Consumer2<IE.URI> = {
  ...IE.ioEither,
  getDatum: (s) =>
    IE.tryCatch(
      () => s.length,
      () => new Error()
    )
}

// run
myprogram(consumerTaskEither)()

tryCatch is for interop so it's supposed to be used to define an instance of the Consumer type class
import { Kind2, URIS2 } from 'fp-ts/HKT'
import { Monad2 } from 'fp-ts/Monad'
import * as TE from 'fp-ts/TaskEither'
import * as IE from 'fp-ts/IOEither'

// -------------------------------------
// tagless final pattern
// -------------------------------------

// type class
interface Consumer2<M extends URIS2> extends Monad2<M> {
  readonly getDatum: (a: string) => Kind2<M, Error, number>
}

// program usgin the type class
function myprogram<M extends URIS2>(C: Consumer2<M>): Kind2<M, Error, string> {
  return C.map(C.getDatum('a'), (n): string => (n > 0 ? 'positive' : 'non positive'))
}

// instance for TaskEither
const consumerTaskEither: Consumer2<TE.URI> = {
  ...TE.taskEither,
  getDatum: (s) =>
    TE.tryCatch(
      () => Promise.resolve(s.length),
      () => new Error()
    )
}

// instance for IOEither
const consumerIOEither: Consumer2<IE.URI> = {
  ...IE.ioEither,
  getDatum: (s) =>
    IE.tryCatch(
      () => s.length,
      () => new Error()
    )
}

// run
myprogram(consumerTaskEither)()


Mxnet is not working fine with mxnet.js

I am trying to use in mxnet.js  and a googlenet model which we created via Caffe. Unfortunately, It seems mxnet.js doesn't accept this updated version from the inception model (This model works fine with mxnet and python)...
I downloaded mxnet.js and the last updated version for mxnet, and I received this error if I apply the test test_on_node.js with my inception model.
carlos@carlos-ubuntu7 ~/javascript-workspace/test-mxnet/mxnet.js $ nodejs test_on_node.js
missing function: _ZN5mxnet2op16SimpleOpRegistry3GetEv
-1
-1
/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1
(function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require===
abort(-1) at Error
    at jsStackTrace (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:18243)
    at stackTrace (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:18426)
    at abort (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:18:17965)
    at __ZN5mxnet2op16SimpleOpRegistry3GetEv [mxnet::op::SimpleOpRegistry::Get()] (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:42036)
    at lY (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:10:264603)
    at asm.__GLOBAL__sub_I_mxnet_predict_all_cc (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:18:6401)
    at __ATINIT__.push.func (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:27394)
    at callRuntimeCallbacks (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:22340)
    at ensureInitRuntime (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:1:22840)
    at doRun (/home/carlos/javascript-workspace/test-mxnet/mxnet.js/libmxnet_predict.js:18:16456)

It seems, the mxnet is not compiling fine with mxnet.js, the error is with:
this: missing function: _ZN5mxnet2op16SimpleOpRegistry3GetEv

Did you try make clean and make again?

I included  src/operator/operator_util.cc  in  mxnet_predict0.cc
#include "src/symbol/static_graph.cc"
#include "src/symbol/symbol.cc"
#include "src/operator/operator.cc"
+#include "src/operator/operator_util.cc"
#include "src/operator/activation.cc"
#include "src/operator/batch_norm.cc"
#include "src/operator/block_grad.cc"
Now, It seems  compiles fine... (first step accomplished) but I am testing with test_on_node.js ... and it gives me another  error / warning:
[09:31:14] mxnet_predict-all.cc:550: [09:31:14] mxnet_predict-all.cc:7571: Check failed: eshape[0] == 0 || eshape == dshape Assignment: Shape of Tensors are not consistent with target
I don't know exactly what problem is (It could be a problem with my model...), But if someone has any idea, I would appreciate it...
My inception model was tested with an python example for mxnet and it works fine... For this reason, I would discard a problem with my model...

Also, I checked the fastpoor.json model which it is included in the repository and it doesn't work...

Same error as https://github.com/dmlc/mxnet/issues/2178
I've just send a PR to fix the problem. You need to change mshadow/dot_engine-inl.h
https://github.com/dmlc/mshadow/pull/120/commits/cc506b69f465c26c38c1e3a50ff7de1f5f508e2c

Thanks @SlipknotTN , it is compiling fine but It doesn't work fine... I compare result with the fastpoor.json model (before and after) and they are giving strange results...
This is my output if I execute test_on_node.js with the new compiled version (I analyse cat.png and I load the fastpoor.json)
Warning: Enlarging memory arrays, this is not fast! 16777216,33554432

enlarged memory arrays from 16777216 to 33554432, took 6 ms (has ArrayBuffer.transfer? false)
Max=1000
Top: n02127052 lynx, catamount , value=0.48860809206962585
Top: n03958227 plastic bag , value=0.07041524350643158
Top: n02123045 tabby, tabby cat , value=0.07001253962516785
Top: n02124075 Egyptian cat , value=0.06479660421609879
Top: n02909870 bucket, pail , value=0.057837821543216705

Mhm... this is strange, I have exactly the same results as before. The fix

+#include "src/operator/operator_util.cc"

is correct and I have used it. I have also added

#include "src/operator/elementwise_unary_op.cc"

and removed

#include "src/ndarray/unary_function.cc"
#include "src/common/tblob_op_registry.cc"

On Google Chrome, fastpoor and cat.png I get this results:
Top-1:n02123159 tiger cat, value=0.32267525792121887
Top-2:n02123045 tabby, tabby cat, value=0.2338210940361023
Top-3:n02124075 Egyptian cat, value=0.18019989132881165
Top-4:n02909870 bucket, pail, value=0.1256609559059143
Top-5:n03958227 plastic bag, value=0.032655153423547745

I am going to check it.. It can be my problem, the web example with the classifier_image.js seems fine

The browser example is working fine..., but the nodejs example test_on_nodesj, It doesn't work me... I will close the ticket, and I will try to get time to understand why it is not working.. Will someone apply this change in a pull request?? I