Make Action usable inside a Docker container

Hi,
We are using this action to install Python on ARM machines and the workflow steps are executed inside a container (almost bare ubuntu:20.04).
There is a known problem with github.action_path - it is incorrectly set if the action is executed inside a container:  1, 2. We have encountered it ourselves when trying to use the action. It failed with:

The proposed fix is to check if the install_python script exists under either of the two paths:

${{ github.action_path }}/bin/ - for the outside container scenario
$GITHUB_ACTION_PATH/bin/ - for the inside container scenario

I've added the matrix entry with a Docker image to check if this would work: it works.

this is not intended to be used inside a container -- you're free to maintain your fork which does though!

strange position since using docker images in GHA is quite popular

I'm not going to hack around a bug in github for something I don't intend to support and has a bunch of complexity and problem surface area

you created an action for Github, but don't want to support Github - great logic!

For anyone doing a web search for the error message, it is
/__w/_temp/97ed7fc6-352d-4a8c-a3a5-50c825ab89c0.sh: line 1: /runner/_work/_actions/deadsnakes/action/v3.1.0/bin/install-python: No such file or directory


Revert "Auto-advance date of the next tag (#2428)"

This produces a bunch of needless notifications for release watchers on GitHub. I think there's a way to work around this, but it needs some testing first.
This partially reverts commit 766b40e8fcdd82d59de4979d4a37714e4c8f9b2b and #2428.

Were you thinking about a daily pre-release?

What I want is a continuously-updated release, so that it's easy to get at artifacts for the head of main. That is, I want to be able to curl https://github.com/web-platform-dx/web-features/releases/download/next/data.extended.json to always have the latest release data.
The existing workflow does that. However, the date never changes (previously, it appeared as if the next release was stuck in September or so, even though it changed several times a day). Deleting and re-creating the release fixes the date, but (misleadingly) makes it appear that there's a "new" release on every commit.
A little more detail here: https://github.com/web-platform-dx/web-features/issues/2068

so that it's easy to get at artifacts

I see!
You could generate GitHub Artifacts with a workflow for main.


SyntaxError with Python 3.x

Tested with python 3.4 and 3.5
Traceback (most recent call last):
  File "/nix/store/4fr5rgsizd5q72fr8lsixvb274awg6nk-python3-3.4.4/lib/python3.4/unittest/loader.py", line 323, in _find_tests
    module = self._get_module_from_name(name)
  File "/nix/store/4fr5rgsizd5q72fr8lsixvb274awg6nk-python3-3.4.4/lib/python3.4/unittest/loader.py", line 301, in _get_module_from_name
    __import__(name)
  File "/tmp/nix-build-python3.4-pystache-0.5.4.drv-0/pystache-0.5.4/test_pystache.py", line 20, in <module>
    from pystache.commands import test
  File "/tmp/nix-build-python3.4-pystache-0.5.4.drv-0/pystache-0.5.4/pystache/__init__.py", line 9, in <module>
    from pystache.init import parse, render, Renderer, TemplateSpec
  File "/tmp/nix-build-python3.4-pystache-0.5.4.drv-0/pystache-0.5.4/pystache/init.py", line 8, in <module>
    from pystache.parser import parse
  File "/tmp/nix-build-python3.4-pystache-0.5.4.drv-0/pystache-0.5.4/pystache/parser.py", line 15
    NON_BLANK_RE = re.compile(ur'^(.)', re.M)
                                     ^
SyntaxError: invalid syntax

I can't reproduce this, I have pystache 0.5.4 installed on Python 3.5.1 and it works.

I have the same issue. I am using Python '3.3.5 (default, Jun 15 2016, 19:45:40) [MSC v.1800 32 bit (Intel)]' installed in LibreOffice installation <IP_ADDRESS> (32bit) on Windows 7 (64bit).
I just installed pip 6.1.1. and install pystache 0.5.4.
After executionf the import pystache a get the same error.

Found the same issue with Python 3.6.3.
Apparently pip did not update pystache code from Python 2 to Python 3 during installation (the SyntaxError initially reported stems from the invalid ur string specifier in Python 3).
Solved running manually 2to3 on the pystache installation folder as per the installation instructions:
2to3 --write --nobackups --no-diffs site-packages\pystache

Given that Python 2.x’s raw unicode literals behave differently than Python 3.x’s the 'ur' syntax is not supported.

https://docs.python.org/3/reference/lexical_analysis.html
Isn't this a direct compatibility issue?  Also the built in unicode function is defunct too.

I'm getting this same issue in Python 3.7.6

From the readme

Pystache is written in Python 2 and must be converted to Python 3 prior to using it with Python 3. The installation process (and tox) do this automatically.

It seems that the last working build is with pip 20.3.3. After that, the build step that compiles python2 code to python3 seems to be skipped.
From https://github.com/nicolargo/glances/issues/1793#issuecomment-765922759

it looks like it relies on lib2to3 to work in Python 3 and there are issues with 2to3 which is noted to be unstable with Python 3.9 and deprecated in 3.10

I am sorry to say that this signals that the project is indeed abandoned and people should look elsewhere - https://github.com/defunkt/pystache/pull/213

Scratch the above message. The actual reason the build is failing is not pip but setuptools.
From https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v5800

v58.0.0
Breaking Changes
#2086: Removed support for 2to3 during builds. Projects should port to a unified codebase or pin to an older version of Setuptools using PEP 518 build-requires.

So, starting today, environments that pull in the new release of setuptools (v58 or later) will fail to build pystache.

I have forked pystache and dropped support for python2 in order to avoid this issue here – https://github.com/PennyDreadfulMTG/pystache


Update README.md

I have added a reference to the other plugin. The other plugin has a reference to your plugin.

Ok thanks.


default tag doesn't works for empty string

myString : { "type":"string", "default":""}
will generate:
private String v;

instead of:
private String v = "";

Thanks for reporting this. We'll get this fixed for the next version. I simply didn't anticipate people doing this so at the moment the plugin only applies the default if the string is not empty.

@joelittlejohn PR opened, please review

any update here?

Is this really fixed? I'm using  jsonschema2pojo-ant in version 0.4.15 an I see that there will be no field or getters if the string value in json is empty.


Print the current version to the console on app startup

The app should print its current version to the console on startup so that we can see which version is deployed.

Done


python3Packages.gymnasium: init at 0.28.1 and dependencies (farama-notifications, jax-jumpy)

Description of changes
Add new python packages:

gymnasium v0.28.1
jax-jumpy v1.0.0
farama-notifications v0.0.4

Things done

Built on platform(s)

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

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

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

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

Should I make separated commits for each package ?

Yes, please.

Done :)

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

12 packages built:

python310Packages.farama-notifications
python310Packages.farama-notifications.dist
python310Packages.gymnasium
python310Packages.gymnasium.dist
python310Packages.jax-jumpy
python310Packages.jax-jumpy.dist
python311Packages.farama-notifications
python311Packages.farama-notifications.dist
python311Packages.gymnasium
python311Packages.gymnasium.dist
python311Packages.jax-jumpy
python311Packages.jax-jumpy.dist

@ofborg build python3Packages.gymnasium


⚠ Tachidesk Server has degraded performance

In aa82f6c, Tachidesk Server (https://tachidesk.culturecloud.eu.org) experienced degraded performance:

HTTP code: 502
Response time: 26084 ms

Resolved: Tachidesk Server performance has improved in 6307512.


[BUG] Lap time alignment fails if a driver retires on the first lap of a race and pits

Describe the issue:
The alignment of the (absolute) lap start times across drivers fails if a driver retires on the first lap and pits.
Example: 2024, Saudi Arabia, Race
Other combinations of factors may have the same effect.
The lap time alignment should be extended to be able to align laps based on different reference laps for each driver instead of being fixed to one single lap where the constraints must be met by all drivers.
Reproduce the code example:
import fastf1

fastf1.Cache.set_disabled()

session = fastf1.get_session(2024, 2, 'R')
session.load()

Error message:
req         WARNING 	DEFAULT CACHE ENABLED! (412.31 MB) C:\Users\phisc\AppData\Local\Temp\fastf1
core           INFO 	Loading data for Saudi Arabian Grand Prix - Race [v3.4.0.dev1]
_api           INFO 	Fetching session info data...
_api           INFO 	Fetching driver list...
_api           INFO 	Fetching session status data...
_api           INFO 	Fetching lap count data...
_api           INFO 	Fetching track status data...
_api           INFO 	Fetching timing data...
_api           INFO 	Parsing timing data...
_api        WARNING 	Skipping lap alignment (no suitable lap)!

Hi,
I was working on this bug and just wanted to understand what exactly do you mean by different laps. i.e. What strategy you had in mind?
Thanks :)

Currently, there are two requirements for a lap that can be used to align the data.

no driver pits on that lap
no driver has retired yet

Assume the following scenario: Driver A pits on the first lap of the GP and then continues the race, driver B retires on the second lap.
With the current logic, it is now impossible to correctly align the data.
But in theory, you could align all drivers except driver A based on the first lap. Driver A can then be aligned based on the second lap.
This requires the following:

you need to keep track of which drivers have already been aligned
an additional constraint (likely) would be that while some drivers may pit on a lap that is used for alignment, the leader must no pit on that lap
when splitting the alignment up like that, the leader may be different on these laps and an additional time offset may need to be considered

Also, when a driver retires on the very first lap, it will always be impossible to correctly align that driver with the other drivers. This should not cause the whole alignment procedure to fail, but just leave that one driver unaligned.

Thanks for your response, based on that explanation I have come up with the following strategy:

Split the alignment into "passes"

First pass will try to align as many drivers as possible, most cases
this will be enough for the entire field, then we move onto subsequent
"passes" where it will align the leftover drivers from the first pass
i.e. Where the left over drivers can be aligned with least number of
leftover drivers.
Once, that lap is found and the leftover drivers are aligned then we
calculate another offset from the first pass, this will be the gap of
the leader of this lap (could even be the same leader) to the leader
of the lap from the first pass.
Then we add those offsets together to get the net offset which would
in turn still be aligned to the "first passes'" lap.

Can either run it recursively until the entire field is aligned or set a hard "passes" limit, i.e max 3 passes (pass limit would be faster for obvious reasons. Does that sound reasonable?

That sounds like a reasonable way to solve this problem 👍
I don't think a hard limit to the number of passes will be necessary. Correctly aligning all data should be preferred over performance, even though performance is important of course. But passes that don't align any drivers should not take much time. And all other passes are time well spent.
Apart from this, I expect the computation time to be fairly negligible compared to the overall data loading time.

@HarshitACE what's the current status on this? Are you still working on it?

Ok, great to hear 👍


Operators replace text with motion when used with pane splits

If you split a pane and then delete a line in the original pane using dd, the line gets deleted but a d is inserted at the beginning of the next line (even after closing the opened pane).
The same thing happens with cc to change the line (except it inserting a c, not a d).

I just noticed this seems to apply to any operator with motions - for example, going to the beginning of the document and then pressing G to yank the entire document does that - and replace the document with G. This basically makes pane splits unusable.

That's strange, I can't reproduce this.  I split a pane (both using ex mode's :split and the menu), hit dd, and both panes had the correct text.  Tried a few other motions too.
Does it happen when you only have vim-mode enabled, no other 3rd party plugins?

I think this fixed itself when I upgraded Atom, I'm unable to reproduce this now.

Still poping for me, with atom v0.204.0.
Happens only when I'm working with split panes.

Strange, it happens again for me now. I don't know why, but I'm pretty sure it worked for a while - maybe I just worked in the new pane everytime?

Alright, here's something interesting:

Open a new window
Enter

abc
def
ghi

into the untitled file

Press Ctrl-V, then Ctrl-H
Go to the first line, press dd. File now looks like

ddef
ghi

Press u, then press cc, then Esc. File now looks like

abc
c
ghi

Press u, then delete a line. It now works correctly again.

This happens too when I disable all packages but vim-mode.
If I do this on a clean install with only vim-mode installed, it works however.

I'm seeing this as well, and actually originally attributed it to bronson/vim-mode-next#1. I can reliably trigger it by opening a vertical split, or closing a vertical split if I opened Atom with one. Closing the split again doesn't fix the problem. After I restart Atom the problem goes away though. I tried this with all other plugins disabled. It does seem to be reliably reproducible.
Strangely doing yy to yank a line causes the line to disappear (and the letter y is prepended to the next line).
Yanking from the command palette does not delete the line though.

You mean Ctrl-W v right?  (lower case, ctrl-w ctrl-v should be the same)
I still can't reproduce this.  :-/
My full typing sequence (spaces are just for readability
cmd-shift-N i abc <cr> def <cr> ghi <esc> Ctrl-w v Ctrl-w h 1G dd

First line gets deleted in both panes, everything looks good so far (except the 1G left the cursor one position too far to the right, the ol' cursor-outside-the-line bug)
u cc <esc> u dd

Every edit worked exactly as intended.  What platform are you on?  (me: OSX and sometimes Linux)

Alright, I can't reproduce this on a fresh install (although I could with everything in init.coffee, config.cson and keymap.cson commented out and all packages but Core and vim-mode disabled...).
On the fresh install, I however notice a similar issue - the following sequence inserts a : into the file :confused:
ctrl-w v ctrl-w h :
I can only test on Linux.

Same thing happens when replacing : with q
Looks like unbound keys simply insert, even in command mode (when used with pane splits).

And another one: cw replaces the word with w.

Ha!  I can reproduce the last one.  That's weird!
I fire up Atom with a single editor pane.  Hit ctrl-w v to split, then cw.  The whole thing gets ignored.  Now ctrl-w ctrl-w to switch to the original pane and cw.  A 'w' gets inserted into the editor.
That's some suboptimal behavior.

Except I can't reproduce any of that when vim-surround is disabled and Atom restarted.  Works perfectly now.
Are you using vim-surround?

No, I'm not using vim-surround.
It seems kind of random what sequences trigger this behavior. I'll look into this when I'm done with #762

I reproduced it a few times, restarting Atom each time...  And now all of a sudden I can't reproduce it at all.  Both with and without vim-surround, I don't see it anymore.  So weird!  Looking forward to #762.

Alright, it looks like in the pane where this bug occurs,
atom.views.getView(atom.workspace.getActiveEditor()).component.isInputEnabled

is true in command mode for some reason. (This is @editorElement.component.isInputEnabled in the VimState)

... And entering and exiting insert mode makes everything work alright. Looks like isInputEnabled is set to true when splitting panes.

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


add a quick TLDR way of deploying

For those in a hurry or just wanting to set it up again (like me for the nth time now) it would be cool to have a TLDR way (a script or compressed YAMLs or something) to get to a running state.
What do you think @webwurst ?

It should be enough to just run kubectl create --filename *.yaml. If need we should fix that.

true, I'll test it and then add it somewhere in docs or readme

We could move all the manifests to /manifests and then use kubectl create --filename manifests/. Feels a bit cleaner.

And we should provide the initial Grafana configuration for datasource and dashboards.

I'll have a look at the created Grafana configuration and come up with a grafana-configmap.yaml.


Update getting-started.md

Fixed link to Interfaces, added .md

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

Thanks.


Add a config for parameters

Background
Currently, when to set parameters we need to set in params.go.
This is not good UX.
What to do
Add a YAML config for parameters.

Also might be better, if the binary is released.


fix(useFormEvents): formActionType is lost in componentsProps

General

✏ Mark the necessary items without changing the structure of the PR template.

[ ] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[ ] My code follows the style guidelines of this project
[ ] Is the code format correct
[ ] Is the git submission information standard?
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

还缺少个 setProps这个函数

还缺少个 setProps这个函数

加了，大佬看下这样行不


adding backup procedure

backup procedure
All CRs needed for the backup procedure have been added.

/ok-to-test


Parser Issue

I think you need to look at your regex parser, I'm pretty sure agro.au.dk, and others, isn't a vaild Australian domain name as per your /countries/Australia/data.csv dataset. Maybe as \.au$ might help?

Hi @pudsec,
You were right. It was a regex typo which was fixed in an earlier version but the workflow that pushed the results to GitHub was incorrectly configured to merge (not replace) the results of each run, so even though the latest runs' results were correct, it didn't delete the incorrect results from the faulty run. We just fixed it.
This also helped us catch and fix a couple of other bugs in the workflow so thank you so much!


frontend: show suggested song

after the journal entry is submitted show the suggested song output of sentiment analysis of ml

on hold right now as it is not an MVP


capacity/reservation overhaul in runner/LB

The current pure-runner capacity reservation mechanism is faulty and will not work properly. Fix the following problems:

CapacityManager in pure runner needs to be removed. This uses a simple accounting (add/subtract memory) for each request, but this will fail because:

agent.go internal resource tracker is not in sync with CapacityManager. Current code tries to read internal resource tracker readings in an attempt to keep things in sync, but this is very fragile and hard to maintain. There is already couple of bugs in there, as CapacityManager does not honor config settings as resourceTracker does.
hot containers already spawned are not being taken into account. This means, the system can fail in all sorts of ways and can emit 'too busy' if pure runner spawned a ton of hot containers already resident, but still thinks it's got capacity. In other words, hot containers already waiting for requests are not and cannot be tracked by pure runner.

handleTryCall - reservation call already synthesizes a Call object. It might as well schedule to run it. There's no need to delay running the Call. Therefore agent.Submit() can be performed immediately instead of waiting for more data. This will cut down latency since if a container spawn needs to be initiated, it needs to be triggered ASAP.

modify FN agent to quick fail if there's no cpu & memory capacity. This will work well with handleTryCall and we can safely remove the pure runner CapacityManager. An in-progress work for this is pending approval: #841

pure runner can register a listener to it's wrapped Agent to receive notifications on call.Start(). Upon call.Start() it can send ACK to the LB.

include CPU in the pure-runner code. We can use zero for now, but we must not omit this for future, therefore a place holder for it is prudent.

cc @rdallman @kmjohansen

#841 #989 #1005 addresses this.


subsegment not sending the Exception & SQL Trace

Im trying to capture all my exception and SQL in AWS-XRAY . I have tried multiple approach and not able to find a proper solution.
my setting.py file
XRAY_RECORDER = {
    'AWS_XRAY_DAEMON_ADDRESS': '<IP_ADDRESS>:2000',
    'AWS_XRAY_TRACING_NAME': 'payment',
    # 'PLUGINS': ('EC2Plugin'),
    'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR',
    'AUTO_INSTRUMENT': True,
    'SAMPLING': True,
    # 'AWS_XRAY_SDK_ENABLED': True,
    'STREAM_SQL':True
}

The error occurs in a function and goes to except block of code as below
except IntegrityError as e:
        exception_logger(e,request)
        return JsonResponse({"success": False, "code": 400, "error": str(e)}, status=400)

now in my expection__logger function ( Code as below )
    with xray_recorder.in_segment('payment') as segment:
        stack = traceback.extract_stack(limit=xray_recorder._max_trace_back)
        segment.add_exception(e,stack)
        with xray_recorder.in_subsegment('sub-segment') as subsegment:
            subsegment.add_exception(e,stack,remote=True)
        xray_recorder.end_segment()

The issue here is , In my amazon console . It only shows me the below exception message , But what i want is the complete trace of Exception and SQL . How is it possible ? am i trying something wrong ?
Cause | Propagated exception caused by exception ID: e72687ae97f46e5c
Sometime in my exception tab (AWS - XRAY CONSOLE ) there is no message , this happen when i dont define any segment or subsegment .
IMAGE ATTACHED :

@willarmiros

Hi @manojkumar3692
My initial guess is that the issue lies with your exception_logger method when you add the exception and close the payment segment with xray_recorder.end_segment(). The middleware might be attempting to close the payment segment again down in the call chain and you may be getting the cannot find the current segment/subsegment error. This could be leading to the loss of the exception stack trace.
Can you please verify that by removing the xray_recorder.end_segment() from your exception_logger method?
I was unable to reproduce the issue, so if you can provide a simple repro it would be very helpful.
Thanks!


[executor] split executor public methods into two traits

Motivation
The first step to split executor into two variants, embodied in two traits, used by
zone 3 and LEC respectively according to #2519
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
CI

@bors-libra delegate+

:v: @lightmark can now approve this pull request

@bors-libra r+

:pushpin: Commit 7799874 has been approved by lightmark

:hourglass: Testing commit<PHONE_NUMBER>59f416910fb21828232886bbd4169a with merge 7ab9566c3a838c8127960ca7dfd6d9f93d12cbaf...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: lightmark
Pushing 7ab9566c3a838c8127960ca7dfd6d9f93d12cbaf to master...


ENH: Add support for hypothesis testing using formulas

Is there a way to test t-statistics from PanelOLS using different reference values?
See this example from statsmodels:
from statsmodels.formula.api import ols
dta = sm.datasets.longley.load_pandas().data
formula = 'TOTEMP ~ GNPDEFL + GNP + UNEMP + ARMED + POP + YEAR'
results = ols(formula, dta).fit()
hypotheses = 'GNPDEFL = GNP, UNEMP = 2, YEAR/1829 = 1'
t_test = results.t_test(hypotheses)
print(t_test)

Your hypothesis has multiple restrictions.  You can test this with a Wald test
https://bashtage.github.io/linearmodels/panel/panel/linearmodels.panel.results.PanelResults.wald_test.html#linearmodels.panel.results.PanelResults.wald_test
There is no support for formulas though, so you need to specify your test in the C beta = v format where you define C and v.

This is already available in wald_test.

This is already available in wald_test.


Intermittent failures in cholesky_solve and cholesky_solve_static

I noticed this on the CI run for #678. The CI was running commit 8bce398653395c219edf85dcb4d95c3ff976a69f on cargo 1.40.0-beta (5da4b4d47 2019-10-28). I was able to reproduce it locally on both cargo 1.40.0-beta (5da4b4d47 2019-10-28) and cargo 1.38.0 (23ef9a4ef 2019-08-20) on commmit 31ef5f0ab02c6ecf279867f07cd63e16cece8b75 (the previous HEAD) via the following commands:
for i in $(seq 100); do RUST_BACKTRACE=1 LAPACK=1 CARGO_FEATURE_SYSTEM_NETLIB=1 CARGO_FEATURE_EXCLUDE_LAPACKE=1 CARGO_FEATURE_EXCLUDE_CBLAS=1 sh -c "cd nalgebra-lapack && cargo +beta test cholesky_solve"; done
for i in $(seq 100); do RUST_BACKTRACE=1 LAPACK=1 CARGO_FEATURE_SYSTEM_NETLIB=1 CARGO_FEATURE_EXCLUDE_LAPACKE=1 CARGO_FEATURE_EXCLUDE_CBLAS=1 sh -c "cd nalgebra-lapack && cargo test cholesky_solve"; done

It's somewhat rare, there only seem to be 2-3 crashes per 100 runs.
Sample backtraces:
---- linalg::cholesky::cholesky_solve_static stdout ----
thread 'linalg::cholesky::cholesky_solve_static' panicked at '[quickcheck] TEST FAILED. Arguments: (Matrix { data: [69.69431563547087, 75.85874450854578, 80.51503043974236, 55.72021550747667, 50.60926688060886, -47.98551293031665, 35.8865183309388, -45.711636343254
995, 69.73960842665585, 29.100233100697324, 92.95087043025657, -82.45703076757903, 79.48975128880761, 27.7026291273621, 93.98360271057183, -51.463607224805855] })', /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:178:28
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:47
   3: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:36
   4: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:200
   5: std::panicking::default_hook
             at src/libstd/panicking.rs:211
   6: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
   7: std::panicking::begin_panic
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:411
   8: quickcheck::tester::QuickCheck<G>::quickcheck
             at /home/avi/Documents/cloned-repos/nalgebra/<::std::macros::panic macros>:3
   9: quickcheck::tester::quickcheck
             at /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:196
  10: lib::linalg::cholesky::cholesky_solve_static
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:13
  11: lib::linalg::cholesky::cholesky_solve_static::{{closure}}
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:11
  12: core::ops::function::FnOnce::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ops/function.rs:235
  13: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787
  14: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  15: std::panicking::try
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:275
  16: std::panic::catch_unwind
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:394
  17: test::run_test::run_test_inner::{{closure}}
             at src/libtest/lib.rs:1408
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- linalg::cholesky::cholesky_solve stdout ----
thread 'linalg::cholesky::cholesky_solve' panicked at '[quickcheck] TEST FAILED. Arguments: (69, 52)', /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:178:28
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:47
   3: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:36
   4: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:200
   5: std::panicking::default_hook
             at src/libstd/panicking.rs:211
   6: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
   7: std::panicking::begin_panic
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:411
   8: quickcheck::tester::QuickCheck<G>::quickcheck
             at /home/avi/Documents/cloned-repos/nalgebra/<::std::macros::panic macros>:3
   9: quickcheck::tester::quickcheck
             at /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:196
  10: lib::linalg::cholesky::cholesky_solve
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:13
  11: lib::linalg::cholesky::cholesky_solve::{{closure}}
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:11
  12: core::ops::function::FnOnce::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ops/function.rs:235
  13: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787
  14: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  15: std::panicking::try
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:275
  16: std::panic::catch_unwind
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:394
  17: test::run_test::run_test_inner::{{closure}}
             at src/libtest/lib.rs:1408

---- linalg::cholesky::cholesky_solve_static stdout ----
thread 'linalg::cholesky::cholesky_solve_static' panicked at '[quickcheck] TEST FAILED. Arguments: (Matrix { data: [-78.583699698804, -40.712235422361644, -59.16787453390664, 44.808985760599455, -5.6350540733132135, 64.34217014701775, -37.60170949826423, -72.71896028523642, -62.42317853170132, -50.35792733594966, 86.84045651347355, -88.80993330984465, 90.63876282922334, -27.765180482875536, 90.79548961290834, 49.467966852669235] })', /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:178:28
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:47
   3: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:36
   4: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:200
   5: std::panicking::default_hook
             at src/libstd/panicking.rs:211
   6: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
   7: std::panicking::begin_panic
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:411
   8: quickcheck::tester::QuickCheck<G>::quickcheck
             at /home/avi/Documents/cloned-repos/nalgebra/<::std::macros::panic macros>:3
   9: quickcheck::tester::quickcheck
             at /home/avi/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.9.0/src/tester.rs:196
  10: lib::linalg::cholesky::cholesky_solve_static
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:13
  11: lib::linalg::cholesky::cholesky_solve_static::{{closure}}
             at /home/avi/Documents/cloned-repos/nalgebra/<::quickcheck::quickcheck macros>:11
  12: core::ops::function::FnOnce::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ops/function.rs:235
  13: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787
  14: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  15: std::panicking::try
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:275
  16: std::panic::catch_unwind
             at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:394
  17: test::run_test::run_test_inner::{{closure}}
             at src/libtest/lib.rs:1408
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

failures:
    linalg::cholesky::cholesky_solve_static

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 22 filtered out

Hi! Yeah, we have had this intermittent failure for a while now. When this happens I usually just re-run the CI.
I think this is caused by some rare cases of input matrices that are particularly badly conditioned. And because those inputs are randomly generated, we don't always meet them in a CI run.

I took the data of the matrices in the stack traces, shaped them as 4x4 matrices and passed them to numpy.linalg.cond, and they have condition numbers 74145.04525837081 and 45368.508318242159. np.linalg.cholesky also says they're not positive definite, which may also be relevant.
Does the test failure indicate something wrong with the implementation, or should quickcheck be pruning ill-conditioned matrices beyond some threshold?


Add support for indent blankline version 3

Thank you so much for porting over night owl! I was excited to see that y'all have support for indent blankline, but I noticed that it didn't work with version three of the plugin. This PR should fix that!
One thing I don't know is what y'all wanted the context scope to look like. I've attached a screen shot below — let me know if any of the colors need updating!
Screenshot:

Two notes:

This is the same as my previous PR, but with signed commits
The screen shot is from my WIP lazy config! That is they I have the indent_char_active hex code hard coded in the IblScope highlight.

@jdsprink91 thanks so much for your contribution! I had yet to migrate to v3 so I used this opportunity to do so and ensure IblIndent, IblScope, and IblWhitespace all look right.

@all-contributors please add @jdsprink91 for code


can't show file icon

env:
   OS: window 10
   atom:1.7.2

it look like:

Regards.

Restarting Atom hasn't helped?

Restart Atom. Does this still happen?

Restarting Atom hasn't helped.

Open the inspector tools and select one of the square-shaped icons in the tree view. Then navigate to the bottom-right panel titled "Rendered Fonts". It should look like this:

Can you also tell me what other packages you have installed/enabled at the moment?
Has this just happened recently?

about font render

the other packages I have installed.

I install the file-icons package by downlown the ZIP package from github. I am a newer to this package,

Uh, no no no, that's not how you do it. You need to install packages through Atom. You need to remove those folders, close Atom, and restart it. Then do the following steps:

@shikelong I'm closing this for now; if you need any further assistance with installing Atom packages, please consult the official documentation. Thank you.

Thank you.


get_top_fans() --WSError: Invalid Method - No method with that name in this package

WSError                                   Traceback (most recent call last)
<ipython-input-48-f7e9f7e9b311> in <module>()
----> 1 top_tracks[0][0].get_top_fans()

D:\Study\Python\Anaconda2\lib\site-packages\pylast\__init__.pyc in get_top_fans(self, limit, cacheable)
   1440         """
   1441
-> 1442         doc = self._request(self.ws_prefix + '.getTopFans', cacheable)
   1443
   1444         seq = []

D:\Study\Python\Anaconda2\lib\site-packages\pylast\__init__.pyc in _request(self, method_name, cacheable, params)
   1394             params = self._get_params()
   1395
-> 1396         return _Request(self.network, method_name, params).execute(cacheable)
   1397
   1398     def _get_params(self):

D:\Study\Python\Anaconda2\lib\site-packages\pylast\__init__.pyc in execute(self, cacheable)
   1220             response = self._get_cached_response()
   1221         else:
-> 1222             response = self._download_response()
   1223
   1224         return minidom.parseString(_string(response).replace(

D:\Study\Python\Anaconda2\lib\site-packages\pylast\__init__.pyc in _download_response(self)
   1211         response_text = XML_ILLEGAL.sub("?", response_text)
   1212
-> 1213         self._check_response_for_errors(response_text)
   1214         return response_text
   1215

D:\Study\Python\Anaconda2\lib\site-packages\pylast\__init__.pyc in _check_response_for_errors(self, response)
   1240             status = e.getAttribute('code')
   1241             details = e.firstChild.data.strip()
-> 1242             raise WSError(self.network, status, details)
   1243
   1244

WSError: Invalid Method - No method with that name in this package

Thanks for the report. Unfortunately Last.fm redesigned ("reimagined") their website in August 2015 and also broke their API. They've been slowly adding things back, but there still remains lots of broken stuff. They've also removed a lot from their API docs page, and we don't know if they're coming back.
pylast's Track. get_top_fans  calls Last.fm's track. getTopFans:
https://github.com/pylast/pylast/blob/develop/pylast/__init__.py#L1442
They removed it from their docs at http://www.last.fm/api sometime after January 2016:
https://web.archive.org/web/20160113041418/http://www.last.fm/api
https://web.archive.org/web/20151226015136/http://www.last.fm/api/show/track.getTopFans
Please report this to Last.fm:
https://getsatisfaction.com/lastfm/categories/lastfm_api
Here's another for reference:
https://getsatisfaction.com/lastfm/topics/user-getneighbours-invalid-method-no-method-with-that-name-in-this-package

Thanks.Is there any method to get the users?

If it's not on http://www.last.fm/api/ then it's not here.
Your other options would be to scrape the Last.fm website directly using something like Beautiful Soup.

It's been long enough and Last.fm still haven't fixed it, so this will be removed in the next pylast release.


Cannot assign static lease to eth0 when in default profile

Required information

Distribution: bionic
Distribution version: 18.04.1
The output of "lxc info" or if that fails:

Kernel version: 4.15.0-34-generic
LXC version:
LXD version: 3.0.1-0ubuntu1~18.04.1
Storage backend in use: directory

Issue description
assigning static lease to eth0 when this interface is present in default profile (i didn't try with custom profiles) generates this error
Error: The device doesn't exist
interesting is that lxc config show test1 doesn't show eth0 in devices but with --expanded flag it shows it in devices
Steps to reproduce

install lxd
lxc launch ubuntu:xenial test1
lxc config device set test1 eth0 ipv4.address <IP_ADDRESS>

lxc config device set test1 eth0 ipv4.address <IP_ADDRESS>                 [135/1857]

Error: The device doesn't exist

lxc list
+------+---------+---------------------+-----------------------------------------------+------------+-----------+
| NAME |  STATE  |        IPV4         |                     IPV6                      |    TYPE    | SNAPSHOTS |
+------+---------+---------------------+-----------------------------------------------+------------+-----------+
| test1 | RUNNING | <IP_ADDRESS> (eth0) | fd42:930a:da25:4c7b:216:3eff:fe97:6992 (eth0) | PERSISTENT | 0         |
+------+---------+---------------------+-----------------------------------------------+------------+-----------+

lxc info test1
Name: test1
Remote: unix://
Architecture: x86_64
Created: 2018/10/04 21:58 UTC
Status: Running
Type: persistent
Profiles: default
Pid: 19444
Ips:
  eth0: inet    <IP_ADDRESS>    veth4P0II0
  eth0: inet6   fd42:930a:da25:4c7b:216:3eff:fe97:6992  veth4P0II0
  eth0: inet6   fe80::216:3eff:fe97:6992        veth4P0II0
  lo:   inet    <IP_ADDRESS>
  lo:   inet6   ::1
Resources:
  Processes: 9
  CPU usage:
    CPU usage (in seconds): 0
  Memory usage:
    Memory (current): 25.63MB
    Memory (peak): 30.08MB
  Network usage:
    lo:
      Bytes received: 0B
      Bytes sent: 0B
      Packets received: 0
      Packets sent: 0
    eth0:
      Bytes received: 4.37kB
      Bytes sent: 2.06kB
      Packets received: 37
      Packets sent: 16

lxc config show test1 --expanded
architecture: x86_64
config:
  image.architecture: amd64
  image.build: "20181004_07:42"
  image.description: Ubuntu xenial amd64 (20181004_07:42)
  image.distribution: ubuntu
  image.name: ubuntu-xenial-amd64-default-20181004_07:42
  image.os: ubuntu
  image.release: xenial
  image.serial: "20181004_07:42"
  image.variant: default
  volatile.base_image: 950e32336b6551a7cc619bbc318d97bf64ebc26be4e8daa971539a1b0e616f0d
  volatile.eth0.hwaddr: 00:16:3e:97:69:92
  volatile.eth0.name: eth0
  volatile.idmap.base: "0"
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.power: RUNNING
devices:
  eth0:
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

Information to attach

[ ] Any relevant kernel output (dmesg)
[ ] Container log (lxc info NAME --show-log)
[ ] Container configuration (lxc config show NAME --expanded)
[ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
[ ] Output of the client with --debug
[ ] Output of the daemon with --debug (alternatively output of lxc monitor while reproducing the issue)

That's perfectly normal, lxc config device interacts with devices on the container, if it's inherited from a profile, it's not in the container's configuration.
To copy a device from the profile into the container specific config and override a config key, you can use lxc config device override.
At which point the device will show up in lxc config show and the container will have its own distinct version of that device.


README.md: add 0.17.0 links

Changes

/cc @sbwsg @afrittoli @pritidesai
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[ ] Commit messages follow commit message best practices
[ ] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
/kind misc

/release-note-non

/release-note-none

/lgtm

/retest

/lgtm


Implementation on Razor Pages

How to implement the package on Razor Pages using localhost as "Site" of RecaptchaSettings?

Google does not exactly support localhost, however you can add localhost (unadvised for security reasons) to your white list in your site keys domains list. Better yet if your testing you can use the official test keys from google.
Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
These are designed for localhost use and do not require domain matching but does contain a red error message at all times about them being test keys.


Refactored permission check for REST API viewsets.

Please have a first look but do not merge. If this way is ok, I can implement it for every viewset we have.
This  pull request contains also some clean up.

I line this way. Is it possible in this way, that projector_permissions is only called, when the user has not the regular permissions for the view?
Please rebase on top of master to fix travis

ok. Rebase and merge

Sorry, this is not ready. I will ping this when it's done.

@ostcar All done (with massive changes): Ready for review.

All done.

ok. Rebase and merge


Solution: 02_Ten/04_loss_..., the last part with  tf.nn.sparse_softmax_cross_entropy_with_logits

I'm not quite understand how this function work, but in my computer. Do the following changes can make code works.Otherwise, errors are given.
Tensorflow 1.0.0
sparse_xentropy = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=unscaled_logits,labels= sparse_target_dist)
print(sess.run(sparse_xentropy))

It should be fixed now.
Needless to say the upgrade to TF v 1+ has been pretty harsh across the board.
Thanks for this notice.  Let me know if you have any more problems!


GPC-371: Use service domain

This change has the following effects:

Change cognito user pool admin client permitted callback url to the service.gov.uk version
Change SPRINGDOC_SWAGGER_UI_OAUTH2_REDIRECT_URL env var to service.gov.uk version
Change len lambdas to point at service.gov.uk domain
Change gro lambdas to point as service.gov.uk domain

Does this have any negative effect on DWP? Can you still auth through the auto generated cognito urls?


Add Route 53 based DNS failover to a configurable status page

Route 53 Health Checks and DNS Failover could provide improved usability for end users during deployments or actual outages by switching to a status page automatically (see the introductory post Route 53 Health Checks, DNS Failover, and CloudWatch for a high level overview).
This has been used successfully elsewhere already and should be comparatively easy to integrate when using Amazon Route 53 already (as is the case in the scenario driving this project).

Given this might not be the case though, it should be optional, i.e. the respective aspects should be isolated in a separate stack template (resp. integrated in the existing r53-ci-cname.template) included by the composite one as usual.

Closed as Won't Fix due to project being retired to the CityIndex Attic.


math: escaped dollar at end of inline math

Description
MWE:
$x = \$$

Gitea render:

The issue does not occur with bracket math \(...\).
Gitea Version
1.22.0+dev-326-gf65977df3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
https://try.gitea.io/
Database
None

Dup of #27618.


Incorrect source map generation with compile on save and outFile in VS2017

BUG (I think)
Is this the right place for a Visual Studio project issue?  This behavior does not occur with a tsconfig.json, only with VS project properties set to compile the TypeScript.
TypeScript Version etc:
Visual Studio 2017 Community Edition (15.2, 26430.16), TypeScript <IP_ADDRESS> (in HELP/About in VS), Win 10.
Code
No code needed: problem occurs with empty ts file.
Steps to reproduce:

Create a new empty ASP.NET Web Application (.Net framework) project.  I created one in c:\test with 'Create directory for solution' unchecked.
Add a TypeScript file.  I added the default file1.ts.
Go to project properties, TypeScript Build, check 'Combine JavaScript output into file:' and make it 'bundle.js'.  Change 'Module system' to AMD or None (or it won't build).
Build Solution.  It should succeed.
Show All Files for the project in Solution Explorer.  It should show bundle.js.map.  Open this.  It correctly shows an empty sourceRoot and "file1.ts" in sources.
Now open file1.ts and save it (click the floppy disk icon).  Compile on save is on, so it should regenerate bundle.js.map.
Look in bundle.js.map.  sourceRoot is still empty, now sources has some weird path.

In my case sources has a path of "../../../../../../test/WebApplication1/file1.ts".
Expected behavior:
Source shows 'file1.ts' in example above.
Actual behavior:
Source shows "../../../../../../test/WebApplication1/file1.ts" with a sourceRoot of "".  There is no path 6 levels deep in the project.
Workaround
Using a tsconfig.json with the same settings correctly creates the source map.  Setting a mapRoot of '.' in the VS project properties also seems to fix the problem.

I believe this has been fixed; please let me know if you're still seeing the issue. Thanks!


An extractor error has occurred

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.01.08
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--list-format', '--verbose', 'https://www.viu.com/ott/ph/en-us/vod/318142/True-Beauty', '--no-cache-dir']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.01.08
[debug] Lazy loading extractors enabled
[debug] Python version 3.8.0 (CPython) - Linux-3.10.65-gd1ee5ec-armv7l-with-libc
[debug] exe versions: libffmpeg.bin.so 4.2.1, libffprobe.bin.so 4.2.1
[debug] Proxy map: {}
ERROR: An extractor error has occurred. (caused by KeyError('data')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/extractor/viu.py", line 226, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'
Traceback (most recent call last):
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/extractor/viu.py", line 226, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/YoutubeDL.py", line 803, in wrapper
    return func(self, *args, **kwargs)
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/YoutubeDL.py", line 824, in __extract_info
    ie_result = ie.extract(url)
  File "/data/data/com.yausername.youtubedl_android_example/no_backup/youtubedl-android/youtube-dl/youtube_dl/extractor/common.py", line 545, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('data')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I don't know if the problem is the site or the youtube-dl.... Maybe you can obtain the video if there is a built-in account created on YouTube-dl... If nothing works, then maybe the problem is the site... It always saying "Sorry error occurs"

why duplicate

why duplicate

@dstftw I'm sorry for asking but could you please give me the Issue number related on this issue?

@dstftw I'm sorry for asking but could you please give me the Issue number related on this issue?


Prepare UI images for v0.1.0 release

Docker images use ARM64 architecture. I was able to run the images on my Windows machine, as they are lightweight and the emulation seemed to work OK


Include an example of using middleware with the ExpressReceiver

Summary
This PR adds an example of using middleware in web requests with the ExpressReceiver to the custom routes documentation.
Notes

As always, very open to any suggestions, changes, removals, or additions.
Any help with the translations would also be very appreciated!

Requirements

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.

@seratch @WilliamBergamin Appreciate the reviews, thank you! 🙌


Updated readme

Fixed installation section - plus getting the hang of github!
I'll start looking at adding ADLDS now.

I'm not the owner of this project, just another participant, but nice work!

Rather than re-creating all the functions with the ADLDS noun prefix, I think we could simply add a -server parameter that would default to the local domain on port 389, but would allow someone to specify an ADLDS instance as well.

OK, that's fine - this was only a first stab at getting the method right.
I'll make the necessary changes soon, plus setup the "new" attribute scripts for ADLDS.
Will you reject the pull request? My first time using github, so not that au fait with how this is handled.. :)

That would be great. I'll go ahead and reject this one and look for a new one when you get around to it. Thanks a bunch for your help!


Can't play same sound with different clones

Expected behavior
2 of the same sound should play at once.
Actual behavior
Both sounds just stop playing, and any other clones with the same sound will not play that sound at all.
Steps to reproduce
Create 2 clones with "Play sound until done", with the same sound in a forever loop.
Operating system and browser
Linux (PopOS) Chromium
Video
https://user-images.githubusercontent.com/68913917/213871081-ca1f906b-49fd-44f3-99f9-b727cc507434.mp4
And this is what  the clones do

This seems like something that would make sense in an extension, especially since you seem to already be using extensions anyways
https://github.com/TurboWarp/extensions/issues/163


Database connection doesn't work on c9.io

First server wasn't working as it runs for local setup, i passed that error with running server on c9.io port and ip:
ecrire server -p $PORT -b $IP
I have created the database and granted permission to user name and password specified however i got postgresql hstore control not found error and could not complete the setup.
If you can give it a try on c9.io and let me know how you handle the problem i would be glad.

I solve the problem with updating postgresql and using 'ubuntu' as a username which is default admin user for postgresql in c9.io and everything is working now.


x11 Flutter Engine Linux embedder dep

There should not be an X11 dependency for Flutter Engine Linux embedder build.  I want to implement my own shell, and not have X11 dependency.
gclient sync --revision flutter-1.18-candidate.5 -j 8
./flutter/tools/gn --runtime-mode debug --embedder-for-target --full-dart-sdk --enable-fontconfig --target-os linux --linux-cpu arm --arm-float-abi hard --target-triple arm-linux-gnueabihf --target-sysroot /media/joel/SolidState/rpi/rpi0w/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot --target-toolchain /media/joel/SolidState/LLVM8.0
Command: python /media/joel/SolidState/engine/src/build/config/linux/pkg-config.py -s /media/joel/SolidState/rpi/rpi0w/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot -a arm --system_libdir lib x11
I think if --embedder-for-target is passed, no shell should be included.

--disable-desktop-embeddings should do what you want.
I don't know what --embedder-for-target does, so I'm not sure if there should be an interaction between those flags. Unfortunately the list of arguments has grown organically, and most of them aren't documented, so it's pretty hard to reason about it at this point.

gn: error: unrecognized arguments: --disable-desktop-embeddings

This is what I see
./flutter/tools/gn --runtime-mode debug --embedder-for-target --full-dart-sdk --enable-fontconfig --target-os linux --linux-cpu arm --arm-float-abi hard --target-triple arm-linux-gnueabihf --target-sysroot /media/joel/SolidState/rpi/rpi0w/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot --target-toolchain /media/joel/SolidState/LLVM8.0 --disable-desktop-embeddings
usage: gn [-h] [--unoptimized]
          [--runtime-mode {debug,profile,release,jit_release}] [--interpreter]
          [--dart-debug] [--full-dart-debug]
          [--target-os {android,ios,linux,fuchsia}] [--android]
          [--android-cpu {arm,x64,x86,arm64}] [--ios] [--ios-cpu {arm,arm64}]
          [--simulator] [--fuchsia] [--linux-cpu {x64,x86,arm64,arm}]
          [--fuchsia-cpu {x64,arm64}] [--arm-float-abi {hard,soft,softfp}]
          [--goma] [--no-goma] [--lto] [--no-lto] [--clang] [--no-clang]
          [--clang-static-analyzer] [--no-clang-static-analyzer]
          [--target-sysroot TARGET_SYSROOT]
          [--target-toolchain TARGET_TOOLCHAIN]
          [--target-triple TARGET_TRIPLE]
          [--operator-new-alignment OPERATOR_NEW_ALIGNMENT] [--enable-vulkan]
          [--enable-fontconfig] [--enable-skshaper]
          [--enable-vulkan-validation-layers] [--embedder-for-target]
          [--coverage] [--out-dir OUT_DIR] [--full-dart-sdk]
          [--no-full-dart-sdk] [--ide IDE] [--build-glfw-shell] [--bitcode]
          [--stripped] [--no-stripped] [--asan] [--lsan] [--msan] [--tsan]
          [--ubsan]
gn: error: unrecognized arguments: --disable-desktop-embeddings

It landed a couple of weeks age (engine hash e6a2534b63ac22d27981920de355789e268d43f0); I'm not sure what the date for flutter-1.18-candidate.5 is.

flutter-1.18-candidate.5 is beb8a7ec48f6b980a778d19eeda613635c3897c9
The flag works when I pull the right folder!  Thanks

kronos\EGL\eglplatform.h is referencing x11.  Why not depend on headers from the target sysroot?
| FAILED: obj/flutter/shell/platform/linux/flutter_linux.fl_renderer.o | /media/joel/SolidState/rpi/rpi3/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/flutter-engine/git-r0/git/src/buildtools/linux-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/linux/flutter_linux.fl_renderer.o.d --target=armv7-unknown-linux-gnueabihf --sysroot /media/joel/SolidState/rpi/rpi3/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot -DFLUTTER_LINUX_COMPILATION -DUSE_OPENSSL=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DSK_GL -DSK_ENABLE_DUMP_GPU -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_CODEC_DECODES_PNG -DSK_ENCODE_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_WEBP -DSK_HAS_WUFFS_LIBRARY -DFLUTTER_API_SYMBOL_PREFIX=Embedder -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/libcxxabi/include -I../../third_party/khronos -I../../gpu -I../.. -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -march=armv7-a -mfloat-abi=hard -mtune=generic-armv7-a -mthumb -fPIC -pipe -pthread -fcolor-diagnostics -mfpu=neon -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-non-c-typedef-for-linkage -Wno-deprecated-copy -Wno-range-loop-construct -fvisibility=hidden --sysroot=/media/joel/SolidState/rpi/rpi3/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot -Wstring-conversion -Wnewline-eof -O0 -g2 -DMESA_EGL_NO_X11_HEADERS -isystem../../../../recipe-sysroot/usr/include/gtk-3.0 -isystem../../../../recipe-sysroot/usr/include/gio-unix-2.0 -isystem../../../../recipe-sysroot/usr/include/pango-1.0 -isystem../../../../recipe-sysroot/usr/include/fribidi -isystem../../../../recipe-sysroot/usr/include/harfbuzz -isystem../../../../recipe-sysroot/usr/include/atk-1.0 -isystem../../../../recipe-sysroot/usr/include/cairo -isystem../../../../recipe-sysroot/usr/include/pixman-1 -isystem../../../../recipe-sysroot/usr/include/uuid -isystem../../../../recipe-sysroot/usr/include/freetype2 -isystem../../../../recipe-sysroot/usr/include/libdrm -isystem../../../../recipe-sysroot/usr/include/libpng16 -isystem../../../../recipe-sysroot/usr/include/gdk-pixbuf-2.0 -isystem../../../../recipe-sysroot/usr/include/glib-2.0 -isystem../../../../recipe-sysroot/usr/lib/glib-2.0/include -DMESA_EGL_NO_X11_HEADERS -isystem../../../../recipe-sysroot/usr/include/libdrm -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fno-exceptions -c ../../flutter/shell/platform/linux/fl_renderer.cc -o obj/flutter/shell/platform/linux/flutter_linux.fl_renderer.o | In file included from ../../flutter/shell/platform/linux/fl_renderer.cc:5: | In file included from ../../flutter/shell/platform/linux/fl_renderer.h:8: | In file included from ../../third_party/khronos/EGL/egl.h:39: | ../../third_party/khronos/EGL/eglplatform.h:105:10: fatal error: 'X11/Xlib.h' file not found | #include <X11/Xlib.h> |          ^~~~~~~~~~~~

okay closing this again.  I didn't have --disable-desktop-embeddings.


Remove

Sometimes you may need to remove some records from a table. This can be done through an additional optional filter removed.

The scope of the project is to be append-only and immutable after insertion. Technically we could support pop without much effort, but random removals is out of scope and even popping is not something I am inclined to support due to it leaking implementation details.
Optional filters are already possible.
On the query result you'll have a method:
EmployeeInMemDBQueryResult::filter<F>(&self, predicate: F) -> Option<#EmployeeInMemDBQueryResult> where F: Fn(&#name) -> bool

It return Some(_) EmployeeInMemDBQueryResult with the same reference data, but containing (and owning) only the indexes for which the linked row matches according to the given Fn predicate.
This is documented in https://github.com/plabayo/venndb?tab=readme-ov-file#generated-code-summary-method-api
Does that work for you? Otherwise I might either misunderstand you, so please do elaborate, or perhaps this project is not what you were looking for. Looking forward to your response nad thank you for your interest.

Does that work for you?

Yes. However, it would be more convenient to use something like:
#[derive(Debug, venndb::VennDB)]
#[venndb(removable_via = id)]
pub struct Table {
    #[venndb(key)]
    pub id: i64,
    // ....
}

using HashSet, or
#[derive(Debug, venndb::VennDB)]
#[venndb(removable)]
pub struct Table {
    // ....
}

using BitVec
I think it can be done without mutable access via atomic bitset.

Feel free to play with the idea in a branch and make a draft PR for it. It does intrigue me. We can have a quick feedback loop and work together in a capacity you see fit.
I'm ok with it being a breaking change and have it as a new release (e.g. 0.5), but of course let's not break just to break, so do try to fit it as much as possible within the original (current) implementation, unless there are good reasons not to. And perhaps first try to get a quick PoC working in the codebase and we can iterate on this first, prior to adding documentation, plenty of tests etc...

The reason I was currently supporting filtering is because sometimes you might want to (temporarely) not want certain rows (e.g. because they are disabled for some time). It's for that purpose that I currently use the ::filter method already available. I do get however that it's not the most convenient, but it does cover these things.
Removing of data is tbh not in the scope of this project. But now that we talk about it. It seems to me more like you want to provide support for atomic mutations of bit proporties (foo: bool). So if we can make that work and if that's indeed your intent, then sure, I am all for that.

@lain-dono feel free to get the ball rolling just by showing anon-macro isolated example of the code you have in mind. It doesn't have to be macro or integrated code, should it make it easier for you to show how more or less you see this. It can be enough to kick the ball towards this becoming a reality.

I did a little research and found out there's an easier way.
If you use SlotMap instead of Vec, you get the ability to use remove at the cost of an extra 4 bytes per item.
About AtomicBitSet. I haven't found a complete implementation. hibitset can't grow. uniset does not implement test/get. Note that any implementation can have either set or clear as atomic. Not both. And of course you can't have filter and filter_not at the same time preserving atomic.

Slotmap can remove, sure. But it requires mut access, which is out of scope.
What's the usecase where you need something to be removed? As you might be trying to go for the wrong tool here.
Removal will require mut access, meaning it will need to be locked if used in a concurrent environment, for which it is designed.
An atomic bitset for mutating bits is something I might be open too, and I have even thought about an implementation based on a Vec that can probably work. But dunno, haven't found the need for it atm and neither does there seem to be an implementation available to use.
If you do find one that can be used and has the requirements we need (&self only), then we can start evaluating it for sure.

By the way itself not a big issue that an implementation cannot grow. Can be worked around by creating a new one double in size when we need more capacity and copy old data over.

That said, that mutation in this story does not end with the bit , as that would make the property in the row itself out of sync. So mutation involves the affected row(s) AND the instance the vec itself.
Which will require something like a mutex which is not desired.
Unless of course we create the rows on the fly when getting them. That might enable such mutations (overwrites).
Feel free to come up with a POC, even if just theoretical on paper here. Happy to help where desired as well.