Code format fails in VSCode, TypeScript server fails

Code formatting stopped working in VSCode lately and it looks like its related to the TSServer.  Wish I knew the root cause but right now I'm at a loss.  I turned on verbose tracing in the settings and I'm seeing the following failure.
I want to say this starts happening after I open up a .jsx file and try to format it, after that I can't format anything else.
TypeScript Version:  1.8.0
Code
[Trace - 4:13:55 AM] Sending request: format (91). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "c:/dev/Dashboard/client/reducers/initialState.js",
    "line": 1,
    "offset": 1,
    "endLine": 13,
    "endOffset": 3
}
[Trace - 4:13:55 AM] Response received: format (91). Request took 1 ms. Success: false . Message: Error processing request. Debug Failure. False expression:
[Error - 4:13:55 AM] 'format' request failed with error.
Error processing request. Debug Failure. False expression:

Expected behavior:
Ability to format code
Actual behavior:
No dice

do you see the same behavior on later TS builds*?
* See https://code.visualstudio.com/docs/languages/typescript#_using-newer-typescript-versions for how to use TS 2.0 in VSCode

Also it would be great if you can share the content of one of the files where this happens on. we just need the file where it fails and not the whole project.

disaster strikes in this file:

import React, { PropTypes } from "react";

const LoginForm = ({onChange, login}) => {
    return (
                    <form className="m-t">

                            <input
                                type = "email"
                                name = "email"
                                className = "form-control"
                                placeholder = "Username"
                                onChange = {onChange}
                                required />

                            <input
                                type = "password"
                                name = "password"
                                className = "form-control"
                                placeholder = "Password"
                                onChange = {onChange}
                                required />

                        <button
                            type = "submit"
                            className = "btn btn-primary block full-width m-b"
                            onClick = {login}
                            onSubmit = {login}>Login</button>

                        Forgot password?

Don't have an account?

                        Create an account
                    </form>
    );
};

LoginForm.propTypes = {
    onChange: PropTypes.func.isRequired,
    login: PropTypes.func.isRequired
};

export default LoginForm;

so after trying to perform a code format in the above file, it'll require a hard reset of VSCode to reset the TSServer.
I'll try that suggestion for TypeScript 2.0 and report back

Installed TypeScript 2.0.0 globally(doesn't make sense for local installs) via npm install<EMAIL_ADDRESS>-g.
Then went to the settings.json and added the following entry:
"typescript.tsdk": "C:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\typescript\\lib",
bottom right corner: 2.0.0
Same result:
[Error - 10:30:15 PM] 'format' request failed with error.
Error processing request. Debug Failure. False expression:
Error: Debug Failure. False expression:
    at Object.assert (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:1120:23)
    at Object.getFormattingScanner (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:41471:22)
    at formatSpan (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:42810:48)
    at Object.formatSelection (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:42685:20)
    at Object.getFormattingEditsForRange (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:48979:34)
    at IOSession.Session.getFormattingEditsForRange (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:50386:61)
    at Session.handlers._a.(anonymous function) (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:49860:50)
    at IOSession.Session.executeCommand (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:50732:28)
    at IOSession.Session.onMessage (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:50749:35)
    at Interface.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:52928:27)

The file above works fine for me. can you give typescript@next a try?

@mhegazy let me give that a whirl, thanks!

Any thoughts on what was going on, possibly package installation issue?

No. without debugging through it it i hard to tell what is going on. possibly an issue that was fixed.

closing for now. please reopen if you run into other issues.


Errors from Copy-LongItem over the top of an existing file

Hi
Errors from Copy-LongItem over the top of an existing file.
Copy-LongItem '\sharedocs\sites\pso\Procedures\TNSP Procedures and Contingency Plans\AusNet Services (Vic)\Operational Agreement between Vencorp (now AEMO TS) and SECV\Letter_Agreement_-SECV_and_VENCorp-January_2007-Connection_of_Portland_Windfarm_to_Alcoa_Portland_Switchyard.PDF' -Destination 'C:\temp\Procedures\TNSP Procedures and Contingency Plans\AusNet Services (Vic)\Operational Agreement between Vencorp (now AEMO TS) and SECV\Letter_Agreement-SECV_and_VENCorp-January_2007-_Connection_of_Portland_Windfarm_to_Alcoa_Portland_Switchyard.PDF' -Force
throws
Exception calling "Delete" with "4" argument(s): "(267) The directory name is invalid: [\?\C:\temp\Procedures\TNSP Procedures and Contingency Plans\AusNet Services (Vic)\Operational Agreement
between Vencorp (now AEMO TS) and SECV\Letter_Agreement_-SECV_and_VENCorp-January_2007-_Connection_of_Portland_Windfarm_to_Alcoa_Portland_Switchyard.PDF*]"
At D:\Scripts\PSModules\PSAlphaFS\PSAlphaFS.psm1:588 char:5

...             $DirObject::Delete($Destination, $true, $true, $PathFSFor ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : IOException

fixed in v<IP_ADDRESS>


R3nzSkin

when is the next update coming ? cause there is an issue with the skin changer :
failed to find pattern 48 8b 0d

when is the next update coming ? cause there is an issue with the skin changer : failed to find pattern 48 8b 0d

Same bro same and again

they will release a new version for patch 14.6 be patient

my champions do no dmg without the skins

my champions do no dmg without the skins

Not true because it just a skin

it

nah, don't be so serious about it, just joking

my champions do no dmg without the skins

It not true when you said do no dmg without the skins because it just a skin it not affect the gameplay. In game only you can see you use R3nzSkin.

nah, don't be so serious about it, just joking

Tencent servers have not been tested yet

Tencent servers have not been tested yet


go mod tidy 失败

go: found gopkg.in/check.v1 in gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: finding module for package github.com/juju/errors
go: finding module for package github.com/cznic/mathutil
go: finding module for package github.com/pingcap/tidb/types/parser_driver
go: found github.com/cznic/mathutil in github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: found github.com/juju/errors in github.com/juju/errors v0.0.0-20200330140219-3fe23663418f
go: finding module for package github.com/remyoudompheng/bigfft
go: finding module for package github.com/pingcap/tidb/types/parser_driver
go: found github.com/remyoudompheng/bigfft in github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0
go: finding module for package github.com/pingcap/tidb/types/parser_driver
canal imports
github.com/siddontang/go-mysql/canal imports
github.com/pingcap/parser tested by
github.com/pingcap/parser.test imports
github.com/pingcap/tidb/types/parser_driver: module github.com/pingcap/tidb@latest found (v2.0.11+incompatible), but does not contain package github.com/pingcap/tidb/types/parser_driver

Hello.
Fixed at https://github.com/go-mysql-org/go-mysql/pull/559


Consider to support JDBC Catalog for RisingWave’s Iceberg sink

Is your feature request related to a problem? Please describe.
Currently RisingWave’s Iceberg sink only supports filesystem catalog. The sink is not appropriate for production use, because filesystem catalog is highly inefficient.
Iceberg supports multiple catalog implementations: JDBC, Hive Metastore, custom REST service, Nessie, and AWS Glue.
The JDBC catalog is the most general vendor-agnostic implementation that allows arbitrary configurations through database connection URL. In our case, we use PostgreSQL.
Describe the solution you'd like
I'd like to be able to configure RisingWave’s Iceberg sink to use JDBC Catalog.
Describe alternatives you've considered
In our case, the only (efficient) option is the JDBC Catalog.
Additional context
An example of a Spark configuration for our setting (PostgreSQL as a JDBC Catalog).
spark-sql \
    --packages "org.apache.iceberg:iceberg-spark-runtime-3.4_2.12:1.3.0,org.apache.iceberg:iceberg-spark-extensions-3.4_2.12:1.3.0,org.apache.iceberg:iceberg-aws:1.3.0,software.amazon.awssdk:bundle:2.20.83,software.amazon.awssdk:url-connection-client:2.20.83,org.postgresql:postgresql:42.6.0" \
    --conf spark.sql.extensions="org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions" \
    --conf spark.sql.catalog.demo="org.apache.iceberg.spark.SparkCatalog" \
    --conf spark.sql.catalog.demo.catalog-impl="org.apache.iceberg.jdbc.JdbcCatalog" \
    --conf spark.sql.catalog.demo.uri="jdbc:postgresql://localhost:5432/iceberg" \
    --conf spark.sql.catalog.demo.jdbc.user="iceberg" \
    --conf spark.sql.catalog.demo.jdbc.password="" \
    --conf spark.sql.catalog.demo.jdbc.verifyServerCertificate=true \
    --conf spark.sql.catalog.demo.jdbc.useSSL="true" \
    --conf spark.sql.catalog.demo.io-impl="org.apache.iceberg.aws.s3.S3FileIO" \
    --conf spark.sql.catalog.demo.warehouse=s3://path/to/warehouse/ \
    --conf spark.sql.catalog.demo.s3.endpoint="${AWS_ENDPOINT}" \
    --conf spark.sql.defaultCatalog="demo"

We have supported rest catalog to access all kinds of catalogs.

I'm familiar with the REST catalog option. It is only worth using when support of multiple catalog backends is required.
In our case, we don't have legacy and we only target PostgreSQL. I'm not aware of any available REST catalog supporting PostgreSQL that can be used out of the box and is ready for production use.
It doesn't make much sense to develop and maintain a custom REST service just to glue PostgreSQL with RisingWave. There are simpler options available.
All that just makes RisingWave out of option for production use cases similar to ours.
@liurenjie1024

You can use this as out of box rest catalog server.

You can use this as out of box rest catalog server.

It seems more like a hello world example.

Ok. I just wanted to understand the reasoning behind dropping this feature request. Thanks.

Ok. I just wanted to understand the reasoning behind dropping this feature request. Thanks.

Are you interested in deploying risingwave? How about joining our community slack to further discuss  about your requirements?

It doesn't have to be  dropped forever, and the priority is determined by user requirements. CC @manifest

Are you interested in deploying risingwave? How about joining our community slack to further discuss about your requirements?

We would definitely consider it. It depends how well risingwave would fit our use cases.

How about joining our community slack

This issue was discussed here.


[P4_Symbolic] Add tests for conditional on table hit_1_txt.

Keyword Check:
~/sonic-buildimage/src/sonic-p4rt/sonic-pins$ ~/tools/keyword_checks.sh .
Keyword check Passed.
Build Result:
/sonic/src/sonic-p4rt/sonic-pins$ bazel build $BAZEL_BUILD_OPTS ...
Starting local Bazel server and connecting to it...
INFO: Analyzed 525 targets (251 packages loaded, 22546 targets configured).
INFO: Found 525 targets...
INFO: Elapsed time: 127.207s, Critical Path: 14.70s
INFO: 7 processes: 4 internal, 3 linux-sandbox.
INFO: Build completed successfully, 7 total actions
Test Result:
/sonic/src/sonic-p4rt/sonic-pins$ bazel test $BAZEL_BUILD_OPTS --cache_test_results=no ...
INFO: Analyzed 525 targets (0 packages loaded, 329 targets configured).
INFO: Found 350 targets and 175 test targets...
INFO: Elapsed time: 191.094s, Critical Path: 103.12s
INFO: 184 processes: 218 linux-sandbox, 18 local.
INFO: Build completed successfully, 184 total actions
//gutil:collections_test                                                 PASSED in 0.5s
//gutil:io_test                                                          PASSED in 0.5s
//gutil:proto_matchers_test                                              PASSED in 0.6s
//gutil:proto_ordering_test                                              PASSED in 0.5s
//gutil:proto_test                                                       PASSED in 0.6s
//gutil:status_matchers_test                                             PASSED in 0.5s
//gutil:test_artifact_writer_test                                        PASSED in 0.6s
//gutil:testing_test                                                     PASSED in 0.5s
//p4rt_app/tests:forwarding_pipeline_config_test                         PASSED in 8.7s
//p4rt_app/tests:grpc_behavior_test                                      PASSED in 5.6s
//p4rt_app/tests:p4_constraints_test                                     PASSED in 0.3s
//p4rt_app/tests:p4_constraints_test_runner                              PASSED in 0.5s
//p4rt_app/tests:p4_programs_test                                        PASSED in 2.4s
//p4rt_app/tests:packet_replication_table_test                           PASSED in 3.2s
//p4rt_app/tests:packetio_test                                           PASSED in 4.6s
//p4rt_app/tests:port_name_and_id_test                                   PASSED in 4.0s
//p4rt_app/tests:resource_limits_test                                    PASSED in 2.3s
//p4rt_app/tests:response_path_test                                      PASSED in 5.1s
//p4rt_app/tests:role_test                                               PASSED in 1.6s
//p4rt_app/tests:state_verification_test                                 PASSED in 3.2s
//p4rt_app/tests:vrf_table_test                                          PASSED in 2.6s
//p4rt_app/tests/lib:app_db_entry_builder_test                           PASSED in 0.1s
//p4rt_app/utils:event_data_tracker_test                                 PASSED in 0.0s
//p4rt_app/utils:table_utility_test                                      PASSED in 0.8s
//sai_p4/instantiations/google:clos_stage_test                           PASSED in 0.7s
//sai_p4/instantiations/google:fabric_border_router_p4info_up_to_date_test PASSED in 0.0s
//sai_p4/instantiations/google:middleblock_p4info_up_to_date_test        PASSED in 0.0s
//sai_p4/instantiations/google:sai_nonstandard_platforms_build_test      PASSED in 0.1s
//sai_p4/instantiations/google:sai_nonstandard_platforms_cc_test         PASSED in 0.7s
//sai_p4/instantiations/google:sai_p4info_fetcher_test                   PASSED in 0.7s
//sai_p4/instantiations/google:sai_p4info_test                           PASSED in 1.3s
//sai_p4/instantiations/google:sai_pd_proto_test                         PASSED in 0.0s
//sai_p4/instantiations/google:sai_pd_util_test                          PASSED in 0.6s
//sai_p4/instantiations/google:tor_p4info_up_to_date_test                PASSED in 0.0s
//sai_p4/instantiations/google:union_p4info_up_to_date_test              PASSED in 0.1s
//sai_p4/instantiations/google:wbb_p4info_up_to_date_test                PASSED in 0.0s
//sai_p4/instantiations/google/test_tools:table_entry_generator_helper_test PASSED in 3.2s
//sai_p4/instantiations/google/test_tools:test_entries_test              PASSED in 1.1s
//sai_p4/tools:p4info_tools_test                                         PASSED in 0.6s
//sai_p4/tools:packetio_tools_test                                       PASSED in 0.8s
//thinkit:bazel_test_environment_test                                    PASSED in 0.5s
//thinkit:generic_testbed_test                                           PASSED in 0.9s
//thinkit:mock_control_device_test                                       PASSED in 0.6s
//thinkit:mock_generic_testbed_test                                      PASSED in 0.7s
//thinkit:mock_mirror_testbed_test                                       PASSED in 0.6s
//thinkit:mock_ssh_client_test                                           PASSED in 0.0s
//thinkit:mock_switch_test                                               PASSED in 0.7s
//thinkit:mock_test_environment_test                                     PASSED in 0.1s
//thinkit:switch_test                                                    PASSED in 0.7s
//sai_p4/instantiations/google/test_tools:table_entry_generator_test     PASSED in 51.2s
Stats over 5 runs: max = 51.2s, min = 1.1s, avg = 31.1s, dev = 22.4s
//sai_p4/instantiations/google/tests:p4_constraints_integration_test     PASSED in 0.8s
Stats over 5 runs: max = 0.8s, min = 0.7s, avg = 0.7s, dev = 0.0s
Executed 175 out of 175 tests: 175 tests pass.
INFO: Build completed successfully, 184 total actions

Co-authored-by: kheradmandG<EMAIL_ADDRESS>


Fix build in latest nightly Rust

TokenTree has moved to a new module tokenstream
Blocks do not have expr properties anymore

Thank you so much! It looks like it's the same change that also broke regex_macros on the latest nightly. I will have a look at the code in the next days, but as the tests are green I really don't see any problem. BTW, please also add yourself as an author to Cargo.toml.

Yeah, I fixed docopt_macros as well :)
Just pushed a amended commit with my name in Cargo.toml. Thanks :)

👍


ValueError

Hi, I tried to first time run the finetunning with train.py. I had an error at the following lines:
parser = transformers.HfArgumentParser((ModelArguments, DataArguments, TrainingArguments))
model_args, data_args, training_args = parser.parse_args_into_dataclasses()
Below is the error message I got:
  ValueError: (Field(name=None,type=None,default='steps',default_factory=<dataclasses._MISSING_TYPE object at 0x0000016635086850>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),_field_type=None),) is not a valid IntervalStrategy

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\ProgramData\MiniConda\envs\dnabert\lib\enum.py", line 670, in __new__
      raise exc
    File "C:\ProgramData\MiniConda\envs\dnabert\lib\enum.py", line 653, in __new__
      result = cls._missing_(value)
    File "C:\ProgramData\MiniConda\envs\dnabert\lib\site-packages\transformers\utils\generic.py", line 348, in _missing_
      raise ValueError(
  ValueError: (Field(name=None,type=None,default='steps',default_factory=<dataclasses._MISSING_TYPE object at 0x0000016635086850>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),_field_type=None),) is not a valid IntervalStrategy, please select one of ['no', 'steps', 'epoch']

Any idea to fix that?
Thank you!

Can you try to install transformers with pip install transformers==4.29?

Unfortunately, I downgraded transformer package from 4.29.2 to 4.29.0 and I got the same error.
I am using Windows 11 and PyCharm IDE.
To reproduce the error, I initialized a new conda environment and did the following installation steps:
conda create -n dna python=3.8
conda activate dna
python3 -m pip install -r requirements.txt
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Additionally, the error pop at the following line in the train function at train.py:
    model_args, data_args, training_args = parser.parse_args_into_dataclasses()

I also tried to upgrate transformer to latest but it did work and with new errors.

Thanks for sharing! This is expected if you run the codes from the IDE. This argument parser is designed for running code from the command line. Can you try to run it in command line?

sorry, I met the same situation and error code. Could you tell me how to fix the issue?  Thanks

Are yor running the codes from an interactive python interpreter (e.g., Jupyter Notebook or IPython). The argparse package is expected to be run from the command line


Nav Animations Fire Every Other Time

Animation effects between views only occur every other time.
Nightly Sample : http://codepen.io/calendee/pen/fJxaq
Beta Sample : http://codepen.io/patrickarlt/pen/jFCnt/
Click on the "Go To Bar" button.  No animation. Now click on the "Go To Home" button.  No animation.  Now click on the "Go To Bar".  The animation works this time. Now click on the "Go To Home" button.  The animation works this time.
Rinse and repeat the process above.
Forum :

http://forum.ionicframework.com/t/how-to-animate-between-states-that-are-not-nested/2947/6
http://forum.ionicframework.com/t/page-transition-animation-fires-every-other-time/741

@calendee  I believe you haven't find the solution yet. The problem is when 2 states aren't at the same path level, for example take app.tabs.home and app.facts, it will work on changes between app.tabs and app.facts because they both are directly below app but won't work with app.tabs.home and app.facts. On your example you switch between app.search and app.tabs which are below app. I've been struggling with this for a while. My email is<EMAIL_ADDRESS>please contact me, if you can´t, please leave a comment.

Any news about this issue ?


Improve resources page performance with many resources

The dashboard resource's page subscribes to resource updates. Along with the subscription is a collection of initial data that were cached resources.
This didn't work quite as intended. The subscription (plus initial data) returned to the UI didn't wait for the data to be populated from the server, so it was always empty when Aspire started up or the user refreshed the browser on the resources page.
This PR updates the dashboard client to wait until initial data is populated before returning the subscription + initial data. The UI has more data to immediately render and the page finishes loading much faster.
Dashboard with 100 resources...
10+ seconds to load before (note the page scroll bar as data loads):

1-2 seconds to load after:

Microsoft Reviewers: Open in CodeFlow

A normal app like TestShop also feels faster 🚀
Before resources appear quickly over 1 second.
After resources all display immediately.

The "No resources found" message before any show up bothers me a bit. What do we think about changing it to something like "Waiting for resources" or similar, so it doesn't sound so final and is more inline with the real-time nature of the view?

Slow loading might be related to https://github.com/microsoft/fluentui-blazor/issues/1621. This PR reduces the number of re-renders which then causes fewer Expression.Compile calls. Reguardless, this is still a good change.

The "No resources found" message before any show up bothers me a bit. What do we think about changing it to something like "Waiting for resources" or similar, so it doesn't sound so final and is more inline with the real-time nature of the view?

I noticed it too https://github.com/dotnet/aspire/issues/2568

@JamesNK are you going to rebase this change?

@JamesNK are you going to rebase this change?

Review please 🙏


[AutoPR azure-kusto/resource-manager] typo: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5151

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/4018


Android listens to location in a Foreground Service

I was trying to understand why this plugin needs to show a notication on Android. Because per Android Geofencing documentation the app doesn't need to be running in the foreground to receive geofence events. See: https://developer.android.com/develop/sensors-and-location/location/geofencing#HandleGeofenceTransitions
I saw that the plugin starts a foreground service and requests location updates from the system: https://github.com/Basel-525k/geofence_foreground_service/blob/ff352619eb487dcc304062ec373cd35fdea2d918/android/src/main/kotlin/com/f2fk/geofence_foreground_service/GeofenceForegroundService.kt#L44-L52
Is this neccesary? Wouldn't the geofence be triggered by the system without this foreground location listener?

You’re correct that the geofences are registered with the system and that the system triggers them. Ideally, the apps interested in these geofences should respond accordingly. However, if the app is not running—say, if it has been killed—the system will still send geofence signals, but there won’t be any app to handle them.
To ensure proper handling of geofence events, the app’s service needs to be running. If it isn’t, the system-generated geofence signals won't be processed.

Hi @Basel-525k, I needed a simpler geofencing solution that does not rely on foreground services so I took a week to develop native_geofence.
Please take a look. Curios to what you think. Would be great to collaborate on that plugin as well if you have a use-case for it. Note that I am yet to battle test it.

@orkun1675 I've also been working on a geofence plugin that does not rely on foreground service, but ended up using this plugin.
The issue I've been hit with is that the geofence client is unreliable, at least on Android. Didn't even started on iOS.
What happened, in my testing, was that if the location wasn't being actively used the geofence events were not getting triggered. Tested it on multiple devices and emulators.  It was like the geofencing client from google play did not work unless something was constantly monitoring the location of the device.
So, if you need to have reliable geofencing on Android, a foreground service is needed.
Keep in mind, that with each new OS version, more and more restrictions are being set up. So even if the geofencing events are working at the moment without foreground service, it might become impossible in the next Android version.
You can see my work in progress at: https://github.com/vadrian89/flutter_background_geofence

Hi @vadrian89 thanks for reaching out!

Tested it on multiple devices and emulators. It was like the geofencing client from google play did not work unless something was constantly monitoring the location of the device.

This is partially true per my testing. See https://pub.dev/packages/native_geofence#known-issues.
I was not able to get Android to trigger Geofence events in the emulator without using a second app like Maps to poll for GPS. However, in my daily testing for https://chunkytofustudios.com/destiwake/ I do see the Geofence trigger on physical devices when I approach a transit stop, about 80% of the time. It is not perfect, but we cannot ask our consumers to allow us to poll for GPS constantly in the background for a B2C app like this one.
My IRL tests were performed on Pixel 8 and Pixel 4A, which are known to be pretty reliable devices per https://dontkillmyapp.com/, so maybe that helped?
I have found iOS to be much more reliable, no issues so far.

I tested on 3 devices: a OnePlus Nord 3, Xiaomi Poco X3 running LineageOS and a Xiaomi Redmi Note 8 Pro
None triggered, while in background, while on foot for a 100-120m radius.
The Xiaomi Poco triggered the exit event after I left the city, as I have forgotten to remove the geofence. It seemed that triggered correctly when I looked at the hour of the notification.

but we cannot ask our consumers to allow us to poll for GPS constantly in the background for a B2C app like this one.

I agree that it's not ok for us to overuse the device but the geofencing is done by the system and hoped for more reliability.
My use case is for a an app which is used by companies field workers and needs to be 100% reliable.
I also think that we can coordinate to develop a more flexible plugin which would allow both (or multiple) use cases.

I tested on 3 devices

To clarify, did you test using geofence_foreground_service or native_geofence or flutter_background_geofence?
We've also realized that even an OEM as big as Samsung tends to cut corners to reduce battery usage; such as killing our transit tracking apps foreground service, which is providing a critical service to the user.

My use case is for a an app which is used by companies field workers and needs to be 100% reliable.

I see, it sounds like a foreground service is justifiable in that scenario.

I also think that we can coordinate to develop a more flexible plugin which would allow both (or multiple) use cases.

The only delta between what native_geofence offers and what you need seems to be "a foreground service that polls for location every X minutes"; is that right? If so, I think native_geofence can be expanded to support that.

To clarify, did you test using geofence_foreground_service or native_geofence or flutter_background_geofence?

flutter_background_geofence
After I realized I needed a foreground service I decided to look to what the community has to offer and, if needed, contribute to them.


Add checked exceptions for run

As discussed on slack. This is mostly copy/paste. Let me know if something should change.

@natefaubion thoughts?

Sorry about this. Apparently I'm not automatically watching my repos, so I've gotten no notifications 😆

No worries, I do the same.


Email notification titles are confusing

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
No response
👟 Reproduction steps
The notification email title shouldn't really contain the status of the check.
At the very least it should contain the ACTUAL status of the check, because the way it is right now is just confusing.

👀 Expected behavior
Email notification subject should match the actual status of the check.
😓 Actual Behavior
Explained in screenshot.
🐻 Uptime-Kuma Version
1.21.3
💻 Operating System and Arch
Docker
🌐 Browser
Irellevant
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
No response

what is the content of this field:

Well, this is embarrassing.

I honestly don't remember ever filling up that field, nor does it make sense that I would hardcode it to the name of a single check.
Guess that should solve it then.


Faster e2e tests

This change is

Current dependencies on/for this PR:

main

PR #3820

PR #3822

PR #3830   👈

PR #3821

This comment was auto-generated by Graphite.


A flaw in the algorithm

Hi, guys! I'm afraid I came back with somewhat bad news.
Let's examine transformations used in leastsqbound. A bounded variable is on a boundary, when a corresponding internal variable ...

... is equal to pi or -pi when both min and max bounds are specified.
... is equal to 0 when either min or max are specified.

It's easy to see, that when a bounded variable is on a boundary (takes min or max value), then dP_boundary / dP_internal = 0. It means that all derivatives with respect to such internal variable are equal to zero, i. e. the algorithm treats any variable on a boundary as optimal, and any point on a boundary as an optimal point.
In other word the algorithm can't distinguish between optimal and non-optimal bounds (a variable is optimal on a boundary when a partial derivative points inside a feasible region). As a result the algorithm can be attracted by any boundary.
As an illustration see problem "Watson9_B" in my benchmark. In this problem the starting point is almost on the boundary, leastsqbound makes only 13 iterations and terminates with 12 active constraints, but the solution is not at all optimal.
Unfortunately, it can't be fixed in the framework of leastsqbound. In a lot of cases the algorithm will find true (near) optimal solution, but people should be aware of this issue and its consequences.

This is a known limitation when using a variable transform to enforce boundary conditions.  Section 1.3 and 5.3 of the MINUIT User's Guide provides details on the transforms used and their limitation.  Since the transforms are non-linear the algorithm can behave poorly near one of the limits. Also, the minimizer can become blocked near a limit where the derivate becomes 0 due to the transformation.  Finally, the covariance matrix does give meaningful results if one of the optimization parameters takes a value close to the limits.  The user's guide provides the following recommendations:
"""

Limits on variable parameters should be used only when needed in order to
prevent the parameter from taking on unphysical values.

When a satisfactory minimum has been found using limits, the limits should
then be removed if possible, in order to perform or re-perform the error analysis
without limits.
"""

Fundamentally bounds should be avoided on fitting parameters unless absolutely necessary.  Even then the above effects should be considered.  If optimization results in a parameter near the limits the results should be rerun either with wider limits or by fixing the value of that parameter at that limit (lmfit makes this process easier than leastsqbound).  Starting an optimization with the initial value of a parameter near the limit should be avoided entirely.
I'll add some notes about this in the documentation of the function to give users some basic details on the issue and point them to the relevant sections of the MINUIT user's guide for addition details.


Failed contribution: An error has occurred

I tried to set license to MIT for https://clearlydefined.io/definitions/nuget/nuget/-/ServiceFabric.Mocks/7.1.4 on both desktop and mobile phone (Android), it failed both times with an error:

Failed contribution

Ssreenshot:

Request: attached a zipped HAR file
Error in the network log:
{"error":{"code":"500","message":"An error has occurred","innererror":{}}}

Bump. I'm still getting this error. 4 months later and no response.


Room cleaning for Dreame D9

In the past, I have managed to successfully integrate my Dreame D9 (dreame.vacuum.p2009) into HomeKit, including specific room cleaning. What I did was as follows:

I've searched up ways to extract the room-ids assigned by the Xiaomi Home app, many users concluded that the ids are "randomly generated" but can somehow be newly assigned (from 1-99X) by setting up a timer in the Xiaomi Home app, so I did that.

I've set up the Homebridge Miot Plugin and added an action button with the action "2.3" or "vacuum:start-room-sweep" and parsed in the room id via "params", an example can be found below:

{     "action": "2.3",     "name": "Clean Kitchen",     "params": [         "1"     ] }
This worked perfectly fine, however, since the last Firmware Update this method doesn't seem to work anymore. The first thing I've tried is to set up a new timer, which also didn't work. I also took a look into the log files created by the cracked Xiaomi Home App by vevs to try and perhaps extract the somehow newly assigned room id's, however that didn't help much as well. If it helps, the logfile spits out the following when starting a room cleaning with one room selected:
2022-10-03 18:48:28 -> {"id":246,"method":"action","params":{"did":447528980,"siid":4,"aiid":1,"in":[{"piid":1,"value":18},{\"selects\":[[2,1,3,3,1]]}"}]}}
if more rooms, e.g. 2 are selected, it will look like this:
2022-10-03 18:48:28 -> {"id":246,"method":"action","params":{"did":447528980,"siid":4,"aiid":1,"in":[{"piid":1,"value":18},{\"selects\":[[2,1,3,3,1],[3,1,3,3,1]]}"}]}}
unfortunately, I don't have any logfiles from before the firmware update, so i can't say for sure if anything has changed.
I would gladly appreciate any help, as I'm struggling to get it to work on my own.

Hi,
did you have a look at the Dreame guide here? https://github.com/merdok/homebridge-miot/blob/main/docs/robotcleaner.md#dreame

Hi, did you have a look at the Dreame guide here? https://github.com/merdok/homebridge-miot/blob/main/docs/robotcleaner.md#dreame

Oof, didn't know that this guide even exists / I didn't search properly. Thanks so much, I'm going to try it out and post my result when I'm done.

Hi, did you have a look at the Dreame guide here? https://github.com/merdok/homebridge-miot/blob/main/docs/robotcleaner.md#dreame

It does work now, thank you!


Always sign request by adding Header fields

Right now we try to sign HEAD and GET request by adding the signing parameters to the URL. According the AWS documentation there is no difference in signing urls vs headers.
Since signed urls are generally something that should be handled with extra care, we should always sign by adding signing headers.
The code to be changed can be found in AWSClient:
    func createHTTPRequest(signer: AWSSigner) -> AWSHTTPRequest {
        // if credentials are empty don't sign request
        if signer.credentials.isEmpty() {
            return self.toHTTPRequest()
        }

        switch (self.httpMethod, self.serviceProtocol) {
        case ("GET",  .restjson), ("HEAD", .restjson):
            return self.toHTTPRequestWithSignedHeader(signer: signer)

        case ("GET",  _), ("HEAD", _):
            if self.httpHeaders.count > 0 {
                return self.toHTTPRequestWithSignedHeader(signer: signer)
            }
            return self.toHTTPRequestWithSignedURL(signer: signer)

        default:
            return self.toHTTPRequestWithSignedHeader(signer: signer)
        }
    }

thanks @Ro-M!


(Request) Alerts for contextual feedback

I guess toasts are a great way to give users feedback at some points, but I think it would be useful to have some static color alerts also, like the ones in http://getbootstrap.com/components/#alerts

Duplicate of #389


Revert additional line

Motivation
69e334d2992681218b7f73d565520feb931647d6, a manual revert of https://github.com/tokio-rs/tokio/pull/4383 due to crate reorganization, appears to be missing one changed line.

Solution
Revert the line

Just for completeness, here is the segment that I missed
https://github.com/solana-labs/solana-tokio/commit/4eed411519783ef6f58cbf74f886f91142b5cfa6#diff-89b1830bf4deaa3d4f631fa6f55970975adf4810e2d825ebdd79f877b9b0fcc9L514-R516


Fixed typo: Changed MessageHanderName to MessageHandlerName

Summary
Found and fixed the following typo: Changed MessageHanderName to MessageHandlerName.
Changelog
[iOS] [Fixed] - Fixed typo in RCTWKWebView.
Test Plan
Only changed private local variable name, no tests needed.

Good find! I believe this code is all going away though and has been moved to a standalone repo here: https://github.com/react-native-community/react-native-webview. Looks like they caught and fixed this too: https://github.com/react-native-community/react-native-webview/blob/master/ios/RNCWKWebView.m#L17

Thanks for the PR! This component is deprecated in core and has been forked into a community repo, https://github.com/react-native-community/react-native-webview/. It looks like the typo is fixed in that version of the component: https://github.com/react-native-community/react-native-webview/blob/master/ios/RNCWKWebView.m
I appreciate the fix anyways! I'm going to close this since all new development is happening in the fork.

Oops, I had this tab open and hadn't refreshed. I swear I hadn't seen Eli's comment! :)


Manual run fold_toggle fails auto_unfold of node

Description
After run fold_toggle on current node, the default behaviour of auto_unfold -ing others stops working.
Steps to reproduce:
1.Open outline window
2.Click to focus on one node with children underneath.
We watched the node unfolding. OK.
3.Click to focus on second node with children underneath.
We watched the second node unfolding, and previous node collapsing. OK.
4.Run fold_toggle (I set with Tab key in keymaps={...fold_toggle = {''}...}).
Run again.
We watched the second node collapsing and unfolding again.
5.Swtich focus back to the first node (in step 2).
Expected: the second node would collapse.
Reality: nothing happends with the second node (keep unfolded).
Neovim setup

Neovim version:   v0.11.0-dev-3c803483a
Outline.nvim version:   v1.0.0
Neovim distro (if applicable):  LazyVim
Plugin manager:   Lazy.nvim

Config:
keymaps = {
fold_toggle = {'<Tab>'},
}，
symbol_folding = {
  auto_unfold = {
    hovered = true,
    only = 0,
  },
},

Hi, manual folds (as the result of the folding key maps) are saved and they will not be affected by the auto-folding behaviour. They can be reset using the R key by default. Could you give it a try and see if that fixes auto-folding?

I can confirm the R key resets the auto-folding.
Is there an option to keep the auto-folding behaviour after running fold_toggle (also fold_toggle_all), without pressing R key? IMHO, I find no reason to affect the auto-folding (:.
Thank you very much.

Hmm I see, I'll make this a feature request for now then.


[stable/mongodb] fail to connect to mongodb replicaset

Problem
[stable/mongodb] connection string problem
Version of Helm and Kubernetes:

version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.7", GitCommit:"8fca2ec50a6133511b771a11559e24191b1aa2b4", GitTreeState:"clean", BuildDate:"2019-09-18T14:47:22Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"windows/amd64"}

Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"1da9875156ba0ad48e7d09a5d00e41489507f592", GitTreeState:"clean", BuildDate:"2019-11-14T05:19:20Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}

Which chart:
[stable/mongodb]
What happened:
can't connect to mongodb replicaset
How to reproduce it (as minimally and precisely as possible):

helm install replicaset --set mongodbRootPassword=rootpassword,mongodbUsername=user,mongodbPassword=password,mongodbDatabase=Demographic,replicaSet.enabled=true stable/mongodb

kubectl port-forward --namespace default svc/replicaset-mongodb 27017:27017 & mongo --host <IP_ADDRESS> --authenticationDatabase admin -p rootpassword

(C# client) MongoClient dbClient = new MongoClient("mongodb://root:rootpassword@localhost:27017?replicaSet=rs0&authSource=admin");

Anything else we need to know:
Hi All,
I am new to kubernetes and mongodb, and now I want to run a mongodb replicaset on azure vm.
 I first did a port-forward and then connected to my replicaset via connection string:
MongoClient dbClient = new MongoClient($"mongodb://root:rootpassword@localhost:27017?replicaSet=rs0&authSource=admin");

However it always failed with a timeout exception when I insert BsonDocument.
System.TimeoutException
  HResult=0x80131505
  Message=A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [] }.
  Source=MongoDB.Driver.Core
  StackTrace:
   at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask)
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken)
   at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken)
   at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.BulkWrite(IEnumerable`1 requests, BulkWriteOptions options, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionBase`1.<>c__DisplayClass64_0.<InsertOne>b__0(IEnumerable`1 requests, BulkWriteOptions bulkWriteOptions)
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, Action`2 bulkWrite)
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, CancellationToken cancellationToken)
   at DemographicDataLoader.Program.<>c__DisplayClass1_0.<Main>b__0(Int32 i) in C:\Users\v-lehsie\Desktop\ReverseGeocoder\private\DataMarketPlace\DataPipeline\Demographic\ConsoleApp1\Program.cs:line 64
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)

I have gotten stuck into the problem for days. Are there any steps I missed?
Thanks.

Hi,
I saw that the mongo command worked inside the pods, but did you try running the mongo command in the same host you did kubectl port-forward? This may give us more information about the issue.

Hi javsalger,
Thanks for your reply, I did some further trails.
Now I can access the replicaset inside the cluster with both these urls:

mongo "mongodb://root:rootpassword@replicaset-mongodb-primary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017"
mongo "mongodb://root:rootpassword@replicaset-mongodb-primary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017,replicaset-mongodb-secondary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017,replicaset-mongodb-arbiter.default.svc.cluster.local:27017/admin?replicaSet=rs0"

It will take me to rs0:PRIMARY mongo shell, worked fine.
Then I tried to expose all my replicaset-mongodb with type=LoadBalancer, which also worked fine.
NAME                             TYPE           CLUSTER-IP     EXTERNAL-IP      PORT(S)           AGE
kubernetes                       ClusterIP      <IP_ADDRESS>       <none>           443/TCP           32d
replicaset-mongodb               ClusterIP      <IP_ADDRESS>   <none>           27017/TCP         8h
replicaset-mongodb-arbiter-0     LoadBalancer   <IP_ADDRESS>    <IP_ADDRESS>    27017:30829/TCP   41m
replicaset-mongodb-headless      ClusterIP      None           <none>           27017/TCP         8h
replicaset-mongodb-primary-0     LoadBalancer   <IP_ADDRESS>   <IP_ADDRESS>     27017:30325/TCP   8h
replicaset-mongodb-secondary-0   LoadBalancer   <IP_ADDRESS>   <IP_ADDRESS>   27017:31758/TCP   42m

The problem is when i try to connect remotely following the same style,
MongoClient dbClient = new MongoClient("mongodb://root:rootpassword@<IP_ADDRESS>:27017,<IP_ADDRESS>:27017,<IP_ADDRESS>:27017/admin?replicaSet=rs0");

it gave me
System.TimeoutException
  HResult=0x80131505
  Message=A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/replicaset-mongodb-arbiter-0.replicaset-mongodb-headless.default.svc.cluster.local:27017" }", EndPoint: "Unspecified/replicaset-mongodb-arbiter-0.replicaset-mongodb-headless.default.svc.cluster.local:27017", State: "Disconnected", Type: "Unknown", HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: No such host is known
   at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
   at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
   at System.Net.Dns.<>c.<GetHostAddressesAsync>b__25_1(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.ResolveEndPointsAsync(EndPoint initial)
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)", LastUpdateTimestamp: "2019-12-04T03:40:58.0189679Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/replicaset-mongodb-primary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017" }", EndPoint: "Unspecified/replicaset-mongodb-primary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017", State: "Disconnected", Type: "Unknown", HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: No such host is known
   at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
   at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
   at System.Net.Dns.<>c.<GetHostAddressesAsync>b__25_1(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.ResolveEndPointsAsync(EndPoint initial)
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)", LastUpdateTimestamp: "2019-12-04T03:40:58.0120977Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/replicaset-mongodb-secondary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017" }", EndPoint: "Unspecified/replicaset-mongodb-secondary-0.replicaset-mongodb-headless.default.svc.cluster.local:27017", State: "Disconnected", Type: "Unknown", HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: No such host is known
   at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
   at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
   at System.Net.Dns.<>c.<GetHostAddressesAsync>b__25_1(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.ResolveEndPointsAsync(EndPoint initial)
   at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)", LastUpdateTimestamp: "2019-12-04T03:40:58.0226635Z" }] }.
  Source=MongoDB.Driver.Core
  StackTrace:
   at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask)
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken)
   at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken)
   at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.BulkWrite(IEnumerable`1 requests, BulkWriteOptions options, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionBase`1.<>c__DisplayClass64_0.<InsertOne>b__0(IEnumerable`1 requests, BulkWriteOptions bulkWriteOptions)
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, Action`2 bulkWrite)
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, CancellationToken cancellationToken)
   at DemographicDataLoader.Program.<>c__DisplayClass1_0.<Main>b__0(Int32 i) in C:\Users\v-lehsie\Desktop\ReverseGeocoder\private\DataMarketPlace\DataPipeline\Demographic\ConsoleApp1\Program.cs:line 106
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)

However, I can connect with the primary node directly with
MongoClient dbClient = new MongoClient("mongodb://root:rootpassword@<IP_ADDRESS>:27017/admin");

But directly connect to primary node and insert data cause some corrupted database insertion like this(I only insert data to database "Demographic"):
rs0:PRIMARY> show dbs
@emographic  0.000GB
Damographic  0.000GB
Demkgraphic  0.000GB
Democraphic  0.000GB
Demographic  0.014GB
Demographig  0.000GB
Demographmc  0.000GB
Demograplic  0.000GB
admin        0.000GB
config       0.000GB
local        0.061GB


add some docs, use markdown

add markdown to the sphinx build
add building, using documentation

Fixes #24

let's just merge it and refine. I'm trying to enable rtd previews of PRs first though.

hm, probably only works for newly created PRs, so I'm merging this one.


More complex filters

Currently, filters are any-of, and they are very simple. Some ideas for extending filters:

All-of filters, e.g. --where "ProcessName=w3wp && PayloadField=223"
Filters with additional operators, e.g. --where PayloadField>223

I think this issue should be closed

Issue #7 : More complex filters #8

PR is merged

Yes. In the future, if you add "resolves #NNN" or "fixes #NNN" to the PR description, it will auto-close the issue when it's merged.

Alright, will do. Thanks


Update README.md

Add SAPIEN, LeRobot and cuRobo.
Update link for Isaac Sim.
Move robosuite to machine learning part because it's a wrapper of mujoco for learning.

Thank you!


Curious About Failed Source Map Loading on Startup

When I start Storybook, it takes a while because of lot of source map loading failures like this:

I am wondering if anyone can deduce anything wrong from my configuration based on this output. Thanks.

Could you please share your configuration?

Absolutely
const svgPlugin = require("vite-plugin-react-svg")

module.exports = {
	stories: ["../**/__stories__/*.stories.@(ts|tsx)"],
	addons: [
		"@storybook/addon-links",
		{
			name: "@storybook/addon-essentials",
			options: {
				backgrounds: false,
			},
		},
		"@storybook/addon-a11y",
	],
	core: {
		builder: "storybook-builder-vite",
	},
	viteFinal: async config => {
		return {
			...config,
			plugins: [
				svgPlugin({
					defaultExport: "component",
					expandProps: "end",
				}),
				...config.plugins,
			],
		}
	},
}

Try adding your extra dependencies to optimizeDeps?

FWIW I get this when I run
info => Using cached manager
Pre-bundling dependencies:
  react
  @reach/router
  @chakra-ui/react
  react-icons/md
  date-fns
  (...and 12 more)
(this will be run only when your dependencies or config have changed)

As for optimizeDeps, can you elaborate on the kinds of stuff I should put in there? I experimented with this:
optimizeDeps: {
				...config.optimizeDeps,
				entries: ["../**/__stories__/*.stories.@(ts|tsx)"],
				include: [
					"react",
					"@chakra-ui/react",
					"date-fns",
					"@storybook/react",
					"@storybook/client-api",
					"@storybook/client-logger",
				],
			},
}

Now I don't get all those source map messages, but Storybook just hangs without end

but Storybook just hangs without end

The first time you start Storybook, it can take some seconds, because it loads all the ESM modules individually (just take a look at the network tab in your browser debugger.) The files should be cached in the browser, so it loads much quicker the second time!

Yeah I know. The source map thing I posted about isn't a dealbreaker. I'm used to it. I was just wondering if anyone else had the same problem and how they dealt with it.
The changes I experimented with using optimizeDeps caused Storybook never to load, and that is definitely worse!


How to export model to onnx without nms?

I just trained a FCOS model. I have to do the post process separately. How to export model to onnx without nms?

@shizidushu  please use mmdeploy


Processing Instructions Cause Failed Import

When importing XML containing processing instructions, spark-xml yields no data. Consider this test case:
<foo>
<bar>
<?issue?>
lorem ipsum
</bar>
</foo>

When using sql.read.format("xml").option("rowTag", "foo").load(filepath) in the Python API, the above yields an empty dataframe. In contrast, running the same code with the <?issue?> removed appears to create a valid dataframe containing a "bar" column with one entry, "lorem ipsum".
For reference, my current submission command is spark-submit --packages com.databricks:spark-csv_2.11:1.5.0,com.databricks:spark-xml_2.11:0.6.0 script.py.
At the moment, there doesn't appear to be a way to handle this other than manually removing all the processing instructions. Is there some way to ignore them and access the rest of the contents?

Hm, I wonder how the processing instructions should be interpreted into Spark DataFrame.

Once the <foo> is found, the rest is parsed with an XML parser. I am guessing it doesn't like the processing instruction. Can it actually appear there in XML? hm, seems so. If anything it should be ignored of course. I don't know if/when I'll have time to look at it, but a debugger should quickly show what it is doing with them. maybe it's an easy fix to just ignore it.

I think https://github.com/databricks/spark-xml/pull/412 will fix this.


Get-AlertEntitiesEnrichment - Error when deploying

Hi All,
Just wondering if anyone else is getting the same error
When deploying this playbook into my sentinel im getting the following error
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"WorkflowTriggerNotFound","message":"The workflow 'GetAlertEntitiesEnrichment' trigger 'When_a_response_to_an_Azure_Sentinel_alert_is_triggered' could not be found."}]}
The first part deployed fine with App registration etc, its the Get-AlertEntitiesEnrichment section
I'm running my Sentinel in one Resource Group and have adding a second resource group for SOAR components, unsure if anyone else runs it in this manner and has had success with this
Can someone advise?
Regards
Xebus

If you change the line 583 of Get-AlertEntitiesEnrichment.json from:
"value": "[listCallbackURL(concat(resourceId('Microsoft.Logic/workflows/', parameters('logicAppName')), '/triggers/When_a_response_to_an_Azure_Sentinel_alert_is_triggered'), '2016-06-01').value]"
to
"value": "[listCallbackURL(concat(resourceId('Microsoft.Logic/workflows/', parameters('logicAppName')), '/triggers/Microsoft_Sentinel_alert'), '2016-06-01').value]" your deployment will go through.
Shameless plug, you might give a try to this if you are looking at enrichment: https://aka.ms/mstat 🤖

cheers found it, and is now working properly :) cheers @piaudonn


Use yaml.safe_load to avoid warnings under PyYAML 5.1

Geez it's been quite a while since I've last played with this code... TLDR PyYAML 5.1 warns if you use yaml.load without a loader, 5.1 adds another function you can use instead of you need the fancy stuff, but Sakefiles never used any of that anyway so it's kinda pointless and switching to safe_load is easier.

Thanks for the request! Before I merge it, I have to see why it's failing on 2.7 and update the docs to say that 3.5 or higher is necessary, or I can detect the version and revert to an old version of networkx

Sorry it took so long!
I merged the request but then I had to make a slight change to the yaml.(safe_)?load calls so it would still work with 2.7 (because of a but in PyYAML)
I figure Debian's still on 2.7, and we put a lot of work into making it dual compatible so it'd be a shame to throw that all away.
I also incremented the version number, updated the docs, and sent to PyPI!


Change LICENSE

Please change the license from GPL to LGPL
GPL binaries cannot include any proprietary code, then this is very problematic to modders.

Can you please elaborate?

https://fluendo.com/en/blog/post/gpl-vs-lgpl/

GPL license does not allow the binary to be distributed along with proprietary codes, that is, it is legally forbidden to place this mod in a modpack that has proprietary mods, for example

https://blog.jwf.io/2020/04/open-source-minecraft-bukkit-gpl/

So? Using CurseForge's modpacks, I don't see an issue there as mod files are not distributed together, but are downloaded seperately. I also don't see how the whole Bukkit situation comes into play in this, as the license itself has very little to do with it. It's more about Mojang and the Bukkit Dev's relationship why this whole thing happened.

Closing this. As I understand it, this is unnecessary, and judging by the fact that you have not replied to my latest comment, it seems you are no longer interested in this.


Node failure on simple WireNet simulation

Hi,
I'm trying to set up a simple simulation with two peers connected by a simple point-to-point link.
To that end, I'm using the WireNet network. Here is my test script:
import simbricks.experiments as exp
import simbricks.nodeconfig as node
import simbricks.simulators as sim
from simbricks.simulator_utils import create_basic_hosts

class TestConfig(node.AppConfig):

    def run_cmds(self, node):
        return [
            #'ls /proc/sys/net/ipv6/',
            #'sysctl net.ipv6.conf.all.disable_ipv6',
            'ip -6 a add ::1/128 dev lo',
            'ip -6 a add %s dev lo' % self.v6,
            'ip l set dev lo up',
            'ip a',
            'sleep 10',
            'ip -6 a',
            'ip -6 r'
        ]

e = exp.Experiment('test')
net = sim.WireNet()
e.add_network(net)

nodes = create_basic_hosts(
    e,
    2,
    'nodes',
    net,
    sim.I40eNIC,
    sim.QemuHost,
    node.I40eLinuxNode,
    TestConfig,
    ip_start=2
)

ips = ['fc00:1:2::/64', 'fc00:1:3::/64']
for nid, node in enumerate(nodes):
    node.wait = True
    node.node_config.app.v6 = ips[nid]
experiments = [e]

I just enabled the IPv6 support in the kconfig file and rebuild the containers from 14c12a7d1acdb3efcff91bc0012cd0f8f692e9f1.
It seems that I'm missing something in the configuration since node 1 fails with an error while node 0 produces the expected output.
[...]
prepare_test.0 TERMINATED: 0
prepare_test.0 TERMINATED: 0
test: starting nic.nodes.0.
test: starting nic.nodes.1.
test: waiting for sockets nic.nodes.0.
test: waiting for sockets nic.nodes.1.
await_file(/simbricks/experiments/out/test/1/dev.pci.nodes.0.)
await_file(/simbricks/experiments/out/test/1/nic.eth.nodes.0.)
await_file(/simbricks/experiments/out/test/1/nic.eth.nodes.1.)
await_file(/simbricks/experiments/out/test/1/dev.pci.nodes.1.)
test: started nic.nodes.0.
test: started nic.nodes.1.
test: starting net.
net. ERR: ['SimbricksBaseIfConnect: connect failed: No such file or directory']
net. ERR: ['SimbricksNetIfInit: SimbricksBaseIfConnect failed: Invalid argument']
net. TERMINATED: 255
test: started net.
test: starting host.nodes.0
test: starting host.nodes.1
[...]

I can provide the full execution logs if required.
I suppose that I have to connect somehow both hosts together but I'm not sure how to do so. Do you know what I'm missing in the configuration?
Thanks in advance for your help!

Hi Nicolas,
can you check whether #32 fixes your issue? Let me know if you encounter any other hurdles.
Cheers,
Jonas

Hi Jonas,
Thank you for the fix, it solves the issue!
Nicolas


Separate ParitalName for relative names

When using relative names, it is not always possible to identify whether it refers to a type or a class. Sometimes, the same relative name can refer to both types and classes. So, there needs to be a third option in the Syntax.Types PartialName tuple. The three options would be:

TypeName String (Always an absolute name)
ClassName String (Always an absolute name)
RelativeName String (Can be type or class)

With this third format, it may also be reasonable to update how the parser and desugaring treats new inputs. Rather than calling everything a type and then renaming some to a class, it may be worth calling everything a relative name, then replacing all relative names which are actually absolute with the corresponding absolute form.

Completed, but instead implements RelativeName as a TypePredicate


Support for mongo change streams

Mongo change streams are available since mongo version 3.6.
PyMongo has native support for them as well:
with db.watch() as stream:
    for change in stream:
        ...

However, there is no method watch for mongomock db or collection - db.watch results in Database object and db.collection.watch results in Collection.
Would it be possible to add support for change streams in mongomock?

I was just about to try using mongomock, but got turned off by not supporting changestreams, fwiw.

+1

I need this support as well. Anyone know of any alternatives?


itk::ImageAdaptor TransformXYZ methods should be marked override

Description
itk::ImageAdaptor inherits methods TransformPhysicalPointToContinuousIndex and such from itk::ImageBase, and calls the corresponding methods on the internal m_Image. But these methods are not marked as override, and wrong behavior ensues if referring to an ImageAdaptor using an ImageBase pointer.
Steps to Reproduce
using A=itk::ImageAdaptor<TImage,TFunctor>;
typename itk::A::Pointer a = itk::A::New();
a->SetOrigin({{5,5,5}});
itk::ImageBase<3> *b = a.GetPointer();
std::cout << b->GetOrigin() << std::endl;     // Prints correct origin because method is marked override
b->TransformPhysicalPointToContinuousIndex(_,_); // Wrong output because method in ImageBase is called

Versions
5.1.2
Environment
Any

Since TransformPhysicalPointToContinuousIndex is heavily used in image resampling, registration, etc., it is not virtual to avoid the performance overhead of a vtable lookup.
For your use case, is it possible to use a template argument for the image type, for a downcast?

Hi Matt
I see, that makes sense. I found a workaround, so it's all good.
Thank you!
Paul
On Tue, Feb 2, 2021 at 7:15 PM Matt McCormick<EMAIL_ADDRESS>wrote:

Since TransformPhysicalPointToContinuousIndex is heavily used in image
resampling, registration, etc., it is not virtual to avoid the performance
overhead of a vtable lookup.
For your use case, is it possible to use a template argument for the image
type, for a downcast?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/InsightSoftwareConsortium/ITK/issues/2281#issuecomment-772105667,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJPEWZYSDMVV2NBZAWXPA3S5CIRBANCNFSM4W7KKHEA
.

--
Paul A. Yushkevich, Ph.D.
Professor of Radiology
Penn Image Computing and Science Laboratory
University of Pennsylvania Perelman School of Medicine

Would it make sense to copy the m_Image's Direction, Spacing, Origin to the ImageBase? This would make the ImageBase's Transform methods work correctly.

I think that would be a good solution, and should not introduce significant
overhead.
On Wed, Feb 3, 2021 at 7:31 AM Bradley Lowekamp<EMAIL_ADDRESS>wrote:

Would it make sense to copy the m_Image's Direction, Spacing, Origin to
the ImageBase? This would make the ImageBase's Transform methods work
correctly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/InsightSoftwareConsortium/ITK/issues/2281#issuecomment-772473229,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJPEW64HWHOJV2O3DI4NEDS5E6YRANCNFSM4W7KKHEA
.

--
Paul A. Yushkevich, Ph.D.
Professor of Radiology
Penn Image Computing and Science Laboratory
University of Pennsylvania Perelman School of Medicine


wine: Call from 0x7bc4a9c9 to unimplemented function api-ms-win-crt-runtime-l1-1-0.dll._initialize_onexit_table, aborting

wine: Call from 0x7bc4a9c9 to unimplemented function api-ms-win-crt-runtime-l1-1-0.dll._initialize_onexit_table, aborting

@iver3on Thanks for bringing this up! A little bit of context would be helpful. What is your environment? Which command did you execute last? ...

@suchja  Thanks. Let me describe my problem first
I have a python packaged Windows exe application, and I want to run it in the docker image of Linux,
I searched for wine and didn't know wine could realize my appeal.
When I run wine *****.exe， problem happens like Call from 0x7bc4a9c9 to unimplemented function api-ms-win-crt-runtime-l1-1-0.dll._initialize_onexit_table, aborting

and I encapsulate it in Java, using Java calls.
Process process = new ProcessBuilder("wine","xxxxxx.exe"）
it ouput like this:
Can't attach process 002c: error 5


Moving custom markup documentation

It's currently in DEPLOY.md, but shouldn't it rather go into CONTRIBUTING.md?

Fixed in b8a23281cc4d0b578985a94504f96794623b074e.


Relicense under OSI-approved license

I would like to move this project from the initial CC0 license chosen by @yuvipanda for the origin repo at https://github.com/yuvipanda/personal-wiki to a license that is approved by the Open Source Initiative. Doing so will make using this software in Wikimedia's Cloud Services platform easier.
I would propose the MIT license as the most widely used permissive license (in my opinion) in the OSI-approved list. Currently the only documented contributors to these works are myself and @yuvipanda, so with his approval the re-licensing can be performed.

Technically I believe that a CC0 licensed product can be arbitrarily re-licensed in a fork based on my understanding of the CC0 release of rights, but I'd still like @yuvipanda's approval because its the nice thing to do.

Absolutely, feel free! I prefer Apache2 myself but MIT is great too.
On Jul 24, 2017 8:05 PM, "Bryan Davis"<EMAIL_ADDRESS>wrote:

Technically I believe that a CC0 licensed product can be arbitrarily
re-licensed in a fork based on my understanding of the CC0 release of
rights
https://wiki.creativecommons.org/wiki/CC0_FAQ#Can_I_control_how_my_work_is_being_used_once_I_publish_it_using_CC0.3F,
but I'd still like @yuvipanda https://github.com/yuvipanda's approval
because its the nice thing to do.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bd808/wikimedia-cloud-vps-dsh-generator/issues/1#issuecomment-317615509,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB23jN0f8JMCgrUjq62g3f14rGyRGegks5sRVuMgaJpZM4OiAQC
.

Apache2 sounds good to me too. I suggested MIT just because it was the "most permissive".


CLOUDSTACK-8642: SSO Method not allowed bug fix.

Due to CLOUDSTACK-8505 and commit 1c81b241e7914b24b06c3b7b3ee98bc0d3b4f68b only POST methods are allowed. This needs to be explicitly stated in the AJAX method.

LGTM
Seems like a use-case which was missed when this was changed

makes sense, do we have a unit test mech on javascript code?
LGTM

LGTM.
who will merge it? :)

I should, mine was the second 'LGTM' but was hoping for some discussion on javascript test code


Need Markdown for ChangeInterval command

The ChangeInterval command needs Markdown documentation.

Markdown documentation has been added for 13.01.00 release.  Close this issue.


Made the website responsive for tablet and mobile users.

For Issue: #60
Fixes:
Fxes included are:

Added necessary meta tegs to make the website responsive.
Made the website responsive. ( navigation , slide show , video section and footer)

Additions:
Addition fixes include :

Made the footer and footer code cleaner.

Checklist

[ x ] Ensured there is an open issue for your PR
[ x ] Added comments to additions
[ x ] Followed common formatting conventions for the contribution language
[ x ] Tested code to ensure original features are working

Select one:

[ ] Ensured you are the contributer assigned to the Issue for this PR
[ x ] Commented for ownership of an OPEN issue where no one is assigned or has yet asked to be assigned

Screenshot
Tablet View.

s

Mobile View.

@thatrobotdev @S3cBar0n @bear217 plz review this code I have made the website responsive. And some meta tegs were missing in the html code which are very important to make this website responsive.


index.html as a route does not work

Describe the bug
Building a static report and trying to open /index.html instead of / results in the "Not Found" message from the vite catch-all route instead of the report overview.
Example: https://vue-demo.unlighthouse.dev/index.html
It would be great if /index.html would also work. Because when using Unlighthouse in GitLab CI to create a static report, the resulting files can be browsed as build artifact. But when clicking on index.html the above error appears.
Due to a GitLab issue the index.html will not be served at /, which makes it impossible to view the static report as a artifact in a GitLab pipeline.
Reproduction
No response
System / Nuxt Info
No response

This is a duplicate of #118


server_bundle_js_file_path is trying to use a CDN

Seems like we're trying to get a CDN file when server rendering. We should probably Always get a local file:
https://github.com/shakacode/react_on_rails/blob/6ab61e3ad9df4ad5e1972b5f9d35ff8af69af4fe/lib/react_on_rails/utils.rb
def self.server_bundle_js_file_path
 bundle_js_file_path(ReactOnRails.configuration.server_bundle_js_file)
end
    def self.bundle_js_file_path(bundle_name)
      if using_webpacker_lite? && WebpackerLite::Manifest.lookup(bundle_name)
        # If using webpacker_lite gem
        public_subdir_hashed_file_name = ActionController::Base.helpers.asset_pack_path(bundle_name)
        return File.join("public", public_subdir_hashed_file_name)
      end

      File.join(ReactOnRails.configuration.generated_assets_dir, bundle_name)

Per this search:
https://github.com/shakacode/react_on_rails/search?utf8=✓&q=bundle_js_file_path&type=

Could be related to https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn#adding-cloudfront-to-rails
# config/environments/production.rb
config.action_controller.asset_host = “<YOUR DISTRIBUTION SUBDOMAIN>.cloudfront.net”

in in your production.rb
That’s probably the reason we’re getting this…
Looking at the code:
        public_subdir_hashed_file_name = ActionController::Base.helpers.asset_pack_path(bundle_name)
        return File.join("public", public_subdir_hashed_file_name)

ActionController::Base.helpers.asset_pack_path(bundle_name) must be picking up the action_controller.asset_host

This is fixed in v9


Import recovery phrase but connecting Ledger when creating wallet

I'm testing the flow of creating a new wallet. After confirming the secret recovery phrase, it cannot generate the wallet and the error message is about connecting Ledger.

I'm testing the flow of creating a new wallet. After confirming the secret recovery phrase, it cannot generate the wallet and the error message is about connecting Ledger.

Tested again. It works if the page is not connected to Ledger. Somehow it goes to the Ledger flow if a Ledger is connected.

@calvinkei Hey team! Can you please add your planning poker estimates with ZenHub


Show time deltas in the verbose tool logs

It might be easier for us to track down performance issues if the verbose output in the tool output time deltas since the last message rather than absolute times.

Can we still print a total time at the end?

Yup; that PR out does that, so we can still measure the end-to-end time.


Discussion: modelfusion

Opening this issue to discuss potentially migrating all the provider API handling over to modelfusion.
https://github.com/lgrammel/modelfusion
@nvms We discussed a little over email, but maybe here is better.
Potential benefits as I see them

Wingman gets instant support for all the providers that modelfusion supports.

OpenAI
Azure OpenAI
Anthropic
Cohere
Huggingface
Ollama
Llama.cpp
OpenAI Compatible APIs (vLLM, oobabooga, LM Studio for example)

Wingman doesn't have to handle changes to those APIs etc.
Potential to use other tools provided by modelfusion at some point in the future.

Token counter/API usage cost tracker
Model functions for tool usage (web browsing, google searching, etc)
Easier agents (ReAct etc)
VectorDB/RAG tools (embeddding and search of codebase, or documentation websites, for example)

Pace of modelfusion development is currently pretty fast. Lots of new features and fast support for new models.

Potential issues:

Adding a not totally lightweight dependency
Pace of modelfusion development is really fast, so things are a little unstable.

I think a POC implementation using modelfusion would be a good starting point, so I've begun to work on that. I'll try and get a draft PR up with at least some of the work done to get to feature parity (at least) with where Wingman is now. I'm still working through the current Wingman codebase to figure out how everything is put together.
One thing I think we'll need to change up is some of the Preset parameter handling . Right now I think there's an assumption that all API config is a url and an api_key. The Azure OpenAI API config, for example, has no url parameter. Instead, it takes a few other parameters (resourceName, deploymentId, apiVersion) that are used to construct different end points for different models. I think a better separation of "API config" vs "completion/chat parameters" would maybe make sense.

Thanks for putting this together.
I'd be more than happy to offload this responsibility to a more focused tool like the one proposed.
The benefits here outweigh the issues. Actually, I'm not too worried about either of the mentioned issues.

Adding a not totally lightweight dependency

Even though the unminified distribution of modelfusion (as of right now) is about 1.8mb, it's served locally once the extension is installed. Also, since Wingman retains context when it is hidden, this load only happens once.

Pace of modelfusion development is really fast, so things are a little unstable.

This is slightly more of an issue only because newer releases of modelfusion will need to be smoke tested, but we can always pin to a known-good version while this happens.

One thing I think we'll need to change up is some of the Preset parameter handling . Right now I think there's an assumption that all API config is a url and an api_key. The Azure OpenAI API config, for example, has no url parameter. Instead, it takes a few other parameters (resourceName, deploymentId, apiVersion) that are used to construct different end points for different models. I think a better separation of "API config" vs "completion/chat parameters" would maybe make sense.

I'd love to see some mockups of solutions to this, because admittedly I don't think I fully grasp the issue with the preset UI. I feel like it makes sense, but I'm also biased. I'm happy to review any mockups and potentially implement the changes therein, but I'm lacking any sort of vision for improvements here. It sounds like maybe @synw has some ideas for this?

I think maybe you're right. I had been going on the assumption that the set of recognized parameters would depend on both the API provider and the model selected. I don't think that's actually the case. After looking around a bit it seems that each API provider has a fixed set of parameters it can accept, even if it offers multiple different models. It's not as dynamic as I thought.
Ollama: https://github.com/jmorganca/ollama/blob/00d06619a11356a155362013b8fc0bc9d0d8a146/docs/modelfile.md#valid-parameters-and-values
llama.cpp: https://github.com/ggerganov/llama.cpp/blob/5aa365d88fdb8fdd430ef3fc141c7a5fd37c3502/examples/server/README.md#api-endpoints
Maybe it makes sense to have  "Azure GPT-4 (creative)" and "Azure GPT-4 (precise)" presets that are a total combination of the API selection and all the generation parameters. I'm not sure... flattening it like that does mean that you might end up with a large number of presets though.
Would love a third opinion!


Use spf13/viper for managing the configuration file

This PR adds viper configuration management.
Major changes:

configuration file will now use YAML rather than JSON
configuration parameters will be also read from the environment variable using the QRCP_ prefix

I'm still unsure whether or not we should add a function to automatically migrate the old JSON configuration file to YAML.
What is still missing:

[x] README update
[x] Proper testing of environment variables
[x] Add migrate function to transparently migrate to the new YAML configuration file

This is a good migration :). However I'd like to see backward compatibility with the JSON.

Hey @leestarb , thanks for checking in, there will be a function to automatically migrate to YAML at tool startup: https://github.com/claudiodangelis/qrcp/blob/0236150643d4a7358acd0f3ed1bda6853221d882/config/migrate.go

No, no, no. Such function should change the config file ONLY if the user wants it. Otherwise this should convert it BUT not change the original file, like using converted one that was moved to the temp folder!
That is what  I suggest :)

Hello @leestarb , I followed your advise and removed the automatic migration, thanks!


How do we enable WinRM on a Windows VM running on Red Hat Virtualization via Ansible ?

Hi Team, We have a customer looking at migrating from VMware to Red Hat virtualization and wanted to use Ansible as their automation platform.
The issue is when provisioning Windows VM on RHV using Windows template via Ansible, for Ansible to communicate further with Guest OS (Windows) WinRM needs to be enabled.
With VMware we used the "vmware_vm_shell" to talk to Windows guest and enabled WinRM and upon enabling WinRM Ansible could connect to the guest OS and carry on with the rest of the configuration.
name: Enable WinRM to be used with Ansible
local_action:
module: vmware_vm_shell
hostname: "{{ vcenter_server }}"
username<EMAIL_ADDRESS>password: "{{ vsphere_password }}"
vm_username: Administrator
vm_password: "{{ vm_password }}"
vm_id: "{{ vm_name }}"
vm_shell: 'c:\windows\system32\windowspowershell\v1.0\powershell.exe'
vm_shell_args: "{{ item }}"
with_items:

'-command "& {Set-ExecutionPolicy Unrestricted}"'
'-command "& {Invoke-Expression ((New-Object System.Net.Webclient).DownloadString("https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"))}"'
'-command "& {Set-ExecutionPolicy RemoteSigned}"'
Given "vmware_vm_shell" is not applicable on RHV, how do we enable WinRM during the provisioning of new VM ? Enabling WinRM on the template is less desirable and we would like to configure on the fly.

Having module something similar to "vmware_vm_shell" for RHV would also give us alternative ways to connect to VM if connecting via WinRM/SSH is not an option due to security.
How do you recommend enabling WinRM on a Windows VM during running on Red Hat Virtualization via Ansible playbook?

Hi @shamaljayalath,
how about using Sysprep[1] custom_script[2]?
It is missing in the docs but the functionality is there
[1] https://docs.ansible.com/ansible/latest/modules/ovirt_vm_module.html#parameter-sysprep
[2] https://github.com/oVirt/ovirt-ansible-collection/pull/52

Hi @mnecas, I appreciate your prompt reply to this. Since the option is documented well, I'm uncertain of the usage of the custom_script under Sysprep.
Would it be something like this?
ovirt_vm:
name: windows2012R2_AD
template: windows2012R2
cluster: Default
memory: 3GiB
high_availability: true
sysprep:
host_name: windowsad.example.com
user_name: Administrator
root_password: SuperPassword123
custom_script:'c:\windows\system32\windowspowershell\v1.0\enable_winrm_script.ps1'
Could you please confirm if the above usage of the custom_script under Sysprep is correct ?
If you could provide me with some direction, I'm happy to give this a go and report the results.
Thanks again.

Or would it be something like this :
ovirt_vm:
name: windows2012R2_AD
template: windows2012R2
cluster: Default
memory: 3GiB
high_availability: true
sysprep:
host_name: windowsad.example.com
user_name: Administrator
root_password: SuperPassword123
custom_script:
path: 'c:\windows\system32\windowspowershell\v1.0\enable_winrm_script.ps1'
Any pointers are much appreciated :)

I think the first option but I'm also not sure for 100%. You can create some small cmd file which would for example just create some dir so you would know that it is working.
This might help [2].
But to get the sysprep working you need to update the template image [1].
[1] https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation
[2] https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup

@shamaljayalath any updates with the sysprep?

Hi @mnecas, Its for one of the customers I work with so I had to wait for him to come back..
Since he is not very savvy with Linux I could not go back to him as I did not have anything very specific..
We noticed we have the following options from within Windows sysprep.
WinRM can be enabled during sysprep process if necessary. Some information can be found via the link below:
https://github.com/aelrayess/AnsibleSysprep
We can call the powershell script that enables WinRM from within setupcomplete.cmd that gets executed soon after sysprep.
You can see a similar example here: https://github.com/techthoughts2/NanoServer
In our case, we just need to replace nanosetup.ps1 with the name of the powershell that enables Winrm for us (ConfigureRemotingForAnsible.ps1).
https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
I think once we get the document in order with some examples, this will be a very useful setting to have. Please see if you can add an example at the bottom of the page so it will be adopted correctly by the customers.

@mnecas - I appreciate your help in this.

Yeah happy to help but I don't understand what examples I should add.
I'm missing something. Could you please ping me at<EMAIL_ADDRESS>

Hi @mnecas - Unfortunately I did not go down the path of using custom_script thus I do not have a Ansible code I can share with you as an example that can go into the documentation.
I have another issue. I will raise another ticket for that. Please feel free to archive this one.
Thanks,


[$500]  IOU - User have no access to Distance request chat after getting Online

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

Version Number: 1.4.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/2730099https://expensify.testrail.io/index.php?/cases/view/2730099
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: user is logged in ND.

Offline: FAB > Request money
Select 'Distance' option
Enter a vague start location like "SF"
Enter a vague finish location like "LA"
Finish the request creation flow (in Workspace chat)
Enable the internet connection
Navigate to the Distance request

Expected Result:
There's a red dot on the request report in the LHN, on the report preview in the workspace chat, and on the request.
User can open request report
Actual Result:
An error message shown 'Unexpected error requesting money, please try again later' below request preview.
User has no access to request report
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/1b60fe22-3fa3-4190-81e1-6aaaa35cb348
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01e2dfd7d5a8a50696
Upwork Job ID:<PHONE_NUMBER>964285952
Last Price Increase: 2024-02-07

We think that this bug might be related to #wave
CC @dylanexpensify

This was discussed here https://github.com/Expensify/App/issues/32405#issuecomment-1900615213.

Alright, closing based on this feedback:
https://github.com/Expensify/App/issues/32405#issuecomment-1921489679


Fix users fields and apps country field

This PR fixes users' gender and race fields, it also fixes the apps country field.
Closes #156

I have to review this PR with some specific API branch? because when I enter on manager component I receive the following error:

@ViniciusPuerto i used the development api branch


🐛 fix json-function bug

Signed-off-by: prashantgupta24<EMAIL_ADDRESS>Description
This PR fixes the issue in which logging with a log code and modulo string formatting and json output was giving an error
Changes
Message field should format the arguments args[0] % args[1:] to handle modulo string formatting.
Testing
Added couple of tests
Related Issue(s)
Fix https://github.com/IBM/alchemy-logging/issues/238

should be fixed by https://github.com/IBM/alchemy-logging/pull/241


previousNavigationField is get-only?

Hi,
I just updated my app to Swift 4 and in the process, updated to the latest build of UITextField-Navigation. While migrating, I noticed that I can longer set the previousNavigationField property. I used this previously to help set the order of the next and previous buttons, but now I'm confused as what to do. Is there a better way to set the previous field? I'm quite lost and would appreciate any help.
Thanks,
Andrew

Hi Andrew,
The previousNavigationField property has always been get-only. It’s the nextNavigationField property that is get- and set-able.
When you set B as nextNavigationField of A, the lib will automatically set A as previousNavigationField of B.


Cow: Watch toplinks.one

Cow requests the watch of the watch_keyword toplinks\.one. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

toplinks\.one has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Cody Gray in Charcoal HQ


Update 2.2 known issues

It is not clear why you are trying to delete this.

The issue with ANCM has already been resolved. We had a customer email us asking why ANCM hasn't been released on App Service and pointed to this. Now that the issue is resolved and isn't tied to a .NET release, why not remove it?

As an outsider to this project, a missing known-issues.md` sounds like someone neglected creating it. Perhaps the file can be kept around but modified to say that there are no know issues?
Also, some other existing documents (like https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-known-issues.md) link to it.

Thanks @jkotalik - What action does a customer impacted by this issue need to take? Install the January (or newer) hosting bundle? Change the AspNetCoreHostingModel setting back to InProcess? Both?

Just change the AspNetCoreHostingModel setting back to InProcess.

So I don't need to install an updated ANCM? That doesn't seem to make sense.

The reason this announcement was made was because ANCM wasn't deployed to Azure App Services when 2.2 released. Now that ANCM has been deployed to App Service, customers need to retarget their application to host InProcess.
ANCM inside of the hosting bundle has been fine since the release of 2.2.0.

Gotcha, makes sense. I didn't read enough of the original issue to see the app services tie in.


Update pull_request_template.md

I think target branch name has been changed.

master -> main

Codecov Report

Merging #15948 (490d440) into main (77fa714) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #15948      +/-   ##
==========================================
- Coverage   44.03%   44.03%   -0.01%
==========================================
  Files         682      682
  Lines       82407    82407
==========================================
- Hits        36287    36285       -2
- Misses      40214    40216       +2
  Partials     5906     5906

Impacted Files
Coverage Δ

models/repo_list.go
77.04% <0.00%> (-0.78%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77fa714...490d440. Read the comment docs.


Adding Appdynamics extension to .net-buildpack

Hi Team,
I am working on adding AppDynamics support in .net-buildpack.
Couple of Issues.

How to do ssh if using windows stack. ssh is enabled but still cf ssh command fails.
Added an extension file under "lib/net_buildpack/framework/" and yml file under config is also added.
But changes are not getting reflected on application deployment.

Is there any other changes needed to the buildpack.
Thanks.

@mrdavidlaing Can you please point me to someone from cf team, with info on the issue raised.


And the chickens have come home to roost....
Looks like the fix to #263 has caused this issue.

This issue is a very likely a duplicate of #97. That issue lacked reproduction steps, while this one is manifesting as a frequently occuring flake, so I propose to use this issue and close the old one.


Not able to save quantized model

Hi! I am trying to quantize Llama-2-7b-hf model, here is some part of the code:
the quantization is done by
AutoHQQHFModel.quantize_model(model, quant_config=quant_config, compute_dtype=compute_dtype, device=device)

and save the model
AutoHQQHFModel.save_quantized(model, dir_s)

But the output says: Model was already quantized
and the saved model has no decrease in size.
Which part is wrong?

Hi, it works fine, just make sure you have the latest version (from master):
import torch

model_id  = "meta-llama/Llama-2-7b-hf"

compute_dtype = torch.bfloat16
device     = 'cuda'
cache_path = ""

from transformers import AutoModelForCausalLM, AutoTokenizer
from hqq.models.hf.base import AutoHQQHFModel
#from hqq.models.hf.llama import LlamaHQQ as AutoHQQHFModel #OR for llama models
from hqq.core.quantize import *

model     = AutoModelForCausalLM.from_pretrained(model_id, cache_dir=cache_path, torch_dtype=compute_dtype)
tokenizer = AutoTokenizer.from_pretrained(model_id, cache_dir=cache_path)

quant_config = BaseQuantizeConfig(nbits=4, group_size=64, quant_scale=False, quant_zero=False, axis=1)
AutoHQQHFModel.quantize_model(model, quant_config=quant_config, compute_dtype=compute_dtype, device=device)

AutoHQQHFModel.save_quantized(model, "llama_quant")

model_quant = AutoHQQHFModel.from_quantized("llama_quant")

with torch.no_grad():
	model_quant(torch.randint(0, 100, (1, 1024), device=device, dtype=torch.int64))

Thank you for helping! I upgrade the package and it works now.

I just checked the commits history and it turns out the fix was not in the latest release. So I created a new one: https://github.com/mobiusml/hqq/releases/tag/v0.1.7.post3
Also updated the pip version, so it should work with pip install hqq

I tried to load the quantized model, but seen this error:
Traceback (most recent call last):
File "/u/bhuang4/mixtral_offloading/llama2/doEval_llama2_hqq.py", line 22, in
model = AutoHQQHFModel.from_quantized(model_path)
File "/scratch/bcjw/bhuang4/anaconda3/envs/doHQQ/lib/python3.10/site-packages/hqq/models/base.py", line 458, in from_quantized
model = cls.create_model(save_dir)
TypeError: BaseHQQHFModel.create_model() missing 1 required positional argument: 'kwargs'
Can you please help?

I just tried saving and loading from the example and it's working fine: https://github.com/mobiusml/hqq/issues/75#issuecomment-2132253550
I think you are still not using the latest version. you are missing this commit https://github.com/mobiusml/hqq/commit/3495a81e034e3cde72b7036e74c19c73a9746aa0
pip uninstall hqq' pip install git+https://github.com/mobiusml/hqq.gitorpip install hqq==0.1.7.post3`

You are right. Now the latest version works. Thank you for helping!