When a custom IOMGR is used, fork handles must be skipped

The current version of master does not skip the fork handles if the iomgr does not match with the one provided by default by the gRPC library [1]
Since current code is actually warning that any iomgr that is not poll and nor epoll1 is not currently supported, what I would expect is having the fork handles skipped.
This is creating some friction with the addition of the new  experimental Aio module [2] which uses its own fork handles [3] based on the following rules:

Timer background threads are stopped since they are not used
when the Asyncio custom iomgr is used.
Executor thread background is disabled, all callbacks are executed
within the same thread used by the Asyncio loop.
Any forked process is responsible for starting the gRPC
library, Aio module guarantees that the gRPC is gracefully stopped before returning the
control back to the forked process.

Suggestions for solving the issue
There are at least two different ways for solving that issue, by:

Having the core library skipping the fork handles if the iomgr can not be matched with the supported ones
Promoting the Fork::Enable [4] as a first citizen function, providing the interface for the implementation for disabling the fork handles in the core library.

[1] https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/fork_posix.cc#L68
[2] https://github.com/grpc/grpc/pull/19960
[3] https://github.com/grpc/grpc/pull/19960/files#diff-0fe140df36d45de59f70c52194cc8d6aR70
[4] https://github.com/grpc/grpc/blob/master/src/core/lib/gprpp/fork.h#L88

@guantaol WDYT?

Since the issue is related to Python asyncio, assign it to Lidi for triage.

@pfreixes To me, the first solution is more neat. The core should handle the error correctly, instead of just warning users.

We still want this.

Since we're moving away from the iomgr APIs, this doesn't seem like something we should be putting effort into.

Yeps that can be closed, and anything related to the custom IOMGR


[BUG] Can't drag if background (backdrop) is scrollable (Chrome)

Describe the bug
When you open Panel, if background is scrollable, you can scroll through background but can't drag panel at all (works on Safari not on Chrome). Sometimes, when you drag you are dragging both Panel and background (try on code example with n in 13)
Expected behavior
When panel is opened, backdrop or background should be completely disabled. No touch events or scroll events should be allowed.
Screenshots
Code
Demo
Desktop (please complete the following information):

OS: Mac Big Sur
Browser Chrome
Version Version 87.0.4280.88

Additional context
If background is scrollable, and you want to drag panel, then it's laggy. To avoid this, we should fix this issue. So logically, when Panel is opened that's only place where user should interact.

@sasafister Any idea's around ? For example we have cases when users must have abilities to interact with map, or other elements.
In my project i manually disable scroll events for background elements with opened pane, but touch event's still allow to.

Hmmm...Maybe we should give them prop to enable / disable background scroll / touch completely? So when they will use map, they can enable it, otherwise it's disabled by default? Here, the problem is on Chrome / FF when you have scrollable content behind, you are not even able to drag up panel. It's just stuck.

I think I've solved issue. So what I did is first create div with height to screen size and with overflow:auto than inside I've put scrollable content (background) and then outside of that div I've put Panel, so everything works fine for now.


Timelapses with brackets in file name won’t play

File names of timelapse videos which contain brackets „()“ in the file name can’t be played back in the Octopod app. The screen just stays black with a loading wheel forever.
File export and deleting works fine.
The exported video files can be played back in the iOS Photos app.
Maybe it’s a problem with the encoding of the file name.
Screen recording shows me selecting 2 files with brackets, then two without and then again two with brackets and two without.
Screen recording

Hi @theHalo , thanks for filing this issue. I will work on it this weekend and push a new release as soon as it's fixed. Let me know if you run into anything else or have improvement ideas.
Thanks,
Gaston

Just had my first timelapse with brackets in the file name and now it plays back just fine. Thanks! 👍🏼


Broken concurrency in EFCore sample

I don't think the approach is sound. I think a biz logic validation or a custom attribute makes more sense.

Resolved by https://github.com/dotnet/AspNetCore.Docs/pull/33800.


avm: avm install latest

someone suggested to add it but then we found out it already exists 😄. closing this


Transfer over websockets

at @wayla, we're heavily using websockets for file uploads & downloads. I haven't been through all of the @tus  docs yet, but has there been any discussion of using websockets for transport?

What would be even better, would be an MQTT implementation of the TUS upload protocol. This would instantly allow uploading files to multiple targets at once!
Comes in handy, if you want some redundancy - e.g. multiple servers serving the same files.

Interesting idea! Are you saying that the client should talk to the server using MQTT? I have never used it so I honestly don't know how that works.

Hi Marius!
Yes exactly, virtually all MQTT severs/brokers provide a websocket
interface as well, so you can conveniently connect to it from your browser
or web app. And it works great, provides some advantages over HTTP also,
one of which is higher energy efficiency, ergo being better suited for
mobile devices.
Facebook chat is implemented on top of MQTT e.g.
MQTT is also the main protocol used in IoT communication. It follows a
publish/subscribe schema.
MQTT messages consist of an UTF8 topic and data, which can either be text
or binary data of up to 265 MB. While sending small chunks would make more
sense in this case. Binary being real unencoded binary is also rather
convenient.
The itch an MQTT tus.io implementation would scratch for me is, that I can
conveniently send data through NATs this way.
I am planning some app, which stores all data privately on the users
"storage node" (something like a Raspberry Pi but with Mini-PCIe SSD). I
can therefore provide the app on the web and let the user connect to his
storage node by connecting an MQTT broker, which the storage node is
connected to as well.
That way, I can still use the app anywhere in the world but still everybody
has their data home savely.
Sounds good?
Cheers,
Markus
Am So., 7. Juni 2020 um 16:36 Uhr schrieb Marius<EMAIL_ADDRESS>
Interesting idea! Are you saying that the client should talk to the server
using MQTT? I have never used it so I honestly don't know how that works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tus/tusd/issues/15#issuecomment-640228391, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKDWZRF6ZCDZFXML2HBQOLRVOQVTANCNFSM4AEYQ7LQ
.

Thanks for the explanation, it seem as if MQTT offers some benefits. It would be interesting to dig further into this topic but I am unsure if it's really worth for now since tus over HTTP is already very powerful.


Channel can not be tuned (translated) - Windows/Trelly/FritzBox

Hello all together,
first of all, I was trying to bring my broadcasted signals over a Fritzbox 6490 or a FritzRepeater DVB-C over tvheadend onto my plex installation with no luck.
After many researches I found trelly and was happy, that from this moment on I was able to get all Channels with EPG data. Example:

But if I want to stream a channel, I get to following error:

In english this should be "Channel can not be tuned".
The debug log from trelly shows the following:
[telly] [debug] Parsing URI /stream/cnRzcDovLzE5Mi4xNjXXXXXXXXXXXXXDY=?transcode=internet480 to cnRzcDovLXXXXXXY=
[telly] [debug] Redirecting to: rtsp://<IP_ADDRESS>:554/?freq=442&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,101,2201,2202,2203,2204,2206

My plexmediaserver runs onto Windows 10, also my trelly installation runs under Windows 10.
The signals are coming from a FritzBox 6490 with DVB-C activated.
I hope that someone can help me.
Thank you
Sascha
P.S.: I didn't find the same problem in the existing issues, so I created a new one.

Similar to #108
Can you wget one of the URLs in your .m3u file, after a few seconds hit Ctrl+C and then run mediainfo on the file it downloaded?

Thank you for the reference.
I opened this issue because I do not have a .ts ending in my stream files.
Can you give me hint how download a rtsp-stram with wget?
My m3u-File looks like this:
#EXTINF:0,ProSieben
#EXTVLCOPT:network-caching=1000
rtsp://<IP_ADDRESS>:554/?freq=442&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,101,2201,2202,2203,2204,2206
#EXTINF:0,kabel eins
#EXTVLCOPT:network-caching=1000
rtsp://<IP_ADDRESS>:554/?freq=442&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,109,2301,2302,2304,2306
#EXTINF:0,WELT
#EXTVLCOPT:network-caching=1000
rtsp://<IP_ADDRESS>:554/?freq=442&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,114,2801,2802,2804

I hope this helps.

I got some new information, which I found in the Plex Media Server.log File:
Jun 20, 2018 06:54:20.235 [8340] DEBUG - Auth: authenticated user 1 as Man-in-Black
Jun 20, 2018 06:54:20.237 [14032] DEBUG - Request: [::ffff:<IP_ADDRESS>:48161 (WAN)] POST /livetv/dvrs/5/channels/105/tune (7 live) TLS GZIP Signed-in Token (Man-in-Black)
Jun 20, 2018 06:54:20.238 [14032] DEBUG - DVR:Subscription: Starting a new rolling subscription for session z2vpo281jxaifamjm55ls7w7 channel 105.
Jun 20, 2018 06:54:20.583 [14032] DEBUG - Activity: registered new activity 21bbdcc9-3052-4f6d-8d14-412ac7e9650f - Processing subscriptions
Jun 20, 2018 06:54:20.583 [14032] DEBUG - DVR:Subscription: Scheduling subscriptions.
Jun 20, 2018 06:54:20.587 [14032] DEBUG - DVR:Subscription: Initialized 1 schedulers.
Jun 20, 2018 06:54:20.587 [14032] DEBUG - DVR:Subscription: Starting with 0 grabs, scheduled 0 active ones preemptively.
Jun 20, 2018 06:54:20.587 [14032] DEBUG - DVR:Schedule: Attempting to schedule the item 'Live TV - Session'.
Jun 20, 2018 06:54:20.588 [14032] DEBUG - DVR:Schedule: Trying airing at 2018-06-20 06:54:20 on channel 105.
Jun 20, 2018 06:54:20.588 [14032] DEBUG - DVR:Schedule: Device 0 tuner 0 scheduled recording between 2018-06-20 06:54:20 and 2018-06-20 06:59:20 on channel 105.
Jun 20, 2018 06:54:20.588 [14032] DEBUG - DVR:Grabber: Starting grab immediately for 'Live TV - Session' and we're 0 seconds in already.
Jun 20, 2018 06:54:20.588 [14032] DEBUG - DVR:Subscription: Scheduled all subscriptions in 4 ms.
Jun 20, 2018 06:54:20.589 [14032] DEBUG - Activity: Ended activity 21bbdcc9-3052-4f6d-8d14-412ac7e9650f.
Jun 20, 2018 06:54:20.589 [14032] DEBUG - DVR:Subscription: There are 1 grabs at the end.
Jun 20, 2018 06:54:20.590 [14032] DEBUG - DVR:Subscription: Waiting for media grab to start.
Jun 20, 2018 06:54:20.591 [14104] DEBUG - DVR:Grabber: Starting operation for 'Live TV - Session'.
Jun 20, 2018 06:54:20.592 [14104] DEBUG - Activity: registered new activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - Recording
Jun 20, 2018 06:54:20.593 [14104] DEBUG - DVR:Grabber: HDHomerun starting a media grab on device device://tv.plex.grabbers.hdhomerun/12345678 (Silicondust HDHomerun (telly), supported) tuner 0.
Jun 20, 2018 06:54:20.594 [14104] DEBUG - DVR:Grabber: Creating custom segmented recorder for grab for channel 105
Jun 20, 2018 06:54:20.594 [14104] DEBUG - HTTP requesting GET http://localhost:6077/lineup.json
Jun 20, 2018 06:54:20.599 [14104] DEBUG - HTTP 200 response from GET http://localhost:6077/lineup.json
Jun 20, 2018 06:54:20.601 [14104] DEBUG - DVR:Segmenter: Creating a new recorder for http://localhost:6077/stream/cnRzcDovLzE5Mi4xNjguMTc4LjE6NTU0Lz9mcmVxPTQ0MiZidz04Jm1zeXM9ZHZiYyZtdHlwZT0yNTZxYW0mc3I9NjkwMCZzcGVjaW52PTEmcGlkcz0wLDE2LDE3LDE4LDIwLDEwMSwyMjAxLDIyMDIsMjIwMywyMjA0LDIyMDY=?transcode=internet480.
Jun 20, 2018 06:54:20.606 [14104] DEBUG - DVR:Grabber: Setting timer to stop grab of 'Live TV - Session' in 300 seconds.
Jun 20, 2018 06:54:20.606 [14104] DEBUG - DVR:Grabber: Waiting for a tuner (4 available).
Jun 20, 2018 06:54:20.606 [14104] DEBUG - DVR:Grabber: Allocated a tuner (3 left)
Jun 20, 2018 06:54:20.608 [14104] DEBUG - We're going to try to auto-select an audio stream for account 1.
Jun 20, 2018 06:54:20.608 [14104] DEBUG - Selecting best audio stream for part ID -1 (autoselect: 1 language: de)
Jun 20, 2018 06:54:20.609 [14104] DEBUG - We're going to try to auto-select a subtitle.
Jun 20, 2018 06:54:20.609 [14104] DEBUG - Audio Stream: -1, Subtitle Stream: -1
Jun 20, 2018 06:54:20.610 [14104] DEBUG - MDE: Selected protocol hls; container: mpegts
Jun 20, 2018 06:54:20.610 [14104] ERROR - Unable to find title for item of type 5
Jun 20, 2018 06:54:20.611 [14104] DEBUG - MDE: analyzing media item -1
Jun 20, 2018 06:54:20.611 [14104] DEBUG - MDE: : no direct play video profile exists for http/mpegts/
Jun 20, 2018 06:54:20.611 [14104] DEBUG - MDE: : no direct play video profile exists for http/mpegts//
Jun 20, 2018 06:54:20.611 [14104] DEBUG - MDE: : codec is unavailable for analysis
Jun 20, 2018 06:54:20.612 [14104] DEBUG - MDE: : codec is unavailable for analysis
Jun 20, 2018 06:54:20.612 [14104] ERROR - Unable to find title for item of type 5
Jun 20, 2018 06:54:20.613 [14104] DEBUG - MDE: : selected media 0 / -1
Jun 20, 2018 06:54:20.613 [14104] DEBUG - Cleaning directory for session 2725193b-7b5e-478d-a4c2-686ab13b936f ()
Jun 20, 2018 06:54:20.614 [14104] DEBUG - Starting a transcode session 2725193b-7b5e-478d-a4c2-686ab13b936f at offset -1.0 (state=3)
Jun 20, 2018 06:54:20.615 [14104] DEBUG - Streaming Resource: Added session 0x78d6310:2725193b-7b5e-478d-a4c2-686ab13b936f
Jun 20, 2018 06:54:20.617 [14104] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Jun 20, 2018 06:54:20.618 [14104] DEBUG - TPU: hardware transcoding: final decoder: , final encoder:
Jun 20, 2018 06:54:20.623 [14104] DEBUG - Job running: EAE_ROOT='\\?\D:\Medialibrary\Plex\Plex Media Server\Cache\Transcode\Sessions\EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='D\:\\Medialibrary\\Plex\\Plex\ Media\ Server\\Codecs\\e2b7800-1302-windows-i386\\' XDG_CACHE_HOME='D:\Medialibrary\Plex\Plex Media Server\Cache\' XDG_DATA_HOME='C:\Program Files (x86)\Plex\Plex Media Server\Resources\' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe -noaccurate_seek -ignore_unknown -scan_all_pmts -1 -rw_timeout 30000000 -fflags +discardcorruptts+fillwallclockdts -i http://localhost:6077/stream/cnRzcDovLzE5Mi4xNjguMTc4LjE6NTU0Lz9mcmVxPTQ0MiZidz04Jm1zeXM9ZHZiYyZtdHlwZT0yNTZxYW0mc3I9NjkwMCZzcGVjaW52PTEmcGlkcz0wLDE2LDE3LDE4LDIwLDEwMSwyMjAxLDIyMDIsMjIwMywyMjA0LDIyMDY=?transcode=internet480 -map 0:V? -codec:V copy -map 0:a? -codec:a copy -copypriorss:a 0 -map 0:s? -codec:s copy -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 1 -segment_start_number 0 -segment_time_delta 0.0625 -segment_list http://<IP_ADDRESS>:32400/video/:/transcode/session/2725193b-7b5e-478d-a4c2-686ab13b936f/58bd7f1c-278b-432b-98cc-385b8d53d80e/seglist -segment_list_type csv -segment_list_size<PHONE_NUMBER> -segment_list_separate_stream_times 1 -max_delay 5000000 -map_metadata -1 -map_chapters -1 media-%05d.ts -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://<IP_ADDRESS>:32400/video/:/transcode/session/2725193b-7b5e-478d-a4c2-686ab13b936f/58bd7f1c-278b-432b-98cc-385b8d53d80e/progress
Jun 20, 2018 06:54:20.631 [14104] DEBUG - Jobs: Starting child process with pid 3648
Jun 20, 2018 06:54:23.594 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 1% - Recording
Jun 20, 2018 06:54:26.595 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 2% - Recording
Jun 20, 2018 06:54:29.597 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 3% - Recording
Jun 20, 2018 06:54:32.598 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 4% - Recording
Jun 20, 2018 06:54:35.600 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 5% - Recording
Jun 20, 2018 06:54:38.601 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 6% - Recording
Jun 20, 2018 06:54:41.603 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 7% - Recording
Jun 20, 2018 06:54:44.605 [6052] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 8% - Recording
Jun 20, 2018 06:54:47.606 [6052] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 9% - Recording
Jun 20, 2018 06:54:50.607 [9796] DEBUG - Activity: updated activity d4aed058-ea8b-4652-a0cd-81362f0d5529 - completed 10% - Recording
Jun 20, 2018 06:54:51.477 [14104] DEBUG - Using default transcode duration of 120 minutes
Jun 20, 2018 06:54:51.477 [14104] DEBUG - Started session successfully: 2725193b-7b5e-478d-a4c2-686ab13b936f
Jun 20, 2018 06:54:51.478 [14104] DEBUG - DVR:Recorder: It took 30.9 sec to start the session for http://localhost:6077/stream/cnRzcDovLzE5Mi4xNjguMTc4LjE6NTU0Lz9mcmVxPTQ0MiZidz04Jm1zeXM9ZHZiYyZtdHlwZT0yNTZxYW0mc3I9NjkwMCZzcGVjaW52PTEmcGlkcz0wLDE2LDE3LDE4LDIwLDEwMSwyMjAxLDIyMDIsMjIwMywyMjA0LDIyMDY=?transcode=internet480
Jun 20, 2018 06:54:51.479 [14104] DEBUG - DVR:Grabber: Merging EPG item with live item.
Jun 20, 2018 06:54:51.479 [14104] ERROR - DVR:Recorder: No part because session isn't reporting one.
Jun 20, 2018 06:54:51.480 [14104] DEBUG - DVR:Grabber: Operation for Live TV - Session completed with status error (Could not start recording)
Jun 20, 2018 06:54:51.480 [14104] DEBUG - Activity: Ended activity d4aed058-ea8b-4652-a0cd-81362f0d5529.
Jun 20, 2018 06:54:51.481 [14104] DEBUG - DVR:Grabber: Cleaning up rolling grab for channel 105.
Jun 20, 2018 06:54:51.482 [14104] DEBUG - DVR:Recorder: Asked to stop recording 'Live TV - Session'.
Jun 20, 2018 06:54:51.482 [14104] DEBUG - DVR:Recorder: Stopping transcode session.
Jun 20, 2018 06:54:51.482 [14104] DEBUG - Killing job.
Jun 20, 2018 06:54:51.494 [14104] DEBUG - Job was already killed, not killing again.
Jun 20, 2018 06:54:51.495 [14104] DEBUG - Stopping transcode session 2725193b-7b5e-478d-a4c2-686ab13b936f
Jun 20, 2018 06:54:51.495 [9796] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 3648 is -1059143458 (intentional termination)
Jun 20, 2018 06:54:51.496 [9228] DEBUG - Cleaning directory for session 2725193b-7b5e-478d-a4c2-686ab13b936f (D:\Medialibrary\Plex\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-2725193b-7b5e-478d-a4c2-686ab13b936f)
Jun 20, 2018 06:54:51.523 [14104] DEBUG - DVR:Grabber: Freed a tuner (now 4 available)
Jun 20, 2018 06:54:51.524 [9796] INFO - Notification: Recording Live TV - Session -
Jun 20, 2018 06:54:51.524 [14032] ERROR - DVR:Subscription: Rolling media grab failed to start.
Jun 20, 2018 06:54:51.524 [14032] DEBUG - DVR:Grabber: Cancelling operation for 'Live TV - Session' with status cancelled.
Jun 20, 2018 06:54:51.524 [14032] DEBUG - DVR:Grabber: Operation was active, stopping recorder.
Jun 20, 2018 06:54:51.525 [14032] DEBUG - DVR:Grabber: We've cancelled the grab with 269 seconds remaining.
Jun 20, 2018 06:54:51.525 [14032] DEBUG - DVR:Grabber: Cleaning up rolling grab for channel 105.
Jun 20, 2018 06:54:51.525 [14032] DEBUG - DVR:Recorder: Asked to stop recording 'Live TV - Session'.
Jun 20, 2018 06:54:51.526 [7592] DEBUG - DVR:Grabber: Recording for 'Live TV - Session' stopped with status complete.
Jun 20, 2018 06:54:51.526 [7592] DEBUG - DVR:Grabber: This was a rolling sub, not assimilating.
Jun 20, 2018 06:54:51.529 [14032] DEBUG - Activity: registered new activity 2ab0134d-f912-4d01-ac73-fb602d888dfe - Processing subscriptions
Jun 20, 2018 06:54:51.530 [14032] DEBUG - DVR:Subscription: Scheduling subscriptions.
Jun 20, 2018 06:54:51.533 [14032] DEBUG - DVR:Subscription: Initialized 1 schedulers.
Jun 20, 2018 06:54:51.533 [14032] DEBUG - DVR:Subscription: Starting with 1 grabs, scheduled 0 active ones preemptively.
Jun 20, 2018 06:54:51.534 [14032] DEBUG - DVR:Subscription: Scheduled all subscriptions in 3 ms.
Jun 20, 2018 06:54:51.534 [14032] DEBUG - Activity: Ended activity 2ab0134d-f912-4d01-ac73-fb602d888dfe.
Jun 20, 2018 06:54:51.535 [14032] DEBUG - DVR:Subscription: There are 0 grabs at the end.
Jun 20, 2018 06:54:51.538 [7592] DEBUG - Activity: registered new activity d2b0dfa9-4835-43de-8cbc-fff5197c8ae8 - Processing subscriptions
Jun 20, 2018 06:54:51.539 [7592] DEBUG - DVR:Subscription: Scheduling subscriptions.
Jun 20, 2018 06:54:51.540 [8340] DEBUG - Completed: [::ffff:<IP_ADDRESS>:48161] 200 POST /livetv/dvrs/5/channels/105/tune (7 live) TLS GZIP 31303ms 522 bytes (pipelined: 1)
Jun 20, 2018 06:54:51.543 [7592] DEBUG - DVR:Subscription: Initialized 1 schedulers.
Jun 20, 2018 06:54:51.543 [7592] DEBUG - DVR:Subscription: Starting with 0 grabs, scheduled 0 active ones preemptively.
Jun 20, 2018 06:54:51.543 [7592] DEBUG - DVR:Subscription: Scheduled all subscriptions in 3 ms.
Jun 20, 2018 06:54:51.543 [7592] DEBUG - Activity: Ended activity d2b0dfa9-4835-43de-8cbc-fff5197c8ae8.
Jun 20, 2018 06:54:51.544 [7592] DEBUG - DVR:Subscription: There are 0 grabs at the end.
Jun 20, 2018 06:54:51.595 [9136] DEBUG - Auth: authenticated user 1 as Man-in-Black
Jun 20, 2018 06:54:51.596 [7496] DEBUG - Request: [::ffff:<IP_ADDRESS>:48261 (WAN)] GET /status/sessions/background (7 live) TLS GZIP Signed-in Token (Man-in-Black)
Jun 20, 2018 06:54:51.601 [8340] DEBUG - Completed: [::ffff:<IP_ADDRESS>:48261] 200 GET /status/sessions/background (7 live) TLS GZIP 5ms 397 bytes (pipelined: 1)
Jun 20, 2018 06:54:51.608 [2916] DEBUG - DVR:Recorder: Asked to stop recording 'Live TV - Session'.

I hope it is not to much, but this is the part when I try to stream a tv show over telly.

I can confirm that v0.5 is working fine for me with .ts streams. However, v0.62 is not. Have downgraded to 0.5 for now. If I can help provide additional info please let me know

Same issues


What is the difference between 'self_paced' and 'self_paced_v2'?

Great Work!
Could you explain the difference between 'self_paced' and 'self_paced_v2'?

Hey! The difference between the two approaches is explained in Section 7.1 (Alternative \alpha-Schedule) of this preprint https://arxiv.org/pdf/2102.13176 .
Intuitively, we now compute the value of \alpha by requiring the learner to keep at least a certain level of performance while moving as fast as possible to the target distribution of tasks. This is beneficial, since it is often more intuitive to specify a desired level of performance to keep during training than specifying the value of zeta as in "self_paced".

Thanks for the kind explanation!


BDS-17 - NICC API : Upgrade the service to use HIP token

Fixed request body value.

Test this please.


Quick search - text highlighting not disappearing in notebooks

Create a notebook that has the following string: tex text and open it.
Use the quick text search to look for tex by entering % tex in the file quickpick. Let this load.
Add a t at the end of the string so that it says % text
Notice that the highlight for tex is still there despite how the current query is for text

Closing in favor of: https://github.com/microsoft/vscode/issues/195165


Amazon Prime failed to load history

Expected Behavior
To load correctly?
Current Behavior
At this point i am almost giving up using this extension, basically nothing works. Now is this on Prime:
https://user-images.githubusercontent.com/17055027/230733976-623b5a47-1cb5-4810-a06d-1aa3a921c867.mov
Steps to Reproduce
Just tried to load history on Prime Video.
Additional Information

OS + Version: macOS ventura
Browser + Version: Firefox or Chrome, in both this happens
Country/Region: Brazil

Same for me, and looking at the issue list this seems to be a bug.

I had the same issue, but works for me following this steps:

https://www.primevideo.com/settings login and be sure to mark the remember me checkbox.
If you clic the watch history tab you should be able to see your history:

Go to the trakt-scrobbler extension and try again the sync.

I hope this works for you.
Country/Region: Colombia
OS + Version: SteamOS / KDE desktop.
Country/Region: Colombia.

Let's please keep all Amazon Prime problems in a single issue. Closing in favor of https://github.com/trakt-tools/universal-trakt-scrobbler/issues/295 since there are more replies there.

I don't know why but opening the watched history page and then loading the plugin worked.


Remove Badges Endpoint

Looks like the badges endpoint is causing the master branch to fail. More information via https://developer.foursquare.com/docs/users/badges

Removed in latest version.
https://pypi.python.org/pypi?:action=display&name=foursquare&version=1!2016.9.12


Add module to create s3 batch operation

Not doing batch operations anymore. Moved to using a separate index for any file related abstraction and operations.


transaction hooks example is very confusing

import { useReadTransaction } from 'use-neo4j'

const { transaction, commit, rollback } = useTransaction('mydb')

fetchSomeData()
    .then(properties => {
        // Use `run` to execute a query within the transaction
        return run(`CREATE (n:Node) SET n+= $properties`, { properties })
            //  If all is fine, commit the transaction
            .then(() => commit())
    })
    // If anything goes wrong, you can rollback the transaction
    .catch(e => rollback())

you start by importing the readTransaction and then use a useTransaction hook, and lastly commit as if you are dealing with a write transaction. Also, I would much rather prefer some hardcoded property example as it's not clear how to actually execute this.
I get a transaction variable from the hook, but then never use it and should use run within a transaction that was never defined?

This looks like a copy-and-paste error.  This is how you would use useWriteTransaction:
import { useWriteTransaction } from 'use-neo4j'

const { commit, rollback } = useWriteTransaction('mydb')

fetchSomeData()
    .then(properties => {
        // Use `run` to execute a query within the transaction
        return run(`CREATE (n:Node) SET n+= $properties`, { properties })
            //  If all is fine, commit the transaction
            .then(() => commit())
    })
    // If anything goes wrong, you can rollback the transaction
    .catch(e => rollback())

The transaction object is there if you want to get any metadata from the transaction, I just haven't used it here.

wouldn't you also need the run variable like so ->
const { run, commit, rollback } = useWriteTransaction('mydb')

Yup


EXE will not work

"Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00004788 (most recent call first):"
this shows up for a few seconds after downloading and running, then the window auto closes
no matter what i run it from or to or how

Huh, never seen this error before.
Can you give me your version of Windows?  Is Python loaded on the machine you're using?

@Nik-Novak see #21, I believe your issue is different and as a workaround you can use v1.0.0 if you trust the .unitypackage to not be malicious.
Closing this, will reopen if any new info


Fixing InvalidArgumentException with 'Cannot redirect to an empty URL'

This exception occurs when 'Referer' header exists but empty.
In this case empty string goes to the first arg of  \Symfony\Component\HttpFoundation\RedirectResponse constructor.
And then \InvalidArgumentException is thrown inside \Symfony\Component\HttpFoundation\RedirectResponse::setTargetUrl method.

@lsmith77, could you give me some feedback, please?

makes sense .. could you also add a test case?

I added unit-test for all cases came into my mind + also I covered the case when NotFoundHttpException is thrown.
But it's hard to cover the case with $cookieOptions, because of the time() function.
If you want, I can extract this time() function to separate TimeProvider and mock it.

nice!
SymfonyResponse might even be something for Symfony core ..?
for the call to time() .. it might be best to just switch to $request->server->get('REQUEST_TIME')

perfect!

@lsmith77, thank you so much for your feedback!
May I ask you to create a new Release (1.6.2)?

I will make a release as soon as https://github.com/liip/LiipThemeBundle/pull/200 is merged.
However the next release will be 1.7.0

sorry for the delay https://github.com/liip/LiipThemeBundle/releases/tag/1.7.0

@lsmith77, thank you so much!


Firefox 59 - nothing works

ReferenceError: webkitSpeechRecognition is not defined[Learn More] script.js:1:5
I've tried all of the demos - and nothing works.  All I get is this error.  I've set media.webspeech.recognition.enable to true - restarted the browser (just in case) and still nothing but this error.

The recognition stuff has not worked in Firefox for a while. We only ever really had it working in Firefox OS, back in those days. The synthesis stuff should work though.
I think work is ongoing at the moment to add in recognition support again.

There seems to be no way to get more than the mediocre Microsoft "Anna" voice with Firefox.
Yes, I tried speechSynthesis.onvoiceschanged, but all the demos using it fail as well.
I am using Firefox Quantum, 60.0.2 (64-bit)  (select doesn't work in the Firefox About box...)

Hey guys, apologies for not getting back to you sooner.  Basically, the reason your not able to access your microphone is due to a security issues mostly all browsers enforce.  That being, if you try to run a file wile the initial extension file:///, it will refuse to give access to your microphone, Hence, this program will never work in that instance.  However, if you do want to see this program work, simply copy and paste the html, js, and css into your preferred IDE and run it from there.  It will operate under a local host which your browser will accept and give access to your microphone.  Hope this helps!

Only working on chrome till now.
Other browsers fails to do that.
On opera, Speech Recognition is supported but still not working.

Hey @stutteringp0et! Thank you for opening this issue. We are combining some of our repositories to enable us to triage pull requests and issues more effectively. Therefore, this specific repository will be merged into the more prominent dom-examples repository. Please open a new issue if you still feel that this issue is relevant. Thank you.


Add required attribute to repeatable items

Hi, is it possible to add rules to fields in repeatables?
Currently the system produces an error when you add a ruleset within a repeatables field.
Cheers!

Hey, there are fields that cannot have rules. For example the block field itself cannot have rules. However an input field inside a block can have rules.
Could you post the error message, so I have more Information about what isn't working?!


remove redundant codec param from service constructor

@DanSimon @nsauro
Codec provider is provided, getting the codec from there. It was already used like this with the help of second constructor anyways.
Fixes https://github.com/tumblr/colossus/issues/377

LGTM

looks like there's some conflicts after the last few prs got merged.  Once that's fixed this is good to merge.

[Current coverage][cc-pull] is 83.12%

Merging [#384][cc-pull] into [develop][cc-base-branch] will increase coverage by +<.01%

5 files (not in diff) in ...ala/colossus/service were modified. more

Hits -7

2 files (not in diff) in ...ssus/protocols/redis were modified. more
2 files (not in diff) in ...s/protocols/memcache were modified. more
8 files (not in diff) in ...ossus/protocols/http were modified. more

Misses -1
Hits -5

2 files (not in diff) in ...a/colossus/protocols were modified. more
2 files (not in diff) in .../scala/colossus/core were modified. more

Misses -3
Hits +3

2 files (not in diff) in .../main/scala/colossus were modified. more

Misses -1
Hits +2

@@            develop       #384   diff @@
==========================================
  Files            73         73
  Lines          3686       3673    -13
  Methods        3438       3447     +9
  Messages          0          0
  Branches        248        226    -22
==========================================
- Hits           3061       3053     -8
+ Misses          625        620     -5
  Partials          0          0

Powered by Codecov. Last updated by [3bdcabe...76af024][cc-compare]
[cc-base-branch]: https://codecov.io/gh/tumblr/colossus/branch/develop?src=pr
[cc-compare]: https://codecov.io/gh/tumblr/colossus/compare/3bdcabeb68f2c08d80a55623391981acb6b29b2a...76af024d28fd8819fe2008f9161e558085d688fa
[cc-pull]: https://codecov.io/gh/tumblr/colossus/pull/384?src=pr


Conversational Chat Agent: json.decoder.JSONDecodeError

I get this error occasionally when running the calculator tool, and seems like lots of other people are dealing with weird outputs from agents like here. I'm seeing just random junk on the end of my objects returned from agents:
File "c:\Users\djpec\Documents\GitHub\project\venv\lib\site-packages\langchain\agents\conversational_chat\output_parser.py", line 32, in parse
    response = json.loads(cleaned_output)
  File "C:\Program Files\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Python39\lib\json\decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 5 column 1 (char 94)

Inspecting the cleaned_output yields this when preparing for final answer (I'm not sure how to wrap this in backticks, sorry lol):

I fixed it by importing the regex library and searching recursively for the largest "object" in the string in my venv\lib\site-packages\langchain\agents\conversational_chat\output_parser.py function
import regex
...
if cleaned_output.endswith("```"):
            cleaned_output = cleaned_output[: -len("```")]
        if not cleaned_output.endswith("""\n}"""):
            pattern = r"(\{(?:[^{}]|(?R))*\})"
            cleaned_output = regex.search(pattern, text).group(0)
        cleaned_output = cleaned_output.strip()
...

Hi, it happened to me as well.
It appears that some times ChatGPT doesn't return its response as instructed (wrapped in 3 backticks).
In your attached image, you can notice the two backticks in the cleaned cleaned_output.
If it were cleaned, it would have no backticks in the end.
As of now, there is a parse_json_markdown function that does this job and it's using regex (insted of multiple if statements).
I changed the regex expression to match with responses that have from 1-3 backticks.

I am facing the same problem but my delimiter is not 3 backticks, my delimiter is <>. How should I clean my output?

pattern

I get this error occasionally when running the calculator tool, and seems like lots of other people are dealing with weird outputs from agents like here. I'm seeing just random junk on the end of my objects returned from agents:
File "c:\Users\djpec\Documents\GitHub\project\venv\lib\site-packages\langchain\agents\conversational_chat\output_parser.py", line 32, in parse
    response = json.loads(cleaned_output)
  File "C:\Program Files\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Python39\lib\json\decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 5 column 1 (char 94)

Inspecting the cleaned_output yields this when preparing for final answer (I'm not sure how to wrap this in backticks, sorry lol):

I fixed it by importing the regex library and searching recursively for the largest "object" in the string in my venv\lib\site-packages\langchain\agents\conversational_chat\output_parser.py function
import regex
...
if cleaned_output.endswith("```"):
            cleaned_output = cleaned_output[: -len("```")]
        if not cleaned_output.endswith("""\n}"""):
            pattern = r"(\{(?:[^{}]|(?R))*\})"
            cleaned_output = regex.search(pattern, text).group(0)
        cleaned_output = cleaned_output.strip()
...

@djpecot What is the variable "text" in line 6
"""cleaned_output = regex.search(pattern, text).group(0)"""


Migrate Launch-With and Sidebar

Feature Request
Desired behaviour
This ticket covers finishing off the launch-with UI instructions and the remainder of the sidebar (add this, , sharing, source repositories, docker pull)

Please migrate the DNAStack launch-with functionality as well
https://github.com/ga4gh/dockstore-ui/pull/174

The only thing left on this ticket is to try on a real server, sharing through services that would really check the URL

See #784 for follow-up


Popup doesn't release capture when closed

ComboBox popup (or may be any toplevel window) doesn't release capture when closed, thus making next mouse click invalid and not recognized by the system.
For example in Control catalog try switch between dark and light themes with the dropdown.
Once theme selected, next click on dropdown will not open the dropdown popup, but need a second click.

Check if https://github.com/AvaloniaUI/Avalonia/pull/3158 solves your issue

@kekekeks #3158 solves partially the issue -1 mouse click is not lost e.g. next click on combo opens it, but PointerCaptureLostEvent is never raised

it working properly in the latest master


Use openghg_defs for species and site info

At the moment openghg_inversions.utils.load_json uses the local openghg_inversions copy of species_info.json and site_info.json. This should be updated to import the json files from openghg_defs

This is a duplicate of Issue #21 so I'm going to close it.


Add the option to store a key in the keychain

Guide the user through creating keys in the keychain of their choice.

Closed with feat/store_api_key


Replace get_tmp_dir() with tmpdir fixture in pytest

Per title.
To discuss:
There are still references for get_tmp_dir(), but they are not used in pytest tests but as util functions.

Thanks a lot for the PR @ccongge ! This looks great so far, LMK when it's ready for a proper review.
We can safely ignore the fate-related CI issues: https://github.com/pytorch/vision/issues/4278

There are still references for get_tmp_dir(), but they are not used in pytest tests but as util functions.

We can safely ignore the get_tmp_dir() that's in torchvision/datasets/imagenet.py. However it looks like there are still some occurrences in the test folder in this PR branch:
(pt) ➜  vision git:(replace_get_tmp_dir) ✗ git grep get_tmp_dir test
test/common_utils.py:def get_tmp_dir(src=None, **kwargs):
test/datasets_utils.py:from common_utils import get_tmp_dir, disable_console_output
test/datasets_utils.py:        with get_tmp_dir() as tmpdir:
test/test_datasets_samplers.py:from common_utils import get_tmp_dir, assert_equal
test/test_datasets_samplers.py:    with get_tmp_dir() as tmp_dir:
test/test_datasets_video_utils.py:from common_utils import get_tmp_dir, assert_equal
test/test_datasets_video_utils.py:    with get_tmp_dir() as tmp_dir:
test/test_transforms_tensor.py:    get_tmp_dir,
test/test_transforms_tensor.py:    with get_tmp_dir() as tmp_dir:


chore: shebang to document python3

as this should be used with python3 (and the requirements work that way), it is documented in the script by a #! line. In addition, the script is made executable for easy access

Thank you very much for your pull request!
For receiving the free PineCone, please sign up at this link.
(If there will be any issues with signing up, please let me know here).


Cloudwatch adapter - failed to evaluate template for log instance

Description
When passing in a log entry to the cloudwatch adapter I receive failed to evaluate template for log instance, even if I heavily simplify the logentry variables and payloadTemplate
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ X] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected results
The cloudwatch handler should properly evaluate the logentry template using the golang template passed into payloadTemplate, and should populate the logs into cloudwatch logs
Steps to reproduce the bug

Create a yaml file that will hold all your code
Create a logentry

apiVersion: "config.istio.io/v1alpha2"
kind: instance
metadata:
  name: accesslogentry
  namespace: istio-system
spec:
  compiledTemplate: logentry
  params:
    severity: '"Default"'
    timestamp: request.time
    variables:
      method: request.method | ""
    monitored_resource_type: '"UNSPECIFIED"'

Create a handler

# Configuration for a stdio handler
apiVersion: config.istio.io/v1alpha2
kind: handler
metadata:
  name: cloudwatchhandler
  namespace: "istio-system"
spec:
  compiledAdapter: cloudwatch
  params:
    namespace: "cloudwatch-istio"
    # metricInfo:
      # sizeofrequest.instance.istio-system:
       # unit: Bytes
    logGroupName: TestLogGroup
    logStreamName: TestLogStream
    logs:
      accesslog:
        payloadTemplate: '{{or (.method) "-" } [{{or (.timestamp.Format "2006-01-02T15:04:05Z07:00") "-"}}]}'

Create a rule

# Rule to send logentry instances to a stdio handler
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
  name: cloudwatchrule
  namespace: istio-system
spec:
  match: "true" # match for all requests
  actions:
   - handler: cloudwatchhandler
     instances:
     # - sizeofrequest
     - accesslogentry

Apply the template, run a request against something in your cluster with istio enabled, then view the telemetry mixer logs with kubectl logs istio-telemetry-$pod# -c mixer --tail 100

Receive

failed to get message for instance: accesslogentry.instance.istio-system. failed to evaluate template for log instance: &{accesslogentry.instance.istio-system map[method:POST] 2020-02-24 17:18:49.255594 +0000 UTC Default UNSPECIFIED map[]}, skipping      {"adapter": "cloudwatchhandler.istio-system"}

Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
istioctl version --remoteclient version: 1.4.3
control plane version: 1.4.3
data plane version: 1.4.3 (3 proxies)

kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.2", GitCommit:"59603c6e503c87169aea6106f57b9f242f64df89", GitTreeState:"clean", BuildDate:"2020-01-23T14:21:54Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.9-eks-c0eccc", GitCommit:"c0eccca51d7500bb03b2f163dd8d534ffeb2f7a2", GitTreeState:"clean", BuildDate:"2019-12-22T23:14:11Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

How was Istio installed?
istioctl manifest apply
Environment where bug was observed (cloud vendor, OS, etc)
AWS eks

Unfortunately, this issue was unaddressed, and with Mixer deprecated and now deleted, I do not expect any progress to be made on it. Closing as a result.


Introducing the new C# 9 keywords

Hi 👋🏼 highlight.js friends!
I'd like to introduce several new C# keywords. These are being added as part of C# 9.

init
record
and
not
or
nint
nunit
with

See our official docs: https://docs.microsoft.com/dotnet/csharp/whats-new/csharp-9

Looks good. Could you add a CHANGES.md entry please?
Also, is there any chance you'd mind grouping all the "datatype" keywords as well (since you seem to know C#) and perhaps it'd be quick for you to do?
In the future we should probably highlight them as data types instead of keywords proper, what do you think?

Hi @joshgoebel - I can update the CHANGES.md, no problem. I'm not sure I follow the other suggestions - as I'm not that familiar with how some of the internals work in highlight.js.

What is this datatype keyword you speak of and how do I group things as that?

I'm not sure I follow the other suggestions - as I'm not that familiar with how some of the internals work in highlight.js.

Well for starters I just meant grouping them literally, with a comment (like the keywords are already grouped a bit into categories)... but really we probably should highlight them as "type" or "built_in"... but getting them grouped first would be a step in that direction.

I'm going to close and reopen a new PR, properly forking the repo.

Hey @joshgoebel - see #2679


chore: fix test coverage config

PR Checklist

[x] Fix linting errors
[x] Label has been added

Change information

Coverage decreased (-7.7%) to 92.308% when pulling 9e0f5b6eae62689bea44aee9c848e54f4d5e5df0 on WittBulter:fix-test-config into 74eeedd29406db67f4ef9027c4b4517981361f6b on DhyanaChina:master.


Mac M1 - Problem with Boost Lib

Anyone has a quick solution for the error:
Library not loaded: '/usr/local/homebrew/opt/boost/lib/libboost_program_options.dylib'
when executing dynexd on a MBPro M1.
Note: brew and the referenced boost libs are installed and are up to date.

Yes, we have a solution. The reason is that Apple M1 compiles the boost libraries for ARM, whereas the precompiled MacOS version provided is based on the x86-64 architecture, which you cannot mix together. Here's how you solve it:

Download our pre-compiled boost runtime libraries for x86-64:
https://github.com/dynexcoin/Dynex/raw/main/libboost_x86-64.zip

Extract them into a folder

in the command line, you need to tell your environment where these boost (dynamic) libraries are located:

export DYLD_LIBRARY_PATH=/path/to/the/library/files/:$DYLD_LIBRARY_PATH

After that, you should be able to start the applications. Let us know if you need anything else!

Thanks for your quick reply - the prebuilt library files solved the problem!
Just a notice: Another issue was that the execution had been prevented by Mac OS's security settings. Having the "System Settings -> Security & Privacy -> General" page open while lauching the binary helps as the application then will be shown there besides an "Allow" button.


'amplify init' uses wrong profile for s3 upload for secondary environments

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.5.0
Amplify CLI Version
5.1.2
What operating system are you using?
MacOS Big Sur 11.4
Amplify Categories
Not applicable
Amplify Commands
env, init
Describe the bug
amplify init uses wrong AWS Profile when uploading files to s3 when initializing a secondary environment, resulting in 'Access Denied' error message without explanation if the AWS Profile for the new environment refers to a different account (or original profile does not have permission for the new bucket).
Additionally amplify env remove is unable to remove environments if the upload to S3 bucket during initialization had failed.
Expected behavior
amplify init should successfully initialize multiple environments when using different profiles for different accounts.
amplify env remove should be able to remove environments where upload to S3 failed but otherwise resources were created
Reproduction steps

Initialize environment one 'envone' using AWS profile 'profile1'
-> Amplify App is created in AWS Account belonging to profile1
-> Configuration resources are uploaded to S3 bucket
Initialize environment two 'envtwo' using AWS profile 'profile2'
-> Amplify App is created in AWS account belonging to profile2
-> Configuration resources fail to upload to S3 bucket, environment is left in corrupt/incomplete state

Detailed steps to reproduce:

Before starting, to confirm no cached profile names:

$ cat amplify/.config/local-aws-info.json
{}

Initialize first environment 'envone' using profile 'profile1':

$ amplify init
Note: It is recommended to run this command from the root of your app directory
? Do you want to use an existing environment? No
? Enter a name for the environment envone
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile

For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

? Please choose the profile you want to use profile1
Adding backend environment envone to AWS Amplify Console app: d9i7hb9n0syk1
⠇ Initializing project in the cloud...

CREATE_IN_PROGRESS amplify-appname-envone-151929 AWS::CloudFormation::Stack Tue Jul 27 2021 15:19:33 GMT+0100 (British Summer Time) User Initiated
CREATE_IN_PROGRESS DeploymentBucket                 AWS::S3::Bucket            Tue Jul 27 2021 15:19:36 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS AuthRole                         AWS::IAM::Role             Tue Jul 27 2021 15:19:36 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS UnauthRole                       AWS::IAM::Role             Tue Jul 27 2021 15:19:36 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS AuthRole                         AWS::IAM::Role             Tue Jul 27 2021 15:19:37 GMT+0100 (British Summer Time) Resource creation Initiated
CREATE_IN_PROGRESS UnauthRole                       AWS::IAM::Role             Tue Jul 27 2021 15:19:37 GMT+0100 (British Summer Time) Resource creation Initiated
CREATE_IN_PROGRESS DeploymentBucket                 AWS::S3::Bucket            Tue Jul 27 2021 15:19:37 GMT+0100 (British Summer Time) Resource creation Initiated
⠏ Initializing project in the cloud...

CREATE_COMPLETE UnauthRole AWS::IAM::Role Tue Jul 27 2021 15:19:53 GMT+0100 (British Summer Time)
CREATE_COMPLETE AuthRole   AWS::IAM::Role Tue Jul 27 2021 15:19:53 GMT+0100 (British Summer Time)
⠋ Initializing project in the cloud...

CREATE_COMPLETE DeploymentBucket AWS::S3::Bucket Tue Jul 27 2021 15:19:59 GMT+0100 (British Summer Time)
⠏ Initializing project in the cloud...

CREATE_COMPLETE amplify-appname-envone-151929 AWS::CloudFormation::Stack Tue Jul 27 2021 15:20:00 GMT+0100 (British Summer Time)
✔ Successfully created initial AWS cloud resources for deployments.
✔ Initialized provider successfully.
Initialized your environment successfully.

Your project has been successfully initialized and connected to the cloud!

Some next steps:
"amplify status" will show you what you've added already and if it's locally configured or deployed
"amplify add <category>" will allow you to add features like user login or a backend API
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify console" to open the Amplify Console and view your project status
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud

Pro tip:
Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything

Verify correct profile name was saved for this environment

$ cat amplify/.config/local-aws-info.json
{
  "envone": {
    "configLevel": "project",
    "useProfile": true,
    "profileName": "profile1"
  }
}

Initialize second environment 'envtwo' using profile 'profile2' - resource creation succeeds, but file upload to S3 fails (because it is using wrong profile, and does not have access)

$ amplify init
Note: It is recommended to run this command from the root of your app directory
? Do you want to use an existing environment? No
? Enter a name for the environment envtwo
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile

For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

? Please choose the profile you want to use profile2
Adding backend environment envtwo to AWS Amplify Console app: dxcd1wia5ve4r
⠦ Initializing project in the cloud...

CREATE_IN_PROGRESS amplify-appname-envtwo-152315 AWS::CloudFormation::Stack Tue Jul 27 2021 15:23:19 GMT+0100 (British Summer Time) User Initiated
CREATE_IN_PROGRESS AuthRole                         AWS::IAM::Role             Tue Jul 27 2021 15:23:22 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS DeploymentBucket                 AWS::S3::Bucket            Tue Jul 27 2021 15:23:22 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS UnauthRole                       AWS::IAM::Role             Tue Jul 27 2021 15:23:22 GMT+0100 (British Summer Time)
CREATE_IN_PROGRESS AuthRole                         AWS::IAM::Role             Tue Jul 27 2021 15:23:23 GMT+0100 (British Summer Time) Resource creation Initiated
CREATE_IN_PROGRESS UnauthRole                       AWS::IAM::Role             Tue Jul 27 2021 15:23:23 GMT+0100 (British Summer Time) Resource creation Initiated
CREATE_IN_PROGRESS DeploymentBucket                 AWS::S3::Bucket            Tue Jul 27 2021 15:23:23 GMT+0100 (British Summer Time) Resource creation Initiated
⠧ Initializing project in the cloud...

CREATE_COMPLETE AuthRole   AWS::IAM::Role Tue Jul 27 2021 15:23:38 GMT+0100 (British Summer Time)
CREATE_COMPLETE UnauthRole AWS::IAM::Role Tue Jul 27 2021 15:23:39 GMT+0100 (British Summer Time)
⠇ Initializing project in the cloud...

CREATE_COMPLETE DeploymentBucket AWS::S3::Bucket Tue Jul 27 2021 15:23:44 GMT+0100 (British Summer Time)
⠇ Initializing project in the cloud...

CREATE_COMPLETE amplify-appname-envtwo-152315 AWS::CloudFormation::Stack Tue Jul 27 2021 15:23:46 GMT+0100 (British Summer Time)
✔ Successfully created initial AWS cloud resources for deployments.
AccessDenied: Access Denied
    at Request.extractError (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/services/s3.js:714:35)
    at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at callNextListener (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
    at IncomingMessage.onEnd (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/event_listeners.js:336:13)
    at IncomingMessage.emit (node:events:406:35)
    at IncomingMessage.emit (node:domain:470:12)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'AccessDenied',
  region: null,
  time: 2021-07-27T14:23:52.394Z,
  requestId: 'M7REJE410GPJVJGX',
  extendedRequestId: 'cYR1vnRWhF5HUyBqrbeKtPhwVzaBLgKUHbGK1vUBI0NfyqXmX+FybcbbKHilNU+Yb5ZQm+g3oZ8=',
  cfId: undefined,
  statusCode: 403,
  retryable: false,
  retryDelay: 6.220773111939559
}

Observe  wrong profile name is saved in local-aws-info.json for second environment - it has profile1 instead of profile2, and ALL subsequent operations will fail until this is manually fixed:

$ cat amplify/.config/local-aws-info.json
{
  "envone": {
    "configLevel": "project",
    "useProfile": true,
    "profileName": "profile1"
  },
  "envtwo": {
    "configLevel": "project",
    "useProfile": true,
    "profileName": "profile1"
  }
}

This uncovers what should probably be filed as a separate issue: these failed-to-initialize environments are not removable using CLI - it aborts because file(s) are missing from S3:
$ amplify env remove envtwo
? Are you sure you want to continue? This CANNOT be undone. (This will delete 'envtwo' environment of the project from the cloud) Yes
⠋ Deleting resources from the cloud. This may take a few minutes...
Deleting env: envtwo.
⠸ Deleting resources from the cloud. This may take a few minutes...
Error occurred while deleting env: envtwo.
The specified key does not exist.
✖ remove env failed: The specified key does not exist.
The specified key does not exist.
NoSuchKey: The specified key does not exist.
    at Request.extractError (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/services/s3.js:714:35)
    at Request.callListeners (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)

After manually deleting S3 bucket, remove can clean up most of the rest (ie. the above should be a non-fatal error):
$ amplify env remove envtwo
? Are you sure you want to continue? This CANNOT be undone. (This will delete 'envtwo' environment of the project from the cloud) Yes
⠋ Deleting resources from the cloud. This may take a few minutes...
Deleting env: envtwo.
⠋ Deleting resources from the cloud.  :)

Same issue. We just upgraded from amplify CLI version 4.41.2 where this issue was not present, so it's been introduced sometime since then.

This issue was introduced between Amplify CLI version 5.1.1 and 5.1.2
These versions have been tested and confirmed to work: 4.41.2, 4.52.0, 5.0.0, 5.1.0, 5.1.1
These versions have been confirmed to fail: 5.1.2, 5.2.0, git HEAD
Using 'git bisect' I have narrowed the problem down to this commit:
7471c5fcc86af0e17a967066a388f67891f93355 - fix: #7441 - init from git prompts for credentials twice (#7682)
I cannot see what specific part of that commit is problematic, unfortunately there is a lot of noise in there from the renaming of awsConfig to awsConfigInfo.

We have a fix for this in the pipeline and we're working on a release for this - https://github.com/aws-amplify/amplify-cli/pull/7990

Closing as a duplicate of  #7977


pca() got an unexpected keyword argument 'robust'

when run pg.pca(TLCL01, robust=True)， something went wrong.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-36-37fe00e4764c> in <module>()
----> 1 pg.pca(TLCL01, robust=True)

/cluster/home/zfli/anaconda2/envs/peganew/lib/python3.6/site-packages/pegasusio/decorators.py in wrapper_timer(*args, **kwargs)
     10                 def wrapper_timer(*args, **kwargs):
     11                         start = time.perf_counter()
---> 12                         result = func(*args, **kwargs)
     13                         end = time.perf_counter()
     14                         message = f"Function '{func.__name__}' finished in {{:.{precision}f}}s.".format(end - start)

TypeError: pca() got an unexpected keyword argument 'robust'

But I have run pg.identify_robust_genes(TLCL01) before. So can anyone help me?

Looks like you are using the latest release of Pegasus (v1.3.0) but calling pg.pca using the old arguments.
In v1.3.0, we've fixed the reproducibility of PCA step, and therefore no need to keep robust parameter. (See https://pegasus.readthedocs.io/en/stable/release_notes.html#version-1-3)
In more details, we have realized past Pegasus versions are not exactly reproducible. For example, if you run Pegasus with multiple threads or on different operating systems, you may get qualitatively equivalent but different results (e.g. different clustering or rotation of UMAP) even with the same data, parameters and random seed. This issue would still happen even if you use docker images.
Pegasus is not the only tool that suffers this issue. SCANPY also has the same reproducibility issue (see https://github.com/theislab/scanpy/issues/1187 and https://github.com/theislab/single-cell-tutorial/issues/36). We both pinpointed that the issue is caused by sklearn's PCA routine and still did not know how to fix it for a long time. The SCANPY team even recommended to run PCA with a single thread in order to get reproducible outputs (https://github.com/theislab/scanpy/issues/1187). However, this solution is far from ideal --- it does not scale up and also does not work when running on different operating systems.
Fortunately, we have figured out a way of resolving this issue recently. Both SCANPY and Pegasus store the log expression matrix as single-precision floats (float32). When we run PCA on single-precision matrices, the maximum absolute difference of PC coordinates (of all cells) from two consecutive runs can be as high as 0.01, which for sure will change downstream analysis results. However, we found that if we use double-precision floats (float 64) instead, we can reduce the maximum absolute difference to 1e-11. This means that if we convert our matrix to float64 before running PCA and then convert the PC coordinates back to float32, we would have 99.99% of PC coordinates exactly the same and the outliers with a maximum difference ~ 1e-7.
We have tested this new solution in many scenarios, such as consecutive executions, running with different numbers of threads and running on different operating systems. The new solution works very well and gives almost identical PC coordinates in all tested scenarios.
Hope it helps. And please see https://pegasus.readthedocs.io/en/stable/api/pegasus.pca.html#pegasus.pca for its up-to-date API.

Looks like you are using the latest release of Pegasus (v1.3.0) but calling pg.pca using the old arguments.
In v1.3.0, we've fixed the reproducibility of PCA step, and therefore no need to keep robust parameter. (See https://pegasus.readthedocs.io/en/stable/release_notes.html#version-1-3)
In more details, we have realized past Pegasus versions are not exactly reproducible. For example, if you run Pegasus with multiple threads or on different operating systems, you may get qualitatively equivalent but different results (e.g. different clustering or rotation of UMAP) even with the same data, parameters and random seed. This issue would still happen even if you use docker images.
Pegasus is not the only tool that suffers this issue. SCANPY also has the same reproducibility issue (see theislab/scanpy#1187 and theislab/single-cell-tutorial#36). We both pinpointed that the issue is caused by sklearn's PCA routine and still did not know how to fix it for a long time. The SCANPY team even recommended to run PCA with a single thread in order to get reproducible outputs (theislab/scanpy#1187). However, this solution is far from ideal --- it does not scale up and also does not work when running on different operating systems.
Fortunately, we have figured out a way of resolving this issue recently. Both SCANPY and Pegasus store the log expression matrix as single-precision floats (float32). When we run PCA on single-precision matrices, the maximum absolute difference of PC coordinates (of all cells) from two consecutive runs can be as high as 0.01, which for sure will change downstream analysis results. However, we found that if we use double-precision floats (float 64) instead, we can reduce the maximum absolute difference to 1e-11. This means that if we convert our matrix to float64 before running PCA and then convert the PC coordinates back to float32, we would have 99.99% of PC coordinates exactly the same and the outliers with a maximum difference ~ 1e-7.
We have tested this new solution in many scenarios, such as consecutive executions, running with different numbers of threads and running on different operating systems. The new solution works very well and gives almost identical PC coordinates in all tested scenarios.
Hope it helps. And please see https://pegasus.readthedocs.io/en/stable/api/pegasus.pca.html#pegasus.pca for its up-to-date API.

I got it！Thanks！


specs, add test for encode integer as string

Fix https://github.com/Azure/cadl-ranch/issues/634
Not include case of "query" and "header", because they are always string on wire.
"body property" tests on

safeint (int64) as required property
uint32 as optional property

Cadl Ranch Contribution Checklist:

[x] I have written a scenario spec
[x] I have meaningful @scenario names. Someone can look at the list of scenarios and understand what I'm covering.
[x] I have written a mock API
[x] I have used @scenarioDocs for extra scenario description and to tell people how to pass my mock api check.

shall we change the folder to numeric? the previous tests for encode is named by original type name.

Make sense. Moved to encode/numeric folder (and namespace).


Add debugger collapse tree option

Adds a button to collapse/expand the entire tree in the debugger's View and Data panels. Also adds a small new toolbar above the tree view (to hold the button).

@hmorgancode could you take a look at the modifications I made to the styles in bb5e547? If you don't them we can revert, but I thought this way the collapse all button fit in a little better.


Error: 'NullAwareElement' isn't a type.

Describe the bug
Since 0.6.9, this error appears when I run build_runner.
I tried downgrading to 0.6.5, and this issue disappeared. Seems to only be an issue with 0.6.9? Thanks!
[WARNING] ../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:818:30: Error: Type 'NullAwareElement' not found.
  void visitNullAwareElement(NullAwareElement node) {
                             ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:2160:28: Error: Type 'NullAwareElement' not found.
  final List<_Subscription<NullAwareElement>> _forNullAwareElement = [];
                           ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:2162:33: Error: Type 'NullAwareElement' not found.
      String key, void Function(NullAwareElement node) listener) {
                                ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:3365:42: Error: Type 'NullAwareElement' not found.
  void addNullAwareElement(void Function(NullAwareElement node) listener) {
                                         ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:818:30: Error: 'NullAwareElement' isn't a type.
  void visitNullAwareElement(NullAwareElement node) {
                             ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:820:11: Error: Superclass has no method named 'visitNullAwareElement'.
    super.visitNullAwareElement(node);
          ^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:2160:28: Error: 'NullAwareElement' isn't a type.
  final List<_Subscription<NullAwareElement>> _forNullAwareElement = [];
                           ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:2162:33: Error: 'NullAwareElement' isn't a type.
      String key, void Function(NullAwareElement node) listener) {
                                ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/custom_lint_core-0.6.9/lib/src/node_lint_visitor.g.dart:3365:42: Error: 'NullAwareElement' isn't a type.
  void addNullAwareElement(void Function(NullAwareElement node) listener) {
                                         ^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 3.2s

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.```

Dang it, I forgot to bump the minimum analyzer to 6.10.0
Give me a second

Actually, custom-lint-core does require analyzer 6.10.0 already
What analyzer version did you download locally? You can look at your /.dart_tool/package_config.json to know

dev_dependencies:
  build_runner: ^2.4.13
  freezed: ^2.5.7
  json_serializable: ^6.8.0
  hive_generator: ^2.0.1
  flutter_lints: ^5.0.0
  riverpod_generator: ^2.4.3
  copy_with_extension_gen: ^5.0.4
  isar_generator: ^3.1.0+1
  analyzer: ^6.9.0

dependency_overrides:
  analyzer: ">=6.8.0 <6.12.0"
  web: any
  flutter_lints: ^5.0.0
  collection: "1.19.0"

the same problem

temporary solution
dependency_overrides:
  custom_lint_core: 0.6.5

Your dependency_override could be the issue here.
custom_lint 0.6.9 and above requires analyzer 6.10.0.

I have tried this plan, but I got an error
Because analyzer >=6.9.0 depends on macros >=0.1.3-main.0 <0.1.4 which depends on _macros 0.3.3 from sdk, analyzer >=6.9.0 requires _macros 0.3.3 from sdk.
So, because no versions of _macros from sdk match 0.3.3 and erp_system depends on analyzer >=6.10.0 <6.12.0, version solving failed.

flutter 3.24.3

You may have to upgrade your Dart SDK (and use Flutter's master channel if necessary).
custom_lint is using the latest analyzer. From there's it's about making sure your other packages use the latest analyzer too.

Ohh I see. We're currently on analyzer: "6.7.0", so maybe that's the issue. Some of our packages are still outdated. Thank you for the response :D

For anyone experiencing this problem you have to downgrade custom_lint to a fixed version 0.6.7 or lower AND also have a dependency override for custom_lint_core to 0.6.5
@rrousselGit may be not such a good idea to push versions that are depending on bleeding edge versions of flutter/dart as a minor version upgrades, since most users use ^ for version spec and they might unknowingly pull a version that is not compatible with the stable flutter channel (which is probably mostly used for all production apps).
Also might be a good idea to bump the analyzer version in the pubspec of the package, in order to indicate that the version they are using is not compatible with the old analyzer. Right now it is set as ^6.6.0 yet, the package is using features from 6.10.0

The analyzer version is already bumped.
custom_lint doesn't use 6.10.0
custom_lint_core does, and it does use the correct version.

may be not such a good idea to push versions that are depending on bleeding edge versions of flutter/dart as a minor version upgrades

That's not custom_lint's issue. That's pub's issue.
The problem isn't ^. It's that given a package with version 6.1.1, folks install it as ^6.1.1 instead of ^6.0.0.
That's because that's how pub add and the copy-paste from pub.dev defaults.

But it looks like the tight constraint on custom_lint_core was inadvertently changed to use custom_lint_core: ^...
That's a problem. I'll revert that.


which command can be use to replace 'systemctl deamon-reload'

Environment
ubuntu Release:        20.04

i want to set the docker proxy and then refresh it by using 'systemctl deamon-reload',but got 'Unknown operation deamon-reload'.try 'chkconfig docker --add' then got 'chkconfig: command not found'. i had search in many ways  but isn't working.

systemctl is #1579. There is a discussion thread about running docker inside WSL2 at #4872. The OP of that thread was about Debian, but the discussion applies just as well to any distro. Or feel free to open a new discussion for your use case.

systemctl is #1579. There is a discussion thread about running docker inside WSL2 at #4872. The OP of that thread was about Debian, but the discussion applies just as well to any distro. Or feel free to open a new discussion for your use case.


Verizon CDN reports documentation?

I'm not sure if this is the correct place.. but I can't find any documentation on the actual reports.
For example.  Total hits when looking at "By File" and "World Map" show different numbers.  I assume this is because one might ignore 404 hits or some other types of requests.  I was wondering if there was anywhere that explains details for each report.

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

ID: 024ca3e3-a8be-d77f-f613-a2470137f0d2
Version Independent ID: c00eb6ef-eb23-ccc3-2215-827c45bf888c
Content: Custom Reports from Verizon
Content Source: articles/cdn/cdn-verizon-custom-reports.md
Service: azure-cdn
GitHub Login: @mdgattuso
Microsoft Alias: magattus

@kevin-dfo Thanks for your question. We are checking on this and will respond to you soon.

@kevin-dfo Thanks for the feedback! I am not aware of a place that has this additional info, but it should be added to the doc.
I have assigned the issue to the content author to evaluate and update as appropriate.

Assigning to PM for review
#reassign:@amitsriva

GitHub user mdgattuso has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#reassign: gunjanj

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Abnormally high, varied latency

My miners appear to have very high latency for share submission - varying from 70-300ms.

My geth node is on the same network (same machine in fact), and my psql is in the same Ubuntu machine.
I am using virtual machine software to run Ubuntu. Everything is operating on a high end NVMe PCIe Gen 4 SSD, so disk throughput shouldn't be a concern.
This varied ping is happening both on remote and local networks. I've ensured that the latency between the remote networks is low.
This is the first time I've operated with a pool, so I might not have covered all my bases. Is this the result of latency with Miningcore, or is this the result of the peer system on geth?

After allowing geth node to mature a little bit and letting the pool run, it seems latency has become much more stable.


http2: guarding against stream reset before stream creation

Right now if we call newStream and then reset the stream before sending headers, we attempt to have the codec send a reset stream to stream_id -1.  nghttp2 appears to silently swallow this without complaint. oghttp2 will soon as well but either way it doesn't make sense to reset the stream before a stream id has been assigned.
Risk Level: low
Testing: new unit test
Docs Changes: n/a
Release Notes: n/a

cc @birenroy thanks for helping me confirm this weirdness :-)

@wbpcode ping


readeck: init at 0.14.0

Description of changes
https://readeck.org/en/
Very much a work in progress. Still have to do a cleanup, create a service and tests.

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@patka-123 Any more interest in this? I just discovered Readeck myself.

I'll put this here in case anyone is still interested.
https://codeberg.org/kampka/nix-flake-readeck

Sorry, but no, I'm currently not interested in upstreaming much.


Syntax highlighting incorrectly highlights quoted string in command

Repro case:
title: InitGlobal
---
<<TODO "Initialize anything">>
===

produces the following:

This is on version 2.0, released on 12/18

I had a hunch as to this and it turned out to be correct. Not sure what the best fix should be at this stage but writing this down so I don't forget the cause.
The issue is in SemanticTokenVisitor.cs SplitCommandText function in the LSP.
That correctly identifies in the above example there are two tokens TODO and Initialize anything but because that splitting code is dropping the the "'s at either end (because its mostly the correct thing to do) the range of the token is off by two.
This is where the trick is, by default the extension will use a basic syntax highlighter that will see "Initialize anything" as a String later the LSP runs and goes "yeah nah that isn't a string its a parameter" which is correct but because the LSPs tokens are two shorter the last two characters are still using their initial "I am a string" settings they got from the first Syntax highlight pass.
I suppose can just add the "'s back in but I would have to check if that causes issues with other parts of the LSP that check the validity of commands.


Feature request: Delete CloudFormation stack only if RECREATE_CLOUDFORMATION flag is present

Running multiples times the same or similar tests takes a time to recreate the environment.
Would be great to have the feature to indicate which part of environment we like to re-create.
We can cover with this:
RECREATE_CLOUDFORMATION
RECREATE_CLUSTER_INSTANCES
etc..

We have considered this, but recently have been looking at supporting Fargate.  See #12.
Fargate supports billing my the minute vs by the hour, which would be a perfect match for JMeter.

EC2 instances are available for pay per second (min 60 seconds) already.
So I assume switching to Fargate only may improve the instances initialization time (hope it makes it faster), but actually not to costs or I missed something here?

I had forgotten AWS made the per-minute change in October.
The two main benefits would be speed and flexibility.  Cluster initialization would be faster, and we would no longer need to specify an instance type.  Currently, we have to match memory size used via the docker-compose.yml file and the instance type.
However, Fargate will increase the complexity of Lucy's job.  Lucy makes heavy use of the aws ec2 describe-instances CLI API which no longer functions, so this is a re-design.
Now with AWS Per-minute pricing, maybe it makes more sense to implement this suggestion first.

I have a solution ready for test.  You can use smithmicro/lucy:feature-18 and pass --env CLUSTER_DELETE=false on the docker run command line.
This new CLUSTER_DELETE environment variable simply skips the ecs-cli down --cluster $CLUSTER_NAME --force command in Lucy's script.  The beginning of the script was modified to detect if the cluster is already running and checks to see if the instance count is the same.  If so, it skips the create step.  If the requested MINION_COUNT is different the cluster is re-created, or it creates the cluster if it does not exist.

I have pushed the changes so you can now do RETAIN_CLUSTER tests with smithmicro/lucy:latest.  I will keep this open until you can confirm everything is working as expected.

I think is missing to update the task definition in the service.
I run it few times, and all the time it uses the same task definition version.

Updating the Task Definition is the job of ecs-cli.  During the ecs-cli compose --file /opt/jmeter/lucy.yml up --cluster $CLUSTER_NAME Lucy step, the tool will decide to bump the Task definition version if the contents of lucy.yml change.  Sometimes I have seen it bump the version without any changes to lucy.yml.  I am unsure why that is.
Does that help?

works perfect. Thank you  for the feature!


Adding a swag link in the nav

Resolves
https://github.com/OperationCode/operationcode/issues/486

Looks good - thanks!


Duende.AccessTokenManagement and IDistributedCache timeout

Which version of Duende IdentityServer are you using?
We are only using Duende.AccessTokenManagement package v2.0.1
Which version of .NET are you using?
Dotnet core 7
Describe the bug
We experienced a drop in connectivity towards Azure cache for redis today (approx. 5 minutes) and as a result the Duende.AccessTokenManagement was not able to get values from the IDistributedCache, since the call resulted in a redis timeout exception thrown back to the application.
Additional context
Our question:
We are using IClientCredentialsTokenManagementService to obtain an access token using GetAccessTokenAsync. When a timeout occurs (in our case a timeout towards Azure cache for Redis) this method throws an exception instead of returning a token.
Have you considered handling exceptions from the IDistributedCache as a cachemiss and then just returning a new token?

Merged, thanks


Better exit

Pull Request Test Coverage Report for Build d320fa007509511904ed8c15d8a65050a22dc08a-PR-258

2 of 2 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.859%

Totals

Change from base Build 5c4421cad7cddaf4458077f6133b89e7802b6288:
0.0%

Covered Lines:
595

Relevant Lines:
693

💛  - Coveralls


roll out new debian 11 ci image

for https://github.com/paritytech/ci_cd/issues/766

@altaua Disable the cache on substrate before merging this.


Memory testing

Blocked, waiting on https://github.com/jguhlin/minimap2-rs/pull/40 to be merged.
This PR rewrites the thread pool to be a permanently waiting pool, rather than spawning a new pool each map_batch call.
An improvement to be made would be to park the threads, rather than sleep them but the effect is the same.
There is some memory weirdness around using Py<PyAny>> to store the Dictionary on the side
Waiting until the minimap2-rs crate is updated as currently references a local version that only exists on my laptop.

This release switches from spawning threads every time map_batch is called to having a long running thread pool on the Aligner class, which is created if enable_threading is called. This is a naive implementation, but it does work.
adds some complexity in passing reads into the threadpool via an ArrayQueue and then transferring them back to map_batch, where they are passed on again to the AlignmentBatchResultIter.
Some unused methods are added for catching memory leaks, which I intend to implement in PyTest. These are map_no_op on the PyMethods Aligner struct and no_op_map on the impl Aligner. Respectively, these take in a sequence and return a Pr e created  Alignment and create the pre created alignment to be returned.


[Bug] Package function breaks when package name contains single quotes

Hey guys,
I'd like to report the following error:
Describe 'Appsense is installed and configured' {
    Context 'Appsense Agents are installed' {
        Package "AppSense Application Manager Agent 8.9 SP1" Version { Should Be '8.9.451.0' }
        Package "AppSense Application Manager Configuration 'xzy-Desktop' <IP_ADDRESS>" Version { Should Be '<IP_ADDRESS>' }
    }
}

The first package function call works while the second doesn't recognize the name parameter properly:
[-] Package property 'Version' for 'AppSense Application Manager Configuration 'xyz-Desktop' <IP_ADDRESS>' Should Be '<IP_ADDRESS>' 67ms
  ParameterBindingException: A positional parameter cannot be found that accepts argument "xyz-Desktop <IP_ADDRESS>".
  at <ScriptBlock>, <No file>: Line 1
  at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\poshspec\2.1.12\Private\Invoke-PoshspecExpression.ps1: Line 12
  at Invoke-Test, C:\Program Files\WindowsPowerShell\Modules\pester\3.4.1\Functions\It.ps1: Line 253
  at ItImpl, C:\Program Files\WindowsPowerShell\Modules\pester\3.4.1\Functions\It.ps1: Line 203
  at It, C:\Program Files\WindowsPowerShell\Modules\pester\3.4.1\Functions\It.ps1: Line 117
  at Invoke-PoshspecExpression, C:\Program Files\WindowsPowerShell\Modules\poshspec\2.1.12\Private\Invoke-PoshspecExpression.ps1: Line 11
  at Package, C:\Program Files\WindowsPowerShell\Modules\poshspec\2.1.12\Public\Package.ps1: Line 42
  at <ScriptBlock>, \\fileserver\citrix$\citrix-scripts\OperationalValidation\WTS\Tests\Diagnostics\Simple\02-Citrix\Appsense.Tests.ps1: Line 9
  at Context, C:\Program Files\WindowsPowerShell\Modules\pester\3.4.1\Functions\Context.ps1: Line 66
  at <ScriptBlock>, \\fileserver\citrix$\citrix-scripts\OperationalValidation\WTS\Tests\Diagnostics\Simple\02-Citrix\Appsense.Tests.ps1: Line 2
  at Describe, C:\Program Files\WindowsPowerShell\Modules\pester\3.4.1\Functions\Describe.ps1: Line 103
  at <ScriptBlock>, \\fileserver\citrix$\citrix-scripts\OperationalValidation\WTS\Tests\Diagnostics\Simple\02-Citrix\Appsense.Tests.ps1: Line 1

The package can be found with the Get-Package cmdlet:
PS C:\> Get-Package -Name "AppSense Application Manager Configuration 'xyz-Desktop' <IP_ADDRESS>"

Name                           Version          Source                         Summary
----                           -------          ------                         -------
AppSense Application Manage... <IP_ADDRESS>         C:\Program Files\AppSense\M...

I guess this is an internal quotation handling problem.

I've built a release that includes the PRs related to Package. I haven't done any functional testing on it myself, yet.
https://github.com/Ticketmaster/poshspec/releases/tag/v2.1.14-pre

The fix works for me. 👍


Publish new packages to Rubygems?

Hey new maintainers!
So glad I found this fork with all the nice upgrades.
Not sure if you've contacted @krobertson about gem ownership on rubygems, but it'd be great to migrate the rubygems version to this repository.
If not, could you publish as a new package name maybe?
I filed a likewise issue on the original repo - https://github.com/krobertson/deb-s3/issues/170

+1

Would be nice to do so, but unfortunately i do not have the ownership and @krobertson has not answered to me yet.

@morph027 happened to see the email come in, you should have a request to confirm being added to the gem.

Wow, thank you! :star_struck:

Uploaded latest version to rubygems.


poor user feedback led to double posting

When I submitted https://railsconfevents.com/events/18 I didn't see it on the list so I submitted https://railsconfevents.com/events/19
Please show the submitted event to confirm it's been received.

Thanks for the bug report! I'll try to fix it soon... Kinda hard while the conference is still happening though :-)


Temp files shouldn't go into nml_mods

Temporary files made while generating this should go into a /temp/ folder of some sort instead of directly in nml_mods

Temporary files made while generating this should go into a /temp/ folder of some sort instead of directly in nml_mods

https://en.wikipedia.org/wiki/Temporary_folder
On the unis-based systems, I imagine /tmp would be a good place to store it. Though, IEEE 1003.1-2017 does specify a TMPDIR environmental variable (https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap10.html). It seems that POSIX encourages using TMPDIR over /tmp. From what I can tell, the convention is to use TMPDIR if it exists, otherwise use /tmp: ${TMPDIR:-/tmp}
On windows, if I understand correctly (could be wrong idk) the TMP or TEMP variables should be used to point to the temporary directory. That's pretty much all I'm aware of on the Windows side of things.

Fixed in version 1.1.3

I updated to use System.IO.Path.GetTempPath() in 4cfa8463316d6b3b7344feba16b8e922dd3df7b3


crash

Minecraft: [1.19.2 Fabric]
Mod: [Extra Sounds]
Details
latest.log
i tried to open the game after adding this mod and it crashes(optfine+optifabric)
PLEASE attach your latest.log (and crash log if your game crashes), makes it much easier to troubleshoot, thank you!
You can also run the game with the -Dextrasounds.debug=true Java launch parameter to see more info about what's going on.

Optifabric issue, working on seeing what I can do.
Tracked on #69


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 12:09:29 on 2023.06.13
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 1, errors out: 0
Original problem ID: 28607
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=28607

Problem has been resolved in 3m 0s at 12:12:29 on 2023.06.13
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 28607


Is there a way  to search for  jira username by email using user/picker in jira-lita.

My question is that the jira  ticket gets created with the user id of the jira identified in lita_config.rb for jira, but is there a way to change this creator based on  located in redis   email?

Good question!  Currently no, there's no way to adjust the user that creates a TODO, however that wouldn't be too difficult to add in.  I don't know when I'll have time to do so, so I'll keep this issue open, but if you check out the code at https://github.com/esigler/lita-jira/blob/master/lib/jirahelper/issue.rb#L60 I'd be open to a PR to add this in.


VnV Plan Feedback from TA

Spelling and Grammar Style

Punctuation, quotation marks fixed
Symbolic Parameters added: table in appendix

Tables changed to have horizontal bars

Plan

More specific info added on team member roles
Added additional requirements verification method of discussion with stakeholders

Added more information about automated testing

Non-functional tests
-Non-functional tests of P-C1 and UH-P1 updated with better fit criteria

Non-dynamic Testing
-Included info about ESLint for static code analysis

More info included about surveys, demos and how their feedback will be used to improve Housemates


Add GitHub Action-step to Publish to 'Maven Central Repository'

Checklist

[x] Closes #94
[ ] ~Documentation (README.md) has been updated~
[ ] ~Version number updated in pom.xml and licenseInfo.mustache~
[ ] ~Project has been compiled with mvn clean install~
[ ] ~Updated generated-sources-files have been committed~

All Secrets have been added

Maybe this works, or it won't...


gatio ExchangeSpecification tradeService.getOpenOrders()  interface very slow

1.why use gateio original api is much faster than then ExchangeSpecification  tradeService.getOpenOrders()?
2.Did the ExchangeSpecification support config  HttpConnectionPool?

could you please add some testing on the project.

3 feature requests in one issue
if you want to improve this library please prepare z pull request
more tests and support for connection pooling would be welcomed


samples: update the sample to use the Google Analytics Data API v1 beta

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕

@chingor13 @lesv Apologies for a super delayed response, as we have discovered an issue with the proto and had to delay a Beta release. The PR is now ready for review.


DEBUG: Continuous Integration Tests Failing

When running the continuous integration tests, we attempt to clone a bootstrap repository that we do not have access to. As the continuous integration tests are run in my local development environment, where I am using my own Github access token produced by  github-dev.students.cs.ubc.ca, I cannot access the github.com/SECapstone/bootstrap repo with the same token. This application is configured to ONLY use one token at a time.
 2019-7-10 15:48:40: GitHubAction::importRepoFS( https://github.com/SECapstone/bootstrap, https://github-dev.students.cs.ubc.ca/classytest/TESTrepo1 ) - start
 2019-7-10 15:48:40: GitHubActions::importRepoFS(..)::cloneRepo() - cloning: https://github.com/SECapstone/bootstrap
Password for<EMAIL_ADDRESS>At one point, the Github repo above was public according to the comment in the image below, but it is now password protected or removed.

Does this repo have any significance? What will happen if I change it in CircleCI?
Task: Understand how CI tests in Backend Portal are moved into Circle CI. Are Circle CI tests different? Why can Circle CI successfully clone the repo and pass its tests?

After running the integration tests in full, about 60 tests are failing. The failures are likely due to some inherit differences between test and development .env logic, which we may be unlikely to merge at this point.
I am waiting to hear more about how Reid has setup the CircleCI instance and configured it to run its tests.

Temporary:
Commented out tests:

'Should be able to provision a repo' && 'Should fail to provision a repo that already exists' form GithubControllerSpec.
'Should be able to clone a source repo into a newly created repository' from GithubActionSpec.

Fixes:

Line 173 contains ORGTEST, which we must change to a Github organization that our Github token has access to.
Line 172 should likely be:

"## GitHub org identifier for the test organization (you probably do not want to change this)"

"## GitHub org identifier for the test organization (Your Github token needs access to 'classytest')"

Line 176's NAMETEST variable is still set to the orgiinal "classytest" recommended variable.

The tests seem to run better with this configuration, as 51 tests fail instead of 63.

There may also be a legitimate bug that is causing all of the Admin Routes to fail with a 401 Unauthorized Error:

The kind field is null. This also occurs in my localhost development environment occasionally, after manually setting my kind permission to 'admin'.

This is not a bug, as the kind field is set by the Github organization team that 'staff', 'admin', or 'student' users find themselves in.

There may also be a legitimate bug that is causing all of the Admin Routes to fail with a 401 Unauthorized Error:

The kind field is null. This also occurs in my localhost development environment occasionally, after manually setting my kind permission to 'admin'.

The integration tests were setup to use Github public and the Github token has access to multiple repositories, which results in the integration tests failing because we were using a Github Enterprise instance that did not have access to some Github Public repos that are used in random tests.


Rish1397 windows automation

Added Windows build workflow with jobs of building artefacts(.exe and .zip) from tarball distribution and releasing it in S3 after testing. For testing the artefacts, integTest of Alerting and ISM plugins are leveraged.

Windows artefacts are built from TAR distribution as their base and don't involve plugin installation. Therefore added the check for the availability of TAR artefact in the scripts opendistro-windows-build.sh and opendistro-windows-kibana-build.sh. The check would make the scripts exit with code 1 causing the build jobs to fail in case of unavailability of TAR artefacts in the staging.


Format: Blank lines before classes minor inconsistency

ruff format generally adds two blank lines between a class and a previous commented line.
But it does not if the class is the first line of code of the file.
Not a bug and only a minor inconsistency, but also black does always add two blank lines, so just documenting the behavior here.
Reproducible example
Consider following file ruff_inconsistency.py:
# a = 1  # uncomment to change behavior

# comment

class A:
    def foo(self):
        pass

# comment

class B:
    def bar(self):
        pass

will format into:
# a = 1  # uncomment to change behavior

# comment

class A:
    def foo(self):
        pass

# comment

class B:
    def bar(self):
        pass

We can see a single blank line before class A: but two blank lines before class B:.
As a note, black does not exhibit that behavior, and consistently add two blank lines:
$ diff <(black -q - < ruff_inconsistency.py) <(ruff format -q - < ruff_inconsistency.py)
5d4
<

Versions
$ ruff --version
ruff 0.1.2

$ black --version
black, 23.10.0 (compiled: no)
Python (CPython) 3.12.0

Thanks!


Feature request: checking pull rate limits

We have instructions to check your limits using HEAD manifest requests here: https://docs.docker.com/docker-hub/download-rate-limit/#how-can-i-check-my-current-rate
Would be great to incorporate that into hub-tool. Even better if you can add a flag to check as your user (authenticated) versus anonymous (by IP).

You can do hub-tool account rate-limiting right now. The ability to go between authenticated and anonymous isn't there though.

🤦 I need to play around with the tool more
I'll go ahead and change this to reflect just the authenticate/anonymous aspect.


MM-19734 Patch RN to remove the placeholder for emojis in a markdown

Summary
There is an outstanding bug in RN that adds a placeholder to an image where the image is inside a Text node, this happens only on iOS 13 but the fix does not causes side effects in previous iOS versions.
The RN commit is https://github.com/facebook/react-native/commit/06599b3e594355a1d5062ede049ff3e333285516 but has not been cherry-picked to any of the current releases
Ticket Link
https://mattermost.atlassian.net/browse/MM-19734

Noticed. For some reason almost every PR on their OSS repo fails, so I wouldn’t be worried about that