Use Method#arity instead of Method#parameters

This has the benefit of creating fewer objects in memory just to check the method signature.
(Selfish reason for this PR is that Natalie doesn't have Method#parameters yet 😄)

Actually, I'm going to close this. I could imagine some future version of Ruby where unpack1 takes more arguments, and this will break. I will patch the use of Method#parameters in our build step. ❤


Using Connexion with an OpenApi spec impossible if installed from conda

Description
When installing Connexion from the conda-forge channel, the OpenApi support is not available as the dependency openapi-spec-validator is not available on conda-forge. I know that this is probably not your issue to solve, but something to keep in mind for your developers.
Expected behaviour
The package openapi-spec-validator should be available on conda-forge so that connexion works with Open Api via Conda (and subsequently so that Constructor works with Connexion).
Actual behaviour
An OpenApi spec cannot be validated
Steps to reproduce
Install Connexion via conda-forge, try running an OpenApi spec with it.
Additional info:
Output of the commands:

python --version
pip show connexion | grep "^Version\:"

#936 may help with this, as switching to a pure jsonschema validator would allow us to drop the dependency.

Fixed by #936


[Feature][Keycloak] Can't add SSO in Apache Devlake.

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Use case
The Apache Devlake currently operates without any authentication. I aim to incorporate Single Sign-On (SSO) for enhanced security and user experience.
Description
I propose integrating SSO functionality into Apache DevLake to bolster security and streamline user authentication processes. This feature would enable users to access DevLake seamlessly with their existing credentials, enhancing usability and security simultaneously.
Related issues
While there have been similar requests in the past, they have become inactive and subsequently closed due to inactivity. References: #5140, #5127, #5353, #5389, #5389.
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I am also very interested in having an sso solution available


Add separate key for aggregator signatures

As pointed out by @evan-forbes in https://github.com/celestiaorg/optimint/pull/82#discussion_r677631765
Aggregator signing key should be separate from key used for P2P.

I shall have a go at this.

@tzdybal could you please assign this issue to me?

Resolved by #309


[BUG]  pytorch allocator cache flushes since last step [CUDA error: an illegal memory access was encountered]

Required prerequisites

[X] I have read the documentation https://safe-rlhf.readthedocs.io.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[X] Consider asking first in a Discussion.

What version of safe-rlhf are you using?
0.0.1dev0
System information
>>> import sys, safe_rlhf
[2023-08-14 02:21:28,161] [INFO] [real_accelerator.py:133:get_accelerator] Setting ds_accelerator to cuda (auto detect)
>>> print(sys.version, sys.platform)
3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] linux
>>> print(safe_rlhf.__version__)
0.0.1dev0

Problem description
I am trying to run scripts/ppo.sh using A100x8, but got the following warning during training.
Training 1/1 epoch:  11%|█         | 13/120 [14:10<2:13:05, 74.63s/it][2023-08-14 02:35:10,976] [WARNING] [stage3.py:1898:step] 2 pytorch allocator cache flushes since last step. this happens when there is high memory pressure and is detrimental to performance. if this is happening frequently consider adjusting settings to reduce memory consumption. If you are unable to make the cache flushes go away consider adding get_accelerator().empty_cache() calls in your training loop to ensure that all ranks flush their caches at the same time

Sometimes, it could leads to the error
Training 1/1 epoch:  23%|██▎       | 28/120 [32:53<1:52:24, 73.31s/it]Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/safe_rlhf/algorithms/ppo/__main__.py", line 23, in <module>
    sys.exit(main())
  File "/workspace/safe_rlhf/algorithms/ppo/main.py", line 405, in main
    trainer.train()
  File "/workspace/safe_rlhf/trainers/rl_trainer.py", line 472, in train
    ptx_info = self.ptx_step(ptx_batch)
  File "/workspace/safe_rlhf/trainers/rl_trainer.py", line 412, in ptx_step
    self.actor_model.backward(self.ptx_coeff * ptx_loss)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1895, in backward
    self.optimizer.backward(loss, retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 2041, in backward
    self.loss_scaler.backward(loss.float(), retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/fp16/loss_scaler.py", line 63, in backward
    scaled_loss.backward(retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward
    torch.autograd.backward(
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/function.py", line 274, in apply
    return user_fn(self, *args)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/utils/checkpoint.py", line 157, in backward
    torch.autograd.backward(outputs_with_grad, args_with_grad)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1044, in reduce_partition_and_remove_grads
    self.reduce_ready_partitions_and_remove_grads(param, i)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1332, in reduce_ready_partitions_and_remove_grads
    self.reduce_independent_p_g_buckets_and_remove_grads(param, i)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1079, in reduce_independent_p_g_buckets_and_remove_grads
    self.__reduce_and_partition_ipg_grads()
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1116, in __reduce_and_partition_ipg_grads
    self.param_reduce_events.popleft().synchronize()
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/cuda/streams.py", line 219, in synchronize
    super().synchronize()
RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Reproducible example code
Command lines:
bash scripts/ppo.sh --actor_model_name_or_path output/sft --reward_model_name_or_path output/rm --output_dir output/ppo

Steps to reproduce:

train SFT using official code
train RM using official code
train PPO using official code [Warning comes out here and sometimes it leads to error]

Traceback
Training 1/1 epoch:  22%|██▏       | 26/120 [30:23<1:54:12, 72.90s/it][2023-08-14 01:18:54,483] [WARNING] [stage3.py:1898:step] 2 pytorch allocator cache flushes since last step. this happens when there is high memory pressure and is detrimental to performance. if this is happening frequently consider adjusting settings to reduce memory consumption. If you are unable to make the cache flushes go away consider adding get_accelerator().empty_cache() calls in your training loop to ensure that all ranks flush their caches at the same time
Training 1/1 epoch:  22%|██▎       | 27/120 [31:47<1:58:27, 76.42s/it][2023-08-14 01:19:56,128] [WARNING] [stage3.py:1898:step] 3 pytorch allocator cache flushes since last step. this happens when there is high memory pressure and is detrimental to performance. if this is happening frequently consider adjusting settings to reduce memory consumption. If you are unable to make the cache flushes go away consider adding get_accelerator().empty_cache() calls in your training loop to ensure that all ranks flush their caches at the same time
[2023-08-14 01:20:00,521] [WARNING] [stage3.py:1898:step] 1 pytorch allocator cache flushes since last step. this happens when there is high memory pressure and is detrimental to performance. if this is happening frequently consider adjusting settings to reduce memory consumption. If you are unable to make the cache flushes go away consider adding get_accelerator().empty_cache() calls in your training loop to ensure that all ranks flush their caches at the same time
Training 1/1 epoch:  23%|██▎       | 28/120 [32:53<1:52:24, 73.31s/it]Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/safe_rlhf/algorithms/ppo/__main__.py", line 23, in <module>
    sys.exit(main())
  File "/workspace/safe_rlhf/algorithms/ppo/main.py", line 405, in main
    trainer.train()
  File "/workspace/safe_rlhf/trainers/rl_trainer.py", line 472, in train
    ptx_info = self.ptx_step(ptx_batch)
  File "/workspace/safe_rlhf/trainers/rl_trainer.py", line 412, in ptx_step
    self.actor_model.backward(self.ptx_coeff * ptx_loss)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1895, in backward
    self.optimizer.backward(loss, retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 2041, in backward
    self.loss_scaler.backward(loss.float(), retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/fp16/loss_scaler.py", line 63, in backward
    scaled_loss.backward(retain_graph=retain_graph)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward
    torch.autograd.backward(
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/function.py", line 274, in apply
    return user_fn(self, *args)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/utils/checkpoint.py", line 157, in backward
    torch.autograd.backward(outputs_with_grad, args_with_grad)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1044, in reduce_partition_and_remove_grads
    self.reduce_ready_partitions_and_remove_grads(param, i)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1332, in reduce_ready_partitions_and_remove_grads
    self.reduce_independent_p_g_buckets_and_remove_grads(param, i)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1079, in reduce_independent_p_g_buckets_and_remove_grads
    self.__reduce_and_partition_ipg_grads()
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/deepspeed/runtime/zero/stage3.py", line 1116, in __reduce_and_partition_ipg_grads
    self.param_reduce_events.popleft().synchronize()
  File "/home/safe-rlhf/venv/lib/python3.10/site-packages/torch/cuda/streams.py", line 219, in synchronize
    super().synchronize()
RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Expected behavior
Is the warning critical to run the code? The code may crash suddenly during PPO training.
Additional context
No response
Checklist

[X] I have made every effort to write this issue in English, including all comments, the title, and the description.
[X] I have provided all relevant and necessary information above.
[X] I have chosen a suitable title for this issue.

Hi @bing0037, this issue sometimes arises due to unstable inter-GPU communication. Rerun the training script may resolve this.

Hi @XuehaiPan , thank you for your reply. Actually, I tried three times but all failed... Do you have any suggestion how to make it vmore stable?

@bing0037 This is complicated because it is mostly related to your machine setup and there may be nothing we can help with on our side. Better inter-node networking (e.g., InfiniBand or RoCE connection) and intra-node communication (e.g., NVLink) may help. Please contact your IT administrator or your cloud services.
If you have trouble running the experiment inside the docker container, you can try to use the native environment with our conda recipe, hope that helps.

Thanks!


Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Hi!
Yesterday i run into the problem below:
08:33:30.981 -> Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.
08:33:31.028 -> Core 1 register dump:
08:33:31.028 -> PC      : 0x000005dc  PS      : 0x00060030  A0      : 0x800d14d8  A1      : 0x3ffb8be0
08:33:31.028 -> A2      : 0x3ffbfe78  A3      : 0x000005dc  A4      : 0x00000001  A5      : 0xfffffdb3
08:33:31.028 -> A6      : 0x00000003  A7      : 0x00060f23  A8      : 0x800d14a9  A9      : 0x3ffb8bc0
08:33:31.028 -> A10     : 0xfffffdb2  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000001
08:33:31.028 -> A14     : 0x00060020  A15     : 0x00000000  SAR     : 0x00000005  EXCCAUSE: 0x00000014
08:33:31.028 -> EXCVADDR: 0x000005dc  LBEG    : 0x400029ac  LEND    : 0x400029cb  LCOUNT  : 0x00000000
08:33:31.082 ->
08:33:31.082 -> ELF file SHA256:<PHONE_NUMBER>000000
I downloaded the Exception Decoder and here are the results:
PC: 0x000005dc
EXCVADDR: 0x000005dc
Decoding stack results
0x400d14d5: ESP_FlexyStepper::taskRunner(void*) at D:\PGRDrive\Dolly\Arduino_dolly_ESP32_Flexy_SUMD/ESP_FlexyStepper.cpp line 127
0x40086161: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
I don't know what the core of the error, i see that the line 127 is the "stepperRef->processMovement();" line in Flexystepper.cpp.
I want to use the Flexystepper library with servos that driven by received data from a radio receiver. The receiver communicate with the ESP32 via the RX pin. So i tried to separate the serial read and the servo code to seprate process/core. The error is the same with core 0 and core 1, i tried both of them.
Can You please help me to find a solution or the mistake i made?
Thnaks!

It is hard to tell why you receive this error, since I do not know about your other code.
Have a look at this page to get more details about the guru mediation error:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/fatal-errors.html#guru-meditation-errors
Also please provide details on the esp32 type you are using, the espressif framework version and also if you get the same error when you use the flex's stepper library examples without any of your code.

will close due to missing feedback to reproduce error


improve readme

added notes for README - will try to improve more if needed

Well done! Thanks for the contribution


./run.sh problems

Hi, @AaronJackson could you please help me. Got this when ./run.sh
Followed your installation manual precisely
/home/glad/torch/install/share/lua/5.1/matio/ffi.lua:20: libmatio.so.2: cannot open shared object file: No such file or directory
stack traceback:
[C]: in function 'load'
/home/glad/torch/install/share/lua/5.1/matio/ffi.lua:20: in function </home/glad/torch/install/share/lua/5.1/matio/ffi.lua:20>
[C]: in function 'xpcall'
/home/glad/torch/install/share/lua/5.1/matio/ffi.lua:20: in main chunk
[C]: at 0x0046b7a0
[C]: in function 'pcall'
/home/glad/torch/install/share/lua/5.1/trepl/init.lua:385: in function 'require'
/home/glad/torch/install/share/lua/5.1/matio/init.lua:3: in main chunk
[C]: at 0x0046b7a0
[C]: in function 'pcall'
/home/glad/torch/install/share/lua/5.1/trepl/init.lua:385: in function 'require'
/home/glad/torch/install/share/lua/5.1/xlua/init.lua:360: in function </home/glad/torch/install/share/lua/5.1/xlua/init.lua:360>
[C]: in function 'pcall'
/home/glad/torch/install/share/lua/5.1/xlua/init.lua:361: in function 'xrequire'
main.lua:16: in main chunk
[C]: in function 'dofile'
...glad/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406670
/home/glad/torch/install/share/lua/5.1/trepl/init.lua:389: /home/glad/torch/install/share/lua/5.1/trepl/init.lua:389: /home/glad/torch/install/share/lua/5.1/matio/ffi.lua:24: Could not find libmatio. Please make sure that you installd MatIO and you have the shared libraries (libmatio.so or libmatio.dylib) in your library path
warning:  could not be loaded (is it installed?)
/home/glad/torch/install/share/lua/5.1/trepl/init.lua:389: module 'npy4th' not found:No LuaRocks module found for npy4th
no field package.preload['npy4th']
no file '/home/glad/.luarocks/share/lua/5.1/npy4th.lua'
no file '/home/glad/.luarocks/share/lua/5.1/npy4th/init.lua'
no file '/home/glad/torch/install/share/lua/5.1/npy4th.lua'
no file '/home/glad/torch/install/share/lua/5.1/npy4th/init.lua'
no file '/home/glad/GoServer/distro/install/share/lua/5.1/npy4th.lua'
no file '/home/glad/GoServer/distro/install/share/lua/5.1/npy4th/init.lua'
no file './npy4th.lua'
no file '/home/glad/GoServer/distro/install/share/luajit-2.1.0-beta1/npy4th.lua'
no file '/usr/local/share/lua/5.1/npy4th.lua'
no file '/usr/local/share/lua/5.1/npy4th/init.lua'
no file '/home/glad/.luarocks/lib/lua/5.1/npy4th.so'
no file '/home/glad/torch/install/lib/lua/5.1/npy4th.so'
no file '/home/glad/torch/install/lib/npy4th.so'
no file '/home/glad/GoServer/distro/install/lib/npy4th.so'
no file '/home/glad/GoServer/distro/install/lib/lua/5.1/npy4th.so'
no file './npy4th.so'
no file '/usr/local/lib/lua/5.1/npy4th.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
warning:  could not be loaded (is it installed?)
Scanning directory for data...
Found 5 images
5 images require a face detector
Initialising python libs...
Initialising detector...
/home/glad/torch/install/bin/luajit: main.lua:51: Invalid numpy data type 9
stack traceback:
[C]: in function 'detect'
main.lua:51: in main chunk
[C]: in function 'dofile'
...glad/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406670
./run.sh: line 59: crop.tmp: Permission denied
ls: cannot access *.txt: No such file or directory
cat: crop.tmp: No such file or directory
rm: cannot remove ‘crop.tmp’: No such file or directory
THCudaCheck FAIL file=/home/glad/torch/extra/cutorch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory
/home/glad/torch/install/bin/luajit: /home/glad/torch/install/share/lua/5.1/nn/utils.lua:11: cuda runtime error (2) : out of memory at /home/glad/torch/extra/cutorch/lib/THC/generic/THCStorage.cu:66
stack traceback:
[C]: in function 'resize'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:11: in function 'torch_Storage_type'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:57: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:45: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:41: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:45: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:41: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:45: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:41: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:45: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/utils.lua:41: in function 'recursiveType'
/home/glad/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'cuda'
process.lua:18: in main chunk
[C]: in function 'dofile'
...glad/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406670
ls: cannot access *.raw: No such file or directory

The main problem is that I'm out of memory, isn't it? I have only 983mi of gpu memory. How much do I need?

hi @Eretic431 I had the same problem, did you solve it?

hey @549539600 no, I think the problem is that I'm out of memory

OK @Eretic431  I am now running the project through docker mode, and the error message is no *.txt. Have you encountered similar problems

If you read the error, it is fairly obvious that the landmark detector
is unable to run. The reason for this is that it cannot find
libmatio. If you search these issues for libmatio you will find an issue
in which we fix this problem by removing those lines from the face
alignment code. libmatio is not actually required by the face alignment
code in this particular case.
The next strange issue I see is a permission denied error for
crop.tmp. Have you previously run this command as sudo and now you are
running it as a local user? The local user will be unable to modify the
files created when you ran it under sudo.
Finally, you're getting an out of memory error. What GPU are you using?
How much VRAM does it have? You'll need at least 4-5GB I think.
Aaron
On 11 October 2019 at 02:37 BST, 549539600 wrote:

OK @Eretic431 I am now running the project through docker mode, and the error message is no
*.txt. Have you encountered similar problems
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

If you are still having issues, please give the https://github.com/AaronJackson/vrn-docker image a try. It's available on DockerHub but see the repo for docs. It runs on cpu so no need for a GPU with more VRAM.


Streamline register org

Signed-off-by: Andrew Mak<EMAIL_ADDRESS>I want to streamline to params to register_org; we don't need the github_type because we can infer it from the url

It is consistent to the pack configuration if we change the base_url required to false instead of taking out the github_type.  We can change the github_type to scm_type to support different default scm urls later.

@akihikokuroda I see what you mean... so we actually should make url not required, let me change


Create a database model and schema

As a User
I need a database and schema
So that we can store information
Details and Assumptions
*The database should contain promotion attributes id, name, type, duration

Perform CRUD operations

Added details and assumptions.

create UML diagram + pin on slack


Fix mvim:// not handling paths with spaces

The file URI was being url decoded and then fed to NSURL.
A decoded URI doesn't conform to RFC 2396. NSURL wasn't happy with it.
We avoid decoding the url. The rest of queries (both fields and values)
are still decoded.

Hi, sorry for the late response, but I think you are missing the following line?
                [dict setValue:v forKey:f];

Hi. I used to open files on Macvim just using the cmd+click on a filename on iTerm. When the clickable filename has the line number (example: "~/projects/myproject.txt:10"), Macvim used to open the file on the exact line number. It's broken on snapshot 162. Do you think it's related with this PR?

@dx7 if it doesn't happen on 161 for you, then most likely that's the issue. 163 contains a fix (see #1020)

@dx7 it'll be fixed in 163, and will be released this week.

sounds good. thank you @frarees @ychin


Resources

I would like to propose the concept for resources to Prism.
Concept
Resources are small JS files which contain one feature and can be required by plugins, languages, and other resources. They contain functions or constants and do not add new languages or plugin functionalities themselves.
Resources are supposed to encourage code reuse between different components and the addition of new features (even to Prism-core). Like this, even features which are only used by a small number of components and therefore disqualified from being added directly to Prism-core can be shared between said components.
Examples
One example of a resource we have right now is the markup-templating "language". It does not add any grammar to Prism and therefore should disqualify as a language.
The generated objects from gulp used by the AutoLoader and ShowLanguage plugin could be outsourced as resources in the case that other plugins need them as well.
Future resources could be shared patterns (#1494) and other functionality like #1476 or #1524.
Implementation
Resource should be located under ./resources and similar to other components have names of the form prism-{name}.js. Minified files will be generated by gulp.
They will be registered inside the new resources object in components.json.
This also means that we will have to change the current dependency system to allow for dependencies between different resource kinds (languages, plugins, resources).

One note on the required dependency system:
I'm currently working on fixing #1490 and mAAdhaTTah/babel-plugin-prismjs#3. To do that, I wrote a new implementation of widely used dependency-related methods, which are used by the website, loadLanguages and our testing suite.
This means that it will be very easy to implement such a feature.


already completed cs50

I am sure this is a silly question but What If I already completed CS50 before discovering this page, I can skip that and continue with the other ones?

@Buzzlightyear90 yes, for sure!
Just add it in your completed courses :smile:


Switch apps when looping for realtime update

The site either does a long lag or does not switch at all when a new app is selected on the navbar.
The app contains a while true loop
while True:
   st.write()
thread.Sleep(10)

Needed to reduce thread.sleep()


Add the ability to define routes per pack

We'd like to keep routes in the pack they belong. In order to achieve that, we'll need to also add the config/routes/ dir for each pack to the Rails paths.
This features is based on the Rails feature to break up very large route file into multiple small ones.
We're not sure if this PR can affect the Engine setup, besides that, its usage is optional so it shouldn't impact anyone.
You can see an example of this feature implemented here.

Thanks! It should work with engines just fine. I'd like to get rid of engine support in the near future anyways.

Thanks! It should work with engines just fine. I'd like to get rid of engine support in the near future anyways.

@ngan Ah what's the reason for that?


extract clusterID from injector config for istioctl experimental workload entry configure

This PR fixed bug to extract clusterID from injector config for istioctl experimental workload entry configure.
In this PR, I imported a function named validateFlagIsSetManuallyOrNot  to validate that a persistent flag is set manually or not by user for given command. I think it should be a useful.
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes.

How to verify the PR?
Step 1:  Create a workload group via command kubectl apply -f workgroup.yaml
workgroup.yaml
apiVersion: networking.istio.io/v1alpha3
kind: WorkloadGroup
metadata:
  name: reviews
  namespace: default
spec:
  metadata:
    labels:
      app.kubernetes.io/name: reviews
      app.kubernetes.io/version: "1.3.4"
  template:
    ports:
      grpc: 3550
      http: 8080
    serviceAccount: default
  probe:
    initialDelaySeconds: 5
    timeoutSeconds: 3
    periodSeconds: 4
    successThreshold: 3
    failureThreshold: 3
    httpGet:
     path: /foo/bar
     host: <IP_ADDRESS>
     port: 3100
     scheme: HTTPS
     httpHeaders:
     - name: Lit-Header
       value: Im-The-Best

Step 2:  Change the value of field clusterName from empty to zhlsunshine for example in configmap istio-sidecar-injector, location is values ---> global ---> multiCluster ---> clusterName
Step 3: Execute command istioctl experimental workload entry configure --name reviews --namespace default -o config and below is output:
INFO: Flag clusterID is not set manually, extract from injector config
INFO: Extracted clusterName is [zhlsunshine]
......

This output indicate that istioctl will retrieve clusterID from injector config field clusterName if clusterID is not set by user.

Below is the output for new changes:
--clusterID not supplied, using the value in configmap of 'istio-sidecar-injector' located at 'values->global->multiCluster->clusterName'
INFO: Extracted clusterID is [zhlsunshine]
......

Below is the output for new changes and thank you @esnible  for your time!
--clusterID not supplied, using the value in configmap of 'istio-sidecar-injector' located at 'values->global->multiCluster->clusterName'
INFO: Extracted clusterID is [zhlsunshine]
......

@zhlsunshine: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
a2f2d8fd10d1c0cac10f43f851ffc46977fa7e81
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zhlsunshine: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
a2f2d8fd10d1c0cac10f43f851ffc46977fa7e81
link
/test unit-tests_istio

integ-pilot-multicluster-tests_istio
a2f2d8fd10d1c0cac10f43f851ffc46977fa7e81
link
/test integ-pilot-multicluster-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zhlsunshine: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

integ-cni-k8s-tests_istio
4dae8e66f1f90f0000549e4c992c3664647fffbd
link
/test integ-cni-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-cni-k8s-tests_istio

@zhlsunshine: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
4dae8e66f1f90f0000549e4c992c3664647fffbd
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test unit-tests_istio


Escape strings in integrationTestPipelineOptions in Java Tests

This change properly escapes array arguments that are passed into integrationTestPipelineOptions. This fixes a Gradle parsing error introduced by the change made in https://github.com/apache/beam/pull/29480.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

That seems to be the case, unless escaped.
I will reach out to our gradle-build-action author to investigate it a little more in-depth, I just didn't want to leave the broken workflow unaddressed.


Fix/494

In order to address #494 and #530
two fixes are introduced with this pull request:

as suggested by @devmaster72 the auto-start of the video is fixed, by taking into the account the 'paused' prop passed
An IOException was constantly being thrown from the android Media player classes, because instead of only a URL, the media player, for a dataSource was expecting a whole ContentProvider initialised with context

thank you @gorjanz for the PR

@gorjanz Can you remember why you removed headers from setDataSource(mThemedReactContext, parsedUrl, headers);? This stops cookies being sent on android.


Update Stages column

Replaces True  with Beta for LegacyNodeRoleBehavior
Replaces beta  with Beta for WindowsEndpointSliceProxying

Fixes #27539

Page preview:
https://deploy-preview-27678--kubernetes-io-master-staging.netlify.app/docs/reference/command-line-tools-reference/feature-gates/

Thanks @shannonxtreme .
/lgtm

/approve


Make Website Screen Size Friendly

I'm a GSSOC'21 participant. I would like to work on this issue to make the website mobile and tablet friendly. Please assign me this issue.

Feel free to ask your doubts, if any
Deadline 16 March,2021 (11:59 PM IST)

Sure, Thankyou so much.


compress/gzip: race detector makes reading x20 slower

What did you do?
Wrote this program:
package main

import (
	"compress/gzip"
	"io/ioutil"
	"log"
	"os"
)

func main() {
	name := os.Args[1]
	f, err := os.Open(name)
	if err != nil {
		log.Fatal(err)
	}
	r, err := gzip.NewReader(f)
	if err != nil {
		log.Fatal(err)
	}
	b, err := ioutil.ReadAll(r)
	if err != nil {
		log.Fatal(err)
	}
	os.Stdout.Write(b)
}

Compiled it once without the race detector and once with the race detector.
cd noracedetector
vim main.go # write the above code
go install
cd ../
mv noracedetector racedetector
cd racedetector
go install -race

Used it to parse a 23MB gzipped file (https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz)
What did you expect to see?
A x2 or x3 slowdown.
What did you see instead?
A x20 slowdown.
$ time noracedetector GeoLite2-City.mmdb.gz > /dev/null

real    0m0.877s
user    0m0.780s
sys     0m0.095s
$ time racedectector GeoLite2-City.mmdb.gz > /dev/null

real    0m18.344s
user    0m15.998s
sys     0m0.678s

System details
go version go1.9.2 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/voutasaurus/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v_/gz6l428x5w97h0zrm5m03rlm0000gn/T/go-build431950117=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOROOT/bin/go version: go version go1.9.2 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.9.2
uname -v: Darwin Kernel Version 15.6.0: Mon Oct  2 22:20:08 PDT 2017; root:xnu-3248.71.4~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.11.6
BuildVersion:	15G17023
lldb --version: lldb-360.1.70

This is expected, and documented.

The cost of race detection varies by program, but for a typical program, memory usage may increase by 5-10x and execution time by 2-20x.

Your "2-3x slowdown" expectation is on the optimistic side, but 20x is not uncommon for certain kinds of code. Closing, since this is WAI.


chore(table): use dist_key_in_pk instead of distribution_key

In our system, all the table's distribution keys are always in the primary key. And we are more care about the distribution key from the primary key or its prefix for partition pruning.
https://github.com/singularity-data/risingwave/blob/main/src/stream/src/common/table/state_table.rs
https://github.com/singularity-data/risingwave/blob/main/src/storage/src/table/batch_table/storage_table.rs
Also, the distribution keys can not express the actual indices in the read prefix, especially when the primary key has duplications. https://github.com/risingwavelabs/risingwave/issues/7698

[ ] add an optional dist_key_in_pk field in the table's proto. use it to fix #7698
[ ] refactor other executors to use dist_key_in_pk  and remove the distribution_key field

c.c. @yuhao-su @BugenZhao @wcy-fdu

LGTM

Off the topic, it seems the concept of distribution key never appears in the doc, is it worth to be mentioned?

Off the topic, it seems the concept of distribution key never appears in the doc, is it worth to be mentioned?
I think not.
currently, the distribution key seems an internal concept. Users can not specify the distribution key for any table/mview or internal table and they are all generated by the optimizer. Users can use create index to influence the final distribution key, but it is just physical implementation behind the logical concept such as Index, in other words "create a table which is optimized by the key xxx"

currently, the distribution key seems an internal concept

Although it is an internal concept, the user performance might be affected by dist key when it's cardinality is extremely low (e.g. the dist key is gender)

Users can not specify the distribution key

I thought the doc maintained on Github intends to be developer-facing 🤔

oh, sorry, I get it now.


[React JS] Method has decorators, put the decorator plugin before the classes one

I tried to use this in React js
import React from 'react';
import autobind from 'autobind-decorator';

class Login extends React.Component {
    @autobind
    focus() {
        this.textInput.focus();
    }

    render() {
        return (
           <div>
                 <input type="text" ref={ (input) => {this.textInput = input} }/>
                 <input type="button" value="Focus the text input" onClick={this.focus} />
           </div>
        );
     }
}

It show error
Method has decorators, put the decorator plugin before the classes one

Please help me.
{
  "name": "react-test",
  "private": true,
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "autobind-decorator": "^1.3.4",
    "babel-runtime": "^6.18.0",
    "bootstrap": "^3.3.7",
    "core-decorators": "^0.15.0",
    "graphql": "^0.9.1",
    "griddle-react": "^0.7.1",
    "jquery-validation": "^1.16.0",
    "meteor-node-stubs": "~0.2.3",
    "react": "^15.4.2",
    "react-addons-pure-render-mixin": "^15.4.2",
    "react-bootstrap": "^0.30.7",
    "react-breadcrumbs": "^1.5.2",
    "react-dom": "^15.4.2",
    "react-router": "^3.0.2",
    "react-router-bootstrap": "^0.23.1",
    "simpl-schema": "^0.1.0",
    "uniforms": "^1.9.0",
    "uniforms-bootstrap3": "^1.9.0"
  },
  "devDependencies": {}
}

See https://github.com/babel/babel/issues/2648
Questions should be asked on stackoverflow :)


PrettyPrint & InformativePrint exception handling

Currently there is no implementation for https://github.com/GuusLieben/DarwinServer/blob/api-3.0-1.12.2-kj/core/src/main/java/org/dockbox/darwin/core/util/exceptions/SimpleExceptionHelper.java
Provide a implementation for both PrettyPrint (friendly) and InformativePrint (minimal)

Implemented in https://github.com/GuusLieben/DarwinServer/commit/4262be428410c91515a96f1a2eb9ae44de2bd598
PrettyPrint
Headline: java.lang.NullPointerException
Message: Foo bar
Location: SourceFile.java line 19
Stack: [....]

InformativePrint
NullPointerException: Foo bar
Stack: [....]

Stacks are optional for both methods


Update ApiRequest to not pass -d for empty data

'cf curl' has changed such that passing -d for empty data is an error.

Also see https://github.com/cloudfoundry/cf-acceptance-tests/pull/85, which bumps cf-acceptance-tests to include this change.

Looks great, thanks. Merged.
Rob && @APShirley


unhelpful error when describe lacks second argument

➜  temp  cat test/test.js
it('rulz')
describe('very cofee')
it('sucks')

➜  temp  mocha
/usr/local/lib/node_modules/mocha/lib/interfaces/bdd.js:49
      fn.call(suite);
        ^
TypeError: Cannot read property 'call' of undefined
    at context.describe.context.context (/usr/local/lib/node_modules/mocha/lib/interfaces/bdd.js:49:9)
    at Object.<anonymous> (/Users/dasilvacontin/temp/test/test.js:2:1)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at /usr/local/lib/node_modules/mocha/lib/mocha.js:192:27
    at Array.forEach (native)
    at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:189:14)
    at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:422:31)
    at Object.<anonymous> (/usr/local/lib/node_modules/mocha/bin/_mocha:398:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

Throwing a TypeError or ignoring suites without a second argument (kinda like if they were pending) are ways to go.
I like the idea of having pending suites.

I also find the asymmetry surprising:
describe('something', function() {
  xit('skip it);
});

xdescribe('something', function() {}); // works fine
xdescribe('whatever'); // throws an error

infinity

Still an issue.
To replicate it:

Type describe('') into any of your spec files, as the beginning of a new suite you intend to write.
Instead of filling out your describe, go away from your machine and forget you typed the incomplete block.
Try to run your normal test command, find the above error trace, and proceed to waste an hour searching around for what it means.

I just wasted a good amount of time trying to find out what was wrong with my tests. I had written a backbone describe so that I wouldn't forget to test a given functionality, but I didn't pass a callback to the describe function, because I wasn't intending to implement the test right now. I was going to implement other tests first, and then return and complete this describe with an actual callback which would have the actual tests in "it" functions. It would have been much easir for me to diagnose the problem if mocha had said me "Invalid describe definition without callback argument." or something like that.

@UlyssesAlves I can't recreate this behavior. What version of mocha are you running?

@Munter I'm using Mocha version 2.5.3. Here is a snippet of a scenario which will reproduce the issue as described above:
describe("This is a test suite with a callback function parameter.", function() {
    it('Some test', function() {
        assert.equal(1, 1);
    });
});

describe("This test suite has no callback parameter and will produce an error which is hard to debug.");

In mocha 3 this is the output of the above test:
$ ./bin/mocha test/describe.js

  This is a test suite with a callback function parameter.
    ✓ Some test

  1 passing (7ms)

Seems to be fixed

That's great! I'm going to update my project to the latest version of mocha then. I think @dasilvacontin (or some project member) should close the issue by now. Unless, of course, if this is still an issue for him or for someone else.

@Munter @UlyssesAlves After reading that snippet, I was expecting to see a pending suite in the output. What about you?

@dasilvacontin It does strike me as a bit odd that suites with no tests simply disappear completely in the output

@dasilvacontin sure. I think it would be better to see a pending suítes report so that we don't forget that our tests are not complete yet and that we have empty describe directives which need to be filled with actual test cases.


Clarify to support nested typeDSL

This request is to fix the spec to clarify to support nested TypeDSL such as File[][].

Thx!


add save anon session feature

What?
Added app configuration option to enable/disable saving anonymous user sessions.
Why?
Feature adds more control to a developer over behavior of session based cookies. Whether for performance (ex. bloating session storage with anonymous user sessions) or for regulatory reasons (ex. GDPR and allowing cookies), a developer can now choose to set a session based cookie when required (ex. after authenticating).
How?:
If disabled - no session is set when request arrives, instead, function access to SessionManager is provided through req->setSessionManager() and then req->setSession polymorphism will work. req-setSession() returns boolean if SessionManagerPtr is available since it might not be if config enable_session is false. We may also just call req-session() and if SessionPtr is not available it will try to setSession using the SessionManager.
Testing?

Client integration: Remove Get Cookie test and move it to Test Session (this is the test that makes use of session).
TimeFilter - if sessionId is not present - it is created through req->setSession().

Anything Else?

Enable/Disable session could potentially be removed since with this feature since it allows developer to set session when required.
Moved SessionManager.h to INCLUDES because HttpRequest.h requires it - not sure if this is correct.
Providing access to SessionManager in HttpAppFrameworkImpl by passing a naked pointer (SessionManager is a unique_ptr) was done for performance considerations (using shared_ptr could eat up resources if many request share pointer), but could be negligible as I did not test performance - not an expert on this.
Not sure if I misused virtual functions.

Potentially closes and is related to #1852, that is if it is updated and merge conflicts are resolved


Turbopack has trouble with .cjs files inside esm build

turbopack has trouble with .cjs files inside esm build
│ Import trace for requested module:
│<EMAIL_ADDRESS>│<EMAIL_ADDRESS>│<EMAIL_ADDRESS>│<EMAIL_ADDRESS>│ ./src/lib/logger.ts
│ ./src/app/layout.tsx
│  ⚠<EMAIL_ADDRESS>│ Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
│
│<EMAIL_ADDRESS>│ Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

I guess this issue has similar root cause as https://github.com/dahlia/logtape/issues/19. If we import { **everything** } from '@logtape/logtape';, each export has to be compatible with all environments (Node, Deno, Browser, edge, bundlers). Dependencies like require("node:fs") are quite hard to mask so that they are only used when needed. Something like this would work without hacks:
import { something, agnostic, to, runtime, nvironments } from '@logtape/logtape';
import { somethingSpecificToFoo } from '@logtape/logtape/foo';
import { somethingSpecificToFoo } from '@logtape/logtape/bar';


Postgres Extensions dashboard

Show list of extensions
Enables adding/dropping extensions

Pull Request Test Coverage Report for Build 965168438

13 of 62 (20.97%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 42.952%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/ui/dashboards/postgres/postgresDashboard.ts
1
2
50.0%

extensions/arc/src/ui/dashboards/postgres/postgresExtensionsPage.ts
7
55
12.73%

Totals

Change from base Build 963349969:
-0.02%

Covered Lines:
26346

Relevant Lines:
55702

💛  - Coveralls

Separate viewing and editing extensions to separate PRs.
View: https://github.com/microsoft/azuredatastudio/pull/15887


ReactModal focuses on last input/button when modal closes

Summary:
When the modal is closed it focuses on the last focused input field/button. This is unexpected and not clearly documented. I had a button that was only visible when focusing on a particular element using a CSS transform. Focusing on the input field caused it's container to scroll to the button which caused the CSS transform to hide the button on focus.
Steps to reproduce:

Code for react modal component is used by a stateful component that will open model.
In same stateful component have another component that uses a CSS transition on hover to show a button to open the modal.
On hover to view the button click on the button and the modal will open.
Closing the modal will cause the hidden button to always be displayed.
Hovering over the component will cause the button to be hidden.

With example

Go to https://codesandbox.io/s/74x8ynqr6q
Hover over the box with the red border
Click on the button to open react modal
Close the modal

Results: The CSS transformation is no longer in its original state. The focus is now placed on the button which caused the container to scroll to the button. Hovering over it hides the button and reveals whatever is below. In my case there was nothing below the buttons.
Expected behavior:
Modal will close without restoring focus on last focused input field / button.
Link to example of issue:
https://codesandbox.io/s/74x8ynqr6q
Additional notes:
When I hover over the menu the visible icon scrolls out of view and a button to open a modal scrolls into view. When clicking on the button it brings up the react-modal. When the react modal is closed the icon is no longer visible though the button to open the modal is visible.  The CSS transformation now shows nothing when hovering over the menu.
ReactModal is placing focus on the hidden button causing the view of the menu to focus on the wrong thing in it's initial state.

This is caused by https://github.com/reactjs/react-modal/issues/675

I found a work around to this issue. In the function that gets called onClick I blur off of the input field/button before opening the modal and it appears to have solved the issue.
<button onClick={ (e) => {
      e.currentTarget.blur();
      props.openModal()
  }}> Open Modal </button>

would the shouldReturnFocusAfterClose prop fix the issue?
http://reactcommunity.org/react-modal/#usage

would the shouldReturnFocusAfterClose  prop fix your problem?
http://reactcommunity.org/react-modal/#usage

@mattlub yeah that would work great.

@trevlar Thanks for reporting this issue and the example. I'll try to find sometime to debug this.
@mattlub Thanks for the help.

react-modal relies on the last document.activeElement to know which element it should give back focus. Ideally, the expected behaviour should be "Open React Modal" button to be the last active element.
Firefox and Safari have the same behaviour - they don't set the button as the active element after click on it.
Chrome will actually focus the button when clicked.
IE and Edge - needs testing.
  openModal = () => {
    debugger;
    document.activeElement; // to make it easy to inspect.
    this.setState({ modalOpen: true });
  };

After changing the openModal method, you can step through to see which element has been the last element on the document.activeElement.
Using the keyboard to navigate will produce the expected behaviour on all browsers.
Safari: Version 11.1.2 (13605.3.8)
Firefox: 61.0.2 (64-bit)
Chrome: Version 68.0.3440.106 (Official Build) (64-bit)

I have a similar problem or maybe not. I am not 100% sure why this happening. And I am not sure if this is the right place to post my problem. Let me know if I should open a new issue...
I use animate-scroll-to to scroll to a button further down in the page which opens the modal on click.
When I use the animated scroll to get to the button, the page scrolls to the top when the modal is closed.
This does not happen when I scroll manually to the button.
BUT, another piece in this puzzle is that the button is within a div which I scale on hover via
transition: all 0.25s;
transform: scale(1);

// removing the following resolves the problem
@media (hover: hover) {
    &:hover {
        transform: scale(1.02);
    }
}

If I remove this part of the code the page does also NOT scroll to top when the modal is closed.
I can solve this problem either with shouldReturnFocusAfterClose={false} or with shouldFocusAfterRender ={false} but both options are bad for accessibility.
Note: I tested this only in Chrome (96)


Urls not opening with -o option

When using the -o option, URLs associated with tasks are not opening.

After some research, this was introduced with #34


Automate Zoom meetings

Description
Python script that starts a zoom meeting for you provided the id and password form the console.
Keep mic and camera off.
Type of issue

[x] Feature (New Script)

Checklist:

[x] I have read the project guidelines.
[x] I have checked all the existing projects, before submitting a new project issue.
[x] I have checked previous issues to avoid duplicates.
[x] This issue will be meaningful for the project.

Can i work on this :)


ng serve & ng build not working after build a new project with ng new

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX Yosemite

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.14
node: 5.11.1
os: darwin x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
ng new angular2-demo
cd angular2-demo
ng serve

The log given by the failure. Normally this include a stack trace and some
more information.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

configuration has an unknown property 'tslint'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
For typos: please correct them.
For loader options: webpack 2 no longer allows custom properties in configuration.
Loaders should be updated to allow passing options via loader options in module.rules.
Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
plugins: {
new webpack.LoaderOptionsPlugin({
options: {
tslint: ...
}
})
}
configuration.module has an unknown property 'preLoaders'. These properties are valid:
object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
Options affecting the normal modules (NormalModuleFactory).
configuration.node['fs'] should be one of these:
false | true | "mock"
configuration.node['crypto'] should be one of these:
false | true | "mock"
configuration.node.global should be a boolean.
configuration.resolve has an unknown property 'root'. These properties are valid:
object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache? }
configuration.resolve.extensions[0] should not be empty.
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
configuration has an unknown property 'tslint'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
For typos: please correct them.
For loader options: webpack 2 no longer allows custom properties in configuration.
Loaders should be updated to allow passing options via loader options in module.rules.
Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
plugins: {
new webpack.LoaderOptionsPlugin({
options: {
tslint: ...
}
})
}
configuration.module has an unknown property 'preLoaders'. These properties are valid:
object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
Options affecting the normal modules (NormalModuleFactory).
configuration.node['fs'] should be one of these:
false | true | "mock"
configuration.node['crypto'] should be one of these:
false | true | "mock"
configuration.node.global should be a boolean.
configuration.resolve has an unknown property 'root'. These properties are valid:
object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache? }
configuration.resolve.extensions[0] should not be empty.
at webpack (/Users/shuyi_chen/github/angular2-demo/node_modules/webpack/lib/webpack.js:16:9)
at Class.exports.default.Task.extend.run (/Users/shuyi_chen/github/angular2-demo/node_modules/angular-cli/tasks/serve-webpack.js:23:27)
at /Users/shuyi_chen/github/angular2-demo/node_modules/angular-cli/commands/serve.js:84:26
at tryCatch (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:195:12)
at invokeCallback (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:210:13)
at publish (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:178:7)
at flush (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/asap.js:94:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Mention any other details that might be useful.
I use ng new create a project last week, all ng commands are still working for that project. I didn't update angular-cli after I create the old project. But today after use ng new to build a project, ng server &  ng build suddenly cannot work and throws error.

Thanks! We'll be in touch soon.

See  #2234
This should be fixed by upgrading to beta.15 and then completely reinstalling node_modules in your project

And check SO: http://stackoverflow.com/questions/39600939/invalid-configuration-object-webpack-has-been-initialised-using-a-configuration/39601224#39601224


Feature suggestion - Client test cases launch All-Clusters on the Test Harness

From chip-certification-tool created by EF-JANC: CHIP-Specifications/chip-certification-tool#472
For DUT as Client test cases, when running the Manual_tests, would it be possible to start the All-Clusters-app as TH in the Test Harness so this can be logged directly with the test case, instead of us having to run 3 separate logging windows (TH + SSH To All-Clusters + SSH to DUT)

My initial concerns are -

We need to delete the temp files and run the cluster app between test runs.

Response and design proposal by @mikaelhm:
We might need a custom Test Suite for these so the app is just commisioned once. So we can avoid it for all test cases.
We could make a special "assisted manual test"

Starts app (agree it should be configurable)
streams logs without filtering to test engine logger
Runs normal manual test case prompt flow.

Visualizing @mikaelhm 's design proposal

@sparampallirajag @mikaelhm Thanks for the feedback!
Please allow me to provide some feedback on the above :)
-Looks like there are a bunch of custom apps, should we always pick the all-clusters-app?
 The testplan 'always' reffers to the All-Clusters-App as the TH so I would say yes as this would contain all clusters and should be the most advanced tool foor client tests.
The above approach of having it as 'manual' tests is fine - I just wanted to propose a more user friendly way of working.
And with regards to the deleting the tmp files this is correct, I have made a small script for this to ease the server tests on a SDK ;
sudo rm -rf /tmp/chip_* #remove the CHIP Temp files to allow for new commisioning

sleep .5 # Wait 0.5 second.

./apps/chip-all-clusters-app #Launch ACA

Work in progress. This is not a blocker and will not be ready in a few days. So, removing the v1.x label.

@rquidute @ccruzagralopes isso aqui foi realizado pelos commits referenciados acima?

I believe this mention is a GitHub bug. The mentioned commit is actually from a PR in the backend repo that has the same issue number as this issue:

https://github.com/project-chip/certification-tool-backend/pull/17

And just FIY: I believe you didn't notice that you wrote the message in Portuguese 😆


[Refactor] Renaming RayHttpProxyClient attribute UseProxy #1980

Why are these changes needed?

Renaming RayHttpProxyClient.UseProxy to RayHttpProxyClient.UseKubernetesProxy
Related issue number

#1980
Checks

[ ] I've made sure the tests are passing.
Testing Strategy

[ ] Unit tests
[ ] Manual tests
[x] This PR is not tested :(

@rueian @kevin85421

@kevin85421, This is our newbie's first contribution. Please take a look when you are available.

To @kevin85421 @rueian
Regarding the following two issues.
Could I deal with them in this PR as well?

https://github.com/ray-project/kuberay/pull/1980#discussion_r1567647956
https://github.com/ray-project/kuberay/pull/1980#discussion_r1550243563

@Xiao75896453 It's better to include https://github.com/ray-project/kuberay/pull/1980#discussion_r1567647956 in this PR. https://github.com/ray-project/kuberay/pull/1980#discussion_r1550243563 is handled by #2092.

To @kevin85421
Thanks!

@Xiao75896453 It's better to include #1980 (comment) in this PR. #1980 (comment) is handled by #2092.

To @kevin85421
Thanks! I have deal with it 🙏

Would you mind rebasing with the master branch? Thanks!

Would you mind rebasing with the master branch? Thanks!

To @kevin85421
I think rebase is no problem 👍
Who performs rebase, Kevin or myself?

Who performs rebase, Kevin or myself?

In most cases, the PR author should resolve the conflicts.

Who performs rebase, Kevin or myself?

In most cases, the PR author should resolve the conflicts.

To @kevin85421
OK, I have resolved the conflicts. Thanks Kevin.

@Xiao75896453 Congratulations on your first PR!


Add a custom function to the $request in a middleware

Hi, I developed the Slim-Validation middleware and I think that its configuration is not that simple. These are the steps to make it works:

inject in the container for every route validation (let's use yourContainerKey in our case and only for one route);
$app->add($middleware) retrieving $middleware from the container;
check if $request has any errors in the route callback calling $this->yourContainerKey->hasErrors().

Now what I think it's verbose is the  $container usage in three different steps (the first one is the source of the evil and the less flexible because you have to use a different key for each route).
Am i missing anything? What I think would be more concise is a way to directly inject the hasErrors function in the $app or even in the $request object. Can I do something like this so I could simply use the validator without create 10 different keys in the container (and 10 different usage keys in the route callback)?
We talked about this here.
Thanks

@akrabat Thanks for your suggestion. Do you think this is the best way to achieve it?

@DavidePastore this is the exact reason why we have set/getAttribute on the request object :)

Thanks, feel free to close this issue. :+1:


change permissions and add logging

The default package permissions of /etc/haproxy/haproxy.cfg are 0644 on EL and Debian (http://pkgs.fedoraproject.org/cgit/haproxy.git/tree/haproxy.spec#n131). However after running servicerouter they are changed to 0600. This fixes that.
It also adds some additional output which is useful for marathon installations with lots of tasks.

Wouldn't it be cooler if it preserved the permissions of the config_file? E.g. read the permissions of that file and apply them to the temporary file?

@kolloch great idea! implemented

LGTM


Question: How do I include native assemblies as a NuGet runtime with .NET Core projects?

For example, runtime/debian and runtime/win-64, etc.
Similar to how the libuv packages are delivered through NuGet here.

The pack targets look for metadata on a few known item types, I've been able to include msbuild files using the following inside an <ItemGroup>:
<None Update="build\**\*" Pack="true" PackagePath="\build" />

So I suppose you could do something like:
<None Update="runtime\**\*" Pack="true" PackagePath="\runtime" />

which will pack all

Great.
I got it working.
    <Content Include="../../native/medxdcmtk/lib/libmedxdcmtk.so">
      <PackagePath>runtimes/debian-x64/native/libmedxdcmtk.so</PackagePath>
      <Pack>true</Pack>
    </Content>
    <Content Include="../../native/dcmtk/lib/libdcmtk.so.10">
      <PackagePath>runtimes/debian-x64/native/libdcmtk.so.10</PackagePath>
      <Pack>true</Pack>
    </Content>

However, when I run this, I can't pinvoke. I get "System.DllNotFoundException : Unable to load DLL 'libmedxdcmtk': The specified module could not be found.".
If I copy the two libs directly into /usr/lib, it works, so I know it isn't an issue with the binaries. It is an issue with the dotnet runtime not loading the native packages correctly.
I am using dotnet cli "1.0.0-rc4-004771".

A straightforward solution for this moving forward should come with #5037.


Wrong behaviour of Optimize Import

Build: Build <IP_ADDRESS>.TiVo.4
Need to filtering similar import-items. In my demo I did copy-paste and get a dialog with many of the same items. After it I was try to Optimize Imports - get no wanted result :(

Ok, CopyPasteProcessor doesn't checks for duplicate items and Optimize imports doesn't detects duplicate imports. Thanks.

I'm curious is this an IDEA 14?

Ok, roger that

Yes, latest Idea 14.

On 30 Mar 2015, at 19:24, as3boyan<EMAIL_ADDRESS>wrote:
I'm curious is this an IDEA 14?
—
Reply to this email directly or view it on GitHub.

I added a check for duplicate items, about Optimizing imports - can't reproduce it, for flash.display.Sprite it works fine, it may not work if reference is unresolved, but it seems to be resolved on your gif.

Please try to optimize this:
import flash.display.Sprite
import flash.display.Sprite
import flash.display.Sprite

Magic! It works but how?!
I can reproduce this issue only in that project: https://bitbucket.org/fzzr/hx.signal/.....

Is that specific commit or I can download just latest develop branch from downloads section?

Take the last commit.

@as3boyan
That's new:

Maybe related issues: #199 & #200.

Seems like this doesn't works
import String.fromCharCode in f;

class Main2 {
    static function main() {
        var c1 = f(65);
        var c2 = f(66);
        trace(c1 + c2); // AB
    }
}

I think it doesn't supported yet.

Appears fixed and merged.  @fzzr- Please test and re-open if this bug is not fixed.


added mono to common definitions lookup tables

Codecov Report

Merging #44 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   87.94%   87.95%
=======================================
  Files         115      115
  Lines        5151     5154    +3
=======================================
+ Hits         4530     4533    +3
  Misses        621      621

Impacted Files
Coverage Δ

src/common_definitions.cpp
98.87% <100.00%> (+0.01%)
:arrow_up:

include/adm/helper/element_range.hpp
100.00% <0.00%> (ø)

include/adm/utilities/id_assignment.hpp
64.86% <0.00%> (ø)

...nclude/adm/elements/audio_block_format_objects.hpp
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


pass ping and rsv tests

This pull request if to make our websockets server pass Autobahn tests.
These changes make websockets pass:
Case 2.5 (oversized ping)
Case 3.* (Reserved bits are == 0)

Have added a test for RSV and removed the RSV error so it is non-breaking.

Codecov Report

Merging #27 into master will decrease coverage by 0.21%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   90.44%   90.22%   -0.22%
==========================================
  Files           9        9
  Lines         471      481      +10
==========================================
+ Hits          426      434       +8
- Misses         45       47       +2

Flag
Coverage Δ

#KituraWebSocket
90.22% <100%> (-0.22%)
:arrow_down:

Impacted Files
Coverage Δ

Sources/KituraWebSocket/WebSocketConnection.swift
90.57% <100%> (-0.87%)
:arrow_down:

Sources/KituraWebSocket/WSFrameParser.swift
98.26% <100%> (+0.09%)
:arrow_up:

Continue to review full report at Codecov.

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


Release Swift package to maplibre-gl-native-distribution with CI

@petr-pokorny-1 made manual releases to https://github.com/maplibre/maplibre-gl-native-distribution in the past.
It would be helpful if this is automated and done during an iOS release automatically.

I made a manual release now and even duplicated the release notes so they will show up on the Swift Package Index. I guess it makes most sense to fix this once a descision has been made to split by platform. Then the maplibre-gl-native-distribution repo won't be needed anymore.

@louwers  — thank you for making the Swift Package release.
The distribution repo has Swift Playground called MapLibre Test, and I was able to give your manual release a test using that Playground in Xcode 14.2.
See https://github.com/maplibre/maplibre-gl-native-distribution/issues/8

Screenshot of Playground for the MapLibre Swift Package

@louwers  — yes, it worked as expected in the very basic Playground test.  I recommend keeping the maplibre-gl-native-distribution as is until the main Native has fully gone through it's split repo state.


how to hide autocomplete

how can i hide the autocomplete input???

Read documentation with the showAutocompleteThreshold property.
To disable, just set this max number higher to your children length.


k8s: Fix typo in io.cilium/shared-service annotation

The annotation was misspelled as io.ciliumshared-service. This adds the missing slash and test cases for the annotation parser.
Since the annotation is not documented, no fallback to support the old spelling is introduced.

This change is

test-me-please

Coverage decreased (-0.01%) to 46.061% when pulling e83f5668edf60aae04bc9a07858b041af4afcc2e on pr/gandro/fix-shared-service-annotation into eb2714e1cab09860b833595907359e28d765c153 on master.


Question: Does Neutralising Potion still work with this plugin?

I can't seem to find the answer to this and can't get on to test it at the moment.
https://oldschool.runescape.wiki/w/Neutralising_potion
TLDR: You can use the Neutralising Potion on an teammate to neautralise corruption.

It doesn't - the plugin does exactly what it says on the box.
I've been meaning to add a whitelist feature for exactly this case, but haven't had the time.


Barbeque/patch 1

Running tests with Hatchet credentials (so they complete).
Supersedes #903 after updates 🌮 🎉 💜
This update version bumps the readme to be in line with the Heroku dev center articles.

Instead of listing the versions directly, should we just link out to DevCenter so we don't have to maintain two lists?

Possibly - the readme here needs a total overhaul, but in the meantime I think it's okay to make sure the supported version numbers are up to date


I'd like to know how the work-flow animation on the home page is implemented in javascript.

https://tailwindcss.com/workflow-animation/

https://tailwindcss.com/assets/build/js/workflow-animation.js
Could I get the Javascript source code?

https://codesandbox.io/s/nw10kz7m3j

Thank you so much!!!


Add Chinese lang file

简单的翻译由本人进行
“vat:踩莓桶”，物品介绍的双关，由某不愿透露姓名的大佬群友提供，感谢他
Simple translation is done by myself.
“vat:踩莓桶”，Puns in item descriptions,Provided by a group of friends who did not want to be named,thanks him

Create zh_cn.json file
To 1.19.2

For future reference, don't put translations into src\generated as that get's overwritten any time datageneration is run


use mediaDrmId as default id, if available, as its the most stable one.

I tried the Playground app with different 'Users' on my device (https://source.android.com/devices/tech/admin/multi-user) and discovered that the GSF ID is not stable.
The ID that stayed the same is the Media DRM ID, thats why i introduced stabilityVersion 4 that uses the DRM ID as the default id, if available.
I also add this information to the stability documentation and updated the README.

Hello! Thank you for the feedback. The info about behaviour with multiple users is quite useful. But Media DRM ID is changing when packageName of the application changes. I.g. it will be different for different applications or if the application was cloned by AppClonner. For the most of the users GSF ID (which is similar across all apps, survives repackaging under normal, non-root circumstances) is more preferable and that's why it is the default one.

Also there are issues on some Vivo devices when Media DRM ID is not unique.

Hey @Alexey-Verkhovsky, good hint on the Media DRM ID.
I reverted my code changes and only kept the update for the stability table.

Thank you for your effort!

I guess that it's a security feature that google is hiding some identifiers and the list of installed apps from Instant Apps to prevent tracking or other harmful things.
Hiding apps from instant apps is described here: https://stackoverflow.com/a/48802575/2459067

Got it, makes sense. We will research options for these kind of apps. Thank you! 💪


Add pyneurovault_upload to PyPi

@burnash: I've been wanting to change name before we add it to pypi.  What do you think about pynv?  it's much more general than just uploading.

@ljchang I like it. Concise and general, and a very good name for a future command line tool. We can also use a longer name for the repo and shorter for the command line. Same way as https://github.com/jkbrzt/httpie does.

This should probably be closed, but I would suggest re-releasing to PyPI as the version there is out of date


Not able to find AMI - ami-c0dd7db3

Hello,
I am trying to setup Sparknet on a clusterof Amazon machines. However, I am not able to find the AMI. It will be great if you could help me locate it.

Found at this third party location - http://thecloudmarket.com/image/ami-c0dd7db3--sparknet-image


proposal: x/crypto/acme/autocert: export supportsECDSA somewhere?

Proposal Details
I recently found myself needing x/crypto/acme/autocert's func supportsECDSA but it's not exported.
Copy/pasting it works, but is slightly sad as it's kinda long and I worry about it getting out of sync.
It's possible to use it indirectly via ugly hacks like https://github.com/tailscale/scertec/pull/3 (using a fake acme/autocert.Cache that looks which keys are accessed) but it's a bit too ugly.
Proposal: export that code somewhere? method on ClientHelloInfo even?
/cc @rolandshoemaker

This seems like something that would likely be useful in general for people writing Config.GetCertificate functions.
We kind of have an inverse version of this already with ClientHelloInfo.SupportsCertificate, but that requires you already have a certificate to test against, which is obviously not the case in this case and the autocert case (hence why it had to be written in the first place).
I'd not be opposed to adding the following method in crypto/tls:
// SupportsECDSA returns true if the ClientHelloInfo indicates the the client supports both ECDSA based
// key exchanges and cipher suites.
func (*ClientHelloInfo) SupportsECDSA() bool

cc @FiloSottile


TopBottomPanel resizing doesn't seem to work

I'm new to this library and was experimenting by modifying the template application. If my understanding is right the following code should create a bottom bar that can be resized by dragging:
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
        egui::TopBottomPanel::bottom("bottom_panel")
        .default_height(200.0)
        .resizable(true)
        .show(ctx, |ui| {
            ui.label("Some Text");
        });
}

It doesn't seem to work though. The attached video shows what happens:
https://user-images.githubusercontent.com/44467986/126878450-3dd0099c-2a60-420b-8f88-1fe4d012fed9.mp4
The bottom bar stays shrunk to the label's size and when dragged it moves up instead of resizing, and immediately goes back when you release it. Is this a bug or am I using it incorrectly? The online demo has functional resizable panels so I thought I was using it incorrectly. I'm running it via eframe like the template application
EDIT:
I added a CentralPanel and that had no effect
egui::TopBottomPanel::bottom("bottom_panel")
        .resizable(true)
        .show(ctx, |ui| {
            ui.label("Some Text");
        });

        egui::CentralPanel::default().show(ctx, |ui| {
            ui.label("Some Other Text");
        });

The bottom panel still doesn't get resized. It drags along with the mouse and immediately returns to its original state when you let go

I noticed the same today - the issue is with all widgets that do not "expand" to full available height

So do all the layouts normally shrink down to the size of the child components?

So do all the layouts normally shrink down to the size of the child components?

Not for all of them, but that's what TopBottomPanel does right now :)

Alright thanks, I'm gonna look into creating a custom layout for my use case instead


Pull request for "ALWAYS OPEN: documentation #16"

Hello Hrabal, I worked on your TemPy repo to fix some typos for open issue #16 ALWAYS OPEN: documentation. I have corrected file "css_example.py": line 42 and file "readme.md" line 56 and line 145. Please review the changes and merge the code if acceptable. Thank you, Mandeep.

Coverage increased (+0.2%) to 92.729% when pulling 699ba1e050295b0efc7c20dcb034cd1c4f090a23 on mandeepkaurdev:mandeepkaur-gh-pages into e2869463b28063bd6b4f4246ff88069cafda89a3 on Hrabal:master.

Hi @mandeepkaurdev , thanks for contributing but the pieces of code you changed look like typos, but they aren't.
Since type is a Python builtin word, it is common to rename all the variables that should have the name "type" in "typ". That's to not override Python's builtin (never a good idea).
So, even though typ is just used as an keyword argument in this case, it's better to not use "type" in the code; that's why TemPy when tha tag is instantiated, treast 2 special keyword arguments as special: "typ" and "klass":
At render time "typ" is rendered in the tag as "type" and "klass" as "class"


#144937449 Integrate coveralls code coverage service

What does this PR do?
This pull request integrates Coveralls code coverage service
Description of Task to be completed?

Update .travis.yml
Update Readme

How should this be manually tested?
The coveralls badge will display the percentage of test coverage on the readme
Any background context you want to provide?
Coveralls code coverage ensure we are properly informed just how well our code base is tested which in turn provides quality assurance for the product
What are the relevant pivotal tracker stories?
Integrate Coveralls code coverage service #144937449
Screenshots (if appropriate)

Questions:
N/A

Changes Unknown when pulling 2551b9c2fc6c5b3a1beab6142b74006c2fe23567 on chore/144937449/integrate-coveralls-code-coverage-service into ** on staging**.


Plugin report

Plugin Version:

Describe The Bug:

How To Reproduce:

Expected Behavior:

Screenshots/Error Log:

Additional Context:

java.lang.NoSuchMethodException: java.lang.NoClassDefFoundError: org/kingdoms/manager/game/GameManagement
[16:24:41] [Server thread/WARN]:        at catserver.server.remapper.target.ReflectionMethods.getMethod(ReflectionMethods.java:92)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins.RTP_Residence.check(RTP_Residence.java:16)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.player.rtp.RTPPluginValidation.checkLocation(RTPPluginValidation.java:14)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.player.rtp.RTPPlayer.checkDepends(RTPPlayer.java:121)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.player.rtp.RTPPlayer.attempt(RTPPlayer.java:89)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.player.rtp.RTPPlayer.lambda$randomlyTeleport$0(RTPPlayer.java:71)
[16:24:41] [Server thread/WARN]:        at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source)
[16:24:41] [Server thread/WARN]:        at java.util.concurrent.CompletableFuture.uniAcceptStage(Unknown Source)
[16:24:41] [Server thread/WARN]:        at java.util.concurrent.CompletableFuture.thenAccept(Unknown Source)
[16:24:41] [Server thread/WARN]:        at me.SuperRonanCraft.BetterRTP.player.rtp.RTPPlayer.lambda$randomlyTeleport$1(RTPPlayer.java:69)
[16:24:41] [Server thread/WARN]:        at com.tcoded.folialib.impl.SpigotImplementation.lambda$runNextTick$0(SpigotImplementation.java:36)
[16:24:41] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76)
[16:24:41] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:421)
[16:24:41] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:894)
[16:24:41] [Server thread/WARN]:        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:475)
[16:24:41] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:828)
[16:24:41] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:687)
[16:24:41] [Server thread/WARN]:        at java.lang.Thread.run(Unknown Source)

@TechnicallyCoded Reflection is all you bud, any idea what could be wrong?

Readable logs: https://mclo.gs/yO0W3c4
Will review this

Ok, that's not a reflection that we even do.. especially not from the residence hook.

@1640946640 provide full server logs of this happening on the newest version of all plugins.


kubevirt-api TLS handshake error

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
KubeVirt components started up successfully, but no VMs are created or scheduled. Lots of TLS failures in the logs.
$ kubectl logs virt-controller-679d8dc55b-smx9s
{"component":"","level":"info","msg":"kubevirt-config ConfigMap does not exist. Using defaults.","pos":"feature-gates.go:66","timestamp":"2018-12-10T21:18:13.033713Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.033771Z"}
{"component":"virt-controller","level":"info","msg":"DataVolume integration disabled","pos":"application.go:176","timestamp":"2018-12-10T21:18:13.035802Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.035848Z"}
{"component":"virt-controller","level":"info","msg":"attempting to acquire leader lease  kubevirt/virt-controller...","pos":"leaderelection.go:185","timestamp":"2018-12-10T21:18:13.580470Z"}
{"action":"listening","component":"virt-controller","interface":"<IP_ADDRESS>","level":"info","port":8443,"pos":"application.go:202","service":"http","timestamp":"2018-12-10T21:18:13.580450Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:27.638002Z"}
{"component":"virt-controller","level":"info","msg":"successfully acquired lease kubevirt/virt-controller","pos":"leaderelection.go:194","timestamp":"2018-12-10T21:18:31.194806Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer persistentVolumeClaimInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.194908Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer fakeDataVolumeInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.194988Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer vmiInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195010Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer kubeVirtPodInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195028Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer configMapInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195059Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer vmInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195075Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer vmimInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195092Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer kubeVirtNodeInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195111Z"}
{"component":"virt-controller","level":"info","msg":"STARTING informer vmirsInformer","pos":"virtinformers.go:121","service":"http","timestamp":"2018-12-10T21:18:31.195128Z"}
{"component":"virt-controller","level":"info","msg":"Starting VirtualMachine controller.","pos":"vm.go:107","service":"http","timestamp":"2018-12-10T21:18:31.195201Z"}
{"component":"virt-controller","level":"info","msg":"Starting node controller.","pos":"node.go:109","service":"http","timestamp":"2018-12-10T21:18:31.195168Z"}
{"component":"virt-controller","level":"info","msg":"Starting VirtualMachineInstanceReplicaSet controller.","pos":"replicaset.go:106","service":"http","timestamp":"2018-12-10T21:18:31.195201Z"}
{"component":"virt-controller","level":"info","msg":"Starting migration controller.","pos":"migration.go:96","service":"http","timestamp":"2018-12-10T21:18:31.195278Z"}
{"component":"virt-controller","level":"info","msg":"Starting vmi controller.","pos":"vmi.go:167","service":"http","timestamp":"2018-12-10T21:18:31.195305Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:37.638008Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:47.639282Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:57.638635Z"}
{"component":"virt-controller","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:19:07.639120Z"}

$ kubectl logs virt-api-86c5774f57-xxz8t
{"component":"virt-api","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.389520Z"}
{"component":"virt-api","level":"info","msg":"kubevirt-config ConfigMap does not exist. Using defaults.","pos":"feature-gates.go:66","timestamp":"2018-12-10T21:18:13.414878Z"}
{"component":"virt-api","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.414918Z"}
{"component":"virt-api","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.415782Z"}
{"component":"virt-api","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.421915Z"}
{"component":"virt-api","level":"warning","msg":"Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.","pos":"client_config.go:552","timestamp":"2018-12-10T21:18:13.428304Z"}
{"component":"virt-api","level":"info","msg":"http: TLS handshake error from <IP_ADDRESS>:65134: EOF\n","pos":"server.go:2923","timestamp":"2018-12-10T21:18:18.204479Z"}
{"component":"virt-api","level":"info","msg":"http: TLS handshake error from <IP_ADDRESS>:65240: EOF\n","pos":"server.go:2923","timestamp":"2018-12-10T21:18:28.204775Z"}
{"component":"virt-api","level":"info","msg":"http: TLS handshake error from <IP_ADDRESS>:65422: EOF\n","pos":"server.go:2923","timestamp":"2018-12-10T21:18:38.204462Z"}
{"component":"virt-api","level":"info","msg":"http: TLS handshake error from <IP_ADDRESS>:32842: EOF\n","pos":"server.go:2923","timestamp":"2018-12-10T21:18:48.204625Z"}
{"component":"virt-api","level":"info","msg":"http: TLS handshake error from <IP_ADDRESS>:33022: EOF\n","pos":"server.go:2923","timestamp":"2018-12-10T21:18:58.204639Z"}

At this point, I can create VM resources, but no VMIs or associated Pods are ever created.
What you expected to happen:
KubeVirt components start up, successfully connect to each other, and VMs are scheduled
How to reproduce it (as minimally and precisely as possible):
Not sure at this time. Happens consistently whenever I deploy KubeVirt.
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version): v0.12.0-alpha.0
Kubernetes version (use kubectl version): v0.10.11
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): Debian GNU/Linux 9 (stretch)
Kernel (e.g. uname -a): 4.14.74
Install tools:
Others:

Hm. Something is up in that area. It's not the first time we see something like this.
Can you try to reinstall kubevirt?

Not that it is a fix, only to see if it helps

As stated above:

Happens consistently whenever I deploy KubeVirt.

Some updates here:

I forgot to start the VMs. I still get the errors about handshaking, so that might be entirely unrelated (maybe it's Prometheus being a bit eager to scrape?)
I'm having an issue similar to #1128 (and maybe #1551) where I get errors saying that /dev/kvm is unavailable: hardware emulation device '/dev/kvm' not present:{"component":"virt-handler","kind":"","level":"error","msg":"Synchronizing the VirtualMachineInstance failed.","name":"testvm","namespace":"u-terin","pos":"vm.go:784","reason":"server error. command Launcher.Sync failed: \"hardware emulation device '/dev/kvm' not present\"","timestamp":"2018-12-10T23:26:17.037760Z","uid":"8579e526-fcd2-11e8-9c50-54ab3a16deea"}

/dev/kvm is available on the worker, which is running natively.

Update: Removed Prometheus, still seeing these TLS handshake errors every 10 seconds.

These errors exist also on the healthy environment, so the only fix that we need to add is to ignore this errors under the logging.

I see where it is coming from. We use a tcpProbe as readiness check. That shoud be a httpGet with "HTTPS" scheme.

@rmohr Sure will take a look.

Should I open another ticket (or update the one linked above) for the /dev/kvm problem? I'm still not sure what the issue is here.

@terinjokes We already have /dev/kvm issue https://github.com/kubevirt/kubevirt/issues/1551, you can comment under it.

@terinjokes what kind of host OS are you using, and did you configure emulation mode?

The /dev/kvm issue turned out to be a bug with another project's
MutatingWebhook not being Device Plugin aware. After patching it, the kvm
resource was being passed through, and the VM started correctly.
It took a bit of research to determine this project uses Device Plugin to
share /dev/kvm. Only after I knew was I able to find the blog posts.
On Wed, Dec 12, 2018, 1:57 AM Fabian Deutsch<EMAIL_ADDRESS>wrote:

@terinjokes https://github.com/terinjokes what kind of host OS are you
using, and did you configure emulation mode?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubevirt/kubevirt/issues/1832#issuecomment-446529366,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQsZV80ctzeF37tgmDXvShbbdRjKOZ-ks5u4NMdgaJpZM4ZMOTv
.


Question : Cell Height Auto iOS

For example :
In my cell I have a short text and after tapped on it the text comes longer.
Result : the text overlaps the next cell on iOS.
Is it possible to manage cell height automatically with the FlowListView?

I don't understand why HasUnevenRows="true" doesn't work.
The text overlaps other cells.
I use :
<flv:FlowListView x:Name="flView" SeparatorVisibility="None" HasUnevenRows="true"></flv:FlowListView>
and in my Testview
<ContentView.Content>

		<Label x:Name="description" Text="{Binding LongContext}" FontFamily="Roboto-Regular" FontSize="15" />

</StackLayout>
</ContentView.Content>

Thank you for your help.

You just need to set correct HorizontalOptions and VerticalOptions layout flags on a main cell view. Duplicate issue here: https://github.com/daniel-luberda/DLToolkit.Forms.Controls/issues/17


Add server side API to control users state in groups

Additions to the server side API would allow for the server to control a users state in groups.

Promote a user in a group
Leave a group

@casperkl I'll add your notes from our chat on gitter to the discussion:
In our case a user can only be a member of one group at a time, a user can choose to join another group and just has to confirm the switch.
In case this user was the superadmin of a clan we want to promote the next highest ranking member of the clan to superadmin before leaving. But this requires 4-5 consecutive operations from the client side at the moment.
-leave -> error
-get group users
-promote user
-promote user again(if no admin was available)
-leave
I was trying to do this in a single rpc call which handles the different cases.

Thanks for the feature request. @zyro let me know what you think.

Makes sense to add a function for group leave and group promote. We'll get to it as soon as we can unless someone contributes a PR first.

Added in https://github.com/heroiclabs/nakama/commit/5ae35060ff0e55a2a56133585d00a1246d37731e and will be part of the next release.


Incompatible Architecture (have x86_64, need arm64)

Rift should come with prebuilt binaries for Apple Silicon.

Closing in favor of #17.