text:
Replace libcudart.so with PyTorch's CUDA APIs

This PR resolves #264
I have been struggling with using bitsandbytes on my environment: nvcr.io/nvidia/pytorch:22.05-py3 image running on docker. When running nvidia-smi, it successfully detects a GPU device.
work@main1[bitsandbytes-torch]:~$ nvidia-smi
Wed Apr 26 01:27:29 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.216.04   Driver Version: 450.216.04   CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  CUDA GPU            On   | 00000000:90:00.0 Off |                    0 |
| N/A   32C    P0    58W / 400W |     48MiB /  1689MiB |      0%      Default |
|                               |                      |             Disabled |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

However, it fails to detect a GPU device when trying to import bitsandbytes.
work@main1[bitsandbytes-torch]:~$ python
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bitsandbytes

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/work/.local/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/home/work/.local/lib/python3.8/site-packages/bitsandbytes/cextension.py:33: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
/home/work/.local/lib/python3.8/site-packages/bitsandbytes/cuda_setup/main.py:145: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/usr/local/nvidia/lib64'), PosixPath('/usr/local/cuda/extras/CUPTI/lib64'), PosixPath('/usr/local/nvidia/lib'), PosixPath('/usr/local/cuda/lib'), PosixPath('/usr/local/cuda-11.6/include')}
  warn(msg)
CUDA exception! Error code: OS call failed or operation not supported on this OS
CUDA exception! Error code: initialization error
CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so
/home/work/.local/lib/python3.8/site-packages/bitsandbytes/cuda_setup/main.py:145: UserWarning: WARNING: No GPU detected! Check your CUDA paths. Proceeding to load CPU-only library...
  warn(msg)
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/work/.local/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cpu.so...

After an investigation, I found that it fails to execute libcudart.cudaGetDeviceCount() after libcuda.cuInit() with error code 304 - which means "OS call failed or operation not supported on this OS".
https://github.com/TimDettmers/bitsandbytes/blob/9e7cdc9ea95e9756d9f5621a0e2c7e2538363fae/bitsandbytes/cuda_setup/main.py#L345
work@main1[bitsandbytes-torch]:~/.local/lib/python3.8/site-packages/bitsandbytes$ python
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> libcuda = ctypes.CDLL("libcuda.so")
>>> libcudart = ctypes.CDLL("libcudart.so")
>>> count = ctypes.c_int()
>>> libcuda.cuInit(0)
0
>>> libcudart.cudaGetDeviceCount(ctypes.byref(count))
304

While I was looking for a way to solve this problem, I found that PyTorch provides similar APIs which work like a charm on my machine. So I replaced several libcuda or libcudart related commands with torch ones - I think it would be okay since bitsandbytes already has a dependency on torch.
work@main1[bitsandbytes-torch]:~$ python
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch._C._cuda_getCompiledVersion(), torch.version.cuda, torch.cuda.device_count()
(11070, '11.7', 1)

The origin from my branch works like below:
work@main1[bitsandbytes-torch]:~/.local/lib/python3.8/site-packages/bitsandbytes$ python
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bitsandbytes

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/work/.local/lib/python3.8/site-packages/bitsandbytes/bitsandbytes/libbitsandbytes_cuda117.so
/home/work/.local/lib/python3.8/site-packages/bitsandbytes/bitsandbytes/cuda_setup/main.py:145: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/usr/local/cuda/lib'), PosixPath('/usr/local/nvidia/lib64'), PosixPath('/usr/local/cuda-11.6/include'), PosixPath('/usr/local/nvidia/lib'), PosixPath('/usr/local/cuda/extras/CUPTI/lib64')}
  warn(msg)
CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 11.7
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/work/.local/lib/python3.8/site-packages/bitsandbytes/bitsandbytes/libbitsandbytes_cuda117.so...
>>>

Thanks. Maybe this works for me.
My system

Ubuntu 20.04(NOT WSL)
RTX 3090
CUDA 11.7

Add this to my .bashrc.
(result of find / -name libcuda.so 2>/dev/null)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/expbox77/miniconda3/envs/textgen/lib/stubs/:/usr/lib/x86_64-linux-gnu/stubs/:/usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs/

Interestingly, python -m bitsandbytes does not work properly in the home directory.
(textgen) expbox77@expbox-ai:~$ python -m bitsandbytes

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/cuda_setup/main.py:145: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so.11.0'), PosixPath('/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so')}.. We'll flip a coin and try one of these, in order to fail forward.
Either way, this might cause trouble in the future:
If you get `CUDA error: invalid device function` errors, the above might be the cause and the solution is to make sure only one ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] in the paths that we search based on your env.
  warn(msg)
CUDA SETUP: CUDA runtime path found: /home/expbox77/miniconda3/envs/textgen/lib/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 8.6
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++ ANACONDA CUDA PATHS ++++++++++++++++++++
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/gptq_llama/quant_cuda.cpython-310-x86_64-linux-gnu.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/quant_cuda-0.0.0-py3.10-linux-x86_64.egg/quant_cuda.cpython-310-x86_64-linux-gnu.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libc10_cuda.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libtorch_cuda_linalg.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so
/home/expbox77/miniconda3/envs/textgen/lib/stubs/libcuda.so
/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-glibc_2_11_3-x64/libcuda-injection.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-glibc_2_19_0-ppc64le/libcuda-injection.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-t210-a64/libcuda-injection.so

++++++++++++++++++ /usr/local CUDA PATHS +++++++++++++++++++
/usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs/libcuda.so
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudart.so

Traceback (most recent call last):
  File "/home/expbox77/miniconda3/envs/textgen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/expbox77/miniconda3/envs/textgen/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/__main__.py", line 95, in <module>
    generate_bug_report_information()
  File "/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/__main__.py", line 60, in generate_bug_report_information
    paths = find_file_recursive(os.getcwd(), '*cuda*so')
  File "/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/__main__.py", line 37, in find_file_recursive
    raise RuntimeError('Something when wrong when trying to find file. Maybe you do not have a linux system?')
RuntimeError: Something when wrong when trying to find file. Maybe you do not have a linux system?

But when I'm in any directory, python -m bitsandbytes seems to work normally.
(textgen) expbox77@expbox-ai:~/test$ python -m bitsandbytes

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/cuda_setup/main.py:145: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so.11.0'), PosixPath('/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so')}.. We'll flip a coin and try one of these, in order to fail forward.
Either way, this might cause trouble in the future:
If you get `CUDA error: invalid device function` errors, the above might be the cause and the solution is to make sure only one ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] in the paths that we search based on your env.
  warn(msg)
CUDA SETUP: CUDA runtime path found: /home/expbox77/miniconda3/envs/textgen/lib/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 8.6
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++ ANACONDA CUDA PATHS ++++++++++++++++++++
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/gptq_llama/quant_cuda.cpython-310-x86_64-linux-gnu.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/quant_cuda-0.0.0-py3.10-linux-x86_64.egg/quant_cuda.cpython-310-x86_64-linux-gnu.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libc10_cuda.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/torch/lib/libtorch_cuda_linalg.so
/home/expbox77/miniconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes-0.38.0-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so
/home/expbox77/miniconda3/envs/textgen/lib/stubs/libcuda.so
/home/expbox77/miniconda3/envs/textgen/lib/libcudart.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-glibc_2_11_3-x64/libcuda-injection.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-glibc_2_19_0-ppc64le/libcuda-injection.so
/home/expbox77/miniconda3/envs/textgen/nsight-compute/2022.2.0/target/linux-desktop-t210-a64/libcuda-injection.so

++++++++++++++++++ /usr/local CUDA PATHS +++++++++++++++++++
/usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs/libcuda.so
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudart.so

+++++++++++++++ WORKING DIRECTORY CUDA PATHS +++++++++++++++

++++++++++++++++++ LD_LIBRARY CUDA PATHS +++++++++++++++++++
 /home/expbox77/miniconda3/envs/textgen/lib/stubs/ CUDA PATHS
/home/expbox77/miniconda3/envs/textgen/lib/stubs/libcuda.so
+++++++ /usr/lib/x86_64-linux-gnu/stubs/ CUDA PATHS ++++++++
/usr/lib/x86_64-linux-gnu/stubs/libcuda.so
 /usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs/ CUDA PATHS
/usr/local/cuda-11.7/targets/x86_64-linux/lib/stubs/libcuda.so

++++++++++++++++++++++++++ OTHER +++++++++++++++++++++++++++
COMPILED_WITH_CUDA = True
COMPUTE_CAPABILITIES_PER_GPU = ['8.6', '8.6']
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++ DEBUG INFO END ++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Running a quick check that:
    + library is importable
    + CUDA function is callable

WARNING: Please be sure to sanitize sensible info from any such env vars!

SUCCESS!
Installation was successful!

@TimDettmers Hi! It seems that the main branch has been overwritten with force-pushed commits.
May I open a new PR with the same changes -- converting libcudart APIs to torch.cuda ones? It would be a glad if you share your opinions. Thanks!

Thank you for this and sorry for being slow on this. This has been merged with #375

authors: TimDettmers expbox77 rapsealk

repo: TimDettmers/bitsandbytes


text:
No sequence parsing for genbank files exported from Snapgene

Describe the bug
Genbank files exported by Snapgene have no sequence output in their JSON files.
To Reproduce
puc19.gbk
puc19_snapgene.gb
puc19.json
puc19_snapgene.json
$ cat puc19.gbk | poly c -i gb -o json > puc19.json
$ cat puc19_snapgene.gb | poly c -i gb -o json > puc19_snapgene.json
cat puc19.json | jq ".Sequence.Sequence"
$ cat puc19.json | jq ".Sequence.Sequence"
"gagatacctacagcgtgagctatgagaaagcgccacgcttcccgaagggagaaaggcggacaggtatccggtaagcggcagggtcggaacaggagagcgcacgagggagcttccagggggaaacgcctggtatctttatagtcctgtcgggtttcgccacctctgacttgagcgtcgatttttgtgatgctcgtcaggggggcggagcctatggaaaaacgccagcaacgcggcctttttacggttcctggccttttgctggccttttgctcacatgttctttcctgcgttatcccctgattctgtggataaccgtattaccgcctttgagtgagctgataccgctcgccgcagccgaacgaccgagcgcagcgagtcagtgagcgaggaagcggaagagcgcccaatacgcaaaccgcctctccccgcgcgttggccgattcattaatgcagctggcacgacaggtttcccgactggaaagcgggcagtgagcgcaacgcaattaatgtgagttagctcactcattaggcaccccaggctttacactttatgcttccggctcgtatgttgtgtggaattgtgagcggataacaatttcacacaggaaacagctatgaccatgattacgccaagcttgcatgcctgcaggtcgactctagaggatccccgggtaccgagctcgaattcactggccgtcgttttacaacgtcgtgactgggaaaaccctggcgttacccaacttaatcgccttgcagcacatccccctttcgccagctggcgtaatagcgaagaggcccgcaccgatcgcccttcccaacagttgcgcagcctgaatggcgaatggcgcctgatgcggtattttctccttacgcatctgtgcggtatttcacaccgcatatggtgcactctcagtacaatctgctctgatgccgcatagttaagccagccccgacacccgccaacacccgctgacgcgccctgacgggcttgtctgctcccggcatccgcttacagacaagctgtgaccgtctccgggagctgcatgtgtcagaggttttcaccgtcatcaccgaaacgcgcgagacgaaagggcctcgtgatacgcctatttttataggttaatgtcatgataataatggtttcttagacgtcaggtggcacttttcggggaaatgtgcgcggaacccctatttgtttatttttctaaatacattcaaatatgtatccgctcatgagacaataaccctgataaatgcttcaataatattgaaaaaggaagagtatgagtattcaacatttccgtgtcgcccttattcccttttttgcggcattttgccttcctgtttttgctcacccagaaacgctggtgaaagtaaaagatgctgaagatcagttgggtgcacgagtgggttacatcgaactggatctcaacagcggtaagatccttgagagttttcgccccgaagaacgttttccaatgatgagcacttttaaagttctgctatgtggcgcggtattatcccgtattgacgccgggcaagagcaactcggtcgccgcatacactattctcagaatgacttggttgagtactcaccagtcacagaaaagcatcttacggatggcatgacagtaagagaattatgcagtgctgccataaccatgagtgataacactgcggccaacttacttctgacaacgatcggaggaccgaaggagctaaccgcttttttgcacaacatgggggatcatgtaactcgccttgatcgttgggaaccggagctgaatgaagccataccaaacgacgagcgtgacaccacgatgcctgtagcaatggcaacaacgttgcgcaaactattaactggcgaactacttactctagcttcccggcaacaattaatagactggatggaggcggataaagttgcaggaccacttctgcgctcggcccttccggctggctggtttattgctgataaatctggagccggtgagcgtgggtctcgcggtatcattgcagcactggggccagatggtaagccctcccgtatcgtagttatctacacgacggggagtcaggcaactatggatgaacgaaatagacagatcgctgagataggtgcctcactgattaagcattggtaactgtcagaccaagtttactcatatatactttagattgatttaaaacttcatttttaatttaaaaggatctaggtgaagatcctttttgataatctcatgaccaaaatcccttaacgtgagttttcgttccactgagcgtcagaccccgtagaaaagatcaaaggatcttcttgagatcctttttttctgcgcgtaatctgctgcttgcaaacaaaaaaaccaccgctaccagcggtggtttgtttgccggatcaagagctaccaactctttttccgaaggtaactggcttcagcagagcgcagataccaaatactgttcttctagtgtagccgtagttaggccaccacttcaagaactctgtagcaccgcctacatacctcgctctgctaatcctgttaccagtggctgctgccagtggcgataagtcgtgtcttaccgggttggactcaagacgatagttaccggataaggcgcagcggtcgggctgaacggggggttcgtgcacacagcccagcttggagcgaacgacctacaccgaact"
$ cat puc19_snapgene.json | jq ".Sequence.Sequence"
""

Expected behavior
puc19_snapgene.gb sequence output should be the same as puc19.gbk.
Desktop (please complete the following information):

OS: Arch linux

Additional context
Add any other context about the problem here.

@Koeng101 can you push your test files onto a branch so I can reproduce and debug this?

https://github.com/Koeng101/poly/tree/bug_%2324
in ./data/test_files

Just ran git diff --no-index puc19.gbk puc19_snapgene.gb to get a better idea of the difference between these two files.

It looks like the snapgene export function uses carriage returns instead of newlines. This may be causing some problem but I'm not really sure. The parser silently fails on being unable to parse the sequence string. We should probably add a warning somewhere.

The carriage returns were adding whitespace which caused a switch statement to fail. One line fix in #27.

This is been fixed with 08f5e21.

source: gharchive/issue

repo: TimothyStiles/poly

license: MIT

license_type: permissive

license_source: github-api


text:
refactor(cdk): language specific character inside id attribute

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Refactoring
[ ] Build or CI related changes
[ ] Documentation content changes

What is the current behavior?
Closes #4045

@waterplea @nsbarsukov @vladimirpotekhin  please review me

source: gharchive/pull-request

repo: Tinkoff/taiga-ui


text:
Field validation

Did not see custom validation of fields except types.  For example here https://marshmallow.readthedocs.io/en/stable/quickstart.html#validation .  For example, expect a certain length or a certain value from a list of valid.  Also multiple validation of one field, for example a password field

https://paste.ubuntu.com/p/vBqDSTkNsP/

https://pydantic-docs.helpmanual.io/usage/validators/

separate decorator validate_any instead of "*" as field name
pass field name, value to validator
validator can change value
we don't need root_validator because we have post_parse

Can you write example about this in docs, if this feature already in?

Can you write example about this in docs, if this feature already in?

Not yet. Just writing some thoughts on github

Can we use two validators for one field?


text:
Failed Installation

Elysium fails to download enb series.
should i wait until the mod list gets an update or can i fix it myself?

Dyndolod 3D Output Failed downloead too

Wabbajack.current.log
heres the current log file

repo: TitansBane/Elysium


text:
Cron tasks not being spawned

I have django combined with Docker. django-cron is installed & configured, but the process of invoking it is pretty much random.
Whenever I do stop the docker image, and after making the necessary changes turn it on, django-cron is not being launched, even tho I do have following line in my Docker's entrypoint script:
python manage.py runcrons --force
crontab cron_jobs

cron_jobs:
*/5 * * * * cd /usr/src/ && python /usr/src/manage.py runcrons > /var/log/cron

Hi @Lynaj. This is more a cron/docker configuration issue, and not specific to django-cron.
That said, I'm not a docker expert and the way I've worked around it is to add cron to the CMD.

authors: Lynaj rpkilby

repo: Tivix/django-cron

license: mit

license_source: bigquery


text:
광범위한 데이터 깨짐

버그에 대한 설명
#3 재현 중 발견.
이전에 정상 출력되던 문자열이 광범위하게 깨지고 있음. 원인은 메모리 정렬 어긋남.
재현 방법
N/A
스크린샷

기대결과
스크린샷 기준으로

문장이 한 줄만 나와야 함
깨진 글자가 있어서는 안 됨

실행 환경:

패치 버전: v1.0.1 이후 발생 ?

v0.2.1 패치에서 수정 완료.

하멘츠마을 월트집 2층 가면
이벤트가 다 생략되고 이상한 대화 몇번 나오다 바로 밥먹는장면으로 넘어가졌었는데
0.2.1 패치 이후로 정상적으로 진행되네요

repo: ToD-DC-Kor/kor-patch


text:
Import all modules from Python space to help cx_Freeze et al.

To build an executable from a Python script using cx_Freeze, you do something like this:
pip3 install cx_Freeze
cxfreeze test.py
dist/./test

If we try to do this for a simple script that imports fiona, it raises an error as not all of the modules used are detected automatically. This can be worked around by manually telling cx_Freeze which modules to import. http://cx-freeze.readthedocs.org/en/latest/faq.html#problems-with-running-frozen-programs
This happens because some of the modules are only called from the Cython extensions, which cx_Freeze can't parse. We could make this easier for the user by making sure all of the modules used are imported from Python space. This shouldn't add any overhead, as the modules are already imported elsewhere.
This should help similar tools, such as PyInstaller and py2exe, although I've not tested them.
The same issue exists for rasterio, and could be rectified in the same manner (again, haven't tested yet).

Coverage increased (+0.05%) to 72.16% when pulling 2ac751802860fa7321bcb99f71076c41f44ebfb7 on snorfalorpagus:cx_Freeze into 86283e09157404ad90147da6125e7c08c1e973aa on Toblerity:master.

Coverage decreased (-0.04%) to 72.07% when pulling 2ac751802860fa7321bcb99f71076c41f44ebfb7 on snorfalorpagus:cx_Freeze into 86283e09157404ad90147da6125e7c08c1e973aa on Toblerity:master.

:+1:

authors: coveralls sgillies snorfalorpagus

repo: Toblerity/Fiona


text:
Cleanup code

remove unsued imports and parameters etc.

#1 and #2 should be included in this issue.

authors: nicognaW shaokeyibb

repo: Toktik-Team/toktik


text:
[Feature] Filtering

No filters queries added.

Filtering added to graphql

repo: Tolfix/cpg-api


text:
ENOENT: no such file or directory, open '/opt/build/repo/public/{{ .ConfirmationURL }}'

The following error is happening in some builds:
Inlining sources failed.
ENOENT: no such file or directory, open '/opt/build/repo/public/{{ .ConfirmationURL }}'
    fs.js:458:3 Object.openSync
    fs.js:360:35 Object.readFileSync
    /opt/buildhome/.netlify-build-plugins/node_modules/inline-source/lib/load.js:19:41
    /opt/buildhome/.netlify-build-plugins/node_modules/inline-source/lib/load.js:12:10 load
    /opt/buildhome/.netlify-build-plugins/node_modules/inline-source/lib/run.js:17:17
    /opt/buildhome/.netlify-build-plugins/node_modules/inline-source/lib/run.js:14:13 run
    /opt/buildhome/.netlify-build-plugins/node_modules/inline-source/index.js:44:15
    internal/process/task_queues.js:97:5 processTicksAndRejections

The repository is here.
The build logs do not show any additional information unfortunately.
Do you know what the error might be?

Somehow an URL wasn’t properly templated and it tried to load {{ .ConfirmationURL }} as if it was a file. Since the plugin runs on postBuild, the user properly hadn’t set up their build properly in the first place.
It seems like the repo is using yellowcake, which uses this ConfirmationURL in a lot of templates. https://github.com/thriveweb/yellowcake/search?q=confirmationurl&unscoped_q=confirmationurl

Thanks for looking into this.
So it looks like this is an user error, right?
If so, I think the current error handling logic is proper: catching the error and reporting it as a user error with utils.build.failBuild(). I.e. this issue can be closed?

Yup! Closing.

authors: Tom-Bonnike ehmicky


text:
CSS universal selector is too aggressive

Hi. Thank you for the great work!
This CSS rule seems to be too aggressive and affects other parts of the page:
* {
  padding: 0;
  margin: 0;
  top: 0;
  left: 0;
}

In my case it broke the positioning of the element with position: absolute and right: 0.

I guess you are right (also about the great work) and this could be changed to #main
BTW you may not need it at all, it is just for the nice looking full-page demo.

authors: Beuf red-meadow


text:
Is this project alive?

Just trying to figure out if I should keep it building / patching in Fedora or just retire and recommend people to use starship :)

Yes, it's alive and I'm using it daily, but I no longer do any development since it's feature complete for me.
Also my January and February were so crazy that I did not have any time to spend on my projects, that's why I'm replying right now.
I hope to look into Fedora builds and dependencies in coming days/weeks.
Thanks for taking care of it Fedora!

authors: TomasTomecek ignatenkobrain

repo: TomasTomecek/pretty-git-prompt


text:
🛑 VTP.XYZ is down

In a883f27, VTP.XYZ (https://vtp.xyz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VTP.XYZ is back up in 03a998d.

repo: TomsProject/uptime


text:
🛑 VTP.XYZ is down

In 6cbe650, VTP.XYZ (https://vtp.xyz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VTP.XYZ is back up in a1fc6a3.


text:
How do I use EXT Token Tool to create NFT?

How do I use EXT Token Tool to create NFT?
any tools？

We are developing tools for this:
-A CLI tool for minting
-A JS library
-Web-based frontend
Can you let me know what type of data you want to store in your NFTs? Currently we are just storing bytes of data ([Nat8]/Blob/UInt8Array/Hex) which can be anything, from an image, to audio or video.

We are developing tools for this:
-A CLI tool for minting
-A JS library
-Web-based frontend
Can you let me know what type of data you want to store in your NFTs? Currently we are just storing bytes of data ([Nat8]/Blob/UInt8Array/Hex) which can be anything, from an image, to audio or video.

How does Cronics do it? Are there similar tools or tutorials

I built Cronics, so I have all the tools, they are just not ready for release but if you let me know I can work directly with you to get it going sooner. Tools will be available end of August at this stage

I built Cronics, so I have all the tools, they are just not ready for release but if you let me know I can work directly with you to get it going sooner. Tools will be available end of August at this stage

Okay, I want to build an nft similar to CryptoKitties. Hope your tool can be as simple and easy to use as EXT Token Tool

OK so do you just want to set random bytes as the metadata for each NFT? How will you do breeding? That's outside of the scope of our tools and requires custom canister development.

OK so do you just want to set random bytes as the metadata for each NFT? How will you do breeding? That's outside of the scope of our tools and requires custom canister development.

I am thinking whether it can be modified in the EXT Token Tool, such as adding an upload attachment (picture or video, etc.) to generate nft.
At the same time, I read your wallet code, it seems that only Cronics is currently supported, which is not flexible

Our wallet supports all EXT tokens. If you want to list on the marketplace we need to verify what you are selling. You need to convert whatever you want to store into hex and store the hex on chain. You can convert any file to hext

Our wallet supports all EXT tokens. If you want to list on the marketplace we need to verify what you are selling. You need to convert whatever you want to store into hex and store the hex on chain. You can convert any file to hext

ok，thanks for your answers。I would like to ask how did you implement the EXT Token Tool?

@stephenandrews Can you provide an example of what the meta data should look like for this?
If it is an image https://github.com/Toniq-Labs/extendable-token/blob/main/examples/erc721.mo
I created a canister with this code, mintedNFT and tried it in Stoic. Nothing is shown.

dfx canister call erc721 mintNFT "(record { to = (variant { "principal" = principal "myPrinciple" }); "metadata" = blob "p5c7b-o" }
Still does not work. Maybe that blob should just be text. Users can add JSON objects in there for whatever they like.
{image: 'base image data', name: 'name', etc} not sure what the benefit of using Blob is if the metadata is not always image / other types of actual data.

How does lock and settle work?

repo: Toniq-Labs/stoic-wallet


text:
Pin number and fingerprint screen show in login again

Testing and reporting process: https://www.notion.so/tonomy-foundation/Tonomy-ID-3960924e3e324c28b5a11ba465c22a99?p=4a084f9e43df413695425289ca017446&showMoveTo=true
Steps to replicate the issue

I open app for the first time
I click through the three splash screens
I press on "Create Account" button on the Create account screen
I setup the pin number and confirm pin and then i skip the fingerprint screen
I go to user home and then from sidebar menu i logout
I go to login and enter the username password
It again show me pin number and confirm pin screen

What do you expect to happen?

When we login we don't need to show the pin number screen again

Operating system: Android 11

this is not a bug, this is the intended behaviour. Because the PIN and Biometric data are stored locally on the device only, if you log out then that data is no longer available and it needs to be recreated. That is why every time you log in again you (optionally) need to create a new PIN and biometrics If you want to use these.

authors: sadiabbasi theblockstalk

repo: Tonomy-Foundation/Tonomy-ID


text:
SSH keys fix only

As per https://github.com/ToonSoftwareCollective/ToonRooter/pull/9

Turns out, this is so untested that is it not even valid Python!
  File "__main__.py", line 169
    if (should_create_keys = not sshkeys.check_public_key(ssh_pubkey_data)):
                           ^
SyntaxError: invalid syntax

authors: Habbie timkoers

repo: ToonSoftwareCollective/ToonRooter


text:
ServiceRecovery - RestartComputer - doesn't work

I am trying to install a service with RestartComputer in the Service Recovery options, but I cannot get it to work.
.Net 4.0
Windows Server 2012
I'm trying to use the Sample Service

A pull request was just merged that may resolve this.

@drusellers, is this still valid?

authors: TravisTheTechie drusellers phatboyg

repo: Topshelf/Topshelf


text:
Display a banner when queue is too large

Display a banner when the queue is too large.

What do we consider "too large" ? Is it 100+ ?

Sure. We can always adjust it later.
On Tue, Nov 29, 2022, 04:42 Boris P. @.***> wrote:

What do we consider "too large" ? Is it 100+ ?
—
Reply to this email directly, view it on GitHub
https://github.com/TosiDrop/vm-frontend/issues/338#issuecomment-1330351392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4Y5PSHECVT4JRMYREBF3WKXFZHANCNFSM6AAAAAASIJB7X4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Or... maybe instead of banner, have the "amount in queue" number go red?

@aryelciu001 can we have the number in queue get 3 different colours?
The current one is fine, up to let's say: 25 in Q. Then it goes YELLOW. After 100 it goes RED ? just the number?
What do you think?

repo: TosiDrop/vm-frontend


text:
ПВО у ангаров пилотов

Добавить возможность включения ПВО у ангаров пилотов.

Мне кажется этого все ждут.

немного оживил место респа пилотов.

Если игроков меньше 7 человек и нет ни одного пилота, то MH-9 Hummingbird доступен для всех.

repo: ToxaBes/ADR-Spec-Ops


text:
Deprecation fixes

Recent Drake API changes throw a bunch of deprecation warnings. This PR sets the -Werror build flag to treat warnings as errors, then fixes all the warnings.

Something funcky is going on here. This does not compile in my machine, but it'd seem like drake/multibody/parsing/parser.cc doesn't compile.
I'll try again in my work computer.

authors: amcastro-tri vincekurtz

repo: ToyotaResearchInstitute/idto


text:
Testing against source files?

I've also worked on a grammar for Fennel and have collected a list of repositories which I test against: repositories-list.txt
With clones of those made locally (e.g. under ~/src/fennel-repositories) from a tree-sitter grammar repository I typically do something like:
$ find ~/src/fennel-repositories -type f -regex '.*\.fnl' -print0 | xargs -0 npx tree-sitter parse --quiet > 2020-09-12.txt

Then I examine the results, investigate issues, tweak the grammar, etc.
May be you do something like this already, but FWIW.

Interesting idea! Currently I use the testing suite that comes with tree-sitter, and for examining errors I use playground to examine the syntax tree for different files. I appreciate the list and I will go through it to see if I can find things to improve.

authors: TravonteD sogaiu

repo: TravonteD/tree-sitter-fennel


text:
TiCon rendering issue with IguanaTweaks 2.1.2

In FTB Infinity 1.3.1 with IguanaTweaks 2.1.2 added, Tinker's Construct tools inside the Swapper do not render at all - only the damage bar is shown (see screenshot). Other vanilla or mod tools seem to render fine (tested with a Stone and a Thaumium Sword).

P.S. This mod is the best thing since sliced bread, thanks!

I'll have to look into this.  Does the tool render in your hand?
Also does the swapper flicker in your hand? There is a mod that causes flicking in popular mod packs but I haven't been able to narrow down which one yet.

Nope, no flickering, and the tool renders fine in the hand.


text:
Implement Icon slot for bl-input

Closes #559

@buseselvi There are 2 new stories for the input component. Can you check if they are ok for you?

Can we show the spinner color by the input states in the storybook? Of course we can make different colors, but I wanted to ask to make it look consistent in our document.

Can we show the spinner color by the input states in the storybook? Of course we can make different colors, but I wanted to ask to make it look consistent in our document.

Sure, I removed the color attribute.

authors: buseselvi muratcorlu ogunb

repo: Trendyol/baklava


text:
Add Docker container

This allows deployment as a docker container - useful when running Vaultwarden in docker too.
Notably, the container:

Doesn't run as root
Binds to all interfaces
Uses Debian Slim as the base (scratch could be nice, or alpine, just needs some further testing).

thanks

maybe you can add an example to document it ;)

It's about as simple as a container can get. You run it, point $DATABASE_URL to your vaultwarden database, and point Prometheus to its port.

authors: RealOrangeOne Tricked-dev kosssi

repo: Tricked-dev/vwmetrics


text:
Enhancing the read me file

I can document all the features and tech stack used adding additional info about them and also alternative way is not mentioned to use  the repository. Please assign this issue to me.

Hello @Varda003 , Go for it but don't change anything existing currently.
All the Best

I can document all the features and tech stack used adding additional info about them and also alternative way is not mentioned to use the repository. Please assign this issue to me.

Hello @Varda003 , Go for it but don't change anything existing currently.
All the Best

please add the level as well @Trisha-tech  as mentioned Pr won't be counted

please add the level to this issue Level 1 , 2 or 3. I asked  in doubt section my Pr won't be counted.

repo: Trisha-tech/OnlineBookSales


text:
🛑 Melody Beta is down

In 7abb953, Melody Beta (https://canary.melody.api.triza.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Melody Beta is back up in a66ce89.

repo: TrizaCorporation/Status


text:
Azure connection overhaul

At the moment we work with Azure using a CLI. We need to replace it with a proper Python based connector

Hello @pavelzag, I'm Roee Ninyo from the "Pull Request" Community. I would appreciate it if @LiorYardeni could reach out to me regarding an issue that I might be able to help with. Thank you.
Please let me know if there's anything else I can assist you with.

I did something like this in the past.
Take a look here and tell me if it's satisfy your needs
https://github.com/cryptobiu/MATRIX/blob/master/Deployment/azure_deploy.py#L362

@liorko87 I see the code deals with building VMs on Azure. Trolley, at the moment, deals more with Kubernetes (AKS on Azure) and deployments on it

Done

repo: Trolley-MGMT/trolleymgmt


text:
this is a question

Hello author, which version of the code corresponds to TopicFM+? Which version of the code corresponds to TopicFM_fast? I use the code corresponding to TopicFM to run the above two weight files and will report an error, which can only correspond to model_best this weight file.

Hi @LooperzZ, please check the details of the installation in README.md

readme.md :This code implements [TopicFM+], which is an extension of [TopicFM]. For the implementation of previous version TopicFM, please checkout the aaai23_ver branch.
The main branch is TopicFM+? aaai23_ver Is it TopicFM? However, the weight file of the main branch loading TopicFM+ reports an error.

I'll delete pretrained/model_best.ckpt in the main branch. This file corresponds to TopicFM in the aaa23_ver branch.
For TopicFM_fast and TopicFM+, I provided the download links in README.md. Did you have any problems when running with these two pre-trained models? Can you provide errors in detail?

Traceback (most recent call last):
File "C:\Users\86132\Desktop\TopicFM-main\demo\demo.py", line 86, in
matcher.load_state_dict(ckpt_dict['state_dict'])
File "C:\Users\86132\Desktop\TopicFM-main\src\models\topic_fm.py", line 99, in load_state_dict
return super().load_state_dict(state_dict, *args, **kwargs)
File "D:\software\anaconda\envs\pytorch-gpu\lib\site-packages\torch\nn\modules\module.py", line 1483, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for TopicFM:
Unexpected key(s) in state_dict: "coarse_net.feat_aug.2.q_proj.weight", "coarse_net.feat_aug.2.k_proj.weight", "coarse_net.feat_aug.2.v_proj.weight", "coarse_net.feat_aug.2.merge.weight", "coarse_net.feat_aug.2.mlp.0.weight", "coarse_net.feat_aug.2.mlp.2.weight", "coarse_net.feat_aug.2.norm1.weight", "coarse_net.feat_aug.2.norm1.bias", "coarse_net.feat_aug.2.norm2.weight", "coarse_net.feat_aug.2.norm2.bias", "coarse_net.feat_aug.3.q_proj.weight", "coarse_net.feat_aug.3.k_proj.weight", "coarse_net.feat_aug.3.v_proj.weight", "coarse_net.feat_aug.3.merge.weight", "coarse_net.feat_aug.3.mlp.0.weight", "coarse_net.feat_aug.3.mlp.2.weight", "coarse_net.feat_aug.3.norm1.weight", "coarse_net.feat_aug.3.norm1.bias", "coarse_net.feat_aug.3.norm2.weight", "coarse_net.feat_aug.3.norm2.bias".
when i use the weight file-TopicFM_plus.pth.

Hello @LooperzZ, which config file did you use for your code? For TopicFM_plus.pth, the settings of model should follow this

There is no question.thank you !

authors: LooperzZ TruongKhang

repo: TruongKhang/TopicFM


text:
Bug/Typo in HopSkipJump Attack Notebook

Describe the bug
In the attack_hopskipjump.ipynb, the x parameter of the attack generate method should be the array of the initial images instead of the target images.
To Reproduce
Steps to reproduce the behavior:

Go to notebooks/attack_hopskipijump.ipynb file.
Navigate to code cell 4-7, the code line that calls the attack.generate() method to generate the adversarial sample.
The first parameter x should be x=np.array([init_image]) instead of x=np.array([target_image]) according to the comment of the hopskipjump attack in this repo.
Reference: art/attacks/evasion/hop_skip_jump.py, line 113: ":param x: An array with the original inputs to be attacked."

To Fix
Change all
x_adv = attack.generate(x=np.array([target_image]), y=to_categorical([866], 1000), x_adv_init=x_adv, resume=True)
to
x_adv = attack.generate(x=np.array([init_image]), y=to_categorical([866], 1000), x_adv_init=x_adv, resume=True)
and re-run the notebook.

Hi @SecantZhang
Thank you very much for using ART and raising this issue! I think the original author referred with target_image to the image that should be "targeted" and for which an adversarial example should be generated. I see that this variable name is somewhat in conflict with the targeted option of the attack. I would propose we switch
init_image_name = 'koala.jpg'
target_image_name = 'tractor.jpg'

and exchange all init_image_name and target_image_name with each other. That way we can keep koala the attacked class and tractor be the targeted class of the targeted attack.
Would you be interested in opening a pull request?

Sure, I'd love to. Thanks for the reply!

That's great, thank you! You can target branch main with the pull request.

authors: SecantZhang beat-buesser


text:
script url path issue in rss feed

Issue Summary
when using a script tag <script src="/some/javascript.js"></script> on a blog with config__url https://example.com/blog/ in the rss feed the script is pointing to <script src="https://example.com/blog/some/javascript.js"></script> instead of <script src="https://example.com/some/javascript.js"></script> while working just fine in the regular article view.
Technical details:

Ghost Version: 2.3.0
Node Version: 10.8.0
Browser/OS: Debian Linux with kernel 4.17.8
Database: SLQite

@gargol Could you please re-triage this issue? Thanks 👍

Confirming this bug. After some investigation came to conclusion that we are not using html transformation in the same way in rss and api.
The main difference is that in rss we are not passing in assetsOnly: true flag, which causes the script tag to transform it's src attribute. Since all urls are meant to use absolute path in Ghost, probably fix would be removing assetOnly flag in output/utils/url.js. What do you think @kirrg001 ?

The assetsOnly flag was invented to skip making resource urls absolute. If we would remove assetsOnly from the url output seriaizer, then we would automatically transform resource urls to absolute, which we don't want. I am not 100% sure right now how the assetsOnly flag is related to this bug report, but i have not investigated.
I'd suggest to add this bug to our backlog for now and investigate further if we work on it? 🙃

After some investigation came to conclusion that we are not using html transformation in the same way in rss and api.

@gargol Links to master code base is not helpful long-term when sharing code, because it changes every day.

@kirrg001 thanks for spotting ;) updates to permalinks

authors: gargol kirrg001 yetzt

repo: TryGhost/Ghost


text:
The [alt] button below featured images is no longer functional.

Issue Summary
After the latest Ghost updates, the button below featured images to put in alt text is no longer functional.
Steps to Reproduce
Open the latest version of Ghost.
Add a post.
Add a featured image to the post.
Click the [alt] button next to the caption to switch to entering alt text.
Nothing happens.  I expected to be able to enter alt text.
The problem occurs in both the original and new beta editor.
The problem seems localized to featured images.  Other images are not impacted.
The problem is present in Chrome and Edge both.  No error messages are present in the browser console.
Ghost Version
5.50-something
Node.js Version
Ghost Pro
How did you install Ghost?
Ghost Pro
Database type
MySQL 8
Browser & OS version
Chrome 114.0.5735.90 on Windows 10 AND Edge (recent version)
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

This is now fixed in v5.50.3 🙂

authors: cathysarisky daniellockyer


text:
Ghost considers my 4-character Facebook username to be invalid.

Steps to Reproduce

Navigate to /ghost/settings/general/ and scroll down to the Facebook Page setting
Enter my Facebook URL, https://www.facebook.com/folz

What I expected to happen:
I would be able to configure my Facebook URL in the settings.
What actually happened:
I received the error message "Your Page name is not a valid Facebook Page name"

Looking at the relevant validation in app/controllers/settings/general.js, this appears to be intentional. However, this means you're excluding anyone who worked at Facebook from linking their profile, as current/former FB employees are allowed to have usernames under 5 characters. Also, some brands have Page usernames under 5 characters (ex: https://www.facebook.com/nike).
Technical details:

Ghost Version: Pro
Node Version: Unsure, using Pro
Browser/OS: Firefox on Linux
Database: Unsure, using Pro

Was trying to make a PR for this, but it's taking me a while to figure out how to set testem up with Chromium and not Chrome. The related test is at tests/acceptance/settings/general-test.js:272 and potentially :280.


text:
Replaced Bluebird Promise.mapSeries with sequence util

Refactored code for #14882
Removed Bluebird Promise.mapSeries and used sequence util.

The changes in listeners.js were casing regression tests to fail so reverted those changes from this PR. I'll refactor this file in another PR.

Thanks @vershwal! 🕺🏻

authors: daniellockyer vershwal


text:
Ember 2.4.0 upgrades

no issue

upgrades ember-cli to 2.4.0
upgrades ember to 2.4.1
upgrades ember-data to 2.4.0

No new features, 2.4.0 is primarily a bugfix release and will be the candidate for Ember's LTS release - http://emberjs.com/blog/2016/02/29/ember-2-4-released.html
One interesting bugfix that has made it in (https://github.com/emberjs/ember.js/pull/12877) means that ember-one-way-controls is no longer strictly necessary.

Can you change the quotes in testem.js to be single quotes so lint is happy?

:+1: should hopefully pass this time!

There also seems to be a lot of deprecation warnings thrown because of how we use DS.Errors in inline-validation. Would it be a good idea to add a line to the deprecation config file to stifle them?

authors: acburdine kevinansfield


text:
Question for "scale_loss_shift" parameter

Thanks for the good work. I have a question for "scale_loss_shift' parameter, I found this parameter is used in the following:
scale_loss_shift = 128.0 if p.fp16 else 1.0
cls_loss = mx.sym.SoftmaxOutput(data=cls_logit_reshape,
label=cls_label,
multi_output=True,
normalization='valid',
use_ignore=True,
ignore_label=-1,
grad_scale=1.0*scale_loss_shift,
name='rpn_cls_loss')
question: why fp16 or fp32 can have an impact on grad_scale of softmax loss? Any advice will be appreciated, thanks

Got it! Thanks

repo: TuSimple/simpledet


text:
Nested sampling integration

Very happy to hear about the funding from Alan Turing Institute!
I was wondering if there is still interest for working on the NestedSamplers integration, as this is possibly a very powerful sampling backend (for example popular in the astronomy community). Previous attempts seem to have stranded.
Very willing to help out by testing and contributing to the nested sampling code itself, but the integration into Turing is well over my head.

Integrating Turing is now way easier than it used to be. There are few examples that should be straightforward to follow. See this repo, which is intended as a tutorial. Also this one, which is a more realistic example.

OK, I'll take a look in some time. Thanks

authors: Red-Portal mvsoom


text:
Use ProgressLogging instead of ProgressMeter

This PR replaces ProgressMeter with ProgressLogging, which is compatible with both Juno and TerminalLoggers in the terminal. It addresses https://github.com/TuringLang/Turing.jl/issues/799.
The branch works locally together with https://github.com/TuringLang/AbstractMCMC.jl/pull/17. The only regression so far is that the HMC statistics are not displayed anymore during sampling. I'm not sure if there is a natural or good way to achieve this with ProgressLogging, at least there is no discussion of such functionality in the documentation. Another regressions for users that do not use Juno might be that they have to create, e.g., a TerminalLogger explicitly.
Note that this implementation does not use the updated ProgressLogging API since it does not seem to be fully supported by the progress monitors yet.

Can we remove the draft flag for this PR now that MCMCChains is using this change as well?

I'm planning to do that within the next hours. I would like to enforce AbstractMCMC 0.5, but that requires a new release of DynamicPPL that is compatible with AbstractMCMC. I've updated the Turing tests in DynamicPPL with the ones from this PR, but I have to wait for the new MCMCChains release due to compatibility issues.

I think this is good to merge in.

authors: cpfiffer devmotion


text:
Demo page disagrees with library on message segment count.

Possibly the library is out of date at https://twiliodeved.github.io/message-segment-calculator/ , it seems like characters that take 4 blocks aren't getting properly calculated to figure out the number of message segments.
Example message: Testing Hand 🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻🤟🏻 🤟🏻
I've pulled down and tested the playground and the demo webpage and with current commit of c74a6b235caca44a29f0f4d4ede0a8fd6e3fd8b5 everything seems to compute as expected.

Thanks @scanningdeer for flagging that. Let me do some investigation and get back to you shortly

Thanks for spotting this @scanningdeer. The issue should now be fixed. Can you try and let me know?

It looks like it works correctly now. Thanks.

authors: scanningdeer vernig

repo: TwilioDevEd/message-segment-calculator


text:
An error occurred while loading the PDF

HI,
I need some help, all of the pages using the plugin got an error viewing the PDF.
Please see screen shots and link below:

[pdfjs-viewer url="https%3A%2F%2Fwww.philippineconsulatela.org%2Fwp-content%2Fuploads%2F2021%2F08%2FADVISORY-Deadline-of-Overseas-Voter-Registration-Corrected-Date.pdf" viewer_width=100% viewer_height=800px fullscreen=true download=false print=false]
Thank you.

The PDF should not be encoded in the editor. How did you generate that URL?
It should be https://www.philippineconsulatela.org/wp-content/uploads/2021/08/ADVISORY-Deadline-of-Overseas-Voter-Registration-Corrected-Date.pdf assuming your website starts with https://www

The PDF should not be encoded in the editor. How did you generate that URL?
It should be https://www.philippineconsulatela.org/wp-content/uploads/2021/08/ADVISORY-Deadline-of-Overseas-Voter-Registration-Corrected-Date.pdf assuming your website starts with https://www

It was embedded using your pdfj plugin.
Thanks for the quick reply.

Are you using the classic editor or the Gutenberg block? I'm trying to figure to how to re-create the issue.

Are you using the classic editor or the Gutenberg block? I'm trying to figure to how to re-create the issue.

Below is the editor that im currently using right now, before I dont have a problem with the PDJF Viewer.

Some encoding was done for security reasons. I'll do some digging to see if I can't figure out why you're seeing that.
Are you running the latest version? 2.1.2

Some encoding was done for security reasons. I'll do some digging to see if I can't figure out why you're seeing that.
Are you running the latest version? 2.1.2

Yes, i have the latest version.

I think it's a caching issue. Can you try clearing your cache?

I think it's a caching issue. Can you try clearing your cache?

Cache cleared, same issue.

I'll try to push a fix to break the cache incase that's the issue. Or maybe just pushing new files will magically make it work.

I'll try to push a fix to break the cache incase that's the issue. Or maybe just pushing new files will magically make it work.

Thanks, looking forward for that magic.

New version is up. Hopefully it works better.

New version is up. Hopefully it works better.

Updated the plugin, error still there.
thanks for looking this up.

There's nothing that's encoding the URL in my code. Could one of your other editor plugins be causing an issue? Have you made any other updates/additions recently?

I tried to disable the PDF embedder plugin. The cause is from multiple pdf plugins that I installed.

So everything is working now?

Still the same, even i uninstalled all the plugin related to PDF embedder or viewer.

Ok, I'll push out an update to decode that URL. Not sure what's going on.

I released a new version of the plugin, give it a shot.

repo: TwisterMc/pdfjs-viewer-shortcode


text:
希望加入积分榜与借贷功能

群友们赌没钱就一蹶不振了，我很伤心

积分榜已在v2.0.0上线，借贷功能还没有上线


text:
feat: add addMagnet function

closes #49

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: TypeCtrl/qbittorrent


text:
Support of code completions based on workspace

Suppose I have two different files in the same workspace, how to do code completions based on them, say one file is imported in another file. Right now I can only provide code completions for only one file.

Could you provide more information, please? How many editors do you have? Which language server do you use?
It is the responsibility of the language server to provide completions given that proper rootUri is provided, i.e. pointing to the location of workspace on the disk.

I am going to close this issue if there are no objections.

repo: TypeFox/monaco-languageclient


text:
🛑 Web OPL is down

In 98292ac, Web OPL (https://opl.uab.cat) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Web OPL is back up in e09f330 after 27 minutes.

repo: UAB-OPL/opl-uab-monitoring


text:
Change README.md to include package install information

As it stands, the cookiecutter template we are using is stating users can install the package via pip, which is not true as currently this package has not been published to PyPI yet. This needs to be changed.

repo: UBC-MDS/VisuMorph


text:
fix: Delete unneccessary file in workflow (addressed by: Chris Gao)

Test to see if cicd works now

looks nice!


text:
Feedback: Paper.md

Todo: Add file 'comments from reviewers'

Not necessary

repo: UBC-MDS/hexdropper


text:
Give higher priority to BMS available power ID

Summary

give higher priority to the BMS available power as it is used for torque computations in the DCM right now
clean up msg order in the dbc a little

Changelist

Testing Done

Resolved Issues

Checklist
Please change [ ] to [x] when you are ready.

[ ] I have read and followed the code conventions detailed in README.md (This will save time for both you and the reviewer!).
[ ] If this pull request is longer then 500 lines, I have provided explicit justification in the summary above explaining why I cannot break this up into multiple pull requests (Small PR's are faster and less painful for everyone involved!).

@Eddy13013 if you can test this and see that everytthing is working, feel free to merge in

Looks good to me

authors: pasitlaothamatas timbitss


text:
Basic guide and some tidying up

Filled in the README with some context and instructions
Added a license (chose MIT but don't have particular concerns)
Removed an earlier attempt at a second command that was not being used anywhere

The tests are failing because of a bug in pandas 1.5.0, which should be fixed in the next release.

repo: UCL/hivpy


text:
Parking Card: Content not loading for some users (An error occurred)

Time Tracking: MA-34
This is done when:

[ ] Parking card lots and availability load as expected

Logging exception with Google Analytics, https://developers.google.com/analytics/devguides/collection/ga4/exceptions

Added Google Analytics to https://mobile.ucsd.edu/replatform/v1/prod/webview/parking/index.html, and tag event for "exception".

Could it be the template literals? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

Analytics running for a few days. No exceptions logged.

Closing in favor of #1071

repo: UCSD/campus-mobile


text:
Various Mac clang warnings are likely bugs

Original issue: https://charm.cs.illinois.edu/redmine/issues/1413

The pup_xlater.C error turns cvt_bool() into an infinite loop.
The machine.c error will make LrtsAbort do nothing if Cmi_truecrash is true - it should at least abort.
ckarrayreductionmgr.C:132:19: warning: comparison of constant -1 with expression of type 'unsigned short' is
      always true [-Wtautological-constant-out-of-range-compare]
                        if (m->userFlag!=-1)
                            ~~~~~~~~~~~^ ~~

pup_xlater.C:138:25: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
        for (i=nElem-1;i>=0;i--)
                       ~^ ~

machine.c:549:5: warning: indirection of non-volatile null pointer will be deleted, not trap
      [-Wnull-dereference]
    *(int *)NULL = 0; /*Write to null, causing bus error*/
    ^~~~~~~~~~~~

Original date: 2017-02-13 21:11:21

This commit will remove ckarrayreductionmgr completely, so that warning will go away: ~~https://charm.cs.illinois.edu/gerrit/#/c/2216/~~ https://github.com/UIUC-PPL/charm/commit/2c622f863c09793ab8410eb1138428d080fb8e63
The pup_xlater one should be fixed.
The machine.c one is more interesting. It appears from the git history to have been added so that when debugging Charm you get a true crash with the full stacktrace rather than a clean exit with an abort message when running with ++debug and/or +truecrash. That seems useful, and that code will only execute if Cmi_truecrash is true.

Original date: 2017-02-14 01:02:03

For the machine.c case, it would be easy enough to add the suggested volatile to it. That is precisely an intended use.

Original date: 2017-02-14 03:30:01

~~https://charm.cs.illinois.edu/gerrit/#/c/2242/~~ https://github.com/UIUC-PPL/charm/commit/9290be649351cf0acb89ee01c2010ea5d48b56f4

authors: PhilMiller jcphill stwhite91

repo: UIUC-PPL/charm


text:
RDMA example with migration

Original issue: https://charm.cs.illinois.edu/redmine/issues/1546

The failures in AMPI RDMA have raised concern that there is something bad going on when using RDMA + migration, even when ensuring that there are no outstanding sends during migration and running with +LBSyncResume. The only existing uses of rdma are 2 pingpong examples/tests, and AMPI, so more are needed. So add rdma entry method calls to jacobi or some other example that has load balancing...

Original date: 2017-05-04 12:46:47

This is really needed now to help debug current and future issues with RDMA before 6.8.0

Original date: 2017-05-12 13:56:01

I believe Nitin modified the stencil load balancing to use RDMA, and that is pending on a fix for RDMA entry methods in SDAG: https://charm.cs.illinois.edu/redmine/issues/1553

Original date: 2017-05-12 22:02:30

The bug that spawned this request, #1539, has now been fixed. Is it still critical to have a new test/example that specifically exercises the interaction of RDMA sends and migration? If not, this can probably be de-prioritized, delayed, or just closed/rejected (as AMPI actually does exercise this case).

Original date: 2017-05-13 03:41:11

I think it's important to have an SDAG + Migration + RDMA example/test, but up to you whether that is this issue or not

Original date: 2017-06-01 07:40:01

Added the stencil3d example as a part of the SDAG support for rdma marked entry methods. This example tests both Migration and SDAG capabilities for an entry method with an 'rdma' parameter.
Implementation: ~~https://charm.cs.illinois.edu/gerrit/#/c/2572/~~ https://github.com/UIUC-PPL/charm/commit/364594cab57ba5793d0571bf4f706140dc2cbdb8

authors: PhilMiller nitbhat stwhite91


text:
Enable use of shm transport for regular messages in LRTS

Original issue: https://charm.cs.illinois.edu/redmine/issues/1655

Experimenting with different models has shown that CMA (Cross Memory Attach) is a good candidate for exploiting shm for within-host communication. Shm transport over CMA has already been implemented for the Nocopy Direct API. Having an LRTS based implementation can greatly improve intra-host inter-process performance for large messages (regular, parameter marshalled) across all LRTS based layers.

Original date: 2017-08-09 16:33:00

Also, './build charm++ gni-crayxe xpmem' fails to build because it tries to build pxshm and xpmem both. The issue is that we build with pxshm by default for gni-crayx* builds and don't disable that when explicitly building with xpmem. From what I've seen, xpmem offers performance nearly on par with user-space memcpy for Cray MPI, so that could potentially become the default on gni builds instead of pxshm if we implement it correctly. The key is to call xpmem_make() on the entire virtual address space during startup, avoiding the high cost of memory registration/deregistration during runtime.

Original date: 2017-10-31 04:07:02

The current plan is to use CMA for interprocess copies. Nitin is working on it now.

Original date: 2017-11-10 15:05:17

Using CMA, we don't need a layer dependent shm implementation and can have a generic implementation in the LRTS layer.

Original date: 2017-11-10 15:22:08

There are three LRTS based use cases for shm (using CMA) to be used for intra-host communication:

Large messages using the Nocopy Direct API : https://charm.cs.illinois.edu/redmine/issues/1667. (Already implemented)
Large messages using the Nocopy Entry Method API : https://charm.cs.illinois.edu/redmine/issues/1657
Large messages using regular API : (This feature).

Reference Links:
Basic CMA infrastructure: ~~https://charm.cs.illinois.edu/gerrit/#/c/3168/~~ https://github.com/UIUC-PPL/charm/commit/c914193c5e1e42fb0a6e4de3e9ff1cbc1f894604
Implementation of Shm transport for Nocopy Direct API: ~~https://charm.cs.illinois.edu/gerrit/#/c/3116/~~ https://github.com/UIUC-PPL/charm/commit/e133c1d61322e12ba955ec817af02df1359e043e

Original date: 2017-12-20 20:33:45

Gerrit Patch: ~~https://charm.cs.illinois.edu/gerrit/#/c/3457/~~ https://github.com/UIUC-PPL/charm/commit/adbc4700fd7a4462347912d4c7a408988c57b3a9

Original date: 2018-02-20 18:56:00

This patch supports using CMA for regular messages. However, since the advantages of using CMA over Charm's regular network messages is only at specific message sizes, I have disabled CMA in this patch. In the future, we need to determine the message size thresholds for which CMA messaging can be enabled. The message size thresholds can be determined by experimentation using applications across different machines and networks.


text:
objid_t: Specify array size at construction time via CkArrayOptions despite non-bulk-construction

Original issue: https://charm.cs.illinois.edu/redmine/issues/171

Map onto bulk constructor metadata described in #170

Original date: 2013-10-07 19:05:50

This won't be ready for 6.6, so push it back.

Original date: 2015-03-21 01:52:36

Commit e430341f4beef9cc83b3092635990e8f5bd5a6f8

authors: PhilMiller heyram