problem converting using cvs2strings

Hi, i am trying to get a header with all the macros for localization in our project.

I took our localization strings and used babelish to create cvs file. by running babelish strings2csv -i Localizable.strings
Without modifications i know want to make a conversation back using babelish csv2strings -i translations.csv -L English:en however i am getting the following error

babelish csv2strings -i translations.csv -L English:en
/usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/csv2base.rb:139:in `block (2 levels) in convert': undefined method `add_content_pair' for nil:NilClass (NoMethodError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/csv2base.rb:113:in `times'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/csv2base.rb:113:in `block in convert'
    from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/csv.rb:1739:in `each'
    from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/csv.rb:1122:in `block in foreach'
    from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/csv.rb:1273:in `open'
    from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/csv.rb:1121:in `foreach'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/csv2base.rb:102:in `convert'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/commandline.rb:153:in `block in csv2base'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/commandline.rb:145:in `each'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/commandline.rb:145:in `each_with_index'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/commandline.rb:145:in `csv2base'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/lib/babelish/commandline.rb:37:in `block (2 levels) in <class:Commandline>'
    from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /usr/local/lib/ruby/gems/2.2.0/gems/babelish-0.5.0/bin/babelish:6:in `<top (required)>'
    from /usr/local/bin/babelish:23:in `load'
    from /usr/local/bin/babelish:23:in `<main>'

Could you post the Localizable.strings that you had?

@netbe sorry for the late response. for security reason's i cannot paste the hole .csv but here the snippet
Variables,Localizable.strings
%ld minutes ago,%ld minutes ago,Text displaying number of minutes ago
%ld months ago,%ld months ago,Text displaying number of months ago
%ld seconds ago,%ld seconds ago,Text displaying number of seconds ago
%ld weeks ago,%ld weeks ago,Text displaying number of weeks ago
%ld years ago,%ld years ago,Text displaying number of years ago

also if that helps i have ruby version
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]

@romk1n the resulting Localizable.strings is wrong missing the Comments in header I guess.
Quick fix : Change the translations.csv file header by Variables,English,Comments
I am going to look at the generation strings2csv

Fixed in 0.5.1

Traceback (most recent call last):
14: from C:/Ruby25-x64/bin/babelish:23:in <main>'         13: from C:/Ruby25-x64/bin/babelish:23:in load'
12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/bin/babelish:6:in <top (required)>'         11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in start'
10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch'          9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in invoke_command'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run'          7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:38:in block (2 levels) in class:Commandline'
6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:150:in csv2base'          5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:150:in each_with_index'
4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:150:in each'          3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:157:in block in csv2base'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/commandline.rb:157:in new'          1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/csv2android.rb:6:in initialize'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babelish-0.5.4/lib/babelish/csv2base.rb:26:in `initialize': wrong value of filename: nil (ArgumentError)
I have ruby 2.5.5p157 (2019-03-15 revision 67260) [x64-mingw32]


ignore "Host Down" during ps

is there anyway to ignore containers which show "Host Down" when i do a docker ps against the swarm?
i have scripts that show what containers are currently up as well as pull info about those containers. when a server goes offline i don't want to continue to show a container that is technically down.
i do a docker -f label=cr_mine -q , to just get the ids. is there an option i can add to the docker ps command ?

@chromerobv
Suggestion: We can use docker ps -f "NodeStatus=healthy" to ignore containers with status Host Down.

that would be great!

@chromerobv
I will try to do a PR soon  :)

@chromerobv
Actually docker ps will not show Host Down containers, while docker ps -a will show those Host Down containers.
So using docker ps can satisfy your need, right?

I wasn't doing a ps -a. I had ps -q with some filters for labels. And it showed host downs

Can you provide more  details about how to reproduce this case? And docker , swarm versions as well.
Here is my tests and did not reproduce this:
~ $  docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
b127511d84b8        ubuntu:14.04        "sleep 10000"       23 seconds ago      Host Down                               ubuntu/serene_meitner
961eb99521af        ubuntu:14.04        "sleep 10000"       23 seconds ago      Host Down                               ubuntu/condescending_hugle
d0de688767c8        ubuntu:14.04        "sleep 10000"       24 seconds ago      Host Down                               ubuntu/awesome_hoover
30de088348bf        ubuntu:14.04        "sleep 10000"       25 seconds ago      Host Down                               ubuntu/gigantic_gates
~ $  docker ps -q
~ $  docker ps -aq
b127511d84b8
961eb99521af
d0de688767c8
30de088348bf
~ $  docker info
Containers: 4
 Running: 4
 Paused: 0
 Stopped: 0
Images: 36
Server Version: swarm/1.2.2
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 1
 ubuntu: <IP_ADDRESS>:2376
  └ ID: RDEJ:ZCV6:CJH5:UCNB:P5RR:66LB:JZSO:YACX:TBL3:PYMV:2F77:KBUA
  └ Status: Unhealthy
  └ Containers: 4
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 2.052 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.19.0-25-generic, operatingsystem=Ubuntu 14.04.3 LTS, storagedriver=aufs
  └ Error: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
  └ UpdatedAt: 2016-05-16T14:51:44Z
  └ ServerVersion: 1.10.3
Plugins:
 Volume:
 Network:
Kernel Version: <unknown>
Operating System: darwin
Architecture: amd64
CPUs: 1
Total Memory: 2.052 GiB
Name: bogon
Docker Root Dir:
Debug mode (client): false
Debug mode (server): false
WARNING: No kernel memory limit support


New Scraper: DeKalb County Housing Authority

Create a new scraper for DeKalb County Housing Authority
Website: https://www.dekalbcountyga.gov/meeting-calendar
Jurisdiction: DeKalb County
Classification: Housing
The housing authority was created to address the unsanitary and unsafe inhabited dwelling accommodations that exist in Dekalb County. In addition, there is a shortage of safe and sanitary accommodations for low income individuals.
(https://dekalbcountyga.granicus.com/boards/w/968f9572ef2211df/boards/7177)

same url as #17

actually that's the wrong URL, i found this one instead https://www.dekalbhousing.org/about-us/agency-calendar.php


docker-compose fails due to sharp build error: ERR! sharp EPERM: operation not permitted

Bug report
Describe the bug

On OSX Catalina and Strapi 3.4.2 docker images, running strapi/strapi in docker-compose fails.
Since strapi-plugin-upload uses sharp I wonder if that may be related.

Here is the error message:

strapi_1  | error /srv/app/node_modules/sharp: Command failed.
strapi_1  | Exit code: 1
strapi_1  | Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
strapi_1  | Arguments:
strapi_1  | Directory: /srv/app/node_modules/sharp
strapi_1  | Output:
strapi_1  | info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.0/libvips-8.10.0-linux-x64.tar.br
strapi_1  | ERR! sharp EPERM: operation not permitted, link '/srv/app/node_modules/sharp/vendor/8.10.0/include/pnglibconf.h' -> '/srv/app/node_modules/sharp/vendor/8.10.0/include/libpng16/pnglibconf.h'
strapi_1  | info sharp Attempting to build from source via node-gyp but this may fail due to the above error
strapi_1  | info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
strapi_1  | gyp info it worked if it ends with ok
strapi_1  | gyp info using<EMAIL_ADDRESS>strapi_1  | gyp info using<EMAIL_ADDRESS>| linux | x64
strapi_1  | gyp info find Python using Python version 2.7.13 found at "/usr/bin/python"
strapi_1  | gyp http GET https://nodejs.org/download/release/v12.20.1/node-v12.20.1-headers.tar.gz
strapi_1  | gyp http 200 https://nodejs.org/download/release/v12.20.1/node-v12.20.1-headers.tar.gz
strapi_1  | gyp http GET https://nodejs.org/download/release/v12.20.1/SHASUMS256.txt
strapi_1  | gyp http 200 https://nodejs.org/download/release/v12.20.1/SHASUMS256.txt
strapi_1  | gyp info spawn /usr/bin/python
strapi_1  | gyp info spawn args [
strapi_1  | gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
strapi_1  | gyp info spawn args   'binding.gyp',
strapi_1  | gyp info spawn args   '-f',
strapi_1  | gyp info spawn args   'make',
strapi_1  | gyp info spawn args   '-I',
strapi_1  | gyp info spawn args   '/srv/app/node_modules/sharp/build/config.gypi',
strapi_1  | gyp info spawn args   '-I',
strapi_1  | gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
strapi_1  | gyp info spawn args   '-I',
strapi_1  | gyp info spawn args   '/root/.cache/node-gyp/12.20.1/include/node/common.gypi',
strapi_1  | gyp info spawn args   '-Dlibrary=shared_library',
strapi_1  | gyp info spawn args   '-Dvisibility=default',
strapi_1  | gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/12.20.1',
strapi_1  | gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
strapi_1  | gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/12.20.1/<(target_arch)/node.lib',
strapi_1  | gyp info spawn args   '-Dmodule_root_dir=/srv/app/node_modules/sharp',
strapi_1  | gyp info spawn args   '-Dnode_engine=v8',
strapi_1  | gyp info spawn args   '--depth=.',
strapi_1  | gyp info spawn args   '--no-parallel',
strapi_1  | gyp info spawn args   '--generator-output',
strapi_1  | gyp info spawn args   'build',
strapi_1  | gyp info spawn args   '-Goutput_dir=.'
strapi_1  | gyp info spawn args ]
strapi_1  | gyp info spawn make
strapi_1  | gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
strapi_1  | make: Entering directory '/srv/app/node_modules/sharp/build'
strapi_1  |   CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
strapi_1  |   AR(target) Release/obj.target/../node-addon-api/nothing.a
strapi_1  |   COPY Release/nothing.a
strapi_1  |   TOUCH Release/obj.target/libvips-cpp.stamp
strapi_1  |   CXX(target) Release/obj.target/sharp/src/common.o
strapi_1  | ../src/common.cc:24:22: fatal error: vips/vips8: No such file or directory
strapi_1  |  #include <vips/vips8>
strapi_1  |                       ^
strapi_1  | compilation terminated.
strapi_1  | make: *** [Release/obj.target/sharp/src/common.o] Error 1
strapi_1  | sharp.target.mk:139: recipe for target 'Release/obj.target/sharp/src/common.o' failed
strapi_1  | make: Leaving directory '/srv/app/node_modules/sharp/build'
strapi_1  | gyp ERR! build error
strapi_1  | gyp ERR! stack Error: `make` failed with exit code: 2
strapi_1  | gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
strapi_1  | gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
strapi_1  | gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
strapi_1  | gyp ERR! System Linux 4.14.154-boot2docker
strapi_1  | gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
strapi_1  | gyp ERR! cwd /srv/app/node_modules/sharp
strapi_1  | gyp ERR! node -v v12.20.1
strapi_1  | gyp ERR! node-gyp -v v5.1.0
strapi_1  | gyp ERR! not ok
strapi_1  |
strapi_1  |  Keep trying!
strapi_1  |
strapi_1  | Oh, it seems that you encountered errors while installing dependencies in your project.
strapi_1  | Don't give up, your project was created correctly.
strapi_1  | Fix the issues mentionned in the installation errors and try to run the following command:
strapi_1  |
strapi_1  | cd /srv/app && yarn install
strapi_1  |
strapi_strapi_1 exited with code 1

Steps to reproduce the behavior

Using the above docker-compose.yaml on
Click on '....'
Scroll down to '....'
See error

Expected behavior
Previously the build succeeded here.
Screenshots
N/A
Code snippets
See "Additional Context" at the end
System

Node.js version: Using strapi/strapi so same version as that (unsure). Local system is running Node v12.18.3
NPM version: Using strapi/strapi so same version as that (unsure). Local system is running npm v6.14.6
Strapi version: 3.4.2 -- actually all versions I tested, even ones previously working (3.1.5)
Database: MariaDB
Operating system: OSX Catalina latest updates

Additional context

I did not notice this error when using strapi/base to use a Dockerfile to build a Strapi image. I only noticed this issue when running in docker-compose using strapi/strapi.
OSX permissions gives full disk access to my Docker (I am using VirtualBox to run Docker, so that has full disk access).
Should it be running as root in order to compile this? Or is there another way to get this dependency?
The version pulled is 3.4.2
docker-compose.yaml file:

version: '3'
services:
  strapi:
    image: strapi/strapi
    volumes:
      - ./app:/srv/app
    ports:
      - '1337:1337'

package.json from strapi/strapi:

{
  "name": "app",
  "private": true,
  "version": "0.1.0",
  "description": "A Strapi application",
  "scripts": {
    "develop": "strapi develop",
    "start": "strapi start",
    "build": "strapi build",
    "strapi": "strapi"
  },
  "devDependencies": {},
  "dependencies": {
    "strapi": "3.4.2",
    "strapi-admin": "3.4.2",
    "strapi-utils": "3.4.2",
    "strapi-plugin-content-type-builder": "3.4.2",
    "strapi-plugin-content-manager": "3.4.2",
    "strapi-plugin-users-permissions": "3.4.2",
    "strapi-plugin-email": "3.4.2",
    "strapi-plugin-upload": "3.4.2",
    "strapi-connector-bookshelf": "3.4.2",
    "knex": "<0.20.0",
    "sqlite3": "latest"
  },
  "author": {
    "name": "A Strapi developer"
  },
  "strapi": {
    "uuid": "1bb363b8-d150-460c-8d12-1e460b84ca56"
  },
  "engines": {
    "node": ">=10.16.0 <=14.x.x",
    "npm": ">=6.0.0"
  },
  "license": "MIT"
}

Update:
I have identified this as a permissions issue for Docker under OSX when mounting a directory and running the compile tools for sharp.
Previously sharp did not trigger this issue.
But the conditions for meeting this error are:

OSX
docker-machine
Using sharp package

Problem does not occur when I use volumes rather than mounting a directory.
So this does not seem to be a strapi-docker issue BUT it may be a compatibility issue with the later version of sharp, so I am not sure if this should be a "FAQ" or something for OSX users.

Update:
I have identified this as a permissions issue for Docker under OSX when mounting a directory and running the compile tools for sharp.
Previously sharp did not trigger this issue.
But the conditions for meeting this error are:

OSX
docker-machine
Using sharp package

Problem does not occur when I use volumes rather than mounting a directory.
So this does not seem to be a strapi-docker issue BUT it may be a compatibility issue with the later version of sharp, so I am not sure if this should be a "FAQ" or something for OSX users.

Hi @virgil9306 thank you for all those details. Doesn't look like we can do much for now. Let me know if you find anything we can do on our side

Hi @virgil9306 thank you for all those details. Doesn't look like we can do much for now. Let me know if you find anything we can do on our side

Hi @alexandrebodin
I am not sure why I did not encounter this error before. But it seems to be an unavoidable situation due to the dependency.
I hope someone else using Linux or OSX and docker-machine with shared folders mounted to the Strapi container can verify this.
Unfortunately I think I will need to create a workaround that for my workflow.

Hi @alexandrebodin
I am not sure why I did not encounter this error before. But it seems to be an unavoidable situation due to the dependency.
I hope someone else using Linux or OSX and docker-machine with shared folders mounted to the Strapi container can verify this.
Unfortunately I think I will need to create a workaround that for my workflow.

I ran into this problem and after trying to work through it for a couple days I ended up fixing it/avoiding it by creating a new container and volume, resetting my docker to factory settings (maybe unnecessary), adding libvips as a dependency, and rebuilding. I think the error is on sharps end honestly but I truly have no idea.
The issue first popped up for me when I tried to develop on my Mac (not M1; which some threads were suggesting) after previously working on WSL2. The issue seemed to point to a bad link between sharp and libvips.
A lot of threads I was finding on this suggest using npm install --ignore-scripts=false --verbose but this didn't fix the issue for me.
No clue if this will help anyone but hopefully it'll give some more context to anyone in need.

Thanks @Kyle772! I can confirm that this problem exists, happens to me as well. Haven't tried your solution yet though.

Same issue here.
macOS Catalina (latest)
followed this guide: https://strapi.io/blog/how-to-run-a-strapi-dev-stack-with-docker-compose

Windows 10, WSL 2, docker
I have the same issue with sharp.
Is anybody know how to fix it?

Yesterday I'm removing all images from docker and start building again - all is work ! (windows 10, wsl2)

Same issue here. Windows 10 Pro, WSL2, Docker. I removed everthing and it´s not building yet. Any help? Thanks
#9 102.7 [5/5] Building fresh packages...
#9 104.8 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#9 104.8 error /app/node_modules/sharp: Command failed.
#9 104.8 Exit code: 1
#9 104.8 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
#9 104.8 Arguments:
#9 104.8 Directory: /app/node_modules/sharp
#9 104.8 Output:
#9 104.8 sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-linux-x64.tar.br
#9 104.8 sharp: Installation error: self signed certificate in certificate chain
#9 104.8 sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
------
executor failed running [/bin/sh -c yarn install --frozen-lockfile]: exit code: 1


抑制分词时打印的信息

分词的时候，会打印下述信息，如何抑制？

Building prefix dict from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jieba/dict.txt ...
Loading model from cache /var/folders/md/8kgtqqz12j94hbcvhqz0w7gw0000gp/T/jieba.cache
Loading model cost 1.2386009693145752 seconds.
Prefix dict has been built succesfully.

A duplicate of #529


[Quicklinks] Add shortcut for copying markdown link

Description
I submitted a small extension for saving links that included a feature to copy links formatted with markdown such as [link title](http://example.com), but it was suggested that the extension was very close to the existing Quicklinks functionality. So I'm submitting two feature requests, this is request 2 of 2.
This was the PR for the extension:

https://github.com/raycast/extensions/pull/9614

Who will benefit from this feature?
Anyone who enjoys sharing links formatted with Markdown
Anything else?
No response

Seems like this issue is about a specific extension, not the API. Would you mind opening a new issue using the correct template so that the authors of the extension are properly aware of it?


Consider changing the force-reset button combination

23:02 <zzo38> Might it be better to not use START+SELECT for restart, and instead using buttons L, R, X, Y, since START and SELECT buttons are used by the program running in the VM? Or maybe should be one of those combination with others for whatever options you intend to be implemented. (Also, I think it is common for the L and R buttons on a Nintendo DS to break, so I don't know if there is a condieration for that)

Resolved in uxnds 0.4.0 with a touch button.


add event on contract termination

https://github.com/edenlabllc/ehealth.api/issues/2907

Coverage remained the same at 90.237% when pulling 1a60b2c2279ca19a8c632d2269bac13d0ac2441d on contracts_termination#2907 into 29f48b18ff2c822d27a58f84e03c487b5a5c8dcf on develop.


Strange allocations in 1.6

Measuring allocations of the main loops with @allocated nd(dx, x, nothing, 0.) returns (1 allocation: 304 bytes) on julia v1.6 and causes a test to fail:

https://github.com/PIK-ICoN/NetworkDynamics.jl/blob/main/test/nd_ODE_Static_test.jl
https://github.com/PIK-ICoN/NetworkDynamics.jl/runs/2673141705?check_suite_focus=true

On v1.5 everything works as expected (without allocations).
I tried --track-allocations=user and there are none. I tried @allocated on every line of nd_ODE_Static and there are none. I googled for related bug reports and found none.

This is a strange one. Maybe julia 1.6 handles function pointers in local scope a bit different? However I think this isn't a "real" problem. @btime with variable interpolatione ($nd($dx, ..)) shows no allocation. In #82 i've used two different strategies to fix this:

explicit const where possible
function barriers inside the @testsets (const is not possible in local scope)

at least locally this solves the problem for me. Still weird 🤷♂


'index out of bounds' error in SparseConsole.set_bg()

The following gives an index out of bounds error because a sparse console's self.tiles.len() is often a lot smaller than a simple console's, and idx in this case is with respect to the latter.
https://github.com/thebracket/bracket-lib/blob/9a4d7fe31140d47fcc983bb515929b85c3ce2aa3/bracket-terminal/src/sparse_console.rs#L129-L134

Good catch, thank you! That's a bug - it's meant to push to the tile list, rather than referencing it. I'll have a fix up in a moment.


Wrong block size limit given in API

The wrong block size limit is given at https://blockexplorer.electroneum.com/api/networkinfo. It now shows a constant 300kb whereas the current minimum limit is around 150kb.
It worked perfectly before the tech update/fork on 31 May 2018.
I guess it will be a simple fix since the front page of the block explorer shows the correct value.

Block size limit is 300kb. It's 2x the effective median, which is 150kB for median size <=150kB.


Crash in HAPServer.js

This just happened yesterday, from out of the blue and now it won't start again.
Running on OS X 10.11.6, iOS 10 beta 3 on both iPhone and AppleTV.
/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:490
var sequence = objects[HAPServer.Types.SEQUENCE_NUM][0]; // value is single byte with sequence number
^
TypeError: Cannot read property '0' of undefined
at HAPServer._handlePairVerify (/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:490:55)
at HAPServer. (/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:201:39)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:921:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

Looks like iOS sent something unexpected ... If possible, can you try remove persist folder, remove accessory from iOS device and re-pair again?

Yeah, I know I can probably get it going by removing the persist folder and so.
I was just hoping I could be of some help if you wanted to test some code on my install as is, maybe just a better error description and not crashing?


⚠ St. Lawrence Global Observatory CKAN Sitemap has degraded performance

In 9079755, St. Lawrence Global Observatory CKAN Sitemap (https://catalogue.ogsl.ca/sitemap/sitemap-1.xml) experienced degraded performance:

HTTP code: 200
Response time: 6339 ms

Resolved: St. Lawrence Global Observatory CKAN Sitemap performance has improved in c2c627c after 4 minutes.


fixed broken link of testgrid dashboard in  design.md

What type of PR is this?
fixed broken link of testgrid dashboard in  design.md

What this PR does / why we need it:
The domain name of the testgrid dashboard was updated from k8s-testgrid.appspot.com to testgrid.k8s.io. After the update old domain now throws a 'page not found error'. So fixed the broken link of testgrid dashboard in  design.md.
Which issue(s) this PR fixes:
This is related to an umbrella issue and fixes a task of the same:
https://github.com/kubernetes/test-infra/issues/30370

/lgtm
/approve


Pass addresses and map name of userspace instrumentation to LinuxTracing

We are passing the address ranges of user space instrumentation trampolines to
LinuxTracing. We are also passing the map name of the injected library. We
need these for the following purposes:

Detecting if a sample fell directly in a trampoline (entry or return), in
  UprobesUnwindingVisitor;
Detecting if a sample fell in the injected library, in
  UprobesUnwindingVisitor;
Detecting if unwinding stopped at a return trampoline, in
  UprobesUnwindingVisitor;
Patching frame pointer callchains in UprobesReturnAddressManager.

We hold the address ranges and the injected library's map name with the
UserSpaceInstrumentationAddresses interface.
Actual usage of this information will come as the next change.
Note that with uprobes the approach was simpler, as most of the work for uprobes
happens in the kernel, for which we don't get samples, and for the rest we could
simply use the map name "[uprobes]", corresponding to a couple of addresses for
the return trampoline.
Bug: http://b/194704608
Bug: http://b/204404077
Test: Unit tests. Tried as part of the integration of user space instrumentation
and unwinding as per
http://go/stadia-orbit-user-space-instrumentation-and-unwinding#heading=h.a3i5cfh8pexm,
also with frame pointers on custom target.

For a preview of the actual usage in LinuxTracing, I created draft https://github.com/google/orbit/pull/2985.


refactor: remove unstable feature slice_as_chunks

for https://github.com/web-infra-dev/oxc/issues/626

Try cargo +nightly fmt


Yet another potential API design using generics

Following on from #6 and #7. This idea is an approximation of @withoutboats's explanation of how specialization with intersecting impls would be the ideal way to design this API. Since we don't have intersecting impls, I've simply included all the possible combinations of what were previously associated types as implementations of empty Request and Response traits.
The upside is that plugging these structs in can be done with just a type alias, and that we don't need to implement custom serialization for a Nothing/Unused type, and we don't need to use the ! type.
The downside is that having all these extra structs fields kind of unwieldy, but perhaps not that different other places in Rust where a less than ideal API is used in the absence of a feature we know will arrive some day in the future. Iterators in the standard library having concrete return types like Filter and Map in the absence of stable impl Trait comes to mind as an example.
One thing I've punted on for now, pending feedback on whether it's even worth it to proceed: HTTP headers are just a generic H type with no constraints. More information would have to be conveyed for them to be useful.
This design also shares the downside with #7 of not having my ideal Response API, with each potential status code having its own set of headers and its own struct for the response body.
Thoughts?
/cc @Ralith @vberger @eternaleye @jplatte @exul @neosam

I'm likely mising something, but I don't see how such API, with Request andResponse being empty trait, could be used in a generic context <E: Endpoint>. I thought it was a desirable property?

The empty traits are used sort of like the "marker" traits in stdlib. They're just a way of grouping the concrete types in the request and response modules. It's a hacky way to have the semantics of an enum at the type level. Each implementing type is like a "variant" of a request/response.
It might be a problem in downstream code. I really hadn't gotten that far yet. I was just brainstorming. Your confusion is good evidence that using the trait system this way is probably not a good idea! :P

Closing in favor of the API I just landed on master.


SchemaForm[onValidateFailed] 返回的错误对象缺少 name属性

Help us to manage our issues by answering the following:

How would you tag this issue?

Bug

Describe your issue:

v1中errors为
{
  messages: [],
  path: 'NO_NAME_FIELDS_$1.foo.bar'
}

v0.4中为
{
  errors: [],
  name: 'foo.bar'
}

数据结构可以自行转换，但path多出来的NO_NAME_FIELDS_$1不利于进行路径判断等操作，期望返回和v0.4相同的name属性

If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on CodeSandbox
.

#545 已修复


add dump_tree API for tensor functions

NOTE: recursive implementation, use sparingly.
turn on debug logging to get a dump of tensor functions
before and after optimizations.

@lesters, @geirst please review
@havardpe FYI

LGTM 👍

I would suggest trying to use/adapt the ObjectDumper/Visitor framework used when dumping blueprint(query) trees before and after optimization.

conclusion: we'll leave as-is for now and go the ObjectVisitor route next week.


fix: while using eventfd, a random fd will be closed when error occurs during creating eventfd

read_fd should have a certain value when create error occurs, because polling_island_delete() will be invoked when error occurs, and a random fd will be closed. in my practice, a working fd might closed due to the magic random value.

Jenkins: this is ok to test

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

eh......  test failures seems irrelevant with my commit?

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

@ctiller Hi, is there any problem with this patch? will it be merged?

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

[trickle] No significant performance differences

[qps] No significant performance differences

Jenkins: test this please

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.
After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

User @haorenfsa isn't covered by a CLA. They will need to complete the form at https://identity.linuxfoundation.org/projects/cncf

Regards,
CLA GitHub bot

@hcaseyal  is this old fix still applicable? Let's accept or close.

(a rebase would be needed to get a useful test run).

(a rebase would be needed to get a useful test run).

Shall I do it?

@haorenfsa  yes please.
Btw, the wakeup_fd_eventfd.c was renamed to .cc in the meantime:
https://github.com/grpc/grpc/blob/2947946871452b2b49b0c657b43ee32158acfc79/src/core/lib/iomgr/wakeup_fd_eventfd.cc#L35

@jtattermusch @haorenfsa A rebase for the tests would be great. I think this is a good fix.

@hcaseyal  please note that you can rebase / merge with master this PR yourself as you have write access to contributors' PR branches.

@jtattermusch Ah ok, didn't realize I could. I'll do it soon.

@jtattermusch @haorenfsa Sorry for the late response, this seemed to slip through the cracks. I rebased the PR but when I try to push back to this branch, I get an "authentication failed" error. Do I not have write access to this fork?

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++

 -------------- SHRINK --------------
  [ = ]       0 [None]    -128  -0.0%

  [ = ]       0 TOTAL     -128  -0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

@hcaseyal  looks like the rebase has been done already.  I spawned the kokoro tests. Please take a look at the code to doublecheck and if everything seems fine, let's merge.

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 1,965,242      Total (=)      1,965,242

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
10,909,021      Total (<)     10,909,030

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences

Known failures: https://github.com/grpc/grpc/issues/16846

Looks good. Merging.


[Bug] react-static bundle --analyze ERROR

Reporting a bug?
$ react-static bundle --analyze
Bundling application for Production...

Cleaning dist...
[✓] Dist cleaned (0.2s)
Cleaning artifacts...
[✓] Artifacts cleaned
Building Routes...
Importing routes from directory...
{ has404: true }
[✓] Routes Built (0.2s)
Building Templates...
[✓] Templates Built
Copying public directory...
[✓] Public directory copied (0.1s)
Bundling App...
Error parsing bundle asset "/Users/viktorzaytsev/work/web_test/dist/main.fef6307a.js": no such file

No bundles were parsed. Analyzer will show only original module sizes from stats file.

Webpack Bundle Analyzer is started at http://<IP_ADDRESS>:8888
Use Ctrl+C to close it
Version: webpack 4.46.0
Time: 8138ms
Built at: 24.11.2021 15:21:20
           Asset      Size  Chunks               Chunk Names
main.fef6307a.js  1.43 KiB       0  [immutable]  main
[0] multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js 52 bytes {0} [built]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[0]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[1]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[2]

                => There were ERRORS during the prod build stage! :(
                => Fix them and try again!

Version: webpack 4.46.0
Time: 8988ms
Built at: 24.11.2021 15:21:21
        Asset      Size  Chunks  Chunk Names
static-app.js  4.58 KiB       0  main
[0] multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js 52 bytes {0} [built]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[0]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[1]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[2]

                => There were ERRORS during the node build stage! :(
                => Fix them and try again!

[✓] App Bundled (11.7s)

Environment

  System:
    OS: macOS 11.6
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
    Memory: 461.56 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.17.6 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 7.24.1 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 92.0.4515.131
    Firefox: 94.0.1
    Safari: 15.0
  npmPackages:
    react: ^16.14.0 => 16.14.0
    react-dom: ^16.14.0 => 16.14.0
    react-hot-loader: ^4.13.0 => 4.13.0
    react-static: ^7.5.1 => 7.6.2
    react-static-plugin-reach-router: ^7.5.1 => 7.6.2
    react-static-plugin-sitemap: ^7.5.1 => 7.6.2
    react-static-plugin-source-filesystem: ^7.5.1 => 7.6.2
    react-static-plugin-typescript: ^7.5.1 => 7.6.2
  npmGlobalPackages:
    react-static: 7.6.2

Steps to Reproduce the problem

react-static create
What should we name this project? web_test
Select a template below... typescript
cd web_test
yarn build
react-static bundle --analyze

Expected Behavior

Reproducible Demo

Try to FIX
I've tried to update react-static version
In package.json I've changed
    "react-static": "^^7.5.1",
    "react-static-plugin-reach-router": "^^7.5.1",
    "react-static-plugin-sitemap": "^^7.5.1",
    "react-static-plugin-source-filesystem": "^^7.5.1",
    "react-static-plugin-typescript": "^^7.5.1"

To
    "react-static": "^7.6.2",
    "react-static-plugin-reach-router": "^7.6.2",
    "react-static-plugin-sitemap": "^7.6.2",
    "react-static-plugin-source-filesystem": "^7.6.2",
    "react-static-plugin-typescript": "^7.6.2"

Environment
  System:
    OS: macOS 11.6
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
    Memory: 879.74 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.17.6 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 7.24.1 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 92.0.4515.131
    Firefox: 94.0.1
    Safari: 15.0
  npmPackages:
    react: ^16.14.0 => 16.14.0
    react-dom: ^16.14.0 => 16.14.0
    react-hot-loader: ^4.13.0 => 4.13.0
    react-static: ^7.6.2 => 7.6.2
    react-static-plugin-reach-router: ^7.6.2 => 7.6.2
    react-static-plugin-sitemap: ^7.6.2 => 7.6.2
    react-static-plugin-source-filesystem: ^7.6.2 => 7.6.2
    react-static-plugin-typescript: ^7.6.2 => 7.6.2
  npmGlobalPackages:
    react-static: 7.6.2

Bug
But still have the same error
$ react-static bundle --analyze
Bundling application for Production...

Cleaning dist...
[✓] Dist cleaned (0.8s)
Cleaning artifacts...
[✓] Artifacts cleaned
Building Routes...
Importing routes from directory...
{ has404: true }
[✓] Routes Built (0.3s)
Building Templates...
[✓] Templates Built (0.1s)
Copying public directory...
[✓] Public directory copied (1s)
Bundling App...
Error parsing bundle asset "/Users/viktorzaytsev/work/web_test/dist/main.fef6307a.js": no such file

No bundles were parsed. Analyzer will show only original module sizes from stats file.

Webpack Bundle Analyzer is started at http://<IP_ADDRESS>:8888
Use Ctrl+C to close it
Version: webpack 4.46.0
Time: 18775ms
Built at: 24.11.2021 16:49:46
           Asset      Size  Chunks               Chunk Names
main.fef6307a.js  1.43 KiB       0  [immutable]  main
[0] multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js 52 bytes {0} [built]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[0]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[1]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[2]

                => There were ERRORS during the prod build stage! :(
                => Fix them and try again!

Version: webpack 4.46.0
Time: 19229ms
Built at: 24.11.2021 16:49:46
        Asset      Size  Chunks  Chunk Names
static-app.js  4.58 KiB       0  main
[0] multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js 52 bytes {0} [built]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[0]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[1]

ERROR in multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js
Module not found: Error: Can't resolve 'react-hot-loader/webpack' in '/Users/viktorzaytsev/.config/yarn/global/node_modules/react-static/node_modules'
 @ multi ../lib/bootstrapPlugins.js ../lib/bootstrapTemplates.js ../lib/bootstrapApp.js main[2]

                => There were ERRORS during the node build stage! :(
                => Fix them and try again!

[✓] App Bundled (24.3s)

@kreker92 react-static needs react-hot-loader as a peer-dependency, which means you have to install it in your project

FIX
$ yarn global add react-hot-loader


allow scopes to flush between each sample.

Benchmarks run fine to the end, but then dies to memory kill at exit. The scope at the top seems to prevent flushing, so all data is kept in memory until we exit. By only delaying flushing until after each benchmark we can still hide it from measurement (assuming bench_function isn't measured) but prevent memory growth between benches. Adding the new_frame just for good measure as it allows dropping the data progressively too.

@andreiltd Did you have anything that you were investigating beyond this that you'd want to combine this with? Did you find a good explanation for why this improved perf beyond me guessing? :D

LGTM, although I'm not sure if collecting frames affects the profiled function in any way or if this occurs entirely outside the measured scope?


Feature request: Connection editor improvements

[ ] We should discuss how to improve the user experience when creating a new connection from scratch
[ ] MAYBE Support XML connection: This falls under model connection so we should allow user to switch back and forth between JSONModelConnection and XMLModelConnection
[ ] Allow editing post-processor in relational database connection editor
[ ] BUG for relational DB connection, we haven't modularized DatabaseType so in the dropdown, we are seeing all types
[ ] relational DB setup a matrix between types, authentication strategy, authentication strategy, and postprocessor so when the user picks one, we can automatically pick the right preset for them (we shouldn't block them from using whatever combination they wish to though)
[ ] Improve the layout of connection editor, to nolonger visually separate the panels by border lines, following https://github.com/finos/legend-studio/pull/659 for what we do with query builder when showing multi-panel editor
[x] Rework database store generation flow (moved to - https://github.com/finos/legend-studio/issues/268)

Close to open smaller issues


Create forecast tools, add ARIMA model

pvlib python pull request guidelines
Thank you for your contribution to pvlib python! You may delete all of these instructions except for the list below.
You may submit a pull request with your code at any stage of completion.
The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of how to accomplish any of the items below:

[ ] Closes issue #xxxx
[x] I am familiar with the contributing guidelines.
[ ] Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests (usually) must pass on the TravisCI and Appveyor testing services.
[ ] Updates entries to docs/sphinx/source/api.rst for API changes.
[ ] Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.
[ ] Code quality and style is sufficient. Passes git diff upstream/master -u -- "*.py" | flake8 --diff
[ ] New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
[ ] Pull request is nearly complete and ready for detailed review.

Brief description of the problem and proposed solution (if not already fully described in the issue linked to above):
Pushing code to perform short-time forecasts using an ARIMA model, for discussion of how this capability might be added to pvlib.

Thanks! I noticed a few places it says "ARMA" instead of "ARIMA", is this intentional? Are you referring to auto-regressive integrated moving average? Super cool! I won't pretend I understand the algorithms, but I'm reading a paper that uses ARIMA to predict degradation.

ARMA vs. ARIMA - me being lazy.  I'll change it to ARIMA throughout.  SARIMAX is Seasonal Autoregressive Integrated Moving Average eXogenous, which can be done with the same function in statsmodels.  There's reason to think adding seasonal terms (e.g., a 24 hour lag) is appropriate for solar forecasting.  Exogenous inputs are predictors that are not the output being forecast by the ARIMA model, and I don't quite understand how to use them with this function. One challenge is that the SARIMAX function is coded in terms of lags, not timesteps, so to use seasonal terms we'd need to write some additional methods to calculate the lag in terms of the forecast timestep.
My application is short-term, e.g., 1 hour ahead, forecasting of power when the system metadata is not known with confidence.  For what I'm doing, ARIMA is OK.

@cwhanse I think stickler and code-cov will behave better if you merge the latest pvlib/master into your branch.

People interested in this PR should see [solarforecastarbiter-core](https://github.com/SolarArbiter/solarforecastarbiter-core) for careful implementations of persistence forecasts, and consider adding ARMA forecasts there.


Stock longitudinal: spam resume button when lead starts moving

Runs the planner on leads (from vision or radar) when using stock longitudinal or radar off can (so we know when to resume spam)
Spam resume button only when planner (from model if no radar) thinks we want to move (old longControlState.starting) logic

I like this, continuous spam on VW has some subtle undesired side effects. Looking forward to trying it.

This should be done for HKG too. The 2021 Hyundai Sonata N Line has a chime every time the alert to resume appears.

Please provide routes if you try this with one of the affected cars!

Please provide routes if you try this with one of the affected cars!

I'm traveling this week but should be able to test on Sunday.

we can add this to toyotas with pedal as well, send a very small amount of pedal (in my experience 0.14 to 0.16 is usually enough) when the lead starts moving.

Unfortunately the planner is a bit more restricted when it's inactive, so the normal vEgoStarting sometimes can cause us to request resuming a bit later than in the planner was active and we weren't resetting its state constantly to vEgo. Will try to come up with something

LGTM on my Golf R: 3cfdec54aa035f3f|2022-06-22--21-17-20 (still uploading)
Isn't spamming at standstill, but still leaves promptly when it's time to do so. I like it!

@HaraldSchafer is this a comprehensive planner test? As for the model, are you confident it will be accurate in at least predicting the lead is moving away when they do? If either fails, we won't resume spam.

The model should be pretty reliable at that.

Quickly put the model's outputs through the long planner, for the most part it looks good! https://imgur.com/a/ghOGfMu
Despite the model outputting higher than actual lead distances and velocities, the planner seems to handle it well and not want to resume until it seems reasonable, from those few examples above.


Build with docker image is failing

Hi, I wanted to deploy my app with a docker image of Disney but I got this error:

More info about the issue is here: https://github.com/disney/meteor-base/issues/129#issue-1464041434
Note: the build in my machine is good.

@diavrank , I created a PR #22 based on this comment. My Svelte application runs just fine. Could you test your Vue app?

@red-meadow Yes, it worked as well!!! thank you so much!!!


Uploading files result in status OK, even if ACL verification fails

Storage Explorer Version: 1.13.0
Build Number: 20200430.5
Platform/OS: Windows 10
Architecture: x64
Regression From:  Not sure
Bug Description
Uploading a file to a folder where the user does not have write permissions results in status OK ("Uploaded Group: Uploaded: 1" and the green tick). However, the file is not shown in explorer, and isn't actually uploaded. Performing the same operation using the Azure portal results in the ACLVerificationFailed exception (which is correct).
Steps to Reproduce
Upload a file via Storage Explorer to a folder where the user does not have permissions.
Expected Experience
An Error/Exception in the Activities panel, pointing to missing ACLs.
Actual Experience
Status OK, as if the upload succeeded.

@benimurza is this for ADLS Gen1 or Gen2?

Closing due to lack of response.


user12986714: Watch mysfdcninja.blogspot

user12986714 requests the watch of the watch_keyword mysfdcninja\.blogspot. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

mysfdcninja\.blogspot has been seen in 0 true positives, 0 false positives, and 1 NAA.

Approved by Eliah Kagan in Charcoal HQ


Validate that value template refs are not ""

results in an error message:
There was a problem retrieving SAG:resourceTemplate:bf2:Serial:Work: The following referenced resource templates are not available in Sinopia:
which is not helpful.

The way this empty value gets into the Resource Template in the first place is that in the Profile Editor, you delete an existing valueTemplateRef value by just removing the string rather than using the trash can to delete it.

So perhaps for future we would not let this empty value be created in the first place, by doing something to prevent that in the Profile Editor.

Is there an example profile or RT file that can be attached to this ticket to help reproduce the behavior?

I put an RT in DEV for you: blank:valuetemplateref
and also attaching here a  Profile that contains it
ProfileBlankValueTemplateRef.json.txt

Ok, thanks.  So the error is when you try to create a new instance from the RT (I was confused and thought it was when you first try to import the RT).  I got a slight variation on the error, but presume its the same thing:
There was a problem retrieving blank:valuetemplateref: TypeError: Object(...)(...).then is not a function

Opening, not importing.

OK, that's what I saw as well.  Though the text of the error I saw was different than the original screenshot.


Add user systemd service to manual

Add user systemd unit to manual in order to do all in userspace

Thought it would be nice to do everything in user space, including systemd as user unit file.
This way no privileged linking to /usr/local/bin or editing in /etc/systemd/system/ is necessary.

Brilliant! Thank you very much! I'll merge this shortly.

I'm using this setup for connecting to my server at present and it works nicely .

Very nice! This way is actually much better than as a system wide setup, and I think it should be the default. Thanks a lot for providing it. I'll rearrange the section next time I go over the docs. Of course, you are also very welcome to do those changes as well, if you want :)

I am always happy for more options and do not object to any of this in the slightest, but as a networking stack, I'm not sure why you'd want it in user space when the daemon can simply be accessed by user-space programs. What am I missing?

I consider the fact that the Reticulum network stack runs in user space as a unique feature. Just because traditionally network stacks are implemented as kernel modules doesn't mean it has to be.
I'm starting work on integrating Reticulum as an option in Qortal (qortal.org). The Qortal core is also run as a regular user. This makes it a natural fit for Reticulum.


Markdown Preview incorrectly displays "js-with-links-with-details"

Issue Type: Bug
On GitHub, WebPack uses the MarkDown code tag js-with-links-with-details.
This style is not displayed correctly in MarkDown preview in Visual Studio Code:

The <details> tag and hyperlinks are not correctly parsed.

 An extension could add support for this but it's out of scope of the built-in markdown extension


Add a secret storing a elasticsearch keystore to be mounted

@simonswine @icereval @rendhalver
What this PR does / why we need it:
This allows a keystore to be mounted into place so that you can set secure settings in elasticsearch
Which issue this PR fixes fixes #7472
Special notes for your reviewer:
Sorry for the mess in the last attempt at this
Signed-off-by: Ken Hahn<EMAIL_ADDRESS>

/ok-to-test

/lgtm


SailthruClient.multi_send lacks schedule_time parameter

Hi all!
When trying to use SailthruClient.send and SailthruClient.multi_send interchangeably (depending on how many users I need to email), I've faced an issue related to the fact the two methods have different signatures.
The code looks roughly like this:
sc = SailthruClient(SAILTHRU_API_KEY, SAILTHRU_SECRET)
send_method = getattr(sc, 'multi_send' if isinstance(to_email, list) else 'send')
response = send_method(template_name, to_email, email_args, schedule_time=send_on)

You can see, that it raises TypeError: multi_send() got an unexpected keyword argument 'schedule_time' when to_email is a list.
My expectation was that send would be a proxy of multi_send, since the former is logically just a corner case of the latter. However, actually both methods turn out to implement almost identical code while having different signatures.
Is there a good reason why send differs from multi_send signature-wise and implementation of the two is not quite DRYish?
I'd be eager to submit a pull request with a fix if you found that reasonable.
Thanks,
Gennady

Apologies for the late reply, you are right, multi_send sends an email template to multiple email addresses, so it just acts like a wrapper on top of the send functionality. Please refer to https://getstarted.sailthru.com/developers/api/send/ for more info.
I have now added the support for passing a schedule_time for multi_sends, which will enable sending to all the email address based on that same schedule_time passed. Also its an optional parameter.

Great news, thank you for looking into this!


webpack why not update to webpack3

vue-cli webpack2 why not update to webpack3?

It's ongoing in its own repository


Kali support

Installing slap...
Installing the NodeSource Node.js 0.10 repo...
Populating apt-get cache...

apt-get update
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling InRelease [24.6 kB]
Get:2 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 Packages [13.5 MB]
Get:3 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main i386 Packages [13.4 MB]
Fetched 26.9 MB in 7s (3,392 kB/s)
Reading package lists... Done

Installing packages required for setup: apt-transport-https...

apt-get install -y apt-transport-https > /dev/null 2>&1

Confirming "kali-rolling" is supported...

curl -sLf -o /dev/null 'https://deb.nodesource.com/node_0.10/dists/kali-rolling/Release'

Your distribution, identified as "kali-rolling", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support

This issue doesn't seem to be related to the slap editor. Rather, it looks like installing Node.js on kali linux. Also, you should probably install the latest version of Node.js, which is 5.x. Please refer to issues/153 for Kali Linux support.

Thank you for the reply, I tried to check issues 153 and this is what i get:
setting fileBrowser to width 0 in the ini makes it 100% instead #153
I also get the follwoing issue:
`root@2gb:~# curl -sL https://raw.githubusercontent.com/slap-editor/slap/master/install.sh | sh
Installing slap...
Installing the NodeSource Node.js 0.10 repo...
Populating apt-get cache...

apt-get update
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling InRelease [24.6 kB]
Get:2 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 Packages [13.5 MB]
Get:3 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main i386 Packages [13.5 MB]
Fetched 27.0 MB in 4s (6,493 kB/s)
Reading package lists... Done

Installing packages required for setup: apt-transport-https...

apt-get install -y apt-transport-https > /dev/null 2>&1

Confirming "kali-rolling" is supported...

curl -sLf -o /dev/null 'https://deb.nodesource.com/node_0.10/dists/kali-rolling/Release'

Your distribution, identified as "kali-rolling", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
`

I'm sorry, I meant nodesource/distributions#153.


Virtual Scanner

I think a critical component for development would be a scanner emulator.  This would allow automated testing of changes to the whole system by providing a way to run continuous testing (ie via travisci) on any changes - providing a way to check that the entire scan pipeline from click to reconstruction is functioning correctly, for all scanners "supported" by the software, and for all sequences.
I did some work a while ago on simulating timing from ACODES, and that part is not impossible.  However, there's a lot of unknowns to me, mainly in the communication from software to scanner.  I wanted to open this ticket to lay out the idea, and gather some ideas as to whether this would be a feasible project, and what would need to be done?
Features:

Opens up the same communication points as the firmware does, and responds identically (or very closely) in terms of communication.  Basically a state-machine that acts like hardware.
The actual signal data returned when running experiments can either be simulated, or recorded examples.
Emulate different scanners and firmware revisions. (which?)
Check that "uploaded" firmware is correct, ie checksum or something similar (?).
Error handling / catching in abundance.
Check that the experimental acode program is correct, or at least not blatantly wrong.
Interface for test harness.

Unknowns:

Communication layer between OpenVnmrJ and firmware - is there an open source implementation that's compatible with existing firmware?
... Unknown unknowns.

Thanks for the very good suggestion!
Here are a few of my thoughts:

the command go('acqi') leaves the ACODES in /vnmr/acqqueue

We can have a "reference" system to produce ACODES and save those, then compare to any builds
The ACODES files are binary, so it would be helpful to have documentation on the format of the ACODES file
Some of the VxWorks code is in the repository, so that could be useful

One issue is that the pulse programs to produce ACODES can be compiled locally, so a local gcc could generate different ACODES. We distributed the standard pulse programs as code and compiled form

Having a state machine to emulate hardware would be useful for testing

The code is old, and I heard that different compiler options can cause communication problems (Qtune on Mercury console was one)
There are multiple models of consoles (scanners) that this software supports and it would be difficult to test all, especially if different compilers/OSes are included

The file format for ACODES isn't secret, it's all written by the psglib, but not really documented anywhere (publicly afaik).  Changing the compiler shouldn't change the ACODES (unless there's a bug in the psglib).  Basically it's a hodgepodge of assembly-like instructions for experiment execution; I suspect they're executed directly on an FPGA.
Would be a cool undergrad engineering project to build a compatible spectrometer.
That part is easy enough to figure out, will be even easier the second time around.  IIRC, there are a few system-dependent codes though -- that only work, ie, on DDR2, so it's not a single language.  Which flavor the psglib spits out is dependent on the system configuration (again, IIRC).
A stronger statement is that the ACODES for an experiment should be exactly the same on any system, given that the experimental parameters and configured spectrometer are the same.

src/xracq/acodes.h has some information on ACODES.
also checkout src/vwacq that runs on the console.
You are right: the ACODES for an experiment should be exactly the same on any system, given that the experimental parameters and configured spectrometer are the same. There is a set of ACODES; I think one binary file per controller in the console (each RF channel, gradient controller, Lock transceiver, Receiver(s), Master (that controls shim, spin, temperature etc)).
A TODO: write a simple parser that converts the binary ACODES to ASCII and set up a unit test to generate ACODES


fix libgdx/libgdx#5488 ScrollPane scrollTo

Calling ScrollPane scrollTo just after changing children size didn't work.
A another way (workaround) was to manually validate scrollPane before calling scrollTo but i think it's better to do it automatically in ScrollPane class. @NathanSweet What do you think?
It fixes #5488 and in some way #4561 as well : I'll comment on the latest issue.

I think it makes sense to validate inside scrollTo. Thanks!


dialog gui challenge - mega modal markup oddities

regarding: https://web.dev/building-a-dialog-component/
it's mentioned that the footer, header and article elements are semantic containers - but there's little explanation as to why they're there, or the impact they'll have for people using screen readers.
In reality, these don't serve much purpose in the context of the dialog - header/footer should generally be treated as generic in these cases - though not consistently.  So these may also be exposed as banner/contentinfo landmarks, which adds verbosity with little gain.  Similar to the article element which will be exposed as an unnamed article container, which at worse requires someone have to perform additional navigational steps to reach the inner content (for instance, if using VO navigation keys). At best, similar to the header/footer elements, just adds extra verbosity to this dialog.
Similarly, the use of the menu element invalid here.  The menu element is another type of list element - specifically referenced in the spec as being similar to ul.  As such, it expects li elements as its direct children, but you've just put buttons in there.  This is "fine" for the most part, in that some browsers/AT mitigate against this error by not exposing the list semantics and thus treating this no differently than div > button.  But not NVDA, as one example, where when used with Chrome/Edge it informs me that i've entered a list, but as there are no list items i can't navigate by them.  Since it doesn't appear that you want to visually expose this as a list - particularly since the rendered demo even uses two separate instances of menu > buttons, it probably makes more sense to just turn these into divs as well.
Snippet of the rendered markup I grabbed using dev tools:
<footer>
  <menu>
    <button type="reset" value="clear">Clear</button>
  </menu>
  <menu>
    <button autofocus="" type="button" onclick="this.closest('dialog').close('cancel')">Cancel</button>
    <button type="submit" value="confirm">Confirm</button>
  </menu>
</footer>

If you did want this to be exposed as a list, seems reasonable to have a single menu, and then li's containing the 3 buttons.  That too may be a bit more chatty than someone actually needs, but it'd be valid markup then and not have inconsistent exposure to AT.

very interesting information! thank you for takin the time to detail it out. there's learning for me all over this logged issue 👍🏻


On Reaper 7x cycle actions in alternative keymaps do not work

Sorry for the English! 🙂
I'm using the alternative keymaps that Reaper 7 offers.
Inserting cycle actions on main alt 1 or main alt 2 up to main alt 16 seems to have no effect.
Cycle actions only work on the main section.
Thanks for everything you do!

What do you mean by "Inserting cycle actions on main alt 1" and "seems to have no effect"?
Cycle actions can not be inserted in the alt sections, the dropdown menu only in contains the primary one. Once created in Main you can assign them a different shortcut in the alt sections. That seems to work here.

Thanks Christian, I'm closing the issue.

https://forum.cockos.com/showthread.php?p=2764115#post2764115 ff
I can confirm this.
Made a cycle action only containing 'View: Move cursor right to grid division'.
Running this from Main section does move the cursor, but running it from one of the Main (alt) sections nothing happens here.

Confirmed too, it seems to have broken in a recent(-ish?) REAPER update. It works in v7.0, for instance.

@cfillion Are you planning to look into it? Otherwise I/we could as first measure post in the 7.03(pre) thread to let the devs know that it broke cycle actions (in case they can fix it from Reaper side)?

REAPER < 7.03:
if(!hookcommand2(actual_section)) // no match
  hookcommand2(main_section);     // works

REAPER >= 7.03:
if(!hookcommand2(actual_section)) // no match
  hookcommand2(actual_section);   // no match

The actual code is much more complicated (both calls are far apart, not even in the same function), which leads me to believe the old behavior might have been accidental.
All SWS main section actions that use COMMAND_T::onAction instead of onCommand are affected. In addition to Cycle Actions:
SWS/FNG: Apply selected groove (use curent settings from opened groove tool)
SWS/BR: Adjust playrate (MIDI CC only)
SWS/BR: Adjust playrate options...
SWS/BR: Play from mouse cursor position (perform until shortcut released)
SWS/BR: Play from mouse cursor position and solo track under mouse for the duration (perform until shortcut released)
SWS/BR: Play from mouse cursor position and solo item and track under mouse for the duration (perform until shortcut released)
SWS/BR: Play from edit cursor position (perform until shortcut released)
SWS/BR: Play from edit cursor position and solo track under mouse for the duration (perform until shortcut released)
SWS/BR: Play from edit cursor position and solo item and track under mouse for the duration (perform until shortcut released)
SWS/wol: Adjust selected envelope height (MIDI CC relative/mousewheel)
SWS/wol: Adjust selected envelope height, zoom center to middle arrange (MIDI CC relative/mousewheel)
SWS/wol: Adjust selected envelope height, zoom center to mouse cursor (MIDI CC relative/mousewheel)
SWS/wol: Adjust selected envelope or last touched track height (MIDI CC relative/mousewheel)
SWS/wol: Adjust selected envelope or last touched track height, zoom center to middle arrange (MIDI CC relative/mousewheel)
SWS/wol: Adjust selected envelope or last touched track height, zoom center to mouse cursor (MIDI CC relative/mousewheel)
SWS/wol: Adjust envelope or track height under mouse cursor (MIDI CC relative/mousewheel)
SWS/wol: Adjust envelope or track height under mouse cursor, zoom center to mouse cursor (MIDI CC relative/mousewheel)
SWS/S&M: Trigger preset for selected FX of selected track (MIDI/OSC only)
SWS/S&M: Select project (MIDI/OSC only)
SWS/S&M: Trigger preset for FX %d of selected track (MIDI/OSC only)
SWS/S&M: Live Config #%d - Apply config (MIDI/OSC only)
SWS/S&M: Live Config #%d - Preload config (MIDI/OSC only)

@cfillion
Hi Chris I just tried with the latest SWS snapshot:
sws-<IP_ADDRESS>-Windows-x64-c_lanesettings-cf48dc8b.exe
I have done various tests and the cycle actions in the alternative keymaps from alt 1 to alt 16 do not work.
I created a cycle action that opens and closes all folders.
On the main section it works perfectly.
When I assign a shortcut to alt 1 it no longer works.
Looks like maybe we should report to Cockos?
I don't know if SWS can fix this problem.
Thank you!

"c_lanesettings" does not include the fixes for cycle actions. The build here does: https://github.com/reaper-oss/sws/pull/1860#issuecomment-1990216003. Each PR build only contains the changes in that PR in isolation from the others.


Search query options missing

Hello (again) :-)  ,
I'm dealing with a problem, in fact I'm trying to add filtering options after using a search query like with(), withCount(), load().
Elastic Scout Driver permits to do it because it uses the builder from Laravel\Scout\Builder but Elastic Scout Driver Plus does not use it and using with() or withCount() functions is impossible.
It is says that Elastic Scout Driver Plus library doesn't work without Elastic Scout Driver and extends standard Scout search capabilities by introducing advanced query builders, so why is it not possible to use functions from Laravel\Scout ?
Also, I'm confuse about seeing that load function used in Elastic Scout Driver Plus has been rewrite in the Elastic Scout Driver Plus library and applied with function in reality[1], isn't it easier to use the Laravel\Scout library ?
Thanks in advance
[1] https://github.com/babenkoivan/elastic-scout-driver-plus/blob/9217d025bca263ee806d87b23b263ba51f69c9c4/src/Builders/SearchRequestBuilder.php#L199

Hey @luciegirard, can you please add a code example, so I could better understand what are you trying to achieve?
Elastic Scout Driver Plus uses query DSL builders, which of course differ from standard Scout builder. It would be impossible to add all the features Elastic Scout Driver Plus provides with the default builder.

I realize I wasn't very clear in my explanation, so what I do not understand is, when I retrieve Eloquent models with results' ids from Elasticsearch, why is it not possible to add a query builder function to enrich data returned by this Eloquent query (similar as this issue[1]).
As said in the issue linked, the fifth version resolves the problem by adding the query function allowing to add anything we would like to the query builder like with() or withCount().
But the problem is that we have no access to the query builder in Elastic Scout Driver Plus.
The only available function is load() allowing to load a type with with() function which questions me about why is it not called with().
And I'm blocked because I'm trying to use withCount function but without having access to the query builder I can not do it.
[1] https://github.com/laravel/scout/pull/290

This package is a bit more than a regular Scout driver, it offers a lot, but also limits in some ways. Due to lazy loading and possible caching, it's not that easy to provide full control over the query.
The good thing, you can always retrieve models and than enrich your data:
$models = $searchResult->models();

$models->loadCount('my_relation');
$models->load('my_relation');

Similarly to withCount method, Eloquent will make a single query to fetch the requested data.

Thanks for your answer and your work, it will help !


feat: support array-type

BREAKING CHANGE: normal flags no longer return an array

[x] Update documentation

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add "stage this hunk" quick action to the diff view

I would like to stage individual hunks from the diff viewer quicker than selecting the text within, opening the context menu, and pressing "stage selected ranges".
Clicking the gutter indicators in the normal editor window opens an inline diff viewer with buttons to stage / revert this hunk. How about opening a reduced context menu containing only "Stage this change" and "Revert this change" upon clicking the gutter in the diff viewer? (For an already staged change, it should of course be replaced with "Unstage this change".)
See also this idea of @rijk https://github.com/microsoft/vscode/issues/3562#issuecomment-612415850 to collapse the unchanged regions in between and add the quick action buttons to that area.

The diff view already has a "revert" button, which I use a lot less often than "stage hunk". That is the ideal place for the proposed feature.

Staging should be the default for whatever button goes there.
Other diff tools and Git GUIs offer this, some even sensitive to a modifier key, e.g. shift key to change direction of "push".
If you can, model the behavior after SmartGit (which even lets you text-edit the stage, which I really really want in VSCode). SmartGit's changelog has some screenshots that show their diff views.  One can choose to remove or copy insertions/deletions symmetrically (see 22.1 screenshots). One can choose to push changes in either direction (see 21.1 screenshots).
That type of diff view isn't unique to SmartGit. Meld does it too.

Great idea, but I think PyCharm does it the best having a checkbox that one can use to easily stage or unstage a hunk.
If it was implemented in VSCode in the same manner it would be great 🚀

What I find is especially important for me, is in the inline view to have the option to hide staged code. This way I can go through all the changes and stage every hunk, until all that's left are console.logs etc, or changes meant for a different commit.
Not sure if that's relevant for this feature though.

I'm glad you enjoy the feature! :)


Create example-workload-templates.md

New article template
Contributor guide pull request
Thanks for contributing to the docs.microsoft.com contributor guide. Please read these instructions for processing your pull request (PR). Once you've read this text, delete it and write a brief description of the changes you're proposing.
Quality control

[ ] 1. Successful build with no warnings: Review the build status to make sure all checks are green (Succeeded).

[ ] 2. #Sign-off: Once the PR is finalized and ready to be merged, indicate so by typing #sign-off in a new comment in the PR. Signing off means the document is ready for review and can be published at any time.

Merge and publish

All PRs to this repository are manually reviewed and merged.
Once all feedback on the PR is addressed, we'll merge the PR into the main branch.

Need help?

See our guidance on Contributing to the contributor guide for help with adding or updating content in this contributor guide.
Write to the PR reviewer in the PR comments: @carlyrevier, @jehchow

#Sign-Off

@EdPrice-MSFT - Did you mean to add this article to the public-facing contributor guide? Or should it go in the internal guide with the rest of the Architecture Center articles?

@EdPrice-MSFT - Did you mean to add this article to the public-facing contributor guide? Or should it go in the internal guide with the rest of the Architecture Center articles?

It was intentional, but let's add some more initial content with the template. I'll resubmit when it's ready. Thank you!


[bug in cobra] podman invalid-command: outputs help msg to stderr, exits 0

$ podman no-such-command
manage pods and images

Usage:
  podman [flags]
  podman [command]
....
$ echo $?
0

Expected:
podman: no-such-command: command not found
[Exit 1]

This appears to be a known bug in cobra. I cannot find a workaround, but of course there may be one I haven't thought of.
There is a pr against cobra but it has sat idle, without comment, for a year.

This has been fixed.


linux: keep kernel config after build

Description of changes
The Linux kernel build process is tricky as it sometimes changes the configuration file on the fly, if it detects that for example a relevant binary in PATH is missing. This is very hard to debug, especially if Nix omits the config file. I often faced situations where it would be VERY useful to have that config file after pkgs.linuxKernel.manualConfig build a kernel.
In many cases, result/.config can differ from the file that was passed via the configfile property to pkgs.linuxKernel.manualConfig. Having the actual config file that the kernel uses in the environment set up by Nix is very useful for debugging what's happening inside the Nix environment and why the kernel silently (de)activates certain features.
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

@ofborg eval

I'm not sure we need this, Nixpkgs kernels have their configurations embedded into them.  You can see it by running scripts/extract-ikconfig on the kernel image.

I don't have a strong opinion here, it is just a suggestion for simpler investigations of an annoying Linux build problem - especially when handling with config input files (manualConfig attribute).


Two issues with TypeScriptToLua's resolve mechanism

It ignores baseUrl parameter in tsconfig.json
It rewrites expressions like a.require("test") while it shouldn't

Both of them are demonstrated in this repository: https://github.com/evgkul/tstl_resolve_bug

Resolved with #1066 and #1067


Crash Dump: Added local_end_stream_ to crash dump for H2.

Signed-off-by: Kevin Baichoo<EMAIL_ADDRESS>
Commit Message: Added local_end_stream_ to crash dump for H2
Additional Description:
Risk Level: low
Testing: unit test
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA

/assign @antoniovicente

/retest


[question] How to skip PDF etc.?

🖖
I'd like to avoid errors by not crawling some Content-Types or at least by excluding some links from getting into the RequestQueue of a PuppeteerCrawler. A pdf file is a good example.
I've tried using an appropriate regular expressions in the pseudoUrls parameter in the enqueueLinks method (to exclude .pdf and such) but it never worked there, as if the pseudoUrl regexp was ignored completely, although it did work standalone which I tested extensively in a node console.
I saw there was the addInterceptRequestHandler method in Puppeteer utils class that would help me stop requests with an unfavourable content type or url, but I'm not sure how to use that in a PuppeteerCrawler.
Thanks a lot for your help!

You could use a transformRequestFunction parameter of enqueueLinks which allows you to transform a request to be enqueued. You can return null for requests you want to skip from enqueueing.

It's weird that pseudoUrls wouldn't work though. Could you share the regular expressions you were using?

Thanks! It was a complex expression and I suppose I must have overlooked something. This works:
new Apify.PseudoUrl('https://[(.+?\\.)?]domain.com/[.+(?<!.(pdf|bin))$]')


ERROR

I am getting this error while I am creating new project in Azure DevOps Demo generator.
Error while creating build definition: The pipeline is not valid. A task is missing. The pipeline references a task called '4fa3aac0-0020-4832-9089-9979c9dd3e69'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 0.*, job 'Phase_1', step 'Bower_3'.)
AB#3839

Kindly install the required task from the marketplace and provision the new project using the template
If you are running Demo Generator on a brand new organization, please enable the Third-party application access via OAuth under  Organization Setting >> Policies

Run the demo generator again and try to install the extension needed by the template.
Thanks


Builds and deployment stopped working (first when merging development into main, then on all commits)

Hello there!
I'm trying to push some changes I've made on my site using the Dogwood theme, but I'm running into the builds failing, which I think might have to do with this file: https://github.com/nicolelaine/mm-site-revamp/blob/development/.github/workflows/deploy-production.yml
In all fairness, I tried to remove it, since it seemed like it was causing issues with merging the changes in my development branch, but even once I recreated it, nothing is building now, not even simple pushes to the development branch.
Do you know what might be the issue? Let me know if you need any further info! :)
Link to the branch: https://github.com/nicolelaine/mm-site-revamp/tree/development

Update: I managed to fix the part with all the commits but going back to a commit before I removed the file, however, I still can't seem to merge anything into the main. Eventually I would like to push work to gh-pages, but whenever I try to switch to a gh-pages branch, I get a message that everything is up to date. Ideally, I like to be able to host this page on Github, but I'm not clear if there is something in the deployment file that I need to change. Any insight would great. Thank you!

Hi Nicole, it looks like your build is failing due to an SCSS error. I'm looking here and seeing:
 Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/style.scss':
                    Invalid CSS after " color: color": expected ";", was ".scale($primary..." on line 55

Oh, how interesting. I actually didn't write this part of the site. It came with when I cloned the repo to my desktop. Hm. I tried playing around with it and changed  color: color.scale($primary-color, $lightness: 10%); to   color: lighten($primary-color, 10%); but I don't think it really changed anything. You're not running into any errors yourself with this line in the code?

Hello again! :)
I'm still running into build errors on this page: https://github.com/nicolelaine/mm-site-revamp/actions/runs/8729470621/job/23951472387
I've changed two things since this began (both in an attempt to fix the build error)

line 55, I changed  from color: color.scale($primary-color, $lightness: 10%); to   color: lighten($primary-color, 10%);
line 69 I changed from  color: color.scale($primary-color-alt, $lightness: 20%); to  color: lighten($primary-color-alt, 20%);

I'm not really sure why this build error suddenly started, and as this code on this page came with the repo, I'm a bit hesitant to change it any further. Have you run into any other issues with this yourself? Maybe I'm missing something super obvious...
I'm also a bit unclear if this is something that I actually need to deal with. Is this preventing me from pushing the site to Github? If not, maybe I can just... ignore these?
Thanks so much for any time you're able to give to this!

@nicolelaine Are you still having errors or should we close this issue?

@quincylvania It ended up being a Github actions issue. You can close! :)

@nicolelaine Okay cool!


feat: Add GroupColumn Decimal128Array

Which issue does this PR close?

Closes #13505.
Rationale for this change

What changes are included in this PR?
Added group column for Decimal128Array

Are these changes tested?
Yes, slt tests.

Are there any user-facing changes?

Here is a PR to deprecate adjust_output_array: https://github.com/apache/datafusion/pull/13585

@alamb thanks for the tip, I reverted that change! For the test_sum fuzz test, I removed it the same way I did for the Float types due to casting to a DateType. This was the error I got after executing with a backtrace (many more of this same error):
ERROR: Cast error: Failed to convert<PHONE_NUMBER>9254881.41 to datetime for Timestamp(Millisecond, None)

For the test_sum fuzz test, I removed it the same way I did for the Float types due to casting to a DateType

I didn't see the removal you mentioned, but the change looks better to me now

@alamb thanks for the tip, I reverted that change! For the test_sum fuzz test, I removed it the same way I did for the Float types due to casting to a DateType. This was the error I got after executing with a backtrace (many more of this same error): ERROR: Cast error: Failed to convert<PHONE_NUMBER>9254881.41 to datetime for Timestamp(Millisecond, None)

I think I found the issue (thanks @jayzhan211 for the sluthing):

https://github.com/jonathanc-n/datafusion/pull/1

(also shout out to @Rachelint  for writing the first version of these fuzz testers. We just avoided a potential bug with it!)

@alamb @jayzhan211 Thanks for the reviews and changes!


Accessibility Audit: User unable to navigate to Close button on Filter results

ENVIRONMENT
Mobile: OS | OS Ver | Assistive Technology
iPhone Xr | 14.4.2 | VoiceOver
Pixel 3a XL | Android 12 | Talk Back
ISSUE
Turn on one of the assistive technologies referenced above, and go to the Listings page and click into the filter modal.
As you can see from the attached video, the user is unable to navigate to the close button on the filter results page. The user should be able to navigate and select the close button on the filter results page
https://user-images.githubusercontent.com/394908/148063348-78286343-9c0e-4a37-b067-e7374e9bf19b.mov
Acceptance Criteria

Review markup to see if its using our core bloom modal properties

Review focus and whether we can trap the focus in the modal, since it looks like its escaping when user moves up in source order

@slowbot So a couple of follow-up items on this:
It does look like the modal component being used here is our standard ui-components modal, albeit a slightly older version (but I didn't see any recent changes that would impact this particular issue).
Also, I turned VoiceOver on on my iPhone running the latest iOS, and for me it seems like the close (X) button is accessible when moving my finger around/tapping (i.e. it's discoverable). I'm not sure if there's an extra thing I need to do with VoiceOver to "tab" between different things. It's also possible VoiceOver is different between iOS v14 vs 15.
By way of troubleshooting, if someone could try this out again with our standard modal in Bloom (perhaps via https://storybook.bloom.exygy.dev/?path=/story/overlays-modal--basic-modal), I'm curious if that's any different from Detroit's usage.


Mixed PHP code with HTML formatting problem...

I just got involved in some old PHP project where all files are mix of PHP code and HTML markup and I found out that format code does nothing.
I tried to find other post that address this issue, could not find any, so I was wondering if this beautiful extension of yours should format file that is mix of HTML and PHP code?
Cheers
UPDATE: Can anyone answer please? If I cannot use this plugin to format mixed PHP&HTML code, I will have to try to find another solution

I'm noticing the same on my end... In my case it's with laravel blade files though.

Formating is done by PHP CodeSniffer atm, in the future it will be handled by the parser correctly. If you have a specific bug with a reproduction case please open an issue at the language server repository, not here.


flax_stable_noClock.lua doesn't plant when walking South

Beware that on some lower resolutions, the icon tray at bottom might get in the way while walking south:

You might notice instead of planting it tries to gather grass, slate, etc.
In this case, you'll want to minimize this tray or choose F12 mode.
If your seed requires water, then this might not be best solution.  Note you can drag the icon tray to other locations.  Maybe bottom left corner might be a good place for it.

Another clue the macro is clicking the icon tray.

I'm using 1920x1080. I somehow had my icon tray not pushed flat against bottom border of game. See the gap in red box?  When I moved it all the way to bottom, I stopped having problems.
People with lower resolutions might not be able to get away with this. You still will likely need to minimize tray or move it to the left side of screen (no longer in center, where it can be clicked during the south walk.
Also note the popup window about Don't stack flax, it's an exploit.  That's another clue.  Since I was not able to walk south (due to misclick on my icon tray), then it tried to add another plant in my same location (hence causing the popup error).
In the past, I had added the "Extra spacing on Grid" checkbox to avoid this. But I see now, this new checkbox isn't needed at all; the misclick is the entire reason for this error ><

Using F12 Mode will fix it for sure. But that's not helpful if you need the icon bar to appear to show the Water icon.

One method is to move the icon bar slightly to left (so that the lowest part of bar, appears directly south of avatar.  This setup will possibly prevent a misclick on the top bar (in red rectangle box).

Fixed this in flax_stable.lua by minimizing the tray before planting, and opening it back up afterward (for drawing water).


Can't connect to mystic systems...

They use cbc64, cbc128 and cbc256 I believe.  I'm not sure exactly which one.  I had to loosen my ssh servers security a bit to allow netrunner to connect as well.

It's atm a problem with my ssh layer. I switched the library the new one only supports ciphers that mystic don't.
However I can connect to your BBS with ssh.
I wanted to look at that last week but got distracted by the work on compression algorithms :/

Looked into it today. It's not so easy as I thought. There are just 2 async ssh libs and I already use the 'better' one. But it's missing many key exchange algorithms. Esp. the older/more common ones.

Releasing today -  at least enigma bbs compatible key exchange got added.
ps. this is the library I currently use:  https://github.com/warp-tech/russh
It's atm the best tokio lib for ssh unfortunately some key exchange is missing for mystic - needs to get added to russh.  It's still in active development so I assume that mystic key exchange will get added at some point.

Fixed ssh in 0.7.9


Structure of Function.py and proximal_conj

This is related to a smoothTV function where proximal is not computed explicitly whereas the proximal conjugate has closed form depending on epsilon.

Atm smoothMixedL21Norm will consider only call, and gradient methods.

Close after merging #521


Package request: python3.lida

Project description
Automatic Generation of Visualizations and Infographics using Large Language Models

LIDA is a library for generating data visualizations and data-faithful infographics. LIDA is grammar agnostic (will work with any programming language and visualization libraries e.g. matplotlib, seaborn, altair, d3 etc) and works with multiple large language model providers (OpenAI, Azure OpenAI, PaLM, Cohere, Huggingface).
Metadata

homepage URL: https://pypi.org/project/lida/
source URL: https://github.com/microsoft/lida
license: mit
platforms: unix, linux, darwin

Add a :+1: reaction to issues you find important.

@Moraxyc I have a working derivation for kaleido


[Bug Report] Strange css style of active tab title in

Element UI version
2.3.2
OS/Browsers version
Win10 / Chrome 65.0.3325.181
Vue version
2.5.16
Reproduction Link
https://jsfiddle.net/2kah1n56/
Steps to reproduce

click any of the tab titles
minimize your browser window
reactive your browser window

What is Expected?
The active tab title has the same style with the one before the browser minimize
What is actually happening?
The active tab title has a strange border(both top, left, bottom, right)

Duplicate of #9981

@Leopoldthecoder
No padding change issue on my side, just the style changes