Allow Default Value in Dropdown Lists

Hi,
I would like to suggest/request an additional feature for the Select or SelectOption Component.
Additional Feature:
It is not possible to select a dropbox item by default when the page is loaded.
It is possible to preset the value when the page is loaded but the dropdown box is not able to represent this value as no default value can be set.
Suggested Solution:
Implement an additional option for the Select or SelectOption component to set a default selection when the page is loaded.
Suggestion 1: For the select component an additional option could be added with Id or label of the default SelectOption.
Suggestion 2: Add a bool option to SelectOption component to set true if it is selected by default.
Current (ugly) workaround:
Preset the value when the page is loaded. Set the value as label of the Dropdown component to display the "fake" selected item. When another option is selected the label is updated to the actual name of the Dropdown List.
Many thanks!

Are you talking about Select component (https://google.github.io/mesop/components/select)?
I think you can set the starting value of the Select component using the value field. However there is a bug when multiple=True. Then setting the default value does not work (it also wouldn't allow for multiple defaults). See https://github.com/google/mesop/issues/681

Here's an example:
import mesop as me

@me.stateclass
class State:
  selected_values: list[str]

def on_selection_change(e: me.SelectSelectionChangeEvent):
  s = me.state(State)
  s.selected_values = e.values

@me.page(
  security_policy=me.SecurityPolicy(
    allowed_iframe_parents=["https://google.github.io"]
  ),
  path="/select_demo",
)
def app():
  me.text(text="Select")
  me.select(
    label="Select",
    value="value3",  # Set default to value3
    options=[
      me.SelectOption(label="label 1", value="value1"),
      me.SelectOption(label="label 2", value="value2"),
      me.SelectOption(label="label 3", value="value3"),
    ],
    on_selection_change=on_selection_change,
    style=me.Style(width=500),
    multiple=False,
  )
  s = me.state(State)
  me.text(text="Selected values: " + ", ".join(s.selected_values))

Hi Richard,
Thanks for your quick response !
I tried to do it this way but had a typo in the value name. Therefore I thought I does not work this way.
Thanks for this great framework !
Regards
Jonathan


[TRAH] shontzu/TRAH-3015/ui-for-seamless-MT5-mobile-login-integration

Changes:

this screen but for v2
CU
figma

https://github.com/deriv-com/traders-hub/assets/108507236/21b74cd9-99be-48bc-8e56-d7e74f1cb2cc

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

21 of 66 (31.82%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.9%) to 49.03%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/cfd/constants/constants.tsx
4
11
36.36%

src/cfd/modals/TradeModal/TradeModal.tsx
0
7
0.0%

src/cfd/screens/TradeScreen/MT5MobileRedirectOption.tsx
6
15
40.0%

src/utils/mobileOsDetect.ts
1
12
8.33%

src/utils/userBrowser.ts
2
13
15.38%

Totals

Change from base Build<PHONE_NUMBER>:
-0.9%

Covered Lines:
1298

Relevant Lines:
2159

💛  - Coveralls

please review the new urlConfig file I created

please review the new urlConfig file I created, this will be sent as a proposal to the BE


Invalid image urls

@rwwagner90  Images have invalid urls. Please check pull request #11

Fixed by #11


Microsoft.Web registering stuck

Microsoft.Web provider is stuck on "Registering" status.

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

ID: f3de49c2-9b53-9076-a724-feff31dbc432
Version Independent ID: 835198e7-3293-7c8f-1703-1f775f45824d
Content: Resource provider registration errors - Azure Resource Manager
Content Source: articles/azure-resource-manager/troubleshooting/error-register-resource-provider.md
Service: azure-resource-manager
Sub-service: troubleshooting
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@ayelencasamassa
Thanks for your feedback! We will investigate and update as appropriate.

We have the same problem. Trying to register it in an Azure Plan for Dev/Test, if this has anything to do with it.

@ayelencasamassa @GlarakisTaxyio If you need help to solve this product issue, please raise it by asking a question in Microsoft Q&A.
Tagging content author @tfitzmac for visibility, to review and to try enhancing this Azure document with this error details, root cause and possible solutions.

Same problem here. Microsoft.web registering stuck

Same problem here. Microsoft.GraphServices registering stuck. @Naveenommi-MSFT any news on the subject?

Same issue, are there any workarounds?

I believe the issue has been addressed. See https://learn.microsoft.com/en-us/answers/questions/1409727/resource-provider-microsoft-web-stuck-in-registeri
#please-close


Import Emissions Module Automation Suite

https://github.com/US-EPA-CAMD/easey-testing/pull/282

https://github.com/US-EPA-CAMD/easey-testing/pull/284
check upload.josn - correct fields??


examples: ping_360: Add first version

https://github.com/bluerobotics/ping-rs/pull/51#pullrequestreview-2091262739


[HOLD for payment 2022-01-12] Android - Add a round profile image on push notifications

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Log in with account A on Android
Log in with account B on web
Send some message from account B to account A
Check the push notifications

Expected Result:
Profile picture in push notification should be a circle
Actual Result:
Profile picture in push notifications are squared
Workaround:
None needed.
Platform:

Where is this issue occurring?

Android

Version Number: 1.1.10-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1635275538130700
View all open jobs on GitHub

Triggered auto assignment to @kevinksullivan (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@isagoico just to be sure before I export this, would you mind adding a screenshot of the iOS notification for comparison?

Sure! here's a pic. No profile images are displayed on iOS, only the app icon.

@kevinksullivan Huh... This is 4 days overdue. Who can take care of this?

@kevinksullivan Still overdue 6 days?! Let's take care of this!

@kevinksullivan 10 days overdue. Is anyone even seeing these? Hello?

Ok, so are we just rounding the image on android, or changing the image? I'm not sure I follow what is being proposed here.

@Santhosh-Sellavel just checking in here.

@kevinksullivan
Sorry couldn't get to this sooner!
I've attached screenshot from both platforms below, actually iOS doesn't have profile picture itself.
After seeing profile picture every where inside circle cropped and to sharp square cropped profile looks inconsistent to me.
iOS

Android

Share your thoughts, I'll look out for the possiblities in iOS.

Thanks for breaking that down @Santhosh-Sellavel . I agree we can go ahead and fix this on android for consistency.
https://www.upwork.com/jobs/~01bdeacae514a5e9eb

Triggered auto assignment to @parasharrajat (Exported)

Triggered auto assignment to @marcaaron (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Android is not one of my strong points so I will delegate the decision to @marcaaron .

Ah hmm, and I might know less than you @parasharrajat 😂
@Julesssss 🥺  ?

I see the file mentioned was added here -> https://github.com/Expensify/App/pull/4270/files
And where the bitmap is created:
https://github.com/Expensify/App/blob/d175673f141c5dcbd3ed50813d7b113fca53b4dc/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java#L210-L211
But don't know much about if we can clip that.. seem like we should be able to.

I see the file mentioned was added here -> https://github.com/Expensify/App/pull/4270/files
And where the bitmap is created:
https://github.com/Expensify/App/blob/d175673f141c5dcbd3ed50813d7b113fca53b4dc/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java#L210-L211
But don't know much about if we can clip that.. seem like we should be able to.

We should be able to do something like mentioned in this issue.
https://stackoverflow.com/questions/11932805/how-to-crop-circular-area-from-bitmap-in-android

Ok seems reasonable to me @rafaysaleem89. Just going to wait for a confirmation from @Julesssss to see if he agrees!

Yeah, I agree. Do we have some plans for IOS notifications or its out of scope? @marcaaron

Probably out of scope for this unless we already have "avatars" in the notifications for iOS. I don't recall why we are not looking into this for iOS or what the current options are for that platform. Maybe someone in the Slack channel can remember.

We could either modify the bitmap like @rafaysaleem89's proposal or create a fully customized notification layout. This is much more work and not necessary for now IMO.
Let's go with the above proposal 👍

Nice, thanks @Julesssss!

📣 @rafaysaleem89 You have been assigned to this job by @marcaaron!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

I don't recall why we are not looking into this for iOS or what the current options are for that platform. Maybe someone in the Slack channel can remember.

I also don't recall exactly why we didn't style iOS notifications, but I think the original issue was created from a specific lack of styling that David noticed for Android notifications. I'd be happy to see an issue for aligning iOS with Android but agree it should be a separate issue.

📣 @rafaysaleem89 You have been assigned to this job by @marcaaron! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖

I have already applied for the job on Upwork, I'll get started on this and can have a PR ready by Sunday.

Hi, it works on some Android devices, and it can't be fixed on other Android devices.
I couldn't remember the version number of the Android OS, what the device type was.
You can imagine what the difference is between JPEG and PNG.
No need to worry.
It's not a bug.

@rafaysaleem89 hired! @Santhosh-Sellavel can you apply as well, so I can make sure you get your reporting bonus when this is complete?

Done! @kevinksullivan

This issue fixed. Apologies for the delay but the push notifications weren't working in debug mode for some reason so I had to make release builds to test the issue.
Here is the link to the PR:
https://github.com/Expensify/App/pull/6770

Just got back from OOO, reviewed & merged the PR.

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.25-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/6770

If no regressions arise, payment will be issued on 2022-01-12. :confetti_ball:

@rafaysaleem89 paid!
@Santhosh-Sellavel can you accept the job offer and I can pay you for reporting? Thanks!

Thanks @kevinksullivan Accepted the offer now!

Paid @Santhosh-Sellavel , thanks again!


Alternative ignore list

Current in-game ignore list is tedious to fill/maintain with usernames from runewatch/runejustice and is limited to 400 entries.
Suggestion:
A plug-in that could take comma delimited lists of player names similar to how ground item highlighting works. If a player on the list is near you, their name would appear above their head in red similar to a friend you have added
This would make avoiding scammers while raiding an easier process.

This would come under Generic Player highlighting, which is Rejected as it would be incredibly strong for PKing. Sorry


Get media by facebookLocationId id

Library have Endpoint method 'getMediasJsonByLocationIdLink', but it's doesn't used here?

@truth4oll, no, but I think it is not hard to include it in next release.
As I understand it is not foursquare id, it is facebook location id

@truth4oll it's done

Nice! Thank you


File Upload not working (Docker Install)

Hi,
I've installed LetsChat using the official LetsChat Docker image and enabled file uploads using the environment variable - LCB_FILES_ENABLE (set to true). However, whenever I attempt to upload a file I get the UI alert "Woops! There were some issues uploading your files."
The logs read: [Error: EACCES, open 'uploads/55a0413d56b2dc16002231e6']
errno: -13,
code: 'EACCES',
path: 'uploads/55a0413d56b2dc16002231e6' }
This looks like some sort of permissions issue but I haven't been able to solve it. Any ideas?

@gvmatera Sorry you're experiencing this :(
@TimWolla might be able to help you out with this.

@gvmatera

@TimWolla might be able to help you out with this.

Did you mount a host folder as the volume, are you using a separate volume container or are you using a bare volume?

I'm using a bare volume.

I'm using a bare volume.

Cannot reproduce the issue with the most current Docker image. chmod permissions look fine to me:
node@acddc969cc1f:/usr/src/app/uploads$ ls -alh
total 12K
drwxrwxr-x  2 node node 4.0K Jul 18 20:19 .
drwxrwxr-x 14 root root 4.0K Jul 18 20:19 ..
-rw-rw-r--  1 root root   14 Jul 14 18:07 .gitignore

I was having the same problem. The chown node.node in the dockerfile was obviously failing. Manually changing the upload volume folder to ownership 999.999 outside of docker solved my issue.


s/e/x wont work if theres special characters

Discord s/e/x won't work if you have an gif that has special characters, e.g. ä, ö or ü (or their url-encoded version). The given image is just the noise thingy image.
For example:
https://tenor.com/view/lachen-merkel-bundestag-fröhlich-angela-merkel-gif-19641894
Just shows as:

Fixed in 9be1672bf6247c42970988f901a531b65907585b

thx, awesome project!


sql: CONCAT_AGG built-in function

PR: https://github.com/cockroachdb/cockroach/pull/9690

Closed by https://github.com/cockroachdb/docs/pull/948


BinanceAPIException: APIError(code=-1121): Invalid symbol

why i take this error some times for some pair coin
can you help me for this problem
https://stackoverflow.com/questions/70608544/binanceapiexception-apierrorcode-1121-invalid-symbol
please copy link and paste in search box for see my qustion

This is a coding issue, nothing wrong with this SDK.
Please reformat the code on SO, and fix the link in your post here, to make others locate the problem conveniently.
Your API call is for spot, not futures.


Maximum salary

I see the minimum salary code, but what if you want a range without using the full cap. Ie--- 59300-59900 type.

There is no method for setting a maximum salary cap. But you can change budget in the settings, it should work:
optimizer.settings.budget = 59900


Update Codebase to use lastest OpenAI and Shiny API

Remove shiny experimental UI notation give that the functions used are available in the main python package
changed notation of subcripting variables to using methods given that the openAI returns objects instead of nested lists.

Hi @wch . Are there any plans to update chatstream to use more recent OpenAI API syntax as in this pull request, and to add current OpenAI models as Typed options? It's fine if not, but it would be helpful to know before I invest time in learning and coding with this. Thank you!!


Consistency around Elment.Floor creation methods

Three methods for creating a floor, one uses a polygon (I assume for intersection against the openings), the other two use a profile. I think it makes sense to make all methods use one or or the other and handle the translation under the hood.

I think you're right. This is a vestige of of changes that we've made to support the Opening type, and we didn't want to break all existing calls to the existing Floor APIs.


TLS Support?

Hello there,
Is there any way to add TLS and preshared-key support for this plugin?
Thanks!

Any update on this? @shamil


Add benchmark to measure Map type argument dispatch cost in simple functions

Add a benchmark to measure the cost of dispatching map to simple
function interface. The benchmark simply  sums all the keys and values
No special optimizations are added on the vector function side, the current
numbers are stunning! simple function is ~ 200X slower.
============================================================================
vectorFunction                                               3.04ms   328.44
simpleFunction                                     0.49%   622.68ms     1.61
============================================================================

update current implementation to use folly::F14FastMap instead of std::unordered_map,
and update benchmark results.


Jeanette/scoot 199 daemon finding all runners busy

created api for scoot daemon and implemented Run() logic to return an error when all runners are busy.

Current coverage is 64.05% (diff: 88.88%)

Merging #144 into master will increase coverage by 0.32%

@@             master       #144   diff @@
==========================================
  Files            61         62     +1
  Lines          2622       2640    +18
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1671       1691    +20
+ Misses          833        831     -2
  Partials        118        118

Powered by Codecov. Last update 2493db7...dcec375


The video length keeps getting corrupted

For example, I'm downloading a kitten video with the command:
livestreamer --hls-live-edge 99800 --hls-segment-threads 5 -o ~/Desktop/test123.ts https://www.youtube.com/watch?v=2xAoAHgVr3w best
I'm monitoring the length of the video with the commnd
ffmpeg -i $1 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//

00:24:10.01
00:26:10.01
00:28:25.01
...
01:13:07.00
21:33:43.72

So it's fine until there's some sort of issue with the stream, in this case that happens after about an hour
here's a link to a ts recording with a messed up length. 21 hours when in actuality it's 1 hour and change. I have no idea how to get it back to normal.
https://www.dropbox.com/s/umh7s3kega42lbg/Mason0812.ts?dl=0
I can convert the file with Handbrake and it's fine but I'm looking for a way to fix the video length without converting.
https://www.dropbox.com/s/k7rk3axqvg4ta8y/Mason0812 1.mp4?dl=0

Hi, please use https://github.com/streamlink/streamlink as Livestreamer has been abandoned by @chrippa
No amount of talking to him (his twitter / email / work) has amount to any communication to the community.


convert slack_webhook_url to array in order to allow alerting to mult…

…iple slack channels

Ideally this could be a single string OR a list of strings. We've got several other options of type "arrayOfString" which allow this behavior, like email for example.

You can also have multiple slack alerters attached to a single rule.
alert:
 - slack:
     slack_webhook_url: https://abc.slack.com
 - slack:
     slack_webhook_url: https://foo.slack.com

Although, I will probably accept this as well, just so people can do it both ways. I don't think maybe people realize that the above is possible.


Events user doc typo fix

https://secure.phabricator.com/book/phabcontrib/article/contributing_code/#no-pull-requests


Fix presentation of XAML and code

Thank you so much, @mikkelbu. You've vastly improved the appearance of these XAML examples. We'll merge your PR now. Your changes should appear live on docs.microsoft.com in the next day or two.


Broken link for the Kompas3D

Bug Report
Package Name: [name of package which has bug(s)]
Current Behaviour

Expected Behaviour

Additional context/output

Possible Solution

System details
Windows version: [e.g. 7, 8, 10]
OS architecture: [e.g. 32bit, 64bit]
PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration

Installing 'kompas-study-np' (20) [64bit] from ru-school-scoop bucket
The remote server returned an error: (429) Too Many Requests.
URL https://s10887.cdn.ngenix.net/download/26EB9B75D172520E54FEFD1BADF2E19BED4AB7E1C7139655BDB3C3E27EEAF1AA9534B640C00B03159BEDD31F67A94B4D210D4DB93F17A0624A4B439F354DB1DB/KOMPAS/v20_Edu/x64/KOMPAS-3D_v20_Study_x64.zip#/dl.7z is not valid

Should be fixed with https://github.com/alealexpro100/ru-school-scoop/commit/4688fd0b38c74f66ecb141f32d91bd8632a8b216. Version v21 will be uploaded soon.

Thanks, V20 installs successfully!
V21 has checksum issue which is described in another case


Style/RedundantCondition incorrectly reports error with range in ternary

The Style/RedundantCondition check can product a false positive when the second part of the ternary condition contains the .. operator. This is because of the order of precedence - in order, it is:

||
..
?:

Since the check replaces ?: with ||, the expression may not evaluate to the same thing as before.

Expected behavior
No error reported for
time_period = updated_during ? updated_during : 2.days.ago..Time.now

Actual behavior
It reports this error:
`Style/RedundantCondition: Use double pipes || instead.
    time_period = updated_during ? updated_during : 2.days.ago..Time.now
                                 ^^^^^^^^^^^^^^^^^^

Autofix will change the expression to
time_period = updated_during || 2.days.ago..Time.now

and when updated_during is not nil, the expression will always throw a bad range exception.
Steps to reproduce the problem
Enter the code above and run the rubocop on the file.
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
$ exe/rubocop -V
0.79.0 (using Parser <IP_ADDRESS>, running on ruby 2.7.0 x86_64-darwin19)

This is very interesting. It seems like the order of operations for || and .. isn't what you would expect it to be
[5] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node.source
=> "updated_during || 2.days.ago"
[6] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node
=> s(:or,
  s(:send, nil, :updated_during),
  s(:send,
    s(:send,
      s(:int, 2), :days), :ago))
[7] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node.parent.source
=> "updated_during || 2.days.ago..Time.now"
[8] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node.parent
=> s(:irange,
  s(:or,
    s(:send, nil, :updated_during),
    s(:send,
      s(:send,
        s(:int, 2), :days), :ago)),
  s(:send,
    s(:const, nil, :Time), :now))
[9] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node.parent.parent.source
=> "time_period = updated_during || 2.days.ago..Time.now"
[10] pry(#<RuboCop::Cop::Style::RedundantCondition>)> node.parent.parent
=> s(:lvasgn, :time_period,
  s(:irange,
    s(:or,
      s(:send, nil, :updated_during),
      s(:send,
        s(:send,
          s(:int, 2), :days), :ago)),
    s(:send,
      s(:const, nil, :Time), :now)))

Essentially Ruby is treating this as time_period = (updated_during || 2.days.ago)..Time.now when we want, and think, it to be treating this as time_period = updated_during || (2.days.ago..Time.now).
The best solution to this would seem to be that we should check if the "else branch" is a range and wrap it in parenthesis if it is. I feel like there could be some other similar edge cases, but I can't think of any right now.


CocoaPods and dynamic frameworks

This currently will not build if included in a dynamic framework via CocoaPods.  The issue appears to be with importing FLAnimatedImage in DFImageView.h.  It throws an error on line 27 with "'FLAnimatedImage.h' file not found."

Thanks, I'm aware of the issue and will investigate dynamic frameworks in CocoaPods.

I've fixed the issue with imports, please give it a try bec08eab8a936357596bfdedcead024c6abb0161

Appears to be working, thanks!


[UNR-2425][MS] Adding SimPlayer scripts

Adding SimPlayer scripts: LaunchSimPlayerClient.bat and LaunchSimPlayers.bat
LaunchSimPlayerClient.bat - launches a single SimPlayerClient.
LaunchSimPlayers.bat - launches 10 SimPlayerClients.

I think the second script should be called Launch10SimPlayerClients.bat. If you make this change you'll also need to reflect this in the CHANGELOG entry: https://github.com/spatialos/UnrealGDK/pull/1530
Otherwise lgtm.


1.16.5?

There’s a file on the curseforge page for this mod that looks like it’s for 1.16.4. Is there a file for 1.16.5 or just .4?

The 1.16.4 version is compatible with 1.16.5 too, you can just download the file and use it in your 1.16.5 game.


Add Tor/i2p node launchers

It would be neat if there was support for running Tor and/or I2P routing nodes. Both of them have Docker images and relatively easy configs.

that's a good idea!
once we implement the docker executor type, we'll open a huge opportunity window for tons of services.

the binary management and the grid desktop app got separated into different modules. there is a new project for binary management ethereum-binaries that finally has docker support and can be used standalone or by other applications. if there will be future releases of a grid desktop app they will use this module. I put Tor and I2P on the wishlist so if this is still desired please give them an upvote here: https://github.com/PhilippLgh/ethereum-binaries/issues/3