[Usage]: Use GGUF model with docker when hf repo has multiple quant versions

Your current environment
I skipped the collect_env step as I use the latest docker container v0.6.1.post2 of vllm.
How would you like to use vllm
I want to use a GGUF variant of the Mistral Large Instruct 2407 model with vllm inside a docker container. I followed the docs for setting up a container.
The repos listed under the quantized category of the model are all GGUF, each with multiple different quant versions inside them. Only 2 of the repos have a config.json (this and this). How can I tell vllm which quantized version of a repo I want to use?
Info: I use an A100 80GB.
What I tried:

docker run  --gpus all --name vllm -v /mnt/disk1/hf_models:/root/.cache/huggingface --env "HUGGING_FACE_HUB_TOKEN=<my_token>" -p 8080:8000 --ipc=host vllm/vllm-openai:latest
--model bartowski/Mistral-Large-Instruct-2407-GGUF --tokenizer mistralai/Mistral-Large-Instruct-2407 --gpu-memory-utilization 0.98

Result:

ValueError: No supported config format found in bartowski/Mistral-Large-Instruct-2407-GGUF

Then I tried one of the repos that have a config.json:

docker run  --gpus all --name vllm -v /mnt/disk1/hf_models:/root/.cache/huggingface --env  "HUGGING_FACE_HUB_TOKEN=<my_token>" -p 8080:8000 --ipc=host vllm/vllm-openai:latest
--model second-state/Mistral-Large-Instruct-2407-GGUF --tokenizer mistralai/Mistral-Large-Instruct-2407 --gpu-memory-utilization 0.98

Result:

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 288.00 MiB. GPU 0 has a total capacity of 79.15 GiB of which 213.69 MiB is free. Process 981263 has 78.93 GiB memory in use. [...]

Info: No other process ran on the GPU, the memory was empty before.
So it seems at least that vllm tries to load something. But how can I specifiy which quantized version I want to load? E.g. the q4_K_S variant? I tried giving a link (--model https://huggingface.co/bartowski/Mistral-Large-Instruct-2407-GGUF/tree/main/Mistral-Large-Instruct-2407-Q4_K_M), but it seems --model only accepts the HF repo/model format.
Before submitting a new issue...

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

If you download the right .gguf file from hugging face you can do like so :
docker run --runtime nvidia --gpus=all \
    -v /path/to/your/dot/gguf/model:/models \
    -p 8000:8000 \
    --ipc=host \
    vllm/vllm-openai:latest \
    --model /models/codestral-22b-v0.1.Q4_K.gguf

But you would have to download the .gguf model first and mount a volume containing the said model to the container.
This way it works-ish. In my case, it is complaning that it is missing a chat template, but that is another issue...

@N0ciple If you are meeting chat template missing issue, you can try passing --tokenizer mistralai/Codestral-22B-v0.1 to use the tokenizer from source model. The missing chat template from gguf file is a bug in transformers v4.44, which will be fixed in future v4.45.

@N0ciple If you are meeting chat template missing issue, you can try passing --tokenizer mistralai/Codestral-22B-v0.1 to use the tokenizer from source model. The missing chat template from gguf file is a bug in transformers v4.44, which will be fixed in future v4.45.

Thank you @Isotr0py, I was able to make it run with your help !
For anybody stumbling upon this issue, here is how I run a GGUF model :
    -v /path/to/your/dot/gguf/models:/models \
    --env "HUGGING_FACE_HUB_TOKEN=<your-hf-token>" \
    -p 8803:8000 \
    --ipc=host \
    vllm/vllm-openai:latest \
    --model /models/codestral-22b-v0.1.Q4_K.gguf \
    --tokenizer mistralai/Codestral-22B-v0.1

You woud have to download the .gguf file that you want and store it in /path/to/your/dot/gguf/models , modify the model (here /models/codestral-22b-v0.1.Q4_K.gguf) to the one you downloaded and update the tokenizer ( here
mistralai/Codestral-22B-v0.1) to the one from the base model, as pointed out by @Isotr0py.
The .gguf files are in the "Files" tab of a model page (in my case, I downloaded the files from this page : https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/tree/main ).
But to second @mahenning  it would be nice to be able to specify just the repo and the quantisation Q8_0, Q6_K, Q5_K_M, etc... as a command line argument !

Thanks for the above, but any thoughts on how to do models that are multiple parts?  ie https://huggingface.co/bartowski/Mistral-Large-Instruct-2407-GGUF/tree/main/Mistral-Large-Instruct-2407-Q4_K_S

@searstream Currently, vllm hasn't supported loading multi-files GGUF model. I'm afraid that you might need to merge them with gguf-split tool firstly...

I made it work, here's how:
1. Download the modelfiles
I did it with a python script I found, but maybe you can just dl the files directly.
from huggingface_hub import hf_hub_download

repo_id = "second-state/Mistral-Large-Instruct-2407-GGUF"
filenames = [
    "Mistral-Large-Instruct-2407-Q4_K_S-00001-of-00003.gguf",
    "Mistral-Large-Instruct-2407-Q4_K_S-00002-of-00003.gguf",
    "Mistral-Large-Instruct-2407-Q4_K_S-00003-of-00003.gguf"]

for filename in filenames:
    hf_hub_download(repo_id, filename=filename, local_dir="path/to/models/")

2. Clone the llama.cpp repo to use gguf-split
I ran everything on Ubuntu 22.04

navigate to a folder where you want to clone the repo in
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
(install cmake if you don't have it: sudo apt install cmake)
cmake -B build && cmake --build build --config Release (from build docs)
./build/bin/llama-gguf-split --merge path/to/models/model-00001-of-0000x.gguf path/to/models/model.gguf (the first argument should be the first model part, the second argument should be the out model name)
Now there should be a model.gguf file in the model path to use.

3. start the vllm docker container with the model path as volume
docker run --gpus all --name vllm -v path/to/models:/root/.cache/huggingface -p 8080:8000 --ipc=host vllm/vllm-openai:latest --model /root/.cache/huggingface/Mistral-Large-Instruct-2407-Q4_K_S.gguf --tokenizer mistralai/Mistral-Large-Instruct-2407 --gpu-memory-utilization 0.98 --tokenizer_mode "mistral" (in this example I used the Mistral-Large-Instruct-2407 model I downloaded earlier)
I also had to use --max-model-len 35000 to fit it on an A100 GPU. You can set --gpu-memory-utilization to whatever you want/need.


Use New-LocalUser in WS topic at PS6.2 RTM

Cross-ref: https://github.com/aspnet/Docs/pull/11342

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b0bd8cb8-7e28-8c4d-a550-3aea8f3ab4dd
Version Independent ID: 4b60d24e-ef05-15e5-10b4-483094081bf3
Content: Host ASP.NET Core in a Windows Service
Content Source: aspnetcore/host-and-deploy/windows-service.md
Product: aspnet-core
GitHub Login: @guardrex
Microsoft Alias: tdykstra

PowerShell 6.2 was released on Thursday. :tada:
https://github.com/PowerShell/PowerShell/releases/tag/v6.2.0
Should be able to use the New-LocalUser command now. Will proceed with this issue now.


paket.dependencies in submodules

From @btrepp on gitter:
Does paket install ignore nested dependencies?
I have a submodule checked out in lib/submodule/ with its own packet.dependencies etc.
Im fine with running what I need in there, but when I go to the high level project,
it seems i need to add references for all the packages the submodule depends on to packet.dependencies
or i get
    "Paket failed with : ZZZ was referenced, but it was not found in the packet.lock file in group Main"
when running packet install. The submodule does depend on ZZZ, but how does paket know this?.

I think we could at least stop Paket from going further down we it finds the second Paket.dependencies file

Mhm I can't reprodice. #9df758a shows that we skip files in subfolders if we find paket.dependencies

Not sure if I have the exact same issue, but I've managed to reproduce it.
You need to create a solution with a separate dependencies file and include some nuget package in there. Then create a project and add this package into project's references file. After that, inside the solution folder create a folder for submodule solution with it's own dependencies file and add some different package there. Then create a project in submodule solution with a corresponding references file. And add a reference from root project to submodule project. Now you can invoke install command for root solution and see this error.
Somehow github doesn't allow me to attach a zip file with an example solution, so if you need, you can get it here: https://dl.dropboxusercontent.com/u/4951862/SubmoduleTest.zip


dns/bind: revamp logging

This PR revamps the logging pages:

Combines the three pages into one page with multiple tabs.
Adds a log format handler to parse out the individual fields.

Result:

Merged, thanks a lot for working on this! ❤


Add Full Stadia Controller Support

references: parsec-cloud/parsec-sdk#41
I opened a issue in this repo, because very likely it has to be implemented here.
In addition to the problem stated in the original issue I tried the 0-minimal.c example in the examples order on my linux machine. As expected the L and R Trigger aren't recognized as well as the assistant and the capture button of the Google Stadia Controller.
All buttons worked when capturing events of the controller with evtest.

@chrisd1100 Could you provide some information to this bug?

@chrisd1100 Can you provide some information about this bug? What would be necessary to resolve this bug? Can I help somewhere?

I'm in the process of acquiring a Stadia controller for testing, this should be a fairly easy fix. Controller support is very important for Parsec & libmatoya so we definitely want to make it happen.


High level wrapper for parsing binaries

Performs the parsing in a single function call instead of requiring assembling the pieces yourself and also doing your own error handling.
Resolves #50

@pinkforest you wanted to use this, so let me know if this fits your use cases.
It still needs docs but other than that should be good to go.

I'll keep refining it in-tree, but I still do want feedback on this.

btw what we'll be doing with the public API as I think whilst the raw_ etc. fn's are a okay for MVP we can probably design something more sugary that doesn't care about raw data

The raw_* functions are needed for rust-audit-info which doesn't perform JSON parsing/validation, so that step is unnecessary. It would be perhaps nice to return a String for clarity, but that performs a potentially useless UTF-8 validation.
Perhaps I should indeed make it return String - that will be a lot easier to understand, and the UTF-8 validation overhead should not be too big. And if someone needs a lower-level interface, the modular crates are right there.

Hm. Maybe I need to explain what I would expect from a high level auditable-info API -
The high level API should be kept with consumer in mind and it should be easy to consume e.g. provide Iterables and like
Consumer should not need to care about messing with dependency tree structured and stuff like that or even care about whether the data structure is JSON or something else - that is implementation detail to auditable.
I can understand it for the low-level API but if we are to provide high-level API then it should be something like this:
Maybe one could use JSON Path ? but then that ties into a data format which is supposed to be implementation detail
info = auditable_info::from(T); // T generic can be `File` | `OssString` | ..

info.path('json_path')

Based on the experience with integrating it into cargo-audit and Trivy, the API of just exposing the format directly appears to be the right level of abstraction. The scanners then convert it into their native data structures, which are fairly close to the JSON format. And since the format is stable, just exposing the format is the most API-stable thing we can do.

I believe you are correct about this not really being a high-level API, but I don't have any use cases for a high-level API, so I cannot design an API that will actually be useful that way. So for now I'm leaving it at the level of abstraction that is useful in cargo audit, rust-audit-info and Trivy.

Yeah I think we need consumer use-cases in order to design that - if any. correct


[HOTFIX] Fix After alter table add column schemaOrdinal is not continuous

Why is this PR needed?
Consider a scenario with complex columns[c1 int, c2 array, c3 array] here schema ordinal of child columns are -1. so c1, c2, c3 has ordinal 0, 1, 2. After alter table add column "c4 int", its ordinal should be 3. But currently it is 6 (due to flat column schema).
This will give problem when this ordinal is  referred for some other functionality like rearrange projection columns.
What changes were proposed in this PR?
make schema ordinal continuous by collecting previous schema ordinal max.
Does this PR introduce any user interface change?

No

Is any new testcase added?

No

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/1627/


MSIX applications:  CacheFilePath

private static readonly string CacheFilePath = $"{ Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}{APPName}\msalcache.bin";
This string causes an error that an escape error and if you fix the escape error it causes an error that your app name is not recognized.  Examples Below:

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ff6b0d71-daf8-e75a-5157-a8a3c1c8bf1a
Version Independent ID: 64d94165-c058-3867-fc63-6d816399fde4
Content: Token cache serialization (MSAL.NET) - Microsoft identity platform
Content Source: articles/active-directory/develop/msal-net-token-cache-serialization.md
Service: active-directory
Sub-service: develop
GitHub Login: @jmprieur
Microsoft Alias: jmprieur

@JamesHHoustonII This forum feedback is used for particular GitHub Documentation. Please share the link this feedback is associated with so that we can route it to correct team for further action.

Document Can be found at :
https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-net-token-cache-serialization

@JamesHoustonII what is the full app name not recognized error that you receive? The namespace error can be if the namespace is named the same as the type, in which case it may need to be changed to something different.

Just to make sure I am using the correct AppName, I am using the name
listed as the project name in the solution explorer. I'll look to see if I
used the name twice.
On Fri, Jul 24, 2020, 8:12 PM Marilee Turscak - MSFT <
<EMAIL_ADDRESS>wrote:

@JamesHoustonII what is the full app name not recognized error that you
receive? The namespace error can be if the namespace is named the same as
the type, in which case it may need to be changed to something different.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/59694#issuecomment-663788459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTKESK3RWPK4SSQZS7YC5DR5IWOPANCNFSM4PG4E5UA
.

The app looks like it recognizes the App Name, I still end up with
unrecognized escape sequence error any thoughts as to why this string is
not working?
On Fri, Jul 24, 2020, 10:27 PM James Houston II<EMAIL_ADDRESS>wrote:

Just to make sure I am using the correct AppName, I am using the name
listed as the project name in the solution explorer. I'll look to see if I
used the name twice.
On Fri, Jul 24, 2020, 8:12 PM Marilee Turscak - MSFT <
<EMAIL_ADDRESS>wrote:

@JamesHoustonII what is the full app name not recognized error that you
receive? The namespace error can be if the namespace is named the same as
the type, in which case it may need to be changed to something different.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/59694#issuecomment-663788459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTKESK3RWPK4SSQZS7YC5DR5IWOPANCNFSM4PG4E5UA
.

I'm assigning this to the author @jmprieur because it looks like it may be related to https://github.com/MicrosoftDocs/azure-docs/issues/49182

@JamesHHoustonII I've updated the doc with a fix to the code snippet in https://github.com/MicrosoftDocs/azure-docs-pr/pull/133147 (private repo, may 404 for you) - it wasn't correctly commented in the <summary> block. However, that doesn't exactly solve your issue with regard to the unrecognized escape sequence.
If you're still having this issue, I recommend opening an issue in the MSAL.NET repo to get direct help from the team:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet

I solved it a month or so back I have not yet published the fix.
On Thu, Oct 8, 2020 at 6:50 PM Marsh Macy<EMAIL_ADDRESS>wrote:

@JamesHHoustonII https://github.com/JamesHHoustonII I've updated the
doc with a fix to the code snippet in MicrosoftDocs/azure-docs-pr#133147
https://github.com/MicrosoftDocs/azure-docs-pr/pull/133147 (private
repo, may 404 for you) - it wasn't correctly commented in the
block. However, that doesn't exactly solve your issue with regard to the
unrecognized escape sequence.
If you're still having this issue, I recommend opening an issue in the
MSAL.NET repo to get direct help from the team:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/59694#issuecomment-705886987,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTKESNLCQTLQK2VILAHJRTSJZF57ANCNFSM4PG4E5UA
.


APT installation broken when using Nginx's APT repository.

When using nginx's APT repo's the standard apt installation for the bouncer breaks due to a dependency issue.
Mainly because package names differ between the repos and the standard nginx-lua module is not included as separate package in the nginx repo.
When apt attempts to install this, this results in a dependency conflict as shown below:
sudo apt-get install crowdsec-nginx-bouncer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nginx : Conflicts: nginx-common but 1.18.0-6.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Suggested resolution
Update the debian/control file to reflect a situation where only nginx being installed instead of both nginx and libnginx-mod-http-lua would be sufficient.

Same problem here, using ubuntu 20.04 updated.
root@host:~# sudo apt install lua5.1 libnginx-mod-http-lua luarocks gettext-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
gettext-base is already the newest version (<IP_ADDRESS>-10build1).
gettext-base set to manually installed.
The following additional packages will be installed:
  autoconf automake autotools-dev file libdpkg-perl libfile-fcntllock-perl libltdl-dev liblua5.1-0 liblua5.1-0-dev libluajit-5.1-2
  libluajit-5.1-common libncurses-dev libnginx-mod-http-ndk libreadline-dev libtool libtool-bin lua-any lua-sec lua-socket nginx-common
  pkg-config
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext debian-keyring bzr libtool-doc ncurses-doc readline-doc gfortran | fortran95-compiler
  gcj-jdk fcgiwrap nginx-doc dpkg-dev
The following packages will be REMOVED:
  nginx
The following NEW packages will be installed:
  autoconf automake autotools-dev file libdpkg-perl libfile-fcntllock-perl libltdl-dev liblua5.1-0 liblua5.1-0-dev libluajit-5.1-2
  libluajit-5.1-common libncurses-dev libnginx-mod-http-lua libnginx-mod-http-ndk libreadline-dev libtool libtool-bin lua-any lua-sec
  lua-socket lua5.1 luarocks nginx-common pkg-config
0 upgraded, 24 newly installed, 1 to remove and 103 not upgraded.
Need to get 3,092 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

root@host:~# sudo apt install nginx lua5.1 libnginx-mod-http-lua luarocks gettext-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
gettext-base is already the newest version (<IP_ADDRESS>-10build1).
gettext-base set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnginx-mod-http-lua : Depends: libnginx-mod-http-ndk (= 1.18.0-0ubuntu1.2) but it is not going to be installed
                         Depends: nginx-common (= 1.18.0-0ubuntu1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@host:~#

there is no problem to run nginx 1.22 with crowdsec, as far i know.
Basically it wants to remove my nginx 1.21 and setup nginx-comon 1.18.

Hello,
When using the nginx provided by ubuntu/debian, we need the dependancy on libnginx-mod-http-lua because the bouncer needs LUA to work, so removing the dependancy would likely break the installation for the majority of the users.
AFAIK, the nginx repository does not provide  the LUA module (please correct me if this is wrong) so the bouncer won't work with it anyway.
We are currently exploring how to support the official nginx repositories, but for now the only way for you to use the bouncer would probably be to manually build the LUA module and install the bouncer using the install script in this repo or switch to openresty (should work pretty much out of the box with your nginx config, but that's likely a big change) and use the openresty bouncer.

We are currently exploring how to support the official nginx repositories, but for now the only way for you to use the bouncer would probably be to manually build the LUA module and install the bouncer using the install script in this repo or switch to openresty (should work pretty much out of the box with your nginx config, but that's likely a big change) and use the openresty bouncer.

Of course we need to support nginx, at least from the linux repo, but as an extra comment: most of linux sysadmin use nginx bouncer because you can not see the real IP using iptables when you have a proxy between you and the user. Maybe I am missing windows servers or customized nginx configs, I do not know. So maybe the simplest and efficient solution is to provide a middleware between 80/443 ports and nginx, using iptables, like bitninja does. using iptables rules it will forward the traffic to the middleware and filter. and this middleware can be a simple nginx, that works out of the box.
I do not want to make it more complex, I am just saying that maybe most of the cases this is the problem about nginx use. - A very popular opensource panel called hestiacp use nginx from the oficial repo.

There is another opensource panel called cyberpanel that use openlitespeed and is not compatible with crowdsec http bouncer
And Plesk, one of most popular closed source panel, can not filter users that come from proxy using nginx bouncer because they use a custom nginx package (called sw-nginx)

So maybe a simple docker solution or a custom nginx instance that read 80/443 traffic just to block some IPs will not just fix the most common nginx use, but also will expand the crowdsec solution to another 3 very popular web server panels.

The solution to this issue is ppa/odrej repositories.
The steps below work on Ubuntu 20.04 and 22.04:
sudo add-apt-repository ppa:ondrej/nginx
sudo apt install nginx lua5.1 libnginx-mod-http-lua luarocks gettext-base lua-cjson
sudo apt install crowdsec-nginx-bouncer

But it's not recommended here https://github.com/crowdsecurity/cs-nginx-bouncer/issues/53#issuecomment-1947999950


How to create a model with only predict_net.pb?

I translated some models from caffe, i.e. alexnet. Now, I want to create and initialize the model randomly in caffe2(without using the pre-trained weights). How can I do that? Simply executing the code below will raise an error
net_def = caffe2_pb2.NetDef()
with open('alexnet.pb', 'r') as f:
    net_def.ParseFromString(f.read())
    net_def.device_option.CopyFrom(device_opts)
workspace.CreateNet(net_def)
'''
RuntimeError: [enforce fail at operator.cc:26] blob != nullptr. op Conv: Encountered a non-existing input blob: data
'''

You can run it in caffe.Net(prototxt, caffe.TEST) and then save the caffemodel using net.save. Finally, translate it to caffe2

@KeyKy , this works but looks rather ugly. What if I do not have caffe in my system? Why do I have to save such useless random weights in disk (for every network structure I would like to use)?
I just want to randomly initialize all parameters on-the-fly. I think it should not be any difficult to create all the blobs as long as we have the network definition file.

try to use FeedBlob before createnet...


MNT: clarify how suspenders get evaluated

Description

While looking at the #1501 and friends we had questions about if we needed to protect possible I/O with locks.  This refactors that code so that we do not need a lock.
Motivation and Context

Suspenders work by injecting (a bunch of ) plans onto the plan stack (why not just one you ask....that is a very good question...~for a later date~ the last commit in this PR).
Previously the sync function (called from the Suspenders classes from a background thread (in the case of ophyd the ophyd trampoline thread)) would create a task that would then muck about to add the plans to the plan stack, do any rewinding, set up the wait etc.  If we were to put any awaits in this coroutine than there is a chance that the _run task would get time again and we would end up in a possibly inconsistent state!
This refactor moves all of the work to modify the plan stack into a coroutine which is added to the plan stack in the prior co-routine and then does it the set up.  It will be safe to run any I/O related async calls in this new co-routine as it is being awaited in the _run loop!
How Has This Been Tested?

Because there is an extra message some of the tests did have to be modified.  The test suite caught many bugs in the early drafts of this PR.

This seems sensible to me, although I can't say I understand the finer details of the code. Will you merge this then I merge master into #1502?


When aside menu is open, the page can be scrolled on vertical.

It looks like the main panel is translated, but the viewport is not locked with overflow.

Could not reproduce the issue on 2.2.7.


Issue with k8s.io/docs/tasks/debug-application-cluster/debug-service/

This is a...

[ ] Feature Request
[x] Bug Report

Problem:
I have been using hyperkube to create a local cluster and started a few demo pods and a service on the same host within the same namespace. And I have been using Calico v2.2.1 as my network plugin.
However, the pods cannot ping each other before isolation is enabled.
I have been using https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/ for debugging. The Service, Endpoints, Pods, kube-proxy seem all work normally. I just cannot reach other pods from within one pod.
Kubernetes Version:
1.6.4
Network plugin:
Calico v2.2.1

@levivic 👋 This issue sounds more like a request for support and less like an issue specifically for docs. I encourage you to bring your question to the #kubernetes-users channel in Kubernetes slack.


Does only report text values to InfluxDB

I have enabled pretty much all sensors for my Easee integration and my HASS installation has InfluxDB configured.
But when I configure dashboards in Grafana (with InfluxDB as source) I can only find sensors, in the list, which have a text string value. None of the other sensors, such as voltage, total power, session energy, etc. shows up. But sensors such as status, locked charger, etc shows up with their text string value.
Is this an error with data type or similar or is it something on my end?

Nevermind. Had selected the wrong column in Grafana.


add more cases to switch

Cases as per WMO Weather interpretation codes.

App throws error when location not found.


Getting ParseError when trying to create post.

use new Date() instead of Date in Entities while using TYPEORM.


UWP Compatibility

I am kind of new to rust, thus I don't know if winapi even technically supports UWP, but:
You are using a restricted API and I think there is a drop-in replacement:
https://docs.microsoft.com/de-de/windows/win32/devnotes/rtlgetversion?redirectedfrom=MSDN
versus
https://docs.microsoft.com/de-de/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexa?redirectedfrom=MSDN
Also see the remark there:
RtlGetVersion is the equivalent of the GetVersionEx function in the Windows SDK. See the example in the Windows SDK that shows how to get the system version.

I don't know if that's enough to just be UWP-ready or if there is A) additional APIs in place which need to be modified (especially those querying XP-Flaws) or B) if this is even possible with UWP, but it would be good if you/we could look into this issue :)
Using GetVersionEx() shouldn't harm in any case :)

Honestly, I'm not that proficient with Windows API, but I don't like the following line in the GetVersionEx description:

GetVersionEx may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper functions

Additionally, I have found mentions that GetVersionEx can return different versions depending on compatibility entry in the application manifest. On the other hand RtlGetVersion is affected by compatibility settings that a user can set for an application.
I have seen some suggestions on Stack Overflow to use RtlGetNtVersionNumbers, though it is undocumented. I wish getting operating system version wasn't that tricky.
Actually it looks like there aren't many ways to detect the Windows Version on UWP.
For my use case it looks like excluding UWP is the most simple one there.
The only thing I could find was https://social.msdn.microsoft.com/Forums/vstudio/en-US/2d8a7dab-1bad-4405-b70d-768e4cb2af96/uwp-get-os-version-in-an-uwp-app?forum=wpdevelop, but I doubt we can easily leverage this API.
On top of that even the VersionHelper Functions aren't available on UWP, or else somehow could easily (but ugly) query every boolean flag and build the version that way.


Config of SpeedyRec in MIND

Hello, what is the exact config used for MIND ckpt?

Sorry for the late reply. We update the link, where you can download the config.json. And we update the README in speedy_mind with more detailed commands for prediction based on the provided ckpt. In our experiment, the AUC on test data is 0.7201.


Support for packages for iphoneos and android

There are currently no packages that support any other platforms than linux, macos and windows. Is there anything that prevents other platforms to be supported or how would one go about to add support? I tried adding on_install("iphoneos", ... but then I need a way for xmake to pass on the detected compiler and SDK to the sub-make. Is there a way to do that already? I can not find any documentation about that.
Thanks for your effort on xmake. It is truly brilliant. And I think iphone and android package support would be a killer feature :)

Currently only the tbox package is supported on all platforms. As long as the package is maintained with xmake.lua, it can easily support other platforms, including cross toolchain. Of course, the source code itself needs to support these platforms.
I will add support for iphoneos/android in the next xmake version, passing the build environment for these platforms to autoconf/cmake..
If you are interested, you can pay attention to https://github.com/xmake-io/xmake/tree/master/xmake/modules/package/tools, or help me improve them to pass iphoneos/android build environment

I will support it, you can see https://github.com/xmake-io/xmake/issues/399 to know lastest progress.

Done


Memory efficient reshape

If a tensor is broadcasted along a dimension, i.e. it as stride 0, and  one wants to reshape it, pytorch will first try to create a view.
If that fails, because dimensions merged or split are broadcasted or in the wrong order, pytorch will create a contiguous version of the tensor and reshape it.
This will remove all broadcasting and create a large memory allocation, even if the broadcasting could be preserved.
For example:
import torch

a=torch.rand(1,2,1).expand(100,2,2)
print("a", a.shape, "stride:", a.stride())
print("storage a", a.untyped_storage().nbytes(), "bytes")

b=a.reshape(-1,4)
print("b", b.shape, "stride:", b.stride())
print("storage b", b.untyped_storage().nbytes(), "bytes")

# instead, pytorch could do this
c=a[:1].reshape(-1,4).expand(100,-1)
print("c", c.shape, "stride:", c.stride())
print("storage c", c.untyped_storage().nbytes(), "bytes")

torch.testing.assert_close(b,c)

a torch.Size([100, 2, 2]) stride: (0, 1, 0)
storage a 8 bytes

b torch.Size([100, 4]) stride: (4, 1)
storage b 1600 bytes

c torch.Size([100, 4]) stride: (0, 1)
storage c 16 bytes

This is a huge issue for our reshape/rearrange, as it would result in large memory allocation.
This code instead tries to figure out which axes will be merged together by the reshape. If all axes in a group are broadcasted (or there is only one broadcasted axis in a group), it will first remove the broadcasting.
Then it will create a new, contiguous copy of the smaller tensor, before restoring the broadcasting.
I think this approach will make it possible to avoid reimplementing the full einops string parsing and still do the "rearrange sheuld behave as-if broadcasted" we agreed upon, while also taking @schuenke and @JoHa0811's remarks about memory efficiency into account:
We broadcast the tensors in the reaarnge, then make einops use our efficient reshape -- either via temporarly  setting the .reshape method on the tensor or by modifying the TorchBackend in einops. Afterwards, we can remove existing broadcast dimensions again.
The functionality will also be preserved if this function is ever removed -- it will then just be a lot less efficient in memory.
Thus maintenance might be feasible -- it is quite clear what the result of the function should be: Besides strides etc, it should do exactly the same as torch.reshape.

pre-commit.ci autofix


snmp page counting is unreliable - give way to disable it in PPD file

Hi Mike,
our customer found out that snmp page counting is unreliable for some printers (printers seems to send end of printing before life counter in printer snmp agent got updated - this behavior resulted in bad page count in cups web ui), so we implemented the way to turn off page counting by snmp. User simply add "cupsSNMPPages: False" into printer ppd file and cups then uses counting by 'PAGE X 1' messages.
I understand CUPS project is on its way to drop .ppd functionality, but IMHO it is good to offer opportunity for these, which still uses ppd files and they complain about snmp page counting, until better solution is implemented.

@zdohnal How is this different from the *cupsSNMPSupplies keyword that does the same thing (plus supply level information)?
I really don't want to add yet another switch for controlling a legacy protocol.

It only switches off SNMP page counting - supply level info is still shipped by SNMP.

Still not convinced, but will hold this possibly for a future release.

I can possibly rewrite it into similar way as cupsSNMPSupplies are applied - like command line option, if it helps. But it didn't look like as such serious issue with high impact to have extra command line option - but sure, it will look better if it can be set by command line. Is it acceptable?

OK, the changes for issue #4991 should mitigate the issues associated with lowball accounting numbers - we now use MAX(printer-page-count,filter-page-count) when reporting the number of pages that were printed.

OK, I'm punting on this pull request since our future focus will be on modern protocols...


swiper.controller is undefined

Check that this is really a bug

[X] I confirm

Reproduction link
https://github.com/fenyiwudian/nobuta/tree/master/backup/client_demo/swiper
Bug description

clone repository of the  reproduction link
cd nobuta/backup/client_demo/swiper
yarn install
yarn start
open localhost:5678 in your browser
open dev tools console will see

Uncaught TypeError: Cannot set property 'control' of undefined

the reproduction demo was migrated from https://codepen.io/ezra_siton/pen/eYOPBPX which use swiper via script tag directly，it seems using swiper via script tag will work，but not when using via es module import。
Expected Behavior
swiper.controller should exist
Actual Behavior
Uncaught TypeError: Cannot set property 'control' of undefined
Swiper version
6.8.1
Platform/Target and Browser Versions
macOS Big Sur 11.4
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

https://swiperjs.com/get-started#install-from-npm

By default Swiper exports only core version without additional modules (like Navigation, Pagination, etc.). So you need to import and configure them too:


Automatically create a GitHub release linking to release notes for every tagged release

Can use this API called from Travis: https://developer.github.com/v3/repos/releases/#create-a-release
The release it generates should look like this one: https://github.com/simonw/datasette/releases/tag/0.24

I'm not going to do this. I have a good enough solution now pasting the rendered HTML from the release notes into https://euangoddard.github.io/clipboard2markdown/ to get the Markdown.


Assertion to check if property of stored thing contain value

This will add the assertion as title described.

!force code review

Paging @goodevilgenius to review the back-end work in this pull request!
Paging @TaysirTayyab to review the testing work in this pull request!

!reassign back-end @awesomeousPrime

Paging @awesomeousPrime to review the back-end work in this pull request!

!reassign testing @joshmedeski

Paging @joshmedeski to review the testing work in this pull request!

@johnnie502 back-end review complete 3ac719e

@johnnie502 back-end review 👍


Do not persist data to memory by default when creating tables

Currently data is persisted into memory when create_table is invoked. Instead this PR will set the default for persist to False which will prevent that from happening.
This Closes: https://github.com/dask-contrib/dask-sql/issues/218

Ideally I'd like to hold off on merging until CI tests are up and we can test the impact of these changes on the PR. Does that work for others?

Sounds perfectly logical to me
On Mon, Sep 27, 2021 at 2:40 PM Ayush Dattagupta @.***>
wrote:

Ideally I'd like to hold off on merging until CI tests are up and we can
test the impact of these changes on the PR. Does that work for others?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rapidsai/dask-sql/pull/7#issuecomment-928169761, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQHLAZBOCWP3FS6XTDYDWLUEC3B5ANCNFSM5EWU5FKQ
.

@jdye64 this went in PR ( https://github.com/dask-contrib/dask-sql/pull/245 ), right? If so, is this ok to close?

Correct. It is good to close


Improve writing a language service plugin

While creating our Language Service plugin we used this article as our main source. It was a huge help. Here are a few improvements so it can be of an even better help for the next person using it.
This PR does two small changes:
Fix the "Decorator Creation" code example

Return create to the factory function instead to itself
Return proxy to the create function
Add export = init; to the end of the example

Add a bit more context to the "Handling User Configuration" code example
The combination of the bug in the "Decorator Creation" code example and this code example was confusing us. I think a little extra context will help the next person reading this.

I agree, thanks!


Create naimekutuk

confirmed:ID3
DocumentType:verified
Nationality:verified
DeviceDetails:verified
Experience:verified
Screenshot:verified

confirmed:ID3
DocumentType:verified
Nationality:verified
DeviceDetails:verified
Experience:verified
Screenshot:verified


Make the virtualenv extension work better

This fixes #511
It allows the virtualenv plugin to call back and tell the airline plugin
to update the statusline. Therefore, the new function
airline#extensions#virtualenv#update() is provided. However, to properly
fix this issue, the virtualenv plugin needs to call this function.
Second, depending on $VIRTUAL_ENV is not safe, since the virtualenv
plugin might define it itsself when calling :VirtualEnvActivate
Therefore skip this test and just test for existance of he
:VirtualEnvList command.

okay, will add


Require MMD data access and storage fields(?)

Currently, Arome Arctic datasets are coming through dmci without any data access fields. We should make that and the storage field required. What does the MMD docs say about this?

Some datasets use a THREDDS-url instead of lustre-filepath for the mmd:storage_information mmd:file_location - element.

Both file path and opendap url should be provided. This will be handled in py-mmd-tools through https://github.com/metno/py-mmd-tools/issues/232 but we also need to check it in DMCI.

Needs to be set in mmd_strict

Also, we should probably check that the file and the opendap url exists. Is this possible for the file storage, when it is on lustre?

This can not be required due to metadata should be able to reference files that are removed. See discussion on the MMD-repo. We will implement a warning to the data-producer in py-mmd-tools if these fields are missing

See https://github.com/metno/py-mmd-tools/issues/253


[Bug] [autogenstudio]: duplicate part of prompt when use groupchat

Describe the bug
In case where you use a group chat workflow, the part with skill is duplicate:
i found two times :
While solving the task you may use functions below which will be available in a file called skills.py .\nTo use a function skill.py in code, IMPORT THE FUNCTION FROM skills.py  and then use the function.\nIf you need to install python packages, write shell code to\ninstall via pip and use --quiet option.\n\n         \n\n##### Begin of get_browse_service_in_the_network #####        ...................n\n#### End of get_browse_service_in_the_network ####
with same skill
it seems that it caused by the load function in class AutoGenWorkFlowManager

    agent_spec = self.sanitize_agent_spec(agent_spec)
    if agent_spec.type == "groupchat":
        agents = [
            self.load(self.sanitize_agent_spec(agent_config))
            for agent_config in agent_spec.groupchat_config.agents
        ]

it's because load function call it self. and sanitize_agent_spec insert the skill prompt
Steps to reproduce
use a goup chat with agent with a skill
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response

@victordibia is it possible that a skill is registered twice?

@nicho2,
Thanks for noting this.
There indeed was a bug where sanitize_agent_config was called twice for agents in groupchat leading to the duplicate message. I pushed a fix which should be available in v0.0.56
pip install -U autogenstudio

Closing as this has been fixed.


Empty Table of Contents List for PDF LCP

Bug Report

What happened?
We tried to open PDF (LCP) file both in our app and test app. We were able to successfully open it. However, we experienced an empty Table of Contents . We tried the same file without the LCP, we were able to get the Table of Contents successfully.
mediaType : application/pdf+lcp
Extension:  lcpdf
Sample PDF LCP
https://tuxedo-preprod-icdp.yondu.net/api/ebook/mobile/lcp/get-book-lcp/be7ec450-4617-4b53-bc92-d910951636ea/293
[passphrase: 293]
Screenshot of PDF with LCP with table of contents

Sample PDF without LCP
https://document.desiringgod.org/providence-en.pdf?ts=1614698206
Screenshot of PDF without LCP with table of contents

We tried to view the PDF with LCP in Thorium it can fetch the publication's table contents, however in the test app and Android app, we can't retrieve it. Hope you can assist us on how to fetch it thanks!
My teammate also notified me that this is also experienced in iOS as well.

Expected behavior

We expected to view the table of content list same with the PDF without the LCP.

How to reproduce?

To test Sample PDF with LCP

Press the floating "+" button and select Enter a URL.
Enter _https://tuxedo-preprod-icdp.yondu.net/api/ebook/mobile/lcp/get-book-lcp/be7ec450-4617-4b53-bc92-d910951636ea/293_
Enter 293 as passphrase.
View Table of Contents (from the Option Hamburger menu).

To test Sample PDF without LCP

Press the floating "+" button and select Enter a URL.
Enter _https://document.desiringgod.org/providence-en.pdf?ts=1614698206_
View Table of Contents (from the Option Hamburger menu).

Environment

Readium version:
I'm not sure what the Readium version is. We imported the whole project from Github.
I tried to get the maven repository for this instead however we are experiencing error when integrating with LCP.

implementation "readium:liblcp:1.0.0@aar"

so we copy and pasted the whole library code instead.

Development environment

OS:  Windows 10
IDE:

Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022
Runtime version: 11.0.12+7-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Testing device

Android version: 10
Model: Huawei P20 Pro
Is it an emulator? No, However we tested this in an emulator as well. We also tested this from other android devices too.

Additional context

Are you willing to fix the problem and contribute a pull request? Yes or No
Sorry I can't right now.
But to be transparent, we updated the saving of Highlight DB's primary key to String (generate UUID) to be the same with iOS, so we can sync it with iOS.

Output logs
I added Logs to view Table of Content list in PdfReaderFragment (org.readium.r2.testapp.reader)

Sample PDF without LCP
2022-09-19 17:34:41.515 12617-12617/org.readium.r2reader D/Readium: publication tableOfContents = [Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=14, type=application/pdf, templated=false, title=Introduction: Four Invitations, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=28, type=application/pdf, templated=false, title=Part 1: A Definition and a Difficulty , rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=30, type=application/pdf, templated=false, title= 1 What Is Divine Providence?, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=40, type=application/pdf, templated=false, title= 2 Is Divine Self-Exaltation Good News?, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=48, type=application/pdf, templated=false, title=Part 2: The Ultimate Goal of Providence , rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=50, type=application/pdf, templated=false, title=Section 1: The Ultimate Goal of Providence before Creation and in Creation , rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=52, type=application/pdf, templated=false, title= 3 Before Creation, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=60, type=application/pdf, templated=false, title= 4 The Act of Creation, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=70, type=application/pdf, templated=false, title=Section 2: The Ultimate Goal of Providence in the History of Israel , rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=72, type=application/pdf, templated=false, title= 5 Overview: From Abraham to the Age to Come, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=88, type=application/pdf, templated=false, title= 6 The Exodus Unfolds, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=100, type=application/pdf, templated=false, title= 7 Remembering the Exodus, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=112, type=application/pdf, templated=false, title= 8 The Law, the Wilderness, and the Conquest of Canaan, rels=[], properties=Properties(otherProperties={}), height=null, width=null, bitrate=null, duration=null, languages=[], alternates=[], children=[]), Link(href=/4d144c50-84e2-4323-87c6-ae388d0d47c5.pdf#page=126, type=application/pdf, templated=false, title= 9 The Time of the Judges and the Days of the Monarchy, rels=[], propertie
Sample PDF LCP
2022-09-19 17:34:36.615 12617-12617/org.readium.r2reader D/Readium: publication tableOfContents = []

Hi @mickael-menu . Any update on this issue.

I think the contributors working on this are going to open a PR soon.

Hi @mickael-menu ,I discovered an alternative way to generate the Table of Contents (TOC) in a PDF using a single dependency. Would it be alright if I shared the code here for your review?

Sure.


CocoaPods

I'd be cool to also add CocoaPods support. I done this implementation myself last month for my library. Just follow this post and this checklist.

second. I made this into a local pod for now

This project is now deprecated as a result of Apple's deprecation of the ASL subsystem.
Closing ticket.


Align RHEL9 hardening to RHEL8 to pass OpenSCAP check

Overall Review of Changes:
OpenSCAP checks if the sudo logfile definition exists in /etc/sudoers. If the path is wrapped with quotes the check fails. The RHEL8 CIS task does it without quotes: https://github.com/ansible-lockdown/RHEL8-CIS/blob/devel/tasks/section_5/cis_5.3.x.yml#L35

Issue Fixes:
No open issue.
Enhancements:
OpenSCAP will accept the hardening.
How has this been tested?:
N/A

hi @jLemmings
Thank you for taking the time to raise this PR. While openscap may not need quotes, CIS does ask for it to be quoted. We often find that many scanners are very brittle in checks not allowing for differing ways of doing things. While this may fix the openscap scan it may break another scan for someone else. So we choose to adhere to documented control.
Unfortunatley for this reason, we will leave as it current is, or we end up trying to make the code fit all the different scanner out there.
I hope that makes sense.
many thanks once again
uk-bolly

closing PR as unable to complete, different scanners looking for different restrictive values, unable to accomodate all. Written as close to documented controls


Suggestion to incorporate typing

Hey @mattvalleycodes.
I made some attempts to add typing, and here is what I got.
Please give it a try
https://gist.github.com/jhesgodi/ba0039008fa0d24eef32f93b467d8d9c

Closed by https://github.com/mattvalleycodes/variant-classnames/pull/9


Fixed the popover border display in dark theme

Previously, the popover border appeared white in dark theme border border-gray-100, which disrupted the overall styling. I updated the style to ring-1 ring-gray-950/5 dark:ring-white/10, ensuring the border displays correctly in both dark and light themes.
Dark theme - Before

Dark theme - After

Light theme - Before

Light theme - After

sorry for the delay.
Thank you so much.


MissingPluginException

I am getting "MissingPluginException (MissingPluginException(No implementation found for method observeConnectionState on channel flutter_ble_lib))"
on line:
connectedDevice.observeConnectionState(emitCurrentValue: true, completeOnDisconnect: true)
    .listen((connectionState) {
      print("Peripheral ${connectedDevice.identifier} connection state is $connectionState");
      stateCallback(connectionState == PeripheralConnectionState.connected);
    });

after calling connectedDevice.disconnectOrCancelConnection();

Could you paste logs set to verbose?

This?:
MethodChannel.invokeMethod
(c:\Users\Jan\development\flutter\packages\flutter\lib\src\services\platform_channel.dart:319)
<asynchronous gap> (Unknown Source:0)
DeviceConnectionMixin.observePeripheralConnectionState (c:\Users\Jan\development\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_ble_lib-2.2.1\lib\internal\bridge\device_connection_mixin.dart:46)
<asynchronous gap> (Unknown Source:0)
InternalBleManager.observePeripheralConnectionState (c:\Users\Jan\development\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_ble_lib-2.2.1\lib\internal\internal_ble_manager.dart:94)
Peripheral.observeConnectionState (c:\Users\Jan\development\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_ble_lib-2.2.1\lib\peripheral.dart:33)
Bluetooth.connect (c:\Users\Jan\development\bokashi_organko\lib\bluetooth.dart:33)
_HomePageState._deviceFound.<anonymous closure> (c:\Users\Jan\development\bokashi_organko\lib\pages\home.page.dart:82)
_Closure.call (dart:core-patch/function.dart:0)
InkWell.onTap (c:\Users\Jan\development\flutter\packages\flutter\lib\src\material\ink_well.dart:0)
_InkResponseState._handleTap (c:\Users\Jan\development\flutter\packages\flutter\lib\src\material\ink_well.dart:706)
_InkResponseState.build.<anonymous closure> (c:\Users\Jan\development\flutter\packages\flutter\lib\src\material\ink_well.dart:789)
GestureRecognizer.invokeCallback (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\recognizer.dart:182)
TapGestureRecognizer.handleTapUp (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\tap.dart:486)
BaseTapGestureRecognizer._checkUp (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\tap.dart:264)
BaseTapGestureRecognizer.handlePrimaryPointer (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\tap.dart:199)
PrimaryPointerGestureRecognizer.handleEvent (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\recognizer.dart:467)
PrimaryPointerGestureRecognizer.handleEvent (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\recognizer.dart:0)
PointerRouter._dispatch (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\pointer_router.dart:76)
PointerRouter._dispatchEventToRoutes.<anonymous closure> (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\pointer_router.dart:117)
_LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379)
PointerRouter._dispatchEventToRoutes (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\pointer_router.dart:115)
PointerRouter.route (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\pointer_router.dart:101)
GestureBinding.handleEvent (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:218)
GestureBinding.dispatchEvent (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:198)
GestureBinding._handlePointerEvent (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:156)
GestureBinding._flushPointerEventQueue (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:102)
GestureBinding._handlePointerDataPacket (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:86)
GestureBinding._handlePointerDataPacket (c:\Users\Jan\development\flutter\packages\flutter\lib\src\gestures\binding.dart:0)
_rootRunUnary (dart:async/zone.dart:1138)
_rootRunUnary (dart:async/zone.dart:0)
_CustomZone.runUnary (dart:async/zone.dart:1031)
_CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
_invoke1 (dart:ui/hooks.dart:273)
_dispatchPointerDataPacket (dart:ui/hooks.dart:182)

It seems destroyClient() has been called while there still were running operations and it should be called only after all operations are finished. Be sure to await for the returned futures.
Could you take a look at this? https://github.com/flutter/flutter/issues/10912

Yes, I'm looking into if cancelling the subscription on the .listen of the device state will help.

Can you try running the example from the library? The auto test will fail a lot since it has hardcoded UUIDs of services and characteristic of a Sensor Tag CC2541, but you could use it to check if the exception still occurs.

I partially fixed the error by not calling .destroyClient();, but I'm still getting:
D/BluetoothGatt(21092): close()
D/BluetoothGatt(21092): unregisterApp() - mClientIf=8
E/flutter (21092): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: BleError (Error code: 201, ATT error code: 0, iOS error code: null, Android error code: null, reason: Disconnected from C1:9E:79:91:D0:7E with status 0 (GATT_SUCCESS), internal message: null, device ID: C1:9E:79:91:D0:7E, service UUID: null, characteristic UUID: null, descriptor UUID: null)
E/flutter (21092): #0      CharacteristicsMixin._throwErrorIfMatchesWithTransactionId
E/flutter (21092): #1      CharacteristicsMixin._createMonitoringStream.<anonymous closure>
E/flutter (21092): #2      _invokeErrorHandler  (dart:async/async_error.dart:19:29)
E/flutter (21092): #3      _HandleErrorStream._handleError  (dart:async/stream_pipe.dart:288:9)
E/flutter (21092): #4      _ForwardingStreamSubscription._handleError  (dart:async/stream_pipe.dart:170:13)
E/flutter (21092): #5      _rootRunBinary  (dart:async/zone.dart:1146:38)
E/flutter (21092): #6      _CustomZone.runBinary  (dart:async/zone.dart:1039:19)
E/flutter (21092): #7      _CustomZone.runBinaryGuarded  (dart:async/zone.dart:941:7)
E/flutter (21092): #8      _BufferingStreamSubscription._sendError.sendError  (dart:async/stream_impl.dart:357:15)
E/flutter (21092): #9      _BufferingStreamSubscription._sendError  (dart:async/stream_impl.dart:375:16)
E/flutter (21092): #10     _BufferingStreamSubscription._addError  (dart:async/stream_impl.dart:274:7)
E/flutter (21092): #11     _ForwardingStreamSubscription._addError  (dart:async/stream_pipe.dart:139:11)
E/flutter (21092): #12     _ForwardingStream._handleError  (dart:async/stream_pipe.dart:104:10)
E/flutter (21092): #13     _ForwardingStreamSubscription._handleError  (dart:async/stream_pipe.dart:170:13)
E/flutter (21092): #14     _rootRunBinary  (dart:async/zone.dart:1146:38)
E/flutter (21092): #15     _CustomZone.runBinary  (dart:async/zone.dart:1039:19)
E/flutter (21092): #16     _CustomZone.runBinaryGuarded  (dart:async/zone.dart:941:7)
E/flutter (21092): #17     _BufferingStreamSubscription._sendError.sendError  (dart:async/stream_impl.dart:357:15)
E/flutter (21092): #18     _BufferingStreamSubscription._sendError  (dart:async/stream_impl.dart:375:16)
E/flutter (21092): #19     _BufferingStreamSubscription._addError  (dart:async/stream_impl.dart:274:7)
E/flutter (21092): #20     _ForwardingStreamSubscription._addError  (dart:async/stream_pipe.dart:139:11)
E/flutter (21092): #21     _ForwardingStream._handleError  (dart:async/stream_pipe.dart:104:10)
E/flutter (21092): #22     _ForwardingStreamSubscription._handleError  (dart:async/stream_pipe.dart:170:13)
E/flutter (21092): #23     _rootRunBinary  (dart:async/zone.dart:1146:38)
E/flutter (21092): #24     _CustomZone.runBinary  (dart:async/zone.dart:1039:19)
E/flutter (21092): #25     _CustomZone.runBinaryGuarded  (dart:async/zone.dart:941:7)
E/flutter (21092): #26     _BufferingStreamSubscription._sendError.sendError  (dart:async/stream_impl.dart:357:15)
E/flutter (21092): #27     _BufferingStreamSubscription._sendError  (dart:async/stream_impl.dart:375:16)
E/flutter (21092): #28     _DelayedError.perform  (dart:async/stream_impl.dart:604:14)
E/flutter (21092): #29     _StreamImplEvents.handleNext  (dart:async/stream_impl.dart:709:11)
E/flutter (21092): #30     _PendingEvents.schedule.<anonymous closure>  (dart:async/stream_impl.dart:669:7)
E/flutter (21092): #31     _rootRun  (dart:async/zone.dart:1122:38)
E/flutter (21092): #32     _CustomZone.run  (dart:async/zone.dart:1023:19)
E/flutter (21092): #33     _CustomZone.runGuarded  (dart:async/zone.dart:925:7)
E/flutter (21092): #34     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:965:23)
E/flutter (21092): #35     _rootRun  (dart:async/zone.dart:1126:13)
E/flutter (21092): #36     _CustomZone.run  (dart:async/zone.dart:1023:19)
E/flutter (21092): #37     _CustomZone.runGuarded  (dart:async/zone.dart:925:7)
E/flutter (21092): #38     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:965:23)
E/flutter (21092): #39     _microtaskLoop  (dart:async/schedule_microtask.dart:43:21)
E/flutter (21092): #40     _startMicrotaskLoop  (dart:async/schedule_microtask.dart:52:5)
E/flutter (21092):
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(21092): on native side observed method: cancelTransaction
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(21092): on native side observed method: createClient
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(21092): on native side observed method: startDeviceScan

The problem was the I wasn't closing the streams. I solved the problem by calling connectionStream?.cancel(); and rxMonitor?.cancel(); in my disconnect function.


Communication platform for development

As discussed in https://github.com/moderncv/moderncv/pull/88, there was the idea to add an additional communication platform besides GitHub. One suggestion was to use a matrix.org channel.
This issue is for discussing this idea.

I don't mind which platform we use, matrix sounds fine (but I've never used it).
I think having a communication platform would help the team share ideas and resources.
But my main point wouls be to help users and people who want to contribute to be able to ask questions and get help.
I've seen this happen on other projects, where people ask if their idea is good for the project, or if there is any interest in it. Maybe it's to get started. But once they get the feedback they usually contribute in the end but I'm pretty sure they  would never have done it if they couldn't come and ask.

But my main point wouls be to help users and people who want to contribute to be able to ask questions and get help.
I've seen this happen on other projects, where people ask if their idea is good for the project, or if there is any interest in it. Maybe it's to get started. But once they get the feedback they usually contribute in the end but I'm pretty sure they would never have done it if they couldn't come and ask.

Right, that sounds like a pretty good argument for me as well.

I don't mind which platform we use, matrix sounds fine (but I've never used it).

Since @mefuller also prefers matrix, let's go with that one. I will create a channel and share the invite link.


Files System mounting with custom offset

Is your feature request related to a problem? Please describe.
I am using signed images holding only a file system. (I wrote a tool to sign generic binaries). I write the image into a partition called "file-system" and want to mount it:
#define LITTLEFS_NODE   DT_NODE_BY_FIXED_PARTITION_LABEL(file_system)

static struct fs_mount_t lfs_storage_mnt = {
    .type = FS_LITTLEFS,
    .fs_data = &file_system,
    .storage_dev = (void *)FLASH_AREA_ID(file_system),
    .mnt_point = "/lfs",
};

...
    fs_mount(&lfs_storage_mnt);
...

Of course, that does not work. The beginning of the mounting point is not the file system, it is the image header.
Describe the solution you'd like
I want to be able to add an offset to a mounting point. As described above the mounting point is the image header thus I need an offset to mount the beginning of the files system starting after the image header.
I invested some time to add an mounting point offset but without success. And in the discord channel the answer to my issue was, that there is no use case, so it is not possible.
Describe alternatives you've considered
My workaround is to use nested partitions but that looks nasty. One partition starting with the image header, so I can update it and one nested partition starting with the filesystem for mounting it.

@nicokorn, IMO you should aim at dropping the header while writing. The header will become meaningless as soon as you start using the fs anyhow.

@nicokorn, IMO you should aim at dropping the header while writing. The header will become meaningless as soon as you start using the fs anyhow.

In general that's a good point! But I need the header:

For image validation (The tail holds SHA256 & RSA Signature fields calculated from header and image).
My file system holds a web-ui that never changes, once written.
I need to check regularly for authenticity of the web-ui / file system

For image validation (The image tail holds SHA256 & RSA Signature fields calculated from header and image).
My file system holds a web-ui that never changes, once written.
I need to check regularly for authenticity of the web-ui / file system

As said, what is the meaning of the image validation as soon as your filesystem is in use? What is the image tail ? Seems like there are two parts that are not part of the filesystem. Adding these two parts to a partition will be very error prone because they have to respect certain conditions (e.g. The filesystem itself will need to be aligned to the flash sector size, and the same is valid for the header and the trailer). Creating a good solution to cover this would be difficult.
In general it is not a good idea to add a header and a trailer to an image. It would be better to create only a header containing all required validation info and keeping the header separate from the filesystem. Then you first write the header, then the filesystem and only if they are both written a "upgrade" is started.

What is the meaning of the image validation as soon as your filesystem is in use?
Same story as with the mcu firmware which is validated every reboot in the MCUboot bootloader. The file system (Web-UI) must never be changed except on an update.
What is the image tail?
I need to clarify a bit:
The file system is packed into a MCUboot signed image. Details about header and tail here: https://docs.mcuboot.com/design.html. I have written a tool to sign generic binaries. According to the MCUboot specification.
In general:
With that approach I can use the MCUboot bootloader for validating and updating my Web-UI. Which is very comfortable. Now I can use the MCUboot bootloader to manage any partition, for example a partition holding an FPGA image, or an image for any other chip which is hooked up to my mcu and needs to be updated.

@nicokorn, I understand your needs, but from your description you were talking about a filesystem. A filesystem is not a const area in flash like other images. In a filesystem the content changes and as a result the calculated hashes are no longer valid. Also because flash is involved  the filesystem will erase the partition in blocks of erase block size and the filesystem will need to take this into account.
If your filesystem is not a filesystem but a const area (no changes at all to the filesystem), then this solution might work but it is a very limited use case. If the filesystem only consists of const items probably you do not even need a filesystem and you'd better not use littlefs.

Also because flash is involved the filesystem will erase the partition in blocks of erase block size and the filesystem will need to take this into account.

I need to add:
The Web-UI is a littlefs filesystem. I am using a python lib to convert  a Web-UI build folder into a littlefs binary with specified block-size and block-count.
I thought littlefs takes care of such topics you described, it has even a dynamic wear leveling feature and detects bad blocks.

If the filesystem only consists of const items probably you do not even need a filesystem and you'd better not use littlefs.

The big advantage of the filesystem is to call the Web-UI files/items in use with civetweb directly over links. That makes it very comfortable. Do you see any other approach?

I need to add: The Web-UI is a littlefs filesystem. I am using a python lib to convert a Web-UI build folder into a littlefs binary with specified block-size and block-count.
I think littlefs takes care of such topics you described, it has even a dynamic wear leveling feature and detects bad blocks.

No littlefs does not take care of that. Zephyr configures littlefs to use a specific erase-block-size and specific alignment to this erase-block-size. As you already have a solution you can test if it all keeps working when you are adding some data to the filesystem. Verify that you can still get the correct hashes (and that they match) after a write.
It might be that it works in your specific case (board/flash/...), but in general it will not.

If the filesystem only consists of const items probably you do not even need a filesystem and you'd better not use littlefs.

The big advantage of the filesystem is to call the Web-UI files/items in use with civetweb directly over links. That makes it very comfortable. Do you see any other approach?

I have no experience with civetweb so I can't really propose a different approach.

So far it works like a charm.  Even before my whole update story, my coworker used a partition as littlefs file system together with civetweb and uploading data into the filesystem via curl implementation and deleting files afterwards was never an issue.

For sure this works without the update procedure, this uses the partition just as a filesystem.
It is the update that will not work. Test the update procedure, make a change in the filesystem and check the validity of the hash.

It is not the idea to change the Web-UI build in the filesystem. Of course the secure hash algorithm would fail in that case. It is only about to have easy access to the Web-UI items with civetweb.

OK, let us summarize:
a. The proposed solution is only tested for read-only filesystems (and even only for littlefs),
b. It does not work for write filesystems as mcuboot refuses to boot,
The use case of ro filesystems is to limited to add such a RFC. Adding a offset to a partition to mount a fs is not without risk of errors and therefore should not be done.
BTW it is possible to get it working with a rw filesystem, but it is so limited by boundary conditions that even this should not be added:
a. The "image" header should be a multiple of the erase-block-size,
b. The "image" size should be a multiple of erase-block-size,
c. The "image" header and trailer should be "subtracted" from the partition instead of only the header.
But even in this case the secure hash fails as soon as the filesystem is written, so even this is not a good solution.

OK, let us summarize: a. The proposed solution is only tested for read-only filesystems (and even only for littlefs), b. It does not work for write filesystems as mcuboot refuses to boot,
The use case of ro filesystems is to limited to add such a RFC. Adding a offset to a partition to mount a fs is not without risk of errors and therefore should not be done.

Of course there need to be checks when mounting. When you are defining partition start address in the device tree it gets also checked when you start to build the application and throws an error if alignment is not correct.

BTW it is possible to get it working with a rw filesystem, but it is so limited by boundary conditions that even this should not be added: a. The "image" header should be a multiple of the erase-block-size, b. The "image" size should be a multiple of erase-block-size, c. The "image" header and trailer should be "subtracted" from the partition instead of only the header. But even in this case the secure hash fails as soon as the filesystem is written, so even this is not a good solution.

Correct, point A to C are common sense and my signed filesystem of course follows these rules tough I use it as ro. Also here everything can be checked for proper operation when generating the image. That's not rocket sience :-) It is our response to check the code for proper functionality before releasing it.
You forgot point D:
On every filesystem change the TLVs in the signed image need to be updated but that slows performance depending on mcu significantly down. Calculating SHA256 and RSA-2048 signature costs Time.

You are making it look more simple and straight forward than it is: the build system has no idea how the filesystem image was generated, so it can't check if there is an agreement in erase-block-size.
Regarding point D: this is not possible as the app has no knowledge of keys so it cannot update the secure TLVs, regardless of what time is needed.

You are making it look more simple and straight forward than it is: the build system has no idea how the filesystem image was generated, so it can't check if there is an agreement in erase-block-size.
The pre-condition is that the image is properly generated by the tool used for signing.

Regarding point D: this is not possible as the app has no knowledge of keys so it cannot update the secure TLVs, regardless of what time is needed.
Depends on the application and where the keys are stored. But that's not my intention to have a rw signed filesystem.


specify submodule

import of promptTemplate, HuggingFaceTextGenInference, HuggingFacePipeline, BasePromptTemplate and LLMChain from langchain core module is depreciated

Thanks, you had a typo and didn't change everything, but I used it as starting point.  Thanks!


Add option for default language for file descriptions

From a user on FB group:

I have one more idea for improvement: in the app settings, please add the option default language for the file descriptions
maybe even number of 1-2 default languages
for me that would be "bg" (if only one) and "bg" + "en" (if 2 are allowed)
this will save some time for scrolling up and down the menu, and will - i guess - reduce the number of mistaken languages
some people will probably not care enough to scroll down this menu everytime and will use the default "en" for whichever language they use
is this doable?

I would like to start working on this issue.
Regards,
Fredrik

Great idea @misaochan ! Thanks for your interest @fredrikjonasson , can you explain the implementation in your mind?

@misaochan, due to some unforeseen happenings i havent been able to investigate this closer. If anyone else have an implementation in mind and an interest of working on this one; feel free!

hi @neslihanturan I'd like to wok on this issue.

hey there , @neslihanturan could you tell me where do you get the list of the languages please? I haven't found where ...

Hi @OlgaMorales investigating current adding description process for upload can help you. We are displaying the list of language there.

Here's my PR @neslihanturan !
I hope to receive your feedback!
Regards.

Hi @OlgaMorales I can't see you PR, but I saw you pinged me. Additionally your account seems like disabled.

@neslihanturan here's my PR
Regards.


fix(cli): solo init should reset cached config

Description
This pull request changes the following:

solo init should reset cached config

Related Issues

Closes #734

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

Comparison is base (410d499) 67.51% compared to head (0669b3c) 67.51%.
Report is 1 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff            @@
##               main     #737   +/-   ##
=========================================
  Coverage     67.51%   67.51%
  Complexity      339      339
=========================================
  Files            64       64
  Lines          1336     1336
  Branches        157      157
=========================================
  Hits            902      902
  Misses          371      371
  Partials         63       63

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remove dependency on web_socket_channel.

Closing at favor of: https://github.com/dart-lang/leak_tracker/pull/174


assocaite signature warnings with the dependency that caused them

motivation: better UX for warnings
changes: add metadata with the package information to the warnings emitted when checking package signatures

@swift-ci smoke test


i18next support

Added i18next support https://github.com/iaincollins/nextjs-starter/issues/59
I took most of the implementation from with-i18next example. I added _app.js and exported it with translate HOC to inject i18n to all child components. Implementation also support XHR translation requests from the server. I implemented a custom fetch request. With the use of locale library server gets the browser language and then language is being passed to pages. I also added a dropdown to show language changes. A more detailed explanation might be needed though.

Do you have any plans to take a look at this? It would be so good if there is any example how to implement it to next starter?


[feature] DBus notification

So the actual container does not have dbus:// support, which needs a few library from apt-get added, tho it depends of rPi etc etc can also package/build with it.
Discussed in https://github.com/dgtlmoon/changedetection.io/discussions/2480

Originally posted by Iey4iej3 July 10, 2024
Version and OS
0.45.25 on linux/docker
Is your feature request related to a problem? Please describe.
DBus notification is supported by apprise: https://github.com/caronc/apprise/wiki/Notify_dbus
However, if I input dbus:// in notification, it is not recognized.
Describe the solution you'd like
Support dbus:// notification
Describe the use-case and give concrete real-world examples
(This is used when the notification is local)
Additional context

Running D-Bus and interacting with it from inside a Docker container, particularly for tasks like sending desktop notifications, requires some specific setup. Here is a step-by-step guide to achieve this:
1. Install D-Bus and Notification Tools in the Docker Container
First, make sure your Dockerfile includes the necessary packages for D-Bus and notifications. Here's an example Dockerfile for an Ubuntu-based image:
FROM ubuntu:20.04

# Install necessary packages
RUN apt-get update && apt-get install -y \
    dbus \
    dbus-x11 \
    libnotify-bin \
    && rm -rf /var/lib/apt/lists/*

# Add a user for non-root operation
RUN useradd -ms /bin/bash dockeruser

# Switch to the created user
USER dockeruser
WORKDIR /home/dockeruser

# Copy the script to the container
COPY notify.sh /home/dockeruser/notify.sh
RUN chmod +x /home/dockeruser/notify.sh

# Entry point
ENTRYPOINT ["/home/dockeruser/notify.sh"]

2. Write a Notification Script
Create a simple shell script (e.g., notify.sh) to send notifications:
#!/bin/bash

# Send a test notification
notify-send "Hello from Docker" "This is a test notification"

3. Running the Container with D-Bus Socket
When running the container, you'll need to share the host's D-Bus socket with the container. You can achieve this by mounting the socket as a volume. Here's how to do it:
docker build -t dbus-notify .
docker run -it --rm \
    --name dbus-notify \
    -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
    -e DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus" \
    dbus-notify

4. Handling the DBus Session
To handle the D-Bus session, you need to ensure that the container has access to the correct D-Bus session address. This typically involves exporting the DBUS_SESSION_BUS_ADDRESS environment variable correctly.
5. Example Run Command
For the notification to appear on the host system, you must pass the D-Bus session bus address. Here’s an example of how to do this in a more complete manner:
# Find the D-Bus session bus address
DBUS_SESSION_BUS_ADDRESS=$(dbus-launch | grep -E -o 'unix:path=/run/user/[0-9]+/bus')

# Run the container with the DBus session environment variable
docker run -it --rm \
    -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
    -v /run/user/$(id -u)/bus:/run/user/$(id -u)/bus \
    -e DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
    dbus-notify

Summary
By following these steps, you should be able to run a Docker container that can send desktop notifications using D-Bus. The key points are installing the necessary packages, mounting the D-Bus socket, and correctly setting the DBUS_SESSION_BUS_ADDRESS environment variable. This setup allows the containerized application to communicate with the host's D-Bus system and send notifications to the desktop.


5e (UC 816) Fixed charmancer spell level translation

Changes / Comments
Added missing translation line for replacing spells on level-up in charactermancer.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[x] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Closing this. Added it to the PR.


Allow middle-click to close scripts

Fixes #20871
My first Godot PR, it's not much but it's something :) I just put together some existing pieces, so I hope this isn't too horribly borken.

Could you squash the commits?

Done! Thanks for your patience :)

Thanks!


Fix regression on update.check

I added missing dependencies in generic-bin and bom/pom and I added a test for VersionUtils.

Can/did we remove the update.check service from the shipping gateway-config.xml?

VersionUtils still has some issues. However, tickets were opened for those.


Document Updater::refresh()

Hello! Coming at you from #153!
There's a @todo at the top of the refresh function definition at https://github.com/php-tuf/php-tuf/blob/main/src/Client/Updater.php#L132 which says:
     * @todo Add docs. See python comments:
     *     https://github.com/theupdateframework/tuf/blob/1cf085a360aaad739e1cc62fa19a2ece270bb693/tuf/client/updater.py#L999

Let's do it!

Honestly, I'm kinda wondering if we should even continue to expose the refresh method to calling code.
I don't know what, beyond the tests, actually needs to call it. It feels like it should be made protected or private, and all interactions with PHP-TUF should be done by Updater::download().
What do you think, @tedbow?


Update Policy syntax after refactor

Description
Changes proposed in this pull request:

Update Policy syntax after refactor

Related issue(s)

https://github.com/capactio/capact/issues/624

Close as it will be updated on https://github.com/capactio/dashboard/pull/24/files#diff-c67c98d7ff604d453441c65e72ae2fa2b1f4a6dd0278cc9f2fa28ac711fcdd82


fix: add reflect-metadata

Was causing issues if you first import anoncreds package and then core (which is the case when you order imports)

Codecov Report

Merging #1409 (43b015a) into main (7459509) will decrease coverage by 3.46%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1409      +/-   ##
==========================================
- Coverage   85.34%   81.89%   -3.46%
==========================================
  Files         788      788
  Lines       19435    19436       +1
  Branches     3159     3159
==========================================
- Hits        16587    15917     -670
- Misses       2841     3512     +671
  Partials        7        7

Impacted Files
Coverage Δ

packages/anoncreds/src/index.ts
100.00% <100.00%> (ø)

... and 14 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Blind status

Hi! Trough Smartlife I added a blind motor that works fine in Smartlife app with the right status (closed/opening/closing/open)
In HomeKit via homebridge, the accessory works well as open and close but the status still "opening" "closing"
Seems not sync with Smartlife to catch the current status. If I close HomeKit and reopen still not updated
Attached "apro = opening"
The real action was done 30 minutes ago but still not changing status

Duplicate of #143


Duplicate tracks are removed when a song is added as next song

https://github.com/eljenso/livid/blob/master/modules/playlistManager.js#L79


Map on[Event] prop support for layerId option

I would like to set some event listeners on a specific layer via the 3 argument option such as in onMouseEnter i.e.
https://docs.mapbox.com/mapbox-gl-js/api/map/#map.event:mouseenter
map.on('mouseenter', 'mylayer', () => console.log('foo'))

From what i'm seeing here: https://github.com/GIShub4/solid-map-gl/blob/main/src/components/MapGL/index.tsx#L148 is doesn't seem like 3 arguments are supported by solid-map-gl, just the event and callback style. In some cases certain events allow 2 or 3 arguments e..g dblclick. Am I missing something? Happy to contribute if this is really not currently supported and there would be interest in building in support for these event handlers.

Hi Russ,
Thanks for finding this issue. I totally missed it.
I just fixed it, so please upgrade to the latest version.
You can now use the event listeners like before:
<MapGL
  ...
  onClick={ () => console.log('map click') }
/>

or using an object where the keys are the layerId's:
<MapGL
  ...
  onClick={{
    water: () => console.log('water layer click'),
    landuse: () => console.log('landuse layer click'),
  }}
/>

It is also possible to use the event listeners on the individual layer component:
<MapGL>
  <Source>
    <Layer
      ...
      onClick={ () => console.log('layer click') }
    />
  </Source>
</MapGL>

Thanks for such a quick update. I am trying to access the map object in some of these callbacks like this (in vanilla js):
map.on('mouseenter', 'clusters', () => {
  map.getCanvas().style.cursor = 'pointer'
})
map.on('mouseleave', 'clusters', () => {
  map.getCanvas().style.cursor = ''
})

I generally see how I could do the event listener but is it possible to access the map object in the callback via the on[Event] prop? I've tried the useMap function but that doesnt seem to work.

If you just want to change the cursor, than do it like this:
const [viewport, setViewport] = createSignal({
  center: [-84.5, 44.18],
  zoom: 6,
} as Viewport)

const [cursorStyle, setCursorStyle] = createSignal('grab')

const App = () => (
  <MapGL
    options={{
      accessToken: MAPBOX_ACCESS_TOKEN,
      style: 'mb:street',
    }}
    cursorStyle={cursorStyle()}
    onMouseOver={{ water: () => setCursorStyle('pointer') }}
    onMouseLeave={{ water: () => setCursorStyle('grab') }}
    viewport={viewport()}
    onViewportChange={(evt: Viewport) => setViewport(evt)}></MapGL>
)

I will have a look later today to see how you can access the map object within the event listener and let you know.

Thanks that makes sense. Here's another example where having access to the map object in an event listener is needed but maybe isnt covered by the MapGL component like the example above:
map.on("click", 'myLayerId', (e) => map.queryRenderedFeatures(e.point));

https://docs.mapbox.com/mapbox-gl-js/example/queryrenderedfeatures/

After some research if found out that the event object holds a reference to the map object.
So just try this:
const [viewport, setViewport] = createSignal({
  center: [-84.5, 44.18],
  zoom: 6,
} as Viewport)

const [layerId, setLayerId] = createSignal('')

export const App = () => (
  <MapGL
    options={{
      accessToken: MAPBOX_ACCESS_TOKEN,
      style: 'mb:street',
    }}
    viewport={viewport()}
    onViewportChange={(evt: Viewport) => setViewport(evt)}
    onMouseMove={(evt: any) => {
      const features = evt.target.queryRenderedFeatures(evt.point)
      setLayerId(features[0]?.layer.id)
    }}>
    <h2>{layerId()}</h2>
  </MapGL>
)

I tested it on the individual layers too. No need for the map context here.

Good find! Thanks for looking into this. Really enjoying the library so far!

Thank you for the appreciation.
I will create some examples explaining the event handling a bit more. Documentation is a bit thin on this.
Feel free to reopen or create a new issue if you have more problems.
This helps me to make this library better.


charts,manifests: Add the zap-level argument to the ansible-operator container.

This field controls the internal ansible-operator logging level. We can default this logging level to logging both Ansible playbook logs and the internal ansible-operator logs, with the intention of editing this value on the deployment/CSV objects if you want to change the verbosity of the default logging.
Other available values for this argument are 'debug' and 'error' (or providing the verbosity of the logs using an integer):

https://github.com/operator-framework/operator-sdk/blob/be718958884e04b4c4adfab5e0054524bba5226b/pkg/log/zap/flags.go#L52

In the case where you only want to stream the Ansible playbook logs and not the internal ansible-operator logs, you would edit the value of this argument to '--zap-level=error' in the metering-ansible-operator deployment and that would reduce the general verbosity of the container logs:
$ oc -n openshift-metering edit deployment metering-operator
...
containers:
- name: operator
  ...
  args:
  - --zap-level=error
  ...

/override ci/prow/metering-upgrade-aws

/lgtm

/retest

/override ci/prow/metering-e2e-aws

zzz not sure if the prow status was broken there or not


Add a translation into Russian for updates/2018/12/class-fields

What's changed, or what was fixed?

added a translation into Russian (ru) for en/updates/2018/12/class-fields
for that created folder ru/updates/2018/12

Target Live Date: does not matter

[x] This has been reviewed and approved by (NAME)
-- Before contributing I posted the translation on a Russian blog where it has been reviewed and commented.
[x] I have run npm test locally and all tests pass.
[x] I have added the appropriate type-something label.
-- I am not sure that I should do that in the case.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele

I signed it!

Thanks for contributing this translation, @cerberus-ab :) I’m glad you reached out on Twitter resulting in this PR!
I’ve asked a Russian-speaking colleague to take a look.

:tada: This has been pushed live to https://developers.google.com/web/

This should be live here: https://developers.google.com/web/updates/2018/12/class-fields?hl=ru
@cerberus-ab If you want, you can submit a follow-up PR following the steps here: https://developers.google.com/web/resources/translations#credit This way, you get listed as a contributor!


Integrate the new S3 transfer manager

The S3 transfer manager was finally released:
https://aws.amazon.com/blogs/developer/introducing-crt-based-s3-client-and-the-s3-transfer-manager-in-the-aws-sdk-for-java-2-x/
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/transfer-manager.html
The S3 code needs to be updated to use it. This should greatly improve S3 performance.

https://github.com/OCFL/ocfl-java/pull/88


Add harvest section

fixes #48
I couldn't find the right view for /harvest link so I didn't use the helper url_for.

I added a small commit to this PR with the url_for incantation and also replaced the harvesting icon with fa-cloud, to make it consistent with the one used in the dataset search filter options


Fix create event and refactor it into MVC. Launch signup with specific role.

Closes #17

Looks good.


Nuget fails to install on PCL

Hi
I created a new cross platform project, updated the nugets, tried to install Microcharts.Forms.
I get following error :
   Severity	Code	Description	Project	File	Line	Suppression State    Error		Could not install package 'Microcharts.Forms 0.7.1'. You are trying to install this package     into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not     contain any assembly references or content files that are compatible with that framework. For more     information, contact the package author.			0

Hello,
I dropped the PCL support in version 7, but good news : I've reintroduced it into version 8 since it's asked very often! But I advise you to migrate to .NET Standard to be future proof.
You can try it here in pre-release!
This new version also adds animation support (that can be deactivated with IsAnimated chart's property)!
Looking for feedbacks before release!

Hi @aloisdeniel
Thanks, i will try, any good tutorial on how to migrate to .NET standard ?

The official Microsoft docs are really well written, I always start by it.
You also have a good article on the Xamarin blog on this particular subject.

Hi!, I have the same issue... but I try to include in Xamarin.Forms in Visual Studio for Mac

I am facing the issue, I am using the pre-release. When can expect the release ?


Remove references to OS_TaskRegister (non-op)

Is your feature request related to a problem? Please describe.
See nasa/osal#255, currently just a non-op for backwards compatibility.
Describe the solution you'd like
Remove
Describe alternatives you've considered
None
Additional context
nasa/osal#255
Requester Info
Jacob Hageman - NASA/GSFC

See nasa/osal#255, more work to remove than worth.  Only called by ES directly, does check for task context.


Numerous Missing Resources

This page appears to be missing a number of resource naming restrictions. Cross referencing the list on this page with https://docs.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/naming-and-tagging#sample-naming-convention shows a number of missing resources. I've provided some below but it's not exhaustive. If this isn't going to be centralized place for recommendations wouldn't it be better to just push the limitations back to each page's documentation?

Azure SQL Database (numerous on this, SQL Data warehouse, MySQL, etc.)
Cosmos DB
Azure Search
Azure Kubernetes Service
Event Grid
Log Analytics (this one isn't too hard to find, it's global but I don't know the length restriction)
Azure Monitor specifics like action group and log alerts

The other page alone isn't enough in it's current format. For example, Cosmos DB requires the name be globally unique but on the other page it states you should name your database "cosdb-emissions-dev" this isn't a good recommendation as it should likely contain some random entropy to avoid name conflicts. Or at least let you know that it needs to be globally unique.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1ddc35bf-00d9-67c8-bf6a-ade5ebea07ca
Version Independent ID: 7324a1e6-7010-c620-145b-3d8027709545
Content: Naming rules and restrictions for Azure resources
Content Source: docs/best-practices/resource-naming.md
Service: architecture-center
Sub-service: cloud-fundamentals
GitHub Login: @DerMar
Microsoft Alias: pnp

@slynickel Thanks for the feedback! We are currently investigating and will update you shortly.

AB#160181 - Thanks for reporting - this issue is under review

This issues is actively being addressed in the CAF repo.

To clarify, is the CAF some internal thing?

Thank you for this suggestion. We've taken this feedback into our backlog for a significant content update in the coming period. Closing for now.