text:
#76 added supporting of exiting from app; Android only

What?
#76 Warning when exiting the app
added supporting of exit from the app
Why?
It is able users to choose another Firestick app.
How?
added additional item(button) to nav menu. added modal with exit`s question.
works only on Android devices. For iOS need to find another approach
https://github.com/wumke/react-native-exit-app  as example
How to test?
press on the exit button at bottom of the nav menu. you will see the modal screen with the exit`s question. If you will agree with it the app will clear all states and close. It will be equal if you press the back button on the remote control in the main screens as home screen, search screen, and so on.

I believe we've decided not to have an exit warning for now - @mark-weber to confirm.

confirmed, was agreed to move to post-launch (it was moved out of the week 22 milestone work) @CSeal @tomdyson

We can put this in as a deactivated feature flag. We have the flagged library in the app for this! I've tested it and it works fine, both selecting no and yes.

Perhaps though we should pre-select No rather than Yes...

authors: CSeal mark-weber sinewave440hz tomdyson

repo: royaloperahouse/stream-tv-app


text:
🛑 Blog is down

In 3e63c30, Blog (https://blog.anton.royletron.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in 64ea014.

source: gharchive/issue

repo: royletron/anton-uptime

license: MIT

license_type: permissive

license_source: github-api


text:
Updated Reactive Streams to RC3

Comments from the review on Reviewable.io

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 202 [r1] (raw file):
This is going TDocument as well if you lgtm my CR.

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 224 [r1] (raw file):
This one too

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 341 [r1] (raw file):
Remove all occurrences in javadoc of: This can be of any type for which a {@code Codec} is registered
As it's no longer true.

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 480 [r1] (raw file):
I've been debating whether this should go to BsonDocument, even though it's awkward to use.  What do you think?

driver/src/main/com/mongodb/reactivestreams/client/MongoDatabase.java, line 110 [r1] (raw file):
Same here: BsonDocument?  Rather than privilege the Document class?

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 21 [r1] (raw file):
Just a thought: No @since tags in this project?  I just noticed it for the first time.

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 22 [r1] (raw file):
This is ugly, but I don't have any better ideas.

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 23 [r1] (raw file):
Requires a Javadoc comment, no?  Is checkstyle not enforcing this?

Comments from the review on Reviewable.io

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 341 [r1] (raw file):
Done.

driver/src/main/com/mongodb/reactivestreams/client/MongoCollection.java, line 480 [r1] (raw file):
Document won out I think

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 21 [r1] (raw file):
The ones that were there were all @since 3.0.  I have updated to @since 1.0
Anyway to enforce via checkstyle?

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 23 [r1] (raw file):
Checkstyle doesn't enforce it  - but have added

Comments from the review on Reviewable.io

driver/src/main/com/mongodb/reactivestreams/client/Success.java, line 23 [r1] (raw file):
Perhaps if we write a custom module, but not worth it right now.

Comments from the review on Reviewable.io

LGTM

Rebased and merged

source: gharchive/pull-request

authors: jyemin rozza

repo: rozza/mongo-java-driver-reactivestreams

license_source: bigquery


text:
backsupport for adafruit-circuitpython-neopixel

hey folks, a few years ago we added a 'neopixel' module to this repo, which is awesome but has ended up name-colliding with our circuitpython neopixel library. because of import order, if we install rpi_ws281x, it will never use adafruit-circuitpython-neopixel's neopixel.py file. which is life and i can live with it:)
to 'fix' we'd like to add a new class to this repo's neopixel module that will essentially be a copy-n-paste of this file, to create a circuitpython-api-compatible neopixel object. this will let us complete our quest to provide a unified API for CPython/circuitpython hardware projects
It shouldn't affect anything on your end cause it will be a completely new class, but let me know whatcha think! I can do the PR if it sounds good to you :)

Since the neopixel name is your brand-name (registered trademark IIRC?), and since it was only kept in this library as a compatibility shim after I moved for the more generic (but still not quite all-encompassing) rpi_ws281x I'd be happy to advocate for the dropping of neopixel altogether from this library, so that you can use the module name without conflicts or needing to worry about this repository in future.
A major version bump on the associated release of rpi_ws281x-python and simple instructions to end-users should get them migrated from using "neopixel" to "rpi_ws821x" which are presently totally interchangeable. Either way our users (at least those still import neopixel) are going to have to make that change.
Would this work for you?

In further reading of your solution I understand why it wouldn't affect our users. Still I suspect it would cause some amount of headache with future maintenance since a copy & paste of the class would have to be maintained in two places.
I'm happy to take the headache (I suspect it wont be particularly problematic) of moving users from import neopixel to import rpi_ws281x so that you can have your module name to yourself without any quirks or complications.
After all, the library is called rpi-281x-python and it makes little to no sense to import neopixel from a package with a completely different name.
As much as I can't stop calling everything "neopixels" by habit (and I wholeheartedly recognise the Adafruitian origins of the Python class upon which we have built), the nomenclature clash in this library has bugged me for years :grin: (I felt shipping this on PyPi as "neopixel" would have been crossing a line)

Oh and a heads up (ugh sorry for the wall of replies), regardless of the outcome of this issue- I think this learn article is quite out of date: https://learn.adafruit.com/neopixels-on-raspberry-pi?view=all and could replace a vast majority of the install fiddling with our shipped Python wheels:
sudo pip install rpi_ws281x

Since over on https://github.com/jgarff/rpi_ws281x we're often fielding issues from users trying to build the crusty old Python bindings lingering in that repository from source when they don't need to:
https://github.com/jgarff/rpi_ws281x/issues/307
https://github.com/jgarff/rpi_ws281x/issues/299
https://github.com/jgarff/rpi_ws281x/issues/291
https://github.com/jgarff/rpi_ws281x/issues/290

whew! ok yeah we're ok with removing neopixel from this library completely, and we'll update our code/guide as well! as mentioned, we'll be showing how to use the circuitpython api anyhow :)
let us know when you've yanked & bumped pypi!

You may forge ahead! Godspeed.
https://github.com/rpi-ws281x/rpi-ws281x-python/releases/tag/v4.0.0

thankx!

authors: Gadgetoid ladyada


text:
Error while running code

Hey!
Great library!!!
I am getting this error while running your code:
[AVFilterGraph @ 000002229d9a6400] No such filter: '[0:0]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=4.45:linear=true:print_format=json[norm0]'
Error initializing complex filters.
Invalid argument
Please help me out.

On Archlinux it works.
It seems not all versions of ffmpeg have the same filters.
Compare your version to mine and research at ffmpeg.
$ ffmpeg -version
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100

Hi, I got the same results with SauravTelge.
I tried to run syncstart in windows with WSL & normal windows. In WSL it works fine meanwhile in windows it's throwing that error. Both ffmpeg have loudnorm filters because it's fine with this module - https://github.com/slhck/ffmpeg-normalize

It tried. In my example file it worked only after replacing the :0 wit :1, else error
Stream specifier ':0' in filtergraph description [0:0]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=4.45:linear=true:print_format=json[norm0] matches no streams.
Error initializing complex filters: Invalid argument

That is not your error, is it?
Errored with above error:
ffmpeg -y -nostdin -i "intest.mp4" -filter_complex '[0:0]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=4.45:linear=true:print_format=json[norm0]' -map_metadata 0 -map_metadata:s:a:0 0:s:a:0 -map_chapters 0 -c:v copy -map '[norm0]' -c:a:0 pcm_s16le -c:s copy "outtest.mp4"

Worked:
ffmpeg -y -nostdin -i "intest.mp4" -filter_complex '[0:1]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=4.45:linear=true:print_format=json[norm0]' -map_metadata 0 -map_metadata:s:a:0 0:s:a:0 -map_chapters 0 -c:v copy -map '[norm0]' -c:a:0 pcm_s16le -c:s copy "outtest.mp4"

authors: SauravTelge pandamoon21 rpuntaie

repo: rpuntaie/syncstart


text:
is this project inactive?

no, just busy with school and other personal things

will come back here later once i have more time

repo: rqfirqfo/mscdsampler-html


text:
Deprecation Warning 2024.7.0

Is your feature request related to a problem? Please describe.
There is a new deprecation warning  in HA 2024.7.0 appearing in the logs
Describe the solution you'd like
Update integration
Describe alternatives you've considered
N/A
Additional context
Log message below
Detected that custom integration 'dahua' calls async_forward_entry_setup for integration, dahua with title: NVR 6 and entry_id: 19c39c8e048176b3a713a86601569bd2, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/dahua/__init__.py, line 85: hass.async_create_task(, please create a bug report at https://github.com/rroller/dahua/issues
May be a HACS thing https://github.com/hacs/integration/issues/3850

I get almost the same error but it says it will be depreciated in 2025.1 instead of 2025.6.
Detected code that calls async_forward_entry_setup for integration dahua with title: CamVooraan and entry_id: 3f9ab753ea282e390ca028ff8353924b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

Hi, I am getting the same warning for it being depreciated in 2025.1
Core 2024.7.3
Supervisor 2024.06.2
Operating System 12.4
Frontend 20240710.0
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:151
First occurred: 2:34:15 PM (5 occurrences)
Last logged: 2:34:15 PM
Detected code that calls async_forward_entry_setup for integration dahua with title: Front Porch and entry_id: 2f89fa81c70ceffa86d8452f86534b4d, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

Detected that custom integration 'dahua' calls async_forward_entry_setup for integration, dahua with title: CameraOprit and entry_id: e1bc3dd8f74b4d16a8a547831xxxxxxx, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/dahua/init.py, line 85: hass.async_create_task(, please create a bug report at https://github.com/rroller/dahua/issues

authors: Pastaloverzzz lionslair normalee1993 yfands

repo: rroller/dahua


text:
Language not registered: javascript

I get the following error with inch and inchjs installed:
$ sudo npm install -g inchjs
[sudo] password for aureooms:
/usr/bin/inchjs -> /usr/lib/node_modules/inchjs/bin/inchjs
inchjs@0.2.17 /usr/lib/node_modules/inchjs
├── shelljs@0.3.0
├── glob@4.3.5 (inherits@2.0.1, once@1.3.1, inflight@1.0.4, minimatch@2.0.4)
└── jsdoc@3.2.2 (js2xmlparser@0.1.0, crypto-browserify@0.1.1, taffydb@2.6.2, marked@0.2.8, async@0.1.22, wrench@1.3.9, catharsis@0.7.0, underscore@1.4.2, jshint@0.9.1)

$ sudo gem install inch
Fetching: yard-0.8.7.6.gem (100%)
Successfully installed yard-0.8.7.6
Fetching: tins-1.3.5.gem (100%)
Successfully installed tins-1.3.5
Fetching: term-ansicolor-1.3.0.gem (100%)
Successfully installed term-ansicolor-1.3.0
Fetching: sparkr-0.4.1.gem (100%)
Successfully installed sparkr-0.4.1
Fetching: method_source-0.8.2.gem (100%)
Successfully installed method_source-0.8.2
Fetching: slop-3.6.0.gem (100%)
Successfully installed slop-3.6.0
Fetching: coderay-1.1.0.gem (100%)
Successfully installed coderay-1.1.0
Fetching: pry-0.10.1.gem (100%)
Successfully installed pry-0.10.1
Fetching: inch-0.5.10.gem (100%)
Successfully installed inch-0.5.10
Parsing documentation for yard-0.8.7.6
Installing ri documentation for yard-0.8.7.6
Parsing documentation for tins-1.3.5
Installing ri documentation for tins-1.3.5
Parsing documentation for term-ansicolor-1.3.0
Installing ri documentation for term-ansicolor-1.3.0
Parsing documentation for sparkr-0.4.1
Installing ri documentation for sparkr-0.4.1
Parsing documentation for method_source-0.8.2
Installing ri documentation for method_source-0.8.2
Parsing documentation for slop-3.6.0
Installing ri documentation for slop-3.6.0
invalid options: -SNw2
(invalid options are ignored)
Parsing documentation for coderay-1.1.0
Installing ri documentation for coderay-1.1.0
Parsing documentation for pry-0.10.1
Installing ri documentation for pry-0.10.1
Parsing documentation for inch-0.5.10
Installing ri documentation for inch-0.5.10
Done installing documentation for yard, tins, term-ansicolor, sparkr, method_source, slop, coderay, pry, inch after 29 seconds
9 gems installed

$ ls js/src/**/*.js -1
js/src/attr/attr.js
js/src/attr/len.js
js/src/decreasing.js
js/src/fn.js
js/src/increasing.js
js/src/lexicographical/colexicographical.js
js/src/lexicographical/fixedcolexicographical.js
js/src/lexicographical/fixedlexicographical.js
js/src/lexicographical/lexicographical.js
js/src/lexicographical/quasicolexicographical.js
js/src/lexicographical/quasilexicographical.js
js/src/lexicographical/rangedcolexicographical.js
js/src/lexicographical/rangedlexicographical.js
js/src/reverse.js
js/src/sign.js

$ inchjs js/src/**/*.js
/var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/config.rb:13:in `instance': Language not registered: javascript (RuntimeError)
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/config.rb:38:in `for'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command/base.rb:117:in `to_config'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command/base_list.rb:24:in `prepare_codebase'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command/suggest.rb:24:in `run'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command/base.rb:50:in `run'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command_parser.rb:99:in `run_command'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command_parser.rb:62:in `run'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/lib/inch/cli/command_parser.rb:52:in `run'
	from /var/lib/gems/2.1.0/gems/inch-0.5.10/bin/inch:23:in `<top (required)>'
	from /usr/local/bin/inch:23:in `load'
	from /usr/local/bin/inch:23:in `<main>'

While the error looks like a complete crash, it is able to generate a docs.json file:
$ cat docs.json
{"language":"javascript","client_name":"inchjs","args":[],"client_version":"0.2.17","git_repo_url":"https://aureooms@github.com/aureooms/js-compare","branch_name":"master","objects":[{"comment":"","meta":{"range":[5,118],"filename":"attr.js","lineno":2,"path":"/js/src/attr","code":{"id":"astnode494753372","name":"attr","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","key"]},"vars":{"":false}},"undocumented":true,"name":"attr","kind":"function","longname":"attr","scope":"global"},{"comment":"","meta":{"range":[5,115],"filename":"len.js","lineno":2,"path":"/js/src/attr","code":{"id":"astnode99403445","name":"len","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"undocumented":true,"name":"len","kind":"function","longname":"len","scope":"global"},{"comment":"","meta":{"range":[5,89],"filename":"decreasing.js","lineno":2,"path":"/js/src","code":{"id":"astnode1875923134","name":"decreasing","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["a","b"]}},"undocumented":true,"name":"decreasing","kind":"function","longname":"decreasing","scope":"global"},{"comment":"","meta":{"range":[5,135],"filename":"fn.js","lineno":2,"path":"/js/src","code":{"id":"astnode2064783959","name":"fn","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","callable"]},"vars":{"":false}},"undocumented":true,"name":"fn","kind":"function","longname":"fn","scope":"global"},{"comment":"","meta":{"range":[5,89],"filename":"increasing.js","lineno":2,"path":"/js/src","code":{"id":"astnode278908925","name":"increasing","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["a","b"]}},"undocumented":true,"name":"increasing","kind":"function","longname":"increasing","scope":"global"},{"comment":"/**\n* Generates a binary colexicographical comparator\n* from a binary comparator.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n*\n* compare( a, b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n* compare should express an increasing ordering\n*/","meta":{"range":[358,716],"filename":"colexicographical.js","lineno":16,"path":"/js/src/lexicographical","code":{"id":"astnode99199079","name":"colexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"description":"Generates a binary colexicographical comparator\nfrom a binary comparator.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n\ncompare( a, b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b\n\ncompare should express an increasing ordering","name":"colexicographical","kind":"function","longname":"colexicographical","scope":"global"},{"comment":"/**\n* Generates a binary colexicographical comparator for fixed size arrays.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n*\n* compare( a , b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n*/","meta":{"range":[304,617],"filename":"fixedcolexicographical.js","lineno":14,"path":"/js/src/lexicographical","code":{"id":"astnode1085947180","name":"fixedcolexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","len"]},"vars":{"":false}},"description":"Generates a binary colexicographical comparator for fixed size arrays.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n\ncompare( a , b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b","name":"fixedcolexicographical","kind":"function","longname":"fixedcolexicographical","scope":"global"},{"comment":"/**\n* Generates a binary lexicographical comparator for fixed size arrays.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order\n*\n* compare( a , b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n*/","meta":{"range":[280,596],"filename":"fixedlexicographical.js","lineno":14,"path":"/js/src/lexicographical","code":{"id":"astnode1400175288","name":"fixedlexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","len"]},"vars":{"":false}},"description":"Generates a binary lexicographical comparator for fixed size arrays.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order\n\ncompare( a , b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b","name":"fixedlexicographical","kind":"function","longname":"fixedlexicographical","scope":"global"},{"comment":"/**\n* Generates a binary lexicographical comparator\n* from a binary comparator.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order\n*\n* compare( a, b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n* compare should express an increasing ordering\n*/","meta":{"range":[334,683],"filename":"lexicographical.js","lineno":16,"path":"/js/src/lexicographical","code":{"id":"astnode204592882","name":"lexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"description":"Generates a binary lexicographical comparator\nfrom a binary comparator.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order\n\ncompare( a, b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b\n\ncompare should express an increasing ordering","name":"lexicographical","kind":"function","longname":"lexicographical","scope":"global"},{"comment":"/**\n* Generates a binary quasicolexicographical comparator\n* from a binary comparator.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order#Quasi-lexicographic_order\n* https://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n*\n* compare( a, b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n* compare should express an increasing ordering\n*/","meta":{"range":[444,849],"filename":"quasicolexicographical.js","lineno":17,"path":"/js/src/lexicographical","code":{"id":"astnode546561740","name":"quasicolexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"description":"Generates a binary quasicolexicographical comparator\nfrom a binary comparator.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Quasi-lexicographic_order\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n\ncompare( a, b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b\n\ncompare should express an increasing ordering","name":"quasicolexicographical","kind":"function","longname":"quasicolexicographical","scope":"global"},{"comment":"/**\n* Generates a binary quasilexicographical comparator\n* from a binary comparator.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order#Quasi-lexicographic_order\n*\n* compare( a, b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n* compare should express an increasing ordering\n*/","meta":{"range":[365,761],"filename":"quasilexicographical.js","lineno":16,"path":"/js/src/lexicographical","code":{"id":"astnode764191203","name":"quasilexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"description":"Generates a binary quasilexicographical comparator\nfrom a binary comparator.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Quasi-lexicographic_order\n\ncompare( a, b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b\n\ncompare should express an increasing ordering","name":"quasilexicographical","kind":"function","longname":"quasilexicographical","scope":"global"},{"comment":"/**\n* Generates a binary colexicographical comparator for ranges of arrays.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n*\n* compare( a , b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n*/","meta":{"range":[303,636],"filename":"rangedcolexicographical.js","lineno":14,"path":"/js/src/lexicographical","code":{"id":"astnode1219450701","name":"rangedcolexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","begin","end"]},"vars":{"":false}},"description":"Generates a binary colexicographical comparator for ranges of arrays.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order#Colexicographic_order\n\ncompare( a , b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b","name":"rangedcolexicographical","kind":"function","longname":"rangedcolexicographical","scope":"global"},{"comment":"/**\n* Generates a binary lexicographical comparator for ranges of arrays.\n*\n* https://en.wikipedia.org/wiki/Lexicographical_order\n*\n* compare( a , b ) should always return\n*   - a negative value if a < b\n*   - a positive value if a > b\n*   - zero if a === b\n*\n*/","meta":{"range":[279,610],"filename":"rangedlexicographical.js","lineno":14,"path":"/js/src/lexicographical","code":{"id":"astnode1227528003","name":"rangedlexicographical","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare","begin","end"]},"vars":{"":false}},"description":"Generates a binary lexicographical comparator for ranges of arrays.\n\nhttps://en.wikipedia.org/wiki/Lexicographical_order\n\ncompare( a , b ) should always return\n  - a negative value if a < b\n  - a positive value if a > b\n  - zero if a === b","name":"rangedlexicographical","kind":"function","longname":"rangedlexicographical","scope":"global"},{"comment":"","meta":{"range":[5,105],"filename":"reverse.js","lineno":2,"path":"/js/src","code":{"id":"astnode314589054","name":"reverse","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["compare"]},"vars":{"":false}},"undocumented":true,"name":"reverse","kind":"function","longname":"reverse","scope":"global"},{"comment":"","meta":{"range":[5,69],"filename":"sign.js","lineno":2,"path":"/js/src","code":{"id":"astnode158016789","name":"sign","type":"FUNCTION","node":"<Object>","value":"FUNCTION","paramnames":["v"]}},"undocumented":true,"name":"sign","kind":"function","longname":"sign","scope":"global"}]}

Thanks for the bug report!
I made a mistake and included some feature in the newest version of InchJS that requires Inch 0.6.0 -- stupidly enough, I did not release 0.6.0 until .... just now. :cold_sweat:
Please try updating Inch via
$ sudo gem install inch

and then run InchJS again to verify. :+1:

Works!

Nice!

authors: aureooms rrrene

repo: rrrene/inchjs

license: mit


text:
Delete README

Which issue is resolved by this Pull Request:
Resolves #
Description of your changes:
Checklist:

[ ] Unit tests pass:
Make sure you have installed kustomize == 3.2.1

make generate-changed-only
make test

/test

Started codebuild wee:3169f3e3-e4a5-4271-b68b-1905a5be3b06

AWS CodeBuild CI Report

CodeBuild project: wee
Commit ID: 01580e2f7e44369b7cb0cdeaf1f91cbf489a2caf
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

authors: rrkharse rrrkharse

repo: rrrkharse/kubeflow-manifests


text:
Versioning of the project

Hi,
first of all thanks for this great module.
I think this module deserves some version control.
BTW, I created an adapter to use xlog into gRPC world. https://github.com/clawio/grpcxlog

I guess you are referring the API stability. The project is still very young, but I think we are now reaching a stable state. I'm now satisfied with the API and I don't plan any other breaking API change in the future. Sorry for the inconvenience though.
Thx for the grpcxlog, I will add a ref to it in the readme.

authors: labkode rs

repo: rs/xlog


text:
Missing library on Kinetic

Just downloaded the planner today but I cannot get it to start. Complains about not finding a library, even though the library path env variable is correctly configured
echo $LD_LIBRARY_PATH
/opt/ros/kinetic/lib

This is the error I get:
[FATAL] [1486459900.966916979, 1.800000000]: Failed to create the teb_local_planner/TebLocalPlannerROS planner, are you sure it is properly registered and that the containing library is built? Exception: Failed to load library /opt/ros/kinetic/lib//libteb_local_planner.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libg2o_csparse_extension.so: cannot open shared object file: No such file or directory)

and yet the file clearly exists
ls -l /opt/ros/kinetic/lib//libteb_local_planner.so
-rw-r--r-- 1 root root 1391328 nov 26 16:49 /opt/ros/kinetic/lib//libteb_local_planner.so

The command I'm using to launch is:
roslaunch teb_local_planner_tutorials robot_carlike_in_stage.launch

but I've tried it in my own launch files and it doesn't work there either.
OS Info (screenfetch output):
                          ./+o+-       andreas@andreas-XPS-13-9350
                  yyyyy- -yyyyyy+      OS: Ubuntu 16.04 xenial
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 4.4.0-62-generic
           .++ .:/++++++/-.+sss/`      Uptime: 1m
         .:++o:  /++++++++/:--:/-      Packages: 3295
        o:+o+:++.`..```.-/oo+++++/     Shell: zsh 5.1.1
       .:+o:+o/.          `+sssoo+/    Resolution: 1920x1080
  .++/+:+oo+o:`             /sssooo.   DE: Gnome
 /+++//+:`oo+o               /::--:.   WM: GNOME Shell
 \+/+o+++`o++o               ++////.   WM Theme: Adwaita
  .++.o+++oo+:`             /dddhhh.   GTK Theme: Adapta [GTK2/3]
       .+.o+oo:.          `oddhhhh+    Icon Theme: Ultra-Flat
        \+.++o+o``-````.:ohdhhhhh+     Font: Cantarell 11
         `:o+++ `ohhhhhhhhyo++os:      CPU: Intel Core i7-6560U CPU @ 3.2GHz
           .o:`.syhhhhhhh/.oo++o`      RAM: 1250MiB / 7830MiB
               /osyyyyyyo++ooo+++/
                   ````` +oo+++o\:
                          `oo++.

Somehow I fixed by updating and upgrading:
$ rosdep update
$ rosdep install teb_local_planner # no new packages, at least for me
$ sudo apt-get update
$ sudo apt-get upgrade # didn't mention any ros packages but fixed the problem none the less
$ roslaunch teb_local_planner_tutorials robot_carlike_in_stage.launch # works


text:
Path problem using spark_write_csv on windows 10 to Livy / Spark on Linux

sparklyr_0.5.3-9000
Im using sparklyr from RStudio on windows 10, connecting via Livy to a spark cluster in Azure (HDInsight), running Linux.
When calling spark_write_csv, my local (windows) user directory is appended to the path, which is of course not available on the cluster, see error below. The problem seems to be related to the use of the function normalizePath, which normalizes the path for Windows even though the path is going to be referenced  by Spark running on Linux.
iris_tbl <- copy_to(sc, iris, "iris")

spark_write_csv(iris_tbl, path = "iris.csv")

java.net.URISyntaxException: Relative path in absolute URI: C:%5CUsers%5Cpeter.johansson%5CDocuments%5Csparklyr%5Ciris.csv
...

Seems resolved already, tried the following against Azure HDInsights running Spark 2.1:
> library(sparklyr)
> config <- spark_config()
> config <- livy_config(user = "admin", password = "<password>")
> sc <- spark_connect(master = "https://javierp-test.azurehdinsight.net/livy/", method = "livy", config = config)
> library(dplyr)
> iris_tbl <- copy_to(sc, iris, "iris")

authors: Peter-pj javierluraschi

repo: rstudio/sparklyr


text:
Broom for mlp

hi @javierluraschi ,
I've finished broom for ml_multilayer_perceptron_classifer(). For tidy() I created a data frame with the weight matrix by layer and for glance() I just put the number of nodes in each layer.
I add num_classes in new_ml_multilayer_perceptron_classification_model(), because broom_augment_supervised() need this.
I didn't update NEWS.md yet, I'll put after the reviews.
sc <-  spark_connect(master = "local")

iris_tbl <- sdf_copy_to(sc, iris, name = "iris_tbl", overwrite = TRUE)

mlp_model <- iris_tbl %>%
  ml_multilayer_perceptron_classifier(Species ~ ., layers = c(4,3,2,3))

tidy(mlp_model)
augment(mlp_model)
glance(mlp_model)

LGTM! @kevinykuo anything else to add?

Looks great, couple comments:

Can we replace the for loops with map() calls to be consistent with the style of the codebase?
For the glance method, I think we should make it clear in the column names that these are number of units, and also put the hidden layers into a vector so we don't end up with really wide data frames for deep networks.

I don't think we would end up with very wide data, as in, very deep NN are like 7-20 layers? I would be concerned if we had thousands, etc. Nested vectors are still harder to deal with than nested data, since values are not previewed while printing and the tools to unnest data are newer, so my preference would be to keep this matrix flat.

authors: javierluraschi kevinykuo samuelmacedo83


text:
ObjectType 希望能添加支持嵌套

One-line summary [问题简述]
希望能为 ObjectType 添加支持嵌套描述的功能，类似于 React 的 Proptype
Expected behaviour [期望结果]
ObjectType 希望能添加支持嵌套

https://rsuitejs.com/components/schema/
ObjectType().shape({
  email: StringType().isEmail('应该是一个 email'),
  age: NumberType().min(18, '年龄应该大于18岁')
})

authors: hiyangguo simonguo

repo: rsuite/rsuite-schema


text:
API call to create a read the docs project (on self hosted instance)

Details

We are hosting a read the docs instance behind our firewall and it is working very well (thank you).
For onboarding new teams, we'd like to programmatically create a new read the docs project using your API but neither of these resources describes how to do the import

http://readthedocs.org/api/v2/
http://docs.readthedocs.io/en/latest/api.html

We'd appreciate any suggestions on using the API to manually import a new git repo

This can be closed.
Issue https://github.com/rtfd/readthedocs.org/issues/2725 solves it


text:
Only function stubs generated on RTD

Details

Project URL: https://github.com/tmcclintock/cluster_toolkit
Build URL (if applicable): http://cluster-toolkit.readthedocs.io/en/latest/index.html
Read the Docs username (if applicable): tmcclintock

Expected Result
My build uses autodoc and autoapi in an attempt to generate the API for my Python functions in RTD. The functions all have Google style docstrings (example). Everything builds find locally when I run make html. I understand that this is because sphinx is using my local install.
My Python library is a wrapper around functions written in C. The C code uses the Gnu Science Library (GSL). Since RTD doesn't support the GSL I cannot use a virtualenv to run setup.py in my build, however this shouldn't matter since I only want RTD to generate an API for the Python wrappers.
Actual Result
RTD only ends up with function stubs without any information about the function, as seen here.  I am not having ImportErrors as per the FAQ, it's just that the docstrings aren't found on RTD.
I have attempted to fix this in the conf.py by adding a path to the Python modules, to the api generated with autoapi, and to both at the same time. The local build always works (sometimes with warnings about duplicate docstrings) but the RTD build never does.
Any advice is much appreciated. Thank you.

It was an ImportError and I was just being dumb and didn't see it.

Thanks for updating us and closing the issue, @tmcclintock. Glad you got this sorted!

Well, sadly autodoc still isn't finding my files despite my best efforts and fifty commits, but cest la vie as they say.

I was able to fix my issue by adding these lines to the conf.py file:
# General information about the project.
project = u'project_name'
__import__(project)
package = sys.modules[project]

This stopped the ImportErrors from appearing on the next line in the Build. It isn't totally clear to me why RTD wasn't able to locate my docstrings without this.

authors: RichardLitt tmcclintock


text:
Edit On GitHub link broken

Details

Read the Docs project URL: https://readthedocs.org/projects/xleaflet/

Expected Result
The link "Edit on GitHub" to point a valid URL.
Actual Result
The link "Edit on GitHub" lacks the "blob" part
For example on page https://github.com/QuantStack/xleaflet//master/docs/source/index.rst,
the link points to
https://github.com/QuantStack/xleaflet//master/docs/source/index.rst
instead of
https://github.com/QuantStack/xleaflet/blob/master/docs/source/index.rst

I think the is kind of related to #3925, I will take a further look later.

This is a bug from the rtd theme, I'm fixing it on https://github.com/rtfd/sphinx_rtd_theme/pull/617

This should be fixed in the next release of the rtd theme.

authors: SylvainCorlay stsewd


text:
License

Is there a license for this dataset?

Just added an MIT license (thanks for asking).


text:
Accelerate extract_patches, making it tens of times faster!

Rebase of #32 .  You can see the perf improvement and correctness ensurance below.
require 'torch'
require 'cunn'
require 'cutorch'

cutorch.setDevice(1)

ntimes = 1000
img = torch.randn(256,32,32):cuda()
nDim = 3
patch_size = 1   -- you can set different patch_size and stride
stride = 1

local timer1 = torch.Timer()
local patches
for i = 1, ntimes do
    local C, H, W = img:size(nDim-2), img:size(nDim-1), img:size(nDim)
    local nH = math.floor( (H - patch_size)/stride + 1)
    local nW = math.floor( (W - patch_size)/stride + 1)

    -- extract patches
    patches = torch.Tensor(nH*nW, C, patch_size, patch_size):typeAs(img)
    for i=1,nH*nW do
        local h = math.floor((i-1)/nW)  -- zero-index
        local w = math.floor((i-1)%nW)  -- zero-index
        patches[i] = img[{{},
        {1 + h*stride, 1 + h*stride + patch_size-1},
        {1 + w*stride, 1 + w*stride + patch_size-1}
        }]
    end
end
print('Method 1: '..timer1:time().real..' seconds')
local input_windows
timer2 = torch.Timer()
for i = 1, ntimes do
    local kH, kW = patch_size,patch_size
    local dH, dW = stride,stride
    input_windows = img:unfold(2, kH, dH):unfold(3, kW, dW)

    local i_1, i_2, i_3, i_4, i_5 = input_windows:size(1), input_windows:size(2), input_windows:size(3), input_windows:size(4), input_windows:size(5)
    input_windows = input_windows:permute(2,3,1,4,5):contiguous():view(i_2*i_3, i_1, i_4, i_5)
end
print('Method 2: '..timer2:time().real..' seconds')

print(torch.sum(input_windows - patches))

Method 1: 0.24451613426208 seconds
Method 2: 0.022691955566406 seconds
0

Thanks, this is nice. I never thought of this even after learning about subpixel convs, but technically the whole operation is called im2col which should actually have a Torch implementation.. but I'm too busy to fix this now.

I haven't found im2col in torch, however in pytorch expose im2col is WIP.

authors: LambdaWill rtqichen

repo: rtqichen/style-swap


text:
date range

Hi @rubanraj54, is it possible to filter a date column with a daterange picker?
I am just wondering if table has a 'date of birth' column, how you would filter all birthdays this week or this month (for example)

Currently, I am working on this feature.
In future release, you'll get a custom filter option as well as date range filter.
For date range filter, I am planning to use an external vue component from here https://github.com/Innologica/vue2-daterange-picker .
For the next two weeks, I don't have time to work on this component. So please bear with me.
Cheers,
Ruby.

Awesome. Keep up the great work

yah, cant wait this date range filter feature is released. really need this function. @rubanraj54  thank for this awesome  vue-bootstrap4-table

Hey @rubanraj54
Thanks for all your effords. I  tried flatpicker for date range filtering but can't make it work. I'm also looking forward to have this feature out-of-the-box.
Regards,

Hey, I'm working on a project that requires this feature. Is this likely to become available soon?

Hi @rubanraj54,
Any update ?

I'm waiting for this also and I'm so excited.

I'm waiting for this also. Any example for implement?


text:
[Fix #7167] Fix an error for Naming/RescuedExceptionsVariableName

Fixes #7167.
This PR fixes an auto-correct error for Naming/RescuedExceptionsVariableName when rescue without exception variable after rescue with a exception variable
# example.rb
def foo
rescue => ex
end

def bar
rescue
end

% rubocop -a --only Naming/RescuedExceptionsVariableName
Inspecting 1 file

0 files inspected, no offenses detected
undefined method `loc' for nil:NilClass
/Users/koic/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-0.71.0/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:102:in
`lo
cation'
/Users/koic/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-0.71.0/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:98:in
`var
iable_name'
/Users/koic/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-0.71.0/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:94:in
`pre
ferred_name'
/Users/koic/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-0.71.0/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:73:in
`blo
ck in autocorrect'
/Users/koic/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-0.71.0/lib/rubocop/cop/corrector.rb:64:in
`block (2 levels) in rewrite'

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

I guess #7122 will solve the problem.

I get it. Thanks for your information.

authors: koic pocke

repo: rubocop-hq/rubocop


text:
[Fix #8102] Consider class-length instead of block-length for Struct.new

Closes #8102

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

I guess we should also mention this in the docs - I see we haven't done this for classes as well. Probably some examples there would also be useful.

@tejasbubane Ping :-)

@bbatsov Fixed.

I guess we should also mention this in the docs - I see we haven't done this for classes as well. Probably some examples there would also be useful.

@tejasbubane Can you mention this in the docs?

@tejasbubane It looks like the conflict with the CHANGELOG.md is all that is holding this PR from being rebased onto master. Would it be possible to rebase out your conflicts. I'd be most eager to make use of this fix. By the way, thanks for fixing this. :wink:

@bkuhlmann Thanks for the reminder, this slipped between the cracks.
@koic I have added documentation notes to the cops.

@bbatsov Changed.

Rebased on master

@marcandre Done.

Thank you always!

❤  thanks @tejasbubane, and @koic for the review!

authors: bbatsov bkuhlmann koic marcandre tejasbubane


text:
Add missing entry to CHANGELOG

In #598 new Rails/CompactBlank cop was added,
but there's no entry for it in CHANGELOG.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] If this is a new cop, consider making a corresponding update to the Rails Style Guide.

Good catch! Thanks!

authors: koic okuramasafumi

repo: rubocop/rubocop-rails


text:
Move from CircleCI to GitHub Actions

It seems like GHA is slightly faster than CircleCI (https://github.com/rubocop-hq/rubocop-rspec/actions/runs/384097573 vs https://app.circleci.com/pipelines/github/rubocop-hq/rubocop-rspec/772/workflows/590d8153-c0ca-4d87-8c5d-d6ba132e4f40). Being a built-in tool of GitHub, it’s easier to sign in and manage permissions.
We cannot move the Code Climate integration away from CircleCi because I forgot who has the keys to sign in and get a new API key 🤦

Circle stuck for the second time (that I've noticed) in https://github.com/rubocop-hq/rubocop-rspec/pull/1133
So now is high time for the move.
It seemed to me that we have two (different?) CodeClimate checks:

In either case, I believe we can survive without CodeClimate. At least having a CI that works (rather than pretends to work is preferable.

Fixed the internal investigation in https://github.com/rubocop-hq/rubocop-rspec/pull/1134

@Darhazer What do you think – is it OK to get rid of Code Climate?

@bquorning perhaps we can register a new codeclimate under the new organization :joy:
But I'm fine with moving away from it as well

I don't think code climate ever has brought any value in the past to rubocop-rspec specifically.

How do you feel about me removing the simplecov gem and rake coverage too, then?

removing the simplecov gem and rake coverage too

I suprised me, it seems rake coverage is running as part of our default Rake task, isn't it?
task default: %i[build_config coverage
                 internal_investigation

The current coverage is
All Files (99.69% covered ...

with a few outliers:
lib/rubocop/cop/rspec/align_left_let_brace.rb | 94.12 %

At the same time, SimpleCov.minimum_coverage is not set in our spec_helper.rb, and I can't remember opening coverage/index.html.
Is it causing any problems?
Wondering what it takes to raise our coverage to 100% and set it as a hard constraint.

Also wondering why it counts coverage of spec files 😕

is it OK to get rid of Code Climate?

But I'm fine with moving away from it as well

I don't think code climate ever has brought any value in the past to rubocop-rspec specifically.

Sorry for the delay. I’ll rebase this PR and merge on green.

Fantastic, thanks!

All open PRs need to be rebased (or merge origin/master) for CI to pass now.

authors: Darhazer bquorning pirj

repo: rubocop/rubocop-rspec


text:
False positive for "Style/HashSyntax" when using a variable as a hash key

If you use the same variable as both a hash key and its value, then ruboсop wants to omit the value. The proposed autocorrection breaks the semantics of the code.
Expected behavior
No offences for the following code:
# frozen_string_literal: true

var = 1
{ var => var }

Actual behavior
For /home/meh/Projects/rubocop-test: Default configuration from /home/meh/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/bundler/gems/rubocop-8ae9e0f2081d/config/default.yml
Inspecting 1 file
Scanning /home/meh/Projects/rubocop-test/hash.rb
Loading cache from /home/meh/.cache/rubocop_cache/da7c0adf3cdca36c6db455c7f909e01abe58503a/0536d18c9eb040c724be8df71fd74a67730b58ef/027b8e17147ee3c7f4fce30a50ffb44ff511b6cb
C

Offenses:

hash.rb:4:10: C: [Corrected] Style/HashSyntax: Omit the hash value.
{ var => var }
         ^^^

1 file inspected, 1 offense detected, 1 offense corrected
Finished in 0.18334346099800314 seconds

The code after autocorrection:
# frozen_string_literal: true

var = 1
{ var: }

Steps to reproduce the problem
See above
RuboCop version
❯ rubocop -V
1.25.1 (using Parser 3.1.0.0, rubocop-ast 1.15.1, running on ruby 3.1.0 x86_64-linux)

This is not a false positive because it is an expected behavior of EnforcedShorthandSyntax: always with Ruby 3.1. If you would not like to omit the hash value, please set EnforcedShorthandSyntax: never or EnforcedShorthandSyntax: either.
https://docs.rubocop.org/rubocop/1.25/cops_style.html#enforcedshorthandsyntax-always-default

@koic hash value omission is only possible then key is a Symbol, otherwise it just breaks the code like in the example above.

I've updated the examples with comments reflecting the result of running the code

Ah, you are right. It's my oversight.

authors: koic mehanoid

repo: rubocop/rubocop


text:
non-associative operators parsing when they shouldn't

Taken from ruby/spec:
    -> { eval("1 <=> 2 <=> 3")  }.should raise_error(SyntaxError)
    -> { eval("1 == 2 == 3")  }.should raise_error(SyntaxError)
    -> { eval("1 === 2 === 3")  }.should raise_error(SyntaxError)
    -> { eval("1 != 2 != 3")  }.should raise_error(SyntaxError)
    -> { eval("1 =~ 2 =~ 3")  }.should raise_error(SyntaxError)
    -> { eval("1 !~ 2 !~ 3")  }.should raise_error(SyntaxError)

Yeah working on it - dup of https://github.com/ruby/prism/issues/1457

authors: enebo kddnewton

repo: ruby/prism


text:
Help with using rdbg within a docker-compose service

I have a Rails app that is run in Docker Compose with following structure:
my-rails-app:
  build: .
  image: my-image
  ports:
    - 3000:3000
    - 1234:1234
  command: ["rdbg", "-n", "--open", "--port", "1234", "-c", "--", "rails", "server", "-b", "0.0.0.0"]
  stdin_open: true
  tty: true

I tried following the docs and construct my launch.json like the following:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "rdbg",
            "name": "Debug Rails with rdbg",
            "rdbgPath": "docker-compose exec my-rails-app rdbg",
            "request": "launch",
            "script": "rails s",
            "command": "docker-compose exec my-rails-app rdbg -c",
        },
        {
            "type": "rdbg",
            "name": "Attach with rdbg",
            "request": "attach",
            "rdbgPath": "docker-compose exec my-rails-app rdbg",
            "debugPort": "localhost:1234"
        }
    ]
}

I have also put gem "debug", ">= 1.0.0" in my Gemfile. When pressing F5 to debug, with both launch and attach mode, VSCode kept saying that it couldnt find the process..
Couldn't start debug session. The debuggee process exited with code 1 with launch
connect ECONNREFUSED 127.0.0.1:1234 with attach
Any help is appreciated, sorry if there's anything unclear since this is my 1st time writing a Github issue!

your rdbgPath looks to contain an executable script, and not a path - I would be shocked if that worked.
Are you hoisting your workspace into the container - but running vscode "locally"?
Or are you using a devcontainer with vscode inside devcontainer?

if you are running vscode locally - and hoisting your workspace into the container then you shouldn't need rdbgPath - just the debugPort
/workspace below is whatever path you have loaded as WORKDIR in Dockerfile (I assume you are mapping your rails project as a volume via docker compose)
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach",
"debugPort": "1234",
"localfsMap": "/workspace:${workspaceFolder}"

thanks @firien for the quick response. I think I got what you mean, and the attach debugging mode worked per your instructions! Just wondering what would I put in the rdbgPath if I want to switch to launch mode? I saw someone put in bundle exec rdbg and said it worked which made me kinda confused too.

Are you really running in a dev container? Do you have a Remote Host label like Dev Container in the status bar like that?

umm yeah

eaera is the name of my Rails app

ah ok so you are in the container, then you shouldn't need the debugPort option. You should be able to talk directly to a socket. Something as simple as config below should find the socket.
{
     "type": "rdbg",
     "name": "rails",
     "request": "attach"
}

although you would probably have to remove the port option from startup

command: ["rdbg", "-n", "--open", ~"--port", "1234"~, "-c", "--", "rails", "server", "-b", "0.0.0.0"]

As for launching, it seems your server is booted up with the container, so you kind of have to attach to it.

You can experiment with rails/console launches (you may need to make a few adjustments, I am using an rdbg bin stub in config below)
{
    "type": "rdbg",
    "name": "Launch Rails Console",
    "request": "launch",
    "command": "bin/rails",
    "args": ["--", "--noautocomplete"],
    "script": "console",
    "useBundler": false, // using a bin/stub at rdbgPath
    "useTerminal": true,
    "rdbgPath": "bin/rdbg", // no docker compose stuff
}

authors: bmtrann firien

repo: ruby/vscode-rdbg


text:
Active Storage Isn't Playing Nice with Prawn-Rails

Since we switched to active storage our pdf generation on distributions is not working correctly.
We attempt to pull in the logo of the diaper banks in the pdfs we generate app/views/distributions/print.pdf.prawn on lines 2 and 120. Using the logo_file_path  which is a helper method but something with the recent active storage has broken this.
This you can see the helper method in the following file: app/helpers/distributions_helper.rb
We need to get the images properly inserted back into the generated pdfs.
This is hopefully a simple fix.

Maybe I'm missing something. I cannot reproduce it locally.

@davidshr10 I updated the instructions to reproduce!

I think this is resolved by Pull Request #475

authors: cattywampus davidshr10 seanmarcia

repo: rubyforgood/diaper


text:
Utilize DB connection to partner to update partner sections

Resolves N/A
Description
This PR refactors the code that handles determining which fields section to show to partner user. It changes it from using the legacy API approach to using the multiple DB connections.
Notable changes

Removes legacy classes used to send API requests to the partnerbase application to update partner field sections
Replaced it with a direct DB call.

Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Tested locally on both the new partnerbase within diaperbase & the one old partnerbase that is seperate
Screenshots
N/A

@seanmarcia it has no effect on the status :). I think I understand the concern which I think stems from the partner record not existing until they are invited. However, this has been changed in a recent PR which creates all partner r
The partner record actually gets created exactly when you create them via PartnerCreateService. This decision was made because things can get funky if a partner exists without its associated records on the partner side.


text:
Add packages (not packs) as an option for the distribution export (from Nicole D, 20240807 stakeholder meeting)

Summary
Add the ability to have packages (not packs) as an option for the distribution export.
Why?
Request from a bank.
Details
As an option on organization, add a flag that indicates that packages should be added to the distribution export (add to both edit and view)
When that flag is true,  the distribution export will show an additional column for each item showing the packages (items / number of items per package for that item).  These should be interleaved with the current item columns
Criteria for completion

[ ]  behaviour as above
[ ] automated tests to support the behaviour ( for both true and false values of the flag)

Hey can i try this

Please do.

authors: Naraveni cielf

repo: rubyforgood/human-essentials


text:
Dockerize

This adds the dockerfile-rails 7.1 docker preview, for productionlike docker containers, and a docker-compose set up to run for local development.

@cflipse Can you please accompany this with a README for users?

This is not working for me:
tocks-in-the-future-db-1      | 2023-07-29 17:15:26.310 UTC [65] LOG:  database system was shut down at 2023-07-29 17:15:26 UTC
stocks-in-the-future-db-1      | 2023-07-29 17:15:26.316 UTC [1] LOG:  database system is ready to accept connections
stocks-in-the-future-db-1      | 2023-07-29 17:15:34.821 UTC [76] FATAL:  role "root" does not exist
stocks-in-the-future-db-1      | 2023-07-29 17:15:44.991 UTC [84] FATAL:  role "root" does not exist
stocks-in-the-future-db-1      | 2023-07-29 17:15:55.194 UTC [92] FATAL:  role "root" does not exist
stocks-in-the-future-db-1      | 2023-07-29 17:16:05.393 UTC [101] FATAL:  role "root" does not exist
stocks-in-the-future-db-1      | 2023-07-29 17:16:15.566 UTC [109] FATAL:  role "root" does not exist

Commit 6bfeceb fixed the issue.

authors: cflipse jasonodoom

repo: rubyforgood/stocks-in-the-future


text:
Request for Close-ended evaluation scripts

Congratulations on your excellent work！
Currently, the evaluation scripts only include open-ended scripts. Could you also release the closed-ended and other test dataset evaluation scripts? Due to the different settings (such as few-shot numbers and templates) used for different datasets, the results can vary significantly. To facilitate better comparisons and support the community's ongoing work, it would be beneficial to make this part of the code open-source.

Sorry for the late response. We just uploaded the materials related to financial evaluation and are working on more.

authors: StyxXuan rui-ye

repo: rui-ye/OpenFedLLM


text:
docker run --platform

introduce ability to select platform for image being ran

If you want this to work the same way the current --platform works, it should be using platforms.Only instead of platforms.OnlyStrict :eyes:
(They're very confusingly named, but the difference is that platforms.Only implies the full "vector" of supported images so that users requesting linux/arm/v7 can and will be able to run linux/arm/v6 images if v7 isn't available.)

An easy way to test that would be to use a value like linux/arm/v8 (of which I'm not aware of any images that exist today, so you should get the linux/arm/v7 images instead when you specify that).

Upstreamed by: https://github.com/moby/moby/pull/44958

authors: ndeloof tianon vvoland

repo: rumpl/moby


text:
replicate() not syncing package properly when on cluster.

This bug could indicate more problems with how we're syncing packages: https://linear.app/runhouse/issue/RH-268/calling-replicate-on-the-cluster-leads-to-the-replicated-envs.

#809
#838  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rohinb2 and the rest of your teammates on  Graphite

repo: run-house/runhouse


text:
[Bug]: QdrantVectorStore can delete a collection unintentionally

Bug Description
Issue
On instantiation, QdrantVectorStore uses the qdrant client to determine whether the target collection exists and stores whether it exists or not in an instance variable.
When it comes time to add vectors, QdrantVectorStore first checks the instance variable and issues a recreate (instead of a create) if the collection was determined to be non-existent.
This is fine in most situations, except that the code used to determine whether the collection exists assumes that the collection does not exist when it gets an unexpected response from Qdrant, such as an HTTP 500 error (perhaps even timeouts, although I'm not certain about that). In these situations, the error is swallowed and the collection is recreated, resulting in data loss.
Code in Question
This is the code that checks for collection existence (permalink):
    def _collection_exists(self, collection_name: str) -> bool:
        """Check if a collection exists."""
        from grpc import RpcError
        from qdrant_client.http.exceptions import UnexpectedResponse

        try:
            self._client.get_collection(collection_name)
        except (RpcError, UnexpectedResponse, ValueError):
            return False
        return True

This is the check in add (permalink):
def add(self, nodes: List[BaseNode], **add_kwargs: Any) -> List[str]:
        """Add nodes to index.

        Args:
            nodes: List[BaseNode]: list of nodes with embeddings

        """
        from qdrant_client.http import models as rest

        if len(nodes) > 0 and not self._collection_initialized:
            self._create_collection(
                collection_name=self.collection_name,
                vector_size=len(nodes[0].get_embedding()),
            )

This is self._create_collection (permalink). Notice the recreate_collection call.
def _create_collection(self, collection_name: str, vector_size: int) -> None:
        """Create a Qdrant collection."""
        from qdrant_client.http import models as rest

        self._client.recreate_collection(
            collection_name=collection_name,
            vectors_config=rest.VectorParams(
                size=vector_size,
                distance=rest.Distance.COSINE,
            ),
        )
        self._collection_initialized = True

Version
main
Steps to Reproduce
I was investigating a related bug (creating the collection out of band results in collection deletion) with the following repro script:
from llama_index.vector_stores import QdrantVectorStore
from llama_index.vector_stores.types import NodeWithEmbedding
from llama_index.schema import TextNode
from qdrant_client import QdrantClient, models

client = QdrantClient(url="http://localhost", api_key="secret")

# At this point, the collection does not exist yet.
# On init(), QdrantVectorStore reaches out to Qdrant and determine whether the
# collection exists. It does not, so it sets internal state (_collection_initialized) to False.
vector_store = QdrantVectorStore(client=client, collection_name="my_collection")

# We create the collection "out of band", using the QdrantClient.
client.create_collection(
    collection_name="my_collection",
    vectors_config=models.VectorParams(size=3, distance=models.Distance.COSINE),
)

# dummy node for illustration purposes
nodes = [NodeWithEmbedding(node=TextNode(text="dummy"), embedding=[1, 2, 3])]

# On add, QdrantVectorStore checks its internal state to determine whether the
# collection exists. Because _collection_initialzed was set to False on init(),
# it assumes it does not.
# Now comes the kicker. QdrantVectorStore proceeds to create the collection by
# calling RECREATE_COLLECTION on the qdrant client, which first issues a DELETE
# and then a CREATE.
vector_store.add(nodes)

Relevant Logs/Tracbacks
No response

I'm working on a pull request to address this.

Update: Data loss can definitely happen due to a timeout when connecting to qdrant, as the client raises an UnexpectedResponse exception: qdrant_client.http.exceptions.UnexpectedResponse: Unexpected Response: 408 (Request Timeout)


text:
Fix Redis & Tair vector store overwrite newly created vector

Description
We should not overwrite the vectors for nodes batches that come after the first iteration.
Before the fix, only the vectors in the last nodes batch survived:
Generating embeddings:  98%|█████████████████████████████████████████████████████████████▌ | 2000/2048 [00:24<00:00, 95.81it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings: 100%|███████████████████████████████████████████████████████████████| 2048/2048 [00:25<00:00, 80.91it/s]
INFO:llama_index.vector_stores.redis.base:Deleting index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Creating index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Added 2048 documents to index index_docsgpt
Generating embeddings:   0%|                                                                           | 0/125 [00:00<?, ?it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings:  80%|████████████████████████████████████████████████████             | 100/125 [00:01<00:00, 84.13it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings: 100%|█████████████████████████████████████████████████████████████████| 125/125 [00:01<00:00, 62.97it/s]
INFO:llama_index.vector_stores.redis.base:Deleting index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Creating index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Added 125 documents to index index_docsgpt

After, now it looks good:
Generating embeddings:  98%|███████████████████████████████████████████████████████████████████████████▏ | 2000/2048 [00:24<00:00, 82.26it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings: 100%|█████████████████████████████████████████████████████████████████████████████| 2048/2048 [00:25<00:00, 78.90it/s]
INFO:llama_index.vector_stores.redis.base:Deleting index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Creating index index_docsgpt
INFO:llama_index.vector_stores.redis.base:Added 2048 documents to index index_docsgpt
Generating embeddings:   0%|                                                                                | 0/125 [00:00<?, ?it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings:  80%|███████████████████████████████████████████████████████████████▏               | 100/125 [00:02<00:00, 39.53it/s]INFO:httpx:HTTP Request: POST http://localhost:1234/v1/embeddings "HTTP/1.1 200 OK"
Generating embeddings: 100%|███████████████████████████████████████████████████████████████████████████████| 125/125 [00:03<00:00, 35.84it/s]
INFO:root:Adding document to existing index index_csc_docsgpt
INFO:llama_index.vector_stores.redis.base:Added 125 documents to index index_docsgpt

Type of Change
Please delete options that are not relevant.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[X] I stared at the code and made sure it makes sense

Suggested Checklist:

[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[x] I ran make format; make lint to appease the lint gods

Hey @HollowMan6 thanks for the fix. Actually, I'm about to land a large refactor to the redis vector store here: https://github.com/run-llama/llama_index/pull/12386
Will need to see if this is still an issue or not

I guess we'll still need this https://github.com/run-llama/llama_index/pull/12386/files#diff-81906240af0fe26c9ff8c6b33a4faa61ec86deb4babc7a9507e26a2a091e0fe5R234
I can rebase this PR once that is landed.

Interesting, thanks for flagging this., Given the way nodes are being loaded from the outside (calling vectorstore.add()) this whole strategy around overwriting seems to be an anti-pattern. Let me think about this a bit. But we can solve this for sure. If not in our main update, atleast in a quick follow.

Interesting, thanks for flagging this., Given the way nodes are being loaded from the outside (calling vectorstore.add()) this whole strategy around overwriting seems to be an anti-pattern. Let me think about this a bit. But we can solve this for sure. If not in our main update, atleast in a quick follow.

@logan-markewich checkout my latest commit. I think I may have fixed this in general for Redis.

That looks good! I don't have the resources to test Tair on my side, and I guess you can apply almost the same thing to it: https://github.com/run-llama/llama_index/pull/12386/commits/cec41be0e4fbbde3fbc26c36491442a4745386ba So close this PR for now.


text:
Python API does not allow setting multiple languages but doc says one can.

related #245
Document says
Set language
LlamaParse use OCR to extract text from images. Our OCR supports a long list of languages and you can tell LlamaParse which language(s) to parse for by setting this option. You can specify multiple languages by separating them with a comma. This will only affect text extracted from images.
However I am getting this error with python:
File [~/miniconda3/envs/llm/lib/python3.10/site-packages/pydantic/v1/main.py:341](http://localhost:8888/lab/tree/~/miniconda3/envs/llm/lib/python3.10/site-packages/pydantic/v1/main.py#line=340), in BaseModel.__init__(__pydantic_self__, **data)
    339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
    340 if validation_error:
--> 341     raise validation_error
    342 try:
    343     object_setattr(__pydantic_self__, '__dict__', values)

ValidationError: 1 validation error for LlamaParse
language
  value is not a valid enumeration member; permitted: 'abq', 'ady', 'af', 'ang', 'ar', 'as', 'ava', 'az', 'be', 'bg', 'bh', 'bho', 'bn', 'bs', 'ch_sim', 'ch_tra', 'che', 'cs', 'cy', 'da', 'dar', 'de', 'en', 'es', 'et', 'fa', 'fr', 'ga', 'gom', 'hi', 'hr', 'hu', 'id', 'inh', 'is', 'it', 'ja', 'kbd', 'kn', 'ko', 'ku', 'la', 'lbe', 'lez', 'lt', 'lv', 'mah', 'mai', 'mi', 'mn', 'mr', 'ms', 'mt', 'ne', 'new', 'nl', 'no', 'oc', 'pi', 'pl', 'pt', 'ro', 'ru', 'rs_cyrillic', 'rs_latin', 'sck', 'sk', 'sl', 'sq', 'sv', 'sw', 'ta', 'tab', 'te', 'th', 'tjk', 'tl', 'tr', 'ug', 'uk', 'ur', 'uz', 'vi' (type=type_error.enum; enum_values=[<Language.BAZA: 'abq'>, <Language.ADYGHE: 'ady'>, <Language.AFRIKAANS: 'af'>, <Language.ANGIKA: 'ang'>,

Client:
Please remove untested options:

Python Library

If you are asking about simultaneous language support, it's in their roadmap but I guess we still have to wait.

it support Hebrew?

authors: adnan10tc39 galvangoh stonesthatwhisper


text:
Update Highlight-Stackable-items

Added support for rune pouch

This PR applies no changes.

repo: runelite/plugin-hub


text:
Create bank-searcher

This plugin allows players to see and search the items in their bank while they are away from a bank.

I think the bank memory plugin does this?

@raiyni Yeah, you're right. My plugin is very similar to this one. I'll go ahead and close the PR.

authors: SentryTheBroken raiyni


text:
Runelite - Client no Launch

Hello, I have this problem, the client does nothing
2020-05-17 04:36:09 [main] ERROR net.runelite.launcher.Launcher - Failure during startup
java.lang.UnsatisfiedLinkError: C:\Users\Rafael\AppData\Local\RuneLite\jre\bin\javaaccessbridge.dll: Can't find dependent libraries
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(Unknown Source)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.loadLibrary0(Unknown Source)
at java.base/java.lang.System.loadLibrary(Unknown Source)
at jdk.accessibility/com.sun.java.accessibility.internal.AccessBridge$3.run(Unknown Source)
at jdk.accessibility/com.sun.java.accessibility.internal.AccessBridge$3.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at jdk.accessibility/com.sun.java.accessibility.internal.AccessBridge.(Unknown Source)
at jdk.accessibility/com.sun.java.accessibility.internal.ProviderImpl.activate(Unknown Source)
at java.desktop/java.awt.Toolkit.lambda$loadAssistiveTechnologies$0(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at net.runelite.launcher.SplashScreen.init(SplashScreen.java:161)
at net.runelite.launcher.Launcher.main(Launcher.java:143)

This is an issue tracker for software bugs, not a troubleshooting forum. Please join the #support channel on our Discord server for support with this issue.

authors: Nightfirecat Volcomtony

repo: runelite/runelite


text:
Music plugin - Option to mute player combat fx

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would like to be able to turn off the sounds of my own weapon attacks. This would include melee, magic, and ranged attack noises.
Describe alternatives you've considered
Reaching through the screen and punching hunllef in his fat stupid face.
Additional context
During certain boss fights where you have to keep track of the number of times a boss has attacked, (hydra, hunllef) being able to mute all noises except for the boss-specific noises would help me concentrate. Often I've noticed that I count my own player attacking noises in addition to the boss attack noises sometimes and that makes the fight unnecessarily more difficult.

Based on the current prayer sounds filter in the music plugin, this would require a lot of data collection to collect all sound effects for each weapon type. (List of weapon types) That list is also not perfect because some weapons in each category have different sound effects such as magic secateurs and there can be different sound effects for each attack style. Special attacks also have different sound effects.
The sound effect IDs can be collected using the sound effects developer tool in runelite and hitting the dummy in a POH. Some sound effect IDs are stored in the SoundEffectID class in the runelite API so this could be expanded to store this data.
Once this data is collected and stored in the runelite API then implementing this feature would be very simple but it would be up to the developers to decide if the extension of the SoundEffectID class is useful and the data collection is worth while.

Alternatively there could be an expansion to the gauntlet plug-in to allow
you to mute player combat fx which would require you to get the sounds for
the nine available weapons to use in the gauntlet. Or 18 if corrupted
equipment matters.
On Sun, May 31, 2020, 01:50 Jacob Scanlon notifications@github.com wrote:

Based on the current prayer sounds filter in the music plugin, this would
require a lot of data collection to collect all sound effects for each
weapon type. (List of weapon types
https://oldschool.runescape.wiki/w/Weapons/Types) That list is also not
perfect because some weapons in each category have different sound effects
such as magic secateurs and there can be different sound effects for each
attack style. Special attacks also have different sound effects.
The sound effect IDs can be collected using the sound effects developer
tool in runelite and hitting the dummy in a POH. Some sound effect IDs are
stored in the SoundEffectID class in the runelite API so this could be
expanded to store this data.
Once this data is collected and stored in the runelite API then
implementing this feature would be very simple but it would be up to the
developers to decide if the extension of the SoundEffectID class is useful
and the data collection is worth while.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/issues/11773#issuecomment-636431098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOZNYT53LIDQZISFANU5FYTRUH42ZANCNFSM4NO7DZUQ
.

It would be a lot easier to just mute all sounds from your player.

Yeah the only sounds I need are hunllef attack noises
On Sun, May 31, 2020, 05:22 Hydrox notifications@github.com wrote:

It would be a lot easier to just mute all sounds from your player.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/issues/11773#issuecomment-636451335,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOZNYT2LRVLCU3VB3U2W4NLRUIVXPANCNFSM4NO7DZUQ
.

It seems like sound effects are different than area sound effects because they do not track their source. While testing, the SoundEffectPlayed event always had a null source so it doesn't seem possible to separate player sounds from other sound effects such as hunllef attack sound effects.
It would be possible to set it up as a whitelist of boss sound effects instead of a blacklist but that still requires collecting the sound effect IDs of each bosses attacks. It might make more sense to ask the developer of the gauntlet plugin to extend their plugin instead of implementing this feature in the music plugin. I believe this is the gauntlet plugin you were referring to, and it is a plugin hub plugin and not a part of the main runelite client

authors: Domitan Hydrox6 ScanlonJ


text:
Add Maven Assembly plugin to pom

Add Maven assembly plugin to Runelite.
This adds an extra step when creating the Runelite Jar file. The extra step creates a "fat" jar i.e. a jar which contains runelite and all of its dependencies.
This will allow developers to easily run Runelite locally from the generated jar following a build.

The build already outputs a fat jar (the artifact classifier is shaded), using the maven shade plugin. So I don't think this is necessary.

@Adam- my bad, you're correct! Closing PR.

authors: Adam- nmcmahon-personal


text:
Skill Calculator: Wyrm Agility XP and icons

Update Colossal Wyrm Basic and Advanced XP to match 09/10/2024 game update.
Update Shayzien and Colossal Wyrm icons to match the formats used for other courses with multiple "tiers" (same icon for all tiers).

Oh, I wasn't expecting the Herblore stuff to be included in this PR also, not sure how I did that.
Hope it's not an issue.

You can probably just drop those herblore commits on this branch and force push.
Also, one of those herblore commits might have failed PMD/checkstyle? Idk, the github app is shit, but there's a red X at least. You should probably take a look at it.

Also, one of those herblore commits might have failed PMD/checkstyle? Idk, the github app is shit, but there's a red X at least. You should probably take a look at it.

Yeah I messed up the ordering of the skill actions, I fixed it in the commit after it.

@YvesW Nice, dropped the herblore commits from this one! Thanks for showing me the Git Log in IntelliJ. Didn't know that was a thing before, but its super useful. 👍


text:
Master farmer timer

Shows a timer above any master farmer that counts down from 300 seconds (5 minutes) and resets back to 300 whenever the farmer moves. The config allows you to hide the timer until it is less than "x" seconds. The space between the farmer's head and the timer can also be configured, along with the color of the timer.
Very simple; I didn't implement as many features as I wanted to because I feel the current result is what most people will want.

Master farmers aren't the only NPCs people trap; maybe this could be changed to a general thieving plugin that works on farmers, ardy knights, guards, etc?
iirc there was a PR for a pickpocket stun cooldown overlay that would go well with it too

authors: ConradMelcher ShaunDreclin


text:
feat: add Windows docs

Issue number:
Closes #
Description of changes:

Mostly just Windowsization of things like paths and command syntax
Updated config to reflect which options are available on Windows
Added new architecture diagram and uninstallation screenshot for Windows

Terms of contribution:
By submitting this pull request, I confirm that my contribution is made under
the terms of the licenses outlined in the LICENSE-SUMMARY file.

Everything except the updated Windows architecture diagram should be fixed. PTAL again @ollypom, thanks!

repo: runfinch/finch-website


text:
automatic1111 1.5.0 build error

I am trying to build this container with the latest a1111 version.
I changed the commit hash to the latest commit in the Dockerfile here:
RUN --mount=type=cache,target=/root/.cache/pip \
    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
    cd stable-diffusion-webui && \
    git reset --hard 68f336bd994bed5442ad95bad6b6ad5564a5409a && \
    pip install -r requirements_versions.txt

and here
#1.5.0
ARG SHA=68f336bd994bed5442ad95bad6b6ad5564a5409a
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

But during build, when cache.py is called, I get this error:
ERROR [stage-1 16/29] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors                                            6.2s ------
 > [stage-1 16/29] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors:
#31 4.810 Warning: Stable Diffusion XL not found at path /stable-diffusion-webui/repositories/generative-models/sgm
#31 5.375 No module 'xformers'. Proceeding without it.
#31 5.383 Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
#31 5.561 Traceback (most recent call last):
#31 5.561   File "/stable-diffusion-webui/cache.py", line 1, in <module>
#31 5.561     from webui import initialize
#31 5.561   File "/stable-diffusion-webui/webui.py", line 61, in <module>
#31 5.561     from modules import shared, sd_samplers, upscaler, extensions, localization, ui_tempdir, ui_extra_networks, config_states
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers.py", line 1, in <module>
#31 5.561     from modules import sd_samplers_compvis, sd_samplers_kdiffusion, shared
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers_compvis.py", line 9, in <module>
#31 5.561     from modules import sd_samplers_common, prompt_parser, shared
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers_common.py", line 5, in <module>
#31 5.561     from modules import devices, processing, images, sd_vae_approx, sd_samplers, sd_vae_taesd
#31 5.561   File "/stable-diffusion-webui/modules/processing.py", line 16, in <module>
#31 5.561     import modules.sd_hijack
#31 5.561   File "/stable-diffusion-webui/modules/sd_hijack.py", line 5, in <module>
#31 5.561     import modules.textual_inversion.textual_inversion
#31 5.561   File "/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 16, in <module>
#31 5.561     from modules import shared, devices, sd_hijack, processing, sd_models, images, sd_samplers, sd_hijack_checkpoint, errors, hashes
#31 5.561   File "/stable-diffusion-webui/modules/sd_models.py", line 17, in <module>
#31 5.561     from modules import paths, shared, modelloader, devices, script_callbacks, sd_vae, sd_disable_initialization, errors, hashes, sd_models_config, sd_unet, sd_models_xl
#31 5.561   File "/stable-diffusion-webui/modules/sd_models_config.py", line 9, in <module>
#31 5.561     sd_xl_repo_configs_path = os.path.join(paths.paths['Stable Diffusion XL'], "configs", "inference")
#31 5.561 KeyError: 'Stable Diffusion XL'
------
executor failed running [/bin/bash -o pipefail -c cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors]: exit code: 1

I tried running the build without using cache.py, but that doesnt start a1111 in the endpoint.
What exactly is cache.py doing and how do I need to adapt the steps so it works with 1.5.0 of automatic1111?
This is my current Dockerfile:
# ---------------------------------------------------------------------------- #
#                         Stage 1: Download the models                         #
# ---------------------------------------------------------------------------- #
FROM alpine/git:2.36.2 as download

COPY builder/clone.sh /clone.sh

# Clone the repos and clean unnecessary files
RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 && \
    rm -rf data assets **/*.ipynb

RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf && \
    rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif

RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af && \
    rm -rf assets inputs

RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 && \
    . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusion.git 5b3af030dd83e0297272d861c19477735d0317ec && \
    . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interrogator 2486589f24165c8e3b303f84e9dbbea318df83e8

# RUN wget -O model.safetensors https://civitai.com/api/download/models/15236
WORKDIR /download
RUN wget -O model.safetensors https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors && ls -la

# ---------------------------------------------------------------------------- #
#                        Stage 3: Build the final image                        #
# ---------------------------------------------------------------------------- #
FROM python:3.10.9-slim

ENV DEBIAN_FRONTEND=noninteractive \
    PIP_PREFER_BINARY=1 \
    LD_PRELOAD=libtcmalloc.so \
    ROOT=/stable-diffusion-webui \
    PYTHONUNBUFFERED=1

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN apt-get update && \
    apt install -y \
    fonts-dejavu-core rsync git jq moreutils aria2 wget libgoogle-perftools-dev procps && \
    apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && apt-get clean -y

RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
    pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

RUN --mount=type=cache,target=/root/.cache/pip \
    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
    cd stable-diffusion-webui && \
    git reset --hard 68f336bd994bed5442ad95bad6b6ad5564a5409a && \
    pip install -r requirements_versions.txt

COPY --from=download /repositories/ ${ROOT}/repositories/
COPY --from=download /download/model.safetensors /model.safetensors
#COPY sd_xl_base_1.0.safetensors  /model.safetensors
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install -r ${ROOT}/repositories/CodeFormer/requirements.txt

# Install Python dependencies (Worker Template)
COPY builder/requirements.txt /requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install --upgrade pip && \
    pip install --upgrade -r /requirements.txt --no-cache-dir && \
    rm /requirements.txt

#1.5.0
ARG SHA=68f336bd994bed5442ad95bad6b6ad5564a5409a
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

ADD src .

WORKDIR /repositories
RUN git clone https://github.com/Stability-AI/generative-models.git

WORKDIR /

COPY builder/cache.py /stable-diffusion-webui/cache.py
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors

WORKDIR /extensions
RUN git clone https://github.com/Mikubill/sd-webui-controlnet.git
RUN git clone https://github.com/Extraltodeus/multi-subject-render.git

WORKDIR /

# Copy the models and embeddings directories from the host to the container
COPY test_input.json /
COPY test_input_vanilla.json /
COPY models/Lora /stable-diffusion-webui/models/Lora
COPY models/ControlNet /stable-diffusion-webui/models/ControlNet
COPY models/openpose /stable-diffusion-webui/models/openpose
COPY embeddings /stable-diffusion-webui/embeddings

# Cleanup section (Worker Template)
RUN apt-get autoremove -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/*

RUN chmod +x /start.sh
CMD /start.sh

Hi! I have had the same problem, and I think I have a solution:
In dockerfile, I added the following line after the previous clone command (In Stage 1, line 21 in your dockerfile): RUN . /clone.sh generative-models https://github.com/Stability-AI/generative-models.git 45c443b316737a4ab6e40413d7794a7f5657c19f

Thank you. Yes, I had it figured out in the meantime :-)


text:
minimum network speed parameters for create_pod

community pods can have slow network speeds
this PR adds support for the 2 graphQL parameters "minDownload" and "minUpload" to runpod.create_pod

what does the failed check mean - anything to change?

repo: runpod/runpod-python


text:
Set default version of Python to 3.11

Python3.11 has some advantages for us:

It doesn't cause a segfault on some user-supplied inputs when loading Kore terms from the backend to Kast format in the frontend with the recursion limit set higher.
It's noticeably faster at translating Kast <-> Kore.

Can we set it up so that Python3.11 is the default at least for the kup installed KEVM? For not-kup installs, we can just put a note in the README saying that users should consider upgrading their python.

[ ] Python3.11 default in Nix package.
[ ] Note in README telling user to upgrade to python 3.11.

It's noticeably faster at translating Kast <-> Kore

I did some profiling for KAST-to-KORE (https://github.com/runtimeverification/pyk/pull/332): profile.zip

pyk ver.
Python ver.
Load KAST
Parse KORE
KAST-to-KORE (1st)
KAST-to-KORE (2nd)

0.1.212
3.8.16
3.966
31.549
0.124
0.021

0.1.212
3.11.2
3.587
34.832
0.123
0.023

0.1.218
3.8.16
3.480
13.131
0.114
0.018

0.1.218
3.11.2
3.191
16.173
0.125
0.021

For KAST-to-KORE, there doesn't seem to be a significant performance increase from Python 3.8 and 3.11. On the other hand, pyk performance improved noticeably for related code since version 0.1.212. Are you sure you're not measuring the effects of that (e.g. #1674)?

It doesn't cause a segfault on some user-supplied inputs

Can the segfault be reproduced on 3.10 (for https://github.com/runtimeverification/pyk/issues/286 I couldn't)? Project kevm-pyk already specifies that as the lower bound, so if it turn's out there is no significant performance benefit of 3.11, maybe the solution would be to prioritize https://github.com/runtimeverification/pyk/issues/135.

I was using Python3.10.6, and it was still segfaulting. I could not figure out how to get python3.10.10 installed easily, which I believe is the version you tried.

Ok, updating to python3.11 doesn't yield as much benefit on master pyk as I thought:

Also no segfault on python3.10.6, so I need to figure out why it's segfaulting on our client's machine then.... I will create a docker image for them directly, see if that fixes it.

Let's prioritize the bump to python 3.10 though I think, if it's easy. Not sure what that requires though, the default Ubuntu python is not 3.10 is it?

Not sure what that requires though, the default Ubuntu python is not 3.10 is it?

On Ubuntu Jammy it is. On Focal, it's 3.8.

I was using Python3.10.6, and it was still segfaulting.

Maybe it's not really about Python version but rather system Python vs non-system Python then. (The interpreter that reproduced the error for me was system Python, whereas the other ones were pyenv installed.)

@tothtamas28 did we update the Python version in KEVM? Can we close this issue?

did we update the Python version in KEVM? Can we close this issue?

We updated to 3.10, this issue can be closed as not planned.

authors: ehildenb palinatolmach tothtamas28

repo: runtimeverification/evm-semantics


text:
[Add] Getting Started with open source tutorial

Site URL
https://www.youtube.com/watch?v=yzeVMecydCE&t=1792s&ab_channel=freeCodeCamp.org
Description of the above provided site
Description of the above provided site
Learn why and how to contribute to open source software. You will learn about how to find projects to contribute to, how to make issues and PRs, how to make money from open source, and more.
Category
Resources
Category
Resources
Sub Category
youtube video
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)

Not needed. This is already included to the LinksHub for the respective categories.

authors: Anmol-Baranwal dfordp

repo: rupali-codes/LinksHub


text:
"Reached recursion limit during macro expansion"

Hello there, i use RA main for the following project https://github.com/dani-garcia/vaultwarden and when i open config.rs i get the macro recursion error. The main problem here is that RA has a limit of 128, while the project it self has a limit set of 512 in main.rs. Is there some way that we can increase this limit manually per workspace or have it read the main/lib.rs file or something?

The limit it is hard-coded: https://github.com/rust-analyzer/rust-analyzer/blob/43ed5368d2a54e3332f4cafadd2d5f666fcd2337/crates/hir_def/src/body.rs#L60 Rust-analyzer doesn't read #![recursion_limit = "512"], nor does it provide any other way to configure it.

Here's what the crates I have in my cargo registry use:
$ rg -NI '^#!\[recursion_limit\s*=\s*"(\d+)"\]' -r '$1' -o ~/.cargo/registry/src | sort | uniq -c
      2 100
      1 1000
    184 1024
    122 128
      1 1500
      2 192
      1 196
      4 200
     13 2048
     68 256
      3 2563
      2 4096
      9 500
     38 512
      1 750

Well maybe i should rephrase my question then. Would it be possible to add a way to configure this item per workspace 😄
Since as seen in the output above, it is used a lot and a lot is above 128.

Ah, I forgot to write my conclusion. It would be nice to make it configurable, but increasing the limit a little might not so terrible in the meanwhile.

I have lowered the amount of recursion to 87 right now for the project.
Though, a configurable option could be nice, i think I'm going to close this.

authors: BlackDex bjorn3 lnicola

repo: rust-analyzer/rust-analyzer


text:
Implement inlay hint location links

The inlay hint api allows to split the hints into parts backed by links, we should make use of this.
https://github.com/rust-analyzer/rust-analyzer/blob/5e8515870674983cce5b945946045bc1e9b80200/crates/rust-analyzer/src/lsp_ext.rs#L273-L283
The main difficulty here is that we currently use HirDisplay to render the display representation of types which doesn't allow introspection into each part. We probably need a proper type visitor api here.

Hi, since this pr has been landed for a while, what is the progress of go to type definition via a inlayHint

Hi, Any new progress for this issue?
BTW. Is this related to the issue that  inlay hint tooltip window is not show up ?

@Veykril , I would like to have a try, would you mind give me some hints?

I'm not sure. as was said in the initial description, we probably need to come up with a proper type visitor API here so we can construct the inlay hint parts correctly. I am not sure how feasible that is yet.

authors: IWANABETHATGUY Veykril bigdogs


text:
the (use some::path) is missing when auto-imorting

I think this should rather say:
CargoOpt (use cargo_metadata::CargoOpt)

cc @mahdi-frms, i believe you looked into something similar some time ago?

yeah it was me; though I had not faced such issue.

wait, this is not an issue, we only implemented this feature for trait items.

I think the (use ...) should fire for all auto-imports

OK
but the (as ...) should be only for trait items, right?

Yes!

Right, I'll work at it.

authors: mahdi-frms matklad


text:
internal: Prefer resolution of inert attributes

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10942
bors r+

bors retry