Explore variations for File > New file and File > New file...

This is the current experience in the File menu for creating a new file and we want to explore different variations to improve the UX.

As a duplicate of New File and New File... in the File menu can be confusing, here are a couple of ideas to distinguish between the two.

The first idea on the left is using New Text File and New Editor.... There was previous feedback around introducing the term Editor  to the File menu and I thought this could distinguish between immediately opening up a file vs. opening up a quick pick of editor options like below. The second idea was to call the two menu items New Untitled File and New File....

Also, to help users not have to switch editors, there is another idea of adding a second entry point in the placeholder text of an empty text file. Clicking on choose a rich editor would open a similar quick pick with editor options.

It would be great if VS Code could offer the creation of specific files.
For example I have a PHP project, then a new file is mostly a PHP class which consists of specific content. This menu could then additionally offer me the option New PHP class.  If I enter User, it would create:
<?php

class User {

}

In my opinion option B is more clear.

B is more clear.

Closing this as complete:


More flexible Effect instance based on evidence for E <=> Throwable

I really dislike the proliferation of Task all over the place in my code, in order to solve that i decided to try fixing my F[_] to type MyIO[A] = IO[MyError, A] but doing that the current instance for Effect fixed to Throwable does not resolve. This PR is to achieve that. WDYT?
I'm rolling my own Iso to avoid pulling scalaz just for this and cats doesn't seem to have one.

I'm not sure we should be using the word Iso around this... Throwable is not referentially transparent so no laws can be met.
But I agree that the functionality itself is a practical requirement when using domain objects for errors.

Fair enough, will see if I rename it to something else.

I actually don't like this. I Don't see the benefit of FromToThrowable at all.
The only reason we even need this is interop.

This is democratic, but I'm very :-1: on this PR.
I don't see the need for added FromToThrowable. At all. This gives people the reason to write code using Effect[IO[E, ?]], when the real solution is to avoid their "typeclasses" altogether (IO[E, A] => cats.effect.IO[A] as a means to get an unsafeRun function is not an abstraction).
IMHO there is no need for this flexibility nor is there a win here. I would even rather discourage the use of those typeclasses entirely, and have them exist only for interop purposes.

it's in the catz package, which is entirely about interop, so it's :+1: from me.
I'd oppose it being in the core.

@ktonga it's too late for me. Save yourselves... https://gitlab.com/fommil/upgrade-typelevel-to-scalaz/blob/master/src/main/scala/ScalazCats.scala#L172-272

I think I agree with basically everything said here.

The advantage of this code would be using a non-Throwable error type with cats-effects-based libraries. Yeah, it's dirty, messy, and somewhat horrible, but these problems stem from the lack of typed error handling in cats-effects, so it's par for the course.
I do think this is true:

The takeaway is NEVER EVER ABSTRACT OVER Effect (and friends).

I also think it's worth remembering that we can't force libraries to avoid Effect, nor can we pretend that we have any control over this. Instead, it's best just to remove as many barriers to using ZIO as possible.

@jdegoes

The advantage of this code would be using a non-Throwable error type with cats-effects-based libraries. Yeah, it's dirty, messy, and somewhat horrible, but these problems stem from the lack of typed error handling in cats-effects, so it's par for the course.

I gave @ktonga an example of avoiding it while not needing this. i.e, imagine this algebra
trait Alg[F[_]] {
 def doA: F[Unit]
 def doB(i: Int): F[Foo]
}

instead of doing
//TypelevelThing needs an Effect instance
abstract class AlgebraImpl(typelevelThing: TypelevelThing[IO[E, ?]]) extends Alg[IO[E, ?]]

You do
abstract class AlgebraImpl(typelevelThing: TypelevelThing[Task]) extends Alg[IO[E, ?]]

And do the error Throwable => E in the surface area of where your TypelevelThing[Task] is. On top of this, here you get a win on the fact that you no longer have a single global throwable conversion now.

I also think it's worth remembering that we can't force libraries to avoid Effect, nor can we pretend that we have any control over this. Instead, it's best just to remove as many barriers to using ZIO as possible.

No, we can't, but we can try to steer people to not abstract over Effect and treat it like the impure FFI it is.


Equivalent of rusb interface descriptor extra()?

Hi,
Firstly, thank you for this project. I love that it is licensed differently to rusb, as statically compiling libusb in is problematic.
I am wondering what is the recommended way of accessing the "extra" bytes from the interface descriptor in nusb?
Similarly to:
https://github.com/a1ien/rusb/blob/master/src/interface_descriptor.rs#L115
Many thanks

I realize I can call get_descriptor() on a device to receive a raw config descriptor and then search inside the Vec that's returned until I find the specific data I'm interested in, but wondering if there isn't any easier way.

I also wondered this but found the best way to get the equivalent of "extra" bytes to to filter the descriptors(). One must filter as the endpoints are there too. skip(1) because first is the interface itself. Works on config too though you'd filter on 0x02:
let interface_extra = interface_alt
    .descriptors()
    .skip(1)
    // only want device and interface descriptors - nusb has everything trailing including endpoint
    .filter(|d| {
        (d.descriptor_type() & 0x0F) == 0x04 || (d.descriptor_type() & 0x0F) == 0x01
    })

Don't need open the device to use get_descriptor() with this.

Yes, Device::active_configuration or Interface::descriptors provides parsed descriptor access, and then the descriptors method of most of the parsed types allows iterating all descriptors under it, including unknown extra descriptors.

This is great. I will try it next week and report back here - thanks!

I can confirm it worked without any problems. Using flat_map and then collecting a Vec is the main part of the trick I was missing. Thanks again!


disambiguation between xgboost.dask vs dask-ml xgboost

The recent 1.0.0 release of xgboost brings the xgboost.dask interface .
A relevant example is here - https://github.com/dmlc/xgboost/blob/master/demo/dask/sklearn_cpu_training.py
the related documentation is here - https://xgboost.readthedocs.io/en/latest/tutorials/dask.html
there are intertwined usecases - e.g. xgb.dask.DaskDMatrix vs the work being done in https://github.com/dask/dask-ml/issues/605
How do you see both these projects co-existing ? will one subsume the other ? we are currently on dask-ml and wondering which direction to go in.

See https://github.com/dask/dask-xgboost/issues/39.
My thoughts are at https://github.com/dask/dask-xgboost/issues/39#issuecomment-562324378.

Let's keep the discussion on dask-xgboost vs. xgboost over there, if you have more to add.
Work like https://github.com/dask/dask-ml/issues/605 will of course have to be done here.


Add a minimal build file for the calico/cni container

...that can be build just using docker

One comment, then LGTM.


Remove dependency on System.Net.Requests from everywhere

Burn
https://github.com/microsoft/ApplicationInsights-dotnet/blob/ca4b1eb3660e69024384b3623ccc177824568d79/src/Microsoft.ApplicationInsights/Channel/Transmission.cs#L358

Its already marked obsolete, and anything marked Obsolete can/should be removed in 3.0


⚠ Panoramas has degraded performance

In 48a1d2a, Panoramas ($SITE_URL_PANORAMAS) experienced degraded performance:

HTTP code: 200
Response time: 4090 ms

Resolved: Panoramas performance has improved in 4f59bc5 after 6 minutes.


win10运行npm install报错npm ERR! fatal: Invalid path

win10环境下已安装npm,nodejs，vuejs，vsCode开发
克隆项目后安装依赖关系报错

PS D:\LING\vuejs\vue-element-admin> npm install
npm WARN deprecated<EMAIL_ADDRESS>Switch to the `bfj` package for fixes and new features!
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b fix/hr_is_inline git://github.com/sohee-lee7/Squire.git D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-b0171d98 --config core.longpaths=true
npm ERR! fatal: Invalid path '/cygdrive/d/soft/nodejs/node_cache/_cacache/tmp/git-clone-b0171d98/D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-b0171d98': No such file or directory
npm ERR!

npm ERR!
PS D:\LING\vuejs\vue-element-admin> npm install
npm WARN deprecated<EMAIL_ADDRESS>Switch to the `bfj` package for fixes and new features!
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b fix/hr_is_inline git://github.com/sohee-lee7/Squire.git D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-892b4e1e --config core.longpaths=true
npm ERR! fatal: Invalid path '/cygdrive/d/soft/nodejs/node_cache/_cacache/tmp/git-clone-892b4e1e/D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-892b4e1e': No such file or directory
npm ERR!

npm ERR!      D:\soft\nodejs\node_cache\_logs\2019-03-18T05_13_44_270Z-debug.log

把git卸了重新安装新版的git，再看看环境变量都对着没
原来的node_modules删了
重新npm install试试看

没有node_modules文件夹，不存在删除的前提
+运行创建其他vue项目是ok的

如果有的话 没有就不删
我也是这种情况 其他的vue项目都ok
git重装之后就可以下载依赖了 你可以试试看

我把git卸载之后重装，删除项目重新下载执行npm install还是一样的报错
PS D:\LING\vuejs\vue-element-admin> npm install
npm WARN deprecated<EMAIL_ADDRESS>Switch to the `bfj` package for fixes and new features!
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b fix/hr_is_inline git://github.com/sohee-lee7/Squire.git D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-cdc97416 --config core.longpaths=truenpm ERR! fatal: Invalid path '/cygdrive/d/soft/nodejs/node_cache/_cacache/tmp/git-clone-cdc97416/D:\soft\nodejs\node_cache\_cacache\tmp\git-clone-cdc97416': No such file or directory
npm ERR!

npm ERR!      D:\soft\nodejs\node_cache\_logs\2019-03-21T03_41_11_261Z-debug.log

你看下git的环境变量有没有问题，path里面的，路径最好不要有中文或者括号之类的
还有node的环境变量，如果还是不行，那就实在不好意思...我也不清楚了...

环境变量应该没问题。[捂脸]

用cnpm安装一下

用cnpm安装一下

thank you ！done

windows 用 cnpm 才能解决该问题


A Scan has a failure.. Please approve to proceed

Approval required for following Workflow to proceed.

WorkflowName
Workflow#
BranchName
TriggerEvent
LastCommitUser

debug-Api
119
refs/heads/debug
push
Yog4Prog

Issue Details
Found an Issue while performing SCA Scan
:point_right: You are required to Approve (or) Reject the issue
Approve or Reject by commenting in the below section with any of the following keywords
:green_book:  Approved Keys: approved approve lgtm goahead proceed yes
:closed_book: Reject Keys: denied deny reject rejected no abort cancel exit
:point_right: Note: If left uncommented the issue will be closed after the timeout period and the workflow will be marked unsuccessful.

something here


New version: Anchore.Grype version 0.79.1

Pull request has been created with komac v2.2.1 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Packages\Anchore.Grype__DefaultSource\grype.exe returned exit code: 1
Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\grype.exe returned exit code: 1

(Automated response - build 886.)


mention dart2dart

LGTM.

What does this mean? dart2dart is dead?

dart2dart has been unsupported for some time. In order to optimize dart2js, we need to split out dart2dart from dart2js. dart2js is optimizing to be a compile to JavaScript tool.
Do you use dart2dart ? If so, for what reasons?

I don't use dart2dart myself, I just try to stay up-to-date what options are available in case I need a solution. Some people mentioned that they use it for deployment of server side code.

We want to learn what server-side deployment requirements people have. Hopefully, with the new .packages file, it'll be much easier to create a directory that you can "zip and go".

It's quit confusing. I found a comment from Bob in dartbug from about July 2014,  that it's uncommon that pub build is run on bin. In a recent comment on a DEP he mentioned just that as the only proper way for server-side deployment. I can't remember seeing some comment about this shift of direction. If it works and it is supported it is fine,  but it's hard to follow when there is no information.

I understand. Today, there is no blessed way to bundle up a server-side Dart app. Of course, developers are creating their own tools to do this. I personally would love to see someone build a grinder task that covers this.

creates a directory
copies all the files over
creates a packages/ dir
copies all the dependencies over
writes out the .packages file
optional: zips it up

I have yet to check if pub build bin does just that (without zip).

I would assume pub build is just for web apps. Hence my suggestion to write a stand-alone tool or grinder task.

I tried it and it seems to work fine.
See also https://code.google.com/p/dart/issues/detail?id=15731#c13
transformers:
  - $dart2js:
      $exclude: "bin"

is helpful to not generate JS for bin/*

I have to correct myself - it doesn't work. The files put into build/bin are not really related to bin.

I just found the discussion where Bob mentioned to use pub build for bin recently https://github.com/lrhn/dep-pkgspec/issues/13

I've been using dart2dart to create a single-file command line tool that I use within my vagrant dev setup but I'll find another way than dart2dart :)
related: I just posted to the dart-core thread on resource management (https://groups.google.com/a/dartlang.org/forum/#!topic/core-dev/8WrVpjD6tt8). I feel like I don't have a good grasp of what the responsibilities of pub are (package mgmt and building client-side apps? + running transformers?) and how it relates to other tools like dart2dart, dart2js, dart, grind, build.dart files and custom built stuff (it seems like everyone has their own way to build and deploy dart apps (frontend & backend)).
imho nothing wrong to have one tool for various related use cases. I think cargo in the rust world is used for package management and building stuff whereas ruby has things separated in gem/bundler and rake (?).
dependency management and building seem naturally related. I also like the idea of using one tool as interface for package management, running a dev server, building/bundling etc + having a nice command line ui that helps me out (the pub is a one stop shop for drinks, snacks, music and watching sports right?).
I'm glad that we already have great dependency management situation (esp compared to other ecosystems) but how to build and deploy dart apps could be simpler and easier.

Hello Günter,
I saw that discussion, too, but I don't think that Bob's description
contradicts the "zip build" story: The first approach he mentions for
server-side deployment is
'Run pub build and copy the build directory into your container.

Currently, that will include all your dependencies since packages in the
build output contains the actual content'.
Later he mentioned '$exclude'ing dart2js, but the 'container' is the
deployment host, possibly under AppEngine or similar, and 'copy' might as
well be 'zip/unzip'. Comparing to Seth's bullet list, the only missing item
is 'writes out the .packages file', but that is a new thing which may be
introduced when the package spec DEP is finalized.
But you seemed to imply that it does not work .. or what did you mean when
you said 'not really related to bin'? Are you using  pub build --mode=X
bin where X is anything other than 'release' in order to get the *.dart
files transferred to build?
On Wed, May 20, 2015 at 10:21 AM, Günter Zöchbauer<EMAIL_ADDRESS>
wrote:

I just found the discussion where Bob mentioned to use pub build for bin
recently lrhn/dep-pkgspec#13
https://github.com/lrhn/dep-pkgspec/issues/13
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/pull/6#issuecomment-103805883.

--
Erik Ernst  -  Google Danmark ApS
Skt Petri Passage 5, 2 sal, 1165 København K, Denmark
CVR no. 28866984

I just run pub build bin which used --mode=release by default. I have excluded bin for the $dart2js transformer (otherwise I get a build/bin/main.dart.js file). The files from bin aren't copied to build/bin and the packages copied to build/bin/packages are just a subset of the packages in packages/ and not related to the code in bin/main.dart. Therefore to me it looks like pub build doesn't exclude bin when it's run but doesn't do anything reasonable with it either.

Sounds like you should try pub build --mode=x bin (anything, just not
--mode=release), such that the dart files are transferred, including the
ones that are needed in build/packages.
On Wed, May 20, 2015 at 12:02 PM, Günter Zöchbauer<EMAIL_ADDRESS>
wrote:

I just run pub build bin which used --mode=release by default. I have
excluded bin for the $dart2js transformer (otherwise I get a
build/bin/main.dart.js file). The files from bin aren't copied to
build/bin and the packages copied to build/bin/packages are just a subset
of the packages in packages/ and not related to the code in bin/main.dart.
Therefore to me it looks like pub build doesn't exclude bin when it's run
but doesn't do anything reasonable with it either.
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/pull/6#issuecomment-103832546.

--
Erik Ernst  -  Google Danmark ApS
Skt Petri Passage 5, 2 sal, 1165 København K, Denmark
CVR no. 28866984

Right, with a different mode the output looks better. Thanks a lot for this hint!
But this is still a bug. I'm not able to build client and server at once. When I build web or bin, the previous content of build is purged and I can't build them at once because web requires --mode=release.

http://dartbug.com/23495

But why isn't it more useful, anyway, to 'pub build --mode=bin bin' for the
server, then zipping that into ~/server.zip, then 'pub build' (that is 'pub
build --mode=release web') for the client, then zipping that into
~/client.zip, and then deploying only the files needed for each deployment
target?
On Wed, May 20, 2015 at 1:29 PM, Günter Zöchbauer<EMAIL_ADDRESS>wrote:

http://dartbug.com/23495
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/pull/6#issuecomment-103849622.

--
Erik Ernst  -  Google Danmark ApS
Skt Petri Passage 5, 2 sal, 1165 København K, Denmark
CVR no. 28866984

Love the discussion, but please take it to<EMAIL_ADDRESS>(where server-side issues are discussed). Thanks!

We moved the conversation over to https://groups.google.com/a/dartlang.org/forum/#!topic/cloud/M538bS3xVPI
Please join us there!


failed to pip2.7 install korg

Here is the output from >pip install korg
with homebrew python2.7 in a virtualenv:
(vpy2) tony@Macintosh:~/tmp/test_korg$ pip install korg
Collecting korg
Using cached korg-0.0.5.tar.gz
Collecting regex>=2013-06-05 (from korg)
Using cached regex-2016.09.22.tar.gz
Building wheels for collected packages: korg, regex
Running setup.py bdist_wheel for korg ... error
Complete output from command /Users/tony/virtualenvs/vpy2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-build-DtfrTe/korg/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/tmpLCtjjxpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/korg
copying korg/init.py -> build/lib/korg
copying korg/korg.py -> build/lib/korg
copying korg/pattern.py -> build/lib/korg
installing to build/bdist.macosx-10.11-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.11-x86_64
creating build/bdist.macosx-10.11-x86_64/wheel
creating build/bdist.macosx-10.11-x86_64/wheel/korg
copying build/lib/korg/init.py -> build/bdist.macosx-10.11-x86_64/wheel/korg
copying build/lib/korg/korg.py -> build/bdist.macosx-10.11-x86_64/wheel/korg
copying build/lib/korg/pattern.py -> build/bdist.macosx-10.11-x86_64/wheel/korg
running install_data
creating build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data
creating build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data
creating build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/aws -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/bacula -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/bro -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/exim -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/firewalls -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/grok-patterns -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/haproxy -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/java -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/junos -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/linux-syslog -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/mcollective -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/mcollective-patterns -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/mongodb -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/nagios -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/postgresql -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/rails -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/redis -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
copying patterns/ruby -> build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data/patterns
warning: install_data: setup script did not provide a directory for 'README.md' -- installing right in 'build/bdist.macosx-10.11-x86_64/wheel/korg-0.0.5.data/data'
error: can't copy 'README.md': doesn't exist or not a regular file

Failed building wheel for korg
Running setup.py clean for korg
Running setup.py bdist_wheel for regex ... done
Stored in directory: /Users/tony/Library/Caches/pip/wheels/58/15/f6/ee4b932c377334b771607ea57b104b801904042c6715d60532
Successfully built regex
Failed to build korg
Installing collected packages: regex, korg
Running setup.py install for korg ... error
Complete output from command /Users/tony/virtualenvs/vpy2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-build-DtfrTe/korg/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-WuvVg_-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/tony/virtualenvs/vpy2/bin/../include/site/python2.7/korg:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/korg
copying korg/init.py -> build/lib/korg
copying korg/korg.py -> build/lib/korg
copying korg/pattern.py -> build/lib/korg
running install_lib
creating /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg
copying build/lib/korg/init.py -> /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg
copying build/lib/korg/korg.py -> /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg
copying build/lib/korg/pattern.py -> /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg
byte-compiling /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg/init.py to init.pyc
byte-compiling /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg/korg.py to korg.pyc
byte-compiling /Users/tony/virtualenvs/vpy2/lib/python2.7/site-packages/korg/pattern.py to pattern.pyc
running install_data
creating /Users/tony/virtualenvs/vpy2/patterns
copying patterns/aws -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/bacula -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/bro -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/exim -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/firewalls -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/grok-patterns -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/haproxy -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/java -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/junos -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/linux-syslog -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/mcollective -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/mcollective-patterns -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/mongodb -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/nagios -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/postgresql -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/rails -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/redis -> /Users/tony/virtualenvs/vpy2/patterns
copying patterns/ruby -> /Users/tony/virtualenvs/vpy2/patterns
warning: install_data: setup script did not provide a directory for 'README.md' -- installing right in '/Users/tony/virtualenvs/vpy2'
error: can't copy 'README.md': doesn't exist or not a regular file

----------------------------------------

Command "/Users/tony/virtualenvs/vpy2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-build-DtfrTe/korg/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-WuvVg_-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/tony/virtualenvs/vpy2/bin/../include/site/python2.7/korg" failed with error code 1 in /private/var/folders/cp/7b100dx88xl5tt006s6n17q80000gn/T/pip-build-DtfrTe/korg/

thanks for the update - should be fixed with v0.0.6. let me know if it works on Mac, too
(vkorg) mark@ichikawa:~/tmp$ pip install korg
Collecting korg
  Downloading korg-0.0.6.tar.gz
Collecting regex>=2013-06-05 (from korg)
Building wheels for collected packages: korg
  Running setup.py bdist_wheel for korg ... done
  Stored in directory: /home/mark/.cache/pip/wheels/99/dd/34/b78763f28d62aaa60d3b05cf19c291df283c1b4ab75cc47ca8
Successfully built korg
Installing collected packages: regex, korg
Successfully installed korg-0.0.6 regex-2016.9.22

it's working on Mac again also
(v2) tony@Macintosh:~/tmp$ pip install korg
Collecting korg
  Downloading korg-0.0.6.tar.gz
Collecting regex>=2013-06-05 (from korg)
  Using cached regex-2016.09.22.tar.gz
Building wheels for collected packages: korg, regex
  Running setup.py bdist_wheel for korg ... done
  Stored in directory: /Users/tony/Library/Caches/pip/wheels/99/dd/34/b78763f28d62aaa60d3b05cf19c291df283c1b4ab75cc47ca8
  Running setup.py bdist_wheel for regex ... done
  Stored in directory: /Users/tony/Library/Caches/pip/wheels/58/15/f6/ee4b932c377334b771607ea57b104b801904042c6715d60532
Successfully built korg regex
Installing collected packages: regex, korg
Successfully installed korg-0.0.6 regex-2016.9.22


[GitHubIssueCommentProposeUpdateHandler] include new PR url

requires https://github.com/packit-service/packit/pull/758

recheck


Network config failed

ISSUE TEMPLATE ver. 0.4.0

Which TurtleBot3 platform do you use?

[ x] Burger
[ ] Waffle
[ ] Waffle Pi

Which ROS is working with TurtleBot3?

[ ] ROS 1 Kinetic Kame
[ ] ROS 1 Melodic Morenia
[ x] ROS 1 Noetic Ninjemys
[ ] ROS 2 Dashing Diademata
[ ] ROS 2 Eloquent Elusor
[ ] ROS 2 Foxy Fitzroy
[ ] etc (Please specify your ROS Version here)

Which SBC(Single Board Computer) is working on TurtleBot3?

[ ] Intel Joule 570x
[ ] Raspberry Pi 3B+
[ x] Raspberry Pi 4
[ ] etc (Please specify your SBC here)

Which OS you installed on SBC?

[ x] Raspbian distributed by ROBOTIS
[ ] Ubuntu MATE (16.04/18.04/20.04)
[ ] Ubuntu preinstalled server (18.04/20.04)
[ ] etc (Please specify your OS here)

Which OS you installed on Remote PC?

[ ] Ubuntu 16.04 LTS (Xenial Xerus)
[ ] Ubuntu 18.04 LTS (Bionic Beaver)
[ x] Ubuntu 20.04 LTS (Focal Fossa)
[ ] Windows 10
[ ] MAC OS X (Specify version)
[ ] etc (Please specify your OS here)

Specify the software and firmware version(Can be found from Bringup messages)

Software version: [x.x.x]
Firmware version: [x.x.x]

Specify the commands or instructions to reproduce the issue.

HERE

Copy and Paste the error messages on terminal.

HERE

Please describe the issue in detail.

I followed all instructions from https://emanual.robotis.com/docs/en/platform/turtlebot3/sbc_setup/#sbc-setup, burn the image using Raspi Imager, configure the wifi network, and yet once boot up the rasp pi, command for 'ifconfig' shows

- I did edit 'sudo nano /etc/netplan/50-cloud-init.yaml' accordingly, still the same thing happened. I've also created another 'sudo nano /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg' and put the following line 'network: {config: disabled}', still there's no network connection.
- Please help me on this, urgent! Thank you so very much!

There could be many reasons for not connecting to your WiFi.
Please double check if you have correctly configured the yaml file.
In some cases, your WiFi router may have a specific frequency setting.
Try updating the country code in the Raspberry Pi by editing the crda file as below.
$ sudo nano /etc/default/crda

Once the file is opened, enter the two character country code something like below(e.g. Korea = KR)
REGDOMAIN=KR

There could be many reasons for not connecting to your WiFi. Please double check if you have correctly configured the yaml file. In some cases, your WiFi router may have a specific frequency setting. Try updating the country code in the Raspberry Pi by editing the crda file as below.
$ sudo nano /etc/default/crda

Once the file is opened, enter the two character country code something like below(e.g. Korea = KR)
REGDOMAIN=KR

Hi Will,
I did that, still shows the same. Is there anything else I should do?
I don't think there's any problem with the router itself as its works fine with others, and there's no specific setting.

Hey hi,
I was facing the same issue, if u try to connect the monitor in rpi4, the wifi goes off as it enters the low power managment mode. So try to find whether the Wifi is still 'ON' after u connect the monitor. By running iwconfig

if u are able to see you ESSID, then you can connect to the wifi with same ESSID via wpa_supplicant. Give it a try it worked for me.

Hey hi,
I was facing the same issue, if u try to connect the monitor in rpi4, the wifi goes off as it enters the low power managment mode. So try to find whether the Wifi is still 'ON' after u connect the monitor. By running iwconfig

if u are able to see you ESSID, then you can connect to the wifi with same ESSID via wpa_supplicant. Give it a try it worked for me.

Hi Bggopal,
Thanks for your suggestion, but I've tried before (saw it somewhere). When I run 'iwconfig', it said command not found and should install 'sudo apt install wireless-tools'. How can I installed if there's no internet connection, huhu. However I've tried to run the command and it gave: temporary failure resolving 'ports.ubuntu.com'.
Any idea what should I do next?

Hey Hi,
Even same issue i had, so you have two idea and solutions to, it, you can connect RPi with a network cable [ ethernet lan cable ] which will enable you with internet for installing the wpa_supplicant and other network conifg requirements. The other idea will be bit crazy, but works, if at all you don't have a lan cable with you, connect your mobiles internet with RPi via USB tethering.  Then you require only two packages to enable the WIFI, iwconfig and wpa_supplicant. In this i got my issue solved with connecting my RPi with lan cable. And after rpi successfully connects with WiFi u may require nmap to find the IP address in this case. This solution worked for me.

Hey hi,
I was facing the same issue, if u try to connect the monitor in rpi4, the wifi goes off as it enters the low power managment mode. So try to find whether the Wifi is still 'ON' after u connect the monitor. By running iwconfig

if u are able to see you ESSID, then you can connect to the wifi with same ESSID via wpa_supplicant. Give it a try it worked for me.

Hi Bggopal,
Thanks for your suggestion, but I've tried before (saw it somewhere). When I run 'iwconfig', it said command not found and should install 'sudo apt install wireless-tools'. How can I installed if there's no internet connection, huhu. However I've tried to run the command and it gave: temporary failure resolving 'ports.ubuntu.com'.
Any idea what should I do next?

Hey Hi,
Even same issue i had, so you have two idea and solutions to, it, you can connect RPi with a network cable [ ethernet lan cable ] which will enable you with internet for installing the wpa_supplicant and other network conifg requirements. The other idea will be bit crazy, but works, if at all you don't have a lan cable with you, connect your mobiles internet with RPi via USB tethering. Then you require only two packages to enable the WIFI, iwconfig and wpa_supplicant. In this i got my issue solved with connecting my RPi with lan cable. And after rpi successfully connects with WiFi u may require nmap to find the IP address in this case. This solution worked for me.

Hey hi,
I was facing the same issue, if u try to connect the monitor in rpi4, the wifi goes off as it enters the low power managment mode. So try to find whether the Wifi is still 'ON' after u connect the monitor. By running iwconfig

if u are able to see you ESSID, then you can connect to the wifi with same ESSID via wpa_supplicant. Give it a try it worked for me.

Hi Bggopal,
Thanks for your suggestion, but I've tried before (saw it somewhere). When I run 'iwconfig', it said command not found and should install 'sudo apt install wireless-tools'. How can I installed if there's no internet connection, huhu. However I've tried to run the command and it gave: temporary failure resolving 'ports.ubuntu.com'.
Any idea what should I do next?

Hi Bggopal,
I just tried both suggestion.

connect RPi with network cable - didn't detect any network connection, I've tried to connect the network cable to another PC port, it does give internet connection
later I proceed with the second suggestion,
USB tethering - I'm not sure whether the cable has a problem or what, it didn't detect to my phone, and the rasp pi sometimes auto shutdown when the cable is attached to the usb port

Is it possible there's something wrong with the rasp pi or the image? However, I did try these setup last few months but at different places and it works well. It's indeed confusing.

Hi AQilahAD,
I suggest you to change the RPi image and check. May be true that the files might have been crashed [ network drivers ]. Rather than using Robotics raspian image, check with a regular Rpi image from https://www.raspberrypi.com/software/ download a latest verison of file and check for the image. Then go for Robotics Raspian. This can give you a confirmation, were things go worng, whether it's a hardware issue or software issue.


Documentation on Switch component

I noticed that if I just copy the code in: https://galio.io/docs/#/components/switch
<Switch
  value={this.state["switch-1"]}
  onValueChange={() => this.toggleSwitch("switch-1")}
/>

It throws an error saying that onChange is undefined. I think it would be a good to provide documentation that you would need onChange along with onValueChange. Unless I was implementing it wrong?
I was able to get my switch to work after adding onChange prop.

@levelingup have you tried using only onChange?
You're right, the example in our docs is not working correctly. We'd have to change that. This issue should be moved on our docs repo here: https://github.com/galio-org/docs
Thanks!

Yeah doing just onChange works, but it doesn't capture the value which I believe onValueChange is needed to do so, correct?
I'm still learning react native hehe.

We'll have to re-work this component for v1.0. Thank you for noticing that out! You're on the right path my friend!

Changing from onValueChange to onChange gives another error:
TypeError:_this2.toggleSwitch is not a function. (In '_this2.toggleSwitch("itemAvailable")', '_this2.toggleSwitch' is undefined)


Add Support to Remove Attendees from Events

Creating this issue in order to track something which was brought up in a recent discussion on Slack; https://opencollective.slack.com/archives/G46PNRCGP/p1643639938647049.
We currently do not ability to to remove event attendees. This creates some problems especially for events which has limited number of seats. Ideally,

The person who brought the ticket should be able to cancel it themselves.
The collective admin should be able to remove an attendee from the list if needed.

We probably need design input and prioritize this for the future.
cc: @Betree @opencollective/design

Related: https://github.com/opencollective/opencollective/issues/5000 https://github.com/opencollective/opencollective/issues/2097

Delete entry in the Members table. removeMember in the API cover this already
Delete entry from the Orders table if free ticket

What to do if a Member paid for a ticket? Should we Refund it?

We need @opencollective/design for this

Is this issue prioritized for this sprint? @Betree

I'm going to purposefully step over this one for the moment as we'll be prioritising a lot of events work soon.


[DASHBOARD] Track source of  traffic for the sponsors

Hello 👋,
👀 Background
Sponsors have their logo displayed on the dashboard, however there is no way for the sponsor to know that someone access to their website from the RestQA dashboard
✌ What is the actual behavior?
On the RestQA Dashboard main page when the user is clicking on the logo he is redirected to the sponsor website.
🕵♀ How to reproduce the current behavior?

Clone the repository
Install the dependencies : npm i
Install the dependencies of the dashboard: npm run dashboard:install
Run the dashboard on dev mode: npm run dashboard:dev
Access to the dashboard from your browser http://localhost:8081
Click on one for the sponsor logo.

🤞 What is the expected behavior?
When we click on the sponsor logo we should be redirected to the sponsor website, the sponsor should be able to know the source of the traffic

😎 Proposed solution.

[ ] Add utm information on the sponsor url: https://example.com?utm_source=dashboard&utm_medium=referral&utm_campaign=restqa

Cheers.

npm run dashboard:install seems to be failing on my end. :sneezing_face:


Mutation CreateOrConnect

Hey guys, suppose I have data model like this.
type User {
  id: ID! @unique
  authorId: String! @unique
  name: String!
  messages: [Message!]!
}

type Message {
  id: ID! @unique
  content: String
  author: User!
}

Suppose I have this message data in this form
// example message data
 {
  authorId: 'some-id",
  content: "some content"
}

I want to record that message in database. And create new user with that authorId, if it doesn’t exist yet.
async function recordMessage(message) {
  const userExists = await prisma.$exists.user({
      authorId: data.authorId
    });

  if (!userExists) {
    await prisma.createAuthor({
      authorId: data.authorId
    })
  }

  prisma.createMessage({
    content: data.content,
    author: {
      connect: {
        authorId: data.authorId
      }
    }
  });
}

Sometime one message and another message have same authorId. That’s why I check userExist first.
But, when I run recordMessage(message), alot of times.  Sometime it result in race condition, it says user doesn’t exist yet. But when we’re creating new author, I got Unique constraint Error. Which means there’s already user with that authorId right?
How do you guys handle this situation?
Is there any plan in the future for something like this:
Similar to upsert pattern
prisma.createMessage({
    content: data.content,
    author: {
      createOrConnect: {
        where: {
           authorId: data.authorId
         }
        create: {
            authorId: data.authorId
            name: "somename"
        }
        connect: {
           authorId: data.authorId
        }
      }
    }
  });
}

prisma.createOrConnectAuthor({
  where: {
    authorId: "some-id"
  },
  create: {
    authorId: "some-id"
  },
  connect: {
    authorId: "some-id"
  }
})

or
prisma.findOrCreateAuthor({
     authorId: "some-id"
})

Some ORM have this feature, like http://docs.sequelizejs.com/manual/tutorial/models-usage.html#-findorcreate-search-for-a-specific-element-or-create-it-if-not-available .
Well, I conclude the paint point here is that when creating new data that depends on another node, but you're not sure that node already exist or not.
Thanks

@muhajirframe : I would to the following here:

Use upsertUser to create a user if it does not exist yet. I would leave the update params for this mutation empty as you do not want to update something.
Just call createMessage as you did before.

Hey @mavilein . Thanks for the answer.
I tried that way, it does works! thanks.
Wondering if the nested mutation could work that way too?

@muhajirframe : Yes. Your idea for the nested createOrConnect is really neat! Thanks for proposing this 🙏


delete previously generated files when generating

delete previously generated files when generating
fix https://github.com/dart-lang/web/issues/28

Done as two commits for easier review.

[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

See our contributor guide for general expectations for PRs.
Larger or significant changes should be discussed in an issue before creating a PR.
Contributions to our repos should follow the Dart style guide and use dart format.
Most changes should add an entry to the changelog and may need to rev the pubspec package version.
Changes to packages require corresponding tests.

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

LGTM – @srujzs ?


Dynamic links aren't picked up by the bot.

I know it isn't used much but dynamic links (such as Spotify parties) aren't really picked up by the bot.
They just come up as blank messages to the recipient/staff (depending on who sent it).

Fixed in 25998fa8a297645fc2e7c8a83a45d2c26439b7de


Jdrush89/tree content visibility

I tried implementing tree virtualization in a number of ways. First, I tried using intersection observers on the subtree contents and paging in rows as they approached the viewport. The problem with this approach is when the user scrolls quickly, they may end up paging in a large subdirectory which then takes time to render. The pop-in while scrolling was a degraded experience compared to the non-virtualized tree. The complexity added from trying to maintain typeahead and other keyboard shortcuts, and keeping the focused and current rows materialized was also extremely high and likely to be prone to bugs.
I also tried virtualizing each row's contents with intersection observers. The pop-in was much less severs, though the initial render took much longer because each row had to handle and intersection event to figure out whether to show or hide. I settled on using the content-visiblity: auto property, which delays the rendering of each row without removing it
from the DOM. Each row can pass in a containIntrinsicSize property to specify it's estimated height , then the content-visibilty property will be added as well. Doing this is very simple and won't affect accessibility in any way. In testing with large trees, the initial render time is 20% faster and any lagginess in updating hover styles seems to go away. The drawback is that this property is not supported in FF or Safari yet, though it should be aded at some point.
The main problems virtualization was trying to solve was around the initial render time, hover styles, and typeahead time. I realized the typeahead implementation was causing multiple full rerenders of the tree by keeping the current search term in state. By moving it to a ref instead, the typeahead time sped up drastically. content-visiblity helps the initial render time some. In the file tree on dotcom, we make sure the tree renders after the hpc, so its initial render time isn't extremely critical, we also only render the first 100 items of each directory in the first pass, then do the rest afterwards. This greatly speeds up the initial render and essentially accomplishes the gains virtualizing each subdirectory's contents would make.  Once SSR is in place, the initial render should be sped up drastically as well.
Merge checklist

[x] Added/updated tests
[x] Added/updated documentation
[x] Tested in Chrome
[x] Tested in Firefox
[x] Tested in Safari
[ ] Tested in Edge

@joshblack Thanks for taking a look! I think the content-visibility is worth using for the file tree since it's easy to add and increases perf for large trees for most users. For FF/Safari, it is just a no-op until they add support for it. If you didn't want to add it to the TreeView component in primer, we could just add css rules to the 'PRIVATE_TreeView-item-container' class in dotcom, assuming that classname doesn't change.


Add validation and mutation for Projects

Add validation and mutation for Projects
New validations:

prohibit deleting the system project
check that quota fields are consistent with one another and sufficient
for existing quota usage

New mutations:

adds creator-role-bindings annotation

Refactor project quota validator
Refactor code that was largely copied from the norman store in Rancher:

rename variables and functions for clarity
break up functions into logical units
rename imports according to standard conventions and for clarity
remove the ephemeral updates to the used quota object,
quotav1.LessThanOrEqual already does not compare resources that aren't
present in both objects[1]
remove project mutex. Only one goroutine (the webhook) should be
accessing the project and its namespaces. Callers (rancher/rancher)
should implement their own lock before counting namespaces.

[1] https://github.com/kubernetes/apiserver/blob/d2172f30e1af3782a7124e21b8cb4676fc789acc/pkg/quota/v1/resources.go#L50-L62
Problem

Projects are not validated or correctly annotated unless they are created through the norman API, so they must not be created through k8s or steve.
Solution

Port the norman validations and transformations to webhook validators and mutators.
Testing

Automated tests:

Added unit tests
Added integration tests to webhook
Existing integration tests in rancher/rancher

Manual tests:

create projects and namespaces manually with kubectl, setting different quota values. Results should be the same as if they were created through the norman API/dashboard. Example manual tests: https://gist.github.com/cmurphy/3dd7555ec01bd2b6d1a3d885bb4c0c8e

@cmurphy, I completely agree that it's become much cleaner - essentially, these 5 functions/methods here do everything that the main Rancher does in its controllers, right? And those have a ton more logic.
I just still find our procedures that call other procedures hard to follow, they seem to be unrelated. For example, I am not sure which are higher-level and which are lower-level. They all look like helper methods.
I think the values of our v3 types (Project, ProjectResourceQuota, NamespaceResourceQuota) themselves should be like objects where they are responsible for telling the caller whether they are over the limit. They should be able to give you a different representations of themselves (like a map or ResourceList). They should be responsible for their own state. As it is, they are just anemic data containers that can't do anything and need procedures (not even methods) to do the work. And those procedures by definition can't be cohesive. But maybe I am wrong, and this is fine to do in Go, in general.
Does adding methods to our objects break CRD backward compatibility? I am not sure. AFAICT, the CRDs just need the fields, so the types don't have to be simple data containers.
Maybe all those functions should receive only a project? I'm struggling to mentally juggle those other types along with the project passed in.
I know I am offering little that's concrete, so I apologize. I just can't help but think that the code is still complex due to its procedural nature. For someone who hasn't worked with quotas, it might be even harder to extend and modify. I also realize that this is all beyond the scope of this PR and has to do with how we design types and CRDs, in general, so it may be harder to change.

Re-targeted at release/v0.4

I've been playing with the new validation and noticed that the new code doesn't validate limits being greater than requests within a single limit block in containerDefaultResourceLimit, namespaceDefaultResourceQuota, resourceQuota.
Norman also doesn't do this. But is this OK? Do we just want to port Norman's behavior unmodified?
I am noticing that if I try this by specifying the namespaceDefaultResourceQuota and add a namespace, the ResourceQuota object that gets created does have the proper spec:
spec:
    hard:
      configmaps: "4"
      limits.cpu: 100m
      requests.cpu: 200m

Yet when I create a pod in it, K8s rejects it: Error from server (Forbidden): pods "test" is forbidden: failed quota: default-pvzkl: must specify limits.cpu for: test; requests.cpu for: test.

Norman also doesn't do this. But is this OK?

The goal at this time is feature parity with norman, to the extent that we can (we made one exception). If we want to add further validations, that can be considered separately in a new issue.

Yet when I create a pod in it, K8s rejects it:

This is expected and not related to projects. See the note in the documentation:

For cpu and memory resources, ResourceQuotas enforce that every (new) pod in that namespace sets a limit for that resource.


[WIP] Resize and style

Hey @mhelmeck looks like this PR was opened accidentally 🙂 . I will be closing this for now. This app is open source though, so we do accept relevant PRs if you are looking to contribute in the future!


hamiltonian1 is not defined in an example of EstimatorV2

URL to the relevant documentation
https://docs.quantum.ibm.com/api/qiskit/primitives#overview-of-estimatorv2
Select all that apply

[ ] typo
[X] code bug
[ ] out-of-date content
[ ] broken link
[ ] other

Describe the fix.
from qiskit.primitives import StatevectorEstimator as Estimator
from qiskit.circuit.library import RealAmplitudes
from qiskit.quantum_info import SparsePauliOp

psi1 = RealAmplitudes(num_qubits=2, reps=2)
psi2 = RealAmplitudes(num_qubits=2, reps=3)

H1 = SparsePauliOp.from_list([("II", 1), ("IZ", 2), ("XI", 3)])
H2 = SparsePauliOp.from_list([("IZ", 1)])
H3 = SparsePauliOp.from_list([("ZI", 1), ("ZZ", 1)])

theta1 = [0, 1, 1, 2, 3, 5]
theta2 = [0, 1, 1, 2, 3, 5, 8, 13]
theta3 = [1, 2, 3, 4, 5, 6]

estimator = Estimator()

# calculate [ <psi1(theta1)|H1|psi1(theta1)> ]
job = estimator.run([(psi1, hamiltonian1, [theta1])])
job_result = job.result() # It will block until the job finishes.
print(f"The primitive-job finished with result {job_result}"))

# calculate [ [<psi1(theta1)|H1|psi1(theta1)>,
#              <psi1(theta3)|H3|psi1(theta3)>],
#             [<psi2(theta2)|H2|psi2(theta2)>] ]
job2 = estimator.run(
    [
        (psi1, [hamiltonian1, hamiltonian3], [theta1, theta3]),
        (psi2, hamiltonian2, theta2)
    ],
    precision=0.01
)
job_result = job2.result()
print(f"The primitive-job finished with result {job_result}")

hamiltonian* are not defined. I think it should be H*. If so, do sed s/hamiltonian/H/g.

Hi @hhorii ! Looks like this issue should be posted in the qiskit/qiskit repo, which is where the API docs source files live: https://github.com/Qiskit/qiskit/issues/new?assignees=&labels=bug&projects=&template=BUG_REPORT.yaml - can you please open an issue there? Thanks, and I will close this issue here.


Make dates returned by the API ISO 8601 compliant

The date returned by the endpoint is not ISO 8601 compliant which makes it inconveniently difficult for clients to use relative dates with the information provided.

Hi Rodrigo, I believe the date is a compatible ISO 8601 date. While it is not a datetime, it is a date specified in YYYY-MM-DD format.
Are you seeing a different value?

I think we probably won't be changing the date format for now as it would be a breaking change for most consumers.
Though I'm happy to help find an easy way to parse that date object.  What language are you using?

I understand. And thanks for the offer but that's okay :)
I already had a solution on which I was taking some assumptions. I asked just for the sense of having a down to the minute accurate information about when the data was published
Keep up the good work.


add some music files

Basically, upload AIFFs to bandcamp. And an album cover

added a bandcamp embed.


TCP or UDP?

CoAP can work over both TCP and UDP, which one to choose?

Honestly, for this type of application where ordering matters quite a bit, if we can, we should go with TCP. UDP is faster because it doesn't use acks and also because it doesn't worry about ordering of messages.
Another option is to use TCP by default and UDP if we run into a scenario where TCP isn't an option due to resource constraints. As I mentioned in another issue, a server can have multiple listeners.

I didn't think about reordering, but you are a 100% right. If a skill sends
"hi" and "my name is..." they should arrive in the correct order. Now, in
reality this shouldnt happen much since generally a skill wont send to the
same client twice in a row, but since it might happen (specially with
progressive responses that are resolved too fast) better be prepared.


Command: fold

Reopening old Issue in relevant Repo
https://github.com/limetext/lime/issues/66

Ugh, old commit references limetext/lime/#32 not this one.


Licenses for projects

What are your licenses for each of your projects?

We use the MIT license.

Thank you!


Update build.rs to read from RUSTC

Cargo exposes RUSTC (docs).

Just saw #11, closing in favor of that


Changelog for 1.2.2-beta.3

Changelog entry for<EMAIL_ADDRESS>

Coverage remained the same at 76.154% when pulling 4c2fadae37c5a8d7b8c815ffe09858d4dc33761a on 1.2.2-beta.3 into 55bd648362a5982cad8b4c9bd3534c293df087c3 on dev.


Remove deprecated string methods from the book table

Once more

I can't seem to git rid of those extra commits with rebase -i. Any ideas?

git rebase -i  master
# inside editor: change "pick" to "squash" in all except the first line
git push -f origin

@quickfur Rebase the branch onto master? But this is going on stable; I don't understand.

Sorry, that was only meant as an example. Obviously, you want to rebase onto whatever branch you're targeting.  The main point is that you change pick to squash in the rebase dialog so that git will squash everything into a single commit.

I think git rebase origin/stable did the trick


Last update crashes when starting the app

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.901
Where did you get the app from?
Google Play
Android version
14
Device model
Poco F5
Steps to reproduce
After the update I try to open the app
Expected behavior
Open the app and check my mail
Actual behavior
The app crashes and doesn't start.
Logs

Uninstalling and reinstalling worked for me but I had to setup all the accounts again.

Yes, you're right, uninstalling and reinstalling again fixes the issue.
Thank you very much.

In the past the app accidentally allowed the user to enter usernames and passwords containing line breaks. Newer app versions automatically strip line breaks when the user enters a username or password. We also added a check to make sure username and password in server settings never contain line breaks.
My assumption was that having a line break in the username or password will lead to a failure when checking server settings. So there won't be any existing accounts we have to fix during an upgrade. Apparently I was wrong. This crash also shows up for some beta users on Google Play.
Steps to reproduce:

Install K-9 Mail 6.803
Import the settings in issue_7855_settings.zip (dummy account containing line breaks in username of incoming and outgoing server settings)
Update to K-9 Mail 6.901 → App crashes during start


Isabelle: 2020 -> 2021

Motivation for this change
The new version has serveral improvements and is out since april
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[x] Fits CONTRIBUTING.md.

The polyml update was necessary for isabelle, otherwise the theories would not build. I've put it in a separate commit

Result of nixpkgs-review pr 130583 at 9111bd40 run on aarch64-linux 1

2 packages marked as broken and skipped:

isabelle
tlaps

1 package failed to build:

hol

2 packages built successfully:

nixos-install-tools
polyml

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

hydra-check tells me that hol is broken on aarch64 for some time now, so this build failure is expected

I've now added a .desktop entry for isabelle too. The file is generated and placed correctly, but I am fairly new to nixos, so I don't know how to test that it is correct. It does not show up in my rofi when running nix-build -A isabelle

@jvanbruegge thanks for the update. Currently building Isabelle 2021 from this PR. Are you familiar enough with holmake to help get CakeML to build? I have an attempt here but I'm currently stuck on the lack of documentation on holmake.

Sorry, no idea

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

1 package blacklisted:

tests.nixos-functions.nixos-test

1 package failed to build:

nixos-install-tools

4 packages built:

hol
isabelle
polyml
tlaps

Thanks!


Backlog for Release 4.50.5

Feature Description
Release Workflow

Change the trigger for Attach Artifacts to be the successful completion of the Node Release workflow.  How to - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
Is it possible to augment release.yml to check that the release tag and package.json are in alignment, or have package,json be updated to match the release tag.
Can we add other other housekeeping pre-checks to release.yml including CHANGELOG.md ?

UI

removing depricated releases from showing in the install alternate Version drop down. I deprecated 4.50.3 on NPM, but it still shows in the dropdown.

Dependant Packages - Validate and automate

https://github.com/homebridge/homebridge-raspbian-image
https://github.com/homebridge/docker-homebridge
https://github.com/homebridge/homebridge-apt-pkg
https://github.com/homebridge/homebridge-syno-spk
https://github.com/homebridge/homebridge-vm-image
https://github.com/homebridge/homebridge-macos-pkg

Not stale

Bump. Unstale.

Bump. Unstale.

Not needed, this has been pined. Also your last comment before this should be a separate issue


AddErrorInterfaceType should have an option to reduce boilerplate

Product
Hot Chocolate
Is your feature request related to a problem?
Currently, exceptions that implement an interface that is registered with AddErrorInterfaceType are treated as unhandled/unexpected unless explicitly registered in an error factory + [Error(typeof(Type))] attribute. The result is an HTTP 500 response and no type 6a error selection pattern. This leads to a lot of boilerplate code. Implementations of the AddErrorInterfaceType's interface should be expected to be treated as GQL errors, not as unhandled exceptions.
The solution you'd like
AddErrorInterfaceType should have an option to automatically cast all unhandled exceptions that implement the registered interface to a base GQL error to be surfaced for mutation error selections when no explicit GQL error is defined for the exception. Additionally, I would like to see base error selection be available on the mutation without requiring an [Error(typeof(Type))] attribute specified.
This should also improve service layer separation of concern.

Currently, exceptions that implement an interface that is registered with AddErrorInterfaceType are treated as unhandled/unexpected unless explicitly registered in an error factory + [Error(typeof(Type))] attribute. The result is an HTTP 500 response and no type 6a error selection pattern. This leads to a lot of boilerplate code. Implementations of the AddErrorInterfaceType's interface should be expected to be treated as GQL errors, not as unhandled exceptions.

There does not need to be an error factory. But you must expose domain errors per mutation as from the client side you want to only deal with the domain errors for that mutation and not with generic errors that are automatically exposed through every mutation.
[Error<MyDomainException>] is all what is needed.

AddErrorInterfaceType should have an option to automatically cast all unhandled exceptions that implement the registered interface to a base GQL error to be surfaced for mutation error selections when no explicit GQL error is defined for the exception. Additionally, I would like to see base error selection be available on the mutation without requiring an [Error(typeof(Type))] attribute specified.

AddErrorInterfaceType has nothing to do with your exceptions and is barely ever needed.

@michaelstaib right now, if I surface an unhandled exception, HC will return an HTTP 500. What I am saying is that if I define an interface in C# that is used for HC's root ErrorInterfaceType, then all C# exceptions implementing that interface should be considered an implementation of that GQL SDL interface as well. This intrinsically means that implementations of that interface, even if they inherit the Exception class should be converted to expected errors that we can select via the type 6a pattern and return an HTTP 200 instead.
The reason this recommendation is different from your suggestion of using [Error] attributes is verbosity.
If I have a mutation that executes an injected service method which is very complex, it can have N thrown exceptions. Maybe N-1 of those thrown exceptions are considered exceptions to be handled by the UI. Decorating the mutation with N-1 [Error] attributes is not necessary when you consider the Interface implementations. Only once there is a need for a concrete GQL Type, should we require the [Error] attr. For rapid iteration, we would benefit from automatically casting those unhandled Exceptions that implement the AddErrorInterfaceType's Interface to a base GQL Type. Maybe that base GQL Type is automatically generated? Mutations would contain the error {} selector regardless of if an [Error] attr was defined and will always contain the base error interface object. This makes the responses predictable as well.
The code structure I would like to use is actually shown in a bug ticket: https://github.com/ChilliCream/graphql-platform/issues/6053. You'll notice a lack of an [Error] definition for ExpectedExceptionC. Since ExpectedExceptionC implements the GQL ErrorInterfaceType, it should be casted to that base GQL error shape and be returned in the mutation errors {} selection. Instead an HTTP 500 is thrown and the error will be surfaced in a root error array. This convolutes UI error handling and forces verbosity in the mutation conventions. Why are we ignoring inheritance and implied meaning of a GQL error interface in HC?

Thank you for your input. I understand your concerns and would like to clarify a few points.
Firstly, it's important to note that the assumption that all Mutations return the ErrorInterfaceType is incorrect. The ErrorInterfaceType is merely a common interface implemented by all the errors in the GraphQL Schema.
Secondly, each mutation should have its own set of errors. It's important to only expose errors in the mutations that the user can influence. For example, a "UsernameAlreadyTaken" error is something the user can address by changing their username, whereas a "DatabaseNotAvailable" error is beyond the user's control.
Checkout this example:

the AddAssetToWatchlist has a specific error union, which is the correct approach.
Lastly, with the error attribute, you signal what errors can be returned by a specific mutation. If you have common errors, the easiest thing is to create a custom attribute, such as [DefaultErrors], that inherits from ObjectFieldDescriptorAttribute and registers the errors on the field descriptor.
// Custom attribute for registering default errors
public class DefaultErrorsAttribute : ObjectFieldDescriptorAttribute
{
    protected override void OnConfigure(IDescriptorContext context, IObjectFieldDescriptor descriptor, MemberInfo member)
    {
        // Register common errors using the Error<TError>() method
        descriptor
            .Error<UnauthorizedOperation>()
            .Error<InvalidTenant>();
    }
}

// Usage of the DefaultErrors attribute on a mutation field
public class Mutation
{
    [DefaultErrors]
    [Error<UserNameAlreadTaken>]
    public async Task<User> UpdateUserName(Guid UserId, string UserName)
    {
        // Implementation of the mutation
    }
}

This approach should help you maintain a clean and less verbose code structure while ensuring proper error handling and response predictability.

@PascalSenn Thanks for that tip! The confusion is primarily the following:

Like you mention, the AddErrorInterface's intent can be confused with general interface behavior
Registering an error with a constructor or CreateErrorFrom taking an interface currently does not enable exceptions implementing it to be surfaced with the type 6a pattern, we get HTTP 500 instead. This kind of flies in the face of inheritance expectations.

It would be better if an Error constructor or CreateErrorFrom would be considered for all classes that inherit or implement the class or interface provided in the definition and then prioritized by hierarchy (specificity).


add ownerName and ownerKind to node props

Signed-off-by: Richie Piya<EMAIL_ADDRESS>Related Issue: https://github.com/open-cluster-management/backlog/issues/9000
Description of changes

get owner name and kind for pod resources

/hold

Is this scenario not handled by the ownedBy edges?

we need both the pod ownerName and ownerKind to match with resources that deploy these pods in app-ui

we need both the pod ownerName and ownerKind to match with resources that deploy these pods in app-ui

Capturing our discussion here - currently, we have this info in search. Searching for the pod will bring up the replication-controller as a related resource and vice-versa. @richiepiya to check if this info can be used for the topology use-case.

@SherinV updated the PR to conditionally pass the node properties
fyi @fxiang1

/retest


Witch LoRa Lib?

Witch LoRa library is this project dependent on?
There are multiple Lora library available.
None of the obvious one contain the LoRa.h file that is used in fdrs_sensor.h.
I am unable to compile the Lora part of the project.

.

Just had to flap my gums to find it...
https://github.com/sandeepmistry/arduino-LoRa


publish 0-bootstrap as ghcr.io container image

https://github.com/threefoldtech/grid_deployment/issues/50
So we can deploy it with docker-compose

include the result of setup/template.sh so we can skip this part during a docker-compose deploy


Add [SCAM ACCOUNT SCAMACCOUNT.COM] #obsolete-inflation-pool GCJPJK…NFROOT

Address: GCJPJK6FQJPZYOW4PE5FR6MZW7C5LLMWMGGGL5EMHKSYEHLNDBNFROOT
Tags: obsolete-inflation-pool
Title: SCAM ACCOUNT  Domain: SCAMACCOUNT.COM
Requested by @astroshibainu

SCAM ACCOUNT

I see the pattern. How does this bot work?

Hello @AstroShibaInu
Please feel free to reopen this issue with any new information or explanations to post.
Looking towards the future with you,
Rob


Ajax responder for prototype

Hey there,
I just added nprogress-rails to a legacy app which still uses Prototype. Here's the a version of nprogress-ajax that works with the Ajax events from Prototype. Feel free to include it in the package (maybe call it nprogress-ajax-prototype?), but I understand if you don't want to, since it's such a small niche. Regardless, I just wanted to document it here for anyone else who might need it.
(The normal jQuery one only works for Ajax events started by jQuery, so even though my app has the two co-existing, that one doesn't work).
Ajax.Responders.register({
  onCreate: function() {
    NProgress.start();
  },
  onComplete: function() {
    NProgress.done();
  }
});

Nice! Don't you want to open a PR with that? You can also add something in the README about it :beers:

Sure thing! Just wasn't sure if you were interested. I'll do this now.

Here you go! #28
Feel free to change the wording of the README at your discretion!


feat(console): blob share ticket

Description
Adds a subcommand to blob to produce a ticket. Option include:

make the ticket a derp only one
make the ticket a udp only one
use a blob raw format (default is hashseq as it's more general)
hidden dev flag: debug the ticket contents
Add a token

Notes & open questions
I believe the generated tickets are correct (if they are not, then there is no validation about it) but some of them don't seem to work, for example if the ticket is direct address only. We should debug this afterwards
Sample output:
author:wi46loxp…
> blob share bafkr4ibzusj4ulmrhrbymsgklwlcencx63jwcurmoimjhk4mutqdsqhnqa --debug --token sunshine
Ticket for blob bafkr4ibzusj4ulmrhrbymsgklwlcencx63jwcurmoimjhk4mutqdsqhnqa (347 B)
blob:edjoqrkky753mdwphqrxbr2wjzkizv4hkb5s5ovav73c2zfuaja7aaibamal6xy6a73lgayaycucxc6ek4asqayyabirj5ltvyppnqt24t6cjrkxae42je6kfwityq4gjdff3frcgrl7nu3bkiwhegetvogkjybzidwyaaiion2w443infxgk
Ticket {
    node: PeerAddr {
        peer_id: PublicKey(2luekswh7o3a5tz4),
        info: AddrInfo {
            derp_region: Some(
                1,
            ),
            direct_addresses: {
                <IP_ADDRESS>:55798,
                <IP_ADDRESS>:11204,
                [2803:1800:5114:f573:ae1e:f6c2:7ae4:fc24]:11205,
            },
        },
    },
    format: HashSeq,
    hash: Hash(
        39a493ca2d913c438648ca5d96223457f6d361522c721893ab8ca4e03940ed80,
    ),
    token: Some(
        RequestToken {
            bytes: b"sunshine",
        },
    ),
}

Change checklist

[x] Self-review.
[ ] Documentation updates if relevant.
[ ] Tests if relevant.

@b5 changing this to draft because setting recursive by default won't work.
It seems to be that to know if the blob is a collection or not we need to look into tags for tagged data. Not sure how for untagged data


remove FormatName in the codegen/nodejs if unused

https://github.com/dagger/dagger/pull/3606#discussion_r1022055467
For now, we will publish it as is, as it can help update the generated code. Down the line, we might not need it, therefore we should get rid of it if it is the case.

any update on that one @dolanor ?

Close this one. It seems outdated. Feel free to reopen it @dolanor if needed


bumped dockerfile to 2.1-SDK

Bumped the runtime to microsoft/dotnet:2.1-sdk baseimage.
Give me a nudge if something else has changed 😃
We probebly shoud have the CI build the images as well, and run something like container-structure-test on them to save the manual verification.

thanks


Chore: Split unit tests into more atomic files (fixes #36)

What is the purpose of this pull request? (Check any that's applicable)

[ ] Feature
[ ] Bug fix
[ ] Dependency updates
[ ] Documentation updates
[ ] Build related changes
[ ] Changes an existing functionality
[x] Other, please explain: Refactoring Unit tests

Does this introduce a breaking change?

[ ] Yes
[x] No

What changes did you make? (Give an overview)

Refactoring Unit tests
Fixed intermittent breaking unit tests
Unit tests now disable animations when resize event triggers

Add any screenshots
N/A

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


v-model not copied, but shows correctly on the console

Cleaning up example.

These elements are inside a <b-form> element.

Hmm, using the exact same code inside a codesandbox and it works, but it's not in a bootstrap-vue modal - https://codesandbox.io/s/73v8pmxv4q

This fails - https://codesandbox.io/s/jq9vx1y0w
I've not imported our custom css theme, but you can see it's a modal and it closes OK.

See https://clipboardjs.com/#advanced-usage and #23
I will add this option to document (README).

Ah, I see. I'll wait for the doc example. Thank you very much!

https://codesandbox.io/s/o46p070v6z

Thanks. Is there a nicer way to do this using the simple v-clipboard syntax?

I just tired to add v-clipboard:container directive, but I found that will be a little difficult, so I will not add this feature right now. Maybe you can open another issue for the feature request.

Hi Inndy,
I'm confused as to how this works in general, because with
v-clipboard:copy="curlAddCustomer" in my example
(https://codesandbox.io/s/o46p070v6z) I'm passing it something that is
part of vue data, not an input field etc. Even so, with v-modal="blah"
defined, why do we care how the markup is presented? This is all
internal to vue anyway.
Thanks,
Gavin.

Instead of add another directive, I made a new optional config which let vue-clipboard2 set container to current element. See README for the further information.

Looks good.
On 14 June 2018 at 10:27, Inndy<EMAIL_ADDRESS>wrote:

Instead of add another directive, I made a new optional config which let
vue-clipboard2 set container to current element. See README
https://github.com/Inndy/vue-clipboard2/blob/master/README.md#it-doesnt-work-with-bootstrap-modals
for the further information.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Inndy/vue-clipboard2/issues/32#issuecomment-397231662,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJveGPBTsDWQ8UBDiD2fQLCROitBAU4ks5t8ix2gaJpZM4UlHDl
.

--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 330 44 50 000
D +44 (0) 330 44 55 007
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E<EMAIL_ADDRESS>Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Winner of the Best Business ITSP (Medium Enterprise) 2016!
http://www.surevoip.co.uk/2016-best-provider
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie, Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api

@ghenry have any further problem? I'm going to close this issue.

All good. Thanks.
On 21 June 2018 at 10:12, Inndy<EMAIL_ADDRESS>wrote:

@ghenry https://github.com/ghenry have any further problem? I'm going
to close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Inndy/vue-clipboard2/issues/32#issuecomment-399032773,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJveJt-ncBd3S0mXZJEbDiUJmBffLFxks5t-2NqgaJpZM4UlHDl
.

--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 330 44 50 000
D +44 (0) 330 44 55 007
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E<EMAIL_ADDRESS>Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
Winner of the Best Business ITSP (Medium Enterprise) 2016!
http://www.surevoip.co.uk/2016-best-provider
Suretec Systems is a limited company registered in Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman,
Inverurie, Aberdeenshire, AB51 8GL.
Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html
Do you know we have our own VoIP provider called SureVoIP? See
http://www.surevoip.co.uk
Did you see our API? http://www.surevoip.co.uk/api


Fix multiprocessing.Array init for py3 compatibility

Some minor bug fixes mostly concerning compatibility with python3.

Unfortunately, this PR breaks existing code for python 2.7 (see travis test log). I think a conversion to python 3 (while still supporting python 2.7) is a bit more involved. This seems to be a good resource: http://python-future.org/compatible_idioms.html
Maybe it's best to keep this in a separate branch for now.


Handle invalid JSON

email-alert-service, one of the apps that will use this gem, has special behaviour for when the message received from RMQ isn't valid JSON. This may be a good thing to pull up into the gem.
We implement the check by refactoring the JSON parsing into a middleware processor, like HeartbeatProcessor. The responsibility of the JSONProcessor is to parse the payload attribute on Message.
I've considered an alternative, to keep the JSON parsing inside Message, but that would've meant that Message would discard itself whenever it encounters a parse error. Keeping this within a class seemed cleaner.
Message has been refactored to have use payload consistently. This is also the term RabbitMQ uses.

email-alert-service also notifies Airbrake. @alext do you think this gem should notify airbrake, or raise an error after discarding and let the consuming app figure it out?

I don't think this should notify airbrake (that would add an unnecessary dependency to this gem).  Instead, it should probably allow the specification of an error handler that will be called with details of any errors.  That would allow the app to handle (or not) any errors as it wants.
I don't think it'll work to just raise exceptions back to the app because the queue processor gets run in a separate thread.

Consumer apps could catch the errors with a middleware:
class AirbrakeProcessor
  def initialize(next_processor)
    @next_processor = next_processor
  end

  def process(message)
    @next_processor.process(message)
  rescue
    # notify airbrake
  end
end

We could provide this class in the gem as an extension. But the consumer would have to add the Airbrake gem and put the middleware in:
require "govuk_message_queue_consumer/airbrake"
GovukMessageQueueConsumer::Consumer.new(etc, etc, AirbrakeProcessor.new(MyConsumer.new))

Consumer apps could catch the errors with a middleware:

That works for catching errors in their own processors, but it doesn't allow handling errors in the gem's processors (e.g. errors from invalid JSON) because they're higher in the chain.
Maybe instead of constructing a default middleware stack, the gem can just make a number of processor middlewares available that it's up to the consuming app to compose as needed.
The only exception to this might be the heartbeat processor that it makes sense to always have as the first item in the stack.

That works for catching errors in their own processors, but it doesn't allow handling errors in the gem's processors (e.g. errors from invalid JSON) because they're higher in the chain.

Ugh, you're right.
Let me think about how it would look in the consuming app. I might be overengineering this now.

I think notifying airbrake for malformed messages (when content-type == 'application/json'), and then ackking the message (since there's nothing else that can be done with it) is actually the right way to go.  This gem is for govuk conventions for message queue processing, and our convention is to use airbrake to report such problems.

Thinking about this further, we could wrap the error reporting in an if defined(Airbrake), which should avoid this having to have a hard dependency on Airbrake

Added commit - ready for review again.

Added commit - ready for review again.

I think the comment about making the JSON parsing conditional on the content-type still stands.

@alext added


Integrate bsdl2json

I have created bsdl-parser package. I have integrated it to this project. Now you can give bsdl files directly to bsdl-parser

Very nice! Thanks!

Hey Bendek,
I blindly accepted your pull request without testing it, but I'm now trying it on a new machine and even after doing the 'pip install' of bsdl-parser, I get the following error:
./bscan_proc.py EP1AGX90EF1152.BSD example/bscan_values.txt
INFO:root:EP1AGX90EF1152.BSD is not a json file... Lets's find in the cache
INFO:root:/home/tom/.cache/bscan_proc/EP1AGX90EF1152.BSD.json not found in cache... Lets's parse original.
INFO:root:bsdl2json EP1AGX90EF1152.BSD -o /home/tom/.cache/bscan_proc/EP1AGX90EF1152.BSD.json From: '../python-bsdl-parser'
Traceback (most recent call last):
  File "./bscan_proc.py", line 55, in <module>
    data = json.load(json_file)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./bscan_proc.py", line 73, in <module>
    p = subprocess.Popen(cmdlist, cwd='../python-bsdl-parser')
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../python-bsdl-parser'

On this new machine, ../python-bsdl-parser doesn't exist, but I assume that wouldn't have been necessary because you required that bsdl-parser package?
What's the right way to go forward on this?
Tom

The following commit fixes things for me: cf8d5f401c82fabca59b19144496a63fb3912e68.
Does that look reasonable to you?
Tom

Sorry, for the delay. I was busy.
Thanks for the fix. I want to add further features to improove user experience.


Document examples for each method and option

It often happens that I look at the docs for a plotting function and I see several methods and options that look relevant to what I want but (1) I'm not sure if it's the right option, and (2) when I use it and it doesn't do what I expected, I'm not sure if it's supposed to look like that.
It would be helpful to have some examples of every method and option. I'm not sure what the best UI for that is, since it's a lot of examples. Maybe each entry in the options list could link to some plots with different values set for the options.
For example, each of these rows could have a link to a corresponding plot.
  arrowcolor   :black
  arrowhead    AbstractPlotting.Automatic()
  arrowsize    0.3
  arrowtail    "nothing"
  colormap     :viridis
  lengthscale  1.0f0
  linecolor    :black
  linestyle    "nothing"
  linewidth    1
  normalize    false
  scale        Float32[1.0, 1.0, 1.0]

Part of the short method descriptions was that I started off from the old format, where there was just one huge page. I'm splitting this out into separate pages so each method has room to have its attributes explored more.
https://github.com/JuliaPlots/AbstractPlotting.jl/pull/659


Fn to Hyper

love the original Karabiner; glad to see Sierra support coming along! still, I'm desperately missing the ability to map my Fn key to the "hyper" key combo (cmd+ctrl+shift+alt). I was wondering how I might accomplish something similar with Karabiner Elements, or if this feature is planned?

I also miss the feature to map fn key to hyper with some conditions.
@rafegoldberg You can now map fn to hyper without any special condition. A downside is that you cannot use fn key combined with function keys.


CELERYBEAT_SCHEDULE not registering tasks for email reports

CELERYBEAT_SCHEDULE doesn't seem to get triggered when trying to queue email report requests.
My docker-entrypoint.sh has all three of these commands:
celery worker --app=superset.sql_lab:celery_app --pool=gevent -Ofair &
celery worker --app=superset.tasks.celery_app:app --pool=prefork --loglevel=info -O fair -c 4 &
celery beat --app=superset.tasks.celery_app:app --loglevel=info &

Expected results
I have a task that should run every two seconds, and have created that task in schedules.py just like the email report, but neither of them work.
Actual results
The celery beat logs don't seem to show anything.
Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug

Go to '...'
Click on '....'
Scroll down to '....'
See error

Environment
(please complete the following information):

superset version: superset version 0.34
python version: python --version 3.6
node.js version: node -v
npm version: npm -v

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ ] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

You can set celery beat logs level to debug.
Also, can you please post the change you made?

Forgot to update this thread, but can close the issue now. I was writing to the incorrect superset_config.py file so my settings were getting overwritten.


Day446

Resolves #900.

Pull Request Test Coverage Report for Build 1685

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1675:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls


MethodError with 0.5.7 and rc4

The data frame that instigates the problem can be generated by sourcing the script 008_GLMM_make_yourself.R which can be downloaded (near the bottom of):
http://bodowinter.com/stuttgart_awesomeness/
The specific data frame was extracted with:
write.table(xdata,'bodo-example.csv',row.names=F,sep=',')
julia> df = readtable("bodo-example.csv")
120×4 DataFrames.DataFrame
│ Row │ Subject │ Item     │ Frequency │ VowelDuration │
├─────┼─────────┼──────────┼───────────┼───────────────┤
│ 1   │ "S1"    │ "Item1"  │ 2.74      │ 312.409       │
│ 2   │ "S1"    │ "Item2"  │ 9.82      │ 236.582       │
...
julia> f = VowelDuration ~ Frequency + (1+Frequency|Subject)
Formula: VowelDuration ~ Frequency + ((1 + Frequency) | Subject)

julia> mixed = lmm(f,df)
WARNING: Model has not been fit

julia> fm = fit!(mixed)
Linear mixed model fit by maximum likelihood
 Formula: VowelDuration ~ Frequency + ((1 + Frequency) | Subject)
   logLik    -2 logLik     AIC        BIC
   -587.3596  1174.7193  1186.7193  1203.4442
...
julia> f = VowelDuration ~ Frequency + (1+Frequency|Subject) + (1|Item)
Formula: VowelDuration ~ Frequency + ((1 + Frequency) | Subject) + (1 | Item)

julia> mixed = lmm(f,df)
ERROR: MethodError: no method matching *(::MixedModels.ScalarReMat{Float64,String,UInt8}, ::MixedModels.VectorReMat{Float64,String,UInt8})
Closest candidates are:
  *(::Any, ::Any, ::Any, ::Any...) at operators.jl:138
  *{T}(::Diagonal{T}, ::MixedModels.VectorReMat{T,S,R<:Integer}) at /Users/sjbespa/.julia/v0.5/MixedModels/src/remat.jl:327
  *{T}(::T, ::Type{Measures.Length{:cx,T}}) at /Users/sjbespa/.julia/v0.5/Compose/src/measure.jl:9
  ...
 in Ac_mul_B(::MixedModels.ScalarReMat{Float64,String,UInt8}, ::MixedModels.VectorReMat{Float64,String,UInt8}) at ./operators.jl:319
 in MixedModels.LinearMixedModel{T<:AbstractFloat}(::DataFrames.Formula, ::DataFrames.ModelFrame, ::Array{Any,1}, ::Array{LowerTriangular{Float64,Array{Float64,2}},1}, ::Array{Float64,1}) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:104
 in #lmm#11(::Array{Any,1}, ::Function, ::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:145
 in lmm(::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:130

Thanks for the example of the failure.  I think I do indeed need to install another method.

Glad I can help. If you wish I can pass along the .csv file - I tried to load it into the drop box, but that seems to have disappeared.

On Sep 22, 2016, at 3:04 PM, Douglas Bates<EMAIL_ADDRESS>wrote:
Thanks for the example of the failure. I think I do indeed need to install another method.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hmm, the Box at uwmadison.box.com is still there.  I'll send you another invite.

Thanks. For some reason I ended up on a page that was trying to get me to create a new (commercial) account.
In any event I’ll send you two versions of the file. The one with the “string” factors and one that I just created with “numeric” factors (as I’ve done hundreds of times before). The latter doesn’t work with readtable.
Stephen

On Sep 22, 2016, at 3:14 PM, Douglas Bates<EMAIL_ADDRESS>wrote:
Hmm, the Box at uwmadison.box.com is still there. I'll send you another invite.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Can you try this again with version 0.7.0.  I just submitted the release to METADATA.  If you want to try today or tomorrow you should checkout the master branch of the repository.

@protogeezer It may still fail.  The case I fixed was multiple vector-valued random effects terms whereas you have a combination of vector-valued and scalar random effects terms.

I’ll give it a try over the weekend.
Stephen

On Nov 17, 2016, at 3:15 PM, Douglas Bates<EMAIL_ADDRESS>wrote:
@protogeezer It may still fail. The case I fixed was multiple vector-valued random effects terms whereas you have a combination of vector-valued and scalar random effects terms.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@protogeezer Have you checked if this works for you now?

Yikes. Sorry for the delay. No it doesn't work.  With an update a few minutes ago, the problem described in the issue still exists:
julia> mixed = lmm(f,bodo_df)
WARNING: the no-op `transpose` fallback is deprecated, and no more specific `transpose` method for MixedModels.ScalarReMat{Float64,String,UInt8} exists. Consider `permutedims(x, [2, 1])` or writing a specific `transpose(x::MixedModels.ScalarReMat{Float64,String,UInt8})` method if appropriate.
 in depwarn(::String, ::Symbol) at ./deprecated.jl:64
 in transpose(::MixedModels.ScalarReMat{Float64,String,UInt8}) at ./deprecated.jl:770
 in ctranspose at ./operators.jl:315 [inlined]
 in Ac_mul_B(::MixedModels.ScalarReMat{Float64,String,UInt8}, ::MixedModels.VectorReMat{Float64,String,UInt8}) at ./operators.jl:319
 in MixedModels.LinearMixedModel{T<:AbstractFloat}(::DataFrames.Formula, ::DataFrames.ModelFrame, ::Array{Any,1}, ::Array{LowerTriangular{Float64,Array{Float64,2}},1}, ::Array{Float64,1}) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:104
 in #lmm#11(::Array{Any,1}, ::Function, ::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:145
 in lmm(::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:130
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /usr/local/lib/julia/sys.dylib:?
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68
while loading no file, in expression starting on line 0
ERROR: MethodError: no method matching *(::MixedModels.ScalarReMat{Float64,String,UInt8}, ::MixedModels.VectorReMat{Float64,String,UInt8})
Closest candidates are:
  *(::Any, ::Any, ::Any, ::Any...) at operators.jl:138
  *{T}(::Diagonal{T}, ::MixedModels.VectorReMat{T,V,R}) at /Users/sjbespa/.julia/v0.5/MixedModels/src/remat.jl:349
 in Ac_mul_B(::MixedModels.ScalarReMat{Float64,String,UInt8}, ::MixedModels.VectorReMat{Float64,String,UInt8}) at ./operators.jl:319
 in MixedModels.LinearMixedModel{T<:AbstractFloat}(::DataFrames.Formula, ::DataFrames.ModelFrame, ::Array{Any,1}, ::Array{LowerTriangular{Float64,Array{Float64,2}},1}, ::Array{Float64,1}) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:104
 in #lmm#11(::Array{Any,1}, ::Function, ::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:145
 in lmm(::DataFrames.Formula, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.5/MixedModels/src/pls.jl:130

This is likely academic and probably should be closed.


Update CONTRIBUTING.md

Update CONTRIBUTING page
Here's a link you can take inspiration with.

I would like to work on this too


Updating our package construction methods

Description
Updating our package construction methods to support different applications.
Issues Resolved

#119

Check List

[ ] All tests pass

[ ] yarn test:jest
[ ] yarn test:jest_integration
[ ] yarn test:ftr

[ ] New functionality includes testing.
[ ] New functionality has been documented.
[ ] Update CHANGELOG.md
[x] Commits are signed per the DCO using --signoff

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f3b228c) 66.80% compared to head (2614d2f) 62.44%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##            4.9.0     #122      +/-   ##
==========================================
- Coverage   66.80%   62.44%   -4.36%
==========================================
  Files        3284     1987    -1297
  Lines       63162    38509   -24653
  Branches    10051     7001    -3050
==========================================
- Hits        42193    24047   -18146
+ Misses      18496    12924    -5572
+ Partials     2473     1538     -935

Flag
Coverage Δ

Linux_1
?

Linux_2
55.27% <ø> (ø)

Linux_3
?

Linux_4
?

Windows_1
?

Windows_2
55.23% <ø> (ø)

Windows_3
43.86% <ø> (+<0.01%)
:arrow_up:

Windows_4
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fixes a bug in MetadataDecoder where the total received payload size is updated incorrectly

The new unit test fails without the fix.
Signed-off-by: Biren Roy<EMAIL_ADDRESS>
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

/assign @adisuissa

@birenroy could you fix format please

@birenroy could you fix format please

Done, thanks.

This lgtm, just one more change please.


Fixed a few more unnecessary calls to num_cpu_avail.

I don't have as many benchmarks for these as for gemm, but it should still
make a difference for small matrices.

@ashwinyes as this touches thunderx code...

@ashwinyes gentle ping on this.  It shouldn't be too terribly controversial since the calls are essentially moot when threading isn't selected.  Please do check the logic, though!

Perhaps you could leave the arm64 parts of the PR until later if ashwinyes is busy ? While the changes do look harmless to me, I do not want to be responsible for breaking his Cavium server platform another time

Sorry for the delayed response.
I dont have any issue with this PR.
You may go ahead with the commit.

Thanks for the review, merging now.


ModuleNotFoundError: No module named 'gsplat.compression'

Hi i'm trying to make the benchmark
# run batch evaluation
bash benchmarks/basic.sh

and I always get the following error with every example:
Running garden Traceback (most recent call last):   File "/home/steamlinux/Documentos/Repositorios/gsplat/examples/simple_trainer.py", line 27, in <module>     from gsplat.compression import PngCompression ModuleNotFoundError: No module named 'gsplat.compression'
I installed gsplat with both ways (just pip install gsplat and with the url).
What can I do in these case?
Thanks in advance

Hey the compression part is not yet on pypi yet. You would need to install via:
pip install git+https://github.com/nerfstudio-project/gsplat

We just bumped the version. Its now in gsplat==1.3.0


Svelte Flow: resize observer fails on hidden nodes

Hidden nodes don't have a valid ref so the resize observer fails. Resize observer should also be attached when 'hidden' changes.


Type of calendar i ngraph page

Calendar in graph page must have two type, Jalali and  Gregorian.

Fixed in https://github.com/mahiyou/bonbaz-react/commit/6f389693216439097a0ace94786284445d7df7e1


CLI: fix export short alias

What does this MR do?
This MR is fixing export (--export) short alias as it's not as shown in project readme (-e), but -u what is used by --url.
export himself seems to be working nicely.

Great! Thanks @eritikass !


Build(deps-dev): Bump webpack-bundle-analyzer from 4.9.1 to 4.10.1 (#5327)

Pull request opened by the merge tool on behalf of #5327

Merged in cdef77db0f5fff0001f368f73f6b336f7692d9bf