text:
Cannot build image executor failed running [/bin/sh -c pip3 install soundfile torchaudio sentencepiece]: exit code: 137

Hi there,
I am trying to build this docker image and get the following:

Any idea what am i missing?

Can you clear the docker system (with docker system prune) and clear the caches and try again? I had similar error (especially torch is a heavy file, so if you tried this multiple times, the memory might be full).

Also, which Dockerfile did you run? There are two, and I had success with building from wave2letter.Dockerfile

Thanks @raja1196 for the tip. But clearing the cache and switch towav2letter.Dockerfile by running:
docker build -t wav2vec -f wav2letter.Dockerfile . did not help.
 => [8/9] WORKDIR /root/fairseq                                                                                0.0s
 => ERROR [9/9] RUN TMPDIR=/data/mydir/ pip install --cache-dir=/data/mydir/ --editable ./ && python examples/speech_recognition/infer.py --help && p  28.9s
------
 > [9/9] RUN TMPDIR=/data/mydir/ pip install --cache-dir=/data/mydir/ --editable ./ && python examples/speech_recognition/infer.py --help && python examples/wav2vec/recognize.py --help:
#14 0.611 Obtaining file:///root/fairseq
#14 0.614   Installing build dependencies: started
#14 3.306   Installing build dependencies: finished with status 'done'
#14 3.306   Getting requirements to build wheel: started
#14 3.501   Getting requirements to build wheel: finished with status 'done'
#14 3.505   Installing backend dependencies: started
#14 6.264   Installing backend dependencies: finished with status 'done'
#14 6.265     Preparing wheel metadata: started
#14 6.589     Preparing wheel metadata: finished with status 'done'
#14 6.792 Requirement already satisfied: numpy<1.20.0 in /usr/local/lib/python3.6/dist-packages (from fairseq==1.0.0a0+c8a0659) (1.18.2)
#14 6.823 Requirement already satisfied: cffi in /usr/local/lib/python3.6/dist-packages (from fairseq==1.0.0a0+c8a0659) (1.14.4)
#14 6.967 Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from fairseq==1.0.0a0+c8a0659) (4.44.1)
#14 8.065 Collecting hydra-core<1.1
#14 8.155   Downloading hydra_core-1.0.4-py3-none-any.whl (122 kB)
#14 8.283 Collecting antlr4-python3-runtime==4.8
#14 8.299   Downloading antlr4-python3-runtime-4.8.tar.gz (112 kB)
#14 8.540 Collecting omegaconf<2.1
#14 8.558   Downloading omegaconf-2.0.5-py3-none-any.whl (36 kB)
#14 8.695 Collecting PyYAML>=5.1.*
#14 8.710   Downloading PyYAML-5.3.1.tar.gz (269 kB)
#14 9.085 Collecting sacrebleu>=1.4.12
#14 9.109   Downloading sacrebleu-1.4.14-py3-none-any.whl (64 kB)
#14 9.182 Requirement already satisfied: pycparser in /usr/local/lib/python3.6/dist-packages (from cffi->fairseq==1.0.0a0+c8a0659) (2.20)
#14 9.184 Collecting cython
#14 9.200   Downloading Cython-0.29.21-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB)
#14 9.280 Collecting dataclasses
#14 9.297   Downloading dataclasses-0.8-py3-none-any.whl (19 kB)
#14 9.304 Collecting importlib-resources
#14 9.320   Downloading importlib_resources-3.3.0-py2.py3-none-any.whl (26 kB)
#14 9.401 Collecting zipp>=0.4
#14 9.416   Downloading zipp-3.4.0-py3-none-any.whl (5.2 kB)
#14 9.434 Collecting portalocker
#14 9.452   Downloading portalocker-2.0.0-py2.py3-none-any.whl (11 kB)
#14 9.466 Collecting regex
#14 9.485   Downloading regex-2020.11.13-cp36-cp36m-manylinux2014_x86_64.whl (723 kB)
#14 9.520 Collecting torch
#14 9.535   Downloading torch-1.7.1-cp36-cp36m-manylinux1_x86_64.whl (776.8 MB)
#14 28.31 Killed
------
executor failed running [/bin/sh -c TMPDIR=/data/mydir/ pip install --cache-dir=/data/mydir/ --editable ./ && python examples/speech_recognition/infer.py --help && python examples/wav2vec/recognize.py --help]: exit code: 137

I also tried the version you have in your repo since I saw you made few modifications, but still no luck.
Anything else I might try?

Can you share more information like where you are running this program, the docker version and the memory profile? docker stats will give you information if you already have containers running that may occupy storage. I had similar issue and the way I resolved it was by identifying if docker does not have any free space.

Also, if you have Nvidia GPU support, try running
nvidia-docker build -t wav2vec2 -f wav2letter.Dockerfile .
and in wave2letter.Dockerfile, change the first two lines to
FROM wav2letter/wav2letter:cuda-latest
ENV USE_CUDA=1

Sure, here are the specifications of my system that does not have a GPU:

OS: macOS 10.15.7
Docker version: 20.10.0, build 7287ab3
Nothing running on docker (removed all images, and run docker system prune -f

Thanks for the help!

I have also tested in another system that has a GPU and implemented the modifications you outlined. This time python examples/speech_recognition/infer.py --help runs but python examples/wav2vec/recognize.py --help doesn't
The error:
/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0
Traceback (most recent call last):
  File "examples/wav2vec/recognize.py", line 10, in <module>
    from fairseq.models.wav2vec.wav2vec2_asr import base_architecture, Wav2VecEncoder
ImportError: cannot import name 'base_architecture'

From the command line, I can run python -c "import torch; print(torch._C._cuda_getDeviceCount())" and get 1.

Sorry for that, can you remove the base_architecture, from line 10 of recognize.py
It is no longer available in fairseq, so it will not be imported. I defined the function locally, but forgot to change that.
line 10 should read from fairseq.models.wav2vec.wav2vec2_asr import Wav2VecEncoder
About the GPU, you might have to match the CUDA version with the nvidia driver one. Can you check nvidia-smi for CUDA Version: x.xx and make sure it matches the package version.

Thanks @raja1196 , this solved my problem!
And for the MacOS issue, it was related to the memory resources in the docker kernel.
Now that I got the setup working, I am not having problem interpreting the output. It is not transcribing properly my sample test.
For instance, saying "hello world" returns the following:  ASD  WHELON  FPPTH
Any idea how to get this working?

Make sure you are running this command to generate result:
python examples/wav2vec/recognize.py --wav_path /app/data/test_audio_16.wav --w2v_path /app/data/wav2vec2_vox_960h.pt --target_dict_path /app/data/dict.ltr.txt
and that the audio file you have is of 16 KHz wav file. If you have 8KHz file you can convert it with:
sox "your_audio_file.wav" -r 16000 -c 1 -b 16 "test_8K.wav" This is a command line command and you can run it in terminal. If you get sox package not found error, then brew install or apt-get install it and run. If the problem still exists let me know.

The model can be changed (that is upto your requirement), but I have found best result with the combination of 16KHz with that model file (.pt)

Yeah, that what i was running but indeed changing the model gives different performance. But what made the real difference is uttering longer sentences than "hello world" which worked much better.
Things are working from my side, thanks for your help @raja1196. I am closing this ticket for now, I will ask different ones later;)


text:
Fix repository

[x] Some files copied from lesson are irrelevant for project - remove them.
[x] Fix README file.
[x] Fix overall project structure.

Done on https://github.com/lorettarehm/1st_week_challenge/commit/3bd3d5926d9096dfb485c48de5c9342c1025c2ad

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Slack notifications not working

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
I have recently upgraded from I believe 1.17.x to 1.18.5.
Now my previously set up Slack notification channel is no longer working. When I test the notification I get the following error popup: "Error: Error: queryAaaa ESERVFAIL hooks.slack.com"
If I'm interpreting my google search correctly there is some issue for Kuma resolving the IP-address for hooks.slack.com, tho I believe that issue does not lie with slack or the DNS because I was able to send a message to the slack channel through the URL in my terminal.
I am running Kuma behind a reverse proxy, although that has never been an issue so far, as the notifications had worked flawlessly before.
I also tested with a second slack app just to be on the safe side, but same result.

👟 Reproduction steps

Got to Settings->Notifications
Click on Setup Notification
Select Slack
Enter the Webhook URL provided by your existing or new Slack App
Click test

👀 Expected behavior
I would expect Kuma to successfully send a notification in to the channel configured in the Slack App
😓 Actual Behavior
A popup is displayed reading "Error: Error: queryAaaa ESERVFAIL hooks.slack.com" and no notification arrives in the channel
🐻 Uptime-Kuma Version
1.18.5
💻 Operating System and Arch
Ubuntu 22.04 LTS
🌐 Browser
Google Chrome Version 107.0.5304.87 (Official Build) (arm64)
🐋 Docker Version
Docker version 20.10.12, build 20.10.12-0ubuntu4
🟩 NodeJS Version
No response
📝 Relevant log output
No response

Accidental duplicate of #2321

repo: louislam/uptime-kuma


text:
Allow the user to render a custom card adder

Description
#401
Type of change

[ ] 🐛 Bug fix
[x] 💻 New feature
[ ] 📖 Documentation
[ ] 💅 Layout
[ ] 🧹 Chore

Checklist:

[x] I have added tests that prove my fix is effective or that my feature works
[x] I updated the docs related to the changes

@lourenci what do you think abou the API? should we care about the pop allowToAddCard to render a custom card adder? or we just render the default if AllowToAddCard is true and the custom when the RenderCardAdder is passed. And both if both props are present?

Codecov Report

Merging #407 into master will decrease coverage by 47.80%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##            master     #407       +/-   ##
============================================
- Coverage   100.00%   52.19%   -47.81%
============================================
  Files           15       15
  Lines          182      182
============================================
- Hits           182       95       -87
- Misses           0       87       +87

Flag
Coverage Δ

#cypressspecs
52.19% <ø> (ø)

#jestspecs
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/components/Board/components/Column/index.js
100.00% <ø> (ø)

src/components/Board/index.js
34.54% <ø> (-65.46%)
:arrow_down:

...c/components/Board/components/ColumnAdder/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...rd/components/Column/components/CardAdder/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...ponents/ColumnAdder/components/ColumnForm/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

.../components/CardAdder/components/CardForm/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...ents/Board/components/DefaultColumnHeader/index.js
42.85% <0.00%> (-57.15%)
:arrow_down:

src/services/helpers.js
50.00% <0.00%> (-50.00%)
:arrow_down:

...c/components/Board/components/DefaultCard/index.js
50.00% <0.00%> (-50.00%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

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

We should not break the API. Just allow the user to pass a custom render prop and keep the API as it as. allowAddCard && (renderWhatever||default).

@lourenci Can we have this feature aproved? It would help me a lot now. :)

Codecov Report

Merging #407 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #407   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        13    -2
  Lines          182       170   -12
=========================================
- Hits           182       170   -12

Flag
Coverage Δ

#cypressspecs
?

#jestspecs
100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/components/Board/components/Column/index.js
100.00% <ø> (ø)

src/components/Board/index.js
100.00% <ø> (ø)

assets/index.js

assets/services/getUrlParams.js

Continue to review full report at Codecov.

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

source: gharchive/pull-request

authors: GZangs Sabrinovsky codecov-commenter codecov-io lourenci

repo: lourenci/react-kanban


text:
Missing type definition

Hi, it seems types.d.ts file is no longer included in the npm package since v0.7.4, causing missing type errors on typescript projects. It would be helpful if you could put it back.

Thanks for letting me know

Of course, and thank you for the quick update!

authors: lovasoa ryohpops

repo: lovasoa/highs-js


text:
请问在地图中，滑动很远后，回到当前位置的方法怎么设置？

谢谢

+1。。。。。。

center={this.state.center} // 地图中心位置
Geolocation.getCurrentPosition()//获取当前位置改变center
.then(data => {
console.log(data)
this.setState({
center: {
longitude: data.longitude,
latitude: data.latitude
}
})
})
.catch(e =>{
console.warn(e, 'error');
})

repo: lovebing/react-native-baidu-map


text:
Patch for libheif appears to have changed

In build/lin.sh there is:
$CURL https://github.com/strukturag/libheif/pull/583/commits/7da30e57498b2b67434abd4767377ee7b3d93ee4.patch

However, that no longer appears to exist and may have been superseded by:
80300f8c8b4edb4e214a94668eeb9b88cba95774
Also, while I'm in the neighbourhood, what level of rust/cargo is required?

Yes, thank you, updated with commit https://github.com/lovell/sharp-libvips/commit/4037fa655cd6c59ed30aa8a96e70b7c1ac1ad77d
What's the context of your question about rust?

FWIW, I did something similar on the meson branch:
https://github.com/lovell/sharp-libvips/compare/main...kleisauke:meson
https://github.com/kleisauke/libvips-packaging/commit/16d2b3bd54f850998cb922d12e92f9a455e656fb
https://github.com/kleisauke/libvips-packaging/commit/8c6d326247366a25c30920e54b80eff64d86de19

Thanks Kleis, your patch to allow librsvg to be built without docs should probably be submitted upstream to librsvg itself as I can imagine others will find that useful.

FWIW, I did something similar on the meson branch: main...kleisauke:meson kleisauke@16d2b3b kleisauke@8c6d326

I also had to make these changes:
@@ -457,7 +457,7 @@ fi
 make install-strip

 mkdir ${DEPS}/cgif
-$CURL https://github.com/dloebl/cgif/archive/V${VERSION_CGIF}.tar.gz | tar xzC ${DEPS}/cgif --strip-components=1
+$CURL https://github.com/dloebl/cgif/archive/refs/tags/V${VERSION_CGIF}.tar.gz | tar xzC ${DEPS}/cgif --strip-components=1
 cd ${DEPS}/cgif
 CFLAGS="${CFLAGS} -O3" meson setup _build --default-library=static --buildtype=release --strip --prefix=${TARGET} ${MESON} \
   -Dtests=false
@@ -465,7 +465,7 @@ ninja -C _build
 ninja -C _build install

 mkdir ${DEPS}/vips
-$CURL https://github.com/libvips/libvips/releases/download/v${VERSION_VIPS}/vips-${VERSION_VIPS}.tar.gz | tar xzC ${DEPS}/vips --strip-components=1
+$CURL https://github.com/libvips/libvips/archive/refs/tags/v${VERSION_VIPS}.tar.gz | tar xzC ${DEPS}/vips --strip-components=1
 cd ${DEPS}/vips
 # Prevent exporting the g_param_spec_types symbol to avoid collisions with shared libraries
 printf "{\n\

Yes, thank you, updated with commit 4037fa6
What's the context of your question about rust?

I was trying to add a new target linux-s390x. I initially tried building the 8.0.6 level of code (required by Kibana) but I was getting rust compilation errors. With 8.12.2 I don't using the latest rust available to me (1.59).
Also, meson complains it needs python 3.7 or 3.8 now and 3.6 won't suffice to I had to install the SCLO rh-python38 packages.

Closing as prebuilt binaries for the linux-s390x target will be made available from sharp v0.33.0.

authors: kleisauke lovell nealef

repo: lovell/sharp-libvips


text:
Colorscale

Dear Lovell,
What a nice work!
What are you trying to achieve?
I would like to apply a custom colorscale to an image, i.e. something almost identical to greyscale, but instead of using the standard 256 shades of grey, I would like to use a custom array of 256 color values (hex strings or hex numbers, whichever is the fastest to process).
Is it possible to achieve this with sharp?
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
Something like
const scale = ["#000000",...,"#ff0000"]; // 256 custom values
// Or const scale = [0x000000,...,0xff0000]; // Any 256-step path within the RGB cube
And the command (either chained after greyscale or not, whichever is the most convenient / fastest)
const output = await sharp(input).greyscale().colorscale(scale).toBuffer();
const output = await sharp(input).colorscale(scale).toBuffer();
Please provide sample image(s) that help explain this question
This would allow to redraw the Mona Lisa with the very nice Viridis (or Magma) colorscale... (a quick Google search to see what I mean)... or generally to do interactive work with scientific images.
Is it possible to achieve this currently, or, if not yet, to implement the feature?

Hello, this sounds like the sort of thing that mapping via a lookup-table would help with. This feature is not currently available, but there is a future possible enhancement relating to this at https://github.com/lovell/sharp/issues/1441

Hi. Thanks.
I have zero knowledge in images, but if a greyscale image is basically an array of integers n between 0 and 255, then the new image would be simply obtained by replacing n by table[n] (with 3 channels of course). From the outside, this looks extremely quick and easy to do (much simpler than any crazy convolutions or sophisticated filters).
Something like
function (image, table) {
  return image.map(n => table[n])
}

Isn't it not? (Why?)
I'm not familiar with the sharp codebase, but if you tell me where in the code to look at, I could give it a try.

The discussion in #1441 went a bit off-topic, but ultimately it's about exposing vips_maplut to map input pixel values to output values via a per-channel lookup table (LUT). Providing a 1-channel LUT should probably force the image to greyscale first.
I'm always keen to add features that can help people with colour-blindness (I have a mild form). I've updated the title of #1441 - let's continue to track it there, thanks for opening this issue.

Thank you for the explanations.
Of course, intuitively, the way I saw a possible solution was to copy/paste the greyscale function (whatever that is), add an array as a second argument, and change a few lines in the return statement, which looked very simple. But with a closer look I now understand we need to deal with the libvips library first.
Understood.
I will look more closely at the #1441 discussion.

authors: StellarCodeOrg lovell

repo: lovell/sharp


text:
Provide pre-compiled binaries for 64-bit ARMv8

Hello, I try to install sharp on odroid C2 (Amlogic ARM® Cortex®-A53(ARMv8) 2Ghz quad core CPU)  with Ubuntu 16.04
uname -a Linux odroid64 3.14.65-72 #1 SMP PREEMPT Wed Jul 20 21:51:35 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux
nodejs -v v4.2.6
npm -v 3.5.2
When I run npm install sharp i have the error: libvips-cpp.so: error adding symbols: File in wrong format. AFAIF, this error is occurred when mixing 32 and 64 bit libraries together. I were installed libvips-dev from repo and run 'npm install sharp --sharp-cxx11' but have the same error.

Hello, the pre-built binaries for ARM are created on a 32-bit ARMv6 machine, a 1st gen Raspberry Pi, so your suspicion about this being a 32 vs 64 bit problem is probably correct.
Are you able to try with a 32-bit version of node, perhaps one prepared for the ARMv7 arch, to help prove this (I think ARMv8 CPUs can run in an ARMv7 "mode")?

Thank you for answer, Lovell. I can try to install sharp with 32 bit node in the weekend. Right now the device is in use with default system environment and too much of code expects 64 bit. And a little bit problem that Hardkernels team don't provided 32-bit system for this computer. At weekend I can try to build node, glib and g++ for 32 bit and check your suggestions.
But, I have another idea. What do you think if I try to get sharp sources from github and change  sharp/packaging/arm/build.sh
export PATH="${PATH}:${TARGET}/bin"
export CPPFLAGS="-I${TARGET}/include"
export LDFLAGS="-L${TARGET}/lib"
from 32 destination to 64 bit? Or may be you know some options to change this settings in npm command line? My tries to use "env LDFLAGS="-Lpath/to/lib64" were failed.

If you'd like to experiment with the packaging scripts, the CFLAGS and CXXFLAGS here need to include
-march=armv8-a+crc for ARMv8 cross-compilation.
What I can do is ensure the pre-compiled binaries are only used for ARMv6 and ARMv7 machines via something like process.config.variables.arm_version. Then we can think about providing ARMv8 binaries.

Thank you very much, Lovell, you proposal is very useful and now sharp is installed successfully.
Installation instructions for Arm8 on Ubuntu 16.04:
Get sources
mkdir ~/src
cd ~/src
git clone https://github.com/lovell/sharp.git
Change platform flag:
sudo vi sharp/packaging/arm/build.sh
delete line 16,17 contains:
export CFLAGS="-O3"
export CXXFLAGS="-O3"
and add
export CPPFLAGS="-march=armv8-a+crc"
Install libvips and its dependencies:
cd sharp
sudo sh preinstall.sh
Install sharp
cd ~/target_project/node_modules
sudo npm install ~/src/sharp/ --sharp-cxx11=1 --build-from-source
Pre-compiled binaries for Arm8 64:
sharp-o.zip

I notice you used the deprecated preinstall.sh script in there to install libvips globally, which is probably why this is now working. From the commands you list, it looks like the scripts inside the packaging directory aren't being used.
Let's leave this task open whilst I sort out the 32 vs 64 bit ARM binaries and, more importantly, document this process to make things less confusing.
As an aside, it always makes me happy to learn about people using sharp on ARM-based kit :)

I notice you used the deprecated preinstall.sh script in there to install libvips globally
Yes, it's not a problem for me if libvips is installed globally.

From the commands you list, it looks like the scripts inside the packaging directory aren't being used
The 'preinstall.sh' were looked by me superficially and I overlook that this script doesn't fire build.sh from /packaging/arm directory. If 'build.sh' was being running manually,  the error is occurred during the 'make' is performing:
tar (child): /arm/libvips-8.3.1-arm.tar.gz: Cannot open: No such file or directory.
I didn't deeply investigate this problem, because all works fine now. But if you need more details about this, please provide information what should I do to help you.

it always makes me happy to learn about people using sharp on ARM-based kit :)
Your library is fast and clear, arm  device is small and powerful, why not to splice this sweet couple :)

Commit 475f0bf on the pencil branch adds support for ARMv6, v7 and v8 specific pre-compiled binaries.
Running npm install lovell/sharp#pencil should now "just work". Are you able to test this on a 64-bit ARMv8 machine, preferably where libvips is not installed?

I'm on vocation now and haven't Odroid within touch. I shall come to my city at the end of august and when it will happen, I shall do installation on clean system and write about result here.

@rybalchenkoserg Thanks for the update, enjoy your travels!

v0.16.0 is now available via npm and provides separate pre-compiled binaries for ARMv6, v7 and v8. I'll leave this open for further testing and feedback.

Closing due to inactivity but please feel free to re-open if the ARMv8 binaries currently provided aren't working.

authors: lovell rybalchenkoserg


text:
[fpga] Tech-specific implementation of prim_flop_2sync

We currently use the generic implementation of prim_flop_2sync on the FPGA. At least for certain use cases, it could be beneficial (higher MTBF for synchronization failures) to use specialized cells such as XPM_CDC_SINGLE (see 7 Series FPGA Libraries Guide and UltraScale Architecture Libraries Guide).

XPM_CDC_SINGLE adds individual set_false_path constraints for each cell. The volume of constraints that will generated might not be desirable for the tool.
However, a FPGA-specific implementation would let us add the ASYNC_REG property to our own flop implementation.

authors: a-will andreaskurth

repo: lowRISC/opentitan


text:
Manifest usage test

This PR adds tests that exercise the manifest's usage constraint rules.

Closed in favor of #16078.


text:
[dv/alert_handler] scb supports escalator prediction

Add escalator signals to alert_handler scb. Check if esc signal comes as
expected.
Signed-off-by: Cindy Chen chencindy@google.com

@sriyerg @weicaiyang could you PTAL when you have time? Thanks:)


text:
[dv, edn] Add the test chip_sw_edn_entropy_reqs_jitter

This PR fixes #14784

thanks for adding. We may need to tweak the timeout for this later, but let's see how nightly responds.

This is the log of my local run:
          [   legend    ]: [Q: queued, D: dispatched, P: passed, F: failed, K: killed, T: total]
00:02:54  [    build    ]: [Q: 0, D: 0, P: 1, F: 0, K: 0, T: 1] 100%
00:30:00  [     run     ]: [Q: 0, D: 0, P: 3, F: 0, K: 0, T: 3] 100%

Should I increase the timeout to 30ms?

no this is good i think. Let's see if there's any fallout for nightly.
Most of the entropy distribution is using the jittery clock, so in theory turning on jitter could have a big impact on the run-time. But this test may have been really generous alread.

authors: engdoreis tjaychen


text:
[sw/sca] Add batch mode for ecc256 keygen serial file

This commit / PR

Adds a command handler to set a signal value whether masking should be enabled/disabled for secret keygen in batch mode
Adds a command handler for the batch mode itself
Corrects two minor commentary mistakes

The binary that can be built from this code is required for capturing traces in batch mode for OTBN ecc256 keygen vertical TVLA analysis.

I now also opened A PR in the ot-sca repository, which adds the corresponding batch mode capture function.
https://github.com/lowRISC/ot-sca/pull/128


text:
[spi_device] Fix up TPM command handling

Move the TPM Write and Read FIFOs to the SRAM. Change the Write FIFO's interface to be more like the SPI flash upload type, where the hardware side is a FIFO, but the software side is a RAM with an explicit busy/free bit. As a side effect, the Write FIFO now has a wider interface, and buffer reads can proceed more rapidly.
Adjust the synchronization mechanisms with software to eliminate ambiguity in the relationship between data buffers and commands.
For TPM write commands, wait until the data is completely transferred before pushing the command into the command FIFO. In addition, do not pass the wait state if the command FIFO is not empty and if the write FIFO has not been released back to hardware. Aborted write commands will simply be dropped, and software does not get confusing information. The process works like this:

Write command enters the SPI hardware.
HW waits for the command FIFO to be empty and for the payload buffer to be released.
HW proceeds past wait states until just before the last posedge for the last bit specified by the command's byte count (xfer_size_met).
HW writes the command to the command FIFO on that last posedge. The SRAM is also written here for the payload.
SW reads the command from the command FIFO and notes the length of the data. A write command being present signifies the full data is in the write FIFO.
SW reads the data from the write FIFO, then writes the TPM_STATUS CSR to release the buffer back to HW.

For TPM read commands, wait until the command FIFO is empty before pushing a new read command into it. In addition, hold the Read FIFO in reset on the sys_clk side until a new read command is popped from the command FIFO. "New" means a command that was pushed since CSB was most recently asserted. After this handshake, the Read FIFO's reset is lifted and becomes open for writing. The process works like this:

RdFIFO is held in reset. It must be empty and can't be written yet.
Read command enters the SPI hardware.
HW waits for SW to empty the command FIFO.
HW writes the read command to the command FIFO. This should happen basically instantly for software (relative to the command FIFO emptying).
Software reads the command FIFO to lift the RdFIFO reset. This gate prevents SW from writing stale data.
HW waits for the RdFIFO to have enough data.
HW completes the command.
HW puts the RdFIFO back in reset once CSB de-asserts.

In addition to those mechanisms, add a new interrupt to signal when data was dropped from the RdFIFO. This includes both writes occurring while the RdFIFO is held in reset and a read command not transferring its proscribed number of bytes. It does not include data that software wrote into the FIFO beyond what the command called for.
Resolves #14045, #15785, #20654, #13996

Looks like I still have a bug to squash. The TLT timed out after the first write/read loop.

Sorry for the chunky PR. The solution for the synchronization issue ended up snowballing to need changes to how data is stored, and a lot of smaller changes combined to make one large commit for atomicity.

The failing tests are our usual flaky suspects (the provisioning tests). They don't appear to be related to this PR, and running the tests locally produced passing results.

Based on the PR description, my understading is that the "command FIFO" really is not much of a FIFO anymore, since there can only be zero or one entry in it, at any time.  Is that correctly understood?
Also, neither the read nor write FIFOs works on a continous FIFO-bases like e.g. a UART would, instead they are more like buffers, that are written and read in their entirety by the producer and consumer respectively.
The above sounds good to me.
The new "data dropped from RdFIFO" I am somewhat concerned about.  I would prefer to have a "read completed" interrupt, which our software could handle by reading a register telling us how many bytes were left unread (or alternatively how many bytes were successfully read via the SPI bus).  I do not like a situation in which absense of interrupt means that the data was read in full, and an interrupt is only generated if less was read.  We have code that needs to react to the number of bytes having been succesfully read, and it is inconvenient to have to check on the next read/write operation start, whether we have or have not received a "bytes dropped" interrupt before, and react accordingly.
Aside from that, my only wish would be that for some select situations, we could be allowed to pre-load RdFIFO before the SPI request arrives.  In particular, the way we plan on using this support, is to have the TPM status register and similar served using the "hardware register" support, and serve the TPM FIFO register using the RdFIFO.  It would be awesome that our software could react to a write to TPM status register by pre-populating RdFIFO, along with some instructions that only if this particular TPM register ("FIFO") is the one requested read, then the hardware should immediately start sending data, without wait states, but on any other register read, the hardware should discard the contents of RdFIFO, generate wait states, and behave as described in the PR description.

Based on the PR description, my understading is that the "command FIFO" really is not much of a FIFO anymore, since there can only be zero or one entry in it, at any time. Is that correctly understood?
Also, neither the read nor write FIFOs works on a continous FIFO-bases like e.g. a UART would, instead they are more like buffers, that are written and read in their entirety by the producer and consumer respectively.
The above sounds good to me.
The new "data dropped from RdFIFO" I am somewhat concerned about. I would prefer to have a "read completed" interrupt, which our software could handle by reading a register telling us how many bytes were left unread (or alternatively how many bytes were successfully read via the SPI bus). I do not like a situation in which absense of interrupt means that the data was read in full, and an interrupt is only generated if less was read. We have code that needs to react to the number of bytes having been succesfully read, and it is inconvenient to have to check on the next read/write operation start, whether we have or have not received a "bytes dropped" interrupt before, and react accordingly.
Aside from that, my only wish would be that for some select situations, we could be allowed to pre-load RdFIFO before the SPI request arrives. In particular, the way we plan on using this support, is to have the TPM status register and similar served using the "hardware register" support, and serve the TPM FIFO register using the RdFIFO. It would be awesome that our software could react to a write to TPM status register by pre-populating RdFIFO, along with some instructions that only if this particular TPM register ("FIFO") is the one requested read, then the hardware should immediately start sending data, without wait states, but on any other register read, the hardware should discard the contents of RdFIFO, generate wait states, and behave as described in the PR description.

The "bytes dropped" status will be known before the next command is loaded, so there is no need to track it via interrupt form, really. Communicating how much data remained doesn't make sense because, as you said, these are not FIFOs. It's an all or nothing affair: Either the I/O transaction completed or it didn't. You cannot retire any related data until it is known that the transaction completed in full. There is no such thing as a "partial transaction," since the amount of data requested is integral to the command.
However, we could probably add a "read command completed" interrupt to the list of feature requests and check on resourcing. That could help with knowing when to retire the pending response.
The wish list item of being able to write the RdFIFO ahead of time requires a very different interface, and it's almost certainly too late for that.

To make review a bit easier, the first commit is unchanged from the last approval. The updates to address synchronization (and lint) issues are in the subsequent commits.

authors: a-will jesultra


text:
[pwm, rtl] PWM register locking with REGWEN signal

Update the REGEN register name to REGWEN
Change the swaccess and hwaccess fields for REGWEN
Add a regwen field for each control registers
Remove the TODO comments

Signed-off-by: Muqing Liu muqing.liu@wdc.com

@msfschaffner, @tjaychen, @eunchan: Could one of you please take a brief glance at this PR also, just to make sure we are not doing something funny with this REGWEN.   Once I get one more approve, I can merge this for Muqing.

left a comment, lgtm otherwise.

authors: Muqing-Liu martin-lueker tjaychen


text:
Url parsing without port doesn't work

Normally url parsing without a port will default to 5432 however that currently doesn't work, should be a relative easy fix I guess?

Could you share the code to reproduce the issue and the expected outcome along with the target used and the version of the stdlib you are using please.

Sounds good! Thank you

authors: lpil uncle-samm

repo: lpil/pog


text:
Two RM mini configuration json

With using multiple RM mini devices, I want to clarify, whether I set both devices up as two platforms or accessories, I have seen different examples in past threads.
If I set them as two platforms, I get:
Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 7896a993-5b3c-467b-aa
If I set one as a platform and one as an accessory, I get
was not registered by any plugin
My json is:
`
{
"accessory": "BroadlinkRM",
"name": "Broadlink RM",
"host": "10.0.1.19",
"data": [
{
"name": "TV",
"type": "on",
"on": "260054005211291217XXXX",
"off": "260054005211291216XXX"
}
]
}
],
"platforms": [
{
  "platform":"BroadlinkRM",
  "name":"Broadlink RM",
  "host":"10.0.1.20",
  "accessories":[
    {
"name": "Air Conditioner",
"type": "air-conditioner",
"minTemperature": 10,
"defaultHeatTemperature": 28,
"defaultCoolTemperature": 18,
"autoMinimumDuration": 300,
"heatTemperature": 20,
"data": {
  "off": "260050020a120d100c110a120b110a000344703b0e2c0c100b110d0f0d2d0a120b120b100e0e0d2d0c100c2d0c2e0b100c2d0c2e0c2c0e2c0d2c0c0f0d100c2d0c110c100b110a130b1209120a120a130c110a110c2d0d100a2e0c120c0e0d100c2d0d2c0c110a130a1209120b130a110c100c120c0f0c110b110c110b100c100d110c0e0c2d0d2c0d2d0c110c2d0b110d2c0e2b0d00047a703b0d2c0e0e0d1109130b2e0b1209120a130a120c2d0d01",
  "temperature28": {
    "pseudo-mode": "heat",
    "data": "260050020d0e0e100c0f0e0f0c1"

  },
  "temperature18": {
    "pseudo-mode": "cool",
    "data": "260050020c100d0f0d10"
  }
}

}
]`

@kapps7
2 accessories, and please see below. I've not done it yet but I plan to do so soon.
https://github.com/lprhodes/homebridge-broadlink-rm/issues/77
https://github.com/lprhodes/homebridge-broadlink-rm/issues/7

You create one platform. Accessories are then defined inside the platform (like in the config-sample.json)
Each accessory would have a host key which would be the IP address of the RM device you want that accessory to use.

You can find a new config sample for multiple RM devices here.

Believe it or not, I worked this out in the middle of the night.. Thanks mate.

repo: lprhodes/homebridge-broadlink-rm


text:
🚀 Submission status

Is your feature request related to a problem?
It is easy to verlook an excericse not submitted yet (before the deadline).
Describe the solution you'd like
A flag or a color bar indicating if an excercise is not solved yet and the deadline has not yet passed.

Describe alternatives you've considered
A view of excercies without a solution before the deadline
Additional context

+1
Here is an alternative suggestion to solve the problem:
Add a 'No submission' status for exercises that have been started, but not yet submitted.
(Instead of having 'No result' for both submitted and not yet submitted exercises)

This is a possible duplicate of #403

authors: antonisikorski vincko

license: mit

license_source: bigquery


text:
[Enhancement] Make group synchronization customizable for cypress tests

Motivation and Context

In order to test programming exercises we need to dynamically create courses and programming exercises. Currently we have a limitation on servers that use bamboo and bitbucket that we have to wait at least 60 seconds between the creation of a course and a programming exercise. If we don't wait the creation of the progamming exercise fails. Currently the sleep is hardcoded so even if the Cypress tests are run against testservers, which use gitlab and jenkins, the tests still have a static sleep. To make testing on other testservers faster we should skip the group synchronization in this case.
Description

This PR refactors the static sleeps and reduces code duplication by putting the logic into a custom cypress command. Furthermore a environmental parameter is added to tell Cypress if the target environment uses bamboo + bitbucket or gitlab + jenkins. If the parameter is false all group synchronization sleeps are skipped, so the tests should be 2-3 minutes faster than usual.
Steps for Testing

Affected cypress tests:

ProgrammingExercise.spec.ts
ProgrammingExerciseParticipation.spec.ts
ExamManagement.spec.ts

Configure cypress to run on ts2 with our guide
Set the isBamboo parameter to true (this does not skip group synchronization)
Execute the affected cypress tests individually and note their total execution time (example is under screenshots)
Set the isBamboo parameter to false (this skips group synchronization)
Execute the affected cypress tests individually and compare the total execution time to the previous run
You should notice that the execution time has been reduced by about a minute for each test

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Screenshots

With group synchronization

Without group synchronization

Coverage
Bamboo plan (with group synchronization) passes

Buildplan still passes with new changes


text:
Programming Exercises: Truncate test name instead of silent fail

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Spring) related to the features (with a high test coverage).

Motivation and Context

During the creation of an exercise for PGdP we noticed the absence of the results for the solution participation. After a bit of debugging, we noticed that Artemis silently fails without any error message, because the automatically generated test names for the parameterized tests were too long.
Description

Artemis now truncates the test name to the maximum allowed length, if they are too long.
Steps for Testing

Prerequisites:

1 Instructor
1 Programming Exercise

Log in to Artemis
Create a test with a long name (at least 256 characters, @DisplayName from JUnit might be easier than such a long method name).
Check that the solution still gets a result in this exercise

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[x] Code Review 1
[x] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Server

Class/File
Line Coverage
Confirmation (assert/expect)

Constants.java
100%
✅

ProgrammingExerciseTestCase.java
98%
✅

On ts3 a test with 257 characters did not executed on solution repository

Can you add a small test that feedback with so long test names works correctly?


text:
Development: Remove eager relationship between team and students

Checklist
General

[X] I tested all changes and their related features with all corresponding user types on a test server.
[X] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[X] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[X] I followed the coding and design guidelines.

Motivation and Context

In #7719, the migration to Hibernate 6 introduced circular references in some produced SQL queries. To mitigate this effect, we replace explicit EAGER references on models with fetch queries wherever necessary.
This PR affects the relation between Teams and Students
Description

We removed the explicit EAGER, added a student fetch to some queries and replaced certain query usages where fetching students is required.
Steps for Testing

Prerequisites:

1 Instructor
3 Students
1 Team Programming Exercise with Complaints enabled
2 further Team exercises

Submit to the programming exercise, ensure normal behaviour and update the status and score.
Delete the build plans through Artemis (Exercise Reset) to change the InitializationState.
Resume the exercise and submit it once more. Ensure normal behaviour.
Finalise the exercise and grade them
Submit a complaint as a team member, answer the complaint as an instructor and view the complaint and response as a team member.
Create third team exercise
Import teams from exercise1 to exercise3 using the exercise team import. Make sure your students receive the websocket messages
Import teams from exercise2 to exercise3 using the list team import. Make sure your students receive the websocket messages
Update a team. Make sure your students receive the websocket messages
Delete a team. Make sure your students receive the websocket messages

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[x] Code Review 1
[x] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

No additional assertions, but changed production lines

Class/File
Line Coverage
Confirmation (assert/expect)

AuthorizationCheckService.java
94.6%

ComplaintService.java
91.1%

ParticipationAuthorizationCheckService.java
100%

ParticipationService.java
94.6%

ProgrammingMessagingService.java
100%

TeamImportStrategy.java
90%

ComplaintResponseResource.java
96.9%

ParticipationResource.java
94.1%

TeamResource.java
96.7%

TeamWebsocketService.java
91.3%

Summary by CodeRabbit

New Features

Enhanced team management functionality, including team import strategies and deletion operations.
Implemented new methods for fetching student teams with associated members across various services and resources.
Added conditions to handle team participations in complaint creation and authorization checks.

Improvements

Optimized data fetching strategies for participations, submissions, and scores related to team exercises.
Improved logic for eager loading of team information in various services to reduce database queries.

Bug Fixes

Corrected the query count expectation in DatabaseQueryCountTest to align with the updated logic.
Fixed documentation comments and ensured consistency in test setups.

Refactor

Renamed methods to more accurately reflect their new functionality involving team and student data.
Streamlined JPQL queries and repository methods for better performance and readability.

Documentation

Updated comments and documentation to reflect the new changes in team handling logic.

Just an FYI, this PR does not work on TS1, as it always crashes with this error: https://gist.github.com/Hialus/c89339fc460ce793e40e987709bfe294

authors: Hialus krusche


text:
Removed separate TutorialGroupFreePeriodDTO-Class and added it as a r…

Removed individual TutorialGroupFreePeriodDTO and created the record again.

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[ ] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[ ] I chose a title conforming to the naming conventions for pull requests.

Server

[ ] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[ ] I strictly followed the server coding and design guidelines.
[ ] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[ ] I added pre-authorization annotations according to the guidelines and checked the course groups for all new REST Calls (security).
[ ] I documented the Java code using JavaDoc style.

Client

[ ] Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data.
[ ] I strictly followed the client coding and design guidelines.
[ ] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[ ] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[ ] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[ ] I documented the TypeScript code using JSDoc style.
[ ] I added multiple screenshots/screencasts of my UI changes.
[ ] I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

[ ] High priority: I tested all changes and their related features with all corresponding user types on a test server configured with the integrated lifecycle setup (LocalVC and LocalCI).
[ ] I tested all changes and their related features with all corresponding user types on a test server configured with Gitlab and Jenkins.
[ ] I tested all changes and their related features with all corresponding user types on a test server configured with Bitbucket and Bamboo.

Motivation and Context

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Code Review

[ ] Code Review 1
[ ] Code Review 2

Test Coverage

I think the DTO should still be its own file, just as a record instead of a class file.

authors: Jan-Thurner Strohgelaender


text:
Add tvOS and Carthage support

This PR adds Carthage and tvOS support.
Carthage support isn't 100% complete because it requires changing the workspace to use carthage instead of cocoapods. This doesn't break cocodpods as a dependency.
If you were to try to build with carthage as-is, it will result in a build error.
A work around would be to
carthage update --no-build
pushd Carthage/Checkouts/sReto/Source/
pod install
popd
carthage build

This basically checks out the repo, adds the required Pod sub-dependencies, then continues the build as normal in carthage without overwriting changes. Caveat is, carthage update would blow away those changes and require repeating these steps.
I can fix the issues by modifying the Source project to no depend on Cocoapods, but wanted to make this PR first to see if that would be accepted before I do that work.
This pr would resolve #6 and #11

Thanks, I merge it. Feel free to adapt the source project to be more independent of CocoaPods. It would, however, be great if we could then support CocoaPods and Carthage.

authors: JoeMatt krusche


text:
Implement operation timeout

This library needs to support max timeout as it is used in distributed interceptors which should not have impact on the performance of the production code.

Closing since it's been implemented. If one if the tests keeps failing @nickmcdowall please raise a new issue.


text:
[Bug]: Incompatible behavior with ls with newlines

Version

[X] latest

version
1.1.2
What OS are you seeing the problem on?
macOS
installation
cargo install lsd
term
xterm-256color
ls-colors
di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43
What happened?
When trying to count words using `wc` I am getting different output.

Repro steps

mkdir temp
cd temp
touch {00..40}.tmp
lsd | wc
#       3      41     327
/bin/ls | wc
#       41      41     287

Expected output:

  41      41     287

Actual output:

  3      41     287

What expected?
The line count for output _should_ be consistent with `/bin/ls`

What else?
No response

Same problem here.
ls uses to not make assumptions about width if it encounters the output stream is not tty
/usr/bin/lsd /dev/disk/by-id/ata-* | sed '/-part[0-9]+$/d'
/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4230FA16WWYK  /dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0KC01186R        /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN105KW
/dev/disk/by-id/ata-INTENSO_DCFE07860C0B01299906-part1      /dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0KC01186R-part2  /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN105WY
/dev/disk/by-id/ata-INTENSO_DD8B07860C0B01299904-part1      /dev/disk/by-id/ata-Samsung_SSD_870_QVO_8TB_S5SSNF0W614899R          /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT0F2E7

/usr/bin/ls /dev/disk/by-id/ata-* | sed '/-part[0-9]+$/d'
/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4230FA16WWYK
/dev/disk/by-id/ata-INTENSO_DCFE07860C0B01299906
/dev/disk/by-id/ata-INTENSO_DD8B07860C0B01299904
/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0KC01186R
/dev/disk/by-id/ata-Samsung_SSD_870_QVO_8TB_S5SSNF0W409834J
/dev/disk/by-id/ata-Samsung_SSD_870_QVO_8TB_S5SSNF0W614899R
/dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN105KW
/dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN105WY
/dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT0F2E7

same as #1052 I'd say

authors: GottZ NazarioJL

repo: lsd-rs/lsd


text:
[Feature request] Second level sort method (for --sort=extension)

os: ArcoLinux
lsd --version: lsd 0.23.1
echo $TERM: xterm-256color
echo $LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.avif=01;35:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:~=00;90:#=00;90:.bak=00;90:.old=00;90:.orig=00;90:.part=00;90:.rej=00;90:.swp=00;90:.tmp=00;90:.dpkg-dist=00;90:.dpkg-old=00;90:.ucf-dist=00;90:.ucf-new=00;90:.ucf-old=00;90:.rpmnew=00;90:.rpmorig=00;90:.rpmsave=00;90:

Expected behavior
Be able to have a nested sort option over the main one. This will allow user to nest sorting methods (if applicable).
Sort by name is absolute, there is no space for a "second level sorting method"
Sort by extension groups files but don't seem to be an order in them (per group/section) by name nor time nor size.
A good option could be able to specify a second level sort method, in my case I prefer by name and if it's used with --sort=extension each "extension group" will sort its files alphabetically allowing the user to find faster specific file(s). Very useful with a long list of files.
It's very common to find this setting in graphical file browsers.
Actual behavior
The default sort order is by name, files with same extension are separated.
$ lsd --icon never
2022-09-13 (2).png   Avanxe7.zip  ID_394_507.zip       p5000      venus_box_cover_mod.stl  VID_20220819_175931.mp4
20221204_121637.mp4  BPSK         image.png            Solid.png  vernier_caliper.FCStd
asmdemo.c            Day7.c       oboi7.com-14695.png  TS80P.zip  VID_20211227_175134.mp4

If the sort order is by extension, files with same extension are grouped but each group itself is not sorted by name.
$ lsd --icon never --sort=extension
BPSK                   Day7.c                   2022-09-13 (2).png   venus_box_cover_mod.stl
p5000                  VID_20211227_175134.mp4  oboi7.com-14695.png  ID_394_507.zip
vernier_caliper.FCStd  VID_20220819_175931.mp4  Solid.png            Avanxe7.zip
asmdemo.c              20221204_121637.mp4      image.png            TS80P.zip

Is better
$ lsd --icon never --sort=extension
BPSK                   vernier_caliper.FCStd       022-09-13 (2).png       venus_box_cover_mod.stl
p5000                  20221204_121637.mp4         image.png               Avanxe7.zip
asmdemo.c              VID_20211227_175134.mp4     oboi7.com-14695.png     ID_394_507.zip
Day7.c                 VID_20220819_175931.mp4     Solid.png               TS80P.zip

Things to note:

Is case sensitive, extensions like FCStd, JPG, PDF are first than c, csv, h. I think is better to make it insensitive to capital letters.
I realize that in GUI file browsers files are not grouped by extension but by type and each type is a group with several extensions associated (something like this), inside that group extensions are sorted alphabetically and again files with same extension are sorted by name.

If you don't mind the inefficiency of running ls first, I'm currently using the following work-around to get the sorting that I prefer from ls with the display niceties of lsd (zsh shell on Fedora 38):
alias ll="ls -1X --sort=extension --group-directories-first --color=never | xargs lsd -Uld"

The -1 flag to ls outputs one item per line.
--color=never suppresses terminal escape sequences in the output, leaving pure file and directory names as outputs.
piping to xargs lsd takes the lines of output from ls, in the right order, and makes them arguments for lsd.
-U suppresses the sorting done by lsd, maintaining the order given by the order of the arguments.
-d makes lsd print info on a directory, rather than its contents.

authors: hasecilu raabrp


text:
Added Day3's Part 1 and 2 solutions. (Part2 unsolved yet)

Day3's solutions. (Part2 unsolved yet)

Thanks @KXA194 !

repo: lsug/advent-of-code-typelevel


text:
🛑 SoHard 网盘 is down

In 5135436, SoHard 网盘 (http://pan.lsy223622.com:2236) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SoHard 网盘 is back up in f2cb327 after 6 minutes.


text:
🛑 Mirror-爬 is down

In fc869c5, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 842 ms

Resolved: Mirror-鱼露 is back up in 924e24d.


text:
🛑 Mirror-爬 is down

In 77131df, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 655 ms

Resolved: Mirror-鱼露 is back up in a19dd08.


text:
🛑 Mirror-爬 is down

In 99abdf4, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1187 ms

Resolved: Mirror-鱼露 is back up in 5903549.


text:
🛑 Mirror-爬 is down

In 1c90652, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 722 ms

Resolved: Mirror-鱼露 is back up in c02a774.


text:
🛑 Mirror-爬 is down

In 1054360, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 717 ms

Resolved: Mirror-鱼露 is back up in 35838cc.


text:
🛑 Mirror-木生 is down

In 3b3d50d, Mirror-木生 (https://t.lsy223622.com/ncov-xidian-times) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mirror-爬 is back up in ed976af.


text:
🛑 Mirror-爬 is down

In 9285e5b, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1021 ms

Resolved: Mirror-鱼露 is back up in 0c68705.


text:
🛑 Mirror-爬 is down

In ffdcc15, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 675 ms

Resolved: Mirror-鱼露 is back up in 5c97a48.


text:
🛑 Mirror-爬 is down

In 245597c, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1093 ms

Resolved: Mirror-鱼露 is back up in c9a3f8e.


text:
🛑 Mirror-爬 is down

In 9ee2869, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1056 ms

Resolved: Mirror-鱼露 is back up in 6535d18.


text:
[Android] Added feature, switch between  speakers and earpiece

Description
Feature to toggle between speakers and earpiece. Can be used to play some thing when no headphones nearby and for not disturbing people around. Switch to headphones if connected (wire and wireless).
Affected methods and callbacks:

Added Content into a methods play, setUrl of class Player
Added Content into setAttributes of class WrappedMediaPlayer
Added condition to choose between speakers and earpiece into setAttributes of class WrappedMediaPlayer
Added method setPlayingRoute into class Player
Added implementation of setPlayingRoute into WrappedMediaPlayer
Added new method handleMethodCall in to AudioplayersPlugin class
Added example

Supporting platforms
Implemented only for Android
Tested

Android v.10 google pixel
Android v.10 API 29 emulator
Android v.4.3.1 API 18 emulator

Thank you for code review!
I fixed all formatting issues.
Also i will be appreciate, if some one helps with iOS implementation of stream routing.

@beerline it would be great, but I think we can merge this one and get the functionality for android. can you open an issue (if doesn't already exist) requesting this to be impl for ios as well? Hopefully someone with ios expertise can help us out.

authors: beerline luanpotter

repo: luanpotter/audioplayers


text:
Problem with installation of C libs

I just ran luarocks install luasec and it worked fine, so I think my luarocks 2.2.0 setup is OK. When I run luarocks make in current luaposix git, it installs the C libraries in the wrong place: under lib_dir/lua/5.2 rather than under lib_dir. Then Lua can't find them.
Obviously, it is luarocks that finally moves the libraries to the wrong place, not luaposix's build system itself.
My lib_dir as set in my LuaRocks config is:
    lib_dir = home.."/.local/lib/"..arch.."/lua/"..lua_version,

In the auto-generated build-aux/luarocks-config.lua, I have:
variables = {
  LUA = "/home/rrt/.local/bin/x86_64-linux-gnu/lua",
  LUA_BINDIR = "/home/rrt/.local/bin/x86_64-linux-gnu",
  LUA_INCDIR = "",
  LUA_LIBDIR = "",
}

Is that wrong? (Obviously the default computed values for LUA_LIBDIR and LUA_INCDIR won't work with my setup.)
This is going back to the conversation we had around January 15th 2014. Unfortunately I can't find a fix other than manually moving the libs to the right location after installation.
Setting LIBDIR in the call to luarocks doesn't help. (Setting LUA_LIBDIR is plain ignored.)
As far as I can see this is because in local.mk it is luaexecdir, which defaults in ax_lua.m4 to $exec_prefix/lib/lua/$LUA_VERSION, which is wrong. I can't see how to set it when calling luarocks, since that doesn't give me access to the command line sent to make.

Yuck
I'm not inclined to investigate this anymore myself, because I have a new Luke prototype working for Lua only builds, and plan to move to using Luke instead of autoconfuse for build related tasks (obsoleting slingshot along the way).  So rather than spending time on this and a bunch of other niggly little corner cases with configured builds, I'd rather work on supporting C module builds with Luke...
Of course, I'd be very happy if you find a solution, and will gratefully apply any patches that you need in that case :-)

These luarocks settings can be found in the rather hidden away file luarocks/site_config.lua
I think this issue is related to how you ./configure'd your luarocks installation.

Hi, $(LIBDIR) as written in the rockspec file is meant to be the final destination of all binary modules. Note that this is a temporary directory in a sandbox location, and not the final destination where the modules will live (ie, if LuaRocks is configured to install in /usr/local/lib/lua/5.2, this is where they'll end up in, but this is not the value of $(LIBDIR). This is deliberate, to ensure relocatable builds and avoid hardcoded paths.)
I see that the rockspec is already passing $(LIBDIR) to the configure script as --libdir='$(LIBDIR)', so things are supposed to work. Apparently someone is adding /lua/5.2 after the fact, but it's not LuaRocks.

@daurnimator It's nothing to do with my LuaRocks config: see the initial report, where I was able to install luasec with no problem to the expected location. In any case, the contents of my luarocks/site_config.lua is fine.

Hi all,
I installed luaposix here to see if I could reproduce the issue and sure enough, posix.so is not being deployed here either.
The bad news is that you've just hit a serious design limitation in LuaRocks that no one had never bumped into in the last eight years:
You guys have a .lua and a .so module with the same name.
The manifest format stores module references in a ["foo.bar"] = "path/to/foo/bar.lua" model. With posix.so and posix.lua, the key gets overwritten.
I am deeply sorry about this, but I honestly don't see how this can be fixed in the LuaRocks end without some serious reengineering and compatibility breakage.
If posix.so is used only internally by the .lua modules and you're willing to accept renaming it to posix/core.so, I volunteer to submit a patch.

@hishamhm , thanks very much for the test and offer of a patch. I wonder if however you have found a different bug? The install is now working fine for me, whereas what you report is that it won't be correctly recorded in the manifest, and so the files won't be managed correctly later (e.g. when installing multiple versions of the rock). I don't understand why posix.so isn't being correctly installed for you…

(I spent some time trying to work out when the problem was fixed for me, since I no longer have to set luaexecdir at configure time, and it has the wrong-for-me default value; it seems that the setting in the install_command is now being respected, for whatever reason. It could be that this was fixed in slingshot rather than luaposix.)

The bad news is that you've just hit a serious design limitation in LuaRocks that no one had never bumped into in the last eight years:
You guys have a .lua and a .so module with the same name.
The manifest format stores module references in a ["foo.bar"] = "path/to/foo/bar.lua" model. With posix.so and posix.lua, the key gets overwritten.
I am deeply sorry about this, but I honestly don't see how this can be fixed in the LuaRocks end without some serious reengineering and compatibility breakage.

I actually have run into this before, I didn't realise it was an unreported issue.
My workaround was to use a key like ["posix.init"] for the lua module.
Due to "*/?/init.lua" being in the lua path it works out fine :)

@daurnimator I adapted your workaround for luaposix too, thanks!

This seems to be fixed AFAICT.  Please reopen this, or a fresh issue if you prefer, should  you encounter it again in future.

authors: daurnimator gvvaughan hishamhm rrthomas

repo: luaposix/luaposix


text:
Create time-format

Some tricks I learned with date/time formatting

Thanx darkpoet78 the documentation from my side is poor, I know. So I greatly appreciate your work here!!!


text:
Add Display On/Off Switch and Service Calls

I have added a Display switch and service calls to allow the display to be "powered" on/off from Home Assistant for when you do not want the display on.
This switch just stops the display updating rather than truly powering it off.
All example yaml files and documentation has been updated to detail this.

Nice! I will review it in the next days for the 2023.3.0 version.

authors: andrew-codechimp lubeda

repo: lubeda/EsphoMaTrix


text:
Unable to apply only the GrayscaleTransformation

Hi,
first of all thanks for making and supporting this project.
I have a weird issue with the GrayscaleTransformation.
Via a converter I am applying in Xamarin Forms certain transformations.

    public class BoolPropertyToTransformationConverter : IValueConverter
    {
        public static IList<ITransformation> ActiveTransformations = new List<ITransformation> ();

        /* We rotate 180 degrees -> Make it gray and rotate it back 180 degrees because of an issue in the library. Fixed an issue for the HTC ONE M8 testing phone*/
        //public static IList<ITransformation> InactiveTransformations = new List<ITransformation> { new RotateTransformation(180, true, false), new GrayscaleTransformation(), new RotateTransformation(180, false, false) };

        public static IList<ITransformation> InactiveTransformations = new List<ITransformation> { new GrayscaleTransformation() };

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            // Return false if value is not a bool or false, true if bool and true
            return (value is bool && (bool)value) ? ActiveTransformations : InactiveTransformations;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }

Above code works on for example an Samsung S7, it doesn;t work on a HTC One M8.
if I replace
public static IList<ITransformation> InactiveTransformations = new List<ITransformation> { new GrayscaleTransformation() };
with the following line:
public static IList<ITransformation> InactiveTransformations = new List<ITransformation> { new RotateTransformation(180, true, false), new GrayscaleTransformation(), new RotateTransformation(180, false, false) };
it works.
Used packages:
package id="Xamarin.FFImageLoading" version="2.1.6-pre-96" targetFramework="portable45-net45+win8+wpa81"
package id="Xamarin.FFImageLoading.Forms" version="2.1.6-pre-96" targetFramework="portable45-net45+win8+wpa81"
package id="Xamarin.FFImageLoading.Transformations" version="2.1.5" targetFramework="portable45-net45+win8+wpa81"
package id="Xamarin.Forms" version="2.3.0.49" targetFramework="portable45-net45+win8+wpa81"
Am I doing something wrong what by accident works on the S7?

That's a really tricky one. I cannot reproduce it as I don't have HTC One M8 device. Any ideas what could cause this?

To be honest; wouldn't have a clue.
It is properly somewhere in the colorMatrix; cause if I remeber correctly I couldn't transform the image to sepia either.
I'll validate that in the morning.

@micheltol Ok, waiting for some info. Did you set TransparencyEnabled to true or false?

Are you using png files with transparency? That was the problem in our case when the all of the color transformations did not work. Try using the latest pre-release version, it should include the fix to ensure that those types of images will transform correctly.

I'll close this as I cannot reproduce it.

authors: ckrempp91 daniel-luberda micheltol

repo: luberda-molinet/FFImageLoading


text:
🛑 Štátny pedagogický ústav is down

In c8915fd, Štátny pedagogický ústav (https://www.statpedu.sk/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Štátny pedagogický ústav is back up in 4dfa650 after 4 minutes.

repo: lubosm/minedusk-uptime


text:
attempt to index field 'sorter' (a nil value)

I have nvim 0.5 and hoogle 5.0, followed the steps but it didn't work and get presented with the error mentioned above when trying searching hoogle

Strange, I don't get this problem.. could you do some more debugging? And give some more info on your entire system (OS, exact version of nvim/telescope, ...)

@Nameer6g6 https://github.com/nvim-telescope/telescope.nvim/commit/d27907b0dac658dfa2fb7e63103675d1832f33e0 might fix your problem. Try updating telescope?

@luc-tielen I've just updated telescope. The error is gone, but there seems to be no results, or at least, they're not displayed.

Screenshot

Same as @khalid151  stated
The issue is gone but now nothing comes from search.


text:
🛑 DGC prod is down

In d484232, DGC prod (https://digichanges.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DGC prod is back up in 4414f35.

repo: lucalop/monitoring


text:
TCP/KCP/QUIC latency test

Scene：
1 set loss 10% and delay 10ms by:
comcast --device=lo0 --packet-loss=5% --latency=5
2 client use tcp/kcp/quic and send 5KB and recv 100KB, loop 100 times and get a result
client-----5KB------>server
client<----100KB--------|

for example:
./ethr -c 127.0.0.1 -port 443 -d 30s -t l -i 100 --debug -ls 5000 -lr 100000 -p quic
-----------------------------------------------------------------------------------------
Avg	Min	10%	20%	30%	40%	50%	60%	70%	80%	90%	95%	99%	99.9%	99.99%	Max
150.654	37.641	94.565	104.039	120.916	126.627	144.059	159.636	168.557	190.859	208.191	240.972	309.006	309.006	309.006	356.66

3 make a scatter diagram with tcp/kcp/quic results

seems:
kcp and tcp latency is better than quic
80% tcp/kcp points latency < 50ms
80% quic points latency < 190ms
Any suggestions are welcome

10% random loss? That seems like a very unrealistic scenario to test.

@adwpc 可以发一下测试代码，参考一下吗

10% random loss? That seems like a very unrealistic scenario to test.
Why is this an unrealistic test？

authors: adwpc ldmid666 marten-seemann

repo: lucas-clemente/quic-go


text:
Visualisation problem

Currently we have different surfaces and windows, onto the different elements are drawn. Please go through the code, maybe find a way to make it easier and more understandable. Also think about a way we can draw food and home pheromones onto the same grid. The colors of the pheromones for the food and home should mix and the user should see another color. It should mix both other colors and also decay with time.

We discussed the problem in a meeting. We now have one screen with the width and height, on to that we are drawing a surface for the pheromones. The grid for the pheromones is smaller, but we are scaling it up for the visualization, so that it fits the size of the screen. Please comment if you have any concerns or questions.


text:
Flutter release package doesn't contain font assets

Problem
The latest flutter package doesn't contain assets folder and hence fails to build due to missing .ttf file, this might be related to 2672c01 commit.

Fixed by #420

authors: ericfennis prateekmedia

repo: lucide-icons/lucide

license: ISC


text:
[API] Clearing all InheritanceNodes from a User adds the default group right after

Description

Clearing all InheritanceNodes from a User adds the group.default right after, adding an extra step (removing group.default) when simulating the parent set command through the API.
Reproduction steps

Sample snippet
// onCommand
final User user = this.luckPerms.getPlayerAdapter(Player.class).getUser((Player) sender);
user.data().clear(NodeType.INHERITANCE::matches);
user.data().add(InheritanceNode.builder("first").build());
this.luckPerms.getUserManager().saveUser(user);

Results (ran user info before and after running the command)

Expected behaviour

Would expect it to remove all inheritance nodes with no exceptions.
Environment details

Server type/version: Paper running version 1.16.4 build 325
LuckPerms version: v5.2.61

Any other relevant details

A possible fix would be instead of adding group.default on the spot, doing it when saving the user, invalidating user cache or traversing/calculating through the inheritance tree (if there are no other inheritance nodes by the time). Just a few ideas that popped right away, I'm sure there are better solutions.

Thanks for the detailed report as always :)

repo: lucko/LuckPerms


text:
Do not apply in "world"

I'm having a hard time figuring out how to do something and I am not sure it's entirely possible without a ton of context usage which negates the promote option which would make tracks useless for me. I operate a server with 15 worlds, so adding world=world1, world=world2, etc is extremely taxing when I want to exclude just one set of worlds from the rank a player gets.
I want to put a user in a group when they're in a certain world and have it revoke their perms from the other group entirely.
Essentially I have two tracks that players follow: rank and skyrank.  When a player is in ANY world other than skyworld, I want the normal group that's in the rank track to apply to them.  This rank group often has MANY perms that the groups in the skyrank track do not have.  I have the skytier1 set with context world=skyworld, and ranktier1 as a global parent.
Example of what I have tried regarding perms:
group.ranktier1
name: ranktier1
permissions:
- group.ranktier1perms

group.skytier1
name: skytier1
permissions:
- group.ranktier1perms:
    value: false

However  when the context is met (the player is in world=skyworld) it does not remove the group.ranktier1perms from the player.  From what I read of the advanced config file the world perm should override general/global perms.  If I specifically add something like essentials.fly and put it to false that removes it, though it doesn't seem to treat groups of perms the same.
Am I missing something or is this intended not to work?
If this is not how it works, could there be a setting in the config.yml that we can set to true so world context perms override global parents entirely? Or maybe groups set to false actually recursively go through and mark all those perms as false that are inherited by that group?  Like if I have group.essentials.level1 listed in group.tier1rankperms that would then go in an mark all of the group.essentials.level1 perms false, and go through any groups that lists and so on.
And perhaps another suggestion on top of the recursive group disabling.  Add a setting to a group that makes that group only active in a certain world, that way promote and demote still work for world specific perms.  Using the context "world=" removes the ability to use promote and demote along tracks.
Something like
/lp group skyranktier1 meta world skyworld
would make it so that even if you have that group it would only apply while in skyworld. Using contexts removes the ability to use promotion tracks.

Why not assign both groups to the players, then have the permissions themselves be world-specific?
permissions:
 - group.ranktier1perms:
     value: true
     world: [your world]

If you set the world context to the permissions instead of the groups, then you could set global permissions with deny on certain worlds...

With 15 worlds that is 14 extra tags for each permission that is active on all worlds except for skyworld. While that would allow for promote/demote to work, it doesn't address the issue where group.nameofgroup set to false on a world perm is not working as other perms listed to false in that context are.

I managed to accomplish the exclusion of a world by changing the config file aliases.  I set all worlds to have the alias "normalranks" except for skyworld.  Accomplishes what I've set out to do, though I still believe adding a !worldname option would be a cleaner execution.

It's not really possible to add negated contexts.
The whole concept of contexts is deeply embedded within LuckPerms, and other systems within the plugin (and other plugins depending on LP) rely on the behaviour of it.
See:
https://github.com/lucko/LuckPerms/tree/master/api/src/main/java/me/lucko/luckperms/api/context
https://github.com/SpongePowered/SpongeAPI/tree/bleeding/src/main/java/org/spongepowered/api/service/context
I'm not sure what you mean re: the bug with aliases.
Prefixes should work fine (although that depends on how they're resolved) - the resolution of aliases happens before prefixes are queried, so nothing special has to happen there.
Weights can't be set in specific contexts, so I'm unsure what you mean by that.
(also sorry for the late reply, I've had a busy week 😢 )

Thanks for the clarification on world!= context.
As for aliases, I meant the world rewrite "aliases".
From config.yml:
# Allows you to set "aliases" for the worlds sent forward for context calculation.
#
# - These aliases are provided in addition to the real world name. Applied recursively.
# - Remove the comment characters for the default aliases to apply.
world-rewrite:
  new_nether: normal
  new_the_end: normal
  new: normal
  survival_the_end: normal
  survival_nether: normal
  survival: normal
  creative: normal
  games: normal
  world: sky
  world_nether: sky
  world_the_end: sky

When using those as context it works fine for permissions within groups.
Like:

However when the same context is applied to a prefix via the same command style

it does not seem to work. It saves it correctly, but the prefix never loads if set this way.

How is the prefix being read / displayed?
Does the correct value show when you run /lp user <user> info?

Indeed.

Thank you so much! 😄

authors: Phyther k0nker lucko


text:
Problems with locust 1.0.x

Hi,
with locust.io 1.0 somethings break, i managed to change the setup.py with:
install_requires=[
'locust>=1.0',
'influxdb>=5.2.2',
],
but loucst gives me:
File "/home/ubuntu/locust/venv/lib/python3.6/site-packages/locust_influx-0.2.4-py3.6.egg/locust_influx/init.py", line 168, in expose_metrics
TypeError: unsupported operand type(s) for +=: 'EventHook' and 'function'
Locust changed the event.py to "Eventook" from "EventHook()", which might explain the error, but why was that done?

you should use add_listener or decorator as offical doc mentioned https://docs.locust.io/en/stable/extending-locust.html.

@mglauche This changed a lot, I am working on a new pip package that you can use. For the mean time checkout my gist https://gist.github.com/pjcalvo/0f8e827125942ce644cd8d1e9b35a41e

authors: mglauche pjcalvo stevenxuwoss


text:
Discord platform implementation

Events API has not been implemented due to #40
Also:

Added a checkstyle
Moved header format methods to FormatProvider from static TextFormatter so they can be overridden (discord doesn't play nice with them)
Update Adventure to 4.9.1

still broken ._.

repo: lucypoulton/Squirtgun


text:
Command SMISMEMBER is missing from types definition

Following #1281, the built-in command SMISMEMBER is in the redis client prototype, but is missing from the @types/ioredis definitions, hence breaking compatibility with TypeScript. Using @ts-ignore as a temporary workaround.

This should be done with a PR to the https://github.com/DefinitelyTyped/DefinitelyTyped repo which is not owned by the ioredis maintainers. See https://github.com/luin/ioredis/issues/1424#issuecomment-905599767 for links to previous PRs others have made to the @types/ioredis module

This already appears to exist: https://github.com/DefinitelyTyped/DefinitelyTyped/blame/master/types/ioredis/index.d.ts#L383

The correct type definition should be
        smismember(key: KeyType, ...members: string[]): Promise<BooleanResponse[]>;

I am not super familiar with how callback support is handled for commands so there might be an additional type here.
I went and made a type update pr in DefinitelyTyped
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56945

repo: luin/ioredis


text:
Literature Review 2023 submission

Students:
Louise Leibbrandt
Nienke Nijkamp
Gaspar Rocha
George Vegelien

Hi @louisegleibbrandt
This is not following the template I provide. Can you please update your file according to the example in /_literature_review_2023/2021-author-keyword.md?

Our apologies for the many commits, but the file should be in the correct format now.

Thanks!


text:
Travis

Add travis support for the repo

Merging because tests were already failing due to missing files, which will be added in an alternate branch

repo: luiszugasti/MLHFellowshipWarmup


text:
build on Ubuntu 20.04

$ python3.10 cli.py run-editor

conan export /home/xxxxx/Spatial.Engine/vendor/filament.py filament/1.25.6@spatial/stable

usage: conan export [-h] [-v [V]] [-f FORMAT] [--name NAME] [--version VERSION] [--user USER] [--channel CHANNEL] [-r REMOTE | -nr]
[-l LOCKFILE] [--lockfile-out LOCKFILE_OUT] [--lockfile-partial] [--build-require]
path
conan export: error: unrecognized arguments: filament/1.25.6@spatial/stable
ERROR: Exiting with code: 2
-- [SPATIAL-CLI] The command returned a non-zero response.
There was an error configuring the project.
Make sure you have all system requirements installed.
See the README for more information.

Hi! I think you might be using a newer version of Conan 2.0 which I'm currently not compatible with.
Try installing conan 1.58.
I'm working to upgrade the conanfile.py for Conan 2.0 and this problem might be solved.

UPDATE: 14 Aug 2023
I've updated the build script, and now it's using Conan 2.0. The documentation is also up to date.
Could you test and see if you can successfully compile it?
Thanks!


text:
🛑 Kokeshi is down

In 2c6b529, Kokeshi (https://kokeshi.ai) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kokeshi is back up in 444e6e9.

repo: lukas-hablitzel/upptime


text:
Customize Cursor when Dragging

When dragging a tree node, the cursor is set to the copy value, which doesn't accurately represent the action I'm performing when moving a node from one section to another. I'd like to customize this value and set it to grabbing, but can't find anywhere in the source code where the value is being set to copy.
Overriding the renderDraggingItem prop on ControlledTreeEnvironment seemed to have no effect.

The icon is not explicitly defined by RTC, instead, the dataTransfer.dropEffect attribute is set when the user starts dragging, and is set to "move": https://github.com/lukasbach/react-complex-tree/blob/main/packages/core/src/interactionMode/ClickItemToExpandInteractionManager.ts#L56
The cursor that is shown in this case depends on the browser I guess, the docs for the property are here: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect
You can probably overwrite this cursor yourself with CSS, or expand the interaction manager you are using (probably ClickToExpandInteractionManager) with a new default drop effect, see https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect on that. There, you can overwrite the "onDragStart" method with something like
onDragStart: e => {
        e.dataTransfer.dropEffect = 'other-dropeffect';
        actions.startDragging();
},

repo: lukasbach/react-complex-tree


text:
Change sellable to indexed price flag

evitaDB renamed the sellable flag on prices to indexed. We need to rename all occurrences in evitaLab as well.

gRPC API is still backward compatible though

authors: lukashornych novoj

repo: lukashornych/evitalab


text:
MISSING: Conv3D for SYCL

Op file: conv_ops_3d.cc

Fixed by #133, except that some tests fail, which is likely due to Eigen::CuboidConvolution

authors: jeffmak lukeiwanski

repo: lukeiwanski/tensorflow


text:
[sourcetree] Prompts for update in app although same version already installed

Per Help -> About Sourcetree I have 3.0.17 running, installed via scoop.
In the top right I have the yellow button with white flag, Update 3.0.17 is available.

Can this be caused by the installation via scoop or is this a problem of Sourcetree itself?

Obviously scoop itself is happy:
PS C:\Users\Jan> scoop status
Scoop is up to date.
Updates are available for:
    imagemagick: 7.0.8-25 -> 7.0.8-26
Everything is ok!

Sorry, I’m not sure what the issue is here.

I installed Sourcetree via scoop.
Sourcetree thinks it is not the most recent version.
So probably Sourcetree installation done via scoop is broken in some way.

authors: janpio rasa

repo: lukesampson/scoop-extras

license: Unlicense


text:
Add go-jira

https://github.com/Netflix-Skunkworks/go-jira
go-jira is a simple command line client for Atlassian's Jira.
I have created a manifest file in my personal bucket:
https://github.com/LexSong/my-bucket/blob/master/go-jira.json
If people are interested we could merge this into the extra bucket.

Added with https://github.com/lukesampson/scoop/commit/a2348b858ca52f741ff7f04b86a53094d7a54f8c


text:
Request: automatically remove outdated manifests from cache?

I hate wasted PC space.
After a "scoop update-all", I run "scoop cleanup-all". But that still leaves outdated manifests in scoop\cache. Some of them are not small, either.
It is a bore to have to go there and weed them out.
Is there an automatic way of doing this, please?

example, try to put these in powershell profile:
$scoop_cache_rm_condition = (Get-Date).DayOfWeek -eq "Monday"
$scoop_cache_remover_files = "~\scoop\cache\*"
if ($scoop_cache_rm_condition) {
    Remove-Item $scoop_cache_remover_files -Force -Recurse | Out-Null
}

the scoop cache will be deleted, when you open a powershell in Sunday.

example, try to put these in powershell profile:
$scoop_cache_rm_condition = (Get-Date).DayOfWeek -eq "Monday"
$scoop_cache_remover_files = "~\scoop\cache\*"
if ($scoop_cache_rm_condition) {
    Remove-Item $scoop_cache_remover_files -Force -Recurse | Out-Null
}

the scoop cache will be deleted, when you open a powershell in Sunday.

authors: HUMORCE umbellipher

repo: lukesampson/scoop

license: unlicense


text:
Training question

Hi, I'm interested in your work and I'm trying to retrain it.
I see that you provide a command to train in multiple GPU with this:
./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM} [optional arguments]

but I don't know what config file you mention in the command. Can you tell me more detail about it?

I have notice that you use COCO format for the dataset. So I export Carfusion Dataset to COCO Format and training with only CarFusion. The MSE Loss is always at 0.003 and doesn't change during training time.

In Usage, we provide an example of the command that you mentioned. Please refer to it for more details.
For training loss, it should decrease until convergence (maybe around 0.003). Kindly note that training and testing on a single category is an easier setting than our proposed Category-Agnostic Pose Estimation (CAPE), which will make the model coverage faster. Please check acc_pose (that is similar to the metric PCK) to see whether the training process is normal.

@luminxu for the training part, I did train your method using CarFusion dataset, and it's okay. For the second part of your response, the mse loss during training is 0.003 and it doesn't change. By the way, I checked the acc_pose logged while training and it is about 0.33 😢😢😢
That's so weird... my assumption for this is because of the dataloader. I will verify it and note if there is a bug. Thank your for responding.

Hi Trung, just come across your issue. I think Carfusion seems tricky in the pre-process as my experiment, if you train on single category, I suggest checking the num_queries variable or using another dataset (ex: 300W, AFLW, etc) to test first cuz it's not too large. After a while play with the full data and make some small adjustments, here is my training log at epoch 3 for your reference.

Hope it help

@PhanThanhTrung
Hi, could you please tell me how to train this model with only one dataset? I want to use only COCO dataset to train this model but I failed.  I would be so grateful for a response.

authors: PhanThanhTrung liza-li luminxu tuanho27

repo: luminxu/Pose-for-Everything


text:
[2023 Case Failed]:

base on:
description: git clone后在docker中运行bahs build.sh init，之后运行bash build.sh编译时docker容器总是CPU占用过高，最后整个docker卡死，后来把build.sh换成
“https://github.com/oceanbase/miniob”
这个仓库里的build.sh，可以编译完成，但是启动./build_debug/bin/observer之后闪退，显示无法初始化线程池和seda stage，应该怎么解决？seda相关的头文件应该从哪里获取？我看源码里很多地方include了这个头文件

没遇到过这些问题
请参考官方文档：

如何编译 - MiniOB
使用Docker开发MiniOB - MiniOB

可以编译完成，但是启动./build_debug/bin/observer之后闪退，显示无法初始化线程池和seda stage，应该怎么解决？seda相关的头文件应该从哪里获取？我看源码里很多地方include了这个头文件

可以去官方仓库提 issue New Issue · oceanbase/miniob


text:
Install pyCapsid in UM HPC

Install pyCapsid in the UM HPC (IDSC).
Try Pegasus and Triton.
Identify difficulties during the installation.
Coordinate with the IDSC team to address issues.
Document the process.

Update

[x] Pycasid installed + tested in UM HPC Pegasus
[ ] - it could not be installed in UM HPC Triton

Details

Triton's architecture is a linux-ppc64le" for which some dependencies either generate conflicts (numba, numpy, scipy, scikit-learn, statsmodels) or are missing (biotite). Conflictive dependencies could be solved by specifying the versions within a conda environment, but biotite issue could not be solved. Biotite has no ppc64le version pre-built but it also could not be compiled from source as it needs GCC >= 8.4, not available in Triton. As per suggested in biotite's documentation, a specific conda env can be used to compile, unfortunately this strategy fails as the environment itself is not solvable within Triton's architecture.
The dependencies could be compiled manually, however this generates a very unfavorable tradeoff for the maintenance and compatibility of the installation, since manual compilation at various levels would be required.

WIP

[ ] Writing documentation for the installation steps followed in UM HPC Pegasus

repo: luquelab/pyCapsid


text:
🛑 GA4 Cheatsheet is down

In b7ca595, GA4 Cheatsheet (https://data.ga4spy.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GA4 Cheatsheet is back up in 63a40a4.

repo: luratic-devs/upptime


text:
Fix tutorial links

Links currently go to /tutorial when the correct path is /docs/tutorial. The feedback link also currently goes to a 404.

Just installed this plugin and ran into the problem you're fixing here—the link to tutorial results in a 404. @lusakasa this seems like a good contribution to merge!

Thanks for the fixes!

authors: UnsolvedCypher eejdoowad obar

repo: lusakasa/saka-key


text:
Lutece 2193

Move DosGuard upload filter configuration from web.xml to lutece.properties

Bonjour,
J'ai un problème au niveau de la gestion des fiches de l'annuaire au niveau de l'application  lutece. Quand je crée un nouveau annuaire et je clique sur gérer un fichier (le symbole +: créer une fiche) , un message d'erreur s'affiche comme mentionné ci dessous:
Internal error.
Veuillez contacter immédiatement l'administrateur de l'application.
Je suis en phase d'apprentissage,merci de me proposer vos solutions pour résoudre ce problème récurent.
Je vous remercie pour votre collaboration

hi @rhitallali , https://fr.lutece.paris.fr/fr/jsp/site/Portal.jsp?page=suggest&id_suggest=1&id_suggest_submit=1569&action=view_suggest_submit#suggest1569 is the correct place to ask questions

authors: jonenst rhitallali seboo

repo: lutece-platform/lutece-core


text:
Create VSCode Extension

Consider making this a VSCode Extension as mentioned here:

Additionally this could be made into a vscode extension which automatically injects it into sumneko's lua:
https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Libraries
Originally posted by @Vurv78 in https://github.com/Lexicality/libgmod/issues/3#issuecomment-1007054909

Would be very much appreciated

Would be very much appreciated,
Also fyi probably want to recommend lua language server instead of the old emmylua extension in your readme, even if the annotations are not 1:1 they mostly add onto it rather than change it, so you could keep the annotations functional across editors.

Heya, thanks for the heads-up! I'll make an issue for it so I don't forget.

When this PR is merged: https://github.com/LuaLS/LLS-Addons/pull/49 I will:

[ ] Update readme to add installation instructions (using Lua Language Server Addon manager)
[ ] Add note to readme pointing out how to contribute. Especially instructions so anyone can help update the subrepo at LLS-Addons
[ ] Close this issue

repo: luttje/glua-api-snippets


text:
Remove redundant CMake policy change

Default since CMake 3.1

Thanks!

repo: luvit/luv


text:
R2 geometry

issue

#6

eps の実装していないので unit test サボってる

微塵も実装していない draft の PR に approve 出すのやめろ

整数幾何の設計に合わせて template で実装したけど $\epsilon$ とか $\pi$ とかの設計が難しい気がしている

scoped enum 使うとキャスト周りで面倒になるかな　雑にキャストできるように変えられるんだっけ

c++ よくわからんな

値に意味を持たせたいときに enum を使うのはあんまり良くはないのかもしれないという雰囲気も感じる
じゃあどうしたらいいんだろうねと言われると…………

namespace luz {
namespace R2 {
namespace sign {
  constexpr i32 NEGATIVE = -1;
  constexpr i32 ZERO = 0;
  constexpr i32 POSITIVE = +1;
}
}
}

みたいにするとか？　変に sign とかに分けずに numbers に置いてもいいかもしれないけど位置関係の判定のときとかに困るかもしれない

clang-format を導入したんでしたね　そういえば

enum 問題についてなんですが、
namespace luz::R2::impl_sign {
  constexpr i32 NEGATIVE = -1
  ...

  i32 sign(R x) {
    ...
  }
} // namespace luz::R2::impl_sign

namespace luz::R2 {
  i32 sign(R x) {
    return impl_sign(x);
  }
} // namespace luz::R2

みたいにするのはどうかなあと思っているんだよね

なるほどねえ

https://cpprefjp.github.io/reference/numbers/phi.html
に近い実装にしようかなという気分になったんだった
定数どもは namespace luz::R2::numbers とかにでも置きますか

え？
https://luzhiled1333.github.io/comp-library/src/geometry/Z2/constants/ccw-constants.hpp

え？

え？

https://github.com/luzhiled1333/comp-library/blob/280da8087da28f21bd87442f318eaf681a3c8e8c/src/geometry/Z2/constants/ccw-constants.hpp#L3

まあこっちを luz::Z2::numbers::ccw に変更すればええな

5億年前の手元の変更を push したら clang-format で落ちる(2敗)

Faild!?

main をマージしたら解決しそうか　さすがに

落ちました　対戦ありがとうございました

E: Unable to locate package clang-format-16
Error: Process completed with exit code 100.
おい　うし　助けて

いや、いま仕事をしてるな

E: Unable to locate package clang-format-16ってなーんだ？　何

CI落ちてます

よくわからんくなってきた場合の解決方法: もう一つ PR を立てる

もう一つ PR を立てたところ、壊れました　完

apt-get updateを呼び出すと良いらしいです

https://github.com/luzhiled1333/comp-library/blob/280da8087da28f21bd87442f318eaf681a3c8e8c/.github/workflows/format.yml#L18

笑

じゃあ単純にパッケージが消滅したのかな

あ　main マージしてねえ

うし
@svjetlol
class 周りだけ実装して一旦 merge しますか
10:42pm · 2 Feb 2023 · TweetDeck

うし @svjetlol
14s
PR に書けや
Reply
Retweet
Like
More options
ei133333's avatar
ねねっちー @ei133333
12s
いいね
Reply
Retweet
Like
More options
svjetlol's avatar
うし @svjetlol
14s
class 周りだけ実装して一旦 merge しますか
Reply
Retweet
1Like
More options
svjetlol's avatar
うし @svjetlol
28s
OK
Reply
Retweet
1Like
More options
ei133333's avatar
ねねっちー @ei133333
38s
struct Polygon
Reply
Retweet
1Like
More options
svjetlol's avatar
うし @svjetlol
1m
ところでこれ幾何って何がほしいんでしたっけ　うしさんは

すいません　思考が

lien

equals() 定義したんですが、Vector に operator== を実装するのはちょっとなあという気分になってきた
楽ではあると思うけど誤差を考慮した上で一致するかどうかなのでこっちも equals にしたほうがいい気がする

Z2 の Vector に operator== がありますが大丈夫そうですか

Z2 の Vector に operator== があったのでコメントアウトして書いてあったみたいなところがある

一旦 class 周りは実装したと思うのでこの PR ではここまでにしようかなと思います
ドキュメントとかもまた後で書くかな

review してみて問題なさそうだったら merge してください

LGTM

branch 残っちゃってたので消します


text:
Fix usleep call in modfb

The unit for usleep is microseconds, so the argument should be 1000 to sleep for 1 millisecond.

Looks correct to me. Thanks!

authors: darchons embeddedt


text:
Up-to-date vagrant/kvm/ec2 lxd host images

Would be great if there was an official LXD host virtual machine image, which is kept up-to-date with LXD preinstalled, for example using packer templates (http://packer.io), and which outputs at least vagrant virtualbox+vmware box files.
I guess ubuntu cloud server or ubuntu server wily would be a good base?
Also, this machine image could implement lxd config best practices, like btrfs for /var/lib/lxd and would give a plug-and-play experience.
This is similar to boot2docker, docker machine etc. Make it easy to run LXD on virtualbox+vmware.

So we've got vagrant support in tree, isn't that sufficient?

Only seems to support virtualbox, not vmware:
vagrant up --provider=vmware_fusion
fails because the ubuntu/trusty64 is a virtualbox-only build. That goes for all official ubuntu images on vagrant cloud it seems.
Also, it's based on Ubuntu 14.04, which is a bit old, and no btrfs.
I'm trying to run it now by changing the base box to box-cutter/ubuntu1404

https://github.com/lxc/lxd/pull/1028

Branch merged, closing this issue. Thanks!

authors: rrva stgraber

repo: lxc/lxd