Prefer iterator over Vec::push where it makes sense to

What problem does this solve or what need does it fill?
Now-closed PR #5775 from NathanSWard suggests replacing many instances of push() in a loop with an iterator, citing efficiency.
This will not necessarily be a blanket change, as cart points out and should be benchmarked.
The closed PR is now 2 years old and may have significant bit rot, but could be used as a starting point.

This doesn't really have a defined scope. We should just improve specific examples as they are identified instead of having a generic code style enhancement as an issue.


Add strip test function

Grounding output 17 when powered is applied to the Teensy, initiates a test which cycles through 8 colors (the last is black) to verify that the strips are connected and working.

THanks for the additions

No problem. The file "TeensyStripController-1.03.ino" can actually be deleted. I would also like to update README.md to mention version 1.03 and add my PAL board.
Lastly you could consider creating a 1.03 released binary.


MapieQuantileRegressor - predict method causing MemoryError

Describe the bug
I was following the tutorial for conformalized quantile regression (CQR) and got MemoryErrors because of some very big arrays being created in the .predict() method.
To Reproduce
Can't share my private dataset here, but I simply followed the tutorial.
import numpy as np
import pandas as pd
from lightgbm import LGBMRegressor
from mapie.regression import MapieQuantileRegressor
from sklearn.model_selection import (
    train_test_split
)

random_state = 26
rng = np.random.default_rng(random_state)

X_cols = [
    "day_of_week",
    "captured_lag1",
    "captured_lag2",
    "captured_lag3",
    "captured_lag4",
    "captured_lag5",
    "captured_lag6",
    "captured_lag7",
    "captured_lag8",
]
y_col = "target"

X = train_data[X_cols]
y = train_data[y_col]

X_train, X_test, y_train, y_test = train_test_split(
    X,
    y,
    train_size=0.8,
    random_state=random_state,
    shuffle=False,
)
X_train, X_calib, y_train, y_calib = train_test_split(
    X_train,
    y_train,
    train_size=0.8,
    random_state=random_state,
    shuffle=False,
)

estimator = LGBMRegressor(
    objective="quantile", alpha=0.5, random_state=random_state
)
estimator.fit(X_train, y_train)

mqr = MapieQuantileRegressor(
    estimator, method="quantile", cv="split", alpha=0.02
)
mqr.fit(
    X_train,
    y_train,
    X_calib=X_calib,
    y_calib=y_calib,
    random_state=random_state,
)
y_pred, y_pis = mqr.predict(X_test)

Expected behavior
Expected to get the predicted value and upper/lower bounds of the prediction interval correctly.
Screenshots
Error:
{
	"name": "MemoryError",
	"message": "Unable to allocate 149. GiB for an array with shape (400000, 400000) and data type bool",
	"stack": "---------------------------------------------------------------------------
MemoryError                               Traceback (most recent call last)
Cell In[18], line 58
     48 mqr = MapieQuantileRegressor(
     49     estimator, method=\"quantile\", cv=\"split\", alpha=0.25
     50 )
     51 mqr.fit(
     52     X_train,
     53     y_train,
   (...)
     56     random_state=random_state,
     57 )
---> 58 y_pred, y_pis = mqr.predict(X_test)

File ~/GitHub/cqr-project/.venv/lib/python3.8/site-packages/mapie/regression/quantile_regression.py:710, in MapieQuantileRegressor.predict(self, X, ensemble, alpha, optimize_beta, allow_infinite_bounds, symmetry)
    708 y_pred_low = y_preds[0][:, np.newaxis] - quantile[0]
    709 y_pred_up = y_preds[1][:, np.newaxis] + quantile[1]
--> 710 check_lower_upper_bounds(y_preds, y_pred_low, y_pred_up)
    711 return y_preds[2], np.stack([y_pred_low, y_pred_up], axis=1)

File ~/GitHub/cqr-project/.venv/lib/python3.8/site-packages/mapie/utils.py:591, in check_lower_upper_bounds(y_preds, y_pred_low, y_pred_up)
    579 if (y_preds.ndim != 1) and any_init_inversion:
    580     warnings.warn(
    581         \"WARNING: The predictions of the quantile regression \"
    582         + \"have issues.\
The upper quantile predictions are lower\
\"
    583         + \"than the lower quantile predictions\
\"
    584         + \"at some points.\"
    585     )
    587 any_final_inversion = np.any(
    588     np.logical_or(
    589         np.logical_or(
    590             y_pred_low > y_pred_up,
--> 591             init_pred < y_pred_low,
    592         ),
    593         init_pred > y_pred_up,
    594     )
    595 )
    597 if any_final_inversion:
    598     warnings.warn(
    599         \"WARNING: The predictions have issues.\
\"
    600         + \"The upper predictions are lower than\"
    601         + \"the lower predictions at some points.\"
    602     )

MemoryError: Unable to allocate 149. GiB for an array with shape (400000, 400000) and data type bool"
}

Desktop (please complete the following information):

OS: WSL2
Python 3.8 (inside venv)
MAPIE 0.8.2

Additional context
My dataframe contain only integer and float columns. Since there are NaN values, I tried filling them with a constant, but no luck. Also tried different values of alpha.

Hey @gabrieltardochi,
I understand the problem. I think this is mostly a code efficient issue. If you want to give it a try to fix it?
Otherwise, we will get on this very soon as it's indeed a problem!
Thank you for pointing this out!

Hey @gabrieltardochi, I understand the problem. I think this is mostly a code efficient issue. If you want to give it a try to fix it? Otherwise, we will get on this very soon as it's indeed a problem! Thank you for pointing this out!

I'm sorry I couldn't answer earlier. Looks like you are already on It! Thank you.

Hey @gabrieltardochi,
I have made a PR. It would be great if you could check if that PR fixes your issue (with your own data)!
Looking forward to have your feedback!

Hey @gabrieltardochi, I have made a PR. It would be great if you could check if that PR fixes your issue (with your own data)! Looking forward to have your feedback!

Hi @LacombeLouis,
I can confirm that it fixes my issue! Thanks :raised_hands:


Module Not found 'pages/giftshop/giftshop.module.scss'React TS CSS

Describe the bug
Every styles import throws an error. It says that the module is not found although it is there and the styling is applied. The settings of your extension are default.
To Reproduce
Steps to reproduce the behavior:
As soon as a file is opened, the import shows an error. Running yarn, restarting the server or reloading the developer window doesn't help.
Expected behavior
There should not be an error, because the file is there.
Screenshots

Desktop (please complete the following information):

OS: macOS
Version 13.5.2

Additional context
Running the latest version of React CSS Modules and played around with older versions - didn't help unfortunately. Thanks for the great extension nonetheless!

@danielkoller Thanks for reporting this issue. I apologise for the frustration. This issue could have been a regression since #97 went live. Until I find time to fix this one you could toggle the diagnostics setting off to help you from these annoying red markers

@Viijay-Kr thank you for your reply and the great plugin. I will toggle the diagnostics off for now.

@danielkoller by any change do you use jsconfig path aliases ? if so can you share it with me ?

Hi @Viijay-Kr, I do. Here you go ->
"paths": {
"@/components/": [
"src/components/"
]
}

@danielkoller This should be fixed with the latest version of the extension. Do let me know if you find any issues

@Viijay-Kr no issues, thanks for the great work and fast fix. :)

@Viijay-Kr
version: v3.2.5
I am still experiencing the same issue. It occurs when importing through the path alias.

following is my jsconfig.json.
{
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "@src/*": ["."],
      "@pages/*": ["pages/*"],
      "@common/*": ["common/*"],
      "@comComponents/*": ["common/components/*"],
      "@service/*": ["service/*"],
      "@model/*": ["model/*"],
      "@commonComponents/*": ["pages/common/*"]
    }
  },
  "include": ["src"]
}

Your extension would be fantastic if it could resolve this issue.

@logone72 can you also provide me the path of the file where you see this error ?

@logone72 can you try updating v3.2.6 and see if the issue is fixed for you ?


[WIP] use Arel helper methods to generate arel

Arel provides factory methods to generate common SQL functions
This uses those functions
WIP: I need to ensure that each of these entries are actually being tests. A Quick pass found the coverage pretty high, but I want to do a better job before saying "good"

update:

removed methods that generated sql that were only used once
fixed cop to put parens around a multiplication to make easier to understand

UN-WIP: all virtual attributes had tests.
The only method that was hard to determine test coverage was regional_tenants.
This is tied into Rbac, so should be all set.


Netlify deploy throws: Error: Invalid version: “1”

Since yesterday I'm facing an error that I haven't been able to fix or to find information about. I can build my site locally without errors but when I try to deploy it in Netlify it fails and throws:
8:19:33 AM:
8:19:33 AM: ┌─────────────────────────────┐
8:19:33 AM: │        Netlify Build        │
8:19:33 AM: └─────────────────────────────┘
8:19:33 AM:
8:19:33 AM: ❯ Version
8:19:33 AM:   @netlify/build 2.0.20
8:19:33 AM:
8:19:33 AM: ❯ Flags
8:19:33 AM:   deployId: 5efc2a7760231502ad0a057d
8:19:33 AM:   mode: buildbot
8:19:33 AM:
8:19:33 AM: ❯ Current directory
8:19:33 AM:   /opt/build/repo
8:19:33 AM:
8:19:33 AM: ❯ Config file
8:19:33 AM:   /opt/build/repo/netlify.toml
8:19:33 AM:
8:19:33 AM: ❯ Context
8:19:33 AM:   production
8:19:33 AM:
8:19:33 AM: ┌─────────────────────────────┐
8:19:33 AM: │     Core internal error     │
8:19:33 AM: └─────────────────────────────┘
8:19:33 AM:
8:19:33 AM:   Error message
8:19:33 AM:   Error: Invalid version: "1"
8:19:33 AM:
8:19:33 AM:   Error location
8:19:33 AM:       at Object.fixVersionField (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/normalize-package-data/lib/fixer.js:191:13)
8:19:33 AM:       at /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/normalize-package-data/lib/normalize.js:32:38
8:19:33 AM:       at Array.forEach (<anonymous>)
8:19:33 AM:       at normalize (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/normalize-package-data/lib/normalize.js:31:15)
8:19:33 AM:       at module.exports (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/read-pkg/index.js:20:36)
8:19:33 AM:       at async module.exports (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/read-pkg-up/index.js:14:16)
8:19:33 AM:       at async getPackageJson (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/utils/package.js:7:22)
8:19:33 AM:       at async build (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/main.js:61:46)
8:19:33 AM:       at async runCli (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/bin.js:17:29)
8:19:33 AM:
8:19:33 AM:   Error properties
8:19:33 AM:   { name: 'Error' }
8:19:33 AM:
8:19:33 AM: Caching artifacts
8:19:33 AM: Started saving node modules
8:19:33 AM: Finished saving node modules
8:19:33 AM: Started saving build plugins
8:19:33 AM: Finished saving build plugins
8:19:33 AM: Started saving yarn cache
8:19:33 AM: Finished saving yarn cache
8:19:33 AM: Started saving pip cache
8:19:33 AM: Finished saving pip cache
8:19:33 AM: Started saving emacs cask dependencies
8:19:33 AM: Finished saving emacs cask dependencies
8:19:33 AM: Started saving maven dependencies
8:19:33 AM: Finished saving maven dependencies
8:19:33 AM: Started saving boot dependencies
8:19:33 AM: Finished saving boot dependencies
8:19:34 AM: Started saving go dependencies
8:19:35 AM: Finished saving go dependencies
8:19:39 AM: Error running command: Build script returned non-zero exit code: 1
8:19:39 AM: Failing build: Failed to build site
8:19:39 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1
8:19:39 AM: Finished processing build request in 2m10.478232047s

It seems to be related with Node versions so I tried to fix by adding a .nvmrc but the error persists. Both (locally and Netlify) are running Node version 12.16.3.
Of course, I also tried to build with the cache cleaned.
The issue doesn't provide much more information so I'm a bit lost.

Hi @fbuireu,
This should be fixed by upgrading to the latest version<EMAIL_ADDRESS>Could you please confirm this?
Thanks.

Thanks @ehmicky.  netlify-cli is not a dependency of my project so, I guess I should update it in my Netlify backoffice. How can I force Netlify to upgrade it?

Hi @fbuireu,
Sorry, I was assuming it was since you reported this issue on the netlify/cli repository.
If you're running into this problem in the Netlify production app instead, this should be solved very soon. The problem itself is fixed and will be shipped in the next release.
In the meantime, you should be able to fix your problem by fixing your package.json. The version field is invalid according to npm documentation:

Version must be parseable by node-semver, which is bundled with npm as a dependency. (npm install semver to use it yourself.)

Changing it from 1 to 1.0.0 should fix it.


fix: repack for the parquet format

Due to a typo, repacking was not happening for parquet. Here, we re-enable it, and also do some extra work on serialization and deserialisation to capture the primary key, since index fields otherwise don't get packed compactly.
As a result, third-party consumers will not get the primary key pre-set when they deserialise the Parquet, they will need to read the Parquet schema to determine it.
See https://github.com/owid/etl/issues/357

I'm also not familiar at all with Parquet indexes:

Does having an index potentially speed up the queries DuckDB makes on-the-fly? Or are these not indexes in the "database index" sense?

I'm also not familiar at all with Parquet indexes:

Does having an index potentially speed up the queries DuckDB makes on-the-fly? Or are these not indexes in the "database index" sense?

Here, I'm talking in the data frame (in-memory) sense. A pandas dataframe supports faster operations on its indexes, especially when addressing data ranges. A column that becomes an index may change data type, which is bad if we want to keep that tight specific and small.
It's quite possible that Parquet does not actually store an indexed and non-indexed data frame differently, that this is just schema metadata that pandas uses when restoring the data frame.


Can't build for Android on Windows 10

Greetings! I'm trying to build Godot for Android using Windows 10, but I get the following problem:
MSVC not detected (no VCINSTALLDIR environment variable), attempting MinGW.
Building for Android (armv7) (with NEON)
Could not read source prop file '"C:\Developement\android-ndk-r16b"\source.properties'
Using NDK deprecated headers
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling shared ==> platform\android\os_android.cpp
scons: *** [platform\android\os_android.os] O sistema não pode encontrar o arquivo especificado
scons: building terminated because of errors.

"O sistema não pode encontrar o arquivo especificado" simply means it cannot find the file. Is there any solution for this? I'm trying to build Godot 3.0.2 and using CMD as admin.

having same issue

What command are you using to build, with what NDK version and is the issue 100% reproducible?

On Windows 10, using an linux subsystem with an Ubuntu shell for bash. Godot 3.0.5-stable Directory
I'm using this command: scons platform=android target=release and I'm running the latest NDK version of 17.1.4828580, which is located in the C:/Android/sdk/ndk-bundle/  file. Should I downgrade to version 16 or lower?
I don't have my exact output right now, but I am getting this as part of my output (from what I can recall):
Could not read source prop file '"C:\Android\sdk\ndk-bundle\source.properties'
Using NDK deprecated headers
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling shared ==> platform\android\os_android.cpp
-sh C:/Android/sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: No such file or directory

then it gives a scons error code 127.
The same thing happens each time I attempt to run it on my laptop, but I am going to test it on my desktop tonight unless it can be solved otherwise.

Added the Linux NDK directory and it is still not working.
These are the steps I took and the output I got:
austin@Frank:/mnt/c/Users/Wave Rider/Desktop/godot-3.0.5-stable$ export ANDROID_HOME=C:/Android/sdk austin@Frank:/mnt/c/Users/Wave Rider/Desktop/godot-3.0.5-stable$ export ANDROID_NDK_ROOT=C:/android-ndk-r17b austin@Frank:/mnt/c/Users/Wave Rider/Desktop/godot-3.0.5-stable$ scons platform=android target=release scons: Reading SConscript files ... Building for Android (armv7) (with NEON) Could not read source prop file 'C:/android-ndk-r17b/source.properties' Using NDK deprecated headers Checking for C header file mntent.h... (cached) no scons: done reading SConscript files. scons: Building targets ... [Initial build] Compiling shared ==> platform/android/os_android.cpp sh: 1: C:/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: not found scons: *** [platform/android/os_android.os] Error 127 scons: building terminated because of errors.

Why you're defining the paths with C:/? If it's on WSL you should be using the Linux file system paths: /mnt/c/. That's probably why it can't find it.

@vnen Worked like a charm, thank you very much.

facing the same Issue , how can I solve that problem (on windows) ? help please !!

For anyone else who faced this problem on windows, here's how mine got solved.
I was using 32 bit NDK on a 64 bit machine. So yeah.

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

Seems the original issue was resolved. Feel free to reopen if not.

Seems the original issue was resolved. Feel free to reopen if not.


Add Python 3.11 runtime

Related issue: https://github.com/sst/sst/issues/3189

@jayair what do you think? can this be merged?


Prevent error on autocomplete lookbehind

Believe this fixes #147 - the 1-based offset was going past the end of text because the case of starting at 0 was excluded. (e.g. typing # at the start of an empty file).

LGTM


copy "Formatted Code" not working

latest version the copy Formatted Code is not working. (copy special)

Can you provide more details?
I've tried duplicating the issue in both ghidra 10.2.2, and the main dev branch and it works for what I've tried, both with and without a selection of the lines to copy.

it copies but in text-only mode and not formatted code.
I mean copy formatted code and pasting in word, it is not formatted, it is text-only copy.

This works for me in a basic text editor and in LibreOffice Writer.  I'm not sure if this has ever worked when pasting into Word.

Microsoft Word has a default paste type setting. If plain text is set as the default this may explain the behavior you are seeing. There should be a clipboard or paste icon somewhere with a dropdown arrow. Try selecting "keep source formatting" and see what happens.


Create testing feature blog post

Description

Add blog post for the opentofu.org website, "What We Learned While Working on OpenTofu's New Test Feature".
Motivation and Context

Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] My change depends on a change in the main opentofu repository.

@RLRabinowitz may I ask you to close and then reopen this PR? We've updated our workflow in a way that should build previews for forked repos.

@damianstasik for some reason the CI is failing, saying that apiToken is missing. Could the API token and account ID GH secrets have been removed?

Closing in favor of https://github.com/opentofu/opentofu.org/pull/204
In order to fix the CI


Addition of feature to ignore ssl certificate verification

Ignore ssl certificate checks when site url is https. Having issue with valet ssl

Thanks! I will have to figure out how to write a test for this one, should be an interesting challenge 🤔

Thanks.
Please clarify what the function mergeOptions is for.
I had originally thought that it is the one being used to pass in options like the one introduced in this feature.
But I tried replacing array_merge_recursive with array_replace_recursive and it still did not make any sense to me.

It's used to merge any of the fluently built options on the request with options that are specific to the request type, like the options passed here:
https://github.com/kitetail/zttp/blob/master/src/Zttp.php#L99-L101


"Permission denied (13)" rsync errors

Hi, I am trying to run routinator on a Centos7 VM.  I created a systemd startup script and I'm running routinator at boot with it.  I am getting "Permission denied (13)" errors on rsync.  Also, the /metrics URL keeps saying "Initial validation ongoing. Please wait."
I'm getting some different errors if I just start routinator from the command line (see below).  When I start routinator this way, the /metrics URL shows stats so I'm assume it's working.
Errors if I start routinator with the systemd script:
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (2001:13c7:7002:4128::137): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (2001:13c7:7002:4128::185): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (2001:13c7:7002:4128::136): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (<IP_ADDRESS>): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (<IP_ADDRESS>): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync: failed to connect to repository.lacnic.net (<IP_ADDRESS>): Permission denied (13)
Feb 28 15:42:41 rpki-validator3 routinator: rsync://repository.lacnic.net/rpki: rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]
Feb 28 15:42:41 rpki-validator3 routinator: rsync://rpki.arin.net/repository: failed with status exit code: 10
Errors when I start routinator from the command line:
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: failed with status exit code: 23
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: failed to set times on "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae": Operation not permitted (1)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: opendir "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae" failed: Permission denied (13)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: recv_generator: failed to stat "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae/0f82d16e54d63e1fcbad2873ef9377e70690daad.roa": Permission denied (13)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: recv_generator: failed to stat "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae/67fd53696c8aeee0f94a9db5d41967d282caea23.roa": Permission denied (13)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: recv_generator: failed to stat "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae/b56daa0fd6210a6c89a9e60487c2c65e72218f5d.crl": Permission denied (13)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync: recv_generator: failed to stat "/home/rcompton/routinator/.../rsync/repository.lacnic.net/rpki/lacnic/7eef83c3-8e97-4b54-a597-1036cb1dffae/b56daa0fd6210a6c89a9e60487c2c65e72218f5d.mft": Permission denied (13)
Feb 28 16:54:16 rpki-validator3 routinator[2128]: rsync://repository.lacnic.net/rpki: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [generator=3.1.2]

Posted to the mailing list.  Not an issue.


Buttons in the admin portal have inconsistent spacing

The buttons look like they're all the same size but the different text lengths make the "add a new course" button look cramped

Later changes seem to have fixed this issue.


Problems playing media files after ChromeOS upgrade

Please paste the output of the following command here: sudo edit-chroot -all

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20200116214215~master:9017d640
release: xenial
architecture: amd64
xmethod: xorg
targets: xorg,xiwi
host: version 12739.94.0 (Official Build) stable-channel auron_yuna
kernel: Linux localhost 4.14.157-14175-g1706f38e9a13 #1 SMP PREEMPT Wed Mar 4 23:26:55 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
Please describe your issue:
Thanks so much for crouton!
After a ChromeOS upgrade and crouton update, I can no longer play local video files using mplayer. Chromium and firefox play youtube videos okay, although there is a lot of flickering when using the browsers after the upgrade. I would really appreciate your help!
I get the following error when attempting to play movies using mplayer:
X11 error: BadAlloc (insufficient resources for operation)
I don't know if this is related, but I get the following errors when entering the chroot:
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
Error executing command as another user: Not authorized
If it helps, here's the error from ffplay:
X Error of failed request:  BadAlloc (insufficient resources for operation)
Major opcode of failed request:  150 (XVideo)
Minor opcode of failed request:  19 ()
Serial number of failed request:  47
Current serial number in output stream:  48
And the error from VLC:
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
If known, describe the steps to reproduce the issue:
mplayer videofile.mp4

you'll want the target: audio

that's what fixed that for me.

but check if you have libdvdcss2 installed

if you don't that'll definitely have it.

Added the target audio and installed libdvdcss2 as suggested, these had no effect. Same problem persists, thank you for the attempt though!

Update: after the latest update mplayer is playing perfectly with the flags "-vo=x11 -zoom"


dask.Dataframe.to_parquet fail with Category column

It looks like a dask.Dataframe with Category column will fail to_parquet. Specifically it fails when writing the Category enumeration Series object. The weird part is that directly writing the pandas DataFrame using fastparquet works fine. It could be fastparquet issue, but I report to dask because it doesn't fail when using fastparquet directly.
Here's the example that reproduce the problem:
from dask import dataframe as dd
import fastparquet as fpq
import numpy as np
import pandas as pd

# DataFrame with a Category column 'c' and other columns.
a = pd.DataFrame(np.random.randn(10000, 2), columns=['a','b'])
a['c'] = pd.Series(np.random.choice(['B','S'], size=len(a)), dtype='category')

# write using fpq directly is OK
fpq.write('/tmp/ah', a, file_scheme='hive')

# convert to dask.DataFrame and write parquet fail
da = dd.from_pandas(a, npartitions=4)
da.to_parquet('/tmp/da')

The data that it tries to write but fail is pd.Series(a['c'].cat.categories):
0    B
1    S
dtype: object
, by this point all the Dataframe data except for meta data related have be written successfully.
The versions of packages I use:
{'dask': u'0.16.0', 'fastparquet': u'0.1.3', 'pandas': u'0.21.1'}
Below is the full traceback:

ValueErrorTraceback (most recent call last)
 in ()
17 # convert to dask.DataFrame and write parquet fail
18 da = dd.from_pandas(a, npartitions=4)
---> 19 da.to_parquet('/tmp/da')
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/dataframe/core.pyc in to_parquet(self, path, *args, **kwargs)
983         """ See dd.to_parquet docstring for more information """
984         from .io import to_parquet
--> 985         return to_parquet(self, path, *args, **kwargs)
986
987     def to_csv(self, filename, **kwargs):
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/dataframe/io/parquet.pyc in to_parquet(df, path, engine, compression, write_index, append, ignore_divisions, partition_on, storage_options, compute, **kwargs)
616
617     if compute:
--> 618         out.compute()
619         return None
620     return out
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/base.pyc in compute(self, **kwargs)
133         dask.base.compute
134         """
--> 135         (result,) = compute(self, traverse=False, **kwargs)
136         return result
137
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/base.pyc in compute(*args, **kwargs)
331     postcomputes = [a.dask_postcompute() if is_dask_collection(a)
332                     else (None, a) for a in args]
--> 333     results = get(dsk, keys, **kwargs)
334     results_iter = iter(results)
335     return tuple(a if f is None else f(next(results_iter), *a)
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/threaded.pyc in get(dsk, result, cache, num_workers, **kwargs)
73     results = get_async(pool.apply_async, len(pool._pool), dsk, result,
74                         cache=cache, get_id=_thread_get_id,
---> 75                         pack_exception=pack_exception, **kwargs)
76
77     # Cleanup pools associated to dead threads
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/local.pyc in get_async(apply_async, num_workers, dsk, result, cache, get_id, rerun_exceptions_locally, pack_exception, raise_exception, callbacks, dumps, loads, **kwargs)
519                         _execute_task(task, data)  # Re-execute locally
520                     else:
--> 521                         raise_exception(exc, tb)
522                 res, worker_id = loads(res_info)
523                 state['cache'][key] = res
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/local.pyc in execute_task(key, task_info, dumps, loads, get_id, pack_exception)
288     try:
289         task, data = loads(task_info)
--> 290         result = _execute_task(task, data)
291         id = get_id()
292         result = dumps((result, id))
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/local.pyc in _execute_task(arg, cache, dsk)
269         func, args = arg[0], arg[1:]
270         args2 = [_execute_task(a, cache) for a in args]
--> 271         return func(*args2)
272     elif not ishashable(arg):
273         return arg
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/dask/dataframe/io/parquet.pyc in _write_partition_fastparquet(df, fs, path, filename, fmd, compression, partition_on)
171         with fs.open(fs.sep.join([path, filename]), 'wb') as fil:
172             rgs = make_part_file(fil, df, fmd.schema, compression=compression,
--> 173                                  fmd=fmd)
174     return rgs
175
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/fastparquet/writer.pyc in make_part_file(f, data, schema, compression, fmd)
604     with f as f:
605         f.write(MARKER)
--> 606         rg = make_row_group(f, data, schema, compression=compression)
607         if fmd is None:
608             fmd = parquet_thrift.FileMetaData(num_rows=len(data),
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/fastparquet/writer.pyc in make_row_group(f, data, schema, compression)
592                 comp = compression
593             chunk = write_column(f, data[column.name], column,
--> 594                                  compression=comp)
595             rg.columns.append(chunk)
596     rg.total_byte_size = sum([c.meta_data.total_uncompressed_size for c in
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/fastparquet/writer.pyc in write_column(f, data, selement, compression)
460                 num_values=len(data.cat.categories),
461                 encoding=parquet_thrift.Encoding.PLAIN)
--> 462         bdata = encode['PLAIN'](pd.Series(data.cat.categories), selement)
463         bdata += 8 * b'\x00'
464         l0 = len(bdata)
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/fastparquet/writer.pyc in encode_plain(data, se)
243 def encode_plain(data, se):
244     """PLAIN encoding; returns byte representation"""
--> 245     out = convert(data, se)
246     if se.type == parquet_thrift.Type.BYTE_ARRAY:
247         return pack_byte_array(list(out))
/mnt/beegfs/xwang/app/anaconda2/lib/python2.7/site-packages/fastparquet/writer.pyc in convert(data, se)
188             raise ValueError('Error converting column "%s" to bytes using '
189                              'encoding %s. Original error: '
--> 190                              '%s' % (data.name, ct, e))
191     elif converted_type == parquet_thrift.ConvertedType.TIMESTAMP_MICROS:
192         out = np.empty(len(data), 'int64')
ValueError: Error converting column "None" to bytes using encoding UTF8. Original error: bad argument type for built-in operation

I'm able to reproduce, but only on python 2.7. Python 3 works fine:
In [1]: import dask, fastparquet, pandas as pd, numpy as np, dask.dataframe as dd

In [2]: dask.__version__
Out[2]: '0.16.0+50.gc03e7a7'

In [3]: fastparquet.__version__
Out[3]: '0.1.3'

In [4]: pandas.__version__
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-068244f7ed4b> in <module>()
----> 1 pandas.__version__

NameError: name 'pandas' is not defined

In [5]: pd.__version__
Out[5]: '0.21.1'

In [6]: # DataFrame with a Category column 'c' and other columns.
   ...: a = pd.DataFrame(np.random.randn(10000, 2), columns=['a','b'])
   ...: a['c'] = pd.Series(np.random.choice(['B','S'], size=len(a)), dtype='category')
   ...:

In [7]: ddf = dd.from_pandas(a, npartitions=4)

In [8]: ddf.to_parquet('test.parquet')

cc @martindurant. Looks to be a bytes/unicode encoding issue.

From the original traceback, this appears to be a python2-specific problem - you could try with [u'B',u'S'] (assuming the values were indeed supposed to be UTF8).
However, I am not seeing any error with dask 0.16 or master, fastparquet 0.1.3 or master, even on py2.

In this example, changing ['B','S'] to [u'B',u'S'] indeed works OK. In my application, the category column comes from dd.read_csv, like this:
ddf = dd.read_csv(big_csv_file, blocksize=64 * 10**6, dtype=dict(a=float, b=float, c='category'))
Is there anyway to tell read_csv that column 'c' should be treated as unicode before converting to category?

If I add a conversion after dd.read_csv, then it'll to_parquet successfully:
da = dd.from_pandas(a, npartitions=4)
# this is needed to workaround
da['c'] = da.map_partitions(lambda df1: pd.CategoricalIndex(df1['c'], categories=[u'B',u'S'], ordered=True))
da.to_parquet('/tmp/da')

That'll be how I proceed for now.

Can you try da.to_parquet('/tmp/da', object_encoding='bytes') ?

I tried pd.read_csv(path,low_memory=False) while reading the table, there was no issue while saving in parquet format.

This issue seems to be well stale. @rraadd88 , if you think you have a new issue, please post again.


release 0.4.0 doesnt discover devices through Alexa "Smart Home" app but 0.2.1 does

Hi,
Been playing with using this bridge between Alex and OpenHAB v1.8.3 running on a RPi 3.
Following the guide http://tinsley.io/2015/06/control-your-items-using-the-amazon-echo-openhab/
I originally downloaded the latest version of the bridge which is 0.4.0 and configured/tested devices using the bridge without any issues, using the following param's running from the same RPi 3.
/usr/jdk/latest/bin/java -jar amazon-echo-bridge-0.4.0.jar --server.port=9090 --upnp.config.address=xx.xx.xx.xx
However when I run the device discovery from the Alexa App it doesn't find any devices, if I then use the previous version it works but I'm wondering what affect that will have going forward and why 0.4.0 doesnt work?
/usr/jdk/latest/bin/java -jar amazon-echo-bridge-0.2.1.jar --server.port=9090 --upnp.config.address=xx.xx.xx.xx
Regards
Kevin

+1
same issue
Ran version 0.4.0 on ubuntu 14 LTS as well as on macOS Sierra.  No discovery of devices by the alexa app  and website.
When downgrading to 0.2.1 discovery worked fine on ubuntu 14 (didn't try again on my mac).

Thanks for your hint. I had the same problem, downgrade to 0.2.1 fixed my problem.

Hi All...
Here are my discoveries:
-I seem to have the same experience as you all. So I moved it to a separate Linux installation, and let it start on 8080. Discovered fine.
-Removed devices from Amazon, changed the start port to 8083, so it would pick 8081+8082+8083, and discovery no longer works.
-Reverted to 2.1, discovery works on 8081
So for me, you can use 0.4.0 if you are ok with the default ports. If not, back to 0.2.1
Hope it helps!
BTW...letting it discover, then switching back to 0.4.0 using alternate ports does not work...I have to stay with 0.2.1 if using alternate ports...

Same problem here with the same behaviour as @jimkernsjr - v0.4.0 runs fine on 8080 but not on any other port.  Older versions are happy on any port.  Not a massive problem for me as 8080 is fine, but worth noting in the documentation.
Awesome bit of work.

This code is terrific, and great work!  Unfortunately, the author seems inactive or busy.  I Wish he could fix it.  I don't mind to give it a try and post it, but better someone with real Java experience do it.  My experience is C, VB, Python, and I'm sure I could figure it out, but better and faster would be someone used to Java.  I dont really have a need to have it fixed, it's just a "would be nice", I'm ok to run it on a seperate machine on 4.0.  But for those with just a PI and everything set up in OpenHAB and not wanting to change the port, using 4 is out.
Anyone?

@jimkernsjr take a look at this fork: https://github.com/bwssytems/ha-bridge

Another +1 to this problem.  I just upgraded from 0.2.1 because I was hitting the 25 device limitation with 0.2.1, that is supposedly fixed by 0.4.0.  But 0.4.0 is unable to discover even a single configured device.  I'm using port 8089 because 8080 is already in use by my NAS (where I run the ha bridge emulator).  And it seems difficult to change that. :-/

For anybody who finds this, the solution is actually rather simple.  Version 0.4.0 works perfectly on other ports BUT you have to add an additional command line argument.  When armzilla reworked the code to support more than 25 devices this new code uses a different variable when binding the hue emulator - emulator.portbase.  If you want to run version 0.4.0 on a different port, just add --emulator.portbase= AND --server.port= to the command line.


Fix configuration directory

As parent folder could change, we should pass as var/parameter the name of the parent project created under /var/lib as it could be openshit or origin or minishift  @geoand

I will take a look tomorrow morning :0

Actually this task only applies to oc cluster up, it's not shared among the different installation methods.
So I don't see any reason for it to be configurable

In fact, I did this change originally because the docker daemon was using a different path to access certificates, ....
See : https://goo.gl/a9XHWD
To be investigated in order to use same paths as define for openshift

I haven't delved into it extensively, but I don't think that the symbolic link is actually needed anymore.


running Xplat Agent as a service (Linux) (On premise)

What are my option for running this as a service or keeping it up all the time?
Currently i also see every time i do ./run.sh  it asks for the username / password.
Anyway we can get it so it doesn't prompt for those 2 pieces? How do i store them so the tool finds them? Command line argument?
What are the options.
Additionally What does the 'basic' mean during configuration?  true? false?

I had to hardcode username/password in sh to make it work. This is a must-have.

This is enabled in the new one agent that's replacing this.  https://github.com/microsoft/vsts-agent  It's about to go into preview

The replacement for this agent supports running as a service. We are releasing a new preview tomorrow or early next week. It already has more features than this one
https://github.com/Microsoft/vsts-agent


Mock SnapshotStore and StoreScanner

What have you changed? (mandatory)
This PR provides a mocked SnapshotStore and StoreScanner which will produce rows according to given data fixtures. It is the foundation of layered benchmark so that higher layered benchmarks will not involve with RocksDB's performance.
What are the type of the changes? (mandatory)

New feature (non-breaking change which adds functionality)

How has this PR been tested? (mandatory)
New unit tests.
Benchmark result if necessary (optional)
Currently there is a clone when creating scanner from the mocked store due to unimplemented Rust GATs feature. It is NOT negligible so that when reviewing benchmark results of a higher level, the cost of creating scanner should be taken into consideration. The cost on my machine is shown below:
test storage::txn::store::benches::bench_fixture_batch_get    ... bench:      11,825 ns/iter (+/- 3,676)
test storage::txn::store::benches::bench_fixture_get          ... bench:          80 ns/iter (+/- 13)
test storage::txn::store::benches::bench_fixture_scanner      ... bench:     278,860 ns/iter (+/- 114,239)
test storage::txn::store::benches::bench_fixture_scanner_next ... bench:     290,798 ns/iter (+/- 87,633)
test storage::txn::store::benches::bench_fixture_scanner_scan ... bench:     362,404 ns/iter (+/- 118,416)

@solotzg @MyonKeminta PTAL

Very very cool work !!!!!!

/run-integration-tests

/run-integration-common-test


Fixed problem back button

Proposal
Set to "All addresses" when choosing a customer and go back in the general report after running the report for certain branch.
Checklist

[x] I have made this pull request to the master branch
[x] I have run npm run lint and there are no errors

Looks good :+1:


BUG：A problem about registration update that can cause a memory leak.

Detail
When the client registration update message receives no reply, the callback function cannot fully release the allocated memory。
I made some modifications to fix this issue, and it truly worked in my business. I hope more people can test my changes to see if they introduce any new problems
Original Code
static void prv_handleRegistrationUpdateReply(lwm2m_context_t * contextP,
                                              lwm2m_transaction_t * transacP,
                                              void * message)
{
    coap_packet_t * packet = (coap_packet_t *)message;
    registration_data_t * dataP = (registration_data_t *)(transacP->userData);

   // ......

    if (packet != NULL && packet->code != COAP_231_CONTINUE)
    {
        lwm2m_free(dataP->payload);
        transaction_free_userData(contextP, transacP);
    }
}

My Code
static void prv_handleRegistrationUpdateReply(lwm2m_context_t * contextP,
                                              lwm2m_transaction_t * transacP,
                                              void * message)
{
    coap_packet_t * packet = (coap_packet_t *)message;
    registration_data_t * dataP = (registration_data_t *)(transacP->userData);

   // ......

    if (packet != NULL && packet->code == COAP_231_CONTINUE)
    {
        ; // pass
    }
    else
    {
        uint8_t * payload = dataP->payload;
        if (transaction_free_userData(contextP, transacP))
        {
            lwm2m_free(payload);
        }
    }

}

Thank you for your contribution. Would you consider making a proper PR with your changes? That would be awesome!


Added QOL for component.add_port.

centre can now also be specified when port is used when using add_port.

Thank you Steve!
releasing 6.69.0 with your improvement


AttributeError: 'ParaLines' object has no attribute 'lineBreak'

See digitalfabrik/integreat-cms#1498 for a thorough discussion.
It appears this only happens in RTL languages.

@luisza would it be possible to create a new release including this fix in the near future? 😃

@luisza Sorry to bother you again, do you think you could release a new version soon? :heart:
We still see a lot of these errors in our log every day :sweat_smile:


Custom Template - Table of Content/Headding failed

I tried to use a custom template for creating the report.
After a few tests the following happened

If I use the internal Template, the Table of Content was created correctly
If I use the internal Template but with the custom template option, it was created correctly as well
This are the situations which worked

If I use a own template, the headding didn't work. So there are no headding where the Table of Content could relate to.
I tested following situations, which doesn't worked:

I used a own template
I copied the builtin template and put my own stuff in it
I copied the builtin template and removed just the evotec background

I use Word 2016 for creating the template

I believe it's related to this: https://github.com/EvotecIT/PSWriteWord/issues/16
I've reported this a while back in Xceed DLL. What you could try to do:

Use PSWriteWord to create empty DocX (with TOC if needed) but you can just test without it.
The goal here is to get those headings created by PSWriteWord
Use Merge-WordDocument from PSWriteWord with your template

Merge-WordDocument -FilePath1 BlankPSWriteWord.docx -FilePath2 YourTemplate.Docx -FileOutput NewTemplate.docx

And let me know if it works. If it does then I can build workaround into PSWinDocumentation that does this for any custom templates. Thanks for reporting this.

I tried it, but unfortunately the merge-command doesn't worked like expected.
If I try
filepath1 "BlankWord"
filepath2 "myTemplate"
the output is a complete blank document and the headding works like expected.
If i try
filepath1 "myTemplate"
filepath2 "BlankWord"
the output is my template but the headding isn't working with the script.
btw.
My template has a picture in the header and some text in the footer area.

I also tried to load my template, add something and save it again.
Doesn't work as well.

What if you try to create an empty doc with PSWriteWord and add your stuff into it and load it?

Same result. Already tested :)

That’s weird because thats how I created my template. Care to send me your template? Publicly or privately via email? I’ll take a look

If you want to build documentation on your own template you're free to do so, however, you should use Data\EmptyDocument.docx as your starting template. This is because of an issue with PSWriteWord (more specifically with DLL it uses) where Heading styles are not available when using the template created directly in Microsoft Word. The issue was reported PSWriteWord #16 but it's a long time till it will be fixed. Until then simply use Data\EmptyDocument.docx and then add your logos, text, whatever you feel like you need in a template.


Everyone is invisible

Currently when logging into the server everyone is invisible except for me. My friends also cannot see me either which I assume means I'm invisible to everyone else as well. I am unable to collect any flags or interact with anyone.

investigating


CUDA out of memory

Your work is very good and we have improved our transformer model based on your ideas, but why CUDA out of memory at the same batch_size?In theory, the computation should be reduced and the batch_size should be able to be set to a larger size.

Hello and thank you for your interest.
Could you provide more details? As in what task it is, what the batch size was, and what changed?
Technically NA's memory usage (with the latest CUDA extension) should be even slightly less than a Window Self-Attention block. But if you replaced some other form of attention with NA, it may be different depending on implementation.
As far as memory goes NA itself is quite memory-efficient. It doesn't compute no intermediary tensors other than the attention weights.
Also, please keep in mind that theoretical computation won't always align with memory usage, there's actually no guarantee there. But also keep in mind that for instance deeper models tend to use up a lot more memory when training (a bunch of reasons, for instance the increased context and gradient accumulation), but they will end up using less memory at inference.
I hope this clarifies things a bit, but if it doesn't, feel free to continue the discussion.

Hello, thank you for your reply.
I want to use your theory to solve a problem of neighborhood attention. For example, suppose we get the original QKV dimension (B=10, head_num=1, token_num =15, token_dim =128). 15 tokens is a one-dimensional relationship. We want to calculate the attention of window_size=5.(q[0]*v[0,1,2,3,4]; q[1]*v[0,1,2,3,4]; q[2]*v[0,1,2,3,4]; q[3]*v[1,2,3,4,5], etc.) Generate the corresponding attn_index dimension as (15,5) :
Tensor ([[0, 1, 2, 3, 4],
[0, 1, 2, 3, 4],
[0, 1, 2, 3, 4],
[1, 2, 3, 4, 5]
[2, 3, 4, 5, 6]
[3, 4, 5, 6, 7]
[4, 5, 6, 7, 8]
[5, 6, 7, 8, 9]
[6, 7, 8, 9, 10]
[7, 8, 9, 10, 11]
[8, 9, 10, 11, 12]
[9, 10, 11, 12, 13]
[10, 11, 12, 13, 14]
[10, 11, 12, 13, 14]
[10, 11, 12, 13, 14]
Modified original Transformer
Attn = (q.unsqueeze (3) @ k [:, :, attn_index ]. Transpose (-2,-1)) # A = Q * k ^ T
Attn = attn * self.rescale
Attn = attn. Softmax (dim = -1)
X = (attn @ v[ : , : , attn_index]). Squeeze (3)
I don't know if there is a problem with the code and theory I changed, especially with respect to indexes

Hi,
I'm not sure I understand, but the indices you seem to expect appear to be with respect to a 1D neighborhood and not 2D.
For that, you can use NeighborhoodAttention1d from natten, which we just added.
This class works on 1D data (Batch, Heads, Length, Dim) and would probably be more suitable to your case, if I understand it correctly.

Thank you very much for your help！

Well you would have to wait for 1D to compile as well, it will start compiling upon calling gradcheck1d.py, if you're using ninja.
How long have you let gradcheck1d.py run? Have you noticed CUDA processes starting?

Thank you, I have found the solution, there is no problem with your code, very good work

Thank you, I have found the solution, there is no problem with your code, very good work


Remove bloom filter

The filter was only used for RouteFocusChanged which is about to be removed. Since it was a performance feature, we can remove it early.

Done.


3.3V or 5V tap from JK BMS?

Anyone figure out how to get 3.3V or 5V from the JK BMS itself? I'm not adverse to opening it up to get it.
It would be nice to be able to just power the ESP32/8266 directly from the BMS instead of having to run additional power.
It has to have it somewhere, it's a matter of if it's exposed.

an 80V step-down DC-DC module on GPS port, i.e. https://www.aliexpress.com/item/1005001281280904.html?spm=a2g0o.order_list.order_list_main.22.4be21802K959mS

The problem is that that's constantly drawing while the JK BMS obviously has a 3.3V buck already onboard that should be tappable so no more draw required.

The buck converter of the BMS cannot be used because it's too small and doesn't survive the drawn current of an ESP.

I ended up using this: https://www.mornsun-power.com/html/pdf/K78U03-500R3.html
Which worked great.

On the RS485 port there is ground and full battery voltage. I took pin 2 and hooked ground to the BMS and to the esp8266.  Then the VIN to the pin on the RS485 port and VOUT to the V3.3 on the ESP8266.
Then of course TX/RX per your diagram.  I also added a logic level fet on D1 for controlling a 5A external balancer that I have on the run pins for it.  And then in Home Assistant automations if the voltage of a single cell goes above 3.42V or below 3V it turns on the fet and thus the active balancer to balance the LiFEPO4 pack.
Works pretty well.

Which ground (B- or P-) of the BMS did you use?

You could move the automation from Home Assistant to the ESPHome node to be independent.

I just used the ground on the rs485 port. I presume that's battery ground so that it will always work.
Thanks for the suggestion on the automation. Will have to look into esphome automations.

There is a component called safe mode switch. This can be used to boot the ESP into the safe mode to free resources / stop the UART traffic. Decoding the serial data at 115k2 is pretty heavy for the ESP8266.

Just did up a board design: https://oshwlab.com/johngalt1717/jkbms-rs485-board
Let me know what you think. I'm not a big PCB design guy, but I think I got it all correct.  Should be a drop in with population from JLCPCB if you want or you can solder yourself. Figure it would just go in heat shrink stuck to the side of the BMS case.
Designed for either an ESP8266 or an ESPC3-12 (same pin out)  I'd recommend the ESPC3 it's way faster.

In the past (ESP01) some pins of the ESP must be pulled to boot into the flash and to avoid a floating reset pin if I remember correctly. Plus a capacitor was recommended. I don't know your ESP package in detail. If there are any recommendations at the specifications I would add these to the board too.

Here's the one I'm using. It's identical to the standard ESP8266-12F but has the C3.
https://www.farnell.com/datasheets/3621259.pdf
Looks like EN just needs to be at 3.3V for operation and then it can just program from TX/RX as normal. Do you see anything else that I'm missing?
Thinking about switching the power supply to the 5V version and adding a 5V to 3.3V LDO for stability and then a BJT on the mosfet trigger and using a different fet that can handle up to 100V with a 5V trigger so that 24S X 4.2V won't freak out.


[Vue warn] Maximum recursive updates exceeded in component

Reproduction
https://formkit.link/1567a16d96ea8d820c0775a94cd4f133
Describe the bug
Vue warn a message on browser console when using validation by array syntax
Environment
• OS: macOS
• Browser: Safari, Firefox
• Version: Firefox (99), Safari (15.4)

Fixed and deployed on the @next tag. If you do a hard refresh on your code example this should now be fixed 👍

@justin-schroeder Not fixed for me with the @next tag ! I had to define a computed with my string validation to escape the issue 😞
Here how it was defined at first:
<form-kit 	type="date-picker" 	enable-time-picker 	placeholder="Select a date" 	label="arrival date *" 	name="assignDate" 	:min-date="new Date()" 	:validation="required|date_after:${luxon.DateTime.now()}" />
Here how it is now:
const datePickerValidation = computed(() =>required|date_after:${luxon.DateTime.now()}`);
`

well, the previous bug was fixed with the date tag, you might have found a new one. Are you able to create a reproduction in the playground?


test-branch/execute-job/wrong-commit-sha-on-pr/419bfacc-be71-4fc5-ae55-4df7319e67ea

PR for testing 4c95f6c0f0257e2fd248aa66dd0e29505fb8c93b

/canonical/self-hosted-runners/run-workflows 931ad21dd9ace68aaa0a7d341e94de96ad93fa6b


Please add back the generation of managed_upgrade_2_acid.sql on top of the latest release <IP_ADDRESS>

Ask: Please add back the generation of managed_upgrade_2_acid.sql on top of the latest release <IP_ADDRESS>
Also, along with above, need “mysql_legacy_mngd_to_ext_purged.sql” and “mysql_missing_parts.sql” files to be generated as additional files.
Reason: We (The customer operations/platform team) want to continue sending sql commands directly (to convert managed to external) to our app teams who own respective DBs, so they still have an option of making the change themselves if they choose to (as in hive-sre version 2.x)

Added back.


3D lane generation pipeline

Hi, thanks for your nice paper. Could you please share the code related to the 3d lane generation pipeline? This was used for the ground truth if I understood correctly?

Hi, thanks for your recognition and whether to make data related code public is under consideration.

Hi, are you planning to generate more 3d-lane dataset ? It's exhilarating that  OpenLane could benefit communtiy. we can help in more forms. We will know what you need if we have more connection . Please contact us by email

@RicardLee Hello, thanks for your response. As of now, I simply wanted to use your pipeline to create 3d lanes on existing datasets. But I have no doubts that open sourcing this pipeline would benefit the community immensely.  I am happy to contribute in some way, either coding, testing or documentation. Please reach out to me. I also expressed this here

@RicardLee Hello, thanks for your response. As of now, I simply wanted to use your pipeline to create 3d lanes on existing datasets. But I have no doubts that open sourcing this pipeline would benefit the community immensely. I am happy to contribute in some way, either coding, testing or documentation. Please reach out to me. I also expressed this here

probably we could test out some examples on nuScenes/argoverse v2? validating the annotation pipeline and extend to Openlane v2. @RicardLee nice to have @manivmtc here.

@manivmtc hi, recently we are going to do some work about nV-3d-Lane dataset and the preliminary pipeline inherits from OpenLaneV1.  For more details, more communication would be helpful by meeting online. Please send us your email and a  meeting invitation would be sent.

@RicardLee @manivmtc
Hello gentlemen, I was also inspired by this wonderful work and wanna join the collaboration in whatever format if allowed. After reaching out about this issue, I tried to find any material related to the generation pipeline but couldn't check. Are there any codes or documentation publicly opened, or is it just stopped for security issues?


Publish 4/20/2020 3:51 PM PST

Docs Build status updates of commit 9bf0fc9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/pkiclient/Export-PfxCertificate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Complete the PHP CS Fixer config

Some changes requested in your review of #545 can be automatically detected and fixed by PHP CS Fixer.
I updated the config accordingly.
I hope it will save you some time during next reviews :)

:+1: great! A added one more rule and resorted them; will merge after Travis is done.


Implement delta backup retention

Retain only the delta backups that are newer than the oldest base. Also make sure we do not release hashes referenced by delta manifests as dangling.

is there a reason for having those flags and ifs at all?

refactored to avoid flags and ifs, I agree that it wasn't the best possible solution

DeleteDanglingHexdigestsStep has no test that I can see

added one


ENH: stats: add support for nan_policy=None

Reference issue
Closes gh-16595
gh-17852
What does this implement/fix?
gh-16595 noted the need for a nan_policy option that executes the function code without special consideration of NaNs. gh-17852 added nan_policy support to optimize.curve_fit, and it used nan_policy=None to refer to this new option because carefully defining the behavior of a nan_policy='propagate' seemed impractical.
This PR adds support for nan_policy=None to all functions wrapped by _axis_nan_policy.
The rationale is that correct nan_policy='propagate' behavior can be impractical to define for some functions (e.g. curve_fit), so for these functions, another nan_policy option that does not require the overhead of checking for NaNs would be beneficial. Although some functions can conceivably implement nan_policy='propagate' without the overhead of checking for NaNs explicitly, most (all?) don't, whether they use _axis_nan_policy or not. Adding the new option to all functions allows the user to skip the overhead of NaN checks without changing all existing nan_policy='propagate' code paths.
Additional information
For the distinction between nan_policy=None and nan_policy='propagate', see A Design Specification for nan_policy as modified here.
For some functions, the output in the presence of NaNs will be identical whether nan_policy=None or  nan_policy='propagate'. One could make the point that a separate nan_policy=None option is not needed for these functions. I would respond that (eventually) we should accept both options for all functions that accept nan_policy, if only for consistency. Also, in the short term, note that many functions that accept nan_policy (all that use scipy._util._contains_nan, anyway) currently check for the presence of NaNs with nan_policy='propagate' whether or not they use this information it returns. Accepting nan_policy=None adds a way for the user to avoid this check without requiring developers to carefully assess whether the check is necessary for each function.
Another opinion might be that "propagate" and None should mean the same thing. That sounds valid; I just don't think that's the current understanding of "propagate".
This probably needs an email to the mailing list. I'll wait to get some feedback here before I send that.

I updated the description to be more self-contained.
I'll look into the warning. It does seem to be a separate issue and not the linked issue author's primary complaint.
Now that mode no longer supports object arrays, mode's nan_policy='propagate ' could be implemented without explicit NaN checks. But that is not necessarily true for all functions, and most (or all) functions currently do an explicit NaN check whether they use the result of it or not. (This pre-dates _axis_nan_policy and is true for functions that do not apply the _axis_nan_policy wrapper.) So yes, this new option would provide a consistent way for the user to skip the overhead of NaN checks.

In any case, the warning is no longer emitted because _contains_nan now works for arrays of any standard NumPy dtype.

I see it in CI logs once in a while, but those logs are hard to search - I'll try to comment here the next time I see it.

But one thought for None is that it could become the default someday, e.g. SciPy 2.0. I think nan_policy=None is descriptive because the behavior is that there is no NaN policy. nan_policy would be optional. The user would pass a string explicitly to opt into a NaN policy, and leave the default (None) if they're not concerned about NaNs.

That does not seem like a good idea to me. When in doubt, we usually choose for well-defined behavior over maximum performance. This is more or less equivalent to check_finite=True for scipy.linalg functions. We accept the overhead to avoid the undefined behavior, and let users opt in when they are sure there are no nans/infs and the performance actually matters.
I'm also a little puzzled by why the overhead isn't a concern on the one hand (xref gh-18277), but on the other hand it would be a reason to even change the default like this with strictly worse semantics in a future SciPy version (which would also be a backwards compatibility break).

(unless there's a segfault or something, of course) ... I'm open to removing the bit about undefined behavior if there is a plan for responding to issues about this sort of thing.

I'd say no check is no check, and you can expect absolutely anything to happen - memory corruption, segfaults, changing exception types, incorrect numerical values, whatever. It's not possible to draw a clear line anywhere else, and segfault are a lot less bad than incorrect values or memory corruption. The plan for responding to issues should then be "close as wontfix".

Ok, sounds good. You're right about the default. I'm not sure how my thoughts on this diverged from my usual preferences.
Thinking through this again: suppose we do not add this option, but we speed up nan_policy='propagate' where we can. What would you suggest for the functions that cannot easily implement a real nan_policy='propagate', but where the options for nan_policy='omit' and nan_policy='raise' have been requested (e.g. curve_fit). What would you suggest as the default for those functions?

What would you suggest for the functions that cannot easily define what nan_policy='propagate' should do, but where the options for nan_policy='omit' and nan_policy='raise' have been requested (e.g. curve_fit). What would you suggest as the default for those functions?

It seems like there "don't do anything" is necessary anyway because of backwards compatibility reasons, right, since it's possible that the user-provided callable handles nans just fine? And that's spelled as None?
And nan_policy='raise' seems more or less duplicate with check_finite, which was already present?
I see it has a long discussion history so I'm a bit hesitant to jump in, but my first impression is that this has little to do with nan_policy as defined in scipy.stats where 'propagate' is the trickiest option to implement. The main useful addition seems to be 'omit'. It could be left as is and that's more or less fine, or it could be a simpler omit_nans=False keyword instead.

but my first impression is that this has little to do with nan_policy as defined in scipy.stats

The thought was that if we add options for treating NaNs outside of stats, we would try to be consistent even between sub-packages.
Ok, I'll leave curve_fit alone, and I think I'll descope this PR to ensure that _contains_nan is not called for mode (and maybe a few other stats functions) when nan_policy = 'propagate'. The discussion of whether a fourth option is needed can be tabled.

I see it in CI logs once in a while, but those logs are hard to search - I'll try to comment here the next time I see it.

I've seen it in SciPy CI too, but I now have a conda-forge CI job open (full log and noticed it, so let me comment before I forget again. This warnings summary should be clean, and as you can see the majority of warnings are from nan_policy:
=============================== warnings summary ===============================
optimize/tests/test_minimize_constrained.py::TestBoundedNelderMead::test_outside_bounds_warning
  $PREFIX/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py:779: OptimizeWarning: Initial guess is not within the specified bounds
    minimize(prob.fun, [-10, 8],

sparse/linalg/_isolve/tests/test_iterative.py::test_maxiter_worsening[tfqmr]
  $PREFIX/lib/python3.9/site-packages/scipy/sparse/linalg/_isolve/tfqmr.py:148: RuntimeWarning: divide by zero encountered in scalar divide
    d = u + (theta**2 / alpha) * eta * d  # [1]-(5.5)

sparse/linalg/_isolve/tests/test_iterative.py::test_maxiter_worsening[tfqmr]
  $PREFIX/lib/python3.9/site-packages/scipy/sparse/linalg/_isolve/tfqmr.py:148: RuntimeWarning: invalid value encountered in scalar divide
    d = u + (theta**2 / alpha) * eta * d  # [1]-(5.5)

sparse/linalg/_isolve/tests/test_iterative.py::test_maxiter_worsening[tfqmr]
  $PREFIX/lib/python3.9/site-packages/scipy/sparse/linalg/_isolve/tfqmr.py:148: RuntimeWarning: invalid value encountered in scalar multiply
    d = u + (theta**2 / alpha) * eta * d  # [1]-(5.5)

stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed--3-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed--2-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed--1-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed-0-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed-1-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]

stats/tests/test_axis_nan_policy.py: 17 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_stats_py.py:1141: RuntimeWarning: Mean of empty slice.
    mean = a.mean(axis, keepdims=True)
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_full[mixed-2-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
stats/tests/test_axis_nan_policy.py::test_axis_nan_policy_fast[mixed-1-omit-wilcoxon-args5-kwds5-1-3-True-<lambda>]
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_morestats.py:3428: UserWarning: Sample size too small for normal approximation.
    warnings.warn("Sample size too small for normal approximation.")
  $PREFIX/lib/python3.9/site-packages/scipy/stats/tests/test_axis_nan_policy.py:244: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.
    res1db = unpacker(hypotest(*data1d, *args,

stats/tests/test_axis_nan_policy.py: 17 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_stats_py.py:1417: RuntimeWarning: Mean of empty slice.
    mean = a.mean(axis, keepdims=True)

stats/tests/test_axis_nan_policy.py: 85 warnings
  $PREFIX/lib/python3.9/site-packages/numpy/core/fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.
    return _methods._mean(a, axis=axis, dtype=dtype,

stats/tests/test_axis_nan_policy.py: 17 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_stats_py.py:1304: RuntimeWarning: Mean of empty slice.
    mean = a.mean(axis, keepdims=True)

stats/tests/test_axis_nan_policy.py: 21 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_axis_nan_policy.py:376: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.
    return hypotest_fun_in(*args, **kwds)

stats/tests/test_axis_nan_policy.py: 21 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_axis_nan_policy.py:502: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.
    res = hypotest_fun_out(*samples, **kwds)

stats/tests/test_axis_nan_policy.py: 17 warnings
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_stats_py.py:1141: RuntimeWarning: Mean of empty slice.
    mean = a.mean(axis, keepdims=True)

That RuntimeWarning reported in https://github.com/scipy/scipy/issues/16595 really isn't in the code anymore, so these are unrelated. But I can take a look at these.

Let's take this as an example:
  $PREFIX/lib/python3.9/site-packages/scipy/stats/_stats_py.py:1304: RuntimeWarning: Mean of empty slice.
    mean = a.mean(axis, keepdims=True)

While this warning is generated in a _axis_nan_policy test,  stats.kurtosis([]) has emitted this warning for much longer because it uses np.mean internally. Many functions in SciPy call np.mean, so if they don't provide special logic to deal with empty arrays, they'll probably produce this warning.
What behavior do you prefer in these cases? Do you think these should be silenced or, since NumPy thinks mean should warn when it gets an empty slice, should these functions produce their own warnings when they get an empty slice?

stats.kurtosis([]) has emitted this warning for much longer because it uses np.mean internally

That's a different question I think - I am not a fan of these warnings, but whether user code generates a warning is not the same as the requirement on our own test suite to filter out all warnings.
Line numbers from above seem to have changed so I can't be sure, but I suspect the problem is this kind of pattern:
            try:
                res1da = nan_policy_1d(hypotest, data_raveled, unpacker, *args,
                                       n_outputs=n_outputs,
                                       nan_policy=nan_policy, paired=paired,
                                       _no_deco=True, **kwds)
            except (RuntimeWarning, ValueError, ZeroDivisionError) as ea:
                ea_str = str(ea)

The except disables our usual test suite behavior that warnings get turned into errors, which is the mechanism to enforce that running the tests is clean of warnings.

That's a different question I think - I am not a fan of these warnings,

Can we silence these warnings, then? For instance, stats.skew([]) currently emits four warnings and returns nan.
/usr/local/lib/python3.10/dist-packages/scipy/stats/_stats_py.py:1304: RuntimeWarning: Mean of empty slice.
  mean = a.mean(axis, keepdims=True)
/usr/local/lib/python3.10/dist-packages/numpy/core/_methods.py:181: RuntimeWarning: invalid value encountered in true_divide
  ret = um.true_divide(
/usr/local/lib/python3.10/dist-packages/numpy/core/fromnumeric.py:3474: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/usr/local/lib/python3.10/dist-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)

Do we need them? What would be the path to remove it (e.g. mailing list, deprecation, etc.)?

We don't need these warnings, and I think they can simply be removed in SciPy - they're not there on purpose, only because of a NumPy-internal detail. As a rule, code with a well-defined expected answer should not emit warnings.
What would be even better though is to get rid of them in NumPy. Those warnings were added on purpose a long time ago; I think it was a little controversial (can't remember details) and did not work out well. It requires someone to drive that discussion and implement it, so if you'd be up for that, that could at least get a decision made. I had a quick look, it's pure Python code in numpy/lib/nanfunctions.py for nanmean & co, but other stuff is buried in C code.

I'll test the waters.


feature request: log, see if AI has done some work

As dyslectic person I use AI to correct my spelling frequent. But when you revisit a page you can't be 100% sure if this was corrected by AI or not. Maybe it is possible to mark fields that are done by AI so you can see exactly that this field is rewritten or written by prompt X.
I think about an interface like in wagtail-localize that shows with color marking. Or maybe like the commenting system the + icon

Great idea thanks @onno-timmerman - we've been discussing logging AI requests and I've created #82 which I'd expect to be a prerequisite for making this happen.


Problem with delegateEvents() functionality and Subviews

There are many cases where you have to deal with a heavyweight SubView that is an integral part of a MainView (in my case a visualization, involving lots of data=view-state). I just want to setup that SubView once, within the MainView's constructor and keep a reference.
When it comes to rendering, I just have to render the MainView first, which injects the container element where the subview will live. Then I render the subview.
This is all working fine, except declarative events are not working for the subview. That's because Backbone.View#delegateEvents() is only called on view construction. Since at construction time there's no container element in place, no events can be bound. I could solve this by calling this.delegateEvents() manually at the end of the subview's render method. However, is there a better solution? Isn't this a common use-case? In my case I simply want to reduce the number of view constructions to a minimum.
Here's some code that is working, but could (should) be improved.
https://gist.github.com/905962

@jashkenas - hoping you can clear up some confusion - I thought events can't be delegated until this.el is inserted into the DOM?  Or is this not the case?  Thanks.

A large part of the point of using declarative events and Backbone views is that they can be delegated at any time -- regardless of if the view happens to be in the DOM or not.

Ah, thanks for the response - that definitely would make more sense.  Do you know any reason why declarative events would get stripped / not delegated when a view is inserted into the DOM as part of an event callback?
For example:
            page.on('change:current', function(){
                if(page.get('current')){
                    $('#page_container').html(page.views.content.$el);
                }
            });

(where page.views.content is a View) inserts page.views.content.$el into the DOM but none of the declarative events for the sub-views of page.views.content are bound.  Yet running $('#page_container').html(page.views.content.$el) in firebug works perfectly (events are set).

@darbyw I think the issue is likely due to repetitively calling html with the same element.  Before replacing the content, jQuery "cleans" the html being replaced, which includes removing all event handlers.  This is likely why your handlers are being removed.  Here's a jsfiddle illustrating the issue.
You can prevent this by using detach.

@braddunbar Many thanks!  That was the problem (in many different places).

Here is a post on the issue as well: http://tbranyen.com/post/missing-jquery-events-while-rendering


configuration/listener_filters/tls_inspector.md

原文：https://github.com/servicemesher/envoy/tree/master/configuration/listener_filters/tls_inspector.md


Remove template chunks that trim on both ends

Description
Using both {{- and -}} causes line breaks on both ends to be removed, sometimes resulting in unintended consequences.
e.g.
This code results in the following render:
- type: replace
  path: /instance_groups/name=scheduler/jobs/name=ssh_proxy/properties/quarks?
  value:
    ports:
    - name: ssh-proxy
      protocol: TCP
      internal: 2222
    run:
      healthcheck:
        ssh_proxy:
          readiness:
            httpGet:
              port: 2223

# Add necessary labels to the scheduler instance group so that the service can select it to create
# the endpoint.- type: replace
  path: /instance_groups/name=scheduler/env?/bosh/agent/settings/labels/app.kubernetes.io~1component
  value: "ssh-proxy"

The array dash is no more, and the path and value keys override the ones from the previous element.
Motivation and Context
Fixes #414.
Fixes #437.
How Has This Been Tested?
The change contains a script that lints for this, so it doesn't happen again.
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)

Checklist:

[ ] My code has security implications.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

I deployed 2 variations of this PR:

with credhub and diego.
without credhub, with eirini.
Both deployed fine and passed smoke-tests. With diego, it also passed CATS. With eirini, it fails CATS, but nothing related to this PR.
I'll go ahead and merge while CI is not ready for Helm 3.


Project: Bare metal forms helpers

In this Project, we gradually replaced HTML form with Rails  form functionality

Building HTML form and connecting with database
Build a form for creating a new user
Create the proper input tags
Include your own authenticity token
Adding #create in user controller
Change form by using #form_tag
Enhancing functionality with #form_with
Update routes and controller to handle editing an existing user.
Modify form view to display a list of the error messages attached to the failed model object if you fail validations.

STATUS: CHANGES REQUIRED 🔴 ♻
Hello @marijanbrvar 👋🏾 👋🏾 , congratulations on making such great progress on this milestone 😄 Here is my summary of this PR ⬇
Highlights

[ ] You have worked on the issues arising from the README file
[ ] Your code is clean, no commented code
[ ] A 👏🏾 for writing a clear and descriptive PR

To improve
Here are previous comments that are yet to be implemented 😄

[ ]   Allow user resources only for new, create, edit, update. This should be done from the config/routes.rb resources :users, only: [:new, :create, :edit, :update]
[ ] edit action should also use user params to find @user i.e. @user = User.find(params[:id]) (screenshot from Odin)
[ ] Since now you know how to find a user based on id from params, lets update your update action with the same params.
i.e. @user = User.find(params[:id]) (screenshot from Odin)

That's all :smile: kindly submit another review when done.
If you are stuck at any point or have any questions, let me know by leaving a comment here and mentioning me @mimipeshy. I will be happy to help
Regards
Peris Ndanu

STATUS: APPROVED :dancing_women: :partying_face:
Hello, team @marijanbrvar   👋🏾 👋🏾  You did a pretty good job in this project. 1st_place_medal. You have worked on the previous comments left by the TSE, keep it up ✍🏾 . With that, I approve of this project. All the best in the next projects :technologist:
Regards
Peris Ndanu


Adding additional capabilities to scripts in Powershell

Added the following features.

Wait
Run Once
Stop On Script Error
Showing the window
Time outs

In the readme.md, line 30:
"Each exe defined in the application manifest can have their own scripts."
it would be nice to make it clear that this is the application portion of the config.json file, and not the AppXManifest.xml file inside the application package.


Add support for buildargs in POST /build.

I want this to try to implement affinity support for building images into swarm.
https://github.com/docker/swarm/issues/1282
I didn't find any test for BuildImage. I'm willing to try to write one, with a bit of guidance.
My code is very similar to the one in Docker's api/client package, so maybe I can get away with that?
https://github.com/docker/docker/blob/ef4b053b9064888eadf25e48f7f1d4d5896da8fb/api/client/build.go#L271
Thank you for taking a look at this!

LGTM
ping @vieux

+1

@vieux Can you please take a look at this? I'd be happy to address your feedback!

I'll take a look asap.

Thank you very much! :heart:

LGTM

Once again, thanks so much!


Updates to Global landing page

Tweaks to make global landing page more like the mockup and what feedback indicated it should look like. A preview (sans images, since they aren't in the Project Metadata) is here.

Cleans up navbar (removes irrelevant items)
Adds interactivity to each Project's card (on hover, expands)
Adds support for rendering project images

Copy discussion is here: https://docs.google.com/document/d/1jn7WcfPMPTgDEWD54e6f6ozyoZzlI4qB50xbVBBNKH0/
We can also discuss the following here:

whether to deploy as https://crfm.stanford.edu/helm/global/latest/ or something else
whether to make global landing page or lite the default redirect for https://crfm.stanford.edu/helm/

I think this should just live at https://crfm.stanford.edu/helm/ i.e. we no longer redirect to Lite by default.


Undocumented autohintOTF fails many builds

A lot of our builds are failing with the new gftools version because it tries to run psautohint on the OTF files and many of our source files are not set up for this.
For now we can disable this behaviour by setting autohintOTF to false, but it would be good to review why this is now default and perhaps document it.

You're right, this should be disabled by default.
It was default because I thought (a) auto hinting OTFs was probably a good idea (and someone asked for it), and crucially (b) because I thought psautohint was similar to ttfautohint in that you can just run it and it hints stuff automatically. I didn't realise it needed set up. I'll turn it off.


[Title renders included] Make menu logo show their codes.

1.20+ Title image:

1.19- Title image:

(Yes. Ugly look but that is the format.)
Mojang studios replacement image:

The key in the images doesn't exist in the language files. I'm afraid that changing the logo to these images will cause ambiguity.
After all, this resource pack is for technical use, and it would be bad if someone thinks that the key does exist in the language files. Perhaps other options could be considered?


Error on configuration

I have this error on deployment but not locally. :
Script cache:clear returned with error code 255
remote:        !!  PHP Fatal error:  Uncaught TypeError: Biig\Component\Domain\Model\Instantiator\DoctrineConfig\Instantiator::__construct(): Argument #1 ($dispatcher) must be of type Biig\Component\Domain\Event\DomainEventDispatcherInterface, null given, called in /tmp/build_9d582b29/vendor/swag-industries/doctrine-domain-events/src/Model/Instantiator/DoctrineConfig/ClassMetadataFactory.php on line 30 and defined in /tmp/build_9d582b29/vendor/swag-industries/doctrine-domain-events/src/Model/Instantiator/DoctrineConfig/Instantiator.php:14

Any idea ?

More infos :
It's related to environment.
On the same server, composer install works perfectly, composer install --no-dev crashes

Sorry I missed that issue but it's project-related and not an issue of the library (I know it for sure 😜 ).


Julia/more metrics ambari dashboard

Updates ambari dashboard with more metrics and parametrization

ambari.can_connect
Returns OK if the cluster is reachable, CRITICAL otherwise.
ambari.state
Returns OK if the service is installed or running, WARNING if the service is stopping or uninstalling, or CRITICAL if the service is uninstalled or stopped. For a complete enumeration, see [this file][8].

Hallo, those changes are not relevant to this PR so I've created a new one: https://github.com/DataDog/integrations-core/pull/4015


Using Pre-Downloaded Domain Model is messy

Hey there :)
I'm using spacy-pkuseg version 0.0.33. Since this is spacy-pkuseg, I'm not sure if this is the right place to report. I haven't looked through the your/their source code.
At some point pkuseg loads a domain model:
Downloading: "https://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/mixed.zip" to /home/python/.pkuseg/mixed.zip 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 47330222/47330222 [00:01<00:00, 39315899.62it/s] WARNING: features.msgpack does not exist, try loading features.pkl
My goal is to pre-download this requirement such that it is not downloaded at runtime.
My first approach was to put the mixed.zip file at ~/.pkuseg/mixed.zip. This doesn't work. pkuseg re-downloads the file.
My second approach was to extract the mixed.zip contents and put it into ~/.pkuseg/mixed. I then deleted the original zip file. This doesn't work. pkuseg re-downloads the file.
My third approach was to keep and not remove the mixed.zip after extraction at ~/.pkuseg/mixed.zip. This did work, i.e. the file was not re-downloaded.
My issue is that I would expect both the first and second approach to work out of the box.
Is this some error in my application or is this some faulty check within pkuseg / spacy-pkuseg?
Thank you

@.***，本次回复为系统自动回复！


Issues with linking the Dynamic Libraries and Framework

Hello,
I've been trying to get MoltenVK to work on Xcode 10, but I keep getting this error -
dyld: Library not loaded: @rpath/vulkan.framework/Versions/A/vulkan
Referenced from: /Users/[USER]/Library/Developer/Xcode/DerivedData/zelmVulkan_2-cvwobrsogaphvjaktlktklefnfkd/Build/Products/Debug/zelmVulkan_2
I've tried copying files during compile time, with no joy either. Is it an issue with the way I'm linking, or general bug with Xcode 10?

The linker error message suggests you may not setting the "Runpath Search Paths" setting in Xcode. Explanation: the @rpath in a dylib's install name is substituted in turn with each of the paths specified by LC_RPATH load commands in the main executable, which you set from the command line with the linker's -rpath option, and which Xcode sets for you via the "Runpath Search Paths" setting.
(Also, I'm pretty sure vulkan.framework is from LunarG's SDK.)


Fleet: Add icons to badges on Fleet Dashboard

To better convey the notion of status for each resource type displayed on the Fleet dashboard, one should add icons to represent each status in order to reinforce that idea to the user
Currently

How it should be

PR here: https://github.com/rancher/dashboard/pull/5298

On 2.6-head commit id: f904267

Icons are available on Fleet Dashboard


Immutable context

This PR uses the latest OGNL version which drops access to #context via a magical key and makes OgnlContext a bit immutable.
OGNL 3.2 version notes
WIP

Sounds like a very good idea! A short check showed that my apps are not affected 😆

Below is my new design which may be helpful as an example for whom is affected. Those are about access to %{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}.
I wrote following Filter which operates after struts-prepare but before struts-execute. It supplies an utility into request scope:
package utils;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.StrutsStatics;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.util.ValueStack;

/**
 * @author zamani
 *
 */
public class MYStrutsPrepareFilter implements Filter {

	private MYUtils MYUtils;

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		MYUtils = new MYUtils();
	}

	@Override
	public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
			throws IOException, ServletException {

		ValueStack stack = ActionContext.getContext().getValueStack();
		stack.setValue("#request['MYUtils']", MYUtils);

		chain.doFilter(req, res);
	}

	@Override
	public void destroy() {
		MYUtils = null;
	}

	public class MYUtils {
		public String getRequestURI() {
			HttpServletRequest httpsr = ((HttpServletRequest) ActionContext.getContext()
					.get(StrutsStatics.HTTP_REQUEST));
			return httpsr.getRequestURI();
		}
	}
}

Then "#request['MYUtils'].requestURI" can be used in jsp, instead.

Spoted same #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] expression here. @yasserzamani What do you use it for?

@aleksandr-m , not me but my workmate has used it as an ID for each jsp. I do not know his work details but in general, he then uses this ID to decide where he should place the result after an AJAX call. For example a parent jsp that have div1, div2 and div3 calls an AJAX then if result was from '/APP/jsp/customer/error.jsp' the it puts the result in div3, if result was from '/APP/jsp/customer/payment.jsp' the it puts the result in div1, if result was from '/APP/jsp/customer/free.jsp' the it puts the result in div2.

Can one of the admins verify this patch?

Coverage decreased (-0.0007%) to 46.168% when pulling a37eafa710e7146da37b4f1282d368134733ca05 on lukaszlenart:immutable-context into 845ab413cd077d06de8dcc33c68a1e236067b346 on apache:master.

Coverage decreased (-0.0007%) to 46.168% when pulling a37eafa710e7146da37b4f1282d368134733ca05 on lukaszlenart:immutable-context into 845ab413cd077d06de8dcc33c68a1e236067b346 on apache:master.

@apache/struts-committers this is ready for another look.

LGTM :+1:  Thanks!


Display user's IP details on load

For clarification, this issue is looking to have the user's IP information be the default display value when the page first loads?

@ezioxatul Yes, I would love to take this one on if it's still available

Sure


Rename subscription_order to installment_order

@aldesantis can you provide a bit of context on this? Seems like a fairly easy change that can help with code clarity, if I am not mistaken.

@chrean I can provide more context here.
The meaning of the spree_orders.subscription_order column is to tell apart orders generated from a subscription (subscription_order: true) from orders generating subscriptions (subscription_order: false). A little bit of a tongue twister, but renaming it to installment_order would be more accurate because it's way clearer what it means.
This however feels like a breaking change.

Thanks for the context @nirebu : this confirms my feelings.
Probably not something we want to work on right away, but something to keep in mind for additional clarity on the code.


Doesn't work with PHP7 return type declarations

I tried to mock  a class which have return type declared in it and got a fatal error:

FBMockFramework_AndreasGlaser__NS__PPC__NS__PPC_FBMock__Mock_FBMock__MockObject::getClient() must be compatible with AndreasGlaser\PPC\PPC::getClient()

From backtrace I can see that fbmock didn't prepare correct declaration for this method.

Hey you mind giving me an example that breaks? Haven't really maintained this project for a while tbh but maybe someone else could take a crack at it if they have an example case (or I can at some point).


Some fluent methods still took string for Field

instead of Field directly, binary breaking change should only be pulled
into master

Nice catch, LGTM :+1:


Monitor Failure message stays while switching to another function monitor page

Environment URL: functions.azure.com
Corresbonding Ibiza URL: ms.portal.azure.com
App runtime version: ~1
Proxy runtime version: ~0.2
Private Site Extension: 1.0.10913
Repro steps:

Create a new function app and two new functions
Make some success invocation log for FunctionA and some failure log for FunctionB
Open FunctionA monitor page and click on a failed invocation log, verify Invocation details shows like Figure1
Open FunctionB monitor page, verify the Failure parameter still in Invocation details like Figure2

Please refer to snapshot:

Closing because the Monitor tab will be deprecated soon


--min-time/--max-time interferes with pushdown on sidecar

Noticed a small problem with pushdown and --min-time/--max-time. Since those flags modify the min/max time of a query it means that the data points will fall on different timestamps. With big enough step parameter it might just happens that even the lookback delta will not be enough - the upper PromQL engine will not "see" those data points and show no data.
Thus, we probably won't be able to support exact --min-time/--max-time values because the start/end times need to be aligned to the original min/max time and the step parameter.

Hey, I would like to work on this issue, can I get some guidance regarding how to proceed, Thank you!

Actually, this also applies to when Sidecar uploads a block and the minimum timestamp becomes a fixed value. Sorry, this was a bit of a harder problem that we wanted to fix ourselves so I went ahead and did it: https://github.com/thanos-io/thanos/pull/5142.


Removing Python extension from Arm templates for sample apps

Removing Python extension from Arm templates for sample apps as it is already part of RD task.
#1609163

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


Wrong keydown code produced in a browser when using typeString method

If you use robot.typeString() method to type a key and listen for this in a web application via keydown event, you get event object with incorrect code. For example for key 3 I'm getting code=KeyA. I have tested this on MacOS with latest Chrome, Firefox and Safari.
To reproduce go to this page, that registers keydown event listener: https://codepen.io/romario333/pen/vjxzaW
Then run this simple script and make sure browser has focus when typeString() is executed:
robot = require("robotjs");

setTimeout(() => {
	robot.typeString("3");
}, 5000);

Expected Behavior
keydown with code=Digit3 is emitted in a web browser
Current Behavior
keydown with code=KeyA is emitted in a web browser
Context
I ran into this while trying to use https://barcodetopc.com/ with my web application. Note that barcode readers generally act as a keyboard and emit keyboard events with a value of scanned barcode.
Your Environment

RobotJS version: 0.5.1
Node.js version: v8.11.1
Operating System: macOS High Sierra 10.13.4 (17E199)
Browsers: Chrome 66, Firefox 59, Safari 11.1

This issue has been closed because it has been inactive for > 240 days.
You may reopen this issue if it has been closed in error.


Can you generate new premium codes if you make a new instance?

I'm just wondering.

turns out you can. It's -gpc if anyone was wondering.