Removed obsolete picotorrent version 0.20.0

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

Multiple versions don't make sense for that package. According to #1749, one PR per manifest version to remove obsolete version.

Microsoft Reviewers: Open in CodeFlow

@rmarquis Hey Remy, why do you want to remove the old ones?  They seem fine.

@KevinLaMS I usually update manifest files rather than adding new ones, but I couldn't do it as part of #3644 because of "more than one manifest file modified".
I'm actually not sure what is the policy for updating versus adding new versions: I couldn't find anything documented - apart from some open ticket that aim to speed up automatic review for manifest updates. I understand having multiple versions in some case might be beneficial, but I don't really see the point for this specific package, as a small, young project that is often updated. Only minor version published so far, a stable 1.0.0 hasn't been reached.
Anyway, feel free to disregard the PR that removes these old manifest versions. I'd be also be glad if you could point me toward the proper workflow (adding vs updating) :)

This manifest is still OK as the previous version has a unique ID.  I am going to close this PR.


CdsButton and CdsControlAction not receiving keydown events in tests

Describe the bug
onKeyDown is never fired during tests for components CdsControlAction and CdsButton. I first noticed this in CdsControlAction and reproduced it in CdsButton while making the repro, so maybe it's an issue with the base button?
How to reproduce
Here's a repo that reproduces the problem: https://github.com/dturcotte/cds-control-action-keydown
(stackblitz/codesandbox are problematic for test only repros)
The test output is in the README for your convenience
Steps to reproduce the behavior:

Clone repo
yarn install
yarn test
See the CdsButton and CdsControlAction tests fail, and the <button> test passes

Expected behavior
onKeyDown should work in tests
Versions
Clarity project:

[x] Clarity Core
[ ] Clarity Angular/UI

Clarity version:

[ ] v5.x
[x] v6.x

Framework:

[ ] Angular
[x] React
[ ] Vue
[ ] Other:

Framework version:
React 18
Device:

Type: [e.g. MacBook] MacBook
OS: [e.g. iOS] Big Sur
Browser [e.g. chrome, safari] Chrome
Version [e.g. 22] 110.0.5481.177

Additional notes

(Definitely still a thing re: flag:stale label)


JupyterHub default profile options should only be "CPU" and "L4 GPU"

Our guides mostly use L4 GPUs now, the default profiles in the JupyterHub configuration should reflect this. Currently they allow use of T4s, A100 and TPUs.

Currently when you are in the screen to select a profile configuration for a jupyter server, it only allow to select L4 GPU.


Every single channel is returing the 18+ (Player 01) channel

This has to be one of the most bizzare issues I've ever faced with any program, literally took me by shock. DL is truly playing some 4D chess here
Here is the excerpt of my log
2024-10-15 02:24:44,469-INFO:internal_proxy Serving 142 https://main.stopcoolrea19.shop/ddy1/premium501/2024/10/15/02/24/05-10427.js (10.427)s (1892048B) ttw:1.07s<PHONE_NUMBER>01720
2024-10-15 02:24:45,659-INFO:internal_proxy Serving 142 https://zet2.bestcachecdn55.shop/ddy1/premium501/2024/10/15/02/24/15-10427.css (10.427)s (2186832B) ttw:1.03s<PHONE_NUMBER>01720
2024-10-15 02:24:46,813-INFO:internal_proxy Serving 142 https://zet2.bestcachecdn223.shop/ddy1/premium501/2024/10/15/02/24/25-10427.ico (10.427)s (1801808B) ttw:1.00s<PHONE_NUMBER>01720
2024-10-15 02:24:47,968-INFO:internal_proxy Serving 142 https://zet2.hawwkc116.ru.com/ddy1/premium501/2024/10/15/02/24/36-10428.js (10.428)s (1813840B) ttw:1.00s<PHONE_NUMBER>01720
2024-10-15 02:24:49,125-INFO:internal_proxy Serving 142 https://zet.stopcoolrea44.shop/ddy1/premium501/2024/10/15/02/24/46-10427.js (10.427)s (1949200B) ttw:1.00s<PHONE_NUMBER>01720
2024-10-15 02:24:53,280-INFO:internal_proxy Connection dropped by end device [Errno 32] Broken pipe 142
2024-10-15 02:24:58,223-NOTICE:web_tuner Provider Connection Closed, ch_id=648<PHONE_NUMBER>01720
2024-10-15 02:26:38,025-NOTICE:web_tuner DaddyLive:default Tuning to channel 648
2024-10-15 02:26:39,525-NOTICE:plugin_channels DaddyLive: 648 will use 1280x720 resolution at 4000000bps
2024-10-15 02:26:42,108-INFO:internal_proxy Serving 158 https://zet2.bestcachecdn14.shop/ddy1/premium501/2024/10/15/02/26/10-10427.css (10.427)s (2484624B) ttw:1.07s<PHONE_NUMBER>62584
2024-10-15 02:26:43,277-INFO:internal_proxy Serving 158 https://zet2.bestcachecdn291.shop/ddy1/premium501/2024/10/15/02/26/20-10427.html (10.427)s (2481616B) ttw:1.00s<PHONE_NUMBER>62584
2024-10-15 02:26:44,448-INFO:internal_proxy Serving 158 https://zet2.stopcoolrea30.shop/ddy1/premium501/2024/10/15/02/26/31-10427.css (10.427)s (2529744B) ttw:1.00s<PHONE_NUMBER>62584
2024-10-15 02:26:45,609-INFO:internal_proxy Serving 158 https://zet.videonode97.ru.com/ddy1/premium501/2024/10/15/02/26/41-10428.css (10.428)s (2111632B) ttw:1.00s<PHONE_NUMBER>62584
2024-10-15 02:26:46,769-INFO:internal_proxy Serving 158 https://main.morsicc51.ru.com/ddy1/premium501/2024/10/15/02/26/51-10427.txt (10.427)s (2018384B) ttw:1.00s<PHONE_NUMBER>62584
2024-10-15 02:26:59,966-INFO:internal_proxy Connection dropped by end device [Errno 32] Broken pipe 158

Channel 648 should be Boomerang but is returning 18+ (Player 01)
Fortunately my parents weren't anywhere near the TV when this happened

Upon further testing this doesn't seem to be happening with my local install of Cabernet, but is happening on my VPS.

Now its not loading at all. All m3u8s are 403'ing. They are blocking datacenter IPs so we may need to start proxying data

2024-10-19 05:15:42,750-NOTICE:web_tuner DaddyLive:default Tuning to channel 302
2024-10-19 05:15:44,358-NOTICE:plugin_channels DaddyLive: 302 will use 1280x720 resolution at 4000000bps
2024-10-19 05:15:44,524-INFO:decorators HTTPError in function M3U8Process.get_m3u8_data(), retrying 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none
2024-10-19 05:15:45,552-INFO:decorators HTTPError in function M3U8Process.get_m3u8_data(), retrying 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none
2024-10-19 05:15:46,553-NOTICE:decorators Multiple HTTP Errors, unable to get url data, skipping M3U8Process.get_m3u8_data() 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none
2024-10-19 05:15:53,794-INFO:decorators HTTPError in function M3U8Process.get_m3u8_data(), retrying 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none
2024-10-19 05:15:54,824-INFO:decorators HTTPError in function M3U8Process.get_m3u8_data(), retrying 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none
2024-10-19 05:15:55,825-NOTICE:decorators Multiple HTTP Errors, unable to get url data, skipping M3U8Process.get_m3u8_data() 101 403 Client Error: Forbidden for url: https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none https://ddy1.iosplayer.ru/tshttp/ddy1/premium302/mono.m3u8?token=none


Please upgrade your tutorial according to new React Native

Is this a bug report?
(No but its difficult to learn in new version their is lot of change in semantic as wel as syntax ..eg >. Navigator , function call etc.)

Yes
Have you read the Bugs section of the Contributing to React Native Guide?
(yes)

Environment

react-native -v:0.46.0
node -v:6.11.0
npm -v: 5.0.4
yarn --version (if you use Yarn):0.24.5

Then, specify:

Target Platform (e.g. iOS, Android):
Development Operating System (e.g. macOS Sierra, Windows 10):
Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant):

Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)
Actual Behavior

(Write what happened. Add screenshots!)
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Hello Mr hramos may I know why you close my bug.. Thanks


The server is not running.

I've followed the steps in the Readme file to start the application, but I got the following:
========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================

To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).

After that, I've removed the node_modules folder and run yarn install and then I was able to run the server. Could you please check this?

Is this repo using Yarn or just NPM?


文件版许可证与readme中的内容不符

readme中指定了许可证为NC版本，但附带的LICENSE是CC0，请问代码是以哪个为准？

Hi, sorry for the confusion caused. Please go with the NonCommercial (NC) license. If there is any commercial purpose, please let me know. Thank you!


Support at modifier

Fixes https://github.com/thanos-community/promql-engine/issues/72
This pr adds support for at modifier.
The current code is a bit messy tbh but I don't know if there are better ways to improve it. We don't support sub query and matrix selector without function so some code have not been added to make this feature complete.

Thanks, I'll take a look at this more closely tomorrow. I want to make sure we are not simply importing tech debt from the old engine.

Thanks!


Create a single header for Search

Not sure if I caught all references, but not sure of the way to detect that.

Looks like timeouts and a number of warnings on the Cuda 9 build

retest this please

Codecov Report

Merging #544 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #544      +/-   ##
==========================================
- Coverage   96.04%   96.04%   -0.01%
==========================================
  Files         131      131
  Lines        9528     9527       -1
==========================================
- Hits         9151     9150       -1
  Misses        377      377

Impacted Files
Coverage Δ

...s/Meshfree/src/DTK_NearestNeighborOperator_def.hpp
100% <ø> (ø)
:arrow_up:

...oudProblemGenerator/ExodusProblemGenerator_def.hpp
100% <ø> (ø)
:arrow_up:

...s/Meshfree/test/tstMultivariatePolynomialBasis.cpp
100% <ø> (ø)
:arrow_up:

...ages/Discretization/src/DTK_Interpolation_decl.hpp
67.74% <ø> (ø)
:arrow_up:

...eshfree/src/DTK_MovingLeastSquaresOperator_def.hpp
100% <ø> (ø)
:arrow_up:

...ree/src/DTK_DetailsNearestNeighborOperatorImpl.hpp
100% <ø> (ø)
:arrow_up:

...ackages/Discretization/src/DTK_PointSearch_def.hpp
99.26% <ø> (ø)
:arrow_up:

.../src/DTK_DetailsMovingLeastSquaresOperatorImpl.hpp
100% <ø> (ø)
:arrow_up:

...ckages/Discretization/src/DTK_PointSearch_decl.hpp
100% <ø> (ø)
:arrow_up:

...es/Search/src/details/DTK_DetailsTreeTraversal.hpp
97.16% <0%> (-0.03%)
:arrow_down:

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 7d77b12...32891d8. Read the comment docs.

I added the extra non-Details headers.


Added version number of edge

added version number for edge. coming from  app information in the preferences.

The app version number is useless for Edge. You want the rendering engine version number that's in the User-Agent header or navigator.userAgent

hope this one is fine now.


when I train the model from duke to market, it takes too much time and not finish yet after two days.

My execute command is :
CUDA_VISIBLE_DEVICES=0,1 python2 selftraining.py  --src_dataset dukemtmc\
	        --tgt_dataset market1501\
		--resume dukemtmc_trained.pth.tar\
		--data_dir data  \
		--logs_dir log

PS: my gpu situation:
 Sat Oct 27 13:02:49 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.24                 Driver Version: 396.24                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1080    Off  | 00000000:02:00.0  On |                  N/A |
| 56%   68C    P2    59W / 200W |   5510MiB /  8119MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 108...  Off  | 00000000:81:00.0 Off |                  N/A |
| 61%   85C    P2    85W / 250W |   5435MiB / 11178MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       905      C   python2                                     5003MiB |
|    0      1774      G   /usr/lib/xorg/Xorg                           310MiB |
|    0      4274      G   compiz                                       172MiB |
|    0      4427      G   ...webkit2gtk-3.0/libexec/WebKitWebProcess    13MiB |
|    1       905      C   python2                                     5423MiB |

@zhuhongyue I trained on two Titan X, and finished in about 12 hours for 30 iterations. The GPU-Util of your posted info is  0%, but the  Memory-Usage is normal. I guess that there is some problem with your dataloader, maybe because of the io of your disc. You may try watch -n 0.5 nvidia-smi to see whether the GPU-Util always stays around  0%.

@LcDog
Thank you for your reply!
I noticed the issue about GPU-Util which remain 0% most of time.  Thus, considering your suggestion,  I check my disk state and find nothing strange. I guess the problem is related to the dataloader.
So I run your program step by step and I notice that:
     source_features, _ = extract_features(model, src_extfeat_loader, print_freq=args.print_freq)
     target_features, _ = extract_features(model, tgt_extfeat_loader, print_freq=args.print_freq)
     rerank_dist = re_ranking(source_features, target_features, lambda_value=args.lambda_value)

these three code cost around 30 miniutes  every iteration and I suppose it means only these data preprocessing cost about 15 hours in 30 iterations.
I am wondering how much time these code cost in your environment?
In addition, because of the limitation of gpu resources, I cannot test how much time the train part cost every iteration while another gpu program is running ,

@zhuhongyue extract_features is done on GPU, but re_ranking is written by numpy, thus the process is running on CPU. Our CPU is Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz and re_ranking cost less than 5mins. Besides, extract_features copy CUDA variables to CPU memory, and this process also heavily depends on the hardware...
You can set lambda_value=0 for a quiker version. Though the results maybe more unstable with this setting.


sample_decode.exe - Linker unresolved external Symbols "MFXQueryAdaptersDecode" in Function ""protected: enum mfxStatus __cdecl CDecodingPipeline::GetImpl()

when trying to build sample_decoder.exe in VS2017
LNK2019	unresolved external Symbol "MFXQueryAdaptersDecode" in Function ""protected: enum mfxStatus __cdecl CDecodingPipeline::GetImpl()
LNK2019	unresolved external Symbol "MFXQueryAdaptersNumber" in Function ""protected: enum mfxStatus __cdecl CDecodingPipeline::GetImpl()

Hi @dp4,
I think, that you build sample_decode from solution with same name, and sample tried to link with dispatcher, which built with old API (already installed on your system).
Can you please try to build sample_decode from AllBuild.sln? Such you will also build dispatcher with required API.


sample-lnd.conf dir update

Documentation fix:
On macOS the default directory seems to be ~/Library/Application Support/Lnd instead of ~/Library/Application Support/Lnd/data
Requested change implemented are just updating documentation.

The documentation is correct as is. ~/Library/Application Support/Lnd is the default directory for all of lnd's files (data, logs, etc.), but ~/Library/Application Support/Lnd/data is the default data directory.


Publish different transpilation targets to different npm packages

In order to have nicer import paths, without dist and module/language directories, we should publish the different outputs (CJS, ES6, TS) as different npm packages: rxjs for CJS, rxjs-es6 for ES6, rxjs-ts for TypeScript. It would also be nice to drop the @reactivex scoping in the process, since that causes issues for users with older npm versions.
Before:
import {map} from '@reactivex/rxjs/dist/cjs/operators/map';

After (though #750 will move the operators even further up the export tree)
import {map} from 'rxjs/operators/map';

This is a great idea. It would solve some of the other issues we've seen with people on older versions of npm as well.

So I think rxjs, rxjs-es6 and rxjs-ts would do, where rxjs is the CJS version of the library.

Awesome, unless someone has already started work on this (@robwormald), I'll get to work once I wrap up another issue I'm working on in angular.

i can do this if you like @jeffbcross

i dont think we need the TS distro either - just distribute the .d.ts files alongside the ES6 and CJS output (like we do already)

Perhaps it should be rxjs-es ... because some day it will be es7 or es2025 or whatever. But hopefully by then the module wars will be over.

... then again that could imply es3 haha. I give up. What makes sense?

SystemJS et al refer to it as esm - https://github.com/systemjs/systemjs/blob/master/docs/module-formats.md

What about rxjs-node, rxjs and rxjs-ts for CJS, ES6+, and TS respectively?

@trxcllnt: I discussed this on Slack with @jeffbcross, and he brought up a good point on the rxjs-node front, which is that CJS isn't really node specific. Many developers use CJS for their client-side bundling processes.

I also like the idea of CJS being the default, non-suffixed (rxjs) distribution, since it is in the current native format of node modules (CJS).

Closed by @robwormald in 185abdfb24065d014263ebabfb0af5d5fda3fb42
(Issues have been opened to fix bugs introduced in the new process)


Version mismatch between version.ts and package.json in safe-apps-sdk

There is a version mismatch in the safe-apps-sdk package. The version.ts file defines the SDK version as 9.0.0, while package.json lists it as 9.1.0. This inconsistency can lead to confusion regarding the correct SDK version.
Link to the files:
version.ts
package.json

Thank you for your report.
Solved by #608


Bootloop problem with Xperia 5ii

Hi, this is not newflasher isue, Mark 2 devices faces rollback protection, more info about it read this https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84077083 . Further questions please ask in forum.

Originally posted by @munjeni in https://github.com/newflasher/newflasher/issues/39#issuecomment-745279730
Sorry for disturbing, but that issue is closed and I am not sure whether my reply could be seen in previous issue.
It seems that it isn’t a rollback problem because I have use the newer version firmware. Since my original version is 58.0.A.28.17 and the version I have flashed is 58.0.A.28.60.
I have tried flashing older version to generate a rollback problem, and found that the fault appearance is quite different.
If there is a rollback problem, the device will shows 'Your device is corrupt' instead of bootloops
My english is not very good. My apologize for not clearly describing the problem in the previous issue.

This is not newflasher isue! We can speak on forum, not here. You should try switch to slot A and try reflash. Also read page 72 https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/page-72 there is some info we have discovered recently and I will not repeat it again just read it and try it byself.
Bootloop related to rollback protection:
The gist of the feature is that it’ll prevent your phone from booting if it detects that the device was downgraded to an earlier, now unapproved version of software that has been deemed insecure because of a security vulnerability. A slightly more technical explanation is that the VBMeta data structure, which holds the hash for the boot partition and hashtree metadatas for system and vendor partitions, uses a rollback index to reject images that have an older rollback index.
Thats part of this https://www.xda-developers.com/android-pie-rollback-protection/?_ga=2.172732451.1057106755.1607978449-524393242.1607978449
Don't open another issue since github isues is for real isues only, and since this is not newflasher isue you should continue in forum if you need to ask something

One who reported https://github.com/newflasher/newflasher/issues/37 issue had boot loop instead of device corupted, and we have discovered (after getting bootloader boot log) that it is rollback protection isue (or maybe fw isue I don't know), but bootloader log clearly states about problem:
load_and_verify_vbmeta:657: ERROR: vbmeta_a: Image rollback index is less than the stored rollback index.
You can open thread on xda xperia 5 II forum and ask somebody. Newflsher apsolutly have nothing to do with it. Even no single error or warning trought newflasher, so no newflasher isue.


Update xpath to create Custom runtime

Thank you for this.
Please, always state how/whether the changes were tested so that reviewer is assured. Ideal situation is a CI check info. :slightly_smiling_face:

Job: rhods/job/rhods-smoke/438


From address is not part of transaction hash clalculation

Component
Anvil
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
No response
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
Description
Sender's address is not part of the transaction hash calculation which causes Transaction already imported error when sending the same transaction from 2 different accounts in manual mine mode.
From looking at the source code looks like the from address is not used when calculating the transaction hash.
This causes hash collision when 2 accounts with the same nonce send the same transaction.
Example

When running the code above on Anvil (anvil -f https://eth-mainnet.g.alchemy.com/v2/xxxxx-xxxxxxxxx-xxx_xxxxxx_xx --no-mining --fork-block-number 16038646) we get the following error: code":-32003,"message":"transaction already imported"}
When running the same code on similarly configured Hardhat the execution is succesful.

+1

Dug deeper here, and I think it rooted from the way we sign using the impersonate cheat code:

All impersonated txs are using the same signature as far as I can tell

ah yes, since we use a constant signature, the same tx from different impersonated accounts will result in the same hash -.-
I'm not sure what would be the right solution here. Perhaps update the hash with the address?

reopening per #3809

okay in #3808 I probably found the issue that caused the regression
will reapply asap.

Hey @mattsse thanks for the quick turnaround and continuous status updates.
Is there any estimation on when the fix will be re-applied?

okay in #3808 I probably found the issue that caused the regression
will reapply asap.

Hi, I still encounter this "transaction already imported" error. Has the fix been re-applied?


Change C2DMessage permission specification?

The C2DMessage permission added has the following format:
<permission android:name="com.microsoftopentechnologies.intellij.permission.C2D_MESSAGE" android:protectionLevel="signature”/>

While not technically incorrect, I’m not sure if this would cause issues if multiple apps are installed on a device with the same permission (if someone didn’t think to change it).  I’d recommend changing this to pull the package name of the application you’re adding the activity to so it would be in this format:
<permission android:name=“<my-apps-package>.permission.C2D_MESSAGE" android:protectionLevel="signature”/>

This would also require changing the uses-permission and the intent-filter’s category.

Fixed on Jan 20th (8cfbd72)
And merged on Jan 28th (#113)

This issue is fixed and functionality is working as expected in the latest build.


Bugfix/merge on chunks fix

This Pull Request:

Integrates a bug fix for the error where on large documents we were not merging large documents post chunking correctly.
I.e. the pages were not being merged.

I would like to see a test that explicitly unit tests the page split / merge functionality :+1:


Allow provision of stream options

Currently this library does not allow the user to provide any options, thereby defaulting to readable-stream's stream options. This makes it impossible to process any stream that matches more than 16 files. Allowing users to provide an option makes it possible to override this behaviour.

This makes it impossible to process any stream that matches more than 16 files.

Sounds like you're not correctly draining the stream. And the current lack of options forces you to fix the actual problem instead of just hiding it by increasing the buffer size.

I don't know much about streams, but I've done a great amount of researched and can't quite figure out how to drain the stream in my use case.

You could pipe it to https://github.com/thlorenz/dev-null or use get-stream.


About training data.

Hello, nice job! Here I have some questions.
Which dataset did you use for training? It doesn't seem to be mentioned in the paper. I noticed that the provided model weights have different weights for different test data. Is this training based on a split from the Jung et al and Kligler et al datasets, or if not, which dataset was used for training, and why do different test sets have their own model weights?

Thank you for your inquiry. The datasets are individually trained and tested, with the training/testing split available in the netdisk. We have separately trained and tested all models on both Jung and Kligler datasets.


[WIP] PVS Studio fixes #3

Some fixes from PVS Studio static analyzer.
Product page: https://www.viva64.com/en/pvs-studio/
How to use for free: https://www.viva64.com/en/b/0600/

If I exclude

the  !*!*!!!*! commit that does not make me happy,
the emplace_back commits I'm not sure to completely understand so I let this to others to check…

that looks good to me.

https://stackoverflow.com/questions/23717151/why-emplace-back-is-faster-than-push-back#23717223 answer has a good explanation on push_back vs emplace_back difference.
Foo x; Bar y; Zip z;

v.push_back(T(x, y, z));  // make temporary, push it back
v.emplace_back(x, y, z);  // no temporary, directly construct T(x, y, z) in place

https://stackoverflow.com/questions/23717151/why-emplace-back-is-faster-than-push-back#23717223 answer has a good explanation on push_back vs emplace_back difference.

OKOK

Can you squash the commits that reverts, fix or extend something that was introduced in another commit of this PR? Like the copy/ref/copy commits, and the commit adding a comment around a deleted affectation? After that, LGTM.

Can you squash the commits that revert, fix or extend something that was introduced in another commit of this PR? Like the copy/ref/copy commits, and the commit adding a comment around a deleted affectation? After that, LGTM.

Ok, i've added last found potential problems. Going to cleanup commits as you suggested.

Great. I've reviewed the new ones.
This C++ thing is beyond my knowledge:
https://github.com/DaemonEngine/Daemon/pull/318/commits/3d4d91b9e527a49c0ea1c952ac9b93851c896298
@slipher can you look at this one?
Otherwise, everything else LGTM.

This C++ thing is beyond my knowledge:
3d4d91b (leak] Ensure no mem leak occurs on emplace failure)

It's fine. It doesn't matter for us since we always exit the program on an allocation failure (there's an operator new override that calls Sys::Error), but the change is harmless, and can help to avoid noise next time running the analyzer.

Thanks, then everything looks OK on my end.


canto + new website, different search results

if I enter rpa12 in canto Iget 3 results, but on pombase2 only 1 result

Oh dear.  That looks like a Canto bug.  Chado has rpa12 as SPCC1259.03 which isn't one of the systematic IDs that Canto suggests.

And in Chado rpa12 isn't a synonym for any other genes.

And in Chado rpa12 isn't a synonym for any other genes.

I've sort-of worked this one out.  rpa12 isn't a synonym for any other genes but rpa1 is.  It looks like the autocomplete got a bit behind your keystrokes (which shouldn't happen) so even though "rpa12" was being shown it was still showing the search results for "rpa1".
So Chado is OK, which is a relief but there is a problem with the autocomplete.
Which browser were you using?  I've tried Chrome and Firefox and I can't reproduce it.

firefox. I think I may have used the"add a gene link" from when you are prompted for the interacting protein for a genetic interaction (either that or I was doing it from the genotype management section)

firefox

Sorry, I've tried to reproduce this bug but failed.  Has it happened more than once?

I don't know

It might have been a temporary network problem.  I think I'll close this since we can't reproduce it.  If you see this again please re-open the ticket.


fix(curriculum): check for extra spaces in image src

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #56255

This PR includes changes unrelated to the referenced issue. Please remove those changes from the PR.

I have removed the unrelated commit. Please check and verify my PR.

the tests get checked in order from top to bottom. If the first one of these two passes, the second one also passes, and if the first one fails, the second one could pass but it's not going to be shown.
The third image should have a `src` attribute set to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg`.
```js
const catsImg = document.querySelectorAll('figure > img')[1];
assert(
  catsImg &&
    catsImg.getAttribute('src').toLowerCase() === 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg'
);
```

The `src` attribute must not contain any extra spaces before or after the link. Remove the extra spaces.

```js
const catsImg = document.querySelectorAll('figure > img')[1];
assert(
  catsImg &&
    catsImg.getAttribute('src').trim() === 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg'
);
```

I think the first one needs to have trim() (and also toLowerCase() and the second one only toLowerCase().
So the first test checks if the url matches ignoring trailing and leading spaces, and the second instead check for spaces

Got it! So by doing that the first test ensures that the link matches even though there may be spaces, while the second test ensures that the link does not have those extra spaces.
So the suggested change seems right to include trim() at first.

Thank you for the PR

Thank you for guiding me so patiently!!

The linked challenge has been fixed thankfully. However as I did suspect at the time and properly confirmed just now , steps 8 and 22 have the exact same problem. It's a little unfair of me not to link and name them in the issue, so I'm giving a choice here.
You can include the changes in this PR where I can  review it; or leave it off here and we'll merge this PR then resolve the other two steps at a later time.

I'll just leave it here, u can merger!!


maximum recursion depth exceeded &  'ascii' codec can't decode byte 0x9c in position

Anyone know how to solve this?
it was all fine until login:
2016-08-08 01:32:04,676 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-08 01:32:40,328 [       cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-08 01:32:40,355 [       cli] [INFO] Configuration initialized
2016-08-08 01:32:40,358 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more logrmation:
2016-08-08 01:32:40,361 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-08 01:32:40,536 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-08 01:32:41,055 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-08 01:32:43,036 [PokemonGoBot] [INFO] [location_found] Location found: monas, jakarta (-6.1761317, 106.822864, 0.0)
2016-08-08 01:32:43,040 [PokemonGoBot] [INFO] [position_update] Now at (-6.1761317, 106.822864, 0)
2016-08-08 01:32:43,043 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-08 01:32:50,763 [PokemonGoBot] [INFO] [login_successful] Login successful.
But Then:
RuntimeError: maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 127, in main
report_summary(bot)
File "pokecli.py", line 136, in report_summary
metrics.capture_stats()
File "C:\Users\Arya\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats
response_dict = request.call()
File "C:\Users\Arya\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call
result = self._call()
File "C:\Users\Arya\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in _call
return PGoApiRequest.call(self)
File "c:\users\arya\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 210, in call
request.activate_signature(lib_path)
File "c:\users\arya\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.py", line 85, in activate_signature
self.signature_lib = ctypes.cdll.LoadLibrary(lib_path)
File "C:\Python27\lib\ctypes_init.py", line 443, in LoadLibrary
return self.dlltype(name)
File "C:\Python27\lib\ctypes_init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
2016-08-08 01:28:11,617 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)

Read other issues

if you pulled from master branch then modify your init file: Error 126
change the line in init.py, located in .\PokemonGo-Bot\pokemongo_bot
to
self.api.activate_signature("./encrypt64bit.dll")
or
self.api.activate_signature("./encrypt.dll")
Make sure to download the correct encrypt.dll file for your windows OS version (32 or 64 bit)
for mac
self.api.activate_signature("./encrypt.so")


i18n(pt-BR): update astro-components.mdx

Description (required)
Adding missing block on lines 320-323; other minor changes as well. This could be two separate PRs, but I got the feeling that we usually go over the entirety of the file whenever it's changed, so I thought it'd be OK to do it here. Glad to split this one if need be.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

pt-br
basics/astro-components.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


docs(tracer): snippets split and linting

Issue number: #1009
Summary
Changes

Please provide a summary of what's being changed

This PR splits code snippets into a top-level examples folder. Formatting and linting (make lint) were adjusted to include examples folder. We also introduce cfn-lint within pre-commit hooks to selectively lint changed infra files within examples folder.
Feedback needed
There are two potential conventions here when it comes to supporting one or multiple infrastructure providers in the future.
In both conventions, we keep source code in examples/<utility>/src/ to future proof the ability to bring additional infrastructure like CDK, Terraform, etc. All file names in src should match the feature available in the docs to ease discovery.

Approach A uses infra snippet besides src, for example examples/tracer/template.yaml.

Pros: No code duplication, just enough info to understand what's required and copy/paste
Cons: For a future CDK, it'd need to define dependencies etc, unless we simply use a single file with infra definition

examples
└── tracer
    ├── src
    │   └── capture_lambda_handler.py
    └── template.yaml

Approach B could use a separate folder for each potential infra provider, for example sam, cdk

Pros: Future proof additional providers and their required boilerplate like CDK metadata, dependencies, etc.
Cons: Maintenance time in keeping dependencies and whatnot unrelated to the example itself

examples
└── tracer
    ├── cdk
    │   └── all_cdk_project_files, dependencies, etc.
    ├── sam
    │   └── template.yaml
    ├── src
    │   └── capture_lambda_handler.py
    └── terraform

Caveat
In either approaches, we need to ensure Lambda Powertools dependency/layer is used. In the case of Layers, we will need to upgrade the Layer version within examples as part of each release - @am29d your input is crucial here on the best way forward. Until Alex completes his Layer pipeline refactoring, we can build a workflow action to find/replace Layer ARN Version.
Another caveat is that cfn-lint dropped support for 3.6. Used official cfn-lint GitHub Actions as a workaround.
User experience

Please share what the user experience looks like before and after this change

Example of adding an invalid SAM template for a code snippet

Code quality example using our set of rules

Checklist
If your change doesn't seem to apply, please leave them unchecked.

[ ] Meet tenets criteria
[ ] I have performed a self-review of my this change
[ ] Changes are tested
[ ] Changes are documented
[ ] PR title follows conventional commit semantics

Is this a breaking change?
RFC issue number:
Checklist:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

View rendered docs/core/tracer.md

feedback received from @sthulb ==> Approach B. Tested with SAM and SAM CLI for parent folder (..src/) and worked just fine. I'll carry on in an hour or so


inherit parent div size, dynamic update of subtext & barcolor without redraw

Hi,
There is a bit of a suggested update.
Parent div size: I needed for the knob to be drawn according to CSS size, not the hardcoded size due to the wide range of mobile devices. It's so much easier to detect breakpoints via CSS media and sizing a parent div than detecting every known device and inputing a hard size to ng-knob.
Subtext & barcolor: I've done a tweak to parse whats changed in dynamic options so that elements could be directly updated rather than a complete redraw, this logic could be extended if folk had other attributes they cared about.
Cheers, thanks for an awesome project!

Interestingly, i just noticed this takes the approach that some people were talking about in https://github.com/RadMie/ng-knob/issues/3
It doesn't provide responsive response to window resize, though the logic is there, easily could be copied into the dynamic options and trigger dynamic options on window resize

I have to say. I added onto the list of demo's in the index html, which brought it to 'knobCtrl13' and its Friday 13th here. Also this is pull #42, my favourite number ;)

Hi I'd really be interested in this improvement. Who do I need to bribe for a merge? ;)

Do it yourself if no one answers

Or simply clone mine


Index crash long run for put

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.96%. Comparing base (1a0cef8) to head (9f426ef).
Report is 56 commits behind head on master.

Files with missing lines
Patch %
Lines

src/include/homestore/btree/detail/simple_node.hpp
50.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #537       +/-   ##
===========================================
+ Coverage   56.51%   67.96%   +11.45%
===========================================
  Files         108      109        +1
  Lines       10300    10433      +133
  Branches     1402     1402
===========================================
+ Hits         5821     7091     +1270
+ Misses       3894     2674     -1220
- Partials      585      668       +83

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


Xcode build errors related to OpenFrameworks

Hi there,
First off, this looks like a really fantastic project! I'm looking forward to using it 👍
I followed the instructions in the README for downloading the project and running the ./setup command, but am getting the errors shown in the screen-shot below when running the Xcode project. I'm on OS X 10.11.4 and running Xcode 7.3.

I think this might be related to #178. Basically, we're referencing a particular commit of openFrameworks in our git submodule, but only git cloning the latest commit of openFrameworks in the setup script (because the entire oF repository is huge). Is your ESP/third-party/openFrameworks directory empty? If so, try running "git reset --hard" from that directory, then re-running the setup script from the top-level ESP directory.

Yes, the issue was related with the shallow clone. I have created a new pull request to address this: https://github.com/damellis/ESP/pull/194.
@damellis Can you review and merge it.
@narner You can give it a shot with ./setup minimal.
Meanwhile, there is another pull request to homebrew so that you can install GRT with:
brew install grt

Fun fact, my current working directory for this project is 4.6G. Third party projects are 2.6G.
Bens-MacBook-Pro:smart-sensors benzh$ du -h -d 1
2.0G	./.git
 10M	./Arduino
 84K	./Processing
2.6G	./third-party
 30M	./Xcode
4.6G	.

With minimal installation, it's only around 1G.
Bens-MacBook-Pro:ESP benzh$ du -h -d 1
 57M	./.git
 10M	./Arduino
 84K	./Processing
914M	./third-party
 30M	./Xcode
1011M	.

@nebgnahz Yeah, cutting down the size of the project would definitely be helpful. Plus, I already have the GRT installed elsewhere on my system for an existing project.

@nebgnahz I saw you added the ./setup minimal script. I pulled the most recent changes and gave the script a shot, but still got the same errors that I had originally.

This is probably due to a mistake in the script (see https://github.com/damellis/ESP/blob/master/setup#L27).
I've fixed it but am planning to test it tonight.

The current script should work.

@nebgnahz It looks like the script improved things, but I do still get two errors when I run ./setup minimal:

I saw you posted some new script changes (commit https://github.com/damellis/ESP/commit/1aec2db3fe16bd973d8e6bae85d0e654b405a2ec). That seemed to fix the OF issues, but I have a new error involving the GRT...should I close this issue and open a new one, or would you like me to attach a screenshot here of the GRT error?

I am glad it works. Have to fiddle around with cp and mv on Mac and decided to use tar which seems to work better.
Regarding the GRT error, please open another issue. That would help us tracking down different problems.

Sounds good, I'll close this one and open a new issue.


Run Cluster API stress tests using kubemark

User Story
As a Cluster API maintainer, I would like to use Kubemark for running Cluster API stress test
Detailed Description
As of today, Kubemark can be used for creating lightweight worker nodes, but it still depends on CAPD or other providers using "real infrastructure" for the control plane nodes.
This is a limitation when I try to use Kubemark for running Cluster API stress test, where the number of clusters being managed is a key parameter (as well as the number of machines).
What I'm proposing here is to introduce support for a "KubermarkControlPlane" CRD, which will run a lightweight CP using pods, and a corresponding "KubemarkCluster" CRD providing a load balancer in front of it using Kubernetes services or eventually an ingress.
The goal, is to run CAPI stress tests using a single VM to run the management cluster + prometheus or something to collect metrics about how the system is performing, while using GKE or some other managed Kubernetes service as a backing cluster for running pods for both CP components and kubemark
Anything else you would like to add:
The implementation requires 3 main tasks:

Refactor the current KubemarkCluster into a backing cluster; this is required for two reasons:

To disambiguate from the KubemarkCluster" CRD that will be introduced in the following steps
To ensure this component does not become a bottleneck at scale (it currently creates a client at each reconciliation, and we already saw in Cluster API that this is a problem; it must be refactored by implementing something similar to the cluster tracker in CAPI)

Introduce "KubermarkControlPlane" and "KubemarkCluster" CRDs and corresponding controllers
Wire up everything ensuring it works with cluster class + there is an E2E test for it

A prototype of this work can be found in https://github.com/fabriziopandini/cluster-api-provider-kubemark/tree/kubemark-controlplane
cc @elmiko @killianmuldoon
/kind feature

/assign

i think this sounds really cool and ambitious, thanks for bringing the issue @fabriziopandini

These are notes about great work on CAPI scale testing from @lentzi90
https://github.com/Nordix/metal3-clusterapi-docs/tree/lentzi90/scaling-experiments-v2/metal3-scaling-experiments

i think this is still relevant and i am curious to see it move forward.
/remove-lifecycle stale

i still want to see this happen
/reopen


Remove xdist from requirements and pytest config

Checklist
GitHub

[x] I've given this PR a concise, self-descriptive, and meaningful title
[x] I've linked relevant issues in the PR body
[x] I've applied the relevant labels to this PR
[x] I've assigned a reviewer

PR contents

[x] I've consulted SCT's internal developer documentation to ensure my contribution is in line with any relevant design decisions
[ ] I've added relevant tests for my contribution
[ ] I've updated the relevant documentation for my changes, including argparse descriptions, docstrings, and ReadTheDocs tutorial pages

Description
This PR removes the default usage of pytest-xdist when running the unit tests. See minutes from dev meeting:

Motivation: we have hit some limitations/issues with regards to concurrency issues (https://github.com/pytest-dev/pytest-xdist/issues/271#issuecomment-763402552, https://github.com/neuropoly/spinalcordtoolbox/pull/3152). This complicates the ongoing effort to port CI to github actions (https://github.com/neuropoly/spinalcordtoolbox/pull/3125, https://github.com/neuropoly/spinalcordtoolbox/pull/3152)

Other annoyances such as xdist disabling -s (--capture=no) thus preventing the user from viewing the output of stdout which is confusing for users. (Relevant dev Wiki page about this issue.)

This issue specifically is causing Julien to disable xdist for local testing, for example.

Doesn’t add value in CI since almost all VMs are single-core.

Alternatives:

pytest-parallel (to be evaluated)
Disabled by default config. People who know what they are doing can enable it (or it can be enabled in ci.sh only).
Strategies in https://github.com/neuropoly/spinalcordtoolbox/issues/2674, particularly split tests across jobs; but we also need to consider that each job needs to spend installation time (there is a sweet spot in terms of number of tests per job)

CI time on GH actions: total ~15min; on Travis: ~1hr

Largely dominated by waiting for the macOS VM to boot

In a nutshell: there is not a lot of value added (at the moment) in using xdist and working around the issues mentioned above. Tests can happily run sequentially and it won't make a difference for 99% of the people. People who do care about parallelization can still use xdist locally.

TODO update wiki

So, by removing pytest-xdist, we wouldn't need the locking fix from #3152, right? (cc'ing @kousu)

So, by removing pytest-xdist, we wouldn't need the locking fix from #3152, right? (cc'ing @kousu)

Indeed. @kousu may still contribute the fix upstream if he wants.

I've updated the Wiki here: https://github.com/neuropoly/spinalcordtoolbox/wiki/Contributing:-Testing-your-contribution#a-note-about-parallelization

I've updated the Wiki here: https://github.com/neuropoly/spinalcordtoolbox/wiki/Contributing:-Testing-your-contribution#a-note-about-parallelization

Thanks a lot!


remove publish func defter

What's the reasoning behind the change? Performance?

Avoid using defter, improve performance


De/encoding go brrr

I reworked some de/encoding stuff in another project and arrived at ~10x faster 0b/0x decoding, with minor changes. The performance boost would probably be smaller in this case, because formatting integers is more complicated than formatting data. Also, the implementation is more generic and takes a dynamic radix.

In short, I observed something along the lines of:

~3.5x faster after using withUTF8(_:)
~2.5x faster after adding a custom UTF8 to UInt8 method

I made a brief attempt at sketching a solution and tripped on the following:

StringProtocol does not have withUTF8(_:)
I would need a UInt(utf8: USRBP) init method

The performance boost would probably be smaller in this case, because formatting integers is more complicated than formatting data. Also, the implementation is more generic and takes a dynamic radix. Also, why does StringProtocol not have withUTF8(_:)?

StringProtocol does not have withUTF8(_:)
String(unsafeUninitializedCapacity:initializingUTF8With:) requires iOS 14.0+.

I played with this for a bit, and here’s what I would rather do: fix #60 such that String(_:radix:uppercase:) becomes usable, then write or wrap a 0b/0x formatter. It's simpler, faster and covers 99% of use cases.  While the following are not exact code translations, I think they are comparable (± prefixing zeros):
Decoding: 3x
UInt256(decoding: text, radix: 16)!
try! [UInt8](text, parser: .hexadecimal()).withUnsafeBytes({ data in UInt256.fromUnsafeMutableBytes({ integer in integer.copyBytes(from: data) }).bigEndian }).

Encoding: 5x
String(encoding: uint256, radix: 16)
uint256.bigEndian.withUnsafeBytes({ String($0, format: .hexadecimal()) })

I suppose the above could even be implemented as a standalone package.

Using a dedicated 0x formatter might end up being something like 20x faster 😅

I'm working on something pretty awesome, can't tell a lie 👀


Allow concatenation with any type of bistrings

The implementation already works this way.

I will give some more time for people to review, but I think we can just merge this for 1.2.1.


Add Maths and Science High School "Prof. Emanuil Ivanov" to the list

The official website is https://pmgkn.com/
The school is located in the city of Kyustendil, Bulgaria.

@RoZvEr Pull request merged. Thank you!


Only 30 jobs available for AECOM on peviitor.ro, whilst 36 on their website

Enviroment: MacBook Pro
URL: https://scrapers.peviitor.ro/src/aecom/index.html
Browser: Chrome
STEPS TO REPRODUCE:

Open url in Chrome browser
Run scraper
Check number of jobs in comparison to the AECOM careers.

Expected results
Should have 36 jobs available in Romania

Actual results
Only have 30

Done! Refacut!


novelty slice strange behaviour at the start

If one watches the UT of MFCC novelty slice, we are missing a first slice at the beginning - even in real-time we are missing it. I wonder if that is to do with the large overlap and filter size but something strange is happening there.

Example code here.
b = Buffer.read(s, FluidFilesPath.new("Tremblay-AaS-SynthTwoVoices-M.wav"))
c = Buffer(s)
FluidBufCompose.process(s,b,destination: c, destStartFrame: 50000)

b.play
c.play

// so we have composed the same thing but with 1 sec of 0 pads

({var input = PlayBuf.ar(1,c); // with b, no slice at start, with c, a slice at start.
	[input, FluidNoveltySlice.ar(input,
			feature: 1,
			kernelSize: 17,
			filterSize: 7,
			threshold: 0.5,
			windowSize: 2048,
			hopSize: 64,
		minSliceLength: 100)]}.plot(2)
)

i think something is wrong in the world of starting processes with strange overlaps and initialisation...

What happens vs what you expect to happen?

with b, no slice at start, with c, a slice at start.

Ah, ok, I sort of see. Doesn't feel necessarily like a bug so much as a consequence of how the algorithm understands the universe: with those settings you've got ~23 frames of :shrug: at the start whilst it establishes its first context, so adding that much padding is going to be pretty significant

I though that we were doing what I hardcoded (aka zero pad the minus time/latency buffer) so we would catch whatever we throw in the start? Note that the buffer version also behaves the same aka misses the start

If you have the same confounded expectation in both streaming and buffer versions then whatever we're doing about padding in the NRT wrapper seems immaterial. The point is that the algorithm might or might not decide that the start of something is especially novel in relation to the material at hand and whatever it has decided counts as normal for the current context. If you add 50k samples of padding then it will have formed a different normality to the half window or whatever it is in the streaming situation.


fix: peer empty parent

Description

Related Issue

Fix peer empty parent.

Motivation and Context

Screenshots (if appropriate):
Types of changes

[x] 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 change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #724 (a4b09cb) into main (d3918ed) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #724      +/-   ##
==========================================
- Coverage   38.56%   38.49%   -0.08%
==========================================
  Files          89       89
  Lines        6978     6978
==========================================
- Hits         2691     2686       -5
- Misses       3905     3910       +5
  Partials      382      382

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
38.49% <ø> (-0.08%)
:arrow_down:

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

Impacted Files
Coverage Δ

client/daemon/peer/peertask_stream.go
54.60% <0.00%> (-1.59%)
:arrow_down:


Make it possible to filter the list of jobs by a time range

It would make it way easier to find a particular job, especially one that is older than a few hours, if one could filter the jobs by a time range.

It'll probably require a change in the API first.


Az eventgrid event-subscription show error - Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.

Describe the bug
According to the documentation, when attempting to use az eventgrid event-subscription show, the
--source-resource-id parameter should be provided as
/subscriptions/{SubID}/resourceGroups/{resourcegroup}/providers/microsoft.storage/storageaccounts/{storage account}

However, doing so returns the following error:-
Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.
To Reproduce
Create an event grid subscription on an azure storage account.
Run the following in az cli in order to return the event grid source resource id, then use that to run the az eventgrid event-subscription show:-
eventtopic=$(az eventgrid event-subscription list --resource-group {your resource group} --query "[?name=='{your event subscription}'].topic" --output tsv)

az eventgrid event-subscription show --name {your event subscription} --source-resource-id $eventtopic

Expected behavior
The json object of the event subscription to be returned.
Environment summary
Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash
azure-cli 2.0.78
Additional context

I'm getting a similar error message although it doesn't let me include the location parameter.
The weird thing is I get the same error when using powershell Get-AzResource or az cli
Create an event grid system topic subscription (in this case for a Blob.Created event in Storage) and run the script below. I've copied the output from the az cli command using --debug (have skipped the middle part of the debug output)
Az CLI:
"azure-cli": "2.38.0",
"azure-cli-core": "2.38.0",
"azure-cli-telemetry": "1.0.6",
Az.Resources:
Version              Name

6.5.2                Az.Resources
Running from powershell in VSCode on Windows 10
Script:
$esubResource = Get-AzResource -ResourceId $id
'resource exists:'
$esubResource.Properties.filter.subjectBeginsWith
'trying to update the event subscription resource:'
$esubResource.Properties.filter.subjectBeginsWith = '/blobServices/default/'
$esubResource | Set-AzResource -Force
'same error if we use Az CLI:'
az resource update --ids $id --set properties.filter.subjectBeginsWith='/blobServices/default/'
'try with debug:'
az resource update --ids $id --set properties.filter.subjectBeginsWith='/blobServices/default/' --debug
Output:
resource exists:
/blobServices/default/containers/uploads/blobs/
trying to update the event subscription resource:
Set-AzResource: C:\Users...
Line |
43 |  $esubResource | Set-AzResource -Force
|                  ~~~~~~~~~~~~~~~~~~~~~
| InvalidRequest : Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper
| HTTPS URL like https://www.example.com. CorrelationId: ...
same error if we use Az CLI:
(InvalidRequest) Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.
Code: InvalidRequest
Message: Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like
https://www.example.com.
try with debug:
cli.knack.cli: Command arguments: ['resource', 'update', '--ids', '/subscriptions/.../resourceGroups/.../providers/Microsoft.EventGrid/systemTopics/.../eventSubscriptions/...', '--set', 'properties.filter.subjectBeginsWith=/blobServices/default/', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
...
...
...
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/.../resourceGroups/.../providers/Microsoft.EventGrid/systemTopics/.../eventSubscriptions/...915eeac66?api-version=2022-06-15'
cli.azure.cli.core.sdk.policies: Request method: 'PUT'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies:     'Content-Length': '1017'
cli.azure.cli.core.sdk.policies:     'Accept': 'application/json'
cli.azure.cli.core.sdk.policies:     'x-ms-client-request-id': '...'
cli.azure.cli.core.sdk.policies:     'CommandName': 'resource update'
cli.azure.cli.core.sdk.policies:     'ParameterSetName': '--ids --set --debug'
cli.azure.cli.core.sdk.policies:     'User-Agent': 'AZURECLI/2.38.0 (MSI) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies:     'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"properties": {"topic": "/subscriptions/.../resourceGroups/.../providers/Microsoft.EventGrid/systemTopics/...", "provisioningState": "Succeeded", "destination": {"properties": {"endpointUrl": null, "endpointBaseUrl": "https://pm...azure.com:4443/triggerevent/BlobEventsTrigger/...", "maxEventsPerBatch": 1, "preferredBatchSizeInKilobytes": 64}, "endpointType": "WebHook"}, "filter": {"subjectBeginsWith": "/blobServices/default/", "subjectEndsWith": "", "includedEventTypes": ["Microsoft.Storage.BlobDeleted"], "advancedFilters": [{"values": ["CopyBlob", "PutBlob", "PutBlockList", "FlushWithClose", "DeleteBlob", "CreateFile", "DeleteFile"], "operatorType": "StringIn",
"key": "data.api"}, {"value": 0.0, "operatorType": "NumberGreaterThan", "key": "data.contentLength"}]}, "labels": null, "eventDeliverySchema": "EventGridSchema", "retryPolicy": {"maxDeliveryAttempts": 30, "eventTimeToLiveInMinutes": 1440}}}
urllib3.connectionpool: https://management.azure.com:443 "PUT /subscriptions/.../resourceGroups/.../providers/Microsoft.EventGrid/systemTopics/.../eventSubscriptions/...?api-version=2022-06-15 HTTP/1.1" 400 198
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies:     'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies:     'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies:     'Content-Length': '198'
cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies:     'Expires': '-1'
cli.azure.cli.core.sdk.policies:     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies:     'x-ms-request-id': ''
cli.azure.cli.core.sdk.policies:     'Server': 'Microsoft-HTTPAPI/2.0'
cli.azure.cli.core.sdk.policies:     'x-ms-ratelimit-remaining-subscription-writes': '1199'
cli.azure.cli.core.sdk.policies:     'x-ms-correlation-request-id': ''
cli.azure.cli.core.sdk.policies:     'x-ms-routing-request-id': 'UKSOUTH:20230317T171212Z:e3fa54ad-7902-43ab-8bd3-3db702f33a59'
cli.azure.cli.core.sdk.policies:     'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies:     'Date': 'Fri, 17 Mar 2023 17:12:12 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"InvalidRequest","message":"Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com."}}
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 240, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 452, in cached_put
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 446, in _put_operation
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 1793, in update_resource
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 1793, in
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 3473, in update
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 73, in wrapper_use_tracer  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2021_04_01/operations/_operations.py", line 9476, in begin_create_or_update_by_id
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2021_04_01/operations/_operations.py", line 9418, in _create_or_update_by_id_initial
azure.core.exceptions.HttpResponseError: (InvalidRequest) Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.
Code: InvalidRequest
Message: Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like
https://www.example.com.
cli.azure.cli.core.azclierror: (InvalidRequest) Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.
Code: InvalidRequest
Message: Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like
https://www.example.com.
az_command_data_logger: (InvalidRequest) Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.
Code: InvalidRequest
Message: Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like
https://www.example.com.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x03E65148>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 3.981 seconds (init: 1.272, invoke: 2.709)
telemetry.save: Save telemetry record of length 3336 in cache


[Shell] Support disable shell window when Zed launched

Check for existing issues

[X] Completed

Describe the feature
I often use Zed just for a text editor,
It  is no need to  show the shell window.
I can do that by myself if it is necessary.
If applicable, add mockups / screenshots to help present your vision of the feature
No response

Similar issue: https://github.com/zed-industries/community/discussions/1386

Zed stores terminal state now, and does not show it by deafult for newly opened files: https://github.com/zed-industries/community/discussions/1386#discussioncomment-6102367


Telegraf 1.18 Release

Telegraf 1.18.0 Release targeted for March 15, 2021

Changelog
Mac/Windows Signing might need docs around it? @pierwill

Plugins:
New Input Plugins

Beat Input Plugin 2 (ravendb) - Contributed by @nferch

CS:GO Input Plugin 1 (csgo) - Contributed by @oofdog

Directory Monitoring Input Plugin 2(directory_monitor) - Contributed by @InfluxData

RavenDB Input Plugin ( ravendb ) - Contributed by @ml054

NFS Input Plugin (nfsclient) - Contributed by @pmoranga  --- not in rc0 but will be in rc1

New Output Plugins

Grafana Loki Output Plugin 1 (loki) - Contributed by @Eraac

Sensu Output Plugin (sensu) - Contributed by @calebhailey

SignalFX Output Plugin ( signalfx) - Contributed by @keitwb

New Aggregator Plugins

Derivative Aggregator Plugin (derivative) - Contributed by @KarstenSchnitter

Quantile Aggregator Plugin (quantile) - Contributed by @srebhan

New Processor Plugins

AWS EC2 Metadata Processor Plugin (aws_ec2) - Contributed by @pmalek-sumo

New Parser Plugins

XML Parser Plugin (xml) - Contributed by @srebhan --- not in rc0 but will be in rc1

Target release date moved to March 17 ☘

Release Announcement doc

Looks like this was closed in https://github.com/influxdata/docs-v2/commit/d170ba3b36f432ee813da3298becf0308b12d595.


Packagist badge cannot handle composer v2-only packages

Are you experiencing an issue with...
shields.io
🐞 Description
Packagist (the PHP dependency management SaaS) deprecated their v1 API some time ago, so new packages are only being added to their v2 API.
The shields site uses v1 of the API, so it is not able to retrieve version numbers for newer packages.
🔗 Link to the badge
New package, not working:
Old package, works fine:
💡 Possible Solution
There are a couple possible options:

update BasePackagistService.fetch() to use the new API and modify transform() accordingly
update PackagistVersion.handle() to fallback to the JSON API

I would think the first would be preferrable, from a future maintenance perspective, so I'll get a PR ready for that tomorrow.

I started diving in already, it looks like the v2 API has some pretty gnarly breaking changes so maybe holding off to have a discussion on the best way forward is better...

If you're interested in working on this, have a look over https://github.com/badges/shields/pull/6508
Nobody has done anything on it for a while and but from memory there was not too much work left to do after the last round of comments to get it landed. Unfortunately the original author stopped responding (tbh it is one of those PRs that seemed simple but turned into a bit of a con of worms).
What's there is probably a pretty decent starting point if you wanted to try and get it over the line.

Logging in this morning, the deprecation warning has been removed from my package and it now shows up via the v1 API (and therefore shields.io badge, see OP) so from an end-user perspective, if newly-created packages just need to wait until the next day to show up, I don't think that's a huge deal, but I can see from a technical perspective why we wouldn't want to be using a deprecated endpoint.

As explained on https://blog.packagist.com/deprecating-composer-1-support/

This means new packages and old unused packages will only be visible to Composer 2 until someone installs them, at which point they will become visible to Composer 1 as well (within 24h as this process happens on a nightly basis).

So, yeah, not that urgent. Just a bit confusing.


Fix testing; render config yaml files as erb templates

Hi @oldmoe , I plan to add the support to render config yaml files as erb templates; but before I do, I needed to fix failing tests 😄

@oldmoe not to state the obvious, but I've added render of config yaml files as erb templates to this PR

Thanks a lot rrevi for this, it should close a couple issues!


AssertionError: Unexpected XLA layout override when adding two from_dlpack arrays

Description
I have a test case that broke somewhere between jax versions 0.4.19 and 0.4.28.  Set JAX_TRACEBACK_FILTERING=off to include these.

/nix/store/wi25jwzkg8jf0ix3y9pvcpl3fqsk37r9-python3.12-jax-0.4.28/lib/python3.12/site-packages/jax/_src/numpy/array_methods.py:265: AssertionError

To reproduce run the test_vit_b16 test in https://github.com/samuela/torch2jax/commit/93ed7065c582393384e958ea96f3ad6221b09626. It was last working on
https://github.com/samuela/torch2jax/commit/bd7bd9c95253c89ffb7a25cc0ff2ccb296f6cfbf. Happy to provide any other info that might be helpful in reproducing.
Potentially related: https://github.com/jax-ml/jax/issues/24680
System info (python version, jaxlib version, accelerator, etc.)
jax:    0.4.28
jaxlib: 0.4.28
numpy:  1.26.4
python: 3.12.7 (main, Oct  1 2024, 02:05:46) [Clang 16.0.6 ]
jax.devices (1 total, 1 local): [CpuDevice(id=0)]
process_count: 1
platform: uname_result(system='Darwin', node='sentient-meatloaf.local', release='24.1.0', version='Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000', machine='arm64')

Thanks for the report! Yes, this is the same issue as https://github.com/jax-ml/jax/issues/24680, and the real issue here is that XLA doesn't generally support layout assignments on CPU (it requires that all arrays be row-major). @ezhulenev is planning on adding support, but we're not sure what the timeline for that will be.
The reason why this shows up with PyTorch and DLPack specifically has to do with the strides that PyTorch reports for tensors where one of the dimensions has size 1. The tl;dr is that it's ambiguous where in the layout these dimensions should show up because you can put them anywhere without changing the striding behavior of the array, and PyTorch always gives them a stride of 1 via DLPack. Our strides-to-layout logic will then always put these dimensions at the end of the layout. https://github.com/openxla/xla/pull/19327 includes a hack which would hide this assertion error (i.e. it would produce a row-major array in this case), but the real problem won't be solved until XLA CPU adds layout support!


What is the proper work flow to get other games supported?

Hi, I am trying to get this work for Taiko nijiiro. Currently the game just calls BngRwInit and BngRwAttach and fails to recognize the emulated card reader. I wonder what is the proper work flow if I want to get Taiko supported?
One thing I noticed is that the version string is Ver 1.6.1 instead of Ver 1.6.0, so probably something has changed

Seems to be working

ooooh, taiko huh?

It seems that the callback is the key, and they might be different for each game

The workflow for other games support is to bring it up to me (rin#3487 on Discord) btw lmao


Two symbols from the wild needing translation to Nemeth braille

Producing a braille translation of Chapters 5-8 of a fork of Active Calculus.  Tracked down almost all bare Unicode bleeding through, but may have missed exactly one instance.  Only two problem symbols (nice!).  A fix for \approx might save the transcriber-editor some pain.  ;-)
\approx U+2248 "ALMOST EQUAL TO" (Nemeth "double tilde"?), 408 times
\Box    U+25FB "WHITE MEDIUM SQUARE", (used as a fill-in), 16 times
Pinging interested parties (who do not need to do anything yet): @mitchkeller @nwakefield2

U+2248 is in the latest version. U+25FB still missing.


api: add tax behavior

This is currently on hold. Stripe has a bug in their Schedule API that prevents tier from adding a specific payment method to the schedule, rendering this PR useless unless tier meddles with the customer's global default payment method just in time and before creating or updating a schedule. It also means each phase will pickup whatever the default card is. This isn't a reasonable default, but one we may need to accept until Stripe fixes this issue, which may not happen for some time.
Ref: https://discord.com/channels/841573134531821608/1083877108159352842/1083913040124182648


Delete weird IMG_4198 3.jpg file

I found this file while researching for the assets repo.

@silentworks added this for some reason :)

LMAO


feat: subscriptions-api for review

Codecov Report

Merging #90 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #90   +/-   ##
=======================================
  Coverage   99.65%   99.65%
=======================================
  Files          19       19
  Lines         880      880
  Branches       56       56
=======================================
  Hits          877      877
  Misses          2        2
  Partials        1        1

Impacted Files
Coverage Δ

src/sections/subscriptions.ts
100.00% <ø> (ø)

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 cd9346e...e9e8bd0. Read the comment docs.

Nevermind this PR, I was thinking it was going to hold all the history like the old PR


Daemon fails to start if it cannot write/access download directory

Steps to Reproduce:

Stop daemon
Change the permissions on the download directory to 000 (e.g. chmod 000 ~/Downloads)
Start daemon

Error Trace:
2017-09-22 18:18:58,200 INFO     lbrynet.daemon.Daemon:471: Loading databases
2017-09-22 18:18:58,205 ERROR    lbrynet.daemon.DaemonControl:100: Failed to start lbrynet-daemon
Traceback (most recent call last):
  File "site-packages/lbrynet/daemon/DaemonControl.py", line 97, in start_server_and_listen
  File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
  File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
  File "site-packages/lbrynet/daemon/DaemonServer.py", line 53, in start
  File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
  File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
  File "site-packages/lbrynet/daemon/Daemon.py", line 251, in setup
  File "site-packages/twisted/python/threadpool.py", line 246, in inContext
  File "site-packages/twisted/python/threadpool.py", line 262, in <lambda>
  File "site-packages/twisted/python/context.py", line 118, in callWithContext
  File "site-packages/twisted/python/context.py", line 81, in callWithContext
  File "site-packages/lbrynet/daemon/Daemon.py", line 473, in _setup_data_directory
OSError: [Errno 13] Permission denied: '/home/miroslav/Videos/lbry'
2017-09-22 18:18:58,210 INFO     lbrynet.daemon.DaemonServer:57: Stopping the reactor

Copied from original issue: lbryio/lbry-app#495

Can someone confirm that this is still an issue? Currently cannot reproduce

This doesn't seem to be an issue anymore. On
{
"build": "dev",
"installation_id": "6QapiUUrkTfiks6jiQnecv8pXixxm1LncbgGB32x6nXpQ1aipjikPboVJM4UxsXruR",
"lbrynet_version": "0.16.1-4-g4a04018",
"lbryschema_version": "0.0.11rc1",
"lbryum_version": "3.1.7rc5",
"os_release": "4.10.0-35-generic",
"os_system": "Linux",
"platform": "Linux-4.10.0-35-generic-x86_64-with-Ubuntu-16.04-xenial",
"processor": "x86_64",
"python_version": "2.7.12"
}
the daemon rebuilds the file:
2017-09-22 09:15:34,572 INFO     lbrynet.daemon.Daemon:1513: Already have lbry file but missing file in /home/miroslav/Videos/lbry, rebuilding it
This issue should be closed?

It is still an issue in version 16.0.
The app tries to create the download directory specified in the settings.
If there is no write permission in that directory for the current user,
then the Daemon shuts down.
On 22 September 2017 at 08:20, Miroslav Kovar<EMAIL_ADDRESS>wrote:

This doesn't seem to be an issue anymore. On
{
"build": "dev",
"installation_id": "6QapiUUrkTfiks6jiQnecv8pXixxm1
LncbgGB32x6nXpQ1aipjikPboVJM4UxsXruR",
"lbrynet_version": "0.16.1-4-g4a04018",
"lbryschema_version": "0.0.11rc1",
"lbryum_version": "3.1.7rc5",
"os_release": "4.10.0-35-generic",
"os_system": "Linux",
"platform": "Linux-4.10.0-35-generic-x86_64-with-Ubuntu-16.04-xenial",
"processor": "x86_64",
"python_version": "2.7.12"
}
the daemon rebuilds the file:
2017-09-22 09:15:34,572 INFO lbrynet.daemon.Daemon:1513: Already have lbry
file but missing file in /home/miroslav/Videos/lbry, rebuilding it
This issue should be closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lbryio/lbry/issues/877#issuecomment-331370982, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AbNyIaoJFCIL8J-4qPQOt8DHG_JAvtS7ks5sk1_PgaJpZM4PF6I4
.

@mirgee I think you were referencing a rebuild of a particular LBRY download that's deleted, where-as this issue pertains to the entire downloads directory. So let's say the whole directory moved or is inaccessible (shared drive that's disconnected)

@alexliebowitz - were you going to take a stab at this?

@tzarebczan The app indeed tries to recreate the whole directory; when it has no permissions (or is inaccessible) the daemon crashes:
2017-09-22 18:18:58,200 INFO     lbrynet.daemon.Daemon:471: Loading databases
2017-09-22 18:18:58,205 ERROR    lbrynet.daemon.DaemonControl:100: Failed to start lbrynet-daemon
Traceback (most recent call last):
File "site-packages/lbrynet/daemon/DaemonControl.py", line 97, in start_server_and_listen
File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
File "site-packages/lbrynet/daemon/DaemonServer.py", line 53, in start
File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
File "site-packages/lbrynet/daemon/Daemon.py", line 251, in setup
File "site-packages/twisted/python/threadpool.py", line 246, in inContext
File "site-packages/twisted/python/threadpool.py", line 262, in
File "site-packages/twisted/python/context.py", line 118, in callWithContext
File "site-packages/twisted/python/context.py", line 81, in callWithContext
File "site-packages/lbrynet/daemon/Daemon.py", line 473, in _setup_data_directory
OSError: [Errno 13] Permission denied: '/home/miroslav/Videos/lbry'
2017-09-22 18:18:58,210 INFO     lbrynet.daemon.DaemonServer:57: Stopping the reactor

Going to reopen, a user recently ran into this on his Mac. He had the download directory set in daemon_settings.yml
2018-04-28 15:22:52,755 INFO     lbrynet.daemon.Daemon:274: Platform: {"lbrynet_version": "0.19.1", "platform": "Darwin-17.5.0-x86_64-i386-64bit", "os_system": "Darwin", "python_version": "2.7.13", "os_release": "17.5.0", "lbryum_version": "3.2.0", "ip": "Could not determine IP", "lbryschema_version": "0.0.15", "processor": "i386", "build": "release"}
2018-04-28 15:22:52,767 INFO     lbrynet.daemon.Daemon:478: Loading databases
2018-04-28 15:22:52,772 ERROR    lbrynet.daemon.DaemonControl:113: Failed to start lbrynet-daemon
Traceback (most recent call last):
  File "site-packages/lbrynet/daemon/DaemonControl.py", line 110, in start_server_and_listen
  File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
  File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
  File "site-packages/lbrynet/daemon/DaemonServer.py", line 51, in start
  File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks
  File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
  File "site-packages/lbrynet/daemon/Daemon.py", line 239, in setup
  File "site-packages/twisted/python/threadpool.py", line 246, in inContext
  File "site-packages/twisted/python/threadpool.py", line 262, in <lambda>
  File "site-packages/twisted/python/context.py", line 118, in callWithContext
  File "site-packages/twisted/python/context.py", line 81, in callWithContext
  File "site-packages/lbrynet/daemon/Daemon.py", line 480, in _setup_data_directory
OSError: [Errno 2] No such file or directory: '/Volumes/CRYP-1/Crypto-currencies/Wallets'

This is still an issue, especially on Mac where the daemon fails to start entirely (won't even write to log) if the download directory is not available. I think the best thing to do is allow startup and just write to the default download directory for the session. It would be nice to alert the users that this changed/was unavailable...what if I unplugged my external, started LBRY, and then re-plugged it back in later - I should still be able to use it on a subsequent startup.

Had a few people fall victim to this over the last couple of weeks.

daemon starts with inaccessible download directory (also, it will try to create it if it can)

A user ran into this recently so I don't think it's fixed. Can we please add a test too if we fix it?

closing in favor of #3270


Using Series map in a loop overwrites previous results

What happened:
I want to get the value of a nested dictionary column in a dataframe. I try to boil down the use case as much as possible in the MWE. In reality it is more complicated. Unfortunately in every iteration of the loop the results of the previous loops get overwritten. This does not happen, when simply assigning a value.
What you expected to happen:
Each column having a different/correct value.
Minimal Complete Verifiable Example:
import json
import pandas as pd
import dask.dataframe as dd

data = {
        "name": "A", "age": 25,  "nested": {"key1": "value1", "key2": "value2"}
    }

with open("data.json", "w") as file:
    json.dump(data, file)
ddf = dd.read_json("data.json")
keys = ["key1", "key2"]

for key in keys:
    ddf[key] = ddf["nested"].map(lambda dict_: dict_.get(key), meta=pd.Series(name=key, dtype=str))
    ddf[key + "-str"] = key
ddf.compute()

Anything else we need to know?:
Feel free to ask.
Environment:

Dask version: 2.20.0
Python version: 3.6.9
Operating System: Ubuntu 18.04.4
Install method: pip

Okay, I just solved the problem in my usecase with functools.partial. I will leave this open for further discussions, but feel free to close it.

Glad you figured it out!

@JulianWgs -- I think you just ran in to https://docs.python-guide.org/writing/gotchas/#late-binding-closures

Thank you! It's confusing, because it works in pandas...

Thank you! It's confusing, because it works in pandas...

Yep, pandas is executing it as you go, but dask doesn't execute until you hit compute, at which point you'll get the lambda using the last value of keys

True :D Is it possible to have a check for that, since the error isn't always obvious? I would greatly appreciate it

I don't think so, it's just a part of Python that comes up when using dask.  If you're interested you could add a section to
"Best Practices" in the docs

It happens with all functions and it can happen nearly anywhere.  I don't think there's a global fix / check / warning for this beyond documentation.

Okay, thank you :)

It's more of an issue with lambdas, which do some late binding thing in
Python.  I think that this is more a Python wart than a Dask one :)
On Thu, Jul 16, 2020 at 7:07 AM JulianWgs<EMAIL_ADDRESS>wrote:

Okay, thank you :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6416#issuecomment-659436382, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTFAJT6POK24CQART7LR34CTNANCNFSM4O3WWLAQ
.


Bump immer version

Resolves #8750
After applying this fix my project that was failing to build due to reduxjs/redux-toolkit#459 builds successfully.

By the way - ImmerJS is now already at version 7.0.5, could we upgrade to that to be up to date?

Thanks!

ImmerJS version is at 8.0.1. Could you please upgrade it?

ImmerJS version is at 8.0.1. Could you please upgrade it?

react-scripts released 4.0.3 which has that version, give it a try


cannot import relation "Schladming"

hallo,
i want to import the administrative-area Schladming without success. here is my mappingfile:
tags:
  load_all: true

tables:
  schladming:
    type: polygon
    fields:
    - name: osm_id
      type: id
    - name: geometry
      type: geometry
    - key: name
      name: name
      type: string

and here an osm extract with only "Schladming":
schladming.osm.gz
when i do a
imposm3 import -overwritecache -mapping test.yml -read schladming.osm.pbf
imposm3 import -deployproduction -mapping test.yml -write -connection postgis://localhost/test

the table osm_schladming is empty.
here are the outputs of the read and write processes:
[Apr 14 13:04:43] [INFO] removing existing cache /tmp/imposm3
[Apr 14 13:04:43] [INFO] [     0] C:       0/s (1133) N:       0/s (5) W:       0/s (13) R:      0/s (1)
[Apr 14 13:04:43] [INFO] Reading OSM data took: 9.439982ms
[Apr 14 13:04:43] [INFO] Imposm took: 9.570248ms

[Apr 14 13:04:46] [INFO] Writing OSM data took: 91.927441ms
[Apr 14 13:04:46] [INFO] [     0] C:       0/s (0) N:       0/s (5) W:       0/s (13) R:      0/s (1)
[Apr 14 13:04:46] [INFO] [PostGIS] Creating generalized tables took: 74.521µs
[Apr 14 13:04:46] [INFO] [PostGIS] Creating OSM id index on osm_schladming took: 7.336589ms
[Apr 14 13:04:46] [INFO] [PostGIS] Creating geometry index on osm_schladming took: 3.194152ms
[Apr 14 13:04:46] [INFO] [PostGIS] Creating geometry indices took: 10.752049ms
[Apr 14 13:04:46] [INFO] Importing OSM data took: 103.03963ms
[Apr 14 13:04:46] [INFO] [PostGIS] Rotating osm_schladming from import -> public -> backup
[Apr 14 13:04:46] [INFO] [PostGIS] Rotating tables took: 7.162074ms
[Apr 14 13:04:46] [INFO] Imposm took: 110.591765ms

thx for your help. max.

Hi @prozessor13 !
for me ,  with the example mapping is working : https://github.com/omniscale/imposm3/blob/master/example-mapping.yml
imposm3dev=> select name, type, admin_level from osm_admin;
;
    name    |      type      | admin_level
------------+----------------+-------------
 Schladming | administrative |           8
(1 row)

Probably the 'mapping'  definition is missing in your yml.
    mapping:
      boundary:
      - administrative

try this
tables:
  admin:
    fields:
    - name: osm_id
      type: id
    - name: geometry
      type: geometry
    - key: name
      name: name
      type: string
    - name: type
      type: mapping_value
    - key: admin_level
      name: admin_level
      type: integer
    mapping:
      boundary:
      - administrative
    type: polygon

or the [/example-mapping.yml ] (https://github.com/omniscale/imposm3/blob/master/example-mapping.yml )

oh, thx for your quick response, this did the trick!
cheers. max.


chore: formatted body description positions nicer

Please fix lint, otherwise looks nice 👌

will deploy tonight

:tada: This PR is included in version 0.45.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Hide most options on account create

Many of options basically should be hidden by default

Hi, can you show me your code? I will try to help :)

Hi, if you want to get started it is fairly easy. There are some instructions in the README.md.
Basically clone with submodules
npm run setup
npm start
And then you must check the "Install Extension" part of the readme on how to manually load it locally (developer loading of extension).
Also please join our Discord for further assistance: https://www.blockcore.net/discord


UPDATE to new Version.

UPDATE to new Version after Server Update, no Client Update starts
WIN 11 PRO 23H2
Running in a Virtual Machine
Two Logs from the Server.
I'm not totaly sure which time i make the Update.
vpin-studio-server.log
vpin-studio-server.2024-01-27.log

So,
i startet the NEW Update to 2.11.1
Looks like the same situation like yesterday.
Here a Screenshot how it looks like in the Moment.
The Notepad ++ comes UP ALONE !
I didn't open it.

OHHH
I think i found the fault.
the .vbs Files was used with Notepad ++
I removed the .vbs now that is be open again with the VBScript-Skriptdatei (.vbs) Microsoft ® Windows Based Script Host
Now it looks like it goes alone.
I startet this file again with a double klick.
And the client was updated automaticly.


[WFLY-18143] Remove the previously private org.glassfish.jakarta.json…

… module. This was originally created as an alias to support both Jakarta EE 8 and Jakarta EE 10 during the migration.
https://issues.redhat.com/browse/WFLY-18143

Thanks @jamezp


Consolidate Python API into native Golang operator code

Currently, we have Python and Golang as 2 separate applications and therefore containers. There's an overhead maintaining 2 set of development environments and the communication between using Swagger.
Work is under progress to re-implement the Python logic into Golang to eventually make everything one container.

done


ArkType without default values

Description
I think, with the current way that defaults are required, it is not (easily?) possible to have a form where certain fields must have a value, but shall remain unfilled.
I have a form where among other things I have a date field. This is required, but using superforms + arktype, I have to specify a default. I don't want there to be a default...
export const flightSchema = type({
    date: "string",
})

export type FlightSchema = typeof flightSchema;

export const flightSchemaDefaults = {
    // date: undefined // not possible
    date: "2024-01-01",
}

export async function load({ params, cookies, depends }) {
    const flightForm = await superValidate(arktype(flightSchema, { defaults: flightFormDefaults }))
    return { flightForm }
}

The best workaround I have come up with is to have a separate schema which has the | null, and then use this on the client, but  validate server side with the proper one (no | null). Is there a proper way to achieve what I'm asking for here yet?
FAQ says:

The libraries in the list that requires defaults don’t have full introspection capabilities (yet), in which case you need to supply the default values for the form data as an option:

I cannot find a tracking issue here or in the arktype repo for this functionality.

Whats strange to me is that a type string>3 can have default "a", which is definitely not string>3, but it cannot be null even though null is also not string...

Default values don't have to be valid, they only have to be the correct type for the schema data.
The convenient way to have an empty field for a non-nullable property is to use a proxy: https://superforms.rocks/api#proxy-objects

Yes so you can use the proxies to have null instead of "" for instance, but there is no way to avoid putting a | null or | undefined for every field in the schema?

Sorry but I don't see how 😅
In the example from above, what do i put in the default? I don't want to set a default. I don't see how the proxy fixes this, as that is for the client side?
export const flightSchema = type({
    date: "string",
})

export const flightSchemaDefaults = {
    date: // what do i put here
}

You can try new Date('') to get an invalid date, but I'm not sure how the date input (or the proxy) reacts on that.

If your date is a string though, you should be able to use an empty string.

I guess it works for strings that way, because "" is kinda invalid. What about if instead of it being a date, it is a number. Maybe you can use NaN or something. Still, "" is a valid value, and NaN is a valid number, so the schema will be able to submit, except if you manually add a .narrow() or proxy (only client side).
But what about some other type where there is no inherit "invalid" value. I have a bigger example here which is real:
export const airport = type({
    id: "number",
    icao: "string",
    iata: "string",
    type: "string",
    lat: "number",
    lon: "number",
    city: "string",
    name: "string",
    country: "string",
    loc_id: "number",
});

export const flight = type({
    date: "string",
    from: airport,
    // 15 fields removed for brievety
})

export const flightDefaults = {
    date: "",
    from: // what here
}

The user can select an airport and all the fields get filled. But what about when no airport is selected yet? I cannot do from: null because null is not airport, and I don't want to do airport.or(type("null")) because I don't want you to be able to submit with a null value. Do i just have to manually setError if it is null? It feels so wrong.

Then you need to constrain the fields so the default value won't be valid. For example, city as just "string" will allow an empty string, a string with only spaces, only punctuation, etc.

In case you haven't seen it, here are the default values added to non-optional fields without a default value: https://superforms.rocks/default-values
(except for adapters like Arktype, since the default values must be explicit.)

This kinda works
export type Airport = typeof airport.t;
export const flightDefaults = {
    date: "",
    from: null as unknown as Airport,
}

I think my thoughts can be summed up in that I think there should be a way to have default values which are invalid (and different types) than the fields they are going to be in.

Invalid default values with the same type is no problem (empty string with validators that doesn't allow that), but different types aren't possible, since that would break type safety. You need to cast it yourself with as unknown.


Can it be used with https as well ?

Wanted to know through browser if icecult could use https  with certs if yes can it be implemented ?

Well with ngnix  and Monkey webserver

Do you already set up HTTPS on this servers? Are there any problems?
How did you serve icecult before?