SteamVR Asset as compiled library

Hi guys,
We are using SteamVR for Unity and have some issues with the way it is delivered as an asset.
Our own assets are written entirely in Visual Studio and are built against Unity's UnityEngine.dll that ships with the Unity Editor. This is so that we have all our code in one place instead of multiple copies across multiple Unity projects. Assets are compiled into dlls and are then imported into Unity.
To reference constructs from within SteamVR unity plugin, we have to precompile your plugin into a library that is then referenced from within Visual Studio.
This process is somewhat problematic, since the resulting dlls also contain CustomEditor classes depending on how we compiled SteamVR.
The current way of using your asset could be improved considerably by offering another asset that does not contain code files. This would also make the whole process of referencing SteamVR a lot cleaner.
Here is my suggestion to solve the issue:

extract nested custom editors from their current classes (e.g. HandEditor in Hand.cs) and put those into SteamVR_Editor project.
compile your projects into dlls (referencing UnityEngine.dll, without UNITY_EDITOR defined)
create another SteamVR Asset consisting of only dlls and resources (textures, prefabs, etc.)

I've already requested this on the community boards a few months back. However it was probably in the wrong spot so it got no attention: https://steamcommunity.com/app/358720/discussions/0/1743354432806077350/
This may not seem like a big issue for most asset users within the unity realm. However it is a huge problem if you want to keep your projects and code clean.
Many thanks in advance,
mike

Hi Mike, sorry it's taken a long time to get back to you about this. We generally prefer to distribute the source by default so users can modify it if they would like to.
We can however split up editor scripts into their own files if that will help. Looks like handeditor didn't do anything anymore so I just removed it. If you see other places that happens we can fix that.


Realm running module code to cover import

does having import implies Realm code is module code?

I don't think so, since inside that module, you can use eval, which doesn't run module code.

Currently the proposal does require that the "bootstrap" is either module code, or using realm.eval(), with the latter subject to string evaluation and CSP complications in browsers. Maybe there could be an executeScript(specifier): Promise<void>, which compatible hosts (e.g. browsers) could implement by interpreting the specifier as a path? The call would be async, and resolve to undefined, or reject.

Actually maybe there could be something like getGlobalPropertyValue(name): PrimitiveValueOrCallable? Combined with an executeScript, that should allow executing non module code without the need of eval, while avoiding exposing the realm's globalThis directly.


[jsoncpp] Build error

Host Environment

OS: [e.g. Windows/Linux etc...]
Compiler: revision

To Reproduce
Steps to reproduce the behavior:
./vcpkg install xxxx
Failure logs

Cut and paste the appropriate build messages from the console output.
Attach every failure log file mentioned in the console output.

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

I am having the same issue on windows 11. I get this every time i follow the instructions to install jsoncpp on the readme of the repo. I get "error: building jsoncpp:x86-windows failed with: BUILD_FAILED" when running the final command "./vcpkg install jsoncpp".
Log files attatched
config-x86-windows-CMakeCache.txt.log
config-x86-windows-out.log

The system cannot find the file specified
@Owoscaw  Please ensure you've installed the English Language pack and cmake tools using Visual Studio Installer first.
Thanks.

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.


Fix: wrong path when broker has a url path suffix

Motivation
When a broker is registered with path suffix. For example: http://broker.com/sm.
Normally calls should go to http://broker.com/sm/v2/catalog for getting the catalog.

[x] Initial implementation
[x] Unit tests

Pull Request Test Coverage Report for Build 793

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

Totals

Change from base Build 788:
0.0%

Covered Lines:
1769

Relevant Lines:
1957

💛  - Coveralls


[sql-lab] Initial state SQL is truncated at first = character

Superset version
0.15.4
SQL Lab query editor is truncated at the first = character. First noticed this when using the Query search editor
Steps to reproduce
http://localhost:8088/superset/sqllab?sql=SELECT
    1 AS `COLUMN`
FROM ( SELECT 2 = 5 ) t
WHERE TRUE &title=Untitled Query

What you wrote here could mean different things please provide more context.

The SQL Editor should be autofilled with:
SELECT
    1 AS `COLUMN`
FROM ( SELECT 2 = 5 ) t
WHERE TRUE

instead it gets truncated to:
SELECT
    1 AS `COLUMN`
FROM ( SELECT 2


[windows] Remove UI level constraint to support bundle reboot

Also reorders bundle chain to make installer display more consistent.

LGTM


huge fps drops when a popup is open

I noticed my game being extremely laggy when I have something open like a trade notification panel until it's closed
Using DirectX and a RX 470 with engine multithreading

Have you focused the window (ie. clicked on it), and are you using background fps with a very low setting?

As @krissrex said, you need to set up background fps cap higher


Pinned react (and co) to 16.0.0-alpha.4

Some time ago (24a7665) the version of React specified in package.json was relaxed (presumably unintentionally). As a result, a recent backwards-incompatible release of React 16 alpha 5 caused some breakage in OSS.
This PR pins the version of React to avoid breaking changes in subsequent alpha releases until the React team has created codemods and prepared the ReactNative codebase for this.
Since the change to package.json was made in February, this PR will need to go into the RC branch for the next ReactNative release in order to avoid breaking other apps in the OSS community.
cc @mkonicek, @gaearon, @javache

Why is CI trying to install<EMAIL_ADDRESS>? This version doesn't exist. That's why the package.json points at 16.0.0-alpha.3

@bvaughn Looks like the script for react-native init assumes that it all use the same version https://github.com/facebook/react-native/blob/master/local-cli/init/init.js#L91.

Gah! Thanks for pointing that out @janicduplessis
Updated that script as well.

@facebook-github-bot shipit

Thanks for the review, @janicduplessis!

Closing as these dependencies were recently updated to alpha6.

Shoud we still ship the change in local-cli/init/init.js in case versions of react and test-utils don't match?

@bvaughn ?

Unsure. There was a transient problem with 16.0.0-alpha.4 because whoever published it did not also publish<EMAIL_ADDRESS>which caused problems with the CI. Maybe this won't happen again? Hopefully not.


Automator: update<EMAIL_ADDRESS>in<EMAIL_ADDRESS>

Generated by Automator - 2021-03-15T15:38:15+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio_release-1.9
bae1f4e993d9357836c5f4cbc4e3ade522715c61
link
/test gencheck_istio_release-1.9

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 gencheck_istio_release-1.9


[Bug]: KV Cache Quantization with GGUF turns out quite poorly.

Your current environment

The output of `python collect_env.py`
I attempted to run that, but it threw errors.  I'm running this in docker on Windows 11

Model Input Dumps
No response
🐛 Describe the bug
 docker run --runtime nvidia --gpus all `
>>     -v "D:\AIModels:/models" `
>>     -p 8000:8000 `
>>     --ipc=host `
>>     -e VLLM_ATTENTION_BACKEND=FLASHINFER `
>>     vllm/vllm-openai:latest `
>>     --model "/models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf" `
>>     --tokenizer "Qwen/Qwen2.5-7B-Instruct" `
>>     --kv-cache-dtype fp8_e4m3

I've tried both fp8_e5m2 and fp8_e4m3.
The model works perfectly without kv-cache quantization.
When I enable it, the model gets exceptionally bad.  With e5m2 it just repeats a word over and over.  With e4m3 it gets about half a sentence in, then also repeats over forever.
I can understand perhaps a some loss in precision, but not basically 100%.  It's essentially non-functional with the FP8 kv-cache.  Without the quantized cache the model is on the level of GPT-3.5.
I had read that there shouldn't be much difference between the two, so I though perhaps it wasn't working right because it's a GGUF or something to do with that.
Here are the init logs:
PS D:\AITools\vllm> docker run --runtime nvidia --gpus all `
>>     -v "D:\AIModels:/models" `
>>     -p 8000:8000 `
>>     --ipc=host `
>>     -e VLLM_ATTENTION_BACKEND=FLASHINFER `
>>     vllm/vllm-openai:latest `
>>     --model "/models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf" `
>>     --tokenizer "Qwen/Qwen2.5-7B-Instruct" `
>>     --kv-cache-dtype fp8_e4m3
INFO 11-17 17:57:32 api_server.py:585] vLLM API server version 0.6.4.post1
INFO 11-17 17:57:32 api_server.py:586] args: Namespace(host=None, port=8000, uvicorn_log_level='info', allow_credentials=False, allowed_origins=['*'], allowed_methods=['*'], allowed_headers=['*'], api_key=None, lora_modules=None, prompt_adapters=None, chat_template=None, response_role='assistant', ssl_keyfile=None, ssl_certfile=None, ssl_ca_certs=None, ssl_cert_reqs=0, root_path=None, middleware=[], return_tokens_as_token_ids=False, disable_frontend_multiprocessing=False, enable_auto_tool_choice=False, tool_call_parser=None, tool_parser_plugin='', model='/models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf', task='auto', tokenizer='Qwen/Qwen2.5-7B-Instruct', skip_tokenizer_init=False, revision=None, code_revision=None, tokenizer_revision=None, tokenizer_mode='auto', chat_template_text_format='string', trust_remote_code=False, allowed_local_media_path=None, download_dir=None, load_format='auto', config_format=<ConfigFormat.AUTO: 'auto'>, dtype='auto', kv_cache_dtype='fp8_e4m3', quantization_param_path=None, max_model_len=None, guided_decoding_backend='outlines', distributed_executor_backend=None, worker_use_ray=False, pipeline_parallel_size=1, tensor_parallel_size=1, max_parallel_loading_workers=None, ray_workers_use_nsight=False, block_size=16, enable_prefix_caching=False, disable_sliding_window=False, use_v2_block_manager=False, num_lookahead_slots=0, seed=0, swap_space=4, cpu_offload_gb=0, gpu_memory_utilization=0.9, num_gpu_blocks_override=None, max_num_batched_tokens=None, max_num_seqs=256, max_logprobs=20, disable_log_stats=False, quantization=None, rope_scaling=None, rope_theta=None, hf_overrides=None, enforce_eager=False, max_seq_len_to_capture=8192, disable_custom_all_reduce=False, tokenizer_pool_size=0, tokenizer_pool_type='ray', tokenizer_pool_extra_config=None, limit_mm_per_prompt=None, mm_processor_kwargs=None, enable_lora=False, enable_lora_bias=False, max_loras=1, max_lora_rank=16, lora_extra_vocab_size=256, lora_dtype='auto', long_lora_scaling_factors=None, max_cpu_loras=None, fully_sharded_loras=False, enable_prompt_adapter=False, max_prompt_adapters=1, max_prompt_adapter_token=0, device='auto', num_scheduler_steps=1, multi_step_stream_outputs=True, scheduler_delay_factor=0.0, enable_chunked_prefill=None, speculative_model=None, speculative_model_quantization=None, num_speculative_tokens=None, speculative_disable_mqa_scorer=False, speculative_draft_tensor_parallel_size=None, speculative_max_model_len=None, speculative_disable_by_batch_size=None, ngram_prompt_lookup_max=None, ngram_prompt_lookup_min=None, spec_decoding_acceptance_method='rejection_sampler', typical_acceptance_sampler_posterior_threshold=None, typical_acceptance_sampler_posterior_alpha=None, disable_logprobs_during_spec_decoding=None, model_loader_extra_config=None, ignore_patterns=[], preemption_mode=None, served_model_name=None, qlora_adapter_name_or_path=None, otlp_traces_endpoint=None, collect_detailed_traces=None, disable_async_output_proc=False, scheduling_policy='fcfs', override_neuron_config=None, override_pooler_config=None, disable_log_requests=False, max_log_len=None, disable_fastapi_docs=False, enable_prompt_tokens_details=False)
INFO 11-17 17:57:32 api_server.py:175] Multiprocessing frontend to use ipc:///tmp/c559fdd5-610d-45c9-b324-75fc77e0c2ff for IPC Path.
INFO 11-17 17:57:32 api_server.py:194] Started engine process with PID 29
INFO 11-17 17:57:45 config.py:1861] Downcasting torch.float32 to torch.float16.
INFO 11-17 17:57:48 config.py:1861] Downcasting torch.float32 to torch.float16.
INFO 11-17 17:57:48 config.py:350] This model supports multiple tasks: {'generate', 'embedding'}. Defaulting to 'generate'.
WARNING 11-17 17:57:48 config.py:428] gguf quantization is not fully optimized yet. The speed can be slower than non-quantized models.
INFO 11-17 17:57:48 config.py:758] Using fp8 data type to store kv cache. It reduces the GPU memory footprint and boosts the performance. Meanwhile, it may cause accuracy drop without a proper scaling factor
WARNING 11-17 17:57:48 arg_utils.py:1075] [DEPRECATED] Block manager v1 has been removed, and setting --use-v2-block-manager to True or False has no effect on vLLM behavior. Please remove --use-v2-block-manager in your engine argument. If your use case is not supported by SelfAttnBlockSpaceManager (i.e. block manager v2), please file an issue with detailed information.
INFO 11-17 17:57:51 config.py:350] This model supports multiple tasks: {'generate', 'embedding'}. Defaulting to 'generate'.
WARNING 11-17 17:57:51 config.py:428] gguf quantization is not fully optimized yet. The speed can be slower than non-quantized models.
INFO 11-17 17:57:51 config.py:758] Using fp8 data type to store kv cache. It reduces the GPU memory footprint and boosts the performance. Meanwhile, it may cause accuracy drop without a proper scaling factor
WARNING 11-17 17:57:51 arg_utils.py:1075] [DEPRECATED] Block manager v1 has been removed, and setting --use-v2-block-manager to True or False has no effect on vLLM behavior. Please remove --use-v2-block-manager in your engine argument. If your use case is not supported by SelfAttnBlockSpaceManager (i.e. block manager v2), please file an issue with detailed information.
INFO 11-17 17:57:51 llm_engine.py:249] Initializing an LLM engine (v0.6.4.post1) with config: model='/models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf', speculative_config=None, tokenizer='Qwen/Qwen2.5-7B-Instruct', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, override_neuron_config=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=32768, download_dir=None, load_format=LoadFormat.GGUF, tensor_parallel_size=1, pipeline_parallel_size=1, disable_custom_all_reduce=False, quantization=gguf, enforce_eager=False, kv_cache_dtype=fp8_e4m3, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), observability_config=ObservabilityConfig(otlp_traces_endpoint=None, collect_model_forward_time=False, collect_model_execute_time=False), seed=0, served_model_name=/models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf, num_scheduler_steps=1, chunked_prefill_enabled=False multi_step_stream_outputs=True, enable_prefix_caching=False, use_async_output_proc=True, use_cached_outputs=True, chat_template_text_format=string, mm_processor_kwargs=None, pooler_config=None)
WARNING 11-17 17:58:06 utils.py:720] Using 'pin_memory=False' as WSL is detected. This may slow down the performance.
INFO 11-17 17:58:06 selector.py:170] Using Flashinfer backend.
INFO 11-17 17:58:07 model_runner.py:1072] Starting to load model /models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-Instruct-abliterated-v2.Q5_K_M.gguf...
/usr/local/lib/python3.12/dist-packages/torch/nested/__init__.py:226: UserWarning: The PyTorch API of nested tensors is in prototype stage and will change in the near future. (Triggered internally at ../aten/src/ATen/NestedTensorImpl.cpp:178.)
  return _nested.nested_tensor(
INFO 11-17 17:58:56 model_runner.py:1077] Loading model weights took 5.1287 GB
INFO 11-17 18:00:22 worker.py:232] Memory profiling results: total_gpu_memory=24.00GiB initial_memory_usage=6.44GiB peak_torch_memory=10.68GiB memory_usage_post_profile=6.71GiB non_torch_memory=1.32GiB kv_cache_size=9.61GiB gpu_memory_utilization=0.90
INFO 11-17 18:00:22 gpu_executor.py:113] # GPU blocks: 22486, # CPU blocks: 9362
INFO 11-17 18:00:22 gpu_executor.py:117] Maximum concurrency for 32768 tokens per request: 10.98x
INFO 11-17 18:00:23 model_runner.py:1400] Capturing cudagraphs for decoding. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
INFO 11-17 18:00:23 model_runner.py:1404] If out-of-memory error occurs during cudagraph capture, consider decreasing `gpu_memory_utilization` or switching to eager mode. You can also reduce the `max_num_seqs` as needed to decrease memory usage.
INFO 11-17 18:00:51 model_runner.py:1518] Graph capturing finished in 30 secs, took 7.66 GiB
INFO 11-17 18:00:51 api_server.py:249] vLLM to use /tmp/tmpn8w0lmeq as PROMETHEUS_MULTIPROC_DIR
INFO 11-17 18:00:51 launcher.py:19] Available routes are:
INFO 11-17 18:00:51 launcher.py:27] Route: /openapi.json, Methods: GET, HEAD
INFO 11-17 18:00:51 launcher.py:27] Route: /docs, Methods: GET, HEAD
INFO 11-17 18:00:51 launcher.py:27] Route: /docs/oauth2-redirect, Methods: GET, HEAD
INFO 11-17 18:00:51 launcher.py:27] Route: /redoc, Methods: GET, HEAD
INFO 11-17 18:00:51 launcher.py:27] Route: /health, Methods: GET
INFO 11-17 18:00:51 launcher.py:27] Route: /tokenize, Methods: POST
INFO 11-17 18:00:51 launcher.py:27] Route: /detokenize, Methods: POST
INFO 11-17 18:00:51 launcher.py:27] Route: /v1/models, Methods: GET
INFO 11-17 18:00:51 launcher.py:27] Route: /version, Methods: GET
INFO 11-17 18:00:51 launcher.py:27] Route: /v1/chat/completions, Methods: POST
INFO 11-17 18:00:51 launcher.py:27] Route: /v1/completions, Methods: POST
INFO 11-17 18:00:51 launcher.py:27] Route: /v1/embeddings, Methods: POST
INFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO 11-17 18:00:59 metrics.py:449] Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 0.0 tokens/s, Running: 0 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 0.0%, CPU KV cache usage: 0.0%.

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

I wanted to update, I tried it on llama.cpp like so:
docker run --rm --name llama-server --runtime nvidia --gpus all `
-v "D:\AIModels:/models" `
-p 8000:8000 `
ghcr.io/ggerganov/llama.cpp:server-cuda `
-m /models/MaziyarPanahi/Qwen2.5-7B-Instruct-abliterated-v2-GGUF/Qwen2.5-7B-nstruct-abliterated-v2.Q5_K_M.gguf `
--host <IP_ADDRESS> `
--port 8000 `
--n-gpu-layers 35 `
-cb `
--parallel 8 `
-c 32768 `
--cache-type-k q8_0 `
--cache-type-v q8_0 `
-fa

And it did run with KV Cache Q8_0 without noticeable degradation.

Seems that this is an issue specific to k-quants (might be i-matrix as well). I can generate reasonable outputs with standard quantization (Q4_0, Q5_0 and Q8_0) checkpoints:
$ python examples/offline_inference.py --model ../Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf --kv-cache-dtype fp8 --max-tokens 128
/root/miniconda3/lib/python3.12/site-packages/vllm/connections.py:8: RuntimeWarning: Failed to read commit hash:
No module named 'vllm._version'
  from vllm.version import __version__ as VLLM_VERSION
INFO 11-18 13:28:31 __init__.py:31] No plugins found.
INFO 11-18 13:28:31 __init__.py:31] No plugins found.
INFO 11-18 13:28:48 config.py:1861] Downcasting torch.float32 to torch.float16.
INFO 11-18 13:28:52 config.py:350] This model supports multiple tasks: {'embedding', 'generate'}. Defaulting to 'generate'.
WARNING 11-18 13:28:52 config.py:428] gguf quantization is not fully optimized yet. The speed can be slower than non-quantized models.
INFO 11-18 13:28:52 config.py:758] Using fp8 data type to store kv cache. It reduces the GPU memory footprint and boosts the performance. Meanwhile, it may cause accuracy drop without a proper scaling factor
WARNING 11-18 13:28:52 arg_utils.py:1065] [DEPRECATED] Block manager v1 has been removed, and setting --use-v2-block-manager to True or False has no effect on vLLM behavior. Please remove --use-v2-block-manager in your engine argument. If your use case is not supported by SelfAttnBlockSpaceManager (i.e. block manager v2), please file an issue with detailed information.
INFO 11-18 13:28:52 llm_engine.py:249] Initializing an LLM engine (vdev) with config: model='../Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf', speculative_config=None, tokenizer='../Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, override_neuron_config=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=32768, download_dir=None, load_format=LoadFormat.GGUF, tensor_parallel_size=1, pipeline_parallel_size=1, disable_custom_all_reduce=False, quantization=gguf, enforce_eager=False, kv_cache_dtype=fp8, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), observability_config=ObservabilityConfig(otlp_traces_endpoint=None, collect_model_forward_time=False, collect_model_execute_time=False), seed=0, served_model_name=../Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf, num_scheduler_steps=1, chunked_prefill_enabled=False multi_step_stream_outputs=True, enable_prefix_caching=False, use_async_output_proc=True, use_cached_outputs=False, mm_processor_kwargs=None, pooler_config=None)
INFO 11-18 13:29:29 __init__.py:31] No plugins found.
INFO 11-18 13:29:29 selector.py:271] Cannot use FlashAttention-2 backend for FP8 KV cache.
WARNING 11-18 13:29:29 selector.py:273] Please use FlashInfer backend with FP8 KV Cache for better performance by setting environment variable  VLLM_ATTENTION_BACKEND=FLASHINFER
INFO 11-18 13:29:29 selector.py:144] Using XFormers backend.
INFO 11-18 13:29:30 model_runner.py:1072] Starting to load model ../Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf...
/root/miniconda3/lib/python3.12/site-packages/torch/nested/__init__.py:226: UserWarning: The PyTorch API of nested tensors is in prototype stage and will change in the near future. (Triggered internally at ../aten/src/ATen/NestedTensorImpl.cpp:178.)
  return _nested.nested_tensor(
INFO 11-18 13:29:45 model_runner.py:1077] Loading model weights took 1.7820 GB
INFO 11-18 13:29:50 worker.py:232] Memory profiling results: total_gpu_memory=23.65GiB initial_memory_usage=2.25GiB peak_torch_memory=4.25GiB memory_usage_post_profile=2.25GiB non_torch_memory=0.47GiB kv_cache_size=16.57GiB gpu_memory_utilization=0.90
INFO 11-18 13:29:51 gpu_executor.py:113] # GPU blocks: 77556, # CPU blocks: 18724
INFO 11-18 13:29:51 gpu_executor.py:117] Maximum concurrency for 32768 tokens per request: 37.87x
INFO 11-18 13:29:53 model_runner.py:1400] Capturing cudagraphs for decoding. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
INFO 11-18 13:29:53 model_runner.py:1404] If out-of-memory error occurs during cudagraph capture, consider decreasing `gpu_memory_utilization` or switching to eager mode. You can also reduce the `max_num_seqs` as needed to decrease memory usage.
INFO 11-18 13:30:04 model_runner.py:1518] Graph capturing finished in 10 secs, took 1.55 GiB
Processed prompts: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00,  4.56it/s, est. speed input: 25.10 toks/s, output: 584.14 toks/s]
Prompt: 'Hello, my name is', Generated text: " Josh and I'm here to help you understand what is actually going on with your kids. I'm a life coach and former public speaker, and I have a Masters in Psychology. I help parents, educators, and children make changes in their lives for the better, one step at a time. This site will help me to better serve you. I'll be happy to answer any questions or make a call or email you for you're interested. My contact information can be found on the home page. I am dedicated to helping you and your family. Thank you for checking out my site. Josh.\nCould you you use those words to describe"
Prompt: 'The president of the United States is', Generated text: ' the head of state and the head of government for the United States. The president serves as the commander-in-chief of the United States Armed Forces, has the power to appoint federal judges, and conducts foreign policy. The president also has the power to veto bills, and by using the power of the pardon, can issue pardons. The president is also the chief diplomat of the United States, can issue executive orders, has the power to grant reprieves, and has the power to commute sentences. In addition, the president can also offer a bill that proposes a constitutional amendment to Congress, and then the House of Representatives, and the Senate'
Prompt: 'The capital of France is', Generated text: ' Paris, located in the north of the country. The name Paris comes from the Latin form of the Greek name Paris, which means "piece of land" or "piece of land with Troy." The Romans brought the name when they conquered the region.\n\nThe original name of the city was Lutum, and the Romans renamed it after the legendary king of Troy, Paris, who stole Helen, the queen of Sparta, from her husband Menelaus. This name translates to "Troy\'s Place."\n\nIn the 1st century AD, the Romans renamed it to Lutum, which means "little Troy" or "T'
Prompt: 'The future of AI is', Generated text: ' an exciting one, and it’s currently been a rather challenging one for AI developers. With so being a new technology, developers are still working to finding ways to make their AI models more accurate and better. One of the biggest issues is that AI models are often overfitting to their training data, which an expensive and inefficient model. This is a major problem as it requires a large amount of data and computational resources to train, which are limited for many organizations.\nThis is where the standard approach to solve the overfitting problem, which is to train the model for more data, which an expensive and inefficient model. This is a major'

BTW. seems that Q6_K can also generate reasonable results. Perhaps you might need to use a higher-bits quantization to avoid quality degradation when using fp8 kv cache dtype.

This isn't directly related, but it may just be something model-specific? I am using Hugging Face to quantize KV Cache for the 7-9B models. Most mainstream models perform quite well (e.g. Mistral, Llama1/2, Gemma) even in 2 bit quantization, but Qwen2.5's bahavior is absolutely terrible even for 4 bit quantization.
It might be a bug, but I've done some poking around and no issues were found so far. I'm guessing the Qwen models are just particularly sensitive to changes in KV Cache.

Could it be related to FP8 KV quantization when there is no hardware FP8 support? i.e. this manifests on 30 series GPUs and earlier but not 40 series and later? I also noticed that KV cache quantization was completely broken, but don't remember which models were tested.
I don't think it is just Qwen sensitivity, as I managed to get adequate results using llama.cpp when quantizing cache, so it seems to be something specific to vLLM's KV quantization.


refactor(createRoutes): simplify and DRY routes and remove comments

merging reason: we have to move on, any changes to current state can be and will be easily reverted


How to use global variable in rhai  function declared in rust

Hi, there I want to call a function foo which will update the scope variable named bar but it must be implemented in Rust.
fn foo(scope: &mut Scope, path: &str) {
    scope.set_or_push("bar", path);
}

But upon calling the function as:
foo("abcd")

it throws error:
Error: ErrorFunctionNotFound("foo (&str | ImmutableString | String)", 2:9)

Can I pass the scope as argument (which is not an ideal choice), is there any workaround to that?

You cannot.   You cannot modify the scope within a Rust function.
Rhai depends on you not being able to modify the scope for some of its optimizations.

Cool. Thanks!!


⚠ Secret Website 3 has degraded performance

In 03f3571, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2326 ms

Resolved: Secret Website 3 performance has improved in b5bbb29.


non-optimal running vms windows on professor view

Improvements:

[x]  Change dimension of running vms on professor view, is better to use all the screen height
[x]   Change padding and margin, it is better to have a narrower list.
[x]  Change text color on list, now is black on green background, maybe we can keep black and use a lighter green (Lime green for example)
[x]  GitHub logo is disappeared

Bug fix:

[x]  The button to kill a vm is disappeared

I agree! Only thing I would remove from this issue the hourglass part because I believe it is related to other issues #237 #126

After setting the dynamic resizing of the running vms window, I thought superfluous to tighten the margins, if you agree I would leave it like this.

Agreed.


Authors missing for accepted name references in ac-export

The reference source bug got fixed, but now authors are missing.

I'm working on a new version of World Ferns in CoLDP format, and the author strings are missing for some accepted names and synonyms, but not others.
For example, for Austrolycopodium paniculatum (Desv. ex Poir.) Holub the author string is included in the verbatim data:

ID
citation
author
title
year
source
doi
link

318
Holub. 1991. Folia Geobot. Phytotax. 26(1): 91.
Holub

1991
In: Folia Geobot. Phytotax. 26(1): 91

But not included in ac-export.zip:

record_id
author
year
title
source
database_id
reference_code

39042
\N
1991
\N
In: Folia Geobot. Phytotax. 26(1): 91
140
4b203a3b-1fea-4894-866c-7874b1a9c656

Or on the workbench (AC2019, left; CoL+, right):


hi ping please contact us

ping thanks for all the work on this.
Please contact us at<EMAIL_ADDRESS>We'd love to chat.

@goldnitro
Your issue report does not conform to the issue template that has been specified for this repo:
https://raw.githubusercontent.com/ping/instagram_private_api/master/.github/ISSUE_TEMPLATE.md
Please edit your issue to comply with the template requirement.
This issue will be closed after 24 hours if no followup action is taken.

[This comment is auto-generated. ref=notemplate]


Add nullptr checks before accessing children in getUnspecialized

The demangler already has an error mechanism to report if demangling failed. Add null pointer checks before every access in Demangle::getUnspecialized, and return an error if the child doesn't exist.
rdar://110141007

@swift-ci smoke test

@swift-ci smoke test


incorrect paths

Describe the bug
I'm running ComfyUI on a subpath, with port forwarding via code-server. ComfyUI is running well, and it loads your plugin's JavaScript files correctly. However, your JavaScript references to ComfyUI's api.js, app.js, widgets.js, etc., do not include the subpath and are directly requesting them under the domain name, which leads to incorrect paths and errors.
Screenshots

versions please!
and I don't support tunnes or whatever baidu is

Thank you for your response.
This is not related to Baidu; Paperspace is the same. As I described above, the main issue is adapting to the subpath.

as I said before, I need to see versions as the form to create an issue said, please!
yes this is realte to baidu/tunnel, because it works with localhost

versions

sorry but I can't reproduce it, if you want you can create a PR

sorry but I can't reproduce it, if you want you can create a PR

@crystian
WSL2
jupyter lab --no-browser --ip=<IP_ADDRESS> --allow-root --notebook-dir=~ --LabApp.token= --LabApp.allow_origin=* --LabApp.base_url=/jupyter/
run ComfyUI and request http://<IP_ADDRESS>:8888/jupyter/proxy/8188/


remove duplicate code in parse model

Coverage increased (+0.04%) to 86.761% when pulling 701e55d0a9cb6e38f6a630ffe3471ffef424f97b on ts07_duplicated_code_refactoring_model_and_helper into b81e77f2579726d2c469793952df7b75322d3661 on development.


bob: setting up generated tests

Are you interested in setting up the generator for these and having the versions mark the occasion?  This is when the bookkeeping becomes important, since it is incremented with the generators to help us keep track of solutions.
At the moment, there is no reason to change from "Version 0", no change driving it other than to add the bookkeeping itself.
What do you think @raadler, are you up for the task of putting the generator in place?

@kotp Sure. Is there documentation I can look at for how to set it up?

You can use this same PR... it will automatically update.  May want to change the title to something that indicates setting up generated tests.

@kotp A few questions about the generator setup steps: it mentions x-common/$problem.json. Is that x-common/exercises/bob/canonical-data.json in this case? (The path is a bit different than described.) And am I creating the lib/bob.rb? (Some files mentioned in the readme seem to have been renamed, so the readme might need to be edited at some point.)

x-common/$problem.json. Is that x-common/exercises/bob/canonical-data.json in this case?

Yes

And am I creating the lib/bob.rb?

You will need to create:
lib/bob_cases.rb
exercises/bob/example.tt
exercises/bob/.version
If you run the generator with:  bin/generate bob it will generate exercises/bob/bob_test.rb
The documentation is a bit out of date unfortunately. We're in the middle of changing the process to make everything easier, part of that will involve updating the documentation.

Have a look at the recent Triangle generator for an up-to-date example.

@raadler I wanted to bump this.  If you want we can pick this up...

@kotp That would be great. I've been super busy and this has fallen through the cracks, so if someone has more time for it, go ahead.

OK @raadler I am going to close this issue to allow someone else to run with it.  If you find that it has not happened yet, feel free to start from scratch or open this one up and force a push to it to get it rolling again!


typo in Saved Searches: Log Browser

In the "Images Uploaded" search, the following text exists:
Log messages indicating that a new Glance images has successfully been uploaded
The text should say:
Log messages indicating that a new Glance image has successfully been uploaded
(ie remove the 's' on images)

thank you for the report. the goldstone log browser is just repeating an upstream log message not editable by us.

reopening issue and attaching a screenshot of referenced content.
![type](https://cloud.githubusercontent.com/assets/5633015/14501225/285b4558-015a-11e6-9087-
02125e0bfca2.png)

This is a typo in the SavedSearch description I believe.  Assigning to @vichargrave

Confirmed.  I'll fix it.

Fixed and merged.

Closing issue.


Rename this keyword

Renames the this keyword to _this. This change allows for smaller minified code in the final version, which reduces file size and thus speeds up webpage loading. Some files had previously used _this and some had used me. The change to _this allows complete code uniformity throughout the project and improves readability. New readers will more easily understand at first glance that _this references this than they would have with me. All applicable this/me have been changed to _this, and all functionality is exactly the same.

Coverage decreased (-0.03%) to 84.685% when pulling 94e98019fa025a5fa9f2d664623cab82452a07ae on zachpanz88:this-rename into 829c2be2bcbbe74cd4ded4933234b9ab0d2ca55a on chartjs:master.

Looks like the coverage has changed a significant amount, some files increased and some decreased coverage, not sure why.

I (obviously) prefer me: shorter, follows coding style (local variables doesn't start with underscore) and more recognizable than _this (will not confuse this and _this from a different scope, e.g. in a each() loop).

I could change _this to me. Thoughts? @etimberg @tannerlinsley

I am not opposed to using me

Alright, I will change _this to me and update the PR.

Updated to use me rather than _this. If we are going to merge, we should do it soon to avoid merge conflicts.

looks like there is a conflict. lets resolve that and merge?

Great work @zachpanz88. A note about caching this into a local variable: it starts to reduce size only when there are at least 4 occurrences of this replaced in the method closure (once minified, var me = this; + 4 uses of me will be 15 chars, 4 uses of this will be 16 chars:
3 occurrences of this:
function(){var r=this;return r.foo(),r.bar(),r}
function(){return this.foo(),this.bar(),this}

4 occurrences of this:
function(){var r=this;return r.foo(),r.bar(),r.foo();r}
function(){return this.foo(),this.bar(),this.foo(),this}

+1 to merge once the conflict is resolved. Since only the last commit is useful, do you mind to squash this PR in one commit?

Yeah, didn't see those issues but will fix now.
Miscalculated at first and thought it was 3+ so that's why there are some with only 3 references to this.

Coverage decreased (-0.005%) to 84.558% when pulling 15a6fa845d7d69968beb44c2cdba9d21e877deef on zachpanz88:this-rename into 76a64930a3e253ec306eebbfb8c4398f21f893cc on chartjs:master.

Coverage decreased (-0.005%) to 84.558% when pulling 5fae4dd3050fbd51da13ec1f5433d7f487758763 on zachpanz88:this-rename into 76a64930a3e253ec306eebbfb8c4398f21f893cc on chartjs:master.

I have fixed some issues and fixed conflicts, also squashed down to 2 commits. Let me know if anything else should get fixed.

Coverage decreased (-0.005%) to 84.558% when pulling 148c66fe957e1211d65f975b72945a66118a514e on zachpanz88:this-rename into 76a64930a3e253ec306eebbfb8c4398f21f893cc on chartjs:master.

Sweet!

Awesome! +1 to merge. @zachpanz88, do you calculated the size improvement of these changes on the minified build?

@simonbrunel I did not but I can.

Looks like it saves 2KB on the minified result.


Continue where you left off

Great product, congrats.
But the Settings/OnStartup/ "Continue where you left off" button doesn't work

is disabled because it has not yet been implemented


SeaweedFS master high CPU consumption, slow chunkAssign when lots of volumes

Sponsors SeaweedFS via Patreon https://www.patreon.com/seaweedfs
System Setup
SeaweedFS 3.65

3 master servers
3 filer servers
24 volume server. One volume server per HDD.
MongoDB as filer store
~144000 volumes in total
DefaultDataCenter (DC not set)

Topology

rack1
rack2
rack3

master-0
master-1
master-2

filer-0
filer-1
filer-2

volume-0-7
volume-8-15
volume-16-23

Describe the bug
Experience significant CPU consumption on master leader. Filer hit timeouts on chunkAssign. Master leader got reelected frequently.

Current workaroud
Totally disable -rack option for filer servers returns master to normal behaviour, chunkAssing becomes fast (~5ms) as usual.
Here are cpu and memory profile
seaweedfs-master-cpumem-profile.zip

added one commit https://github.com/seaweedfs/seaweedfs/commit/35fd1e1c9af62df7ca50324a0db2983ac4af4176 to reduce memory usage a bit

what is "disable -rack option"?
I mean, started filer servers without "-rack=" option, so that filer doesn't really know on which rack it is located


Bump setup instructions - ruby setup steps + nvm setup steps

I rule and have completed some work on Case Manager that's ready for review!
Stemming from a discussion in https://github.com/DCAFEngineering/dcaf_case_management/pull/2299#discussion_r676034512 this PR adjusts setup instructions a bit to accommodate installing from nvm. (I have this going into main but can also punch it into @xmunoz 's working branch if that's easier.)
This pull request makes the following changes:

setup instructions bump for ruby and nvm
allowlists .ruby-version
checks in .nvmrc

It relates to the following issue #s:

stems from #2299

For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

Codecov Report

Merging #2309 (ce2448c) into main (f9d2c95) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2309   +/-   ##
=======================================
  Coverage   96.25%   96.25%
=======================================
  Files          79       79
  Lines        1655     1655
=======================================
  Hits         1593     1593
  Misses         62       62

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 f9d2c95...ce2448c. Read the comment docs.

Just changed the base. I think it makes sense to merge this into my PR since it's very much linked.

into the branch it goes! thx @xmunoz


v2 Bug on mobile devices

The v2 megamenu works fine on computers, but not on mobile devices; including Android and iPhone.
When you open the menu and try to scroll up or down through sub-menu choises, the menu closes. Just the slightest touch and it closes. Please help! Thanks! Example can be found here: http://www.hannabery.com/01homev2.html

I found the part of the code causing the problem, just don't know how to fix it. In the JS file at end:
$(window).resize(function () {
if (getWindowWidth() < responsiveBreakpoint) {
$('.menu > ul').removeClass('is-shown-on-mobile');
$('.menu li').children('ul').hide();
$('.dropdown-button-text').removeClass('is-active');
$('.hamburger').removeClass('is-active');
} else {
$('.menu > ul > li > ul > li').children('ul').show();
}
});
If you remove this section, the menu will work fine on a phone, but then you can't use it properly on a computer when resizing browser with expanded menu - it breaks. Hope you can provide a fix!!!

yes I see the same issue, I really would like to use this menu but ya seems like a show stopper, as soon as you slide the menu closes up.

yes I see the same issue, I really would like to use this menu but ya seems like a show stopper, as soon as you slide the menu closes up.

Mario, I installed v2 files, but it does not work properly on smart phones. The problem is caused by the window.resize function. Hoping you can provide a fix???????????

Maybe you need to check for document_height; as well as width for mobiles???

Yes, I have the same problem.  Hoping you can provide a fix???????????

I will give it a shot, thanks
On Nov 23, 2017 4:33 AM, "pitcock"<EMAIL_ADDRESS>wrote:

changing the line
$(window).resize(function () {
to
$(window).on("orientationchange", function() {
works for me on iPhone but has to be tested. "orientationchange" is
recommended by Apple.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marioloncarek/megamenu-js/issues/14#issuecomment-346568402,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXc__3XoWL-o3ceM-IeqzB-xs0wPZrB-ks5s5Tv-gaJpZM4LXJd7
.


Ensure access to MetaMask is granted before requesting

Privacy mode in MetaMask requires the app to explicitly request access to MetaMask before interaction. See https://medium.com/metamask/https-medium-com-metamask-breaking-change-injecting-web3-7722797916a8.
This mode will soon be enabled by default.
This PR adds the request for permission so that if required, permissions can be accepted.
The Impact: The connector always stays stuck at the following message, if privacy mode is enabled:

Please unlock MetaMask first and then reload this page

Please unlock MetaMask first and then reload this page
To test this, you can enable Privacy Mode in MetaMask and open up the connector page.

@ryanchristo Fixed linting 🙂

Thanks again @monokh! Merged and published in v1.1.2.


CB-13522 (iOS): Remove usage description

Platforms affected
What does this PR do?
What testing has been done on this change?
Checklist

[x] Reported an issue in the JIRA database
[x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[ ] Added automated test coverage as appropriate for this change.

@jcesarmobile quick question - why was this change necessary? I've looked at the Jira issue and no mention of why this change was required?
Failing to include the usage description in the manner described in the updated readme just causes the plugin to crash the app as soon as I attempt to read the contacts. For anyone upgrading, this "fix" just breaks the app. Seems like this fix should at least have updated the plugin to call the error callback if no permission text is available rather than crash.

This was necessary because people weren't setting the value, so the empty default one was used and Apple was rejecting apps. Also, a few plugins were setting the same usage description, which was causing collisions, making it now work as expected.
This was done in all the plugins at the same time, and all of them got a major bump update. Major bump means there are breaking changes, so people should read the release notes before doing a major bump.
It was also announced on the Cordova blog.
The bug only crash development apps, so I don't think it's a big issue, if the developer doesn't catch it in time before trying to publish, Apple will reject it anyway, so there is no way of this crash reaching production apps (unless it's an enterprise app not distributed through the app store)
If you think the plugins should fail instead of crash you can create issues on http://issues.cordova.io/ as feature requests proposing this change. Be aware that contacts plugin is deprecated, so no more work will be done on it, but you can propose it for the other plugins.


Automagic routing for docker-containers

Is your feature request related to a problem? Please describe.
The problem if any, is my own OCD & lazyness.
Software like Treafik and JWilder's nginx proxy all have the ability to automatically route to a docker-container based on a label or env flag.
My goal would be to have similar behaviour in nginx-proxy-manager so i tried implementing something like that.
However I cant seem to be able to POST to the API.
Describe the solution you'd like
As far as i can tell it should be possible to do a POST request to /api/nginx/proxy-hosts
{
"domain_names": ["VOORBEELDDDDDD"],
"forward_scheme":"http",
"forward_host":"<IP_ADDRESS>",
"forward_port":5000,
"access_list_id":"0",
"certificate_id":0,
"advanced_config":"",
"locations":[],
"block_exploits":false,
"caching_enabled":false,
"allow_websocket_upgrade":false,
"http2_support":false,
"hsts_enabled":false,
"hsts_subdomains":false,
"ssl_forced":false
}

Is telling me i miss a token, fair enough. however if i try to post to http://server:3081/tokens it also tells me to get lost.
HTTP/1.1 405 Not Allowed
Connection: keep-alive
Content-Length: 154
Content-Type: text/html
Date: Wed, 15 Jul 2020 20:22:30 GMT
Server: openresty

Any way to get this up and running?
Describe alternatives you've considered
Snooping around in the code. but cant seem to find why one would do this
Update: one should use the /api/tokens/ to get the token. now lets try to create a host again. will update asap

Update: Turns out you can do this !
#!/bin/bash

# Notice: I use httpie for this (brew install httpie)

HOST="http://localhost:3081"
<EMAIL_ADDRESS>PASS="changeme"

echo "==> Logging in... "
TOKEN=`http post $HOST/api/tokens identity=$USER secret=$PASS --body | python -mjson.tool | grep token | cut -d: -f2 | sed -e 's/^[ \t]*//' | tr -d '"' `

echo "==> Creating host "
http post $HOST/api/nginx/proxy-hosts \
 Authorization:"Bearer ${TOKEN}" \
 domain_names:='["kaas"]' forward_scheme="http" forward_host="<IP_ADDRESS>" forward_port="5000" \
 access_list_id="0" certificate_id="0" advanced_config="" locations:="[]" block_exploits="false"

Update: I wrote a little NodeJS utility to talk to the API and do some 'fancy' auto routing
https://github.com/Xantios/nginx-proxy-manager-assistent


Fixed typo - fourth instead if forth

Hi, I was looking for something in the source and stumbled on this typo.

@vsobotka,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@vsobotka, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

Thanks


Move motor on button press

Nice SDK!
I tried to apply your work on my Liebherr and it works great. However, I try to command the motors through a button press: turn left when pressing "left" button etc.. However:

I used the SetSpeed() command but that doesn't activate the motor.
I tested the SetSpeedForDuration() but that does not correspond to what I am looking for

Is there anything that can activate a motor as long as I press a button on the keyboard ? The mobile app seems to work that way.
Something that would look like this:
private void KeyDown_Event(object sender, KeyRoutedEventArgs e)
{
    if (e.Key == Windows.System.VirtualKey.Left) // Activate motor indefinitly
}

private void KeyUp_Event(object sender, KeyRoutedEventArgs e)
{
    if (e.Key == Windows.System.VirtualKey.Left) // Stop motor
}

After several tries, I managed to do something that seems to work:
 public static void SetSpeed(this IMotor device, byte speed, byte power, RotateDirection direction)
        {
            speed = speed.AsAngularVelocity(direction);
            power = Math.Min(Math.Max(power, (byte)0), (byte)100);
            short duration = short.MaxValue;

            var body = new List<byte>();
            body.Add(device.Port);
            body.Add(0b00010000);
            body.Add(0x09);
            body.AddRange(BitConverter.GetBytes(duration));
            body.Add(speed);
            body.Add(power);
            body.Add(126); // end state
            body.Add(0x0000); // profile

            var bytes = new List<byte>();

            bytes.Add((byte)(body.Count() + 2)); // Length
            bytes.Add(0b00000000); // Hub ID
            bytes.Add(0x81); // Port Output Command
            bytes.AddRange(body);

            var message = new Message(bytes.ToArray());

            device.SendMessage(message);
        }

The main modification is to set the end state to 126 (HOLD). However, limited to 32 seconds of duration. When setting the duration to 0, I am unable to move counterclockwise

After several tries, I managed to do something that seems to work:
 public static void SetSpeed(this IMotor device, byte speed, byte power, RotateDirection direction)
        {
            speed = speed.AsAngularVelocity(direction);
            power = Math.Min(Math.Max(power, (byte)0), (byte)100);
            short duration = short.MaxValue;

            var body = new List<byte>();
            body.Add(device.Port);
            body.Add(0b00010000);
            body.Add(0x09);
            body.AddRange(BitConverter.GetBytes(duration));
            body.Add(speed);
            body.Add(power);
            body.Add(126); // end state
            body.Add(0x0000); // profile

            var bytes = new List<byte>();

            bytes.Add((byte)(body.Count() + 2)); // Length
            bytes.Add(0b00000000); // Hub ID
            bytes.Add(0x81); // Port Output Command
            bytes.AddRange(body);

            var message = new Message(bytes.ToArray());

            device.SendMessage(message);
        }

The main modification is to set the end state to 126 (HOLD). However, limited to 32 seconds of duration. When setting the duration to 0, I am unable to move counterclockwise


[Doc][Error handling] Category should be under extensions

After this commit: https://github.com/webonyx/graphql-php/commit/c45fa1a4b189c4356b21eed8a364165b8214eeb3, category is under extensions to follow the GraphQL specification.

Nice catch, thanks!

I see this change merged since nov 2019 but website not updated. Shouldn’t the website docs reflect the change?


[IDEA] Tiling PyTorch tensors

Is your feature request related to a problem? Please describe.
Pytorch's API is very numpy-like, but has differences in underlying memory model. It might be interesting to take a look what's happening there and whether it is possible to tile pytorch tensors too.

I've run into issues with this myself and have needed to take things off the gpu just to tile which isn't ideal - I'll take a look and see what the sticking points are


[TINY] Updating when we issue Table() & ColumnType() fluent APIs.

See issue #1668.
Minor update so that we don't attempt to use Table() API if reported Schema is null.

:shipit:

Checked in - commit 9333def.


function inside batch update?

Hi,
Can I use functions inside sql of conn.preparedBatch(sql, batch, handler)? I tried something like:
INSERT INTO table_x (x, y) VALUES ($1, some_func($2));

, which returns could not determine data type of parameter $2.

I think it should be possible, I will add a test for this

@EmadAlblueshi can you add a test for this in the testsuite ?

@vietj  Yes

thanks!

Thanks for working on this! Fortunately, I just found the possible bug in my code. I will test the case tomorrow morning and update it here.

Sorry for the confusion but I now think the code is okay. The problematic function was ST_GeomFromEWKT('SRID=4326;$2') from PostGIS.

so it works for you ?

Nope.

For ST_GeomFromEWKT('SRID=4326;$2'), it returns
com.julienviet.pgclient.PgException: could not determine data type of parameter $2.
For ST_GeomFromEWKT('SRID=4326'||$2), it returns
Data type 25 does not support binary encoding
Data type 2950 does not support binary encoding.

The first one works with naive query execution.

@jbkoh can you provide the data types in the table? or create table details?
the 25 means you are using TEXT and it seems a bug that should be fixed.

those are wholes we have in the data type support (we don't fully support all types yet) and we need to cover more, you can see com.julienviet.pgclient.impl.codec.DataType that covers the existing type.
we aim to support all of them of course

as @EmadAlblueshi if you can provide a small java program + DDL that reproduces it, it would help us tremendously.

The columns I use are
(time Timestamp, loc Geometry, id UUID, value Double).
I thought I could use string type for the parameters like just filling the space in the query string. I will stick to naive query execution until the other data types are implemented.
Thank you!

@jbkoh Double, Timestamp currently supported but UUID is going to be supported by next release. Kindly see https://github.com/vietj/reactive-pg-client/pull/54
As @vietj  said:

we aim to support all of them of course

So Geometry types are not supported yet and we will in addition contributions are always welcome :)

Thanks for the clarification!


Manual Map CustomArgs

Hello. Problems with CustomArgs for manual map.
My code in injector:

In injected dll this code:
std::string info;
struct ArgsBase
{
	long long size;
};

struct CustomArgs : ArgsBase
{
	std::string data;
};

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	auto pArgs = (CustomArgs*)lpReserved;
	info = pArgs->data;
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		//hThread = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Thread, NULL, 0, 0);
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

But after inject dll process crash..where problem?

Don't use std::
Use char* or char[size].

change, but not work.

You still pass a raw pointer.
struct CustomArgs : ArgsBase
{
    char data[256];
};


Differences from Ruby?

Having just stumbled across Crystal, I have seen a lot of talk about similarity with Ruby, which is excellent, but I am curious: What are the differences?  (Especially at the language grammar level?)
I am thinking that a comparison of differences might make it easier for one to understand Crystal and its objectives better than discussing commonalities.  Further, what are your goals in being able to take native Ruby code and running it straight out of the box or at least very nearly doing that with very minor modifications?
Don't get me wrong: I'm exceptionally excited about the similarity aspect.  I wouldn't even be interested in touching Crystal right now if that were not the case, but I'm definitely trying to ascertain their closeness in order to understand library / gem portability, etc. and how much work will really go into such efforts.

No for loop and fewer aliases (in a good way)
Abstract classes
Static typing
Compile-time nil checks
Character literals
Much better speed!

Hmm, that's interesting (and seemingly odd) re: the for loop.  What's the logic behind that?

@ylluminate

Apparantly, use of the for loop is discouraged in Ruby anyway. You can just use .each and related.

No clue. I've never actually used Ruby before...

Well, I'm no fan of for loops, but for the sake of compatibility I would have thought that it would be important to implement.  We are particularly interested in isomorphic software development where we maintain the language from top to bottom.  We've had great results with Opal and now with Volt being essentially a Meteor for Ruby.  Having Crystal for the server side and Opal for the browser seems exceptionally intriguing, but the challenge would be having a robust enough support for Ruby proper that it would not create overly burdensome porting headaches.  Hmm.
Thanks for the input so far!  This does indeed look interesting.

@ylluminate Crystal does not aim to compile out of the box Ruby code. In some cases it happens. But metaprogramming is quite different. Due to the type inference in crystal there are some mandatory type annotations that any Ruby programmer will encounter pretty soon.
http://play.crystal-lang.org/#/r/64i
Although Crystal inherits it's syntax from Ruby, it is a different language. We like the comfort of Ruby, but also the fine control of other languages.
We hope to see lots of shards (crystal gems) all around and see if/how this language has it's place among the others.
Regarding the for loop, check #830 .
There are some grammars differences that comes from the type annotations, type restrictions, tuples, macros. Don't forget to check crystal-lang.org/docs and welcome to Crystal :-)

@ylluminate I myself became aware of Crystal a few months and had similar hopes, see #593

Well, I'm no fan of for loops, but for the sake of compatibility I would have thought that it would be important to implement.

If you are in control of your code, then you can always change it to use the syntax constructs which work the same. For example, if one had for loops in the code, then they can be just easily rewritten using the iterators and the problem is solved. It works as long as there is at least one common way to do it both in Crystal and Ruby. There are some dangerous differences though, such as the single line while handling, see #549 (this is very easily fixable in the parser if anyone decides to take any action).
The mandatory type annotations when creating empty hashes or arrays are the biggest source of incompatibility between Crystal and Ruby, but this can be solved by introducing the #of keyword hack as mentioned in #593 (such keyword is treated as a comment by Ruby, but still provides the type information to Crystal). Today the incompatibilities between Crystal and Ruby are really minimal, but I guess that this is not going to last long and the languages will diverge a lot more in the future.
Also the old style native threads support is broken since Crystal 0.7.0 and apparently there is no intention to fix it and keep in a working shape as can be seen in the #747 bug comments. The higher level concurrency/parallelism abstraction using channels is currently in development.

@ylluminate also Crystal doesn't support passing hash without curly braces as a last argument. But instead of this you can use syntax with ````:``` for default arguments. I think it is better and faster way than passing hashes.

Will or does Crystal have the meta-programming capabilities of Ruby, like method_missing and etc.?

@classyPimp yes it has macroses for it.

@classyPimp No, but it has replacements for a lot already through the macro language. For example there are a couple of automatically called macros which indeed has a method_missing macro that gets you quite close to the Ruby functionality.

@ylluminate Another nice difference is the &. vs &: http://crystal-lang.org/2013/09/15/to-proc.html

As many here say, Crystal has Ruby-inspired syntax (and some semantic and API, of course). But there are many differences. I don't think, for a real app, there would be a chance that the same code would run in Crystal and in Ruby without huge modifications. For example JSON parsing is done in a very different way. Or we have HTTP::Client. And so on...
Please contribute to this page to add the differences you want. I'll close this issue for now.

I think this information should be in the official docs, it will save some headaches to people coming from ruby

@opensas also this could be useful http://www.crystalforrubyists.com/book/book.html.

@opensas we already have that: https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists


Add contributors table at readme

@all-contributors please add @jwar28 for code

@all-contributors please add @afgalvan for Infrastructure, code

@all-contributors generate

@all-contributors please add @afgalvan for Infrastructure, code

@all-contributors please add @jwar28 for code


[Bug] [iOS] CameraView - video orientation fails to set to Landscape on start

Description
When making application that is forced to landscape orientation, camera preview is broken - it is rotated 90 degrees.
Steps to Reproduce

Create a blank Xamarin.Forms application.
Set default (and only) orientation of iOS app to Landscape (Info.plist -> UISupportedInterfaceOrientations).
Add XCT package.
Add CameraView on sample page.

Expected Behavior
Camera preview should be in landscape orientation, without any rotation.
Actual Behavior
Camera preview is rotated by 90 degrees.
Basic Information

Version with issue: 1.2.0
IDE: VS 2019 for MacOS
Platform Target Frameworks:

iOS:  13.5

Affected Devices: at least iPhone SE, but I guess it is a general issue

Workaround
I've managed to fix it by adding following line to FormsCameraView.SetStartOrientation() method:
previewLayer.Connection.VideoOrientation = (AVCaptureVideoOrientation)UIApplication.SharedApplication.StatusBarOrientation;

Hi @sprinter-com-pl I can reproduce the issue that you are experiencing. I have tested it on Android and it works fine. I think it is iOS only.

Hi @sprinter-com-pl I have pushed PR #1583 for the reported issue.

@jfversluis could you please have a look when you have a chance? Thanks 🙏


How might i exclude a specific domain path

I have uni_links working with my website domain, however there are links which i would still like to route back to the website instead of the app.
For Example on ios i have:
applinks:mywebsite.com
and i would like to exclude
mywebsite.com/makeabooking
Help would be much appreciated

I've the same issue


new feature: add github file loader to load any github file content b…

Description
support load any github file content based on file extension.
Why not use git loader ?
git loader clones the whole repo even only interested part of files, that's too heavy.  This GithubFileLoader only downloads that you are interested files.
Twitter handle
my twitter: @shufanhaotop

@eyurtsev can you help to review PR ?

@baskaryan, @eyurtsev, @hwchase17 can you help review this PR ? it was in pending a couple of weeks. thanks.

seems like there are merge conflicts and lint failing

@baskaryan, @eyurtsev, @hwchase17 I just fixed conflicts, can you help to take a look PR? thanks.


Provisioning Windows Machine not in an AD domain

I was curious if the functionality of provisioning non-domain Windows machines would be difficult to do?  I have attempted to remove the domain portion & it is required I believe. This idea came from possibly provisioning a machine & making it the 1st DC in a new AD Forest in a development environment. We had created a new dev enviornment on vlan. I was looking at using the TAMUArch/cookbook.windows_ad possibly to do this.
ArgumentError
domain is required
Resource Declaration:
In C:/chef/cache/cookbooks/vsphere/recipes/nodomain.rb

It is possible but how its done is kind of terrible. (I just got access to some vsphere and can now start submitting some PRs to fix/clean up)
So you just need to set the domain name to local. I don't like that because its really "linuxy" and therefore not very discoverable to a windows admin. I'd like to just have it allow no domain being set.

That worked for me.   I was curious if anything during the provisioning phase of a VM is reliant upon functioning DNS?  Provisioning into a VLAN with no DNS functioning currently. Same recipe works in a different vlan but running into issues in this one.

Should not be assuming you are not counting convergence as part of provisioning.
You can also set the DNS servers ini your config settings to a reachable DNS server if you need to.

Thanks, I believe I am facing an ACL issue reaching back to the chef server via 443. I have everything hard coded by IP to connect back to the chef server. Just wanted to rule that out.  I will close the ticket. Thank you @mwrock


Fix PublishRevisionAction and UnpublishAction for models with custom primary key

There are some logger.info calls in the actions that make use of object.id instead of object.pk (copy-paste leftover from the page actions) that I forgot to change. Sorry!
Instead of adding more tests, I just updated the existing ones to use a new model that uses a custom primary key. Without the fix, the tests fail as the code crashes at the logger.info calls.
Please check the following:

[x] Do the tests still pass?[^1]
[x] Does the code comply with the style guide?

[x] Run make lint from the Wagtail root.

[x] For Python changes: Have you added tests to cover the new/fixed behaviour?

[^1]: Development Testing
[^2]: Browser and device support
[^3]: Accessibility Target

Cherry-picked into stable/4.0.x in 023927617da6812fb0b5eed51b14f4c818c1d378


Add ability to inherit instead of mixing in React::Component

From @catmando on November 25, 2015 20:47
To save typing it would be good to say:
class Foo < React::Base
...
end

I believe this is possible by simply doing this:
class React::Base
  def self.inherited(child)
    child.instance_eval { include React::Component }
  end
end

The question is what should the class be called?
React::Component::Base  (long)
React::Base
ReactComponent (odd)
React::Ruby (interesting)
???
Copied from original issue: zetachang/react.rb#86

From @fkchang on November 25, 2015 21:37
I like the brevity of React::Base and the accuracy of React::Component::Base
ReactComponent::Base ?


[Bug]: Can't connect Github account to Shopify

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

What type of project are you working on?
app
Expected behavior
Okay, Shopify support sent me here, although I'm not sure why because I'm not inside the command line.
My issue is connecting my account form the Online store.
I've read through the guides, tried a new development store, a different browser and the issue is that the Shopify app integration is not connecting my Github. It is remaining stuck on a loading page.
Actual behavior
Stuck on loading screen, no Github account, no branch to connect to.
Stack trace
No response
Reproduction steps
1.Online store
2.Add theme
3.Connect to Github
Operating System
MacOs
CLI version (run shopify version if you're not sure)
2.19
Shell
No response
Ruby version (run ruby -v if you're not sure)
No response
What language and version are you using in your application?
No response

it's still not resolved


got unrecoverable error in primary and no secondary error_class=ArgumentError error="wrong number of arguments (given 4, expected 3)"

Describe the bug:
Error when using syslog output
Expected behaviour:
Logs should be sent to defined syslog cluster output
Steps to reproduce the bug:
Configure below resource
apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterOutput
metadata:
  name: syslog
  namespace: logging
spec:
  syslog:
    buffer:
      timekey: 30s
      timekey_wait: 0s
    host: syslog.example.net
    insecure: true
    port: 20444
    transport: tls

apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterFlow
metadata:
  name: hosttailer-flow
  namespace: logging
spec:
  filters:
  - tag_normaliser: {}
  globalOutputRefs:
  - syslog
  match:
  - select:
      labels:
        app.kubernetes.io/name: host-tailer

Additional context:
Fluentd throws errors:
2024-04-05 11:29:00 +0000 [warn]: #0 [clusterflow:logging:hosttailer-flow:clusteroutput:logging:syslog] got unrecoverable error in primary and no secondary error_class=ArgumentError error="wrong number of arguments (given 4, expected 3)"
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin_helper/socket.rb:41:in `socket_create'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluent-plugin-syslog_rfc5424-0.9.0.rc.8/lib/fluent/plugin/out_syslog_rfc5424.rb:65:in `find_or_create_socket'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluent-plugin-syslog_rfc5424-0.9.0.rc.8/lib/fluent/plugin/out_syslog_rfc5424.rb:39:in `write'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:1225:in `try_flush'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:1538:in `flush_thread_run'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:510:in `block (2 levels) in start'
  2024-04-05 11:29:00 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2024-04-05 11:29:00 +0000 [warn]: #0 [clusterflow:logging:hosttailer-flow:clusteroutput:logging:syslog] bad chunk is moved to /buffers/backup/worker0/clusterflow_logging_hosttailer-flow_clusteroutput_logging_syslog/61557c1e8b4b20b9380467be5ff0a45b.log
2024-04-05 11:29:01 +0000 [warn]: #0 [clusterflow:logging:hosttailer-flow:clusteroutput:logging:syslog] got unrecoverable error in primary and no secondary error_class=ArgumentError error="wrong number of arguments (given 4, expected 3)"
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin_helper/socket.rb:41:in `socket_create'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluent-plugin-syslog_rfc5424-0.9.0.rc.8/lib/fluent/plugin/out_syslog_rfc5424.rb:65:in `find_or_create_socket'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluent-plugin-syslog_rfc5424-0.9.0.rc.8/lib/fluent/plugin/out_syslog_rfc5424.rb:39:in `write'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:1225:in `try_flush'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:1538:in `flush_thread_run'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin/output.rb:510:in `block (2 levels) in start'
  2024-04-05 11:29:01 +0000 [warn]: #0 /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2024-04-05 11:29:01 +0000 [warn]: #0 [clusterflow:logging:hosttailer-flow:clusteroutput:logging:syslog] bad chunk is moved to /buffers/backup/worker0/clusterflow_logging_hosttailer-flow_clusteroutput_logging_syslog/61557c20915175b74f5d02915b7386cb.log

Environment details:

Kubernetes version 1.27
Cloud-provider/provisioner : AKS
logging-operator version : 4.6.0
Install method (e.g. helm or static manifests): helm
Logs from the misbehaving component (and any other relevant logs):
Resource definition (possibly in YAML format) that caused the issue, without sensitive data:

/kind bug

@kefiras this error message alone doesn't tell much about the original problem

have you tried looking at the referred bad chunk?

2024-04-05 11:29:01 +0000 [warn]: #0 [clusterflow:logging:hosttailer-flow:clusteroutput:logging:syslog] bad chunk is moved to /buffers/backup/worker0/clusterflow_logging_hosttailer-flow_clusteroutput_logging_syslog/61557c20915175b74f5d02915b7386cb.log

have you tried raising the log level? (logLevel: debug in fluentd spec)
have you/can you check the error/warning messages on the receiving side if there were any?

Debug is already enabled
bad chunk
??f?.FsN??time?2024-04-09T10:18:22.776368974Z?message?:Apr  9 10:18:22 aks-prometheus-18130450-vmss000000 kernel: [498058.497065] calico-packet: IN=azve56f4c00502 OUT=azva623c2d61aa MAC=aa:aa:aa:aa:aa:aa:6a:73:f2:79:14:75:08:00 SRC=<IP_ADDRESS> DST=<IP_ADDRESS> LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=35709 DF PROTO=TCP SPT=36200 DPT=2020 WINDOW=64240 RES=0x00 SYN URGP=0 ?app?host-tailer?container_image?Lrepo-aks.qa.example.net/example/linux/exm/exm/vendor/fluent/fluent-bit:2.1.8?clustername?aks1kexm1?datacenter?eastus2?env?nonprod?family?logging?mnemonic?exm?hostname?"aks-prometheus-18130450-vmss000000?namespace?logging?pod_id?$2461060d-4eb9-41ec-8fe2-eefcf4bad090?pod_name?filetail-host-tailer-phq7s?service?syslog/ $

I haven't checked receiving side but I doubt anything is send

@liz-86 can you add some details to this? do you see this error with the latest image versions as well?

Yes, we tested our configuration (much the same as the above mentioned but with tcp transport and not tls) with the latest fluentd image (kube-logging/fluentd-images:v1.16-full).
Our ClusterOutput:
apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterOutput
metadata:
  name: syslog
  namespace: logging
spec:
  syslog:
    buffer:
      flush_thread_count: 16
      timekey: 1m
      timekey_use_utc: true
      timekey_wait: 30s
    format:
      type: json
    host: syslog.example.net
    insecure: true
    port: 5056
    transport: tcp

The created fluentd.conf is the following (from k8s secret loggging-operator-logging-fluentd-app):
  <match **>
    @type syslog_rfc5424
    @id clusterflow:logging:syslog-flow:clusteroutput:logging:syslog-output
    host syslog.example.net
    insecure true
    port 5056
    transport tcp
    <buffer tag,time>
      @type file
      chunk_limit_size 8MB
      flush_thread_count 16
      path /buffers/clusterflow:logging:syslog-flow:clusteroutput:logging:syslog-output.*.buffer
      retry_forever true
      timekey 1m
      timekey_use_utc true
      timekey_wait 30s
    </buffer>
    <format>
      @type json
    </format>
  </match>

It seems I totally misunderstood the issue originally. I've looked at it once again and it seems that the ruby3 upgrade broke the syslog plugin because if the deprecation and removal of https://blog.saeloun.com/2019/10/07/ruby-2-7-keyword-arguments-redesign/
I've made a change here: https://github.com/pepov/fluent-plugin-syslog_rfc5424/commit/6404b617bc8d5ddd9cf4628cb601cf9b4718e7fb
Then applied on my fork of the fluentd image here: https://github.com/kube-logging/fluentd-images/compare/main...pepov:fluentd-images:main
I didn't have the time to test it with a syslog receiver, could you please give it a try with ghcr.io/pepov/fluentd:v1.16-full?

Thanks for looking into the issue. I can confirm that with the new image there are no more errors in the fluentd. I need to talk to another team to see if there are getting the desired logs. But it looks good at the moment.
Thanks again!

thx for the confirmation, I'm making the PRs to have the fix released asap

The images have been updated with the fix with the 148th build:
v1.16-full-build.148
v1.16-full
For logging operator 4.8:
v1.16-4.8-full-build.148
v1.16-4.8-full


crash after unlock

Hyprland Version
93fea890433ec11d7a915f5e0466b2e8b513e895
Bug or Regression?
Bug
Description
Touched keyboard to reactivate dpms and try to unlock session, hyprland just crashed.
How to reproduce
Just happens randomly on screen lock when attempting to resume.
Crash reports, logs, images, videos
hyprland-crash.txt

asan maybe? idk looks sus

hyprlandCrashReport3463.txt
I don't think this has anything helpful but might as well share. These kinds of crashes just happen randomly so I'd have to run an asan build for a while. I'll see what I can do.

I also have found resuming from a suspend to rarely result in a crash. I am having other issues running an ASan build for long enough for this to occur, so after I resolve those issues, I'll get around to using an ASan build until I trigger it again.

I'm encountering something similar. Out of interest, do you have Discord running? I'm seeing it crash after hyprland. That might mean it's just crashing because its XWayland vanished or it might conceivably cause the crash somehow.
hyprlandCrashReport2471.txt


v0.6.0 release does not work on Ubuntu 18.04

The overlaybd-tcmu service will not start on 18.04. My guess is because release v0.6.0 was compiled on 20.04+? The workaround is to install the missing shared libraries,
 apt install libaio1 libnl-3-dev libnl-genl-3-dev

Just for context, we are working on adding support in AKS. The default node image in AKS is Ubuntu 18.04.

this deb package is compiled on ubuntu 18.04 using https://github.com/containerd/overlaybd/blob/main/.github/workflows/dev-release.yml.
Shared libraries thar overlaybd depends have to be install on the runtime environment, but the dev package is not necessary.
So just apt install libaio1 libnl-3 libnl-genl-3 is ok.

@liulanzheng I see, can you add those deps to the .deb definition so that the package manager can install those dependencies?

@liulanzheng it doesn't look like libnl-3 and libnl-genl-3 exist?

@juliusl  there names under ubuntu 18.04 are libnl-3-200 and libnl-genl-3-200. I don't known what 200 means...

@juliusl  now the CPACK was configured to generate dependences automatically, please try the latest development package.

@liulanzheng Thanks, tested and seems to be working.


Update buildroot to 2021.11

Includes unbound 1.13.2

Superseded by https://github.com/klutchell/unbound-docker/pull/26


add enable_prometheus flag

Prometheus metrics seem to be leaking memory. For this reason, it would be nice to be able to disable the metrics. I have added a configuration option to disable prometheus. The option defaults to enabled to keep current functionality.
The graph below shows the eventrouter pod's memory used (in megabytes) over a month of time. Each drop off correlates to a deploy of the service. The most recent deploy was that of the build of this PR with prometheus metrics disabled.

I imagine the high cardinality would be due to either the involved_object_name or reason prometheus counter labels. I do not have data to back this up.
@timothysc opinions on disabling prometheus vs. reducing metric label count?

I'm pretty new to supporting this project so I don't have a lot of context.
This seems fine to me, but just wrapping my head around it: the prometheus metrics were just extra functionality in addition to the core event routing, right? There is no reason you need the prometheus metrics?
Ideally we'd just find and fix the cause of the memory leak but if this solves a current problem then I don't see a problem with it.
If you could rebase onto master I'm happy to merge if you can answer my questions ^.

@johnSchnake Correct. Event router logs events to a sink (in the default case this is glog). Prometheus metrics are an add on that are not necessary. The underlying issue is probably metric cardinality, but the fix for that would probably be a breaking change. This is a non-breaking change that eliminates the memory leak.
I will rebase and push.


Run single fearute

Hi, first nice work!.
My doubt is I want to run a folder inside integration called ProjectName for example, do a command like cypress run --folder ./cypress/integration/ProjectName and will be executed all .feature files. Or something like setup a tag like --tag @ProjectName
The ida is use the same project to several applications to reuse the code.
Thanks!!

Hello @dimaslz
Thanks!
Not sure if this is related to this particular plugin.
have you tried  ./node_modules/.bin/cypress run -s ./cypress/integration/ProjectName/*.feature ?
I just did and it worked for me, so I'm closing this for now.
If you meant something else please kindly comment again here and I will reopen the issue. :)


ncm2 with golang not compelete cross package

:echo has("python3") print 1
:echo has("nvim-0.2.2") print 1
set rtp+=~/.config/dot/vi/
call plug#begin('~/.config/dot/vi/plugged/')
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'
Plug 'ncm2/ncm2-path'
Plug 'ncm2/ncm2-go'
Plug 'ncm2/ncm2-bufword'
call plug#end()
the ncm2 configure is setted as sugggested by Main Page.
complete works well with the same file, but it doesn't work well accross package.

Duplicated https://github.com/ncm2/ncm2-go/issues/2


ARfoundation with MediaPipeUnityPlugin

Plugin Version or Commit ID
v0.8.2
Unity Version
2020.3.19f
Your Host OS
Windows 11
Target Platform
Android
Description
Hi, how can i make the plugin work with ARfoundation ?
Code to Reproduce the issue
No response
Additional Context
No response

See https://github.com/homuler/MediaPipeUnityPlugin/issues/343 and https://github.com/homuler/MediaPipeUnityPlugin/wiki/API-Overview#imageframe.

@homuler  ok thank you i'll chech


visual editor for slicing up textures

Summary
Please make a visual editor for slicing up pixmaps like in unity.
Analysis
pros
-makes creating sprite atlas quicker and easier
-more visual
cons
-requires more code making duality bigger
Attachments

We actually already have one - if you right click on a pixmap and select 'Slice Pixmap' you will open the 'Pixmap Slicer' window. You can manually specify sprite rects, resize rects with the mouse, slice with a grid, and automatically slice the pixmap by opacity.

Awesome thanks


Added PartiQL NodeJS example

Description of changes:

Added batchExecuteStatement with PartiQL NodeJS example.
Added reference to examples on ReadMe.
Rectified some broken links on ReadMe.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

How can this be rewritten to now have that as possible?

Sure @NoSQLKnowHow I will put up a sample for the same with SQL injection and the one to restrict SQL injection.


Write post RE remote-ac-controller

Write a blog post about your https://github.com/prplecake/remote-ac-controller and https://github.com/prplecake/IRreceiver projects.

See JRGNSNNET-22


how to save checkpoint at the end of some minibatch during training

It is easy to save checkpoint at each epoch callback by define parameter epoch_end_callback.
But how to save checkpoint at the end of some minibatch during training instead of saving ckpt at the end of each epoch.

try save checkpoints inbatch_end_callback

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Add support for HTTP Cookies

Tell us about the task you want to perform and are unable to do so because the feature is not available
I want to make a request to an endpoint that has a cookie session e.g.
curl --cookie "session_token=abcd" www.example.com/secured

Describe the solution/feature you'd like us to add
Add an option to allow for cookies / persistent http client
Any other feedback you would like to provide regarding the site

Thanks for opening this issue @kylelmh
Tagged it as a good first issue so that contributors can take a look into it and send across a PR

I would like to work on it.

I'm new to beginner to open source contributions, @ashitaprasad Can you guide me by defining my tasks and ways to achieve them?

Thanks in advance

Sure @GeorgeLifinRell .. you can send across a PR with your preliminary design of this feature.


How this js be work on Gcode.

Hi,I use this model to connect the MKS GEN with marlin.
And all npm install  success.
But  I don't know  how did I  work gcode if  I  put a gcode file in folder.

Sorry,my English not very well.
I don't know how to upload code by POST.
Could you write any Example on README or anwser example here.


makes menu sticky 🥁

What is it?

[ 🥁] Feature / enhancement
[ ] Bug
[ ] Docs / tests

Description
Makes top menu sticky so you can see cool blurry saturated colors underneath
Actual code changes

removed poppins font as it isn't in the project
removed height from body (not needed)
made menu always sticky and tweaked filter

Use cases and why
Because it looks nice

Checklist:

[ 🥁] My code follows the developer guidelines of this project
[🥁 ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

yes, might need to run the pnpm fmt command, to run prettier

I'm going to delete this PR and try and get my local dev env. working properly then make a new PR


Refinement of polymorphic type does not work

Refining a type which has a polymorphic subtype doesn't seem to work properly.
Here's the code:
export type InnerTypeA = {
  type: "A",
};

export type InnerTypeB = {
  type: "B",
};

export type InnerType = InnerTypeA | InnerTypeB;

type OuterType<T: InnerType> = {
  inner: T,
};

export type OuterTypeA = OuterType<InnerTypeA>;
export type OuterTypeB = OuterType<InnerTypeB>;

function test(a: OuterTypeB) {}
function test2<T>(a: OuterType<T>) {}

function b<T: InnerType>(a: OuterType<T>) {
  if (a.inner.type === "B") {
    // Doesn't work:
    test(a);

    // Works, which means the inner refinement is still there
    // test({inner: a.inner});

    // Works, which means the outer refinement is also there?
    // test2(a);
  }
}

b({inner:{type:"B"}})

Online Flow-try.
This doesn't seem to be expected "pessimistic refinement" behaviour, since no other function calls happen between the guard and the type check.

i guess refining a.inner doesn't refine a. afaik type refinements right now can only handle (tagged) unions and maybe types, but i'm not really familiar with the internals.


Basic Notebooks Fail When Running with Docker on MacOS

I'm running the dockerized version of lgo on MacOS 10.13.3. I've successfully launched the docker container and logged into the jupyter notebook server. However, when I try to run a cell in  the basics.ipynb notebook, I get the following error:
# /tmp/go-build175073157/libgithub.com-yunabe-lgo-sess7b2274696d65223a313532323737353439343231353335333930307d-exec1.so
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
collect2: fatal error: ld terminated with signal 4 [Illegal instruction]
compilation terminated.

Failed to build a shared library of github.com/yunabe/lgo/sess7b2274696d65223a313532323737353439343231353335333930307d/exec1: exit status 2

I'm closing this issue because there is no update. Feel free to reopen it if you still have the problem.


Mismatch Between Prompt Format and Expected Choices in LogiQA Dataset

In the file lm_eval/tasks/logiqa/utils_logiqa.py and lm_eval/tasks/logiqa/logiqa.yaml, there seems to be a mismatch between the expected choices for the LogiQA dataset and the format of the prompt presented to the language model.

Prompt Format: The prompt, however, is structured with options labeled as "A.", "B.", "C.", and "D.".
Expected Choices: The code defines the possible choices as [0, 1, 2, 3].

The Llama 3B model performs significantly better when choices align with the prompt format, using letters ["A", "B", "C", "D"] instead of numbers.
Using four RTX A6000 GPUs, the results are as follows.

Choices
Llama-3-8B Acc(%)
Llama-3-8B-Instruct Acc(%)

["0", "1", "2", "3"]
27.50
27.65

["A", "B", "C", "D"]
39.78
41.32

Possible Solutions:

Option 1: Change the choices to ["A", "B", "C", "D"] in the code.
Option 2: Modify the prompt to present the choices as numbers ("0.", "1.", "2.", "3.").

I Think this issue originates from the original dataset itself: https://github.com/lgw863/LogiQA-dataset/tree/master .
In the original dataset, the labels are written in lowercase letters.
However, in the current lm-evaluation-harness, the labels are not even lowercase letters; they are represented as numbers.
As the paper clarifies, the prompts used are in uppercase letters.
Therefore, I believe that changing the numerical choices to uppercase choices is a more reasonable option than changing the prompts.
So, I will create a pull request to address this issue.
The proposed change will align the expected choices with the prompt format,  Change the choices to ["A", "B", "C", "D"] in the code.
Correcting it should lead to more accurate assessments of language model performance on this task.
Let me know if you'd like any further refinements!

Hi! So the way it's set up now is that choices are indexing the actual choice strings. So the model is prompted with the full string rather than just the letter corresponding to the answer choices, for example:

A.
B.
C.
Answer:
We could add a variant with just the letter continuations. Are you aware if this approach has been used for LogiQA anywhere else recently?

https://github.com/EleutherAI/lm-evaluation-harness/pull/1888

@baberabb
Well.. The issue I've identified is that the current task setup uses 0, 1, 2, 3 as labels, which means the model is considering the logits of the tokens corresponding to 0, 1, 2, 3 as its answers. I believe this is an implementation error and that, like other tasks (e.g., MMLU), the labels should be handled as letters "A", "B", "C", "D".


Flutter desktop implementation

Is it possible to implement flutter_image_compress plugin in Flutter desktop (macOS)?

One year has passed, and macOS is not yet supported?
偷懒的龙哥
@CaiJingLong


Support this library for Ionic 5 and MSAL

I've used this library with Angular 9 and I was really pleased with it. Now I have to implement MSAL in Ionic app, I looked for many solutions but none of them are working correctly. I would very much appreciate it if I can use this library in Ionic as well.

I think you'll have to rely on external documentation, see if people have written tutorials on it, etc. The library just tries to support the OIDC/OAuth2 standards, does not really have a big enough community to do full integration guides...

MSAL is the library developed by Microsoft, why don't you take it? They have angular wrapper as well


Bower?

Would you mind creating a bower package for this lib?

I don't know. I've never used bower. Let me look at what it takes.

It's really simple, just create a bower.json file and publish the package. I'd have done it myself but I think it's better for the repo owner to register it.

Ok. I can do it. I would like to figure out the other issue with the build fist.

Ok

Actually if you want you can make a PR with the bower package info. I can then publish it from my end. I don't have bower installed, but that would surely be easy. If you don't want to do a PR I'll still make the package, but you'll have to wait a little longer.

Just need to create a bower.json file like so:
{
  "name": "dom-autoscroller",
  "version": "0.0.1",
  "description": "Scroll dom elements",
  "main": "dist/dom-autoscroller.js",
  "keywords": [
    "scroll", "scroller", "autoscroll"
  ],
  "authors": [
    "Quentin Engles"
  ],
  "license": "MIT",
  "homepage": "https://github.com/hollowdoor/dom_autoscroller",
  "ignore": [
    ".jshintignore",
    ".gitignore",
    "README.md"
  ]
}

Put it in the root of the repo and then follow the steps here https://bower.io/docs/creating-packages/#register

It's published.