[Feature Request] Binary Toggle Bypasser & muter

See this use case:

I have a segs upscaler WF that has at the front a WD14 tag interrogator. Ideally, the user would run that first, to get the "computer vision" interpretation of the input image. That way, they can get the base description for the basic pipe, which seems to help keep the image closer to the original.
As is, the fast bypasser has ALL the Segs-related nodes connected to a collector and repeater, leading to this switch. Because they are on two different items, they have to be switched independently. IE, on enter, the user has to select Enable on input 1 and disable on input 2.
Ideally, there would be a binary toggle that , when pushed, set 1-on 2-off and when pushed again reversed that (1-off, 2-on). I have this same need many places, where a user wants to do an option between two pathways, but it requires  several clicks to do so.
Any interest in adding a fast muter/bypasser toggle? It wouldn't need to auto-build like they do currently, since it's a binary switch.
State one

State two:

If the toggle isn't do-able...

So, this functionality kinda is there already, in two ways:

In the Fast Muter properties, there's a toggleRestriction which you can set to always one. doing so, will only allow one entry to be toggled.  It's not an outright toggle, because if you try to turn off the one that's on, it just won't let you (since there needs to be one on, it just reacts but not letting you go to zero on).

Additionally, you can connect a Fast Actions Button to the Fast Muter and use the Toggle all option. That will flip all the toggles (and then resolve any toggleRestriction).

The best option would be to do both of these. I'd add a toggleRestriction of "always one" to the Fast Muter, put it in an initial state, and then connect a Fast Actions Button with a single "Toggle all" and use that button to execute the switch.

as an fyi, values aren't persisted when stored in template form, similar to how bypassers used to be. thanks for the tips.


Allow directories for file operations from crypto tab

Super quick PR. Tested with three different directory sizes

~ 100Kb
~ 30Mb
~ 15Gb

Also changes the input placeholder text for each operation

I tried this branch and it worked.


Updated URL Regex

Previously:
https://google.com is a valid domain
Pull Request:
https://google.com
google.com
http://google.com
All are valid domain.

Sorry for being late 🙏  , I have merged the changes and will close this PR. Feel free to open it, whenever needed.


[bug] Flat network graph since 3.0.0

Version
Checklist:

[x] I am not using HomeAssistant. Or: a developer has told me to come here.
[x] I have checked the troubleshooting section and my problem is not described there.
[x] I have read the changelog problem was not mentioned there.

Build/Run method

[x] Docker
[ ] PKG
[ ] Snap package
[ ] Manually built (git clone - npm install - npm run build )

zwavejs2mqtt: 3.2.0
zwave-js: 7.1.1
but the bug cames with:
zwavejs2mqtt: 3.0.0
zwave-js: 7.0.0
Describe the bug

(took on v3.0.0)
To Reproduce
Steps to reproduce the behavior:
1 Upgrade from v2.4.1 (0a723f9) to v3.0.0 (b48c1f7)
Expected behavior

(took on v2.4.1)
Additional context
In general, I use HA, but when I add/remove node I always turn off that to avoid unwanted states/nodes... e.g. when I add a new node, I always rename that, but the HA remembers the original ids...
zwavejs2mqtt.log
zwavejs_1.log

I have a feeling that it could be related to the same problem we had with #739 .
Could you also do a nodes dump? YOu can find it in advanced dialog, it exports all nodes as a json file

I have a feeling that it could be related to the same problem we had with #739 .

I have seen that issue, but I thought that is based on the multiple controllers.

Could you also do a nodes dump? YOu can find it in advanced dialog, it exports all nodes as a json file

Of course:
nodes_dump.json.zip
Thank you!

@andras-tim This has been fixed on master now. If you are using docker simply use master tag instead of latest

@robertsLando I tested the master tag. Unfortunately, this isn't working for me, the graph still flat as my screenshot.
I attached a new bundle:
master.zip

@andras-tim Seems your stick have no neighborns, please try to send a heal action to it.
cc @AlCalzone

I tried to heal the network, restart the container, pull out the dongle then restart, but nothing was helped.
master2.zip

Just to be sure - Can you try this?

Stop the container
shut down the host
pull the stick
wait a few seconds
put the stick back in
start everything
wait until zwave-js has booted completely
heal

And did you previously use this network with OZW or did you create it fresh in zwave-js?

The master2 state was almost the same as https://github.com/zwave-js/zwavejs2mqtt/issues/1034#issuecomment-818756085, but I didn't restart the machine. But I'm going to do this.
In January I moved from OZW to zwave-js, but ~1 months ago I excluded the whole network device-by-device, reset the dongle via zwave-js and included the whole stuff.
I always stored the docker-compose file with the whole config dir in git, so I can easily switch, check:
everything worked (and if I revert the patches now then) works on v2.4.1, but the
v3.0.0 is broken. So, I think, something is broken in the newer versions.

in 4 hours I'm going to do the steps of https://github.com/zwave-js/zwavejs2mqtt/issues/1034#issuecomment-818756085 .
Thank you for your help!


Vector2Int not correct property draw with attribute [ShowAsDrawer]

Thanks for the bug report :)
This issue should be fixed with this commit: https://github.com/alelievr/NodeGraphProcessor/commit/7d3e88da9817670b781ad07173ca6b3a41224c51


How to undo the crack?

I have entered Diagnosis Mode, and then restored the boot.img backup. After that install FwUpdater.pkg downloaded from sony.
Still on the "Please wait" box....

Restore system.img did the trick.


Delay issue

Hi I clicked on "Increment after 1 sec" and I got error of delay

I fixed this issue using
import { delay } from 'redux-saga'
You also need to update this in the repo
Thanks


Get invalid value from datepicker

Bug Report
Ionic Info
Version:Ionic 4.0.2@beta
Describe the Bug
Ionic Datepicker get invalid value
Steps to Reproduce
Steps to reproduce the behavior:

Go to https://beta.ionicframework.com/docs/api/datetime
Click one of the datepicker and select done without choose any value
Invalid value appear

Expected Behavior
Able to get the default value from the options
Additional Context

Thanks for the issue! This will be fixed in beta.3 (and the docs once it is released) by the following commit: d19061c863f8558a0e597e3a5a53f1567b271b7b


New enclosure "Push Case"

Description
New enclosure "Push Case" with how-to docs and print files.
This pull request is categorized as a:

[x] Documentation

Awesome work @kayth21. I don't know how soon I will get to trying this full build myself. But I hope to at least print all the parts in the next few days. @SeedSigner you see this neat case contribution?

Thank you @newtonick! I hope you will like it! People already found this pull request, printed the case and posted picture of it on X. So it looks like it doesn't only work with my printer. :)

Thank you for this PR kayth, I am excited to give this a try! I am just beginning to look at the models and received the error below when slicing the .stl files. You might also consider rendering the models in the orientation they are intended to be printed in. I don't know that all of our other enclosures do this but I have found that it reduces questions, especially from people who are less familiar with printing.

Thank you @SeedSigner! I've made a few updates based on your feedback. The models are now rendered in the intended print orientation. And I've created a note about the Bambo Slicer issue with a reference to a workaround. I've also updated the bottom files (stl/3mf) to match another, slightly different camera model.

Thank you for this PR kayth, I am excited to give this a try! I am just beginning to look at the models and received the error below when slicing the .stl files. You might also consider rendering the models in the orientation they are intended to be printed in. I don't know that all of our other enclosures do this but I have found that it reduces questions, especially from people who are less familiar with printing.

I had this same issue today with the latest version of Bambu Studio <IP_ADDRESS>. Issue is with both STL and 3MF files for the buttons.


Fixes for version mismatches and added a manually testable pipeline

[ ] I have added the tests to cover my changes.
[ ] I have updated the documentation, VERSION, and CHANGELOG accordingly.
[ ] I have read the CONTRIBUTING document.

Marking it as draft, just need to improve the readme a bit.


Autocomplete not working in Material Design

I tried the autocomplete with Material Design and its not working.

Hi, can you give more information?

@Alex130 Could you please refer to the demo site available in the readme any try.

@subratawebops
At least have the curtesy and describe what you tried.
Also, it would be very helpful if you provide a snippet or a link.
The more you give, the better you can be assisted with.
What exactly do you mean by "refer to the demo site available in the readme" ?
What does that even mean ?

@catull So sorry man, that was not my intention, may be I did that in hurry. I will send you the code snippets.

@catull https://angular2-json-schema-form.firebaseapp.com/?set=jsf&example=jsf-fields-autocomplete&framework=material-design&language=en
This is the one I was talking about.

@Alex130 Could you please look into this issue.

That would be really great to have autocomplete with material design as we use material framework in the application


[gollvm] inproper configuration of system lib. path, under Ubuntu 20 x86_64

What version of Go are you using (go version)?

$ go version

go version go1.15rc2 gollvm LLVM 12.0.0git linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/oceanfish81/.cache/go-build"
GOENV="/home/oceanfish81/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/oceanfish81/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oceanfish81/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/tools"
GCCGO="/usr/local/bin/llvm-goc"
AR="ar"
CC="/usr/bin/clang"
CXX="/usr/bin/clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build510812938=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

What did you do?
$sudo ninja install-gollvm
What did you expect to see?
Installation into /usr/lib/
What did you see instead?
Installation into /usr/local/lib64
Ivan

CC @thanm @cherrymui
(though this doesn't seem wrong to me)

It looks like all libraries (libgo*) should be installed in /usr/lib/ - but pre-compiled Go standard library was correctly installed in /usr/local/lib64/go/12/x86_64-unknown-linux-gnu/...

/usr/local is coming from CMake itself, not from gollvm:
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html
Regarding "lib" vs "lib64" -- lib64 is currently cooked into a number of places in the driver and cmake scripting:
thanm@cetina:/ssd2/llvm-project/llvm-project/llvm/tools/gollvm$ git grep lib64
README.md:% export LD_LIBRARY_PATH=/tmp/gollvm-install/lib64
cmake/modules/AddGollvm.cmake:#       under 'lib64' as well, further fix required
cmake/modules/AddGollvm.cmake:set(libsubdir "lib64")
cmake/modules/GoVars.cmake:# Driver::installedLibDir honors ./lib64 only
driver/Driver.cpp:    // NOTE: set aarch64's lib dir to "lib64" temporarily, until necessary
driver/Driver.cpp:      llvm::sys::path::append(ldir, "../lib64");
driver/Driver.cpp:      llvm::sys::path::append(ldir, "../lib64");
driver/Driver.h:  // Installed lib dir (binary dir above plus ../lib64)
driver/GccUtils.cpp:      s.libdirs.push_back("lib64");
driver/LinuxToolChain.cpp:  return triple.isArch32Bit() ? "lib" : "lib64";
driver/LinuxToolChain.cpp:      LibDir = "lib64";

This could certainly be reworked, but it would require some doing. Happy to review if you would like to send a patch.

/usr/local is coming from CMake itself, not from gollvm:
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html
Regarding "lib" vs "lib64" -- lib64 is currently cooked into a number of places in the driver and cmake scripting:
thanm@cetina:/ssd2/llvm-project/llvm-project/llvm/tools/gollvm$ git grep lib64
README.md:% export LD_LIBRARY_PATH=/tmp/gollvm-install/lib64
cmake/modules/AddGollvm.cmake:#       under 'lib64' as well, further fix required
cmake/modules/AddGollvm.cmake:set(libsubdir "lib64")
cmake/modules/GoVars.cmake:# Driver::installedLibDir honors ./lib64 only
driver/Driver.cpp:    // NOTE: set aarch64's lib dir to "lib64" temporarily, until necessary
driver/Driver.cpp:      llvm::sys::path::append(ldir, "../lib64");
driver/Driver.cpp:      llvm::sys::path::append(ldir, "../lib64");
driver/Driver.h:  // Installed lib dir (binary dir above plus ../lib64)
driver/GccUtils.cpp:      s.libdirs.push_back("lib64");
driver/LinuxToolChain.cpp:  return triple.isArch32Bit() ? "lib" : "lib64";
driver/LinuxToolChain.cpp:      LibDir = "lib64";

This could certainly be reworked, but it would require some doing. Happy to review if you would like to send a patch.

Could you rebuild the config, so it would auto-substitute proper locations, according to distro's expectations?


Support for purescript v0.11 consolidated executable

starting with v0.11.0 purescript ships with one consolidated executable. That means the psc-ide-server can no longer be found in path.

Please add support for the new executable.
Thanks!

Please see release notes https://github.com/nwolverson/atom-ide-purescript/releases/tag/v0.17.0 - this is configured via "Use combined executable" setting, as calling convention is different and either new or old version may be somewhere in your path.
(Note that "psc-ide-server" text may still be found, but the text should then read "Looked for: purs in PATH": in this case)
Please raise an issue if there are any problems with this.

Oh! I didn't noticed that option down there.
Thanks a lot and sorry! You did an amazing job.


make Www-Authentication header parsing case-insensitive

Closes #210
I made the following changes to make the header parsing case-insensitive:

adapted the Regex to match method and key case-insensitively. This also required some changes in the positioning of whitespace character classes (\s) to not break the group matching.
convert the matched method to lowercase
rename lowercase method to PascalCase when deserializing using serde annotation
convert all matched keys to lowercase

I also extended the relevant tests to include some variations in upper/lowercase methods and keys.

LGTM, @lucab would you like to take another look?

LGTM, though I'm not actively maintaining nor consuming this repository anymore.

Sorry, have to close & reopen again, as Travis was replaced with Github Actions

LGTM, however bearer_realm_parses_correctly needs a slight update

Thanks, @vrutkovs! I updated the PR accordingly.

yet another formatting change. Sorry for this back and forth, but now it should be okay.

Looks great now, thanks!


ubuntu1610 is not available

For swarm ubuntu1610 is not available so it does not work.
So can we use ubuntu1704 ?

Yup, should be fine, let me know if you have any trouble.

On Sun, Oct 15, 2017 at 11:40 PM, Revanth Reddy T<EMAIL_ADDRESS>wrote:
For swarm ubuntu1610 is not available so it does not work.
So can we use ubuntu1704 ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/g0t4/aspnetcore-generator-api/issues/4, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAK_3dCjU9dnNLmalyw5kDsOvqi1g3-Xks5sstARgaJpZM4P6DB4
.

When I use ubuntu1610 it is asking for the following. Which one do we need to select?

en0: Wi-Fi (AirPort)
en1: Ethernet Adaptor (en1)
en2: Ethernet Adaptor (en2)
bridge0
p2p0
awdl0
==> m1: When choosing an interface, it is usually the one that is
==> m1: being used to connect to the internet.
m1: Which interface should the network bridge to?

The one that matches the prompt’s question.

On Mon, Oct 16, 2017 at 10:12 AM, Revanth Reddy T<EMAIL_ADDRESS>wrote:
When I use ubuntu1610 it is asking for the following. Which one do we need
to select?

en0: Wi-Fi (AirPort)
en1: Ethernet Adaptor (en1)
en2: Ethernet Adaptor (en2)
bridge0
p2p0
awdl0
==> m1: When choosing an interface, it is usually the one that is
==> m1: being used to connect to the internet.
m1: Which interface should the network bridge to?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/g0t4/aspnetcore-generator-api/issues/4#issuecomment-336899499,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAK_3fKNL1tdSqoKBVJVPsmAs10UkMMpks5ss2RdgaJpZM4P6DB4
.

FYI for anyone that reads this thread, use box-cutter/ubuntu1610 and open provision.sh and change test.docker.com to get.docker.com


[frontend] fixed calendar button alignment in Oozie WF Submit form

What changes were proposed in this pull request?

Ref: CDPD-66097
This PR aims to resolve 2 issues in the Submit form:

When the screen is zoom out, the calendar button does not align if the number of arguments is more than 3. If we zoom in the button should get aligned to its original place, which does not happen at the moment.
The calendar does not hide if we click anywhere outside calendar control.

How was this patch tested?

manually tested.
attaching screen recording of before and after.

Before:
https://github.com/cloudera/hue/assets/21025848/757fdfbd-530b-4d11-9b2d-8c8ff0d610d0
After:
https://github.com/cloudera/hue/assets/21025848/4c244a02-6b03-493e-94ea-6f6da8913a4a
Please review Hue Contributing Guide before opening a pull request.

Thanks @tarunjangid for contributing a fix! I've tagged the UI code owners for reviewing this PR.
On a side note, please don't add the link to internal JIRAs in PR description.


Fix plugin not updating placeholder or throwing 500 on file update. Mark Node 18 as supported.

When Strapi does a file update, it doesn't provide the URL or MIME props needed to [re]-generate a placeholder. I've added a bit of extra code to generatePlaceholder to fetch the original file's info and to populate these fields if they are missing before being fed to canGeneratePlaceholder, allowing placeholders to be updated when a file is updated, not just created.
I've also fixed a type error in canGeneratePlaceholder should mimeTypes.lookup fail - something that was causing 500 errors when updating a file - and I've updated package.json to also support Node 18.x, as the plugin seems to work without issue.
Fixes #2, #6 and #11

@WalkingPizza why hasn't this been merged?

@danm36
This may interest you: https://github.com/WalkingPizza/strapi-plugin-placeholder/issues/14


Fix TableMappings and ReplicationTaskSettings string in DMS.

Problem: The TableMappings string returned in describe_replication_tasks for DMS requires json.loads twice to get the TableMappings dict. However, in boto3 client, we have to apply json.loads only once.
The same problem occurs for the ReplicationTaskSettings property.
For the following DMS task.
client = boto3.client("dms", region_name="us-east-1")

    client.create_replication_task(
        ReplicationTaskIdentifier="test",
        SourceEndpointArn="source-endpoint-arn",
        TargetEndpointArn="target-endpoint-arn",
        ReplicationInstanceArn="replication-instance-arn",
        MigrationType="full-load",
        TableMappings='{"rules":[]}',
    )

    tasks = client.describe_replication_tasks(
        Filters=[{"Name": "replication-task-id", "Values": ["test"]}]
    )

actual boto3 passes the following (expected)
task["TableMappings"].should.equal('{"rules":[]}')
json.loads(task["TableMappings"]).should.be.a(dict)

boto3 with mock_dms fails all of the following (found)
task["TableMappings"].should.equal('{"rules":[]}')
json.loads(task["TableMappings"]).should.be.a(dict)

Root cause
There is an extra call to json.dumps on TableMappings and ReplicationTaskSettings string.

Looks like the linter is failing @damjad:
https://github.com/getmoto/moto/actions/runs/5248667715/jobs/9481410568

The checks have passed. Please, do let me know if anything else needs to be changed.


List rendering documentation needs v-model example

The documentation doesn't appear to include a clear example to properly use v-for in combination with a child v-model.
Example:
<div v-for'user in users'>
   <user-form v-model='user' />
</div>

Thanks for the issue! 🙂 There's not actually anything different about using v-model when it's inside of v-for. What information do you feel like you were missing?

@chrisvfritz I think that a common gotcha is that v-model should refer to a property of an object. It won't work with an array of primitive values -- it will actually trigger a compilation error, but I don't remember being warned by the docs.
https://jsfiddle.net/leopiccionia/e0gqa4jr/

@leopiccionia Hm, I'm a bit torn here, because this isn't actually specific to Vue here - it's just the way JavaScript works. For example, in this code:
var list = ['a', 'b', 'c']

list.forEach(function (item) {
  item = 'something'
})

You wouldn't expect the list array to be affected, because item stores a value rather than a reference (only arrays and objects are passed by reference). I'm going to close this for now, because I'd like to steer away from teaching more complex JavaScript in the docs.
I'm open to further discussion in this issue though.


Problem with "tensorflow_backend"

I get the below massage when I try to run model_message.py for subtask A;

Traceback

(most recent call last):

File "/Users/datastories-semeval2017-task4-master/models/neural/model_message.py", line 90, in
dropout_rnn_U=0.3)
File "/Users/datastories-semeval2017-task4-master/models/neural/keras_models.py", line 104, in build_attention_RNN
model.add(Attention())
File "/usr/local/lib/python3.6/site-packages/keras/models.py", line 332, in add
output_tensor = layer(self.outputs[0])
File "/usr/local/lib/python3.6/site-packages/keras/engine/topology.py", line 572, in call
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "/usr/local/lib/python3.6/site-packages/keras/engine/topology.py", line 635, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "/usr/local/lib/python3.6/site-packages/keras/engine/topology.py", line 166, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "/usr/local/lib/python3.6/site-packages/kutilities/layers.py", line 94, in call
eij = K.dot(x, self.W)
File "/usr/local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 819, in dot
y_permute_dim = [y_permute_dim.pop(-2)] + y_permute_dim
IndexError: pop index out of range

I wonder if you help me with this problem!

The issue has to do with K.dot and Tensorflow backend. I pushed a fix. Run:
pip install keras-utilities -U

Let me know if this fixes the issue.
Lastly, i want to note that the project was developed using Theano as a backend and i suggest to switch to Theano, as it has better RNN performance.

pip install keras-utilities -U solved the problem thanks.


Update hcert-kotlin-jvm dependency to 1.0.2

Update dependency to ehn.techiop.hcert:hcert-kotlin-jvm to version 1.0.2-SNAPSHOT (current version, as defined here: https://github.com/ehn-dcc-development/hcert-kotlin/blob/main/build.gradle.kts#L10).
Otherwise build of the app will fail (if hcert-kotlin was published before to local repo with ./gradlew publishToMavenLocal).

Sorry for missing this PR, it's obsolete now.


video as input data

Is there a way to use a single video file as input data allowing OpenSfM to cut it in frames and extract the GPS data accordingly?

Hi,
If you have a video file that OpenCV can read and if you have a synchronized GPX file, you can give it a try with the import_video script : https://github.com/mapillary/OpenSfM/blob/main/bin/import_video
Let me know if that helps,
Yann


Additional emails

We should have a minimum of 2 more emails for people to contact us through:

<EMAIL_ADDRESS>to go to the core team, to replace reprohack-team@gmail
<EMAIL_ADDRESS>to go to the COC committee

Are we OK with having @sheffield.ac.uk as the domain or should we try and get reprohack.org addresses? Although the reprohack.org looks better, it will cost (well we do have funds and it's only $24 a year) and may need extra time to set up.
What do you think ladies think?

Agreed that @reprohack.org is nicer. Shouldn't we make it<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(or something like that) to avoid having 'reprohack' twice?
and @DanielaGawehns' question: a rotating system is a good idea.

Emails now created and TUoS accounts created for @LindaNab  & @DanielaGawehns and assigned as delegates.


Added 2.18.0 release notes.

Description
Added 2.18.0 release notes.
Issues Resolved
https://github.com/opensearch-project/dashboards-notifications/issues/262
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@AWSHurneyt can you fix the DCO failure?

@AWSHurneyt can you fix the DCO failure?

Fixed the DCO. The previous run of the CI showed they all passed. Merging this PR.


[BUG] unexpected behaviour in intersection_by snippet

The intersection_by snippet description says:
Returns a list of elements that exist in both lists, after applying the provided function to each list element of both.

As per given example:
intersection_by([2.1, 1.2], [2.3, 3.4],floor) #[2.1]

Let's dry run this, as per description given function floor will transform both lists as:
[2.1, 1.2] -> [2,1]
[2.3, 3.4] -> [2,3]

Then we take intersection between transformed list which results in [2] and return the elements from original list. Here's the catch if I am not missing anything, 2.1 from list 1 and 2.3 from list 2 has equal chances of getting in return list but former is returned. Is this behavior by design? This pattern is repeated in other list __by snippets as well.
Here are some more examples that this snippet returns:
intersection_by([2.1, 1.2], [2.5, 2.3, 3.4],floor) # [2.1]
intersection_by([2.1, 1.2, 2.5], [2.3, 3.4],floor) # [2.1, 2.5]

This is by design. The snippet is supposed to by asymmetrical returning matching values in the first group after applying the transformation to both.

Then I guess it should be added to description for celerity.


feat: Add support for dual-stack IP addresses - IPv4 + IPv6.

We need to create multiple forwarding rules -
one for each (ip version address, port) combination - all pointing to the same respective proxies:

ipv4 addr + http/80 - pointing to the http proxy
ipv4 addr + https/443 - pointing to the https proxy
ipv6 addr + http/80 - pointing to the http proxy
ipv6 addr + https/443 - pointing to the https proxy

Fixes #112.
Signed-off-by: Kunal Gangakhedkar<EMAIL_ADDRESS>

@kunal-g You'll have to actually make these changes in the autogen/ directory then run make build. Thanks for working on this.

Yes, I already mentioned this in the comment on #112.
Idea was to do a quick PoC to verify if this logic works and have it reviewed by the maintainers/owners.
I'll create a separate PR with changes in autogen/ directory if these look ok to you.
However, I don't have the required tools/account for running e2e tests - can you please run those for me?

However, I don't have the required tools/account for running e2e tests - can you please run those for me?

If you make the appropriate updates in examples/ and get linters passing then CI can take care of integration tests.

Opening new PR with suggested changes.

Superseded by PR https://github.com/terraform-google-modules/terraform-google-lb-http/pull/116


As a CIF Administrator, I want to capture additional data fields on the "Project Overview" form, so that all my critical project information is captured in one place

Description:
Design: https://www.figma.com/file/PzOY8RyQnVXnjZJdSv2AqQ/Wireframing_Figma?node-id=2898%3A2671
Please refer to the design for the new arrangement (grouping, ordering, labelling) of fields

Score: freeform field (E.g. 82.333)
Project Type: dropdown for selection (E.g. Methane Capture, full list is upon finalization will be provided shortly)
Project Description: Relabelled from "Summary"

Acceptance Criteria:
Given I am a CIF project administrator
When I am creating/editing a project
Then I am able to manually enter project score
Given I am a CIF project administrator
When I am creating/editing a project
Then I see a field named "Project Type" with a drop down with values:
- Fuel Switching
- Waste Heat Recovery
- Renewable Energy
- Carbon Capture
- Utilization and Storage
- Methane Reduction
- Process Improvement
- Electrification
- Fleet Electrification
- Hydrogen Production/Blending
- Other
Development Checklist:

[ ] Add manual/numeric field to capture project score information
[ ] Add calculated field for project rank. Rank is calculated by ordering highest to lowest project score across a funding stream and year
[ ] Add field for project type. Options include: TBC
[ ] Re-label field called Summary to 'Project Description'
[ ] Re-order fields as per wireframe

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[x] User story is included
[x] User role and type are identified
[ ] Acceptance criteria are included
[x] Wireframes are included (if required)
[x] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Hi @nanyangpro, while reviewing and refining the ticket I had a couple of questions:

Rank: the notes indicate it is a pre-populated field based on other projects within the same funding stream/year - for clarification, the system would rank projects 1, 2, 3, etc with highest score being #1?
For score and rank: are these fields available in project creation and revision or just revision?
Do we have the full list for project type? The notes indicate a list will be provided shortly. I see the following listed in the wireframe (are these the final ones?). Also, I see the team has requested 'other' but we don't provide a field to indicate what other is - is this ok? I feel we should get away from using other as this may lead to questions in the future - what are your thoughts?
Fuel Switching
Waste Heat Recovery
Renewable Energy
Carbon Capture
Utilization and Storage
Methane Reduction
Process Improvement
Electrification
Fleet Electrification
Hydrogen Production/Blending
Other

Note: based on a conversation with @suhafa and @nanyangpro, it was determined that getting these additional fields into the system were a top priority before implementing amendment/revision features.

Good questions, @LindsayMacfarlane! Hope the answers below are helpful.

Yes
Project creation and revision
Yes, the list in the comment is the finalized one based on the Tech team's effort. "Other" was discussed by them, and was determined to be kept in the end

Hey team! Please add your planning poker estimate with ZenHub @BCerki @dleard @gurjmatharu @mikevespi @Sepehr-Sobhani

We might want to split the calculated "rank" feature into its own user story

Thank you @BCerki! Potentially more of a designer question: the list of project types - should those be in alphabetical order (as implemented) or in the order that CIF provided (as included in the ticket)? Mainly flag as 'Other' is middle of the list, which might get lost....normally I've seen 'other' at the bottom of drop down menus.

Thanks @BCerki!
Good call, @LindsayMacfarlane - Preferably in the order that CIF provided.

Thank you so much for that quick update @BCerki - much appreciated.


Could you include LICENSE information please?

Hi!
I'd like to use your library in a project, but licensing information is necessary for me to be able to include it in my project.
Thank you very much!
Best Regards,
@kodfodrasz

done


nodes not triggering disk pressure

Environmental Info:
K3s Version: v1.25.11+k3s1 (it also happens in 1.24)

Node(s) CPU architecture, OS, and Version: ubuntu 22

Cluster Configuration: 3 masters 7 servers

Describe the bug:

i got 1 or 2 nodes that are starting to run low on storage, i use longhorn for storage not sure if that matters
i made a new deployment which i left it overnight today i found it is stuck in container creating,
  Warning  FailedCreatePodContainer  2m16s (x340 over 75m)  kubelet  unable to ensure pod container exists: failed to create container for [kubepods burstable podc30b2386-01a4-48a2-9317-97188a7328c4] : unable to start unit "kubepods-burstable-podc30b2386_01a4_48a2_9317_97188a7328c4.slice" (properties [{Name:Description Value:"libcontainer container kubepods-burstable-podc30b2386_01a4_48a2_9317_97188a7328c4.slice"} {Name:Wants Value:["kubepods-burstable.slice"]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): No space left on device

my issue is, if there is no space left on device
1, why isn't the node being marked with disk pressure?
2, why is the statefullset/deployment not scheduling into another node if there are no rules to force a specific node

Can you show your filesystem layout/utilization and the settings on this node?

df -kha
kubectl get node -o yaml | grep arg

df -kha
Filesystem                                              Size  Used Avail Use% Mounted on
/dev/root                                               201G   85G  116G  43% /
...loads of longhorn volumes
kubectl get node -o yaml | grep arg
k3s.io/node-args: '["agent","--node-external-ip","","--node-ip","","--flannel-iface","network1"]'
ok, there is something weird... i assumed the node was out of storage however there is something else..., i will look into it next week
i believe you can close the issue, there is need to investigate what is going on...


Add test cases to test vector

Two changes to the test vectors:

Make the 'multiple outputs, same recipient' test have 3 outputs instead of 2
Add a test case where same recipient receives twice for un-labeled address & twice for labeled address

tACK


Update automating-subusers.md

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @Whatthefoxsays,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Uncouple NoopDiscoveryClient and configuration from Eureka

Perhaps use a default in the ImportSelector

Using ImportSelector won't work.  The only time the import selector is run is if @EnableDiscoveryClient is used, we want NoopDiscoveryClient to be created when the annotation is missing.

Using the EnableDiscoveryClientImportSelector won't work, but an ImportSelector that is always run will.

The case I was hoping to cover was where you wanted to use @EnableZuulProxy without Eureka (or any discovery). Does that still work with your change?

Yes, that is what my change does.

Probably safe to commit then. We need integration tests for these classpath combination scenarios.

closed via d3c2f8904973b7e11312339b8edc2ac0ff6e5254

@spencergibb here's a test project that's failing: https://github.com/spring-cloud-samples/tests/tree/master/zuul-proxy. It's trying to do @EnableZuulProxy with the minimum of dependencies. Can we fix that and keep your change in this issue?

fixed via 3596e67e1141f5bb074703a0f1a2eadd433756fb


ASP.NET Core 3.1 API template does not install wwwroot page like in repo or video

Good tutorial, but ASP.NET Core 3.1 API template doesn't seem to install wwwroot page like in the code github code repo attached to this page, or the youtube video linked. Is this why my endpoints are returning 400 via HTTP? (resolves to WeatherForecast class/controller URLs still).

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

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

The tutorial works. I'm not sure what step you missed. You might try asking on StackOverflow,.

You're correct, the tutorial works well. --I was originally confused on the routing that defaults Visual Studio's IISexpress to display the "https://localhost:5001/WeatherForecast" endpoint.
How does this work? It seems some of it comes from the project properties settings, which updates the development env. "launch.json" file settings... I read several of your pages on routing for ASP.NET Core API endpoints, but don't quite get the ins and outs of the newer API template with WeatherForecast demo, specifically how to set up default dev env routing so that on project launch (CTRL+F5), a browser launches to the API endpoints URL of my choosing?


Remove h5 files from disk once they've been used.

Is your feature request related to a problem? Please describe.
When I use the H5 writer to store the intermediate segmentation outputs, they create enormous files. Check below for the h5 files ahcore creates after a segmentation inference on 11 whole slide images. This is not good. We should delete h5 files once their purpose is served (for ex: delete h5 files once the corresponding tiff images have been written.)

In the tiff writer callback you can add the functionality delete_source_h5_after_completion, and make sure the WsiMetric callback is before the deletion

I've addressed this in the PR I raised here

After more discussion with @jonasteuwen, this issue can become a better feature. In that, we could think of a DeleteH5Files callback. Therefore, changing the title of the issue.


build: SPIRV-Headers, -Tools and glslang to latest

CI Vulkan-ExtensionLayer build queued with queue ID 158832.

CI Vulkan-ExtensionLayer build # 890 running.

CI Vulkan-ExtensionLayer build # 890 passed.


GPU throws out of index error?

Description
(Brief description of the problem in no more than 2 sentences.)
I have two files:

VAE.py which defines a variational auto encoder
vae_test.py which loads these classes and runs mnist on it

now when I set the context to cpu things run.
when I set the context to gpu things break (error and files pasted below).
I have previously used mxnet with gpus on this machine. So I am a bit confused...
VAE.py
import mxnet as mx
from mxnet import nd, gluon, autograd
from mxnet.gluon import nn, utils

def sample_gaussian(mu, lv, batch_size, latent_z):
    epsilon = nd.random_normal(0, 1, shape=(batch_size, latent_z))
    sigma = nd.sqrt(nd.exp(lv))
    z = mu + nd.multiply(sigma, epsilon)
    return z

class VAEEncoder(gluon.Block):
    def __init__(self, latent_z=100, **kwargs):
        super(VAEEncoder, self).__init__(**kwargs)
        with self.name_scope():
            self.enc = nn.Sequential()
            with self.enc.name_scope():
                self.enc.add(nn.Dense(28*28, activation='relu'))
                self.enc.add(nn.Dense(128, activation='relu'))
                self.enc.add(nn.Activation(activation='tanh'))

            self.mu = nn.Dense(latent_z) # mu = mean
            self.lv = nn.Dense(latent_z) # lv = log variance

    def forward(self, x):
        x = self.enc(x)
        mu = self.mu(x)
        lv = self.lv(x)
        return mu, lv

    def net_init(self, ctx):
        self.enc.initialize(ctx=ctx)

class VAEDecoder(gluon.Block):
    def __init__(self, latent_z=100, **kwargs):
        super(VAEDecoder, self).__init__(**kwargs)
        with self.name_scope():
            self.dec = nn.Sequential()
            self.dec.add(nn.Dense(128, in_units=latent_z, activation='relu'))
            self.dec.add(nn.Dense(28*28))
            self.dec.add(nn.Activation(activation='tanh'))

    def forward(self, x):
        x = self.dec(x)
        return x

    def net_init(self, ctx):
        self.dec.initialize(ctx=ctx)

class VAE(gluon.Block):
    def __init__(self, latent_z=100, batch_size=1,  **kwargs):
        super(VAE, self).__init__(**kwargs)
        with self.name_scope():
            self.enc = VAEEncoder(latent_z=latent_z)
            self.dec = VAEDecoder(latent_z=latent_z)
            self.latent_z = latent_z
            self.batch_size = batch_size

    def forward(self, x):
        mu, lv = self.enc(x)
        z = sample_gaussian(mu, lv, self.batch_size, self.latent_z)
        y = self.dec(z)
        return y, mu, lv

def vae_loss(x, y, mu, lv):
    l2 = gluon.loss.L2Loss()
    bce = l2(y, x) # MSE loss
    bce = nd.sum(bce)
    # loss = 0.5 sum(1-log(sigma^2)+mu^2+sigma^2)
    kld_el = (nd.power(mu, 2) + nd.exp(lv)) * -1 + 1 + lv
    kld = nd.sum(kld_el) * (-0.5)
    return bce + kld

vae_test.py
import mxnet as mx
from mxnet import nd, gluon, autograd
from mxnet.gluon import nn, utils

from VAE import VAE, vae_loss

use_gpu = False

latent_z = 100
batch_size = 128
learning_rate = 0.001
epochs = 20

ctx = mx.gpu() if use_gpu else mx.cpu()

mnist = mx.test_utils.get_mnist()
flattened_training_data = mnist["train_data"].reshape(60000, 28*28)
data_iter = mx.io.NDArrayIter(flattened_training_data, mnist['train_label'], batch_size=batch_size, shuffle=True)

vae = VAE(latent_z=latent_z)
vae.collect_params().initialize(ctx=ctx)

vae_trainer = gluon.Trainer(vae.collect_params(), 'adam', {'learning_rate': learning_rate})

for epoch in range(epochs):
    train_loss = 0
    data_iter.reset()
    for batch_index, batch in enumerate(data_iter):
        data = batch.data[0]
        with mx.autograd.record():
            y, mu, lv = vae(data)
            loss = vae_loss(data, y, mu, lv)
        loss.backward()
        train_loss += loss.asscalar()
        vae_trainer.step(batch_size)

        if batch_index % 100 == 0:
            print('Epoch {}\tBatch {}\tLoss {}'.format(epoch, batch_index, train_loss))

Error when ctx=mx.gpu()
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-7-4d9d0712ffcd> in <module>()
      5         data = batch.data[0]
      6         with mx.autograd.record():
----> 7             y, mu, lv = vae(data)
      8             loss = vae_loss(data, y, mu, lv)
      9         loss.backward()

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in __call__(self, *args)
    288     def __call__(self, *args):
    289         """Calls forward. Only accepts positional arguments."""
--> 290         return self.forward(*args)
    291
    292     def forward(self, *args):

~/Programming/edge_repos/detexon/vaegan/VAE.py in forward(self, x)
     64
     65     def forward(self, x):
---> 66         mu, lv = self.enc(x)
     67         z = sample_gaussian(mu, lv, self.batch_size, self.latent_z)
     68         y = self.dec(z)

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in __call__(self, *args)
    288     def __call__(self, *args):
    289         """Calls forward. Only accepts positional arguments."""
--> 290         return self.forward(*args)
    291
    292     def forward(self, *args):

~/Programming/edge_repos/detexon/vaegan/VAE.py in forward(self, x)
     26
     27     def forward(self, x):
---> 28         x = self.enc(x)
     29         mu = self.mu(x)
     30         lv = self.lv(x)

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in __call__(self, *args)
    288     def __call__(self, *args):
    289         """Calls forward. Only accepts positional arguments."""
--> 290         return self.forward(*args)
    291
    292     def forward(self, *args):

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/nn/basic_layers.py in forward(self, x)
     48     def forward(self, x):
     49         for block in self._children:
---> 50             x = block(x)
     51         return x
     52

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in __call__(self, *args)
    288     def __call__(self, *args):
    289         """Calls forward. Only accepts positional arguments."""
--> 290         return self.forward(*args)
    291
    292     def forward(self, *args):

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in forward(self, x, *args)
    466                     return self._call_cached_op(x, *args)
    467                 try:
--> 468                     params = {i: j.data(ctx) for i, j in self._reg_params.items()}
    469                 except DeferredInitializationError:
    470                     self.infer_shape(x, *args)

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in <dictcomp>(.0)
    466                     return self._call_cached_op(x, *args)
    467                 try:
--> 468                     params = {i: j.data(ctx) for i, j in self._reg_params.items()}
    469                 except DeferredInitializationError:
    470                     self.infer_shape(x, *args)

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/parameter.py in data(self, ctx)
    359         NDArray on ctx
    360         """
--> 361         return self._check_and_get(self._data, ctx)
    362
    363     def list_data(self):

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/parameter.py in _check_and_get(self, arr_list, ctx)
    148                 else:
    149                     ctx = context.current_context()
--> 150             idx = self._ctx_map[ctx.device_typeid][ctx.device_id]
    151             if idx is not None:
    152                 return arr_list[idx]

IndexError: list index out of range

Please try data.as_in_context(ctx).

doing just that results in:
MXNetError                                Traceback (most recent call last)
<ipython-input-7-8070ef786604> in <module>()
      5         data = batch.data[0].as_in_context(ctx)
      6         with mx.autograd.record():
----> 7             y, mu, lv = vae(data)
      8             loss = vae_loss(data, y, mu, lv)
      9         loss.backward()

/usr/local/lib/python3.5/dist-packages/mxnet/gluon/block.py in __call__(self, *args)
    288     def __call__(self, *args):
    289         """Calls forward. Only accepts positional arguments."""
--> 290         return self.forward(*args)
    291
    292     def forward(self, *args):

~/Programming/edge_repos/detexon/vaegan/VAE.py in forward(self, x)
     63     def forward(self, x):
     64         mu, lv = self.enc(x)
---> 65         z = sample_gaussian(mu, lv, self.batch_size, self.latent_z)
     66         y = self.dec(z)
     67         return y, mu, lv

~/Programming/edge_repos/detexon/vaegan/VAE.py in sample_gaussian(mu, lv, batch_size, latent_z, ctx)
      8     sigma = nd.sqrt(nd.exp(lv))
      9     # sigma = nd.exp(lv * 0.5)
---> 10     z = mu + nd.multiply(sigma, epsilon)
     11     return z
     12

/usr/local/lib/python3.5/dist-packages/mxnet/ndarray/ndarray.py in multiply(lhs, rhs)
   2210         operator.mul,
   2211         _internal._mul_scalar,
-> 2212         None)
   2213     # pylint: enable= no-member, protected-access
   2214

/usr/local/lib/python3.5/dist-packages/mxnet/ndarray/ndarray.py in _ufunc_helper(lhs, rhs, fn_array, fn_scalar, lfn_scalar, rfn_scalar)
   2023         return lfn_scalar(lhs, float(rhs))
   2024     elif isinstance(rhs, NDArray):
-> 2025         return fn_array(lhs, rhs)
   2026     else:
   2027         raise TypeError('type %s not supported' % str(type(rhs)))

/usr/local/lib/python3.5/dist-packages/mxnet/ndarray/register.py in broadcast_mul(lhs, rhs, out, name, **kwargs)

/usr/local/lib/python3.5/dist-packages/mxnet/_ctypes/ndarray.py in _imperative_invoke(handle, ndargs, keys, vals, out)
     90         c_array(ctypes.c_char_p, [c_str(key) for key in keys]),
     91         c_array(ctypes.c_char_p, [c_str(str(val)) for val in vals]),
---> 92         ctypes.byref(out_stypes)))
     93
     94     if original_output is not None:

/usr/local/lib/python3.5/dist-packages/mxnet/base.py in check_call(ret)
    144     """
    145     if ret != 0:
--> 146         raise MXNetError(py_str(_LIB.MXGetLastError()))
    147
    148 if sys.version_info[0] < 3:

MXNetError: [14:58:02] src/imperative/./imperative_utils.h:54: Check failed: inputs[i]->ctx().dev_mask() == ctx.dev_mask() (1 vs. 2) Operator broadcast_mul require all inputs live on the same context. But the first argument is on gpu(0) while the 2-th argument is on cpu(0)

Stack trace returned 10 entries:
[bt] (0) /usr/local/lib/python3.5/dist-packages/mxnet/libmxnet.so(+0x272f3c) [0x7f3aa60c6f3c]
[bt] (1) /usr/local/lib/python3.5/dist-packages/mxnet/libmxnet.so(+0x214b9dc) [0x7f3aa7f9f9dc]
[bt] (2) /usr/local/lib/python3.5/dist-packages/mxnet/libmxnet.so(+0x213e23e) [0x7f3aa7f9223e]
[bt] (3) /usr/local/lib/python3.5/dist-packages/mxnet/libmxnet.so(+0x2094831) [0x7f3aa7ee8831]
[bt] (4) /usr/local/lib/python3.5/dist-packages/mxnet/libmxnet.so(MXImperativeInvokeEx+0x63) [0x7f3aa7ee8bd3]
[bt] (5) /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(ffi_call_unix64+0x4c) [0x7f3af429de20]
[bt] (6) /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(ffi_call+0x2eb) [0x7f3af429d88b]
[bt] (7) /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(_ctypes_callproc+0x49a) [0x7f3af429801a]
[bt] (8) /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(+0x9fcb) [0x7f3af428bfcb]
[bt] (9) /usr/bin/python3(PyObject_Call+0x47) [0x5b5da7]

HOWEVER going into VAE.py and passing the context to the function sample_gaussian solves the issue:
def sample_gaussian(mu, lv, batch_size, latent_z, ctx=mx.cpu()):
    epsilon = nd.random_normal(0, 1, shape=(batch_size, latent_z), ctx=ctx)
    sigma = nd.sqrt(nd.exp(lv))
    # sigma = nd.exp(lv * 0.5)
    z = mu + nd.multiply(sigma, epsilon)
    return z

class VAE(gluon.Block):
    def __init__(self, latent_z=100, batch_size=1, ctx=mx.cpu(),  **kwargs):
        super(VAE, self).__init__(**kwargs)
        with self.name_scope():
            self.enc = VAEEncoder(latent_z=latent_z)
            self.dec = VAEDecoder(latent_z=latent_z)
            self.latent_z = latent_z
            self.batch_size = batch_size
            self.ctx = ctx

    def forward(self, x):
        mu, lv = self.enc(x)
        z = sample_gaussian(mu, lv, self.batch_size, self.latent_z, self.ctx)
        y = self.dec(z)
        return y, mu, lv

thanks for pointing me in the right direction.
Why did this solve the issue?
Could the error thrown by mxnet include a warning about non equal contexts?

to clarify, both fixes are needed

Is there way to set the global context?
or for mxnet to auto switch to the greater of two contexts automatically (e.g. if I accidentally init something on the cpu and run something on 4 cpus, it automatically knows to move to a single gpu when needed?)

try mx.gpu(0). mx.cpu doesn't needs index but gpu does.

@Soonhwan-Kwon  I would like to postulate that mx.gpu() works fine. It is equivalent to mx.gpu(0).
The point is figuring out ways to handle non-conforming contexts (preferably internally)

proposed labels: "Bug", "Python"

@SumNeuron
Right now, context can be set within a block at max (https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/context.py).
with mx.Context(mx.gpu(2)): # Context changed in with block.
There is no support for automatically switching between contexts yet. There is a request (https://github.com/apache/incubator-mxnet/issues/6333) for the same.
Can this issue be marked as closed? @SumNeuron @sandeep-krishnamurthy

Closing in favor of https://github.com/apache/incubator-mxnet/issues/6333,  please feel free to reopen in case of issue.


Enzyme ERROR: 'There is no timestamp for /base/enzyme.js!' in unit testing React app

I tried using Enzyme for unit testing my React application with karma as test runner but facing below error:
    PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR: 'There is no timestamp for /base/enzyme.js!'

    14 11 2017 12:25:32.469:WARN [web-server]: 404: /base/enzyme.js
    PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR
      Error: Script error for "enzyme", needed by: C:/.../testlib/unit/component/Shared/Butto
    n/Button-test.js
      http://requirejs.org/docs/errors.html#scripterror
      at C:/.../node_modules/requirejs/require.js:143

As suggested in Docs, I installed following modules:
    "enzyme": "^2.9.1",
    "enzyme-adapter-react-15.4": "^1.0.5",
    "react-test-renderer": "^15.6.2",

My React version is 15.1.0. And my test file is as follows:
    import Button from 'lib/component/Shared/Button/Button';
    import { shallow } from 'enzyme';
    import { assert, expect } from 'chai';

    describe('component/Shared/Button', () => {
        describe('render', () => {
            const wrapper = shallow(<Button />);
            expect(wrapper.find('button').hasClass('btn-blue')).to.equal(true);
        });
    });

I guess I am surely missing some configuration, hope someone can help! TIA.

Can you try with enzyme 3? We don't really support enzyme 2 anymore.

@ljharb Does Enzyme v3 works with React 15.1.0? I wont be able to update React as this is an existing application live.

Yes, absolutely - it works with React 0.13 and greater; you just need to select the appropriate adapter.

@ljharb I have installed v 15.4 of module enzyme-adapter-react-15.4 as stated here:
I also see that this configuration is to be included:
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
Which file should this be placed in? Do i need to import this somewhere as well?

@VishalGulati that file should be brought in prior to all your tests; exactly how to do it depends on your test runner.

@ljharb : Tried with Enzyme v3, did not work. PFB the details:
modules installed:
"enzyme": "^3.1.1",
"enzyme-adapter-react-15.4": "^1.0.5",

Created a file enzyme.config.js:
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-15.4';

Enzyme.configure({ adapter: new Adapter() });

Included the above file in my karma runner conf:
files: [
        // test setup
        ...........
        'test/unit/testutils/enzyme.config.js',
        ..........
]

Got following error:
Running "karma:dev" (karma) task
14 11 2017 15:55:12.394:INFO [karma]: Karma v1.7.1 server started at http://<IP_ADDRESS>:9876/
14 11 2017 15:55:12.394:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
14 11 2017 15:55:12.415:INFO [launcher]: Starting browser PhantomJS
14 11 2017 15:55:13.986:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]: Connected on socket _Me2FalpHyjaMBWPAAAA with id 13784764
PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR
  SyntaxError: Use of reserved word 'import'
  at test/unit/testutils/enzyme.config.js:1

Warning: Task "karma:dev" failed.

@ljharb Could you please let me know if I am missing something. I am really helpless with this setup. The steps have all been followed but still got no clue why it does not work. There is no info over net as well. I am stuck!

@zeke @roberto @schleyfox @indexzero anyone of you could please step up?

"Use of reserved word 'import'" means you're not babel-transpiling your files before they get to phantom.
I'm going to close this, since there's nothing actionable from enzyme's side here.


bug: Android project with facebook login fails lint

Plugin(s):
authentication
Platform(s):
android
Current behavior:
Linting the android project in CI environment fails when using the facebook provider because of missing dependency.
$ ./gradlew app:lint

> Task :app:lintDebug FAILED
Lint found 2 errors, 42 warnings. First failure:

android/app/src/main/AndroidManifest.xml:124: Error: Class referenced in the manifest, com.facebook.FacebookActivity, was not found in the project or the libraries [MissingClass]
        android:name="com.facebook.FacebookActivity"
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The full lint text report is located at:
  android/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintDebug'.
> Lint found errors in the project; aborting build.

  Fix the issues identified by lint, or create a baseline to see only new errors:

android {
lint {
baseline = file("lint-baseline.xml")
}
}

For more details, see https://developer.android.com/studio/write/lint#snapshot

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s
642 actionable tasks: 1 executed, 641 up-to-date

Expected behavior:
./gradle app:lint should pass
Steps to reproduce:
Implement authentication with the facebook provider according to documentation and run ./gradle app:lint
Related code:
facebookLoginVersion = '14.0.0'

<activity android:name="com.facebook.FacebookActivity"

Other information:
The project builds and runs in Android Studio.
A workaround I have found is to add the dependency in my top level build.gradle
implementation "com.facebook.android:facebook-login:$facebookLoginVersion
My guess is that the linter doesn't like that the dependency is in a subpackage while FacebookActivity is used at the top level (in AndroidManifest.xml). One solution is to change the documentation to say that the dependency should be added manually.
Capacitor doctor:
💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 3.5.1
  @capacitor/core: 3.5.1
  @capacitor/android: 3.5.1
  @capacitor/ios: 3.5.1

Installed Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

[error] Xcode is not installed

Hi @Paso,
have you added the following project variable to your variables.gradle file (usually android/build.gradle)?
ext {
+    rgcfaIncludeFacebook = true
}

Does the error only occur during lint or also during build?

Hi @robingenz ,
Yes i do, this is my full variables.gradle:
ext {
    minSdkVersion = 27
    compileSdkVersion = 30
    targetSdkVersion = 30
    androidxActivityVersion = '1.2.0'
    androidxAppCompatVersion = '1.3.0'
    androidxCoordinatorLayoutVersion = '1.1.0'
    androidxCoreVersion =  '1.6.0'
    androidxFragmentVersion = '1.3.0'
    junitVersion = '4.13.2'
    androidxJunitVersion = '1.1.2'
    androidxEspressoCoreVersion = '3.3.0'
    cordovaAndroidVersion =  '7.0.0'
    firebaseMessagingVersion = '23.0.5'
    rgcfaIncludeGoogle = true
    rgcfaIncludeFacebook = true
    facebookLoginVersion = '14.0.0'
}

I get the same error when i run ./gradlew app:build or any of the assemble commands. I find it strange that it works in Android Studio but not in the cli (which is run in the CI environment), but I have long given up on understanding everything Android Studio does 🤷♂.

Please create a public repository with a minimal, reproducible example and GitHub Actions, so that i can understand the problem.

A minimal reproduction: https://github.com/Paso/fb-auth-repro
git clone https://github.com/Paso/fb-auth-repro
cd fb-auth-repro
npm i
npx cap sync
cd android
./gradlew app:lint

Thank you, i will look at it as soon as possible.

I tried your repo and was able to reproduce the error.
I compared your repo with https://github.com/robingenz/capacitor-firebase-authentication-demo and I noticed that we have the following diff in the android/build.gradle file:
dependencies {
-    classpath 'com.android.tools.build:gradle:7.2.0'
+    classpath 'com.android.tools.build:gradle:4.2.1'
    classpath 'com.google.gms:google-services:4.3.5'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

With classpath 'com.android.tools.build:gradle:4.2.1' linting works without problems.

This probably needs to be fixed at some time.
My suggestion is to update the docs to say that you should manually add the facebook-login dependency. I have manually added it in my project and that makes it work for me.
Downgrading gradle doesn't work for me as I use a newer version of Java that the old gradle doesn't support.

I will look at it again.

Unfortunately I could not find out anything more.
Waiting for https://github.com/gradle/gradle/issues/21462

I have unfortunately not received a tip either in the Gradle issue or in this discussion and have no more idea myself.
Since it is only a lint error and the project can be built normally, I will ignore the lint error in my projects with a baseline for now (see Creating a Baseline, example commit).
I will also add a note to the documentation.

I was only able to get the linting errors to resolve after also adding the implementation directly in the build.gradle file as well.
variables.gradle
ext {
  facebookLoginVersion = "15.2.0"
}

build.grade
dependencies {
  implementation "com.facebook.android:facebook-login:$facebookLoginVersion"
}

I was only able to get the linting errors to resolve after also adding the implementation directly in the build.gradle file as well.
variables.gradle
ext {
  facebookLoginVersion = "15.2.0"
}

build.grade
dependencies {
  implementation "com.facebook.android:facebook-login:$facebookLoginVersion"
}

I do not recommand this solutions since you now have to check the version manually with each update of @capacitor-firebase/authentication and update it if necessary.
I recommend ignoring the lint error with a baseline.


Scrape DOI links from bespoke files

This is something we discussed in the last meeting.
It can mostly be done with a grep command. From data/OZTreeBuild/AllLife/BespokeTree/include_noAutoOTT, run:
grep -o "https://doi.org/[a-zA-Z0-9\-_\.\/]*" *.* | sort | uniq

Here is the output:
AfrotheriaPoulakakis2010.phy:https://doi.org/10.1080/14772000.2010.484436
Ambulacraria.PHY:https://doi.org/10.1016/j.ympev.2011.08.028
Ambulacraria.PHY:https://doi.org/10.1098/rstb.2007.2233
Amorphea.PHY:https://doi.org/10.1038/s41467
Amorphea.PHY:https://doi.org/10.1098/rspb.2013.1755
Amorphea.PHY:https://doi.org/10.1371/journal.pone.0002098
Animals.PHY:https://doi.org/10.1016/j.cub.2009.07.004
Animals.PHY:https://doi.org/10.1016/j.cub.2019.01.068
Animals.PHY:https://doi.org/10.1038/nature16520
Animals.PHY:https://doi.org/10.1038/nature16545
Animals.PHY:https://doi.org/10.1371/journal.pone.0139068
Aphelida_rough.PHY:https://doi.org/10.1111/jeu.12401
Aphelida_rough.PHY:https://doi.org/10.1186/s43008
Aphelida_rough.PHY:https://doi.org/10.3389/fmicb.2014.00112
Base.PHY:https://doi.org/10.1016/j.tree.2019.08.008
Base.PHY:https://doi.org/10.1038/s41467
Base.PHY:https://doi.org/10.1038/s41559
Base.PHY:https://doi.org/10.1038/s41586
Base.PHY:https://doi.org/10.1093/femsle/fnz008
Base.PHY:https://doi.org/10.1093/gbe/evu031
Base.PHY:https://doi.org/10.1101/2<IP_ADDRESS>8903
Base.PHY:https://doi.org/10.1111/jeu.12691
Base.PHY:https://doi.org/10.1146/annurev
Batoids_Aschliman2012.PHY:https://doi.org/10.1016/j.ympev.2011.12.012
BicherSuzuki2010.phy:https://doi.org/10.1186/1471
BonyFishOpenTree.PHY:https://doi.org/10.1371/currents.tol.53ba26640df0ccaee75bb165c8c26288
BoreoeutheriaOneZoom_altered.phy:https://doi.org/10.1038/nature05634
BoreoeutheriaOneZoom_altered.phy:https://doi.org/10.1098/rspb.2012.0683
CRuMs.PHY:https://doi.org/10.1093/gbe/evy014
Chondrichthyes_Renz2013.phy:https://doi.org/10.1371/journal.pone.0066400
CoelacanthSudarto2010.phy:https://doi.org/10.1007/s00227
CtenophoresPoder2001.PHY:https://doi.org/10.1006/mpev.2001.1036
CtenophoresPoder2001.PHY:https://doi.org/10.1038/s41559
Cyclostome_full_guess.PHY:https://doi.org/10.1007/978
Cyclostome_full_guess.PHY:https://doi.org/10.1111/jzs.12035
Cyclostome_full_guess.PHY:https://doi.org/10.1139/z05
Cyclostome_full_guess.PHY:https://doi.org/10.1643/IA02
Cyclostome_full_guess.PHY:https://doi.org/10.2108/zsj.25.960
Deepfin2.phy:https://doi.org/10.1371/currents.tol.53ba26640df0ccaee75bb165c8c26288
DermopteraJanecka2008.phy:https://doi.org/10.1016/j.cub.2008.09.005
Diaphoretickes.PHY:https://doi.org/10.1016/j.tree.2019.08.008
Diaphoretickes.PHY:https://doi.org/10.1038/s41467
Diaphoretickes.PHY:https://doi.org/10.1038/s41586
GalapagosFinchesLamichhaney2015.phy:https://doi.org/10.1038/nature14181
GarsDeepfin.phy:https://doi.org/10.1016/j.ympev.2012.02.033
GibbonsCarbone2014.phy:https://doi.org/10.1038/nature13679
GibbonsCarbone2014.phy:https://doi.org/10.1371/journal.pone.0049521
Holocephali_Inoue2010.PHY:https://doi.org/10.1093/molbev/msq147
Holomycota.PHY:https://doi.org/10.1007/s13225
Lampreys_Potter2015.phy:https://doi.org/10.1007/978
Marsupial_recalibrated.phy:https://doi.org/10.1093/molbev/msu176
Marsupial_recalibrated.phy:https://doi.org/10.1371/journal.pbio.1000436
Naylor2012Carcharhinicae_minus.PHY:https://doi.org/10.1201/B11867
Naylor2012Dalatiidae.PHY:https://doi.org/10.1201/B11867
Naylor2012Etmopteridae.phy:https://doi.org/10.1201/B11867
Naylor2012Pristiophoridae.phy:https://doi.org/10.1201/B11867
Naylor2012Scyliorhinidae2.PHY:https://doi.org/10.1201/B11867
Naylor2012Scyliorhinidae3.PHY:https://doi.org/10.1201/B11867
Naylor2012Selachimorpha.PHY:https://doi.org/10.1016/j.ympev.2011.12.012
Naylor2012Selachimorpha.PHY:https://doi.org/10.1186/s12862
Naylor2012Selachimorpha.PHY:https://doi.org/10.1201/B11867
Naylor2012Somniosidae_Oxynotidae.PHY:https://doi.org/10.1201/B11867
Naylor2012Squatinidae.phy:https://doi.org/10.1201/B11867
Neognathae_minus_passerines_OneZoom.PHY:https://doi.org/10.1038/nature11631
Neognathae_minus_passerines_OneZoom.PHY:https://doi.org/10.1080/10635150701549672
PalaeognathaeMitchell2014.PHY:https://doi.org/10.1126/science.1251981
PasserinesOneZoom.phy:https://doi.org/10.1038/nature11631
PlacentalsPoulakakis2010.phy:https://doi.org/10.1080/14772000.2010.484436
PrimatesSpringer2012_AT.PHY:https://doi.org/10.1371/journal.pone.0049521
Protostomes.PHY:https://doi.org/10.1007/s13127
Protostomes.PHY:https://doi.org/10.1016/j.cub.2015.06.068
Protostomes.PHY:https://doi.org/10.1073/pnas.1105499108
Protostomes.PHY:https://doi.org/10.1093/icb/42.3.652
Protostomes.PHY:https://doi.org/10.1111/zsc.12140
Protostomes.PHY:https://doi.org/10.1186/1471
SturgeonKrieger2008.phy:https://doi.org/10.1016/j.ympev.2006.09.008
SturgeonKrieger2008.phy:https://doi.org/10.1111/j.1439
Tetrapods_Zheng_base.PHY:https://doi.org/10.1016/j.ympev.2015.10.009
Tinamous_OneZoom.phy:https://doi.org/10.1126/science.1251981
XenarthraOneZoom.phy:https://doi.org/10.1080/14772000.2010.484436

Note that some are duplicated over multiple files. The overall list across all files can be obtained via by passing -oh instead of -o, causing it not to output the file name.
Here is the list:
https://doi.org/10.1006/mpev.2001.1036
https://doi.org/10.1007/978
https://doi.org/10.1007/s00227
https://doi.org/10.1007/s13127
https://doi.org/10.1007/s13225
https://doi.org/10.1016/j.cub.2008.09.005
https://doi.org/10.1016/j.cub.2009.07.004
https://doi.org/10.1016/j.cub.2015.06.068
https://doi.org/10.1016/j.cub.2019.01.068
https://doi.org/10.1016/j.tree.2019.08.008
https://doi.org/10.1016/j.ympev.2006.09.008
https://doi.org/10.1016/j.ympev.2011.08.028
https://doi.org/10.1016/j.ympev.2011.12.012
https://doi.org/10.1016/j.ympev.2012.02.033
https://doi.org/10.1016/j.ympev.2015.10.009
https://doi.org/10.1038/nature05634
https://doi.org/10.1038/nature11631
https://doi.org/10.1038/nature13679
https://doi.org/10.1038/nature14181
https://doi.org/10.1038/nature16520
https://doi.org/10.1038/nature16545
https://doi.org/10.1038/s41467
https://doi.org/10.1038/s41559
https://doi.org/10.1038/s41586
https://doi.org/10.1073/pnas.1105499108
https://doi.org/10.1080/10635150701549672
https://doi.org/10.1080/14772000.2010.484436
https://doi.org/10.1093/femsle/fnz008
https://doi.org/10.1093/gbe/evu031
https://doi.org/10.1093/gbe/evy014
https://doi.org/10.1093/icb/42.3.652
https://doi.org/10.1093/molbev/msq147
https://doi.org/10.1093/molbev/msu176
https://doi.org/10.1098/rspb.2012.0683
https://doi.org/10.1098/rspb.2013.1755
https://doi.org/10.1098/rstb.2007.2233
https://doi.org/10.1101/2<IP_ADDRESS>8903
https://doi.org/10.1111/j.1439
https://doi.org/10.1111/jeu.12401
https://doi.org/10.1111/jeu.12691
https://doi.org/10.1111/jzs.12035
https://doi.org/10.1111/zsc.12140
https://doi.org/10.1126/science.1251981
https://doi.org/10.1139/z05
https://doi.org/10.1146/annurev
https://doi.org/10.1186/1471
https://doi.org/10.1186/s12862
https://doi.org/10.1186/s43008
https://doi.org/10.1201/B11867
https://doi.org/10.1371/currents.tol.53ba26640df0ccaee75bb165c8c26288
https://doi.org/10.1371/journal.pbio.1000436
https://doi.org/10.1371/journal.pone.0002098
https://doi.org/10.1371/journal.pone.0049521
https://doi.org/10.1371/journal.pone.0066400
https://doi.org/10.1371/journal.pone.0139068
https://doi.org/10.1643/IA02
https://doi.org/10.2108/zsj.25.960
https://doi.org/10.3389/fmicb.2014.00112

@hyanwong is that what you were after?

Ah yes, that's great (I think we can allow the duplications if they are in different files). I guess it would also be helpful to extract the name of the containing clade from each file. What's the HTML format we might want to use to present this, I wonder? Something like:

Mammals [link to OneZoom mammal node]

citation 1
citation 2

Tetrapods [link to OneZoom tetrapod node]

citation 1
citation 2

etc, I guess?

Ok, that goes a bit beyond what we should do with grep/sed, so I can write a little Python script to put that together. Where will this HTML end up? e.g. as part of a static page on the site?

I wrote some basic code to do this. You can see it here (not yet merged in main fork).
Here is a sample of the HTML output:

Afrotheria

https://doi.org/10.1080/14772000.2010.484436

Ambulacraria

https://doi.org/10.1098/rstb.2007.2233

https://doi.org/10.1016/j.ympev.2011.08.028

The one issue I hit is that a few files don't have the clade at the end of the newick, so we can't easily know what clade it's for. In those cases, I just used the file name instead of the clade, but we lose the OneZoom tree. See Deepfin2.phy for an example of such file.

Fixed via 98d74caf988df4b9b8c6961059a2dd6f9666585c

Great, thanks!

@hyanwong to try this, simply run the following from the root of the tree-build repo:
python3 oz_tree_build/utilities/generate_bespoke_doi_html.py data/OZTreeBuild/AllLife/BespokeTree/include_noAutoOTT


propose splitting monorepo

This PR introduces a proposal to split the monolithic source repository
github.com/aws/aws-controllers-k8s into a set of separate source
repositories for individual service controllers and a separate repo for
the code generator.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

+1 to what you said @RedbackThomson - I think splitting these things out can help with management. However we do need consistent standards across all these repos, and putting them in a single GitHub org would make it easy to find and organize them.

+1 to what you said @RedbackThomson - I think splitting these things out can help with management. However we do need consistent standards across all these repos, and putting them in a single GitHub org would make it easy to find and organize them.

I think splitting will help customers with confusion on how they adopt ACK too. There is currently some confusion around if customers can adopt individual controllers and splitting the repos may make that more clear.
I also agree we should probably use a less populated org for the controllers although I don't think I like having an org just for ACK. Maybe use aws-containers org because there isn't as much there. At the org level you can also set repo templates which can greatly help onboard new services/teams and set initial repo structure.
We should also make sure that documentation is centralized for static site generation and SEO. Each controller can have a specific README for things like IAM examples, but there should also be a docs repo that all teams contribute to for how customers can install their controllers.

I think splitting will help customers with confusion on how they adopt ACK too. There is currently some confusion around if customers can adopt individual controllers and splitting the repos may make that more clear.
I also agree we should probably use a less populated org for the controllers although I don't think I like having an org just for ACK. Maybe use aws-containers org because there isn't as much there. At the org level you can also set repo templates which can greatly help onboard new services/teams and set initial repo structure.
We should also make sure that documentation is centralized for static site generation and SEO. Each controller can have a specific README for things like IAM examples, but there should also be a docs repo that all teams contribute to for how customers can install their controllers.

I think splitting will help customers with confusion on how they adopt ACK too. There is currently some confusion around if customers can adopt individual controllers and splitting the repos may make that more clear.

Yup. Though, to be clear, the installation instructions will continue to be the same. There will be a single ECR repo for the controller images (all of them) and the Helm charts (all of them), and the naming scheme for those images and charts will continue to be $SERVICE-$RELEASE_VERSION like they are now. However, the source code for the different controllers will be in different source code repositories and be able to have their $RELEASE_VERSION increment at their own pace.

I also agree we should probably use a less populated org for the controllers although I don't think I like having an org just for ACK. Maybe use aws-containers org because there isn't as much there. At the org level you can also set repo templates which can greatly help onboard new services/teams and set initial repo structure.

@A-Hilaly was kind enough to grab the aws-controllers-k8s GH org, and we've submitted a ticket internally with the open source team at AWS to move it under AWS GH management long-term. For now, Amine and I are administering it.

We should also make sure that documentation is centralized for static site generation and SEO. Each controller can have a specific README for things like IAM examples, but there should also be a docs repo that all teams contribute to for how customers can install their controllers.

Completely agreed.

I think splitting will help customers with confusion on how they adopt ACK too. There is currently some confusion around if customers can adopt individual controllers and splitting the repos may make that more clear.

Yup. Though, to be clear, the installation instructions will continue to be the same. There will be a single ECR repo for the controller images (all of them) and the Helm charts (all of them), and the naming scheme for those images and charts will continue to be $SERVICE-$RELEASE_VERSION like they are now. However, the source code for the different controllers will be in different source code repositories and be able to have their $RELEASE_VERSION increment at their own pace.

I also agree we should probably use a less populated org for the controllers although I don't think I like having an org just for ACK. Maybe use aws-containers org because there isn't as much there. At the org level you can also set repo templates which can greatly help onboard new services/teams and set initial repo structure.

@A-Hilaly was kind enough to grab the aws-controllers-k8s GH org, and we've submitted a ticket internally with the open source team at AWS to move it under AWS GH management long-term. For now, Amine and I are administering it.

We should also make sure that documentation is centralized for static site generation and SEO. Each controller can have a specific README for things like IAM examples, but there should also be a docs repo that all teams contribute to for how customers can install their controllers.

Completely agreed.

All service controllers have now been separated into the own source repositories: https://github.com/aws-controllers-k8s. So has the ACK code generator. In the morning I will push a PR to the main aws/aws-controllers-k8s repository that removes the individual service controllers and the code generator and adapts our test and build scripts to correspond to the new separated repo layout.
Note that I have disabled Issues, Projects and Wiki on all the separate repos. We will continue to use the github.com/aws/aws-controllers-k8s repository for docs, issues, projects, etc.
Note also that we are not changing our single Image and Helm chart repository at https://gallery.ecr.aws/aws-controllers-k8s/controller and https://gallery.ecr.aws/aws-controllers-k8s/chart, respectively.

All service controllers have now been separated into the own source repositories: https://github.com/aws-controllers-k8s. So has the ACK code generator. In the morning I will push a PR to the main aws/aws-controllers-k8s repository that removes the individual service controllers and the code generator and adapts our test and build scripts to correspond to the new separated repo layout.
Note that I have disabled Issues, Projects and Wiki on all the separate repos. We will continue to use the github.com/aws/aws-controllers-k8s repository for docs, issues, projects, etc.
Note also that we are not changing our single Image and Helm chart repository at https://gallery.ecr.aws/aws-controllers-k8s/controller and https://gallery.ecr.aws/aws-controllers-k8s/chart, respectively.


I am calling viewGet:success:failure, and the success/failure blocks are never called. I can see some of what's going on, and I think it's an issue within DIOSSession.
When viewGet:success:failure calls sendRequestWithPath:method:params:success:failure:, [self systemConnected] is NO for the DIOSSession object. Therefore, tryOperationAgainAfterSystemConnect: is scheduled on a timer (line 271 of DIOSSession.m).
When tryOperationAgainAfterSystemConnect: is called, [self systemConnected] is still NO, meaning that it will keep trying agin, and again, and again.
There should be a limit on the number of times this function can be called for a given timer, and when that limit is reached, the failure block is called with an appropriate error.

Interesting. I like the sound of this, Im wondering why its not timing out though :-1:

I'm finding some other possibly related issues. Not sure if I should create another issues or keep all of the discussion here.
When I call systemConnectwithSuccess:success:failure, I also am not getting any success or failure blocks called. Looking at that function, it's pretty clear that the failure block is not used anywhere. I would expect it to be called on line 60, in getCSRFTokenWithSuccess:failure.
So it seems to not be succeeding on the CSRF token, but I haven't dug in too much yet. After it doesn't succeed there, the session's systemConnected is forever set to NO, which causes these infinite timer loops that I mentioned before.
I'm using V2.1.5 of the SDK, by the way.

Both of the issues I've stated here are fixed in my pull request.


Performance of parallel iterators

I have implemented a Gram Schmidt orthonormalization using ndarray-parallel, but it looks like the implementation's performance had not improved at all. See the benches in https://github.com/SuperFluffy/gram_schmidt/tree/parallel.
The parallelization only happens at one point: https://github.com/SuperFluffy/gram_schmidt/blob/parallel/src/parallel.rs#L58, and for comparison this is the equivalent sequential implementation https://github.com/SuperFluffy/gram_schmidt/blob/parallel/benches/projection_order.rs#L35 (note, the sequential version in the library itself is a bit different, but this one is more amenable to parallelization). What this essentially does is take the vector v, calculate the scalar product c_i with every single row w_i in todo, and subtract c_i * v from each w_i.
When benchmarking this all cores will be completely occupied (4 in my case), but you don't actually win anything, in fact for a 1024x1024 matrix:
test parallel ... bench: 564,230,927 ns/iter (+/- 23,454,612)
test project_first ... bench: 590,426,518 ns/iter (+/- 2,687,991)
test project_late  ... bench: 496,520,833 ns/iter (+/- 34,034,300)

So this is pretty grim... Any idea where to start looking for the culprit? Is it the algorithm, rayon, or the parallel traits?

First thing, try switching to one thread per core (factor out hyperthreading).

That didn't really affect a lot (echo 0 > /sys/devices/system/cpu{1,3}/online):
test parallel ... bench: 515,717,385 ns/iter (+/- 7,367,157)
test parallel ... bench: 523,230,074 ns/iter (+/- 7,179,283)

Looks like disabling hyperthreading did something, but that is still not really cutting it. Is there a chance this could have something to do with the reference to the mutable view &v inside the for_each?

I was thinking of just changing the rayon configuration to use half as many threads (if applicable)
fn set_threads() {
    let n = max(1, num_cpus::get() / 2);
    let cfg = rayon::Configuration::new().set_num_threads(n);
    let _ = rayon::initialize(cfg);
}

I haven't looked so much at the code. If todo is row major (ndarray default), then the axis_iter_mut(Axis(0)) should split the array in the best way (largest stride) so that is not a problem.
Your zip_mut_with is identical to w.scaled_add(-projection_factor, &v) I think, but the difference is only syntactical (so far), they both use the same code.

todo is indeed row-major. I am wondering if there is a way of checking how many threads really run in parallel, i.e. to see if maybe they are all sitting in the pipeline and only get executed once another one is finished.

Oh yeah, we haven't experimented with rayon's weights. I don't remember what their current default is.
https://docs.rs/rayon/0.6.0/rayon/par_iter/trait.ParallelIterator.html#method.weight

In my understanding there's no invisible synchronization in rayon. As in, the content of the closure doesn't matter. If it compiles, the closure is compatible with fully concurrent execution.

The parallel speed-up is real! I suspect that the 1024x1024 on my laptop CPU might be too big for it to handle. I am going to run another test, but I think it might be too much for its cache, killing the parallel performance. On the other hand, a bigger Xeon is quite happy. :-)
Also, Hyperthreading is abysmal and absolutely destroys performance.
Some more tests:
running 3 tests (with hyperthreading)
test parallel__512                 ... bench: 183,319,334 ns/iter (+/- 51,300,917)

Compare that to running it with only two cores, rayon::Configuration::new().set_num_threads(2); (my CPU has 2 physical and 2 virtual cores):
running 3 tests (without hyperthreading)
test parallel__512                 ... bench:  44,777,137 ns/iter (+/- 1,100,552)
test sequential_project_first__512 ... bench:  57,287,434 ns/iter (+/- 849,670)
test sequential_project_late__512  ... bench:  53,621,839 ns/iter (+/- 4,448,999)

And this is on a machine with 4 physical + 4 virtual cores; with hyperthreading:
test parallel_1024                 ... bench: 816,116,270 ns/iter (+/- 130,648,374)

And without:
test parallel_1024                 ... bench: 111,277,148 ns/iter (+/- 20,056,107)
test sequential_project_first_1024 ... bench: 309,413,420 ns/iter (+/- 390,392)
test sequential_project_late_1024  ... bench: 287,684,200 ns/iter (+/- 189,023)

Some more points for my machine (i7-5500u):
test parallel__256                 ... bench:   7,571,569 ns/iter (+/- 228,483)
test sequential_project_first__256 ... bench:   6,490,139 ns/iter (+/- 50,626)
test sequential_project_late__256  ... bench:   6,128,571 ns/iter (+/- 18,853)

test parallel__512                 ... bench:  43,729,553 ns/iter (+/- 3,336,385)
test sequential_project_first__512 ... bench:  54,399,086 ns/iter (+/- 615,809)
test sequential_project_late__512  ... bench:  50,385,446 ns/iter (+/- 400,944)

test parallel__768                 ... bench: 144,790,421 ns/iter (+/- 7,424,019)
test sequential_project_first__768 ... bench: 189,654,592 ns/iter (+/- 1,191,695)
test sequential_project_late__768  ... bench: 175,880,194 ns/iter (+/- 1,499,359)

test parallel_1024                 ... bench: 540,548,667 ns/iter (+/- 3,886,780)
test sequential_project_first_1024 ... bench: 607,676,927 ns/iter (+/- 11,712,223)
test sequential_project_late_1024  ... bench: 514,475,091 ns/iter (+/- 6,418,569)

So as we can see there is a speedup, but for 256x256 the matrices are most likely too small for parallelization to matter, and for 1024x1024 I suspect that the matrices get too big for my processors cache.
Note: sequential_project_first_* is the sequential version of parallel_*.


Switch toggle on S31 smart plugs not working

After 2024.1.0 the toggle function is not working properly for my Wi-Fi smart plugs S31.  Happy New Year and thanks.

try this fix https://github.com/AlexxIT/SonoffLAN/issues/1288#issuecomment-1876688902

try this fix #1288 (comment)

This resolved the toggle issue for me. Thanks

Please close the issue :+1:

#1285

The fix worked. Thank you all for the great support you provided me!


Can you please provide the implementation for training a predictive reranking model?

I only found information about zero-shot reranking and oracle experiments in the documentation, but there seems to be no configuration provided for training a reranking model. I would like to train a reranking model to compare its performance with the zero-shot approach.

+1

Thanks for reaching out!
The repo currently doesn't support training a reranking model.
I'll be happy to assist in implementation if it's relevant.


Implement new difficulty & performance system (29.09.2022)

Done in the new major version of osu-taiko-stable


added Long bone and Curved bone to prayer

Description:

added Long bone and Curved bone to prayer

Changes:

added Long bone and Curved bone to prayer

Other checks:

[X] I have tested all my changes thoroughly.

What is the purpose/reason for this?

Its a missing option/feature from osrs. Divine waters also use this array list in bso and it was requested to add these to the divine water list

This would put long and curved bones twice in /offer with two different meanings

This would put long and curved bones twice in /offer with two different meanings

This wouldn't be the case,
offerables under offer.ts is a set so it will only list long and curved bone once. long and curved bone are also listed under specialBones and are handled first.

Can you check that its not the case? My worry is just that people will accidentally offer/bury these bones, and theres literally no purpose ever for this in OSB. If someone comes along and accidentally does a /bury trip of all their saved up long bones, they wont be happy. So maybe its better off just in bso.

Can you check that its not the case? My worry is just that people will accidentally offer/bury these bones, and theres literally no purpose ever for this in OSB. If someone comes along and accidentally does a /bury trip of all their saved up long bones, they wont be happy. So maybe its better off just in bso.

I tested it and my comment above is correct, but you do bring up a good point. It might be more beneficial to just add to the divine water array manually in bso rather than this approach.

With no response from the creator, and it seeming like this is only for BSO, im closing this PR. As jonesey said, if this is only for BSO, it should be PR'd in a way to bso.


[BACKPORT-2.1][SPARK-19372][SQL] Fix throwing a Java exception at df.fliter() due to 64KB bytecode size limit

What changes were proposed in this pull request?
This PR is backport of #17087 to Spark 2.1
How was this patch tested?
Add a test suite into DataFrameSuite

Can one of the admins verify this patch?

Looking back at this.  I simply cherry picked the commit from the branch, there appears to be more to this backport.

This might be too risky to be merged to 2.1.1.

@kiszk , I updated the PR to remove the prunePartionsByFilter bit.  Please let me know now.

@poplav it looks good
@gatorsmile Do you think it is ok for backport now? The previous commit included unnecessary changes.

@poplav This is not a regression from 2.0, right?
Since we might not release 2.1.2, this PR might not be merged to upstream after a discussion with @zsxwing Maybe you can patch it in your private build.

Was this working in 2.0 in the first place?  I want to get this into 2.1.1

You can patch it to your forked version.

@poplav were you able to patch this PR and build successfully on top of 2.1.1 ?

@pmishr1 Yeah it worked this PR/branch needs one more commit that is at https://github.com/poplav/spark/commit/48ea442ea670cc612b91ad037b223750aa70b918.  I would update this PR with that commit, but doesn't look like this is going anywhere

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Gentle ping, @poplav .

Ping, @poplav .

Was away on vacation.  Closing PR, thanks.

Thank you, @poplav ! :D


Nearby is turned off, Chrome is not giving PW notification.

I am on a Nexus 5, my colleague is having the same issue.
Any suggestions>?

+1

Jeff Prestes

Em 2 de ago de 2016 1:06 PM, "LaurenLeavitt"<EMAIL_ADDRESS>escreveu:

I have Nearby Discoveries turn off, Physical Web in Chrome turned on,
Chrome Notifications turned on and I am still not seeing Physical Web
Chrome Notification.
I am on a Nexus 5, my colleague is having the same issue.
Any suggestions>?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/physical-web/issues/757, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgjWdleO64NeR9lzgiT4rG7T8Xxz0jRks5qb2sggaJpZM4Jaxu9
.

This is WAI for the moment.  If someone turns off Nearby, we assume they don't want to see notifications for the Physical Web, and thus we do not show Chrome notifications.  I know it's not perfect.  We are still trying to figure out how multiple notification-based clients are supposed to interact.

Okay, thanks for that info.
Trying to have a better grasp on what consumers should expect.
Since Chrome will work more widely than Nearby, what should users without Nearby expect? Will Android Chrome users still get a notification when coming in contact with a Eddystone-URL beacon for the first time?

If Nearby is not on the device, Chrome will send a notification (when it's in a state where it has location permission, a location provider, BT is turned on, and a beacon is around).

@LaurenLeavitt If by "widely" you mean in terms of penetration it might not be the case. Google Play is on about 1.5bn Android phones, 78.5% of that is 4.4+ so that's close to 1.2bn phones. Chrome had a total of 1bn MAU on iOS+Android, in April, about 850 million of that is on Android.

@ferencbrachmann Scott Jenson had made the comment about Chrome working more "widely" than Nearby so I was just referencing that. But he made further clarification here: https://github.com/google/physical-web/issues/696
Thanks for the info. though!


core: add SystemImpl::make_command_ack_message() method

This adds a make_command_ack_message() method to reduce boilerplate code for responding to commands.

Awesome, thanks @dlech! I didn't have time to review and get this into the release that I'm now making, but next one!

The mac/ios CI issues seem unrelated, I just re-ran them, if they fail again I'll merge anyway.


[BUG] : Deleting any item from an ArrayLayoutWidget wrongfully pops the last inserted item.

As the title says, deleting a random item from an ArrayLayoutWidget pops the last inserted item from the form.
Although in the model representation of the form the correct item is deleted from the array, on the actual form the last inserted array item is removed.
Reproduction steps
In the demo :

Add 2 or more colors in the "Colors" array
Remove whichever color array item you like (preferably not the last)
Model representation is correct, the form is not

Update
I have managed to pinpoint that the bug occurs when there is a trackBy method on the ngFor that is used to display the formProperty.properties of an ArrayLayoutWidget.
My guess would be that the DOM is not updated properly because if a trackBy method, that just returns the index of each item such as this :
  trackByIndex(index: number, item: any) {
    return index;
}

from here is used, then the only DOM update will occur on the index that is missing (meaning the last one).

As long as there is no bugfix, the following workaround could help: https://github.com/makinacorpus/ngx-schema-form/issues/206

As long as there is no bugfix, the following workaround could help: #206

Yup, its the same issue. I fixed mine by using this trackBy method:
  trackByIndex(index: number, item: any) {
    return item;
  }

Namely, it returns the array item object reference as a tracking value for the trackBy method. When an item is deleted then the object reference is changed thus the trackBy method reports the change and both the view and the model are updated.
In this accepted answer is explained in a few words how a trackBy method works.
Despite this, I do not know if returning the object reference is a good bugfix. What's your take on this?


ModuleNotFoundError: No module named 'bluetooth.linux'

First of all, thanks for your effort to allow programming the Lego Hub on Linux!
This is what happens when I run python3 run_command.py ls:
$ python3 run_command.py ls
Traceback (most recent call last):
  File "/home/ppalaga/orgs/python/lego-hub-tk/run_command.py", line 17, in <module>
    from comm.HubClient import ConnectionState, HubClient
  File "/home/ppalaga/orgs/python/lego-hub-tk/comm/HubClient.py", line 5, in <module>
    from comm.MultiplexedConnectionMonitor import MultiplexedConnectionMonitor
  File "/home/ppalaga/orgs/python/lego-hub-tk/comm/MultiplexedConnectionMonitor.py", line 2, in <module>
    from comm.BluetoothConnectionMonitor import BluetoothConnectionMonitor
  File "/home/ppalaga/orgs/python/lego-hub-tk/comm/BluetoothConnectionMonitor.py", line 4, in <module>
    import bluetooth
  File "/home/ppalaga/.local/lib/python3.9/site-packages/bluetooth/__init__.py", line 18, in <module>
    from bluetooth.linux import *
ModuleNotFoundError: No module named 'bluetooth.linux'

I have installed the prerequisites via pip3 install -r requirements.txt before running run_command.py ls.
I am quite new to Python and pip, maybe I am missing something basic.
I am on Fedora 34.

Hi Peter!
On Tuesday, December 28, 2021 9:56:34 A.M. CST Peter Palaga wrote:

File "/home/ppalaga/.local/lib/python3.9/site-packages/bluetooth/
init.py",
line 18, in  from bluetooth.linux import *
ModuleNotFoundError: No module named 'bluetooth.linux'

I have installed the prerequisites via `pip3 install -r requirements.txt`
before running `run_command.py ls`. I am quite new to Python and pip, maybe
I am missing something basic.

I don't think you are missing anything.  I looked at line 18 in the file
mentioned above and on my system it does NOT read "from bluetooth.linux import
*".  My hunch is that you have a different version of the file than I do.
I have not updated this stuff in months.
My copy of "bluetooth/init.py" has a line that reads:
version = 0.41
What version is in your file?
Thanks,
-Steve

Thanks Steve, that helped! I had pybluez2 0.44. I did the following to make it work:
pip uninstall pybluez2
pip install 'pybluez2==0.41'


Router

@daveismyname I haven't tested on php 7 since august, 2015.  I got a chance to test today, the new Router (all since  #175 @volter9 pr) doesn't work on php 7.  Could you dig into the code of the router and find out why?  All was working in php 7.0.0RC1 after the @volter9 #175 PR.  So far it seems to be the only issue, because when I replaced the new router with that one it worked. Otherwise all I get is a blank screen.

@daveismyname sorry, false alarm, in the backup router I had namespace Core commented out, I un-commited and new routers work.  Sorry for any confusion.

@volter9 will get a laugh out of it.

:smile: