Memory usage

Hi,
I observed that the memory usage increases while training goes on. This is unusual in standard NN, since the size of the parameters is fixed. Is this normal in this model or did I get something wrong? I also noticed there is a cache_size parameter. What is the unit of this integer, is it in MB?
thanks

That's not normal behaviour. Can you provide a MWE demonstrating this? [1] This usually occurs when you have a mistake in your training loop, nothing to do with torchsde.
The cache_size parameter doesn't have units like that -- it specifies the size of the LRU cache used in the Brownian Interval, which is measured in number of samples. That's pretty technical; you should almost certainly leave it alone. (If you're trying to reduce memory consumption then I'd look elsewhere -- the memory consumed by the Brownian Interval is generally negligible.)
[1] I'd note that if you're using adaptive step sizes without the adjoint method then this can plausibly occur because of the complexity changing during training -- typically NFEs go up over training -- but that's usually not substantial.

That's not normal behaviour. Can you provide a MWE demonstrating this? [1] This usually occurs when you have a mistake in your training loop, nothing to do with torchsde.
The cache_size parameter doesn't have units like that -- it specifies the size of the LRU cache used in the Brownian Interval, which is measured in number of samples. That's pretty technical; you should almost certainly leave it alone. (If you're trying to reduce memory consumption then I'd look elsewhere -- the memory consumed by the Brownian Interval is generally negligible.)
[1] I'd note that if you're using adaptive step sizes without the adjoint method then this can plausibly occur because of the complexity changing during training -- typically NFEs go up over training -- but that's usually not substantial.

Hi,
I see the chances of there being some subtle bug in torchsde regarding memory to be quite low. Though, I don't want to totally rule out that possibility. If you have a piece of minimum reproducible code, I'd also be happy to take a look and see if I can help solve the problem.

Hi,
I see the chances of there being some subtle bug in torchsde regarding memory to be quite low. Though, I don't want to totally rule out that possibility. If you have a piece of minimum reproducible code, I'd also be happy to take a look and see if I can help solve the problem.

Thanks for the reply. It takes some time to work for a minimum reproducible code since the model also relies on some framework in the middle and I don't control the training loop directly. I want to provide more context here in words.
I am trying to model a rolling forecasting problem. Given x1,x2...xt, predict xt+1, and at the next time step, now you have x1,x2...xt+1, and predict xt+2. The training strategy is to find a random split point t, look back t time steps to get a single training case, and use t+1 as the label. So unlike standard NN traning, in each epoch, the training cases are not the same, they are random samples from some long time series.
If my description is not clear, maybe take a look at the code here.
https://github.com/zalandoresearch/pytorch-ts/blob/master/pts/transform/split.py
I am using an RNN to encode a training case and feed that to torchsde.
I just want to make sure that this is not a game-changer and I should still expect the memory usage to be constant between different epochs. If so, I will try to work for a minimum reproducible code.

Thanks for the reply. It takes some time to work for a minimum reproducible code since the model also relies on some framework in the middle and I don't control the training loop directly. I want to provide more context here in words.
I am trying to model a rolling forecasting problem. Given x1,x2...xt, predict xt+1, and at the next time step, now you have x1,x2...xt+1, and predict xt+2. The training strategy is to find a random split point t, look back t time steps to get a single training case, and use t+1 as the label. So unlike standard NN traning, in each epoch, the training cases are not the same, they are random samples from some long time series.
If my description is not clear, maybe take a look at the code here.
https://github.com/zalandoresearch/pytorch-ts/blob/master/pts/transform/split.py
I am using an RNN to encode a training case and feed that to torchsde.
I just want to make sure that this is not a game-changer and I should still expect the memory usage to be constant between different epochs. If so, I will try to work for a minimum reproducible code.

The expectation is that VRAM usage should roughly stay the same across different gradient updates. If you're using adaptive solvers, then yes, it's fairly possible that the learned dynamics become harder to solver, therefore requiring a lot more function evaluations.
Somewhat contrary to what Patrick has suggested, I've seen quite a few cases where NFE at the start of training could be much different than that at the end of training.
It seems your description doesn't provide the setting at the granularity that we could help with. You're mentioning data x1,x2...xt+1 and target xt+2.  Does t change over different gradient updates?
I'm closing this issue for now since not enough background is given. Feel free to reopen if you could provide us with more context or at the very least create a small example that points towards a problem.


Improve clone helper to avoid modify original input

I discovered an issue when retrieve result from collect. It can be modified the original input.
var users = [{name: "John", age: 30}, {name: "Steve", age: 20}];
var first = collect(users).where('age', 30).first();
first.age = 20;
users[0].age == 20; // true

Thanks for your contribution. This looks good. I'm currently on vacation and will merge when I'm back.

Thanks for your attention. I'm new to Laravel framework and very interested in Laravel Collection. It's good to know that there is something like that in javascript. Wish you have a great vacation!

I don't know why Travis doesn't fail this build, but your change is causing a memory leak.
Please fix your implementation.
https://travis-ci.org/ecrmnn/collect.js/jobs/586550809

Bump

Closing due to inactivity


Enable tests that rely on device malloc, remove kernel checks

An upcoming ROCm version will fix device malloc. This PR removes checks compile checks that prevented using this functionality and enables tests that rely on device malloc.

Please wait for Stanley's review prior to merging.

Compilation is failing on HIP on Windows with undefined references to malloc and free; Trying to confirm whether or not device malloc is enabled for Windows or if its just Linux.


add some translations of zh-Hans

Hi @gtn1024, thanks for the updates, however, you seem to have missed some lines, was this intentional?

Hi @gtn1024, thanks for the updates, however, you seem to have missed some lines, was this intentional?

Oh, yeah.
Some lines were out of my capacity.

可以使用Google翻译一下大概意思

Thanks @gtn1024!


MNT: rerender

Hi! This is the friendly automated conda-forge-webservice.
I've rerendered the recipe as instructed in #126.
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Fixes #126

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

@conda-forge-admin, rerender


cannot display calculated value in data viewer

Describe the bug
Hey everyone, I'm new to vscode-R and I'm so appreciate for making such excellent plugin.
The problem I found out is that the data viewer only display original value after read a dataset.
For example,
say I have a 75-columns dataset "aaa", I used "read_csv" to load it then calculated a new "mean" column.
When I view it only the original 75 columns displayed, and the "mean"column were somehow "hidden".
If I want to see the calculated value I need to drag it.
Is this an issue?
To Reproduce
Steps to reproduce the behavior:
aaa.csv
aaa <- read_csv("aaa.csv", na = c("999", "NA"))
aaa$mean <- mean(aaa$o8)

Thanks in advance!

I haven't been able to replicate this from the steps described:

Just to double check, are you viewing the dataframe before creating the mean column?

Thanks for the promptly reply!
Sorry I've deleted some columns when exporting the dataset so probably that why it not replicated.
It seems when the number of columns more than 84 then the rest will be hidden.
Could you try this please?
library(readr)
aaa <- read_csv("aaa.csv")
aaa$mean1 <- mean(aaa$o8)
aaa$mean2 <- mean(aaa$o8)
aaa$mean3 <- mean(aaa$o8)
aaa$mean4 <- mean(aaa$o8)
aaa$mean5 <- mean(aaa$o8)
aaa$mean6 <- mean(aaa$o8)
aaa$mean7 <- mean(aaa$o8)
aaa$mean8 <- mean(aaa$o8)
aaa$mean9 <- mean(aaa$o8)
aaa$mean10 <- mean(aaa$o8)
aaa$mean11 <- mean(aaa$o8)
aaa$mean12 <- mean(aaa$o8)
aaa$mean13 <- mean(aaa$o8)
aaa$mean14 <- mean(aaa$o8)
In my case, the column mean10~mean14 is hidden (see the screenshot).

I had also found this phenomenon but forgot to create an issue.
It seems that the collapsing of columns is affected by window size.
Conversely, creating a data frame with many columns in a given window size will always result in columns being collapsed from somewhere.

Interesting, thank you for the information. As suggested by @eitsupi , I can replicate this by squishing my window:

Looks like this might be useful https://www.ag-grid.com/angular-data-grid/column-sizing/#sizing-columns-by-default=
I'll have a quick look if it's an easy fix

Alright, the trick seems to be setting suppressColumnVirtualisation to true.  I'm not sure of the performance ramifications though:

Column Virtualisation is the technique the grid uses to render large amounts of columns without degrading performance by only rendering columns that are visible due to the horizontal scroll positions. For example, the grid can have 1,000 columns with only 10 rendered if the horizontal scroll is only showing 10 columns.

Sorry, it's not (currently) a user-facing setting. @renkun-ken do you think this should be user-toggleable?

I cannot reproduce it under macOS. Do you reproduce it all under Windows?

Mine is macOS though😅

@ElianHugh Maybe we should do the following:

Add minWidth to each columns so that no column could be too thin?
Add a button to the data viewer web view to resize all columns to fit the width of the webview

I could reproduce it now if I add minWidth: 20 to defaultColDef at https://github.com/REditorSupport/vscode-R/blob/master/src/session.ts#L506-L513.

Looks like suppressColumnVirtualisation: false indeed could resolve the problem but as the number of columns get larger, I could observe significant performance problem when I scroll down the grid with 100 columns.

@toorukt Would you like to try the build of #1121?

@renkun-ken It's all good now! Brilliant!


Change reverse.each

Change on reverse_each because reverse_each loops in reverse order (no
intermediate array created).

Thanks for the improvement! 👍


git clone failure on luau directory

Hello! issue:
When git cloning the repo, the luau folder is empty.
It needs to be deleted then you need to run git clone https://github.com/luau-lang/luau.git within the repo clone.
I don't know if this is a me issue, or a WSL Arch issue, but it is an issue that I took a while to figure out (I'm very nooby), but I thought it may be something to consider.
If this is expected behaviour, then no worries.
Thank you,
Yakend.

Doing git submodule update --init --recursive also works from within luau-lsp

Yes, it is a submodule, and you must initialise the submodule when you clone the repo


smart-build.pl should detect supercomputers with specialized software environments (BG/Q, Cray) and act accordingly

Original issue: https://charm.cs.illinois.edu/redmine/issues/1113

When running ./build on Blue Gene Q, the smart-build.pl script doesn't show any awareness of its environment - it acts oblivious to the fact that the entire path and such include BG/Q specific stuff. This confuses users who don't know what options lead them to the build for their supercomputer, rather than the head nodes.

Original date: 2017-01-26 18:57:39

I think we should try to get this dealt with before 6.8.0 is released

Original date: 2017-01-26 18:58:59

Eric B - NB

Original date: 2017-10-25 18:54:33

Phil, do you think we should try to get this done in 6.9?  I think the overall effort isn't hard, but there are a lot of corner cases to fiddle with that require direct experimentation in different environments.

Original date: 2017-11-29 19:13:18

I currently don't have access to any BG/Q machines.

Original date: 2017-11-29 19:25:19

Given that BG/Q has no forward path, I'd be inclined to focus these efforts on other platforms.  We should also work to get you access to ALCF's BG/Q,  but the more interesting work would be for next generation machines based on OFI and PAMI.

Original date: 2018-01-12 23:08:47

Any opinions on the following one-liner as a Cray environment detection test?
if [ "`echo "$PATH" | grep /opt/cray/ -`" != "" ]; then echo "Cray environment found"; else echo "Cray environment not found"; fi

Original date: 2018-01-17 21:57:48

Default $PATH values on select supercomputers:

Vesta - BGQ
/usr/lib64/qt-3.3/bin:/soft/compilers/bgclang/wbin:/soft/compilers/bgclang/mpi/bgclang/bin:/soft/buildtools/cmake/<IP_ADDRESS>/bin:/home/nbhat/bin:/soft/environment/softenv-1.6.2/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/bgsys/drivers/V1R2M4/ppc64/gnu-linux/bin:/bgsys/drivers/V1R2M4/ppc64/hlcs/bin:/soft/debuggers/scripts/bin:/soft/accttools/bin:/soft/buildtools/trackdeps/bin:/soft/compilers/ibmcmp-may2016/vac/bg/12.1/bin:/soft/compilers/ibmcmp-may2016/vacpp/bg/12.1/bin:/soft/compilers/ibmcmp-may2016/xlf/bg/14.1/bin:/bgsys/drivers/ppcfloor/bin:/bgsys/drivers/ppcfloor/sbin:/dbhome/db2cat/sqllib/bin:/dbhome/db2cat/sqllib/adm:/dbhome/db2cat/sqllib/misc:/usr/lpp/mmfs/bin:/home/nbhat/bin

SummitDev - Power 8
/sw/sources/lsf-tools/bin:/sw/summitdev/xalt/0.7.5/bin:/sw/sources/hpss/bin:/autofs/nccs-svm1_sw/summitdev/.swci/1-compute/opt/spack/20171006/linux-rhel7-ppc64le/xl-20170914-beta/spectrum-mpi-<IP_ADDRESS>-20170915-nmlgpsufnxxal2wv64hh7zfisabr56ry/jsm_pmix/bin:/autofs/nccs-svm1_sw/summitdev/.swci/1-compute/opt/spack/20171006/linux-rhel7-ppc64le/xl-20170914-beta/spectrum-mpi-<IP_ADDRESS>-20170915-nmlgpsufnxxal2wv64hh7zfisabr56ry/bin:/sw/summitdev/xl/20170914-beta/xlC/13.1.6/bin:/sw/summitdev/xl/20170914-beta/xlf/15.1.6/bin:/opt/ibm/spectrumcomputing/lsf/10.1/linux3.10-glibc2.17-ppc64le-csm/etc:/opt/ibm/spectrumcomputing/lsf/10.1/linux3.10-glibc2.17-ppc64le-csm/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibm/flightlog/bin:/opt/ibm/spectrum_mpi/jsm_pmix/bin:/opt/puppetlabs/bin:/usr/lpp/mmfs/bin

Bridges - OFI network with Intel CPUs
/usr/lib64/qt-3.3/bin:/opt/intel/advisor_2<IP_ADDRESS>0716/bin64:/opt/intel/vtune_amplifier_xe_2<IP_ADDRESS>0739/bin64:/opt/intel/inspector_2<IP_ADDRESS>0645/bin64:/opt/intel/itac/2017.3.030/intel64/bin:/opt/intel//itac/2017.3.030/intel64/bin:/opt/intel//clck/2017.2.019/bin/intel64:/opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64:/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin:/opt/intel/debugger_2017/gdb/intel64_mic/bin:/opt/packages/slurm/17.02.5/bin:/opt/packages/allocations:/opt/packages/interact/bin:/usr/lib64/ccache:/usr/bin:/bin:/usr/sbin:/sbin:/opt/packages/hpnssh/7.5p1-hpn14v12/bin:/usr/local/sbin:/opt/puppetlabs/puppet/bin:/opt/packages/slash2/psc/sbin:/opt/intel/parallel_studio_xe_2017.4.056/bin:/opt/puppetlabs/bin:/home/nbhat4/.local/bin:/home/nbhat4/bin

Stampede 2 - OFI network with Intel KNLs
/opt/apps/xalt/1.7.7/bin:/opt/apps/papi/5.5.1/bin:/opt/apps/libfabric/1.4.2/bin:/home1/apps/idl/8.4/idl/bin:/opt/apps/intel17/python/2.7.13/bin:/opt/apps/autotools/1.1/bin:/opt/apps/git/2.9.0/bin:/tmprpm/intel17/impi/17.0.3/bin:/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin:/opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64:/opt/apps/gcc/5.4.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin:.:/opt/apps/intel17/impi17_0/fftw3/3.3.6/bin

^ This could vary depending on the loaded modules.

Original date: 2018-01-26 20:51:01

I think we don't care about BG/Q looking forward for a variety of reasons. First, the machines should be out of production in a short time, so they probably won't be useful for much longer. Second, people who are using BG/Q already are likely to already have explicit build commands and scripts and won't be using the ./build script (e.g. some of the NAMD collaborators).

Original date: 2018-02-22 21:57:17

~~https://charm.cs.illinois.edu/gerrit/3765~~ https://github.com/UIUC-PPL/charm/commit/14bbf53d0d157c836d7e694b9bd2f658a3e40bc7


Skip alredy downloaded file during uncompress

See if there is a file with the same filename and size in output dir. If so, skip this download

有空可以看一下，需要的地方我可以改。时间长了容易出confilict

嗯嗯，以为你要重新cherry-pick再提交

The content of this PR has been incorporated into the current code.


Give feedback about the file that the build sys is running

The build sys remembers the file run latest. Give some visual feedback about this.

https://github.com/guillermooo/dart-sublime-bundle/pull/477


Add Python 3.6 to CI

Closes https://github.com/Azure/azure-cli/issues/1626

@troydai can you take a look at the updated PR?

@derekbekoe  On it.


Add module 'metrics-collectd' - Metrics Integration for Collectd

This is a reporter which sends metrics to Collectd.
The original code was created by @dernasherbrezon and had already been merged to the master branch.
I did these modifications:

Adapt the code for the 3.2 API
Close channel after metrics were sent
Add tests
Support for specifying the local host name via the builder. (As a reverse lookup for the hostname might not always work.)

Hi @arteam ,
thanks a lot for your feedback.
I'll try to address the items as soon as possible.


Where is the file ‘estimate_mean_ins_size.py’

Thank you for your outstanding work.
But I can't find estimate_mean_ins_size.py and mean_ins_size.txt.

That file is added. Thanks for pointing out it:)


Best translation model for turkish

I could not see any model for Turkish. Do we have to produce? Can i create from OASST1 models?

Turkish isn't there yet no, you'll have to run the full line of scripts, starting with

Here's the OASST1 for Turkish https://huggingface.co/datasets/UnderstandLing/oasst1_tr


Run sanity checks in HypervisorUpgradePlanner

Run sanity checks for each in HypervisorUpgradePlanner. Improve unit tests for whole HypervisorUpgradePlanner.
fixes: #343

This comment is not a blocker, but rather a personal opinion:
* I'm not enjoying the tweaks that we are making because of `_check_mismatched_versions`.
  Maybe doing the sanity check by AZ and pass units that are in a certain group from a app could makes things clear.

If we decide to continue like this I won't block but it feels to me that it's becoming more complex to understand the code.

Me neither.

LGTM. Sorry for the back-and-forth, but I think it was a valuable discussion.

No problems, I agree.


Server should report additional load info to client

Clients that support multiple server connections would like to have a way to decide which server connection is best able to handle a query. Servers currently "sort of" expose their load as fees, but there's no real exposure of server load in a useful way. Some parameter should be added to the "server" publication stream that clients can just compare across servers to decide which is most likely to respond quickly to a query.
Exported from RIPD-895

Closing due to inactivity and lack of interest, but feel free to re-open or open a new issue if you're interested in this.


Indication in offense count report of autocorrectable offenses

Is your feature request related to a problem? Please describe.
When I run rubocop and generate the offense count report on my codebase it is not clear to me which cops can be autocorrected. Furthermore, when I mass-autocorrect everything, it is not clear in the subsequent diff which offenses are corrected with each change.
Describe the solution you'd like
I would like a clear indication in the offense count report to see which violations can be autocorrected. Ideally a different indication for the ones that can be autocorrected safely vs the ones that can be autocorrected not safely. This way I can try and autocorrect the offenses 1 by 1, and have a clear picture of how each correction changes the codebase.
Describe alternatives you've considered

Additional context
For example, this report:
...
2     Layout/FirstArrayElementIndentation
2     Layout/MultilineMethodCallIndentation
2     Lint/DuplicateCaseCondition
2     Lint/DuplicateRescueException
2     Lint/UnreachableCode
2     Performance/BindCall
2     Performance/CompareWithBlock
...
--
3954  Total in 1566 files

could become:
...
2     Layout/FirstArrayElementIndentation (safely autocorrectable)
2     Layout/MultilineMethodCallIndentation
2     Lint/DuplicateCaseCondition
2     Lint/DuplicateRescueException  (unsafely autocorrectable)
2     Lint/UnreachableCode  (safely autocorrectable)
2     Performance/BindCall  (unsafely autocorrectable)
2     Performance/CompareWithBlock
...
--
3954  Total in 1566 files

or, more concisely:
...
2     Layout/FirstArrayElementIndentation (a)
2     Layout/MultilineMethodCallIndentation
2     Lint/DuplicateCaseCondition
2     Lint/DuplicateRescueException  (A)
2     Lint/UnreachableCode  (a)
2     Performance/BindCall  (A)
2     Performance/CompareWithBlock
...
--
3954  Total in 1566 files

Thank you for taking this into account! It will make rubocop much easier to mass-apply.


Thank you!

In fact, I have been admiring the scala-style chaining function call and other functional programing concepts for a long time, but my usual work is all on python, Now I find I can achieve a good trade-off by combining your library and fn(used for simplifng lambda function into a blank space, sadly not maintained since 2014), Thank you again! Hope you can keep maintain and enpower this fantanstic object!

Thank you so much for creating expression. Joining the facts that F# is a kick ass language, and the top popularity of Python, we can have the best of both worlds.


Submit a Listing | Basic Information Security Marking is not clear to user

Suggested that we add a note/label to clarify this Security marking belongs to the Name or the App itself.

Should say "This is the security marking for listing".  It says nothing.

"Security Marking Classification and control marking. Follow prompts to generate valid marking."

Passed on Staging.


Entries API - shortcodes parsing issue

Shortcodes can't be parsed from multidimensional Array. Need to resolve this issue.

solution:
don't parse Shortcodes everywhere. parse them only for specific fields if needed.
need to create Shortcodes filter for twig templates


usage of cat is not helpful for reader

Here https://github.com/rust-embedded/book/blob/aadfc95f85e635c6a37a7b12ae9255fd39b08b36/src/intro/install/linux.md#udev-rules

Create this file in /etc/udev/rules.d with the contents shown below.

this is not referring to something the reader has already read. It's not good in english to refer to it or this before it was mentioned. Further cat /etc/udev/rules.d/70-st-link.rules should not be the contents of the file (obviously).
Suggested fix 1:

Create the file /etc/udev/rules.d/70-st-link.rules with the contents shown below.

Suggested fix 2:
Provide a command (cat + heredoc into file?) to write the file in one go
Suggested fix 3:
provide a command to open an editor

Same situation here https://rust-embedded.github.io/book/start/qemu.html#a-non-standard-rust-program

Similar https://rust-embedded.github.io/book/start/qemu.html#running
this one is even stranger because

For convenience here's the source code of src/main.rs:

cat examples/hello.rs


optimize the backend build

Describe the feature

[ ] use the built aws-lambda-web-adapter to speed up the build
[ ] move the backend build Dockerfile in the src/control-plane

Use Case

Proposed Solution - Optional

Other Information

Notes:

[ ] this feature has an UI update
[ ] this feature contains an implementation guide update

can not  move the backend build Dockerfile in the src/control-plane, because the docker build content needs to include the original file of the soft link, otherwise the file will not be found.


Problem: username should only be set due to canonical transations

@trevorbernard should I take this one?


Updating Address

Address Update from Reiffergässli 4 to Baarerstrasse 14

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


Optimize probing

In particular, try radix sort instead of std::sort.

Just to clarify: I guess this is for the post-probing sorting of the candidates, not the sorting in the CP hash (where we use the incremental sorter)? It would also be interesting to see whether the sorting helps at all actually. Since the DataStorage class has a prefetcher built in, the advantage of sorting might not be that large.


chore: migration to swift for ios and add new example app

New PR to be able to create a beta version. Original PR: https://github.com/razorRun/react-native-vlc-media-player/pull/163
I started to migrate to swift for the ios version, added a example to be able to test it better locally and adapted some minor adaptions.
I tested it on my app reacttube and it worked well.
Unfortunally I am currently not able to invest much time into this at the moment. Therefore any contribution is welcome.

New Beta version published. 😉

hey @Duell10111 , what benefits does your swift beta fork have over the original package?

Hey @lightninglu10, the swift beta fork should provide the same functionality as the stable version, it is only a rewrite to swift to be more future-proof.
As this is a bigger change a beta version got created to test it, before merging into the master.
Feel free to test it on your side. 😀


order not cancellable, not in mm2.0 response but still visible

The GUI leaves an order open, while the order does not exist in the response from mm2.0 anymore:

&

while a recent my_orders call to mm2.0 yields this response:

The GUI probably has an await still open, because the Buy button is now disabled.

Somewhere the GUI thinks there is still an order active, while there actually aren't any orders active anymore. This order probably got added to a local DB, but didn't get properly removed together with mm2.0 removing the order.
I would say there can't be 2 truths, maybe refactor the Open Order part to always mirror the response from mm2.0? (maybe this should be its own issue then...)

hi @jorian
could you share how your order looks like in local DB?
(you can get it by running this command in your console)
_swapDB.getOrders().then(e => console.log(e))

Does this error only occur with ERC20 token?
I will take a look at this tomorrow

It might be an edge case, because other swaps I did today, finished just fine. It seems this order got in a limbo state.
However, other DAI/KMD trades are now not possible; the buy button stays greyed out and the stdout tells me that it can't find the order that is still open in the GUI.
This is the response for the swapDB.getorders()

hi @jorian,
I just pushed some code to fix this
please test and see if this issue persists
thanks

The order that was stuck for a couple of days is now gone.

cool, I will close this issue for now
please reopen if it persists


feat: use exponential backoff in llm chat

Description
Closes #1103 . It adds the exponential backoff to the API call for chat completions.
Checklist

[x] The base branch of this PR is preview, rather than main

@inimaz nice PR, thank you!


Update index.md

Notes for Reviewers
This PR fixes #
Signed commits

[x] Yes, I signed my commits.

🚀 Preview for commit 4179d0dbe58b6cfec9abc8c029aec825daf3b71f at: https://65e7e41166c37abbf0a071a5--meshery-docs-preview.netlify.app

🚀 Preview for commit 400e2269960f493378eb1f92d159261212887648 at: https://65e7e5e5b4d130b121b40506--meshery-docs-preview.netlify.app


Mobile pass: Ensure that mouse/touch events work correctly

When using the v2 alpha 3 on mobile, the zoom factor gets set to NaN/NaN.  This apparently also happens from desktop chrome with a simulated pixel 5 selected.
Finally, rendering a specific object fails to work too: https://mapwith.ai/rapid-v2-alpha3#id=w808726001

Well, w808726001 has since been deleted. However, any large enough area seems to not render.
https://mapwith.ai/rapid-v2-alpha3#id=r188553 works.
https://mapwith.ai/rapid-v2-alpha3#id=r2563472 does not.

Okay, at long last- some progress. We've figured out that we were depending on event.movementX/Y to be present in our map 'pointermove' events, but that is only a thing when a mouse is available. Instead we will synthesize our own 'movementX/Y' coords by saving the last pointermove event, comparing the clientX and clientY coords.
This worked in some initial testing I did with my pixel 3A XL.

Further updates: This seems to work on my iPad 9th gen. It will ship in the beta coming out very soon(tm).


Error when running migrate command on Azure VM

Hello!
I have trouble to run command python project_name/manage.py migrate on Azure VM. The error says:

django.db.utils.OperationalError: fe_sendauth: no password supplied

Can you also provide instructions how to deploy to virtual machine not to Heroku?
Thanks for any help!

Hi @chika-kasymov, thanks for opening up an issue.
This isn't a bug with the cookiecutter but rather an issue with the way you're calling the migrate command on your Azure server. While I'd love to help with instructions and further debugging, I haven't used Azure before and have no expertise with the platform. I recommend you reach out to them for further assistance.
Good luck and thanks for contributing!


Pressing the Enter key after viewing History causes History to reopen instead of displaying result.

Describe the bug
Normally, pressing the Enter key causes the result of the current calculations to be displayed. However, if the user clicks on History to view previous results, then the History button remains selected even after History is closed, and pressing Enter re-opens History instead of displaying the result.
Steps To Reproduce
Steps to reproduce the behavior:

Input some calculations, and press Enter.
Click History button to open it (or use the Ctrl + H shortcut).
Click the main portion of the calculator to close History.
From this point on, pressing Enter will re-open History instead of displaying input.

GIF Demonstrating Bug
https://i.imgur.com/fJOCftq.gifv
Device and Application Information

Winver: Version 2004 (OS Build 10941.329)
OS Build: 10.0.19041.0
Architecture: X64
Application Version: Calculator 10.2005.23.0
Region: en-US
Dev Version Installed: False

Requested Assignment
I'm just reporting this problem.  I don't want to fix it.

Thanks for the detailed bug report! This is by design due to accessibility considerations. For more details, see the discussion in #152 and #262.


Change WeChat Style

Hi there,Thank you for the good tool.
Can you choose the existing WeChat style as a different style? It's the White Style provided by Picture Selector.
Using a translator. sorry.

currently I can provider other style. Because I need to consider ios client.

@chavesgu
Is it a function that can be used now or is it updated later? Can you let me know here when you can use it?

no.I donnot have plan to do

该邮件从移动设备发送
--------------原始邮件--------------
发件人："mirimhee @.>;
发送时间：2021年6月11日(星期五) 上午8:50
收件人："flutter-package/images_picker" @.>;
抄送："Chaves Gu @.>;"Mention @.>;
主题：Re: [flutter-package/images_picker] Change WeChat Style (#33)
@chavesgu
Is it a function that can be used now or is it updated later? Can you let me know here when you can use it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Oh, OK, thanks for the answer


Update eslint to 0.21.0.

Updates grunt-eslint to 13.0.0., which includes eslint 0.21.0.
Changes

Updates eslint config to add additional rules in ESLint 0.21.0.
Refactors /the-bureau/index.js to remove inline event handler functions and removes redundant DOM lookup.
Fixes minor ESLint offenses.

Testing

Run grunt lintjs --quiet and see no errors.

Review

@sebworks
@KimberlyMunoz
@jimmynotjim

Why create the functions (_enterBreakpoint ) outside the if statement when they are referencing something that is only defined in the if statement (bureauMissionDom) ?

Why create the functions (_enterBreakpoint ) outside the if statement when they are referencing something that is only defined in the if statement (bureauMissionDom) ?

I thought the same thing, but we're enforcing http://eslint.org/docs/rules/no-inner-declarations.html, which is required in parsers earlier than ES6. I don't think there's a difference really if they're inside or outside the if statement as they won't be called until needed, however, I believe declaring them in the root scope leaves the door open that they can be used as event handlers for multiple code blocks, if needed.

Should we be passing the reference instead of using a closure?

:+1:

Should we be passing the reference instead of using a closure?

In https://github.com/cfpb/cfgov-refresh/pull/537/files#diff-03f2e58f44995a5595972ef18e306eb5R20 you mean? It doesn't appear a closure is necessary for those code blocks. Personally I avoid closures as much as I can because they can make scope hard to follow, so for clarity and DRYness (if a function is reused) I tend to call event listeners by reference.

Forgot to note, npm update is required!


Error , unable to run it

My system is centos 6.8, ruby 2.3, I get below error.
(Yes, installed dante)
How to resolve?
[root@localhost newrelic_redis_plugin-1.0.1]# ./newrelic_redis_agent -d
/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
        from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from ./newrelic_redis_agent:4:in `<main>'

nvm, fixed it, installed bundler, etc.


Option to auto-redirect with a POST request

This request is coming from the conversation on the following stackoverflow question where Apache client autoredirects with a GET request when the first request is a POST.  https://stackoverflow.com/questions/54487694/in-karate-dsl-is-there-a-way-to-have-redirects-perform-a-post-request-instead-o
Similar to cURL, It would be useful to auto-redirect with a POST.
cURL example parameter
--post302 Do not switch to GET after following a 302
potential Karate example

configure followRedirectRequest = post

@aeendale I'm marking this as help-wanted - this is the first time anyone has found this an issue.
it would be good if you also check if the same behavior exists with karate-jersey in which case it could mean that it is a limitation of karate-apache
if this is so important to you, you can submit a pull-request - which means contribute the fix yourself

Thanks for the feedback Peter. I have confirmed it is also an issue with Karate-Jersey

@aeendale thanks, so for some reason 2 java-clients always use GET for a followed redirect, so maybe it is the correct behavior.
as I thought, this is the standard (what browsers do) refer: https://stackoverflow.com/a/15590485/143475
I agree it would be somewhat convenient to do what cURL does, but I don't consider this a priority and the work is non-trivial.

Thanks @ptrthomas. I was really hoping to utilize Karate in our workplace. Unfortunately I won't be able to because of the redirect issue. I agree It does seem non-trivial in nature but it can be the deciding factor in some orgs. Something to keep in mind.

@aeendale no worries. closing this issue


convert CmdStan CSV output to R dump format input

Moved from https://github.com/stan-dev/stan/issues/544
In order to perform fake data simulation or posterior predictive checking, it would be nice to be able to convert the output of a Stan model from CSV format to the input for a Stan model in R dump format.
This should be structured as a command parallel to bin/print that does the conversion of an output CSV file.  An alternative would be to have a model call argument that would produce R dump output.
The manual for CmdStan needs to be updated to show how to use this function.  This will enable us to write a chapter in the manual on fake data and posterior predictive checks.
Be careful about type of the columns --- if there are integer generated quantities, the output can be integers.
For example, for the Bernoulli model in the introduction, a fake-data generator should look like:
data {
  int<lower=0> N;
  real<lower=0, upper=1> theta;
}
generated quantities {
  int<lower=0,upper=1> y[N];

  for (n in 1:N)
    y[n] <- bernoulli_rng(theta);
}

Related issues:

To run this, we need both the output of running the Bernoulli model and a value for N in order to provide input for this model
Doing proper posterior model generation will require empty parameters and model blocks, so update the parser so that this works (or link to a different issue);  @betanalpha is working on a feature for this with a dummy sampler that can handle empty parameter vectors

I wrote some Python (from scratch it's not PyStan) to do the conversion, mainly to automate simulation + sampling for the same model when using CmdStan.  It could be a useful starting point, and though you wouldn't want me to port to c++ myself, it only uses NumPy so it should be quite portable.

Thanks, @maedoc.
Now that you mention it, RStan must have all the pieces of this implemented because of the way extract() and stan_rdump() work.

Sure but it's all in R code.

Is this still relevant? Is a converter from the cmdstan CSV output to R dump? My guess would be no.

Something like this is needed for restarts, but I think that'd require a new command.

Is this still relevant? Is a converter from the cmdstan CSV output to R dump still needed? My guess would be no.

a few use cases I've wanted this for

restarts e.g. when model takes longer than walltime limit on a cluster,
simulating data and then fitting a model to its data,
multiple model workflow
intializing HMC from an optimization

I usually end up with a mess of grep, cut, tr, nl in bash for what is a pretty simple job.  Two main modes would be

take 1 line of sampling CSV, convert to R/json format
take summary csv, convert to R/json format

It'd also be useful to massage CSV to convert matrices from x.1.2 style columns to 2D ascii matrices for use with GnuPlot or similar, but that's fairly outside scope.
Is input/output in JSON now part of CmdStan? That seems like the easiest way to go.  I could give it a go, since it'd be miles better than the bash equivalent.

Once https://github.com/stan-dev/cmdstanr/pull/95 is merged to cmdstanr, you will be able to read the samples and all sampler parameters (diviergent, leapfrog, etc.. ) with read_sample_csv(filenames) in R. It outputs the following list:
list(
    sampling_info
    inverse_mass_matrix
    warmup
    post_warmup
    warmup_sampler
    post_warmup_sampler
  )

I think this is close to what you are looking for. If you feel more at home with Python then try check_sampler_csv from cmdstanpy. I think it does something similar.

Input in JSON has been a part of Cmdstan for quite some time, we just made the input a bit faster for the last release. The ouput is still csv only however.

I'm aware of the R/Py interfaces to CmdStan as well, but was hoping to stick with a plain Bash/Makefile setup but I think for complex workflows that's just not realistic. Munging data formats on the command line is precarious esp for matrix/array datatypes.

On Dec 13, 2019, at 4:39 AM, marmaduke woodman<EMAIL_ADDRESS>wrote:
I'm aware of the R/Py interfaces to CmdStan as well,

In case it wasn't clear to our devs not involved in CmdStanPy, the original version was derived from Marmaduke's PyCmdStan package.

Don't feel bad---it's a big project with too much going on for any one person to follow.  I'm just trying to close the loops where I see an opportunity.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


bug: kubectl not installed on the first server

Summary
I tried to install lablabs.rke2 (1.12.0) on 5 VMs running Rocky Linux 8.6 (3 masters and 2 workers) with HA+kubevip. However, the Wait for the first server be ready task failed after 40 retries. The error message is
/bin/bash: line 1: /var/lib/rancher/rke2/bin/kubectl: No such file or directory

I checked the first server but didn't found the /var/lib/rancher directory. I only found a weird /etc/rancher/rke2/config.yaml  in the first server.
Issue Type
Bug Report
Ansible Version
ansible [core 2.13.1]
  config file = None
  configured module search path = ['/home/<redacted>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/<redacted>/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/<redacted>/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/<redacted>/.local/bin/ansible
  python version = 3.10.5 (main, Jun 11 2022, 16:53:24) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = False

Steps to Reproduce

Commands:
$ ansible-galaxy install lablabs.rke2
$ ansible-playbook -i hosts playbook.yaml
$ ansible-playbook -i hosts playbook.yaml

P.S. The first run failed on the "Start RKE2 service on the first server" task becase rke2-server.service isn't ready yet.
playbook.yaml:
---
    - name: Deploy RKE2
      hosts: k8s_cluster
      vars:
        rke2_ha_mode: true
        rke2_ha_mode_keepalived: false
        rke2_ha_mode_kubevip: true
        rke2_interface: ens192
        rke2_loadbalancer_ip_range: <IP_ADDRESS>-<IP_ADDRESS>
        rke2_server_taint: true
        rke2_api_ip : <IP_ADDRESS>
        rke2_download_kubeconf: true
      roles:
         - role: lablabs.rke2

hosts:
k8s_cluster:
  children:
    masters:
      hosts:
        master01.mydomain.com:
          ansible_user: root
          ansible_ssh_private_key_file: ~/.ssh/master01.mydomain.com
          rke2_type: server
        master02.mydomain.com:
          ansible_user: root
          ansible_ssh_private_key_file: ~/.ssh/master02.mydomain.com
          rke2_type: server
        master03.mydomain.com:
          ansible_user: root
          ansible_ssh_private_key_file: ~/.ssh/master03.mydomain.com
          rke2_type: server
    workers:
      hosts:
        worker01.mydomain.com:
          ansible_user: root
          ansible_ssh_private_key_file: ~/.ssh/worker01.mydomain.com
          rke2_type: agent
        worker02.mydomain.com:
          ansible_user: root
          ansible_ssh_private_key_file: ~/.ssh/worker02.mydomain.com
          rke2_type: agent

Expected Results
The cluster is deployed.
Actual Results
TASK [lablabs.rke2 : Wait for the first server be ready] ***************************************************************
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (40 retries left).
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (39 retries left).
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (38 retries left).
...
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (3 retries left).
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (2 retries left).
FAILED - RETRYING: [master01.mydomain.com]: Wait for the first server be ready (1 retries left).
fatal: [master01.mydomain.com]: FAILED! => {"attempts": 40, "changed": false, "cmd": "set -o pipefail\n/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get nodes | grep \"master01.mydomain.com\"\n", "delta": "0:00:00.005873", "end": "2022-07-12 11:50:39.491521", "msg": "non-zero return code", "rc": 1, "start": "2022-07-12 11:50:39.485648", "stderr": "/bin/bash: line 1: /var/lib/rancher/rke2/bin/kubectl: No such file or directory", "stderr_lines": ["/bin/bash: line 1: /var/lib/rancher/rke2/bin/kubectl: No such file or directory"], "stdout": "", "stdout_lines": []}

...

TASK [lablabs.rke2 : Download RKE2 kubeconfig to localhost] ************************************************************
fatal: [master02.mydomain.com -> master01.mydomain.com]: FAILED! => {"changed": false, "msg": "the remote file does not exist, not transferring, ignored"}

...

PLAY RECAP *************************************************************************************************************
master01.mydomain.com  : ok=15   changed=1    unreachable=0    failed=1    skipped=13   rescued=0    ignored=0
master02.mydomain.com  : ok=10   changed=0    unreachable=0    failed=1    skipped=15   rescued=0    ignored=0
master03.mydomain.com  : ok=10   changed=0    unreachable=0    failed=0    skipped=15   rescued=0    ignored=0
worker01.mydomain.com  : ok=10   changed=0    unreachable=0    failed=0    skipped=15   rescued=0    ignored=0
worker02.mydomain.com  : ok=10   changed=0    unreachable=0    failed=0    skipped=15   rescued=0    ignored=0

can you try run it with debug enabled.

can you try run it with debug enabled.

Did you mean the debugger? I tried adding debugger: on_failed to my task in playbook.yaml. When the task failed, Ansible display a command prompt like this:
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)>

Do I have to type any specific commands? I tried using some print commands from the manual, here are the results:
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)> p task
TASK: lablabs.rke2 : Wait for the first server be ready
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)> p task.args
{'_ansible_check_mode': False,
 '_ansible_debug': False,
 '_ansible_diff': False,
 '_ansible_keep_remote_files': False,
 '_ansible_module_name': 'ansible.legacy.command',
 '_ansible_no_log': False,
 '_ansible_remote_tmp': '~/.ansible/tmp',
 '_ansible_selinux_special_fs': ['fuse',
                                 'nfs',
                                 'vboxsf',
                                 'ramfs',
                                 '9p',
                                 'vfat'],
 '_ansible_shell_executable': '/bin/sh',
 '_ansible_socket': None,
 '_ansible_string_conversion_action': 'warn',
 '_ansible_syslog_facility': 'LOG_USER',
 '_ansible_tmpdir': '/root/.ansible/tmp/ansible-tmp-1658393654.8022914-1065-15055351682153/',
 '_ansible_verbosity': 0,
 '_ansible_version': '2.13.1',
 '_raw_params': 'set -o pipefail\n'
                '/var/lib/rancher/rke2/bin/kubectl --kubeconfig '
                '/etc/rancher/rke2/rke2.yaml get nodes | grep '
                '"master01.example.com"\n',
 '_uses_shell': True,
 'executable': '/bin/bash'}
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)> p host
master01.example.com
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)> p result._result
{'_ansible_no_log': None,
 '_ansible_parsed': True,
 'attempts': 40,
 'changed': False,
 'cmd': 'set -o pipefail\n'
        '/var/lib/rancher/rke2/bin/kubectl --kubeconfig '
        '/etc/rancher/rke2/rke2.yaml get nodes | grep '
        '"master01.example.com"\n',
 'delta': '0:00:00.005047',
 'end': '2022-07-21 15:54:15.146650',
 'failed': True,
 'invocation': {'module_args': {'_raw_params': 'set -o pipefail\n'
                                               '/var/lib/rancher/rke2/bin/kubectl '
                                               '--kubeconfig '
                                               '/etc/rancher/rke2/rke2.yaml '
                                               'get nodes | grep '
                                               '"master01.example.com"\n',
                                '_uses_shell': True,
                                'argv': None,
                                'chdir': None,
                                'creates': None,
                                'executable': '/bin/bash',
                                'removes': None,
                                'stdin': None,
                                'stdin_add_newline': True,
                                'strip_empty_ends': True,
                                'warn': False}},
 'msg': 'non-zero return code',
 'rc': 1,
 'start': '2022-07-21 15:54:15.141603',
 'stderr': '/bin/bash: line 1: /var/lib/rancher/rke2/bin/kubectl: No such file '
           'or directory',
 'stderr_lines': ['/bin/bash: line 1: /var/lib/rancher/rke2/bin/kubectl: No '
                  'such file or directory'],
 'stdout': '',
 'stdout_lines': []}
[master01.example.com] TASK: lablabs.rke2 : Wait for the first server be ready (debug)>

evt run ansible with -vvvv
and upload the log here since its the step before that call that must have failed

Hi @weeix , see the error msg on the bottom of the first log file. You will need to login to the first server and check why rke2-server does not want to start.
Unable to start service rke2-server.service: Job for rke2-server.service failed because the control process exited with error code.\nSee \"systemctl status rke2-server.service\" and \"journalctl -xe\" for details.

I thought it started on the 2nd run but I was mistaken.
$ systemctl status rke2-server.service
● rke2-server.service - Rancher Kubernetes Engine v2 (server)
   Loaded: loaded (/usr/local/lib/systemd/system/rke2-server.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2022-07-23 09:22:48 +07; 3s ago
     Docs: https://github.com/rancher/rke2#readme
  Process: 361311 ExecStopPost=/bin/sh -c systemd-cgls /system.slice/rke2-server.service | grep -Eo '[0-9]+ (containerd>
  Process: 361300 ExecStart=/usr/local/bin/rke2 server (code=exited, status=1/FAILURE)
  Process: 361299 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
  Process: 361297 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
  Process: 361294 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited,>
 Main PID: 361300 (code=exited, status=1/FAILURE)

$ journalctl -xe
...
-- Subject: Unit rke2-server.service has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has finished shutting down.
Jul 23 09:24:10 master01.k8s.forest.go.th systemd[1]: Starting Rancher Kubernetes Engine v2 (server)...
-- Subject: Unit rke2-server.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has begun starting up.
Jul 23 09:24:10 master01.k8s.forest.go.th sh[361649]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service
Jul 23 09:24:10 master01.k8s.forest.go.th sh[361650]: Failed to get unit file state for nm-cloud-setup.service: No such>
Jul 23 09:24:11 master01.k8s.forest.go.th rke2[361655]: time="2022-07-23T09:24:11+07:00" level=fatal msg="yaml: line 8:>
Jul 23 09:24:11 master01.k8s.forest.go.th systemd[1]: rke2-server.service: Main process exited, code=exited, status=1/F>
Jul 23 09:24:11 master01.k8s.forest.go.th systemd[1]: rke2-server.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit rke2-server.service has entered the 'failed' state with result 'exit-code'.
Jul 23 09:24:11 master01.k8s.forest.go.th systemd[1]: Failed to start Rancher Kubernetes Engine v2 (server).
-- Subject: Unit rke2-server.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has failed.
--
-- The result is failed.

$ sudo /usr/local/bin/rke2 server
FATA[0000] yaml: line 8: did not find expected node content

I guessed this might have something to do with the weird /etc/rancher/rke2/config.yaml file, so I tried to fix it like this:

token: defaultSecret12345
cni: canal
tls-san:
  - cluster.local
  - <IP_ADDRESS>
node-taint:
  - [] + [ 'CriticalAddonsOnly=true:NoExecute' ]
snapshotter: overlayfs
node-name: master01.k8s.example.com

However, rke2 still refuse to start:
$ sudo /usr/local/bin/rke2 server
FATA[0000] yaml: line 7: did not find expected '-' indicator

I fixed it to this:

token: defaultSecret12345
cni: canal
tls-san:
  - cluster.local
  - <IP_ADDRESS>
node-taint:
  - CriticalAddonsOnly=true:NoExecute'
snapshotter: overlayfs
node-name: master01.k8s.example.com

And the rke2-server.service is running, the /var/lib/rancher/ directory is also populated. I currently don't have access to the Ansible Controller, but the next run should succeed.
Thank you everyone.
By the way, any idea why the /etc/rancher/rke2/config.yaml file is broken? Could this have something to do with me running Ansible Controller on a WSL2 instance?

Yep, Windows as Ansible controller is a problem as it is using \r\n for the new line in the templating. Linux and MacOS (and this Ansible Role) are using \n .


[#noissue] Fix: Unset max height for the agent list and let the full list spreaded

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


A digital Principal Profile Form

Closes #309

[x] DataMade will build a custom PPF form accessible via LargeLots.org and integrated with the LargeLots back-end.
[x] Each applicant will be given a unique link to their PPF, similar to the EDS, and upon completion, the data will be saved and their application status updated.
[x] The interface will match the look and feel of the Large Lots and EDS websites.
[x] Jeanne and her team will have the ability to download a CSV file with PPF form data.
[x] DataMade will give Jeanne an option to delete applicant information from the LargeLots database after she uses the spreadsheet.

A more appropriate GIF would be if the skater replaced his skateboard with a high-powered jet pack.


feat: prepare for the next lockfile bump

What does this PR try to resolve?
The -Znext-lockfile-bump is added, so we can prepare for all
lockfile format changes and then stabilize then all at once.
-Znext-lockfile-bump is not intended for using outside our test
suite and development. Hence it's hidden.
Additional information
See https://github.com/rust-lang/cargo/issues/12120

Seems like a reasonable approach so we can slowly accumulate improvements that aren't big enough to justify a bump on their own or require doing them all at once.
@bors r+

:pushpin: Commit 03556056d43464e5efd5f6c03fa03a39b36ad94b has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit 03556056d43464e5efd5f6c03fa03a39b36ad94b with merge 424362a74cada5ae6fbae66d86607a1e0278f0db...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing 424362a74cada5ae6fbae66d86607a1e0278f0db to master...


Add Connect/Disconnect to Context Menu

It would be really helpful to be able to quickly disconnect from the FTP server by right clicking on the FTP treeview and selecting disconnect. I'd rather not have to set up/remember a hotkey to do something which is rarely ever required but searching the packages menu for 'RemoteFTP' is rather irksome.

Related to #134
You can just type in ftp in Atom's command palette to see connect/disconnect

I always right click on the treeview to do it out of habit. The treeview is more of a mouse based control so it would be nice to have the option available to the mouse as well as the keyboard.

Feel free to submit a PR :)
Shouldn't be too hard to implement that

I'll have a look into it. Still haven't really used github so I forget I can do that haha.

It's not that hard :)

Fork the remote-ftp repository
Clone it somewhere on your PC (e.g. git clone https://github.com/SolusSoftworks/remote-ftp.git)
CD into it in terminal, install dependencies with apm install and make Atom use your development version with apm link
Create your own feature branch (you can skip this, but it is nice) with e.g. git branch feature-connect-in-contextmenu and check it out git checkout feature-connect-in-contextmenu
Code your feature and test it (You can reload Atoms packages in Atoms Command Palette with "window reload", so you don't have to reopen it all the time to test changes)
Commit your code and push it to your fork on Github
Go on Github and create a pull request

This feature already exists in the latest version :)

The current version seems to be broken for me after the update. Reinstalling seems to fix it but could be something to be aware of if others are having issues.

Because even the settings pane is broken and the author label states undefinded this looks more like an Atom bug to me....

It looks like atom didn't download the files properly or something like that when it updated as there was no functionality at all. Figured I'd just make you aware of the issue in case people start opening issues here looking for a fix.

Thanks :)


Fix CI job checking google collab

The notebook was edited, @rosecers did you change it? It would be nice to check that CI still works here next time you need to do this.

The notebook was edited, @rosecers did you change it? It would be nice to check that CI still works here next time you need to do this.

Hey, sorry about that -- just making a skcosmo -> skmatter change. Do you have any thoughts on a better live-notebook than colab? Would love to change the interfacing if possible.

I don't know, my ideal solution would have the notebook in this repo, so we are sure it always passes CI. There should be solutions to run live notebooks from inside a git repo


Evaluate inlined JS interactive examples experiment

User story
As a product owner, I want to plan the next steps on optimizing interactive examples, so I can meet the team's performance goals.
Acceptance criteria

[x] Manual inline experiment is reverted
[x] Results are documented
[ ] Next steps documented

Tasks

[x] Collect page load metrics from manual inline experiment (#467)
[x] Revert the manual inline experiment (https://github.com/mozilla/kuma/pull/5019)
[ ] Report on results
[ ] Decide on next steps / next experiment
[ ] Repeat

Reported on bug 1504246:
On the test page, the results, averaged over 5 runs, are:

Interactive example as iframe:

Starts at 3.3 seconds
Interactive at 3.9 seconds
Complete at 4.5 seconds
1.3 seconds to load (complete - start)

Interactive example as inlined code:

Starts at 0.0 seconds
Interactive at 0.8 seconds
Complete at 3.1 seconds
3.1 seconds to load (complete - start)

Source data, with loading videos, are available for Mozilla employees at: https://docs.google.com/spreadsheets/d/14-Vjq-gmZSB1Y7ZI8jexnowTTpVSJLvrTAS5nMCjbNU/edit?usp=sharing
Inlining examples would have a significant performance gain. However, we're focusing on frontend changes needed to support other 2019 goals at this time.


[5.1] [CSDiagnostics] Improving the fix-it for defining computed properties

Cherry pick of #23500.
This PR offers an improvement when the user is trying to define a computed property that is initialised with a closure. For example:
class Foo {
  var something: Int = { return 0 }
}

We currently emit an error diagnostic for the above, with a fix-it to add ():

Function produces expected type 'Int'; did you mean to call it with '()'?

In case of extensions, we emit:

Extensions must not contain stored properties

With this change, we will offer another fix-it to convert it into a computed property, by removing the = and if the property is immutable, then also changing the let to a var.
Resolves SR-9267.

cc @xedin

@swift-ci please test


YouTube URL error

Hello!
I am on version 10.0.2.
When downloading some YouTube videos, an error comes up:
"
ERROR Failed to download https://youtu.be/xxxxxxxx: Error while downloading https://youtu.be/xxxxxxxx: [54547650] Unable to retrieve name for external entry of type ExternalUrl: https://youtu.be/xxxxxxxx
"
I have censored the URL but you are welcome to PM me for it.
This error shows up again and again.  It only seems to happen with shortened youtu.be links but some have downloaded normally.  No video downloads error at the beginning of the download, only later on.
The YouTube video in the error message is accessible when I paste the URL.
Thank you very much for developing this program and please let me know if there is any way I can help,
Noah

Seems like YouTube is not supported right now.  Sorry for not seeing that!


change copyright date of 2023 to 2024 in  ./pkg/ddc/alluxio/transform_init_users.go

This PR is to change copyright date of 2023 to 2024 in  ./pkg/ddc/alluxio/transform_init_users.go

/lgtm


Stemcell having startup issues?

Is there anyone else having this issue where boxes just start and then die? It started with 3262.

we have also started seeing that in our light stemcell builder pipeline. we think it has something to do with how we make / import light stemcells (via aws-light-stemcell-builder) since light stemcells produced by our older CI continue to work even for 3262. will continue investing tomorrow...

@cppforlife FWIW this is what AWS told me:

Upon inspection I noticed that the volume is just a block device. It has no valid partition table and no valid file system. Therefore it looks like your issue could be caused by an unbootable volume.

Will continue to debug this...

The support person basically mounted an ebs volume created from the ami snapshot and this is what fdisk said:
[root@ip-172-31-34-69 ec2-user]# fdisk -l /dev/xvdf

Disk /dev/xvdf: 3221 MB,<PHONE_NUMBER> bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@ip-172-31-34-69 ec2-user]# file /dev/xvdf
/dev/xvdf: block special (202/80)

That's a clever way to troubleshoot — I wish I had thought of that. I think I'll follow up on that path (specifically, what I'd like to see is what happens if I do mount /dev/xvdf /mnt/junk (I assume that it's a valid filesystem, sans partition table)).
I have opened a Pivotal Tracker story where I will update with progress.

IIRC this was a result of our "optimization" that converted the original heavy stemcell image into a stream optimized VMDK for faster uploads. We've since removed this conversion and we haven't seen this issue since. Feel free to re-open if you still see this issue.


Update in-cs-operator.md

Make language more consistent (equals to any Vs equals to one)

@davidni : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

Hi @davidni, thanks for contributing to our docs!
Change approved by @sloutsky
Approved by ADX content team
#sign-off

@YaelSchuster: I'm sorry - only the author of this article, @orspod, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


fix the ugi security bug of OrcInputFormat which is caused by thread-…

As mentioned in SPARK-11248, the spark thrift server have security bugs , cause the result that user A sometimes have the authority of user B and User B sometimes have the authority of user A in turn. I debugged it and I find that it is caused by the hive 1.2.1 library , OrcInputFormat.java, in which a thread pool is created to contact with remote HDFS. Since threads in pool is reused and shared, so , when thread-1-pool-1 is used by user A previously and after that user B is assigned to this thread in coincidence, then user B will have the security context of User A.
I have fixed this bug by add UserGroupInformation in this pool, to make sure that when a user is assigned a thread, then the security is switched to this user at the same time.

Process-wise, I think the right thing to do here is for us to work with the Hive project to publish Spark's fork of Hive via the official Hive release process. There are some proposals of how to do this at https://issues.apache.org/jira/browse/HIVE-16391. Maybe we should ping that thread to try to reach consensus with the Hive team on the right way to proceed?

@JoshRosen
Can we treat this PR as a workaround ?
It'll be nice to see this merged in Spark 2.3.0

@JoshRosen  @maver1ck  , so, should we merge it or close this PR?


Inconsistent carriage returns in generated changelogs

The problem
The commit object returned from GitPython seems to sometimes contain DOS CRs (^M)s (even when the original commit message does not contain them). This results in inconsistent carriage return style in generated changelogs with the default template
Expected behavior
Consistent CRs in generated changelog
Environment
% python3 --version
Python 3.12.3
% pip3 --version
pip 24.0 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)
% semantic-release --version
semantic-release, version 9.8.1

I can make a PR to fix this, though may need some help with figuring out the best way(s) to test if applicable.

https://bugs.python.org/issue40863
May just need to do this for the bytes decoding bit only?


update to more recent sqlcipher:4.0.1

I have released 1.0.0-alpha2, which uses SQLCipher for Android 4.0.1. Try it out and file issues if you encounter any problems!


Prepare documentation for how to use offline depot for software deployment on ESX

VC, image builder have options for how to include offline depots for software deployment for ESX. Include quick steps and references to documentation to github after testing.

@kerneltime can you please elaborate what you meant here? Is this issue still relevant?

Here's a blog that explains how to use ESXi image builder for deploying VIBs - https://blogs.vmware.com/vsphere/2012/04/using-the-vsphere-esxi-image-builder-cli.html
We need to provide concrete steps for installing vDVS VIB by following the above info.

This is closed via #1596


webView: Adjust content when soft keyboard toggles.

Fix: #1642

Updated.
@borisyankov We can include this & test it in production build (next beta).
I am working on it to make it more better. :)

Cool. Looks good!


Add a material theme

The Material design resource page has some high quality notification sounds licensed under Creative Commons. This PR selects four of those sounds and adds a material theme to chime.
Additionally this PR:

Adds a test that each theme contains all four events (error, info, success, and warning)
A LICENSE with attribution for the sounds
Modifies the example output for chime.themes() in README.md to include the material theme.

Closes #12

So cool!


No worked whith Office365

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue
Expected behavior
Add account, check mail and other functions of  email client
Actual behavior
Many errors, and don't adding account.
Steps to reproduce

add new mailbox
enter my account (email) and password
select protocol WebDAV/Exchange

Environment
K-9 Mail version:
5.600 f-droid
Android version:
AOSP 8.1
Account type (IMAP, POP3, WebDAV/Exchange):
WebDAV/Exchange
Please take some time to retrieve logs and attach them here:

Please use the mailing list for support requests.


[occm v1.21.0] Cloud provider cannot be empty

/kind bug
What happened:
Pod fails to start
What you expected to happen:
Pod to start.
How to reproduce it:
pull pod version v1.20.0
Anything else we need to know?:
--cloud-provider cannot be empty
Error: --cloud-provider cannot be empty
Usage:
  cloud-controller-manager [flags]

      --cloud-provider string                    The provider for cloud services. Empty string for no provider.

Environment:

openstack-cloud-controller-manager version: v1.20.0
OpenStack version: Wallaby

Please provide more detailed info. How did you run the openstack-cloud-controller-manager? Can you share the manifest file or command?

Please reopen with more details.


Change mem::uninitialized to mem::MaybeUninit

Since Rust 1.39.0 mem::uninitialized() has been deprecated. Removed its usages
and used the recommended mem::MaybeUninit instead.

Our MSRV is lower than 1.36.0, so I'm going to keep this PR open until it is at least that high.

Woops. Hadn't noticed you support 1.28.0 and later. In any case, happy to keep it open until appropriate.

Merged in #357.


[DocDB] Package rename

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

[x] Each command and parameter has a meaningful description.
[ ] Each new command has a test.

(see Authoring Command Modules)

Codecov Report

Merging #3267 into master will increase coverage by <.01%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master    #3267      +/-   ##
==========================================
+ Coverage   70.27%   70.28%   +<.01%
==========================================
  Files         391      391
  Lines       25068    25085      +17
  Branches     3811     3812       +1
==========================================
+ Hits        17617    17631      +14
- Misses       6342     6344       +2
- Partials     1109     1110       +1

Impacted Files
Coverage Δ

...mmand_modules/azure-cli-cosmosdb/azure/__init__.py
100% <ø> (ø)

...re/cli/command_modules/cosmosdb/_client_factory.py
30% <ø> (ø)

...cli/command_modules/cosmosdb/_exception_handler.py
18.96% <ø> (ø)

...cli-cosmosdb/azure/cli/command_modules/__init__.py
100% <ø> (ø)

...d_modules/azure-cli-cosmosdb/azure/cli/__init__.py
100% <ø> (ø)

...sdb/azure/cli/command_modules/cosmosdb/__init__.py
100% <100%> (ø)

...azure-cli-core/azure/cli/core/commands/__init__.py
84.31% <100%> (ø)
:arrow_up:

...zure/cli/command_modules/cosmosdb/_command_type.py
91.66% <100%> (ø)

...mosdb/azure/cli/command_modules/cosmosdb/custom.py
43.08% <100%> (ø)

...smosdb/azure/cli/command_modules/cosmosdb/_help.py
100% <100%> (ø)

... and 5 more

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 9ca679c...83921bc. Read the comment docs.


MVC ProxyExchange does not provide observability of URI template

Describe the bug
Using Spring Cloud 2023.0.3 and Spring Boot 3.2.7, it appears that the micrometer observability for the MVC version of ProxyExchange does not properly support URI templates. Looking at actuator at /actuator/metrics/<project>.http.client.requests the URI tag is always "none". I'm not sure if it's due to use of RestTemplate directly https://github.com/spring-cloud/spring-cloud-gateway/blob/main/spring-cloud-gateway-mvc/src/main/java/org/springframework/cloud/gateway/mvc/ProxyExchange.java#L170 as opposed to RestTemplateBuilder per https://docs.spring.io/spring-framework/reference/integration/observability.html#observability.http-client.resttemplate ?
Sample
Won't be able to provide the exact code, but we use UriComponentsBuilder which may be causing issues? Something like:
        return proxyExchange.uri(
            UriComponentsBuilder.fromHttpUrl("http://service.internal.com")
                .path("/v1/documents/{documentId}")
                .build(Map.of("documentId", "<documentId from PathVariable>")
        ).get();

I don't know if proxy exchange ever provided that.

I take back my earlier comment about using RestTemplate as opposed to RestTemplateBuilder, after doing some more digging, I believe the RestTemplateBuilder with Observability should have been injected here: https://github.com/spring-cloud/spring-cloud-gateway/blob/4a2c6d836fc8cf93afc371c06f4bdc8a6d4a0965/spring-cloud-gateway-mvc/src/main/java/org/springframework/cloud/gateway/mvc/config/ProxyResponseAutoConfiguration.java#L63
Given that, I believe this could be solved by using exchange with urivariables here https://github.com/spring-cloud/spring-cloud-gateway/blob/4a2c6d836fc8cf93afc371c06f4bdc8a6d4a0965/spring-cloud-gateway-mvc/src/main/java/org/springframework/cloud/gateway/mvc/ProxyExchange.java#L359 .
Does that sound like the right approach? Of course we'd need to add some setters on ProxyExchange like:
proxyExchange.uri("http://service.internal.com").path("/v1/documents/{documentId}").uriVariables(Map.of("documentId", "foo")).get();

Is the project still actively maintained? If so I can try to open a PR, though I admit I'm not quite a spring wizard yet.


(v0.9.1-release) Update JDK18_OPENJ9_BRANCH to v0.32.0-release-<IP_ADDRESS>

Signed-off-by: lanxia<EMAIL_ADDRESS>

Internal/Grinder/23617


Removed merge conflict in UCP release notes

Proposed changes

Unreleased project version (optional)

Related issues (optional)

@joeabbey Please file an issue we can connect to this PR.
@ddeyo Please review and merge to make sure it still reads correctly. Thanks.


launching WD with Chrome extension

According to documentation ChromeDriver allows to load extencions in headless mode.
https://sites.google.com/a/chromium.org/chromedriver/extensions
ChromeOptions options = new ChromeOptions();
options.addArguments("load-extension=/path/to/extension");
ChromeDriver driver = new ChromeDriver(options);

How can I accomplish same result with AutoIT?
_WD_Option('Driver', 'chromedriver.exe')
_WD_Option('Port', 9515)
_WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"')
$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[ "--profile-directory=Default","load-extension=\extencsion"]}}}}'

snippet was my starting point, also _WD_Options was one of varaints, but no result.
What is correct method to tell chromedriver that I need to load an extencion?

Issue solved.
load-extension=/extencsion works like a charm
Problem in path delimeter. Windows uses .
But chromedriver expects linux delimeter - /
If you will pass windows style delimeter chromedriver will fail with common error - wrong argument. But if you use linux path delimeter - everething works.

Did you try escaping the backslash, so that your code looks like this?
$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[ "--profile-directory=Default","load-extension=c:\\path\\to\\extension"]}}}}'


[Bug] Banlist Append creates a banlist only from the ydk file

The Banlist Append function is broken. It only creates a banlist out of the ydk file and gets rid of the first banlist. In my example below, I created a whitelist from Legend of Blue Eyes White Dragon and appended my pulls from Metal Raiders to it.

This is the original banlist created from only Legend of Blue Eyes White Dragon. Here you can see that I pulled 2 Blue-Eyes White Dragon.

Here I attempt to search for Blue-Eyes from the appended whitelist. As you can see, Blue-Eyes is nowhere to be found.

If I clear my search bar, only cards from Metal Raiders are visible.
Here is my LOB whitelist as well as the appended whitelist as .txt files.
LOBWhitelist.txt
AppendedList.txt
My process for appending the list was first selecting LOB and generating a pull ydk. Next I created a whitelist using the create whitelist function. Afterwards I selected Metal Raiders and generated a pull. Finally I used Banlist Append, selecting the whitelist created from LOB and the Metal Raiders ydk file.

Hey, thanks for the heads up. This was caused due to some shitty variable naming inside the main function, I've fixed it and will push it to main now.
I will make a new release with both of your reports accounted for in a bit


AttributeError: module 'wtforms.validators' has no attribute 'required'

Running the auth-flask-admin example errors with the following `AttributeError: module 'wtforms.validators' has no attribute 'required'
This is directly after pip installing the requirements and running python examples/auth-flask-login/app.py
The console output is below.
(venv) phimckni:flask-admin$ python examples/auth-flask-login/app.py
/Users/phimckni/Repos/flask-admin/venv/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py:872: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  warnings.warn(FSADeprecationWarning(
Traceback (most recent call last):
  File "/Users/phimckni/Repos/flask-admin/examples/auth-flask-login/app.py", line 58, in <module>
    class LoginForm(form.Form):
  File "/Users/phimckni/Repos/flask-admin/examples/auth-flask-login/app.py", line 59, in LoginForm
    login = fields.StringField(validators=[validators.required()])
AttributeError: module 'wtforms.validators' has no attribute 'required'
(venv) phimckni:flask-admin$ python --version
Python 3.9.10
(venv) phimckni:flask-admin$

and pip freeze just to show to correct requirements.txt was used.
(venv) phimckni:flask-admin$ pip freeze
click==8.0.3
Flask==2.0.3
Flask-Admin==1.6.0
Flask-Login==0.5.0
Flask-SQLAlchemy==2.5.1
greenlet==1.1.2
itsdangerous==2.0.1
Jinja2==3.0.3
MarkupSafe==2.0.1
SQLAlchemy==1.4.31
Werkzeug==2.0.3
WTForms==3.0.1

looks like wtforms.validators split the Required into DataRequired and InputRequired in version version 1.0.2
Looks like changing lines 59, 60, 79, and 81 from
    login = fields.StringField(validators=[validators.required()])
    password = fields.PasswordField(validators=[validators.required()])

and
    login = fields.StringField(validators=[validators.required()])
    email = fields.StringField()
    password = fields.PasswordField(validators=[validators.required()])

to:
    login = fields.StringField(validators=[validators.InputRequired()])
    password = fields.PasswordField(validators=[validators.InputRequired()])

    login = fields.StringField(validators=[validators.InputRequired()])
    email = fields.StringField()
    password = fields.PasswordField(validators=[validators.InputRequired()])

fixes the issue.
I would also suggest when getting a working example again, running pip freeze > examples/auth-flask-login/requirements.txt so that specific module version are saved.  That way the examples are future proofed for the next set of people to clone the repository.

It looks like this was fixed by https://github.com/flask-admin/flask-admin/pull/2308. Consider closing.


Time travel does not work how it is documented

Version: 0.1.0-beta.39
Python: 3.6
OS: linux

What was wrong?
The documentation states
Note: Time traveling will result in a new block being mined.

but this will actually not happen. The code just updates the header.
How can it be fixed?
Depending on what is the desired behavior, either the documentation or the code has to be fixed.
Note: Because of this behavior, TransactionFailed is currently not working properly, as it will not be raised, even if the transaction will fail, because estimateGas will not take into account the changed time.

I can open a PR on this, if I know which is the right behavior.

Without having dived into the details, I'd say that fewer side-effects is better. If you want a new block mined, then time travel and then mine the block.
cc @njgheorghita @kclowes to take a deeper look at preferred functionality.

As I wrote in my note, the problem is then, that if you do not mine a block, you can not properly test your code currently.
Something like this will not work:
tester.time_travel(time)
with pytest.raises(TransactionFailed):
   contract.functions.something_that_fails_because_of_timestamp().transact()

The transaction will fail, but TransactionFailed will not be raised, as mine_block will take into account the new timestamp, but estimateGas (which raised TransactionFailed) will not.
A fix there could be then, that estimateGas should also take into account the new timestamp.
I think it is wrong that you have to call mine_block to get the proper behavior.

A fix there could be then, that estimateGas should also take into account the new timestamp.
I think it is wrong that you have to call mine_block to get the proper behavior.

Agreed :+1:


Update resources.md

Fixed a broken link

Thanks for your contribution!
I also added back a miss-typed Spatie guidelines link, so there are now both links.


setPrivateKey called fails with messageless error when account is new

const privateKey = BncClient.crypto.generatePrivateKey()
const client = new BncClient(API_URL)
await client.setPrivateKey(privateKey)

This code will throw an error Error with no message.
Two issues with this:

I'd expect it to work! If it fails because the account was never used before, it's a bad situation because the account may receive a transaction anytime... and why should I not be able to initialize the client before that, waiting for it? (For example I may want to call getBalance() without address...)
It fails because /api/v1/account returns a 404. However, the error is invisible, because request.js simply attempts to create an error with a message coming from (err.response && err.response.data).message, basically, which will happily use an undefined message in this case. It should rethrow the original error if the message were empty/undefined...

I am also facing this same error when trying to send BNB using Transfer function and setPrivateKey. It just returns Error from request.js with code undefined. Were you able to find any solution to overcome this issue?

Well regarding the issue that you can't set the private key in the first place, what I did was just check the balance first (with address parameter - which works without private key), and if it was zero, I'd not attempt the transfer in the first place. Otherwise I'd attempt to set the private key at that point only, not initially.
Regarding the swallowed error, you could of course monkey-patch request.js as follows:
const { default: HttpRequest } = require('@binance-chain/javascript-sdk/lib/utils/request')

HttpRequest.prototype.request = function (method, path, params, opts) {
    const options = {
      method,
      url: path,
      ...opts
    }

    if (params) {
      if (method === "get") {
        options.params = params
      } else {
        options.data = params
      }
    }

    return this.httpClient
      .request(options)
      .then(response => {
        return { result: response.data, status: response.status }
      }).catch(err => {
        let error = err
        try {
          const msgObj = err.response && err.response.data
          if (!msgObj.message) throw new Error() // Just to jump into the "catch" that rethrows the original error
          error = new Error(msgObj.message)
          error.code = msgObj.code
        } catch (err) {
          throw error
        }
        throw error
      })
  }

Thanks for you reply, although it seems it started to work after a few hours. Although i have another question but not sure if it's the correct place to ask, after getting transaction hash, when i query transaction details using the RPC endpoint tx it give me output but i am not sure how i can extract the parameters like To address, From address, Amount, Asset, Fee etc. I read in the documentation that it is encoded in amino but i did not see any option to decode this, do you have any idea about this?
here is how the output looks like for a transaction i fetched:
 "result": {     "hash": "B586F2A5EF641C11989A0ED2D42BDA30617FC4A558E9C442061904326E1DCA34",     "height": "42373356",     "index": 0,     "tx_result": {       "log": "Msg 0: ",       "tags": [         {           "key": "c2VuZGVy",           "value": "dGJuYjE5d216a2x2c3ZzZmphZWRoazY0aHlmOGZmM2hqMHByZ3hjY2VqaA=="         },         {           "key": "cmVjaXBpZW50",           "value": "dGJuYjFzNDY4aDN3dHBxcTdreGt2NjRhM2dubnhjNmF5d2ptZDY2ZGpkZg=="         },         {           "key": "YWN0aW9u",           "value": "c2VuZA=="         }       ]     }

The reason it started working is because you received money.
You will always get this error when using setPrivateKey with an address that was never used (= received money) before!
For the transaction, add ?format=json, as explained here https://docs.binance.org/api-reference/dex-api/paths.html#apiv1txhash

@CherryDT Thank you so much for your quick response, you saved my day!
I am actually trying to create a deposit and withdraw functionality for my Dapp and i am able to withdraw and getting the properties from the transaction now using your above response. It's just that now i need to know when someone has deposited any asset into any of the addresses i have. I think for that purpose i need to get the block height and then run a [transactions-in-block](https://docs.binance.org/api-reference/dex-api/paths.html#apiv1transactions-in-blockblockheight) so that i can get all the transactions and then loop through them to check each of the transactions if it has my addresses in the Output data. Unless there is another way for subscribing to multiple addresses at once like ETH has filters for looking into the blocks only with certain addresses...
I really appreciate all your help sir!

Hm I think you could save the previous balance and known height and then only check for transactions once the balance changes (you can easily check the balance of an address).
I also needed deposit and withdraw but for me the use case is a bit different, I needed it to work like a payment gateway, so what I do is I create a new temporary private key when a user initiates payment and tell the user to deposit to that key's address. While the payment is pending, I keep checking that address' balance, and once I received enough money, the payment counts as successful and I transfer the money to the main account and no longer use that temporary private key. (Of course I keep it for future use in case someone accidentally sends another payment to that address, but I no longer monitor the balance.) - And then of course I have a procedure in place how to handle partial payments that are not finished up within a certain time, overpayments, etc., but that's beyond this now.

Thanks, that is the same process i am following, generating a temporary address for my user to deposit. For transferring it to main account and checking the transaction, i stored a block number which i had checked and then i am calling the Node-info endpoint to get the latest block height, i check the difference between latest block and the last stored block and then i call transactions-in-block to get all the transaction one by one from all the blocks between the last stored block and the latest block, after that i loop through all the found transactions and check if any of the transactions have To Address matching my temporary address and if yes then i call transfer function again to move funds onto main account. I couldn't see any other way to achieve this, even the function to get the latest block height i have to use setInterval which checked every 3 minutes for latest blocks. WebSockets are pretty handy for these sort of operations but it seems websockets are of no use for this scenario.
Anyway thanks for all your help!
All the best for your project.


feat(vote): implement vote endpoints

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Does PO have something like "multiple fruit" or "fruit multiple"

Like: http://purl.obolibrary.org/obo/FLOPO_0016496
or: https://en.wikipedia.org/wiki/Multiple_fruit

Hi Damion,
At the current time, the terms for multiple or aggregate fruits are synonyms of fruit:
aggregate fruit (broad), compound fruit (broad), multiple fruit (broad).
This is an area that would be good to expand on with more specific classes.

Ok. In meantime we'll use FLOPO term.


Adding "findContactByNumber" api

Hi,
I saw there is an API "findContactByNumber" present in react-native-simple-contacts, its very useful for look-up the contact number. So for trial purpose I copied the functionality from react-native-simple-contacts to react-native-contacts "ContactsManager.java" and it runs very well.
So below is the modification I have done in "ContactsManager.java" file:
    import android.net.Uri;
    import com.facebook.react.bridge.Promise;
    import org.json.JSONArray;
    import org.json.JSONException;
    import org.json.JSONObject;

    @ReactMethod
    public void findContactByNumber(String number, Promise promise) {
		Context context = getReactApplicationContext();
        ContentResolver cr = context.getContentResolver();
        Uri uri = Uri.withAppendedPath(
                ContactsContract.PhoneLookup.CONTENT_FILTER_URI,
                Uri.encode(number)
        );

        JSONObject json = new JSONObject();

        Cursor cursor = cr.query(
                uri,
                new String[]{
                        ContactsContract.PhoneLookup.DISPLAY_NAME,
                        ContactsContract.PhoneLookup.PHOTO_THUMBNAIL_URI
                },
                null, null, null
        );
        if (cursor.moveToFirst()) {
            try {
                json.put(
                        "display",
                        cursor.getString(
                                cursor.getColumnIndex(ContactsContract.PhoneLookup.DISPLAY_NAME)
                        )
                );
                json.put(
                        "avatar",
                        cursor.getString(
                                cursor.getColumnIndex(
                                        ContactsContract.PhoneLookup.PHOTO_THUMBNAIL_URI
                                )
                        )
                );
            } catch (JSONException exc) {
                //Log.e('Contact_Err', exc.toString());
            }

        } else {
            //Log.d('Contact_Debug', "Contact: Not found.");
        }
        cursor.close();
        promise.resolve(json.toString());
    }

Request to add this API for betterment of the package.
I have no experience in Java coding, so if I have done any mistake or idiotic thing, please forgive me.
Thank You.

@Louies89 something odd with this PR. You should only have to submit one commit onto master.

@morenoh149 I tried same, but I was unable to do it. So I put it here. Can you please guide me or let me know the link.

at the top of this PR it says 	Louies89  wants to merge 186 commits into morenoh149-patch-1 from master. That's wrong you should be trying to merge from a branch on a fork you own into this repo's master.

@morenoh149  Sorry for the late response. I do not own a fork of the repo.
Please take it as a suggestion and use the code. As I do not have experience in Java I do not want to do any changes which shall affect many people.
Please let me know, if I will delete the PR, it will solve the problem.

@Louies89 you should make a fork. It's the button in the upper right hand corner.

@morenoh149
Really I do not understand how to do this PR. And I am unable to give time to understand this process. By doing a quick reading, what I understand is, Pull Request is some thing like, I have to do some changes in the code and commit to a branch.
But as I do not have any prior experience and lacking time to learn it now. I request you, Please you take it forward as if you are the PR Owner and do needful changes.
If I do something, and it will create a problem, lot of folks using this package shall be affected.
So please take care of this, I am closing this.
Please do not mind. :)

@morenoh149 identify diff from master and submit pr against it.

Does anyone know why this isn't merged since March? Is something wrong with it? (besides the currently existing conflicts, that is :) )

@rahsheen the conflicts. To fix I would open a new branch off master and copy paste the proposed changes and test that they work. Feel free to do this.

should be closed, already resolved by https://github.com/rt2zz/react-native-contacts/pull/416


New Language Request: [Protocol Buffers]

[Protocol Buffers]

Protocol Buffers files are usually used to define the data modeling and when paired with gRPC the API method of a service. They are then used to generate code in the native language they will be used and are a substantial part of some codebase (5% in my case).
Logo

Upstream support

[x] tokei supports this language

Hey @0rax, thanks for the request. Do you want to implement this yourself? If not, then I would take over 😊

Hey @HallerPatrick, you can go for it, I don't have much Rust experiences and, to be honest, don't have much time to learn and tinker right now.
Thanks a lot for your consideration :smile:

Alright, I got a little bit creative! I was not using the image provided by @0rax cause the round corners are not working to well in ascii. So I used the more "sharp" version.
Which one (if even) you like better? @o2sh @spenserblack @0rax
No. 1:

No. 2:

Wow nice ! It works really well with those sharp corners and aspect ratio (which match the older logo design before Google redesigned not so long ago). I'm sure nobody would mind it.
As per both designs, I do have a small preference for number 2 here.

Looks great @HallerPatrick :tada:
it will just require some slight retouching to make it perfectly symmetrical - I'll show you where in the PR if needs be.

Looks great @HallerPatrick 🎉
it will just require some slight retouching to make it perfectly symmetrical - I'll show you where in the PR if needs be.

Please go ahead! :)

80af6ec

80af6ec  254498e

80af6ec 254498e

Clean!

final version:


Add travel reimbursement condition in the rules of competition.

Add this into the rules:

Participants who asked for a travel reimbursement need to post a project before the deadline in order to get the reimbursement.

Also, add it into the FAQ -> Deadline for projects submissions?

I would add it to rules and to DayOf page. As well as a separate a question

Okay fine