A fatal error occurred: No serial data received.

Hi!
Trying running that on an S3 board that I flashed some other things on properly through the Arduino IDE before (including earlier today), but that AcidBox.ino file simply doesn't upload to that S3. Trying to figure out why. Any recommendations on how to solve that?
Here is what the console said:
`
Sketch uses 507857 bytes (16%) of program storage space. Maximum is 3145728 bytes.
Global variables use 114072 bytes (34%) of dynamic memory, leaving 213608 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port /dev/cu.usbmodem1461301
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 3c:84:27:c2:2b:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
A fatal error occurred: No serial data received.
Failed uploading: uploading error: exit status 2
`

It is just an uploading bug. Maybe you run a serial monitor that time. Try again.17:46, 29 июля 2024 г., 01GOD @.***>:
Hi!
Trying running that on an S3 board that I flashed some other things on properly through the Arduino IDE, but that AcidBox.ino file simply doesn't upload to that S3. Trying to figure out why. Any recommendations on how to solve that?
Here is what the console said:
Sketch uses 507857 bytes (16%) of program storage space. Maximum is 3145728 bytes. Global variables use 114072 bytes (34%) of dynamic memory, leaving 213608 bytes for local variables. Maximum is 327680 bytes. esptool.py v4.6 Serial port /dev/cu.usbmodem1461301 Connecting... Chip is ESP32-S3 (revision v0.2) Features: WiFi, BLE Crystal is 40MHz MAC: 3c:84:27:c2:2b:40 Uploading stub... Running stub... Stub running... Changing baud rate to 921600 A fatal error occurred: No serial data received. Failed uploading: uploading error: exit status 2
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
--Е.А.

It is just an uploading bug. Maybe you run a serial monitor that time. Try again, please. Also this could be caused by powering issues: bad wiring or some extra load, when you try to power some more devices from the same usb port.

Excuse that. That board weirdly started needing the Boot button pressed to upload tonight.
So, I got it running, although with A LOT of noise seemingly. The DAC on that board is supposedly the MAX98357A or
MAX98357B.
Advice on removing the noise? The back of speaker was hot, so maybe the volume level was blowing the speaker as the back of that little speaker was hot from the coil heat seemingly.
PS: The portion heard through the noise sounded promising though, so looking forward to getting that solved.

Of what I can imagine right now, try to connect SCK of MAX to GND. Later I check the docs and be back with some info.

Tried connecting a proper external speaker with it's own volume control and amp, but the sound is still sadly mostly noise. Can hear the synth playing in background though. About to try another pin for the I2S_BCLK_PIN in config, but seems it's maybe something to do with the DAC config. I do have a functional audio sample player example from another repo (although it plays sample twice every time), so I can try combining some DAC code from that with the AcidBox.ino file.
Any good recommendations to get that noise removed will be appreciated. Thanks in advance!

Of what I can imagine right now, try to connect SCK of MAX to GND. Later I check the docs and be back with some info.

PS: Oh, I should mention that this is where I set the output pin:
#define I2S_BCLK_PIN    5       // I2S BIT CLOCK pin (BCL BCK CLK) #define I2S_WCLK_PIN    7       // I2S WORD CLOCK pin (WCK WCL LCK) #define I2S_DOUT_PIN    41       // to I2S DATA IN pin (DIN D DAT)
Hope where that 41 is was the correct place to set output pin to DAC in that config.h file. Didn't seem completely obvious where, but I assumed that is correct.

To sort things out can you change 41 to e.g. 4 ?

To sort things out can you change 41 to e.g. 6 ?

Ah, it's a hardware connection on a PCB. So not possible to simply change the pin and plug the DAC into another port.
I can look at that audio code from that other repo and see if that can solve it somehow.

What version of ESP Arduino core do you use?

What version of ESP Arduino core do you use?

I can look that up. Here is the i2s config code from that other repo that played sound through that DAC without any noise seemingly:
i2s_std_config_t tx_std_cfg = {
.clk_cfg  = I2S_STD_CLK_DEFAULT_CONFIG(11000),
.slot_cfg = I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_MONO),
.gpio_cfg = {
.mclk = I2S_GPIO_UNUSED,    // some codecs may require mclk signal, this example doesn't need it
.bclk = EXAMPLE_STD_BCLK,
.ws   = EXAMPLE_STD_WS,
.dout = EXAMPLE_STD_DOUT,
.din  = EXAMPLE_STD_DIN,
.invert_flags = {
.mclk_inv = false,
.bclk_inv = false,
.ws_inv   = false,
},
},
};

What are EXAMPLE_STD_BCLK, EXAMPLE_STD_WS, EXAMPLE_STD_DOUT, EXAMPLE_STD_DIN values?

I have found a MAX98357A in my mess, and it works without any modification to the program, I have just switched PCM5102 to MAX on a breadboard, and everything worked fine. Bass drum sometimes gets distorted due to the toy speaker I use, but the sound is clean in general.
My setup is:
Arduino IDE 1.8.19
ESP Arduino Core 2.0.17
BCKL connected to GPIO5
Din connected to GPIO6
LRC connected to GPIO7

Saw now. Was past midnight here when I had most recently replied yesterday.
Thanks for trying that on that DAC! Figured out what it was. It was the
I2S_WCLK_PIN.
Had thought "word select" was ONLY for stereo purposes, but I guess that
"word clock" is maybe different from word select. Really not a fan of DAC
I2S naming conventions such as "WORD SELECT" for choosing a left or right
channel.
Anyway, now know that whenever there is a layer of loud White noise or
similar, that is most likely a clock pin not set correctly. Guess that is
logical, as without a clock, it is apparently still running, although at
random intervals. Guess that can maybe be a way to make a White noise
generator.
On Tue, Jul 30, 2024 at 3:49 AM copych @.***> wrote:

I have found a MAX98357A in my mess, and it works without any
modification to the program, I have just switched PCM5102 to MAX on a
breadboard, and everything worked fine. Bass drum sometimes gets distorted
due to the toy speaker I use, but the sound is clean in general.
My setup is:
Arduino IDE 1.8.19
ESP Arduino Core 2.0.17
BCKL connected to GPIO5
Din connected to GPIO6
LRC connected to GPIO7
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Message ID: @.***>

PS: Initial review is that the filter and effects sound pretty accurate! Nicely done on that and thanks for sharing that!
I know from experience that there is A LOT to tuning the envelope generator and accents and so on properly. And somewhat annoying how much precision was involved. It's only playing in jukebox mode now seemingly, so haven't heard for sure if the accents are "barking" like a metal lion yet. I do know that the env generator I made had to have shorter durations than expected for accurate sounds.
I may make a saw wave style synth using that diode ladder filter emulation I shared before. That way I can tune the envelope and accents and so on, knowing what is already in place easier and keeping it efficient on CPU use. I mainly like the saw wave with a diode clipper on those types of synths these days anyway. That is much easier than making a "square wave" that changes shape along the keyboard.
Here is a page that has some good info for tuning Accent:
https://modwiggler.com/forum/viewtopic.php?t=10885

Meanwhile I have made a port of open303, trying to incorporate as much of the original code as possible. Double type had to be sacrificed, and it's expectedly float everywhere there. Also antialiasing quarter SR filter didn't work correctly and began to generate. Probably original high order filter has poles right on a circle and lack of the float's precision pushes them slightly outside, so it becomes unstable. Here's the link https://github.com/copych/ESP32_Open303 It is midi controllable though only basic midi messages are processed yet.

Wow! Thanks for posting that port! Had seen that original project on sourceforge or similar and had been tempted to copy the envelopes and accents, but I was in a very DIY mode back then. I should have at least looked at those.
Today found this on reddit: "On a semi-related note: on ESP32s, switching to FreeRTOS tasks from ArduinoCore frees up a lot of memory and CPU overhead."
And chatgpt 4o's best recommendation as a precise alternative to doubles was using "Using Fixed-Point Arithmetic" in some innovative ways seemingly.
Between those, "switching to FreeRTOS tasks" at least sounds like a way to get a big performance boost with little effort. Can move this conversation to that "Discussion" thread I made about tips and info for tuning filter accents and so on.
By the way, tried simply adding the aciduino sequencer and envelope generator to this? Seems that project likely have done a lot to refine those parts, so that could be an easy way also.

Moving to Discussions thread https://github.com/copych/AcidBox/discussions/22


Order of tokens :- specification in .x file matters

It was not mentioned in the documentation but it seems that the order in which the tokens are defined in the tokens :- section matters? Putting some rules above others resulted in lexical errors from the generated parser, which disappeared when I changed the order of the rules. Is this due to the fact that some of my rules use regexps which contain characters which are also defined as tokens?

See https://www.haskell.org/alex/doc/html/alex-files.html, in particular "When the input stream matches more than one rule, the rule which matches the longest prefix of the input stream wins. If there are still several rules which match an equal number of characters, then the rule which appears earliest in the file wins."
Does that help?

I completely missed that line, thanks! However I'm still getting some strange behaviour, when the shorter rule is above it does not work, it only works when the longer rule is above.
For clearer reference, the shorter rule is
"<"     { \p s -> TokenLT p }
and the longer rule is
$alpha $idchar* \<$alpha $idchar*(\:\[$alpha $idchar*\])? (\,$alpha $idchar*\:\[$alpha $idchar*\])? \>   { \p s -> TokenIdent p s }

@Ericson2314 : Please give me some basic rights on this repo so that I can assign myself to issues, label issues, close issues etc.

@andreasabel I'm afraid I don't have permissions to do that, but that sounds like a good plan. @simonmar can you?

This user question has been answered.


fix(npm): Unpublishing npm package

:tada: This PR is included in version 2.14.4 :tada:
Your semantic-release bot :package::rocket:


TODOs

[ ] Add demo screencast
[ ] Add more fzf variant scripts inspired by kks

git changed files
mru
git files

[x] #2

What I'm doing in this project is actually https://github.com/webdev23/shelix, but it better fits my needs (or I just want to implement it on my own).

which also support wezterm as window multiplexer for users don't want only tmux


update smartgit to v7.0.3

Thank you for the contribution. It was merged directly as 1d9996b678b5d80337bf6c7740d4003c180a28e9 to keep commit history cleaner. Your contribution is still credited to you.


Create LICENSE

Fixes https://github.com/indigoviolet/conda-pip-minimal/issues/2

Add License MIT
Add conda recipe
Clean up and standardize .ignore from github python .ignores
remove /src root directory to python package as root dir
add floors and roofs for package limits and standarize for conda and pip

@indigoviolet and @rxm7706
I have added you both as maintainers in the conda package for conda-pip-minimal. If you are happy to have your names added please leave a comment in this PR saying so. If not, let me know here and I will remove your names from there :)
https://github.com/conda-forge/staged-recipes/pull/26100

Thank you @joshdunnlime - Happy to help as a co-maintainer.


New version of tokio

Support of new tokio version (as tokio-core is now deprecated) and dropped support for curl connector as is not supported by new tokio version

This is already happening in master branch


Regarding how the official plugins load language files

In all of the officially provided plugins loader.php, there are this snippet that decides which language to load:
(Example Taken from Change Class Plugin)
// language phrases
if(file_exists(__PATH_CHANGECLASS_ROOT__ . 'languages/'.config('language_default', true).'/language.php')) {
	// attempt to load same language as website
	if(!@include_once(__PATH_CHANGECLASS_ROOT__ . 'languages/'.config('language_default', true).'/language.php')) throw new Exception('Error loading language file (changeclass).');
} else {
	// load default language file (en)
	if(!@include_once(__PATH_CHANGECLASS_ROOT__ . 'languages/en/language.php')) throw new Exception('Error loading language file (changeclass).');

 }

However, it only checks for the language_default value in the configs, and not $_SESSION['language_display'], which means even if a translation is provided by populating the language.php file, and the user switched to said language, the plugin language will still be in the language_default value, defeating the purpose of multi-language.
Please advise, thanks.

I don't think they will maintain this repo anymore. For a quick fix, we can do it ourselves.
`
// Determine the language to use
$language = isset($_SESSION['language_display']) ? $_SESSION['language_display'] : config('language_default', true);
// language phrases
if (file_exists(PATH_VIP_ROOT . 'languages/' . $language . '/language.php')) {
// attempt to load the language file
if (!@include_once(PATH_VIP_ROOT . 'languages/' . $language . '/language.php')) {
throw new Exception('Error loading language file (vip).');
}
} else {
// load default language file (en)
if (!@include_once(PATH_VIP_ROOT . 'languages/en/language.php')) {
throw new Exception('Error loading language file (vip).');
}
}
`

How can you install a plugin? For example I'm trying to install the VIP plugin. I added the __uploads files to root. Then tried loading the plug.xml file from admincp but getting Plugin file(s) missing error.

You shall add the contents of __upload folder to root, not uploading the folder itself to root.
You may have a version of WebEngine that has a check on "legit" plugins, the check needs to be disabled (by commenting out a certain part of a certain file, I can't remember - but you can find the "patched" file everywhere on MU related forums now)

I'll close this one since the initial problem is solved.


Service name capitalization not quiet right for Rust

I am not sure the service name transformations are quite right:
https://github.com/googleapis/google-cloud-rust/blob/a4053a5c7061797d3f05afe1ef6a40d66cb38185/generator/testdata/rust/gclient/golden/iam/v1/src/lib.rs#L99
That should be IAMPolicyClient or IamPolicyClient:
https://github.com/googleapis/google-cloud-rust/blob/a4053a5c7061797d3f05afe1ef6a40d66cb38185/generator/testdata/googleapis/google/iam/v1/iam_policy.proto#L59
I suspect the code treats IAMP as a single word or something. In general, any acronym-based name will be trouble.

This may not affect the "secretmanager is launchable" milestone, but we should review if that is the case. We can push this bug to a future milestone if secret manager is not affected by this.


Build warning on entropy_nrf5 with clang

Describe the bug
drivers/entropy/entropy_nrf5.c is pushing gcc build options with pragmas without guarding for gcc.
When building with clang this will cause a warning (and the option be ignored)
To Reproduce
Steps to reproduce the behavior:

mkdir build; cd build
ZEPHYR_TOOLCHAIN_VARIANT=llvm cmake -GNinja -DBOARD=nrf52_bsim ../tests/bsim/bluetooth/ll/conn/ -DCONF_FILE=prj_split.conf
ninja
See error

Expected behavior
No warning when building with clang
Impact
When building with clang, warning on build which can result on build error if warning are treated as errors
Logs and console output
drivers/entropy/entropy_nrf5.c:119:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC push_options
            ^
drivers/entropy/entropy_nrf5.c:178:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC pop_options
            ^

Environment (please complete the following information):

OS: Linux, Unbuntu 22.04
Toolchain (e.g Zephyr SDK, ...): LLVM 14
Commit SHA or Version used: Today's main 1b0cb324f3827ed5dcd08b63de7b8168fc2a3ffa

Additional info
Since fb3387a4907

CC @carlescufi  @anangl


Fix some incorrect code in WorkerWebUILogs

What changes are proposed in this pull request?
The purpose of this pr is to fix some incorrect code in WorkerWebUILogs.
Why are the changes needed?
There is some incorrect code in WorkerWebUILogs, we should fix them.
Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

@jenoudet @JiamingMai @jiacheliu3 , could you please help review this pr?
Thanks.

Thanks @jenoudet .

alluxio-bot, merge this please

alluxio-bot, merge this please


Complete Drizzle ORM support

I'm really keen on getting pgvector supported in drizzle-orm and drizzle-kit.
There's an open issue on drizzle-kit to hopefully make the current experimental implementation work
https://github.com/drizzle-team/drizzle-kit-mirror/issues/115
I see this is planned for the 0.1.5 release.
Is it possible to perhaps publish the upcoming releases under a @next tag so we could use it with workarounds?

Hi @avanderbergh, thanks for raising the issue with Drizzle Kit. You can point your package.json to GitHub to use unreleased changes.

Hi @avanderbergh, thanks for raising the issue with Drizzle Kit. You can point your package.json to GitHub to use unreleased changes.

I'm listing the current version from GitHub as an npm dependency, but get a TypeScript error importing from pgvector/drizzle-orm
// Cannot find module 'pgvector/drizzle-orm' or its corresponding type declarations.ts(2307)
import { l2Distance } from 'pgvector/drizzle-orm';

I was able to get around it with declare module 'pgvector/drizzle-orm'; in a .d.ts file in the mean time at least.

Hmm, the types are in types/drizzle-orm/index.d.ts, which is referenced in package.json.

Hmm, the types are in types/drizzle-orm/index.d.ts, which is referenced in package.json.

If you'd like to replicate it locally, rename global.d.ts in this repo and visit src/db/db/ts.

yeah it'd be great to get the drizzle support to a "productive" state at least so we can continue evaluating until future releases :)

Just pushed 0.1.5 with experimental support.
@jschuur The release also adds support for "moduleResolution": "node", which should fix the import error.


Style/SingleLineMethods should not correct to endless methods when Style/EndlessMethod is disabled

This is just a question and came up when researching https://github.com/standardrb/standard/issues/489
I can't help but wonder if the guard clause's boolean logic in this method in Style/SingleLineMethods isn't reversed.
This method is used in determining if a single-line method should be converted to an endless method:
def disallow_endless_method_style?
  endless_method_config = config.for_cop('Style/EndlessMethod')
  return false unless endless_method_config['Enabled']

  endless_method_config['EnforcedStyle'] == 'disallow'
end

Converted to English and with the double-negatives unwound, the guard clause seems to be saying "If Style/EndlessMethod is disabled, then allow violations of this cop to be converted to Endless methods".  Am I reading that wrong, or is that logically backwards? If someone has disabled Style/EndlessMethod, shouldn't endless method corrections by this cop be disallowed?
I expected the line to read:
  return true unless endless_method_config['Enabled']

Do I have this right? Just a quick spot-check, as I may be totally wrong here—it's a lot of boolean negation to keep straight, and I'm not sure how the two cops interact

I'm here to mount a mild defense of the current behavior.
When someone has this configuration:
AllCops:
  TargetRubyVersion: 3.2.2

Style/EndlessMethod:
  Enabled: false

Style/SingleLineMethods:
  Enabled: true

They haven't explicitly disallowed endless methods in their codebase. If they had, it would look like:
AllCops:
  TargetRubyVersion: 3.2.2

Style/EndlessMethod:
  Enabled: true
  EnforcedStyle: disallow

Style/SingleLineMethods:
  Enabled: true

Given that they haven't disallowed endless methods, and they're targeting a ruby that supports endless methods, why shouldn't Style/SingleLineMethods introduce an endless method?
Note: if you're persuaded by this argument, the docs and test coverage should be updated to reflect that this is expected behavior.

This is about the default behavior of autocorrection Style/SingleLineMethods. It does not deny the use of endless method definition. And this fix conforms to the behavior documented below:

If Style/EndlessMethod is enabled with EnforcedStyle: allow_single_line or
allow_always, single-line methods will be autocorrected to endless
methods if there is only one statement in the body.

https://docs.rubocop.org/rubocop/1.51/cops_style.html#stylesinglelinemethods

Thanks, @koic!

You are welcome, @searls!


--visualise-reductions does not work with --violate

Bug Report
Steps to Reproduce:
run generate on a profile with --visualise-reductions and --violate
Expected Result:
reductive-walker directory created containing Graphviz dot files.
Actual Result:
generation runs but no reductive-walker directory is created.
Additional Context:
documentation does not specify that these two switches cannot be used together.
either update the documentation to specify that these switches are incompatible, or allow visualisations in violate mode.

reductive-walker directory is being placed inside specified output directory.


initialRegion not working on Android on version 0.31.0 or 0.31.1

error while updating property 'initialRegion' of a view managed by airmap
but on version 16.1 working correct

^0.30.0 working too

Didnt you facing this issue? https://github.com/react-native-maps/react-native-maps/issues/4235

Why was this closed? I still have this issue using the most basic of your examples.
<MapView     initialRegion={{       latitude: 37.78825,       longitude: -122.4324,       latitudeDelta: 0.0922,       longitudeDelta: 0.0421     }}   />
This is my package.json:
"@react-native-async-storage/async-storage": "~1.15.0",
"@react-native-community/netinfo": "7.1.3",
"@react-native-picker/picker": "2.2.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.2",
"create-react-class": "^15.6.2",
"expo": "^44.0.0",
"expo-analytics": "^1.0.18",
"expo-app-loading": "^1.3.0",
"expo-asset": "^8.4.6",
"expo-file-system": "~13.1.4",
"expo-localization": "^12.0.1",
"expo-location": "^14.0.2",
"expo-sqlite": "^10.1.1",
"react": "17.0.1",
"react-native": "0.64.3",
"react-native-image-slider-box": "^1.1.23",
"react-native-map-link": "^2.9.3",
"react-native-maps": "^0.31.1",
"react-native-pager-view": "^5.4.15",
"react-native-safe-area-context": "^4.2.5",
"react-native-screens": "^3.13.1",
"react-native-side-menu-updated": "^1.3.2",
"react-native-swiper": "^1.6.0-rc.3",
"react-native-tab-view": "latest",
"react-translated": "latest",
Can anyone help with this?
Thank you,
Miguel Neves

Why was this closed? I still have this issue using the most basic of your examples.
<MapView initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0922, longitudeDelta: 0.0421 }} />
This is my package.json: "@react-native-async-storage/async-storage": "~1.15.0", "@react-native-community/netinfo": "7.1.3", "@react-native-picker/picker": "2.2.1", "@react-navigation/native": "^6.0.10", "@react-navigation/native-stack": "^6.6.2", "create-react-class": "^15.6.2", "expo": "^44.0.0", "expo-analytics": "^1.0.18", "expo-app-loading": "^1.3.0", "expo-asset": "^8.4.6", "expo-file-system": "~13.1.4", "expo-localization": "^12.0.1", "expo-location": "^14.0.2", "expo-sqlite": "^10.1.1", "react": "17.0.1", "react-native": "0.64.3", "react-native-image-slider-box": "^1.1.23", "react-native-map-link": "^2.9.3", "react-native-maps": "^0.31.1", "react-native-pager-view": "^5.4.15", "react-native-safe-area-context": "^4.2.5", "react-native-screens": "^3.13.1", "react-native-side-menu-updated": "^1.3.2", "react-native-swiper": "^1.6.0-rc.3", "react-native-tab-view": "latest", "react-translated": "latest",
Can anyone help with this?
Thank you, Miguel Neves

I may have been closed because no bug template was used. Might be worth creating a new bug for this and following the issue template

For anyone interested I created a new issue with this error. #4256


demo of a simulator tile

this adds a time and previous value feature to the variable model
It also adds a simple block which can be controlled by special
x and y variables.

I'm going to close this PR. This generic simulator tile with time and previous value support might be useful at some point, but we don't need to keep this PR open to find it.


feat(#628): Autocomplete possible values for Accept and Content-Type request headers

Description
Autocomplete possible values for Accept and Content-Type request headers with media-types list. Related to #628
Contribution Checklist:

[x] The pull request only addresses one issue or adds one feature.
[x] The pull request does not introduce any breaking changes
[x] I have read the contribution guidelines.
[x] Create an issue and link to the pull request.

Closing this PR as this is now available in Bruno


getThreadInfo logic no longer follows request pattern by Facebook

I've been trying to use getThreadInfo to get messages from a certain thread ID. Right now, there seems to be logic indicating that the start param must be less than the end param. There's a couple of issues with this function as written:

start, end, timestamp are not descriptive parameter names because, clearly, the parameters being set in the payload are offset and limit, which is not the same concept.
Point 1 is indicative of a bug in this code. If you look at how FB is making these requests on their messages loading page, they are incrementing offset, holding limit to be 80, and the timestamp appears to be changing. It is, in fact, decreasing with each new request. I think it's being set to the timestamp of the last message in the previous batch. The code in getThreadInfo is setting it to be now, which is why, for chats with many messages, this function does not behave properly.

I'm experimenting with a fix right now, but I wanted to see if anyone else was having this issue.

We've had a complaint or two about this on our api as well (https://github.com/Schmavery/facebook-chat-api/issues/262).  I'd imagine you're right, and facebook has tweaked how they handle these parameters.
Do you understand why the offset is changing as well as the timestamp?  It seems like these would handle the same sort of thing...

It's not clear to me why it would be done this way. What I'm trying right now is just incrementing offset, leaving limit to be at 80, and setting timestamp to the earliest retrieved message from the last timestamp. This seems to be working somewhat for paginated requests, but I'm still getting some duplicates, so I haven't submitted a pull request.

The method I'm using is:

Set limit to whatever you like (I'm using 1024)
Set timestamp and offset to zero
Make a request
Set timestamp to int(data['actions'][0]['timestamp']) - 1
Set offset to offset + len(data['actions'])
Go back to step 2
Repeat until you have all the messages you want. This seems to work nicely.

As for why the redundancy, the timestamp seems to win out if they disagree. But I don't know why.

This is how I am also doing it (except I'm using a much smaller offset (80)). I made the following changes to getThreadInfo that I think better reflect how the function should be used:
`        # this is pretty arbitrary, since timestamp is winning out anyway.
if not end: end = start + 20
# if end <= start: end = start + end
    data = {}
    data['messages[user_ids][%s][offset]'%userID] =    start
    data['messages[user_ids][%s][limit]'%userID] =     end
    data['messages[user_ids][%s][timestamp]'%userID] = timestamp if timestamp is not None else now()`

Maybe #89 fixed this but not sure.

Reworked completely in v. 1.0.x


fix docker permissions: mount /dev

Thanks for providing this great repository!
Running the default docker script, I am encountering this error:
MESA: error: Failed to query drm device.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: iris
libGL error: failed to open /dev/dri/card0: No such file or directory
libGL error: failed to load driver: iris
X Error of failed request:  BadShmSeg (invalid shared segment parameter)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Segment id in failed request:  0x4200007
  Serial number of failed request:  136
  Current serial number in output stream:  137

This PR

fixes docker permissions by mounting /dev
Add docker documentation

On a related note: How would you compare rviz vs iridescence visualization performance for large maps?

Thanks for your PR. I'll merge it just after it passes the CI.

On a related note: How would you compare rviz vs iridescence visualization performance for large maps?

While rviz is a good general purpose visualization tool, it is sometimes difficult to do fine-grained control of visualization contents. For example, updating individual submap (point cloud) poses in rviz is difficult (or inefficient) unless you implement a dedicated plugin. I'm used to handling quite large maps with this library, and this (and some other) barebone libraries would be a good choice if you want to manipulate large maps.


Deal with dependencies requested by LLMs

Assume an LLM responds with something like
	package com.eval;

	import org.junit.jupiter.api.Test;
	import org.mockito.InMockito;

	import static org.junit.jupiter.api.Assertions.*;

	class PlainTest {

	    @Test
	    void testPlain() {
	        InMockito.when(Plain::plain).thenReturn(null);
	        Plain.plain();
	        InMockito.verify(Plain::plain);
	    }
	}

The test file needs mockito to run, and we need to make sure that this is available when executing the tests.
Response from custom-fireworks_accounts_fireworks_models_qwen2-72b-instruct

What's also bad is that we just go mod tidy all dependencies for Go... so LLMs can use whatever they want, but for Java everything except Java is forbidden.

llama-3-70b-instruct responded with tests using hamcrest


Unable to open PKSCREENER

Hi There,
I followed the guide for Windows System however i am not able to run the application.
When i tried to open pkscreenercli.py , it opens for a second and closed automatically.

@SammySharma - Open a command prompt and launch pkscreener with -l switch. For example:
pkscreener.exe -l
-l is for log collection. Then zip and attach the logs here. The logs will be generated under pkscreener folder in the temp directory. When you launch, it will show you the path where it will collect all the logs.

Hello, I didn't hear any further comment from you. Closing this issue @SammySharma ! Feel free to reopen if this issue still persists for you.


Crash during destruction

when I destroy the navigator with the scene, the application crashes (
first I did navigation.goBack() - which took me back to the product detail, then the app started to crash
then I decided to hide the navigator by condition, this also crashes the application
Logcat in Android Studio
2023-07-13 10:20:08.139 21129-21129/com.zvet E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
2023-07-13 10:20:08.145 21129-21129/com.zvet E/native: E0000 00:00:1689232808.145230   21129 scheduler.cc:283] INTERNAL: RET_CHECK failure (third_party/mediapipe/framework/scheduler.cc:283) state_ != STATE_NOT_STARTED (0 vs. 0)
    Stack trace:
2023-07-13 10:20:08.145 21129-21129/com.zvet E/native: E0000 00:00:1689232808.145691   21129 normal_detector_cpu.cc:233] Error graph_->WaitUntilIdle():INTERNAL: RET_CHECK failure (third_party/mediapipe/framework/scheduler.cc:283) state_ != STATE_NOT_STARTED (0 vs. 0)
    === Source Location Trace: ===
    third_party/mediapipe/framework/scheduler.cc:283
    third_party/mediapipe/framework/calculator_graph.cc:847
2023-07-13 10:20:08.354 21129-23191/com.zvet E/AndroidRuntime: FATAL EXCEPTION: GLThread 16269
    Process: com.zvet, PID: 21129
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.SurfaceHolder android.opengl.GLSurfaceView.getHolder()' on a null object reference
        at com.viro.core.ViroViewARCore$ViroARRenderer.onSurfaceChanged(ViroViewARCore.java:300)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1575)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)

my package.json
"dependencies": {
	"@gorhom/bottom-sheet": "^4.4.6",
	"@ptomasroos/react-native-multi-slider": "^2.2.2",
	"@react-native-async-storage/async-storage": "^1.15.17",
	"@react-navigation/bottom-tabs": "6.0.9",
	"@react-navigation/native": "6.0.6",
	"@react-navigation/native-stack": "6.2.5",
	"@react-navigation/stack": "6.0.11",
	"@viro-community/react-viro": "2.23.0",
	"intl": "^1.2.5",
	"lottie-react-native": "^5.1.4",
	"mindbox-sdk": "^1.0.2",
	"react": "17.0.2",
	"react-native": "0.66.5",
	"react-native-appsflyer": "6.8.2",
	"react-native-dotenv": "3.2.0",
	"react-native-geolocation-service": "^5.3.0-beta.4",
	"react-native-gesture-handler": "^1.10.3",
	"react-native-get-random-values": "^1.8.0",
	"react-native-image-picker": "^4.1.2",
	"react-native-image-zoom-viewer": "3.0.1",
	"react-native-keyboard-manager": "^6.5.4-4",
	"react-native-linear-gradient": "^2.5.6",
	"react-native-masked-text": "^1.13.0",
	"react-native-modal": "^13.0.0",
	"react-native-reanimated": "2.10.0",
	"react-native-render-html": "^6.3.4",
	"react-native-safe-area-context": "^3.3.2",
	"react-native-screens": "^3.9.0",
	"react-native-shadow": "^1.2.2",
	"react-native-skeleton-content-nonexpo": "^1.0.13",
	"react-native-splash-screen": "3.2.0",
	"react-native-svg": "^12.1.1",
	"react-native-svg-transformer": "^0.14.3",
	"react-native-webview": "^11.23.1",
	"react-native-yamap": "^4.1.17",
	"react-navigation-heavy-screen": "^1.2.1",
	"swr": "^1.3.0",
	"uuid": "^9.0.0"
}

RactNative Navigation navigator
const animation = Platform.select({
	ios: {},
	web: {},
	windows: {},
	native: {},
	macos: {},
	android: {
		presentation: 'modal',
		gestureDirection: 'vertical-inverted',
	},
});

<Stack.Navigator
	screenOptions={{ headerShown: false }}
	// detachInactiveScreens={false}
	initialRouteName={'TabNavigator'}>
	<Stack.Group screenOptions={animation}>
		<Stack.Screen name={'TabNavigator'} component={TabNavigator} />
		<Stack.Screen
			name={'AdditionalStack'}
			component={AdditionalStack}
		/>
		<Stack.Screen name={'Chat'} component={Chat} />
		<Stack.Screen name={'AR'} component={AR} />
	</Stack.Group>
</Stack.Navigator>

AR
const Scene = () => {
	return <ViroARScene />;
};

const ARNavigator = useMemo(() => {
	return (
		<ViroARSceneNavigator
			initialScene={{
				scene: Scene,
			}}
			worldAlignment='Gravity'
			autofocus
			style={styles.arView}
			viroAppProps={{
				onObjPress: showRotationUI,
			}}
		/>
	);
}, []);

<SafeAreaView style={styles.container}>
	{isShow && <ARNavigator />}
</SafeAreaView>

I find error.
Layout small node animation (react-native-reanimated) on first screen in navigation stack


Rook Volume Plugin

Rook Volume Plugin

Rook is an open source, cloud-native storage system that provides block, filesystem and object storage to cloud-native apps. A Rook volume plugin would allow users to seamlessly consume storages on their Kubernetes Apps.
Primary contact (assignee): Steve Leon @kokhang
Responsible SIGs: Storage
Design proposal link (community repo): https://github.com/kubernetes/kubernetes/issues/46451
Reviewer(s) - (for LGTM) recommend having 2+ reviewers (at least one from code-area OWNERS file) agreed to review. Reviewers from multiple companies preferred:
@rootfs
@liggitt
Approver (likely from SIG/area to which feature belongs):

@saad-ali

Feature target (which target equals to which milestone):

Stable release target: 1.8

@kokhang features repo freeze for 1.7 has already happened - https://github.com/kubernetes/features/blob/master/release-1.7/release-1.7.md.
Please, clarify the necessity of adding the feature to 1.7 scope.
/cc @k8s-mirror-storage-feature-requests

@idvoretskyi I was hoping to get it in for 1.7 since the plugin is very thin. All it does it delegates the action to Rook via TPRs. We have been testing it extensively and I have just submitted a PR for this https://github.com/kubernetes/kubernetes/pull/46843.

Hi, it was a stretch to make this for 1.7 and its not looking it could happen in time. Can we please consider this feature request for the 1.8 release?

@bassam v1.8 may be possible, but we really have to talk about the layer violations concerns in the PR/design first. We might as well come up with a different design at the end of the day. No need to discuss that here (since this is for tracking feature updates we shouldn't)

Plan for 1.8 here: https://github.com/kubernetes/kubernetes/pull/46843#issuecomment-314633433

cc @kubernetes/sig-storage-feature-requests

Copying comment from https://github.com/kubernetes/features/issues/350:
Both Nutanix and Rook are pursuing Flex volumes, which will be out-of-tree and do not need to be tracked for the release.
I will keep both these feature bugs active for 1.8 until code freeze--in the unlikely case we need to fall back to in-tree volume plugin. At code freeze, we will close both of these issues and remove them from tracking for 1.8.

@saad-ali Sounds good. I am currently working on a Rook-flexvolume and will soon test with @verult WIP patch. Once i do this, i should be able to provide feedback or any road-blocker.

Closing this tracking issue, per notice above, as we are approaching code freeze


Updated js code

The latest npm package for durable-functions has df as an object not as a function. Upgrading the code for the same.

@dixitsuneel : Thanks for your contribution! The author, @cgillum, has been notified to review your proposed change.


Week 5: Design Starters

Part 1

Fibonacci and Hacks

Part 2

JavaScript
Calculator with HTML

Part 3

PBL Idea

Crossover Grade: (2.7+/3.0)

Completed Fibonacci and related hacks
Really nice calculator using JavaScript and HTML
Good demonstration of understanding of JavaScript
PBL outline was completed

Could be improved:

PBL outline could be more thorough


feat: add payment refund functionality (CyberSuorce)

Related Ticket:
https://github.com/mitodl/mitxonline/issues/571 (Part of the ticket - the refund API itself is added to this common payment_gateway app and will be consumed by the applications e.g. https://github.com/mitodl/mitxonline/pull/599)
Description

Adds the configuration keys to be used for CyberSource Rest APIs
Adds start_refund functionality in the Cybersource payment gateway
Uses https://github.com/CyberSource/cybersource-rest-client-python for refunds (The SDK/Client for Cybersource REST APIs for python)

How should be tested:

Acquire the keys MITOL_PAYMENT_GATEWAY_CYBERSOURCE_MERCHANT_ID , MITOL_PAYMENT_GATEWAY_CYBERSOURCE_MERCHANT_SECRET, MITOL_PAYMENT_GATEWAY_CYBERSOURCE_MERCHANT_SECRET_KEY_ID from CyberSource sandbox if you have any and set then in the environment variables if you are testing independently or .env file of the application if MITxOnline or other. (Ideally, these Keys should be from our RC's cybersource account)
When you install this plugin you should call start_payment method from the CyberSource gateway with Refund object.

PaymentGateway.start_refund(
            ECOMMERCE_DEFAULT_PAYMENT_GATEWAY,
            refund_object,
        )

The refund has the following conditions that can be tested:

API Success:
Returns a ProcessorResponse object that the caller app can use to perform whatever they need
API Failure ("DUPLICATE_REQUEST"):
Raises RefundDuplicateException when the refund API call is duplicate
API Failure (General):
Raises the exception(Mostly CyberSource.rest.ApiException) to the caller to decide what their
application behavior

NOTE:

If you don't have CyberSource RC keys, you can use the keys from their samples test client https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/data/Configuration.py#L20-L21
REST API keys are different from Secure acceptance keys so we can't use secure acceptance keys from RC.
For creating payments you can use https://developer.cybersource.com/api-reference-assets/index.html#payments_payments_process-a-payment. Make sure to add true for capture in the request

"processingInformation": {
    "capture": true
  },

If anything is unclear, let me know!

@rhysyngsun The PR is ready for your review again.

@rhysyngsun this was ready for review earlier, but this got some conflicts after the sheets PR was merged. I have resolved the conflicts and took the liberty to bump the version of payment_gateway. Could you review this?
Crosspost: This is associated with the MITxOnline PR and the settings as mentioned in a comment have already been moved here.

Could you also add some sample code to the README as well as some documentation on the settings being used?

@rhysyngsun Thanks for the feedback, It's addressed. This is ready for your review again.


Add service-location layout

Resolve #107.
Test URLs:

Before: https://main--shredit--stericycle.aem.page/drafts/janlucaa/locations/location-type-1
After:

https://issue-107--shredit--stericycle.aem.page/drafts/janlucaa/locations/location-type-1
https://issue-107--stericycle-shared--aemsites.aem.page/drafts/janlucaa/locations/location-type-1

@kronnox I'm a little bit leery of merging this as the preview urls are all messed up. However, if I pull the branch and run it locally, it looks pretty good.


[Storage-file] [Storage-queue]Improve mypy typing

Hi @annatisch I'm just closing out old issues. Could you provide more context on this?

Put a PR for it - will close this issue.


Getting hostname based on environment type

Present Github hostname Is hardcoded to github.com, now proposing to have hostname based on the environment type

LGTM 🚀


Doesn't the Rebase action always fail on empty commits?

Pretty easy to reproduce... just try to rebase onto develop a commit, whose all changes are already present on develop (and thus is "empty" from the PoV of the rebase).
What happens in either case? We've added  --keep-empty to rebases (see com.virtuslab.gitmachete.frontend.actions.base.BaseSyncToParentByRebaseAction#getIdeaRebaseParamsOf)... but it seems that IntelliJ is failing on that, a Retry is needed :/
Preferably, include a regression test in UI tests (by extending the existing UI test for rebase).

Turns out we need to use a different flag instead of --keep-empty we should be using --empty keep (or both). Git rebase manual

https://github.com/JetBrains/intellij-community/pull/2117

Marking as on hold, as it's blocked on review/release on JetBrains' side

Actually, while we're waiting (which will be until IDEA 2022.3 is released, or even until 2023.1)... @MaciejG604 could you open a PR to this project which uses the option added in https://github.com/JetBrains/intellij-community/pull/2117? Note that since we'll still maintain the compatibility with 2022.1 & 2022.2 (which don't & won't support EMPTY_DROP), the existence of EMPTY_DROP needs to be checked via reflection; if it's absent, then it won't be added (thus maintaining compatibility with 2022.1&2)


[iOS] Can't play track store on Firebase

Configuration
Version:
1.1.4
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
Memory: 21.87 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 28
Build Tools: 28.0.3
IDEs:
Android Studio: 3.4 AI-183.6<IP_ADDRESS>22156
Xcode: 10.2/10E125 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.4 => 16.8.4
react-native: 0.59.3 => 0.59.8
npmGlobalPackages:
react-native-cli: 2.0.1
Issue
I'm using the Firebase Storage module to store my audio files. The problem is that Firebase Storage uses %2F to indicate it's internal file structure in the URL and it's being encoded to '/'.
This problem only occurs in iOS, the Android version of the app works as expected.
This is the audio I'm working on:
https://firebasestorage.googleapis.com/v0/b/hupper-mobile.appspot.com/o/audio_meditation%2Fanxiety%2FTeste_Raffael Marfará_20 segundos.mp3?alt=media&token=55aff5c0-1af7-4a8b-b4a2-f450c12f181c

I found the problem was that the model MediaURL.swift was encoding and decoding the URL it was given.
I'm not swift programmer  and don't have the time to learn right now so I just commented some lines until it worked.
I forked the library just so I can run it in my project ASAP but I hope to find a proper solution.
import Foundation

struct MediaURL {
    let value: URL
    let isLocal: Bool
    private let originalObject: Any

    init?(object: Any?) {
        guard let object = object else { return nil }
        originalObject = object

        if let localObject = object as? [String: Any] {
            let uri = localObject["uri"] as! String
            isLocal = uri.contains("http") ? false : true
            let encodedURI = uri.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
            value = URL(string: encodedURI.replacingOccurrences(of: "file://", with: ""))!
        } else {
            // ESSE TRECHO FOI COMENTADO PARA FUNCIONAR COM O FIREBASE STORAGE
            let url = object as! String
            // let urlencoded = url.removingPercentEncoding
            isLocal = url.lowercased().hasPrefix("file://")
            if true
            // ESSE TRECHO FOI COMENTADO PARA FUNCIONAR COM O FIREBASE STORAGE
            // let encoded = urlencoded!.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlFragmentAllowed
            //     .union(.urlHostAllowed)
            //     .union(.urlPasswordAllowed)
            //     .union(.urlQueryAllowed)
            //     .union(.urlUserAllowed))
            {
                value = URL(string: url.replacingOccurrences(of: "file://", with: ""))!
            } else {
                value = URL(string: url.replacingOccurrences(of: "file://", with: ""))!
            }
        }
    }
}

Duplicate of #543


Out of memory on adding viewer with specific data

v1.13.10
Steps to reproduce:

Open table from this file:
OOMscatter plot small.csv
Add scatter plot or histogram

Expected results: viewer is added without issues.
Actual results: browser tab freezes and crashes with 'out of memory' error after a while.

DG v. 1.14.1


Project 📃: Cryptocurrency Finder App in React

WebMasterLog Repository (Proposing new issue)
:red_circle:  CryptoCurrency Finder App
:red_circle: It list down the different crypto coins using the API.
:red_circle:  React+Vite
:red_circle: Category :  React JS project
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : Sai Manjari
GitHub Profile Link :  https://github.com/Saimanjari777
What is your participant role? GSSoC'24

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@Saimanjari777 Assigned to you. Follow the contributing guidelines carefully.


executor: clean up code

Update kvm.h with #defines for the VMCS fields used in
kvm_amd64.S and replace the VMCS field numbers with the
corresponding field names.
This change has no effect on coverage, that has been
verified.

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

This will grow every KVM reproducer by 100 lines of code. Is it intentional?
executor/*.h files are not "normal" source files, they participate in reproducer generation and we tried to not increase number of lines w/o a real reason (e.g. introduce a constant if it need to be used in 2+ places).

Oh...I didn't know that. I just thought the change would help code readability. We can ignore it then.

Maybe improving comments on these lines will help (but they seem to be all commented so it's possible to match these magic consts to meaning).


Replaced BUILD_TESTS option with GCEM_BUILD_TESTS

When the library is used in another project, the more generic BUILD_TESTS might be already used, and building tests for libraries is not always desirable. This simple PR just changes that CMake option to GCEM_BUILD_TESTS so that the final user can selectively choose to build tests or not for each library.
By the way, great library!! It's awesome :D

Merged. Thanks for the PR.


Add support for awslogs driver

Have tested by adding awslogs to the log driver properties in libraries/docker_container.rb and libraries/docker_service_base.rb.

Curious but can't you just specify log_driver in the the docker_service resource ?


[Facebook]Promisify APIs

Hello 👋
Some Facebook APIs need to be Promisified in order to to support Promises in addition to callbacks.
Her's the list of APIs that not yet promisified

[ ] attachment_upload_api
[ ] nlp
[ ] tags
[ ] handover
[ ] broadcast_api
[ ] insights_api

And her's those already promisified :

[x] messenger_profile_api
[x] user_profile

Good luck!

I'm on it @ouadie-lahdioui, if you don't mind.

@ouadie-lahdioui I've made the necessary changes. Should I also create the related specs? What's the agreement when it comes to testing?

You need to make a new PR to the project.

Done 👍 https://github.com/howdyai/botkit/pull/1520

Hi @ouadie-lahdioui,
I'm looking at the docs, and thinking about updating them with my recent changes. But I can't figure out where I should make these changes. Probably there is another repo?
Can you please point out where I can document the promise version of the edited methods?
Thanks

Awesome!
Her's the new documentation repository.


question: how to extract individual files

It seems the overweight compare to Tar+Zstd is due to the fact that files are compressed individually, like for Zip or 7zip.
How to extract individual files, based on name, path or pattern ?

Having usage examples in Readme would be useful, empty Readme does not provide any confidence in the project.
https://pack.ac/cli-documentation

--include Specifying a file or folder in a Pack file to unpack or list. It can be set to a path or an ID. It is allowed to be used more than once. It will use an optimized algorithm to process each item just once.


#101: Wrong regex for topics in macro issues (closes #101)

Issue #101
Test Plan
tests performed
Tested locally: the sub-issue button is enabled even without a trailing space.

🎉


Moving or renaming scenes in the editor or changing properties in custom resources causes scene corruption

Godot version
4.2.beta4
System information
Windows 11, AMD Ryzen 5 3600, RTX 2060
Issue description
The Godot engine will lose references to scenes UID cache, causing scenes to register as corrupted. Animations will still work and overall functionality will be retained, but the user loses the ability to open the corrupted scenes. The console will show the below error code. Because scene functionality will be preserved, I believe this has to do with how Godot handles the UID caching of scenes with custom resources

Steps to reproduce
This can happen when removing/renaming files whether inside or outside the Godot editor (more common outside the editor). It can also happen if you change, rename or delete properties from custom resources.

Create a custom resource, add some properties
Create a script that exports a variable of type custom resource
Create a scene that uses that script. Assign an instance of the custom resource to the script
Delete a property from custom resource script
Move the scene in either the Godot editor or Explorer
OR -
Save the script, not the scene

Minimal reproduction project
N/A

Can't reproduce, please attach a minimal project from right before the scene gets corrupted.
Also be sure to try the newest beta.

proj.zip
I believe this should work. Please let me know. I deleted the .godot folder as instructed as well as the addons folder in order to make sure I meet GitHub's requirements. The 'player.tscn', 'dev_room.tscn' and 'spell_container.tscn' scenes all are corrupted, and opening them causes the error shown to be logged.

I know that might be happening here.
This line:
@export var spell_container_template:PackedScene = preload("res://Content/Cards/Spells/spell_container.tscn")

Preload is known to corrupt resource cache in various ways. I think spell_container.tscn fails to load for some reason (e.g. missing resource or something), causing the scene state to contain no nodes. Then when you try to open the scene, it's not loaded from disk, rather it's using the broken cached version. Restarting the editor seems to fix it.

Then when you try to open the scene, it's not loaded from disk, rather it's using the broken cached version. Restarting the editor seems to fix it.

I ran into a similar issue that might have been caused by this. After moving/renaming some scenes or scripts in 4.2b5 (or6?) one of my scenes got corrupted and would not open in the editor, even after I reverted all the file changes and moves using git (so all files on disk were back to their pre-change state).
Restarting the editor didn't fix it, but running the game did, which felt unexpected. For cases like where it seems that the cache is corrupted (and the engine can tell this, since it's showing you an error), couldn't it just try to re-load the scene from disk once and see if that fixes it? In my case I think this is what happened, but I had to run the game to get it to reload the file cache since it wouldn't do it on open or restart of the editor.

For what it's worth when a scene becomes corrupt and won't open due to this error:

Right-click the corrupt scene in Godot and click Show in File Manager
Rename the scene from 'main.tscn' to 'main1.tscn' where 'main' is the name of the corrupt scene.
Tab back into Godot and double-click the corrupt scene. Now it opens.

I have another example:
Here's what the exported variable looks like script looks like
@export var action_list : Array[CombatAction] = []

And here's what it looks like in a saved scene using that script
action_list = Array[Resource("res://scenes/combat/actions/combat_action.gd")]([ExtResource("3_17dhw"), ExtResource("4_scp8g"), ExtResource("3_meexk")])

The script defining the custom resource is only defined by path, and if I move/rename the script Godot won't update the path in the scenes that depend on it. The scene parser seems to fail on errors (not complaining) so in the end you get a supposedly corrupted scene which is actually just a scene with a missing path update


Error while loading shared libraries:  libnss3.so

I get the following error when running Code on Ubuntu 14.04:
error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

I get the same error when building and running from source.

The issue was resolved by installing libnss3-dev for Electron.
Hat tip to this pull request in the electron repo.


Release 1.42

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[x] Automated Testing

[x] Sufficient User and Developer Documentation

[x] Passing Jenkins Build

[x] Peer Code review and approval

Positive Test Case

https://github.com/hydroshare/hydroshare/issues/4175

METRIC
VALUE

NEW CODE SMELLS
0

NEW BUGS
0

NEW SECURITY HOTSPOTS
0

NEW DUPLICATED LINES DENSITY
0.0

NEW VULNERABILITIES
0

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4189


Torch not working in iOS Safari / Android Firefox

With the setup that I have, I set the torch to automatically turn on / off when opening and closing the barcode scanner, and this works properly on Android / Google Chrome.
However, this does not work properly in the other 2 setups I have tested:
Firefox on my Android device,
Safari on my iOS device.
I would like to get it working on Firefox of possible, but It's possible that's just a limitation with the browser.
I am more concerned with getting it working on iOS, as I have received reports from iOS users that specifically need to use the barcode scanner in low light conditions.
I have not tried chrome on iOS yet, but I will update this post once I am able.

hmm. I'm not very confident on iOS supporting enabling torch/flash in Safari.  Apple has been absolutely terrible with media support in iOS Safari, taking years to support features, and then breaking some of them for no obvious reason.
This looks to be about the simplest test example I see out there https://jsfiddle.net/39puneug/4/
Give it a try, and see if it works?
A fully browser based solution might not be the answer for iOS in that case.  Perhaps Cordova has something that can help, though.

Also, MDN/Mozilla offers a playground where you can test out various constraints so you might try that
https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints#result

According to the constraint playground, the torch constraint is not available in iOS safari.
so let me ask a new question. I would think that a workaround would be to turn on the flashlight first, and then start scanning barcodes. However, this does not work because starting the barcode scanner always seems to turn the light off, if it's already on. Any idea what causes this behavior, and if it can be disabled?
It seems weird that all browsers are able to turn the light off, but not turn it on.

i don't know anything about iOS internals, but i'd guess that they probably reset the camera, including the flash, to a specific state when turning it on. :|  I'm guessing that you can't turn it on after starting the camera, from a system menu, like you probably can in Android?
As an aside, we just in the most recent version of iOS got the ability to even use the camera in WebView, previously it was restricted to Safari only :(

The light rest happens in both iOS and Android,
in the Android Chrome,  it turns the light off and then back on again.

TODO: Update documentation to include some information about how to use the Torch and Zoom methods, and what platforms they are known to be available on.


Support for Filter Flags such as IP Address, Protocol, etc

netsh comes with quite a few filter flags when capturing the ETL file. I have noticed when using these filters that the resultant pcapng file has packets missing when comparing directly to wireshark capturing on the same interface (with the same filter).
Example filter:
netsh trace start capture=yes report=disabled tracefile=".\NetTrace.etl" persistent=no Protocol=17 Ethernet.Type=IPv4
This should capture all IPv4 UDP traffic, however, once I convert the file using etl2pcapng there are many packets missing. I have found this also using IP Address filters using the IPv4.Address flag. When using IPv4.SourceAddress or IPv4.DestinationAddress I don't seem to get any output in the pcapng file.
Are these filters supposed to work with etl2pcapng?

Hi, first question: how do you know that packets are missing in the pcapng file?
Second question: how do you know that the packets are NOT missing in the original ETL file (which seems to be implied by your issue description)?

Hi, If I open the pcapng file with Wireshark the packets are not displayed. So I assume they are not in the file.
I don't know that the packets are not missing in the ETL file. I have made an assumption that netsh works correctly as it's been around for a long time. I would have liked to open up the ETL in message analyser, however, it's not available anymore and has been replaced with this project :)

To verify if original ETL file has packets you are missing in the converted output, you can use two tools:

UI tool for ETL - microsoft/perfview: PerfView is a CPU and memory performance-analysis tool
tracerpt | Microsoft Docs - you can convert ETL data to CSV

Thanks, I was able to open the ETL with perfview and it looks like the packets are also missing in the ETL file. It appears that the netsh filters don't behave as expected.

Great, thanks. I looked into this further to see if it wasn't just something to do with my laptop. I tried testing the same filter across three machines. Two of the machines were laptops running Windows 10 and the other a desktop using Windows 11. I used the same filter on each machine:
netsh trace start capture=yes report=disabled tracefile=".\NetTrace.etl" persistent=no IPv4.Address="<IP_ADDRESS>" Ethernet.Type=IPv4
I ran a Wireshark capture on the interface also with a filter:
ip.addr == <IP_ADDRESS>
From here I pinged <IP_ADDRESS> and did a nslookup (<IP_ADDRESS> is the DNS server).
The outcome on the Windows 10 laptops was the same: Most of the inbound return packets were missing from the ETL capture. However, on the Windows 11 machine it worked fine. From this I conclude that the issue must be Windows 10 specific and may well have been fixed in Windows 11 at some point. Hopefully, this gives you enough information to reproduce on Windows 10.

@jamescussen, you still haven't told me which exact packets are missing from the capture. You mentioned ping and nslookup, so was it ICMP packets that were missing? DNS responses from the DNS server?

In this case, all the response packets coming back from <IP_ADDRESS> were missing. I have attached an example of the Wireshark and etl2pcapng outputs for you to compare.
Capture Comparison.zip


"No services currently exists for key" on restoring History

I'm using Flow with a custom Dispatcher that supports showing multiple keys/screens at the same time (in my case, an underlying screen and modal(s) on top).  When my Dispatcher is restoring History from a stopped state, I figure out which keys/screens need to be inflated, and then I call this helper method:
  private fun inflateNewView(screen: Screen, traversal: Traversal): View {
    val context = traversal.createContext(screen, activity)
    val layoutResId = screen.layoutResId()!!
    val inflated = LayoutInflater.from(context).inflate(layoutResId, screenContainer, false)
    inflated.tag = layoutResId
    val incomingState = traversal.getState(screen)
    incomingState.restore(inflated)
    return inflated
  }

However, it looks like PendingTraversal only sets up a context for the top of the History, so when I try to inflate one of the non-top screens, it blows up:
Caused by: java.lang.IllegalStateException: No services currently exists for key StayScreen(placeID=LaTaqueria)
      at flow.KeyManager.findServices(KeyManager.java:72)
      at flow.Traversal.createContext(Traversal.java:44)
      at mypackage.FlowDispatcher.inflateNewView(FlowDispatcher.kt:295)
      at mypackage.FlowDispatcher.doMainScreenTransition(FlowDispatcher.kt:170)
      at mypackage.FlowDispatcher.dispatch(FlowDispatcher.kt:140)
      at flow.Flow$PendingTraversal.bootstrap(Flow.java:364)
      at flow.Flow$2.doExecute(Flow.java:139)
      at flow.Flow$PendingTraversal.execute(Flow.java:381)
      at flow.Flow.move(Flow.java:270)
      at flow.Flow.setDispatcher(Flow.java:137)
      at flow.InternalLifecycleIntegration.onActivityCreated(InternalLifecycleIntegration.java:141)

I think the fix is probably just to pre-create contexts for the entire History, but I don't know if that should be in bootstrap or dispatch.  Or am I just doing this custom Dispatcher wrong?

Talked to @loganj offline: the sanctioned way to do this is to use MultiKey.  Both KeyManager and KeyDispatcher have custom logic to handle MultiKey and do what i'm currently doing manually.


Collect metrics on database interactions that RPC is triggering

Which blocks is RPC most interested in?
How popular is the previous states (ie not pending or latest)
How popular is the old receipts (ie receipts on block older than HEAD-64)

we could collect these in either RPC handlers or blockchain package itself

Partially done in #1395 , closing to open more targeted issues if needed


Do we need coverage map for web app resource type?

Currently we see the coverage map (with no coverage information) for any web app resource on the resource landing page. Is coverage map relevant to web resources? Otherwise, it would be good not to display it.

I think the functionality as it is is correct.  If I go to a web app landing page in default (view) mode I do not see coverage.  This is because the resource does not have coverage.  For example see https://www.hydroshare.org/resource/9674a0af9f30410e9e02397c91284f54/
If I edit the web app instance I see coverage.  This allows an editor to set coverage.
Since web apps are a generic mechanism for linking to apps, and it may be possible to have an app that is coverage limited (e.g. national water model apps have coverage only for the US), I think that the coverage metadata element should be kept for apps and that the current behavior that does not show it unless it is populated should be retained.

Seems not an issue as per @dtarb . So closing.


Failed to start debugger on test because Error: Configured debug type 'coreclr' is not supported..

Environment data
dotnet --info output:
dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version:            1.0.0-preview2-003121
Commit SHA-1 hash:  1e9d529bc5
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.11
OS Platform: Darwin
RID:         osx.10.11-x64
VS Code version:
C# Extension version:
Steps to reproduce
1 - Wrote the test:
    [Fact]
    public void FakeTest()
    {
        Assert.True(true);
    }

Click on "debug test" code lens in order to debug a single test
Expected  behaviour
I can set a breakpoint to a test code line and the debugger stop at the breakpoint line
Actual behaviour
The error: "Failed to start debugger on test because Error: Configured debug type 'coreclr' is not supported.." appairs on top error bar.
In addition I cannot set a breakpoint into the editor.
Note:
That's the project.json
{
"version": "1.0.0-*",
"testRunner": "xunit",
"dependencies": {
"xunit": "2.2.0-beta2-build3300",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Sgat.Engine": {
"target": "project"
}
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}
}
}
}

Are you able to start debugging a new blank console application?
Create a new blank app:
mkdir ~/test
cd ~/test
dotnet new
dotnet restore
code .

Then click yes when prompted with "Required assets to build and debug are missing from your project. Add them?"
After the assets have been added, set a breakpoint in Program.cs and start debugging. Does this succeed?

Done, but I cannot able to set a breakpoint, and after start debugging the following error show:
Configured debug type 'coreclr' is not supported.
Is there a way to completely uninstall vscode and reinstall a clean instance?

This stackoverflow has some info. I would suggest moving the  VS Code app package to the trash as well as wiping out the settings as described in the stackoverflow post. Additionally, delete ~/.vscode/extensions/* to cleanup all currently installed extensions.
With the error you are describing it sounds like VS Code does not understand that the C# extension is installed.

After deleted extensions and uninstall code, I can set breakpoint and start debugging sessions on a new clean vscode installation.
Thanks for the support!
Best Regards
Gianluca


add hooks option to scroll restoration docs

While using the scroll restoration example I rewrote it using hooks and I thought it'd be useful to add it to the docs, as I'm sure others will want to as well and it'll save everyone time.

Thanks!


Update Constants.ts

Micah:
Ah, that seems easy then. Just submit a PR that sets EIP1_REQUIRED_EDITOR_APPROVALS to 5. That will functionally disable auto-merge unless we have 100% participation (which never happens).

Fixes #53


Added updated virtual-desktop-accessor.dll to fix moving windows between desktops

Fixes #131 by adding Ciantic's updated virtual-desktop-accessor.dll, as suggested in the comments.
Also seems to resolve #133, though I hadn't noticed that issue before making the change.

Thanks. This usually happens with every large Windows update. I haven't updated yet, so I can't test the new DLL with my app, that's why I haven't released a new version. As soon I do that, I'll merge this.


python312Packages.elmax-api: <IP_ADDRESS> -> <IP_ADDRESS>

Diff: https://github.com/albertogeniola/elmax-api/compare/refs/tags/v<IP_ADDRESS>...v<IP_ADDRESS>
Changelog: https://github.com/albertogeniola/elmax-api/releases/tag/v<IP_ADDRESS>

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 361582

x86_64-linux

:x: 1 package failed to build:

home-assistant-component-tests.elmax

:white_check_mark: 4 packages built:

python311Packages.elmax-api
python311Packages.elmax-api.dist
python312Packages.elmax-api
python312Packages.elmax-api.dist

Done in #363268.


bugfix: DEFAULT_PROVIDER config is invalid

As long as self._is_valid_llm_key(self.OPENAI_API_KEY) and not self.OPENAI_API_TYPE and self.OPENAI_API_MODEL is true, LLM will use openai, DEFAULT_PROVIDER is invalid.
If users want to change to other LLM, they have to comment out OPENAI_API_KEY in the config if they have set it before.

The dev branch can avoid the problem. So I will close it.


Version tags

Hi!
If it's not too much of a hassle, would it be possible to create Git tags or even GitHub releases for the current and any new versions?
I'm in the process of adding PoseLib as a package to ConanCenter (https://github.com/conan-io/conan-center-index/pull/24770) and I would like to use a real version string, such as the current 2.0.3, as the package version, but the lack of corresponding Git tags makes it a bit ambiguous whether the current version in the repo is an upcoming or a finished release.
The tags also help with keeping track of newly added versions for package updates: https://qchateau.github.io/conan-center-bot/#/updatable

Something like this?
https://github.com/PoseLib/PoseLib/releases/tag/v2.0.3
@vlarsson: yes, it would be nice create releases of new versions. I was wondering what a good way would be to make this a bit more automatically. Currently the version is in this line:
https://github.com/PoseLib/PoseLib/blob/90f47ffce946569f00f410a528a6a7c4fce5fea2/CMakeLists.txt#L3
Probably it would be good to have a version.txt or something external that can be easily parsed? (also to be used in the python binding).

@pablospe That's perfect. Thank you!

@pablospe Thank you for your quick action!! :clap:

One more tag:
https://github.com/PoseLib/PoseLib/releases/tag/v2.0.4

Hi @valgur. I was wondering if you could add a small section in the README, so people (including myself) know how to use this. That would be very useful!

@pablospe Hello! I'll open a PR with instructions!


Add Helper Interface For Custom Activity Contracts

Task/Issue URL:
Description
This Interface provides help to easily use custom activity contracts. e.g: with this implementation you only need to define data classes (Serialize or Parcelize), Bundles or primitive types and avoid overwriting createIntent or parseResult functions every time you write a custom contract.

@DeFuex does this PR address any accepted issue or discussion in our repo?
Please refer to our contribution guidelines to know more about how to contribute to the project.

@cmonfortep i don't think it's an accepted issue or one that exists (yet), but i will check the guidelines properly

Thanks, just create a discussion first, and we can chat about it. If it's something that can improve our codebase we can decide next steps. 👍
I'm closing this PR until we decide what to do.


--no-browser-field flag not working

When using the --node flag it correctly sets argv.bare to true and argv.browserField to false. However when using the --no-browser-field flag argv.browserField is undefined.
Discovered because --node was giving different behaviour than --bare and --no-browser-field

It looks like internally it's using a camel cased version instead of a dashed version.

Update: found it! There's a space in 'browserField ' in bin/args.js

Fixed now in 10.2.3.


Datepicker closes on month navigation when an onBlur prop is provided

The GIF shows the problem:

This is the specific usage.
My short-term fix for this has been to downgrade to 0.9.0, introducing different bugs. :) I first noticed this a couple of releases ago and tried to find the problem with no success, I suspect the problem is specific to my implementation.
Any ideas? Thanks!

Naturally, I found some answers after logging an issue. :) I've traced it back to #129. I'm using a custom onBlur callback which causes this code to run, closing the calendar. My first thought is to simply add
this.setState({
  virtualFocus: true
});

to the increaseMonth and decreaseMonth functions... but handleBlur gets called after them and resets virtualFocus to false.

Is this still happening. We made some changes around the virtualFocus element. Curious if this solved your issues too.

Ping @thenickcox: if you get the chance, please update this library to latest and report back. Thanks. :)

I'm experiencing this out of the box with 0.15.2 and React 0.14.2... but without an onBlur this time. I'll try to track it down.

This bug also shows up in the onBlur example: https://hacker0x01.github.io/react-datepicker/#example-9

Working on tracking this down. The problem seems to be with this code. Is there a case where virtualFocus is set back to true during that 200ms timeout?

Ping @at0g. Any thoughts on what's happening here? The original implementation of handleBlur, for reference.
It appears that onBlur is fired by the input when clicking on the popover (tested in FF, Safari, Chrome). This seems like a pretty fundamental problem... months are changeable if onBlur is set to a non-function. Unfortunately, that means that tabbing out of an input does not close the popover (observable in the examples); this is particularly problematic on mobile.


fix: kebab menu opening

What does this PR do and why?
Closes JB-699 : kebab menu opening
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3970   👈

This comment was auto-generated by Graphite.


add a mock for kafka and use it for testing

created an interface for segmentio writer and use it in a test.
connect the segmentio error log to the application log
fix a small bug where the topic "comqtt" seems hardcoded, use the config value instead

good job.

I can't find a good mock mysql and postgresql lib. Do you have any good suggestions?

I can't find a good mock mysql and postgresql lib. Do you have any good suggestions?

In my repo I've made the following change. It'll check if there is a local mysqld or postgresql on the host. If there isn't a sql server on the host it'll t.Skip() the tests that need the server - since those will fail anyway.
This will allow us to keep the tests those tests, but without having the tests turn up red if there is no sql server running.
I'm a bit skeptical of mocking sql servers. The mocks are very fragile. We could look into having the tests spin up mysql and postgresql servers, but I suggest we wait with that until we have more extensive testing of those components in place.
Sounds good with you?


Lint: Better Account Management

Describe the feature
Currently to manage/track/cancel subscription I have to open vscode in a project that has million lint, run it and then I'm able to see an option to see my account, that was kind of frustrating to just see my account nothing else.
If I can help let me know, I'm willing to!
Additional information

[X] Would you be willing to help implement this feature?

Thank you for sharing this @AmrTamer23. Apologies for that experience. We will pay attention to this in the next release.

@AmrTamer23 I'm looking into improving this!
We just released a new version. Can you try running the setup script npx million@latest? Once it's done, please restart your VSCode/Cursor. Let me know if that works for you!


stake-snapshot and pool-params query commands

This PR provides two new query commands that should be useful to SPOs who are using the CNCLI set of tools, for example (as well as for internal IOG purposes):
cardano-cli query stake-snapshot --stake-pool-id <poolid>
cardano-cli query pool-params --stake-pool-id <poolid>
These commands allow users to access two pieces of information from the ledger state

stake snapshots
pool parameters, including retirements

The stake snapshot returns information about mark, set, go snapshots for a pool, plus the current total stake that can be used in a 'sigma' calculation:
cardano-cli query stake-snapshot --stake-pool-id a3e71398e80739522e907c35b8f652064e5268e62e9b78a9603f6b98 --mainnet
{
    "activeStakeGo":<PHONE_NUMBER>02160,
    "activeStakeMark":<PHONE_NUMBER>02160,
    "activeStakeTotal":<PHONE_NUMBER>9700987,
    "activeStakeSet":<PHONE_NUMBER>02160
}

The pool parameters return three pieces of information: current parameters, future parameters and retiring information.  They may be null if eg the parameters are not changing.
cardano-cli query pool-params --stake-pool-id a3e71398e80739522e907c35b8f652064e5268e62e9b78a9603f6b98 --mainnet
[
    {
        "publicKey": "a3e71398e80739522e907c35b8f652064e5268e62e9b78a9603f6b98",
        "cost": 340000000,
        "metadata": {
            "hash": "196eb1b2937af2c88647204920d19985501c99da3fc69e421a942b9b8f817e94",
            "url": "https://git.io/JTI4o"
        },
        "owners": [
            "6877dcb866858b2a4941351c98cd67202262bfd82a016cbbaa073927"
        ],
        "vrf": "11ad7c225b48721dbd9642de1ab05640fe53ab29af2df513f236cc7ac4617da6",
        "pledge": 0,
        "margin": 1,
        "rewardAccount": {
            "network": "Mainnet",
            "credential": {
                "key hash": "6877dcb866858b2a4941351c98cd67202262bfd82a016cbbaa073927"
            }
        },
        "relays": [
            {
                "single host address": {
                    "IPv6": null,
                    "port": 3001,
                    "IPv4": "<IP_ADDRESS>"
                }
            },
            {
                "single host address": {
                    "IPv6": null,
                    "port": 3001,
                    "IPv4": "<IP_ADDRESS>"
                }
            },
            {
                "single host address": {
                    "IPv6": null,
                    "port": 3001,
                    "IPv4": "<IP_ADDRESS>"
                }
            }
        ]
    },
    null,
    null
]

The main advantage over using query ledger-state is that these commands avoid the need to dump the full ledger state (time consuming and memory intensive - meaning they reduce the total system demands for SPOs), and will make it easier to support CNCLI and other tools.  They also use existing internal operations (such as the ledger pool stake calculation), meaning that the information is guaranteed to be identical to that which the ledger is using (and without having to write scripts to extract/correlate the information).
I have decided to put these under 'query' rather than 'pool' since they are extracting info from the ledger state.

I believe we need activeStakeMarkTotal, activeStakeSetTotal, and activeStakeGoTotal. The total active stake can change between each of the snapshots.

I would like to request a change to the pool-params output to make it more clear what the three different sets returned mean. See suggestion below.
In addition to this, I would like for the future set an additional field called activeInEpoch containing what epoch the future pool update becomes active.

Current output:
An array containing three unnamed sets for current, future, and retired.
[
  {
    "publicKey": "0b08b536ba3afe21fbd826fb92bee897a3d1e575a7849b2e6c4659ab",
    "...": "rest of the fields"
  },
  {
    "publicKey": "0b08b536ba3afe21fbd826fb92bee897a3d1e575a7849b2e6c4659ab",
    "...": "rest of the fields"
  },
  null
]

Requested output:
My idea would be to have a schema like this instead, replacing the JSON array containing three unnamed objects with a key/value schema where active and future contain a JSON object and retired the epoch number or null.
Makes it clean and easy to understand what is what.
{
  "active": {
    "publicKey": "0b08b536ba3afe21fbd826fb92bee897a3d1e575a7849b2e6c4659ab",
    "...": "rest of the fields"
  },
  "future": {
    "publicKey": "0b08b536ba3afe21fbd826fb92bee897a3d1e575a7849b2e6c4659ab",
    "activeInEpoch": 125,
    "...": "rest of the fields"
  },
  "retired": null
}


ec2 creation

webgate / accessgate / ebsapps ec2 boxes

Non-ASG ec2's due to the cofig differences between the boxes.

Web- Gate*1
AccessGate*2
EBS-Apps*1


WSL network crashes after 100 ssh connections

Windows Version
Microsoft Windows [version 10.0.19045.4529]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
When launching this script, it stops at the 100th iteration and the WLS networks breaks afterwards :
#!/bin/bash

for (( index=0; index < 200; index++ )); do
	echo "$index"
	ssh -q<EMAIL_ADDRESS>"docker images" | grep postgres | tr -s ' ' | cut -d' ' -f 2
done

After the 100th step, can't ssh into <IP_ADDRESS> and ping can't reach target after few minutes.
Expected Behavior
Expected to run this scripts to the end and WSL networks should stay fine
Actual Behavior
WSL network crashes, can't ssh into target and after 5 minutes, can't ping target.
Instead I can ping the IP address of the Windows local machine
Diagnostic Logs
No response

WslLogs-2024-07-09_14-57-24.zip

This is interesting. Can you details what you mean by network breaks ? Once you get in this state, can you share the output of something like: curl -v microsoft.com to see what the symptoms look like ?

@DomRakowski where is your postgres container running, same machine or remotely? Using WSL Ubuntu Noble and a Docker container running on a remote RHEL machine  all 200 connections are successfully executed:

test output
zcobol@toto:~$ ./wsl11759bug.sh
0
latest
1
latest
2
latest
3
latest
4
latest
5
latest
6
latest
7
latest
8
latest
9
latest
10
latest
11
latest
12
latest
13
latest
14
latest
15
latest
16
latest
17
latest
18
latest
19
latest
20
latest
21
latest
22
latest
23
latest
24
latest
25
latest
26
latest
27
latest
28
latest
29
latest
30
latest
31
latest
32
latest
33
latest
34
latest
35
latest
36
latest
37
latest
38
latest
39
latest
40
latest
41
latest
42
latest
43
latest
44
latest
45
latest
46
latest
47
latest
48
latest
49
latest
50
latest
51
latest
52
latest
53
latest
54
latest
55
latest
56
latest
57
latest
58
latest
59
latest
60
latest
61
latest
62
latest
63
latest
64
latest
65
latest
66
latest
67
latest
68
latest
69
latest
70
latest
71
latest
72
latest
73
latest
74
latest
75
latest
76
latest
77
latest
78
latest
79
latest
80
latest
81
latest
82
latest
83
latest
84
latest
85
latest
86
latest
87
latest
88
latest
89
latest
90
latest
91
latest
92
latest
93
latest
94
latest
95
latest
96
latest
97
latest
98
latest
99
latest
100
latest
101
latest
102
latest
103
latest
104
latest
105
latest
106
latest
107
latest
108
latest
109
latest
110
latest
111
latest
112
latest
113
latest
114
latest
115
latest
116
latest
117
latest
118
latest
119
latest
120
latest
121
latest
122
latest
123
latest
124
---cut---

WSL info:
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.19045.4651

@DomRakowski: Once you get into this broken state, can you share the output of: ssh -v <target> echo ok ?

@zcobol After upgrading from Ubuntu 22.04 to Ubuntu 24.04, when launching the script, it hangs after 100 SSH connections, but somehow WSL manages to recover and proceeds for another 100 SSH connections before hanging for a while.
This behavior is looped afterwards :

100 SSH connections
WSL hanging
100 SSH coonections
WSL hanging
etc ...

Can you confirm me this behavior is happening also on your side ?
My postgres container is running on a separate machine.

@OneBlue After upgrading Ubuntu to 24.04, the behavior is not as heavy as before but still present.
During the hanging part, it seems I can still ssh into the host, will do some further tests.
Interesting point to note, the behavior that I mentioned (100ssh connections, hanging, 100ssh connections, hanging, ... ) is also present on an another machine.
This machine is a NUC with the following hardware configuration :

CPU : 13th gen Intel i5 1340P
RAM: 32Go - 8Go used during test
Microsoft Windows [version 10.0.22631.3880]
WSL2 - Ubuntu 22.04

The machine that I work on is a laptop with this hardware configuration :

CPU : 12th gen intel i7 1265U
RAM: 32Go - 27Go used during test
Microsoft Windows [version 10.0.22621.3880]
WSL2 - Ubuntu 24.04

I'm pretty sure this is somehow related in the end to hardware utilization, but it shouldn't straight up break the network.


Ability to move cards between columns

Description
There should be a way to move cards between columns
Motivation
During "open canvas" style activities it's required for the users to place their cards on the wall and then have the latter moved/grouped.
The swapping could be done by either dragging or using left/right arrow buttons on each card.

Is there any update on this issue Fix..

Implemented.


import.sh crashes with "dupe adjacent pts" message

Running ./import.sh gets this:
Read ../data/shapes/blockface.bin (31)... 1.0183s
thread 'main' panicked at 'PL with total length 64.5492m and 9 pts has ~dupe adjacent pts: [Pt2D { inner_x: 12007.5373, inner_y: 10602.4716 }, Pt2D { inner_x: 12015.482, inner_y: 10598.8613 }, Pt2D { inner_x: 12026.4682, inner_y: 10598.3151 }, Pt2D { inner_x: 12035.0193, inner_y: 10599.51 }, Pt2D { inner_x: 12041.1216, inner_y: 10601.5844 }, Pt2D { inner_x: 12061.8626, inner_y: 10612.4761 }, Pt2D { inner_x: 12064.8633, inner_y: 10613.5627 }, Pt2D { inner_x: 12067.9835, inner_y: 10613.5039 }, Pt2D { inner_x: 12067.9871, inner_y: 10613.5014 }]', geom/src/polyline.rs:29:13
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::continue_panic_fmt
   7: std::panicking::begin_panic_fmt
   8: geom::polyline::PolyLine::new
   9: convert_osm::convert
  10: convert_osm::main
  11: std::rt::lang_start::{{closure}}
  12: std::panicking::try::do_call
  13: __rust_maybe_catch_panic
  14: std::rt::lang_start_internal
  15: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
dropping Timer during apply parking hints, due to panic?

(my OS is Mac OSX High Sierra)

One workaround: deleting the line --parking_shapes=../data/shapes/blockface.bin in import.sh


WIP: Handle case where manager isn't active due to upgrade

Solution for #2184.
An exception would be thrown by HighlyAvailableServiceInvocationHandler if the manager wasn't initialized (set by an atomic boolean inside of Manager) by the time it got a ManagerMessage from a tserver. The initialization process gets delayed due to things upgrading in the background (we wait for metadata to finish upgrading before proceeding to allow fate usage for example).
This proof of concept solution adds another boolean to keep track of the manager upgrade status. So the exception will only be thrown if the manager isn't initialized due to an error instead of during an upgrade.
WIP still as I am unsure on what HighlyAvailableServiceInvocationHandler should do if it notices manager isn't active due to upgrade. The placements of when to set and unset the new boolean could also be tweaked.

Still testing around for what to return. Things are seemingly in working order even when returning null.


Provide a formatting overload of make_error

Error messages produced from caf::make_error aren't formatted with fmt automatically, that means you have to call fmt::format to produce a dynamic message as the second argument to make_error. Sometimes this is forgotten, leading to strange looking error messages that consist of the verbatim format string followed by the list of arguments.
This annoyed me several times already, and this time was one time to many. So instead of fixing another local occurence I added a function that does the right thing.
I only switched over the buggy call sites for now, but I think we should switch over the codebase eventually for consistency.
:memo: Reviewer Checklist
Review this pull request by ensuring the following items:

[ ] All user-facing changes have changelog entries
[ ] User-facing changes are reflected on vast.io

Closing because this turned out to be more complicated that I thought.


Support alerta.io

 Issue by praveensameneni
Sunday Sep 06, 2020 at 06:47 GMT
Originally opened as https://github.com/opendistro-for-elasticsearch/alerting/issues/249

Is your feature request related to a problem? Please describe.
Alerta is very simple monitoring management system, at least it appears such to the user. It allows to manage alerts from many other monitoring tools on a single screen. Alerta combines an API server for receiving, processing and rendering alerts with effective Web UI and command-line tool.
Describe the solution you'd like
Alerta accepts alerts from the standard sources like Syslog, SNMP, Prometheus, Nagios, Zabbix, Sensu and netdata. Any monitoring tool that can trigger a URL request can be integrated easily. Alerts are submitted in JSON-format to an HTTP API. Alerts can be queried from the command-line or viewed in a slick web console
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
One of the common alerting management tools that is gaining lot of traction.
https://alerta.io/

Need to move this to the Notification repo


[REQUEST Membership]: New membership for JcJinChen

GitHub Username
@JcJinChen
Organization you are requesting membership in
openyurtio
Sponsors
@rambohe-ch
Requirements

[x] I have joined in the community Dingding and [WeChat]
[x] I often attend Openyurt Community Week
[x] I have reviewed the [community membership docs]
[x] I have spoken to my sponsors ahead of this application, and they have agreed to sponsor my application
[x] I have checked my affiliation in devstats (if it's not correct, please fix in cncf/gitdm)
[x] I am actively contributing to 1 or more OpenYurt subprojects

List of your contributions

PRs reviewed / authored:
https://github.com/openyurtio/openyurt/pull/606
https://github.com/openyurtio/openyurt/pull/621

Issues :

Brief Introduction
Hi, everyone.I am a graduate student from Zhejiang University. I've been working on edge lightweight , including integrating OpenYurt with WasmEdge. I am glad to have a chance to take part in the OpenYurt Project. I'd like to make more contributions to the development of the community.

@JcJinChen welcome you to apply OpenYurt community member. agree +1

agree +1

agree +1

agree +1

@JcJinChen Congratulations you to become a member of OpenYurt community. We have sent a github message to invite you as member of OpenYurt, please check the message. and after joining member of OpenYurt, you need to check two points in this issue https://github.com/openyurtio/community/issues/14

agree +1


Fetch commands don't have a nice error if the application isn't started

Obviously if the  use Ecspanse module isn't started as part of the supervision tree you get something like this:
iex(2)> Durandal.Entities.Player.fetch()
** (ArgumentError) argument error
    (stdlib 5.2) :ets.select(:ets_ecspanse_components_state, [{{{:"$1", :"$2"}, :"$3", :"$4"}, [], [{{:"$1", :"$2"}}]}])
    (ecspanse 0.8.0) lib/ecspanse/util.ex:63: Ecspanse.Util.__list_entities_components_memoize/0
    (memoize 1.4.2) lib/memoize/cache.ex:111: Memoize.Cache.do_get_or_run/3
    (ecspanse 0.8.0) lib/ecspanse/query.ex:1002: Ecspanse.Query.filter_for_entities/1
    (ecspanse 0.8.0) lib/ecspanse/query.ex:214: Ecspanse.Query.stream/1
    (ecspanse 0.8.0) lib/ecspanse/query.ex:237: Ecspanse.Query.one/1
    (durandal 0.1.0) lib/durandal/entities/player.ex:16: Durandal.Entities.Player.fetch/0
    iex:2: (file)

For people brand new to the project who maybe missed that line at the start a more informative error message would be a nice pointer.
For context, the fetch command is from the tutorial (swap Hero for Player)
  def fetch do
    Ecspanse.Query.select({Ecspanse.Entity}, with: [Components.Owner])
    |> Ecspanse.Query.one()
    |> case do
      {%Ecspanse.Entity{} = entity} -> {:ok, entity}
      _ -> {:error, :not_found}
    end
  end

Thanks for the feedback. I will try to see if I can generically implement a meaningful error, for all query functions.


fix: cryptic error message for user not found

Error message was mentioned in the following issue: https://github.com/zitadel/zitadel/issues/6784
Definition of Ready

[ ] I am happy with the code
[ ] Short description of the feature/issue is added in the pr description
[ ] PR is linked to the corresponding user story
[ ] Acceptance criteria are met
[ ] All open todos and follow ups are defined in a new ticket and justified
[ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
[ ] No debug or dead code
[ ] My code has no repetitions
[ ] Critical parts are tested automatically
[ ] Where possible E2E tests are implemented
[ ] Documentation/examples are up-to-date
[ ] All non-functional requirements are met
[ ] Functionality of the acceptance criteria is checked manually on the dev system.

Looks good, but the unit tests will need to be adjusted as well:
--- FAIL: TestSessionCommands_getHumanWriteModel (0.01s)
    session_test.go:140:
        	Error Trace:	/home/runner/work/zitadel/zitadel/internal/command/session_test.go:140
        	Error:      	Target error should be in err chain:
        	            	expected: "ID=COMMAND-Df4b3 Message=Errors.ie4Ai.NotFound"
        	            	in chain: "ID=COMMAND-Df4b3 Message=Errors.User.NotFound"
        	            		"ID=COMMAND-Df4b3 Message=Errors.User.NotFound"
        	Test:       	TestSessionCommands_getHumanWriteModel

Looks good, but the unit tests will need to be adjusted as well:
--- FAIL: TestSessionCommands_getHumanWriteModel (0.01s)
    session_test.go:140:
        	Error Trace:	/home/runner/work/zitadel/zitadel/internal/command/session_test.go:140
        	Error:      	Target error should be in err chain:
        	            	expected: "ID=COMMAND-Df4b3 Message=Errors.ie4Ai.NotFound"
        	            	in chain: "ID=COMMAND-Df4b3 Message=Errors.User.NotFound"
        	            		"ID=COMMAND-Df4b3 Message=Errors.User.NotFound"
        	Test:       	TestSessionCommands_getHumanWriteModel

fixed


How about a copy -> clipboard button

Instead of having to click #raw and select copy/paste, how about a quick button ala the one in github for copying clone link

https://github.com/hackjutsu/Lepton/commit/fe705f2898cbf785ffdac63e3c67920a9d7d356c