Add support for register blocks

I have a fairly complicated I2C device I'm building a driver for. It has several blocks of registers that are repeated at different offsets, as well as blocks of registers that are logical units. I wanted to be able to define registers in blocks that could optionally be offset by a base address.
This does introduce a couple of breaking changes:

The AddressType of a register device is abstracted out to a super-trait: AddressableDevice
The write_register and read_register methods no longer have a generic parameter for the register type. Instead they take the address as a parameter to the function, so that it can be offset by a child RegisterBlock when it calls up to the parent implementation.

Thinking about it, repeated registers should probably get a repeat count and a stride.
Then instead of doing device.my_register().read(), you'd have to do device.my_register(12).read().
Looking at what is I think the device you're talking about: https://www.azoteq.com/images/stories/pdf/iqs323_datasheet.pdf
(Sorry, stalked your github :P)
I think that would work for you too.
For example, you'd make a ChannelSetup register with a repeat count of 3 and a stride of 0x10.
Do the same for the other channel setup registers and now you can index into them with your channel number.
device.channel_touch_settings(2).read()
Or do you foresee problems?
Do you really need the block representation?

I see your desire for the blocks, but I'm not in love with the trait.
See, the goal of this crate is to generate all definitions of the registers. Having a trait that requires you to do manage manual address offsets doesn't fit that goal. So I'm inclined to say that either we generate blocks in the macro or we don't do anything with blocks.
Now, you think this trait works well for you and that's great. And I think there's a way we can both be happy.
So let's keep address as an argument and the AddressableDevice, but not the RegisterBlock trait.
This makes it possible for you to define the trait in your own driver and use it as as you do now.
Do you think that'd work for you?

Ok, I'll go ahead and split this PR into one with just the AddressableDevice trait and address argument and continue working on adding register blocks to the macros and generation. I think I've got solutions to all your open questions, but we'll see after I get into it.

Cool! Feel free to open an issue to discuss your plans. Would be a waste of time if you made a fully worked out PR only for me to reject it because I didn't like the direction you took. But that's up to you :)
Let me know here when this PR is ready

Ok, here's what I've got. I haven't implemented the from_macro side yet, just the generation from Yaml/JSON. I've tried to make it very easy to define and use register blocks. Let me know what your thoughts are.
To answer your questions:

* How do you define blocks?

Define a register with block, block_description and registers fields instead of the typical rw_type, size_bits, byte_order, reset_value, and fields fields.

* Do we allow a global 'anonymous' block (so what we have right now)

Yes. I think for simple devices that makes the most sense and wouldn't want to lose it.

* You need repeated blocks, so how should users specify that?

Define a register with just a block field that matches the name of a block field in a register that provides the definition for the block.

* There's more than just registers. Maybe you should be able to put buffers and commands in the same blocks with registers too.

  * If we allow that, then how do they interact with repeated blocks?

I couldn't come up with a good answer for what it meant to have commands or buffers in repeated blocks, so I've made blocks exclusive to registers for now.

Thanks for the work so far! Good to see you're able to find your way through the codebase that should probably be commented and documented a lot more :P

Ok, try this version on for size. I implemented the syntax you suggested, including the repeated register feature. There are a couple of minor oddities:

The type returned by foo_1() is Foo0 which may be slightly confusing
If you copy a block that is repeated, the copy is also repeated.

Oh, and adding to the changelog would also be nice. Forgot about that in the last two PRs

Just got back from vacation. I'll take a better look soon, but at a glance it looked good


Attribute states not generated or not assigned correctly

Hi,
first of all - thank you for your great work making the Owlet finally available for Home Assistant. Much appreciated!
I own the Owlet Smart Sock 3.
Few issues regarding the alert states and/or attribute readings:

LOW_INTEG_READ - when the sock is removed, owlet app produces the notification Difficulty getting reading, the base station starts playing music and flashing yellow. This attribute doesn't change state however. It only changes to true when the sock is put into base station for charging.
base_station_on - when sock is charging, produces null, when the sock is on and active, produces 1 - shouldn't this be more base station connectivity, rather than sock connectivity (which is provided by active attribute)?

Thanks.

Yeah I experienced this too - the names of the attributes come straight from Owlet though, and I don't have any insight into what the conditions are for triggering them outside of what the attribute names are, as their API is entirely undocumented.


Translation proposal

Hello, I'm french and I suggest you that I translate your plugin "SmallPets" into French.
Would you agree ?

Yes, that would be nice!

okay good.

i will start

To translate "pet", I put what?
Familier (familiar) / animal / pet / compagnon (companion) ?

You could also just leave pet, at least that's what I did for italian, because animale domestico sounds strange in this case

yes ^^

I put "companion", it's good ?

Yes

Here is
translation fr.yml.zip

Thanks

will you add more pets?

yea after the next update


Automated cherry pick of #3043: Fix SetInterfaceMTU not working on Windows bug For Windows,

Cherry pick of #3043 on release-1.3.
#3043: Fix SetInterfaceMTU not working on Windows bug For Windows,
For details on the cherry pick process, see the cherry pick requests page.

Codecov Report

Merging #3070 (87f0b2d) into release-1.3 (7a45798) will decrease coverage by 0.54%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           release-1.3    #3070      +/-   ##
===============================================
- Coverage        59.90%   59.35%   -0.55%
===============================================
  Files              285      285
  Lines            23045    23046       +1
===============================================
- Hits             13804    13678     -126
- Misses            7779     7914     +135
+ Partials          1462     1454       -8

Flag
Coverage Δ

kind-e2e-tests
46.21% <0.00%> (-0.06%)
:arrow_down:

unit-tests
41.28% <0.00%> (-0.04%)
:arrow_down:

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

Impacted Files
Coverage Δ

pkg/agent/agent.go
50.40% <0.00%> (-0.51%)
:arrow_down:

...g/agent/apiserver/handlers/featuregates/handler.go
0.00% <0.00%> (-82.36%)
:arrow_down:

...kg/apiserver/registry/system/supportbundle/rest.go
19.54% <0.00%> (-55.18%)
:arrow_down:

pkg/support/dump_others.go
0.00% <0.00%> (-51.73%)
:arrow_down:

pkg/support/dump.go
8.13% <0.00%> (-49.60%)
:arrow_down:

...g/agent/apiserver/handlers/addressgroup/handler.go
0.00% <0.00%> (-40.00%)
:arrow_down:

...agent/apiserver/handlers/appliedtogroup/handler.go
0.00% <0.00%> (-40.00%)
:arrow_down:

pkg/apiserver/handlers/loglevel/handler.go
0.00% <0.00%> (-38.47%)
:arrow_down:

pkg/ovs/ovsctl/ofctl.go
18.51% <0.00%> (-19.76%)
:arrow_down:

pkg/agent/flowexporter/utils.go
46.66% <0.00%> (-13.34%)
:arrow_down:

... and 33 more

/test-all

/test-e2e

/test-e2e


Will the code be released?

Excellent work! Thanks for your work! Will you release the code implementation?

Hi, thanks for your interest. We will release the code upon acceptance!


x/pkgsite: package removal request for github.com/itsubaki/derivative

What is the path of the package that you would like to have removed?
github.com/itsubaki/derivative
Are you the owner of this package?
YES
What is the reason that you could not retract this package instead?
The repositories no longer exist.

github.com/itsubaki/derivative has been removed from pkg.go.dev.


Make filemanager.config package part of stable API

Update the classes in java-compiler-testing/src/main/java/io/github/ascopes/jct/filemanagers/config part of the stable API.
This involves just changing the @API annotation on each of the files in this package from reading status = Status.INTERNAL to status = Status.STABLE.

@JoePorterDev use intelliJ and with it's find and replace you can do it easily

Assigned, @JoePorterDev. Thanks!


Add discreteMax measurement to Statistics

Is your feature request related to a problem? Please describe.
My project requires getting max, alongside average, in Statistics when getting infromation about heart rate.
Describe the solution you'd like
This could be easily resolved by adding a list of discrete quantities, instead of a single one.
Describe alternatives you've considered
Not applicable.
Additional context
I'm using https://github.com/kvs-coder/health_kit_reporter in my flutter project and will follow up there to facilitate getting the max value as well.

I've created a PR with the change: https://github.com/kvs-coder/HealthKitReporter/pull/28


PSNR as a regression metric

PSNR is a commonly used metric to evaluate high-resolution features in image reconstruction problems such as deconvolution and natural image super-resolution. This seems like a useful addition to MSE and SSIM that helps with resolution-sensitive tasks.

On second thought, PSNR is just max over MSE, which may not be more informative than $r^2$ or SSIM.

Paper comparing PSNR and SSIM. For SSIM ~ (0.2, 0.8) and similar luminance, there is a near-linear relation between the two metrics.

Closing this since we are currently using SSIM.


Infinite loop when accessing link material-ui.com/en/

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Ao acessar  link https://material-ui.com/en/  in chrome e firefox  a page entra em um loop de recarregamento infinito.
Expected Behavior 🤔
In a normal page load there will be no infinite loop.
Steps to Reproduce 🕹
Steps:

open chrome or firefox browser
link access  https://material-ui.com/pt/en/

Your Environment 🌎

Tech
Version

chrome
85.0.4183.83

firefox
75

Linux-Ubuntu
20.04

I just get a 404 when visiting these pages. What is infinitely looping for you?

Same here, I have tried with a different language settings, not problem:


Add constant-time MontyParams::new

Adds a constant-time equivalent to MontyParams::new_vartime

Is there a big performance difference between vartime and constant-time here? Could we just remove the vartime one?

See #521. The new_vartime constructor is 2.75x faster


Memory usage doesn't match memory limit in container spec

Description of problem
Running a container with memory limit == 4gb specified, but got much larger memory size when checking memory info in the container.
Expected result
$ docker run -ti --rm --runtime=kata -m 4g alpine
/ # free -m
             total       used       free     shared    buffers     cached
Mem:          4g        108       4g          8          2          9
-/+ buffers/cache:         97       4g

Actual result
$ docker run -ti --rm --runtime=kata -m 4g alpine
/ # free -m
             total       used       free     shared    buffers     cached
Mem:          6090        108       5982          8          2          9
-/+ buffers/cache:         97       5993

Up

# docker run -d -p 25565:25565 -e EULA=TRUE -m 8G --cpus 4 --ulimit nofile=122880:122880 --name mc itzg/minecraft-server
# docker exec -it mc /bin/bash
bash-4.4# free -g
             total       used       free     shared    buffers     cached
Mem:             9          1          8          0          0          0
-/+ buffers/cache:          1          8
Swap:            0          0          0
bash-4.4#

expected 8G !== actual 9G

Hi @ekifox - thanks for posting.
It is 'not quite trivial' for Kata here. Fundamentally, if Kata just gives the 8G you requested to the VM, then some of that gets consumed by the VM rootfs and agent (outside of your actual container workload), and you'd see that you had 8G, but some had already been used.
If we give you 8G 'free', plus some extra to cater for the VM overhead, then as you see, you get to see 9G, and not the 8G you expected. We can't win ;-)
I'm sure we had a document explaining this and some of the heuristics used to do the calculation - but, I cannot find it.... @egernst @jcvenegas - did I dream that, or did it maybe get part-cleaned up during the recent docs/arch re-org, and needs re-adding in somewhere? We should explain somewhere, as this is not the first time the question has been asked.
And then, all the other references to do with adding extra options are more to do with how kata reports its memory usage back to k8s I believe, so we can get the auto-balancing and pod/node allocation correct... so, note, this query itself was from docker.

@ekifox VM was started with 1G [1] and 8G were hot plugged (-m 8G), the container in the VM has a memory constraint of 8G, the rest is used for overhead (guest kernel, kata-agent, systemd). If you want to honour the amount of memory then set it using [1] and don't use -m option.
[1] - https://github.com/kata-containers/runtime/blob/master/cli/config/configuration-qemu.toml.in#L78

Thanks @devimc - I meant to ask if the container workload is then actually constrained in a memory cgroup to the size of the -m option :-). It's a shame free does not take that into account. Anybody know if there is an easy commandline way to find out what your real cgroup constrained memory availability is??

Okay, thank you all for the answers! :)
But, then I tried to low RAM from 8G (9G) to 2G by docker update mc -m 2G
Nothing has happened, free -g in container shows 9G as it was before

Ah, I think that is a wrinkle to do with the complexities of VM memory hotplug - it is easy to plug memory in, but not so easy to unplug it (especially if it is now in use etc.). So, I think we can expand, but do not shrink. Also, I'm not sure if the update mc changes (shrinks) the memory cgroup around the container workload (but I'd like to think it did). In which case, free is still going to lie to you by telling you the 'system' level memory details, and not the memory cgroup level details.
speaking of which, I think you'll find the same/similar situation with free for a non-kata container - you will get the data about the whole host system, and not your individual container memory cgroup.
Yes, we do need to document this better ;-)

But, then I tried to low RAM from 8G (9G) to 2G by docker update mc -m 2G
Nothing has happened, free -g in container shows 9G as it was before
it is impossible to lower RAM in runtime?

It may be possible reduce the memory at runtime via virtio-balloon or virtiofs-mem, there is an old PR that tries to do that but, not it doe not have  high priority, so for now that is a limitation.
The workload still be limited to the limits via cgroups in the guest side, but if your container initially used those 8G and those 8G will be assigned to the VM as it does not return pages back. In that case it may be better to stop that container and create a new container with the new memory limits.


drivers: pwm: pwm_nrfx: Fix driver suspending

This commit clears current settings of the PWM perihperal
that are stored inside device structure.
This makes sure that PWM period and prescaler is configured
as expected after driver was suspended.

@henrikbrixandersen - sure. Fixed.


Define xrange() in Python 3

xrange() was removed in Python 3 in favor of a reworked version of range() so this PR ensures equivalent functionality on both Python 2 and Python 3.

merged. Thanks!


[BUG]: "##vso[task.setvariable variable=variable$(varSuffix)]$java$(javaImageSuffix)"

Task name
PowerShell@2 and Bash@3
Task version
n/a
Environment type (Please select at least one enviroment where you face this issue)

[ ] Self-Hosted
[X] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu-20.04
Task log
**First task: Set the varaible**

Starting: Set Image
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.220.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/home/vsts/work/_temp/863051bf-e6d7-4e14-aab8-7710475c885f.ps1'
cdpxlinuxtest.azurecr.io/artifact/df36aee8-c644-400b-a0ab-fd0f1191211d/buddy/azurefunctions.azurecr.io/azure-functions/mesh:4.0-merge-20230606.2-java8.1
JAVA8zuluIMAGE
=
cdpxlinuxtest.azurecr.io/artifact/df36aee8-c644-400b-a0ab-fd0f1191211d/buddy/azurefunctions.azurecr.io/azure-functions/mesh:4.0-merge-20230606.2-java8.1
Finishing: Set Image

**Second task: use the variable**
Starting: Test Images Part 1
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.214.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash /home/vsts/work/_temp/d3d5bf20-8aa4-418a-86ad-a3acd06c9730.sh
JAVA8zuluIMAGE =

Relevant log output
**Second task: use the variable**
Starting: Test Images Part 1
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.214.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash /home/vsts/work/_temp/d3d5bf20-8aa4-418a-86ad-a3acd06c9730.sh
JAVA8zuluIMAGE =

The second task that use the variable cannot get the value if the $(varSuffix) contains non-digit character.

##vso[task.setvariable variable=variable$(varSuffix)]$java$(javaImageSuffix)

Aditional info
Here is my two task, basically is very simple, the first task set the varible and the second task use the varaible. However if the the $(varSuffix) contains non-digit character, then the second task get emtpy value for the variable.

##vso[task.setvariable variable=variable$(varSuffix)]$java$(javaImageSuffix)

        strategy:
          matrix:
            _java8:
              javaImageEnv: "8"
            _java8-zulu:
              javaImageEnv: "8-zulu"

task1:

        - task: PowerShell@2
          displayName: 'Set Image'
          inputs:
            enable_network : true
            targetType: 'inline'
            script: |
              echo "##vso[task.setvariable variable=JAVA$(javaImageEnv)IMAGE]java$(javaImageEnv)image"

task2:
        - task: Bash@3
          displayName: 'Test Images Part 1'
          inputs:
            enable_network : true
            targetType: 'inline'
            script: |
              echo JAVA$(javaImageEnv)IMAGE = $JAVA$(javaImageEnv)IMAGE

so if $(javaImageEnv) only contains digits like 8, 11, 17, the task2 can get the variable value. But once  $(javaImageEnv) contains non-digit value like "-zulu", the task 2 is echo empty value.

Hi @kaibocai, thanks for the feedback! The problem is not with the tasks but with the
echo JAVA$(javaImageEnv)IMAGE = $JAVA$(javaImageEnv)IMAGE line, after processing the variables this lines becomes
echo JAVA8-zuluIMAGE = $JAVA8-zuluIMAGE, and executes using bash, since $JAVA8-zuluIMAGE is basically Unix env variable, the name of the variable can't contain the "-" symbol(only a sequence of alphanumeric characters and underscores), so the bash evaluated value of  $JAVA8 which is empty and the echo the rest which is -zuluIMAGE.
You could check it by yourself by enabling debug mode.
Also please notice that when variables convert into environment variables, variable names become uppercase and periods turn into underscores also there are some restrictions about variable namings, so JAVA8_zuluIMAGE(_ instead of - because of the restrictions) becomes  JAVA8_ZULUIMAGE in env variable.
Unfortunately, you probably won't be able to create new variable names using the variable's values. If you'll share additional info about your goal maybe I could help you with the pipeline.


<IP_ADDRESS> ?

Hi Guys,
I'm just curious is this jidesha 0.1.6 differs from <IP_ADDRESS> which you have on chrome web store ?
I just want to make sure I'm using the most recent version.
Thanks !
David

The version in web store, is with calendar plugin and uses latest source you see here. While updating the plugin and its settings for meet.jit.si, we haven't updated the version in the source, this why the versions are different.

thanks


Update demo and workload flags for new workload(s) in 19.2

docs/v19.2/cockroach-demo.md
docs/v19.2/cockroach-workload.md

AFAIK movr is the only newly-whitelisted workload/demo for 19.2...

#5075


Add support to the Scopes resource

Scenario/Intent
Use the scope resource that's been recently implemented in the oneview-ruby-sdk
Environment Details

oneview Cookbook Version: 1.3.0
OneView Version: 3.0.0
chef-client Version: 12.18.31
platform: Windows 7

Steps to Reproduce
Try to use the resource Scope through the oneview cookbook
Expected Result
It should have the resource and be possible to use it
Actual Result
This is currently not implemented.

@fgbulsoni , this looks very similar to #142. Can you combine any information that's needed and close one or the other?

@fgbulsoni , this looks very similar to #142. Can you combine any information that's needed and close one or the other?

It should be somewhat different. This issue regards the implementation for the actual resource called 'scope', while #142 refers to several different resources, which gained a 'scope' endpoint.
I could group those together, but it strikes me as just a naming resemblance in this case for two actual different things.
Would you still prefer to have these things coming as one issue?

Ah! Sorry, I didn't see that. No, this is fine


[Question] Most efficient way of fetching users with roles?

As far as I know, the GetUsersAsync does not return realm roles assigned to the user. Assuming I have 100 users and 3 roles, which are assigned to these users (1 user can have 1, 2 or all roles).
What would be the most efficient way to fetch the list of users with all their roles?

Hi @PatriQ94,
Keycloak.Net is not directly associated with Keycloak, we simply provide a library for interacting with Keycloak from a .NET application, so unfortunately I don't know for sure what the best approach here is. I think you would probably be better off directing your question at the wider Keycloak community to see which API endpoint would work best, and from there checking if Keycloak.Net currently implements that endpoint, if not it can be added.
With that said, if you do only have 3 roles, then my best guess would be to use the GetUsersWithRoleNameAsync() endpoint, which would allow you to get the list of users with each role. This would only require 3 calls to the Keycloak API, you could then combine this information with the list of users to give you a list of users and their assigned roles. This will likely be more efficient than looping through each user to fine their roles (which in your example would require 100 calls to the API).
Good luck with your project!
Thanks,
Campbell

Hey Campbell! Thank you for your answer, that's the exact solution we had in mind so far :D


静态文件需要更新，否则查询新版本歌曲会报错提示找不到buddies代版本logo

报错如下
[2024-06-06 12:57:28,578 nonebot] INFO: Self: 25*****89, Message<PHONE_NUMBER> from 245*****73@[群:658967247]: '查歌 VeRForTe αRtE:VEiN'
2024-06-06 12:57:28 INFO Self: 25*****89, Message<PHONE_NUMBER> from 245*****73@[群:6******47]: '查歌 VeRForTe αRtE:VEiN'
[2024-06-06 12:57:28,580 maimaiDX] INFO: Message<PHONE_NUMBER> triggered search_song.
2024-06-06 12:57:28 INFO Message<PHONE_NUMBER> triggered search_song.
2024-06-06 12:57:28 WARNING Executing <Task pending name='Task-28' coro=<handle_message() running at /home/yuyue/HoshinoBot/hoshino/msghandler.py:23> wait_for=<Future pending cb=[shield.<locals>._outer_done_callback() at /usr/lib/python3.8/asyncio/tasks.py:902, <TaskWakeupMethWrapper object at 0x70fbb5a03a60>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> cb=[gather.<locals>._done_callback() at /usr/lib/python3.8/asyncio/tasks.py:769] created at /usr/lib/python3.8/asyncio/tasks.py:824> took 0.365 seconds
[2024-06-06 12:57:29,092 maimaiDX] ERROR: <class 'FileNotFoundError'> occured when search_song handling message<PHONE_NUMBER>.
2024-06-06 12:57:29 ERROR <class 'FileNotFoundError'> occured when search_song handling message<PHONE_NUMBER>.
[2024-06-06 12:57:29,092 maimaiDX] ERROR: [Errno 2] No such file or directory: '/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/static/mai/pic/maimai でらっくす BUDDiES.png'
Traceback (most recent call last):
  File "/home/yuyue/HoshinoBot/hoshino/msghandler.py", line 23, in handle_message
    await service_func.func(bot, event)
  File "/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/maimai.py", line 219, in search_song
    msg = await new_draw_music_info(result.random())
  File "/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/libraries/maimaidx_music_info.py", line 228, in new_draw_music_info
    im.alpha_composite(Image.open(maimaidir / f'{music.basic_info.version}.png').resize((250, 120)), (1340, 590))
  File "/home/yuyue/.cache/pypoetry/virtualenvs/hoshinobot-YwPoqgTR-py3.8/lib/python3.8/site-packages/PIL/Image.py", line 3218, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/static/mai/pic/maimai でらっくす BUDDiES.png'
2024-06-06 12:57:29 ERROR [Errno 2] No such file or directory: '/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/static/mai/pic/maimai でらっくす BUDDiES.png'
Traceback (most recent call last):
  File "/home/yuyue/HoshinoBot/hoshino/msghandler.py", line 23, in handle_message
    await service_func.func(bot, event)
  File "/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/maimai.py", line 219, in search_song
    msg = await new_draw_music_info(result.random())
  File "/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/libraries/maimaidx_music_info.py", line 228, in new_draw_music_info
    im.alpha_composite(Image.open(maimaidir / f'{music.basic_info.version}.png').resize((250, 120)), (1340, 590))
  File "/home/yuyue/.cache/pypoetry/virtualenvs/hoshinobot-YwPoqgTR-py3.8/lib/python3.8/site-packages/PIL/Image.py", line 3218, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/yuyue/HoshinoBot/hoshino/modules/maimaiDX/static/mai/pic/maimai でらっくす BUDDiES.png'
[2024-06-06 12:57:29,095 nonebot] INFO: Message<PHONE_NUMBER> is ignored: Handled by Hoshino
2024-06-06 12:57:29 INFO Message<PHONE_NUMBER> is ignored: Handled by Hoshino

新版本变动较大，还需要一点时间做测试

已更新 2024


Have option to specify config file

This would allow testing different instances without copying or editing the config.json.
Should the workspace or assistant ID be part of config file?

Only relevant to my understanding of the question :  Both when possible with an option to select.

added option -config configuration-file


Could not resolve dependency<EMAIL_ADDRESS>|| ^16.0.0" from<EMAIL_ADDRESS>

Hello, I tried install react-google-maps on my project and I got error:
# npm resolution error report

2021-04-15T09:36:08.537Z

While resolving<EMAIL_ADDRESS>Found<EMAIL_ADDRESS>node_modules/react
<EMAIL_ADDRESS>from the root project

Could not resolve dependency:
peer<EMAIL_ADDRESS>|| ^16.0.0" from<EMAIL_ADDRESS>node_modules/react-google-maps
  react-google-maps@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "react",
    "version": "17.0.2",
    "location": "node_modules/react",
    "dependents": [
      {
        "type": "prod",
        "name": "react",
        "spec": "^17.0.2",
      }
    ]
  },
  "currentEdge": {
    "type": "prod",
    "name": "react",
    "spec": "^17.0.2",
  },
  "edge": {
    "type": "peer",
    "name": "react",
    "spec": "^15.0.0 || ^16.0.0",
    "error": "INVALID",
    "from": {
      "name": "react-google-maps",
      "version": "9.4.5",
      "location": "node_modules/react-google-maps",
      "dependents": [
        {
          "type": "prod",
          "name": "react-google-maps",
          "spec": "*",
        }
      ]
    }
  },
  "peerConflict": null,
  "strictPeerDeps": false,
  "force": false
}

Same problem, any update here?

@porot07 @eddOrnelas The repo of this project is unmaintained more than 3 years, and we had build new version https://www.npmjs.com/package/@react-google-maps/api
Supporting react 17 since version 2
We had rewrite it to TypeScript, and updating it frequently: https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api
You can enjoy autocomplete.
You can see our docs: https://react-google-maps-api-docs.netlify.app
Also a lot of examples: https://react-google-maps-api-gatsby-demo.netlify.app/ https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api-gatsby-example/src/examples
The bundle size is much smaller: https://bundlephobia.com/result?p=@react-google-maps/api

Our Slack channel: https://join.slack.com/t/react-google-maps-api/shared_invite/enQtODc5ODU1NTY5MzQ4LTBiNTYzZmY1YmVjYzJhZThkMGU0YzUwZjJkNGJmYjk4YjQyYjZhMDk2YThlZGEzNDc0M2RhNjBmMWE4ZTJiMjQ
Enjoy!

@JustFly1984 yes i just found out and used the new version, sorry for asking updates before researching XD
a disclaimer/note can be useful in this case :P

Well since it is not maintained for more than 3+ years, it should be mentioned somewhere in https://www.npmjs.com/package/react-google-maps or https://github.com/tomchentw/react-google-maps docs that it is recommended to switch to https://www.npmjs.com/package/@react-google-maps/api :-?

@DarkAng3L Nobody has access to the repo. Possibly an author died or not interested in open source anymore, so there is no option to do what you want. In general it is a good practice to look how your dependencies maintained before using it in your project. There is almost always a better alternative.
I've posted to almost every issue for last 3 years.

@JustFly1984 thank you for forking, appreciated!

I have a React project that I build about 4 years ago. Now I'm trying to update my react project. However, I did encounter this error that's mentioned above. So how do I fix this error?
 ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR!   peer<EMAIL_ADDRESS>|| ^15.0.0 || ^16.0.0" from<EMAIL_ADDRESS>npm ERR!   node_modules/mini-create-react-context
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/react-router
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!       node_modules/react-router-dom
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/react-dom
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   9 more (react-native-open-maps, react-router, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/react-native
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/react-native-open-maps
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer react-native@"*" from<EMAIL_ADDRESS>npm ERR!   node_modules/react-native/node_modules/@react-native/virtualized-lists
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/react-native
npm ERR!     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/react-native-open-maps
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!     peer react-native@"*" from<EMAIL_ADDRESS>npm ERR!     node_modules/react-native/node_modules/@react-native/virtualized-lists
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

What steps do I need to take to resolve those errors and update all the old packages?

any update?


Avoid providing "mixed" cache while refreshing a dataset

When a dataset is being refreshed, or even after having been refreshed, its cache can be incoherent.
Case 1
Reported by @AndreaFrancis: during a dataset refresh, the search was enabled in the viewer, but the "first rows" were not shown. The split-duckdb-index step had finished, while the split-first-rows-from... steps were still being computed. The data shown by the viewer were not coherent, and it would be hard for a user to understand what was occurring.
Case 2
Seen with https://huggingface.co/datasets/jbrendsel/ECTSum. All the steps had been computed, and the config-size step had an error (PreviousStepFormatError). The erroneous cache entry remained after fixing the issue and refreshing the dataset. The reason is a previous step (dataset-config-names) now gives an error, and the rest of the cache entries are never cleaned, so they stay in the database even if useless. See https://github.com/huggingface/datasets-server/issues/1582#issuecomment-1727151243 and https://github.com/huggingface/datasets-server/issues/1285.
Proposal
Give each "DAG" execution an identifier, and use the same identifier for all the endpoints. To ensure coherence between the responses, change the identifier we use in the API only when all the steps have been refreshed. If we send the identifier in the response, the client can also use the identifier value to check the coherence. If there is no previous identifier in the database, use the identifier of the current incomplete DAG (the dataset viewer already handles an incomplete state).
Once the new DAG execution has finished, we can delete the cache entries with other identifiers.

Once the new DAG execution has finished, we can delete the cache entries with other identifiers.

Pros:

We will have always something to show in the viewer

Cons:

I think we could end up with our collections growing considering that these are some of the implementation details:
We would have to add an extra field on cache and job collection maybe "dag_version", this new field should be added in the unique constraints index by kind.
We will probably have to add an index for this new field
Double the amount of data in our collections in the worst cases (duplicated content)
Will probably have to run a new job runner or something like that to save the current_dag_version and update it when all the DAG is completed

Maybe initially a simpler approach:  Once a job_runner finishes, delete all its children and backfill
Pros:

Dont need too much change in our current infrastructure
It could be good to have in the db only what we need
Cons:
Dataset viewer would end up waiting for the new information but it used to be quick. We have delays only when the queue is overloaded.

WDYT @huggingface/datasets-server

I like the first option more, because it provides total separation between two runs. It means that we don't have to worry about obsolete cache entries anymore, and possibly it will be easier to clean the associated assets too, if they are referenced by a "run_id".
Thanks for the good points you raised (increase of the database size, taking care of the new field in the indexes, maybe one additional step).

For case 1 we could just delete the children cache entries when we click refresh no ?

I think we could take example on GitHub Actions.
runs/6338193861 represents a DAG run.
It has two attempts (I manually run again the "failed jobs", ie: 1 out of 2)

runs/6338193861/attempts/1
runs/6338193861/attempts/2

And each job has its id:

runs/6338193861/job/17214797233 for step 1 in attempt 1 (green)
runs/6338193861/job/17216602357 for step 1 in attempt 2 (green)
runs/6338193861/job/17214798018 for step 2 in attempt 1 (red)
runs/6338193861/job/17216602696 for step 2 in attempt 2 (green)

I'll see if we can adapt our model without complexifying it too much. The good thing, if we succeed, is that it will be easier to choose which versions we want to keep, or when we want to delete them. Currently, we "mutate" a common state, and it's a mess.

For case 1 we could just delete the children cache entries when we click refresh in the admin app no ?

as a short-term solution, it's a good idea: add a parameter to /force-refresh to delete all the dataset's cache entries before refreshing the first step (or it could be another admin step: /delete-and-compute-dataset?dataset=...&priority=...).
It will not solve the general issue, but will allow to quickly fix a specific dataset, at the expense of turning the dataset viewer down on the Hub during the update.

I propose the following strategy for now:

with https://github.com/huggingface/datasets-server/pull/2244: only use operations.update() and operations.delete() to control a dataset (no more partial updates of some steps and not other ones)
in the webhook: instead of just updating a dataset, first delete its cache completely then recreate
still let the backfill script partially update only the missing entries.

what do you think @AndreaFrancis @lhoestq

it would remove the need for https://github.com/huggingface/moon-landing/issues/7080, btw (internal): the revision would normally always be the last one.

in the webhook: instead of just updating a dataset, first delete its cache completely then recreate

it will also remove the assets right?

Yes: assets and cached assets. It does nothing more (parquet, duckdb, metadata, datasets cache, etc. are ignored for now)

Sounds good to me !


SnapKey not working in Apex Legends

Ran as admin tried alot does not worki in Apex Legends can anyone else try and see if they can get it to work.

check the compatibility list for game compat; Apex is listed as incompatible due to the way it handles keyboard inputs internally

Ran as admin tried alot does not worki in Apex Legends can anyone else try and see if they can get it to work.

Should work with 1.2.0


include Cargo.lock?

I've observed that we're currently gitignoring Cargo.lock: https://github.com/rustbox/esp32c3-vgaterm/blob/44b82a8b89bc42677fb75f522434326631d4a923/.gitignore#L2
As a big fan of deterministic builds, this seems unfortunate to me. To wit:

The purpose of a Cargo.lock lockfile is to describe the state of the world at the time of a successful build. Cargo uses the lockfile to provide deterministic builds on different times and different systems, by ensuring that the exact same dependencies and versions are used as when the Cargo.lock file was originally generated.
— https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries

Feels like a useful thing to have, so we can be relatively sure about consistently reproducing results. I think we're both big fans of not constantly fighting over noisy changes, but perhaps the frame shift here is "any commit that does not intentionally update a dependency ought not contain a different Cargo.lock from its parent"? Do we know what kinds of nondeterminism we're exposed to, here? Obviously there's gonna be "semver nonsense", but I think the path there would be to pin all of our dependencies that "flux" to a particular version (and implement #18 so they don't get stale).
NB: this might be related to #14 , I'm not sure if that's a source of (this kind of) nondeterminism or not.

Three facts about cargo I learned via that discussion thread:

cargo maintains internal dependency forks on major version (e.g. 1.0.0 vs 2.0.0) as entirely separate packages; so you can have both crate v1.0.0 and crate v2.0.0 in a single artifact just like you could have both serde and nom. Including that it would be the same kind of category error to pass a v1.0.0 struct to a v2.0.0 function as it would be to pass a nom struct to a function with a signature matching a serde type.
for 0.x releases, each minor version is treated as a major revision (i.e. v0.2.0 is a major version away from v0.1.0)
a dependency specification like 1.2.3 means ">=1.2.3, <2.0.0" (e.g. 1.2.4 or 1.4.5,or any any other version greater than x.2.3 in the 1.y.z series)

Additionally, Cargo offers two strategies for dependency resolution:
Minimal Versions: pick the "leftmost" end of the range wherein each major version's requirements are satisfied.  Optional, can be invoked on a command-by-command basis with -Zminimal-versions.
Maximal Versions: pick the "rightmost" end of the range wherein each major version's requirements are satisfied. The default.
Notably, neither strategy unifies major versions: only two dependencies on the same major version may conflict. If, say, one requires a package version >=1.2.3 and the other requires <1.2.0, cargo will fail to resolve, but >=2.2.3 and <1.2.0 will resolve just fine to two distinct packages. In combination with the special handling for 0.x releases, this implies that two requirements targeting v0.7.0 and v0.8.0 of the "same" dependency will be resolved as two distinct, separately built, non-interoperable packages.[^1]
Finally, Cargo.lock forms a "materialized view" or "snapshot" of a particular resolution for a dependency graph. It's intended to be used in perpetuity as long as it's 1) present and 2) complete. The only way it'll be incomplete is if the requirements changed (e.g. adding or upgrading a dependency), and the requirements can't be satisfied from the existing resolution.[^2] The lock file usually exists for the "root" package, as cargo build always produces a Cargo.lock file for the package where it's invoked, but is usually unavailable for dependencies. It's recommended that packages with no possible dependents (i.e. binaries[^3]) provide a Cargo.lock, but that any package intended to be used by a downstream consumer should explicitly not provide a Cargo.lock. This snapshot is managed with a dedicated sub-command, cargo update,[^4] that can be used to re-resolve either the entire graph (or a subgraph) against the latest repository state.
[^1]: Editorializing a bit, here, but there's a conflict between cargo's model and what appears to be the most common development strategy for a given crate. Most crates seem to follow a "trunk-based development" model, where there is a single current version with a static historical record of releases (i.e. tags), whereas cargo operates as if each major release were its own independently developed long-lived software artifact (i.e. branches).
[^2]: Changing a requirement to more strictly match the existing resolution, for example, doesn't change Cargo.lock.
[^3]: Though, confusingly, it seems that the default behavior of cargo install is to ignore Cargo.lock; you have to invoke it as cargo install --locked for the recommendation to apply.
[^4]: Not to be confused with cargo upgrade, the installable third-party tool that checks Cargo.toml for requirements that might be behind the latest release of their referents. As with brew up{date,grade} or with USB plug orientation, the one you want is always the third one you try.


Export DynamicBundleClone

Currently, the trait DynamicBundleClone is not exported outside the private bundle module. This makes it impossible to use it for generic trait bounds and is very inconvenient.
The trait itself is public, but the module is not, nor is it exported outside the module.
Rust doesn't complain at "leaking private type" since it technically is public, though not accessible

I think this is already fixed? https://github.com/Ralith/hecs/blob/4840f93f15adcc188da8df13be0a129b1a8a91a5/src/lib.rs#L76

Yep, thanks!


Assignment 09 -- 07 Mar 2024

Ask two question for every participants here.
This activity performed between 1100-1230 today.
Lecture and hands-on about FFT in Python will follow.

What is the function of DC component in FFT?
According to the triangle wave formula,  the amplitude also outputs negative components. In the theoratical graph, do we apply the absolute value of A or leave the value as it is?

The result of my Triangle Wave Form in numeric should be positive-negative consecutively, as it is at the theory. How to make my numeric form to be the same as the theory?
What is the application/ implementation for FFT?

How does the FFT algorithm differ from the DFT algorithm?
What is the application of FFT that are close to our everyday life?

What is the different about FFT for square wave and triangle wave?
What is the application of FFT are often used?

What is the difference between FFT for triangle wave and sawtooth wave? Can we obtain result for triangle wave from sawtooth wave calculation because we can create triangle wave equation from sawtooth wave equation?
My final project is based on EEG. I can actually use the data and transform it using FFT but I still don't know how exactly to do it. Currently, I'm using an application named Mind Monitor which uses FFT principles, but if I got the time I want to explore more on this too. How can I use data instead of equation for FFT?

How does the Fast Fourier Transform (FFT) algorithm improve the computational efficiency of calculating the Discrete Fourier Transform (DFT), and what is its time complexity compared to the naive DFT approach?
What are some common applications of the Fast Fourier Transform (FFT) in signal processing, and how does it help in analyzing frequency components of signals?

What is the application of FFT in real life?
Are there any special condition or limitation while using FFT?

Are there any restrictions on the types of signals that can be analyzed using FFT Python?
What are the applications of FFT analysis of square, sinusoidal, and triangle waves in signal processing?


bugfix: execute remount rootfs before prestart hook

Signed-off-by: Michael Wan<EMAIL_ADDRESS>Ⅰ. Describe what this PR did
when execute prestart hook, if container's rootfs not mounted will cause start failed. so, we should mount the rootfs before excute prestart hook.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1622 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1622      +/-   ##
==========================================
+ Coverage   41.96%   41.98%   +0.01%
==========================================
  Files         270      270
  Lines       17597    17597
==========================================
+ Hits         7385     7388       +3
+ Misses       9303     9299       -4
- Partials      909      910       +1

Impacted Files
Coverage Δ

daemon/mgr/container.go
50.19% <0%> (-0.16%)
:arrow_down:

ctrd/image.go
79.42% <0%> (+2.85%)
:arrow_up:

LGTM


feat(rtl,client-gen): Support event subscription for GTest #299

Resolves #299 .

Close this PR in favor of https://github.com/gear-tech/sails/pull/367


Use HTTP instead of HTTPS to connect

Hi,
I am trying to test this very promising soft, thanks for your work!
Is there a way to use HTTP protocol instead of HTTPS to use Gaps? Indeed, I'd like to use a reverse proxy (Caddy) in front of it and this creates problems. It would be nice to switch HTTPS off.
How to do it?
Thanks!

The latest release has a docker build for 'no-ssl'

docker pull housewrecker/gaps:latest-no-ssl


run pytest with xdist and forked

As discussed in the context of another PR (https://github.com/DHI-GRAS/terracotta/pull/166#pullrequestreview-366467067), Flask apps like Terracotta have a lot of global state, since the fully configured app is instantiated upon import:
https://github.com/DHI-GRAS/terracotta/blob/279b840cd5d8372b5895beba6c71498656fb468b/terracotta/server/app.py#L16-L19
Multiple instances of the app are not meant to run in the same kernel, but this is what happens when pytest executes the tests one after the other in the same kernel and the state of one instance can influence the outcome of the other.
Maybe we can change that with pytest-xdist, where each test runs in its own process, adding considerable overhead, but perhaps more security.

Y tho? https://travis-ci.com/DHI-GRAS/terracotta/jobs/292591107#L1544

Y tho?

ExpressionParser uses a recursive implementation (see https://github.com/DHI-GRAS/terracotta/blob/2ac1b4e48e3571ad5e95a3436c376b35ccd372fe/terracotta/expressions.py and https://docs.python.org/3/library/ast.html#ast.NodeVisitor.visit).
Parsing expressions is also inherently a recursive problem and any non-recursive implementation is likely to be nasty I think, so it makes sense to implement it like so.
You could increase the max recursion depth in the test
import sys
sys.setrecursionlimit(BIG_NUMBER)

I think we agree that xdist is not needed at this point.


Crawljax not crawling through entire website

Initially for checking I had taken the AdvancedExample.java and made corresponding changes to see whether it'll crawl through the entire website as it says.
For that I later tested www.amazon.in in two cases. One with a set of two browsers (unlimited depth and maximum states) and the other with a set of 5 browsers (unlimited depth and maximum states). The reason for such a selection of depth and states is that what we require is to crawl the entire website and we mainly deal with e-commerce websites.
#42 was something similar but with a depth of 1 and setting number of states to be crawled to maximum clicking all links were possible. Unfortunately that was limited to that particular webpage alone. As the depth increased the problem is found to persist.
Please find the below attached output files and please help/recommend the best configurations that would do good!
amazon 2 browsers.zip
amazon 5 browsers.zip
Plz respond: @alexnederlof @amesbah /team
Thanks
Sachin Nandakumar

Perhaps give the new version a try. I'm closing this as there is no way for us to reproduce it.


Start Basic Test Coverage

This extension has not yet any unit tests.
Not yet familiar how to write test with the vscode api. So I deferred it to a later time. But by now it seems reasonable to add some test.
Features to test:

Code decorations
++ mutliple addresses on the same line
++ private keys been mistaken for ethereum addresses
++ adresses not ending with whitespaces

Code Actions

Checksum calculation

I actually already did this:
https://github.com/peetzweg/vscode-crypto-address-lens/blob/main/libs/evm/src/lib/match/match.spec.ts


Suggestion: Use changelog instead of readme.md

No big deal, but it may be better if you use the CHANGELOG.md instead of README.md for release notes
Also, in reverse chronological order.

Done


Spyder 3.0.2 fails to start after --reset

Description of your problem
I first installed Python 3.5 with Anaconda, then created a new environment for Python 2.7 under Anaconda. Spyder has been working fine under both Python versions until yesterday. Spyder is still working fine under Python 3.5. I recently updated to Spyder 3.0.2
What steps will reproduce the problem?
I used the --reset command and can see some files are being deleted. I also tried deleting the .Spyder folder.
What is the expected output? What do you see instead?
After a reset, Spyder tries to launch as normal and I can see the splash scree, which disappears after a short while, but Spyder never launches.
Please provide any additional information below
I have also tried to uninstall and install spyder under the Python 2.7 environment, but no change.
Versions and main components

Spyder Version: 3.0.2
Python Version: 2.7
Operating system: Windows 10

Please run in a terminal
spyder --show-console

and post here any errors shown by that command.

(py27) C:\Users\Christian>spyder --show-console
Traceback (most recent call last):
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\app\mainwindow.py", line 3001, in main
mainwindow = run_spyder(app, options, args)
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\app\mainwindow.py", line 2905, in run_spyder
main.setup()
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\app\mainwindow.py", line 888, in setup
from spyder.plugins.ipythonconsole import IPythonConsole
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\plugins\ipythonconsole.py", line 59, in
from spyder.widgets.ipythonconsole import ClientWidget
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\widgets\ipythonconsole_init_.py", line 14, in
from .namespacebrowser import NamepaceBrowserWidget
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\spyder\widgets\ipythonconsole\namespacebrowser.py", line 14, in
from ipykernel.pickleutil import CannedObject
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\ipykernel_init_.py", line 2, in
from .connect import *
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\ipykernel\connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\IPython_init_.py", line 48, in
from .core.application import Application
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\IPython\core\application.py", line 25, in
from IPython.core import release, crashhandler
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\IPython\core\crashhandler.py", line 28, in
from IPython.core import ultratb
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\IPython\core\ultratb.py", line 128, in
from IPython.utils.terminal import get_terminal_size
File "C:\Users\Christian\Anaconda3\envs\py27\lib\site-packages\IPython\utils\terminal.py", line 22, in
from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size
ImportError: No module named shutil_get_terminal_size

Please run
conda install get_terminal_size

and try again to see if the problem is fixed :-)

All requested packages already installed.
packages in environment at C:\Users\Christian\Anaconda3\envs\py27:

get_terminal_size         1.0.0                    py27_0

I did pip uninstall backports.shutil_get_terminal_size and then installed it again. I'm now able to start Spyder but getting the following message: You have missing dependencies!
nbconvert >=4.0 None (NOK)
I checked and nbconvert 4.2.0 is installed..

That's something for you to see how to solve :-)
At least Spyder is not crashing for you anymore.

Tnx for your help!


CanCOGeN template: Maximums in collection dates

We are having issues with collection dates in the future (likely due to the 2021/2022 change over e.g. 2022-12-30 instead of 2021-12-30).
Can we put in a safeguard in the validation code to check that collection dates are not beyond "today" (whatever the user's computer registers as "today").

I've added functionality that putting the string "{today}" into a date field's "min value" or "max value" will trigger a validation check against whatever {today} evaluates to (ignoring time zones).


[tests] remove std::rand usage

PR removes a few places where we used std::rand. More details in #2393
Closes #2393

@junliume seem this one can be merged


Raspberry Pi Docker Compose

Hi,
Can I run this docker compose on raspberry pi?
Thank you

I don't see why not? I don't have a raspberry pi to test, but if you have docker then it should run just fine.

Added a compose file to master.

Thank you its installed but I am getting these messages in the logs
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"

I have no idea what that means. Again, I don't have a Rasberry pi, so you're running a bit out of band. The compose file works on my mac. I don't know what OS you're evening running and what the docker support is.


TS Server fatal error:  Debug Failure. False expression.

❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 4.0.3
Steps to reproduce crash
1.
2.
3.
TS Server Log
❗Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server: syntax
Error: Debug Failure. False expression.
    at ProjectService.applyChangesInOpenFiles (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152055:34)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:153089:46)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154962:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154953:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154962:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154986:35)
    at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:157202:27)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Closing as old TS version


Doughnut type and "stack" does not work?

Expected behavior
https://codepen.io/marekka/pen/NWERJLo
I have two dataset
Current behavior
When adding the stack option the graph is not generated, can we have this on one graph, as a summary, for better data manipulation, as it works here?
https://www.chartjs.org/docs/latest/samples/bar/stacked.html
Reproducible sample
https://codepen.io/marekka/pen/NWERJLo
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
latest
Browser name and version
No response
Link to your project
No response

The chart does generate correctly. How did you expect the chart to look like with your current config?

I'd only like to have one circle with the data, so dataset1 and dataset2 is on one circle graph, as we have it on the bar/stacked.html example

This is not easily possible, you can do some trickery with custom legend filtering and tooltip callbacks. But the doughnut and pie chart don't use any scales so they are not stackable.

Closing as this is not a bug. This is a misconfiguration/understanding of the possibility of the library


Unable to run echo test

When trying the example the websocket does not function. Here is the output of the Photon serial connection:
Connecting...
Connected, sending handshake.
Sending handshake!
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: echo.websocket.org:80
Origin: SparkWebSocketClient
Sec-WebSocket-Key:  1VTFj/CydlBCZDucDqw8eA==
Sec-WebSocket-Version: 13
Handshake sent
Reading handshake!
handshake rcvd line: HTTP/1.1 101 Web Socket Protocol Handshake
handshake rcvd line: Access-Control-Allow-Credentials: true
handshake rcvd line: Access-Control-Allow-Headers: content-type
handshake rcvd line: Access-Control-Allow-Headers: authorization
handshake rcvd line: Access-Control-Allow-Headers: x-websocket-extensions
handshake rcvd line: Access-Control-Allow-Headers: x-websocket-version
handshake rcvd line: Access-Control-Allow-Headers: x-websocket-protocol
handshake rcvd line: Access-Control-Allow-Origin: SparkWebSocketClient
handshake rcvd line: Connection: Upgrade
handshake rcvd line: Date: Sat, 18 Jul 2015 02:48:22 GMT
handshake rcvd line: Sec-WebSocket-Accept: kuZ2KVbyl4oJOyuTXN/B93O3z9Y=
handshake rcvd line: Server: Kaazing Gateway
handshake rcvd line: Upgrade: websocket
handshake rcvd line:
Handshake Failed! Terminating
Connection Failed!

I am getting the same results with Photon.

Hey was anyone able to get this to work with the photon?

I am having the same problem. I can't get the test to work and I can't connect to my nodejs socket server using the ws package.

As far as I can tell the check for the Sec-WebSocket-Accept header was really wrong. I've submitted a pull request. The example works on the Particle Photon with that fix.

By the way guys, this was fixed in a recent merge :)

I'm getting the same response - the "Handshake Failed! Terminating". I tried the library that Particle has incorporated into their cloud compiler, and also tried making a local copy of the current version from Github - get the same result.
Oddly, it works with the "echo.websocket.org" but not with my Golang-based websocket server - which works fine with all the other clients I've tried. Anyone have any suggestions?
Thanks in advance.

Probably your local one is using WebSocketSecure. If so - i can't help with this. Because there is an SSL connection required.

Probably your local one is using WebSocketSecure. If so - i can't help with this. Because there is an SSL connection required.

Probably your local one is using WebSocketSecure. If so - i can't help with this. Because there is an SSL connection required.

Also there is hardcoded handshake check. So you can manually modify it. Just take a look at the code :)
Check function readHandshake.


Readme incorrect on NPM

Readme states that the Config is located at node-json-db/lib/JsonDBConfig
its actually at node-json-db/dist/lib/JsonDBConfig. Love this package btw, Thanks!

It also has an error in the line "var db = new JsonDB(new Config("myDataBase", true, false, '/');".  The last parenthesis is missing


when viewing a file, "files" should be active

Right now, when you view an individual file, no link in the grey navigation bar is active. I suggest making "files" be active.

@GaryKriebel this fix seems to be broken again, can you assign me to this?


Encoding issue on some pages

As you can see there is some encoding issues, on some pages.

Hi,
This is encoding issue. Please read main page, Troubleshoot section.


Putting a directory into any of the directories controllers, libraries, helpers, models causes boot function to crash

If the file structure is:
libraries
    downloader.js
    external
        readability.js

The following should work:
Ni.libraries.downloader
Ni.libraries.external.readability

I had a rather similar issue with our own sources checked out from a svn server.
Subversion generates directories named ".svn" in each subdirectory.
I've found a dirty workaround for me:
In "ni/lib/ni.js" line: 465 I've added:

if (! /~$/.test(file) && file!='.svn') {......

Do you mind making a more general "ignore paths" solution, including ".git" folders and such, and sending a pull request? Thanks!

of course, why not.
thanks for ni.
regards
On Sun, Oct 9, 2011 at 1:51 AM, Chetan Surpur <
<EMAIL_ADDRESS>
Do you mind making a more general "ignore paths" solution, including ".git"
folders and such, and sending a pull request? Thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/chetan51/ni/issues/4#issuecomment-2334439


Add Hashable conformance

This PR adds Hashable conformance for JSON. This is convenient when using JSON is sets, for example.
The only downside is the compiler will need to synthesise the conformance which may add a bit of overhead.

Perfect, thank you!


0060 - Permutation Sequence

Description of the Problem
The set [1,2,3,...,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order, we get the following sequence for n = 3:

"123"
2 "132"
"213"
"231"
"312"
"321"
Given n and k, return the k^th permutation sequence.

Note:

Given n will be between 1 and 9 inclusive.
Given k will be between 1 and n! inclusive.

Example 1:
Input: n = 3, k = 3
Output: "213"

Example 2:
Input: n = 4, k = 9
Output: "2314"

Code
class Solution:
    def getPermutation(self, n: int, k: int) -> str:

Link To The LeetCode Problem
LeetCode

i want to solve this

program is done


Accessibility issue with aria-hidden="true" attribute in  component

What is affected?
Accessibility
Description
When clicking the button part of the radio button in the Shadow DOM of the  component, the following error occurs:
Blocked aria-hidden on a <input> element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.

This is caused by the aria-hidden="true" attribute assigned to the button part of the radio button, which hides the focused element from accessibility tools.
To solve this problem, we propose replacing the aria-hidden attribute with the inert attribute. The inert attribute prevents focus as well as hides the element from accessibility tools.
Reproduction
https://stackblitz.com/edit/nuxt-starter-wdxt3x?file=app.vue
Workaround
Instead of aria-hidden=“true”, use the inert attribute.
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
2.0.0
Browser/OS/Node environment
Browser: Chrome 127.0.6533.120
OS: macOS 14.6.1
Node version: 18.20.3
npm version: 10.2.3

Looking through the code history of radio, this happened when I swapped aria from using the inner <input> to the outer <md-radio> element. The <input> is only being used as the touch target now.
I think we can replace the input entirely with a div touch target instead. Adding inert will make the touch target stop working, since it won't receive pointer events.

@asyncLiz
Thank you for informing me about the drawbacks of using the inert attribute.
I have made adjustments and would appreciate it if you could take a look.


Ensure unit tests run cleanly for encodings/fastpfor/js/

Currently the unit tests appear to pass but still result in a failure due to a minor issue with nyc & Ava usage:

✘ No tests found in src/tests/benchmarks/fastpfor.ts, make sure to import "ava" at the top of your test file

Looks like there is another problem coming up on CI:
><EMAIL_ADDRESS>build:module
> tsc -p tsconfig.module.json

src/index.ts:12:28 - error TS2307: Cannot find module './BitPacking' or its corresponding type declarations.

12 import { fastunpack } from './BitPacking';
                              ~~~~~~~~~~~~~~

Found 1 error in src/index.ts:12

src/index.ts:12:28 - error TS[23](https://github.com/mactrem/cov-tiles/actions/runs/9228505345/job/25392651682#step:5:24)07: Cannot find module './BitPacking' or its corresponding type declarations.

12 import { fastunpack } from './BitPacking';
                              ~~~~~~~~~~~~~~

https://github.com/mactrem/cov-tiles/actions/runs/9228505345/job/25392651682#step:5:14

Fixed by #50


Self assignable roles

To replace Dyno colour roles for regulars,
To give Craig role for regulars,
To give classical, non-classical for everyone

Dyno updated with the ?craig command. Holding off on classical/non-classical roles for now while we figure out if we really want the roles at all

Classical and non-classical roles now are the pingable roles for the question of the week.
Taking off priority tag as we have a temp solution through Dyno.
@pianiststickman perhaps you can make the two self assignable through dyno as well in the mean time?

Done.
?classical and ?non-classical toggle the roles and are assignable by everybody.
?craig remains toggle-able by regulars only.


Securing Verdaccio using the Docker image

I'm using AWS ECS to deploy verdaccio via the docker image.. However right now its exposed to the internet, I would like to secure my packages and restrict access t packages to specific users/groups.
I was able to find some documentation on how to do this in https://verdaccio.org/docs/en/packages and https://verdaccio.org/docs/en/protect-your-dependencies as well as https://verdaccio.org/docs/en/webui to restrict the scope, however I didn't find any examples on how to do this in Docker. I'm also aware that I need to create volumes for conf/, storage/ and plugins/  according to https://verdaccio.org/docs/en/docker to persist the packages.
What is the correct way to do this? Should I create my own yaml file and do a CP command from the Dockerfile to ~/.config/verdaccio/config.yaml ? Or Is there a way I can define these as environment variables from Docker?

Check this example, let me know if you need more clarifications.
https://github.com/verdaccio/docker-examples/tree/master/docker-local-storage-volume

About the environment variables, it's limited to some set of configuration, eg: listen port. There is an opened ticket about improving the Docker image, feel free to drop your thoughts there. https://github.com/verdaccio/verdaccio/issues/836

I used the example docker image thanks... I guess I can somehow use the image built from docker-compose with AWS ECR/ECS.
Is there a way to configure the storage?, I have a feeling with all the proxying and caching of every npm install the storage/ directory is going to increase in size eventually causing my server to run out of space...

Thanks!


Support project specific hooks that would be executed on various  events.

Motivation:
Need to execute project commands during different processes that are taking place. This could include but not limited to the following:

deploy
project build
engine up
engine down

Fixed in 2.3.0


gql 403 when navigating home results in a redirect loop

See the automated test failure here https://github.com/sillsdev/languageforge-lexbox/runs/22246037255
When clicking to go home, a request is made to gql, this will return a 403 which is intended to logout the user. However it redirects the user home, however the user got this error trying to go home, so this also fails. The reason it's being sent home instead of logout is because it's determined that the user is not home because the url is /user, the url doesn't change until after the gql request succeeds.
One odd thing is that it looks like the hooks server and hooks client has a very different determination of when a user is home or not. On the server side a user is determined as home if they are under the (authenticated) route, where as client side it's just if the url is / or /home or /admin which makes sense for home. Should the parameter be renamed to represent something else?

The server-side check is: routeId.endsWith(AUTHENTICATED_ROOT). So, it's not if they're anywhere under the (authenticated) route, but rather only if they're exactly at that route, which is equivalent to /.


tls: update BoringSSL-FIPS to 20190808.

Signed-off-by: Piotr Sikora<EMAIL_ADDRESS>

Since the version of BoringSSL that we use in FIPS prior to this PR is from mid-2018, I think it makes sense to backport it to the stable releases in order to enable TLS 1.3 there. Any objections @lambdai @mattklein123 @htuch @lizan?
/backport

/lgtm v2-freeze


Splash page

How do we want to introduce the application?

@cameronkruse would you prefer to have a splash page to introduce the website, or should we present the global view to let users start exploring immediately?

Thanks for thinking about this, I would like a splash page. It doesn't have to be something complex, but a separate page would helpful to introduce some concepts and allow us to link to research and foundational data.


OctopOS Prime Penta Series-1

OctopOS Prime picks Pyke from the LOL game and fights with rival Teemo.

DONE SİR


Nested less dependencies do not live-reload

module.js
import "./module.less";

module.less
@import "./other.less"

If other.less changes it will not be reflected in live-reload either on the client or server. Effectively meaning the only way to see the changes is to restart the server (or use development.html).

The problem is that these nested less files are not part of the steal dependency graph; steal does not know about them.  The only way I can see to fix is to make all less files part of the dep graph, make them be treated as dependencies by adding an instantiate hook.

@matthewp Well adding these files to Steal's dependency graph fix this issue also? https://github.com/stealjs/steal-less/issues/18

I don't think so, I don't know why less is loading that file twice, could be a less bug or perhaps we are not implementing some sort of "this has already loaded" API, idk.

@matthewp I know there's an api to associate multiple modules with one file (for .component).  Perhaps there should be another API to associate multiple files with one module.

We could use load metadata to list the files that should be associated. The watcher would then use this to know what the parent module is (the module that's actually part of the graph and needs to be re-executed).

Update: changed live-reload and steal-tools so that the includedDeps property is used to know of dependencies that are not part of the normal dependency graph. Plugins can add this metadata and we'll watch for these files and trigger reloads when they change, just like for normal deps.
Next need to update the less plugin so that it sets this metadata for its nested dependencies and test the entire flow.

I have this working in a prerelease. If you update your dependencies to:
"dependencies": {
  ...
  "steal": "pre"
},
"devDependencies": {
  ...
  "steal-tools": "pre"
}

You can try it out. Will wait on some feedback before releasing.

I have this working in a prerelease. If you update your dependencies to:
"dependencies": {
  ...
  "steal": "pre"
},
"devDependencies": {
  ...
  "steal-tools": "pre"
}

You can try it out. Will wait on some feedback before releasing.

cc @akagomez

@matthewp Seems to be working!

Somehow I completely missed the chatter on this. I'm stoked to give this a try. You're my hero @matthewp.

Doesn't seem to be working for me. Probably doing something wrong.

Note, that this doesn't solve the multiple load problem, I tried to recreate that here: https://github.com/stealjs/steal-less/issues/18

@matthewp this this ever get released?

@tracer99 Yep.

@matthewp which version of steal got it? We just updated to what we thought was the latest, but the issue still exists. We see the console show that it's detected the change of an imported less file, but the UI doesn't update until we restart the server.


JWT Audience

Fixes #2181

Given that method signatures are changed this should go into at least a minor release. Not a revision.
From the tests it appears we need to examine file upload more closely.

/azp run

@ohine this is blocked from VSTS check but it passes Azure pipeline, can we remove that check or will you be able when ready to merge this to override the check ?

@dnnsoftware/tag Any concerns with this PR for Dnn10? It has been here for some time and stalebot picked it up as stale. I don't know enough about JWT to review it.


Single Pdf file from multi html pages

How to do it?

Hello @heartfulbird
Questions and debugging issues belong on stackoverflow.com. This is are is for tracking bugs in the PDFKit gem.

Thank you for your answer!
But can you say it's possible?
I can't find info about how can I do it with gem pdfkit.
I can do it only in command line like:
wkhtmltopdf -O Landscape --dpi 600 01.html 02.html combined.pdf
But we already work with PDFKit gem and I don't know - to continue it or do it with shell commands.

Hi @heartfulbird
Ah, okay, examples help!
Unfortunately, we don't currently have support for multiple local files. I think we accidentally support multiple links. That's a combination of oversight in how PDFKit was originally built to be used and the fact that (speaking only for the past couple months I've been here) we don't really see that many advanced uses of wkhtmltopdf's features.
This is a bug. Thanks for bringing it up.
I would refer you to WickedPDF, which has alternate option parsing that ours and can sometime be a quick-ish fix if you don't have too much invested in PDFKit. Unfortunately, they don't seem to support multiple files either. :(
For now, I don't have an answer for you. I can likely get a new feature out quickly for PDFKit's timeframe, but that may not help you - especially if you can't upgrade.

Ok, Thank you very much!
It seems this is helpful feature)
May be in future it will appear.
I will try to work with command line still.
Thank you!

I would suggest trying to use something like pdftk to merge pdf files.


$translateProvider.useLoaderCache is not a function

"version": "2.2.0"
useLoaderCache function is not present in $translateProvider

If you're looking for the function - it was introduced with 2.4.0 - so please update to the most recent version.


False positives for Lombok's @Data annotation

Describe the bug

[x] I have verified that the issue is reproducible against the latest version
of the project.
[x] I have searched through existing issues to verify that this issue is not
already known.

Minimal Reproducible Example

Given below class

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class ErrorProneTestObject {

    @JsonProperty("event")
    private String event;

}

we get unclear recommendations saying that we might replace @Data with @Data (see Logs section). It seems it happens only for Lombok @Data, or @Setter:
@Setter
public class ErrorProneTestObject {

    @JsonProperty("event")
    private String event;

    public String getEvent() {
        return event;
    }

}

Logs
.../ErrorProneTestObject.java:6: Note: [CanonicalAnnotationSyntax] Omit redundant syntax from annotation declarations
@Data
^
    (see https://error-prone.picnic.tech/bugpatterns/CanonicalAnnotationSyntax)
  Did you mean '@Data'?

I tried several different combinations of the annotations and configurations and it seems that:

it always happens if you use the ones I specified above
it stops happening if I remove one of them
it also stops happening if I remove JsonProperty's parameter

Expected behavior
I'm pretty sure that the error message does not help much so it is either a bug in the analysis or in the message. Does it sound familiar to you guys?

Setup

MacOS Ventura
openjdk version "19.0.2" 2023-01-17
Error Prone version 2.18.0
Error Prone Support version 0.8.0
EDIT: I also have disableWarningsInGeneratedCode = true in the configuration

Additional context
I just started using error-prone and it might be a good opportunity for me to see how custom rules work. If you consider reported behavior a bug I think I could dive deeper into it ☺

Hi @ksiczek, thanks for taking the time to report an issue!
This sure looks like a bug and should be fixed. The thing is that Lombok probably generates extra parentheses "under the hood" that are flagged by this check.

it also stops happening if I remove JsonProperty's parameter

This is interesting and didn't expect that though 🤔.
I think we should have something to exclude certain annotations from this analysis. We have this code in a different check that is probably similar to what we need here.
I'll need some more time to dive a bit deeper into this before I can give a good answer or direction. Already wanted to share this and let you know we noticed the issue 😄.

We also use the 1.18.26 of Lombok. Could it be something different in our stack that interferes? I thought that if I had created an additional class in our project then I isolated it enough, but maybe I was wrong. One thing comes to my mind - we do use lombok.addLombokGeneratedAnnotation = true and I have not tried running w/o it.

@rickie It didn't fail for me, so it might be the case that this test doesn't fully use the features of Lombok?

I can't reproduce the issue using tests aswell. I also tried using example project from #716.

Thanks for looking into this @mohamedsamehsalah. Good to know 😄.
@ksiczek Can you try running it without lombok.addLombokGeneratedAnnotation = true? If you still see the failure, can you compare your setup with this example project and try to make a reproduction case there. If we don't know the specifics that can cause this issue it's hard to figure out what the problem is.

It didn't fail for me, so it might be the case that this test doesn't fully use the features of Lombok?

That's correct; for Lombok to work in this case, it needs to be enabled explicitly. See the setArgs solution mentioned here. When I add that flag I can indeed reproduce the reported issue.
I had hoped that the solution implemented in google/error-prone#4076 would also resolve this issue, but it doesn't, because the issue at hand is that CanonicalAnnotationSyntax (incorrectly) attempts to flag the explicitly specified @JsonProperty("event") annotation, which is not itself in a @SuppressWarnings("all") scope.
That then leaves the question: why does the check attempt to flag the (already canonical) @JsonProperty("event") annotation? It turns out that, while this code is explicitly defined, Lombok does not retain it's exact source code representation, by instead mapping it, but also the implicit value =  assignment, to the @Data annotation. This causes our check to think that the annotation looks like  @JsonProperty(value = "event") (because the assignment has an explicit source presentation), even though it doesn't. Conversely, this issue also means that the non-canonical annotation @JsonProperty() would not be flagged.
Possible next steps (not mutually exclusive):

Flag this issue with Lombok.
Update CanonicalAnnotationSyntax to work around it.

Point (2) could involve something like was attempted in #728, but as I also mentioned there: I really prefer that also here we identify a more generic solution. (A @Data-annotated class can contain explicitly defined code, and to the extent that Lombok does not hide the details from us, we'd like to accurately process that code.)


[AKS] Support BYO control plane identity

Description

The feature "bring-your-own control plane identity" is going to GA. This PR adds cli support for it.
Testing Guide

Added unit test and e2e recording.
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

AKS

hi @fengzhou-msft could you pls help to review? thanks

Hi @fengzhou-msft , thanks for reviewing! I've updated error type, could you please have a look now?

Hi @norshtein , recently we have concluded an error handling guide. Maybe you can have a look and try to follow it in the future. In later PRs, we will reject to raise CLIError. It's better to update this PR's raise CLIError part. Considering the time frame, I'm also OK for keeping it for this PR. Please kindly be noted. Thanks

@arrownj , thanks for the explanation, I just tried to update all CLIError added in this PR to correct category according to the manual.

Close and reopen to rerun CI.

The CI failed, seems to be a transient error, could you please help rerun it @arrownj @fengzhou-msft


Chromium suddenly installed on system update

Describe the bug
I don't have chromium in my system flake, but on recent update it appeared in system path.
I tried to bisect a specific commit: in ad80525b035676e0e39e4372cae2bf6f63f4f877 it not present, but in d4961abbcab3b72fa30b0f3ee0e2e8c858a8f63d it does.
But it didn't make sense to me, because it is python library update.
I inspected it with nix-tree, and it doesn't seem to be a dependency.
Steps To Reproduce

nix flake update --override-input nixpkgs github:nixos/nixpkgs/d4961abbcab3
sudo nixos-rebuild test

Expected behavior
Should not.
Screenshots
Here is I switch between adjacent commits and chromium appears.

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.3, NixOS, 24.11 (Vicuna), 24.11.20240809.d4961ab`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"home-manager-24.05.tar.gz, nixos-24.05"`
 - nixpkgs: `/nix/store/znxkpcwydayfhscc8liwf35hhzpk61hx-source`

Add a :+1: reaction to issues you find important.

It's due to #333240 which means you have chromium enabled in your config

Ok, I found it (by directly disabling option), it was stylix, it has programs.chromium.enable = true by default... (https://github.com/danth/stylix/blob/master/modules/chromium/nixos.nix)

@eclairevoyant thanks for help!

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/chromium-not-in-any-nix-flake-but-installed-on-unstable-nixpkgs/50462/4

The change been reverted in #334726 and will reach the unstable channel in a few days.
Refer to #334726 and related PRs for why this has been reverted.


Gulp no longer follows symlinks past the first level

I have noticed a regression in Gulp where when using gulp.src, if a directory that is matched is symlinked, it will no longer try to follow nested folders of that directory.  This is due to this change in vinyl-fs.

Running into this problem as well. Any updates regarding passing options to src()?

Shortcut to node-glob PR -> https://github.com/isaacs/node-glob/pull/148

Will like this feature as well.

https://github.com/isaacs/node-glob/pull/148 has been closed by a different commit by @isaacs - is this solved?

Can someone write a test for this against the vinyl-fs repo?  I believe it is fixed now that @contra bumped the glob dependency (vinyl-fs 5.0.0)

Note that the glob symlink followin behavior is opt-in, so you need to pass follow:true in the options object.

@isaacs Ah thanks, I need to add that then

@contra I'm assuming we still want it to be opt-in since it is an edge case.  I've added a note to the 4.0 docs in https://github.com/gulpjs/gulp/commit/725da2a855472b8f99b64b58c181e30c16bfa8a3

I specify "follow: true" but still get the same error.  Any way to get this in 3.9?  4's taking years...


Google+ discontinued

Google+ will be discontinued for consumers soon.
https://www.blog.google/technology/safety-security/project-strobe/
I think any reference in the plugin can be removed. If required, people can alway add it manually like any other profile.

Hi, Google+ is official out of service! I like to inform some icons from Font Awesome like mastodon and telegram-plane doesn't show up on About Me, gitlab show but with a wrong icon.
I try to find the link to the source of the icons but I couldn't. Is it pointing to the last version of the branding icons?

#4624394
@Birssan the commit worked! Could you insert a box to set the pixel size for the icons like Gravatar?

I'm closing this issue as it's resolved. See #20 for this matter @gbschenkel


Handle shutdown messages

Here's how IPython handles it - https://github.com/ipython/ipykernel/blob/f2e9895a6217c53c3912a0fdeb306a8316fd62fd/ipykernel/kernelbase.py#L526
Notably the v5.3 spec states "The request can be sent on either the control or shell channels.".
I may attempt this myself, but I'm new to cats effects and struggling a bit to sort it all out.

Fixed by https://github.com/almond-sh/almond/pull/222 (included in 0.1.8).


Return user to same step of onboarding flow if they previously closed window

As described here, if a user starts the authentication process for the first time during onboarding but closes the Blockstack App before submitting a username, they'll end up with a username-less keypair, which shows up as a username with random characters when they subsequently try to authenticate.
The user would encounter a similar problem if they initiated onboarding but closed the window before seeing or saving their Secret Key.
As such, we should save the user's step state until they successfully submit a username at the very end and use that state should they return to the Blockstack App to show them the last step they viewed so they can proceed from that point onward and complete onboarding fully.

Still getting the same key less pair, let me verify I am testing on the correct branch during the stand up.
[Uploading... Screen Shot 2020-03-13 at 8.42.19 AM.png ]


Add luci support package for sstp-client

Any reason why this never got merged? Seems to be working fine to me with the latest OpenWRT release..

Some formal notes:

your PR has conflicts with current master and can't be merged
at minimum please implement the requested changes of https://github.com/openwrt/luci/pull/261
sign-off your work

Thanks!

Thank you @dibdot for pointing me to the right place. I'll make a fork and implement the changes. Closing this PR as I cannot make any changes in this fork.

Here is the new PR: https://github.com/openwrt/luci/pull/2768


cannot import name 'get_host' from 'urllib3.util.url'

I am using MacBook and I am encountering this issue while I am running the scripts.
This issue appears to be in bardapi/core.py in the import request library.

Try uninstalling and reinstalling in your venv as follows.
pip uninstall urllib3 -y
pip uninstall requests -y

pip install --upgrade urllib3
pip install --upgrade requests

Thank you so much. It issue has been solved by your help.


don't set accept-encoding in responses

For both the Connect and gRPC protocols, we're setting 'accept-encoding'
or 'grpc-accept-encoding' in the responses (this should only be sent in
requests).

gRPC also allows this for responses: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#responses
Connect should, too - I forgot to include this when I documented the protocol. I'll open a small PR to fix the docs.


Remove noms JS implementation

Sadly, I think it's in evidence that JS isn't a great place to be implementing a full noms client. When we embarked on the JS impl, the rational was that it was important (a) because web, and (b) because lots of JS devs.
Having traversed this path, the following problems appear to be systemic and without a clear solution:

The overhead of maintaining two full implementations is large. As noms has gotten more complex, this becomes more so.
The tool chain for the JS world generally makes life harder -- at least relative to golang. Those of us now experienced with both go & js generally find go to far more productice and porting to JS fairly frustrating.
Getting good perf in go has largely been a matter of controlling memory allocations. This has proven near impossible in javascript and the perf delta between the two (single core, on the machine) is now near 20-40x. We had hoped to keep it to 4x.
Heading towards support of react native mobile clients is proving even more challenging because the tools for homing in a specific perf problems aren't great in JS.

There are some big changes required working towards noms 8 and if we can halve the implementation work by removing JS, it's worth considering.
cc @aboodman, @arv, @cmasone-attic, @kalman

I'd like the entertain implementing GraphQL in golang as a bridge from JS to noms as the solution to this.
In this world, what we think of as noms "jobs" (which tend to read & write alot of data) would be written in golang where we can focus power on creating a pit of success. What we think of as "apps" (which tend to read/write less data, but be more latency sensitive) would use GraphQL to read, write & query data -- either directly from a server or from a local noms peer which is compiled from golang.
At least abstractly, GraphQL is a natural fit because noms data is intrinsically a DAG. In addition, it lines up very nicely with how the go marshalling works and I think there's the opportunity, if not to share a common underlying implementation, at least to cross pollenate and have both benefit.
My plan is to do some initial work in order to try to answer the key questions in whether it's a viable path.
Before I start work on vetting this path, I'll post a list of key questions we want answered.

Another possible benefit of doing this is that it removes at least one reason not to chunk structs (i.e. nested recursive structs) -- namely that it would have made reading struct fields async in js, but go has blocking IO.

Blocked by

[Completing graphql]

Removing usages:

https://github.com/attic-labs/attic/issues/628
https://github.com/attic-labs/noms/issues/3174
https://github.com/attic-labs/attic/issues/895

I think this has been proven to the point that I've made the goal more affirmative. This is blocked by:

https://github.com/attic-labs/noms/issues/3173
https://github.com/attic-labs/noms/issues/3175
https://github.com/attic-labs/noms/issues/3176
https://github.com/attic-labs/noms/issues/3174

If Noms support graphql,   you're not going to support bindings to another language(C bindings, C#, android, and ios) ?

Yes. For the near-future, at least, the approach will be for application code (js, swift, c#, c, java) to request and update data via graphql.

This is more a thought experiment idea... Just saying..
i was thinking the same thing. If NOMS used GRPC for its API, then it woudl have been trivial to cross build clients in other languages, without GraphQL.
Also there its not that much work to parse the GraphQL schema and generate GRPC for it.
DGraph has some things it it similar to it.

So the dream of having a Gears-like browser data sync via NOMs dies? /me weeps

At least directly via JS.
One possible route is to compile the go implementation via llvm to web assembly which would persist using indexeddb and run in a service worker. Client UI would read/write via GraphQL. The download size of the compiled go code is the obvious downside, but upside is probably speed since the main perf problem with JS (lack of control over memory allocations) would be removed. Also, at this point, the client always reads/writes via graphql but is either talking to a local store or a remote store.
There's no immediate plan to do this, but its possible.

Normally I'd be skeptical but if you guys can't make a JS implementation work then I'm just a sad panda. If, however, it's something that varies with data size perhaps it would still be useful to have small nodes sync'ing. (a single user's subgraph). Or maybe https://github.com/gopherjs/gopherjs?

Goodbye, my complicated friend:
https://github.com/attic-labs/noms/commit/3c764c1eb5178652d116cb05f8f325ba845c39e3

It was good to know you -- Stockholm syndrome?


Failed to create JWT helper.

When using the java-photoslibrary api with the following dependencies, the error
java.lang.NoSuchMethodException: com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.<init>(java.lang.String, java.lang.String, java.security.PrivateKey, java.lang.String)
	at java.lang.Class.getConstructor0(Class.java:3082)
	at java.lang.Class.getConstructor(Class.java:1825)
	at io.grpc.auth.GoogleAuthLibraryCallCredentials$JwtHelper.<init>(GoogleAuthLibraryCallCredentials.java:270)
	at io.grpc.auth.GoogleAuthLibraryCallCredentials.createJwtHelperOrNull(GoogleAuthLibraryCallCredentials.java:221)
	at io.grpc.auth.GoogleAuthLibraryCallCredentials.<clinit>(GoogleAuthLibraryCallCredentials.java:54)
	at io.grpc.auth.MoreCallCredentials.from(MoreCallCredentials.java:35)
	at com.google.api.gax.grpc.GrpcCallContext.withCredentials(GrpcCallContext.java:131)
	at com.google.api.gax.grpc.GrpcCallContext.withCredentials(GrpcCallContext.java:64)
	at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:165)
	at com.google.photos.library.v1.internal.stub.GrpcPhotosLibraryStub.create(GrpcPhotosLibraryStub.java:286)
	at com.google.photos.library.v1.internal.stub.PhotosLibraryStubSettings.createStub(PhotosLibraryStubSettings.java:264)
	at com.google.photos.library.v1.internal.InternalPhotosLibraryClient.<init>(InternalPhotosLibraryClient.java:180)
	at com.google.photos.library.v1.PhotosLibraryClient.<init>(PhotosLibraryClient.java:101)
	at com.google.photos.library.v1.PhotosLibraryClient.initialize(PhotosLibraryClient.java:114)
	at photosAPI.Photos.<init>(Photos.java:58)
	at Main.main(Main.java:26)

is thrown. This seems to be due to an out of date version of the com.google.api:gax dependency. Currently, version 1.43 is used. When I forced gradle to use version 1.44 of the api, the issue was resolved.
I reccomend changing the version from 1.43 to 1.44 on https://github.com/google/java-photoslibrary/blob/9230526ed31b19aa89960215b38a3f5a4729fcea/photoslibraryapi/build.gradle#L50
Depdendencies:
   compile 'com.google.photos.library:google-photos-library-client:1.2.0'
    compile 'com.google.api-client:google-api-client:1.28.0'
    compile 'io.grpc:grpc-netty-shaded:1.20.0'
    compile 'io.grpc:grpc-protobuf:1.20.0'
    compile 'io.grpc:grpc-stub:1.20.0'
    compile group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.28.0'
    compile group: 'com.google.oauth-client', name: 'google-oauth-client-java6', version: '1.28.0'

Thanks - looks like something went out of date between the authentication library and gax-grpc. We'll bump all dependencies in the next library release that should be coming shortly.

This should be fixed in the latest release - can you try this again with version 1.3.0?
(Thanks for preparing a pull request, but unfortunately we had to verify and bump a few other dependencies at the same time.)

That seems to have fixed it, thanks for the help!