Profile Pt 3: Create Account Flow

Partial Android implementation of https://github.com/Abhiek187/ez-recipes-web/issues/312
I was able to create an account and send a verification email. Even better, I can open the link from my email in the browser and deep link back to the app with a toast confirming that my email was verified!
The fun part was learning about the KeyStore to encrypt the ID token. Unlike the KeyChain in iOS, the KeyStore isn't designed to store encrypted data. We still need to use SharedPreferences or the DataStore to store that data. The KeyStore is like KMS in that it just manages the keys used for encryption. There is EncryptedSharedPreferences, but since I'm using the DataStore instead, I wrote my own KeyStore helper object to handle encryption and decryption. Luckily, I was able to reuse a lot of the logic from the server's crypto class to get this working. There are some other parameters I can set to make the data more secure, such as requiring a secure lock screen, using biometrics, or using the StrongBox. But for a recipe app, I didn't feel it was too necessary (unless CodeQL disagrees), and I would need to configure these things on the emulator. The emulator doesn't even support hardware-backed encryption using the TEE or StrongBox anyway.
It was also interesting to learn that many of the encryption methods come from vanilla Java, but Android has implemented an AndroidKeyStore provider to connect to the device's KeyStore (some of it is even written in Rust). As such, I couldn't unit test this object, so I added it to the instrumented tests instead.
There's (still) some work to be done to make sure everything's working. After signing up, I briefly got an alert and was redirected back to the login form. Then I was able to navigate to the verify email screen and click the resend button to send the verification email. I was also planning to look into how to mask sensitive data in the logs like the user's password, but then I ran into a bug in the server that prevented me from creating an account originally. But slowly but surely, we are making progress at least!

This is the full error we're seeing with API 32 & 34:

java.security.ProviderException: Keystore key generation failed
at android.security.keystore2.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:413)
at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612)
at com.abhiek.ezrecipes.utils.Encryptor.getSecretKey(Encryptor.kt:71)
at com.abhiek.ezrecipes.utils.Encryptor.encrypt(Encryptor.kt:87)
at com.abhiek.ezrecipes.utils.EncryptorTest.encryptAndDecrypt(EncryptorTest.kt:18)
... 32 trimmed
Caused by: android.security.KeyStoreException: System error (internal Keystore code: 4 message: system/security/keystore2/src/security_level.rs:625

Caused by:
0: system/security/keystore2/src/security_level.rs:199
1: system/security/keystore2/src/security_level.rs:176: Failed to handle super encryption.
2: system/security/keystore2/src/super_key.rs:762: User ECDH key missing.
3: Error::Rc(r#SYSTEM_ERROR)) (public error code: 4 internal Keystore code: 4)
at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:353)
at android.security.KeyStoreSecurityLevel.handleExceptions(KeyStoreSecurityLevel.java:57)
at android.security.KeyStoreSecurityLevel.generateKey(KeyStoreSecurityLevel.java:145)
at android.security.keystore2.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:400)
... 37 more
It could be related to a bug with setUnlockedDeviceRequired(true):

Warning: Be careful using setUnlockedDeviceRequired(true) on Android 14 (API level 34) and lower, since the following bugs existed in Android 12 through 14:

When the user didn't have a secure lock screen, unlocked-device-required keys couldn't be generated, imported, or used.
When the user's secure lock screen was removed, all of that user's unlocked-device-required keys were automatically deleted.
Unlocking the device with a non-strong biometric, such as face on many devices, didn't re-authorize the use of unlocked-device-required keys.
Unlocking the device with a biometric didn't re-authorize the use of unlocked-device-required keys in profiles that share their parent user's lock.

These issues are fixed in Android 15, so apps can avoid them by using setUnlockedDeviceRequired(true) only on Android 15 and higher. Apps that use both setUnlockedDeviceRequired(true) and setUserAuthenticationRequired(true) are unaffected by the first two issues, since the first two issues describe expected behavior for setUserAuthenticationRequired(true).


SW-1357 Add latest observed quantity/time to v2 API

In order to display a warning to the user when a change in the date of a
withdrawal would affect the remaining quantity of an accession, the frontend
code needs to know the time of the most recent user-observed accession
quantity. That timestamp won't be shown to users, just used by the frontend code.
Add latestObservedQuantity and latestObservedTime fields to the v2
accession response payloads. These are computed values, so they're not included
in the request payloads.
The v2 API doesn't support directly updating the remaining quantity yet, so for
now, these two new fields are always calculated from the v1 quantity, similarly
to the way we do an on-the-fly mapping of v1 accession states to v2 ones.
Subsequent changes will start to introduce the write path for v2-style
quantities.

Current dependencies on/for this PR:

main

PR #576   👈

This comment was auto-generated by Graphite.

Failure is because of a precision mismatch between PostgreSQL and Linux timestamps; will fix.

Oops, I typo-d the issue number for this. Should be SW-1537.


Sum of Aggregate active/Recovered cases drop between 24/3/20 and 25/3/20

As per screenshot, the number of active cases dramatically drops between the above dates from 190K to 105K. Recovered Metric also drops significantly across these dates:

I understand this might be because of the JHU Data set change to remove Recovered data from their dataset. They have since reinstated this datafeed:
https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series
Im hoping to move our monitor (http://fdcnt001.uksouth.cloudapp.azure.com:8080/d/H7a-pFmRz/covid-19?orgId=1&refresh=1h) from using the JHU dataset to this feed in the near future as the additional datasets give us more options to normalise for Population, and the data is just generally cleaner! This and #405 are the last blockers stopping me from making this change :) For Clarity im using the Timeseries-tidy csv file.

Can you suggest a fix?

Probably beyond my capability TBH. My best guess would be that this lines up with when JHU 'Retired' Recovered datasets, they have since reinstated them with a new name here so it could just be a case of re establishing the previous scraper?:
https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series

This seems to be fixed since re instating the JHU Scraper


PROTOBUF_NAMESPACE_OPEN

What version of gRPC and what language are you using?
1.46.3
What operating system (Linux, Windows,...) and version?
Ubuntu 16.04
What runtime / compiler are you using (e.g. python version or version of gcc)
GCC
What did you do?
Commented out the lines:
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protocol which is
#error incompatible with your Protocol Buffer headers. Please update
#error headers.
#endif
#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of the protocol which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protocol.
#endif
#include <google/protobuf/port_undef.inc>
What did you expect to see?
A success fulcompilation
What did you see instead?
error: ‘PROTOBUF_NAMESPACE_OPEN’ does not name a type
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?
After commented project is ok.

This seems to belong to the protobuf repository


Request flatpak setup on Linux Mint 19.2

According to flatpak documentation, flatpak setup is not required in Linux Mint >=18.3 but App-Outlet request me to setup flatpak to install Peek in Linux Mint 19.2.
I installed App-Outlet (=1.1.0) using snap.

Snap packages are not able to install packages until the snapcrafters permit us to publish apps in --classic confinement.
We already requested this permission and we are waiting for their verdict as you can see here.
https://forum.snapcraft.io/t/classic-confinement-for-app-outlet/13495
If they don't allow us to use this confinement, unfortunately, snap will not able to install packages.
While we wait for the response, we recommend you to use the versions available here:
https://github.com/app-outlet/app-outlet/releases/latest
Thanks for using App Outlet.


High CPU usage when broker leader fails over

When the broker leader fails over to another node, the data nodes get stuck in some kind of redirect loop here: https://github.com/influxdb/influxdb/blob/master/messaging/client.go#L334
This is causing very high CPU usage.  The only way I've been able to mitigate it is by forcing the brokers to failover again so that the original leader is the leader again and restarting the data nodes.

No longer applicable in new design.


Fixed Bugs in the code and instructions in the User Guide

Resolved issues #168  #163 #158 #154 #152 #151 #147 #126
For issue #156 I have updated the user guide on the usage of the View all menu command
Made changes to the User Guide suggested based on the previous pr review

Coverage remained the same at 56.7% when pulling 0d6fc9594ff98940871678e1c1784a8b5391981f on SalsabilTasnia:version3 into f32dce64fbfbb543dec660df3deca223995e1414 on CS2113-AY1819S1-F09-2:master.

You should add the 2 decimal digits restriction in the user guide

So what does viewallmenu do?
It does not seem to be useful and user mistook it with listmenu
Or at least:
The key word viewall is used for viewing private details of a person in AB, and since menu don't hide its details, you should switch to the keyword viewmenu

I am not changing this part since I am planning to get rid of viewallmenu command. I have not done it in this pr but I will do that in the following pr.


Add support for password protecting excel files

Please add support for password protecting an excel file when run via Azure automation PowerShell runbook (or any non-excel installed environment).
For example: ability to do the below without invoking COM objects.
$exportlocation = $env:TEMP
$date = Get-Date -Format 'yyyyMMdd'
$Exportfile=$exportlocation\SQLqueryresults-$date.xlsx
$ExcelObject=New-Object -ComObject excel.application
$ExcelObject.visible=$true
$ExcelObject.DisplayAlerts = $false
#Open Excel file
$Workbook = $ExcelObject.Workbooks.Open($Exportfile)
#Save Excel with password
$Workbook.SaveAs($Exportfile,51,"password",$null,$False,$False,1,2)

Does this work for your scenario? Export-Excel -Password

Thanks Doug. I have tested with Export-Excel -Password and it works perfectly for scripts run via Azure automation PowerShell runbook. Sorry I didn't see this switch earlier.


central plasma_store as index to track PIDs, namespaces of other stores

I am very uncomfortable using pkill to replace instances - it's not safe at all. Better to have a central index plasma_store and use it to reference values in other plasma_stores, whether they be temporary (for brain.resize() or stable (for new namespaces)

solved by #19 though without forcing another underlying instance.


Applied fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

Coverage remained the same at 100.0% when pulling 1c5ad73b116ca2e937a6d7a2e82c6c6383f427c3 on analysis-zOvPkP into d8b498a1d7b959d0743b5ecbbdfad5fa4b973210 on master.


Authorized addresses

To comply with KYC and AML rules, it should be possible to create chains that only allow authorized addresses to transfer coins. To make this work we need:

[ ] A (hardcoded at first) list of authorization services that are allowed to authorize new addresses.
[ ] A special transaction to authorize an address
[ ] Validate if the unlockhashes of coinoutputs are authorized addresses
[ ] Send the change of a transaction to the unlockhash from the coininputs

Some initial thoughts:

We will need to keep a list of authorized addresses. Adding a bucket in the consensus set DB makes the most sense to me

The address(es) which receive coins and blockstakes from the genesis block are regular addresses, and therefore need to be authorized:

Either we hardcode these addresses to be authorized
We add the validation transactions for these addresses into the genesis block
Or we accept that the addresses we send things to in the genesis block are authorized, and add them to the list of authorized addresses

The latter might be the best option as it reduces the amount of hardcoding compared to the first option. As for the second option, we might want some time before we consider an authorization txn to be confirmed, see the next point

Since authorizing an address is a txn, it is also susceptible to forks in the chain. So we should probably also respect a small maturity period for these kind of txns.

Building on that, we can just let the transactionpool  get the list of authorized addresses from the consensusset. If there is no maturity period, an authorizing txn could be in the same block as a payment txn to said address, which would require extensive handling insde the txnpool. Also note that since the block size is limited, it would theoretically be possible in this scenario that an authorizing txn is not included in a block, but a payment to said address is, which would make that block invalid.

Depending on how we structure an authorization txn, we will need to add support for this in the explorer. Though this is lower priority imo.

...

Since some initial configs will need to be decided upon when the chain is started, it might be best to also take a look at #53 while all of this is going on.

I thought we were going to use one or multiple services to provide the authorization of addresses? Is this not the case?

@LeeSmet valid ints you have there

The address(es) which receive coins and blockstakes from the genesis block are regular addresses, and therefore need to be authorized:
hardcode these addresses to be authorized
-maturity period for these kind of txns: really good point,
to be really safe, 144 blocks would be ideal but very inpractical.
since the blockstake protocol is less vulnerable to attacks from the outside, let's add a todo for now, I think every blokcreator node will have the same software and rules in the beginning, let's add a backlog issue to add some maturing(.
and indeed, an authorized address tx needs to be in the blockchain to keep the txpool handling easier.

@GlenDC indeed, a list of public keys of authorization services will do for now

Leaving this mostly here for myself
more technical overview:

Authorized addresses are stored in a bucket in the consensusset, with the address itself as key and the txnID where the address got validated as the value (Not sure if this is needed, we'll see later on if this value is required or not)
Since we want a maturity delay for the authorized addresses, the notion of delayed coin outputs from minerfees can be followed.
Validation rules which need to be implemented in the consensusset and txnpool modules: for every txn/block, just check if the addresses of the coinouputs/blockstakeoutputs are in the consensusset authorized addresses bucket.
The TransactionBuilder will need to be updated: Extra checks need to be added to the functions which add coinoutputs / blockstakeoutputs so ensure the addresses in them are already authorized.
The Wallet must be able to return addresses which are not yet authorized for them to be passed on and become authorized later.

If the TransactionBuilder is further modified to sent any coin/blockstake overflow back to the original address the outputs originated from, the Wallet should not need any modification.
Sidenote:

The BlockCreator does not need to be updated: it sends the block fee to the address which is also associated with the UBSO it used to create the block. And since every txn in the system must adhere to the additional validation rules about the authorized addresses, we know that this address is necessarily authorized already

Structural:
In order to support the authorized addresses (mainly in the TransactionBuilder, possibly in the Wallet):

The respective functions must be modified to contain some branching logic that checks if a (probably global) variable is set to support authorized addresses, and if so check if the target address is authorized.
A new AuthorizedAddressXXX struct is created which contains the original XXX struct as an anonymous field, thus exposing the functions on the new struct, and allowing to only reimplement the functions which require modified behaviour.
Example:

type AuthorizedAddressTransactionBuilder struct {
  TransactionBuilder
}
// interface must be modified to also allow an error to be returned
func (txb AuthorizedAddressTransactionBuilder) AddCoinOutput(output types.CoinOutput) (index uint64,
 err error) {
// validate output.UnlockHash is in the authorized addresses bucket...
// remainder of the function is a copy of the original struct
}
...

A new AuthorizedAddressXXX struct is created which contains the original XXX struct, but not as an anonymous field. This way all functions need to be proxied to the internal struct, but we can simply add validation rules before doing so, thus not needing to copy the remainder of the function and avoiding duplicate code produced by the previous approach
Example:

type AuthorizedAddressTransactionBuilder struct {
  itb TransactionBuilder
}
// interface must be modified to also allow an error to be returned
func (txb AuthorizedAddressTransactionBuilder) AddCoinOutput(output types.CoinOutput) (index uint64,
 err error) {
// validate output.UnlockHash is in the authorized addresses bucket...
...
// address is authorized, continue
return txb.itb.AddCoinOutput(output)
}

While I don't like modifying the existing code with checks on global variables, it doesn't produce the (small amount of) duplicate code (2), and doesn't require adding 3 lines of code for every function defined by the interface (3)
To be determined:

What does an authorizing transaction look like?
Exactly how will the AuthorizedAddresses flag be defined? global var somewhere? variable stored inside of the modules when they are initialized?...
...

Current state:

The transactionpool checks the output addresses and rejects unauthorized addresses
The consensusset checks the output addresses of the transactions in a block and rejects unauthorized addresses.
Currently, in the block validator, the authorized addresses are checked before the block timestamp. As a result, a block in the future with unauthorized addresses might be rejected even though these addresses might be valid at the time were the block would be reconsidered. I think this is expected behaviour, since ideally every node has the same consensus set, and therefore the originating node should already have rejected this block. If this is a problem, we can simply move the check down the list.
The transaction builder respends to the first input address. This address is necessarily authorized (else it could not have an UTXO in the first place).
The transaction builder does not validate the output addresses that are being added, it only ensures the respend address. Because I see no reason to check this here. It would require a change to the inteface, and the transactionpool eventually is rejected by the transactionpool anyway. IF we decide to add a check here, i'd feel it be more appropriate to add it on the api endpoint itself and validate it even before creating a transactionbuilder.

What still needs to be done

Define exactly how a transaction which authorized an address looks
Add support to recognize such an address and eventually add it to the authorized addresses in the consensus (much like the delayed miner fees)
Add unit tests

Also, right now I just added some variables in the types package which define if authorized addresses are enabled and what the initial addresses are. This should probably be changed though I feel this belongs more to #53

blocked by #527

unblocked

best to implement this as an extension

Will implement it as an extension indeed, shipped with rivine. will be the authcointx (Authorised Coin Transactions) extension. This implies that the standard transaction (0x01) will also be controlled by this component.
On a high level our extension's controller will have 3 transfers (for now):

AuthAddressUpdate, contains the following properties:

AuthAddresses: a list of addresses to auth
DeAuthAddresses: a list of addresses to deauth
Signature by the authorized condition at the time of transfer

AuthConditionUpdate, contains the following properties:

Condition: the new condition that is authorized from than on
Signature by the authorized condition at the time of transfer (using the previous condition)

AuthStandardTransfer: the 0x01 transfer, but with added validation for coin inputs/outputs (only authorized addresses are allowed to send or receive coins)

In a second version (will require an entire reset of the goldchain testnet) I would like to turn AuthStandardTransfer into an AuthCoinTransfer and let it only be used for coins. But this first requires that we work issues like #514 completely out. This can be done also in the 2nd version of the goldchain testnet.

Extension is implemented in 62995eafcbdb549480f2b87dfa6d0f19b210a879 and 111f59f1101298b7064d30a4994ac223e68c04ca.
Next steps:

[ ] add encode/decode unit tests;
[ ] complete documentation (together with an auth flowgraph diagram)
[ ] integrate it in goldchain, manually test it and ensure it works

Tests and documentation is added in 16b6e480cebd45927f8756962c142df7a1bf77c6.


revamp locking & reserving

Description
This PR is our initial stab at #12918, which involves revisiting the definitions of free, locked, and reserved, especially as these concepts relate to voting, aucitions/crowdloans, and staking. In particular reserving will be replaced with "holding" via a type-safe HoldReason, and
This will entail:

[ ] generic #[pallet::composite] syntax for definining composite enums that can then be used at the runtime level
[ ] HoldReason / type-safe reserve/hold identifier via #[pallet::composite]
[ ] FreezeReason / type-safe lock/freeze identifier via #[pallet::composite]
[ ] TBD, see original issue #12918

Related Issued

#12918

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2248387

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2248373

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2248372

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2284473

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2284472

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2284487


about downloading checkpoints

i can't download your checkpoints from provided links, could you provide other links.
thanks a lot!

Hi @InceptionV5
I've updated the download_models.sh, could you try with the new links?

yes, it works.
thansk @YoungXIAO13


Update install from source instructions?

After merging PR #44 CMakeLists.txt is not longer present and running cmake throws an error:
CMake Error: The source directory "~/src/mamba/include" does not appear to contain CMakeLists.txt.

Hi, yep that's true. I need to fix the readme.
The preferred way of installing is running
pip install -e . # for dev installation
pip install . # for non dev installation

# or

python -m pip install -e . # etc (or use setup.py directly)

that's also how the package for conda-forge is built.

Thanks! After installing  gcc_linux-64 and gxx_linux-64 it compiled :)


How to use in android projects

What is needed to use this library?

A code to integrate into. That's it.

very cool...  thankyou

Can you please describe it?

Thank you very much…

@dharmendrajadon This is just a curated list. If you want to integrate anything from this list in your project. Navigate to the projects repository by clicking on the library name in de list. One of the requirements is mostly having a gradle compatible project. Then on the repository you mostly find a gradle line such as com.my.packagename:libraryname:1.0.0

I got it. Thank You @DanielMartinus

不知道


Necessary Addition To Pom File For Compiling The Code

I had to add the following lines to the pom file in order for the code to compile:
<properties>
        <maven.compiler.source>20</maven.compiler.source>
        <maven.compiler.target>20</maven.compiler.target>
</properties>

I'm not sure what changes have been made but when I pulled the main branch today I could not compile without this addition. Are we sure the pom file is correctly configured? May be related to change https://github.com/0-Gixty-0/Grupp-11-OOPP/commit/068d0959deaad92f9dccb90c17de6591d807db5f and 1d2ccb2e06153daba8be55f3797398c9b67c1971

Strange, compiles fine for me without it, probably development environment related since we use the same OS.
<properties>
        <maven.compiler.source>20</maven.compiler.source>
        <maven.compiler.target>20</maven.compiler.target>
</properties>

This is just telling the compiler to use Java 20 to compile and run the application.
I removed the properties before because it was set to Java 1.8 which I thought was a weird ChatGPT artifact or something. But other than that I'm pretty confident the POM file isn't configured incorrectly.
Leaving it up to you to close this @0-Gixty-0

Ok this addition made it impossible for me to compile the code since I'm using JDK 17 since Java is backwardscompatible im going to push it down to 17.


Button: expose a 'ref' prop to allow focusing on the element

Summary
In order to facilitate programmatically focusing on elements, we're asking that the Button component provides a ref prop that allows us to call .focus() on the html element.

Clarify if you are asking for both design and development, or just design, or just development.

Just development.
Justification

Provide the business reasons for this request.

This is critical for a11y work - see this checkpoint for more info: https://www.ibm.com/able/guidelines/ci162/focus_order.html
Essentially, if the user exits from, say, a modal, we need to take the focus back to what triggered the modal. (See also https://www.ibm.com/able/guidelines/ci162/focus_order.html#PointOfRegard)
"Must have" functionality

Highlight any "must have" needs and functionality for the request.

Must be able to use refs to set focus on the Button.
Specific timeline issues / requests

Do you want this work within a specific time period? Is it related to an upcoming release?

We committed to having all a11y work complete by January 31st.
NB: The Carbon team will try to work with your timeline, but it's not guaranteed. The earlier you make a request in advance of a desired delivery date, the better!

Closing this for now, feel free to comment or make another issue if this still occurs! 👍


refactor: move getNodeAccountMap from constants to helpers

Description
This pull request changes the following:

move getNodeAccountMap from constants to helpers
remove lint and IDE warnings
remove unused constants

Related Issues

Closes #373
required by #364

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Word Wrap isn't working on very long lines.

VSCode Version: .10.11
OS Version: Win 8 (6.1.7601)

Steps to Reproduce:

open a .txt file where the lines are wrapping.  The lines are very long (between 1,000 chars and 1,500 chars).
click on toggle word wrap.  you'll see nothing happens whereas I'd expect the wrapping to stop happening.

This is caused by some performance protection code the editor has. If a file is "dominated by long lines", then word wrapping is always chosen. You can use the editor.wrappingColumn setting and use a large number to force no wrapping.

Using large number in editor.wrappingColumn doesn't work. If I use a large number (above 300; e.g. 1000 or 30000) for this setting, lines are always wrapped and Alt+Z (or menu/palette command) doesn't do anything. I think that the problem occurs if you have lines longer than 300 characters in the file you're editing (300 is the default editor.wrappingColumn setting). Whatever setting (above 300) I use here, I can't unwrap lines once they're wrapped.
The only thing which partially works is "editor.wrappingColumn": -1 (I think this setting means "never wrap"). In this case, lines (including very long lines) are always unwrapped when you start the editor, but as soon as you wrap them, they usually remain wrapped (that is, Alt+Z only works the first time, to wrap the lines from the initial, unwrapped state). In some cases, you can unwrap them again, but any lines longer than 300 characters remain wrapped at column 300. I would say that this default number (300) is still somehow involved somewhere.
The version I'm using is 0.10.11 and all this is easy to reproduce. I'm using VSCode for making manual edits of some generated scripts with very long lines and would be quite happy to have the ability to wrap and unwrap lines with 500+ characters. Another use case would be viewing and searching log files which often have very long lines (with VSCode you can open, view and search entire directory tree of such log files).

@bpasero For verification please open a file dominated by long lines and toggle word wrap.


default config doesnt generate

When you first install the bukkit version, the default config doesnt generate

Can confirm. While this might be intentional, writing a config by hand is really a pain. Please fix.

Can confirm. While this might be intentional, writing a config by hand is really a pain. Please fix.

Happening to me too.

Happening to me too.

Thanks for the report, I'll make an internal ticket to adress this issue!

Hey, I just fixed that issue in 1.2.3


protoc-3.6.0-freebsd-x86_64

Hi @kjopek
Interested in making protoc-3.6.0-freebsd-x86_64 available?

Pull request waits for approval :)

Thanks, merged, but the file is very large. Not stripped?

Geez, you are right. Give me 2 minutes :)

Thanks, looks good now

Released protoc-jar 3.6.0


Merge documentation cleanup to 4.1-release and republish docs

Cherry-pick PR #850 #854 to 4.1-release

I guess we only need to republish the website. I'll do it

There are documentation changes on master that relate to new features that are not in 4.1.
E.g. @1chandu just landed doc changes relating to the new auto highlighting props.


Upgrade versions closer to the latest code

Much of the customizations have been merged into the Open SDG project, so this upgrades to the latest versions. There is still one branch needed (see the "input-alteration-context" branch in this PR) but that will soon be unnecessary also.

@jah-ky @jyaruel @hugo-e-pigott Is it OK if we merge this? This will help keep the platform current and simplify the documentation I'm writing up.

Hi Brock, that would be great, merge it so that it will update the platform and also for the documentation purposes.


Elements not deleted when skipped by transformer

I'm indexing a few different types of entries that may or may not contain certain fields. Currently, I have a few possible criteria whereby I don't want to index an entry, which is done by returning an empty array from the transformer.
The expected behaviour is that items are removed from the index when it changes so it falls within any of the criteria. However, it seems that skipping an entry from the transformer only stops Scout from updating it. It seems that to remove an item from the index, the only way (other than manually calling the deIndex method), is to make sure it doesn't fall within the criteria anymore, which is difficult in my case.
Is this as-designed?

Hey @marten-wirelab, not sure if you're still active and using Scout, but I finally got around to addressing this through #281.
Could you follow along there and there the latest beta release?


Validating a nested attribute against the 'unique:table' rule would throw a QueryException

Laravel Version: 5.7.12
PHP Version: 7.2.9
Database Driver & Version: mysqlnd 5.0.12-dev

Description:
From the docs:
"A Note On Nested Attributes
If your HTTP request contains 'nested' parameters, you may specify them in your validation rules using 'dot' syntax".
Applying the unique:table_name rule on a nested parameter throws a \Illuminate\Database\QueryException.
Steps To Reproduce:
dd($request->all());
Received parameters:
array:3 [
  "role" => array:2 [
    "name" => "my role"
    "active" => 1
  ]
  "permissions" => array:1 [
    0 => array:4 [
      "module" => "my module"
      "view" => 1
      "edit" => 1
      "delete" => 1
    ]
  ]
  "token" => "random hash"
]

Validating the name attribute:
$request->validate(['role.name' => 'required|unique:roles']);
Exception:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'role.name' in 'where clause' (SQL: select count(*) as aggregate from `roles` where `role`.`name` = my role)

The dot composition 'role.name' in this case is not parsed accordingly and passed entirely as one sql query parameter which mysql interpret as the column name 'role.name'.

From the documentation:

If the column option is not specified, the field name will be used.

In your case, this is role.name. Specify a custom column name:
$request->validate(['role.name' => 'required|unique:roles,name']);

Thanks for helping @staudenmeir.

@staudenmeir Thank you! I missed that 😅 I clearly need to review the docs 👍


nztree work with openlayers is slow

Version
1.1.0
Environment
win10 chrome68
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-m1gmr6
Steps to reproduce
pan and zoom the map
What is expected?
map can pan and zoom fluency
What is actually happening?
map is very slow,very high cpu
Other?
nztree node number the less the better ,when more than 100 ,can not pan and zoom

nz-tree won't affect your cpu usage, and your demo is working fine. you can describe your problem with more detail, chinese is ok! (tips: do not use addChildren every loop)

你试一下，5个节点跟5000个有什么区别，5个时地图拖动很流畅，5000个卡爆了，地图都拖动不了，我的项目上目前有1000多个节点，拖一下地图cpu就50%以上，把树去掉，就很流畅

@MagicWang 这是Angular渲染机制，即使你使用简单的tr遍历5000条数据渲染，拖拽仍然会卡顿 (issue)，不建议一次性全部展示数千条数据，可以采用滚动加载方式，只加载可见区域暂时规避。

@MagicWang
https://blog.thoughtram.io/angular/2017/02/02/making-your-angular-app-fast.html

试过了__Zone_disable_requestAnimationFrame，onpush跟detach，效果都不大，看来只能改数据加载了

same with mapboxGL js


Option to have auto check for new versions of installed packages and notify user

Basically I'm looking for a feature like windows update. I get notified, I can set it up to automatically update my packages or just notify me of available updates and then choose to run the updates.

Based on the feature set that is coming with Chocolatey, adding this feature to ChocolateyGUI doesn't make much sense.  This functionality will be in Chocolatey, and doesn't need to be in ChocolateyGUI.

I didn't find anything about this feature in chocolatey. Do you know if it's still planned?
If relevant, I propose to work on this in ChocolateyGui.


fix: Error handling for undefined datasource in API Authentication

PR fixes issues with reading userPermissions value from an undefined datasource object.
Fixes #18876

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.
Delete anything that is not important

Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=3ee5efb


Fix bulleted lists in support robots page

rst format wanted a blank line before the first bullet item

thanks!

Weird...it is rendering correctly in github, but while the spacing is now correct on controls.ros.org, there aren't actual bullets :man_shrugging:


[SPARK-34807][SQL] Move TransposeWindow before Operator push down

What changes were proposed in this pull request?
This pr move TransposeWindow before Operator push down to make PushDownPredicates push down more cases. For example:
spark.range(10).selectExpr("id AS a", "id AS b", "id AS c", "id AS d").createTempView("t1")
val df = spark.sql(
  """
    |SELECT *
    |  FROM (
    |    SELECT b,
    |      sum(d) OVER (PARTITION BY a, b),
    |      rank() OVER (PARTITION BY a ORDER BY c)
    |    FROM t1
    |  ) v1
    |WHERE b = 2
    |""".stripMargin).explain(true)

Before this pr:
== Optimized Logical Plan ==
Project [b#221L, sum(d) OVER (PARTITION BY a, b ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)#231L, RANK() OVER (PARTITION BY a ORDER BY c ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)#232]
+- Filter (b#221L = 2)
   +- Window [rank(c#222L) windowspecdefinition(a#220L, c#222L ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS RANK() OVER (PARTITION BY a ORDER BY c ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)#232], [a#220L], [c#222L ASC NULLS FIRST]
      +- Project [b#221L, a#220L, c#222L, sum(d) OVER (PARTITION BY a, b ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)#231L]
         +- Window [sum(d#223L) windowspecdefinition(a#220L, b#221L, specifiedwindowframe(RowFrame, unboundedpreceding$(), unboundedfollowing$())) AS sum(d) OVER (PARTITION BY a, b ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)#231L], [a#220L, b#221L]
            +- Project [id#218L AS b#221L, id#218L AS d#223L, id#218L AS a#220L, id#218L AS c#222L]
               +- Range (0, 10, step=1, splits=Some(2))

After this pr:
== Optimized Logical Plan ==
Project [b#221L, sum(d) OVER (PARTITION BY a, b ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)#231L, RANK() OVER (PARTITION BY a ORDER BY c ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)#232]
+- Window [sum(d#223L) windowspecdefinition(a#220L, b#221L, specifiedwindowframe(RowFrame, unboundedpreceding$(), unboundedfollowing$())) AS sum(d) OVER (PARTITION BY a, b ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)#231L], [a#220L, b#221L]
   +- Project [b#221L, d#223L, a#220L, RANK() OVER (PARTITION BY a ORDER BY c ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)#232]
      +- Filter (b#221L = 2)
         +- Window [rank(c#222L) windowspecdefinition(a#220L, c#222L ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS RANK() OVER (PARTITION BY a ORDER BY c ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)#232], [a#220L], [c#222L ASC NULLS FIRST]
            +- Project [id#218L AS b#221L, id#218L AS d#223L, id#218L AS a#220L, id#218L AS c#222L]
               +- Range (0, 10, step=1, splits=Some(2))

Why are the changes needed?
Improve query performance.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Unit test.

Test build #136281 has started for PR 31907 at commit 4622aeb.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40863/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40863/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40863/

Test build #136282 has started for PR 31907 at commit 1dc44de.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40864/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40864/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40864/

Test build #136281 has finished for PR 31907 at commit 4622aeb.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136281/

Test build #136282 has finished for PR 31907 at commit 1dc44de.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136282/

Reordering the optimizers seems like a bit of a band-aid fix.
If I'm not mistaken the issue is similar to the one I tried to fix in #31677. The CollapseWindow rule did not work with Project nodes between windows. It seems, that the TransposeWindow has a similar problem.
@cloud-fan did comment (https://github.com/apache/spark/pull/31677#issuecomment-800894675), that perhaps we should merge Project and Window nodes. But that seems like a major refacto of everything related to the logical Window nodes.

@wangyum, I'll answer your question (https://github.com/apache/spark/pull/31677#pullrequestreview-616975279) here.
Just to clarify - the #31677 does not fix the issue, you are trying to fix here. But they are very similar. I improved the CollapseWindow,  the TransposeWindow can be improved in a similar way to fix your issue.
I tried a quick change:
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
index 3e3550d5da..e629ccc268 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
@@ -991,13 +991,24 @@ object TransposeWindow extends Rule[LogicalPlan] {
     })
   }

+  private def windowsCompatible(w1: Window, w2: Window): Boolean = {
+    w1.references.intersect(w2.windowOutputSet).isEmpty &&
+      w1.expressions.forall(_.deterministic) &&
+      w2.expressions.forall(_.deterministic) &&
+      compatiblePartitions(w1.partitionSpec, w2.partitionSpec)
+  }
+
   def apply(plan: LogicalPlan): LogicalPlan = plan transformUp {
-    case w1 @ Window(we1, ps1, os1, w2 @ Window(we2, ps2, os2, grandChild))
-        if w1.references.intersect(w2.windowOutputSet).isEmpty &&
-           w1.expressions.forall(_.deterministic) &&
-           w2.expressions.forall(_.deterministic) &&
-           compatiblePartitions(ps1, ps2) =>
-      Project(w1.output, Window(we2, ps2, os2, Window(we1, ps1, os1, grandChild)))
+    case w1 @ Window(_, _, _, w2 @ Window(_, _, _, grandChild))
+        if windowsCompatible(w1, w2) =>
+      Project(w1.output, w2.copy(child = w1.copy(child = grandChild)))
+
+    case w1 @ Window(_, _, _, Project(pl, w2 @ Window(_, _, _, grandChild)))
+      if windowsCompatible(w1, w2) && w1.references.subsetOf(grandChild.outputSet) =>
+      Project(
+        pl ++ w1.windowOutputSet,
+        w2.copy(child = w1.copy(child = grandChild))
+      )
   }
 }

And it changes the TPC-DS q47 and TPC-DS q57 in the same way your PR does, but I find this change to be more robust.

Test build #136354 has started for PR 31907 at commit 0843b6b.

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40938/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40938/

Test build #136354 has finished for PR 31907 at commit 0843b6b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136354/

@tanelk Could you create pr for your changes: https://github.com/apache/spark/pull/31907#issuecomment-803521361. I'm close this pr.


Initiate 3.2 schema and handle $ref for contact and license

Initiate the 3.2 schema  as a copy of 3.1
switch label  from 3.1 to 3.2
introduce a first changes with supporting $ref for licence and for contact for handling the issues here
https://github.com/OAI/OpenAPI-Specification/issues/3569
https://github.com/OAI/OpenAPI-Specification/issues/3552
changed are done step by step
tell me if i should update the yaml or the json ? was not sure
should we put it also inside the 3.1 ? , was not sure following semantic versionning  it depends

@LasneF I'm not sure what the process is for setting up the 3.2 schema (usually we've done that at the very end of the process for a given release).  But changes to the spec cannot be made in the schema.  They must start in the spec, preferably after enough discussion in issues so that all we discuss in the PR is whether it implements what we agreed to in the issue correctly.  That last is not a hard-and-fast rule, and sometimes a PR is easier.  But we're already struggling with getting the PR backlog down to something manageable, so doing as much work in issues as possible will help us get back to a PR list that is only active items.

@LasneF since this includes changes that can't be initiated on schemas, I'm going to close this PR.  I'd suggest asking on Slack (on the #spec channel) what the process is for setting up the schema for a new minor release, because I can't remember what it is other than that it was not what I would expect.  But we should resolve the process issue on slack or in issues before opening PRs.  Otherwise the PRs hang around with no one knowing what to do about them.

3.2 should be a descendant of 3.1.1, not 3.1.0.

@karenetheridge there isn't a separate 3.1.1 schema, all patch releases on a minor release use the same schema (since you can't change anything in a patch release that would change the schema anyway).


My validation accuracy is always increasing or decreasing in steps of 0.2

Please choose an appropriate template from the "Template" drop-down above.
Hi, I was working on node classification using GraphSAGE. I have 65 nodes, 30 for training and 30 for validation. My validation accuracy is always 0.2,0.4,0.6 or 0.8 ever after tuning the hyperparameters. Is there any reason for this ?
batch_size = 10
num_samples = [5, 2]
generator = GraphSAGENodeGenerator(Gs, batch_size, num_samples)
train_gen = generator.flow(train_subjects.index, train_targets, shuffle=True)
graphsage_model = GraphSAGE(
    layer_sizes=[32, 32], generator=generator, bias=True, dropout=0.5,
)
x_inp, x_out = graphsage_model.in_out_tensors()
prediction = layers.Dense(units=train_targets.shape[1], activation="softmax")(x_out)
model = Model(inputs=x_inp, outputs=prediction)

model.compile(optimizer=optimizers.Adam(lr=0.005),loss=losses.categorical_crossentropy,metrics=["acc"],)

from tensorflow.keras.callbacks import EarlyStopping

es_callback = EarlyStopping(monitor="val_acc", patience=50, restore_best_weights=True)
test_gen = generator.flow(test_subjects.index, test_targets)
history = model.fit(
    train_gen, epochs=200, validation_data=test_gen, verbose=1, shuffle=False, class_weight=class_weights, callbacks=[es_callback]
)

Thanks for getting in touch, and thanks for providing code in your issue. Highly quantised accuracy typically means a small set of labelled data. As you may've deduced, your plot stepping by 0.2 suggests that there's only 5 validation examples, meaning the only possible accuracies are multiples of 1/5 (0, 0.2, 0.4, ...). Could you confirm the size/contents of test_subjects and test_targets, double checking that your splitting process has correctly got the 30 nodes and labels for them?

Thanks for your quick reply. That was indeed the issue!

Great!


Remove ez_setup from documentation

Summary of changes

Split up previous "Installing setuptools" section into the following:

Use link to pip installation instead of Easy install instructions
Move "Custom installation instructions" to documentation for creating virtual environments.

Closes #1540
Pull Request Checklist

[ ] Changes have tests
[ ] News fragment added in changelog.d. See documentation for details

Oh actually, also this needs a changelog.


Show output from: Build - Run Error CS1061 and CS0246

Please advise, Attempted this Games ASP.net application five times, just in case, but the errors persist.
1>-- Build started: Project: WebApplication1, Configuration: Debug Any CPU --
1>Program.cs(19,46,19,57): error CS1061: 'IServiceProvider' does not contain a definition for 'CreateScope' and no accessible extension method 'CreateScope' accepting a first argument of type 'IServiceProvider' could be found (are you missing a using directive or an assembly reference?)
1>Program.cs(25,63,25,75): error CS0246: The type or namespace name 'AppDbContext' could not be found (are you missing a using directive or an assembly reference?)
1>Done building project "WebApplication1.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
One or more compilation references are missing. Ensure that your project is referencing 'Microsoft.NET.Sdk.Web' and the 'PreserveCompilationContext' property is not set to false.

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

ID: 7f156aaa-839a-b9bb-5912-b3a537dfdb36
Version Independent ID: 51888076-400e-0a51-8ae4-6fe745829436
Content: Step 3: Working with Data in Your ASP.NET Core App - Visual Studio
Content Source: docs/get-started/csharp/tutorial-aspnet-core-ef-step-03.md
Product: visual-studio-windows
Technology: vs-ide-general
GitHub Login: @ardalis
Microsoft Alias: tglee

I had to add the following 2 use statements to Program.cs
using WebApp1.Models;   (where WebApp1 is your project name)_
using Microsoft.Extensions.DependencyInjection;
I also had to change schoolContext to AppDBContext in the following line but based on your error you may have already done that
var context = services.GetRequiredService();
to
var context = services.GetRequiredService();

+1 the text still says SchoolContext when itshould be AppDbContext
is nobody monitoring these important pages ?

Thanks - we have now updated this topic to address these issues.


ROX-9892: Negate image signature verification policy criteria

Description
Implement a custom query builder negating the policy group.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on stackrox/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

With this change, you will need to make changes to the violation message printer. Especially when there are multiple messages.


detect retina to avoid requesting unnecessary high res images

also add retina for omniscale too (it was a bit blurry on my phone)
(it seems intellij ignores the default formatting -> fixed)

Nice this looks better now also on my phone :+1:


What happenned to FlowRow? [0.3.0]

I've just updated to 0.3.0 and code stopped compiling.
After updating everything I've found myself without FlowRow which one is the current alternative to it?

FlowRow was deprecated in https://android-review.googlesource.com/c/platform/frameworks/support/+/1521704 and removed in https://android-review.googlesource.com/c/platform/frameworks/support/+/1575163
This is not specific to the desktop version, but rather at the foundation layer.

Do we have a known replacement?

Since this is a part of the foundation layer, probably best asked on the main Compose bug tracker.

Thanks!

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Add puter

https://github.com/HeyPuter/puter

E-commerce
https://github.com/evershopcommerce/evershop


opacity slider while using Aero and transparency mode on windows doesn't affect chat view

exactly as title says
windows 10 LTSC 19044
latest build from windows store
--

I think this is fixed


WSO2 IS 5.8.0 GA released pack does not start in windows

$subject please
WSO2 IS 5.8.0 pack taken from the product download page (Binary distribution) dies not start on Windows
Windows version - Windows 10 Pro
JDK version - JDK "1.8.0_111"
E:\sliit\wso2is-5.8.0\bin>wso2server.bat --start
JAVA_HOME environment variable is set to C:\Program Files\Java\jdk1.8.0_111
CARBON_HOME environment variable is set to E:\sliit\wso2is-5.8.0\bin..
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.util.logging.LogManager$1.run(LogManager.java:195)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.(LogManager.java:181)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
at sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:846)
at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
at sun.management.Agent.startAgent(Agent.java:260)
at sun.management.Agent.startAgent(Agent.java:447)
Error: Could not find or load main class org.wso2.carbon.bootstrap.Bootstrap
E:\sliit\wso2is-5.8.0\bin>
Thank you,
Samanthi

Hi @samanthiL ,
It looks like you are using unsupported command line option "--start".
the following options are the ones only supported "--run" "--restart" "--debug" and "--version" according to "wso2server.bat".
However this does not explain the error you are getting.
It looks like the jar in the location "CARBON_HOME\bin\tomcat-juli-7.0.93.jar" is not loaded properly. Can you please check of the "tomcat-juli-7.0.93.jar" is present and it is not corrupted.
If the above is all right, then it would be something wrong in the "wso2server.bat", specifically the line 167 (i.e. -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager)
Cheers,
Ruwan

Hi Ruwan,
Thank you for the update seem like jars to be corrupted , I took a fresh download again from the  distribution page and it will working fine.
sorry for the noise
Thank you,
Samanthi

Hi @samanthiL,
Thank you for trying out WSO2 IS. Glad you sorted out the issue.
Any feedback is always appreciated, and never considered a noise.
Cheers,
Ruwan


Bottleneck问题

由Basicblock切换成Bottleneck运行模型报错

直接切换运行即可复现

I changed the block to "BottleNeck" to change the backbone to a ResNet-50, and it worked, however I had to make the following modifications to some custom data LSTR scripts:

In the config/LSTR.json script I changed:

res_layers by those of ResNet-50 to [3, 4, 6, 3]
res_dims by those of ResNet-50 to [64, 128, 256, 512]

In the script models/py_utils/kp.py on line 151:

self.input_proj = nn.Conv2d(res_dims[-1], hidden_dim, kernel_size=1)  # the same as channel of self.layer4
I changed the res_dims[-1] to 2048 which is the same as channel of self.layer4 for ResNet-50.


Generated image files missing

Hello,
The .generated folder, subfolders and assumably all face, eyes and nose images are required by the app, but the directory is included in the .gitignore file. This error causes the app to crash on execution due to directories missing, and no images to generate when making a request due to files missing.
To recreate this error, clone the repo in a new directory and try to run it.

This error is directly caused by #42.


Blue screen when access a rails app running on bash on windows

After last update to 10.0.14936 (Build 14936.rs_prerelease.160923-1700) version, all times that I try to access a running rails app on any browser or even using curl/wget in the same running bash, Windows crashes and shows the blue screen bellow:

Note that this error occurs only when I try to access the rails app, not when I start , and before the update everything worked very well.

This is a known issue and we are working on a fix. I apologize for the inconvenience, we will get this fixed ASAP.

@benhillis
Beta means never having to say you're sorry =]

For what it's worth, I've also seen a blue-screen on the latest release.  Just once so far (when running apt-get install clang-3.5).  It sounds like y'all have this in hand, but if there's any additional information that you could use, I (and, I'm sure, others) would be happy to try stuff out.

@benhillis, don't worry, this is the first situation that I see a blue screen :)
As a workaround for now, I'm using docker.

I'm seeing this with mlton and other compilers

Yes, this seems to be the same issue mentioned in our 14936 release notes. The fix is already being fast-tracked to the release branch.

me too. In my case, this happens when i access my mysql server in ubuntu. Only i open one conection, with rails app or php app.
(Build 14936.rs_prerelease.160923-1700)

@marlesson Lol come on man it's a known issue look at @sunilmut 's link.
By the way @sunilmut How come your thing doesn't say "Microsoft Member" like most of the other people on the team?

@fpqc He shows up as Microsoft Member to me.

@benhillis Weird, you don't either.  Only bitcrazed and zadjii do, lol.  Maybe it's because you're not only MSFT members but also admins of this particular project (so it would say MSFT member if you posted on like the powershell github issues page).  I dunno.

Probably github's fault.

@fpqc I think I figured it out.  I was listed as a "Private" member of Microsoft.  I suspect it'll show up now.

Can't wait for this to pull through to the fast-ring. Checking for updates every day. I understand however that's what they warn you about when you switch to fast ring so no sweat =)

@all The BSOD should be fixed in 14942 (see release notes), which just got released.
@fqpc - Thanks for letting me know about the membership :). Just like @benhillis, to me it was always showing as "Microsoft member". I have updated my settings following @benhillis.

fixed indeed. can be closed

Thank you for confirming.


tmux-sessionizer: init at 0.2.0

Description of changes
Adds tmux-sessionizer package and vinnymeller as the maintainer

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 221798 run on aarch64-darwin 1

1 package built:

tmux-sessionizer

@devusb ty!

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/880


joint trajectory controller error cause gazebo segmentation fault

When using joint trajectory controller with gazebo, an error occur
[ERROR] [1517823475.098197028, 20202.025000000]: To transition to a cancelled state, the goal must be in a pending, recalling, active, or preempting state, it is currently in state: 2

Segmentation fault (core dumped)

[gazebo-1] process has died [pid 1072, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /data/assembler/assembler-dynamic/src/assembler_description/world/myworkcell-with-base-fix-physics.world __name:=gazebo __log:=/home/ros/.ros/log/93541f82-0a23-11e8-aa83-06d51cc02108/gazebo-1.log].
log file: /home/ros/.ros/log/93541f82-0a23-11e8-aa83-06d51cc02108/gazebo-1*.log

Reference

joint_trajectory_controller: Gets a segmentation fault after many calls #60
Segmentation fault (core dumped) using data from Gazebo #41
Tips on troubleshooting "Segmentation fault (core dumped)" [closed]
error with action server and client
Segfault of tests in Intel video cards

Could you add some more details?
Which operating system?
Which ROS version?
Does it happen with the latest packages?
Which robot are you running?
Is it reproducible?
If yes, how?
Could you try running Gazebo with debug mode? May give you more clues.
Are you sure that print comes from the joint_trajectory_controller?

@bmagyar I got more details via gazebo debug mode
[Wrn] [Publisher.cc:140] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once.
[ERROR] [1518053045.869658665,<PHONE_NUMBER>00]: To transition to a cancelled state, the goal must be in a pending, recalling, active, or preempting state, it is currently in state: 2

Thread 37 "gzserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff39e4b700 (LWP 420)]
0x00007fff16780841 in joint_trajectory_controller::JointTrajectoryController<trajectory_interface::QuinticSplineSegment<double>, hardware_interface::PositionJointInterface>::update(ros::Time const&, ros::Duration const&) ()
   from /opt/ros/kinetic/lib//libjoint_trajectory_controller.so

Information about my system
Ubuntu 16.04
ROS: kinetic
ros-kinetic-joint-trajectory-controller: 0.13.1-0xenial-20171130-120616-0800
Gazebo: 7.0.0+dfsg-2
ros-kinetic-gazebo-ros: 2.5.13-0xenial-20171117-053720-0800
ros-kinetic-gazebo-ros-control: 2.5.13-0xenial-20171130-121344-0800
ros-kinetic-gazebo-ros-pkgs: 2.5.13-0xenial-20171117-091119-0800

I used UR robot.
It's reproducible, just sending joint trajectory to robot 1-10 hours.

more details from debug mode
[ERROR] [1518053045.869658665,<PHONE_NUMBER>00]: To transition to a cancelled state, the goal must be in a pending, recalling, active, or preempting state, it is currently in state: 2

Thread 37 "gzserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff39e4b700 (LWP 420)]
0x00007fff16780841 in joint_trajectory_controller::JointTrajectoryController<trajectory_interface::QuinticSplineSegment<double>, hardware_interface::PositionJointInterface>::update(ros::Time const&, ros::Duration const&) ()
   from /opt/ros/kinetic/lib//libjoint_trajectory_controller.so
(gdb) bt
#0  0x00007fff16780841 in joint_trajectory_controller::JointTrajectoryController<trajectory_interface::QuinticSplineSegment<double>, hardware_interface::PositionJointInterface>::update(ros::Time const&, ros::Duration const&) ()
   from /opt/ros/kinetic/lib//libjoint_trajectory_controller.so
#1  0x00007fff25537837 in controller_manager::ControllerManager::update(ros::Time const&, ros::Duration const&, bool) ()
   from /opt/ros/kinetic/lib/libcontroller_manager.so
#2  0x00007fff25797e15 in gazebo_ros_control::GazeboRosControlPlugin::Update()
    () from /opt/ros/kinetic/lib/libgazebo_ros_control.so
#3  0x00007ffff62ca367 in boost::function1<void, gazebo::common::UpdateInfo const&>::operator() (a0=..., this=<optimized out>)
    at /usr/include/boost/function/function_template.hpp:773
#4  gazebo::event::EventT<void (gazebo::common::UpdateInfo const&)>::Signal<gazebo::common::UpdateInfo>(gazebo::common::UpdateInfo const&) (_p=...,
    this=<optimized out>)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/common/Event.hh:380
#5  gazebo::event::EventT<void (gazebo::common::UpdateInfo const&)>::operator()<gazebo::common::UpdateInfo>(gazebo::common::UpdateInfo const&) (_p=...,
    this=<optimized out>)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/common/Event.hh:216
#6  gazebo::physics::World::Update (this=this@entry=0x14e0610)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:740
#7  0x00007ffff62d89af in gazebo::physics::World::Step (
---Type <return> to continue, or q <return> to quit---
    this=this@entry=0x14e0610)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:672
#8  0x00007ffff62d8e25 in gazebo::physics::World::RunLoop (this=0x14e0610)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:481
#9  0x00007ffff40d85d5 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
#10 0x00007ffff65ed6ba in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ffff6bef3dd in clone () from /lib/x86_64-linux-gnu/libc.so.6

I think there are too much joint trajectory replacement that caused joint trajectory controller  failed.
[DEBUG] [1518068038.616189765, 9128.736000000]: Setting status to canceled on goal, id: /gym_ros_node-69741-9128.613, stamp: 9128.61
[DEBUG] [1518068038.616201253, 9128.736000000]: Publishing result for goal with id: /gym_ros_node-69741-9128.613 and stamp: 9128.61
[DEBUG] [1518068038.616248701, 9128.736000000]: Accepting goal, id: /gym_ros_node-69742-9128.735, stamp: 9128.74
[DEBUG] [1518068038.716752030, 9128.837000000]: Publishing feedback for goal, id: /gym_ros_node-69742-9128.735, stamp: 9128.74
[DEBUG] [1518068038.716778184, 9128.837000000]: Publishing feedback for goal with id: /gym_ros_node-69742-9128.735 and stamp: 9128.74
[DEBUG] [1518068038.735356354, 9128.855000000]: The action server has received a new goal request
[DEBUG] [1518068038.735439233, 9128.855000000]: Received new action goal
[DEBUG] [1518068038.735527017, 9128.855000000]: Figuring out new trajectory starting at time 9128.856
[DEBUG] [1518068038.735572017, 9128.855000000]: Using alternate time base. In it, the new trajectory starts at time 647949.864
[DEBUG] [1518068038.735627076, 9128.855000000]: Trajectory of joint elbow_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735654571, 9128.855000000]: Trajectory of joint shoulder_lift_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735674982, 9128.855000000]: Trajectory of joint shoulder_pan_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735693930, 9128.855000000]: Trajectory of joint wrist_1_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735712923, 9128.855000000]: Trajectory of joint wrist_2_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735731597, 9128.855000000]: Trajectory of joint wrist_3_jointhas 2 segments:
- 1 segment(s) will still be executed from previous trajectory.
- 1 segment added for transitioning between the current trajectory and first point of the input message.
[DEBUG] [1518068038.735761877, 9128.855000000]: Setting status to canceled on goal, id: /gym_ros_node-69742-9128.735, stamp: 9128.74
[DEBUG] [1518068038.735779706, 9128.855000000]: Publishing result for goal with id: /gym_ros_node-69742-9128.735 and stamp: 9128.74
[DEBUG] [1518068038.736060106, 9128.856000000]: Accepting goal, id: /gym_ros_node-69743-9128.855, stamp: 9128.85

Thread 37 "gzserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff39e4b700 (LWP 1008)]
0x00007fff1a4ad80b in joint_trajectory_controller::JointTrajectoryController<trajectory_interface::QuinticSplineSegment<double>, hardware_interface::PositionJointInterface>::update(ros::Time const&, ros::Duration const&) () from /opt/ros/kinetic/lib//libjoint_trajectory_controller.so
(gdb) bt
#0  0x00007fff1a4ad80b in joint_trajectory_controller::JointTrajectoryController<trajectory_interface::QuinticSplineSegment<double>, hardware_interface::PositionJointInterface>::update(ros::Time const&, ros::Duration const&) () from /opt/ros/kinetic/lib//libjoint_trajectory_controller.so
#1  0x00007fff1c8c1837 in controller_manager::ControllerManager::update(ros::Time const&, ros::Duration const&, bool) () from /opt/ros/kinetic/lib/libcontroller_manager.so
#2  0x00007fff1cb21e15 in gazebo_ros_control::GazeboRosControlPlugin::Update() () from /opt/ros/kinetic/lib/libgazebo_ros_control.so
#3  0x00007ffff62ca367 in boost::function1<void, gazebo::common::UpdateInfo const&>::operator() (a0=..., this=<optimized out>) at /usr/include/boost/function/function_template.hpp:773
#4  gazebo::event::EventT<void (gazebo::common::UpdateInfo const&)>::Signal<gazebo::common::UpdateInfo>(gazebo::common::UpdateInfo const&) (_p=..., this=<optimized out>)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/common/Event.hh:380
#5  gazebo::event::EventT<void (gazebo::common::UpdateInfo const&)>::operator()<gazebo::common::UpdateInfo>(gazebo::common::UpdateInfo const&) (_p=..., this=<optimized out>)
    at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/common/Event.hh:216
#6  gazebo::physics::World::Update (this=this@entry=0x14e09c0) at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:740
#7  0x00007ffff62d89af in gazebo::physics::World::Step (this=this@entry=0x14e09c0) at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:672
#8  0x00007ffff62d8e25 in gazebo::physics::World::RunLoop (this=0x14e09c0) at /build/gazebo-nhSAPd/gazebo-7.0.0+dfsg/gazebo/physics/World.cc:481
#9  0x00007ffff40d85d5 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
#10 0x00007ffff65ed6ba in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ffff6bef3dd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thanks for the info. Why are you sending commands to the controller at 100Hz? If you want it to follow a trajectory of points, pass those in with properly set up time_from_start fields for nice timing.
Still, I don't remember ever seeing this issue before and there are so many robots running this controller out there...

@bmagyar Thank you very much for your reply for this issue. Actually, I only send a trajectory point to robot every time, my program can't compute a whole trajectory points to do that with time_from_start. Do you have a better suggestion for this case?

@bmagyar do you think that it's a bug from joint trajectory controller no matter how we use it?

I frankly have no clue on this one. There are many things one may suspect since the setups is quite complex. My guess is that it's something related to passing data around which causes the computation to fail.
You could try by compiling the ros_control in debug mode and running the experiment again. GDB should serve us with more information then.


Show a user the vanity URLs they own and warn them of takeovers

Is your feature request related to a problem? Please describe.
Vanity URLs are a neat feature however in their current state they're not really that useful. To actually know which vanity URLs I own I would need to first write them down somewhere and then also check them periodically to ensure that no one has tried to takeover that URL.
Describe the solution you'd like
An extra page in the LBRY app that shows the state of the URLs I have tried to bid on.

Thanks for filing, we definitely want to do this. Our latest sdk rewrite will provide much better tracking around this.


Change the default time for a meetup

We want to change the default time for the meetup which is now 30 minutes. We would like to make shorter meetups (15 min). Is there a way to do it without changing the code but somewhere from Azure? Thanks in advance!

We also would like to adjust the default from 30 minutes to 15 minutes, within the Logic App I am able to adjust the meeting date and time (hour of the day) but not adjust the MEETING TIME.
Please advise how we can do that.

I don't have the skillz to write it in C# or add it into the final bot -- but maybe this will help somebody -- figure out the syntax for the URL, and change line 53 in PairUpNotificationCard.cs (in Source\Icebreaker\Helpers\AdaptiveCards):
var meetingLink = "https://teams.microsoft.com/l/meeting/new?subject=" + Uri.EscapeDataString(meetingTitle) + "&attendees=" + recipientUpn + "&content=" + Uri.EscapeDataString(meetingContent);
If it will accept a parament for meeting duration, you could append it to the end of the link string.

I don't have the skillz to write it in C# or add it into the final bot -- but maybe this will help somebody -- figure out the syntax for the URL, and change line 53 in PairUpNotificationCard.cs (in Source\Icebreaker\Helpers\AdaptiveCards):
var meetingLink = "https://teams.microsoft.com/l/meeting/new?subject=" + Uri.EscapeDataString(meetingTitle) + "&attendees=" + recipientUpn + "&content=" + Uri.EscapeDataString(meetingContent);
If it will accept a parament for meeting duration, you could append it to the end of the link string.

Meeting deep link takes 30 minutes by default.
Deep link was generated based on following: https://github.com/OfficeDev/microsoft-teams-apps-icebreaker/blob/main/Source/Icebreaker/Helpers/AdaptiveCards/PairUpNotificationAdaptiveCard.cs#L46
Deep link guidance: https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links#deep-linking-from-your-tab

Thank you for submitting this issue, as we work to ensure consistent responses with items logged in our issues list, we are working to address these items that did not get responses. Please let us know if you are still facing this issue and require assistance and we will be happy to discuss. If no further action is needed at moment and no response is received, we will close out the issue in 3 business days. You may also always open a new issue or respond here if something does come back up. Thank you!


Can I enter some sort of "debug mode"?

Whatever I do, I can't get my PIXI-based JS program back to working after some changes. There is no output whatsoever to the error log. No "can't load image due to permission errors" or anything. Nothing. I've tried to uncomment large parts of my program but I simply can't figure out what's wrong.
Is there some "PIXI debug mode" where I can actually learn what is the problem?
I use pixi.dev.js, if that matters.

You can give a try to PixiJS devtool Chrome addon


Update BeaconKit compatibility versions to include 4.0 and 4.0.3

Pull Request Description
Update BeaconKit compatibility versions to include 4.0 and 4.0.3.
Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

[✅] be an Xcode or swift package manager project
[✅] support building on either Linux or macOS
[✅] target Linux, macOS, or iOS/tvOS/watchOS device
[✅] be contained in a publicly accessible git repository
[✅] maintain a project branch that builds against Swift 3.0 compatibility mode
and passes any unit tests
[✅] have maintainers who will commit to resolve issues in a timely manner
[✅] be compatible with the latest GM/Beta versions of Xcode and swiftpm
[✅] add value not already included in the suite
[✅] be licensed with one of the following permissive licenses:

BSD
MIT
Apache License, version 2.0
Eclipse Public License
Mozilla Public License (MPL) 1.1
MPL 2.0
CDDL

[✅] pass ./project_precommit_check script run

Ensure project meets all listed requirements before submitting a pull request.

@swift-ci test

Thanks!


How to reset touched to false

Goal
I need form to only show the first error or at least the first input with an error should be the only error to be displayed. Once the user types the corrected value into the field that meets the fields requirements all touched fields must be set to false.
Question
Once a user hits submit all Fields touched values turn true. How do I reset all Fields touched values to false?

Software
Version(s)

Formik
latest

React
latest

Once a user hits submit all Fields touched values turn true. How do I reset all Fields touched values to false?

What about this?
const onSubmit = React.useCallback((values: any, formikHelpers: FormikHelpers<any>) => {
  formikHelpers.setTouched({});
}, []);

// now touched = {}
const fieldTouched = touched['fieldName'] ?? false;

But I don't understand why not reset touched object after successful validation internally in library on https://jaredpalmer.com/formik/docs/guides/form-submission#submission phase.

@Fitzpa look here - https://formik.org/docs/api/useField#fieldhelperprops - all you have to do is -
to call setTouched(false) on some event

@Fitzpa look here - https://formik.org/docs/api/useField#fieldhelperprops - all you have to do is -
to call setTouched(false) on some event

This gives me a Type 'false' has no properties in common with type 'FormikTouched<FormValues>'. error. I am facing this issue: https://github.com/formium/formik/issues/2725

@Fitzpa look here - https://formik.org/docs/api/useField#fieldhelperprops - all you have to do is -
to call setTouched(false) on some event

This gives me a Type 'false' has no properties in common with type 'FormikTouched'. error. I am facing this issue: #2725. Could you look into this: https://stackoverflow.com/questions/63669773/unable-to-click-on-button-with-formik-form (code sandbox link also given).

setTouched({}) should work fine


Transactions

With this change you have the possibility to make changes to multiple aggregates transaction safely:
$fromAccount = $this->accountRepository->get($command->fromAccountId);
$toAccount = $this->accountRepository->get($command->toAccountId);

$fromAccount->sendMoney($command->toAccountId, $command->amount);
$toAccount->receiveMoney($command->fromAccountId, $command->amount);

$this->store->transactional(fn () => {
  $this->accountRepository->save($fromAccount);
  $this->accountRepository->save($toAccount);
});

I think we should add a testcase for that. I know the concrete implementation is not our side here but i feel like we should add one.


Support Pipfile

pipreqs should be able to output a Pipfile.

This seems like a promising library to use here: https://github.com/sarugaku/requirementslib/.


Update support?

What is your question?
Are you gonna add support with the new 2024 fnf update?

I'm a part from the psych engine team but I'm pretty sure that they gonna update it


I don't see any examples or questions about adding another muitable INSIDE an expandable row.

In many use cases, there is a summary -> detail  view.  For instance, a table of patients, where each patient is an expandable row that would have another table of all the doctor encounters for that patient.  Then there could even be an equal level expansion into all the tests ordered for that patient, or another nested table with tests ordered based on that encounter.
something like this:
Patient1 Row
--PatientEncounters
--Encounter1 Row
----Patient Orders
----Order 1 Row
----Order 2 Row
--Encounter2 Row
...
Patient2 Row
or
Patient1 Row
--PatientEncounters
--Encounter 1 Row
--Encounter 2 Row
--PatientTestOrders
--Order 1 Row
--Order 2 Row
Patient2 Row
...
The same use case would be relevant in the financial world.  But I don't see any examples on if this is possible w/muitables.
I'm not asking for an example.  I just want to know if it is possible, or will there be element id conflicts when attempting this.  Of course, an example would also be great.  If someone tells me nested muitables is not an issue I can work on providing an example.

The table doesn't have any baked in ability to handle nested data like that, however, I believe it would be possible to do. What would need to happen would be Patient1's renderExpandableRow would render a table row that had a MUIDataTable inside of it. This table would have expandable rows that showed the orders.
The Patient1 data could store the data for the sub-tables in a hidden column (display: "excluded"). Additionally, to avoid showing a table toolbar and footer for the nested table, custom toolbars/footers could be inputted to the sub-table that made sure they didn't display.
This is just an idea though, I haven't tried it out.

Ok thanks.  I had been writing a table that will accomplish this.  Stopped working on it, after seeing the extra features I would get from using muitable.  But it sounds like a hack to get it to work.  Guess I'll just continue duplicating most of your features, which seems a tremendous waste of resources, but my client needs the functionality of the above use cases.
Really wanted to not have to do this! Would be a great addition IMO for future release.  But I'm the only person who has asked fo it, so I don't see that happening anytime soon.  Thanks for the quick response.

It might make more sense to fork this table and add that feature, rather than the other way around.
You could then also submit a PR for possible inclusion back here. Creating a datatable is more work than it seems, and there's a lot of benefit to using one that others are using (community updates, bug fixes, etc). I actually forked this table a year ago for a rather large project I was working on. When I saw the previous maintainer had left, I reached out to Greg and he let me take over (a lot of the 3.0 updates were updates from my fork - I'd been periodically syncing back up with this library so my fork wasn't out of date).
For a nested structure to work with this data, the transformData routine would have to structure the data in a way to allow this. Right now it creates an array of arrays (each of these arrays represent a row). One idea could be to add a "nested" property to the row arrays that would contain the data to display when the row is open (and these nested rows could also have their own "nested" property). A property may also need to be added that would specify if the row was open or closed.
Rendering these rows would seem pretty straight forward, TableBody would just need to be updated to render the nested rows, though this might require some thought on the best way to do this.
I don't have any immediate need for this feature so it's not really on my radar. Good luck with whatever you choose to do.

Hi patorjk.  That's a good idea.  The quality of your knowledge of REACT is much greater than mine, though I've done java and C#/VB.NET for decades (Really happy to move away from M$!).  But I have a deadline, and most of the features I need I've already implemented (search, add/remove columns for display/export/print via icons, sorting, selection, paging.  The only thing left is grouping, and I'm much more familiar w/my code.
I would also have to change the selecting use case you implemented.  I have no need for multiple selecting rows, or delete,  so would need to remove that, and need to add other actions to the row like a popup menu via an icon that shows all the actions that can be accomplished in selecting the row.
Wish I'd found you 3 months ago.  I didn't notice the mention in material-ui table until last week..  I truly appreciate your quick responses.

No worries, good luck with your project.

I am also using a nested muitable inside an expandable row. I have found that dragging columns in the outer muitable will affect the nested muitable while being dragged. Once the outer column is dropped, the inner muitable's columns revert back to the correct ordering. I will create a sandbox to demo.

See this sandbox: https://codesandbox.io/s/fervent-minsky-9eem8?file=/src/App.js
Try:

Expand a row
Drag a column on the outer MUIDataTable
Watch the inner MUIDataTable's columns move along with the outer columns
Release/drop the outer column

Once complete, the columns will be in the correct positions. It only looks strange when dragging the column.

Ah, I didn't even think of nested tables. This line's the problem:
https://github.com/gregnb/mui-datatables/blob/master/src/hooks/useColumnDrop.js#L131
I'll have to have each instance of the table generate a unique ID, and then add that to the selector. If you can, can you create a separate issue for this? This should be a straight forward fix.

Thanks! :)
Created: https://github.com/gregnb/mui-datatables/issues/1406

Yikes, now this looks promising.  Please let me know when this fix is made.  I'm going to put off continuing work on what I'm doing and move on to another part of the project.  It would truly be great if I didn't have to recreate the wheel to get the feature I need.  I've done that all too many times already!
Thanks guys!

@aahock  released 3.2.0
codesandbox: https://codesandbox.io/s/crazy-borg-dwx60?file=/src/App.js


DEVX-2211: Use installation schema to validate templates

Description

Used adobe/aio-lib-console-project-installation for install.yaml validation.
Changed package.json validation to use of Ajv.

Related PRs
https://github.com/adobe/aio-lib-console-project-installation/pull/13
https://github.com/adobe/aio-template-submission/pull/404
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA.
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

@lenaorobei One test in tests/checkInstallSchema.test.js fails.


ForestDB: prefixMatchLevel=1 with descending returns zero items

The following code fails and produces zero results:
            val view = db.getView("hu")
            view.setMap({ document, emitter -> emitter.emit(Arrays.asList<Any>(document["key1"], document["key2"]), null) }, "1")
            view.updateIndex()
            Thread.sleep(100)

            var doc = db.createDocument()
            doc.putProperties(mapOf("key1" to 1, "key2" to "x"))
            doc = db.createDocument()
            doc.putProperties(mapOf("key1" to 2, "key2" to "y"))

            // this works correctly
            var query = view.createQuery()
            query.prefixMatchLevel = 1
            query.endKey = Arrays.asList(1)
            assertEquals(1, query.run().count.toLong())

            // this doesn't work
            query = view.createQuery()
            query.prefixMatchLevel = 1
            query.isDescending = true
            query.startKey = Arrays.asList(1)
            assertEquals(1, query.run().count.toLong()) // returns 0 results

I am attaching a sample gradle project which demonstrates the issue. Just run the Bug2Test test suite.

cblbug.zip

Workaround is to use
            query.startKey = Arrays.asList(1, HashMap<Any, Any>())
            query.endKey = Arrays.asList(1, null)

It seems that as the prefixMatchLevel property was ignored when descending is set to true

The problem is that according to the documentation, the prefix match level should work as follows:
A value of 1 treats the endKey itself as a prefix: if it's a string, keys in the index that come after the endKey, but begin with the same prefix, will be matched. (For example, if the endKey is "foo" then the key "foolish" in the index will be matched, but not "fong".) Or if the endKey is an array, any array beginning with those elements will be matched. (For example, if the endKey is [1], then [1, "x"] will match, but not [2].) If the key is any other type, there is no effect.
This is absolutely not correct and the behavior is totally buggy:

if the prefix match level is set to 1, descending to false and only the endKey is set, then the query result will return everything that is less than the endkey, including prefixes which do not match endKey at all. Workaround is to set the startKey as well.
if the descending is set to true, the query always returns 0 results if the prefix match level is 1 and startKey is an array of size 1. Workaround is to disable prefix match level and use startKey/endKey as above.
If the descending is set to true and limit is set to 1, it is not so that the lowest matching key is returned - instead a random key is returned.

I'm sorry but has been ForestDB tested with composite keys at all?

cblbug.zip


Is it possible for Kedro to support Kartothek Dataset?

https://github.com/JDASoftwareGroup/kartothek
https://tech.blueyonder.com/cube-functionality-to-kartothek/

This dataset is a little complicated since it involves composite parquet dataset.


Please apply two small patches

Please apply my two small patches,
1st: Added option to create a password protected client key
2nd: Added support for Debian 9 (stretch)
Sorry for providing this way, but those changes are way too small to fork..
Thanks for your effort
105c105,106
<               echo "   1) Add a cert for a new user"
---
>               echo "   1) Add a cert for a new user (nopass)"
>               echo "   2) Add a cert for a new user (with private-key password)"
124a126,138
>                       echo ""
>                       echo "Tell me a name for the client cert"
>                       echo "Please, use one word only, no special characters"
>                       read -p "Client name: " -e -i client CLIENT
>                       cd /etc/openvpn/easy-rsa/
>                       ./easyrsa build-client-full $CLIENT
>                       # Generates the custom client.ovpn
>                       newclient "$CLIENT"
>                       echo ""
>                       echo "Client $CLIENT added, certs available at $homeDir/$CLIENT.ovpn"
>                       exit
>                       ;;
>                       3)
154c168
<                       3)
---
>                       4)
201c215
<                       4) exit;;
---
>                       5) exit;;
339a354,359
>                       wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
>                       apt update
>               fi
>               # Debian 9
>               if [[ "$VERSION_ID" = 'VERSION_ID="9"' ]]; then
>                       echo "deb http://build.openvpn.net/debian/openvpn/stable stretch main" > /etc/apt/sources.list.d/openvpn.list

For the 2nd patch: the commit https://github.com/Angristan/OpenVPN-install/commit/cd013295851e98b3f784cc504dab4d36e15bb6df add supports for debian 9


Translation of zh-TW: part of Dogepedia (05)

Hi, this is a series of PR for contributing zh-TW translation of Dogepedia.

Change the plan (see #201)


optional max_guesses (intended usage '!hangman ruby 6')

I'd like to see this feature added so we can scale the difficulty as desired...
I'll be glad to amend changes and squash as needed.

Looks good, the regex will make it reject negative values, but how about an upper limit?

Good idea... want to cap at 12?

Updated to take the minimum between guess_max and Game::DEFAULT_GUESS_MAX

Thanks @jhass ... modified to enforce an upper limit by taking the minimum value from the tuple {guess_max, Game::DEFAULT_GUESS_MAX}

Thanks!


Login page: improve UX with form lock and loader

Hi there,
Small PR to improve the UX on the default Login page.
This include Fields locking and loader on submit Button.
Preview

By the way, great framework ! 👍

Thanks! Could you PR against the next branch instead? master is only for bugfixes.
Also, I'd love a screenshot of the improved UI in the PR description.

Thanks! :)


how can put current location control on map

Issue description
Steps to reproduce and a minimal demo of the problem
_Use https://plnkr.co or similar -- try this template as a starting point: http://plnkr.co/edit/YX7W20?p=preview
What steps should we try in your demo to see the problem?
Current behavior
Expected/desired behavior
angular2 & angular-google-maps version
Other information

I have the same question
Is it possible to show User's location on the Map?

currently, Google Maps doesn't support it, and we'd rather not add our own custom overlays. If google maps api provides such a control in the future, we will revisit the isue


SHARE button is missing from some screens

[x] Layer list
[x] Widgets list
[x] Settings

Thanks @nobuti


Implemented 1+1 crossover and enables algorithms to repair a single individual

Thanks for the pull request!
I just had a look and I think it should be generalized to work for any kind of crossover, since it is implemented in the Crossover class. So far, this assumes the crossover needs exactly two parents to create offsprings. But, for instance, the  DifferentialEvolutionCrossover needs three parents. In general, the cross method should be suitable for any arbitrary crossover which means it takes a list of individuals.
Can you generalize the code to be suitable for any kind of crossover? Also, can you create a two or three test cases that make sure that changes later on will not break the implementation?
Thank you in advance.

Good suggestions, generalization ability is very important since it is a base class. I will take some time to implement it.

Hi Julian, now the crossover can accept a list of individuals as its input. It will return all offspring as a population.
problem = get_problem('zdt1')
sampling = get_sampling('real_random')
pop = sampling.do(problem, n_samples=3)

# two individuals as input
crossover = get_crossover('real_sbx', eta=20)
crossover.do(problem, pop[0], pop[1])
# population as input
crossover.do(problem, pop, np.array([[0, 1]]))

# three individuals as input
crossover = get_crossover('real_de')
crossover.do(problem, pop[0], pop[1], pop[2])
# population as input
crossover.do(problem, pop, np.array([[0, 1, 2]]))

I think have a crossover just for a few individuals is a very good idea. I am about to release a new version and have implemented your suggestion in a slightly different way.
problem = get_problem('zdt1')

sampling = FloatRandomSampling()

pop = sampling.do(problem, n_samples=3)

crossover = ElementwiseCrossover(SBX(20))
off = crossover.do(problem, pop[0], pop[1])
assert len(off) == 2

crossover = ElementwiseCrossover(DEX())
off = crossover.do(problem, pop[0], pop[1], pop[2])
assert len(off) == 1

This way the interface is not changed, but what you intend to do can be easily achieved. Let me know what you think.
(current release branch)
Julian


Return response from Laravel's Handler (now that api() macro is deprecated)

Now that the api() macro is deprecated, I want to know how to return a response from Laravel's exception handler (Exceptions/Handler).
In the past, I used something like this
// inside the render() method in Handler.php

if ($e instanceof ApiException) {
    return response()->api()->withError($e->getMessage(), $e->getCode());
}

How can I avoid using api() ?
ps: sorry for not using the guidelines.

@jonagoldman Personaly, in my Handler.php file i use the response object like this
$response = app(\EllipseSynergie\ApiResponse\Contracts\Response::class);

if ($e instanceof ValidatorException) {
    return response->errorWrongArgsValidator($e->errors());
};

Thanks will try it out!


cvui::button function always return a value even i do not click it， this will make the cpu loading is  high

cvui::button() is designed to return a value always (it changes to true when the button is pressed). I think your high CPU loading is due to another thing. Are you using cvui's keyboard shortcuts, i.e. call cvui::init(WINDOW_NAME, 20); instead of cvui::init(WINDOW_NAME); ?