Setting a PyScript Collective mission, vision, purpose

Checklist

[X] I added a descriptive title
[X] I searched for other issues and couldn't find a duplication

What is the issue/comment/problem?
Mission and Vision of the PyScript Collective
tl;dr Who it is for, why it matters, what it does
PyScript Collective: Working together on PyScript resources for learners and contributors
The PyScript Collective organizes community-contributed examples, articles, and other resources to make learning PyScript easy. But that’s not the main thing! The Collective is a group of people that help each other and as well as new contributors, thus getting more folks involved in PyScript and Python.
Helping Learners and Contributors
We want PyScript to be a great onboarding vehicle for Python, data science, and web coding. Fortunately a lot of folks want to help too! The Collective is a community project to organize everything about PyScript (and related projects like Pyodide) into useful collections.

Awesome PyScript is an organized, curated, and updated collection of every…damn…thing. If you have an example, put it up somewhere and let us know. We’ll list it (terms and conditions apply.) Same for an article, a video, a conference talk, whatever.

We’ll list it, but we won’t stand behind it. We’ll remove it if we’re told it’s no longer good, but that’s it. Not much of a “stamp of approval."
If you’re looking for a collection of quality, working, maintained stuff, then that would be…

The Collective is a shared-responsibility repo of resources, such as examples. As such, it is a group of maintainers who help stuff come in, help clean it up, help teach people, then stand behind what goes in. They’ll fix bugs, refactor examples if PyScript changes, answer tickets, etc. Even better, they’ll help contributors join the Collective and become maintainers. And those new contributors can then help the next person.

We want the Collective to become a joyful place where people are valued and valuable. Where new coders become the next generation of stars. Hell, we want people to list it on their resume, where the Collective helps them land a job.
As such, the Collective has a higher bar. It isn’t fair to the maintainers for new contributors to do a “dump and run.” We’ll require: tests, docstrings, and perhaps some code quality tools (flake8, black.) Why? To make it easy to maintain, but also to be shining code examples for learners.

The “Incubator” is the in-between stage. Stuff that’s on its way in, isn’t ready to get a permanent commitment yet. Perhaps it’s the code: needs cleaning up, doesn’t use the right idioms. Perhaps its the contributor: they aren’t sure yet if they are around for the long-haul and the maintainers don’t feel comfortable holding the bag.

Stuff in the “incubator” might not be listed publicly. Such as...

The Gallery is the work product of the Collective. Maybe it’s a pile of Sphinx docs that get linked into the main PyScript docs. Maybe it is a standalone website with a catalog-style navigation.

Maybe…just maybe…it’s an installable PyScript PWA where you can run the examples and (gasp) edit little hacks in the browser, to experiment.
Will This Work?
It’s kind of ambitious, in a social way. Will we get maintainers? Will people want to join? We think so. Rather, we very-much hope so. We’d like PyScript to be a vehicle for crazy-cool innovation, growth, and togetherness, similar to how data science impacted Python.
Kinda Vague, What Specifically?

We’ll get a bootstrapping set of maintainers who commit to building the machinery (easy testing, GitHub Actions, flake8 etc., Sphinx output, Awesome PyScript Markdown page) and closing tickets

Collect all the existing known resources into the Awesome PyScript page

Make it clear the process to contribute to Awesome PyScript

Start processing our own examples through the process to see how well it works

Make it clear the process to contribute to the Collective

See if anybody wants their examples in the Collective, perhaps to join us

Hi, this is the direction that we've talked with a few people about. @tildebyte @marimeireles John, Tanaka, Fabio, and Luciano have taken a look at it. Somewhat mirrored on the "Plone Collective" that I was loosely involved with back-in-the-day.
Specifically interested in who wants to join and help others through co-ownership of examples.

Awesome PyCharm

is this a typo?
Sheer personal opinion on my part: please don't use black.
flake8 can do everything black can do (with the appropriate config; and has pretty sane defaults), but allows the Collective to decide what they want[1].
flake8 also has a bajillion plugins for everything from code complexity to naming conventions to security - not that the Collective necessarily needs all of those things right now - but there are some (naming convention, and some plugins for other kinds of conventions including e.g pytest) which would be nice to have.
I'll have more to say about the actual content herein after I mull it over a bit more 😁

Apologies, totally a typo on the Awesome PyCharm part. I will edit it.
If Black becomes a bikeshed magnet then we'll drop it. But of course, almost any code style decision becomes a bikeshed. Which ironically was the motivation of Black. Everybody sacrifice their sovereignty because some decision is better than none.

Too true, too true :)

To make sure that I understand:

Awesome PyScript

This is a single file, in this repo, which is a list of user-submitted links (and presumably at least minimally vetted by a human or some process)[1]

The Collective is a shared-responsibility repo of resources

This repo in toto

The “Incubator” is the in-between stage

PRs in this repo? A sub-repo? A separate folder for WIPs?

The Gallery

A showcase webpage of fully-reviewed, merged PRs which presumably is not unlike https://threejs.org/examples (these are "official", maintained examples whose source lives in the main repo). The Collective "owns" these (at minimum, in the sense of being responsible for their care and feeding. c.f. felis catus)
[1] I'd love it if we had something like https://threejs.org <- That's the actual three.js homepage, with a T.O.C. for project links on the left (10%) - the rest (other 90%) is a gallery of links( with thumbnails!) submitted by users.

Correct.
Correct. Most importantly, the people here.
TBD. Maybe just PRs...maybe a parallel examples.
Correct. Could be anything, I bet we have a blank slate. (Though the threes.org home page didn't load in Safari, content blocker.)

I'm most interested to find out if you, @jezdez @ntoll @jhanley-com and Tanaka are up for the hard work as bootstrappers.

Yes. Would love to be involved. But currently up to my eyes at EuroPython. :smile:

I am interested and motivated, but unfortunately I don't have the ability to make a commitment to regular contributions - sometimes I have a whole weekend free, sometimes I have no free time for several weeks 😦 🤷  and (of course 🙄) it's not predictable...
 It's my job to kind of be the daily glue, aggragating effort from folks who come-and-go. If that what you can give, that's fine. I'm more interested in whether you believe in this idea (let's go make people awesome.)

whether you believe in this idea (let's go make people awesome)

ABSOLUTELY! 😁  The best way (IMO and experience) for new projects to gain traction is to have a smooth onramp, including LOTS of detailed example code which does interesting and meaningful things at all levels of experience.
Counterexample: I'm currently trying to work with an API which is new to me (not naming names 😬), which is amazing in many ways, except - their doc site search is so awful, I have to switch out to DDG, and their examples essentially go from "Hello, World" to "Build Entire World" with nothing in-between...

Yes, I am available to be a bootstrapper.

@marimeireles That's good to know about the resource compendium. I guess this Collective gallery will just be examples then and act as input to the other thing.
The bare-bones Awesome PyScript Markdown collection though can still list everything (articles etc.), right?
On your first point...I'm about to start vacation tomorrow. I'll load this into my head and try to make some kind of Collective site prototype for us to work through.

As update, I've spent my vacation working on collective stuff, which I hope to share in a couple of days. It's a lot of interconnected parts. For now, I'll add as repo collaborators: @jhanley-com @tildebyte
Let's see if we can get the PRs worked through and incoming tickets.

Gave write to both.

Thank you @pauleveritt for leading the effort and to everyone wanting to help. This is so exciting!

Thanks @pauleveritt! Great work! :D

Hi to @tildebyte @jhanley-com @ntoll  I’m at a checkpoint on my vacation project.
A prototype of a PyScript Collective site:

A Gallery web app and static-served website
Runnable locally and offline via pipx or python -m
A new approach to PyScript example testing

Here’s a video walkthrough:
https://youtu.be/a9MDiAMf7Kw
Here’s the prototype hosted site:
https://pauleveritt.github.io/psc_io/
And here is a diary I wrote while making this:
https://pscdemo.readthedocs.io/en/latest/building/index.html
For example, notes on how to do Playwright testing without an HTTP server:
https://pscdemo.readthedocs.io/en/latest/building/playwright.html

it’s written as if it is a Python package, meant to be installed

This is seriously genius

Thanks @tildebyte
If there was interest in this kind of direction, I think I might re-start on the diary. I can of let-go-of-the-rope at the end, ran out of time.
This time, I'd like to go step-at-a-time and (a) make it into our implementation (so, discussion) and (b) teach everybody how it was done.
Would that be worth it?

Yes 😃
I'm reading through the diary now - it's very informative, but I'm not that familiar with web testing per-se, so I'm sort of white-knuckling it 😁

Kudos on going full-Python (and Markdown!), rather than some awful webby/javascripty chimera (npm ugh)
Some notes, ordered from most rational to most emotional 😆

codecov: Setting up codecov a few years ago for my day job was so broken and awful, we
decided to go with coveralls: we have no regrets
pycharm: I have no objection to notes for PyCharm users, but I'd like to make
sure that we dont inadvertently e.g. make it hard for NON-PyCharm users to
follow tutorials, etc.
click: It's not my choice for CLIs, but it's perfectly adequate
black: As previously mentioned... really, it's some of the style choices
which I strongly disagree with, not the idea of black itself (have you heard of blue 😝?)

Well, all the other places can your jam. A nice web app, etc.
FTR, the part about building artifacts for static export...that was certainly race-to-the-finish. Needs starting over.

If the price of getting you to be co-pilot is black->blue, then count me in. At least maybe. 😀 Need to ensure it uses the same blackd that I can point my IDE at. And other tooling e.g. pre-commit.
I don't mind switching from typer/click to something else, as long as YOU do it. 😈 I know very little about that.
FTR, something I care a lot about, for future...the web app has a really cool reloader. Something that is competitive with what the frontends do.

I'm cool with click and typer!
I'm also cool with black! It is actually configurable to a degree, and the (perhaps surprising) thing I care most about can be ignored with a simple --skip-string-normalization[1]
My only other comment about black would be to actually follow their advice about line length:
(cherry-picking here)

In general, 90-ish seems like the wise choice
...
it’s better if you use Bugbear’s {a flake8 plugin} B950 warning instead of {flake8's} E501, and bump the max line length to ... the --line-length you used for black, which will align more with black’s “try to respect --line-length, but don’t become crazy if you can’t”

TL;DR:  Use Bugbear's B950, and set it and black's line-length to something between 88 and 92
[1]  Personally, I prefer ' for everything possible - seeing lots and lots of " starts to look like line noise, particularly in monospaced fonts, particularly at the small font sizes I tend to use. flake8 will still catch outright erroneous use of quotes.

Well, all the other places can your jam. A nice web app, etc.

Sorry, it took me a minute to get this... I think? Coveralls has a nice, reliable (cough codecov cough) webapp as well...

Well, all the other places can your jam. A nice web app, etc.

Sorry, it took me a minute to get this... I think? Coveralls has a nice, reliable (cough codecov cough) webapp as well...

Apologies, vacation typing. 😇 If other parts are what interests you, then focus on that. Most of all, help me steer this ship into port.

I'm cool with click and typer!
I'm also cool with black! It is actually configurable to a degree, and the (perhaps surprising) thing I care most about can be ignored with a simple --skip-string-normalization[1]

I propose we move this to my psc repo. Make some PRs on any tooling change/re-configuration you'd like. I'm still learning, and would enjoy the conversation.

@jhanley-com the checkpoint above from 5 days ago...is this something you'd be interested in working on?

I'm going to close this ticket, we'll get started on the next ones.


⚠ Bofrost.de has degraded performance

In 0beee6f, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 918 ms

Resolved: Bofrost.de performance has improved in 1522d19 after 13 minutes.


Make sure default schemes (https, http...) are allowed to store cookies.

This is a regression after moving to M50 and the actual refactor due
to CookieMonster being hidden as an API.
https://github.com/crosswalk-project/crosswalk/commit/e1f52c3660f3868a11cccbae67593b435672160d
landed an incorrect change.
BUG=XWALK-6934

lgtm


Conformance tests - Setup input bindings API tests

Describe the proposal
Conformance tests - Setup input bindings API tests
Potential component Kafka
#404

@yaron2 please add this to 1.0.0 milestone project

@yaron2 please add this to 1.0.0 milestone project

closed with https://github.com/dapr/components-contrib/pull/637


Unify test commands

Currently, local tests are ran with ruby -r debug/start while remote tests are ran with exe/rdbg executable. This mix of commands causes confusion and makes it harder to apply command options (which only works with executable). So this PR changes local tests to start with exe/rdbg as well.
It also introduces a new execute_without_debugger helper for scenarios that don't require debugger at the beginning.

@ko1 It runs ruby -Ilib script.rb, which doesn't require the debugger. It's only for testing require "debug" or require "debug/start" manually in the code.

Thank you. I understand.
For me it is special case of debug_code because it uses debugger after launching.
So debug_code with option seems enough, I think.
Now I remember that this is why we use -r debug/start instead of rdbg to achieve start a debuggee without the debugger.

So your proposal is:

debug_code: use rdbg
execute_without_debugger: run with bare ruby

How about that?

debug_code do ... end -> run_rdbg script do ... end
run_ruby script do ... end

and they are explicit.
@ono-max san do you have any opinion?

Yeah I like the idea 👍

ah, another opinion.
if we use debug_code, we can tests with rdbg and -r debug/... internally, if possible. So current debug_code has also advantage.

Do we need a full coverage for -r debug/start? I think having a case like run_ruby script, option: "-r debug/start" to test the debugger startup should be enough.

I'm weak negative about dividing debug_code into several methods. Because most of the test cases are executed by rdbg, other test cases such as -r debug/start are the special cases. They are enough with options of debug_code.

@ono-max The reason to separate rdbg and ruby commands is because we'll add tests for command line options, which only works with rdbg. If we keep everything under debug_code, we'll have combinations like
debug_code(program) # test ruby + rdbg
debug_code(program, remote: false) # test ruby + rdbg local
debug_code(program, executable_options: "--nonstop") # test rdbg with options
debug_code(program, boot_options: "", remote: false) # test ruby

And this is confusing to people who don't understand the history.
So unless it's necessary to cover all command tests with ruby -r debug/start, I prefer a clear separation like:
run_rdbg(program) # test rdbg
run_rdbg(program, options: "--nonstop") # test rdbg with options
run_ruby(program) # test ruby
run_ruby(program, options: "-r debug/start") # test ruby with options

@ko1 I've renamed the 2 commands and added a case for -r debug/start.

I see. Thank you for explaining to me. Let me ask this question.
@ko1 What do you think about this opinion?

Do we need a full coverage for -r debug/start? I think having a case like run_ruby script, option: "-r debug/start" to test the debugger startup should be enough.

Another solution is https://github.com/ruby/debug/pull/317

no, #317 doesn't solve the problem. how come different values of boot_options can change the underlying command to start the debugger? any developer outside this conversation would not expect that. it feels like a workaround to me. also, another problem of that solution is boot_options only applies to local tests instead of all tests.

And this is confusing to people who don't understand the history.

Sorry, why is it confusing?
debug_code(program) # test ruby + rdbg
debug_code(program, remote: false) # test ruby + rdbg local
debug_code(program, executable_options: "--nonstop") # test rdbg with options
debug_code(program, boot_options: "", remote: false) # test ruby

For example, to make it clear,
debug_code program do ... end # test ruby + rdbg (do not care)
debug_code program, remote: false # test ruby + rdbg (do not care) local
debug_code(program, rdbg: '--nonstop') # test rdbg with options
debug_code(program, ruby: `...`, remote: false) # test with ruby

they are clear for me.
If we introduce convenience methods run_... we can introduce the following.

debug_code program do ... end # don't care how to run, and many cases. we can introduce other words like run_scenario program ...
debug_code can be replaced with run_code for example.
run_rdbg program, option: "--xxx" do ... end # run only on rdbg
run_ruby program, ... do ... end # run only on ruby

are fine for me, for example. But I'm not sure how many run_ruby/rdbg is used.

debug_code(program, rdbg: '--nonstop') # test rdbg with options
debug_code(program, ruby: `...`, remote: false) # test with ruby

This is the confusing part. Why is the ruby option need to be used with remote: false? This creates implicit dependencies between options that's not intuitive to API users.
I can agree with this format if debug_code(program, ruby: '...') doesn't require the remote: false.

@ko1 I've updated the methods with this specification
debug_code(program) # run rdbg
debug_code(program, ruby: "") # run ruby
debug_code(program, rdbg: "") # run rdbg
run_ruby(program, options: "") # run ruby
run_rdbg(program, options: "") # run rdbg

And regarding edge cases like
# should we prohibit these?
debug_code(program, ruby: "", remote: false)
debug_code(program, rdbg: "", ruby: "")

I want to do that in the future because the current priority should be adding tests for rdbg options.

debug_code(program, ruby: "", remote: false)

We currently don't have remote tests with Ruby yet. So we cant support this later if it's necessary.
debug_code(program, rdbg: "", ruby: "")

I've added a check to prohibit that.


Can't install on CentOS 6.8

I've tried installing it through binary, source, egg file given on pypi for centos but none of them seem to work. Any help on this would be much appreciated.
Egg file installation:
Processing ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
Extracting ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg to /home/apps/.virtualenvs/test1/lib/python2.7/site-packages
Adding ortools-centos-7 6.3.4431 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
Processing dependencies for ortools-centos-7==6.3.4431
Searching for protobuf==3.3.0
Reading https://pypi.python.org/simple/protobuf/
Downloading https://pypi.python.org/packages/56/28/6263d846f60dad93939fd3a22d712d6bae3bf3484332d22bd5933dec8c99/protobuf-3.3.0.tar.gz#md5=27941e8e42e83d5183605054576882dd
Best match: protobuf 3.3.0
Processing protobuf-3.3.0.tar.gz
Writing /tmp/easy_install-9cUe75/protobuf-3.3.0/setup.cfg
Running protobuf-3.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9cUe75/protobuf-3.3.0/egg-dist-tmp-GFBcYN
no previously-included directories found matching 'google/protobuf/internal/import_test_package'
warning: no previously-included files found matching 'google/protobuf/internal/_pb2.py'
warning: no previously-included files found matching 'google/protobuf/internal/_test.py'
warning: no previously-included files found matching 'google/protobuf/internal/.proto'
warning: no previously-included files found matching 'google/protobuf/internal/test_util.py'
warning: no previously-included files matching '_test.py' found under directory 'google'
warning: no previously-included files matching '_test.proto' found under directory 'google'
warning: no previously-included files matching 'unittest_pb2.py' found under directory 'google'
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.pyo' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
google.init: module references path
google.protobuf.init: module references path
google.protobuf.pyext.init: module references path
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg
Extracting protobuf-3.3.0-py2.7.egg to /home/apps/.virtualenvs/test1/lib/python2.7/site-packages
Adding protobuf 3.3.0 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg
Searching for six>=1.9
Reading https://pypi.python.org/simple/six/
Downloading https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55
Best match: six 1.10.0
Processing six-1.10.0.tar.gz
Writing /tmp/easy_install-PTDTg4/six-1.10.0/setup.cfg
Running six-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PTDTg4/six-1.10.0/egg-dist-tmp-Gn7_9l
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references path
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/six-1.10.0-py2.7.egg
Extracting six-1.10.0-py2.7.egg to /home/apps/.virtualenvs/test1/lib/python2.7/site-packages
Adding six 1.10.0 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/six-1.10.0-py2.7.egg
Finished processing dependencies for ortools-centos-7==6.3.4431
Error on running the program using Ortools:
Traceback (most recent call last):
File "vrp/api.py", line 3, in
import cvrp
File "/home/apps/vrp/cvrp.py", line 2, in
from ortools.constraint_solver import pywrapcp
File "/home/apps/.virtualenvs/test1/lib/python2.7/site-packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 17, in
_pywrapcp = swig_import_helper()
File "/home/apps/.virtualenvs/test1/lib/python2.7/site-packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 16, in swig_import_helper
return importlib.import_module('_pywrapcp')
File "/usr/local/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named _pywrapcp

Hi,
Clearly a mismatch in the system libraries.
Next release will use manylinux1 wheel files, and thus be portable.
Thanks
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
2017-09-10 13:57 GMT+02:00 Gourav Chawla<EMAIL_ADDRESS>
I've tried installing it through binary, source, egg file given on pypi
for centos but none of them seem to work.
Egg file installation:
Processing ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
Extracting ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg to
/home/apps/.virtualenvs/test1/lib/python2.7/site-packages
Adding ortools-centos-7 6.3.4431 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg
Processing dependencies for ortools-centos-7==6.3.4431
Searching for protobuf==3.3.0
Reading https://pypi.python.org/simple/protobuf/
Downloading https://pypi.python.org/packages/56/28/
6263d846f60dad93939fd3a22d712d6bae3bf3484332d22bd5933dec8c99
/protobuf-3.3.0.tar.gz#md5=27941e8e42e83d5183605054576882dd
Best match: protobuf 3.3.0
Processing protobuf-3.3.0.tar.gz
Writing /tmp/easy_install-9cUe75/protobuf-3.3.0/setup.cfg
Running protobuf-3.3.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-9cUe75/protobuf-3.3.0/egg-dist-tmp-GFBcYN
no previously-included directories found matching
'google/protobuf/internal/import_test_package'
warning: no previously-included files found matching
'google/protobuf/internal/
_pb2.py' warning: no previously-included files found matching
'google/protobuf/internal/_test.py'
warning: no previously-included files found matching
'google/protobuf/internal/
.proto' warning: no previously-included files found matching
'google/protobuf/internal/test_util.py' warning: no previously-included
files matching '_test.py' found under directory 'google'
warning: no previously-included files matching '
_test.proto' found under directory 'google' warning: no
previously-included files matching 'unittest_pb2.py' found under
directory 'google'
warning: no previously-included files matching '
.dll' found anywhere in distribution warning: no previously-included
files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyo' found anywhere in distribution warning: no previously-included
files matching '.so' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
google.init: module references path
google.protobuf.init: module references path
google.protobuf.pyext.init: module references path
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
protobuf-3.3.0-py2.7.egg
Extracting protobuf-3.3.0-py2.7.egg to /home/apps/.virtualenvs/test1/
lib/python2.7/site-packages
Adding protobuf 3.3.0 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
protobuf-3.3.0-py2.7.egg
Searching for six>=1.9
Reading https://pypi.python.org/simple/six/
Downloading https://pypi.python.org/packages/b3/b2/
238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db
/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55
Best match: six 1.10.0
Processing six-1.10.0.tar.gz
Writing /tmp/easy_install-PTDTg4/six-1.10.0/setup.cfg
Running six-1.10.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-PTDTg4/six-1.10.0/egg-dist-tmp-Gn7_9l
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references path
creating /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
six-1.10.0-py2.7.egg
Extracting six-1.10.0-py2.7.egg to /home/apps/.virtualenvs/test1/
lib/python2.7/site-packages
Adding six 1.10.0 to easy-install.pth file
Installed /home/apps/.virtualenvs/test1/lib/python2.7/site-packages/
six-1.10.0-py2.7.egg
Finished processing dependencies for ortools-centos-7==6.3.4431
Error on running the program using Ortools:
Traceback (most recent call last):
File "vrp/api.py", line 3, in
import cvrp
File "/home/apps/vrp/cvrp.py", line 2, in
from ortools.constraint_solver import pywrapcp
File "/home/apps/.virtualenvs/test1/lib/python2.7/site-
packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg/
ortools/constraint_solver/pywrapcp.py", line 17, in
_pywrapcp = swig_import_helper()
File "/home/apps/.virtualenvs/test1/lib/python2.7/site-
packages/ortools_centos_7-6.3.4431-py2.7-linux-x86_64.egg/
ortools/constraint_solver/pywrapcp.py", line 16, in swig_import_helper
return importlib.import_module('_pywrapcp')
File "/usr/local/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
ImportError: No module named _pywrapcp
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/477, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17ZXKjQ6G2VkwAB5ddLrxVjCLC8Aiks5sg86mgaJpZM4PSS4V
.

That means I can't use it on CentOS 6.8 for now? I was able to install it on Ubuntu 14.04 though. But the production system has CentOS installed on it.
When are you planning to make the next  release?
Thanks!

I just pushed the release.
The module name is just ortools (no suffix).
Can you try it out?

I'll be glad to. I'll report back after trying it.

The new package works. I've tried it on Centos 6.8 and Ubuntu 16.04.
Thank you so much for the quick response.


Add Distributions to PII Generation

Added a way to allow distributions to be used for PII generation. First names, last names and birthdays are all now distributed based on the counts provided in the census data.
From my own testing it slows down generation of PII to around 0.32x what it once was, but it was so marginal in the scheme of the benchmark that I'm not sure how worried we are regarding the performance of this area.
With the new data I have provided, all documents now have a reference in code, I don't know if they should be displayed anywhere else. #98
EDIT: Automated testing is clearly something I need to learn more about. I will attempt to generate some thorough unit tests.

I'll merge this now, but it would be most appreciated if you did want to open a new PR to test the distributions code.


Question: is there a way temporarily fetch all packages for a certain dependency?

Is there a way temporarily fetch all packages for a certain dependency?
The use case is when you want to bring in a dependency of a specific version - but you don't know which of the packages you are going to use yet.
One solution is to import the package somewhere in the code and run dep ensure each time you use import a new package. Problem with that is dep ensure is slow (3 minutes for my project atm).

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!


Improved image documentation

Improve documentation of active and passive IR images. Currently only image documentation is
https://microsoft.github.io/Azure-Kinect-Sensor-SDK/master/group___enumerations_gabd9688eb20d5cb878fd22d36de882ddb.html#gabd9688eb20d5cb878fd22d36de882ddb
https://docs.microsoft.com/en-us/azure/Kinect-dk/depth-camera

Active and passive images are the same format K4A_IMAGE_FORMAT_IR16. What additional documentation are you expecting?


Make VNames local to a corpus for each crate [phab:D1007]

Created by djrenren at 2016-08-12 21:47:48:
The indexer now generates VNames for entities within a corpus unique to that crate. Cross-corpus edges are also functioning properly.

zarko accepted this revision at 2016-08-12 22:12:32

djrenren closed via commit f0f7e82a681b18ef51b5d5a8bb68e7d2df823d42 at 2016-08-12 22:24:41


Nicer UI

The Web-UI is extremely minimal (or… non-existent). We should add some swagger, have hoverable buttons for rotating and maybe animate the rotation and somesuch.

Rotating would be great indeed.

I think landscape mode is implemented completely internally to xochitl. AFAICT there's no way to actually figure out how that's set (e.g. the framebuffer didn't change mode when I tried it a couple of days ago, I think). Personally, I also don't use landscape mode a lot.
Buttons for the functions are IMO pretty important for discoverability - I implemented rotation earlier today, but unless you click the image by accident, you won't notice :) There are also a couple different functions I'd like to add (downloading the current screen as a PNG came up today, for example).
Don't worry, I intend to make any added UI elements discrete and don't want to clutter it either :)

Please consider adding a "stop streaming"/"restart streaming" button. That would allow people to finish a sketch or phrase before putting it "online".

@torwag That's a good idea, thanks :)

I took the liberty of writing a (hopefully) better UI.
srvfb.html.zip
What do you think?
The only part that might be "controversial" is the loading of the static image to "ping" the server and turn off the loading sign. This is because there's no event that is triggered when the first image of the stream is loaded (I think?). It was originally motivated by the fact that I have this custom html file locally and it tries to contact the server, this way I have some UI feedback even when the server is not connected. For that to work properly one needs to add
w.Header().Set("Access-Control-Allow-Origin", "*")

at line 292.

I'll take a closer look in a few days. From a first look, it seems to support everything needed, but I haven't actually opened it yet to see :)

For that to work properly one needs to add w.Header().Set("Access-Control-Allow-Origin", "*") at line 292.

To clarify: Do you mean to use a local HTML file, or would we need that if it's served by the webserver as well? Because if the latter, I'd like to understand why :)

For that to work properly one needs to add w.Header().Set("Access-Control-Allow-Origin", "*") at line 292.

To clarify: Do you mean to use a local HTML file, or would we need that if it's served by the webserver as well? Because if the latter, I'd like to understand why :)

It's only needed if you want to use a local HTML file!
For me the important bits of this new UI is the pan and zoom (obtained through CSS only!), and the fullscreen support.

I tested the new UI.
Looks very nice. I like that the menu points are out of sight.
As for zoom, I believe a zoom in with the mouse (scroll wheel, or draw a rectangle) as well as being able to pan the image with the mouse would be nice, but I take that this would take much more effort.
Maybe we could change the srvfb behavior that it takes a html-page as an argument and delivers this, if it is not given it uses a hard-coded standard page. That would decouple the core function from the "gui" and makes testing, modification and changes much easier.

merge?

@torwag to add pinch&zoom gestures add this to the script bit:
var pinchtimer=0;
window.onwheel = function (e) {
  if (e.ctrlKey) {
    e.preventDefault();
    zoom -= e.deltaY * 0.01;
    clearTimeout(pinchtimer);
    pinchtimer = setTimeout(resize, 10);
  }
};

not amazing but a start?

@bordaigorl Can you open a PR to serve this as the default page? For now, put the HTML in a constant, like it currently is (though maybe in a separate go-file, or at least at the end of the file, so it's not as much in the way). We can use go generate to bundle separate files in a later commit.
We can discuss it properly in the PR itself, but a couple quick remarks in case you want to incorporate them:

With my browser (Chrome) this has both horizontal and vertical scrollbars, which is obviously not great :)
The animations are a bit slow for my taste. I would probably aim for 200ms or so.
The fourth rotation in the same direction animates into the wrong direction. That's pretty jarring.

Thanks for taking the time :)

I may be able to do something about this next week.
I have some local code I could just upload to my fork. Let's see.

@bordaigorl f you don't have the time (and/or don't want to bother with the extra refactorings I asked for) I can also do it myself. I just asked for a PR to make sure that you are properly attributed and don't feel I'm abusing your work :)

@Merovius hi sorry for being so unresponsive. I really had no time for this. Please don't let me stop this from being incorporated, I am happy if it's useful to others.
I have a few improvements in a local version, I'll see if I can put it in a PR at some point but please go ahead!

No reason to apologize, you didn't spend any less time on it than me :) I'll throw something together.


rename extra_links to extra_link_functions

rename extra_links to extra_link_functions

@astahlman

:+1: Thanks

Codecov Report

Merging #99 into data-platform-upgrade will increase coverage by <.01%.
The diff coverage is 100%.

@@                    Coverage Diff                    @@
##           data-platform-upgrade      #99      +/-   ##
=========================================================
+ Coverage                  68.84%   68.85%   +<.01%
=========================================================
  Files                        142      142
  Lines                      11245    11245
=========================================================
+ Hits                        7742     7743       +1
+ Misses                      3503     3502       -1

Impacted Files
Coverage Δ

airflow/plugins_manager.py
93.33% <100%> (ø)
:arrow_up:

airflow/models.py
86.39% <0%> (+0.04%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 43702a8...0423893. Read the comment docs.


Option to pass id with body

Great plugin, I love it so far. I would like some options around how the requests are built though, for example I had originally written my PUT api like so:
[HttpPut]
public async Task<JsonResult> Put([FromBody] T item) {
    // ...
}

but after seeing the HTTP traffic from this plugin I had to change it to:
[HttpPut("{id}")]
public async Task<JsonResult> Put([FromRoute] Guid id, [FromBody] T item) {
    item.Id = id;
    // ...
}

For now this works great, but once I start adding validation rules I will probably need a ViewModel on the backend with an optional Id to support this request.

ah, sorry, i don.t quite get what you want

I think he wants to use Id in stead of id (differences in taste)? I'm also not sure.

After looking through the source again I suppose this might be in the wrong place. I'll clarify and move this to aurelia-orm. Currently a PUT request (from aurelia-orm) looks like this:
PUT http://example.com/api/user/123
[Body]
{ "firstName": "John", "lastName": "Smith" }

what I had wanted was this:
PUT http://example.com/api/user
[Body]
{ "id": 123, "firstName": "John", "lastName": "Smith" }

I read through the source and realized that currently if I use .update I will actually get this, which will work just fine:
PUT http://example.com/api/user/123
[Body]
{ "id": 123, "firstName": "John", "lastName": "Smith" }

So wondering where my missing id was being knocked off, I took a look at the aurelia-orm source and found: delete requestBody[this.getIdProperty()];  I'd like to make this optional.


The data downloading is not available

Hi,
I am trying to implement the code here. I used the link to access the data. I have registered based on the instruction. Every time, I click on to the link of "Regions of interest set", the link brings me to a blank page. Could you help me with this? I am not sure if I did something wrong.

Hi,
Are you able to access the FTP server where the data are stored, or just the "Regions of interest set" is not accessible? I tried to connect, and it seems to work as expected on my side.
G.

Thank you for your quick response! Yes, I would be able to access the server. All of the links brings me to a new blank page. It seems that the problem is at my end if you can access. I will try to use a different computer to try again! Will keep you posted.

Hi, I have tried to use a different computer. It looks the same to me. Sorry that I misunderstood your question earlier. I cannot access the FTP server. When I click on to any of the dataset link, it asked me "if I want to use the associated app to open the link". I chose an web browser. Then, each time, the link brings me to a blank page. Should I use a specific app to open the link?

Bear my ignorance, I copied URL to file explorer, and it works.


Add social_icons setting

Thanks for the PR @barryvdh, it looks like the option is already available in the config farther down in the file. Though, where you've placed it is definitely a better spot. If you want to remove the second show_social_icons option down below I'd be happy to merge.
Thanks!

Oops, missed that. Removed the second one and squashed.

Awesome!


ImageUrl is absend for OOB invitation

Init data:
env ACAPY_IMAGE_URL: http://localhost/alice-image.jpg (only for example)
image: bcgovimages/aries-cloudagent:py36-1.16-1_0.7.1
Connection invitation
Request URL:
http://<IP_ADDRESS>:10000/connections/create-invitation
{
    "handshake_protocols": [
        "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/didexchange/1.0"
    ],
    "use_public_did": false
}

Response:

OOB invitation:
Request URL:
http://<IP_ADDRESS>:10000/out-of-band/create-invitation
{
"handshake_protocols": [
    "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/didexchange/1.0"
  ],
  "use_public_did": false
}

Response:

Also tested with py36-1.16-1_0.7.4-rc0 and the issue was not solved

The outofband RFC does not specify an image URL property. It's possible that other agents are adding one as a non-standard extension.


(fix) Dublicated i18n keys visibleOnHit and visibleOnHitHelp for algoOrderForm

ticket - https://app.asana.com/0/1200372033300327/1201714048308414

I suppose the translations should not be included in this PR, because they are managed by the Crowdin platform #245 (comment)

there are not translations, just copying keys from orderForm to algoOrderForm. This checkboxes are the same for atomics and algo orders. Just keys from algo orders should be in parent algoOrderForm object


Can't run recipe because fails on postfixadmin/recipes/apache.rb

Chef complains about
27>>   return if node['apache']['listen_ports'].include?(port)

ERROR: undefined method `include?' for nil:NilClass

I'm running the recipe included by postfix-dovecot cookbook and postfix-dovecot is included in another custom cookbook.

OK, thanks for the report @maurodx. I will look at it over the weekend.

Fixed in master: 8c20c75acc772b4a2dd18f47806db1e12da51472, 9d6bebb38be2d7ea00af4826bef2fecd8d0ea0e8

Fix released in 3.0.0.


[Snyk] Fix for 8 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

backend/core/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

696/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS) SNYK-JS-AXIOS-1579269
No
Proof of Concept

589/1000  Why? Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS) SNYK-JS-FASTXMLPARSER-5668858
No
No Known Exploit

534/1000  Why? Has a fix available, CVSS 6.4
Improper Authentication SNYK-JS-JSONWEBTOKEN-3180022
Yes
No Known Exploit

539/1000  Why? Has a fix available, CVSS 6.5
Improper Restriction of Security Token Assignment SNYK-JS-JSONWEBTOKEN-3180024
Yes
No Known Exploit

554/1000  Why? Has a fix available, CVSS 6.8
Use of a Broken or Risky Cryptographic Algorithm SNYK-JS-JSONWEBTOKEN-3180026
Yes
No Known Exploit

823/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 8.6
Prototype Pollution SNYK-JS-PROTOBUFJS-5756498
Yes
Proof of Concept

656/1000  Why? Mature exploit, Has a fix available, CVSS 5.4
Server-side Request Forgery (SSRF) SNYK-JS-SWAGGERUIDIST-2314884
No
Mature

586/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.3
Prototype Pollution SNYK-JS-XML2JS-5414874
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Use of a Broken or Risky Cryptographic Algorithm
🦉 Prototype Pollution
🦉 More lessons are available in Snyk Learn

Closing this in favor of updating these dependencies in core


LoadError, Impossible to use depend packages .

Impossible to use depend packages .
Some wrong is in this point:
C:\Users\PC.julia\v0.6
because I have path C:\Users\PC\.julia\v0.6 not C:\Users\PC.julia\v0.6
`Version 0.6.2 (2017-12-13 18:08 UTC)
Official http://julialang.org/ release
x86_64-w64-mingw32
julia>  Pkg.build("Blosc")
INFO: Building Blosc
Info: Downloading https://github.com/stevengj/BloscBuilder/releases/download/v1.
14.2+5/Blosc.x86_64-w64-mingw32.tar.gz to C:\Users\PC.julia\v0.6\Blosc\deps\usr
\downloads\Blosc.x86_64-w64-mingw32.tar.gz...
Exception setting "SecurityProtocol": "Cannot convert null to type "System.Net.
SecurityProtocolType" due to invalid enumeration values. Specify one of the fol
lowing enumeration values and try again. The possible enumeration values are "S
sl3, Tls"."
At line:1 char:35

[System.Net.ServicePointManager]:: <<<< SecurityProtocol =

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : PropertyAssignmentException

Exception calling "DownloadFile" with "2" argument(s): "Po?Yczenie podstawowe z
osta?o zako?one: WystYpi? nieoczekiwany b?Yd przy wysy?aniu."
At line:4 char:24

$webclient.DownloadFile <<<< ("https://github.com/stevengj/BloscBuilder/relea
ses/download/v1.14.2+5/Blosc.x86_64-w64-mingw32.tar.gz", "C:\Users\PC.julia\v0
.6\Blosc\deps\usr\downloads\Blosc.x86_64-w64-mingw32.tar.gz")

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : DotNetMethodException

================================[ ERROR: Blosc ]================================
LoadError: Could not download https://github.com/stevengj/BloscBuilder/releases/
download/v1.14.2+5/Blosc.x86_64-w64-mingw32.tar.gz to C:\Users\PC.julia\v0.6\Bl
osc\deps\usr\downloads\Blosc.x86_64-w64-mingw32.tar.gz
while loading C:\Users\PC.julia\v0.6\Blosc\deps\build.jl, in expression startin
g on line 30
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: Blosc had build errors.

packages with build errors remain installed in C:\Users\PC.julia\v0.6
build the package(s) and all dependencies with Pkg.build("Blosc")
build a single package by running its deps/build.jl script

================================================================================
julia>`
Paul

@programistawpf Perhaps you meant to post to Blosc.jl/issues?

Shure, I made
Paul
W dniu 2018-04-29 o 01:35, rickhg12hs pisze:

@programistawpf https://github.com/programistawpf Perhaps you meant
to post to Blosc.jl/issues https://github.com/stevengj/Blosc.jl/issues?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JuliaParallel/Blocks.jl/issues/21#issuecomment-385212637,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFTpRQm9lwgKs8QZIASnDOw6_4gr1Z8Pks5ttPzZgaJpZM4TrTAO.


Support rake >10.0 by including Rake::DSL

When using rake versions 10.0 and above in a project, using desc and task
in the global namespace are no longer supported. As fabrication gem loads
lib/tasks/defined_fabricators.rake in the presence of rake, it generates
a warning in rake 0.9.* and errors in rake 10.. This commit includes
Rake::DSL before loading lib/tasks/.rake, which allows for error free
use of existing desc and task.

@gregburek Thanks! Version 2.14.1 is live with this change.
Also congrats on having a power of 2 PR!


.on('click', function(e) { }); not working after dragging the map

Hi All,
I use leaflet 0.7.3 and created a draggable circle (not circleMarker because it has be a circle). If I drag the circle first I have no issues but when I drag the map and then try to drag the circle again it sticks to the mouse pointer and doesn't fire the on click event.
You can test it here:
http://jsfiddle.net/2zoth1y5/2/
The issue is similar to this one below but I couldn't fix it or find a workaround.
https://github.com/Leaflet/Leaflet/issues/2619
Thank you.
Kind regards,
Imre

Not sure what's going on here, but if you remove the mousemove listener on map mouseup, it all works fine. If it's not reproducible on 1.0.0-beta.1, I think it's safe to close this.

I'm also experiencing this issue on 1.0.0-rc3. See: https://jsfiddle.net/1d30dbcn/

@mourner Yes, this problem stil exists.


Question regarding RoPE implementation

Thanks for sharing the code of this interesting work!
I noticed an inconsistency between the paper’s description of the RoPE and its implementation in the code. According to the paper, the relative position should be calculated based on the temporal differences between patches,

However, the code seems to be using flattened 2D indices instead when applying RoPE:
seq_id = torch.arange(n_tokens * n_vars)
seq_id = repeat(seq_id, 'n -> b h n', b=B, h=H)
queries, keys = self.qk_proj(queries, keys, query_id=seq_id, kv_id=seq_id)

Could you clarify the reasoning behind this discrepancy? Was this an intentional change, or might it affect the model’s performance?

Thanks for your valuable issue, the current 2d RoPE implementation in this repo is flattened on 2D indices (which is mainly to be compatible with the implementation of Moirai's official repo).
After our discussion, we believe that it is reasonable to flatten out one-dimensional indices of RoPE to ensure the permutation-invariance between variables. We are arranging relevant experiments, and we'll see how that affects the performance. Please stay tuned and thanks again for your insightful question.

Thanks for your response! I am looking forward to seeing the relevant experiments :)

Thanks for your valuable issue, the current 2d RoPE implementation in this repo is flattened on 2D indices (which is mainly to be compatible with the implementation of Moirai's official repo).
After our discussion, we believe that it is reasonable to flatten out one-dimensional indices of RoPE to ensure the permutation-invariance between variables. We are arranging relevant experiments, and we'll see how that affects the performance. Please stay tuned and thanks again for your insightful question.

Thank you again for the detailed response! Could you elaborate on how this flattened RoPE achieves permutation invariance between variables?

Further, to mark the variable position of these $NT$ tokens, what we do is only distinguish whether the token belongs to the variable or not. More concisely, if token A belongs to variable 1 and does not belong to variable 2 and variable 3, we only care that V1 is different from V2/V3, but we are not concerned that V2 is different from V3 (if we do so, change the input order of V2 and V3 will cause additional effect to the output). Therefore, for any token, confirming its endogenous and exogenous variables is enough. That is why we use the term "keep the reflexivity of variables" by $u$ and $v$ in our paper.

Thank you for your response! I agree that using 1D RoPE and repeating it is a more reasonable approach compared to the flattened 2D RoPE.

Update: Sorry for the misunderstanding, we have changed the "permutation-invariant for variables" to "permutation-equivariant for variables" (For their difference, please refer to https://arxiv.org/abs/1703.06114). We will also revise this term in our paper.

This is a very interesting and important question!
Note that permutation equivariant between variables means shuffling the input order of variables should not affect anything other than the output order of variables.
For example, if we have T patch tokens for N variables each. Now, we are going to mark the temporal position of these N T tokens. Instead of using 2D RoPE: R N T , N T , we think it is more reasonable to use 1D R T , T and repeat it by using the Kronecker Product: I N × N ⨂ R T , T . And thus N will not influence the element values in varying sub-matrice (working for different variable pairs).

I got a confusion about the size of RoPE matrix. The code implementation uses an $NT$-length 1D RoPE matrix.
First I wanna figure one thing out: For a token $x_{m,i}$, should the tokens interacting with it be $x_{n,j} (\forall n\ne m, j\le i)$ ?
If so, the angle for $x_{m,i}$ will be $(mT+i)\Theta$, while the angles for $x_{n,j}$ will be $(nT+j)\Theta$. I'm not quite sure whether it's necessary to ensure that the tokens of any variable with the same patch-index should maintain the same angle, so that even if m≠n, the tokens at indices i and j will still preserve the same relative positional difference of (i-j)Θ? This also seems to achieve permutation invariance between variables.

@Leopold2333
Hi, it's so nice to see you. I think it is right to ensure that the tokens of any variable with the same patch index should maintain the same angle. Note that RoPE here is intended to keep the temporal order only. For different variates, we use two scalar $u, v$, only to distinguish them.  Therefore, using 1D RoPE can be a more reasonable approach.

@Leopold2333
Hi, it's so nice to see you. I think it is right to ensure that the tokens of any variable with the same patch index should maintain the same angle. Note that RoPE here is intended to keep the temporal order only. For different variates, we use two scalar u , v , only to distinguish them instead of reflecting the variate order. Therefore, using 1D RoPE can be a more reasonable approach.

https://github.com/thuml/OpenLTM/blob/8bfebe2db3d195bd0f18ac7cd0b182cf02983f52/layers/SelfAttention_Family.py#L64-L68
https://github.com/thuml/OpenLTM/blob/8bfebe2db3d195bd0f18ac7cd0b182cf02983f52/layers/Attn_Projection.py#L54-L58
Thank you for the reply. I could understand the design of scalar $u,v$. My confusion is about the above code snippets. According to my example in my last question, the angle for $x_{m,i}$ will be $(mT+i)\Theta$ while the angles for any other $x_{n,j}$ will be $(nT+j)\Theta$. When $m\ne n$ and $i=j$, they don't share the same rotation angle. If the 1D RoPE is used to keep the temporal order only, should they share the same angle such as $i\Theta$?

@Leopold2333
Thanks for your prompt answers :) I think there is an unsolved bug in the provided part of the code since we intend to reveal the sequential order of the tokens only based on their temporal index (so $m\neq n$ and $i=j$ should lead to the same rotation angle). We will arrange to fix it soon.

@Leopold2333
Thanks for your prompt answers :) I think there is an unsolved bug in the involved part of the code snippets since we intend to reveal the sequential order of the tokens only based on their temporal index (so m ≠ n and i = j should lead to the same rotation angle). We will arrange to fix it soon.

Get it. Thanks for the reply.


Handling single quotations after multiple_suggestions_re detection

line 38 of the oracle.py should be changed to
valid_fields.add(m.strip('"').strip('\''))

since if a response had multiple field suggestions and their names were in single quotes, the field name would be saved as 'field_name' and not field_name .

Hey @MdotTIM, thank you for raising this! I've pushed the change at https://github.com/nikitastupin/clairvoyance/commit/968680686fb12c16648d0d23d4a36199c2310599. Feel free to close the issue if the program works for you now 😃


Publish a new release and gem

Publish a new release and gem after adding tests, CI, and updates/fixes (if any).

Depends on #1 and #2.

Done #1 and #2.
Ready to publish now.

Published:

Release: https://github.com/iamazeem/fluent-plugin-json/commit/a90d5954230a9093753571234f425333aeb6ba43
Gem: https://rubygems.org/gems/fluent-plugin-json/versions/0.2.0


Decode sparkplug subscribe callback Example

when I get a payload back from a subscribed tag, it is encoded with Sparkplug, I can't find a way to decode this in Arduino. This Library looks like it potentially supports this, but I can only see publishing in the example, could you confirm if this is possible with this library and maybe point me in the right direction. Thanks.

Hi, the sparkplug standard is not native to Arduino, it is an open standard generally used in industrial scenarios. I am working on making a full tutorial, that I will share as soon as it's finished.
In short, this library is designed to be used with a software that has sparkplug/mqtt functionality built in. The software I use is called ignition by inductive automation: https://inductiveautomation.com/ignition/
In the meantime, this video gives a good explanation of sparkplug:
https://www.youtube.com/watch?v=-9vMAe7P25A
Any more questions you have would be helpful, as it will help me create a good tutorial!

Hi thanks for getting back to me, I am using Ignition also and I am very familiar with it, but my C knowledge is very lacking.
I am looking to read a tag from my Ignition Distributor Module with an esp32, which I can do, but it just returns the encoded byte array. I am struggling with how to decode this into the individual metric values.

Ok, I think I understand now.
Currently decoding is handled by this function: SparkplugNodeState processIncomingNCMDPayload(SparkplugNodeConfig* node, uint8_t* buffer, size_t length);`
In the current implementation, it doesn't give access to the decoded metrics, but rather automatically writes the incoming metric values directly to a BasicTag that matches the incoming metric alias or name. The BasicTag will only be written to if the remote_writable flag is set to true when it is created. Metrics that don't match any BasicTag are ignored.
If you need to access the metrics themselves for some other purpose, I can make note for the next update to the library.
Let me know if this helps or not, I can go into more detail and share some examples if you like.

Thanks, I was able to find a setting in Ignition to change the 'Data Format Type' from Sparkplug protobuf, to Sparkplug JSON, so I am able to just read it as a json string instead of needing to decode.
Let me know once the tutorial goes up and I'll check it out.

Awesome, I will let you know when it does, for now I'm closing this issue.


Add master branch protection rule

Since there are currently no DevOps practices and staging environment set up, I suggest having above protection rules on master branch to require 1 code owner to review pull request, which can make sure the code in master branch always builds successfully. I can always test new code as soon as any new pull request appears for now.

@D1o0g9s

Done.


Computing delayed object with large data on a client raises CancelledError.

Executing the following code with large data is raising CancelledError
dask version 2.2.0
import dask, numpy as np
array = np.arange(0, 10000)
endpoint = os.environ.get("ENDPOINT_DISTRIBUTED")
client = dask.distributed.Client(endpoint)
s = dask.delayed(sum)
print(dask.compute(s(array)))

If the array range is 1000 the delayed object is executed with out any error and returning expected results. But, If the array range is more for example 2000 than a CancelledError is raised. Please find the traceback below..
CancelledError                            Traceback (most recent call last)
<ipython-input-33-72ee4dc10f2a> in <module>
      3 client = dask.distributed.Client(endpoint)
      4 s = dask.delayed(sum)
----> 5 print(dask.compute(s(array)))

~/venv/lib/python3.6/site-packages/dask/base.py in compute(*args, **kwargs)
    444     keys = [x.__dask_keys__() for x in collections]
    445     postcomputes = [x.__dask_postcompute__() for x in collections]
--> 446     results = schedule(dsk, keys, **kwargs)
    447     return repack([f(r, *a) for r, (f, a) in zip(results, postcomputes)])
    448

~/venv/lib/python3.6/site-packages/distributed/client.py in get(self, dsk, keys, restrictions, loose_restrictions, resources, sync, asynchronous, direct, retries, priority, fifo_timeout, actors, **kwargs)
   2509                     should_rejoin = False
   2510             try:
-> 2511                 results = self.gather(packed, asynchronous=asynchronous, direct=direct)
   2512             finally:
   2513                 for f in futures.values():

~/venv/lib/python3.6/site-packages/distributed/client.py in gather(self, futures, errors, direct, asynchronous)
   1809                 direct=direct,
   1810                 local_worker=local_worker,
-> 1811                 asynchronous=asynchronous,
   1812             )
   1813

~/venv/lib/python3.6/site-packages/distributed/client.py in sync(self, func, asynchronous, callback_timeout, *args, **kwargs)
    750         else:
    751             return sync(
--> 752                 self.loop, func, *args, callback_timeout=callback_timeout, **kwargs
    753             )
    754

~/venv/lib/python3.6/site-packages/distributed/utils.py in sync(loop, func, callback_timeout, *args, **kwargs)
    325             e.wait(10)
    326     if error[0]:
--> 327         six.reraise(*error[0])
    328     else:
    329         return result[0]

~/venv/lib/python3.6/site-packages/six.py in reraise(tp, value, tb)
    691             if value.__traceback__ is not tb:
    692                 raise value.with_traceback(tb)
--> 693             raise value
    694         finally:
    695             value = None

~/venv/lib/python3.6/site-packages/distributed/utils.py in f()
    310             if callback_timeout is not None:
    311                 future = gen.with_timeout(timedelta(seconds=callback_timeout), future)
--> 312             result[0] = yield future
    313         except Exception as exc:
    314             error[0] = sys.exc_info()

~/venv/lib/python3.6/site-packages/tornado/gen.py in run(self)
    733
    734                     try:
--> 735                         value = future.result()
    736                     except Exception:
    737                         exc_info = sys.exc_info()

CancelledError:

Unfortunately this works fine for me:
In [1]: import dask, numpy as np, dask.distributed
   ...: array = np.arange(0, 10000)
   ...: client = dask.distributed.Client()
   ...: s = dask.delayed(sum)
   ...: print(dask.compute(s(array)))
   ...:
   ...:
(49995000,)

Thank you for the response.
Could this be because of insufficient memory?

10000 is a very small amount of memory, so no, I don't think so.

Is there anything else to do here?  If not, I may close this soon.

This is also working fine for me. @kondabathula can you perhaps try Matt's code in a fresh environment? If that fails then we'll reopen and debug some more.


12515

[Enter feedback here]

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

ID: 8266deba-6be2-3b90-7f27-30a1fec35b84
Version Independent ID: 6390e40c-6ae6-caa8-908e-8cc88cbf274f
Content: Getting started for developers - PlayFab
Content Source: playfab-docs/personas/developer.md
Product: playfab
GitHub Login: @mawillia
Microsoft Alias: joanlee

mawillia is not the right login name.  I don't know what this is about...


[FE-7] 필터 설정 페이지를 구현하라

🤔 해결하려는 문제가 무엇인가요?

필터 설정 페이지를 구현 (진행중)

🎉 어떻게 해결했나요?

range input 컴포넌트 구현
/filter
install react-input-range

📚 Attachment (Option)

🔗 Jira link

https://dnd-7th-3.atlassian.net/browse/FE-7

Codecov Report

Merging #24 (662d36e) into main (4881e41) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8        11    +3
  Lines           97       128   +31
  Branches        11        11
=========================================
+ Hits            97       128   +31

Impacted Files
Coverage Δ

src/pages/index.page.tsx
100.00% <ø> (ø)

src/components/common/Slider.tsx
100.00% <100.00%> (ø)

src/components/filter/FilterItems.tsx
100.00% <100.00%> (ø)

src/pages/filter.page.tsx
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Cannot play most Youtube songs.

Whenever I try to play a song the music bot spits out this error:
ERROR: Unable to download API page: <urlopen error [Errno -9] Address family for hostname not supported> (caused by URLError(gaierror(-9, 'Address family for hostname not supported'),))
ERROR: Unable to download API page: <urlopen error [Errno -9] Address family for hostname not supported> (caused by URLError(gaierror(-9, 'Address family for hostname not supported'),))
<class 'musicbot.exceptions.CommandError'>: Error extracting info from search string, youtubedl returned no data.  You may need to restart the bot if this continues to happen.

Here is the song I was using: https://www.youtube.com/watch?v=iAZIiLmsUeA

Try updating youtube-dl you can use
sudo pip install --upgrade youtube-dl
if that doesn't work try
sudo apt-get install python-setuptools sudo easy_install pip sudo pip install --upgrade youtube-dl
If updating youtube-dl doesn't work, try using a vpn.

No, none of those solutions worked to fix the bot. When ever I tried updating youtube-dl it said it was up to date.

I cannot use a vpn since this bot is hosted on an Ubuntu server and has other people using it at the same time I am

That error means that there is a problem with your internet/DNS. It can't resolve the website properly and thus throws a fit. This is probably down to your VPS host blocking or limiting outgoing traffic.
Try switching to another VPS or contacting them regarding this issue. The error is thrown by youtube-dl. If you still have this issue after switching, feel free to reply.

l got a error say in sos I could not obtain any search results.


Migrate to Dart null safety system

Hi,
I propose this pull request to migrate this plugin to null safety as it is the way to go now that Flutter 2 has been released.
Here are the changes I introduced:

Update SDK dependency version to 2.12.0+
Update url_launcher dependency to the new null-safe version
Run dart migrate on existing code, there is almost no change to the codebase as your code was already null-safe, thank you for that 😄  🎉
Fix deprecation warnings
Format codes

Note that it passes Dart static analysis (dart analyze) which means that the package should now get 110/110 pub points on pub.dev 🙂
Thank you for the great work on this plugin and let me know if I can rework something !

Closes #12

This looks perfect

@pikaju would you mind having a look at this PR and maybe merge it if it seems OK ?

I can't see changes on the main branch, I am unable to use this package because of dependency error.

This is yet to be merged...

@hmawla @pikaju can this PR be merged?
Thanks!

anything blocking this PR?

I think the repository author is away for the time being.
You may create a temporary fix by forking this PR and using it directly in your pubspec.yaml like so:
  maps_launcher :
    git:
      url: https://github.com/{your-username}/flutter-maps-launcher.git
      ref: master

@hmawla I saw you approved the PR, maybe we could get the author to add you as an additional maintainer?
This is a useful package, I would love for it to stay maintained.

Working with in the meantime:
maps_launcher:
    git:
      url: https://github.com/orevial/flutter-maps-launcher.git
      ref: null-safety-migration

Any news regarding this topic?

Damn it, I really need email notifications. Sorry for the wait guys. I will get a new version published ASAP. Thank you for your contribution!


Tools: Main template broken or incomplete

Compare https://developers.google.com/web/tools/?hl=en to https://material-dot-web-central.appspot.com/web/tools/

What's new link is missing, leading to the updates section.
Projects need to be at top, heading is unnecessary imho
Tips are missing
Typography of guides list is all over the place, wastes lots of space
Choice to have projects and part of guides above the fold was deliberate, please bring back.

"What's new link is missing, leading to the updates section." At the moment we are figuring out with what the plan is for DevTools in Updates. When that is fixed we can figure out if / how to link the two up.
Personally I'd like to see DevTools posts / tips moved into Tools. Not sure what your or @petele's thoughts are on this.

Project at the top - This didn't make much sense to me, if you are a user coming to this site for the first time, is the primary use for the tools section to point them off to some other site with little to no context? I would have thought the Tools content would be primary. @petele did you change it to be up top?

Removal of tips was to reduce the number of things on the page, plus the gif's are super distracting.

Typography - this is just straight out of MDL so any PR's / recommendations would be super appreciated. (In the short term I'll take a look now)

Please see previous notes regarding projects. Why is it prioritised above the fold?

Replaced by #1809

From @pbakaus
@gauntface to answer your questions from the closed ticket:

I don't think a seperate blog for DevTools specific content is a great idea. I think we should keep them in the Updates section.
Projects are at top as the main purpose of this entry site is to point to the sub pages for our projects. Surfacing the DevTools page is extremely important. If you have a better idea on how to achieve it, I'm all ears.
Re: Tips: "I removed this because the page is busy" reminds me of these mobile sites that become super useless but nice looking, as too many features from the Desktop site are gone. We need those tips. We can absolutely try to make them look nicer and not as busy, but we need them.
Will help with typography! I'll get a PR ready in the next few days.
Design of the Tools page went through dozens of iterations and under careful consideration, we wanted the entry point for all of our tools be super easy, but also quickly have viewers realize there's more, i.e. the guides.


Merge shared changes from coreclr

@alexperovich,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Conflict with @AtsushiKan change. Could you please take a look?

It looks like we both made the same change to String.resx and they just disagree on the amount of whitespace at the end of the file.


Add Continuation Prompt Counter

Summary of the new feature / enhancement
For example automatic variable:

On screenshot $ps2count as a concept of how to use this variable. Nowadays increment of variables ( $ps2count++ )  is not working in Continuation Prompt.
PS. I very often use script-blocks directly in the console.
Proposed technical implementation details (optional)
No response

You'll have a better chance of convincing others that this proposal is worth implementing if you explain why having line numbers in interactive multiline input is useful.

It is easier to find an error in a script block. Especially when there are more than 10 lines.
PS >  & {                       # 01
          $a = "a"              # 02
          $b = "b"              # 03
          1/0                   # 04
          $c = "c"              # 05
        }                       # 06
RuntimeException:
Line |
   4 |  1/0
     |  ~~~
     | Attempted to divide by zero.


Application with raspberry pi and sensors to send data

Hello
I have the idea of creating an application in Calvin that works with Raspberry pi and this with sensors that sense data and return them to my application.
The question is if someone has actors or a similar application that serves as a guide to be able to do it since I am a beginner in calvin and I am acquiring the theoretical knowledge to do it. Whatever it will be will help me since I'm just starting.
Thank you!

Hi,
A good starting point would be to look at the SensorKit examples which describes how to connect and use a range of sensors currently supported by Calvin on the Raspberry Pi. See the wiki (under SensorKit) and/or the examples.
I recommend using the develop branch for this, since it has some fixes that have not yet made it to the master branch.
Cheers & good luck,
// Ola

Sorry, when you say the branch of development to which you refer explicitly?

I do not know how you normally clone the repository, but if you use the "download.zip" option, first select the develop branch, as shown here:

And then click "clone or download" followed by "download zip" to the right:

If you use git, either from the command line or using a graphical tool, change to the "develop" branch. If the command line tool, just enter git checkout develop in the folder where you cloned the repository. If using some other tool, consult the documentation.
Cheers.

I'm closing this issue.
Cheers.


Did component router get deferred from the 1.5 release?

I didn't see a better place to ask this question, so here it is.

@petebacondarwin or @btford should be up-to-date on this

We are working on this today and tomorrow. Hopefully should have a new release of the component router, which works with 1.5 out before the end of the week


BinaryFileResponse content corruption under nginx on Azure app service (Linux)

Laravel Version: 9.10.1
PHP Version: 8.0.17 (cli) (built: Mar 25 2022 18:59:25) ( NTS )
Database Driver & Version: N/A (not used, not relevant to this issue)

Description:
A fairly simple controller which picks form input, chooses image from the disk and then returns it to webbrowser. Eg
  $img = .... <get data object describing image>

    $response = response()->file(Storage::disk('public')->path($img->filename));
    $response->headers->set('Content-Type', $img->mime);
    $response->headers->set("Cache-Control", "max-age=86400");
    return $response;

The code works absolutely perfectly on local development instance of Laravel (Windows 10), but corrupts data when deployed on Azure PHP App Service  on Linux.
I could confirm from debug that the file exists, could be read and contains correct data.
However, when the data arrives to web browser, it is corrupted in  a particular way:

All headers are delivered correctly with code 200
The binary payload for actual image have first 117 bytes stripped out. Eg after the headers, the binary data starts at byte 118, where byte 0 should have been. The rest of the bytes arrive correctly and at the end there are 117 empty bytes (eg 0x00), so the total size is correct.
I have attached an example - the image as expected and the image as delivered
The rest of the application works correctly (Json responses, etc), but any functionality relying on BinaryFileResponse is broken
The issues exists for any files (not just images), for different types of images, for different security (eg HTTP or HTTPS)
The amount of bytes missing at start seems to be always the same and unrelated to image content (eg no magic byte sequence)
The rest of the (fairly complciated) app funcitonality works perfectly - no issues
There is no magical numerology - the numbers of bytes missed seemingly do not correlate with anything (I wish)

Steps To Reproduce:
Run the same code under Windows 10 and under Azure App Service on Linux for PHP 8.0. Below are attached two images - the image stored locally and the image as delivered.

Fix
After lots of headscratching, I found a work around in Symfony code, HOWEVER the problem is not happening in "vanilla" PHP app using Symfony, so I suspect there is a problem with the way Laravel and Symfony interact.
The problem code is this one
namespace Symfony\Component\HttpFoundation;
......
class BinaryFileResponse extends Response
.....
public function sendContent(): static
{
......
stream_copy_to_stream($file, $out, $this->maxlen, $this->offset);
......
}
to fix, I implemented the following - eg PHP native function stream_copy_to_stream is replaced with a custom function, which does (as far as I could tell) the same thing (I have Ranges disabled globally, hence always serve the entire file).
_function pipe_streams($in, $out)
{
$size = 0;
while (!feof($in)) $size += fwrite($out,fread($in,8192));
return $size;
}
public function sendContent(): static

{
......
$this->pipe_streams($file, $out);
......
}_

Can you try the workaround suggested here: https://github.com/laravel/framework/issues/42681#issuecomment-1147625966

I have also the same issue. By adding the workaround method _function pipe_streams($in, $out) the response works fine. Are there any news about this topic?

I'm running the laravel application in an kubernetes environment in the azure cloud.
i mounted an azure persistent storage to the pod.
Now i'd like to return an image that's located on in the mounted folder like this:
return response()->file('/mnt/test.png');
this will result an corrupted image:

now i copy the image via cp /mnt/test.png /var/www/html/public/test.png to the public folder of my laravel application. then i return the image from that source. Now it works totally fine.
Only from the mounted folder it doesn't work. In my local dev environment i'm using a kubernetes cluster running on my machine. there i also mounted a folder to the pod, but in this case i'm using a local folder on my machine, not the azure storage. When i now try to return the image, everything works as expected.
as i mentioned before: by overriding the stream_copy_to_stream method with the pipe_streams logic, it works with azure.
any ideas here?

I am having a similar issue, some details here:
https://stackoverflow.com/questions/73280423/php-readfile-content-corruption-on-azure-web-applinux

I am having a similar issue, some details here: https://stackoverflow.com/questions/73280423/php-readfile-content-corruption-on-azure-web-applinux

It is a different manifestation of the same issue. I raised a ticket with Azure.

Yeah, just found the same azure link. Thanks for the update.
It seems the stream_copy_to_stream function to be the problem.


[type: refactor] remove extra dependency

// Describe your PR here; eg. Fixes #issueNo

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #2676 (9a1110c) into master (a1c929a) will decrease coverage by 0.50%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2676      +/-   ##
============================================
- Coverage     59.91%   59.40%   -0.51%
+ Complexity     4347     4317      -30
============================================
  Files           679      679
  Lines         19469    19466       -3
  Branches       1727     1726       -1
============================================
- Hits          11664    11563     -101
- Misses         6838     6954     +116
+ Partials        967      949      -18

Impacted Files
Coverage Δ

...n/alibaba/dubbo/cache/AlibabaDubboConfigCache.java
43.75% <0.00%> (-31.25%)
:arrow_down:

...gin/apache/dubbo/cache/ApacheDubboConfigCache.java
43.03% <0.00%> (-29.12%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
44.68% <0.00%> (-19.15%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

...org/apache/shenyu/admin/model/dto/AuthPathDTO.java
58.82% <0.00%> (-5.89%)
:arrow_down:

...che/shenyu/admin/model/vo/DashboardUserEditVO.java
62.50% <0.00%> (-4.17%)
:arrow_down:

... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1c929a...9a1110c. Read the comment docs.


[Snyk] Security upgrade postcss from 8.4.29 to 8.4.31

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

tasks/nextjs/easy/nextjs-easy/package.json
tasks/nextjs/easy/nextjs-easy/package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

551/1000  Why? Recently disclosed, Has a fix available, CVSS 5.3
Improper Input Validation SNYK-JS-POSTCSS-5926692
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: postcss
    The new version differs by 19 commits.

90208de Release 8.4.31 version
58cc860 Fix carrier return parsing
4fff8e4 Improve pnpm test output
cd43ed1 Update dependencies
caa916b Update dependencies
8972f76 Typo
11a5286 Typo
45c5501 Release 8.4.30 version
bc3c341 Update linter
b2be58a Merge pull request #1881 from romainmenke/improve-sourcemap-performance--philosophical-spiny-dogfish-3eb029c1c8
6a291d6 apply suggestions from code review
efa442c Update lib/map-generator.js
de33cf6 improve sourcemap performance
1c6ad25 Highlight banner with lines
e10d5c0 More more detailed text below
3ff5f5f Rephrase into
272aae4 Remove old banner
632e876 Update CI actions
cfa6cf4 Change EM banner

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Improper Input Validation

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


developer workflow

I want to make a change to xarray.plot.plot.line and use that change, what is the best way of going about this?  I was thinking that I could
(1) Fork xarrary on Github
(2) Make a local clone of the fork
(3) Edit the code for the function line in 'plot/plot.py'
Then?  I already use xarray that is installed with conda: conda install xarray .
Sorry need to ask because never done this before.

Hi, if you want to change something in xarray and use it instead of the original one you should uninstall it, and then install it in dev mode. From the xarray root directory:
pip install -e .

However, in that case this is probably not the best thing to do. Since the logic for xarray's line plot is extremely simple, in that case you'd better make you're own function out of it and call it instead. I.e. my_plot_func(dataarray) instead of datarray.plot().
Finally, you may want to consider using an accessor for this purpose. You will then be able to write something like:
datarray.qAp.plot()

I used an accessor to add more options for plotting 1d arrays; main ones demonstrated here:
https://github.com/qAp/climatools/blob/master/climatools/examples/1d_plotting/plotting_1d_DataArray.ipynb
Do you think these would be useful in xarray?  I guess they save time for people who are not familiar with matplotlib...

Thanks for these examples!
I cannot speak for the xarray developers, but my felling is that these options are too specific. Furthermore, doing the same things would require only one or two lines of code on top of xarray.plot().
However, I understand the argument that people who don't know matplotlib might find this useful, thought. The figsize kwarg could be a useful addition for example.

A size argument would definitely be useful (see https://github.com/pydata/xarray/pull/637, which needs somebody to finish it up). I could see log scale options also being useful, though I would stick with the names used by pandas for consistency (e.g., logx=True)

Right, I forgot about https://github.com/pydata/xarray/pull/637 . I'll see what I can do.


Not compiling

Create a new project and pod 'JSONSchema'
After pod install in a fresh project and compile. It is showing, No reference to this variables error..

The issue has to do with their Tag Release 0.6.0. There's a mistake on the JSONSchema.podspec file.
Specifically: spec.source_files = 'Sources/**.swift' should be spec.source_files = ['Sources/**/*.swift', 'Sources/*.swift']
They need to release a new tag with this change. In fact, it's already been fixed in master.
For anyone needing a quick fix: Change your podfile to download from the following:  pod 'JSONSchema', :git => 'https://github.com/kylef/JSONSchema.swift'

I just used the following
pod "JSONSchema", "0.5.0"


Seemingly inconsistent parsing

I'm sure that this is probably an issue with my grammar, but I've been trying to figure this out for days now.
This snippet is part of a longer text file I am trying to parse:
360	"Initial setting", AsH3_9.line = off,
		RunHydride to 500,
		VentHydride to 100,
		RunMO1 to 19000,
		RunMO2 to 3500,
		VentMO to 4000,
		RunDopant to 4000,
		VentDopant to 1500,
		TMGa_1.press to 1000,
		TMAl_2.press to 1000,
		Sat1Rotation to 400,
		Sat2Rotation to [MFCflowSatA],
		Sat3Rotation to [MFCflowSatB],
		Sat4Rotation to [MFCflowSatC],
		Sat5Rotation to [MFCflowSatD],
		Sat6Rotation to [MFCflowSatE],
		Sat7Rotation to [MFCflowSatF],
		Sat8Rotation to [MFCflowSatG],
		MainRot to 9,
		Ceiling.press to 1800,
		CeilingCtrl = open,
		Ceiling.inject to 1500,
		Ceiling.total to 2000,
		ViewportPurge to 100,
		CollectorPurge1 to 300,
		CollectorPurge2 to 300,
		HeaterPurge to 1000,
		LightPipePurge to 200,
                .
                .
                .
		CBr4_4.line = close,
		CBr4_4.run = off,
		CBr4_4.source to 28,
		CBr4_4.push to 450,
		CBr4_4.press to 500;

The two nearly identical lines:
CollectorPurge1 to 300,
CollectorPurge2 to 300,

produce two different outcomes when I print the tree.
    lin_ramp
      name	CollectorPurge1
      number	300
    lin_ramp
      name	Collec
      name	r
    lin_ramp
      name	Purge2
      number	300

The BNF grammar is given to me, but incomplete, so I'm trying to piece it all together. I've been most focused on what seems to be overlap between the lin_ramp rule and the name terminal.
?start: statement+

string: ESCAPED_STRING
number: SIGNED_NUMBER
name: /[_A-z]([\._A-z0-9])*/
?device_name: name //| (name /\./ name)
?device_list: device_name+
?digital_const: /on|off|open|close/

?stmt_list: statement+
variable_stmt   : ("variable"|"parameter") name "=" expression ";" -> variable
timed_stmt      : expression string? action_list ";"
macro_stmt      : name ";" | name "{" stmt_list "}"
conditional_stmt: (string? action_list ",")? "until" device_name /<<|==|>>/ expression ";"
loop_stmt       : "loop" expression "{" stmt_list "}"
                | "loop" expression name ";"
read_stmt       : "read" name ";"

?statement   : variable_stmt
            | timed_stmt
            | macro_stmt
            | conditional_stmt
            | loop_stmt
            | read_stmt

?expression : number
            | digital_const
            | "(" expression ")"
            | "-" expression
            | expression operator expression
            | function "(" expression ")"
            | "[" expression "]"
            | device_name

function    : "sin"
            | "cos"
            | "tan"
            | "exp"
            | "exp10"
            | "log"
            | "log10"
            | "sqrt"

operator    : /\+/
            | /\-/
            | /\*/
            | /\//
            | /\%/
            | /\^/

action_list: ([","] action)*
?action  : set_val
        | follow
        | lin_ramp
        | nonlin_ramp
        | group
        | stats
        | data_log

set_val     : device_name digital_const
            | name "=" expression
            | device_name "=" expression
follow      : device_name "follow" expression
lin_ramp    : device_name "to" expression// ["in" expression]
nonlin_ramp : device_name "with" expression ["in" expression]
group       : name "=" (device_name|name)+ ";"
stats       : /begin|end/ "stat" device_list
data_log    : "dlog" (expression|/off/)

COMMENT: /#[^\n]*/
WS: /[ \t\f\r\n]/+

%import common.ESCAPED_STRING
%import common.SIGNED_NUMBER
%ignore COMMENT
%ignore WS

#81 I also sometimes experience this issue, where I get different output often, which makes me assume the issue is in my grammar file.
    lin_ramp
      name	Collec
      name	r
    lin_ramp
      name	Purge1
      number	300
    lin_ramp
      name	CollectorPurge2
      number	300

Yes, and no. It certainly is an issue with Lark that the parse isn't always consistent, and it's on my TODO list to fix it, but at the same time, there are countless ways to solve this in your grammar.
For example, you make the comma required, so it can't split lin_ramp in the middle:
action_list: ("," action)*

Or you can require whitespace around "to":
lin_ramp    : device_name " to " expression// ["in" expression]

And surprisingly enough, it seems that your grammar can work with a standard lexer, which is faster and guaranteed to be consistent:
parser = Lark(g, lexer="standard")
Each of these approaches has pros and cons, regarding which inputs they accept and which they don't, so it's up to you to decide which way you'll go.

Thank you. I tested both the required comma and the " to " solutions, and they both seemed to work. The files I'm parsing are 1000+ lines long, so its hard to tell if everything is working as intended, but both look good as far as I can tell.
I tried using the standard lexer, but I ran into some other problems parsing "[" expression "]". I don't really know what I'm doing, so I don't know the difference between the standard and dynamic lexers. How can you tell whether or not it works with the standard lexer, just try and see?
Anyway, thanks a ton. Lark has been by far the easiest parsing library to work with that I've found.

There's a lot of theory behind it, but to put it briefly:
The standard lexer is a preprocessor. It does a separate pass on the input to extract the tokens, based on a simple set of rules (match tokens one after the other, always choosing the first viable match, a bit like PEG parsers). However, that can lead to wrong tokenisation if there is any nondeterminism in the grammar.
The dynamic lexer, which is a unique invention and exists only in Lark (to the best of my knowledge), is a subroutine of the parser. It guarantees that every combination will be tried on the road to a correct parse. The downsides is that it's slower, because it has to try many combinations, and that I still haven't worked out all the kinks for the common use case :)
Anyway, I'm glad that my solutions were good enough for now. Feel free to ask more questions if you get stuck. And thank you for the compliment! That's what gives me the motivation to keep improving it.


vscode-extensions.charliermarsh.ruff: fix source hash

Without the change fetch fails on master as
https://hydra.nixos.org/build/249002341:
error: hash mismatch in fixed-output derivation '/nix/store/mr63zag9vf959i6clp5ld0hr8mp09yl8-charliermarsh-ruff.zip.drv':
     specified: sha256-zxE4QcWt8M6djTbdIf0YNSpeF1w7vMK4/BW5ArCOYbE=
        got:    sha256-qgwud2gzHLHID45VxDlngFMoks5O3pTHQe+Q7bdf8+I=

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

Hmm, so the checksum changed afterwards. First I thought it has do to with the different releases in new versions of it. ref: https://github.com/NixOS/nixpkgs/pull/283794


Feature front end

This PR Fixes #issue_number
Proposed Changes
Please review

[ ] @libremente

Can you please rebase @EugenioCorso ?


Column width auto-fit to its contents

Describe the bug
Column sizing in material-table has been a mystery. I've tried passing in widths to headerStyle and cellStyle with no discernible effect. Setting tableLayout to auto or fixed doesn't get the results that I need.
Here's a screenshot of the populated table. Notice that the LINE # column is much wider than its contents. Is there a way to get the column to shrink its width to fit the data? Conversely, it seems to expand to a certain degree to fit larger content.

To Reproduce
Nothing special with the code, just pass in data with multiple columns.
Expected behavior
Shrink width to fit data in cells.
Desktop (please complete the following information):

OS: OSX
Browser Chrome
Version 86

Thank you! That's def an issue if those props do absolutely nothing.

Hi @peacechen
I was having the same issues but solved it by using the width as a percentage!
So:
{
   title: 'abc',
   field: 'abc',
   width: '5%'
}

This works for me

Thanks @ChinmayaNathany that helps. How well does that work on different size screens (mobile, tablet, desktop) ?

@peacechen  I haven't tried it on anything but desktop

I agree - the sizing has always been somewhat of a mystery to me as well (it's just confusing tbh)..
With that being said, I quickly scanned the Material Design white paper for data tables and was not able to find anything about shrinking cell width to fit data. I think we need a good review of these "little" things, just to make sure we are following the Material Design spec appropriately.
From what I make of it each row should attempt to evenly space each cell - according to the spec.
@Domino987 thoughts?

It does appear that auto evenly divides the width by the number of cells. Fixed has some weird not-useful behavior. Since those already exist and are in use, perhaps a new mode such as shrink could be introduced that is a variant of auto. It would first evenly divide the width by number of cells, then shrink the width of columns that have white space. Easier said than done.

I like it.


Do not add filters to filters which is "none"

When add new filter call by clientRegisterFilter, do not add to chain which filter is "none".

@liling this is closed by https://github.com/grails-plugins/grails-spring-security-core/pull/559


Hangout: Updating a hangout doesn't update the hangout

Clean install of Hangout module
Successfully add a hangout
Edit the hangout again - change the title
Save your changes

Expected Behavior:
The page loads and the new hangout title is seen
Actual Behavior:
The page reloads, but the old hangout information is seen.  This requires that the Superuer clears cache before the update is seen.

Oddly enough, there's nothing to fix here. The module is using content items and not caching the content item.  The DNN core was checked, and it doesn't appear to be caching content items before or after updating, nor does during retrieval of a content item.  The content items are retrieved directly from the database.

Found the issue.  The rendered template is being cached.  The cached template needs to be cleared upon saving/re-saving the hangout.


Added 'Users and Privileges' on mysql file and several configs to nginx file

Added section 'Users and Privileges' on mysql.sh file.
Added sections 'General settings', 'Serving files', 'Redirects', 'Reverse Proxy', 'HTTPS Protocol' and 'Load Balancing' on nginx.sh file.

Thank you! :)