improve google stats reporting

somestimes these files are really small (<1MB) sometimes just a few bytes. These get reported as 5MB over even more.
with these (stored_file_from_memory, store_file_from_string) calls it is trivial to get the actual size of data, this helps steer not too far away from the actual sizes.
this might lead to undercounting in case of retries but with such small sizes this should be fine

About this change - What it does

Resolves: #xxxxx
Why this way

Codecov Report
Patch coverage: 34.37% and project coverage change: +0.15 :tada:

Comparison is base (13c4ac9) 56.75% compared to head (f92fe0b) 56.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   56.75%   56.90%   +0.15%
==========================================
  Files          29       29
  Lines        3325     3365      +40
==========================================
+ Hits         1887     1915      +28
- Misses       1438     1450      +12

Impacted Files
Coverage Δ

rohmu/object_storage/google.py
36.40% <34.37%> (+4.81%)
:arrow_up:

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

we might not be caring about numbers in case of backup. But these becomes revelant in case of replication as there the $source and $destination matters

it should be okay, as long as nothing seems absolutely wrong it should be okay to merge. in worst the numbers/metrics would be wrong, but nothing relies on these metrics right away.

Also under-reporting is troublesome but overreporting (not by huge error) is also fine.


DAT-18563 :: Unhide tag parameter for UpdateTestingRollback command

Impact

[x] Bug fix (non-breaking change which fixes expected existing functionality)
[ ] Enhancement/New feature (adds functionality without impacting existing logic)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

During testing, @James Bennett discovered that the updateTestingRollback command has a hidden argument for tag.  The argument has always been a part of the command, but was accidentally marked as hidden during command framework refactoring.  It appears to be working as designed but should be tested further after unhiding it.

With this PR, we just unhide TAG command argument and update the corresponding tests.

Things to be aware of

Things to worry about

Additional Context

Related PD ticket: https://datical.atlassian.net/browse/PD-5112
@adrian-velonis1 - @AMBERMW13: I know you guys are already aware of PD-5112, but just tagging you here as well just in case.


Comparative benchmarks

Although performance isn't the only way we're competing with Lodash, it'd be great to have perf comparisons with Lodash and other similar libraries wherever we cover the same use cases.
We don't need to compare ourselves with FP libraries, since we're not actually competing with them. We don't need to compare with Underscore, since it's legacy at this point. Any compared libraries should have 1K+ stars on Github (maybe more).

Do you think about comparing specific functions, like in the clone function documentation having a category that compares with clone functions from other libs or do you think about something more general? Another thing would be a .md file, inside readme or are you thinking about a documentation page?

@MarlonPassos-git That idea might deserve its own discussion, but I am referring to performance benchmarks. That means adding bench calls to our benchmarks for competing libraries with lookalike functions.

@aleclarson Is it something like this you have in mind?

(Apologies for the unflattering example 😅)
https://gist.github.com/crishoj/a6396844f88e212e911893b49b5c54de

Hey @crishoj, thinking about it now, I would prefer all of the comparative benchmarks to be kept in one module, rather than in the function-specific benchmark files (which are intended to detect perf regressions, so they will run on any PR that modifies that particular function).
Also, I wonder if we shouldn't leave Radash out of the comparisons, since it's unmaintained. 🤔

For me, it really doesn't make sense to keep bentmarks for libs that are not being maintained(radash or Underscore). The ones that come to mind are:

ramda
lodash
immutable-js

Perhaps the bench helper could have an option to choose whether to run comparative implementations or only radashi.
Perf tracking in CI would be great. Something along the lines of https://github.com/benchmark-action/github-action-benchmark

ramda

lodash

immutable-js (have some similar functions)

The design philosophies of Ramda and Immutable are too different to warrant a comparison, I think. Might be worth comparing to es-toolkit though.

Perhaps the bench helper could have an option to choose whether to run comparative implementations or only radashi.

That might require more effort than it's worth. 🤔  Also, if we did put comparative benchmarks in the same file as normal benchmarks, we'd have to not assume that lodash et al are installed, because the template repository I'm working on doesn't have them as dependencies, which means copying comparative benchmarks into “your own Radashi” would be troublesome. (Note: I'll be writing a post about the template repository soon)

Perf tracking in CI would be great. Something along the lines of benchmark-action/github-action-benchmark

We have a GitHub workflow (see here) using Codspeed's Vitest plugin, but it's currently disabled until I have time to fix the formatting issues. It seems when Codspeed comments on a PR, its performance report doesn't include the describe("sum", …) description, making it hard to read. I'll be experimenting with this sometime next week, I think.

Quick update:

We now have benchmark reports for PRs (see here for an example). It's a hand-rolled solution using Vitest benchmarking and GitHub actions (the script used is here).

And here's my proposal for comparative benchmarks:

Add a comparisons folder, containing a package.json (with only lodash for now) and a single comparisons.bench.ts file, containing all comparable functionality.
My reason to keep all comparison benchmarks in one file is that benchmarks are not a lot of code, so there's nothing(?) to gain from spreading them out in this case. It'll provide a nice overview of the overlap between Radashi and Lodash (and eventually, other similar libraries).
Another reason to keep them in one file: We're not limited to strict one-to-one comparisons. For example, we could compare how to accomplish task A with both libraries, even if that involves multiple functions.
Update the pnpm bench command to use a custom shell script that checks if comparisons/node_modules exists (which are not installed by default when running pnpm install from the project root), and if the dependencies are installed, include the comparative benchmarks by passing them into vitest bench along with benchmarks/**/*.

If anyone wants to tackle this, let me know or just assign yourself to this issue. Preferably, leave some time for feedback from others in the community, in case anyone has objections or ideas for improvement.

ok I can work on that, before that I would like to clarify if this can be the "standard" that we will follow.
For all the benchmarks that we have nowadays for radashi to have a comparative version. For example clamp I only have one breach so it would be something like this:
import * as lodash from 'lodash'
import * as radashi from 'radashi'

const comparativeLibs = [
  { name: 'radashi', lib: radashi },
  { name: 'lodash', lib: lodash }
]

describe.each(comparativeLibs)('function clamp in the library: $name', ({lib}) => {
    bench('with no arguments', async () => {
      lib.clamp(100, 0, 10)
      lib.clamp(0, 10, 100)
      lib.clamp(5, 0, 10)
    })
})

but the function max have two bench, following the logic then it would be something like this:
import * as lodash from 'lodash'
import * as radashi from 'radashi'

const comparativeLibs = [
  { name: 'radashi', lib: radashi },
  { name: 'lodash', lib: lodash }
]

describe.each(comparativeLibs)('function max in the library: $name', ({lib}) => {
  bench('with list of numbers', () => {
    const list = [5, 5, 10, 2]
    lib.max(list)
  })

  bench('with list of objects', () => {
    const list = [
      { game: 'a', score: 100 },
      { game: 'b', score: 200 },
      { game: 'c', score: 300 },
      { game: 'd', score: 400 },
      { game: 'e', score: 500 },
    ]
    lib.max(list, x => x.score)
  })
})

or instead of repeating the describe we can create multiple benches for each lib. This way the output shows which lib is faster:
import * as lodash from 'lodash'
import * as radashi from 'radashi'

const comparativeLibs = [
  { name: 'radashi', lib: radashi },
  { name: 'lodash', lib: lodash }
]

describe("clamp", () => {
    for (const {name, lib} of comparativeLibs) {
        bench(`${name}: with no arguments`, () => {
          lib.clamp(100, 0, 10)
          lib.clamp(0, 10, 100)
          lib.clamp(5, 0, 10)
        })
    }
})

import * as lodash from 'lodash'
import * as radashi from 'radashi'

const comparativeLibs = [
  { name: 'radashi', lib: radashi },
  { name: 'lodash', lib: lodash }
]

describe("max", () => {
    for (const {name, lib} of comparativeLibs) {
        bench(`${name}: with list of numbers`, () => {
            const list = [5, 5, 10, 2]
            lib.max(list)
        })

        bench(`${name}: with list of objects`, () => {
            const list = [
                { game: 'a', score: 100 },
                { game: 'b', score: 200 },
                { game: 'c', score: 300 },
                { game: 'd', score: 400 },
                { game: 'e', score: 500 },
            ]
            lib.max(list, x => x.score)
        })
    }
})

@MarlonPassos-git I think we'll want one describe per scenario, so the "BENCH Summary" report is only comparing identical scenarios.
I'm not sure about doing the for loop, since Lodash (and eventually other libraries) may have differing APIs and I'd rather use them directly instead of needing a compatibility shim. Of course, that means more manual work, which sucks, but it doesn't seem avoidable?
So, to be clear, I'm thinking something like this:
const libs = {radashi, lodash} as const

type Library = typeof libs[keyof typeof libs]
type Benchmark = (_: Library) => void

const benchmarks: Record<keyof radashi, Benchmark> = {
  max: _ => {
    const list = [5, 5, 10, 2]
    _.max(list)
  },
  dash: _ => {
    const input = 'TestString123 with_MIXED_CASES, special!@#$%^&*()Characters, and numbers456'
    if (_ == lodash) {
      _.kebabCase(input)
    } else {
      _.dash(input)
    }
  },
}

for (const [name, run] of Object.entries(benchmarks)) {
  describe(name, () => {
    for (const [name, lib] of Object.entries(libs)) {
      bench(name, () => run(lib))
    }
  })
}

@MarlonPassos-git You'll probably find this useful: https://gist.github.com/aleclarson/a7198339c0a68991cb6c94cf9d60fa29. It's the Lodash comparison data I've collected so far.


Editing and running large jupyter notebook files extremely slow when operating on a remote machine

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

connect to a remote linux server using Remote-SSH extension
open a big jupyter notebook file containing multiple figures
type print(1)
this command takes 5s to execute
note: I am editing the notebook at a remote linux machine, no matter I use local kernel (of course local kernel on server), or I start a jupyter server manually in background and let vscode connect to kernel of this "remote" server, this issue exists.

also, I observed the bandwidth usage spiked when I was opening the file, saveing the file and running the command, so I guess is this extension working by pull the remote notebook to local and then push it back to remote? if the answer is yes, I think this may be the origin of the problem?
In my scenario (bioinformatics analysis like single-cell rna-seq data processing), plotting multiple figures in the save notebook is a common operation, I think the notebook may easily go as big as 20M, so this issue is annoying.
this is the file (zipped) I use to reproduce this issue (to reproduce, don't run cells containing picture output, just run print(1) cell)
large_notebook.zip
VS Code Version
1.73.1
Jupyter Extension Version
v2022.9.1303220346
Jupyter logs
Visual Studio Code (1.73.1, ssh-remote, desktop)
Jupyter Extension Version: 2022.9.1303220346.
Python Extension Version: 2022.18.2.
Workspace folder /home/username/playground/temp/2022.12.03.jupyter_slow_issue
error 01:28:34.158: Exception while attempting zmq : [Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/node_modules/zeromq/prebuilds/linux-x64/electron.napi.glibc.node)
	at Object.Module._extensions..node (node:internal/modules/cjs/loader:1187:18)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.a._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:118:14563)
	at Function.v._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64900)
	at Function.w._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64268)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at load (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/node_modules/node-gyp-build/index.js:1:566)
	at Object.<anonymous> (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/node_modules/zeromq/lib/native.js:1:136)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.a._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:118:14563)
	at Function.v._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64900)
	at Function.w._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64268)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/node_modules/zeromq/lib/index.js:1:82)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.a._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:118:14563)
	at Function.v._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64900)
	at Function.w._load (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:113:64268)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.92747 (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:17:593435)
	at __webpack_require__ (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:17:1481375)
	at l.zmqSupported (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2221028)
	at l.isSupportedForLocalLaunch (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2220771)
	at l.get isSupported [as isSupported] (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2220681)
	at t.registerTypes (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2235774)
	at /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1640908
	at /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1641663
	at /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1641671
	at t.activate (/NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1641793)
	at Function._callActivateOptional (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:104:17678)
	at Function._callActivate (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:104:17338)
	at /NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:104:15133
	at async w._activate (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:90:8304)
	at async w._waitForDepsThenActivate (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:90:8246)
	at async w._initialize (/NAS392047/home/username/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/out/vs/workbench/api/node/extensionHostProcess.js:90:7610)] {
  code: 'ERR_DLOPEN_FAILED'
}
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 01:28:34.479: LSP Notebooks experiment is disabled -- not in treatment group
info 01:28:35.061: Preferred Remote kernel for /home/username/playground/temp/2022.12.03.jupyter_slow_issue/large_notebook.ipynb is undefined
info 01:28:35.080: Preferred Remote kernel for /home/username/playground/temp/2022.12.03.jupyter_slow_issue/large_notebook.ipynb is undefined
info 01:28:35.081: Find preferred kernel for /home/username/playground/temp/2022.12.03.jupyter_slow_issue/large_notebook.ipynb with metadata {"kernelspec":{"display_name":"Base Python 3.8.10","language":"python","name":"base"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.8.12"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"243c53d8bbc9a8f04ffea94a8cd938689e243d149b5d754965677f26be0a94ba"}}} & preferred interpreter /home/username/anaconda/envs/jupyter_slow/bin/python
info 01:28:35.371: Preferred Remote kernel for /home/username/playground/temp/2022.12.03.jupyter_slow_issue/large_notebook.ipynb is undefined
info 01:28:35.372: Preferred kernel .base./home/username/anaconda/python./home/username/anaconda/python.-m#ipykernel_launcher is exact match or top match for non python kernels, (false, undefined, true, false)
info 01:28:35.373: PreferredConnection: .base./home/username/anaconda/python./home/username/anaconda/python.-m#ipykernel_launcher found for NotebookDocument: /home/username/playground/temp/2022.12.03.jupyter_slow_issue/large_notebook.ipynb
error 01:28:35.533: Execing shell command, Class name = b, completed in 353ms, has a falsy return value, Arg 1: "~/anaconda/envs/jupyter_slow && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py", Arg 2: "" [Error: Command failed: conda activate /home/username/anaconda/envs/jupyter_slow && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

	at ChildProcess.exithandler (node:child_process:399:12)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:526:28)
	at Pipe.<anonymous> (node:net:687:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate /home/username/anaconda/envs/jupyter_slow && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py"
}
error 01:28:35.638: Execing shell command, Class name = b, completed in 372ms, has a falsy return value, Arg 1: "~/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py", Arg 2: "" [Error: Command failed: conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

	at ChildProcess.exithandler (node:child_process:399:12)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:526:28)
	at Pipe.<anonymous> (node:net:687:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /NAS392047/home/username/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/pythonFiles/printEnvVariables.py"
}
info 01:28:35.813: Registering dummy command feature
info 01:28:39.105: Got env vars with python /home/username/anaconda/envs/jupyter_slow/bin/python, with env var count 56 and custom env var count 0 in 4027ms
info 01:28:39.146: Process Execution: > ~/anaconda/envs/jupyter_slow/bin/python -m pip list
> ~/anaconda/envs/jupyter_slow/bin/python -m pip list
info 01:28:41.589: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 6503ms
info 01:28:41.633: Process Execution: > ~/anaconda/bin/python -c "import jupyter"
> ~/anaconda/bin/python -c "import jupyter"
info 01:28:41.673: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 6587ms
info 01:28:41.711: Process Execution: > ~/anaconda/bin/python -c "import notebook"
> ~/anaconda/bin/python -c "import notebook"
info 01:28:41.810: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 6345ms
info 01:28:41.858: Process Execution: > ~/anaconda/bin/python -m pip list
> ~/anaconda/bin/python -m pip list
info 01:28:41.935: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 2ms
info 01:28:41.983: Process Execution: > ~/anaconda/bin/python -m jupyter kernelspec --version
> ~/anaconda/bin/python -m jupyter kernelspec --version
info 01:28:42.411: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 1ms
info 01:28:42.412: Got env vars with python /home/username/anaconda/bin/python, with env var count 116 and custom env var count 0 in 2ms

### Coding Language and Runtime Version

python v3, I've tried 3.7 8 9 11, all of them have this issue

### Language Extension Version (if applicable)

v2022.18.2

### Anaconda Version (if applicable)

4.10.1

### Running Jupyter locally or remotely?

N/A or Not sure

Strong +1! I've also been very blocked by this issue.

Digging into it, it looks like a pretty unavoidable issue of the plotting libraries I'm using - either plotly or holoviews injects about 3MB of Javascript when first run into the notebook file, so the file size automatically becomes pretty large.

Merging this into https://github.com/microsoft/vscode/issues/138784


Quiche roll<PHONE_NUMBER>5858

Update QUICHE from cb6f075f1 to 9ea017cd3
https://github.com/google/quiche/compare/cb6f075f1..9ea017cd3
```
$ git log cb6f075f1..9ea017cd3 --date=short --no-merges --format="%ad %al %s"

2023-03-13 martinduke Deprecate gfe2_restart_flag_quic_allow_smaller_packets.
2023-03-13 bnc Internal change
2023-03-13 vasilvv Fix QUICHE standalone build by providing a missing platform impl
2023-03-10 quiche-dev Add a handler for Capsules with an unknown type to Http3DatagramVisitor.
2023-03-09 martinduke Automated g4 rollback of changelist 515174710.
2023-03-09 martinduke Alter IP_TOS socket call for ECN based on platform. Fixes guitar failure. Respect existing DSCP configuration when setting ECN.
2023-03-08 martinduke Internal change
2023-03-08 martinduke Congestion Control interface for receiving ECN feedback.
2023-03-06 martinduke Internal change
2023-03-03 birenroy Defines HTTP/2 flags as an enum in http2_protocol.h.
2023-03-03 vasilvv Implement webtransport::Session::GetStreamById
2023-03-02 quiche-dev Remove workaround for Chromium's lack of thread_local.
2023-03-01 vasilvv Use QUICHE-provided mocks for WebTransport APIs.
```

Risk Level: low, no wire format change
Testing: existing tests passed
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A, ECN libraries is not used in Envoy.

/lgtm deps


Mf/409 on dupe job UUID

Done with initial pass.

@shamsimam I made changes in accordance with your suggestions.  This was a perfect opportunity to destructure function arguments, thanks!

One minor formatting comment, else lgtm.

Fixed the weird whitespace before the comment.  👍


The Research Library page + 2 topic tabs

[ ] Basic layout and styling for library page
[ ] 3 or so "tabs" of accordion content filled in
[ ] Tabs need to be able to load body text (markdown) with images in the body text (probably should implement using a separate directory for this feature, with an mdx file for each tab), as well as a frontmatter list of "resources" which are links to research articles
[ ] Other tabs can say "coming soon"

@touchRED some additional info:

Copy is here (starts on page 7): https://docs.google.com/document/d/1DdEfUUQ5ZsNBSvejBzCwBdyWUcHFmucwkEAjQ9ytSYE/edit#heading=h.te82lju4jjye
It looks like the copy deck has a few more topics than are shown in the mockup - will confirm with Sasha whether to follow copy deck or the mockup (my assumption is to follow the copy deck)
We only need to populate 2 topics with real content for the Feb 26 demo: Socioeconomic Mobility and (? TBD, to confirm with client on 2/18). For all other topics, just say "coming soon"
At the bottom of each topic, there is a Resources section. Find the relevant links here: https://github.com/childpovertyactionlab/Social-Mobility/blob/testing/SocialMobility_Literature_Links.csv. The copy deck also references which section/category to pull the links from

@touchRED some more updates from our client meeting:

Use the copy deck (starts on page 7) https://docs.google.com/document/d/1DdEfUUQ5ZsNBSvejBzCwBdyWUcHFmucwkEAjQ9ytSYE/edit#heading=h.te82lju4jjye for the updated, full list of topics (the mockup is no longer accurate and they have added more topics)
In the topics navigation, do NOT show the descriptions next to the bullet points - those are just for the main body content
The 3 topics to populate for the Feb 26 demo: Socioeconomic Mobility, Family, Education
The copy deck has the static list of resources for each topic (no need to look at the csv in github for the demo)


KYLIN-3537

Use Spark to build Cube on Yarn faild at Setp8 on HDP3.0
add HBase dependicies to avoid java.lang.NoClassDefFoundError

Can one of the admins verify this patch?

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@6eee273). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #474   +/-   ##
=========================================
  Coverage          ?   24.46%
  Complexity        ?     4961
=========================================
  Files             ?     1144
  Lines             ?    69429
  Branches          ?     9895
=========================================
  Hits              ?    16984
  Misses            ?    50730
  Partials          ?     1715

Impacted Files
Coverage Δ
Complexity Δ

...che/kylin/storage/hbase/steps/HBaseSparkSteps.java
0% <0%> (ø)
0 <0> (?)

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build 4148

0 of 12 (0.0%)  changed or added relevant lines in 1 file are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage remained the same at 26.938%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/HBaseSparkSteps.java
0
12
0.0%

Files with Coverage Reduction
New Missed Lines
%

core-dictionary/src/main/java/org/apache/kylin/dict/lookup/cache/RocksDBLookupTable.java
1
81.08%

core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java
5
77.81%

Totals

Change from base Build 4144:
0.0%

Covered Lines:
18703

Relevant Lines:
69429

💛  - Coveralls

Alexander, thanks for the PR! I think this is only for Hadoop 3/HBase 2 right? If so, the change should go to "master-hadoop3.1" branch. Just let me know so I can move the change to the right branch. Thank you!

Hello Shaofengshi!
Yes you are right, i've moved PR to correct branch.
Thanks!

Hello, I have manually applied your PR to the master-hadoop3.1 and 2.6.x-hadoop3.1 branches so will close this PR. Thank for contributing to Kylin!

Alexander, have you registered Apache JIRA? I want to add you to the Kylin team and then mark you as the assignee of KYLIN-3537.

Yes, i am.
alex.sidorchuk85


Unable to compile on CPU that does not have SSE2 enabled

Even though the makefiles indicate not to use SSE2, there is a header requirement for emmintrin.h from mailman.hm and emmintrin.h appears to require SSE2 instruction set.
The following is an error message from building a docker file on an M1 Mac CPU, which does not have SSE2 enabled.
Step 14/14 : RUN make
 ---> Running in 49c7c5f080c0
[ 16%] Building CXX object CMakeFiles/scope.dir/src/run_alstructure.cpp.o
[ 33%] Building CXX object CMakeFiles/scope.dir/src/alstructure.cpp.o
[ 50%] Building CXX object CMakeFiles/scope.dir/src/matmult.cpp.o
In file included from /app/SCOPE/src/matmult.cpp:2:
/app/SCOPE/include/mailman.h:6:10: fatal error: emmintrin.h: No such file or directory
    6 | #include <emmintrin.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/scope.dir/build.make:104: CMakeFiles/scope.dir/src/matmult.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/scope.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

However, the cmake file does specify not to use sse2 support:
root@2d5c7eb6e5ae:/app/SCOPE/build# grep -R SSE_SUPPORT
CMakeFiles/scope.dir/flags.make:CXX_DEFINES = -DDEBUG=0 -DSSE_SUPPORT=0

Hello,
Try removing/commenting the #include <emmintrin.h> and lines 123-360 (the two SSE functions) from mailman.h

Yes, SCOPE compiles once you remove the SSE references from mailman.h

Hi!  I noticed this issue is closed.  Will there be any changes to the documentation or the source code to indicate that you need an SSE2 enabled CPU?  Or to remove SSE2 dependencies?


Microsoft Edge does not work.

Undiscord Version
5.2.3
Browser
120.0.2210.133
Extension
TamperMonkey
Reproduction steps
Tried to delete a discord dm but failed
Error searching messages, API responded with status 401!
{"message":"401: Unauthorized","code":0}
CoreException	{}
Actual results

Expected results

Bug affects

[X] DMs
[X] DMs (group)
[X] Channels
[X] Channel (NSFW)

Additional information & file uploads

Works good for me with Microsoft Edge 121.0.2277.112 on tampermonkey.


Reduce operators do not support axis=None

The sum/mean OPs do not support axis=None. I think it's supported in earlier versions of MXNet. This behavior is inconsistent with Numpy.
import mxnet as mx
b = mx.nd.sum(mx.ones((100, 100)), axis=None)

MXNetError: Invalid Parameter format for axis expect Shape(tuple) but value='None'

This doesn't seem to be specific to sum/mean ops as I was also able to reproduce it with prod. Which version of MXNet supported this ? I wasn't able to reproduce with 0.11.

Should be some very old version (way before 0.11). We need to consider to revise the code to support this now.

b = mx.nd.sum(mx.nd.ones((100, 100))  will work.. I guess the problem is that if user provides axis=None, it won't work. @sxjscience

None should represent "empty-axis" and should perform a global reduction. It's very common in numpy.

fixed


Compiling

What is your question?

HELP

Not really a Psych Engine related question, but you might be missing some VSC2019 libraries.

 NOT VISUAL STUDIO CODE. READ THE FUNKIN-MASTER TUTORIAL FFS

(https://github.com/ninjamuffin99/Funkin)

actually this is more accurate for your search https://github.com/ninjamuffin99/Funkin#build-instructions

What version of visual studio community do you have?

2019

idk what libraries have you installed?

like, the components?

if yes, the build tools, and the windows SDK

@BombasticTom

different message, hmmh??

found a way to compile it, just need to type in lime test html5 -debug

NEVERMIND

someone pls help me, ive been tryng this for the past 2 weeks, i still cant, i need it, someone, help me do this, i cant stand all my failure anymore

FUCK this shit, this will never get anywhere. No one is replying again, this is pointless.

 No one is replying again, this is pointless.

check your system arch
is it 32bits
or 64bits?


upload comeandpay

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

thats not normal i have every thing lowcase-png-256x256 p
and always failed
0x8FD709Fc68886Bb522b32b9E70203D6001A2d1b2.PNG image must be png


Update build.gradle

I understand this project was a proof of concept and is not designed to be future-proof. Because everything should be replaced by pyroscope agent.
So if you wish to close this PR I would totally get it.
Pushing a new version of ap-loader, because there is a bugfix upstream https://github.com/jvm-profiling-tools/ap-loader/pull/12 to use the right version for ARM (hence graviton) instances.
Would it be possible to push a new version 0.1.7?
We can push it on our nexus, but I feel it could help others while they/we are migrating to pyroscope.
So if that doesn't take much of your time for a dead project, I would be glad!
Thanks @cyriltovena !

Never mind 🙈 , the version me.bechberger:ap-loader-all:2.9-7 fixes the issue, not the me.bechberger:ap-loader:2.8.3-all-SNAPSHOT.


Ability to change history path by changing env

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
For changelog. Remove if this is non-significant change.
Category (leave one):

New Feature

Short description (up to few sentences):
Possibility to change the location of clickhouse history file using CLICKHOUSE_HISTORY_FILE env.
Detailed description (optional):
Sometimes you may need to use several history files (for different clusters),
Or use history file stored in some network location.
Or just disable writing history by using /dev/null instead of history file.
Now it's possible using CLICKHOUSE_HISTORY_FILE env variable (you can put it to your ~/.bashrc or set for particular run).
Before that the only possibility to change that was editing /etc/clickhouse-client/config.xml
implements #6622

I've tested that manually, and it looks ok.

Ok.
BTW, we also support ./clickhouse-client.xml and ~/.clickhouse-client/config.xml.


Develop

merging develop into master with most recent fully functioning tested code

added extra testing and player class instantiation


Make Esql operator public in Serverless

Closing, as this draft PR mostly served to publish a diff.


WC URI without methods param gives "_CastError (Null check operator used on a null value)"

Hi,
When the wallectconnect uri does not contain a 'methods' property in its queryParams, the below code throws.
class WalletConnectUtils {
  /// code removed ...
  static URIParseResult parseUri(Uri uri) {
    /// code removed ...
    List<String> methods = uri.queryParameters['methods']!

This occurs when trying out the linked WC V2 Dapp demo on the WC v2 docs page

https://docs.walletconnect.com/2.0/javascript/guides/examples-and-resources
https://react-app.walletconnect.com/

That said, I cant seem to find a writeup on the wc uri format for version 2 at the official doc site: https://docs.walletconnect.com/2.0, which leaves me in doubt if the methods param is required or not.

Resolved by #24


Wallet integration for android

Zeplin

Parsing this file is relatively easy (atleast in Node) I hope I can do the same in Android JS env


satisfies operator for generic type constraints

Suggestion
I would love to use the new satisfies in generic type constrains instead of extend because of its ability to detect the conformance of a type with a wider one.
🔍 Search Terms
satisfies, generic, constrains, extend,
✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

📃 Motivating Example
We need to make sure one type is JSON serializable, thanks to recursive types this is now possible, however we also want developers to specify an exact interface for strong types. Today, there is not easy way to check if the provided interface is JSON serializable!
// Let's assume that we expect that only data which is JSON serializable is a valid response.
type JSONValue =
    | string
    | number
    | boolean
    | undefined
    | null
    | { [key: string]: JSONValue }
    | Array<JSONValue>;

export interface MyData {
    foo: string,
    thisShouldBeAnError?: Date;
}

type FactoryFunction<RET satisfies JSONValue> = () => RET;

export const problematicFactory: FactoryFunction<MyData> = () => {
    return {
        foo: 'ok',
        thisShouldBeAnError: new Date(),
    };
}

💻 Use Cases

Provide even better types when right now any is the only option
Values that can be serializable, JSON, SQL, any complex recursive type
Simplified types and less typing since the satisfied operator is part of the generic type

It sounds like a duplicate of #14520 to me.

Maybe! but sounds like with the introduction with already have a semantic of how this could be implemented

This doesn't look like a lower bound.  Actually, I'm not sure what it is.
@manucorporat could you clarify what you're trying to do? Even without thisShouldBeAnError, a value of type MyData does not satisfy JSONValue, due to #15300:
interface MyData {
    foo: string,
}

declare const myData: MyData

const oops = myData satisfies JSONValue; // error!

playground link
What, specifically, would T satisfies U accomplish that T extends U does not?

This isn't well-specified enough to be actionable. It seems like you're asking for either negated types, type parameter upper bounds, or possibly exact types, all of which have open issues already.

…or possibly even oneof-style constraints.

Some thing likes Opaque Result Types  in Swift

I'm running into this same problem - I'm not sure if there's even a way to check what I want right now. Here's a TS playground example
type AllowedValueType = string | number
type AllowedValueRecord = Record<string, AllowedValueType>

type AllowedValuesFunction<T extends AllowedValueRecord> = (values: T) => void

// ----- //

interface MyProps {
    message: string
    value: number
    isAllowed?: boolean
}

interface OtherProps {
    yes: "I am a string"
    yup: boolean
}

const thisShouldBeFine: MyProps = {
    message: "hello",
    value: 1
} satisfies AllowedValueRecord

const thisShouldNotBeFine: MyProps = {
    message: "hello",
    value: 1,
    // @ts-expect-error
    isAllowed: false,
} satisfies AllowedValueRecord

// @ts-expect-error Should fail because `isAllowed` is a boolean
const notAllowed: AllowedValuesFunction<MyProps> = () => {}

// This should be allowed
const allowed: AllowedValuesFunction<OtherProps> = () => {}
                                     // ^ I basically just want this to check satisfies

X extends Y means that X is a subset, not a superset.

@fatcerberus Is this true? If X were a superset wouldn't that entail { a: number } extends { a: number, b: number } is true?
Or am I somehow confusing my definitions here?

Yes, it’s true.  Subset vs. superset are in terms of which values are assignable to it, not in terms of their properties.  { a: number, b: number } is a subset of { a: number } because the latter consists of only those members of the former that also have a numeric b property.
(I suspect you may have misread that @sinclairnick - I’m specifically saying there that X is not a superset.)

I see.So superset and subset in this context have a different definition to the strictly mathematical one - or at least how I interpret it.So in math we might say {2} is a subset of {2,3}, in TS I was thinking in terms of properties as members of the set. Instead you’re saying the correct interpretation is that a subset is “that which can be assigned to a type”?So since {2,3} is assignable to {2}, it would be a subset, in typescript parlance?Have I got this right?On 22 May 2024, at 2:16 AM, Bruce Pascoe @.***> wrote:
Yes, it’s true.  Subset vs. superset are in terms of which values are assignable to it, not in terms of their properties.  { a: number, b: number } is a subset of { a: number } because the latter consists of only those members of the former that also have a numeric b property.
(I suspect you may have misread that @sinclairnick - I’m specifically saying there that X is not a superset.)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

See this q/a. Think of a type as the set of values that have that type. Then a subtype corresponds to a subset, and a supertype corresponds to a superset. If you think of object types specifically and only of their sets of declared properties, then you'll be thinking of things "backwards" because keyof is contravariant.


As a developer, I need an elseif tag/attrib, so I can chain logic in the view

It would be nice to chain logic together using an else if style. Add logic for using elseif tags and elseif attributes.

Add elseif tag and attribute processor


Q61: Change to allow multiple answers to be selected simultaneously

Being able to choose multiple answer for the question "How do you meet others RSEs"
Also being able to fill the "Other" field

Deleted ukrs3 as the other is a freetext now

done


Auto login

Is there a way to login with the existing token in the browser?  I am trying to avoid prompting if the user is already logged in.  How do I do that?

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

ID: 60d80e0b-f1b7-175b-128d-0fb12f17ae36
Version Independent ID: 1ed9006a-bf0b-9aaa-d180-9d2cb0c09524
Content: Add authentication to your bot via Azure Bot Service - Bot Service
Content Source: articles/bot-builder-tutorial-authentication.md
Service: bot-service
Product: bot-framework
GitHub Login: @JonathanFingold
Microsoft Alias: JonathanFingold

Re-applying support label for aggregation inclusion

@msekkappan 	I apologize for not replying to this issue sooner. You can only do this if you're using WebChat. See the SSO Sample for how to do so. Basically, you pass the existing token through channelData to your bot.

Closing as this is likely answered and there has been no response


Add automated testing on Travis CI

Test results: https://travis-ci.com/cclauss/bsed
The owner of the this repo would need to go to https://travis-ci.com/profile, log in with GitHub credentials, select the free plan, and flip the repository switch on to enable free automated testing of all pull requests.  Travis will lint with flake8 and then run python runtests.
Add flake8 tests to find Python syntax errors and undefined names.
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.

F821: undefined name name
F822: undefined name name in __all__
F823: local variable name referenced before assignment
E901: SyntaxError or IndentationError
E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

Thank you @cclauss for the recommendation. I'll leave this issue open until I get around to this.

👍 https://travis-ci.com/andrewbihl

ping @cclauss

Yes @jayvdb, how can I help?

Apologies, I should have pingged @andrewbihl to see if we can get this merged.


nixos/websockify: use python3 websockify

Description of changes
Websockify only supports Python 3: https://github.com/NixOS/nixpkgs/blob/d1236c6c1f6ee43b21d85288e120015a67cb4e7d/pkgs/development/python-modules/websockify/default.nix#L19
But currently we try to use the Python 2 version for the NixOs service.
Fixes https://github.com/NixOS/nixpkgs/issues/254619
Should this maybe go on the changelogs?

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Should this maybe go on the changelog?

I don't think it is necessary

I forgor the backport tag, this issue also occurs on 23.05, so I made a backport PR.

You can add the label after the fact and it will still be automatically created, thanks for the backport. :3


An option to batch-delete all references to various asset files if needed.

The reason for this request is that sometimes when exporting, you may end up seeing new .tex files created everywhere. The result of this is a much higher file size for the full project and a lot of duplication. I know for some cases, you may want to just have the material created with the surface itself, but considering that I always use the override material, the surface material just gets in the way and works to clutter my project file system.
The solution for that (and any other case where you want to do a complete deletion of an asset quickly and without breaking everything), would be an option to auto-delete all references to the asset in question when you get the warning prompt that comes with the delete option.
For instance, in deleting an excess .tex file for instance, it would delete the references to it within all materials that use it while not deleting the materials themselves (so a diffuse texture slot for example would be reset to null). The project will still work when playing it and opening scene files, but the extra textures and any other old cruft can then just be cleaned out quickly and easily (with no visible impact in this case at least since said materials were overridden anyway and those materials use .tex files in a folder specifically created for them).
Comments?

Master (and 2.1 I think) now allow you to get a list of all files referencing a given file (though it doesn't count in GDScripts :smile: ). Thus, it is possible to do it manually to some extent...

Any updates?

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


Compatible provider not installing after usage of m1-terraform-provider-helper

I have used a non-darwin-arm64 version for the grafana provider in one project and the switched to a project that uses a grafana provider that is darwin-arm64 compatible.
When trying to do a terraform init on the latter project i get an error.
I am however not sure whether this is a flaw in the m1 helper or whether terraform itself is wrong - or my way of thinking how this should work.
Expected Behavior
Terraform can install the now available provider version
Actual Behavior
Terraform can not retrieve the list of provider versions
Steps to Reproduce (including precondition)
# install incompatible version of provider
m1-terraform-provider-helper install grafana/grafana -v 1.10.0 --custom-build-command "go build -o ~/go/bin/terraform-provider-grafana ."

terraform init
# ...
# Initializing provider plugins...
# - Finding grafana/grafana versions matching "1.35.0"...
# ╷
# │ Error: Failed to query available provider packages
# │
# │ Could not retrieve the list of available versions for provider
# │ grafana/grafana: no available releases match the given constraints 1.35.0
# ╵

Your Environment

OS: MacOS 13.2.1, M2 Pro 16" 32GB
m1-terraform-provider-helper version: 0.8.1

You installed v1.10.0 but terraform is looking for 1.35.0. You probably have to pin the version of the provider you are using: https://developer.hashicorp.com/terraform/language/providers/requirements#version-constraints

This is the test case. v1.10.0 does not have a darwin/arm64 provider version. this is supposed to be the version i am using in an older project.
Now 1.35.0 is the version i use in a different project.

Ah, now I understand the question.
When activated, the m1-helper installs all the installed providers to the ~/.terraform.d/plugins directory. Since this is global, this affects all terraform projects.
We do have the activate and deactivate commands. So when you are working on a project that does not need a darwn_arm64 provider, simply run m1-terraform-provider-helper deactivate. Then terraform will work as usual and download from the internet.

In my case that is currently not working because i indeed do have a terraform module that still uses the template provider from hashicorp (i know it's deprecated).
Hopefully that will be removed from that module soon.
However the use-case is there that you have a project that can have an outdated provider version required and another project needing a newer one.
Is there a solution for this? I do not know exactly which of the applications in doubt is causing this. I should read the code, but i have no spare time 🙈

You can install multiple version of the same provider, that is no problem. You can run m1-terraform-provider-helper list to see which versions of which providers are currently locally compiled and installed.
If you specify the correct version in your terraform project, then everything should be fine.

Closing this as it is not a bug.


Add --checkpoint in train CLI

Using --checkpoint can load and overwrite model weights for transfer learning purposes.

Looks good to me.


How to use other generators?

Hi again, sorry to be annoying. I can't see in the source code how to use another generator, like polygonPathGenerator. I put the same options for some hex animation from a tsparticle codepen, but instead of hex's it's making straight line out from the middle

Thanks, I called it in particlesInit, passing the same engine. Works lovely. Cheers brother!
const particlesInit = async (engine: Engine) => {
  await loadFull(engine);
  loadPolygonPath(engine);
};

It's better to place an await in front of loadPolygonPath too, It's something that will be fixed in the v3 documentation

cool thanks for the best practice!


[Feature]: Better support for discriminated unions and subactions

What is the new or updated feature that you are suggesting?
It would be really neat if ValidatedForm supported type narrowing when used with subactions and discriminated unions.
I'd like to be able to use something like
const validator = withZod(
  z.discriminatedUnion("subaction", [
    z.object({
      subaction: z.literal("update"),
      id: zfd.text(),
      value: zfd.text(),
    }),
    z.object({
      subaction: z.literal("delete"),
      id: zfd.text(),
    }),
  ])
);

function UpdateForm() {
  return (
    <ValidatedForm validator={validator} subaction="update">...</ValidatedForm>
  );
}

However, if I add an onSubmit handler, the type of the data parameter is
{ subaction: "delete", id: string } | { subaction: "update", id: string, value: string }

when it "should" be narrowed to
{ subaction: "update", id: string, value: string }

Similarly, defaultValues "should" also be narrowed, otherwise it's possible to set a combination of default values from across all the different subactions on a single form.
Here's a rough proof of concept in the TypeScript playground.
Why should this feature be included?
Discriminated unions are a natural way to implement form validation with subactions, but it's a bit painful to write onSubmit handlers because you have to do unnecessary type narrowing, and the compiler misses some potential errors (and editor autocompletes suggests erroneous keys) in defaultValues. Narrowing the type would be a nice improvement to the ergonomics.

I like this idea a lot and I think it's worth looking into as part of the v5 milestone.


Cannot build npm on windows behing a aproxy

Hello guys !
I'm trying to build the latest npm on windows 7 behind a corporate proxy.
Its fails on this error :
info it worked if it ends with ok
verbose cli [ 'node', 'D:\\Workspaces\\npm\\cli.js', 'install', 'npm', '-fg' ]
info using<EMAIL_ADDRESS>info using<EMAIL_ADDRESS>verbose config file C:\Users\a127380\.npmrc
verbose config file C:\Program Files (x86)\etc\npmrc
verbose config file D:\Workspaces\npm\npmrc
verbose into C:\Program Files (x86)\nodejs [ 'npm' ]
verbose cache add npm
verbose cache add [ 'npm', null ]
silly cache add: name, spec, args [ undefined, 'npm', [ 'npm', null ] ]
verbose parsed url { pathname: 'npm', path: 'npm', href: 'npm' }
info addNamed [ 'npm', '' ]
verbose addNamed [ null, '' ]
verbose GET npm
verbose raw, before any munging npm
verbose url resolving [ 'https://registry.npmjs.org/', './npm' ]
verbose url resolved https://registry.npmjs.org/npm
ERR! Error: socket hang up
ERR!     at createHangUpError (http.js:1092:15)
ERR!     at CleartextStream.<anonymous> (http.js:1175:27)
ERR!     at CleartextStream.emit (events.js:88:20)
ERR!     at Array.0 (tls.js:731:22)
ERR!     at EventEmitter._tickCallback (node.js:192:40)
ERR! Report this *entire* log at:
ERR!     <http://github.com/isaacs/npm/issues>
ERR! or email it to:
ERR<EMAIL_ADDRESS>ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "node" "D:\\Workspaces\\npm\\cli.js" "install" "npm" "-fg"
ERR! cwd D:\Workspaces\npm
ERR! node -v v0.6.2
ERR! npm -v 1.0.106
ERR! code ECONNRESET
verbose exit [ 1, true ]

I've set my personnal configuration file (C:\Users\a127380.npmrc) this way :
proxy=http://my-proxy:1234
https-proxy=http://my-proxy:1234

I tried also to set directly the environnement variable HTTP_PROXY and HTTPS_PROXY, but no luck...
Any ideas ?

What kind of proxy is it? npm does not support SOCKS or SOCKS5 proxies, only basic auth HTTP proxies.

No sorry, it's an http proxy, whitout any authentification. Just an url and a port (see my extract of .npmrc)

Try setting the registry to the http registry instead:
npm config set registry http://registry.npmjs.org/


where does yt-dlp download videos by default

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
i'd ask in discussions as this technically isn't a technical issue but discussions are closed so i'm forced to do this
where does yt-dlp download videos by default? i've downloaded a video and i'm not going to just reroute the destination as yt-dlp DID download the video, it' taking my hard drive space
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

By default, yt-dlp downloads to your current command line location. It should say the location next to where you entered the command. Otherwise, typing pwd should tell you your current location in most shells. Though that might differ on some OS's or shells.
With -P you can change the location in the future. You can even add it to your config if you don't want to add that every time.

i figured it out before it was commented on, the conversation being locking just prevented me from actually closing this issue ._.


how to dismiss malert?

how to dismiss malert?

Hi @rhfoqkq, thanks for use Malert!
By default we've implemented automatically dismiss when:

Touch on buttons with dismissOnActionTapped: Bool
Touch outsisde Malert with tapToDismiss: Bool

But if you want dismiss Malert by yourself just call UIViewController's default method
dismiss(animated: Bool, completion: (() -> Void))


Error on loading project useing .blend files when blender is not configured is misleading

Tested versions
tested in 4.2.1
System information
Windows 11 Pro, Godot 4.2.1
Issue description
I went to open a project pulled down from git, that contains .blend files, but I had forgotten to set Godot to work with Blender. The message I got was "Load failed due to missing dependencies." I found this confusing, so I checked the file existed, then thought maybe it was corrupt, before realizing the cause. It would be helpful if Godot could identify that it is trying to open a .blend without Blender being configured and say something to the effect of "This project contains a blend file, but blender is not configured."
Steps to reproduce
Make scene using a .blend
Disable support for Blender .blend importing
Open scene
Minimal reproduction project (MRP)
N/A

I just encountered the same issue when porting a Godot 4.2.1 project to Godot 4.3-dev1. I thought at first that it was a problem with 4.3-dev1. It would have saved time if there had been an error message mentioning Blender.

I encountered the same issue. I shared a project with a friend and it asked to fix missing dependencies. If I hadn't opened godot from terminal, I wouldn't have seen the error messages. The first error was reporting a missing blender file.


Cannot select busbar in multicast naming function

I created an SCD file with a single PCS-221S and a single SEL-411L-2 relay (see zip file). I did the SLD modifications as per D Chen's instructions.
However, the multicast page does not show devices allocated to Bus A.

For Daniel.zip

I have added a second busbar with a single IED.  Here is the result. XAT_262_P1 should be on BusB, and the rest on BusA. I am sure I made a mistake.

Hmmm the file you provide appears only to show Bus A with IEDs.

Additionally, it is not showing the Function structure I expect:

The LNodes should be created under a Function called BusPhysConnection which is shown in the instructions.
After I make these changes to your file it seems to work.

I am sure I made a mistake.

Me too :wink:
Here's my result:
Maik Test.scd.zip
If you agree, please close the issue.

Yes, I made a mistake 😢 I did that procedure three times today, but then missed that crucial step.
The German say: Wer lesen kann, ist klar im Vorteil! (translated: it is a clear advantage if you can read!)
Case closed.


Port the Hypercube model to the I-GUIDE platform

Deploy the current model someplace where inference can be made against it from Jupyter notebooks.
Develop an example notebook that demonstrates how to perform inference against the Hypercube model.

Updated task plan from meeting on 04/03/24:

Migrate the webapp https://hcwebapp.cigi.illinois.edu/ to I-GUIDE JS2 Kubernetes cluster for future scalability.
Host Zhaonan's VCO notebook on the I-GUIDE platform for developer use and testing.

Adding Noah to this in case we need additional libraries/new Jupyter kernel for the notebook

Information about the webapp:

The Dockerfile being used can be found in https://github.com/I-GUIDE/hypercube-web
Resources and open ports mentioned were 5000, 443 and 8000

initial version deployed at: http://iguide.geoedf.org/
ToDo

Enable SSL
Turn pod into a deployment so that they can come back up if they failover
Migrate to iguide-io domain
upload deployment files


Update OpenFoodAPIService.java

Description
Describe the changes made and why they were made instead of how they were made.
Related issues and discussion
#fixes {Issue Number}
Screen-shots, if any
Checklist
Make sure you've done all the following (You can delete the checklist before submitting)

[ ] Apply the AndroidStyle.xml style template to your code in Android Studio.
[ ] Code is well documented
[ ] Include unit tests for new functionality
[ ] All user-visible strings are made translatable
[ ] Code passes Travis builds in your branch
[ ] If you have multiple commits please combine them into one commit by squashing them.
[ ] Read and understood the contribution guidelines .

Maybe we could use this approach ( add an interceptor):
https://futurestud.io/tutorials/retrofit-add-custom-request-header
here: openfoodfacts.github.scrachx.openfood.utils.Utils#HttpClientBuilder

Also, my code is duplicated. I stopped because I felt I was duplicating a lot of things.

This cannot be merged as it is since the changes you have made in those methods are not reflected in the classes where they are actually used. The code won't compile this way. @deniger's method seems more appropriate.

Closing this for now


Show follower emotes outside of channel if you're a subscriber

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description

Is this draft dead or abandoned, or just stale? I don't know C++ so I can't personally help, so I'm just giving this a bump.

It's stale because he's been very busy and this code sucks, so we need someone who actually codes C++ to give it the push it needs.

Superseded by #4922


sync .eslintrc and .tsconfig.json between project types

using @tramvai/cli with option  Support for multiple applications in one repository
When using that option vscode linter show errors in files, but still compiles it

wheather this is not the case for single app per repository

Thanks for the report, it will be fixed soon

It was fixed in v1.46.10


Customer Class(Rooms)

How to demo:
Be able to rent a room and cancel reservation.

actual time: 2hrs


Use the old notifications endpoint

          1 Warning

:warning:
Please provide a linked tracker story for this PR in the description

  Generated by :no_entry_sign: Danger


Get-XY with time range option

Changes in commit 2c0fcb068af27c9334b3220e19b46a0b653f5ada
Added the implementation of the Get-XY with the time rage to the Python client. As documented in the TSP Server Documentation, the time rage option was added to the get-xy function. It is now possible to use the following structure to fetch the xy data based on the time range.
./tsp_cli_client --get-xy OUTPUT_ID --uuid UUID --items ITEMS --time-range START END NB_TIMES

where:

START is the beginning timestamp of the time range
END is the end timestamp of the time range
NB_TIMES is the number of samples that should be fetched

Changes in commit 4ebd082c85a63bf2fabe759d19c51883557ac8cf
As it was previously implemented, when requesting a time range (or multiple times) for the get-xy module, the output shows the results line-by-line for each data point. In other words, when requesting 10 data points, the output would be:
XY has common X axis: False | True
    Series name: NAME
    Series id: ID
    Series X-value: X1
    Series X-value: X2
    Series X-value: X3
    Series X-value: X4
    Series X-value: X5
    Series X-value: X6
    Series X-value: X7
    Series X-value: X8
    Series X-value: X9
    Series X-value: X10
    Series Y-value: Y1
    Series Y-value: Y2
    Series Y-value: Y3
    Series Y-value: Y4
    Series Y-value: Y5
    Series Y-value: Y6
    Series Y-value: Y7
    Series Y-value: Y8
    Series Y-value: Y9
    Series Y-value: Y10

Now, in this commit, the array_print parameters has been added to the XYModel.print method in order to print the results in an array format instead of line-by-line. The results then would be:
XY has common X axis: False | True
    Series name: NAME
    Series id: ID
    Series X-values: [X1,X2,X3...,X10]
    Series Y-values: [Y1, Y2, Y3, ..., Y10]

Squash or rebase?


Support for different compression algorithms for patches

Although releases can be compressed using different compression algorithms, patches always use zip compression algorithm. This is an issue because patches might include executable files that need the executable permission on different POSIX systems but zip file does not store file permissions.

In the past overridden archive handler was used in https://github.com/mesonbuild/meson/pull/4327 in meson. That might be useful for development on this bug as an example.


DUPLO 14317 Plan Setting Bug

Overview
Plan setting resource Bug
Summary of changes
Terraform fails to set unrestricted_ext_lb fixed
This PR does the following:

Looking for change on unrestricted_ext_lb
Updating unrestricted_ext_lb attribute

Testing performed

[ ] Using unit tests
[ ] Manually, on my local system
[✓ ] Manually, on a remote test system

Describe any breaking changes

...

Task linked: DUPLO-14317 Not able to disable unrestricted_ext_lb from terraform


Support System Upgrade.

Upgraded support system as discussed.
Support type statics not being used everywhere
Added functionality for staff to re-open supports
Corrected bug where comments wouldn't go through when closing or opening a support

Made changes as reviewed.

Upgrade is now ready to go.


App asks for the saving of the activity although no timer has run (if you just open it and exits immediately).

Reported by a user.

Fixed.


Initial phase of UI plugin complete

includes full UI-VMODL integrat…ion - not yet tested with live data

Note: rebased to current master.


Add note that v2 read data is not available for available for intronic regions

Read data is available for some intron variants that are near exons, so check for read data before showing this message.

This only applies to gnomAD v2 and ExAC. gnomAD v3 has read data for non-coding regions.


MM-35384 Add country variant localization support

Summary
Using languageTag instead of languageCode to support localization with country variants.
Needed for #5237
Test notes: We can use one of the current country variants like pt-BR, with the current app the select server screen will be displayed in english, with this PR it should be displayed in Portuguese.
Ticket Link
https://mattermost.atlassian.net/browse/MM-35384
Added support for localization with country variants

cc @ctlaltdieliet FYI

Thank you, Elias!

Building app in separate branch.

@josephbaylon is the assignment to do what? merge?

@enahum My mouse acted weird and accidentally assigned


chore: update and speed up infra/tf deployments

Why
infra/tf was out of date, and extremely slow to deploy nodes quickly with.
What

updated bootstrap node

deploy time reduced from ~30mins -> less than 5mins
remove docker install stuff since we deploy a base image with it preinstalled
sets up ~/.ursa/config.toml
deploys docker/full-node, minus nginx

updated provider node

deploy time reduced from ~30mins -> less than 5mins
provider has it's own cloud conf, stripped of the docker install stuff
sets up ~/.ursa/config.toml with the node ip for proper advertisements
sets up ssl with the domain name

updated metrics

maxminddb is automated

updated firewall

opened port 3000 for access to grafana
opened p2p port 4890 to allow quic connections

added Makefile scripts for infra/tf

init-tf, plan-tf, apply-tf, destroy-tf
nodes-tf: list node ips
ping-tf: pings nodes to see if ursa is up
exec-tf: executes a command on each provider node

updated readme

Notes
We also migrated to a new digitalocean account which doesn't have the same domain setup, so I swtiched the default to ursa.zone
Checklist

[x] I have made corresponding changes to the tests
[x] I have made corresponding changes to the documentation
[x] I have run the app using my feature and ensured that no functionality is broken

What you mean by “didn't work for deploying testnet nodes quickly”.

What you mean by “didn't work for deploying testnet nodes quickly”.

Since we're switching to the new DO, minor modifications were required to deploy. Also the cloud conf for nodes was set to bootstrap_node.yml, and was a mess of commented out code which didn't deploy the node. Now it properly deploys bootstraps as bootstraps and nodes as nodes

For the firewall, only 6009 and 80/443 should be exposed

We have a p2p port 4890 for quic that should be public, and It'd be nice to be able to see the node metrics via grafana on 3000.

But you just commented the mess, how is it faster?

But you just in in uncommented the mess, how is it faster?

It's completely different now. All the extra docker install steps are removed since we deploy a base image with docker already installed. Then it modifies the compose to use the latest docker release of ursa, so increasing speed by removing build time. For bootstrap nodes, there's also an extra step to disable nginx since they don't use it. Nodes are up and responding to /ping in less than 5 minutes now vs 30+ mins

I would modify the description of the PR as it's not accurate

I would modify the description of the PR as it's not accurate

Agreed it could've been better, amended

I believe the description is still inaccurate, use images instead of building

What’s the status of this PR?


update ISSUE_TEMPLATE

Signed-off-by: Long Dai<EMAIL_ADDRESS>
Commit Message:
For contributors and maintainers, those help info would become noise since they occur every time, so hide them.
Additional Description:
Risk Level:Low

Hi, @zuercher , hide is after issue posts, for users, they can always see them when open an issue. But for users who view issues, hide would make them more focus on issues itself rather than help info( even it occurs again and again).


[Feature Request] auto-suggestion endpoint

An endpoint to provide auto-suggestions for user-created commands in Firefox.
This request is motivated from https://git.mills.io/prologic/golinks

Didn't fully understand the usage. Doesn't the browser already make the suggestions based on what you type? Can you share a screenshot of golinks showing how it works?
Btw, thank you for providing the link to Golinks. I had once seen it a few years ago and then later I couldn't find it again anywhere as I couldn't remember its name or where it was hosted. That's why I ended up making my own version of it.

This isn't implemented for golinks and that is why I asked in first place. See details at: https://git.mills.io/prologic/golinks/issues/23
Although, I wouldn't put high priority for this feature.

9951b854e1a5e28bbebb665444f25c4e90aa3a02 Firefox autosuggestions live now!


Add virtual column types, holder serde, and safety features.

Similar (ish) to #3758 but less aggressive. This PR does not change the aggregator api (they still support expressions). It also does not VCs to any new query types. It also doesn't remove makeMathExpressionSelector, but that was already done in #3815.
@navis I know you commented on #3758 that you thought some of these were good ideas, and that you also had some of your own PRs you wanted to submit that would conflict. I added you as a reviewer for this, please help me out by letting me know if the stuff here is aligned with what you're doing.
Virtual columns:

add long, float, dimension selectors
put cache IDs in VirtualColumnCacheHelper
adjust serde so VirtualColumns can be the holder object for Jackson
safety feature: add fail-fast validation for cycle detection and duplicates
add expression virtual column in core

Storage adapters:

safety feature: move virtual column hooks before checking base columns, to prevent
surprises when a new base column is added that happens to have the same name as a
virtual column.

future work (whoever does it) would likely involve adding virtual columns to all query types, allowing filtering on virtual columns, and allowing grouping on virtual columns.

@leventov, thanks for review.

Fixed conflicts with master.

Pushed fixes to tests that were failing.

:+1:


Additional "/" added before url path

OS: Win 32:
I installed react static and changed location to: './src/pages/'.
Also added cross-env in"build": "cross-env react-static build" row.
No matter when I try to build I have this error for every Page.
I sow that in artifacts/static-app I have this kind of root id: "../src/pages/blog.js", so it seems like somewhere "/" has been added.
Please advice!
Error: Failed exporting HTML for URL blog (../src/pages/blog.js): Cannot convert undefined or null to object for every startup page.

Please provide a reproducible example with clear steps.


WIP: pkg/achclient: create ACH files against service

This PR sets up paygate to create File objects in our ach service! There are retries (only if X-Idempotency-Key is set) with backoff. Callers are assumed to create a unique ID.
Issue: https://github.com/moov-io/paygate/issues/8

There's a bunch of mappings I need to wire through still, but this is an initial PR to get feedback.

Codecov Report

Merging #25 into master will increase coverage by 2.64%.
The diff coverage is 82.75%.

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   35.77%   38.42%   +2.64%
==========================================
  Files          12       13       +1
  Lines        1431     1512      +81
==========================================
+ Hits          512      581      +69
- Misses        820      826       +6
- Partials       99      105       +6

Impacted Files
Coverage Δ

pkg/achclient/client.go
69.11% <58.82%> (-1.06%)
:arrow_down:

pkg/achclient/files.go
88.57% <88.57%> (ø)

Continue to review full report at Codecov.

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

Cool, so this creates and validates a file against our ACH service. The file isn't correct (lots of faked data), but it works at least.
Here's the output of testing locally.
$ ./bin/transfer-setup.sh
Using X-Request-Id: CAF2039C-B747-42FF-AB49-209F87C9604D
Created Originator Depository: d188ba3d943fd04c98dee8f726fad3c36afa9f3c
Created Originator: d5adaf6cd097d9705819bed8a05a50f1eb1655d1
Created Customer Depository: 0a99a44680c7844da9ab71a840fa4f0858c6258f
Created Customer: 9830ff0d8233dd9cc6325f35b0650eaaefeb8fd3
Created Transfer: 13fb06ee1870404c769f562bfed76d712ed2e2d2

Well, because we don't send any Addenda records this fails, but I've commented that out locally in ach. (in func (fc *FileControl) fieldInclusion() error).
That's the only local change though, so we're getting closer.


Enhance the component to run onEnter when first loaded

If the component first appears and it fits to the viewport. Run the onEnter.

https://github.com/davidnguyen179/react-is-in-viewport/pull/14


refund not sent

I happens then sometime a reservation fails, but the refund and notification email is not sent.

fixed in https://github.com/threefoldtech/jumpscale_lib/commit/d1ddcfcc4c1c260e1fd94614e1454ab84baace00


assign hub in token app

avoids AttributeError on hub if there are users with running servers.
Don't call init_hub, which can modify the Hub's entries in the database, which shouldn't happen in the token command.
cc @jdfreder

Great I'll give this a try.

So this fixes the error I was seeing, per our conversation in gitter, but it does produce verbose output before producing the token:
localadmin@csm-dirac-1a:~/jupyterhub$ sudo python3 -m jupyterhub token localadmin --db=/srv/jupyterhub/jupyterhub.sqlite
[I 2015-04-08 11:10:29.755 JupyterHub app:608] Not using whitelist. Any authenticated user will be allowed.
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
[I 2015-04-08 11:10:29.759 JupyterHub app:667] XXXXXXXX still running
d91aXXXXXXXXXXXXXXXXXXXXXXXXX08d5

Is this intended?  Seems like the only useful output is the d91aXXXXXXXXXXXXXXXXXXXXXXXXX08d5 at the bottom.

I split init_users into two stages, so that the spawner init doesn't happen in the token app

Awesome!  Tested, and this works as expected.  I looked at the code, and although I'm not familiar with this part of the code base, it looks good to me!  I'll let you or /other merge.


Walmart API

API Link not working
says " Area Not Found "

Yeah it'll be removed soon ref.

Yugi Omo


fix(WelcomeScreen): Fix welcome screen scroll view

Description
This PR fixes the button being outside the scrollable view and unavailable on US, this also affects UK and Sweden
On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[X] iOS - Emulator
[ ] iOS - Physical device

Screenshots
Before:

After:

Out of scope and potential follow-up
Unit tests should be added

The country selector flag in the top-right corner now appears to be unclickable from your screenshot, as it is behind the notification bar?

@abubuwe I had just scrolled down, it is still clickable :)

Just tried on a smaller iOS device (iPhone 5s & 8) in emulator and also work for me

Just tried on a smaller iOS device (iPhone 5s & 8) in emulator and also work for me

I don’t have permissions to merge


Request: support for awnings

A similar card for awnings would be great, especially if it handles their peculiarity of being considered "closed" when fully extended (you'd call that "open" IRL).

Hi,
Do you have redesign the images to print horizontal sunshade? I'm interesting too. Thanks.


implement object classes for #19.

#19
This adds the following classes in the standard way:

ServiceObject
ServiceGroup
ApplicationObject
ApplicationGroup
ApplicationFilter

I have made the requested changes. Thank you.


Progeny.run scaling error

I keep getting the following scaling error when running progeny. It occurs using my own data, as well as following the tutorial exactly as described in the example notebook.
Just to be clear, the input into progeny from an anndata object would be the adata.raw.X as a sparse matrix, correct?
Thank you
progeny.run(adata, scale=True, organism="Human", top=100)
AssertionError                            Traceback (most recent call last)
 in
----> 1 progeny.run(adata, scale=True, organism="Human", top=100)
C:\ProgramData\Anaconda3\lib\site-packages\progeny\progeny.py in run(data, scale, organism, top, inplace)
101
102     assert df.shape[1] <= 1 and scale,
--> 103     'If there is only one observation no scaling can be performed!'
104
105     # Get progeny model
AssertionError: If there is only one observation no scaling can be performed!

Hi @321356766 ,
Yes sorry, that was a bug that I added in the last commit, should be fixed now.

Just to be clear, the input into progeny from an anndata object would be the adata.raw.X as a sparse matrix, correct?

That is correct, yes
Please, run pip install --upgrade git+https://github.com/saezlab/progeny-py.git and try again, let me know if your problem is solved.

Works great. Thank you for your efforts.


How to Save to album？？

Read the README or code documents.
Issues of such grossly poor quality will be closed without waiting for a response from the creator. This is necessary for the healthy operation of this project.


bwctld -Z fails to start under OSX launchd

From @arlake228 on March 14, 2015 12:47
Original issue 1043 created by arlake228 on 2015-01-09T13:57:01.000Z:
What steps will reproduce the problem?
Try to start bwctld under OSX launchd:
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.bwctl.plist
(plist file is given below)
What is the expected output? What do you see instead?
Daemon fails to start with the following error logged:
Jan  9 13:44:21 brians-macbook-air.lan bwctld[31077] <Error>: FILE=bwctld.c, LINE=2558, setpgid(): Operation not permitted
launchd then retries every 10 seconds.
What version of the product are you using? On what operating system?
bwctl 1.5.2-10 compiled under OSX Mavericks using Homebrew, --with-iperf3
Please provide any additional information below.
The relevant code in bwctld.c is:
else{
    /*
     * Depending upon the shell that starts this -Z "foreground"
     * daemon, this process may or may not be the Process Group
     * leader... This will make sure. (Needed so HUP/TERM
     * catching can kill the whole process group with one
     * kill call.) setsid handles this when daemonizing.
     */
    mypid = getpid();
    if(setpgid(0,mypid) != 0){
        I2ErrLog(errhand,"setpgid(): %M");
        exit(1);
    }
}

I don't know why setpgid is necessary here, but the reason for using the -Z flag is so that launchd can supervise its child process, and it's not being run from an interactive shell.
owampd has the same code and is therefore likely affected in the same way.
Here is the launchd plist file I am using:
----- /Library/LaunchDaemons/homebrew.mxcl.bwctl.plist -----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.bwctl</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/bwctl/bin/bwctld</string>
<string>-c</string>
<string>/usr/local/etc</string>
<string>-R</string>
<string>/usr/local/var/run/bwctld</string>
<string>-Z</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/var/log/bwctld</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/bwctld/output.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/bwctld/output.log</string>
<key>HardResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
</dict>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
</dict>
</dict>
</plist>
Copied from original issue: perfsonar/project#1041

Comment #1 originally posted by arlake228 on 2015-01-09T13:58:25.000Z:
And for completeness here's the bwctld.conf file. Note that launchd starts the daemon as root, and then I've told it to switch to 'nobody'.
----- /usr/local/etc/bwctld.conf -----
allow_unsync
log_location
peer_port       6001-6200
facility        local5
test_port       5001-5900
iperf_port      5001-5300
nuttcp_port     5301-5600
owamp_port      5601-5900
user            nobody
group           nobody

Comment #2 originally posted by arlake228 on 2015-01-09T14:45:41.000Z:
I'm not sure if setpgid is needed there, but bwctl does use it later to make sure it's killing off all the child processes for a tester. Is there something about how we're using setpgid that OS X doesn't like?

Comment #5 originally posted by arlake228 on 2015-01-09T16:18:47.000Z:
Yes I can confirm, added a patch to add some debug info:
diff --git a/bwctld/bwctld.c b/bwctld/bwctld.c
index c155e31..1eb7b38 100644
--- a/bwctld/bwctld.c
+++ b/bwctld/bwctld.c
@@ -2556,6 +2556,7 @@ main(int argc, char *argv[])
mypid = getpid();
if(setpgid(0,mypid) != 0){
I2ErrLog(errhand,"setpgid(): %M");

       I2ErrLog(errhand,"getpid()=%d, getpgid(0)=%d, getsid(0)=%d", mypid, getpgid(0), getsid(0));
       exit(1);
   }

}

Result:
Jan  9 16:13:27 brians-macbook-air.lan bwctld[42219] : FILE=bwctld.c, LINE=2558, setpgid(): Operation not permitted
Jan  9 16:13:27 brians-macbook-air.lan bwctld[42219] : FILE=bwctld.c, LINE=2559, getpid()=42219, getpgid(0)=42219, getsid(0)=42219
The following fix seems to do the job:
diff --git a/bwctld/bwctld.c b/bwctld/bwctld.c
index c155e31..3ec9f5f 100644
--- a/bwctld/bwctld.c
+++ b/bwctld/bwctld.c
@@ -2554,7 +2554,7 @@ main(int argc, char *argv[])
* kill call.) setsid handles this when daemonizing.
*/
mypid = getpid();

   if(setpgid(0,mypid) != 0){

   if(getsid(0) != mypid && setpgid(0,mypid) != 0){
       I2ErrLog(errhand,"setpgid(): %M");
       exit(1);
   }

A similar fix is required for owampd/owampd.c line 1560

Comment #4 originally posted by arlake228 on 2015-01-09T16:04:48.000Z:
(aside: that is taken from the OSX manpage, although the Linux manpage is identical)
Guess: could it be that the process started by launchd is already a session leader?

Comment #3 originally posted by arlake228 on 2015-01-09T15:56:50.000Z:
The manpage gives three possible scenarios for EPERM:
 [EPERM]            The process indicated by the pid argument is a session leader.

 [EPERM]            The effective user ID of the requested process is different from
                    that of the caller and the process is not a descendant of the
                    calling process.

 [EPERM]            The value of the pgid argument is valid, but does not match the
                    process ID of the process indicated by the pid argument and there
                    is no process with a process group ID that matches the value of
                    the pgid argument in the same session as the calling process.

Comment #6 originally posted by arlake228 on 2015-01-09T16:25:27.000Z:
Aside: KillChildren uses killpg(mypid,signal);
So the requirement is that this process is its own process group leader. I'm certainly no expert here, but I guess that if it's the session leader then it's also the process group leader, and that's fine.

Comment #7 originally posted by arlake228 on 2015-01-27T15:08:25.000Z:
<empty>


Development Branch Manual Compilation

Hey @aidancbrady and @unpairedbracket, Here's that issue I promised. The problem I encountered happened back in Mek v<IP_ADDRESS> and I'm unsure if it's actually been fixed or even reported before. The issue is that the server was running <IP_ADDRESS> and I had to compile a fix from my development branch relating to my pull request earlier this year. The problem I encountered was that even though the classes were different server-side (my friend ran the technicpack modpack at that time and I couldn't update the client pack at that point) from the classes located on the client. The Server was running the manually compiled version (homebaked) and one of the other users of the pack was on build 228. The other user was still able to login and play even though the jars signatures and even code didn't match. It might've been only a server-side bug that I fixed but still. I would think the game would recognize that "hey! these don't match up!" and decline the connection. I don't know if this is a Mekanism issue or simply an overall Forge Issue, but please let me know what you guys think.

Server/client handshake only checks version string, not actual build numbers.  This sounds fine.

@aidancbrady but the thing is that the version string didn't match. the client-side version string was <IP_ADDRESS> (assuming you include build number in the string which should be the case anyways) and server-side version string was 8.1.2.homebaked (once again, assuming the build number is included in the version string).

I'm talking about the version string defined here: https://github.com/aidancbrady/Mekanism/blob/77a4ef3515b2d74e10ee2ce2e4fc0892f4b9b573/src/main/java/mekanism/common/Mekanism.java#L142
That's not updated with build numbers.

@aidancbrady ahhh... yeah... So basically it's kind of a forge issue then because they probably don't implement a build checking function for mods that do not include the build number as part of the version.


Incorporated latest Autumn client with http connection pool fix.

@jwtodd Please review and merge this request for incorporating the latest Autumn client with http connection pool fix.

Coverage remained the same at 62.95% when pulling 3f6a405ab8369e5c9fae1f1ca8e9b44622e877d6 on feature/autumn-http-connection-pool-fix into a8f08e460e8215baba36feb1077ad0c743b0ae01 on develop.

:shipit:

Coverage remained the same at 62.95% when pulling f9d3b7955353f3db64b1886318267d63fe6176f4 on feature/autumn-http-connection-pool-fix into a8f08e460e8215baba36feb1077ad0c743b0ae01 on develop.


Scroll select behavior erratic

I realize you don't actively develop this control anymore...but I was wondering if you could give me some hint as to how I might go about fixing how it behaves when you try to scroll select values.
When I have some values...even like 10-20...when I scroll away from the beginning...when I move the mouse inside the outer menu to select something...it jets back up to the top of the list. You have to do some very precise movements in order to get it not to do that.
Any ideas?

@steviesama were you able to figure out what the problem is?

@hector101-coursera I'm using a combination of this control and react-select-2... For whatever reason...the behavior I described was only happening on my drawers that had data filters in it. Everywhere else that mouse problem wasn't happening. I avoided spending more time on it and just used the opposing control...I'm thinking the Ant Design Drawer it was inside of could have caused some sort of styling conflict potentially...I've had conflicts in other areas.


Release notes for v3.1.0: eeprom

As maintainer, please send a pull request filling in the "eeprom" section(s) in doc/releases/release-notes-3.1.rst as soon as possible.

@mbolivar-nordic There were no relevant changes to the EEPROM drivers/API for v3.1.0. Previous release notes have just kept empty sections - would you like me to remove the EEPROM sections instead?


IPv6 doesn't work

When doing wsgi-lithium -b :::8000 wsgiref.simple_server:demo_app, I get :
Traceback (most recent call last):
  File "/home/leo/Documents/working/wsgi-lithium/env/bin/wsgi-lithium", line 8, in <module>
    sys.exit(main())
  File "/home/leo/Documents/working/wsgi-lithium/wsgi_lithium/__init__.py", line 60, in main
    with make_server(host, port, app) as httpd:
  File "/home/leo/.pyenv/versions/3.7.16/lib/python3.7/wsgiref/simple_server.py", line 153, in make_server
    server = server_class((host, port), handler_class)
  File "/home/leo/.pyenv/versions/3.7.16/lib/python3.7/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/home/leo/.pyenv/versions/3.7.16/lib/python3.7/wsgiref/simple_server.py", line 50, in server_bind
    HTTPServer.server_bind(self)
  File "/home/leo/.pyenv/versions/3.7.16/lib/python3.7/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/home/leo/.pyenv/versions/3.7.16/lib/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
socket.gaierror: [Errno -9] Address family for hostname not supported

See https://github.com/python/cpython/issues/64414 and https://github.com/python/cpython/issues/82079.

Fixed in e1ced06385418c8a62a58fe9495b0c4603d99036, released in version 0.2.0.


Improve channel switch

Summary
Improving channel switch by:

on first load

Load posts if the currentChannelId is defined as soon as possible
Fix an issue that was causing the app to loadChannels for the team twice

load posts on handleChannelSwitch only when needed
created switchToChannel action that loads posts and switches to a channel as soon as possible
Channel loader only displays if the channel to be switched to does not have any posts

Ticket Link
https://mattermost.atlassian.net/browse/MM-12780

Can we measure few metrics for before and after the PR?

How fast does a unloaded channel loads?
How fast does a loaded channel takes to switch?

@sudheerDev I can leave that to you ;)

@hmhealey @sudheerDev @saturninoabril we can discuss this PR further if you want in a zoom or something as a team and then we can make the necessary changes

Would this address the common issue of opening the app, knowing you want to switch channels/teams but not being able to get the hamburger menu to click in a timely manner?


Add word break to table rows or add horizontal scrollbar to tables?

Description
Have no idea about whether we can do this globally.
I found that we have no word break in tables.
Admin repo management setting page:

Admin runners management setting page:

Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build
Database
None

Fixed


Automatic generation of translation keys

I'm submitting a ...  (check one with "x")
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[X] feature request

Current behavior
For each new string, developers have to manually add the string to the locale files
Expected/desired behavior
For each new string included in a partial (e.g., each new use of the angular translate directive or service), automatically add the new string to the default language locale file
What is the motivation / use case for changing the behavior?
To facilitate the translation workflow

Hi, you can already use this cli tool for that: https://www.npmjs.com/package/@biesbjerg/ng2-translate-extract

Interesting, I will try that out. Thanks!

@cdparra I used the ng2-translate-extract as well, works like a charm. So if this solves your issue, can you close it? :)