Fix for what appears to be incorrect initialisation.

Delete the README after you read it.
I meant to put the contents of the README.md file in the commit message but forgot and github doesn't let me edit the commit message after the fact.
So I stuck it in there for you to see what I did, forgetting github allows me to comment on the PR, so mb all the way around.
Remember when I said I hate un-intuitive github? lol

I will check in more details your PR, but I will try to give you some glims why some part of code are written as they are written.
If you cannot find where flag for v9 is set, that is intetional. It was set in prevous version of the mod.
Idea was to keep backward compatibility between version 9 and 9.2+.
So if someone was updating mode and he did not want his game to be broken, his old game would have 9.0 flag set, and this would update his save.
Both 9 and 9.2 were long ago, and we can probably safelly remove upgrade support.
Also there might be some other bug I did not notice, so I will review changes.

Cool, the v9 gvar could always be added back in if you think someone will have an old save game but with Lance it probably means their savegame will no longer be viable anyway.
Setting the v9 gvar itself in another part of the code would not be a problem, it's just that the code was still hooked up to it so the initialization never happened as intended.
Anyway, the code's there for you to review whenever you get a chance.

I had time to check proposed changes.
Initialization was happening as intended. Outer IF was checking if v9.2 gval was not set. If that was the case than the game with this version of mod was never setup and needs to be set up. When we enter in that if, there was second if/else. In second if/else we were asking did someone played this game with mod v9.0. If he have played, he would have flag v9.0 set in his have, yes mod does not set this flag anyware anymore, but it used to set it in version v9.0 and players who upgraded the mode might have it. If he did used mod with version 9.0 he would go to if branch, he would have everything initialized,  but with data will be invalid. So we were clearing that invalid data. On other hand else statement is true first time initialization. This player was not with mod before. Any version of mod.
I created my own commit to drop support of 9.0 backcompatibility. I also there reorder creation of ACS windowses so propper init order is triggered. I will close this PR as not needed anymore.


Convert docker compose files to basic kubernetes manifests for dev use

What was changed

Added conversion of docker compose files to basic kubernetes manifests.
Why?

This makes it easy to try Temporal in Kubernetes without messing around with helm. These installs are simpler and lighter than the helm setups and are auto-generated from the docker compose files, making maintenance easier.
Checklist

Closes

How was this tested:

Installed the various manifests in minikube to check they worked.

Any docs updates needed?

I have added a KUBERNETES.md file and linked to it from README but we made decide more docs are needed.

kompose can generate all the manifests for a given docker-compose file in a single yaml file if we think that's preferable to the split-out style I've used here.


zig_0_10: switch to baseline cpu target for better compatibility

Description of changes
Use baseline for ensuring broader CPU compatibility with the zig compiler.
In #215709 we discovered that we are unable to build river on even more recent 9th gen Intel CPUs. It's not clear to me why that CPU is unable to build using the hydra-built zig binary, but this should resolve it.
Also mentioned in #215745

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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.05 Release Notes (or backporting 22.11 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.

Why not 0.9? I've done it in #216736.
I was originally waiting for the author of #214440 to fix this (see https://github.com/NixOS/nixpkgs/pull/214440#issuecomment-1423471493), but was going to PR both since it's been over a week and this is hindering users. 🤷♀

Why not 0.9? I've done it in #216736.

Because no one said it before.

Why not 0.9? I've done it in #216736.

Because no one said it before.

Said what? It should have been done for both in the first place, because it ensures reproducibility. It's likely that our 0.9 build has been irreproducible this entire time... 🙃

It just passed without notice, that's what I meant.

I didn't realize this affected 0.9 as well, or I would have included both. I should have dug deeper to verify.


Blog: introduction to bpfd

The purpose of this PR is to enable a blog on the website, and then add our first blog post: an introduction to bpfd.
Resolves #648
NOTES
Multiple contributors: please rebase merge instead of squash.

@dave-tucker we have a problem with the blog plugin, and @astoycos figured out it seems to be this:
https://github.com/squidfunk/mkdocs-material/issues/5317
The blog plugin is currently reserved to sponsors

Any thoughts on how we should do the blog with that in mind?

Thanks for the suggestions @dave-tucker.

This is ready for review.  I added a hold label so that it doesn't auto-merge before everyone who wants to has had a chance to review it.  Thanks!  -- Andre and Shane

Thanks for the reviews.  I'll go through them this morning.

Ok.  I've taken a pass at addressing all the comments.  I've also rebased and squashed everything except for the last commit that addressed the comments to make it easier to see what I changed.  I probably messed something up, so I'll plan to do a fresh read-through tomorrow morning.

I made a few more editorial tweaks, squashed everything together, and removed the hold.

Rebased this to get CI passing


🔮 magical era of hooks

This PR introduces hooks mode in commandkit. This is currently behind experimental flag and can be enabled like this:
const commandkit = new CommandKit({
  // ...
  experimental: {
    hooks: true // disabled by default
  }
});

Once this is enabled, commandkit runs in hooks mode. Command context is no longer passed as an argument, but through hooks.
// without hooks
export async function run({ interaction }: SlashCommandProps) {
  // do stuff
}

// with hooks
export async function run() {
  const interaction = useInteraction();
  // do stuff
}

Additionally, this PR also adds response function to safely reply to interaction
import { response, useGuild } from 'commandkit'

export async function run() {
  const guild = useGuild();
  if (!guild) {
    response({ content: 'You are in DMs' });
  } else {
    response({ content: 'You are in guild' });
  }
}

this is just a concept, feel free to close if this feels unnecessary for bots creation

The latest updates on your projects. Learn more about Vercel for Git ↗
Name	Status	Preview	Comments	Updated (UTC)
commandkit-docs	❌ Failed (Inspect)			Jan 4, 2024 8:19pm

@twlite nahh even vercel hates you. i thought it was just netlify

The latest updates on your projects. Learn more about Vercel for Git ↗
Name	Status	Preview	Comments	Updated (UTC)
commandkit-docs	❌ Failed (Inspect)			Jan 4, 2024 8:19pm

@twlite nahh even vercel hates you. i thought it was just netlify

yes


Allow moderators to run :sudo and remove :showlogs

Allow moderators to run :sudo and remove :showlogs
This is currently as a draft for further review particularly because of potential security implications if something is wrong.
WORK IN PROGRESS

Why would moderators need sudo?


add earcut to BCR

added the earcut cpp dep to BCR

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (earcut) have been updated in this PR. Please review the changes.


Added ability to display signed distances with model comparisons

AB#1197

Comparison models now export with signed distances
The user now has a choice of rendering absolute or signed distances
New UI elements to set up comparison viewing
Gradient colour banding
Possibility for users to set custom colours for colour banding (not implemented)

I've handled this locally and merged with #410


Adding support for seleniumlibrary

@idxn Im afraid not. Although the keyword has not been removed, open eyes keyword would no longer get current Appium instance. Have you tried using RobotEyes with AppiumLibrary? I can add the support back if it is something that is still of any use. Maybe passing the library name as an argument to the open eyes keyword would then support Appium and Selenium and also avoid basic code changes in case of name changes. Thoughts?

@jz-jess I have planned to use with appium and haven't try it yet. I looked into the issues and found this. I agree that passing the lib name is a better way to go.

@idxn I have updated the code to include an optional "lib" argument which is None by default.
By default, calling open eyes will get instance of Selenium2Library or SeleniumLibrary unless another library is passed from robot test as an argument.


Retain facility ID after event

Given that a facility has been moved due to an event, the facility ID stays the same and is unchanged, so a facility's history throughout its ownership can be tracked.

@hannavovk @andrea-williams should I drag this into next sprint backlog? I just created it, its related to sales/transfer


Fix init code so it works properly on Vulkan 1.1 devices

We we're excluding Vulkan 1.2 code based on the Vulkan SDK we compiled against, not the capabilities of the device. As we were compiling against a Vulkan 1.1 SDK on android we didn't notice this was causing issues.
Now that we use Volk we are compiling against Vulkan 1.2 headers but we still need to prevent using Vulkan 1.2 structures if we're on a Vulkan 1.1 device.

Thanks!

@BastiaanOlij Was wondering if this change might have led to #51955?
FWIW I can test pre-built binaries if there's one with this reverted or from an earlier build but probably not realistic for me to build from source currently.

@follower this shouldn't cause a segfault, maybe prevent one... Before this fix we were using Vulkan 1.2 features even if Vulkan 1.2 wasn't available..


angle dt() function is not working on safari browser

Version
v2000.2
What browsers are you seeing the problem on?
Safari
What happened?
I wrote this line and aspect object rotation. It's working fine on Firefox and chrome  but not working on safari
galaxyOrange.angle += dt() + 0.5
is
What's the expected behavior?
Object rotation
Minimum reproducable code
No response
Live demo
No response

What's the behavior of not working, It doesn't rotate?
Does this example work for you?

Yes, it's working. I think I have some error on my side
Thank you for helping.


Generating a video with numpy and writing it with pyav does not preserve color

Overview
I am using a modified version of examples/numpy/generate_video.py to obtain a video with a clear edge.
When converting the numpy frames to video the edge between colors gets blurry, see images below.
Expected behavior
There should be a clear edge between the magenta and the green.
I expect to see something like this:

Actual behavior
This is what I get instead, there is one pixel which has an interpolated color:

Investigation
I tried using different colors, encoders, container, color formats, but the issue remains. Even with a yuv444p pixel format the issue persists.
When saving the single frame as an image like this (code included in the MRE below):
frame = av.VideoFrame.from_ndarray(img, format="rgb24")
frame.to_image().save("rgb24.png")
for f in ["yuv420p", "yuv422p", "yuv444p"]:
    frame.reformat(format=f).to_image().save(f"{f}.png")

the only one that is wrong is the "yuv420p" version, but this is somehow expected, I think. The 444 and 422 versions are as I expect them to be. Here is how the yuv420p.png saved from the script looks:

Instead, when saving the video the colors are always blended, no matter what pixel format is used.
Reproduction
import av
import numpy as np
from PIL import Image

duration = 1
fps = 50
w = 800
h = 600

# Also tried y4m with wrapped_avframe codec, ffvhuff in mkv container.
container = av.open("test.mkv", mode="w")
stream = container.add_stream("ffv1", rate=fps)

stream.width = w
stream.height = h
stream.pix_fmt = "yuv444p"  # "yuv422p", "yuv420p"

total_frames = duration * fps
for i in range(total_frames):
    img = np.full((h, w, 3), (0,231,33), dtype=np.uint8)

    img[h//2-50:h//2+50, w//2-50:w//2+50, :] = (255, 0, 255)

    frame = av.VideoFrame.from_ndarray(img, format="rgb24")

    # DEBUG: save images
    if i == 0:
        frame.to_image().save("rgb24.png")
        for f in ["yuv420p", "yuv422p", "yuv444p"]:
            frame.reformat(format=f).to_image().save(f"{f}.png")

    for packet in stream.encode(frame):
        container.mux(packet)

# Flush stream
for packet in stream.encode():
    container.mux(packet)

# Close the file
container.close()

Save and execute the script and you will find these files in the same directory: test.mkv, yuv420p.png, yuv422p.png, yuv444p.png and rgb24.png.
Then use this to generate frames from video:
ffmpeg -i test.mkv test_frame_%04d.png

When using the correct rgb24.png as input to ffmpeg binary, the generated ffv1 video does not contain the color interpolation problem:
ffmpeg -loop 1 -i rgb24.png -c:v ffv1 -pix_fmt yuv444p from_single_frame.mkv
ffmpeg -i from_single_frame.mkv from_single_frame_n_%04d.png

Versions

OS: Ubuntu 22.04
PyAV runtime:

PyAV v12.0.0
library configuration: --disable-static --enable-shared --libdir=/tmp/vendor/lib --prefix=/tmp/vendor --disable-alsa --disable-doc --disable-libtheora --disable-mediafoundation --disable-videotoolbox --enable-fontconfig --enable-gmp --enable-gnutls --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libxcb --enable-libxml2 --enable-lzma --enable-zlib --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libx265 --enable-libxvid --enable-gpl
library license: GPL version 3 or later
libavcodec     60. 31.102
libavdevice    60.  3.100
libavfilter     9. 12.100
libavformat    60. 16.100
libavutil      58. 29.100
libswresample   4. 12.100
libswscale      7.  5.100

Research
I have done the following:

[ ✔] Checked the PyAV documentation
[ ✔] Searched on Google
[ ✔] Searched on Stack Overflow
[ ✔] Looked through old GitHub issues

Additional context
What I was originally trying to accomplish is to generate a video where frames are composed of lines of alternating colors, to test some interlacing issues. But I stopped at the generation phase because I cannot get proper color separation.

Hi, closing this as it is not a bug, I inverted the height and width variables so something bad happened. In fact, the code that I posted in this issue works correctly, as I corrected the mistake just before pasting the code here.
I will edit the issue to highlight this.
Sorry for the confusion, and thank you for the work!


feat: expose security-token to users

Signed-off-by: ClSlaid<EMAIL_ADDRESS>

@Xuanwo PTAL...

Hi, @ClSlaid. This PR has been released in https://github.com/Xuanwo/reqsign/discussions/126!


WebLLM extension

This extension is a wrapper around the latest build of the WebLLM project, which brings large-language models to web browsers. Everything runs inside the browser with no server support.
The extension itself is comprised of 23 blocks, which allow for loading preset compiled AI models from huggingface, generating text, changing temperature and interacting with logs from WebLLM.

Why was this closed?

extension review is awful and slow and inconsistent. i know. i respect the choice of people that don't want to put up with that

No, it was closed because it used my own wrapper for the WebLLM project, which I realised was going to become out of date soon.

It has nothing to do with the wait, TurboWarp is worth it :)

No, it was closed because it used my own wrapper for the WebLLM project, which I realised was going to become out of date soon.

Though, if you're fine with it probably breaking down in 3 years, I can reopen the PR.


add new field, and get errors

after adding new field tokenized_examples["example_id"], and get errors below,
I think it is due to changing data to tensor, and tokenized_examples["example_id"] is string list
all fields
***************** train_dataset 1: Dataset({
    features: ['attention_mask', 'end_positions', 'example_id', 'input_ids', 'start_positions', 'token_type_ids'],
    num_rows: 87714
})

Errors
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 705, in convert_to_tensors
    tensor = as_tensor(value)
ValueError: too many dimensions 'str'

Hi,
could you please post this question on our Forum as we keep issues for bugs and feature requests?

Hi,
could you please post this question on our Forum as we keep issues for bugs and feature requests?

ok.


Data Explorer Pools preview not available in all regions

The Data Explorer Pools preview is apparently not available in all regions.
It would be nice if the documentation tells you in which region you can use them, and in which regions you can't.

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

ID: 0ff3c372-ee64-edbd-d7b2-e6b7b8f72920
Version Independent ID: 089fb086-02c3-2fcc-e08e-37d0f1f03dbb
Content: Quickstart: Create a Data Explorer pool using the Azure portal (Preview) - Azure Synapse Analytics
Content Source: articles/synapse-analytics/data-explorer/data-explorer-create-pool-portal.md
Service: synapse-analytics
Sub-service: data-explorer
GitHub Login: @shsagir
Microsoft Alias: shsagir

@KoenVerbeeck
Thanks for your feedback! We will investigate and update as appropriate.

@shsagir
Could you please review add comments on this, update as appropriate.

@KoenVerbeeck
Thank you for bringing this to our attention.
I've delegated this to content author @shsagir, who will review it and offer their insightful opinions.

There are no current plans to add this info to the docs and hence we will now proceed to close this thread.
#please-close


feat: Bump supported LINZ STAC extension

Reference
Code review checklist

Tests seem to be failing @l0b0 ?

LGTM, but might be best to get someone to review the actual code changes.


Missing controllers

Hand controllers not showing up for other people, but they should be for all vr helm controllers.

Fixed in 0261a487651b3994791ea0635782c12bd33403f4


[qtdeclarative] build failure

Host Environment

OS: Windows11
Compiler: MSVC 14.29.30133
vcpkg-tool version: 2022-10-12-b586c2752f75bcc3f6a243749e9a0d94d0d93ccd
vcpkg-scripts version: 266e4910c 2022-11-29 (14 hours ago)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install qtdeclarative
Failure logs
-- Using cached qtdeclarative-everywhere-src-6.4.1.tar.xz.
-- Extracting source C:/Users/unbored/Softwares/vcpkg/downloads/qtdeclarative-everywhere-src-6.4.1.tar.xz
-- Using source at C:/Users/unbored/Softwares/vcpkg/buildtrees/qtdeclarative/src/here-src-6-d3218afd1e.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
    Command failed: C:/Users/unbored/Softwares/vcpkg/downloads/tools/cmake-3.25.0-windows/cmake-3.25.0-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: C:/Users/unbored/Softwares/vcpkg/buildtrees/qtdeclarative/x64-windows-dbg
    See logs for more information:
      C:\Users\unbored\Softwares\vcpkg\buildtrees\qtdeclarative\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  installed/x64-windows/share/qtbase/qt_install_submodule.cmake:337 (vcpkg_cmake_install)
  ports/qtdeclarative/portfile.cmake:22 (qt_install_submodule)
  scripts/ports.cmake:147 (include)

install-x64-windows-dbg-out.log

Additional context
Tried to remove the qtdeclarative buildtree directory to make a clean build.
The error log says some files are not found, but I'm pretty sure the files are just right there.
Most times one missing file qquickfolderbreadcrumbbar_p.h is reported. But this time the log shows two.

Use --x-buildtrees-root=<shortpath>. C:\Users\unbored\Softwares\vcpkg\buildtrees\ is too long

Use --x-buildtrees-root=<shortpath>. C:\Users\unbored\Softwares\vcpkg\buildtrees\ is too long

It works. Thank you.


os/mac/sdk: use unversioned SDK if matching version isn't found

Fixes https://github.com/orgs/Homebrew/discussions/3238.
We don't support modified Xcode versions, but I will however agree that adjusting the logic as so makes more sense.

Review period will end on 2022-05-17 at 15:28:46 UTC.

Not sure I quite follow how this fixes the linked discussion, though.

Scenario is:
MacOSX.sdk/
MacOSX10.13.sdk/
MacOSX10.14.sdk/
MacOSX10.15.sdk/
MacOSX12.1.sdk@ -> MacOSX.sdk

We match 10.13-10.15 but do not match 12.1. This is intentional. SDKs >= 11 with minor versions are unstable paths (we prefer MacOSX11.sdk and MacOSX12.sdk when searching the CLT).
This change here will allow the unversioned MacOSX.sdk to be used in this scenario (but not if there's already a MacOSX12.sdk like in the CLT).
This is not an issue in unmodified Xcode installations because they only ever ship with one SDK, so it'll fallback to the unversioned SDK if none match the regex.

Review period ended.


Update http4s-blaze-server, http4s-dsl to 0.20.16

Updates

org.http4s:http4s-blaze-server
org.http4s:http4s-dsl

from 0.18.24 to 0.20.16.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

Applied Migrations

github:http4s/http4s/v0_20?sha=v0.20.11

labels: test-library-update, semver-minor, scalafix-migrations

Subsumed by https://github.com/coursier/coursier/pull/1518.


Service cannot be stopped properly

i have 3 modules. one of them has just scheduling tasks. another one has jmslisteners and other one has a tcp server socket. module with schedulers can be stopped properly on demand. But other 2  can not be stopped properly. i think connections for tcp socket and activemq block stopping these modules. ?

For some reason, I was't receiving any notification on this repo. I don't think this has anything to do with the Windows service wrapper. When you say module, you mean app/service, right?

i mean 3 jar modules. i couldnt solve restart and stop problem as windows service using spring-boot-daemon. so i extended JarLaucher like in following link. and made windows service using apache commons daemons prunsrv.exe. now i can stop and restart windows services properly.
http://stackoverflow.com/questions/24124062/spring-boot-jar-as-windows-service

Okay. What are you asking exactly? If I can't reproduce the problem, I won't be able to help you I am afraid. Can you share a sample that exhibits the problem?

Hi
I am having the same issue.. I simply install... start.. and try stop..
from the log it seems it starts another process when stopping (bold below)..?
The Only way to get it to stop.. is to kill the service process and the extra java process running.
my-boot-0.0.1-SNAPSHOT-windows (develop)
$ ./my-boot.exe install
my-boot-0.0.1-SNAPSHOT-windows (develop)
$ net start bms-dev-view-boot
The Nautilus service is starting.
The Nautilus service was started successfully.
my-boot-0.0.1-SNAPSHOT-windows (develop)
$ net stop bms-dev-view-boot
The Nautilus service is stopping........
The Nautilus service could not be stopped.
my-boot-0.0.1-SNAPSHOT-windows (develop)
$ net stop bms-dev-view-boot
The service is starting or stopping.  Please try again later.
From the log:
2016-06-28 12:22:42 - Starting java  -Dspring.application.admin.enabled=true -Dcom.sun.management.jmxremote.port=50201 -Dcom.sun.management.jmxremote.authenticate=false "-Dcom.sun.management.jmxremote.ssl=false " -cp my-boot-0.0.1-SNAPSHOT/lib/* net.nicoll.boot.daemon.StartSpringBootService my.boot.Application
2016-06-28 12:22:42 - Started 9164
2016-06-28 12:22:53 - Stopping bms-dev-view-boot
2016-06-28 12:22:53 - Started 10332
2016-06-28 12:22:53 - WaitForProcessToExit 9164+10332

Same question, sorry. Can you share a sample that reproduces the problem?

I'll have to strip out some of our business code.. On second thought.. I'll try create a dummy project and see if it has the same behavior .. Will see if I have time this evening
Sent from my iPhone

On 28 Jun 2016, at 3:38 PM, Stéphane Nicoll<EMAIL_ADDRESS>wrote:
Same question, sorry. Can you share a sample that reproduces the problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi, I just uploaded a simple version that does behave the same:
https://github.com/bdupreez/boot-service-example
The only changes I made to your example was to add to the path.. as it placed the lib and logs in an artifact path:
service.xml :
<logpath>%BASE%\@project.artifactId@-@project.version@\logs</logpath>

<startargument>@project.artifactId@-@project.version@/lib/*</startargument>

In creating this comment,I realized what the issue was...
I did not update the:
after correcting that, the service stop was successful

I guess the original reporter had a similar issue then. @Runomu feel free to reopen if you have a sample to share.


fix: permissionless node setup

Description

Spinning up a permissionless node against Cardona no longer works.
References (if applicable)

Closes #126

lgtm.
In the future, I might like to have a better way of doing the CI so that we don't have to have the genesis file here. We might also want to have a more stable network because this one won't last forever.

My initial plan was to download cardona genesis file but since there are issues when trying to sync the pless node, I used your genesis file instead. I can keep this in the back log and revisit it later. At least we have some way to test the standalone pless node setup for now.
curl https://storage.googleapis.com/zkevm/testnet/genesis.json


Add constructor option to specify a model for a Gate.

Since we are creating our own basic gates.. I think we should add an option to their constructor to specify some information about their decomposition.
For examples:
Toffoli:

optimal T complexity without ancilla is  7. this means that doing and undoing Toffoli costs 14T
using ancilla it has T complexity of 4. this means that doing and undoing Toffoli costs only 4T

CSWAP:

optimal T complexity without ancilla is  7. this means that doing and undoing CSWAP costs 14T  https://github.com/quantumlib/Cirq/blob/master/cirq-ft/cirq_ft/infra/decompose_protocol.py#L24
optimal T complexity without ancilla but with a phase error of -1 is 4. this means that doing and undoing CSWAP costs 8T.  https://github.com/quantumlib/Cirq/blob/master/cirq-ft/cirq_ft/algos/swap_network.py#L71
using ancilla it has T complexity of 4. this means that doing and undoing CSWAP costs only 4T. https://github.com/quantumlib/Cirq/blob/master/cirq-ft/cirq_ft/algos/arithmetic_gates.py#L166

To accomadate these variations we now have multiple decompositions of CSWAP floating in Cirq and Cirq-FT.
We should be able to do something like
qualtran.basic_gates.CSWAP(model = 'arxiv:123')
qualtran.basic_gates.Toffoli(model=custom_decompose_func)

This is also related to https://github.com/quantumlib/Qualtran/issues/110

The plan here is to make T, Toffoli, and CSWAP leaf bloqs #873
There are arguments to GateCounts.total_t_counts() where you can pick your favorite constants


Expose easy way to reexport rewired config

Followup from https://twitter.com/GuriaFS/status/935041013474881536
Some third party tools, like react-cosmos relies on your webpack config.
You can create webpack.config.js file and export rewired config using following snippet:
const { paths } = require('react-app-rewired');
// require normalized overrides
const overrides = require('react-app-rewired/config-overrides');
const config = require(paths.scriptVersion + '/config/webpack.config.dev');

module.exports = overrides.webpack(config, process.env.NODE_ENV);

Then just point to this file in tool configuration.

1.3.6


E2E - Convert Gherkin language test into E2E Automation Tests - Create Request

platform-services-registry/cypress/integration/create-request-private-test.feature
platform-services-registry/cypress/integration/create-request-public-test.feature

Link to a PR: https://github.com/bcgov/platform-services-registry/pull/3493


[S] Update content on cancel pass page

Description:
As a park visitor, I want to know how to cancel my pass so that I can cancel it.
This ticket is to update content on the cancel pass page. It includes updates for best practices, web standards, and plain language. Many updates are capitalizations or hyperlinks.
Updated content can be found here:
https://bcgov.sharepoint.com/:w:/r/teams/031072/_layouts/15/Doc.aspx?sourcedoc={B2E04E68-9C73-45AC-A16D-0FEB62417846}&file=day-use-pass-system-pass-lookup-v0.1.docx&wdLOR=cD4BA6755-8B99-4DBC-8D8B-0A3994F5C20E&action=default&mobileredirect=true
Current view of cancel page (must be clicked by user from their email)

Acceptance Criteria:
content updates mentioned below are in link above
On cancel a reservation page (that is clicked from users DUP confirmation email)...

[x] 1. content is updates on cancel a reservation page

Development Checklist:

[ ] ...
[ ] ...
[ ] ...

Dependencies

Blocked by
Blocking

Wireframe(s):
Workflows:
Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

Definition of Done

In progress:

[x] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[x] UI meets accessibility requirements
[ ] Unit tests are written
[x] Work is traceable in GitHub
[x] PR linked to ticket number
[ ] If needed/required - Dev adds flag/label to highlight any migration steps necessary prior to PROD deployment

Code review:

[ ] Code is peer reviewed and has passed CI/CD tests

QA:

[ ] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[ ] Code is potentially shippable to the production environment
[ ] Functional features have been tested and passed by QA
[ ] UI components tested by designer
[ ] Code is deployed to PROD when moved to 'done' column (unless requested otherwise by PO)

PO Review:

[ ] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[ ] Reviewed and approved by Product Owner

Notes:

Ready for review in dev!

Tested on TEST: Pending

There are two issues with the copy, one is placing the period after the single quotation mark in sentence: 'Yes, this is my reservation information'. Second one is missing the last sentence: "Thank you for cancelling and making your pass available to other visitors."

Implementation is below:

Required copy:

Moving this back to Todo. FYI @davidclaveau

@JLWade I think I need your opinion on how the content changes are showing and if the logic all makes sense!
In the document, it shows as making a few changes to the page, one of which is adding "Thank you for cancelling and making your pass available to other visitors". I assumed this was to be added after the user had cancelled - replacing what was there previously, which was "Your reservation has been cancelled" which popped up after final cancel confirmation.
Just wondering if that all makes sense! I assumed it made more sense to thank the user after they cancelled, but I could be convinced otherwise!

Good catch @davidclaveau  - I think you're right, let's have that line after the confirmation. Can you update the teams word doc too?

@manuji fixed that typo - should be good to review in DEV!
That "Thank you for cancelling and making your pass available to other visitors." section will only show when the user cancels their pass.
Let me know if anything is amiss!

Thanks @davidclaveau .
Tested on TEST: Passed

Verified that this task has been completed.
Passing to PO review.

nice team work! moving to done


[os-installer] rancheros installation fails

I get the below installation error while installing rancher os to disk.
The problem seems to be happening at the disk partitioning stage.
I'm behind corporate firewall, so I can't directly download the rancher/os:v0.4.0. I had to pull and export the rancher/os:v0.4.0 from docker hub. Then import it to the rancheros by scp and system-docker import
cat rancher.tar | sudo system-docker import - rancher/os:v0.4.0
sudo system-docker restart docker

This way I can get a local copy of rancher/os:v0.4.0
then i run sudo ros install -c cloud-config.yml -d /dev/sda
Then the below error happens something to do -d is not not found in executable path
[rancher@rancher ~]$ sudo ros install -c cloud-config.yml -d /dev/sda
INFO[0000] No install type specified...defaulting to generic
Installing from rancher/os:v0.4.0
Continue [y/N]: y
+ DEVICE=/dev/sda
+ [[ -z /dev/sda ]]
++ wc -l
+++ cut -d / -f3
+++ echo /dev/sda
++ grep sda /proc/partitions
+ PARTITION_COUNT=2
+ '[' 2 -gt 1 ']'
+ echo 'Device /dev/sda already partitioned!'
Device /dev/sda already partitioned!
+ echo 'Checking to see if it is mounted'
Checking to see if it is mounted
+ grep -q /dev/sda /proc/mounts
++ system-docker ps -q
+ for container in '$(system-docker ps -q)'
+ system-docker exec 'time="2015-11-12T06:25:27Z"' grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec level=fatal grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec 'msg="no' grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec such grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec file grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec or grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ for container in '$(system-docker ps -q)'
+ system-docker exec 'directory"' grep -q /dev/sda /proc/mounts
time="2015-11-12T06:25:27Z" level=fatal msg="no such file or directory"
+ dd if=/dev/zero of=/dev/sda bs=512 count=2048
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB) copied, 0.237259 s, 4.4 MB/s
+ partprobe /dev/sda
+ fdisk /dev/sda

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x36db94fa.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-419430399, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-419430399, default 419430399):
Created a new partition 1 of type 'Linux' and of size 200 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Error response from daemon: Cannot start container 35f594d85b5766d33bf97d35e3705a2598a4891e9f647dc92c0b38d7cae085b6: [8] System error: exec: "-d": executable file not found in $PATH
FATA[0002] Failed to run install                         err=exit status 1

I've tested installing rancheros with outbound internet access, which seems to be working fine.
The problem is, how could you get ranchos to get installed , with tight security settings. Because so far I don't see a way to set network proxy and adding ssl certificate for ros install. So that ros can get to the outside world and download the latest rancheros image. (I presume this is the docker image of rancher/os https://hub.docker.com/r/rancher/os/tags/)

This one can be fixed here
https://github.com/rancher/os/issues/693


Do we need to start RegistrationIntentService every time we start the app

Describe your environment

Device: Nexus 5
OS version: Marshmallow
SDK version: 23
[Android] Google Play Services version: 9.4.0

Describe the problem:
Steps to reproduce:
This app tries to get a token every time it starts, by launching RegistrationIntentService.class on the OnCreate method of the activity.
Do we really need to do this? Can't we just store the token in the SharedPreferences and fetch it ONLY if it's missing. This would also prevent calling sendRegistrationToServer() multiple times.
I'm referring to this particular piece of code:
https://github.com/googlesamples/google-services/blob/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart/MainActivity.java#L73
Observed Results:

Multiple tokens are fetched (and then sent to my server) upon application lifecycle

Expected Results:

Just get the token once. I understand GCM will call InstanceIDListenerService#onTokenRefresh() whenever it needs to refresh it? Am I right?

Relevant Code:
public class MainActivity extends AppCompatActivity {

....
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

....
        // Registering BroadcastReceiver
        registerReceiver();

        if (checkPlayServices()) {
            // Start IntentService to register this application with GCM.
            Intent intent = new Intent(this, RegistrationIntentService.class);
            startService(intent);
        }
    }

There are more people asking the same question on StackOverflow
http://stackoverflow.com/questions/36229905/how-often-to-call-gcm-registrationintentservice
http://stackoverflow.com/questions/35405920/gcm-registrationintentservice-gettoken-at-each-app-startup/38886290#38886290
http://stackoverflow.com/questions/32164880/confused-about-gcm-token-updation-process/32165073#32165073

@kroikie - i don't think we do need to call it every time right? The share prefs idea sounds reasonable.

This is an old issue so I am going to add a comment and then close it.  You can store the token in shared prefs as you suggested, just make sure to get a new one whenever you get a new Instance ID (which happens on a rarely-but-not-never basis).
Also these complexities are one good reason to move from the GCM client library to FCM, the FCM client library manages all of that on your behalf.


drivers: sensor: lis2dh: compilation issue struct lis2dh_config' has no member named 'spi_conf'

Describe the bug
While pushing PR #27013,  Buildkite highlight a compilation issue in lis2dh.
Note: Even if issue is not directly linked to the PR #27013,
the PR highlight this issue because it enabled adc for stm32f3_disco, which is a condition (depends on) for sanitycheck
to compile for this board.
To Reproduce
Steps to reproduce the behavior:

west build -p auto -b stm32f3_disco tests/drivers/build_all/ -- -DCONF_FILE=sensors_trigger_i_z.conf
See error

Expected behavior
Compilation successful.
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)
Logs and console output
FAILED: zephyr/drivers/sensor/lis2dh/CMakeFiles/drivers__sensor__lis2dh.dir/lis2dh_spi.c.obj
C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=zephyr-v2.3.0-2029-g5449436515cd -DCORE_CM4 -DHSE_VALUE=8000000 -DKERNEL -DSTM32F303xC -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I../include -Izephyr/include/generated -I../soc/arm/st_stm32/stm32f3 -I../drivers -I../soc/arm/st_stm32/common -I../subsys/testsuite/include -IC:/zephyr/zephyr_project/modules/hal/cmsis/CMSIS/Core/Include -IC:/zephyr/zephyr_project/modules/hal/st/sensor/stmemsc/iis3dhhc_STdC/driver -IC:/zephyr/zephyr_project/modules/hal/st/sensor/stmemsc/lis2mdl_STdC/driver -IC:/zephyr/zephyr_project/modules/hal/st/sensor/stmemsc/lsm6dso_STdC/driver -IC:/zephyr/zephyr_project/modules/hal/stm32/stm32cube/stm32f3xx/soc -IC:/zephyr/zephyr_project/modules/hal/stm32/stm32cube/stm32f3xx/drivers/include -IC:/zephyr/zephyr_project/modules/hal/stm32/stm32cube/stm32f3xx/drivers/include/Legacy -isystem ../lib/libc/minimal/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacrosC:/zephyr/zephyr_project/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -imacrosC:/zephyr/zephyr_project/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/zephyr/zephyr_project/zephyr/tests/drivers/build_all=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/zephyr/zephyr_project/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/zephyr/zephyr_project=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/sensor/lis2dh/CMakeFiles/drivers__sensor__lis2dh.dir/lis2dh_spi.c.obj -MF zephyr\drivers\sensor\lis2dh\CMakeFiles\drivers__sensor__lis2dh.dir\lis2dh_spi.c.obj.d -o zephyr/drivers/sensor/lis2dh/CMakeFiles/drivers__sensor__lis2dh.dir/lis2dh_spi.c.obj   -c C:/zephyr/zephyr_project/zephyr/drivers/sensor/lis2dh/lis2dh_spi.c
C:/zephyr/zephyr_project/zephyr/drivers/sensor/lis2dh/lis2dh_spi.c: In function 'lis2dh_raw_read':
C:/zephyr/zephyr_project/zephyr/drivers/sensor/lis2dh/lis2dh_spi.c:26:41: error: 'const struct lis2dh_config' has no member named 'spi_conf'
   26 |  const struct spi_config *spi_cfg = &cfg->spi_conf;
      |                                         ^~
C:/zephyr/zephyr_project/zephyr/drivers/sensor/lis2dh/lis2dh_spi.c: In function 'lis2dh_raw_write':
C:/zephyr/zephyr_project/zephyr/drivers/sensor/lis2dh/lis2dh_spi.c:72:41: error: 'const struct lis2dh_config' has no member named 'spi_conf'
   72 |  const struct spi_config *spi_cfg = &cfg->spi_conf;

Environment (please complete the following information):

OS:  Windows
Toolchain (e.g Zephyr SDK, ...)
Commit SHA:<PHONE_NUMBER>cd2098abeeda3bb22ff6b88ae0c384

1st Analysist
In file lis2dh.h, the member spi_conf  of struct lis2dh_config is defined under compilation switch.
And it is defined only if sensor is okay in spi DT node, but only if sensor is not okay in i2c DT node.
struct lis2dh_config {
	char *bus_name;
	int (*bus_init)(struct device *dev);
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
	uint16_t i2c_slv_addr;
#elif DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
	struct spi_config spi_conf;
#if DT_INST_SPI_DEV_HAS_CS_GPIOS(0)
	const char *gpio_cs_port;
	uint8_t cs_gpio;
	uint8_t cs_gpio_flags;
#endif /* DT_INST_SPI_DEV_HAS_CS_GPIOS(0) */
#endif /* DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) */

};

Is it allowed to have 2 sensors, one on i2c the other on spi ?
Whatever, in stm32f3_disco board, there is a sensor defined in i2c DT node.
Thus it fails when compilling spi source:  lis2dh/lis2dh_spi.c
Maybe in such case both i2c_slv_addr and spi_conf should be defined at the same time ?
like that:
struct lis2dh_config {
	char *bus_name;
	int (*bus_init)(struct device *dev);
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
	uint16_t i2c_slv_addr;
#endif /* DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c) */
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
	struct spi_config spi_conf;

This at least solve the compilation issue.

^^ @avisconti

Maybe in such case both i2c_slv_addr and spi_conf should be defined at the same time ?
like that:

struct lis2dh_config {
	char *bus_name;
	int (*bus_init)(struct device *dev);
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
	uint16_t i2c_slv_addr;
#endif /* DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c) */
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
	struct spi_config spi_conf;
This at least solve the compilation issue.

In fact, it is not a good solution: I face another compilation error. It is looking for spi-max-frequency property, but within i2c DT node.

Just back from vacations and having a big agenda of stuffs to accomplish. Will take a look asap.

Still not working on it, but I quickly took a look at it and seems to me that I may see what has been done for bme280 (8aadf895) for multi-instance implementation.

@avisconti thanks, if you need additional info @mbolivar-nordic is in the #devicetree channel in Slack.


Add from_std methods to TCP/Unix Stream/Listener

Motivation
#1029 removed the from_std methods on the TCP (Unix) Stream (Listener)
resources. These methods are still needed in upstream libraries where creating
wrapped resources from standard types is needed.
Tokio: TcpListener::from_std
Signed-off-by: Kevin Leimkuhler<EMAIL_ADDRESS>

Can't this be implemented using FromRawFd in Tokio? I know the Windows trait FromRawSocket is missing, but is something we need to add.

@Thomasdezeeuw It's not critical to merge this, but IMO it is valuable to have an API for going from std -> mio in a portable way. Requiring going via raw conversions would require platform specific code.

@Thomasdezeeuw Thanks for the review. All your comments have been addressed. I added a lot more around tests; each I/O resource now have tests that test the from_std functions.

Thanks!


[dexie-cloud] http 449 eror on sync

Looking at the docs here on the project manager code I implemented something similar.  However, i was getting a HTTP 449 on sync after executing something like this
const realmId = await db.realms.add({
  name: `Team ${name}`,
  represents: "A baseball team",
});

const id = await db.teams.add({
  name,
  realmId,
  organization,
  playerIds: [],
  gameIds: [],
});

I needed to update the code to the following for it to work:
  const realmId = await db.realms.add({
    name: `Team ${name}`,
    represents: "A baseball team",
  });

  await db.members.add({
    realmId,
    roles: ["manager"],
  });

  const id = await db.teams.add({
    name,
    realmId,
    organization,
    playerIds: [],
    gameIds: [],
  });

Although that resolves the issue im a bit confused here.

I'm not specifying an email or userId in db.members.add, just the realmId that was just created with the "manager" role, is it using the the userId that is currently logged in by default? I assume when trying to share I need to add the other userId (which is the email i think). My roles and schema are below.
If a user creates a team object without logging in, then logs in, i was expecting the team object to persist. However the previously created team data is gone (as well as members) after logging and sync occurs and the unauthorized user is not merged with the logged in user.  Is it possible to do that?
Trying to understand db.members.add:

await db.members.add({
  realmId,
});

^^^ creates a single member object like this:

Its an edge between the user and realm, right?
However creating a member like this creates two member rows in the member table:

await db.members.add({
  realmId,
  roles: ["manager"],
});

I assume thats an edge between the role and and realm, right?  I' am trying to assign the current user a "manager" role to this object, but it seems it really is not needed because the current user is the owner and the only edge that matters is the first one. Is that correct?

Each member must have at least a realmId and an email property

I'm not passing an email property at all, but it seems to be working and using my email as the userId. Is email necessary when I'm just assigning permissions to the current user?
Schema details
{
  "roles": {
    "manager": {
      "displayName": "Manager",
      "description": "Members with this role gains full permissions within the realm pointed out by the member entry",
      "sortOrder": 1,
      "permissions": { "manage": "*" }
    },
    "coach": {
      "displayName": "Can edit data but cant manage",
      "description": "Members with this role can create friends within a realm and update whether a friend is a good or not",
      "sortOrder": 2,
      "permissions": {
        "add": "*",
        "update": "*"
      }
    },
    "readonly": {
      "displayName": "ReadOnly",
      "description": "Members with this role have no permissions to change any data",
      "sortOrder": 3,
      "permissions": {}
    }
  }
}

export class GamePlanner extends Dexie {
  teams!: DexieCloudTable<ITeam, "id">;
  players!: DexieCloudTable<IPlayer, "id">;
  games!: DexieCloudTable<IGame, "id">;
  innings!: DexieCloudTable<IInning, "id">;

  constructor() {
    super("GamePlanner", {
      addons: [dexieCloud],
      cache: "immutable",
    });
    this.version(1).stores({
      teams: "@id, name, organization, *playerIds, *gameIds",
      players: "@id, firstName, lastName, number, *teamIds",
      games: "@id, date, *inningIds, *playingIds, *notPlayingIds, updatedAt",
      innings: "@id, *dugoutPlayerIds, *fieldPlayerIds, gameId",

      // access control
      realms: "@realmId",
      members: "@id",
      roles: "[realmId+name]",
    });

    this.cloud.configure({
      databaseUrl: process.env.NEXT_PUBLIC_DEXIE_CLOUD_URL!,
      tryUseServiceWorker: true, // true!
      requireAuth: false,
    });
  }
}

Thanks! Looking in to this...

Issue confirmed. It happens when creating a realm without members. Issue solved in staging (version 1.2.8).
I've lifted your (@j-5-s) databases to staging so you should be able to verify it now. Let me know if you create a new db and need it to have the fix.
I'll wait some days before lifting production to latest version and switching staging db's back to prod, but probably within a few days. If there's someone else in need for this fix asap, please let me know.

thanks @dfahlander. No rush on my end. So that i understand whats happening though, the 449 error shouldn't happen when just creating a new realm and assigning it to another object?

Exactly, that's totally correct. In a previous version the flow required was to also explicitly add a member that connected your own userId to the new realm. This requirement was taken away and instead managed automatically on the server - it creates the "self member" automatically for the user that created the realm so there's no need to do so, but the issue was a consistency check later in the flow that compared the original request with the actual mutations and detected this inconsistency and threw the 449 error. So it's perfectly ok to create new realms without creating members.

thanks! I think I understand: Is it correct to think about the user who creates a realm as a the "owner" member which gives manager level privileges and not necessary to add any permissions or roles to that member.  That said,

If a member is removed from a realm, objects connected to that realm that are owned by the user will go out of scope for the use

I seem to have 5 or 6 realms that i have removed my user from and no longer have access to those scopes.  Is there a way on the cli or other interface to cleanup data?

Correct. You have full access on the entire DB only when using the CLI or the the REST API's POST /all/members. Use dexie-cloud export to export an individual realm. Example:
dexie-cloud export --data --realmId "rlm~tdl0Ofo426bilS6y3fWMn6BNqA|zed" exportfile.json

Use a text editor to change the properties of one of the existing members or add a new one (ID must start with 'rlm' but could be of any length and chars). Use dexie-cloud import to import it back.
dexie-cloud import exportfile.json

If you prefer using the REST api, you can create new objects and let the server can generate their primary keys (on '@' based tables):
Create new member
POST /all/members HTTP/1.1
Authorization: Bearer xxxxxx
Content-Type: application/json

[{
  "realmId": <theRealmId>,
  "userId": <yourUserId>,
  "roles": ["manager"]
}]

Update existing
POST /all/members HTTP/1.1
Authorization: Bearer xxxxxx
Content-Type: application/json

[{
  "id": <memberId>,
  "realmId": <theRealmId>,
  "userId": <yourUserId>,
  "roles": ["manager"]
}]

FYI: Production is now on version 1.2.8 also so the fix has reached all customers and your dbs is back in the production slot.


Seems like it doesn't work in Edge for cyrillic symbols

I try to hash domain "нашеправо24.рф"
should be: c6d317eda9b11438faa67a0977f0d9a1
but instead: 14effa5c5ede3c687e762efbcc7e26a7
Just in Edge. Other browsers (Chrome, Forefox) do the job well.

Sorry, I just need punnycode, issue is not actual anymore

Alright, closing.


Node type discrepancy

When an empty node is created by AWE and then becomes a parts node, the node type still says "basic".  Need to fix this and check what happens in other cases where a node begins as an empty node and then node type changes.

appears to be fixed, empty node type changes from basic to new type.


billing: Validate license management at end of billing cycle.

For plans where we're enforcing correct manual license management, before we create the renewal entry for the licenses ledger at the end of a billing cycle, we should check that the current count of billed licenses is not higher than what the renewal license count would be.
Notes:

The 2nd commit updates the billing page with manual license management to show when there are errors with the current/next billing period values compared to current in use licenses.
The 3rd commit restricts manual license management organizations more in regards to adding/inviting new users.

If adding/inviting a new user would mean that the licenses set for the next billing period (via manual billing by an admin) would be below the number of licenses currently in use, then users cannot join ... even if there is a purchased license available.
To fix the situation, a billing admin would need to set the licenses for the next billing period to be equal to the number of purchased licenses or the number of licenses that would be in use.
Some of the error text shown to non-admin users/folks invited is the same as when all purchased licenses are in use. The group DM sent to admins is different for the two cases though (see screenshots below).

Errors shown on manual billing page

Error shown in invite users modal for email invitations when the number of licenses for the next billing period is set to a value that would be below the licenses in use

Error shown to user when trying to register for the same case as above with a link
Note this is the same text as when there are not enough purchased licenses for the current billing period

Group DM sent to admins for the same case as above

Group DM sent to admins when all purchased licenses are in use

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Looks good to me. I tested manually by trying to add a user after reaching the maximum users for the organization.

Merged, thanks @laurynmm!


Loading themes with custom.css fails (most of the time).

I detected a strange issue with theme designer created themes including custom.css.
Theme Designer Version:
Version:	1.12.7
Engine-Version:	1.12.11
SAPUI5 Core Version:	1.32.9
I am using SAPUI5 version 1.32.9
The theme contains some css code (generated into custom.css file).
If I choose the theme with Fiori Launchpad over user settings it will load the custom.css (most of the time, but not always).
If I use a standalone sapui5 application custom.css is not loaded.
I am loading the theme that way:
sap.ui.getCore().applyTheme("themename", "/sap/public/bc/themes/~client-100/"+"/UI5/");
If I add some cache parameter like this:
sap.ui.getCore().applyTheme("themename", "/sap/public/bc/themes/~client-100/~cache-Kx-1234ndYRkLnu798731092ncg"+"/UI5/");
It "sometimes" load the correct custom.css file.
If I try to debug it could happen that it will not load that file.
That's all I could find out. I have the assumption that there is an issue with some async file handling.
I also don't fully understand the check if there is a custom.css file to be loaded or not.

There was an issue that was related to the custom.css in case it gets changed during runtime (sap.ui.getCore().applyTheme).
It should be already fixed (via https://github.com/SAP/openui5/commit/455e44569a11ca89dc9cdf70c2d9623c3c749171) with UI5 version 1.32.10 which got released today.
Could you please try to reproduce the issue with this new version?

I will check it as soon as possible. But I assume it will take some time to get a new upgrade for the SAP system itself.

I am closing this issue for now.
Feel free to add your comments once you could test with the new version and I will re-open the issue if the problem still exists.

I can confirm that the new version has an effect of loading custom.css.
I used the openui5 beta temporary for my SAPUI5 application and the file was loaded.
If I switch back to the library out of our SAP system (1.32.9) than the custom.css is not loaded.
Not sure if there are other issues but at least it seems to be an improvement.
Would be nice to have an SAP note for upgrading to 1.32.10 soon.

Great to hear. I'm sorry, but I can't give you any dates here about SAPUI5 releases.

I can confirm that the reported problem is solved after upgrading the SAP installation to 1.32.11.
Thanks!


Generic type parameter not displayed

In my project I have multiple generics as return type or a parameter of a method. In the documentation is only the generic type itself visible, and not the generic type parameter:

Properties of a generic type have te same behavior: only the generic type is shown, not the parameter.
I think the generic type parameters should also been shown, as just Dictionary isn't very useful if you want to know what to pass to a method.

This Problem should be fixed in the upcoming release. I just created a test for this scenario and it went green. Please retest on the next release in the next few days.
Thank you for the report!

I just released Version 1.1! Feel free to test the new Version and tell me, if your Problem got fixed. Thank you!

Awesome! I'll test it ASAP.

It's fixed:

Thanks!


NativeFunctionInvocationFixer - add scope option.

Calling functions explicit from within the global namespace (\) is only more effective if the function is not called from the global namespace already.
This PR adds an option to only fix functions called from within a namespace.

while in such case there is no performance difference indeed, it produces output that sometimes we add \, sometimes not, making code less consistence.
where is this rule come from?

where is this rule come from?

From the same place the rule this fixer applies currently, i.e. there is no PSR[d]+ or SF standard for it.
That shouldn't stop us from building something nice or tweaking something already good IMHO.

it comes from part of zend ecosystem according to performance improvement - shrinking need to search if the function is defined in same namespace, so php compiler could directly use global one (it's different thing than newest improvement to convert them to opcode directly in compiler)
in PR introducing this rule, we discussed shall we add \ always or only for namespaced code. we decided to go with always approach for consistency.
this proposal would decrease consistency, less experienced developers will have no understanding why sometimes native function is rooted with \ and sometimes not.
for that, I'm not big fan of inconsistency, so asking for reasoning for it...

it comes from part of zend ecosystem according to performance improvement

this PR doesn't change that, so when you ask where the rule comes from the answer is the same :)

in PR introducing this rule, we discussed shall we add \ always or only for namespaced code.

https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2462#discussion_r96805698
I guess I missed it at the time, but to me it is not convincing enough to drop the option.

this proposal would decrease consistency, less experienced developers will have no understanding why sometimes native function is rooted with \ and sometimes not.
for that, I'm not big fan of inconsistency, so asking for reasoning for it.

The default is still what it is. More experienced developers will wonder why PHP CS Fixer changes code where the performance is not increased (which is why this rule was added it comes from part of zend ecosystem according to performance improvement). With this PR they will have the option.
Besides, this tool already provides specialized options for more experienced developers, I wouldn't lower the bar to cater less experienced developers.

so, for the 3rd time, what's the benefit of such inconsistency ? :)

I don't see inconsistency so I can't provide you with an answer you like :)

I see consistency + simple rule [without proposed option].
You see less code changes made [with proposed rule].
Yet, Fixer attempts to not only refactor and improve, but mainly unify.
Without this option, all native function will have \.
With that option, native function used in not-namespaced scope will not have \ added, but they could still have \ if it was there before.
If we gonna have this option merged, we shall ensure that non-namespaced native function will always have same form - either rooted with \ or not, not sometimes rooted, sometimes not.

Apologies for chiming in, but

I agree that consistency wins
I cannot see a disadvantage in referencing native functions relative to the root namespace even if we aren't within a namespace (other than disk space, but surely that shouldn't be a problem)
I have nothing against a configuration option that allows to disable the fix for native functions within the root namespace

Just my opinion on this.

Thanks @localheinz for you view on this :)
I think we all agree that consistency wins, so lets see what is open for that.
Currently the fixer allows for adding \ to all native function calls:

allows inconsistency exception using exclude option
causes inconsistency because functions defined in a global namespace are not fixed.
Besides the inconsistency the same performance improvement would be gained (reason for this fixer) if the fixer would touch these as well
only one file in our code base seems to follow this rule, however we've no rule to deal with this inconsistency, i.e. removing the \ where possible

The last point fits with the condition @keradus set for this PR;
If we gonna have this option merged, we shall ensure that non-namespaced native function will always have same form - either rooted with \ or not, not sometimes rooted, sometimes not..
I plan on adding options to deal with inconsistency where possible by adding options as to not break BC. And while doing so also addressing two other issue's related to this fixer.
I'm not going to great one PR to deal with all of this. Major PR's like that take for ever to finish, from developing to review (like the binary operator PR). Having smaller PR's allow for faster processing, bringing new features earlier and with less risk. It will also allow for others to jump in the middle more easy, so not having to rely on me until all work is done.
For that, I'm not going to follow up on the condition set by @keradus for now, because I consider feature creep on this PR. The concern raised is already the current state, it is not something this PR introduces.

this new option would be in opposition to performance handling mentioned in #3048,
even if file is not namespaced, removing \ might bring performance dropdown as newer PHP won't be able to change function call to opcodes
I see this option conflicting with unification fixer does and with PHP compiler tricks to improve performance :(

removing \ might bring performance dropdown

I don't want to remove the \ anywhere, you set that option as requirement:

If we gonna have this option merged, we shall ensure that non-namespaced native function will always have same form - either rooted with \ or not,

/

if file is not namespaced, removing \ might bring performance dropdown as newer PHP won't be able to change function call to opcodes

The opcodes look the same  https://3v4l.org/ZlI5a/vld , besides I'm not resolving https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3048 here. I can't comment on newer PHP as I'm not aware of any new upcoming changes related to this.

If we gonna have this option merged, we shall ensure that non-namespaced native function will always have same form - either rooted with \ or not,

/

Sorry, I don't get your answer

this new option would be in opposition to performance handling mentioned in #3048,

for N-th time, I'm not resolving that PR here.

even if file is not namespaced, removing \ might bring performance dropdown

I'm not removing the \ at any time. Secondly, I haven't seen a sample that shows the performance drop either.

as newer PHP won't be able to change function call to opcodes

I don't know about upcoming PHP changes, so please link to it

I see this option conflicting with unification fixer does

I see this as another way of using exclude, which doesn't do unification either.

and with PHP compiler tricks to improve performance

happy to write a dedicated fixer to do only performance related fixes if that is the issue here

I'm not resolving that PR here.

:+1:

I'm not removing the \ at any time. Secondly, I haven't seen a sample that shows the performance drop either.
(...)
I see this as another way of using exclude, which doesn't do unification either.

yeah, it was sad hack for not-breaking mocking function mechanisms that are in use

I don't know about upcoming PHP changes that would be effected, so please link to it

nothing to link. if there is a \strlen in non-namespaced piece of code, it will be changed to opcode.
if there is strlen in non-namespaced piece of code, would it be changed to opcode ?

I'm going to focus on my other PR's first, after that I might redo the research and we can discus than if nobody else did this already.

just checked.
opcode improvement on compiler level doesn't require \ for function call in root-namespace, so there would not be any conflict here.
after all reasoning and discussion (here and in related issue) - this option is unrelated to opcache optimization (which shall be done differently), already few guys see it's easier to read without \, I got performance improvement for \ added everywhere on 0.05%.
for that, :+1: for this PR from my side

That's because in a root namespace, there is no namespace fallback possible for the function (as you are already in the root namespace).
the compiler applies the optimization when it is sure that the root function will be called. So when the code is in the root namespace, it is always possible to apply it.


fix: add calconderrorview

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


All types of logic not finished

V 0.4.8

I believe that they are all finished they just arent all tested


Update IIIF API - fix sizes issues

Contains fixes for #229

Great! I'll get that merged. I'll wait for the content state changes before the next version on NPM


[WFLY-8700] Update EJB client to 4.0.0.Beta27

Also update the legacy client version being introduced


 I think I need to check the programming because it has some delay as far as I can tell

i personally have not experienced what you are describing, also you need to select each material then click the button, it doesnt set all materials to embedded.

This is because the UI doesn't update until you hover your mouse back over the panel. I don't believe there is a way to fix this atm.


 is not used , td-agent V3

Hello everyone ,
I swiched to td-agent V3 on my Amazon-Linux distribution (By the way i took the Red-Hat package which is installed perfectly. I used the td-agent V2 before
The record_accessor of the V3 can potentially resolve a lot of things in my configuration like to pass args in my command in section filter_out_exec from my events: (Say me if i'm wrong)
<match reverse_proxy.geo>
  @type exec_filter
  command ruby ./ip.rb $.ip                    //usefull to pass args directly from json format
  in_format json
  out_format json
  flush_interval 10s
  tag reverse.filtered
</match>

But in the rest of my configuration , i had a lot of grep filter . They doesn't work anymore ... Is  section deprecated or miss something in V3?
Part of my old conf , which worked in V2 (SSH Error for exemple ) :
<source>
  @type kafka
  brokers <IP_ADDRESS>:9092
  topics log_ssh
  add_suffix error
</source>

<filter log_ssh.error>
  @type grep
  <regexp>
  key message
  pattern ^.*(error|Invalid|Failed).*([0-9]{1,3}\.){3}[0-9]{1,3}.*$
  </regexp>
</filter>

<filter log_ssh.error>
  @type stdout
</filter>

Result of my logs when restarted
2017-08-28 14:18:44 +0200 [warn]: section  is not used in  of grep plugin
2017-08-28 14:18:44 +0200 [warn]: section  is not used in  of grep plugin
2017-08-28 14:18:44 +0200 [warn]: section  is not used in  of grep plugin
2017-08-28 14:18:44 +0200 [warn]: section  is not used in  of grep plugin

The record_accessor of the V3 can potentially resolve a lot of things in my configuration like to pass args in my command in section filter_out_exec from my events:

out_exec_filter doesn't use record_accessor so it doesn't support nested access in any parameters.
From your configuration, command ruby ./ip.rb $.ip , accessing field in your script seems enough.

Is section deprecated or miss something in V3?

Latest td-agent 3 is built at several months ago.
So you need to update bundled fluentd to latest v0.14.20.


abstract mongodb calls out of main code

implement a database controller file so that it's easier to switch between databases if you want to

i was convinced that this wasn’t worth it
Sent with GitHawk


Need Layer Added to StraboSpot2 Map Interface

We need to add a new layer to the StraboSpot2 Map Interface:
Layer name: USGS Hillshade
Attribution: The USGS 3D Elevation Program (3DEP) Bare Earth DEM Dynamic Service
Attribution URL: https://elevation.nationalmap.gov/arcgis/rest/services/3DEPElevation/ImageServer
Example tile URL: https://tiles.strabospot.org/v5/usgs.hillshade/13/1668/3134.png
Maximum Zoom Level: 19

Added with commit 87add9b


The "XAML accessibility sample" link to https://code.msdn.microsoft.com/windowsapps/XAML-accessibility-sample-d63e820d is broken

The "XAML accessibility sample" link on this page, (to https://code.msdn.microsoft.com/windowsapps/XAML-accessibility-sample-d63e820d,) is broken.

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

ID: b58e91f4-3217-dc9d-4c9a-a5c1be56673f
Version Independent ID: 957fb065-e223-b686-beaa-c96727b90b29
Content: Expose basic accessibility information - UWP applications
Content Source: windows-apps-src/design/accessibility/basic-accessibility-information.md
Product: uwp
Technology: design
GitHub Login: @Karl-Bridge-Microsoft
Microsoft Alias: kbridge

Thanks @guybark - this link (and similar links across the UWP accessibility docs) has been fixed.


No "address" field in the reply of decoderawtransaction RPC

Hello there
recently I tried the decoderawtransaction RPC call of the StratisFullNode and in the Vout's "scriptPubKey" field, there is only there parameter value: asm, hex, type
the same call in swagger ui also return similar result
I can't find the "address" filed in the response. But, in the reply of Bitcoind for the same rpc call, the Vout indeed have the "address".
can anybody tell me how to get this field? with additional arguments or calculate it from the returned values?

Whether you get an address field or not depends on the type of transaction you are decoding.
The coinstake transactions in a block (e.g. 10ebe9c14f0a2bacfd361642597b6ab359db7224c61ecb61e239539a583725ab on testnet) are of the P2PK (pay to pubkey) type. These do not actually have an address.
Investigating further I have found that the block explorer & C++ client (stratisX) create an address by hashing the pubkey. This effectively treats the output as if it was P2PKH (pay to pubkey hash).
See another explanation of the same thing:
https://github.com/bitcoinjs/bitcoinjs-lib/issues/822#issuecomment-316792471

Thanks, I will check it.


Added hex2bin

Signed-off-by: Emil Hammarström<EMAIL_ADDRESS>

hex2dump pads gap in dumped addrspace with empty "--" hexas
measure


agm-map does not display with ionic 4

Issue description
css is ok :
agm-map {
    height: 300px !important;
    width: 100%;  /* This is really important*/
  }

html is:
<ion-header>
  <ion-toolbar>
    <ion-title>Pages</ion-title>
  </ion-toolbar>
</ion-header>

      <agm-map [latitude]="43.252967" [longitude]="5.379856" [zoom]="12" (mapReady)="onMapReady($event)">

Steps to reproduce and a minimal demo of the problem
tested on ionic 4
insert html like:
**<ion-content>**
      <agm-map [latitude]="43.252967" [longitude]="5.379856" [zoom]="12" (mapReady)="onMapReady($event)">
        **</ion-content>**

The map does not display anymore.
_Use https://plnkr.co or similar -- try this template as a starting point: http://plnkr.co/edit/YX7W20?p=preview
What steps should we try in your demo to see the problem?
Current behavior
The map does not display.
Expected/desired behavior
The map must display in ion-content tag
angular2 & angular-google-maps version
angular 8 / ionic 4 / "<EMAIL_ADDRESS>Other information

I was able to run it fine:
https://stackblitz.com/edit/ionic-3wrtmn

Hello @doom777
Im am using "@ionic/angular": "^4.7.1"

and?

and it does not work.
I guess "@ionic/angular": "^4.7.1" is for ionic 4 correct ?


Markdown header link stripped from main menu ref

Using v0.33.2.
Given the following main menu item:
main:
  - name: Usage
    ref: "/usage.md"
    sub:
      - name: Starting the session
        ref: "/usage.md#starting-the-session"

The markdown header link (#starting-the-session) in the sub menu ref is stripped from the generated href:

    Starting the session

Thanks for your report. Indeed, that's due to how the menu is build. We use Hugos GetPage function to get a proper page object from the given ref attribute. As GetPage removes the anchor completely, it's not possible to use anchors in ref this way.
I have prepared a PR to add a new attribute rawref to the menu data file. This attribute can be set to true to use Hugos relref function (which supports anchors) instead of GetPage.

I had to change the approach a bit to avoid issues on multilang sites. The PR adds a new option anchor that need to be used instead:
main:
  - name: Link with Anchor
    ref: "/usage/getting-started"
    anchor: using-the-theme

  Link with Anchor


Adding django4.2 support.

Adding django4.2 support.
Site is working locally with these changes.

If there's still nontrivial work left to do for this, you should probably defer it as this repo likely to be deprecated in the near future: https://discuss.openedx.org/t/deprecation-openedxstats-and-openedx-census/10831 .  If it's essentially done, you might as well wrap it up and merge it.

I am closing this now.


Can't connect to the camera

Hi
I'm trying to use different releases but my error is the same (tried 5.0, 4.3 3.2 and 2.1).
Both running first_frame.py from v3.2 and v2.1 and ADIToFGui from v3.2 I'm getting error:
~ poetry run python first_frame.py
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240716 15:11:18.058589 1158898 system_impl.cpp:73] SDK version: 2.1.0 | branch: HEAD | commit: ba81ccb9
I20240716 15:11:18.058822 1158898 usb_sensor_enumerator.cpp:56] Looking for USB connected sensors
I20240716 15:11:18.059065 1158898 usb_sensor_enumerator.cpp:144] Found USB capture device at: /dev/video0
W20240716 15:11:18.061036 1158898 usb_linux_utils.cpp:346] Failed to read the length of the response string. Error: -1(Unknown error -1)

with first_frame.py from v4.3 I'm getting:
poetry run python first_frame.py config/config_adsd3500_adsd3030.json
Looking for camera on UVC. Will use config/config_adsd3500_adsd3030.json.
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240716 15:41:40.577112 1165506 system_impl.cpp:92] SDK built with websockets version:3.1.0
I20240716 15:41:40.577172 1165506 usb_sensor_enumerator.cpp:61] Looking for USB connected sensors
system.getCameraList() Status.Ok
Traceback (most recent call last):
  File ".../ToF4.3/bindings/python/examples/first_frame/first_frame.py", line 62, in <module>
    camera1 = cameras[0]
IndexError: list index out of range

I'm using ubuntu 22.04 with kernel version 6.5, python3.10
I've build the SDK 4.3 using the sh file and created a folder called libs with libtofi_compute.so and libtofi_config.so copied from "~/Analog\ Devices/TOF_Evaluation_Ubuntu_ADTF3175D-Rel4.3.0/bin_22.04/"
I followed the building steps to create aditofpython.cpython-310-x86_64-linux-gnu.so file and copied it to the site-packages.

Hello, if you used the sd card image from the OF_Evaluation_Ubuntu_ADTF3175D-Rel4.3.0 folder you need to use the 4.3 version on your pc.
Also you need to provide the ip to the python script. It should be <IP_ADDRESS> by default if you use network over usb.
Can you try with the other config file?
config_adsd3500_adsd3100.json
Regards,
Septimiu.

Hi, thanks for the response, indeed the firmware version is TOF_Evaluation_ADTF3175-Rel2.1.1.
So when using 2.1.1, I'm getting the same error on GUI and first_frame.py: The camera was found at /dev/video0, however the response cannot be read. "Failed to read the length of the response string"
The camera is connected with the USB cable (type C to type C).

Hello,
Can you try with the latest version? you can download it from here:
https://github.com/analogdevicesinc/ToF/releases

Hi, we need to use this version because we are using the raw images (part of our study is to develop a different method of combining raw data into 3d images) and as far as I know it's not possible to receive them using the newest firmware.

Do you know if there is any way for me to use the old firmware with Ubuntu 22.04, or
Do you know if I can receive the raw data using the newest firmware?


Fix bug where pipreport used index-urls from requirements.txt

Customers' pipelines are being broken because they are using file level requirements.txt index urls. This adds an option to disable those

Since this change may pick up different dependencies we might want to bump the Pip report detector's version number.


Navigate to file is slow on large repos

Issue Type: Performance Issue
We have a somewhat large monorepo and searching for files (cmd+p) is quite slow. It takes about 5-7s to search for a basic filename and subsequent searches take about the same amount of time.
When I watch the process tree I see that ripgrep is called every single time I try to find a file. A comment here in another ticket indicates it should operate off of a cache: https://github.com/microsoft/vscode/issues/142293#issuecomment-1031770183
That doesn't seem to be the behavior I see though. I see the slow search on both local and remote-ssh instances of vscode.
The ripgrep command I see:
/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg --files --hidden --case-sensitive -g !**/.git -g !**/.svn -g !**/.hg -g !**/CVS -g !**/.DS_Store -g !**/Thumbs.db -g !**/node_modules -g !**/bower_components -g !**/*.code-search --no-ignore-parent --follow --no-config --no-ignore-global
VS Code version: Code 1.65.2 (Universal) (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:49.188Z)
OS version: Darwin arm64 21.3.0
Restricted Mode: No
Remote OS version: Linux x64 5.13.0-1017-aws

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
3, 4, 3

Memory (System)
32.00GB (0.95GB free)

Process Argv
--crash-reporter-id 02e61eab-6204-4b3a-8524-e05f7728a750

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: bento

OS
Linux x64 5.13.0-1017-aws

CPUs
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 2499)

Memory (System)
30.90GB (23.47GB free)

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    9	   262	  4359	code main
    4	   131	  4365	   gpu-process
    0	    33	  4366	   utility-network-service
    0	   229	  4370	   window (main.go — bento-server)
    0	   262	  4371	   window (server.go — bento)
   12	   229	  4886	   shared-process
    0	    33	  5039	     ptyHost
    0	     0	  5772	       /bin/zsh -l
    0	     0	 25185	       /bin/zsh -l
    0	    33	  5214	     fileWatcher
    0	    66	  5215	     fileWatcher
    0	    66	 39855	     fileWatcher
    0	    66	 41504	     fileWatcher
    0	     0	 41794	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    33	 73743	     fileWatcher
    0	   164	  5641	   extensionHost
    0	   328	 53114	     /Users/michaeldeeks/go/bin/gopls -mode=stdio
    0	   131	  5642	   extensionHost
    0	    33	  7515	     /Applications/Visual Studio Code.app/Contents/MacOS/Electron --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=5642
    0	   328	 53115	     /Users/michaeldeeks/go/bin/gopls -mode=stdio
    5	   492	 39854	   window (rg --files --hidden --case-sensitive -g .sh — carrot [SSH: bento])
    0	   197	 39856	   extensionHost
    0	    66	 39880	     /Applications/Visual Studio Code.app/Contents/MacOS/Electron --ms-enable-electron-run-as-node /Users/michaeldeeks/.vscode/extensions/ms-vscode-remote.remote-ssh-0.76.1/out/localServer.js {"serverId":1,"ipcHandlePath":"/var/folders/kl/ftwb65qj15s117sd11820xk40000gp/T/vscode-ssh-askpass-0fa9ad4c728961d969e6309de1b1cbbe9345831c.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","54315","bento"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/michaeldeeks/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-83a2ce0f-c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1-0.76.1/data.json"}
    0	     0	 39895	       ssh -v -T -D 54315 bento
   11	   295	 41497	   window (carrot)
   16	   655	 41499	   extensionHost
    0	    33	 41517	     /Users/michaeldeeks/go/bin/gopls -mode=stdio
   29	    66	 41792	   issue-reporter
    0	   328	 73740	   window (code — bento-remote)
    0	   197	 73741	   extensionHost

Remote: SSH: bento

Workspace Info
|  Window (carrot)
|  Window (server.go — bento)
|  Window (code — bento-remote)
|  Window (main.go — bento-server)
|    Folder (carrot): more than 20823 files
|      File types: rb(2666) py(2183) sql(2163) ts(1940) tsx(1518) go(1491)
|                  yml(608) yaml(592) csv(403) sh(222)
|      Conf files: dockerfile(181) makefile(40) github-actions(30)
|                  package.json(7) tsconfig.json(4) webpack.config.js(2)
|    Folder (bento): 1274 files
|      File types: go(779) yml(55) sh(41) tmpl(22) md(21) json(20) ts(17)
|                  tsx(12) png(8) gitignore(6)
|      Conf files: makefile(5) github-actions(4) tsconfig.json(3)
|                  dockerfile(2) package.json(2)
|    Folder (bento-remote): more than 20963 files
|      File types: py(4231) pyc(4229) yaml(2611) yml(1505) rst(624) cfg(232)
|                  txt(191) json(187) j2(125) sh(102)
|      Conf files: settings.json(2) makefile(2)
|    Folder (bento-server): 138 files
|      File types: go(68) sh(8) yml(5) mod(3) sum(3) gitignore(2) md(2)
|                  bash(2) editorconfig(1) development(1)
|      Conf files: dockerfile(4) makefile(1);

Extensions (23)

Extension
Author (truncated)
Version

terraform
4op
0.2.2

gitlens
eam
12.0.5

codespaces
Git
1.5.7

go
gol
0.32.0

terraform
has
2.20.1

vscode-icon-theme
jtl
1.6.6

keen-neutral-icon-theme
kee
1.0.8

hjson
lak
0.3.2

vscode-docker
ms-
1.20.0

python
ms-
2022.2.1924087327

vscode-pylance
ms-
2022.3.2

jupyter
ms-
2022.2.1030672458

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.6

remote-containers
ms-
0.224.3

remote-ssh
ms-
0.76.1

remote-ssh-edit
ms-
0.76.1

remote-wsl
ms-
0.64.2

vscode-remote-extensionpack
ms-
0.21.0

ruby
reb
0.28.1

shellcheck
tim
0.18.9

vscode-icons-mac
way
7.25.3

vscode-ruby
win
0.28.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
dsvsc009:30452663
pythonvsnew555:30450902
vscscmwlcmt:30438805
vscgsvidc:30447482
dockersurvey3cf:30453610
pynewfile477cf:30450039

You will see a rg process every time because we start one in the background to refresh the cache on each search. But the 2nd+ search itself will not be blocked on that rg process. I just double-checked in a big workspace that this is still the case.
If you watch the search and the rg process, you should see the search complete before the rg process at least. You think that searches after the first one take pretty much the same amount of time though?

Ahh I see. That makes sense thanks. I did some testing and recorded it. The results are inconsistent. Sometimes searches are instant (no loading at all) and sometimes they pause for loading anywhere from 1-4 seconds.
For some extra context:

Our repo uses symlinks and unfortunately we can't turn off following symlinks in vscode.
The result of the rg search above outputs 673k files (65MB content)
The example file I'm searching for below "bento.yml" should produce only about 45 results

Test from the video:

On a fresh window (after waiting a minute for it to load) I searched for "bento". Since thats the first blocking search it takes about 5 seconds.
Subsequent searches for "bento" are nearly instant 👍
Searching for "bento." takes about 4 seconds
Typing out the rest of the filename to "bento.yml" is instant
Deleting the search and searching again for "bent" takes about 4 seconds

I do a couple of more searches for various spellings of "config" and some are instant while some are slow ("config" is fast, "conf" is slow)
https://user-images.githubusercontent.com/2966467/159309557-0857018e-6cb2-4e5f-a212-c71992f7ef34.mov

Some of the fast/slow might just be from the number of results. It's been awhile since I dug into this, but I think our cache is smart enough cache by filter prefix, so typing one more character would be fast. I don't think there is something special about adding the ., but I can double-check. In my testing in a not-quite-as-large repo, I don't see it getting slower when I add a ..
In my testing, the size of the result set makes a big difference in the response time. There's a max of 512 results.

I am having similar performance issues. it's about 5s before I get a result. Workspace is approximately 1000 files. Even subsequent searches for the same terms are not any faster. I'm using remote-ssh instances of VS code.

@captainbeardo you could see whether https://github.com/microsoft/vscode/wiki/Search-Issues helps

@roblourens turning off following sym links helped a little, which is strange because there are no symlinks in the directory. I turned on logging and captured the ripgrep command. Running that separately returns near immediate results:
$ <redacted>/.vscode-server/bin/3b889b090b5ad5793f524b5d1d39fda662b96a2a/node_modules/@vscode/ripgrep/bin/rg --files --hidden --case-sensitive -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/CVS' -g '!**/.DS_Store' -g '!**/Thumbs.db' -g '!**/node_modules' -g '!**/bower_components' -g '!**/*.code-search' --no-ignore-parent --no-config --no-ignore-global | wc -l
1093

real    0m0.011s
user    0m0.000s
sys     0m0.035s

On my local machine (Mac) a Code Helper (Render) process spikes CPU usage while it's doing the search. There's latency when typing as well. Nothing on the remote host shows significant CPU usage.

Can you share the log? Which process is showing high cpu (in Help > Open Process Explorer)? If it's the window process, could you grab a trace from Help > Toggle Developer Tools, then use the Performance tab to grab a trace?

It will have file paths, but that's it. You can zip it and upload it here, or email it to me.

Here it is: slow-quick-open.json.zip

Thanks. Looks like we are spending lots of time in findFormatting, and it actually looks like we were discussing the same issue in https://github.com/microsoft/vscode/issues/157056 and it should be fixed in Insiders already.

@roblourens Can confirm, it is performant on the latest Insiders build. Thanks!


"Target HTML Elements with Selectors Using jQuery" code does past test with single quotes

Challenge Name
Target HTML Elements with Selectors Using jQuery
Issue Description
The instructions say, "Additionally make sure to use $("button").addClass("animated bounce"); instead of $('button').addClass("animated bounce"); since single-quote selectors will not pass our tests."
However, this may be able to be removed since my tests passed using single quotes in the jQuery code.
Browser Information

Browser Name, Version: Chrome, 52.0.2743.116
Operating System: Mac OSX El Capitan

Confirmed.

Also confirmed.

I'll try to fix this up. Haven't done a PR in a bit.

@dhcodes , I don't particularly know why, but while jQuery might at points accept single quotes, best practice according to their documentation is to use double quotes for selectors. http://contribute.jquery.org/style-guide/js/#quotes

I researched it a little bit, and it seems like using single quotes would cause an error in versions 1.6 and later of jQuery. Would it be a good idea to simply use a warning in the instructions saying "Don't use single quotes, they break your code under some situations"?

Based on the last two posts, I think we should update the test so it doesn't accept single quotes. I'm not sure what to do about the instructions but if the test is updated the current instructions would apply.

I believe some tests in later challenges fail if single-quotes are used so it may be better to keep all the tests consistent and not accept single-quotes in this case.

Yep, I'm on it! Pull request in a few hrs.

Hi where should the test to be written, I want to make a PR

Sorry @chakrihacker , didn't see this. just finished mine!


Selectrum should set minibuffer-default

This value should be set since the goto-history-element function reads this value first! It seems default completion and icomplete set this value. See https://github.com/minad/consult/issues/151 for reference.

Hm, probably it gets set when passing it to read-from-minibuffer what we currently don't do for reasons that I'm not aware of.

Hm, probably it gets set when passing it to read-from-minibuffer what we currently don't do for reasons that I'm not aware of.

Maybe just an oversight or you didn't deem it necessary since it is nowhere used internally in Selectrum? Only matters for the history functions so I don't expect any bad side effects if you set it.

Maybe just an oversight or you didn't deem it necessary since it is nowhere used internally in Selectrum? Only matters for the history functions so I don't expect any bad side effects if you set it.

Fixed!

Fixed!


New adds should override tracks with no votes when room full [$20]

There is a $20 open bounty on this issue. Add to the bounty at Bountysource.

I'd like to press a little on this.
Suggested solution: If room is full the last played track should circulate to the bottom (unless it has played 3 times, or whatever the setting is now) and purge the oldest add in the room (regardless if it's a top off add or a user add).

agreed. sounds perfect.

I third this motion :)

This all makes sense, concurrence achieved!  Currently we're not even counting loops around the room.  This will come eventually, no ETA though!

So discussion just now with Tony, Daniel + Anita.  Result was that the room admins really need control of the 2 variables (in Edit Room):
RECYCLE_TRACKS_WHEN_PLAYLIST_HAS_LESS_THAN: 200,
TOP_UP_WHEN_TRACKS_BELOW: 130,
Then fix the bug in this issue title, where manual adds should override any track with no votes, so rooms can remain at max size (currently 300) without limiting the ability to add. Currently adds are rejected if playlist is at 300.

Needs a delete track message implementing on server and client. (Remove track currently removes on server and resyncs clients, we can't do 50 times this if someone drags 50 tracks on).  I'm on this, will be finished next week.


Improves handling of extra particles in forces

Codecov Report

Merging #31 (37adb49) into main (414b1b8) will decrease coverage by 0.29%.
The diff coverage is 60.00%.

Additional details and impacted files


Enhancement: add support to add the page description to the page add and page set commands

Usage
The SavePage API supports you setting the page its description. I noticed this is not yet supported by the page add and page set.
Options
Option to be added

Option
Description

--description
The description to set for the page

Great suggestion @estruyf! Would you like to pick it up? 😊

Great suggestion @estruyf! Would you like to pick it up? 😊


[BUG]-"Quick Start 404"

Bug Description
All of the links in the 'Quick Start' section of README.md link to files that don't exist.

https://github.com/Shenzhen-Robotics-Alliance/maple-sim/commit/2ad726e42399d7d4973570818d75572c2220ce6d
This should work, thanks for reporting!