.NET 4.7 JIT creates infinite loop, where .NET 4.6 JIT did not

Building the below code in VS Release mode results in different behavior when running the resulting binary in .NET 4.6 vs 4.7.
static void Main(string[] args)
{
    var c = new ChangeAFlagLater();
    while (!c.Flag) ;
}

class ChangeAFlagLater
{
    public ChangeAFlagLater()
    {
        Task.Delay(1000).ContinueWith(_ => Flag = true);
    }

    public bool Flag;
}

When running with 4.6, the while loop exits after the other thread changes Flag, but with .NET 4.7 it gets stuck looping forever. It's clear in the 4.7 disassembly that Flag isn't being checked again after entering the loop:
00007FF90031049F  movzx       eax,byte ptr [rsi+8]
00007FF9003104A3  test        eax,eax
00007FF9003104A5  je          00007FF9003104A3

Obviously, Flag should be marked volatile since it's being changed by another thread, and doing so prevents the infinite loop (je goes to 49F instead). Unfortunately, we found this in a production release running on a machine that had .NET 4.7 installed on it through Windows Updates, so it's a rather sneaky change in behavior. We hadn't noticed it yet on our dev machines because we mostly run in debug/without compiler optimizations.
Is this change in JIT considered a bug or is it a known issue or something?

From what I know, it's a fluke that that code ever worked. You should use Volatile.Read(ref c.Flag) if you're expecting changes in another thread.
I think it's a valid optimization to observe that the thread you're on never changes the value of c.Flag and therefore it isn't worth checking. Even without that optimization, there's no guarantee that the thread will update its cache of the value.

Also Volatile.Write(ref Flag, true) in the other thread.

Further, you're burning CPU with that busy loop, possible starving other threads of CPU on a single-threaded system. It's much better to use a signaling primitive like ManualResetEventSlim.

In other words, you should definitely be doing:
static void Main(string[] args)
{
    var c = new ChangeAFlagLater();
    c.WaitForChange();
}

class ChangeAFlagLater
{
    public ChangeAFlagLater()
    {
        Task.Delay(1000).ContinueWith(_ => mres.Set());
    }

    private readonly ManualResetEventSlim mres = new ManualResetEventSlim();
    public void WaitForChange() => mres.Wait();
}

Or if the ChangeAFlagLater shouldn't be responsible to notify you when its flag changes, whoever does cause the flag to change is responsible to provide a ManualResetEventSlim or AutoResetEvent or other means of letting other threads wait nicely.

The author of the loop told me that it was a testing hack and he intended to use a proper wait before committing. My fix was to have it await the completion of the Task that was responsible for changing the flag.
After doing some more searching, it looks like I have my premise backwards. There are a few examples of this optimization in .NET versions before 4.6. So 4.6 looks to be the outlier where this loop didn't result in an infinite loop, and we managed to add the code after switching the app to build to 4.6.

Is the continuation executed on a different thread? If so then this behaviour is totally fine and the optimizer does its job.

@AronParker Yes.


ros console not working

RancherOS Version: (ros os version)
1.2.0 running in VMWare and created with docker-machine
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
baremetal VMware ESXi 6.5 (2017-12)
for h in {z01,z02}; do \
    docker-machine create \
    --driver vmwarevsphere \
    --vmwarevsphere-disk-size 16384 \
    --vmwarevsphere-memory-size 4096 \
    --vmwarevsphere-boot2docker-url https://github.com/rancher/os/releases/download/v1.1.0/rancheros.iso \
    --vmwarevsphere-username=$vmusr --vmwarevsphere-password=$vmpwd \
    --vmwarevsphere-vcenter <IP_ADDRESS> $h ;\
    docker-machine ssh $h "echo '#cloud-config' >cloud && echo 'ssh_authorized_keys:' >>cloud && cat .ssh/authorized_keys* >>cloud  && sed -e 's/^ssh-/  - ssh-/g' -i.bak cloud" ;\
    docker-machine ssh $h "sudo ros install -f -c cloud -d /dev/sda -i rancher/os:v1.2.0" ;\
    docker-machine ssh $h "sudo ros os upgrade -f" ;\
    docker-machine regenerate-certs -f $h ;\
    docker-machine ssh $h "sudo ros engine switch docker-17.12.1-ce" ;\
    docker-machine ssh $h "sudo ros console switch -f alpine" ;\
done
docker-machine ls

No matter what I do sudo ros console switch -f alpine does not change the console. I also tried enable with a reboot and the default remained the same.
$ docker-machine ssh vm03
[docker@vm03 ~]$ sudo ros console list
disabled alpine
disabled centos
disabled debian
current  default
disabled fedora
disabled ubuntu

I would also add the default is a bad console name.

I can not reproduce on GCE.
Can you please manually run ros console switch -f alpine on your setup?
I want to see if there are some error logs.

Thanks ... before I put together this script I had executed the steps manually and was not able to get the switch to work.... I provided the script as a way to describe my environment. In my initial experience the console switch prompted me with the y/n etc... but never executed the switch...
 I just ran the command AGAIN and it worked. So I'm closing the issue.  Thanks again.


Determine AZs

Needing to determine Az1,Az2,Az3 for a particular region/account is a pain: I was thinking a "probe" template that creates a VPC+3x subnets using Fn::GetAZs could do that automagically: either us-east-1a, us-east-1b, us-east-2c are valid for you, or there's a parseable error stating which AZs can contain subnets (for me it's us-east-1a, us-east-1c, us-east-1d: hence the pain )

"Official" approach of AWS is just using one subnet, and have AWS pick which AZ that one subnet is in. (see example ASG templates)


JSON serialization

Hi,
I would want to use a REST API.
Is there an easy way to serialize / deserialize AS3 objects in JSON ?
It seems that com.adobe.serialization.json.JSON package is available in Air but not in Royale...
Thanks

@Nisaba I believe you can simply use JSON.

Are you sure that it works with AS3 objects ?
I would want to map the json I receive from API directly to an ArraList object.
And I want to map an ArrayList to a Json that I send to the API.
I can do that manually but it's not very efficient

If you want to serialize an AS3 object, you should define a toJSON() method and that will automatically be used to serialize the object to JSON when using JSON.stringify()
For an ArrayList you can do something like this:
public class JSONArrayList extends ArrayList{
  public function JSONArrayList(initialSource:Array=null) {
    super(initialSource);
  }
  public function toJSON():Object{
    return source;
  }
}

Maybe we should add toJSON to the built-in ArrayList, but it's not very difficult to create a serializable version. 🤷

Also, check out the org.apache.royale.reflection.beads.JSONReviver bead. It's used in the ASDoc project.

Yes, it works !
That was easier than I thought !   :)
Thank you


Provide RPM package on release

please proivde the RPM package to support rhel,centos ,rocky linux and so on,for example el7,el8,el9.

Welcome any contributions to build it in my release pipeline.

Could anyone please help on this.This would make the installation process of the extension on the docker image much easier


MINOR FIX: Fix GetRandomDateNumber

Closes #239

LGTM

@Sharaf-Mansour send me your email - you win $25!


Add tests for Exception Handling in Iterators

Description
This adds additional tests for exception handling in Iterators. This requires the following PR to be merged: https://github.com/dmlc/dmlc-core/pull/366
Checklist
Essentials

[x] Passed code style checking (make lint)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] added test

Comments

Requires https://github.com/dmlc/dmlc-core/pull/366 to be merged to dmlc-core.

@piiswrong @szha could you follow up?

Closing this. Please see #9869 which contains these tests


Expose guest topology to tests and scripts

multihost plugin took care of setting some multihost-related envvars,
plus it added entries to /etc/host. Unfortunately, being part of
prepare step, these changes would not happen when the prepare step
was skipped, or in single-host scenarios.
The functionality is now part of the core step implementation, and
therefore applied to all guest-backed steps (prepare, execute,
finish). It no longer makes modifications to /etc/hosts, instead tmt
exposes guest-related information in files whose path is stored in
well-defined environment variables.
Tests - and prepare or finish scripts - may then import these files, and
use provided information to reach every other guest. Guest names are not
resolvable, instead a script may acquire the hostname/IP from the
topology file.
This drops the need for environment variables like TMT_GUESTS,
TMT_ROLES or TMT_GUEST_* - all necessary information is now saved in
files.

tests/full finished and /tests/execute/nonroot is failing.
The /etc/hosts manipulation means that prepare shell has to run as root, we techniclly support other users as long as they have configured 'sudo' correctly.
I'm not sure how to solve that, we are missing way how to make tmt aware that prepare -h shell script needs privileged user. Personally I'd be against running all scripts as root (or via sudo).

Ouch. Yeah, not going to run everything with root.
On the other hand, this is a prepare script, but something tmt runs. Don’t we have some “has sudo” flag somewhere we could use, and actually obey here? This might be the actual issue, patch not using “use sudo” flag correctly.

On the other hand, this is a prepare script, but something tmt runs. Don’t we have some “has sudo” flag somewhere we could use, and actually obey here? This might be the actual issue, patch not using “use sudo” flag correctly.

Hm, something similar was done in a83e73b but it might be worth to have it as a 'fact' now

That's it! I couldn't find it :/ Ok, I'll try to amend these two into some solution, maybe we'll need an extra patch to introduce the fact. Should be quick to resolve.

On the other hand, this is a prepare script, but something tmt runs. Don’t we have some “has sudo” flag somewhere we could use, and actually obey here? This might be the actual issue, patch not using “use sudo” flag correctly.

Hm, something similar was done in a83e73b but it might be worth to have it as a 'fact' now

That's it! I couldn't find it :/ Ok, I'll try to amend these two into some solution, maybe we'll need an extra patch to introduce the fact. Should be quick to resolve.

Another shot at /etc/hosts in https://github.com/teemtee/tmt/pull/2072/commits/aa5a0dbb155bd4f06cf923e682d2ff435ee8bfcf, this time with added sudo when needed.

There is something not working for me with this PR in place. I do not know details yet but I suspect that with this change tmt is not passing a guest in the TMT_ROLE_xxx when provision: connect is used and instead it uses the name of the role. Please reach out to me directly next week eventually, I can help you to do the setup or prepare a one for troubleshooting.

@kkaarreell would be nice if you could test this one out ....

Rebased & the main commit message was amended heavily to reflect the changes.

I tested this PR running the following test plan for https://github.com/beakerlib/sync/tree/master/sync runtest.sh:
summary: sync library self-test plan

provision:
  - name: server
    how: connect
    guest: <hostname1>
    user: root
    role: server
  - name: client
    how: connect
    guest: <hostname2>
    user: root
    role: client

discover:
  - name: self-test
    how: fmf
    where:
      - server
      - client
    test:
      - /sync

execute:
  how: tmt

prepare:
    # To get /distribution/sync-internal we need beaker-tasks library.
    - name: Add beaker-tasks repository
      where:
        - server
        - client
      how: shell
      script:
        - dnf config-manager --enable beaker-tasks

$ tmt run -a -vvv plans --name testplan report -vvv finish
And it worked fine for me. Since I am expecting 'server' and 'client' roles I used the new shell variables in my library as follows:
    if [ -f "$TMT_TOPOLOGY_SH" ]; then
        source $TMT_TOPOLOGY_SH
        export SERVERS=${TMT_GUESTS["server.hostname"]}
        export CLIENTS=${TMT_GUESTS["client.hostname"]}
    fi

I have just tested this PR on my multi-host test and it worked well. The only issue I have noticed is that TMT_TOPOLOGY_SH is not exported when tmt run ... login but that is not serious and I think it would deserve separate PR.

This change breaks /tests/multihost/web test as it relies on the server hostname to be resolvable:
Resolving httpd-server (httpd-server)... failed: Name or service not known.

It's run as part of the full test suite only.

This change breaks /tests/multihost/web test as it relies on the server hostname to be resolvable:
Resolving httpd-server (httpd-server)... failed: Name or service not known.

It's run as part of the full test suite only.

Should be fixed with the following patch. I will try to verify it tomorrow.
diff --git a/tests/multihost/web/data/test.fmf b/tests/multihost/web/data/test.fmf
index ff6efb31..902f57a7 100644
--- a/tests/multihost/web/data/test.fmf
+++ b/tests/multihost/web/data/test.fmf
@@ -11,11 +11,13 @@
 /client:
     require: [curl, wget]
     test: |
+        . "$TMT_TOPOLOGY_BASH"
+
         [[ $(hostname) == curl-client ]] && command="curl --silent"
         [[ $(hostname) == wget-client ]] && command="wget --quiet -O -"

         for count in {1..33}; do
             echo "Get file using '$command', attempt $count."
-            $command http://httpd-server/ | grep -q foo
+            $command "http://${TMT_GUESTS[httpd-server.hostname]}/" | grep -q foo
             sleep .$[$RANDOM % 10]
         done

Thanks for the fix. Verified and committed as a8a346f0.

/packit test

/packit test


fix: updated contrib.installation_advancement to work in 1.20.5+

The beet.contrib.installation_advancement plugin still uses the old pre-component syntax for items in advancements, and only works up to 1.20.4. This PR updates it to work in 1.20.5+

Very nice, thank you :)


Whitespace around links

When converting text that contains HTML links the Markdown links do not have spaces before or after then, causing them to be concatenated to the adjoining words.

I'm afraid I can't reproduce the issue you describe. Would you be able to give an example of the HTML you are trying to convert?
Thanks

Sure
<meta charset='utf-8'><h3 style="box-sizing: border-box; font-weight: 600; margin: 24px 0px 16px; color: rgb(17, 17, 17); padding-bottom: 0rem; line-height: 1.25; font-size: 1.25rem; letter-spacing: -0.03rem; font-family: "Source Sans Pro", "Lucida Grande", sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">See the migration guide for details

Now that I look at it, it likely has more to do with not rendering the spaces from the empty span tags that are rendered before and after the link.  This code is weird because it's generated by the clipboard.  I've got a codemirror editor and I'm converted pasted text to markdown
this.editor.on('paste', (cm, e) => {
    let html = e.clipboardData.getData('text/html');

    if (html === "") {
        this.setState({ pasted: null })
    } else {
        this.setState({ pasted: this.htmlToMarkdown.turndown(html) })
    }
})

When converting text that contains HTML links the Markdown links do not have spaces before or after then, causing them to be concatenated to the adjoining words.

Just to clarify, are you seeing too much white space around those links, or no whitespace?
When I convert the following:
<meta charset='utf-8'><h3 style="box-sizing: border-box; font-weight: 600; margin: 24px 0px 16px; color: rgb(17, 17, 17); padding-bottom: 0rem; line-height: 1.25; font-size: 1.25rem; letter-spacing: -0.03rem; font-family: "Source Sans Pro", "Lucida Grande", sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">See the migration guide for details

I get:
### See the  [migration guide](https://github.com/domchristie/to-markdown/wiki/Migrating-from-to-markdown-to-Turndown)  for details

There are two spaces instead of the expected one, which is a bug, but I'm not seeing words being concatenated.

Odd, I'm seeing the links concatenated with the words around it
On Mon, Jun 25, 2018, 16:39 Dom Christie<EMAIL_ADDRESS>wrote:

When converting text that contains HTML links the Markdown links do not
have spaces before or after then, causing them to be concatenated to the
adjoining words.
Just to clarify, are you seeing too much white space around those links,
or no whitespace?
When I convert the following:
See the migration guide for details
I get:
See the  migration guide  for details
There are two spaces instead of the expected one, which is a bug, but I'm
not seeing words being concatenated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/domchristie/turndown/issues/237#issuecomment-400104570,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkQ9WzwV0iQYTBdhdZdAgoGxpBQQkq_ks5uAViXgaJpZM4U0pth
.

What happens when you paste in:
<meta charset='utf-8'><h3 style="box-sizing: border-box; font-weight: 600; margin: 24px 0px 16px; color: rgb(17, 17, 17); padding-bottom: 0rem; line-height: 1.25; font-size: 1.25rem; letter-spacing: -0.03rem; font-family: "Source Sans Pro", "Lucida Grande", sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">See the migration guide for details

into http://domchristie.github.io/turndown/ ?
How are you using Turndown: browser or node, and which version?

I often saw whitespace problems around links and between some words when I export a heavily edited, commented, etc. doc from Google Docs, then convert to html with Turndown (browser version, which I prefer to do because I like to have links as referenced, for example). I think it's mostly because   gets converted to no space, so I manually replace those with normal spaces before converting.

not to necro this but I'm running into the exact same thing, and I suspect it's an eccentricity with rich text / the clipboard API rather than turndown: copying and pasting the body of, say, https://jmduke.com/, into a codemirror results in the lack of spaces before/after hyperlinks, whereas grabbing the view source is fine.  Will try and track this down this weekend and update the issue!


unable to SSH after running turtlebot_setup.sh script

Please provide the following information:

OS: (e.g. Ubuntu 22.04)
ROS Distro: (e.g. Humble)
installed:

Expected behaviour
ssh back into the turtlebot4 after installing and rebooting
Actual behaviour

static IP changes
unable to establish ssh connection with the new IP address
Robot does not respond after rebooting

To Reproduce
Provide the steps to reproduce:

run wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/humble/scripts/turtlebot4_setup.sh | bash
in this line https://github.com/turtlebot/turtlebot4_setup/blob/038d6f881ed56748d5727bc43c449084a628e591/scripts/turtlebot4_setup.sh#L48 the netplan yaml is removed and this might cause the issue

Hey, suffering from the same bug^^^^ I can't ssh as well.
I'm also having an issue where the different ros packages are also not being able to be located by apt. I am unable to run turtlebot4-setup as my computer is saying it is not a command

@VishnuVelayuthan @roni-kreinin
I have found a workaround for this problem. I stopped following the documentation found in the readme and this helped me a lot.  Especially this wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/humble/scripts/turtlebot4_setup.sh | bash command caused the ssh to break as it simply removed the netplan yaml file sudo rm /etc/netplan/50-cloud-init.yaml.
https://github.com/turtlebot/turtlebot4_setup/tree/humble-readme This provides more steps on configuring but this is also not fail proof. I will write a documentation if I succeed in setting this up and would send a PR.
And turtlebot4-setup is not a command and its an alias which in turn should run ros2 run turtlebot4_setup turtlebot4_setup. You can check the aliases here.
Honestly, turtlebot is something one can use out of box but this version is very buggy and not an out of the box usable robot or to be specific it is not really fit for multi robot use case.
PS: I own four Turtlebot4 robots

@ipa-rar The turtlebot4_setup.sh script is used to set up the actual humble image from a clean ubuntu 22.04 server image. Unless you want to make a modified version of the turtlebot4 image, I would recommend just downloading the built image from http://download.ros.org/downloads/turtlebot4/ and flashing that.

I have flashed the prebuilt image using the documentation provided in the Readme but when the robot boots up it boots into BusyBox as shown here.

Then flashing the card using Balena Etcher helped to boot up the robot with the new image.


Bump kind to v0.23.0

Responds to the new kind release.
Keeps our k8s version at 1.29 for now (despite support for v1.30 being added) to minimise changes we make here.
cert-manager will need additional work as a followup.

/approve
/lgtm


Text: Implement textAlign justify for android O+

Add textAlign justify for android O+(api level >=26)
Resolves https://github.com/facebook/react-native/issues/22475

Changelog:
[Android] [Added] - Implement textAlign justify for android O+
Test Plan:
All unit tests passed.
Check Text demo in RNTester to see whether paragraphs with textAlign: justify looks as expected on android O+ device.

ping @shergin

ping @hramos @TheSavior Anyone available to review this?

@hramos Any update about this?


Use printf rather than echo

A fix based on hackernews comment https://news.ycombinator.com/item?id=33376812

Here's a bunch of other issues found from shellcheck:
In - line 4:
  s=$(curl -fsSL $1)
                 ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
  s=$(curl -fsSL "$1")

In - line 7:
    alias shasum=sha1sum
          ^------------^ SC2262 (warning): This alias can't be defined and used in the same parsing unit. Use a function instead.

In - line 9:
  c=$(echo $s | shasum | awk '{print $1}')
           ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                ^----^ SC2263 (info): Since they're in the same parsing unit, this command will not refer to the previously mentioned alias.

Did you mean:
  c=$(echo "$s" | shasum | awk '{print $1}')

For more information:
  https://www.shellcheck.net/wiki/SC2262 -- This alias can't be defined and u...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2263 -- Since they're in the same parsing...

Thanks @rnhmjoj . Fixed those except for the alias one. Looking into uses a var as suggested on HN

Remember to keep the README (and any other copies of this code) up to date.


Can you please help?

I am saving video with filter after selecting a video from gallery, but it is rotated by mostly 90 degrees, and a green line has been added to the video, can you please help in that?

try recording a video with another app and tell me if you get the same line

Please checkout the latest code.

ok i am checking it.

Now it is perfect, thank you very much buddy, keep coding :)

Hey @wysaid, what has been changed in the code? Only the .SO file has been adjusted.

Just changed this line, and recompiled the library: https://github.com/wysaid/android-gpuimage-plus/commit/16cd891675e2ffdd32f51781e193d9201827944e

Ah right, thanks!


Errors while setting up nr-lambda

Hey there,
Thanks for the interesting tool. I was hoping to play around with this over the weekend but I ran into a few issues I was unable to address.
Based on your documented example args, I was able to get the CloudFormation stacks applied. I see the following behavior though:
❯ ./newrelic-cloud set-up-lambda-integration --nr-account-id blah --regions us-west-2 \
--linked-account-name "blah" \
--nr-api-key blah \
--nr-license-key blah
Created role [NewRelicLambdaIntegrationRole] with policy [None] in your default AWS account.

Failed actions:
  Function: None, Region: None, Error: Failed to set up lambda integration: 'NoneType' object is not subscriptable

Simply running it a second time immediately afterward, it works.
❯ ./newrelic-cloud set-up-lambda-integration --nr-account-id blah --regions us-west-2 \
--linked-account-name "blah" \
--nr-api-key blah \
--nr-license-key blah
Cloud integrations account [myaccount] already exists in New Relic account [blah].
The AWS Lambda integration is already enabled in Cloud integrations account [myaccount] of New Relic account [blah].
Setting up "newrelic-log-ingestion" function in regions: ['us-west-2']

Completed actions:
  Function: newrelic-log-ingestion, Region: us-west-2

It's unclear to me why it fails the first time. After the successful execution, I can load up the Lambda function in the AWS console and I receive the following error at the top of the page:

An error occurred while listing cloudwatch-logs relations: 2 validation errors detected: Value '' at 'logGroupName' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'logGroupName' failed to satisfy constraint: Member must satisfy regular expression pattern: [.-_/#A-Za-z0-9]+ (Service: AWSLogs; Status Code: 400; Error Code: InvalidParameterException; Request ID: 84a2692d-7f2e-11e9-bd9f-f916ced906c2)

I have not had a chance to look into it more yet. It's unclear to me if that's preventing the integration from working. When I try to verify the AWS account connection (using the instructions from https://one.newrelic.com/launcher/infra-nerdlets.launcher-lambda-onboarding), it says that my linked account has failed to connect with New Relic.
Let me know if I can provide any extra info to help troubleshoot. For what it's worth, I have no other Lambda functions in the region I'm testing. I reviewed the CloudFormation stack application and there are no errors.
Cheers,
Daniel

Hi Daniel,
thanks for reporting the issue. We'll take a look and see if we can understand what's  happening.
The Lambda integration should be working, but only fetching data from CloudWatch. If you need more detailed metric information, you'll need to also execute the 2nd supported command stream-lambda-logs.

Right on. Thanks @ardias.  If you can't repro, let me know. Maybe it's something in scoped to my AWS account.

Awesome. Thanks! It looks like things are working now. I'll go ahead and close this out. Cheers!


Remove workers from proxy config file

What should be done?
The proxy should receive the workers through the start-proxy CLI command as a parameter
How should it be done?

Remove the worker list from the configuration file.
Add a parameter to the start-proxy command to declare the workers.

When is this task done?
The task is done when we don't persist the workers anymore.
Additional context
No response

I was actually thinking that we'd keep the config file but take the list of workers out of it since this part seems to be pretty dynamic.
We could also do a combination of strategies - i.e., CLI params override the config file. But either way, I'd remove the list of workers from the config file.


Different from LIA

In LIA, "output video" contain the same proportion of body+head parts as in "source image". But in DPE, the proportion of body+head parts in "output video" is intuitively determined by "driving video", similar to a cropping process.
Is this result caused by the pre-trained model? Can I control the percentage of cropping?

In fact, due to absolute driving, the proportion of the pose-driven stage is close to the driving image.
But there is no such problem for expression transfer.
A theoretical solution to this is to make face proportions of the driving image and the source image close during the data process by padding operation (DPE has no special requirements for face cropping, so it can be adjusted according to the situation).
DPE focuses on the transfer of expression, so we do not specifically deal with the proportion problem of pose driving.

Yes, actually it's true.
As I tested in the case where the proportion of body in driving image is smaller than that in source image: in pose DRIVING mode, source image is cropped according to the driving image; in expression DRIVING mode, source image appears to be cropped and then automatically padded, like this.
first frame of d.mp4

first frame of edit.mp4

first frame of s.mp4

The bottom padding part is difficult to be restored by GFPGAN or other models. It means that even making face proportions of the driving image and the source image CLOSE, the image quality of bottom part is not such good. At the same time, the image quality of face part doesn't seem to be that good either.
I have two questions.
I'm curious what causes this problem that different from LIA? Then as I see in your project page, all output videos have a large proportion of body in video EDITING cases. Do I need to wait for a pre-trained model for video EDITING to be released if I want a output video with large proportion of body?

Thanks for your patience. I'll try it following these steps, although pasting back may create some minor issues like alignment.
reupload 3 pics:
first frame of d.mp4

first frame of edit.mp4

first frame of s.mp4

I will upload the pasting code ASAP.
The face proportions in this example are small compared to the VOX dataset we used for training, which may be a cause of artifacts.

Agree and thanks!


lsp-ui-doc doesn't show docs provided by clangd correctly.

What did you expect to happen?
It should show normally.
What actually happened?
many characters like this:

Additional details:

Include a link to your private config
https://gitlab.com/h-cheung/dotfiles/-/tree/master/doom.d
lsp-ui-doc-position is set to 'at-point and lsp-ui-doc-enable is set to t.

The version of clangd is 10.0.0.
I don't know this issue is caused by lsp-ui, clangd, or some configs in doom or private.

If an error message is involved include a backtrace of it.
How to acquire a backtrace:
https://github.com/hlissner/doom-emacs/blob/develop/docs/getting_started.org#how-to-extract-a-backtrace-from-an-error

Steps to reproduce:

Use clangd and open a cpp file.
Enable lsp-ui-doc.
Write some code and use a STL container, for example, queue.
Move to the name of STL container in code, and wait for less than one second.
A frame like the one in the screenshot will show up.

System information:

Place the output of `M-x doom/info` or `~/.emacs.d/bin/doom info` here.
emacs   version    28.0.50
features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2
build      Jul 20, 2020
buildopts  (--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --with-nativecomp --enable-link-time-optimization --enable-profiling --with-x-toolkit=gtk3 --without-xaw3d --with-cairo --with-xwidgets --without-compress-install 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -flto -fuse-linker-plugin -fuse-ld=gold' LDFLAGS=-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now CPPFLAGS=-D_FORTIFY_SOURCE=2)
windowsys  x
daemonp    server-running
doom    version    2.0.9
build      HEAD -> develop a8a918121 2020-07-19 00:36:37 -0400
dir        ~/.doom.d/
system  type       gnu/linux
config     x86_64-pc-linux-gnu
shell      /usr/bin/zsh
uname      Linux 5.7.9-zen1-1-froidzen #1 ZEN SMP PREEMPT Fri, 17 Jul 2020 18:39:25 +0000 x86_64
path       (/usr/local/sbin /usr/local/bin /usr/bin /opt/cxoffice/bin /var/lib/flatpak/exports/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl ~/.local/bin /opt/android-sdk/platform-tools/ ~/.emacs.d/bin/ /usr/lib/emacs/28.0.50/x86_64-pc-linux-gnu)
config  envfile    nil
elc-files  0
modules    (:completion (company +childframe) (ivy +childframe +icons +fuzzy +prescient) :ui doom doom-dashboard doom-quit hl-todo hydra modeline ophints (popup +all +defaults) pretty-code treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors parinfer rotate-text snippets :emacs (dired +ranger +icons) electric (ibuffer +icons) undo vc :term eshell vterm :checkers (syntax +childframe) :tools debugger (eval +overlay) gist (lookup +dictionary +docsets) (lsp +peek) (magit +forge) make pass pdf rgb :lang (cc +lsp) emacs-lisp (json +lsp) (markdown +grip) (org +brain +dragndrop +gnuplot +hugo +journal +jupyter +pandoc +pomodoro +present) (python +lsp) qt (sh +lsp) (yaml +lsp) :config (default +bindings +smartparens) :h-cheung vterm-run chinese (telega +auto-method) tools ui cc-extra systemd pkgbuild)
packages   (n/a)
unpin      (n/a)
elpa       (n/a)

emacs-lsp/lsp-ui#476 It seems that this issue isn't caused by doom.


Refactor provClasses.py

Most classes are defined in provClasses.py. Refactor to one file per class!

I just realized: This is not Java


Duplicate of #11696.


doc._.coref_resolved returns empty string if no coreference

I noticed that doc._.coref_resolved will return the empty string if there is no coreference mentions in a document. For example:
>>> import en_coref_md
>>> nlp = en_coref_md.load()
>>> text = 'There is no coreference mentions here!'
>>> doc = nlp(text)
>>> resolved_text = doc._.coref_resolved
>>> resolved_text
>>> ''

Is this expected behaviour? I would have expected doc._.coref_resolved to just return the same text that came in if no coreference mentions were found. Apologies if this behaviour is documented somewhere, I couldn't find it if so!

This is definitely a significant issue for someone not aware of it if they're about to process tons of documents for another task. The most logical behavior to me at least would be to return the original text, but that isn't what happens as mentioned. Internally, there should be a check to doc._.has_coref, and if that returns False, then no further processing is need.

I agree! I’ll see if I can get around to opening a pull request. Should be really straightforward.

Fixed now.


Provide Angle For HoloJS PreBuild as Nuget?

Could we request to have Nuget version of Angle for HoloJS for Win32 and ARM
e.g. https://www.nuget.org/packages/ANGLE.WindowsStore/

There's a HoloJs Nuget package at https://www.nuget.org/packages/holojs/
It contains everything required to use HoloJs in Win32 and UWP apps

Why am I getting missing DLLs on UWP ARM apps (HoloLens 2) while building?


false positive optional dependencies

Problem
We build a library with reqwest & tokio dependencies using target wasm32-unknown-unknown in a workspace, but cargo wrongly includes some tokio optional dependencies (bytes, memchr, mio in this case) which fails to build under wasm32.
Steps
working
cargo new sandbox
cd sandbox
cargo add reqwest
cargo add tokio
cargo tree --target wasm32-unknown-unknown

output:
└── tokio v1.14.0
    └── pin-project-lite v0.2.7
    [build-dependencies]
    └── autocfg v1.0.1

unexpected
make test
cd test
echo '[workspace]\nmembers = ["sandbox"]' > Cargo.toml

and do the above steps.
cargo tree --target wasm32-unknown-unknown outputs:
└── tokio v1.14.0
    ├── bytes v1.1.0
    ├── memchr v2.4.1
    ├── mio v0.7.14
    │   └── log v0.4.14
    │       └── cfg-if v1.0.0
    └── pin-project-lite v0.2.7
    [build-dependencies]
    └── autocfg v1.0.1

Possible Solution(s)
No response
Notes
No response
Version
cargo +stable version --verbose

cargo 1.57.0 (b2e52d7ca 2021-10-21)
release: 1.57.0
commit-hash: b2e52d7cab0a286ee9fcc0c17510b1e72fcb53eb
commit-date: 2021-10-21
host: aarch64-apple-darwin
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.77.0 (sys:0.4.49+curl-7.79.1 system ssl:(SecureTransport) LibreSSL/2.8.3)
os: Mac OS 12.0.1 [64-bit]

cargo +nightly version --verbose
cargo 1.58.0-nightly (294967c53 2021-11-29)
release: 1.58.0
commit-hash: 294967c53f0c70d598fc54ca189313c86c576ea7
commit-date: 2021-11-29
host: aarch64-apple-darwin
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.77.0 (sys:0.4.51+curl-7.80.0 system ssl:(SecureTransport) LibreSSL/2.8.3)
os: Mac OS 12.0.1 [64-bit]

The difference is that a single-package project with the 2021 edition will use a different resolver. In a workspace, since there isn't a way to specify the edition, you have to explicitly specify the resolver as in:
[workspace]
resolver = "2"

You can read more about resolver versions here: https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#resolver-versions

Thanks for the anwser. I knew the resolver = "2", but didn't realize I have to specify it with workspace


starlark-rust is difficult to embed because monolithic crate pulls in heavy dependencies

The starlark crate contains not only the core Starlark parser and evaluator, but also the interactive REPL with its huge dependency tree. This sharply limits the utility of starlark-rust as an embedded library.
Following the example of https://github.com/rust-lang-nursery/futures-rs, can the current monolithic crate be split up? Keeping it in the same repo is fine, I just want separate compilation units.

Hi John,
I am very much for it.


Swapper docs have wrong illustration

On the following page:
https://dev.docs.0xsplits.xyz/core/swapper
First image illustration is wrong IMO, caller sends no tokens to swapper when calling the flash function while in docs it shows that the caller is sending the DAI, caller only receive the reward Eth or erc20 for calling the flash function.
This needs correction as protocol is going through audit and may lead to misconception.

Thanks @AhmadDecoded - we've updated the image to be more accurate


SOLR-15854: (java-semver-->semver4j)-LICENSE-MIT.txt rename follow-up

#515 follow-up:
wget https://raw.githubusercontent.com/semver4j/semver4j/v2.1.1/LICENSE

mv LICENSE solr/licenses/semver4j-LICENSE-MIT.txt

#515 follow-up:
wget https://raw.githubusercontent.com/semver4j/semver4j/v2.1.1/LICENSE

mv LICENSE solr/licenses/semver4j-LICENSE-MIT.txt

I imagine we could have validation logic to detect and repair things like this -- similar to spotless-check and spotless-apply -- but for now just doing a one-off change like this.

Ah sorry thanks @cpoerschke I checked the license was MIT but didn't realize it had different text in it. I'll be more careful going forward.


something went wrong with the icons

What happened to my Lens, something went wrong with the icons

Environment (please complete the following information):
Lens Version: 3.3.1
OS: ubuntu 18.04
Installation method (e.g. snap or AppImage in Linux): Web Download AppImage

Does this still happen with 3.4.0?

If this is still the issue, please re-open


Assign arch specific value to MAVEN_IMAGE for maven and jib-maven tasks

Hi ,
PR raised for required fix for addition of MAVEN_IMAGE parameter to jib-maven and maven tasks for P and Z(different values)  than x86.
I have allocated default value as below for x86 and replaced it in case arch is P and Z.  Please review and let me know if any changes are required.
/maven/pipeline.yaml
/jib-maven/pipeline.yaml
name: MAVEN_IMAGE
value: gcr.io/cloud-builders/mvn@sha256:57523fc43394d6d9d2414ee8d1c85ed7a13460cbb268c3cd16d28cfb3859e641
Thanks,
Snehlata Mohite.

Issue fixed in https://github.com/ppitonak/cluster-tasks-tests/pull/2 which is based on this PR but implemented in more maintainable way.


tried using this on windows to make a usb iso from ubuntu 17 but

results in not reading disk.
latest version of etcher was used running windows 10
it says it's done
used disk part to fix the usb drives.

Do you mean that Windows cannot read the disk? Or that yor computer can't boot from it?

Unless the USB disk is actually unbootable, I suspect this is just the standard 'problem' of Windows not being able to read Linux-format partitions. Either that, or https://github.com/resin-io/etcher/blob/master/docs/USER-DOCUMENTATION.md#flashing-ubuntu-isos
@jhermsmeier The problem of Windows not displaying Linux-disks has come up a number of times before - maybe worth adding something about this to the documentation?


Plugin: Processing job

Depends on https://github.com/biocore/qiita/pull/1541 so review/merge that one first
This PR adds the new object ProcessingJob, both to the DB and qiita_db, which will allow the plugin to keep track of the jobs that are being executed.

A few comments.

:+1: once the changes are made
On Nov 23, 2015 4:59 PM, "Antonio Gonzalez"<EMAIL_ADDRESS>wrote:

A few comments.
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiita/pull/1542#issuecomment-159117803.


Add temporary module logging

We need to determine two things:

Are worker bundles with multiple modules all that common and
Are worker bundles using module names that are known to be Node.js bare builtin specifiers.

The idea is for this logging to be temporary.

Should this have been a metric rather than a syslog? This seems like it'll be a very noisy log.


Select Basemanp

A user will be able to select either OpenStreetMap or Satellite imagery as a basemap. We need to determine if we are using Mapbox for the satellite imagery.
Basemap options should be specified in a configuration file.

It was decided that adding support for OSM would be useful, as it is very popular in the international development circle.


Failed to load delegate from libedgetpu.so.1 & Inappropriate ioctl for device with M.2 Accelerator A+E key

Description
I'm using the M.2 Accelerator A + E to do some PoC.
Currently I open the Kernel Config to build the necessary kernel module (coral tpu driver) and follow the official example to verify. I can see /dev/apex_0 after I insmod gaket & apex, but when I run the example python3 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt  --input test_data/parrot.jpg in the container (debian:10) it shows this error and also Inappropriate ioctl for device error.

The error also appear in Frigate NVR. It's weird that it shows no TPU device was detected, but there's /dev/apex_0 and also libedgetpu.so.1.0 under /usr/lib/aarch-linux-gnu directory.

What do I need to do for fixing it?

CONFIG_STAGING=y
CONFIG_STAGING_GASKET_FRAMEWORK=m
CONFIG_STAGING_APEX_DRIVER=m

kernel version

4.19.294

Driver version

apex 1.0
gasket 1.1.2

os

linux

Thanks.
reference
[1] https://coral.ai/docs/m2/get-started/#requirements
[2] https://coral.ai/docs/notes/build-coral/#required-components
[3] https://coral.googlesource.com/linux-imx/+/refs/heads/dkms/drivers/staging/gasket/
[4] https://github.com/google-coral/libedgetpu#building
Click to expand!
Issue Type
Bug
Operating System
Linux
Coral Device
M.2 Accelerator A+E
Other Devices
No response
Programming Language
Python 3.7
Relevant Log Output
python3 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt --input test_data/parrot.jpg

I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[0]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[0]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[0]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[0]
I tflite/edgetpu_context_direct.cc:106] USB always DFU: False (default)
I tflite/edgetpu_context_direct.cc:128] USB bulk-in queue capacity: default
I tflite/edgetpu_context_direct.cc:67] Performance expectation: Max (default)
I ./driver/mmio/host_queue.h:266] Starting in normal mode
I driver/kernel/kernel_registers.cc:83] Opening /dev/apex_0. read_only=0
I driver/kernel/kernel_registers.cc:97] mmap_offset=0x0000000000040000, mmap_size=4096
I tflite/edgetpu_context_direct.cc:401] Failed to open device [Apex (PCIe)] at [/dev/apex_0]: Internal: Could not mmap: Operation not permitted
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "examples/classify_image.py", line 123, in <module>
    main()
  File "examples/classify_image.py", line 73, in main
    interpreter = make_interpreter(*args.model.split('@'))
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 87, in make_interpreter
    delegates = [load_edgetpu_delegate({'device': device} if device else {})]
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 52, in load_edgetpu_delegate
    return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 163, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1

So close to returning my Accelerator because of this bug. Has anyone made any progress?


Builging 3.0.0-alpha.0 with Webpack 2.5.1 does not use absolute path for output dir

After initial setup for Webpack React project, the command npm run build-storybook, getting the error:
configuration.output.path: The provided value "./storybook-static/" is not an absolute path!

Could be solved possibly by path.resolve() or similar, as the command with absolute output path seems to make this working, npm run build-storybook -- --output-dir /absolutely/right/is/it.
Need more info?

Thanks @paazmaya for testing out the alpha! I believe this is a duplicate to #1052 , which has been fixed and should be released soon. Please reopen if you think it's a separate issue!

Thank you!
Seems like there was a suggested workaround, so I will be using
build-storybook --output-dir ${PWD}/storybook-static

until a new alpha comes out.
Happy to try out!


TWA ViP: Dynamic Control Options

Add standardised control options that can be retrieved dynamically from an agent

Resolved by #1341 and #1342


[Architecture] Multi-Site handling

The current way Isso handles multi-site setups is quite confusing and causes many headaches internally. It has grown organically rather than being an intentionally designed feature.
We should decide whether we want to support multiple sites in a single instance (and admin) or if we want to continue the multi-instance dispatch "solution".
Issues:

Migration of existing data and setups
Handling multiple sites in the admin interface
If using full URIs instead of only relative paths: Differentiating http/https variants

And much more to figure out.

Any way we can poll existing users for how many people actually use the multi-site feature? If it's low, then I feel that removing multi-site in favor of keeping Isso as a simple comment system would be best. And people can run multiple instances of Isso if they need multi-site.
I don't entirely understand how Isso handles multi-site internally, I'd have to go look at the code more to figure it out. But I get the feeling it's awkward.

Any way we can poll existing users for how many people actually use the multi-site feature? If it's low, then I feel that removing multi-site in favor of keeping Isso as a simple comment system would be best.

Yes, surveying people of how they actually use Isso would be hugely beneficial. Maybe opening an issue or discussion and let people comment on it with their usecase. I feel like we could give some example points that we'd be interested in, but not constrain the answers too much or ask for too much redundant info. Of course, people active on the bugtracker are not representative of users as a whole.


update and add languages

Hey @xx979xx thanks for the PR.
I'm just wondering if we can separated frame changes out of offroad changes.
It will be easier for comma to review it if we can have them in 2 different PRs
also the localized city name could be done by changing the cities5000.txt like I showed you last time, dont think its necessary now :)

Hey @xx979xx thanks for the PR.
I'm just wondering if we can separated frame changes out of offroad changes.
It will be easier for comma to review it if we can have them in 2 different PRs
also the localized city name could be done by changing the cities5000.txt like I showed you last time, dont think its necessary now :)

sure I will try


Microsoft Security Advisory ASPNETCore-July18: ASP.NET Core Denial Of Service Vulnerability

Microsoft Security Advisory ASPNETCore-July18: ASP.NET Core Denial Of Service Vulnerability
Executive summary
Microsoft is releasing this security advisory to provide information about a vulnerability in ASP.NET Core 2.0 and 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
Microsoft is aware of a denial of service vulnerability in ASP.NET Core when a malformed request is terminated. An attacker who successfully exploited this vulnerability could cause a denial of service attack.
The update addresses the vulnerability by correcting how ASP.NET Core handles such requests.
Announcement
The original announcement for this issue can be found at https://github.com/aspnet/Announcements/issues/311
Mitigation factors

If your application is behind a forwarding proxy such is Internet Information Server, Azure Application Gateway or nginx you will not be affected.

Affected software
Any ASP.NET Core based application that uses Microsoft.AspNetCore.Server.Kestrel.Core with a vulnerable version listed below and not hosted behind a forwarding proxy.

Package name
Vulnerable versions
Secure versions

Microsoft.AspNetCore.Server.Kestrel.Core
2.0.0, 2.0.1, 2.0.2, 2.0.3  2.1.0, 2.1.1
2.0.4  2.1.2

Microsoft.AspNetCore.All
2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8
2.0.9

Advisory FAQ
How do I know if I am affected?
.NET Core has two types of dependencies: direct and transitive. Direct dependencies are dependencies where you specifically add a package to your project, transitive dependencies occur when you add a package to your project that in turn relies on another package.
For example, the Microsoft.AspNetCore.Mvc package depends on the Microsoft.AspNetCore.Mvc.Core package. When you add a dependency on Microsoft.AspNetCore.Mvc in your project, you're taking a transitive dependency on Microsoft.AspNetCore.Mvc.Core.
Any application that has a direct or transitive dependency on the affected package can be exposed to the vulnerability if it does not meet any of the mitigation factors.
How do I fix the issue?
ASP.NET Core 2.1
To update ASP.NET Core 2.1 you should download and install the .NET Core SDK 2.1.302 on your development machines and build servers, and the .NET Core Runtime 2.1.2 on your deployment servers. Your application will roll forward to these versions on an application restart.
ASP.NET Core 2.0
If you're targeting ASP.NET Core 2.0 and using the Microsoft.AspNetCore.All metapackage update its version number to 2.0.9 to update the Microsoft.AspNetCore.Server.Kestrel.Core package, recompile, and redeploy. On your deployment servers, you should download and install the .NET Core 2.0.9 using the Windows Server Hosting Bundle for Windows and the dotnet-hosting-2.0.9 package for Linux servers.
ASP.NET 2.0 not targeting the meta-package
.NET Core projects have two types of dependencies: direct and transitive. You must update your projects using the following instructions to address both types of dependency.
Direct dependencies
Direct dependencies are discoverable by examining your csproj file. They can be fixed by editing the project file or using NuGet to update the dependency.
Transitive dependencies
Transitive dependencies occur when you add a package to your project that in turn relies on another package. For example, if Contoso publishes a package Contoso.Utility which, in turn, depends on Contoso.Internals and you add the Contoso.Utility package to your project now your project has a direct dependency on Contoso.Utility and, because Contoso.Utility depends 'Contoso.Internals', your application gains a transitive dependency on the Contoso.Internals package.
Transitive dependencies are reviewable in three ways, depending on your project format:

In the Visual Studio Solution Explorer window, which supports searching.
By examining the project.assets.json file contained in the obj directory of your project for csproj based projects.

The project.assets.jsonfiles are the authoritative list of all packages used by your project, containing both direct and transitive dependencies.
Fixing direct dependencies in Visual Studio 2017
Open projectname.csproj in your editor. If you're using Visual Studio, right-click the project and choose Edit projectname.csproj from the context menu, where projectname is the name of your project. Look for PackageReference elements. The following shows an example project file:
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.8" />
  </ItemGroup>
</Project>

The preceding example has a reference to the vulnerable package, as seen by the single PackageReference element. The name of the package is in the Include attribute.
The package version number is in the Version attribute. The previous example shows a single direct dependency on Microsoft.AspNetCore.All version 2.0.0.
To update the version to the secure package, change the version number to the updated package version as listed on the table previously.
In this example, update Microsoft.AspNetCore.All to the appropriate fixed package number for your major version. Save the csproj file. The example csproj now looks as follows:
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
  </ItemGroup>
</Project>

If you're using Visual Studio and you save your updated csproj file, Visual Studio will restore the new package version.
You can see the restore results by opening the Output window (Ctrl+Alt+O) and changing the Show output from drop-down list to Package Manager.
If you're not using Visual Studio, open a command line and change to your project directory. Execute the dotnet restore command to restore the updated dependencies.
Now recompile your application. If after recompilation you see a Dependency conflict warning, you must update your other direct dependencies to versions that take a dependency on the updated package.
Discovering and fixing transitive dependencies
There are two ways to view transitive dependencies. You can either use Visual Studio’s Solution Explorer, or you can review the project.assets.json file .
Using Visual Studio Solution Explorer
To use Solution Explorer, open the project in Visual Studio, and then press Ctrl+; to activate the search in Solution Explorer. Search for the vulnerable package and make a note of the version numbers of any results you find.
For example, searching for Microsoft.AspNetCore.Mvc.Core in an example project that contains a package that takes a dependency on Microsoft.AspNetCore.Mvc shows the following results in Visual Studio 2017:

The search results appear as a tree. In the previous results, you can see that a reference to Microsoft.AspNetCore.Mvc.Core version 1.1.2 is discovered.
Under the Dependencies node is a NuGet node. Under the NuGet node is the list of packages you have directly taken a dependency on and their versions.
In screenshot, the application takes a direct dependency on Microsoft.AspNetCore.Mvc. Microsoft.AspNetCore.Mvc in turn has leaf nodes that list its dependencies and their versions.
The Microsoft.AspNetCore.Mvc package takes a dependency on a version of Microsoft.AspNetCore.Mvc.ApiExplorer, that in turn takes a dependency on a version of Microsoft.AspNetCore.Mvc.Core.
 Manually reviewing project.assets.json
Open the project.assets.json file from your project’s obj directory in your editor. We suggest you use an editor that understands JSON and allows you to collapse and expand nodes to review this file.
Visual Studio and Visual Studio Code provide JSON friendly editing.
Search the project.assets.json file for the vulnerable package, using the format packagename/ for each of the package names from the preceding table. If you find the assembly name in your search:

Examine the line on which they are found, the version number is after the /.
Compare to the vulnerable versions table.

For example, a search result that shows Microsoft.AspNetCore.Server.Kestrel.Core/2.0.0 is a reference to version 2.0.0 of Microsoft.AspNetCore.Server.Kestrel.Core.
If your project.assets.json file includes references to the vulnerable package, then you need to fix the transitive dependencies.
If you have not found any reference to any vulnerable packages, this means either

None of your direct dependencies depend on any vulnerable packages, or
You have already fixed the problem by updating the direct dependencies.

If your transitive dependency review found references to the vulnerable package, you must add a direct dependency to the updated package to your csproj file to override the transitive dependency.
Open projectname.csproj in your editor. If you're using Visual Studio, right-click the project and choose Edit projectname.csproj from the context menu, where projectname is the name of your project.
Look for PackageReference nodes, for example:
<Project Sdk="Microsoft.NET.Sdk.">
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="ThirdParty.NotUpdatedYet" Version="2.0.0" />
  </ItemGroup>
</Project>

You must add a direct dependency to the updated version of the vulnerable package by adding it to the csproj file.
You do this by adding a new line to the dependencies section, referencing the fixed version.
For example, if your search showed a transitive reference to a vulnerable Microsoft.AspNetCore.Server.Kestrel.Core version, you'd add a reference to the fixed package number.
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.0.34 />
    <PackageReference Include="ThirdParty.NotUpdatedYet" Version="2.0.0" />
  </ItemGroup>
</Project>

After you've added the direct dependency reference, save your csproj file.
If you're using Visual Studio, save your updated csproj file and Visual Studio will restore the new package versions.
You can see the restore results by opening the Output window (Ctrl+Alt+O) and changing the Show output from drop-down list to Package Manager.
If you're not using Visual Studio, open a command line and change to your project directory. Execute the dotnet restore command to restore the new dependencies.
Rebuilding your application
Finally you must rebuild your application, test, and redeploy.
Other Information
Reporting Security Issues
If you have found a potential security issue in .NET Core, please email details to<EMAIL_ADDRESS>Reports may qualify for the .NET Core Bug Bounty. Details of the .NET Core Bug Bounty including terms and conditions are at https://aka.ms/corebounty.
Support
You can ask questions about this issue on GitHub in the .NET Core or ASP.NET Core organizations. These are located at https://github.com/dotnet/ and https://github.com/aspnet/. The Announcements repo for each product (https://github.com/dotnet/Announcements and https://github.com/aspnet/Announcements) will contain this bulletin as an issue and will include a link to a discussion issue. You can ask questions in the discussion issue.
Disclaimer
The information provided in this advisory is provided "as is" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.
Revisions
V1.0 (July 10, 2018): Advisory published.
Version 1.0
Last Updated 2018-07-10

We are being directed to:

To update ASP.NET Core 2.1 you should download and install the .NET Core SDK 2.1.302 on your development machines and build servers, and the .NET Core Runtime 2.1.2 on your deployment servers.

Yet https://www.microsoft.com/net/download/all does not show a download or bundle for .NET Core SDK 2.1.302.

We're waiting for the marketing page to propagate changes. In the meantime, use https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.1.2-download.md.

The downloads page is now updated.

The recommended fix Microsoft.AspNetCore.All/2.0.9 has the following dependency tree to System.Net.Security/4.3.0.
=> Microsoft.Extensions.Caching.Redis/2.0.2
=> StackExchange.Redis.StrongName/1.2.4
=> System.Net.Security/4.3.0
System.Net.Security/4.3.0 was reported earlier as having a vulnerability in https://github.com/dotnet/corefx/issues/19535

The same applies to Microsoft.AspNetCore.All/2.1.2.

Could you clarify here, @blowdart ..? The recommended fix is in conflict with another vulnerability, as I see it..?

You'd normally address this with a direct dependency, until the Stack Exchange package is updated. But because this is a framework package the runtime will pick up the updated one anyway, because it's part of the runtime.

Not sure I follow. When I look at a project.assets.json generated from referring the recommended fixes here, I get an entry showing use of a vulnerable version of system.net.security. How is an updated version other than the one refererred to in the assets file being uses here?

Sorry to bother, @blowdart , but this was a bit confusing. How does the runtime pick up another package than the System.Net.Security/4.3.0 defined in the project.assets.json as a transient?

perhaps @natemcmaster can elaborate..?

System.Net.Security/4.3.0 is ignored by the SDK altogether in .NET Core and .NET Standard 2.0 and up projects. This was the result of condensing hundreds of System.* packages into one for the 2.0 release. The runtime gets System.Net.Security.dll from the shared framework, not from NuGet packages.
For a complete list of packages which were condensed in the 2.0 release, see here: https://github.com/dotnet/sdk/blob/ab2176b3447e3e7820b5a340408110b6d498f907/src/Tasks/Common/targets/Microsoft.NET.DefaultPackageConflictOverrides.targets#L81

Ah, thanks for clarifying! Very helpful.  Will the fact that a package will be overridden be reflected in the generated projects.assets.json file at all..?
Or is that targets file the only place to where one can get that info..?
Background: I'm asking because dotnet-retire is currently flagging System.Net.Security/4.3.0 as a vulnerability, but based on what you explained here it would be a false positive.

Will the fact that a package will be overridden be reflected in the generated projects.assets.json file at all..?

No. This package will continue to be in the restore graph as long as packages continue to target .NETStandard 1.x. I highly encourage all library authors to consider moving to .NET Standard 2.0 for this reason and others like it.


Added field data feature

Description
VTK objects are affiliated with three types of data: point data, cell data, and field data. Only the former two are currently implemented in vtki, which makes it such that there is no straightforward way of embedding arrays and similar that one might want affiliated with the object in question. See https://vtk.org/Wiki/VTK/Tutorials/DataStorage for more info.
This PR

adds functionality from VTK that is not currently accessible in vtki
enables storing of arrays of arbitrary length in VTK objects

Note

I believe the safety check of ensuring that the input array is of length mesh.n_points of mesh.n_cells when setting array data is good to have, as field data should be reserved for very particular kinds of additional data. The way in which I've implemented adding a field_array is therefore through the use of vtki.Common.add_field_array. Other functionality is mimicked after how cell/point data is handled.
#187 and #203 mention the need for storing non-traditional kinds of data in vtki objects. This feature still requires arrays of dimensionality > 0 to have individual elements of the same type (and if applicable, length).
field arrays can never be set as the active scalar array

Hmm, this is the second time I PR with a check failure. Is there any way I can make these safety checks before submitting? Sorry for the inconvenience.

All good, @supersubscript - you can run the tests locally following this guide: https://docs.vtki.org/dev/testing.html
Also - I added you to vtkiorg a while back. Could you close this PR and switch your local upstream on this branch to vtkiorg/vtki so that you are pushing directly to a new branch on this repo? That way I can help you fix bugs and when we squash and merge, you'll get full credit in the git history for the changes.

Closed. Moved to feature branch fields.

Thanks, @supersubscript - could you open a new PR from that branch whenever you're ready?


chore(scripts): add license headers for projects files

Fix [ANT-1916] for python files only
This PR adds a license header for every python files inside folders antarest and tests.
It also introduces a new github action that checks that every one of these files contains a header.
It's based on a home-made Python script (ugly and unoptimized but runs quickly enough) that I wrote and put inside the scripts folder.

We need to add the AUTHORS.txt the header refers to.


[MM-46196] allow tabbing through dot menu items

Summary
This PR allows a user to tab through the dot menu items when the menu is open. I tested that all shortuts work as expected and the user can tab to a menu item and  will execute that action.
I also refactored the code to reduce code duplication.
Ticket Link
https://mattermost.atlassian.net/browse/MM-46196
Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

NONE

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

/e2e-test

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/231473

Thanks @jfrerich
Tested, looks good to merge

Verified tabbing through dot menu items
E2E report looks good, no PR related failures.

Thanks, @jgilliam17 :)

@jgilliam17, I added a change that prevents users from typing in the post input text area when the menu is open. Before this commit, non-shortcut keys (and Tab) would get typed in the post input area.

Thanks @jfrerich - Can you please add an e2e too? I'll add one in Zephyr to generate a test case id.

@jfrerich @jgilliam17 this is not working for me on chrome/win10. Can we ensure we try various browsers?
Repro: Open ... menu on a post, hit tab key multiple times > nothing happens

I was testing on Mac/chrome and it works for me.  I do see it failing on Mac/Safari and will investigate.

I also noticed tabbing does not work correctly on any of the following on Mac/Safari, so I don't think this is something necessarily caused by this PR.

team drop down menu
channel drop down menu
channel header drop down menu

I also logged into commmunity via safari and these are also not working.

To get tabbing through the menu items in safair I had to enable  "Preferences > Advanced > Press tab to highlight each item on a page" and found this answer here -> https://stackoverflow.com/questions/1848390/safari-ignoring-tabindex

@esethna, can you try to see if you have this setting in your chrome browser?   Settings → Appearance → Pressing Tab on a web page highlights links, as well as form fields

@jfrerich tabbing worked fine for me on Chrome and Firefox before the latest change. But it no longer works on the test server.

Friendly ping @jfrerich on this PR. Can you retry on the test server based on Jelena's comment ^

Friendly ping @jfrerich on this PR. Can you retry on the test server based on Jelena's comment ^

I have been on mobile bug bashing for the past two weeks.  I'll get a look at this right after!

Friendly ping @jfrerich on this PR. Can you retry on the test server based on Jelena's comment ^

This is weird and I cannot figure out why this is happening!
I have confirmed that the test server does not work. (it is using commit c23590218f94934b3c90a42402e9c08a3dc61be6)
When I run with my local server (in the same browser) tabbing does work.

@jfrerich
Also noticed when freshly created, server theme is off, not sure why, once theme is updated in settings it looks fine.

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

Tabbing in menu is anti pattern as per ARAI guidelines https://www.w3.org/WAI/ARIA/apg/patterns/menubar/ So i am not sure if this should be taken forwarded.

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Heads up that as part of our efforts to move to a monorepo, we're closing out a number of older pull requests like this one to help streamline the effort.
If you'd like to preserve these changes -- even if you're not the original author! -- feel free to resubmit the pull request against the monorepo once it's ready. You can subscribe to mattermost-server-issue-22420 for status updates on this effort.


patch user attribute evaluation

build

build

@wangjoshuah @aliabbasrizvi do you remember why we made this change? AFAIK the datafile's audience conditions should always include non-null values.


Backfill scores for aird tasks killed on usageLimits

https://github.com/METR/mp4-tasks/pull/1142 makes these tasks have score_on_usage_limits. Backfill the null scores in existing runs that were killed on usage limits, according to the aggregation function in TaskFamily.aggregate_scores.

@sjawhar since other people running Vivaria instances don't need this migration, lmk if you want me to just manually run these on the servers rather than committing a migration


Install directly from github is not working

npm install git+https://github.com/theaqua/redux-logger --save does not work

It works perfectly fine in my case:
npm install git+https://github.com/theaqua/redux-logger.git --save

What exactly is wrong in your case?!

I'm using in react native

Any details on how exactly it fails to install or run?

it doesn't find the redux-logger on node_modules folder, you could make a test using this boilerplate https://github.com/sibeliusseraphini/react-native-redux
I think you should publish a version with the diff feature, and another one when we figure it out the best way to handle array on diffs

<EMAIL_ADDRESS>invalid<EMAIL_ADDRESS>

I can see no errors in my case:
[12:35:56 AM] <START> Building Dependency Graph
[12:35:56 AM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

[12:36:12 AM] <END>   Crawling File System (16206ms)
[12:36:12 AM] <START> Building in-memory fs for JavaScript
[12:36:12 AM] <END>   Building in-memory fs for JavaScript (247ms)
[12:36:12 AM] <START> Building in-memory fs for Assets
[12:36:12 AM] <END>   Building in-memory fs for Assets (151ms)
[12:36:12 AM] <START> Building Haste Map
[12:36:12 AM] <START> Building (deprecated) Asset Map
[12:36:12 AM] <END>   Building (deprecated) Asset Map (53ms)
[12:36:13 AM] <END>   Building Haste Map (374ms)
[12:36:13 AM] <END>   Building Dependency Graph (16996ms)

@sibeliusseraphini, please discuss diff-related subject in the corresponding issue. Thank you.

I'm closing this one as there's no specific details.

I think this is a problem with node >= 6 version,
><EMAIL_ADDRESS>build app/node_modules/redux-logger
> npm run build:lib && npm run build:umd && npm run build:umd:min

><EMAIL_ADDRESS>build:lib app/node_modules/redux-logger
> $(npm bin)/babel src --out-dir lib

sh: app/node_modules/redux-logger/node_modules/.bin/babel: No such file or directory


fix: #1864 add support for limited text input

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch.
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#development-setup
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
Solve this issue: https://github.com/vuejs/vue-test-utils/issues/1864

Is there any way we could revive this PR? There have been several occasions where we couldn't rely on using maxlength attribute because tests either couldn't test the outcome without specifying the methodology, and simulating typing with keydown also doesn't respect maxlength in a test

Is there any way we could revive this PR? There have been several occasions where we couldn't rely on using maxlength attribute because tests either couldn't test the outcome without specifying the methodology, and simulating typing with keydown also doesn't respect maxlength in a test

Hi! This PR is closed, because this PR cover only cases with maxlength-attribute. Vue-test-utils need PR, that fix all work with any attribute. Check this conversation -> https://github.com/vuejs/vue-test-utils/issues/1864


Data loss during cut&paste cross-space

Steps to reproduce

Select any file in your personal space
Use ctrl+x (linux/windows) or cmd+x (mac) to cut the file
Navigate into a project space
Use ctrl+v (linux/windows) or cmd+v (mac) to paste the file

Expected behaviour
a) File gets moved successfully OR b) in case of an error the file stays in the original location
Actual behaviour
Apparently cross-space move (internally: copy & delete) is not possible at all or not correctly implemented in web (needs investigation). The much bigger issue in this case is, that the failing move request fails results in data loss: the file doesn't get copied successfully but gets deleted from the original location anyway.
Needs investigation if the two bugs are backend only, frontend only or a mix of both.
Solution

Cross space moves do not work, the fix in reva changes the behavior

no data loss
Returns 502 Bad Gateway according to spec

Web also needs to change the behavior, to not offer MOVE across storage spaces. COPY and DELETE works just fine. @tbsbdr @pmaier1

2. Silently transform a cross storagespace MOVE into a COPY&DELETE

userfacing crossstorage "move" should be possible - users won't distinguish between a crossstorage and non-crossstorage move I guess (they are used to easily move a file from HDD to a USB stick). The main problem is, that a cross storage move (copy & delete) can take a long time, right? If yes, I'd propose the following:

inform the user, ask for confirmation beforehand: like:
"Change who has access? This item will be visible to everyone who can see [taget-folder-name] You are about to move 35 GB. This will take several minutes. Are you sure you want to proceed? [cancel][proceed]"
Show a move progress indicator and an option to cancel if the user realizes that the operation takes too long:
"Moving |=====---------------| 25% completed. Cancel will revert your changes. No data will be lost. [Cancel]"

@micbar would that be the right ui-behaviour?


Recover filenames from directory path query results

As I understand it, querying a directory path results in a map where the keys are the filenames and the values are their contents, however from (as in select * from ...) left-shifts this structure resulting in just the values (contents) and I don't think we have a way to recover the filenames yet.
~ @wemrysi

This is useful in filtering lazily loaded directory listings which are loaded an offset (typically 1000) at a time.


TPlink switch failing in 0.89

Home Assistant release with the issue:
0.89
Last working Home Assistant release (if known):
0.88.1
Operating environment (Hass.io/Docker/Windows/etc.):
hassbian
Component/platform:
tplink
Description of problem:
tplink switch failed to load:
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
switch:
  - platform: tplink
    host: <IP_ADDRESS>

Traceback (if applicable):
Mar  7 07:16:33 hassbian hass[25650]: #033[31m2019-03-07 08:16:33 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform tplink#033[0m
Mar  7 07:16:33 hassbian hass[25650]: Traceback (most recent call last):
Mar  7 07:16:33 hassbian hass[25650]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 127, in _async_setup_platform
Mar  7 07:16:33 hassbian hass[25650]:     asyncio.shield(task, loop=hass.loop),
Mar  7 07:16:33 hassbian hass[25650]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 712, in shield
Mar  7 07:16:33 hassbian hass[25650]:     inner = ensure_future(arg, loop=loop)
Mar  7 07:16:33 hassbian hass[25650]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 567, in ensure_future
Mar  7 07:16:33 hassbian hass[25650]:     raise TypeError('A Future, a coroutine or an awaitable is required')
Mar  7 07:16:33 hassbian hass[25650]: TypeError: A Future, a coroutine or an awaitable is required#033[0m

Additional information:

You should be getting more information than the above traceback (a warning saying that loading the platform is not anymore supported and that you need to change your configuration. See https://www.home-assistant.io/components/tplink/ and let me know if that helps!

yes, found it in a later reboot ( to fix other issues)
2019-03-07 08:58:14 WARNING (MainThread) [homeassistant.components.tplink.switch] Loading as a platform is no longer supported, convert to use the tplink component.
2019-03-07 08:58:14 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform tplink

so I suppose this is not an issue. just that the logging of the traceback itself is  not very descriptive

I'm getting the same error/warning, and my tplink switch isn't showing up in hassio now. Did you do anything to resolve this or just reboot? I've tried a few reboots with no help.

2019-03-09 16:14:20 WARNING (MainThread) [homeassistant.components.tplink.switch] Loading as a platform is no longer supported, convert to use the tplink component.
2019-03-09 16:14:20 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform tplink
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\helpers\entity_platform.py", line 127, in _async_setup_platform
    asyncio.shield(task, loop=hass.loop),
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py", line 681, in shield
    inner = ensure_future(arg, loop=loop)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\tasks.py", line 526, in ensure_future
    raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required

Since upgrading to the last HASS I am also unable to use my TP LINK switch:
019-03-09 14:59:42 WARNING (MainThread) [homeassistant.components.tplink.switch] Loading as a platform is no longer supported, convert to use the tplink component.
2019-03-09 14:59:42 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform tplink
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 127, in _async_setup_platform
asyncio.shield(task, loop=hass.loop),
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 769, in shield
inner = ensure_future(arg, loop=loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 592, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required

The commenter above had the answer, I just didn’t quite get it at first. The TP-Link component changed formats but the outdated website is still the top search result. Check https://www.home-assistant.io/components/tplink/ and update your config to the new format.

Many thanks for the quick response!

The removal of those old files got lost during merges (I suppose), but the fix has been merged already (unfortunately only for the next release): https://github.com/home-assistant/home-assistant.io/pull/8853

they need to remove the tp-link switch from the switch/components screen... using the new format posted above worked for me.

Under this new component format, if I want to have HA discover some but not all tplink devices, I understand I have to manually add the specific devices using the new format in configuration.yaml, but do I also have to hit configure the tplink integration in the webUI for it to work?

No need to configure it in the UI, that is only necessary if you want to avoid manual configuration and use the discovery.

Thanks! The issue I'm having is that my lights and switches originally show up and work fine. After about an hour, however, they disappear. First tried UI configuration where all the devices are originally discovered. When those dropped off, I switched to manually configuration, thinking fewer devices and making IPs static might make it more stable. Same issue; they showed at first then vanished. Devices are still showing and working through app. Only hint of them in HA is the two devices I put in a separate group. Those show as "unavailable" notices. All the rest just don't show up in the unchartegorized "switches" card. Any thoughts?

Hello,
I am still new at this and am getting the error:
"Invalid config for [switch]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 129). Please check the docs at https://home-assistant.io/components/switch/"
my config.yaml
tplink:
discovery: false
switch:

host: 192.168.1.XXX
host: 192.168.1.XXY

Hello,
I am still new at this and am getting the error:
"Invalid config for [switch]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 129). Please check the docs at https://home-assistant.io/components/switch/"
my config.yaml
tplink:
discovery: false
switch:

host: 192.168.1.XXX
host: 192.168.1.XXY

That seems like it's close to mine, hard to tell with your formatting, but here's how mine looks and it's working okay.
tplink:   discovery: false   switch:     - host: 192.168.1.XXX


Refused to execute script from site.com/6.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Version
3.1.0
What is expected?
Site is working
What is actually happening?
Errors on windows chrome. This is a bug is only for   Chrome 76 on Windows 10. Might be webpack related or something else.

site.tv/:1 Refused to execute script from 'https://site.tv/6.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
vue-router.esm.js:1905 ChunkLoadError: Loading chunk 6 failed.
(error: https://site.tv/6.js)
    at Function.requireEnsure [as e] (https://site.tv/main.js:812:26)
    at Function.fn.e (https://site.tv/main.js:156:40)
    at component (https://site.tv/main.js:9589:36)
    at https://site.tv/main.js:7654:17
    at https://site.tv/main.js:7681:66
    at Array.map (<anonymous>)
    at https://site.tv/main.js:7681:38
    at Array.map (<anonymous>)
    at flatMapComponents (https://site.tv/main.js:7680:26)
    at https://site.tv/main.js:7616:5
abort @ vue-router.esm.js:1905
(anonymous) @ vue-router.esm.js:1947
(anonymous) @ vue-router.esm.js:1768
(anonymous) @ vue-router.esm.js:1833
Promise.then (async)
(anonymous) @ vue-router.esm.js:1780
(anonymous) @ vue-router.esm.js:1801
(anonymous) @ vue-router.esm.js:1801
flatMapComponents @ vue-router.esm.js:1800
(anonymous) @ vue-router.esm.js:1736
iterator @ vue-router.esm.js:1943
step @ vue-router.esm.js:1717
step @ vue-router.esm.js:1721
(anonymous) @ vue-router.esm.js:1718
(anonymous) @ vue-router.esm.js:1964
(anonymous) @ index.js:43
iterator @ vue-router.esm.js:1943
step @ vue-router.esm.js:1717
runQueue @ vue-router.esm.js:1725
confirmTransition @ vue-router.esm.js:1972
transitionTo @ vue-router.esm.js:1874
init @ vue-router.esm.js:2494
beforeCreate @ vue-router.esm.js:540
_t @ vue.min.js:6
hn._init @ vue.min.js:6
hn @ vue.min.js:6
(anonymous) @ app.js:12
__webpack_require__ @ bootstrap:769
fn @ bootstrap:129
(anonymous) @ web.dom.iterable.js:19
__webpack_require__ @ bootstrap:769
(anonymous) @ bootstrap:907
(anonymous) @ bootstrap:907
DevTools failed to parse SourceMap: https://site.tv/5.js.map

This is usually your server having a fallback to the index.html file for everything, including js resources. I would say there is no 6.js file in your server and it's sending back the index.html file instead.
This is a usage question that should be posted in the forums or discord chat and it's not even related to Vue Router, it's either about your server configuration or your bundler not working correctly.

 On top of that, this is not even related to Vue Router, it's an SPA question
The forum has more activity in English than in Chinese, it has activity in many languages so people can use their language. Most of the posts get answers, if you never post it, it will never be able to receive an answer, that's for sure

I do not know what exactly it was, after a couple of weeks, and packages updates issue disappeared. It could be chrome issue, router, js, some package, whatever. Issue can be closed, probably could be resolved by rolling back to very old versions and old code. Thank you for your time.


TypeError: Cannot read properties of undefined (reading 'loadLocaleFrom')

What version of this package are you using?
"next": "13.5.4",
"next-translate": "^2.6.0",
"next-translate-plugin": "^2.6.0",

What operating system, Node.js, and npm version?
macOS Ventura
node: 20.5.0
npm: 9.8.0

Error
TypeError: Cannot read properties of undefined (reading 'loadLocaleFrom')

I get the above error when using getT in an API route.
The weird thing is that the error happens only the first time the api is executed.
const t = await getT(request.headers.get("lang") || "en", ["errors"]);

Steps to reproduce

Download the archive, repro.zip.
Install dependencies and run npm run dev
Visits localhost:3000/api/test

Notice the error in console: TypeError: Cannot read properties of undefined (reading 'loadLocaleFrom')

Reload the page

You should see something like:
{
    "code": "error_1",
    "debugLang": "en",
    "label": "errors:error_1",
    "status": "KO"
}

The error is gone, but for some reason the label is still not correctly read.

In a different browser tab visits localhost:3000/demo

This page should be rendered correctly (it also renders a label from the JSON file).

Go back to the tab open on the API route (localhost:3000/api/test) and reload it again.

You should finally see something like:
{
    "code": "error_1",
    "debugLang": "en",
    "label": "EN: Errore 1",
    "status": "KO"
}

Same problem as here.
Sorry for the duplicate.


Assertions for the process metrics in R7 toy project

This repo exercises the new behaviour we implemented lately (i.e., better matching with class names, issue #144).
I'd be more confident if we also assert its process metrics, to make sure things are ok.

@jan-gerling can you tackle this one? I won't be able to do it today :/

You did it, right? Shall we close this issue?


Long shutdown time

I am running the following script:
var massive = require('massive');

massive.connect({ connectionString: 'postgresql://pean:pean@localhost/pean' }, function (err, db) {
    if (err)
        process.exit(1);

    console.log('done');
});

It prints "done", then hangs for about a minute and only then terminates. Is there anything I can do to shut it down immediately?

It's not 100% clear what you're trying to do here. Are you trying to write 'done' to the console if an error occurs? If so, you need to wrap the console.log('done') in curly braces as part of the if() block.
Otherwise, if you are trying to write 'done' to the console as part of the 'happy path', and then exit, you will also need to exit the process as part of your happy path (generally using the "success" code of 0):
if(err) {
  process.exit(1);
}

// do some stuff with your data, call other functions - the work your application does...

console.log('done');
process.exit(0);

Note that generally, you are going to load up a reference to db and cache it somehow for use during the entire application lifecycle (also see the express example in the README as one example, if you are using express):
var massive = require('massive');
var myDbInstance;
massive.connect({ connectionString: 'postgresql://pean:pean@localhost/pean' }, function (err, db) {
  if (err) {
    process.exit(1);
  }
  myDbInstance = db;

  // do moar work here with the db...

  console.log('done');
});

Yes, I was expecting it to print "done" as success path and just exit immediately. Didn't know process.exit() was required here.
It's not the real script i'm working on. I just wanted to understand why it takes massive so long to shut down. Thank you for clarification.

Node, and (to a certain extent, by association) Massive, are primarily expected to be used in a web server context. Meaning, more as a continually running service, rather than a process which runs, does some work, and exits. Therefore, the general use case will see Massive spun up, and the instance "kept alive" to service incoming requests.
It's not the only use case for either Node, or Massive, but it is the common one. Therefore, in your example, Node is waiting for the next call to be made, and eventually times out (this is a non-technical explanation, possibly short on detail, but correct in spirit).


Add example annotation files

adds crowsetta.data sub-package with example annotation files and crowsetta.data.get function that returns paths to them, fix fixes #90
also adds examples in docstrings using built-in data, fixes #158

importlib.resources.path works only on 3.10 but says it was deprecated in 3.11 :frowning_face:
I think I need to do https://docs.python.org/3.11/library/importlib.resources.html#importlib.resources.as_file which will require re-writing everything with context managers unfortunately. But this is a constraint of getting a "path" to something that's inside a .zip
See example here:
https://importlib-resources.readthedocs.io/en/latest/using.html#file-system-or-zip-file
from importlib_resources import files, as_file

source = files(email.tests.data).joinpath('message.eml')
with as_file(source) as eml:
    third_party_api_requiring_file_system_path(eml)

Hoping I can do the as_file(source) part inside the get function and then return that context manager for someone to use?


enhance(preview): open note in different editor group then preview

enhance(preview): open note in different editor group then preview
When opening a note by clicking a link from preview, open it in an different editor group API.
This makes use of the Tab Groups API that is only available in vscode 1.67.
Dendron currently supports vscode 1.62 which means users using versions prior to 1.67 will not have this feature enabled.

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


Can you create a dart (flutter) library based on what you used in this wallet

It would help us to add zcash into stack wallet

The main business logic is in rust. https://github.com/hhanh00/zcash-sync Is it what you are looking for?


Feature request: drop wells within capture areas

I would like to see support added for drop target well within a capture area. The use case I have in mind is a graphical tree structure where the nodes can be dragged to any point in the tree. Currently there needs to be a container within each node representing the sublist with non-zero height even if it is empty. What I am envisioning is allowing you to drag a node over a capture area,  and the node being placed in the designated container within it. Managing a tree, you could drag a node between two other nodes, or drag onto a node to place the dragged item within the empty sublist, which could be styled using :empty as display: none. This would allow areas of sites to be capture areas while dragged nodes are inserted into a sub element.

Hello! I am a first-timer. Can I pick this issue up?


Replace the S-expression Parser by Usexp

This PR vendors https://github.com/janestreet/usexp and use to replace the S-expression parser and printer.
The bootstrap had to be updated to support wrapped libraries.
Fixes #335

@bobot one point might be that it will be useful as a part of configurator as well. Which we are also planning to include as part of jbuilder.

I can't reproduce that travis failure so I've restarted the build.

I actually have the reverse question, do we really need the other original source repository? usexp was created specifically for dune, it should be easy enough to handle whatever few issues users come up in this repo. But in any case, this PR looks good and everything passes.
@bobot I'd like to merge unless you object soon.

https://github.com/janestreet/usexp


Convert prefect notebook to one-shot

Removing the scheduling components from the non-cloud prefect example. This will allow it to be used for creating a scheduled deployment instead, and for integration-tests as a one-shot.

@bhperry and I talked about this in DMs but I want to add here for context....ease of integration tests isn't the only reason this is a good change
This example was written before "Saturn scheduled deployments" existed. Now that they do, that's a cheaper and more reliable way to deploy a scheduled prefect flow in Saturn than using a persistent deployment + flow.run() with a Prefect schedule. So this change also means our docs will encourage a pattern that customers will get more value from.


Where is the dat.gui documentation?

That's definitely NOT the documentation:
https://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage
Nor can be found on this link:
https://workshop.chromeexperiments.com/

The readme (https://github.com/dataarts/dat.gui/blob/master/README.md) links to both the tutorial you mention and also api documentation.

Thanks! Hopefully it won't be incomplete.

I believe it is complete, most controls are created with the same .add() function. Let us know if not!