v0.13.0-RC7: undefined method `register_scheme' for URI:Module (NoMethodError)

While testing 0.13.0-RC7 I've encountered the following error:
Rocky Linux 8.9, Ruby 2.7.8
2024-05-15 15:14:54 +0200 Writing PID to /var/run/onetime/ots.pid
bundler: failed to load command: thin (/data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/bin/thin)
2024-05-15 15:14:54 +0200 Exiting!
/data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/uri-redis-1.1.2/lib/uri/redis.rb:102:in `<module:URI>': undefined method `register_scheme' for URI:Module (NoMethodError)
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/uri-redis-1.1.2/lib/uri/redis.rb:5:in `<top (required)>'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/familia-0.9.3/lib/familia.rb:3:in `require'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/familia-0.9.3/lib/familia.rb:3:in `<top (required)>'
	from /data/onetimesecret-0.13.0-RC7/lib/onetime.rb:16:in `require'
	from /data/onetimesecret-0.13.0-RC7/lib/onetime.rb:16:in `<top (required)>'
	from /data/onetimesecret-0.13.0-RC7/lib/onetime/app/web.rb:2:in `require'
	from /data/onetimesecret-0.13.0-RC7/lib/onetime/app/web.rb:2:in `<top (required)>'
	from config.ru:19:in `require'
	from config.ru:19:in `block in <main>'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/rack-2.2.9/lib/rack/builder.rb:125:in `instance_eval'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/rack-2.2.9/lib/rack/builder.rb:125:in `initialize'
	from config.ru:1:in `new'
	from config.ru:1:in `<main>'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/rack/adapter/loader.rb:33:in `eval'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/rack/adapter/loader.rb:33:in `load'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/thin/controllers/controller.rb:72:in `start'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/thin/runner.rb:203:in `run_command'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/lib/thin/runner.rb:159:in `run!'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/gems/thin-1.8.2/bin/thin:6:in `<top (required)>'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/bin/thin:23:in `load'
	from /data/onetimesecret-0.13.0-RC7/vendor/bundle/ruby/2.7.0/bin/thin:23:in `<top (required)>'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli/exec.rb:63:in `load'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli/exec.rb:63:in `kernel_load'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli/exec.rb:28:in `run'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli.rb:475:in `exec'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli.rb:31:in `dispatch'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/cli.rb:25:in `start'
	from /usr/share/gems/gems/bundler-2.2.24/libexec/bundle:46:in `block in <top (required)>'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
	from /usr/share/gems/gems/bundler-2.2.24/libexec/bundle:34:in `<top (required)>'
	from /usr/bin/bundle:23:in `load'
	from /usr/bin/bundle:23:in `<main>'

Check your redis connection string in /etc/config or if you use environment variables, the value of REDIS_URL. Make sure it starts with redis://.
Note that as of RC6, the environment variable names have changed. I just added the warning to the RC7 release notes to make that change more visible.
https://github.com/onetimesecret/onetimesecret/releases/tag/v0.13.0-RC7
If you were previously running an older release, you much just need to rename ONETIMESECRET_REDIS_URL to just REDIS_URL.

Thanks, that's most likely the issue.
Could you probably add some error handling for this case? Maybe onetimesecret could verify that all required config options are set, and if one is missing, print a clear error and exit. This would be very useful and would help users to fix similar issues without raising a bug ticket.

That's a great idea. I added a ticket #335.
Not sure when I'll schedule that work so in the meantime let me know if anything else comes up.


Remove quotes from output of datasetID

This allows for for easier selection and copy/pasting of the dataset id. Besides, quotes seem not be used around other outputted ids.

closes #173

Thanks @joostverdoorn ! Happy to hear you're using it.


testing framework

support common testing utils such as

starknet memoization by @fracek
deployment function

closed in favour of Cairo-native testing


Feature request: Zone jobs taking action on players

I would like to be able to encourage players to avoid going into certain areas.
One method might be to expand Zone jobs to be able to take action on players in the zone.
Example:
zone:
  - command: kick <id>
    schedule: "* * * * *"
    biomes: BlackForest

Another option might be to have Player jobs.
Example:
player:
 - command: kick <id>
   biomes: BlackForest
   schedule: "* * * * *"

It sounds like something similar might be possible using
https://github.com/JereKuusela/valheim-expand_world_prefabs
- prefab: Player
  type: state
  command: kick <pid>
  biome: BlackForest


lost my UST when moving from TERRA to HARMONY using TERRA BRIDGE

I sent UST to my HARMONY wallet but it didn't get there or return back to my terra wallet.
Here is the transaction hash: CE9DD23C426E178EED0F775DC4A98F337D53D07FB10526FC5DCCA99E871089FF
https://finder.terra.money/mainnet/tx/CE9DD23C426E178EED0F775DC4A98F337D53D07FB10526FC5DCCA99E871089FF
Appreciate if someone can look into it and restore my UST.
Many thanks

Hello @Diptronics , Talk to a Anchor Protocol Dev on the Live support page. So that your transaction can be looked into. Thank you. CLICK HERE

Hello @Diptronics   , You should talk to a Terra money Dev on the Live support page. So that your transaction can be looked into. Thank you. CLICK HERE

@Diptronics have you solved?

Yes, I solved it many thanks.

Who did you speak with to get this issue solved I have a similar issue


If you need any help join the support server please ans ask in the #help channel. https://discord.gg/5uVyq2E

auto roles dont work for some reason even tho the module is on.

If you need any help join the support server please ans ask in the #help channel. https://discord.gg/5uVyq2E


Feature/qpafilter

Coverage increased (+0.02%) to 62.493% when pulling d5876a5f06aef1fec42438db3b27d5c2ad29e613 on feature/qpafilter into ac44409200fa915268cfed2e4b8203b0c697d8c1 on master.


CC: Rethink the landing page

Based on my winter project and the feedback from the Education offsite. Will add details here later.

Dupe of #7956


bump

I updated crates for the new release.

@YamatoSecurity
The cause seems to be that assert_display_snapshot has been deprecated since insta version 1.36.0.
https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md#1360
https://github.com/mitsuhiko/insta/pull/385/files#diff-315c02cd05738da173861537577d159833f70f79cfda8cd7cf1a0d7a28ace31bR364
The clippy error can be resolved by fixing it to version 1.35.0, which is before the fix mentioned above in my environment.
[dev-dependencies]
insta = { version = "=1.35.1", features = ["json"] }

@fukusuket Thanks so much! That fixed it. It passed all tests so I will merge it.


[FLINK-24971][BP-1.14] Adding retry mechanism in case git clone fails

Backport of #17881

@AHeise Please merge


feat(transforms): Add option to run global transforms

Nevermind the review, its clear enough is in the function scope.


Fix wording in issue template

There was a typo systemm here. I opted to just remove the superfluos word altogether.

make lgtm work


[Broken] Twitch.tv via yt-dlc library calls / Tubeup

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dlc version 2020.10.31
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
tubeup --debug --use-download-archive --metadata=collection:twitchstreams "https://www.twitch.tv/videos/787134928"
[DEBUG] 2020-10-31 05:08:58,227 - tubeup.TubeUp - DEBUG - [debug] Loading archive file '/home/vxbinaca/.tubeup/.ytdlarchive'
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.10.31
[debug] Python version 3.7.5 (CPython) - Linux-4.15.0-122-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[DEBUG] 2020-10-31 05:09:00,598 - tubeup.TubeUp - DEBUG - [twitch:vod] 787134928: Downloading video info JSON
[DEBUG] 2020-10-31 05:09:00,922 - tubeup.TubeUp - DEBUG - [twitch:vod] 787134928: Downloading vod access token
[DEBUG] 2020-10-31 05:09:01,295 - tubeup.TubeUp - DEBUG - [twitch:vod] 787134928: Downloading m3u8 information
[DEBUG] 2020-10-31 05:09:02,091 - tubeup.TubeUp - DEBUG - [debug] Default format spec: bestvideo+bestaudio/best
[DEBUG] 2020-10-31 05:09:02,166 - tubeup.TubeUp - DEBUG - 🎃 !HALLOWEEK 🎃 Until Dawn - FIRST TIME 🖤 !goal
[DEBUG] 2020-10-31 05:09:02,167 - tubeup.TubeUp - DEBUG - {"id": "v787134928", "title": "\ud83c\udf83 !HALLOWEEK \ud83c\udf83 Until Dawn - FIRST TIME \ud83d\udda4 !goal", "description": null, "duration": 23589, "thumbnails": [{"url": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/688bf5d61347ad152d24_spoonee_40286011342_1604106121//thumb/thumb0-80x45.jpg", "preference": 0, "id": "0"}, {"url": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/688bf5d61347ad152d24_spoonee_40286011342_1604106121//thumb/thumb0-320x180.jpg", "preference": 1, "id": "1"}, {"url": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/688bf5d61347ad152d24_spoonee_40286011342_1604106121//thumb/thumb0-640x360.jpg", "preference": 2, "id": "2"}], "uploader": "spoonee", "uploader_id": "spoonee", "timestamp":<PHONE_NUMBER>, "view_count": 2054, "is_live": false, "formats": [{"format_id": "Audio_Only", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/audio_only/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 214.766, "ext": "mp4", "fps": null, "protocol": "m3u8_native", "preference": null, "vcodec": "none", "acodec": "mp4a.40.2", "format": "Audio_Only - audio only", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}, {"format_id": "160p", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/160p30/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 286.653, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 284, "height": 160, "vcodec": "avc1.4D400C", "acodec": "mp4a.40.2", "format": "160p - 284x160", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}, {"format_id": "360p", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/360p30/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 695.622, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 640, "height": 360, "vcodec": "avc1.4D401E", "acodec": "mp4a.40.2", "format": "360p - 640x360", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}, {"format_id": "480p", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/480p30/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 1413.485, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 852, "height": 480, "vcodec": "avc1.4D401E", "acodec": "mp4a.40.2", "format": "480p - 852x480", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}, {"format_id": "720p-0", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/720p30/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 2263.174, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 1280, "height": 720, "vcodec": "avc1.4D401F", "acodec": "mp4a.40.2", "format": "720p-0 - 1280x720", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}, {"format_id": "720p-1", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/chunked/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 3291.825, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 1280, "height": 720, "vcodec": "avc1.64001F", "acodec": "mp4a.40.2", "quality": 10, "format_note": "Source", "format": "720p-1 - 1280x720 (Source)", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}}], "subtitles": {"rechat": [{"url": "https://api.twitch.tv/v5/videos/787134928/comments?client_id=kimne78kx3ncx6brgo4mv6wki5h1ko", "ext": "json"}]}, "extractor": "twitch:vod", "webpage_url": "https://www.twitch.tv/videos/787134928", "webpage_url_basename": "787134928", "extractor_key": "TwitchVod", "playlist": null, "playlist_index": null, "thumbnail": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/688bf5d61347ad152d24_spoonee_40286011342_1604106121//thumb/thumb0-640x360.jpg", "display_id": "v787134928", "upload_date": "20201031", "requested_subtitles": {"rechat": {"url": "https://api.twitch.tv/v5/videos/787134928/comments?client_id=kimne78kx3ncx6brgo4mv6wki5h1ko", "ext": "json"}}, "format_id": "720p-1", "url": "https://dqrpb9wgowsf5.cloudfront.net/688bf5d61347ad152d24_spoonee_40286011342_1604106121/chunked/index-dvr.m3u8", "manifest_url": "https://usher.ttvnw.net/vod/787134928.m3u8?allow_source=true&allow_audio_only=true&allow_spectre=true&player=twitchweb&playlist_include_framerate=true&nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1604207341%2C%22https_required%22%3Afalse%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A2%2C%22vod_id%22%3A787134928%7D&nauthsig=3b045fbeab0c020cd6d39b06258f1dc3d9b252db", "tbr": 3291.825, "ext": "mp4", "fps": 29.999, "protocol": "m3u8_native", "preference": null, "width": 1280, "height": 720, "vcodec": "avc1.64001F", "acodec": "mp4a.40.2", "quality": 10, "format_note": "Source", "format": "720p-1 - 1280x720 (Source)", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.57 Safari/537.36", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5"}, "fulltitle": "\ud83c\udf83 !HALLOWEEK \ud83c\udf83 Until Dawn - FIRST TIME \ud83d\udda4 !goal", "_filename": "/home/vxbinaca/.tubeup/downloads/v787134928.mp4"}
[DEBUG] 2020-10-31 05:09:02,168 - tubeup.TubeUp - WARNING - There's no description to write.
[DEBUG] 2020-10-31 05:09:02,169 - tubeup.TubeUp - WARNING - There are no annotations to write.
[DEBUG] 2020-10-31 05:09:02,169 - tubeup.TubeUp - DEBUG - [info] Writing video subtitles to: /home/vxbinaca/.tubeup/downloads/v787134928.rechat.json
[DEBUG] 2020-10-31 05:09:02,170 - tubeup.TubeUp - DEBUG - [debug] Invoking downloader on 'https://api.twitch.tv/v5/videos/787134928/comments?client_id=kimne78kx3ncx6brgo4mv6wki5h1ko'
[DEBUG] 2020-10-31 05:09:02,172 - tubeup.TubeUp - ERROR - ERROR: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[DEBUG] 2020-10-31 05:09:02,173 - tubeup.TubeUp - ERROR - Traceback (most recent call last):
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 846, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 901, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1696, in process_video_result
    self.process_info(new_info)
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1894, in process_info
    dl(sub_filename, sub_info, subtitle=True)
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1866, in dl
    return fd.download(name, info, subtitle)
  File "/home/vxbinaca/.local/lib/python3.7/site-packages/youtube_dlc/downloader/common.py", line 370, in download
    int(sleep_interval_sub)))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Description
Something in 2020.10.31 broke extraction of Twitch channels/videos, my software depends on yours now, and switching back to 2020.10.26 resolved the issue for me.
Using your software alone works, but something with the latest version and my software is breaking extraction of Twitch video and video IDs from channels.
We call use these library calls:
            'outtmpl': os.path.join(self.dir_path['downloads'],
                                    self.output_template),
            'restrictfilenames': True,
            'quiet': not self.verbose,
            'verbose': self.verbose,
            'progress_with_newline': True,
            'forcetitle': True,
            'continuedl': True,
            'retries': 9001,
            'fragment_retries': 9001,
            'forcejson': True,
            'writeinfojson': True,
            'writedescription': True,
            'writethumbnail': True,
            'writeannotations': True,
            'writesubtitles': True,
            'allsubtitles': True,
            'ignoreerrors': True,  # Geo-blocked,
                                   # copyrighted/private/deleted
                                   # will be printed to STDOUT and channel
                                   # ripping will  continue uninterupted,
                                   # use with verbose off
            'fixup': 'warn',  # Slightly more verbosity for debugging
                              # problems
            'nooverwrites': True,  # Don't touch what's already been
                                   # downloaded speeds things
            'consoletitle': True,   # Download percentage in console title
            'prefer_ffmpeg': True,  # `ffmpeg` is better than `avconv`,
                                    # let's prefer it's use
            # Warns on out of date youtube-dl script, helps debugging for
            # youtube-dl devs
            'call_home': False,
            'logger': self.logger,
            'progress_hooks': [ydl_progress_hook]

@vxbinaca are you still experiencing problems?

Nope, apologies about forgetting to close this.


changed Menu.MenuOrder to public and added new element

Menu.MenuOrder being public would allow for making new elements without having to worry about slow reflection

there's a high chance that i have missed some part of the xml docs that you might want to have in there. i was just going by what the other elements were using. feel free to change whatever you deem fit


Wide tables are not showing

Prerequisites

[X ] Put an X between the brackets on this line if you have done all of the following:

Check that you are using the latest version of kaobook.
Check that your issue isn't already filed: https://github.com/fmarotta/kaobook/issues

Description
When compiling the example/documentation, everything works great (and looks awesome), but the wide figures and tables are not showing.
Minimal Working Example
[You can use the following document to help you create a minimal working example.]
\documentclass{kaobook}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{kaobiblio}
\usepackage{kaotheorems}
\usepackage{kaorefs}

\begin{document}

\title{Bug Report}
\author{Author}
\date{\today}

\frontmatter

\KOMAoptions{twoside=semi}
\maketitle
\KOMAoptions{twoside=false}

\mainmatter
\setchapterstyle{kao}

\chapter{First Chapter}
\blindtext

With the environments \Environment{figure*} and \Environment{table*} you
can insert figures which span the whole page width. For example, here
are a wide figure and a wide table.

\begin{figure*}[H]
	\includegraphics{seaside}
	\caption[A wide seaside]{A wide seaside, and a wide caption.
		Credits: By Bushra Feroz, CC BY-SA 4.0, \url{https://commons.wikimedia.org/w/index.php?curid=68724647}}
\end{figure*}

\begin{table*}[H]
    \caption{A wide table with invented data about three people living in the UK. Note that wide figures and tables are centered and their caption also extends into the margin.}
    \begin{tabular}{p{2.0cm} p{2.0cm} p{2.0cm} p{2.0cm} p{2.0cm} p{2.0cm} p{1.5cm}}
        \toprule
        Name    & Surname   & Job       & Salary           & Age   & Height    & Country \\
        \midrule
        Alice   & Red       & Writer    & 4.000 \pounds    & 34    & 167 cm     & England \\
        Bob     & White     & Bartender & 2.000 \pounds    & 24    & 180 cm     & Scotland \\
        Drake   & Green     & Scientist & 4.000 \pounds    & 26    & 175 cm     & Wales \\
        \bottomrule
    \end{tabular}
\end{table*}

\end{document}

Expected behavior: I'm expecting to see the wide table and figure appear
Actual behavior: I tried compiling multiple times (6 to be precise) but this did nothing

Additional Information
I am using the latest TeXMaker on Mac OS, with the latest MacTeX version.

I can confirm the problem and the fix. I'm using tectonic on macOS.


Added LinkedList.cpp code under C++ folder

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked the issues to see if your request isn't assigned to someone else?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[ ] If your submission is to improve an existing code, have you created an issue to specify that?
[ ] Don't tag anyone unless specifically requested to do so
[ ] Don't create any subfolders unless specifically requested to do so.

[ ] Does your code work locally?
[ ] Have you cleaned your code for better readability? (no extra unnecessary lines, etc.)
[ ] Have you updated the README.md file to add the link to your code?

Thanks again!


Introduce activationThreshold for GCP scalers

Signed-off-by: Ram Cohen<EMAIL_ADDRESS>Related to #2800
Related to kedacore/keda-docs#831

Looking good, some comments inline Apart from them, seems that there are some missing changes in storage_test.go (I can't see anything related with the activation during any tests)

I did the test in the final step by keeping just the activationValue number of files and checking that it's still scaling to zero, but I see it's not clear so I did it now as the first step

/run-e2e gcp*

/run-e2e gcp*

/run-e2e gcp*

Thank you for this improvement!!!


Feature Request: Simplify Creating Resource Classes

Is your feature request related to a problem? Please describe.
Even for developing tests in certain environments, creating resource classes and adjusting their attributes is a needlessly complex process. We have the building blocks in resource administration already, so let's make this more attainable.

Resolved by #35


Centralise the exception reporting so that we coalesce widget exceptions also

Rendering exceptions only show the first one, after that they're all coalesced. We should do the same for all exceptions by routing everything through a single exception processing function. This would also help with fixing #2323 and #2220.

I have a local branch where I create a services/assertions.dart that contains a FlutterError (extends AssertionError) that's identical to RenderingError and WidgetError. I propose to fold the latter two into the former, and start centralising more logic into that file, such as having just one kind of callback, just one place that summarises exceptions, etc. (For the callbacks one of the arguments would presumably be an object that is specialised for each kind of exception; for the printing, there would presumably be a callback that is invoked to get the extra colour we sometimes include.)

I've done the folding into FlutterError part.

Does this also address assertions?

Yes.

(FlutterError is a subclass of AssertionError.)

Ah right, I missed that part, thanks.

Very nice, thanks :)


LS: Improve performance of the document outline

For the current document, instead of waiting for the analysis we can walk AST.

Addressed a in a significant way by https://github.com/Microsoft/PTVS/pull/4682 but still can be made even faster.


Update board_recruiting.vue

Fixing spelling and grammar on the board recruiting page.

@allcontributors add @SteveReiter as documentation

@allcontributors add @SteveReiter as documentation


DataGrid control appears to be broken

The DataGrid control isn't appearing in version 11.0.0-rc1.1.
I created a new user control.
Added the namespace
xmlns:control="clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls.DataGrid" after including the package Avalonia.Controls.DataGrid.
I added the theme to App.axaml
    <Application.Styles>
        <FluentTheme/>
      <StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
    </Application.Styles>

I have a view model with a public observable collection called Samples and it is filled in the constructor.
In the user control this is how I am creating the DataGrid:
  <UserControl.DataContext>
    <local:DataGridSampleViewModel/>
  </UserControl.DataContext>

  <Grid>
    <control:DataGrid ItemsSource="{Binding Samples}" AutoGenerateColumns="False">
    </control:DataGrid>
  </Grid>

What has changed that this no longer works?

You didn't add columns.
<DataGrid ...>
  <DataGrid.Columns>
     <DataGridTextColumn Header="First Name"  Binding="{Binding FirstName}"/>
     <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
  </DataGrid.Columns>
</DataGrid>

You didn't add columns.
<DataGrid ...>
  <DataGrid.Columns>
     <DataGridTextColumn Header="First Name"  Binding="{Binding FirstName}"/>
     <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
  </DataGrid.Columns>
</DataGrid>

I should have mentioned that I had also tried AutoGenerateColumns = "True" and that also was not working.

You didn't add columns.

Hey it seems I've overlooked something in my code. It was one of those small details. It's solved now.


Fix console errors on hitting Escape button

This PR solves #108.
Now console doesn't throw the error on hitting Escape button

Hello, @longlho can you please have a look?


Suggestion: Equipped function for weapons

As some characters may have more than 1 armor, some have more than 1 or 2 weapons :). Please give us the equipped function for weapons too!

I absolutely will do when the modifiers system has an effect beyond soak modifiers... till then equipping weapons wouldn't actually achieve anything mechanically, other than helping you keep track of which ones you've got prepped.
Unless you have other sheet behaviour in mind that you'd like to see linked to equipping items?

It doesn't need a mechanical use, it's the use for organizing the character which is the big advantage of an digital sheet :).
My character has 5 weapons and he equips the weapons he needs for the actual use case. So it would be awesome if I can mark it as "in use" or "carry" or "equipped" - what ever you want. Not all weapons on my sheet are carried by my character. Some are stored in the ship, some are stored in a bagpack.

Well if they are stored in the ship, you can drag them from your character sheet to the ship cargo hold and back when you need to.  Would you be alright with just two check-boxes, "equipped" any "carried" to mimic the OggDude mechanic?

Added equipped function for weapons.  It is purely cosmetic.  Now in dev branch.


[Sanitizers] Add new sanitize-stable-abi flag for libsanitizers.

This patch adds a new flag sanitize-stable-abi to support linking against the stable ABI introduced in libsanitizers. The patch also passes the appropriate options for the ASan pass when using this flag.
This change depends on the llvm-project change here: https://github.com/llvm/llvm-project/pull/72439
rdar://112915278

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test

@swift ci test Linux

@swift-ci test Linux

@swift-ci test Linux

@swift-ci test Linux

@swift-ci Please smoke test Linux platform

Cloned this commit to https://github.com/apple/swift/pull/70508 , and will be merging from there (on behalf of Usama who's not available at the moment.  So closing this one


wrap multiple PETSc libraries (float, double, complex, ...)

I know that we plan to do this eventually, and there is some untested skeleton code for this already, but it would be good to get started on this for real, because retro-fitting this might otherwise become more and more painful.

e.g. PetscInitialize() currently initializes only the Float64 version.  Is it even possible to call PetscInitialize for multiple Petsc versions in the same program?

Probably src/generated should have subdirectories Float64, Complex128, etcetera, containing the respective copies of the Clang-generated files.

All three are wrapped and being tested as of d8bfbd4a11793f62ece44810cedeec2f9dbef41f


README updates

Updated the license section to match the latest Prolific template. Also expanded the usage section to include date and custom menu examples.

👍


Feature to detect the state of IMessageSender & IMessageReceiver

Is your feature request related to a problem? Please describe.
related to https://github.com/Azure/azure-sdk-for-net/issues/8561
Describe the solution you'd like
Currently, We cannot check the status of the message sender or receiver.
But, we want to check the status as OPEN or CLOSED.
Describe alternatives you've considered
For the receiver, I tried with peek(). In that way, If the peek operation works successfully, I can think that receiver is this open.
Additional context
I need this feature to validate the object (sender/receiver) on the connection pool.
I am using Java SDK 3.5.1 [1]
[1] https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/servicebus/microsoft-azure-servicebus/src/main/java/com/microsoft/azure/servicebus
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[X] Description Added
[X] Expected solution specified

@ki1729 can you please take a look?
/cc @ramya-rao-a

@joshfree This issue is for the older SDK azure-servicebus, so assigning to @yvgopal and @shankarsama first
@ki1729 Please keep an eye on this thread as the learnings from here may be applied to the newer package azure-messaging-servicebus as well

A receiver or sender or client is not closed until the application calls close on it. The expectation is that the application will discard closed objects. In that case, there is no need to know if an object is open or closed. Every created object is open, until explicitly closed by client application. You should check your application why it is holding on to closed objects.

Thank you very much for the explanation !!
We were able to fulfill the requirement.


ToolbarAndroid doesn't seem to appear?

It seems the ToolbarAndroid component doesn't want to play right with me... Either that, or I'm doing something wrong here.
I've created a test app here https://rnplay.org/apps/CHOsPg
I can't seem to get the component to work, and a couple of other users on Reddit were having issues with it too.

You should set alignItems to stretch (which is also the default) on your container, or give your toolbar an explicit width. With alignItems set to center and no explicit width, the toolbar is given 0 implicit width.
In the future, can you please use Stack Overflow to ask questions and tag them with react-native? http://stackoverflow.com/questions/tagged/react-native
This helps us keep track of bugs that need to be fixed in Github issues. Thanks!

met the same problem ,it should be add to the doc

You need to assign both height and width to the toolbar otherwise it won't renders
This is how you need to do

    <ToolbarAndroid
            style={styles.toolbar}
            title="Movies"
            navIcon={require("../../ic_launcher.png")}
            onActionSelected={this.onActionSelected}
            titleColor= "000"
            actions = {[
              {title: "Log out", show: "never"}
            ]}
            />

 toolbar: {
   backgroundColor: '#2196F3',
   height: 56,
   alignSelf: 'stretch',
   textAlign: 'center',
 },

onActionSelected(position) {
  }

Result


Entities Unavailable after a few hours

Hi,
I configured my account, and everything works fine when the Integration starts (or is reloaded). But, after a while, all the metrics are gone (unavailable). It works again only if I Reload the integration.
I see in the Logs that I get this error message:
_**Logger: mytoyota
Source: /usr/local/lib/python3.9/site-packages/mytoyota/vehicle.py:161
First occurred: 06:21:39 (1 occurrences)
Last logged: 06:21:39
Your vehicle does not support Connected services (). You can find out if your vehicle is compatible by checking the manual that comes with your car.**_
It's strange because it always works when it's started, and fails after a while...
Btw, it's a super Intgeration! thanks a lot

Strange, i have personally had this happen sometimes, but never consistently. The API seems to be a bit flacky sometimes, it fails, without any obvious reason. The error you see are only generated if live data is not supported. Can you confirm that you have enabled Connected Services in the Toyota APP?

Hi, thanks for your answer. Yes I enabled the connected services.
Maybe it’s due to the instability of their API. A workaround would be that
the integration reloads automatically, regularly ; but I don’t know if
that’s possible…
Best regards
Le mar. 23 nov. 2021 à 18:43, Simon Hansen @.***> a
écrit :

Strange, i have personally had this happen sometimes, but never
consistently. The API seems to be a bit flacky sometimes, it fails, without
any obvious reason. The error you see are only generated if live data is
not supported. Can you confirm that you have enabled Connected Services in
the Toyota APP?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DurgNomis-drol/ha_toyota/issues/88#issuecomment-976921392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIUDCWUC3PZBZNVQQWEATVTUNPHETANCNFSM5ISYYQDA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Btw, it's a super Intgeration! thanks a lo

And thanks for the nice comment! This is what keeps me coding :smile:
No, it should reconnect after some time, I experience that it fails to connect, typically about midnight GMT, I believe it is a server issue, but mine always comes back after a short while.
It is not possible to reload the integration other then clicking the button on the integration page. This is a limitation in Home Assistant.
Can you enable more logging by adding this to configuration.yaml:
logger:
  default: info
  logs:
    custom_components.my_integration: debug
    mytoyota: debug

And then restart and post the log output AFTER it fails again. This will give me a lot more details of why it is failing. Sensitive data should be censored, but please double check before posting.

Hi,
I modified the configuration, I will post my anonymized log as soon as it disconnects 😄
Kind regards

Hi @DurgNomis-drol ,
Here are the 2 logs I found so far; hope it's what you expected. (I went to Configure/Logs). One of the errors occured more than 400 times, so I guess this is the most important. For the second one, it's recent, so I guess it's not directly the cause of the issue I have.
Thanks!
Regards.
`Logger: homeassistant
Source: custom_components/toyota/binary_sensor.py:346
Integration: Toyota Connected Services (documentation, issues)
First occurred: 23 November 2021, 19:46:27 (402 occurrences)
Last logged: 06:14:22
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 486, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 519, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 492, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 186, in state
return STATE_ON if self.is_on else STATE_OFF
File "/config/custom_components/toyota/binary_sensor.py", line 346, in is_on
return self.coordinator.data[self.index].hvac.front_defogger
AttributeError: 'Hvac' object has no attribute 'front_defogger'`
`Logger: custom_components.toyota
Source: helpers/update_coordinator.py:219
Integration: Toyota Connected Services (documentation, issues)
First occurred: 00:09:06 (3 occurrences)
Last logged: 06:11:16
Error fetching toyota data: Update canceled! Toyota's API was too slow to respond. Will try again later...`

Thanks, i believe i have found the issue. I just pushed an update to master. Can you please check it out to see if it fixes your issue and report back?
Another thing, my car does not support the this feature, so I not 100% sure that it reports back on when the defogger is on, can you double check for me that it reflects the actual status in the car? :smiley:

Thank you so much @DurgNomis-drol, I just downloaded the latest version, i will let you know.
Actually, for the Defogger, the MyT app only allows me to start or schedule them, but there is no status. And in HA, I see these 2 metrics as Unavailable, and I think I'm in the same limitation as you.
Cheers,
ben

Just to make sure, did you download the latest master or the latest version? I have not published a new version with this fix included, but the master branch of this repository contains this fix? They shouldn't show up as unavailable in HA if your car does not report anything for them.

Oh no actually, I used HACS/Download again, and yes, there was only the published version. How do I download the master? Do i download a ZIP and install the files directly in my host? (PI with Debian)

In HACS, click on the three dots and then click redownload, a pop-up should appear where you can choose a version, at the bottom of this, you can select master.

Oh Ahaah, I didn’t scroll down the first time 😂
Thanks!
Ben
Le mer. 24 nov. 2021 à 15:03, Simon Hansen @.***> a
écrit :

In HACS, click on the three dots and then click redownload, a pop-up
should appear where you can choose a version, at the bottom of this, you
can select master. 😃
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DurgNomis-drol/ha_toyota/issues/88#issuecomment-977907864,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIUDCWQUZKFUSGTNTJQC76TUNTWDHANCNFSM5ISYYQDA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

They shouldn't show up as unavailable in HA if your car does not report anything for them.
Now they display as on or off :-)

Let's see if all metrics stay available forever.
Cheers,
Ben

If not, please feel free to open a new issue if there is a problem with the defogger sensors :smiley:
Cheers,
Simon

Hi @DurgNomis-drol, it seems to work perfectly now! Because before, it was disconnecting earlier than this. And I get all metrics.
Thanks to you, I can alert myself when the EV Battery is full and I can unplug the charger 😂😂😂
Thanks a lot, you rock!!!

Just published a new version (12.6) that contains the fix for this issue


fix: Handle non json formatted errors.

Ref https://github.com/ipfs/go-ipfs/issues/1970

sweet! But @whyrusleeping this doesn't mean that we don't want all of the errors to be JSON :)

@diasdavid can you pull that into your files-api branch so I can use it in the registry please?

@Dignifiedquire sure! I was just looking surprised why the heck I was being unable to publish (registry-mirror was the reason :) )


[INTEL MKL] BF16/FP32 RandomUniform vectorization opt on CPU

This PR is trying to bring this reverted #39747 back.
It changed the Distribution result length from fixed length 4 to Eigen::internal::packet_traits<T>::size and do computation with Eigen::Tensor to use Eigen packet feature for vectorization.
Perf test cmd:
bazel run --distdir=./ --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=0 --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mavx512f --copt=-mavx512pf --copt=-mavx512cd --copt=-mavx512bw --copt=-mavx512dq --copt=-DENABLE_INTEL_MKL_BFLOAT16  -- //tensorflow/core/kernels:random_op_test --benchmarks=..

Before opt:
BM_cpu_RandomUniform_DT_BFLOAT16/1048576     424794       1666	 2469.91857M items/s
BM_cpu_RandomUniform_DT_BFLOAT16/2097152     667125        795	 3147.52320M items/s
BM_cpu_RandomUniform_DT_BFLOAT16/8388608    1877948        327	 4480.56133M items/s

After opt: improved by 1.3~1.4x
BM_cpu_RandomUniform_DT_BFLOAT16/1048576     326237       2019	 3215.74854M items/s
BM_cpu_RandomUniform_DT_BFLOAT16/2097152     458964       1457	 4572.45684M items/s
BM_cpu_RandomUniform_DT_BFLOAT16/8388608    1396453        422	 6021.31872M items/s

Signed-off-by: Lu Teng<EMAIL_ADDRESS>

@agramesh1 here's the RandomUniform vectorization PR, please help to communicate to verify this PR since it may cause some internal errors.

@penpornk  Can you please review this PR ? Thanks!

@Zantares Can you please resolve conflicts? Thanks!

Done.

@tatianashp Can you please review this PR ? Thanks!

I am not the right person to review this.
@penpornk Can you help with this PR?

@penpornk  Can you please review this PR ? Thanks!

@penpornk Can you please review this PR ? Thanks!

@penpornk Can you please review this PR ? Thanks!

@penpornk Can you please review this PR ? Thanks!

@penpornk Can you please review this PR ? Thank you!

@penpornk Can you please review this PR ? Thank you!

Hi @Zantares Can you please check @cantonios's comments and keep us posted ? Thank you!

Hi @Zantares Can you please check @cantonios's comments and keep us posted ? Thank you!

Thanks for the notification, I will address the code in recent days.

There's no direct AND operation for Eigen Tensor, maybe need to add a new Eigen functor and need more time.
Current code looks like below (still can't build):
+  typedef Eigen::TensorMap<
+      Eigen::Tensor<uint16, 1, Eigen::RowMajor, Eigen::DenseIndex>,
+      Eigen::Aligned>
+      Uint16Tensor;
+  auto tensor_gen_array = Uint16Tensor(&gen_array[0], Length);
+  auto tensor_result_uint16 = Uint16Tensor(&(*result)[0], Length);
+  const uint16 exp = static_cast<uint16>(127);
+  tensor_result_uint16 = (tensor_gen_array & 0x7fu) | (exp << 7);
+
+  typedef Eigen::TensorMap<
+      Eigen::Tensor<bfloat16, 1, Eigen::RowMajor, Eigen::DenseIndex>,
+      Eigen::Aligned>
+      Bf16Tensor;
+  auto tensor_result = Bf16Tensor(&(*result)[0], Length);
+
+  tensor_result = tensor_result - bfloat16(1.0);

There's no direct AND operation for Eigen Tensor, maybe need to add a new Eigen functor and need more time. Current code looks like below (still can't build):
+  typedef Eigen::TensorMap<
+      Eigen::Tensor<uint16, 1, Eigen::RowMajor, Eigen::DenseIndex>,
+      Eigen::Aligned>
+      Uint16Tensor;
+  auto tensor_gen_array = Uint16Tensor(&gen_array[0], Length);
+  auto tensor_result_uint16 = Uint16Tensor(&(*result)[0], Length);
+  const uint16 exp = static_cast<uint16>(127);
+  tensor_result_uint16 = (tensor_gen_array & 0x7fu) | (exp << 7);
+
+  typedef Eigen::TensorMap<
+      Eigen::Tensor<bfloat16, 1, Eigen::RowMajor, Eigen::DenseIndex>,
+      Eigen::Aligned>
+      Bf16Tensor;
+  auto tensor_result = Bf16Tensor(&(*result)[0], Length);
+
+  tensor_result = tensor_result - bfloat16(1.0);

You can use Eigen's packet operations directly.  For that though, the random bits need to be stored as the float-type, which you can do via Eigen::numext::bit_cast.
This seems to work: https://godbolt.org/z/5rKr9jEK4

Hi @Zantares Can you please check @cantonios's comments and keep us posted ? Thank you!

May I know what current build option is for TensorFlow? Explicit vectorization won't help performance if TF is already built with -O3, only readability is improved.

I believe it's O3 in opt mode.
If you're going to rely on auto-vectorization, then you don't need Eigen here at all.

May I know what current build option is for TensorFlow? Explicit vectorization won't help performance if TF is already built with -O3, only readability is improved.

I believe it's O3 in opt mode.
If you're going to rely on auto-vectorization, then you don't need Eigen here at all.

The auto-vectorization works well for normal scalar bit operation, but not sure whether it works for BF16 since BF16 conversion is defined & overloading in Eigen with condition branch. Current solution is to call BF16 Eigen packet function to vectorize the conversion explicitly: https://gitlab.com/libeigen/eigen/-/blob/3.4/Eigen/src/Core/arch/AVX512/PacketMath.h#L1945.
Whatever, it‘s necessary to extend the number of generated elements from 4 to 16, and I will check whether the BF16 operation  can be auto vectorized without Eigen first.

Summary after some tests:

There's no -O3 if only enabled -c opt, referred to bazel doc:  https://bazel.build/docs/user-manual. Need to vectorize the conversion functor if TF has no plan to add -O3 in near future
BF16 Eigen expression is always needed here no matter -O3 is enabled or not

Based on above, @cantonios is it possible to merge current implementation first, and do another PR to vectorize conversion functor if TF has no plan for -O3? OFC, the another PR is not needed if TF already have enabled -O3 beyond -c opt

Hi @cantonios Any update on this PR? Please. Thank you!

Based on above, @cantonios is it possible to merge current implementation first, and do another PR to vectorize conversion functor if TF has no plan for -O3?

I still think it's odd we're only vectorizing the -1 part.  Didn't I give an example above in the godbolt link on how to vectorize everything generally?

Hi @Zantares Can you please check @cantonios's comments and keep us posted ? Thank you!

Hi @Zantares Any update on this PR? Please. Thank you!

@yimeisun123 can you check the review comments?

Hi @yimeisun123 Any update on this PR? Please. Thank you!

Hi @yimeisun123 Any update on this PR? Please. Thank you!

Hi @Zantares  Can you please rebase your branch and resolve the conflicts? Thank you!

Hi @Zantares  Any update on this PR? Please. Thank you!

Hi @yimeisun123 do you still need this PR? We have implemented similar optimization inside Intel-Extension-for-TensorFlow.
Hi @gbaned , sorry for the late reply, I just wonder if @yimeisun123 has any concern. You may close this PR if still no other new feedback, since we already have this optimization in extesion.

Hi @yimeisun123 do you still need this PR? We have implemented similar optimization inside Intel-Extension-for-TensorFlow.
Hi @gbaned , sorry for the late reply, I just wonder if @yimeisun123 has any concern. You may close this PR if still no other new feedback, since we already have this optimization in extesion.

Hi @Zantares As per confirmation from the above comment, closing this PR. Thank you for your contribution!


When retrieving movie details, the "origin_country" field is missing.

test api: https://developer.themoviedb.org/reference/movie-details

@BenjaminSong90 The origin_country is in the production company object. There is no field origin_country in the movie details.

this is movie detail info, the origin_country is in the detail
{
"adult": false,
"backdrop_path": "/cq9N64ucEtfIc3eMxNr1VzY9LH9.jpg",
"belongs_to_collection": null,
"budget": 40000000,
"genres": [
{
"id": 18,
"name": "Drama"
}
],
"homepage": "https://www.sonypictures.com/movies/thesocialnetwork",
"id": 37799,
"imdb_id": "tt1285016",
"origin_country": [
"US"
],
"original_language": "en",
"original_title": "The Social Network",
"overview": "In 2003, Harvard undergrad and computer genius Mark Zuckerberg begins work on a new concept that eventually turns into the global social network known as Facebook. Six years later, he is one of the youngest billionaires ever, but Zuckerberg finds that his unprecedented success leads to both personal and legal complications when he ends up on the receiving end of two lawsuits, one involving his former friend.",
"popularity": 47.351,
"poster_path": "/n0ybibhJtQ5icDqTp8eRytcIHJx.jpg",
"production_companies": [
{
"id": 5,
"logo_path": "/71BqEFAF4V3qjjMPCpLuyJFB9A.png",
"name": "Columbia Pictures",
"origin_country": "US"
},
{
"id": 7295,
"logo_path": "/62E1B91PxZw8q4KNkge5Qemo7EM.png",
"name": "Relativity Media",
"origin_country": "US"
},
{
"id": 258,
"logo_path": null,
"name": "Scott Rudin Productions",
"origin_country": "US"
},
{
"id": 11370,
"logo_path": null,
"name": "Michael De Luca Productions",
"origin_country": "US"
},
{
"id": 7626,
"logo_path": "/4839MGss4pPAalhqqYH1AD1CnEj.png",
"name": "Trigger Street Productions",
"origin_country": "US"
}
],
"production_countries": [
{
"iso_3166_1": "US",
"name": "United States of America"
}
],
"release_date": "2010-10-01",
"revenue": 224920315,
"runtime": 121,
"spoken_languages": [
{
"english_name": "English",
"iso_639_1": "en",
"name": "English"
}
],
"status": "Released",
"tagline": "You don't get to 500 million friends without making a few enemies.",
"title": "The Social Network",
"video": false,
"vote_average": 7.368,
"vote_count": 11825
}

Thanks. I will add the field

Related to #151


feat: list and pair

Can't see related tests?

I 'd like to add test later... as me can curry are both doing a big refactor, we want to reduce conflicts.

Seems some impls are not considered right, closed.


pastebin run uzghlbnc, no longer works, and the case sensitive link is not available on your wiki.

pastebin run uzghlbnc, no longer works, and the case sensitive link is not available on your wiki.
Up until very recently all the links you published in the wiki etc  were the full case sensitive version. They have all just changed to lower case which doesn't work.
For anyone else reading the case sensitive version is pastebin run UzGHLbNC

This is already fixed in the readme.


Pixel manipulation

Is pixel manipulation implemented yet? The sample refers to the Mozilla documentation. However, calling
await ctx.CreateImageDataAsync(512, 512);
just freezes the browser. I can't find any way to actually manipulate the pixel data either.

Hi @jahnotto,
the pixel manipulation API is implemented.
However, createImageData is pretty much useless in the C# context, because you only get a reference to it back, but not the actual object. So you would need to use JS to modify the image data yourself. There are just situations where it is better to stick to JS than to try to move things to C#. The idea of this library is to implement the canvas API, not e.g. the ImageData API and all the other APIs of JS.
Why it freezes for you I can't say, because it never did that for me in testing. I'd need to see the browser logs to understand what's happening.
Hope that helps.
Stefan

Thanks for the super quick reply! I'll try to do this specific part in JS instead.


Updates CreateDragonLib-Fabric 1.19.2 for Create 0.5.1f

Hi! I figured I would take a stab at updating the fabric 1.19.2 branch of Create Enchantment Industry for patch F. Updating this library seems to be a prerequisite for that. Let me know if I need to change anything!

Let's gooo. How's it looking so far?

anyone have a compiled jar of this?


(GH-513) Add keybinding for navigating sources

Fix 513 by adding keyboard bindings ctrl+1..9 to switch between respective source indexes.

@huffSamuel just wanted to say that I am not ignoring this PR, just been busy getting a few other things lined up, before I will be able to look at this properly.  Thanks for doing this!

@huffSamuel your changes have been merged, thanks for your contribution 👍


Delete UToronto A records?

We have several A records that point to U Toronto infrastructure from our 2i2c.org URL:

What shall we do with them? I think that we want to use 2i2c.cloud for the actual hub services. cc @yuvipanda in case he knows more about how / why these are set up.

Ah, you are correct re: 2i2c.cloud. I've removed these A records.


fix: do not use the deprecated JLL do form

The do-form got fully deprecated in https://github.com/JuliaPackaging/JLLWrappers.jl/commit/112e560b41c77f5ccd1f230dc1a9f271ea24d967. This is actually causing the live tests to fail, because it's now printing an extra warning that the tests are not accounting for: https://github.com/JuliaComputing/JuliaHub.jl/actions/runs/5883816382/job/15957283336#step:7:121

Codecov Report

Merging #18 (827c380) into main (2b37dc4) will decrease coverage by 18.83%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             main      #18       +/-   ##
===========================================
- Coverage   40.54%   21.72%   -18.83%
===========================================
  Files          16       16
  Lines        2163     2159        -4
===========================================
- Hits          877      469      -408
- Misses       1286     1690      +404

Files Changed
Coverage Δ

src/datasets.jl
44.86% <0.00%> (-28.32%)
:arrow_down:

... and 6 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Passing by reference list of attributes to be validated to beforeValidate function

I am not sure whether this feature was requested before or not, so I have decided to create this issue. I am not sure that is would be logically correct, but I think it can be very comfortable for developers. So I want to suggest to pass the list of attributes that are to be validated, to beforeValidate function, so it was easier to skip attributes when taking the list by reference (looping foreach and checking values for some statements and unset attribute if not necessary for validating). I know all this actions are possible to manage with scenarios function, but we do not have list of attributes to be validated, inside that function.

What's your use case for it? Why not using scenarios?

I have tens of attributes in my table and before validation, for example I want to do like this:
    public function beforeValidate(&$attributes)
    {
        foreach($attributes as $attribute)
        {
                if($attribute == 'some_attr' && $attributes[$attribute] == 'some_exception_value')
                    unset($attributes['attribute_c']);
               // other actions are here
        return true;
    }

However I dont want to create n different scenarios for n cases. Also I want to have list of attributes for validation on hands.

You can probably use validation filter to achieve it.

Your example problem can be solved using conditional validation: http://www.yiiframework.com/doc-2.0/guide-input-validation.html#conditional-validation
We will not support the proposed usage because it won't work for the client-side validation.


Shorten and fix separate-draft-pr-button

Fixes #3914
Tested in Chrome, but I did not have the problem in the first place.
@mischnic @MrChocolatine can you test this?
# git clone repo
npm install
npm run build
# manually load the directory "distribution" in Chrome

@busches do you see any issues on GHE?

I was struggling installing the dependencies of the project, see #3923 .

After using Node.js v15, I tested your PR locally and it seems to work.

With the original extension

When I disable the original extension and enable the "new extension" coming from your build

I was struggling installing the dependencies of the project, see #3923 .

After using Node.js v15, I tested your PR locally and it seems to work.

With the original extension

When I disable the original extension and enable the "new extension" coming from your build

Thank you for checking, pan au chocolate!
@yakov116 let’s wait for the automatic release on Monday

Thank you for checking, pan au chocolate!
@yakov116 let’s wait for the automatic release on Monday

@fregante bit late, but this works for on GHE :)


Edit a block from clipboard issue

Perhaps this have been already set because i'm working with the candidate 1 from concrete5.org.
Create a block into a layout, add it to clipboard, paste it into the second columns, edit, save and :
An exception occurred while executing 'insert into CollectionVersionBlocks (cID, cvID, bID, arHandle,
cbDisplayOrder, isOriginal, cbOverrideAreaPermissions, cbOverrideBlockTypeCacheSettings,cbOverrideBlockTypeContainerSettings, cbEnableBlockContainer)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["252", "3", "2896", "Main - 1 : 170", 1, 1, 0, 0, 0, null]:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cbEnableBlockContainer' cannot be null

See #2865


Improved frontend parser and introduced Sage-Lisp!

This PR implements a new parser and lexer for sage, and gets rid of the pest dependency. The new parser and lexer are implemented with LALRPOP and Logos.
With the new parser, we can now integrate code-modifying lisp expressions into the code.

Replaced with #77 instead!


[Lower end device] Amount (CELO) & subtotal fields are not shown on the “ Buy CELO” screen when the user taps button from CELO tab.

Frequency: 100%
Repro App version:  V1.0.0(10)
Repro on device: Samsung Galaxy Grand Prime(5.1.1),Samsung galaxy S4(4.4.2)
Does not Repro: Google Pixel XL (8.1) ,Samsung Galaxy A5(7.0)
Repro Steps:

Launch the Application and signup with test account
Tap on hamburger menu
Tap on celo
Tap on buy button

Current Behavior: User is not able to see the Amount field & subtotal field on buy celo page
Expected Behavior: Buy celo page should fit to screen when user tap on buy button
Investigation: Amount and Subtotal fields are shown after tapping on Done button from Keypad.
Impact: Users may get confused by seeing only the Review button.
Attachment: BuyCeloNotfitToScreen.mov

I have verified this issue with Valora app build v1.0.0(11) and found that issue is also repro on Add and withdraw screen
Attachment: amountcelo.MOV

The buttons are hidden until the Geth is connected. Notice how "Connecting..." is displayed at the top of your screen

@tarikbellamine Issue is repro only for low end devices can you please confirm is it still expected
Repro on device: Samsung Galaxy Grand Prime(5.1.1),Samsung galaxy S4(4.4.2)
Does not Repro: Google Pixel XL (8.1) ,Samsung Galaxy A5(7.0)

Yes, lower end devices will typically take longer to connect to Geth. This is expected.

Ok thanks @tarikbellamine for the confirmation.


Dria integration

[!WARNING]
DO NOT MERGE THIS PR, IT IS OPENED TO MERELY TRACK CHANGES

[x] Write tool
[x] Add Integration test
[x] Add to create-entrypoints.js
[x] Add example
[x] Add MDX docs

Run the tests with:
cd ./libs/langchain-community
yarn test:single ./src/tools/tests/dria.int.test.ts

closing this old pr


Can't run any of the kahoot-hack's

keegankuhn@Keegans-Laptop:~/git/kahoot-hack$ go run kahoot-html/main.go
kahoot-html/main.go:10:2: cannot find package "github.com/unixpickle/kahoot-hack/kahoot" in any of:
	/usr/local/go/src/github.com/unixpickle/kahoot-hack/kahoot (from $GOROOT)
	/Users/keegankuhn/go/src/github.com/unixpickle/kahoot-hack/kahoot (from $GOPATH)
keegankuhn@Keegans-Laptop:~/git/kahoot-hack$

This is what shows up when I run go run kahoot-html/main.go .

Did you clone the repo with git clone?
Because you are supposed to used "go get github.com/unixpickle/kahoot-hack", and make sure you have your GOPATH set.

I used git clone... Will try command.

go get github.com/unixpickle/kahoot-hack appears to work!


Embed operator docs.

What this PR does / why we need it:
This changes the build target to grab a copy of operator docs from GitHub and embed it into the navigation bar.
It's not getting updated in real time, but I think is still better than having to manually copy-paste individual docs. Hopefully it will allow us to survive until @gerred executes his grand plan of moving to GatsbyJS.
Which issue(s) this PR fixes:

Fixes #152
Special notes for your reviewer:
The spark look ugly but this will soon be fixed by https://github.com/kudobuilder/operators/pull/224

Awesome, thank you @porridge!
It would be nice to ensure a meaningful order of the included pages. E.g. for Cassandra docs, Installing … is the 4th entry in the sidebar since the pages are ordered alphabetically.
Also, the Spark docs pages don't have (h1) titles. Can you check w/ @akirillov or @alembiewski as to whether we can adjust them to have proper # title markdown? I believe frontmatter would also work; viewpress would pick up this if I'm not mistaken:
---
title: My Title
---
…

Also, the Spark docs pages don't have (h1) titles.

Plan for this was already mentioned in last paragraph in https://github.com/kudobuilder/kudo.dev/pull/195#issue-373063463

It would be nice to ensure a meaningful order of the included pages.

Hm, I can think of a few solutions for this, none of them great.
Do we care about the relative order of the docs other than putting the one about installation first, @meichstedt ?

Do we care about the relative order of the docs other than putting the one about installation first, @meichstedt ?

@porridge the best I can think of is using a frontmatter weight like HUGO uses it. That doesn't affect the filenames, is just metadata, but it's not straightforward to use in bash :)
For now, it might be fine to at least have a common approach at naming: if all installation guides are named Installing KUDO X then it should be easy enough to find that guide.
Out of scope of this PR: we should think about a guideline for operators docs going forwards – like, somehow being a bit ore explicit about which docs are (1) Installation and usage (2) Configuration (3) Troubleshooting (4) Other, like Versions, Release Notes etc. That could be done by naming convention (How to …) or …?

Oh and one thing I forgot to mention: It would be nice to replace all https://kudo.dev/<relative-link> with <relative-link>. VuePress adds a target="_blank" to all fully qualified links 😬

@meichstedt the reason I asked specifically about Installation is that I had this hack in mind which I now implemented.
I guess this is good enough for now (until the aforementioned migration to GatsbyJS happens in a few weeks) but if you strongly feel we need a more robust way to sort the navbar, I can take an hour or so to rewrite this script in Python and have it take frontmatter data for sorting.
Please let me know what you think.

This PR removed docs that weren't added later to Kafka
The detailed upgrade runbook or how to debug kafka runbook

FTR, @zmalik was kind enough to fix the breakage I did with https://github.com/kudobuilder/operators/pull/235


Fix rpath on MacOS and Linux

Attempt to fix rpath on MacOS and Linux.
Closes #7

Seems still not work on MacOS. Not sure why set(CMAKE_BUILD_RPATH "@executable_path") does not work.

@raghavmecheri Can you try this branch? The CI keeps running tests and I am not sure why.

@raghavmecheri Can you try this branch? The CI keeps running tests and I am not sure why.

Sure -- I'll wait for this build to complete, then give it a shot

@raghavmecheri Can you try this branch? The CI keeps running tests and I am not sure why.

Sure -- I'll wait for this build to complete, then give it a shot

Can you do a quick test: compile the binary files, rename the repo folder to something random, and run the tests?

@raghavmecheri Can you try this branch? The CI keeps running tests and I am not sure why.

Sure -- I'll wait for this build to complete, then give it a shot

Can you do a quick test: compile the binary files, rename the repo folder to something random, and run the tests?

Tests run and all pass, both before and after renaming the repo folder 👍

@arition I'm not sure why GA failed -- it looks like the tests passed
https://github.com/arition/torch-js/pull/11/checks?check_run_id=1351215484

@arition I'm not sure why GA failed -- it looks like the tests passed
https://github.com/arition/torch-js/pull/11/checks?check_run_id=1351215484

I think it is a CI bug. I reran a previously passed job on master, and the macos job became failed. Maybe it is safe to ignore the macos CI for now?

@arition I'm not sure why GA failed -- it looks like the tests passed
https://github.com/arition/torch-js/pull/11/checks?check_run_id=1351215484

I think it is a CI bug. I reran a previously passed job on master, and the macos job became failed. Maybe it is safe to ignore the macos CI for now?

It looks like jest just isn't exiting -- could you try running it with the --forceExit flag, and see if that does anything?

@arition I'm not sure why GA failed -- it looks like the tests passed
https://github.com/arition/torch-js/pull/11/checks?check_run_id=1351215484

I think it is a CI bug. I reran a previously passed job on master, and the macos job became failed. Maybe it is safe to ignore the macos CI for now?

It looks like jest just isn't exiting -- could you try running it with the --forceExit flag, and see if that does anything?

The --forceExit trick works.

@arition I'm not sure why GA failed -- it looks like the tests passed
https://github.com/arition/torch-js/pull/11/checks?check_run_id=1351215484

I think it is a CI bug. I reran a previously passed job on master, and the macos job became failed. Maybe it is safe to ignore the macos CI for now?

It looks like jest just isn't exiting -- could you try running it with the --forceExit flag, and see if that does anything?

The --forceExit trick works.

cool -- could you please merge this then? I'll look into why jest isn't auto-exiting late this week.


[subnet] Automatic FreeSpace Display

Implements and closes #12

@nemesisdesign I have also added the visual display for the subnet in this PR as well, the functionality is done, I am improving the UI for now.


Better error handling

[ ] Custom error type (ErrorResponse but better)

[ ] covers Rust errors and "Unhandled Lua Error" (which can be converted into more specific errors, such as "Failed creating service")
[ ] contains error code (like HIVE_UNHANDLED_LUA_ERROR)
[ ] can be converted into both human- and machine-readable formats

[ ] Call Lua code with pcall
[ ] Remove throw and replace it with error; error can be called with a response table and can have the same effect as previous throw - response in advance and can be chained using or

Uniform error handling in both Rust and Lua can be achieved like so.


Add sound to Orisa halt

Created by: MaxwellJung

moved from ow1_emulator_backup#689

mentioned in merge request ow1_emulator_backup!368


Protocol 1

How can I connect to protocol 1

Lol

Protocol 1 doesn't exist

da fk

@Faris90 The one that doesn't support viruses and uses float64 for x, y and size? Watch out for your server bandwidth and players saying "WHY CAN'T I EAT GREEN CELLS???" So I don't think there are any good reasons to support it.

It exists in agarserv

:p

You all have no c

@Faris90 Agarserv uses protocol 5.

^

^

To be fair I don't understand why you would want to even connect to it. I'd just stick with the normal one to be honest.

Wanna hear a joke? agar.bio
didn't get it? it still uses protocol 1 xd

@SuperOP535 I checked, it's protocol 4. Didn't understand the joke.

No it is 1, I tried to connect to mogar-e with it and it said "protocol 1 assumed as 4" so?

protocol 1 assumed as 4
assumed as 4

yes, it says 1

@SuperOP535 That's a bug with some clients that causes the protocol to show up as 1 even if it's a different one.

ok smart guy thanks for proving me wrong 😢

Close

@Agarian It's already closed.

k

rekt

@Agarian Or did you mean to have a collab close it so that it doesn't suddenly go open if Faris90 presses the wrong button by mistake?

I don't know where Makan has been. Probably school since he has a life and I don't. FeelsBadMan

@ZfsrGhS953 lol, no

But answer me this: Do you happen to know what arras.io was? (If you don't) it's a diep.io private server pretty much. Though it has a major flaw, and that is how inefficient it is. You can find the code here. But what I really want to ask is could you find out just why it's inefficient, and how it would be fixed? You'd be helping a decently large discord community.


Update config/application.rb instructions for Rails 5

There's no more concept of a config block parameter in the config/application.rb file, meaning the instructions in the README aren't applicable.

Did you mean to close this @kellysutton?

Yep. Jumped the gun a bit. Wasn't looking in the config/environments/* files, which do have the config blocks.


fbe up

@rultor release, tag is 0.0.33

@rultor release, tag is 0.0.33

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.0.33

@yegor256 Done! FYI, the full log is here (took me 10min)


Add GeneChain network support

Fixes # .
Changes proposed in this pull request:

Add GeneChain network logo
Add GeneChain network RPC details
Add GeneChain network contract address

The rpc node is an archive node.


Tensorboard does not support Python 3

tensorboard.py and tensorboard_handler.py are still using BaseHTTPServer which was move to http.server in Python 3. There are some other changes with StringIO and urlparse that were quickly resolved with 2to3.
Strings also need to be encoded for the wfile.writes in tensorboard_handler.py.
Everything seemed to work after I made these changes.

Thanks -- We'll try to update tensorboard to be python 3 compatible -- will probably be in the next binary release.

nice

To dankolbman,
I ran into the same issue. Would you like to share your modified tensorboard.py and tensorboard_handler.py for working with python3? Thanks in advance!

Yeah sure, here are the diffs. 2to3 will take care of everything except for the encoding issue on line 171 of tensorboard_handler.py. Just replace it with self.wfile.write(output.encode('utf-8'))
tensorboard.py:
-import http.server
+import BaseHTTPServer
 import functools
 import os
 import socket
-import socketserver
+import SocketServer

@@ -107,8 +107,8 @@ def ParseEventFilesFlag(flag_value):
-class ThreadedHTTPServer(socketserver.ThreadingMixIn,
-                         http.server.HTTPServer):
+class ThreadedHTTPServer(SocketServer.ThreadingMixIn,
+                         BaseHTTPServer.HTTPServer):

tensorboard_handler.py:
-import http.server
+import BaseHTTPServer
-import io
-import urllib.parse
+import StringIO
+import urlparse

@@ -76,7 +76,7 @@ class _OutputFormat(object):
-class TensorboardHandler(http.server.BaseHTTPRequestHandler):
+class TensorboardHandler(BaseHTTPServer.BaseHTTPRequestHandler):
   """Handler class for use with BaseHTTPServer.HTTPServer.

@@ -85,7 +85,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
   def __init__(self, multiplexer, *args):
     self._multiplexer = multiplexer
-    http.server.BaseHTTPRequestHandler.__init__(self, *args)
+    BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args)

@@ -140,7 +140,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
-    out = io.StringIO()
+    out = StringIO.StringIO()
     f = gzip.GzipFile(fileobj=out, mode='w')

@@ -168,7 +168,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
     self.send_header('Content-Type', 'application/json')
     self.send_header('Content-Length', len(output))
     self.end_headers()
-    self.wfile.write(output.encode('utf-8'))
+    self.wfile.write(output)

@@ -195,7 +195,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
     values = self._multiplexer.Scalars(run, tag)

     if query_params.get('format') == _OutputFormat.CSV:
-      string_io = io.StringIO()
+      string_io = StringIO.StringIO()
       writer = csv.writer(string_io)

@@ -234,7 +234,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
     run = query_params.get('run')
     compressed_histograms = self._multiplexer.CompressedHistograms(run, tag)
     if query_params.get('format') == _OutputFormat.CSV:
-      string_io = io.StringIO()
+      string_io = StringIO.StringIO()
       writer = csv.writer(string_io)

@@ -242,7 +242,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
       headers = ['Wall time', 'Step']
       if compressed_histograms:
         bucket_count = len(compressed_histograms[0].compressed_histogram_values)
-        for i in range(bucket_count):
+        for i in xrange(bucket_count):
           headers += ['Edge %d basis points' % i, 'Edge %d value' % i]
       writer.writerow(headers)

@@ -366,7 +366,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
   def do_GET(self):  # pylint: disable=invalid-name
     """Handler for all get requests."""
-    parsed_url = urllib.parse.urlparse(self.path)
+    parsed_url = urlparse.urlparse(self.path)

@@ -386,7 +386,7 @@ class TensorboardHandler(http.server.BaseHTTPRequestHandler):
     if clean_path in handlers:
-      query_params = urllib.parse.parse_qs(parsed_url.query)
+      query_params = urlparse.parse_qs(parsed_url.query)
       # parse_qs returns a list of values for each key; we're only interested in

Thanks! The updated script works. My 2to3 did not do a good job as this.

Finally Tensorboard worked with python3 but now the issue is that the graph failed to be visual. I tried to visualize it on chrome.Can somebody please help?
The error is
Graph Visualization failed:Error:Failure Parsing graph definition

I run into the same error with python3
Graph Visualization failed:Error:Failure Parsing graph definition

I ran into graph visualization errors as well. The fix is to change f.write(content) to f.write(content.encode('utf-8')) in _send_gzip_response

@dankolbman , will you consider making a pull request with your diffs?

Unfortunately, the changes here are just a hack and break compatability with python2. Some more work needs to be done to work with both python2 and 3.

To nikitakit,
i included your fix to the fix suggested by dankolbman but i still have the same error.
Type Error: string argument expected,got 'bytes'
If any other ideas please help!

You probably have to replace StringIO with BytesIO somewhere. I've seen
this kind of error before here
http://stackoverflow.com/questions/34416702/tensorboard-graph-visualiyation-error-using-python-3/34459035#34459035.
Is that the same error you're getting?
On Mon, Jan 4, 2016 at 5:57 AM kibtes<EMAIL_ADDRESS>wrote:

To nikitakit,
i included your fix to the fix suggested by dankolbman but i still have
the same error.
Type Error: string argument expected,got 'bytes'
If any other ideas please help!
—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/470#issuecomment-168683037
.

That's right, _send_gzip_response should use BytesIO, not StringIO. Sorry, I didn't run a full diff and missed that.
-    out = StringIO.StringIO()
+    out = io.BytesIO()
     f = gzip.GzipFile(fileobj=out, mode='w')
-    f.write(content)
+    f.write(content.encode('utf-8'))

I fix all the bugs mentioned above and there's no error on the server side now. However, besides top bar and side column, there's only "Main Graph" two words on the graph page. Any ideas please?

ps. what I'm doing is just import the image recognition model (google inception v3) and summary write the graph def to file trying to see how does the model look like. Thanks...

Are you using chrome?
I get that blank page in both firefox and safari, but chrome works. Not sure if this is because of something else missing regarding python3, or just a tensorboard bug.

@martinwicke
yes it is the same error. I just tried to fix with the suggestion posted by @nikitakit and i have error.
The Error:
Exception happened during processing of request from ('<IP_ADDRESS>', 62162)
Traceback (most recent call last):
File "/usr/lib/python3.4/socketserver.py", line 617, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.4/socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.4/site-packages/tensorflow/tensorboard/tensorboard_handler.py", line 86, in init
http.server.BaseHTTPRequestHandler.init(self,*args)#BaseHTTPServer.BaseHTTPRequestHandler.init(self, *args)
File "/usr/lib/python3.4/socketserver.py", line 673, in init
self.handle()
File "/usr/lib/python3.4/http/server.py", line 398, in handle
self.handle_one_request()
File "/usr/lib/python3.4/http/server.py", line 386, in handle_one_request
method()
File "/usr/lib/python3.4/site-packages/tensorflow/tensorboard/tensorboard_handler.py", line 382, in do_GET
handlersclean_path
File "/usr/lib/python3.4/site-packages/tensorflow/tensorboard/tensorboard_handler.py", line 210, in _serve_graph
self._send_gzip_response(graph_pbtxt, 'text/plain')
File "/usr/lib/python3.4/site-packages/tensorflow/tensorboard/tensorboard_handler.py", line 136, in _send_gzip_response
f = gzip.GzipFile(fileobj=out, mode='w')
File "/usr/lib/python3.4/gzip.py", line 220, in init
self._write_gzip_header()
File "/usr/lib/python3.4/gzip.py", line 267, in _write_gzip_header
self.fileobj.write(chr(flags.encode('latin-1')))
AttributeError: 'int' object has no attribute 'encode'
what do I do?

@kibtes
The erroneous line in the traceback seems suspect. On my computer, it is self.fileobj.write(chr(flags).encode('latin-1')) (note the different placement of quotes). And this is inside the Python installation! Did you manually modify that file, by any chance?

@nikitakit
Thanks. The fix works. I guess i had manually modified it.

@nikitakit, yes I'm using Chromium 47.0

I updated the files in the binary release (pretty much everything that was discussed in this issue) and it works. I then tried to fix the current master by doing the same, but now no plots or graphs are shown (instead, it shows the usual messages for when the logs do not have any useful info to be shown). The only thing I've seen that seems wrong in the server logs are these messages:
WARNING:tensorflow:IOError [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/TAG' on path /usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/TAG
WARNING:tensorflow:Unable to read TensorBoard tag

(note: Python is 2.7 above because I was testing if the fixes were portable)
Any ideas on what could be going on?

I have just submitted a PR fixing this for the master branch: #749. The same fixes can be applied to 0.6.0, and I could submit a similar PR to fix those if there's interest (I don't know if the 0.6.0 binaries receive updates or if we have to wait for the next release).

Thanks for the PR! Since it's merged now, I'm going to close this issue.


Add image export function to viz classes

A common data science workflow is to include a static image version of a visual for sharing or screen shot creating.
This could be added as a saveImage() HTML button on a viz class object that downloads the current map viewport as a PNG, or it could be a viz.toImage() python function that outputs a PNG of the viz at the stated zoom, center, pitch, and bearing.

Adding a help-wanted label here - I'd love to get this feature into a 1.0 release to allow distribution of Notebooks with lightweight static visualizations

@akacarlyann the Mapbox Static API would work for small data use cases, but not large ones.  The good news is that rendering an image from a gl context (which is the rendered Mapboxgl map) is pretty straightforward - for this use case, if we're running in Jupyter I'm envisioning just a button you can push to save the rendered map to a JPEG or PNG file.  Supporting a headless python function to render the map would be the next step, which is a fair bit more work.


bun cannot import zx?

I was curious if bun can just import zx. Was this tried or did you create this to get the same API as zx?

The latter but I think it should work with zx as long as there's no native module zx is using that Bun doesn't support.