I always have to specify a port when adding an endpoint.

It'd be super handy to be able to give deproxy a handler, let it pick the port, and let me query deproxy for the port it's chosen for the handler.
I'm thinking similar behavior like what embedding Jetty will do: If you don't give it a port, it will pick one, and then you can introspect on it and find the port it selected to listen on.
This is extremely important to parallelizing test execution.

Is it even possible to start up deproxy's handlers without having the software under test running?
I'm thinking the order of events to get automatic port selection working all the way down:

Start up deproxy's endpoints
Figure out the ports deproxy used for it's endpoints
Start up repose with magic option to make it auto-select ports, instead of using the defined ports
introspect repose via JMX to get the port those nodes are running on
Start up deproxy using that port the repose node is listening to
Execute test.

So the existing endpoint logic can do some port finder stuff, but that won't work. It has proven itself unreliable in the past.

so, a change to deproxy could allow it to bind to a random port, and return that port relatively easily
ServerSocket, which is being used to attach, can be created unbound with a no arg constructor. Then you can tell it to bind(null) which will hook it up to localhost on an ephemeral port. Finally, you can say getLocalPort() and it will return the port to which it has attached.
This is probably substantially more reliable than the existing method of using the PortFinder singleton.


Add support to RTL script - Right to Left text

Many languages including Arabic, Persian, Urdu, Uygur and Hebrew are languages that are written from right to left (RTL)
Please add support to post using RTL languages, maybe by using the direction: rtl tag in div
More info about RTL: https://rtlcss.com/learn/

This is something I have on my medium/long-term todo list. I wish it was as simple as adding a css tag but unfortunately it will require significant work to make this work because Satellite has a complex layout with a lot of margins/padding/transforms that will need to be manually refactored.

could you please keep the issue open so it will be more visible and someone might contribute a PR for it?


bump to go 1.22

Description
bumps us to Go 1.22. Needed for a Gatekeeper integration for scanning our manifests.
Also update a few unit tests to reflect updated controller runtime packages. Fake client no longer fully infers types.

/ok-to-test sha=1349f19

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-1.4%) to 79.124%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/controller/testutils/fakemanager.go
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/controller/ingress/concurrency_watchdog.go
1
86.41%

Totals

Change from base Build<PHONE_NUMBER>:
-1.4%

Covered Lines:
2998

Relevant Lines:
3789

💛  - Coveralls

/ok-to-test sha=1349f19

/ok-to-test sha=2050556

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.4%) to 79.15%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/controller/testutils/fakemanager.go
0
3
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-1.4%

Covered Lines:
2999

Relevant Lines:
3789

💛  - Coveralls


REQ: Overcoming EPG limitation by merging external XMLTV into pseudotv

As a user with multiple Live TV input sources
I'd like to import the channels of an external XMLTV file to pseudotv
to be able to use multiple Live TV sources with one EPG in Plex provided by pseudotv.

Importing the XMLTV should be possible via an URL or a local file.
After uploading and parsing the XMLTV, I want to select out of a list of new channels which to import.
Bonus points for sorting and choosing the channel numbers

You probably don't want to add another service, but if you use xTeVe (it's also an HD Homerun emulator). You can import the m3u and xml list from PseudoTV. You can create a filter to filter channels based on name, category, etc.
It will generate a new combined m3u and xml file.
You may want to disable the xTeVe buffer agent though as it would be buffering the file that's already buffered from PseudoTV. I did a small test with the xTeVe buffer agent and it worked well. CPU didn't go above 10%.
Not sure what your other Live TV sources are, but for me I have the following.
-OTA to NextPVR (created manual m3u from http stream addresses) to xTeVe to Plex
-IPTV to xTeVe to Plex
-PseudoTV to xTeVe to Plex

Yeah. Would have been cool to avoid xTeVe but that'll work.
Thanks for the explanation, I'm not that familiar with xTeVe.


[BEAM-1226] Add support for well known coder types to Apache Beam Python SDK

This uses specific cloud object representations for the following types:
kind:pair (TupleCoder with two components, previously pickled)
kind:stream (IterableCoder with a single component, previously ignored)
kind:global_window (GlobalWindowCoder, previously SingletonCoder)
kind:length_prefix (A new type of coder which always encodes the length of the value type as a prefix, has a single component)
kind:windowed_value (A wrapper coder with two components (value coder and window coder))
This also drops the ability to configure the timestamp coder on WindowedValueCoder.
These changes are towards having a common binary representation for certain well known coders across multiple languages.
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @charlesccychen

Thanks, LGTM.


ci: added sonar cloud config to ignore duplicate code

Description
This PR adds a sonarcloud configuration file to ignore duplicates lines for renderers.

Coverage remained the same at 93.755% when pulling d0a194d3ccbdc0ec7ea13f5a08923c4c9e544a91 on jonaslagoni:feature/add_sonarcloud_config into 81dd9b5a1a9ff711bc578fa66b015c1ed5fab57b on asyncapi:master.

Lets 🤞


OOM 问题, 显卡是A00 40G

用llama factory进行sft可以使用deepspeed zero2 微调llama3-8B的模型，但这个框架就算batch设为1，用deepspeed zero2也会报OOM。
用zero3训练会变得很慢，出现这个问题：
2 pytorch allocator cache flushes since last step. this happens when there is high memory pressure and is detrimental to performance. if this is happening frequently consider adjusting settings to reduce memory consumption. If you are unable to make the cache flushes go away consider adding get_accelerator().empty_cache() calls in your training loop to ensure that all ranks flush their caches at the same time

OOM issue could be the reason that llama3 has 128K vocab size, while llama2 is 32K.

OOM issue could be the reason that llama3 has 128K vocab size, while llama2 is 32K.

I tried deepseek-7B， same question

The deepseek vocab size is also large -- 100K. The memory I used for training is 64GB for llama-2 with 8/16 GPUs.

The deepseek vocab size is also large -- 100K. The memory I used for training is 64GB for llama-2 with 8/16 GPUs. Maybe you want to try using fsdp.

谢谢，我现在是先用llama factory进行sft，再到你的框架上进行cpo。这样可以吗？


Update yellow color on calendar

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in QA
Followed all applicable steps in the TROUBLESHOOTING guide: TODO
Checked for relevant discussions on Discord: https://discord.gg/pPERUuv
Checked that your issue isn't already filed: https://github.com/COVID-19-electronic-health-system/Corona-tracker/issues

Description
Right now there are two yellow colors in use for the calendar: #ffff76 and #ffffa9.
.react-calendar__tile--now {
  background-color: #ffff76;
  color: white;
}
.react-calendar__tile--now:enabled:hover,
.react-calendar__tile--now:enabled:focus {
  background-color: #ffffa9;
  color: white;
}

Under the right conditions I can select and make a single square yellow of the calendar yellow and the white text is near impossible to read. You can see it in the gif below on the month selection screen as well:

Steps to Reproduce

Open the calendar screen
Select multiple dates, seems to be more common if I "slide" from one day to another
Observe the hard to read text

Expected behavior:
I expect the text to be legible or a blue color to be used instead.
Actual behavior:
The background stays yellow for the active item, and the white text is hard to read.
Reproduces how often:
50%
Additional Information
Idea 1 would be to set the yellow background to always use color: black so at least the text is readable when this happens.
Idea 2 would be to replace the yellow with a lighter blue color, but the text may need to be darker in that case as well.

Could I be assigned this one, please...

All you!

How's this coming along @johnemurphy1? Anything need clearing up?

Aiming to finish by end of weekend/early next week. Will get back with any questions.


[BUG] I'm trying to Install and Open Roblox app, but some exception is avoiding me to do the same.

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[X] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.5.3
What problem did you encounter?
Only one exception is avoiding me to try Installing and Opening Roblox through Bloxstrap app.
Bloxstrap Log
2024-12-23T23:46:45Z [App::OnStartup] Starting Bloxstrap v2.5.3
2024-12-23T23:46:45Z [App::OnStartup] Compiled Tuesday, 18 June 2024 at 1:39:08 PM from DESKTOP-FGF6DO8\User
2024-12-23T23:46:45Z [App::OnStartup] Loaded from %UserProfile%\AppData\Local\Bloxstrap\Bloxstrap.exe
2024-12-23T23:46:45Z [InstallChecker::FirstTimeRun] Running first-time install
2024-12-23T23:46:45Z [Logger::Initialize] Initializing at %UserProfile%\AppData\Local\Temp\Bloxstrap_20241223T234645Z.log
2024-12-23T23:46:45Z [Logger::Initialize] Finished initializing!
2024-12-23T23:46:45Z [JsonManager<Dictionary`2>::Load] Loading from ClientSettings\ClientAppSettings.json...
2024-12-23T23:46:45Z [JsonManager<Dictionary`2>::Load] Failed to load!
2024-12-23T23:46:45Z [JsonManager<Dictionary`2>::Load] Could not find a part of the path 'C:\WINDOWS\system32\ClientSettings\ClientAppSettings.json'.
2024-12-23T23:46:45Z [FastFlagManager::SetValue] Setting of 'FFlagHandleAltEnterFullscreenManually' to 'False' is pending
2024-12-23T23:46:45Z [FastFlagManager::SetValue] Setting of 'FLogNetwork' to '7' is pending
2024-12-23T23:46:45Z [FastFlagManager::SetValue] Setting of 'DFIntTaskSchedulerTargetFps' to '120' is pending
2024-12-23T23:46:46Z [MainWindow::MainWindow] Initializing menu
2024-12-23T23:47:51Z [NotifyIconWrapper::NotifyIconWrapper] Initializing notification area icon
2024-12-23T23:47:51Z [App::OnStartup] Initializing bootstrapper
2024-12-23T23:47:51Z [App::OnStartup] Initializing bootstrapper dialog
2024-12-23T23:47:51Z [Bootstrapper::Run] Running bootstrapper
2024-12-23T23:47:51Z [Bootstrapper::Run] Performing connectivity check...
2024-12-23T23:47:51Z [Bootstrapper::SetStatus] Connecting to Roblox...
2024-12-23T23:47:51Z [RobloxDeployment::GetInfo] Getting deploy info for channel LIVE (extraInformation=False)
2024-12-23T23:47:51Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer/channel/LIVE
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer/channel/LIVE
2024-12-23T23:47:52Z [Bootstrapper::Run] Connectivity check finished
2024-12-23T23:47:52Z [RobloxDeployment::GetInfo] Getting deploy info for channel LIVE (extraInformation=False)
2024-12-23T23:47:52Z [RobloxDeployment::GetInfo] Deploy information is cached
2024-12-23T23:47:52Z [DeployManager::DefaultBaseUrl.Set] Testing connection to 'https://setup.rbxcdn.com'...
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/version
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/version
2024-12-23T23:47:52Z [DeployManager::DefaultBaseUrl.Set] Connection successful!
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/version-b71c150c7c1f40de-rbxPkgManifest.txt
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/version-b71c150c7c1f40de-rbxPkgManifest.txt
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/version-b71c150c7c1f40de-rbxManifest.txt
2024-12-23T23:47:52Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/version-b71c150c7c1f40de-rbxManifest.txt
2024-12-23T23:47:53Z [Bootstrapper::SetStatus] Installing Roblox...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.RobloxApp.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading RobloxApp.zip...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-avatar.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-avatar.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read RobloxApp.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-avatar.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\avatar\...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-configs.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-configs.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-configs.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\configs\...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-fonts.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-fonts.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-fonts.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\fonts\...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-models.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-models.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-models.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\models\...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting content-configs.zip
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-sky.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-sky.zip...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.content-sounds.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading content-sounds.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting content-models.zip
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-sky.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\sky\...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting content-avatar.zip
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read content-sounds.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\sounds\...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.shaders.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading shaders.zip...
2024-12-23T23:47:53Z [Bootstrapper::DownloadPackage.ssl.zip] Package is already downloaded, skipping...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Reading ssl.zip...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting content-sounds.zip
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read shaders.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\shaders\...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting content-sky.zip
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Read ssl.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ssl\...
2024-12-23T23:47:53Z [Bootstrapper::ExtractPackage] Finished extracting ssl.zip
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.content-textures2.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading content-textures2.zip...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read content-textures2.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\content\textures\...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.content-textures3.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading content-textures3.zip...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.content-terrain.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading content-terrain.zip...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting content-fonts.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read content-textures3.zip.  Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\PlatformContent\pc\terrain\...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting content-terrain.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read content-platform-fonts.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\PlatformContent\pc\fonts\...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting shaders.zip
2024-12-23T23:47:54Z [AsyncHelpers::ExceptionHandler] An exception occurred while running the task 'extracting content-platform-dictionaries.zip'
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read extracontent-places.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ExtraContent\places\...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.extracontent-models.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading extracontent-models.zip...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting extracontent-places.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read extracontent-luapackages.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ExtraContent\LuaPackages\...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting content-platform-fonts.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read extracontent-translations.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ExtraContent\translations\...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting extracontent-translations.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read extracontent-models.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ExtraContent\models\...
2024-12-23T23:47:54Z [App::FinalizeExceptionHandling] System.AggregateException: One or more errors occurred. (The given key 'content-platform-dictionaries.zip' was not present in the dictionary.)
 ---> System.Collections.Generic.KeyNotFoundException: The given key 'content-platform-dictionaries.zip' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Bloxstrap.Bootstrapper.ExtractPackage(Package package)
   --- End of inner exception stack trace ---
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.extracontent-textures.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading extracontent-textures.zip...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.WebView2.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Reading WebView2.zip...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting extracontent-models.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read extracontent-textures.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de\ExtraContent\textures\...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.WebView2RuntimeInstaller.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::DownloadPackage.redist.zip] Package is already downloaded, skipping...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting extracontent-luapackages.zip
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Read WebView2.zip. Extracting to %UserProfile%\AppData\Local\Bloxstrap\Versions\version-b71c150c7c1f40de...
2024-12-23T23:47:54Z [Bootstrapper::ExtractPackage] Finished extracting WebView2.zip
2024-12-23T23:47:54Z [AsyncHelpers::ExceptionHandler] An exception occurred while running the task 'extracting redist.zip'
2024-12-23T23:47:54Z [App::FinalizeExceptionHandling] System.AggregateException: One or more errors occurred. (The given key 'redist.zip' was not present in the dictionary.)
 ---> System.Collections.Generic.KeyNotFoundException: The given key 'redist.zip' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Bloxstrap.Bootstrapper.ExtractPackage(Package package)
   --- End of inner exception stack trace ---
2024-12-23T23:47:55Z [Bootstrapper::ExtractPackage] Finished extracting RobloxApp.zip
2024-12-23T23:47:55Z [Bootstrapper::SetStatus] Configuring Roblox...
2024-12-23T23:47:55Z [Bootstrapper::ExtractPackage] Finished extracting extracontent-textures.zip
2024-12-23T23:47:56Z [Bootstrapper::ExtractPackage] Finished extracting content-textures2.zip


Undefined Consonant YAML::Generator

Hey Guys
In 19.3 macOS sierra the following gives an undefined consonant error:
require "yaml"
pp YAML::Generator

This previously worked in 19.1

It seems the name has been changed to YAML::Emitter (20aa5d3 / #3353)
(And also some APIs.)

I'll close this as I was looking at the 18.7 documentation.


Secure local cluster Admin UI is not accessible on Chrome

When running a secure local cluster, following our getting started docs, it's no longer possible to access the Admin UI on Chrome. Seems to work fine on FF and Safari.
Given Chrome's popularity and the importance of helping users have a quick and easy getting started experience via our docs and otherwise, I consider this a significant problem, potentially a release blocker, though that's not my call. At the least, we need to figure out how to adjust the docs so that copy/paste works for spinning up a local cluster and accessing the admin UI for new users.
Steps:
~$ mkdir certs my-safe-directory

~$ cockroach cert create-ca --certs-dir=certs --ca-key=my-safe-directory/ca.key

~$ cockroach cert create-node localhost $(hostname) --certs-dir=certs --ca-key=my-safe-directory/ca.key

~$ cockroach cert create-client root --certs-dir=certs --ca-key=my-safe-directory/ca.key

~$ cockroach start --certs-dir=certs --store=node1 --listen-addr=localhost:26257 --http-addr=localhost:8080 --join=localhost:26257,localhost:26258,localhost:26259 --background
*
* INFO: initial startup completed.
* Node will now attempt to join a running cluster, or wait for `cockroach init`.
* Client connections will be accepted after this completes successfully.
* Check the log file(s) for progress.
*

~$ cockroach start --certs-dir=certs --store=node2 --listen-addr=localhost:26258 --http-addr=localhost:8081 --join=localhost:26257,localhost:26258,localhost:26259 --background
*
* INFO: initial startup completed.
* Node will now attempt to join a running cluster, or wait for `cockroach init`.
* Client connections will be accepted after this completes successfully.
* Check the log file(s) for progress.
*

~$ cockroach start --certs-dir=certs --store=node3 --listen-addr=localhost:26259 --http-addr=localhost:8082 --join=localhost:26257,localhost:26258,localhost:26259 --background
*
* INFO: initial startup completed.
* Node will now attempt to join a running cluster, or wait for `cockroach init`.
* Client connections will be accepted after this completes successfully.
* Check the log file(s) for progress.
*

~$ cockroach init --certs-dir=certs --host=localhost:26257
Cluster successfully initialized

~$ grep 'node starting' node1/logs/cockroach.log -A 11
CockroachDB node starting at 2020-03-19 15:07:58.540333 +0000 UTC (took 11.5s)
build:               CCL v20.1.0-beta.2-937-g1ae9b8d2cd @ 2020/03/19 03:25:00 (go1.13.7)
webui:               https://localhost:8080
sql:                 postgresql://root@localhost:26257?sslcert=certs%2Fclient.root.crt&sslkey=certs%2Fclient.root.key&sslmode=verify-full&sslrootcert=certs%2Fca.crt
RPC client flags:    cockroach <client cmd> --host=localhost:26257 --certs-dir=certs
logs:                /Users/jesseseldess/node1/logs
temp dir:            /Users/jesseseldess/node1/cockroach-temp947498966
external I/O path:   /Users/jesseseldess/node1/extern
store[0]:            path=/Users/jesseseldess/node1
storage engine:      rocksdb
status:              initialized new cluster
clusterID:           aa69e24b-ffbd-4716-a49a-fb7371ba80fc

When you go to https://localhost:8080 in Chrome and click "Advanced" on the initial "Your connection is not private" warning page, you get:

In contrast, when you do the same think in FF, you have the option to "Accept risk and continue" and can create the Admin UI login page. Same basic path on Safari.
As suggested by @knz, I tried listing $(hostname) before localhost in the cert and starting nodes with --http-addr=$(hostname):8080 and then directing browser to https://<hostname>:8080, but no luck.
Environment:
CockroachDB version:  v20.1.0-beta.2-937-g1ae9b8d2cd
Server OS: MacOS
Chrome version: Version 80.0.3987.149 (Official Build) (64-bit)
FF version: 72.0.2 (64-bit)
Safari versio: 13.0.5 (15608.5.11)

Note that changing the chrome settings degrades the user's browser security for everything, not just crdb. Some eyebrows will be raised. We need to acknowledge this is not a panacea and recommend users to reset the change when they actually deploy.

@knz, I'm glad you're mentioning this. It's pretty unfortunately that we need to degrade security in that way just to maintain a decent getting started experience. Before moving forward, I'd like to understand if there's anything else we can do. @aaron-crl's workaround would let us avoid degrading the user's security, but it's just too complex for getting started. Users should be able to use our cockroach-created certs and access the admin UI locally.
cc @piyush-singh

so Piyush and i were talking about the user journeys yesterday and we figured there were two separate stories:

user sets up fresh cluster in the cloud - then we want real security, no shortcuts

user sets up test cluster on own laptop - then we don't care about transport security, just proper authentication and authorization

So something I could see happening is this:

crdb opens a non-TLS listener for the UI on localhost (access via local browser only)
set up a TLS-strenghtened conn for non-localhost connections (probably non-applicable for the laptop journey)

xref #44842

note that my above proposal (auto-start a non-TLS listener for the UI on the local interface) could be introduced via an opt-in command-line flag.
this way the doc can advise "for testing locally, use the flag --local-ui and then use the URL printed by the server" and get moving forward without caring about the browser config in any way.

I too am sensing this could escalate into the status of release blocker.
This is a relatively minor product change, both low effort and low risk, but it does correspond to a new feature, and thus would require special approval (product? @petermattis?) to squeeze it in during the stability period.

I concur with @knz on both the user stories and the proposal. Moving the starter guide to use http would remove most of the frication. We could have the more extensive workaround presented for cloud accessible starting instructions - where the security should be a concern.


spelling errora

fixing spelling errors

Yay! No spelling errors! 😁

good lord...sorry, was rushing!


Доработка спецификации очередей

Codecov Report

Merging #18 (e7c7620) into main (f2c7234) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   98.65%   98.65%
=======================================
  Files          30       30
  Lines         669      669
=======================================
  Hits          660      660
  Misses          9        9

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 f2c7234...e7c7620. Read the comment docs.


3.4.22 regression with UIEvent type

Vue version
3.4.22
Link to minimal reproduction
https://play.vuejs.org/#eNp9UstOwzAQ/JWVhUQr9YUKlxAqHuqhHADxuPkSkm3q4tiW7YRUVf6djdPXAfW2O7OemV15yx6MGVUlsojFLrXCeJCJyu84844zcOhLM+Mqw6VQOC+Ed/GWK4AeRnBJD7SUlwPAykfwtZhXqHw/gkqLjKtm1utzFY87WRKhxmNhZOKROoA4ExWkMnGO7FKtfEIellzvO2FCL5Ase0ejCwwWnAWBnUQ1XGpLwwqEgqvJhNjtFhQ0TTwmvvPaVfH4JAK1zm9kW44O/hD2+9Y2QxvBjanBaSkysJjdtswKRb6idaeTiakDoiu0S6l/h5sIuqQEN2H1oM4GdEzSX4p8tHZa0a2DR7t0YYRE+2q80IoOHnXuLZdIknwOmLclDvZ4usL05x987eoW4+zNokNbIWcHzic2R9/R848XrKk+kIXOSknTZ8h3pBuUbcZu7LFUGcU+mQtpF4XR1guVf7p57VG5/VJt0HayCfOc0Yd7OrP6Me50dB3e0T1Z8wdRT+L3
Steps to reproduce
Create a typescript component that emits a UIEvent
What is expected?
There should be no type error
What is actually happening?
As of 3.4.22, there is now the following error

Argument of type 'Event' is not assignable to parameter of type 'UIEvent'.
Type 'Event' is missing the following properties from type 'UIEvent': detail, view, which, initUIEventts(2345)

This error was not present in 3.4.21, see here
System Info
System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.65 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
    pnpm: 8.7.1 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 123.0.6312.124
    Safari: 17.4.1
  npmPackages:
    vue: 3.4.22 => 3.4.22

Any additional comments?
This can be worked around with a type-cast, but ideally we shouldn't need it.
<div @scroll="$emit('scroll', $event as UIEvent)">
  ...
</div>

that TS Error is correct, though. Event does not fullfill the requirements of UIEvent.

Excellent, thank you for the fast response!


Add removeAttributesBySelector plugin

This pull request adds the removeAttributesBySelector plugin. Allowing the removal of attributes in elements found by a css selector.
For a project I'm currently working on, I need to remove the attribute fill only if it has the value #00ff00. The removeAttrs plugin only queries the element name and is not able to meet this need.
I'm happy to add other plugins like addAttributesBySelector, or refactor removeAttrs, or create another plugin that combines all this functionality. For now, I've just left it as a separate plugin.
plugins:
  - removeAttributesBySelector:
    selector: "[fill='#00ff00']"
    attributes: "fill"

<rect x="0" y="0" width="100" height="100" fill="#00ff00" />
  ↓
<rect x="0" y="0" width="100" height="100"/>

#977 Addresses the same issue utilizing the existing plugin.
However, The plugin proposed in this PR has an extra benefit of being able to remove a different attribute than the one matching the selector.

SVGO v1.2.0 has been just released!


Gita Storyline UI enhancement.

There is a Gita Storyline Page in Moksh website Where I can make more better UI with smooth scrolling effect.

@akshitagupta15june can you please assign me this task under swoc . i can added 3d effect to page


[Outlook] (link) Change GitHub issue location to office-js repo

Update the GitHub issue location for registering online meeting add-ins to office-js from office-js-pr.

Docs Build status updates of commit 124f02c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/online-meeting.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


exclude wild cards on dynamic urls don't seem to work?

Describe the bug
Thanks so much for your work on this - generally, been easy to work with a setup.
One snag I'm having is with the exclude option in the config. I've tried every combination I can think of to stop indexing certain pages via wildcard - to no avail :D
sitemap: {
    autoI18n: false,
    debug: true,
    exclude: [
      'dev',
      'dev/**',
      '/dev/**',
      'dev\/**',
      '\/dev\/**',
      '\/dev\//**',
      'dev\/*',
      '/dev/*',
      'dev/**/*',
      '/dev/**/*',
   ]
}

If I hardcode a URL it seems to work - just the wildcards I'm having issues with.
I may be doing something wrong?
Reproduction
No response
System / Nuxt Info
No response

Hey, thanks :)
One of these should have worked:
'dev/**',
'/dev/**',

Can you make sure you're using the latest, if so do you think you could provide a reproduction https://stackblitz.com/edit/nuxt-starter-dyraxc?file=server%2Fapi%2F_sitemap-urls.ts :pray:

hmm can't quite recreate - closest I've come is https://stackblitz.com/edit/nuxt-starter-ffznfd  - but it's led me to the solution :)
My urls / slugs don't have an initial slash.
In my site, that results in the urls being fully formed but not picked up by the wildcard.
In my recreation ^ the initial dir is stripped out (so not a fully formed url) and is not picked up by the wildcard.
If I manually prepend a slash all is well :D - thanks for your time

Oh I see, thanks for attempting a reproduction. I'm glad you could sort out your issue :)
Let me know if you need help with anything else.


Update header_rewrite.en.rst to add example of applying cache control headers

Added an example of applying cache control headers at the CDN based on origin path.

Thanks @ryandurfey!


Pylance versioning makes PyRight hard to adopt for a team

There seems to be no way to configure the version of PyRight used by Pylance. There is a way to configure the pypi pyright wrapper to use the same version as pylance's latest release, but this means that new errors will appear in the future without developers making any changes. This is not good for adoption in a large team.
The way most other similar tools (from JS world Prettier, TypeScript for example) work is that the VS Code extension uses the locally installed version. The locally installed version determines the version that is used.
This way PyRight could be pinned to a version via pypi/poetry, and PyLance would use that version. The team responsible for tooling can then go and update PyRight and handle new errors at the time of update, not at a random time in the future.

Just found out about basedpyright, which solves at least this point, see: https://github.com/microsoft/pylance-release/issues/5207
I don't really like this kind of aggressive fork, but I agree with the fork owner that this issue is of paramount importance in getting a large organization like mine to adopt PyRight over MyPy.


Don't start TUYA LOCAL - Setup failed for custom integration 'tuya_local'

Description
Suddenly tuya local doesn't start
Steps to reproduce
i don't know. I've a problem after restart HA
Expected behaviour
No response
Additional context

Registratore: homeassistant.setup
Fonte: setup.py:334
Prima occorrenza: 12:17:22 (1 occorrenze)
Ultima registrazione: 12:17:22
Setup failed for custom integration 'tuya_local': Unable to import component: Exception importing custom_components.tuya_local
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1071, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/tuya_local/init.py", line 27, in
from .device import async_delete_device, get_device_id, setup_device
File "/config/custom_components/tuya_local/device.py", line 306
)
^
IndentationError: unindent does not match any outer indentation level
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1011, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1082, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.tuya_local
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1071, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/tuya_local/init.py", line 27, in
from .device import async_delete_device, get_device_id, setup_device
File "/config/custom_components/tuya_local/device.py", line 306
)
^
IndentationError: unindent does not match any outer indentation level
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1031, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1023, in async_get_component
comp = self._get_component()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1082, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.tuya_local
Confirmation

[X] I am sure this is a bug or improvement, that is well enough described that it can be implemented.

[X] If this is for a specific device, the device config is mentioned above, or diagnostics are included.

[X] Log messages or diagnostics relevant to the issue are included.

[X] This is not requesting addition of a new device.

Seems like you have modified some files locally. Try downloading a fresh copy.


Execute bundle searches in parallel

When processing a FHIR Transaction/Batch operation containing non-modifying operations (e.g., read, search) these operations are processed sequentially by the transaction processor.
As these items do not affect server state, they can safely be executed in parallel without violating the
contract of the FHIR transaction/batch operations. This task involves the implementation of a worker pool
(i.e., a configurable thread pool) that will be used to execute all non-writing search tasks.
Solution Design:
When executing a transaction, instead of executing each search in turn, have a configurably-sized threadpool dedicated to executing non-modifying searches. Possibly use the existing search thread pool?

As discussed, the parallelism is switched to the batch level instead of transaction level, and it's all operations. @tadgh


Changed the comparison of dates in layerDateSelector and queryDate for different timezones; COUNTRY=srilanka

This change hopefully will fix the https://github.com/WFP-VAM/prism-app/issues/865. Unfortunately this bug was not reproducable from localhost.

Thanks a lot for the quick turnaround on this @HarryMytilinaios and @ericboucher. This has addressed the issue as far as I can tell. I'll get more feedback from the team in Sri Lanka, but I think we should be good based on the initial response I heard from them and what I was able to test locally

@HarryMytilinaios a few things to do:

let's find a cleaner way to do this if there is one
then move it to a utility function
make sure we don't need it in other places

In addition, but don't spend too much time on this, let's investigate quickly why a 30min difference appears in our dates when we are on the IST timezone...

Created a utility function which is comparing the equality  of dates without considering the time, and replaced it whenever we do date comparison. Also I took the initiative on removing the console.logs @ericboucher if you think we need them I can put them back.


EO2PY mapping proposal

A special EOattr object that encapsulates attribute access, resolution and application - all in a single object.

Codecov Report

Merging #13 (5424bbd) into main (8a6772f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main      #13   +/-   ##
=========================================
  Coverage     68.90%   68.90%
  Complexity       29       29
=========================================
  Files             5        5
  Lines           164      164
  Branches         10       10
=========================================
  Hits            113      113
  Misses           44       44
  Partials          7        7

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 8a6772f...5424bbd. Read the comment docs.


[FEAT] - Breadcrumbs dropdown menu

Is your feature request related to a problem? Please describe.
Support breadcrumbs dropdown menu just like Xcode.
Describe the solution you'd like
For example:

Duplicate of #37


Explore Substrate implementation

Explore Substrate implementation.

Following is an overview of the Substrate implementation, as of version polkadot-v0.9.42 (May 2023).
General Structure
Substrate is a framework for building application-specific blockchains. Substrate node's core client with outer node services are mostly implemented in async Rust. Though, the code also widely uses traditional synchronization primities, such as locks with reference-counted smart pointers, e.g. with backend and transaction pool.
Background asynchronous tasks are managed with the TaskManager structure, which uses the tokio framework under the hood. TaskManager helps to spawn new tasks (with the spawn_handle and spawn_essential_handle methods), coordinate service termination (with the future and into_task_registry methods), and can take care of owning arbitrary values (with the keep_alive method). Instances of TaskManager can form a hierarchy for termination and graceful shutdown, thanks to the add_child method. TaskManager distinguishes between essential and normal tasks. An essential tasks is a special kind of task that should take the whole node down it if ends.
The sc_utils crate offers multiple-producer, single-consumer (MPSC) channels and publish-subscribe mechanisms for communication between asynchronous tasks. The mpsc module provides the tracing_unbounded function, a wrapper around async_channel::unbounded. It essentially creates an unbounded MPSC channel that tracks metrics and logs a diagnostic warning message if the queue size grows above the specified threshold. The pubsub provides generic means to implement an asynchronous publish-subscribe mechanism; its implementation is based on unbounded MPSC channels from the mpsc module. The notification module, in fact, implements a simple publish-subscribe mechanism on top of the pubsub module, although the documentation describes it as an MPSC channel with deferred instantiation.
Communication
Substrate's networking protocol is based on the libp2p stack. Nodes are identified by their network public keys and communicate with each other through authenticated, encrypted, multiplexed connections. Substrate services use two types of communication between nodes: request-response and notification protocols. Request-response protocols follow the RPC style pattern: the sub-stream initiator sends a single message and the remote responds with a single message back. Notification protocols, after exchanging protocol-specific handshake messages, establish a unidirectional channel where the sub-stream initiator pushes notifications (messages) to. Different protocols communicating through a multiplexed connection are identified with string-based names represented by the ProtocolName type.
The communication layer is represented by the NetworkWorker structure. NetworkWorker is created with the new method accepting the network parameters in the Params structure. It should be then driven by polling the future returned from the run method. The code mostly manipulates with the communication layer through the NetworkService structure, which is obtained with the service method.
To support initiating request-response protocols, NetworkService implements the NetworkRequest trait. Its request method sends a request for the specified protocol to the target libp2p peer and returns the future to await for a response. The start_request method is an alternative interface which receives the response from the supplied one-shot channel.
Request-response protocols have to be registered when creating NetworkWorker by adding instances of the ProtocolConfig structure to the request_response_protocols vector in NetworkConfiguration, supplied in the Params structure when creating NetworkWorker. In ProtocolConfig, the node can set a bounded channel, inbound_queue to receive and handle incoming requests. The channel receives an instance of IncomingRequest structure for each incoming request; in response, OutgoingResponse is expected to be sent back over the one-shot channel pending_response. If the inbound_queue channel is full, the networking service will discard the incoming request and send an error back to the peer.
To support sending notifications, NetworkService implements the NetworkNotification trait. The set_notification_handshake methods is used for setting a protocol-specific handshake message. Some handshake message, possibly empty, has to be set in order to establish a notification sub-stream with peers. The notification_sender method returns an instance of the NotificationSender trait, whose ready method returns a future that resolves when it acquires a free slot in the outgoing notification buffer. The returned instance of the NotificationSenderReady can then be used to consume the slot reservation and enqueue a notification message for the target peer. Though, there is no guarantee of delivery in case the connection to the remote peer breaks.
To handle incoming notifications, the node should subscribe to all events that happen in the communication layer. This can be done with event_stream method of the NetworkEventStream trait, which is implemented by NetworkService. The method returns an async Stream of Event enums. The subscriber has to poll the stream, match the received values against the NotificationsReceived variant, extract the vector of messages, and handle those that correspond to the expected protocol name.
The sc_network_gossip crate provides gossiping capabilities on top of a network service. For example, the implementation of GRANDPA finality gadget in the sc_consensus_grandpa crate uses sc_network_gossip for implementing its gossip protocol.
Substrate communication layer maintains a reputation metric for each peer and disconnects from the peers whose reputation drops blow a threshold. Peer reputation can be adjusted with the report_peer method of the NetworkPeers trait implemented by NetworkService or by adding entries to the reputation_changes vector of OutgoingResponse when handling incoming request-response protocol requests.
There is a direct communication channel from NetworkWorker to the SyncingEngine, which is responsible for syncing the Substrate chain from peer nodes. NetworkWorker informs SyncingEngine through the channel about notification events occurring in the communication layer. This is apparently a legacy mechanism, which can be replaced with the functionality provided by the NetworkEventStream trait.
Consensus Protocol Implementation
Substrate logically divides consensus into two phases: block authoring and block finalization. For both phases, there are ready-to-use algorithm implementations to choose from, or one can implement custom algorithms. For block authoring, Substrate offers authority-based round-robin scheduling (Aura), blind assignment of blockchain extension (BABE) slot-based scheduling, and proof-of-work computation-based scheduling. For block finalization, there are GRANDPA block finalization mechanism and the longest chain selection mechanism LongestChain. The Substrate Node Template uses Aura and GRANDPA with the longest chain selection rule.
Block authoring implementations can use the sc_basic_authorship crate to create new blocks to propose. First, one needs to create an instance of the ProposerFactory structure using the new or with_proof_recording method. ProposerFactory implements the sp_consensus::Environment trait, which defines the init method to initialize the block proposal logic on top of a specific block header and obtain a future that resolves to an instance of the Proposer trait. The Proposer trait defines the propose method for creating a new block proposal, which returns a future that resolves to a block proposal as an instance of the Proposal structure. Apparently, generated block proposals should be imported by calling the import_block method of the BlockImport trait.
New blocks are supposed to be imported into the Substrate Client through a sequence of consensus-specific instances of the BlockImport trait. This allows applying consensus-specific checks before finally importing new blocks to Client.
The topmost BlockImport instance is then used to construct an instance of the ImportQueue trait, which is supplied to build_network function in the BuildNetworkParams structure. The provided ImportQueue is then used to obtain an instance of the ImportQueueService, which is supplied to SyncingEngine for block synchronization between peer nodes. The build_network function also spawns an asynchronous task driving the ImportQueue.
Substrate defines the SelectChain trait for consensus algorithms to choose the best chain for authoring a new block onto or which fork to finalize, if multiple forks are present. The LongestChain structure implements that trait using the the longest chain rule. For example, the GRANDPA implementation requires this trait in the block_import to construct its implementation of the BlockImport trait.
Block authoring, block import queue, and finality voting services are supposed to be run in separate asynchronous tasks.
Tracing and Controlling Execution
Substrate uses the log crate for logging diagnostic messages. The code extensively collects various metrics using the prometheus crate. In addition to that, Substrate client can optionally collect telemetry messages using Tokio’s tracing library. There is apparently no no specific mechanism for controlling execution.


Why is stride not needed when calling dataset.write()?

I am impressed by this project. You have a nice clean implementation, and I look forward to trying it out. But in studying the code and comparing it with other code (in particular the opencv mat to eigen conversion function), I am wondering if there is a problem with your save method where you call dataset.write. When using the .data() buffer of an eigen object, I think one needs to take into account the strides, both the inner and outer strides, but particularly the outer. The particular code from opencv I am referring to is at opencv/eigen.hpp at master · Itseez/opencv in the eigen2cv function. Here is the relevant snippet:
    Mat _src(src.rows(), src.cols(), DataType<_Tp>::type,
             (void*)src.data(), src.stride()*sizeof(_Tp));
    _src.copyTo(dst);

I appreciate your time and feedback.

Thanks for taking the time to get in touch, and for your valuable feedback (and for the kind words!).
This is actually why I first copy the matrix to row-major form before attempting to save.  That way, I believe I am in control of the strides.  Do you see a specific reason why this may not work in general?  Obviously, copying the matrix before saving is suboptimal (it would be nice to be able to save without making a copy), but I have not figured out a simple way to do this in general.

Even though you copy, you could still have alignment issues that will cause padding to be placed at the end of each row. It may not be likely, but I think this is certainly possible. As for avoiding the copy, the eigen2cv method avoids it by using stride and swapping rows and columns.
Of course, my knowledge at this point is theoretical. I have not played with any code, and I do not have concrete examples or demonstrations to discuss yet.

Very good to know.  I will leave this issue open for now.  Any additional investigation (whether or not it includes an actual demonstration of failure) would be most welcome.

Yes, copying is inefficient, but cince you are copying the input matrix before saving, I think your code is correct. I looked at eigen a little more closely, and from what I was able to discover, when allocating a memory block they do not pad a matrix between rows (or columns) to keep them on a particular boundary. So the outerStride appears to be the number of columns (or rows) and your code that uses .data() along with .rows() and .columns() for the copy is okay.
You could avoid the copy but it would take more care. If .Flags say the input matrix row major, the inner stride is 1 and outer stride is the number of columns, the the .data() is ready for memcpy. (If column major, then switch rows and columns.) This would likely be a worthwhile optimization since it would work common inputs.
Where you will encounter an out stride that is not "natural" (a term I found wading through some eigen code, which I think means the data is stored in contiguous memory; i.e., the outer stride is number of columns for row major and number of rows for column major), is when using a block submatrix or a map. Either case may give you a matrix whose elements are not stored contiguously. When this occurs, you can copy the input matrix as you are doing now.
If I have time to play with it I may give you a pull request.
Thanks,
Phil

I had some spare time and I looked through the Eigen forum and found several posts by moderators that said the memory layout of a Matrix is always contiguous. Here is one of them:

Re: Several questions: memory layout, R-value, and back-end.
Fri Jul 08, 2011 6:53 am

Yes, the memory layout of a Matrix<> object is always contiguous. .data() gives you the address of the first element, and .outerStride() the number of elements between two columns (or rows) which is always equal to either rows() of cols() (depends on the storage order of course, the default is column major). data() and data()+size() are valid begin/end iterators.

So, I think your code, while inefficient because it is making a copy, is correct.
If/when I get more spare time, I may play around with avoiding the copy.

I'm going to close this, since I believe you have solved this issue :)

Not solved entirely. I would like to fix that compilation error and all of those warnings I introduced. I only built with Visual Studio 2013, so I did not see them. I have easy access to gcc 4.8.2, so I will try that and see if I can clean up. Thanks for your time.

That would be awesome, thanks again.

I have addressed the compilation error and warnings. I also have a preliminary CMakeLists.txt for the unit tests. I am cleaning it up and should have a new pull request for you in the next day or two.


Clear command doesn't clear the screen

Environment
Windows build number: 18363.628
Windows Terminal version: 0.8.10261.0

Steps to reproduce

Open the powershell tab in the terminal
Execute any commands so that their output takes more than one screen vertically (for exemple, run ls multiple times)
Run the clear command

Expected behavior

All previous output is cleared, the tab is not scrollable, a user can't scroll to the output that was before the clear command.
Actual behavior

After executing the clear command the content of the tab is scrolled so that the last line is at the top of the screen. The scrollbar is present and can be scrolled up. A user can scroll to the output that was before the clear command

/dup #1882


Component missing after installing million.js on my React App

What version of million are you using?
0.0.16
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npn
What operating system are you using?
Windows 11
What browser are you using?
Chrome
Describe the Bug
Component missing after installing million.js on my React App

What's the expected result?

Link to Minimal Reproducible Example
https://stackoverflow.com/questions/78547561/component-missing-after-installing-million-js-on-my-react-app
Participation

[ ] I am willing to submit a pull request for this issue.

This code is from the udemy course React - The Complete Guide 2024 (incl. Next.js, Redux)(https://www.udemy.com/course/react-the-complete-guide-incl-redux/) - it's how I discovered Million.js too!
In section 13, the instructor introduces Million.js and points out that there is a reference error caused by the icons in the buttons that are vanishing for you. He fixes this by adding //million-ignore directly above the default export on the icon pages.
Looking at Million.js docs, I can see they've changed since the video was made. I'm new to Million.js so I don't know if //million-ignore is still usable. But have you tried excluding the icons in your build options as is referenced on Million.js docs?

This code is from the udemy course React - The Complete Guide 2024 (incl. Next.js, Redux)(https://www.udemy.com/course/react-the-complete-guide-incl-redux/) - it's how I discovered Million.js too!
In section 13, the instructor introduces Million.js and points out that there is a reference error caused by the icons in the buttons that are vanishing for you. He fixes this by adding //million-ignore directly above the default export on the icon pages.
Looking at Million.js docs, I can see they've changed since the video was made. I'm new to Million.js so I don't know if //million-ignore is still usable. But have you tried excluding the icons in your build options as is referenced on Million.js docs?

I see no error so i don't put //million-ignore on my components. But if i do, i still facing the issue

Hi @Trung15010802, we’ve just deployed a fix for you! 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!


StringBody: just write the bytes to the output stream

StringBody's writeTo method looks like it was inspired by FileBody's writeTo:
It creates an intermediate 4k buffer to transfer the content to the OutputStream.
However, I believe this isn't necessary, since the content itself is already an array of bytes.
The content can be directly written to the output.
This was a significant source of allocations in a project I'm working on:

for small form values, the 4k buffer was a significant over allocation
for large form values, transferring the data using the buffer was a lot of work

Started [alloc] profiling
--- Execution profile ---
Total samples       : 155058
skipped             : 35740 (23.05%)

Frame buffer usage  : 10.567%

---<PHONE_NUMBER> bytes (26.18%), 16734 samples
  [ 0] byte[]
  [ 1] org.apache.http.entity.mime.content.StringBody.writeTo
  [ 2] org.apache.http.entity.mime.AbstractMultipartForm.doWriteTo
  [ 3] org.apache.http.entity.mime.AbstractMultipartForm.writeTo
  [ 4] org.apache.http.entity.mime.MultipartFormEntity.writeTo
[SNIP]

I removed both the 4k buffer and the flush, similar to how ByteArrayBody implements writeTo  under the assumption that, were those features an intended part of the specification, then ByteArrayBody would have implemented them as well.

@slackhappy Also merged to 5.1.x. Thank you for this contribution.


My image is all white

Bug reports:

I am creating a feedback feature on my angular 5 web app, click feedback button -> take screenshot and show the modal

Here is the code

let element = document.body
    html2canvas(element, {
      width: window.innerWidth,
      height: window.innerHeight,
      scrollX: window.pageXOffset,
      scrollY: window.pageYOffset,
      x: window.pageXOffset,
      y: window.pageYOffset,
    }).then(canvas => {
      this.canvas = canvas
      canvas.style.width = '100%'
      canvas.style.height = '100%'
      this.imageScreenshot.nativeElement.appendChild(canvas)
      this.formModal.show()
    })

But the created image is so much white, what did I do wrong here ?

Specifications:

html2canvas version tested with: 1.0.0-alpha.12
Browser & version: Chromium Version 68.0.3440.84 (Official Build) Arch Linux (64-bit)
Operating system: Manjaro Linux
Front-end framework: Angular v5

Sorry, after deep investigation it because animation, and this is outside of project scope


version `GLIBC_2.28' not found

Hello, I am very sorry to come here to ask questions. I started the vpn project Lantern on ubuntu16. 4 and reported the following error. What should I do?
`Running installation script...
/usr/lib/lantern/lantern-binary: 确定
/home/lv/.lantern/bin/lantern: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28 not found (required by /home/lv/.lantern/bin/lantern)
'

I have the same question on ubuntu 16.04.


Clean up infra

Tested and signed off from Daemon  , snet-platform-usage is not required anymore ( Doesnt break any Daemon Calls)


Stdlib module.md updates

Purpose

$title.

Codecov Report

Merging #19037 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #19037   +/-   ##
=======================================
  Coverage    15.8%    15.8%
=======================================
  Files          47       47
  Lines        1259     1259
  Branches      196      196
=======================================
  Hits          199      199
  Misses       1047     1047
  Partials       13       13

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 5e6d330...787ed4d. Read the comment docs.


New version: InducingPoints v0.2.0

Registering package: InducingPoints
Repository: https://github.com/JuliaGaussianProcesses/InducingPoints.jl
Created by: @theogf
Version: v0.2.0
Commit: a6d8a34912433230a33ca1325180b4de7ff8df76
Reviewed by: @theogf
Reference: https://github.com/JuliaGaussianProcesses/InducingPoints.jl/commit/a6d8a34912433230a33ca1325180b4de7ff8df76#commitcomment-52919883

@theogf please see the message above.  Once you fix the automerge issues you can register again the new revision without changing the version number and this pull request will be automatically updated.
[noblock]


Please slow down the development progress and get the bugs fixed

Please, I encounter 3-4 different bugs in daily use
I have recommended atom to my friends, it runs really slow in some of their laptops (mac & windows)
my friend's laptop has better hardware but I don't know why atom runs slower in it.
but it's okay in my computer,
They ask me why, I just can't answer their questions.
I have reported some bugs about scroll bar in atom-light-ui and other ui issues on windows,
But it never get fixed from versions to versions, but the ticket was closed because
they assumed it was fixed but still a problem in 1.12.0.
In the comment areas of every news/articles about atom, some people say good, while many people complain performance, or encountered other problems.
please slow down, and take a look at these plenty bugs
quality is nearly out of control now
Prerequisites

[ ] Can you reproduce the problem in safe mode?
[ ] Are you running the latest version of Atom?
[ ] Did you check the debugging guide?
[ ] Did you check the FAQs on Discuss?
[ ] Are you reporting to the correct repository?
[ ] Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.
Description
[Description of the bug or feature]
Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Versions
You can get this information from executing atom --version and apm --version at the command line. Also, please include the OS and what version of the OS you're running.

Thanks for reaching out!
We have passed along the information to the maintainers team. Because we treat our issues list as the Atom team's backlog, we close feedback issues after passing along the information to the maintainers to keep our backlog clean and focused. In the future, if you want to send feedback to the maintainers you can do so more directly by sending email to<EMAIL_ADDRESS>


Disables lightboxing on a button that is actually an image

Amplitude Developer Docs PR
Fixes "Run In Postman" button opening in a lightbox issue that was apparently introduced when I turned on glightbox plugin.
Deadline
ASAP
Change type

[X] Doc bug fix.

PR checklist:

[X] My documentation follows the style guidelines of this project.
[X] I previewed my documentation on a local server using mkdocs serve.
[X] Running mkdocs serve didn't generate any failures.
[X] I have performed a self-review of my own documentation.

Confirmed fixed in staging. Whoops. Didn't realize that button was an actual image and it got targeted by the lightbox plugin I recently enabled. Lesson learned.


Debug Settings, other Apps are not responding to touch

Mirror issue for https://b.corp.google.com/issues/139531303. Only occurs after the most recent roll. Conversation should occur there.
cc @cbracken @iskakaushik . Assigning to cbracken after quick F2F discussion.

Assigning to @iskakaushik per delegation on linked issue from @cbracken


New Sonoff POW Origin (POW R2 'new' version)

Itead launched new version of Sonoff POW R2 called Sonoff POW Origin. Also the link of Sonoff POW R2 in Tested Devices list leads to the new POW Origin.
Is this new device tested with SonoffLAN ?
Thanks in advance for your work

Looks like they put new device to the old link. I don't think there will be any problems with the support.
I don't think there will be any problems with the support.
If the device has new firmware, you will need to add support. It's not hard, just a matter of free time.


get downloaded size without start download file

is any solution to get downloaded size without start downloading file such percent and downloaded size?

Yes, we can add this API in the new version very soon.

Is this available yet?

Is this available yet? Been almost a year for this thread.

Yes, There is For file size you can get it on OnProgressListener under onProgress method
You just have to call progess.totalBytes
and for File downloaded you can get as progress.currentBytes

Not getting file size by calling progress.totalBytes inside OnProgressListener . It is returning -1 .
What to do ?

Not getting file size by calling progress.totalBytes inside OnProgressListener . It is returning -1 .
What to do ?

I also facing the same issue.

The same issue facing.

Same issue here. it is returning -1 for files greater than 1 MB

Same Issue. getting totalBytes as -1.


Rerender and windows build

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

libcxx relies on pthread and cannot be built on windows.


badger: add manual flatten to remove old version keys

Signed-off-by: crazycs520<EMAIL_ADDRESS>
What problem does this PR solve?

Issue Number: close #114
What is changed and how it works?
Call badger Flatten API regularly.
Flatten uses to remove the old version keys, otherwise, the value log gc won't release the disk space which occupied
by the old version keys.

/merge


json-scheme-compat

Closes #4, #5

Going to postpone creating a release till next week, in-case @jirutka spots more issues.


Make currentSettings not async

This simply removes the async keyword from the currentSettings function, and the subsequent file in UserSettings. The keyword added an unnecessary promise wrapper to the function response which made reading the settings for display in a react app somewhat complicated.
I also made R2Settings.currentSettings a getter, so it can now be accessed as a static property instead of as a function.
Consumers will need to update their code to no longer expect a promise here.

I am actually going to close this in favor of a proposed v2 api into the reader using a single class...


Can't support this cookie file from curl command

➜  ~  cat /tmp/aa.cookie

File locate at
http://pan.baidu.com/s/1jGzO90a
This file come from this command.
➜  ~  rm /tmp/aa.cookie && curl 'http://passport.115.com/?ct=open_login&ac=api_login&t=qq&goto=&code=9AD253F2306CB0BC33D464C372928724' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8'  -H 'Accept-Language: zh-CN,en-US;q=0.7,en;q=0.3' -H 'Connection: keep-alive'  -H 'DNT: 1' -H 'Host: passport.115.com' -H 'Referer: http://openapi.qzone.qq.com/oauth/show?which=ConfirmPage&display=pc&redirect_uri=http%3A%2F%2Fpassport.115.com%2F%3Fct%3Dopen_login%26ac%3Dapi_login%26t%3Dqq%26goto%3D&response_type=code&oauth_token=&client_id=100229269' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0'  -c /tmp/aa.cookie  -b PHPSESSID=bo72eikeo6ijn9oibul0na5mn0 > /dev/null && cat /tmp/aa.cookie
I use these commands to load.

from u115 import API
api = API(auto_logout=False,persistent=True,cookies_filename='/tmp/aa.cookie',cookies_type='MozillaCookieJar')
api.cookies
str(api.cookies).count('=')

Only load three cookie name,It ignore the row which contain string "#HttpOnly_.115.com".
My python version
Python 3.4.3

Sorry for my english.

Hi, @linhua55 ,
It seems MozillaCookieJar never supports "HttpOnly", which is the cookies.txt format (though it is used by curl), please refer to: http://bugs.python.org/issue2190
Also, currently Python 3.4 is not fully supported and tested, due to an issue (not identified as bug by upstream, http://bugs.python.org/issue23841) related to weakref in the upstream. Please refer to this https://github.com/kennethreitz/requests/issues/2303. Maybe supported in the future


Bug fix in BM25 text extraction

The text extraction code for BM25 was incorrectly including the title portion, which resulted in a slightly higher recall.

Thank you very much!


Cookie not saved on a HTTP 302 response

Hello !

Best wishes for the new year, wishes for a great future of this great project 🎉 !

I observe a behaviour I suppose wrong, here is the scenario :

in Bruno, I configure a request with some headers to authenticate on my server
the request is sent, the server checks, and if OK, it sets a cookie, and answers with a 302 http code to redirect elsewhere on the same domain
Bruno receives the response 302 and follows it, but the cookie that comes with this response is not stored and re-sent when redirect

Here is what Bruno do : (follows redirection in background and displays the final 200, with non cookie)

Here is what it should be done, I suppose : (store the cookie sent with the 302 answer, and then put it in the redirection call)

Just tested bruno for a personal use-case as well and can confirm I ran into the same issue.

I'm facing the same issue

Same issue for HTTP 301 (e.g. bit.ly links).

When a redirect (HTTP 301 or 302) is received, Bruno follows it automatically (unless you specify req.setMaxRedirects(0) in the Pre Request script, in which case Bruno stores the cookies of the initial response (unless run in a Runner, see #2950).
A workaround for you, @nico-m-64, might be to explicitly stop on the redirect response using setMaxRedirectsin the Pre Request script, use the Post Request script or tests to store the redirect location (response header location) in a variable and manually run a subsequent request, which takes the target URL from the variable set before. That way the cookie will be stored and used on eligible requests.
There is more incorrect behavior in Bruno when it comes to cookies and redirects:
If a redirect is followed (default behavior), then cookies are stored neither for the initial response nor for the final response after following to the redirect location.
Example:
https://bit.ly/3AHXx8s is a redirect to https://www.cnn.com
Both locations set their own cookies (and in fact https://www.cnn.com wants to redirect again, which I suppress in this example for brevity).
curl -s -D - -L --max-redirs 1 https://bit.ly/3AHXx8s -o /dev/null | egrep -e '(location|set-cookie)'
location: https://www.cnn.com/
set-cookie: _bit=o7sjLf-37d1f7fcf94374aad4-00J; Domain=bit.ly; Expires=Mon, 24 Feb 2025 19:47:15 GMT
location: https://edition.cnn.com/
set-cookie: SecGpc=0; Domain=.cnn.com; Path=/; SameSite=None; Secure
set-cookie: countryCode=DE; Domain=.cnn.com; Path=/; SameSite=None; Secure
set-cookie: stateCode=BW; Domain=.cnn.com; Path=/; SameSite=None; Secure
set-cookie: geoData=steinheim an der murr|BW|71711|DE|EU|200|broadband|48.980|9.240|-1; Domain=.cnn.com; Path=/; SameSite=None; Secure

So, as you can see there are quite a few cookies to store, but when running the GET request to https://bit.ly/3AHXx8s in Bruno, the cookie store will not show a single added cookie.

Wow, a very big thank you @j-lebek for these explanations and this workaround which works wonderfully.
Looking forward to the resolution of this bug


Does it support tesseract 5<EMAIL_ADDRESS>

Does it support tesseract 5<EMAIL_ADDRESS>

I tried your sample data. It works to train. But how to prepare Japanese dataset and how to configure settings for Japanese in Gui?
Warning: given outputs 77 not equal to unicharset of 76.
Num outputs,weights in Series:
1,36,0,1:1, 0
Num outputs,weights in Series:
C3,3:9, 0
Ft16:16, 160
Total weights = 160
[C3,3Ft16]:16, 160
Mp3,3:16, 0
TxyLfys48:48, 12480
Lfx96:96, 55680
RxLrx96:96, 74112
Lfx192:192, 221952
Fc76:76, 14668
Total weights = 379052
Built network:[1,36,0,1[C3,3Ft16]Mp3,3TxyLfys48Lfx96RxLrx96Lfx192Fc76] from request [1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx192 O1c77]
Training parameters:
Debug interval = 0, weights = 0.1, learning rate = 0.002, momentum=0.5
null char=75
2 Percent improvement time=100, best error was 100 @ 0
At iteration 100/100/100, Mean rms=6.824000%, delta=43.526000%, BCER train=99.900000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 99.900000 wrote checkpoint.
At iteration 200/200/200, Mean rms=6.729000%, delta=41.808000%, BCER train=99.941000%, BWER train=100.000000%, skip ratio=0.000000%,  New worst BCER = 99.941000 wrote checkpoint.
At iteration 300/300/300, Mean rms=6.689000%, delta=41.587000%, BCER train=99.961000%, BWER train=100.000000%, skip ratio=0.000000%,  New worst BCER = 99.961000 wrote checkpoint.
2 Percent improvement time=400, best error was 100 @ 0
At iteration 400/400/400, Mean rms=6.662000%, delta=40.956000%, BCER train=99.856000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 99.856000 wrote checkpoint.
2 Percent improvement time=500, best error was 100 @ 0
At iteration 500/500/500, Mean rms=6.630000%, delta=40.401000%, BCER train=99.046000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 99.046000 wrote checkpoint.
2 Percent improvement time=600, best error was 100 @ 0
At iteration 600/600/600, Mean rms=6.605000%, delta=39.960000%, BCER train=98.374000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 98.374000 wrote checkpoint.
2 Percent improvement time=300, best error was 99.856 @ 400
At iteration 700/700/700, Mean rms=6.582000%, delta=39.464000%, BCER train=97.234000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 97.234000 wrote checkpoint.
2 Percent improvement time=300, best error was 99.046 @ 500
At iteration 800/800/800, Mean rms=6.568000%, delta=39.257000%, BCER train=96.503000%, BWER train=100.000000%, skip ratio=0.000000%,  New best BCER = 96.503000 wrote checkpoint.

I tried 100 lines jp. It can be trained. Result on training data is fine, either as new model and refined model.

I'm glad you've managed to do it.
Just FYI there's a "Discussions" section which is more appropriate for such questions that the "Issues" section.


[cluster test] add reconfig to the pre release suite

Motivation
add reconfig to the pre release suite
Have you read the Contributing Guidelines on pull requests?
y
Test Plan
./scripts/cti --pr 6102 --suite pre_release
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

/land

Can we merge it on Monday?
/cancel

/land


Update to the latest RTL.

Verilator failure occurs because the mailbox semantics were changed in https://github.com/chipsalliance/caliptra-rtl/commit/a786ec637808f3bd5aa76a05f43652edce27d94b such that the sender can no longer read out of the mailbox. We need to update this test to work from both sides of the mailbox.

Obsolete.


fixes #3 : setup unit tests for sentiment analyser

this PR is to fix #3 that is setup unit tests for sentiment analyser

@JasonEtco @bkeepers let me know if I'm missing something

This is looking good, but rather than mocking the request library, how about mocking what a network request would actually return? We typically use nock, which lets your application make requests to a "fake" endpoint. That way you're doing a few good things:

Reducing the amount of code you have to mock
Reducing the number of arguments you have to pass (no need to pass a special request object)
Testing a more realistic scenario where a request response can cause an error

@JasonEtco nock looks pretty amazing. I'll use that now


8312 - change initialize route and add UI polling

Shippable/pm#8312
https://github.com/Shippable/admiral/issues/193#issuecomment-294044148

complete. closing.


why I can't run the game

stop here

Hi it's working as intended. Go to a browser and open localhost:8080, like you have already done. Then open an incognito window and go to localhost:8080 on that browser.
This is a demo of a multiplayer game so there must be multiple players.


Structure update

Updated the structure of this project.
The new conventions are:

New threadsafe module for threadsafe implementations
New functional module for purely functional implementations
algorithms and datastructures directory in every module to separate between them
test directory according to the above conventions

As git cannot add empty directories, those directories should be manually added if an addition to them should be made and it doesn't exist already.

According to Travis this doesn't compile... I'd recommend fixing that before merging.


gnome-power-manager: init at 3.26.0

Motivation for this change
Provides an app to view battery and power statistics.  This app is badly
documented on the web, but is in the default Fedora install; hence to
motivation to add it to Nix.
Testing
nix-env -i gnome-power-manager -f ~/nixpkgs/
gnome-power-statistics

It should launch and show some power statistics!
Things done

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

[x] NixOS
[ ] macOS - N/A
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thanks for the review @jtojnar; I've force pushed an update that addresses both comments.
Re removing gsettings_desktop_schemas; it still works on my environment.  But I wonder if that is only because I already have gnome3 installed.

I do not see the schemas mentioned anywhere in the code. Well they might still be needed by GTK itself but that was handled by #31891.

Thanks.


entrypoint.sh

In the entrypoint.sh script should the line:
chown 664 /etc/oratab
read:
chmod 664 /etc/oratab
Thanks

@neilblue what is it for? is it causing some issues?

man chmod. In general it's bad syntax.

the two lines:
chown oracle:dba /etc/oratab
chown 664 /etc/oratab
just look like the second one was ment to be chmod. I am not familiar with oracle installs.

Thank you for putting this container together. I am in the process of trying to initialise the database during container creation to I can start a fresh container quickly with a clean instance.


Conflicts with typogrify

I had set TYPOGRIFY = True in my pelicanconf.py only to find that it breaks some functionality of ipynb posts. Specifcally, typogrify applies <span> elements to parts of the inline CSS, which ends up breaking those styles as well as MathJax. That is probably a bug in typogrify, but I thought I'd point it out here.
Obviously the easiest way to fix the issue is to disable typogrify.

Kinda tricky to fix for me since i don't use that plugin.
You can probably make it work with some extra CSS like I do for my theme: https://github.com/danielfrg/middle-theme/blob/master/templates/ipynb.css

Yeah, sorry to even open a ticket about this. It's not something that you need to worry about fixing, I think. I just thought this conflict should be documented in some way, because it cost me a while to figure out what was going wrong. Maybe adding a brief note in the README would do it.

Not a problem at all. I like to record this stuff in issues.

Thanks for opening the ticket. Spent some time trying to figure out why my strings don't get colored red. I found the weird s inside color properties, but didn't know why.
Disabling Typogrify fixed it.


Indicator setup > Targets tab: Convert LoP target to a numeric field

Acceptance criteria
This issue includes two tasks -- writing/executing a script and converting a form field from one type to another.
NOTE: Before we go to the trouble of writing the script, we should run a query to make sure there are enough remaining non-numeric LoP values in active projects to justify the effort.
If the number is tiny and/or the programs involved are inactive, we could take a simpler approach: Preserve the original values in a table that is easily referenced if we get questions from the field. Then go ahead and convert the field and delete the original values.
Execute a script that does the following

[ ] 1. Check to see if the LoP value contains non-numeric values
[ ] 2. If YES, the following happens:
[ ] 2.1. Append a string ABOVE any existing text in the Rationale for target  field:
2018-11-23 UPDATE: TolaActivity no longer accepts non-numeric values in the Life of Program (LoP) target field. The original LoP target value was:
[ ] 2.1.1. The string is translated into French and Spanish.
[ ] 2.2. The original Lop value appears after the colon.
[ ] 2.3. Any original text in the Rationale for target field is preserved under the update message.

Convert LoP value to a numeric field

[ ] LoP field is numeric.

Background context
Before Winterhawks, the LoP field permitted non-numeric characters, and users would often enter percent signs, negative signs, units of measurement, etc. With Winterhawks we instituted checks to prevent further entry of non-numeric values, made unit of measure required, and added other means of identifying percentages and direction of change. However, we did not convert the field to numeric in order to preserve existing values. We then communicated to field teams that they needed to fix these fields and gave them tools with which to efficiently find the ones that needed fixing.
Converting the LoP target to a numeric field will afford a number of future enhancements related to periodic target setup (for example, automatically calculating the LoP instead of manually entering it) and disaggregation of results.

@jennyhavah  is moving this to Mangosteen as it is a larger ticket than Ghost Pepper.

@jennyhavah I've listed below the counts of each category of what the LoP target could be.  The ones that would require some work to figure out are the "Other" and "Float" categories which represent difficult to interpret text and floating point numbers respectively.
Other: 117
Float: 99
Integer: 3119
Number with comma/space: 122
Null in DB: 110
Percent: 52
Empty String: 489
Entered N/A: 80

@sanjuroj I did a bit of digging in Slack, and it turns out Mahmood did a bunch of work to automatically fix as many baseline and LoP fields as he could with a script, back in February. See https://mercycorps.slack.com/archives/G4NT6MJ15/p1519145422000399
I'm surprised to learn that we still have a bunch of LoP values with percent signs. Just a guess, but I wonder if Mahmood's script successfully converted those indicators to the percent type but did not update the LoP field to remove the percent signs.
In addition to Mahmood's script, we ran queries and created custom spreadsheets for each country that the team sent out with detailed instructions to fix invalid fields (including LoP fields and quick links to the indicators involved.
Given all of the development and communications efforts we've already put into this, and the very long grace period since Winterhawks was released, I don't think we should invest additional time and effort trying to figure out and fix these LoP fields. It's likely that many of these programs are no longer being tracked; in fact, Emily made it a point to reassure teams that fixing those fields was only essential for programs they were still tracking. So they may made a very intentional decision not to put in that work.
As I see it, we can go one of two routes:

Preserve the queries you ran in a format that would allow us to easily track down old LoP values if teams reach out to us about it. Go ahead and convert the field to numeric and wipe out the invalid values.

We go with the solution I described in the ticket -- quite a bit more involved, but it preserves the values in the interface rather than in a spreadsheet somewhere.

Thoughts?

If teams haven't gone through an update the values already I highly doubt that they are active programs or that they're actively tracking their indicators in Tola. I agree that we should move forward with option 1 and let's just make sure that everyone, esp Marie and Hanna, know what will happen and where they can find the original values in case a user asks about them.

Following up on this acceptance criteria:

Right now, I get the expected validation message when I enter a negative sign like -5. But I don't get it when I enter a plus sign like +5. It doesn't actually save the symbol, but it appears to accept the value, and we want people to use the direction of change option to express positive direction of change. They might overlook it if the system appears to be accepting the +.
I'd like to request the following IF they won't take more than 15 minutes:

Show the validation message if I enter a + sign.
I'd like to simplify the validation message which is a bit out of date. Right now it says:

Please enter a number larger than zero with no letters or symbols. If your target is a percentage, describe it in the unit of measure field.

I'd like it to just say: Please enter a number larger than zero with no letters or symbols.

Per Slack - the validation of the "+" sign as non-numeric is a bigger lift and may appear as a GP ticket later.  For this ticket updated the validation messaging https://github.com/mercycorps/TolaActivity/pull/958


fix #243,

@prakhar1989 @mrdannael please look into this

Rebase with master :)

@mrdannael rebased with master :)


Ts/ref typing

Summary
Three tiny changes

Fixes count and countInStore typing to return number
Allows params to be passed as Ref in get getter
Adds Ref args to *InStore Model functions

❤

Thanks for fixing my dirty merge conflict resolution.  👍  @hamiltoes.

released in<EMAIL_ADDRESS>


crate level examples, including FlateReadExt

Completes #76 fixes #72

Perfect! Thanks again so much for working on these!

Uh @alexcrichton this didn't get merged.

Gah my bad :(


New documentation

tutorial.rst  was added
how-to pages.rst added
readthedocs page was created
doctests based on tutorial and how-to-pages were created

Must remove unnecessary files in docs/build


Add unit test for the methods

There are not test cases for this app.

add py.tests

I can take this one.  Is unittest OK, or would you prefer a tool like pytest?

Commit 730fd94 has a single unit test, let me know how everything looks


Wrong message displayed when trying to remove liquidity

When trying to remove liquidity, the app might show the wrong message -

The pool was WINGS / BNT in this particular case and here's the console log -

What's the public IP of this user? The app will block the user if the API response returns an unknown as well, should we stop this behaviour and allow unknowns?

@yudilevi

I can't get the IP but I think the solution in case we can't identify the country is this -
https://github.com/bancorprotocol/webapp/issues/135

@yudilevi I am closing this, as it is expected behaviour to block UNKOWN IP until we have implemented #135. If you want to allow UNKOWN IP please reopen.


Trying to understand SimpleMDE and CodeMirror more

This is more of a question than a bug report so I apologize if I asked this in a wrong place.
SimpleMDE introduces a number of features from GitHub-flavored Markdown (GFM) in CodeMirror. However, syntax highlighting in edit mode (not just preview mode) seems to be missing. Moreover, I can't seem to reenable it by including additional plugins from CodeMirror as they suggest (probably because CodeMirror class isn't exposed by SimpleMDE).
In addition to syntax highlighting, I'd like to add closebrackets plugin to my instance of SimpleMDE so writing code blocks becomes a little easier. Based on my use cases, I had a few questions:

How come not all GFM features are supported? Is the GFM mode in SimpleMDE implemented differently than the vanilla gfm.js in CodeMirror or is the problem simply that SimpleMDE doesn't load the additional syntax highlighter plugins that gfm.js relies on?
If it's the later, can I load/apply them without modifying SimpleMDE code? And if not, is it possible to have something like an init flag in SimpleMDE (i.e. codeBlockModes: ['javascript', 'python', 'css']) to have SimpleMDE attempt to load the relevant lang.js file user links on the page)?
Similarly to number 2, is it possible to load the closedbrackets plugin?

Thank you

You can still access the underlying codemirror configuration.  For example, to implement the configuration mentioned here https://github.com/codemirror/CodeMirror/issues/1576#issuecomment-19146595 I did:
var editor = new SimpleMDE({ ... });
editor.codemirror.options.extraKeys.Home = "goLineLeft";
editor.codemirror.options.extraKeys.End = "goLineRight";

And SimpleMDE's parsingConfig option gets passed through, so you can set other GFM options, e.g. taskLists: false if needed.

Vanilla CodeMirror seems to be creating CodeMirror object in global scope, which many of the plugins piggyback on by appending functionality to it. SimpleMDE seems to hide the object in its own scope, so when I include one of these extra libraries on the page I get the following error:

Uncaught ReferenceError: CodeMirror is not defined

It looks like XML/HTML mode does work out of the box, which is consistent with what I'd expect from the source: https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/src/js/simplemde.js . It looks like I would have to modify the source, however, to include additional languages unless there is some option to expose CodeMirror object the same way that I'm missing?

Sorry I'm running an older version of SimpleMDE still, so it might be different.
The "CodeMirror is not defined" has been a recent error in several bug reports.  1.11.2 has it fixed. https://github.com/NextStepWebs/simplemde-markdown-editor/releases/tag/1.11.2

I'm using CodeMirror from the CDN: https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js (which is 1.11.2 as well). I looked through a few of the "CodeMirror not defined" bug reports, it looks like their issue occurred for modules that should already be embedded in SimpleMDE itself (i.e. spellchecker). In my case this isn't a module that's pre-bundled with SimpleMDE, so it doesn't look like a bug in SimpleMDE, just that I may not be able to include the extra libs without rebuilding simplemde.min.js.

So you're saying that some of CodeMirror's plugins are assuming that the CodeMirror object has global scope? If so, then that's an issue with the plugins and not SimpleMDE.

Unless I'm misreading the source, every plugin (including the official ones) seems to be making that assumption, here are some examples:
https://github.com/codemirror/CodeMirror/blob/master/mode/javascript/javascript.js
https://github.com/codemirror/CodeMirror/blob/master/mode/clike/clike.js
https://github.com/codemirror/CodeMirror/blob/master/mode/xml/xml.js
https://github.com/codemirror/CodeMirror/blob/master/addon/edit/closebrackets.js
I'm referring to this line:
mod(CodeMirror);

which seems to be the way to bootstrap plugins in browser environment.

Looks like the source files are designed to be built into a packaged script. If they're just included using script tags, then they'll assume they're being used globally. You may want to fork SimpleMDE and build in any plugins needed yourself.


Piper-TTS Installation Related Issues

For installation-related issues, please refer to the Piper TTS repository. It's important to note that if you're installing piper-tts via pip, only Python 3.10 is currently supported. Mac users may encounter additional challenges when using the downloaded binary. For more information on Mac-specific issues, please check this issue and this pull request.
Ref:

https://github.com/rhasspy/piper/issues/395
https://github.com/rhasspy/piper/issues/509
https://github.com/rhasspy/piper/issues/523
https://github.com/rhasspy/piper/pull/412

I would love to be able to use piper as a external container for several reasons. it would also simplify your workload. you wont have to deal with issues related to piper performance or compatability.

I would love to be able to use piper as a external container for several reasons. it would also simplify your workload. you wont have to deal with issues related to piper performance or compatability.

Wow. If this container is working then it will be much easier for people to use piper without trying to install it. I'll think about integrating this.

@p0n1 I got a version of this working here, though it diverges a bit with some of the existing patterns, would love a little feedback, happy to tweak it!

I would love to be able to use piper as a external container for several reasons. it would also simplify your workload. you wont have to deal with issues related to piper performance or compatability.

@p0n1 I got a version of this working here, though it diverges a bit with some of the existing patterns, would love a little feedback, happy to tweak it!

Nice. That would be very helpful. Will try your work.

FYI - tried out the branch from this PR myself and it works wonderfully.


Code | Alphabetic Pattern 171

@aryashah2k can i work on this issue?
and also assign me alphabetic pattern issue 51 - 65 , 77-84, 87-91

Alphabetic pattern 58-65 77-84, 87-91 has been assigned to someone else
Alphabetic pattern 51-57  has been resolved already

opps !!! I meant alphabetic pattern 151-165,177-184,187-191


How to set timeout on the tcp operation

It looks like the way to do this is via TcpStream::connect_timeout() but send() is using TcpStream::connect(). Any interest in a change that could support setting a timeout? I'm not sure how one might do this but wanted to see if there was any interest in the change or perhaps if I'm missing something and its already possible.

This now implemented with suggested fix. Thanks for the pointer!


[OpenCL] Fixes grpc test failure for SYCL devices

The test constructs a graph containing an IdentityOp on strings, which doesn't exist on CUDA and SYCL devices. The test expects to fail for CUDA devices, so add the same expectation for SYCL devices.
Resubmission of #10698

Can one of the admins verify this patch?

@tensorflow-jenkins test this please