feat(multichain_payment): added new iden3message payment types

Added the following request type:

Iden3PaymentRequestCryptoV1
Iden3PaymentRailsRequestV1
Iden3PaymentRailsERC20RequestV1
Added the following payment type
Iden3PaymentCryptoV1
Iden3PaymentRailsV1
Iden3PaymentRailsERC20V1

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 0% with 172 lines in your changes missing coverage. Please review.

Project coverage is 20.98%. Comparing base (1cca8b5) to head (c624b98).

Files with missing lines
Patch %
Lines

...s/payment/response/payment_request_data_proof.dart
0.00%
44 Missing :warning:

...n3comm/domain/entities/payment_message_entity.dart
0.00%
31 Missing :warning:

.../response/payment_rails_erc20_request_v1_data.dart
0.00%
30 Missing :warning:

...ayment/response/payment_rails_request_v1_data.dart
0.00%
25 Missing :warning:

...yment/response/payment_request_crypto_v1_data.dart
0.00%
21 Missing :warning:

...yment/response/payment_request_message_entity.dart
0.00%
21 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #455      +/-   ##
===========================================
- Coverage    21.31%   20.98%   -0.34%
===========================================
  Files          267      271       +4
  Lines         8744     8883     +139
===========================================
  Hits          1864     1864
- Misses        6880     7019     +139

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


CI is failing on master branch (semver-checks)

CI is passing for PRs but failing on master because it's failing to find a base branch.
I believe it needs to be pulled out of .github/workflows/rust.yml into its own file which has on: pull_request: but no on: branches:. But this is inherently difficult/annoying to test.

Yes, this is a case that we did not test and makes total sense now.
I will do a fix as soon as possible.

No worries. We hit it every time we try to do clever stuff in CI.


Implement v2 API

Implements https://github.com/mrhooray/crc-rs/issues/48. Requires Rust beta.

I see a ~15% perf regression in crc64 case, will have to dig into it
crc16_update_megabytes  time:   [1.9334 ms 1.9373 ms 1.9415 ms]
                        thrpt:  [491.21 MiB/s 492.27 MiB/s 493.27 MiB/s]
                 change:
                        time:   [+0.8559% +1.5330% +2.1055%] (p = 0.00 < 0.05)
                        thrpt:  [-2.0621% -1.5099% -0.8487%]
                        Change within noise threshold.
Found 6 outliers among 100 measurements (6.00%)
  1 (1.00%) low mild
  4 (4.00%) high mild
  1 (1.00%) high severe

Benchmarking crc32_update_megabytes: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 8.6s, enable flat sampling, or reduce sample count to 50.
crc32_update_megabytes  time:   [1.6994 ms 1.7092 ms 1.7204 ms]
                        thrpt:  [554.32 MiB/s 557.98 MiB/s 561.18 MiB/s]
                 change:
                        time:   [-0.9138% -0.0424% +0.6526%] (p = 0.92 > 0.05)
                        thrpt:  [-0.6484% +0.0424% +0.9222%]
                        No change in performance detected.
Found 13 outliers among 100 measurements (13.00%)
  4 (4.00%) high mild
  9 (9.00%) high severe

crc64_update_megabytes  time:   [2.0104 ms 2.0338 ms 2.0605 ms]
                        thrpt:  [462.84 MiB/s 468.92 MiB/s 474.36 MiB/s]
                 change:
                        time:   [+15.056% +16.614% +18.444%] (p = 0.00 < 0.05)
                        thrpt:  [-15.572% -14.247% -13.086%]
                        Performance has regressed.
Found 9 outliers among 100 measurements (9.00%)
  9 (9.00%) high severe

@akhilles thanks for the PR!
Looks like the focus is on the API & improved compatibility rather than internal code dedup between 16/32/64 widths - is this understanding correct?

Yeah, the main blocker for eliminating the code dedup is the ability to use generics in const functions. Once that's supported, we can make that change without breaking the API.

What's your thought on the release plan as this requires Rust beta? My understanding is 1) folks that require stable wouldn't be able to use this immediately; 2) later adding stable channel support wouldn't be a breaking change so we can stay on v2

I can revert to using macros in make_table, which works fine in stable rustc. Probably want to avoid increasing MSRV unless absolutely necessary.

One downside of using macros in make_table is it drastically increases compile times (from ~1s to ~20s). Another option we have is to manually unroll all the loops. It'll make the table.rs file huge but will compile fast and work on stable rustc.

Thanks @akhilles
Do you think the core::hash::Hasher trait is worth implementing, remembered that there were requests for it.


Add Unit Test for PooledDataSource

I wrote several unit tests for PooledDataSource.
1. shouldBlockUntilConnectionIsAvailableInPooledDataSource
If program tries to get a connection beyond the number of dataSource.getPoolMaximumActiveConnections, it should be blocked.
2. PoppedConnectionShouldBeNotEqualToClosedConnection
The Popped Connection should be not equal to previously closed connection. When closing a connection, it should generate new connection and stash away it to idleConnections in PoolState.
3. shouldEnsureCorrectIdleConnectionCount
When closing a connection, the number of idle connection in idleConnections in PoolState increases by one, but not beyond dataSource.setPoolMaximumIdleConnections
4. connectionShouldBeAvailableAfterMaximumCheckoutTime
It is the test extending test 1. If program tries to get a connection beyond the number of dataSource.getPoolMaximumActiveConnections, program is blocked. But If time passes beyond dataSource.getPoolMaximumCheckoutTime, a connection should be available.
5. forceCloseAllShouldRemoveAllActiveAndIdleConnection
forceCloseAll should remove all active and idle connections.
Thank you.

Coverage: 87.508% (+0.3%) from 87.183% when pulling 1640f1ae93c081adc80c7bbeebb19eea07236a13 on hogimn:test into 88ddca69b35cb17568844c0f3194066899693363 on mybatis:master.

@hogimn Thanks!


Adding basic description for ApiTokens on api document

Adding basic description for ApiTokens on api document

FYI @Vishnu-MS-IBM @schmidtl -- we're sunsetting this repo in the "near" future. If you could use the @Operation(description = "<your endpoint description>") moving forward, I'd appreciate it! I'll add more guidance soon. Thanks for your help!


changelog: start of changelog for 0.3.0

This is the start of the changelog for 0.3.0.
Not to be merged before release

I'd include a big "BREAKING CHANGES" section with, of course, the fact that we are deprecating the docker-machine ip, docker-machine start, docker-machine stop etc. commands.

Merging as this is in the current RCs.


1.0.0 Release Checklist

LayoutProvider

[ ] allow custom debug fill colors/outlines to be set on LayoutProvider.

Ideal API: <LayoutProvider debug={{ enabled: true, outline: 'solid 10px green', fill: 'blue' }}>
Notes:

Debug fills need to always be have an alpha of .15, even when a solid color is passed in.
The alpha cannot be set using opacity: .15, this would cause the contents to appear transparent, only the background color should be affected.
The ideal way to handle this, would be to extract the individual rgb channels from the input hex and generate a custom rgba() with a .15 alpha set.

Container

[ ] allow 100% height in Safari

This seems like it should be logical enough, but Safari doesn't allow height: 100% to be set on an element unless the parent has an absolute height set. There are a few workaround to this including using position: absolute on the height: 100% element with position: relative on the parent element. But this is less than ideal and will break most of the other layout features, requiring a massive re-write. Need to find another solution.

[ ] direction should accept either a string or object

this should use the same methods as other props like width/height, allowing the direction to be changed based on the active breakpoint.

[ ] alignX/alignY should accept either a string or object

this should use the same methods as other props like width/height, allowing the alignment on both axes to be changed based on the active breakpoint.

flowtype

[ ] add flow annotations to breakpoint utility

Documentation
Section

[ ] add a story for height
[ ] add a story for width
[ ] add a story for positioning (this should demonstrate the absolute, top, bottom, left, and right props)

Container

[ ] add a story for height
[ ] add a story for width
[ ] add a story for grow
[ ] add a story for shrink
[ ] add a story for flex
[x] add a story for wrap
[x] add a story for direction

Box

[ ] add a story for height
[x] add a story for width
[x] add a story for shift
[x] add a story for grow
[ ] add a story for shrink
[ ] add a story for flex
[ ] add a story for fluid

pre-production

[ ] remove all unused/legacy code
[ ] ensure all variables and class names are relevant
[ ] finalize the all component property names (these cannot be changed after 1.0.0 is published)

Contributing
If you wish to help on any of these items, please drop a comment down below letting me know what you're working on. This will ensure that two people aren't simultaneously working on the same thing. Thanks!

Working on updating the LayoutProvider debug options 😎

I'm currently pulling my hair out trying to fix the safari issues 😎

Adding flowtype and section docs 💻


Devfile Library should have the ability to get resources from a private repo

/kind user-story
Which area this user story is related to?

/area library
User Story
We would like if the devfile/library had the ability to get resources from a private repository. This would be required for reading devfile.yaml or an outerloop kubernetes deploy.yaml defined in the devfile for example.
The library should have the ability to read the private resources for most of the leading repositories like github, gitlab, bitbucket, etc.
In AppStudio, this is done using SPI but it would require installing their CRs and Controllers. But we could also look at the OpenShift Developer Console(ODC) as to how they do it for their codebase but their implementation would be in TS.
Acceptance Criteria

[ ] Should be able to get resources from a private repository
[ ] Should be able to support the leading repositories like github, gitlab, bitbuckket

Target Date: 2023-03-09

context
Currently, when a devfile is parsed from a uri
schemaVersion: 2.2.0
metadata:
  name: my-project-dev
parent:
  uri: https://raw.githubusercontent.com/devfile/registry/main/stacks/nodejs/devfile.yaml

that is in a repo from a supported git provider, the resources from the repo are downloaded.
problem
If we want to download from private repos, we need to authenticate with a token. How should this git token be passed into the library?

Using a Kubernetes secret

type ParserArgs struct {
	...
	// K8sClient is the Kubernetes client instance used for interacting with a cluster
	K8sClient client.Client
	...
}

Passing in the token itself; could be from an env variables, etc

Other?

01/23 - Devfile community call

potential duplication of work; align with SPI
consider explicitly mapping repo url with credentials instead of inferring from url

removing from hold; will continue with implementation with the potential of swapping out with SPI in the future

token flow: will scope to single scenario where only the private parent resources are downloaded for now. will need to consider private child and private parent scenario in the future
experimenting with mocking a happy path test for cloning a repo; time boxed until eod tomorrow -- will skip if it doesn't work

ongoing review progress; updating token location and url parsing

moving back to in progress; unit tests are completed, but functional testing needs to be added / at the minimum explored properly before the PR can be merged. if functional tests can't be added, manual testing needs to be documented as a final option

Found a way to add functional tests and completed the mocking setup; moved parent resource downloading into a separate method that can then be mocked. Currently creating the test cases with the mocks


DataFile not found

I deployed a simple yesod app which depends on my private lib. The lib uses a data file.  My app serves static files fine. But the library is unable to read the data file
readFile =<< getDataFileName "datafile"
I get the error
{"error":"/tmp/build_3f0a2590d91b5455b99261b26c6739f1/.stack-work/install/x86_64-linux/lts-6.4/7.10.3/share/x86_64-linux-ghc-7.10.3/my-lib/datafile: openFile: does not exist (No such file or directory)","message":"Internal Server Error"}
Shouldn't it be looking at the share directory ?
Am I missing anything?

@vijayanant not sure - what does you cabal file look like? Does it include the datafile? Do you have a data-files section in your cabal file? How are you deploying your private lib in relation to your app? Maybe if you send a listing of the files in your app and the contents of your cabal and stack.yaml files, could help figure out what's going on.

Here is cabal config for the lib
data-dir:            config
data-files:         datafile

The app's stack.yaml points to the repo location and commit.
packages:
- '.'
- location:
    git: <lib repo>
    commit:<PHONE_NUMBER>80afb7df94a89f528ea6c6872817c1
  extra-dep: false
- location:
    git: <another repo>
    commit: 45cba469bf3769ed2bd4841e7a48e4f5635c1cb6
  extra-dep: false

Nothing jumping out at me - the file's not in config/datafile is it? Otherwise, not sure what's going on or how going through this buildpack is changing behavior.

My config/datafile is fairly simple and made it a haskell module and used it as source file.  Things are working fine now.
Safe until I have binary file or something  more complicated :) Need to figure out what is happening before then !!

Is the file located at config/datafile? Can you try
   data-files:  config/datafile

and with the accompanying code of:
  readFile =<< getDataFileName "config/datafile"

Tried but no luck... got  the same error
{"error":"/tmp/build_dad6e3fc9005b3ecc96534baaa04fb54/.stack-work/install/x86_64-linux/lts-6.4/7.10.3/share/x86_64-linux-ghc-7.10.3/my-lib/config/datafile: openFile: does not exist (No such file or directory)","message":"Internal Server Error”}

Similar error here. To troubleshoot, I shelled in and ran the server app directly:
$ MeeseeksBox
MeeseeksBox: /tmp/build_c3fd4d91a1b3194be8b0456a0e6b5d48/.stack-work/install/x86_64-linux/lts-6.13/7.10.3/share/x86_64-linux-ghc-7.10.3/Meeseeks-<IP_ADDRESS>: getDirectoryContents: does not exist (No such file or directory)

It appears to be looking in a temp directory, rather than its installed location -- and said location contains no files other than the binary. Maybe needs a stack install?
Here is Meeseeks.cabal. Like @vijayanant I have separate executable and library, with data-dir and data-files. However, I'm git pushing the source rather than using a package location in stack.yaml.

@tejon thanks! I tried deploying your app, but it's crashing on me. I'd like to get a minimal way to reproduce the issue. But I think there might be issues with not copying over the .stack_work directory. I think I didn't do this before because of size issues. Trying it out in a branch - if you want to try it out, you can set the buildpack to: https://github.com/mfine/heroku-buildpack-stack.git#mfine-mv-stack-work and see if that works. Thanks!

it's crashing

Did you edit Procfile? It's attempting a cabal-based invocation right now, which certainly won't work with this buildpack!

Not sure, rolled back your last commit. Let me know if you can try with the branch buildpack

Yeah, I never actually pushed it in fully correct state. :P I'll take a proper look in a bit.

D'oh...
remote: Copied executables to /app/.local/bin:
remote: - MeeseeksBox
remote: -----> 2016-08-26_06:31:48 Making stack binaries available
remote: mv: cannot stat ‘/app/.stack_work’: No such file or directory
remote:  !     Push rejected, failed to compile Haskell app.

@vijayanant @tejon finally got around to getting to the bottom of this - have a fix here: https://github.com/mfine/heroku-buildpack-stack/pull/14, which you can try out by setting the buildpack to https://github.com/mfine/heroku-buildpack-stack.git#mfine-preserve-stack-work.

Should be resolved now.

Confirmed, it's working now. Awesome!


Add Jenkinsfile for nos-automation

The Jenkins on nos-automation will be using it to trigger a build. And the new Jenkins takes no more than 39 min.

Wow! The nos-automation starts building it.

faster than the old system too :smiley:

Just 3 min faster than old - still cool. Merged.


There is no upper border accent color at the window on Windows 10

Describe the bug
If you enable the display of accent color on window borders in Windows settings, then there is no upper border in Winapi 3 applications.
Steps to reproduce the bug

Enable the display of accent color on window borders in Windows settings
Open any WinUI3 app

Expected behavior
The accent color on the upper border of the window is displayed correctly
Screenshots

NuGet package version
WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000
Windows version
Windows 10 (21H2): Build 19044, Windows 10 (21H1): Build 19043, Windows 10 (20H2): Build 19042, Windows 10 (1809): Build 17763
Additional context
Only on Windows 10

Duplicate of #8948

Closing as duplicate.


Create Hub organization

Create a organization on the Hub as a namespace to host all the added datasets.

DONE: https://huggingface.co/biglam


[BUG] Macaw's Bridges - Invocation Target Exception - v5.0.5

Upon updating the modpack (through PollyMC), I can no longer load Minecraft.
Macaw's Bridges is throwing java.lang.reflect.InvocationTargetException: null, at first over Iron Stairs.
I attempted to re-download MB-BYG directly from forge, and it throws the same error, except about the Support Pillar.
I believe teeechnically it was throwing warnings on the previous version (5.0.4), but it wasn't breaking anything to my awareness at that time, since I hadn't reached a point where I was using those blocks.
Support files follow:
crash-2024-05-02_09.37.33-fml_censored.txt
latest_censored.log
If you need any further information I'll do my best to be prompt!

Did you manage to find a fix? I am running into the same issue on 5.0.5.

Updating Macaw's Bridges - Oh The Biomes You'll Go to version 1.4 fixes this

https://www.curseforge.com/minecraft/mc-mods/macaws-bridges-oh-the-biomes-youll-go/files/5256720

Hi all, thanks for your patience. I've updated the pack with the new version of the mod. Seems to be working okay for me, or at least it doesn't immediately crash this time.
Will update the Modrinth version soon as well.
@TigerWalts thankyou for finding a fix.


k8s: remove experimental note

One the following are merged k8s is ready for productive use:
#1696
#1690
#1691

rerun skydive-cdd-overview-tests


L515 missing depth on black/dark objects

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
L515

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 18.04

Kernel Version (Linux Only)
5.4.0-122-generic

Platform
PC

SDK Version
2.50.0

Language
C++

Segment
Robot

Issue Description
Sorry to interrupt. Today I used L515 to look at five different color golf ball(pink, green, blue, black, white), and found that the depth of black is incomplete as others complete. Is there any way to improve it, or maybe it is just a problem of TOF camera?

Hi @FeiSong123  Depth cameras in general (not only RealSense) have difficulty analyzing dark grey or black surfaces unless a strong light source is cast into them to bring out their depth.  More information about this can be found at https://github.com/IntelRealSense/librealsense/issues/6757

OK, I see. Thank you for your reply.

Hi @FeiSong123  Do you require further assistance with this case, please?  Thanks!

No,

Thanks very much @FeiSong123 for the update!


VS Code adds or removes spaces after quotation symbol (i.e. ") under certain circumstances

Issue happens when writing Django templating files.

VSCode Version: 1.27.2
OS Version: Ubuntu 16.04 LTS

Steps to Reproduce:

write something like <script src="{% static "main/main.js" %}" > in a .html file
save.

A space will be inserted after the second quotation mark, i.e in front of frontend, and remove any space after the last quotation mark, resulting in:
<script type="text/javascript" src="{% static "frontend/main.js" %}">
"{% static "frontend/main.js" %}" >
"{% static " frontend/main.js" %}">
Does this issue occur when all extensions are disabled?: Yes
Changing "editor.formatOnSave": to false fixes the issue. Althought I wonder if there is a solution without that compromise.
My Settings:
{
"editor.formatOnSave": true,
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
"--errors-only"
]
}

Possibly a js-beautify issue.

The problem is that the django syntax seems to allow quotes inside the template
"{% static "frontend/main.js" %}"
The HTML formatter sees this as two strings : "{% static " and " %}" and adds spaces.
The solution is to either to

use a formatter that can handle the django language. I don't know if that exists but check out the marketplace.
disable format on save ("editor.formatOnSave": false). Note that you can also just turn off editor.formatOnSave for html. ("[html]": { "editor.formatOnSave": false })

The problem is that the django syntax seems to allow quotes inside the template
"{% static "frontend/main.js" %}"
The HTML formatter sees this as two strings : "{% static " and " %}" and adds spaces.
The solution is to either to

use a formatter that can handle the django language. I don't know if that exists but check out the marketplace. The request to add a django formatter is #46468
disable format on save ("editor.formatOnSave": false). Note that you can also just turn off editor.formatOnSave for html. ("[html]": { "editor.formatOnSave": false })

Marking as dup of #46468

Thanks, your suggestions fixed my issue. I wasn't aware that you could change the formatting settings for particular languages/markups. Much appreciated again


boards: efm32/efr32: Enlarge storage_partition for nvs sample

The nvs sample requires a storage_partition of 3 flash pages, but these boards
only provided 2 flash pages. Because of this the nvs sample failed.
Signed-off-by: Christian Taedcke<EMAIL_ADDRESS>

Closed and reopened to trigger build

There are two more boards: efm32hg_slstk3400a, efr32_slwstk6061a that have 4Kb storage partitions. We could update them too.

The efm32hg has a erase block size (page size) of 1kB, so the partition size of 4kB should be fine. But i do not have any hardware to verify that.
I will change the efr32_slwstk6061a. I though this board is now obsolete.
@mnkp Will the board efr32_slwstk6061a be removed after the next zephyr release?

@galak Something is wrong with the build jobs, what is the best way to retrigger a build without changing the code?

The efm32hg has a erase block size (page size) of 1kB, so the partition size of 4kB should be fine.

Good point.

@mnkp Will the board efr32_slwstk6061a be removed after the next zephyr release?

I guess it's up to us. We could remove it already.


stitch dependencies to assets post build

Some functionality available to plugins depends on having dependencies directly available on each asset. This PR intends to make them available, after the rust build to avoid duplicating info for serialisation.

Closing in favour of #225


NPM command failed git checkout 4.0

Hi
I have cloned the repository. But when running
npm install
I get this error:
npm ERR! Command failed: /usr/local/bin/git checkout 4.0
npm ERR! error: pathspec '4.0' did not match any file(s) known to git.

And, I do not know if this is an NPM or Bones error...?
/Magnus

UPDATE.
It looks like the installation of Gulp 4 have changed. This line in package.json is no longer working:
"gulp": "github:gulpjs/gulp#4.0"
I followed this thread at Stackoverflow to solve the problem. First removing all traces of Gulp and then installing the CLI globally.
It seems to have fixed the problem with npm install

Gulp v4 can be installed like this, directly from npm npm install gulp@4
In my case, package.json pointed to the GitHub source: "gulp": "git+https://github.com/gulpjs/gulp.git#4.0",
https://stackoverflow.com/a/52942546/3102325

when I clone
npm install https://github.com/null2014/vuejs.git
then something error, do you know why?
npm ERR! code 1
npm ERR! Command failed: git checkout HEAD
npm ERR! error: pathspec 'HEAD' did not match any file(s) known to git

after installing gulp v4, my problem not solved, any help here
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout ^0.4.3
npm ERR! error: pathspec '^0.4.3' did not match any file(s) known to git.


Environment, conda, pip

scipy==0.19.0
numpy==1.19.5
pandas==0.20.3
pyyaml==5.1
statsmodels==0.10.2
tensorflow==1.4.0
numexpr==2.6.8
tables==3.7.0
The environment provided by author is too old, and many packages lose efficacy. These are some clear and defined packages that upgrades the requirements.txt. Users can create the new environment  by below code:
conda create -n dcrnn python=3.6
conda activate dcrnn
pip install -r requirements.txt

Supply a GPU environment:
1. create virtual env with python=3.6
conda create --name dcrnn-gpu python=3.6
2. activate it
conda activate dcrnn-gpu
3.  install the correct CUDA, cuDNN with conda.
conda install -c free cudatoolkit=8. cudnn=6.
4. configure the system paths in current terminal temporarily
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/
or automatically configure paths eveytime you activate this conda env by following alternative
mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
5. install tensorflow
pip install --upgrade pip # Be sure you're running the latest pip
pip install tensorflow-gpu==1.4 # install TensorFlow with pip
6. Verify the GPU setup
python3 -c "import tensorflow as tf; print(tf.test.is_gpu_available())"
if print 'True', you've installed tensorflow-gpu suscessfully.
7.  pip install -r requirements.txt
scipy==0.19.0
numpy==1.12.1
pandas==0.19.2
pyyaml==5.1
statsmodels==0.10.2
numexpr==2.6.8
tables==3.5.2
I make sure this virtual env work well on my device NVIDIA GeForce RTX 4060 Ti

Thanks for sharing this! I'm really glad to hear that you got it working well on the RTX 4060 Ti.
Would you be willing to submit a PR to update this? Please include changes to the ReadMe and requirements.txt.

I have submitted a PR to update environment files. Is my operation correct？
https://github.com/White-Charles/DCRNN
Thank you for your work, and I'm sure it's truly inspiring.

Thanks, this looks great! Could you open a PR for these changes? One small note: I think we can remove "fairchem" as it doesn't seem relevant to this repo.

I'm sorry  to forget the edit the text. I modify this mistake and open a PR.


[Question] Why is wetty prompting for my username at login?

I'm trying to use wetty in a docker container running as root. When I visit the webpage, I see the following:
vedantroy login:

I'm mostly confused as to how wetty knows my personal username, since wetty is being run inside of a docker container as follows:
"~/.volta/bin/wetty --port 7998 --ssh-user=root --ssh-pass password"

How do I tell wetty know my personal usernamE?

The underlying question, is I want to run wetty inside of my docker container and have it just work (tm). I know the docker user is root, yet this is not working and I'm not sure why.


Migrate to new Subscription for Staging

Introduction
New management group is being set up and Staging will get a new Azure Subscription. We need to discuss whether we should migrate the Staging environment or not.
Description
Implementation
### Tasks
- [ ] Add another Subscription ID in GH Actions
- [ ] Tear down the Staging resource group in Test Subscription
- [ ] Apply the gh actions to create the new Staging environment
- [ ] Add new fqdn for the Container App in APIM

### Threat modelling
- [X] Does this change introduce any potential security issues?

Acceptance criteria
GIVEN ...
WHEN ....
THEN ...
GIVEN ...
WHEN ....
THEN ...

Currently blocked by https://github.com/Altinn/altinn-platform/issues/787


Light update to Flax NNX MNIST tutorial

@cgarciae @IvyZX
Preview: https://flax--4277.org.readthedocs.build/en/4277/mnist_tutorial.html

thank you @cgarciae and @IvyZX


Push 1.3a1 to PyPI?

1.3a1 is not in PyPI.
Could we get an official release of it? :)

Sure! Just wondering, is this package working properly for you? I haven't been able to test this yet with an existing production site, hence the release wasn't uploaded.

Worked fine for reading at the very least!
Didn't have the time to test writing though. I'll try to get back to you on that!

Writing (POSTing) seems to work fine too. :)

I've added a v1.3b1 to pypi
I've just merged your test suite, and it does seem to fail creating some languages. This could be something I've broken, but it's worth investigating it.

Cheers, this has probably been obviated by v1.3 having been released!
Thanks for the work you've put into Parler and this! :)))


calc_cam_climo logic needs help

ADF run type
Model vs. Obs
What happened?
Note that this is a very unusual case: I'm trying to use ADF to calculate time series but not climatologies. Furthermore, the error occurs after the timeseries are generated, so it just means the script quits on an error, not that it doesn't do what I need. So this is not a high priority bug, but I figure I should file it because it isn't that likely to get exercised again!
When compare_obs = true,  diag_cam_baseline_climo:calc_cam_climo = None.
In lib/adf_diag.py, the logic to determine if climos should be calculated is not properly triggered:

if self.get_cam_info('calc_cam_climo') or
self.get_baseline_info('calc_cam_climo'):

tests positive and goes into trying to calculate the climos.
I tried to solve this but have just become more confused.  I read about truthy and falsey to come up with this test:

print(f"got calc_cam_climo cam {self.get_cam_info('calc_cam_climo')} baseline {self.get_baseline_info('calc_cam_climo')}")
bool_cam      = bool(self.get_cam_info('calc_cam_climo'))
bool_baseline = bool(self.get_baseline_info('calc_cam_climo'))
print(f"bool(cam) {bool_cam} (baseline) {bool_baseline}")

The results are

got calc_cam_climo cam [False] baseline None
bool(cam) True (baseline) False

So the None evalues to False, which is good, we could just use bool.
But the [False] evaluates to True???
ADF Hash you are using
52cbe23
What machine were you running the ADF on?
CISL machine
What python environment were you using?
NPL (CISL machines only)
Extra info
No response

For the record, @brianpm suggests that the get_info functions return boolean values.

I didn't fix the problem, but I have a hypothesis for what is happening.
In adf_diag.py in create_climo is where that logic lives:
if self.get_cam_info('calc_cam_climo') or \
           self.get_baseline_info('calc_cam_climo'):

The get_cam_info method is in adf_info.py, but it doesn't do anything except:
return self.read_config_var(...)

The read_config_var method is in adf_config.py.
I'm pretty sure that what is happening is that read_config_var is working as intended like this
var = var_dict[varname]
return copy.deepcopy(var)

BUT that is a list: [False], and a list that is not empty evaluates as true:
if [False]:
    print("That's a problem")


@clerk/nextjs: DEPRECATION WARNING: "frontendApi" is deprecated and will be removed in the next major release. Use publishableKey instead.

Preliminary Checks

[X] I have reviewed the documentation: https://clerk.com/docs
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.

Reproduction / Replay Link
n/a
Publishable key
pk_test_Y2xlcmsudzRseGEucDB5cXUubGNsLmRldiQ
Description
Steps to reproduce:

Add NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY environment variables to .env.local as illustrated in the docs.
Install @clerk/nextjs v4.29.4

Expected behavior:
The app should work without warnings.
Actual behavior:
Console shows the following warning:
DEPRECATION WARNING: "frontendApi" is deprecated and will be removed in the next major release. Use `publishableKey` instead.

This appears to be a duplicate of #2089 but affecting Next.js rather than Remix.
Environment
System:
    OS: macOS 14.0
    CPU: (20) arm64 Apple M1 Ultra
    Memory: 9.04 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0
    Yarn: 1.22.19
    npm: 10.2.4
    pnpm: 8.8.0
  Browsers:
    Chrome: 120.0.6099.234
    Safari: 17.0
  npmPackages:
    @clerk/nextjs: ^4.29.4 => 4.29.4

Hi @phpnode, thanks for submitting this issue.
I've tried using our quickstart guide and we couldn't get the warning when using     @clerk/nextjs": "^4.29.4" and next": "14.1.0".
Could you provide a minimal reproduction repo, so we could take a better look at the issue?

In an effort to keep our GitHub issues clean and focused, we close any issues that are awaiting a reproduction after 8 days on inactivity, and it has been 7 days. This issue will be closed tomorrow unless a reproduction is produced. If it takes longer than this to get a reproduction, that's ok, just drop a comment and we will re-open the issue then.
Thanks for being a part of the Clerk community! 🙏

After 8 days without a reproduction being supplied, we are closing this issue. Keep in mind, I'm just a robot, so if I've closed this issue in error, please reply here and my human colleagues will reopen it. Likewise if a reproduction is prepared after it has been closed.


ENH: Update for Compatibility with jupyter-book==0.14

This package needs to be updated for compatibility with jupyter-book==0.14+

Closed by #46


SwapExecutions need to be directed

Describe the bug
Currently we make one execution trace for both directions of a swap; instead, there should be two: https://github.com/penumbra-zone/penumbra/pull/2538#discussion_r1190755104

Along the way, we could also change the traces to be at the "frontier" level rather than at the route level, by recording each FrontierTx's trace as a separate trace entry.


MB85RC04 FRAM9

Hi!
First of all, I highly appreciate the time you spend doing good libraries!
I have tried MB85RC04 FRAM (with ESP32) with FRAM9_Test example.
Changes before run:
It is not possible to get the sizeInBytes = fram.getSizeBytes(); so I have set it to sizeInBytes = 100 and changed the printout, of read,  to Serial.println(x); instead of  Serial.println(value); to actually see what is read.
The result I get is:
15:03:18.301 -> Write	95	48
15:03:18.301 -> Write	96	49
15:03:18.301 -> Write	97	49
15:03:18.301 -> Write	98	50
15:03:18.301 -> Write	99	50
15:03:18.301 -> Read	0	50
15:03:18.301 -> Read	1	50
15:03:18.301 -> Read	2	50
15:03:18.301 -> Read	3	50
15:03:18.301 -> Read	4	50
15:03:18.301 -> Read	5	50
15:03:18.301 -> Read	6	50
15:03:18.333 -> Read	7	50
I have tried to only write one address and the result is the same.

Thanks for the issue.
Might take a few days before I can dive into this. (Too busy)
As I have no such FRAM to test it might ask you to do test runs.

Sure, no problem at all.

Im pretty sure that it is an addressing error and that I read address 0 every time.  When I tried setting i.e 0x1000 and  0x2000 instead of 0x01 0x02, it is possible to write and read those addresses with different values. I hope this helps out.

It is not possible to get the sizeInBytes = fram.getSizeBytes();

The size of the FRAM9 == 512 bytes, it is hard coded so it should return 512
Ran the testsketch without an FRAM9 and even then it returns:
FRAM_LIB_VERSION: 0.5.2
INIT ERROR: -12
   KB  :	0
BYTES  :	512
...

So what do you get (first 4-5 lines)?

Q: you are using which version of the library?
FRAM9 support is experimental and not tested by me, wrote it from datasheet after a request for FRAM11
See https://github.com/RobTillaart/FRAM_I2C/issues/28

Q: can you post your modified sketch, might help.

Im using latest version.

28 apr. 2023 kl. 19:59 skrev Rob Tillaart @.***>:

Q: you are using which version of the library?
FRAM9 support is experimental and not tested by me, wrote it from datasheet after a request for FRAM11
See #28
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

20:23:24.063 -> FRAM_LIB_VERSION: 0.5.2
20:23:24.063 ->    KB  :       0
20:23:24.063 -> BYTES  :       0
20:23:24.174 -> done...
Från: Rob Tillaart @.>
Skickat: den 28 april 2023 19:53
Till: RobTillaart/FRAM_I2C @.>
Kopia: GWiking @.>; Author @.>
Ämne: Re: [RobTillaart/FRAM_I2C] MB85RC04 FRAM9 (Issue #35)
It is not possible to get the sizeInBytes = fram.getSizeBytes();
The size of the FRAM9 == 512 bytes, it is hard coded so it should return 512
Ran the testsketch without an FRAM9 and even then it returns:
FRAM_LIB_VERSION: 0.5.2
INIT ERROR: -12
KB  :       0
BYTES  :       512
...
So what do you get (first 4-5 lines)?
—
Reply to this email directly, view it on GitHub https://github.com/RobTillaart/FRAM_I2C/issues/35#issuecomment-1527899089 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A2Q4AFHR2YTJBU5XKI6ZOSTXDP7YXANCNFSM6AAAAAAXPHPM4I .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/A2Q4AFA4HR6OIYGMPHFE3LDXDP7YXA5CNFSM6AAAAAAXPHPM4KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS3CHR5C.gif Message ID: @.*** @.***> >

//
//    FILE: FRAM9_test.ino
//  AUTHOR: Rob Tillaart
// PURPOSE: demo FRAM9 memory test
//     URL: https://github.com/RobTillaart/FRAM_I2C
#include "FRAM.h"
FRAM9 fram;
uint32_t start;
uint32_t stop;
uint32_t sizeInBytes = 0;
void setup()
{
Serial.begin(115200);
Serial.println(FILE);
Serial.print("FRAM_LIB_VERSION: ");
Serial.println(FRAM_LIB_VERSION);
Wire.begin();
int rv = fram.begin(0x50);
if (rv != 0)
{
Serial.print("INIT ERROR: ");
Serial.println(rv);
}
//  get size
Serial.print("   KB  :\t");
Serial.println(fram.getSize());
Serial.print("BYTES  :\t");
Serial.println(fram.getSizeBytes());
sizeInBytes = fram.getSizeBytes();
delay(100);
test();
Serial.println("done...");
}
void loop()
{
}
void test()
{
//  addr goes from 0 .. 512
//  value goes from 0.. 255
// uint8_t value = 0x00;
// for (uint32_t addr = 0; addr < sizeInBytes; addr++)
// {
//   if (addr % 2 == 0) value++;
fram.write8(0x1000, 0x0A);
fram.write8(0x2000, 0x0B);
Serial.println(fram.read8(0x1000));
Serial.println(fram.read8(0x2000));

//   Serial.print("Write\t");
//   Serial.print(addr);
//   Serial.print("\t");
//   Serial.println(value);
// }
// // read back
// value = 0x00;
// for (uint32_t addr = 0; addr < sizeInBytes; addr++)
// {
//   if (addr % 2 == 0) value++;
//   uint8_t x = fram.read8(addr);
//   if (x != value)
//   {
//     Serial.print("Read\t");
//     Serial.print(addr);
//     Serial.print("\t");
//     Serial.println(value);
//   }
// }
}
//  -- END OF FILE --

gives printout:
20:29:50.827 -> FRAM_LIB_VERSION: 0.5.2
20:29:50.827 ->    KB  :	0
20:29:50.827 -> BYTES  :	0
20:29:50.829 -> 10
20:29:50.829 -> 11
20:29:50.829 -> done...

And with  FRAM not connected:
20:32:03.635 -> FRAM_LIB_VERSION: 0.5.2
20:32:03.635 -> INIT ERROR: -12
20:32:03.635 ->    KB  :	0
20:32:03.635 -> BYTES  :	512
20:32:04.738 -> 255
20:32:05.739 -> 255
20:32:05.739 -> done...

Thanks for this data, think I have enough to start to investigate.
    fram.write8(0x1000, 0x0A);
    fram.write8(0x2000, 0x0B);

    Serial.println(fram.read8(0x1000));
    Serial.println(fram.read8(0x2000));

These addresses are way bigger than the 512 bytes. OK interesting,

Think I found the cause.

FRAM9 inherits begin() from FRAM.
begin() calls getSize()

this is the getSize from FRAM, not from FRAM9, you can verify this by setting a print statement in the getSIze of FRAM.
I will create a develop branch to fix this.

Result:
07:24:07.763 -> FRAM_LIB_VERSION: 0.5.3
07:24:07.763 ->    KB  :	0
07:24:07.763 -> BYTES  :	512
Printout for the write read, just to show result:
Changed to printout actually data Serial.println(x);
07:24:08.474 -> Write	508	255
07:24:08.507 -> Write	509	255
07:24:08.507 -> Write	510	0
07:24:08.507 -> Write	511	0
07:24:08.507 -> Read	0	255
07:24:08.507 -> Read	1	255
07:24:08.507 -> Read	2	255
07:24:08.507 -> Read	3	255
07:24:08.507 -> Read	4	255
07:24:08.507 -> Read	5	255

Looks good! Sounds like it is working now as expected.
Or are there still problems?
I will reference this issue in the readme as "FRAM9 test"

Yes still problem with the addresses of the memory please see the printout. It only reads or maybe also writes the same address. Thats why I played around and found that 0x1000 worked but not 0x0001.

29 apr. 2023 kl. 10:48 skrev Rob Tillaart @.***>:

Looks good! Sounds like it is working now as expected.
Or are there still problems?
I will reference this issue in the readme as "FRAM9 test"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Ok will investigate further after lunch.

mmm, looks like the same problem as the getSize.
I have added write8() and read8() to the FRAM interface to be sure the right writeBlock() is called.
Can you give it  a try?
If that works I will move the whole interface.

Brilliant!
I think You have a debug print in write also "hoela"?
This is the result write->read
Removed the if and printed out all read values even when matching the write.
12:59:40.030 -> Write	506	254
12:59:40.030 -> hoela
12:59:40.030 -> Write	507	254
12:59:40.030 -> hoela
12:59:40.030 -> Write	508	255
12:59:40.030 -> hoela
12:59:40.030 -> Write	509	255
12:59:40.030 -> hoela
12:59:40.030 -> Write	510	0
12:59:40.030 -> hoela
12:59:40.030 -> Write	511	0
12:59:40.030 -> Read	0	1
12:59:40.030 -> Read	1	1
12:59:40.030 -> Read	2	2
12:59:40.030 -> Read	3	2
12:59:40.030 -> Read	4	3
12:59:40.030 -> Read	5	3
12:59:40.030 -> Read	6	4
12:59:40.030 -> Read	7	4
Thank You very much for Your work!

Good to hear it is working, it was my mistake regarding inheritance.
I need investigate how to improve or so (template class)
Pushed a cleaned version, without the "hoela"  😎 which I used to see that the correct writeBlock() was called.
I won't merge the develop now as I want to look at it later with a fresh pair of eyes.
And I need to fix the FRAM11 class too, has the same problems.
Thanks for testing so far!
Can you test the following functions for me?

getManufacturerID();  //  just interested in the return value
getProductID();   //  just interested in the return value
clear()      // as it uses internal size admin.

Latest push include the fixes for FRAM11, so no changes for FRAM9.

I will do the testing on monday, I have no HW available until then.

29 apr. 2023 kl. 13:35 skrev Rob Tillaart @.***>:

Latest push include the fixes for FRAM11, so no changes for FRAM9.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

@GWiking
I rewrote the FRAM9/11 implementation.
Made the low level writeBlock() and readBlock() virtual so the right code is selected runtime.
Also getSize() became virtual.
Please let me know if the latest version still works.

Yes still works :)
Clear OK!
12:58:00.552 -> ManufID:10
12:58:00.552 -> ProdID:16

Super, thanks for testing.
Then I will merge later today.
If you have time could you please read the readme.md to see if things sre missing?
I read it too often to see ambiguities or worse missing information.

Looks great! Thanks!

Merged develop and released 0.5.3,
Thanks for all your testing!


revamp: list items design on homepage ✨

Related Issue
Closes: #581
Description of Changes

Revamped the design of the List and It's items on Homepage.
Added tailwind utility classes to revamp the design properly.

Checklist:

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

You review is highly appreciated 🙌🏻

Two more fixes

Size of logo at nav bar should be increased and aligned properly
Please change the test to have any three good mentor at good positions

@anmode i thought that this a design that left intentionally, Does this not ?

No no @0xabdulkhalid design is perfect please do not change it.

If yes, then @anmode we can merge this PR now!

I'm from South @anmode, i can't understand.
Please try to explain it in English.

@Isha988 Can you include any screenshots of distortion here to make necessary changes.

@Isha988 Can you include any screenshots of distortion here to make necessary changes.

@0xabdulkhalid please look at this

The quote icon was in left but now it comes in center

Done @Isha988 👍🏻

Now this PR is ready to merge @anmode rocket

📌 📝

Thanks @Isha988 for reviewing!


Add SearchApi logo to users

Added the SearchApi logo to the user's list!
We're using standardrb and standard ❤

dbf114274535705ad6c23e116ce9764261ddcec0


Cannot find name 'TranslateStaticLoader'.

Not able to call http services to get the translation sources
Current behavior
Cannot find name 'TranslateStaticLoader'.
Expected/desired behavior
'TranslateStaticLoader' shall be there to load translation sources from service calls.
ngx-translate version:** 6.0.1
Angular version:**4

TranslateStaticLoader doesn't exist in version 6.x anymore, it has been replaced by TranslateHttpLoader (you will need to install the npm module @ngx-translate/http-loader): https://github.com/ngx-translate/http-loader


decouple balances from some modules

related to https://github.com/paritytech/substrate/issues/1514
This is a first raw implementation of a decoupling of balances from other modules.
What is done

modification of decl_event! to be able to use some more complex generic types in events. It can now handle all type for named generics ( Name = ty ) and if it fails to handle unnamed ones then it compile with a message advising to name it.
creation of traits in sr-primitives TransferToken and Staking and some modules now use a generic type that is bond to one of them or both.

so that works
what is to be done

Traits are very inconsistent TransferToken include lots of fee related methods, Staking have slash related methods and total balance.
We have to abstract also OnDilution and OnFreeBalanceZero traits that are in balances crate.
The abstraction should stay in srml not in core isn't it ?
Some associated type names are not good like Staking::Staking...

Yes some methods seems private but it is because of contract specific requirements: This are the reasons:

it uses an overlay: therefore it needs access to existencial_deposit, ensure_account_liquid, free_balance
Maybe the overlay should be provided in the trait TransferAsset or in a new one TransferAssetOverlay: TransferAsset {...}

transfer fees are payed in Gas instead of Balance: therefore it needs access to

creation_fee and transfer_fee to actually compute fees
set_free_balance_creating to be able to modify free_balance without fee

buy_gas: it needs to be able to return Error without buying anything when the account would have died. To do so it needs existencial_deposit, free_balance.
Something like can_slash_without_die(...) -> bool or simulate_transfer_from(...) -> UpdateBalanceOutCome would make it. I'm not very used to naming in substrate yet.

transaction_byte_fee and transaction_base_fee are used to implement DispatchFeeComputor for DefaultDispatchFeeComputor: It seems this could easily use xlc trait ChargeBytesFee<AccountId>

Today I was thinking about what to expose in the trait, here some thoughts:

All modules except contract can work with a quite high level interface on balance, only treasury needs a new method that could be reward_with_no_stake_increase, this interface it: (it would be completed a bit)

  can_slash
  repatriate_reserved
  reserve
  reward
  reward_with_no_stake_increase
  slash
  slash_reserved
  total_balance
  total_issuance

Contract actually use the low level methods on balance. Abstracting those methods may be a bit hard. But my worry are that the abstraction resulting may not fit all usage at all and some other module would need those low level methods or a new quite specific abstraction.
Thus I wonder: Does the methods currently exposed by balance have to be abstracted ? I mean: does UTXO fits inside ? (I don't know at all yet), and does multitoken assets ? (next point)
If the current API works we can make the interface as such.

About multitoken assets: in the current implementation contract could use one balances and another module another one. But balances module is only one balances. To make it being able to be used in multiple form we can make it generic over a type with a default like this:
(but for that we need to modify decl_module! a bit)

pub struct DefaultTokenKind;
pub struct AlternativeToken0
pub struct AlternativeToken1
pub struct AlternativeToken2
pub struct AlternativeToken3
...

decl_module! {
	pub struct Module<T: Trait, M=DefaultTokenKind> for enum Call where origin: T::Origin {
  }
}

/////////////////////// then used like ///////////////////////

impl staking::Trait for Runtime {
	type Staking = balances::Module<Self>;
	type OnRewardMinted = Treasury;
	type Event = Event;
}

impl democracy::Trait for Runtime {
	type Staking = balances::Module<Self, AlternativeToken0>;
	type Proposal = Call;
	type Event = Event;
}

It would be cool to have parameterisable modules (i.e. to use the same module twice under different configurations).
I think it may make sense to have contracts module require something much more closely resembling balances than other modules (staking, democracy, treasury) need.

It seems like it is hard to abstract away the coupling between contract module and balances module without some major refactoring work to been done on contract module to somehow avoid the duplicated balances accounts logic.
It may be worth while to leave that part in this PR to ensure the scope is limited and we don't provide a leaky abstraction.
A potential solution for contract - balances coupling issue is introduce a new OverlayTransferToken trait that implements TransferToken trait and provides some additional method commit, make it suitable for contract module.
One goal I would like to (have to) achieve is make contract module to support multi token in the sense that its transfer method can transfer any kind of the supported tokens. I will want to able to provide an alternative implementation of this OverlayTransferToken which use our generic asset module to implement the semantic of the OverlayAccountDb.

OK I do agree, contract could be decoupled in another PR, OverlayTransferToken is a good direction but doesn't solve everything as some are related to gas use for fees.
current state of PR:

modification of decl_event! see first post
creation of a coherent Staking trait replacing balances module in all modules except Contracts (so Treasury, Council, Democracy and Staking)
move of OnDilution, OnFreeBalanceZero and EnsureAccountLiquid into sr-primtive/trait

TODO:

I don't know if Staking, OnDilution, OnFreeBalanceZero and EnsureAccountLiquid fits in sr-primitive/trait, I would have expected them in srml in something like AbstractBalance module but I don't know.

Also here are some thoughs on abstracting contracts:
in the overlay I only need:

transfer_fee_to(dest) -> Balance: return fees to transfer to it
make_transfer_with_no_fee(who, dest, value) -> Result: make the actual transfer but do no fee
commit: do the actual transfers

to buy gas:

can_slash_without_die: to be able not to buy gas in case it can't (could be add to staking)
slash (already in staking)

to refund_gas:

reward (already in staking)

to implement DefaultComputeDispatchFee

base_byte_fee(len) -> Balance: still not sure about that part

looks good apart from the minor repotting.

The naming is rather funky.

Yes indeed

More naming issues.

@thiolliere please take a look at my changes. if all good, feel free to merge.

don't you want to make the doc of increase_free_balance_creating more warrant ?
well the new naming and the note seems seems fine to me. I approve and will merge


Codegen defaults the class authorised attribute to AllowAnonymous when not provided

Previously when the Codegen WebApiAuthorize attribute was not provided, it didn't set the authorised on the controller class. This allowed us to override individual methods to specify different policies at the method level. Now it appears that if no value is provided the "AllowAnonymous" attribute is appended to the class which bypasses any policy authorisation at the method level. This opens up all the methods within the class to unauthorised access.

Hi @Mareeza92. I have reviewed the current templates and existing behaviour. It should now act as follows:

Controller level - will only output where specified; will no longer default to AllowAnonymous.
Method level - will only output where specified; will no longer default to parent (entity) value.

NuGet package Beef.CodeGen.Core version 4.1.11 published.
Cheers...

Closing as there has been no further feedback for a week.


Unify the PyAnsys landing page for libs

Different libs in the PyAnsys have different layout for landing page.
Making a uniform layout will be better for all the libs
example:

https://geometry.docs.pyansys.com/version/stable/index.html
https://mapdl.docs.pyansys.com/version/dev/index.html

Issue initially reported by @jorgepiloto
Pinging @mia-guo-ux as we discussed in private

Hi @Revathyvenugopal162 @jorgepiloto
I suggest using a 3-column layout on home pages.

In addition, the following improvements could be considered:
Standardizing the icons in each card, or remove the icons completely.

For example, whenever the card is about "Examples", we can use the same icon on different homepages (i.e. using the icon on PyMAPDL and PyAnsys Geometry examples cards)

Keeping a consistent naming and description convention.

Currently, cards on the two homepages have different naming styles. The card headers of PyMAPDL seem to be short phrases starting with a verb, where card headers of Geometry are much shorter, with 1 or 2 verbs/nouns. I prefer the latter one because it is simpler.

PyMAPDL (screenshot from the website)

Geometry (screenshot from the website)

The screenshots above provide updated card headers on PyMAPDL and feel free to change the card header to whatever summarize the page content.

Arranging the cards on homepages in an order that is as consistent as possible. We can start with crucial and technical cards and end with social or style guide cards.

The screenshots above show the updated card order. Please feel free to rearrange the cards in a way that you think would help the users read and understand the content.

I suggest using a 3-column layout on home pages.

I think these should reduce to two, then one column as the viewport gets narrower (e.g. on phones) when the original 3 no longer fit.

I suggest using a 3-column layout on home pages.

Detail: I think these should reduce to two, then one column as the viewport gets narrower (e.g. on phones) when the original 3 no longer fit.

We have the 3-column layout on PyAnsys homepage too. I also found this layout on other Ansys web products. For smaller screens, we can have several breakpoints so once a certain screen size is reached, we change the layout.

That would be great to set those so we fit most of the screens.

@mia-guo-ux Are we dropping logos in the landing page? Should we request some unified set of logos too?

I wouldn't drop the logos - but I would standardize their usage for sure (Logo XYZ corresponds to ABC on all our docs). This is currently not the case - each repo uses their preferred logos at the moment.

Some other inconsistencies I've been noticing when working on PySTK and comparing to other PyAnsys sites:
Site title
Title conventions are inconsistent across the libraries. Some use the PyAnsys library logo:

Some sites have a title as such:

Landing page intros
Some sites include a brief intro about the PyAnsys library, some include lengthy descriptions that span a good portion of the page, and others do not include an intro at all.
It would be great for all of these to be fairly consistent to have a unified feel.

Hi @davegouger! You are completely right. Ideally, all libraries should have a logo but not all of them have it. Meaning that the fallback mechanism (in that case is having the title). We might have to work with marketing to get a logo for each and one of our libraries to standarize it. I think the logos look much better anyway.
And yes, we should standarize the intros. Ideally there should be no text (or almost no text). Cards should do the job to redirect you to the area you want.

Let's update the landing page of our theme docs according to this, @Revathyvenugopal162.


Jobs getting stuck due to GitHub rate limiting refreshWorkflowRunStatus in v2.5.7

Hi, I upgraded to v2.5.7 yesterday and about an hour ago, started to get all my jobs queued due to GitHub rate limiting the API refreshWorkflowRunStatus.  I initially upgraded from v2.5.4 because I was getting the delete runner API rate limited, but seems upgrading only moved the issue from one API to another. Any stable version I can downgrade until this issue gets fixed for good?
Here are the relevant logs:
{
    "level": "info",
    "app_environment": "production",
    "app_stack_name": "runs-on",
    "app_version": "v2.5.7",
    "labels": [
        "runs-on",
        "runner=1cpu-linux-x64",
        "run-id=11574316123"
    ],
    "status": "queued",
    "run_id":<PHONE_NUMBER>3,
    "deployment_id": 0,
    "job_id":<PHONE_NUMBER>7,
    "job_url": "REDACTED",
    "job_name": "CI / Validate",
    "time": "2024-10-29T13:45:40Z",
    "message": "Calling GitHub API (refreshWorkflowRunStatus)"
}

{
    "level": "error",
    "app_environment": "production",
    "app_stack_name": "runs-on",
    "app_version": "v2.5.7",
    "labels": [
        "runs-on",
        "runner=1cpu-linux-x64",
        "run-id=11574316123"
    ],
    "status": "queued",
    "run_id":<PHONE_NUMBER>3,
    "deployment_id": 0,
    "job_id":<PHONE_NUMBER>7,
    "job_url": "REDACTED",
    "job_name": "CI / Validate",
    "error": "rate: Wait(n=1) would exceed context deadline",
    "time": "2024-10-29T13:45:40Z",
    "message": "Error waiting for GitHub rate-limiter to proceed"
}

{
    "level": "error",
    "app_environment": "production",
    "app_stack_name": "runs-on",
    "app_version": "v2.5.7",
    "labels": [
        "runs-on",
        "runner=1cpu-linux-x64",
        "run-id=11574316123"
    ],
    "status": "queued",
    "run_id":<PHONE_NUMBER>3,
    "deployment_id": 0,
    "job_id":<PHONE_NUMBER>7,
    "job_url": "REDACTED",
    "job_name": "CI / Validate",
    "error": "rate: Wait(n=1) would exceed context deadline",
    "time": "2024-10-29T13:45:40Z",
    "message": "Failed to fetch workflow run status"
}

{
    "level": "error",
    "app_environment": "production",
    "app_stack_name": "runs-on",
    "app_version": "v2.5.7",
    "labels": [
        "runs-on",
        "runner=1cpu-linux-x64",
        "run-id=11574316123"
    ],
    "status": "queued",
    "run_id":<PHONE_NUMBER>3,
    "deployment_id": 0,
    "job_id":<PHONE_NUMBER>7,
    "job_url": "REDACTED",
    "job_name": "CI / Validate",
    "error": "rate: Wait(n=1) would exceed context deadline",
    "time": "2024-10-29T13:45:40Z",
    "message": "❌ Unable to schedule runner. Will be retried if possible."
}

I believe you were already rate-limited or close to the limit before you performed the migration, and so v2.5.7 inherited it. The issue is that GitHub rate-limits over a sliding window of 1h, instead of regularly giving back tokens every second. So if you had exhausted all your credits, no job can run until the 1h window expires.
I believe v2.5.7 should work fine once you get your credits back. Depending on your load and rate-limit issues, you could also use the Environments feature of RunsOn to use multiple GitHub Apps, so that you can combine the rate-limits for each app (each app gets its own rate-limit).
You can follow the token situation by grepping for "Current tokens" in the AppRunner logs. Would be interesting to know what is your GitHub rate-limit.

@bruno-chavez hello, a regression has indeed been found in v2.5.7, please upgrade to v2.5.8. Sorry for the inconvenience!

Hi! Thank you for reporting back, will stay in v2.3.2 for a week or two in order to test if any rate limiting issues happens in that version as well. After that we will make sure to update to the latest version!


Generating a function in another module doesn't work

The new Add function code action by SnippetTextEdit will fail to generate the function.
For example, there is no bar function in foo.rs, foo::bar(); provides Add function action, but will not generate the function after the action fired.

It works for me when the module already exists:
fn main() {
    bar::foo(42);
}

mod bar {
}

It also works in the current module:
mod bar {
    pub(crate) fn foo(arg: i32) {
        self::baz();
        // or even
        crate::bar::baz();
    }

But it doesn't work with bar::baz because that's actually bar::bar::baz, which doesn't exist.

cc @TimoFreiberg

I won't be able to look into this for another few days, but I'm planning on doing so

After some tests, I found that Add function action in same module with a correct textEdit range, but if the module in a different file, the range is incorrect.

I can't reproduce this issue with current versions, it works properly in nvim using coc-rust-analyzer. I can't try VS Code right now as it's somehow borked on my machine :shrug:
I'd be very thankful if anyone could try to reproduce the bug using VS Code to see if it's fixed on the latest nightly.

Still not work with RA+VSCode. Yes, coc-rust-analyzer works for this, but fails to do selection, I just disable it because the wrong range, will look into this later.

Aw...
https://github.com/rust-analyzer/rust-analyzer/blob/a3ff2751b4cf8625e2874a482fe4d58da3d02891/editors/code/src/snippets.ts#L9
vscode.window.visibleTextEditors seems to only include editors whose content is displayed at that moment.
It works when I open the other file in a separate split, but only then.


_grpc_catch_rendezvous Unauthorized - Datastore - AppEngine Flexible

I'm running instance at App Engine Flexible.
I'm working with Google Datastore using google-cloud-python (now it's 0.23.0)
I've noticed datastore operations are used to fail with the stack like that:
File "/env/local/lib/python2.7/site-packages/google/cloud/datastore/client.py", line 312, in get_multi transaction_id=transaction and transaction.id,
File "/env/local/lib/python2.7/site-packages/google/cloud/datastore/client.py", line 123, in _extended_lookup transaction_id=transaction_id,
File "/env/local/lib/python2.7/site-packages/google/cloud/datastore/_http.py", line 340, in lookup lookup_response = self._datastore_api.lookup(project, lookup_request)
File "/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 111, in lookup return self._stub.Lookup(request_pb)
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback)
File "/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 67, in _grpc_catch_rendezvous raise error_class(exc.details()) Unauthorized: 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

The failure is used to appear every hour.
Any idea?
PS. I suppose the issue is nearly new-born, I haven't seen it around a month ago.

@yaalaa can we get the output of pip freeze / your deployed requirements.txt?

here you are, @jonparrott
appdirs==1.4.3
Babel==2.4.0
cachetools==2.0.0
certifi==2017.1.23
cffi==1.10.0
click==6.7
dill==0.2.6
enum34==1.1.6
Flask==0.12
Flask-Babel==0.11.1
Flask-Login==0.4.0
Flask-Misaka==0.4.1
Flask-Mobility==0.1.1
Flask-Table==0.4.1
future==0.16.0
futures==3.0.5
gapic-google-cloud-datastore-v1==0.15.3
gapic-google-cloud-error-reporting-v1beta1==0.15.3
gapic-google-cloud-logging-v2==0.91.3
gapic-google-cloud-pubsub-v1==0.15.3
gapic-google-cloud-spanner-admin-database-v1==0.15.3
gapic-google-cloud-spanner-admin-instance-v1==0.15.3
gapic-google-cloud-spanner-v1==0.15.3
gapic-google-cloud-speech-v1beta1==0.15.3
gapic-google-cloud-vision-v1==0.90.3
google-auth==0.10.0
google-auth-httplib2==0.0.2
google-cloud==0.23.0
google-cloud-bigquery==0.23.0
google-cloud-bigtable==0.23.1
google-cloud-core==0.23.1
google-cloud-datastore==0.23.0
google-cloud-dns==0.23.0
google-cloud-error-reporting==0.23.2
google-cloud-language==0.23.1
google-cloud-logging==0.23.1
google-cloud-monitoring==0.23.0
google-cloud-pubsub==0.23.0
google-cloud-resource-manager==0.23.0
google-cloud-runtimeconfig==0.23.0
google-cloud-spanner==0.23.1
google-cloud-speech==0.23.0
google-cloud-storage==0.23.1
google-cloud-translate==0.23.0
google-cloud-vision==0.23.3
google-gax==0.15.8
googleapis-common-protos==1.5.2
grpc-google-iam-v1==0.11.1
grpcio==1.2.1
httplib2==0.10.3
httplib2shim==0.0.1
iso8601==0.1.11
itsdangerous==0.24
Jinja2==2.9.5
MarkupSafe==1.0
misaka==2.1.0
oauth2client==4.0.0
packaging==16.8
ply==3.8
proto-google-cloud-datastore-v1==0.90.3
proto-google-cloud-error-reporting-v1beta1==0.15.3
proto-google-cloud-logging-v2==0.91.3
proto-google-cloud-pubsub-v1==0.15.3
proto-google-cloud-spanner-admin-database-v1==0.15.3
proto-google-cloud-spanner-admin-instance-v1==0.15.3
proto-google-cloud-spanner-v1==0.15.3
proto-google-cloud-speech-v1beta1==0.15.3
proto-google-cloud-vision-v1==0.90.3
protobuf==3.2.0
psutil==5.2.1
pyasn1==0.2.3
pyasn1-modules==0.0.8
pycparser==2.17
pyparsing==2.2.0
pytz==2017.2
PyYAML==3.12
regex==2017.2.8
requests==2.13.0
rsa==3.4.2
six==1.10.0
termcolor==1.1.0
twilio==5.7.0
Unidecode==0.4.20
urllib3==1.19.1
Werkzeug==0.12.1

Is this an intermittent failure?

@lukesneeringer

The failure is used to appear every hour.

That coincides with the token refresh interval. Is datastore perhaps not retrying requests on 401?

FYI folks, more my observances, if you'd like.
It looks like initermittent. At least there are long enough periods while the issue is not happening.
I haven't dared to retry 401-failed requests, BTW.
I'm not sure whether it tries to refresh the token and then to retry the original request.

That seems like something the client should handle for you. We will look into it.

I just started using datastore libraries on GAE Flexible (migrating from NDB), and am seeing this exact same error. Glad to see it's being looked into.
However, it doesn't appear to be intermittent for me.
3:47 - deployment
3:51 - (3:51-ish) go-live
4:17 - the above errors start, and keep going...
4:38 - i push again, and the next push goes live, and the errors finally stop
5:30 - errors haven't come back...yet
To be clear, I am constructing a long-lived client at the module level, and then using that global from the functions:
client = datastore.Client()

def _save_cache(key, data):
  obj = datastore.Entity(key=client.key('TableName', key), exclude_from_indexes=['data'])
  obj['data'] = data
  client.put(obj)

def _get_cache(key):
  result = client.get(client.key('TableName', key))
  if result:
    return result['data']
  else:
    return None

I didn't see best-practices in the docs, so I'm not sure if I should be constructing a new client per-request and then passing-it-down through all of my db calls.

I didn't see best-practices in the docs, so I'm not sure if I should be constructing a new client per-request and then passing-it-down through all of my db calls.

You shouldn't need to, though we are still working on making our clients threadsafe, so if your application is doing any threading you may see issues (though I don't think that is related to this issue).

I'm thinking that this and #3212 have the same root cause.

And perhaps it's obvious, but just to follow-up: If I create a new datastore client on each servlet request, then I no longer get the errors mentioned above.

I can confirm we are also seeing this problem:

    gamestate = datastore_client.get(datastore_key)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/client.py", line 309, in get
    deferred=deferred, transaction=transaction)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/client.py", line 356, in get_multi
    transaction_id=transaction and transaction.id,
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/client.py", line 138, in _extended_lookup
    project, read_options, key_pbs)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/_gax.py", line 115, in lookup
    return super(GAPICDatastoreAPI, self).lookup(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 100, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/_gax.py", line 82, in _catch_remap_gax_error
    six.reraise(error_class, new_exc, sys.exc_info()[2])
  File "/usr/local/lib/python3.6/site-packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/_gax.py", line 74, in _catch_remap_gax_error
    yield
  File "/usr/local/lib/python3.6/site-packages/google/cloud/datastore/_gax.py", line 115, in lookup
    return super(GAPICDatastoreAPI, self).lookup(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/gapic/datastore/v1/datastore_client.py", line 204, in lookup
    return self._lookup(request, options)
  File "/usr/local/lib/python3.6/site-packages/google/gax/api_callable.py", line 419, in inner
    return api_caller(api_call, this_settings, request)
  File "/usr/local/lib/python3.6/site-packages/google/gax/api_callable.py", line 407, in base_caller
    return api_call(*args)
  File "/usr/local/lib/python3.6/site-packages/google/gax/api_callable.py", line 368, in inner
    return a_func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/google/gax/retry.py", line 126, in inner
    ' classified as transient', exception)
google.cloud.exceptions.Unauthorized: 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

Orange spikes indicate Unauthorized errors
We are running in K8s (GKE) with volume-mounted pubsub

I am experiencing this issue as well. I basically have had to make a library which retries every put, get or fetch request which fails with a new request that creates a new client.

This should be fixed by https://github.com/GoogleCloudPlatform/google-auth-library-python/releases/tag/v1.0.1 which was just released. Try making sure that package is up-to-date and if this is still an issue, let us know.

Seems fixed, at the first glance. (1.5hour testing).
Thanks

I still see this issue (have verified the libraries on disk contain the patch referenced above):
Unauthorized: 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at inner (/env/local/lib/python2.7/site-packages/google/gax/retry.py:127)
at inner (/env/local/lib/python2.7/site-packages/google/gax/api_callable.py:376)
at base_caller (/env/local/lib/python2.7/site-packages/google/gax/api_callable.py:416)
at inner (/env/local/lib/python2.7/site-packages/google/gax/api_callable.py:428)
at lookup (/env/local/lib/python2.7/site-packages/google/cloud/gapic/datastore/v1/datastore_client.py:204)
at lookup (/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py:115)
at _catch_remap_gax_error (/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py:74)
at _catch_remap_gax_error (/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py:82)
at __exit__ (/usr/lib/python2.7/contextlib.py:35)
at lookup (/env/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py:115)
at _extended_lookup (/env/local/lib/python2.7/site-packages/google/cloud/datastore/client.py:138)
at get_multi (/env/local/lib/python2.7/site-packages/google/cloud/datastore/client.py:356)
at get (/env/local/lib/python2.7/site-packages/google/cloud/datastore/client.py:309)

I push an instance at 17:21, which starts receiving traffic at 17:33. Errors start at 17:46 and continue indefinitely until I re-push a new instance.
For the moment, I've gone back to my "create a new client for each incoming request" workaround to keep things working.

@mikelambert Any chance there is clock drift on the machine? Is it possible you have multiple envs and one has the old version installed?

These are freshly-created GAE Flexible VM instances. I assume Google's clock drift should be good.
These are then instantiated from the same docker image (so checking on one machine should speak for the rest).

This issue is closed. Should I open a new issue to track the problem I was seeing, under the assumption that it's a different issue with a different cause?
(Mine was perhaps different from the originally-reported error, in that it wasn't intermittent, and instead started-and-kept-occurring after running a certain length of time.)

I think it's fine to keep the issue here?

@mikelambert Are you still having this issue?
It is a new issue with a new cause, as you said, and hopefully it has been fixed by some of our more recent updates (in particular, getting rid of httplib2).
I am going to close this as stale, but feel free to open a new issue if the problem is still extant.

My issue appears to have been resolved when I upgraded to the latest version. Thanks!


Can ExpandableRecyclerViewWrapperAdapter only one group expandable?

I want to modify ExpandableRecyclerViewWrapperAdapter let it one group can expandable. How to do? Thank you.

I try to modify like this but not success.
Please help me how to do.
Thank you.
ExpandableRecyclerViewWrapperAdapter.java   Line 701.
if (expand) {
if (mPreGroupPosition != -1) {
mPositionTranslator.collapseGroup(mPreGroupPosition);
}
expandGroup(groupPosition, true, null);
} else {
collapseGroup(groupPosition, true, null);
}
mPreGroupPosition = groupPosition;

java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{3dbc6e98 position=1 id=0, oldPos=-1, pLpos:-1 not recyclable(1)}
I got this error message. Please help me. Thank you.

Its not clear what you want to achieve. I assume you want one group can be opened only.
Override the method:
@Override
public boolean onCheckCanExpandOrCollapseGroup(GroupViewHolder holder, int groupPosition, int x, int y, boolean expand) {

}

I want only one group expand at once. When I click another group, this group expand and previous group collapse.

@jacklai24 Hi. Sorry for the very late response 🙇

I want only one group expand at once. When I click another group, this group expand and previous group collapse.

Okay, but I think you do not need to modify the internal of this library. Try the following code snippet, it may work as you need.
static class MyAdapter extends AbstractExpandableItemAdapter<...> implements View.OnClickListener {
    RecyclerViewExpandableItemManager mExpandableManager;

    public MyAdapter(RecyclerViewExpandableItemManager expandableManager) {
        setHasStableIds(true);
        mExpandableManager = expandableManager;
    }

    @Override
    public MyGroupViewHolder onCreateGroupViewHolder(ViewGroup parent, int viewType) {
        View v = LayoutInflater.from(parent.getContext()).inflate(..., parent, false);
        v.setOnClickListener(this);  // <- Set click event listener
        return new MyGroupViewHolder(v);
    }

    @Override
    public boolean onCheckCanExpandOrCollapseGroup(MyGroupViewHolder holder, int groupPosition, int x, int y, boolean expand) {
        return false;   // <- Do not expand automatically on clicked a group item. Instead, we handle click event manually.
    }

    @Override
    public void onClick(View view) {
        RecyclerView rv = RecyclerViewAdapterUtils.getParentRecyclerView(view);
        RecyclerView.ViewHolder vh = rv.findContainingViewHolder(view);

        long packedPosition = mExpandableManager.getExpandablePosition(vh.getAdapterPosition());
        int groupPosition = RecyclerViewExpandableItemManager.getPackedPositionGroup(packedPosition);

        if (mExpandableManager.isGroupExpanded(groupPosition)) {
            // collapse the clicked group
            mExpandableManager.collapseGroup(groupPosition);
        } else {
            // expand the clicked group and collapse others
            mExpandableManager.collapseAll();
            mExpandableManager.expandGroup(groupPosition);
        }
    }
}

hi. As I said, I expanded one item when I clicked it. However, an error occurred and it crashed. payload was null. I used Kotlin language. When I used it in Java, there was no problem, but because it was a Kotlin project, I used Kotlin, but an error occurred. I hope you can help
mExpandableManager.collapseAll();
mExpandableManager.expandGroup(groupPosition);


Ensure a consistent 72 dpi for Windows headless rendering

<EMAIL_ADDRESS>commented:

See details in Issue #659. Apparently Windows is more unpredictable in its resolution defaults so this will take extra efforts to nail down.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #934.
:star2:   3 people had starred this issue at the time of migration.

This issue is fairly old and there hasn't been much activity on it.


About download model from huggingface to /kaggle/input

I want to use model from huggingface but the competition ban internet.
I have tried to save model in /kaggle/working but it's failed to submit and /kaggle/input it's read-only folder, the only way I thought it's to download in my mac and upload to /input.
I wonder if there is a better way to make it.

Hi @Hanochhu - this repo is for the Kaggle API specifically, but it sounds like you're having trouble with Kaggle (website).  You're likely to get a better response by posting on the forum of the competition you're competing in, where other members of the Kaggle community may see it and offer suggestions.


Fixed #301.

Added life_keeper to send_pubrel and async_send_pubrel.
Since MQTT v5, pubrel message can have properties.
The properties can contain ref messages.
The messages that can be stored are publish and pubrel.
The publish message already has the same mechanism.
This PR added thae same mechanism for pubrel message.
Other message such as subscribe are not stored.
If it has ref properties and send asynchronously,
simply capture the life keeping object to async_hander.

Codecov Report

Merging #307 into master will increase coverage by 0.01%.
The diff coverage is 90%.

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
+ Coverage   84.97%   84.98%   +0.01%
==========================================
  Files          33       33
  Lines        4837     4842       +5
==========================================
+ Hits         4110     4115       +5
  Misses        727      727


Query builders optimisation and tests

unnecessary allocations was removed from query builders
added tests for query builders

Coverage increased (+0.4%) to 94.779% when pulling d9d35a919d10d6fee4b50888f2c2def2ca95e3c7 on query-optimization into e481afc940b1d62247f81601b4e93d2eca978441 on master.

Codecov Report

Merging #85 into master will increase coverage by 0.43%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   94.34%   94.77%   +0.43%
==========================================
  Files          17       18       +1
  Lines        1326     1513     +187
==========================================
+ Hits         1251     1434     +183
- Misses         75       79       +4

Impacted Files
Coverage Δ

src/query.rs
97.82% <100%> (ø)

src/consistency.rs
100% <ø> (ø)
:white_check_mark:

Continue to review full report at Codecov.

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


Printing a frame object does not print payload values

I reproduced this issue using the can_frame_queued_io.py example. My only modifications were to remove the future and six imports and use the built in functions.
When I print a frame object I get the full information on the frame including Arb ID, Echo setting, Type, and timestamp, but the printed string always ends with "payload=...)".
I have reproduced this with both PrettyPrinter and the default print function. I confirmed that if you print frame.payload the full payload information does print. I also tried printing a string longer then the CAN frame to make sure my IDE didn't have a setting to cut off strings beyond a certain length (it does not cut off long strings).

OS: Windows 7 Professional 64-bit
Python version: 3.5.3
IDE: Pycharm Community Edition 2017.2
NI-XNET version: 17.0
Hardware: PXIe-8510/6

TODO: paste the output from
$ python -m pip list

enum34 <1.1.6>
nixnet <0.1.0>
pip <9.0.1>
setuptools <28.8.0>
six <1.10.0>
typing <3.6.1>

Thank you for providing feedback on this.
I was concerned about how big the payload might be (like with CAN FD or J1939) and decided to leave it off (see types.py).  I assumed it'd be better for people to print the payload separately rather than getting overwhelmingly large output text that in aggregate might obscure the more critical information.
Some ideas I've come up with for this

Have __repr__ only print echo/type if it is non-default

Includes defining a default for type (CAN_DATA is probably best)
Unfortunately, printing lines of frames won't align as well

Include the payload but cap its size, ending with a ... if its too big

Maybe if it goes above 8 bytes, show 5 + ... (so it still totals 8).

Any thoughts on the trade offs of those?  Any other ideas (including just ignoring the length of the repr and just showing it all)?

I'm trying to think through customer expectations. The reason I posted this as an issue is because this is in an example that's setup to do a loopback test. I would expect a loopback test to show the payload sent and payload received to verify proper communication.  In the short term, simply adding a print(frame.payload) to the examples would work.
Long term I like your second suggestion. If that was the case I would say it's important that we document in an easy to find place something along the lines of "For full payload readout print frame.payload" or something like that.
As for your first suggestion, in my experience anyone wanting the echo and type of the frame will explicitly ask for it. The customers I've worked with do not commonly pull out those properties in LabVIEW XNET programming. More often than not they just want the payload. I would say these two properties are low priority for printing.

So it sounds like the issue is not as much what gets printed for a frame but how the examples are setup?

I'd say that's part of the issue, but the current implementation isn't optimal. I ran this by some of my colleagues in SE to see what their experience with customers has been. They should be posting on this thread soon.

I'd rather not print the frame up to a certain length and then end with a "...".  Either we should always dump it all regardless of size, or not return the payload at all there.  Anything else would be inconsistent.
Returning the payload only to a certain length will likely lead to a case of someone testing things with a small payload, and then having trouble later on when they assumed it would work for a larger payload.  Another option there is to have it return a "payload too big" error if the frame is too big.  At least that wouldn't lead to silently inconsistent logs.  Though, that would also be strange - it wouldn't really be reporting a problem with the frame ("payload too big"), but with this function not wanting to give you too much text.  In the end, either of those is a bit inconsistent.
I'd rather it give you payload size in lieu of the payload.  That way, printing the frame object gives you all of the useful metadata without giving you the actual frame payload.  The payload is only (but dependably) accessible in frame.payload, no matter the size.
How does that sound?

Another option there is to have it return a "payload too big" error if the frame is too big. At least that wouldn't lead to silently inconsistent logs.

Something to keep in mind is that the built-in support for printing a frame is meant as a debug helper and is not meant for parsing or UX.  It should not error like that.  Those are policies left to the user to decide.  To be clear, this is a python convention I'm speaking of and not some assumption I'm making on how the customer will use the API.

I'd rather it give you payload size in lieu of the payload.

I think this could be reasonable.


data() should accept files that end with .txt as csv

Right now there will be an error, and the user really should not have to worry about things like changing the name of the file first (or using something else to load the file).

this works now.


As of June 1, the version header needs to be set

Per the docs here: https://developers.notion.com/reference/versioning
The version needs to be set. I'm getting this error:
Notion::NotionError (Notion-Version header failed validation: Notion-Version header should be defined, instead was `undefined`.):

When trying to create a page.

Fixed in v0.3.1. Thanks!


Numpy 2 incompatibility for cphd.py and sicd.py: numpy.cast was removed from Numpy 2.1; suggest replacing with numpy.astype

sarpy 1.3.58 contains numpy.cast in both sicd.py and cphd.py.  Running sarpy with numpy 2.1 results in errors when using readsicd or readcphd functions.  Suggest replacing numpy.cast() with numpy.astype() as follows:
sicd.py, line 95:
      lookup_table = numpy.cast'float32'
becomes:
      lookup_table = numpy.astype(lookup_table, dtype='float32') or
lookup_table = lookup_table.astype('float32')
cphd.py line 122:
       array = numpy.cast'float32'
becomes:
      array = numpy.astype(array, dtype='float32') or
array = array.astype('float32')

@jdgorman8r, thanks for noting this. Since 1.3.58, development has been performed in the integration/1.3.59-rc branch. You can read a bit more about integration branches here.
numpy 2 compatiblity has come up in at least two PRs:

#522
#535

I believe the former addresses the specific lines of code you address. If you are able to test using 1.3.59-rc, please let us know if you encounter any further incompatiblities.

Thanks Daniel. We can close this issue.  Appreciate the quick response!


Announcement: Testers needed

We are preparing a point release that includes VRAM optimizations (for generating larger images), enhancements to the simple web user interface, inpainting support, and more.
You can help pitch in by testing the release candidate on your system to identify any bugs that may have slipped through. To participate, simply go to Release candidate 1.14 ready for testing, and follow the instructions posted there.
Thanks in advance for your help,
@lstein

Everything seems to work fine for me , aside from the snake sushi ground being dirt instead of wood.


Drop connection video playback

Maybe there already is this feature and my google searching methods are just that bad but.. My setup is an Ubuntu VM from linode and basically I upstream to that vm and push rtmp out to my various streaming locations.. I would like to add a 60 second video to be streamed if I loose connection to my rtmp server basically a way to keep the stream alive until either I come back or the video runs out.. The goal is to not totally drop the stream.. Is there anyway to do this? If so what should i have in my nginx.conf file to do this. How should this look.. Also if i come back live while video is playing I would like it to override the video and stop playback of the video.

Wondering the same thing, if it's possible to keep alive the stream when OBS drops out? I am trying to research it, but haven't found a solution.
Any help would be appreciated, thanks ❤.

I have been looking for the same solution for a few days now @chrisspiegl
Did you find anything good?


Use NullMemoryManager in OrcFileWriter

The MemoryManager in the OrcFileWriter causes writes to be slow as all
writers contend on the MemoryManager. We do not need the MemoryManager
for Raptor, so replace it with a NullMemoryManager

Looks good


Configurable Poloniex API method URLs

Description
I've moved the Poloniex API urls to the config file. Just makes them easier to maintain going forward. Updated the configuration docs.

TESTING STAGE
Regenerate the config from the default example, since the default values are stored in default.cfg.example. Tested for a few hours.

Types of changes

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

Checklist:

[x ] I have read CONTRIBUTING.md
[ ] I fully understand Github Flow.
[x ] My code adheres to the code style of this project.
[x ] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[ x] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[ ] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.

needs more testing for now.

updated and ran tests

I actually don't see a good reason to do this, config is already cluttered.

Its just good practice, I would not deem this as clutter.

@riv1 I didn't mean to offend of course.
Consider the following:

We might want to support Bitfinex (there is an open issue for that), so keeping the endpoint encapsulated in the API module makes sense.
We have many no-techy users

If Poloniex would give people different access points to their service I would find that this change make complete sense.

@rnevet no offense taken. I agree on keeping things simple for end users. Also agree on encapsulating the endpoint. Rather define the access points as variables within the module, especially if more api calls are to be added in future.

I agree, it would be better to define the access points as variables within the module.


Adding a dockerfile and docker-compose.yaml

Hello, when we first started using minerva-author we found the requirements to run difficult between our team. In addition to this we potentially wanted to productionize this for our own use. Therefore to fulfil these two requirements we created a Dockerfile and docker-compose.yaml. We would like to contribute these to your project if you would be interested?
Tasks:

Add a Dockerfile
Add a docker-compose file
Amend README to allow users to use Minerva Author via Docker.

https://github.com/labsyspharm/minerva-author/pull/42


Add TypeScript

Since this library doesn't really use Ramda or any FP libraries, there's no point in not adding TypeScript.

solved


[BUG] Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten

On iOS platform the cordova application don't start and in console output I see next error:
Error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
Reproduced on iOS app start.

Hi @samval,  thank you for the bug report. Would you be able to provide a sample set up for this so we can reproduce? I personally never used zone.js before but from having a quick look at the docs sounds like it's loaded too early in your project and should be delayed until other deps have been imported?

Hi @Gotusso why you are setting / overriding Promise polyfill in case Promise is already exist on the page? can you set it as something optional?

Hi @samval @MeirAmar
I'm thinking about providing a way to import the package without any polyfills, as an alternative.
For example, the following version could be used to leverage the functionality right out of the box:
import * as TF from '@typeform/embed';

While the following snippet could be a solution for more advanced cases like yours, providing no polyfills/etc. at all:
import * as TF from '@typeform/embed/pure';

What do you think?

@prilutskiy let's try, please

:tada: This issue has been resolved in version 0.21.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

@samval starting from v0.21.1 the NPM version of the SDK doesn't include polyfills. From no on we also mention that fact in the repo's README.


Syntax error in seaRch

You have syntax error here:
A GitHub user seach App

Location: Tier - 2 Intermediate Projects -> GitHub Profiles

@florinpop17 please kindly take a look at this issue and my pull request. :)


Major update and refactor all the things

• Removed custom space-negation-operator, this is now included in ESLint
• Update ESLint and AVA,
• Switch to XO
• Add nyc and Coveralls
• Add shared config recommended along with 8 more

Changes Unknown when pulling 681ed9990a9b8354d683bbec83db83d8a9975dfb on refactor-all-the-things into ** on master**.


openssh 7.0

Merged in https://github.com/Homebrew/homebrew-dupes/commit/b0ee26dfdd8a570cefdd7adfaa16218af95d1276. Thank you for your contribution @alex!


Support further opentracing lib versions

Current the library sticks to 1.0.0-beta5, but looks like there are no reasons to not support newer betas/future stable releases

Thanks for this @alexeyshockov !


HTML Signature

Hi,
Is it possible to add directly a signature with HTML code? Because for the moment, you must add the text without..
Thanks

If I understand you correctly, you may enable a source button in the html editor.
./data/.../application.ini
[labs]
allow_html_editor_source_button = Off

No, I want to have a visual signature with html (links & images for exemple).
The html editor is already enabled, and I can't.

Tested with
[labs] allow_html_editor_source_button = On
It works. Closed.

Hi Setsuneh,
I am trying to add a signature with html & images, my code is ready to paste but I can't figure out how to do !
Could you explain a little what you've done in July to make it work ?
Many thanks in advance for your help.

It's the configuration of Rainloop web application on Server, if it's owned by you, then you need to do as @RainLoop said, find ./data/.../application.ini, and modify OFF to ON like "[labs] allow_html_editor_source_button = On".
So if it's not you who installed the web application, you can not add html signature without changing the configuration.


Remove unneeded PasswordEncoder use in StormpathAuthenticator

As discussed in #649, we should remove the use of PasswordEncoder in StormpathAuthenticator.
@mmoayyed please could you confirm we didn't misunderstood something with @leleuj? Thanks :)

This looks fine.
In principle though, I'd say I am very much against pac4j having its own PasswordEncoder. The functionality presented by pac4j is almost an exact replica of Spring Security. I see no reason why that has to be duplicated, specially if it's not made any easier to work with. It can't get any easier than Spring Security. Long-term, my suggestion is to remove all pac4j specific components in this area and use SS as a replacement.

@mmoayyed Exactly what @leleuj said, it is covered by #649 which introduces a SS wrapper. But if you mean we should simply relies on SS and not introduce any interface at all, then please come discuss it in #649 before it is merged.

@mmoayyed : we agree, pac4j does not intent to reinvent the wheel for password encoding (encryption or hashing), but we need a wrapper (PasswordEncoder) as we may want to use SS, but not only: also Shiro or jBCrypt are good candidates. See: #649 indeed.


Add partial flag to the query wire protocol

It looks like these tests were failing before my check-in.  Is there anything I can do to help get this merged?