[Help is wanted] Run sherpa from browser on Huggingface

In the following screenshot,
https://huggingface.co/speechbrain/asr-transformer-transformerlm-librispeech
A user can click the button "Record from browser" to record his/her voice and then click  the button "Compute", which
will run the model to decode the speech and displays the decoded results.
It is nice to also have it with sherpa.

I might look at it if you have some pointers on how to get started?
y.
On Wed, Jul 6, 2022 at 4:42 AM Fangjun Kuang @.***>
wrote:

In the following screenshot,
https://huggingface.co/speechbrain/asr-transformer-transformerlm-librispeech
A user can click the button "Record from browser" to record his/her voice
and then click the button "Compute", which
will run the model to decode the speech and displays the decoded results.
It is nice to also have it with sherpa.
[image: 90a]
https://user-images.githubusercontent.com/5284924/177508456-08fa37b9-de01-43d4-86d5-38a39b8ce585.png
—
Reply to this email directly, view it on GitHub
https://github.com/k2-fsa/sherpa/issues/50, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUKYX4YTETBULEUZFBAUZDVSVBG3ANCNFSM52Y5EMYQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@jtrmal
As a first step, I recommend you to visit https://github.com/huggingface/api-inference-community
That repository contains examples about using ESPnet, NeMo, and Speechbrain for automatic speech recognition.
The README.md in the above
repository contains instructions for how to add a new library.
Basically, you need to create a directory docker_imsages/k2 inside the above repo and copy everything from the directory docker_images/common to it and then start to modify things.
(Note: We can also use the name docker_images/sherpa, or docker_images/icefall. You can decide the name to use.)
I have good news for you. You can use the PR Add support for NeMo as a concrete example.
After finishing adding docker_imsages/k2 and getting merged, you may wonder how to access it over https://huggingface.co.
You can use the following three URLs to find all models on huggingface that are using automatic speech recognition from the above repository:

https://huggingface.co/models?library=espnet&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=speechbrain&pipeline_tag=automatic-speech-recognition

Note: The above three URLs differ only in the parameter library. Once you fix this issue, you can also use
https://huggingface.co/models?library=k2&pipeline_tag=automatic-speech-recognition
to find all models on huggingface that are using k2 for ASR. (Assuming you choose docker_images/k2).
Let us click https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
and you will see the following screenshot:

If we click the first model, i.e., visit https://huggingface.co/nvidia/stt_en_conformer_transducer_xlarge , we will see
the following screenshot:

Click Edit model card (or click Files and versions and click the file README.md), and you will see:

The most important three lines are
library_name: nemo
tags:
- automatic-speech-recognition

library_name: nemo means it selects docker_images/nemo
The tag automatic-speech-recognition means to select the pipeline
https://github.com/huggingface/api-inference-community/blob/main/docker_images/nemo/app/pipelines/automatic_speech_recognition.py
(Note it replaces - with _ internally).
I have added the following lines to
https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/blob/main/README.md
---
language:
- en
library_name: k2
tags:
- automatic-speech-recognition
widget:
- example_title: Librispeech sample 1
  src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1089-134686-0001.wav
- example_title: Librispeech sample 2
  src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0001.wav
- example_title: Librispeech sample 3
  src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0002.wav
---

and it produces the following screenshot

However, if you click the Compute button, it will display Internal Server Error.
Hope that if you finish adding docker_images/k2 to https://github.com/huggingface/api-inference-community, it will work.
Thanks!

nice, thank you!
will start working on it this week
y.
On Thu, Jul 7, 2022 at 1:05 AM Fangjun Kuang @.***>
wrote:

@jtrmal https://github.com/jtrmal
As a first step, I recommend you to visit
https://github.com/huggingface/api-inference-community
That repository contains examples about using ESPnet
https://github.com/espnet/espnet, NeMo https://github.com/NVIDIA/NeMo,
and Speechbrain https://github.com/speechbrain/speechbrain for
automatic speech recognition.
The README.md
https://github.com/huggingface/api-inference-community/blob/main/README.md
in the above
repository contains instructions for how to add a new library.
Basically, you need to create a directory docker_imsages/k2 inside the
above repo and copy everything from the directory docker_images/common
https://github.com/huggingface/api-inference-community/tree/main/docker_images/common
to it and then start to modify things.
(Note: We can also use the name docker_images/sherpa, or
docker_images/icefall. You can decide the name to use.)
I have good news for you. You can use the PR Add support for NeMo
https://github.com/huggingface/api-inference-community/pull/35 as a
concrete example.
After finishing adding docker_imsages/k2 and getting merged, you may
wonder how to access it over https://huggingface.co.
You can use the following three URLs to find all models on huggingface
that are using automatic speech recognition from the above repository:

https://huggingface.co/models?library=espnet&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=speechbrain&pipeline_tag=automatic-speech-recognition
Note: The above three URLs differ only in the parameter library. Once you
fix this issue, you can also use
https://huggingface.co/models?library=k2&pipeline_tag=automatic-speech-recognition
to find all models on huggingface that are using k2 for ASR. (Assuming you
choose docker_images/k2).
Let us click
https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
and you will see the following screenshot:
[image: Screen Shot 2022-07-07 at 12 42 21 PM]
https://user-images.githubusercontent.com/5284924/177692915-488301be-1d8e-4be0-a5c9-ff75545eaa2f.png
If we click the first model, i.e., visit
https://huggingface.co/nvidia/stt_en_conformer_transducer_xlarge , we
will see
the following screenshot:
[image: 0b0a]
https://user-images.githubusercontent.com/5284924/177693204-0e4c45f5-b1e3-4be6-a9c2-9a1ca9c4e993.png
Click Edit model card (or click Files and versions and click the file
README.md), and you will see:
[image: 0a0b12]
https://user-images.githubusercontent.com/5284924/177693504-2b46209b-1607-4eb5-8934-b89e02b21097.png
The most important three lines are
library_name: nemo
tags:

automatic-speech-recognition

library_name: nemo means it selects docker_images/nemo
https://github.com/huggingface/api-inference-community/tree/main/docker_images/nemo
The tag automatic-speech-recognition means to select the pipeline
https://github.com/huggingface/api-inference-community/blob/main/docker_images/nemo/app/pipelines/automatic_speech_recognition.py
(Note it replaces - with _ internally).
I have added the following lines to
https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/blob/main/README.md

language:

en
library_name: k2
tags:
automatic-speech-recognition
widget:
example_title: Librispeech sample 1
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1089-134686-0001.wav
example_title: Librispeech sample 2
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0001.wav
example_title: Librispeech sample 3
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0002.wav

and it produces the following screenshot
[image: Screen Shot 2022-07-07 at 1 00 18 PM]
https://user-images.githubusercontent.com/5284924/177694923-c2fb875a-8880-4032-8875-5c3ca3c94ca9.png
However, if you click the Compute button, it will display Internal Server
Error.
Hope that if you finish adding docker_images/k2 to
https://github.com/huggingface/api-inference-community, it will work.
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/k2-fsa/sherpa/issues/50#issuecomment-1177075657, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUKYX63Q3LN5MNBKDBCDE3VSZQTNANCNFSM52Y5EMYQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

do you want me to install sherpa always from git or do you prefer from pip?
I mean for the huggingface docker image build
y.
On Thu, Jul 7, 2022 at 8:08 AM Jan Yenda Trmal @.***> wrote:

nice, thank you!
will start working on it this week
y.
On Thu, Jul 7, 2022 at 1:05 AM Fangjun Kuang @.***>
wrote:

@jtrmal https://github.com/jtrmal
As a first step, I recommend you to visit
https://github.com/huggingface/api-inference-community
That repository contains examples about using ESPnet
https://github.com/espnet/espnet, NeMo https://github.com/NVIDIA/NeMo,
and Speechbrain https://github.com/speechbrain/speechbrain for
automatic speech recognition.
The README.md
https://github.com/huggingface/api-inference-community/blob/main/README.md
in the above
repository contains instructions for how to add a new library.
Basically, you need to create a directory docker_imsages/k2 inside the
above repo and copy everything from the directory docker_images/common
https://github.com/huggingface/api-inference-community/tree/main/docker_images/common
to it and then start to modify things.
(Note: We can also use the name docker_images/sherpa, or
docker_images/icefall. You can decide the name to use.)
I have good news for you. You can use the PR Add support for NeMo
https://github.com/huggingface/api-inference-community/pull/35 as a
concrete example.
After finishing adding docker_imsages/k2 and getting merged, you may
wonder how to access it over https://huggingface.co.
You can use the following three URLs to find all models on huggingface
that are using automatic speech recognition from the above repository:

https://huggingface.co/models?library=espnet&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
https://huggingface.co/models?library=speechbrain&pipeline_tag=automatic-speech-recognition
Note: The above three URLs differ only in the parameter library. Once
you fix this issue, you can also use
https://huggingface.co/models?library=k2&pipeline_tag=automatic-speech-recognition
to find all models on huggingface that are using k2 for ASR. (Assuming
you choose docker_images/k2).
Let us click
https://huggingface.co/models?library=nemo&pipeline_tag=automatic-speech-recognition
and you will see the following screenshot:
[image: Screen Shot 2022-07-07 at 12 42 21 PM]
https://user-images.githubusercontent.com/5284924/177692915-488301be-1d8e-4be0-a5c9-ff75545eaa2f.png
If we click the first model, i.e., visit
https://huggingface.co/nvidia/stt_en_conformer_transducer_xlarge , we
will see
the following screenshot:
[image: 0b0a]
https://user-images.githubusercontent.com/5284924/177693204-0e4c45f5-b1e3-4be6-a9c2-9a1ca9c4e993.png
Click Edit model card (or click Files and versions and click the file
README.md), and you will see:
[image: 0a0b12]
https://user-images.githubusercontent.com/5284924/177693504-2b46209b-1607-4eb5-8934-b89e02b21097.png
The most important three lines are
library_name: nemo
tags:

automatic-speech-recognition

library_name: nemo means it selects docker_images/nemo
https://github.com/huggingface/api-inference-community/tree/main/docker_images/nemo
The tag automatic-speech-recognition means to select the pipeline
https://github.com/huggingface/api-inference-community/blob/main/docker_images/nemo/app/pipelines/automatic_speech_recognition.py
(Note it replaces - with _ internally).
I have added the following lines to
https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/blob/main/README.md

language:

en
library_name: k2
tags:
automatic-speech-recognition
widget:
example_title: Librispeech sample 1
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1089-134686-0001.wav
example_title: Librispeech sample 2
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0001.wav
example_title: Librispeech sample 3
src: https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/resolve/main/test_wavs/1221-135766-0002.wav

and it produces the following screenshot
[image: Screen Shot 2022-07-07 at 1 00 18 PM]
https://user-images.githubusercontent.com/5284924/177694923-c2fb875a-8880-4032-8875-5c3ca3c94ca9.png
However, if you click the Compute button, it will display Internal
Server Error.
Hope that if you finish adding docker_images/k2 to
https://github.com/huggingface/api-inference-community, it will work.
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/k2-fsa/sherpa/issues/50#issuecomment-1177075657, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUKYX63Q3LN5MNBKDBCDE3VSZQTNANCNFSM52Y5EMYQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

So far I have this:
https://github.com/huggingface/api-inference-community/compare/main...jtrmal:k2_sherpa?expand=1
should be pretty much complete, only initiation and running the decoder remains to be implemented

So far I have this: https://github.com/huggingface/api-inference-community/compare/main...jtrmal:k2_sherpa?expand=1
should be pretty much complete, only initiation and running the decoder remains to be implemented

Thanks. That is fast!
I am fixing #57 so you can test it.

sorry for the delays, I will be working on it today. I should be able to make a good progress on it (no meetings).

Thanks!

I propose we close this?

Thanks! Addressed in https://github.com/huggingface/api-inference-community/pull/74


fix: napi value convert error in css-loader

Summary
before pathdata.chunk.contentHash is only HashMap<String, String>, but in practice (css-loader) it can be only String

Checklist

[x] Tests updated (or not required).
[x] Documentation updated (or not required).

!canary


Change the order of the pipeline stages

We had the problem, that the pipeline was displayed in the wrong order for us. So I implemented a switch to reverse the order. Maybe other people could also find this usefull.
Before:

After:

This feature is controled by setting the parameter reverseStages to either true (reverse the order) or false (do nothing).
Input is very appreciated
Regards
Keroth

Hmm, that's odd. Thank you for the PR! But I'd rather like to find out why the order was off in the first place... Do you have any idea why this was the case?

We recently upgraded from an older version (12.9?) to gitlab 13.6. I'm quite sure that before, the stages were sorted left-to-right in the monitor, whereas now they are displayed right-to-left (i.e. jobs from last stage displayed on the left). Gitlab-monitor was not changed.
So my guess would be that at some point, the output from gitlab may have changed order?
I'd be happy for the contribution in the PR to become available in some way. Preferred way would be to define the default behavior that stages are sorted (which should imo be left-to-right) and make sure this is always the case, and then add the option to reverse it (for personal preferences).

I took a look at the API response for pipeline jobs and the stages are in reversed order indeed. I'd propose to sort the jobs by ID instead of reversing them though. This would prevent breaking the order again nn case GitLab "fixes" the API.

ok I thought this was a problem with our gitlab instance. I will implement the sorting on the weekend.

I changed it. I hope this is ok, I'm not that used to js.

@Keroth thank you very much! :)


Fix misaligned buttons with icons (#626)

Fixes #626

Oops, forgot a CHANGELOG entry, but we can add it before we do the next release.


Pinning the lightning package doesn't pin the pytorch_lightning package

Bug description
For reasons, I have to use torch<2.0; I can see that in lightning 2.3.0 the torch dependency was constrained to be >2.0, so I decided to pin it, but (after much debugging) I realised that lightning was installing a different version of pytorch-lightning, which was the actual package causing the issues.
What version are you seeing the problem on?
v2.2, master
How to reproduce the bug
pip install lightning==2.2.5

This will install `pytorch-lightning==2.3.0`.
I thought the name change was mostly for branding purposes, so I suppose that it would be nicer to pin the package here?

Error messages and logs
# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response

Unfortunately, the decision was made that when the package was renamed, the new lightning package would ship pytorch-lightning as a dependency so that users could still use both ways of importing the package. But that also means if you pin lightning, this won't automatically pin the other one, and that's simply not possible to achieve. In general terms, if you have a package x that depends on y, then it wouldn't make sense to pin y to the same version than x.
If you have project dependencies and want to fix the lightning version, please specify the version pins for both packages.
For example:
lightning<2.3
pytorch-lightning<2.3

I think the possibility of not including pytorch-lightning anymore is an option for the future, as more users have transitioned to the new import.


Add travis

What does this PR do?
Enable Travis CI for code integration
Description of Task to be completed?
Add .travis.yml which tells travis ci what to do

@WNjihia I think if we look at what has already been achieved with other extensions for Travis, we could borrow the approach? e.g https://github.com/ckan/ckanext-spatial


Fix an error for Lint/ErbNewArguments cop

This PR fixes the following error for Lint/ErbNewArguments cop when inspecting ActionView::Template::Handlers::ERB.new.
% cd path/to/rails/rails # rails/rails@f265e0dd
% bundle exec rubocop -d --only Lint/ErbNewArguments
actionview/lib/action_view/template/handlers.rb
For /Users/koic/src/github.com/rails/rails: configuration from
/Users/koic/src/github.com/rubocop-hq/rubocop/config/default.yml
Inspecting 1 file
Scanning
/Users/koic/src/github.com/rails/rails/actionview/lib/action_view/template/handlers.rb
An error occurred while Lint/ErbNewArguments cop was inspecting
/Users/koic/src/github.com/rails/rails/actionview/lib/action_view/template/handlers.rb:14:45.
undefined method `each_with_index' for nil:NilClass
/Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb:89:in
`block in on_send'
/Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb:90:in
`erb_new_with_non_keyword_arguments'
/Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb:86:in
`on_send'

ActionView::Template::Handlers::ERB accepts new method without arguments, unlike standard ERB.
Below is the code that caused the error.
base.register_template_handler :erb, ERB.new

https://github.com/rails/rails/blob/v<IP_ADDRESS>/actionview/lib/action_view/template/handlers.rb#L16
It is an error if the standard ERB.new without arguments is used.
Therefore standard ERB.new and ActionView::Template::Handlers::ERB.new do not conflict.
% ruby -rerb -ve 'ERB.new'
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin17]
Traceback (most recent call last):
        2: from -e:1:in `<main>'
        1: from -e:1:in `new'
/Users/koic/.rbenv/versions/2.7.0/lib/ruby/2.7.0/erb.rb:809:in
`initialize': wrong number of arguments (given 0, expected 1..4) (ArgumentError)

So including this patch in the cop will not interfere with linting to standard ERB.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


[5.3] Optimize Arr methods

Arr::exists

Using isset to optimize the process, only if the value is null will use array_key_exists to determine the given key exists.

Arr::last

Same as #15213, prevent array copy.

Arr::forget, Arr::set

Use foreach to prevent multiple array_shift.

Holding off on this for now because there are no benchmarks to prove the optimizations are relevant.

Benchmarks:
Arr::forget: http://sandbox.onlinephpfunctions.com/code/161e998b5eadba07d9b76feb61c629e8142176d6
Arr::set: http://sandbox.onlinephpfunctions.com/code/324e9cdb0d9c6662ceb30a1db534fd1e0fd206e9
forget, set are original and _forget,  _set are optimized


Receive ping reply from ::: when Border Router pings a multicast group (NRF52840/OpenThread)

Hi team, I'm new to OpenThread and Zephyr. Could you please provide some guidance? Thank you.
SCENARIO

I'm currently developing an application on NRF52840 with OpenThread. My goal is to test multicast for Packet Delivery Rate (PDR) using ping.
Here is my setup:
Border Router: Raspberry Pi with NRF52840 Dongle.
Node: NRF52840 DK, Zephyr, version 2.5.0
Both devices can join the same OpenThread network, where the Border Router acts as the leader, and the node as a router. I can see it on web UI of Border Router.

ISSUE
The problem I'm encountering is that when the border router pings the multicast group using a command, it also receives a packet from :::. I don't want to see ::: in the output as it causes duplicate packets in my log. Could you please review my setup and code, which I've attached below, and let me know if everything is correct?
$ ping -6 -t 1 -I wpan0 ff06::abcd
PING ff06::abcd(ff06::abcd) from fdaa:fb3:4d49:1:8a41:7df0:abb3:3811 wpan0: 56 data bytes
64 bytes from fd31:9326:2ca1:b79e:e776:b4ee:5770:d7b9: icmp_seq=1 ttl=64 time=31.3 ms
64 bytes from ::: icmp_seq=1 ttl=64 time=37.9 ms
64 bytes from fd31:9326:2ca1:b79e:e776:b4ee:5770:d7b9: icmp_seq=2 ttl=64 time=18.3 ms
64 bytes from ::: icmp_seq=2 ttl=64 time=44.9 ms
64 bytes from fd31:9326:2ca1:b79e:e776:b4ee:5770:d7b9: icmp_seq=3 ttl=64 time=17.2 ms
64 bytes from ::: icmp_seq=3 ttl=64 time=32.2 ms
64 bytes from fd31:9326:2ca1:b79e:e776:b4ee:5770:d7b9: icmp_seq=4 ttl=64 time=15.6 ms
64 bytes from ::: icmp_seq=4 ttl=64 time=20.8 ms
^C
--- ff06::abcd ping statistics ---
4 packets transmitted, 4 received, +4 duplicates, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 15.552/27.266/44.900/10.151 ms

My code to subscribe multicast IP address:
prj.conf
# nRF board library
CONFIG_DK_LIBRARY=y

# Generic networking options
CONFIG_NETWORKING=y

# Network shell
CONFIG_SHELL=y
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=416

# Network sockets
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4

# Enable Openthread FTD features set
CONFIG_OPENTHREAD=y
CONFIG_OPENTHREAD_THREAD_VERSION_1_3_1=y
CONFIG_OPENTHREAD_FTD=y

# Openthread settings
CONFIG_OPENTHREAD_PANID=4660
CONFIG_OPENTHREAD_CHANNEL=15
CONFIG_OPENTHREAD_NETWORK_NAME="OpenThreadDemo"
CONFIG_OPENTHREAD_NETWORKKEY="00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"
CONFIG_OPENTHREAD_XPANID="1111111122222222"

# L2 OpenThread enabling
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_OPENTHREAD_SHELL=y
# CONFIG_IEEE802154_NET_IF_NO_AUTO_START=y

# CONFIG_MBEDTLS_SHA1_C=n
# CONFIG_FPU=y

main.c
static void on_thread_state_changed(otChangedFlags flags, struct openthread_context *ot_context,
									void *user_data)
{
	if (flags & OT_CHANGED_THREAD_ROLE)
	{
		switch (otThreadGetDeviceRole(ot_context->instance))
		{

		case OT_DEVICE_ROLE_ROUTER:
			LOG_INF("OT_DEVICE_ROLE_ROUTER");
			struct otIp6Address addr;
			inet_pton(AF_INET6, "ff06::abcd", &addr);
			openthread_api_mutex_lock(ot_context);
			otIp6SubscribeMulticastAddress(ot_context->instance, &addr);
			openthread_api_mutex_unlock(ot_context);
			break;

		default:
			LOG_INF("OT DEFAULT STATE");
			break;
		}
	}
}

I also have workaround solution, but I don't think it is good. My solution is to subscribe 2 multicast groups at the same time.
                         inet_pton(AF_INET6, "ff06::abcd", &addr);
			openthread_api_mutex_lock(ot_context);
			otIp6SubscribeMulticastAddress(ot_context->instance, &addr);
			openthread_api_mutex_unlock(ot_context);
                         inet_pton(AF_INET6, "ff07::abcd", &addr);
			openthread_api_mutex_lock(ot_context);
			otIp6SubscribeMulticastAddress(ot_context->instance, &addr);
			openthread_api_mutex_unlock(ot_context);

Please advise if I am doing correctly or not. Thanks for your time.

The duplicate reply seems to be caused by both, OT and Zephyr stack processing the ping request. Try the following code to disable ICMP Echo Request processing int the OT stack:
otIcmp6SetEchoMode(openthread_get_default_instance(), OT_ICMP6_ECHO_HANDLER_DISABLED);

It's not possible to disable ICMP Echo Requests in the Zehpyr side.
As for the missing source address in replies (I assume from Zephyr), it looks like some IP address misconfiguration. From the Zephyr perspective, you'd need a global address to reply to a multicast of scope larger than mesh-local (> ff03). Can you paste the output of the following commands?
net iface
ot ipaddr
ot ipmaddr

Thanks for the details. I see two issues here

Sending ping reply with :: source address is clearly wrong and is a bug on the Zephyr side. If Zephyr cannot match the source address for the reply, it should drop the packet instead of sending it. I'll send a fix shortly.

But for the reason why there is no source address match:

OTBR sends ping from fdaa:fb3:4d49:1:8a41:7df0:abb3:3811 which has a different prefix than on mesh prefix
Thread device has only fd31:9326:2ca1:b79e:c357:29:54a3:d428 assigned, which is mesh-local ULA. Such address is not routable outside of Thread mesh network, therefore is not selected as a match for OTBR address.

I believe Border Router should assign Supplemantal ULA prefix for the mesh, so that devices can configure an address that can be used for external configuration? @konradderda @edmont @canisLupus1313 Thoughts?

@qnquangg @rlubos The Thread border router should advertise ULA prefix based on config. Please refer to:
https://openthread.io/guides/border-router/docker/test-connectivity#form-the-thread-network
This should do the trick.

On the node device, ot prefix command can be used to show the configured prefixes.

As for the Zephyr bug, I've opened https://github.com/zephyrproject-rtos/zephyr/pull/65907 with at fix, Zephry should no longer send a reply with unspecified IPv6 source address.

@qnquangg Ping, any updates? Did you manage to resolve the issue with the suggestions above?

Closing due to inactivity. Please reopen if still an issue.


Share kodata across multi-arch builds?

Talking to @jonjohnsonjr I realized that we might be able to save some cycles if we found a way to share the kodata layer across architectures in multi-arch builds.  Right now we are deterministically producing the same layer N times, but it should be safe to share this if we can find a way to reasonably do so.

This might be a little more complicated now with Windows support, since kodata is laid out differently in Windows layers.
I wonder if we could just not include the layer if kodata isn't present, rather than include an empty layer.

I think we want the directory to exist, even if it is empty.

Sure. What if we put the empty /var/run/kodata in the same layer as the binary, and if there's anything in kodata, put the rest in the separate layer. That way if there isn't any kodata we can skip a layer.
(This is also complicated by Windows-vs-Linux containers, but maybe a bit less)

I don't have a problem with that, though you should confirm it WAI since I think the layers are in the wrong order.

Kindly ping here; maybe we can remove the data layer that includes /var/run/ko if there is no <importpath>/kodata existing in the project. WDYT?
/cc @dentrax
_https://github.com/ko-build/ko/blob/5e0452ad67230076340d0e28dd8488e4370675c2/pkg/build/gobuild.go#L822-L842_

I think we want to make sure there's an empty /var/run/ko directory even if there isn't a kodata directory to populate it.
The reason is that some code may depend on the var existing today even if it's empty, and changing that would break them.
The change is that /var/run/ko should be created in the binary layer instead of the data layer, so that the data layer can be omitted when there's no kodata.


Interpreting Perfetto trace visualization

When collecting a trace using the Jax profiler, the Perfetto UI shows an expanded view and a compact view.
For example, in the attached screenshot, I have expanded the view for device:TPU:7 only.
Notably, the compact view looks very different, and appears to show a 1-second-long period of inactivity on all the TPUs between 00:00:01 and 00:00:02, whereas the expanded view does not.
What does this compact view in Perfetto purport to show? Thanks for any insights you can provide.

Hey @lucaslingle
It should represent a histogram of the density of slices from all tracks within the category, but I agree it looks like this isn't working as expected. This may well be a bug.
I'll look into it and get back to you.

(tracked internally at b/320660297)

This has been fixed.


createDirectory fails on existing directory

Reported by beutlich on 4 Apr 2016 13:39 UTC
Modelica.Utilities.Files.createDirectory fails if directory exists and directoryName has a trailing slash. The error message is:
Error
In Modelica.Utilities.Internal.FileSystem.mkdir: Not possible to create new directory
"C:/temp":
File exists

To reproduce on Windows, create a directory C:\temp\ and run the following two models
model A "Model succeeds"
  parameter String d1 = "C:/temp";
  initial algorithm
    Modelica.Utilities.Files.createDirectory(dir);
end A;

model B "Model fails"
  parameter String dir = "C:/temp/";
  initial algorithm
    Modelica.Utilities.Files.createDirectory(dir);
end B;

Usually, directory names are distinguished from file names by a trailing slash. Thus, I'd have expected that createDirectory also works on names with a trailing slash. At least it should be documented.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1976

Comment by beutlich on 5 Apr 2016 08:33 UTC
This is the customer's workaround (just in case anyone else stumbles upon the same issue).
if Strings.length(directoryName) == Strings.findLast(directoryName, "/") then
  createDirectory(Strings.substring(directoryName, 1, Strings.length(directoryName) - 1));
elseif Strings.length(directoryName) == Strings.findLast(directoryName, "\\") then
  createDirectory(Strings.substring(directoryName, 1, Strings.length(directoryName) - 1));
else
  createDirectory(directoryName);
end if;

Modified by beutlich on 5 Apr 2016 08:34 UTC

@MartinOtter Unfortunetaly, the changes added by ed6b9a08db42be43341319d2cdf014988a606ba0 considered the case of a:\, but forgot to deal with a:\test1, though the comment looked promising:
/* For some reason _stat requires a:\ and a:\test1 and fail on a: and a:\test1\ */
/* It could be handled in the Modelica-code, but seem better to have here */

It is now fixed in branches master and maint/3.2.2.


Add youtube status analytic

This will likely trigger the analytics board more than once if the user doesn't have the cookie but comes back through the URL received via email or previously saved. Should we worry about this and try to find a better solution or is it negligible? @finer9

@nikooo777 discussed in Slack. I agree with (and recognized) this downside, but we're okay with it for now.


XLNet text generation ability

Really appreciate the good work to implement XLNet !
I tried running the XLNet text generation example
But the generated text quality is really low.
Tricks used by https://github.com/rusiaaman/XLnet-gen needs to be added to the example to generate a good example.

... Or is it because the pytorch version of XLNet is not fully working yet ?

Indeed, I've now added the text padding trick of Aman (add some padding text to have longer inputs) and the quality is really a lot higher.
Will merge the xlnet branch in master and release on Monday.


Merging fork from prosser/maestrano-dotnet

This pull contains:

more intuitive c'tors for Maestrano.Sso.Session and improvements to code documentation
default c'tors for Group and User to support unit testing
Changed the Status property on Bill and RecurringBill to be an enum instead of a string
Fixed build errors for .NET 4.5 for the maestrano.csproj
Made the NuGet package references for maestrano.csproj use $(SolutionDir) instead of "../" to allow the project to be referenced by other solutions that have their own NuGet packages folder

Deprecated in favor of newer pull request


social-likes_notext with social-likes_vertical

social-likes_notext with social-likes_vertical seems not working very nice and shows background
text space

Feel free to submit a pull request.


"ValueError: hour must be in 0..23" Error

I have a weird issue when running rotate-backups via CLI.  The directory I have specified has backups from about 6 months ago; the CLI command looks like this -
rotate-backups -r -v --hourly=0 --include="*.tar.gz" --daily 3 --weekly 4 --monthly 3 --dry-run $PATH
The error I get is as follows -
 2018-07-31 18:06:51 142851cc0396 rotate_backups.cli[9] INFO Performing a dry run (because of --dry-run option) ..
 2018-07-31 18:06:51 142851cc0396 rotate_backups.cli[9] VERBOSE Rotation scheme defined on command line: {'monthly': 3, 'hourly': 0, 'daily': 7, 'weekly': 4}
 2018-07-31 18:06:51 142851cc0396 rotate_backups.cli[9] VERBOSE Selected 1 location based on command line arguments:
 2018-07-31 18:06:51 142851cc0396 rotate_backups.cli[9] VERBOSE  1. /rotate/dsquad/backups/test-rotate/cassandra
 2018-07-31 18:06:51 142851cc0396 rotate_backups[9] VERBOSE No configuration found for /rotate/dsquad/backups/test-rotate/cassandra.
 2018-07-31 18:06:51 142851cc0396 rotate_backups[9] INFO Scanning /rotate/dsquad/backups/test-rotate/cassandra for backups ..
 Traceback (most recent call last):
   File "/usr/bin/rotate-backups", line 11, in <module>
     sys.exit(main())
   File "/usr/lib/python2.7/site-packages/rotate_backups/cli.py", line 287, in main
     program.rotate_backups(location)
   File "/usr/lib/python2.7/site-packages/rotate_backups/__init__.py", line 442, in rotate_backups
     sorted_backups = self.collect_backups(location)
   File "/usr/lib/python2.7/site-packages/rotate_backups/__init__.py", line 540, in collect_backups
     timestamp=datetime.datetime(*(int(group, 10) for group in match.groups('0'))),
 ValueError: hour must be in 0..23

I think I've sorted part of this out - can the include option filter on dates?  In my environment, I have files that are as follows -

snapshot-180731150101.tar.gz

I've passed "snapshot-*.tar.gz", which gives me the above result.  If I pass a formatted option to include (i.e. - "snapshot-%y%m%d%H%M%S.tar.gz"), it ignores the files in the directory as they don't match the string.

Thanks for the feedback @robbinscp. Starting from release 6.0 which I just published, filenames with invalid dates are ignored (and a log message is emitted to alert the user to what is happening). I hope this helps.


Fix SDF files

adding formal charges to SDF files using OEChem convert from mol2

Since this seems stalled -- Having just debugged a related issue in parallel, I can verify that the partial charges encoded in this PR fix OE loading issues for cb7-set1/sdf/guest-1.sdf and cb7-set1/sdf/guest-17.sdf. There seem to be changes other than charges as well, and I'm not so sure about the effects of those.


Add VPA to traffic server

Changes

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #222

PR #398   👈

This stack of pull requests is managed by Graphite.


How to deal with intermediate results?

In flax, we can use self.sow('intermediates', 'features', x) https://flax.readthedocs.io/en/latest/guides/model_inspection/extracting_intermediates.html.
But in equinox, I'm not quite sure how to handle this. Should I store it in the states?

Can you just return the intermediate values as normal outputs?

Can you just return the intermediate values as normal outputs?

Yes, but it is very troublesome to modify, because intermediate values may be in model.block[-1].inner_model.inner_model. If return is needed, I must modify each layer's return.
Perhaps returning a dict[str, Array] for each layer would require less modification, but I am unsure if this is a good idea.

I must modify each layer's return.

In Equinox, this is a feature, not a bug :) Having each layer explicitly specify what it returns -- and not have any extra information escape as "side effects" -- is a big part of how Equinox maintains direct compatibility with JAX transforms, and part of its philosophy about keeping the code readable/maintainable.

Perhaps returning a dict[str, Array] for each layer would require less modification, but I am unsure if this is a good idea.

I think this sounds like a reasonable approach, if you're looking for a simple way to return extra information without modifying call signatures.

Thank you!
I still have a question. If I put the intermediates in the state, what is the difference between it and returning it directly? Will putting values in state affect the calculation of grad?
Since my model is already stateful, it is currently much simpler for me to put the values into the state than to modify the return.

If you're only returning them -- and not using them as an input to the model -- then I'd probably suggest not putting them in the state. That's just to follow conventions a little more closely by using states only for stateful values. But that's not a strong feeling.
This won't affect the gradient either way though. You'll get gradients with respect to whatever you explicitly ask to be differentiated; nothing more or less.

Thanks!  Thank you for your guidance.  I understand now. Equinox is even better than I thought.
After transitioning from PyTorch to JAX this year spring, I have explored three different frameworks: Haiku, Flax, and Equinox. Among these, Flax appears to diverge most from the core JAX experience. In contrast, the all-PyTree approach employed by Equinox is particularly enlightening.


Artifacts should be able to limit the number of versions

Proposed fix in https://github.com/shakenfist/shakenfist/pull/1084.


[Bug] Well sorta a but

Hey, i saw something today, when i were comparing 2 images, Arrow left than Right... back and forth a few times.
Image 1:
Hires Steps: 30
Steps 35
Image 2:
Hires Steps: 30
Steps 30
When i went back and forth, this happened, it kept adding the Hires Steps, each time i went back and forth.

Could you conveniently send me these two pictures to have a look at?

Could I have the source files for these two images to reproduce this issue?

Hi sorry, i could not find the original images, i must have deleted one of them, but i managed to reproduce the "Bug", took some trial and error, but here it is. (It is not the same as the other ones, but the result is the same)
And I'm probably the only one ever that has done this anyway "Back and Forth thing", so its not a big thing :D
Image:

Prompt:
An ultra-detailed oil painting of a lighthouse surrounded by raging waves and stormy skies. (dramatic:1.4), (hyper-realistic), (highly detailed:1.5), (intricate details:1.2), (palette knife:1.2), (by Greg Manchess), (HDR:1.3), (intense:1.1), (cinematic lighting:1.3), (trending on CGsociety), (surreal:1.2), (high contrast:1.3), (oil painting texture:1.5), (dramatic shadows:1.2), perfect lighting, perfect shading,
Negative prompt: out of frame, cropped, (text, watermark, website name:1.5), amateurish execution, blurred features, bland facial expressions, body parts floating in isolation, (underexposed:1.1), (desolate:1.5)
Negative prompt: (sad,bad,ugly,old,boring,low res),unaestheticXL_AYv1,earings,
Steps: 30, Sampler: DPM++ SDE, Schedule type: Karras, CFG scale: 2, Seed:<PHONE_NUMBER>0415, Face restoration: CodeFormer, Size: 512x768, Model hash: e27eb9ba82, Model: mahuaXLTurbo_v20, VAE hash: 63aeecb90f, VAE: sdxlVAE_sdxlVAE.safetensors, Denoising strength: 0.6, Hires upscale: 1.6, Hires steps: 30, Hires upscaler: SwinIR_4x, TI hashes: "unaestheticXL_AYv1: 8a94b6725117, unaestheticXL_AYv1: 8a94b6725117", Downcast alphas_cumprod: True, Version: v1.9.0, Source Identifier: Stable Diffusion web UI

Image 2:

Prompt:
An ultra-detailed oil painting of a lighthouse surrounded by raging waves and stormy skies. (dramatic:1.4),(hyper-realistic),(highly detailed:1.5),(intricate details:1.2),(palette knife:1.2),(by Greg Manchess),(HDR:1.3),(intense:1.1),(cinematic lighting:1.3),(trending on CGsociety),(surreal:1.2),(high contrast:1.3),(oil painting texture:1.5),(dramatic shadows:1.2),perfect lighting,perfect shading,
Negative prompt: out of frame,cropped,(text, watermark, website name:1.5),amateurish execution,blurred features,bland facial expressions,body parts floating in isolation,(underexposed:1.1),(desolate:1.5),
Negative prompt: (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), bad hands, too many fingers, fused fingers, mutated hands and fingers, malformed hands, extra legs, missing fingers, poorly drawn hands, mutated hands, malformed limbs, missing limb, floating limbs, disconnected limbs, bad feet, long body, bad body, extra arms, extra limb, pubic hair, text, disfigured, mutated, deformed, long neck
Steps: 40, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 4, Seed:<PHONE_NUMBER>, Face restoration: CodeFormer, Size: 768x1024, Model hash: e27eb9ba82, Model: mahuaXLTurbo_v20, VAE hash: 63aeecb90f, VAE: sdxlVAE_sdxlVAE.safetensors, Denoising strength: 0.4, Clip skip: 2, Hires upscale: 1.7, Hires steps: 30, Hires upscaler: 4x-UltraSharp, Downcast alphas_cumprod: True, Version: v1.9.0, Source Identifier: Stable Diffusion web UI

Hey, i just saw this happen on those 2 images here also (v0.11.0)

It has been fixed already

Thanks.
Yeah i saw an update today for v0.11.0 that it did not show yesterday, thought i had the newest update than.


Relationships

Hi this ORM can support relationships?

Hi zamarrong,
No , this package is still under development and PR are welcome for the same.
-Shweta


Add react-VideoLibrary

Q
A

Bug fix?
no - yes?

New feature?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Guidance
You can delete this section when you are submitting the pull request.

Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.
Please target your PR to 'dev' branch.

Thanks for your contribution! Sharing is caring.

Hi @russgove, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

thx Russell, will get this one processed in upcoming days.

Any interest on demoing this live in the SPFx bi-weekly SIG calls?

I could do that
On Fri, Jan 20, 2017 at 8:59 AM, Vesa Juvonen<EMAIL_ADDRESS>wrote:

Any interest on demoing this live in the SPFx bi-weekly SIG calls?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/92#issuecomment-274078114,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnGXYsszwMiAoODQNknAPW9ERTLqVks5rUL23gaJpZM4LiExz
.

Hi Russ, I'm getting this processed now, but just wanted to follow up on the SIG call tomorrow Thursday - so wanted to double check your availability for doing a demo on this in that call?

Hi Vesa,
I can do that.  I just need to make sure its still working in my
environment.
Russ
On Wed, Feb 1, 2017 at 8:55 AM, Vesa Juvonen<EMAIL_ADDRESS>wrote:

Hi Russ, I'm getting this processed now, but just wanted to follow up on
the SIG call tomorrow Thursday - so wanted to double check your
availability for doing a demo on this in that call?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/92#issuecomment-276662666,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnDZlNpUfl1tYrIxbCxuD1MaD952kks5rYI7tgaJpZM4LiExz
.

OK, I got it upgraded to RC0.
I'll need to test it in the morning but I should be good to go.
On Wed, Feb 1, 2017 at 3:02 PM, russell gove<EMAIL_ADDRESS>wrote:

Hi Vesa,
I can do that.  I just need to make sure its still working in my
environment.
Russ
On Wed, Feb 1, 2017 at 8:55 AM, Vesa Juvonen<EMAIL_ADDRESS>wrote:

Hi Russ, I'm getting this processed now, but just wanted to follow up on
the SIG call tomorrow Thursday - so wanted to double check your
availability for doing a demo on this in that call?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/92#issuecomment-276662666,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnDZlNpUfl1tYrIxbCxuD1MaD952kks5rYI7tgaJpZM4LiExz
.

Excellent - sorry missed your latest comment. I do have some feedback on this existing PR, since there was some issues around additional files, whcih should not be included in the PR - like webpack-streaming on the root of the GitHub repo. Would appreciate if you'd do new PR with the RC version, so that we can get things in more cleaner way - if you don't mind. We could simply close this one and you can re-submit the updated one, if that works for you. Will process the new PR then faster to get things moving. Sounds good?

OK, I can do that
On Thu, Feb 2, 2017 at 10:32 AM, Vesa Juvonen<EMAIL_ADDRESS>wrote:

Excellent - sorry missed your latest comment. I do have some feedback on
this existing PR, since there was some issues around additional files,
whcih should not be included in the PR - like webpack-streaming on the root
of the GitHub repo. Would appreciate if you'd do new PR with the RC
version, so that we can get things in more cleaner way - if you don't mind.
We could simply close this one and you can re-submit the updated one, if
that works for you. Will process the new PR then faster to get things
moving. Sounds good?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/92#issuecomment-276990025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnK1NUA9EJKglFxwGLLYA0Y-yvbSKks5rYfcogaJpZM4LiExz
.

Thanks one more time on the demo. No massive rush on the new PR, but obviously would be great to get the new sample referenced in the video which goes out tomorrow - I'll process the PR as it arrives. Absolutely depends on your availability.

PR was submited
On Thu, Feb 2, 2017 at 11:16 AM, Vesa Juvonen<EMAIL_ADDRESS>wrote:

Thanks one more time on the demo. No massive rush on the new PR, but
obviously would be great to get the new sample referenced in the video
which goes out tomorrow - I'll process the PR as it arrives. Absolutely
depends on your availability.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/92#issuecomment-277003044,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnP4xZA5A0yDiT8B1mHzs2q08UPd2ks5rYgFBgaJpZM4LiExz
.


breaking change?

Hey, thanks for your very helpful plugin. nice work!
When upgrading to prettier 3 and from 0.0.10 -> 0.0.15 of your plugin this code "breaks":
<textarea>

<%- include("../_partials/teaser-animation.html", { page }) %>
  </textarea
>
<textarea>
<%= text %>
  <%- include("../_partials/teaser-animation.html", { page }) %>
  </textarea
>

The first <%- is replaced by <!-. Why?
Cheers
Daniel

Fine with 0.0.14

This is a bug.

Fixed in 0.0.16

If possible can you send me to whole file which this error occurs?

<%- include("../_partials/page-begin.html", page = { category: "Samples", title: "Presentation with three teasers", leftHandMenu: false, grid: true }) %>

<any-code-editor class="borderless">
  <textarea name="any-code-editor">

Future ready.
With.

        <any-teaser
          label="Good for the environment." label-aria-level="3"
          image-src="/img/design/cards/solar-panel.jpg" image-alt="Solar panel"
          href="javascript:;" href-label="Read more">
          We aim to be climate neutral and achieve a positive CO2 contribution by 2025.
        </any-teaser>

            <any-teaser
              label="Good for people" label-aria-level="3"
              image-src="/img/design/cards/kids-at-school.jpg" image-alt="Kids at school"
              href="javascript:;" href-label="Read more">
              We are committed to inspiring workplaces, digital literacy and diversity.
            </any-teaser>

            <any-teaser
              label="Responsible action" label-aria-level="3"
              image-src="/img/design/cards/technical-specialists.jpg" image-alt="Team technical specialist"
              href="javascript:;" href-label="Read more">
              We work according to ethical principles and advocate fair supply chains.
            </any-teaser>

<%- include("../_partials/teaser-animation.html", { page }) %>
  </textarea>
</any-code-editor>

<%- include("../_partials/page-end.html", { page }) %>

Please try 0.0.17

Thanks! works.
There are some situations where prettier breaks some ejs statements into new lines. But it goes anyway.


Is it possible to use the num keypad for desktop switching

Hi - A really great app that fills a large gap in the default Windows setup.
I use a desktop keyboard and just wondered whether it would be possible to have an option to use the Num Keypad for the keyboard shortcuts rather than use the numbers above the keyboard.
As I am using, at your suggestion, Win, Ctrl with the arrow keys for moving right and left it seems a logical to move my right hand a fraction further to the right to use the Num Pad numbers for a particular desktop.
Many thanks in advance.

Hi. Thanks.
Yup, definitely agree with you. I prefer shortcuts that I can trigger with just my left hand, but, like you said, if the arrow keys based shortcuts already exist, I can't see a reason why numpad based shortcuts shouldn't also be a thing.
I'll try to address this in the next version.

Thanks sdias
I realy appreciate the response and will look forward to the next version.

Hi sdias,
I wanted to switch from using regular numbers to numpad /, * and - keys, and actually patched the main script to do this in a reasonably consistent manner. settings.ini gets another property (e.g. Desktops=NumpadDiv,NumpadMult,NumpadSub), and the main script uses those shortcuts if possible. Excess virtual displays revert to using numbers. I keep track of bound hotkeys, so that OnMoveNUmbered and their ilk can determine the screen number based on a hotkey.
If you want me to, I could clean up the code and provide it to you as a pull request. If you already wrote the similar functionality, stick to your stuff, as my AutoHotkey experience is a bit limited.

Hi @romanrudenko,
Thanks for the suggestion, and I love how you've looked into patching my script to do what you want, that's awesome.
As you probably can tell by the way the script was written, I really prefer switching between desktops using my left hand only (hence ALT+1, ALT+2, etc.). That was the main reason the Numpad was never considered for keyboard shortcuts before.
I do understand however that other people might enjoy using the Numpad, though. However, I would still like to implement something that works well with the other features that I already have in place. With that in mind, if I use the number keys on the Numpad to navigate between desktops instead of /, * and -, like you suggested, I can cover the first 20 desktops instead of just 6, and its usage is a lot more intuitive, since the number on the key will be the same as the desktop you navigate to (at least for the first 9 desktops). I would also like to keep those keys free for future features.
I do appreciate the suggestion and the offer though. Thanks.

@sdias, thanks for the quick response. I know that you prefer the plain numbers. My implementation defaults to keeping plain numbers. They are replaced with something else only if a custom settings line is added to settings.ini. For me, this custom line is NumpadDiv, NumpadMult, NumpadSub. For someone who likes to use the numpad numbers, it would be Numpad1, Numpad2, ... , Numpad0. If one does not set custom hotkeys, the 1, 2,  ... , 0 defaults are still in effect.
Does this information change your willingness to consider the patch?

@romanrudenko I see. I guess I could add some additional optional keybindings for the first 3 desktops, it wouldn't be a lot of work. I don't like the idea of having them replace the original number key combinations, though. I'll try to get this into a future release. Don't worry about the PR though, I'd rather implement it myself, since the change is pretty simple.

The rationale for replacing the original shortcuts is to allow native Win+# behavior of switching applications. If one uses Win modifier for virtual desktop switching, those shortcuts get clobbered. I could extend the code to give user a choice in the .ini - add custom shortcuts while keeping numbers, or replace the default number shortcuts.
In any case, you seem to be happier with doing things on your own. It is your project and your rules, so I respect that. Thank you for considering my request, and have fun building whatever you want it to be.

You have a point when you mention the native shortcuts. I'll give it some thought.

I'm a bit critical of some of the suggestions because I want to avoid bloating the script with features that are only useful for very particular situations or configurations.
@romanrudenko One way I could implement something that I think would satisfy your needs and be a bit more flexible would be to make the keys that represent the desktops completely customizable. They would default from 0-9, but you could change each to whatever you like. I might even provide a second set and set it by default to the number keys, that why I'd satisfy @anxxx's requirement as well.
I'll probably implement that at some point.

@anxxx @romanrudenko Check out the new release, I made it possible to customize desktop specific keyboard shortcuts, and there are two sets (that default to the regular number keys and the Numpad number keys).

Just a quick note to say a huge thank you.
The new beta version seems to work perfectly with the Num Keys.
Greatly appreciated.

@anxxx No worries, happy to help. I'm glad you're enjoying it.


Resolve import loop

This PR resolves the circular import between cupy/_util.pyx and cupy/cuda/device.pyx.

Thanks, LGTM!

/test mini

/test mini

The current codebase does not impose the problem, but this circular import may cause an error depending on the import order, so I'm supportive to the fix.

CI failures are unrelated.


Reorganize directories

For #893
This simplifies our dependency structure so that we can run the cava2 and HMAC work on CI without having strange dependencies like the cava2 core library depending on the HMAC specification. It also updates the CI so that everything in cava2, plus the newly-relocated HMAC-specific circuits and firmware, is now checked.
The dependency graph now looks like:
{examples,tests,demos,silveroak-opentitan/pinmux,silveroak-opentitan/aes} <-- cava
cava2 <-- cava (for Util)
firmware <-- cava (for Util), cava2 (preemptive, for #904)
silveroak-opentitan/hmac <-- cava (for Util), cava2, firmware

One clear further simplification we could make here is to separate cava/Util into its own directory, so that we have:
cava <-- util
cava2 <-- util
{examples,tests,demos,silveroak-opentitan/pinmux,silveroak-opentitan/aes} <-- util, cava
firmware <-- util, cava2
silveroak-opentitan/hmac <-- util, cava2, firmware

This might be a good follow-up PR; it would make the CI run faster by not requiring that we wait for the entire cava directory to build before starting cava2 or firmware.

FYI: The names of some required checks have changed (make_directories (examples) and make_directories (tests)), so I'm going to temporarily un-require those in the repository settings until this is merged, then add them back with the new names.

CI:
make[2]: Entering directory '/home/runner/work/silveroak/silveroak/silveroak-opentitan/hmac/hw'
COQDEP VFILES
make[3]: *** No rule to make target '../../../cava2/Types.vo', needed by 'Hmac.vo'.  Stop.

I see the needs: [make_cava, make_cava2 ... in the CI yaml file, is the path in the Makefile/_CoqProject incorrect?

I see the needs: [make_cava, make_cava2 ... in the CI yaml file, is the path in the Makefile/_CoqProject incorrect?

It works locally (will still clean out old build files and try again to double-check), so I think the path is right. I'll try fiddling with the CI a bit. Will move this to draft until I get it working.

Fixed now!

The examples and tests checks have now been re-enabled with the new names.


Add files via upload - Adding SSBM Geneva university (Swiss School of Business and Management Geneva)

Adding SSBM Geneva university (Swiss School of Business and Management Geneva)

Adding SSBM Geneva university (Swiss School of Business and Management Geneva)

@selva-ssbm First stage of verification passed, official domain is ssbm.ch as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@selva-ssbm Thank you for your patience while waiting for a review and processing your request. Pull request merged.


-b/-buildlist flag default doesnt work

Trying to use the -b flag's default (which is stated at "./buildlist.json") does not work
The flag's value must be specified, and cannot be left empty
adlrtool evaluate does not work
adrltool evaluate -b="./buildlist.json" does work

The buildlist file was removed in ADLR V2 as we simply use go.mod now.


Doesn't work with Nuxt 3 rc.1 in production build

Environment
------------------------------
- Operating System: `Darwin`
- Node Version:     `v17.4.0`
- Nuxt Version:     `3.0.0-rc.1`
- Package Manager<EMAIL_ADDRESS>- Builder:          `vite`
- User Config:      `buildModules`, `ui`
- Runtime Modules:  `-`
- Build Modules:    `<EMAIL_ADDRESS>`<EMAIL_ADDRESS>`<EMAIL_ADDRESS>------------------------------

Reproduction Link
Official demo: https://github.com/nuxt-community/supabase-module/tree/main/demo
Steps to reproduce

Upgrade Nuxt to 3.0.0-rc.1 (official migration guide: https://github.com/nuxt/framework/discussions/4479)
npm run build
npm start

What is actually happening?
Listening on http://<IP_ADDRESS>:3000/
[nuxt] [request error] require() of ES Module supabase-module/demo/.output/server/node_modules/node-fetch/src/index.js from supabase-module/demo/.output/server/node_modules/cross-fetch/dist/node-ponyfill.js not supported.
Instead change the require of index.js in supabase-module/demo/.output/server/node_modules/cross-fetch/dist/node-ponyfill.js to a dynamic import() which is available in all CommonJS modules.
  at Object.<anonymous> (./.output/server/node_modules/cross-fetch/dist/node-ponyfill.js:1:19)
  at async Promise.all (index 0)
  at async ./.output/server/chunks/handlers/renderer.mjs:544:24
  at async ./.output/server/chunks/handlers/renderer.mjs:601:20
  at async ./.output/server/node_modules/h3/dist/index.mjs:417:19
  at async Server.nodeHandler (./.output/server/node_modules/h3/dist/index.mjs:367:7)

In my private project, I have the same problem after building the app. But everything (user/auth & client) works fine in dev mode.

In the nuxt config defineNuxtConfig has to be imported from nuxt and not nuxt3 since the rc version. Did you use the most up to date version (0.1.9) ?

In the nuxt config defineNuxtConfig has to be imported from nuxt and not nuxt3 since the rc version

Yes, I know. I linked migration guide.

Did you use the most up to date version (0.1.9) ?

As I mentioned<EMAIL_ADDRESS>

Can you try with the last version I just pushed (0.1.10). I have updated the demo, should works too. Let me know !

Unfortunately it didn't fix my problem. I tested it once again with demo from the module, and I found the problem only exists if npm is used as package manager. It works with yarn.
I also found that in build stage npm reports a warn:
 WARN  Multiple major versions of package node-fetch are being externalized. Picking latest version.                                                                                22:14:07
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>

Today I tried Nuxt 3 rc.2 and I have the same error also on pnpm. It looks like only yarn is working.

@lukaszflorczak For the moment, you should stay with nuxt-rc.1 => https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.2.
However, I just upgrade the module deps and it works on pnpm and yarn for me with the rc.1. You can try with the last published version 0.1.11 of the module. I'll keep the module updated (and try with pnpm) as soon as the new rc is available.


[BULK] Fix 48 broken links from latest dashboard & build

Although the AspNetDocs broken links dashboard https://aka.ms/brokenlinkdashboard showed 16 broken links on 6/19/2023, and they were all fixed or removed in PR #840 which went live on 6/21, the broken link dashboard as of 6/22/2023 showed 55 broken links. 15 of these were already fixed in the previous PR but still showing broken in the report. The others were "new," in that they weren't on the 6/19 report, although are in old content.
Then when I pushed the first build of this current PR, 6 more broken links appeared that hadn't been on either dashboard.
My only guesses about what is happening are:

Old branches being merged into main that have broken links.
The broken link dashboard not covering the whole repo but only the latest partial builds.
Or both.

Also the dashboard doesn't seem to be keeping up with the latest publish to live, since it still showed the 15 broken links that are no longer in the content.
I fixed all these current links, but if the same situation keeps happening, maybe there should be a maintenance task or a periodic task to fix the broken links regularly!

@Rick-Anderson - Please review these fixes for additional broken links that appeared on the 6/22 dashboard and in the build for this PR after the ones on the 6/19 dashboard were fixed - see initial comment. Thanks


fix(dialog-renderer)

attached the centerHorizontalOnly setting to the horizontal alignment
added the setting to the defaults for clarity
updated the docs to show the settings
@PWKad @EisenbergEffect Corrected the horizontal setting, and added some documentation around the settings.

Thanks!


sprintf is missing in Tequila\MongoDB\Database

It seems like sprintf is missing in Tequila\MongoDB\Database, see my https://github.com/tequila/mongodb-php-lib/pull/8 PR for details.

Pull request is merged, thanks!


Revert "Auto merge of #296 - vks:no_std, r=cuviper"

This reverts commit 8b5d4ac24e6d1417359f684ccfde506838a7d2cc, reversing
changes made to ef752e46877dc163ec28ddcf4d71558c264bb78d.
See #297 -- it's a breaking change to feature-gate existing APIs.

I'm going to open a next branch for breaking changes, including this one I'm reverting.
@homu r+

:pushpin: Commit fe34d17 has been approved by cuviper

:hourglass: Testing commit fe34d17 with merge 5cd5274...

:sunny: Test successful - status


Feature: Add noconfirm/yes option for install

For more automatic and non-interactive builds/packaging.
Problem
packwiz modrinth install dynamic-fps:

Installing dynamic-fps-2.1.0.jar from version v2.1.0
Finding dependencies...
Dependencies found:
Fabric API
Would you like to install them? [Y/n]:
Dependency "Fabric API" successfully installed! (fabric-api-0.51.1+1.18.2.jar)

Skip the "Would you like to install them?"-Question (and answer with "Y").
Example
packwiz modrinth install dynamic-fps -y
packwiz modrinth install dynamic-fps  --noconfirm

Duplicate of https://github.com/packwiz/packwiz/issues/46


GUI for test server (main.js) settings

The test server (npm start) supports lots of settings by manually modifying the URL. It would be nice to have an actual GUI with checkboxes for boolean options (e.g. displayMode) and text boxes for others (e.g. adding macros). I think it would also make sense to always keep the URL in and with the current state, instead of requiring a press of a Permalink button.
Previously discussed in #1193.

Also for the main (demo) page.


Support selecting the appropriate lock for a resolve.

The most generic Pex resolves can have both multiple local interpreters in-play as well as multiple foreign platforms. It's likely the only reasonable was to store the locks for these is in multiple lockfiles or one lockfile with multiple sections. When the multi-lockfile complex later needs to be used to do a resolve, Pex will need to pick which lock file to use. This can likely be automatically determined with the following code from the locking experiment that was run:
def select_lock(self, target):
    # type: (DistributionTarget) -> str
    with TRACER.timed("Picking locked resolve for {}".format(target)):
        supported_tags = target.get_supported_tags()
        ranked_resolves = {}  # type: Dict[Tuple[int, Platform], Iterable[BuiltArtifact]]
        for platform, resolve in self.resolves.items():
            resolve_rank = None  # type: Optional[int]
            for artifact in resolve:
                artifact_rank = None  # type: Optional[int]
                for tag in artifact.compatibility_tags:
                    try:
                        rank = supported_tags.index(tag)
                        artifact_rank = (
                            rank if artifact_rank is None else min(rank, artifact_rank)
                        )
                    except ValueError:
                        pass
                if artifact_rank is None:
                    resolve_rank = None
                    break
                resolve_rank = (
                    artifact_rank if resolve_rank is None else min(resolve_rank, artifact_rank)
                )
            if resolve_rank is not None:
                ranked_resolves[(resolve_rank, platform)] = resolve

        if not ranked_resolves:
            raise ValueError(
                "There were {} resolves but none of these support {}".format(
                    len(self.resolves), target
                )
            )

        (final_rank, platform), locked_requirements = sorted(
            # TODO(John Sirois): XXX: Explicit tie break for rank.
            ranked_resolves.items(),
            key=lambda item: item[0][0],
        )[0]
        TRACER.log(
            "Selected resolve generated by {} with a rank of {} from {}".format(
                platform, final_rank, ", ".join(sorted(map(str, self.resolves.keys())))
            )
        )
    return locked_requirements

Here the driving concept is to:

Confirm a given resolve is compatible by looking at each distribution in the resolve and confirming it has at least 1 artifact tha is compatible with the distribution target.
Giving each compatible resolve found in 1 a rank based on the specificity of its compatible artifacts tags.

The example above just used the most-specific tag, but a production implementation should probably use a global figure. Maybe the sum of all compatible artifacts most specific tags.

Depends on #1401 for initial lock implementation as well as #1403 or a custom format for storing multiple locks at once.

Ok, using an average rank:
$ python -mpex.cli lock export --python python3.9 -vvv lock.json | head -5
pex: Resolving interpreters: 11.5ms
pex: Selected lock generated by manylinux_2_33_x86_64-cp-39-cp39 with an average requirement rank of 598.46 (out of 704, so ~15.0% platform specific) from locks generated by manylinux_2_33_x86_64-cp-37-cp37m, manylinux_2_33_x86_64-cp-38-cp38, manylinux_2_33_x86_64-cp-39-cp39
pex: Selecting locks for 1 targets: 1.4ms
ansicolors==1.1.8 # ansicolors==1.1.8 via -> pantsbuild.pants==2.6.1 via -> pantsbuild.pants.testutil \
    --hash:sha256=00d2dde5a675579325902536738dd27e4fac1fd68f773fe36c21044eb559e187 # https://files.pythonhosted.org/packages/53/18/a56e2fe47b259bb52201093a3a9d4a32014f9d85071ad07e9d60600890ca/ansicolors-1.1.8-py2.py3-none-any.whl \
    --hash:sha256=99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0 # https://files.pythonhosted.org/packages/76/31/7faed52088732704523c259e24c26ce6f2f33fbeff2ff59274560c27628e/ansicolors-1.1.8.zip
attrs==21.2 # attrs>=19.2.0 via -> pytest<6.3,>=6.0.1 via -> pantsbuild.pants.testutil \
    --hash:sha256=149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1 # https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl \


A JavaScript error occurred in the main process. TypeError: this.notification.show is not a function

I have just updated rocketchat to latest version (2.14.2). And looks like there is some issues with it. When new message arrives, rocketchat client throws the javascript error.
Operating System: Windows 7
App version: 2.14.2

I have this error too
Rocket chat Electron 2.14.2 on Windows7
Rocket Chat Server 0.71.1

Same error  Windows 2.14.2  on Windows  10

For me  it happens after i run apllication GoToMeeting . if i do restart of  RC after GTM is started then problem is gone  all is ok till the restart of  GTM. But i know 2 people who didnt  use  GTM but have same problem. So it looks  like some other application has a conflict  with RC

same here, after update to new version, it get error always

my colleague (who has to revert) also had this issue on win7 x64 (I don't on windows 10 x64, same as a third colleague on win7 x64).

Same

@artem-levashov Could you confirm if the error message shown is the same?

@artem-levashov Could you confirm if the error message shown is the same?

yes same

Having same issue, Please advise,


Exception: Error from AI Package

hello can you fix this issue pls
Exception: Error from AI Package
Exception: run code : 401

sorry. but the website now have a sessions token technique that expire every minute so we can`t bypass it . now the package will be archive .


add option to upgrade injected package to wiki

I would like to point out that it would be helpful to add this command line who are new in using the injected packages and upgrading them in future.
pipx upgrade <package> --include-injected

I'm actually new to pipx myself, would mov-cli go in <package> here?

I'm actually new to pipx myself 😊, would mov-cli go in <package> here?

yes

thanks so much, I'll add that

Done


Explain the problems conda solves under "what is Conda" page

Description
I have a sense that a complete beginner will more readily understand what Conda is in terms of the problems it can solve for them, so I would propose putting some of the content on this in the FAQ up front in the "what is Conda?" page.
Tasks

[x] Add some content to the first para of learn/intro.md

I've addressed this in PR: https://github.com/conda-incubator/conda-dot-org/pull/102

@electric-souperman,
We have removed this page, so this issue no longer makes sense. I will be closing this issue now.


incorrect autoload instructions

getantidote.github.io has autoload instructions for antidote, but they are incorrect, at least for v1.9.4. also, getantidote.github.io differs from the installation instructions in the github repository's README, which advises to lazily source /path/antidote.zsh instead.
i prefer autoload since that would make antidote a valid command for any shell, rather than only sourcing antidote.zsh when the plugins need to be refreshed.
i installed antidote v1.9.4 via homebrew. ls -l $(brew --prefix)/opt/antidote/share/antidote shows the following:
.rw-r--r-- shaheen staff 517 B Sun Dec  3 10:50:21 2023  antidote.zsh
drwxr-xr-x shaheen staff 960 B Sun Dec  3 10:50:21 2023  functions

the web site says antidote can be autoloaded from this directory, but the function definition file is actually installed to the functions directory. fixing fpath to point here seems to work, though this file has different logic than antidote.zsh, so i'm not sure what the "right" way to load antidote is.

Thanks for opening this issue. I've updated the autoload install instructions on the site here: https://getantidote.github.io/install


Added support for visual depiction of unsupported commands

Addresses issue #273.
This patch adds two new options to the parser: breakOnUnsupportedCmds and errorColor. By default, breakOnUnsupportedCmds is true and errorColor is #cc0000.
When breakOnUnsupportedCmds is true, the parser and renderer remain unchanged by the patch and unsupported commands in the input expression continue to result in ParseErrors. When breakOnUnsupportedCmds is manually set to false, however, the command string will render as textual output in the color given by errorColor. This is achieved by the parser generating an error node for each unsupported command with a value property equal to an array of textords corresponding to the command string. Having the value property equal to an array of textords is useful because it allows the renderer to piggyback on the existing rendering capabilities of text nodes, which behave similarly.
Jasmine test and screenshotter tests have been added for this patch. In order to successfully create the screenshotter test for this addition, support for changing the settings used in the screenshotter for the two new options have been added. breakOnUnsupportedCmds can be set to false by setting doNotBreak in the query string to a non-empty string and errorColor can be set by including it as a name-value pair in the query string.

@JeffEverett thanks adding this.  I think this will be a huge benefit for anyone using KaTeX, especially for interactive typesetting.  Love the screenshots.  There are a few changes that I'd like to see.  Could you wrap the error node in a color node in the Parser?  That way we won't have to add a "settings" param to everything in buildHTML and buildMathML.  Also, if the "error" node is wrapped in a color node it could just be a "text" node and then we won't need a special "error" group type handler in buildHTML and buildMathML.

@kevinb7 Good suggestions. That should make this PR more compact. I'll get on this soon.

@kevinb7 I implemented your suggestions. I think the patch is a lot cleaner now.
I also added the two new properties to the readme file.

Thanks for the pull request.  Can't wait to start using this.

Can we not use abbreviations like "Cmds", especially in public API?

I think that's a good idea.

@spicyj I'll avoid using abbreviations in future contributions. Would you like me to change the option name for this one as well?

@JeffEverett Yes please! I don't love the name breakOnUnsupportedCommands because it is pretty long but I don't have any better ideas.


Forge support

Any plans?

yea, will look into it once i get back to working on the mod

Thank you so much!

1.15.2 support is now available

and so is 1.14.4 support


Convolution to get q,k,v

In attention, why do we do convolution first, to get q, k, v?  Can somebody explains the logic behind this? really appreciated

It is a 1x1 convolution, same as a dense layer. Q, K and V are results of different matmuls so they can do different things, as in the paper (https://arxiv.org/abs/1706.03762).


Tests | Improve assertions in ComparisonUtil

Failure message should always include the expected/actual values.
Currently, they are added manually in some cases, but it seems to make more sense to use assertEquals.
BTW, I noticed that the assertion comparing java.sql.Dates only compares DAY_OF_MONTH.
Is it intentional?
It was committed in https://github.com/microsoft/mssql-jdbc/commit/115336296d70eb49b6e792aabe621ab8b93dee51#diff-d4cfc7fdd584aa2ec6cec3e2fcaef964R146 .

Hi @harawata,
Thanks for the contribution, the team will review the PR.

The comparison isn't intentional, we will address this in a later PR.


wslg.exe is missing after running wsl --update on Windows 10

Windows build number:
10.0.19045.0
Your Distribution version:
20.04
Your WSL versions:
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version： 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.3031
Steps to reproduce:
Run dos command wsl --update in Command Prompt window.
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
Display Linux GUI app screen normally.
Actual behavior:
wslg.exe is not recognized as an internal or external command, operable program or batch file.
Because wslg.exe is missing.

As noted in #1143 the wslg.exe binary probably has been moved (to C:\Program Files\WSL\wslg.exe). If you, like me, started your linux GUI apps via an automatically generated shortcut and then had this message, just check your start menu, in my case those have been generated anew and you might have to swap your old shortcut for a new one.
But since you did not write how you opened your GUI app, I can only guess as well.

Hello, Mr1chter:
Thank you for your reply.
Earlier, I checked the system-generated Linux GUI shortcut and found that wslg.exe was indeed moved from "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_xxxxxxxxxxxxx"
to
"C:\Program Files\WSL".
I will correct all the referenced paths.


NDArray creation bug

The following doesn't work:
  var n = new NDArray( b, new Shape( 64, 32, 32, 3 ), TF_DataType.TF_FLOAT ) // b is byte array of size 196608

Error:
Exception thrown at 0x00007FF8C0FE7E20 (tensorflow.dll) in ScanIT.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
The following works:
var n = new NDArray( b )
n = n.reshape( new Shape( 64, 32, 32, 3 ) );
n = n.astype( TF_DataType.TF_FLOAT );

Actually, this looks almost fine to me. In your first example you are trying to create an array of 196608 floats, but provide only 196608 bytes (4 times less than necessary). Perhaps, in this case, byte[] is interpreted as the data buffer, not the values to be converted later to floats.  So it it ok to have an exception here.
The not-so-good part is that the kind of an exception thrown by memory manager (unrecoverable crash).
Another problem is the exact behavior is not clear, and there is not much said about memory management in the documentation. For those who came from python the confusion is even bigger, when one finds out that NDarray is being inherited from a Tensor.
What should be done about it? My suggestion is to start from making it clear how things work:
NDArray(byte[] bytes, Shape shape, TF_DataType dtype)

Are bytes[] a binary buffer data or values to be converted?
Who's responsibility is to perform basic boundary checks? I'd expect some basic checks should be done in the constructor (i.e., assert bytes.length ==  numel(shape) * dtype.size) before allocating the unmanaged memory.

Actually, this looks almost fine to me. In your first example you are trying to create an array of 196608 floats, but provide only 196608 bytes (4 times less than necessary). Perhaps, in this case, byte[] is interpreted as the data buffer, not the values to be converted later to floats. So it it ok to have an exception here.
The not-so-good part is that the kind of an exception thrown by memory manager (unrecoverable crash).
Another problem is the exact behavior is not clear, and there is not much said about memory management in the documentation. For those who came from python the confusion is even bigger, when one finds out that NDarray is being inherited from a Tensor.
What should be done about it? My suggestion is to start from making it clear how things work:
NDArray(byte[] bytes, Shape shape, TF_DataType dtype)
Are bytes[] a binary buffer data or values to be converted?
Who's responsibility is to perform basic boundary checks? I'd expect some basic checks should be done in the constructor (i.e., assert bytes.length == numel(shape) * dtype.size) before allocating the unmanaged memory.

@onslauth Please reopen this issue if you still have any problem.


Make gtk3 the default gtk

Support should be included in many common applications and this is the future direction as dictated by gnome. In firefox this seems to be a performance win and makes it more usable on hiDPI displays. These improvements should translate to other gtk2 -> gtk3 applications.

I believe most packages shouldn't use the unversioned gtk attribute. Maybe for those actually supporting both, but that seems rare and often the expression needs other changes, so it seems better to provide "switching" between the two possibilities by a separate flag anyway.

This is what I was hoping for, using gtk3 where possible and gtk2 only
where needed.
On Sat, Aug 8, 2015, 06:09 Vladimír Čunát<EMAIL_ADDRESS>wrote:

I believe most packages shouldn't use the unversioned gtk attribute.
Maybe for those actually supporting both, but that seems rare and often the
expression needs other changes, so it seems better to provide "switching"
between the two possibilities by a separate flag anyway.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/9164#issuecomment-128977914.

Superseded by #18559


Suggestion To Generate Links for For Comments

Just like posts,  there should be  way to get links for comments on esteem mobile. This will be very useful during contests where you have to share your comment links for upvotes or downline comments.

It is fixed, you can test with next release (v2.1.1)


UWP unit test application launches but it never runs tests or exits

Description
I am attempting to run UWP unit tests using vstest.console.exe. The unit test application successfully deploys and launches but it never runs any unit tests (I placed a break point in a test and it was never hit) or completes. The unit test application UI stays until it is manually closed. The OS it is failing on is Windows Server 2016. The latest version of VS2015 and UWP tools are installed on the VM. I get the same result when I run unit tests from the VS2015 UI as I do when calling vstest.console.exe directly.
The same tests successfully pass on my Win10 development environment so I'm guessing it is something environmental about Windows Server 2016 - or how it is configured - that is causing the tests to never pass.
Steps to reproduce

Windows Server 2016
Open VS2015 and create new UWP test project
Execute tests in UWP test project

Expected behavior

Tests execute, runner closes, results are reported in VS2015

Actual behavior

Test runner never executes tests or closes

Environment
Windows Server 2016
VS2015

Runner hangs open like this:

@JamesNK . Did this ever work in Windows Server 2016

SampleTest.zip
@JamesNK  I uploaded a zip file with 2 projects - SampleTcpServer, TcpClientApp. SampleTcpServer is a simple desktop console app which launches a TCP server and waits for connection. TcpClientApp project is a UWP blank app project which contains a TCP client and connects to the desktop TCP server.

Start the Server app first. It should say - Hosting @ <IP_ADDRESS>....
Start the TCP client app (Ctrl + F5) from VS - Click "Connect Server" button on the app ui. It should either say - "Connection Established" or throw some error relating to connection failure.

This would help us diagnose the issue. we use a simple TCP server-client model like this to trigger test run after the test app launches. My guess is that connection is not happening and our UWP test app is forever waiting on the connection.

I ended up deleting the Server 2016 VM and replacing it with a Win10 VM that doesn't have any issues. I can't give any more information.

Is there any other solution someone can recommend? I am encountering the same exact problem. Additionally, when I try to view the tests with /ListTests, I get this output:
Error: An exception occurred while test discoverer 'MSAppContainerTestDiscoverer' was loading tests. Exception: Specified method is not supported.

Error: An exception occurred while test discoverer 'MSPhoneTestDiscoverer' was loading tests. Exception: Specified method is not supported.

Additionally, the UWP Tests work with no issues on Windows 10, so it appears to be something with Windows Server 2016. Only difference with above post is that I have VS2017 on the VM.
I would really like to avoid the need to provision entirely new VMs for this.

@saikrishnav I have the same issue, here is the error message from your test App :
System.ServiceModel.EndpointNotFoundException: 'No IPEndpoints were found for host <IP_ADDRESS>.'
I hope it will help to find the root cause of this issue.

This is being tracked external to this repo here:
https://developercommunity.visualstudio.com/content/problem/145941/uwp-unit-test-application-launches-but-it-never-ru.html

@JamesNK , the issue is because we use wfc communication over sockets to connect UWP app with VS IDE / vstest.console. For some it seems that connection is blocked.
However in V2017.5 we have introduced a new Testplatform, which uses raw sockets to establish communication. For UWP it is still underneath a feature flag, & we plan to make it default by 15.6
It works fine with UWP test apps.
To try out the preview bits of this for UWP, please edit your csproj, & change value of "UnitTestPlatformVersion" to 15.5, please clean, & do a rebuild.


Fixed typo in StrawberryConfig import

Description

Types of Changes

[ ] Core
[ ] Bugfix
[ ] New feature
[ ] Enhancement/optimization
[x] Documentation

Issues Fixed or Closed by This PR

#1218

Checklist

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Thanks for contributing to Strawberry! 🎉 You've been invited to join
the Strawberry GraphQL organisation 😊
You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67
And don't forget to join our discord server: https://strawberry.rocks/discord 🔥


No Article at first

Hi, I have the issue, that when I start the mirror no article is shown (it says "no articles fetched"). The first one is shown after my custom interval (10 minutes (600.000ms)), but it would be nice if the first article is shown right after bootup. Sadly I have no experience in JavaScript and can't fix it myself right now.

and btw, can I change the size (pixels) of the letters used in the articles?

Thank you for this module, well done! :)

Hey,
I dunno about the no article fetched but to make the font smaller, you can add these two lines of code at line 115 of MMM-wiki.js after "wrapper.innerHTML = article.content;":
		    wrapper.classList.add("small"); 		    wrapper.classList.add("light");

should be fixed with https://github.com/mihairinzis/MMM-wiki/commit/075a5e9f8dce019d3c1e174e8ca6e0dec61b6f54


Add support for Godot 4

This action currently fails when setting the version input to v4.0-beta12 (current latest beta version). See the failed jobs in this workflow run for example.

Linux non-mono Godot 4 passes from v2.1.1. Further work is required to get it working for mono builds and on macOS/Windows platforms.


Change "third" to "fourth" throughout tutorial

Fourth iteration of tutorial is referred to as third iteration throughout; these edits fix that.

 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.:x: hxlnt sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@hxlnt Thank you for your contribution! Please sign the CLA ☝. We will review your PR once that's completed.

@hxlnt Thank you for taking the time to correct this problem. Your changes will go live later today.


add a convar to allow players to apply force and setPos themselves etc

i am making an e2 right now and i just realized you cant applyforce or setpos to the owner of the entity, this would be great for people
trying to make a parkour system and things like that!
but it needs limitations as not being able to do this on any other players, they're probably more limitations to not lag servers etc but im not too sure what but the limitation i suggested is aa must.
oh and i know vurv will see this but if you have any other ideas to add so you can set your angle or get the player angle or something like that feel free to add it in, the more the merrier.

Possible duplicate of #2676

yeah it is me and vurv talked about this idea and ill still keep this one up so he can see it


Team Screen Data Added

https://user-images.githubusercontent.com/97942595/194940523-1ce37ccf-fb2a-4449-8ed2-4c31be5d14f0.mp4

@ismailbohra Thank for your PR.


Update finnish strings.xml

Change line <string name="label_voice_search">Puhehaku</string> to <string name="label_voice_search">Äänihaku</string> since the word "Puhehaku" translates to "talking search" while "Äänihaku" means voice search. You can't Google translate everything

Good


Support engine configuration settings.

Engines can now store their own configuration settings in
config/environment.js.
Adjust examples to import this module and use it to define
modulePrefix.

I'm PR'ing this first against the v0.2 branch, which is currently green, in preparation for a new v0.2.x release. I'll bring this back into clean and finally master once they stabilize.

I think we need to update the blueprints with these changes too.

A few other notes RE engineConfig:

We should allow the user to specify an engineConfig function in their options hash (which would override the default).  This would be very similar to the config hook.
We should probably invoke config on each of our dependencies (like project.getAddonsConfig).

@rwjblue Good call on the blueprints and destructuring. I've made those changes.

We should allow the user to specify an engineConfig function in their options hash (which would override the default). This would be very similar to the config hook.

I think this should work now - contentFor gets the engine's config from engineConfig

We should probably invoke config on each of our direct dependencies (like project.getAddonsConfig).

Another good call. I just implemented this.

@rwjblue Thanks for the review. I think I addressed all of your initial concerns and suggestions.


Run helm chart metadata update only on a changed target

Fix #1614
We only want to update the Chart metadata if the chart has been modified during the current target execution.
To make this process more idempotent in the context of a SCM, we could also check if the helm chart
has been modified during one of the previous target execution by comparing the current chart versus the one defined
on the source branch. But the code complexity induced by this check is probably not worth the effort today.
Test
To test this pull request, you can run the following commands:
cd pkg/plugins/resources/helm/
go test

Additional Information
Tradeoff

Potential improvement

Thanks I slightly changed the PR to also update the appVersion field update even if the target didn't change.

Thanks I slightly changed the PR to also update the appVersion field update even if the target didn't change.

I'm not sure to understand the use case (but I don't use updatecli to track appversion so I guess it should be fine?).
Currently trying a local build of https://github.com/updatecli/updatecli/pull/1616/commits/3c9e749f1067ecf478d5cd5da96a8599a6ff7089


Fixed the decimal issue in the progress bar.

Currently, the percentage is shown to 2 decimal places, but the second decimal is always 0.
I have increased the number of decimal places of the "sync" entry in Liana's getinfo command to 4 to fix this issue.
Solves #907

If i understand well @jp1ac4 comment in #907, the changes on daemon cannot be tested on GUI until the PR merged as daemon crate is build against master (not your local crate)

Hey @AnmolSirola are you still working on this?

Closing as no longer appears to be actively worked on.


Add the claims with matching details task

This adds the a new task that allows service operators to review any claims with matching details before approving a claim.
Screenshots

 Add the "Claims with matching details" task


Custom sort / filter

Great project!
I notice in the code there is a QSortFilterProxyModel that is used to sort the items in the file system model. I want to use that to do my own custom sorting / filtering when creating the browser. (e.g., filter out certain unwanted directories that should be invisible to the user)
Is there a API for accessing that model? Or I can access that model directly using QT's native method(e.g., setFilterRegExp()?)

Thanks!
Apologies for slow response. Did you get anywhere with this?
If you subclass the FilesystemBrowser, then you can set or customise the sort/filter proxy for the model in _construct:

class MyFilesystemBrowser(FilesystemBrowser):
    '''FilesystemBrowser dialog.'''

   def _construct(self):
        '''Construct widget.'''
        super(MyFilesystemBrowser, self)._construct()
        model = self._filesystemWidget.model()
        # Do stuff with the model or use self._filesystemWidget.setModel to set a different one.


[KYLIN-4068] append limit and offset to sql reliably

What changes were proposed in this pull request?
Currently, there is a bug in sql conversion, as follow:
SELECT E_Name FROM Employees_China
UNION
SELECT E_Name FROM Employees_USA

will convert to
SELECT E_Name FROM Employees_China
UNION
SELECT E_Name FROM Employees_USA
LIMIT 50000

This limit is not working on the result of union, but on SELECT E_Name FROM Employees_USA.
We should use a more secure way to achieve the limit effect.
This pr fixed the bug, making sure to append limit or offset after sql does not change sql semantics

Can one of the admins verify this patch?

Pull Request Test Coverage Report for Build 4696

15 of 15 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.01%) to 28.282%

Files with Coverage Reduction
New Missed Lines
%

stream-core/src/main/java/org/apache/kylin/stream/core/storage/CheckPointStore.java
2
73.74%

Totals

Change from base Build 4690:
0.01%

Covered Lines:
23423

Relevant Lines:
82820

💛  - Coveralls

@nichunen @hit-lacus Could you help review this pr? Thanks very much!

IT test passed

@nichunen Could you help merge this pr? Code review and tests passed. Thanks~


Release notes highlighting breaking changes in latest version of subgraph

Other TODOs:

[x] Publishing release notes and making sure people are aware of breaking changes
[x] Make a note of when the hosted subgraph will be updated with ample lead time so people can become aware of breaking changes and update their integrations appropriately

Announcement and release notes shared in the #dev discord channel.

Announcement and release notes shared in the #dev discord channel.


What is K.function ? how do it passed to GPU ? what is there behind the scene ?

What is K.function ? how do it passed to GPU ? what is there behind the scene ?
Thanks !

Hi
This issue isn't related to a bug/enhancement/feature-request or other accepted types of issue.
To ask questions, please see the following resources :
https://keras.io/
https://keras.io/#support
https://gitter.im/Keras-io/Lobby
Thanks!
If you think I made a mistake, please open another issue.