ImportError: DLL load failed: The specified procedure could not be found

I tried to run the demo:
(venv) PS E:\bin\iPERCore-main> python demo/motion_imitate.py --gpu_ids 0 --image_size 512 --num_source 2 --output_dir "./results" --assets_dir "./assets" --model_id   "axing_1" --src_path   "path?=./assets/samples/sources/axing_1,name?=axing_1" --ref_path   "path?=./assets/samples/references/bantangzhuyi_1.mp4,name?=bantangzhuyi_1,pose_fc?=300"
and got following error. What did I miss?
primitives_dir: ./results\primitives\bantangzhuyi_1
processed_dir: ./results\primitives\bantangzhuyi_1\processed
vid_info_path: ./results\primitives\bantangzhuyi_1\processed\vid_info.pkl
Process PreprocessConsumer_0:
Traceback (most recent call last):
File "C:\ProgramData\Miniconda3\envs\venv\lib\multiprocessing\process.py", line 258, in bootstrap
self.run()
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 41, in run
device=device
File "e:\bin\ipercore-main\iPERCore\tools\processors\preprocessors.py", line 125, in init
device=device
File "e:\bin\ipercore-main\iPERCore\tools\human_mattors_init.py", line 11, in build_mattor
from .point_render_parser import PointRenderGCAMattor
File "e:\bin\ipercore-main\iPERCore\tools\human_mattors\point_render_parser.py", line 16, in
from mmdet.apis import init_detector, inference_detector
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmdet\apis_init_.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmdet\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\ops_init_.py", line 1, in
from .bbox import bbox_overlaps
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\ops\bbox.py", line 3, in
ext_module = ext_loader.load_ext('ext', ['bbox_overlaps'])
File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "C:\ProgramData\Miniconda3\envs\venv\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified procedure could not be found.
Pre-processing: digital deformation start...
Process HumanDigitalDeformConsumer_0:
Traceback (most recent call last):
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 136, in run
prepared_inputs = self.prepare_inputs_for_run_cloth_smpl_links(process_info)
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 210, in prepare_inputs_for_run_cloth_smpl_links
src_infos = process_info.convert_to_src_info(self.opt.num_source)
File "e:\bin\ipercore-main\iPERCore\services\options\process_info.py", line 140, in convert_to_src_info
src_infos = read_src_infos(self.vid_infos, num_source)
File "e:\bin\ipercore-main\iPERCore\services\options\process_info.py", line 233, in read_src_infos
pad_ids = np.random.choice(src_ids, need_pad)
File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Miniconda3\envs\venv\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 153, in run
except Exception("model error!") as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Pre-processing: digital deformation completed...
the current number of sources are 1, while the pre-defined number of sources are 2.
Pre-processing: failed...

Looks like this error comes from mmcv, can you provide details of the installation process of mmcv?

Thanks for the response. I did:
(venv) PS C:\Users\home> pip install mmcv
Collecting mmcv
  Downloading mmcv-1.2.3.tar.gz (216 kB)
     |████████████████████████████████| 216 kB 2.2 MB/s
Requirement already satisfied: addict in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (2.4.0)
Requirement already satisfied: numpy in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (1.19.3)
Requirement already satisfied: Pillow in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (8.0.1)
Requirement already satisfied: pyyaml in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (5.3.1)
Requirement already satisfied: yapf in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (0.30.0)
Requirement already satisfied: regex in c:\programdata\miniconda3\envs\venv\lib\site-packages (from mmcv) (2020.11.13)
Building wheels for collected packages: mmcv
  Building wheel for mmcv (setup.py) ... done
  Created wheel for mmcv: filename=mmcv-1.2.3-py2.py3-none-any.whl size=319484 sha256=408aab1b578bfb50b6089b49d65dcbeb13261d7bcf50aee832184258324c08f6
  Stored in directory: c:\users\home\appdata\local\pip\cache\wheels\b9\4e\88\b1423b7ff0fb534e49dee4a7f423f0f17093939638c50e75a2
Successfully built mmcv
Installing collected packages: mmcv
Successfully installed mmcv-1.2.3

and now I'm getting:
Process PreprocessConsumer_0:
Traceback (most recent call last):
  File "C:\ProgramData\Miniconda3\envs\venv\lib\multiprocessing\process.py", line 258, in _bootstrap
    self.run()
  File "e:\bin\ipercore-main\iPERCore\services\preprocess.py", line 41, in run
    device=device
  File "e:\bin\ipercore-main\iPERCore\tools\processors\preprocessors.py", line 125, in __init__
    device=device
  File "e:\bin\ipercore-main\iPERCore\tools\human_mattors\__init__.py", line 11, in build_mattor
    from .point_render_parser import PointRenderGCAMattor
  File "e:\bin\ipercore-main\iPERCore\tools\human_mattors\point_render_parser.py", line 16, in <module>
    from mmdet.apis import init_detector, inference_detector
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmdet\__init__.py", line 1, in <module>
    import mmcv
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\__init__.py", line 4, in <module>
    from .fileio import *
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\fileio\__init__.py", line 4, in <module>
    from .io import dump, load, register_handler
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\fileio\io.py", line 4, in <module>
    from ..utils import is_list_of, is_str
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\__init__.py", line 36, in <module>
    from .parrots_jit import jit, skip_no_elena, skip_no_parrots
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\parrots_jit.py", line 1, in <module>
    import pytest
ModuleNotFoundError: No module named 'pytest'

Looks like this error comes from mmcv, can you provide details of the installation process of mmcv?

请问一下，我已经安装mmcv-full=1.1.5了，运行时报：
Traceback (most recent call last):
File "A:\Anaconda\envs\IPERcore-main\lib\multiprocessing\process.py", line 258, in bootstrap
self.run()
File "A:\py_workspace\iPERCore-main2\iPERCore-main\iPERCore\services\preprocess.py", line 41, in run
device=device
File "A:\py_workspace\iPERCore-main2\iPERCore-main\iPERCore\tools\processors\preprocessors.py", line 125, in init
device=device
File "A:\py_workspace\iPERCore-main2\iPERCore-main\iPERCore\tools\human_mattors_init.py", line 11, in build_mattor
from .point_render_parser import PointRenderGCAMattor
File "A:\py_workspace\iPERCore-main2\iPERCore-main\iPERCore\tools\human_mattors\point_render_parser.py", line 16, in
from mmdet.apis import init_detector, inference_detector
File "A:\Anaconda\envs\IPERcore-main\lib\site-packages\mmdet\apis_init_.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "A:\Anaconda\envs\IPERcore-main\lib\site-packages\mmdet\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "A:\Anaconda\envs\IPERcore-main\lib\site-packages\mmcv\ops_init_.py", line 1, in
from .bbox import bbox_overlaps
File "A:\Anaconda\envs\IPERcore-main\lib\site-packages\mmcv\ops\bbox.py", line 3, in
ext_module = ext_loader.load_ext('ext', ['bbox_overlaps'])
File "A:\Anaconda\envs\IPERcore-main\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "A:\Anaconda\envs\IPERcore-main\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: 找不到指定的程序。
我又通过pip install mmcv ,但是报错：
A:\py_workspace\iPERCore-main2\iPERCore-main>pip install mmcv
Collecting mmcv
Downloading mmcv-1.2.4.tar.gz (216 kB)
|████████████████████████████████| 216 kB 31 kB/s
ERROR: Command errored out with exit status 1:
command: 'a:\anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-ov
p1jp3r\mmcv\setup.py'"'"'; file='"'"'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-ovp1jp3r\mmcv\setup.py'"'"';f=getattr(tokenize, '"'"'
open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-ba
se 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-info-6yam5g9f'
cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-ovp1jp3r\mmcv
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-ovp1jp3r\mmcv\setup.py", line 10, in
if torch.version == 'parrots':
AttributeError: module 'torch' has no attribute 'version'
----------------------------------------
请问一下怎么解决呀

把你现在安装的mmcv全部卸载掉
到https://download.openmmlab.com/mmcv/dist/index.html 下载你所需要的mmcv 1.1.5 的windows预编译版本

e.g.  pytorch1.6.0 + cuda10.2 + python3.7  就下载mmcv_full-1.1.5+torch1.6.0+cu102-cp37-cp37m-win_amd64.whl这个包安装(注意后缀里有win_amd64这个字段, 不要下载linux版本)

把你现在安装的mmcv全部卸载掉
到https://download.openmmlab.com/mmcv/dist/index.html 下载你所需要的mmcv 1.1.5 的windows预编译版本

e.g. pytorch1.6.0 + cuda10.2 + python3.7 就下载mmcv_full-1.1.5+torch1.6.0+cu102-cp37-cp37m-win_amd64.whl这个包安装(注意后缀里有win_amd64这个字段, 不要下载linux版本)

没有torch1.7版本的吗？如果我安装mmcv1.6版本的，会导致AssertionError:torch not compiled with cuda enabled错误，我把torch升到1.7又会导致mmcv找不到（ImportError: DLL load failed: 找不到指定的程序）；我把mmcv换成1.5，torch换成1.5，又会导致 import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: DLL load failed: 找不到指定的程序。
好绝望啊

I've installed mmcv==1.1.5
(venv) PS E:\bin\iPERCore-main> pip show mmcv
Name: mmcv
Version: 1.1.5
Summary: OpenMMLab Computer Vision Foundation
Home-page: https://github.com/open-mmlab/mmcv
Author: MMCV Authors
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: c:\programdata\miniconda3\envs\venv\lib\site-packages
Requires: opencv-python, yapf, addict, pyyaml, regex, numpy

I'm getting:
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "C:\ProgramData\Miniconda3\envs\venv\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified procedure could not be found.
                Pre-processing: digital deformation start...

I've installed mmcv==1.1.5
(venv) PS E:\bin\iPERCore-main> pip show mmcv
Name: mmcv
Version: 1.1.5
Summary: OpenMMLab Computer Vision Foundation
Home-page: https://github.com/open-mmlab/mmcv
Author: MMCV Authors
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: c:\programdata\miniconda3\envs\venv\lib\site-packages
Requires: opencv-python, yapf, addict, pyyaml, regex, numpy

I'm getting:
  File "C:\ProgramData\Miniconda3\envs\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 11, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "C:\ProgramData\Miniconda3\envs\venv\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified procedure could not be found.
                Pre-processing: digital deformation start...

@anguoKuang @bigboss97 We have fixed some bugs on Windows, you can remove the old environment (conda or venv) and try the latest version (Recommend CUDA10.2 + Python3.8.8 + VS2019)

@anguoKuang @bigboss97 We have fixed some bugs on Windows, you can remove the old environment (conda or venv) and try the latest version (Recommend CUDA10.2 + Python3.8.8 + VS2019)

@anguoKuang @bigboss97 We have fixed some bugs on Windows, you can remove the old environment (conda or venv) and try the latest version (Recommend CUDA10.2 + Python3.8 + VS2019)

Great, it's progressing, but still not working. Thanks for your work.
I received this error during env setup:
  Building wheel for mmpycocotools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\ProgramData\Miniconda3\envs\venv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\home\\AppData\\Local\\Temp\\pip-install-tjm06jmd\\mmpycocotools\\setup.py'"'"'; __file__='"'"'C:\\Users\\home\\AppData\\Local\\Temp\\pip-install-tjm06jmd\\mmpycocotools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\home\AppData\Local\Temp\pip-wheel-vk47qgpx'

*snip*
  c1: fatal error C1083: Cannot open source file: 'pycocotools/_mask.c': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for mmpycocotools
  Running setup.py clean for mmpycocotools
Successfully built mmdet
Failed to build mmpycocotools
Installing collected packages: cython, mmpycocotools, terminaltables, mmdet

I ignored that and ran my own sample:

This looks like a success:

But the result is empty:

All images are also empty:

@anguoKuang @bigboss97 We have fixed some bugs on Windows, you can remove the old environment (conda or venv) and try the latest version (Recommend CUDA10.2 + Python3.8 + VS2019)

Great, it's progressing, but still not working. Thanks for your work.
I received this error during env setup:
  Building wheel for mmpycocotools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\ProgramData\Miniconda3\envs\venv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\home\\AppData\\Local\\Temp\\pip-install-tjm06jmd\\mmpycocotools\\setup.py'"'"'; __file__='"'"'C:\\Users\\home\\AppData\\Local\\Temp\\pip-install-tjm06jmd\\mmpycocotools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\home\AppData\Local\Temp\pip-wheel-vk47qgpx'

*snip*
  c1: fatal error C1083: Cannot open source file: 'pycocotools/_mask.c': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for mmpycocotools
  Running setup.py clean for mmpycocotools
Successfully built mmdet
Failed to build mmpycocotools
Installing collected packages: cython, mmpycocotools, terminaltables, mmdet

I ignored that and ran my own sample:

This looks like a success:

But the result is empty:

All images are also empty:

把你现在安装的mmcv全部卸载掉
到https://download.openmmlab.com/mmcv/dist/index.html 下载你所需要的mmcv 1.1.5 的windows预编译版本

e.g. pytorch1.6.0 + cuda10.2 + python3.7 就下载mmcv_full-1.1.5+torch1.6.0+cu102-cp37-cp37m-win_amd64.whl这个包安装(注意后缀里有win_amd64这个字段, 不要下载linux版本)

我安装了
Name: mmcv-full
Version: 1.1.5
Summary: OpenMMLab Computer Vision Foundation
Home-page: https://github.com/open-mmlab/mmcv
Author: MMCV Authors
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: c:\users\not found\appdata\local\programs\python\python38\lib\site-packages
Requires: opencv-python, yapf, pyyaml, addict, regex, numpy
Required-by: mmedit
但还是提示
Traceback (most recent call last):
File "demo/motion_imitate.py", line 10, in
from iPERCore.services.run_imitator import run_imitator
File "e:\ipercore\iPERCore\services\run_imitator.py", line 4, in
from iPERCore.models import ModelsFactory
File "e:\ipercore\iPERCore\models_init_.py", line 2, in
from .flowcomposition import FlowComposition
File "e:\ipercore\iPERCore\models\flowcomposition.py", line 7, in
from iPERCore.tools.human_digitalizer.renders import SMPLRenderer
File "e:\ipercore\iPERCore\tools\human_digitalizer\renders_init_.py", line 1, in
from .nmr import SMPLRenderer
File "e:\ipercore\iPERCore\tools\human_digitalizer\renders\nmr.py", line 6, in
import neural_renderer as nr
File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer_init_.py", line 3, in
from .load_obj import load_obj
File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer\load_obj.py", line 9, in
import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: DLL load failed while importing load_textures: 找不到指定的模块。

把你现在安装的mmcv全部卸载掉
到https://download.openmmlab.com/mmcv/dist/index.html 下载你所需要的mmcv 1.1.5 的windows预编译版本

e.g. pytorch1.6.0 + cuda10.2 + python3.7 就下载mmcv_full-1.1.5+torch1.6.0+cu102-cp37-cp37m-win_amd64.whl这个包安装(注意后缀里有win_amd64这个字段, 不要下载linux版本)

我安装了
Name: mmcv-full
Version: 1.1.5
Summary: OpenMMLab Computer Vision Foundation
Home-page: https://github.com/open-mmlab/mmcv
Author: MMCV Authors
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: c:\users\not found\appdata\local\programs\python\python38\lib\site-packages
Requires: opencv-python, yapf, pyyaml, addict, regex, numpy
Required-by: mmedit
但还是提示
Traceback (most recent call last):
File "demo/motion_imitate.py", line 10, in
from iPERCore.services.run_imitator import run_imitator
File "e:\ipercore\iPERCore\services\run_imitator.py", line 4, in
from iPERCore.models import ModelsFactory
File "e:\ipercore\iPERCore\models_init_.py", line 2, in
from .flowcomposition import FlowComposition
File "e:\ipercore\iPERCore\models\flowcomposition.py", line 7, in
from iPERCore.tools.human_digitalizer.renders import SMPLRenderer
File "e:\ipercore\iPERCore\tools\human_digitalizer\renders_init_.py", line 1, in
from .nmr import SMPLRenderer
File "e:\ipercore\iPERCore\tools\human_digitalizer\renders\nmr.py", line 6, in
import neural_renderer as nr
File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer_init_.py", line 3, in
from .load_obj import load_obj
File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer\load_obj.py", line 9, in
import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: DLL load failed while importing load_textures: 找不到指定的模块。


Debugging lambdas in the MFEM_FORALL macro

Currently, kernels written using the MFEM_FORALL macro are collapsed into a single line in the debug info. This makes it impossible to step through such lambdas or get accurate line information during crashes.
One suggestion that came up in a discussion with @artv3 and @samuelpmishLLNL is to define an alternative, non-macro version of MFEM_FORALL, e.g. mfem::forall, that will use a single __host__ __device__ version of the lambda which will have better debug info. This is different from the MFEM_FORALL macro which generates two separate lambdas for host and device (which may be more performant?) but on the other hand, it collapses the whole lambda into a single line.

cc: @camierjs, @YohannDudouit, @tzanio

Discussion continued in https://github.com/mfem/mfem/pull/3454


add nuget package metadata

Following https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices#package-metadata
Adds source URL, source repo type, project YDMS website URL, readme declaration, package tags, package version (change or remove if needed), release notes, and license declaration.

THank youuu!

I had to revert some of these changes, because this PR broke the ability to build the new NuGet in CI/CD due to missing README.md
I don't have time to investigate how to properly include that right now, I just need the project to build.


crash on python2.7

cursor_wrapper.py line 36:
Thread(target=do_log, args=(self.cursor, *args)).start()

is *args support python 2.7?

That’s a good question. I haven’t looked into python2.7 for a very long time, tho the docs https://docs.python.org/2/library/threading.html#threading.Thread suggest it’s valid.

On 14 Nov 2017, at 08:55, mrgaolei<EMAIL_ADDRESS>wrote:
cursor_wrapper.py line 36:
Thread(target=do_log, args=(self.cursor, *args)).start()
is *args support python 2.7?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/cipriantarta/django-logging/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2skYACeLojdH0zeV_z2aWBglSNguqwks5s2TlOgaJpZM4Qc4fP.

it's not supported by python2.7, you should use the code below:
args=(self.cursor,) + args
Thread(target=do_log, args=args).start()

it's not supported by python2.7, you should use the code below:
args=(self.cursor,) + args
Thread(target=do_log, args=args).start()

Please feel free to make a PR with this change.


Handle Delete operation if pool not found

If the backend rbd or cephfs pool is already deleted we need to return success to the  DeleteVolume RPC call to make it idempotent.
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>Fixes #781

@nixpanic @ShyamsundarR ptal.

rebase required.

CI failure will go into it.

@ShyamsundarR CI passed PTAL

lgtm. Thanks !


Build open-ldap against relenv toolchain

Relates to https://github.com/saltstack/salt/issues/63142

Addressed in 0.10.0


sample commit msg

Pull Request Test Coverage Report for Build #105

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build #103:
0.0%

Covered Lines:
298

Relevant Lines:
298

💛  - Coveralls


Enable test_check_invalidation for CloudFront test

As moto 5.0.16 added support fot get_invalidation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 66.335%

Totals

Change from base Build<PHONE_NUMBER>6:
0.2%

Covered Lines:
1935

Relevant Lines:
2917

💛  - Coveralls


M1 Mac Support

A strange issue arrises when rvsearch is run on an M1 Mac. The search restarts after the final planet is found and gets stuck in this loop indefinitely.

Just saw this, is this still a problem?

I believe it is still a problem but without an M1 Mac myself I can't investigate or debug. Supposedly IPAC is working on getting me a machine that I can test on.


add description and tags to the repository

We should add a description and tags to the repository, for it to be easily discovered.
Description:
"TeaTime is a simple Job Schedule for NodeJS. Don't miss your tea!"

Tags could be javascript, nodejs, scheduler
Description of the repostiry could just be:
"Simple job schedule module for NodeJS"

@FranAmorim I think we should follow @Godje solution for this. Can you handle it?


No document of D3D12_FEATURE_D3D12_OPTIONS4, D3D12_FEATURE_SERIALIZATION, and D3D12_FEATURE_CROSS_NODE

In this page: https://docs.microsoft.com/en-us/windows/desktop/api/d3d12/ne-d3d12-d3d12_feature, D3D12_FEATURE_D3D12_OPTIONS4, D3D12_FEATURE_SERIALIZATION, and D3D12_FEATURE_CROSS_NODE are without document. Their correspondent data structures are not documented neither.

@GrantMeStrength Can you please take a look at this issue?

Thanks for bringing this issue to our attention. The topics have been fixed/restored, and published.
Thanks again!
Steve


chore: added payments to scope

Problem solved
Short description of the bug fixed or feature added
Changes made

[ ] Public API changes: list the public API changes made if any
[ ] Internal API changes: explain the internal logic changes

How to test

[ ] Automated tests: link to unit test file
[ ] Manual tests: step by step instructions on how to test

/release-pr


Documentation of 'group' argument in callbacks passed to each

@mbostock, first of all, thanks for the tremendous work on D3.
I started going through your v4 modules with an eye on updated typescript definition files to go along with them (current DefinitelyTyped definitions are for D3 3.x).
As I went through the code of the d3-selection module, I noticed that, the each(...) method and by implication the exposed methods which internally use each (e.g. attr(...), style(...), prop(...)) are all passed the group argument.
Before making any assumptions, is there a particular intent, why the 'group' argument is not described in the documentation, as is the passing in of the datum and index arguments?
As your library is a fast moving target, thanks to your prolific efforts :smile:, I am currently deciding on the best approach for getting the in-progress updated definitions to the community to co-evolve (pull request on DefinitelyTyped or similar).
I kept it in a local repo for the past few days, as I am also experimenting with a new typescript@next feature, which allows the typing of the 'this' context within functions such as the ones used as value functions passed into each(...) et al. with a DOM element binding.
Thanks in advance.

why the 'group' argument is not described in the documentation

No real reason, other than there was some hemming and hawing over what the right call pattern was, and I never went back and updated the documentation after making the decision on the final API to mimic the behavior of standard array methods such as array.forEach (see #47, d3/d3-array#17). I should update the documentation accordingly.


Allow clients to connect using the MQTT protocol

Description
Allow clients to connect to the broker using the MQTT protocol.
The broker must conform with the standard versions 3.1, 3.1.1, or 5.0.

Already implemented.


How to access the metadata-information on object creation

with https://github.com/larshp/abapGit/commit/471901f9e4d8cd7fd7e123e95eed6c258bc9b63a, metadata-files are being created properly now (at least it seems).
What's missing is the interpretation of it.
Particularly interesting is the information about the serializer which created the file.
However, at the time of lcl_objects=>create_object there is no knowledge about the metadata.
While during serializeat least files are being injected, the information about the serializer cannot be retrieved at other point in time when it shall be instantiated (e. g. at exists).
My only idea is to propagate the files from the repo to lcl_objects at an early time and buffer it there. But that's not a brilliant solution.
@larshp you know your architecture better than myself, any suggestions?

yeah, one step at a time :smile: I haven't had much time lately, but I'll try to catch up tomorrow or Sunday. Need to get a better overview of the issues and what is important.
a: .abapgit files, so far I've envisioned this as one file per repository, much like https://github.com/larshp/abapGit/blob/master/.travis.yml or https://github.com/larshp/abaplint/blob/master/.npmignore or https://github.com/larshp/abaplint/blob/master/.gitignore files to keep top-level information about the repository. We need to get a proper issue created to make plans for what this file should contain. One thing which might be a good idea to place in this file is the MASTER_LANGUAGE. And before creating this file I'd like to add the "next generation XML"(issue to be created), so this file wont change format in the future.
b: we need somehow to distinguish if the object was serialized by a plugin or not. My idea so far have been to add an extra attribute in the XML files, the line

could be

if it was serialized by a plugin, or better yet your approach by mentioning the class name

I think this would be quite easy to access, as the XML file is the entry point for the object. It would also avoid having an extra file per object. I think we should just add the "serializer" tag for plugins, and leave the standard as is, that way most XML files wont change for already serialized objects.
I'll do some work tomorrow on getting the issues organized, and create a "Roadmap" issue for better overview.

closing this issue, moving to separate issues
a: see https://github.com/larshp/abapGit/issues/186
b: see https://github.com/larshp/abapGit/issues/187


[Bug] [URGENT]: Footer Section Occur Twice in Creators Page

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
https://github.com/user-attachments/assets/1e772a3a-15f6-4540-a62f-8a056f68875c
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a WOB contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

check it again : https://decentrade.vercel.app/creators
i think it's fixed by someone already

Hey @Shariq2003 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

Gentle Reminder 🚨🚨
GSSoC-Ext 24 is going to complete in 2 Days. '
Complete your assigned Issues and PR reviews before time to get Points on Leaderboard. '
It was a great experience working with you all, Don't forget to ⭐ star the Repo (only 12 with 62 forks 💔) .
Thanks💗 for your valuable contributions!


Close GasPrice component after click outside

👍  cool implementation

Thanks
Best regards,
Oleksandr Chorman
9 окт. 2019 г., 12:37 +0200, Marek Kirejczyk<EMAIL_ADDRESS>писал:

👍 cool implementation
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


NIFI-6866 Created the RocksDBComponentStatusRepository to persist com…

…ponent stats between restarts.
Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Implements desired functionality described in NIFI-6866: Creating a persistent component stats repository
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically master)?

[X] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[X] Have you written or updated unit tests to verify your changes?
[X] Have you verified that the full build is successful on both JDK 8 and JDK 11?
[X] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[X] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[X] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[X] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[X] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

LGTM

It will be important to highlight which OSs this has been tested to build on and which it has been tested to work on.
Also, the PR will need to include documentation on how to configure NiFi to leverage this storage option, how it works, storage considerations, etc...
storing these metrics is quite helpful so thanks for progress this

@joewitt Not a problem. For my own clarification when you say include documentation do you mean within the body of the PR itself or do you mean update the docs that are distributed with nifi?

@JonathanKessler The PR does not appear to provide any documentation for the user which explains to them that this exists, how to configure it (nifi.properties/etc...).  Take a look at the admin guide or other guides for an example.  http://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#component-status-repository
You'd want to update that to include awareness of your new implementation and how one could configure it to use it.  It would be good to highlight that it is new/experimental and which OSes it has been verified on thus far for example.

@joewitt Just following up to see if the latest commit was what you had in mind for documentation.

@JonathanKessler yeah thanks I think that should be good for now.  Lets the users know it exists and how to get started.  For other components like this we've flagged they're experimental.  Might make sense to do so here.  But even if not it is ok as is.
I would want to spend more time on this before merging myself so hopefully someone else can review/resolve.  The gson dependency I feel like has bitten us before in terms of build portability but I dont see any travis complaints so that is a good sign.

@JonathanKessler This is a really neat ticket/PR request that many nifi admins will find invaluable (I know I would have many times in the past).
I was kicking the tires with this and it certainly persists the processors' history - even through a restart.   But I noticed that the log file continues to grow - even after the "timespan" it covers has been reached.
So for instance, with
buffer.size at 100 and snapshot.frequency is 5 seconds
the log file should level off in size after 500 seconds,
but it continues to grow
Could this be looked at?

@JonathanKessler This is a really neat ticket/PR request that many nifi admins will find invaluable (I know I would have many times in the past).
I was kicking the tires with this and it certainly persists the processors' history - even through a restart.   But I noticed that the log file continues to grow - even after the "timespan" it covers has been reached.
So for instance, with
buffer.size at 100 and snapshot.frequency is 5 seconds
the log file should level off in size after 500 seconds,
but it continues to grow
Could this be looked at?

@JonathanKessler This is a really neat ticket/PR request that many nifi admins will find invaluable (I know I would have many times in the past).
I was kicking the tires with this and it certainly persists the processors' history - even through a restart. But I noticed that the log file continues to grow - even after the "timespan" it covers has been reached.
So for instance, with
buffer.size at 100 and snapshot.frequency is 5 seconds
the log file should level off in size after 500 seconds,
but it continues to grow
Could this be looked at?

Nissim, great catch. There are a number of config options for RocksDB built into the RocksDBMetronome.java class which is kind of a helper/builder. The RocksDBFlowFileRepository allows for all of those options to be set but my implementation does not. I will update my code to allow those to be set using different property names than what the RocksDBFlowfileRepository uses of course.
FYI there appears to be a limit for log file growth that is 1G by default.

@JonathanKessler This is a really neat ticket/PR request that many nifi admins will find invaluable (I know I would have many times in the past).
I was kicking the tires with this and it certainly persists the processors' history - even through a restart. But I noticed that the log file continues to grow - even after the "timespan" it covers has been reached.
So for instance, with
buffer.size at 100 and snapshot.frequency is 5 seconds
the log file should level off in size after 500 seconds,
but it continues to grow
Could this be looked at?

Nissim, great catch. There are a number of config options for RocksDB built into the RocksDBMetronome.java class which is kind of a helper/builder. The RocksDBFlowFileRepository allows for all of those options to be set but my implementation does not. I will update my code to allow those to be set using different property names than what the RocksDBFlowfileRepository uses of course.
FYI there appears to be a limit for log file growth that is 1G by default.

@JonathanKessler I was going to start working through a review on this. Re: the OS question.  (I likely won't use CentOS or RHEL anyway.)
@NissimShiman What did you test on?

@jfrazee I have not, still using CentOS 7.

@jfrazee I tested it on Red Hat Enterprise Linux 7

Just as a FYI - I think this is superceded by #4839.

Thanks for calling that to our attention @pvillard31. I think with that in mind it probably makes sense to just look at whether there's any changes made in #4839 that would make alternatives difficult to implement and we can come back and discuss whether there's a need for a RocksDB implementation in main or if it should be user-owned code.


support at-least-one groups of features (nested ideally)

In rustup we have two HTTP backends (curl and reqwest). These are both features, and both can be disabled, but at least one must be enabled.
Similarly, for reqwest we have two features selecting the TLS cert stack to use, and again at least one must be enabled.
We enable sensible defaults via the default-features mechanism.
So we have the following feature sets that are valid:
["curl-backend"]
["reqwest-backend", "reqwest-default-tls"]
["curl-backend", "reqwest-backend", "reqwest-default-tls"]
["reqwest-backend", "reqwest-rustls-tls"]
["curl-backend", "reqwest-backend", "reqwest-rustls-tls"]
["reqwest-backend", "reqwest-default-tls", "reqwest-default-tls"]
["curl-backend", "reqwest-backend", "reqwest-default-tls", "reqwest-default-tls"]
I'd love to be able to express this to cargo-all-features somehow. Right now I've just forced it to always have reqwest-backend and reqwest-rustls-tls on.

I opened a PR #50 that would allow to give the following specification, resulting in your required feature sets:
[features]
curl-backend = []
reqwest-backend = []
reqwest-default-tls = ["reqwest-backend"]
reqwest-rustls-tls = ["reqwest-backend"]

[package.metadata.cargo-all-features]
rules = [
    "'curl-backend'|'reqwest-backend'",
    "'reqwest-backend'=>'reqwest-default-tls'|'reqwest-rustls-tls'",
]

Feel free to use the PR in the meantime, read the README for more details of this feature, and give feedback. I also added a test case based off of this issue.


TypeScript code is not recogonized

Describe the bug
SvelteKit is not recognising TypeScript code.
This is a mini project with some modifications based on the SvelteKit official template... I added tailwindcss and settings for normal SPA (because I need the router so I used kit).
Can anyone have a look at my reproduction repo to see what I did wrong? Thanks for the help. I believe it should be my own issue since I believe there's no way that Svelte won't work with TypeScript.

Reproduction
https://github.com/xsjcTony/50projects50days-svelte
Logs
No response
System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz
    Memory: 42.50 GB / 63.84 GB
  Binaries:
    Node: 18.12.1 - C:\NodeJS\node.EXE
    Yarn: 1.22.19 - C:\NodeJS\yarn.CMD
    npm: 9.4.0 - C:\NodeJS\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (109.0.1518.69)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @sveltejs/adapter-static: ^1.0.5 => 1.0.5
    @sveltejs/kit: ^1.3.6 => 1.3.6
    svelte: ^3.55.1 => 3.55.1
    vite: ^4.0.4 => 4.0.4

Severity
blocking all usage of SvelteKit
Additional Information
No response

Just a guess, but the './types' path might be reserved because Svelte uses it for automatically typing the data returned from load functions.
Does it work if you change the name of the types file to something else?

The reserved name is ./$types, so that can't be it


C int conversion issue

While Go adapts int to the platform (64-bit systems get int64, while 32-bit systems get int32), C.int is defined as 32 bits. Thus running this library on 64-bit systems gives invalid results when ints are provided.
A quick test on the MaxIndex function produced the following:
253403070522,<PHONE_NUMBER>12,<PHONE_NUMBER>10,<PHONE_NUMBER>99,<PHONE_NUMBER>99,<PHONE_NUMBER>66,<PHONE_NUMBER>66,<PHONE_NUMBER>66,<PHONE_NUMBER>66,<PHONE_NUMBER>66...

What was expected was:
55, 55, 55, 55, 55, 55, 55, 55, 55, 55...

Ah interesting

Fixed.


added user_data option

added option to read user_data from a specified file
locally tested, working

related to rmoriz/knife-digital_ocean#74

looks like the CI is on the fritz.

fixed ci + merged. Thanks!
https://github.com/rmoriz/knife-digital_ocean/commit/860c5e3ed5da4c7575b64666467408f2bac887f5

Thanks for the quick fix and merge!
Also I think issue #74 can be closed now.


Fix Nightly Builds

This PR fixes the following behavior:

should have 1 existing nightly build that gets regularly replaced
should not break when the main build doesn't break

Tested this on https://github.com/gtfierro/reasonable/releases and it seems to work well


Question: draw circular text around an image

Can anybody post an example of how to draw text around a circular image?
Something like the following:

Thanks in advance :)

How about something like this: https://snack.expo.io/@msand/text-on-a-circle-path
import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import { Constants, Svg } from 'expo';

const { Circle, Text, TextPath, TSpan, G, Path } = Svg;

const SvgComponent = props => (
  <Svg height="100%" width="100%" viewBox="0 0 300 300" {...props}>
    <G id="circle">
      <Circle
        r={100}
        x={150}
        y={150}
        fill="none"
        stroke="#00008b"
        strokeWidth={14}
      />
    </G>
    <G id="webCompatible">
      <Path
        d="M 64,0 A 64,64 0 0 1 -64,0 A 64,64 0 0 1 64,0"
        transform="translate(150,150)"
        stroke="darkblue"
        fill="none"
      />
    </G>
    <Text fill="#000" fontSize="14">
      <TextPath href="#circle">
        <TSpan dy={-14}>
          Text along a curved path... Text along a curved path... Text along a
          curved path...
        </TSpan>
      </TextPath>
    </Text>
    <Text fill="#000" fontSize="10">
      <TextPath href="#webCompatible">
        <TSpan>
          Text along a curved path... Text along a curved path... Text along a
          curved path...
        </TSpan>
      </TextPath>
    </Text>
  </Svg>
);

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <SvgComponent />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

@msnad Thanks a lot!
So the following is the result of the code that is attached below. How would you place the text above the image so that it is centered (as in my example in the first post, above)?

const SvgComponent = props => (
  <Svg height="100%" width="100%" viewBox="0 0 300 300" {...props}>
    <G id="circle">
      <Circle
        r={100}
        x={150}
        y={150}
        fill="none"
        stroke="none"
        strokeWidth={0}
      />
    </G>
    <Image
      style={{ width: 220, height: 220, borderRadius: 110,
        marginLeft: 70, marginTop: 180 }}
      source={require('./doggy.jpg')}
    />
    <Text fill="#000" fontSize="14">
      <Text fill="#000" fontSize="14">
        <TextPath href="#circle">
          <TSpan dy={-14}>
            Text along a curved path...
          </TSpan>
        </TextPath>
      </Text>
    </Text>
  </Svg>
);

Try using a rotate transform:
import { View, StyleSheet } from 'react-native';
import { Constants, Svg } from 'expo';

const { Circle, Text, TextPath, TSpan, G, Path } = Svg;

const SvgComponent = props => (
  <Svg height="100%" width="100%" viewBox="0 0 300 300" {...props}>
    <G id="circle">
      <Circle
        r={100}
        x={150}
        y={150}
        fill="none"
        stroke="#00008b"
        strokeWidth={14}
        transform="rotate(-90)"
      />
    </G>
    <G id="webCompatible">
      <Path
        d="M 64,0 A 64,64 0 0 1 -64,0 A 64,64 0 0 1 64,0"
        transform="translate(150,150)rotate(-90)"
        stroke="darkblue"
        fill="none"
      />
    </G>
    <Text fill="#000" fontSize="14">
      <TextPath href="#circle">
        <TSpan dx="0" dy={-14}>
          Text along a curved path...
        </TSpan>
      </TextPath>
    </Text>
    <Text fill="#000" fontSize="10">
      <TextPath href="#webCompatible">
        <TSpan>
          Text along a curved path...
        </TSpan>
      </TextPath>
    </Text>
  </Svg>
);

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <SvgComponent />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

Thanks @msand
Is there any good tutorial reference for all this magic?
Also, any idea why the following happens?
I tried to include the same code (see below) in a non-expo react-native application, and this is what I get:

This is the code:
import React, { Component } from 'react';
import { Image, StyleSheet, View } from 'react-native';
import {
  Svg,
  G as SvgG,
  Circle as SvgCircle,
  Text as SvgText,
  TextPath as SvgTextPath,
  TSpan as SvgTSpan
} from 'react-native-svg';

const SvgComponent = props => (
  <View style={{ flex: 1 }}>
    <Svg height="500" width="500" viewBox="0 0 300 300" {...props}>
      <SvgG id="circle">
        <SvgCircle
          r={100}
          x={150}
          y={150}
          fill="none"
          stroke="none"
          strokeWidth={0}
          transform="rotate(-135)"
        />
      </SvgG>
      <Image
        style={{ width: 220, height: 220, borderRadius: 110,
          marginLeft: 60, marginTop: 175 }}
        source={require('./doggy.jpg')}
      />
      <SvgText fill="#000" fontSize="14">
        <SvgText fill="#000" fontSize="14">
          <SvgTextPath href="#circle">
            <SvgTSpan dy={0}>
              Text along a curved path...
            </SvgTSpan>
          </SvgTextPath>
        </SvgText>
      </SvgText>
    </Svg>
  </View>
);

export class App extends Component {
  render() {
    return (
      <SvgComponent />
    )
  }
}

You should use the image component from react-native-svg rather than react-native:
N.B. This code requires v9.2.4 I published some minutes ago, giving support to use images with urls as plain strings.
import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import {  Circle, Text, TextPath, TSpan, G, Path, Svg, Image } from 'react-native-svg';

const SvgComponent = props => (
  <Svg height="100%" width="100%" viewBox="0 0 300 300" {...props}>
    <G id="circle">
      <Circle
        r={100}
        x={150}
        y={150}
        fill="none"
        stroke="#00008b"
        strokeWidth={14}
        transform="rotate(-90)"
      />
    </G>
    <G id="webCompatible">
      <Path
        d="M 64,0 A 64,64 0 0 1 -64,0 A 64,64 0 0 1 64,0"
        transform="translate(150,150)rotate(-90)"
        stroke="darkblue"
        fill="none"
      />
    </G>
    <Image href="https://facebook.github.io/react/logo-og.png" x={100} y={100} width={100} height={100} />
    <Text fill="#000" fontSize="14">
      <TextPath href="#circle">
        <TSpan dx="0" dy={-14}>
          Text along a curved path...
        </TSpan>
      </TextPath>
    </Text>
    <Text fill="#000" fontSize="10">
      <TextPath href="#webCompatible">
        <TSpan>
          Text along a curved path...
        </TSpan>
      </TextPath>
    </Text>
  </Svg>
);

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <SvgComponent />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: 50,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

I would recommend reading the svg spec, it's relatively well written. And then just google for specific tutorials/working examples if you get stuck.

Thanks @msand , it works. Is it possible to display a circular image as in the following React-Native image?
<Image
        style={{ width: 220, height: 220, borderRadius: 110,
          marginLeft: 60, marginTop: 175 }}
        source={require('./doggy.jpg')}
      />

Since react-native-svg probably doesn't support circular images at this point, the following can be a possible solution:
import React, { Component } from 'react';
import { View, Image } from 'react-native';
import {  Circle, Text as SvgText, TextPath, TSpan, G, Svg }
  from 'react-native-svg';

export class ListScreen extends Component {
  render() {
    return (
      <View style={{ flex: 1, alignItems: 'center' }}>

        <Svg position="absolute" height="200" width="200"
          viewBox="0 0 300 300">
          <G id="circle">
            <Circle
              r={75}
              x={150}
              y={176}
              fill="none"
              stroke="#fff"
              strokeWidth={14}
              transform="rotate(-145)"
            />
          </G>
          <SvgText fill="#000" fontSize="14">
            <TextPath href="#circle">
              <TSpan dx="0" dy={-20}>
                Text along a curved path2
              </TSpan>
            </TextPath>
          </SvgText>
        </Svg>
        <View>
          <Image
            style={{ height: 120, width: 120, borderRadius: 60,
              marginTop: 70 }}
            source={require('./dog.jpg')}
          />
        </View>
      </View>
    )
  }
}

How about the example from the readme? https://github.com/react-native-community/react-native-svg#image
Reduced form: https://snack.expo.io/@msand/sponaneous-cereal
import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { Constants, Svg } from 'expo';

const { Defs, ClipPath, Circle, Image } = Svg;

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <Svg height="100%" width="100%" viewBox="0 0 100 100">
          <Defs>
            <ClipPath id="clip">
              <Circle cx="50" cy="50" r="50" />
            </ClipPath>
          </Defs>

          <Image
            x="0"
            y="0"
            width="100"
            height="100"
            opacity="0.5"
            preserveAspectRatio="xMidYMid slice"
            href={require('./assets/snack-icon.png')}
            clipPath="url(#clip)"
          />
        </Svg>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

With regards to using react-native View/Text/Image components, we don't have any official support for that, it would require implementing foreignObject, which shouldn't be too much work if you have a significant need for it, I can probably describe the changes you would need to make if you're interested in working on it.

@msand
Thanks a lot Mikael, for the last post and for all the great help!

 Happy I could help

Hi again...
10 hours ago I thought that I will not bother you again about this issue, but I am a bit stuck in something, and thought that although the following is not really an SVG issue, maybe you will have an idea...
The issue is the following:
The text that I display in a circle is dynamic. I am trying to find a way to make it always symmetric. I thought that I will find a formula that will calculate the rotation angle based on the length of text, and this will handle it. However, I am facing two problems:

I couldn't find such a formula, so I defined a lookup table that will have a rotation value for every text length (up to ~45 characters which is the maximum).  Do you have a better idea?
The more serious problem is that, even when I use the monspace font, the text is displayed differently for different strings of the same length. Here are two examples where strings of the same length are displayed (first one displayed symmetrically, second one not).
Any idea why this happens? Any idea how to handle this?

If you want to center the text along the middle of a path, you can use this: https://snack.expo.io/@msand/text-on-a-circle-path
I added startOffset="50%" to the TextPath, textAnchor="middle" to the TSpan, and rotated the Path/Circle 90degrees in the opposite direction instead.
import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import { Constants, Svg } from 'expo';

const { Circle, Text, TextPath, TSpan, G, Path, Defs, ClipPath, Image } = Svg;

const SvgComponent = props => (
  <Svg height="100%" width="100%" viewBox="0 0 300 300" {...props}>
    <G id="circle">
      <Circle
        r={100}
        x={150}
        y={150}
        fill="none"
        stroke="#00008b"
        strokeWidth={14}
        transform="rotate(+90)"
      />
    </G>
    <G id="webCompatible">
      <Path
        d="M 64,0 A 64,64 0 0 1 -64,0 A 64,64 0 0 1 64,0"
        transform="translate(150,150)rotate(+90)"
        stroke="darkblue"
        fill="none"
      />
    </G>
    <Text fill="#000" fontSize="14">
      <TextPath href="#circle" startOffset="50%">
        <TSpan textAnchor="middle" dy={-14}>
          Text along a curved path...
        </TSpan>
      </TextPath>
    </Text>
    <Text fill="#000" fontSize="10">
      <TextPath href="#webCompatible" startOffset="50%">
        <TSpan textAnchor="middle">Text along a curved path...</TSpan>
      </TextPath>
    </Text>
    <Defs>
      <ClipPath id="clip">
        <Circle cx="50" cy="50" r="64" />
      </ClipPath>
    </Defs>
    <Image
      x="3.5"
      y="7"
      width="100"
      height="100"
      opacity="0.5"
      preserveAspectRatio="xMidYMid slice"
      href={require('./assets/snack-icon.png')}
      clipPath="url(#clip)"
      transform="translate(100,100)"
    />
  </Svg>
);

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <SvgComponent />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
});

Hey @msand ;
In all my tests I used version 5.5.1 of react-native-svg (I am using version 0.55.3 of react-native) and the code seemed to work fine.
When I tried to rebuild the repo, however, the circular text is not displayed at all.
Does it require a newer version? I tried version 6.0.0 and it didn't help. I even tried the latest version (9.3.6)  which is not supposed to work with the version of react-native that I am using (according to https://github.com/react-native-community/react-native-svg#notice) but it doesn't work as well.
Any idea?

Hmm, are you using the one with circle or the web compatible? I think the web-compatible version might work in v5, but text on a path with the other geometric primitives rather than just paths came later, not exactly sure what version right now. Latest version should work fine. Can you make a reproducible git repo using a clean project?

It will take me some time creating a repo, since I have some urgent tasks for today and tomorrow.   Meanwhile, here is the code I am using:
const SvgComponent = () => (
  <Svg position="absolute" height="200" width="200" viewBox="0 0 300 300">
    <SvgG id="circle">
      <SvgCircle r={75} x={150} y={140}
        fill="none" stroke="#fff" strokeWidth={14}
        transform="rotate(+90)"
      />
    </SvgG>
    <SvgText fill="#000" fontSize="20" fontFamily="Quicksand-Regular">
      <SvgTextPath href="#circle" startOffset="50%">
        <SvgTSpan dx="0" dy={-20} textAnchor="middle">
          {titleString}
        </SvgTSpan>
      </SvgTextPath>
    </SvgText>
  </Svg>
);

This seems to work just fine for me in the latest version / development branch at least:
import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native'
import Svg, { G, Text, TextPath, TSpan, Circle } from 'react-native-svg';

const SvgComponent = () => (
  <Svg position="absolute" height="200" width="200" viewBox="0 0 300 300">
    <G id="circle">
      <Circle r={75} x={150} y={140}
                 fill="none" stroke="#fff" strokeWidth={14}
                 transform="rotate(+90)"
      />
    </G>
    <Text fill="#000" fontSize="20" fontFamily="Quicksand-Regular">
      <TextPath href="#circle" startOffset="50%">
        <TSpan dx="0" dy={-20} textAnchor="middle">
          testing
        </TSpan>
      </TextPath>
    </Text>
  </Svg>
);

export default class App extends Component {
  render() {
    return (
      <View style={styles.container}>
        <SvgComponent />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    backgroundColor: 'gray',
    flex: 1
  }
});

Seems identical to my version... Did you change anything?

Only the imports / component names.

I believe that this should not make any difference...
Which react-native and react-native-svg are you using?

react: 16.8.3
react-native: 0.59.1
react-native-svg: develop branch

That's what you wrote in package.json? react-native-svg: develop branch?
And shouldn't I follow the guidance in https://github.com/react-native-community/react-native-svg#notice?

I would recommend upgrading to the latest version of both react-native and react-native-svg. I'm just using the latest code I wrote when I pushed to the develop branch, you can check for specific commits from here: https://github.com/react-native-community/react-native-svg/tree/develop
And install by using e.g.
npm i react-native-svg@react-native-community/react-native-svg#9321aa5

or
yarn add react-native-svg@react-native-community/react-native-svg#9321aa5

It is a large project. Upgrading may be a long process.
The strange thing is that at some point everything worked fine with version 5.3.1 of react native svg. However, when I pushed the changes to gitlab, cloned and rebuilt it, the circular text stopped to work.

To display the following:

I am using the code attached below.
How can I display the following, but not upside down?

Code for the displaying the 1st one:
                 <View style={{ flex: 1,
                    justifyContent: 'center',
                    alignItems: 'center' }}>
                    <Svg position="absolute" height="200" width="200"
                      viewBox="0 0 300 300">
                      <G id="circle">
                        <Circle
                          r={75}
                          x={150}
                          y={176}
                          fill="none"
                          stroke="#fff"
                          strokeWidth={14}
                          transform="rotate(32)"
                        />
                      </G>
                      <SvgText fill="#000" fontSize="20">
                        <TextPath href="#circle">
                          <TSpan dx="0" dy={-20}>
                            text along an arc
                          </TSpan>
                        </TextPath>
                      </SvgText>
                    </Svg>
                </View>

@msand your snack was out of date so I updated it with respect to Expo SDK 47 https://snack.expo.dev/@danstepanov/text-on-a-circle-path?platform=ios


[C#] [JS Breaking changes MVP] Moderator

All the code files in the moderators folder

[ ] AzureOpenAIModerator.ts
[ ] DefaultModerator.ts
[ ] Moderator.ts
[ ] OpenAIModerator.ts

Prompt Management - All prompt management is now done by the Planner. This impacted the interfaces for both the Planner and Moderator.

https://github.com/microsoft/teams-ai/pull/805


sudo hb-service update-node is not installing latest version

Describe Your Problem:
sudo hb-service update-node wont install the latest version.
It tells me that version 14.17.3 is found, but at the end the script tells me that 14.17.2 is latest and already installed.
Also same than using sudo apt-get install -y nodejs
Logs:
ℹ Updating Node.js from v14.17.2 to v14.17.3...
ℹ Updating from NodeSource...

## Installing the NodeSource Node.js 14.x repo...

## Populating apt-get cache...

+ apt-get update
Hit:1 http://phoscon.de/apt/deconz buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease
Hit:4 http://archive.raspberrypi.org/debian buster InRelease
Hit:5 https://dl.ubnt.com/unifi/debian stable InRelease
Fetched 15.0 kB in 2s (8,717 B/s)
Reading package lists... Done

## Confirming "buster" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null

## Creating apt sources list file for the NodeSource Node.js 14.x repo...

+ echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit:1 http://phoscon.de/apt/deconz buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Hit:5 https://dl.ubnt.com/unifi/debian stable InRelease
Reading package lists... Done

## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
     echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (14.17.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ℹ Restarting Homebridge Service...
✔ Homebridge Restarted

Environment:

Node.js Version: 14.17.2
NPM Version: 7.19.1
Homebridge Version: 1.3.4
Homebridge Config UI X Version: 4.41.1
Operating System: Raspbian
Process Supervisor: Systemd

Nodesource hasn't updated their repo yet, give it a few days.
As you can see 14.17.3 has not yet been added to the repo:
https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/


build file not exist

The build was recently overhauled and docs not updated. You should be able to just type make now.

Got error like this, seems like it doesn't find pthread and libc, while apparently those are installed on my system. Am I missing anything?
make
go build -o dist/flanneld
-ldflags "-extldflags -static -X github.com/coreos/flannel/version.Version=v0.5.3-107-g982dbdb"
github.com/coreos/flannel
/usr/lib/golang/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [dist/flanneld] Error 2

The make problem should be fixed on current HEAD


Improved Docs

I would like to keep the MIT license as is and follow the industry standards on that.  Thank you for your suggestion though.


Hibernate Queries and Annotations

Description
Hibernate Annotations and Queries
Session and Session Factory
Hibernate Annotations
Hibernate Queries for Crud Operations
Domain
Backend Dev (Java)
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign


[vm] Image builder prototype.

Prototype for image builder.
For more info see here.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

Closing in favor of #9641.


cp_r function does not preserve symlinks (unlike cp -r) in copied directory

Using Shelly on Linux this time. I have a directory containing a symlink with relative path. If I copy the directory using the cp_r function, it replaces the symlinks with the target files.
Shouldn't cp_r and cp -r do the same things? That's what I'd expect.

This does seem like nicer default behavior.
Right now I am doing my own descent and using this copyFile function.
sytem-fileio is deprecated now, but I would assume that the behavior from directory is the same.
So it seems like the easiest thing to do is to just insert a symlink check. Interested in adding a test case to Shelly for this?

I'm not sure how this should be best approached as the test would be platform specific and would require adding such dependency as unix package.

Can always use conditional compilation for Windows. Maybe there is a library that already implements cp -r cross-platform that can be used?

Making a test case without unix is difficult as well. Symlinks on Windows are rather tricky, they requires admin rights to create them. Bloody hackers and their symlinks!.
Anyway, here is a draft for the test: symlinks with absolute paths.
However, this fails – surprisingly for me – with Exception: FilePath "/Users/foo/bar/baz/shelly/test/a/d1": createSymbolicLink: does not exist (No such file or directory)).
diff --git a/shelly.cabal b/shelly.cabal
index be228a5..a27272b 100644
--- a/shelly.cabal
+++ b/shelly.cabal
@@ -137,7 +137,8 @@ Test-Suite shelly-testsuite
     lifted-base,
     lifted-async,
     enclosed-exceptions,
-    exceptions
+    exceptions,
+    unix

   extensions:
     CPP
diff --git a/test/src/CopySpec.hs b/test/src/CopySpec.hs
index c601c22..9b92b45 100644
--- a/test/src/CopySpec.hs
+++ b/test/src/CopySpec.hs
@@ -10,6 +10,7 @@ import Prelude hiding ( FilePath)
 #endif
 import Control.Monad (forM_)
 import System.IO.Error
+import System.Posix.Files (createSymbolicLink, readSymbolicLink, fileExist, isSymbolicLink)
 import Help

 copySpec :: Spec
@@ -83,3 +84,32 @@ copySpec = do
           writefile "b/d" ""
           cp_r b b `catch_sh` (\e -> liftIO $ assert $ isUserError e)
       assert True
+
+    it "copies the symlinks" $ do
+      shelly $
+        within_dir "test/a" $ do
+
+          d1       <- absPath "d1"
+          writefile d1 ""
+          b_d2     <- absPath "b/d2"
+          b_e1     <- absPath "b/e1"
+          b_e2     <- absPath "b/e2"
+          c_cc_e1  <- absPath "c/cc/e1"
+          c_cc_e2  <- absPath "c/cc/e2"
+
+          mkdir b
+          writefile b_d2 ""
+
+          liftIO $ do
+            createSymbolicLink (show d1) (show b_e1)
+            createSymbolicLink (show b_d2) (show b_e2)
+
+          mkdir_p c
+          cp_r b "c/cc"
+
+          e1_res <- liftIO $ readSymbolicLink (show c_cc_e1)
+          e2_res <- liftIO $ readSymbolicLink (show c_cc_e2)
+
+          liftIO $ assert $ e1_res == (show d1)
+          liftIO $ assert $ e2_res == (show b_d2)
+      assert True

Probably we could make this test-case and requirement on unix conditional.
As for library with cp -r functionality: I'm not aware of any.


Switch to purely static markdown pages

📝Changed routes:

/docs/[page]

(view full size)

1 deleted route:

/docs/[subject]

Commit f99f8f36c73fb67439f3e0772c3836a3e1591f1c (https://website-git-react-markdown.unity-ci-team.now.sh).


Help with using GZipMiddleware in Connexion 3

I want every response from my app to be compressed. I setup my connexion 3 app with GZipMiddleware like so:
app.add_middleware(GZipMiddleware, minimum_size=0)

But on request I receive this error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

I'm not sure if I do something wrong, do I need to set the encoding somehow?
I would be very thankful for any guidance on this.

I strongly assume the issue is because the GZipMiddleware is being introduced after the validation (default middleware positioning). See also here in the documentation
I made it work while specifying the order of the GZipMiddleware, loading it before the validation, like this...
from connexion import AsyncApp
from connexion.middleware import MiddlewarePosition

# ...

app = AsyncApp(__name__, specification_dir="./spec/")
app.add_api("openapi.yaml")

# ...

app.add_middleware(GZipMiddleware, MiddlewarePosition.BEFORE_VALIDATION, minimum_size=1000)

# ...

As soon as I find some time, I'll try to document different middleware implementations accordingly.

Thanks @feteu for the quick answer. Indeed, you were right, that solves the issue.


Problem: can't find process using a given indexer database

Given a particular mina-indexer database directory, a sysadmin would like to know which process is using the database. A mina-indexer process might also like to know if the database directory is in use by another running process. This is because it is impossible (unsupported) for more than one Indexer to use a given database directory at a time. Without this, it is impossible to safely re-use a database directory that exists when started a mina-indexer server. Since it takes hours to re-create a database directory from logs, this is a major problem.

A solution to this problem, for example, would be to write a PID file to the database directory whenever a server is starting. Before doing that, the server should consult the database directory to see if there is already a PID file there. If there is, and the process with that PID is still running, then the server cannot start. If there is no such process (faulty shutdown by the prior Indexer), or if there is no PID file, then it is safe for the starting Indexer server to use the database. (Be careful of race conditions. Use links.)
This solution has the advantage that the PID file can be used by sysadmins and outside tooling to know the same thing that the Indexer knows - which process is using that database directory. This would be useful if, for example, the sysadmin/tool is considering deleting the database directory. If there is a PID, and the associated process is live, then it is not safe to delete.


Https requests

Looks like there are only HTTP requests to the API. For sure it should be moved to HTTPS - I can prepare PR if you consider merging it.

Looks like it's supported here https://github.com/paymill/paymill-ruby/blob/master/lib/paymill.rb#L44 - was looking on https://github.com/paymill/paymill-ruby/blob/master/lib/paymill/restful/methods.rb file


Missing Pull Request Template

Current Implementation
Currently there is no pull request template available in the cwa-app-ios GitHub repository.
Suggested Enhancement
Adding one or more pull request templates.
https://help.github.com/en/github/building-a-strong-community/creating-a-pull-request-template-for-your-repository
Expected Benefits
Standardized pull requests in terms of contribution guidelines, motivation, solution, implementation, tests, etc.

Hi @LukasMasuch ,
Do we have any plan to do it for every Repos?
Thanks.
Best regards
Hao


Fix for APP_KEY not being set in .env file

The APP_KEY environment variable isn't being set properly by php artisan key:generate. Ensuring the placeholder value isn't surrounded by double quotes fixes this problem, stopping 500 errors caused by an invalid key when users try and set Cachet up.
Fixes #66 and #69.

Thank you!


Build the Docker images in the Makefile

We had an infrastructure failure where the yum repo wasn't available. This
meant that the docker build process for the base image for every test failed.
Unfortunately, we check for the base image and attempt to build it once per
testcase rather than once per test run, so our tests took forever to run and
had an error for every test. This commit moves building the base image to the
Makefile so that if we hit this issue in the future, we'll fail fast.

looks good

Thanks, I'll push after I make sure everything still works.

Thanks, I'll push after I make sure everything still works.


CLISP runs tests in reverse order

Running on a fresh version, on CLISP, outputs the following:

Thinking about ASSERTS
TEST-TRUE-OR-FALSE requires more meditation.
You have not yet reached enlightenment ...
A koan is incomplete.
Please meditate on the following code:
File "koans/asserts.lsp"
Koan "TEST-TRUE-OR-FALSE"
Current koan assert status is "(INCOMPLETE INCOMPLETE)"
You are now 0/175 koans and 0/27 lessons closer to reaching enlightenment

TEST-TRUE-OR-FALSE is the last koan of asserts.lsp

Yes

This happens on SBCL too, however not for all koans. It does happen in assert.lsp though.

I'm hitting this as well with CLISP. It's frustrating writing solutions to each exercise in top-down order and then validating them in bottom-up order.

Root issue is that the framework bundles the tests into a hash and then iterates over that hash to get test names:
https://github.com/google/lisp-koans/blob/35a520021fab4393b2565dd42ca9e626ac0951b7/lisp-unit.lsp#L716
Common Lisp hyperspec clairifies that the order of evaluation in common lisp for looping over hashes is undefined (http://www.lispworks.com/documentation/HyperSpec/Body/06_abaf.htm).
It appears that (at least on my machine configuration / common lisp version), replacing the run-koans method in lisp-unit.lsp with the following ameliorates the issue in practice, but this solution is itself implementation-dependent, and a real solution would involve reworking how the lisp-unit.lsp package manages the list of tests to treat it as a list, not a hashtable.
(defun run-koans (package)
  "Run the list of test thunks in the package. Stopping
   at a failure or incomplete, with more helpful messaging"
  (let ((tests (loop
                  with results = nil
                  for test-name being each hash-key in (package-table package)
                  using (hash-value unit-test)
                  do (push `(,test-name . ,unit-test) results)
                    finally (return results))))
    (loop

    with koan-results = nil
    for (test-name . unit-test) in tests
    if unit-test do
      (push (list test-name (koan-result (code unit-test))) koan-results)
    else do
      (push (list test-name :missing) koan-results)
    until (and (not *proceed-after-failure*) (any-non-pass-p koan-results))
    finally (return koan-results))))


When using ESLint and TypeScript checkers together, ESLint checker only runs at startup

Describe the bug
When I start up my Vite dev server, ESLint and TypeScript both run.
When I change a file after this point, only TypeScript runs. It runs twice on each file change. My logs look like this:
  VITE v5.3.3  ready in 423 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: http://<IP_ADDRESS>:5173/

[TypeScript] Found 0 errors. Watching for file changes.
[ESLint] Found 0 error and 0 warning
4:24:43 PM [vite] hmr update /src/Map.tsx

[TypeScript] Found 0 errors. Watching for file changes.

[TypeScript] Found 0 errors. Watching for file changes.
4:25:00 PM [vite] hmr update /src/Map.tsx

[TypeScript] Found 0 errors. Watching for file changes.

[TypeScript] Found 0 errors. Watching for file changes.
4:25:04 PM [vite] hmr update /src/Map.tsx

[TypeScript] Found 0 errors. Watching for file changes.

[TypeScript] Found 0 errors. Watching for file changes.

Reproduction
My config:
    checker({
      typescript: {buildMode: true},
      eslint: {
        lintCommand: 'eslint . --ext ts,tsx --report-unused-disable-directives',
      },
    }),

I believe this is all that's needed to reproduce the behavior!
Expected behavior
ESLint and Typescript checkers run once each on every change
System Info
System:
    OS: Linux 6.8 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (16) x64 AMD Ryzen 7 5800X3D 8-Core Processor
    Memory: 12.98 GB / 31.26 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 22.4.1 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.8.1 - /usr/local/bin/npm
  npmPackages:
    vite-plugin-checker: ^0.7.2 => 0.7.2

Additional context
No response
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

What's the version of typescript and eslint in your project?

Hey, thanks for taking a look at my issue! I'm on<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>

same for me for a year

I had the same issue (eslint run only once at startup) but apparently not for the same reason, I just mention it if it can help someone:
Don't forget the directory in the lintCommand attribute (in my case lintCommand: "eslint ." instead of lintCommand: "eslint").

https://github.com/fi3ework/vite-plugin-checker/blob/e6d564f3e281d66f037bd54333cc852639e87af4/packages/vite-plugin-checker/src/checkers/eslint/main.ts#L144
https://github.com/fi3ework/vite-plugin-checker/blob/e6d564f3e281d66f037bd54333cc852639e87af4/packages/vite-plugin-checker/src/checkers/eslint/main.ts#L155
This plugin reads the file path from the command and sends it to the watcher for monitoring. Therefore, if no file path is provided, no files will be monitored. As a result, even when using Flat Config, a path must be passed for it to function properly.

I did pass the current directory . as a path in my command. Or did you mean something else? Admittedly it's been a while since I've worked with Vite at this point.

Sorry, I didn't notice that you provided . as the path. I was primarily explaining the reason mentioned in this comment about "Don't forget the directory in the lintCommand attribute" and reminding Flat Config users that they must include it as well, since Flat Config typically does not require specifying a path.


🐛 Font Consistency Issue: Table of Contents Header Font Not Matching Rest of Website

On mobile screens, the font used for the “สารบัญ” (Table of Contents) header does not match the font used in the rest of the website’s content. This inconsistency creates a visual discrepancy that affects the cohesive look and feel of the website on mobile devices.
Steps to Reproduce:

Open the website on a mobile device.
Navigate to any page with the “สารบัญ” (Table of Contents) header.
Observe that the font style or size differs from the rest of the website’s content on mobile.

Expected Behavior:
The “สารบัญ” header on mobile should use the same font style and size as the other headings and content on the website to ensure a consistent appearance.
Actual Behavior:
The font of the “สารบัญ” header is visually different on mobile, leading to an inconsistent design.

Fixed in
https://github.com/BSO-Space/BSOSpace-Blog-Frontend/commit/856c9ee6bed373abf357406abc90b1454d602bd0


pyboard 'socket' object has no attribute 'fileno'

I found that socket has no attribute fileno when using MicroWebSrv2 on pyboard.
       ---------------------------
       - Python pkg MicroWebSrv2 -
       -      version 2.0.6      -
       -     by JC`zic & HC2     -
       ---------------------------

MWS2-INFO> Stops the managed pool.
Traceback (most recent call last):
  File "main.py", line 39, in <module>
  File "MicroWebSrv2/microWebSrv2.py", line 223, in StartManaged
  File "MicroWebSrv2/microWebSrv2.py", line 215, in StartManaged
  File "MicroWebSrv2/microWebSrv2.py", line 190, in StartInPool
  File "MicroWebSrv2/libs/XAsyncSockets.py", line 381, in Create
  File "MicroWebSrv2/libs/XAsyncSockets.py", line 392, in __init__
  File "MicroWebSrv2/libs/XAsyncSockets.py", line 263, in __init__
  File "MicroWebSrv2/libs/XAsyncSockets.py", line 151, in AddAsyncSocket
  File "MicroWebSrv2/libs/XAsyncSockets.py", line 56, in _addSocket
AttributeError: 'socket' object has no attribute 'fileno'

Hi @Meekdai and thank you for your feedback.
It's right, fileno() function doesn't exists on some micropython versions.
I've fixed this problem in XAsyncSockets lib by replacing socket.fileno() by id(socket).
Could you update your MicroWebSrv2 repository and try it?
Thank you again 👍

Thanks @jczic, now i can use MicroWebSrv2 on my pyboard.


fix dangling pointer and refcount for solution array

I've ported one of biteopt's examples (constr.cpp) to Python (constr.py), and judging by the number of iterations it takes, biteopt seems to arrive at the same solution. however, the first two values of res.x have been overwritten by pointers.
the first four values printed here are the first four values of res.x, as a big-endian hex-dump — notice the inconsistency in objective value as well:
################################
000001752B733910
000001752B793A30
3FF0000000000000
3FF0000000000000
-15.0 versus<PHONE_NUMBER>905.0857
################################
Finished at iteration 34149
Objective = -15
Constraints not met: 2
x[0] = 0.000000
x[1] = 0.000000
x[2] = 1.000000
x[3] = 1.000000
x[4] = 1.000000
x[5] = 1.000000
x[6] = 1.000000
x[7] = 1.000000
x[8] = 1.000000
x[9] = 3.000000
x[10] = 3.000000
x[11] = 3.000000
x[12] = 1.000000

I tried this on Linux, but it only seems to become apparent on Windows builds — I suppose Windows is more eager to re-use that memory. in any case, the culprit is here, in biteopt_py_ext.cpp. best_x is allocated on stack¹, which is freed for use as the function exits.
my solution is to replace the STL container with a simple calloc, and then deal with the resulting memory leak. I looked around online and found that using a PyCapsule with numpy's SetBaseObject method to "steal the reference" allowed me to specify a simple deconstructor/deallocator. I've also removed the NPY_ARRAY_OWNDATA flag because it appears to be something specific to numpy's own internal allocator, and I've decremented the reference counter on the array itself since the result tuple creates its own reference. I've done some crude printf experiments to make sure the cleanup function is being called (it was not without the decrement).
¹ or heap. I don't remember the semantics of where the C++ STL allocates its non-new memory.
…well, that wound up being much longer of a post than I intended. 😅 also, feel free to adapt constr.py if it is useful to you.

Thanks a lot for the PR :)!
I have to admit I am not super proficient with memory management in C, especially then with numpy on top. But if this fixed the issue for you, probably gonna merge it soon. Could you maybe link the stackoverflow answers that helped you?  Would be a helpful reference also for scipybiteopt me for the future.

sure thing. here are my notes:

using capsules with numpy arrays: https://stackoverflow.com/questions/6811749/how-to-register-a-destructor-for-a-c-allocated-numpy-array/52737023#52737023
a comment about NPY_ARRAY_OWNDATA: https://stackoverflow.com/questions/55891261/ensuring-memory-used-in-pyarray-simplenewfromdata-is-properly-deallocated#comment98461582_55891261
sys.getrefcount() for debugging: https://docs.python.org/3/library/sys.html#sys.getrefcount
I believe the expected refcount for res.x should be 2: one from the tuple containing it, and one from being the argument to getrefcount itself; but this is my first time reasoning about such a thing. when I add a printf into biteoptCleanup, I see it being called as soon as del res is executed, so that's a good sign, but the exact timing might be at the mercy of the garbage collector.
my choice of using calloc(n, sizeof(double)) over new double[n] is arbitrary. the latter is a C++-ism that doesn't require a C-style cast or reinterpret_cast, which can be satisfying, but I don't think it matters with a simple numeric type like an array of doubles. I'm predominantly a C programmer, so I stuck with what I knew.

also, just for the record, and by total fluke (I forgot to change branches), I managed to reproduce the issue on a Linux-based Docker image. you can see the Linux-y pointer in the solution here:

Thanks a lot. Will update the PyPI package soon too.


Additional company redirects from Round 2 company merge

This:

Goes here (which is correct):

 Merge Duplicate Companies


AttributeError: 'NoneType' object has no attribute 'group'

Googletrans version:

[ ] 4.0.0rc1
[ ] 3.1.0a0
[x] 3.0.0
[ ] 2.x

I'm submitting a...

[x] bug report
[ ] feature request

Current behavior:

It throws AttributeError: 'NoneType' object has no attribute 'group' error.
Expected behavior:

Print the translated text of "我覺得今天天氣不好"
Related code:

There is the full error
Traceback (most recent call last):
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\flask\app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\flask\app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\flask\app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\flask\app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "C:/Users/hong/Desktop/VS_codes/line_bot/app.py", line 126, in callback
    handler.handle(body, signature)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\linebot\webhook.py", line 260, in handle
    self.__invoke_func(func, event, payload)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\linebot\webhook.py", line 272, in __invoke_func
    func(event)
  File "C:/Users/hong/Desktop/VS_codes/line_bot/app.py", line 198, in handle_message
    print('English:', translator.translate('我覺得今天天氣不好', dest='en').text)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\googletrans\client.py", line 182, in translate
    data = self._translate(text, dest, src, kwargs)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\googletrans\client.py", line 78, in _translate
    token = self.token_acquirer.do(text)
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\googletrans\gtoken.py", line 194, in do
    self._update()
  File "C:\Users\hong\Desktop\VS_codes\line_bot\venv\lib\site-packages\googletrans\gtoken.py", line 62, in _update
    code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'

And my code
translator = googletrans.Translator()
print(translator.translate('我覺得今天天氣不好', dest='en').text)

same question to me

I've the same issue.

same here

use 3.1.0a0 version.

use 3.1.0a0 version.

But also that version has an issue: https://github.com/ssut/py-googletrans/issues/300.

Same error with 3.1.0a0.

got same problem

got same problem
Traceback (most recent call last):   File "c:/Users/Schmarotzer/Documents/Python/exp2.py", line 3, in <module>     translator.translate('안녕하세요.', dest='en')   File "C:\Users\Schmarotzer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 182, in translate     data = self._translate(text, dest, src, kwargs)   File "C:\Users\Schmarotzer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 78, in _translate     token = self.token_acquirer.do(text)   File "C:\Users\Schmarotzer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\gtoken.py", line 194, in do     self._update()   File "C:\Users\Schmarotzer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\gtoken.py", line 62, in _update     code = self.RE_TKK.search(r.text).group(1).replace('var ', '') AttributeError: 'NoneType' object has no attribute 'group'

this hit me too

+1

Unfortunately, the library doesn't work at all (

Facing the same issue

I'm having the same problem

Same.

use googletrans==4.0.0rc1 version can solve your problem. Although the latest version installed by default is shown as 3.0.0, there is still version 4.0.0rc1.
使用4.0.0rc1版本可以解决这个问题，默认安装的最新版本为3.0.0，但是可以指定安装4.0.0rc1版本

googletrans==4.0.0rc1 is also having the same issue. Any solution?
AttributeError: 'NoneType' object has no attribute 'group'

https://github.com/ssut/py-googletrans/issues/268

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

Updates? Same issue here.

It must be fixed!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

same problems, there is something wrong with the file gtoken.py, i think may be google translate website had updated their token system

the same frustrating issue

installing googletrans==4.0.0rc1 fix the issue for me at least

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Anyway it hasn't been fixed yet.

@Tizioincognit0  i could solve the issue by installing different version, kindly try that

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

I am using version 4, get same error after 32nd  string is sent. python3.10  Even requestng slowly.  Responds with problem with client.py, translated parts, line 194
TypeError: 'NoneType' object is not iterable

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Anyway it hasn't been fixed yet.

+1


response()->file() return damaged pdf

Laravel Version: 8.40.0
PHP Version: 8.0.0
Database Driver & Version:

Description:
i use the following code to return a file from my storage
response()->file(Storage::disk('docuvision')->path($filename))

but sometimes when the file is a pdf, in mozilla i get a damaged file.
I temporary resolved the problem using the following code, and i get the right pdf files
$file = Storage::disk('docuvision')->get($filename);
$headers = array(
    'Content-type' => Storage::disk('docuvision')->getMimetype($filename)
);

return Response::make($file, 200, $headers);

Hi @michele-grifa !
I have the same issue. Do you found a solution?
I would be very grateful for a tip.

Hi @michele-grifa !
I have the same issue. Do you found a solution?
I would be very grateful for a tip.

I resolved using:
$headers=array('Content-Type' => 'mime-type');
return Response::make($file, 200, $headers);


ColorPicker misc fixes

Various small ColorPicker fixes:

Removed weird padding at the top
Fixed min/max heights for horizontal mode
Made spacing around the sliders always be the same
Fixed preview corner radius
Made color spectrum and preview have a 1px border, matching Figma
Tweaked test page

Before/after:

Can you also include screenshot of the horizontal mode?

While we are at it, I found several more points that is not spec-compliant:

The color cursor is black in figma spec, whereas it's white in the implementation
The slider thumb is using the native thumb as-is in figma , but it seems to have been customized in the implementation. Notice how it seems the center black dot is larger than the spec. Also, I just tried the slider of the color picker in XCG, the thumb lacks the nice scaling animation when hovering and dragging. Seems we should remove the thumb customization?

I did get the thumb to work with the regular size and animation, but there is a little issue with it getting clipped when on the edge. The regular slider somehow doesn't clip the thumb, so I'll look into it.
The color cursor adjusts automatically for better contrast, it is black with light colors and white with darker colors.

/azp run

I made the spacing between the sliders be 24px instead of 26px, since the text boxes have 12px between them, and it's also a multiple of 4. Hope this is ok.

I made the spacing between the sliders be 24px instead of 26px, since the text boxes have 12px between them, and it's also a multiple of 4. Hope this is ok.

@dansmor7 thanks so much for contributing! I will get to looking at this PR soon, sorry for the delay.

Thank you for submitting this PR, the current focus of the team is to assist our users in moving from WinUI 2 to WinUI 3. We are closing this PR as it does not address resolving a critical issue for WinUI 2 or WinUI 3.


add note about accelerate

Note:
If you see error below you may need to upgrade accelerate using
pip install -U accelerate
(see here)
from transformers import AutoConfig, AutoModelForCausalLM, \
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1273, in __getattr__
    value = getattr(module, name)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1272, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1284, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
[Errno 13] Permission denied: '/root/google_vm_config.lock'

Merged! Thanks for your contribution!


Add support for passing maxlag to the API

Someone is currently using this code to make requests to the www.wikidata.org api.
They are not currently passing a maxlag value to the api (which they should).
I had a quick skim and it looks like support needs to be added.
I also have a ticket filed on the WMF phabricator instance tracking this
https://phabricator.wikimedia.org/T214064

This is now implemented in PR #112. @addshore, if you're able to shed some reviewing light on it, that would be welcome.

@addshore This is released in v0.14.0, perhaps you can note it on Phabricator.


fix(components): set default label text

Description
This PR adds default label text in for 'Neutral' action ribbon
Fixes #2034
Test Steps

[ ] npm run storybook

Screenshots or link to StackBlitz/Plunker

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

v6.1.3
GitHub release

Your semantic-release bot :package::rocket:


Adding Charlie's tip to pipe commands to CLI stdin

Change-type: patch
Connects-to: #1386
Signed-off-by: Gareth Davies<EMAIL_ADDRESS>

@balena-ci retest


mesa: Attempt to upgrade the drivers with a minimal rebuild impact

Motivation for this change
See #44831, though this is a more extreme approach.
 This mainly makes sense under the assumption that minor/patch releases only update the drivers (mesa.drivers) anyway. The plan would be to freeze mesa at X.Y.1 (first stable release of a series) and update mesa_drivers to X.Y.1+N without going through staging first. Or another idea would be to simultaneously update mesa via staging and mesa_drivers via master.
Personally I'm already using that approach to test Mesa updates and it seemed to be fine so far (though I only did very minimal testing). However with lsof I can always see a few references to the previous Mesa version, though mainly(/only?) for libgbm IIRC (e.g. /nix/store/***-mesa-X.Y.Z/lib/libgbm.so.1.0.0). For that reasons it might make sense to simultaneously update mesa via staging or implement the approach from #44831.
Note: The update to 20.1.10 doesn't make sense since 20.2.1 is already in staging, it only serves as an example.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@vcunat what do you think about this?
I guess there are the following drawbacks:

Nothing in Nixpkgs should use mesa_drivers as a dependency (might be avoidable, e.g. at least CI should complain if we define it as alias)
Everyone who overrides hardware.opengl.package won't get patch releases anymore
mesa might lack some changes (e.g. if libgbm changes)

This hacky idea isn't required anymore thanks to #118479 (see https://github.com/NixOS/nixpkgs/pull/118753#issuecomment-818977245) :)