KeyError: 'time_embedding.linear_1.weight'

I used naifu-diffusion to train the model, and the trained model was converted with convert_to_sd.py, and this error occurred.
xformers==0.0.20，diffusers == 0.17.0 ,torch==2.0.1,
diffusers ==0.10.2 cannot be used
Using 16bit native Automatic Mixed Precision (AMP)
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs

Loading captions: 3it [00:00, 2874.78it/s]
BucketManager initialized with base_res = [512, 512], max_size = [768, 512]
Loading resolutions: 3it [00:00, 72.47it/s]
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Using scaled LR: 3e-06

  | Name         | Type                 | Params
------------------------------------------------------
0 | unet         | UNet2DConditionModel | 859 M
1 | vae          | AutoencoderKL        | 83.7 M
2 | text_encoder | CLIPTextModel        | 123 M
------------------------------------------------------
859 M     Trainable params
206 M     Non-trainable params
1.1 B     Total params
2,132.471 Total estimated model params size (MB)
/home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/data_connector.py:224: PossibleUserWarning: The dataloader, train_dataloader, does not have many workers which may be a bottleneck. Consider increasing the value of the `num_workers` argument` (try 8 which is the number of cpus on this machine) in the `DataLoader` init to improve performance.
  rank_zero_warn(
/home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/lightning_lite/utilities/data.py:63: UserWarning: Your `IterableDataset` has `__len__` defined. In combination with multi-process data loading (when num_workers > 1), `__len__` could be inaccurate if each worker is not configured independently to avoid having duplicate data.
  rank_zero_warn(
Epoch 0:   0%|                                                          | 0/3 [00:00<?, ?it/s]/home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/xformers/ops/fmha/flash.py:339: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  and inp.query.storage().data_ptr() == inp.key.storage().data_ptr()
Epoch 0: 100%|██████████████████████████████████████| 3/3 [00:04<00:00,  1.38s/it, loss=0.114]`Trainer.fit` stopped: `max_epochs=1` reached.
Epoch 0: 100%|██████████████████████████████████████| 3/3 [00:27<00:00,  9.29s/it, loss=0.114]
Traceback (most recent call last):
  File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 345, in <module>
    unet_state_dict = convert_unet_state_dict(unet_state_dict, is_v2)
  File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 107, in convert_unet_state_dict
    new_state_dict = {v: unet_state_dict[k] for k, v in mapping.items()}
  File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 107, in <dictcomp>
    new_state_dict = {v: unet_state_dict[k] for k, v in mapping.items()}
KeyError: 'time_embedding.linear_1.weight'

Could you provide the commit hash?
And try these steps may help:

Upgrade diffusers - pip install -U diffusers
Run git pull - update nd to the latest version
Use the checkpoint directly without conversion

On Tue, Jul 25, 2023 at 17:49 biasnhbi @.***> wrote:

I used naifu-diffusion to train the model, and the trained model was
converted with convert_to_sd.py, and this error occurred.
xformers==0.0.20，diffusers == 0.17.0 ,torch==2.0.1,
diffusers ==0.10.2 cannot be used
Using 16bit native Automatic Mixed Precision (AMP)
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Loading captions: 3it [00:00, 2874.78it/s]
BucketManager initialized with base_res = [512, 512], max_size = [768, 512]
Loading resolutions: 3it [00:00, 72.47it/s]
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Using scaled LR: 3e-06
| Name         | Type                 | Params
0 | unet         | UNet2DConditionModel | 859 M
1 | vae          | AutoencoderKL        | 83.7 M
2 | text_encoder | CLIPTextModel        | 123 M
859 M     Trainable params
206 M     Non-trainable params
1.1 B     Total params
2,132.471 Total estimated model params size (MB)
/home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/data_connector.py:224: PossibleUserWarning: The dataloader, train_dataloader, does not have many workers which may be a bottleneck. Consider increasing the value of the num_workers argument(try 8 which is the number of cpus on this machine) in theDataLoaderinit to improve performance.   rank_zero_warn( /home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/lightning_lite/utilities/data.py:63: UserWarning: YourIterableDatasethaslendefined. In combination with multi-process data loading (when num_workers > 1),len could be inaccurate if each worker is not configured independently to avoid having duplicate data.   rank_zero_warn( Epoch 0:   0%|                                                          | 0/3 [00:00<?, ?it/s]/home/ubuntu/miniconda3/envs/nd/lib/python3.10/site-packages/xformers/ops/fmha/flash.py:339: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()   and inp.query.storage().data_ptr() == inp.key.storage().data_ptr() Epoch 0: 100%|██████████████████████████████████████| 3/3 [00:04<00:00,  1.38s/it, loss=0.114]Trainer.fitstopped:max_epochs=1` reached.
Epoch 0: 100%|██████████████████████████████████████| 3/3 [00:27<00:00,  9.29s/it, loss=0.114]
Traceback (most recent call last):
File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 345, in
unet_state_dict = convert_unet_state_dict(unet_state_dict, is_v2)
File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 107, in convert_unet_state_dict
new_state_dict = {v: unet_state_dict[k] for k, v in mapping.items()}
File "/home/ubuntu/naifu-diffusion/scripts/convert_to_sd.py", line 107, in
new_state_dict = {v: unet_state_dict[k] for k, v in mapping.items()}
KeyError: 'time_embedding.linear_1.weight'
—
Reply to this email directly, view it on GitHub
https://github.com/Mikubill/naifu-diffusion/issues/20, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOMTSS3ZAB63IGJMOOETVTXR6CCNANCNFSM6AAAAAA2WXJTOY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Yes, webui can use checkpoint directly


Feature Request: add separate keyboard shortcut options for sending to today or cursor

Sometimes, I want to push a link to the cursor location and sometimes I want to send to the end of today's journal page.
I have the default set to Append Today and generally push with a keyboard shortcut (i.e., CMD+SHIFT+L). For times when I want to send the link to the cursor location instead, it would be awesome if I could use a secondary keyboard shortcut  (CTRL+SHIFT+L)
This would save a few edits/seconds when I'm in a page -- where, I currently have to flip from the page I'm on to the Journal, cut the link, go back to the page and paste it manually.

This is actually controlled via the config.edn settings from within Logseq, and not in the extension itself. Look for the quick capture options within config.edn. I have extracted the excerpt for your reference:
 ;; Quick capture templates for receiving content from other apps.
 ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
 ;; by receiving content from other apps. Note: the {} cannot be omitted.
 ;; - {time}: capture time
 ;; - {date}: capture date using current date format, use `[[{date}]]` to get a page reference
 ;; - {text}: text that users selected before sharing.
 ;; - {url}: URL or assets path for media files stored in Logseq.
 ;; You can also reorder them or use only one or two of them in the template.
 ;; You can also insert or format any text in the template, as shown in the following examples.
 ;; :quick-capture-templates
 ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
 ;;  :media "[[quick capture]] **{time}**: {url}"}


[WFLY-20084] Add profiles to wildfly sources to separate base and expansion builds/tests

…pansion FP
Allow limiting the build to just the base FP or just the expansion FP
Control TS execution via aggregator modules decoupled from behavioral configuration of the individual TS modules.
https://issues.redhat.com/browse/WFLY-20084

Thanks @yersan.
Good point about https://issues.redhat.com/browse/WFLY-19749, but I'll leave that open for now as I don't have time for that single test bit, plus I don't mind if others take a look.  I'll comment about how this change definitely addressed a lot of things though.


Textures became green after updateing normal map.

Godot version
4.0.1
System information
Windows 10 Stable, Geforce GTX 3070, Forword+, Vulkan
Issue description
When updating the textures in my blender file with normal maps I used the same texture as my albedo. However when imported to godot the sceen became a green mess. Removing the texture in blender from the normal map does not rectify the textures.
It seems that a bug like this was submitted before several years ago and marked not a bug, I just want to confirm that this is still not a bug.
https://github.com/godotengine/godot/issues/11394
If it is still not a bug it would be very helpful to have Godot refresh the textures/cache etc when a blender file's shaders have been edited so this can be easily fixed in the future.
Steps to reproduce

Create a model in blender assign an image texture to the object.
Import the blender file into Godot
Edit the blender models shader, using the same texture as the normal map as shown.
Save the file and return to Godot

Minimal reproduction project
bug.zip

You are using the same texture for two very different purposes with albedo and normal map. Godot imports textures in different ways depending on how they are first used in the engine. A texture optimized for normal map use does not look right when used for albedo and vice versa hence why it is not a bug.
Blender does not care cause that shader node converts the data from a texture how it is needed by the next shader node but that is a system that only works inside Blender.

Then is there a reason why when first using the texture as an albido map, without a normal map, importing the blender file, then using the same texture as a normal map breakes the texture in Godot even when I remove the normal map?
As it stands even when removing the normal map the textures still appear green and the only way I have found to fix them is to utilize a different texture name.

When textures are being reimported as normal maps, their blue channel is discarded to save space. That's why it looks like that. When you go to the texture's import options and disable normal map compression, it should go back to the original appearance after reimporting. See also the section in the docs.
So far I don't think there is a bug here.

as a random guy who ended up here from google after running into this issue, I can confirm that the suggested fix works in 4.1.3 stable

I don't think Godot should be unable to import an image for two different uses. Disabling normal map compression isn't a solution because it wastes space.
Reimporting a texture that has been set to a normal map at some point does not fix the texture, even if it is no longer being used as a normal map.
I can see how its a feature request to support a single texture for multiple uses, but it seems like a bug that there's no clear way to fix the issue other than deleting every affected texture and re-adding it.


Does this plugin support the autocomplete.php format definition?

I use the codeignite3.15 framework, $ this-> uri & $ this-> db & $ this-> session ... ..., this does not support intellisense.

this autocomplete.php format.

@property CI_DB_active_record $db              This is the platform-independent base Active Record implementation class.
@property CI_DB_forge $dbforge                 Database Utility Class
@property CI_Benchmark $benchmark              This class enables you to mark points and calculate the time difference between them.  Memory consumption can also be displayed.
@property CI_Calendar $calendar                This class enables the creation of calendars
@property CI_Cart $cart                        Shopping Cart Class
@property CI_Config $config                    This class contains functions that enable config files to be managed
.....

Duplicate of https://github.com/felixfbecker/php-language-server/issues/458
You can use @var for your properties.

@jens1o Any news about this feature ?

@pedroresende no.


Editor backend

This is the backend API for a new video editing UI. It is based largely on the existing tools endpoint of the admin-ui and generates compatible smil files.
It should be possible to access the editing service on the presentation node via LTI.
Your pull request should…

[X] have a concise title
[x] close an accompanying issue if one exists
[X] be against the correct branch (features can only go into develop)
[x] include migration scripts and documentation, if appropriate
[X] pass automated tests
[X] have a clean commit history
[X] have proper commit messages (title and body) for all commits

Tested this on a distributed system and seems to work except for a frontend bug. But since it's currently an outdated frontend anyway, that's hopefully fixed by now. Once the frontend gets updated I think this will be ready to go. @pascalseeland, get ready for a review ;-p


Add method to get widget attributes

Widget attributes are a protected property.
We needed an acessor. I build the accessor.
debatable get vs getAttribute. For me get seems more like to get a widget than get an attribute of the widget .. so getAttribute for me 🙏

This might be our cleanest PR yet 😅 I wish all of them were like this ❤


k8s/crds: Allow ingress identity in CNP

Relates: https://github.com/cilium/cilium/pull/19764
Signed-off-by: Tam Mach<EMAIL_ADDRESS>

/test

Would be nice to have some tests validating entity ingress in CNPs as well.

Agreed, there is some effort going on simplifying the tests, so I raise the below issue for tracking purpose.
https://github.com/cilium/cilium/issues/20558

Hitting different flakes during different runs for test-1.24-net-next, all of other required jobs are passed. Marking this ready to merge.
https://jenkins.cilium.io/job/Cilium-PR-K8s-1.24-kernel-net-next/301/
https://jenkins.cilium.io/job/Cilium-PR-K8s-1.24-kernel-net-next/287/


404 on resources for documentation

Wasn't sure where to report this, I couldn't find any contact info for an email.
I'm getting a 404 on http://docs.django-blog-zinnia.com/en/develop/. Doesn't look like readthedocs.org or any readthedocs services are down.

Fixed in https://github.com/Fantomas42/django-blog-zinnia/commit/df6d20752557c85d5efd1ce58debec464bae95f2


nodejs_(14|16): drop

Description of changes
Security support EOLed for a while, dropping all the packages depending upon it.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I think it's a a little too early to remove nodejs 14 and 16. Sure, they are EOL but thanks to the intricacy of web frameworks, many web projects still run on one of those.
Also, openvscodeserver has been added in 23.05 and now it's being removed again in 23.11. Why is it straight up removed and not attempted to be updated? A lifetime of a single release is quite breaking.
As as side note, I think the users deserve to know how to acquire the old versions without having to read the source. Quite sure there will be some users that depend on those versions, whether we like it or not.

I think it's a a little too early to remove nodejs 14 and 16. Sure, they are EOL but thanks to the intricacy of web frameworks, many web projects still run on one of those.

Node.js 14 and 16 were planned to be removed last release, they were extended for this particular reason and we made an exception. It does not make sense to me to make two exceptions.
If you need those EOL versions for whatever reason, anyone is free to provide them via an out-of-tree repository, but, we have no resource to maintain those inside of nixpkgs.

Also, openvscodeserver has been added in 23.05 and now it's being removed again in 23.11. Why is it straight up removed and not attempted to be updated? A lifetime of a single release is quite breaking.

Well, if people donate a package they do not maintain, the natural conclusion is that they will be removed as soon as we cannot find a way to make them work. Maintainers were pinged, nothing was done.
If you know how to update it, please update it, I tried to update it multiple times while waiting for upstream to make their move, I'm not maintainer of this package. It's not reasonable to expect the release management community to be de-facto maintainers of any abandoned package.

As as side note, I think the users deserve to know how to acquire the old versions without having to read the source. Quite sure there will be some users that depend on those versions, whether we like it or not.

For sure, but as said earlier, we have finite resources, if you would like to contribute in that area, please send pull requests to improve documentation on how to retrieve ancient versions of software.
Users will always depend on anything, it's not a reason to not perform the planned removals, otherwise we would be stuck with OpenSSL 0.x for those reasons. There's an equilibrium and a compromise, Node.js had this compromise for an entire release cycle. Now, it has to go.

I will merge once CI passes.

#261125 updates openvscode-server to Node18

I will remove the vscode server stuff.

Half of the Github Actions ecosystem depends on nodejs 16 still. This  breaks a lot of things :(


fix(explore): browsing chunked files and inspecting via context menu

This includes

[x] latest ipld-explorer-components with fix for https://github.com/ipfs/ipld-explorer-components/issues/461
[ ] fix for #2306
[x] also bumped kubo and caniuse and non-breaking audit suggestions

While testing this, found another, unrelated bug in IPLD Explorer – filled https://github.com/ipfs/ipld-explorer-components/issues/464 to not block fixes in this PR.


Memory leak on elasticmq-native:1.3.3

OS: MacOS Big Sur 11.6.1
Running the docker image locally and use docker stats to inspect the memory usage, it just keeps increasing until it runs out of assigned memory and crashes that leads to restart. Is there any configuration we need to add to avoid this?

OS:  Ubuntu 20.04.3
Hello, I have the same problem, elasticMQ version 1.3.6 is located in a docker container. It uses 2.4GB of memory after that it stops working but the container does not terminate.
Log:
[elasticmq-akka.actor.default-dispatcher-4] INFO  akka.actor.DeadLetterActorRef - Message [org.elasticmq.MessageData] to Actor[akka://elasticmq/deadLetters] was not delivered. [32] dead letters encountered, of which 21 were not logged. The counter will be reset now. If this is not an expected behavior then Actor[akka://elasticmq/deadLetters] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "elasticmq-scheduler-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "elasticmq-akka.io.pinned-dispatcher-7"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "elasticmq-akka.actor.default-dispatcher-12"


Capture client info

LK-501
Platform differences are a bit tricky.

I've implemented JS interop for ua-parser-js but I've realized UserAgent isn't so reliable... 😂
why is it my Chrome reporting
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
**macOS 10.15.7... ?
https://chromestatus.com/feature/5452592194781184

Removed uaparser dependency and updated to use platform_detect package instead which can detect OS also


[BUG] After monitoring upgrade from 100.1.3+up19.0.3 to 100.2.0+up40.1.2, user won't receive an alert.

Rancher Server Setup

Rancher version: v2.6.9
Installation option (Docker install/Helm Chart): Docker

Information about the Cluster

Kubernetes version: Any k8s version
Cluster Type (Local/Downstream): Downstream

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom) Admin

Describe the bug

After upgrading Monitoring chart from 100.1.3+up19.0.3 to 100.2.0+up40.1.2, user won't receive an alert.
The above failure is caused by the way receivers: name is set in alerting configuration in monitoring version 100.1.3+up19.0.3 Vs. 100.2.0+up40.1.2
To Reproduce

Install previous version - 100.1.3+up19.0.3
Install alerting version - 100.0.3
Test monitoring p0 test cases - PASS
Test alertmanager p0 test cases - PASS (Successfully received alert on telegram)
Upgrade monitoring chart to latest version - 100.2.0+up40.1.2

The above failure is caused the way receivers: name is set in alerting configuration in monitoring version 100.1.3+up19.0.3 Vs. 100.2.0+up40.1.2
Result
After upgrade, failed to receive alert on telegram. Following error was seen in alerting-sachet pod.
2023/01/19 14:08:38 main.go:247: Error: {"Error":true,"Status":400,"Message":"Receiver missing: default/amc-7/prom2sms"}Thu, Jan 19 2023 7:39:38 pm
Expected Result
User should receive the alert on telegram that was configured in Step 4.

In Rancher v2.7.0 noticed that when you create a new cluster, and attempt to install the Monitoring chart, after clicking install, it's a blank screen. Usually you're met with a screen to edit yaml to inject (plugins, etc) and then execute the deployment....

steps to bypass this issue as this was a change introduced by the upstream chart:
update the sachet receiver name to follow the convention to change the test cases to use '/' as a delimiter instead of instead of '-'

reopening to determine disposition/create tracking ticket

This should be documented in the docs.

This change was introduced by upstream to avoid collisions with AlertManagerConfig objects.
steps to bypass this issue from Rancher UI:

Navigate to ConfigMaps under More Resources -> Core -> ConfigMaps or by searching ConfigMaps
Find the receivers config maps  and edit by clicking the three dots in the corner -> edit.
Update the receiver name to use '/' as a delimiter instead of instead of '-': '//' (i.e: default/amc-7/prom2sms)
restart the alert manager and receiver pods to ensure config is reloaded properly from Workloads -> Pods

Upstream PR/Release Notes: prometheus-operator/prometheus-operator@80a72c4 prometheus-operator/prometheus-operator#4626

I'm working on a PR for rancher-docs describing these steps.
Questions --
Is there a certain indication that the user can use to find the receiver's config map (special name, prefix, namespace, etc.?)
For step 2, does the user select edit config, or edit yaml?
For step 3, how/where does the user update the delimiter?

@martyav
Below are the updated details for the AlertManagerConfig. The changes are specific to the proms2teams and Satchet configurations.
Prometheus-Operator:
Users of Alerting Drivers who specifically use the AlertmanagerConfig CRs will need to manually update their Sachet or prom2teams configurations on upgrading the Rancher Monitoring chart due to a change introduced by upstream with respect to how receivers added via AlertmanagerConfig CRs are named.
Receivers are now delimited by \ instead of - (-- to //).
To update the Receiver configurations from the Rancher UI:

Navigate to ConfigMaps under More Resources or by searching for ConfigMaps.
Find the ConfigMap for Sachet or prom2teams.
Update the receiver names to use '/' as a delimiter.
Redeploy the workloads associated with Alertmanager and Sachet / prom2teams to ensure that they pick up the new configurations.

This change was introduced to prevent AlertmanagerConfig objects from generating identical references in the final Alertmanager configuration. For example, take the following AlertmanagerConfigs:

AlertmanagerConfig foo-bar in namespace ns defines a Receiver with name fred.
AlertmanagerConfig bar in namespace ns-foo defines a Receiver with name fred.

Without this patch, the resulting Alertmanager configuration would have two receivers named ns-foo-bar-fred, which is invalid. With this patch, the receivers within Alerting Drivers would be named ns/foo-bar/fred and ns-foo/bar/fred, because / is not a valid character for namespaces. (https://github.com/prometheus-operator/prometheus-operator/commit/80a72c42f5c62012d27330b7c5203fd110d7f764)

@geethub97 I'm going to update the Rancher 2.6.x docs with instructions. Does 2.7.x also need this noted?


LIME-718 updating Gov UK account to One Login

Proposed changes
What changed
References to UK Gov Account team have been updated to UK Gov One Login team.
Why did it change
To align with onboarding to One Login.
Issue tracking

LIME-718

Checklists
Environment variables or secrets

[ ] No environment variables or secrets were added or changed

[ ] Documented in the README
[ ] Added to deployment repository
[ ] Added to local startup repository

Other considerations

[ ] Update README with any new instructions or tasks

Might be worth updating the welsh translation tests as a part of this aswell @gds-adhenderson


Multiple players with HLS and preload

Hello,
I'm trying to use multiple players with using HLS.
My issue is that these videos seems to be preloaded for some %.
Is there a way to no preload video while play button is not pressed ?
I would like to optimize my server resources.

Is it an option somewhere ?
From hls.js or Plyr ?
Thanks.


Installation Guide for unsloth on Windows

Don't use the conda
and mamba, windows don't like it. so just install python3.10 on windows, and change the env path.
triton install
https://huggingface.co/r4ziel/xformers_pre_built/blob/main/triton-2.0.0-cp310-cp310-win_amd64.whl
here, like it.
windows don't like pytorch. even out LLMs.

Oh very cool! Ye pip is probably best

Is it installed on native Windows? Or WSL?
My installation failed on native Windows 10 and conda.
I got the following error:
ModuleNotFoundError: No module named 'triton'

For Windows, try pip install -U xformers --index-url https://download.pytorch.org/whl/cu121 separately for Xformers

I was facing the same error mentioned by @zzerrrro. Tried @danielhanchen 's approach but it couldn't resolve. The following commands worked finally on Windows:
pip install --upgrade pip
pip install torch==2.5.0+cpu
pip install "unsloth @ git+https://github.com/unslothai/unsloth.git"

@moonpiee you are my lifesaver

I was facing the same error mentioned by @zzerrrro. Tried @danielhanchen 's approach but it couldn't resolve. The following commands worked finally on Windows:
pip install --upgrade pip
pip install torch==2.5.0+cpu
pip install "unsloth @ git+https://github.com/unslothai/unsloth.git"

It worked up until:
AttributeError: partially initialized module 'triton' has no attribute '_C' (most likely due to a circular import)
Plus the HF link is dead, used this instead, might even be the issue:
pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl


general question: multi-modal dataset -> consider graphs not for all modalities

Hello,
merging data and it's graph (explicitly given or created through an embedding e. g. as in the offical example Graph regularization for sentiment classification using synthesized graphs) is as easy like that
graph_reg_model = nsl.keras.GraphRegularization(base_reg_model, graph_reg_config)
However, what if I'd like to apply the graph(-induced constraints) only partially? Example:
example 1:
Here's an example. The dataset has several modalities, e. g.

modality1 comprises features like AGE, GENDER, REGION, INCOME, DISEASE
modality2 is a DISEASE-network (like a symmetric matrix with values according to the degree of association strength)

Speaking TF: The base_reg_model and the graph_reg_config models could be defined like in step 1. and 2.. But obviously point 3 graph_reg_model  is inconsistent because base_reg_model + graph_reg_config don't know how to talk to each other.

base_reg_model = tf.keras.Model(inputs=modality1, outputs=outputs)
graph_reg_config = nsl.configs.GraphRegConfig(derived from modality2)
graph_reg_model = nsl.keras.GraphRegularization(base_reg_model, graph_reg_config)

example 2:
What if

modality1 would be like AGE, GENDER, REGION, INCOME, DISEASE_1, ..., DISEASE_N
modality2 would be a DISEASE-Network of N diseases

Is it possible (how?) to expand the graph with a dummy graph? Maybe in the way that the 4 covariates AGE, ..., INCOME are considered like in 2.2?
2.1 graph_DISEASE= nsl.configs.GraphRegConfig(derived from modality2)
2.2 graph_dummy= nsl.configs.GraphRegConfig(a fully connected, unconstraint graph with 4 nodes)
3.  graph_reg_model = nsl.keras.GraphRegularization(base_reg_model, [graph_dummy, graph_DISEASE])
Thanks in advance.

Thanks for the question, @thomasmooon! First, I want to mention that nsl.configs.GraphRegConfig is not really specific to a modality or set of modalities. It is just a class that holds some configuration parameters for graph regularization such as the number of neighbors to consider, the multiplier to use, and so forth.
The general inputs to graph-based NSL are as follows:

Example features (from all modalities of interest)`
Graph in TSV format (effectively just a set of edges describing connectivity between pairs of examples)

From my understanding, your primary entities are humans with corresponding modalities (age, gender, income, DISEASE_i, etc), and you have graph signals (association matrix) for the DISEASE modality, and not for humans directly. So, I think you may want to write your own custom graph building utility that will build a graph based on the modality (/modalities) of interest, which in your case is  'DISEASE'.
This utility will consider pairs of examples in the data set, compute connectivity info in the resulting graph,  and encode them as edges in TSV format. For instance, you may use the association strength as a proxy for edge weight in the resulting graph. See our default graph building utility for an example of how this is done using embedding similarity as the distance function.
Once such a graph is built, you can combine the graph with the example features using the pack_nbrs tool.
Hope this clarifies your questions.

Thank you very much @arjung , this is of great utility. I try this out and see how far I'll get. I'll give some feedback (but expect that this will take a while).

Sounds good. Yes, please feel free to give us feedback/suggest improvements.


Improve paths validation/expansion on fuels init command

When running this:
mkdir temp && cd temp && \
  pnpm init && pnpm add fuels && \
  forc new --contract counter && \
  pnpm fuels init --contracts ./counter/* --output ./sway-types && \
  cat fuels.config.ts

We end up with:
// fuels.config.ts
import { createConfig } from 'fuels';

export default createConfig({
  contracts: [
        'counter/Forc.toml',
  ],
  output: './src/sway-types',
});

Notes:

If you try to build the resulting project with pnpn fuels build, you'll get an error
The contract's path should be counter and not counter/Forc.toml
Perhaps this is caused by using a wildcard in ./counter/* during the init command — note that the counter directory does not contains other/multiple contracts inside of it. It is the contract.

We should review the path's validation and expansion and improve tests around this.

cc @bajpai244


Added options to alter pre- and suffixes for date stamps and labels

Description
Adds the ability to set custom pre- and suffixes for the log output. The default settings are the standard brackets ( "[" and "]").
Changes

Added 4 new options, to set pre- and suffixes for the date stamps an labels.
Updated the Readme with the new options and an example.

Cool! I'll take a look...

@starak Any estimation, when you're going to have the time to look at it? :)

@Fkscorpion, I'm on it. I want #28 merged in before i release.


Review ClusterRoles for all components

Pilot appears to have read access to all cluster Secrets - not aware of any need for this.
Only Citadel should have access to cluster-wide Secrets, nothing else.
probably other components also have too broad access, which is a security issue ( escalation )

Pilot needs to watch secrets in its own namespace, not cluster wide. This is even more important with new installer, as it should be possible to deploy pilot in a less trusted namespace (testing environments, etc).
If MCP is enabled, Pilot should need even fewer cluster rules (galley reads/watches the resources)

Pilot needs to watch secrets in its own namespace, not cluster wide. This is even more important with new installer, as it should be possible to deploy pilot in a less trusted namespace (testing environments, etc).
If MCP is enabled, Pilot should need even fewer cluster rules (galley reads/watches the resources)

If MCP is enabled, does Pilot still need to read/watch any k8s resources? I thought it doesn't but just would like to confirm if there is any exception here. Currently I think pilot still reads some resources (e.g. Service) even if MCP is enabled as galley doesn't return all resources at the moment, but in the long run it should, maybe in 1.3?

With MCP fully enabled and if we clean up Pilot from all K8s dependency, Pilot will no longer need to read any secrets.

@fpesce I am not sure it is a good idea to remove authorization roles from pilot if it uses an alternative channel to read information. In a way, MCP allows unauthorized access that is not subject to k8s RBAC. So even though Pilot does not need k8s roles attached to its service account, it has all the privileges that come with it, so should be associated with an equivalent or more capable role.

I deem this kind of change too risky for 1.2 @fpesce we should move this to later.

@andraxylia / @kyessenov your concerns are valid, we need to discuss this on a different milestone. shifting this to 1.3.

if this is a P0 for 1.3, the work needs be done for old and new installer.


blob upload with http api can't attach metadata

https://perkeep.org/doc/protocol/blob-upload
with current blob upload protocol, I can't achieve same goal like what pk-put --filenodes does.
Only uploading successfully doesn't make the blob/file display in the web UI.

For the blob to show in the web UI it needs to be a permanode that has a camliContent attribute whose value is the blob you uploaded. So you would need to upload 3 blobs: 1 blob, 1 permanode and one claim that sets this attribute on the permanode.

got it, many thanks 👍


Allow bracket notation and search for dot notation

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #12031

Description

Modified test to allow the use of bracket notation, along with dot notation, to pass the challenge. Also, escaped the . to search strictly for usage of dot notation.
Verified the code in my local instance with val.imageLink and val["imageLink"].
closes #12031

Tested locally and LGTM. Thanks @Manish-Giri 🌮  🎉  💯


Schema File

We want a file called SCHEMA.md that outlines the schema of the database so that anyone can make their own.
What are the columns and their types?

Done.


Experiment sharing

Report
With https://github.com/iterative/dvc/issues/9074 and https://github.com/iterative/studio/issues/5050 (along with its related stories/issues), we need to document how to share experiments from DVC to Studio. This should include:

[ ] dvc ref: update dvc config, dvc exp push, and dvc exp remove to reflect Studio features (@skshetry).
[ ] studio: @tapadipti what do you think we need to update, if anything?
[ ] dvc start: update https://dvc.org/doc/start/experiments/experiment-management (thoughts @daavoo?)
[ ] dvc guide: update https://dvc.org/doc/user-guide/experiment-management/sharing-experiments (related to #4401) (@dberenbaum)

In Studio docs, we should update:

Get started: Run and track experiments section should mention dvc exps
Prepare your repositories section should mention dvc exps in addition to live experiments
Git history and live metrics section should be updated to mention dvc exps

I'll take the last item (DVC exp guide). @skshetry @tapadipti @daavoo Could you take the others? 🙏

I'll work on the second item (studio docs).

@daavoo What do you think on the get started docs? We could add something showing experiments in Studio, or we can wait until we have capability to create a PR from Studio (in that case, let's create a separate issue for it).

or we can wait until we have capability to create a PR from Studio (in that case, let's create a separate issue for it).

Maybe we could wait for that and the ability to remove exps from the UI, so the update would be to add Studio tabs to https://dvc.org/doc/start/experiments/experiment-collaboration ?

Let's call this done and open a separate issue to discuss how to incorporate into get started. It's not blocking anything since we have everything documented elsewhere.


fix(DataStore): clear ModelSyncMetadata on duplicate ids found

Issue #, if available:
Description of changes:
The migration script for the scenario where there were duplicate id's found across models were not clearing the ModelSyncMetadata table.
Check points: (check or cross out if not relevant)

[ ] Added new tests to cover change, if needed
[ ] Build succeeds with all target using Swift Package Manager
[ ] All unit tests pass
[ ] All integration tests pass
[ ] Documentation update for the change if required
[ ] PR title conforms to conventional commit style
[ ] If breaking change, documentation/changelog update with migration instructions

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #1515 (1f0dba9) into main (3156d03) will increase coverage by 0.09%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1515      +/-   ##
==========================================
+ Coverage   58.95%   59.05%   +0.09%
==========================================
  Files         687      687
  Lines       21016    21016
==========================================
+ Hits        12391    12410      +19
+ Misses       8625     8606      -19

Flag
Coverage Δ

API_plugin_unit_test
61.57% <ø> (ø)

AWSPluginsCore
72.79% <ø> (ø)

Amplify
46.06% <ø> (+0.04%)
:arrow_up:

Analytics_plugin_unit_test
71.76% <ø> (ø)

Auth_plugin_unit_test
78.96% <ø> (ø)

DataStore_plugin_unit_test
76.12% <0.00%> (+0.30%)
:arrow_up:

Predictions_plugin_unit_test
26.81% <ø> (ø)

Storage_plugin_unit_test
58.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...MutationSyncMetadataMigrationDelegate+SQLite.swift
65.62% <0.00%> (ø)

...gin/Subscribe/DataStoreObserveQueryOperation.swift
76.40% <0.00%> (+1.12%)
:arrow_up:

.../DataStore/Model/Internal/Schema/ModelSchema.swift
66.00% <0.00%> (+4.00%)
:arrow_up:

...MutationQueue/OutgoingMutationQueue+Resolver.swift
82.14% <0.00%> (+10.71%)
:arrow_up:

...ngMutationQueue/OutgoingMutationQueue+Action.swift
33.33% <0.00%> (+33.33%)
:arrow_up:

...ingMutationQueue/OutgoingMutationQueue+State.swift
37.50% <0.00%> (+37.50%)
:arrow_up:

Continue to review full report at Codecov.

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


disallow recursive references for block-scoped bindings

Fixes #2188

All TypeScript errors are effectively warnings since they never block emit

@mihailik, your point is true of type errors as well, but we still report static errors for them. The idea is that we report an error on something if it will be an error when/if you get there.

:+1:

Let-recursivity is statically unknown in a general case, here's a very simple example:
let x = someFunc() > 0.9 ? x : 10;

For type errors the intention behind the code is very clear: type specification is a promise by the code writer. If it statically breaks, it's safe to point out a broken promise.
For let-recursivity cases, it's not as clear what is intentional and what is not. And much worse, there is no syntax to silence the checker (for type checks you can always cast to ).

Judging by the code and tests, the current behaviour is to report an error if x is used in its own initialiser expression, except for when it's used inside a function expression.
That sounds a reasonable balance to limit false positives and false negatives to edge case minority.
Being such a non-trivial error, it would be great to call out this validity check in the TS spec.


License checker feature

TODO:

[x] all the tests
[x] license allowlist behaviour as detailed in the thread https://github.com/google/osv-scanner/pull/501#discussion_r1306839555
[x] license table view

Codecov Report

Merging #501 (7675a78) into main (ac2897c) will decrease coverage by 1.64%.
Report is 1 commits behind head on main.
The diff coverage is 56.88%.

@@            Coverage Diff             @@
##             main     #501      +/-   ##
==========================================
- Coverage   80.33%   78.70%   -1.64%
==========================================
  Files          78       79       +1
  Lines        5406     5742     +336
==========================================
+ Hits         4343     4519     +176
- Misses        887     1035     +148
- Partials      176      188      +12

Files
Coverage Δ

pkg/reporter/table_reporter.go
100.00% <100.00%> (ø)

internal/output/markdowntable.go
94.44% <90.90%> (+21.71%)
:arrow_up:

pkg/osvscanner/vulnerability_result.go
81.33% <92.50%> (+2.90%)
:arrow_up:

cmd/osv-scanner/main.go
82.08% <78.26%> (-0.17%)
:arrow_down:

pkg/models/results.go
77.58% <61.53%> (-4.64%)
:arrow_down:

internal/output/table.go
79.65% <86.25%> (+3.89%)
:arrow_up:

pkg/depsdev/license.go
57.89% <57.89%> (ø)

pkg/osv/osv.go
52.87% <0.00%> (-10.65%)
:arrow_down:

pkg/osvscanner/osvscanner.go
54.25% <34.81%> (-6.39%)
:arrow_down:

... and 1 file with indirect coverage changes

Ah I see, looks like we might need to update the linter and the go version in the checks. errors.Join was added in go 1.20.


Parser support

standard supports custom JS parsers. To use a custom parser, install it from npm (example: npm install babel-eslint) and add this to your package.json:

{
"standard": {
"parser": "babel-eslint"
}
}

> https://github.com/feross/standard#can-i-use-a-custom-js-parser-for-bleeding-edge-es6-or-es7-support

I can't seem to get linter-js-standard to use this. Is there a way to do it?

Also seems to be related to #13 (reading `standard.ignore` setting from `package.json`). Maybe both can features be implemented the same way?

Nice :), I will ship this feature in the next major release, meaning it will come with #13.
I hope to finish the #13 this next Saturday, so stay tune.

Thanks @ricardofbarros :) Big fan of this tool! :heart:

Glad you love it :smile:

@cbas The 1.0.0 is released. And supports this feature you requested, but only for babel-eslint.
So thats why I need your help. I need to add the custom parsers to dependencies, because Atom can't get the env variables, so it can't find packages installed globally. The only workaround acceptable is to install those parsers locally in the dependencies of the linter-js-standard.
Do you know any other custom parsers? so I can add the support for them.

http://eslint.org/docs/user-guide/configuring.html#specifying-parser

The following parsers are compatible with ESLint:

Esprima
Esprima-FB - Facebook's fork of Esprima that includes their proprietary syntax additions.
Babel-ESLint - A wrapper around the Babel parser that makes it compatible with ESLint.

Cool thank you, will include those 2 as well.

Okay just released v1.0.5, now it supports as well esprima and esprima-fb.
Thank you :+1:


Feature: support for angular 10

angularx-qrcode should support angular 10.

[x] Rewrite library to support angular 10

[x] Harmonize major versions of angular and angularx-qrcode starting with angularx-qrcode 10

[x] Release angularx-qrcode 10

[x] Update angularx-qrcode sample app to use angular 10 and angularx-qrcode 10 -

[x] Document changes in the readme

angularx-qrcode 10.0.x released.


Programmatically vet external gauges

Currently, the Osmosis Frontend requires a manual, explicitly defined external gauge id (and ibc/denom hash) to be able to display on the pool's page. (see the 'Bonus bonding reward' boxes below)

It would be of much benefit to automatically pull bonding rewards for each pool by querying on-chain data for new external gauges.
-The Osmosis Frontend Repo would see fewer PRs to manage.
-Teams wouldn't need figure out how to manually define the gauges into the repo.
-Teams would need to wait for Osmosis Frontend repo maintainers to verify, validate, and merge PRs before external gauges can appear (potentially having rewarded epochs go before users can see that they'd be getting rewards)
-Teams would have less reason to postpones adding external gauges.
-etc.
To avoid external gauge spam, some restrictions should be placed before displaying any external incentive gauge./ We don't want to see any flooding of a pool's page with these boxes, or 'tricking' users into thinking they're receiving lots of incentives when really it's just small amounts of a lot of different tokens.
Initial Suggestions of restrictions:

Make sure it's a significant amount:
-Minimum daily emissions (by $ dollar value)

Make sure the token is 'valid'
-Token type limited to non-GAMM tokens

Open to hearing other ideas.

Logic would likely live here:
https://github.com/osmosis-labs/osmosis-frontend/blob/master/packages/stores/src/queries/pools/pool-details.ts#L287-L312
This function would become a getter and we would apply the above outlined conditions as filters on the gauges returned. Instead of using allowedGauges, you would call the getter above: allExternalGauges.

May be important to do this now that @JeremyParish69 is creating a script to automatically get a config for all active gauges (see PR #1178), which no longer takes into account whether a gauge is spam or not.

Now that we're using a gauge query on the next.js server, we could look into doing the vetting there.

@JeremyParish69 have we even seen or heard of any complaints of scammy gauges that made it past our filter? If not, I may close this for now.


npm WARN deprecated: Update deprecated dependencies

When installing the historyjs@latest, several dependencies result to be deprecated:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Can you please update them?

This library isn't maintained anymore.


new  proxy

https://zeronet.ipfsscan.io

Hi, thanks for contributing :)
But the proxy seems to be down at the moment, if it's temporary let me know to added to the list

Hi, thanks for contributing :) But the proxy seems to be down at the moment, if it's temporary let me know to added to the list

i fix it now

thanks, added it


typo improvement

"// use ⌘-K S to format without saving": It might be clearer to say "// use ⌘-K S (or Ctrl-K S) to format without saving", to ensure users who aren't using macOS can also understand the keyboard shortcut.

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1


I agree to follow this project's Code of Conduct

What is this?

omg, misclicked by mouse... sorry about that.


Error during crawl: ssl.SSLEOFError: EOF occurred in violation of protocol

Here's the log: http://paste.harrycross.me/view/0e2b296a
This error doesn't crash the archival, it sometimes happens for certains url.
Seems to affect different pipelines.

If the crawl continues, I don't think this is harmful.
The trace looks like a TLS misconfiguration and/or misbehavior on the site being archived.


Support building with node 16

SDK doesn't build with latest node version 16.

Waiting for fix in dependent package istextorbinary.


Add corrected current streak for streak command

This pull request introduces functionality to calculate and display the user's consecutive days streak in the user profile. The streak is based on the user's problem-solving activity and will help encourage users to maintain consistent engagement with the platform.
This feature addresses the issue where no streak information was available in the user profile
This pr introduces three friendly messages for Streak:

The user has solved problems up until yesterday. Complete today's submissions to maintain the streak and avoid a reset.
The user has an active streak through today. Great job, keep it going!
The user currently has no streak. Start solving problems today to build one!

Results:

for leetcode users Hubs902, sayalipanchal97, thedatacat

This pr fixes for #33

@jinx-vi-0
I have made the pr, kindly check if it is fine


Propagate units across a sequence of values

In GitLab by @jakebeal on Oct 23, 2019, 16:08
Right now, it you write 0, 1, 2 nM, only the last value gets units.
We should propagate units backward along numbers.

In GitLab by @jakebeal on Oct 23, 2019, 16:08
assigned to @tramyn

In GitLab by @tramyn on Oct 29, 2019, 09:44
created branch 139-propagate-units-across-a-sequence-of-values

In GitLab by @gzheng on Oct 31, 2019, 11:15
mentioned in merge request cp-request!116

In GitLab by @tramyn on Nov 18, 2019, 11:22
mentioned in merge request !76

In GitLab by @tramyn on Nov 18, 2019, 11:22
created merge request !76 to address this issue

In GitLab by @tramyn on Nov 18, 2019, 11:23
mentioned in merge request !77

In GitLab by @nwalczak on Nov 18, 2019, 14:40
closed via merge request !77

In GitLab by @nwalczak on Nov 18, 2019, 14:40
mentioned in commit 7a476b905faff7453f4ebc600e290b9aa8e38a24


Added exception for Deep Oil

This allows Deep Oil from Cargo Ships Mod to exist. This mostly fixes error in Issue #124 but does not make it so the oil doesn't spawn and is thus somewhat broken.

Disabling deep oil in cargo ships settings seems to work.


Error using radio receivedNumber/String if variable is already declared

microbit-support:3169
If you start your program with an onRadioReceived receivedNumber, and then use the drop down menu to change receivedNumber to receivedString, the variable type is not changed in the JS code, but it appears that it has and results in an operator error.

https://makecode.microbit.org/51330-19337-18540-12529
This can only happen if you have already declared receivedString as a variable, but in the classroom it is common practice to start with and extend a previous program/project, so it's becomes a common occurrence.

We need to remove the option to rename those mutator variables.
Get Outlook for iOShttps://aka.ms/o0ukef

From: microbit-mark<EMAIL_ADDRESS>Sent: Tuesday, November 14, 2017 12:39:35 AM
To: Microsoft/pxt
Cc: Subscribed
Subject: [Microsoft/pxt] Error using radio receivedNumber/String if variable is already declared (#3472)
microbit-support:3169
If you start your program with an onRadioReceived receivedNumber, and then use the drop down menu to change receivedNumber to receivedString, the variable type is not changed in the JS code, but it appears that it has and results in an operator error.
[radiobug]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F31242877%2F32770259-e322787c-c916-11e7-996e-c5c495988111.gif&data=02|01|jhalleux%40microsoft.com|9f87440d901c475945e508d52b3b3cd1|72f988bf86f141af91ab2d7cd011db47|1|0|636462455778906227&sdata=ypCGhLeQNF1M81%2FGyq2dOHWX%2Bepy25k%2BLE%2B%2FiQQcQ7A%3D&reserved=0
https://makecode.microbit.org/51330-19337-18540-12529https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmakecode.microbit.org%2F51330-19337-18540-12529&data=02|01|jhalleux%40microsoft.com|9f87440d901c475945e508d52b3b3cd1|72f988bf86f141af91ab2d7cd011db47|1|0|636462455778906227&sdata=T1we2LtiEEd03CGe6B%2Bttt0F6YPnMIKyGruBZKN63M8%3D&reserved=0
This can only happen if you have already declared receivedString as a variable, but in the classroom it is common practice to start with and extend a previous program/project, so it's becomes a common occurrence.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpxt%2Fissues%2F3472&data=02|01|jhalleux%40microsoft.com|9f87440d901c475945e508d52b3b3cd1|72f988bf86f141af91ab2d7cd011db47|1|0|636462455778906227&sdata=dDWdQIIGCap9lQm1zjGcjwHPDntIyYwIDAoQrsM2DF8%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD-4KZe2JhqbY_S9nCvldzqqes_gybegks5s2VHHgaJpZM4Qc-hB&data=02|01|jhalleux%40microsoft.com|9f87440d901c475945e508d52b3b3cd1|72f988bf86f141af91ab2d7cd011db47|1|0|636462455778906227&sdata=qYzcR02rnsirSwS8YUYOM3BN8mDXrQK8NtArXACDoBc%3D&reserved=0.

Moved to https://github.com/Microsoft/pxt-microbit/issues/627


Console & My Account breaks on Safari when Web Worker is used as the storage strategy in the @asgardeo/auth-react SDK

Describe the issue:
When webWorker is used as the storage strategy in @asgardeo/auth-react SDK, the apps break with a stack exceeding error in Safari (v15.3 latest at the time of issue creation).
How to reproduce:

Revert https://github.com/wso2/identity-apps/pull/3322.
Run My Accont and Console in the local development mode. (https://github.com/wso2/identity-apps#run-in-dev-mode)
Experience the following behaviour.

Expected behavior:
The apps should work as normal.
Related Issue

https://github.com/wso2/product-is/issues/14574

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 6.0.0-BETA2
OS: Mac
Browser: Safaro 15.3
Database: H2
Userstore: LDAP

A temporary fix was added to overcome the Safari issue by switching the storage mechanism to sessionStorage for Safari users.

Temp Fix: https://github.com/wso2/product-is/issues/14574

Added a temp workaround in https://github.com/wso2/identity-apps/pull/3322

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


When entering anything in search bar, page scrolls

https://github.com/shuding/nextra/assets/70720713/facd04f0-391b-47c7-9957-55787a418f2e

caused by https://github.com/shuding/nextra/pull/2104
https://github.com/llllvvuu/nextra/blob/e26ee4173bd690cf346f4e7fed333bf819c4e13e/packages/nextra-theme-docs/css/styles.css#L14


UUID Problem

So here's a new problem I'm facing and not sure if it's a plug-in that's causing the issue or what. So I have multiple plugins (harmony-hub, applescript, netatmo etc.) I have been using these for months with no issues. I decided to add a few more plugins (applescript-lightbulb, Marantz-denon) and updated to the harmonyhub-0.2.0-alpha and now I'm getting this issue.
Homebridge starts up fine, so there are no UUID collisions (or devices named the same thing). But after awhile, something causes homebridge to crash. Normally, I can restart Homebridge and it work fine again. But now, I'm getting the UUID error. It's as if, the first time all my plugin's register correctly, but then on relaunch, one plugin is trying to re-register it as a new device instead of as an existing one. I had to delete my persist and accessories folder and re-pair homebridge and once again it works until the crash then I'm at the same problem.
Has anyone had certain plugins that are the culprits? or should I go through them one by one and figure which one is causing problems? Each time I will have to delete and restart from scratch so it's kind of annoying to do by trial and error.

I had this problem when two devices had the same name. Caused the uuid error... Not sure if thats your problem but thats what I had

Thanks. It's true this error is caused by two devices having the same name but in my case, it's not that way when I first launch homebridge and pair. It seems to want to create a duplicate after the fact. I narrowed it down to the HarmonyHub 0.2.0 alpha plugin. Trying to still figure out what is causing the problem.

mine was also from the harmonyhub... I had two things called TV on two different hubs.


xet_fs.cp does not handle local files.

I would expect this to work:
    xet_fs = pyxet.XetFS()

    with xet_fs.transaction:
        print("In transaction:")
        print(f"copying: {local_filename} to {xet_path}.")
        xet_fs.cp(local_filename, xet_path)

But it just fails with
ValueError: Invalid Xet URL format: Expecting xet://user/repo/[branch]/[path]

And no additional information.

cp is only for remote to remote. local to remote is put. This is an fsspec method.


✨ rename integration to e2e

Summary
The current and only test we have is really e2e rather than integration.
This is issue #1570
Related issue(s)
Fixes #

This is duplication of what is inside  #1573 , please validate if there are additional changes need to be added on top of #1573

Duplicate of PR #1572.


Cow: Watch www-lhiproviderportal.com

Cow requests the watch of the watch_keyword www-lhiproviderportal\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

www-lhiproviderportal\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Simplify AsyncLoaderWorker and Configuration

Changes
We simplify the AsyncLoaderWorker to facilitate further changes to the code. We also restructure the data class hierarchy in Configuration to be more obvious. Finally, we update the TypeDB client to version 2.6.1, which is compatible the latest versions of TypeDB.

@hkuich  i am merging this to make a new release :)


Remove .autoStartup(false) configuration

A new Spring Cloud Stream version doesn't manipulate lifecycles manually any more.
Everything relies on the standard ApplicationContext environment.
Therefore all the endpoints should be in the .autoStartup(true) (default) to be started automatically by the ApplicationContext

merged.


Cadence

Guys, it would be great if you add cadence simulation, because it's really useful feature. Now i'm working on endomondo activity track uploading and i don't know how to transmit cadence info. I can get real device with cadence sensor, and intercept traffic but it's money and time. Your software could help me, but as i can see you're not supporting it.
Maybe you have plans to add in future?

Do you mean cadence sensor from cycling speed and cadence or cadence?
https://www.bluetooth.com/specifications/gatt/
Shouldn't be too hard to implement

I don't know what's it in specification, but that cadence isn't only about cycling but also about running. Step frequency is quite important for runners. Any sport app (endomondo, strava) should show cadence if you have some ant+ or another chest pulse sensor connected.


Find the construction event for contracts

This is required to put a lower bound on how far down to pickup log events.
The most obvious approach is to use the Etherscan (etc) Transaction fetch API in reverse, so you'd search ascending from block 1 to block<PHONE_NUMBER> and limit the search to only 1 transaction.
This sometimes would find a bad result, where people have accidentally written to the contract before it was created, but this edge condition is harmless - it would just result in a longer sync.
You would store this block number in realm, possibly in the same RealmAuxData as the log scanning uses, see updateEventReads in class Token.

For chains with no EtherscanAPI ... this is somewhat tricky.
Note to self (@JamesSmartCell): Modify the event crawl limit heuristic: If a transfer event is discovered, reset the eventReadStartBlock to the end of the search block with a discovered event, so it'll keep searching down from there.


Adds Python 3.5 to test suite.

No changes to the code are required to support Python 3.5.

Thanks!


Refactor 'Settle' in settling_game, realms-cli

Currently Crypts and Realms share 95% of code to stake/unstake.
Investigate how to abstract this for any future erc721s that will need to mint/stake and read packed data.

In main settling game contracts
In realms-cli contracts

Closing this
The path forward is stateless libraries where possible. A lot of the functions in these files are now within libraries that can be shared


Gitops example

Is there an example of how you would apply gitops via fluxCD so that terraform can create the cluster unattended?

@bainss Hey! Sorry for the delayed response. Yes - see examples like https://github.com/mumoshu/terraform-provider-eksctl/blob/cb513f57f5ce542745c05f0241cb9643bfbdbf09/examples/productionsetup-alb/testdata/01-bootstrap/main.tf#L132-L144

Marking as resolved based on mumoshu response. Reopen if that example wasn't enough


MY NAME

I CANT CANGER IT BACK IM MAD AND  ANGRY

Hi @leodiamod !
I'd need more information to understand what's going on, but in the meantime, you can always uninstall the extension and it'll go back to normal.
If you have some more information, let me know within a week or I'll plan on marking this issue for deletion :)
~ Ari

Closing because of lack of reply/context


Alarm Sound appears to be disconnected

Hi, guys
I have been using the application for quite some time now but recentely noticed (probably over the last few days) that the alarm sound appears to be disconnected, therefore there is no way for me to know when the pomodoro is finished. I even tried to check if it was me by increasing the overall volume level on my equipment, and also enabling the ticking sound on the application, but none of this made the trick.
I thought you might want to know. I miss the reminder when a pomodoro is finished and it's time to take a break :-D

Sound works for me, I think the problem is related with your
browser/computer
Have you tried with another browser/computer?
On Tue, Jun 23, 2015 at 11:45 PM, jopinto<EMAIL_ADDRESS>wrote:

Hi, guys
I have been using the application for quite some time now but recentely
noticed (probably over the last few days) that the alarm sound appears to
be disconnected, therefore there is no way for me to know when the pomodoro
is finished. I even tried to check if it was me by increasing the overall
volume level on my equipment, and also enabling the ticking sound on the
application, but none of this made the trick.
I thought you might want to know. I miss the reminder when a pomodoro is
finished and it's time to take a break :-D
—
Reply to this email directly or view it on GitHub
https://github.com/potomak/tomatoes/issues/134.

Let me check on that then. Will get back to you with a response.
Joel J. Pinto
Móvil 671 664 845
Email<EMAIL_ADDRESS>Web www.joelpintoromero.com
From: Ernesto Patarroyo
Sent: Wednesday, June 24, 2015 7:06 AM
To: potomak/tomatoes
Cc: jopinto
Subject: Re: [tomatoes] Alarm Sound appears to be disconnected (#134)
Sound works for me, I think the problem is related with your
browser/computer
Have you tried with another browser/computer?
On Tue, Jun 23, 2015 at 11:45 PM, jopinto<EMAIL_ADDRESS>wrote:

Hi, guys
I have been using the application for quite some time now but recentely
noticed (probably over the last few days) that the alarm sound appears to
be disconnected, therefore there is no way for me to know when the pomodoro
is finished. I even tried to check if it was me by increasing the overall
volume level on my equipment, and also enabling the ticking sound on the
application, but none of this made the trick.
I thought you might want to know. I miss the reminder when a pomodoro is
finished and it's time to take a break :-D
—
Reply to this email directly or view it on GitHub
https://github.com/potomak/tomatoes/issues/134.

—
Reply to this email directly or view it on GitHub.

You are right. I did try it on Explorer and Firefox and works fine. What do you recommend me to do? Unistall / reinstall Chrome?
 Joel Pinto Romero - Consultor Comercial Independiente
  Móvil (+34) 671 664 845
<EMAIL_ADDRESS>  Twitter: @JoelPintoRomero
  www.joelpintoromero.com

From: Ernesto Patarroyo
Sent: Wednesday, June 24, 2015 7:06 AM
To: potomak/tomatoes
Cc: jopinto
Subject: Re: [tomatoes] Alarm Sound appears to be disconnected (#134)
Sound works for me, I think the problem is related with your
browser/computer
Have you tried with another browser/computer?
On Tue, Jun 23, 2015 at 11:45 PM, jopinto<EMAIL_ADDRESS>wrote:

Hi, guys
I have been using the application for quite some time now but recentely
noticed (probably over the last few days) that the alarm sound appears to
be disconnected, therefore there is no way for me to know when the pomodoro
is finished. I even tried to check if it was me by increasing the overall
volume level on my equipment, and also enabling the ticking sound on the
application, but none of this made the trick.
I thought you might want to know. I miss the reminder when a pomodoro is
finished and it's time to take a break :-D
—
Reply to this email directly or view it on GitHub
https://github.com/potomak/tomatoes/issues/134.

—
Reply to this email directly or view it on GitHub.

Hi, Ernesto
I did unistall and reinstall Chrome and the problem persists, even though I know (and acknowledge) I did try the application on other browsers and it worked fine. What could the problem be?
 Joel Pinto Romero - Consultor Comercial Independiente
  Móvil (+34) 671 664 845
<EMAIL_ADDRESS>  Twitter: @JoelPintoRomero
  www.joelpintoromero.com

From: Ernesto Patarroyo
Sent: Wednesday, June 24, 2015 7:06 AM
To: potomak/tomatoes
Cc: jopinto
Subject: Re: [tomatoes] Alarm Sound appears to be disconnected (#134)
Sound works for me, I think the problem is related with your
browser/computer
Have you tried with another browser/computer?
On Tue, Jun 23, 2015 at 11:45 PM, jopinto<EMAIL_ADDRESS>wrote:

Hi, guys
I have been using the application for quite some time now but recentely
noticed (probably over the last few days) that the alarm sound appears to
be disconnected, therefore there is no way for me to know when the pomodoro
is finished. I even tried to check if it was me by increasing the overall
volume level on my equipment, and also enabling the ticking sound on the
application, but none of this made the trick.
I thought you might want to know. I miss the reminder when a pomodoro is
finished and it's time to take a break :-D
—
Reply to this email directly or view it on GitHub
https://github.com/potomak/tomatoes/issues/134.

—
Reply to this email directly or view it on GitHub.

@jopinto try to open inspector's console to see if there are any errors. You could also try to open tomatoes in an incognito window. If you have extensions I'd suggest also to try to disable them to see if there's an incompatibility between Tomatoes and one of them.
A workaround in the meantime would be to enable desktop notifications. To do so go to your profile and click on the link at the top of the page to enable them.

Thanks a lot,
I was able to sort it out by uninstalling and reinstalling the Chrome extension for tomato.es
Cheers
Joel J. Pinto
Móvil 671 664 845
Email<EMAIL_ADDRESS>Web www.joelpintoromero.com
From: Giovanni Cappellotto
Sent: Wednesday, June 24, 2015 4:16 PM
To: potomak/tomatoes
Cc: jopinto
Subject: Re: [tomatoes] Alarm Sound appears to be disconnected (#134)
@jopinto try to open inspector's console to see if there are any errors. You could also try to open tomatoes in an incognito window. If you have extensions I'd suggest also to try to disable them to see if there's an incompatibility between Tomatoes and one of them.
A workaround in the meantime would be to enable desktop notifications. To do so go to your profile and click on the link at the top of the page to enable them.
—
Reply to this email directly or view it on GitHub.

Ok, I'm closing this issue.

Sure. Will let you know if it comes alive again.
Thanks buddy
Joel J. Pinto
Móvil 671 664 845
Email<EMAIL_ADDRESS>Web www.joelpintoromero.com
From: Giovanni Cappellotto
Sent: Wednesday, June 24, 2015 4:48 PM
To: potomak/tomatoes
Cc: jopinto
Subject: Re: [tomatoes] Alarm Sound appears to be disconnected (#134)
Ok, I'm closing this issue.
—
Reply to this email directly or view it on GitHub.


Add support for filtering on a mapped dimension of a tensor field during nearest neighbor search

Is your feature request related to a problem? Please describe.
We have tensor fields with two mapped dimensions and one indexed dimension tensor<float>(p{}, q{}, x[384]). We would like to be able to search within one or more specific p dimension values.
Describe the solution you'd like
The nearest neighbor search operator to support one or more values for a mapped dimension. e.g.,
nearestNeighbor(tensor_field, query_vector, p=('value1', 'value2', 'value3'))

so that the search will only considers vectors where mapped dimension p has one of the values value1, value2 or value3.
Describe alternatives you've considered
Alternatively the nearest neighbor operator can accept only a single value for the mapped dimension, and for multiple values the query will have to consist of a disjunction of multiple nearest neighbor operators.
Additional context
N/A

Vespa supports this today using tensor compute expressions but not in the context of the nearestNeighbor query operator or HNSW indexing. Maybe you could elaborate on why you need it for retrieval? And illustrative use case would help.

We index vectors that are labeled. At search time, we need to retrieve only vectors with one or more specific labels. While this could be handled by creating a tensor field for each label, the full set of labels isn't known in advance, so we have to rely on a generic tensor field and use a mapped dimension for the label. Even though vectors for different labels do not follow the exact same distribution, in practice we have seen good recall with this approach with HNSW.

Hi @jobergum ! We haven't yet found a solution for the problem @farshidz is describing. We may have some capacity at some point to work on contributing this feature to Vespa. If we go down this route are there any tips to get started, or resources to point us towards?

Thanks @jobergum . Having this functionality at retrieval-time is key for our use case. Any estimate when this can become available? Or anything we can do from our end to help this get done?

The Vespa core work needed is expert level so probably not suitable for external contributions (although you're welcome to assess this yourself - code and build instructions are on GitHub).
We do plan to get to this at some point but no ETA currently. If you are a paying customer you can create a support ticket instead and we'll set an ETA.
Workaround: Add the labels to a string array in the document in addition to the tensor, and filter on that.

Agreed - thanks!

lets scope this when you are back, @geirst

Hi Kristian and Jon,
Thanks for the consideration. There is an additional wrinkle: We would need
to match on a substring of the mapped dimension, not the exact string. Our
mapped dimension is a concatenation of camera name and bounding box,
e.g. "camera_front_left_80:0,413,625,880" but we would only want to filter
on the camera name, e.g. "camera_front_left_80"
The implementation of filtering on mapped dimensions would need to support
this to be useful for us.
I ran into the same problem just now when trying to use ranking expressions
and a masking tensor. It seems the ranking expression language doesn't
support any string operations which is a bummer.
Likely we'll have to go the workaround route of just adding the list of
camera names as an indexed field separately.
Cheers,
Wolf
On Wed, Aug 7, 2024 at 5:11 AM Kristian Aune @.***>
wrote:

lets scope this when you are back, @geirst https://github.com/geirst
—
Reply to this email directly, view it on GitHub
https://github.com/vespa-engine/vespa/issues/29587#issuecomment-2273323035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BB3B5NNIUPKQWZG76WMFM3DZQIFHFAVCNFSM6AAAAABAL3LY5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZTGMZDGMBTGU
.
You are receiving this because you commented.Message ID:
@.***>

--
Confidentiality Note: We care about protecting our proprietary
information, confidential material, and trade secrets. This message may
contain some or all of those things. Cruise will suffer material harm if
anyone other than the intended recipient disseminates or takes any action
based on this message. If you have received this message (including any
attachments) in error, please delete it immediately and notify the sender
promptly.

I feel supporting string matching operations on structured keys is a road we might not want to go down ...
If we supported indexing with multiple mapped dimensions, could you do e.g tensor(camera{}, box{}, v[...]) instead of a concatenation?

Yeah, potentially we could do that. We didn't realize this was an option.
Wolf
PS: Still, some string matching or general string operations in the ranking
expressions could be helpful.
On Wed, Aug 7, 2024 at 12:54 PM Jon Bratseth @.***>
wrote:

I feel supporting string matching operations on structured keys is a road
we might not want to go down ...
If we supported indexing with multiple mapped dimensions, could you do e.g
tensor(camera{}, box{}, v[...]) instead of a concatenation?
—
Reply to this email directly, view it on GitHub
https://github.com/vespa-engine/vespa/issues/29587#issuecomment-2274239795,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BB3B5NL2XQNIALKJHQBPZCLZQJ3Q7AVCNFSM6AAAAABAL3LY5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGIZTSNZZGU
.
You are receiving this because you commented.Message ID:
@.***>

--
Confidentiality Note: We care about protecting our proprietary
information, confidential material, and trade secrets. This message may
contain some or all of those things. Cruise will suffer material harm if
anyone other than the intended recipient disseminates or takes any action
based on this message. If you have received this message (including any
attachments) in error, please delete it immediately and notify the sender
promptly.

you can now get (most of) what you want by filtering in first-phase ranking.
let us first take the case with "p" and "q" dimensions, we want to filter on "p", and take the best of those that remain.
assume the field is defined like:
    field myvectors type tensor<float>(p{}, q{}, x[384]) {
        indexing: attribute | index
        attribute {
            distance-metric: angular
        }
    }

we will do approximate nearest neighbor search for a vector called "nns_v", and we can use this rank profile:
  rank-profile filterednns {
    inputs {
      query(nns_v) tensor<float>(x[384])
      query(p_filter) tensor<float>(p{}) : {}
    }
    function p_filtered_attr() {
      expression {
        if (reduce(query(p_filter),count)==0,
            attribute(myvectors),
            query(p_filter)*attribute(myvectors))
      }
    }
    function filtered_similarity() {
      expression: cosine_similarity(p_filtered_attr, query(nns_v), x)
    }
    first-phase {
      expression {
          reduce(filtered_similarity, max)
      }
      rank-score-drop-limit: 0.0
    }
  }

This will rank on cosine similarity but only for those vectors which match the "p_filter", so a query like
vespa query 'select * from sources * where {targetHits:500}nearestNeighbor(myvectors, nns_v)' 'ranking=filterednns' 'input.query(p_filter)={value1:1,value2:1}'  'input.query(nns_v)=[(...384 numbers...)]
will give the best documents considering only vectors where the "p" label is "value1" or "value2".
Here the "p_filter" is optional and the "p_filtered_attr()" function is a NOP if it's not given, so this can be extended to optional filtering in multiple dimensions.  Note that "cosine_similarity" is just one option for scoring the vectors and is not always appropriate, it was chosen to make the example simple.

For a more complex example assume a field like
    field embeddings type tensor<float>(direction{}, side{}, view{}, x[16]) {
        indexing: attribute | index
        attribute {
            distance-metric: angular
        }
    }

where we want to filter with 'input.query(dir_filter)={back:1}' and/or 'input.query(side_filter)={right:1}' and/or 'input.query(view_filter)={"100_100_500_300":1}'
this rank-profile could be suitable for development / debugging as it includes summary-features to show intermediate results and details:
  rank-profile multifilter {
    inputs {
      query(nns_v)       tensor<float>(x[16])
      query(dir_filter)  tensor<float>(direction{}) : {}
      query(side_filter) tensor<float>(side{}) : {}
      query(view_filter) tensor<float>(view{}) : {}
    }
    function dir_filtered_attr() {
      expression {
        if (reduce(query(dir_filter),count)==0,
            attribute(embeddings),
            query(dir_filter)*attribute(embeddings))
      }
      # result is optionally filtered on direction
    }
    function side_filtered_attr() {
      expression {
        if (reduce(query(side_filter),count)==0,
            dir_filtered_attr,
            query(side_filter)*dir_filtered_attr)
      }
      # result is optionally filtered on direction and side
    }
    function view_filtered_attr() {
      expression {
        if (reduce(query(view_filter),count)==0,
            side_filtered_attr,
            query(view_filter)*side_filtered_attr)
      }
      # optionally filtered on direction, side, and view
    }
    function after_filter_count() {
      # counts the number of vectors after filtering
      # (number of cells divided by cells per vector)
      expression: reduce(view_filtered_attr, count)/16
    }
    function filtered_similarity() {
      expression: cosine_similarity(view_filtered_attr, query(nns_v), x)
    }
    first-phase {
      expression {
          reduce(filtered_similarity, max)
      }
      rank-score-drop-limit: 0.0
    }
    summary-features {
      after_filter_count
      filtered_similarity
    }
  }

the result could then include something like
                    "summaryfeatures": {
                        "after_filter_count": 1.0,
                        "filtered_similarity": {
                            "type": "tensor<float>(direction{},side{},view{})",
                            "cells": [
                                {
                                    "address": {
                                        "direction": "back",
                                        "side": "right",
                                        "view": "100_100_500_300"
                                    },
                                    "value": 0.6889986395835876
                                }
                            ]
                        }

Support for nearest neighbor search over a tensor with multiple mapped dimensions is available in Vespa 8.417.13.
This is required for the filtering examples above.


Branch adding pagebreaks

Codecov Report

Merging #288 (e34c644) into master (bbcdc6a) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #288   +/-   ##
=========================================
  Coverage     75.97%   75.97%
  Complexity      683      683
=========================================
  Files            94       94
  Lines          1998     1998
  Branches        223      223
=========================================
  Hits           1518     1518
  Misses          414      414
  Partials         66       66

Continue to review full report at Codecov.

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


Add sdr.design_lowpass_fir()

Closes #146

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (aff2484) 76.61% compared to head (1501306) 77.13%.

Files
Patch %
Lines

src/sdr/_filter/_design_fir.py
94.73%
3 Missing :warning:

Additional details and impacted files
@@                Coverage Diff                @@
##           release/0.0.x     #156      +/-   ##
=================================================
+ Coverage          76.61%   77.13%   +0.52%
=================================================
  Files                 40       41       +1
  Lines               1967     2025      +58
=================================================
+ Hits                1507     1562      +55
- Misses               460      463       +3

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


How make it work on Raspberry PI 3

How make it work?
I have download lvgl and download lv_examples inside lvgl. But how i can run it into my raspberry pi 3?
In connecting to my raspberry pi 3 using SSH.
There is not documentation. The only decent tutorial that i found is a video that use eclipse and pc simulator.
Thanks.

Basically, you can use the makefile from the PC simulator project.
Please read these:
http://www.vk3erw.com/index.php/16-software
http://bkhome.org/news/201808/first-go-at-evaluating-littlevgl.html

Hi,
Thanks for fast answer.
I make it work using pc_simulator into my raspberry pi 3. Maybe you can add it to readme after install sdl2:
git clone https://github.com/littlevgl/pc_simulator.git
cd pc_simulator
make
./demo

But i have another question. Mouse and my touch LCD is not working.
This is my LCD:
https://www.aliexpress.com/item/New-Raspberry-Pi-3-Display-HDMI-7-Inch-1024X600-LCD-with-Touch-Screen-Monitor-for-Raspberry/32682184439.html?spm=a2g0s.90423<IP_ADDRESS>5c4c4d4Hemur
Can you help me config it?

Hi,
I updated the readme and porting guide to tell LV_HOR_RES, LV_VER_RES and LV_COLOR_DEPTH should be checked and adjusted. Thank you for pointing out this out.
You should use the evdev driver instead of the mouse on Raspberry.

I have configured it. Also you can add it to readme.
How to enable touch
1 - Open "lv_drv_conf.h". Add lines or edit if already exists to be:
#define USE_EVDEV 1
#if USE_EVDEV
#define EVDEV_NAME   "/dev/input/event0"
#endif

2 - Open "main.c" and add include:
#include "lv_drivers/indev/evdev.h"

3 - Open "main.c" and inside function "hal_init" add:
evdev_init();
lv_indev_drv_t indev_drv_touch;
lv_indev_drv_init(&indev_drv_touch);
indev_drv_touch.type = LV_INDEV_TYPE_POINTER;
indev_drv_touch.read = evdev_read;lv_indev_drv_register(&indev_drv_touch);

4 - Make the project and execute
make
./demo

Hi,
I change from:
#define EVDEV_NAME   "/dev/input/event0"

To:
#define EVDEV_NAME   "/dev/input/event2"

Because when i type "evtest" i got:
Available devices:
/dev/input/event0:	USB USB Keykoard
/dev/input/event1:	USB USB Keykoard
/dev/input/event2:	深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标

So when i use on event2 it works.
My only problem now is:
1 - The delay between the touch recognise, because i need press between 300ms to it really press the button or other component, its not realtime.
2 - The mouse arrow still appear, but i dont have/use mouse.

Good to hear you made it work.
I will add info about the use of evdev and the evtest tools.

You should test with printf what happens. The info comes slowly from the driver or LittlevGL processes it slowly?

As you program is only an application and if Raspberry draws a mouse cursor by default you should find the  (outside of LittelvGL) to hide it

As there was no activity here for a while  I suppose the issue is solved.
If it's not working feel free the comment here and reopen this issue.


Tests are broken

As soon as I merged #73, I realised I had broken the tests:
=== RUN   ExampleEnumerator_case1
--- FAIL: ExampleEnumerator_case1 (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x19 pc=0x4b2b5e]

goroutine 1 [running]:
panic(0x5fdea0, 0xc420010100)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
testing.runExample.func2(0xecfe0fb27, 0xc439a5e782, 0x77a000, 0xc4203a9ae0, 0xc42002c010, 0xc42044e600, 0x638d19, 0x17, 0x671c10, 0x6513b5, ...)
	/usr/local/go/src/testing/example.go:109 +0x392
panic(0x5fdea0, 0xc420010100)
	/usr/local/go/src/runtime/panic.go:458 +0x243
github.com/cznic/cc.(*Model).enumValueToInt(0xc4204cc2c0, 0x5edd00, 0xc4202fe110, 0xc4201c21b8, 0x745e00, 0xc42044e840)
	/home/pwaller/.local/src/github.com/cznic/cc/model.go:164 +0x9e
github.com/cznic/cc.yyParse(0x73af40, 0xc4203c2600, 0xc42030fb90)
	/home/pwaller/.local/src/github.com/cznic/cc/parser.go:4112 +0x175eb
github.com/cznic/cc.exampleAST(0x8c, 0x6381d8, 0x15, 0xc42030fc80, 0xc42030fc88)
	/home/pwaller/.local/src/github.com/cznic/cc/cc.go:218 +0x127a
github.com/cznic/cc.ExampleEnumerator_case1()
	/home/pwaller/.local/src/github.com/cznic/cc/ast_test.go:1468 +0x43
testing.runExample(0x638d19, 0x17, 0x671c10, 0x6513b5, 0x197, 0x0, 0x0)
	/usr/local/go/src/testing/example.go:114 +0x1a0
testing.RunExamples(0x6725b0, 0x775f20, 0x11e, 0x11e, 0x1)
	/usr/local/go/src/testing/example.go:38 +0x15e
testing.(*M).Run(0xc42030fec8, 0xe072)
	/usr/local/go/src/testing/testing.go:744 +0xbd
main.main()
	github.com/cznic/cc/_test/_testmain.go:716 +0xc6
exit status 2

I have to go AFK for a while now. Sorry! Will fix it when I get back if I get a moment.

Oh sorry, I've fixed already in https://github.com/cznic/cc/commit/0040ed408c08ca4ff7c4866e82e747e9f7b97c62.
My fault to LGTM w/o running tests.

:+1:

:+1: thanks. Excellent piece of software, and thanks again for being responsive.

Excellent piece of software...

You're being too generous ;-)
W/o pretending any humbleness, this is one of the packages I'm ashamed most for. Started as a QND hack for literally one-only .c file and it can still be seen all over the code. But is's improving, also b/c of help from others. Thanks!


JS errors when pasting a lot of data using the clipboard

When using the clipboard and submitting a lot of data, a loop of JavaScript errors happen.
From a user perspective, the clipboard submit does't work and the interface doesn't seem to be responsive.  A refresh of the page is needed.

Fixed with v4 image.


Switch LTI class and subclasses to use ninputs, noutputs, nstates

This PR changes the LTI class and the StateSpace class (and all derived classes) to use ninputs, noutputs, and nstates as the attributes for storing these properties instead of inputs, outputs, and states.  The former names are consistent with what is used in the InputOutputSystem class.
Following the suggestion of @bnavigator in issue #451, getter and setter functions are used for backward compatibility, but with a PendingDeprecationWarning.
Note that this PR will generate some small conflicts with #514.  I'll rebase based on which one we merge first.

Coverage decreased (-0.2%) to 87.433% when pulling 374c82f9ebd8e2dd3d791f419d81ad35f1843b9e on murrayrm:input_output_to_ninput_noutput into 0a08ff2cd6fbff60233c104c745358b0ca0d37c9 on python-control:master.

Coverage decreased (-0.2%) to 87.433% when pulling 374c82f9ebd8e2dd3d791f419d81ad35f1843b9e on murrayrm:input_output_to_ninput_noutput into 0a08ff2cd6fbff60233c104c745358b0ca0d37c9 on python-control:master.

Awesome! Looks good to me.

Awesome! Looks good to me.

One more thing I noticed: there are a few mentions of sys.inputs/outputs in docs in xferfunc.py that should probably be fixed.

One more thing I noticed: there are a few mentions of sys.inputs/outputs in docs in xferfunc.py that should probably be fixed.

May also need to check for self.inputs ?
On Wed, Jan 20, 2021 at 4:55 PM Richard Murray<EMAIL_ADDRESS>wrote:

Rebased against master (and apparently fixed up the xferfcn.py docstring,
since I can't find sys.inputs in that file anymore).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/python-control/python-control/pull/515#issuecomment-764120232,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN74SSJ5JBUKXGQFCPSH3J3S253OPANCNFSM4WKCYWEQ
.

--
Sawyer Fuller
Assistant Professor of Mechanical Engineering
Adjunct, Paul G Allen School of Computer Science
University of Washington
http://faculty.washington.edu/~minster/
(Typed with my thumbs)

May also need to check for self.inputs ?
On Wed, Jan 20, 2021 at 4:55 PM Richard Murray<EMAIL_ADDRESS>wrote:

Rebased against master (and apparently fixed up the xferfcn.py docstring,
since I can't find sys.inputs in that file anymore).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/python-control/python-control/pull/515#issuecomment-764120232,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN74SSJ5JBUKXGQFCPSH3J3S253OPANCNFSM4WKCYWEQ
.

--
Sawyer Fuller
Assistant Professor of Mechanical Engineering
Adjunct, Paul G Allen School of Computer Science
University of Washington
http://faculty.washington.edu/~minster/
(Typed with my thumbs)

was it a deliberate choice to leave init keywords as inputs/outputs rather than ninputs/noutputs,

This matches the syntax we use in the InputOutputSystem class constructor.  In that setting (and perhaps later here as well), inputs and outputs can be an integer or a list of strings (which get used for signal names).

was it a deliberate choice to leave init keywords as inputs/outputs rather than ninputs/noutputs,

This matches the syntax we use in the InputOutputSystem class constructor.  In that setting (and perhaps later here as well), inputs and outputs can be an integer or a list of strings (which get used for signal names).

That makes sense. Thanks!

That makes sense. Thanks!


Eliminate templates from jrt_read_from_buffer_by_offset and jrt_write_to_buffer_by_offset

Refactor jrt_read_from_buffer_by_offset and jrt_write_to_buffer_by_offset to eliminate template.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs<EMAIL_ADDRESS>

Looks good to me

@rtakacs please share performance measurements and changes in binary size.

I measured some things on a rpi2 board. The master revision was 140982e

section
size

.text
190732 -> 190900 (-0,088)

. rodata
8168 -> 8172 (-0,04)

.bss
2363840 -> 2363904 (-0,003)

Note: the other sections are not modified.

Benchmark
RSS(+ is better)
Perf(+ is better)

3d-cube.js
132 -> 132 (0)
3.742 -> 3.756 (-0.374)

access-binary-trees.js
88 -> 88 (0)
1.909 -> 1.938 (-1.519)

access-fannkuch.js
48 -> 48 (0)
9.812 -> 9.655 (1.6001)

access-nbody.js
64 -> 64 (0)
4.539 -> 4.534 (0.1102)

bitops-3bit-bits-in-byte.js
40 -> 40 (0)
2.672 -> 2.613 (2.2081)

bitops-bits-in-byte.js
40 -> 40 (0)
3.727 -> 3.705 (0.5903)

bitops-bitwise-and.js
36 -> 36 (0)
4.296 -> 4.235 (1.4199)

controlflow-recursive.js
220 -> 220 (0)
1.727 -> 1.75 (-1.332)

crypto-aes.js
160 -> 160 (0)
6.097 -> 6.134 (-0.607)

crypto-md5.js
208 -> 208 (0)
35.795 -> 34.686 (3.0982)

crypto-sha1.js
144 -> 144 (0)
15.531 -> 14.946 (3.7667)

date-format-tofte.js
112 -> 112 (0)
4.009 -> 4.076 (-1.671)

date-format-xparb.js
96 -> 96 (0)
2.113 -> 2.14 (-1.278)

math-cordic.js
48 -> 48 (0)
4.009 -> 4.078 (-1.721)

math-partial-sums.js
44 -> 40 (9.0909)
2.34 -> 2.34 (0)

math-spectral-norm.js
48 -> 48 (0)
2.256 -> 2.289 (-1.463)

string-base64.js
204 -> 200 (1.9608)
---

string-fasta.js
56 -> 56 (0)
5.862 -> 5.775 (1.4841)

Geometric mean:
RSS reduction: 0.6375%
Speed up: 0.2681%

Note: all tests ran 10 times.

The results look good. Can we get this merged?

@tilmannOSG depends on @galpeter  ^_^

@rtakacs, could you, please, rebase the patch to the current master?

This is done by #791 so we can close this PR.


Sort variables when creating storage metadata

Hey @brentyi
this PR should fix: https://github.com/brentyi/jaxfg/issues/12
Not sure about sorting the full list of variables as sorted is not in-place afaik. If performance is an issue, we could scan over the full list first and extract all unique type(variable)-keys and sort them rather the full list.
Let me know what you think :)

All valid points @brentyi. I just added a basic test, feel free to modify it to your style.
And yes, the sorting is definitely not optimal. I think the root of the problem lies in the two array accesses:
assignments.storage[indices] in _factor_stack.py
https://github.com/brentyi/jaxfg/blob/f5204945bb6afa444810e6163e9a913bdbdd636b/jaxfg/core/_factor_stack.py#L166
https://github.com/brentyi/jaxfg/blob/f5204945bb6afa444810e6163e9a913bdbdd636b/jaxfg/core/_factor_stack.py#L189
If I am not mistaken? Basically, here, the pre-calculated indices depend on the StorageMetadata layout when the factor stack is created but assignments.storage depends on the layout when the VariableAssignments is created. The sorting of the variables ensures that the layout is the same.
Related to your suggestion to allow arbitrary sorted value assignments. An immediate, obvious and different fix would be calling assignments.get_value(variable) rather than directly accessing storage, but this is not possible as the variables in self.factor.variables are anonymized. This anonymization would also hinders us from your suggested unshuffling of the assignment object as we do not know how they were initially shuffled when the factor stack was created. But please correct me if I am wrong or overlook something, you have a much better overview of the code!
I think there are two possible ways to go around this:

We come up with a better canonical way to sort variables before creating the underlying storage_metadata. As currently, this is then used when constructing the storage_metadata within the variable assignment and the stacked factor graph respectively and thus, array indices are in sync
We modify the VariableAssignment constructors to not take in the variables but rather a stacked_factor_graph from which we can retrieve the storage_metadata object used for the underlying graph. This would break the current API though. As a nice side-effect we would also ensure that the variable assignments are always consists of all variables present in the factor graph. E.g. currently, when doing something like this

variables = [Variable_A(), Variable_A()]
VariableAssignments.make_from_dict({variables[0]: <...>}) # No variables[1]!
...

will silently work fine but shouldn't or at least throw a warning? For context, the assignment created will have storage.shape = (1,). The variable indices created when stacking the factors though would be something like [[0], [1]] (depending on graph structure bla). Now the call mentioned above
assignments.storage[indices] wouldn't work in normal numpy but does in JAX. Passing the stacked graph to the VariableAssignments.make_from_... would prevent missing indices and the indices misalignments.

Appreciate the test + detailed note. :)
get_value() is certainly a bit messy to use because it only lets us pull out a single variable value at a time; indexing is much nicer for performance.
Can you take a look at the code I just pushed? It fixes the underlying issue you pointed out and I think addresses the other concerns you had. I agree in particular that handling the reordering within the FactorStack implementation would be challenging, but the key thing is that we can just slap an assert there and handle reordering at a higher level where it's easier (for example, at the start and end of nonlinear solves).
In contrast to (1), the current approach keeps the variable ordering more predictable by just matching whatever's passed into the VariableAssignments instantiation (important for get_stacked_value()), and in contrast to (2) doesn't break any existing APIs (although I see the appeal of something like graph.make_assignments(...)).