FF ONLY Merge release-v1.0.0 into master, February 6 (final merge).

$ git checkout -b merge-release-1.0.0-into-master-february-6
Switched to a new branch 'merge-release-1.0.0-into-master-february-6'

$ export mb=$(git merge-base scalajs/release-v1.0.0 scalajs/master)

$ git log --graph --oneline --decorate $mb..scalajs/release-v1.0.0 | cat
* 06bccde01 (scalajs/release-v1.0.0, origin/release-v1.0.0, release-v1.0.0) Towards 1.0.1.
* e6a24304c (tag: v1.0.0) Version 1.0.0.
*   86db71006 Merge pull request #3946 from sjrd/fix-classloader-leak
|\
| * c0d440086 (origin/fix-classloader-leak) Document that some APIs of the sbt plugin are unstable.
| * fdd90745c Expose the `ClassLoader` of `LinkerImpl.reflect()`.
| * 7fcea330c Extract the classpath used for LinkerImpl in a separate key.
| * 56dd6ef4d Store the scalaJSLinkerImpl in a CacheBox.
| * 09b584fa5 Make CacheBox public.
|/
* 74c0be039 Merge pull request #3947 from sjrd/use-sbt-dependency-resolution-for-linker-impl
* 1f92cf6f5 Fix #3948: Use sbt's `dependencyResolution` for the LinkerImpl.

$ git merge --no-commit scalajs/release-v1.0.0
Auto-merging project/BinaryIncompatibilities.scala
Automatic merge went well; stopped before committing as requested

$ git st
M  ir/src/main/scala/org/scalajs/ir/ScalaJSVersions.scala
M  project/BinaryIncompatibilities.scala
M  project/Build.scala
M  sbt-plugin/src/main/scala/org/scalajs/sbtplugin/CacheBox.scala
M  sbt-plugin/src/main/scala/org/scalajs/sbtplugin/LinkerImpl.scala
M  sbt-plugin/src/main/scala/org/scalajs/sbtplugin/ScalaJSPlugin.scala
A  sbt-plugin/src/sbt-test/linker/custom-linker/build.sbt
A  sbt-plugin/src/sbt-test/linker/custom-linker/custom-linker/src/main/scala/customlinker/CustomLinkerImpl.scala
A  sbt-plugin/src/sbt-test/linker/custom-linker/custom-linker/src/main/scala/customlinker/EntryPointAnalyzerBackend.scala
A  sbt-plugin/src/sbt-test/linker/custom-linker/main/Main.scala
A  sbt-plugin/src/sbt-test/linker/custom-linker/project/CustomScalaJSLinkerPlugin.scala
A  sbt-plugin/src/sbt-test/linker/custom-linker/project/build.properties
A  sbt-plugin/src/sbt-test/linker/custom-linker/project/build.sbt
A  sbt-plugin/src/sbt-test/linker/custom-linker/test
A  sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/build.sbt
A  sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/my-project/Main.scala
A  sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/project/build.properties
A  sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/project/build.sbt
A  sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/test

$ git commit
[merge-release-1.0.0-into-master-february-6 40837e909] Merge 'release-v1.0.0' into 'master' (final merge).

After this merge, the branch release-v1.0.0 can be deleted.

IMHO the changes already on master warrant a minor release version (n.b. the changes to tree builders might introduce minor memory regressions).
I thought you wanted to keep the release-v1.0.0 branch to fix immediate issues (like #3950) in a patch version.
So merging is in any case fine, we can also immediately open another branch (1.0.x?) at 06bccde01273b303d26d4a2fd53f548ed01c38e7.
Just wanted to clarify what the plan is here.

I don't think it's worth maintaining several branches. If the changes on master deserve a minor version bump, then the next version after 1.0.0 will be 1.1.0, and that's it.

Ok, that also works for me. We can also decide that just before that next release.


Merge develop into staging, 2023 july 11 edition

Let's test some changes! (Also, by putting these changes on staging, Jan from CI can check that we've implemented the json-cid API correctly.)

The changes are up on the staging server! All tests are passing!


Kernel Governance: implement payout for kernel version developers

Closing in favor of https://github.com/zeppelinos/kernel-registry


BUG: try_cast_to_pandas doesn't preserve dtypes for empty frame

Reproducer:
def test_try_cast_to_pandas_preserve_dtypes():
    modin_df = pd.DataFrame({"col": [1]}, dtype=np.int64)
    pandas_df = pandas.DataFrame({"col": [1]}, dtype=np.int64)
    modin_df.query("col > 2", inplace=True), pandas_df.query("col > 2", inplace=True)
    casted_to_pandas_df = modin.utils.try_cast_to_pandas(modin_df)
    df_equals(casted_to_pandas_df, pandas_df)
    df_equals(casted_to_pandas_df.dtypes, pandas_df.dtypes)

Error:
E   AssertionError: Series are different
E
E   Series values are different (100.0 %)
E   [index]: [col]
E   [left]:  [object]
E   [right]: [int64]

@anmyachev @Billy2551 is working on #4605. In case you don't need this fixed urgently, you could skip the fix and wait for a comprehensive fix, which should hopefully come within 3 months, for #4605.

@anmyachev @Billy2551 is working on #4605. In case you don't need this fixed urgently, you could skip the fix and wait for a comprehensive fix, which should hopefully come within 3 months, for #4605.

Good! My other PR highlights this problem in CI, then I'll just mark it as xfail.

From what I've seen so far, from_pandas function doesn't save dtypes of the empty dataframe either (because the empty dataframe doesn't get into put function).

Problem not reproducible on master.


@ApiRequestParam

Hi!
In Spring it is possible to annotate a variable in a method with org.springframework.web.bind.annotation.RequestHeader indicating: "that a method parameter should be bound to a web request header" (according to Spring JavaDoc). Would it be possible to extend JSONDoc with a new annotation to document this type of parameter. For instance: @ApiRequestParam?
Our current use case is that the customer needs to set a custom HTTP Request Param used for authentication. It would be really nice to be able to document this in the API documentation.
Regards,
Per

I have a slightly similar use case for a auth header.
I am looking at using the @ApiHeaders type. This can be specified at the method level (though my use case would be easier at the class level).
But it sounds like you would like the SpringJSONDocScanner.getHeadersFromSpringAnnotation to handle RequestHeader similar to how RequestParam is handled.

Will be fixed in version 1.1.10, to be released shortly. @RequestHeader annotation will still be activated by the @ApiHeader on the same parameter, for example:
public Book header(@RequestHeader(value="myHeader") @ApiHeader String myHeader) {
//...
}

If you don't specify @ApiHeader on the same parameter, then the item is not documented.

Sweet! Works like a charm ;) Thank you


OwnPropertyKeys does not return an iterator; it returns a List

Iterating over it with IteratorStep etc. is not appropriate. See e.g. the spec for CreateArrayFromList to see correct iteration protocol.

Done, and simplified specs as overall result.
http://webreflection.github.io/Object.getOwnPropertyDescriptors/

Lovely, LGTM.


[slack] Link unfurl followup

What changes were proposed in this pull request?

Added max row/col constraint for result table in slack
Added except Exception: for better readibility in payload function

How does it look like without truncating columns?

Example of SELECT * query with only 2 rows but 11 columns as result @romainr

And PLAIN_COLUMNS style?
"Setting a table style"
https://pypi.org/project/prettytable/
+1 for max rows. but would rather keep the column lists as is (or if we keep to max to 100 maybe?)

And PLAIN_COLUMNS style?
"Setting a table style"
https://pypi.org/project/prettytable/
+1 for max rows. but would rather keep the column lists as is (or if we keep to max to 100 maybe?)

Plain column is a bit less messy but due to line wrapping it is not structured.


stubs do not have the same arity as the functions they replace

Node v0.10.26
Sinon v1.11.1
Normally this wouldn't be a problem. The reason I noticed this is because I want to stub a function that I will later curry. Without the correct arity, the curry function cannot work as is should.
Here is a minimal example:
var sinon = require('sinon');

var obj = { fn: function (a,b) { } }

console.log(obj.fn.length);
sinon.stub(obj, "fn");
console.log(obj.fn.length);

Expected output:
2
2

Actual output:
2
0

@tmfset Thank you for reporting this, it looks like an interesting one to solve :+1:
Have you managed to fix this yourself, or come up with a workaround in the meantime?

Yes there is a workaround for this, I suppose I should have posted it :)
Taking my example above, instead of stubbing like this:
sinon.stub(obj, "fn");

one can fill in a small stub function of their own with the correct arity:
sinon.stub(obj, "fn", function (a,b) { })

This can be enough for simple cases, but it has some problems. For one, if the arity of the function ever changes, you will have to correct any tests that stub it.

I remember fixing this for spies here: https://github.com/cjohansen/Sinon.JS/blob/master/lib/sinon/spy.js#L65
We should do something the like for stubs as well.

:+1:
This is the only reason I can't use Sinon stubs when testing Express.js apps.  Express determines the middleware type by its arity.


WGSL: Intrinsics: data packing/unpacking

packing (9 functions), unpacking (7 functions)

This refers to the functions mentioned in the following sections
https://www.w3.org/TR/WGSL/#pack-builtin-functions
https://www.w3.org/TR/WGSL/#unpack-builtin-functions


Create README_ZH.md

Add Simplified Chinese version README

Nice to have, however I'll be updating the docs quite a lot in the next few days and I won't be able to maintain the chinese docs since I don't speak chinese.
Have you thought of any continuous intnegration solution for this?

This is indeed a question, and I would like to answer it from the following points:
Firstly, I came across up-fetch by chance, and after reading through it, I believe it to be an exceptionally good JavaScript library. It addresses a problem that many developers encounter. Therefore, I am very happy to recommend it to other developers and am willing to take on the translation work to promote it in regions where Chinese is spoken.
Secondly, to ensure the usability of the documentation, I think we can specify the version of the documentation to clearly state whether the current code matches the current documentation. Based on my past experience, I've found that differences in details do not cause too much trouble for developers, but the availability of a local language version can significantly affect its promotion. For example, in China, Vue.js is used more than React, largely because the Chinese documentation is better.
So, what do you think about me taking on the responsibility for the Chinese documentation? I currently have the time to do this. On a side note, if for some reason I am no longer able to maintain the updates for the Chinese documentation, I would also like to find someone else to take over my role. This should not be too difficult in my country.

For example, in China, Vue.js is used more than React, largely because the Chinese documentation is better.

Yep China has a huge pool of devs that might struggle with english docs

Firstly, I came across up-fetch by chance, and after reading through it, I believe it to be an exceptionally good JavaScript library.

I'm glad that you like it, there are some improvements to bring here and there but I'm pretty happy with what we've got so far

and am willing to take on the translation work to promote it in regions where Chinese is spoken.

That would be awesome!
I updated the docs with a raw fetch vs upfetch section.
Would you mind translating it before I merge ?
I found out many persons struggled to understand the why of this library.
Thank you for your work, and feel free to reach out to me and give some feedback!

I updated the docs with a raw fetch vs upfetch section.
Would you mind translating it before I merge ?

Okay, no problem
Is it still located in README or is it another separate file？

It is in the README
https://github.com/L-Blondy/up-fetch?tab=readme-ov-file#raw-fetch-vs-upfetch
I also dropped support for deno with the npm: specifier since deno does not support optional peerDependencies.
I may add it on a later version if requested by the users


Stats not uploading onto Hearthstats

I've synced the HSTracker with Hearthstats, but the stats aren't showing. Do I have to take an extra step?

Last 5 games i played were not uploaded, too.

I'm working very hard to get it fixed. Hopefully, I should have found the correction !


Doesn't load data anymore after replacing redux-async-connect with redux-connect

I'm trying to switch from redux-async-connect to redux-connect.
I migrated as done in this PR https://github.com/erikras/react-redux-universal-hot-example/pull/1140
The problem is that once I replace all from 'redux-async-connect in import statements with redux-connect it doesn't fetch any data anymore.
This is part of an example page where I want to use redux-connect:
import React, {Component, PropTypes} from 'react';
import Helmet from 'react-helmet';
import { asyncConnect } from 'redux-async-connect';
import {connect} from 'react-redux';
@asyncConnect([{
deferred: true,
promise: ({
store: {
dispatch,
getState,
}
}) => {
if (!isLoaded(getState())) {
return dispatch(load());
}
}
}])
@connect(
state => ({
items: state.invoice.data,
error: state.invoice.error,
loading: state.invoice.loading,
loaded: state.invoice.loaded,
messages: state.intl.messages,
}),
dispatch => ({dispatch})
)

I am having a similar issue on the latest version, I reverted back to version 2.1.0 and it seems to work.

filter doesnt work properly if you want to have different props loaded on server/client - check #30

import React, {Component, PropTypes} from 'react';
import Helmet from 'react-helmet';
import { asyncConnect } from 'redux-async-connect';
import {connect} from 'react-redux';

@asyncConnect([{
  promise: ({ store: { dispatch, getState } }) => {
     if (!isLoaded(getState())) {
        // must return promise!
        return dispatch(load());
    }
  }
}],
state => ({
  items: state.invoice.data,
  error: state.invoice.error,
  loading: state.invoice.loading,
  loaded: state.invoice.loaded,
  messages: state.intl.messages,
}))

This is optimized version of your code, since dispatch is passed by connect in any case


Training network on GPU. Error: "The JSON-RPC connection with the remote party was lost before the request could complete."

System Information (please complete the following information):

Model Builder or CLI Version: <IP_ADDRESS>6603
Model Builder GPU Support Version: <IP_ADDRESS>6603
Visual Studio Version (if applicable): Professional 2019 version 16.11.1
.Net 5.0

Describe the bug

On which step of the process did you run into an issue: Train step in Image classification scenario using Local GPU and default flower photos from tutorioal
Clear description of the problem:

I am trying to take the first steps in a home project, I decided to try to train the network using my local video card, but I ran into the problem "The JSON-RPC connection .."
After searching Google for information, Microsoft recognized this error and they fixed it in 16.5.4, but my environment is newer.
I tried to restore the installation via Visual Studio Installer, but to no avail.
Has anyone encountered such a problem? Can someone suggest how to deal with it.
To Reproduce
Steps to reproduce the behavior:

Go to 'Add..'->Machine Learning
Click on 'Image classification'
Select on Environment tab Local (GPU)
Click on "Check combability"
Click "Next step" and select dataset (i'm using default dataset with flowers classification) and click "Next step"
On Train step click "Train" and wait few seconds
See error

Expected behavior
Training proceeded without error and i can move to "Evaluate" step
Screenshots

Additional context
06428ff7-b6fc-4b0a-88b4-4156f15cf916.txt
c652506b-4dd5-4f80-8abe-efbc08b38f84.txt
9754cd7b-5563-44ff-abfd-8f684fbf7c68.txt

@LittleLittleCloud We have another The JSON-RPC connection with the remote party was lost before the request could complete error. This one is on Dev16. Do you have any ideas?

The error The JSON-RPC connection with the remote party was lost before the request could complete error simply indicates that the training process was terminated unexpectedly. From the log provided, it seems that the training process was terminated after RawByteImageLoading and before image classification, which is probably where training is broken.
The reason why the training process being terminated can be various. It could be OOM in system, GPU driver issue or other things. Based on the log provided, there's little way for us to find out which is the root cause.
It would be of great help if you can rule out a few possible causes from framework side by running the project below. It's basically a call into MLNet image classification API, which is the same one used by Model Builder in image classification scenario.

Thank you for responding to my problem! I started the project from the last comment. It looks fine
Results in file
imageClassificationSample-24-08-21.txt

@Exterminated
Thanks for the response. So it seems that mlnet framework itself doesn't have problem. And let's try if we can rule out the automl service as well by running the two experiments below:
First experiment
Try CPU training in ModelBuilder by selecting CPU in Environment step
Second experiment
Try image classification in mlnet cli.

install mlnet cli in private channel by running the following command
dotnet tool install -g mlnet --add-source https://mlnetcli.blob.core.windows.net/mlnetcli/index.json
launch image classification
mlnet image-classification --dataset /path/to/your/image/folder

If both experiments can be run without problem, we can assume that the error might be in servicehub side

Yep, both experiments was successful. What i should check/reinstall with servicehub side?
mlnet-image-test-25-08-2021.txt

@LittleLittleCloud
Dose i need start training via cmd?

mlnet image-classification --dataset /path/to/your/image/folder

I replaced dll's and then start training via cmd. I don't see any mentions of my gpu in logs
mlnet-29-08-2021.txt

@Exterminated
What you do looks correct. But from the log it seems that the mlnet cli is still using cpu to train the model.

Hi @Exterminated
What's the largest size of your images, the error could be caused by OOM on GPU and is most likely because of some very large pictures.

@Exterminated Is this issue resolved?

Hi @beccamc! Unfortunately no =(
I was trying retest this a few month ago and get same errors with small pictures.

Have you updated to latest version 16.13.1?

@beccamc Yes

@LittleLittleCloud Are you able to help here again? It's still an issue.

Yeah sure,, we no longer use image classification api from AutoML.Net since v16.13.1 so it might provides more logs and more information to trace. @Exterminated would you be able to share with us model builder log again.
Regards!

I know this is an old issue. We've had a few releases. @Exterminated Any chance you can try on 16.14.0  and share logs?


[CLOUDSTACK-5235] ask users old password when they are executing a password update

Description

This is a long standing issue in Jira. It was asked for us to re-authenticate users with their old password when users execute a password update.
One thing to note though. Root/domain admins are able to update users password (users they have access to) without needing to provide the old password.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[X] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?
Locally and via unit tests for the newly introduced code.

Checklist:

[X] I have read the CONTRIBUTING document.
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
Testing
[X] I have added tests to cover my changes.
[X] All relevant new and existing integration tests have passed.
 I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✖debian. JID-1933

@blueorangutan package

@rafaelweingartner a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1934

@blueorangutan test

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Thanks, @rafaelweingartner for making the changes, I will review rest of the changes by tomorrow or day after.

@nitin-maharana thank you for the review ;)
Thanks!

Trillian test result (tid-2516)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 89580 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2574-t2516-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_certauthority_root.py
Intermitten failure detected: /marvin/tests/smoke/test_routers.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 64 look OK, 3 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_04_restart_network_wo_cleanup
Failure
4.15
test_routers.py

test_01_redundant_vpc_site2site_vpn
Failure
325.35
test_vpc_vpn.py

test_hostha_enable_ha_when_host_in_maintenance
Error
0.99
test_hostha_kvm.py

@borisstoyanov the errors here do not seem to be related to the changes introduced. Can I consider the test successful?

@nitin-maharana are you fine with these changes now?

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1995


Expanding tokens inside action tags

Currently, module tokens are being parsed inside action tags. I believe this is a bug.
Example with MPD
When I click on label-song, I want to be sent a notification with information about what's currently playing via mpc. In this example, I am send a notication with the name of the current album playing:
[module/mpd-nowplaying]
label-song = %{A1:notify-send "Currently Playing" "$(mpc -f "%album%" | head -1)":%album% - %title%%{A}

However, this config will interpret %album% and treat it like an mpd toke, expanding it to the name of the currently playing album:
notify-send "Currently Playing" "$(mpc -f "<currently playing album>" | head -1)"

For this specific usecase, you may think well what's the problem? Either polybar or mpc will end up expanding %album% to the album anyways, so it doesn't matter?
However, if the album contains a colon (:), it will not be escaped, and so the command will look like this:
notify-send "Currently Playing" "$(mpc -f "Example Album: Super Collection" | head -1)"

This leads to errors like this:
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
error: Failed to parse contents (reason: Unrecognized token 'S')
...

Long story short, tokens that have the potential to contain colons are particularly dangerous and should not be parsed/expanded.
Trying to Escape the Token
If you escape the token with backslashes, the token is not interpreted, but the backslashes are not removed when sent to the shell, so the command will look like:
notify-send "Currently Playing" "$(mpc -f "\%album\%" | head -1)"

Since it is still escaped, mpc will not recognize it as a format tag.
Solutions

Don't parse tokens inside action tags.
Allow tokens like %album% to be escaped, like \%album\%, and remove the backslashes when parsing, similarly to how escaped colons' backslashes are deleted before the command is sent to the shell (e.g. \: becomes :, then is sent to shell).

Version Info
Output of polybar -vvv:
polybar 3.4.0-80-gc9a43dd

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags:  -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags:

I have noticed a possible earlier response in #2063:

a polybar token is placed inside a user-defined action tag and polybar doesn't know it needs to escape the colons and we will indeed not fix this.
-- @patrick96

So, it is possible this is a duplicate of #887. However, in that specific use case, there was a workaround because of the specific command being used, which is not possible here. I am keeping this open to see the response.

It seems that this is part of a larger parsing problem with more than just colons. There have also been problems escaping {/} characters  (#2040, #2061, #2063).
It seems an approach was started in #1065.

I have found a workaround to escape tokens inside action tags: by surrounding each % with double quotes, parsing is prevented. For example:
label-song = %{A1:notify-send "Currently Playing" "$(mpc -f "%""artist""%\: ""%""album""%"" - ""%""title""%" | head -1)":}%{u#C0C5C5}%{+u}%album:0:32:…%%{-u} - %title%%{A}

This way, each character is still sent correctly to the shell, and the tokens are not parsed. It's a bit unreadable, and it just a workaround, but it does work.

This is indeed the same issue as #887 and the answer there is still that it is not possible (or at least not feasible), though my proposal in https://github.com/polybar/polybar/issues/1524 may give an alternative where you could use tokens.
The other issues you linked are not related to this.
The solution here is to let users escape tokens.


Simulator Runs HttpServer that listens on all interfaces

When the simulator is launched, the HttpServer listens on all interfaces at the specified -http-port according to communication.cs
Can you add an option to specify a specific address to open the port on? i.e. use the WebSocketSharp.Server.HttpServer(url) as an option vs WebSocketSharp.Server.HttpServer(port).
This will resolve controlling the exposed ports when running the simulator.

Hi @eric-hsiung! I will implement this as soon as possible.


Flakey e2e test "kubectl update-demo should do a rolling update of a replication controller"

kubectl update-demo should do a rolling update of a replication controller
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/kubectl.go:95
Error running &{/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/hack/../platforms/linux/amd64/kubectl [kubectl --kubeconfig=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/.kubeconfig rollingupdate update-demo-nautilus --update-period=1s -f examples/update-demo/v1beta1/kitten-rc.yaml] []   Creating update-demo-kitten
Updating update-demo-nautilus replicas: 1, update-demo-kitten replicas: 1
F0323 11:42:22.425281     766 rollingupdate.go:54] Error received from API: replicationController "update-demo-nautilus" cannot be updated: 101: Compare failed ([1271 != 1295]) [1301]
[]  0xc208106e60 exit status 255  true [0xc2081244e0 0xc208124510 0xc208124530] [0xc2081244e0 0xc208124510 0xc208124530] [0xc208124508 0xc208124528] [0x615e20 0x615e20] 0xc20813b9e0}:
Command stdout:
Creating update-demo-kitten
Updating update-demo-nautilus replicas: 1, update-demo-kitten replicas: 1
stderr:
F0323 11:42:22.425281     766 rollingupdate.go:54] Error received from API: replicationController "update-demo-nautilus" cannot be updated: 101: Compare failed ([1271 != 1295]) [1301]

This test is failing several times a day in Jenkins:
http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce/
I'm gonna have a shot at fixing it.

I've reproduced this on a private GCE test cluster.  Looks pretty straightforward to fix:
F0323 17:49:33.086047    1898 rollingupdate.go:54] Error received from API: replicationController "update-demo-nautilus" cannot be updated: 101: Compare failed ([2767 != 2804]) [2815]

My first guess is that the resource version numbers on the update don't match?  Retry required?

This seems like a bug with the code rather than with the test (for once).

Error comes from here:
https://github.com/GoogleCloudPlatform/kubernetes/blob/6c5f7f7f64a1d86f8a1149ff51d30b9cd7ff62d4/pkg/api/errors/errors.go#L132

Its failing because something else is updating the same key at the same time (most likely the replication controller manager): https://github.com/GoogleCloudPlatform/kubernetes/blob/6e242739378fd830a62afb1375c80ad24254a85b/pkg/kubectl/rolling_updater.go#L164
It should retry the update like other parts of kubectl. Essentially you'll need to create a true/false condition that wraps around the update operation, and polls till a timeout, eg:
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/kubectl/stop.go#L78

Cool, thanks.  Yes, that's what I assumed.

This issue hasn't been as prevalent on the GCE CI builds lately but I'm seeing it quite frequently (>20% of the time) on a different CI that we are running.

PR #6194 fixes this.  Out for review.


Merge of development branch into master

Major changes:

signature of get_next_requests method is changed, now it accepts arbitrary key-value arguments,
Overused buffer (subject to remove in the future in favor of downloader internal queue),
Backend internals became more customizable.
Scheduler now requests for new requests when there is free space in Scrapy downloader queue, instead of waiting for absolute emptiness.
Several CF middlewares are disabled by default.

@plafl ping

@sibiryakov It looks good. There are a few minor flake8 complains however.

Nice, looks good to me as well.


Dutch Auction

Description
Added a dutch auction contract .
Fixes #159
Type of change

[x] Add a new project

Domain of Contribution

[x] Project using only Solidity

[x] Project Test on the Remix IDE

Checklist ✓

[x] l have performed a self-review of my own code or work.

[x] My changes generate no new warnings

Are you contributing under any open-source program ?
HackOberfest

Looks great to me , Thank u for contributing in my repo .
Looking forward to see more contribution from your side .


enhancement: upgrade tsconfig to use es2020.

What:
Update typescript configuration to make use of es2021.
Preparing the package/server to include the es2020 output of the apollon dependency.
Why:
As the Apollon repository got updated to get build as esmodule instead commonjs after the update to es2021, we have to adjust Apollon_standalone to be able to integrate apollon.

not ready yet


Allow complete deactivation of telemetry or any other sending of data from the user device

Currently your app connects to:
Microsoft : <IP_ADDRESS> (probably app insights)
and
nef.dk: <IP_ADDRESS> (why?)
Your app has complete access to the files in a user's device.
Doing this (nef.dk) without explaining why and what exact data is sent and without requesting permission is suspicions at least.

Ugh I really don't think we connect to nef.dk 🤔. @yaichenbaum does the version from GitHub connect to AppCenter?

Maybe a lib that you use connects to nef.dk (<IP_ADDRESS>), this is not my isp.
You can trace the connections using ProcMon
I understand the reason for using MS AppCenter / Application insights for monitoring, but still, it would be better to make this an optin. By asking first, you create more trust. And trust is the main reason most of us use OSS in the first place.
By the way, your app is great!
When you decide to add a donation button, please consider using also Monero(XMR), it is private. Monero OSS Wallet

does the version from GitHub releases use AppCenter?

All release versions use AppCenter.
@RwSgxx I'm not familiar with nef.dk but it could be that it's used for AppCenter as well.
We encourage you to explore the code base and to inspect the data being sent to AppCenter for peace of mind. We rely on telemetry to fix bugs and to better understand which features are being used and turning it off would limit our abilty to improve the app.


Notebook callback name

Hello, I came across this code.
https://github.com/google-research/scenic/blob/471da6bff844b102ef1527bc3489b3290a4f2d21/scenic/projects/owl_vit/notebooks/interactive.py#L18
Should it be changed to 'image_conditioning_py_callback', or is it okay to leave it as it is?

Thanks for pointing this out. I think you're right, although it's not a big problem in practice since you can just re-run the corresponding Colab cell to re-register the appropriate callback. Fixed in #464


refactor: starknet_block_to_eth_block using type wrapper impl.

depends on #149
### Tasks
- [ ] implement ConvertibleEthBlock for the two wrapper structs from #149
- [ ] write into_eth_block for the two wrapper structs from #149, it must be ISO with kakarot_client. starknet_block_to_eth_block, except no need to filter_kakarot_tx anymore inside this function
- [ ] test the feature
- [ ] replace instances of kakarot_client.starknet_block_to_eth_block by the newly implemented wrapper type
- [ ] delete kakarot_client.starknet_block_to_eth_block

Note: in https://github.com/sayajin-labs/kakarot-rpc/blob/b4e148fc72c5a414199fe4bec3d0e3c3726d5fee/core/src/client/mod.rs#L169
i.e. in get_eth_block_from_starknet_block, add filtering kakarot tx if needed, i.e.
Separate concerns when doing conversion from starknet block to ethereum block format, and then filtering transactions inside a Starknet block to assert which transactions are kakarot transactions.


Add jmeter-grpc-request in grpc-plugins

Hi Team,
Please review and approve the merge request. JMeter gRPC Request: https://github.com/zalopay-oss/jmeter-grpc-request
Thanks.

Very good!

Hi @undera,
I have a question for you, when will the JMeter gRPC Request be available on site https://jmeter-plugins.org after the merge?
Best Regards

It appears shortly after merge: https://jmeter-plugins.org/?search=jmeter-grpc-request
In Plugins manager, there is a 24h local cache that might delay users from seeing new plugin. Deleting the cache file would refresh it.


Code blocks have unreadable white text on white backgrounds in dark mode

Describe the bug
context
When I switch to dark mode, code becomes unreadable.
expectation
I expect either the background or the text to turn white in code blocks, but not both.
bug
But instead the text and background both turn white in code blocks in dark mode.
Reproduce the bug
Go to https://mesagrid.readthedocs.io/en/latest/quickstart.html and click on dark mode in the top right
List your environment
https://github.com/earlbellinger/mesagrid/blob/main/requirements_dev.txt

I encountered the same issue. My current workaround is a custom CSS with the following content:
/*
    Format code related blocks from MyST-NB
        - Standard background color
        - stderr and similar blocks with accent color
        - Stream and text blocks with muted color
*/
div.cell_input.docutils.container {
    background-color: hsl(var(--background)) !important;
}
div.output.stderr > div.highlight, div.output.stdout > div.highlight {
    background-color: hsl(var(--accent)) !important;
}
div.output.stream, div.output.text_plain, div.output.text_html {
    background-color: hsl(var(--muted)) !important;
}

/*
    Format tables (needed to render pd.DataFrames):
        - Standard background color
        - Alternate row background color (odd rows)
        - Text color to foreground color
        - Hover row background color based on destructive color (50% opacity)
*/
div.cell_output tbody {
    background: hsl(var(--background)) !important;
}
div.cell_output tbody tr:nth-child(odd) {
    background: hsl(var(--muted)) !important;
}
div.cell_output table {
    color: hsl(var(--foreground)) !important;
}
div.cell_output tbody tr:hover {
    background: hsl(var(--destructive) / 0.5) !important;
}

This probably misses a few stylings, and is too simplified, but it works for my current use-case (catching code blocks and their basic output, as well as pd.DataFrames with row highlighting).

Further information:

Similar issue: #523
Another workaround (from the mentioned issue): GlacioHack

This mostly fixed it, thank you!
The only issue that still remains is that some outputs now have black text on black background. See for example the output from tqdm here: https://mesagrid.readthedocs.io/en/latest/plotting.html

This breaks ipywidgets in dark mode:

Could people here confirm whether they still see this with the latest version of packages? I think @flying-sheep is seeing a different issue related to our output styling.

Ah sorry, makes sense, code blocks are no output. Should I make a new issue for my problem?

@flying-sheep that would be really useful! I haven't done a pass to see if its been reported before, but it might have been!

OK, done: https://github.com/executablebooks/MyST-NB/issues/618

While the original issue seems to be resolved, there are still some outputs that are wrong, as demonstrated in the myst docs; light background with very light text. I'm adding the link, as well as the screenshot to help triaging in the future.
https://myst-nb.readthedocs.io/en/latest/render/format_code_cells.html


Commercial Use?

Fabulous work! Can we use your code and models for commercial purposes?

@Anshul58 yes, sure :)
if you mention the name ruDALL-E in your commercial idea, it will be wonderful :)
but it is not necessary with our License

Thanks !


Task 5.3.16 Ensure SSH Idle Timeout Interval is configured

Feature Request or Enhancement
Is it possible to implement the following enhancement?
I am refering to tag version 1.2.1

Enhancement

In section_5 --> cis_5.3.x.yml --> Task 5.3.16 Ensure SSH Idle Timeout Interval is configured, can the line (number 300) below:
line: "ClientAliveCountMax 0"

be replaced with:
line: "ClientAliveCountMax {{ amazon2cis_sshd['clientalivecountmax'] }}"

I see the variable is already availabe in defaults/main.yml file as shown below:
amazon2cis_sshd:
    # clientalivecountmax: 0

It just need to be uncommented.
Summary of Request
The above change will allow us to set a custom value for the ClientAliveCountMax setting in the SSHD configuration
Describe alternatives you've considered
I can't find any alternative method since the value 0 is hard-coded.
Suggested Code
The code can be amended as shown below to allow us to set a custom value for the ClientAliveCountMax setting in the SSHD configuration.
line: "ClientAliveCountMax {{ amazon2cis_sshd['clientalivecountmax'] }}"

Closing as now merged to main


remove legacy drive conventions and functions

I think this merits it's own issue. Quoting @cjayb,
OK, drives.py:drive_event_times is the remains of feeds.py, i.e., deprecated (used to be called feed_event_times). The test test_drives.py:test_external_drive_times is basically testing that the expected "default" drives are read from the params-file, and that the gid-assignments are 'correct' insofar as they reproduce default GUI output.
That can all go, though I suppose we should immediately open a follow-up PR to implement tests of drives.py:_drive_cell_event_times!
I'd also like to point out that I think this hack might be worth removing in this PR
https://github.com/jonescompneurolab/hnn-core/blob/d6b08ff60d9a74d517582755d5e0d6d4dbd3df89/hnn_core/network.py#L589-L595
The tricky part is here for cases when all weights are zero (at least is used to be a problem before this PR...):
https://github.com/jonescompneurolab/hnn-core/blob/d6b08ff60d9a74d517582755d5e0d6d4dbd3df89/hnn_core/network_builder.py#L474-L477
Originally posted by @cjayb in https://github.com/jonescompneurolab/hnn-core/issues/383#issuecomment-874841427

OK, drives.py:drive_event_times is the remains of feeds.py, i.e., deprecated (used to be called feed_event_times). The test test_drives.py:test_external_drive_times is basically testing that the expected "default" drives are read from the params-file, and that the gid-assignments are 'correct' insofar as they reproduce default GUI output.
That can all go, though I suppose we should immediately open a follow-up PR to implement tests of drives.py:_drive_cell_event_times!

I totally agree, let's get rid of drives.drive_event_times() in favor of building tests off of drives._drive_cell_event_times.

I'd also like to point out that I think this hack might be worth removing in this PR
https://github.com/jonescompneurolab/hnn-core/blob/d6b08ff60d9a74d517582755d5e0d6d4dbd3df89/hnn_core/network.py#L589-L595

I'm actually in favor of making
target_populations = list(self.cell_types.keys())

standard practice (not just legacy) because it ensures that artificial drive cells are created irrespective of the location of the drive or specific cell types within the network. This seems like good practice as it simplifies the logic for how/when an artificial cell gets created.

Hmm, interesting! I think this makes a lot of sense after your work in  #383 Either way, removes the need for the legacy-flag

@rythorpe does something remain unaddressed in this PR after #369 ?

Nope.

Any residual issue(s) were addressed in #431.


Restore accidentally removed Contiv details

This PR restores accidentally removed Contiv details.
/cc @sftim

@jihoon-seo , I believe Contiv was removed because it seems it is no longer maintained
The last commit in https://github.com/contiv/install merged in 2018

looks like this was added back in April in PR https://github.com/kubernetes/website/pull/32938
/lgtm
/approve


License?

This library looks very cool. What is the license for using this code?

Didn't expect that somebody would want to use this project (and you probably shouldn't - there are better ones out there). But there you go.


Magic method __callStatic of StaticTrait passes object to 'call_user_func_array'

Problem
I am trying to call a closure function with App::myFunction() and pass a parameter to it: App::myFunction($string), when the method hits __callStatic the first thing it does is get the $value from static::$instance->offsetGet($name);. This returns the object from the function I want to call. It then checks if I added any $args to the call, and sense I did it tries to use call_user_func_array and pass in the $value object as it's callback when it needs to be a string of the function name.
Am I doing something wrong? I think that offsetGet should be returning a namespace in this instance. My closure looks like:
$app['myFunction'] = function($string) {
   return new MyObject($string);
}

Technical Details

Pagekit version: 1.0.5
Webserver: XAMPP
Database: SQL
PHP Version: 5.6.21

Please use Gitter or the Pagekit Forum for support questions.


Improving the visual appeal of "Contact us " form, add carousel effect to menu items and add responsiveness.

hello,
This is Devaki. I am GGSoC'24 contributor.
I would like to contribute by making the following changes:

Improving contact us form by validations and making is visually appealing to users/clients .
Add carousel effect to the menu items listed.
Add card hover effect to menu items to make it more user-friendly.
Add responsiveness to make it fit for all screen sizes.

Please assign me the issue.

I can resolve this issue.Please assign me this issue.

@Devaki01 I have assigned you the issue.  Would really like u to work on contact section.

@Damini2004 I have assigned you the issue. Would really like u to work on point 3,5 and 6 as per your suggested changes.

@Damini2004 I have assigned you the issue. Would really like u to work on point 3,5 and 6 as per your suggested changes.

Sure i will contribute my all efforts try to match the enlisted advancement

@Devaki01 I have assigned you the issue. Would really like u to work on contact section.

Thank you for the opportunity. Will try my best to complete assigned enhancements.

@khushi-joshi-05 Can we add Bootstrap it will help in faster execution of listed point of contact section in less amount of time.

@khushi-joshi-05 Can we add or use Bootstrap concept it will help in faster execution of listed point of contact section in less amount of time.

Yes..that is actually a good idea. Can we go ahead with it ?

hello maam, can you assign me this work. Also in the website the adjustment has to be made as there is little change.

as the image is coming out of the box.


service-id.ribbon.listOfServers is ineffective in springcloud 2020.0.0

in dev environment,   how to assign url for feign client in application.yaml
like old version case:
-Dservice-user.ribbon.listOfServers=http://server-user.dev.test.com

Hi @farsunset,
You can change to
-Dspring.cloud.discovery.client.simple.instances.yourServiceName[0].uri=http://server-user.dev.test.com
Please check the documentation.

Thank you！

That is helpful answer

That is helpful answer


WSL2 Development Environment Can't Access USB devices (AKA BLE adapter, serial, etc)

This seems promising:
https://docs.microsoft.com/en-us/windows/wsl/connect-usb

Initial attempts in W11 were promising.  A Cypress 20700 adapter by "Pluggable" was passed through successfully.  From there we learned that dbus and systemd are both weird in WSL2 so it was impossible to run bluetooth services are connect to the device.
Setting it up for USBIPD in W10/WSL2 to continue.

This ends up being possible but sort of a pain.  Coming back to the working environment months later it "wasn't working".  Will recommend Linux VM or native for Linux development since there is no point in running a Windows compataible GUI in WSL2
for fun.  https://github.com/dorssel/usbipd-win/discussions/310


Update URL for D.Va

Coverage remained the same at 71.087% when pulling fceeb9f83efec4b26b8aa616ea39a400ac03a6c8 on william-pan:patch-1 into 900cbb1cf31be6587a49792a8c5a36364dce246b on dvajs:master.


[BEAM-8691][BEAM-14309] Update cloud bigtable version

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run SQL PreCommit

@emilymye Sorry, I've been working on https://github.com/apache/beam/pull/17375 today.

@suztomo - What is the next step on this PR?

Duplicate of #17375


Change "Choose" to the current database value for a field using the "Select with custom options"

As a database person this is a great addition to Grafana.  Thanks for your work on this. Love it so far!
Is it possible to keep the current database value instead of "Choose" when using the Select with custom options.  (Either query or options).   It would be nice to know what the current value is without having to use 2 sections to show "Current/New"
It looks like you sort of do that when using the Radio Group with custom options by "highlighting" the value.  (Although it would be nice also if that value was "first".
Thank you!

Sorry, Looks like I had a user error here.. In playing around with some of the options I accidentally got rid of the "query field" mapping.. Once I put that back, It did put the current value first.  Thanks again!  Can close ticket!

@mdoakes42 You got it!
Let us know if there is anything else.


support for nextJs

I think that the css files are not allowed to be imported from next.js they could give a compiled version of these.
https://nextjs.org/docs/messages/css-npm

https://github.com/uiwjs/react-md-editor/issues/446#issue-1417594634

Example: https://codesandbox.io/s/nextjs-example-react-md-editor-qjhn7?file=/pages/index.js
Example: @uiwjs/next-remove-imports/example
Example: https://next-remove-imports-example.vercel.app


[Migrated] AttributeError: module 'main' has no attribute 'text_process'

Originally from: https://github.com/Miserlou/Zappa/issues/1767 by mudaser-caremerge

Context
i am deploying my ml model on lambda;  after successfully deployment when i hit gateway URL i am getting 500 response and and logs are
Traceback (most recent call last):
  File "/tmp/serverless-ml/flask/app.py", line 2292, in wsgi_app
  response = self.full_dispatch_request()
  File "/tmp/serverless-ml/flask/app.py", line 1815, in full_dispatch_request
  rv = self.handle_user_exception(e)
  File "/tmp/serverless-ml/flask/app.py", line 1718, in handle_user_exception
  reraise(exc_type, exc_value, tb)
  File "/tmp/serverless-ml/flask/_compat.py", line 35, in reraise
  raise value
  File "/tmp/serverless-ml/flask/app.py", line 1813, in full_dispatch_request
  rv = self.dispatch_request()
  File "/tmp/serverless-ml/flask/app.py", line 1799, in dispatch_request
  return self.view_functions[rule.endpoint](**req.view_args)
  File "/tmp/serverless-ml/api/app.py", line 35, in index
  prediction = predict(data)
  File "/tmp/serverless-ml/api/app.py", line 54, in predict
  model = load_model(MODEL_FILE_NAME)
  File "/tmp/serverless-ml/api/app.py", line 22, in helper
  memo[x] = f(x)
  File "/tmp/serverless-ml/api/app.py", line 48, in load_model
  model = joblib.load(open(key, 'rb'))
  File "/tmp/serverless-ml/sklearn/externals/joblib/numpy_pickle.py", line 588, in load
  obj = _unpickle(fobj)
  File "/tmp/serverless-ml/sklearn/externals/joblib/numpy_pickle.py", line 526, in _unpickle
  obj = unpickler.load()
  File "/var/lang/lib/python3.6/pickle.py", line 1050, in load
  dispatch[key[0]](self)
  File "/var/lang/lib/python3.6/pickle.py", line 1338, in load_global
  klass = self.find_class(module, name)
  File "/var/lang/lib/python3.6/pickle.py", line 1392, in find_class
  return getattr(sys.modules[module], name)
AttributeError: module '__main__' has no attribute 'text_process'

model pipeline requires text_process
Pipeline(memory=None,
     steps=[('bow', CountVectorizer(analyzer=<function text_process at 0x110cbb6a8>, binary=False,
        decode_error='strict', dtype=<class 'numpy.int64'>,
        encoding='utf-8', input='content', lowercase=True, max_df=1.0,
        max_features=None, min_df=1, ngram_range=(1, 1), preprocessor=None,...f=False, use_idf=True)), ('classifier', MultinomialNB(alpha=1.0, class_prior=None, fit_prior=True))])

I am using Python 3.6
Expected Behavior

No error
Actual Behavior

AttributeError: module 'main' has no attribute 'text_process'
Possible Fix

No idea!
Steps to Reproduce

api/app.py
from flask import Flask
from flask import request
from flask import json
import boto3
import pickle
from sklearn.externals import joblib

from nltk.corpus import stopwords
import string

def text_process(mess):
    mess=mess.lower()
    nopunc =[char for char in mess if char not in string.punctuation]
    nopunc=''.join(nopunc)
    return [word for word in nopunc.split() if word.lower() not in stopwords.words('english')]

MODEL_FILE_NAME = 'models/Emotional_pipeline.pkl'

app = Flask(__name__)

#S3 = boto3.client('s3', region_name='eu-central-1')

def memoize(f):
    memo = {}

    def helper(x):
        if x not in memo:
            memo[x] = f(x)
        return memo[x]

    return helper

@app.route('/', methods=['POST'])
def index():
    print(request.get_json(silent=True));
    body_dict = request.get_json(silent=True)
    data = body_dict['data']

    prediction = predict(data)

    result = {'prediction': prediction}
    return json.dumps(result)

@memoize
def load_model(key):

    model = joblib.load(open(key, 'rb'))

    return model

def predict(data):
    model = load_model(MODEL_FILE_NAME)

    return model.predict(data).tolist()

if __name__ == '__main__':
    # listen on all IPs
    app.run(host='<IP_ADDRESS>')

code run perfectly fine on my local machine
Your Environment

Zappa version used:
Operating System and Python version:
The output of pip freeze:

boto3==1.9.83
botocore==1.12.83
certifi==2018.11.29
cfn-flip==1.1.0.post1
chardet==3.0.4
Click==7.0
docutils==0.14
durationpy==0.5
Flask==1.0.2
future==0.16.0
hjson==3.0.1
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.20.0
MarkupSafe==1.1.0
nltk==3.4
numpy==1.16.0
placebo==0.8.2
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.13
requests==2.21.0
s3transfer==0.1.13
scikit-learn==0.20.2
scipy==1.2.0
singledispatch==<IP_ADDRESS>
six==1.12.0
sklearn==0.0
toml==0.10.0
tqdm==4.19.1
troposphere==2.4.1
Unidecode==1.0.23
urllib3==1.24.1
Werkzeug==0.14.1
wsgi-request-logger==0.4.6
zappa==0.47.1

Link to your project (optional):
Your zappa_settings.py:

{
    "dev": {
        "app_function": "api.app.app",
        "aws_region": ".....",
        "profile_name": "default",
        "project_name": "serverless-ml",
        "runtime": "python3.6",
        "slim_handler": true,
        "s3_bucket": "zappa-...."
    }
}

Appears to be application specific.
Old migrated issue, closing.


It doesn't refresh in fragment

I am using it in fragment. When i initialize a new one PinEditTextFiel, its content populates earlier data.

I am sorry, I don't think I can grasp fully on what's happening. Can you share the piece of code?

I solved the problem with creating new instance of fragment.
But if i come to problem which i hace faced it, I use pinedittextfield in fragment. Also, I have one also textview. When user click one button in fragment, the pinedittextfield text and lenght also text in textview are changing. The pinedittextfiel lenght change successfull but the text which i wrote in it can not disappear.

Hi Abdul,
I'm happy that you solved the problem. But I guess it would be better just to use the "setText" method and set it empty rather than initiating the fragment fully again. Anyways do let me know if you need any help. I'm closing this issue for now.


Implement Brightness Augmentation

We need an implementation of a BrightnessAugmentation class to adjust the brightness of images. This augmentation technique should be able to lighten or darken an image by a specified amount, enhancing our library's preprocessing capabilities for various machine learning tasks.
As orientation use already implemented Augmentations fro,
package de.edux.augmentation.effects;

Hi, @Samyssmile I would like to work on this issue


Add sparse Eigen support to Bazel build.

@wally-the-cartographer merge

Merge requested by authorized user cschuet. Merge queue now has a length of 1.

Is EigenSparse as fast for you as SuiteSparse? IIRC I got slow performance as soon as I forgot to install SuiteSparse, even with EigenSparse.

@ojura The problem with SuiteSparse is that is extremely difficult to make a hermetic Bazel build for it. That's why I put in Eigen sparse for now to get away from DENSE_QR which is super super slow.


[Spring] Support managed component log stream

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

[x] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[x] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Spring

@jiec-msft Could you please resolve these CI issues?

@jiec-msft Could you please resolve these CI issues?

@zhoxing-ms Fixed for the tests.

@jiec-msft Please remember to submit a separate PR to fix these code style issues that are not related to this PR in the future, thanks

@jiec-msft Please remember to submit a separate PR to fix these code style issues that are not related to this PR in the future, thanks

Thanks! I'll work with this PR: https://github.com/Azure/azure-cli-extensions/pull/7116, will ping you later when it's ready for review.


support axios?

axios is becoming super popular these days. It would be nice if feathers-rest also support axios.

This is done now. It would be a big help if you could add a section for it to the documentation at https://github.com/feathersjs/feathers-docs/edit/master/clients/rest.md 😄

sure, I could do that in a few days. :)

done. https://github.com/feathersjs/feathers-docs/pull/357


Auth error when trying to get PhysioNet datasets

Hey,
I'm trying to get the physionet challange data like this (copied from the examples):
data = tsdb.load_dataset('physionet_2012')  # select the dataset you need and load it, TSDB will download, extract, and process it automatically
and I get this error,
Start downloading...
Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)>
Download failed. Aborting.
Traceback (most recent call last):
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 1011, in _send_output
self.send(msg)
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 951, in send
self.connect()
File "C:\Users\Lenovo\Anaconda3\lib\http\client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "C:\Users\Lenovo\Anaconda3\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\Lenovo\Anaconda3\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "C:\Users\Lenovo\Anaconda3\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\tsdb\data_processing.py", line 84, in _download_and_extract
urllib.request.urlretrieve(url, raw_data_saving_path)
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\Users\Lenovo\Anaconda3\lib\urllib\request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3361, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in <cell line: 1>
data = tsdb.load_dataset('physionet_2012')  # select the dataset you need and load it, TSDB will download, extract, and process it automatically
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\tsdb\data_processing.py", line 274, in load_dataset
download_and_extract(dataset_name, dataset_saving_path)
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\tsdb\data_processing.py", line 129, in download_and_extract
_download_and_extract(link, dataset_saving_path)
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\tsdb\data_processing.py", line 89, in _download_and_extract
sys.exit()
SystemExit
C:\Users\Lenovo\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3369: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

Hi there,Thank you so much for your attention to TSDB! If you find TSDB helpful to your work, please star⭐ this repository. Your star is your recognition, which can help more people notice TSDB this useful tool. It matters and is definitely a kind of contribution.I have received your message and will respond ASAP. Thank you for your patience! 😃Best,Wenjie

I think this is a networking error. Please check the stability of your network and whether you're using a proxy/VPN.

Hey @WenjieDu , thanks for the response, I've tried this with\without VPN and in three different networks (home\public\university) and always the same error.

That's weird. You can try on Google Colab to see if TSDB is working well, e.g. with this tutorial.

I see that it does! thanks!
from a google colab notebook I am able to download the data! thanks:)

Great! Happy to know that TSDB works for you. If it doesn't bother you, please star 🌟TSDB to make more people notice this useful tool. Thanks! 😃


masked_array write/read differences between xarray and netCDF4

Here is code used to read/write a masked_array with the netCDF4 and xarray modules.
As seen if you run the code, for 3 cases the masked_value is read as a np.nan. However, for the netcdf file written by netCDF4 and read by xarray, the masked_value is the default _FillValue of 9.96920997e+36.
I wonder if this is expected or if I am doing something wrong.
import xarray as xr
import netCDF4 as nc
import numpy as np
import os
data = np.ma.array([1.,2.], mask = [True, False])

# create file with netcdf$
nc_file = 'ncfile.nc'
if os.path.exists(nc_file): os.remove(nc_file)
ds = nc.Dataset(nc_file, 'w')
ds.createDimension('dim1', 2)
var = ds.createVariable('data', 'f8', dimensions = ('dim1'))
var[:] = data
ds.close()

# create file with xarray
da = xr.DataArray(data, name = 'data', dims = {'dim1':2})
nc_file = 'xrfile.nc'
if os.path.exists(nc_file): os.remove(nc_file)
da.to_netcdf(nc_file, 'w')
da.close()

print('original data: {}'.format(data))

da = xr.open_dataset('ncfile.nc').data
print('data from nc read by xr: {}'.format(da.values))
da = xr.open_dataset('xrfile.nc').data
print('data from xr read by xr: {}'.format(da.values))

data = nc.Dataset('ncfile.nc').variables['data'][:]
print('data from nc read by nc: {}'.format(da.values))
data = nc.Dataset('xrfile.nc').variables['data'][:]
print('data from xr read by nc: {}'.format(da.values))

print('done')

Here is the output I get:
original data: [-- 2.0]
data from nc read by xr: [9.96920997e+36 2.00000000e+00]
data from xr read by xr: [nan  2.]
data from nc read by nc: [nan  2.]
data from xr read by nc: [nan  2.]
done

Output of xr.show_versions()

# Paste the output here xr.show_versions() here
INSTALLED VERSIONS
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Darwin
OS-release: 17.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: fr_CA.UTF-8
LOCALE: fr_CA.UTF-8
xarray: 0.10.8
pandas: 0.23.4
numpy: 1.15.1
scipy: 1.1.0
netCDF4: 1.4.1
h5netcdf: None
h5py: None
Nio: None
zarr: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.19.2
distributed: None
matplotlib: None
cartopy: None
seaborn: None
setuptools: 40.2.0
pip: 18.0
conda: None
pytest: 3.8.0
IPython: 7.0.1
sphinx: None

@sbiner Sorry for the massive delay here. I doesn't have changed much since creation of your issue. Xarray doesn't take the netcdf default fill values into account (there are reasons, which @shoyer has explained in https://github.com/pydata/xarray/pull/5680#issuecomment-895455163 and https://github.com/pydata/xarray/pull/5680#issuecomment-895508489).
On write it just uses NaN as _FillValue (in case no specific encoding is given).
Xref: #2374, #7723, #5680

Closing. Please follow-up at #2742.


Create fake data to showcase that breaking spy_ema.csv EMA14 data doesn't break tests ComparesAgainstExternalData and ComparesAgainstExternalDataAfterReset

Description

Just a simple PR to showcase that breaking spy_ema.csv EMA14 data doesn't break tests ComparesAgainstExternalData and ComparesAgainstExternalDataAfterReset
See #8146
Related Issue

Motivation and Context

Requires Documentation Change

How Has This Been Tested?

Types of changes

[x] Showcase an issue
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[ ] My code follows the code style of this project.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Hey @femtotrader! Thank you for the report, fixed by https://github.com/QuantConnect/Lean/pull/8153

Thanks @Martin-Molinero


SELECT * expansion fail with recursive CTE

Version
1.10.0
What happened?
when using recursive query, it can not generate related go code.
Relevant log output
# package gen
sql/query/dict.sql:1:1: edited query syntax is invalid: syntax error at or near ","

Database schema
create table dict(
    id           VARCHAR(36)     PRIMARY KEY DEFAULT gen_random_uuid(),
    app_id       VARCHAR(36)     NOT NULL,
    code         VARCHAR(64),
    parent_code  VARCHAR(64)     NOT NULL,
    label        TEXT            NOT NULL DEFAULT '',
    value        TEXT            NULL,
    weight       INT             NOT NULL DEFAULT 0,
    is_default   BOOLEAN         NOT NULL DEFAULT false,
    is_virtual   BOOLEAN         NOT NULL DEFAULT false,
    status       SMALLINT        NOT NULL DEFAULT 1,
    create_at    TIMESTAMPTZ(0)  NOT NULL DEFAULT now(),
    create_by    VARCHAR(36)     NOT NULL DEFAULT '',
    update_at    TIMESTAMPTZ(0),
    update_by    VARCHAR(36),
    is_delete    BOOLEAN         NOT NULL DEFAULT false
);

-- test case
insert into dict(app_id, code, parent_code, label) values('1','test.l1','','layer1');
insert into dict(app_id, code, parent_code, label) values('1','test.l2-1','test.l1','layer2-1');
insert into dict(app_id, code, parent_code, label) values('1','test.l2-2','test.l1','layer2-2');
insert into dict(app_id, code, parent_code, label) values('1','test.l3-1','test.l2-2','test.l3-1');
insert into dict(app_id, code, parent_code, label) values('1','test.l4-1','test.l3-1','test.l4-1');
insert into dict(app_id, parent_code, label, value) values('1','test.l4-1','l4-1-v1', '1');
insert into dict(app_id, parent_code, label, value) values('1','test.l4-1','l4-1-v2', '1');

SQL queries
-- name: GetDictTree :many
with recursive dictTree(id, code, parent_code, label, value, path, depth) AS (
	select id, code, parent_code, label, value, ARRAY[COALESCE((select id from dict where code=''),'virtual_root'), id], 1 as depth from dict where app_id = '1' and parent_code = '' and is_delete=false
	union
		select d.id, d.code, d.parent_code, d.label, d.value, t.path || ARRAY[d.id], t.depth+1 as depth from dict d join dictTree t on d.parent_code = t.code and not d.id = ANY(t.path) and d.is_delete=false
)
select * from dictTree d order by depth, parent_code;

Configuration
version: "1"
packages:
  - name: "gen"
    path: "mapper/gen"
    queries: "./sql/query/"
    schema: "./sql/schema/"
    engine: "postgresql"
    emit_prepared_queries: true
    emit_interface: false
    emit_exact_table_names: false
    emit_empty_slices: false
    emit_json_tags: false
    json_tags_case_style: "camel"
rename:
  id: "Id"

Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

Was there any traction on this? There is a workaround (specifying the columns manually), but that has maintainability risks.

This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future.
You can play around with the working example on the playground


Cross architecture use of kernel snapshots doesn't match documentation

According to the wiki documentation here compiling a kernel snapshot like so:
dart --snapshot-kind=kernel --snapshot=hello.dart.snapshot hello.dart

should produce a snapshot that is:

portable between CPU architectures.

Yet when I do the above on a x86 laptop:
 ~/apps/dart-sdk/bin/dart --version
Dart SDK version: 2.19.0-444.0.dev (dev) (Tue Nov 29 18:38:12 2022 -0800) on "linux_x64"
(HEAD)  ~/work/dart_snaps $ ~/apps/dart-sdk/bin/dart --snapshot=snaps.dart.dill bin/dart_snaps.dart
Info: Compiling with sound null safety.

then copy across the resulting file and try to run it on a RISC-V D1, I get an error:
dart --version
Dart SDK version: 2.19.0-440.0.dev (dev) (Mon Nov 28 22:10:25 2022 -0800) on "linux_riscv64"
rv@licheerv:~/work$ dart snaps.dart.dill
Can't load Kernel binary: Invalid SDK hash.

Note above that as far as I can see I am using the same version of the Dart SDK on both machines.
The reason I'm attempting to do this is due to https://github.com/dart-lang/sdk/issues/49253 being too slow to do Dart development on-device.
What I'd like to do is essentially replicate the Flutter development model of compiling snapshots on my (fast) development laptop and then copying them across and hot-reloading (or even hot-restarting) the snapshot on the (slow) RISC-V  machine, but with a Dart cli application rather than Flutter.

It works for me:
$ ./dart-sdk-x64/bin/dart --version
Dart SDK version: 2.19.0-444.0.dev (dev) (Tue Nov 29 18:38:12 2022 -0800) on "linux_x64"
$ qemu-riscv64 -L /usr/riscv64-linux-gnu ./dart-sdk-rv64/bin/dart --version
Dart SDK version: 2.19.0-444.0.dev (dev) (Tue Nov 29 18:38:12 2022 -0800) on "linux_riscv64"
$ ./dart-sdk-x64/bin/dart --snapshot=x64.dill ~/hello.dart
Info: Compiling with sound null safety.
$ qemu-riscv64 -L /usr/riscv64-linux-gnu ./dart-sdk-rv64/bin/dart --snapshot=rv64.dill ~/hello.dart
Info: Compiling with sound null safety.
$ ./dart-sdk-x64/bin/dart x64.dill
Hello, world!
$ ./dart-sdk-x64/bin/dart rv64.dill
Hello, world!
$ qemu-riscv64 -L /usr/riscv64-linux-gnu ./dart-sdk-rv64/bin/dart x64.dill
Hello, world!
$ qemu-riscv64 -L /usr/riscv64-linux-gnu ./dart-sdk-rv64/bin/dart rv64.dill
Hello, world!

Are you sure you copied the right file to the D1? It's strange that your invocation of --version prints a different timestamp than mine.

My apologies, I just re-downloaded the SDK dev channel riscv64 zipfile from dart.dev and used it on my D1 board and it does work fine now and the timestamp in the version matches too:
Dart SDK version: 2.19.0-444.0.dev (dev) (Tue Nov 29 18:38:12 2022 -0800) on "linux_riscv64"

So I think I must have downloaded an earlier build of 2.19.0-444.0.dev initially for riscv64 and not realised it had been replaced with a newer one when I later on downloaded the x86 build zip file. I didn't realise that dev builds could have the same version number but be built at diff times and I guess hence the kernel versions dont match.
Also @rmacnak-google thanks for the tip to use qemu, that will make testing some things a bit easier vs needing to use my actual risc-v D1 devboard.
Sorry about the false alarm.

This is the third time this week that someone has gotten confused over -444.0.dev and -440.0.dev, which
is quite understandable.  I got mixed up by this also, earlier this week when making the release.
So this is just a common mistake on this particular release, because the numbers are so similar.

ah yes you are spot on @whesse ! I can't believe I posted here twice and didn't spot the difference in version numbers until you pointed it out! As you say they look so similar, its really easy to them confused.

@rmacnak-google apologies for posting on a closed issue, but I got a bit stuck trying to replicate the use of the Qemu commands in your prior comment. I'm not super familiar with Qemu, so I've learnt that you are using the user mode emulation of Qemu which I got installed on Ubuntu via the apt package qemu-user but I can't seem to find any docs on how to get the risc-v userspace libs which is what I assume is pointed to via your  -L /usr/riscv64-linux-gnu parameter.
Would you have any pointers on how to get those risc-v libs  or how you build them?
I tried digging through this repo here looking for CI recipes that might show me the way, but wasn't able to find where they live.

I believe I got those through some transitive dependency of the g++-riscv64-linux-gnu package. So apt install qemu-user g++-riscv64-linux-gnu should be sufficient, thought there is a probably some more specific package that would be smaller.

perfect thanks again @rmacnak-google ! I've got it up and working now 👍🏻


Finish pyproject.toml migration

Moves the bulk of metadata, requirements, etc. to pyproject.toml. As there are still extensions that need to be built, we still rely on setuptools to do that. Also skip running cythonize on extensions as setuptools already does this for us. Additionally try using build_ext from Cython to perform the build. This way we can even do parallel builds when passing -j <#> to build_ext. Finally switch to latest (as opposed to legacy) setuptools, since the legacy case should no longer be needed.
Closes https://github.com/zarr-developers/numcodecs/issues/364 ?
TODO:

[ ] Unit tests and/or doctests in docstrings
[ ] tox -e py310 passes locally
[ ] Docstrings and API docs for any new/modified user-facing classes and functions
[ ] Changes documented in docs/release.rst
[ ] tox -e docs passes locally
[ ] GitHub Actions CI passes
[ ] Test coverage to 100% (Coveralls passes)

@Saransh-cpp @DimitriPapadopoulos, could both of you please take a look? 🙂

Interesting this worked when building a wheel (locally). Though when doing an editable install it seems the version information is lost. Must be missing something here

Note RTD needs fixes outside of this. Handling in PR ( https://github.com/zarr-developers/numcodecs/pull/383 ).

So if I understand correctly, we cannot entirely get rid of setup.py, can we?

Yeah since Numcodecs builds extensions, setup.py is still needed for that part. This lines up with this Setuptools doc page.

Thanks for the feedback! 🙏
Moved pytest.ini to pyproject.toml.
Not sure about wheel since Dimitri added it before (so let's see what he says :).
As to tox, think we should just drop it as we did in zarr-python. Doing that in PR ( https://github.com/zarr-developers/numcodecs/pull/384 ).

Moved .coveragerc into pyproject.toml as well. Seems to be working 😄

Are all files requirements*.txt still needed? For example, I see that setuptools and setuptools_scm/setuptools-scm can be found in requirements_rtfd.txt and requirements_test.txt, but not in requirements_dev.txt. Is that on purpose?
By the way, note the setuptools_scm/setuptools-scm discrepancy.

Thanks for the feedback! 🙏
Yeah the RTD and test ones are used on CI. The dev one is intended for local use.
Standardized around the - variant of setuptools-scm in requirements.

Please let us know if anything else is needed here 🙂

Please bear with me – I have a hard time understanding Python packaging – but I still don't understand why setuptools/setuptools-scm are in requirements used on CI, and not in requirements intended for local use.
Other than that, this looks really great. I just had few suggestions, don't know if you have seen them. above.

Thanks Dimitri! 🙏
Ah meaning we should add them to the dev requirements file? Yeah agree that should happen. Updated in the latest commit.
Unfortunately I don't see the other comments (unless I'm overlooking something). Are there some pending review comments that still need to be posted?
+1 for adding isort. Have used elsewhere and agree its great! Though yeah we can do that in another PR.

I'm just an interested observer of this project/PR, but in my opinion I don't think setuptools-scm have to be added to any dependencies except the build-system in the pyproject.toml. Same for setuptools, unless you are importing it directly in numcodecs. The build process should install setuptools-scm and setuptools in a sandbox/virtualenv, build the package, then get rid of that environment. The user shouldn't need to know that or install them in their normal environment.
Note: This does depend on how you are using these packages, but it looks like you are using "write_to" with setuptools-scm so importing that written /version.py module should be enough and shouldn't require installing the setuptools-scm package.

Yep agreed. Think Dimitri was just pointing out an inconsistency in one of the build environments. That's my understanding anyways. Please feel free to correct me

Well, I was puzzled by multiple issues:

Inconsistencies in requirements*.txt files, (i) the different spelling, and (ii) the different setuptools* packages,
Why cannot requirements*.txt files we moved somewhere in pyproject.toml (but again I don't have much experience but in basic Python packing)? I suppose different requirements for different contexts cannot be currently documented in pyproject.toml.
Finally, I agree with @djhoese, I don't understand why add setuptools* in requirements*.txt: I have learned the hard way (https://github.com/codespell-project/codespell/pull/2523) that (recent) pip/setuptools are a documented requirement for anything related to installing/packaging in Python (https://packaging.python.org/tutorials/installing-packages/#requirements-for-installing-packages) any way. Additionally, I understand setuptools_scm will be pulled by pyproject.toml whenever needed, automatically.

Tried to consolidate most of the requirements files into pyproject.toml. Agree that is probably a better way to do things.

Please let me know if there's anything else needed here

Thanks all! 🙏 Going to go ahead and merge this in. Happy to follow up on anything else after


reinstate unittest in SIRF SuperBuild on next tag

In SIRF-SuperBuild we run all CIL unittest. One was failing, fixed by #843 Currently, however SIRF is building CIL <= 21.1.0 where the bug is still present.
Once we tag again that unit test should be reinstated.
https://github.com/SyneRBI/SIRF-SuperBuild/pull/510#issuecomment-828969009

closed by https://github.com/SyneRBI/SIRF-SuperBuild/pull/650


update to v0.1.9

https://github.com/golang/tools/releases/tag/v0.1.9

fixed https://github.com/kamilsk/go-tools/releases/tag/v0.1.9


Excluding changes in Prow files from triggering e2e runs

There's no need to run E2E tests when Prow configuration files change. Also they have their own checks defined in test-infra's Prow configuration.

/approve
/lgtm


mdInput tag is not showing error message when using a pattern

Bug, feature request, or proposal:

enter only 10 digit number

validation is happening using a pattern but I am not able to display an error message, I tried multiple things like md-hint, md-error but it's not working.
it works fine with required.
What is the expected behavior?
only if the user enters invalid valid then the error message should appear below the input.
What is the current behavior?
the message appears before the user enters anything on the input bar.

Plunker?

Closing this issue as it does not follow the issue template. Please file a new issue that follows the template, which gives the team the information needed to investigate.


Seems deepL denied my connection.

This is error I've encountered. Few tasks Okay for everyday but I got denied by DeepL I guess if I request few more time.
It doesnt work even I turn on VPN on my windows to change IP address. Do you guess why? Any suggestion?

Find an another reason. it was not denied. I guess there are some sentences they cant translate. I will close this thread but hope this update as well.


[Enhancement] Pin Protection for covers/locks

I was wondering if it would be possible to set a pin protection like with the secure_devices_pin used in the Google Assistant Integration (https://www.home-assistant.io/integrations/google_assistant/)
Right now, the garage door is seen as a simple cover. When I tell Google to open all covers, the garage will open as well.
With this pin protection, only covers without this had been opening

Can you add some more details how that works?
If you dont want to control it with your voice assistant couldn't you then just exclude from your bridge?

when using the part of home assistant and setting a pin, the garage door would not open. But it would give me the possibility to open the garage door when asking it. First it would ask for the pin before going ahead and open the garage door. The same would happen in the Google Home App, before beeing able to open the garage door, it would ask for the pin.
This would avoid that somebody could just shout trough your window to open the garage door.
But it seems this is not supported: https://developers.home.google.com/matter/supported-devices#door_locks
So this request can be closed

Ah okay. Now i get it.
Alexa, by default, does not allow controlling locks. You have to open that lock in the Alexa-App and enable controlling that lock. If i remember correctly, it's also possible (in the alexa app) to configure a pin, which is just internally used in alexa. Matter and Home Assistant won't know about that, but alexa just don't control the lock without the pin.
Maybe you could check in Google Home if that's configurable there, too?

But it seems this is not supported: https://developers.home.google.com/matter/supported-devices#door_locks So this request can be closed

I think you are misunderstanding the documentation Google provided in your link above.
Implementing and enforcing use of a pin code is done on the matter side.
Google is mandating using a pin for remote unlocking matter connected locks (and all locks in the Google Home ecosystem really). Setting a pin for locks is not required in the matter standard, but can be enforced, which is what Google requires. If not enforced, Google Home will simply not allow remote unlocking. (Locking should still work)
Firstly your garage, and whatever else you want to remote lock/unlock needs to be a Lock/Doorlock, not a Cover which is usually used for stuff like curtains for Google to identify it as something to be able to Lock or Unlock. Second is to set requirePINForRemoteOperation on the matter side and things and probably provide a place for a user to set a pin on the matter side of things. Then Google Home should function as intended regarding matter locks.
Source: Kinda vague explanation from here


I18n is not working after deployment it is showing 404 error

Command
extract-i18n
Description
After successful deployment the web pages is showing 404 error and once I remove the localize : true in angular.json the webpage is coming but the translation is not working.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


Not enough time after loading defaults before trying to query SmurfVersion

This is @jlashner posting from Sam's account.
Seems like when running setup, there is not enough time after setting defaults before trying to query the SmurfVersion. In the logs below, Smurf version needs to be queried 5 times before it returns a value, and this has recently caused the setup to crash entirely (as seen here: https://github.com/simonsobs/sodetlib/discussions/353#discussion-5290857). After setup fails, though I'm able to caget the SmurfVersion so I think it's just a matter of waiting longer, or setting a longer timeout for this one particular caget call.
[ 2023-06-14 15:51:40 ]  caput smurf_server_s2:AMCc:FpgaTopLevel:AppTop:AppCore:MicrowaveMuxCore[1]:DBG:dacReset[1] 0
[ 2023-06-14 15:51:40 ]  caput smurf_server_s2:AMCc:ReadAll 1
[ 2023-06-14 15:51:44 ]  Waiting 20.00 seconds after...
[ 2023-06-14 15:52:04 ]  Done waiting.
[ 2023-06-14 15:52:04 ]  caget smurf_server_s2:AMCc:SmurfApplication:SmurfVersion
[ 2023-06-14 15:52:04 ]  0+unknown
[ 2023-06-14 15:52:04 ]  caput smurf_server_s2:AMCc:setDefaults 1
[ 2023-06-14 15:52:34 ]  Waiting 30.00 seconds after...
CA.Client.Exception...............................................
    Warning: "Virtual circuit unresponsive"
    Context: "localhost:34607"
    Source File: ../tcpiiu.cpp line 919
    Current Time: Wed Jun 14 2023 15:52:39.569473338
..................................................................
[ 2023-06-14 15:53:04 ]  Done waiting.
[ 2023-06-14 15:53:04 ]  caget smurf_server_s2:AMCc:SmurfApplication:SmurfVersion
/usr/local/lib/python3.8/dist-packages/epics/ca.py:1528: UserWarning: ca.get('smurf_server_s2:AMCc:SmurfApplication:SmurfVersion') timed out after 1.95 seconds.
  warnings.warn(msg % (name(chid), timeout))
[ 2023-06-14 15:53:06 ]  Command failed: smurf_server_s2:AMCc:SmurfApplication:SmurfVersion
[ 2023-06-14 15:53:06 ]  Retry attempt 1 of 5
[ 2023-06-14 15:53:08 ]  Retry attempt 2 of 5
[ 2023-06-14 15:53:10 ]  Retry attempt 3 of 5
[ 2023-06-14 15:53:12 ]  Retry attempt 4 of 5
[ 2023-06-14 15:53:14 ]  Retry attempt 5 of 5
[ 2023-06-14 15:53:15 ]  0+unknown
[ 2023-06-14 15:53:15 ]  The `SmurfApplication:JesdStatus` register is not implemented for pysmurf core code versions <4.1.0 (current version is 0).

Looking at old issues like this one: https://github.com/simonsobs/sodetlib/issues/273, it seems like the timeout for caget retries used to be 5 seconds, but now it looks like its 2 seconds, which could very well be the cause of many epics issues seen recently. @swh76 do you have any idea what may have caused this? It is possible that we were using the default timeout in pyepics and that changed in some version update.


Update readme json code block to jsonc

GitHub doesn't apply proper syntax highlight for comments in json code blocks. By changing the code block type to jsonc the comment will actually be highlighted as comments.
Turns this:

into this:

oops, there was already a PR submitted to fix this. My bad!


[Request]: Conditional extendedProps for event

What feature would you like to add?
I have Course model and Session model. The relationship is course has many sessions.
I have a CourseCalendarWidget where I display all sessions for a specific course. Because I show this widget inside the view page of the course, so I don't have to add info about the course to extendedProps such as course_name, staff ...
Howerver, I have a MasterCalendarWidget where I display all sessions for all courses. In this page, I want to add props like course_name, staff, ... to the event
My question is inside toEvent() method, is it possible to have conditional extendedProps only when I needed?
Notes
No response

No not possible. You have two widgets, just filter out the unneeded props in the getEvents method of the widget.

The second option works for me. Thank you so much!!


London | Gislaine_DellaBella | Module-User-Focused-Data | Week 1

Learners, PR Template
Self checklist

[ x] I have committed my files one by one, on purpose, and for a reason
[ x] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
[ x] I have tested my changes
[x ] My changes follow the style guide
[x ] My changes meet the requirements of this task

Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.

https://git-week1.netlify.app/

Good evening,
I have just resolved some issues in my code.
thank you for the review,
https://dellabella-wireframe.netlify.app/


Spending limit: option to send as allowance transaction not showing up

Description
Spending limit: option to send as allowance transaction not showing up
Environment

Browser: Firefox
Wallet: Ledger
Chain: Ethereum mainnet

Steps to reproduce

Create a spending limit for ETH, with monthly reset-time
Try to send an amount below the limit to the designated address

Expected result
I would expect to see an option to “Send as” like in this screenshot:
https://camo.githubusercontent.com/0a6f9873b5bf193db23962f13596832313ecaf2b1c2af43f3a09adc7d3728699/68747470733a2f2f696d616765732e7a656e68756275736572636f6e74656e742e636f6d2f3563326632373234383333326537326132343764386635332f36636461666362662d626138312d343064372d616238342d323538663365666636393537
Obtained result
I see the regular transaction screen, without the “Send as” option.
Screenshots

It happens with desktop app for linux too (3.17.2 and 3.22.1).

Hi there. I've tried myself also in the safe web app, in the prod env, Eth mainnet, with a ledger NanoS, in firefox and I had no issues with my safe:

Is this the first time you use spending limit in this safe? (was the module enabled with the creation of the spending limit)
Also remember that the spending limit affects the account that is currenlty connected to the safe app, it has nothing to do with who you are sending funds to

Also remember that the spending limit affects the account that is currenlty connected to the safe app, it has nothing to do with who you are sending funds to

Oh, sorry, I misunderstood this! :see_no_evil: Sorry about that.
(It would be cool to have also spending limits for the destination)


[e2e]: delegator-generic workflow_dispatch branch1 checkout slsa3

Repo: https://github.com/slsa-framework/example-package/tree/branch1
Run: https://github.com/slsa-framework/example-package/actions/runs/5816634183
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: branch1
Date: Thu Aug 10 03:37:00 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/branch1
Run: https://github.com/slsa-framework/example-package/actions/runs/5816740341
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: branch1
Date: Thu Aug 10 03:57:37 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/branch1
Run: https://github.com/slsa-framework/example-package/actions/runs/5816880791
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.branch1.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: branch1
Date: Thu Aug 10 04:21:20 UTC 2023
Tests are passing now. Closing this issue.


Vulkan: GPUParticles3D makes fps goes down when selecting the Node

Godot version:

v4.0.dev.custom_build.364ea7f28
OS/device including version:
windows 10 x64
AMD R7 200 series
Issue description:
This is a simple Particle with no material, emitting just one Quad mesh:

Notice that it isnt select and at FPS
Now look when the user selects the node:

Error Message:
ERROR: Condition "!uniform_set" is true.
at: RenderingDeviceVulkan::draw_list_bind_uniform_set (drivers\vulkan\rendering_device_vulkan.cpp:6454)

Steps to reproduce:

Add a GPUParticles3D
Add a quadMesh
Add a particleMaterial
Select the node itself

Minimal reproduction project:
N/A
Note:
By using CPUParticles3D I noticed that the error mentioned above (also the FPS slowdown) is caused when adding a new New StandardMaterial3D

Windows 10 and GTX 1050 here, Godot v4.0.dev.20210811.official [7188cb601]
I have noticed this with regular MeshInstance nodes and seems to be the same problem, can be triggered by opening the mesh or the material in the inspector, disappears when hiding the resource view of Mesh or StandardMaterial.
Mesh resource hidden:

Mesh resource visible:

Can't reproduce. When selecting particles, my FPS drops from 1200 to 900 (or from 550 to 450, depending on mood), which isn't as severe as described in the OP.
Windows 10 with GTX 1060

Tried it again on 4.0a8 with the same settings and looks way better now, goes from 500 to 400-350, I guess it will improve later.

Closing per the above comments. Please comment if you can still reproduce this on the latest master branch.


[bug] content_harvest image size error

[ ] Log for 27297 mapped task 3 (legacy mapper: csa-omeka) - permanent link to create_stage_index

Run ID: manual__2024-03-14T00:54:58+00:00
PIL.Image.DecompressionBombError: Image size (219775150 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.

Perhaps take a look at error handling to try to get an item ID.

Skimming through the isShownBy URLs/file types for collection 27297 to see if there were any TIFFs -- it looks like they are all JPEGs (could be a supersize one in there, though):

This object with title eichler_f3274_115_001 in collection 27297 has a 19.9MB thumbnail:
https://calisphere.org/item/c4b3852afa1319f81453e8709e8549cf/
The thumbnail server throws a 500 error when trying to serve up the image:
https://calisphere.org/crop/210x210/31f86e330cca408122a535b8d9afd23e
I'm guessing it's the same PIL.Image.DecompressionBombError we're getting from PIL in the content harvester.
Here's the legacy thumbnail that we harvested to S3:
https://static-ucldc-cdlib-org.s3.us-west-2.amazonaws.com/harvested_images/31f86e330cca408122a535b8d9afd23e

For this particular image:

download this file
resize the image
upload to s3

Options to explore post-mvp:

temporarily increase the image size limit (would result in a CSphere record with a broken thumbnail image)
during content_harvesting to resize the image (should fix the thumbnail)
let the image pass as a non-blocking error (likely would still index the record)

Thanks @barbarahui! This looks great!! Also ran this collection through to ETL, and it all looks great!
https://calisphere-stage.cdlib.org/item/c4b3852afa1319f81453e8709e8549cf/


No J / K drives mapped

Hi, sorry if I'm missing sth obvious but after re-imaging my SteamOS installation I cannot make Vortex to see anything on J or K drive while setting game manually (I'm trying to set up Starfield). Is there any way to manually map J drive? I tried to start whole set-up from scratch twice with the same results.

Ups, seems like it was answered before: https://github.com/pikdum/steam-deck/issues/49
The problem was pendrive connected to my USB hub, it somehow screw up a script mapping J&K drives.


Question: What is the purpose of the AsyncAgiServer

Hey just wanted to know the purpose of the async agi server

AsyncAGI is based on AMI instead of AGI.
Instead of asterisk calling AGI port on the app (4573), the app connects to Asterisk on AMI port (5038).
If you use both AMI & AGI, a single connection is required in this case, from app to Asterisk on AMI port.

Thanks, would you guys know of a way I can get a stream of the real time audio

You should check EAGI but it is outside the scope of this project.