feat: enable ESCItem to use custom ESCEvents written in GDScript

feat: enable ESCItem to use custom ESCEvents written in GDScript
My high-level goal is to use my own scripting language for Escoria.
This goes back to some of my original work on RoomScript:
https://github.com/godot-escoria/escoria-demo-game/pull/558
as well as this prototype to generate ESC from my own scripting language:
https://github.com/bolinfest/alt-esc-prototype/
Because #558 was a large change that was impractical to upstream,
I decided to try to rework things as a much smaller diff so that
I could unblock myself without having to maintain a fork.
The crux of this commit is only a two-line change to esc_object_manager.gd.
The rest of the changes in the commit are updates to the demo to illustrate how
the feature could be used, as it changes r3_l_exit to be a custom instance of
ESCItem that implements the new, optional generate_events() function so it
can return its own Dictionary to map event names to ESCEvent instances.
Though in practice, I would not expect to author this sort of code by hand.
Instead, I would have my own scripting language from which I would generate
files such as l_door.gd and l_door_exit_scene.gd.
Though as illustrated by _compile_event_from_esc(), I could
start by generating ESC instead of going straight to GDScript.
For example, my input language might be:
room room03 {
  item l_door {
    event exit_scene {
      // ESC
      change_scene "res://game/rooms/room02/room02.tscn"
    }
  }

  item r_door {
    event exit_scene {
      // ESC
      change_scene "res://game/rooms/room04/room04.tscn"
    }
  }
}

And from this, it would be fairly straightforward to generate these two .gd files:
# game/rooms/room03/l_door.gd
extends ESCItem

func generate_events() -> Dictionary:
    return {
        "exit_scene": escoria.esc_compiler.compile([
            ":exit_scene",
            "change_scene \"res://game/rooms/room02/room02.tscn\"",
        ]).events["exit_scene"],
    }

and:
# game/rooms/room03/r_door.gd
extends ESCItem

func generate_events() -> Dictionary:
    return {
        "exit_scene": escoria.esc_compiler.compile([
            ":exit_scene",
            "change_scene \"res://game/rooms/room04/room04.tscn\"",
        ]).events["exit_scene"],
    }

Initially, I admit this does not buy much other than making it possible
to define events for multiple items in one file. Though over time, I
would like to be able to more sophisticated things like you see in:
https://github.com/grumpygamer/DeloresDev/blob/master/Scripts/Rooms/MainStreet.dinky
While I know it is possible to extend ESC by creating my own instances of
ESCCommand, I would prefer to have the freedom to experiment with a
broarder array of constructs.

This could be very interesting and would accomplish the kind of extension you're after. And I think it could become even more useful after we get the mechanics of the updated ESC language/interpreter finished. Eg the power to coordinate across multiple events so each one doesn't necessarily need to exist in isolation to each other.
@bolinfest you may want to take a look at the "cfg-interpreter" branch to see how we're changing the language and how the interpreter works. I don't think it necessarily affects this PR but it might (or might not) give some ideas as to what you can do w this in the future.

@BHSDuncan I just picked a commit at random in the branch and found:
https://github.com/godot-escoria/escoria-demo-game/commit/17e0717ad5db0df3e802f862e441940f6b67865f
Nice to see if and elif in there!

Thanks! The idea is to make ESC script more like GDScript with common conventions. Basic loops, conditionals, scoping, etc. Always looking for feedback on what should be included for the first pass. We'll add to it as time goes on but we want the first release of it to be as useful as possible without breaking the bank, so to speak.
The interrupter also operates "JIT" for the most part, so we're moving away from compiling events when a room is entered and executing the cached events and having events executed line by line as they happen.

I updated the prototype of my script parser to generate GDScript that uses the new generate_events() API:
https://bolinfest.github.io/alt-esc-prototype/


[QUESTION] SKPaint.IsVerticalText

what is the new property to make it vertical?

I don't think this was ever really working, so Google removed it.
For now, the work around will be to manually shape text with harfbuzz and then render it how you want.


Compiling with SPIRV-LLVM-Translator

Is rust-gpu able to compile Rust to GLSL using SPIRV-LLVM-Translator?
It seems that it would be possible to do this fairly easily, following these steps:

compile Rust to LLVM IR using rustc,
compile LLVM IR to SPIRV using SPIRV-LLVM-Translator, and then
compile SPIRV to GLSL using SPIRV-Cross.

Since we're implementing our own spir-v codegen directly, going thru spirv-llvm-translator is extraneous. You could just convert our generated spirv to glsl using spirv-cross directly.

The SPIRV-LLVM-Translator question was already answered in https://github.com/EmbarkStudios/rust-gpu/issues/217, tl;dr SPIRV-LLVM-Translator does not support shaders, which is why we wrote our own rustc backend instead of using the LLVM backend.


Update asymmetricalgorithmnames_ecdsap521sha512.md

For EcdsaP521Sha512, the key length is 521.  Calling CreateKeyPair with 512 results in an invalid value

@TanukiRoar : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@msatranjr is no longer in the docs org. Reassigning to @lastnameholiu.

Hi @jborsecnik , thanks for catching that, I've merged your changes and they should be live soon.


Add cs translation

There is a Czech translation in the develop branch with some translation differences.

Oh I didn't check development branch. Can you make a release from it?


Bump upload-artifact to v4

@n8maninger did you verify this works without any additional changes? I think I vaguely remember an issue with this due to artefacts not being allowed to have the same path anymore or something like that.

Yeah, it broke everything.


JavaScript Intellisense Request

VSCode Version: 1.12.2
OS Version: Windows 10 Enterprise

Steps to Reproduce:
(JavaScript)

Create variable function

var MyClass = function(){
  var self = this;
  self.foo= "";
  this.bar = "";
}

The intellisense will note that bar is a property of MyClass but not foo.
This being due to self not being recognised as a reference to this (MyClass).
This is a common way of writing Knockout code or if you are working with multiple nested models using this design pattern is very useful.
I would think that the intellisense would pick this up, but at the moment it does not.

Thanks. I've opened https://github.com/Microsoft/TypeScript/issues/16200 to track this upstream


Debug/Run should not autoclose console if console was open

VSCode Version: 0.10.12-alpha
OS Version: Windows 10

Steps to Reproduce:

write a small js program that prints to the console
open console
run it using Ctrl+F5

Observe: you see the output and then the output closes after 1 second. That might be ok for debug but is annoying in run mode.

@isidorn not sure if you or Andre. In general I think debug/run should only close the debug console if the console got open programmatically beforehand through a launch.

Setting to march for discussion


SEGFAULT in _vflow_set_int_TH during Http1AdaptorBadEndpointsTest::test_08_bad_chunked_body test

https://github.com/skupperproject/skupper-router/actions/runs/4244471490/jobs/7378637317#step:30:3233
This test simulates badly formatted HTTP/1 messages with chunked body encoding. The router will respond by closing the associated connection when the parse error is hit. The crash occurs shortly after the last connection closes.
The fault appears to occur during _vflow_find_attribute():
  static vflow_attribute_data_t* _vflow_find_attribute(vflow_record_t *record, vflow_attribute_t attr)
  {
    vflow_attribute_data_t *data = DEQ_TAIL(record->attributes);
    while(!!data) {
     if (data->attribute_type <= attr) {  <<<<<< HERE

2023-02-22T16:03:46.1800912Z Program terminated with signal SIGSEGV, Segmentation fault.
2023-02-22T16:03:46.1801241Z #0  0x00007fd690d7eb8f in raise () from /lib64/libpthread.so.0
2023-02-22T16:03:46.1953650Z [Current thread is 1 (Thread 0x7fd6895c6700 (LWP 5506))]
2023-02-22T16:03:46.1953843Z
2023-02-22T16:03:46.1953962Z Thread 7 (Thread 0x7fd6865c3700 (LWP 5509)):
2023-02-22T16:03:46.1954258Z #0  0x00007fd690d7db47 in close () from /lib64/libpthread.so.0
2023-02-22T16:03:46.1954992Z #1  0x00007fd6915ebd3b in pclosefd (fd=<optimized out>, p=0x2d3ce30) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:755
2023-02-22T16:03:46.1955751Z #2  praw_connection_cleanup (prc=<optimized out>, prc=<optimized out>) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll_raw_connection.c:155
2023-02-22T16:03:46.1956517Z #3  0x00007fd6915efd36 in pni_raw_connection_done (rc=0x3acd1c0) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll_raw_connection.c:431
2023-02-22T16:03:46.1957284Z #4  pn_proactor_done (p=<optimized out>, batch=<optimized out>, p=<optimized out>, batch=<optimized out>) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:2734
2023-02-22T16:03:46.1993589Z #5  0x00000000004a6c90 in thread_run (arg=0x2d198b0) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/server.c:1135
2023-02-22T16:03:46.1994005Z #6  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2014778Z #7  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6
2023-02-22T16:03:46.2024051Z
2023-02-22T16:03:46.2024200Z Thread 6 (Thread 0x7fd6875c4700 (LWP 5508)):
2023-02-22T16:03:46.2024534Z #0  0x00007fd690d7a45c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2025180Z #1  0x00007fd6915f117b in suspend (ts=0x2a977b0, p=0x2d3ce30) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:401
2023-02-22T16:03:46.2025944Z #2  next_event_batch (p=0x2d3ce30, can_block=true) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:2490
2023-02-22T16:03:46.2026584Z #3  0x00000000004a6ba6 in thread_run (arg=0x2d198b0) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/server.c:1102
2023-02-22T16:03:46.2026985Z #4  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2027288Z #5  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6
2023-02-22T16:03:46.2031564Z
2023-02-22T16:03:46.2031696Z Thread 5 (Thread 0x7fd6885c5700 (LWP 5507)):
2023-02-22T16:03:46.2032021Z #0  0x00007fd690d7a45c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2064410Z #1  0x0000000000471b09 in sys_cond_wait (cond=cond@entry=0x2ddad90, held_mutex=held_mutex@entry=0x2ddadc0) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/posix/threading.c:81
2023-02-22T16:03:46.2082372Z #2  0x000000000048fe0c in router_core_thread (arg=0x2ddad40) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/router_core/router_core_thread.c:227
2023-02-22T16:03:46.2082845Z #3  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2083142Z #4  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6
2023-02-22T16:03:46.2083307Z
2023-02-22T16:03:46.2083423Z Thread 4 (Thread 0x7fd6855c2700 (LWP 5510)):
2023-02-22T16:03:46.2083710Z #0  0x00007fd68fba6e87 in epoll_wait () from /lib64/libc.so.6
2023-02-22T16:03:46.2084360Z #1  0x00007fd6915f1287 in poller_do_epoll (can_block=true, ts=0x2ccbcb0, p=0x2d3ce30) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:2534
2023-02-22T16:03:46.2085038Z #2  next_event_batch (p=0x2d3ce30, can_block=true) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:2473
2023-02-22T16:03:46.2085676Z #3  0x00000000004a6ba6 in thread_run (arg=0x2d198b0) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/server.c:1102
2023-02-22T16:03:46.2086076Z #4  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2086366Z #5  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6
2023-02-22T16:03:46.2086620Z
2023-02-22T16:03:46.2086736Z Thread 3 (Thread 0x7fd691a0f300 (LWP 5503)):
2023-02-22T16:03:46.2087053Z #0  0x00007fd690d756cd in __pthread_timedjoin_ex () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2087623Z #1  0x00000000004a5b77 in qd_server_run (qd=<optimized out>) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/server.c:1517
2023-02-22T16:03:46.2088460Z #2  0x0000000000427cc7 in main_process (config_path=0x7ffffad8cee6 "TestBadEndpoints.conf", python_pkgdir=<optimized out>, test_hooks=<optimized out>, fd=2) at /home/runner/work/skupper-router/skupper-router/skupper-router/router/src/main.c:109
2023-02-22T16:03:46.2089229Z #3  0x0000000000427819 in main (argc=5, argv=0x7ffffad8b458) at /home/runner/work/skupper-router/skupper-router/skupper-router/router/src/main.c:363
2023-02-22T16:03:46.2089495Z
2023-02-22T16:03:46.2089609Z Thread 2 (Thread 0x7fd6845c1700 (LWP 5511)):
2023-02-22T16:03:46.2089924Z #0  0x00007fd690d7a45c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2090520Z #1  0x00007fd6915f117b in suspend (ts=0x29ea070, p=0x2d3ce30) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:401
2023-02-22T16:03:46.2091157Z #2  next_event_batch (p=0x2d3ce30, can_block=true) at /home/runner/work/skupper-router/skupper-router/qpid-proton/c/src/proactor/epoll.c:2490
2023-02-22T16:03:46.2091786Z #3  0x00000000004a6ba6 in thread_run (arg=0x2d198b0) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/server.c:1102
2023-02-22T16:03:46.2092176Z #4  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2092476Z #5  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6
2023-02-22T16:03:46.2092637Z
2023-02-22T16:03:46.2092751Z Thread 1 (Thread 0x7fd6895c6700 (LWP 5506)):
2023-02-22T16:03:46.2093040Z #0  0x00007fd690d7eb8f in raise () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2110169Z Undefined command: "py-bt".  Try "help".
2023-02-22T16:03:46.2110429Z #1  <signal handler called>
2023-02-22T16:03:46.2110970Z #2  _vflow_find_attribute (record=0x3362750, attr=VFLOW_ATTRIBUTE_OCTETS) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/vanflow.c:197
2023-02-22T16:03:46.2111631Z #3  _vflow_set_int_TH (work=0x2fa0490, discard=<optimized out>) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/vanflow.c:470
2023-02-22T16:03:46.2112271Z #4  0x0000000000476af7 in _vflow_thread (context=0x2ddad40) at /home/runner/work/skupper-router/skupper-router/skupper-router/src/vanflow.c:1216
2023-02-22T16:03:46.2112681Z #5  0x00007fd690d741ca in start_thread () from /lib64/libpthread.so.0
2023-02-22T16:03:46.2112979Z #6  0x00007fd68fab1e73 in clone () from /lib64/libc.so.6

Hit again - centos stream 8, proton 0.38:
https://github.com/kgiusti/skupper-router/actions/runs/4388480916/jobs/7685026995#step:33:53


Add an option to expose the bootstrap function and/or modules

Feature request

What is the expected behavior?
Add the following options to the config: exposeWebpackBootstrap and exposeModules. When set to false Webpack should do nothing. When set to a string, Webpack should expose the boostrap function as follows window[exposeWebpackBoostrap] = arguments.callee and it should expose modules as follows window[exposeModules] = modules via MainTemplate.js.
What is motivation or use case for adding/changing the behavior?
In my scenario I am exposing a local variable to the global scope call it A (constructor). In my plugin I am using a global config which I import with an import statement. But when same plugin gets constructed multiple times with the same constructor it uses the same config for all the instances which is undesired. Alternatively, I can keep passing a local config to every object in my plugin but this increases the coupling between classes which is undesired.
With the bootstrap function and modules object exposed, I can call WebpackBootstrap(Modules) in the constructor of my exposed class to tell Webpack re-run my script. This way on the next instantiation the new plugin will live in a completely new scope and aside from other benefits, the coupling between classes will decrease, and it will allow for the usage of the Singleton pattern without sacrificing the possibility to have multiple instances of the same plugin running in parallel.
How should this be implemented in your opinion?
Add the following options to the config: exposeWebpackBootstrap and exposeModules. When set to false Webpack should do nothing. When set to a string, Webpack should expose the boostrap function as follows window[exposeWebpackBoostrap] = arguments.callee and it should expose modules as follows window[exposeModules] = modules via MainTemplate.js.
Are you willing to work on this yourself?
yes

@sokra Thanks for your answer. Unfortunately wrapping my code in a function in only put the whole context of my application just yet in another code which is not what is tried to be accomplished here. The scope I am talking about spans the whole application and the ONLY way to accomplish having multiple isolated instances of the same program is by re-running the complied script.


Delete build directory

I frequently delete the build directory when re-configuring builds and it creates very noisy git diffs, since the directory is currently tracked.

Coverage: 99.323%. Remained the same when pulling 561cc26b8c85fe6622c861371f5aa96259a2459a on thetic:ignore into fd25857ee8b3dbf7a324eaa400d94c55081fb257 on cpputest:master.


Planning

This issue will detail the tasks we need to complete in order to get an MVP (minimal viable product).
Backend

[x] Main route (/) which will serve static content.
[x] Set up websocket route for communicating with frontend.
[ ] Map drawn out and movement implemented.
[ ] Game mechanics (scoring, progression, etc).
[ ] Multiple connections (might require the introduction of accounts)

Client

[x] Mockup layout for client.
[x] Set up connection with the backend through websockets.
[ ] Handle incoming map and player data.

This issue will detail the tasks we need to complete in order to get an MVP (minimal viable product).
Backend

[x] Main route (/) which will serve static content.
[x] Set up websocket route for communicating with frontend.
[ ] Map drawn out
[ ] Movement implemented.
[ ] mutliple mob types ( 2-6)
[ ] 3-5 more skills
[ ] a leveling system for the player
[ ] getting more skills as the player levels
[ ] clearing mob corpses
[ ] respawning mobs
[ ] Game mechanics (scoring, progression, etc).
[ ] Multiple connections (might require the introduction of accounts)
[ ] security
[ ] deployment to a webserver

Client

[x] Mockup layout for client.
[x] Set up connection with the backend through websockets.
[ ] Handle incoming map and player data.
[ ] security

Backend

[x] Main route (/) which will serve static content.
[x] Set up websocket route for communicating with frontend.
[ ] Map drawn out
[x] Movement implemented.
[x] a leveling system for the player
[ ] getting more skills as the player levels  -> I vote we ditch this, our "bug" is more notorious when the player has many skills that are messed around with. (basically give the player many abilities from the get-go)
[x] clearing mob corpses
[ ] respawning mobs  -> I vote we ditch this. (For the sake of simplicity... we don't have many hours left)
[ ] Game mechanics (scoring, progression, etc). -> I vote we ditch this. (For the sake of simplicity... we don't have many hours left)
[x] Multiple connections (might require the introduction of accounts)


Booting from a disk image?

 I've had some mild fun playing with the basic and monitor prompts (I will never not remember call -151!), but I cannot figure out how to get it to boot from an image.
I tried: mii_emu --default --drive 6:1:disks/dos33master.nib for example (with and without --default). The console says
_mii_disk2_command: drive 0 loading disks/dos33master.nib
disk_format_load loaded disks/dos33master.nib dz = 232960

but it doesn't seem to do anything? It doesn't boot from the disk, and doesn't load the dos commands, etc. If I run the disk list command inside the Mii shell it just says the "ID Card  Name" headers, and lists no disks.
I'm pretty stumped. :-\ Maybe just throw in a couple example command lines in the readme? Especially since you ship with a few disk images.

AH it is what I think is a bug somewhere in my Smartport probing... --default install a DiskII card in Slot 6, and a Smartport card in Slot 7 -- and it tries to boot 7 first, and if there's no disk, it stops... That's wrong it SHOULD then probe slot 6...
Anyway from the proimpt you can boot slot #6 'manually' with PR#6 -- that will work!
Or, remove --default and use -s 6:disk2 instead, that will prevent the smartport card to be installed!.
I'll keep this bug open, because there IS a bug :-)

Got it. Thanks! :D Assigning the slots manually worked. I could not for the life of me remember the PR#6 trick either. There's plenty of Apple ][ info around on the internet, but searching for quick answers doesn't really work. >_> Anyway, thanks! Now I just need to get cc65 set up for ][ some mild C based fun again!

If there is a space in the passed name/path, it does not work. Something like:
./mii_emu -s 6:disk2 -d 6:1:'/home/adamchall/Desktop/Apple DOS 3.3 August 1980.dsk'
or
./mii_emu -s 6:disk2 -d 6:1:"/home/adamchall/Desktop/Apple DOS 3.3 August 1980.dsk"
gives you
_mii_disk2_init loading in slot 6
_mii_disk2_command: drive 0 loading /home/adamchall/Desktop/Apple
Couldn't load/mmap disk /home/adamchall/Desktop/Apple: No such file or directory
It seems at first glance that disk emulation is much slower than a real Apple II, but I could be wrong about that.
I can open these as  seperate issue(s), but as I just started using the emulator , I thought I mention them here first.

It seems at first glance that disk emulation is much slower than a real Apple II, but I could be wrong about that.

Hmm. I kind of noticed that too. I got my real ][e setup again after playing with this, and loading seemed much faster on it. Though I guess I should measure it on the same file or something to be sure.

This report isn't really relevant to 1.5 -- pretty much everything has changed in the startup options, and there is now a UI to pick disks for drives etc...

Still does not work, can not handle spaces passed.


Feature Request: Add support for custom APIs

Apart from the official OpenAI API, there are actually other API providers, such as Azure OpenAI. In some regions where the official OpenAI API is unavailable, they heavily rely on these third-party APIs. Adding support for custom OpenAI keys and domains would play a crucial role in such situations.
There are only a few projects that currently provide this feature, one such example is BetterChatGPT.

I'm sorry I haven't tested the latest version before posting this. I just realized that it now supports Azure's API, which is great. Of course, it would be even more flexible if it could support custom API providers, as there are many similar options available. Nevertheless, it's already a great improvement. Thank you!


Styles Overwritten

I have an issue with styles being overwritten and would like some information on how to fix it.
In a component, I import the Card, and related, components from sveltestrap.
When I add CardTitle to my markup, I see that sveltestrap adds it as a div, rather than the h5 in the bootstrap docs that allows for the proper styling.
To change the styling for all CardTitles in my app, I add a .card-title declaration to global.css. This changes the card title after save. However, if I resave the component file, or a refresh, the styles get lost, and the card title goes back to incorrect styling.
What do I need to do to overwrite these styles, or change the element type?

This was some kind of issue with the compiler caching global.css. Did a hard refresh and it seemed to fix the issue.

We could use h5 as tag, was probably an oversight

https://github.com/bestguy/sveltestrap/issues/78


The CLI tool should support folder structures with lower case

Can you provide an example? The specific scenario that causes problems?


How to type commands specific to 1 ip during broadcast

Im using broadcast to multiple IP's, I can fire same command to all broadcast ip's but how to run particular 1 command to specific ip window during broadcast mode?
Use case is like during broadcast mode just want to run particular command just in 1 IP to know status

You can toggle broadcast mode off and on with alt-shift-cmd-I and shift-cmd-I. Is that what you need?


Fixes Extendo Grips for branch mc1.20.1/fabric/dev

Re-add events and methods for the Extendo Grip's intended durability usage.

merged upwards in https://github.com/Fabricators-of-Create/Create/commit/a8106ac280dc1faa187d73af5a84183faab6bd2e


UndoRedo's do/undo methods can't go further than 5 arguments

Godot version:
b84b015
Issue description:
When using UndoRedo's do/undo methods, the number of arguments can't go further than 5, as anything else will be ignored.
Minimal reproduction project:
The following code will give an error stating that the test() method was only called with 5 arguments.
var _undo_redo := UndoRedo.new()

func _ready() -> void:
	_undo_redo.create_action("test")
	_undo_redo.add_do_method(self, "test",
			true, true, true, true, true, true, true)
	_undo_redo.commit_action()

func test(arg1: bool, arg2: bool, arg3: bool, arg4: bool, arg5: bool,
		arg6: bool, arg7: bool) -> void:
	print(arg1, arg2, arg3, arg4, arg5, arg6, arg7)

Limit is defined in core/object.h. Not sure why exactly 5.
https://github.com/godotengine/godot/blob/8b231b96e347b677ea4189784c960bc4517b8e6a/core/object.h#L45

@Naryosha Then why methods like print() and call() can surpass it?

Both functions don't refer to the VARIANT_ARG_MAX when looping through arguments. I think Object::call used to have the limit but it's overloaded by a newer method. Not sure. Git blame traces back to the beginning of time.

@akien-mga Is there a reason for the argument limit to be 5, or is just arbitrary?

function uses VARIANT_ARG_LIST
its makros "void add_do_method(Object *p_object, const String &p_method, VARIANT_ARG_LIST);"
But I do not know if the engine can work with "va_list".
I do not know the methods that can do any number of arguments.

Just encountered this while developing a plugin. If it's not going to be fixed in the next update, then an error specific to exceeding VARIANT_ARG_MAX instead of just a generic Method expected X arguments, but called with 5. error would be valuable.

Fixed by #54188.


Adding the hostnames camelCasing naming convention for python sdk generation

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

Can one of the admins verify this patch?

@lirenhe @zikalino Per discussion in mail, this PR is duplicated with #8603. So close this one.


WIP [ISV-3979] Properly handle /test commands

@jedinym As we already discussed on the status update this PR won't be needed if we drop prow jobs completely. I created a separate ticket for the re-trigger mechanism. https://issues.redhat.com/browse/ISV-4145


Caffeine error while doing build

Hi I am getting an error while doing build
import com.github.benmanes.caffeine.cache.Cache;
^
bad class file: C:\Users\abcd.gradle\caches\modules-2\files-2.1\com.github.ben-manes.caffeine\caffeine\3.1.1\b08f9f234ae51adf8b7a3dcdfcf115aa258fafcb\caffeine-3.1.1.jar(com/github/benmanes/caffeine/cache/Cache.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

Build-time JDK should be 11+, and Gradle at most 5.x (Gradle 6.x will hit that caffeine mismatch even earlier)


Fixing typos

Hi @4c74356b41, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@4c74356b41 : Thanks for your contribution to the Azure documentation! The author, @narayanannamalai, has been notified to review your proposed change.

#merge-as-is
Ready to merge. #sign-off

Only the author of the article can use the sign off comment to add the ready-to-merge label.

#merge as-is

@NarayanAnnamalai - 4c74356b41 let me know that there were PRs that seemed to be stalled.  Do you know who your pull request approver is?  Can you message your PR approver to merge?

@TerryLanfear sorry to derail this thread, yesterday about 10 of my pr's got approved to merge (most of them by you, thanks!), but still some are kinda old with no activity. Also there are some that you are aware of (with this same person from this thread), but they are not really old, like 2-4 days, thats pretty normal. Btw, he already approved a bunch of my PR's so I'm not worried about those, just telling the whole picrute.
All of the old ones (that appear stalled):
https://github.com/Azure/azure-content/pull/7021
https://github.com/Azure/azure-content/pull/7090
https://github.com/Azure/azure-content/pull/7091
https://github.com/Azure/azure-content/pull/7095
Also there are like 5 of PR's that should be approved by @azdocprs with no signs of activity. All 3 days old (so perhaps not stalled).
And again, thanks for helping me. I don't think my PR's are something that can change the world (or Azure documentation), but you have to start somewherre ;)

@NarayanAnnamalai Hi Narayan. Please resolve the conflicts to enable a merge. Usually, authors of the files are able to fix merge conflicts using the process here on the [wiki](https://microsoft.sharepoint.com/teams/azurecontentguidance/wiki/Pages/Resolve a local merge conflict yourself.aspx). Thanks.

Just a ping ;)

@4c74356b41 . Apologies for the delayed reply. I believe all of your edits were incorporated into the article outside of this PR. If you believe there are still errors, please file a separate PR.
Thank you! #please-close


Option to close a todo and generate the same todo scheduled later

There's a branch where I started this, but it's buggy most of the time and I wasn't able to solve the different problems:

the dialog is often not closing when the user clicks
the recurring parameters are enabled even though it's not supposed to
the task is not marked as done

I can't make sense of this after a few hours, leaving it unfinished and removing it from version 0.16.


If logged with cleos, the page forces to re login when refreshing the page.

Describe the bug
If logged with cleos, the page forces to re-login when refreshing the page.
To Reproduce
Steps to reproduce the behavior:

Login using cleos
Refresh the page
The page presents the login popups for cleos again

Closing this issue because is fixed and merged


cmd/compile: function argument debug_info locations always wrong without GOEXPERIMENT=noregabi

$ go version
go version devel go1.17-5963f0a332 Fri Apr 23 05:38:47 2021 +0000 linux/amd64

For example with https://github.com/go-delve/delve/blob/master/_fixtures/issue573.go, the DIE for main.foo contains this:
    <639c2>   DW_AT_name        : x
    <639c4>   DW_AT_variable_parameter: 0
    <639c5>   DW_AT_decl_line   : 17
    <639c6>   DW_AT_type        : <0x359e0>
    <639ca>   DW_AT_location    : 1 byte block: 9c      (DW_OP_call_frame_cfa)

Giving the location of argument x as DW_OP_call_frame_cfa, however this is not true until main.foo actually copies the argument (which is stored in a register) there:
	issue573.go:17	0x4965a0	4c8d6424e0		lea r12, ptr [rsp-0x20]
	issue573.go:17	0x4965a5	4d3b6610		cmp r12, qword ptr [r14+0x10]
	issue573.go:17	0x4965a9	0f867b010000		jbe 0x49672a
=>	issue573.go:17	0x4965af*	4881eca0000000		sub rsp, 0xa0
	issue573.go:17	0x4965b6	4889ac2498000000	mov qword ptr [rsp+0x98], rbp
	issue573.go:17	0x4965be	488dac2498000000	lea rbp, ptr [rsp+0x98]
	issue573.go:17	0x4965c6	48898424a8000000	mov qword ptr [rsp+0xa8], rax
	issue573.go:17	0x4965ce	48899c24b0000000	mov qword ptr [rsp+0xb0], rbx
	issue573.go:17	0x4965d6	48c744242800000000	mov qword ptr [rsp+0x28], 0x0
	issue573.go:18	0x4965df	488d4c2468		lea rcx, ptr [rsp+0x68]

the argument values aren't correct until 0x4965df and users trying to inspect them will see junk before that point. Delve also uses this information to implement call injection. I can see a few solutions to this:

move the prologue_end marker way down, until after the arguments have been saved. This would mean that call injection is still broken and would have to be disabled but users wouldn't generally see junk inside function arguments.
have callers do the saving to the stack after copying the arguments to registers if -N is specified, I believe this is what C compilers do when optimizations are turned off.
actually have a correct argument list for function arguments where function arguments have a register as location until they are saved to the stack
Have -N imply GOEXPERIMENT=noregabi

IMHO the preferred solution would be (2) or (3) because it makes call injection work and lets users debug something that still has regabi enabled, but I don't know if either is possible given the timeline.
Regarding (4): delve could easily specify GOEXPERIMENT itself when compiling however I think it should be implied by -N: we've been telling users that -N -l is what produces a binary that's easy to debug and with this it would be no longer true. I also don't think -N would be useful to anyone, without GOEXPERIMENT=noregabi.
cc @dr2chase

Hi, thanks for the heads up.
This is a problem we're aware of and actively working on; please stay tuned for developments.
At the moment with -N the compiler is emitting location expressions that describe where parameters would be if the register ABI were not turned on, which is clearly broken.
The tentative plan is to emit a 2-piece location for each register param, the first part in the ABI register and then the stack home for the remainder of the function. For the program you mentioned, the "-l -N" prolog looks like
/home/thanm/issue573.go:17
  47f660:       lea    -0x20(%rsp),%r12
  47f665:       cmp    0x10(%r14),%r12
  47f669:       jbe    47f7ea <main.foo+0x18a>
  47f66f:       sub    $0xa0,%rsp
  47f676:       mov    %rbp,0x98(%rsp)
  47f67e:       lea    0x98(%rsp),%rbp
  47f686:       mov    %rax,0xa8(%rsp)
  47f68e:       mov    %rbx,0xb0(%rsp)
  47f696:       movq   $0x0,0x28(%rsp)

So the plan is to have the location expression for "x" look something like:
    00087e80 ffffffffffffffff<PHONE_NUMBER>47f660 (base address)
    00087e90<PHONE_NUMBER>47f660<PHONE_NUMBER>47f686 (DW_OP_reg0 (rax))
    00087ea3<PHONE_NUMBER>47f68e<PHONE_NUMBER>47f6b9 (DW_OP_fbreg: -168)

or something to this effect.
Debug call injection is a separate issue; on that front we will have to ask for changes from Delve, since the debug call injection interface provided by the runtime has had to change with the regabi.

Ok, sounds good, thank you.

@aarzilli  I've submitted my CLs, so in theory this issue should be fixed now. Let me know if it is ok to close, or if you want to hold it open pending additional testing, that's fine too. Thanks.

There's one last problem that I've found. Formal parameters need to appear inside a function's DIE in the same order as they appear in the argument list. For the most part this does happen however because of $GOROOT/src/cmd/compile/internal/dwarfgen/scope.go:48
sort.Stable(varsByScopeAndOffset{dwarfVars, varScopes})

this isn't always the case:

return arguments are always listed before all input arguments
if the compiler runs out of registers arguments passed on the stack will appear first

OK, thanks. This is not surprising given the various changes in frame offset for registerized outputs, etc. I'll look into sending a patch.

I tried just disabling the sort and it seems to work, but I do not know if the input order can be trusted in all cases (I think it used to be wrong).


Kartaview photos are not displayed anymore on OSM ID Editor

Hi,
Kartaview pictures are not visible anymore on OSM Id-Editor.
I raised this issue on iD github platform (https://github.com/openstreetmap/iD/issues/9075#issue-1202904122), and they answered that the issue could be from your server settings.
Are you able to fix this?
Thank you for your help!

Hey thanks for the report, there are some infrastructure changes recently, the team is fixing this.

Hey this should be fixed already, please check, thanks

Yes it works again

Thank you!


Any planned support for Go?

I noticed that Go wasn't in the list of supported languages: https://learn.microsoft.com/azure/developer/azure-developer-cli/supported-languages-environments
I searched the issues but couldn't find any related discussions around planned support for Go. I also could be bad at GitHub search and not found it for that reason 😅.
Is support for Go as a programming language being considered for the future? My use case is to host a Go application in a Dockerfile and run it on Azure Container Apps.

Hello @seesharprun, there's not an official plan for go.
Can you describe what would it be your user case?  Are you looking for hosting a backend service?  or are you using some go-eco-system like buffalo for your entire app?
As an alternative, you can use Azure Container Apps to host a go service and have azd to do the deployment end2end.
Here's a repo with an example: https://github.com/vhvb1989/goaca
Basically, when working with Azure Container Apps, it doesn't really matter what's the language you set for azd on azure.yaml, you can control how to build your container from your Dockerfile and your sourcecode. So, this is an alternative which you can use to support any language, running your service in a container.
Would Container apps work for your scenario?  or are you looking for Azure WebApps to host your service?
We have this 2 related issues:
https://github.com/Azure/azure-dev/issues/2935
https://github.com/Azure/azure-dev/issues/1891
There's already some interest from folks to break the dependency on a laguage when containerapp is set as a host.

ACA is my preferred solution and it's good to see that there are other related issues to allow ACA without a language specified. That's enough for me to close this issue.
Thanks!


Typo in standalone installation guide

There is a typo in the README.md file in the third point of Stand-alone install:

phpcs --config-set installed_paths /path/to/Symfony2-coding-standards

instead of:

phpcs --config-set installed_paths /path/to/Symfony2-coding-standard

Thanks for spotting this @clem!
Kind regards,
David


Implement index hiding

With this change user can disable index on every page but the module one (as it has nothing but the index). It's useful with e.g. Docusaurus where index is autogenerated by Docusaurus itself.

Updated with ifCond.


Update log4j shade plugin to log4j-maven-shade-plugin-extensions

The dependency has been moved by author to https://mvnrepository.com/artifact/io.github.edwgiz/log4j-maven-shade-plugin-extensions
Description of changes:
Updated pom.xml as per documentation at https://github.com/edwgiz/maven-shaded-log4j-transformer
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks for the PR. The sample has been updated and no longer uses this transformer.


add template for purchase list

Checklist

[x] This PR targets the main branch.
[x] The commit message is written in past tense.
[ ] I have added or updated relevant tests.
[ ] I have added or updated relevant docs, including release notes if applicable.
[x] For UI changes, I have attached screenshots

Have to align button and title in straight line


Question: how to customize index formatter timezone of elasticsearch storage

By default, it is using UTC. New index created at 8:00 am for asia/shanghai zone.
We hope it created at midnight. So how to customize timezone?
Thanks.

I think most people set their timezone on servers to UTC often the
operating system, but also possible at JVM launch I think. we don't plan to
support misalignment with UTC as it is quite common server setup and
everything in the code assumes this.
On Tue, 25 Sep 2018, 00:19 AddoZhang<EMAIL_ADDRESS>wrote:

By default, it is using UTC. New index created at 8:00 am for
asia/shanghai zone.
We hope it created at midnight. So how to customize timezone?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/zipkin/issues/2194, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD61wTx7t57VgeUGhrrXaeHse8ha_nkks5uea7sgaJpZM4W31vr
.

closing for now, basically the areas are around the following:
Index creation and span name lookup is based on zipkin2.elasticsearch.internal.IndexNameFormatter. There may be other places, but this is likely where it is. In worst case you can make a copy of this file and change the timezone.. then place it in the front of your classpath.
If we get demand to have this as a normal option we'd need to have integration tests etc to show that it works, but above might work for you right now..


Updates to work with Blazor 3.0.0-preview4

Minimal changes to get it working with Blazor 3.0.0-preview4.

Thanks again @DanielCarmingham! Reviewing/merging soon!

Just a note with this and other projects you're updating, component libraries should probably be updated to the new Blazor Library template (where possible).
Microsoft.NET.Sdk.Web -> Microsoft.NET.Sdk.Razor
Remove <OutputType>
Add <AddRazorSupportForMvc>true</AddRazorSupportForMvc> (To be removed in next preview version)
Remove any Microsoft.AspNetCore.Blazor.* references and change it to a single Microsoft.AspNetCore.Components.Browser

Added another commit with the changes recommended by @Hawxy to make it more similar to the blazorlib templates:

Microsoft.NET.Sdk.Web -> Microsoft.NET.Sdk.Razor
Remove <OutputType>
Add <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Replaced Remove Microsoft.AspNetCore.Blazor.* references with single Microsoft.AspNetCore.Components.Browser reference

Although these don't provide any direct benefit here, I added these to be consistent with the blazorlib template.  (I find it makes it easier to upgrade between Blazor releases when you can easily see the changes.)

Added <LangVersion> <RazorLangVersion> <RestoreAdditionalPackageSources> as are in the blazorlib template.

If you'd rather pull these out, just let me know, I could go either way on this...
Thanks,
Daniel

@DanielCarmingham thanks again for doing this.
Can you do me a favor and let me know on all the PRs you made when it is done for review?
Thank you!

@galvesribeiro Yeah, sorry about that.  My initial attempt was to do as little as possible to get them working on 3.0.0-preview4.  However, as @Hawxy pointed out, there are some things that, even though they work, aren't quite right.
This one is ready for review.  I'll comment on the other repos individually.  THANK YOU for your efforts on these projects and for taking the time to review my PR.  I sincerely appreciate it.
Thanks,
Daniel

Thank you @DanielCarmingham !!!

@galvesribeiro We're still missing the nuget update.

The updates for all the packages will come tonight. I need to reset the NuGet key on all Azure Pipeline build servers so it can push the packages (they expired). Hang on!


fix: enable python3 %check tests

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] Ready to merge

Summary

Run python3 regression test suite during the %check section.
Signed-off-by: Chris Co<EMAIL_ADDRESS>Does this affect the toolchain?

YES
Associated issues

Links to CVEs
Test Methodology

Pipeline build id: 532346

for some reason the arm build is still going on

for some reason the arm build is still going on

It looks like there was an error failing to initilize the ccache manager
time="2024-03-21T16:33:02Z" level=info msg="* Creating a ccache manager instance *"
time="2024-03-21T16:33:02Z" level=info msg="  ccache root folder         : ()"
time="2024-03-21T16:33:02Z" level=info msg="  ccache remote configuration: ()"
time="2024-03-21T16:33:02Z" level=warning msg="Failed to initialize the ccache manager:\nCCache root directory cannot be empty."
time="2024-03-21T16:33:02Z" level=info msg="Building (python3-3.12.0-3.azl3.src.rpm)."
time="2024-03-21T16:33:02Z" level=error msg="Failed to build SRPM '/mnt/vss/_work/1/s/build/INTERMEDIATE_SRPMS/python3-3.12.0-3.azl3.src.rpm'. For details see log file: /mnt/vss/_work/1/s/build/logs/pkggen/rpmbuilding/python3-3.12.0-3.azl3.src.rpm.test.log ."
time="2024-03-21T16:33:02Z" level=panic msg="chroot directory (/mnt/vss/_work/1/s/worker/chroot/python3-3.12.0-3.azl3_TEST_BUILD) already exists"

Not sure why this happened.
Requeued version passes - https://dev.azure.com/mariner-org/mariner/_build/results?buildId=533051&view=results


Clickable Status links should be either Black or URL Blue and standard text should be grey

The current way the status links are set up is the exact opposite of modern web design standards and is thus unintuitive.

Fixed in https://github.com/Starz0r/AreWeAntiCheatYet/commit/bb8cf6a7147b9c8d7bb8042612ee8c4b1e931c13!


'R' Train Data

Is there a bug retrieving the data for the R line or is it due to MTA not providing the data? I made few queries with no response on the R line stations.
Thanks

Hey @Asher978 what stop were you trying to request data for? I have experienced some issues with requesting data from lines that are in Beta.

In specific it was the 'R' train. Response kept coming empty for any of 'R' train Stops. I am thinking it probably is the MTA feed not an error on this API. But i would like clarification so i can move forward.


"Locking" abstraction API

Goal: To hide the details about Enterprise / Opal / Ruby etc. and provide a way to access locking ranges both for administrative (enable, disable, modify) and for user (lock / unlock).
Suggestions:
github.com/bluecmd/go-tcg-storage/pkg/locking
locking.Initialize(d DriveIntf, adminAuth []locking.Authenticator, opts ...InitializeOpts) *ControlSession, SPID, error
Ensures that the TPer is set up and has an enabled Locking SP.
Returns the first available Locking SP and a ControlSession.
locking.NewSession(*ControlSession, SPID, auth locking.Authenticator, ..core.SessionOpts) *Locking, error
Creates a new Locking session to the specified Locking SP with the given Authority credentials.
type LockingSP struct {
  Session *Session
  // All authorities that have been discovered on the SP.
  // This will likely be only the authenticated UID unless authorized as an Admin
  Authorities map[string]core.AuthorityObjectUID
  // The full range of Ranges (heh!) that the current session has access to see and possibly modify
  GlobalRange *Range
  Ranges []*Range // Ranges[0] == GlobalRange

  // These are always false on SSC Enterprise
  MBREnabled bool
  MBRDone bool
}

func (l *LockingSP) Close() error

func (l *LockingSP) SetAuthorityPIN(auth AuthorityObjectUID, pin []byte) error

// ErrNotSupported on Enterprise
func (l *LockingSP) SetAuthorityEnabled(auth AuthorityObjectUID, enabled bool) error

// Only Opal
func (l *LockingSP) SetMBRDone(v bool) error

// Only Opal
func (l *LockingSP) SetMBREnabled(v bool) error

type LockRange int
var LockRangeUnspecified LockRange = -1

type Range struct {
  l *Locking
  isGlobal bool

  UID RowUID
  // All known authoritiers that have access to lock/unlock on this range
  // Only populated with other users if authenticated as an Admin
  // For enterprise this will always be just one user, the band-dedicated BandMasterN for RangeN
  Users map[string]core.AuthorityObjectUID

  From LockRange
  To LockRange

  ReadLockEnabled bool
  WriteLockEnabled bool

  ReadLocked bool
  WriteLocked bool

  LockOnReset SomeType /* TODO */
}

func (r *Range) UnlockRead()  error
func (r *Range) LockRead()  error

func (r *Range) UnlockWrite()  error
func (r *Range) LockWrite()  error

func (r *Range) SetWriteLockEnabled(v bool)  error
func (r *Range) SetReadLockEnabled(v bool)  error

// Will fail if range is the Global Range
func (r *Range) SetRange(from LockRange, to LockRange)  error

func (r *Range) SetLockOnReset(.. /* todo */) error

// Only supported on SSC Enterprise probably
// Might be able to implement using GenKey (see "3.1.7 Erasing a range" in TCG Storage Application Note")
func (r *Range) Erase() error

// Grant access to specified user for this range
// Will fail with ErrNotSupported on Enterprise
func (r *Range) GrantUserAccess(auth AuthorityObjectUID) error
func (r *Range) RevokeUserAccess(auth AuthorityObjectUID) error

Example usage:
auth, ok := locking.AdminAuthoritySID([]byte{}) /* or */ locking.AuthorityFromName("admin1", []byte{})
// or
auth, err := locking.DefaultAdminAuthority /* MSID */

cs, spid, err := locking.Initialize(d,
    []Authenticator{auth},
    locking.WithHardening() /* enable hardening like FIPS mode */,
    locking.WithTakeOwnership([]byte{}) /* set the SID proof to given bytes */)
defer cs.Close()
l, err := locking.NewSession(cs, spid, auth, secret)
defer l.Close()

for _, r := range l.Ranges {
  r.UnlockRead()
  r.UnlockWrite()
}
r.SetMBRDone(true)

/* Change SID */
_, _, err := locking.Initialize(d,
    []Authenticator{auth},
    locking.WithTakeOwnership(newSid) /* set the SID proof to given bytes */)

This has more or less been implemented now. The things left to do is the user/admin management stuff / ownership and lockdown.


Add UI for toggle cron status

What kind of request is this (question/bug/enhancement/feature request):
Feature Request
Steps to reproduce (least amount of steps as possible):

Create a cron job
Try to set .spec.suspend to disable it via UI

Result:

You can toggle its status without needing to edit YAML

Other details that may be helpful:
We often perform system maintenance and would like to be able to easily disable the crons via Rancher, rather than editing YML

Version - 2.2 master 11/14
Verified fixed


Is WatsonTcpServer threadsafe ?

Is WatsonTcpServer safe ? Is it safe to call WatsonTcpServer.Send(...) from different threads safe ?

Hi, yes it is.


[Workspace Feeds] [External] Add logic for the disabled toggle

Part of the Workspace feeds project.
Implement the following part of the design doc.
@koko57 @VickyStash @allgandalf @DylanDylann

Hi, I'm Nicolay from Callstack - expert agency - and I would like to work on this issue.


Update build flags for lua (Fix #217)

With theses flags, we can now compile with older and newer version of Ubuntu. I tested with Ubuntu 14.04.3 and CoreOS. :-)
If anybody can test with Mac OSX and others OS ;-)

Cool @Aurlin
I will check it later.

Hi @Aurlin
I test in my mac and find it works. I will merge it.
we will re-discuss this if anyone meets compile error later :-)
Thank you.


Custom ISO serializer for DateTime

Hi, we're currently trying to parse a date time in ISO format.
On the server the scalar name is DateTime
build.yaml
targets:
  $default:
    builders:
      ferry_generator|graphql_builder:
        enabled: true
        options:
          schema: package:my_app|lib/schema.graphql
          type_overrides:
            EmailAddress:
              name: String
            DateTime:
              name: DateTime
          custom_serializers:
            - import: "package:my_app|lib/utils/date_time_deserializer.dart"
              name: DateTimeSerializer

      ferry_generator|serializer_builder:
        enabled: true
        options:
          schema: driver_app|lib/schema.graphql
          type_overrides:
            DateTime:
              name: DateTime
              import: package:my_app|lib/utils/date_time_forward.dart

Unfortunately our date_time_serializer never gets used, could anyone lend some support?

here's an example of your use case:
https://ferrygraphql.com/docs/custom-scalars

@knaeckeKami That isn't working for us.
We don't want to override the type and still want to use DateTime from dart:core.
We just want to serialize it differently.
Am I missing something?

no worries, glad i could help


setup new formula pbzx

setup a new formula to install pbzx

first issue when attempting to install new formula pbzx,
╰─λ brew install pbzx
Warning: pbzx has been deprecated because it has an archived upstream repository! It will be disabled on 2025-03-13.
pbzx: macOS is required for this software.
Error: pbzx: An unsatisfied requirement failed this build.

#33


cargo::Builder::quiet is too coarse

quiet prevents "header" messages: https://github.com/trailofbits/dylint/blob/1ffeac5a5cbb3cafcded75e2e0d693435e24860d/internal/src/cargo.rs#L107-L109
quiet also prevents constructed commands from writing to stderr: https://github.com/trailofbits/dylint/blob/1ffeac5a5cbb3cafcded75e2e0d693435e24860d/internal/src/cargo.rs#L140-L142
In dylint/src/metadata/cli/mod.rs, we don't use quiet because we want allow writing to stderr: https://github.com/trailofbits/dylint/blob/1ffeac5a5cbb3cafcded75e2e0d693435e24860d/dylint/src/metadata/cli/mod.rs#L245-L246
But this then creates unwanted "header" messages.

Fixed by #1025


[2.0.2] en: add two keepalive config in worker config file

What is changed, added, or deleted? (Required)
Add two keepalive config in worker config file.
Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v3.0 changes)
[x] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from: https://github.com/pingcap/docs-dm/pull/567
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Need modification after applied to another branch
[ ] Might cause conflicts after applied to another branch

/lgtm

/run-cherry-picker


MNIST target_transform

In the MNIST dataset the target is a label (not a PIL image). Hence trying to do a target_transform wouldn't really work right?
https://github.com/pytorch/vision/blob/13d1a6cc955ca9a49f240a99b44ddcc8a685efbc/torchvision/datasets/mnist.py#L67-L82
Shouldn't we get rid of the target_transform input?
Alternatively we could do the following if there is a target_transform:
    def __getitem__(self, index):
        """
        Args:
            index (int): Index
        Returns:
            tuple: (image, target) where target is index of the target class.
        """
        if self.train:
            img, target = self.train_data[index], self.train_labels[index]
        else:
            img, target = self.test_data[index], self.test_labels[index]

        # doing this so that it is consistent with all other datasets
        # to return a PIL Image
        image = Image.fromarray(img.numpy(), mode='L')

        if self.transform is not None:
            img = self.transform(image)

        if self.target_transform is not None:
            target = self.target_transform(image)

        return img, target

My understanding is that transforms are just callables and not restricted in their input/output types.  So target_transform on the MNIST dataset could be something that takes in an integer and outputs a onehot tensor or something like that.  I think it is nice symmetry, and they just haven't included any transforms (in torchvision.transforms) that aren't image related.


Error while loading a zip file ("can't read the data...")

Hallo,
I'm trying to use this package to enable the users of my website to upload a zipped .shp file.
For this purpose i have a file-Input where the user can choose the file.
out of this fileList i then get the arrayBuffer and hand that to the shp function. But when i do this I get the following error:

This is my code:
let inputFile = document.getElementById("uploadFile");
let buffer = inputFile.files[0].arrayBuffer();
shp.parseZip(buffer).then((geojson) =>console.log(geojson));
Where am I wrong or is there another problem?
Notice: I'm on a localhost server for developing purposes.

Okay I solved the problem by myself.
The problem was that I did not enter the result of the buffer-Promise but the Promise to the shp function.
So my new code is:
let inputFile = document.getElementById("uploadFile");
inputFile.files[0].arrayBuffer().then((bufferResult) => {
  shp.parseZip(bufferResult).then((geojson) => console.log(geojson))
});


'AWS_PROFILE' AssumeRole fails when the credential source is Ec2InstanceMetadata

Using Ec2InstanceMetadata as the credential_source for an AWS profile is handled incorrectly when said profile is referenced in SST commands. For example, running AWS_PROFILE=sandbox sst deploy --stage test, with the following profile in the ~/.aws/config:
[profile sandbox]
role_arn = arn:aws:iam.../SandboxAdmin
region = eu-west-2
credential_source = Ec2InstanceMetadata

will fail with the following:
Preparing your SST app
Deploying stacks
AccessDenied: User: arn:aws:sts::0...9:assumed-role/GitlabRunner/... is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:eu-west-2:... because no identity-based policy allows the cloudformation:DescribeStacks action

The above error indicates the assume role isn't being handled correctly given it still tries to use the GitlabRunner IAM role, not the sandbox profile, and this ~/.aws/config works as expected with the same IAM role in our other CICD pipelines.

Hey @pierswilliams, I put in a fix and cut a beta release 0.61.2-next.5. Can you give it a try and let me know if it works for you?

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


Runtime exponential in number of copies of unused variables

Prerequisites
Please put an X between the brackets as you perform the following steps:

[X] Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues
[X] Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries.
[X] Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)

Description
When adding copies of a propositional parameter, which depends on a large proof term of a specific form, to a theorem, the running time of exact sorry seemingly increases exponentially.
Context
See https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Performance.20issue
Steps to Reproduce
def help (A : Type) : ([] : List A).length % 1 = 0 → Prop := fun _ ↦ True
set_option profiler true

--the running time of "exact sorry" seems exponential in the number of h1
theorem slow {A : Type} (p : Bool)
  (h : ∀ (hp : ([] : List A).length % 1 = 0), help A hp → help A hp)
  (h1 : help A (by cases p <;> omega))
  (h1 : help A (by cases p <;> omega))
  (h1 : help A (by cases p <;> omega))
  (h1 : help A (by cases p <;> omega))
  (h1 : help A (by cases p <;> omega))
  -- (h1 : help A (by cases p <;> omega))
  -- (h1 : help A (by cases p <;> omega))
  (hp : ([] : List A).length % 1 = 0) : help A hp := by
  refine h (by cases p <;> omega) ?_
  exact sorry
--the issue disappers after removing some of the "cases p",
--or replacing "omega" by "simp"
--or replacing A by ℕ
--or replacing "exact sorry" by "exact trivial"

A variant crashing the VS Code infoview is
def help (A : Type) : ([] : List A).length % 1 = 0 → Prop := fun _ ↦ True
set_option profiler true
set_option diagnostics true

example (A : Type) (p : Bool) : ([] : List A).length % 1 = 0 := by
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  -- let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  -- let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  -- let h1 : ([] : List A).length % 1 = 0 := by cases p <;> omega
  omega
--also, replacing let by have fixes the issue

Expected behavior: The running time is linear or at least polynomial in the number of copies of h1.
Actual behavior: The running time seems exponential in the number of copies of h1.
Versions
4.11.0-rc2
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

Quick analysis: each omega seems to introduce a rewrite (Eq.ndrec) with (at least) the previous hypothesis, which in the rewrite's motive embeds the hypothesis' full type including its own omega proof term, which has a rewrite of... etc. pp. As this is done twice due to the cases, the full proof term size is exponential, choking CheckAssignmentQuick.check.
I don't know if it is realistic to hope that omega could avoid this rewrite (/cc @semorrison). In general, it is certainly best to avoid filling in proof arguments of functions like help with expensive (big proof-producing) tactics like omega.

Can let-binding the large proof terms in a suitable place help to avoid the duplication?

Can let-binding the large proof terms in a suitable place help to avoid the duplication?

If I understand you correctly, I was thinking of something similar: There is a discussion in https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/count_heartbeats.20CPU.20usage

omega is a red herring here, we see the same exponential behaviour with just:
#time
example (A : Type) (p : Bool) : ([] : List A).length % 1 = 0 := by
  iterate 20 let h1 : ([] : List A).length % 1 = 0 := by cases p <;> sorry
  sorry

(For k = 10, 20, 30, 40, this takes 0.1s, 2.5s, 21s, 180s, so it is indeed exponential: every three iterations doubles the time.)


Retry failing tests with flaky statuses

As part of the gardening effort, we're adding a lot of flaky statuses to the status files, e.g. "Pass, Timeout", "Pass, RuntimeError", etc.. One thing we might do to avoid missing consistent failures in these tests, rather than flaky failures, is to re-run them when they fail. If we re-run them, say, 5 times and never see a successful run in those 5 times, the test should be reported as failing, and the buildbot should turn red.

I don't think we should even have tests like this in the code base. Marking test "Pass, Timeout" is like sweeping the issue under the rug. Instead of rerunning tests we should work towards cleaning status files from these expectations.

@mraleph I agree, but that sounds like a longer-term effort. At the moment, there is no notification that a test with a flaky status marker is failing on every run. That is, there is no notification if a change causes a test marked "Pass, Timeout" or "Pass, RuntimeError" to go from passing most of the time to failing all of the time. Until we get rid of the flaky statuses altogether, we should have some way of signaling consistent failure.


Suggesting to add the SAP Cloud Platform

I think SAP also has a simple sign up process to get a Cloud Foundry runtime and offers a free trial.
Please let me know what you think.

@spgreenberg  @christopherclark WDYT?

@IObert Can you add the correct MySQL service name and plan here: https://github.com/cloudfoundry-tutorials/trycf/blob/main/content/docs/provisioning.md

Many thanks!
I created PR #2


Temporary fix for Firefox

Apologizes about the code, I've never written Haskell.
This gets Firefox to use our notification server, instead of it's own popups. Map.delete "image-data" hints is a temporary fix because this hint contains the raw image data, which eww doesn't like (I think). Really, we need to write this image-data to a temporary file, then give that file path to eww, and finally delete the file when the notification is closed. But that sounds extremely annoying.

Thanks for the PR, LGTM. Good point about the image-data, I will have a look. The temporary file approach should be doable, the most annoying part will probably be to convert the DBus image format into something readable by eww.


Clarification - RPO for Hbase replication under Leader-Follower model

The article talks to how Hbase replication uses Leader-Follower model and RPO is zero.
However, the link referenced for Leader-Follower model explanation reads that RPO is "very low" and not zero. Can you please update the statement and change it to RPO is very low and not zero.
Thanks.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3bef6b42-c95e-fdc6-7313-4b562184899c
Version Independent ID: 5df3a1cc-82ad-fdb2-b9de-24dfe0042bad
Content: Azure HDInsight highly available solution architecture case study
Content Source: articles/hdinsight/hdinsight-high-availability-case-study.md
Service: hdinsight
GitHub Login: @hrasheed-msft
Microsoft Alias: hrasheed

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

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

@hrasheed-msft Could you please review further and update the document as appropriate?

@hrasheed-msft Could you please review further and update the document as appropriate?

#re-assign @arnabganguly

#re-assign @arnabganguly

@arnabganguly Could you please clarify if the RPO is "zero" or merely "very low"?

@arnabganguly Could you please clarify if the RPO is "zero" or merely "very low"?


Support banned phrases / strings list

Right now we do some auto deletions, but these still show up in notifications (we can delay notifications by 5 min too)

Don't delay notifications. I talk to people in comment section. And we use it almost as a chat. Maybe if the word is banned it would not let send the comment from the UI. Telling a little message. "The account has blocked sending words like: ..."


just a grammatic correction

Thanks for the contribution! However, this is a read-only mirror. please read the contribution guide. Also, feel free to join us on chat!


Do not assume the vert.x context will never switch threads legally

Relates to https://github.com/quarkusio/quarkus/issues/32533#issuecomment-1505639669

@tsegismont hi :)
I'm not sure if it relates to vert.x versions - we've had several users repor that my assertions would trigger; but the few reproducers we got would do some illegal stuff with threads leading me to think the assertion was just doing its job, but I wonder now if I underestimated those reports as there have been a number of them around this same theme.
The reproducer at https://github.com/quarkusio/quarkus/issues/32533 is straight forward and triggered it; we further simplified it (e.g. remove Panache and the background timers) and it's still triggering, and I observe that an operation running on an event loop context does indeed occasionally shift to a different event-loop-thread.
I didn't expect that to be a possibility (hence my assertion) but I suppose there could be valid reasons (e.g. load-balancing of eventloops?); please let me know if it's totally unexpected.
I can see according to https://vert-x3.github.io/advanced-vertx-guide/index.html#_dealing-with-contexts that it might not be expected, but I'm not sure if I'm interpreting the doc accurately.
I have not been able to pinpoint how/when this happens, and it puzzles me that we never observed this behaviour in other load tests (aka Techempower), so we certainly need to look better - but I won't be able to get to this today (and Davide is off). At very least I'd like to know why it doesn't ever happen on Techempower benchmark runs.
In short, the issue might have been there in older versions of vert.x too - if not, that might explain why Techempower works fine as I've not upgraded it in a while, but only if you confirm this is totally unexpected from a vert.x point of view.
Thanks!

Converting to draft - best to understand it better first.

I verified the status with techempower: assertions don't trigger. Now I'm puzzled, really need to figure it out

I suggest to increase the number of event loop, decrease the capacity of the database connection pool, and increase the number of http connected clients: in this way some of the dB connections will be assigned to a "wrong" event loop causing cross-talk between the http end point event loop to the borrowed connection db one, and back.
Did makes sense @tsegismont ? There is a way to force the dB connection pool to get into the slow path of connection acquisition?

@Sanne @franz1981 I found the problem and filed this: https://github.com/hibernate/hibernate-reactive/issues/1595
I don't know which particular techempower benchmark you are talking about in previous comments, but I suppose it doesn't use ID generation with sequence or table.
Also, @jponge has brought https://github.com/quarkusio/quarkus/issues/32665 to my attention today. This is another problem: persist is invoked on worker which seems no longer tolerated by HR.

@Sanne @franz1981 I found the problem and filed this: #1595

Awesome work!

I don't know which particular techempower benchmark you are talking about in previous comments, but I suppose it doesn't use ID generation with sequence or table.

You're right, our existing load tests don't use ID generation - that explains it.

Also, @jponge has brought quarkusio/quarkus#32665 to my attention today. This is another problem: persist is invoked on a worker thread which seems no longer tolerated by HR.

I've noticed the issue - in theory this was never tolerated.

So I'll close this as removing the assertions is not the right approach. We'll continue with https://github.com/hibernate/hibernate-reactive/issues/1595


I couldn't worked it out with PhoneGap for my project

basically I added 3 .js treo files in the dist directory into my js/vendor/shim as below,

but it returns me the error below that 'schema' not defined. How can I surpass this?

Many thanks in advance..

@erhanyasar you need to define the schema for your database - take a look at the example in the README https://github.com/treojs/treo#example
var treo = window.treo

// define db schema
var schema = treo.schema()
  .version(1)
    .addStore('books', { key: 'isbn' })
    .addIndex('byTitle', 'title', { unique: true })
    .addIndex('byAuthor', 'author')
  .version(2)
    .getStore('books')
    .addIndex('byYear', 'year')
  .version(3)
    .addStore('magazines')
    .addIndex('byPublisher', 'publisher')
    .addIndex('byFrequency', 'frequency');

// open db
var db = treo('library', schema);

Actually I have doubts how to implement the above code to my project. I'll need some advise I guess, it will not be a solely solution to copy it to my project @unkillbob

@erhanyasar perhaps you need an introduction to IndexedDB? I did an introductory presentation on IndexedDB and treo a couple of years ago, here's my slide deck https://unkillbob.github.io/indexeddb-treo-presentation/ - its probably not much help without the corresponding presentation but hopefully it helps a little. If not perhaps see if you can find a decent blog post or online course on IndexedDB.

Tx for your time and real friendly hand, I'm digging into IndexedDB with a couple of source hence your link is just opens and stay with the screen below fyi. Have a nice day!

your link is just opens and stay with the screen below fyi

Oh sorry I should have explained, you can navigate the presentation with the left & right arrow keys!

@unkillbob hello again, it's been months and I'm still searching for it; hence not found a solution yet. Issued same with IndexedDBShim/issues/#260 so that waiting for a clue.


Fill config.md automatically

I just tried out the package. Thanks for the awesome work!
One thing I think would be awesome is to fill some parts of the config.md automatically like:

github_repo
title
authors
prepath (whatever that actually is :D ) is that the folder name of the package?
docs_url would be the github repo stable docs (would not work for a custom domain)

This could be done with https://github.com/JuliaPackaging/Git.jl which is an old package so maybe not the best thing. Or using run commands to call git directly. Not too sure whether that works in Windows :/
To be save it's done in a try catch block such that nothing breaks.
Ah yeah some of the information can be taken from Project.toml
If interested I would work on a PR.

I'm unclear on whether Git.jl would be more appropriate than JuliaLang/TOML.jl?
also we'd need fallback stuff in case there's no project.toml available etc.

We don't get the github_repo and docs_url from that, right?

It's a good feature, if you want to work on it. You may also want to see how PkgTemplates handles custom parameters on initialization.

So I still think it's a good idea, but now basically it needs something that catches the stuff from the PkgPage/page at the moment of writing them in newpage but it has to be done in the process (can't be done in the source page).
basically it'll be a bunch of
s = read(joinpath(store, "config.md"), String)
s = replace(s, r"@def(\s+)authors(\s*)=\s*\".*?\"" => SubstitutionString("@def\1authors\2= \"$authors\""

I'm not sure I get the new idea so just to be sure:
You define authors in newpage either by a given parameter from the user maybe or using the approach I took with LibGit2 and TOML? but replace it there directly instead of changing the config.md file?

right so you can't rely on the trick {{...}} anymore because the source file is the config file used on our actual page.
At the moment newpage copies files from PkgPage.jl/page among which config.md.
I'm suggesting not copying over config.md and rather capturing it's content, replacing what you can with information you get from ambient TOML or whatever and then writing config.md with these imputed values.

Oh I see the reason now. Thanks for clarification

Then I would probably create three dictionaries. One TOML one Git and one default and use.
merge(default, toml_dict, git_dict).

iterate over the keys in replace

btw this could probably be extended to get the DeployPage.yml file automatically adjust to the path of the source (atm it's hard coded to page and the instructions say that you have to change that yourself but it could also be done automatically by doing the same kind of procedure with DeployPage.yml)


Switch from X-Auth-{Email,Key} to Authorization for Cloudflare

https://api.cloudflare.com/#getting-started-requests

API Tokens provide a new way to authenticate with the Cloudflare API. They allow for scoped and permissioned access to resources and use the RFC compliant Authorization Bearer Token Header.

This PR LGTM. I'm going to give it a whirl with a new API token on Jekyll's DNS.

Thanks for this fix. Tested it and works for me.
What has to be done to get this merged?

What has to be done to get this merged?

Looks like there's some python2/3 issues since this PR predates that work. After that if CI is passing we'd need to make a pass through the code for final review and ship if it's there.

I'd really love to see this merged, but I'm afraid I'm not sure how to approach the Python 3 CI errors. @mamercad, are you able to grok the failures? They appear to come from the new test file you added.

Busy with $DAYJOB lately, I’ll try and have a look this weekend.

On Feb 14, 2020, at 13:57, Parker Moore<EMAIL_ADDRESS>wrote:

I'd really love to see this merged, but I'm afraid I'm not sure how to approach the Python 3 CI errors. @mamercad, are you able to grok the failures? They appear to come from the new test file you added.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

High level it doesn't really make sense to copy the full Cloudflare provider tests just to test the no email case since all of the auth bits are stubbed out anyway. There were a number of Python 3 fixes in that file and looks like this PR happened prior to that. I'll push up a commit shortly that should get things working.

Thank you so much, @ross!

Thanks much @ross!


chore(derive): Re-export types

📚 $\text{Stack Overview}$
Pulls submitted in this stack:

#790 👈
main

This comment was automatically generated by st.


Fixed signing & auto update on Mac build.

Fix for #546
====

Fixed signing for Mac.
Minor changes to auto update UI & flow
Removed redundant / unused code in mac and windows build processes
Fixed some issues with nightly versioning

There is a currently known issue on Mac with<EMAIL_ADDRESS>that prevents electron from quitting and installing the update after downloading. So I downgraded to 3.0.3.
https://github.com/electron-userland/electron-builder/issues/3269

Pull Request Test Coverage Report for Build 982

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 51.247%

Totals

Change from base Build 954:
0.0%

Covered Lines:
3913

Relevant Lines:
6855

💛  - Coveralls


Import Error in Sphinx Documentation

Currently, I am not able to build our documentation on alfredo3 from the newest repository version of alfred. I receive the following error message:
Running Sphinx v5.3.0

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/alfred/.virtualenvs/alfred3/lib/python3.7/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/alfred/alfred/docs/source/conf.py", line 93, in <module>
    from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter
ImportError: cannot import name 'InstanceAttributeDocumenter' from 'sphinx.ext.autodoc' (/home/alfred/.virtualenvs/alfred3/lib/python3.7/site-packages/sphinx/ext/autodoc/__init__.py)

Since we did not change the Sphinx config, I assume that there might be a module version conflict. I updated sphinx, recommonmark, and the book theme to their current versions while updating alfred3. This might have caused the issue, but I am wondering whether there were any changes required in the conf.py for newer Sphinx versions? Researching the issue, I did not come up with any suggested solutions. What is the best course of action here? Trying to downgrade Sphinx?

As suspected, downgrading Sphinx to version 4.5.0 solved the issue. It seems that there was an incompability between the newer Sphinx core and some older extension versions.


Escape quotes in JSON fields

Currently we generate invalid JSON if you use double quotes in a description.
/cc @jmeas

Nice :+1:


Could not able to pass props to the child component on initial load.

I am using react in my frontend application and trying to pass down the props to the child component . However, I am not able to pass the props on initial load. On initial load, xprops on the child component is coming as empty object. And when I refresh the page, I am able get all the props on the child component. I am using zoid version @9.0.43 and my chrome version is 89.
What could be the issue??

Weird. Can you check the window.name value in the iframe?


Merge various bugfixes from recastnavigation

There have been a few compiler / bugfixes from RecastNavigation upstream we may want to merge in.

Doesn't look like this touches anything we use, but won't hurt either.

Doesn't look like this touches anything we use, but won't hurt either.


add ability to pass a custom header name

I will be happy to update the README given some direction from the maintainers 👍

Would you mind explaining what this feature is for? The spec doesn't really make allowances for the use of other headers, and it seems kinda silly to keep the format that's needed for Authorization (with the leading Signature scheme name) for a custom header to me. If it's exactly the same, is there a reason you can't just use Authorization in your app? Is it because you're trying to combine it with some other form of Authorization use and having trouble using multiple-value headers? (sorry, just guessing here)

@arekinath

Is it because you're trying to combine it with some other form of Authorization use and having trouble using multiple-value headers?

Indeed, bearer token + http signature see #64

That makes sense. We pretty regularly use requests with two Authorization headers in our apps -- one for the Bearer token, and another for the Signature. I'm a little hesitant to suggest following suit, as after some reading, I'm pretty sure this is not technically compliant to the HTTP/1.1 RFC (since Authorization is not meant to be a multi-valued/comma-separated header like that, and Signature's use of the auth-param syntax which contains commas also complicates parsing it)... but it does appear to work fine with the node.js HTTP framework and a few others we've tested.
I guess setting the header name like this is the easiest way forward without promoting that. Though, maybe it would be worthwhile to add API for parsing just the auth-params part of a header out (i.e. the key=value section after the Signature scheme), too. I'll file that as a separate bug.
I've made some small changes to satisfy the linter (which is run using make check btw, for future reference) and fix up old node versions (this repo still targets compatibility back to 0.10.x, so Object.assign can't be used). Merged now as 38c1ae7
Thanks!

@arekinath thanks!
I researched a long ago about this with the same findings about Authorization not allowing multiple values. We adopted signature for our clients to validate events and private data coming in from the wire but only recently we had this problem.
I wrote wrappers to swap x-client-authorization with authorization when checking the signature but one of our clients today wanted to also sign authorization which contained a bearer token.
This resulted in failing signature checks and raised the issue.
I agree that the cleaner approach here would be adding parsing logic for multiple values, but I am not particularly excited to diverge from the specs :/
Thanks again for using my commit.
P.S. I published my fork as private module and it's already live working in production so I confirm it works :)
🍻


Make coupon usage label like credit section

Add a little context for what you're looking at instead of just repeating the coupon ID

A little more context, currently looks like:
This change replaces the lower gray duplicate coupon name with the copy: "Any discounts or coupons applied to your subscription"
Awesome, thanks @wcpines!


cargo-msrv: init at 0.4.0

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 120961 run on x86_64-linux 1

1 package built:

cargo-msrv

News? @SuperSandro2000


Differences in generated liberty timing file between OpenROAD and OpenSTA

Describe the bug
I generated liberty timing files using the same input liberty and spef inputs. For OpenSTA:
read_liberty sky130_fd_sc_hd__tt_025C_1v80.lib
read_verilog RAM32_1RW1R.v
link_design RAM32_1RW1R
read_spef RAM32_1RW1R.spef

read_sdc RAM32_1RW1R.sdc
set_propagated_clock [all_clocks]

write_timing_model sta.lib

and for OpenROAD:
read_liberty sky130_fd_sc_hd__tt_025C_1v80.lib
read_lef merged.nom.lef
read_def RAM32_1RW1R.def

read_spef RAM32_1RW1R.spef

read_sdc RAM32_1RW1R.sdc
set_propagated_clock [all_clocks]

write_timing_model or.lib

The liberty files have some quite large differences, eg:
     pin("EN0") {
       direction : input;
       capacitance : 0.2755;
       timing() {
         related_pin : "CLK";
         timing_type : hold_rising;
 	rise_constraint(scalar) {
-          values("0.72490");
+          values("0.87555");
 	}
 	fall_constraint(scalar) {
-          values("0.15198");
+          values("0.87103");
 	}
       }
       timing() {
         related_pin : "CLK";
         timing_type : setup_rising;
 	rise_constraint(scalar) {
-          values("4.74118");
+          values("2.11183");
 	}
 	fall_constraint(scalar) {
-          values("2.61736");
+          values("1.72349");
 	}
       }
       timing() {
         related_pin : "CLK";
         timing_type : hold_falling;
 	rise_constraint(scalar) {
           values("-0.92890");
 	}
 	fall_constraint(scalar) {
           values("-0.66057");

Expected Behavior
The same liberty file (+/- small differences)
Environment
Git commit: cf9e3b282573a32a7ae3678cd97074a5697276ae
os: Fedora Linux 36 (Workstation Edition)
cmake version 3.25.1
gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
clang version 14.0.5 (Fedora 14.0.5-2.fc36)

To Reproduce
Test case: liberty-or-vs-sta.tar.gz
Relevant log output
No response
Screenshots
No response
Additional Context
No response

This might be transparent latch related (used in DFFRAM), because it didn't reproduce on a FF only macro.

This might be transparent latch related (used in DFFRAM), because it didn't reproduce on a FF only macro.

no, it is tristate related. odb has no clue about tristates

no, it is tristate related. odb has no clue about tristates

fixed in 03d9aa35f

Thanks @jjcherry56


Method to extract all embeds

Could maybe be useful to have a static Subsume.parseAll(text, [ids]) method to extract all embeds in some text. Optionally supply an iterable of id's to extract.
I don't really need this right now, but pull request welcome :)

Hi there,
I have a solution in the works for this, but I'd like to clear some questions:

When extracting the data for each embed, are the other embeds supposed remain as part of the "rest" property?

When one string has two embeds with the same id, is the parser supposed to consider everything between the prefix of the first embed and the suffix of the last one as "data"?. I ask because that's the behaviour currently with the parse method.

When extracting the data for each embed, are the other embeds supposed remain as part of the "rest" property?

Yes, it should only touch the given ids if specified. The rest are left unparsed in the rest property.

When one string has two embeds with the same id, is the parser supposed to consider everything between the prefix of the first embed and the suffix of the last one as "data"?. I ask because that's the behaviour currently with the parse method.

If it's nested inside another the other embed, then yes. If there are two embeds with the same ID and not nested, I think we should throw, as each embed should have a unique ID.

I didn't mention this in the original issue, but what do you think about making the return value an object with data and rest properties, where data is a Map with the id as key and the embed data as value?

If it's nested inside another the other embed, then yes. If there are two embeds with the same ID and not nested, I think we should throw, as each embed should have a unique ID.

I see. I can add that to my solution. Should we open a new issue about the behaviour of the normal parse? It doesn't follow what you just specified, I think.

I didn't mention this in the original issue, but what do you think about making the return value an object with data and rest properties, where data is a Map with the id as key and the embed data as value?

What I have right now is an array like this:
[ '7febcd0b3806fbc48c01d7cea4ed1219': { data: '🦄',
rest: 'some random @@[7febcd0b3806fbc48c01d7cea4ed1218]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1218]## text @@[7febcd0b3806fbc48c01d7cea4ed1217]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1217]##' },
'7febcd0b3806fbc48c01d7cea4ed1218': { data: '🦄',
rest: 'some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## random  text @@[7febcd0b3806fbc48c01d7cea4ed1217]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1217]##' },
'7febcd0b3806fbc48c01d7cea4ed1217': { data: '🦄',
rest: 'some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## random @@[7febcd0b3806fbc48c01d7cea4ed1218]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1218]## text ' } ]
From the follwing output: some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## random @@[7febcd0b3806fbc48c01d7cea4ed1218]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1218]## text @@[7febcd0b3806fbc48c01d7cea4ed1217]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1217]##
I can do it as a map, if you think it's better. In my opinion, both solutions are okay. Would the returned object follow the same logic for the rest property as for the data property (map with the id as key and the string as value)?

Ah, I see. Will work on that as soon as I'm able.

One last question:
I now have the method returning the object with a Map and remaining string. How should the parseAll method handle nested embeds? Does it parse them as well?

It should not parse nested embeds.


Godot can only be run as root on Linux

Godot version:
3.1.1
OS/device including version:
Linux Mint 19.2
Issue description:
At first, I installed the steam version but decide the use the official App and get rid off steam. But now, if I don't run Godot as a root user, it will crash at the opening of a project (even a fresh new one).
Here the console output
 ~ ERROR: save_image: Method/Function Failed, returning: err
   At: drivers/png/resource_saver_png.cpp:93.
ERROR: save_image: Method/Function Failed, returning: err
   At: drivers/png/resource_saver_png.cpp:93.
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7fb6ddc12f20] (??:0)
[2] /home/luc/Apps/Godot_v3.1.1-stable_x11.64() [0x10d4afd] (<artificial>:?)
[3] /home/luc/Apps/Godot_v3.1.1-stable_x11.64() [0x10f01ee] (<artificial>:?)
[4] /home/luc/Apps/Godot_v3.1.1-stable_x11.64() [0xbf4d70] (<artificial>:?)
[5] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7fb6dc46f6db] (??:0)
[6] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fb6ddcf588f] (??:0)
-- END OF BACKTRACE --

I try to give all right permission to the exec with sudo chmod +777 but result is still the same
Steps to reproduce:

Install Godot Steam version
Uninstall it
Delete .config/godot
Delete user/share godot folder
Download the godot exec from the godot website
Execute
Try creating/opening a existing project
Crash

That's probably a permission issue on your ~/.cache/godot folder, is it write-restricted for your user profile?

Thanks, that was the last folder with root permission. I think the problem came from the first steam installation that creates all the folders with specific permissions. I thought I found them all but this was the last one missing.

The Steam version actually shouldn't create any of these directions, it's standalone and puts all its data in the Steam folder, in editor_data.

We should still handle the crash, so reopening.
What folder exactly had wrong permissions, and which ones?

Those folders

.config/godot
.cache/godot
.local/godot

And permission (take from a files and not the folder, since I already remove their permission)

Thanks. Be sure to run chown -R youruser:youruser to ensure that you have write permission on all subfolders and files.


add architecture/reapair/decommission docs

This PR adds documentation around already existing features like repair/decommission and also some architecture diagrams

@ANeumann82 @porridge I rebased branch with master and also made links in readme relative to fix links in https://github.com/kudobuilder/operators/tree/master/repository/cassandra/3.11


Cask request: [Cocos]

Cask details
Please fill out as much as possible. Before you do, note we cannot support Mac App Store-only apps.
Name: Cocos
Homepage: http://www.cocos2d-x.org/
Download URL: http://cocos2d-x.org/filedown/CocosForMac-v3.10.dmg
Description: Cocos is a free and professional game-development toolkit, that enables developers to quickly create game content and remove the tedious work by simplifying it with straightforward GUI editors.
Cocos includes: the Cocos2d-x game engine, a game development environment and project management tool. With this suite, developers can focus on their roles and enjoy a better streamlined workflow. This saves game studios time and money by allowing them to collaborate with ease, and focus on what they do best to achieve better quality and faster turnaround time.

Is this the same thing or an update to the existing Casks cocos-code-ide.rb or cocoscreator.rb?

This is something different. Please see this page. http://www.cocos2d-x.org/products

@inazou thanks for that - I do not see a mention of cocos-code-ide.rb, do you know if this is deprecated?
In regards to your request, the file you linked CocosForMac-v3.10.dmg contains an Installer.app, which means this Cask will require an installer :manual artifact, which means it will also require an uninstall stanza. My testing machine is unavailable at the moment, so if you are familiar with this app are you able to shed any light on how to uninstall it; for example is there an uninstall .app or an uninstall script?


Asynchronous validation (remote validation)

I have an asynchronous function,
const videoExists = async wistiaId => {
  console.log('videoExists()')
  const response = await axios.get(`/api/videos/${wistiaId}`)
  const valid = !response.data.exists
  console.log('valid=', valid)
  return valid
}

Is it possible to validate an input using an asynchronous function? For example,
const validationRules = {
  wistiaUrl: [[videoExists, 'Already exists']]
}

Using the trace messages, I can see this function is called (twice?),
// from Chrome dev console...
submit?0c75934:21 videoExists()
submit?0c75934:21 videoExists()
2submit?0c75934:25 valid= true
submit?0c75934:21 videoExists()
submit?0c75934:21 videoExists()
2submit?0c75934:25 valid= false

But no matter if I return true or false, the error.wistiaUrl component is never showed

@bookercodes I would like avoiding any async actions inside the predicates, but your use case is excellent. Currently this is not handled via Spected and there is no recipe on how to handle this properly.
Let me think about how to tackle this scenario.

@bookercodes Also thanks for providing very valuable insights in the last couple of days!

Ah, is this because validators should be pure? (I am a functional programming noob!)
Really looking forward to see how you solve this, in the meantime I will work around this 👍

Closing this issue, as there seems a way to handle async validations now. We can still improve the current implementation later on.


Questions about flux-schnell and fp8

Why is Flux schnell selected in Flux Load ControlNet and CLIP2 in double CLIP loader, whether t5xxl_fp16 or t5xxl_fp8_e4m3fn selected? When flux1-schnell is selected in the UNET loader, whether default, fp8_e4m3fn, or fp8_e5m2 is selected in the type, there will be an error: Flux loading ControlNet Error(s) in loading state_dict for ControlNetFlux: Unexpected key(s) in state_dict:  "guidance_in.in_layer.bias", "guidance_in.in_layer.weight", "guidance_in.out_layer.bias",  "guidance_in.out_layer.weight".
In addition, the model selected by fp8 will eventually produce an image that is all black.
Only when flux-dev is selected in Flux Load ControlNet, t5xxl_fp16 is selected in CLIP2 in dual CLIP loader, flux1-dev is selected in UNET loader, and default is selected in type, everything is normal except slow.

@yueboxinli have you solved this problem?

same issue here. Maybe someone has a solution 😌