Incorrect DateFormat when using an uncommon English locale

Precondition: iOS with device language set to English (UK) and the region set to Russia, which results in an en_RU locale.
When using DateFormat, the date/time is not formatted as expected (using DD.MM.YYYY HH:MM as it is with the system's DateFormatter), instead producing an en_US formatted string with 12h formatting and MM/DD/YYYY format, which looks confusing to the end-user.
This happens even when explicitly setting the DateFormat locale using a string literal.
When using en_GB, for example, the string is formatted a bit more like expected (Probably because it's a locale that Intl "knows" how to use. )
Would like a clarification if this is a bug, and if it's planned to be fixed; and if there are any possible workarounds currently available (The issue in question is pretty severe and disrupting to my current project.)

As weak as it is right now, the fallback logic is wrong - in my opinion.
Consider a language tag like en_RU - en is the language where you want to see the texts and RU is the region code that defines in what format you want to see dates, and numbers formatted.
For example, let's take the call:
DateFormat.yMd().format(...);

Especially without a locale given in yMd, because I want to use the global format.
We start our journey here:
https://github.com/dart-lang/i18n/blob/f7d19cd07de1e2336b8dd4a683eedc2c0c4381fe/pkgs/intl/lib/src/intl/date_format.dart#L545
Due to constructor redirection we are now here:
https://github.com/dart-lang/i18n/blob/f7d19cd07de1e2336b8dd4a683eedc2c0c4381fe/pkgs/intl/lib/src/intl/date_format.dart#L266-L267
helpers.verifyLocale is located here:
https://github.com/dart-lang/i18n/blob/f7d19cd07de1e2336b8dd4a683eedc2c0c4381fe/pkgs/intl/lib/src/intl_helpers.dart#L174-L209
Now I spare out a bit, but due to en_RU we will end line 188 where the fallback begins.
One of the fallback is shortLocale:
https://github.com/dart-lang/i18n/blob/f7d19cd07de1e2336b8dd4a683eedc2c0c4381fe/pkgs/intl/lib/src/intl_helpers.dart#L236-L256
Due to that, the region for formatting being used is now en instead of RU, because it returns the first part of the language code.
However, the fallback should resolve to RU and if that one is not found, than it should fallback to en.
Because we have list of fallbacks and the first one wins, we possible could insert one before the locale fallback to have a region fallback.
Depending on the implementation that will be a breaking change.
It would be nice if @alan-knight or @mosuem could jump into this discussion, because it prevents using DateFormat without specifying the correct region each time.
I'd rather have a global solution that works for any DateFormat within the app.
It would totally be fine if you can set an option somewhere to enable the "region code fallback" in order not to introduce a breaking change.


Altered auto-reconnection attempt logic to comply with part 4 of the OCPP2.0.1 standard

According to part 4 of the OCPP2.0.1 standard: JSON over WebSockets implementation guide, section 5.3. Reconnecting,  there are some configuration variables, specifically:

RetryBackOffRepeatTimes
RetryBackOffRandomRange
RetryBackOffWaitMinimum

which dictate auto reconnection behaviour of the charge point. I have done my best to implement these changes and update the corresponding network test accordingly.
While the websocket code is shared between both OCPP versions, since OCPP1.6J (to my understanding) doesn't specify auto reconnection behaviour, it shouldn't be incompatible.

I got toxiproxy working, this code should at least pass the pipeline and worked in our implementation.

LG2M, merged 👍


Change license to Apache 2.0

Particle tools are licensed under Apache 2.0

Coverage remained the same at 66.341% when pulling 60de44f2ec4514c23bf880c473d919c24d125c46 on feature/license into 228f7ca8aa8e7ddbff4b7e697770585ff2bc3381 on master.


Help! LivePhoto downloading and caching!

my goal do caching and downloading system for livephotos
any one did something similar?

AlamofireImage doesn't currently support live images.


Leave group permission

Fixes: #31951

Screenshots and screen captures:

Self-review checklist

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

Communicate decisions, questions, and potential concerns.

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

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

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

Completed manual review and testing of the following:

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

I'm confused -- where's the new setting in the screenshot?

Uploaded the wrong image, fixed!

Ok, looks good, thanks! I assume @sahil839 and @timabbott are reviewing this one.

Code looks good to me aside from alphabetization stuff; I've not manually tested.

Fixed the alphabetical order.

Merged, thanks @shubham-padia!


Cloned & Customised Existing Theme But No Visible Change

I'm trying to do what should be a really simple thing here: I like the Wombat theme, except I want to swap the colours for Normal mode and Visual mode.
So, as per the FAQ:
Where should I store my own custom theme?

You could simply edit dark.vim in place, since this is the default theme.

But (especially if you are using a bundler to install airline), you may prefer to keep your theme separate:

Copy dark.vim into ~/.vim/autoload/airline/themes/your_theme_name.vim
Open that file and search-replace: :%s/#dark#/#your_theme_name#/g
(Optionally) test it with: :AirlineTheme your_theme_name
To make it load on startup, add to your .vimrc:
:let g:airline_theme='your_theme_name'

I've duplicated:  ~/.vim/bundle/vim-airline-themes/autoload/airline/themes/wombat.vim as ~/.vim/bundle/vim-airline-themes/autoload/airline/themes/madratheme.vim and then swapped those two colours round:
Wombat Theme

madratheme

and done the needful in my ~/.vimrc

However, I don't see any change when switching between the two themes. They both still use the original Wombat theme colours:

It can't be a caching issue, or anything like that, because I copied my new theme to a fresh install of vim-airline on a different computer and got the same result.
So where am I going wrong?
Environment
- vim: NVIM 0.1.7
- vim-airline: ???? --how do I find the version?
- OS: OSX 10,11,6
- terminal: iTerm2

where is your new theme?

It's in the same folder as the other Vim-Airline themes:
~/.vim/bundle/vim-airline-themes/autoload/airline/themes/madratheme.vim

no typo. Please show the file you have created.

Here's where I've put it:

...and here's the content of the file. As per my original post, it's just a duplicate of the Vim-Airline included Wombat theme, with a Find/Replace done to replace wombat with madratheme and then [in my theme] the colour definitions swopped between the normal and visual modes [compared to wombat theme]:
" vim-airline companion theme of madratheme
" looks great with madratheme256 vim colorscheme

" Normal mode
"          [ guifg, guibg, ctermfg, ctermbg, opts ]
let s:N1 = [ '#141413' , '#B5D3F3' , 232 , 192 ] " mode
let s:N2 = [ '#B5D3F3' , '#32322F' , 192 , 238 ] " info
let s:N3 = [ '#B5D3F3' , '#93a1a1' , 192 , 235 ] " statusline
let s:N4 = [ '#3D7EDB' , 113 ]                   " mode modified

" Insert mode
let s:I1 = [ '#141413' , '#FDE76E' , 232 , 227 ] " mode
let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 238 ] " info
let s:I3 = [ '#FDE76E' , '#242424' , 227 , 235 ] " statusline
let s:I4 = [ '#FADE3E' , 221 ]                   " mode modified

" Visual mode
let s:V1 = [ '#141413' , '#CAE682' , 232 , 153 ] " mode
let s:V2 = [ '#CAE682' , '#32322F' , 153 , 238 ] " info
let s:V3 = [ '#CAE682' , '#242424' , 153 , 235 ] " satusline
let s:V4 = [ '#739600' , 111 ]                   " mode modified:

" Replace mode
let s:R1 = [ '#141413' , '#E5786D' , 232 , 173 ]
let s:R2 = [ '#E5786D' , '#32322F' , 173 , 238 ]
let s:R3 = [ '#E5786D' , '#242424' , 173 , 235 ]
let s:R4 = [ '#E55345' , 203 ]

" Paste mode
let s:PA = [ '#94E42C' , 47 ]

" Info modified
let s:IM = [ '#40403C' , 238 ]

" Inactive mode
let s:IA = [ '#767676' , s:N3[1] , 243 , s:N3[3] , '' ]

let g:airline#themes#madratheme#palette = {}

let g:airline#themes#madratheme#palette.accents = {
      \ 'red': [ '#E5786D' , '' , 203 , '' , '' ],
      \ }

let g:airline#themes#madratheme#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
let g:airline#themes#madratheme#palette.normal_modified = {
    \ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , ''     ] ,
    \ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , ''     ] ,
    \ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , ''     ] }

let g:airline#themes#madratheme#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
let g:airline#themes#madratheme#palette.insert_modified = {
    \ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , ''     ] ,
    \ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , ''     ] ,
    \ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , ''     ] }

let g:airline#themes#madratheme#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
let g:airline#themes#madratheme#palette.visual_modified = {
    \ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , ''     ] ,
    \ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , ''     ] ,
    \ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , ''     ] }

let g:airline#themes#madratheme#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
let g:airline#themes#madratheme#palette.replace_modified = {
    \ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , ''     ] ,
    \ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , ''     ] ,
    \ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , ''     ] }

let g:airline#themes#madratheme#palette.insert_paste = {
    \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , ''     ] ,
    \ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , ''     ] ,
    \ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , ''     ] }

let g:airline#themes#madratheme#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
let g:airline#themes#madratheme#palette.inactive_modified = {
    \ 'airline_c': [ s:N4[0] , ''      , s:N4[1] , ''      , ''     ] }

if !get(g:, 'loaded_ctrlp', 0)
  finish
endif
let g:airline#themes#madratheme#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
      \ [ '#DADADA' , '#242424' , 253 , 234 , ''     ] ,
      \ [ '#DADADA' , '#40403C' , 253 , 238 , ''     ] ,
      \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] )

Aha! --I've just realised: as well as just changing the #hex colour definitions, I also needed to change the 3-digit colour codes too. I thought, as I was using iTerm2, which supports TrueColour, I only had to change the former.
I've got it working now!


Cancel Bot Bug: Front-End Shows Error - Please Stop Bot but Bot tx already withdrew.

What is happening?

Section description
Provide as much context as you can. Give as much context as you can to make it easier for the developers to figure what is happening.

Bot was stopped, but still shows up in My bots with the error text Please Stop Bot but Bot tx already withdrew.

How to reproduce?

Section description
Please write detailed steps of what you were doing for this bug to appear.

The Stop Bot Functionality is not fully tested and QA on either Palomabot or Curveot.
Also, https://etherscan.io/tx/0x2c4d3b5cfc21e54a6012109b20ee78e4d81bb5346d819e4f96e50edd9e12ebdb user was uanbe to see STOP bot icon and did not receive a tx to withdraw.
What is the expected behaviour?

Section description
If you know, please write down what is the expected behaviour. If you don't know, that's ok. We can have a discussion in comments.

Stop bot does not leave bots hanging.

When testing this again internally, @jamie088 confirmed that the transaction was canceled but the bot still shows in the API
Cancel transaction:
https://etherscan.io/tx/0xf7b0bc57b341a74fb84910afafcbc51e401576a9c29d7a8d8350bca687a0fa62
API result:
{"deposit_id":"40","token0":"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","token1":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","amount0":"5000000000000000","depositor":"0x8F5eBDdcf2bae86D3A4E3C4De427E705d2eBF432","deposit_price":"1915.64","network_name":"ETH","dex_name":"curve","bot":"dca_curve","number_trades":"1","remaining_counts":"1","interval":"600","starting_time":"1700499600","contract":"0x10a16b877680D352cf72bBfFF7A06Be1DC4d9644","sent_to_mixpanel":"0","volume":"9.5782","create_to_mixpanel":"1","created_at":"2023-11-17 16:49:55","coin_info":{"id":"usd-coin","symbol":"usdc","name":"USDC","platforms":{"ethereum":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","polygon-...

@webelf101

the ABI in the networks.json is wrong. That's why the script couldn't fetch the event.


accounts_loading: use load account with cache for filtering

Problem
account_matches_owner doesn't leverage read_only cache and always goes to the underlying storage, which is inefficient.
Summary of Changes
Replace account_matches_owner with regular accounts load.
Fixes #

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.7%. Comparing base (20ee70c) to head (64cef8c).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #1408     +/-   ##
=========================================
- Coverage    82.7%    82.7%   -0.1%
=========================================
  Files         871      871
  Lines      369894   369992     +98
=========================================
+ Hits       306158   306226     +68
- Misses      63736    63766     +30

blue: load_account put into cache
red: accounts_match_owner
blue has better load_time and less cache misses.

another impl here would be to modify account_matches_owners to check owner using the read cache, but if it is not in the read cache, to look on disk as it does today. This change does cause us to put the entry IN the read cache. It also returns an arc to the data, which isn't necessary since we're just checking owners (This is what getting an AccountSharedData does.). Do we want the account in the read cache? If so, then it is cheap to get AccountSharedData to just check owner. If it we don't want it in the read cache, then it is unnecessarily expensive to add to the read cache just to check the owner (if it is not in the read cache already). Do we have metrics on how often account_matches_owners is called for entries IN the write or read caches?

This change does cause us to put the entry IN the read cache.
Do we want the account in the read cache?

That is intentional, we wanted to runt the counter experiment of https://github.com/anza-xyz/agave/pull/1157#issuecomment-2117476152.

It also returns an arc to the data, which isn't necessary since we're just checking owners

That is acting as a pre-fetch for the subsequent actual load in transaction account loading.

Is the problem this PR is solving actually to put the account into the read cache?

Yes, that is the idea. Though, I suspect it will make little difference because in the subsequent transaction account loading we put programs in the read cache, so in the next TX batch they are already in.

The profile from @alessandrod shows that account_match_owner causes 2/3 of all the page faults. We had thought that the page faults were due to not using read cache. Apparently, that's not the reason. Maybe the page faults are due to accounts_index.
@alessandrod When you have time, can you run your profile with this PR to see if the page faults are reduced?

@alessandrod When you have time, can you run your profiler with this PR to see if the page faults are reduced?

Yep planning to do this today, please don't merge yet

As you can see the cursed account_matches_owners is 59% of execution. About 3/4 is AppendVec::account_matches_owners - notice AppendVec - meaning we're hitting disk. The rest is the index.
https://github.com/anza-xyz/agave/blob/ec9bd798492c3b15d62942f2d9b5923b99042350/accounts-db/src/accounts_db.rs#L5045 this will only look inside the read cache, not the write cache. If the account is not in the read cache, it'll hit disk. Since we pass all accounts to account_matches_owners,  we're probably hitting disk for anything that is in the write cache.
We should probably just remove this cursed function. Load all the accounts, then filter the programs later once you have the accounts.

We should probably just remove this cursed function. Load all the accounts, then filter the programs later once you have the accounts.

That's similar to #1157. The only difference is that we don't put program accounts into read cache in #1157.

Performance comparison for a longer time frame 24h
load  time and replay time
red: master; blue: this PR.

We should probably just remove this cursed function. Load all the accounts, then filter the programs later once you have the accounts.

That's similar to #1157. The only difference is that we don't put program accounts into read cache in #1157. Should we update #1157 to put program accounts into read cache too?

Yeah that sounds better than keeping account_matches_owners


update imports typescirpt

Hi there, i just switched from coc to lsp and everything has been working perfectly until i tried to change a filename... what i was expecting was to see all my imports being updated but nothing happened.
I used the config provided in the repo README and used the typesricpt-language-server installed from npm

You might need to look into https://github.com/jose-elias-alvarez/nvim-lsp-ts-utils

Thanks for your report. The configs here are best-effort:

It is hoped that these configurations serve as a "source of truth", but they are strictly best effort. If something doesn't work, these configs are useful as a starting point, which you can adjust to fit your environment.

If you have an improvement or fix, please send a PR!
If you have a specific question we'll try to answer it (keeping in mind the configs in this repo are best-effort and unsupported).
If you found a bug in the core lsp module, the best way to get it fixed is to describe steps to reproduce it without the particular LSP server and other factors particular to your environment. Or better, by adding a failing test case to lsp_spec.lua, which has code to setup a fake LSP server to simulate various scenarios.


Browsing popups (WordPress based)

Problem outline:
Nobody likes an overload of popups but it might help us with some customer engagement. Adding two specific popups can help drive signups and engagement.
Potential solution:

Browsing popup for prompting signing up.
5 second rule fail popup: after 30 seconds of a user looking at the pricing page, we prompt the user asking if they need help, assuring them they'll always speak to a human.

Popup help:
There's significant documentation around popups in WordPress. Maybe there's some help here: https://gretathemes.com/add-popup-wordpress-website/
We should consider popping up only in the bottom right corner to avoid user frustration.
Take a look at the below mock-up:

Closing this for now. Doesn't really feel like something that important/ we have a lot of other things needing prioritisation.


Directly delete short scenes by Python API

Hello！
The min_scene_len parameter specified in scene_manager.add_detector(ContentDetector(threshold=27.0, min_scene_len=15)) will only merge short scenes into large scenes. However, my requirement is to directly delete scenes with fragments less than 0.5 seconds without appearing in the scene list. Do you have this api function and parameter? Or Just use min_scene_len=0 and then use ffmpeg?
Thank you!

You can filter them out pretty easily with min_scene_len=0 and a list comprehension:
import scenedetect
detector = scenedetect.ContentDetector(min_scene_len=0))
scenes = scenedetect.detect("tests/resources/goldeneye.mp4", detector=detector)
# drop scenes shorter than 0.5 seconds
scenes = [scene for scene in scenes if (scene[1] - scene[0]) >= 0.5]


Move client GameState management

Moves the client's GameState message handling to GameStateManager, and creates MsgFullState and MsgUpdateState.

This causes the client to get stuck in a neverending memory state patching loop if you pause and unpause the client process


in-enclave attestation verification (user installs IAS CA certificate)

Signed-off-by: Bruno Vavala<EMAIL_ADDRESS>

change made

Give me a bit to test this before we merge it - I'm seeing a build failure on my system and I'm trying to determine whether it's my system or not.

I have applied those changes.
We need to integrate in the build a check for unsafe functions.

I am seeing a build failure also. I will discuss with Byron, maybe we have the same issues.

Looks good to me - tests in SIM mode still work, and no more banned functions. Merging


[bug] Can't get player variable

When I try to get a player variable by using the /svar get command or the placeholders, I get this error in my console. Is it an error on my side, or is it a plugin error?

Do you have a lot of player files stored on the plugin folder? One of them is causing the issue, it seems that it doesn't have a player name

Yeah, for some reason the plugin generates empty files in the players folder.

Send me your config please. And have you experienced any crashes on your server? Maybe the data is not being saved correctly. Something like that means that a player joined your server without any name which is impossible as I am aware of.

I haven't experienced any crashes lately. Here's my config file
config:
  data_save_time: 5
messages:
  prefix: '&3&lNewDale &r&8» '
  commandSetError: '&cYou need to use: &7/svar set <variable> <value> (optional)<player>'
  commandGetError: '&cYou need to use: &7/svar get <variable> (optional)<player>'
  commandAddError: '&cYou need to use: &7/svar add <variable> <value> (optional)<player>'
  commandReduceError: '&cYou need to use: &7/svar reduce <variable> <value> (optional)<player>'
  commandResetError: '&cYou need to use: &7/svar reset <variable> (optional)<player>'
  variableDoesNotExists: '&cThat variable doesn''t exists.'
  variableInvalidValue: '&cThat variable only supports &7%value_type% &ctypes.'
  variableNotPossibleValue: '&cThat variable has these possible values: &7%values%'
  variableSetInvalidTypePlayer: '&cYou can''t set a &7PLAYER &cvariable to the server.'
  variableSetInvalidTypeGlobal: '&cYou can''t set a &7GLOBAL &cvariable to a player.'
  variableGetInvalidTypePlayer: '&cYou can''t get a &7PLAYER &cvariable from the server.'
  variableGetInvalidTypeGlobal: '&cYou can''t get a &7GLOBAL &cvariable from a player.'
  variableResetInvalidTypePlayer: '&cYou can''t reset a &7PLAYER &cvariable from the
    server.'
  variableResetInvalidTypeGlobal: '&cYou can''t reset a &7GLOBAL &cvariable from a
    player.'
  variableAddError: '&cCan''t add a value to a non-numerical variable.'
  variableReduceError: '&cCan''t reduce a value from a non-numerical variable.'
  commandSetCorrect: '&aVariable &7%variable% &aset to &7%value%&a.'
  commandSetCorrectPlayer: '&aVariable &7%variable% &aset to &7%value% &afor player
    &e%player%&a.'
  playerNotOnline: '&cThat player is not online.'
  pluginReloaded: '&aPlugin reloaded!'
  commandGetCorrect: '&aVariable &7%variable% &acurrent value is: &7%value%&a.'
  commandGetCorrectPlayer: '&aVariable &7%variable% &acurrent value from player &e%player%
    &ais: &7%value%&a.'
  invalidValue: '&cYou must use a valid number value.'
  playerNoData: '&cThere is no data for that player.'
  commandResetCorrect: '&aVariable &7%variable% &areset.'
  commandResetCorrectPlayer: '&aVariable &7%variable% &areset for player &e%player%&a.'
variables:
  player_selected_lobby:
    variable_type: PLAYER
    value_type: TEXT
    possible_values:
    - 'lobby_01'
    - 'lobby_02'
    - 'lobby_03'
    initial_value: 'lobby_01'
  player_influence:
    variable_type: PLAYER
    value_type: INTEGER
    initial_value: 0

All of your player files are empty? (with no player name inside). Or just a few of them? Is your own player file empty as well?


Want to continuously listen the all connected devices

Want to use the api to continuously listen the all the connected devices. So if i run the code in loop for 10 times most of the time i get empty list for getDevice api. Please let me know if any anyone tried and get success.

The getDevices method returns only the cached devices, not the devices that are currently in range. You should perform a discovery, using the start/stopDiscovery methods and then get the Devices. Alternatively, you can use the startNearbyDiscovery to be notified when a new device is detected.


[Bug]: Submissions page does not work for certain senders

Describe the bug
When navigating to the Submissions page on the website as an organization that does not have a sender named "default" : The API call returns an error but the UI does not register it, it just keeps the loading icon spinning forever
Impact on ReportStream
Some receivers cannot view their submissions. Additionally, some users may be confused because if they are a STLT they don't have any senders but they can still go to the submissions page and just watch it load forever...
Steps to reproduce
Steps to reproduce the behavior:

Go to Staging RS
Set organization as Flexion
Go to submissions page, see it times out

This also reproduces locally
Expected behavior
There are two user flows here:
The org does not have any senders, in other words, the org is a receiver
In this case, Submissions tab should be hidden from the UI. If you don't want to do that, then do something other than have the page load forever
The org has one or more senders, but none of them are named "default"
The submissions endpoint takes an organization name as a path parameter. IF you pass in just the org name for this param, as the front end does, then the backend will look for a sender called "default". "default" is just the name that gets assigned to a sender upon creation if a name is not specified, so in some cases, like in the case of the Flexion org, the endpoint returns not found (but UI does not update to reflect this error, it just keeps the loading animation). So, my proposal is the front end do the following:
When a user navigates to the submissions page, allow them to choose from a list of senders they have configured, THEN call the endpoint with the following organization path param: <organization>.<sender_name>. The backend will then parse this string and instead of trying to find a sender with the name "default" it will instead look for a sender with sender name <sender_name>.
So, in the case of Flexion org in staging:

submitting https://staging.prime.cdc.gov/api/waters/org/flexion/submissions?pageSize=61&cursor=3000-01-01T00%3A00%3A00.000Z&since=2000-01-01T00%3A00%3A00.000Z&until=3000-01-01T00%3A00%3A00.000Z&sortcol=undefined&sortdir=DESC&showfailed=false is WRONG
submitting https://staging.prime.cdc.gov/api/waters/org/flexion.simulated-hospital/submissions?pageSize=61&cursor=3000-01-01T00%3A00%3A00.000Z&since=2000-01-01T00%3A00%3A00.000Z&until=3000-01-01T00%3A00%3A00.000Z&sortcol=undefined&sortdir=DESC&showfailed=false is CORRECT

This appears related to #10387 -- we will be discussing in standup today

@arnejduranovic Questions for you:

We currently have organizations with senders named "default", how are these working?
When setting up an organization, and specifying a sender, does the sender value need to be a valid sender name? (If so, we could get 404 errors from the endpoint in this scenario as well).
@KeithNava @chris-kuryak

Also, since this is a change to the contract between the frontend and backend, it would be better categorized as a new issue/feature rather than a bug. This would ensure we have the right folks involved in the discussion to refine the request. cc: @chris-kuryak

TBD from meeting on Monday

@chris-kuryak  There is a work around for this so ELIMS pilot is not blocked by this work
Work around: Just have at least one sender named "default"

@arnejduranovic Thanks for the update! We'll be discussing this week as a team regarding a longer term solution and get back to you. Thank you again for the feedback yesterday.

@arnejduranovic
Two quick questions/clarifications:

Did you mean to write "Senders" here instead of "Receivers"? Receivers don't have submissions in the COVID pipeline:

Some receivers cannot view their submissions.

Regarding your statement in the ticket that:

Additionally, some users may be confused because if they are a STLT they don't have any senders but they can still go to the submissions page and just watch it load forever...

Were you logged in as a Prime-Admin when you did this? I don't think that is true when you are logged in as specifically a receiver (not a Prime-admin duping themselves as a receiver, which I agree you will see all menus).
When a Receiver logs in, they see a different menu from everyone else and does not include submissions. Here is what they see:

Let me know if you still see this issue?

@chris-kuryak Yes I meant senders and I was logged in as admin and duped as an org, so no worries there then.

Thanks!

@oslynn  Just checking in on this bug.
Should Flexion's submissions page have data in it?
Arnej flagged this a long time ago and I want to make sure I still understand the issue.

@chris-kuryak @penny-lischer Currently the Admin UI only allows us to set  when we click [ Set ] on the Organizations page as shown below.  When it queries the submission, it sends only the  to the backend.  When the backend sees only org, it assumes the send_name to be default since it expects .<sender_name> to be sent.  As explained in the ticket description.

@arnejduranovic provided a workaround for a short-term solution for ELIMS.  For a long-term solution, I suggest making modifications to the Frontend UI to send .<sender_name> when query sender submission.

@chris-kuryak For the short term, every sender must have one entry name: default as shown in epic setting below:

After adding the sender name: default, the submission page will show as below:

Note.  Flexion doesn't have a sender name: default entry, it will show blank even it has messages sent.

This issue only impacts orgs with multiple senders.
Currently, there are only two orgs (that we could find) with multiple senders:

SimpleReport
Flexion

Done investigated.  Wait for a decision.


Using @ symbol in password is failing the clone to repo

URL Example: https://username:P<EMAIL_ADDRESS>When using the @ symbol in a GitHub account password, the clone seems to fail. It is prematurely looking for a domain name that does not exist. Here is the error that I get:
Could not resolve host<EMAIL_ADDRESS>Obviously, that is not my real password or the explicit error that I am receiving, but you get the point.

use a URL encoded version of the '@' symbol... which is '%40'
Ex: if you password is 'partOfPass@anotherPartOfPass' then it would be 'partOfPass%40anotherPartOfPass'

That solved it. The first time I ran it after I changes the password, it used my old password (cache?), but the next time it used the correct password and worked. Thanks!


build break in pubsub: undefined: ocgrpc.NewClientStatsHandler

(delete this for feature requests)
Client
PubSub
Describe Your Environment
Alpine Docker, go 1.8
Expected Behavior
Code builds successfully
Actual Behavior
# cloud.google.com/go/pubsub
src/cloud.google.com/go/pubsub/go18.go:34:51: undefined: ocgrpc.NewClientStatsHandler

(see https://smallrepo.com/builds/20180312-204818-1ee6db9c for details)
Cause
opencensus removed the NewClientStatsHander() method in recent commit:
https://github.com/census-instrumentation/opencensus-go/commit/ac824559a1df1b4a64405c4321f820c58b498e91
should just use &ocgrpc.ClientHandler{} now.

Thanks very much for reporting this. CL submitted https://code-review.googlesource.com/c/gocloud/+/25030

@ramonza heads up ^

thanks for the fast fix.


Make all the julia functions to calculate info about the matrix

Things to calculate About a matrix:

Dimensions
Transpose
RREF
Trace
Determinant
Rank
Nullality
Eigen Values
Eigen Vectors


require.js load timeout : App engine periodically services pages with very low bandwidths

I have noticed this with several pages on the LSDF staging server.  For instance, the /genes/workbook/23/worksheet/32/new page will periodically take on average 55.7 seconds to load 351kb.  Other times taking around 0.85 seconds to load.   Since require.js defaults to limiting load times of AMD modules to 7 seconds : http://requirejs.org/docs/api.html js load timeouts will often occur when resources are served very slowly.
There is no indication of any changes on the app engine side.  I'm unsure what is causing this periodical low bandwidth to occur.

This has been fixed, ust don't know where or when


Bug report: Path Param encoding not in sync with Zuul Retry.

Hi Team,
This is related to https://github.com/spring-cloud/spring-cloud-netflix/issues/2178.
When we are trying to access PathParam encoding in combination with Zuul Retry Functionality its breaking the path param and try to decode while sending to client.
For Example:
when we send '/context/a%2Fb/c/d' --> /context/a/b/c/d
when we have
zuul:
decodeUrl: true
retryable: true
The root cause for this is at RetryableRibbonLoadBalancingHttpClient.
The path we are creating the request for retry
if (service != null) {
					//Reconstruct the request URI using the host and port set in the retry context
					newRequest = newRequest.withNewUri(UriComponentsBuilder.newInstance().host(service.getHost())
							.scheme(service.getUri().getScheme()).userInfo(newRequest.getURI().getUserInfo())
							.port(service.getPort()).path(newRequest.getURI().getPath())
							.query(newRequest.getURI().getQuery()).fragment(newRequest.getURI().getFragment())
							.build().encode().toUri());

					if (ribbonLoadBalancerContext == null) {
						LOGGER.error("RibbonLoadBalancerContext is null. Unable to update load balancer stats");
					}

The issue is encountered over Greenwitch Release.

@ryanjbaxter  you have added the release at 2.0.3, we have faced this issue over 2.1.2 Can you please suggest if this will be part of 2.1.X release as well?

That is because the problem is also present in the 2.0.x branch.  I dont see how you could have seen this issue in 2.1.2 since that release doesn't exist.  Anyways, once the fix is in 2.0.x it will be merged forward into master (2.1.x).

Closed via f55c95b


can't return to previous page after deleting post

Issue Summary
can't return to previous page after deleting post
Steps to Reproduce

enther the edit page
delete post
there was no response after pressing the return button

console log as follow

Ghost Version
latest
Node.js Version
18.x
How did you install Ghost?
Ubuntu Server 22.04 LTS
Database type
MySQL 8
Browser & OS version
Chrome
Relevant log / error output
vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:6449 Uncaught (in promise) Error: Attempted to set 'lexical' on the deleted record <post:656e0e57d732aa747eb28169>
    at Ye.setDirtyAttribute (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:6449:318)
    at e.set (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:5914:244)
    at Me._set (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1194:9)
    at Me.set (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1190:16)
    at e.r [as lexical] (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1149:310)
    at Oe (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1172:37)
    at vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1169:19
    at Oe (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1170:103)
    at ge.set (vendor-f6856af9fcd8ab6533f2a4339ececbc8.js:1730:151)
    at ge.beforeSaveTask (ghost-2fe51d0831dd1694a4e88abd5f38e2fb.js:2502:124)

Code of Conduct

[x] I agree to be friendly and polite to people in this repository

Hello @JaydenForYou
I tried to reproduce the issue but it seems working fine. Please double-check if the issue persists.

yannick coffi
https://snubmonkey.com
https://ocularfuel.com
https://prints.yannickcoffi.com
https://yannickcoffi.com
https://luloutaste.com
On Fri, Jan 12, 2024 at 8:58 AM Anil Kumar Pandiya @.***>
wrote:

Hello @JaydenForYou https://github.com/JaydenForYou
I tried to reproduce the issue but it seems working fine. Please
double-check if the issue persists.
—
Reply to this email directly, view it on GitHub
https://github.com/TryGhost/Ghost/issues/19408#issuecomment-1888689341,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQOHSS57DYQQFC7F3JAGVZTYOD3KJAVCNFSM6AAAAABBD3USGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGY4DSMZUGE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Is this still reproducible? A related fix was included in the 5.76.0 release and I've been unable to reproduce in my own tests.

[confirmed]bug fixed in the 5.76.0.thanks.

This bug was marked as a duplicate of #19563 however it is still reproductive in ghost 5.79.0

Is this still reproducible? A related fix was included in the 5.76.0 release and I've been unable to reproduce in my own tests.

Yea I can reproduce in #19563 in ghost 5.79.0

I've just created a new site on Ghost Pro & still see this bug. However, I imported the articles from another install. Perhaps there is something in the imported articles that is causing this? If I create a new post from scratch, and then delete that, there is no error.
The traceback is
Uncaught (in promise) Error: Attempted to set 'lexical' on the deleted record <post:65d20658f6311b0001575eb6>
    at Ye.setDirtyAttribute (-private.js:4752:1)
    at e.set (-private.js:148:1)
    at Me._set (index.js:1776:1)
    at Me.set (index.js:1727:1)
    at e.r [as lexical] (index.js:878:1)
    at Oe (index.js:1327:1)
    at index.js:1357:1
    at Oe (index.js:1323:1)
    at we.set (observable.js:172:1)
    at we.beforeSaveTask (lexical-editor.js:544:1)
    at beforeSaveTask.next (<anonymous>)
    at e.GeneratorState.step (generator-state.js:28:1)
    at e.TaskInstanceExecutor.generatorStep (executor.js:243:1)
    at e.TaskInstanceExecutor.handleResolvedContinueValue (executor.js:123:1)
    at e.TaskInstanceExecutor.proceedSync (executor.js:87:1)
    at e.TaskInstanceExecutor.start (executor.js:39:1)
    at i.start (base.js:56:1)
    at refresh.js:23:1
    at Array.forEach (<anonymous>)
    at e.default.process (refresh.js:23:1)
    at r.refresh (scheduler.js:47:1)
    at r.perform (scheduler.js:39:1)
    at a._performShared (task.js:68:1)
    at a._perform (task.js:56:1)
    at we.saveTask (lexical-editor.js:467:1)
    at saveTask.next (<anonymous>)
    at e.GeneratorState.step (generator-state.js:28:1)
    at e.TaskInstanceExecutor.generatorStep (executor.js:243:1)
    at e.TaskInstanceExecutor.handleResolvedContinueValue (executor.js:123:1)
    at e.TaskInstanceExecutor.proceedSync (executor.js:87:1)
    at e.TaskInstanceExecutor.start (executor.js:39:1)
    at i.start (base.js:56:1)
    at refresh.js:23:1
    at Array.forEach (<anonymous>)
    at e.default.process (refresh.js:23:1)
    at r.refresh (scheduler.js:47:1)
    at r.perform (scheduler.js:39:1)
    at a._performShared (task.js:68:1)
    at a._perform (task.js:56:1)
    at we.autosaveTask (lexical-editor.js:408:1)
    at autosaveTask.next (<anonymous>)
    at e.GeneratorState.step (generator-state.js:28:1)
    at e.TaskInstanceExecutor.generatorStep (executor.js:243:1)
    at e.TaskInstanceExecutor.handleResolvedContinueValue (executor.js:123:1)
    at e.TaskInstanceExecutor.proceedSync (executor.js:87:1)
    at e.TaskInstanceExecutor.start (executor.js:39:1)
    at i.start (base.js:56:1)
    at refresh.js:23:1
    at Array.forEach (<anonymous>)
    at e.default.process (refresh.js:23:1)

Bug still exists in ghost 5.81.1


Problems with "from xyz import *"

I have a problem with the following code:
from libc.math cimport NAN

# The file "empty.py" is really empty!!!
# no problem, if the next line is commented out
from empty import *

cpdef float f():
    return NAN

And the compilation error message is:
cmsam/t.cpp: In function ‘int __pyx_import_star_set(PyObject*, PyObject*, char*)’:
cmsam/t.cpp:676:68: error: lvalue required as left operand of assignment
 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
                                                                    ^
cmsam/t.cpp:1071:11: note: in expansion of macro ‘__pyx_PyFloat_AsFloat’
     NAN = __pyx_PyFloat_AsFloat(o); if (unlikely((NAN == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L2_error)
           ^~~~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1

This is a minor problem, I can perform explicit imports (without using "*").
Cython version '0.28.5'

Thanks for the report. I've fixed it for 0.29.

wow, that was fast! :)


测试时区问题

Coverage decreased (-9.04%) to 56.58% when pulling b560014dc51232d8639d4928e187e0075a77c75b on edison-hm:dev-ts into de3ff03ff7cda30933ef950d7d2cb705ce90c7fd on ZhonganTechENG:dev-ts.


Repeat the package to style after using CSS module.

Version
v2.2.0
Reproduction link
https://github.com/su1924/nuxt-cssModules
Steps to reproduce
nuxt2.20
After using cssModules(

As shown in the picture

I already know how to configure it.

God, can no one solve this problem? Torture me for two weeks.

Still present in latest nuxt-edge.

In the new version, it should be repeated three times, which is even more serious.

@su1924 Will be fixed in #4546 😸


Questions about function device

Hi my friend,
Whats this function "GetDevices(dbus_interface = self.NM)" do? I'm not to find a answer for this question in Google.

@siqandressa It is NetworkManager call to get list of user's network cards, see https://developer.gnome.org/NetworkManager/unstable/spec.html#org.freedesktop.NetworkManager

Thanks a lot @Komzpa !!!!

you're welcome.


fix: small typo in README.md, application => applications

I know this is really tiny, but there's a small typo in the tagline. So... single character pull request! Changed "...to create complex, fast & universal web application..." to "to create complex, fast & universal web applications".
(the alternative would be "...to create a complex, fast & universal web application...", of course)

Codecov Report

Merging #3426 into dev will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##             dev   #3426   +/-   ##
=====================================
  Coverage   99.1%   99.1%
=====================================
  Files         18      18
  Lines       1112    1112
  Branches     299     299
=====================================
  Hits        1102    1102
  Misses        10      10

Continue to review full report at Codecov.

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

Thanks:)

no problem! 😄


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add kqueue1 to NetBSD

Add kqueue1 to NetBSD as described in the man.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@bors r+

:pushpin: Commit 17464bee7cf1419ac14a65ad185957b0e10cce69 has been approved by Amanieu

:hourglass: Testing commit 17464bee7cf1419ac14a65ad185957b0e10cce69 with merge 2c40088cced1fdbd3230d521ae5babb73fbe33a6...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing 2c40088cced1fdbd3230d521ae5babb73fbe33a6 to master...


BUG: scipy.optimize.root "hybr" method reports convergence on unconverged result

Describe your issue.
When the hybr method doesn't converge, it may sometimes report erroneously success = True. For example, looking at the function $f(x) = x^2-2x$ for initial value $x_0=1$ (or values very close to $1$), this method reports convergence on 1.01 .
When looking at other methods available in root, hybr is the only one to falsely report success while being clearly not converged.
I would propose adding a last function call to hybr and setting success accordingly
Reproducing Code Example
>>> root(lambda x: x**2-2*x, x0=1.)
    fjac: array([[-1.]])
     fun: array([-0.9999])
 message: 'The solution converged.'
    nfev: 6
     qtf: array([0.9999])
       r: array([-0.02000001])
  status: 1
 success: True
       x: array([1.01])

>>> methods = ['hybr', 'lm', 'broyden1', 'broyden2',
... 'anderson', 'linearmixing', 'diagbroyden', 'excitingmixing',
... 'krylov', 'df-sane']
>>> for m in methods:
...     r = root(lambda x: x**2-2*x, x0=1., method=m)
...     print(f"{m}: {r.success = }, {r.x = }")
...
hybr: r.success = True, r.x = array([1.01])
lm: r.success = True, r.x = array([2.])
broyden1: r.success = True, r.x = array(4.46196389e-07)
broyden2: r.success = True, r.x = array(4.46196389e-07)
anderson: r.success = True, r.x = array(1.4289777e-06)
linearmixing: r.success = True, r.x = array(4.65661287e-10)
diagbroyden: r.success = True, r.x = array(4.46196389e-07)
excitingmixing: r.success = True, r.x = array(1.18976516e-07)
krylov: r.success = False, r.x = array(1.)
df-sane: r.success = True, r.x = array(2.)

Error message
-

SciPy/NumPy/Python version information
1.9.3 1.23.4 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)

This looks like an exact duplicate of gh-7332, so closing.


Module 1.1 Assignment

Given what you have learned about Git, why would you want to use Git in your classroom?

Git is Version Control system designed by Linus Torvalds, the creator of the Linux kernel. Git stores every thing in repository with respect to changes and when can rollback to any change any time. There are so many reasons to using Git in classroom. I want to teach the students regarding Git in Classroom as it's very useful for them when they will move to professional fields, where they have lots of code to manage. Some of the advantages are given below:
1)Performance
One of the major advantages of using Git is that it is strong & reliable compared to any other version control system. The new code can be easily committed, compared, merged, and optimize efficiency.

Security
As a developer, when you’re dealing with software development, you want a version control system which is secure. That’s where the role of Git comes into the picture, as it maintains the integrity of your source code.

3)Flexibility
This is perhaps one of the major reason why developers nowadays prefer using Git for version control. Git offers you the flexibility to handle nonlinear development flows, and it can handle small & large scale projects.
I want to teach the students regarding Git in Classroom as it's very useful for them when they will move to professional fields, where they have lots of code to manage.


LOGNAME ENV preffered over getlogin

There exists several issues with calling os.getlogin().  The method is optional when building python and the method may not be present.  Furthermore, there may not be a value to return.  This is a notable problem in docker containers and lambdas, and will cause failure.
This pull request adds a check for the LOGNAME env variable, which in many systems should give interchangeable results with os.getlogin().  This will not fix docker containers, but fortunately the user can manually define the LOGNAME ENV to avoid failure.

Good catch, thank you for the PR

Incredible turn around. Thanks so much


NINOR: Fix wrong factor

More detailed description of your change
In #9955 I made a mistake,  !A && !B = ! (A || B), thank @g1geordie  for pointing out my mistake.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@dajac Hi, David, Sorry for my carelessness, take a look.

@dajac Hi, David, Sorry for my carelessness, take a look.

@dengziming Thanks. I missed this one. It might be better to revert to the previous version of the assertion in this case.

@dengziming Thanks. I missed this one. It might be better to revert to the previous version of the assertion in this case.

@dajac , You are right, the previous version of the assertion is more understandable.

@dajac , You are right, the previous version of the assertion is more understandable.


IOS IPAD: No drawn items by using IITC-CE instaed of IITC-ME

Using IITC-CE, every item has gone: so i see an "empty" map, just with portal names on it (If I'm activating "Show Portal names")
I already Re-installed everything, but as soon as i'm activating IITC-CE release build / beta build / test build at "Settings -> Change IITC version), i got a "blank" map.
On 2 different iPad (V4 + V5, IOS 14.x and 15.1, 12.9" screen) i got this issue,
if I'm switching to IITC-ME  , i do see everything (Portal "dot", links fields, portal names, ) but can't draw something with draw tools.

Fixed by reduce RENDERER_PADDING

It is good at startup, but when you reload WebView, this issue still happens.

The issue still persists here on the latest version released yesterday.
Overlays are only loaded when using IITC.me
Device: iPad Pro (11 inch) (2nd Generation)
System: iPadOS 17.2 (21C62)


Support gremlin drivers in Asp.net core

Gremlin drivers in Asp.net core 1.1 no work also no work in Nancy

@dobrydiler , Do you mean  Microsoft.Azure.Graph SDK or Gremlin.Net?

I want Microsoft.Azure.Graph

Do you  have one that runs on .NET core for Gremlin.NET

Gremlin.NET isn't official but I will try is it thanks

@dobrydiler, We are working on .NET Core support for Microsoft.Azure.Graph. We will update the thread once we officially release the support.


Native memory not being released

I am running into an issue while using the google cloud storage java api to move files to the cloud. I have a test application that is sending 2K files that are each 10 Mb. The application is using up to 200 threads to send the files in parallel. I am passing in a buffer size of 1 Mb to the createFrom method. I have tried larger and smaller buffer sizes and the issue is the same. At the end of the run, top is reporting that the java process is using 2.5 Gb but when I look at the heap and non-heap usage reported by the jvm it is much less. All files are transferred successfully, my only concern is that the environment is not left in a good state because if I try to run the same test again without restarting the jvm, it will run out of memory. It seems like there is some native memory that is not being released by the google api. Looking at the memory outputs below, you can see that the jvm is using roughly 2 Gb of memory, split into 1.3 Gb of heap, 800 Mb of free memory, and 77 Mb of non-heap, yet the RES usage reported by the process is 2.5 Gb. I have used this application to run the same test but instead push files to AWS and there is no issue with the memory in that case.
Before the run
From top -
top - 21:21:48 up 14 days,  4:47,  4 users,  load average: 0.20, 0.54, 4.51
Tasks:   2 total,   0 running,   2 sleeping,   0 stopped,   0 zombie
%Cpu(s): 57.2 us, 11.1 sy,  0.0 ni, 31.1 id,  0.1 wa,  0.0 hi,  0.6 si,  0.0 st
KiB Mem :  4040544 total,  2636284 free,   592692 used,   811568 buff/cache
KiB Swap:  4063228 total,  3827640 free,   235588 used.  3182624 avail Mem
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
24115 root      20   0 6051148 220384  22212 S 247.3  5.5   0:46.07 java
From the jvm -
javaFreeMemory=31799936
javaTotalMemory=65011712
javaMaxMemory=2147483648
javaUsedHeapMemory=31741648
javaUsedNonHeapMemory=57973176
javaNumThreads=33
physicalTotalMemory=4137517056
physicalUsedMemory=570937344
physicalFreeMemory=2736070656
physicalSharedMemory=35385344
physicalBufferCacheMemory=830509056
physicalAvailableMemory=3294986240
swapTotalMemory=4160745472
swapUsedMemory=241242112
swapFreeMemory=3919503360
After the run
From top -
top - 21:43:36 up 14 days,  5:08,  4 users,  load average: 7.89, 57.25, 54.21
Tasks:   2 total,   0 running,   2 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.1 us,  0.1 sy,  0.0 ni, 99.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  4040544 total,   127736 free,  3292444 used,   620364 buff/cache
KiB Swap:  4063228 total,  3827640 free,   235588 used.   486652 avail Mem
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
24115 root      20   0 6104700   2.5g   4740 S   0.7 63.9  17:40.12 java
From the jvm -
javaFreeMemory=807524488
javaTotalMemory=2147483648
javaMaxMemory=2147483648
javaUsedHeapMemory=1338038576
javaUsedNonHeapMemory=77504400
javaNumThreads=237
physicalTotalMemory=4137517056
physicalUsedMemory=3370311680
physicalFreeMemory=207650816
physicalSharedMemory=43773952
physicalBufferCacheMemory=559554560
physicalAvailableMemory=491126784
swapTotalMemory=4160745472
swapUsedMemory=241242112
swapFreeMemory=3919503360
Environment details

I am using the following google versions:
<com.google.guava.version>29.0-jre</com.google.guava.version>
<google-http-client-apache-v2.version>1.35.0</google-http-client-apache-v2.version>
<com.google.cloud.version>1.111.0</com.google.cloud.version>

OS type and version:

VM with 4 Gb of ram
CentOS
4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

Java version:

openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Steps to reproduce

Setup 2K files that are each 10 Mb in size
Use 200 threads to write the files to the cloud
Monitor the memory usage of the jvm

Code example
BlobInfo.Builder blobInfoBuilder = BlobInfo.newBuilder(bucketName, key).setContentType("application/octet-stream").setStorageClass(storageClass);
storageService.createFrom(blobInfoBuilder.build(), inputStream, 1024 * 1024, Storage.BlobWriteOption.md5Match());

@jgmpzman,
Thanks for submitting this issue and providing all the details.
To make sure that the problem is not related to file reading could you slightly modify your test application and rerun.
BlobInfo.Builder blobInfoBuilder = BlobInfo.newBuilder(bucketName, key).setContentType("application/octet-stream").setStorageClass(storageClass);
InputStream content = new ByteArrayInputStream(new byte[10*1024*1024]);
storageService.createFrom(blobInfoBuilder.build(), content, 1024 * 1024, Storage.BlobWriteOption.md5Match());
content.close();

If the problem is still there, please provide information on how do you create and run threads.
Thanks,
Dmitry

@jgmpzman,
I can't reproduce the problem with OOM. My 200 threads allocate ~500Mb of the heap space, this amount doesn't increase with the number of uploaded files.  I start thinking that the root cause could be in your test application, some code doesn't release allocated resources. If you share the code with me I can perform the detailed analysis.

I try to run the same test again without restarting the jvm, it will run out of memory.

Do you remember what kind of OutOfMemoryError is throwing, is it Java heap space?
Thanks,
Dmitry

@dmitry-fa
I tried to run with that modified code, but the process just continually fails with java.lang.OutOfMemoryError: Java heap space.

I tried to run with that modified code, but the process just continually fails with java.lang.OutOfMemoryError: Java heap space.

Yes, I noticed, that your heap is limited by 2G, so10Mb*200 consumes the entire heap.
Could rerun with the increased heap (-Xmx4G) or reduce the size uploading objects
InputStream content = new ByteArrayInputStream(new byte[5*1024*1024]);
Thanks

@dmitry-fa
When I run that test I do see that the amount of memory used by the java process matches what is reported by top for that process.
top - 22:19:05 up  4:12,  5 users,  load average: 0.10, 0.81, 0.96
Tasks:   2 total,   0 running,   2 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.3 us,  0.1 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  4040544 total,   136736 free,  3804296 used,    99512 buff/cache
KiB Swap:  4063228 total,  4020464 free,    42764 used.    62728 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
30996 root      20   0 7281960   2.9g   6012 S   0.7 76.0   3:19.46 java

javaFreeMemory=2215642384,
javaTotalMemory=2908749824,
javaMaxMemory=3221225472,
javaUptime=364223,
javaUsedHeapMemory=691504240,
javaUsedNonHeapMemory=75297096,

Thank you for your help! It certainly doesn't seem like the storage framework is the issue.

Hi @jgmpzman,
I always glad to help. Feel free to reopen this issue or submit a new one if you discover new facts of memory leaks.
Thanks,
Dmitry


Clock example hangs, when you hold down the left mouse button

Is there an existing issue for this?

[X] I have searched the existing issues.

Is this issue related to iced?

[X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?
When you compile and open e.g. the clock example, as soon as you click and hold down your mouse button on the window title bar, the messages don't get processed anymore and the gui doesn't get updated.
It might have something to do with the current winit version.

What is the expected behavior?
The gui should not freeze while you hold down your mouse button.
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response

This is a winit issue: https://github.com/rust-windowing/winit/issues/3272

This is a winit issue: rust-windowing/winit#3272

Thanks for your super quick answer! Maybe we should leave this "non-issue-issue" here so that others can find it and know, what is going on. I saw that you opened the issue over at the winit repo for resizing the window. It might be the same bug in winit that causes the event loop to hang, when you hold down the mouse button.

@hecrj I saw that you merged a workaround that somebody pushed to winit. This winit workaround doesn't seem to work, even if I take iced directly from the master branch and compile it. 🤔 Does it only fix the resize bug?


updated numpad to have a decimal point (#3879)

Related Issue
Fixes #3863 in release/1.2
Description
Manual port of fix in 3bcc6f3f6f837282bb3a771c14f4f1adf9978c3f (PR #3879).
How Verified

local build
verified against test cards

Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

/azp run

/azp run


provide a more limited maximum restart policy.

Codecov Report

Merging #38 into master will increase coverage by 0.55%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
+ Coverage      62%   62.55%   +0.55%
==========================================
  Files         126      126
  Lines        4427     4388      -39
  Branches      112      113       +1
==========================================
  Hits         2745     2745
+ Misses       1682     1643      -39

Impacted Files
Coverage Δ

core/src/main/scala/scheduler/NomadHttp.scala
41.56% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM


[GSSoC'23] Adding Movies websites

Related Issue - 938
Closes #938

Description

Movieverse
HD hub4u
Movie mint

Screenshots

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

@VenomFate-619 @JasonDsouza212 Sirs, please review this pr and requested to merge to a contribution under GSSoC'23 program

@Avdhesh-Varshney use URL shortener for Images

@JasonDsouza212 Sir i requested to add level 2 on it.
Thanks for assigning this task to me.

Hello, contributors! This is Jason speaking. Due to some workflow issues, we will be closing all the PRs today. Therefore, I kindly request all of you to create new PRs tomorrow, as the currently open ones will be closed by our team. I apologize for any inconvenience caused. Also, please make sure to check the titles when creating the PRs. You can refer to the README.md for more details. Thank you.


feat: add autoretrier

Feature Request
Describe the Feature Request
Add autoretrier so users don't need manually retry different sorts of errors.
Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

Seems this will be closed by #293


reflections.getSubTypesOf(Object.class) returns an empty list

 Reflections reflections = new Reflections(packageName);
 return new HashSet<>(reflections.getSubTypesOf(Object.class));

this code returns an empty set, but i expect it to return a set of all classes
version: 0.9.12

Same problem

Same here, my expectation is that new Reflections("java.util").getSubTypesOf(Object.class) should not return an empty set, but it does.  What am I missing?

Same here, tried System.out.println(new Reflections("java.util").getSubTypesOf(Object.class));
returns empty list.
Can't really get anything to work to be frank. im using 0.10.2

Ive been at this for about 2 hours now and ive downgraded to 0.9.9.
Still no results, never - irregardless of input.
Even examples from https://www.baeldung.com/reflections-library do not work, everything is always an empty list

I did finally have some success, the problem with doing basic testing looking for "Object" is that reflections filters "Object" out by default.  As a basic starting point I had more success looking for "Scanner" in org.reflections, and that got me started.  Some more basic examples on the main page would be nice to get people started, but I hesitate to be overly critical of anything where someone has so freely offered up what is clearly a huge investment of their time.

For anyone finding this, there's a workarround
Reflections reflections = new Reflections(new ConfigurationBuilder()
    .setScanners(new SubTypesScanner(false),new ResourcesScanner())
    .addUrls(ClasspathHelper.forJavaClassPath())
    .filterInputsBy(new FilterBuilder()
																				  .includePackage(packageName)));

var types = reflections.getSubTypesOf(Object.class);

However, this does not return inner classes 😢

I'm on a strange behavior.
This following code results on server environment with an empty list.

Reflections reflections = new Reflections("my.package");

Set<Class<?>> subTypes = reflections.get( SubTypes.of( Object.class).asClass());

I've also tried this one
	reflections = new Reflections(new ConfigurationBuilder()
				.setScanners(new SubTypesScanner(false), new ResourcesScanner())
				.addUrls(ClasspathHelper.forJavaClassPath())
				.filterInputsBy(new FilterBuilder()
						.includePackage("my.package"))));

Depending on execution context:

When executing inside my IDE (intelliJ), it works well, as I expect.
If I execute via maven command-line, it works also
But when I execute the application in standalone mode (from packaged .jar file execution), subtypes list is empty.

Details:
My app is a Spring boot app with .jar packaging.

If I try to scan an external library package, it works in third cases.
If I scan an internal package (in my own code), no sub class is found. As if my code would not be in loaded classpath.

I've read Reflection lib is based on .class files.
Anyway, in my jar, I can also find this class files....

Any idea ?

@damiencuvillier , I have the exact same issue. Have you found a solution?

helped me, thanks
spring boot + reflection 0.10.2

I tested that solutions of @damiencuvillier (on 0.9.x), @nnimrod (on 0.10.x) still work well on 24-04-05.


Reflection Header grpc-reflection-js

I am working with the graphql-mesh gRPC input handler and specifically with the gRPC reflection API as to get the protos dynamically from the gRPC service. My question is that we have several gRPC services and the reflection API requires to listen on the root path.
We use tools like grpcurl which have an option for a -reflect-header and then our infrastructure knows when it sees that header to route that request to a specific gRPC service. Here is an example of grpcurl using the -reflect-header:
grpcurl -reflect-header grpc-service:proto.MyGrpcService -d '{"name":  "mike"}' localhost:9090 proto.MyGrpcService/hello

My question is:

Is there a way to send custom headers into the gRPC reflection request? Looking at the code this seems to be the underlying module which fetches the reflection information https://github.com/redhoyasa/grpc-reflection-js

I am not sure if to accomplish this the underlying library grpc-reflection-js needs to support this first

Hi, I'd like to know more about the reflect-header. From my understanding,reflect-header will be added to gRPC metadata but used only on reflection request. Is that correct?

@redhoyasa Yes this would only be for the reflection request. If you can please take a look at this utility https://github.com/fullstorydev/grpcurl
From the help:
  -reflect-header value
    	Additional reflection headers in 'name: value' format. May specify more
    	than one via multiple flags. These headers will *only* be used during
    	reflection requests and will be excluded when invoking the requested RPC
    	method.

The main reason for this is depending on your infrastructure/routing the reflection API needs to be on the root of the service and if you have more than one gRPC service routed through the same gateway the reflection request wouldn't know the right underlying service to hit.
For example given the two grpc services:
https://sample-gateway/grpc-service-one
https://sample-gateway/grpc-service-two
imagine sample-gateway could be ngnix or istio proxy. If you make a grpc call to https://sample-gateway/grpc-service-one it works fine, but if you do the reflection request it expects the call to be made on https://sample-gateway/ which then ngix/istio or some other proxy would need to identify the reflection request and route it to the proper underlying grpc service.
Reading the gRPC reflection spec, the reflection API should always be served on the root so this isn't something that's configurable or should be modified. I believe this is the reason grpcurl added reflect-header to specifically satisfy this requirement.


PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException : Client error: POST https://www.googleapis.com/oauth2/v4/token resulted in a 400 Bad Request

kreait/firebase-php ^ 3.0
php ^ 7
PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException : Client error: POST https://www.googleapis.com/oauth2/v4/token resulted in a 400 Bad Request response:
{
"error": "invalid_grant",
"error_description": "Invalid JWT: Token must be a short-lived token (60 minutes) and in a (truncated...)
in /home/mantrasc/public_html/test/testlogin/testlogin/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /home/mantrasc/public_html/test/testlogin/testlogin/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /home/mantrasc/public_html/test/testlogin/testlogin/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /home/mantrasc/public_html/test/testlogin/testlogin/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 /home/mantra in /home/mantrasc/public_html/test/testlogin/testlogin/vendor/kreait/firebase-php/src/Firebase/Exception/QueryException.php on line 38

It’s hard to help if you don’t provide the code that led to the issue :)

But the error message is already telling: invalid_grant. Are you sure you are using the correct service account JSON file?

Sorry, for not providing the code. Everything thing was working fine on my localhost. But when i hosted it on web, it is giving me this error in error_logs.
Is there any extra token or credentials required for hosting on web ?
$data = $_POST;
require DIR . '/vendor/autoload.php';
use Kreait\Firebase\Factory;
use Kreait\Firebase\ServiceAccount;
$serviceAccount = ServiceAccount::fromJsonFile(DIR . '/secret/firebase_credentials.json');
$firebase       = (new Factory)
->withServiceAccount($serviceAccount)
->create();
$database  = $firebase->getDatabase();
$reference = $database->getReference('Users');

Strange... no, the environment should not matter. Do you use different service accounts for each environment? If so, are the permissions for both service accounts the same? You can check in the google developer console.
If everything looks ok to you, try generating a new key for your server environment in the Firebase project settings.

Is solved.
Sorry, the issue wasn't in your code. The host system timings were wrong.
Thanks for the awesome Library and support.

Glad to hear that it is solved, and thank you for the kind words! 🌺

Thanks for the tip guys,
I fixed it permanently on my (Centos) server by setting up automatic time synchronization with the NTP service:
yum install ntp
systemctl start ntpd
systemctl enable ntpd
ntpdate -q 0.rhel.pool.ntp.org
systemctl restart ntpd


Increment version for recoveryservices-datareplication releases

Increment package version after release of Azure.ResourceManager.RecoveryServicesDataReplication

API change check
API changes are not detected in this pull request.


Support for Russian and English

Due to code processing, support for the Russian language has disappeared in version 2.1, the problem will be solved

Version 2.1 already released


FEATURE REQUEST: [PLM] Add filter boxes to top of Assigned/Unassigned Stations and Parents

Fofer, post:16, topic:41719
How about a search/filter field, so we can type a few characters like "21 jump" to quickly see the channels that match?

Maybe... this isn't a table (even though it looks like one), so not as easy, but might be a possibility.

This will be made available in the next release:

Got the most difficult one working, too:

This is available as of v2<IP_ADDRESS>8


⚠ Bofrost.at has degraded performance

In a0f0886, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2152 ms

Resolved: Bofrost.at performance has improved in 1b1d043.


Verilog compilation issues

Hello! @maboytim,
I had the boards made, and I am attempting to write the FPGA, I am using VSCODE to compile your FPGA code.
Using this guide here
I am having issues compiling due to a few issues. I am getting the feeling maybe you used a different toolkit or different software entirely for this.
Processing vis80.lushay.json Starting FPGA Toolchain Starting Yosys CST Checking      /----------------------------------------------------------------------------\      |  yosys -- Yosys Open SYnthesis Suite                                       |      |  Copyright (C) 2012 - 2024  Claire Xenia Wolf<EMAIL_ADDRESS>       |      |  Distributed under an ISC-like license, type "license" to see terms        |      \----------------------------------------------------------------------------/     Parsing gowin_clkdiv.v         - Module Gowin_CLKDIV parsed     Parsing gowin_dpb.v         - Module Gowin_DPB parsed     Parsing gowin_rpll.v         - Module Gowin_rPLL parsed     Parsing BUFG.v         - Module BUFG parsed     Error: /Users/archlinuxusa/Downloads/TRS-80_Display_Adapter-main/fpga/vid80-3/src/top.v:47: ERROR: syntax error, unexpected ';', expecting '(' or '['     Check lines 46-47 of file top.v you may be missing a semicolon or left a block open Finished CST Checking Task finished with errors exiting Toolchain Completed
Could you share what you used to program the TANG Nano 9k?
Did you use the VSCODE Chain of tools or  GOWIN?
Thank you very much.

Hi,
I use the Gowin IDE.  I've not tried the open source tools.
There are two versions of the Gowin IDE - a full version and a free educational version.  I use the free educational version.
From your errors it looks like the compiler is having trouble with the Gowin IP blocks.  Since I don't know the open source tools I can't help you with that but you might ask someone in that community for help.  These blocks are really hard IP's to access resources on the chip like PLL's and BRAMs.
You shouldn't have to compile though unless you want to make changes.  The .fs programming file is in the impl/pnr folder which is all you really need.  I have used the openFPGALoader which works.  There is also a standalone programmer available from Gowin.  You can program to SRAM but that is volatile and will be lost if you cycle power.  To be persistent you need to program the embedded flash.
If you have any problems feel free to email me directly at @.***
Matt
On Friday, November 8, 2024 at 06:06:06 PM EST, Christopher Allen<EMAIL_ADDRESS>wrote:

Hello! @maboytim,
I had the boards made, and I am attempting to write the FPGA, I am using VSCODE to compile your FPGA code.
Using this guide here
I am having issues compiling due to a few issues. I am getting the feeling maybe you used a different toolkit or different software entirely for this.
Processing vis80.lushay.json Starting FPGA Toolchain Starting Yosys CST Checking /----------------------------------------------------------------------------\ | yosys -- Yosys Open SYnthesis Suite | | Copyright (C) 2012 - 2024 Claire Xenia Wolf @.***> | | Distributed under an ISC-like license, type "license" to see terms | ----------------------------------------------------------------------------/ Parsing gowin_clkdiv.v - Module Gowin_CLKDIV parsed Parsing gowin_dpb.v - Module Gowin_DPB parsed Parsing gowin_rpll.v - Module Gowin_rPLL parsed Parsing BUFG.v - Module BUFG parsed Error: /Users/archlinuxusa/Downloads/TRS-80_Display_Adapter-main/fpga/vid80-3/src/top.v:47: ERROR: syntax error, unexpected ';', expecting '(' or '[' Check lines 46-47 of file top.v you may be missing a semicolon or left a block open Finished CST Checking Task finished with errors exiting Toolchain Completed
Could you share what you used to program the TANG Nano 9k?
Did you use the VSCODE Chain of tools or GOWIN?
Thank you very much.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@maboytim
Myth Confirmed!
After following your info, I got this going and it works flawlessly.
Thank you very much.
I have 9 other boards that I could potentially populate and produce. Before making any decisions, I wanted to confirm with your unlicense in the github that there are no issues with me selling the remaining PCBs. I want to respect your hard work.
Its also acceptable if you want to speak about this over email - let me know and ill provide mine.
Respectfully

I think when you create a project github makes you pick a license.  I tried to pick the most permissive license.  I certainly appreciate your concern of the developer but all of my projects are completely free to do with whatever you want with no credit to me whatsoever.  I'm glad you got it working.  Try PM'ing me for my email.
Matt
On Friday, November 8, 2024 at 08:54:35 PM EST, Christopher Allen @.***> wrote:
@maboytim
Myth Confirmed!
After following your info, I got this going and it works flawlessly.
Thank you very much.
I have 9 other boards that I could potentially populate and produce. Before making any decisions, I wanted to confirm with your unlicense in the github that there are no issues with me selling the remaining PCBs. I want to respect your hard work.
Its also acceptable if you want to speak about this over email - let me know and ill provide mine.
Respectfully
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>