optimize: Configurable global transaction timeoutMillis

Ⅰ. Describe what this PR did
optimize: Configurable global transaction timeoutMillis
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2806 into develop will decrease coverage by 0.12%.
The diff coverage is 57.14%.

@@              Coverage Diff              @@
##             develop    #2806      +/-   ##
=============================================
- Coverage      50.18%   50.05%   -0.13%
- Complexity      2919     2920       +1
=============================================
  Files            578      578
  Lines          18724    18706      -18
  Branches        2253     2210      -43
=============================================
- Hits            9396     9364      -32
+ Misses          8396     8387       -9
- Partials         932      955      +23

Impacted Files
Coverage Δ
Complexity Δ

...ava/io/seata/core/constants/ConfigurationKeys.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...in/java/io/seata/core/constants/DefaultValues.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...a/io/seata/tm/api/transaction/TransactionInfo.java
88.46% <ø> (ø)
14.00 <0.00> (ø)

.../autoconfigure/properties/client/TmProperties.java
40.00% <50.00%> (+1.90%)
4.00 <1.00> (+1.00)

...ing/annotation/GlobalTransactionalInterceptor.java
25.00% <66.66%> (+0.39%)
7.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

... and 26 more


Siren based nerf

Thanks for your wonderful implementation first.
I saw your discussion about siren based nerf in here https://github.com/bmild/nerf/issues/60
this topic was discussed long time ago but, I tried little experiments with your base implementation.
I also tried siren layer based NeRF and test results shows better performance then reference NeRF with clear edge
there is little hyper param changes for faster experiments but,
for horn scene

reference nerf with PE shows PSNR 29.29 for valid

siren based nerf w/o PE shows PSNR 30.32 for valid
and also like leaves

reference nerf with PE shows PSNR 20.99 for valid

siren based nerf w/o PE shows PSNR 21.70 for valid
or flower scene

reference nerf with PE shows PSNR 27.31 for valid

siren based nerf w/o PE shows PSNR 29.07 for valid
I'd like to have little discussion of your implementation version for siren,
can you share your results or thinks within your experiments?

Hi, thanks for your fruitful experiments. Unfortunately I forgot the exact settings for my siren network, I think I used the same network as here.
What is your network structure?
By the way, I plan to do some experiments about different coordinate mlps (positional encoding, siren, fourier features, and the recent gaussian activation) next week, and I will share my findings in this repo

I use same network structure as you linked,
In my experiments,
Missing of weights initialization for first layer make simmilar blurred error as you metioned ago.
I just change all of linear+sigmoid to linear+sine without last layer for sigma and rgb.
I think I can make PR for this experiment with --siren opt later.
Also, Suggest some coordinate mlps which fits with 3D coordinate system https://arxiv.org/pdf/2106.01553.pdf
maybe this approach in 3D coordinate sytem could help NeRF performance
I will look foward to your coordinate mlps repo!
Thanks for your reply.

It will be great if you can share your model definition with a PR!
Thanks for the paper suggestion, I will try to add that to my implementation too!

I use same network structure as you linked,
In my experiments, Missing of weights initialization for first layer make simmilar blurred error as you metioned ago.
I just change all of linear+sigmoid to linear+sine without last layer for sigma and rgb. I think I can make PR for this experiment with --siren opt later.
Also, Suggest some coordinate mlps which fits with 3D coordinate system in here maybe this approach in 3D coordinate sytem could help NeRF performance
I will look foward to your coordinate mlps repo! Thanks for your reply.

Hi, I also did the experiments and I got a few problems. I trained my own scene on both the PE-NeRF and SIREN-NeRF. It turns out that using SIREN layers instead of ReLU-MLP leads to a way less PSNR score (around 5dB less). My network structure is a 6-layer SIREN plus a linear+softplus in the output. I tried different w in the first layer, from 30 to 1 (I guess w is a very important hyper-parameter and it should be carefully tuned based on datasets.). For the rest of the layers, the w was kept 1.
May I ask a few questions about your experiments？

Can you share your choices of w in these experiments? Did they remain the same on different LLFF datasets?
I have tried a combination of SIREN+PE, it seems better than SIREN w/o PE. I was inspired by the paper talking about Gaussian activation, the paper says a combination of PE and Gaussian leads to better results. Do you have any experiments about this?

Thanks a lot!

I use same network structure as you linked,
In my experiments, Missing of weights initialization for first layer make simmilar blurred error as you metioned ago.
I just change all of linear+sigmoid to linear+sine without last layer for sigma and rgb. I think I can make PR for this experiment with --siren opt later.
Also, Suggest some coordinate mlps which fits with 3D coordinate system in here maybe this approach in 3D coordinate sytem could help NeRF performance
I will look foward to your coordinate mlps repo! Thanks for your reply.

Hi, I also did the experiments and I got a few problems. I trained my own scene on both the PE-NeRF and SIREN-NeRF. It turns out that using SIREN layers instead of ReLU-MLP leads to a way less PSNR score (around 5dB less). My network structure is a 6-layer SIREN plus a linear+softplus in the output. I tried different w in the first layer, from 30 to 1 (I guess w is a very important hyper-parameter and it should be carefully tuned based on datasets.). For the rest of the layers, the w was kept 1.
May I ask a few questions about your experiments？

Can you share your choices of w in these experiments? Did they remain the same on different LLFF datasets?
I have tried a combination of SIREN+PE, it seems better than SIREN w/o PE. I was inspired by the paper talking about Gaussian activation, the paper says a combination of PE and Gaussian leads to better results. Do you have any experiments about this?

Thanks a lot!

Hello Chuhan Wang10
Sorry for the late reply.

I also conducted an experiment with the same w as you said.
In SIREN's original implementation and supplement, it was said that even if w was 30 in all layers, it went well, but in nerf it was not.  So I set w0=30, and the other w=1. Also, for w0=30, the input range in SIREN paper and the range of NeRF are different, so currently I try to understand the method.

ps. Did you initialize your weight params with 1/n and sqrt(c/n) correctly?
In my experience, It makes much differences too.

Before I saw the above results, I also tried the SIREN+PE experiment. I think the performance was better at that time, but I didn't do many experiments because it seemed right to experiment after understanding both the correct understanding of SIREN and the method to apply it to NeRF.

Thanks for your interest


UI fit & finish

Lots of UI fit & finish across the whole AI Lab app, including:

Horizontal lines to separate panel headings from bodies.
Dark grey backgrounds are gone.
Font sizes variations are reduced, it's mostly 24px and 14px now.
Upload CSV is reduced to a single button.
User can now upload a CSV, then choose a built-in dataset, and then re-upload the same CSV and it will be used.
Force wrapping on long strings (e.g. source URLs) to prevent horizontal scrolling in right panel.
Dataset tiles can be various heights due to different title lengths and still lay out cleanly.
Statement font size is reduced.
Statement gets underscores for blank fields.
Statement just shows "Predict _____" at first, then "based on _____" when ready to add features.
Removed X in column inspector.
Column inspector fields get clear headings.
Ensured buttons to select label & features are always visible, scrolling content above if necessary.
GenerateResults heading changed to "Testing the model".
The A.I. bot now slides from the middle to the top in GenerateResults.
The predict beam in GenerateResults is now more saturated and is correctly positioned against the bot.
Subtle hover highlight for rows in results table.
Predict now has an A.I. bot.
Lots of save model tidying.
Added support for more than two description detail fields when saving model.
Standalone mode gets clearer messaging around simulated overlay dismissal.

https://user-images.githubusercontent.com/2205926/119808038-93dd6a80-be98-11eb-8aa8-87d1624c5bf1.mov

I literally clapped when I watched the video in the PR description. SO much cleaner and crisper and nice attention to little details. 😍

I think 'Extrema' for the min/max/range is too high on the vocabulary scale if our target audience is middle schoolers. I notice the label above the scatterplot is "Relationship information" - I wonder if we can use "Column information" for this section instead? That way, we can also use it for the bar charts with categorical data - both the bar chart and the min/max/range are column-specific info, and I think it makes it a little clearer what differentiates the 2 sections.

Done.

Just wondering - did the crosstab tables for categorical data get any style updates in this too? Or maybe that's waiting for the bar charts to appear in the column explorer panel (like this card) to update those stylings together?

@dancodedotorg  I haven't done any CrossTab styling in this PR but can address it in a followup.  Are there specific changes we have in mind?

@dancodedotorg I haven't done any CrossTab styling in this PR but can address it in a followup. Are there specific changes we have in mind?

I trust the improvements you and Mark are scoping; I was more just making sure I didn't miss anything when reviewing. I wouldn't want to say "This PR looks great!" only to go "actually, for the cross tabs..." later.

I am going to add more feedback but wanted to start with a large, bold WOW


Better/Customizable Escape Key handling

Comment made in firefox marketplace feedback:

saka key eats up Esc key events. other addon cannot use Esc key events.

Just some comments....
I have not encountered this in Firefox.  Firefox is the only browser I use.  However, I don't use more than half a dozen addons.
Does SakaKey actually BIND the escape key or just use it's native functionality?
If it is BOUND, I would think it should be an entry in the Options/Keybindings settings.

Saka Key does eat Escape Keys to defocus text elements.
This is the culprit line: https://github.com/lusakasa/saka-key/blob/bc85a12682ae82e6f9445d15a6d87b937991d98a/src/modes/text/client.js#L3
I think the approach @joefiesta describes is the way to go. When Text Mode Commands are added (#87), Escape will be bound to a defocus element command.

It's a bit bothersome, because other sites can't bind to Escape either -- such as a webapp for transcription, where I can't use Escape to pause/play recordings while typing as it always defocuses the input element.


Google Play does not open

On Android Phone it opens, but on desktop -- not.
dragonserw@orangepi5:~$ ping play.google.com -c 5
PING play.google.com (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=113 time=45,791 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=113 time=44,204 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=113 time=44,186 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=113 time=44,237 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=113 time=44,195 ms
--- play.google.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 44,186/44,523/45,791/0,634 ms
dragonserw@orangepi5:~$ traceroute play.google.com
traceroute to play.google.com (<IP_ADDRESS>), 30 hops max, 60 byte packets
 1  router.lan (<IP_ADDRESS>)  0.326 ms  0.265 ms  0.339 ms
 2  <IP_ADDRESS> (<IP_ADDRESS>)  1.370 ms  1.333 ms  1.298 ms
 3  <IP_ADDRESS> (<IP_ADDRESS>)  1.806 ms  1.706 ms  1.665 ms
 4  <IP_ADDRESS> (<IP_ADDRESS>)  1.796 ms  1.736 ms  1.694 ms
 5  kdr06rb.transtelecom.net (<IP_ADDRESS>)  5.480 ms  5.445 ms  5.412 ms
 6  * * mskn15-lo1.transtelecom.net (<IP_ADDRESS>)  34.177 ms
 7  google-gw.transtelecom.net (<IP_ADDRESS>)  35.337 ms  30.832 ms  34.242 ms
 8  <IP_ADDRESS> (<IP_ADDRESS>)  31.739 ms <IP_ADDRESS> (<IP_ADDRESS>)  31.885 ms <IP_ADDRESS> (<IP_ADDRESS>)  31.855 ms
 9  <IP_ADDRESS> (<IP_ADDRESS>)  39.000 ms  41.654 ms <IP_ADDRESS> (<IP_ADDRESS>)  38.759 ms
10  <IP_ADDRESS> (<IP_ADDRESS>)  49.029 ms <IP_ADDRESS> (<IP_ADDRESS>)  46.992 ms <IP_ADDRESS> (<IP_ADDRESS>)  48.777 ms
11  <IP_ADDRESS> (<IP_ADDRESS>)  46.118 ms  46.453 ms <IP_ADDRESS> (<IP_ADDRESS>)  48.106 ms
12  <IP_ADDRESS> (<IP_ADDRESS>)  43.950 ms <IP_ADDRESS> (<IP_ADDRESS>)  45.199 ms  48.137 ms
13  mad06s09-in-f142.1e100.net (<IP_ADDRESS>)  44.019 ms  43.390 ms  42.985 ms
dragonserw@orangepi5:~$

Since this issue is not related to the service (the end user manages host lists), I'll be closing this issue

Hello tarampampam!
What should I do to open Play Market on my desktop?


Duplicate error set field 'Unknown',  in GetImageViewAddressNVXError

I've been following vulkan-tutorial.com in the recent days and today after updating to the latest zig compiler, I got this error while compiling. Basically there is a 'VK_ERROR_UNKNOWN' in the errors and in the function "renderErrorSet" in the file "generator/vulkan/render.zig" it writes 'Unknown' unconditionally at the end. Thus contrasting with the 'Unknown' of vk_error ....
A quick fix I made to continue is this
fn renderErrorSet(self: *Self, errors: []const []const u8) !void {
           try self.writer.writeAll("error{");
           for (errors) |name| {
               /////////////////////////////////////////
               const error_unknown = "VK_ERROR_UNKNOWN";
               if (name.len == error_unknown.len and std.mem.eql(u8, name, error_unknown)) {
                    continue;
                }
              /////////////////////////////////////////
               try self.renderResultAsErrorName(name);
               try self.writer.writeAll(", ");
           }
           try self.writer.writeAll("Unknown, }");
       }

With this it now works, I guess it wasn't an error in earlier versions of the compiler?

Should be closed in aac20d107a9c04a09dd756d7b5e1edacc0cf23a0


java.lang.ArrayStoreException: java.lang.Object[] cannot be stored in an array of type com.oplus.tbl.exoplayer2.upstream.Allocation[] at clearAllocationNodes

Version
ExoPlayer 2.14.0
More version details
java.lang.ArrayStoreException: java.lang.Object[] cannot be stored in an array of type com.oplus.tbl.exoplayer2.upstream.Allocation[] at com.oplus.tbl.exoplayer2.source.SampleDataQueue.clearAllocationNodes(SampleDataQueue.java:4) at com.oplus.tbl.exoplayer2.source.SampleDataQueue.reset(SampleDataQueue.java:1) at com.oplus.tbl.exoplayer2.source.SampleQueue.reset(SampleQueue.java:2) at com.oplus.tbl.exoplayer2.source.SampleQueue.release(SampleQueue.java:1) at com.oplus.tbl.exoplayer2.source.ProgressiveMediaPeriod.onLoaderReleased(ProgressiveMediaPeriod.java:2) at com.oplus.tbl.exoplayer2.upstream.Loader$ReleaseTask.run(Loader.java:1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012)
Devices that reproduce the issue
All
Devices that do not reproduce the issue
No
Reproducible in the demo app?
Yes
Reproduction steps
play video
Expected result
No crash
Actual result
crash
Media
NO
Bug Report

[ ] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Hi @captain81,
The implementation of the method clearAllocationNodes has changed since ExoPlayer 2.14.0 (eg. https://github.com/google/ExoPlayer/commit/c3b470f308487d28d132fa6e23be56c37e5ce91f), could you please upgrade the library version and see if this is still an issue?


fix name and description

this is not the "Nintendo Game Boy Link Cable protocol", but the BGB emulator link and remote control protocol. the Nintendo DMG Link Cable is a full-duplex synchronous serial port and doesn't even know what a joypad event is.

Hm, I haven't looked at this repo for a while.
Libwireshark seems to have changed enough since I wrote this that a simple sed won't solve things, unfortunately, but when I get the time, it should be a fairly simple fix.
Thanks for the correction.


Css mso-height-rule:

VSCode Version: Code 1.9.1 (f9d0c687ff2ea7aabd85fb9a43129117c0ecf519, 2017-02-09T00:26:45.394Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

html-snippets
abusaidm
0.1.0

vscode-css-formatter
aeschli
0.0.2

vscode-color
anseki
0.2.3

jshint
dbaeumer
0.10.15

vscode-eslint
dbaeumer
1.2.6

vscode-html-css
ecmel
0.0.33

tslint
eg2
0.8.1

beautify
HookyQR
0.8.8

sublime-babel-vscode
joshpeng
0.2.4

format-php
Kasik96
1.1.2

sass-indented
robinbentley
1.3.0

guides
spywhere
0.6.1

stylint
vtfn
0.0.2

html-css-class-completion
Zignd
1.0.3

Steps to Reproduce:

Please provide more details.
What is the expected behavior, what you are seeing and what are the steps to reproduce?

Closing until more details are provided


High Severity issue: XXXXXXX placeholder issue a1904204.txt

Hi,
Thank you for maintaining the repository .
The issue noticed in the file 'a1904204.txt'
Issue: line 1 has an issue "LEAST RATHER HOWEVER national within XXXXXXX after. toward his imagine XXXXXXX everyone arrive single XXXXXXX need approach".
The placeholder XXXXXXX is in different places and this need to be changed.
Commit: 176493af9881d119ada3a2bb9cb9bf82475b33cc
Author: Dave Lawrence<EMAIL_ADDRESS>Date:   Mon Sep 23 16:50:54 2024 +0930
Actual Behaviour:
the placeholder XXXXXXX will be visible.
LEAST RATHER HOWEVER national within XXXXXXX after
toward his imagine XXXXXXX
everyone arrive single XXXXXXX need approach
Expected Behaviour:
XXXXXXX placeholder should be removed.
I am planning to submit pull request for the issue.
Thankyou
Greeshma Sivaprasad

Commit was 41c655ef90dce7f66a2eebc8a45d7c33ff9b4a3b "syndicate granular applications"


Tokens not working after dynamic form submission

I have created a content type and am using it to bind the dynamic form elements,I have created a workflow to display a message to the user after form submissions.
I am using the dynamic form submitted activity and notify activity.
The tokens for example {Content.Fields.MyForm.FirstName}  are empty.
None of my form type tokens are working, I have added all the appropriate bindings

For dynamic forms you will want to use the new FormSubmission token. Something like {FormSubmission.Field:MyFieldName}

Tried using {FormSubmission.Field:MyForm.FirstName}   and   {FormSubmission.Field:FirstName}
Did not work

Can you try it with a '#' sign in front of the opening brace? That would be #{FormSubmission.Field:FirstName}

Tried using #{FormSubmission.Field:FirstName}. It did not work

Hi @uzmaamatul1236 , did you ever find success - I gave up on tokens in Dynamic Forms [as they never worked], but now I have a desparate use case [1.9.2 - 1.10].  Has anyone gotten tokens to work with Dynamic Forms, surely we're the minority as i'd imagine more reporting by others if not?

See #6477 and this commit https://github.com/OrchardCMS/Orchard/commit/369096864611f9b4b60a1718020da62fe6c4d51b#commitcomment-16466869 in 1.10 that will be merged in dev.
Best

Thanks @jtkech , I had already pulled that and it did indeed fix field binding issues - but not Tokens, as per #6530

I don't remember the details but it was working for me after fixing the binding issue, but in the dev branch. Maybe this #6445 will help, but may depend on the version.
Do you use the form field tokens or your content type tokens? Do you use a timer activity after submission, and before using tokens? If so, you may also need this PR #6452.
Do you have enabled the element tokens filter feature (for elements)? Oh, i also remember this PR #6194 about a cohabitation issue when the regular tokens filter (for content part) is also enabled, one can kill the token before being processed by the other (see the PR and the related issue). But this PR was reverted because one unit test would need to be changed.
Best


[Fix] add support for webpack 5 'externals function'

This PR allows functions for resolving externals for both webpack 5 and prior to webpack 5 (issue: #1966 )

To handle configs for both webpack 5 and priors, this PR checks externals.length as webpack does.
In webpack 5.15, getResolve function is added to the object in the first argument, so this PR provides a very simple getResolve implementation (using the return value of getResolveSync).
In this PR async 'external functions' are still not supported (as async webpack config not supported; related: #1962)

synchronized-promise might be usable to resolve this, but I haven't tried yet. (If it is OK, I'll try to add using synchronized-promise into this PR or another.)

Coverage increased (+0.3%) to 69.827% when pulling b7bce6156cb4fc8df17d1c0b851642e6f0cae17b on jet2jet:support-webpack5-externals-function into e871a9a2e18fd4d67a5a237789131b44cc705b5b on benmosher:master.

Coverage increased (+0.3%) to 69.827% when pulling b7bce6156cb4fc8df17d1c0b851642e6f0cae17b on jet2jet:support-webpack5-externals-function into e871a9a2e18fd4d67a5a237789131b44cc705b5b on benmosher:master.

Coverage increased (+0.3%) to 69.827% when pulling b7bce6156cb4fc8df17d1c0b851642e6f0cae17b on jet2jet:support-webpack5-externals-function into e871a9a2e18fd4d67a5a237789131b44cc705b5b on benmosher:master.


networkd: both ApplyNetworkResource and GenerateWGKeys need to be idempotent

They method need to have no effect, if called multiple time with the same config. The ApplyNetworkResource however need to take proper action to apply configuration to reality.

fixed in https://github.com/threefoldtech/zosv2/commit/4ec2a51be737222952e069442cae83a7772ac0d0


FritzBox status is "ON" although internet is down

The status of my Fritzbox in HomeKit stayed ON, although the internet connection was down for several hours.
The status should switch to OFF without Internet imho.

Fritz!Box 6590 Cable
Fritz!OS 7.01


Feature Request: Export models as TensorFlow models

Would it be possible to export the models as TensorFlow models. In that way we wouldn'nt need to depend on ludwig and its dependencies to just run the inference part, and additionally we could convert the models to tflite so that we run them on mobile.
May be related to #55.

Yeah closing this one as a duplicate of #55 . I answered there, please continue the discussion there.


gohufont: add console version

Please rename commit's names following our guide in CONTRIBUTING.md.

Is it ok?

Yes, but now there an additional changes in the PR..

@jagajaga Do I have to make a separate PR for the package I added?

Yes.

#9576 as been merged. It should build fine now.


LLaMA2/Mistral generation extremely slow and errorenous

Hi all,
I just experienced a situation where LLaMA2 and Mistral generate a completion very slowly (sometimes even no response after around 1h) and seem not to be correct. I would like to ask if there is anything wrong when I use the kwarg "format": "json" in the request body, or if it is my prompt that caused that issue.

Server spec

CPU: enterprise-level 256 core
GPU: multiple Nvidia A-100 GPUs
System: Debian Bullseye
Access: admin, full access to all the computational resources
Others: ollama was the only process running on that server. Ollama is installed on the host machine, not VM or Docker. There is no VM/Docker or anything that restricts the computational resource for any user.

Here is the test case I'm using:

Preparation:

sudo service ollama start --> success
ollama pull llama2 --> success
ollama pull mistral --> success

LLaMA2 test call:

curl http://localhost:11434/api/generate -d '{
  "model": "llama2",
  "prompt":"Complete the following pattern. Q: China A: China, Beijing Q: Berlin A: Germany, Berlin Q: Italy A:",
  "stream": false,
  "format": "json",
  "options": {
    "seed": 101,
    "temperature": 0.2
  }
}'

Response:

{"model":"llama2","created_at":"2024-03-13T14:55:18.825061607Z","response":"{ }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","done":true,"context":[518,25580,29962,3532,14816,29903,29958,5299,829,14816,29903,6778,13,13,17813,278,1494,4766,29889,660,29901,7551,319,29901,7551,29892,1522,823,292,660,29901,5115,319,29901,9556,29892,5115,660,29901,12730,319,29901,518,29914,25580,29962,13,29912,500,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13],"total_duration":16179381781,"load_duration":610419,"prompt_eval_duration":20061000,"eval_count":1001,"eval_duration":16157638000}%

However, if I remove the format keyword, it is a little bit faster with some response seems to be reasonable.

LLaMA test call removing "format": "json" in the request body:

curl http://localhost:11434/api/generate -d '{
  "model": "llama2",
  "prompt":"Complete the following pattern. Q: China A: China, Beijing Q: Berlin A: Germany, Berlin Q: Italy A:",
  "stream": false,

  "options": {
    "seed": 101,
    "temperature": 0.2
  }
}'

Response of the above request:

{"model":"llama2","created_at":"2024-03-13T15:01:10.874304486Z","response":"\nSure! Here's the completed pattern:\n\nQ: China A: China, Beijing\nQ: Berlin A: Germany, Berlin\nQ: Italy A: Rome","done":true,"context":[518,25580,29962,3532,14816,29903,29958,5299,829,14816,29903,6778,13,13,17813,278,1494,4766,29889,660,29901,7551,319,29901,7551,29892,1522,823,292,660,29901,5115,319,29901,9556,29892,5115,660,29901,12730,319,29901,518,29914,25580,29962,13,13,29903,545,29991,2266,29915,29879,278,8676,4766,29901,13,13,29984,29901,7551,319,29901,7551,29892,1522,823,292,13,29984,29901,5115,319,29901,9556,29892,5115,13,29984,29901,12730,319,29901,9184],"total_duration":1596398280,"load_duration":1102959851,"prompt_eval_count":48,"prompt_eval_duration":122206000,"eval_count":40,"eval_duration":370584000}%

For Mistral, the situation is worse. It won't give response in around 1 hour.

Mistral test call:

curl http://localhost:11434/api/generate -d '{
  "model": "mistral",
  "prompt":"Complete the following pattern. Q: China A: China, Beijing Q: Berlin A: Germany, Berlin Q: Italy A:",
  "stream": false,
  "format": "json",
  "options": {
    "seed": 101,
    "temperature": 0.2
  }
}'

Response: No response after around an hour, call aborted by sending Ctrl-C command. During waiting, htop says ollama was running and actually taking computational resources.

Mistral test call removing "format": "json" in the request body:

curl http://localhost:11434/api/generate -d '{
  "model": "mistral",
  "prompt":"Complete the following pattern. Q: China A: China, Beijing Q: Berlin A: Germany, Berlin Q: Italy A:",
  "stream": false,

  "options": {
    "seed": 101,
    "temperature": 0.2
  }
}'

Response (seems reasonable):

{"model":"mistral","created_at":"2024-03-13T15:12:29.747354811Z","response":" Italy, Rome\n\nThe pattern is to list the country name first, followed by a specific city that is well-known in that country. In this case, for Italy, the city \"Rome\" was given as an example.","done":true,"context":[733,16289,28793,28705,21929,272,2296,5340,28723,1186,28747,5077,330,28747,5077,28725,27112,1186,28747,8430,330,28747,7293,28725,8430,1186,28747,10828,330,28747,733,28748,16289,28793,10828,28725,10827,13,13,1014,5340,349,298,1274,272,2939,1141,907,28725,4961,486,264,2948,2990,369,349,1162,28733,4717,297,369,2939,28723,560,456,1222,28725,354,10828,28725,272,2990,345,28754,525,28739,403,2078,390,396,2757,28723],"total_duration":1943432265,"load_duration":1335220122,"prompt_eval_count":35,"prompt_eval_duration":134002000,"eval_count":49,"eval_duration":473637000}%

Additionally, the examples provided in the API documentation worked fine with and without "format": "json". A response is given in a very short time.

This should perform much better with newer models (i.e. llama3.1 or llama3.2). Keep in mind when using JSON mode to specify in the prompt that the reply should be JSON


Fixed small typo

Awesome idea. My partner homeschools, I'll badger her for some more links to add. In the meantime - here's a typo fix.

Ah good catch! And yes, the more the merrier, thank you :)


MeteorKitchen site down

Website went down yesterday - can you get it running again please?

@ratcliffej fixed

Many thanks @perak :)


Error when trying to update load-balancer-outbound-ips with aks-preview extension

Describe the bug

Fail to update load-balancer-outbound-ips with aks-preview extension installed
# az version
{
  "azure-cli": "2.31.0",
  "azure-cli-core": "2.31.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {
    "aks-preview": "0.5.47"
  }
}
# az aks update --resource-group {} --subscription {} --name {} --load-balancer-outbound-ips {} --debug
...
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
  "code": "InvalidLoadBalancerProfile",
  "message": "Load balancer profile must specify exactly one of ManagedOutboundIPs, OutboundIPPrefixes and OutboundIPs. Please refer to http://aka.ms/slb.",
  "target": "networkProfile.loadBalancerProfile"
 }
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/root/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 1233, in aks_update
    return _put_managed_cluster_ensuring_permission(cmd,
  File "/root/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 3001, in _put_managed_cluster_ensuring_permission
    cluster = sdk_no_wait(no_wait, client.begin_create_or_update,
  File "/usr/local/lib/python3.9/site-packages/azure/cli/core/util.py", line 646, in sdk_no_wait
    return func(*args, **kwargs)
  File "/root/.azure/cliextensions/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2021_10_01/operations/_managed_clusters_operations.py", line 736, in begin_create_or_update
    raw_result = self._create_or_update_initial(
  File "/root/.azure/cliextensions/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2021_10_01/operations/_managed_clusters_operations.py", line 686, in _create_or_update_initial
    raise HttpResponseError(response=response, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: (InvalidLoadBalancerProfile) Load balancer profile must specify exactly one of ManagedOutboundIPs, OutboundIPPrefixes and OutboundIPs. Please refer to http://aka.ms/slb.
Code: InvalidLoadBalancerProfile
Message: Load balancer profile must specify exactly one of ManagedOutboundIPs, OutboundIPPrefixes and OutboundIPs. Please refer to http://aka.ms/slb.
Target: networkProfile.loadBalancerProfile
...

However once aks-preview extension is removed, the same command could be executed without error.
Expected Behavior

Command should not fail even with aks-preview extension installed.
Environment Summary

Azure CLI docker
docker run -it mcr.microsoft.com/azure-cli:2.31.0

Route to service team

Hi @fschim, sorry for the inconvenience, the issue has been fixed in v0.5.48 (PR #4232), please update to the latest version via az extension update -n aks-preview.

@FumingZhang Thanks for the quick response.
Tried with aks-preview 0.5.48 and the command could go through now without error.


Set limit for product quantity

A number of merchants who sell "unique" items need to be able to set a limit for the quantity of each product they sell.

[ ] There should be an extra field when creating a new product for "quantity available"

[ ] The product page should display "sold out" to a potential buyer if no inventory is left (see on Zeplin here and here)

[ ] This option should be disabled if the store is sync-ed to Printful

Have been looking at this. There is one potential problem that needs addressing. Where do we store the quantities of products sold/available?

Thought I could store it into products.json but we cannot update it without doing a IPFS deploy of that file during each order placement/cancellation.
We could probably store it in the DB but we don't have a products model. If we are going to add that model, should we still use products.json or query from backend? Also, adding products to DB means that shops won't work without backend.

cc @nick @franckc What do you think about this?

I think we can have a products model in the DB, but only store limited information, perhaps just starting out with productId and inventory. In products.json, we can specify that the frontend needs to lookup availability, something like checkInStock: true. We can then add an endpoint /products/in-stock that accepts an array of productIds and returns an object with true / false values depending on if the product is in stock or not.

@nick So, disable inventory check if backend is unavailable?
Also, I guess we can have the checkInStock boolean in config.json instead of having it for each product

In config.json works, sure. If we need to later on, we can put an override in products.json (eg if there are some products in the store with stock and some without).
If the backend is unavailable and stock checking is enabled, we should show an error to the user.

Got it. Thanks for your comments :)

+1 for a products model where we store the number of items still available.
If we do that would be great to tie the orders table with the products table. So that we can track a product availability change to orders. A typical way would be to have a carts table. Carts stores a list of product ids and an order id.
Cart data is equivalent to the offer data that we currently store on IPFS. In order to improve reliability we were already discussing storing that data  in the DB as well.
So perhaps upon checkout the following happens

cart data gets sent to the back-end
cart data is written to the DB
offer data is written to IPFS by the back-end (this allows us to use Pinata since the back-end has the credentials)

Done with #730


Make webpackHotDevClient support webpack 2 too

Support webpack 2 by webpackHotDevClient.
Closes #839

Looks great.
I’ll release this some time next week.


Tutorial link is gone 404

In https://github.com/rootzoll/raspiblitz#only-seed-only-seed-word-list-fallback at The password A,B,C idea is based on the [RaspiBolt Guide Preparations](https://raspibolt.org/preparations.html#write-down-your-passwords) - check out for more background. link at https://raspibolt.org/preparations.html#write-down-your-passwords is 404

Thanks - link is fixed.


Provide non-exe install for Windows

https://github.com/feross/webtorrent/issues/733

@gqmrtgma What is that useful for?

In windows, non-administrator (or without install privileges) users can not install software on ProgramFiles forlder.
So its very common to have an standalone or portable version that can be dropped (unzipped) on user's folders or a thumb drive and simply execute it there.
In the case of portable apps, config and download directories should be in the same folder the application lives.
http://portableapps.com/about/what_is_a_portable_app

The WebTorrent installer installs the app into AppData though. So it should work for non-admin users.
Someone should test this.

I tested the installer on Windows 10 Pro (x64), with one account without privileges, and was installed without problems. The only situation detected, was a Windows Firewall popup appears, asking for privileges for unblocking WTD

Yeah, the Windows Firewall prompt is normal for any application that talks to the network. All torrent clients will have this prompt.

Just asked about getting WebTorrent Deskop added to the Portable App Platform, which would expose it to lots of new users.

Looks like this might be pretty easy to do. Here's how Audacity did it: http://wiki.audacityteam.org/wiki/Portable_Audacity

I just sent a PR to add a Windows portable app! If all looks good and it gets merged, there will be a Windows portable app for the next release (v0.4.0).


Incomplete playlist download from pornhub

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2019.11.05
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://www.pornhub.com/playlist/43180982']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.11.05
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[PornHubPagedVideoList] playlist/43180982: Downloading page 1
[download] Downloading playlist: playlist/43180982
[PornHubPagedVideoList] playlist playlist/43180982: Collected 36 video ids (downloading 36 of them)
[download] Downloading video 1 of 36
[PornHub]<PHONE_NUMBER>: Downloading pc webpage
[PornHub]<PHONE_NUMBER>: Downloading tv webpage
ERROR: Unable to extract encoded url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\pornhub.py", line 235, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 1005, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract encoded url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Pornhub recently changed it's playlist formatting from multiple pages to a single page with more content being loaded as you scroll down. As a result, when trying to download a playlist using youtube-dl, only the first 36 videos are being picked up by the extractor, and not the complete playlist. I tried using VPN as well, and sometimes the extraction doesn't work at and at other times, the first 36 videos are extracted, but never the complete playlist.

pornhub.patch.txt
I made a rough patch to fix this issue for me. It does probably not adhere to the coding standards of youtube-dl because I am not really good at python. But maybe someone can take it as a basis to fix this issue in the upstream.

I think i searched everywhere for a solution to the problem of downloading only the first 36 videos of a given playlist,. and this is the only thread that comes close to giving an answer - unless someone else can guide me to another.
The problem is... how do i apply this patch? (and of course if it still works in 2020)


Known vulnerabilities

This project has known vulnerabilities that can be fixed by updating some dependencies:

Low severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Regular Expression Denial of Service (ReDoS)
info: https://snyk.io/vuln/npm:debug:20170905
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

Low severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Regular Expression Denial of Service (ReDoS)
info: https://snyk.io/vuln/npm:ms:20170412
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

Low severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Regular Expression Denial of Service (ReDoS)
info: https://snyk.io/vuln/npm:mime:20170907
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

High severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Prototype Override Protection Bypass
info: https://snyk.io/vuln/npm:qs:20170213
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>

High severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Prototype Override Protection Bypass
info: https://snyk.io/vuln/npm:qs:20170213
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

High severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Prototype Override Protection Bypass
info: https://snyk.io/vuln/npm:qs:20170213
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

Medium severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Regular Expression Denial of Service (ReDoS)
info: https://snyk.io/vuln/npm:string:20170907
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>

Low severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Denial of Service (DoS)
info: https://snyk.io/vuln/npm:superagent:20170807
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>

Low severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>
desc: Denial of Service (DoS)
info: https://snyk.io/vuln/npm:superagent:20170807
from<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>

There are other known vulnerabilities:

<EMAIL_ADDRESS>https://snyk.io/vuln/npm:ms:20170412
<EMAIL_ADDRESS>https://snyk.io/vuln/npm:mime:20170907
<EMAIL_ADDRESS>https://snyk.io/vuln/npm:qs:20170213 (High severity)

#517  PR waiting for the merge to master but NO ETA from an owner.

And as I've mentioned before, it's already out of date.  I'll get a security only fix out with a day or so.

Owners have lives too, sorry for the delay.  You asked for an ETA and got one, gice me a day or two and I'll merge this and push a patch release.

I've updated json-refs and path-loader for similar security issues and published those versions at 3.0.1 and 1.0.4 respectively.  I do see that snyk is finding more vulnerabilities than nsp is.  I'm actively working on this.

Are these changes push to www.npmjs.com because still, I'm able to see the difference in commit id npm register has 3d0a6075647c48f11edfed5eeb8ec32245eb68b7 and the last master GitHub has 0cea535b122265c6d01546e199e2e8fda4c0f5da


added instructions on installing with cygwin

Add instructions on installing Cygwin dependencies. (need to install binary and source of the two dependencies)

I think "Cygwin on windows" probably deserves its own section, or subsection of windows, even though the dependencies are similar to Linux, because the way you install them is so different.

Kk, I'll add that next week, going to make a video on how to install on
Mac, windows, and linux
On Wed, Jul 29, 2015, 3:06 PM James Crosby<EMAIL_ADDRESS>wrote:

I think "Cygwin on windows" probably deserves its own section, or
subsection of windows, even though the dependencies are similar to Linux,
because the way you install them is so different.
—
Reply to this email directly or view it on GitHub
https://github.com/ARMmbed/yotta/pull/336#issuecomment-126081336.

Ok, awesome!
Might merge this for now then.

On 29 Jul 2015, at 21:09, Blackstone Engineering<EMAIL_ADDRESS>wrote:
Kk, I'll add that next week, going to make a video on how to install on
Mac, windows, and linux
On Wed, Jul 29, 2015, 3:06 PM James Crosby<EMAIL_ADDRESS>wrote:

I think "Cygwin on windows" probably deserves its own section, or
subsection of windows, even though the dependencies are similar to Linux,
because the way you install them is so different.
—
Reply to this email directly or view it on GitHub
https://github.com/ARMmbed/yotta/pull/336#issuecomment-126081336.

—
Reply to this email directly or view it on GitHub.


Add "withGroup" method to ProjectBuilder

Expected Behavior
When creating a new Gradle project (e.g. in testing) using ProjectBuilder we'd like to chain a method like withGroup to automatically add a group when ProjectBuilder.build gets invoked. Just like the withName method does.
Current Behavior
This is not possible yet. Currently we set a project group manually like here:
val project = ProjectBuilder.builder().withName("testName").build()
project.group = "com.testxyz"

Context
We often have to create an object just to change add a group. Just not practicable when you want to add a project to any method via parameter as you always have to create the object, change the group, pass the object when it is not used afterwards.
It would be nicer when you could do sth. like this
fun testXYZ() {
    Testrunner.invokeTest(
        ProjectBuilder.builder().withName("testName").withGroup("com.testxyz").build(),
        testFunction
    )
}

instead of
fun testXYZ() {
    val project = ProjectBuilder.builder().withName("testName").build()
    project.group = "com.testxyz"
    Testrunner.invokeTest(
        project,
        testFunction
    )
}

This example is just a simple one - most of our use cases are much more complex!

In my personal opinion, you could wrap the API to be more fluent according to your needs. Recently, I turned on parallel test execution on JUnit and the ProjectBuilder # API is not thread safe. Thankfully, I previously wrapped the API so it was easy to synchronize it.
More over, withName builder method is for changing something that becomes immutable once the project os built. The group is never immutable which wouldn't make sense for the builder to have.

We often have to create an object just to change add a group. Just not practicable when you want to add a project to any method via parameter as you always have to create the object, change the group, pass the object when it is not used afterwards.

Use also
fun testXYZ() {
    Testrunner.invokeTest(
        ProjectBuilder.builder().withName("testName").build().also { it.group = "com.testxyz" },
        testFunction
    )
}

I actually did not know about this fine solution!
This will work, thank you very much :+1:
Closed to usable solution!


Add model tests of ResNet model.

Three model tests of ResNet50v2 nchw model all failed with test_data_set converted from sample test data of ResNet50 V2 ONNX model file.
ResNet50v2_NCHW_Tests_result_details.xlsx
The error message of not satisfying accuracy tolerance, likes:
> cross-env NODE_ENV=test mocha --require ./node_setup.js --exit ./test/models/resnet50v2_nchw.js

  test resnet50v2 nchw
a(-21.065582275390625) b(-22.073230743408203) delta(1.0076484680175781)
    1) test_data_set_0
a(-20.56405258178711) b(-20.489290237426758) delta(0.07476234436035156)
    2) test_data_set_1
a(-21.98280906677246) b(-19.088092803955078) delta(2.894716262817383)
    3) test_data_set_2

  0 passing (56s)
  3 failing

  1) test resnet50v2 nchw
       test_data_set_0:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Module.checkValue (file:///path/webnn-polyfill/test/utils.js:37:12)
      at testResNet50V2 (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:181:11)
      at async Context.<anonymous> (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:189:5)

  2) test resnet50v2 nchw
       test_data_set_1:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Module.checkValue (file:///path/webnn-polyfill/test/utils.js:37:12)
      at testResNet50V2 (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:181:11)
      at async Context.<anonymous> (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:195:5)

  3) test resnet50v2 nchw
       test_data_set_2:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Module.checkValue (file:///path/webnn-polyfill/test/utils.js:37:12)
      at testResNet50V2 (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:181:11)
      at async Context.<anonymous> (file:///path/webnn-polyfill/test/models/resnet50v2_nchw.js:201:5)

@huningxin PTAL, thanks.

Three model tests of ResNet50v2 nchw model all failed with test_data_set converted from sample test data of ResNet50 V2 ONNX model file.

Where do the test input and output data come from? Which native tool and steps do you use to verify them?

Where do the test input and output data come from? Which native tool and steps do you use to verify them?

The test input and output data are converted from input_0.pb and output_0.pb of three sample test data of ResNet50 V2 ONNX model file.
resnet50v2
├── test_data_set_0
│   ├── input_0.pb
│   └── output_0.pb
├── test_data_set_1
│   ├── input_0.pb
│   └── output_0.pb
└── test_data_set_2
    ├── input_0.pb
    └── output_0.pb

To verify, I implement this simple script check.py referring to run_test_dir method of onnx/models repo.
Here's the content of check.py :
import glob
from onnx import numpy_helper
import onnx
import onnxruntime as ort
import os
import sys
import numpy as np

def get_data_from_pb(pbfile):
    data = onnx.load_tensor(pbfile)
    data = numpy_helper.to_array(data)
    return data

def check(model_dir):
    onnx_models = glob.glob(os.path.join(model_dir, '*.onnx'))
    sess = ort.InferenceSession(onnx_models[0])
    output_names = [o.name for o in sess.get_outputs()]
    test_dirs = [d for d in glob.glob(os.path.join(model_dir, 'test*')) if os.path.isdir(d)]
    for d in test_dirs:
        print('>> test_data_set: %s' % d)
        inputs = {}
        input_data = get_data_from_pb('%s/input_0.pb' % d)
        inputs['data'] = input_data
        actual = sess.run(output_names, inputs)
        expected = get_data_from_pb('%s/output_0.pb' % d)
        if not np.isclose(expected, actual, rtol=1.e-3, atol=1.e-3).all():
            print('Result: Actual outputs are not as expected, FAIL...')
        else:
            print('Result: Actual outputs are as expected, PASS...')

if __name__ == '__main__':
    check(sys.argv[1])

to run this script, prepare to download ResNet50 V2 ONNX model file and extract resnet50-v2-7.tar.gz to /your-path folder,  install numpy, onnx and onnxruntime with pip3, then run this command
python3 check.py /your-path/resnet50v2

output messages like:
>> test_data_set: /tmp/resnet50v2/test_data_set_0
Result: Actual outputs are as expected, PASS...
>> test_data_set: /tmp/resnet50v2/test_data_set_2
Result: Actual outputs are as expected, PASS...
>> test_data_set: /tmp/resnet50v2/test_data_set_1
Result: Actual outputs are as expected, PASS...

@huningxin PTAL, thanks.

Thanks for the details. It looks like an implementation issue of webnn-polyfill since ONNXRuntime can pass the test.
How about WebNN-native, say OpenVINO and DirectML backends?

How about WebNN-native, say OpenVINO and DirectML backends?

About WebNN-native with DirectML backend, there's an issue [DML] ResNet NCHW model tests doesn't meet the tolerance requirement https://github.com/webmachinelearning/webnn-native/issues/23, and WebNN-native with OpenVINO backend, these three model tests would pass with criteria as tolerance < 0.005, thanks.

About WebNN-native with DirectML backend, there's an issue [DML] ResNet NCHW model tests doesn't meet the tolerance requirement webmachinelearning/webnn-native#23,

It would be helpful if it could compare with ONNXRuntime DirectML backend. Do you happen to test against that?

Hi @huningxin, I ran ResNet50 V2 ONNX model test by ONNX Runtime using DirectML backend (execution provider), here's test result, PTAL, thanks.

Device
GPU
GPU Driver Version
Test Result

ASUS ZenBook Flip S  laptop
Intel Xe Graphics
<IP_ADDRESS>65
FAIL

ASUS ZenBook Flip S  laptop
Intel Xe Graphics
<IP_ADDRESS>84
PASS

Desktop
Nvidia GeForce GTX 1080
<IP_ADDRESS>71
PASS

@BruceDai , thanks for your validation on ONNX Runtime, it proves the test data is good on native. So please help file issues to webnn-polyfill and webnn-native according to this issue. Then we'll merge this PR and it would help developers to fix the corresponding issues. WDYT?

Thanks @huningxin. I filed issue #105 to this webnn-polyfill repo, and there's already https://github.com/webmachinelearning/webnn-native/issues/23 to webnn-native repo.

Thanks @BruceDai , merging.


Profile links have the embedded video player instead of a website card on Twitter

Bug
Channel links should not embed like a video on Twitter.
To Reproduce

Go to twitter and post a profile link
The tweet will have a embed that is not working, since it links to a channel.

Expected behavior
There should be a channel preview like for usual websites instead of the embedded player.
Screenshots

System Configuration
Chrome 99.0.4844.74 on Windows

Nice catch, thank you! This should be fixed soon, old links may still be cached.


Fix command output loss when running a command with SSH client

agent: fix exec command output loss
ssh: Wait for stdout pipe to finish reading bytes from remote client.

Closes: #2509 (I hope so)

@gustavosbarreto, no problem to test.
I'm trying to do this during the day.

I tried to update on the server side, but it would make my life easier if you provide me with a docker image with the patch for shellhubio/ssh.
I don't have a proper dev environment to build and test it ...
If it's complicated for you I should manage to come up with something but it will take me a bit more time.

I tried to update on the server side, but it would make my life easier if you provide me with a docker image with the patch for shellhubio/ssh. I don't have a proper dev environment to build and test it ...
If it's complicated for you I should manage to come up with something but it will take me a bit more time.

@benasse I have made a release candidate (v0.11.3-rc.2)

I have updated and I confirm that I can no longer reproduce the problem!
Awsome! 😃 😃 😃


Failing to commit offset at the end of the Observable

Hello,
I'm using monix-kafka's KafkaConsumerObservable.manualCommit consumer to consume data from kafka in a batch application.
We consume data until there is no more (using .timeoutOnSlowUpstreamTo(5.seconds, Observable.empty) to detect the end).
I'm processing the data and at the end of the Observable (but still part of the Observable), i commit the offset with a CommitableBatch.
The commit fails with :
java.lang.IllegalStateException: This consumer has already been closed.

Here is my main logic FYI :
 private def logic(bootstrapServer: String, topic: String) = {
    val kafkaConfig: KafkaConsumerConfig = KafkaConsumerConfig.default.copy(
      bootstrapServers = List(bootstrapServer),
      groupId = "failing-logic",
      autoOffsetReset = AutoOffsetReset.Earliest
    )
    KafkaConsumerObservable
      .manualCommit[String, String](kafkaConfig, List(topic))
      .timeoutOnSlowUpstreamTo(5.seconds, Observable.empty)
      .foldLeft(CommittableOffsetBatch.empty) { case (batch, message) => batch.updated(message.committableOffset) }
      .mapEval(completeBatch => completeBatch.commitAsync())
      .headOrElseL(List.empty)
  }

And here is a repo with a ready sbt project to reproduce it : https://github.com/fchaillou/monix-kafka-issue
Let me know if there is anything else i can do to help
Thanks
Fabien

Hello @fchaillou,
Not sure what were you trying to achieve with this example... However I think that is not correctly formulated.
In the test, the observable is set to fail if in 5 seconds in those cases where we have not received the next element (which will always fail since you are only sending two messages). On the other hand the fold operator will keep expecting messages until the downstream sends an Stop, which will never happen because kafka consumer does not stops, but instead you will receive an error from the previous clause.
This is my guess, but probably something wrong is happening there that is forcing the consumer to close before we get to commit the records.
You could maybe try applying an operator that forces the observable to finish like bufferSliding + headL or take(n) in order to trigger the commitAsync.
Hope it helps :)

Hello @fchaillou,
Not sure what were you trying to achieve with this example... However I think that is not correctly formulated.
In the test, the observable is set to fail if in 5 seconds in those cases where we have not received the next element (which will always fail since you are only sending two messages). On the other hand the fold operator will keep expecting messages until the downstream sends an Stop, which will never happen because kafka consumer does not stops, but instead you will receive an error from the previous clause.
This is my guess, but probably something wrong is happening there that is forcing the consumer to close before we get to commit the records.
You could maybe try applying an operator that forces the observable to finish like bufferSliding + headL or take(n) in order to trigger the commitAsync.
Hope it helps :)

Hello @paualarco,
This example is just a simplification of code we're using in prod with the exact same logic which works as expected :
The observable is finishing properly except for the commitAsync (in prod right now we worked around the issue by recreating a new consumer that just does the commit which works with some limitations)
Basically, the topic we're reading from is populated in batch fashion and so we want to consume until there is nothing available anymore, that's the purpose of timeoutOnSlowUpstreamTo(5.seconds, Observable.empty) for us.
When we want to continue processing, we just relaunch the same application that will start from the committed offset.
The issue here is that the consumer is closed too soon, and when we reach the commitAsync it is already closed while it should wait for the whole observable to be finished before closing

Hello @paualarco,
This example is just a simplification of code we're using in prod with the exact same logic which works as expected :
The observable is finishing properly except for the commitAsync (in prod right now we worked around the issue by recreating a new consumer that just does the commit which works with some limitations)
Basically, the topic we're reading from is populated in batch fashion and so we want to consume until there is nothing available anymore, that's the purpose of timeoutOnSlowUpstreamTo(5.seconds, Observable.empty) for us.
When we want to continue processing, we just relaunch the same application that will start from the committed offset.
The issue here is that the consumer is closed too soon, and when we reach the commitAsync it is already closed while it should wait for the whole observable to be finished before closing

hi @fchaillou, sorry for the late response, I think I did not understood the issue when I saw it from first time.
I have been thinking, and a posible solution to delay the closure of the consumer might be to use it under the usage of a Resource.  In that case we would not close it on completion of the observable, which will allow to do a final offset commit.
This is a rough solution of what I come up with:
  def manualCommit[K, V](cfg: KafkaConsumerConfig, topics: List[String])(implicit
                                                                       K: Deserializer[K],
                                                                       V: Deserializer[V]): Resource[Task, KafkaConsumerObservable[K, V, CommittableMessage[K, V]]] = {
    for {
      consumer <- Resource.make(createConsumer[K, V](cfg, topics)){ consumer =>
        Task.evalAsync(consumer.synchronized{ blocking(consumer.close()) } )
      }
      observable <- Resource.liftF(Task.pure(manualCommit(cfg, Task(consumer))))
    } yield (observable)
  }

@Avasil do you think this is a better way of releasing the kafka consumer? if so we should maybe deprecate the existing signatures.

It should also fix this https://github.com/monix/monix-kafka/issues/186


LDAP Documentation Adjustment

Change Type
[x] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Proposed Changes

Either appending or changing the "Install django-auth-ldap" section to specify "pip3" for the command. This had me scratching my head for the past few days because I ran pip install django-auth-ldap and ldap was not running when netbox was restarted at the end of the instructions. Using pip3 instead installed the correct module, and ldap finally began working once this was done.

Adding a quip for "you can run supervisorctl restart netbox to test your ldap config" to clarify how to troubleshoot would be appreciated.

The following code would be very useful for users to include if they are troubleshooting ldap (configuring logging to /opt/netbox/logs)

import logging, logging.handlers
logfile = "/opt/netbox/logs/django-ldap-debug.log"
my_logger = logging.getLogger('django_auth_ldap')
my_logger.setLevel(logging.DEBUG)
handler = logging.handlers.RotatingFileHandler(
   logfile, maxBytes=1024 * 500, backupCount=5)
my_logger.addHandler(handler)

I've updated the pip command in the document since it should have been included during the v2.5 review. I'll leave this open if you want to submit a PR for the rest.

I am trying to use this code snippet above to troubleshoot why LDAP isn't working for us. But all I get is: Caught LDAPError while authenticating my.user: LDAPError(0, 'Error') (my.user = my actual login).
Is there a way to amp up the logging?


[CI] repatriate changes to master job<PHONE_NUMBER>

This PR contains changes from push to release/v2.0 refs/heads/release/v2.0

Forced DCO because these commits all come from Ambassador Labs (or their robots).


Charts are colorless

My charts are all being rendered on greyscale, no colors show up even though I've set the relevant properties. Even the examples from the documentation, copy-pasted, are black and white. I don't know where to look, nothing I do seems to help. Any idea why this is happening?
Thanks in advance.

@mer23 can you post a fiddle?

I just ran into this exact same issue. The document on the Chart.js website have old keys for the data object. Use the documents from the repository. The new ones are now like this:
               backgroundColor: 'rgba(63, 191, 150, 0.3)',                 borderColor: 'rgb(63, 191, 150)',                 pointBackgroundColor: 'rgb(63, 191, 150)',                 pointBorderColor: '#fff',                 pointHoverBackgroundColor: '#fff',                 pointHoverBorderColor: 'rgb(63, 191, 150)'

@ssmith-wombatweb this will be updated this evening when we push new docs live. In the meantime v2 docs are on http://alpha.chartjs.org/docs/

Excellent, thank you.

Thank you both!

Closing. New docs are up!


Fails with "image: unknown format"

From https://www.reddit.com/r/webtoons/comments/18nsej2/comment/ksi25ro/?utm_source=share&utm_medium=web2x&context=3
I've been getting this (https://ibb.co/bJL9Sf5) error message whenever I try to download a webtoon. The first 70 chapters downloaded fine, but it throws the same error after it gets partially through 70-80. I've tried adjusting the starting chapter to skip a few chapters, but it recieves the same error. Here's what I put in after changing it around: (https://ibb.co/b1HrJZr).
What I input:
webtoon-dl --min-ep=75 --max-ep=180 "https://www.webtoons.com/en/comedy/cursed-princess-club/list?title_no=1537"

Please help!
Thank you so much for making this tool! I really love it.

i got the same issue when i used it to download a webtoon in the same numbering range of episodes

Fixed in v0.0.8 - there were gifs in this comic, I made it so they are skipped:
saving episodes 78 through 79: added page 89/247
saving episodes 78 through 79: added page 90/247
WARNING: skipping gif https://webtoon-phinf.pstatic.net/20200803_172/1596413306033xHnBC_GIF/15964133059451537785.gif?type=ani
saving episodes 78 through 79: added page 92/247
saving episodes 78 through 79: added page 93/247


Key validity (aka "v5 rooms")

This is just a placeholder so it can be added to the github project. See https://github.com/matrix-org/synapse/issues/4364 for the actual tracking issue.
I've categorized this as a "spec bug" due to the fact that the spec says this happens, but it doesn't.

Closing in favour of https://github.com/matrix-org/matrix-doc/pull/2077


Extracting used classes from trained model?

Hello,
I created an object detection dataset with custom classes : dontcare,110, and later on, I used this dataset to train an object detection model.
When using inference.py, I have to provide the model id.
I know I trained a model for detecting objects of class 110, but I guess -somehow- it must also be possible to get the used detection class (other than dontcare) by accessing a parameter or calling a function in inference.py ?
So, my question is : suppose I wouldn't know the object class that was targeted in an object detection model ... is it possible to discover it in inference.py ?

Hello, after that line you can access the custom classes with dataset.extension_userdata['custom_classes']

That's what I was looking for. Thank you!


Fix mcmc_sampler causal_model argument

causal_model will never be in kwargs because it has been changed to an explicit named parameter.

Great catch, thanks again @ktmud!


Error on running in Node.js v20.11.0

Hello in getting this error when running the command
genese cpx -l js .\src\

Welcome to @genese cli
C:\Users\gabriel\AppData\Roaming\npm\node_modules@genese\complexity\dist\src\languages-to-json-ast\java\services\ast-file-generation-java.service.js:5const java_parser_1 = require("java-parser");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module<EMAIL_ADDRESS>from<EMAIL_ADDRESS>not supported.
Instead change the require of index.js in<EMAIL_ADDRESS>to a dynamic import() which is available in all CommonJS modules.
at Object. (C:\Users\gabriel\AppData\Roaming\npm\node_modules@genese\complexity\dist\src\languages-to-json-ast\java\services\ast-file-generation-java.service.js:5:23) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.11.0

Me too

Found this workaround for now :
const java_parser_1 = (...args) => import("java-parser").then(({default: javaParser}) => javaParser(...args));

Fix: https://github.com/geneseframework/complexity/pull/71
The java-parser library was not locked for minor releases, so it was fetching a version that changed to esmodules.
Locking the version to 2.0.2 solves the problem


[BUG] Connect without userdata breaks compatiblity to old code (Gotk3 0.6.0)

Describe the bug
Connect in previous versions took a signal-name, an interface (function), and user-data. It seems version 0.6.0 removed the user-data parameter, breaking my old code. Unfortunately it seems, that due to incompatibilities with current gtk-versions and gotk 0.5.0 I can't go back.
You apparently try to rebuild the code to use closures, but seem to have forget the user-parameter. Or am I doing something wrong?
Error messages
For example in 0.6.0:
ui/AccountView.go:123:26: too many arguments in call to w.Bin.Container.Widget.InitiallyUnowned.Object.Connect
	have (string, func(*gtk.Button, string), string)
	want (string, interface {})
ui/AccountView.go:127:26: too many arguments in call to w.Bin.Container.Widget.InitiallyUnowned.Object.Connect
	have (string, func(*gtk.Button, string), string)
	want (string, interface {})

for the code:
func _acceptRequest ( w *gtk.Button, id string ) {
    handleInteraction ( w, id, "acceptRequest" )
}

//...
// fx.Id is a uint
                w, _ = gtk.ButtonNewWithLabel ( "Accept Request" )
                w.Connect("clicked", _acceptRequest, fx.Id )

(as reference if I try to build it with 0.4.0, same with 0.5.0)
../go/pkg/mod/github.com/gotk3/gotk3@v0.4.0/gtk/accel.go:261:5: val.accel_flags undefined (type _Ctype_struct__GtkAccelKey has no field or method accel_flags)
../go/pkg/mod/github.com/gotk3/gotk3@v0.4.0/gtk/accel.go:270:22: obj.accel_flags undefined (type *_Ctype_struct__GtkAccelKey has no field or method accel_flags)

Environment:
gtk3 version: (from pacman) 1:3.24.29-2
go version: go version go1.16.5 linux/amd64
os: Arch Linux

Hi, look at: https://github.com/gotk3/gotk3/issues/751

Ah, see I did not find that. Could you change the title to something more useful?
I'm gonna preface this: I'm irritated about the change, not angry to you personally.
To be frank here: If you gonna deprecate a function, make that explicit. Have at least a version where every use of that function raises deprecation warnings, and then a new function with a different name, e.g. ConnectWithClosure or something.
To the Connect-problem: Now I have to change all my code, where I use user-data, by either hacking gotk and try to patch every new version, so there is a Connect-variant which behaves the same, or by having an anon function executed, which just calls the actual handler. Both are weird. I meant this would work, wouldn't it? It doesn't make my code prettier.
func _acceptRequest ( w *gtk.Button, id string ) {
    handleInteraction ( w, id, "acceptRequest" )
}

//...
// fx.Id is a uint
w, _ = gtk.ButtonNewWithLabel ( "Accept Request" )
w.Connect("clicked", func ( w *gtk.Button ) { _acceptRequest ( w, fx.Id ) } )

Thing is, that we both have a different view about this library. You want to do new cool stuff, I just want to use it and it should always work, as long as the underlying libraries are present, i.e. as long as I (can) use GTK3. This is where is irritation comes from. I can totally understand wanting to deprecate certain behaviour, trying to get the garbage collector to improve, fine, fair enough. Have deprecation warnings. Not even the godocs have a warning in the top, that the behaviour of Connect has changed.
So, ok. I apparently have to change my code, because if you revert, everyone else has to change their code. Please deprecate functions or behaviour better next time to prevent this kind of irritation.

Another point, maintaining two different versions of an API is not really a simple task considering the compatibility issue and other things.
Like you, the people who help build this gotk3 library have jobs, families, personal desires (development), obligations, and (unfortunately) don't have a lot of time to maintain multiple versions of an API.
You can always use version 0.5.3 to avoid modifying all your code, this is a benefit of golang which uses "modules" to specify the library version.
I hope I am understandable an not too hard in what I want to explain to you.
good day.

Yes. I am not alone, other devs probably also got irritated by this. But anyway. I understand maintaining a library like gotk3 is not easy, takes a lot of time and resources, which are already limited.
Take this from this irritation: deprecate old functions in two steps, first marking it as deprecated, updating all docs accordingly, then remove it. Ideally present how old code needs to be updated to use new functions. Maybe I just missed that, or it wasn't present.
I'm gonna try 0.5.3, 0.5.0 fails building on some missing members.
Just to reiterate: I'm irritated, I'm not mad at you.
Cheers.


When are you planning your first production release?

Great work
I really like the approach you have taken and am very interested on how things progress.  Would love to talk about this in more detail
Alttaf

Hi!
The one thing that's missing before I dare call Reshape production ready is real-life testing, so I'm basically hoping people will give Reshape a spin now and let me know how it goes.
There aren't any big features missing or any known bugs at the moment. If you'd like to use Reshape in a project, I'd be really happy to hear your feedback! :)

Hi fabian, We may give it a crack in the next few weeks.

Cool! Looking forward to your feedback. If you need help, run into any issues or are missing some feature, just create an issue here :)

Hi @Alttaf! Just wanted to note that I know consider ReshapeDB to be production ready. Haven't yet cut 1.0 but not because of any stability concerns, planning on doing that soon enough!


Fix the retry partition conflict.

Fix the issue in #393 , that now will collect the failed partition and reorganize the request and retry. The promise will set when no partition retry or exceeded retryLimit.

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

Stale


elastalert-test-rule needs debug option

It would be nice if elastalert-test-rule had a debug option (--debug) that would write the Elasticsearch queries to standard output as curl commands (similar to elastalert --es_debug_trace).  It would make it a lot easier for novices to see how the yaml is translated to a elasticsearch query.

vote!

+1!

+1

+1

+1

+1

+1

+1

+1


More flexible task definitions system using Phases as building blocks

Feature request
Description

This would be a meta-issue tracking the effort and prototyping the dashboard to work with https://github.com/open-rmf/rmf_ros2/issues/107, where we allow users to create their own task definitions using phases that have been predefined for their own fleet of robots and infrastructure.

[ ] Figma prototype

Per discussion, the initial Figma prototype should involve a user interface where

phases from different fleets are provided, and can be distinguished from one another (eg. color, namespaces or different columns/buckets of phases)
users can start crafting a task by clicking any of the listed phases, and the interface should display how the task that is under-construction looks like
certain phases require other phases to precede it, eg. a Fleet A:Dropoff must require a Fleet A:Pickup before it in the chain of phases. However for the initial prototype's interactions, we will start with phases from fleet B and C being greyed out and not selectable, whenever the task starts with a phase from fleet A, and vice versa.


XACML 'Simple Policy Editor' doesn't allow creating a policy with a name having more than 20 characters

Describe the issue:
XACML 'Simple Policy Editor' has a policy name max limit of 20 characters. Other editors like Basic and Standard supports 50 characters. 20 characters is too short sometimes to give a meaningful policy name.
How to reproduce:
Try to create a new policy using the 'Simple Policy Editor' and give "Entitlement Policy Name" a value with 21 characters or more. It give a JS popup saying "Policy Name is invalid".
Expected behavior:

It should allow to create a policy name with at least 50 characters.
If the max length is exceeded, error message should explicitly indicate the issue.

Environment information

Product Version: IS 6.1.0

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Post comment on prod redirects to http://<IP_ADDRESS>/weblog/2015/07/23/hello-world/#comment-8-by-username

Do you have <IP_ADDRESS> in your sites table ? (http://yoursite.com/admin/sites/site/)


Android client: Check location settings and advise if GPS is disabled

I recently set up a test environment for this project and all went well except that the Android client would not track trips properly on one device (though it worked perfectly on another), but instead only recognised points where it could connect to Wi-Fi.
I later discovered that the device on which the tracking worked had the location settings set to high accuracy whilst the device that did not work had battery saving selected (i.e. no GPS). Note that the device in question has no SIM installed at the moment either.
The Android Location Manager exposes a "isProviderEnabled" enabled method that allows you to check if GPS is enabled; might I suggest that this be used and where GPS is not enabled the user be prompted to enable it for a better experience (possibly even sending the user to the correct settings page to change it)?

Yes indeed, this is a very good point and looks like a good start to anyone wanting to contribute to the project.

This is in the mauron plugin. Not in our repo.
Get Outlook for Androidhttps://aka.ms/ghei36

From: Mohamed Mohsen<EMAIL_ADDRESS>Sent: Friday, February 23, 2018 11:37:54 AM
To: Microsoft/Bing-Maps-Fleet-Tracker
Cc: Subscribed
Subject: Re: [Microsoft/Bing-Maps-Fleet-Tracker] Android client: Check location settings and advise if GPS is disabled (#19)
Yes indeed, this is a very good point and looks like a good start to anyone wanting to contribute to the project.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBing-Maps-Fleet-Tracker%2Fissues%2F19%23issuecomment-367958522&data=04|01|muleithy%40microsoft.com|f9cd11b0ca34441e12a708d57aa11e3d|72f988bf86f141af91ab2d7cd011db47|1|0|636549754770756985|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=KnaDRfXnfovOk%2BzA%2Byk8snh3xgH6KzF0uvI%2BsJ1tNwo%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYZQ28KEchpqEXKVp1HUMRBG7NGkwxdiks5tXobygaJpZM4SQmF8&data=04|01|muleithy%40microsoft.com|f9cd11b0ca34441e12a708d57aa11e3d|72f988bf86f141af91ab2d7cd011db47|1|0|636549754770756985|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=r09pqNPglqr8uFevChLImoDkBCUckhDx0YI%2F7RK8tWo%3D&reserved=0.

Ionic provides an interface to locate the user even if GPS is disabled.
The location is inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs.
It will ask the user for GPS permissions and then you can either accept it or deny it. There are callback functions for both so if the GPS permission is not provided you can maybe redirect the user to an instructions page to guide him.
You can check it out here:
https://ionicframework.com/docs/native/geolocation/

This has been implemented in PR #68


Cmake error

Hi can some help me to solve cmake error ? Please check full error in full log file.
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
make[2]: *** [CMakeFiles/rasterise.dir/build.make:90: CMakeFiles/rasterise.dir/rasterise_egl.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/rasterise.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[full_log.txt](https://github.com/pmh47/dirt/files/12344576/full_log.txt)

full_log.txt

Solved it by using Ubuntu 20 with GCC-10 and G++-10


Do you shift the output label?

From your training code, the output label and input label is the same. Where do you shift the output label? Will this happen automatically inside trainer?

    if labels is not None:
        # Shift so that tokens < n predict n
        shift_logits = logits[..., :-1, :].contiguous()
        shift_labels = labels[..., 1:].contiguous()
        # Flatten the tokens
        loss_fct = CrossEntropyLoss()
        loss = loss_fct(shift_logits.view(-1, self.config.vocab_size), shift_labels.view(-1))

@gaopengpjlab
I have the same question. Where did you find the code above? I dont see it anywhere? Is this handled in trainer? I know its "supposed" to be.

https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/modeling_llama.py#L703


Line ending in generated files

Hello! Thx for excellent boilerplate. New files generated from cli npm run generate has clrf lineending instead of lf. Why? Editorconfig plugin installed. When i create new file manul line ending is ok.
http://joxi.ru/1A5zxdMhnJwylr

Closing due to inactivity

Closing due to inactivity


adding camarota's Before I Die

Added Camarota's images and text to the code

Thank you, João, for sharing your skiing image and text. I've gone skydiving, and I highly recommend it. Do you have the image in your head where you will be going skydiving in the world? The image and text look great and merging now👍🏻.
👉 If you haven't already, please share this project with others, star the repository, and assist with any of the open issues, add your own open issues, and also look at the RoadMap to get ideas of how we can keep adding and evolving this project.
I see you are in Goiânia and not too far from Brasilia. I have been to Brazil before but not to that area before and I see there is Art Deco for architecture.Obrigado pela sua contribuição!


Add Elsys CO2 and Netvox PM2.5 models, update MD Panic model

Company Info

Company name: myDevices, Inc
Company website: https://mydevices.com
GitHub presence: https://github.com/myDevicesIoT

IoT Plug and Play Device Info
Product Information and datasheets available on https://store.mydevices.com

Elsys CO2
Netvox PM 2.5
MD Panic (Updated)

Model Submission Goals

Device certification

I merged the Azure main branch into this feature branch. Is there anything else that's needed?


Img grid doesn't work

The same problem happens even if I use cssclass: img-grid or !(img|+grid)[url]

https://github.com/whyt-byte/Blue-Topaz_Obsidian-css/blob/master/TIPS vault/TIPS for Blue Topaz_English.zip
This is a tips vault with usage examples in it

I use the same methods mentioned in the tips vault but all of them doesn't work in my case
So, I create a new vault and test the methods and all of them worked, so i concluded something wrong happen in my vault
After a long time of testing the new vault with all my plugins and a snippet, I discovered the problem, it's strange and unexpected!!
I compare the community-plugins.json in my new (test) vault and my actual vault and find that the sorting of community plugins is different, and the problem was the sorting of my community plugins in  the JSON file is not the same as in the obsidian GUI, ex:

Note that the first plugin is admonition but in the JSON file the first plugin is the calendar plugin
and the sort of plugins in obsidian does not match the JSON file .
So, The solution is

f your obsidian vault is open please close it before the do the next steps
creating a new vault
copy all you plugins to your new vault
open the new vault in obsidian
active all the plugins ( new obsidian automatically create the community-plugins.json
copy the community-plugins.json to your actual vault
accept the message Replace the file in the destination
restart obsidian and the image grid should work

now you can delete the new vault


bug: fix go mod workflow bug

Closes: #4660

hey @p0mvn. A quick update on this:
There is a problem with this workflow when a push with changes is a force push. Sometimes, if a force push removes the latest commit in PR, and sets the newly pushed commit as the latest one, this github workflow will fail, because github.event.before (which is used to find the commit before the push), will point to the commit that was deleted when force-pushing
We could solve that by giving the ability to the developer to run this workflow manually, however, I think this completely ruins the point of this automation.
Another idea is to run the updating script ALWAYS when a force push happens, updating all 4 go.mod folders, but I am also not a fan of this idea.
The third idea I have, is to change the commit before in this workflow to be the latest commit on main branch. This will remove the need to figure out ways to deal with force pushes, and it seems to me that it will also be logically fine.
wdyt?

hey @p0mvn. A quick update on this:
There is a problem with this workflow when a push with changes is a force push. Sometimes, if a force push removes the latest commit in PR, and sets the newly pushed commit as the latest one, this github workflow will fail, because github.event.before (which is used to find the commit before the push), will point to the commit that was deleted when force-pushing
We could solve that by giving the ability to the developer to run this workflow manually, however, I think this completely ruins the point of this automation.
Another idea is to run the updating script ALWAYS when a force push happens, updating all 4 go.mod folders, but I am also not a fan of this idea.
The third idea I have, is to change the commit before in this workflow to be the latest commit on main branch. This will remove the need to figure out ways to deal with force pushes, and it seems to me that it will also be logically fine.
wdyt?

Thanks for the breakdown of the options.

We could solve that by giving the ability to the developer to run this workflow manually

This makes sense to me as a temporary solution

Another idea is to run the updating script ALWAYS when a force push happens, updating all 4 go.mod folders, but I am also not a fan of this idea.

What do you mean by all go.mod folders? Do you mean that If I make a change to osmoutils, it will update go.mod for all of osmoutils, osmomath etc?
This seems fine to me. It is actually preferable that you are always depending on the modules directly in your branch.

The third idea I have, is to change the commit before in this workflow to be the latest commit on main branch. This will remove the need to figure out ways to deal with force pushes, and it seems to me that it will also be logically fine.

This is not what we would like to have. In this case, I can update osmoutils and have e2e CI fail because I'm not depending on the osmoutils change from my PR

What do you mean by all go.mod folders? Do you mean that If I make a change to osmoutils, it will update go.mod for all of osmoutils, osmomath etc?

Yes, but only when a force push happens, to avoid checking git diff with the latest commit sha, which could have been deleted by force pushing

This is not what we would like to have. In this case, I can update osmoutils and have e2e CI fail because I'm not depending on the osmoutils change from my PR

Hmm, I do not really understand this. Commit After will still be the latest commit on your local branch, by changing commit before to latest on main, we will basically check git diff between your latest branch state and the latest main state.
 Seems fine:

pushes to separate branches do not intervene with each other
problem with force pushes solved
CI does not block from the auto push
PR merges to main do not trigger the workflow


mongo service doesn't have labels to identify it

The mongo service doesn't get properly managed by DDEV because it's missing the key labels.
This adds the labels.

Thank you. Merged and releases as 0.4.


type: "cloudProvider" missing in the request sent from UI when AWS Cloud config is enabled

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):

Deploy an rke cluster - AWS - with cloud provider enabled.
On 2.3-head - commit id: 78ed261c6
Edit as yaml shows:

  cloud_provider:
    awsCloudProvider:
      type: awsCloudProvider
    name: aws

Request sent:

cloudProvider: {type: "cloudProvider", name: "aws", awsCloudProvider: {type: "awsCloudProvider"}}
awsCloudProvider: {type: "awsCloudProvider"}
type: "awsCloudProvider"
name: "aws"
type: "cloudProvider"

- On master-head:

Deploy an rke cluster - AWS - with cloud provider enabled.
edit as YAML:

  cloud_provider:
    awsCloudProvider:
      type: awsCloudProvider
    name: aws

request:
cloudProvider: {awsCloudProvider: {type: "awsCloudProvider"}, name: "aws"}
awsCloudProvider: {type: "awsCloudProvider"}
type: "awsCloudProvider"
name: "aws"

The request sent on master-head is not as expected.

Expected Result:
The request sent on master-head is to be consistent with that of on 2.3-head.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): master-head
Installation option (single install/HA): single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): rke
Kubernetes version (use kubectl version):

1.16

Verified on master-head - commit id: 394aa88d6
Steps:

in a Cloud provider enabled cluster, the cloud provider sent in the request from the UI is:

cloudProvider: {type: "cloudProvider", name: "aws", awsCloudProvider: {type: "awsCloudProvider"}}
type: "cloudProvider"
name: "aws"
awsCloudProvider: {type: "awsCloudProvider"}
type: "awsCloudProvider"

Cluster.yml file after the cluster has come up:

  cloud_provider:
    awsCloudProvider:
      global:
        disable-security-group-ingress: false
        disable-strict-zone-check: false
      service_override: null
    name: aws


[Bug] Auto stop feature not working anymore

Describe the bug
in our PROD environment
SageMaker Notebook-v2
configuration: Auto-stop idle-time : 60min
To Reproduce
Steps to reproduce the behavior:
just launch sagemaker, non of them will stop
Expected behavior
it should stop after 60mn
Screenshots

Versions (please complete the following information):

Release Version installed 3.1.0

Additional context
Add any other context about the problem here.

Thanks for filing this bug Paul. Version 3.2 of SWB has a fix for AutoStop not working. I would recommend upgrading SWB to atleast version 3.2 to get this fix.

Hi, I updated SWB to v3.3.0
SageMaker notebooks still don't stop automaticly after 60mn.
Do I need to IMPORT and APPROVE the latest workspace "SageMaker Notebook-v3" to see this bug corrected?  If so,  this wasn't described in bug report https://github.com/awslabs/service-workbench-on-aws/pull/515  neither in release v3.2.0 that we ALSO had to IMPORT and APPROVE the latest workspace

After updating to Sagemaker v3 the note book now stops automaticly BUT I can't see the status change in SWB UI.
It still shows as AVAILABLE but login in AWS console I can see that it STOPTED.
Thanks
Paul

Screenshot showing the SAME notebook from SWB UI and AWS Console

This is likely linked to a status update bug that we have in our backlog.  The polling of the status and the resulting update to the DDB table has a possible disconnect.  The item is open, and I'll update as we are able to address it.  Thank you for the examples.

FYI: since I updated to 3.3.1 I don't see this issue anymore. Stoped SageMaker are now being displayed as STOPED  in SWB UI


Update to Terraform 0.12.x and Terragrunt v0.19.0

Update the example modules in this repo to Terraform 0.12.x syntax.
Remove consul example, as we haven't updated it to Terraform 0.12.x yet, and I don't want to have partially updated examples.
Update the Terragrunt docs to v0.19.x.

Add version recommendations in infra-live README: https://github.com/gruntwork-io/terragrunt-infrastructure-live-example/pull/17/commits/970cd500b2fd5344cf56a723ef5497ad81be2dc0. The infra-modules code already enforces a min Terraform version of 0.12.0 in the .tf files.


Clear input event

How can I subscribe to event when user removes all content from input so I can clear lat/lng in my model?

Looking for the same.

Whenever a user clears the content from the input field there is a callback from 'componentCallback'. the callback response is
{"response":false,"reason":"No user input"}
For better understanding please see any of the example.. where you first select any address and then remove that address from the input box.


Send notification when tagging a channel in a comment

Is your feature request related to a problem? Please describe.
At the moment, if the user tags a channel in a video comment (using the @ChannelName annotation), the tagged channel doesn't receive any notification.
Describe the solution you'd like
When tagging a channel in a comment, the tagged channel should receive a notification stating that it has been cited in a comment.
Describe alternatives you've considered
A setting for disabling this kind of notifications should be available (even for avoiding big channels being tagged a lot and receiving a bunch of notifications).
Additional context

This image is an example. The tagged channel won't know that I mentioned it.

there's an open issue for the internally, the frontend work was done for it. No eta at this time.

It's on the notifications side which relates to accounts, so that's an internal repo.
Basically we needed to add settings for people to control, and things got stuck there.