Can't run the code; OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory

Hi, I'm following the README to run the code on GPU machine.
After installing all packages mentioned, I tried to run the train sample code, but having
OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory error.
Am I doing something wrong? Thank you for your help!
(s4) [sko1@bridges2-login011 state-spaces]$ python -m train pipeline=mnist model=s4
/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory
  warn(f"Failed to load image Python extension: {e}")
Traceback (most recent call last):
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/ocean/projects/cis230033p/sko1/state-spaces/train.py", line 23, in <module>
    from src.dataloaders import SequenceDataset  # TODO make registry
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/__init__.py", line 1, in <module>
    from . import audio, basic, et, lm, lra, synthetic, ts, vision
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/audio.py", line 8, in <module>
    import torchaudio
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchaudio/__init__.py", line 1, in <module>
    from torchaudio import (  # noqa: F401
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchaudio/_extension.py", line 135, in <module>
    _init_extension()
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchaudio/_extension.py", line 105, in _init_extension
    _load_lib("libtorchaudio")
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchaudio/_extension.py", line 52, in _load_lib
    torch.ops.load_library(path)
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torch/_ops.py", line 643, in load_library
    ctypes.CDLL(path)
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/ctypes/__init__.py", line 382, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory

This often happens with mismatched library versions. What are your versions of the main torch libraries? (e.g. output of conda/pip list | grep torch)
Make sure to follow the instructions on the pytorch website when installing the packages.

Your torchaudio version is out of date. In general the torchaudio version and torchvision minor versions should match (0.14 for pytorch 2.0) and the torchtext version is one higher. I'm not sure how you installed them; if using pip, you can try upgrading with pip install -U torchaudio

@albertfgu Great, thanks! Now the package is exactly the same as README (torchtext is 0.15.2)
(s4) [sko1@v007 state-spaces]$ conda list | grep torch
ffmpeg                    4.3                  hf484d3e_0    pytorch
pytorch                   1.13.1          py3.9_cuda11.6_cudnn8.3.2_0    pytorch
pytorch-cuda              11.6                 h867d48c_1    pytorch
pytorch-lightning         1.9.3                    pypi_0    pypi
pytorch-mutex             1.0                        cuda    pytorch
torch                     2.0.1                    pypi_0    pypi
torchaudio                0.13.1               py39_cu116    pytorch
torchdata                 0.6.1                    pypi_0    pypi
torchmetrics              0.11.4                   pypi_0    pypi
torchtext                 0.15.2                   pypi_0    pypi
torchvision               0.14.1               py39_cu116    pytorch

Now python example.py works, but training still has some OSError. Do you know what am I missing with these packages?
(s4) [sko1@v007 state-spaces]$ python -m train experiment=forecasting/s4-informer-etth
Traceback (most recent call last):
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/ocean/projects/cis230033p/sko1/state-spaces/train.py", line 23, in <module>
    from src.dataloaders import SequenceDataset  # TODO make registry
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/__init__.py", line 1, in <module>
    from . import audio, basic, et, lm, lra, synthetic, ts, vision
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/lra.py", line 12, in <module>
    import torchtext
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchtext/__init__.py", line 6, in <module>
    from torchtext import _extension  # noqa: F401
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchtext/_extension.py", line 64, in <module>
    _init_extension()
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchtext/_extension.py", line 58, in _init_extension
    _load_lib("libtorchtext")
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchtext/_extension.py", line 50, in _load_lib
    torch.ops.load_library(path)
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torch/_ops.py", line 573, in load_library
    ctypes.CDLL(path)
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/ctypes/__init__.py", line 382, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /ocean/projects/cis230033p/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN2at4_ops10select_int4callERKNS_6TensorElN3c106SymIntE

Thanks!

I tried to fix the torchtext version since it seems like Pytorch 1.13.0 requires torchtext 0.14.0., and it requires torch to be 1.13.0 as well. However, it seems like torchdata 0.6.1 requires torch==2.0.1, but I have torch 1.13.1 which is incompatible.
Anyway, still having another issue.
(s4) [sko1@v007 state-spaces]$ python -m train experiment=forecasting/s4-informer-etth
Traceback (most recent call last):
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/ocean/projects/cis230033p/sko1/state-spaces/train.py", line 10, in <module>
    import pytorch_lightning as pl
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/pytorch_lightning/__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/pytorch_lightning/callbacks/callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/pytorch_lightning/utilities/types.py", line 27, in <module>
    from torchmetrics import Metric
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/functional/__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/functional/audio/__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate  # noqa: F401
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/functional/audio/pit.py", line 22, in <module>
    from torchmetrics.utilities.imports import _SCIPY_AVAILABLE
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/__init__.py", line 1, in <module>
    from torchmetrics.utilities.checks import check_forward_full_state_property  # noqa: F401
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/checks.py", line 25, in <module>
    from torchmetrics.utilities.data import select_topk, to_onehot
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/data.py", line 19, in <module>
    from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/imports.py", line 112, in <module>
    _TORCHVISION_GREATER_EQUAL_0_8: Optional[bool] = _compare_version("torchvision", operator.ge, "0.8.0")
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/imports.py", line 78, in _compare_version
    if not _module_available(package):
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchmetrics/utilities/imports.py", line 59, in _module_available
    module = import_module(module_names[0])
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/__init__.py", line 5, in <module>
    from torchvision import datasets, io, models, ops, transforms, utils
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/datasets/__init__.py", line 1, in <module>
    from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/datasets/_optical_flow.py", line 11, in <module>
    from ..io.image import _read_png_16
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/io/__init__.py", line 8, in <module>
    from ._load_gpu_decoder import _HAS_GPU_VIDEO_DECODER
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/io/_load_gpu_decoder.py", line 1, in <module>
    from ..extension import _load_library
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/extension.py", line 107, in <module>
    _check_cuda_version()
  File "/jet/home/sko1/.conda/envs/s4/lib/python3.9/site-packages/torchvision/extension.py", line 80, in _check_cuda_version
    raise RuntimeError(
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.6. Please reinstall the torchvision that matches your PyTorch install.

(s4) [sko1@v007 state-spaces]$ conda list | grep torch
ffmpeg                    4.3                  hf484d3e_0    pytorch
pytorch                   1.13.1          py3.9_cuda11.6_cudnn8.3.2_0    pytorch
pytorch-cuda              11.6                 h867d48c_1    pytorch
pytorch-lightning         1.9.3                    pypi_0    pypi
pytorch-mutex             1.0                        cuda    pytorch
torch                     1.13.1                   pypi_0    pypi
torchaudio                0.13.1               py39_cu116    pytorch
torchdata                 0.6.1                    pypi_0    pypi
torchmetrics              0.11.4                   pypi_0    pypi
torchtext                 0.14.1                   pypi_0    pypi
torchvision               0.14.1               py39_cu116    pytorch

Hi, I just realized my cuda version is 11.7, so I followed this guide to install the relevant package -- https://pytorch.org/get-started/previous-versions/
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
However, the following issues came out:
(s4-cuda) [sko1@v007 state-spaces]$ conda list | grep torch
ffmpeg                    4.3                  hf484d3e_0    pytorch
pytorch                   1.13.1          py3.9_cuda11.7_cudnn8.5.0_0    pytorch
pytorch-cuda              11.7                 h778d358_5    pytorch
pytorch-lightning         1.9.3                    pypi_0    pypi
pytorch-mutex             1.0                        cuda    pytorch
torch                     2.0.1                    pypi_0    pypi
torchaudio                0.13.1               py39_cu117    pytorch
torchdata                 0.6.1                    pypi_0    pypi
torchmetrics              0.11.4                   pypi_0    pypi
torchtext                 0.14.1                   pypi_0    pypi
torchvision               0.14.1               py39_cu117    pytorch

(s4-cuda) [sko1@v007 state-spaces]$ pip install torchtext==0.14.1
Collecting torchtext==0.14.1
  Using cached torchtext-0.14.1-cp39-cp39-manylinux1_x86_64.whl (2.0 MB)
Requirement already satisfied: tqdm in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from torchtext==0.14.1) (4.65.0)
Requirement already satisfied: requests in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from torchtext==0.14.1) (2.29.0)
Requirement already satisfied: torch==1.13.1 in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from torchtext==0.14.1) (1.13.1)
Requirement already satisfied: numpy in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from torchtext==0.14.1) (1.24.3)
Requirement already satisfied: typing_extensions in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from torch==1.13.1->torchtext==0.14.1) (4.6.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from requests->torchtext==0.14.1) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from requests->torchtext==0.14.1) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from requests->torchtext==0.14.1) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in /ocean/projects/cis230033p/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages (from requests->torchtext==0.14.1) (2023.5.7)
Installing collected packages: torchtext
  Attempting uninstall: torchtext
    Found existing installation: torchtext 0.15.2
    Uninstalling torchtext-0.15.2:
      Successfully uninstalled torchtext-0.15.2
Successfully installed torchtext-0.14.1
(s4-cuda) [sko1@v007 state-spaces]$ python -m train experiment=forecasting/s4-informer-etth
Traceback (most recent call last):
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/ocean/projects/cis230033p/sko1/state-spaces/train.py", line 23, in <module>
    from src.dataloaders import SequenceDataset  # TODO make registry
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/__init__.py", line 1, in <module>
    from . import audio, basic, et, lm, lra, synthetic, ts, vision
  File "/ocean/projects/cis230033p/sko1/state-spaces/src/dataloaders/lra.py", line 12, in <module>
    import torchtext
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchtext/__init__.py", line 12, in <module>
    from . import data, datasets, prototype, functional, models, nn, transforms, utils, vocab, experimental
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchtext/datasets/__init__.py", line 3, in <module>
    from .ag_news import AG_NEWS
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchtext/datasets/ag_news.py", line 12, in <module>
    from torchdata.datapipes.iter import FileOpener, IterableWrapper
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchdata/__init__.py", line 9, in <module>
    from . import datapipes
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchdata/datapipes/__init__.py", line 9, in <module>
    from . import iter, map, utils
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchdata/datapipes/iter/__init__.py", line 121, in <module>
    from torchdata.datapipes.iter.util.sharding import (
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torchdata/datapipes/iter/util/sharding.py", line 9, in <module>
    from torch.utils.data.datapipes.iter.sharding import SHARDING_PRIORITIES
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torch/utils/data/datapipes/iter/sharding.py", line 29, in <module>
    class ShardingFilterIterDataPipe(_ShardingIterDataPipe):
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torch/utils/data/datapipes/_decorator.py", line 34, in __call__
    IterDataPipe.register_datapipe_as_function(self.name, cls, enable_df_api_tracing=self.enable_df_api_tracing)
  File "/jet/home/sko1/.conda/envs/s4-cuda/lib/python3.9/site-packages/torch/utils/data/datapipes/datapipe.py", line 136, in register_datapipe_as_function
    raise Exception("Unable to add DataPipe function name {} as it is already taken".format(function_name))
Exception: Unable to add DataPipe function name sharding_filter as it is already take

Any thoughts to debug this issue?
Also, if I follow the README in order, I think the package is not installed as expected. (I've tried to re-install a few to make the version as expected). Can you try to follow the README to install packages from scratch?

I haven't seen that issue. Everything looks like package version issues.
The installation example from the README is just meant to be an example, and it's currently out of date. It will run into an issue if used literally because when you pip install torchtext (from the requirements.txt) it will install the latest version of torchtext (which is for torch 2.0) and all the dependencies get out of whack.
You should be fine by using the standard installation procedure:

Install pytorch from the website instructions
Install from the requirements file here

Example for CUDA 11.7:
conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install -r requirements.txt

(You should do this in a fresh environment)
If that doesn't work - the last time I tried this I ran into conda bugs - you might be able to install everything from pip. Create a fresh environment, add torch torchvision torchaudio to the requirements.txt, and install all of those at once.


Timestamp of frames at client

Hi, we are re-streaming incoming rtsp and video sources into internal clients, which will use the frames for machine learning inference, is it possible for the internal clients to retrieve timestamps of frames so they can be correlated at the analytics level?

I think the timestamps should be the same (though I'm not 100% sure how ffmpeg handles this internally). Are you seeing different DTS/PTS from the original stream when restreaming?


Work around 32 bits epoll_wait() bug

A bug in kernels < 2.6.37 makes timeouts larger than LONG_MAX /
CONFIG_HZ (approx. 30 minutes with CONFIG_HZ=1200) effectively
infinite on 32 bits architectures. The magic number is the same
constant used by libuv, see commit libuv/libuv@d1b5008e76.
If you don't care about kernels that old, I'm a-okay with closing this. No hard feelings.

Officially we don't support kernels that old. That said since the change is rather small I would be OK with it it. @carllerche, @kleimkuhler what are your thoughts?
@bnoordhuis to fix the CI you can use the following patch. It's complaining about cfg! not being constant.
diff --git a/src/sys/unix/selector/epoll.rs b/src/sys/unix/selector/epoll.rs
index eb7cbe3..6955848 100644
--- a/src/sys/unix/selector/epoll.rs
+++ b/src/sys/unix/selector/epoll.rs
@@ -49,11 +49,11 @@ impl Selector {
         // A bug in kernels < 2.6.37 makes timeouts larger than LONG_MAX / CONFIG_HZ
         // (approx. 30 minutes with CONFIG_HZ=1200) effectively infinite on 32 bits
         // architectures. The magic number is the same constant used by libuv.
-        const MAX_SAFE_TIMEOUT: u128 = if cfg!(target_pointer_width = "32") {
-            1789569
-        } else {
-            libc::c_int::max_value() as u128
-        };
+        #[cfg(target_pointer_width = "32")]
+        const MAX_SAFE_TIMEOUT: u128 = 1789569;
+        #[cfg(not(target_pointer_width = "32"))]
+        const MAX_SAFE_TIMEOUT: u128 = libc::c_int::max_value() as u128;

         let timeout = timeout
             .map(|to| cmp::min(to.as_millis(), MAX_SAFE_TIMEOUT) as libc::c_int)

:+1:

Thanks @bnoordhuis

@carllerche is this something we want to backport to v0.6?


Multithreaded access to QAxObject without locks

This could explain the frequent crashes people are seeing. We should either use locks for access or try this:

However, since you are using COM cross thread, you could also look at CoInitializeEx and pass COINIT_MULTITHREADED as second parameter. Look this up in the MSDN documentation.

http://www.qtcentre.org/threads/34428-Access-a-COM-object-from-a-3rd-party-dll-across-threads?s=1faabb4dcec5e74f9fe3169ef34e0d68

I'm trying this out with locks now.

Still crashes so this is most likely not the issue.


Update If Then Else (Visual Basic) to improve CSAT

If...Then...Else Statement (Visual Basic) API topic has repeated requests for updates. We'll update it, point to the relevant examples, and improve the experience.
Fixes #3505
URL for internal review

Closing and reopening - failed build

@rpetrusha I believe I've addressed all your comments. I'm having a bit of an issue with highlighting.

The problem with highlighting, @JRAlexander, is that the syntax is incorrect. Instead of
[!code-vb[VbVbalrStatements#101](../../../visual-basic/language-reference/error-messages/codesnippet/VisualBasic/if-then-else-statement_1.vb)]?highlight=10,12,14,16
try
`[!code-vbVbVbalrStatements#101], for example.

Got it! Thanks, @rpetrusha!

Thank you, @rpetrusha and @mairaw, for your thoughtful comments!


RxSwift 5

It would be nice to support RxSwift 5.

@VincentSit DONE
https://github.com/DianQK/Flix/releases/tag/4.0.0

Thanks for your quick response.


Option to not output inline bundle

Versions
Angular CLI: 1.5.0
Node: 6.11.1
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.36
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.5
typescript: 2.5.3
webpack: 3.8.1

Observed behavior
Build process outputs an inline.bundle.js. This is great for people who want it. However, upon inspection, if somebody didn't want to have this content inlined, it would be great to have this included in one of the other bundles.
Desired behavior
Adding a CLI flag that determines whether inline should be separate or included in one of the other bundles. Personally, I don't think it should be authorable which bundle it should be included into, i.e., I think this should be a boolean flag and the CLI team should determine which bundle is most appropriate.

This is related to #2307 which discusses either inlining the bundle or including it in the main bundle

Duplicate of #2307


onSuccess arguments

I want to return customized data when the file upload is complete, and receive this data in the onSuccess callback. What should I do?

Your exact idea is not possible. The onSuccess callback never receives an argument. However, you can use the onAfterResponse callback (https://github.com/tus/tus-js-client/blob/master/docs/api.md#onafterresponse) to inspect the responses and extract the data from there.

Opening this because I get an error when using onAfterResponse() what I wanted to do was return some data back to client once the file is uploaded to server. So I added below method;
            onAfterResponse: function (req, res) {
            debugger;
            var url = req.getURL();
            var uploadedFile = res.getHeader("ca-uploaded-file");
            var error = res.getHeader("ca-error");

            if (uploadedFile) {//all ok?
                console.log(uploadedFile);
            }

            if (error) {//all ok?
                console.log(error);
            }
            console.log(`Request for ${url} responded with ${value}`);
        }

Once this method is added and tried to upload I see that file chunks are created at the server but then come to OnError with following error message.
tus: failed to create upload, caused by ReferenceError: value is not defined, originated from request (method: POST, url: /files, response code: n/a, response text: n/a, request id: n/a
If I comment this event code all works fine.
Any idea why?

Any idea why?

Yes, this is a bug in your code and not tus-js-client :)
You are trying to log the variable value but it is not defined:

console.log(Request for ${url} responded with ${value});

Remove this statement or use the appropriate variable and it should work.


Comparison to Next Generation Shell

Hi!
I've translated some of the examples to Next Generation Shell.
If you think it's appropriate, you are welcome to add the following link somewhere:
https://github.com/ngs-lang/ngs/wiki/Code-Snippets-Comparisons#script-go-library

Thanks @ilyash! That's most interesting. I hadn't heard of NGS before, but I read your examples with interest.

Welcome @bitfield ,
Please let me know if you would like to have any further information (that also means that the documentation could be improved).

No, I think you've covered it admirably! I might well follow your example at some point and add links to alternative shell-like languages such as NGS (but, to be honest, probably not).

links to alternative shell-like languages

If you decide to do that, I hope this link will save you a lot of effort:
https://github.com/oilshell/oil/wiki/Alternative-Shells


Random test failures when running >40 tests in parallel

I have a test suite with about 45 Scenarios, split across about 30 feature files.
When I run them individually, all is good.
When I run less than 40, fully parallel, all is good
When I run more than 40, fully parallel, I experience random failures, always from the tests executed towards the end
If I shard them and run them in batches of 20 or 30, no failure happens
This is the error being thrown:
    TypeError: Cannot read properties of null (reading 'includes')

        at World.invokeStep (/Users/myName/workspace/myProject/node_modules/playwright-bdd/src/run/world.ts:53:41)
        at /Users/myName/workspace/myProject/starter-kit/async /Users/myName/workspace/myProject/starter-kit/tests/pwFeature/.feature-gen/tests/pwFeature/textInput.feature.spec.js:19:5
        at /Users/myName/workspace/myProject/starter-kit/async /Users/myName/workspace/myProject/node_modules/@playwright/test/lib/worker/workerMain.js:351:9
        at /Users/myName/workspace/myProject/starter-kit/async /Users/myName/workspace/myProject/node_modules/@playwright/test/lib/worker/workerMain.js:347:7

My configuration:
OS: Mac OSx Ventura i7 32GB RAM
playwright-bdd: 3.2.1
@playwright/test: 1.33.0
cucumber: 9.1.0
chrome: 114
nodejs: 16.16.0
ts-node: 10.9.1
To write my step definitions, I am using cucumber style:
example:
Given('I am on the {string} page', async function(pageName: string) {
  const currentPage: PageInterface = globalThis[`${pageName}Page`];
  return currentPage.open();
});

To run my tests, I first run bddgen (there is nothing wrong with the generated spec files), then I use npx playwright test --config path/to/my/config
This is what my feature files look like:
Feature: Switch

  Background:
    Given create "switch" page

  Scenario: Switch displayed correctly
    Given I am on the "switch" page
    Then Switch is displayed correctly
    And Switch label is displayed correctly

They all include a background and are written in exactly the same way

I'm also seeing these. Haven't managed to create a reproduction to post here yet

According to the output, this should be the offending line:
const res = **await getTestImpl(test)**._step(location, text, () => code.apply(this, parameters));

Even I am facing similar flakiness issue while running test cases in parallel mode. But I am using Windows 10 machine. @paolodg Thanks for raising this.

Thanks for reporting. I'm investigating..
Two questions:

Could you try to run the same tests on the latest playwright 1.35?
Does the problem exist if you set fullyParallel: false?

Sorry @vitalets, forgot to mention this still happens when running tests NOT fully in parallel, i.e. fullyParallel: false
Will try to replicate with 1.35.0 and let you know

Unfortunately I can replicate with @playwright/test:1.35.0, using both fullyParallel:true and fullyParallel:false
My colleagues can replicate with 1.35.1

Trying to reproduce it using 50 files, currently can't catch.

Could you run the your tests with workers: 1 in playwright config?
Could you generate and run tests using the data that I use:

sample.feature
Feature: Playwright site

    Background:
       Given I open url "https://playwright.dev"

    Scenario: Check title
        Given I open url "https://playwright.dev"
        When I click link "Get started"
        Then I see in title "Playwright"

    Scenario: Check title 2
        Given I open url "https://playwright.dev"
        When I click link "Get started"
        Then I see in title "Playwright"

Script to generate 50 files:
/**
 * node temp.mjs
 */

import fs from 'fs';

const content = fs.readFileSync('features/sample.feature', 'utf8');
for (let i = 0; i < 50; i++) {
  fs.writeFileSync(`features/sample-${i}.feature`, content);
}

step definitions:
import { expect } from '@playwright/test';
import { Given, When, Then } from '@cucumber/cucumber';
import { World } from 'playwright-bdd';

Given('I open url {string}', async function (this: World, url: string) {
  await this.page.goto(url);
});

When('I click link {string}', async function (this: World, name: string) {
  await this.page.getByRole('link', { name }).click();
});

Then(
  'I see in title {string}',
  async function (this: World, keyword: string) {
    await expect(this.page).toHaveTitle(new RegExp(keyword));
  }
);

sure, I will try, but I am not passing the World object to my steps, so this setup looks a bit different from the one I have
First I'll try with your config, then I'll try to amend the one I currently have to use the world

This is my full config:

import { defineConfig, devices } from '@playwright/test';
import { defineBddConfig } from 'playwright-bdd';

const readURLFromEnvVariable = function (): string {
  if (process.env.BASE_URL) {
    return process.env.BASE_URL;
  }
};

const testDir = defineBddConfig({
  paths: [
    './tests/pwFeature/accordion.feature',
    './tests/pwFeature/button.feature',
    './tests/pwFeature/checkbox.feature',
    './tests/pwFeature/checkboxGroup.feature',
    './tests/pwFeature/currencyField.feature',
    './tests/pwFeature/list.feature',
    './tests/pwFeature/confirmation.feature',
    './tests/pwFeature/dialog.feature',
    './tests/pwFeature/displayText.feature',
    './tests/pwFeature/dropdown.feature',
    './tests/pwFeature/genderField.feature',
    './tests/pwFeature/icon.feature',
    './tests/pwFeature/link.feature',
    './tests/pwFeature/list.feature',
    './tests/pwFeature/notification.feature',
    './tests/pwFeature/paragraph.feature',
    './tests/pwFeature/postcode.feature',
    './tests/pwFeature/spinner.feature',
    './tests/pwFeature/summaryBox.feature',
    './tests/pwFeature/tabs.feature',
    './tests/pwFeature/textInput.feature',
    './tests/pwFeature/textField.feature',
    './tests/pwFeature/tooltip.feature',
    './tests/pwFeature/errorSummary.feature',
    './tests/pwFeature/heading.feature',
    './tests/pwFeature/select.feature',
    './tests/pwFeature/switch.feature',
    './tests/pwFeature/table.feature',
    './tests/pwFeature/radioButtonGroup.feature',
    './tests/pwFeature/memorableDateField.feature',
    './tests/pwFeature/dateField.feature',
  ],
  require: ['./tests/step-definitions/examples/example_step_definitions.ts'],
  requireModule: ['ts-node/register'],
  outputDir: 'tests/pwFeature/.feature-gen',
});

export default defineConfig({
  timeout: 40000,
  testDir,
  /* Run tests in files in parallel */
  fullyParallel: true,
  /* Number of workers as an absolute number or percentage of CPU */
  workers: 6,
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
  use: {
    /* Base URL to use in actions like `await page.goto('/')`. */
    baseURL: readURLFromEnvVariable() || 'http://<IP_ADDRESS>:9001/',
    browserName: `chromium`,
    screenshot: 'only-on-failure',
    // video: 'retain-on-failure',
    actionTimeout: 10000,
    navigationTimeout: 10000,
    // trace: 'off',

    //Chrome Browser Config
    channel: `chrome`,
    // TODO: this param doesn't work with our current config
    // to run tests in headless mode, please prepend an env variable
    // in your script, e.g. HEADLESS=true yarn bdd:pw:examples
    // headless: false,

    launchOptions: {
      args: ['--disable-plugins', '--disable-extensions'],
      timeout: 20000,
    },
  },
  reporter: [
    // this shows a nice command line output, but it's not necessary to run tests
    ['list'],
    ['json', { outputFile: '../reports/output.json' }],
  ],

  /* Configure projects for major browsers */
  projects: [
    {
      name: 'generated-tests',
      testDir: '../pwFeature/.feature-gen',
      use: { ...devices['Desktop Chrome'] },
    }
  ],
});

5 consecutive runs with workers:1, no failures

5 consecutive runs with workers:1, no failures

Ok, thanks. Looks like some race condition.
Btw, how do you setup your global context for this?
const currentPage: PageInterface = globalThis[`${pageName}Page`];

5 consecutive runs with workers:1, no failures

Ok, thanks. Looks like some race condition. Btw, how do you setup your global context for this?
const currentPage: PageInterface = globalThis[`${pageName}Page`];

With the background: it creates a new page for each scenario, then it sets a global value for the page
initBasePage(page: Page): void {
globalThis.page = page;
}

@vitalets due to another piece of work unrelated to this, we upgraded to node 18.16.1 and CANNOT REPRODUCE ANYMORE
Statistic is consistent, got three different machine configurations working 100% of the time (about 20 runs per machine), will continue collecting statistics across different machine, but I would need you to confirm this is the issue
Could you please:

confirm your node version
try to downgrade to node 16.18.X and run tests again to see if we can replicate

Hopefully we are at the end of tunnel! :-)

I'm also seeing these. Haven't managed to create a reproduction to post here yet

Could you please let us know what node version you are using?

Could you please let us know what node version you are using?

I was testing on node v20.3.1

hi @paolodg thanks for the feedback!
I've also reproduced the issue on node v16.
Going deeper I found that the reason is in stacktrace capturing that is used for detecting step call locations.
Normally step call stacktrace is like following:
/playwright-bdd-example/node_modules/playwright-bdd/dist/playwright/getLocationByStacktrace.js 36
/playwright-bdd-example/node_modules/playwright-bdd/dist/run/world.js 27
/playwright-bdd-example/.features-gen/features/sample-27.feature.spec.js 17     <-- this frame (with depthIndex = 2) is used for step call reporting
<EMAIL_ADDRESS>345
...

But when running large number of files on Node v16  stacktrace sometimes gets microtasks injected and fileName = null:
/playwright-bdd-example/node_modules/playwright-bdd/dist/playwright/getLocationByStacktrace.js 36
/playwright-bdd-example/node_modules/playwright-bdd/dist/run/world.js 27
null null        <-- this actually causes "Cannot read properties of null (reading 'includes')"
node:internal/process/task_queues 61
node:internal/timers 437
/playwright-bdd-example/.features-gen/features/sample-27.feature.spec.js 17
<EMAIL_ADDRESS>345
...

And on Node v18 microtask calls also appears (but no null filenames):
/playwright-bdd-example/node_modules/playwright-bdd/dist/playwright/getLocationByStacktrace.js 36
/playwright-bdd-example/node_modules/playwright-bdd/dist/run/world.js 27
node:internal/process/task_queues 61      <-- this frame will be incorrectly used for step call reporting
node:internal/timers 437
/playwright-bdd-example/.features-gen/features/sample-27.feature.spec.js 17
<EMAIL_ADDRESS>345
...

That means that even though it's passing on Node v18, step locations in report can be incorrect.
I'm going to do:

fix stacktrace handling so it will filter out nulls and node: internal calls to find appropriate userland frame.
additionally check with raw Playwright if it has the same problem

perfect for me, please tag me in this issue when fixed, will upgrade when new version is available

Fixed in v3.3.0. Feel free to reopen if there are any issues.
@paolodg if possible, could you re-check on both node 16 and node 18 with all your test files?

will retest next week, hopefully monday

Fixed on both versions:
node 16.16.0
node 18.16.1

Thank you @paolodg


Icons For .reg and .VBS

  - Type: .reg .vbs
  - Icon Name: Registry setting export, Visual Bascis Script
  - Extensions: .reg, .vbs

.vbs is already covert.
Any icon proposal for .reg?

I think that something similar to this could be easily done with our illustrator skills 😉 (the Win10 version)
If that looks good to you I can do it.

It's exactly the icon I'm processing.


Niamh25/DOC-5376/Manual-Bootstrapping-Formatting-issue

Fixed manual bootstrapping format

Deleted, starting a new PR because of conflicts.


cilium: prandom based backend selection

/cc @brb ptal

This change is

test-me-please

test-me-please

test-me-please

Coverage increased (+0.03%) to 44.027% when pulling 4c8d793421e474d0eb39265f4dde59fccc551ff4 on pr/lb-backend-selection into 3a8d32cab7e547c0cd55317fbc8ce0dcd0b1590f on master.


[stable/minio] Set service name to HTTP/HTTPS rather than Service

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Tools like Istio configure their backend paths based on the name of the service (http/https/etc). This dynamically sets the service name based on whether TLS is enabled or not.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @harshavardhana

/lgtm

/ok-to-test

/retest

@carpenike PTAL tests are failing

/lgtm cancel

/approve cancel

@carpenike looks like the change breaks helm install
I0213 16:35:16.994] Error: release minio-h21msh2sla failed: timed out waiting for the condition
I0213 16:35:16.996] ========================================================================================================================
I0213 16:35:16.997] ........................................................................................................................
I0213 16:35:16.997] ==> Events of namespace minio-presubmit-20649-1227991889290989568-h21msh2sla
I0213 16:35:16.997] ........................................................................................................................
I0213 16:35:17.939] LAST SEEN   TYPE      REASON                   OBJECT                                            SUBOBJECT                SOURCE                                            MESSAGE                                                                                FIRST SEEN   COUNT   NAME
skipped 538 lines unfold_more
W0213 16:35:48.384]   File "/workspace/./test-infra/jenkins/../scenarios/execute.py", line 30, in check
W0213 16:35:48.384]     subprocess.check_call(cmd)
W0213 16:35:48.384]   File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
W0213 16:35:48.384]     raise CalledProcessError(retcode, cmd)
W0213 16:35:48.385] subprocess.CalledProcessError: Command '('./test/e2e.sh',)' returned non-zero exit status 1
E0213 16:35:48.385] Command failed
I0213 16:35:48.385] process 667 exited with code 1 after 11.0m
E0213 16:35:48.385] FAIL: pull-charts-e2e

@harshavardhana, I had missed one of the service ports when using a statefulset. I don't use statefulsets so it never showed up in my environment. :(
Sorry!

/lgtm


Removing mock_request() and getting the request from the Context instead...

..., this way all other request context should be included. Fix for Issue #13

Hrmm, this is causing test failures -- reverting merge

This test fail because the request object doesn't get passed in the test environment, but testing from a user perspective rather than unit test it works correctly. You might need to make a implementation for the test separate.

Why not checking if passed context type is HttpRequest, and if it's not, mock the request? Tests will pass and if you pass request object, it will properly make a RequestContext.


I like your plug-in very much

I'm a novice at vim. I like your plug-in very much. It's lightweight, fast and powerful compared to nerdtree. But can you add exit commands, such as nerdtree, which starts the first time and exits the second time? I believe this experience will be better! I think justinmk / vim-dirvish plug-in has some good functions, such as K output file details, can you learn from it? Sorry, my English is not very good.

Thanks.

I think you are talking about the behavior of :Fila -drawer -toggle
I think you are talking about something like echo action.

1 I think you are talking about the behavior of :Fila -drawer -toggle   yes

sorry ! English is poor

Is your problem solved?


Correction for raw affiliation U.M.R. IATE - Université Montpellier 2

Correction needed for raw affiliation U.M.R. IATE - Université Montpellier 2
raw_affiliation_name: U.M.R. IATE - Université Montpellier 2
new_rors: 051escj72;0000n5x09
previous_rors: 051escj72
works_examples: W2014756172
contact: e470b1bd89d53598aabab0dcc72f4bd3:2746c75acc918452f5994d56da9c406684ff @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-09. The new affiliations should be visible within the next 7 days.


[system][zero] Add zero-jest package

[x] I have followed (at least) the PR section of the contributing guide.

@brijeshb42 Is this required given the test has been set up?

This is an end-user package to help them test Pigment CSS's styled components when doing so through jest. But yeah, let's close this for now and it can be revived later if more users request for it.


Make Publisher batch-related interfaces private

Closes #5779

@theacodes your review comments are now addressed

Thank you, @mcdonc!


Support night time icons

It's really irritating to see a sun icon displayed when it's clearly dark outside (good thing is you might be asleep and not even notice 😜).
Unfortunately, WU doesn't clearly distinguish icon types at night in the API but they do use dedicated icons. Example:
"icon": "partlycloudy",
"icon_url": "http://icons.wxug.com/i/c/k/nt_partlycloudy.gif",

The nt_ prefix in the file name denotes a night icon (nt = night-time?). Even though WU has a complete set of night-time icons most likely one would only have to support two variations: http://icons.wxug.com/i/c/k/nt_partlycloudy.gif & http://icons.wxug.com/i/c/k/nt_clear.gif
Both could be mapped to Meteocons icons:

nt_clear -> icon C
nt_partlycloudy -> icon I

Plan:

add nt_clear and nt_partlycloudy to weathericons.h
pass icon_url to getMeteoconIcon with every invocation
in getMeteoconIcon do

check whether the icon equals "partlycloudy" or "clear"
if so, check whether icon_url contains "/nt_"
if so, adjust the internal icon type accordingly

Part of https://github.com/ThingPulse/esp8266-weather-station-color/pull/45/commits/7429862d1bade8a3300d782d30e338c72a2feac8 can possibly be reused.

void WundergroundForecast::key(String key) {
  currentKey = String(key);
  if (currentKey == "simpleforecast") {
    isSimpleForecast = true;
    currentForecastPeriod = 1; //added for reset period in first pass, oterwise first period is 24
    ShortTitleIndex = 0; // added as new value, also added in constructor (uint8_t) as private
  }
void WundergroundForecast::value(String value) {
.
.
.
//modifed (removed "nt_" from "night" icon)
if (currentKey == "icon" &&  !isSimpleForecast && currentForecastPeriod < maxForecasts) {
 #ifndef NIGHTICONS
    if (value.substring (0, 3) == "nt_") value.remove(0, 3);
 #endif
	 forecasts[currentForecastPeriod].forecastIcon = value;
  }
.
.
.
if (isSimpleForecast) { //added
  int dailyForecastPeriod = (currentForecastPeriod - 1) * 2;
//added for correct draw russian short weekday names, also modifed in sketch
//String forecastTitleShort added in WGForecast struct
  if (currentKey == "weekday_short" && dailyForecastPeriod < maxForecasts) {
      forecasts[ShortTitleIndex].forecastTitleShort = value;
      ShortTitleIndex += 2;
      if (ShortTitleIndex >= 19)  {
	     ShortTitleIndex = 0;
      }
.
.
.
}


LibreOffice: update to 4.4.5

Thank you for the contribution. It was merged directly as 9df13781ea97becf532a6fecf618adb507f7de46 to keep commit history cleaner. Your contribution is still credited to you.


[building] rollup-plugin-node-resolve dedupe option

We should document the new dedupe option from rollup-plugin-node-resolve, and set up some defaults.

not stale

I can grab this. Assuming we want to default to deduping lit-html?

/me tosses 🍪 to stale

This was implemented.


Ability to overwrite the callback_url on Oauth1Service

Callback_url is specified in your apps.twitter.com console. does rauth provide the ability to over ride this callback and specify your own?

This behavior is defined by the provider (Twitter) so you'll have to dig into their documentation to find out.

so get_request_token can take a param called oauth_callback in the params option.
an example of this looks like
service.get_request_token(params={'oauth_callback':'http://www.overriddencallbackurl.com'})

That's right--you can pass arbitrary parameters to the token request. But it's important to note that the provider defines where this value you can be defined. For instance, Facebook requires that this value be defined ahead of time via their developer console.

Facebook allows you to define multiple callback urls whereas the twitter console only allows one to be defined in their settings so over riding the predefined one was important for me. Thanks for the replies, and good work on the package.


Critical Performance

Slowest Steps:

Performance tests were executed on Raspberry Pi 3

Path Generation (~36 seconds)
Building Generation (~12 seconds)

Total Execution Times:

Without Path-Gen: 24 Seconds
With Path-Gen: 60 Seconds


How can this rep help me?

Sorry, this is really not an issue.
I tried to get your email from your profile, but no success.
I'm trying to study the hadoop ecosystems to see how I can use it to develop a system but one which I can debug on my localhost.
After spending a few minutes checking the project and cloning the project, I still don't understand how can I use this.
Can you please enlighten me?

I use this repository as a means to quickly set up an environment which i can use to run integration tests on..

Thanks @timvw for your response!
@augustoamerico - This project is intended for Java developers that would like to write integration tests without needing a development Hadoop cluster or, say, the Hortonworks Sandbox virtual machine. As part of your test code, you can start a "Mini Cluster" without ever having to install Hadoop or start a virtual machine.
You don't say much about your project, but I would suggest looking at the *IntegrationTest.java files for examples on how to use each of the modules. Here is the HDFS example.

Thank you both!
I will take a look on that.
Regarding my project , I have a web server (java) that provides an app with
some analytics and predictive functionalities (R code) , but now the
project needs to scale and therefore I'm trying to learn the hadoop
ecosystem and the hadoop ways.
I came across this repo and felt that this could be useful somehow, and
that's why I asked the question.
Again, thank you guys!
On Mar 2, 2017 12:12, "Shane Kumpf"<EMAIL_ADDRESS>wrote:

Thanks @timvw https://github.com/timvw for your response!
@augustoamerico https://github.com/augustoamerico - This project is
intended for Java developers that would like to write integration tests
without needing a development Hadoop cluster or, say, the Hortonworks
Sandbox virtual machine. As part of your test code, you can start a "Mini
Cluster" without ever having to install Hadoop or start a virtual machine.
You don't say much about your project, but I would suggest looking at the
*IntegrationTest.java files for examples on how to use each of the modules.
Here
https://github.com/sakserv/hadoop-mini-clusters/blob/master/hadoop-mini-clusters-hdfs/src/test/java/com/github/sakserv/minicluster/impl/HdfsLocalClusterIntegrationTest.java
is the HDFS example.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sakserv/hadoop-mini-clusters/issues/28#issuecomment-283637520,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASdDOs0aCfwykX159_VtObtsWB-YJdgRks5rhrIqgaJpZM4MNffH
.

No problem, @augustoamerico - I'm going to close this issue for now, but I'll keep an eye on any updates in case you have questions. Thanks for your interest.


Verific Frontend Blasts Memories to DFFs

I've been using this simple memory as a test case: test_mem.tar.gz. The memory in examples/smtbmc/demo3.v works as well but is much larger, so it is slow to run.
With the normal front-end, memories are preserved when run as follows:
yosys -p "proc; memory -nomap; opt; prep -top test_mem -nordff; write_smt2 test_mem.smt2" -ql test_mem.log test_mem.v
In this case, test_mem.smt2 contains Arrays.
With the Verific frontend, the memory is transformed into a bunch of DFFs.
yosys -p "verific -vlog2k test_mem.v; verific -import -v test_mem; proc; memory -nomap; opt; prep -top test_mem -nordff; write_smt2 verific_test_mem.smt2" -ql verific_test_mem.log
Here, verific_test_mem.smt2 does not contain Arrays.
It appears that \mem is imported as a NetBus instead of a RamNet, which is checked for in frontends/verific.cc. Additionally, there is an instance with Type OPER_DUAL_PORT_RAM which is unhandled. I tried adding a RTLIL::Memory in that case, but got stuck trying to connect it properly.
Here's the log file for the verific case: verific_test_mem.log

I can only assume this has something to do with how verific is configured (something in VeriCompileFlags.h or maybe DBCompileFlags.h), because it works fine here with the Verific version I have. Here is the log file I get when trying to reproduce the issue: verific_test_mem.log As you can see I get a memory from Verific (and an Array in my .smt2 file).

Thanks for the quick response! That was indeed my problem. The version I'm using was configured with dualport rams instead of multiport rams as the default. This is actually configurable at runtime. I'll submit a pull request to set these runtime flags, in case other people have the same problem. As far as I know, there's no reason to use dualport over multiport rams with Yosys.


Update maintainers.yml

Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/india/blob/main/CONTRIBUTING.md.

Which change are you proposing?

[ ] Adding/updating open source project/s
[x] Adding/updating maintainer/s

Adding/updating maintainer/s

[x] Maintainer's location on their GitHub profile indicates as India
[x] Maintainer has approved this PR to be included on the website

What open source project/s does the individual maintain?

https://github.com/tuhinpal/tplayer.js
https://github.com/tuhinpal/dynamic-image
https://github.com/tuhinpal/CloudflareDB
https://github.com/tuhinpal/WhatsBot
https://github.com/tuhinpal/readme-stats-github
https://github.com/tuhinpal/imdb-api

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Thanks for your contribution @tuhinpal 💙
It's great to see the amazing work you've been doing in open source through all of your projects! For this listing, we are providing an opportunity for maintainers of open source projects with significant traction in the community. I am confident that you will get there soon, at which point we'd be happy to feature you.
Until that, all the best in your open source journey!


Doc: Make README.md look better :)

Thanks, 2 minor comments, but looks good otherwise

Thanks, looks better indeed :)


Pin redb1 at 1.0.0

without pinning the version, Cargo chooses the latest semver compatible version, which is 1.1.0 - defeating the intention of the backwards-compatibility tests.

Merged. Thanks!


Update localities autocomplete for new related properties in response

Issue
localities#982
Describe your changes
Update localities autocomplete for new related properties in response
How to test

Checklist:

[ ] My code follows the style guidelines for this repo
[ ] I have performed a self-review of my code
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings/errors
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I don't require ops changes for this PR to go to prod
[ ] This change does not include a migration

Comments

Just à little reminder for your commit message to add feat: or fix: to match semantic versioning please (otherwise no release for this PR).
Btw, ok to go as it is. I will push new PR for another task that will trigger the release.

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

v1.21.0
GitHub release

Your semantic-release bot :package::rocket:


Fixing displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper.

The number of items on the current page broke in Mongoid 2.4 and looks broken with Mongomapper 0.10.1 (don't know since when). The Mongo Ruby driver takes a parameter to specify whether count should respect :limit or whether to return the count for the entire collection.
Introducing current_page_count that wraps count most of the time, except when count is more complicated.
Fixed specs to work with an actual mongodb database for both mongoid and mongo_mapper and removed the stubs that hid the pagination problem.

thanks for your pull request. I have some comments.

Updated with the renamed variables. Let me know about that class name thing, maybe I am missing something :)

thanks for your reply. I try to merge after class name renamed.

Classes renamed. LMK if you want me to do anything else.

@dblock nice :)


Error when use name attribute on createIntent

Environment details

OS: Windows
Node.js version: 12
npm version: 6.13.4
@google-cloud/dialogflow version: 3.4.0

Steps to reproduce
I want to create an Intent but i have problems with name attribute.

if i not include the parameter name in the function, i get an error "Resource name does not match format"
if i include the parameter name, i get an error: "Please only set 'display name'"

So in details this is happining:

Simplify i code this:

const intentsClient = new IntentsClient();
intentsClient.createIntent({
  parent: intentsClient.agentPath(firebaseProjectId),
  intent: {
    displayName: 'NombreTest',
    isFallback: false,
    inputContextNames: ['test'],
    events: [],
    trainingPhrases:[],
    action: '',
    parameters: [],
    messages: [{ payload: { fields: {} } }],
  },
});

i have the error, literaly:
Error: 3 INVALID_ARGUMENT: com.google.apps.framework.request.BadRequestException: Resource name does not match format 'projects/{project_id}/agent/sessions/{session_id}/contexts/{context_id}' or 'projects/{project_id}/locations/{location_id}/agent/sessions/{session_id}/contexts/{context_id}'.

{
code: 3,
details: "com.google.apps.framework.request.BadRequestException: Resource name does not match format 'projects/{project_id}/agent/sessions/{session_id}/contexts/{context_id}' or 'projects/{project_id}/locations/{location_id}/agent/sessions/{session_id}/contexts/{context_id}'.",
metadata: Metadata {
internalRepr: Map { 'grpc-server-stats-bin' => [Array] },
options: {}
},
note: 'Exception occurred in retry method that was not classified as transient'
}

And i dont know the session Id, there should not ask me that information because the intent will be hosted in none session Id, or i am wrong?

And if i include the parameter name like that

const intentsClient = new IntentsClient();
intentsClient.createIntent({
  parent: intentsClient.agentPath(firebaseProjectId),
  intent: {
    name: intentsClient.intentPath(firebaseProjectId, 'NombreTest'), <-------- THIS LINE
    displayName: 'NombreTest',
    isFallback: false,
    inputContextNames: ['test'],
    events: [],
    trainingPhrases:[],
    action: '',
    parameters: [],
    messages: [{ payload: { fields: {} } }],
  },
});

i have the error:
Error: 3 INVALID_ARGUMENT: com.google.apps.framework.request.BadRequestException: Please only set 'display name', CreateIntentRequest.intent.name should be empty. It will be generated by the server upon creation.
{

code: 3,
details: "com.google.apps.framework.request.BadRequestException: Please only set 'display name', CreateIntentRequest.intent.name should be empty. It will be generated by the server upon creation.",
metadata: Metadata {
internalRepr: Map { 'grpc-server-stats-bin' => [Array] },
options: {}
},
note: 'Exception occurred in retry method that was not classified as transient'
}

Can any one help me?
I really appreciate your time. Thanks!

I can fix the problem, the problem was in inputContextNames because the name is the path of de context not the only the name (dieplay name).
I mark the issue as close.


Upgrade Surefire 3.3.1 -> 3.5.0

This PR contains the following updates:

Package
Type
Update
Change

Surefire
build
minor
3.3.1 -> 3.5.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Surefire 3.3.1 -> 3.4.0

See https://github.com/apache/maven-surefire/compare/surefire-3.3.1...surefire-3.4.0

Version 3.5.0 also LGTM. Updated suggested commit message again.

Sorry for waiting a bit with some of these PRs. I saw you had to make some manual changes and that we want to prevent where possible of course. So opening a PR in the Renovate repository to prevent that :wink:.


[Question] Is it possible to acheive a SliverList behavior with this package while using multiple PaginatedFirestore?

Hi there, first of all thanks for your package!
I've created a page view with two PaginatedFirestore widgets, both with PaginateBuilderType.listView.
But now I wish to scroll the entire view, while also been able to scroll each one of listviews created by PaginatedFirestore.
Is it possible? I've been trying to use SliverList, CustomScrollView but all of their children needs to be a SliverRender...
I know this is not StackOverflow and I think it is possible to achieve this, but I'm realy struggling to find a way.
Thx!

PaginatedFirestore is built with CustomScrollView. You find resources online to check how to use CustomScrollView inside a CustomScrollView

I'm having the same question. I have a 'large' sliver appbar which for which i want to close the upper half when scrolling down and open it again on the first scroll up.
I have got it to work with just a list of 100 Text widgets, but cannot make it work with the PaginatedFirestore widget. Probably because it scrolls on its own and cannot be part of the larger picture.
@dennysmvn  Did you manage to find a solution?

@WouterVandenputte you can put your appbar in the header and use the PaginatedFirestore as the base scroll.


Automated Docker image build and test

Breaking up the pip.sh into the install and test-on-install

This is aimed at automating testing of docker images.
Also, a step is added in pip.sh to uninstall existing versions of
protobuf and tensorflow if they exist. This addresses pip install-test
issues on non-Docker environments (e.g., Mac)

Using virtualenv to perform pip test-on-install

The built pip-package is installed in a virtualenv, then the pip install test and the tutorial
test are carried out inside the virutal env. This is done inside the same docker container as the one used for bazel build, if docker is available.

Automating Docker image build and test

ci_parameterized_build now has a new env-var parameter:
TF_BUILD_DOCKER_TEST, that can be used to trigger Docker image build
and test following the PIP build (i.e., TF_BUILD_IS_PIP=PIP or BOTH).
The image is automatically tagged as ${USER}/tensorflow:${VERSION},
wherein the version is extracted from version.h.
The main script for Docker build and test is the newly added:
docker_test.sh
It uses Dockerfiles in tools/ci_build/docker and installs the whl files
inside the Docker image. After the pip installation step, the Python
unit tests and tutorial tests are inside the Docker container.

Can one of the admins verify this patch?

Splitting the test out of pip.sh is good. Using virtualenv is good. Testing the docker images is, imho, nice to have but not critical for now. We should not change the docker files. Also putting docker files testing into parametrized build is, imho, an overkill.

Addressed @jendap's comments. Closing this PR and opening a new fresh one with all changes squashed. https://github.com/tensorflow/tensorflow/pull/1380


Can you make examples of the stackblitz?

There is one and a demo app. Will be adding more.

I'd like to see an example on stackblitz with actions (not only mutations) as simple as possible.

Here is a pretty simple example.
In console.log the state is updated correctly. Also the template is updated correctly.
In redux dev tools the state is updated with a delay of a dispatch. I've the same problem In component, If I set changeDetection to onPush.
It's like Mutations directly change the state instead of working on a shallow clone of the state. The same happens  returning a new state using:
return {...state, ...{data: payload}}

This is kinda an ongoing thing that we will always need. No reason to really track it.


ROS demo

Hello, is your project a useful example on ROS?
If so, please share with us. Thank you!

Sorry, we didn't test on ROS.


deprecate Bytes::blit_from_string and Bytes::set_utf16_char

Pull Request Test Coverage Report for Build 4028
Details

9 of 9 (100.0%)  changed or added relevant lines in 5 files are covered.
43 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.8%) to 79.632%

Files with Coverage Reduction
New Missed Lines
%

bytes/bytes.mbt
1
77.27%

builtin/bytes.mbt
4
56.9%

option/option.mbt
38
24.53%

Totals

Change from base Build 4026:
-0.8%

Covered Lines:
4332

Relevant Lines:
5440

💛  - Coveralls


[FEATURE REQ] TokenExchangeManagedIdentitySource handle I/O asynchronously

Library name
Azure.Identity 1.8.1
Please describe the feature.
TokenExchangeManagedIdentitySource.cs
The issue from the above comment is resolved, so it should be possible to update this implementation to handle I/O asynchronously.

//cc: @christothes

Thank you for your feedback.  Tagging and routing to the team member best able to assist.


Fixes for the OrderSend function [MT5]

Here are some changes for the proper working of OrderSend function.
The change from wcslen to wcsnlen is optional. I'm not entirely sure it's necessary.
And the modifyed StopLoss to BreakEven functionality, based on symbol name:
mtApiClient.PositionSelect(symbol);
MqlTradeResult result;
MqlTradeRequest request = new MqlTradeRequest();
request.Symbol = symbol;
request.Action = ENUM_TRADE_REQUEST_ACTIONS.TRADE_ACTION_SLTP;
request.Sl = mtApiClient.PositionGetDouble(ENUM_POSITION_PROPERTY_DOUBLE.POSITION_PRICE_OPEN);
request.Tp = mtApiClient.PositionGetDouble(ENUM_POSITION_PROPERTY_DOUBLE.POSITION_TP);
bool ok = mtApiClient.OrderSend(request, out result);

Thank you for your efforts.


chore(deps): bump uikit from 3.15.17 to 3.15.24

Release Notes

This fixes:

Fix Dropbar partially closing before opening when switching between Navbar items
Fix Parallax component updating too late during slide animation in Filter component
Fix Tooltip component appends to container option, prevents margins in scroll container
Fix regression in scrollParents function
Fix prevent background scrolling in Safari
Fix Scroll component scrolls to elements by name
Fix Tooltip appends itself to the closest scroll container if within element referenced by container option
Fix nav in Dropdown component not overriding properties of Nav component
Fix disable native position sticky in Sticky component if parents overflow is not set to visible
Fix Drop positioning
Fix stacking context if using position: sticky in Sticky component
Fix height calculation for box-sizing: border-box on Accordion content
Fix error in console if image can't be loaded in Svg component with stroke-animation: true
Fix scrollIntoView() no longer considers elements with position: clip as scrollable parents
Fix Slider shows not centered initially with center: true
Fix positioning of Tooltip and Drop components if target is inline element
Fix Sticky component resizing on clsBelow class causes stutter
Fix Sticky component correctly resets on becoming inactive
Fix detection of finite mode in Slider component with center option enabled

This adds:

Add Eye and Eye Slash icons
Add larger gap on larger viewports to Navbar component in UIkit theme
Add gradient for text background to Text component in UIkit theme
Add gradient for thumbnav item to Thumbnav component in UIkit theme

This changes:

Update Lifesaver, Paint Bucket and Video Camera icons to fit outline style
Improve close icon not overlaying content in Modal component in UIkit theme
removeAttr no longer accepts a space separated list of attribute names

Primarily doing it for the :eye: icon :smile:


Unable to locate package lambda-stack-cuda or lambda-server

It seems like the URL http://archive.lambdalabs.com/ubuntu  is not valid as a source anymore? Unless I'm missing something obvious.
I get the following error when trying to build a docker image.
#0 6.525 Get:5 http://archive.lambdalabs.com/ubuntu jammy InRelease [3170 B]
#0 6.619 Fetched 3170 B in 1s (4998 B/s)
#0 6.619 Reading package lists...
#0 7.022 Reading package lists...
#0 7.394 Building dependency tree...
#0 7.474 Reading state information...
#0 7.484 E: Unable to locate package lambda-stack-cuda
#0 7.484 E: Unable to locate package lambda-server
------
Dockerfile.jammy:17
--------------------
  16 |     ADD lambda.gpg .
  17 | >>> RUN apt-get update && \
  18 | >>>      apt-get install --yes gnupg && \
  19 | >>>      gpg --dearmor -o /etc/apt/trusted.gpg.d/lambda.gpg < lambda.gpg && \
  20 | >>>      rm lambda.gpg && \
  21 | >>>      echo "deb http://archive.lambdalabs.com/ubuntu jammy main" > /etc/apt/sources.list.d/lambda.list && \
  22 | >>>      echo "Package: *" > /etc/apt/preferences.d/lambda && \
  23 | >>>      echo "Pin: origin archive.lambdalabs.com" >> /etc/apt/preferences.d/lambda && \
  24 | >>>      echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/lambda && \
  25 | >>>      echo "cudnn cudnn/license_preseed select ACCEPT" | debconf-set-selections && \
  26 | >>>      apt-get update && \
  27 | >>>      DEBIAN_FRONTEND=noninteractive \
  28 | >>>              apt-get install \
  29 | >>>              --yes \
  30 | >>>              --no-install-recommends \
  31 | >>>              --option "Acquire::http::No-Cache=true" \
  32 | >>>              --option "Acquire::http::Pipeline-Depth=0" \
  33 | >>>              lambda-stack-cuda \
  34 | >>>              lambda-server && \
  35 | >>>      rm -rf /var/lib/apt/lists/*
  36 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && \tapt-get install --yes gnupg && \tgpg --dearmor -o /etc/apt/trusted.gpg.d/lambda.gpg < lambda.gpg && \trm lambda.gpg && \techo \"deb http://archive.lambdalabs.com/ubuntu jammy main\" > /etc/apt/sources.list.d/lambda.list && \techo \"Package: *\" > /etc/apt/preferences.d/lambda && \techo \"Pin: origin archive.lambdalabs.com\" >> /etc/apt/preferences.d/lambda && \techo \"Pin-Priority: 1001\" >> /etc/apt/preferences.d/lambda && \techo \"cudnn cudnn/license_preseed select ACCEPT\" | debconf-set-selections && \tapt-get update && \tDEBIAN_FRONTEND=noninteractive \t\tapt-get install \t\t--yes \t\t--no-install-recommends \t\t--option \"Acquire::http::No-Cache=true\" \t\t--option \"Acquire::http::Pipeline-Depth=0\" \t\tlambda-stack-cuda \t\tlambda-server && \trm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Closing as stale. Both docker images build correctly as of now. Re-open a new issue if you have further problems.


different layout for each monitor

useful for rotated monitors, master is not useful for standing monitors

the current system is very much not made with this in mind, but it probably might be an option in the future

Just switched to hyprland (from dwm). It seems hyprland already does pretty much everything I need out of the box (good work!) except for this. Rather than tie it to a monitor, perhaps it could even be tied to a workspace? (allowing different layouts on different workspaces akin to dwm), since we can already bind workspaces to monitors with wsbind.

read my comment.

Any progress on this?

nope

Guys, a form of this is in the wiki: https://wiki.hyprland.org/Configuring/Master-Layout/#config
workspace = 2, layoutopt:orientation:top
this will change the orientation of just workspace-2. From there, you could also bind the vertical monitor to that workspace:
workspace = 2, monitor:[m], layoutopt:orientation:top

That is using different layout configuration for different workspaces, not different layouts.

@devraza You cannot change the layout (master/dwindle) based on workspace or monitor (what this issue is about). The example given above just changes the orientation of the master layout.


GHSA-5wqf-h3r3-gxvh contains other component problems

GHSA-5wqf-h3r3-gxvh We are org.apache.cxf:cxf-core components.But snyk is an org.apache.cxf:cxf-api component. Should this vulnerability contain these two components?
https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHECXF-30557
https://github.com/advisories/GHSA-5wqf-h3r3-gxvh

Hi @zhangzhenyu2, thank you for your contribution. To suggest adding a new package, please use our improvement suggestion form.


Add python 3.9 and 3.10 support

I'm not sure if this is how I should go about adding python 3.9 and 3.10 support, so let me know if there is anything else I need to do. I need to add this because when I add python3.9 support to pyrlp, pip is unable to find this dependency. Here's a link to the failure on CI if you're curious.
EDIT: Also looks like I need approval before running a workflow. Thanks!

I merged the Py 3.5 removal so this needs another rebase now

I will need to cut new versions and put them on pypy to resolve your issue in py-rlp. I try to get that done later.


sparse Jacobians fail with Julia 1.7 beta3

Visible as a Sundials.jl package test failure:
julia> versioninfo()
Julia Version 1.7.0-beta3.0
Commit e76c9dad42 (2021-07-07 08:12 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.0 (ORCJIT, skylake)

(sundialstest) pkg> st
      Status `~/software/julia/sundialstest/Project.toml`
  [c3572dad] Sundials v4.5.1

julia> Pkg.test("Sundials")

Test Summary:    | Pass  Error  Total
Common Interface |   45      1     46
  CVODE          |   25            25
  ARKODE         |    4             4
  IDA            |    7             7
  Jacobians      |    1      1      2
  Callbacks      |    6             6
  Iterator       |              No tests
  Errors         |    1             1
  Mass Matrix    |    1             1

Looks like this might just be that the initial sparse Jacobian construction fails the new SparseMatrixCSC consistency checks introduced in Julia 1.7 ?
Jacobians: Error During Test at /home/sd336/.julia/packages/Sundials/cdlY7/test/runtests.jl:63
  Got exception outside of a @test
  LoadError: ArgumentError: Illegal buffers for SparseMatrixCSC construction 2 [1, 1, 1] [0, 0, 0, 0] [0.0, 0.0, 0.0, 0.0]
  Stacktrace:
    [1] SparseMatrixCSC
      @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/SparseArrays/src/sparsematrix.jl:29 [inlined]
    [2] SparseMatrixCSC(m::Int64, n::Int64, colptr::Vector{Int64}, rowval::Vector{Int64}, nzval::Vector{Float64})
      @ SparseArrays /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/SparseArrays/src/sparsematrix.jl:44
    [3] convert(#unused#::Type{SparseMatrixCSC}, J::Ptr{Sundials._generic_SUNMatrix})
      @ Sundials ~/.julia/packages/Sundials/cdlY7/src/types_and_consts_additions.jl:54
    [4] cvodejac(t::Float64, u::Ptr{Sundials._generic_N_Vector}, du::Ptr{Sundials._generic_N_Vector},
_J::Ptr{Sundials._generic_SUNMatrix}, funjac::Sundials.FunJac{ODEFunction{true, typeof(Lotka),
LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, typeof(Lotka_jac), Nothing, Nothing, SparseMatrixCSC{Float64, Int64},
SparseMatrixCSC{Float64, Int64}, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED),
Nothing}, Nothing, typeof(Lotka_jac), SciMLBase.NullParameters, Nothing, SparseMatrixCSC{Float64, Int64}, Vector{Float64},
Nothing, Nothing, Nothing}, tmp1::Ptr{Sundials._generic_N_Vector}, tmp2::Ptr{Sundials._generic_N_Vector},
tmp3::Ptr{Sundials._generic_N_Vector})
      @ Sundials ~/.julia/packages/Sundials/cdlY7/src/common_interface/function_types.jl:68
    [5] CVode
      @ ~/.julia/packages/Sundials/cdlY7/src/API/cvodes.jl:166 [inlined]
    [6] CVode(cvode_mem::Sundials.Handle{Sundials.CVODEMem}, tout::Float64, yout::Vector{Float64}, tret::Vector{Float64}, itask::Int32)

OK, that was it.
Proximate cause was that the sparse SUNMatrix isn't fully initialised (?).
More fundamental problem is that
Base.convert(::Type{SparseArrays.SparseMatrixCSC}, J::SUNMatrix)
was inherently unsafe as an in-place 1-based indexing correction creates an invalid SUNMatrix
(the Sundials.jl cvodejac etc did overwrite again with zero-based indices, but this presumably could cause invalid memory access in the Sundials library if there were code paths that didn't subsequently
undo the correction, and that could happen in external code as this was in Base).
I've created a PR that replaces the problematic Base.convert with a Base.copyto!
https://github.com/SciML/Sundials.jl/pull/316
Tests now pass on Julia 1.6 and 1.7.

Thanks! Should all be good on latest patches now.

Confirm looks good with v4.5.2. Thank you!


How to monitor the internal signals of a design (Opentitan) using  Integrated Logic Analyzer (ILA).

I want to understand working internal signals.
Issue is How to connect ILA IP core to this (opentitan)design??

The Xilinx/Vivado documentation would be the best place to find the details of the ILA setup.
From the OT side you can open up the vivado project file directly from the GUI which can be found in build/lowrisc_systems_top_earlgrey_nexysvideo_0.1/synth-vivado/ if you've already run fusesoc to generate an image. Though beware it will have a separate copy of the RTL files.
You can generate a project file that uses the RTL in the OT tree (rather than a copy under build/) see the details here: https://docs.opentitan.org/doc/ug/getting_started_fpga/#develop-with-the-vivado-gui
In the past I've just opened up the project in Vivado, generated an ILA IP which I've instantiated at top-level then used hierarchical references to connect down to the signals I'm interested in.

Hi @ladmangesh805 in general it would be helpful if you could add more details in your questions:

What are you planning to do?
What have you tried so far?
What the issues are?
Have you got any specific signals in mind?
Anything else you could think of to help people answer your questions?

Thanks

Hi @silvestrst
Answers of above questions
1.I planning to add SHA3 in opentitan project.
2.I have removed SHA2 and  added the SHA3 core in HMAC , but not able to check his  working compatibility and simulation (how much cycle it takes ).
3.Issue is I do not have VCS and xcelium for simulation so I trying another method i.e ILA for singal monitoring.
4.The specific signal is HMAC .
5.After adding SHA3 i want run C code on it....now i do not know how it will work.
Thanks for Guidance

@GregAC gave a good introduction of how ILA can be used with OpenTitan. If you have ILA-specific questions, please ask in the Xilinx Forum. If you find a bug in OpenTitan that makes ILA unusable, please open a bug report here with exact steps to reproduce the issue.


Add RELEASE_NOTES entry for knife rehash

cc @jaym

:+1:

Can we make chef gem run this after all commands? That should make it very rare that a user would need to do it manually.

@coderanger Yes, I believe that is the plan.


Split stack for items

Split stack of items in two separated stacks

suck my balls you fucking dumb function, I win ahahahahahahahah

There is some issues when you restart the game, client is screaming non sense, need more investigating

2022-07-16 11:55:59.435 +02:00|<IP_ADDRESS>.18876|Error|Default|  EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object   at GClass1146+TraderSettings+Struct92.MoveNext () [0x000b2] in <a9189019ffe84db198aca74420ff5c0e>:0  --- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0    at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in :0
at GClass1146+TraderSettings+Struct93.MoveNext () [0x00068] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0    at EFT.UI.TraderAvatar+Struct580.MoveNext () [0x00087] in <a9189019ffe84db198aca74420ff5c0e>:0

France baise ouai


[Feature] Multithreading / multi delete

Hi, is there any way to speed the process by doing multi threading for example ?
deleting message one by one is kinda slow, i was woundering if it is possible to make multitask or something like that to accelerate it
thanks

Likely not possible due to Discord rate-limiting

It is not possible, and trying to circumvent this limitation would be detrimental to discord's  servers, which is not something I plan on doing.


Catch all exceptions when iterating over entries and comments, both ways.  Skip and log the problem at the entry level, then continue with the sync

This task is all about making LFMerge more robust by reducing the number of projects on HOLD.  Any exception that occurs while in the entry or comment loop within either TransferMongoToLcm or TransferLcmToMongo should be handled by

log the exception error to the state file
skip the entry or comment and carry on with the next

Additional information about exception handling should now be kept the sync state file.  I propose the following changes to the state file:
Remove "ErrorMessage" in favor of an "Error" object with multiple properties.
Behavior:

If no exceptions are thrown in a LfMerge sync, the Error object is discarded and the state is set to IDLE

If an exception is thrown in a place other than the looping over entries / comments, the exceptionMessage is filled out and the state changes to HOLD.

LFMerge will catch all exceptions inside the loops over entries and comments and log the error messages, as well as metadata about the comment/entry which failed to sync.  Skip the failed entry and increment the skip counter.  The sync will finish with a log of errors available to the user, and the state is set back to IDLE

the proposed Error object looks like this (also attached as a json file for easy copy/paste):

{
  "Error": {
    "timestamp": "timestamp of when the exception occurred (or in the case of skipped entries/comments) the time when processing finished",
    "exceptionMessage": "string of global error message that occurred (not while looping entries/comments)",
    "skipped": {
      "toMongo": {
        "entries": {
          "count": 5,
          "list": [
            {
              "guid": "FW GUID",
              "id": "MongoId",
              "exceptionMessage": "message",
              "label": "string representing the entry - probably lexeme first non empty WS. 100 character limit"
            }
          ]
        },
        "comments": {
          "count": 3,
          "list": [
            {
              "guid": "FW GUID",
              "id": "MongoId",
              "exceptionMessage": "message",
              "label": "string representing the comment- 100 char limit",
              "entry": {
                "guid": "FW GUID",
                "id": "MongoId",
                "label": "string representing the comment- 100 char limit"
              }
            }
          ]
        }
      },
      "toLcm": {
        "entries": {
          "count": 5,
          "list": [
            {
              "guid": "FW GUID",
              "id": "MongoId",
              "exceptionMessage": "message",
              "label": "string representing the entry - probably lexeme first non empty WS. 100 character limit"
            }
          ]
        },
        "comments": {
          "count": 3,
          "list": [
            {
              "guid": "FW GUID",
              "id": "MongoId",
              "exceptionMessage": "message",
              "label": "string representing the comment- 100 char limit",
              "entry": {
                "guid": "FW GUID",
                "id": "MongoId",
                "label": "string representing the comment- 100 char limit"
              }
            }
          ]
        }
      }
    }
  }
}

I'll have to think about this one. My first thought was that this could have data-integrity implications because we'd be doing partial updates, where some entries did not get sent to the server, instead of full updates. But since we can report the failed entries to the user, that's probably okay.

Another minor thought is that the 100 character limit needs to be handled carefully. With UTF-8 text, you can't just chop a string at 97 characters and add "..." to it. You have to check if the byte you're discarding has binary form 10xxxxxx (e.g., in the 8x through bx range in hex), and if so, rewind until the first byte that does not land in the 8x-bx range. That ensures that you're not truncating a UTF-8 string in the middle of a multi-byte sequence and creating invalid UTF-8. But that's a pretty simple algorithm, and it will be pretty easy to write a trimUtf8 function. So I'll leave this comment around so that when I implement this idea later on, I won't forget about trimming UTF-8 correctly.

Further thoughts: if the skip counter gets too large (say, 25 entries), then abort the whole update and report to the user that there were lots of errors, here's the first 25. We don't want the user to feel overwhelmed if his project with 1,000 entries has the same error in every entry. Still don't put the project on hold, but don't send a partial update to Language Depot if there were more than 25 errors.

Started working on this today, and found another design issue that needs to be thought through.
Currently, we sync all the entries, then sync the comments as a separate step; the comments are in a different file (*.ChorusNotes) in FLEx, so that makes sense. But if there was a comment on an entry that failed to sync, it does make it difficult to skip those comments. (Which is probably necessary, otherwise it would be possible to end up with a comment referring to entries that aren't there, or all kinds of other weird situations). The ConvertLcmToMongoComments code will probably need to change to include a list of entries that failed to sync, and then skip any comment referring to those entries.

I think keeping track of failed sync entries is probably overkill.  A failed sync on an entry doesn't necessarily mean that the entry doesn't exist (although it could mean that).  A better check could simply be to check if the entry exists in the target before adding comments that refer to that entry.  If the entry doesn't exist, skip creating the comment.


get_oracle_db_id - oracle_id Reset When Multiple DBs in Loop

https://github.com/pcrouleur/rubrik_oracle_tools/blob/90445d027089ffde140f36c1c352b68527c5fe85/rbs_oracle_common.py#L123
In the get_oracle_db_id method, we have the situation where we can't get an oracle_id value returned.  This happened after we migrated a database to a new host.  For the duration of our SLA retention policy we'll have snapshots registered with old and new IDs.  In the rubrik API this means we have 2 IDs for this database name and different standaloneHostName values.
At line 118, we'll loop over these 2 db's data sets.  The first pass will set oracle_id correctly because our supplied database_host value and standaloneHostName match.  On the 2nd pass of the for loop, the database_host != standaloneHostName check happens and we set oracle_id back to None, overwriting our previous correct ID.
Would it make sense to remove the oracle_id = None at line 123 and just break?   oracle_id is already initialized to None at line 113 so if we have no matches, we still hit the No ID found... check.  and probably the same removal needed at line 134.
Example call:
 rbs_oracle_common.RubrikRbsOracleDatabase(rubrik, database_host="new_host", database_name="db1")

Example api data (oracle_dbs):
{
  "hasMore": "false",
  "data": [
    {
      "id": "OracleDatabase:::d1234cc1-4544-410b-c3p0-5467345644",
      "name": "db1",
       ...
      "standaloneHostName": "new_host"
    },
    {
      "id": "OracleDatabase:::d12341e8-4454-4450-r2d2-423452345d",
      "name": "db1",
       ...
      "standaloneHostName": "old_host"
    }
  ],
  "total": 2
}

Good catch. That is a bug. I'm thinking of moving the host name check into a function, so I can eliminate the inner loop and instead break when the hostname is a match.  Working on that now. Thanks!

I have a fix to test in a new branch - db_id_fix. I'm testing now and so far so good. If you can switch to that branch and let me know if this fixes your issue, I would appreciate it. It's hard to test all these permutations. Thanks!

The fix seems to be working, so I merged it into the master.  I am deleting the db_id_fix branch. Let me know if this resolves your issue. Thanks!

Thanks for the quick fix!  We did make the same fix locally to get unblocked and it did fix our issue.

I just saw your commit included the host name function too - we'll work on getting that pulled in and verify it but it looks pretty straight forward.


Improvements to fog

FogOption::color is now correctly multiplied by the exposure and environment intensity.
New option to exclude the skybox from the fog
better documentation and naming

Please add [⚠ **Recompile Materials**] to the release note lines. And to confirm, these changes don't require a material version bump?

correct


Attempting to add duplicate SolrField should give a more helpful error

Obviously, attempting to use the same field-name in a single class, as in the code below, is an error, but it's not handled very gracefully.
Example:
class WithDuplicateFields
{
    [SolrField("foo")]
    public string Prop1 { get; set; }

    [SolrField("foo")]
    public string Prop2 { get; set; }
}

As it is, this will not be handled until AttributesMappingManager::GetFields is run, upon trying to add the document to an ISolrOperations-instance, where an exception will be thrown by the ToDictionary-call. In .NET Framework, the full error message given is System.ArgumentException: 'An item with the same key has already been added.', which isn't very helpful at all. In .NET Core, the error message is System.ArgumentException: 'An item with the same key has already been added. Key: foo', which is slightly better, but could probably be made more clear.

@frjonsen Thanks for reporting the issue, you are right that the error message is not really friendly. Would you be interested in posting a fix?


full syntax: added INCLUDE clause in table_index

The include works in Developer Edition 2022 (Microsoft SQL Server 2022 (RTM-GDR) (KB5021522) - 16.0.1050.5 (X64)) but was missing from this documentation.
Also not recognised by IntelliSense for SQL Server Management Studio 19.0.20209.0+f9a9d8f6 (incorrect syntax).

@markingmyname
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

@VesperAdamczuk Thanks for your contribution. It seems this was introduced in SQL Server 2019, so I'll be creating an internal PR to make sure we capture this information for 2019+ versions.


Creating a Single Page Application (SPA) using React routes.

Proposed title of article
Creating a Single Page Application (SPA) using React routes.
Introduction:
Single page application become a trend in the web. Many big companies use it to build modern web apps.
In traditional web apps pages are reloaded everytime you navigate through the links. But with the coming of SPA, web pages load once and you can navigate without reloading anything.
Among the cutting-edge technologies that give the possibility of building SPA, reactjs is one of the best. With the concept of react routers you can easily create a SPA in no time.
To correctly grasp the concepts, we will build a little blog SPA through the tutorial. However the main point is not building a great app but understanding the implementation of the spa in the app.
This tutorial is a walkthrough towards a good understanding of what is a SPA and how to implement it with react routes. Please code along while following the tutorial to effectively understand the concepts..
Key takeaways:
At the end of this tutorial you will understand:

What is a SPA
How to use react routes
How to manage the links in react

References:
https://reactrouter.com/web/api/Link
https://www.pluralsight.com/guides/understanding-links-in-reactjs
Templates to use as guides
Tutorial Template

Good afternoon and thank you for submitting your topic to the EngEd program.
After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations. We typically refrain from publishing content that is covered widely on the net or other blogs. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
But in order to approve the topic it has to serve value to the larger developer community at large. Please feel free to suggest an alternate topic to explore. 🚀
An option and a great way to write this as an in-depth article and make it more add value to the greater developer community at large would be to walk the reader through the USE of methods and functions by building a unique, different, useful project.
If you believe your article is unique enough - please present your case to explain how it will be different from what is currently out there?
https://www.google.com/search?q=Single+Page+Application+(SPA)+using+React+routes&rlz=1C1CHBF_enUS891US891&sourceid=chrome&ie=UTF-8


Add an article about Provectus® UI for Apache Kafka®

What changed, and why it matters
I've added a new article about Provectus® UI for Apache Kafka®, since it's very popular, and most probably the most powerful web GUI for Apache Kafka®.

I've requested:
@TibsAtWork because you wrote the similar article about Kafdrop.
@jlprat because you are ™ and ® master, and I'm not. :joy:

I'm on it, leave it with me for few minutes

Sure. I'll push in 5 minutes.

@ftisiot Done.


admin: Relicense code under Apache 2.0

Per PR #3905 (https://github.com/OpenImageIO/oiio/pull/3905), update the
RELICENSING document with the names of people and companies who have
signed on to the relicensing thus far, and update the SPDX license
notices on source files whose extant authorship (per 'git blame')
comprises only authors who have relicensed.
This is part 2, the original PR is ongoing and we will continue to
update as additional people relicense.
Signed-off-by: Larry Gritz<EMAIL_ADDRESS>

I don't expect anybody to easily double check it. But the way this works is that Danny wrote some scripts that a few weeks back produced the list of the extant authors of every file. As each person relicenses, I get rid of their lines from the list. When there are no more unlicensed names associated with a file, I change its license to just Adobe 2.0. I also have a spreadsheet where I'm keeping track of all the authors and how many total lines they each have, and which people have relicensed. That's how I'm computing the percentages.


Ignore 249-oneformer-segmentation

Excluding 244-named-entity-recognition.ipynb from conversion.

@andrei-kochin This is excluded only for one stage of documentation conversion because it causes timeouts. It means this notebook won't be re-run to generate new outputs and the current outputs will be used. It doesn't impact anything else (CI, etc.)


Ban item transfer moves with Leppa Berry

There is no legitimate reason to give opponent an useful item, none. However, certain group of people found a way to ignore Endless Battle Clause by trapping the opponent using a move, and then tricking them a Leppa Berry.
To finally end this endless battle nonsense, all ways to get Leppa Berry reused or sent to the opponent are now banned including Bestow (to prevent removing an opponent's item using Knock Off, and then sending a replacement).
It's still possible to cause endless battle, but the opponent has to help a person that wants to cause one, by for example holding Leppa Berry on one of its Pokémon (it can be Tricked). It's also possible to cause endless battle without Leppa Berry by recovering more damage than Struggle recoils deals, and Ditto transforming into that Pokémon (as Limi shows in Super Staff Bros.).
This, however is unlikely to be a concern in practice.

Or you know, the old way of just keep on switching pokemon and never using a move

The proposed bans aren't listed in the Smogon thread  nor in the social outreach media.


fix rounder 0.1 issue

Coverage increased (+0.03%) to 95.172% when pulling 67dc3e146d92e74cc65504b85eb89f2a7730def6 on HotelQuickly:develop into d2134fd3a8b984e5a3ad5eaa51243a3c36031ae1 on davidkalosi:master.

looking at the code, wouldn't it make sense to initialize the default rounder (Math.round) in case none was supplied? That would remove the else branch.

@davidkalosi
else branch makes code more explicit and gives an opportunity to explain why we do this round operation

I would just like to add a voice in support of this PR - I got tripped up by this package with similar issues to #10 and #28.
My suggestion would be to always have a default rounder in place, otherwise it's easy to run into unexpected situations e.g. Money.fromDecimal(157.27, "GBP"); throws an error.
Therefore I support merging this PR, and I agree with @dnfrolov that the explicit else branch is nice and readable.

No need to add another if statement since earlier in code there is already a check for undefined. Review the commit I added to my branch, I feel this may be a cleaner way to handle it.
https://github.com/tastypackets/js-money/commit/0151c0bb3a051b448deeae765354f6795efd4b2f

@tastypackets can you do a PR I like your solution more. I will then reject this PR and merge yours.
thanks

Closing in favor of PR #34


We should mandate emojione for verif emoji and ship a font which includes the right subset

To avoid this mess: https://twitter.com/NireBryce/status/1489099092575858707
See also https://github.com/Nheko-Reborn/nheko/issues/919

It seems like lots of people seem to get confused with comparing images. For example https://github.com/vector-im/element-web/issues/14805 and https://twitter.com/keisisqrl/status/1489235377080520705 in that thread.
Maybe it would be better to have users just compare the words "Pin Pencil Lock Moon Smiley Spanner Apple" and either remove or greatly de-emphasize the emoji.