Request: Control what markdown is generated when pasting an image into a markdown document

First, major thanks on the new copy media to markdown capability. This is incredibly welcome. Well done!
Most of my markdown is used to generate static websites with Hugo. And I have found that the generated markdown needs to be modified before it can be discovered by the generated website. For example:
I have the following configuration.
{
    "markdown.copyFiles.destination": {
        "/content/**/*": "/static/images/${documentBaseName}/"
    }
}

I paste an image named image.png into a file named \content\section\main-page.md The image is then copied to /static/images/main-page/. The generated markdown will be
![Alt text](../../static/images/main-page/image.png)

However, for this to be referenced in the website via hugo, I need to modify that markdown to
![Alt text](/images/main-page/image.png)

This is a small edit, and the existing solution gets us 95% of the way there, but it would be helpful if we could also control the generated markdown as well.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Sounds like the you need to be able to set the image root path so that /images resolves to /static/images. This is tracked by #114319


RunTimeError when executing fourier_1D.py

Hi,
I tried executing your 1D example. I downloaded the corresponding data from the Google Drive folder you provided in the readme and copy-pasted the file into my env, and I get the following error:
Traceback (most recent call last):
  File "fourier_1D.py", line 196, in <module>
    x_train = torch.cat([x_train.reshape(ntrain, s, 1),
RuntimeError: shape '[1000, 1024, 1]' is invalid for input of size 8192000

This error is caused by the following code block:
# cat the locations information
grid = np.linspace(0, 2*np.pi, s).reshape(1, s, 1)
grid = torch.tensor(grid, dtype=torch.float)
x_train = torch.cat([x_train.reshape(ntrain, s, 1),
                     grid.repeat(ntrain, 1, 1)], dim=2)
x_test = torch.cat([x_test.reshape(ntest, s, 1),
                    grid.repeat(ntest, 1, 1)], dim=2)

The error seems to occur when constructing x_train.
My env configuration looks like the following:

python: version 3.8.5
pytorch: version 1.7.0
numpy: version 1.19.2

I changed nothing within the file, I created a corresponding data folder which contains burgers_data_R10.mat so that I didn't even have to change that line.

There are two Burgers dataset with different resolutions. Please use
sub = 2**3 #subsampling rate
h = 2**13 // sub
s = h

Also see #6

There are two Burgers dataset with different resolutions. Please use
sub = 2**3 #subsampling rate
h = 2**13 // sub
s = h

Also see #6


concat axis!=-1 and reshape change data layout don't support quant on dsp or NPU

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):ubuntu18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):pip
TensorFlow version (use command below):1.14.0
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
nnapi log said:concat axis!=-1 and reshape change data layout don't support accelator
Describe the expected behavior
it should run successful on dsp or hta
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
./benmakrk --graph=myquantized.tflite --use_nnapi=true
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
New Comment: "01-08 20:47:35.790 14384 14384 I TypeManager: Failed to read /vendor/etc/nnapi_extensions_app_allowlist ; No app allowlisted for vendor extensions use.
01-08 20:47:35.799 919 1023 E OperationsUtils: NN_CHECK failed: inputShapes[0].scale == inputShapes[i].scale'
01-08 20:47:35.799 919 1023 E OperationsUtils:
01-08 20:47:35.799 919 1023 E OperationsUtils: NN_CHECK failed: inputShapes[0].offset == inputShapes[i].offset'
01-08 20:47:35.799 919 1023 E OperationsUtils:
01-08 20:47:35.801 919 1023 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.801 919 1023 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.801 919 1023 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.801 919 1023 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.801 919 1023 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.801 919 1023 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.801 919 1023 E hta-unnhal: Only supports channel dimension for CONCATENATION
01-08 20:47:35.801 919 1023 E hta-unnhal: {CONCATENATION, TENSOR_QUANT8} is not supported.
01-08 20:47:35.801 919 1023 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.801 919 1023 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.801 919 1023 E hta-unnhal: Only supports channel dimension for CONCATENATION
01-08 20:47:35.801 919 1023 E hta-unnhal: {CONCATENATION, TENSOR_QUANT8} is not supported.
01-08 20:47:35.805 919 1023 E OperationsUtils: NN_CHECK failed: inputShapes[0].scale == inputShapes[i].scale'
01-08 20:47:35.805 919 1023 E OperationsUtils:
01-08 20:47:35.806 919 1023 E OperationsUtils: NN_CHECK failed: inputShapes[0].offset == inputShapes[i].offset'
01-08 20:47:35.806 919 1023 E OperationsUtils:
01-08 20:47:35.810 919 1023 W<EMAIL_ADDRESS>pickAcceleratorByName cannot find the accelerator:adreno
01-08 20:47:35.810 919 1023 W<EMAIL_ADDRESS>01-08 20:47:35.810 919 1023 W<EMAIL_ADDRESS>getSupportedOperations() cannot pick an accelerator
01-08 20:47:35.810 919 1023 W<EMAIL_ADDRESS>01-08 20:47:35.814 919 919 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.814 919 919 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.814 919 919 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.814 919 919 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.814 919 919 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.814 919 919 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.814 919 919 E hta-unnhal: Only supports channel dimension for CONCATENATION
01-08 20:47:35.814 919 919 E hta-unnhal: {CONCATENATION, TENSOR_QUANT8} is not supported.
01-08 20:47:35.814 919 919 E hta-unnhal: RESHAPE doesn't support changing data layout
01-08 20:47:35.814 919 919 E hta-unnhal: {RESHAPE, TENSOR_QUANT8} is not supported.
01-08 20:47:35.814 919 919 E hta-unnhal: Only supports channel dimension for CONCATENATION
01-08 20:47:35.814 919 919 E hta-unnhal: {CONCATENATION, TENSOR_QUANT8} is not supported."

@jdduke my model is from object detection api,

This is the limitation of current driver. The driver may not be able to support all the operations in the model. And from the logcat, the HTA driver requires the quantization parameters of the input tensors to be the same, and the concatenation axis being the channel dimension.
If this is an important usecase, please let us know and we can communicate back to our partners.

This is the limitation of current driver. The driver may not be able to support all the operations in the model. And from the logcat, the HTA driver requires the quantization parameters of the input tensors to be the same, and the concatenation axis being the channel dimension.
If this is an important usecase, please let us know and we can communicate back to our partners.

yes,our team wants a low power detection model,the last rehsape and concat ops can't run on hta or dsp,and fall back to cpu.we want a better performance

Hi There,
We are checking to see if you still need help on this, as you are using an older version of tensorflow which is officially considered end of life . We recommend that you upgrade to the latest 2.x version and let us know if the issue still persists in newer versions. Please open a new issue for any help you need against 2.x, and we will get you the right help.
This issue will be closed automatically 7 days from now. If you still need help with this issue, please provide us with more information.


Run load testing benchmarks comparison for each commit via Github Actions

Description
This is rather crude but it works. The benchmarking results are remarkably consistent, I didn’t expect that. The downside: someone has to go and check/compare them manually. There are textual results in the action output, and there is a downloadable plot and binary data as the action artifact, but there is no overview of how it develops over time. This action also takes a while despite the caching, somewhere between 3 and 4 minutes. That’s despite only testing two things: producing a static file and listing a directory.
Vegeta’s choice of colors could be better. In the image below, the lower yellow dots belong to SWS (static file), the upper ones to Apache (directory listing).
The benchmarks clearly show SWS as being the slowest web server tested. In part this may be due to lack of sendfile and memory caching capabilities. I doubt that Apache has the latter by default however, and their directory listings are still almost twice as fast. So there is clearly work ahead.
Related Issue
#352
How Has This Been Tested?
I tried it out in my repository fork.
Screenshots (if appropriate):

I’ve produced another benchmark for the v2.28.0 tag, just to see whether there was a recent performance regression. No, it doesn’t look like it.

I’ve also tried benchmarking v2.0.3 tag (here without --features=all, feature selection isn’t supported) which turned out considerably slower.

Enabling compression in other web servers moved their results closer to SWS:

Software
Static file[min, mean, 50, 90, 95, 99, max]
Directory listing[min, mean, 50, 90, 95, 99, max]

SWS
291.779µs, 356.013µs, 348.173µs, 391.322µs, 412.844µs, 530.635µs, 1.252ms
500.083µs, 897.072µs, 889.109µs, 966.345µs, 994.89µs, 1.112ms, 6.947ms

Apache
402.039µs, 482.879µs, 470.983µs, 528.848µs, 571.783µs, 710.06µs, 1.627ms
516.901µs, 583.092µs, 567.335µs, 637.349µs, 707.446µs, 804.286µs, 1.805ms

lighttpd
66.466µs, 116.455µs, 111.41µs, 130.593µs, 141.33µs, 251.598µs, 1.013ms
388.017µs, 473.575µs, 456.743µs, 520.37µs, 601.886µs, 783.419µs, 1.227ms

nginx
241.281µs, 321.721µs, 310.755µs, 364.196µs, 403.951µs, 532.797µs, 1.178ms
195.565µs, 246.517µs, 231.353µs, 314.92µs, 355.7µs, 426.006µs, 1.163ms

From the look of it, lighttpd isn’t compressing the static file and nginx might not be compressing the directory listing. So I might need to tweak their configuration a bit more.

With the plot produced by vegeta being less than optimal, I used gnuplot to produce overview graphs like the following. It’s not that I am very happy with gnuplot (e.g. label positions above the bar charts are font-dependent) but I couldn’t find a better tool to produce this kind of graph.

I actually found something better than gnuplot: graph-cli. Made things way simpler, the overview graphs now look like this:

I like the idea. I assume that you will continue improving it.
Here are a few general thoughts.

The benchmarks clearly show SWS as being the slowest web server tested. In part this may be due to lack of sendfile and memory caching capabilities.

I wonder if it is worth it to enable sendfile and memory caching for the other web servers in the comparison because SWS does not support them yet. Maybe we could add that once SWS gets them.
Also, it would be great to consider a benchmark graph that shows the resources used by each server.
And, this other server could be added to the list https://github.com/static-web-server/benchmarks/issues/2

I wonder if it is worth it to enable sendfile and memory caching for the other web servers in the comparison because SWS does not support them yet. Maybe we could add that once SWS gets them.

Sendfile is no use with dynamic compression, so it’s effectively disabled already. As to memory caching, I didn’t enable it explicitly but maybe it’s enabled by default somewhere.
Frankly, I’m not sure that this is any good for comparing performance of web servers. It’s very hard to produce configurations that would be in any way comparable while also being realistic. For example, how do you compare SWS with --features=all to Apache or lighttpd that have almost no modules loaded? And if you load more modules, is it still a realistic scenario? But it is useful to show the baseline for SWS, e.g. that directory listings can be a lot faster. Primarily it should still indicate changes in SWS performance however.

Also, it would be great to consider a benchmark graph that shows the resources used by each server.

Sure, as soon as I have an idea how one would measure that. :sweat_smile:

And, this other server could be added to the list https://github.com/static-web-server/benchmarks/issues/2

So far I focused on software that can be installed via the Ubuntu package manager. I’m definitely not going to compile lwan in this Github Action, yet I’m not even sure there is a third-party Ubuntu repositories for the pre-compiled binary (not that I am very keen on using it if it exists). Also keep in mind: benchmarking another piece of software adds at least half of minute runtime to this action, so it will delay the checks for pull requests even further.

Sendfile is no use with dynamic compression, so it’s effectively disabled already. As to memory caching, I didn’t enable it explicitly but maybe it’s enabled by default somewhere.

Ok. About memory cache. As far as I did learn, some servers like Nginx use a hybrid approach. See Nignx's hybrid disk‑and‑memory cache strategy. I do not know about the others. But in any case, we can keep the feature if be found as the default for those servers.

Frankly, I’m not sure that this is any good for comparing performance of web servers. It’s very hard to produce configurations that would be in any way comparable while also being realistic. For example, how do you compare SWS with --features=all to Apache or lighttpd that have almost no modules loaded? And if you load more modules, is it still a realistic scenario? But it is useful to show the baseline for SWS, e.g. that directory listings can be a lot faster. Primarily it should still indicate changes in SWS performance however.

Ok, my point was more in the direction of if SWS does not support features like let's say memory cache then at least keeping the benchmark closer to what SWS offers so the benchmark may approximate itself to something more fair in the overall comparison.
But regardless, the whole idea is to improve SWS performance rather than try to compete here.

So far I focused on software that can be installed via the Ubuntu package manager. I’m definitely not going to compile lwan in this Github Action, yet I’m not even sure there is a third-party Ubuntu repositories for the pre-compiled binary (not that I am very keen on using it if it exists). Also keep in mind: benchmarking another piece of software adds at least half of minute runtime to this action, so it will delay the checks for pull requests even further.

I just mentioned it due to a request. But I get it. If there is no official binary available and only source then we could skip it for now.

Looking at the graph https://github.com/static-web-server/static-web-server/pull/355#issuecomment-2068196430, SWS has a decent performance (file) compared to for example nginx.
Anyway, it would be great to have this new graph also generated for the current v2.28.0 to compare the differences.
I guess the point will be to be able to track the performance over time at some point.
And about the directory listing. As you said, there is definitely room for improvement.

BTW, In case you wonder. The CI FreeBSD tests run every time there is a change which is not nice. So I will take care of it.

It’s now nine tests, meaning nine graphs. The results largely show SWS performing better than Apache and roughly on par with lighttpd. nginx performs best in every test except for producing a 404 error.
lighttpd has an unusual compression implementation which complicates matters. It isn’t capable of redirecting to pre-compressed files, which is why the relevant tests have to request these files directly. Yet its dynamic compression will cache compressed files, something that cannot be disabled – so it performs great whenever large files have to be dynamically compressed because it only compresses them once. lighttpd is also the software that required me to reduce the request rate here – by the time it manages to cache the compressed file, requests tend to pile up already and to overload the server.

Job summary will now display tables with the benchmarking results, so one no longer needs to dig into logs or download artifacts to get an idea. Unfortunately, this only allows Markdown. I cannot see any way to upload images to embed them here.

I think this is good enough now. For reference, here is a run based on v2.28.0: https://github.com/palant/static-web-server/actions/runs/8790531711. Comparing it to a run on current development branch, significant differences always affect all web servers in pretty much the same way. So if there were performance regressions since the release, these aren’t significant enough to be measurable.


Add Time to SixFour

I have it set to update every minute instead of every second to save battery use.

I finally got around to adding a clock, based on your patch, and including the couple of bugfixes here too. I didn't include the date because it changes so rarely, and I've made the clock tiny because I want to use the space for some more match data.

Thanks a lot for your patch :)

Nice!
Thank you for developing such a brilliant app to utilise exactly what the Pebble was designed for.


Kernel Bypass using cpp

Channel
The Fintech Programmer
Topics
Kernel Bypass using cpp
Length
20min

Wohoooo another exotic topic.


Are the alignr/alignl simd functions planned?

Hello!
I am, and I know a lot of people are, very interested in this library and was wondering if it was planned to add the _mm_alignr_epi8 functions family? I have found this issue that lists the next features to add but mine was not listed, will maybe be added as a next step?
Thank you very much!

Seems reasonable to put in. I'm not sure how people would want to define it for things other than 128-bit size, but a guess a general byte rotation might be fine.

This is a highliy specialized instruction that is only available on x86. This makes it a bad fit for stdsimd. Stdsimd is supposed to be roughly the biggest common denominator of all platforms supported by rust. Of course LLVM is allowed to optimize a sequence of functions that behaves identical to that intrinsic to a single instruction.

Naw it's got a very clear semantics though, "rotate the value by N bytes", which makes it at worst a slightly odd shuffle. It's a reasonable helper method to have i think.

@Lokathor It isn't a byte rotate at all as far as I know. It concatenates blocks from both arguments, shifts a given amount and then takes the lower half of each block.

Yeah, they're not really rotate. They're really useful where available though... I called it out a long time ago as the kind of instruction that would be useful to support but might be hard to describe semantically...

ah my mistake, i remember now, it's only a rotate if you pass the same register as both arguments.
the general two-arg form might be weird enough to be very low priority or even out of scope.

This kind of thing is why I was hoping we'd land on some generalization of permutation, which would handle a lot of these styles of intrinsics... but I don't really know what that would look like.

@Kerollmops No x86 intrinsic per se will be "added", so in a strict sense, the answer is simply No.
...but we will probably offer general APIs that do similar things. The result may be less terse, as e.g. it is quite likely we will offer safe transmutation functions that allow you to use to_ne_bytes and then do the byte rotation on your own and then cast from_ne_bytes, and hopefully LLVM will optimize that correctly. There is not actually a whole lot we can do if it doesn't, honestly, as we have a fairly limited amount of power over codegen on this end.
A generalized byte permutation in a single function seems plausible but that's going to take Some Design, especially given the obstacles we already have w/r/t shuffle APIs.

It's not bytewise, it's bitwise. to/from_ne_bytes doesn't really help.

the intel guide says
Operation
tmp[255:0] := ((a[127:0] << 128)[255:0] OR b[127:0]) >> (imm8*8)
dst[127:0] := tmp[127:0]

which seems byte-wise to me.

Ah, right, hmm, my bad. There are some bitwise permutation operations but I'm mistaken here.

Thank you very much for all your fast answer, I wasn't expecting this amount of interest here 😄
The fact that we will rely on the LLVM codegen suits me and as you say I can use the core::intrinsic function on x86.


Need fix InstagramUser.m

//self.fullName = [[NSString alloc] initWithString:info[kFullName]]; //CRASH
self.fullName =IKNotNull(info[kFullName]) ? [[NSString alloc] initWithString:info[kFullName]] : nil;

This issue is resolved. https://github.com/shyambhat/InstagramKit/pull/278
Thanks.


Remove unneeded probe_reads

Looking through codegen I noticed that the argX,retval,func calls do an
alloca and probe_read to read ctx. Which shouldn't be neeeded.
Looking at the bpf code emitted by BCCs opensnoop (using bpftool),
This bit of code:
    data.uid = bpf_get_current_uid_gid();
    data.flags = valp->flags; // EXTENDED_STRUCT_MEMBER
    data.ret = PT_REGS_RC(ctx);

Compiles into:
  67: (85) call bpf_get_current_uid_gid#68096
  68: (63) *(u32 *)(r10 -288) = r0
  69: (79) r1 = *(u64 *)(r6 +80) # <<---  RC = offset 80
  70: (63) *(u32 *)(r10 -284) = r1

So no probe_read is automatically inserted by BCC either.
The attached patch seems to work fine, all runtime tests pass.
For a simple example like -e 'kr:sock_sendmsg { @t[retval]++;  }' the
amount of code is reduced by quite a bit:
Master:
3601: kprobe  name sock_sendvmsg  tag 5a611cfc6c681762  gpl
  loaded_at 2019-06-08T17:48:18+0000  uid 0
  xlated 304B  jited 211B  memlock 4096B  map_ids 3332

Patched:
3602: kprobe  name sock_sendmsg  tag e286460edf83a14c  gpl
  loaded_at 2019-06-08T17:48:21+0000  uid 0
  xlated 216B  jited 166B  memlock 4096B  map_ids 3334

$ bpftool  prog  dump xlated id 3601
   0: (bf) r6 = r1
   1: (07) r6 += 80
   2: (bf) r1 = r10
   3: (07) r1 += -8
   4: (b7) r2 = 8
   5: (bf) r3 = r6
   6: (85) call bpf_probe_read#-47296
   7: (79) r1 = *(u64 *)(r10 -8)
   8: (7b) *(u64 *)(r10 -8) = r1
   9: (18) r1 = map[id:3332]
  11: (bf) r2 = r10
  12: (07) r2 += -8
  13: (85) call __htab_map_lookup_elem#72336
  14: (15) if r0 == 0x0 goto pc+1
  15: (07) r0 += 56
  16: (b7) r7 = 1
  17: (15) if r0 == 0x0 goto pc+2
  18: (79) r7 = *(u64 *)(r0 +0)
  19: (07) r7 += 1
  20: (bf) r1 = r10
  21: (07) r1 += -8
  22: (b7) r2 = 8
  23: (bf) r3 = r6
  24: (85) call bpf_probe_read#-47296
  25: (79) r1 = *(u64 *)(r10 -8)
  26: (7b) *(u64 *)(r10 -16) = r1
  27: (7b) *(u64 *)(r10 -8) = r7
  28: (18) r1 = map[id:3332]
  30: (bf) r2 = r10
  31: (07) r2 += -16
  32: (bf) r3 = r10
  33: (07) r3 += -8
  34: (b7) r4 = 0
  35: (85) call htab_map_update_elem#75504
  36: (b7) r0 = 0
  37: (95) exit

$ bpftool  prog  dump xlated id 3602
   0: (bf) r6 = r1
   1: (79) r1 = *(u64 *)(r6 +80)
   2: (7b) *(u64 *)(r10 -8) = r1
   3: (18) r1 = map[id:3334]
   5: (bf) r2 = r10
   6: (07) r2 += -8
   7: (85) call __htab_map_lookup_elem#72336
   8: (15) if r0 == 0x0 goto pc+1
   9: (07) r0 += 56
  10: (b7) r1 = 1
  11: (15) if r0 == 0x0 goto pc+2
  12: (79) r1 = *(u64 *)(r0 +0)
  13: (07) r1 += 1
  14: (79) r2 = *(u64 *)(r6 +80)
  15: (7b) *(u64 *)(r10 -16) = r2
  16: (7b) *(u64 *)(r10 -8) = r1
  17: (18) r1 = map[id:3334]
  19: (bf) r2 = r10
  20: (07) r2 += -16
  21: (bf) r3 = r10
  22: (07) r3 += -8
  23: (b7) r4 = 0
  24: (85) call htab_map_update_elem#75504
  25: (b7) r0 = 0
  26: (95) exit

Or am I missing something here? :)
Didn't look into codegen tests yet as there are a few big MRs for those open (and im not 100% sure this is correct yet).

The reg() function is doing the exact same thing too.

Yes. There might be a few more, ill look through them.

While looking at the code I noticed the tracepoints allowed for some invalid accesses. As that would cause a verifier error instead of an error from bpftrace now that probe reads have been removed  I've included the fix for it as well.
args->xx still does an unneeded probe read but those are a bit trickier to remove so keeping them out of scope for now.

Why isn't ctx available for tracepoint probes?

Why isn't ctx available for tracepoint probes?

Do you mean the ctx builtin being disabled  or pt_regs * ctx not being available to tracepoints?
I do not have any good reason for disabling ctx for tracepoints. My thought was that it could  be confusing as it gave me the impression that you could access it like a pt_regs *, which isn't the case. The idea was to keep ctx for everything that is a kprobe (in bpf) and that if you want to use the same for tracepoints you can use args.
But now that I think about it again I guess could just leave it in.

I've used the ctx builtin as workarounds when tracepoint args-> aren't working correctly. Nice to have that workaround available.

Added it back in.


qemu: fix devID value error

reason: When excutes ExecuteNetCCWDeviceAdd, the DevID is always "virtio-".
If add-iface multy times, qemu may report "dumplicated id:virtio-".
Fixes: #1305

Hi @shaojiaxue - Thanks for raising and good catch!! :smile:
Travis is failing as you just need to update your commit with your signed-off-by comment:
ERROR: Commit fe168fe574e08d62f527ef12940ff2e41a7bc0cb: no Signed-off-by specified
ERROR: checkcommits failed. See the document below for help on formatting
commits for the project.

https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-format

please do that on this PR @shaojiaxue - you don't need to re-open a new one ;-)

Hi @shaojiaxue - Thanks for raising and good catch!!
 See the document below for help on formatting
commits for the project.

https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-format

I have add my Signed-off-by infomations

please do that on this PR @shaojiaxue - you don't need to re-open a new one ;-)

yeah, ths

/test


Top-Down Button has been added in all other sub-pages of website

Top-Down Button has been added in all other sub-pages of website.
Issue solved :- #444
@myhacktech Kindly Review the PR.

@Susmita-Dey Now my branch is updated, Kindly merge it.


⚠ Bofrost.lu has degraded performance

In d565741, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1789 ms

Resolved: Bofrost.lu performance has improved in b7c6d18.


Can't use magnet links and uploading torrent file while using authentication

I am using peerflix-server on my VPS, I set it up like this:
server {
    listen 80;
    server_name peerflix.domain.com;
    keepalive_timeout 15m;

    location / {
            proxy_pass http://localhost:9000/;
            proxy_http_version 1.1;
            auth_basic "peerflix server";
            auth_basic_user_file /etc/nginx/.htpasswd;
    }

    location /socket.io/ {
            proxy_pass http://localhost:9000/socket.io/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
    }
    location /torrents/ {
            proxy_pass http://localhost:9000/torrents/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
    }
}

TCP 9000 port is blocked on the firewall.
I can drag and drop files, watch in local with mpv (couldn't watch without /torrents/), web page is password protected; but adding magnet links and clicking Download or using uploading function doesn't work.
And they work if I add 9000/tcp to my firewall and connect directly using domain.com:9000, but then authentication doesn't work.

You don't need to specify proxy_set_header for /torrents/ -- those are only needed for socket.io.

Thanks, fixed it. But still doesn't work.

And if you comment out the /torrents/ section, does it work?

It works, but streaming to my local machine doesn't. HTTP authentication get in the way.

OK, could you try something like this:
server {
    listen 80;
    server_name peerflix.domain.com;
    keepalive_timeout 15m;

    location / {
        proxy_pass http://localhost:9000/;
        proxy_http_version 1.1;

        limit_except GET HEAD {
            auth_basic "peerflix server";
            auth_basic_user_file /etc/nginx/.htpasswd;
        }
    }

    location /socket.io/ {
        proxy_pass http://localhost:9000/socket.io/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

It should in theory only ask for password when you try to change something: POST, PUT or DELETE

Doesn't work. Streaming does but magnets and upload doesn't.

Do you see any errors in the logs? In the browser console? Can you paste request/response here?

My config and yours gives the same error:
Error: [$resource:badcfg] Error in resource configuration. Expected response to contain an object but got an array
http://errors.angularjs.org/1.2.28/$resource/badcfg?p0=object&p1=array
    at 07413d7e.vendor.js:3
    at a.then.A.$resolved (07413d7e.vendor.js:7)
    at k (07413d7e.vendor.js:5)
    at k (07413d7e.vendor.js:5)
    at 07413d7e.vendor.js:5
    at k.$eval (07413d7e.vendor.js:5)
    at k.$digest (07413d7e.vendor.js:5)
    at k.$apply (07413d7e.vendor.js:5)
    at i (07413d7e.vendor.js:4)
    at r (07413d7e.vendor.js:4)07413d7e.vendor.js:5 (anonymous function)07413d7e.vendor.js:4 (anonymous function)07413d7e.vendor.js:5 k07413d7e.vendor.js:5 k07413d7e.vendor.js:5 (anonymous function)07413d7e.vendor.js:5 k.$eval07413d7e.vendor.js:5 k.$digest07413d7e.vendor.js:5 k.$apply07413d7e.vendor.js:4 i07413d7e.vendor.js:4 r07413d7e.vendor.js:4 w.onreadystatechange

I have managed to get Download button working, uploading still doesn't. But uploading isn't that important, I can drag&drop files. And all the page is protected this way:
server {
    listen 80;
    server_name peerflix.muratcansimsek.com;
    keepalive_timeout 15m;

    location / {
            proxy_pass http://localhost:9000/;
            proxy_http_version 1.1;
            auth_basic "peerflix server";
            auth_basic_user_file /etc/nginx/.htpasswd;
    }

    location /socket.io/ {
            proxy_pass http://localhost:9000/socket.io/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
    }
    location /torrents {
            proxy_pass http://localhost:9000/torrents;
            proxy_http_version 1.1;
    }
}

It seems like the upload button is broken even without nginx proxy. Created a new bug: #35
Do magnet links work?

Magnet links and torrent download links work in the last config I pasted. Problem was /torrents/, /torrents fixed it.
Thanks for your help =)

np


enable Zenodo deposit when new releases are created

We could also consider to setup an automated publishing to Zenodo on each release? https://zenodo.org/

Originally posted by @maltevogl in https://github.com/dh-tech/undate-python/issues/21#issuecomment-1319260646

[ ] create zenodo account for dhtech (?)
[ ] link to github and enable zenodo deposit
[ ] create initial deposit
[ ] add DOI badge to readme
[ ] potentially create .zenodo.json file in repo for common metadata for future releases

related but possibly not the same — add a CITATION.cff file; can create an initial file from the DOI once it exists


Wording change of the visualization Details

Remove the Details and rephrase it to reflect it is visualization information.

I can take this one.


LiveView Native Clients: Support file uploading

Handle uploads as described in https://hexdocs.pm/phoenix_live_view/uploads.html.
This will be a port of https://github.com/phoenixframework/phoenix_live_view/pull/1184 and any subsequent fixes.
From analysis of the phoenix_live_view js, it appears that the uploads are chunked and chunks are sent to a special lvu:* namespace
https://github.com/phoenixframework/phoenix_live_view/blob/45bd9bd23dcd4524a328950f511ff30f8382c4dd/assets/js/phoenix_live_view/entry_uploader.js#L12
 this.uploadChannel = liveSocket.channel(`lvu:${entry.ref}`, {token: entry.metadata()})

On joining this channel, the next chunk is read
https://github.com/phoenixframework/phoenix_live_view/blob/45bd9bd23dcd4524a328950f511ff30f8382c4dd/assets/js/phoenix_live_view/entry_uploader.js#L24-L42
      .receive("ok", _data => this.readNextChunk())
      .receive("error", reason => this.error(reason))
  }

  isDone(){ return this.offset >= this.entry.file.size }

  readNextChunk(){
    let reader = new window.FileReader()
    let blob = this.entry.file.slice(this.offset, this.chunkSize + this.offset)
    reader.onload = (e) => {
      if(e.target.error === null){
        this.offset += e.target.result.byteLength
        this.pushChunk(e.target.result)
      } else {
        return logError("Read error: " + e.target.error)
      }
    }
    reader.readAsArrayBuffer(blob)
  }

And the chunk is pushed
https://github.com/phoenixframework/phoenix_live_view/blob/45bd9bd23dcd4524a328950f511ff30f8382c4dd/assets/js/phoenix_live_view/entry_uploader.js#L36-L54
        this.pushChunk(e.target.result)
      } else {
        return logError("Read error: " + e.target.error)
      }
    }
    reader.readAsArrayBuffer(blob)
  }

  pushChunk(chunk){
    if(!this.uploadChannel.isJoined()){ return }
    this.uploadChannel.push("chunk", chunk)
      .receive("ok", () => {
        this.entry.progress((this.offset / this.entry.file.size) * 100)
        if(!this.isDone()){
          this.chunkTimer = setTimeout(() => this.readNextChunk(), this.liveSocket.getLatencySim() || 0)
        }
      })
  }
}

The percentage progress is pushed by the calle to this.entry.progress if the push of the "chunk" event is OK
https://github.com/phoenixframework/phoenix_live_view/blob/45bd9bd23dcd4524a328950f511ff30f8382c4dd/assets/js/phoenix_live_view/upload_entry.js#L45-L61
  progress(progress){
    this._progress = Math.floor(progress)
    if(this._progress > this._lastProgressSent){
      if(this._progress >= 100){
        this._progress = 100
        this._lastProgressSent = 100
        this._isDone = true
        this.view.pushFileProgress(this.fileEl, this.ref, 100, () => {
          LiveUploader.untrackFile(this.fileEl, this.file)
          this._onDone()
        })
      } else {
        this._lastProgressSent = this._progress
        this.view.pushFileProgress(this.fileEl, this.ref, this._progress)
      }
    }
  }

The pushFileProgress both updates the element locally and pushes the progress to the server, allowing server-side changes of the progress
https://github.com/phoenixframework/phoenix_live_view/blob/45bd9bd23dcd4524a328950f511ff30f8382c4dd/assets/js/phoenix_live_view/view.js#L877-L887
  pushFileProgress(fileEl, entryRef, progress, onReply = function (){ }){
    this.liveSocket.withinOwners(fileEl.form, (view, targetCtx) => {
      view.pushWithReply(null, "progress", {
        event: fileEl.getAttribute(view.binding(PHX_PROGRESS)),
        ref: fileEl.getAttribute(PHX_UPLOAD_REF),
        entry_ref: entryRef,
        progress: progress,
        cid: view.targetComponentID(fileEl.form, targetCtx)
      }, onReply)
    })
  }

This server-side channels and event handling of those channels does and should not change for native.  While the framework lvu:* channels handle the chunks, any "progress" events can be optionally handled by the LiveView on the  server, but it is not required as shown in the guide.

According to @simlay it is blocked:
replied to a thread:
So, I’ve been working on https://github.com/liveview-native/liveview-native-core/issues/15 and am somewhat unclear what a liveview native template (with an upload) will look like. Following https://hexdocs.pm/phoenix_live_view/uploads.html#allow-uploads and then reverse engineering what’s happening. The <.live_file_input<EMAIL_ADDRESS>/> bit adds a data-phx-upload-ref key on the dom, this is then used as a message on the channel to get the actual token for the upload. It’s a bit unclear on how to get the value for the data-phx-upload-refkey.
After my research on 15 (Support file uploading), I I think it’s blocked by https://github.com/liveview-native/liveview-native-core/issues/16
@alex.zholtkevych
#16 LiveView Native Clients: LiveView Native Core to use Phoenix.Channels client
https://github.com/liveview-native/liveview-client-swiftui/blob/4e81900adff68228d3c5ef2b657ef0c37f95723e/Sources/LiveViewNative/LiveView.swift#L52 - example
Assignees
@KronicDeth
Labels
enhancement, ffi:swift, ffi:kotlin, LIVEVIEWNATIVE CLIENTS
https://github.com/[liveview-native/liveview-native-core](https://github.com/liveview-native/liveview-native-core)|liveview-native/liveview-native-coreliveview-native/liveview-native-core | Jun 5th | Added by GitHub
View newer replies
bcardarella
11:55 AM
This is most likely correct, sorry I owed you a response and got pulled into family stuff over the past few days
sebastian.imlay
11:55 AM
Stupid holidays. No one likes family time (I kid)
bcardarella
11:56 AM
it definitely gets in the way
sebastian.imlay
11:57 AM
I don’t know enough about elixir’s channels to say what fully needs to happen but I could see a need for <.live_native_file_input<EMAIL_ADDRESS>/> (I dunno how to do this) in the template which DOM attributes needed to know what channel(s) to send the file over.
bcardarella
11:58 AM
so here is a breakdown of the uploader as I'm reading it in the JS
11:58
UploadEntry is part of the LV client: https://github.com/phoenixframework/phoenix_live_view/blob/main/assets/js/phoenix_live_view/upload_entry.js
upload_entry.js
import {
PHX_ACTIVE_ENTRY_REFS,
PHX_LIVE_FILE_UPDATED,
PHX_PREFLIGHTED_REFS
} from "./constants"
Show more
https://github.com/[phoenixframework/phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)|phoenixframework/phoenix_live_viewphoenixframework/phoenix_live_view | Added by GitHub
11:58
it will then import LiveUploader from https://github.com/phoenixframework/phoenix_live_view/blob/main/assets/js/phoenix_live_view/live_uploader.js
live_uploader.js
import {
PHX_DONE_REFS,
PHX_PREFLIGHTED_REFS,
PHX_UPLOAD_REF
} from "./constants"
Show more
https://github.com/[phoenixframework/phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)|phoenixframework/phoenix_live_viewphoenixframework/phoenix_live_view | Added by GitHub
11:58
and that will then import EntryUploader https://github.com/phoenixframework/phoenix_live_view/blob/main/assets/js/phoenix_live_view/entry_uploader.js and this is the one that interacts with Channels
entry_uploader.js
import {
logError
} from "./utils"
export default class EntryUploader {
Show more
https://github.com/[phoenixframework/phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)|phoenixframework/phoenix_live_viewphoenixframework/phoenix_live_view | Added by GitHub
11:59
specifically https://github.com/phoenixframework/phoenix_live_view/blob/main/assets/js/phoenix_live_view/entry_uploader.js#L13
entry_uploader.js
this.uploadChannel = liveSocket.channel(lvu:${entry.ref}, {token: entry.metadata()})
https://github.com/[phoenixframework/phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)|phoenixframework/phoenix_live_viewphoenixframework/phoenix_live_view | Added by GitHub
11:59
the lvu:${entry.ref} could be a special channels for uploads
sebastian.imlay
11:59 AM
Yes
bcardarella
12:00 PM
confirm it is: https://github.com/phoenixframework/phoenix_live_view/blob/3fe7ddbbed7a841038b229683befb045fda87b63/lib/phoenix_live_view/socket.ex#L113
socket.ex
channel "lvu:*", Phoenix.LiveView.UploadChannel
https://github.com/[phoenixframework/phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)|phoenixframework/phoenix_live_viewphoenixframework/phoenix_live_view | Added by GitHub
bcardarella
12:00 PM
so it is a completely separate channel from the LiveView channel... so it doesn't block the primary LV channel I'm guessing and when the file upload is complete I bet it just sends the message to the primary LV channel
3 replies
Last reply today at 12:45 PMView thread
bcardarella
12:02 PM
but I agree that LVN Core Channels is the blocker here


Gracefully handle null Conscrypt version

In certain cases, Conscrypt returns a null version. Treat Conscrypt as
not available in these cases, since the version information is unknown.
Fixes #6502.

I wanted to write a test for this, but wasn't sure if there was a cleaner way than reflectively setting the version to null or finding a way to supply an empty conscrypt.properties to Conscrypt so that it returns null.

I wanted to write a test for this, but wasn't sure if there was a cleaner way than reflectively setting the version to null or finding a way to supply an empty conscrypt.properties to Conscrypt so that it returns null.


Not needed showing progress bar while taking photo

When use a old device, iPhone 6s(13.3), it takes about 0.3s to finish take a photo, so it's necessary to add some animation

When use a old device, iPhone 6s(13.3), it takes about 0.3s to finish take a photo, so it's necessary to add some animation


[Bug]: Emoji is not saved if state history was imported

Package Version
3.0.12
Flutter Version
3.22.2
Platforms
Web
How to reproduce?
Go to https://hm21.github.io/pro_image_editor/, go to "Import and Export state history" section.  Press done. Emoji is not saved

Logs (optional)
No response
Example code (optional)
No response
Device Model (optional)
Google Chrome

Thank you for reporting this issue.
The problem you see here is that the emoji is not loaded or is loaded with a delay, so the background thread generates the image without the icon.
If you want that the emoji is loaded directly, you can use a font like GoogleFonts.notoColorEmoji(), which I also updated in the example now.
The other option is to disable background generation in the configs, as shown below:
configs: ProImageEditorConfigs(
      imageGenerationConfigs: const ImageGeneratioConfigs(
        generateImageInBackground: false,
      ),
),


Outlook Mail Tool - Threading view in message responses

Electron build - 2fa0a1806
Steps to reproduce the problem:

Start a chat with Tildy.
Add Outlook Mail tool.
Ask to list emails when you have email threads

All emails in the thread get listed as individual emails

Outlook client shows just 1 entry for this email with threading view.
It would be nice to have this implemented in our responses.

Tracked in otto


NIAD-991: Add resource mapper classes

Description
Created resource mapper classes with a map method which accepts and interchange message and returns a FHIR resource, based on the Messaging Specification.
The Patient resource is mandatory and the other resources are optional for the time being - this will be revisited once we work on the mapping logic.
Mapper classes have been added to a new directory src/main/java/uk/nhs/digital/nhsconnect/lab/results/translator/mapper as per acceptance criteria.
Jira Ticket
https://gpitbjss.atlassian.net/browse/NIAD-991
Checklist
These are items (excluding GitHub Checks) which should be confirmed before a branch is ready to merge.

[x] Acceptance Criteria met
[x] Commit messages are meaningful
[x] Manually tested
[x] Self-reviewed your code
[ ] Code reviewed from two other developers
[x] If your pull request depends on any other, please link them in the description
[x] main branch is passing/green on CI
[x] Add/update any relevant documentation

These will all be autowirable components, I assume. Can we add the @Component annotation now, or will Spring complain about not having anything to do with them?

Good point. I've added the component annotation to all the mapper classes 🙂


Azure DevEx Architecture Board: Review of IC3 ACS Rooms

New SDK Review meeting has been requested.
Service Name: IC3 ACS Rooms
Review Created By: Jorge Garcia Hirota
Review Date: 4/18/2023 2:05 PM PT
Hero Scenarios Link: here
Architecture Diagram Link: Not Provided
Core Concepts Doc Link: Not Provided
Description: Release candidate for Rooms GA. The Rooms API has been updated and reviewed.
APIView Links:
.Net: Azure.Communication.Rooms (<IP_ADDRESS>) - apiview.dev
Java: azure-communication-rooms (version 1.0.0-beta.3) - Created for PR 34258 - apiview.dev
JS: @azure/communication-rooms(1.0.0-beta.2) - Created for PR 25379 - apiview.dev
Python: azure-communication-rooms - Created for PR 29642 - apiview.dev
Detailed meeting information and documents provided can be accessed here

Meeting updated by Ronnie Geraghty
Service Name: IC3 ACS Rooms
Review Created By: Jorge Garcia Hirota
Review Date: 04/18/2023 02:05 PM PT
Hero Scenarios Link: here
Architecture Diagram Link: Not Provided
Core Concepts Doc Link: Not Provided
APIView Links: .NET,
Description: Combined Session:
Session 1:
Release candidate for Rooms GA. The Rooms API has been updated and reviewed.
NOTE:
Java: To be added closer to review date
JavaScript: To be added closer to review date
Python: To be added closer to review date
Session 2:
Identity Review for the Zinc release of Azure.Identity
Detailed meeting information and documents provided can be accessed here

API View links for Azure Identity:
.NET  Azure.Identity (<IP_ADDRESS>) - apiview.dev
JS  @azure/identity(3.2.0-beta.2) - apiview.dev
Java azure-identity (version 1.9.0-beta.4) - apiview.dev
Python azure-identity - apiview.dev
Go azidentity - Auto Review - 1cd56ad103b73335bd7a8a7aa0693b140045dc3f - apiview.dev
C++ Azure Identity - Auto Review - dd0fbec560bb862cd005c060ab5e7defa2a7b12c - apiview.dev


idea14+spring-boot(maven)+spring-loaded+java8 no effect

env：

jdk<IP_ADDRESS>
idea14.1.3
spring-boot-1.2.3-RELEASE
spring-loaded-1.2.3-RELEASE

vm options：
-javaagent:/Users/li/Downloads/springloaded-1.2.3.RELEASE.jar -noverify

After the configuration, the console first line has a hint:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -..../Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
But changing the code has no effect, why?

This is not an error with spring-loaded, but is actually a JDK issue:
There are many reports out there, for example:
http://stackoverflow.com/questions/18794573/objc10012-class-javalaunchhelper-is-implemented-in-both-libinstrument-dyl/18958973#18958973
It’s harmless but annoying.
BOB

On 29 May 2015, at 5:23 pm, mysoko<EMAIL_ADDRESS>wrote:
env：
• jdk<IP_ADDRESS>
• idea14.1.3
• spring-boot-1.2.3-RELEASE
• spring-loaded-1.2.3-RELEASE
vm options：
-javaagent:/Users/li/Downloads/springloaded-1.2.3.RELEASE.jar -noverify
After the configuration, the console first line has a hint:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -..../Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
But changing the code has no effect, why?
—
Reply to this email directly or view it on GitHub.

As transentia says, the message about lib instrument is a JDK issue but it does indicate the agent setting is being applied. I just ran a boot 1.2.3 app with spring loaded 1.2.3 using the javaagent and no verify options you specified. It works for me. As I change my controller code I can see the request mappings refreshing in the console. Here I added a couple of extra greeting endpoints and saved:
2015-06-26 13:05:57.650  INFO 62526 --- [Loader@58644d46] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/greeting],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String hello.GreetingController.greeting(java.lang.String,org.springframework.ui.Model)
2015-06-26 13:05:57.651  INFO 62526 --- [Loader@58644d46] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/greeting2],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String hello.GreetingController.greeting2(java.lang.String,org.springframework.ui.Model)
2015-06-26 13:05:57.651  INFO 62526 --- [Loader@58644d46] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/greeting3],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String hello.GreetingController.greeting3(java.lang.String,org.springframework.ui.Model)
2015-06-26 13:05:57.651  INFO 62526 --- [Loader@58644d46] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2015-06-26 13:05:57.651  INFO 62526 --- [Loader@58644d46] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)

you can add -Dspringloaded=verbose ahead of the -javaagent and then you will see this kind of method when it is reloading something:
Reloading: Loading new version of hello.GreetingController [PGkNG9Q]

Together with trace statements like this:
2015-06-26 13:07:45.108  INFO 62645 --- [           main] org.springsource.loaded.agent.Watcher    : Now watching /Users/aclement/gits/gs-serving-web-content/complete/target/classes/hello/GreetingController.class
2015-06-26 13:07:45.109  INFO 62645 --- [           main] o.s.l.agent.SpringLoadedPreProcessor     : SpringLoaded preprocessing: classname=org/springframework/boot/context/embedded/ServletRegistrationBean classloader=Launcher$AppClassLoader typeRegistry=TypeRegistry(id=358699161,loader=sun.misc.Launcher$AppClassLoader)


Update security update defaults

@jelletreep SURF has enabled automatic updates by default, so I've 1) turned off the feature in the UU Provisioning component that enabled them, and 2) updates these docs. Could you have a look to see if the current formulations make sense?
I've opted to keep the manual on security updates for now, because it explains the difference between updates for packages in apt and other applications, and because you never know if it it might be necessary again in the future. But I could also rework it so that we only keep the information on different kinds of updates and remove the instructions for enabling automatic OS updates.

@dometto , looks good, the formulations make sense and would not do it differently :smile:

Thank you! 🎉


input object

Started with the input object. - The main problem is the interface, the change between two different nodce types (multiple choice and input) and two make the switch between seem work properly

That is done. What's missig: textarea instead of text input, storage of the setting.

storage and loading is done

done


Conceal output looks strange

@thudjx reports in #35:
The concealed code are quite wired in my case, and I thingk maybe this is caused by the theme.

The powers in the first line is written as ^{2} while in the second line ^2.

I see "j"s in the code. Does your equation have any "j"s? Can you share the source code for the entire equation?

I see "j"s in the code. Does your equation have any "j"s? Can you share the source code for the entire equation?

\begin{align}
\dot{x}^{2}+\dot{y}^{j}=2 \\
\dot{x}^2+\dot{y}^j=2
\end{align}

I have tried using the default theme, and thing look much better:

OK, I'll try fixing this in the next release. Which theme were you using before?

Thank you so much!
I was using blue topaz. By the way, is there necessarity to put up an issue in that project?

I can't reproduce this issue using Blue Topaz:

Also, the top row (using ^{2}) is actually the row with the intended behaviour.
The bottom row (^2) is using an old approach; it seems I forgot to update it.
Are you able to use Inspect Element on the large green "2" and "j" to figure out where something strange is happening?

By the way, is there necessarity to put up an issue in that project?

Perhaps we should wait to open an issue over there until we figure out whether the issue is on our end!

It seems that I have changed the fontsize of mathjax code to be smaller in a snippet:
:root{
  --font-size-latex: 0.95em;
}

And if I comment this out, everything looks normal.
I do this because the mathjax code is too big for a long formula, which doesn't bother me any more thanks to auto-concealing.

Great! I'll close this issue then.


subctl operations which deploy images should support related images

What would you like to be added:
subctl operations deploying images, e.g. subctl verify or benchmark, should honour related images settings applied to the operator.
Why is this needed:
In catalog-based deployments, the operator is told which images it should deploy through “related images” settings in its environment. subctl should check for these and apply them; they are visible on the operator Deployment object.

Another idea here is to make a way for subclt to ask the operator to deploy pods, vs doing it itself. That way it would get the correct pods for free.

This will cause issues in downstream, disconnected environments.


Add undo/redo buttons

Add undo/redo buttons that operate on the text editor.
Closes #488.

Let's chat tomorrow about how we'll wire these up.


Enabling hf_transfer use.

This enables optional faster download using hf_transfer: https://github.com/huggingface/hf_transfer

Only enabled is when using env variable HF_TRANSFER=1 (makes it easy to disable).
Disable other form of parallelism when using HF_TRANSFER (this might lead to threads slowing each other down).

With it enabled, the download might look "slow" because most of the time can be taken while moving from a tmpfs to actual disk the model files.
This is deemed out of scope for now.
hf_transfer provides no feedback during download, again this can be added later if we want to grow the spec for this.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@Wauplin I can safely ignore codecov right ?

@Wauplin I can safely ignore codecov right ?

Yes no worries !

I don't have any problems regarding the implementation. Still, I'm not too sure about adding an optional rust dependency for a speedup that seems to affect setups with high-speed bandwidth links (if I understand correctly from the internal comments). Is the idea that we would only use this internally?
I don't think it would have community usage anyway, given that it would be particularly useful for larger artifacts, and I would think progress bars are imperative to large downloads as they would otherwise feel like shooting in the dark.

yes my understanding is this is mostly (or only) for internal use (Inference API notably)

As I see it, this is mostly for internal purposes. I have documented it only at 1 place in an "advanced" section and with warnings on the fact that it's "experimental" (understand "use it if you want but don't complain"). I don't think we will ever promote it out loud but having it is still relevant IMO

I would like also to mention @apolinario which thinks it could be very useful for Spaces (People tend to include the model files directly in the space because it's faster, but putting strain on the spaces infra as far as I understand).
The caveat for spaces, is that by default for CPU there is a limits:cpu which caps CPU usage and throttles hf_transfer which leads to similar or slower download speeds. But for all GPU and CPU upgrades, there is a benefit.
If you want to check out https://huggingface.co/spaces/Narsil/hf_transfer_showcase
Clearly the biggest win was this anyway: https://github.com/huggingface/huggingface_hub/pull/1267

Ok in that case, if you feel strongly and think it won't hut maintenance @Wauplin, let's merge it in!

Let's merge it then :)


enable validation of multiple optional audiences

Coverage decreased (-15.9%) to 78.52% when pulling c5958725fb7cd067f55de61d005097966f88e046 on multiple_audience_validation into b588a7c8143ccaeaf31f9c9f532ccc2d5c59008b on master.


test: add tests for cleanup functions

Add Tests for Cleanup Functions
This PR adds tests for the cleanup functions in the on and once methods as requested in the review comments of PR #3.
Changes Made

Added tests to verify the cleanup function returned by on works correctly.
Added tests to verify the cleanup function returned by once works correctly.

These tests have been added to the existing src/index.test.js file.
Related Issue
Referencing the original PR #3 for context.
Please let me know if any further adjustments are needed.

@taoeffect I've reverted all the formatting changes to conform to StandardJS (single quotes and no semicolons).
Please let me know if any further adjustments are needed.

You didn't make any changes... the same issue persists. Are you an AI?

Sorry, it was the mistake of my IDE. I'm not an AI 😄.


CASMPET-6079: Add Keycloak version 16.1.1

Added Keycloak version 16.1.1 for use in the first major jump in Keycloak version

Resolves CASMPET-6079
Future work in CASMPET-6079

I think you'll need to suppress the Snyk errors.
Error: Vulnerabilities are reported by snyk scan. Set 'fail_on_snyk_errors' input parameter to 'false' to suppress this error.
Error: Process completed with exit code 1.


Update README.md

Update the number of rules for p3c.

 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.


Anyone Want to help with VOIP?

In the branch unstable-pre-release-2.1.0 we're implementing VOIP.
If you have the ability to work with VOIP and want to, we'd love to see you submit a PR or two to help get it stable. If you do choose to work on the VOIP, please tag me and ask to be brought into the Discord so we can discuss your ideas and changes with the team and implement it in a way that keeps the package stable.
Note that in the unstable-pre-release-2.0.0 branch, we're completely removing ALL references to VOIP so, if you want to work on it, you'll need to use unstable-pre-release-2.1.0
Thank you for any help!

yeah sure umm still need help? btw im a beginner at this stuff so not sure i can help too much.


How do I use public API for the AceInstance?

Hi,
I am kind of new to javascript.
I created a new acediff element with
this.aceDiffer = new AceDiff({
      element: '.acediff',
      left: {
        content: this.originalYaml,
        editable: false
      },
      right: {
        content: this.applicationYaml,
        copyLinkEnabled: false
      },
    });

Say I want to get content in right panel, how do I get it?
console.log('Right content: ' + JSON.stringify(this.aceDiffer.getEditors().right.content));

gives undefined.

Hey, the object that's exposed from this.aceDiffer.getEditors().right is an actual ACE Editor instance. To get its value use getValue():
- console.log('Right content: ' + JSON.stringify(this.aceDiffer.getEditors().right.content));
+ console.log('Right content: ' + JSON.stringify(this.aceDiffer.getEditors().right.getValue()));


.Net: Bug: Exception thrown with chatCompletionService.GetStreamingChatMessageContentsAsync

Seeing the exception below with this call:
chatCompletionService.GetStreamingChatMessageContentsAsync(_skChatHistory, executionSettings, kernel)

I see this issue with latest nuget package version 1.24.1
The issue is not repro with package version 1.20.0

Exception:
System.TypeLoadException
HResult=0x80131522
Message=Method 'GetAsyncEnumerator' in type 'OpenAI.Chat.InternalAsyncStreamingChatCompletionUpdateCollection' from assembly 'OpenAI, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b4187f3e65366280' does not have an implementation.
Source=OpenAI
StackTrace:
at OpenAI.Chat.ChatClient.CompleteChatStreamingAsync(IEnumerable1 messages, ChatCompletionOptions options, CancellationToken cancellationToken)    at Azure.AI.OpenAI.Chat.AzureChatClient.CompleteChatStreamingAsync(IEnumerable1 messages, ChatCompletionOptions options, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.<>c__DisplayClass16_1.b__0()
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.RunRequest[T](Func`1 request)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.d__16.MoveNext()
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.d__16.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)

Hi @deepinderdeol, thanks for the issue.
At first looks like you are referencing a different version of OpenAI SDK than the expected 2.1.0-beta.1 in your solution.
Can you provide more details on the references and how I can reproduce the above error? Possibly including the code for chathistory , settings and the kernel ?
Thanks

Closing this as no more feedback was provided and potentially the OpenAI version used was previous to 2.1.0-beta.1


Esc key to close switcher

Thank you, thank you, thank you for making this!
Something I often do with both the macOS switcher (which this switcher imitates) and the Windows switcher and is really muscle-memoried into me is to close the switcher with the Escape key. I might open the switcher, look around, change my mind, and then close the switcher with Escape (obviously while Alt is still held down and with no switching to the highlighted app).
I would love for window-switcher to have this simple functionality: Close the switcher on Escape key.
At the moment any Alt-based hotkeys not explicitly handled by window-switcher's keyboard handler falls through to the active window (like Alt-F4!), and Alt+Esc is a global Windows hotkey ("Cycle through items in the order in which they were opened."), which really messes up my muscle memory when using window-switcher. I think window-switcher should consume as many keystrokes as is possible while the switcher window is visible (see #81).

No, releasing a hotkey to close switcher is more natural than esc

No, releasing a hotkey to close switcher is more natural than esc

This means there is no easy way to "undo" the invocation of the switcher. Both Windows and macOS does this (using Esc to close the switcher).

switching windows of the same app is realtime. no way to undo.
Switching apps can be undo using shift, such as alt + shift + tab

I'd like to add a +1 for this feature request.
Canceling out of an action is an important part of any UX, I'd really appreciate this as an option in the config.
There's an autohotkey version of this (https://github.com/Osmagtor/AppSwitcher/ - I modified it and posted my changes in the "issues") but I'd prefer to use this Rust version, if it could exit when I press Esc - as that's what I use when I work on my Mac at home :)
Thanks for making this!


fixes #43687

removes a visual glitch when renaming a file in the explorer
The glitch appears when calling tree.clearHighlight() and disappears when container.removeChild(label.element) is called.

Thanks for the PR. However with your changes I still see the visual glitch on my machine. I actually can not notice the difference with or without your changes. Do they actually help on your machine?
Also did you make sure that your changes do not break https://github.com/Microsoft/vscode/issues/20269
Since I see @joaomoreno has referenced that issue in the code which you are slightly changing?

Ugh, you are right, I'm sorry!
To save you some time on the next version of this PR it will contain animated gifs for:

before and after my fix
before joaos fix, after joao's fix and after my fix

@tsalinger no problem. And no need for the gifs, I'll just try it out on my machine. Thanks a lot


Locale banner – mobile user test

Note: we might need to refine this story once mobile designs are completed

User Story

As a [user role below]:

DDS designer

I need to:

test the mobile version of the locale selector

so that I can:

determine if users understand
Additional information

[ ] write user test
[ ] review user test with stakeholders, researcher, dds lead (?)
[ ]  conduct user test
[ ] synthesize results
{{user metrics}}

Acceptance criteria

[ ] user test results are presented to stake holders
[ ] agreement from stake holders
[ ] {{And another}}

Closing this issue.  The work will be managed on the Ideation board.


Unselect selected elements on blur

What is the problem?
After selecting desired elements, clicking outside any selectables but inside the selection area should un-select the selected elements.
What is the current behavior?
Clicking outside the selectables but still inside the selection area does not clear the selection. Clicking on a selectable when multiple elements are selected correctly clears the selection and selects the new selectable.
What is the expected behavior?
Clicking anywhere inside the selection area should clear the selected items unless the shift or ctrl key is pressed.

The selectionarea also does not respond to event listeners such as onClick or onMouseDown so i could not add the desired effect on my own.

You can just add a  listener to the selection-area by yourself and clear the selection if there hasn't been a selection between the pointerdown and pointerup events, or something like this :)

having the same problem.

You can just add a listener to the selection-area by yourself and clear the selection if there hasn't been a selection between the pointerdown and pointerup events, or something like this :)

That solves part of the problem, but selection cleared when clicking or dragging the scrollbar(scrollbars are part of the selection-area)

You can just add a listener to the selection-area by yourself and clear the selection if there hasn't been a selection between the pointerdown and pointerup events, or something like this :)

That solves part of the problem, but selection cleared when clicking or dragging the scrollbar(scrollbars are part of the selection-area)

@simonwep I had the same problem described by lanyeeee. I had come up with a similar approach for the required functionality and i ran into the same issue where scrollbar interaction also unselected the selected elements. I'll share exactly what I did for reference.
useEffect(() => {
const handleClick = (event: MouseEvent) => {
if (
event.button === 0 &&
!event.ctrlKey &&
!event.metaKey &&
filesystemRef.current &&
event.target === filesystemRef.current
) {
removeAllFiles();
}
};
document.addEventListener('mousedown', handleClick);
return () => {
  document.removeEventListener('mousedown', handleClick);
};

}, []);
In this approach, clicking on the selected elements would also unselect all files by calling "removeAllFiles()" and then select the element I clicked on. But since I am implementing a file manager, this behavior is intended. The only issue is with scrollbar as i do not know how to check for that specific event.

Alright, I can see that this is difficult to implement outside of the core library, I'll make this a feature and have a look into it :)


incus-lts: 6.0.2 -> 6.0.3

https://discuss.linuxcontainers.org/t/incus-6-0-3-lts-has-been-released/22403
Also included a fix to tests. I pruned a bit too much in the refactor and loss the passing through of other systems.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Built all test suite on x86 and aarch64


Looking for a simple command and its documentation for evaluating EAL output

Hi there
This repo is linked as the official 2017 evaluation repo, but we do have severe problems to understand how any of these software pieces can be used for simply evaluating the output of our EAL system using this official scorer.
Ideally it would be some shell command with its relevant arguments and options, or at least a working example for a configuration file.
Thanks a lot.

I think you're looking for https://github.com/BBN-E/tac-kbp-eal/blob/master/Evaluation.md and https://github.com/BBN-E/tac-kbp-eal/blob/master/bin/evaluate2016.sh
The class that runs scoring is https://github.com/BBN-E/tac-kbp-eal/blob/master/tac-kbp-eal-scorer/src/main/java/com/bbn/kbp/events/ScoreKBPAgainstERE.java

To clarify, the only people who can currently run scoring for 2017 is NIST, because they are the only ones with access to the gold standard data to score against.  After the official scoring is complete, a 2017 shell script like evaluate2016.sh will be added to the repository.  You are correct that we should link to these from the main README file.

No new traffic on this issue and the evaluation finished. Closing. Please re-open with a specific action item if something in particular needs to be done.


Need a fully qualified urlFor() helper

In the current Slim 3, to create a fully qualified URL for a given route name, you need to do this inside a route callable:
$router = $this->router;
$uri = $request->getUri();

$url = $uri->getScheme() . '://' . $uri->getHost()
        . $uri->getPort() ? ':' . $uri->getPort() : ''
        . rtrim($uri->getBasePath(), '/')
        . $router->pathFor('news-archive', ['year'=>'2015'], ['foo' => 'bar']);

We need a helper method for this.

Related question -- Are we going to rename url_for() in Twig-View to match what we named it here? Being I guess path_for() for consistency? Deprecate url_for() and I guess create a uri_for() or similar so that names are aligned with functionality and maintain a level of consistency.

See https://github.com/slimphp/Twig-View/pull/20

Based on IRC chat:
Another option would be to add a method to the Request that returns the combination of scheme, domain, port and base path. It could be used something like this:
$url = $app->request->siteUrl($app->router->pathFor('hello'));

or
$url = $app->request->siteUrl() . ltrim($app->router->pathFor('hello'), '/');

How about something like #1328 to provide an easy way to get the fully qualified URL including the base path?

This would be nice. I always run into the need for this when sending emails that need to provided a full URI so folks can click to access the application.

This have now been merged in.


Allow secrets to be injected into the compose and build sections for pull_request events

This PR help should help elevate the pain of injecting secrets into the build and compose sections of the .drone.yml file.  It fixes https://github.com/drone/drone/issues/1250.
Now that .drone.yml and .drone.sec can utilize a checksum to verify contents, injecting secrets into the compose section can be allowed.  Also because of the conditions feature pull_request events can now be detected, and the resulting builds can be treated in a different manner.
Currently there is thought and work happening around a before step for plugins (see https://github.com/drone/drone/issues/1443) that might also provide additional tools for users to easily secure their builds.

 You should sign our Contributor License Agreement in order to get your pull request merged.

LGTM
Just want to add a warning to the docs and then we can merge. People will be very happy to see this change!

documentation change at https://github.com/drone/docs/pull/90

LGTM


Add Adam's codegen quote

I actually think this is quite the testimonial!
Quote appears at 1:01:21 in the audio.

wow! thanks... that wasn't half-stupid of me!

Would it be OK with you if I also propose this to This Week in Rust for the quote of the week?


Edit components labels

I need to translate labels of application but today labels are hardcode, so I think it's a good idea to add some inputLabels settings, where I can inform the Labels when I want.
I have made some changes but I can't open a PR. Can you plz help?

Hi..not able to understand what you are trying to imply my saying 'labels are hardcoded'.
You can change the placeholder text of the input box by setting the keyworkinputPlaceholderText .
You can open a PR by creating a branch and then open a PR. you won't be able to push to master branch directly.


Error: Invalid request - only 65535 characters are allowed

I am kicking the tires on this action using a project with about 1000 tests.  Unfortunately it fails.  Any suggestions?
Finding Trx files in: /home/runner/work/mit-yousee-odin-api/mit-yousee-odin-api/TestResults
Files count: 1
Processing 1 trx files
Transforming file /home/runner/work/mit-yousee-odin-api/mit-yousee-odin-api/TestResults/_fv-az186-920_2020-12-28_08_37_52.trx
Checking for failing tests
Creating PR check for ODINAPI SELFCARE.TESTS
Creating status check for GitSha: 97c859732655f4633222f0db3b6483c07ab21e70 on a push event
Check time is: Mon, 28 Dec 2020 08:38:34 GMT
Error: Invalid request.

Only 65535 characters are allowed; 1607778 were supplied.

Hi @tandeday
Thanks for trying to ye this action and raising this issue. I am currently on vacation but from the error I can guess that it is failing due to limits on the outcome text of the checks api.
Not sure what can b done about that but I'll have a look next week.
In the meantime, would you mind sharing the trx if not confidential?

github/docs/#2403

This is not urgent so no rush.  I cannot share the TRX file publicly, but perhaps with you personally.  Let's have a look together when you are back from vacation.

Related: zyborg/dotnet-tests-report#6

Related: zyborg/dotnet-tests-report#6

@tandeday Based on the linked issues in the comment above it is clear this is a hard limit on the GitHub checks API and there is not solution to that limit.
So here's what I propose:

Allow skipping creation of test report with a new flag skip_test_report and create an empty check with a simple overall pass or fail status. OR
Introduce a new flag that allows to only create a report when there are failing tests otherwise just show the overall status of passed.
Don't introduce any flags but in the logic work out if the number of characters in the test report exceed the limit. Then automatically:

Only show failing tests on the report
show overall status of passed if there are no failing tests.

Thoughts?
Once we have some consensus on one of options above or a better option you could suggest then we can talk about implementation. Please feel free to contribute if you have time otherwise I'll try to address this when I can find free time.

@tandeday Based on the linked issues in the comment above it is clear this is a hard limit on the GitHub checks API and there is not solution to that limit.
So here's what I propose:

Allow skipping creation of test report with a new flag skip_test_report and create an empty check with a simple overall pass or fail status. OR
Introduce a new flag that allows to only create a report when there are failing tests otherwise just show the overall status of passed.
Don't introduce any flags but in the logic work out if the number of characters in the test report exceed the limit. Then automatically:

Only show failing tests on the report
show overall status of passed if there are no failing tests.

Thoughts?
Once we have some consensus on one of options above or a better option you could suggest then we can talk about implementation. Please feel free to contribute if you have time otherwise I'll try to address this when I can find free time.

Things have changed as we have had a firing round, and this is no longer in scope.  I will suggest that the default behavior is the safest without generating a test report (or at least just create a summary that will fit in the block), and that the full report is only shown if explicitly enabled, and that the documentation clearly shows that there is a hard limit for the size.
Thanks

Things have changed as we have had a firing round, and this is no longer in scope.  I will suggest that the default behavior is the safest without generating a test report (or at least just create a summary that will fit in the block), and that the full report is only shown if explicitly enabled, and that the documentation clearly shows that there is a hard limit for the size.
Thanks

Created a new release https://github.com/NasAmin/trx-parser/releases/tag/v0.1.0
From v0.1.0 onwards, trx-parser will only report failed tests


Port Request: net-snmp

Would be nice to see net-snmp project ported to vcpkg system.


stream was reset: PROTOCOL_ERROR

okhttp: 3.12.2
This problem(stream was reset: PROTOCOL_ERROR) is always reported when downloading files using okhttp, We have turned off http2，I don't know why, but I will still report this problem

Can you try with OkHttp 4.10?

No, because the app needs to release a new version, 3.12.2 and 4.10. Is there any difference？

I closed http2 directly by the server gateway. Whether to set Protocol HTTP_ 1_ 1 can close http2?

Well, there have been potentially relevant fixes in 4.x.  I'm not sure if it's specifically fixed or the route cause but 3.x is not maintained, so we can't fix even if we find a bug.  And not worth doing that unless we know it exists on the maintained branches.
Please reopen with a bug report against 4.10.


Multithreading

Is it possible to use more than one CPU cores for simulation calculation?
I'm experimenting with server to calculate and stream physic for supposedly multiplayer game. Everything working fine at this stage but I'm playing with limits. Having CPU i7-7820X X-Series with 16 cores, I generated world of ramdonly positioned in area spheres.
To simulate one step for world with 10k objects it takes ~900ms. (with no collisions)
When I split those objects to be simulated separatedly on each of my 16 cores - the result was 32ms.
And then I can simulate 70k objects in about same time (even less) than 10k on single core. Profits are obvious - this making a way to extend my architecture, maybe in clouds.
The problem is - in my experiment, separated objects are calculated in separated worlds so coliisions between them wount be calculated. So I need multithreading supported internally by cannon.js library.
How hard would it be to implement? Where can I start?

Probably difficult.
As far as I know, the only way to do multithreading in JS is Web Workers. This means that each parallel job or api call needs to be asynchronous instead of synchronous... which would mean you would have to redesign the whole api :(
You could also try splitting your simulation into a grid, and each grid cell would run in its own thread. When an object crosses a cell border, move it to the new cell. You’ll have to figure out collisions between objects living in different cells, but if you got that working you have a pretty scalable simulation.

nodejs 10.5 has workers as an experimental feature. basically works (TM)

@schteppe there are maybe situations when single objects should be presented in few cells so that collision with different part of that object be calculated:

But I think this is not a big problem and the implementation would not be difficult. Thank you for the advice )

Can confirm @schteppe suggestion works. I started trying to implement something like a few weeks ago and just got it to work: https://www.youtube.com/watch?v=plVz9GH81q4&feature=youtu.be at least for basic collision detection, I haven't tested anything hard core yet.

Nice job, @robrohan . Can you provide a test where there would be about 20-30 objects randomly running in area, passing from cell to cell and colliding with each other?

@SET001 It's still quite new and not working perfectly at the moment. Because of the way it was done originally, when a dynamic body jumps threads it looses it's velocity - stops, and then just has gravity applied and falls down.  However, it does interact with the new bodies in the new thread, but it's all a bit loose at the moment.

Can't javascript use C++ compiled dll to compute critical parts of collision? In C++, a single cpu thread can compute 30k AABBs' all-pair collisions at 60FPS using 3D octree-like structure. Even brute-force for 10k AABBs can be completed at 60FPS using AVX2/AVX512.


eBPF verification failed with incorrect stack upper bound check

Describe the bug
code example
typedef struct
{
    uint16_t cipher_suits[50];
    uint8_t cipher_suit_count;
} client_hello_info;

SEC("xdp_test")
int tls_client_hello_tracker(xdp_md_t* ctx)
{
    client_hello_info info;
    for (int i = 0;i < 50; i++)
        info.cipher_suits[i] = 0;

    bpf_ringbuf_output(&client_hello_info_pipe, &info, sizeof(info), 0);
    bpf_printk("Add one message");

    return XDP_PASS;
}

ebpf verification result
; C:\Users\User\Source\ebpfSamples/xdp1.c:142
;         info.cipher_suits[i] = 0;
9: Lower bound must be at least 0 (valid_access(r3.offset, width=2) for write)
; C:\Users\User\Source\ebpfSamples/xdp1.c:142
;         info.cipher_suits[i] = 0;
9: Upper bound must be at most EBPF_STACK_SIZE (valid_access(r3.offset, width=2) for write)
; C:\Users\User\Source\ebpfSamples/xdp1.c:144
;     bpf_ringbuf_output(&client_hello_info_pipe, &info, sizeof(info), 0);
19: Stack content is not numeric (valid_access(r2.offset, width=r3) for read)

In the code, the size of the array is given. Why the verification still think the array access is not valid?
OS information
Windows11
Steps taken to reproduce bug

use clang to build code example.
netsh ebpf show verification xxx.o

Expected behavior
Verification succeed.
Actual outcome
Verification failed.
Additional details
No response

Please share the .o file and the eBPF version that you are using.

While debugging with @shankarseal, we find the error is resolve if we rewrite the loop to
info.cipher_suits[0] = 0;
info.cipher_suits[1] = 1;
info.cipher_suits[2] = 2;
...
info.cipher_suits[4] = 4;

Looks like a duplicate of https://github.com/vbpf/ebpf-verifier/issues/441
Workarounds are either:
a) Use the pragma unroll macro to tell the compiler to unroll the loop like you mentioned, or
b) make the loop count down instead of up.  sometimes that will work.

Tracked by #1993


Nightly docker-CUDA (3.9, 1.11) fails due to apex installation failure

🐛 Bug
This is not blocking the current unavailability of GPU testing reported in #12314.
@Borda might be already aware of this, but creating this issue for tracking.
#13 5.357   Running setup.py install for apex: finished with status 'error'
#13 5.360 error: legacy-install-failure
#13 5.360
#13 5.360 × Encountered error while trying to install package.
#13 5.360 ╰─> apex
#13 5.360
#13 5.360 note: This is an issue with the package mentioned above, not pip.
#13 5.360 hint: See above for output from the failure.
------
dockers/base-cuda/Dockerfile:129
--------------------
 128 |
 129 | >>> RUN \
 130 | >>>     # install NVIDIA apex
 131 | >>>     pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" https://github.com/NVIDIA/apex/archive/refs/heads/master.zip && \
 132 | >>>     python -c "from apex import amp"
 133 |
--------------------
error: failed to solve: process "/bin/bash -c pip install -v --disable-pip-version-check --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" https://github.com/NVIDIA/apex/archive/refs/heads/master.zip &&     python -c \"from apex import amp\"" did not complete successfully: exit code: 1
Error: buildx failed with: error: failed to solve: process "/bin/bash -c pip install -v --disable-pip-version-check --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" https://github.com/NVIDIA/apex/archive/refs/heads/master.zip &&     python -c \"from apex import amp\"" did not complete successfully: exit code: 1

To Reproduce
See scheduled workflows failures:https://github.com/PyTorchLightning/pytorch-lightning/actions/workflows/events-nightly.yml
For example: https://github.com/PyTorchLightning/pytorch-lightning/runs/5562728423?check_suite_focus=true
Expected behavior

Environment

PyTorch Lightning Version (e.g., 1.5.0):
PyTorch Version (e.g., 1.10):
Python version (e.g., 3.9):
OS (e.g., Linux):
CUDA/cuDNN version:
GPU models and configuration:
How you installed PyTorch (conda, pip, source):
If compiling from source, the output of torch.__config__.show():
Any other relevant information:

Additional context

cc @carmocca @akihironitta @borda @tchaton @rohitgr7

Borda might be already aware of this, but creating this issue for tracking.

yes found it ding building fix in #12318


[Improvement][PyDolphinScheduler] update PyDolphinScheduler documentation link.

Purpose of the pull request
update PyDolphinScheduler documentation link from python/index.html to python/dev/index/html

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Codecov Report

Merging #11474 (1ba38a7) into dev (13d400c) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev   #11474      +/-   ##
============================================
- Coverage     39.36%   39.35%   -0.02%
+ Complexity     4632     4629       -3
============================================
  Files           987      987
  Lines         37566    37548      -18
  Branches       4183     4178       -5
============================================
- Hits          14788    14776      -12
+ Misses        21227    21221       -6
  Partials       1551     1551

Impacted Files
Coverage Δ

...erver/master/processor/queue/TaskEventService.java
69.64% <0.00%> (-10.72%)
:arrow_down:

...che/dolphinscheduler/common/utils/HadoopUtils.java
15.86% <0.00%> (-0.73%)
:arrow_down:

...uler/api/service/impl/DataAnalysisServiceImpl.java
81.51% <0.00%> (-0.31%)
:arrow_down:

...pache/dolphinscheduler/common/utils/DateUtils.java
74.21% <0.00%> (-0.17%)
:arrow_down:

...api/service/impl/ProcessDefinitionServiceImpl.java
32.27% <0.00%> (-0.01%)
:arrow_down:

...e/dolphinscheduler/server/master/MasterServer.java
0.00% <0.00%> (ø)

...e/dolphinscheduler/server/worker/WorkerServer.java
0.00% <0.00%> (ø)

.../dolphinscheduler/plugin/task/datax/DataxTask.java
0.00% <0.00%> (ø)

...server/master/runner/task/SwitchTaskProcessor.java
2.54% <0.00%> (+0.02%)
:arrow_up:

.../server/master/runner/WorkflowExecuteRunnable.java
7.91% <0.00%> (+0.02%)
:arrow_up:

... and 2 more

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


[Add] Add open source events that take place throughout the year

Site URL
https://www.geeksforgeeks.org/best-open-source-programs-for-students-to-participate/
Description of the above provided site
best-open-source-programs-for-students-to-participate

Category
Other
Sub Category
events
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@CBID2 @rupali-codes please assign me so that by the end of the day , i can add a pr


adding ecs clusters comparison and sendto functionality

General comment - it was taking me way too long to figure out what certain functions were trying to do. Comments and better variable/parameter names would go a LONG way to explaining the code.


Thread waiting occurs sometimes while a ListView is scrolling

We found that it’s easy to occur thread waiting while a ListView is scrolling,  an example like this:
import "package:flutter/material.dart";

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: Scaffold(
        body: ListPage(),
      ),
    );
  }
}

class ListPage extends StatelessWidget {

  Widget build(BuildContext context) {
    return ListView.builder(
      itemBuilder: (BuildContext context, int index) {
        return Container(
          child: Column(
            children: <Widget>[
              Text(index.toString())
            ],
          ),
        );
      },
    );
  }
}

Thread waiting occurs in the process of GC, which will delay the next frame:

or,  occurs in the process of "BeginFrame":

......
Here is a timeline screenshot for our real business scene, and you can see that the thread waiting also occurs at some frames.

devices:
BKL AL00   • RKKDU17B29000948 • android-arm64  • Android 9 (API 28)

flutter doctor -v:
[✓] Flutter (Channel unknown, v1.13.5, on Mac OS X 10.14.6 18G103, locale en-CN)
    • Flutter version 1.13.5 at /Users/wangying/Desktop/flutter/flutter
    • Framework revision 41a911099b (10 days ago), 2019-12-19 13:48:02 -0800
    • Engine revision 0f90e6546b
    • Dart version 2.8.0 (build 2.8.0-dev.0.0 aa6709974d)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/wangying/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/wangying/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2, Build version 11B52
    • CocoaPods version 1.7.5

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

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[!] Android Studio
    • Android Studio at /Applications/Android/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    ✗ Android Studio not found at /Applications/Android/Contents
    • Try updating or re-installing Android Studio.

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

[✓] Connected device (3 available)
    • BKL AL00   • RKKDU17B29000948 • android-arm64  • Android 9 (API 28)
    • Chrome     • chrome           • web-javascript • Google Chrome 79.0.3945.88
    • Web Server • web-server       • web-javascript • Flutter Tools

@xster : can your team please help triage this?

Hi @wangying3426,
Is this still an issue ?
I tried to replicate by scrolling a sample ListView code sample, but didn't see thread waiting in console.

log
Installing build/app/outputs/flutter-apk/app.apk...
Waiting for SM A260G to report its views...
Debug service listening on ws://<IP_ADDRESS>:54209/YhmUijUYND4=/ws
Syncing files to device SM A260G...
I/zygote  (12636): Do partial code cache collection, code=28KB, data=30KB
I/zygote  (12636): After code cache collection, code=28KB, data=30KB
I/zygote  (12636): Increasing code cache capacity to 128KB
I/zygote  (12636): Do partial code cache collection, code=62KB, data=52KB
I/zygote  (12636): After code cache collection, code=62KB, data=52KB
I/zygote  (12636): Increasing code cache capacity to 256KB
W/libEGL  (12636): EGLNativeWindowType 0xd125f008 disconnect failed
W/libEGL  (12636): EGLNativeWindowType 0xd4549008 disconnect failed

I am on latest stable (1.20.4) and tested on Android Samsung Galaxy A2Core (8.1.0) device.

flutter doctor -v
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.4 19E2269, locale en-IN)
    • Flutter version 1.20.4 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision fba99f6cf9 (4 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

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

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (2 available)
    • SM A260G (mobile)                   • 5200763ebcfa861f
      • android-arm • Android 8.1.0 (API 27)
    • iPhone SE (2nd generation) (mobile) • 312977A7-2DB1-4737-AEBB-35FA6522A309
      • ios         • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)

• No issues found!

If issue persists at your end, please provide flutter doctor -v latest and snapshots of the thread waiting occuring.
Thanks.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Need update since supabase v2.43.1 now contains a change to ignore 403 setSession error

Hello RA team,
Supabase update their authSystem last week resulting in throwing a 403 error instead of a 401+logout as before.
It makes that when we connect, sometimes we get stuck in a limbo between trying to connect and accessing React-Admin.
I addressed that issue to Supabase team and this is their answer:
**This error is returned when we detect that the session_id claim in the access token doesn't exist in the auth.sessions table. It was introduced in this PR (https://github.com/supabase/auth/pull/1538) because we realised that we were returning the wrong error when the session is missing. Before this PR was merged, the sign out API would return a panic and fail silently, returning a 5xx error to the client which can't be handled.
You can fix this by doing either one of these options:

Manually ignore 403s returned from signOut and just clear the local session stored on the browser.
Upgrade to supabase-js v2.43.1 which contains the changes to ignore 403s returned by the signOut method**

We cannot update supabase-js since ra-supabase uses it as a peer dependency.
That why it would be much appreciated if you guys could update ra-supabase to include that important new supabase-js version.
Kind regards,

Hi! Thanks for the heads up. Can you open a PR?

Sure. It's done :)

@djhi
Hello.
Would you release new version with this change? ( PR #55 )
This issue is critical for us and many users.

@oddmutou Yes we'll plan to make a release very soon, thanks for the reminder!

Fixed by https://github.com/marmelab/ra-supabase/pull/55


Pretty print the result table for better readability

Added code to print the table in a neat way for better organisation and readability.

Thanks

Btw could you also add a requirements.txt for both tabulate and spotipy, mention a pip install -r requirements.txt in the README? You can have it in a separate PR if you want to :)

Btw could you also add a requirements.txt for both tabulate and spotipy, mention a pip install -r requirements.txt in the README? You can have it in a separate PR if you want to :)

Good Idea. Will raise PR