Installing Sharp on Termux

Hi, I am wanting to get sharp working on termux so I can use the image integration on astro.build which has sharp as a dependency. I must confess, I'm new to installing packages on the command line, but I've had a real crack at getting it working myself.
I've seen from other issues that one suggestion is 'npm i --platform=linux sharp'. I've tried this and it gets me further than being told there's no pre-built android binary, but it still doesn't make it the whole way (see below).
Any help would be appreciated.

Possible install-time or require-time problem

[ x] I have read the documentation relating to installation.
[ ] I have ensured that the architecture and platform of Node.js used for npm install is the same as the architecture and platform of Node.js used at runtime.

Are you using the latest version of sharp?

[ x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.
Is this a problem with filesystem permissions?
If you are using npm v6 or earlier and installing as a root or sudo user, have you tried with the npm install --unsafe-perm flag?
If you are using npm v7 or later, does the user running npm install own the directory it is run in?
If you are using the ignore-scripts feature of npm, have you tried with the npm install --ignore-scripts=false flag?
What is the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory?

~/storage/empty $ npm install --platform=linux --verbose --foreground-scripts sharp
npm verb cli /data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/bin/npm
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm timing npm:load:whichnode Completed in 2ms
npm timing config:load:defaults Completed in 14ms
npm timing config:load:file:/data/data/com.termux/files/usr/lib/node_modules/npm/npmrc Completed in 29ms
npm timing config:load:builtin Completed in 31ms
npm timing config:load:cli Completed in 14ms
npm timing config:load:env Completed in 3ms
npm timing config:load:file:/data/data/com.termux/files/home/storage/empty/.npmrc Completed in 1ms
npm timing config:load:project Completed in 24ms
npm timing config:load:file:/data/data/com.termux/files/home/.npmrc Completed in 5ms
npm timing config:load:user Completed in 7ms
npm timing config:load:file:/data/data/com.termux/files/usr/etc/npmrc Completed in 1ms
npm timing config:load:global Completed in 2ms
npm timing config:load:validate Completed in 1ms
npm timing config:load:credentials Completed in 9ms
npm timing config:load:setEnvs Completed in 5ms
npm timing config:load Completed in 115ms
npm timing npm:load:configload Completed in 116ms
npm timing npm:load:mkdirpcache Completed in 5ms
npm timing npm:load:mkdirplogs Completed in 2ms
npm verb title npm install sharp
npm verb argv "install" "--platform" "linux" "--loglevel" "verbose" "--foreground-scripts" "sharp"
npm timing npm:load:setTitle Completed in 7ms
npm timing config:load:flatten Completed in 15ms
npm timing npm:load:display Completed in 44ms
npm verb logfile logs-max:10 dir:/data/data/com.termux/files/home/.npm/_logs
npm verb logfile /data/data/com.termux/files/home/.npm/_logs/2022-09-23T02_47_48_668Z-debug-0.log
npm timing npm:load:logFile Completed in 69ms
npm timing npm:load:timers Completed in 1ms
npm timing npm:load:configScope Completed in 1ms
npm timing npm:load Completed in 257ms
npm timing arborist:ctor Completed in 4ms
npm timing arborist:ctor Completed in 0ms
npm timing idealTree:init Completed in 63ms
npm timing idealTree:userRequests Completed in 14ms
npm http fetch GET 200 https://registry.npmjs.org/sharp 209ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color 207ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 210ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 202ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 225ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 233ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 244ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 244ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 263ms (cache hit)
npm timing idealTree:#root Completed in 624ms
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 335ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 356ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 351ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 330ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-string 362ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 336ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/minimist 357ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 335ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 348ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/pump 373ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 349ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 362ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 389ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/once 393ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 380ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/chownr 401ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/rc 434ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 409ms (cache hit)
npm timing idealTree:node_modules/sharp Completed in 614ms
npm http fetch GET 200 https://registry.npmjs.org/color-name 67ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 75ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 68ms (cache hit)
npm timing idealTree:node_modules/color Completed in 112ms
npm timing idealTree:node_modules/color-convert Completed in 9ms
npm timing idealTree:node_modules/color-name Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 62ms (cache hit)
npm timing idealTree:node_modules/color-string Completed in 87ms
npm timing idealTree:node_modules/detect-libc Completed in 0ms
npm timing idealTree:node_modules/node-addon-api Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 155ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 159ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ini 161ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 170ms (cache hit)
npm timing idealTree:node_modules/prebuild-install Completed in 278ms
npm timing idealTree:node_modules/expand-template Completed in 1ms
npm timing idealTree:node_modules/github-from-package Completed in 0ms
npm timing idealTree:node_modules/minimist Completed in 0ms
npm timing idealTree:node_modules/mkdirp-classic Completed in 0ms
npm timing idealTree:node_modules/napi-build-utils Completed in 0ms
npm timing idealTree:node_modules/node-abi Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/wrappy 45ms (cache hit)
npm timing idealTree:node_modules/pump Completed in 82ms
npm timing idealTree:node_modules/end-of-stream Completed in 0ms
npm timing idealTree:node_modules/once Completed in 7ms
npm timing idealTree:node_modules/rc Completed in 20ms
npm timing idealTree:node_modules/deep-extend Completed in 0ms
npm timing idealTree:node_modules/ini Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/yallist 40ms (cache hit)
npm timing idealTree:node_modules/semver Completed in 61ms
npm timing idealTree:node_modules/lru-cache Completed in 7ms
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 44ms (cache hit)
npm timing idealTree:node_modules/simple-get Completed in 66ms
npm timing idealTree:node_modules/decompress-response Completed in 10ms
npm timing idealTree:node_modules/mimic-response Completed in 0ms
npm timing idealTree:node_modules/simple-concat Completed in 0ms
npm timing idealTree:node_modules/simple-swizzle Completed in 10ms
npm timing idealTree:node_modules/is-arrayish Completed in 1ms
npm timing idealTree:node_modules/strip-json-comments Completed in 1ms
npm http fetch GET 200 https://registry.npmjs.org/fs-constants 90ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bl 100ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/readable-stream 103ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/inherits 139ms (cache hit)
npm timing idealTree:node_modules/tar-fs Completed in 189ms
npm timing idealTree:node_modules/chownr Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 71ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/string_decoder 83ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/buffer 97ms (cache hit)
npm timing idealTree:node_modules/tar-stream Completed in 149ms
npm http fetch GET 200 https://registry.npmjs.org/base64-js 55ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ieee754 54ms (cache hit)
npm timing idealTree:node_modules/bl Completed in 74ms
npm timing idealTree:node_modules/buffer Completed in 15ms
npm timing idealTree:node_modules/base64-js Completed in 0ms
npm timing idealTree:node_modules/fs-constants Completed in 0ms
npm timing idealTree:node_modules/ieee754 Completed in 0ms
npm timing idealTree:node_modules/inherits Completed in 0ms
npm timing idealTree:node_modules/readable-stream Completed in 16ms
npm timing idealTree:node_modules/string_decoder Completed in 9ms
npm timing idealTree:node_modules/safe-buffer Completed in 0ms
npm timing idealTree:node_modules/tunnel-agent Completed in 1ms
npm timing idealTree:node_modules/util-deprecate Completed in 0ms
npm timing idealTree:node_modules/wrappy Completed in 0ms
npm timing idealTree:node_modules/yallist Completed in 0ms
npm timing idealTree:buildDeps Completed in 2518ms
npm timing idealTree:fixDepFlags Completed in 8ms
npm timing idealTree Completed in 2616ms
npm timing reify:loadTrees Completed in 2621ms
npm timing reify:diffTrees Completed in 15ms
npm timing reify:retireShallow Completed in 6ms
npm timing reify:createSparse Completed in 62ms
npm timing reify:loadBundles Completed in 0ms
npm timing reifyNode:node_modules/chownr Completed in 1199ms
npm timing reifyNode:node_modules/strip-json-comments Completed in 1200ms
npm timing reifyNode:node_modules/ini Completed in 1203ms
npm timing reifyNode:node_modules/wrappy Completed in 1205ms
npm timing reifyNode:node_modules/once Completed in 1205ms
npm timing reifyNode:node_modules/end-of-stream Completed in 1207ms
npm timing reifyNode:node_modules/mkdirp-classic Completed in 1208ms
npm timing reifyNode:node_modules/color-name Completed in 1211ms
npm timing reifyNode:node_modules/simple-swizzle Completed in 1212ms
npm timing reifyNode:node_modules/color-string Completed in 1215ms
npm timing reifyNode:node_modules/ieee754 Completed in 1242ms
npm timing reifyNode:node_modules/inherits Completed in 1243ms
npm timing reifyNode:node_modules/fs-constants Completed in 1245ms
npm timing reifyNode:node_modules/mimic-response Completed in 1244ms
npm timing reifyNode:node_modules/decompress-response Completed in 1244ms
npm timing reifyNode:node_modules/lru-cache Completed in 1244ms
npm timing reifyNode:node_modules/tunnel-agent Completed in 1242ms
npm timing reifyNode:node_modules/util-deprecate Completed in 1269ms
npm timing reifyNode:node_modules/color Completed in 1244ms
npm timing reifyNode:node_modules/string_decoder Completed in 1271ms
npm timing reifyNode:node_modules/base64-js Completed in 1273ms
npm timing reifyNode:node_modules/yallist Completed in 1266ms
npm timing reifyNode:node_modules/expand-template Completed in 1266ms
npm timing reifyNode:node_modules/simple-concat Completed in 1280ms
npm timing reifyNode:node_modules/deep-extend Completed in 1278ms
npm timing reifyNode:node_modules/pump Completed in 1278ms
npm timing reifyNode:node_modules/napi-build-utils Completed in 1280ms
npm timing reifyNode:node_modules/safe-buffer Completed in 1309ms
npm timing reifyNode:node_modules/is-arrayish Completed in 1304ms
npm timing reifyNode:node_modules/color-convert Completed in 1322ms
npm timing reifyNode:node_modules/detect-libc Completed in 1317ms
npm timing reifyNode:node_modules/tar-stream Completed in 1355ms
npm timing reifyNode:node_modules/simple-get Completed in 1385ms
npm timing reifyNode:node_modules/buffer Completed in 1406ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 1425ms
npm timing auditReport:getReport Completed in 1448ms
npm timing auditReport:init Completed in 0ms
npm timing reify:audit Completed in 1453ms
npm timing reifyNode:node_modules/github-from-package Completed in 1412ms
npm timing reifyNode:node_modules/rc Completed in 1423ms
npm timing reifyNode:node_modules/bl Completed in 1438ms
npm timing reifyNode:node_modules/prebuild-install Completed in 1426ms
npm timing reifyNode:node_modules/node-abi Completed in 1441ms
npm timing reifyNode:node_modules/minimist Completed in 1509ms
npm timing reifyNode:node_modules/readable-stream Completed in 1602ms
npm timing reifyNode:node_modules/node-addon-api Completed in 1591ms
npm timing reifyNode:node_modules/tar-fs Completed in 1601ms
npm timing reifyNode:node_modules/semver Completed in 1615ms
npm timing reifyNode:node_modules/sharp Completed in 1625ms
npm timing reify:unpack Completed in 1655ms
npm timing reify:unretire Completed in 0ms
npm timing build:queue Completed in 18ms
npm timing build:link:node_modules/prebuild-install Completed in 26ms
npm timing build:link:node_modules/semver Completed in 23ms
npm timing build:link:node_modules/rc Completed in 27ms
npm timing build:link Completed in 34ms
npm info run<EMAIL_ADDRESS>install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

<EMAIL_ADDRESS>install
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Using cached /data/data/com.termux/files/home/.npm/_libvips/libvips-8.13.1-linux-arm64v8.tar.br
sharp: Installation error: EACCES: permission denied, link '/data/data/com.termux/files/home/storage/empty/node_modules/sharp/vendor/8.13.1/linux-arm64v8/include/libpng16/pngconf.h' -> '/data/data/com.termux/files/home/storage/empty/node_modules/sharp/vendor/8.13.1/linux-arm64v8/include/pngconf.h'
sharp: Are you trying to install as a root or sudo user?
sharp: - For npm <= v6, try again with the "--unsafe-perm" flag
sharp: - For npm >= v8, the user must own the directory "npm install" is run in
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
gyp info it worked if it ends with oknfo run<EMAIL_ADDRESS>gyp verb cli [
gyp verb cli   '/data/data/com.termux/files/usr/bin/node',
gyp verb cli   '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild'
gyp verb cli ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| android | arm64
gyp verb command rebuild []
gyp verb command clean []ify:sharp: info run<EMAIL_ADDRESS>gyp verb clean removing "build" directoryrun<EMAIL_ADDRESS>gyp verb command configure []
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - executable path is "/data/data/com.termux/files/usr/bin/python3"
gyp verb find Python - executing "/data/data/com.termux/files/usr/bin/python3" to get version
gyp verb find Python - version is "3.10.5"un<EMAIL_ADDRESS>gyp info find Python using Python version 3.10.5 found at "/data/data/com.termux/files/usr/bin/python3"
gyp verb get node dir no --target version specified, falling back to host node version: 18.3.0
gyp verb command install [ '18.3.0' ]
gyp verb install input version string<EMAIL_ADDRESS>gyp verb install installing version: 18.3.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9arp: info run<EMAIL_ADDRESS>gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 18.3.0
gyp verb build dir attempting to create "build" dir: /data/data/com.termux/files/home/storage/empty/node_modules/sharp/build
gyp verb build dir "build" dir needed to be created?  System Linux 3.18.60-SHIFT-00415-gcb97a5cbad1
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/home/storage/empty/node_modules/sharp
gyp ERR! node -v v18.3.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
npm info run<EMAIL_ADDRESS>install { code: 1, signal: null }
npm timing reify:rollback:createSparse Completed in 495ms
npm timing reify:rollback:retireShallow Completed in 1ms
npm timing command:install Completed in 23501ms
npm verb stack Error: command failed
npm verb stack     at ChildProcess. (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
npm verb stack     at ChildProcess.emit (node:events:527:28)
npm verb stack     at maybeClose (node:internal/child_process:1090:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm verb pkgid<EMAIL_ADDRESS>npm verb cwd /data/data/com.termux/files/home/storage/empty
npm verb Linux 3.18.60-SHIFT-00415-gcb97a5cbad1
npm verb node v18.3.0
npm verb npm  v8.11.0
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/home/storage/empty/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm verb exit 1
npm timing npm Completed in 24239ms
npm verb unfinished npm timer reify<PHONE_NUMBER>394
npm verb unfinished npm timer reify:build<PHONE_NUMBER>872
npm verb unfinished npm timer build<PHONE_NUMBER>873
npm verb unfinished npm timer build:deps<PHONE_NUMBER>874
npm verb unfinished npm timer build:run:install<PHONE_NUMBER>928
npm verb unfinished npm timer build:run:install:node_modules/sharp<PHONE_NUMBER>931
npm verb code 1
npm ERR! A complete log of this run can be found in:
npm ERR!     /data/data/com.termux/files/home/.npm/_logs/2022-09-23T02_47_48_668Z-debug-0.log

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?

~/storage/empty $ npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
Need to install the following packages:
envinfo
Ok to proceed? (y) y
System:
OS: android
CPU: Unknown
Memory: 548.43 MB / 3.61 GB
Binaries:
Node: 18.3.0 - /data/data/com.termux/files/usr/bin/node
npm: 8.11.0 - /data/data/com.termux/files/usr/bin/npm

Did you see the following in the output you've provided:

sharp: Installation error: EACCES: permission denied, link '/data/data/com.termux/files/home/storage/empty/node_modules/sharp/vendor/8.13.1/linux-arm64v8/include/libpng16/pngconf.h' -> '/data/data/com.termux/files/home/storage/empty/node_modules/sharp/vendor/8.13.1/linux-arm64v8/include/pngconf.h'

sharp: Are you trying to install as a root or sudo user?
sharp: - For npm <= v6, try again with the "--unsafe-perm" flag
sharp: - For npm >= v8, the user must own the directory "npm install" is run in

Does the user running npm install own the directory it is run in?

Yes, the user owns the folder.
I think I've got it qorking now. Had to install 'make' manually and ignore the suggestion to do np audit fix --force to fix vulnerabilites.
This is the output afterwards (in the context of install the astro integration rather than just sharp itself):
~/storage/test-astro-droid $ npm install --platform=linux @astrojs/image
[##################] - reify:sharp: timing metavuln:cal

<EMAIL_ADDRESS>install
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Detected globally-installed libvips v8.12.2n:cal
sharp: Building from source via node-gyp
gyp info it worked if it ends with okiming metavuln:cal
gyp info using<EMAIL_ADDRESS>gyp info[##################] \ reify:sharp: timing metav using<EMAIL_ADDRESS>| android | arm64
gyp info find Python using Python version 3.10.5 found at "/data/data/com.termux/files/usr/bin/python3"
gyp info spawn /data/data/com.termux/files/usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/home/storage/test-astro-droid/node_modules/sharp/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/home/.cache/node-gyp/18.3.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/18.3.0',
gyp info spawn args   '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/18.3.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/data/data/com.termux/files/home/storage/test-astro-droid/node_modules/sharp',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make] \ reify:sharp: timing metavuln:cal
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make ✖ ERR  Missing Makefile / Bakefile ng metavuln:cal
make ℹ info Run "make init" to generate a Makefile.
gyp info ok #######] \ reify:sharp: timing metavuln:cal
added 35 packages, and audited 631 packages in 39s
205 packages are looking for funding
run npm fund for details
5 high severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details

Yes, the user owns the folder.
I've got it installed now, but still not working... Had to install 'make' manually and ignore the suggestion to do np audit fix --force to fix vulnerabilites.
This is the output after install (in the context of install the astro integration rather than just sharp itself):
~/storage/test-astro-droid $ npm install --platform=linux @astrojs/image
[##################] - reify:sharp: timing metavuln:cal

<EMAIL_ADDRESS>install
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Detected globally-installed libvips v8.12.2n:cal
sharp: Building from source via node-gyp
gyp info it worked if it ends with okiming metavuln:cal
gyp info using<EMAIL_ADDRESS>gyp info[##################] \ reify:sharp: timing metav using<EMAIL_ADDRESS>| android | arm64
gyp info find Python using Python version 3.10.5 found at "/data/data/com.termux/files/usr/bin/python3"
gyp info spawn /data/data/com.termux/files/usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/home/storage/test-astro-droid/node_modules/sharp/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/data/data/com.termux/files/home/.cache/node-gyp/18.3.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/18.3.0',
gyp info spawn args   '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/18.3.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/data/data/com.termux/files/home/storage/test-astro-droid/node_modules/sharp',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make] \ reify:sharp: timing metavuln:cal
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make ✖ ERR  Missing Makefile / Bakefile ng metavuln:cal
make ℹ info Run "make init" to generate a Makefile.
gyp info ok #######] \ reify:sharp: timing metavuln:cal
added 35 packages, and audited 631 packages in 39s
205 packages are looking for funding
run npm fund for details
5 high severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details
Here is the input from trying to run Astro with sharp installed as a dependency.
~/storage/learning-astro $ npm run dev

<EMAIL_ADDRESS>dev
astro dev

/data/data/com.termux/files/home/storage/learning-astro/node_modules/@astrojs/image/node_modules/sharp/lib/sharp.js:34
throw new Error(help.join('\n'));
^
Error:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-android-arm64v8.node'
Require stack:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Possible solutions:

Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
Install for the current android-arm64v8 runtime: "npm install --platform=android --arch=arm64v8 sharp"
Consult the installation documentation: https://sharp.pixelplumbing.com/install
at Object. (/data/data/com.termux/files/home/storage/learning-astro/node_modules/@astrojs/image/node_modules/sharp/lib/sharp.js:34:9)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/data/data/com.termux/files/home/storage/learning-astro/node_modules/@astrojs/image/node_modules/sharp/lib/constructor.js:8:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

Node.js v18.3.0

sharp: Detected globally-installed libvips v8.12.2

It looks like you've installed a custom libvips, which means you'll need to provide extra dependencies to be able to compile sharp - please see https://sharp.pixelplumbing.com/install#building-from-source
However, I'm unsure if node-gyp fully supports Android so perhaps try removing the globally-installed libvips to make things a bit simple for yourself.

Thanks, I've removed the globally sourced libvips, and also cleared libvips from npm cache for good measure. Still get the same eacces error though...
I'm sure the user owns the folder and has rwx access. Unless the phone needs to be rooted for it to work or something...
Only other idea is if it relates to hard links vs symbolic links and things like that? (I don't really know what I'm talking about though...)
Thinking of just giving up for now...
Thanks for your help.

@rohannelson Were you able to make any progress with this?

Thanks for the update, I'll close this issue, I agree this sounds like a (lack of) phone root access.

yesterday i met this problem too, tried to let it work and now i think there is a way to avoid the error.

at first i didn't install the libvips locally and the error "...permission denied..." just happened. i think this would relate to Termux or android about some kind of limited permission(though i tried to work as a root but made things much weird).
so i installed libvips in the Termux, and a bunch of dependencies to compile, such as python, golang, gcc, xorgproto. and finally the compile ended and suceeded, the project eventually works!

at last, add flag "--platform=linux" with the run command, or the sharp will try to find the android version which did not exists.

additionally, use yarn better than npm, maybe. )

yesterday i met this problem too, tried to let it work and now i think there is a way to avoid the error.

at first i didn't install the libvips locally and the error "...permission denied..." just happened. i think this would relate to Termux or android about some kind of limited permission(though i tried to work as a root but made things much weird).
so i installed libvips in the Termux, and a bunch of dependencies to compile, such as python, golang, gcc, xorgproto. and finally the compile ended and suceeded, the project eventually works!

at last, add flag "--platform=linux" with the run command, or the sharp will try to find the android version which did not exists.

additionally, use yarn better than npm, maybe. )

failed to install sharp on termux but i think my glib has some problem, but i dont know why, ive tried to install all glibs i can found
$ apt list | grep glib

WARNING: apt does not have a stable CLI interface.
Perhaps you should add the directory containing xproto.pc' to the PKG_CONFIG_PATH environment variable Package 'xproto', required by 'xrender', not found gyp verb command build []ify:sharp: info run<EMAIL_ADDRESS>gyp verb build type Releasey:sharp: info run<EMAIL_ADDRESS>gyp verb architecture arm64 gyp verb node dev dir /data/data/com.termux/files/home/.cache/node-gyp/18.14.1 gyp verb whichsucceeded formake/data/data/com.termux/files/usr/bin/make gyp verb bin symlinks adding symlinks (such as Python), at "/data/data/com.termux/files/home/koi-react-native/node_modules/sharp/build/node_gyp_bins", to PATH gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/data/data/com.termux/files/home/koi-react-native/node_modules/sharp/build'   cc -o Release/obj.target/nothing/../node-addon-api/nothing.o ../../node-addon-api/nothing.c '-DNODE_GYP_MODULE_NAME=nothing' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-D_GLIBCXX_USE_C99_MATH' -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/include/node -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/src -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/openssl/config -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/openssl/openssl/include -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/uv/include -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/zlib -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/v8/include  -fPIC -Wall -Wextra -Wno-unused-parameter -O3 -fno-omit-frame-pointer -fPIC  -MMD -MF ./Release/.deps/Release/obj.target/nothing/../node-addon-api/nothing.o.d.raw   -c rm -f Release/obj.target/../node-addon-api/nothing.a Release/obj.target/../node-addon-api/nothing.a.ar-file-list; mkdir -pdirname Release/obj.target/../node-addon-api/nothing.aar crs Release/obj.target/../node-addon-api/nothing.a @Release/obj.target/../node-addon-api/nothing.a.ar-file-list   ln -f "Release/obj.target/../node-addon-api/nothing.a" "Release/nothing.a" 2>/dev/null || (rm -rf "Release/nothing.a" && cp -af "Release/obj.target/../node-addon-api/nothing.a" "Release/nothing.a")   touch Release/obj.target/libvips-cpp.stamp<EMAIL_ADDRESS> aarch64-linux-android-clang++ -o Release/obj.target/sharp-android-arm64v8/src/common.o ../src/common.cc '-DNODE_GYP_MODULE_NAME=sharp-android-arm64v8' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DNAPI_VERSION=7' '-DBUILDING_NODE_EXTENSION' '-D_GLIBCXX_USE_C99_MATH' -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/include/node -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/src -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/openssl/config -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/openssl/openssl/include -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/uv/include -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/zlib -I/data/data/com.termux/files/home/.cache/node-gyp/18.14.1/deps/v8/include -I../../node-addon-api  -fPIC -Wall -Wextra -Wno-unused-parameter -O3 -fno-omit-frame-pointer -fPIC -fno-rtti -fno-exceptions -std=gnu++17 -std=c++0x -fexceptions -Wall -Os -MMD -MF ./Release/.deps/Release/obj.target/sharp-android-arm64v8/src/common.o.d.raw   -c In file included from ../src/common.cc:13:un<EMAIL_ADDRESS>/data/data/com.termux/files/usr/include/vips/vips8:35:10: fatal error: 'glib-object.h' file not found #include <glib-object.h>          ^~~~~~~~~~~~~~~ 1 error generated.#] / reify:sharp: info run<EMAIL_ADDRESS>make: *** [sharp-android-arm64v8.target.mk:128: Release/obj.target/sharp-android-arm64v8/src/common.o] Error 1 make: Leaving directory '/data/data/com.termux/files/home/koi-react-native/node_modules/sharp/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 4.4.78-perf+
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/home/koi-react-native/node_modules/sharp
gyp ERR! node -v v18.14.1
gyp ERR! node-gyp -v v9.3.0
gyp ERR! not ok
npm info run<EMAIL_ADDRESS>install { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack     at ChildProcess. (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack     at ChildProcess.emit (node:events:513:28)
npm verb stack     at maybeClose (node:internal/child_process:1091:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm verb pkgid<EMAIL_ADDRESS>npm verb cwd /data/data/com.termux/files/home/koi-react-native
npm verb Linux 4.4.78-perf+
npm verb node v18.14.1
npm verb npm  v9.3.1
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/home/koi-react-native/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm verb exit 1
npm verb unfinished npm timer reify<PHONE_NUMBER>288
npm verb unfinished npm timer reify:build<PHONE_NUMBER>812
npm verb unfinished npm timer build<PHONE_NUMBER>819
npm verb unfinished npm timer build:deps<PHONE_NUMBER>820
npm verb unfinished npm timer build:run:install<PHONE_NUMBER>865
npm verb unfinished npm timer build:run:install:node_modules/sharp<PHONE_NUMBER>868
npm verb code 1
npm ERR! A complete log of this run can be found in:
npm ERR!     /data/data/com.termux/files/home/.npm/_logs/2023-05-19T02_44_53_172Z-debug-0.log

i think you may try
pkg install x11-repo
pkg install xorgproto
since xproto is required, and in Termux it's called this.

failed to install sharp on termux but i think my glib has some problem, but i dont know why, ive tried to install all glibs i can found
$ apt list | grep glib

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

glib-bin/stable 2.76.2 aarch64
glib-networking/stable 2.76.0 aarch64
glib/stable,now 2.76.2 aarch64 [installed]
json-glib/stable 1.6.6-3 aarch64
libglibmm-2.4/stable,now 2.66.6 aarch64 [installed]
libglibmm-2.68/stable,now 2.76.0 aarch64 [installed]
pulseaudio-glib-static/stable 14.2-10 aarch64
pulseaudio-glib/stable 16.1-4 aarch64
spglib-static/stable 2.0.2 aarch64
spglib/stable 2.0.2 aarch64
taglib/stable 1.13 aarch64

SHELL OUTPUT

i think you may try
pkg install x11-repo
pkg install xorgproto
since xproto is required, and in Termux it's called this.

@minatoAI  fixed! thank you, it helped me a lot!


Issue about the comparison with Lookahead

Hi, thanks for you great work! The issue I am concerned about is the deployed parallelism when compared to Lookahead. As far as I know, Lookahead currently does not supports tensor parallelism which is important in LLM serving. Do you achieve this on Lookahead, or are you just comparing it with pipeline parallelism version?

Thank you for your interest. EAGLE currently does not support tensor parallelism.


Crash on ShellGoToAsync(../) in Android with Xamarin latest version

When using SharedTransistion inside shell (<sharedTransitions:SharedTransitionShell) going back from any page causes an exception with message. No view found for id for fragment Shell Fragment Container even if the current page does not have any shared transition usage just replaced Shell with sharedTransitions:SharedTransitionShell
Exception message :: No view found for id for fragment Shell Fragment Container
When I removed SharedTransition back navigation works fine. Also It only crashes on Android,iOS works fine.
Xamarin.Forms version : Latest
Xamarin.Plugin.SharedTransitions : Latest

this is fixed in next release


Obtaining IP address of Netmaster

I have two containers(A & B). Container A creates container B. Container A also needs to establish the network, policies and rules for Container B by issuing REST api calls to Netmaster.
What is the best way for Container A to dynamically obtain the IP address of the Netmaster that it has visibility to? There could be multiple A containers that reside in different tenants/clusters so manually updating the /etc/hosts file with the netmaster entry for each Container A would be impractical.

In order achieve what you want, container A will need to be on the infra network. Thereby, the problem boils down to DNS resolution in the infra network.

@flightpath - is it possible to start the container with --net=host and use the dns options to specify the nameserver to be that of the host?

Thanks. Tried the --net=host option and that worked. Vipin I'm confused by your reference "use the dns options to specify the nameserver to be that of the host" because docs.docker states the following (i) Your container will use the same DNS servers as the host by default, but you can override this with --dns., and (ii) Note that --add-host --hostname --dns --dns-search --dns-opt and --mac-address are invalid in host netmode.

@flightpath
makes sense; thanks for confirming and trying this out. I wasn't sure if with --net=host dns server address is picked up from /etc/resolv.conf of the host. Looks like it is...

Vipin I'm confused by your reference "use the dns options to specify the nameserver to be that of the host" because docs.docker states the following (i) Your container will use the same DNS servers as the host by default, but you can override this with --dns., and (ii) Note that --add-host --hostname --dns --dns-search --dns-opt and --mac-address are invalid in host netmode.


cmake failure when building zlib in Windows

🐛 Describe the bug
I tried to build torchaudio from source on Windows machine. The nightly pytorch is installed via pip. When running the command call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" && set BUILD_SOX=0 && python setup.py develop, it throws an CMake error as follows:
FAILED: third_party/zlib/src/zlib--stamp/zlib--build ../../../third_party/install/lib/zlib.lib C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build C:/Users/zni/Documents/work/audio/third_party/install/lib/zlib.lib
cmd.exe /C "cd /D C:\Users\zni\Documents\work\audio\build\temp.win-amd64-cpython-310\Release\third_party\zlib\src\zlib- && C:\Users\zni\miniconda3\envs\dev\Library\bin\cmake.exe -P C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build-Release.cmake && C:\Users\zni\miniconda3\envs\dev\Library\bin\cmake.exe -E touch C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build"
CMake Error at C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build-Release.cmake:37 (message):
  Command failed: The system cannot find the file specified

   'cp' 'zlib.lib' 'C:/Users/zni/Documents/work/audio/third_party/zlib/../install/lib/'

  See also

    C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build.log

-- Log output is:

CMake Error at C:/Users/zni/Documents/work/audio/build/temp.win-amd64-cpython-310/Release/third_party/zlib/src/zlib--stamp/zlib--build-Release.cmake:47 (message):
  Stopping after outputting logs.

Is there any library that I missed in my environment?
Versions
Collecting environment information...
PyTorch version: 1.14.0.dev20221113+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Home
GCC version: Could not collect
Clang version: 12.0.0
CMake version: version 3.22.1
Libc version: N/A

Python version: 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22621-SP0
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] torch==1.14.0.dev20221113+cpu
[conda] torch                     1.14.0.dev20221113+cpu          pypi_0    pypi

Solved by using bash.exe in Git software. Using command prompt or power shell will cause the above problem.


Switching from generic interface for connections to TCP-specific one

Ran a test between 2 EC2s, saw a drop in errors (which is probably happenstance), but roughly the same throughput.

More error logging, less string concat during writes. Fits with my goals


Missing argument for logman start

The argument list is very sparse and there is nowhere on in docs mentioned that -p argument might be used for this command.
From logman /?:
-[-]p <provider [flags [level]]> A single Event Trace provider to enable. The terms 'Flags' and 'Keywords' are synonymous in this context.
This is only one example, but the logman help contains much more arguments compared to the website.
Could you please update the logman documentation so all the possible arguments will be exhaustively described?

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

ID: 03fe4dfa-455b-d7c7-2aae-cc4d95e2e702
Version Independent ID: 83e265c0-3157-2c2c-e852-57cd222c0cb3
Content: logman start and logman stop
Content Source: WindowsServerDocs/administration/windows-commands/logman-start-stop.md
Product: windows-server
Technology: windows-commands
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

Any progress on this one?

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


UI: Packages - show package information in a tooltip

[x] npm link / data
[x] bundlephobia link

close by https://github.com/relative-ci/bundle-stats/pull/1251


Dev: RESTful API

Test Guide:

Clone Project to your xampp/htdocs directory
Open the project in your preferred code editor
Modify the .htaccess  and .env files in v1/ and v1/public/ by trimming off "copy" in the filenames
Open git bash in the project root folder and start your local development server at php -S localhost:8888 -t public
Open Xampp control panel and  start apache and mysql
Navigate to the public directory and run boostrap.php to create necessary database and tables. The script will also insert sample files into the table in the database.
Using the preferred http client of your choice, make RESTful request to any of the endpoints shown in the README.md for this repo

Technical requirements:
Setup and Environment:
✔Use Composer to manage project dependencies.
✔Utilise the Slim Framework as the foundation for building the REST API.
✔Set up a MySQL database for storing data.
API Endpoints:
✔GET /v1/movies - get list of all existing movies
✔POST /v1/movies - add new movie to collection
✔PUT /v1/movies/{id} - updates movie by {id}
✔DELETE /v1/movies/{id} - deletes movie by {id}
✔PATCH /v1/movies/{id} - updates particular data of movie by {id}
✔GET /v1/movies/{numberPerPage} - get list of {numberPerPage} existing movies
✔GET /v1/movies/{numberPerPage}/sort/{fieldToSort} - get list of {numberPerPage} existing movies sorted by {fieldToSort}
Database Interaction:
✔Use PDO or an ORM (such as Eloquent) to interact with the database.
✔Handle database connection, queries, and transactions appropriately.
Validation and Error Handling:
✔Implement validation for incoming data (request parameters and body) to ensure data integrity.
✔ Return appropriate HTTP status codes for different scenarios (e.g., 200 for success, 404 for not found, 400 for bad request).
✔Provide meaningful error messages in response bodies for error situations.
API Documentation with Swagger:
✔ Integrate Swagger (OpenAPI) for automatic API documentation generation.
✔ Document each endpoint's usage, input parameters, response formats, and example requests/responses.
Middleware:
✔ Use middleware for request/response logging (mandatory), authentication(not mandatory), or any additional cross-cutting concerns (not mandatory).
Great job! No notices from my side! It's pure 10 out of 10 🔥


Error: Could not find or load main class org.xmlcml.ami2.plugins.CommandProcessor

I got this error message when running cmine. I'm on Fedora 25 with Java 1.8... unable to manually download and install java 1.7 as it's discontinued. See: https://www.java.com/en/download/faq/java_7.xml
What can I do? Any clues would be appreciated.

Please give some more details including the location and version of Ami. My
guess is that there are inconsistent versions.
FWIW I am adding AMI to the new build on Github - and will post RSN .
On Thu, Apr 6, 2017 at 12:31 AM, A. s<EMAIL_ADDRESS>wrote:

I got this error message when running cmine. I'm on Fedora 25 with Java
1.8... unable to manually download and install java 1.7 as it's
discontinued. See: https://www.java.com/en/download/faq/java_7.xml
What can I do? Any clues would be appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ContentMine/ami/issues/66, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsxS7DeNRr3rpMPqTbh_TO1z4T-ksRVks5rtCRlgaJpZM4M08JO
.

--
Peter Murray-Rust
Reader Emeritus in Molecular Informatics
Unilever Centre, Dept. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069


support gpt-3.5-0301 model

support the 0301 gpt3.5 model

The only reason I haven't added this is because they say they'll stop supporting it.
Any thoughts on why we should add it?

The only reason I haven't added this is because they say they'll stop supporting it.
Any thoughts on why we should add it?

the official documenmt (https://platform.openai.com/docs/models/gpt-3-5)
says 'will only be supported for a three month period ending on June 1st 2023', so at this period we could use it, could we?

for this discussion: https://www.reddit.com/r/GPT3/comments/11kwxi1/gpt35turbo0301_vs_gpt35turbo/
may be we don't need this model name, I will close this pr.


ModuleNotFoundError: No module named 'tensorflow_examples'

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Just trying to import and check
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
TensorFlow installed from (source or binary): pip with GPU support
TensorFlow version (use command below): 2.0.0
Python version: 3.5
Bazel version (if compiling from source): No
GCC/Compiler version (if compiling from source):No
CUDA/cuDNN version: Cuda compilation tools, release 10.1, V10.1.243(nvcc --version)
GPU model and memory: GeForce 920M

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

version - 2.0.0
Describe the current behavior
In my Notebook's first cell, I wrote :
!pip install git+https://github.com/tensorflow/examples.git
!pip install -U tfds-nightly

On the next cell :
import tensorflow as tf
from tensorflow_examples.models.pix2pix import pix2pix

But it gives me : ModuleNotFoundError: No module named 'tensorflow_examples'
Describe the expected behavior
It should have exported the module.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Here is the pip install log :
Collecting git+https://github.com/tensorflow/examples.git
  Cloning https://github.com/tensorflow/examples.git to c:\users\mua\appdata\local\temp\pip-req-build-qtmqgj7m
Requirement already satisfied (use --upgrade to upgrade): tensorflow-examples===b30a40f9416fc38cfa91ca03d835ba1fc432a824- from git+https://github.com/tensorflow/examples.git in e:\software\python 3.5\lib\site-packages
Requirement already satisfied: absl-py in e:\software\python 3.5\lib\site-packages (from tensorflow-examples===b30a40f9416fc38cfa91ca03d835ba1fc432a824-) (0.8.1)
Requirement already satisfied: six in e:\software\python 3.5\lib\site-packages (from tensorflow-examples===b30a40f9416fc38cfa91ca03d835ba1fc432a824-) (1.14.0)
Building wheels for collected packages: tensorflow-examples
  Building wheel for tensorflow-examples (setup.py): started
  Building wheel for tensorflow-examples (setup.py): finished with status 'done'
  Created wheel for tensorflow-examples: filename=tensorflow_examples-b30a40f9416fc38cfa91ca03d835ba1fc432a824_-py3-none-any.whl size=136427 sha256=40d5b23f277f4634313116bf6205588e8668a499798fe1c7fdad143fc6144b68
  Stored in directory: C:\Users\MUA\AppData\Local\Temp\pip-ephem-wheel-cache-5wvvxv8d\wheels\e2\f1\08\a5d8eb62f62cc814d511a70115a5467b1135ec8270dd16d620
Successfully built tensorflow-examples
  Running command git clone -q https://github.com/tensorflow/examples.git 'C:\Users\MUA\AppData\Local\Temp\pip-req-build-qtmqgj7m'
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'e:\software\python 3.5\python.exe -m pip install --upgrade pip' command.
Collecting tfds-nightly
  Downloading tfds_nightly-3.2.1.dev202007220105-py3-none-any.whl (3.4 MB)
Requirement already satisfied, skipping upgrade: wrapt in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (1.11.2)
Requirement already satisfied, skipping upgrade: numpy in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (1.17.4)
Requirement already satisfied, skipping upgrade: tqdm in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (4.45.0)
Collecting tensorflow-metadata
  Downloading tensorflow_metadata-0.23.0-py3-none-any.whl (43 kB)
Collecting promise
  Downloading promise-2.3.tar.gz (19 kB)
Collecting dill
  Downloading dill-0.3.2.zip (177 kB)
Requirement already satisfied, skipping upgrade: six in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (1.14.0)
Collecting attrs>=18.1.0
  Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied, skipping upgrade: protobuf>=3.6.1 in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (3.10.0)
Requirement already satisfied, skipping upgrade: absl-py in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (0.8.1)
Requirement already satisfied, skipping upgrade: termcolor in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (1.1.0)
Requirement already satisfied, skipping upgrade: requests>=2.19.0 in e:\software\python 3.5\lib\site-packages (from tfds-nightly) (2.23.0)
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
Collecting googleapis-common-protos
  Downloading googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB)
Requirement already satisfied, skipping upgrade: setuptools in e:\software\python 3.5\lib\site-packages (from protobuf>=3.6.1->tfds-nightly) (41.6.0)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in e:\software\python 3.5\lib\site-packages (from requests>=2.19.0->tfds-nightly) (1.25.8)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in e:\software\python 3.5\lib\site-packages (from requests>=2.19.0->tfds-nightly) (2.9)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in e:\software\python 3.5\lib\site-packages (from requests>=2.19.0->tfds-nightly) (2019.11.28)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in e:\software\python 3.5\lib\site-packages (from requests>=2.19.0->tfds-nightly) (3.0.4)
Building wheels for collected packages: promise, dill, future
  Building wheel for promise (setup.py): started
  Building wheel for promise (setup.py): finished with status 'done'
  Created wheel for promise: filename=promise-2.3-py3-none-any.whl size=21498 sha256=82af1fb81258e76c2ddec82ec8870ec0901b560e2547ddff0f81e096cd65fdc2
  Stored in directory: c:\users\mua\appdata\local\pip\cache\wheels\b6\3e\4e\d80f74df03a8059f631b23ec49939d8fa0a2633522596b6ffd
  Building wheel for dill (setup.py): started
  Building wheel for dill (setup.py): finished with status 'done'
  Created wheel for dill: filename=dill-0.3.2-py3-none-any.whl size=78977 sha256=22a67eb861aca650bc9f1e039c15cb8ef9a87fbe88a139952868f352dd8f51aa
  Stored in directory: c:\users\mua\appdata\local\pip\cache\wheels\5c\4b\fd\db4143df7b4a4301b4068a2ed49f300b76b13d87b23bf375da
  Building wheel for future (setup.py): started
  Building wheel for future (setup.py): finished with status 'done'
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491061 sha256=f19a6fd742fd80f4a1995a132c1c10b6de14b112ef5110bcb31eff13a2379306
  Stored in directory: c:\users\mua\appdata\local\pip\cache\wheels\c4\f0\ae\d4689c4532d1f111462ed6a884a7767d502e511ee65f0d8e1b
Successfully built promise dill future
Installing collected packages: googleapis-common-protos, tensorflow-metadata, promise, dill, attrs, future, tfds-nightly
Successfully installed attrs-19.3.0 dill-0.3.2 future-0.18.2 googleapis-common-protos-1.52.0 promise-2.3 tensorflow-metadata-0.23.0 tfds-nightly-3.2.1.dev202007220105
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'e:\software\python 3.5\python.exe -m pip install --upgrade pip' command.

@maifeeulasad,
I was able to run the given code snippet without any issues. Please find the gist of it here.
Could you please update TensorFlow to v2.3 and check if you are facing the same issue? Thanks!

!pip install -q git+https://github.com/tensorflow/examples.git
it worked for me
you can see here
https://stackoverflow.com/questions/50313441/modulenotfounderror-no-module-named-tensorflow-examples
check if you are facing the same issue? Thanks!

@amahendrakar It's worked fine in colab, the problem was in local system..
@sum-code , really appreciate it, it works, it works perfectly, thanks...

Hi, maybe you should just write it without the 's' in http:
!pip install -q git+http://github.com/tensorflow/examples.git
That worked for me, I had the same problem!

Excluding the s as mentioned by @karinaaq worked for me


Calculate actual ad views

Sends a request to the advertising backend when an ad becomes visible in the viewport.
Uses a third-party library verge which has a (more robust than I could write) inViewport function.

rtdinview is a jQuery event namespace. These make it easier to get all the events in a namespace.


in-tree / out-tree semantics

In some of my recent Graph Theory studies, I learned there's actually specific terminology for trees formed by outgoing edges (i.e. out-trees or an arborescence) or it's incoming edges (i.e. in-tree or an anti-arborescence). In practice, this could probably just be a simple alias for a given endpoint.

I started using this in the Statement structs and I can already see how much easier it is to understand...


LOADK instruction right after LOADKX instead of an auxiliary parameter

By compiling the following code with optimization level 0:
local a = 123

you will get the bytecode:
0x05, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x03, 0x41,
0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x16, 0x00, 0x01, 0x00, 0x01,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x5E, 0x40, 0x00, 0x01, 0x00,
0x01, 0x18, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00

notice the instruction: 0x41, 0x00, 0x00, 0x00 (0x41 is LOADKX)
the next instruction is: 0x05, 0x00, 0x00, 0x00 (0x5 is LOADK)
but according to comments in Bytecode.h, there should be an auxiliary parameter right after LOADKX, what am I missing here? is this a bug?

Luau version 0.617 installed via brew.


Simplify is_better_update condition

If new_has_supermajority != old_has_supermajority

new
old
new > old

1
0
1

0
1
0

So the statement is equivalent to just new_has_supermajority

While it is more brief, I'm not sure if it is more readable as well.

It's already used in the same function in
https://github.com/ethereum/consensus-specs/blob/fcd905cb3a41758baca11125c3a5a3d73b951d98/specs/altair/light-client/sync-protocol.md?plain=1#L220-L221
and
https://github.com/ethereum/consensus-specs/blob/fcd905cb3a41758baca11125c3a5a3d73b951d98/specs/altair/light-client/sync-protocol.md?plain=1#L226-L227


Expose NavigationMeshGenerator API for custom modules / addons / extentions

Implementation draft for proposal https://github.com/godotengine/godot-proposals/issues/5138 to open the NavigationMeshGenerator API and NavigationMesh baking for custom modules / addons / extentions and move the node type specific code to dedicated files.
Adds NavigationGeometryParser3D class.
This class can be extended and registered on the NavigationMeshGenerator singleton to contribute 3D geometry from specified node class(es) for navmesh baking.
var parser : NavigationGeometryParser3D = NavigationGeometryParser3D.new()
NavigationMeshGenerator.register_geometry_parser_3d(parser)
NavigationMeshGenerator.unregister_geometry_parser_3d(parser)

Modules can use the parses_node() and parse_geometry() directly while scripts can override the underscore _parses_node() and _parse_geometry() functions. Since navmesh baking with ReCast requires specific, triangulated mesh data helper functions are exposed to add mesh resources or mesh arrays or single faces to the source geometry.
GDScript example with function override:
extends NavigationGeometryParser3D

func _parses_node(node : Node):
    # return true if this node wants to add baking geometry
    return node is CustomNode3D

func _parse_geometry(node: Node, navigationmesh : NavigationMesh):
    var mesh : Mesh = PlaneMesh.new()
    mesh.size = Vector2(10.0,10.0)
    var mesh_xfrom : Transform3D = node.global_transform
    add_mesh(mesh, mesh_xfrom)

    var mesh_array : Array = mesh.get_mesh_arrays()
    mesh_xfrom.origin.x += 5.0
    mesh_xfrom.origin.z += 5.0
    add_mesh_array(mesh_array, mesh_xfrom)

    mesh_xfrom.origin.x -= 10.0
    mesh_xfrom.origin.z -= 10.0
    var faces : PackedVector3Array = mesh.get_faces()
    add_faces(faces, mesh_xfrom)

From a discussion on RocketChat, it appears the NavigationServer singleton isn't available until all initialization levels of all the modules have finished to run. If that's true, it means this feature can't possibly work. Can you confirm?
That's quite bad though, it looks like an oversight. Initialization levels were created to deal with this kind of problem, but if NavigationServer doesn't use it, that defeats the whole point here^^"

Changed how the navmesh transform is handled as suggested and removed the individual parameters in favor of the NavigationMesh ref so all baking properties are available not just the source geometry typ and collision layer.
Not sure what the GCC sanitizer tests build check wants from me or why it is complaining when the array with the parser RefCount objects is cleared. Cannot reproduce any of this local.

Superseded by https://github.com/godotengine/godot/pull/70724


After 5.9 master merge my 5.8 npm start log

I installed 5.8, worked perfectly, i tried to install clean 5.9 after stable merge
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart<EMAIL_ADDRESS>6 info start<EMAIL_ADDRESS>7 verbose unsafe-perm in lifecycle true
8 info<EMAIL_ADDRESS>Failed to exec start script
9 error<EMAIL_ADDRESS>start: `node index`
9 error Exit status 255
10 error Failed at the<EMAIL_ADDRESS>start script.
10 error This is most likely a problem with the ghost package,
10 error not with npm itself.
10 error Tell the author that this fails on your system:
10 error     node index
10 error You can get their info via:
10 error     npm owner ls ghost
10 error There is likely additional logging output above.
11 error System Linux 3.18.6-1-ARCH
12 error command "/usr/local/bin/node" "/usr/local/bin/npm" "start"
13 error cwd /home/qlb/code/kamienica.pub
14 error node -v v0.10.33
15 error npm -v 1.4.28
16 error code ELIFECYCLE
17 verbose exit [ 1, true ]

Hi @qLB, sorry to hear you're having troubles.
As far as I can see from the logs, you're still trying to start Ghost 0.5.8 so it doesn't look like you've pulled 0.5.9 correctly via whatever means you used. The stable branch should be working fine.
As this is an environment/install issue, rather than a bug in the software, I recommend posting on our forum - the new topic page on the installation forum provides lots of hints at what sort of information to include so that the community can help you debug your problem.

I'm still investigating, somehow the grunt process is not shutting down
properly after ctrl+x out of it and the above error illustrates the log for
ip:port conflict.
On Thu, Mar 5, 2015 at 9:21 PM, Hannah Wolfe<EMAIL_ADDRESS>wrote:

Closed #4992 https://github.com/TryGhost/Ghost/issues/4992.
—
Reply to this email directly or view it on GitHub
https://github.com/TryGhost/Ghost/issues/4992#event-247060672.

CTRL+X does not exit the process - it moves it in the background. What you want is CTRL+C

<= noob... :P thanks
On Fri, Mar 6, 2015 at 5:21 PM, Fabian Becker<EMAIL_ADDRESS>wrote:

CTRL+X does not exit the process - it moves it in the background. What you
want is CTRL+C
—
Reply to this email directly or view it on GitHub
https://github.com/TryGhost/Ghost/issues/4992#issuecomment-77586757.


2.0: gradlew build failed

NDK: android-ndk-r14
ANDROID Studio: 2.2.3
ANDROID SDK Tools: 25.2.2
Step:

clone couchbase-lite-android
git checkout feature/2.0
git submodule update --init --recursive
cd couchbase-lite-android/android
gradlew build

Error:
Ran lint on variant debug: 17 issues found
Ran lint on variant release: 17 issues found
Wrote HTML report to file:///Users/pasin/tmp/couchbase-lite-android/android/CouchbaseLite/build/reports/lint-results.html
Wrote XML report to file:///Users/pasin/tmp/couchbase-lite-android/android/CouchbaseLite/build/reports/lint-results.xml
:CouchbaseLite:lint FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CouchbaseLite:lint'.
> Lint found errors in the project; aborting build.

  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }
  ...

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

This was dev environment setup issue.


Add a timeout to downloading a dataset and stop waiting if the job fails

My end to end tests in refinebio were never failing because this would never give up waiting for the dataset to become processed.
I've tested this by downloading a dataset.

I changed http to api_interface because it can cause conflicts with imports with the http library.  Updating those files triggered my autoformatter, and now this PR is huge. Sorry!


[HOLD for #39971] [$250] Chat - Unable to send manually copied and pasted code block and compose box not expanded

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.62-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4486095
Issue reported by: Applause - Internal Team
Action Performed:

Log in to New Expensify
Navigate to any chat
Send a message with code block
Highlight the code block and manually copy it by ctrl + c
Paste the copied message in compose box

Expected Result:
The message should be correctly pasted, the compose should be expanded to show entire message and the Send button should be enabled
Actual Result:
The Send button is disabled after pasting manually copied code block, and the compose box is not auto enlarged to show whole message
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/5b0fc765-085d-4e87-ae5e-31c25aa7e16d
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01fcf3941c43468e44
Upwork Job ID:<PHONE_NUMBER>000811008
Last Price Increase: 2024-04-22

@greg-schroeder  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-vsp

Hmmm.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Whenever the user pastes a copied code block in the chat input box the cursor is in the beginning and the box is not expanded. This happens every time the user pastes anything with the new line in the end, so if you were to triple click something copy and paste, the same issue would appear.
What is the root cause of that problem?
The root problem is that in "insertAtCaret" function in useHTMLPaste hook the selection range start and end index is determined incorrectly in cases there is a new line in the end of the insertion.
What changes do you think we should make in order to solve the problem?
I suggest using document.execCommand('insertHTML', false, text); instead of insertAtCaret. Method execCommand is being deprecated, however it is already being used in insertByCommand function as well as "copy" functionality and it does not seem like there is a valid alternative right now.
What alternative solutions did you explore? (Optional)
N/A

Proposal
Please re-state the problem that we are trying to solve in this issue.
After copying the code that was already sent in the chat, the input doesn't expand and it's not being sent.
What is the root cause of that problem?
The issue was in the library logic being used -<EMAIL_ADDRESS>This caused an error in the terminal as well. The logic for positioning the caret was flawed in case of code copy.
What changes do you think we should make in order to solve the problem?
Correct that logic inside the library, I'm guessing it's your library, that's where I changed it too.
Here's the footage of finished and fixed issue: Footage
What alternative solutions did you explore? (Optional)
You could manipulate the input being set there, but I think it's better to change the logic inside the library, so that it'll work on any such case in the future. Only adjusting it for the code input would not be a great idea as we don't know what other problems the issue inside the library will cause in the future with other types of inputs.

Proposal
Issue looks to be duplicate or same root cause of the linked ones above.
Detailed proposal linked here.
https://github.com/Expensify/App/issues/39971#issuecomment-2053860349

@brkdavis Thanks for your input! Yeah, they may share same root cause.
@greg-schroeder I think we can put this on hold for https://github.com/Expensify/App/issues/39971

@greg-schroeder I think we can put this on hold for #39971

@greg-schroeder Friendly bump!

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Yes, you do. Here, but nobody notices it. Even got the video footage of it working. No need to adjust the bounty.

@greg-schroeder I think we can put this on hold for https://github.com/Expensify/App/issues/39971

Not overdue, same^
cc @greg-schroeder

Putting on hold, sorry

Held

Same as above

""

""

#399971 this is still held

Held

This remains held

still on hold

@thienlnam can we add it to live markdown project? 🙏🏻

Held

Held

Held

Held

Same

#39971 is merged/deployed

@greg-schroeder Should we ask QA for a re-test to see if this issue is still reproducible?

Issue not reproducible during KI retests. (First week)

Seems we're not able to reproduce now, so #39971 likely did actually fix this. Closing for now, but please reopen if you disagree.


Implement the embedding cell set and metadata/sample views

Background
Link to issue
https://biomage.atlassian.net/browse/BIOMAGE-451
Link to staging deployment URL
https://ui-embedding-load-real-data.scp-staging.biomage.net/
Links to any Pull Requests related to this
N/A
Anything else the reviewers should know about the changes here
Changed some additional things, such as the layout of the data processing page (it's a card so it looks more put together) as well as using a carousel for the filters. I also refactored some of the loading logic from the config component to the main (plot) component.
Changes
Code changes
The plots now get their data from Redux, as required.
Definition of DONE
Your changes will be ready for merging after each of the steps below have been completed:
Testing

[x] Unit tests written
[x] Tested locally with Inframock
[ ] Deployed to staging

To set up easy local testing with inframock, follow the instructions here: https://github.com/biomage-ltd/inframock
To deploy to the staging environment, follow the instructions here: https://github.com/biomage-ltd/biomage-utils
Documentation updates
Is all relevant documentation updated to reflect the proposed changes in this PR?

[x] Relevant Github READMEs updated
[x] Relevant wiki pages created/updated

Approvers

[ ] Approved by a member of the core engineering team
[ ] (UX changes) Approved by vickymorrison

Just before merging:

[ ] After the PR is approved, the unstage script in here: https://github.com/biomage-ltd/biomage-utils is executed. This script cleans up your deployment to staging

Optional

[ ] Photo of a cute animal attached to this PR

Staging now available at https://ui-embedding-load-real-data.scp-staging.biomage.net/.

I understand staging is currently broken. I have some idea as to why, I'm currently pushing some fixes to make sure it works.

It is showing an empty plot on the samples view -- it will be more user-friendly if there was an indication about why the plot is empty - i.e. "The plot is empty because your dataset consists of only 1 sample"

Yup, this used to fail on staging because of a bug, and now that bug is fixed. I will add some empty state to this one accordingly.

@ivababukova -- this is now fixed.

Thanks Marcell, it looks better now, although I noticed a weird issue with the rendering of the cell sets view. I made a video that illustrates it, but basically for about half a second the embedding renders as empty. There were similar issues appearing in the frequency plot, I wonder if it is a vega thing. Do you have an idea what is the reason for this?
https://user-images.githubusercontent.com/65414651/106900562-f4347a80-66f6-11eb-8840-d43a6e294cc3.mov

Thanks Marcell, it looks better now, although I noticed a weird issue with the rendering of the cell sets view. I made a video that illustrates it, but basically for about half a second the embedding renders as empty. There were similar issues appearing in the frequency plot, I wonder if it is a vega thing. Do you have an idea what is the reason for this?
https://user-images.githubusercontent.com/65414651/106900562-f4347a80-66f6-11eb-8840-d43a6e294cc3.mov

It is incrementally loading. First it loads just the spec with no data, then as the data becomes available, it loads it with the data. If you want, I can make it not do that, although given Agi's changes it may be superfluous.


Dict bugfix (segment_arena builtin)

Checklist

[x] Relevant issue is linked
[x] Docs updated/issue for docs created
[x] Added relevant tests
Closes #1944

Closing as we will probably won't work it soon


DO NOT MERGE: Test remote cache on Windows

This is just a test for internal change on github presubmit

Nagging Assignee @martinwicke: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


Setting interface address

I cannot get the -a argument to change the interface address when running the commands ./build/examples/csp_server -k /dev/ttyUSB0 -a 2 and ./build/examples/csp_client -k /dev/serial0 -a 1 -C 2. See below for terminal output.
Initialising CSP
Connection table
[00 0x562cbc97ca60] S:0, 0 -> 0, 0 -> 0 (17) fl 0
[01 0x562cbc97cb70] S:0, 0 -> 0, 0 -> 0 (18) fl 0
[02 0x562cbc97cc80] S:0, 0 -> 0, 0 -> 0 (19) fl 0
[03 0x562cbc97cd90] S:0, 0 -> 0, 0 -> 0 (20) fl 0
[04 0x562cbc97cea0] S:0, 0 -> 0, 0 -> 0 (21) fl 0
[05 0x562cbc97cfb0] S:0, 0 -> 0, 0 -> 0 (22) fl 0
[06 0x562cbc97d0c0] S:0, 0 -> 0, 0 -> 0 (23) fl 0
[07 0x562cbc97d1d0] S:0, 0 -> 0, 0 -> 0 (24) fl 0
Interfaces
LOOP       addr: 0 netmask: 14 dfl: 0
           tx: 00000 rx: 00000 txe: 00000 rxe: 00000
           drop: 00000 autherr: 00000 frame: 00000
           txb: 0 (0B) rxb: 0 (0B)

KISS       addr: 0 netmask: 0 dfl: 1
           tx: 00000 rx: 00000 txe: 00000 rxe: 00000
           drop: 00000 autherr: 00000 frame: 00000
           txb: 0 (0B) rxb: 0 (0B)

Server task started

Server - Ubuntu 22.04 on laptop
Client - Raspberry Pi - Serial Tx Rx pins.

Perhaps I'm missing something but should the -a flag not set the addresses? I've also tried adding a routing table entry directly in the both the Server and Client scripts.
if (default_iface) {
    csp_rtable_set(1, -1, default_iface, CSP_NO_VIA_ADDRESS);
}

Any help would be much appreciated.

apologize for inconvenient.
Please see https://github.com/libcsp/libcsp/issues/484#issuecomment-1809314790

This worked a treat. Thanks a million.


Add support for self-hosted Gitlab(CE) or GitHub Enterprise to run CI/CD workflows in Amplify

Is your feature request related to a problem? Please describe.
We cannot enable CI/CD workflows for self-hosted gitlab repositories in Amplify. It only works for the GitHub and Gitlab public versions. There are many customers I support who are blocked by the lack of this feature. Customers are adopting workarounds or moving away from Amplify.
Describe the solution you'd like
Currently the Amplify console has support for GitHub and Gitlab for CI/CD workflows, but it doesn't support self-hosted (enterprise) version.
Additional context
As a workaround we are using Gitlab Runners on Amazon EC2 or using S3, CodeCommit and CodePipeline which is not a proper solution.

Closing this feature request since its a duplicate of #14


Titles in mode=violin

When I use cr.pl.cluster_fates with mode='violin', the lineage names don't have the 'to/from' prefix that they usually have (see mc.plot_lin_probs). Would be nice to add this prefix, depending on the direction.

Implemented via #76

Excellent, thanks!


Remove unnecessary cast to int from test

Description
Removing unnecessary cast to int in test.
Related Issues
Resolves #14694
Check List

[x] Functionality includes testing.
~[ ] API changes companion pull request created, if applicable.~
~[ ] Public documentation issue/PR created, if applicable.~

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Please add skip-changelog label.


Binding type parameter

I can't figure out a way to bind a type parameter:
class Container<Type>(val obj: Type) {
    fun typeBinder(builder: Kodein.Builder) {
        builder.apply {
            bind() from singleton { obj }
        }
    }
}

Is this possible?

I came up with a workaround:
class Container<Type : Any>(val obj: Type, val klass: KClass<Type>) {
    fun typeBinder(builder: Kodein.Builder) {
        builder.apply {
            val s = Singleton(
                scope,
                contextType,
                TT(klass),
                null,
                true,
            ) {
                obj
            }
            bind() from s
        }
    }
}

Not sure if this is how I am supposed to be using this though.

Hi, what are you trying to bind really ? (I guess that your are working with Kodein (you are on Kaverit repo here).
Kodein should have everything you need. If you are trying to bind an existing object, you can do:
class Foo

val obj = Foo()

val di = DI {
 bindInstance { obj }
}

val injectedFoo : Foo by di.instance()

assert(obj == injectedFoo)

O sorry my bad, I'll post to the Kodein repo

duplicate: https://github.com/kosi-libs/Kodein/issues/449


feat: add option to verify identity before sharing VC

Partially resolves #187

Replaced by #237 237


feat: export sarif region field [TREX-1159]

Description
Capitalizes the region field in the SARIF type definition. This should enable package consumers to construct SARIF payloads without encountering region not exported by package sarif errors.
Checklist

[ ] Tests added and all succeed
[ ] Linted
[ ] README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

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


.NET 5 Support

Is there anyway to run this on .NET 5?

To be honest, I have still not tried that; however, I think it should work. WebGL.NET is just a small interop layer with the JavaScript API.
NuGets currently depend on former Mono Wasm ones but, it should be easy to move to .NET 5.

@MarcosCobena Ah, do you mean WebAssembly.Bindings? I did look at finding the equivalent for dotnet 5, but couldn't see any publicly exposed replacements.

This looks as a candidate :-)
https://www.nuget.org/packages/Microsoft.JSInterop.WebAssembly/

@MarcosCobena I was reading the update you left on the readme, about how Wave uses Emscripten EGL for WebGL now. Is there a barebones WebGL reference project using WaveEngine.OpenGL.NET you can share at all? I'm struggling to see how you'd set up the context to render on a canvas with it without WaveEngine and/or Mono's bindings libs.
Thanks

Afaik, there is no source code publicly available with the latest changes in Wave; however, this game already uses such and, with F12 ;-), you can gather how it is all done underneath:
https://innovation.microsoft.com/en-us/exploring-project-paidia > Click on Try the interactive demonstration

To anyone that stumbles on this thread, this is easy doable now in .NET 6 without the use of this library.
I have a WebGL sample here, and it's trivial to switch it to use WaveEngine.Bindings.OpenGLES: https://github.com/AshleighAdams/dotnet6-webgl-sample
Closing this issue.


Add compound APR example that uses multi-call

Not done with this yet, I would like to potentially expand this to be able to prove an average APR over multiple points in time, but I might separate that into another PR if we want to keep this example simple.
Opening as draft because it depends on #91, and it's unclear we want that or this example here. Just opening for visibility.

Superseded by #115

Superseded by #115

I mean, it's pretty independent. This is just if we want an example that actually needs to call multiple functions. (will needed to be updated for new APIs though if that comes in)

This is a good example to show how multiple functions can be called with Steel. Let's use it.

Generally we should try to avoid using branch = main when creating risc0 dependencies. Now that we have 1.0 out, is there any reason to use git dependencies?


Feedstock rc branch management in do-nothing script

🚀 Pull Request
Description

Consult Iris pull request check list

Many thanks @bjlittle and @pp-mo 🥂


windows token based stuff

Main motivation https://wiki.sei.cmu.edu/confluence/display/c/WIN02-C.+Restrict+privileges+when+spawning+child+processes
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createprocesswithtokenw
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessasusera
https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/privilege-escalation-abusing-tokens
https://github.com/hatRiot/token-priv
https://securitytimes.medium.com/understanding-and-abusing-process-tokens-part-i-ee51671f2cfa
https://learn.microsoft.com/en-us/windows-server/security/windows-authentication/credentials-processes-in-windows-authentication
Because security must be complex for security products?
https://learn.microsoft.com/en-us/windows/win32/secauthz/securable-objects
https://learn.microsoft.com/en-us/windows/win32/secauthz/access-rights-and-access-masks
https://learn.microsoft.com/en-us/windows/win32/secauthz/access-tokens
Also briefly mention antipattern of cleartext user password logins regarding information persistence
and/or how to work around that with deleting and creating new user with random password.
And briefly antipatterns/pick your poison regarding https://www.tevora.com/threat-blog/about-windows-process-thread-tokens-and-pass-the-hash/. Must understand if there is no better way or simply not mentioned here.

mentioned in https://media.ccc.de/v/37c3-11811-writing_secure_software questions at 43:00.
Getting into the mentioned methods would be the next thing.

chrome code overview: https://googleprojectzero.blogspot.com/2020/04/you-wont-believe-what-this-one-line.html
That looks complex, but should be a nice biger example code to tackle and looks fairly comparable to what a CI would do (remote code execution as a service but no CVE outside of that).


Confused about forward arguments of Set2Set

❓ Questions & Help

Hi there,
first of all, thanks for the awesome library.
I'm trying to build a model which consists of a GatedGraphConv followed by a Set2Set pooling layer. However, I'm confused about what the actual inputs you should pass to the Set2Set layer.
The forward method of my model class looks like this:
def forward(self, batch):
        output = self.conv(batch.x, batch.edge_index)
        output = self.pool(?, ?)
        return output

where conv is the GatedGraphConv instance and pool is the Set2Set instance. The signature of the Set2Set.forward method is:
def forward(self, x, batch)

however, I'm not sure what to pass to the method, and the signature looks a bit confusing to me (is the x argument referring to batch.x or to the output of the previous layer?). I tried several combinations, but none seems to work.
Can you clarify what arguments Set2Set expects?
Thank you in advance!

Hi, we generally refer to x for holding any node features (of any layer) with shape [num_nodes, channels]. batch is the assignment vector of batch.batch which maps each node to its respective graph.

So in your case, this should be
def forward(self, batch):
output = self.conv(batch.x, batch.edge_index)
output = self.pool(output, batch.batch)
return output

That was a super-fast reply :)
Yes, I already had it sorted out once you wrote the first post, just couldn't get around batch.batch.
Thanks again and keep up the good work!


Filter 'users not following back'

I believe "users not following back" is a kind of filter to allow displaying messages from users that i'm not following. Am i correct?
Currently, the option isn't producing any effect. Bug?

It's a bug. I sent a bug fix on pull request #173


klDivergence

I am a beginner, I am sorry to bother you that the kl-Divergence I had got is a negative number， and I do not know why, is it normal? By the way ,the seg  result is quite good
Q , tmp1, tmp2 = d.startInference()
for i in range(10):
print("KL-divergence at {}: {}".format(i, d.klDivergence(Q)))
d.stepInference(Q, tmp1, tmp2)
KL-divergence at 0: -3206945.04475
KL-divergence at 1: -3291324.17025
KL-divergence at 2: -3297916.68741
KL-divergence at 3: -3301076.73635
KL-divergence at 4: -3302835.35756
KL-divergence at 5: -3303664.75467
KL-divergence at 6: -3304039.80505
KL-divergence at 7: -3304082.09449
KL-divergence at 8: -3304093.55528
KL-divergence at 9: -3304097.5484

hello, this is your full codes?

I also get negative KL-divergence, with every pair of image and unary potentials I test with. It isn't normal (it should be positive), but I don't know how to fix the (presumably erroneous) code, in which I assume the variable MatrixXf is negative?
https://github.com/lucasb-eyer/pydensecrf/blob/4d5343c398d75d7ebae34f51a47769084ba3a613/pydensecrf/densecrf/src/densecrf.cpp#L214


Made CairoMakie an Extension

Made CairoMakie an extension to reduce load time.

Codecov Report

Merging #32 (71a4610) into main (75225ac) will increase coverage by 12.17%.
The diff coverage is 67.74%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##             main      #32       +/-   ##
===========================================
+ Coverage   34.76%   46.93%   +12.17%
===========================================
  Files          22       23        +1
  Lines         607      603        -4
===========================================
+ Hits          211      283       +72
+ Misses        396      320       -76

Files Changed
Coverage Δ

src/Bandsets/interface.jl
35.29% <ø> (ø)

src/RemoteSensingToolbox.jl
100.00% <ø> (ø)

src/Spectral/Spectral.jl
100.00% <ø> (ø)

src/Spectral/utils.jl
100.00% <ø> (+100.00%)
:arrow_up:

src/raster_table.jl
88.88% <0.00%> (+47.09%)
:arrow_up:

src/visualization.jl
77.77% <0.00%> (+9.15%)
:arrow_up:

src/Spectral/analysis.jl
85.71% <60.00%> (+85.71%)
:arrow_up:

ext/RemoteSensingToolboxMakieExt.jl
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes


fix: create message to sign from transaction id bytes

closes #3200.
The problem was with signature since I had the default signature for the default account and default contract I couldn't find out that signing operation had a problem in previous tests. This PR is tested against fuel-core v0.11.2 with --utxo-validation and I tested this by creating a signature for the deployment with forc-wallet. Testing it is a little bit tricky but if i were to summarize it in few steps:

fuel-core inits some set of accounts with some funds. But the problem is to sign a transaction with them we need the bech32 address which is not printed via fuel-core cli. The dummy account with private key 0xde97d8624a438121b86a1956544bd72ed68cd69f2c99555b08b1e8c51ffd511c's corresponding bech32 address is fuel1dd3cqn8mlxzku689kmn6au3cmjp3rmz4hmqymam5qqaze9hqgx8qtjpwn9. Run forc-deploy (after installing it from this branch) and put fuel1dd3cqn8mlxzku689kmn6au3cmjp3rmz4hmqymam5qqaze9hqgx8qtjpwn9 as the wallet address.
You will be asked to include signature and provided the tx id. The problem here is that forc-wallet does not allow you to sign transactions with arbitrary private keys. You need to initialize them first. To walk around that I pushed a different branch with signing with private key ability. Since this is only needed while testing with initial accounts I did not open a PR to merge but checking out and building https://github.com/FuelLabs/forc-wallet/tree/kayagokalp/test_sway_3201 will enable forc-wallet sign-private --id transaction_id --private-key private key where private key is 0xde97d8624a438121b86a1956544bd72ed68cd69f2c99555b08b1e8c51ffd511c.
And finally the resulting signature can be copied back to forc-client and it should deploy successfully to fuel-core v0.11.2

After merging this we should have a release to enable signing with forc-wallet or they can use nightly forc with fuel-core v0.11.2 before release

I love when the PR description is so much larger than the actual change 🫡

Just fixed conflicts resulted from support fuel-core v0.13.0 and ready again! @Centril @mitchmindtree


Cleaned up error messages for HipEnvVarDriver test

There were several error messages that appeared even if the hipEnvVarDriver.exe test passes and executes successfully. Now it is cleaned up. The following are those instances:

When popen searches for directed_test directory but does not find it, it outputs an error, then finds the hipEnvVar at the same level. Currently the fix will prompt the test to only output an error if both searches for hipEnvVar fails.
When assertion is used towards the later half of the test, conditions were set to specifically hide the devices, resulting in No Hip Device detected in the latter half of the test. The fix will make these errors not appear as they are intended to not find any devices. Assertions themselves are untouched.

HipEnvVarDriver.cpp has also been refactored. Reading HipEnvVar will now happen in a helper function for getDeviceNumber and getDevicePCIBusNumRemote, as the code to read HipEnvVar were really similar in them.

Hi,
Any updates on this PR?

I removed io.h and simply prints messages notifying users about the error messages. Does this look ok?

Will this be merged soon?


New API for creating a new instance of an object

ParseObject.prototype.newInstance() creates a new, memory-unique instance of a Parse Object, as though it had been fetched again from the server. This is only really relevant in Unique Instance mode.

@TylerBrock would love your input here

Looks good, would duplicateState work for objects with read only attributes? I assume setting attrs on serverData directly bypasses that.

All validation is handled within the ParseObject instance itself, but let me throw together some test cases for ParseUser and ParseSession

Thanks Andrew. Are you thinking this slated for 1.7.2 or 1.8.0?

1.8.0, since it represents a new API. I'm currently adding one last change, and then probably pushing out an RC. I like the RC approach, I think I'll adopt it for all future minor version increments.


Error: matplotlib does not support generators as input

I generated a list using map(), but now I can't plot it

I don't understand properly. Please explain in detail.

https://stackoverflow.com/questions/56904450/runtimeerror-matplotlib-does-not-support-generators-as-input


chore(ui): Fix errors and close loophole in airbnb-base lint rules

Description
Follow up residue for eslint-config-airbnb-base after #8813
Potential problem
If software quality criteria becomes less strict, then cherry pick of commits into patch release branches might report errors according to earlier configurations and versions of devDependencies.
Analysis
Usually software quality criteria has become more strict in ESLint, Prettier, and TypeScript, therefore when an upgrade causes many errors, it is possible to fix them in batches, because the changes are not errors  according to earlier configurations and versions of devDependencies.
However, deleting airbnb config opened a loophole:

Some rules had been turned on, but are not now.
However, some of them are deprecated because redundant with Prettier.

The following do not require any change:

Some rules had been turned on, and are now because they are also in eslint recommended.
Some rules that had been turned off, and are now because they are not in eslint recommended.

Solution

Explicitly turn on rules from eslint-config-airbnb-base

that are not in ESLint recommended
https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js
and are not deprecated for ESLint 9
https://eslint.org/blog/2023/10/deprecating-formatting-rules/#the-deprecated-rules

Comment out a few rules:

Until we can fix errors.
Pending discussion with the team.

Delete unneeded override for omitted 'func-names': 'warn' configuration.

Residue

Follow up with eslint-config-airbnb

react-a11y
react-hooks
react

Checklist

[ ] Investigated and inspected CI test results
[x] ~Unit test and regression tests added~

Testing Performed

yarn lint in ui and ui/apps/platform
yarn build in ui
yarn start in ui

/test gke-ui-e2e-tests


org-mode. Titles of files have the same color as background in material-light

Could you be more specific?
The #+TITLE:  is visible in my case, as are links to other files.


[regression] rules with "gateway" option non-functional on assigned OpenVPN interfaces on 17.7.1

I've just noticed that after upgrading to 17.7.1 some parts of my setup stopped working. Turns out the following changes in /tmp/rules.debug caused this issue:
pass out log  route-to ( em0_vlanXX X.X.X ) from {em0_vlanXX} to {!(em0_vlanXX:network)} keep state allow-opts label "let out anything from firewall host itself"
pass out log  route-to ( ovpnc1 <IP_ADDRESS> ) from {ovpnc1} to {!(ovpnc1:network)} keep state allow-opts label "let out anything from firewall host itself"
pass out log  route-to ( em0_vlanYY Y.Y.Y ) from {em0_vlanYY} to {!(em0_vlanYY:network)} keep state allow-opts label "let out anything from firewall host itself"
pass out log  route-to ( em0_vlanZZ Z.Z.Z.Z ) from {em0_vlanZZ} to {!(em0_vlanZZ:network)} keep state allow-opts label "let out anything from firewall host itself"

I'm pretty sure that the rule for "ovpnc1" does actually break my setup. Maybe https://github.com/opnsense/core/commit/e0cad8c3 should be fixed to exclude such interfaces?

Hi guys, just a quick reminder: this is not yet in any release. Any chance to get it merged for 17.7.4? :)

Will very likely land in 17.7.4, yes. Not yet backported though.


Bz2081676

Changes introduced with this PR

Fixed the issue with the --log-size option that was previously silently ignored due to conflict with the --all-logs option

This PR adds the logic to handle various cases properly, i.e. removing the --all-logs option in case the --log-size option is supplied.
Also added logic to only enable the logs plugin in case --all-logs is used or if the --log-size value is equal or greater than 100 (MB). That is due to the way the logs plugin works.
( https://github.com/sosreport/sos/issues/1029 )
Also a verification was added to make sure that the value supplied to --log-size is integer, as it's the only type expected by sos.
Are you the owner of the code you are sending in, or do you have permission of the owner?
[y]

@dougsland - could you please review the PR?

Good stuff @lveyde, sorry the delay, I am in parental leave at this moment. Keep good work up!


Cross-check configs with stock Rails 5.2

It has been reported that For windows one has to add the tzinfo-data gem. There are still some deprecation warnings when running test so maybe some default settings don't apply as they should.

done in b3949d1