setting the delivery mode when republishing to the DLQ

At the moment there is no way to configure the delivery_mode option used by RepublishMessageRecoverer: it is always set to delivery_mode: 1 (not persistent), even if the original message is published with delivery_mode: 2 (persistent).
I think avoiding copying the original options has been introduced since Spring AMQP 1.6, as stated in the reference documentation:

Also starting with version 1.6, the inbound deliveryMode property is no longer mapped to MessageProperties.deliveryMode, it is mapped to MessageProperties.receivedDeliveryMode instead.

But anyways would be nice to have the possibility to configure it.
Furthermore the default deliveryMode for normal pubs (http://docs.spring.io/spring-cloud-stream/docs/current/reference/htmlsingle/#_rabbit_producer_properties) is PERSISTENT, so it would be anyways more correct to publish the messages keeping that default option.
This is the config I am using:
spring:
  cloud:
    stream:
      bindings:
        input:
          binder: rabbit
          destination: dest
          group: gname
      rabbit:
        bindings:
          dest:
            consumer:
              autoBindDlq: true
              durableSubscription: true
              requeueRejected: false
              republishToDlq: true
            producer:
              deliveryMode: persistent

ref: http://stackoverflow.com/questions/42769341/spring-cloud-stream-rabbitmq-messages-published-with-delivery-mode-1-when-repub/42769851

@sabbyanandan - this is a valid feature request - allow setting of the delivery mode on the republished message, but it will need a change to Spring AMQP to support it.

Actually it doesn't need a Spring AMQP change.


Is there a place for users to share their downloaded courses?

The whole downloaded file to be put would be hectic! Instead, can upload json files so that the user can download it (low in size around 10-30MB) and render it through udacimak! If that helps, i can start a repository with all json files!


[Bug] Cuda Error library ,TVM  Compilation

🐛 Bug

javac error but java paths has been set properly
To Reproduce
Steps to reproduce the behavior:
1../preparelib.sh
Make Warning at mlc-llm/CMakeLists.txt:104 (message):
Cannot find libflash_attn.  The model must not have been built with
--use-flash-attn-mqa option.
getting below error
-- TVM_HOME: mlc-llm/android/library/../../3rdparty/tvm
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY
JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindJNI.cmake:382 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:19 (find_package)
Expected behavior
build done
Environment

Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA):CUDA

Operating system (e.g. Ubuntu/Windows/MacOS/...):UBUNTU.22

Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...)Android

How you installed MLC-LLM (conda, source):conda

How you installed TVM-Unity (pip, source):source

Python version (e.g. 3.10):3.10

GPU driver version (if applicable):

CUDA/cuDNN version (if applicable):12

TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models):python3 -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))"
Traceback (most recent call last):
File "", line 1, in
File "/home/mbulab5001-linux/.local/lib/python3.10/site-packages/tvm/init.py", line 26, in
from ._ffi.base import TVMError, version, _RUNTIME_ONLY
File "/home/mbulab5001-linux/.local/lib/python3.10/site-packages/tvm/_ffi/init.py", line 28, in
from .base import register_error
File "/home/mbulab5001-linux/.local/lib/python3.10/site-packages/tvm/_ffi/base.py", line 78, in
_LIB, _LIB_NAME = _load_lib()
File "/home/mbulab5001-linux/.local/lib/python3.10/site-packages/tvm/_ffi/base.py", line 64, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)

Any other relevant information:

Additional context
/prepare_libs.sh

rustup target add aarch64-linux-android
info: component 'rust-std' for target 'aarch64-linux-android' is up to date
mkdir -p build/model_lib
python3 prepare_model_lib.py
Creating lib from ['/home/mbulab5001-linux/Documents/Vinay/mlc-llm/dist/Llama-2-7b-chat-hf-q4f16_1/Llama-2-7b-chat-hf-q4f16_1-android.tar']..
cd build
touch config.cmake
'[' /home/mbulab5001-linux/Documents/Vinay/mlc-llm/3rdparty/tvm/ -ne 0 ']'
./prepare_libs.sh: line 12: [: /home/mbulab5001-linux/Documents/Vinay/mlc-llm/3rdparty/tvm/: integer expression expected
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/mbulab5001-linux/Android/Sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DCMAKE_INSTALL_PREFIX=. -DCMAKE_CXX_FLAGS=-O3 -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=android-24 -DANDROID_PLATFORM=android-24 -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON -DANDROID_STL=c++_static -DUSE_HEXAGON_SDK=OFF -DMLC_LLM_INSTALL_STATIC_LIB=ON -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DUSE_OPENCL=ON -DUSE_CUSTOM_LOGGING=ON
-- Hide private symbols
-- TVM_HOME: 3rdparty/tvm
-- Hide private symbols...
-- Forbidding undefined symbols in shared library, using -Wl,--no-undefined on platform Android
-- Building for Android
-- Didn't find the path to CCACHE, disabling ccache
-- VTA build with VTA_HW_PATH=/home/mbulab5001-linux/Documents/Vinay/mlc-llm/3rdparty/tvm/3rdparty/vta-hw
-- Build VTA runtime with target: sim
-- Enabled runtime search for OpenCL library location
-- Couldn't build OpenCL-Gtests
-- Android Vulkan_INCLUDE_DIRS=/home/mbulab5001-linux/Android/Sdk/ndk/25.2.9519653/sources/third_party/vulkan/src/include
-- Skip finding SPIRV in Android, make sure you only build tvm runtime.
-- Build with contrib.random
-- Build with contrib.sort
-- Build with contrib.hybriddump
-- Git found: /usr/bin/git
-- Found TVM_GIT_COMMIT_HASH=5aa839378d4457e528eb8fce2ab1a0295007d9d1
-- Found TVM_GIT_COMMIT_TIME=2023-12-17 12:23:50 -0800
-- Building with TVM Map...
-- Build with thread support...
-- CLANG_VERSION 14.0
-- Setting enhanced clang warning flags
-- Added "-fuse-ld=lld" to linker flags -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments
-- Build without FlashInfer
-- system-nameAndroid
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- VERSION: 0.2.00
CMake Warning at /home/mbulab5001-linux/Documents/Vinay/mlc-llm/CMakeLists.txt:104 (message):
Cannot find libflash_attn.  The model must not have been built with
--use-flash-attn-mqa option.

For me, setting it the CMakeList.txt, helped to find JNI
JAVA_AWT_LIBRARY      = the path to the jawt library
JAVA_JVM_LIBRARY      = the path to the jvm library
JAVA_INCLUDE_PATH     = the include path to jni.h
JAVA_INCLUDE_PATH2    = the include path to jni_md.h
JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
e.g.
set(JAVA_AWT_LIBRARY "C:/Program Files/Microsoft/jdk-<IP_ADDRESS>-hotspot/include/win32")
set(JAVA_JVM_LIBRARY "C:/Program Files/Microsoft/jdk-<IP_ADDRESS>-hotspot/include/win32")
set(JAVA_INCLUDE_PATH2 "C:/Program Files/Microsoft/jdk-<IP_ADDRESS>-hotspot/include")
set(JAVA_INCLUDE_PATH2 "C:/Program Files/Microsoft/jdk-<IP_ADDRESS>-hotspot/include/win32")
set(JAVA_AWT_INCLUDE_PATH "C:/Program Files/Microsoft/jdk-<IP_ADDRESS>-hotspot/include")

I faced the same problem, but I solved it.
Please run
conda install cmake

If not, please follow the order below.
sudo apt-get install -y openjdk-8-jdk
sudo apt-get install -y default-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
conda install cmake


public_ip_v4_address, and public_ip_v6_address should use reserved

For IPv4 there is <IP_ADDRESS>/24, and <IP_ADDRESS>/24, and for IPv6 there is 2001:db8::/32 specifically reserved for documentation, testing, and examples.

@envygeeks Could you provide more details about this issue please?

I'm closing this issue for now. Let me know if you'd like to reopen it in the future. Thanks 👍


Problems with Travis + Prisma ^1.7.x

Bug Report / (potentially just help needed)
tl;dr

Use Travis
docker compose up -d
prisma deploy

Travis is unable to find local cluster. (You're not logged in and cluster local could not be found locally. Trying to authenticate. on prisma deploy)
Started occurring when updating from prisma 1.6.3 to 1.7.1 (before that a docker config file wasn't needed, so seems like some changes have been made there)
Reproduction

Link to travis output: https://travis-ci.org/KATT/shop/builds/378963929?utm_source=github_status&utm_medium=notification
Link to PR with failing prisma upgrade + failing build: https://github.com/KATT/shop/pull/93

Travis output
[..]

$ docker-compose -f api/database/docker-compose.yml up -d
Creating network "database_default" with the default driver
Creating volume "database_postgres" with default driver
Pulling prisma (prismagraphql/prisma:1.8)...
1.8: Pulling from prismagraphql/prisma
Digest: sha256:922a533d68d23c02ab248971e6a076c2840d2a98efff21fcfcc3882254661ec8
Status: Downloaded newer image for prismagraphql/prisma:1.8
Pulling postgres (postgres:latest)...
latest: Pulling from library/postgres
Digest: sha256:23c92d48934b254c007c08812638acfd849fe1c179a34b63c752a62100c6524d
Status: Downloaded newer image for postgres:latest
Creating database_prisma_1 ...
Creating database_postgres_1 ...
Creating database_postgres_1
Creating database_prisma_1
$ cd api && yarn prisma deploy
yarn run v1.3.2
$ /home/travis/build/[secure]/shop/api/node_modules/.bin/prisma deploy
You're not logged in and cluster local could not be found locally. Trying to authenticate.
Authenticating...
Opening https://app.prisma.io/cli-auth?secret=$2a$08$TWT3BgS415eJCPuWQsGZmO in the browser

Is there something I'm missing in the docker-compose or in the prisma deploy-command to find the local cluster?
As it worked with Prisma on 1.6.x I don't think it's a problem with Travis.

I'm pretty sure you're running into #2310, which has been fixed in the latest version.

Thanks for the answer @SpaceK33z. I suspect that as well, but I'm using 1.8.3 which is the latest published on npm. Or do I need to update the image in the docker config or something?

You need to update both the CLI and the Docker image 🙂

Will do later / tmrw!

I set the docker image to explicit 1.8.3 but it didn't seem to make any difference

217.26s$ cd api && yarn prisma deploy
yarn run v1.3.2
$ /home/travis/build/[secure]/shop/api/node_modules/.bin/prisma deploy
You're not logged in and cluster local could not be found locally. Trying to authenticate.
Authenticating...
Opening https://app.prisma.io/cli-auth?secret=$2a$08$Z3iQ99b4/NhdZ89nEHVZFO in the browser
Authenticating... !
ERROR: GraphQL Error (Code: 502)

@KATT - I was able to get this to working by using the following configuration:-
Config file used
Passing build with Prisma deploy
It would be awesome if you convert this example to a new Prisma example in a PR

@KATT : I think you also need to update your prisma.yml to deploy to localhost. The login step is what block you from running it on travis and login should not be asked for when deploying locally.

Added endpoint: in the prisma.yml
https://github.com/KATT/shop/pull/93/commits/558d61af46fe97f0d54b7e6ff964c42635e8c798

🎉
Whoop whoop @divyenduz -- adding endpoint: seemed to have done the trick. It goes past that stage now. It breaks later but whatever is happening it's not because of this issue anymore! I'll do an update when I have a neat setup. 🎉
Thank you for your help @divyenduz and @marktani !

I put together a minimal example for a Travis setup here: https://github.com/prismagraphql/prisma/tree/master/examples/travis 🙂

@divyenduz hey man, from your config files and job log, it looks like you are spinning up fresh set of docker processes. And then seeding them with data.
What about in a CD environment? Wouldn't you just keep one mysql instance and one prisma instance and continuously deploy new schema to existing instance?
Has your team come across this?

@roycclu : Based on your environment/use-case you can modify your docker-compose.yml to make prisma talk to an ever running mysql backend via environment variables or by hard-coding. Does that make sense? Happy to help.

@divyenduz thanks man.
It seems docker-compose is more useful for local environments. Using volume should persist data.
And in a CI/CD environment, would you say it's better to set up the initial prisma service manually and then run a "prisma deploy" script, in CI migration stage, after the node server is built and deployed?
Basically I'm deciding between setting up and running a new prisma server every git push. Or continuously deploy to an initial manually set up prisma server. How are you guys managing this?


Do no install repo on Raspberry Pi OS

This PR makes sure the repo is no added when running on Raspberry Pi OS.
Additionally, the key is not added if it's not needed.
This PR fixes #118825

@Tyriar Oh just missed your comment. Can you look at the changes once again, since there's a commit from me on top?

Will hold off on firing a build, pending on the CLA signing.

@joaomoreno change looks good, the >/mv thing is equivalent I believe

Signed

Thanks! 🍻


Adding plugins

Can i install plugins in docker img?

Of course!
Just make a (slightly) custom image:
FROM docker.elastic.co/logstash/logstash:5.2.2
RUN logstash-plugin install logstash-output-slack


The speed is not ideal

This is my code

output

And that's a good thing

Do not use print, you got lag, use timeit :)
import timeit

res = timeit.repeat(lambda: camera.get_latest_frame(), repeat=10, number=1)
print(res)

@lucasmonstro My fps is 16, Too slow. I have used your bench code.

@vipcxj did you use video_mode?

@lucasmonstro I use the method without any argument. If the video_mode is the default mode, then I use it.

Try this https://github.com/AI-M-BOT/DXcam/releases/tag/1.0


[VS Code] Joining collaboration session: Unable to connect to Live Share cloud relay. Check your proxy, firewall and network settings and try again.

LiveShareLogs.zip

Error:
Joining collaboration session: Unable to connect to Live Share cloud relay. Check your proxy, firewall and network settings and try again.
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.379

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.35.1

platformName
Windows

platformVersion
10.0.17763

dupe #2156


chore: release v0.3.3 (next v0.0.10)

#567  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on  Graphite


Add a Dockerfile?

I think it maybe a good choice to run app.py inside a docker.

Thanks for the helpful suggestion! I will add it when necessary.

solved in request #5.


Add Linux compatibility

Basically what title already says. TQ Vault wont run on Linux and I'm not sure why, but if you could make it run that'd be awesome!

What is the use case ? Titan Quest run exclusively on Windows and consoles ?
If you use Wine to run it on linux, i guess you can do the same with TQVault. Aren't you ?

You can skim through https://github.com/EtienneLamoureux/TQVaultAE/issues/90 and its related ticket for a possible solution to your problem.

I'm trying to run TQVault from Linux (using Wine), in the log there is an error :
ERROR TQVaultAE.GUI.Program [(null)] - Value cannot be null
I've changed the path using the FAQ.
TQVaultAE_2021.09.24.txt

Do you have at least one character on your wine setup ?

yes I have many characters. I'm still trying to find what's wrong but I didn't manage to find how to fix that.

I'm not familiar with Wine. Is it because program installation inside Wine are sandboxed and a program "A" (TQVault) can't see the file system of a program "B" (Titan Quest) ? (file system isolation)
The error log tells us that TQVaultAE can't see any save file in the file system which is resolved as follow.
C:\Users\{yourname}\Documents\my games\Titan Quest - Immortal Throne\SaveData\Main
C:\Users\{yourname}\Documents\my games\Titan Quest - Immortal Throne\SaveData\User (mod save file)
C:\Users\{yourname}\Documents\my games\Titan Quest\SaveData\Main

OK but what I don't understand is that I've changed the exe.config in order to force the new path.
For information the D disk is corresponding to the path /home/craniumbasher/.local/share/Steam/steamapps/common under Wine.
Maybe I made a mistake in the .config but I don't know where.

OK but what I don't understand is that I've changed the exe.config in order to force the new path.
For information the D disk is corresponding to the path /home/craniumbasher/.local/share/Steam/steamapps/common under Wine.
Maybe I made a mistake in the .config but I don't know where.

Can you share your config file and the path where the installation resides?

many thanks for the support. Here is the exe.config and the last log.
The F: disk is a shortlink and is corresponding to the path :
/home/craniumbasher/.local/share/Steam/steamapps/compatdata/475150/pfx/drive_c/users/steamuser/Documents/My Games/
TQVaultAE_2021.09.26.txt
TQVaultAE.exe.zip

How to port TQVault to Linux
Some projects a not relevant and only 2 are windows bound. The rest can be compiled immediately with .NET on Linux.

These 2 windows project must be rewriten or replaced to accomodate Linux

TQVaultAE.GUI : Winform Graphical interface
TQVaultAE.Services.Win32 : Services that does things like Interop, Registry, Sound System. Yes it's already abstracted.

What can be used for this port (non exhaustive)

For a Desktop UI App port

avaloniaui
platform.uno
GtkSharp
qmlnet
.NET MAUI
Note : Mono should be able to display Winform app (rendered thru Cairo) on X11 (but that's not a port). But TQVaultAE.Services.Win32 should probably be rewritten.

For an "in the browser" web app port (probably the easiest)

.NET Blazor
ASP.NET Core

Question the motivations

Q : Who is using TQ on linux
A : Almost no one
Q : How are they doing it
A : Virtualization like everybody that wanna play Windows games on Linux (essentialy Wine, Steam OS, Proton)
Q : Why do they want a native port
A : They fail to virtualize a .NET Winform App (TQVault) in the same virtual sandbox as the game and quit trying after 10 min.

Solutions

Simplest : No code, the linux gamer already know much about virtualizing windows app on linux.
Writing a "How to" guide on a wiki for success is the best option.
Simplest port : The Mono port (if it deliver at displaying Winform app) then a web port
Hardest port : All other solutions

From a developper standpoint
Unless you want the chalenge of this task for fun or training purpose (which is rewarding at many levels), it's not worth it.
Better find a way to make it work through try and error (and some reading in the internet) in the same virtual sandbox than the game (a lot less work time).

A linux TQ player recently produce a "how to" play TQAE + TQVault on linux.
Maybe it can help this issue.
TQTQV_on_linux.txt


Not work on Lazy setup

Description
Function_definition not show on the first line.

Neovim version
NVIM v0.9.0
Expected behavior
Function_definition shows on the first line.
Actual behavior
Function_definition not show on the first line.
My config
local M = {
  "nvim-treesitter/nvim-treesitter-context",
  event = "VeryLazy",
  commit = "fb445fa2aee9f0dce7257bb6f628795e6e13d6e6",
  dependencies = {"nvim-treesitter/nvim-treesitter"},
}

function M.config()
  local ts_context = require "treesitter-context"
  ts_context.setup{
    enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
    max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
    min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
    line_numbers = true,
    multiline_threshold = 20, -- Maximum number of lines to collapse for a single context line
    trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
    mode = 'cursor',  -- Line used to calculate context. Choices: 'cursor', 'topline'
    -- Separator between context and content. Should be a single character string, like '-'.
    -- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
    separator = nil,
    zindex = 20, -- The Z-index of the context window
  }
end

return M

I can see for Lazy that the nvim-treesitter-context already loaded, and TSContextEnable can execute success.

Sorry, there's not enough information here to offer any guidance. And nothing indicates there is a bug with the plugin.

I fixed it but adding treesitter cpp.
Enabling nvim-treesitter-context will cause the following warning:
vim.treesitter.query.get_node_text() is deprecated, use vim.treesitter.get_node_text() instead

Hope this can be fixed.


Issue with custom filter

Sorry I posted by accident (before writing the details)
Hello, I'm trying to create a custom filter as in ``. But I get an exception in the mvc-grid.js. (line 16 attr is undefind).
I think it has something to do with a JQuery version, I tested using 3.3.1 and 3.4.1 but the problem is identical.

Update to the latest version fixed our issues.


Implement custom uvs for Static Lightmap imported gltf

Remembers the custom format before lightmap unwrapping, so the custom data can be added with the correct format.
Fixes #68150
cc @fire

We tested in a discord call and we demos it working even when the lightmaps are enabled.

Thanks!


Loss of accuracy of some tests

The last update reveals a loss of accuracy in some transformations.
I had to change the following test tolerance to 1e-4 from 1e-6.
https://github.com/JuliaSpaceMissionDesign/FrameTransformations.jl/blob/8a6f46a93864eee79fbd2d6e0f8fc3620409ed30/test/Orient/moon.jl#L60
https://github.com/JuliaSpaceMissionDesign/FrameTransformations.jl/blob/8a6f46a93864eee79fbd2d6e0f8fc3620409ed30/test/Orient/moon.jl#L67
The reason should be investigated.
Maybe due to the change from Calceph to Ephemerides in the tests?

Some tests are also failing in the axes and points testsets when using Ephemerides.jl instead of Calceph, however this happens sporadically.

Outdated.


github uses actions/cache@v2

https://github.com/actions/cache/blob/main/examples.md#rust---cargo
but the cache in windows still cannot work,  seems https://github.com/actions/toolkit/pull/670 could fix it, need to wait github to bump a new version to include this fix

Thanks for this PR! Does the actions/cache@v1 work in Windows, or is it newly broken in v2?

Thanks for this PR! Does the actions/cache@v1 work in Windows, or is it newly broken in v2?

actions/cache@v1  is broken in Windows
from the output of the last action job, https://github.com/casey/just/runs/1546397193?check_suite_focus=true,
Post job cleanup.
"C:\Program Files\Git\usr\bin\tar.exe" -cz -f D:\a\_temp\d43ac80a-b321-468c-9777-c01c94d9a40b\cache.tgz -C C:\Users\runneradmin\.cargo\registry
~\.cargo\git
target .
/usr/bin/tar: ~.cargogit: Cannot stat: No such file or directory
/usr/bin/tar: target: Cannot stat: No such file or directory
tar (child): Cannot connect to D: resolve failed
/usr/bin/tar: D\:\\a\\_temp\\d43ac80a-b321-468c-9777-c01c94d9a40b\\cache.tgz: Cannot write: Broken pipe
/usr/bin/tar: Child returned status 128
/usr/bin/tar: Error is not recoverable: exiting now

it uses actions/cache@v1 , and resolve ~.cargo\git to ~.cargogit, looks like it cannot handle \ in windows. i guess it is using linux (wsl or mingw) version of tar

actions/cache@v1  is broken in Windows
from the output of the last action job, https://github.com/casey/just/runs/1546397193?check_suite_focus=true,
Post job cleanup.
"C:\Program Files\Git\usr\bin\tar.exe" -cz -f D:\a\_temp\d43ac80a-b321-468c-9777-c01c94d9a40b\cache.tgz -C C:\Users\runneradmin\.cargo\registry
~\.cargo\git
target .
/usr/bin/tar: ~.cargogit: Cannot stat: No such file or directory
/usr/bin/tar: target: Cannot stat: No such file or directory
tar (child): Cannot connect to D: resolve failed
/usr/bin/tar: D\:\\a\\_temp\\d43ac80a-b321-468c-9777-c01c94d9a40b\\cache.tgz: Cannot write: Broken pipe
/usr/bin/tar: Child returned status 128
/usr/bin/tar: Error is not recoverable: exiting now

it uses actions/cache@v1 , and resolve ~.cargo\git to ~.cargogit, looks like it cannot handle \ in windows. i guess it is using linux (wsl or mingw) version of tar

Gotcha, thanks for the explanation. I wasn't even aware that caching was broken on Windows!

Gotcha, thanks for the explanation. I wasn't even aware that caching was broken on Windows!


Initial implementation

Adds initial implementation for provider-kubernetes.
Provider Kubernetes enables deployment and management of arbitrary Kubernetes objects on Kubernetes clusters typically provisioned by Crossplane. In other words, it is similar to provider-helm but for Kubernetes resources rather than helm packages.
For example, the following Object resource would create a namespace on the Kubernetes cluster configured with providerConfigRef.
apiVersion: kubernetes.crossplane.io/v1alpha1
kind: Object
metadata:
  name: team-a-namespace
spec:
  forProvider:
    manifest:
      apiVersion: v1
      kind: Namespace
      metadata:
        # name in manifest is optional and defaults to Object name
        # name: some-other-name
        labels:
          example: "true"
  providerConfigRef:
    name: kubernetes-provider

This is awesome @turkenh! All comments are minor :)

thanks @hasheddan, your comments should be resolved now.

Just a general comment regarding the naming: Object. Would it be better if we change it to something else such as Managed or Managable. The reason is that, Object is too generic, where in this case, the object is essentially a wrapper or a representation of the raw Kubernetes resource as a managed resource in the Crossplane world. :-)

Thanks for your suggestion @morningspace!
I am not a 100% sure regarding Object either. However, I still believe it represents best what is manages, i.e. Kubernetes objects. Managed (or Managable) would also be too generic and also confusing in Crossplane world since it represents a category (kubectl get managed returns all crossplane managed resources).
Another alternative that I considered was Resource since we usually mention them as arbitrary Kubernetes resources, however, check through Kubernetes documentation I noticed Object better represents what we are referring here:
See object vs resource.
P.S.: Full API representation becomes objects.kubernetes.crossplane.io

Just a general comment regarding the naming: Object. Would it be better if we change it to something else such as Managed or Managable. The reason is that, Object is too generic, where in this case, the object is essentially a wrapper or a representation of the raw Kubernetes resource as a managed resource in the Crossplane world. :-)

Thanks for your suggestion @morningspace!
I am not a 100% sure regarding Object either. However, I still believe it represents best what is manages, i.e. Kubernetes objects. Managed (or Managable) would also be too generic and also confusing in Crossplane world since it represents a category (kubectl get managed returns all crossplane managed resources).
Another alternative that I considered was Resource since we usually mention them as arbitrary Kubernetes resources, however, checking through Kubernetes documentation I noticed Object better represents what we are referring here:
See object vs resource.
P.S.: Full API representation becomes objects.kubernetes.crossplane.io

Understood. Thanks for clarification. Naming is always a tricky work :-)


Fix: initialize batch norm in YOLOX

Initialize nn.BatchNorm2d with the same parameters as the original repo
Add class aware NMS (torchvision.ops.batched_nms) to match benchmarking config of original repo
Update tests with new groundtruths
Remove empty detect_ids list behavior, made redundant by this update

LGTM


INSTALL.rst specifies a --with-freertos=PATH. Option, when no option exists.

When compiling for FreeRTOS, the path to the FreeRTOS header files must be specified with --with-freertos=PATH.
this option doesn't appear to exist in the waf script? Am I missing something?

hi,
The option listed in INSTALL.rst is wrong. Instead of
--with-freertos=PATH
it should be
--includes=PATH.

Thanks man!


Unable to add event to the calender

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports and didn't find any similar reports.

Expected Behavior
After pressing Save Event, for the event to show up.
Current behaviour
The menu does not disappear for saving the event, and the event does not appear within the calender.
JavaScript console output
Cannot read properties of undefined (reading 'id')
    at eval (plugin:obsidian-full-calendar:63617:53)
    at Generator.next (<anonymous>)
    at eval (plugin:obsidian-full-calendar:78:61)
    at new Promise (<anonymous>)
    at __async (plugin:obsidian-full-calendar:62:10)
    at submit (plugin:obsidian-full-calendar:63616:40)
    at eval (plugin:obsidian-full-calendar:63487:11)
    at Generator.next (<anonymous>)
    at eval (plugin:obsidian-full-calendar:78:61)
    at new Promise (<anonymous>)

Steps to reproduce

Select a time on the calendar
Enter a random name for the event
Press Save Event

Calendar information

iCloud
Using app-specific

Which Operating Systems are you using?

[ ] macOS
[X] Windows
[ ] Linux
[ ] Android
[ ] iOS

Obsidian Version
1.4.14
Full Calendar Plugin Version
0.10.7
Checks

[X] I have tried it with all other plugins disabled and the error still occurs.

Possible solution
No response
Comments
After using a breakpoints, calendars is an empty array. The calendars are within the cache but filtered out, assuming because it isn't readable.

Hi there. Any update on this issue? 😄

Me too on Linux,
I tried in a new vault. Just installed FullCalendar.
Setup calDav Sync. -> Failed.
Then setup a  local calendar. I have the impression that there is no calendar selected for storing the event into.
That could also explain why the box does not close, when you click save.
Restart does not help.
Full Cal Version: 0.10.7
And Current Vers: v1.7.7

Okay. I figured it out, I guess.
Full Calendar does only READ calDav or Apple Calendar. It does not WRITE .
That is why you need to setup a local calendar (Full Note or Daily Note) in order to save events.
Don't miss to click on the SAVE button after creating a calendar in the Settings of Full Calendar.
Then you can also choose a calendar when creating an event. Et voilà - it works.
Can someone please confirm that you can not write to caldav?
It makes me sad, because that was cleary my searched functionality


[BlockSparseArrays] Fix some broken slicing operations

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 44.01%. Comparing base (82cfd76) to head (fa01e4f).
Report is 18 commits behind head on main.

:exclamation: Current head fa01e4f differs from pull request most recent head cb319e6
Please upload reports for the commit cb319e6 to get more accurate results.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

:exclamation:  There is a different number of reports uploaded between BASE (82cfd76) and HEAD (fa01e4f). Click for more details.
HEAD has 2 uploads less than BASE
| Flag | BASE (82cfd76) | HEAD (fa01e4f) |
|------|------|------|
||3|1|

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1506       +/-   ##
===========================================
- Coverage   78.05%   44.01%   -34.04%
===========================================
  Files         148      144        -4
  Lines        9679     9353      -326
===========================================
- Hits         7555     4117     -3438
- Misses       2124     5236     +3112

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Export getTailwindFormat

This package generates a complete Style-Dictionary config, but actually the core functionality is getting the tailwind format.
It would make this package a lot more flexible and easy to use if the getTailwindFormat function was exported, so users can call it themselves and control the rest of their config themselves.

@jorenbroekema
This feature was released in v1.4.0.
Thank you!


mdk: new package

this adds GNU's MDK suite.
a few notes:

I have declared stdenv.lib.platforms.all but have only tested on darwin 10.9 (and it builds and runs fine). I can test on linux tomorrow if you are interested.
I think many more dependencies may be added (guile, gtk, etc). This adds mixasm, mixvm binaries, and a few things to share (such as an emacs module).

thanks. also, this is my first pull request, apologies if this isn't how it is done.

just tested on nixos, works as well.

Looks good. :+1:
Did you test if the emacs stuff works? I don't use emacs, so I'm unable to test. :)

yep, (require mixal-mode) works.

Thanks!


ENH: add ReferenceFeatures[SSU] type

Also made the following changes to support the ReferenceFeatures[SSU] type:

Modified FASTAFormat file format to only accept DNA sequences (it is now called DNAFASTAFormat).

Added pd.DataFrame reader for Taxonomy data layout.

Changed FeatureData[Sequence] data layout pd.Series reader to types.GeneratorType yielding skbio.DNA objects.

Added unit tests for data layout readers and writers.

Pair-programmed with @gregcaporaso.

This all looks good to me, and is working as expected for me, @jairideout and @gregcaporaso. One question related to adding the pd.DataFrame reader to Taxonomy.

Thanks for reviewing @ebolyen and @jakereps! All comments are addressed, this is ready for merge when tests pass.

🙌

Thanks for the reviews!


Subset files tab wrapping into new line

Having many additions / deletions cause the .subset-files-tab to wrap.
With Redefined Github enabled:

With Redefined Github disabled:

Perhaps we can half the space around No Whitespace and/or reduce the font size of the blue label (like GitHub already did in the second screenshot)

Can you post a link to that PR?

Not to that specific PR, but I can try to recreate.
But I haven't seen the No Whitespace button lately, is it gone or what changes are needed for to appear?

@DerTieran you might need to update your extension. I remember some DOM changes by GitHub regarding marketplace link breaking almost all the features of the extension few days ago. That have been fixed lately so see if updating it makes the no whitespace reappear.

@tanmayrajani Oh yea it is back again thanks.
@bfred-it I made a quick script that generates some changes.
See https://github.com/DerTieran/laughing-octo-adventure/pull/1/files/344b3e6f6c96f2074ac265753d021d200a3218b2..46be8e3e7ff93944d666ca13ebb0eea717b0090a
Let me know if you need even more additions/deletions didn't realise I was this close to 10,000 😄

Still looking good on Chrome/macOSX 10.11

Do we have different container width's (for me 980px)?

You're right, I forgot that GitHub is partially flexible. I'm seeing it now.

I'd suggest to drop Changes from on the left:
From

To


Implement cascade delete for Location

When a deleteLocationCommand is executed successfully and a Location is deleted, all visits containing that Location will also be deleted.

Codecov Report

Merging #182 into master will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #182      +/-   ##
============================================
+ Coverage     76.12%   76.22%   +0.10%
- Complexity      872      877       +5
============================================
  Files           119      119
  Lines          2697     2705       +8
  Branches        342      342
============================================
+ Hits           2053     2062       +9
+ Misses          540      539       -1
  Partials        104      104

Impacted Files
Coverage Δ
Complexity Δ

...logic/commands/location/DeleteLocationCommand.java
100.00% <100.00%> (ø)
7.00 <0.00> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
97.08% <100.00%> (+0.05%)
48.00 <1.00> (+1.00)

...ava/seedu/address/model/visit/UniqueVisitList.java
47.72% <100.00%> (+3.82%)
12.00 <2.00> (+2.00)

src/main/java/seedu/address/model/visit/Visit.java
75.86% <100.00%> (+3.44%)
9.00 <1.00> (+1.00)

...main/java/seedu/address/model/visit/VisitBook.java
76.92% <100.00%> (+1.92%)
11.00 <1.00> (+1.00)

Continue to review full report at Codecov.

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


Add LENOVO Yoga 6 13ALC6 82ND

Don't merge it, It's done for me but CONTRIBUTING.md is not implemented yet Ready for Review
Description of changes
Add support for the LENOVO Yoga 6 13ALC6 82ND
Ryzen 7 5700U
Things done

Easy 10 hrs of battery
Enable or disable charging limit by TLP config or manually, echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
Enable hardware video acceleration in Firefox
Use latest kernel to make wifi and other things work

[x] Tested the changes in your own NixOS Configuration
[ ] Tested the changes end-to-end by using your fork of nixos-hardware and
importing it via <nixos-hardware> or Flake input

bors merge


Error when executing Magic Box

When I first run I get this error:
Error occurred when executing SeargeMagicBox:
Error while deserializing header: MetadataIncompleteBuffer
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 269, in process
(data, stage_result) = self.run_stage(stage, data, stage_input)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 248, in run_stage
(data, stage_result) = stage_processor.process(data, stage_input)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\stage_load_checkpoints.py", line 122, in process
base_checkpoint = NodeWrapper.checkpoint_loader.load_checkpoint(base_name)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\nodes.py", line 476, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 416, in load_checkpoint_guess_config
sd = comfy.utils.load_torch_file(ckpt_path)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 13, in load_torch_file
sd = safetensors.torch.load_file(ckpt, device=device.type)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\python_embeded\lib\site-packages\safetensors\torch.py", line 308, in load_file
with safe_open(filename, framework="pt", device=device) as f:
if I run again I get this error:
Error occurred when executing SeargeMagicBox:
'NoneType' object is not subscriptable
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 269, in process
(data, stage_result) = self.run_stage(stage, data, stage_input)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 248, in run_stage
(data, stage_result) = stage_processor.process(data, stage_input)
File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\stage_load_checkpoints.py", line 128, in process
base_model = base_checkpoint[0]
I have tried updating and looking at other fixes but I can't find the problem any help would be appreciated.

Did you install the required models according to the readme or by using the install script?


[CSGN-189] Placeholder for Sell Tab landing page

Addresses https://artsyproduct.atlassian.net/browse/CSGN-189
Adds a proper placeholder screen for the Sell Tab landing page.
Static content remains static, and only the dynamic pieces are grayed out. Here's what it looks like - note the very bottom, where the "Artists collectors are looking to buy" section fills in:

To give a better idea of what that artist list would look like if it were to, say, move up the page some day, here's how that artist section loads when you can see it completely:

There is a slight difference in heights that causes the section below it to jump a couple pixels...I was unable to figure out what was causing that difference. I don't personally think it's a big deal because no one really sees the bottom of the artist section when the full view is loading, but let me know if you feel otherwise.
#trivial

LGTM 🏆


chore(main): release 1.0.4

:robot: I have created a release beep boop
1.0.4 (2022-11-28)
Code Refactoring

重构代码 (47aeb57)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/School-of-Website-Engineering/Rosy-DR-Code-Ling/releases/tag/v1.0.4 :sunflower:


Add support for serialzing objects

Problem

Loading to<->from Protobuf using a dictionary is too hard. It'd be nice to have a way to
Requested feature

Something like
import your.protoclass.here as exp
d = {'a': 'b'}
d_proto = as_proto(cls=exp.SomeClass) # Raise error if this fails
save_to_disk(d_proto)

Alternatives considered

There are existing JSON wrapper functions that Google provides -- look into this more and see if it solves the problem (and/or if wrapper functions like above would help)

Additional context

Another idea: just serialize objects with pkl by default. Basically a quick way to save to disk


Implements for experiment in the paper Swersky et al.

Nice to meet you.
I'm a student of the Department of Computer Science and System Engineering, Kobe University.
I can't write English very well, so please forgive me about grammar's wrong and misunderstand word and so on.
I'll try to use this repository to research about multi-task Bayesian Optimization.
I want to implement logistic-regression experiment written by "Multi-Task Bayesian Optimization (Swersky et al. NIPS 2013)".
But I think that this repository doesn't implement multi-task Gaussian Process.
So I don't know which model uses for this experiment.
Would you like to teach me where implement multi-task Gaussian Process and how to use this?
And I don't know which acquisition function uses correct "information_gain.py" or "information_gain_per_unit_cost.py" each of single-task and multi-task written in this paper.
Would you like to teach me about it too?

Hi,
actually MTBO is implemented in RoBO. Checkout https://github.com/automl/RoBO/blob/master/robo/fmin/mtbo.py
cheers
Aaron

Thank you for reply!
And I want to ask other question.
Is this repository implemented "stochastic gradient descent" ?

No this repository implements Bayesian optimization for black box optimization where no gradient Informationen are available. For implementation of stochastic gradient methods have a look on the Lasagne, Keras or the tensorflow packages

I see.
I'll try to use such a packages.
I want to watch "accuracy" to judge optimizations.
But I think there is no implements "accuracy".
Where is implemented it?
If it isn't implemented yet, could you teach me the abstract of implements it?

I am not sure what you mean with accuracy? The validation accuracy of your machine learning algorithm that you want to optimize?
RoBO returns the best found configuration / function value after each iteration and one can use that to compare it to different optimizers.
Maybe have a look at the following overview paper to get a better understanding how Bayesian optimization works:
https://www.cs.ox.ac.uk/people/nando.defreitas/publications/BayesOptLoop.pdf
cheers
Aaron


Suggestion: Manual check mode

Loving the script, but I notice that some songs that are named very similarly are getting downloaded incorrectly sometimes. For example:
Song intended to download: Cinnamon Chasers - A New World
Song that was downloaded (another one of their songs): Cinnamon Chasers - The World Is Yours
I propose an idea: The script can be started with an option to go into something like a "Manual Mode" that causes it to ask the user at the beginning of each download if the song name it will proceed with downloading is actually correct. If the user replies with (N)o, then the next song in the Youtube list that the script is checking will then be prompted to the user. Upon a (Y)es, the script will proceed as usual, and then prompt on the next song.
This could be useful for getting past those situations where some songs are downloading the ads, or another song by the artist, or even something that is totally unrelated. Does this make sense? I'll clarify if not. Thank you for considering it.

But it beats the purpose of the script: automation. Imagine I have twenty songs in the list. Now just imagine how cumbersome it would be if I have to wait for each song to download so that I have to type yes for next song. This is really a trouble for those who have slow internet connection.

By reading your comment, I believe you might be missing the main point. This is an optional mode that you can be asked when starting the script (or an argument in a shortcut perhaps) that gives you the choice to go automatic as usual, or be manually offered to verify each song.
This would be incredibly useful for example when you have already tried automatic mode, but some songs stubbornly download incorrectly, run it again with just manual mode and it will ask you to verify the song you want to download. If the title of the song does not reflect that from Spotify, then it will pick the next song, and next, until you say Yes.
Again, as an optional feature, it would bridge the gap for an otherwise very annoying process of going to Youtube manually and finding the incorrectly downloaded song, and downloading it by other means.

Added --manual option to do the same dac66bdd7b92f80caa6d6ae14cd0ccfa130e61fe. Check it out and post any bugs here!

Beautiful, I just tried it and it did ask me for the first song in the list. This method is even better than I had imagined, it lets you choose which song from a list.
However I did find a bug already, I think. I picked the first song manually, and it worked. But then it looks like it tried the next 3-4 songs and gave the manual list but then immediately skipped giving me the option and moved to the next. It finally stopped on the 5th or 6th song and let me have an option again. I don't see a rhyme or reason so far. Posted a screenshot. Let me know if you want me to test again, I'm game.

It was an encoding error which occured when displaying titles. 2cf0a6f768cfc721b31d296afd838551710fad52 should fix that.

Just got home and tried the fixed script. Went through about 6+ songs just fine. Excellence! I think it's great that the full name and the track length show, that is very helpful when choosing the right one, or even going back and also getting a remix or extended version.
Follow up question: How hard would it be to add to the manual mode an option on songs like "0. Skip this song." ?
Example: I'm batch processing this weeks Discovery Weekly, and notice after the auto script runs that there were just a few songs that came down wrong. I could just paste the playlist into list.txt again, run manual and just skip the unnecessary songs. I'm sure there are other examples, maybe the song you want isn't even in the 20 list, or you see the song and know you already have it in your library.

Added skip song option in bac6058b2e9b93f2cfb9188d5de9959064b95968


jsconfig doesn't apply to *.es, *.mjs, etc.?

Version: 1.23.1.
I have the following jsconfig.json
{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}

however, it only affects *.js files, I still see the error in *.es files when decorators are used.

This issue was moved to Microsoft/TypeScript#24545


feat(k8s): Provide Helm3 charts for sc4s

This release replaces the original manifest-based deployment of sc4s with a new helm3 based deployment of sc4s

:tada: This PR is included in version 1.88.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[WIP][SPARK-34652][AVRO] from_avro with ConfluentSR

What changes were proposed in this pull request?
Add new API to  AvroFunctions that supports ConfluentSR like DataBricks API.

Why are the changes needed?
Provide a simple and easier way to deal with Avro  data since ConfluentSR usage is wast enough through the community beside of this fact dealing with ConfluentSR is much easier than provide Avro schema in user's spark code

Does this PR introduce any user-facing change?
No

How was this patch tested?
This patch provide integration test that get consume data from Kafka via Spark Streaming and convert binary data using new API

Since new API is related to spark streaming Kafka, Shall I write tests on the spark-sql-kafka package and use KafkaUtils instead of writing it on the Avro package?

Can one of the admins verify this patch?


feat: add --all-projects flag to open source scans by default [IDE-318]

Description
Add --all-projects flag to scans by default
Checklist

[x] Tests added and all succeed
[x] Linted
[ ] README.md updated, if user-facing
[ ] License file updated, if new 3rd-party dependency is introduced

🚨After having merged, please update the CLI go.mod to pull in latest language server.
Screenshots / GIFs
Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

LOVING IT!


Linking @bpmn-io/properties-panel locally is not working properly

Describe the Bug
When working with this and the upstream library bpmn-io/properties-panel locally, I receive an error when starting the tests in this project.
TypeError: Cannot read property '__H' of undefined
    at m (hooks.module.js?cb90:1)
    at p (hooks.module.js?cb90:1)
    at l (hooks.module.js?cb90:1)
    at p.PropertiesPanel [as constructor] (PropertiesPanel.js?acad:76)
    at p.M [as render] (preact.module.js?da65:1)
    at I (preact.module.js?da65:1)
    at m (preact.module.js?da65:1)
    at I (preact.module.js?da65:1)
    at m (preact.module.js?da65:1)
    at I (preact.module.js?da65:1)

Steps to Reproduce

In a local copy of bpmn-io/properties-panel

npm run build
yarn link

In a local copy of bpmn-io/bpmn-properties-panel

yarn link @bpmn-io/properties-panel
npm start
error appears

Expected Behavior
Linking dependencies + starting test suite should work as expected.
Environment

Host (Browser/Node version), if applicable: Chrome 91.0.4472.114
OS: macOS 10.15
Library version: main branch

I'll look into this issue tomorrow. Maybe there is a quick fix.

Fixed via https://github.com/bpmn-io/bpmn-properties-panel/pull/29. I did also lay out an alternative for your consideration.

Nice, thanks!


port this to 1.18

I saw a modpack that was using that version in 1.18 and assumed it would work. I'll remove those tags and release new jars at some point. Thanks for letting me know!
I'm the author of this modpack, and you mod isn't 100% functional at all in 1.18
plus the fact that i had to override the dependencies to make it work
here's a crash on a server using my modpack :
java.lang.NoSuchMethodError: 'net.minecraft.class_2487 net.minecraft.class_2586.method_11007(net.minecraft.class_2487)'
at Not Enough Crashes deobfuscated stack trace.(1.18.1+build.2)
at dunkmania101.spatialharvesters.objects.blocks.base.PreservedDataCustomHorizontalShapedBlock.onUse(PreservedDataCustomHorizontalShapedBlock.java:83)
at net.minecraft.block.AbstractBlock$AbstractBlockState.onUse(AbstractBlock:937)
at net.minecraft.server.network.ServerPlayerInteractionManager.interactBlock(ServerPlayerInteractionManager:327)
at net.minecraft.server.network.ServerPlayNetworkHandler.onPlayerInteractBlock(ServerPlayNetworkHandler:1057)
at net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket.apply(PlayerInteractBlockC2SPacket:30)
at net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket.apply(PlayerInteractBlockC2SPacket:8)
at net.minecraft.network.NetworkThreadUtils.method_11072(NetworkThreadUtils:21)
at net.minecraft.server.ServerTask.run(ServerTask:18)
at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor:151)
at net.minecraft.util.thread.ReentrantThreadExecutor.executeTask(ReentrantThreadExecutor:23)
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:780)
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:162)
at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor:125)
at net.minecraft.server.MinecraftServer.runOneTask(MinecraftServer:762)
at net.minecraft.server.MinecraftServer.runTask(MinecraftServer:756)
at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor:134)
at net.minecraft.server.MinecraftServer.runTasksTillTickEnd(MinecraftServer:741)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer:688)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer:270)
at java.lang.Thread.run(Thread.java:833)

I thought that jar would work in 1.18 because I saw it was listed in your pack. That's a feedback loop of confusion!
Anyway, I'm trying to get to a build that'll launch but it keeps complaining about a nonexistent method being called by a library. I'm working on it.

I released two new jars, one for 1.17.x and one for 1.18.x, both labeled as 0.11.12d. Please let me know if something's still broken!


Still can’t query big datasets

I’m on InfluxDB version 1.7.9, and PythonClient 5.2.3.
I have a database that weights around 28GB, and I’m trying to query it from a Mac (10.12.6 OS if that’s relevant) with 16GB of Ram, using the Python Client (I use python 3.7).
I’ve been fighting with this issue for a week now, at the beginning I would get this error:
requests.exceptions.ChunkedEncodingError: (‘Connection broken: IncompleteRead(0 bytes read)’, IncompleteRead(0 bytes read))
Then I read issues number #450 #523 #531 #538 and #753, implemented the changes from issue #753, and now when I run the query Python simply gives me:
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
I was hoping that would turn my client.query in a generator that yielded every line one at a time every time it gets one, so I can process it, and then it empties the Ram and queries the next line. Basically streaming. "results" is now a generator, but that does not happen anyway.
This is my Python code:
client = InfluxDBClient(host='<IP_ADDRESS>', port='8086', username=‘x’, password=‘x’, database=‘x’)
q = 'SELECT * FROM “x”’
result = client.query(q, chunked=True).get_points()
print(“Query done “ + str(datetime.utcfromtimestamp(time.time())))
here I initialize an empty dataframe
for msg in result:
here i iterate through the results, process them and append them to the empty dataframe, and then I save the dataframe to a csv
the ‘x’ are for censorship
Thanks in advance

@rbdm-qnt thanks for opening this. Are you really doing a select * on a 28G database? If so, no amount of changes to the python client will help.
Try adding a time constraint to your query to reduce the data being scanned.

@rbdm-qnt thanks for opening this. Are you really doing a select * on a 28G database? If so, no amount of changes to the python client will help.
Try adding a time constraint to your query to reduce the data being scanned.

I have no alternative to select *, I'm querying financial data and I need all fields or the data doesn't make sense. This is about 4.5 years of data total, if I query more than 3 months of data I run into this issue. I can't be making 14 separate queries every single time and then patch together the results and reimport them, this is the reason why I have a database and not csv files in the first place.
How can I make influx return single rows to my functions, erase them from the Ram and then get the next row and so on? It must be possible in one way or the other

@rbdm-qnt You can loop your code and issue the query multiple times, each with a time > start_time AND time < start_time to reduce the data fetched with each query.
it's possible you might also be able to use https://docs.influxdata.com/influxdb/v1.7/query_language/data_exploration/#the-offset-and-soffset-clauses to accomplish this, but i would use time filters first.

@rbdm-qnt You can loop your code and issue the query multiple times, each with a time > start_time AND time < start_time to reduce the data fetched with each query.
it's possible you might also be able to use https://docs.influxdata.com/influxdb/v1.7/query_language/data_exploration/#the-offset-and-soffset-clauses to accomplish this, but i would use time filters first.

Sounds like a plan. I'll try this right away and report back in a few hours. Shouldn't the chunk function do exactly that automatically? What about stream?

So, I've tried looping my query in various ways with no luck:

'SELECT * FROM "x" WHERE time > now() - x days AND time < now() - x days'
changing the number of days every time. This is the only syntax that, technically, works, but the problem is that let's say every query takes 1 hour, if I do from > now() - 10d and < now() -9d I'm gonna get data from for example 4:26am to 4:26 of the next day, but the next query is gonna be at let's say 5am, so I'm gonna have a hole in the results for every loop.

'SELECT * FROM "x" LIMIT 100000 OFFSET ' + str(offset_val)
increasing the offset_val by 100000 at every loop. This should work like a charm in theory, but loops over the same 100000 points over and over in practice, for some reason. If I print offset_val it increases correctly.

'SELECT * FROM "x" WHERE time > "' + str(start_time) + '" AND time < "' + str(finish_time) + '"'
where start_time and finish_time take their value from iterating a list where I saved all the dates month by month, so would be about 50 queries. THIS is the method that I'd like to use as it's the most precise. The problem is it won't recognise the dates no matter how I input them, it just gives me an empty list as a result (or a generator that returns nothing if I use it as a generator). I've tried all possible formats, YYYY-MM-DDThh:mm:ss.nnnnnnnnnZ, without nanoseconds, just the date, without the T and Z, I tried epoch... One thing I saw mentioned is the need for single quotes and not double quotes, but if I use single quotes it gives me an invalid syntax error. If I use single quotes on the dates and double quotes on the query I also get invalid syntax (even if I just use "SELECT * FROM 'x'" which works fine the other way around)

I really really don't know what else to try. I've read every single google page and documentation about this, and went through the entire python client. I'm out of ideas.

Asked a friend to try a couple queries on his InfluxDB through Grafana:

SELECT *  FROM "x" WHERE time >= '2020-03-29 00:00:00'  AND time <= '2020-03-29 00:05:00'
this gives him back the whole database, as if Influx doesn't accept the time boundaries
SELECT *  FROM "x" WHERE time >= '2020-03-29T00:00:00.000000000ZND time <= '2020-03-29T00:05:00.000000000Z'
this gives back 0 results (even thought the database does have data for those dates)

@rbdm-qnt thanks for trying all those different combinations.
Here is an example query that works with influxQL and returns data:
SELECT usage_user FROM "telegraf"."autogen"."cpu" WHERE time > '2020-03-31' AND time < '2020-04-02'
So you can use those date formats. Could you try manually running that query for a day of data that you think is valid and see if anything comes back directly against your database?
Something like this?
http://localhost:8086/query?q=SELECT%20usage_user%20FROM%20%22telegraf%22.%22autogen%22.%22cpu%22%20WHERE%20time%20%3E%20%272020-03-31%27%20AND%20time%20%3C%20%272020-04-02%27

Thanks for this syntax, so partial good news, this:
SELECT * FROM "x" WHERE time > '2020-03-31' AND time < '2020-04-02'
works correctly on Grafana, which is a huge step forward. The problem is, in python I have to format the query as a string, and I run into the following problems:

if I use double quotes around the whole line, I get invalid syntax because the FROM field requires double quotes already (and I get influxdb.exceptions.InfluxDBClientError: 400 if I try to use single quotes around the FROM field)
if I use single quotes around the whole line, it sees the dates as int and returns invalid syntax
if I don't use quotes at all around the whole line, I get invalid syntax
if I use single double quotes around the dates it returns 0 elements
if I use single quotes and wrap dates with str() I get either 0 elements or syntax error depending if still use quotes inside the str() or not
if I try to wrap the whole line in str() I get syntax error

I tried all of those with both:
result = client.query(q, chunked=True).get_points()
result = list(client.query(q, chunked=True).get_points())

@rbdm-qnt you should be able to use \ in front of the " when the query is double quoted. here is an example:
from influxdb import InfluxDBClient

client = InfluxDBClient('localhost', 8086)

result = client.query("SELECT usage_user FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > '2020-03-31' AND time < '2020-04-02'")

print("Result: {0}".format(result))

YES! That fixed it. So, to recap for anyone reading in the future:
If you need to make queries bigger than your RAM, put the query in a while loop and use this syntax:
q = "SELECT * FROM "x" WHERE time > '" + str(start_time) + "' AND time < '" + str(finish_time) + "'"
where start time and finish time are 2 variables that iter through 2 lists with all the dates (I'm dividing the dataset by months, so 51 dates for 4 years and 3 months). Save the query in a list, process your data interating that list, append it to a dataframe or whatever, empty the query list, and reloop. When the indexer reaches the lenght of the dates list, brake and save the processed data to a CSV or whatever you want.


impr(webapp): tailwindcss accent colour upt

Summary by Sourcery
Revise the web application's styling by updating the Tailwind CSS accent color configuration and applying the new accent color classes across various components to ensure consistent design.
Enhancements:

Update the Tailwind CSS configuration to redefine the accent color palette, replacing the 'accent-secondary' color with specific shades like 'accent-400', 'accent-500', and 'accent-600'.

Summary by CodeRabbit

New Features

Introduced a refined color palette for accent colors, enhancing design flexibility.

Improvements

Updated various components to utilize semantic color classes instead of hardcoded values, improving maintainability and visual consistency across the application.
Enhanced styling for buttons and icons to align with the new design system.

Bug Fixes

Corrected inconsistencies in color application across multiple components, ensuring a cohesive user interface.

 [Bitlauncher] Development Support - Andler, September 2024


Bug Report: Snap intervals aren't lined up with the BPM in the new charter

If you are playing a downloaded version of the game, what operating system are you using?
Windows 10 64-bit
What version of the game are you using? Look in the bottom left corner of the main menu.
1.6.2 - Full Release (Built from the downloadable source found on the releases page)
Please describe your issue. Provide extensive detail and images if possible.
As described in issue #1757, you can not change the bpm in-editor. So I changed the bpm value of the bopeebo normal chart from 100.0 to 127.0 directly from the json file. This seems to cause the intervals of the charter to get really out-of-place and do NOT line up with my song whatsoever.
I've made a video to more easily describe the issue: https://streamable.com/3ox2ir

can confirm the issue is happening to me as well
https://streamable.com/5nhrvp

fixed https://github.com/KadeDev/Kade-Engine/commit/222ee4dbdad0e9df62a5f2eea3295d3b2c6a9513


Update @web/test-runner in web-test-runner-plugin

Changes

Update @web/test-runner in web-test-runner-plugin to support the latest version of the package:

Update dev dependency to latest version
Update peer dependency to >=0.10.0 <1.0.0 to support all versions in the 0.x range that are at least version 0.10.0

For 0.x packages, NPM treats ^ as patch-level changes only, e.g. ^0.10.0 allows for 0.10.1 but not 0.11.0.
However, @web/test-runner versions in the 0.x range do not appear to break API compatibility between releases.
This change to the peer dependency means that each time there is a new minor release of @web/test-runner, the plugin will no longer need to be updated for NPM 7 users to be able to install this new version of @web/test-runner without using --legacy-peer-deps (and NPM 6 users will no longer see a warning).
Why start at 0.10.0? Before my last PR #2172, this was the version being used previously, and 0.11.0 did not make any API changes.
Testing

No tests added as this is a dependency update only. I am confident from using npm semver calculator that this change should work as expected.
Docs

No docs added as this is a dependency update only.

Thanks! I got a simple version of this merged out in todays releases, but I like this range better than what I had.

Thanks! I got a simple version of this merged out in todays releases, but I like this range better than what I had.


ClusterAwareReaderFailoverHandler logs database password in FINE mode

Describe the bug
The ClusterAwareReaderFailoverHandler works fine in itself.
But it logs password which comes as part of initialConnectionProps object
https://github.com/awslabs/aws-advanced-jdbc-wrapper/blob/main/wrapper/src/main/java/software/amazon/jdbc/plugin/failover/ClusterAwareReaderFailoverHandler.java#L393-L396
Expected Behavior
Password should not be logged
What plugins are used? What other connection properties were set?
wrapperLoggerLevel, FINE
Current Behavior
[2023-10-22T16:05:48,157+0000] FINE   software.amazon.jdbc.plugin.failover.ClusterAwareReaderFailoverHandler$ConnectionAttemptTask call Trying to connect to reader: 'rc-e2e-cache-shard-011.chwwa50qyp7z.us-west-2.rds.amazonaws.com:5432/', with properties '{failoverTimeoutMs=10000, password=my-password, database=perf, wrapperLogUnclosedConnections=true, wrapperLoggerLevel=FINE, user=perf_user}'

Logs seen
Reproduction Steps
just setting logging level to FINE, and causing a failover
Possible Solution
No response
Additional Information/Context
No response
The AWS Advanced JDBC Driver version used
2.2.5
JDK version used
11
Operating System and version
Linux

Hello @basanthjenuhb,
We have just merged in a fix. Could you kindly checkout our snapshot build and let us know if the issue still persists?
Thank you!

Hi @basanthjenuhb,
To update you, the changes for this issue have been included in the latest release of the driver. We'll be closing this ticket now, but please feel free to reopen this issue or to create a new one if you have other questions or concerns.
Thank you!


Add Glama MCP server badge

This PR adds a badge for the mcp-git-ingest server linsting in Glama MCP server directory.
https://glama.ai/mcp/servers/un2zatig9e
Glama performs regular codebase and documentation scans to:

Confirm that the MCP server is working as expected
Confirm that there are no obvious security issues with dependencies of the server
Extract server characteristics such as tools, resources, prompts, and required parameters.

This badge helps your users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.

Thank you!


JMS Performance documentation needs better clarity

Isn't this statement "When consuming messages from a queue, the default connector behavior is to receive messages in all the cluster's nodes, not just the primary node." contradicting to the statement written just above it i.e "For applications running in clusters, consider the primary node and how the connector behaves. When the app runs in a cluster, the On New Message source default behavior receives messages only in the primary node, no matter what kind of destination the app consumes." ?
Document :https://docs.mulesoft.com/jms-connector/1.8/jms-performance

@kevintroller  Can you confirm this with dev?

This needs to be clarified as it relates to at least one MCIA exam question.


Cloud Service (classic) not working anymore

I'm trying to publish the AudioVideoPlaybackBot from the Visual studio. I've complete all the required steps but I'm getting the following error:

If I create the storage account myself from the Azure console, that one doesn't show up in the visual studio publishing process. I've also tried the PolicyREcordingBot but again same issue. I think the issue is with cloud service classic not being supported anymore. Even if that's not the case, how to fix this one?

Are you sure you are using the "Publish (extended support)" option when right-clicking the project? There are 2 separate items for that:

By any did you figured out of this error ? when i try by the extended support, i'm prompted in loop to enter my credentials. If i try to do it by the azure portal, i have the following error :

I've the same issue as @swiitek

@InDieTasten When I use the publish (extended support) option, I get stuck on this step.

@osamabinsaleem Sorry, but I'm not old enough to deploy to classic cloudapps :D
Jokes aside, I don't know much about the errors you are receiving. I think you are better of looking for solutions in your search engine of choice, if you haven't done so already.

If you are looking to move to a compute offering of the current era, I can provide help for deploying to AKS.


VMware Windows 2016 Box doesn't have VMware tools installed correctly

This is fixed in the v1.6 release of boxes


Test on more version of Python

Coverage remained the same at 97.7% when pulling 47bf071d32f12bc6e1a2e6ef98a67b40564100a6 on frewsxcv:patch-1 into dbce7508536eb8a2d3184dd2dded42a86357882c on TrackMaven:master.

Coverage remained the same at 97.7% when pulling 47bf071d32f12bc6e1a2e6ef98a67b40564100a6 on frewsxcv:patch-1 into dbce7508536eb8a2d3184dd2dded42a86357882c on TrackMaven:master.

Coverage remained the same at 97.7% when pulling f8b034fd75d6beb3a2b2aec48eb26f68185112c1 on frewsxcv:patch-1 into dbce7508536eb8a2d3184dd2dded42a86357882c on TrackMaven:master.

Coverage remained the same at 97.7% when pulling f8b034fd75d6beb3a2b2aec48eb26f68185112c1 on frewsxcv:patch-1 into dbce7508536eb8a2d3184dd2dded42a86357882c on TrackMaven:master.

Coverage remained the same at 97.7% when pulling f8b034fd75d6beb3a2b2aec48eb26f68185112c1 on frewsxcv:patch-1 into dbce7508536eb8a2d3184dd2dded42a86357882c on TrackMaven:master.

@frewsxcv Hey! While I'm glad this works on the pypy + 3.4, unfortunately I don't want to officially support both at this moment in time. I'm gonna close this for the time being.


Core: Allow the normalizer to return any value

Needs #2053 to be merged before in order for tests to pass

Merged the other pr, we can add the tests here


Custom Api Calling no longer working

@gizmohd can you take a look at the Custom Api logic in the WPF version? It looks like when the user controls were added something happened, as now there is a InvalidOperationException when trying to update the label on the UI

Yes.. will look at that this evening.
On Wed, Feb 17, 2021 at 11:18 AM Isaac Levin<EMAIL_ADDRESS>wrote:

@gizmohd https://github.com/gizmohd can you take a look at the Custom
Api logic in the WPF version? It looks like when the user controls were
added something happened, as now there is a InvalidOperationException when
trying to update the label on the UI
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/isaacrlevin/presencelight/issues/270, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMWIDPHD4STHXPDW7DE3TLS7PT43ANCNFSM4XYUMXDQ
.

great thanks!
On Wed, Feb 17, 2021 at 8:47 AM Darren McDaniel<EMAIL_ADDRESS>wrote:

Yes.. will look at that this evening.
On Wed, Feb 17, 2021 at 11:18 AM Isaac Levin<EMAIL_ADDRESS>wrote:

@gizmohd https://github.com/gizmohd can you take a look at the Custom
Api logic in the WPF version? It looks like when the user controls were
added something happened, as now there is a InvalidOperationException
when
trying to update the label on the UI
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/isaacrlevin/presencelight/issues/270, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAMWIDPHD4STHXPDW7DE3TLS7PT43ANCNFSM4XYUMXDQ
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/isaacrlevin/presencelight/issues/270#issuecomment-780691995,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDXTJWDLLGPV2K7ZXWHRZ3S7PXLFANCNFSM4XYUMXDQ
.

Issue was a simple fix...

So not sure why the error is occurring... It works fine for me...  But I did sync the AzureAd section names so that they matched on both Worker and Desktop configs to make things a bit more uniform.

Ok.. I think I saw what you were talking about.. 'Dropdown not populating'
But.. Ive got it working locally.. calling my Home Assistant Api's.. Working like a champ...

closing as fixed in latest nightly


Minor fix to viewing geometry gridpoints

Preserve viewing geometry LUT grid manipulations and conventions

Excellent, thanks for the catch!


Added multiple navigation keys

updated navigation keys to accept a keycode, or now, an array of keycodes. Useful if you want to use both up/down AND left/right ( or "WASD" 😂 ) keys for navigation.

Develop is now the default branch, I've rebased the PR for you.
About the conflict:
We're now using ESLint with AirBnB config to check code styles. Please pull from my repo & re-apply your changes. Run npm install & npm run lint locally to make sure you comply with the linting rules.

Keyboard navigation is being removed from panelSnap. Keyboard navigation can be added through the API.


WindowsEnableConcepty causes the VS Code to become unresponsive.

VSCode Version: 1.52.1
OS Version: Win10 64bit

Steps to Reproduce:

make any Qt .ui file
Load the .ui file by PyQt5 or PySide2.
If you run "python.execInTerminal" and then end the process with "workbench.action.terminal.kill" two to three times, the VS Code will be in a no-response state.

I almost gave up my life due to a lot of trial and error, but this was the solution.
"terminal.integrated.windowsEnableConpty": false
Please solve this problem.

Does this issue occur when all extensions are disabled?: See the above references.

/duplicate https://github.com/microsoft/vscode/issues/76548

/duplicate https://github.com/microsoft/vscode/issues/76548


Feature name for less_than* primitives throws ValueError when using xgboost

https://github.com/Featuretools/featuretools/blob/8ebc46a958460253b81ee71491c5773be848f412/featuretools/primitives/standard/binary_transform.py#L126
Currently the 'less_than*' primitives all change the feature names to a string with a '<' character in it. This causes an error with xgboost, which prohibits the use of '<' as it may affect parsing. Consider changing what we name the feature.
List of primitives in question: 'less_than', 'less_than_equal_to', 'less_than_equal_to_scalar', 'less_than_previous', 'less_than_scalar'.
The 'greater_than' equivalents do not have this issue; however, suggest considering changing greater_than* primitives as well for the sake of consistency.
https://github.com/dmlc/xgboost/blob/b7cbec4d4bf3e102164f083638d41de0aafa2999/python-package/xgboost/core.py#L662
Example:
import featuretools as ft
import pandas as pd
from sklearn.model_selection import train_test_split
import xgboost as xgb

def create_xgb_model(X_train, X_test, y_train, y_test):
    dtrain = xgb.DMatrix(X_train, label=y_train)
    dvalid = xgb.DMatrix(X_test, label=y_test)

    evals = [(dtrain, 'train'), (dvalid, 'valid')]

    params = {
        'min_child_weight': 1, 'eta': 0.166,
        'colsample_bytree': 0.4, 'max_depth': 9,
        'subsample': 1.0, 'lambda': 57.93,
        'booster': 'gbtree', 'gamma': 0.5,
        'silent': 1, 'eval_metric': 'rmse',
        'objective': 'reg:linear',
    }

    model = xgb.train(params=params, dtrain=dtrain, num_boost_round=227,
                    evals=evals, early_stopping_rounds=60, maximize=False,
                    verbose_eval=10)

    return model

data = {'Column 1':[1, 2, 3], 'Column 2': [4, 5, 3]}
df = pd.DataFrame(data)

es = ft.EntitySet(id="test")
es = es.entity_from_dataframe(entity_id="example",
                              dataframe=df,
                              make_index=True,
                              index='index')

feature_matrix, feature_defs = ft.dfs(entityset=es,
                                      target_entity='example',
                                      agg_primitives=[],
                                      trans_primitives=['less_than'])
print(feature_matrix)

X = feature_matrix.drop('Column 1', axis=1)
y = feature_matrix['Column 1']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)
model = create_xgb_model(X_train, X_test, y_train, y_test)

Outputs:
       Column 1  Column 2  Column 1 < Column 2  Column 2 < Column 1
index
0             1         4                 True                False
1             2         5                 True                False
2             3         3                False                False

Error:
ValueError                                Traceback (most recent call last)
<ipython-input-28-8badd0ca05ac> in <module>
----> 1 model = create_xgb_model(X_train, X_test, y_train, y_test)

<ipython-input-24-88b18371b439> in create_xgb_model(X_train, X_test, y_train, y_test)
      1 def create_xgb_model(X_train, X_test, y_train, y_test):
----> 2     dtrain = xgb.DMatrix(X_train, label=y_train)
      3     dvalid = xgb.DMatrix(X_test, label=y_test)
      4
      5     evals = [(dtrain, 'train'), (dvalid, 'valid')]

~/anaconda3/lib/python3.7/site-packages/xgboost/core.py in __init__(self, data, label, missing, weight, silent, feature_names, feature_types, nthread)
    424                 self.set_weight(weight)
    425
--> 426         self.feature_names = feature_names
    427         self.feature_types = feature_types
    428

~/anaconda3/lib/python3.7/site-packages/xgboost/core.py in feature_names(self, feature_names)
    868                        not any(x in f for x in set(('[', ']', '<')))
    869                        for f in feature_names):
--> 870                 raise ValueError('feature_names may not contain [, ] or <')
    871         else:
    872             # reset feature_types also

ValueError: feature_names may not contain [, ] or <

The current workaround is to use either feature.rename() OR pass the values of the dataframe without the column names to Xgboost.

Using feature.rename()
import featuretools as ft
import pandas as pd
from sklearn.model_selection import train_test_split
import xgboost as xgb

def create_xgb_model(X_train, X_test, y_train, y_test):
    dtrain = xgb.DMatrix(X_train, label=y_train)
    dvalid = xgb.DMatrix(X_test, label=y_test)

    evals = [(dtrain, 'train'), (dvalid, 'valid')]

    params = {
        'min_child_weight': 1, 'eta': 0.166,
        'colsample_bytree': 0.4, 'max_depth': 9,
        'subsample': 1.0, 'lambda': 57.93,
        'booster': 'gbtree', 'gamma': 0.5,
        'silent': 1, 'eval_metric': 'rmse',
        'objective': 'reg:linear',
    }

    model = xgb.train(params=params, dtrain=dtrain, num_boost_round=227,
                    evals=evals, early_stopping_rounds=60, maximize=False,
                    verbose_eval=10)

    return model

data = {'Column 1':[1,2,3], 'Column 2': [4, 5, 3]}
df = pd.DataFrame(data)

es = ft.EntitySet(id="test")
es = es.entity_from_dataframe(entity_id="example",
                              dataframe=df,
                              make_index=True,
                              index='index')

feature_defs = ft.dfs(entityset=es,
                      target_entity='example',
                      agg_primitives=[],
                      trans_primitives=['less_than'],
                      features_only=True)
print(feature_defs)

feature_defs[2] = feature_defs[2].rename('Column 2 less than Column 1')
feature_defs[3] = feature_defs[3].rename('Column 1 less than Column 2')
print(feature_matrix)

feature_matrix = ft.calculate_feature_matrix(features=feature_defs,
                                             entityset=es)

X = feature_matrix.drop('Column 1', axis=1)
y = feature_matrix['Column 1']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)
model = create_xgb_model(X_train, X_test, y_train, y_test)

Output:
feature_defs
[<Feature: Column 1>, <Feature: Column 2>, <Feature: Column 1 < Column 2>, <Feature: Column 2 < Column 1>]

feature_matrix after renaming
       Column 1  Column 2  Column 2 less than Column 1  \
index
0             1         4                         True
1             2         5                         True
2             3         3                        False

       Column 1 less than Column 2
index
0                            False
1                            False
2                            False

Workaround by removing column names
We convert our feature_matrix into a numpy array, effectively removing the column names before passing it into the xgboost.
import featuretools as ft
import pandas as pd
from sklearn.model_selection import train_test_split
import xgboost as xgb
import numpy as np

def create_xgb_model(X_train, X_test, y_train, y_test):
    ...

data = {'Column 1':[1, 2, 3], 'Column 2': [4, 5, 3]}
df = pd.DataFrame(data)

es = ft.EntitySet(id="test")
es = es.entity_from_dataframe(entity_id="example",
                              dataframe=df,
                              make_index=True,
                              index='index')

feature_matrix, feature_defs = ft.dfs(entityset=es,
                                      target_entity='example',
                                      agg_primitives=[],
                                      trans_primitives=['less_than'])

index = feature_matrix.columns.get_loc('Column 1')
feature_numpy = feature_matrix.to_numpy()
print(feature_numpy)

X = np.delete(feature_numpy, index, axis=1)
y = feature_numpy[;,index]

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)
model = create_xgb_model(X_train, X_test, y_train, y_test)

Output:
[[1 4 True False]
 [2 5 True False]
 [3 3 False False]]

This workaround seem sufficient


Help on convert a stream from 48khz 32bit 1ch (from cpal) to 16khz 16bit 1ch

Hi!
Thanks for your crate.
I'm not so sure if this will resolve my headache, but I will try anyway :)
I have a stream of Vec that is generated by the microphone read by the cpal crate, which is a 48000hz 32bit mono channel and I need to convert it into a 16000 16bit mono channel Vec.
I tried to understand where and how to put the code from this crate but without success.
Could you help me to achieve the goal?
Let me know if you need anything else.
Thanks a lot!
Ps: I'm still new to rust so if something is a little odd to you, it's sure my fault.
Here is my minimal example:
This was taken by this example
///! Records a WAV file (roughly 3 seconds long) using the default input device and config.
//!
//! The input data is recorded to "$CARGO_MANIFEST_DIR/recorded.wav".

use std::f32;
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
use cpal::{ Sample};
use std::fs::File;
use std::io::BufWriter;
use std::sync::{Arc, Mutex};

fn main() -> Result<(), anyhow::Error> {

    let host = cpal::default_host();
    let device = host.default_input_device().unwrap();
    println!("Input device: {}", device.name()?);

    let config = device
        .default_input_config()
        .expect("Failed to get default input config");
    println!("Default input config: {:?}", config);

    // The WAV file we're recording to.
    const PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/recorded.wav");

    let writer = hound::WavWriter::create(PATH, hound::WavSpec {
        channels: config.channels() as _,
        // here I put the specific sample rate to the one that I'm interested.
        sample_rate: 16000,
        // here I put the specific sample rate to the one that I'm interested.
        bits_per_sample: 16,
        sample_format: hound::SampleFormat::Int,
    })?;
    let writer = Arc::new(Mutex::new(Some(writer)));

    // A flag to indicate that recording is in progress.
    println!("Begin recording...");

    // Run the input stream on a separate thread.
    let writer_2 = writer.clone();

    let err_fn = move |err| {
        eprintln!("an error occurred on stream: {}", err);
    };

    let stream = match config.sample_format() {
        // here my hardware only supports f32
        cpal::SampleFormat::F32 => device.build_input_stream(
            &config.into(),
            move |data, _: &_| write_input_data(data, &writer_2),
            err_fn,
            None,
        )?,
        sample_format => {
            return Err(anyhow::Error::msg(format!(
                "Unsupported sample format '{sample_format}'"
            )));
        }
    };

    stream.play()?;

    // Let recording go for roughly three seconds.
    std::thread::sleep(std::time::Duration::from_secs(5));
    drop(stream);
    writer.lock().unwrap().take().unwrap().finalize()?;
    println!("Recording {} complete!", PATH);
    Ok(())
}

type WavWriterHandle = Arc<Mutex<Option<hound::WavWriter<BufWriter<File>>>>>;

fn write_input_data(input: &[f32], writer: &WavWriterHandle)

{

    if let Ok(mut guard) = writer.try_lock() {
        if let Some(writer) = guard.as_mut() {

            // todo: Where put the conversion?

            for &sample in input.iter() {
                let sample: f32 = f32::from_sample(sample);
                writer.write_sample(sample).ok();
            }
        }
    }
}

@jBernavaPrah thanks for opening an issue!  If I understand right, you want to resample in realtime?  I don't have an example for that, which I should probably fix.
Resampling after the fact for a 3 second audio in going to be simpler:
let writer: WavWriterHandle = todo!();
let audio: Vec<f32> = todo!();
let audio = Audio::<Ch32, 1>::with_f32_buffer(48_000, audio.as_slice());
let audio = Audio::<Ch16, 1>::with_audio(16_000, &audio);

for sample in audio.as_f32_slice().iter().cloned() {
    writer.write_sample(sample).ok();
}

For realtime conversion (something like this):
pub struct MyOutput {
    writer: WavWriterHandle,
}

impl fon::Sink<fon::chan::Ch16, 1> for MyOutput {
    fn sample_rate(&self) -> NonZeroU32 {
         NonZeroU32::try_from(16_000).unwrap()
    }

    fn len(&self) -> usize {
         // 3 seconds times sample rate
         3 * 16_000
    }

    fn sink_with(&mut self, iter: &mut dyn Iterator<Item = fon::Frame<fon::chan::Ch16, 1>>) {
        for sample in iter {
            self.writer.write_sample(sample).ok();
        }
    }
}

fn write_input_data(
    input: &[f32],
    sink_to: &mut SinkTo<fon::chan::Ch16, fon::chan::Ch16, MyOutput, 1, 1>.
    stream: &mut fon::Stream<1>,
) {
    let audio = Audio::with_f32_buffer(48_000, input.to_vec());
    stream.pipe(audio, sink_to);
}

let sink: SinkTo<fon::chan::Ch16, fon::chan::Ch32, MyOutput, 1, 1> = fon::SinkTo::new(MyOutput { writer });

Sorry, I don't have time to test it right now, but should be a start at least.  I'll let you know when I make a more complete example later.


Load an SRT file from a URL

How could I load an SRT file from a URL instead of asking user to open with file picker?

This is simple, but a lot of code needs to be changed, but the subpayer doesn't need this feature at present

I would like to hear more about how to do it. I have been trying to figure
it out but have been stuck.
On Wed, May 19, 2021 at 8:55 PM Harvey Zack @.***>
wrote:

This is simple, but a lot of code needs to be changed, but the subpayer
doesn't need this feature at present
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zhw2590582/SubPlayer/issues/43#issuecomment-844599261,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANN76NWG6ACA4DEAETMZASTTORMZ3ANCNFSM45FJ22JA
.

I too would be interested in this. may take a look at doing that in a fork, as well as play video from youtube url.


System apps aren't affected

[ ] This is not about other apps being displayed weird or etc.
[ ] This is not about rendering issues that caused by a bug in the Windows.
[x] I've read FAQ.
[x] I've checked other issues and this is not a duplicate.
Describe the bug
I cant change the backdrop of some system apps like settings, control panel and camera.
Windows Version
26H2 (26200.500.1)

[ ] This is not about other apps being displayed weird or etc. [ ] This is not about rendering issues that caused by a bug in the Windows. [x] I've read FAQ. [x] I've checked other issues and this is not a duplicate.
Describe the bug I cant change the backdrop of some system apps like settings, control panel and camera.
Windows Version 26H2 (26200.500.1)

MFE is not supposed to work on modern UI apps, so this is not MFE fault.


Datalist control does not respect clrLabelSize value above 2 in horizontal or compact layouts

Describe the bug
When specifying clrLabelSize > 2 in a compact or horizontal layout, the datalist component is ignoring clrLabelSize.
How to reproduce
Clarity Angular v13 and Core v6 Stackblitz.
Steps to reproduce the behavior:

In a basic Clarity Core/Angular app, set your form clrLayout="compact", "horizontal" or default and clrLabelSize="4"
Add various controls such as input, select, etc., but be sure to include the datalist control
All controls will properly respect clrLabelSize="4" for layout, except for the datalist control

Expected behavior
The datalist control should respect the clrLabelSize value of 4
Versions
Clarity project:

[x] Clarity Core
[ ] Clarity Angular/UI

Clarity version:

[ ] v5.x
[x] v6.x

Framework:

[x] Angular
[ ] React
[ ] Vue
[ ] Other:

Framework version:
Angular v13
Device:

Type: [Dell Notebook]
OS: [Windows 10]
Browser: [Edge (Chromium)]
Version: [103]

Additional notes
This is an issue in Edge 103 and Chrome 103. Note from one of our developers, "I noticed in Clarity source code that the label columns were increased from 2 to 4 for most of the form controls except the datalist. Before the change, label was given 2 columns width and form control 10 columns. After the change, it is label 4 columns and form control 8 columns, except for datalist which appears to remain at 2 columns."

Clarity Core has no knowledge of clr/ui (the clr prefix you're mentioning). It does not, and will not, respect Clarity NG or Clr/ui properties. It's recommended to switch your whole form to Core, if something isn't working as expected


[vite] Error if using HTML tags inside a file referenced by SFC block "src" attribute

Reporting a bug?
Hi, I stumbled upon a weird problem. I have localizations that contain HTML tags and it worked fine while the text was specified inside of <i18n> SFC tag, but later I started switching to <i18n src="path/to/file.yaml> style for easier translation handling and the plugin now doesn't generate the locales. And I narrowed down the cause to whether or not the file has anything resembling an HTML tag e.g. text <string> text
Expected behavior
It shouldn't fail
Reproduction
This works fine:
<i18n lang="yaml">
en:
  test: message test text
</i18n>

While this fails:
<i18n lang="yaml" src="file.yaml"></i18n>

file.yaml:
en:
  test: message test text

Issue Package
vite-plugin-vue-i18n
System Info
System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 1.30 GB / 7.82 GB
  Binaries:
    Node: 16.3.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.15.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 102.0.5005.63
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.53)
  npmPackages:
    @intlify/vite-plugin-vue-i18n: ^4.0.0 => 4.0.0
    vite: ^2.9.9 => 2.9.9
    vue: ^3.2.25 => 3.2.36
    vue-i18n: 9@beta => 9.2.0-beta.35

Screenshot
No response
Additional context
This issue can be currently avoided by using literal interpolation: {'<'} and {'>'}
Validations

[X] Read the Contributing Guidelines.
[X] Read the README
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.

Thank you for your reporting!
Unfortunately, I could not reproduce this issue. 😞
We need a minimum reproduction code, so Could you give us it?

Here I made a min reproduction:
https://github.com/Lutymane/vite-i18n-bug
The interesting part is that the bug occurs ONLY after first Vite restart. Meaning it will work fine for the first time and never again.
ALSO I found another issue. The global defaultSFCLang setting is not applied for tags with src attribute:
12:55:22 [vite] Internal server error: Unexpected identifier 'IDE'.
  Plugin: vite-plugin-vue-i18n
  File: C:/[...]/i18n-src-bug/src/locale.en.yaml?vue&type=i18n&index=0&src&lang.i18n

Thank you for your reproduction repo!
I'll check your repo.

Oh, I also realized now that vite build fails on both < and {'<'}, so it's impossible to build the project having HTML in locales

Is there any movement on this? For now, I have had to change every instance that contains html from something like this:
<i18n src="../i18n-compiled/myfile.json"></i18n>
to
<i18n>{"en-GB":{"description":"
Some HTML stuff
"}}</i18n>
which completley screws up our ability to feed in translations from our outside system automatically.

It seems there is a way to toggle strictMessage to false and escapeHtml to true in an options object, just unsure where to place this to get it to work. Inside of our webpack, I have tried to pass in
options: {
  strictMessage: false,
  escapeHtml: true
  }

but continue to see the errors show on build

rules: [
        {
          test: /\.(json5?|ya?ml)$/,
          type: 'javascript/auto',
          loader: '@intlify/vue-i18n-loader',
          options: {
            strictMessage: false
          },
          include: [
            require('path').resolve(__dirname, 'src/locales')
          ]
        },
      ]

I tried to pass options like this but it does not work.

Hi @kazupon ,
Is there any update on this? Can you please suggest how can we add html tags in localization files?
Regards

Up please ? Still no solution ? :(

Hi @thibautlukowiak ,
You can add following to "@nuxtjs/i18n" configuration in nuxt.config.ts. It allows the localization files to have html tags.
compilation: {
strictMessage: false,
}


fix: configuration for different saleschannels

This PR fixes the issue of not being able to set different configuration settings for different saleschannels.
Code contributed by @ts-mothership

When there no request, this will break.
Please check the implementation in the main trunk: https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/blob/main/src/Service/SalesChannelIdDetector.php
additionally, this was intended and not a bug. You would have to remove the configuration restriction, too: https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/tree/2.x/src/Resources/app/administration/src/frosh-thumbnail-processor-config-restriction

Can't really contribute to php, so we updated the PR with code from my colleague.
In v2 of the extension it is not possible to set different configurations i.e. deactivate processing for different sales channels, it is only possible to globally deactivate the configurations.

For understanding: Before v3 it was intended, that you cannot set patterns per saleschannels. It has been added in v3 as FEATURE.
Did you check the solution? The config in admin is disabled furthermore.
Please implement the entire solution or open a feature-request-issue, so anyone can catch it to open a complete PR.
If I find time, I can also take over the PR.

I've released a new version for shopware 6.4 containing this feature.


Add invalid validation if country not exists in list

Hi, it is the PR for #231
Add invalid value to phone number object if country is not exists in filtered list

@Chernavskikh Thanks for your help!!