优化Picker、DatePicker组件以及完善相应文档

Coverage decreased (-0.4%) to 64.466% when pulling 583eaa8dfc760b1067c4067271f183fd9de2f781 on edison-hm:dev-ts into 9060abf0d33198b8d0c36e235c2dfe4cb4a73208 on ZhonganTechENG:dev-ts.


Clicks pass through to widgets behind context menu

Describe the bug
When clicking on the context menu items, the items behind it get clicked too
Expected behavior
Press events should not affect widgets behind, e.g if the context menu is over a text input, then the text input should not get the focus

I add below method to my major application menu - class inherited from AppMenu.
    def collide_point(self, x, y):
        for item in self.walk():
            try:
                submenu = item.get_submenu()
                if submenu.visible and submenu.self_or_submenu_collide_with_point(x, y):
                    return True
            except:
                pass
        return super().collide_point(x, y)

This helps me, when context menu is rolled up from AppMenu.


Scope 'move up/down' keybindings to sln explorer only

Fixes #417
Before, Alt-Up/Down hijacked by F# when Find/Replace dialog open:

After, Find/Replace gets to handle the key events:

Looks great, Ship IT!!


Add timezone grid caching to CLI (#17)

I've gone ahead and implemented the changes described in Galen's comment. The only notable change in behaviour is that now, by default, find_sun and find will attempt to read from timezone_grid.json (even if no --grid argument is passed). If this is unwanted, I can change it back, I just thought it would be a good default.
While testing, I found that finder.generate_timezone_grid() generates a JSON file that doesn't match the timezone_grid.json currently in this repo... is that intentional? Also, shadowfinder generate_timezone_grid will overwrite the file it's given — should that be changed?

finder.generate_timezone_grid() generates a JSON file that doesn't match the timezone_grid.json currently in this repo

This isn't intentional, and is probably not desired either! The behaviour is controlled by these defaults: https://github.com/bellingcat/ShadowFinder/blob/e5f636b3f4496ffd77cdc597380d3a531b71f019/src/shadowfinder/shadowfinder.py#L36-L40
It would be good to understand why this is happening

I've just checked a lot more thoroughly (before, I was just looking at files changed, now I ran it through diffchecker.com) — the only difference is a trailing newline is removed. Sorry about that! I've also updated the tests so the reflect the new output.

I've just checked a lot more thoroughly (before, I was just looking at files changed, now I ran it through diffchecker.com) — the only difference is a trailing newline is removed. Sorry about that! I've also updated the tests so the reflect the new output.

No worries at all, better for it to be a newline than an entirely different set of points! So thank you for noticing the difference and double checking!

One small thing, find_sun needs updating to include the grid argument.

...oops. I've fixed it now, I think. Would it be a good idea to add the modified timezone_grid.json to Git (and, I think, disable the pre-commit formatting for it)?

bump. Anything else that needs to be fixed?

This all looks good - apologies about the delay, and thanks for the bump! 🙌


feat(react-ui): confirmation modals

This adds a useConfirmationDialog hook to deal with confirmations in the app.
It's a hook in the application and not a UI component since modals need to be handled by the host application - when embedded in Syndesis for example there will be Syndesis's way to deal with modals. The same decoupling will have to be implemented when we'll add notifications support.

Note that the delete document dialog isn't actually deleting anything, but the logic to deal with the delete is there (see the useRef and how it's used in the onConfirm callback).


Remove Sidekiq and Sinatra dependencies

Remove Sidekiq (and redis) and sinatra, which was not used at all.

Similar to https://github.com/ministryofjustice/prison-visits-public/pull/20


Discuss about improving Library Overview chapter layout and content

🐞 Improve Library Overview chapter
Although the Library Overview chapter holds various sections, those are not deeply explained. In addition, there are "duplicated" explanations/guidelines which could be collected under common sections or files.
💡 Solutions to be discussed
Here are some proposed solutions to unify some of the concepts presented in the chapter:

[ ] Unify required files and packaging sections
The Library Overview chapter contains "duplicated explanations". As an example, the Setup File, README File and License File sections are referenced in the Packaging one under the Required Files subsection. The Packaging guidelines are being updated in #44, so this is blocked before those changes are merged.

[ ] Unify library, project and repository sections
In addition to previous situation, Library Structure section, Project, Repository, and Library Names section, and Repository Directory Structure are a bit similar. What if we combined those into a "Project Repository" section were properly listing out main differences across a library, project and a repository.

[ ] Add references to ansys-templates
The ansys-templates tool supports inheritance and is deep tested, increasing the stability of the tool. References to ansys-templates tool must be done in the Library Template section. The guidelines and the ansys-templates must be compliant regarding the minimum required files to setup a Python Package.

#44 is merged, please proceed with unifying the required files and packaging sections. Let's shoot for poetry for now, but also mention that setup.py with setuptools is also an option.


Inconsistent Invocation passed into noSuchMethod calls when in abstract method overrides.

For the following test snippet:
class Cat {
  String scratch(String furniture) => 'purr';
}

class MockCat implements Cat {
  dynamic noSuchMethod(Invocation invocation) {
  }
}

class MockCat2 extends MockCat implements Cat {
  String scratch(String furniture, [String furniture2 = "blah"]);

  dynamic noSuchMethod(Invocation invocation) {
    print(invocation.positionalArguments);
  }
}

void main() {
  var mock = new MockCat2();
  mock.scratch("chair");
}

DDC outputs: [chair, blah]
While the VM and DDK output: '[chair]'
Is there expected behavior defined for this case? DDC "failing to invoke" the overridden scratch method seems more obvious to me.

The interface of MockCat2 contains the member signature String scratch(String, [String = "blah"]) and that's the basis for the generation of a noSuchMethod forwarder. The Invocation is created based on the signature, not on the call. So DDC is right.

The issues comes from extending MockCat. If you remove the extends MockCat from the MockCat2 declaration, the issue goes away.
It might be that the existence of a noSuchMethod forwarder in the superclass which confuses the front-end. There is a forwarder in MockCat2, though, because MockCat2().scratch("a", "b") is successful.


Unify on ${CONTAINER_ENGINE} usage

Also force removal of previous ${IMAGE} when possible to reduce
likelihood of stale index image usage
Signed-off-by: arewm<EMAIL_ADDRESS>

Trying to run it with podman, looks like this PR should add docker.io/ to fully specify the path here:
https://github.com/operator-framework/index-mermaid-graph/pull/10/commits/8147c0361a17c0b8fc7743d77d5420a149c983fc#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R40

podman must not be specifying volumes in the exact same way as docker, like here:
https://github.com/operator-framework/index-mermaid-graph/pull/10/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R43
so -v /tmp/mermaid.mer:/mermaid.mer is not working with podman run vs. succeeding with docker run.
Error looks like this:
Error: statfs /tmp/mermaid.mer: no such file or directory

podman must not be specifying volumes in the exact same way as docker, like here: https://github.com/operator-framework/index-mermaid-graph/pull/10/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R43
so -v /tmp/mermaid.mer:/mermaid.mer is not working with podman run vs. succeeding with docker run.
Error looks like this: Error: statfs /tmp/mermaid.mer: no such file or directory

This is still a problem for the podman run, only verified on Mac OS, is it not happening on Linux?

Yes, it works on rhel. It will not be able to work on OSX without additional work locally which is why I added the note/disclaimer to the README.
[me@me-rhel ~]$ git clone git@github.com:arewm/index-mermaid-graph.git && cd index-mermaid-graph
Cloning into 'index-mermaid-graph'...
Warning: Permanently added 'github.com,<IP_ADDRESS>' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 139, done.
remote: Counting objects: 100% (139/139), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 139 (delta 79), reused 91 (delta 41), pack-reused 0
Receiving objects: 100% (139/139), 26.49 MiB | 9.21 MiB/s, done.
Resolving deltas: 100% (79/79), done.
[me@me-rhel index-mermaid-graph]$ export INDEX_DB_PATH_AND_NAME=olm_catalog_indexes/index.db.4.8.redhat-operators
[me@me-rhel index-mermaid-graph]$ export IMAGE=registry.redhat.io/redhat/redhat-operator-index:v4.8
[me@me-rhel index-mermaid-graph]$ export REGISTRY_REDHAT_IO_USER=$RH_REGISTRY_CATALOG_USER
[me@me-rhel index-mermaid-graph]$ export REGISTRY_REDHAT_IO_PASS=$RH_REGISTRY_CATALOG_PASS
[me@me-rhel index-mermaid-graph]$ export CONTAINER_ENGINE=podman
[me@me-rhel index-mermaid-graph]$ rm -f /tmp/mermaid.mer.svg
[me@me-rhel index-mermaid-graph]$ make get-index && make run ARGS=gatekeeper-operator-product
podman login registry.redhat.io
Authenticating with existing credentials...
Existing credentials are valid. Already logged in to registry.redhat.io
Checking for and outdated registry.redhat.io/redhat/redhat-operator-index:v4.8 against the registry with user arewm.
podman run --rm --entrypoint cat registry.redhat.io/redhat/redhat-operator-index:v4.8 /database/index.db > \
olm_catalog_indexes/index.db.4.8.redhat-operators
WARN[0000] error mounting subscriptions, skipping entry in /usr/share/containers/mounts.conf: getting host subscription data: failed to read subscriptions from "/usr/share/rhel/secrets": open /usr/share/rhel/secrets/rhsm/rhsm.conf: permission denied
go build -o bin/olm-mermaid-graph ./
sed 's+olm_catalog_indexes/index.db.4.6.redhat-operators+olm_catalog_indexes/index.db.4.8.redhat-operators+' sqlite3.sql > sqlite3_exec.sql
cp /home/amcnamar/index-mermaid-graph/config.json /tmp/config.json
sqlite3 -bail -init sqlite3_exec.sql 2>/dev/null | bin/olm-mermaid-graph gatekeeper-operator-product 1>mermaid.mer
cp /home/amcnamar/index-mermaid-graph/mermaid.mer /tmp/mermaid.mer
touch /tmp/mermaid.mer.svg
chmod o+w /tmp/mermaid.mer.svg
podman pull docker.io/minlag/mermaid-cli
Trying to pull docker.io/minlag/mermaid-cli:latest...
Getting image source signatures
Copying blob 1d78296bc5e6 skipped: already exists
Copying blob e51254093da7 skipped: already exists
Copying blob f23117692f68 skipped: already exists
Copying blob 5dd0ef646a8a skipped: already exists
Copying blob eff15d958d66 skipped: already exists
Copying blob 42b21b5cd439 skipped: already exists
Copying blob 7e585a53998a skipped: already exists
Copying blob 609aa23de469 skipped: already exists
Copying blob a881e57b3350 [--------------------------------------] 0.0b / 0.0b
Copying blob c36bb9591c26 [--------------------------------------] 0.0b / 0.0b
Copying blob 1da44a18f4ca [--------------------------------------] 0.0b / 0.0b
Copying blob e75762fb58db [--------------------------------------] 0.0b / 0.0b
Copying config 6f6c486f46 done
Writing manifest to image destination
Storing signatures
6f6c486f465d633e7c6cbd3e369770821d2c3229e2d8b22d74e00451f364323e
podman run \
	--privileged \
	-v /tmp/mermaid.mer:/mermaid.mer \
	-v /tmp/mermaid.mer.svg:/tmp/mermaid.mer.svg \
	-v /tmp/config.json:/config.json \
	-v /tmp:/app/.cache/yarn \
	-it \
	docker.io/minlag/mermaid-cli:latest \
	-c /config.json -i /mermaid.mer -o /tmp/mermaid.mer.svg
WARN[0000] error mounting subscriptions, skipping entry in /usr/share/containers/mounts.conf: getting host subscription data: failed to read subscriptions from "/usr/share/rhel/secrets": open /usr/share/rhel/secrets/rhsm/rhsm.conf: permission denied
Generating single mermaid chart
echo "output svg file is /tmp/mermaid.mer.svg"
output svg file is /tmp/mermaid.mer.svg
[me@me-rhel index-mermaid-graph]$ ls -la /tmp/mermaid.mer.svg
-rw-rw-rw-. 1 amcnamar amcnamar 12990 Nov 22 21:06 /tmp/mermaid.mer.svg

/approve

@gallettilance we can merge this (if you can?). We've identified a diff in MacOS podman versus docker in volume mount specification.


Meeting Notes

19 Oct.

@thala321 :

Run a node (blockchain / gateway / dns) with terraform
Meeting with the designer to discuss FE logic

@baysao :

Lua / Rust lib to handle requests and generate stats
Write tests
Meeting with the designer to discuss FE logic

We don't track daily task for MassbitRoute anymore


Possible Effort Datasets

Paper link: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6624059
Refer to page 435 , they refer 2 datasets in section E, ERA and SEC both by companies from Japan. Was unable to find them on the internet. You could mail the authors asking more information

#387

emails sent to authors looking for data (may1). lets see what happens.

reply: Hi Tim,
The ERA and SEC data were not our data. We used CSBSG data which was under NDI between my former employer and SPI China, the organization who collected the data. Sorry!


RTL Nav Bug

I'm unsure as to whether this is a bug or as intended (I'm new to working with RTL).
When using custom navNext and navPrev elements and isRTL the icons appear to be incorrectly ordered due to the login https://github.com/airbnb/react-dates/blob/master/src/components/DayPickerNavigation.jsx#L62-L96
<DayPicker
  date={datetime || moment()}
  onDateChange={this.onDateChange}
  numberOfMonths={1}
  hideKeyboardShortcutsPanel
  enableOutsideDays
  isOutsideRange={isOutsideRange}
  navPrev={<Icon name={'chevron-left'} />}
  navNext={<Icon name={'chevron-right'} />}
  isRTL
/>

Results in:

I'm not sure if this is intended or not but my workaround is currently (using dynamically changed isRTL):
navPrev={<Icon name={isRTL ? 'chevron-right' : 'chevron-left'} />}
navNext={<Icon name={isRTL ? 'chevron-left' : 'chevron-right'} />}
isRTL={isRTL}

I've tested this on 12.7.0, I can't try it on 13.x versions yet as we use sass not inline styles and I don't have the time to figure out how to implement the new themeing system (doesn't seem hard just quite a bit time consuming).

HI @SimeonC, this is not a bug.
The reason that this is not a problem with the default navigation is that we do this flipping for you (see https://github.com/airbnb/react-dates/blob/master/src/components/DayPickerNavigation.jsx#L69-L71 and https://github.com/airbnb/react-dates/blob/master/src/components/DayPickerNavigation.jsx#L85-L87).
We do not do this for a custom icon because that's not an assumption we can make. If you are going right-to-left, your next icon to point to the left. If you are in a left-to-right context, your next icon should point to the right, so your workaround is actually the solution.


Feature add popin example

[Popin] Add Popin to showcase
Description
Adding the popin component to the showcase by referencing it in the "package.json"

I think you need a rebase, the second commit is a merge commit, which shouldn't exist :)


fix(whatInput): cleanup previously added event listeners

Fixes https://github.com/microsoft/fluent-ui-react/issues/2109
Counting on target[whatInputInitialized] the number of Providers requesting to setup the custom-target whatInput.
To cleanup, in Provider componentWillUnmount we will attempt to remove listeners. If there are still Providers running (target[whatInputInitialized] > 1) then we will decrement that value. If it's the last one, then we perform cleanup.
Extra:

in whatInput.ts I changed useCapture with capture (line 92). According to the docs that is the correct property if we pass the information inside the options object params.

To Do:

add test to check cleanup is performed.

Microsoft Reviewers: Open in CodeFlow

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS


Add cancelSet flag HtlcModify interface

Description
Adds a new flag to HtlcModifyResponse which signals whether the HTLCs associated with the invoice should be cancelled.

This will be opened against master
Then Oli will include in the cherry pick

Changed the branch to master, needs a rebase now.

Done! :heavy_check_mark:


Could Not Login to Dyson

Im on a Dyson DP04 and after restarting my HOOBS system its given me this error. I’ve restarted, uninstalled, done everything I could thing of and nothing seems to help.
[DysonPlatform] Could not login to Dyson   [DysonPlatform] Missing password for device with serial number VV6-US-NGA1462A, devices found on your account:

I had the same problem and found a remedy that worked, for me and others.
Log out of the Dyson iOS app and back in. Following that, restart your Homebridge server.


Internal tags not all displayed in admin panel

Issue Summary
It is possible to create multiple internal tags with the same name, via minor unintended abuse of the Admin API.  These tags get a -2 appended to them, for example hash-firsttag if accidentally duplicated becomes hash-firsttag-2 (and then hash-firsttag-2-2 if one makes the same API error repeatedly).
Visiting /ghost/#/tags/ shows only the original hash-firsttag tag, with the posts that have that tag listed.  It does not display the additional -2 and -2-2 versions of the tag, making it difficult to see the problem and delete the extra tags.  Given that themes use internal tags for a variety of unexpected purposes, this can cause breakages in weird places.
Steps to Reproduce
see above.
Ghost Version
Ghost Pro
Node.js Version
Ghost Pro
How did you install Ghost?
Ghost Pro
Database type
MySQL 8
Browser & OS version
Chrome, windows 10, recent.
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

I could work on this


Update Go version

The jump to 1.21 makes things a tad faster, without breaking anything (all tests passed etc.)

Thanks but that’s already done in the dev branch


messages

Subject: messages
Description:
sent messages
Results:
i'm not sure if it's a bug, but rather an inconvenient feature. after getting denied for a couch request, the messaging system shuts off, so i can't write back to say "thanks for writing back" or whatever. also, when being approved, but the request has expired, i can't write back to follow up. also, when messaging, after sending one message, i can't send another, so if i don't say everything i wanted to before i push ENTER, then i'm stuck with that, and can't finish the message. it would be much more convenient if all messages would follow one thread, whether requesting a couch, or jjust chatting, cuz sometimes doing one, can lead to the other. thanks
Backend version: develop-7979aff3
Frontend version: develop-7979aff3
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Page: https://app.couchers.org/
User: just_ranger (2156)

Can we enable messaging even if the person declines the request? This problem has come up several times, and there is little risk to allowing messaging even after the request has been declined. If we need a time limit, we could allow messaging on the request for up to 7 days after the request has ended.


Error filling in template 'dea.yml.erb' (line 95: bad component(expected user component)

Could anyone help me on this?
Error 100: Unable to render instance groups for deployment. Errors are:

Unable to render jobs for instance group 'runner_z1'. Errors are:

Unable to render templates for job 'dea_next'. Errors are:

Error filling in template 'dea.yml.erb' (line 95: bad component(expected user component):

hey @cpraveen412.

it would be nice if you tell what version of cf-release do you use. it would be also helpful if you provide your deployment manifest properties.
not long ago cf-release was decoupled in several different releases. dea.yml.erb is placed to cloudfoundry/dea-hm-workspace release, this project seems a better place to create this issue (imho).
could you check if your cc.internal_api_user and cc.internal_api_password properties are correct?

@cpraveen412 Looks like your internal_api_password has chars that are not allowed for basic auth:
> require 'uri'
> u = URI.parse("http://cloud-controller-ng.service.cf.internal:")
> u.userinfo = "blah:%"
URI::InvalidComponentError: bad component(expected user component): %

Yes I used "@" in the password. I changed it and started deploying without error.
Thank you


Fix scrollbars

This solution is based on NeoSpb's (see #12). Yet simpler and more flexible I think.
I haven't thoroughly tested this but it should work and you should get the idea. :smile:

I finally had some time to review the things. As I see, you still don't need to use reflections nor custom classes. Calling getListView().scrollBy(0, 0) in onResume() does the same thing. Quoting from the description of awakenScrollBars():

This method is automatically invoked by scrollBy(int, int) and scrollTo(int, int).

 I've updated it now.

I wish we could just enable vertical scrollbars from code instead of using custom styles for that. I was trying to debug the process of initializing scrollbars in a View because calling certain methods seems to do the same thing as declaring scrollbars="vertical" in the layout (or in the styles in our case), but no luck so far...

If I remember correctly, it's easier to disable scrollbars than enable them in code because of a bug.

http://gph.is/2csjxsu

Is this really needed? Even the settings in Android has no scrollbars (at least on my HTC).

@Gericop There is one on my Lineage OS 14.1.

Checked this, the Java modification is not needed anymore, the scrollbars automatically show up and fade away with the XML only. If I can create a solution such that the scrollbars can be turned on / off with a single XML attribute, I'll add it to the styles.

I don't think it hurts to have a scrollbar.

I would like to have a scrollbar too, Settings on Android 8.0 (Nexus 5X) has a scrollbar.

Scrollbars enabled in v<IP_ADDRESS>


Staying connected.

How are you supposed to stay connected? I get disconnected up 10-15 times a day sometimes.  It usually outputs something like
[Thu Aug 27 2015 04:40:10 GMT-0400 (EDT)] INFO Slack client closed.
How are others staying connected?

@coldlamper I'm using my forked version of hubot-slack which includes #215. It exists the entire hubot process if hubot-slack disconnects, and then I can use supervisor to auto-start the hubot process again.

Thanks for the idea.  Do you know why it disconnects so often?  I've tried it on multiple computers with different internet connections.  I wonder if there is a way to limit the number of disconnects?

+1
I'm also facing the same issue here (kills the hubot process after that):
bot_1 | [Tue Sep 01 2015 20:06:45 GMT+0000 (UTC)] ERROR Last pong is too old: 10.006
bot_1 | [Tue Sep 01 2015 20:06:45 GMT+0000 (UTC)] INFO Reconnecting in 1000ms
bot_1 | [Tue Sep 01 2015 20:06:46 GMT+0000 (UTC)] INFO Attempting reconnect
bot_1 | [Tue Sep 01 2015 20:06:46 GMT+0000 (UTC)] INFO Connecting...
bot_1 | [Tue Sep 01 2015 20:06:48 GMT+0000 (UTC)] INFO Slack client closed
Beside restarting it using an external tool, is there another solution?

I know it's not a solution to the problem, but I have been using a simple supervisor script to keep Hubot alive while using the Slack client.  Worth taking into consideration.

This is pretty crude and I got it from someone else but I don't remember where, but it seems to work pretty well.
#!/bin/bash
while true
do

# echo $$ > /var/run/hubot.pid
HUBOT_SLACK_TOKEN=xoxb-111111111-xxxxxxxxxxxxxxxxxxx ./bin/hubot --adapter slack

echo "If you want to completely stop the server process now, press Ctrl+C before
the time is up!"
echo "Rebooting in:"
for i in 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done

This is fixed in https://github.com/slackhq/hubot-slack/pull/309 which will take advantage of automatic ping and auto-reconnect behaviors exposed in node-slack-sdk.


Inital test of pandas 1.0.0rc0

Resolves #981
Change all the locations of the pandas version
Make import changes that changed in pandas (minor)

What do these changes do?

Related issue number

[x] passes flake8 modin
[x] passes black --check modin
[ ] tests added and passing

1.0.0 and 1.0.1 were released, we should test on that.


add scaledobject.spec.triggers.passowrd, fix bug #3600

Signed-off-by: XP<EMAIL_ADDRESS>
Provide a description of what has been changed
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO - learn more)
[ ] Tests have been added
[ ] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[ ] A PR is opened to update the documentation on (repo) (if applicable)
[ ] Changelog has been updated and is aligned with our changelog requirements

Fixes #

Relates to #

trigger  authentication and passwordFromEnv both support, but set the var password for which scene？the doc also confused me.

The docs that you are referring to is purely for TriggerAuthentication and not for trigger metadata.

Agreed with @tomkerkhove , TriggerAuthentication is the way, you can specify the environment variables as source if you want. Getting them from environment directly is good enough from security POV, but having passwords hard-coded in clear text shouldn't be an option IMO


React near feature parity

Fixes bugs, inconsistencies, and problems with React front end.

Looks promising! Let me know when this is ready for review, thanks!


[Question] Unable to add nodes & resources from other bare metal setup

Hi,
Currently I have a working k8s cluster setup with rancher and Harvester on my PC.
My management URL (kube-vip.io/requestedIP) is <IP_ADDRESS>.

Now I also have a NUC which I want to couple to my cluster.
When I say join an existing cluster and I refer to the same IP address I get the error
Get "https://<IP_ADDRESS>:8443/ping": dial tcp <IP_ADDRESS>:8443: connect: connection refused

p.s. I also checked here https://github.com/harvester/harvester/issues/1830 and made sure rancher and the VIP are running on the same node.

How to fix this?

Hi, @rpartapsing! What version of Harvester are you installing? In recent versions, we change to probe port 443 instead of 8443. Thanks!

@starbops thanks for your quick reply. My management service is running v1.1. Can I boot my NUC with a higher version to join the cluster or do I need to upgrade my management node also?

Got it to work wohoo. You can boot another hardware with a different harvester version. But indeed take the latest ones. With the probing changed to port 443, all works seeminglessly


Change request: Have model viewer open on thumbnail click, only deselect/select if checkbox is clicked.

After watching recordings of our visitors, it looks like we have a need to change the behavior of the model cards.
Many users clicks on the model thumbnail image to see their model and instead of opening the model viewer, it currently deselects the model.
Expected behavior: If click in checkbox, select or deselect model.
If clicked below checkbox, open model viewer.


Noise input

Original paper used a noise with the input of the generator. why did you not use it?
https://github.com/eriklindernoren/PyTorch-GAN/blob/3a009005f1a45f9f1547b89005933cd6d5ca865c/implementations/pix2pix/pix2pix.py#L127

In the paper they use dropout instead of sampled noise as input to the generator.

In initial experiments, we did not
find this strategy effective – the generator simply learned
to ignore the noise – which is consistent with Mathieu et
al. [39]. Instead, for our final models, we provide noise
only in the form of dropout, applied on several layers of our
generator at both training and test time

If you look at the generator's definition you can see that I have used dropout in several layers of the generator.

I got it. Thanks :)


Remove "Parents/Carers" banner from the service

Context
Changes proposed in this pull request

Removes the Parents banner from the service as we are not seeing as main parents contacting us and we have more guidance for these types of users.

Guidance to review
visit https://dfe-ghwt-pr-1525.herokuapp.com/ and go to a couple guidance pages and you should not see the above banner appear on any of the pages.

 Review parents banner - can we point to the new guidance page instead?


how to check the wer summary result?

dear friends:
I think I have successfully finished the asr/aishell example training and decoding, but I do not know where to check the summary result.
as you said:

Transformer (Ours without pre-training)
6.82
57.88M

Transformer (Ours with self pre-training)
6.6
57.88M

but from my log, I could only see every testing sentence like below:
INFO:absl:predictions: tf.Tensor(
[[2172 1379   38 1600 3159 1831  168 1946  801 2735  816 2079 1695  111
1404 2554 2580 1600 3387 1429 4233]], shape=(1, 21), dtype=int64)	labels: [[2172 1379   38 1600 3159 1831  168 1946  801 2735  816 2079 1695  111
2272 2554 2580 1600 3387 1429 2172 1379  980 2991 1786<PHONE_NUMBER>
1187 1799 1019   96 1018  145 3118 1946]]	errs: 17	avg_acc: 0.9210	sec/iter: 158.2585
INFO:absl:predictions: tf.Tensor([[ 237  273<PHONE_NUMBER> 2724  357 3571 2184  575 4233]], shape=(1, 11), dtype=int64)	labels: [[ 237  273<PHONE_NUMBER> 2724 3550 3571 2184  575 2498 2716 3755  143
3571 2184  206<PHONE_NUMBER>]]	errs: 11	avg_acc: 0.9209	sec/iter: 91.5847
INFO:absl:predictions: tf.Tensor(
[[2551   74<PHONE_NUMBER> 2574   38    3 1772 1979 1348 1195 3595    3
566 1755 2574   38    3 1772 1979 4233]], shape=(1, 22), dtype=int64)	labels: [[2551   74  423 3844 3249 2227 2787    3 1772 1979 2551   74  423 3844
3249 2227 2787    3 1772 2554 1772 1979 3613 3449 2994 1440 1647]]	errs: 19	avg_acc: 0.9208	sec/iter: 188.1565
INFO:absl:decoding finished
but I do not know where where is the summary result.
And I notice the step 6 in run.sh:
if [ ${stage} -le 6 ] && [ ${stop_stage} -ge 6 ]; then
# score-computing stage
echo "computing score with sclite ..."
if ! [ -x "$(command -v sclite)" ]; then
echo "sclite is not installed !!"
exit 1
else
. ./athena/tools/score_computer.sh decode.log examples/asr/aishell/data/vocab score_save || exit 1
fi
fi
and I could see the folder: athena/score_save, but there is not what I want. So could you help to tell me how to understand your result please?
Thanks.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

yes, I have install sclite, and run step 6, but there is only one log:
computing score with sclite ...
Then nothing else. so what do I miss?

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

The last avg_acc in decoding result file is the overall accuracy of test set because we accumulate errors and total characters during the decoding of test set. Your accuracy seems pretty low (92.08), did you run it using four gpu cards and the batch size we specify in example json?
Kaldi-style WER display is also supported in step 6 and it's more clear. To use it, you need to install sclite and run step 6 again.

yes, I have install sclite, and run step 6, but there is only one log:
computing score with sclite ...
Then nothing else. so what do I miss?

We create a  folder called score_save in step 6 for score files. Please check files inside that folder

Yes, I noticed it, but I do not understand what I can get from it
tmp1.txt
tmp2.txt
I changed *.list to *.txt in order to upload them, could you help to check what should I check from them?
Thanks

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

Yes, I noticed it, but I do not understand what I can get from it
tmp1.txt
tmp2.txt
I changed *.list to *.txt in order to upload them, could you help to check what should I check from them?
Thanks

Can you also upload your decode.log please?

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

If you used mtl_transformer_sp.json with 8 gpu cards and a total batch size of (8 * 32), you should be able to at least get similar results as ours. Can you upload your training log please?

Yes, I noticed it, but I do not understand what I can get from it
tmp1.txt
tmp2.txt
I changed *.list to *.txt in order to upload them, could you help to check what should I check from them?
Thanks

Can you also upload your decode.log please?

the decode.list is zero, nothing content, so I do not upload it.
Thanks

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

If you used mtl_transformer_sp.json with 8 gpu cards and a total batch size of (8 * 32), you should be able to at least get similar results as ours. Can you upload your training log please?

nohup.out.zip
Yes, sure, it is here.

Yes, I noticed it, but I do not understand what I can get from it
tmp1.txt
tmp2.txt
I changed *.list to *.txt in order to upload them, could you help to check what should I check from them?
Thanks

Can you also upload your decode.log please?

the decode.list is zero, nothing content, so I do not upload it.
Thanks

It seems like you have written everything in nohup.out file but decode.log is supposed to be a separate file. You can take line 76236 to line 94744 from your nohup.out, make a decode.log yourself and run step 6 again.

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

If you used mtl_transformer_sp.json with 8 gpu cards and a total batch size of (8 * 32), you should be able to at least get similar results as ours. Can you upload your training log please?

nohup.out.zip
Yes, sure, it is here.

I've read the log, the batch size you used for ASR training is actually 16, but with 8 gpu cards it should be the same as our default config. Can you please check your cmvn file (examples/asr/aishell/data/cmvn)? Do you have per-speaker cmvn extracted for Aishell?
I also couldn't find your epoch 0 dev result for Aishell. Looking at the log, it seems the ASR training starts from epoch 1, which isn't right.

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

If you used mtl_transformer_sp.json with 8 gpu cards and a total batch size of (8 * 32), you should be able to at least get similar results as ours. Can you upload your training log please?

nohup.out.zip
Yes, sure, it is here.

I've read the log, the batch size you used for ASR training is actually 16, but with 8 gpu cards it should be the same as our default config. Can you please check your cmvn file (examples/asr/aishell/data/cmvn)? Do you have per-speaker cmvn extracted for Aishell?
I also couldn't find your epoch 0 dev result for Aishell. Looking at the log, it seems the ASR training starts from epoch 1, which isn't right.

Firstly, thanks very much for your log checking, I think maybe there are some breaks during the training because some unexpected errors. So do you think it is helpful if I git pull the latest code and re-run aishell: run.sh? If so, do you have some suggestions before I run it please, for examples, how to capture log, and how to run(earlier, I used nohup ./example/asr/aishell/run.sh &).
Thanks.

I used 8 gpu card to run, but because memory limitation, I set the batch size is 32.
Thanks

You need a total batch size of 128 (batch size = 32 for 4 gpu cards or batch size = 16 for 8 gpu cards) to get optimal results because Transformer models get better results with larger batch size.

if so, I am using 8gpu with batch size 32, I think it should get better result, actually it is not, what should I do next?
Thanks.

If you used mtl_transformer_sp.json with 8 gpu cards and a total batch size of (8 * 32), you should be able to at least get similar results as ours. Can you upload your training log please?

nohup.out.zip
Yes, sure, it is here.

I've read the log, the batch size you used for ASR training is actually 16, but with 8 gpu cards it should be the same as our default config. Can you please check your cmvn file (examples/asr/aishell/data/cmvn)? Do you have per-speaker cmvn extracted for Aishell?
I also couldn't find your epoch 0 dev result for Aishell. Looking at the log, it seems the ASR training starts from epoch 1, which isn't right.

Firstly, thanks very much for your log checking, I think maybe there are some breaks during the training because some unexpected errors. So do you think it is helpful if I git pull the latest code and re-run aishell: run.sh? If so, do you have some suggestions before I run it please, for examples, how to capture log, and how to run(earlier, I used nohup ./example/asr/aishell/run.sh &).
Thanks.

I think you only need to rerun stage 3 and stage 5 if your cmvn is correct. Can you please upload your cmvn file for aishell?

Sure, it is here:
cmvn.txt

The cmvn file seems alright. You can just remove all ckpt files in checkpoint_dir and just rerun step 3 and step 5. That should lead you to our published result.


Preliminary 'any' modifier changes

failed unit tests
The reason these failed so quickly is that the "linter" saw some stylistic changes that need to be made (stuff like writing 'single quote strings' instead of "double quote strings", or indentation).
In a terminal, run npm run lint and it should fix all of these for you. Then make a new comment with the message lint or 🧹 or whatever and push to re-run the tests.

Hey @jamesdabbs I think we're barking up the wrong tree for implementing this. Any suggestions for implementing a * prefix in formulas to match any of true/false/unknown? (e.g. to make the property appear in search results regardless of value)

Closing as stale.


User integer division vice round()

Fewer characters, easier to read. No practical loss in accuracy.
average = round(sum(l) / len(l))

I've already explained why this was changed to use round.
The other way of dealing with the inconsistency problem would be to change the other code that calculates average. In fact we should probably look for where averages are calculated and see if we can change the code so there is only one place where this is done (and always done the way that suits you the best.)
Alex Kleider (set from my current gizmo)
------- Original Message -------
On Sunday, September 11th, 2022 at 11:02 AM, Leam Hall @.***> wrote:

Fewer characters, easier to read. No practical loss in accuracy.
average = round(sum(l) / len(l))
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

round() is gone.


Azure RBAC - Support passing attribute principalType during PUT operations HTTP calls

Resource Provider
Azure RBAC (PAS)
Description of Feature or Work Requested
currently when creating/updating a role assignment the property principalType is not always set. We would like that regardless of wether an email or an Object ID is used this property is always included in the call
Minimum API Version Required
2017_05_01
Swagger Link
N/A, this is a client side change, not a service change
Target Date

RBAC


fix: update to see-lingua v1.1.5

fix: update to see-lingua v1.1.5

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

npm package (@latest dist-tag)
GitHub release
v13.1.4

Your semantic-release bot :package::rocket:


pyinstaller ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'

I use pyinstaller to generate an executable code for the example in the Getting Started section successfully. However, when I run the code, I get an error:
`import autograd.numpy as anp
import numpy as np
from pymoo.util.misc import stack
from pymoo.model.problem import Problem
from pymoo.algorithms.nsga2 import NSGA2
from pymoo.algorithms.nsga3 import NSGA3
from pymoo.algorithms.moead import MOEAD
from pymoo.factory import get_sampling, get_crossover, get_mutation
from pymoo.factory import get_termination
from pymoo.optimize import minimize
from pymoo.visualization.scatter import Scatter
import matplotlib.pyplot as plt
from pymoo.performance_indicator.hv import Hypervolume
from pymoo.factory import get_reference_directions
class MyProblem(Problem):
def __init__(self):
    super().__init__(n_var=2,
                     n_obj=2,
                     n_constr=2,
                     xl=anp.array([-2,-2]),
                     xu=anp.array([2,2]))

def _evaluate(self, x, out, *args, **kwargs):
    f1 = x[:,0]**2 + x[:,1]**2
    f2 = (x[:,0]-1)**2 + x[:,1]**2

    g1 = 2*(x[:, 0]-0.1) * (x[:, 0]-0.9) / 0.18
    g2 = - 20*(x[:, 0]-0.4) * (x[:, 0]-0.6) / 4.8

    out["F"] = anp.column_stack([f1, f2])
    out["G"] = anp.column_stack([g1, g2])

# --------------------------------------------------
# Pareto-front - not necessary but used for plotting
# --------------------------------------------------
def _calc_pareto_front(self, flatten=True, **kwargs):
    f1_a = np.linspace(0.1**2, 0.4**2, 100)
    f2_a = (np.sqrt(f1_a) - 1)**2

    f1_b = np.linspace(0.6**2, 0.9**2, 100)
    f2_b = (np.sqrt(f1_b) - 1)**2

    a, b = np.column_stack([f1_a, f2_a]), np.column_stack([f1_b, f2_b])
    return stack(a, b, flatten=flatten)

# --------------------------------------------------
# Pareto-set - not necessary but used for plotting
# --------------------------------------------------
def _calc_pareto_set(self, flatten=True, **kwargs):
    x1_a = np.linspace(0.1, 0.4, 50)
    x1_b = np.linspace(0.6, 0.9, 50)
    x2 = np.zeros(50)

    a, b = np.column_stack([x1_a, x2]), np.column_stack([x1_b, x2])
    return stack(a,b, flatten=flatten)

problem = MyProblem()
_algorithm = 'nsga3'
if _algorithm == 'nsga2':
algorithm = NSGA2(
pop_size=40,
n_offsprings=10,
sampling=get_sampling("real_random"),
crossover=get_crossover("real_sbx", prob=0.9, eta=15),
mutation=get_mutation("real_pm", eta=20),
eliminate_duplicates=True
)
if _algorithm == 'nsga3':
algorithm = NSGA3(
get_reference_directions("das-dennis", 2, n_partitions=12)
)
if _algorithm == 'moead':
algorithm = MOEAD(
get_reference_directions("das-dennis", 2, n_partitions=12)
)
termination = get_termination("n_gen", 40)
res = minimize(problem,
algorithm,
termination,
seed=1,
pf=problem.pareto_front(use_cache=False),
save_history=True,
verbose=True)
ps = problem.pareto_set(use_cache=False, flatten=False)
pf = problem.pareto_front(use_cache=False, flatten=False)
plot = Scatter(title = "Design Space", axis_labels="x")
plot.add(res.X, s=30, facecolors='none', edgecolors='r')
plot.add(ps, plot_type="line", color="black", alpha=0.7)
plot.do()
plot.apply(lambda ax: ax.set_xlim(-0.5, 1.5))
plot.apply(lambda ax: ax.set_ylim(-2, 2))
plot.show()
plot = Scatter(title = "Objective Space")
plot.add(res.F)
plot.add(pf, plot_type="line", color="black", alpha=0.7)
plot.show()
metric = Hypervolume(ref_point=np.array([1.0, 1.0]))
pop_each_gen = [a.pop for a in res.history]
obj_and_feasible_each_gen = [pop[pop.get("feasible")[:,0]].get("F") for pop in pop_each_gen]
hv = [metric.calc(f) for f in obj_and_feasible_each_gen]
plt.plot(np.arange(len(hv)), hv, '-o')
plt.title("Convergence")
plt.xlabel("Generation")
plt.ylabel("Hypervolume")
plt.show()`

[zhengz@localhost pyinstaller]$ ./dist/Getting_Started

/home/zhengz/softwares/python38/lib/python3.8/site-packages/pyinstaller-4.0.dev0+3510886087-py3.8.egg/PyInstaller/loader/pyimod03_importers.py:489: MatplotlibDeprecationWarning:

The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.

exec(bytecode, module.dict)

==========================================================================================

n_gen |  n_eval |   cv (min)   |   cv (avg)   |     igd      |      gd      |      hv

==========================================================================================
1 |      13 |  3.713093941 |  2.49237E+01 |            - |            - |            -
Traceback (most recent call last):
File "Getting_Started.py", line 82, in
res = minimize(problem,
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/optimize.py", line 76, in minimize
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/model/algorithm.py", line 208, in solve
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/algorithms/nsga3.py", line 103, in _solve
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/model/algorithm.py", line 289, in _solve
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/model/algorithm.py", line 260, in next
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/algorithms/genetic_algorithm.py", line 105, in _next
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/model/survival.py", line 41, in do
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/algorithms/nsga3.py", line 133, in _do
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/util/nds/non_dominated_sorting.py", line 22, in do
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/util/function_loader.py", line 76, in load_function
File "site-packages/pymoo-0.4.1-py3.8-linux-x86_64.egg/pymoo/util/function_loader.py", line 69, in load
File "importlib/init.py", line 127, in import_module
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'
[6928] Failed to execute script Getting_Started
I find some information about Cython on: https://pymoo.org/installation.html

Some computationally more expensive function have been implemented using Cython for speedup.
...
As said above, the pymoo installation will not fail if the modules are not compiled successfully, but no speedup will be available. To check if the compilation has worked during the installation, you can use the following command:

python -c "from pymoo.util.function_loader import is_compiled;print('Compiled Extensions: ', is_compiled())"
So I check the installation:
[zhengz@localhost pyinstaller]$
python -c "from pymoo.util.function_loader import is_compiled;print('Compiled Extensions: ', is_compiled())"
Compiled Extensions: True
I try the method from here: https://stackoverflow.com/questions/24525861/building-cython-compiled-python-code-with-pyinstaller, but I still cannot solve the problem.
On windows system, I install pymoo without using Cython, but I can use pyinstaller to generate and run the executable code successfully. So maybe I can solve the problem this way on linux system with the sacrifice of speedup.

Sorry I was not able to answer early enough. I have actually tried Pyinstaller and ran into the same issue.
What was the solution to your problem?

pyinstaller -F Getting_Started.py --exclude-module pymoo.cython.non_dominated_sorting


[mesheryctl] [child] platform support for Kubernetes in system start(platform: kubernetes)

See Epic #2307 for context and further description of this issue.
Current Behavior
mesheryctl system start compiles the docker-compose.yaml file without consideration of the context's platform type.
Desired Behavior
mesheryctl system start should check the value of platform key of the current-context and deploy accordingly as shown in the example scenario below-
config.yaml file-
user@computer:~/.meshery$ cat config.yaml
contexts:
  local:
    endpoint: http://localhost:9081
    token:
      name: Default
      location: auth.json
    platform: kubernetes # platform is Kubernetes
    adapters:
    - meshery-istio
    - meshery-linkerd
    - meshery-consul
    - meshery-octarine
    - meshery-nsm
    - meshery-kuma
    - meshery-cpx
    - meshery-osm
    - meshery-nginx-sm
    channel: stable
    version: v0.4.20

current-context: local
tokens: {}

Since the platform is “kubernetes”, the system start command should not by default compile the docker-compose.yaml file and run Meshery on Docker but instead should deploy on to Kubernetes.
Implementation
mesheryctl already "pulls" the platform type from the config.yaml file in the config.go file-
https://github.com/layer5io/meshery/blob/b0c1a7fa39dd0456f9112be068d2601bfe17d465/mesheryctl/internal/cli/root/config/config.go#L31-L38
system start should check this key and deploy Meshery to Docker or Kubernetes accordingly.
Kubernetes deployment files will be downloaded from /install/deployment_yamls/k8s (a configurable, but default location) alongside the docker-compose.yaml (see Issue #2309 - [mesheryctl] [child] platform support during “bash script” installation).
It should compile locally available kubernetes deployment files and apply those to the cluster.

Implement Meshery deployment to Kubernetes using go-cilent from Kubernetes. This can be implemented by leveraging functions from MeshKit.

Do not use system-level calls to a bash script like `$ kubectl apply -f . Do not use Helm.

Compile the Kubernetes manifests each time the user invokes a system command, which means that the config.yaml file should be read and Kubernetes manifest files should be written to disk. Specifically in the ~/.meshery app folder under /install.
(default: ~/.meshery/install/<k8s-deploy-xx>.yaml) - Use a global variable to reference this location.(similar to the docker-compose.yaml file)

Acceptance Tests

mesheryctl system start applies Kubernetes manifests to cluster specified in the current context.

Current context is used unless the user overrides with --context as a one-time flag to specify a different target cluster.

Maintain idempotency - Multiple executions of system start to the same Kubernetes cluster has no adverse affect. See system update for considerations.

Fresh copies of the K8s manifest files should be retrieved from the globally configured registry location (default: github.com/layer5io/meshery/install……  releases/tags/vx.x.x).

Retrieved copies of K8s manifest files should be of the same version number as mesheryctl.

Just look at this issue description. Superb. A thing of beauty.

@leecalcote The acceptance tests are all your work! Also you did a lot of editing on this. Not taking any credit here... :)


multiple-connections-in-a-vertical.md

I have added a new bullet point Multiple connections under a vertical in How do I customize and configure search results? Section.

Closing PR. This is neither a valid article nor appropriate for this section of this article.


fixed a bug that was causing my whole object to be set as the id prop…

…erty using the instructions from the read me with my resource
it's because the prototype is not null like an object literal.. if you read carefully on the lodash docs you'll see why https://lodash.com/docs#isPlainObject
the function convertToShell was running and returning a new object with a key of the object's id's key and a value of the resource object.
this fixes the issues. otherwise all cool! :)

: ( why fail?

this auto-failed because the tests aren't passing. I don't have time to look at right now, but will look into as soon as possible.

ahh I see.  sure thing though.  I fixed my issue, it was a tiny change
which is why I didn't make a feature branch.
I made a comment in the code. and a poorly formatted comment on the pull
request... lol.  let me know if you need any more explanation from me
thanks,
Parker
On Fri, Mar 11, 2016 at 5:08 PM, Chris Ludden<EMAIL_ADDRESS>wrote:

this auto-failed because the tests aren't passing. I don't have time to
look at right now, but will look into as soon as possible.
—
Reply to this email directly or view it on GitHub
https://github.com/kutlerskaggs/json-api-ify/pull/16#issuecomment-195572128
.

--
Gracias,
Parker Jones

can you give an example of the data you're trying to serialize that's causing the #serialize call to fail? My guess is that you're passing some sort of ORM model (like a mongoose model), in which case you should use the #processResource hook to convert the model into a pojo.
serializer.define('user', {
    processResource(resource, cb) {
        if (typeof resource.toObject === 'function') {
            resource = resource.toObject();
        }
        cb(null, resource);
    }
}, cb);

here is a jsfiddle: https://jsfiddle.net/parallaxisjones/4kdtbfy1/
maybe you're misinterpreting the lodash call you make _.isPlainObject??
it checks to see if the prototype of the object is null, not that it's a
"Plain old Javascript Object" that has no methods.
Mine are not plain objects as I described in the jsfiddle because they
inherit properties that I want to keep and serialize and have a prototype
of another object where they got them from.
your code assumes the resource is not an object if it's not "plain", and
tries to put it in a "shell". With your implementation it grabs the id of
my resource and set's the whole object as the value of the id as a key on a
new pojo because it fails the check of PlainObject.  it then loses it's
reference to the ID field, and misses all the attributes.
It get's super screwy from there.
Yes you're right though about the  I have a postgres orm that I have built
into a basemodel that my serializable objects need to talk to the db.
Couldn't use an orm for this since there's really not one that supports the
PostGIS extension for postgres
if POJO is what you intended maybe you should check that properties are not
of type function and skip those instead of using that lodash function.
..... and I am using process resource.  having complex objects and
serializing them is sort of the point... right?
On Tue, Mar 15, 2016 at 12:41 PM, Chris Ludden<EMAIL_ADDRESS>wrote:

can you give an example of the data you're trying to serialize that's
causing the #serialize call to fail? My guess is that you're passing some
sort of ORM model (like a mongoose model), in which case you should use the
#processResource hook to convert the model into a pojo.
serializer.define('user', {
processResource(resource, cb) {
if (typeof resource.toObject === 'function') {
resource = resource.toObject();
}
cb(null, resource);
}
}, cb);
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/kutlerskaggs/json-api-ify/pull/16#issuecomment-196914535

--
Gracias,
Parker Jones

Ahhh, I see what you're getting at. I updated the test suite so that it's passing now with your change and will go ahead and merge. Thanks for the contribution @parallaxisjones !

:) glad I could help.  thanks for the serializer.


Draft delta()

I have implemented something very similar but it uses Map and Set to begin with such that an array to map conversation isn't needed anymore


Cannot read property 'top' of undefined

Issue Id: 0cfb9ada-3213-616c-8263-d5cc847cde76Versions - 1.20.0-  f9398645d1d624538708eeebf96e6fdeb546f5d7Stack TypeError: Cannot read property 'top' of undefined/vs/base/parts/tree/browser/treeViewModel.ts#L156:12 (top)/vs/base/parts/tree/browser/treeViewModel.ts#L134:7 (onRefreshItems)/vs/base/parts/tree/browser/treeView.ts#L964:7 (onRefreshItemSet)/vs/base/parts/tree/browser/treeView.ts#L960:7 (onItemsRefresh)/vs/base/common/event.ts#L144:18 (call)/vs/base/common/event.ts#L144:18 (call)/vs/base/common/event.ts#L212:41 (fire)/vs/base/common/event.ts#L142:15 (call)/vs/base/parts/tree/browser/treeModel.ts#L527:21 (fire)/vs/base/parts/tree/browser/treeModel.ts#L507:19 (doRefresh)

Stack is not having information about the tree/view that is causing this.
@joaomoreno is this something to be fixed in tree?

We'd need to see which tree it really is. 😢

Closing this as there is no enough information to fix it.


Blob output binding - IAsyncCollector?

Does using IAsyncCollector for asynchronous methods work?  If so, what types are supported?  I tried IAsyncCollector<string> and couldn't get it to work.  If it does work, I think it would be helpful if this document could be updated to include which of the data types are supported, and which aren't.
Additionally, if there is a need to write multiple output files, it would be good to include a statement on a recommended approach.  For example, binding to CloudBlobContainer:
for (int i = 0; i < 10; i++)
{
    CloudBlockBlob blockBlob = cloudBlobContainer.GetBlockBlobReference($"{Guid.NewGuid()}.json");
    await blockBlob.UploadTextAsync(outputJson);
}

There is an old issue at https://github.com/Azure/Azure-Functions/issues/162 which indicates IAsyncCollector isn't supported in this case, and that a reference to use it was removed.  But, it's now back.

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

ID: 910d4732-bb08-d16a-a932-19c6bd1628c2
Version Independent ID: af4358c7-cb5c-bdc7-6433-289f47dc186b
Content: Azure Blob storage output binding for Azure Functions
Content Source: articles/azure-functions/functions-bindings-storage-blob-output.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@mcollier - Thanks for the question! We will review and get back to you.

@mcollier  Apology for the delay. As there are some limitations with the IAsyncCollector and I am still waiting for the team to get the confirmation. Post the confirmation we will be updating our document.

@craigshoemaker Can you please provide your input on this.

Thanks, @mcollier
As you point out, the doc incorrectly stated that you could use IAsyncCollector. The article is now updated with that line removed.
#please-close


[Refactor] Dreamer loss modules

Description
Refactor of the dreamer loss.
WIP, TODO: forward function.
Motivation and Context
Requested by @vmoens per popular request
Types of changes
What types of changes does your code introduce? Remove all that do not apply:

[x] Documentation (update in the documentation)
[x] Example (update in the folder of examples)

Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

[x] I have read the CONTRIBUTION guide (required)
[x] My change requires a change to the documentation.
[x] I have updated the tests accordingly (required for a bug fix or a new feature).
[x] I have updated the documentation accordingly.

When you now run example, you encounter the error :
  File "./rl/examples/dreamer/dreamer.py", line 321, in main     scaler_actor.scale(actor_loss_td["loss_actor"]).backward()   File "~/anaconda3/envs/rl_dreamer_3_10/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward     torch.autograd.backward(   File "~/anaconda3/envs/rl_dreamer_3_10/lib/python3.10/site-packages/torch/autograd/__init__.py", line 200, in backward     Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [400, 1]], which is output 0 of AsStridedBackward0, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
I investigated and this happens always when backprop and optimization steps are applied to the results of the world model. Other losses or scaling does not cause the issue. torch.autograd.set_detect_anomaly(True) did not return anything interesting.
When each model loss is applied separately (like in the previous commit of this pull request) all works well.
Does it mean that there is some sharing of parameters that is triggered only in forward, but not in the standard call of the new loss functions? @vmoens


Webview editor doesn't seem to work right in remote

#81698
SSH: Windows -> Ubuntu
I have all the same source as the built-in image-preview but I get this error when trying to open:
h: Unable to read file (Error: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//"))
    at v.readFileStream (file:///C:/Users/daimms.REDMOND/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1539:7)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Seems to be complaining about the /media/main.js path specifically.

Duplicate of #1489 I believe. Let me know if you still see this

The linked issue seems to be completely unrelated
Why is this closed? @mjbvz

Fixed reference


Visual studio extension

Hi,
Is it in your roadmap to have upgrade assistant as an vs extension (similar to .net portability analyzer with an option to choose the required target .net core version)?

Thanks @vvijayalakshmi21. We do have in our backlog to explore the option of a VS integration.

dupe of #54


POST /containers/{id}/start (ownership check)

Hi there,
Is it possible to make this command "POST /containers/{id}/start"  available just for a particular users ?
for example I have many users and Alice one of these users could I add Alice in this command to make Alice able to start container while others no. "POST /Alice/containers/{id}/start"
if yes could you send me how please ?
Best,
Ibrahim

:wave: Could you explain a bit more about why you want that?

Hi ,
I would like to make just a particular users to can start container.
For example I have Bob and Alice users.
I would like just Alice who can start container while Bob can’t.
I have created an authorisation plugin but I couldn’t make the authorisation plugin look to the user.

Ok, Many thanks lox


Import chainermn updates preserving commit logs

Supercedes #5530 . Sadly numbers in commit logs are those from chainer/chiarmn repository but will be a hint for future debuggers.

Jenkins, test this please.

Jenkins, test this please.

Jenkins, test this please.

Jenkins CI test (for commit<PHONE_NUMBER>cfb504080ddb4c38072ebc758fe8b6, target branch master) succeeded!


Problems with the dot in the device attribute name

Hello. I have a Xiaomi Mijia Smart Evaporative Cooling Fan (dmaker_p44). After adding it through this integration, there is a dot in the name of many of its attributes:

These are, for example, "fan.on", "fan.fan_level", "fan.mode" and so on...
I want to use the Button Card by @RomRider (https://github.com/custom-cards/button-card ), but when I try to extract the value of such attribute using Javascript Templates,
type: custom:button-card
name: |
  [[[
    return states['fan.dmaker_p44_7a6c_fan'].attributes.fan.fan_level
  ]]]

nothing works!
I assume that the reason for this is that the java script template format used in this card does not allow for correct processing of attribute names that contain a dot.
The question is, is there any way to make the names of these attributes not contain dots?

Use states['fan.dmaker_p44_7a6c_fan'].attributes['fan.fan_level'] in that case

@RomRider, thank you very much! Yes, in that case everything works!
Maybe there is some source where I could familiarize myself with other similar nuances of the syntax available for use in java script templates for your button-card?

It's just javascript syntax, nothing specific to button card.  So you'll have to look for javascript tutorials.

@RomRider, I understand you, thank you very much again!
Unfortunately, I couldn't find a solution earlier, although I watched various tutorials... I probably should have looked deeper...
Now, however, I noticed that not all attribute values are displayed using the method described above... Although, at the same time, values for all these attributes are displayed in Developer Tools - States... But there are no errors in the card, just an empty field is displayed on the card instead of the attribute value... Perhaps it has some other reason...

uh, why not state_attr('entity_id', 'attribute_name') as said in the home assistant jinja docs?

@SodaWithoutSparkles, because the @RomRider provides a different syntax for getting the attribute value...
I do everything as described here: https://github.com/custom-cards/button-card
Do you use the Button Card by @RomRider yourself?
I do not know why @RomRider decided to do as he did, but the fact remains... Perhaps you can ask him about it personally...
Before the @RomRider answered here, I solved this problem exactly as you suggested - I created the appropriate helpers sensors. But then the @RomRider wrote here what syntax to use - and it works!
Yes, for some reason, as I described above, not all values of attributes are displayed on the card. But in fact, I do not use the getting values of attributes for direct output of values of attributes on the card, but I use it, in particular, in if statements like this:
hold_action:
  action: call-service
  service: xiaomi_miot.set_miot_property
  data:
    entity_id: fan.dmaker_p44_7a6c_fan
    siid: 2
    piid: 6
    value: |
      [[[
        if (states['fan.dmaker_p44_7a6c_fan'].attributes['fan.air_cooler'] === true) return false
        else return true
      ]]]

Here I have given an example for the value of attribute that is not directly displayed on the card for some reason - but this, oddly enough, works...

use the browser developer tools to inspect available attributes

To be honest, I didn't quite understand what you were suggesting... Just look at values of attributes using Developer Tools? This is not suitable at all - I need these values so that the elements on the card work properly - accordingly, I need to receive these values so that they are processed in Javascript Templates of the Button Card by @RomRider...


biodiff: init at 1.0.1

Motivation for this change
Add biodiff, a hex diff viewer using alignment algorithms from biology.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 162936 run on x86_64-linux 1

1 package built:

biodiff


Revert "WELD-1839 Add WeldStartService dependency to all WARs"

This is revert of #7225 as it causes testsuite regression

Linux with security manager Build 1001 is now running using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397

Linux Build 6022 is now running using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397

Windows Build 1136 is now running using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397

Linux with security manager Build 1001 outcome was SUCCESS using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397
Summary: Tests passed: 843, ignored: 319 Build time: 0:06:27

Windows Build 1136 outcome was FAILURE using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397
Summary: Tests passed: 2917, ignored: 314; exception during messages processing (new); org.wildfly:wildfly-ts-integ-basic Build time: 0:46:15
Build problems:
Exception during messages processing

Linux Build 6022 outcome was SUCCESS using a merge of ab7219b4ae207df9e16e84670b094e7f7ab3b397
Summary: Tests passed: 2932, ignored: 314, muted: 1 Build time: 0:47:00

no longer required


KDE Wallet is not unlocked with SDDM

Describe the bug
After logging in with SDDM I see the following window:

Every time. This is annoying and should not happen. Previously, no manual intervention was necessary. This is a regression in 20.03.
To Reproduce
Steps to reproduce the behavior:

Switch to nixpkgs b2935fbeceaea0b64df4401545d7c8ea29102120. Set SDDM as your display manager and plasma5 as your desktop manager. Like so:

  services.xserver = {
    enable = true;
    layout = "us";
    libinput.enable = true;

    desktopManager = {
      plasma5.enable = true;
    };

    displayManager = {
      sddm.enable = true;
      defaultSession = "plasma5";
    };
  };

Reboot or I guess just logging out and then logging in again will do.
Observe the above-mentioned window.

Expected behavior
No manual intervention should be necessary.
Metadata

system: "x86_64-linux"
host os: Linux 5.4.25, NixOS, 20.03.git.b2935fbecea (Markhor)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre7250_94c93437
channels(mark): "nixos-18.09.2337.5d972dd2c94"
channels(root): "nixos-19.03.173651.ca6b6595392"
nixpkgs: /home/mark/nixpkgs

Here I obtained the portion of the system log that may be of interest:
log.txt

This is the same as #77290.


tailscale: 1.48.1 -> 1.48.2

Description of changes
https://github.com/tailscale/tailscale/releases/tag/v1.48.2
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

1 package failed to build:

trayscale

1 package built:

tailscale


Fix target selection for PandExo

Currently PandExo does not correctly handle fields that cannot be auto-populated, leading to errors when a user hits submit.

This has been resolved in the latest PR to PandExo: https://github.com/natashabatalha/PandExo/pull/37. We need to pull those changes to our "local" PandExo repo to solve this.

Solved in latest online PandExo version!


Automated validation that the Portal UI deployment works with any proposed Bicep changes

Benefit/Result/Outcome
So that as new changes enter mlz.bicep we have some idea if the Azure Portal form will still work.
More importantly, so that if any proposed changes to mlz.bicep would break the Azure Portal form, we know right away to prevent the form from breaking in /main and get feedback on how to update the form.
Description
The ARM TTK has unit tests for CreateUIDefinition files. This seems like a good place to start.
Acceptance Criteria

On a PR, check to see that the Portal UI is compatible with the Bicep template

The ARM TTK comes out of the box with test support for createUiDefinition.json Portal UI templates, but not Full Screen Create templates that MLZ uses.
Will research what kind of testing support is available to Full Screen Create templates.


Marker "draggable:true" doesn't work in wavesurfer.addMarker();

Hi,
I'm trying to get to work a Marker via the Markers Plugin. The Marker must be user draggable.
I therefore, at first, implemented the following in wavesurfer.create(). This works like a charm!:
wavesurfer = WaveSurfer.create({
    container: "#wave",
    plugins: [
    WaveSurfer.markers.create({
markers: [
{
id: "marker",
time: 0,
label: "Schwerpunkt",
color: '#51565c',
draggable: true
}
]
})
]
});

However, when trying to implement a marker only via the below, I can't drag the marker.
wavesurfer.addMarker({
id: "marker2",
time: 0.5,
label: "Schwerpunkt",
draggable: true,
color: '#000000',
});

Draggability does however work, as soon as I create a (first) marker in the WaveSurfer.create method.
This seems to be an issue in wavesurfer.addMarker, not properly setting the "draggable" parameter if not already set by another marker.
Any help in this issue would be very welcome!!
Thanks a lot in advance; and also thanks again for providing the immensly helpful wavesurfer.js program!!! :)

thanks again for providing the immensly helpful wavesurfer.js program!!! :)

😺


Update Composer dependencies (2024-01-25-00-10)

Visual regression test passed!
View the visual regression test report


Unexpected character '`'

Everything seems to work great when running npm run dev, but I'm getting an error when I try to export for production by running npm run build:
ERROR in build.js from UglifyJs
Unexpected character '`' [./~/vue-stripe-checkout/index.js:1,0][build.js:16789,36]

This library looks awesome. Thanks.

Hey @crobertsbmw it was due to the backticks ( ) I used. It's an ES6 feature, one way of dealing with this type of problem is to install es6 presets to your babel configuration. But I already updated the repo, please see the latest version innpm`. Thanks!

Thank you very much, you kind sir.

Thanks for working with me on this.
I updated the package and now I am getting a similar but different error:
Unexpected token: punc (() [./~/vue-stripe-checkout/index.js:6,0][build.js:16794,9]```

So I don't know the first thing about babel. But following the instructions [here](https://babeljs.io/docs/plugins/preset-env/), I ran
`npm install babel-preset-env --save-dev`
and tried to modify my `.babelrc` and include `"presets": ["env"]`. But that didn't seem to change anything. I tried a bunch of different combinations with es2016, es6, es2015, but nothing seemed to change anything. I even tried removing all mention of presets from `.babelrc`, expecting that all sorts of things would break. But removing the presets line didn't seem to have any effect either; I could run `npm run dev`, and everything would work great, but if I ran `npm run build` I would get the same error about Uglify.

Hi @crobertsbmw can I see your .babelrc please?

@crobertsbmw I added a webpack build for the new update 0.0.4. Kindly give me a feedback after checking it. Thank you. :) Sorry it took a while.

Here's my .babelrc:
{
"presets": [ "env" ],
"plugins": [
"add-filehash",
["transform-imports", {
"vuetify": {
"transform": "vuetify/src/components/${member}"
}
}]
]
}
I had to uninstall and then reinstall it, but it's working. Thanks so much for all your help!

@crobertsbmw You were missing the stage-2 preset. Anyways, it's working now. :) Thanks for submitting the issue.


[CLOSED] Get weather data from openweather

 Issue by NiaX84
Sat Aug 25 12:41:44 2018
Originally opened as https://github.com/ERNICommunity/dust-measurement-network/issues/27

Based on location of the detectors and timestamp
wind direction
wind speed
humidity
pressure

 Comment by mareklinka
Thu Aug 30 12:39:44 2018

Done by @wtvisser and Angus. Incorporated into the training data set. I'll create the followup.


feat: connect alby account nwc node

This PR adds a new screen after a channel is opened in the alby funds migration flow. The toast "Channel opened" is shown and then we navigate to this new page where the user is given the option to finish the connection by linking Alby Hub to the Alby account (and creating a NWC connection for getalby.com)
I'm not actually sure if this should be a page or just automated. But it's a page for now so users have full control. If we leave it as a page and a user skips, they manually need to setup their NWC connection and enter it in getalby.com.

Update: do this automatically once the user connects to their Alby account for the first time. Do not add a new page the user has to read through. CC @reneaaron
This will get users stuck if they don't finish the flow or a channel is pending, which they can disconnect from the getalby.com UI if they really want to. But that the happy day scenario works great

@reneaaron @bumi I updated the PR so now it automatically links the first the OAuth callback happens.

Now there is some coupling between the Alby OAuth service and the service, since the Alby OAuth Service needs an API to be able to create the app for the getalby.com NWC connection.
Related issue: https://github.com/getAlby/nostr-wallet-connect-next/issues/17


Fix Scaladex listing by updating Sonatype info to correct git host

Scaladex's data about testcontainers-scala is extremely incomplete - only a few old artifacts show up... this is because, back in March 2018 with e983e479, there was a small typo where instead of GitHubHosting being specified (which would have been correct), the alternate GitLabHosting host was specified in testcontainers-scala Sonatype configuration in sbt.
Scaladex is very particular about matching up GitHub repos with their Sonatype metadata (see eg https://github.com/scalacenter/scaladex/issues/657#issuecomment-803899871 ) so this error unfortunately means Scaladex has decided that all releases since then are not associated with the GitHub repo, and does not list them.
Once this typo is corrected, there'll need to be a new release of testcontainers-scala to start seeing new releases show up in the right place!
cc @dimafeng

Oh, wow! Than you so much!


Preheat using temps in a gcode file

I use this plugin https://github.com/marian42/octoprint-preheat
When you load a gcode file in Octoprint, there is a new "preheat" button next to the Print/Pause/Cancel buttons. Press that and the nozzle/bed heat up to the (first) temperature in the gcode file.
I'm thinking that in Octopod you could do similar via the files screen; select a file and have "preheat" as an option, as well as "print".
My printer is in a different building that's usually cold, so the remote on/off and remote preheat is really useful for me. The preheat button means I don't have to remember/manually enter temperatures.
Thanks.

Any updates? Current version still has no access to the preheat plugin. This would be awesome to get working!!


large amount of contents cause blazor to disconnect

when used in Blazor server
If you have a large amount of contents in the editor, very noticeable if have images that are base64 embedded strings
the code causes Blazor to disconnect.
error in console: Error: Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'.
this happens when the JavaScript calls this code
dotNetRef.invokeMethodAsync('UpdateModel', editor.getContent());
as it is above the default 32K singalR limits
see this limitation here https://github.com/dotnet/aspnetcore/issues/23179

Thanks for bringing this up! I was not aware of this limitation. We will have to break up the call into smaller chunks to avoid this issue.
I can hopefully have a PR sometime soon unless someone else wants to barge in with a code contribution :)

You can set the maximum buffer size in ConfigureServices (Startup.cs):
instead of
services.AddServerSideBlazor();
you should use
services.AddServerSideBlazor().AddHubOptions(o =>
            {
                o.MaximumReceiveMessageSize = 10 * 1024 * 1024; // 10MB
            })

Thanks for the suggestion net-brain
unfortunately this only increases the limit it does not fix the issue, if you have a document over the new size you will get the same issue again.
as well as having more setup steps for anyone wanting to use this control.
I have also read in a few places it is not good practice to increase the size limit as it is a security issue
one example is in this doco
https://blog.stevensanderson.com/2019/09/13/blazor-inputfile/
see the "Bandwidth, latency, and security" section
specifically
Also, for security reasons, we don’t want to trust the JS-side code to send us as much data as it wants. That would let misbehaving clients occupy as much .NET memory as they want. So, all the transfer operations are initiated from the .NET side, and we can be sure to make full use of the allowed memory but no more.
the best option is to break the calls in to smaller chunks as mentioned by jscasca above

So I came up with #12 that allows messages to be sent over a couple of large sized chunks to avoid hitting the signalR limit.
In theory we should only need to this on one way side but I did it both ways :shrug:
Hope to have a build soon

@ScottyBlazor v0.0.4 is out now and it comes with chunking for passing parameters.

thankyou @jscasca its much appreciated, I will update my code and give it a try


AP-3442: Monitor banking path usage

What
Link to story
In order for the team to monitor and track the different banking journey paths we need to record whether a non passported application has started the bank statement uploads or Truelayer journey
This PR adds field to the digest, for datastudio tracking, and admin report output for excel analysis
Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing: bundle exec rake
Github should not be reporting conflicts; you should have recently run git rebase main.
There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
The PR description should say what you changed and why, with a link to the JIRA story.
You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
You should have checked that the commit messages say why the change was made.

That's not a requirement yet... only completion of the truelayer as we know that it's an unpopular route


implement custom styling

There are many react form styling component library that we can leverage: MateriaulUI, Materializecss, Semantics UI, etc. I would like to work on having the option to hook those up or build your custom ones so that people can have a better looking search bar.

You can use provide a custom TextInput component in the textInputProps prop.
Example Code:
import React from 'react';
import { Text, View, Image } from 'react-native';
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';
import { Input } from 'react-native-elements';

const GOOGLE_PLACES_API_KEY = 'YOUR_GOOGLE_API_KEY';

const App = () => (
  <View style={{flex: 1}}>
    <GooglePlacesAutocomplete
      query={{
        key: GOOGLE_PLACES_API_KEY,
        language: 'en', // language of the results
      }}
      onPress={(data, details = null) => console.log(data)}
      onFail={error => alert(error)}
      textInputProps={{
        InputComp: Input,
        leftIcon: { type: 'font-awesome', name: 'chevron-left' },
        errorStyle: { color: 'red' }
      }}
    />
  </View>
)

export default App

This isn't working for me.

RN version: 0.61
Typescript: 3.8.3

No overload matches this call.
  Overload 1 of 2, '(props: Readonly<GooglePlacesAutocompleteProps>): GooglePlacesAutocomplete', gave the following error.
    Type '{ InputComp: typeof Input; leftIcon: { type: string; name: string; }; errorStyle: { color: string; }; }' is not assignable to type 'TextInputProps & { ref?: MutableRefObject<TextInput | null> | undefined; }'.
      Object literal may only specify known properties, and 'InputComp' does not exist in type 'TextInputProps & { ref?: MutableRefObject<TextInput | null> | undefined; }'.
  Overload 2 of 2, '(props: GooglePlacesAutocompleteProps, context?: any): GooglePlacesAutocomplete', gave the following error.
    Type '{ InputComp: typeof Input; leftIcon: { type: string; name: string; }; errorStyle: { color: string; }; }' is not assignable to type 'TextInputProps & { ref?: MutableRefObject<TextInput | null> | undefined; }'.
      Object literal may only specify known properties, and 'InputComp' does not exist in type 'TextInputProps & { ref?: MutableRefObject<TextInput | null> | undefined; }'.ts(2769)
GooglePlacesAutocomplete.d.ts(380, 3): The expected type comes from property 'textInputProps' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<GooglePlacesAutocomplete> & Readonly<GooglePlacesAutocompleteProps> & Readonly<...>'
GooglePlacesAutocomplete.d.ts(380, 3): The expected type comes from property 'textInputProps' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<GooglePlacesAutocomplete> & Readonly<GooglePlacesAutocompleteProps> & Readonly<...>'

@willcoughlin Using the code you have in the picture above, it works fine for me. This seems like it might be a typescript definition error.
PRs welcome.


Workflow plan

Purpose/implementation Section
What changes are being implemented in this Pull Request?
Draft of workflow plan created!
What was your approach?
What GitHub issue does your pull request address?
Tell potential reviewers what kind of feedback you are soliciting.
Need Sita's workflow diagram and edits on what the test samples are exactly.
New Content Checklist

[ ] New content/chapter is in an Rmd file with this kind of format and headers.

[ ] New content/chapter contains learning objectives.

[ ] Bookdown successfully re-renders and any new content files have been added to the _bookdown.yml.

[ ] Spell check runs successfully).

[ ] Any newly necessary packages that are needed have been added to the Dockerfile and image.

[ ] Images are in the correct format for rendering.

[ ] Every new image has alt text and is in a Google Slide.

[ ] Each slide is described in the notes of the slide so learners relying on a screen reader can access the content. See https://lastcallmedia.com/blog/accessible-comics for more guidance on this.

[ ] The color palette choices of the slide are contrasted in a way that is friendly to those with color vision deficiencies.
You can check this using Color Oracle.

I think we can clarify how the pipeline works by rewording this:

The workflow takes in pairs of cancer and normal samples from sequencing in the FASTQ format and aligns the sequencing reads of each sample to the human reference genome, marks PCR duplicates, and recalibrates base quality. When a pair of cancer and normal samples have reached this step, the workflow performs somatic mutation calling on them.

Into something like this:

The workflow takes in FASTQ-formatted sequencing data from pairs of tumor and normal samples. The workflow then aligns the FASTQs of each sample to the human reference genome, marks PCR duplicates, and recalibrates base quality. As a final step, the workflow performs somatic mutation calling on the tumor and normal samples, comparing the two of them to see how the tumor and normal samples differ from each other.

If that's overkill, maybe something like this:

The workflow takes in FASTQ-formatted pairs of tumor and normal samples. These FASTQs are then aligned to the human reference, followed by marking of PCR duplicates, and base quality recalibration. As a final step, the workflow performs somatic mutation calling on the tumor and normal samples.

@aofarrel yeah that's more clear, thanks! Just made the change.

@sitapriyamoorthi when you have time can you add the details about the test samples and workflow diagram?


Cleanup test data - 65

[Auto generated]
Number: [#65]

must-gather-explorer[pull_request][e79b0610-b86c-11ef-8c3d-e090fb4805a1][PR 65]: Closing issue for PR: Cleanup test data.
PR was closed.


Calling audio.getDevices() causes crash

I'm trying to integrate lua-deepspeech and I'm running into a crash when calling audio.getDevices() to get access to the microphone:
Assertion 'm->state == STATE_PASSIVE' failed at pulse/mainloop.c:787, function pa_mainloop_prepare(). Aborting.
Aborted (core dumped)
Using a fresh Ubuntu 20.04 install.  Playing audio works as normal.

I was able to reproduce this.  FWIW it doesn't occur on the dev branch (that branch switched from PulseAudio to ALSA).  So I guess it will be fixed in the next release.

Just tried dev branch - can confirm that it fixes the issue. Thanks!


VS Code 1.31.1 does not respect "update.channel": "none"

VSCode Version: 1.31.1
OS Version: Windows 10 Pro Build: 17134.590

Steps to Reproduce:

Install VS Code 1.31.1
Set settings of Update Channel to None
"update.channel": "none"
Restart VS Code
Verify that the update 1.32.1 was installed

Does this issue occur when all extensions are disabled?: Yes
Interestingly with extensions disabled, the usual welcome to version 1.32.1 is not displayed. The update is applied anyway.
I see that in 1.32.1 the setting is called update.mode, and update.channel gives a deprecated warning, but on 1.31.1 the only setting available that i can see is update.channel

We moved from update.channel to update.mode. If you have update.channel set in your user settings, then it will still be respected. If you have both settings set, only update.mode is respected. Each should be set in user settings, not workspace settings.
Where do you have your setting defined? Did you have both set?

Yes I understand that update.channel is being deprecated.
I tried combinations, with just update.channel, and both channel and mode, and yet the update still happens in any of the cases.
I have a feeling this should be a very hard to reproduce bug, since others seem to be totally unaffected.
The main motivation for me to stay in 1.31.1 was related to #69534 , which seems to be solved in insider, so I will probably move to that one.
just for debugging help here go the contents of my %APPDATA%\Code\User\settings.json
{
    "gitlens.advanced.messages": {
        "suppressShowKeyBindingsNotice": true
    },
    "gitlens.historyExplorer.enabled": true,
    "git.enableSmartCommit": true,
    "git.autofetch": true,

    "emulator.emulatorPath": "%ANDROID_HOME%\\emulator\\emulator.exe",
    "window.zoomLevel": 0,
    // "emulator.emulatorPath": "C:\\Users\\Rui\\AppData\\Local\\Android\\Sdk\\emulator\\emulator.exe"

    "files.associations": {
        "*.js.liquid": "javascript",
        "*.scss.liquid": "scss",
    },
    "dart.flutterSdkPath": "C:\\Users\\Rui\\Projects\\framework_tests\\flutter",
    "files.autoSave": "afterDelay",
    "editor.fontFamily": "Fira Code, 'Courier New', monospace",
    "editor.fontLigatures": true,
    "workbench.iconTheme": "material-icon-theme",
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "typescript.updateImportsOnFileMove.enabled": "always",
    "gitlens.views.fileHistory.enabled": true,
    "gitlens.views.lineHistory.enabled": true,
    "prettier.singleQuote": true,
    "todohighlight.isEnable": false,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "update.mode": "none",
    "update.channel": "none",
}

Thanks,
Rui Pires

Did you restart Code when changing that value?

Yes, both with extensions on, and disabling extensions.
In fact when changing the setting from default to none, VS Code requests a restart, which I honor.
Also tried restarting with just the update.channel setting, just the update.mode setting, and both.
All in all I must have reinstalled version 1.31.1 about 20 times this past two days.
In version 1.31.1 when checking the raw JSON settings file, update.mode appears underlined in green, with the tooltip saying unknown setting (as expected this one I suppose)
Thanks

This is very strange, as I can't reproduce.
If you want to stay in 1.31 for the time being I suggest using the ZIP release which won't auto update itself.

Yeah, I figured this would be a very hard to reproduce one.
I think its best to move on, keeping this as a reference should anyone search for a similar bug.
Thanks for your time.