[Migrate] - JavaScript to TypeScript

Description:
We need to migrate the existing JavaScript codebase to TypeScript for better type safety and improved maintainability.
Migration Checklist:

[ ] #1646
[x] constants : #1643
[ ] controllers
[ ] middlewares
[ ] mockdata
[ ] models
[ ] routes : #1662
[ ] scripts
[ ] services
[ ] test
[ ] utils

I can do this task. Please, assign it to me.


[libra_block] remove unused fields, add round to NewBlockEvent

Motivation
Remove unused fields, add round to NewBlockEvent which'll be used for the leader reputation.
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
cargo run -p stdlib, cargo test -p testsuite
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.)

let me know if any of you feel those fields might be useful

I was hoping some conversation in the pr like we actually need xx field.

why we're removing these fields.
unused
Why round > height.
we need round for leader reputation, but I didn't cover why round > height.
Why remove proposer.
unused

As far as I understand, the PR introduces the following changes:

Add a round field to the BlockMetadata core type struct.
Replace height with round for NewBlockEvent.
Remove the id and proposer fields from BlockMetadata resource.

@zekun000 Could you please remind the high-level flow with the structs above? (who is using NewBlockEvent? how is the BlockMetadata resource created and how is it used?)

@dmitri-perelman thanks for summarizing the changes!
MetadataBackend would query the libradb api get_events_by_event_key for NewBlockEvent, on-chain BlockMetadata resource is only used to hold the EventHandle and height which is used for genesis initialization.
I don't see any use case of the on-chain BlockMetadata resource so I delete those fields, also delete height from NewBlockEvent because I believe the seq_num of event serves the same purpose.

@bors-libra r=dmitri-perelman

:pushpin: Commit 2ec9637 has been approved by dmitri-perelman

:hourglass: Testing commit 2ec963767b9dc810abca0e91f3e9ef78ad215a19 with merge 901a63d41d5ff4ccd01b813659b9347775b2467d...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: dmitri-perelman
Pushing 901a63d41d5ff4ccd01b813659b9347775b2467d to master...

I think it might be good to add to the BlockMetadata the purpose of it. Right now the only obvious use of it to me is keeping track of time. But if you look at the libra-types versus the move-type they aren't even compatible with each other. We might as well call this libra-time-service and get rid of everything that doesn't have to do with time. Thoughts?
@runtian-zhou @sblackshear

Sorry to be late in replying to this. Time is definitely the main use-case.

delete height from NewBlockEvent because I believe the seq_num of event serves the same purpose.

This is a good idea--we can reimplement height() to read from there

original motivation behind these fields?

proposer is used to sanity-check timestamps. They need to increase unless it's one of the special post-reconfiguration empty block (identified by proposer = 0x0)
Not sure about id, but Runtian may know
Is consensus using previous_block_votes (Move code doesn't need that.

Right now the only obvious use of it to me is keeping track of time.

Time + emitting new block events are definitely the main use-cases.

But if you look at the libra-types versus the move-type they aren't even compatible with each other.

:(. Man, we really need an automated way to check that libra-types and Move code are in sync. I will bring this up at our team meeting.


Reduce offset to 4bits to increase output volume

This seems to be the best compromise setting for now based on peoples feedback though could definitely be improved upon in future.


Exclude test dependencies while running jf audit for a Maven project

If we run "jf audit --mvn" on a Maven project, it reports vulnerabilities from test dependencies. As per the current JFrog CLI documentation, there is a flag called "--exclude-test-deps" which applies to a Gradle project for excluding test dependencies. Hence, looking for the implementation of the same flag "--exclude-test-deps" for Maven projects as well.

see #1692


Hotfix philip fix build full on linux

Should work on mac and unix now, unfortunately I still don't know what the error is, I think cross spawn was just not happy with the whitespace in the code, once I replaced everything with arrays it seemed okay... Could you help me check
yarn build:full
works on your system?

Thanks!


ADB Server Skipping my device

Using this on Windows for a VR game and using ALVR Streamer to handle streaming.
When I start my ADB server, I keep getting my VR device listed in green, followed by a "Skipped forwarding device: <>", This behaviour is new and only began to happen today, reinstalling didn't help.
Are there any logs to see the reason for this?

Hi!
I made new 1.4 release with more checks and more verbose output, which should be more helpful at determining the issues, can you try using it again and see what it says?


Rebuild 3.x for windows.

Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #44.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

@conda-forge-admin please rerender

@conda-forge/gobject-introspection sorry for the bother again. I'm trying to get this feedstock up and running as a dependency for things like qt-main but the g-ir is failing to really capture the full API.
The generated file doesn't contain many of the functions but contains macros. Generated file attached.

MAJOR_VERSION exists
but get_major_version does not

Soup-3.0.gir.txt


Can't build app

I can't build app:

Error running Gradle:
ProcessException: Process "E:\App\i_am_rich\android\gradlew.bat" exited
abnormally:

FAILURE: Build failed with an exception.

Where:
Build file 'E:\App\i_am_rich\android\build.gradle' line: 26

What went wrong:
A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
Could not open cp_proj remapped class cache for
di1ovajg50qte31k2y0dno8wu
(C:\Users\duong.gradle\caches\4.10.2\scripts-remapped\build_2y3ijk4zmcz4e   0j4ogrb15h4q\di1ovajg50qte31k2y0dno8wu\cp_proj70b1361a260e0ceb212a59c45f68   0ebd).
Could not open cp_proj generic class cache for build file
'E:\App\i_am_rich\android\app\build.gradle'
(C:\Users\duong.gradle\caches\4.10.2\scripts\di1ovajg50qte31k2y0dno8wu      \cp_proj\cp_proj70b1361a260e0ceb212a59c45f680ebd).
Unexpected lock protocol found in lock file. Expected 3, found 0.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 3s
Command: E:\App\i_am_rich\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
It's happen when power cut.
Logs
[√] Flutter (Channel stable, v1.9.1+hotfix.5, on Microsoft Windows [Version
10.0.18362.418], locale en-US)
• Flutter version 1.9.1+hotfix.5 at E:\flutter
• Framework revision 1aedbb1835 (3 days ago), 2019-10-17 08:37:27 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[√] Android toolchain - develop for Android devices (Android SDK version
29.0.2)
• Android SDK at E:\Android\SDK
• Android NDK location not configured (optional; useful for native
profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = E:\Android\SDK
• Java binary at: E:\Android\Android Studios\jre\bin\java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[!] Android Studio (version 3.5)
• Android Studio at E:\Android\Android Studios
X Flutter plugin not installed; this adds Flutter specific functionality.    X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b03)
[√] VS Code (version 1.39.2)
• VS Code at C:\Users\duong\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.5.1
[√] Connected device (1 available)
• SM J500H • 34ebf4cb • android-arm • Android 6.0.1 (API 23)

Hi @duongbnno1111
It would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Hello @duongbnno1111 !
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the issue, if you have any more information for us; we will reopen it right away!
Thank you for your contribution.
P.S. If anyone still experience the same problem, please file a new issue with the information required in the template.
All system setups can be slightly different so it’s always better to open new issues and reference related issues.

Same issue here :(


[bug] dll version not injecting to client since 0.2.3

The dll version does not inject to the client since 0.2.3. Only the workshop version works after that which restricts its use to singleplayer unless you can convince a server owner to add it.

Not a bug, however injection can be re-added easily as a backup.

Added in e0baa6f1658b192cd4d0a9d9edf3e6f92dd2b143


Configure remember token cookie name

Gives the user full configurability when dealing with apps with similar paths.

There's a section of the readme that lists each configuration option. Can you add this there?

I had one minor comment, but I think this is good to merge whenever you're ready.
@derekprior any thoughts?

Looks good to me.

@derekprior All taken care of. What's procedure for getting this merged in?

Squash and merge (ff-only).
I can release this as 1.8, though I have to write up the NEWS for a few changes that will be included. I'll probably do that tonight. If there's a pressing need for it to be released now, let me know.

Not hugely important, but sooner rather than later would be great

1.8.0 is released.


waybar: v0.10.4 -> update libcava to v0.10.3

via https://github.com/Alexays/Waybar/issues/3426#issuecomment-2380607389

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.


Add option to open/close PRs based on PR comment

Problem
As discussed in https://github.com/jupyter-server/jupyter_releaser/pull/521 and https://github.com/jupyterlab/jupyterlab/issues/13505, we would like for the bot to be able to close and open the PR based on a comment.  This would allow actions triggered by a workflow to run or re-run the PR workflows, without requiring a personal access token.
Proposed Solution
Add a PR comment listener that will close and reopen the PR based on the comment.    The comment by default would be @jupyterlab-bot, please restart ci, but would be configurable with a setting.  Note that we own https://github.com/jupyterlab-bot, so we wouldn't be pinging anyone else.
Additional context
This is similar to @conda-forge-admin, please restart ci

cc @jtpio @fcollonval

this is a test comment


Support sending OTEL metrics and spans from KrakenD plugins

Hi!
I have a request modifier plugin that uses go-redis, and I'd like to instrument it via https://pkg.go.dev/github.com/redis/go-redis/extra/redisotel/v9.
To be able to send custom metrics and spans from a plugin, I need access to the OTEL meter and tracer providers, but AFAIK krakend-otel never calls https://pkg.go.dev/go.opentelemetry.io/otel#SetMeterProvider and https://pkg.go.dev/go.opentelemetry.io/otel#SetTracerProvider, which means the only way to get them from a plugin is to import github.com/krakend/krakend-otel/state and call state.GlobalState().
This works, but I think it would be better if plugins didn't have to depend on krakend-otel directly 😄
I can prepare a PR to make these calls in https://github.com/krakend/krakend-otel/blob/main/state/global.go, if you want. Thanks!

Good suggestion!
We would also like to use this feature.
We have hijacked the metrics call to achieve this but this approach would be way better.
I've prepared a different pr for adding custom labels to already created metrics but I think it is not appropriate in your case.
But it is in the same area of customizing metrics so it would be good to do the above!


Adding a song API rather than Local Song

Like:- Spotify API or Youtube Music API or any Music API

Sir I want to contribute in this , so could you please assign me this issue


[Bug]: TypeError in Example Notebook: Simulation.init() got an unexpected keyword argument 'discretisation_kwargs'

PyBaMM Version
24.1
Python Version
3.12.4
Describe the bug
I encountered a TypeError when running the example notebook located at PyBaMM/docs/source/examples/notebooks/models/loss_of_active_materials.ipynb.
The error occurs with the following code:
sim = pybamm.Simulation(
    model,
    experiment=experiment,
    parameter_values=param,
    discretisation_kwargs={"remove_independent_variables_from_rhs": True},
)

The error message is as follows:
{
	"name": "TypeError",
	"message": "Simulation.__init__() got an unexpected keyword argument 'discretisation_kwargs'",
	"stack": "---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[10], line 23
     14 param.update({\"Positive electrode LAM constant proportional term [s-1]\": 1e-4 / 3600})
     15 experiment = pybamm.Experiment(
     16     [
     17         \"Discharge at 1C until 3 V\",
   (...)
     21     ]
     22 )
---> 23 sim = pybamm.Simulation(
     24     model,
     25     experiment=experiment,
     26     parameter_values=param,
     27     discretisation_kwargs={\"remove_independent_variables_from_rhs\": True},
     28 )
     29 solution = sim.solve(calc_esoh=False)

TypeError: Simulation.__init__() got an unexpected keyword argument 'discretisation_kwargs'"
}

Steps to Reproduce

Open the example notebook at PyBaMM/docs/source/examples/notebooks/models/loss_of_active_materials.ipynb.
Execute the code in the cell.
Observe the error message when running the following code:

sim = pybamm.Simulation(
    model,
    experiment=experiment,
    parameter_values=param,
    discretisation_kwargs={"remove_independent_variables_from_rhs": True},
)

Relevant log output
No response

Hi, @opqrst-chen – since you're running PyBaMM version 24.1, could you please try out the notebook from the v24.1 branch: https://github.com/pybamm-team/PyBaMM/blob/v24.1/docs/source/examples/notebooks/models/loss_of_active_materials.ipynb? The discretisation_kwargs argument does not exist in v24.1, but exists in the unreleased develop branch, which might explain your error. FYI, PyBaMM's pre-releases for v24.5 are available as well, where the notebook from the develop branch should work. The pre-releases, shall you wish to install them, can be installed with this command: pip install --pre pybamm


Add metric store bot to contributors

Hi All
Requesting that the bot used my the metric store team be added as a cloud foundry contributor

Closing per above


chore Optimize BE UT workflows

Proposed changes
Issue Number: close #xxx
Problem summary
In #14533 , we run BE UT workflows periodically to share the cache with brand new pull requests. However, we don't need to save the cache when the unit tests doesn't run, otherwise it may occupy huge cache space and some useful caches will be evicted by GitHub.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[x] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.41 seconds
load time: 460 seconds
storage size:<PHONE_NUMBER>9 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221124163539_clickbench_pr_52554.html


Red timed traffic light doesn't stop trams coming from tram track

Describe the problem
I've set-up a timed traffic light on an intersection where trams can enter the intersection on a "Tram Track" (Vanilla Snowfall asset).  Even when the light for these trams is red, they will enter the intersection.
Note that the "Tram Track" is a somewhat unusual asset in that it only permits trams to travel on it, but it can have normal (and functional) intersections with most regular road types.
The problem may be that the traffic light presented to this road appears to be a road vehicle light and not a tram vehicle light.
The intersection where I'm seeing this issue is a 4-way intersection with perpendicular roads.  (All 90 degree angles).
The road types at this intersection are (in clockwise order):

Six lane road with 2 dedicated tram lanes (3 lanes of road traffic in each direction and 1 additional lane of tram-only traffic in each direction in the middle) (4u)
Two-lane road (no tram tracks) (2u)
Four lane road with 2 dedicated tram lanes (2 lanes of road traffic in each direction and 1 additional lane of tram-only traffic in each direction in the middle) (4u)
Tram track (2 lanes of tram tracks - one lane in each direction.  No road vehicles permitted by asset type.) (2u)

Trams arriving from road 4 will enter the intersection even when their light is red.
Roads 1 and 3 have two sets of traffic lights each - one set has a tram icon by it and affects only tram traffic and the other one affects only road traffic (car/truck/etc.)
Roads 2 and 4 have only one set of traffic lights each and neither one has a tram icon by it.
Junction restrictions on this intersection have all options disabled for all roads.  (no turn on red, no enter blocked junction, etc.)
Screenshots?
https://steamcommunity.com/sharedfiles/filedetails/?id=2886736021

Hello, I'm not sure if you posted wrong screenshot but.. I don't see anything weird there. The trick is to start Timed Traffic lights program using that Start button below steps. Since it says Start it means that Timed Traffic Simulation is not working (yet) 😉

I posted

it works for me. are you sure segments are not too small? maybe use broken node detector?


connman service has requires instead of wants for resin-net-config

Connman service has requires instead of wants for the resin-net-config service resulting it to stop when resin-net-config stops. resin-net-config is a oneshot service and should not impact connman after it runs once.

I believe this is for the 1.X branch

Yes

Why would the resin-net-config stop?

This doesn't seem to be the case, and indeed it seems like it always has been "wants" going through git history:
$ cat meta-resin-common/recipes-connectivity/connman/resin-connman-conf/connman.conf
[Unit]
Wants=resin-net-config.service
After=resin-net-config.service

[Service]
OOMScoreAdjust=-1000
ExecStart=
ExecStart=/usr/sbin/connmand -n --nodnsproxy

I'm not really sure what the intended resolution is but it is probably "upgrade to 2.x".


Add CSS variable again

I have amended bad line brakes of the previous pull request.
Supports CSS Custom Properties for Cascading Variables Module Level 1.

Great feature. Thanks!


Russian translation for json-editor built-in messages

Rebase https://github.com/wirenboard/homeui/pull/246


[FLINK-10045] [Startup Shell Scripts] .bat script to start/stop Flink daemon

Created scripts to start/stop Flink as daemon
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@pavel-shvetsov-git thanks for your contribution, all the files of this PR missed Apache License title, please add it.

The Flink developers have decided that we don't want to extend windows script support for now: https://lists.apache.org/thread.html/r7693d0c06ac5ced9a34597c662bcf37b34ef8e799c32cc0edee373b2%40<dev.flink.apache.org>. I'm very sorry because you already invested time in this.


Restructure Progress Component to work without title/measure elements.

During the React implementation of the Progress Component this issue was bought to our attention. When the "title" and "measure" elements were removed from the progress component, the spacer between the title and progress bar remained. Its defined by  "--pf-c-progress--GridGap" and is applied to ".pf-c-progress". Right now this means that the progress component cannot exist without the title and measure elements without breaking designs.
Before further action is taken in React, we should attempt to address this in Core.

Look at creating an example in Core that does not have a title and has the measure to the right of the bar @mcarrano what are your thoughts on this?
Move the "GridGap" from the component so that the component can exist without a GridGap when the title and measure are removed. @srambach could you provide some guidance here?

This relates to the issue that @tlabaj opened for React https://github.com/patternfly/patternfly-react/issues/946 in React.

@rachael-phillips created design documentation for Progress Bar so I will defer to her on providing any needed examples.

Rather than removing the GridGap, I would manage it by changing the row/column placements. If there is no description and the status is inside or outside - i.e. nothing above the progress bar - then place the progress bar (and if necessary, the status) in the first row withgrid-row: 1/2;
If this is truly a variant, it should probably be implemented in core with a modifier for no description. This wasn't one of the options presented in wireframes or visuals.

That really helps thanks @srambach


New version: SecretsOPerationS.SOPS version 3.9.0

Pull request has been created with komac v2.3.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Packages\SecretsOPerationS.SOPS__DefaultSource\sops.exe returned exit code: 100
Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\sops.exe returned exit code: 100

(Automated response - build 886.)

https://github.com/microsoft/winget-pkgs/issues/142854


"Store" is now called "Apps"

In section https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-creating#publish-connectors-for-your-organization, text and screen snap shows "Store" but in Teams desktop and web clients, as of today, it is called "Apps" in the left nav icon and page title.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c21a27c1-d01a-6cc7-c991-73af6492aad8
Version Independent ID: b15d2142-df29-250e-9a0a-b734dcb93162
Content: Office 365 Connectors - Teams
Content Source: msteams-platform/concepts/connectors/connectors-creating.md
Product: msteams
GitHub Login: @o365devx
Microsoft Alias: o365devx

This is fixed.


storage: missing samples

In Storage Sample Coverage following samples are missing or have wrong region tag:

[x] storage_bucket_delete_default_kms_key
[x] storage_generate_encryption_key
[x] storage_view_bucket_iam_members
[x] storage_add_bucket_label
[x] storage_compose_file
[x] storage_remove_bucket_label
[x] storage_change_file_storage_class
[x] storage_enable_versioning
[ ] storage_set_metadata
[x] storage_set_bucket_public_iam
[x] storage_define_bucket_website_configuration
[x] storage_download_public_file
[x] storage_get_service_account
[x] storage_cors_configuration
[x] storage_disable_versioning
[x] storage_copy_file_archived_generation
[x] storage_object_csek_to_cmek
[ ] storage_change_default_storage_class
[x] storage_delete_file_archived_generation
[x] storage_remove_cors_configuration

@tritone @crwilcox What is the next step for this issue?

Reassigning to @JesseLovelace who is working on sample completeness. Jesse, is there any remaining work to be completed here or should this be closed out?


[DO NOT MERGE] add Blockdaemon to public RPC providers

We want this to go live Friday morning.
This reverts commit dbe05f3d5adc07cf19860d0f96cc8f589f0d3a17.

Preview is available here:http://soroban-docs-pr572.previews.kube001.services.stellar-ops.com/


Azure Service Bus -  GeneralError: ECONNRESET: read ECONNRESET

Description
 Library version used "@azure/service-bus": "^7.0.3"
Actual Behavior

Service bus on receiver of subscription catches GeneralError: ECONNRESET.

Error - GeneralError: ECONNRESET: read ECONNRESET
Stack Trace -
"stack":["ServiceBusError: GeneralError: ECONNRESET: read ECONNRESET\n    at translateServiceBusError (/usr/src/app/node_modules/@azure/service-bus/dist/index.js:4521:16)\n    at /usr/src/app/node_modules/@azure/service-bus/dist/index.js:7880:23\n    at runMicrotasks ()\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)"],"retryable":false,"code":"GeneralError","errno":"ECONNRESET","syscall":"read"}
Expected Behavior

Service bus on receiver of subscription should not result in general connection reset by itself.

@trafalgarf Are you still experiencing this issue? Have you tried the latest version of the SDK (7.5.1)?

@jeremymeng do you have any thoughts on this one?

ECONNRESET error means that the service closes the tcp connection.  It would be great to know what happens on the client side.
@laudibert would it be possible to share some code snippet showing how you use our service bus SDK?  Also, could you please enable more logging and see if anything unusual/erroneous when the issue start happening? Please refer to the troubleshooting section for more information on getting debug logs:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicebus/service-bus/README.md#troubleshooting
It is probably useful to start with this configuration:
export DEBUG=azure*,rhea*,-rhea:raw,-rhea:message,-azure:core-amqp:datatransformer

@jeremymeng I just looked into our logs again now and noticed a few things :

This error is rare (no occurences since the 4th of July across all our services)
When it happens, it most often happens in multiple services at the same time
It sometimes happens simultaneously on different environments, each connected to different Service Bus instances
All the services are nodejs applications that use the SDK but they don't run the same piece of code

I'll see if I can set the debug logs  but it feels like a network problem on our side rather a problem with the SDK quite frankly. We had timeout issues with our Azure Postgresql database that feels somewhat similar as we think something was closing the connection in between the server and the client without the client being aware.

Hi
I am currently facing this issue. I am using this version<EMAIL_ADDRESS>When I checked the documentation it was mentioned that GeneralError: The exception was the result of a general error within the client library. It was working fine till last week. Suddenly I am getting this error. How to tackle this? Here are the error details
ServiceBusError: ECONNRESET: read ECONNRESET
name: 'MessagingError',
retryable: false,
code: 'GeneralError',
errno: -4077,
syscall: 'read'

@ma185418-ncr ECONNRESET is most likely associated with network issues.  Could you please start with enabling detailed logging with the following environment variable then share interesting part (arround getting errors) of the logs with us?

@ma185418-ncr also please open a new issue for this 👍


Norwegian translation

Norwegian (nb) translation for Sky Map.
It's not fully translated, but a substantial part is.
Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Run the unit tests with gradlew app:connectedGmsDebugAndroidTest to make sure you didn't break anything (with an emulator running or phone connected)

[ ] If you have multiple commits please combine them into one commit by squashing them.

Thanks so much for this! Even partial translations are very welcome.


Update exclusion reasons in Mondo

Excluded terms and exclusion reasons were reviewed as part of https://github.com/monarch-initiative/mondo-ingest/issues/45#event-7074414191.
As a result,

some Mondo:obsolete terms need to get an updated exclusion-reason
some terms that were originally excluded from ICD10 and Orphanet should be added as narrow x-ref to existing terms.

ROBOT template for adding x-ref here: https://docs.google.com/spreadsheets/d/e/2PACX-1vSQefyOXljAW5OJ7usCPsAFlQvuEDVxA3xv1eRlfhHA0WminNH7WLN572VpI7HKC9XMmpyx3a_VFEHF/pub?gid=1344028988&single=true&output=tsv

I am working on documentation about the progress but it is taking some time. I am closing this issue as the work is done.


Add support for git-xargs registered environment variables based on arguments anf flags

Description
Fixes #115.

These changes add support for git-xargs registered environment variables based on arguments and flags intended for use by the commands and scripts called by git-xargs.  These environment variables start with XARGS_ to avoid collision with other use cases and include:

XARGS_DRY_RUN: whether --dry-run flag was provided
XARGS_REPO_NAME: the name of the target repository being processed
XARGS_REPO_OWNER: the owner of the target repository being processed

TODOs
Read the Gruntwork contribution guidelines.

[x] Update the docs.
[x] Run the relevant tests successfully, including pre-commit checks.
[x] Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
[x] Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added support for environment variables registered by git-xargs based on flags and arguments
Migration Guide

This would address my use-case. Very much appreciated

cc: @karlwithak1

@andyfeller Thanks for your PR! Your changes LGTM, so I've kicked off tests

@zackproser : I'm currently working on my personal laptop being out of office, the script appears to match the permissions of the others on WSL:
andyfeller@WIN-29L6KJF8DED:/mnt/c/Users/andre/Documents/Workspace/andyfeller/git-xargs/data/test/_testscripts$ lsb_release -a
No LSB modules are available.
  I know this might be a Windows / Linux / Mac translation issue, so I'd appreciate a hand as I won't be back on my work machine until this weekend at the earliest.

Trying to utilize git update-index to force the issue with windows:
$ git update-index --chmod=+x test-env-vars.sh

Thanks, Andy! LGTM, so approving and merging.

@andyfeller Thanks again - https://github.com/gruntwork-io/git-xargs/releases/tag/v0.1.9 is the latest release that will have your changes. v0.1.8 had a build issue related to the Go version, which I bumped in a subsequent release.

@zackproser : thank you and thank you for OSSing your work for others ✨ I hope to contribute back more, an example of a wrapper script that will demonstrate calling multiple commands and scripts.
In my use case, I have repositories created from a template, which has been updated with new files that the children should get.  Additionally, there have been new issue / PR labels I want to push out, which is was somewhat difficult without this PR due to knowing if --dry-run.

@zackproser : finally finished refactoring my initial prototype wrapping around git-xargs and released it as a GitHub CLI extension: https://github.com/andyfeller/gh-publicize
I'd love to chat a bit regarding your thoughts, can open an issue or discussion.

@andyfeller Wow! This looks super cool - I especially love the fact you made it a gh extension - I've found those to work really well in the past. I love the proposed use cases you have as well - they all make a ton of sense and were part of what originally urged us on to write git-xargs.
Speaking of which - one other idea I always thought would be awesome in conjunction with this stuff is some kind of light engine that could provide the git diff between some desired state and the current state of a given repo - which could output git-xargs or gh-publicize instructions / API calls - to essentially open the PRs which would get your repos all up to date and compliant with what you've set as your template repo - if I'm making sense.
One logistical note - I'm no longer working at Gruntwork, so I'm unlikely to have time to return to this anytime soon, but I'll bet @brikis98 would be keen to know about this as well.
Seriously - very cool work :tada:

Speaking of which - one other idea I always thought would be awesome in conjunction with this stuff is some kind of light engine that could provide the git diff between some desired state and the current state of a given repo - which could output git-xargs or gh-publicize instructions / API calls - to essentially open the PRs which would get your repos all up to date and compliant with what you've set as your template repo - if I'm making sense.

So is this less of a push model and more of a pull?  A process that reverse engineers what it is missing to match the source repository in question, yeah?

One logistical note - I'm no longer working at Gruntwork, so I'm unlikely to have time to return to this anytime soon

Congratulations on the new adventure!  Happy to talk show with others as I appreciate the work here ❤

@andyfeller :joy: Precisely - your gif game is on point!


fix: Add types path to package.json exports

In a ESM project using TypeScript, I am unable to import types correctly.
I have followed the suggestions recommended here, which have resolved the issue: https://stackoverflow.com/questions/72457791/typescript-packages-that-ship-with-mjs-and-d-ts-but-without-d-mts-how-to-i

I can second that this change fixed importing types for me (using VS Code with the Typescript extension).


prepare_log 这个的内容是什么

Same question.

Did you solve this problem?

+1

Did you solve this problem?


AdMob Plugin - Ad Positioning

Currently using firebase_admob: "^0.5.4+1" in pubspec.yaml.
Is it possible to use the admob banner (ideally DFP, but since DFP support is unavailable) to inline a banner in a widget scaffold?
Would ideally like to be able display banners in our content, not as interstitial or sticky ads at the bottom.
E.g.

cc @HansMuller

Support for ads that can be embedded in Flutter's widget tree  requires https://github.com/flutter/flutter/issues/12114. Unfortunately #19030 doesn't help with that.

There is another plugin in the pub now which has this feature... https://github.com/YoussefKababe/admob_flutter . Refer to the screenshots.

@gcshri
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/832. Any further collaboration will be done there.


Do not use url-quote-magic when it is not available

My university terminal threw errors on every keystroke (and did not work) after i installed oh-my-zsh. It turned out that their old version of zsh did not include url-quote-magic, and this caused the errors. This commit fixes the problem by checking if the function definition file is where it is expected to be. I am not sure if this is the best way to do solve this.

Poor university students...  are you able to install a newer version zsh in your own user directory/space?


Make P256 buffers fixed size, since they are

Old PR with CI failures and no feedback still in draft form. Closing as stale.


[Extensibilit Request] - Tab. 1382 function ValidateItemField

Tab. 1382 function ValidateItemField: Is executed when validating (almost) all fields in the item template. An assignment is performed using FieldRef for each field except for PK and description. This construct does not allow to create new fields in the item template without creating them under the same ID in the item at the same time, else an error is thrown.

Please refactor to accomodate ISV/PTE extensions. A good way to do it can be found in Codeunit "Item Templ. Mgt.", function "ApplyItemTemplate". Here, an exclusion list can be populated by subscriber and also a sesible check function is run prior to the actual assignments.

Hi @RafaelKoch ,
Seems like these events should help:

#26060
#22923

Thus, I am closing this issue, but feel free to open new issue with link to this one, if needed.


Disallow Voting For The Current Eth1Data in State

It has been observed in mainnet that during certain voting periods, clients choose to vote on an already included eth1data. This ends up making the voting period redundant, as clients voting for an already included eth1data and its accompanying deposit count and root does not allow newer deposits to be included.
This ends up with deposits taking longer than expected(an additional voting period) to being included.  @ajsutton has also brought up the fact that currently in the spec: https://github.com/ethereum/eth2.0-specs/blob/dev/specs/phase0/validator.md#eth1-data
    default_vote = votes_to_consider[len(votes_to_consider) - 1] if any(votes_to_consider) else state_eth1_data

We default to voting for the state_eth1_data if there are no other viable eth1data votes. We should instead disallow state_eth1_data votes and mark them as invalid when each block proposer is tallying the current votes in the state. This is so as to prefer strictly progressing eth1_data rather than allowing block proposers to vote for an already included eth1_data tuple which is in the state. This will prevent a whole voting period from being wasted and deposits from being delayed to be included, which has been show to happen in certain voting periods in mainnet.
There is limited downside to including a change such as this due to the fact this will only disallow voting for an already included on eth1_blockhash , so this will always lead to progressive eth1_data votes from each period to the next.

Is this the change you have in mind?
diff --git a/specs/phase0/validator.md b/specs/phase0/validator.md
index 14a5ecbb..43b86488 100644
--- a/specs/phase0/validator.md
+++ b/specs/phase0/validator.md
@@ -349,6 +349,7 @@ def get_eth1_vote(state: BeaconState, eth1_chain: Sequence[Eth1Block]) -> Eth1Da             is_candidate_block(block, period_start)
             # Ensure cannot move back to earlier deposit contract states
             and get_eth1_data(block).deposit_count >= state.eth1_data.deposit_count
+            and get_eth1_data(block) != state.eth1_data
         )
     ]

That is part of it, also we would need to remove this condition
    # Default vote on latest eth1 block data in the period range unless eth1 chain is not live
    # Non-substantive casting for linter
    state_eth1_data: Eth1Data = state.eth1_data
    default_vote = votes_to_consider[len(votes_to_consider) - 1] if any(votes_to_consider) else state_eth1_data

Make default_vote , a randomized value in that case. Or some other tuple rather than the current state_eth1_data

Is that a necessary change? Other validators won't consider a vote for state_eth1_data valid anyway.

Personally I like using state_eth1_data as the "I have no vote" option rather than a random one.  As long as other validators don't consider it the most popular option and follow along there shouldn't be any need for random votes.

Is that a necessary change? Other validators won't consider a vote for state_eth1_data valid anyway.

True, although if we are ignoring the vote anyway when tallying it, it does make it odd to have that as our default vote. But I don't feel too strongly on it, also as @ajsutton mentioned:

Personally I like using state_eth1_data as the "I have no vote" option rather than a random one. As long as other validators don't consider it the most popular option and follow along there shouldn't be any need for random votes.

That makes sense too, we could have state_eth1_data simply designate the throw away vote from the point of a proposer.

That makes sense too, we could have state_eth1_data simply designate the throw away vote from the point of a proposer

One nice advantage of this is that you are then very clearly able to tell the difference between "I have no vote" and "I'm voting for a chain that you just don't have access to" which a random block root might be.  Admittedly it's exceptionally unlikely to be anything but a random block root but it's very easy to pick voting for the current eth1 data when querying the beacon chain without needing to also query an eth1 chain.

So to circle back on this - there is an interesting case I'd missed previously.  The state eth1_data is updated as soon as the 50% threshold is reached, so the logic for excluding the current eth1_data from the votes to consider is actually a bit more complex - you ignore it until until it has reached 50%.  At that point either we've already voted in a new eth1 block or there's no chance it will happen this voting period (we've had 50% default votes).
This makes me very much on the fence about which approach is better.  Random is probably simpler now, but having tested our caching I do find it unfortunate that you can't tell the difference between "my cache is missing a block" and "that validator doesn't have an eth1 endpoint configured".

Could zeroed Eth1Data() be used to indicate the absence of connection to eth1 endpoint?

Could zeroed Eth1Data() be used to indicate the absence of connection to eth1 endpoint?

Yeah an all zero hash is probably the best possible answer.  Easy to tell it's the default vote and simple to exclude it from the votes to consider/follow.


Add limits on what code will be highlighted

The numbers are pretty arbitrary, I didn't actually time it but opening a 3MB .rs file felt like it was just about on the threshold of too long, and my machine is faster than production.
I did consider having the numbers configurable, but threading the config through was looking quite complex and I don't think it's that useful.
This also exposed another bug, if highlighting failed we weren't escaping any html in the source files, so fixed that now that failure will be much more common.

Yep, it was manual testing that showed me the escaping was broken.


update ci envvar

@assignUser FYI I didn't quite read the code properly with last PR. The envvar has to be "true". This updates that, adds an additional envvar to detect pkgcheck env only, and updates README.

Ah I see, I also thought it just checked for existence ^^

Yeah nah, I thought so too, but now don't really know what i was talking about ... :laughing:


Wrong start date for files?

THD HCFC-133a record only starts in 2015 or so, but the files produced currently go back to 2004 and have 10 years' worth of NaNs. Is it possible that a ds.dropna isn't being called somewhere? Not sure if this affects other files produced.
Pretty sure there's no record of HCFC-133a being a problem at THD at any stage (nothing in any of the spreadsheets or anything) and no errors are thrown up when using run.py

This was the expected behaviour, but we've decided to drop NaNs after discussion internally. The initial idea was that NaNs were retained so that different files aligned. However, this behaviour wouldn't be preserved in the combined files anyway, so removing to make files smaller.


Set 'metrics' object on the Tracer itself.

The Tracer object can make use of the Metrics class to record stats such as finished spans, sampling counts, and more.
This PR sets the metrics object on the tracer builder, so that Tracer level metrics are published to the configured metrics instance instead of a Noop default instance.

Thank you for the PR @kppullin!
I would suggest one some change: We should rename the reporterMetrics method to metrics since we are now using it for multiple purposes.

@geoand - Thanks for the suggestion!  I've renamed reporterMetrics to metrics as requested (I noticed it's also used for the Sampler instance).

Thanks again @kppullin!
I will most likely do a new release in the next few days


How do I allow a certain command?

Typing the following:
git clone git@github.com:aleixrodriala/wa-tunnel.git
gives a red font colour for the git@github.com:aleixrodriala/wa-tunnel.git part. How can I change this?

Typing the following:
git clone ***@***.***:aleixrodriala/wa-tunnel.git
gives a red font colour for the @.***:aleixrodriala/wa-tunnel.git` part. How can I change this?

Sounds like another plugin's work, unless you have some (possibly global) aliases in play.
Does it reproduce under zsh -f + source /path/to/zsh-syntax-highlighting.zsh?
Do any of the three space-separated words appear in the LHS of anything in the output of alias -L?

sorry for the late reply. The red font colour disappears when I run
zsh -f
followed by:
source /path/to/zsh-syntax-highlighting.zsh
This seems to suggest that it probably is another plugin causing this.

Do any of the three space-separated words appear in the LHS of anything in the output of alias -L?

Which 3 space-separated words are you referring to? Running:
alias -L | grep clone
shows me:
alias gcl='git clone --recurse-submodules'

It has now disappeared. I think zsh -f did the trick


i18n: pt_br

Even more translations. (maybe all of then?)
Fix some typos, improve some translations.

Thanks!


generate plugin clients via template

Manually ran go generate to create the volumes/drivers/proxy.go.
Seems like this ought to go somewhere where it gets run as needed prior to build/test... not sure of the right place for that.

@cpuguy83 Looks cool.

Woot, tests pass!

LGTM

This is very cool, but I don't know if we're going to use it more than once or twice. I don't even know if other plugins are going to follow the same code structure than volumes. I don't want to generate code either for something that's actually very static.
I'm going to leave it for others to decide.
/cc @tiborvass, @icecrime

@calavera Definitely understand, fair amount of complexity in the parsing... and a great learning experience none-the-less!
I do not think this is tied to how volume is setup since all systems wanting to take advantage of plugins will need this sort of thing.
This just reads the interface type and builds out the necessary bits to be able to talk to the external plugin.
I planned to use this to replace the implementation I have for external graphdrivers here: #13777 (and already tested against it).
But again, no worries!

oh #13777 looks very interesting, I hadn't seen it either! I'd still like know hear from other people, but this is totally worth considering.

This is pretty cool indeed.  In building out #13924 it became pretty clear that the volume drivers section can be left in a abstract way to only include a handful of types of remote API endpoints.  At a minimum, the local driver which exists now and a remote one that calls out attach/detach instead of mount.
If there were a massive amount of plugins expected to be maintained that must be updated, then it might make sense to update them in this way.  But this leads towards possibly needing another level of abstraction of the proxy that can be shared.
In #13924 I did include the proxy in each driver since they do differ slightly on the calls to the remote endpoint.  Other drivers may technically leverage internal go packages and not even need the proxy.

LGTM


Remove direct RxJS dependency and have it passed to the plugin

That way you can use RxJS whichever way you want, it removes the hard dependency on RxJS and gets the (unminified) Browserified size down from 550k to 25k. The only thing you have to do now is pass it to the rx method when configuring:
import RxJS from 'rxjs';

app.configure(rx(RxJS, options));

@harangue Let me know if you see an issue with this.

None whatsoever. You want to support any other libraries like Bacon in the short term? We also may want to rebrand since rx is associated with the rx-language set of libraries. Feathers-reactive, perhaps?

Cool. I'm not sure if the FRP library we use matters too much and if it would be worth the effort. RxJS seems pretty solid (although the new version was a little confusing at first).
I was thinking about rebranding, too. The more I think about it the more I like feathers-reactive. I was thinking of having something less FRP related like feathers-feeds or feathers-observe since people were asking about subscription and changefeeds but reactive is still the most fitting term.

@harangue I renamed to feathers-reactive and published the new version that takes RxJS as a separate argument. Do you have an npm account I can add as a collaborator?


project4/step_3: "bill" not defined

Line 28: for bill in objects:...
The error message "bill not define" results after I put in the command.
We do have the bills.json and bills.csv files, but no "bill" variable. Thoughts?

Jenny, sorry for the delay in responding to this. Are you saving this code in a script that you run from the command line, or are you typing them one line at a time in the interactive interpreter?
Either way, can you share your code in the lines before this? My guess is something got mistyped along the way. When I run this with python step_3_complete.py, everything works as expected.
But to your question on the "bill" variable: That's kind of an oddity of python that confused me initially. You don't need to declare that variable before you start your for loop. Using the for syntax indicates that you're about to loop through an iterator, and bill is a variable you create on the fly that refers to each item in the iterator (in this case, the objects list) each time you cycle through it. You could name it anything you want. You could call it sam or o or cheesesteak. The name doesn't really matter, provided you use that same name when referring to the individual objects in the lines that follow the for loop's start.
I hope that makes sense. Maybe @katiepark  or @kevinschaul can explain it better. Either way, if you're still having trouble, share all your code in this thread, and we can help you debug it.

Thanks Tom. Your explanation helped.
Yup, you're right - just a typo on my part. Now everything works.


Chapter 02 - Missing reference for handle submit

Within the book (page 79) you'll find a reference for a function called "handleSubmit" but it's never explained what it has to have inside.
<form id="customer" onSubmit={handleSubmit}>
 ...
 <input type="submit" value="Add" />
</form>

Was using old edition


Unexpected, non-sequential behavior in bytes concatenation

With neo3-boa 0.8.0, and neo-mamba at commit 873932c8cb25497b90a39b3e327572746764e699 (a latest merging commit), and the following smart contract ruler_protocol.py,
from typing import Any, List, Union

from boa3.builtin import NeoMetadata, metadata, public
from boa3.builtin.contract import Nep17TransferEvent, abort
from boa3.builtin.interop.blockchain import get_contract
from boa3.builtin.interop.contract import NEO, GAS, call_contract
from boa3.builtin.interop.runtime import calling_script_hash, check_witness, get_time
from boa3.builtin.interop.storage import delete, get, put, find
from boa3.builtin.type import UInt160

COLLATERAL_TOKEN = b"NEO"
PARITY_TOKEN = b"GAS"

# TODO: dynamically determine the collateral rate (using oracle?)
COLLATERAL_RATE = 3
COLLATERAL_RATE_STR = b'03'
# TODO: dynamically determine the period of loan
LOAN_PERIOD_DAYS = 30  # the loan expires after this number of days
LOAN_PERIOD_MILLISECONDS = LOAN_PERIOD_DAYS * 86400000  # num of days * milliseconds per day
# (Does the optimizer recognize the calculation above as a const? Does this increase GAS cost?)
MINT_RATIO = 7  # approximately 1 NEO is worth 7 GAS
MINT_RATIO_STR = b'07'
# on_transfer = Nep17TransferEvent  # This contract cannot comply with NEP17 because the names of tokens vary

'''
RC_TOKEN_NAME_PATTERN = f'_RC_{COLLATERAL_RATE}_{MINT_RATIO}_{PARITY_TOKEN}_{EXPIRY_TIMESTAMP}
RR_TOKEN_NAME_PATTERN = f'_RR_{COLLATERAL_RATE}_{MINT_RATIO}_{PARITY_TOKEN}_{EXPIRY_TIMESTAMP}
'''

@public
def main() -> str:
    # put('hello', 'world')  # not allowed in main
    # return "This is a test contract which allows you to borrow GAS by collateralizing NEO. \n" \
    #        "This contract does not give you GAS directly. \n" \
    #        "Instead, you should sell the rcTokens offered by the contract for GAS. \n" \
    #        "Remember to pay back the GAS before the expiry time to retrieve your collateralized NEO."
    return "hello"

@metadata
def manifest_metadata() -> NeoMetadata:
    meta = NeoMetadata()
    meta.author = "github.com/Hecate2"
    meta.description = "Ruler Protocol prototype"
    meta.email =<EMAIL_ADDRESS>    return meta

@public
def get_loan_period_days() -> int:
    """
    Get the loan period of this contract. The borrower is expected to
    pay the parity token back to the contract in this period of time.
    :return: loan period in days
    """
    return LOAN_PERIOD_DAYS

@public
def onNEP17Payment(from_address: UInt160, amount: int, data: Any) -> bytes:
    """
    The invoker of this method requests a loan from the contract.
    Invoker obtains rcToken.
    :param collateral:
    :param parity:
    :return:
    """
    if from_address is not None:
        assert len(from_address) == 20
    if calling_script_hash == NEO:  # the caller wants to borrow GAS by collateralizing NEO
        return mint_rc_token(from_address, amount*MINT_RATIO)
    elif calling_script_hash == GAS:  # the caller wants to pay back the borrowed GAS
        return b''
    return mint_rc_token(from_address, amount * MINT_RATIO)  # test only
    # abort()

def generate_token_suffix() -> bytes:
    current_time = get_time  # int, milliseconds  # timestamp of the latest block
    expiry_time_bytes = (current_time + LOAN_PERIOD_MILLISECONDS).to_bytes()
    return COLLATERAL_RATE_STR+b'  '+MINT_RATIO_STR+b'  '+PARITY_TOKEN+b'  '+expiry_time_bytes

def mint_rc_token(account: UInt160, mint_amount: int) -> bytes:
    """
    Mints new rc tokens.
    :param account: the address of the account that will receive the rc token
    :type account: UInt160
    :param mint_amount: the amount of rc token to be minted
    :type amount: int
    :raise AssertionError: raised if amount is less than or equal to 0
    """
    assert mint_amount > 0
    token_suffix = generate_token_suffix()
    rc_token_name = b'_RC_' + token_suffix
    rr_token_name = b'_RR_' + token_suffix
    rc_amount = get(rc_token_name + account)
    if rc_amount == b'':
        put(rc_token_name + account, mint_amount)
    else:
        put(rc_token_name + account, mint_amount + rc_amount.to_int())
    rr_amount = get(rr_token_name + account)
    if rr_amount == b'':
        put(rr_token_name + account, mint_amount)
    else:
        put(rr_token_name + account, mint_amount + rr_amount.to_int())
    return rc_token_name

@public
def balanceOf_rc_token(account: UInt160, rc_token_name: bytes) -> int:
    return get(rc_token_name + account).to_int()
@public
def balanceOf_rr_token(account: UInt160, rr_token_name: bytes) -> int:
    return get(rr_token_name + account).to_int()

In def generate_token_suffix, we concatenate bytes. Compiling and testing it with the following code (The library tests in the following code means neo-mamba/tests, in case there may be an import error. If the latest code of neo-mamba does not work with this test, commenting out the following two lines may help):
# comment out the following two lines in neo-mamba/neo3/manifest
        if len(json['features']) != 0:
            raise ValueError("Manifest features is reserved and cannot have any content at this time")

import json
from typing import Tuple, List

from neo3 import vm, contracts, storage
from neo3.network import payloads
from neo3.core import to_script_hash, types, cryptography
from neo3.contracts import ApplicationEngine
from tests.contracts.interop.utils import test_engine, test_tx
from copy import deepcopy
from boa3.builtin.interop.contract import NEO, GAS

def read_raw_nef_and_raw_manifest(nef_path: str, manifest_path: str) -> Tuple[bytes, dict]:
    with open(nef_path, 'rb') as f:
        raw_nef = f.read()
    with open(manifest_path, 'r') as f:
        raw_manifest = json.loads(f.read())
    return raw_nef, raw_manifest

def build_nef_and_manifest_from_raw(raw_nef: bytes, raw_manifest: dict) -> Tuple[
    contracts.NEF, contracts.manifest.ContractManifest]:
    nef = contracts.NEF.deserialize_from_bytes(raw_nef)
    manifest = contracts.manifest.ContractManifest.from_json(raw_manifest)
    return nef, manifest

def invoke_main(nef: contracts.NEF) -> ApplicationEngine:
    engine = test_engine(has_container=True, has_snapshot=True)
    engine.load_script(vm.Script(nef.script))
    engine.execute()
    if engine.state == engine.state.FAULT:
        print(f'engine fault from method "main":')
        print(engine.exception_message)
    return engine

def invoke_method(raw_nef: bytes, method: str, params: List[vm.StackItem] = [], signer: str = '',
                  scope: payloads.WitnessScope = payloads.WitnessScope.CALLED_BY_ENTRY,
                  engine:ApplicationEngine=None) -> ApplicationEngine:
    '''
    TODO: multiple signers
    Args:
        signer: ScriptHash of wallet address, "6d629e44cceaf8722c99a41d5fb98cf3472c286a"
    '''
    if not engine:
        engine = test_engine(has_container=True, has_snapshot=True, default_script=False)
    contract = contracts.ContractState(0, nef, manifest, 0, types.UInt160.deserialize_from_bytes(raw_nef))
    try:
        engine.snapshot.contracts.put(contract)
    except ValueError:  # the contract has already been deployed to the blockchain
        pass
    engine.load_script(vm.Script(contract.script))
    if signer:
        engine.script_container.signers = [payloads.Signer(
            types.UInt160.from_string(signer),
            scope
        )]
    array = vm.ArrayStackItem(engine.reference_counter)
    if params:
        array.append(params)  # parameters for method
    engine.push(array)
    engine.push(vm.IntegerStackItem(15))  # CallFlag
    engine.push(vm.ByteStringStackItem(method))
    engine.push(vm.ByteStringStackItem(contract.hash.to_array()))
    engine.invoke_syscall_by_name("System.Contract.Call")
    engine.execute()
    if engine.state == engine.state.FAULT:
        print(f'engine fault from method "{method}":')
        print(engine.exception_message)
    return engine

def print_results(engine:ApplicationEngine):
    print(engine.state, [item.__str__() for item in engine.result_stack._items])

raw_nef, raw_manifest = read_raw_nef_and_raw_manifest('ruler_protocol.nef', 'ruler_protocol.manifest.json')
nef, manifest = build_nef_and_manifest_from_raw(raw_nef, raw_manifest)
contract_owner_hash = "6d629e44cceaf8722c99a41d5fb98cf3472c286a"
contract = contracts.ContractState(0, nef, manifest, 0, types.UInt160.deserialize_from_bytes(raw_nef))
contract_hash = contract.hash

print_results(invoke_main(nef))
deployed_engine = invoke_method(raw_nef, "get_loan_period_days", signer=contract_owner_hash)
print_results(deployed_engine)
# deployed_engine.call_from_native(NEO, contract_hash, "onNEP17Payment", [contract_owner_hash, vm.IntegerStackItem(100), vm.IntegerStackItem(100)])
deployed_engine = invoke_method(raw_nef, 'onNEP17Payment',
                            params=[vm.ByteStringStackItem(types.UInt160.from_string(contract_owner_hash).to_array()),
                                    vm.IntegerStackItem(100), vm.ByteStringStackItem(b'')], signer=NEO, engine=ApplicationEngine(contracts.TriggerType.APPLICATION, payloads.Transaction._serializable_init(),
                             deployed_engine.snapshot, 0, test_mode=True))
print_results(deployed_engine)
rc_token_name = deployed_engine.result_stack._items[0]
deployed_engine = invoke_method(raw_nef, "balanceOf_rc_token",
    params=[vm.ByteStringStackItem(types.UInt160.from_string(contract_owner_hash).to_array()),
                                           rc_token_name.convert_to(vm.StackItemType.BYTESTRING)], engine=ApplicationEngine(contracts.TriggerType.APPLICATION, payloads.Transaction._serializable_init(),
                             deployed_engine.snapshot, 0, test_mode=True))
print_results(deployed_engine)

The testing code prints:
VMState.HALT ['68656c6c6f']
VMState.HALT ['30', '68656c6c6f']
VMState.HALT ['5f52435f88b29889560147415330333037202020202020', '68656c6c6f']
VMState.HALT ['700', '68656c6c6f']

Let's pay special attention to the hex string in the 3rd line of the result, related to the following function excepted from the contract:
def generate_token_suffix() -> bytes:
    current_time = get_time  # int, milliseconds  # timestamp of the latest block
    expiry_time_bytes = (current_time + LOAN_PERIOD_MILLISECONDS).to_bytes()
    return COLLATERAL_RATE_STR+b'  '+MINT_RATIO_STR+b'  '+PARITY_TOKEN+b'  '+expiry_time_bytes

The utf-8 string representation of the hex 5f52435f88b29889560147415330333037202020202020 is _RC_\x88\xb2\x98\x89V\x01GAS0307      . This can be obtained through bytes.fromhex('5f52435f88b29889560147415330333037202020202020')
Now, change the code in def generate_token_suffix:
def generate_token_suffix() -> bytes:
    current_time = get_time  # int, milliseconds  # timestamp of the latest block
    expiry_time = current_time + LOAN_PERIOD_MILLISECONDS
    return COLLATERAL_RATE_STR+MINT_RATIO_STR+PARITY_TOKEN+expiry_time.to_bytes()

The hex result of the test is 5f52435f3033303747415388b298895601, which means _RC_0307GAS\x88\xb2\x98\x89V\x01.
Another experiment
def generate_token_suffix() -> bytes:
    current_time = get_time  # int, milliseconds  # timestamp of the latest block
    expiry_time_bytes = (current_time + LOAN_PERIOD_MILLISECONDS).to_bytes()
    return COLLATERAL_RATE_STR+b'__'+MINT_RATIO_STR+b'__'+PARITY_TOKEN+b'__'+expiry_time_bytes

gives 5f52435f88b298895601474153303330375f5f5f5f5f5f and _RC_\x88\xb2\x98\x89V\x01GAS0307______
I do not really know whether this is more related to neo-vm or neo3-boa. Perhaps this is not even a bug, but just something that is worth a note.

The sequence concatenated with + would be in order if every single term is bytearray.

In def generate_token_suffix, we concatenate bytes. Compiling and testing it with the following code (The library tests in the following code means neo-mamba/tests, in case there may be an import error. If the latest code of neo-mamba does not work with this test, commenting out the following two lines may help):
# comment out the following two lines in neo-mamba/neo3/manifest
        if len(json['features']) != 0:
            raise ValueError("Manifest features is reserved and cannot have any content at this time")

@Hecate2 about this, the issue is related to neo3-boa. The field features wasn't included in the manifest in v0.8, but it's fixed in v0.8.1
About the concatenation, I'm currently working on a fix.
@Hecate2 @hal0x2328 it would be nice if you can test if #457 works for you

This fixed the issue for my example


How to config Azkaban url?

The UI has no Job History and Flow History link

How to collect Azkaban data?
Thanks!!

How can you make the four links appear?

Hi @jimmy-src ,
The above UI is the old one and in the new UI, there is information about the job and flow history.


Create swap_alternate_using_array.cpp

Swap alternate in an array using c++.

Great work @Bishal36 please give this repo a star if it really helped you to complete your PR.
Also follow me for follow back if you want to get connected with me for any such open source contribution program. Thank you 😊


[Moderation] How a User gets locked

As a moderator
I'd like to lock users which hardly violated the terms of service in a way, that their profile does not display personal data anymore and is not searchable anymore, that their avatar is replaced (grayed out) in posts and comments
so that violating avatar pictures, user names, user descriptions and other possible violating user information is filtered out from the public.

``

@datenbrei please create a user story with the smallest possible requirement. I can see 4 requirements in this user story alone.

@datenbrei I updated the user story can you double-check?

Disabling posts and comments are separate parts. Disabling a user does not necessarily mean, that comments and posts are disabled. This should be possible, but as separate features.


Make dependencies clear on ReadMe page

I think it would be useful to new users if you listed the dependencies that mdDataTable required on the ReadMe page.
It took me a while to get this working because initially I just got the generic message
Failed to instantiate module adminApp due to:
[$injector:modulerr]

In particular I needed to add
angular-sanitize
angular-material-icons
lodash
underscore?

Yes, I kept getting all sorts of messages like this as well. Finally I just switched to https://github.com/daniel-nagy/md-data-table, which has fewer dependencies.
If you would be clear about your dependencies, maybe I could get it working.
Another question: do you use the material icon images, or do you use the material icon font?

Also having trouble with dependencies and basic configuration. I have lodash and angular-material-icons, and that eliminated the module loading errors. Now I am getting errors like:
angular.js:14328 TypeError: _.countBy is not a function
at TableDataStorageService.TableDataStorageFactory.TableDataStorageService.getNumberOfSelectedRows (md-data-table.js:764)
at Scope.wrapper [as getNumberOfSelectedRows] (lodash.js:1157)
....
Underscore is not listed as a dependency, but I added it anyway and checked that _.countBy could be referenced. I'm not sure at this point whether the issue is with my table setup, which is a pretty straightforward ng-repeating directive.


GH-38670: [Release] Add missing r/pkgdown/assets/versions.html to update versions

Rationale for this change
File is missing when bumping versions.
What changes are included in this PR?
Remove the files as it seems is not used.
Are these changes tested?
Not necessary
Are there any user-facing changes?
No

Closes: #38670

@assignUser @paleolimbot as discussed I've removed the file as it seems not used.

I reverted the last change because I thought the R failures could be related but they don't seem to be as they are failing without removing the file.

@assignUser @paleolimbot as discussed I've removed the file as it seems not used.

The file is not needed in the repo; it's just needed for the website, as long as it has the correct versions here: https://arrow.apache.org/docs/r/versions.html

I think the comments above mean that this PR is no longer needed so I'm closing this, but if I'm wrong let me know and we can reopen and merge this


Update s3, sdk-core, sqs to 2.17.53

Updates

software.amazon.awssdk:s3
software.amazon.awssdk:sdk-core
software.amazon.awssdk:sqs

from 2.17.38 to 2.17.53.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, semver-patch

Superseded by #320.


installation issue

Hi,
First of all, thank you for this wonderful tool.
I downloaded setup.py and installed latentvelo, but I could not import the module.

I checked the module is installed completely.

could you suggest a way to import the module?
Thank you in advance!

@Spencerfar, thanks for giving solution to install latentvelo (https://github.com/Spencerfar/LatentVelo/issues/1#issuecomment-1479769582)
After installation according to your suggestion, my kernel was died like below image.

could you let me know how to solve this error and "ModuleNotFoundError"?
Thanks!
Best,
KJ

Is there any error while installing?

@Spencerfar
No, there was no any error when I install latentvelo using python setup.py install
Best,
KJ


Amount get rounded

Hello dev
for example if order amount is 4.95 GBP when your code send the amount to payment gateway its get rounded to 4 GBP
founded bug in this place
public function capture_order($order_id) {
$order     = new WC_Order($order_id);
//$amount    = (int) round($order->get_total(), 2) * 100;
$amount    = (int) (round($order->get_total(), 2) * 100);
i just wrap the calculation code and then convert to (int) which solve the issue
Thanks

Thanks for spotting this, we'll get it updated asap!


Add documentation for Win32 desktop toasts

Adding documentation for the new Win32 desktop toasts helper. Pull request for the helper code itself coming soon...

OPS Build status updates of commit 7fc84cb:
:clock10: Preparing: average preparing time is 1 min(s) 20 sec(s)

OPS Build status updates of commit 7fc84cb:
:clock10: Incremental building: average incremental building time is 1 min(s) 13 sec(s)

OPS Build status updates of commit 7fc84cb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/notifications/NotificationsOverview.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@andrewleader these doc changes will go live on our site with the 6.0 release in October.


ability to change GIT executable path

Q
A

Issue Type
Feature Request

Deployer Version
N/A

Local Machine OS
N/A

Remote Machine OS
N/A

It would be nice if we could change GIT executable path OR modify $PATH variable (latter would be even better)

Please follow and discuss in #586

This will implement in v4.x.


Adding external links?

I went through the documentation, I googled for it, and I cannot for the life of me figure out how to add menu items that link to an external page. I see that in what is available that it says you can use the admin plugin to add pages, but I'm trying to avoid adding any plugins to this.
Thanks in advance!

No worries!  Go to the admin page, then to "themes", then click on the "Hypertext" theme, then "Headers, Footers, & Links" tab on the right, then at the bottom click "Add Item".  That should do it.  :)

@artofthesmart Is it impossible to do this WITHOUT the admin plugin? I would rather just do this manually.

Good question. That means you need to add it directly to your config yaml.
Take a look at Hypertext.yaml where you'll see all possible options.  Lines 266 onward describe the parameters for setting up custom links.
The target file for you is going to be <GravCMS>/user/config/themes/hypertext.yaml.
You'll have a stanza near the bottom that contains parameters as defined like that blueprints.yaml file.  Here's the bottom portion of my config for your reference:
menu:
  menuItems:
    -
      text: Twitter
      href: 'https://twitter.com/artofthesmart'
      isOffsite: false
      isNewWindow: false
      rel: ''
      name: ''
      title: ''
    -
      text: Github
      href: 'https://github.com/artofthesmart'
      isOffsite: false
      isNewWindow: false
      rel: ''
      name: ''
      title: ''
partials:
  footer:
    custom_footer_type: markdown
    custom_footer: 'All content is my own opinion, provided as-is, and has no warranty expressed or implied. None of it is financial, legal, or other professional advice. This site might use cookies to make your day better.'

Great! Thank you so much!


Update BSK with autofill 0.0.6_test

Reviewer:
Asana: https://app.asana.com/0/1203252749195836/1203252749195836
Autofill Release: https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/0.0.6_test
BSK PR: https://github.com/duckduckgo/BrowserServicesKit/pull/159
Description
Updates Autofill to version 0.0.6_test.
Autofill 0.0.6_test release notes
And another one, still with emoji 🚀.

Feature one
Feature bold

Steps to test
This release has been tested during autofill development. For smoke test steps see this task.

Test PR. Closing.