DO NOT MERGE. This is for using pallet-staking's logic to do staking. (part 3)

continuation from https://github.com/mintlayer/core/pull/61:

@muursh  about the split of utxos originally owned only by Alice:
Wait is this the new genesis block with alice split to several utxos held by different sks?

I don't have the different sks yet; confused to being Bob, Charlie, Dave, etc? or completely different? So i settled with only Alice for now.

@muursh  about the number of validators in a set:
Why 5?

i've put a TODO comment for it.

@sinitcin on epoch:
Just a question. How long does take an epoch?

you mean a period? in the pallet-timestamp?

I removed the pallet-calls stake_using_account_id and stake_extra since they don't work yet, and this PR's changes is getting longer and harder to follow/review.

pallet-utxo

lib.rs

added more config:

constants:

RewardReductionFraction - the percentage drop of a reward value. (e.g. 10%, 15%, etc.)
RewardReductionPeriod - the next block number to execute a drop of reward value.
MinimumStake - minimum value to start staking/validating
StakeWithdrawalFee - the cost of withdrawing an unlocked staked utxo.

StakingHelper - a trait for performing staking OUTSIDE of pallet-utxo

added Destinations:

Stake - first time of the node to do staking. Requires the dummy stash_account, the controller_account, stash pub key and controller pub key and the rotate_keys session key (for pallet-session). This is to satisfy the pallet-staking.

StakeExtra - if the validator wants to stake extra utxos (also bond_extra of pallet-staking). Can be done ONLY for existing validators.
- WithdrawStake - stop validating and withdraw the staked utxos (also called as "locked utxos"). This can be done ONLY if the unlock_stake is executed.

added more storage:

StartingPeriod - stores the 1st block number of every new period
MLTCoinsAvailable - the extra mlt coins used to reward block authors, etc.
BlockAuthorRewardAmount - the reward value
BlockAuthor - the current block author
LockedUtxos - the "staked" utxos of the validators. Cannot be withdrawn.
StakingCount - tracks the number of utxos a controller has locked, and the total amount locked.

more events:

BlockAuthorRewarded - shows how much a validator is rewarded for producing a block
StakeUnlocked - shows a validator quiting the role.
StakeWithdrawn - shows a node withdrawing its staked/locked utxos; in other words, moving the utxo back to UtxoStore.

added Errors:

NoStakingRecordFound,
StakingAlreadyExists - a stash account CANNOT become a controller. And vice-versa
InvalidOperation
OutpointDoesNotExist
FailedSignedTransaction

added more fields in GenesisConfig:

locked_utxos - the initial utxos locked (the initial authorities/validators)
extra_mlt_coins - the coins used for rewarding, etc.
initial_reward_amount - the initial block author reward amount
changed the key of the Utxostore for the genesis utxos; added the index and a string genesis on hashing.

authorship.rs - to help look for the block author

rewards.rs - handles rewarding block authors

mock.rs - aura and the timestamp are not needed actually.

staking.rs - handles the staking. Also contains the trait definition of StakeHelper. For implementation, go to runtime/src/staking.rs.

fn get_account_id() - get account id conversion of public key.
fn stake()- handles the staking outside of pallet-utxo.
fn pause() - stops the validator from validating. It's not effective immediately; there's a waiting period time. (based on the pallet-staking)
fn withdraw() - withdraw funds back to free balance.

staking_test.rs - test cases for testing.

runtime

lib.rs

added the ff. pallets:

pallet-staking - the pallet used for its logic on staking. This follows the NPoS Consensus, BUT the configuration is only making use of its "validator" role.
pallet-session - this is a required pallet of pallet-staking
-pallet-authorship - to identify the block author

staking.rs - implementation of StakeHelper.

fn get_account_id() - converts h256 to sr25519 Public and into the AccountId.
fn stake()- consists of pallet-staking's bond(), pallet-session's set_key() and pallet-staking's validate()
fn pause() - performs pallet-staking's chill() and unbond(). This does not mean that the funds can be withdrawn immediately; it should wait for the era to end. See the SessionsPerEra configuration of pallet_staking::Config, and the Period defined in ShouldEndSession of pallet_session::Config.
fn withdraw() - calls the withdraw_unbonded() of pallet-staking

node

chainspec.rs

create AuthorityKeys to represent the "validators", which will be used both by the pallet-session and the intial utxos of pallet-utxo.

TODO:

add the Keystore extension, to enable pallet calls of staking and staking extra.  and test it!!!
complete the pallet calls staking and staking extra
add the stake extra feature in utxo-tester
benchmark the fn unlock_stake() call for  actual weight computation.

I am going to close this PR and open a new one, once I pulled from staging


Handle repeated requests and allow stopping tracer

not sure I follow what this does

@janl it's for @davisp's tracing branch, not ready for merge yet.

Or mebbe merge ever. I mostly just posted the code as a reference for devs wanting to play around with tracing a bit.


Postgresql create deploy script example generates an invalid 'package.json' file

The Postgresql create deploy script generates an invalid 'package.json' file
echo '{"dependencies": { "@sap/cds": "*", "@cap-js/postgres": "*"},  "scripts": {    "start": "cds-deploy",}}' > gen/pg/package.json

contains an invalid ',' after "cds-deploy"
npm ERR! JSON.parse Unexpected token "}" (0x7D) in JSON at position 101 while parsing near "...tart\": \"cds-deploy\",}}\n"
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

https://cap.cloud.sap/docs/guides/databases-postgres#create-the-shell-script

Hi,
thanks for opening this issue. It has already been fixed, just not yet shipped: https://github.com/cap-js/docs/pull/448
All the best,
René


[shuffle] shuffle transactions --raw

Motivation
We want shuffle transactions to print all transactions in the pretty format for easy readability. If the user wants the transaction to be printed out in one line however, we also want to give them the flexibility to do so by using the --raw flag.
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
When I run cargo run -p shuffle -- transactions -n <IP_ADDRESS>:8081, I get this output:

When I run cargo run -p shuffle -- transactions -n <IP_ADDRESS>:8081 --raw, I get this output:

Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/diem/diem/tree/main/developers.diem.com, and link to your PR here.)
If targeting a release branch, please fill the below out as well

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Why we must have it for V1 launch.
What workarounds and alternative we have if we do not push the PR.

/land


package up dnsmasq as a DNS and DHCP server

This PR adds dnsmasq installation to the openstack namespace. It will:

hand out IP addresses to hosts that are provisioned with Ironic
cooperate with Ironic for setting per-host options
enable a DNS server that can resolve records for endpoint URLs returned by the OpenStack Identity service catalogue

In its current form, it supports only a single DHCP range/pool. Support for multiple pools will be added as a separate story as it requires more input parameters (MACs of the relays, range names, and potentially different DNS server IPs).
Closes PUC-225

Probably some commits can get squashed into others but overall I think it's good. Need to stop systemd-resolvd or whatever it's called if you use container hostPort 53 however. We can have it listen on the ingress if you configure the ingress to listen on UDP 53. We can also have it listen on a service IP.


Communication Issue between processes

Cannot activate OP
When trying to activate OP I get the msg, "Communication Issue between processes"
Comma 2 Device, OP vers 7.9 (updated 2 days ago)
2017 Toyota Corolla LE
*I recently had to replace the car battery.
**I've been using OP for 6mo w no issues.  Same car, doggle, etc...

Please use the template, we need things like your Dongle ID and a route to look into this


Funding accounts errors with invalid uri error

What version are you using?
Broken in 38d865040dd1db59104675ac7dc38a7d1017943d (main)
What did you do?
Generated a new key that also automatically gets funded:
$ soroban keys generate \
    --rpc-url https://soroban-testnet.stellar.org:443 \
    --network-passphrase 'Test SDF Network ; September 2015' \
    me

What did you expect to see?
Successfully funded account, like it worked in ae5446f63ca8a275e61912019199254d598f3bd5 (v2.3.1).
What did you see instead?
$ soroban keys generate \
    --rpc-url https://soroban-testnet.stellar.org:443 \
    --network-passphrase 'Test SDF Network ; September 2015' \
    me
2024-03-10T00:32:26.229192Z ERROR soroban_cli::commands::network: invalid uri character
2024-03-10T00:32:26.229550Z  WARN soroban_cli::commands::keys::generate: fund_address failed: Invalid URL https://friendbot.stellar.org/

Can confirm locally! Looking into it! I changed the way that friendbot url is parsed from RPC because if using the local quickstart the friendbot url is hardcoded to use port 8000.


Change PHP keywords to comply with PSR2

Hi, I've changed a PHP keyword to comply with this standard in PSR2. It's admittedly a small fix but I hope it helps!

Thanks for you contribution, much appreciated


revert solo cloudflare parameter since it is generating error - there…

@mcapuccini  Revert solo cloudflare parameter since it is generating error - there is currently no way with Ansible to delete previous A records

@andersla actually you can use state=absent to remove records. We'll figure out a good way to make it transparent.

problem is that there is no wildcard
  for all possible ip numbers, I tried with value *, but not
  working, I looked into source code but could not figure out a
  way:)

  On 2016-10-29 11:07, Marco Capuccini wrote:

  @andersla actually you can use
    state=absent to remove records. We'll figure out a good way to
    make it transparent.
  —
    You are receiving this because you were mentioned.
    Reply to this email directly, view
      it on GitHub, or mute
      the thread.

  {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mcapuccini/KubeNow","title":"mcapuccini/KubeNow","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/mcapuccini/KubeNow"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mcapuccini in #15: @andersla actually you can use state=absent to remove records. We'll figure out a good way to make it transparent. "}],"action":{"name":"View Pull Request","url":"https://github.com/mcapuccini/KubeNow/pull/15#issuecomment-257080595"}}}


Android TLC: 2023 edition (with 2024 goodies)

Target SDK v35 so Google doesn't yell at us
Update to Material 3
Update to newer dependency / Kotlin compiler versions where possible

Because of this change, we now compile to Java 17 as well

Migrate to ksp from kapt

To do:

[x] Fix navbar color in light mode to not be white
[x] Update CI docker image to include Java 17
[x] Double-check screens for UI bugs - light + dark mode

[x] Auth
[x] Attendance
[x] Settings
[x] Permissions error
[x] Server error

[x] Remove/resolve any remaining M3 upgrade TODOs

[x] Callout dark mode
[x] NfcRequired crash

[x] Update in-app update prompts to latest method

Kristaps is on vacation and had approved, and latest internal app sharing build above works for me, so merging anyways


cube transformation

We need to be able to transform cubes in several ways:

transform dimension into metrics. If it is only values, it should be defined as such. FUTURE WORK: comment non numerical values in the metadata

transform pivot table into cube. Sometimes, CSV are organized in pivot tables (usually they have only two dimensions). It should be possible to transform the cube into a two dimensions cube

For now it works by modifying the inside of the cube.
pro: It is way easier to handle the metadata migration.
con: we rewrite the cube, a new one would be better.


!): Fix for ubuntu 18.04 link error.

Fix for Linux ubuntu 18.04 desktop bazel run example link error.

Thanks for the PR.
If you append --define 'libunwind=true' to the bazel build command, it should solve the link error as well. We don't do this by default because the define flag is not needed if we start from a fresh ubuntu 18.04 system. We will document this issue in the coming release.

thx


Delete Launch Action Events After Processing

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[X] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1966

Description

[X] Here are some details about my PR, including screenshots (if applicable):
Fixes bug where launch action events are not deleted after passing them off to the DagManager from the DagActionStoreMonitor. This results in an accumulation of all launch events that are retried upon startup and then deleted. This makes restart/deploy extremely toil heavy and does unnecessary work.

Tests

[X] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

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

Comparison is base (35304e9) 47.54% compared to head (5d04767) 45.99%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3837      +/-   ##
============================================
- Coverage     47.54%   45.99%   -1.56%
+ Complexity    11040     2178    -8862
============================================
  Files          2157      416    -1741
  Lines         85400    17984   -67416
  Branches       9491     2194    -7297
============================================
- Hits          40607     8271   -32336
+ Misses        41096     8830   -32266
+ Partials       3697      883    -2814

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

checks on my own branch passing https://github.com/umustafi/gobblin/pull/12/checks


@functions section be flexible enough to be placed in a separate file

While it may be ideal to have the "@functions" section all on one single file, it may not scale well with a complex component or page.
Just like we can with JavaScript, it may be ideal to have an option to have the logic/code in a separate file.  In fact, if its in a separate file, i'd imagine intellisense and tooling is probably easier.

We are tracking enabling this support via https://github.com/aspnet/Blazor/issues/278


[Bug]: OpenAI server unexpected shutdown

Your current environment
The output of `python collect_env.py`

Collecting environment information...
PyTorch version: 2.3.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.29.5
Libc version: glibc-2.31
Python version: 3.9.19 (main, May  6 2024, 19:43:03)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-107-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
Nvidia driver version: 535.183.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] torch==2.3.0
[pip3] torcheval==0.0.7
[pip3] transformers==4.41.2
[pip3] triton==2.3.0
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
[conda] torch                     2.3.0                    pypi_0    pypi
[conda] torcheval                 0.0.7                    pypi_0    pypi
[conda] transformers              4.41.2                   pypi_0    pypi
[conda] triton                    2.3.0                    pypi_0    pypi
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.5.0
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    GPU1    GPU2    GPU3    GPU4    GPU5    GPU6    GPU7    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      PXB     PXB     PXB     SYS     SYS     SYS     SYS     0-11,24-35      0               N/A
GPU1    PXB      X      PXB     PXB     SYS     SYS     SYS     SYS     0-11,24-35      0               N/A
GPU2    PXB     PXB      X      PIX     SYS     SYS     SYS     SYS     0-11,24-35      0               N/A
GPU3    PXB     PXB     PIX      X      SYS     SYS     SYS     SYS     0-11,24-35      0               N/A
GPU4    SYS     SYS     SYS     SYS      X      PXB     PXB     PXB     12-23,36-47     1               N/A
GPU5    SYS     SYS     SYS     SYS     PXB      X      PXB     PXB     12-23,36-47     1               N/A
GPU6    SYS     SYS     SYS     SYS     PXB     PXB      X      PIX     12-23,36-47     1               N/A
GPU7    SYS     SYS     SYS     SYS     PXB     PXB     PIX      X      12-23,36-47     1               N/A
Legend:
X    = Self
SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX  = Connection traversing at most a single PCIe bridge
NV#  = Connection traversing a bonded set of # NVLinks
🐛 Describe the bug

On weekend, the running OpenAI server unexpected shutdown. Is there any possible reason and solution for this issue?

Running into the same issue but with output "Killed" instead of terminated.


Add metrics for domain socket access

In order to debug if short circuit access is working, the metric for reading from the worker over grpc is split b/w domain socket and remote access

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4003/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4004/
Test FAILed.


Corner case for CamelCase

Consider this:

… and sends PUBLISHed messages to …

Here PUBLISH is capitalized because it's packet type (in MQTT, if you wonder). Spell checker tells me PUBLIS is not a word. Maybe it can also check words PUBLISH and ed?

I had to decide which way to go for that one.
Most of the code I have seen have associate the last upper case letter with the next word.  Even in GO, this is true.  See HTMLEscape.

Can we go both ways? Check both PUBLIS/Hed and PUBLISH/ed (HTML/Escape and HTMLE/scape) and show error only if both are incorrect.

But that can give false positives… I guess I will write PUBLISH'ed when it will work (it gives me error at the moment) or PUBLISH-ed (works now).

Hmm, I need to think about what will give the best experience.  I might be able to have it as a setting.

Another corner case are the words like "don't" and "can't". In camel case, they're usually written like dont and cant. E.g. dontModifyModel. Of course, the spellchecker complains about the word "dont". But if we simply add it to the dictionary, "dont" in the comments also won't detected.

Good point.  I don't have a good solution for that yet.

Hi, Jason, I found "VMware" seemed to be the same case. The warning says Unknown word "Mware".
Why do I get the same warning even after I put "VMware" in the user dictionary?

@isra-fel good example. The issue has to do with the rules to break up CamelCase words.

FWIW proper punctuation for this usage is PUBLISH-ed ;-)


Support aliases in require-id-when-available

Description
Selecting the id field with an alias should also be valid as discussed in #1017 .
Fixes #1017
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update (I think)

How Has This Been Tested?
I've added a test. Do we need more tests?
Questions
I'm not sure if I should bump the version etc. Should I do that? Or will you perform the changes required for a new release?

I'm not sure if I should bump the version etc. Should I do that? Or will you perform the changes required for a new release?

I'll take care of it, thanks for your PR

I've added a test. Do we need more tests?

It's fine


camel-ftp: OsgiParserFactory#setClassResolver had no effect

Thanks for the PR it has been merged. Do you mind closing this?


@ #235 | How to install a specific vagrant version on Windows

connects #235

$ docker run --rm -p 8080:80 hoatle/teracy-dev-docs:improvements-235-install-specific-versions-windows to review the generated docs site.

reviewed, you can merge it @hoatle


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/51553

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/86121


[UPDATED] Bug: Unable to save downloads within Summit app (Android)

Describe the bug
When using the Android Summit app, you are unable to save any downloads. This applies to Summit reports, Topo reports, and native Terrain reports and exports (such as programmes).
To Reproduce
Steps to reproduce the behavior:

Open the Terrain | Summit app on your Android device
Navigate to Topo, and attempt to generate a report (such as Wallchart)
It will act as if it is generating (spinning progress circle), but no report will ever be generated
Navigate to any Summit report (such as Peak Award Progress), and attempt to save the report, by either clicking "Print", or "Export to CSV"
The button will stay highlighted, and no report will be saved
Navigate to any native Terrain report (such as a Programme), and click "Export"
You get a popup saying "Activity Export downloaded", but no download is saved

Expected behavior
All reports/exports should be saved into the device's Downloads folder
Screenshots
Screen Recording of Topo report as I originally thought this bug only pertained to Topo reports

Device: Samsung Galaxy Tab S9 FE+
OS: Android
App Type: Mobile app
Version: V2.3.0

Upon further testing, I am unable to download any files within the Summit app, including those native to Terrain, such as exporting programmes.
It seems Summit is blocking downloads completely somehow.

I can confirm
Device: Samsung S22 Ultra
OS: Android
Version: 2.3.0

Thanks, I am using a fairly basic browser in the app, I think I might need to swap it out for a different one. I think this also effects the 3 button / title issue.

Pushing to the v3 which will be based on the same framework that Terrain uses so all of the components work more seamlessly and I will switch out the browser from Cordova InAppBrowser to https://capacitorjs.com/ which seems to be a lot more slick and supports more features.

Unfortunate that we won't be able to generate anything within the app until then, but if it requires changing the entire underlying framework to fix it, needing to wait til v3.0 is understandable.
Thanks for your work.

It should not be too far away, I am targeting early in term 1. I already have the foundations configured and working within Terrain using Vue which is the framework it uses. I have been able to add pages directly in so that Terrain is aware of them and handles the navigation and data which should make it much more robust.
My code is already quite modular so it will port across quite easily and I shouldn't need to rewrite much of it.
The mobile app part is basically just a wrapper so I might be able to push that back to the previous version if the rest of 3.0 runs into any issues.

Been playing around with this issue, the workaround I am playing with now might sort it. If so, I should be able to release a fix this week.

Update: I have implemented the new browser app so it will provide me with a lot more options like print and save. It will take me some time to work through them. Adding some links to remind me when I get some free time to try them out.
https://github.com/pichillilorenzo/flutter_inappwebview_examples/tree/main/file_download
https://inappwebview.dev/docs/webview/print-job-controller/
The code for the new app is here if anyone is interested in taking a look at this issue: https://github.com/pete-mc/Summt-FlutterBrowserApp


dropdown-menu / add textbox

:tada: This PR is included in version 1.4.0-rc.36 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Rebuild error when navigating between screens with the same useQuery

When navigating from a list view that uses the same useQuery hook, I get the following error message. I am new to Flutter, so will attempt to dig in, but thought I would post it here.
The query being used in the two components:
var users = useQuery(
  ['users', companyId],
  () => client.listUsers(companyId: companyId),
);

The interaction is loading a list of users, then navigating to a details view for the user and picking that user from the same useQuery list to eventually support deep linking. I'm also using the Retrofit library for generating a client.
══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞══
The following assertion was thrown while dispatching notifications
for Observer<ListUsersResponse, dynamic>:
setState() or markNeedsBuild() called during build.
This _UsersListView widget cannot be marked as needing to build
because the framework is already in
the process of building widgets. A widget can be marked as needing
to be built during the build
phase only if one of its ancestors is currently building. This
exception is allowed because the
framework builds parent widgets before children, which means a dirty
descendant will always be
built. Otherwise, the framework might not visit this widget during
this build phase.
The widget on which setState() or markNeedsBuild() was called was:
  _UsersListView
The widget which was currently being built when the offending call
was made was:
  UserDetailsScreen```

Not sure why that is, can you post some code where you're using this hook?

Closing due to inactivity

@41y08h  I think this has to do with refetchOnMount.
Was able to work around by setting it to RefetchOnMount.never in the DefaultQueryOptions.
Basically every time I go back to a route using queries, it logs this error in the console:

setState() or markNeedsBuild() called when widget tree was locked.

@41y08h I think this has to do with refetchOnMount. Was able to work around by setting it to RefetchOnMount.never in the DefaultQueryOptions.
Basically every time I go back to a route using queries, it logs this error in the console:

setState() or markNeedsBuild() called when widget tree was locked.

Are you having the same issue in latest version, i.e v1.3.0-beta.1 ?

Thanks for raising this issue @dolfelt & @ianldgs, it is well appreciated 👍.
This issue has been fixed in the latest version v1.3.1-beta.1 🎊🎉

This issue is still there so reopening.

Fixed in v1.3.2-beta.2 🎊🎉

Tried v1.3.1-beta.1 and indeed the problem was still present.
With v1.3.2-beta.2 it's looking good! Thanks for the quick fix :)


Bugfix/home page typo

Fix the typo on the home page

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ckabates sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Frontend Concept Proposal

6.12.17 - 15:52: added next steps

Mobile first
We are playing often at foreign locations, where i actually don’t have my laptop with me. The hoster also cannot be responsible for providing a laptop for each gamer, therefor the app has to run optimized on your mobile device. The app will also be useable on tables, because the hoster probably needs more and faster actions to do.
App Access
There are two reasonable options which i have in mind:

Direct access via webserver/url, As mostly all apps, where you type an url into your browser and the app loads
Mobile application which you connect to the webserver by manually providing the server url. Another (future) advantage could be to access the phone's api’s, as bluetooth, camera, nfc, etc, to e.g. create an avatar picture from its own camera/face, copy data via nfc/bluetooth, and so on.

In the end, both methods have small advantages/disadvantages which does not really concern the gameplay. The one thing to mention is, that the (android/os) app is completely detached from the server and can be deployed/developed by its own needs & speed.
SPA
As long as the data comes from an restAPI, the most common usecase to realise the frontend will be a single page application. It’s the todays way of creating large, scalable web applications
Technologies
There is need for a frontend framework/library. In my case, i’m mostly experienced with angular which would fit perfectly into this app.
Browsersupport can be at the beginning secondary and even less important if we realise it into an android/ios app.
Next Steps:

Startup workflow
Creation (game, encounter, npc, char) workflow
Resume game workflow
Round based concept

This content should lead to a discussion where we can eliminate all ambiguity, clear things up and even define the actual concept so we can make further steps. Feel free to ask/tell everything your head comes in mind!
if content changes are made, i'll add a timestamp to the top of this document.

check #8 and #22 for conceptual and (very basic) pages needed. #22 is the task we use to create some mockups, but feel free to ignore those
single page application would be sensible. In #22 I've already setup a resource folder that gets served on the web server, so any instance that gets started of the server can display something in the browser. Since we do not have the infrastructure to actually host a permanent copy of the application, something that can be accessed by the browser is probably the best way to do things for now.
Framework choice should probably be up to you, since the rest of us don't have any real experience with any of them.

I actually don't understand what you expect by "Website Mockup" at #22. Can you explaint this for me? But it looks like i'll use those two issues as "Next steps"
About provoding the website/frontend i don't see any problem to use that resource folder. I just need node (and npm)

Alright. Well then i will start with some workflows & wireframes :-)


Left titles spam on animate big range Y values

Hello, thanks for the lib x)
Please help me figured out how to remove this Y titles spam on animation from big maxY to small maxY.
It is very strange that this behavior is only when the Y values are decreasing.
Spam example

Also decreasing the value even further, for example from 15k to 5, takes too long and causes the UI to freeze. In the profiler, I found that the summed time of the _drawTitle reaches up to 1 second. Maybe these problems are related :<
Freezing example

P.S. Disabling animation completely fixes these problems
Versions

Flutter 2.0.2
FlChart 0.30.0

So i solved my issue. I have a precalculated interval for my maxY to display only 6 left titles.
When i update BarChart or LineChart with new maxY and left titles interval, animation is launched with lerp maxY and interval values, but _drawTitles method always using final value of interval and drawing all this texts :)

Hi sir, If you think there is nothing left feel free to close this issue.
Thanks for explaining your solution.

Hi @orteney @imaNNeoFighT, im having this same issue but cant find a fix, I also have a function for custom intervals.

Hi @Prn-Ice .
Can you provide me a reproducible code?


Video Upload Updates

Merged current updates with latest video upload layout.

@amochuko The issue I'm having is with the metadata not being retrieved after the contract has been deployed.
Feel free to reach out to Thirdweb in Discord if you are stuck or need extra help figuring that part out. Keep me updated on any progress, you're almost completed.

@sirgawain0x Alright. I'll work on a fix.


Activate Files App automatically when using "Microsoft Print to pdf" or "Save as PDF" functions.

What feature or improvement do you think would benefit Files?
Activate Files App automatically when using "Microsoft Print to pdf" or "Save as PDF" functions. This is pretty crucial. When the "Microsoft Print to pdf" or "Save as PDF" revert to the old File Explorer APP, people are less likely to use both.
Requirements

This proposal will accomplish X
This proposal will accomplish Y
This proposal will accomplish Z

Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.2715
Comments
Activate Files App automatically when using "Microsoft Print to pdf" or "Save as PDF" functions. This is pretty crucial. When the "Microsoft Print to pdf" or "Save as PDF" revert to the old File Explorer APP, people are less likely to use both.

Thanks for the feedback, if you are talking about the open/save dialog Files can not do anything until Microsoft implements an official way of changing the default file explorer

Yep. That's it.  Thanks for the quick response.
Steve
On Sat, Nov 18, 2023 at 4:05 PM Josh65-2201 @.***>
wrote:

Thanks for the feedback, if you are talking about the open/save dialog
Files can not do anything until Microsoft implements an official way of
changing the default file explorer
—
Reply to this email directly, view it on GitHub
https://github.com/files-community/Files/issues/13942#issuecomment-1817641913,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BEDDZIRNEH2RMDMKY2WXDH3YFEPKDAVCNFSM6AAAAAA7RGWDRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGY2DCOJRGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Stephen Wienner
Mt. Vernon Pharmacy
Voice:<PHONE_NUMBER>

@Josh65-2201 just to clarify what Josh shared, there are some possible methods, but they all have their own limitations and aren't supported by Microsoft.


Bootstrap xrdp on startup for future connections

Is it possible to "bootstrap" xrdp on a headless server for accepting future connections?
Using Ubuntu Server 18.04, I install xrdp, xorgxrdp, and xfce or mate and then create an image out of the result. When booting the image on a fresh server, I'd like to have RDP connectivity as fast as possible. The first RDP connection takes up to 20 seconds to initialize (and has 5-10 seconds where the screen is completely black), but subsequent connections are much faster (they reuse the same xorg display and xfce/mate session).
Is it possible to get an xrdp session started when the machine boots up so that when I RDP into it, the xorg display and mate session are ready and initialized?

what I tried:
running xrdp-sesrun <IP_ADDRESS> ubuntu ...
I get
sesman config:
	ListenAddress:            <IP_ADDRESS>
	ListenPort:               3350
	EnableUserWindowManager:  1
	UserWindowManager:        startwm.sh
...
ok 1 display 10
The log reference is NULL - log not initialized properly

but ps aux | grep Xorg and ps aux | grep mate shows that Xorg and mate have not started running.
xrdp-sesadmin shows:
$ xrdp-sesadmin -u=ubuntu ...
[20190307-20:51:41] [DEBUG] libscp initialized
[20190307-20:51:41] [INFO ] [v1c_mng:405] connection ok
Session ID: 1704
	Session type: 2
	Screen size: 1024x768, color depth 24
	Idle time: 0 day(s) 0 hour(s) 0 minute(s)
	Connected: 2019/03/07 20:51
[20190307-20:51:41] [DEBUG] Closed socket 4 (AF_INET6 ::1 port 52586)

then when I connect via RDP it shows
$ xrdp-sesadmin -u=ubuntu ...
[20190307-20:54:10] [DEBUG] libscp initialized
[20190307-20:54:10] [INFO ] [v1c_mng:405] connection ok
Session ID: 1744
	Session type: 3
	Screen size: 1248x1209, color depth 24
	Idle time: 0 day(s) 0 hour(s) 0 minute(s)
	Connected: 2019/03/07 20:54
[20190307-20:54:10] [DEBUG] Closed socket 4 (AF_INET6 ::1 port 52600)

it seems the old session (id 1704) is replaced by 1744. However it clearly still has to start Xorg and mate and that takes time.
I thought running freerdp as a client against localhost could force xrdp to make a session, but unfortunately xfreerdp is an x program and requires a display.
Thanks in advance for any help.

I guess this is somewhat similar to #960 , but I don't need to connect to a foreign pre-existing session. I'd be happy to connect to an xrdp-native session, I just need to know how to get xrdp to create such a session on boot.

Any help here?
@proski I believe you wrote the xrdp-sesadmin tool which I tried to use, do you know if it should be possible to use it to do what I described?

I didn't write xrdp-sesadmin, you can see that my changes were superficial and did not affect the code functionality.
https://github.com/neutrinolabs/xrdp/commits/devel/sesman/tools/sesadmin.c

My mistake, I just saw that you had the last N commits. Any chance you can point me to the right person to talk to for this question (or sesadmin functionality)?

It is potentially possible, but need to brush up xrdp-sesrun.

+1 from me and went exploring this route. I also need this functionality because I want to enforce a single session, always.  Seems like sesrun is broken or the manual for usage is insufficient.   I had some success creating an Xvnc session at boot and XRDP can connect to it using the port # but pasting from outside does not work.

I can't help but echo that I'm trying to do exactly this same thing ("initialize" an XRDP session so that it's up and waiting) and running into the same issues.  Looking for solutions along this line, something command-line based that I can use to connect and get the ball rolling, so to speak.  I was also looking into the rdpy python rdp client, but was hoping for something a little lighter.


Fix formatting, tests for new HTML and CSS challenges

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issues (replace XXXX with an issue no): Closes #12646 and Closes #12653

Description

Formatting changes: adds code tags, fixes multi-line code examples, and swaps the angle brackets in examples for escape characters
Tests: fixes a few challenge tests that had regex errors or weren't running as expected. They all work locally now
Section ordering: fixes order field in .json files so Basic HTML and HTML5 comes first, then Basic CSS, then Applied Visual Design. The CSS section was appearing first before.

LGTM, and this does not relate to your challenge, but your you mind removing this line:
https://github.com/freeCodeCamp/freeCodeCamp/pull/12663/files#diff-fa15da2c3b9ebc5c5f9028135cafe5f8R2053
         "
",
         "
padding
",
         "
padding
",
         "
",
         "</style>", //<-----
         "",

which has crept in somehow?

@raisedadead just saw that issue, and that's a good catch! I'll make that fix here 👍

Those h1 lines at the bottom weren't supposed to be in there either, so I took those out.


Enable ability to filter the organisations a SAML IdP can authenticat…

…e via SAML group attributes

Adds the ability to set a SAML attribute for an IdP which contains a list of domains the user is allowed to access.
This allows a Zulip server with multiple organizations to filter using SAML attributes which organization each user can access.
Testing Plan:
Created a couple of tests as well as tested against Keycloak and okta.com with multiple organizations.

@brainrecursion have you seen that we support listing the organizations to use an IdP with in settings.py?
For our own use in zulipchat.com, we prefer having the configuration on the Zulip side, since that protects other realms against a potentially malicious IdP.  Do you have a use case where it's important to have this restriction on the SAML side as well?

@timabbott I had a look at that but it looked like I would need a separate IdP or at least SAML realm per organisation.
In our use case we have a single trusted IdP for the company and want separate Zulip organisations for different parts of the business.

Let me know if this PR is of interest and if so I will add some additional tests to fix the build errors. They are currently failing due to lack of coverage.

I think there's a valid use case for supporting filtering on both ends of the system, and it seems low-cost to integrate, so be encouraged to write tests :)

@timabbott tests all done. Not sure why one of the ci builds failed, possibly just needs to be rerun.

I think the CI failure is likely a side effect of your creating a merge commit, which isn't something you ever want to do in a pull request.
(You want to always use git pull --rebase, not git pull, as an open source contributor).
Can you squash your commits (this is conceptually just one change) and rebase on top of upstream/master?
Check out our GitHub guide and commit guidelines for more details.

@timabbott is it possible to get this included in the next release?

I imagine so.  @mateuszmandera can you give this a review?

@brainrecursion This looks super useful, thanks for working on it! I took the liberty of cleaning up/adapting the code to fit more into how I think we prefer to do things :slightly_smiling_face:
@timabbott Can you review?

@mateuszmandera Thanks for reviewing and adapting this.
@timabbott is it ready for merge now?

This is great.  Merged as 7fe52bbb9edce231e1adea149d261057d8165cef after a bunch of editing on the documentation to fit our style and explain it alongside limit_to_subdomains.
Thanks for the contribution @brainrecursion!


Trouble with Installation

I cannot seem to get this running. I have all the prerequisites installed and all my other MCP servers run fine that I have setup, but this one I cannot seem to get to work. Any ideas on what could be going wrong? I really want to try this out!

This doesn't seem to be an issue with the stockscreen MCP server.


Shall we suggest Foo::Bar::X::What::Happened exception name format?

https://docs.perl6.org/type/Exception
There was discussion on IRC how exceptions should be defined in _user modules_.
Current documentation suggests X::Foo::Bar::What::Happened but Foo::Bar::X::What::Happened is better because:

It is clear which part is the name of package and which is the name of exception. Let's take old X::User::Access::Auth::Invalid for example - did we have problem with accessing authorization system from User class or did we simply get wrong credentials in User::Access class? Defining this as User::Access::X::Auth::Invalid makes things explicit - we have separate class for user access and it got wrong credentials.
It is lexically scoped - exception What::Happened can be defined in Foo::Bar class and exported.
When ecosystem will grow we will encounter many conflicts in X:: namespace. For example people will be defining exceptions like X::ParamMissing and use them in Foo::Bar class. Exception should be encapsulated. I know that there is :auth to distinguish package origin but it won't solve the problem.

So what is your opinion? Shall we promote in docs Foo::Bar::X::What::Happened format (and create issues in modules that use X:: format to refactor them while ecosystem is still young) ?

I agree with this and all its rationales.  Things defined by a module should all be in that module's namespace.

I didn't know this ticket existed, so I filed another one: https://github.com/perl6/user-experience/issues/11
This repo will likely be unified with problem-solving in the future, so I'm closing this ticket in favor of the other one.

I think you meant perl6/problem-solving#57

Ah, yes! Thank you!


[Bug]: ISR not working when my web app deployed

Summary
Description
Link
This web application is built in Next.js version 12, @netlify/plugin-nextjs version 4.1.0, and next-pwa. The package next-pwa is being used to generate Progressive Web Application. The service worker is registered when my Next.js app being built or deployed in Netlify.
In the function, getStaticSiteProps, The data is fetched from the json files in AWS S3, Cloudfront is now applied, then the api url is like,
https://xxxxxxxxxxxxxxx.cloudfront.net/api/data.json
So I set the revalidate time to 10 minutes, but the page doesn't change the content after more than 10 minutes.
However, when i build this app in my local machine with commands "next build & next start", the updated contents is displayed normally.
I have thought the ISR is fully supported. does the service worker cause this problem?
The Code
next.config.js
const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');
/** @type {import('next').NextConfig} */

module.exports = withPWA({
  reactStrictMode: true,
  pwa: {
    dest: 'public',
    register: true,
    skipWaiting: true,
    runtimeCaching,
    buildExcludes: [/middleware-manifest.json$/],
  },
});

Dependencies package.json
{
  "dependencies": {
    "axios": "^0.24.0",
    "next": "12.0.4",
    "next-pwa": "^5.4.1",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  },
  "devDependencies": {
    "@netlify/plugin-nextjs": "^4.1.0",
    "@types/node": "16.11.10",
    "@types/react": "17.0.37",
    "autoprefixer": "^10.4.0",
    "eslint": "7",
    "eslint-config-next": "12.0.4",
    "postcss": "^8.4.3",
    "tailwindcss": "^2.2.19",
    "typescript": "4.5.2"
  }
}

Steps to reproduce
In Summary
A link to a reproduction repository
https://github.com/quavious/too-much-news
Plugin version
4.1.0
More information about your build

[ ] I am building using the CLI
[X] I am building using file-based configuration (netlify.toml)

What OS are you using?
 Functions bundling
10:39:07 PM: ────────────────────────────────────────────────────────────────
10:39:07 PM:
10:39:07 PM: Packaging Functions from .netlify/functions-internal directory:
10:39:07 PM:  - ___netlify-handler/___netlify-handler.js
10:39:07 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
10:39:07 PM:  - _ipx/_ipx.js
10:39:07 PM:
10:39:28 PM:
10:39:28 PM: (Functions bundling completed in 21.1s)
10:39:28 PM:
10:39:28 PM: ────────────────────────────────────────────────────────────────
10:39:28 PM:   5. @netlify/plugin-nextjs (onPostBuild event)
10:39:28 PM: ────────────────────────────────────────────────────────────────
10:39:28 PM:
10:39:28 PM: Next.js cache saved.
10:39:28 PM:
10:39:28 PM: (@netlify/plugin-nextjs onPostBuild completed in 56ms)
10:39:28 PM:
10:39:28 PM: ────────────────────────────────────────────────────────────────
10:39:28 PM:   6. Deploy site
10:39:28 PM: ────────────────────────────────────────────────────────────────
10:39:28 PM:
10:39:28 PM: Starting to deploy site from '.next'
10:39:28 PM: Creating deploy tree
10:39:28 PM: Creating deploy upload records
10:39:29 PM: 22 new files to upload
10:39:29 PM: 3 new functions to upload
10:39:37 PM: Site deploy was successfully initiated
10:39:37 PM:
10:39:37 PM: (Deploy site completed in 8.5s)
10:39:37 PM: Starting post processing
10:39:37 PM:
10:39:37 PM: ────────────────────────────────────────────────────────────────
10:39:37 PM:   Netlify Build Complete
10:39:37 PM: ────────────────────────────────────────────────────────────────
10:39:37 PM:
10:39:37 PM: (Netlify Build completed in 1m 2.2s)
10:39:37 PM: Post processing - HTML
10:39:37 PM: Caching artifacts
10:39:37 PM: Started saving node modules
10:39:37 PM: Finished saving node modules
10:39:37 PM: Started saving build plugins
10:39:37 PM: Finished saving build plugins
10:39:37 PM: Started saving yarn cache
10:39:37 PM: Post processing - header rules
10:39:37 PM: Post processing - redirect rules
10:39:38 PM: Post processing done
10:39:38 PM: Site is live ✨
10:39:41 PM: Finished saving yarn cache
10:39:41 PM: Started saving pip cache
10:39:41 PM: Finished saving pip cache
10:39:41 PM: Started saving emacs cask dependencies
10:39:41 PM: Finished saving emacs cask dependencies
10:39:41 PM: Started saving maven dependencies
10:39:41 PM: Finished saving maven dependencies
10:39:41 PM: Started saving boot dependencies
10:39:41 PM: Finished saving boot dependencies
10:39:41 PM: Started saving rust rustup cache
10:39:41 PM: Finished saving rust rustup cache
10:39:41 PM: Started saving go dependencies
10:39:41 PM: Finished saving go dependencies
10:39:41 PM: Build script success
10:40:57 PM: Finished processing build request in 2m57.84385971s

Function logs

Function logs
# Paste logs here

.next JSON files

generated .next JSON files
# Paste file contents here. Please check there isn't any private info in them
# You can either build locally, or download the deploy from Netlify by clicking the arrow next to the deploy time.

Hi. Thanks for the report. I believe this is the same bug as #1028. There will be a fix out today, but in the meantime can you try rebuilding with the env var EXPERIMENTAL_ODB_TTL set to 1?

@ascorbic
Yes, I have confirmed increment site regeneration is working correctly.
Actually, I had already removed all service workers in my app to prevent unexpected caching data, or intercepting http requests.
Thank you for your services.


Single class training

How should you set the num_classes parameter on the models, when training a detector with a single class?
This thread says you should set num_classes=2 (adding a class for background):
https://github.com/open-mmlab/mmdetection/issues/344
Is this still valid? I ask because training seems to work well enough with num_classes=1, and the defaults for coco are 80 (not 81).

In mmdetv2.0 you should num_classes=1 (exclude background class), but if you use mmdetv1.0 you should set num_classes=2.

Aha, I see. Thanks!


[BUG] Query is too large to execute(and takes too long time to return data)

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Run docker compose with DEBUG=knex:query
See log

Expected behavior
A clear and concise description of what you expected to happen.
light query with a small amount of arguments.
Screenshots
If applicable, add screenshots to help explain your problem.

System (please complete the following information):

OS: [e.g. Ubuntu] Ubuntu 22.04.2
Platform: [e.g. docker, standalone] docker-ce 23.0.6
Version: [e.g. 1.9.11] 1.24.0

Logs
If applicable, attach log messages showing the bug and context when the bug happened.
It's too long to post here, I created gist.
https://gist.github.com/ikuradon/0db31b3133ab926465fdfa214ca60620
Additional context
Add any other context about the problem here.

Thanks @ikuradon for reporting the issue. This will be addressed when tags are saved on their own table.


Support in-repo interpreters

This allows using an interpreter defined within the repo for tests (it doesn't have to be on the PATH).
Also allows setting a default shebang to whatever you want, which is a useful counterpart since the relative interpreter path probably won't be very useful.
I've added one from github.com/indygreg/python-build-standalone and a test profile on GHA, I don't think it's worth trying to matrix that across Python versions.

Think the test failures need #193


Bidding Webfield Should Sort by Affinity Score

var SCORE_IDS = [] in the bidding console UI should contain the affinity score invitation, if it exists.

assigning this to Xukun so we can fix it in the new bidding template

the score_ids is being rendered on the page as a dropdown
but i think currently it has no function associated
only the first score_ids value is used to get edges


Support for property ref returns missing

Parser support for property ref returns is missing and so the parser will bring the following error if a property ref returns a value:

Warning: SA0102 : CSharp.CsParser : A syntax error has been discovered

I've fixed that in my fork and send a pull request...

Merged. Thanks!


Adjusted MCLMC

A change is also made to partially_refresh_momentum, which allows (adjusted) MCHMC to be the limit of MCLMC with infinite $L$. This is convenient since the user may or not want partial refreshment (in the unadjusted case, we find that it is always beneficial, but don't know yet in the adjusted case)
Addresses #676.
Checklist:

[x] If I add a new sampler, there is an issue discussing it already;
[x] We should be able to understand what the PR does from its title only;
[x] There is a high-level description of the changes;
[x] There are links to all the relevant issues, discussions and PRs;
[x] The branch is rebased on the latest main commit;
[x] Commit messages follow these guidelines;
[x] The code respects the current naming conventions;
[x] Docstrings follow the numpy style guide
[x] pre-commit is installed and configured on your machine, and you ran it before opening the PR;
[x] There are tests covering the changes;
[x] The doc is up-to-date;
[x] If I add a new sampler* I added/updated related examples

Any advice for how to improve the code coverage here? I'm not entirely sure how to interpret the report.

I think this is ready to review again @junpenglao

@junpenglao Now ready to review! I will extend the sampling book's MCLMC section with the adjusted option shortly.


JMS sink with password is not working

Issue Guidelines
The JMS sink is not sending the password because of the wrong InitialContext argument.
I already created a fix and a pull request for that, so please review: https://github.com/Landoop/stream-reactor/pull/455#issuecomment-394679254

Closed via #455
Thanks @aattila


Fix dependencies

This fixes dependencies by:

bumping version of numba
loosening version of numpy
loosening versions of some other dependencies (not relevant to the problem pointed out by the reviewer)
Thanks to the above changes, we got rid of the installation problems + omnisolver-pt is also compatible with Python 3.11.

Superseded by #7


heapster-nanny complains when run with system:heapster RBAC permissions

I've tried running the heapster pod with a serviceAccount with the system:heapster role but "nanny" complains about not having permissions to perform certain operations. Is the role badly defined?
nanny log
I0401 00:00:54.492157       1 nanny_lib.go:109] Resources are not within the expected limits: updating the deployment.
E0401 00:00:54.494259       1 nanny_lib.go:111] the server does not allow access to the requested resource (get deployments.extensions heapster-v1.2.0-beta.1)

apiserver log
I0331 23:50:03.392482       1 rbac.go:87] RBAC DENY: user "system:serviceaccount:kube-system:heapster" groups [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] cannot "get" resource "deployments.extensions" named "heapster-v1.2.0-beta.1" in namespace "kube-system"

I ran the following commands to create the serviceAccount:
    kubectl create serviceaccount heapster --namespace=kube-system
    kubectl create clusterrolebinding heapster-role --clusterrole=system:heapster --serviceaccount=kube-system:heapster --namespace=heapster

this should probably be filed against the main kube repo (since the problem is policy and non Heapster), although I'd argue that the RBAC is correct in denying the Heapster pod the ability to modify its own configuration.  That feels poor from a security perspective.

cc @piosz

cc @mwielgus @x13n


Great project

Hi!
I am amazed of your improvements over the original gorilla repl! Thanks so much!
I think now that we have reagent under the hood we could use this to allow for nice UI controls in gorilla repl! For example we could add sliders to limit the display of a big table. Or we could add an UI that collects parameter that will trigger the recalculation of a funcion / cell on the server.
We could go even a step further and display dynamically updating data from the server via a websocket.  Possibly we could write a routine that syncs server side atoms with client side atoms that arw then displayed in react. This would allow for a completely new level of interactive data analysis.
And we could also add sub routes to each worksheet that would each display different data.
We can so stuff that is eay mroe advanced than jupyter notebooks.
Are you interested to discuss this?

Hi,
had a discussion with Jony (the original author) and Ben (the current maintainer) of the original gorilla-repl a while back. Both seemed to like my changes in general, but were quite busy at the time. For the time being, they chose to look how things turn out and keep doing basic maintainance for gorilla-repl. I got busier as well and also a bit worried whether it might not be a better idea piggybacking on jupyter, nteract or the like so the effort stalled. I'd love to see this thing evolve, but at the moment, I am also lacking a vision how it is supposed to differ from the other projects. And for sure, I won't be able to maintain traction just by myself. However, I would not hesitate to review and merge sane PRs. I may even get back pushing things forward once the vision is there.

I know you did :)  I read all your blog before writing you.
I love Jupyter. But I think it is very difficult to run Jupyter easily. I
developed some extensions to a c# engine years ago. And even with properly
setup docker containers it was never as easy as running a nrepl session.
This is why I think a pure clojure solution will have advantages.
Can we do a short whatsapp call?
On Tue, 8 Oct 2019, 11:48 Andreas Steffan<EMAIL_ADDRESS>wrote:

Hi,
had a discussion with Jony (the original author) and Ben (the current
maintainer) of the original gorilla-repl a while back. Both seemed to like
my changes in general, but were quite busy at the time. For the time being,
they chose to look how things turn out and keep doing basic maintainance
for gorilla-repl. I got busier as well and also a bit worried whether it
might not be a better idea piggybacking on jupyter, nteract or the like so
the effort stalled. I'd love to see this thing evolve, but at the moment, I
am also lacking a vision how it is supposed to differ from the other
projects. And for sure, I won't be able to maintain traction just by
myself. However, I would not hesitate to review and merge sane PRs. I may
even get back pushing things forward once the vision is there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/deas/gorilla-notebook/issues/2?email_source=notifications&email_token=ACS2CGR43V36SCZEOGLYXKTQNRJOVA5CNFSM4I6K4DN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEATS4WA#issuecomment-539438680,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACS2CGSXDBRURUBE5IJSTQTQNRJOVANCNFSM4I6K4DNQ
.

I'll get in touch via email.


Kotlin-stdlib-jre8 is a runtime dependency

Currently kotlin-stdlib-jre8 is in the test dependencies section, although it is not marked as one. For reference

Thanks, fixed!


Conversion from Modin dataframe to spark dataframe

Is there any way by which we can convert Modin Data frame into spark data frame?
And one more question.
finaldf["Alarm"] = pd.Series(AlarmList)
ValueError: Length of values (62) does not match length of index (74)
Is there any work around of this in Modin.
Because in pandas this empty rows will be filled with Nan.

Hi @Bhavsik, thanks for the question!
Currently, the only way from Modin to Spark would be through files, parquet should be fine. Does your workflow require Spark for some follow on steps?
Your second question looks like a bug. Would you open a new issue so we can track that separately from this question? That would help a lot!

Hi @devin-petersohn, our work flow require Spark for further calculations.
So, we need to change from Modin to Spark. Does we can go with Modin to Pandas ?
I have tried with Datafarame.topandas() but it's not working.
And I will create new issue for second question.

There is an API for going to pandas, df._to_pandas(). It's an internal API, but you can use it for your purposes.. Let me know if that helps!

@Bhavsik did Devin's suggestion help? I'm going to go ahead and close this issue.


model does not get initialized correctly

The color picker swatch shows the right color, but the input field is wrong. It gets updated to the right value when you click on the field and focus it.

@bipinshashi Can you give me more details on what your problem is?

it seems like the input model does not get updated on page load with the right color - for example if the color was rgb(255,0,0), on page load the color swatch would be red but the input would be empty. If you focus the input field, it gets updated to red.
It sounds like there is a digest cycle not being triggered properly. I reverted back to 3.3.0 and it seems to work.

@bipinshashi I cannot replicate this problem with a basic color picker. Maybe there is something in the options that you are passing in. Can you setup a plunker or something showing the issue?

@bipinshashi The problem occurred anytime the ngModel was programmatically changed after the color picker had been initialized. So if you were loading the color value from an ajax call then it could be set after the color picker was initialized.
Fixed in commit aa8f553 and released in v3.4.6


Static Registers of IServiceClientInterceptor in Multithreaded Environment

This is handled by the client runtime. If this is still an issue, please reopen it there.
Originally posted by @olydis in https://github.com/Azure/autorest/issues/1408#issuecomment-315888906
Hello there, I'm trying to add tracing to only one of my HTTP Clients instances. It happened to have been generated by Autorest, the issue is when enabling it like in the documentation
ServiceClientTracing.AddTracingInterceptor(clientTracing);
ServiceClientTracing.IsEnabled = true;

It'll actually start redirecting all traffic to my TracingInterceptor for the entire Webjob(in this case), including totally unrelated HTTP Clients
This enables it globally. According to @olydis, this is handled by the client runtime and therefore I must ask for help here. Can someone guide me through the necessary fixes or is this a bug?

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

@pakrym:  I may be routing incorrectly.   If so, please let me know.

I haven't been able to find any alternatives other than the static initalizer. Do I have to create some sort of concurrent list where I keep track of each client to track if I want to differentiate the SentRequest ReceivedResponse methods?

I'm afraid there is no non-global way to register the interceptor.
You can try and use the Enter event to map from the invocationId to client instance and then only log SentRequest/ReceivedResponse for those ids.
A simpler option might be implementing a DelegatingHandler and passing it to the client constructor. That way you don't need any additional mapping.

I'm afraid there is no non-global way to register the interceptor.
You can try and use the Enter event to map from the invocationId to client instance and then only log SentRequest/ReceivedResponse for those ids.
A simpler option might be implementing a DelegatingHandler and passing it to the client constructor. That way you don't need any additional mapping.

I ended up with some of a hacky solution.

Created a wrapper handler that takes in multiple interceptors
Each interceptor got initialized with a unique guid
Each request we make that we want to get intercepted has those unique guids attached in the headers with a unique header name so that server ignore them
The handler catches all requests/responses but looks for the header guid's and redirects it to the proper interceptor.

/unresolve


support building USE_SSH=exec

this will enable the use of OpenSSH instead of libssh hopefully fixing a bunch of problems

Hi, I'd like to work on this, with the goal of getting this into jj (https://github.com/martinvonz/jj/issues/63).


Write user code example

### Tasks
- [x] User code for the continual summarization task (Scenario 2)
- [ ] Make it clearer what are the learning settings, including learning_constraints, learning_objectives, learning_results, and learning_data in the continual summarization task.
- [ ] User code for Scenario 1: Use historical interaction log to improve an agent's performance with the accumulation of interaction sessions.
- [ ] To discuss is "learning" the precise word to use. Other alternatives include "digesting", "observing"?
- [ ] Questions to discuss: what are the objectives? For example, "improving user experience" could be a high-level objective. But what are good quantitative measures for it? What is a good measurement of "improvement". Potential metrics include: the number of turns to finish a task, the cost for finising a task.

# Use feedparser to fetch data from arxiv.org
import feedparser
import pickle

cs_feed = feedparser.parse("http://export.arxiv.org/rss/cs")
stat_feed = feedparser.parse("http://export.arxiv.org/rss/stat")
all_cs_data = []
all_stat_data = []
# Loop through each entry (article)
for entry in cs_feed.entries:
    all_cs_data.append(entry.summary)
for entry in stat_feed.entries:
    all_cs_data.append(entry.summary)

# Create an assistant agent
from flaml.autogen.agent import AssistantAgent, UserProxyAgent
assistant = AssistantAgent(name="summary_assistant")
user = UserProxyAgent(name="user", data=cs_data)
assistant.receive(f"Summarize research trend in CS. I have a list of abstract of latest papers from arxiv. You can request data you can digest.")
# during the interaction, the UserProxyAgent can request data from the user to summarize until all the data
# has been read

# serialize the agents
pickle.dump(assistant, open("assistant.pkl", "wb"))
pickle.dump(user, open("user.pkl", "wb"))

# load the agents
assistant = pickle.load(open("assistant.pkl", "rb"))
user = pickle.load(open("user.pkl", "rb"))

# provide new data to the assistant
user.set_data(all_stat_data)
assistant.receive(f"Summarize research trend in CS and stats. I have a list of abstract of latest papers from arxiv. You can request data you can digest.")

Quick question regarding the Scenario 2.

Will the learning_results template/structure being a hyper-parameter, or a learnable parameter? For example, I'm wondering if the learning results on research trends will change during the learning process - seeing a few samples will result in a very fine-grained trend (e.g. a particular method name) and the trend will be more abstract given more data (e.g. a particular field name).
Does the assistant need to know if only partial data (and what % of data) is given?
Is there any parameter to balance the assistant to learn from current batch of data and not forget about the previously given data?

Thanks! (Context, I was discussing with @sonichi on https://github.com/microsoft/FLAML/issues/1063 for our use case)

2. Does the assistant need to know if only partial data (and what % of data) is given?

@weilinear, thank you for your interest and questions.  Please find my responses to you questions below:

I don't have a definitive answer to this question at the moment. Generally speaking, the nature of learning_results is likely to be dependent on the specific learning algorithm employed. It could potentially be a hyper-parameter or a learnable parameter.
In many cases, it is impossible for the assistant to know if only partial data is given. For example, one can always choose to feed new data to the assistant whenever new data is available. Thus, I think we'd better design the assistant in a way such that it does not need to know if only partial data (and what % of data) is given.
One potential way to make such a balance: In the learning_constraints, we could consider including a learning_window_size parameter to help regulate the extent of prior data considered for learning.

Thanks for the explanation. A few follow-up questions

What is considered a learning algorithm in this context?
How will learning_rate works here and what will be the assumption we could make about higher/lower learning rate? Will that be some measurements of how fast learning_results changes?

Thanks for the explanation. A few follow-up questions

What is considered a learning algorithm in this context?
How will learning_rate works here and what will be the assumption we could make about higher/lower learning rate? Will that be some measurements of how fast learning_results changes?

Hi @weilinear, the learning algorithm is a function that can take learning data and learning objective, and optionally previous learning results as inputs and outputs learning results. In the context of a summarization task, a large language model could be used as the learning function.
The learning rate mentioned in my previous response is just an example of the potential ways for the user to make balance old learning_results and learning from new data. How it works depends on the specific learning function. To avoid confusion, I have removed learning_rate from the code example and only keep a field named learning_func.
Thank you!

Hi @weilinear,
Thank you for your interest. Could you please take a look at this PR: https://github.com/microsoft/FLAML/pull/1098
, especially the continual summarization example code in this file: https://github.com/microsoft/FLAML/blob/6891db656de7b8de4ecbaad892abafee8411d3a8/test/autogen/test_continual_summarization.py
Thank you!

Hi @weilinear,
An example use case of continual summarization is demonstrated briefly in this notebook: https://github.com/microsoft/FLAML/blob/67a23b167ecad631882fc9c781a1178dc4b5cf50/notebook/autogen_agent_continual_summarization.ipynb
Could you take a look at this demo and share your comments/suggestions? I'd like to have a chat with you if you have time.

Thanks @qingyun-wu. Let me take a look at the demo and will leave some comments. I'm pretty much booked this week. Let's target to have a chat sometime late next week.


Jenkins: Test children should have the same SCM config settings as parent

Describe the bug
Recently, the option for lightweight checkout was added (#2216 ). This setting, and all scm settings, should propagate down to any child jobs that are generated. This will further reduce disk space burden on the Jenkins node. It will also eliminate any surprise differences between the parent and child jobs.

Thought about it some more while coming up with a PR. Ideally, the children should always be lightweight with hardcoded repo/branch params since the parent's scm setting are known at the time of generating the children. This does however create a race condition situation. At the moment, all children are generated with non-lightweight checkout and repo/branch params as variables. With my proposed changes, They would be hardcoded to be (default) Adopt with lightweight. This would be fine 99.99% of the time. The exception is when someone launches a child with a non-standard repo/branch, while at the same time someone is launching a child with another repo/branch (Adopt or otherwise). If they both generate the same child with different params at the same time and then both attempt to launch the children, 1 of them could receive the params from the other job's config. IMO this is an extremely low risk. I'll open my PR and we can discuss.


Please invite me to the GitHub Community Organization

Name
SuperComet329
Discord Username (if applicable)
No response
Additional Context
Hi,
I would like to contribute this community.

Invitation sent for the GitHub Organisation. Welcome to the community 🎉#
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/jaidevstudio/people
Like this

Tips for practising:
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps

Please check your email or organisation page 🙏


Support Patreon public posts

I was hoping to be able to create a feed for public Patreon posts, like at https://www.patreon.com/nextlander/posts?filters[is_public]=true. Unfortunately, when I add the feed, it actually scrapes the membership tiers on the Membership tab as posts, rather than the actual posts.

It looks like Patreon makes it difficult for bots to read the posts since they're dynamically loaded in and not always in the same order.
I made some adjustments in the extraction model (off github) so it's actually loading posts now not membership tiers but the data is noisy. Will keep hammering at it.


Adding Links for reference in every page.

Select the Day of Content
All Days
What information is missing?
Adding links for resources of each concept would make the project more user friendly.
For example, adding https://www.geeksforgeeks.org/cpp-comments/ for the comments concept in day 2.

Please assign this issue to me under GSSOC'24

Please assign this issue to me under GSSOC'24

Assigned. Don't just copy and paste AI generated code in content.


[Enhancement](broker load) enhance broker load for parquet and orc file when missing columns in …

Proposed changes
enhance broker load for parquet and orc file when missing columns in src files
Problem summary
source my_file.orc/parquet like below:
+------+------+-------------+-------+------+
| name | id   | impressions | click | cost |
+------+------+-------------+-------+------+
|    1 |    1 |           2 |  NULL |    2 |
|    4 |    4 |           8 |     8 |    8 |
|    5 |    5 |          10 |    10 |   10 |
|    3 |    3 |           6 |     6 |    6 |
|    2 |    2 |           4 |     4 |    4 |
|   11 |   11 |          22 |    22 |   22 |
+------+------+-------------+-------+------+
case 1:
create table t1 like below
CREATE TABLE t1 (
name bigint(20) NOT NULL,
id bigint(20) NOT NULL,
impressions bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总展现',
click bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总点击',
cost bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总消费'
) ENGINE=OLAP
AGGREGATE KEY(name, id)
COMMENT 'OLAP'
PARTITION BY RANGE(name)
(PARTITION p201901 VALUES [("1"), ("100")))
DISTRIBUTED BY HASH(id) BUCKETS 16
PROPERTIES (
"replication_allocation" = "tag.location.default: 3",
"in_memory" = "false",
"storage_format" = "V2",
"disable_auto_compaction" = "false"
);
when we load from source file, we wil get
+------+------+-------------+-------+------+
| name | id   | impressions | click | cost |
+------+------+-------------+-------+------+
|    1 |    1 |           2 |  NULL |    2 |
|    4 |    4 |           8 |     8 |    8 |
|    5 |    5 |          10 |    10 |   10 |
|    3 |    3 |           6 |     6 |    6 |
|    2 |    2 |           4 |     4 |    4 |
|   11 |   11 |          22 |    22 |   22 |
+------+------+-------------+-------+------+
case 2:
when create table t1 like below(column id2 is missing from src file):
CREATE TABLE t1 (
name bigint(20) NOT NULL,
id bigint(20) NOT NULL,
id2 bigint(20) NULL DEFAULT "0",
impressions bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总展现',
click bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总点击',
cost bigint(20) SUM NULL DEFAULT "0" COMMENT '用户总消费'
) ENGINE=OLAP
AGGREGATE KEY(name, id, id2)
COMMENT 'OLAP'
PARTITION BY RANGE(name)
(PARTITION p201901 VALUES [("1"), ("100")))
DISTRIBUTED BY HASH(id) BUCKETS 16
PROPERTIES (
"replication_allocation" = "tag.location.default: 3",
"in_memory" = "false",
"storage_format" = "V2",
"disable_auto_compaction" = "false"
);
after broker load from my_file.orc/parquet. we will get:
+------+------+------+-------------+-------+------+
| name | id   | id2  | impressions | click | cost |
+------+------+------+-------------+-------+------+
|    5 |    5 |    0 |           5 |     5 |    5 |
|    4 |    4 |    0 |           4 |     4 |    4 |
|   11 |   11 |    0 |          11 |    11 |   11 |
|    1 |    1 |    0 |           1 |  NULL |    1 |
|    2 |    2 |    0 |           2 |     2 |    2 |
|    3 |    3 |    0 |           3 |     3 |    3 |
+------+------+------+-------------+-------+------+
....
Note:
the case that enable_new_load_scan_node=true is not included in this pr.
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

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

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] 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: 34.95 seconds
load time: 431 seconds
storage size:<PHONE_NUMBER>4 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221114105016_clickbench_pr_45620.html


Create endpoint for viewing admin profile by email

Create an endpoint to get admin profile by email

Tasks

[ ] Implement an endpoint to handle get admin by email requests to the ../bank_app/servers/authentication dir.
[ ] Implement the queries and logic to get admin by email record from the db to the ../bank_app/db/../authentication dir.
[ ] Add any environment variable to the ../bank_app/core/config.py file.


CMS insert code preview

Is your feature request related to a problem? Please describe.
Every change on CSS/HTML via CMS insert code page can be seen only after a new deploy, specially for CSS changes it's so much annoying and may trigger lot of unnecessary deploys.
Describe the solution you'd like
Render a template preview for Layout > Insert Code, it may be easier then pages preview as it doesn't have sections d&d and no need to work with EJS (although it can be used too). Render component may get home HTML and add/replace code on </head> and </body> dynamically.
Describe alternatives you've considered
N/A
Additional context
A little related to https://github.com/ecomplus/storefront/issues/172

https://github.com/ecomplus/storefront/pull/316


Accuracy of predictions

Recover all your Prop firm loses with our forex expert advisors.
Visit our Website:  https://www.buyforexeaonline.com/
WhatsApp number:  +1(213) 557-2155