text:
Checking __typename in middleware

Is there any way that I can extract the __typename of a resolver response in my middleware?

Hmm, have you tried digging into the info argument? I know there's a lot of information there.
If you want to check the type of an object you are going to return and is already computed, how about you add a simple check that accesses the obj.__typename field and decides what to do? You might need to be a bit more cautious when it comes to your queries, as you might need to include that in every query, but you can resolve that using fragments.
https://github.com/maticzav/graphql-middleware#middleware-fragments

source: gharchive/issue

authors: andres-valdes maticzav

repo: maticzav/graphql-middleware

license: MIT

license_type: permissive

license_source: github-api


text:
spelling FormatedText->FormattedText

minor spelling fix

Thank you.

source: gharchive/pull-request

repo: matplotlib/data-prototype


text:
Create a matplotlibrc file

Currently we set style options using several lines of code:
https://github.com/matplotlib/napari-matplotlib/blob/1ec14d3662b740be1ce6f50e285b36deb3a1dda8/src/napari_matplotlib/base.py#L9-L13
Instead we should put these in a matplotlibrc file, to reduce lines of code, and make it easier to edit and see what style settings are being set all in one go.

Hey @dstansby ! Sorry for my ignorance of how matplotlib configs work, but is setting the configs in this manner "global"? One common use case in napari is people launch a viewer from a jupyter notebook and I think we want to make sure that styling changes made in the plot do not affect styling of plots in the notebook.

Just tried adding a mplstyle file to the repo but this changes plotting in Jupyterlab as well :/

I think the way to fix that is use the instructions at https://matplotlib.org/stable/tutorials/introductory/customizing.html#temporary-rc-settings to use a context manager inside napari-matplotlib.

Thanks for the link - would you then add the decorator to every call to the draw() function in the derived widget(s)? Sorry, I haven't worked much with more intricate matplotlib designs, neither.

I think it would be sufficient to put a context manager around this line:
https://github.com/matplotlib/napari-matplotlib/blob/4b46774244f42b71b3a24a62ccfa72f357610205/src/napari_matplotlib/base.py#L100
and also anywhere a new Axes is created in the non-base widgets.

Thanks @dstansby ,
I tried a few things and it seems that the context manager has to go where the axes object is created, for instance here in the Histogram widget:
https://github.com/matplotlib/napari-matplotlib/blob/081d4b63d36fff3c6f6d72f5f8474b5318b6ede5/src/napari_matplotlib/histogram.py#L21

Hi @dstansby, I think this was fixed by #65. The point of a rc file was to not have to set the colors of labels/spines/etc one by one but do it globally. Having this in the set_default_colorscheme function makes this irrelevant, I believe.

Going to close this, since work ongoing in other issues and PRs covers this.

authors: dstansby jo-mueller kevinyamauchi

repo: matplotlib/napari-matplotlib


text:
We need to either fix the "invite a new user" experience or get rid of it.

I've done some involuntary hallway testing with friends & family, trying to get them on Matrix (specifically on matrix.org). Some of them are technologically proficient, others newbies.
This included:

the "share this room" link;
the "invite-by-email" feature;
both the web client and the Android client.

From 6 people, only two managed to get invites to work, and these are not the proficient users. The others left convinced that Element is broken, "can't replace WhatsApp", etc.
We really need to fix this experience.

I think it might be more of a UX issue (hence normally filed under element-web in the first instance, even though it spans multiple clients) than a spec issue, to be honest. It's not obvious from the report what would be changed at the spec (or server) level.

I feel this is largely a duplicate of https://github.com/matrix-org/matrix-doc/issues/2971

authors: Yoric richvdh turt2live

repo: matrix-org/matrix-doc


text:
Spec POST /publicRooms API

This mainly is about spec'ing pagination. See https://github.com/matrix-org/synapse/pull/1121

nobody seems to know what this means. https://github.com/matrix-org/matrix-doc/pull/388 looks like it covered the changes in matrix-org/synapse#1121.

authors: erikjohnston richvdh


text:
Clarify use of client for development use

Regular users are not expected to need the provided client implementation and can instead go straight to their regular Matrix client and log in to use the sliding-sync proxy.
Fixes: https://github.com/matrix-org/sliding-sync/issues/28
Rendered: https://github.com/matrix-org/sliding-sync/blob/c55af5167cec84108304bc9070ed0cd210a344ca/README.md

I'm not sure if this is direct enough. Let me know if anyone thinks it should be more clear

I think GitHub is still a bit broken. I force-pushed a new commit but this PR isn't showing the change
https://github.com/frebib/sliding-sync/commit/f2803ac1ca40369a9a58d0b0d8a3f25c2e43409f

This needs sign-off though please @frebib

Sign-off how? The commit is already signed-off: https://github.com/matrix-org/sliding-sync/pull/40/commits/5735470e734388f2f96326bd01f3db0caba460c6

This needs sign-off though please @frebib

Sign-off how? The commit is already signed-off: 5735470

Good enough for me. Many thanks!

authors: DMRobertson frebib kegsay

repo: matrix-org/sliding-sync


text:
Artwork error causing crash

When I play Music everything works OK, however when I play a TV Show or TV Recording sometimes I get the following error :
Unexpected error:  <class 'UnboundLocalError'>
Traceback (most recent call last):
File "kodi_panel_fb.py", line 89, in
kodi_panel_display.main(device)
File "/home/pi/kodi_panel/kodi_panel_display.py", line 1507, in main
update_display()
File "/home/pi/kodi_panel/kodi_panel_display.py", line 1314, in update_display
video_screens(image, draw, video_info, prog)
File "/home/pi/kodi_panel/kodi_panel_display.py", line 1116, in video_screens
_static_image = video_screen_static(info)
File "/home/pi/kodi_panel/kodi_panel_display.py", line 1038, in video_screen_static
layout["thumb"]["width"], layout["thumb"]["height"])
File "/home/pi/kodi_panel/kodi_panel_display.py", line 525, in get_artwork
r = requests.get(image_url, stream = True)
UnboundLocalError: local variable 'image_url' referenced before assignment

There are some debug print() statements that are currently commented out on Lines 500, 517, and 521.  Can you uncomment those, start kodi_display, and give it a try again?
That will let us see what get_artwork() is dealing with.  Hopefully that is sufficient information, otherwise we may have to go further back and see what sort of response the JSON-RPC call in update_screen() on Lines 1277-1297 is getting.  (There is a print statement on Line 1297 toward that end.  Uncommenting it, though, prints the potentially length response every second.)
Thanks!

There are some debug print() statements that are currently commented out on Lines 500, 517, and 521.  Can you uncomment those, start kodi_display, and give it a try again?
That will let us see what get_artwork() is dealing with.  Hopefully that is sufficient information, otherwise we may have to go further back and see what sort of response the JSON-RPC call in update_screen() on Lines 1277-1297 is getting.  (There is a print statement on Line 1297 toward that end.  Uncommenting it, though, prints the potentially length response every second.)
Thanks!

The line numbers all reference kodi_panel_display.py of course.

The line numbers all reference kodi_panel_display.py of course.

One guess is that the episodes triggering the error have no artwork.  If you examine the start of get_artwork(), it checks for the cover_path being either empty or the literal DefaultAlbumCover.png.
    if (cover_path != '' and
        cover_path != 'DefaultAlbumCover.png' and
        not _airtunes_re.match(cover_path)):

Kodi could well have some other file that it uses by default for movies and/or TV episodes that don't have artwork.  If that's the case, then kodi_panel_display.py will need some updates to handle those defaults, similar to what's done now with _default_thumb.  At present, there's only a single default that is intended for audio -- that will have to be expanded to other categories.

One guess is that the episodes triggering the error have no artwork.  If you examine the start of get_artwork(), it checks for the cover_path being either empty or the literal DefaultAlbumCover.png.
    if (cover_path != '' and
        cover_path != 'DefaultAlbumCover.png' and
        not _airtunes_re.match(cover_path)):

Kodi could well have some other file that it uses by default for movies and/or TV episodes that don't have artwork.  If that's the case, then kodi_panel_display.py will need some updates to handle those defaults, similar to what's done now with _default_thumb.  At present, there's only a single default that is intended for audio -- that will have to be expanded to other categories.

Yep - I think you're right - it's to do with missing artwork.
When I went through all my TV shows that had artwork - all played fine (though the series title wasn't displayed - just the episode title - but that's by the by)
However when I went to a folder of .ts recordings via Videos->Files I got a crash :
image_path :  DefaultVideoCover.png
Response:  {"error": {"code": -32602, "data": {"details": null}, "message": "Invalid params."}, "id": 5, "jsonrpc": "2.0"}
Unexpected error:  <class 'UnboundLocalError'>
Traceback (most recent call last):
  File "kodi_panel_fb.py", line 89, in <module>
    kodi_panel_display.main(device)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1507, in main
    update_display()
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1314, in update_display
    video_screens(image, draw, video_info, prog)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1116, in video_screens
    _static_image = video_screen_static(info)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1038, in video_screen_static
    layout["thumb"]["width"], layout["thumb"]["height"])
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 525, in get_artwork
    r = requests.get(image_url, stream = True)
UnboundLocalError: local variable 'image_url' referenced before assignment

Yep - I think you're right - it's to do with missing artwork.
When I went through all my TV shows that had artwork - all played fine (though the series title wasn't displayed - just the episode title - but that's by the by)
However when I went to a folder of .ts recordings via Videos->Files I got a crash :
image_path :  DefaultVideoCover.png
Response:  {"error": {"code": -32602, "data": {"details": null}, "message": "Invalid params."}, "id": 5, "jsonrpc": "2.0"}
Unexpected error:  <class 'UnboundLocalError'>
Traceback (most recent call last):
  File "kodi_panel_fb.py", line 89, in <module>
    kodi_panel_display.main(device)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1507, in main
    update_display()
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1314, in update_display
    video_screens(image, draw, video_info, prog)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1116, in video_screens
    _static_image = video_screen_static(info)
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 1038, in video_screen_static
    layout["thumb"]["width"], layout["thumb"]["height"])
  File "/home/pi/kodi_panel/kodi_panel_display.py", line 525, in get_artwork
    r = requests.get(image_url, stream = True)
UnboundLocalError: local variable 'image_url' referenced before assignment

However when I went to a folder of .ts recordings that aren't in any library, and haven't been scraped and don't have any metadata files with them, via Videos->Files I got a crash

Ok.  I can't quite duplicate it here (although I could see if I can remove existing metadata from some demonstration videos), but I'll try to set up a path to handle it.

However when I went to a folder of .ts recordings that aren't in any library, and haven't been scraped and don't have any metadata files with them, via Videos->Files I got a crash

Ok.  I can't quite duplicate it here (although I could see if I can remove existing metadata from some demonstration videos), but I'll try to set up a path to handle it.

Adding a new folder with just a video file to the Videos section and not including it in any library would replicate my situation I suspect.

Adding a new folder with just a video file to the Videos section and not including it in any library would replicate my situation I suspect.

Please try the latest release (v1.10).
I was able, briefly, to replicate the issue.  I think I have some scrapers installed in Kodi that make quick work of grabbing a frame from a video file and using that as a cover, lacking any other metadata!
Please reopen if the problem still exists.

Please try the latest release (v1.10).
I was able, briefly, to replicate the issue.  I think I have some scrapers installed in Kodi that make quick work of grabbing a frame from a video file and using that as a cover, lacking any other metadata!
Please reopen if the problem still exists.

Yep - can confirm this now solves the crashing issue - and I get a generic play icon when there is no artwork.

Yep - can confirm this now solves the crashing issue - and I get a generic play icon when there is no artwork.

Great.
The image used by default can be modified using the setup.toml file.  Just as there is a DEFAULT_AUDIO string, giving the path to a default image to use when playing audio, one can also specify DEFAULT_VIDEO image.  So, one could set both to images copied from, say, a Kodi skin, if desired.

Great.
The image used by default can be modified using the setup.toml file.  Just as there is a DEFAULT_AUDIO string, giving the path to a default image to use when playing audio, one can also specify DEFAULT_VIDEO image.  So, one could set both to images copied from, say, a Kodi skin, if desired.


text:
Adjust system index alignment in the debugger

Current behavior
Currently the system index and system name in the debugger are all inline.
Proposed improvement
It would be better if the system index were either center or right aligned and the system name were left aligned, so that all of the system names and system indices are flush to a vertical line (imaginary, not visible) going between them. This will make things easier to visually parse.

Once flex options are introduced we should be able to do this much easier

authors: LastTalon jackTabsCode

repo: matter-ecs/matter


text:
Add Goerli test net and Nodesmith provider

This change adds named support for the new [goerli testnet[(https://goerli.net/) by adding it to the Networks enum. It also adds a new NodesmithProvider to make connecting to that service easier. Nodesmith is a service which provides free JSON RPC endpoints for interacting with Ethereum networks.

@sdesmond46 hi! Sorry, I can't accept this PR. The logic of using this library implies that to use any other network, except those already represented in it, you need to do the following
let url = URL(string: "https://goerli.net/")! // endpoint
let provider = Web3HttpProvider(url, keystoreManager: keystoreManager)! // here you can also add keystore manager if you want
let web = web3(provider: provider) // create web3 instance
// alternatively you can create web3 instance in that way
let web = Web3.new(url) // but here you can't specify keystore manager
web3.addKeystoreManager(keystoreManager)

@sdesmond46 hi! Sorry, I can't accept this PR. The logic of using this library implies that to use any other network, except those already represented in it, you need to do the following
let url = URL(string: "https://goerli.net/")! // endpoint
let provider = Web3HttpProvider(url, keystoreManager: keystoreManager)! // here you can also add keystore manager if you want
let web = web3(provider: provider) // create web3 instance
// alternatively you can create web3 instance in that way
let web = Web3.new(url) // but here you can't specify keystore manager
web3.addKeystoreManager(keystoreManager)

Thanks for taking a look @BaldyAsh! Just to clarify, is the issue here not wanting to add Nodesmith as its own named provider because you could initialize it using the existing Web3HttpProvider? Or is it in the way I'm defining the constructor for the NodesmithProvider?

@sdesmond46 yes, because you should init it with Web3HttpProvider. You're defining Nodesmith provider correctly, so it's just 'politics'


text:
Add high trust FAQ

This is from Ian + Corey

@amyblais @wiersgallak Thoughts on merging the doc as-is, and leaving the one incomplete sentence at *Audibility* means being able to fully observe, monitor and trace the operations of your systems.
We could break it into smaller sections, but I'm not sure how much impact it has.

repo: mattermost/docs


text:
Added GA tracking code to rating widget.

Google Analytics is not displaying any events information from the NPS widget.
I have consulted some help sites and based on that, have added the site tag to the code. Here is one site that I looked at: https://support.google.com/analytics/thread/3259118?hl=en. I have also installed the GA debug tool and tested the current widget on docs.mattermost.com and no errors are listed for the widget.
I've tested the widget on a local build and it works as expected.
@ztrayner, if you know of another way to validate this prior to pushing live that'd be awesome. And if there's anything in the code that could affect your metrics please let me know.
Any other feedback welcome.

I don't have any concerns about it affecting existing metrics.  As far as I can tell, this should work correctly when pushed live.  👍

authors: justinegeffen ztrayner


text:
Added shared channels docs draft for System Admins

Documentation for: https://mattermost.atlassian.net/browse/MM-36470
Updated:

Documented Shared Channels setup details for System Admins via Setup, Onboard, Manage, Comply >  Onboard Users > All Mattermost Instances > Shared Channels (Experimental) (E20)
Documented Shared Channels config settings for System Admins via  Setup, Onboard, Manage, Comply >  Set Up Mattermost > Self-Managed Deployments > Configuration Settings > Experimental > Enable Shared Channels (Experimental)
Added configuration settings to Telemetry documentation

Really great feedback, @wiggin77! Thank you!


text:
Added AWS HA RDS deploy guidance

Added AWS RDS HA config guidance to the following product docs pages:

HA Cluster > Database Configuration
Data Source, Data Source Replicas, and Data Source Search Replicas configuration setting docs

Are there additional docs sections that would benefit from links into this new guidance?

@adityadav1987 - Are you comfortable with this docs PR being merged and the content published to production?


text:
Update the MySQL to Postgres migration guide with the recent feedback

Summary
I am happy that (also sad about the ambiguities it caused) the guide pick up some attention recently! There are many many feedbacks submitted among the community channels and I would like to address as much as possible.
cc @jprusch

Does it make sense to publish this version right now? I still can't get the pgloader to work with a fresh setup of a Postgres 15 server on Debian. There are some issues with the public scheme, which apparently has not been created, when creating the mattermost database. mattermost scheme exists & is populated with the schema tables. mmuser has permission to use / create in public & mattermost scheme.
Current state of migration on my side:
https://community.mattermost.com/core/pl/95nam57s1pb5mgdmaytaxatzeh

Thanks for the feedback @jprusch I'll try to go over the migration steps with postgres 15 and try to identify issues you have. So far we tested with the minimum supported version but the public schema issue needs to be addressed within the docs.

@nab-77 - I've split the table (76-99) as discussed into 2 sections: actions that can be performed without consequences, and actions that may incur consequences. Please review.
@isacikgoz - Please review to ensure I've categorized correctly.

@cwarnermm looks good to me!

@cwarnermm and @isacikgoz nice update (and see we managed to incorporate more feedback).
@jlandells your feedback most welcome here.

Not sure, if the following text contains typos:
On [newer versions](https://www.postgresql.org/docs/release/15.0/) of PostgreSQL, newly created users do not have access to public schema. The access should be explicitly granted by running GRANT ALL ON SCHEMA public to mmuser'.
Check the last ' after mmuser
SELECT * FROM Configurations WHERE Active = 't';
Is it t or 1?

Thanks @jprusch, that was a typo indeed for the ' character. The other query for configuration table is correct, that's for postgres.

authors: cwarnermm isacikgoz jprusch nab-77


text:
Hide previous notifications or update their content when updated?

After an issue is created and shown in the channel -  Ideally we would either keep the same "view" of the post once the status is modified OR remove the visual elements from the previous post once a new post with a more current view of the ticket is made.
One drawback with the current design (MM-17816) is that previous instances of the "view" in the ephemeral post stay visible and you can manipulate the drop-down. This seems like a broader issue with how plugins make ephemeral posts.
Originally posted by @DHaussermann in https://github.com/mattermost/mattermost-plugin-jira/pull/454#issuecomment-603855704

We could (should?) remove the post-action from the ephemeral message upon performing a selection.

Closing issues due to inactivity. This issue can be re-opened with more interest from our community.

authors: aaronrothschild levb wiersgallak

repo: mattermost/mattermost-plugin-jira


text:
[MM-40357] Change followers to following

Summary
This PR changes terminology followers to following
https://user-images.githubusercontent.com/2340127/143477210-63a88dec-a8d2-4ce2-aa54-35274581b368.mp4
Ticket Link
Fixes: https://mattermost.atlassian.net/browse/MM-40357
Checklist

[ ] Telemetry updated
[ ] Gated by experimental feature flag
[ ] Unit tests updated

The styling looks different than threads, not sure if intentional.

authors: iomodo itao

repo: mattermost/mattermost-plugin-playbooks


text:
MM-19738 - Reply counts sometimes missing on Community Daily

Summary
Fixed fetching thread count (missing parameter in post sync)
Ticket Link
https://mattermost.atlassian.net/browse/MM-19738

Does this need a cherry pick? Is it for 5.18 only? Or does it also affect 5.17?

@grundleborg I am pretty sure improved thread fetching wasn't a part of 5.16

authors: grundleborg reflog

repo: mattermost/mattermost-webapp


text:
Update NOTICE.txt

To match with https://github.com/mattermost/mattermost-webapp/blob/release-5.26/package.json.

@grundleborg Kind reminder to review for v5.26,

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

@amyblais you've got conflicts to resolve by the looks of it.

authors: amyblais grundleborg mattermod


text:
MM-T1669 team highlight icon

Summary

When a team which is not in active state is clicked, the clicked team will be highlighted.
Ticket Link

Usecase

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @hanzei

Hi @openmohan,
Thanks for your PR! Do you have any questions about the feedback? I'm happy to clarify.

Hi @openmohan,
Thanks for your PR! Do you have any questions about the feedback? I'm happy to clarify.

Sorry for the late reply, I overlooked.
I am finding "click and hold mouse event" mimic to be tricky in cypress. I tried cypress.trigger and it did not work. I will spend some more time later today and will get back.

/update-branch

@openmohan Let us know your plan about this PR?

@saturninoabril I will try one more time to see if I can mock the "click and hold" action, If that does not work, I will close the PR :-)

Thanks @openmohan!

@openmohan have you tried this https://docs.cypress.io/api/commands/type.html#Key-Combinations

@openmohan have you tried this https://docs.cypress.io/api/commands/type.html#Key-Combinations for pressed release

Trying this

@openmohan have you tried this https://docs.cypress.io/api/commands/type.html#Key-Combinations for pressed release

Thanks for the suggestion @M-ZubairAhmed.
Along with the suggestion, I tried trigger and click too. Unfortunately, none of them worked.

@openmohan oh ok. @saturninoabril please advise on how to procees

Thanks @openmohan for checking. I tried this a bit as well and none worked for me either. Looks like a valid limitation. Let's close this PR. I'll mark the test case as "Cypress limitation" but will try to revisit in the future too.

Thanks @openmohan for checking. I tried this a bit as well and none worked for me either. Looks like a valid limitation. Let's close this PR. I'll mark the test case as "Cypress limitation" but will try to revisit in the future too.

Thanks @saturninoabril . Let's hope we get something in future cypress version or let's build one. :-)

Thanks @openmohan and hoping for the best in the future 😄

authors: M-ZubairAhmed hanzei josephbaylon mattermod openmohan saturninoabril


text:
[MM-37606] Allow queuing post submission while attachments are still uploading

Summary
This PR is currently a draft with only the RHS CreateComment component modified, with no changes yet to CreatePost.
This PR makes it so the user has the option to submit their post while an attachment is still uploading. The post is eventually sent/created when all attachments finish uploading, with the current draft message included.
While a file is uploading, the "Add Comment" button is enabled. Queuing the post submission causes the "Add Comment" button to become disabled. Any of the invalidations below will cause the "Add Comment" button to become enabled, if it would be enabled otherwise (there is text in the draft or there are other files uploading/uploaded).
There are a few ways the "queued post" is invalidated:

When the queued submission ultimately submits
The draft's message changes. The user then has the option to queue the submission again
When handling pasted content
A post error occurs
A file upload error occurs
An uploaded file or upload in progress is deleted from the draft

Testing steps
This can be tested by using a large file to upload, or setting the Chrome dev tools throttling to "Slow 3G" when uploading a file.

Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-37606
Release Note
Users now have the option to queue a post submission while attachments are still uploading.

@mickmister I can't seem to get a test server up and running for this PR

@matthewbirtch I've been noticing issues with the Setup Cloud Test Server label. I've tried the HA one here and it seems to be working

Thanks! That worked. I need to test this out more tomorrow, but something doesn't quite feel right. It feels like the message should be optimistically posted to the channel when I press ENTER or hit Add comment and the attachment could show in an uploading state. I can't quite put my finger on it, but something about this 'limbo' state doesn't quite feel right.
On the mobile app, a text-based message is immediately posted in a 'greyed' state until it's finished delivering (it happens pretty quick so you might not see it). But, I wonder if we consider something like this for this type of message with attachments too?

Thanks! That worked. I need to test this out more tomorrow, but something doesn't quite feel right. It feels like the message should be optimistically posted to the channel when I press ENTER or hit Add comment and the attachment could show in an uploading state. I can't quite put my finger on it, but something about this 'limbo' state doesn't quite feel right.
On the mobile app, a text-based message is immediately posted in a 'greyed' state until it's finished delivering (it happens pretty quick so you might not see it). But, I wonder if we consider something like this for this type of message with attachments too?

@esethna was this how you imagined the UX for this? I wasn't part of the original ticket creation, so I wanted to get a sense for how you saw this working. See my thoughts above.

@matthewbirtch I agree it's not optimal UX, but still adds value, especially for the photo uploads that take just a few seconds and but it's enough to hit enter and lose focus in the text box. Optimistically sending the message and showing an uploading state in-line in the chat would be better, just not sure how much work that adds or how possible that is cc// @mickmister?

@matthewbirtch I agree it's not optimal UX, but still adds value, especially for the photo uploads that take just a few seconds but it's enough to hit enter and lose focus in the text box. Optimistically sending the message and showing an uploading state in-line in the chat would be better, just not sure how much work that adds or how possible that is cc// @mickmister?

I'm cool with that. If this gets us part-way there to the optimal UX, then I'm totally good with starting here! Let us know what you think @mickmister

Optimistically sending the message and showing an uploading state in-line in the chat would be better, just not sure how much work that adds or how possible that is

@esethna @matthewbirtch
I think trying to approach the problem like that (showing the queued post as optimistically sent) could cause a lot of bugs. A main difference between this situation, and the situations in the product that currently show the optimistic greyed out message, is that we aren't actually sending the message to the server while we're in the "attachment is still uploading" state. Showing a post in the post list that isn't actually being sent to the server at that time is a big inconsistency with the logic around that. 2/5 for the sake of code stability I think we should not show the post in the post list if it hasn't actually started submitting to the server.
FWIW Slack actually "hides" the post/draft when you submit during the attachment upload. There is an upload progress indicator at the top of the screen that continues to show after queueing the post submission. Once the upload is complete, the post is created and is shown in the post list. Do we want to go in this direction?
https://user-images.githubusercontent.com/6913320/133823663-c8d88dc8-7476-41cb-8239-56c5c0b5fc4e.mov

FWIW Slack actually "hides" the post/draft when you submit during the attachment upload. There is an upload progress indicator at the top of the screen that continues to show after queueing the post submission. Once the upload is complete, the post is created and is shown in the post list. Do we want to go in this direction?

This does feel a bit better in that there is immediate action when I hit the send button. However, it feels odd that there is no feedback about the fact that my post with attachments is still uploading. My post just vanishes until it re-appears when it's finished uploading attachments. I like this direction, but I think having an indicator of some kind that shows me my post is still uploading would be helpful

My post just vanishes until it re-appears when it's finished uploading attachments. I like this direction, but I think having an indicator of some kind that shows me my post is still uploading would be helpful

@matthewbirtch Do you think the PR should be changed to meet this behavior? If so, can you provide a design for changes that need to be made in this PR? Mobile also needs to be done, and we should try to be consistent with our decisions between the two platforms.

My post just vanishes until it re-appears when it's finished uploading attachments. I like this direction, but I think having an indicator of some kind that shows me my post is still uploading would be helpful

@matthewbirtch Do you think the PR should be changed to meet this behavior? If so, can you provide a design for changes that need to be made in this PR? Mobile also needs to be done, and we should try to be consistent with our decisions between the two platforms.

Not necessarily. We could create a follow-up PR to update the behavior if it makes sense. Would this PR do part of the work to get us to what I described?

While potentially difficult, I don't think the behaviour of having the post appear in the channel and then send later would be quite as hard as you think, @mickmister. We already do that on both clients currently with pending posts where they show a post as created as soon as the user submits it. It only displays greyed out after a few seconds if the server hasn't responded yet. We'd need to adapt that though to be smart enough to display pending attachments and to have it know to send the post after the attachments are finished uploading.
If we stick with the current UX for the time being though, I feel like I'd like to see either the "file uploading" message or the "Add Comment" button be changed to better reflect that the post will be sent once the file is uploaded. It's not super clear what's happening with that at the moment.

I feel like I'd like to see either the "file uploading" message or the "Add Comment" button be changed to better reflect that the post will be sent once the file is uploaded. It's not super clear what's happening with that at the moment.

@hmhealey That is exactly how the current functionality works. You can check it out on this cloud server https://mattermost-webapp-pr-8856.test.mattermost.cloud or watch the GIF below.
Note that we don't have the same "Add Comment" button in the center channel, so the experience is slightly different there. The center channel case also still needs to be implemented in this PR.
https://user-images.githubusercontent.com/6913320/134236559-b24432f1-40b0-49bc-a22e-800a11703224.mov

@hmhealey I'm concerned that this addition is prone to bugs as create_post.tsx and create_comment.tsx continue to change in the future. Reading the changes in create_comment.tsx, I'm not sure if I handled all the necessary cases here, which shows the risk of making sure it stays correct going forward. Every state change of these two components will need to keep the deferringPostSubmit value in mind. Do you have another solution in mind where we won't be "juggling" the value of this boolean?

authors: esethna hmhealey matthewbirtch mickmister


text:
WIP: To close later. Testing

Summary

Ticket Link

Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

/release-note-none

/e2e-test

Triggering e2e testing with options:
<nil>

authors: mattermod metanerd


text:
Add syntax highlighting to Readme.md

Hi,
Thank you for your nice library. :)
Could you add syntax highlighting to markdown documents?
Thanks.

Thanks!

Thank you :+1:

authors: matthewcheok narirou

repo: matthewcheok/JSONCodable

license: mit

license_source: bigquery


text:
Install error. Could not find pyxpcconnection

Searching for pyxpcconnection
Reading https://pypi.python.org/simple/pyxpcconnection/
Couldn't find index page for 'pyxpcconnection' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for pyxpcconnection
error: Could not find suitable distribution for Requirement.parse('pyxpcconnection')

Hi @trsqxyz thanks for (trying to use) bleep! As it turns out I never got around to putting pyxpcconnection onto PyPi (although it is more or less complete). Could I suggest installing using the instructions here: https://github.com/matthewelse/pyxpcconnection?
There is the secondary problem that the implementation of OS X support is so far incomplete - I've been meaning to come back to it, but I haven't had the time since the most recent updates to pygattosx.

Alright. I hope that all of the package is to support the OS X in the future. Thank you.

authors: matthewelse trsqxyz

repo: matthewelse/bleep


text:
Gif does not loop

Setting the loop count to 0 or not setting it all results in a non looping animation.
using this code:
let gifURL = Regift.createGIFFromURL(URL, withFrameCount: frameCount, delayTime: delayTime)
I made this gif, which does not loop.

Hmm interesting. I’m busy for the next few days, but I’ll take a look at this over the weekend :)
Thanks for letting me know! 👍

Cool! thanks a lot. I spend a few hours trying to debug it myself, but did not succeed. Hope you find a solution.

Have you had time to look at this?

Yeah had a quick look. Haven't had a chance to implement the fix, but it's related to the way the fileProperties dict is being set up. The dict should be nested, but at the moment it's not. If you want to implement the fix yourself, the gist linked from the end of the README shows how the dictionary should be set up.
I will have a chance to look at it more tomorrow or the next day.

On 29 Jun 2015, at 6:22 pm, Samuel Beek notifications@github.com wrote:
Have you had time to look at this?
—
Reply to this email directly or view it on GitHub.

Fixed it: https://github.com/matthewpalmer/Regift/pull/9

authors: matthewpalmer samuelbeek

repo: matthewpalmer/Regift


text:
Prevent !!vm.onDateRangeSelect from executing on right mouse click in calendarHourList.html

Bug description / Feature request:
I have a custom calendarHourList.html that also contains a right click context menu (via angular-boostrap-contextmenu).
When I right click in a cal-day-hour-part in chrome 57 on windows (note not on a mac!) it fires both oncontextmenu and onclick events which means that !!vm.onDateRangeSelect is executed unexpectedly and I get both the handler for the context menu and the handler for the left click.
Any ideas on how to prevent the !!vm.onDateRangeSelect function firing?
The context menu works when you right click on an event though, so I guess I need to use whatever mechanism that does to swallow the ng-click for right click events?
Versions
Angular: 1.5.9
Calendar library: latest
Browser name and version: Chrome 57 on Windows

I think if you do oncontextmenu="$event.stopPropagation();" it should prevent the handler from firing. Hope that helps!


text:
slack_client.api_call -> slackclient.api_call

this
    slack_client.api_call("chat.postMessage", channel=channel,
                          text=response, as_user=True)

should be
    slackclient.api_call("chat.postMessage", channel=channel,
                          text=response, as_user=True)

right?

@dopatraman Technically No, using slackclient.api_call is not correct for this case. If you look at line 14 we set the slack_client variable to SlackClient(os.environ.get('SLACK_BOT_TOKEN')) So then when we call that variable you would use  slack_client.api_call because that is the variable name we assigned on line 14. As you probably know you can assign almost any name to a variable, so if you had set the variable name to sc you would call that variable using sc.  sc = SlackClient(os.environ.get('SLACK_BOT_TOKEN')) sc.api_call("chat.postMessage", channel=channel,                           text=response, as_user=True)

repo: mattmakai/slack-starterbot


text:
a bug

Hi mattmc3 , If I execute some options that I set before antidote config execution, I get an error
This is option
setopt APPEND_HISTORY
unsetopt INC_APPEND_HISTORY
unsetopt INC_APPEND_HISTORY_TIME
setopt SHARE_HISTORY
setopt BANG_HIST
setopt HIST_VERIFY
unsetopt EXTENDED_HISTORY
unsetopt HIST_BEEP
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_SAVE_NO_DUPS
unsetopt HIST_IGNORE_SPACE
setopt HIST_LEX_WORDS
unsetopt HIST_NO_FUNCTIONS
setopt HIST_NO_STORE
setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_BY_COPY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FCNTL_LOCK
unsetopt HIST_ALLOW_CLOBBER
setopt autocd beep nomatch notify
setopt interactivecomments
setopt sh_word_split
setopt GLOB_DOTS
setopt extendedglob

This is antidote config
_DIR=$ZDOTDIR/plugin/antidote

# clone antidote if necessary
[[ -e $_DIR ]] || git clone https://github.com/mattmc3/antidote.git $_DIR

# source antidote
. $_DIR/antidote.zsh

# generate and source plugins from ~/.zsh_plugins.txt
antidote load

unset _DIR

This is error
(eval):1: command not found: -A
(eval):1: parse error near `bundle'
(eval):1: not an identifier: [kind]
(eval):1: not an identifier: [repo]
(eval):1: parse error near `)'
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
(eval):1: command not found: -A
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
(eval):1: parse error near `bundle'
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
(eval):1: not an identifier: [kind]
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
(eval):1: not an identifier: [repo]
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
(eval):1: parse error near `)'
antidote-bundle:62: bad math expression: operand expected at `/usr/local...'
/home/yyy/.zsh/.zsh_plugins.zsh:integer:1: not an identifier: 10

Can you cat ~/.zsh_plugins.txt and include its contents here?

Nevermind. This was definitely a bug and I fixed it and will release v1.2.1 shortly. setopt sh_word_split caught me and I know better - I should have been using emulate -L zsh to have full control of the options I expect to be set in the antidote functions.


text:
why there is still cgo error

Hello，I used the following cmd to build my code:CGO_ENABLED=1 GOOS=linux GOARCH=amd64(if arm arch it is arm64) go build -trimpath  -ldflags='-extldflags=-static' -tags musl,osusergo,netgo,sqlite_omit_load_extension
but I still get the following error:Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
Strangely,In ubuntu 20.04 amd the binary can run smoothly,but in ubuntu 20.04 arm it failed.
I don't know why,but I enabled cgo already.
Can you help me ?
Thanks in advance.

My fault. I forget to add cgo enable option when I  build for arm64.


text:
Fix host with anonymous connection

I was actually making an attempt to use XMPP anonymous connection. And when trying to connect it seems to not sending a domain (host) to the XMPP server. So I fixed that.

Use a switch statement rather than a if-else chain

Thank you

repo: mattn/go-xmpp


text:
Added typing of options passed in to the second argument of Machine/createMachine

These options will be optional in the Machine, and any declared in the Machine will be optional when the machine is interpreted.

Yet to implement this in the types, to be done when I get back from holiday

repo: mattpocock/xstate-codegen


text:
setText: afterInheritingLabelAttributesAndConfiguringWithBlock: missing support for text as NSAttributedString

Passing an NSAttributedString as the first parameter does have any effect. I believe there is a missing else clause in the first if statement.
The code should be:
- (void)setText:(id)text afterInheritingLabelAttributesAndConfiguringWithBlock:(NSMutableAttributedString *(^)(NSMutableAttributedString *mutableAttributedString))block {
    if ([text isKindOfClass:[NSString class]]) {
        self.attributedText = [[[NSAttributedString alloc] initWithString:text] autorelease];
    } else {
        self.attributedText = text
    }

.....

You're absolutely right—this method totally crashes if the example project were to, for example, wrap the summaryText of the cells in an NSAttributedString when being passed as text.
I cleaned up the method in general to hopefully be much less confusing, and a bit more logically concise in 1652cc0	.
Thanks!

Hey thanks Mattt,
It works great!
Andrew
BTW, thanks for making this available to us.
On Mon, Dec 5, 2011 at 11:31 PM, Mattt Thompson <
reply@reply.github.com

wrote:

You're absolutely rightthis method totally crashes if the example project
were to, for example, wrap the summaryText of the cells in an
NSAttributedString when being passed as text.
I cleaned up the method in general to hopefully be much less confusing,
and a bit more logically concise in 1652cc0     .
Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/mattt/TTTAttributedLabel/issues/25#issuecomment-3028438

authors: AndrewSmall mattt

repo: mattt/TTTAttributedLabel


text:
TODO: Create a Low Resource mode.. maybe

No event ticker, no saving log files..

Most options can be toggled off to reduce resource usage.

repo: matty-r/urChat


text:
🛑 VQ PROD MX is down

In 8d1a5ee, VQ PROD MX (http://demomx.sidesys.com.mx/virtualqueue/index.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VQ PROD MX is back up in df1146e after 2 hours, 31 minutes.

repo: mauribesson/upptime


text:
🛑 Evia CosmoDash API is down

In 7fbc0fe, Evia CosmoDash API (https://api.cosmodash.evia.network) was down:

HTTP code: 502
Response time: 706 ms

Resolved: Evia CosmoDash API is back up in 31becf3 after 8 minutes.


text:
C++ Language search not working

When the filter is applied as C++ the UI says C, and the repos then displayed are not using C++. Seems to be a fault in the filter.

Thanks for pointing it out. Turns out this happened because language already came encoded but it was wrapped in encodeURIComponent()

repo: max-programming/hacktoberfest-projects


text:
Behaviour of cdist when edit distance exceeds score_cutoff

Quoting https://maxbachmann.github.io/RapidFuzz/Usage/process.html#cdist

score_cutoff (Any, optional) – Optional argument for a score threshold. When an edit distance is used this represents the maximum edit distance and matches with a distance <= score_cutoff are inserted as -1. When a normalized edit distance is used this represents the minimal similarity and matches with a similarity >= score_cutoff are inserted as 0. Default is None, which deactivates this behaviour.

This gives the impression that if score_cutoff is used with an edit distance (meaning this is an upper bound), when the score exceeds it the flag value -1 is returned.
However, other parts of the documentation suggest score_cutoff + 1 is returned. For example, Hamming or Levenshtein distance. See the max= argument to rapidfuzz.string_metric.levenshtein as documented at https://maxbachmann.github.io/RapidFuzz/Usage/string_metric.html#rapidfuzz.string_metric.levenshtein

max (int or None, optional) – Maximum distance between s1 and s2, that is considered as a result. If the distance is bigger than max, max + 1 is returned instead. Default is None, which deactivates this behaviour.

e.g. using v2.1.2
>>> from rapidfuzz.process import cdist
>>> from rapidfuzz.string_metric import levenshtein
>>> import numpy as np
>>> seqs = ["ACGTACGT", "ACGTTACGT", "ACGTAACGT", "ACGTACT", "X"]
>>> cdist(seqs, seqs, scorer=levenshtein, dtype=np.int8, score_cutoff=3)
array([[0, 1, 1, 1, 4],
       [1, 0, 1, 2, 4],
       [1, 1, 0, 2, 4],
       [1, 2, 2, 0, 4],
       [4, 4, 4, 4, 0]], dtype=int8)

If many/all of the provided edit distances use score_cutoff + 1 then perhaps the cdist documentation is misleading?

This is a behaviour change from v1.9.1 to v2.0.0, quoting the change log:

when the result of string_metric.levenshtein or string_metric.hamming is below max they do now return max + 1 instead of -1

$ python
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:00:52)
[Clang 13.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from rapidfuzz.process import cdist
>>> from rapidfuzz.string_metric import levenshtein
>>> import numpy as np
>>> seqs = ["ACGTACGT", "ACGTTACGT", "ACGTAACGT", "ACGTACT", "X"]
>>> cdist(seqs, seqs, scorer=levenshtein, dtype=np.int8, score_cutoff=3)
array([[ 0,  1,  1,  1, -1],
       [ 1,  0,  1,  2, -1],
       [ 1,  1,  0,  2, -1],
       [ 1,  2,  2,  0, -1],
       [-1, -1, -1, -1,  0]], dtype=int8)
>>> import rapidfuzz
>>> rapidfuzz.__version__
'1.9.1'

$ python
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:00:52)
[Clang 13.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from rapidfuzz.process import cdist
>>> from rapidfuzz.string_metric import levenshtein
>>> import numpy as np
>>> seqs = ["ACGTACGT", "ACGTTACGT", "ACGTAACGT", "ACGTACT", "X"]
>>> cdist(seqs, seqs, scorer=levenshtein, dtype=np.int8, score_cutoff=3)
array([[0, 1, 1, 1, 4],
       [1, 0, 1, 2, 4],
       [1, 1, 0, 2, 4],
       [1, 2, 2, 0, 4],
       [4, 4, 4, 4, 0]], dtype=int8)
>>> import rapidfuzz
>>> rapidfuzz.__version__
'2.0.0'

It looks like the documentation for cdist does just need updating to match?

Yes this was a change in behavior of the string metric. cdist really does not care about it, since it just passes the score_cutoff to the string metric. I clarified this in the documentation by removing these confusing bits: https://github.com/maxbachmann/RapidFuzz/commit/fde0a662fafbf50a6aab53676002f8fd6bbd33a8

As a note you should change:
from rapidfuzz.string_metric import levenshtein
...
scorer=levenshtein

to something like
from rapidfuzz.distance import Levenshtein
...
scorer=Levenshtein.distance

The whole string_metric module is deprecated since v2.0.0 and moving forward all metrics will be added in the distance namespace

Thank you - I've updated my imports accordingly.

authors: maxbachmann peterjc

repo: maxbachmann/RapidFuzz


text:
Installation doesn't work - Filenames too long?

Steps to reproduce:

This platform is not installed in Platformio. (I had tried to install it before. But I uninstalled it in the PIO home to try again and get the output log)
Create new Platformio Project using the Raspberry Pi RP2040 platform (the official one)
Project gets created successfully
change platformio.ini to

[env]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
framework = arduino
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m

[env:pico]
board = pico
; if using picoprobe SWD upload / debugging
;upload_protocol = picoprobe
;debug_tool = picoprobe

wait for platformio to (try to) install everything and look at the output. There are a few errors at the end and it doesn't seem to install correctly.

If I then click build (in in platformio project tasks) it tries to do the same thing, I think. But the output is a bit more verbose. Same error though.
Output after changing platformio.ini:
output2.txt
error: unable to create file Application/8_uarts_server/RT-Thread/uart_server_rtt/rt-thread/components/vmm/linux_patch-v3.8/0001-RTT-VMM-implement-dual-system-running-on-realview-pb.patch: Filename too long
error: unable to create file Application/8_uarts_server/RT-Thread/uart_server_rtt/rt-thread/components/vmm/linux_patch-v3.8/0002-arm-gic-correct-the-cpu-map-on-gic_raise_softirq-for.patch: Filename too long
[...]
Submodule path 'pico-sdk/lib/tinyusb/tools/uf2/hidapi': checked out 'a6a622ffb680c55da0de787ff93b80280498330f'
fatal: Unable to checkout '17761f5cf9dbbf2dcf665b7c04934188add20082' in submodule path 'pico-sdk/lib/tinyusb/hw/mcu/wch/ch32v307'

fatal: Failed to recurse into submodule path 'pico-sdk/lib/tinyusb'

Submodule path 'tools/libbearssl/bearssl': checked out 'f294aa022f82833941ffdf3b0f306c2072e3a26c'
Submodule path 'tools/pyserial': checked out '0e7634747568547b8a7f9fd0c48ed74f16af4b23'
fatal: Failed to recurse into submodule path 'pico-sdk'

Error: VCS: Could not process command ['git', 'clone', '--recursive', 'https://github.com/earlephilhower/arduino-pico.git', 'C:\\Users\\linus\\.platformio\\.cache\\tmp\\pkg-installing-i_j1ir8r']

Output after clicking build:
output_build.txt
Edition	Windows 11 Pro
Version	22H2
Build 22621.1265
I have never used platformio. I'm very sorry if I've overlooked something obvious, done something wrong, etc.

Enable Win32 LongPaths and retry.
Does it still fail?

Thank you so much! I got it working!
I activated it like your link says and then did a full restart of the PC. Unfortunately, the same error still occurred.
Then I followed this: https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
git config --system core.longpaths true
I tried it again and there was some error about a missing build script, so I just deleted .platformio, reinstalled platformio and tried again.
And it worked!
It installed everything. After changing the board to rpipicow in platformio.ini the LED blinking example just worked on my Pico W!
🥳
Windows long paths support is kinda wonky, but I guess I can live with it. :D
I think I still have some (minor) issues:

Sorry, I forgot to copy and paste the output. But during the installation (after changing the platformio.ini to use this platform) there were some warnings about could not rm some folders because they weren't empty. I can reinstall everything again and get you the log if you want. But I guess since it works, it wasn't that important.
In PIO home, the project inspection doesn't work.
It gives the following error:
project inspection.txt
Platform Tasks -> Advanced -> Verbose Check outputs the following:
verbose check.txt

Please note: check results might not be valid!
Try adding --skip-packages

Yes, cppcheck has problems when it's let loose on the toolchain folders. But it's not strictly needed when it's only supposed to check your firmware code. As per documentation, add check_skip_packages = yes to the platformio.ini and retry.

Thank you so much!

authors: MrTucks maxgerhardt

repo: maxgerhardt/platform-raspberrypi


text:
Requeriments (versions)

Hello!
I'm having difficulties running the code, even though I have all the requirements installed. This is likely a version mismatch.
This is what I am seeing:
File "/usr/PycharmProjects/GRAPE/models/egsage.py", line 55, in forward
    return self.propagate(edge_index, x=x, edge_attr=edge_attr, size=(num_nodes, num_nodes))
  File "/usr/anaconda3/envs/grape/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 235, in propagate
    msg_kwargs = self.inspector.distribute('message', coll_dict)
  File "/usr/anaconda3/envs/grape/lib/python3.7/site-packages/torch_geometric/nn/conv/utils/inspector.py", line 58, in distribute
    raise TypeError(f'Required parameter {key} is empty.')

Which version of pytorch-geometric did you use?

I'm seeing the same error.

Hi! Sorry for the late reply. The pytorch_geometric version is 1.4.2 in our environment.

authors: dialuser maxiaoba weakly-informative

repo: maxiaoba/GRAPE


text:
1.19.4 developement

Initial Release with one feature.

Checks out.


text:
fix(bug): don't disown unused replicas

When the nexus is not in the created phase don't disown replicas, wait
until the nexus is created so that we have a clear picture of what's
unused.
Also, make sure we don't disown healthy replicas.

bors merge

repo: mayadata-io/mayastor-control-plane


text:
user/task0001:完善web模块代码的开发与设计

user/task0001:完善web模块代码的开发与设计

user/task0001:完善web模块代码的开发与设计

repo: mazhilin/neusoft-knowledge-platform


text:
Dual bencode imports

The project currently imports two different bencode libraries, I believe this is due to goimports automatically assuming which package was to be used. I plan on either moving to one our writing our own.
The bencode packages are imported in /pkg/tracker and /pkg/metainfo.

I just made a pull request for this one. I didn't realize it was assigned to you and I went for it, will check better next time.

Its no problem at all. I've been overwhelmed with work projects and uni lately. Thanks for taking care of it.

authors: mbags mnlg

repo: mbags/gtc


text:
Interactive pipe stdout

The project has test commands that can be run as dune alias, involving piping flows of bits into simulations. They used to animate some displays interactively.
This no longer works with a recent dune version. I suspect that at some point the construct pipe-stdout in dune was modified to stage and wait for the completion of each step in the pipeline.
I didn't investigate and left this as future work. Instead I focused on a work-around, and added bash scripts that can be run instead. I tested these with dune exec -- from their directory, and this worked as intended.

Edit: on second thought, I replaced the construct to revert it back to the "bash" action, like it was before https://github.com/mbarbin/bopkit/pull/8.
This avoids having separate bash files around, and also make the command work from the root of the repo, as dune handles the right execution directory setting.

repo: mbarbin/bopkit


text:
[QUESTION] Include Functionality For Nested Object , like v4 Includeall ?

I am stuck on finding solution for below query. using litedb v5
Query : db.GetCollection<PurchaseOrder().Include(x=>x.OrderItems)
Here are my both class :
public class PurchaseOrder
{
public int Id { get; set; }
public DateTime DatePurchased { get; set; }
public List OrderItems { get; set; }
public string Note { get; set; }
}
public class OrderDetail
{
public Model Model { get; set; }
public decimal Price { get; set; }
public int Qty { get; set; }
}
public class Model
{
public int Id { get; set; }
public string Name { get; set; }
}
Issue :  when i run above query it gives me result but Model is is always null.
Any help will be appreciated !!

assuming OrderItems and Model are BsonRefed, have you tried db.GetCollection<PurchaseOrder().Include(x=>x.OrderItems).Include(x => x.OrderItems.Model)?

i am not getting  Include(x => x.OrderItems.Model)
As OrderItems is list..its showing me all functions related to List e.g. Add ,FirstOrDefault
I tried Include(x => x.OrderItems.FirstOrDefault().Model) but it only fetches the value for first item and not all.

totally missed the fact that OrderItems was a list and that, probably OrderItems isn´t BsonRefed 🙄
assuming only Model is declared as BsonRef, how about
db.GetCollection<PurchaseOrder>().Include("$.OrderItems[*].Model");?

Thanks !! It works.
Is there any way to define IncludeAll  ? without explicitly specifying each dbRef ?

authors: jaimin-p zmira

repo: mbdavid/LiteDB


text:
[STM32F7xx] CAN development for STM32F7xx family

This pull request adds support for CAN bus for STM32F7xx family, specifically:

NUCLEO_F746ZG
DISCO_F746NG

Please merge #1762 first, then I will rebase.

@0xc0170,
Rebased. Please merged.

Reviewed OK

This PR creates an entry in device.h but all the entries are just moved to targets.json - maybe something to correct?

@ohagendorf I'll send a patch soon, was not rebased properly

@adustm BartSX commented on another one later that they would update, if that's not the case today, we should do it then

Will do this today.

Defines moved to targets.json in #1874

authors: 0xc0170 BartSX adustm ohagendorf

repo: mbedmicro/mbed


text:
Eda analysis

Finalize the EDA notebook

Improved the charts in size and using same color palette
Added more text around the context, and the standard for dataset documentation from Microsoft
Added more comments to the code

Looks good, I ran each step on my computer and works all well

authors: ferenckata mbertani

repo: mbertani/responsible-datascience-ws


text:
🛑 Fanalitica is down

In 77ae49b, Fanalitica (https://www.fanalitica.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fanalitica is back up in 8b399a0.


text:
Equation and boundary condition

I have a question about the equation you used.
All the waves travels downward so I guess you added a convection term into the wave equation, to make this happen. But what boggles me is, what are the boundary conditions? It seams to me, that the waves does not bounce of the edge of the screen, I find this very strange.
What equation exactly do you calculate and what are the boundary conditions?
Thank you,
Tomas

Sorry for the delay in replying. I'm not sure what you mean by all the waves travelling downward. That shouldn't be the case - they should radiate out uniformly from their epicentre. So no, there is no convection term. The equation I've used is really just the most basic wave equation.
As for the boundary conditions, the waves should definitely bounce back (from the edges of the viewport and the letters). However, I don't recall if I actually implemented the b.c.s as solid walls (inverting the waves which travel back) or as free b.c.s (such that the reflected wave has the same phase and you get constructive interference at the boundary). Judging by eye, the latter seems more likely (and I know that I definitely had those at some point, but I don't recall if I kept them in the final version).
It sounds like the code simply isn't working as it should on your machine (which isn't too surprising, because I never tested this anywhere except on Windows using Chrome). For reference, here is a screenshot of what the simulation looks like on my machine:

Yeah, it is not working on my machine. That is unfortunate, I hoped that you
implemented non-reflecting boundary. I was thinking quite a lot about non-
reflecting bc but I couldnt come up with anything. Anyway thanks for a
reply.
Best regards,
Tomas
---------- Původní zpráva ----------
Od: Martin Büttner
Datum: 1. 10. 2015 v 16:32:42
Předmět: Re: [webgl-ripples] Equation and boundary condition (#2)
Sorry for the delay in replying. I'm not sure what you mean by all the waves
travelling downward. That shouldn't be the case - they should radiate out
uniformly from their epicentre. So no, there is no convection term. The
equation I've used is really just the most basic wave equation
(https://en.wikipedia.org/wiki/Wave_equation#Introduction).
As for the boundary conditions, the waves should definitely bounce back
(from the edges of the viewport and the letters). However, I don't recall if
I actually implemented the b.c.s as solid walls (inverting the waves which
travel back) or as free b.c.s (such that the reflected wave has the same
phase and you get constructive interference at the boundary). Judging by
eye, the latter seems more likely (and I know that I definitely had those at
some point, but I don't recall if I kept them in the final version).
It sounds like the code simply isn't working as it should on your machine
(which isn't too surprising, because I never tested this anywhere except on
Windows using Chrome). For reference, here is a screenshot of what the
simulation looks like on my machine:
ripples
(https://cloud.githubusercontent.com/assets/1846708/10223522/a1d78030-6859-11e5-87f2-df38d7b4ac6f.png)
—
Reply to this email directly or view it on GitHub
(https://github.com/mbuettner/webgl-ripples/issues/2#issuecomment-144746184)
.
=

The downward effect appears to happen during an initial load in Chrome or IE.  Upon reload with the cached files, it works fine.  It's quite an interesting effect:

authors: lecopivo mbuettner willsolve

repo: mbuettner/webgl-ripples


text:
🛑 Meraki Dashboard is down

In 8c34cf9, Meraki Dashboard (https://dashboard.meraki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Meraki Dashboard is back up in acc37e3 after 30 minutes.

repo: mburrieza/StatusPage


text:
Feature request: Ableton Link support

Hi, please consider implement Ableton Link support, that would be a badass.
Cheers.

Wow, not even a link to what that is, specifications, nothing.
Use the dedicated forum: https://www.qlcplus.org/forum/viewforum.php?f=18
Closing.

Wow, not even a link to what that is, specifications, nothing.
Use the dedicated forum: https://www.qlcplus.org/forum/viewforum.php?f=18
Closing.

Check it out https://ableton.github.io/link/
And yeah, have a good year !

Check it out https://ableton.github.io/link/
And yeah, have a good year !

authors: hellishvictor mcallegari

repo: mcallegari/qlcplus


text:
#[derivative(Debug)] does not work well with packed structs

Example:
#[derive(Copy, Clone, derivative::Derivative)]
#[derivative(Debug)]
#[repr(C, packed)]
struct Test {
    a: u8,
    b: u32
}

warning: borrow of packed field is unsafe and requires unsafe function or block (error E0133)
 --> src/lib.rs:1:23
  |
1 | #[derive(Copy, Clone, derivative::Derivative)]
  |                       ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(safe_packed_borrows)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
  = note: fields of packed structs might be misaligned: dereferencing a misaligned pointer or even just creating a misaligned reference is undefined behavior
  = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

Default #[derive(Debug)] requires that the struct also derives Copy and Clone:
warning: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
 --> src/main.rs:1:10
  |
1 | #[derive(Debug)]
  |          ^^^^^
  |
  = note: `#[warn(safe_packed_borrows)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
  = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

After adding #[derive(Copy, Clone)], default Debug expands to the following (notice the copying of the fields):
impl ::core::fmt::Debug for Test {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match *self {
            Test {
                a: __self_0_0,
                b: __self_0_1,
            } => {
                let mut debug_trait_builder = f.debug_struct("Test");
                let _ = debug_trait_builder.field("a", &&(__self_0_0));
                let _ = debug_trait_builder.field("b", &&(__self_0_1));
                debug_trait_builder.finish()
            }
        }
    }
}

#[derivative(Debug)] just always references the fields instead, and referencing fields in a packed struct is -- as far as I can tell -- bad:
impl ::std::fmt::Debug for Test {
    fn fmt(&self, __f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        match *self {
            Test {
                a: ref __arg_0,
                b: ref __arg_1,
            } => {
                let mut __debug_trait_builder = __f.debug_struct("Test");
                let _ = __debug_trait_builder.field("a", &__arg_0);
                let _ = __debug_trait_builder.field("b", &__arg_1);
                __debug_trait_builder.finish()
            }
        }
    }
}

Thanks for the report. Packed types should now work on v2.2.0, which I've just release.

Thanks for the report. Packed types should now work on v2.2.0, which I've just release.

authors: mcarton rijenkii

repo: mcarton/rust-derivative


text:
Add option to get missing dependencies.

For some time now, depcheck also supports getting missing dependencies, i.e. dependencies that are being used in the code, but have not been added to the package.json file.
This was currently missing in gulp-depcheck, so I added it.

@mcasimir Ping ;-)

Ping ;-)

repo: mcasimir/gulp-depcheck


text:
🛑 ChatGenie Client API is down

In 318e569, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 6c75c28.


text:
🛑 ChatGenie Client API is down

In 136aff7, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 43f29a3.


text:
🛑 ChatGenie Client API is down

In 69728fb, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 26019d8.


text:
🛑 ChatGenie Client API is down

In 321837c, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 50da8f4.


text:
🛑 ChatGenie Client API is down

In 14e0a61, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 59e9dd0.


text:
🛑 ChatGenie MiniApp API is down

In e82a487, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 233 ms

Resolved: ChatGenie MiniApp API is back up in 8b47ada.


text:
🛑 ChatGenie Client API is down

In 06f9f0a, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 571c781 after 9 minutes.


text:
🛑 ChatGenie Client API is down

In 37708e8, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 8915875 after 27 minutes.


text:
🛑 ChatGenie Client API is down

In 72a6a3b, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in ab8bc33 after 29 minutes.


text:
🛑 ChatGenie Client API is down

In ba893d4, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 40830cb.


text:
🛑 ChatGenie Client API is down

In 0827984, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 1a80b87 after 18 minutes.


text:
🛑 ChatGenie Client API is down

In 2ae0595, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a01fc4c after 1 hour, 27 minutes.


text:
🛑 ChatGenie Client API is down

In ada7f02, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in f33b974.


text:
🛑 ChatGenie Client API is down

In 7fe2224, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in abbedb2.


text:
🛑 ChatGenie Client API is down

In 46cc7a4, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 418d97c.


text:
Test start via command line

Hi All,
Is it possible to start the test template from the command line without the need to do that from the browser?

Here's how you can start a test session based on a template from the command line:
opentest session create --template folder1/template1.yaml --wait

For more info run opentest session create -h.

thanks

repo: mcdcorp/opentest


text:
Benefits page: the user shall be able to see a list of all merchants

the benefits page (/membership/benefits) is NOT the same page as the membership page (/membership), in the future, the user will be able to click on a button on the membership page to open the benefits page in a new tab
the benefits page does not provide navigation to other pages (i.e. remove the navbar)
make sure this page is displayed correctly on phone screen
the main way of accessing this page is through redirect by the QR code endpoint
the actual list of merchant (and pictures) will be given later, use dummy pictures for now

竖屏预览

横屏（长屏预览）（如果困难的话，按照竖屏预览做就行）

Resolved by #41 as the first version of the page is finished.

authors: QCrow jimcv

repo: mcgillcssa/cssa-frontend


text:
⚠ wakapi has degraded performance

In 80d23d5, wakapi (https://waka.mcha.cloud/api/health) experienced degraded performance:

HTTP code: 0
Response time: 0 ms

Resolved: wakapi performance has improved in 7e4c66d after 4 minutes.

repo: mchaNetwork/status


text:
🛑 GitHub Mirror is down

In 0f8532a, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 197 ms

Resolved: GitHub Mirror is back up in 1cb634d after 6 minutes.


text:
🛑 Reddit Mirror (Redlib) is down

In 778ef60, Reddit Mirror (Redlib) (https://hong-di.eu.org/) was down:

HTTP code: 404
Response time: 616 ms

Resolved: Reddit Mirror (Redlib) is back up in bce54ac after 22 minutes.


text:
How to use custom pictures?

Hello, can you use custom pictures for reasoning?

You can use custom images by doing GAN inversion. You can try using projector.py in this repo for that (details in README) or use any other standard GAN inversion techniques. Do note that the current stylegan2 I use is 256x256 while many GAN inversion (such as e4e) uses 1024x1024.
You should also be able to run my method on 1024x1024 images if you swap out the pretrained models

Why does it take half an hour to generate after running?

It shouldnt take that long, are you using a GPU?

It shouldnt take that long, are you using a GPU?

Yes, this question is weird?


text:
ngrok tunnel - how to add an authtoken??

I'm trying to access the server while out and about and I'm running in to the limit of an unauthorised tunnel.  I have an authtoken from ngrok, and have been trying to find an example of how to add the token to the code that creates the tunner but havn't been able to.
Could someone post which file to change and an example of where it needs changing please?
Thanks in advance.

go to the command prompt og the folder you have ngrok and type the following
ngrok authtoken your token here it will make a config file for ngrok in the same folder.

go to the command prompt of the folder that you have ngrok.exe in  and type the following
"ngrok authtoken your token here" minus the quotes. it will make a config file for ngrok in the same folder.
Example - ngrok authtoken 3c45KbrLJ7BMxSsCH3wZd_5QTaP6mPRu1L56m2sW3aE

do someone know how to install authtoken in termux?
"ERROR:  Unrecognized command: config"

authors: FamoNd LeeCookGHA starstremr

repo: mchristopher/PokemonGo-DesktopMap


text:
[Bug] Fix bug that prevented custom tables/grids with column referral

Description
Closes https://github.com/mckinsey/vizro/issues/435 and https://github.com/McK-Internal/vizro-internal/issues/747
We now send the full DF during the build phase (instead of an empty pd.DataFrame). This could have performance consequences for very large DFs, but on the grand scheme of things I think it probably the better solution.
And alternative would be to send an empty DF with the columns present, but that may lead to other bugs down the road.
Screenshot
Notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
I have not referenced individuals, products or companies in any commits, directly or indirectly.
I have not added data or restricted code in any commits, directly or indirectly.

Thanks for fixing so quickly! 🚀  What "potential bugs down the road" do you imagine? I actually like the alternative solution approach - it's also the one we've implemented on VizX actually. I think it did not lead to any major bugs, and the performance issue was more severe.

Thanks for fixing so quickly! 🚀 What "potential bugs down the road" do you imagine? I actually like the alternative solution approach - it's also the one we've implemented on VizX actually. I think it did not lead to any major bugs (as far as I remember), and the performance issue was more severe.

So of the top of my head I could imagine that someone not only refers to a column, but also a specific row. This then would fail, as there are no rows present.
This seems to be a case of a wider range of things where people refer or rely on the size of the data, or generally anything regarding the original DF they provide.
One could argue that it is bad design to write a custom grid/table like that, but the confusion of the user showed that people simply do not expect the data to be different at any point from what they originally provide

Do we know how other tools deal with this? e.g. do they load in the data in batches? or do they always load in the entire dataset?

So the AgGrid for example has the opportunity to enable batch loading in infinite scroll, but I think that defeats a little bit the point. In principle we are not converned with loading the entire data, that is what we do anyway once the page loads with all filters/parameters etc. It is simply this initial building that immediately gets overwritten.
Ideally we would want to just create an entirely different loading component (like for graph), but it has been shown (see comment above the build lines in both table and grid) that having different settings for the objects causes problems (the case we observed was the pagination setting). Remember the long discussion we had where you said, just write "Do not change this line" :). So this is related to that.

Thanks for clarifying!

I would like to review this so please don't merge yet 🙂

repo: mckinsey/vizro


text:
Can not call - (void)didDismissFilesPicker

Touching the "cancel" button-The (void) didDismissFilesPicker method is not called.
And i find it

JVTActionSheetAction *cancel = [JVTActionSheetAction actionWithTitle:cancelTxt
actionType:kActionType_cancel
handler:^(JVTActionSheetAction *action) {
@strongify(self);
[self dismissPresentedControllerAndInformDelegate:nil];
}];

(void)dismissPresentedControllerAndInformDelegate:(UIViewController *)presentedController {
[presentedController dismissViewControllerAnimated:YES
completion:^(void) {
[self updateDelegateOnDissmiss];
}];
}

I need to receive an event when the window is closed.
Please fix it.
Thank's

And the button is not visible at the bottom after shooting the camera.
This seems to be a problem with the ViewController being displayed in popup form.

repo: mcmatan/JVTImageFilePicker


text:
Added BaseClient

Added BaseClient to this repo so that it can be used by extraction clients that import this repo.
Newly created base-icare-extraction-client extends this class.

This looks good to me as well. 👍

repo: mcode/mcode-extraction-framework


text:
swatchesOnly=true , add input

Yeah this requirement makes no sense to me.

I agree with the previous comments, this request doesn't make sense.

authors: 3400442579 mdbassit melloware

repo: mdbassit/Coloris


text:
Not automatically converting multiple files when running qBittorrentPostProcess.py

It seems that recently mp4_automator is having issues when qbittorrent passes a torrent with multiple files, such as a full season download. I thought qbittorrent may have been the issue, so I tried calling the qBittorrentPostProcess.py but got the same result as the logs. It converts one file and then stops.

2021-11-15 21:58:30 - qBittorrentPostProcess - INFO - qBittorrent post processing started.
2021-11-15 21:58:30 - resources.readsettings - INFO - /usr/bin/python3
2021-11-15 21:58:30 - resources.readsettings - INFO - Loading config file /media/xxxx/Data/Software/MP4_automator/config/autoProcess.ini.
2021-11-15 21:58:30 - qBittorrentPostProcess - INFO - Performing conversion
2021-11-15 21:58:30 - qBittorrentPostProcess - INFO - Processing file /media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi[TGx]/Yyyy.S01E06.1080p.WEB.h264-KOGi.mkv.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Input Data
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - {
    "format": "matroska,webm",
    "format-fullname": "Matroska / WebM",
    "video": {
        "index": 0,
        "codec": "h264",
        "pix_fmt": "yuv420p",
        "profile": "high",
        "fps": 24.0,
        "framedata": {
            "pix_fmt": "yuv420p",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "color_transfer": "bt709",
            "side_data_list": [
                {
                    "side_data_type": "SMPTE 12-1 timecode",
                    "timecodes": [
                        {
                            "value": "00:00:00:00"
                        }
                    ]
                }
            ]
        },
        "dimensions": "1920x1080",
        "level": 4.0,
        "field_order": "progressive"
    },
    "audio": [
        {
            "index": 1,
            "codec": "eac3",
            "channels": 6,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
        }
    ],
    "subtitle": [
        {
            "index": 2,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "eng"
        },
        {
            "index": 3,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "dan"
        },
        {
            "index": 4,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "deu"
        },
        {
            "index": 5,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "spa"
        },
        {
            "index": 6,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "spa"
        },
        {
            "index": 7,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "fin"
        },
        {
            "index": 8,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "fra"
        },
        {
            "index": 9,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "ita"
        },
        {
            "index": 10,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "jpn"
        },
        {
            "index": 11,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "kor"
        },
        {
            "index": 12,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "nld"
        },
        {
            "index": 13,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "nor"
        },
        {
            "index": 14,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "pol"
        },
        {
            "index": 15,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "por"
        },
        {
            "index": 16,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "por"
        },
        {
            "index": 17,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "swe"
        },
        {
            "index": 18,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "zho"
        },
        {
            "index": 19,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "zho"
        },
        {
            "index": 20,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "zho"
        }
    ],
    "attachment": []
}
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Reading video stream.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Video codec detected: h264.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Pix Fmt: yuv420p.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Profile: high.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Video codec parameters None.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Creating copy video stream from source stream 0.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Reading audio streams.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Audio detected for stream 1 - eac3 eng 6 channel.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Creating aac audio stream source audio stream 1 [universal-audio].
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Creating ac3 audio stream from source stream 1.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Default audio stream set to eng ac3 6 channel stream [default-more-channels: True].
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Reading subtitle streams.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 2 - subrip eng.
2021-11-15 21:58:30 - resources.mediaprocessor - INFO - Creating mov_text subtitle stream from source stream 2.
2021-11-15 21:58:31 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 3 - subrip dan.
2021-11-15 21:58:31 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 4 - subrip deu.
2021-11-15 21:58:31 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 5 - subrip spa.
2021-11-15 21:58:31 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 6 - subrip spa.
2021-11-15 21:58:31 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 7 - subrip fin.
2021-11-15 21:58:32 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 8 - subrip fra.
2021-11-15 21:58:32 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 9 - subrip ita.
2021-11-15 21:58:32 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 10 - subrip jpn.
2021-11-15 21:58:32 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 11 - subrip kor.
2021-11-15 21:58:32 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 12 - subrip nld.
2021-11-15 21:58:33 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 13 - subrip nor.
2021-11-15 21:58:33 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 14 - subrip pol.
2021-11-15 21:58:33 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 15 - subrip por.
2021-11-15 21:58:33 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 16 - subrip por.
2021-11-15 21:58:33 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 17 - subrip swe.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 18 - subrip zho.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 19 - subrip zho.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 20 - subrip zho.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Attempting to download subtitles.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Output Data
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - {
    "source": [
        "/media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi[TGx]/Yyyy.S01E06.1080p.WEB.h264-KOGi.mkv"
    ],
    "format": "mp4",
    "video": {
        "codec": "copy",
        "map": 0,
        "bitrate": 5939.018,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": "high",
        "preset": null,
        "pix_fmt": "yuv420p",
        "field_order": "progressive",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": null,
        "title": "FHD",
        "debug": "video"
    },
    "audio": [
        {
            "map": 1,
            "codec": "aac",
            "channels": 2,
            "bitrate": 256,
            "samplerate": null,
            "filter": "pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": "Stereo",
            "debug": "universal-audio"
        },
        {
            "map": 1,
            "codec": "ac3",
            "channels": 6,
            "bitrate": 768,
            "filter": null,
            "samplerate": null,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "bsf": null,
            "title": "5.1 Channel",
            "debug": "audio"
        }
    ],
    "subtitle": [
        {
            "map": 2,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": null,
            "debug": "subtitle.embed-subs"
        }
    ],
    "attachment": []
}
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Preopts
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - [
    "-fix_sub_duration"
]
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Postopts
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - [
    "-threads",
    "4",
    "-metadata:g",
    "encoding_tool=SMA"
]
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Downloaded Subtitles
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - []
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - Starting conversion.
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - FFmpeg command:
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - ======================
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - /usr/bin/ffmpeg -fix_sub_duration -i /media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi[TGx]/Yyyy.S01E06.1080p.WEB.h264-KOGi.mkv -map_metadata -1 -vcodec copy -map 0:0 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -filter:a:0 pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 ac3 -map 0:1 -ac:a:1 6 -b:a:1 768k -metadata:s:a:1 BPS=768000 -metadata:s:a:1 BPS-eng=768000 -metadata:s:a:1 "title=5.1 Channel" -metadata:s:a:1 "handler_name=5.1 Channel" -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 mov_text -map 0:2 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 4 -metadata:g encoding_tool=SMA -y /media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi_TGx__-convert/Yyyy.S01E06.1080p.WEB.h264-KOGi.temp
2021-11-15 21:58:34 - resources.mediaprocessor - INFO - ======================
2021-11-15 21:58:52 - resources.mediaprocessor - INFO - /media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi_TGx__-convert/Yyyy.S01E06.1080p.WEB.h264-KOGi.temp created.
2021-11-15 21:58:55 - qBittorrentPostProcess - INFO - Passing /media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi_TGx__-convert directory to Sonarr.
2021-11-15 21:58:55 - autoprocess.sonarr - INFO - Sonarr notifier started.
2021-11-15 21:58:55 - autoprocess.sonarr - INFO - Requesting Sonarr to scan directory '/media/xxxx/Data/Downloads/Yyyy.S01.COMPLETE.1080p.WEB.h264-KOGi_TGx__-convert'.
2021-11-15 21:58:55 - autoprocess.sonarr - INFO - Sonarr response: queued.

qBittorrentPostProcess.py has supported multi file torrents for some time, are you seeing this with every torrent or just this one?
Please post a set of logs with debug logging enabled if this is persistent
single_file = os.path.isfile(content_path) is the line where this determination is made, the content_path variable is the sys.argv[4] command line parameter, ensure that you have this appropriately configured as well if you're seeing issues

Hi @mdhiggins !
Turns out it wasn't picking up the files due to filesize facepalm I had two torrents recently that had a few videos under 100mb and since I had set that as the minimum file-size it kept skipping them. I was pulling my hair out trying to work out why it wasn't working.
Sorry about that, you're script has truly being amazing. Might be worth adding a "Skipping file due to minimum size" so other people have an easier troubleshooting in case they make a dumb mistake like mine.


text:
Design for MDN promotional newsletter subscription welcome email

User story
As a user, I want to receive an email upon signing up for MDN news and events, so that I know I have been successfully added to the list and understand additional details about what sort of information MDN will be sending me.
Acceptance criteria

[x] Provides user with details about what sorts of information MDN will be sending them
[x] Provides a way for the user to unsubscribe to the list

Tasks

[x] Create content for the email (who is this assigned to?)
[x] Create design for the email
[x] Review with product (Kadir)
[ ] Review with dev team

Design
https://mozilla.invisionapp.com/share/Y8SGMKQBCW3#/379683162_Welcome
Content
https://docs.google.com/document/d/1GIjh6M8lZMYp-39eTXoGC4Osaypswk8IsYZx1pFFeo8/edit?usp=sharing

@jmswisher would you mind reviewing the content for this email (link is in description). You can also view the design with the InVision link. Thanks!

Updated with suggested new text.

authors: jmswisher nickbrandt

repo: mdn/sprints


text:
Using nm and otool -L on shared libraries

Adding a bit more detail on how to track down libraries and symbols.

Thank you, random benevolent stranger on the internets!

authors: mdpiper mgalloy

repo: mdpiper/knowledge


text:
车型名称"蔚来"中"蔚"多音字,拼音分词只有"yulai"

搜索车型时,发现拼音"weilai"无法搜索到蔚来车型,检查发现蔚来被拼音分词成了yulai,希望提供多音字的处理方式,多谢

目前好像是使用nlp-lang这个第三方工具实现的拼音转换。我直接改了nlp-lang的源码。。

authors: buptcjj zhang-fy

repo: medcl/elasticsearch-analysis-pinyin


text:
[ally.fix.pointerFocusChildren] workaround is not solving the browser's problem

Concerning: ally.fix.pointerFocusChildren
User Agent: IE11
ally.js version: 1.1.0-beta.3

Steps to reproduce the problem
run the demo
What is the expected behavior?
the workaround works
What went wrong?
the workaround fails
Comments
As of 1.0.0 ally.js identifies elements with flexbox layout as focusable (to comply with the browser focus compatibility tables). That makes get/focus-target return the <span>. While that's correct from a global perspective, it's not what fix/pointer-focus-children expects and thus does not redirect focus to the parent element.
Also, maybe we should rename fix/pointer-focus-children to fix/focus-flexbox or something? But that would be a breaking change and demand a major version bump, according to semver. @marcysutton what do you think?

This reminds me of propagation problems with click handlers on a tree of elements...could you hijack an event and force focus to go to event.currentTarget?
I agree that a fix for flexbox only might benefit from a more specific name, but who knows if this issue will manifest in some other context....I'd probably avoid the breaking name change and leave that part as-is.

could you hijack an event and force focus to go to event.currentTarget?

I don't see how (but that doesn't mean it's not possible…)

authors: marcysutton rodneyrehm


text:
Should random() support a boolean arg?

https://docs.seneca.nl/Smartsite-Docs/XForms/XForms-Reference/XForms-Function-Library/Number-Functions/The-random()-Function.html

No. https://opendatakit.github.io/xforms-spec/#fn:random

repo: medic/openrosa-xpath-evaluator


text:
Use webhook in order to make sure NodeSpec fields are Immutable

NodeSpec section in ha-sno CR contains fields that should not be changes after creation (node name/IP).
In this PR webhooks are used in order to make sure NodeSpec fields are Immutable.

/lgtm


text:
Support adding/removing named password policies.

It's trying to add 3 new functions to the NamedPasswordPolicyCollection:

Add.
AddRange.
Remove.

Looks good at the first glance. Will fully review and publish over either this or next weekend.


text:
Autofocus password field in login flow

It would be convenient if the password field was automatically focused when it is displayed, since it's the only form control on the screen.  This would remove the need to manually click or tab into the field when logging in.
The password field is displayed in the AuthenticationForm component

Fixed by #1988

repo: medplum/medplum