chore(shared,types,clerk-react,vue): Share hook return types

Description
This PR moves the hook return types from @clerk/clerk-react and @clerk/shared to @clerk/types to be used with @clerk/vue's composables.
See PR comment for reference.
Note: The useOrganization() and useOrganizationList() hook return types are not included since pagination is not yet implemented in @clerk/vue.
Resolves ECO-231
Checklist

[ ] pnpm test runs as expected.
[ ] pnpm build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[ ] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[x] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

In same cases we might need to only edit only types for react and not vue. For example, adding experimental features, which  usually are only implemented for the react hooks. Do you think this PR will make that process harder ? If not this move is reasonable.

In same cases we might need to only edit only types for react and not vue. For example, adding experimental features, which usually are only implemented for the react hooks. Do you think this PR will make that process harder ? If not this move is reasonable.

Good question! I think we have 2 approaches in case of experimental features:

Say an experimental property in the UseSessionListReturn hook for example:

export type UseSessionListReturn =
  | {
      isLoaded: false;
      sessions: undefined;
      setActive: undefined;
      __experimental_test: undefined
    }
  | {
      isLoaded: true;
      sessions: SessionResource[];
      setActive: SetActive;
      __experimental_test: true
    };

We can keep this in @clerk/types, then in @clerk/vue we can use the utility type we have that omits without union flattening
import type { Without } from '@clerk/types'

type type VueUseSessionListReturn = Without<UseSessionListReturn, '__experimental'>

The only problem I can see with this is that @clerk/vue will also need to be updated when adding @clerk/clerk-react experimental features

If it can't be done with number 1, then probably rewrite the hook return type in @clerk/clerk-react for example 🤷

What do you think?

Probably i'd just expands the types for react only

Probably i'd just expands the types for react only

sounds good to me


napi-jsi should implement Get for NAPI arrays

BabylonReactNative will need this change in order to consume the most recent versions of BabylonNative. Right now we see build breaks.

we need something similar to what was implemented here for napi-inl.h and napi.h: https://github.com/BabylonJS/BabylonNative/pull/549/files


Refine sign in flow

From @MattHJensen on August 6, 2015 23:53
There are a couple of confusing aspects of our sign in process.

The sign up field does not indicate that it is the source of access to TaxBrain
Neither the TaxBrain slide on the home page nor on the "apps" page tells you how to sign up.

Anyone notice other confusing aspects?
Notes:

It seems wise that we merged news signup with TaxBrain signup.
Later we may want a contributor mailing list/newsletter, but that will be different and won't need to be on the OSPC homepage.

Copied from original issue: OpenSourcePolicyCenter/webapp#253

It seems to me we could fix most of the problems with a few changes to the login page:
There should be a notification at the top if you've been redirected from a resource that requires authentication, i.e. "you must log in to [use taxbrain | view news]"
the login and password fields should be centered and have bottom margin equal to the top
There should be a link to the new account page
There should be some text that explains new accounts are free and we won't track you or send you annoying emails. Probably best accomplished with a flatblock.

@amfarrell and @talumbau, do you have any ideas on this one? If there were a quick fix here, I think it would improve the UI quite a bit while we wait for the 2009 puf. (a couple of people have come to me confused about this).

There should be a link to the new account page

There is no single link to the account creation page. You have to go through the newsletter subscription first.
The current flow goes:

Enter email on homepage (for seemingly only the newsletter)
Receive confirmation email with new account activation link (mention of authorized use of taxbrain)
Click unique link in email, directs to account creation page.
Create an account. Save. Redirect to a page that suggests returning to home page or taxbrain

Also get email with username/password, with mention of taxbrain

We could:

Separate the newsletter/account creation
Remove the unique "account creation link" email step
Replace it with a "Create an Account" link on the homepage
After registering, send a "Confirm email address" email with a unique link.
Direct user to a "Thank you for confirming" page that mentions taxbrain

Yep, I like all of @mistakevin's suggestions. Newsletters and accounts have different purposes and intended audiences, even if they are linked by User.

This makes sense to me as well. We will also want the "create an account" link on the TaxBrain signin page.

OK great. @mistakevin it sounds like we have consensus. Blast away and post a PR when you are ready.

OK, to clarify these "user stories" are what is desired:

Go to ospc.org, put email address in box, click "Sign Up!", Get email confirmation that you have signed up. Done.

Go to ospc.org, click "Register" button in upper right. Go to Register page. Put in email address, username, name, password, Click Register. Get email confirming registration, with unique link URL that must be clicked to confirm.

If user does only action 1., they don't end up with a login account for the site. Also, someone could put an email address that is not their own in to the page and sign someone up for the newsletter. This does not seem good.
If user does action 2, they don't end up with a real registered account until they click the unique link in their email address. That seems good.
Looking for input here @MattHJensen

User sign-up needs a re-design.


More convenient way to share same tsconfig for whole workspace

Our recommendation is to do what we do at Google: a single tsconfig.json file for the entire Bazel workspace. This is annoying right now because every ts_library has to be manually configured with a tsconfig attribute that should always have the same value.
Option 1: in the WORKSPACE file, add a new repository rule like tsconfig(default_tsconfig="//:tsconfig.json")
Option 2: change the default for the ts_library#tsconfig attribute to point to some well-known location like @//:tsconfig and expect all users will create an alias or ts_config rule at that location

Is it possible to have a ts_library with //a:tsconfig.json be included in another ts_library with //b:tsconfig.json when //a:tsconfig.json is less restrictive than //b:tsconfig.json's configuration?

There are some interactions that can cause trouble, for example if a is compiled without --strictNullChecks it can produce a.d.ts that is an error when consumed by b that does have --strictNullChecks. That's one of the reasons we don't recommend mixing them.
But in practice, if you use a library from npm, then the typings for that thing were probably built with different options than you have locally, so interop issues have to be dealt with sometimes.


Blurry rendering of cad file, starting at 90% zoom

Good afternoon everybody,
I downloaded version 2.7.570 beta and use the provided viewer.html to load a pdf like viewer.html?file={PDF Filename}.
Since this is a cad file the drawing is quite large in format meaning A0 or alike and a good zooming quality is essential.
At 90% the drawing starts to get blurry as you can see in the attached image. Since the file is an Autocad PDF Export the quality should be perfect on any zoom stage. I did not manipulate any of the JS files yet.
Is there any chance to get a better rendering on this?
Best regards
Mirko

When opening an issue, please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md since otherwise the issue is unfortunately not actionable/valid.

I'm sorry so  here you go:
Attach (recommended) or Link to PDF file here:
Configuration:
Web browser and its version: Chome 89.0.4389.90
Operating system and its version: Windows 10 Pro 20H2
PDF.js version: 2.7.570 beta
Is a browser extension: no
Steps to reproduce the problem: Please check viewer url at the bottom.
What is the expected behavior? Nonblurry rendering over 90% zoom.
What went wrong? Blurry rendering from 90% zoom.
Please check at: http://archive.rinnen-clervaux.com:8082/jsviewer/web/viewer.html?file=testpdf.pdf

Please check at: http://archive.rinnen-clervaux.com:8082/jsviewer/web/viewer.html?file=testpdf.pdf

For future reference: Directly attaching the PDF document to the issue guarantees that it remains easily available in the future.
Looking at the above confirms the duplicate that I guessed at in https://github.com/mozilla/pdf.js/issues/13134#issuecomment-805795526.


Fixed issue outlined in issue 522

Reference Issues/PRs
Fixes https://github.com/alan-turing-institute/sktime/issues/522
What does this implement/fix? Explain your changes.
As outlined in https://github.com/alan-turing-institute/sktime/issues/522, this fix allows using AutoARIMA with the sliding window forecaster along with Grid Search. This can allow for the search of the right hyperparameters such as sp.
Does your contribution introduce a new dependency? If yes, which one?
No. pmdarima is already a soft dependency and this simply uses that.
PR checklist

For all contributions

[x] I've added myself to the list of contributors.
[ ] Optionally, I've updated sktime's CODEOWNERS to receive notifications about future changes to these files.
[ ] I've added unit tests and made sure they pass locally.

I tested locally in a notebook and it works. I am only familiar with unittest and had some issues setting up pytest on my end so I could not add a unit test specifically for this. If you could add it for me, I would appreciate it. The code is as follows

y = load_airline()
y_train, y_test = temporal_train_test_split(y, test_size=36)

forecaster_param_grid = {'sp': [3, 12]}
forecaster = AutoARIMA(suppress_warnings=True)

cv = SlidingWindowSplitter(
    initial_window=int(len(y_train) * 0.5),
    start_with_window=True,
    window_length=36,
)

gscv = ForecastingGridSearchCV(forecaster, cv=cv, param_grid=forecaster_param_grid, verbose=True)
gscv.fit(y_train)

expected = np.array([0.37408572, 0.29277678])
np.testing.assert_array_equal(gscv.cv_results_['mean_test_sMAPE'], expected)

Thanks again @ngupta23 - great stuff!


rime-ice: init at 2024.05.21

Description of changes

Repo:  https://github.com/iDvel/rime-ice
Usage in NixOS:
    i18n.inputMethod.fcitx5 = {
      addons = [
        (pkgs.fcitx5-rime.override { rimeDataPkgs = [ pkgs.rime-ice ]; })
      ];
    };

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Hi, I am one of the core maintainers of rime-ice.

rime-ice uses the GPL-3.0-only license, as specified in its README.
I noticed that the package declaration states rime-data is a dependency of rime-ice, leading to some filename conflicts. In fact, an unmodified rime-ice does not rely on any other input method schemes. It only requires librime (version ≥ 1.85), librime-lua, and a compatible RIME frontend (e.g., ibus or fcitx5). If you choose to modify default.yaml, then rime-prelude would also be needed.


Entity Editor needs a way to remove preview image

In the entity editor, there needs to be a way to remove the preview image and return to using solid color.

I'd like to take a stab at this!


Update Nushell integration

Depends on jdx/mise#1763 in release.

@jdx I think this is ready unless it needs review :shipit:


startDeviceScan Unexpected Behavior.

Prerequisites

[-] I am running the latest version
[-] I checked the documentation and found no answer
[-] I checked to make sure that this issue has not already been filed

Expected Behavior
A scan should be starting.
Current Behavior
What is the current behaviour?
startDeviceScan isn't even run, When I try to put a [console.log() command]. It doesn't recognize when interpreted.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Install react-native-ble-plx
link it to the project. and update SDK minimum version, Adding required permissions to AndroidManifest.xml
editing App.js file.

Context
startDeviceScan is not responding. The commands that are inside its scope aren't reached. Interesting thing is that when I disable the Bluetooth, the function runs automatically. And Produces a BLE error!

Library version: 2.0.0
Platform: Android

React-Native-cli LOGS:-
[Fri May 08 2020 02:32:19.430]  LOG      Checking Bluetooth
[Fri May 08 2020 02:32:19.473]  LOG      Trying to Scan
[Fri May 08 2020 02:32:19.544]  LOG      Failed to Scan

Platform logs (logcat):

05-08 02:32:19.669 16943 17165 I ReactNativeJS: Checking Bluetooth
05-08 02:32:19.695 16943 17085 E OpenGLRenderer: allen debug liyu Key: 0
05-08 02:32:19.723  1062  1186 I SoundPool: Pid:1062 SoundChannel play
05-08 02:32:19.742 16943 17165 I ReactNativeJS: Trying to Scan
05-08 02:32:19.748 16943 17165 I ReactNativeJS: Failed to Scan
05-08 02:32:19.795   248  1962 I iMonitor: scan_blackbox enter
05-08 02:32:19.819 16943 17333 I RxBle#QueueOperation: Scan operation is requested to start.
05-08 02:32:19.839   326   417 W audio_hw_primary: adev_set_parameters, kvpairs : output_device=2
05-08 02:32:19.845   326   417 I AudioCustom_MMI: AudioMMIParse MMI test is close!
05-08 02:32:19.861   248   313 W JankService: virtual bool android::JankManualDumpLogAnalyser::processEntry(android::LogEntry *, int, bool), not beta version or commercial log off
05-08 02:32:19.872   326 13944 I APM_AudioPolicyManager: getOutputForDevice() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
05-08 02:32:19.872   326 13944 I APM_AudioPolicyManager: getOutputForDevice() returns output 13
05-08 02:32:19.874   326   417 W audio_hw_primary: adev_set_parameters, kvpairs : output_device=2
05-08 02:32:19.874   326   417 I AudioCustom_MMI: AudioMMIParse MMI test is close!
05-08 02:32:19.875   326  1188 I APM_AudioPolicyManager: getOutputForDevice() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
05-08 02:32:19.875   326  1188 I APM_AudioPolicyManager: getOutputForDevice() returns output 13
05-08 02:32:19.883 16943 17333 I BluetoothAdapter: getBluetoothLeScanner
05-08 02:32:19.900 17946 17958 W Bth     : BluetoothFreeze:tag: 181  uid: 10120  pid: 16943
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.909   326   529 I APM_AudioPolicyManager: getNewOutputDevice() selected device 2
05-08 02:32:19.909   326   529 I APM_AudioPolicyManager: setOutputDevice() device 0x0002 delayMs 0 force 1
05-08 02:32:19.909   326   529 I APM_AudioPolicyManager: setOutputDevice() changing to device 0x0002 , muteWaitMs 0
05-08 02:32:19.912   326   520 W audio_hw_primary: adev_set_parameters, kvpairs : srs_cfg:trumedia_enable=1
05-08 02:32:19.913   326   520 I AudioCustom_MMI: AudioMMIParse MMI test is close!
05-08 02:32:19.913   326   520 W audio_hw_primary: adev_set_parameters, kvpairs : HIFIPARA=STEREOWIDEN_Enable=true
05-08 02:32:19.914   326   520 I AudioCustom_MMI: AudioMMIParse MMI test is close!
05-08 02:32:19.914   326   520 W audio_hw_primary: [out_set_parameters], kvpairs=routing=2 devices:0x2 mode:0
05-08 02:32:19.914   326   520 W audio_hw_primary: out_set_parameters: enable SPEAKER mode
05-08 02:32:19.914   326   520 W audio_hw_primary: the same devices(0x2) with val(0x2) val is zero...
05-08 02:32:19.926  1229  1229 E wpa_supp: RSSI=-69;LINKSPEED=72;NOISE=9999;FREQUENCY=2437;
05-08 02:32:19.936 17946 17958 I SendBroadcastPermission: action:android.bluetooth.GET_BLE_APP_NAME, mPermissionType:0
05-08 02:32:19.944  1439  1511 I PGServer: report state:2 event type:1 pid:1062 uid:1000 pkg:null to pid: 1062
05-08 02:32:19.946  1439  1511 I BluetoothState: new active bluetooth uid: 10120, pid:16943, reason:BLE_CONNECT
05-08 02:32:19.948 17946 17946 E Bth     : BigDataReceiver:intent or context is null.
05-08 02:32:19.949   326   529 I APM_AudioPolicyManager: setOutputDevice() createAudioPatch returned 0 patchHandle 6204 num_sources 1 num_sinks 1
05-08 02:32:19.957   326   529 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:19.977 17946 17958 W Bth     : BluetoothFreeze:tag: 181  uid: 10120  pid: 16943
05-08 02:32:19.977  1062  1062 I AudioSystem-JNI: listAudioPorts AudioSystem::listAudioPorts numPorts 7 generation 777 generation1 777
05-08 02:32:19.980  1439  1511 I BluetoothState: new active bluetooth uid: 10120, pid:16943, reason:BLE_CONNECT
05-08 02:32:19.990   326   520 W audio_hw_primary: i2s_pin_mux_sel in type is 3
05-08 02:32:19.990   326   520 W audio_hw_primary: i2s_pin_mux_sel in type i-----------2 adev->cp =b52adcd0 num = 2  vbc_ctrl_pipe_info = b52add20   cp_type = 1
05-08 02:32:19.990   326   520 W audio_hw_primary: -----in  cpu_index  is 3
05-08 02:32:19.990   326   520 W audio_hw_primary: i2s_pin_mux_sel in type i----------i2s_ctl_info->is_switch = 1
05-08 02:32:19.990   326   520 E audio_hw_primary: select_devices_signal starting... adev->out_devices 0x2 adev->in_devices 0x0
05-08 02:32:19.990   326   520 I audio_hw_primary: select_devices_signal finished.
05-08 02:32:19.990   326   520 W audio_hw_primary: open s_tinycard in
05-08 02:32:19.992 17946 17958 I BtGatt.JNI: gattClientRegisterAppNative(L997): gattClientRegisterAppNative, register_client begin
05-08 02:32:19.992 17946 17958 I BtGatt.JNI: gattClientRegisterAppNative(L1003): gattClientRegisterAppNative, register_client
05-08 02:32:20.001   248   313 W JankService: AUDIO_SOUNDEFFECT_PLAY: JL_AUDIO_SOUNDEFFECT_END and JL_AUDIO_SOUNDEFFECT_BEGIN too long| span:262 > A(200), A
05-08 02:32:20.006   326   520 W audio_hw_primary: open s_tinycard successfully
05-08 02:32:20.016   326   517 I audio_hw_primary: Not to change mute: 0
05-08 02:32:20.016   326   517 I audio_hw_primary: Changing out_devices: from (0xfffffffd) to (0x00000002), Changing in_devices: from (0x00000000) to (0x00000000)
05-08 02:32:20.016   326   517 W audio_hw_primary: vb_control_parameters.c hp_pa_delay_config 0x0 pa_config:0x210(0x210, 0), 0x110(fm)(0x110, 0),  hpPaConfig:0x0(0x0, 0), 0x0(fm)(0x0, 0)
05-08 02:32:20.037 17946 17958 I BtGatt.JNI: gattClientRegisterAppNative(L1005): gattClientRegisterAppNative, register_client finish
05-08 02:32:20.054   326   517 W audio_hw_primary: SetAudio_PaConfig_by_devices out, out_devices:0x2, in_devices:0x0
05-08 02:32:20.067  1062  1074 I SendBroadcastPermission: action:android.intent.action.SIG_STR, mPermissionType:0
05-08 02:32:20.067  1433  1433 I CHR_ChrCommonInfo: SignalStrengthInfo:mGsmSignalStrength: -101mWcdmaRscp: -1mWcdmaEcio: -1mLteRsrp:<PHONE_NUMBER>mLteRsrq:<PHONE_NUMBER>mCdmaDbm: -1mCdmaEcio: -1mEvdoDbm: -1mEvdoEcio: -1
05-08 02:32:20.067   326   517 I vb_effect: s_cur_out_devices(0x00000002), s_cur_in_devices(0x00000000)
05-08 02:32:20.067   326   517 I vb_effect: profile is Handsfree, ret=0
05-08 02:32:20.067   326   517 W audio_hw_primary: GetAudio_gain_by_devices, outmode:3 inmode:3,indev:0x0, outdev:0x2
05-08 02:32:20.067   326   517 W audio_hw_primary: vb_control_parameters.c pa_config:0x210(0x210, 0), 0x110(fm)(0x110, 0),  hpPaConfig:0x0(0x0, 0), 0x0(fm)(0x0, 0)
05-08 02:32:20.068   326   517 W audio_hw_primary: vb_control_parameters.c GetAudio_outpga_nv, dac_pga_gain_l:0x802107c3 fm_pga_gain_l:0x246 fm_pga_gain_r:0x246 vol_level:0x1
05-08 02:32:20.068   326   517 W audio_hw_primary: GetAudio_inpga_nv, adc_pga_gain_l:0x8368 device:0x0 vol_level:0x1
05-08 02:32:20.068   326   517 W audio_hw_primary: SetAudio_gain_by_devices out, out_devices:0x2, in_devices:0x0
05-08 02:32:20.068   326   517 I audio_hw_primary: stream_routing_thread looping done.
05-08 02:32:20.068   326   517 I audio_hw_primary: stream_routing_thread looping now...
05-08 02:32:20.075  1307  1404 I HwMobileSignalController: subId:0 phoneType:1 networktype:10 targetClass:2 masterLevel:2 slaveLevel:-1
05-08 02:32:20.098 17946 17990 I bt_att  : GATT_Register
05-08 02:32:20.098 17946 17990 I bt_att  : GATT_Register: allocated gatt_if=9
05-08 02:32:20.098 17946 17990 I bt_att  : GATT_StartIf gatt_if=9
05-08 02:32:20.099 17946 17976 W bt_btif : HAL bt_gatt_callbacks->client->register_client_cb
05-08 02:32:20.104 17946 18007 W Bth     : BluetoothFreeze:tag: 181  uid: 10120  pid: 16943
05-08 02:32:20.107  1439  1511 I BluetoothState: new active bluetooth uid: 10120, pid:16943, reason:BLE_SCAN
05-08 02:32:20.119 17946 17976 I bt_btif : BTA_DmBleObserve:start = 1
05-08 02:32:20.119 17946 17976 I bt_btif : BTA_DmBleObserve:start = 0
05-08 02:32:20.120 17946 17976 I bt_btif : BTA_DmBleObserve:start = 1
05-08 02:32:20.124 17946 17990 I bt_btm  : BTM_BleObserve : scan_type:0, 8000, 800
05-08 02:32:20.132 17946 17990 I bt_btm  : BTM_BleObserve : scan_type:0, 8000, 800
05-08 02:32:20.132 17946 17990 I bt_btm  : btm_ble_stop_scan
05-08 02:32:20.132 17946 17990 I bt_btm  : btm_update_scanner_filter_policy
05-08 02:32:20.133 17946 17990 I bt_btm  : BTM_BleSetScanParams
05-08 02:32:20.133 17946 17990 I bt_btm  : BTM_BleObserve : scan_type:0, 8000, 800
05-08 02:32:20.133 17946 17976 W bt_btif : HAL bt_gatt_callbacks->client->scan_parameter_setup_completed_cb
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 E APM::AudioPolicyEngine: unknown stream type 10
05-08 02:32:20.157   326   418 I APM_AudioPolicyManager: getNewOutputDevice() selected device 0
05-08 02:32:20.157   326   418 I APM_AudioPolicyManager: setOutputDevice() device 0x0000 delayMs 174 force 0
05-08 02:32:20.157   326   418 I APM_AudioPolicyManager: setOutputDevice() setting same device 0x0000 or null device
05-08 02:32:20.160  1439  1511 I PGServer: report state:2 event type:2 pid:1062 uid:1000 pkg:null to pid: 1062
05-08 02:32:20.590  1062  1527 E LIBGPS  : read socet_client error: Try again
05-08 02:32:22.939  1229  1229 E wpa_supp: RSSI=-55;LINKSPEED=72;NOISE=9999;FREQUENCY=2437;
05-08 02:32:22.941  1062  1165 I SendBroadcastPermission: action:android.net.wifi.RSSI_CHANGED, mPermissionType:0
05-08 02:32:23.091   326   520 W audio_hw_primary: do_output_standby.mode:0
05-08 02:32:23.998  1062  1211 E HwCHRWifiFile: getFileResult throw exceptionjava.io.FileNotFoundException: proc/net/wifi_network_stat (No such file or directory)
05-08 02:32:25.591  1062  1527 E LIBGPS  : read socet_client error: Try again
05-08 02:32:25.948  1229  1229 E wpa_supp: RSSI=-55;LINKSPEED=72;NOISE=9999;FREQUENCY=2437;
05-08 02:32:26.068  1062  1274 I SendBroadcastPermission: action:android.intent.action.SIG_STR, mPermissionType:0
05-08 02:32:26.068  1433  1433 I CHR_ChrCommonInfo: SignalStrengthInfo:mGsmSignalStrength: -103mWcdmaRscp: -1mWcdmaEcio: -1mLteRsrp:<PHONE_NUMBER>mLteRsrq:<PHONE_NUMBER>mCdmaDbm: -1mCdmaEcio: -1mEvdoDbm: -1mEvdoEcio: -1
05-08 02:32:26.073  1307  1404 I HwMobileSignalController: subId:0 phoneType:1 networktype:10 targetClass:2 masterLevel:2 slaveLevel:-1

Contents of the package.json file:

{
  "name": "TVB2",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "react": "16.11.0",
    "react-native": "0.62.2",
    "react-native-ble-plx": "^2.0.0"
  },
  "devDependencies": {
    "@babel/core": "7.9.6",
    "@babel/runtime": "7.9.6",
    "@react-native-community/eslint-config": "0.0.5",
    "babel-jest": "24.9.0",
    "eslint": "6.8.0",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.58.0",
    "react-test-renderer": "16.11.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

This is my code:

export default class App extends React.Component {

  constructor() {
    super();
    this.manager = new BleManager();
    this.manager.setLogLevel(LogLevel.Verbose);
    this.state = {
      failed: true
    }
  }

manualMount() {
    console.log("Checking Bluetooth")
    const subscription = this.manager.onStateChange((state) => {
      if (state === 'PoweredOn') {
        this.scanAndConnect();
        subscription.remove();
      }
    }, true);

    if(this.state.failed){
      console.log("Failed to Scan")
    }
  }

  scanAndConnect() {
    console.log("Trying to Scan")
    this.manager.startDeviceScan(null, null , (error ,scannedDevice) => {
      console.log("In scan")
      if (error) {
        console.log(JSON.stringify(error))
        return
      }
      if (scannedDevice) {
        console.log("scanned device:", scannedDevice);
      }
      this.setState({failed: false})
      console.log("Scan Finished")
    });
  }

  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.title}>
          {this.state.attampt}
        </Text>
        <Button
          title='manual mount'
          onPress={()=>this.manualMount()}
        />
      </View>
    )
  }
}

Can Anyone help me fixing this? And make this function works well?

Solutions That didn't work with me:-
1- Restarting the device after installing the App. (didn't work).
2- Try another device (I used 3 different devices, different manufacture. but didn't work).
3- Remove ComponentDidMount and mount it manually. (didn't work).
4- Disable the Bluetooth. and Enable It again. (The Function runs and produces a BLE error after disabling the Bluetooth).
5- calling the function multiple times in a short time (ex: 10 sec.). Produces a BLE error. error code:600. (Although that all the app has access to the GPS ).

your platform logs were gathered without setting log level on the library. please set it and update the logs

this.manager.setLogLevel(LogLevel.Verbose);

this line should set the log level, shouldn't it?

Yup, my bad. What device are you running on?

The Devices are ( Lenovo MediaPad 7 [Android 7], HTC Desire 820 [Android 4.4] [ with SensorTag App ], Realme 5 [Android 9] ).
The app has access to location Services { ACCESS_COARSE_LOCATION , ACCESS_FINE_LOCATION }. And I gave the app access to them manually after installing the application.
I'm wondering if Gradle version, Or React Native version can solve my problem? My Gradle version is 6.0.1/ React Native Version is 0.62.2. If I downgraded any of both. Will this solve my problem?

The app has access to location Services { ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION }. And I gave the app access to them manually after installing the application.

These are permissions not services. "GPS" must be turned on.

And I faced the same error.

You did not mention any error before. What exact error is that?

The App does not preform any scans. The function itself does not run. console.log('' In scan'' ) which is inside the function does not appear in react native cli logs.

I didn't get any useful answers. I'm closing this issue.


Passing Environement Variables while executing IntelliJ Bazel command

Hello 👋
To make it short, I don't find if it's possible so say my if I'm wrong, it's impossible to pass some env var.
While using the CLI I do : MY_VAR=MY_VAL bazel run //:bin for example.
How could I achieve that from the IntelliJ runner ?
Maybe it can be achieve with the bazel flags ?
Thanks,

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.


Optional logging for AIMDLimit

WHAT:
Enable logging for limit updates when builder configured with .enableLogging(), disabled by default (no breaking change)
Motivation:
In a current state AIMDLimit suffers from lesser observability, the only way to figure out current limit is via toString(), if one wants to track the changes of his limit, he has to execute this method every N seconds.
Drawbacks for this solution are: 1) Inconvenience + extra code 2) You either choose very low N or you don't really see the exact transitions (did it dropped once and then stopped growing up or it was constantly dropping and growing back?)
I understand that it might log on every sample, which, depending on the actual rps, might turns out to be a huge amount of messages, although one should enable it both at limit creation stage and log level. That's why I propose it in a disabled by default manner.
Since single queries can mess up the limit it seems very convenient for me to wrap AIMDLimit inside WindowedLimit and I think this is the case where logging for AIMDLimit shines at it's best, because the limit changes are less frequent depending on the window size.

Would this be better suited for adding a listener with your own custom rate-limited logging logic?

Would this be better suited for adding a listener with your own custom rate-limited logging logic?

Yes, @platinummonkey , it totally makes sense, I missed that part of the library, because it is not accessible on construction phase :sweat_smile: However, listener consumes newLimit only, though current limit is accessible at that point of time as well - https://github.com/Netflix/concurrency-limits/blob/master/concurrency-limits-core/src/main/java/com/netflix/concurrency/limits/limit/AbstractLimit.java#L46
@elandau what do you think about extending notify listeners from Consumer to BiConsumer? It will provide more flexible approach for notifiers

It may be more suitable to pass in the MetricsRegistry instead of relying on logging.  Logging for this will be very noisy and the data would be more easily viewed and analyzed as a data series.
The MetricsRegistry is already passed into the SimpleLimiter/AbstractLimiter but the limit there is reported as a gauge and not a counter so you wouldn't get every update to the limit.  You could do something similar to what's done with the Gradient2Limit to gain more visibility.

Yeah, thanks for the hint @elandau. I am totally agree with metrics vs logs statement. I am just a bit anxious about introducing limiting for production and looking for a way to reach maximum observability. But you are right - MetricsRegistry abstraction is sufficient for that purpose.


GUI: setting a too high feerate for a Spend crashes the software

We should really avoid careless conversions. Or idk sanitize inputs.
  2023-11-17T13:19:00.521450Z ERROR liana:55: panic occurred at line 278 of file src/app/state/spend/step.rs: Some("attempt to multiply with overflow")
   0: liana::setup_panic_hook::{{closure}}
             at /home/darosior/.cargo/git/checkouts/liana-efb3a908181ef2cf/2d303b1/src/lib.rs:49:18
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/alloc/src/boxed.rs:2021:9
      std::panicking::rust_panic_with_hook
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:711:13
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:597:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/backtrace.rs:170:18
   4: rust_begin_unwind
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
   5: core::panicking::panic_fmt
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
   6: core::panicking::panic
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:117:5
   7: liana_gui::app::state::spend::step::DefineSpend::amount_left_to_select
             at src/app/state/spend/step.rs:278:34
   8: <liana_gui::app::state::spend::step::DefineSpend as liana_gui::app::state::spend::step::Step>::update
             at src/app/state/spend/step.rs:320:29
   9: <liana_gui::app::state::spend::CreateSpendPanel as liana_gui::app::state::State>::update
             at src/app/state/spend/mod.rs:105:20
  10: liana_gui::app::App::update
             at src/app/mod.rs:174:18
  11: <liana_gui::GUI as iced::application::Application>::update
             at src/main.rs:248:17
  12: <iced::application::Instance<A> as iced_native::program::Program>::update
             at /home/darosior/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced-0.9.0/src/application.rs:227:9
  13: iced_winit::application::update::{{closure}}
             at /home/darosior/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.9.1/src/application.rs:664:40
  14: iced_futures::backend::native::tokio::<impl iced_futures::executor::Executor for tokio::runtime::runtime::Runtime>::enter
             at /home/darosior/.cargo/git/checkouts/iced-01eedf742052ef90/2d8318b/futures/src/backend/native/tokio.rs:19:9
  15: iced_futures::runtime::Runtime<Hasher,Event,Executor,Sender,Message>::enter
             at /home/darosior/.cargo/git/checkouts/iced-01eedf742052ef90/2d8318b/futures/src/runtime.rs:53:9
  16: iced_winit::application::update
             at /home/darosior/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.9.1/src/application.rs:664:23

https://github.com/wizardsardine/liana/blob/514535d8d6fec705c7271241f68276c42b918150/gui/src/app/state/spend/step.rs#L173-L236

In relation to the amount_left_to_select function, we could perhaps use the error from create_spend to determine the amount left to select. The InsufficientFunds error includes a (private) missing field with the missing amount in sats. This would require more calls to create_spend, but would ensure consistency in the amount shown with how the transaction is being created in the backend. Once #821 has been done, we could avoid incrementing the change index by passing a fixed change address for these intermediate calls.

Can we just add a max feerate value for now, something like 1000 ?

What's wrong with @jp1ac4's suggestion? Do you think it would necessitate a lot more work?

I do not understand how it prevent the user to put a too big feerate and stop the multiplication, it is not clear for me.

Well i think in this case you don't have the multiplication anymore since you use the result from create_spend to compute the amount left to select?

OK understood now.

We did forget that we have our RPC interface in the way for separate GUI and daemon.
Currently GUI and Daemon do not transfer information else than error message through the rpc interface. I think in order to tackle correctly this issue it is better to wait your refactoring work on the spend module, so GUI could call the create_spend method without needed to communicate through rpc to the distant daemon for each psbt generation.

It's already doing that for the coin selection though?

mmmh we may have a bug then, I am afraid that CoinSelectionError is not serialized correctly from the gui when receiving a RPC error from the daemon. I  am trying right now

What do you mean?

Error while doing a spend with a detached daemon and gui:
ERROR liana_gui::daemon::client:48: method createspend failed: Rpc(RpcError { code: -32603, message: "Coin selection error: 'Insufficient funds. Missing 670000 sats.'", data: None })
When the daemon is embedded (not distant) the CoinSelectionError is correctly passed as DaemonError::CoinSelection
https://github.com/wizardsardine/liana/blob/master/gui/src/daemon/embedded.rs#L94
When the daemon is distant and we have rpc communication, the error is received as DaemonError::RpcError
https://github.com/wizardsardine/liana/blob/master/gui/src/daemon/client/mod.rs#L89
https://github.com/wizardsardine/liana/blob/master/gui/src/daemon/mod.rs#L20

Indeed, overlooked the detached daemon mode. We could use the JSONRPC error data field, but i'm afraid that's more work than we can afford right now.

So i think based on our discussions https://github.com/wizardsardine/liana/pull/842 makes this (as well as https://github.com/wizardsardine/liana/issues/840) more doable?

Yes, GUI would directly call the spend::create_spend module function without even using the command function and handle directly the error.


[OpenMP][OMPT] Enable device finalization checks when libomptest-based

Previously, libomptest was not able to emit device finalization callbacks.
Now, we emit these callbacks and may (re-)enable these checks.

The lifetime of our libomptest library has changed / extended, that was 2-3 weeks back IIRC.
Before that: the library was unloaded before the device finalization callbacks, so the corresponding objects were already destructed and checks were simply impossible.
(I had hoped we would fix that someday and left these "DISBALED-" prefixes.)


NSLock triggers a warning when a containing struct is Sendable even though NSLock conforms to Sendable

When creating a struct with an internal NSLock, e.g.
struct MyLockWrapper {
    let lock: NSLock = .init()
}

and confirming this struct to Sendable
extension MyLockWrapper: Sendable {}

SourceKitD generates the following warning about NSLock not conforming to Sendable:
stored property 'lock' of 'Sendable'-conforming struct 'Mutex' has non-sendable type 'NSLock'
Even though the Apple developer documentation explicitly says it does

Tracked in Apple’s issue tracker as rdar://119250614

Do you also see this warning during compilation? And: Which version of swift/sourcekit-lsp are you using?

This could also be platform-dependent, Apple documentation doesn't cover swift-corelibs-libdispatch, which largely lacks Sendable annotations for vast majority of its types.

Looks like Sendable conformance to NSLock was added recently to swift-corelibs-foundation, which is used on Linux: https://github.com/apple/swift-corelibs-foundation/pull/4944


ODH release v2.18.0

Thanks for submitting your Operator. Please check the below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Are you familiar with our operator pipeline?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want to use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Your submission should not

[ ] Add more than one operator bundle per PR
[ ] Modify any operator
[ ] Rename an operator
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description of the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@VaishnaviHire ^

closing this as https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/5200 is created


feat: Add a full set of models for the renalreg DB

Used sqlacodegen to generate a full set of models. Have left them in a seperate module because they are autogenerated and we don't trust anything we haven't written ourselves

This is what I was jabbering on about this morning. The test do now pass so these models are good to go but I think it might still be worth keeping them separate. Can pull them over to the main models as needed.


Language style needs to be adjusted

The styling guide for writing challenges say to not use the first person pronouns (we, let's...), and instead using always second person (you). There are some places where the text needs to be adjusted.
If you want to contribute, you should adjust the sentences the minimum necessary to move away from using first person to second person. A PR can solve all or only one workshop (in that case, mention only the Issue, do not link to close)
workshop cafe menu
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-cafe-menu/5f3477aefa51bfc29327200b.md#L12
workshop node and express
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bed.md#L21-L22
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bed.md#L29-L30
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bee.md#L11-L12
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bee.md#L27
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bef.md#L11-L12
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bef.md#L19-L20
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb0367417b2b2512bf0.md#L15
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb1367417b2b2512bf1.md#L13-L14
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb1367417b2b2512bf2.md#L17
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb1367417b2b2512bf4.md#L24
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb2367417b2b2512bf5.md#L11-L12
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb2367417b2b2512bf8.md#L11
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-node-and-express/587d7fb2367417b2b2512bf8.md#L15
workshop npm packages
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-npm-packages/587d7fb5367417b2b2512c03.md#L11-L12
workshop nutritional label
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-nutritional-label/615f4bfb9de4a16703b56eb6.md#L10
workshop recipe tracker
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5634.md#L10
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/670e4f45f7116c0f216a5177.md#L10
workshop rothko painting
https://github.com/freeCodeCamp/freeCodeCamp/blob/89fd487d1551b94b2863336a1713df727f158e35/curriculum/challenges/english/25-front-end-development/workshop-rothko-painting/60a3e3396c7b40068ad6996e.md#L14

Is this issue asking to change first person pronouns(we, let's...)  with second person pronouns(you) in the mentioned file ? But as I can see the files are already using second person pronouns where necessary. Am I right ? Or the issue is asking something else ?

All those sentences use we and/or let's. They should be modified to use the second person (you).
I guess in cases like "We have created a separate styles.css file for you" we want to modify the sentence into something like:
"A separate styles.css file has been created for you"

Does the changes need to be done only in the mentioned file or throughout the document ?

@Subas-mohanty the mentioned files where mentioned because they need to be changed. A PR has already be opened, thank you for your interest in contributing.


encoding/json: use different error type for unknown field if they are disallowed

On Go 1.15 and below, json decoder returns a generic error when unknown fields are disallowed (via Decoder.DisallowUnknownFields. See https://github.com/golang/go/blob/master/src/encoding/json/decode.go#L737-L739
It may be useful to return a different error type so the caller can detect when it is the case.
The only way to detect that currently is to interpret the string returned by Error

/cc @rsc @dsnet @bradfitz @mvdan

I understand that this should go through the proposal process, but any idea to start that?

@Segflow See https://golang.org/s/proposal.  To make a proposal, please propose a specific change.  Thanks.

First I think we want to hear what @mvdan thinks of the idea...

Given the existence of custom UnmarshalJSON functions that already don't guarantee any semantics regarding the errors they returns, I don't think we should expose semantically identically errors for unknown fields since it would only be a partial guarantee.
Furthermore, the original poster should adequately explain what they want to use this for. It's rare for any proposal to go through without some justification for why it's useful.

@dsnet one of our services process messages from a queue, there could be multiple instances reading from the same queue. Once a service reads a message from the dequeue we decode it(json) and process it.
A message could be invalid, thus a service should decide whenever it should delete the message from the queue or keep it so that probably another instance can process it (probably a newer version of the service).
For instance a "SyntaxError" on a message means we can safely delete the message.
We currently check if error starts with json: unknown field .

I also some similar usage in other repo: https://github.com/search?q="json%3A+unknown+field"+language%3AGo&type=Code&ref=advsearch&l=Go&l=

If you want to keep the message if it is syntactically valid, is there a reason why json.Valid is not being used? It seems backwards trying to determine properties about the input after the fact by interpreting the error condition, rather than checking validity of the data up-front.

Following up a bit more, a problem with relying on errors to determine attributes about the input is the difficulty in presenting that information well and the confusion that arises when scaling to multiple attributes that a user may want to distinguish.
For protocol buffers, we had this issue where we wanted to present errors to distinguish between inputs that were "missing required fields" and inputs that contained "invalid UTF-8". Let's suppose the previous error was distinguishable using errors.Is(err, proto.ErrMissingRequired) and the latter distinguishable using errors.Is(err, proto.ErrInvalidUTF8).
Now suppose an input had both missing required fields and invalid UTF-8, which error do you present? Do you arbitrarily present just one of the two errors or do you return a composite error where errors.(err, proto.ErrMissingRequired) and errors.Is(err, proto.ErrInvalidUTF8) both return true? If you take the previous approach, it breaks users who expect to also detect the other error attribute. If you take the latter approach, it is subtly confusing since users are typically only asking one of the following two questions:

Is this error exactly identical to proto.InvalidUTF8 and definitely nothing else?
Does this error at least contain proto.InvalidUTF8 and I don't care if there are other attributes present?

The errors.Is function does not provide guidance on which of the two questions are being answered. However, in common usage, we found that both questions were reasonable ones that the user wanted to know for some specific use case. Rather than presenting an API that is confusing and easy to use incorrectly, I believe it is better to validate up-front attributes about the input than to rely on the error.

@dsnet - things may have changed a bit now with errors.Join?


What are the rules for folder wildcard

When using the the double asterisk /**/ in folder name, what are rules for picking the sub-folder when there are more then one,  or is it completely random?  for example VS solutions will typically have Debug & Release sub-folders

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

ID: c2076638-9361-d4a1-66a4-c08bc59e138a
Version Independent ID: 2718b0bc-77b8-d992-b26c-a0a95014d491
Content: Use the SolutionPackager tool to compress and extract a solution file (Developer Guide for Dynamics 365 Customer Engagement)
Content Source: ce/customerengagement/on-premises/developer/compress-extract-solution-file-solutionpackager.md
Service: crm-online
GitHub Login: @JimDaly
Microsoft Alias: jdaly

This is an older version of the doc. It should be referring to the newest version at SolutionPackager tool
Assigned to @KumarVivek  and @shmcarth

@xairrick
Thanks for your feedback. We are closing this issue because we are either unable to find relevant information or reproduce this. If you're still experiencing the issue described here, please reopen or create a new issue.


[Need help] Improve error message if dotnet is not found

Hello,
this PR fix #1709.
~:warning: Important: I had to disable Fantomas formatting because it generates invalid F# code. I opened a bug about it https://github.com/fsprojects/fantomas/issues/2366~
Changes:

Rename LanguageService.dotnet to LanguageService.tryFindDotnet
Improve LanguageService.tryFindDotnet to gives better errors message if dotnet is not found
Remove Environement.dotnet and use LanguageService.tryFindDotnet instead
Use a modal instead of the notification to display the error, this is because we cannot use multine in the notification making the error message not really readable
New dotnet detection logic
Return error message which differ depending on the context of the error. Did it occur because Fsharp.dotnetRoot is set or not.

Important
~Please test on Windows, if the detection works when FSharp.dotnetRoot is set to a valid location. In order, to detect if the file exist at that location I am calling Environment.tryGetTool with the full computed path. On Linux, it executes which /home/mmangel/.dotnet/dotnet which return OK if found, but I don't know if the Windows equivalent was with full path too.~
Test no needed anymore, I am now using the standard Note API to check if the file exist.
Questions
Generalise calling windows.showErrorMessage ?
Should we call windows.showErrorMessage everywhere where we handle an error result from calling LanguageService.tryFindDotnet? If yes, should we just call it directly from LanguageService.tryFindDotnet and make it return the dotnet path if found and failwith ... if not?
What do to with LanguageService.compilerLocation?
What does LanguageService.compilerLocation do?
In the old code if dotnet is not found, then Ionide try to use the compilerLocation which comes from the (LSP?) client. But how can the LSP client be running if dotnet is not found ?
If my understanding is correct, shouldn't we just remove it? --> Need to remove the commented code
If not, we need to re-add that portion of the logic. Waiting for some explanation to understand how to wire it.
Error preview

doesn't work:

where doesn't work with a full path:
> where.exe "C:\Program Files\dotnet\dotnet.exe"
ERROR: Invalid pattern is specified in "path:pattern".

Requires instead:
> where.exe "C:\Program Files\dotnet:dotnet.exe"
C:\Program Files\dotnet\dotnet.exe

`where.exe /?`
WHERE [/R dir] [/Q] [/F] [/T] pattern...

Description:
    Displays the location of files that match the search pattern.
    By default, the search is done along the current directory and
    in the paths specified by the PATH environment variable.

Parameter List:
    /R       Recursively searches and displays the files that match the
             given pattern starting from the specified directory.

    /Q       Returns only the exit code, without displaying the list
             of matched files. (Quiet mode)

    /F       Displays the matched filename in double quotes.

    /T       Displays the file size, last modified date and time for all
             matched files.

    pattern  Specifies the search pattern for the files to match.
             Wildcards * and ? can be used in the pattern. The
             "$env:pattern" and "path:pattern" formats can also be
             specified, where "env" is an environment variable and
             the search is done in the specified paths of the "env"
             environment variable. These formats should not be used
             with /R. The search is also done by appending the
             extensions of the PATHEXT variable to the pattern.

     /?      Displays this help message.

  NOTE: The tool returns an error level of 0 if the search is
        successful, of 1 if the search is unsuccessful and
        of 2 for failures or errors.

Examples:
    WHERE /?
    WHERE myfilename1 myfile????.*
    WHERE $windir:*.*
    WHERE /R c:\windows *.exe *.dll *.bat
    WHERE /Q ??.???
    WHERE "c:\windows;c:\windows\system32:*.dll"
    WHERE /F /T *.dll

(Note: I'm using where.exe instead of where because I'm using powershell. And where is an alias for Where-Object)
So I suggest to keep directory separate:
let tryGetTool dir toolName =
    if isWin then
        let pattern =
            match dir with
            | Some dir ->
                $"{dir}:{toolName}"
            | None -> toolName
        spawnAndGetTrimmedOutput "where.exe" (ResizeArray [ pattern ])
        |> Promise.map (fun (err, path, errs) -> if path <> "" then Some path else None)
        |> Promise.map (
            Option.bind (fun paths ->
                paths.Split('\n')
                |> Array.map (String.trim)
                |> Array.tryHead)
        )
    else
        let tool =
            match dir with
            | Some dir -> path.join (dir, toolName)
            | None -> toolName
        spawnAndGetTrimmedOutput "which" (ResizeArray [ tool ])
        |> Promise.map (fun (err, path, errs) -> if path <> "" then Some path else None)

(also: no need to use cmd: where is an executable itself -> can be started directly)

@Booksbaum Thank you for checking.
I think I will go with the less fancy way and just use file.exist from Node API as it should be really cross platform. And it also convey the meaning of the check we are doing at this point in the code which is checking for the file existence.
This was actually my original idea.

I made the changes to use standard Node API to check for the file existence.

@baronfel This PR is ready to merge depending on the decision about:

Generalise calling windows.showErrorMessage ?

I worry about the user experience of having tons of error modals fired. Is there a way we could detect not finding dotnet (until the configuration changes) and then try again? Ideally notifying the user via status bar or something that we're in a degraded state?

Another ideas, I had this morning is:
Display a minimal notifications just saying "Could not find 'dotnet'" and had an action to the notification saying "More details".
When the user click on it, we open a preview panel with the detailed error message in it.
https://user-images.githubusercontent.com/4760796/179700971-a82df49a-d017-452d-a654-def0ca7dffc5.mp4
If we go this way, I think it makes sense to "generalise calling windows.showErrorMessage" in the tryFindDotnet function as it involve a bit of logic.

let dotnetNotFound (msg: string) =
    promise {
        let! selection = window.showErrorMessage ("Could not find 'dotnet'", "More details")

        match selection with
        | Some "More details" ->
            // Prepare a temporary file to store the error message
            let fileName = "ionide_dotnet_not_found_details_" + node.crypto.randomBytes(4).readUInt32LE(0).ToString() + ".md"
            let tempPath = node.path.join (node.os.tmpdir(), fileName)
            // Write the error message to the file, this will allow us to close the text editor
            // without a confirmation dialog as the file content will not be modified.
            node.fs.writeFileSync(tempPath, msg)
            // Open the file in VSCode
            let newFile = vscode.Uri.parse (tempPath)
            let! document = workspace.openTextDocument newFile
            let! _ =  window.showTextDocument (document, ?options = None)
            // Show the error message in the markdown preview (better display)
            do! commands.executeCommand("markdown.showPreview", Some (box document))
            // Close the text editor (this does not close the markdown preview)
            do! commands.executeCommand("workbench.action.closeActiveEditor", Some (box document))
            // Delete the temporary file as it is not needed anymore.
            node.fs.unlinkSync(U2.Case1 tempPath)
        | Some _
        | None ->
            ()
        return failwith "no `dotnet` binary found"
    }

Hello @baronfel @Krzysztof-Cieslak,
I rebased this PR to the latest version of main + improved the error display as show in my last message.
For me this PR is ready for review now.

Thanks a lot! ❤


digest string in crypto.pbkdf2

I notice an error using the:
LambdAuthCreateUser
this piece of code:
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
if (err) return fn(err);
fn(null, salt, derivedKey.toString('base64'));
});
don't work if I don't add after len a digest string, for example null
crypto.pbkdf2(password, salt, iterations, len, null, function(err, derivedKey) {
if (err) return fn(err);
fn(null, salt, derivedKey.toString('base64'));
});
Is it just my problem?

According the Nodejs documentation for pbkdf2 function:

crypto.pbkdf2(password, salt, iterations, keylen, digest, callback)
[...]
If digest is null, 'sha1' will be used. This behavior is deprecated, please specify a digest explicitly.

So, I think the problem is that init.sh is specifying an old version of Nodejs and in new versions they changed the signature of pbkdf2 function.
https://github.com/danilop/LambdAuth/blob/ef2e82854f66fde2279fb3200cb655c875623180/init.sh#L140-L145


Spot-check Hail-computed FAF confidence intervals (Konrad has fixed a bug)

https://atgu.slack.com/archives/CNNTF8Z46/p1597242953003800

Need to talk to Konrad about what this requires

I've spot-checked the v3.1 FAF CIs against the numbers on the cardiodb website (http://cardiodb.org/allelefrequencyapp/ -- see: the inverse AF tab), and they do not match. I just plugged in AC and AN for some random variants and toggled the CI to check the values.
+---------------+------------+---------+----------+---------+-----------------------+-----------+-----------+
| locus         | alleles    | freq.AC |  freq.AF | freq.AN | freq.homozygote_count | faf.faf95 | faf.faf99 |
+---------------+------------+---------+----------+---------+-----------------------+-----------+-----------+
| locus | array |   int32 |  float64 |   int32 |                 int32 |   float64 |   float64 |
+---------------+------------+---------+----------+---------+-----------------------+-----------+-----------+
| chr20:60083   | ["T","C"]  |      36 | 3.30e-04 |  109192 |                     0 |  2.45e-04 |  2.15e-04 |
| chr20:60121   | ["G","T"]  |       7 | 5.28e-05 |  132472 |                     0 |  2.39e-05 |  1.71e-05 |
| chr20:60122   | ["T","C"]  |       7 | 5.24e-05 |  133650 |                     0 |  2.37e-05 |  1.70e-05 |
| chr20:60138   | ["T","A"]  |      13 | 9.59e-05 |  135616 |                     0 |  5.64e-05 |  4.41e-05 |
| chr20:60148   | ["G","C"]  |     231 | 1.88e-03 |  122854 |                     0 |  1.68e-03 |  1.60e-03 |
| chr20:60149   | ["C","T"]  |      59 | 4.24e-04 |  139002 |                     0 |  3.38e-04 |  3.06e-04 |
| chr20:60169   | ["C","T"]  |      40 | 3.00e-04 |  133552 |                     0 |  2.25e-04 |  2.00e-04 |
| chr20:60181   | ["A","G"]  |      34 | 2.50e-04 |  135824 |                     0 |  1.84e-04 |  1.61e-04 |
| chr20:60188   | ["A","G"]  |      21 | 1.51e-04 |  138920 |                     0 |  1.01e-04 |  8.42e-05 |
| chr20:60192   | ["T","A"]  |      15 | 1.04e-04 |  144058 |                     0 |  6.34e-05 |  5.14e-05 |
+---------------+------------+---------+----------+---------+-----------------------+-----------+-----------+
Faf95 numbers are slightly off between v3.1 and the website. Faf99 numbers do not seem to be different from faf95 numbers on the website, whereas they are different for v3.1.
Waiting on a response from James Ware/Nicky Whiffin. We many need to adjust or update FAF numbers in a minor minor release down the line, depending on whether the issue is in the Hail implementation of faf or whether it's a website issue (or both).


loadbalancernetwork: 支持lbnetwork-list --details

这个 PR 实现什么功能/修复什么问题:
lbnetwork-list --details返回lb和network的名称
是否需要 backport 到之前的 release 分支:

release/2.6.0

/cc @ioito
/cc @swordqiu

Codecov Report

Merging #539 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #539      +/-   ##
=========================================
- Coverage    7.42%    7.4%   -0.03%
=========================================
  Files         345     345
  Lines       54279   54290      +11
=========================================
- Hits         4031    4018      -13
- Misses      49872   49894      +22
- Partials      376     378       +2

Flag
Coverage Δ

#aFlag
7.4% <0%> (-0.03%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/compute/models/loadbalancers.go
1.79% <0%> (-0.01%)
:arrow_down:

pkg/compute/models/loadbalancernetworks.go
0.99% <0%> (-0.1%)
:arrow_down:

pkg/util/rbacutils/rabc.go
68.56% <0%> (-4.17%)
:arrow_down:

pkg/appsrv/response.go
66.15% <0%> (-3.08%)
: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 409e8cf...1a080fa. Read the comment docs.

/cherrypick release/2.8.0

/cherrypick release/2.9.0

/cherrypick release/2.7.0

/cherrypick release/2.6.0

/lgtm
/approve


Provide augmented HTML typings in SvelteKit itself

Describe the problem
Right now, things like data-sveltekit-preload-data are added inside the Svelte repo's HTML type definitions. With https://github.com/sveltejs/language-tools/issues/2109 adressed we can investigate whether or not it makes sense to have these additional types provided by SvelteKit itself.
Describe the proposed solution
Have a file inside SvelteKit that is loaded through the generated ambient.d.ts file which enhances the typings like this.
declare module "svelte/elements" {
  export interface HTMLAttributes {
    'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
    // .. etc
  }
}

Alternatives considered
keep the tighter-than-it-needs-to-be-connection to Svelte's typings.
Importance
would make my life easier
Additional Information
I haven't quite figured out if this is a breaking change or not - i.e. is there something stopping us from just shipping this today and then removing the types in a future Svelte version, which the next major version then only supports? It's probably a breaking change because it would mean we need to remove the typings on the Svelte core side, so probably easiest to do along with Svelte 5.

I am trying to hook into this approach to limit custom props to specific elements (following the guide here https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/typescript.md#im-using-an-attributeevent-on-a-dom-element-and-it-throws-a-type-error I made the following code:
declare namespace svelteHTML {
	interface HTMLAttributes {
		variant?: 'primary' | 'secondary';
	}
}

<button variant="primary">Test</button>
<button>Test none</button>
<button variant="tertiary">Test</button>

Test

The goal would be that I get two warnings: for variant on the paragraph tag, and one for the value of tertiary (the two last elements in the test).
This does only give an error on tertiary (logically because nowhere I have restricted it to just buttons)
I tried the following so far:
interface HTMLAttributes<HTMLButtonElement>
interface HTMLButtonAttributes
both using declare module "svelte/elements" and declare namespace svelteHtml

Usage of dts-buddy has complicated this, because there's now no file where we can put declare module ".." along with a export {} to make the file non-ambient. It would need to happen in a generated file inside the .svelte-kit folder.
I also realized that the addition of data-${string} to HTMLAttributes in svelte/elements in combination with our type HTMLProps<Property extends string, Override> = Omit<import('svelte/elements').SvelteHTMLElements[Property], keyof Override> & Override; type in language tools means that data attributes that are explicitly specified are no longer type checked properly, the data-${string} somehow overrides them so that any is allowed on all of them.


JAVA-2057: Ignore SUGGEST_UP TopologyEvent if pool is pending

For JAVA-2057.
This should fix an issue I noticed on our CI servers, were occasionally after forcing a node down I observed that there were still some open connections.   I have CI running repeatedly against #1147, which has this fix, so assuming that continues to run well we should consider merging this.  Lets wait overnight to see how things go.
Motivation:
There is a small window where a NEW_NODE event may be sent over the
control connection while a pool is initializing.  This is more likely to
happen in testing, where a cluster is brought up and the driver connects
to it immediately.
In this case, the driver would erroneously create another pool, which
would create additional connections.  The first pool created between
the currently initializing one and the new one being created would be
untracked with its connections remanining open even after the Session is
closed.
Modifications:
Akin to the logic in processDistanceEvent and processStateEvent, only
invoke createOrReconnectPool in onTopologyEvent when there is not an
initializing pool future present in the pending map.
Result:
createOrReconnectPool is no longer invoked in onTopologyEvent if there
is a pending initialization for that node.

Ack!  This may not completely fix the issue..looks like the issue has recurred even with this fix, so I have more investigation to do.

Ack! This may not completely fix the issue..looks like the issue has recurred even with this fix, so I have more investigation to do.

The problem was we never put the pool in pending in the typical initialization case.  Doesn't that seem like a problem too?  In the case of processDistanceEvent / processStateEvent being received during pool initialization, couldn't that be a problem too?

Made the recommended adjustment and rephrased the PR.  If this is good I will also alter the CHANGELOG & commit log on merge

In the case of processDistanceEvent / processStateEvent being received during pool initialization, couldn't that be a problem too?

Those events are recorded in pendingDistanceEvents/pendingStateEvents, and coalesced and replayed in onPoolReady() once the pool is done initializing.

Yeah your change is what I had in mind. Does that resolve all issues in CI?

Yeah your change is what I had in mind. Does that resolve all issues in CI?

It looks like it!   Have had enough consecutive runs without the error reproducing to feel comfortable with this.     Cool if I merge afterwords and also merge in #1147 after?

Works for me 👍
I assume you plan to clean up the history in #1147, looks like you reverted a few things along the way.


Error:  cannot find module 'node:assert/strict'

When trying to run bytenode, I am getting the above error in index.js 3:16.  I have upgraded to the latest nodejs and npm and that didn't seem to correct the issue.  Any idea what I might be doing wrong?

I was just having this same problem today myself. All of my internet searches said, "update Node" and re-install your node_modules folder. But I tried those things and the latest Node (18.17.0) was still producing the error.
It seems like Node is interpreting "use strict" at the top of index.js as a module import.
Unfortunately, I don't have an answer. I ended up reworking my code and somehow things started working again.
Maybe @OsamaAbbas will have thoughts.

I cannot reproduce the error in node 18.x nor in node 20.x (on my linux machine).

It seems like Node is interpreting "use strict" at the top of index.js as a module import.

This is not the cause of the problem. The problematic module lies clearly in this line: https://github.com/bytenode/bytenode/blob/27b4c87a1e6f0825c91674552fd654cbef98657f/lib/index.js#L3
As I'm unable to reproduce the error, could you please change line 3 and 4 from:
const { ok } = require('node:assert/strict');
const { brotliCompressSync, brotliDecompressSync } = require('node:zlib');

to
const { ok } = require('assert/strict');
const { brotliCompressSync, brotliDecompressSync } = require('zlib');

and see if the error persists?

Another possibility: do you use webpack or similar packaging solutions? This might be the cause. It seems that require('node:MODULE') syntax won't work unless the require function is the native node require function. If webpack (or similar solutions) defines its own require function, it might think that you want a library called node:MODULE from node_modules folder.
So, edit line 3 and 4 to require assert/strict and zlib instead of node:assert/strict and node:zlib. If this solves the issue, I will fix them and publish a new version right away.

I don't think I'm using webpack.  I did previously try removing node: from the require however it just gave Error: Cannot find module 'assert/strict'.  I've tried v18 and v20 with the same error (I'm on windows).

I was using Electron Forge too.
FWIW, I'm creating a Bytenode plugin for Electron Forge, if that sounds interesting. I've got it working in my project, but I need to create a repository around it. Looking for collaborators.

So it seems to be an issue with electron forge.
As I always say, I have little to none experience with (insert anything related to electron or web development), can you help me with a minimal setup that shows the issue?

What version of Node is required to support the node:-prefixed require statements? I think that Electron Forge may be running Electron's version of Node instead of your current session's. Electron was running Node 16 up until Electron v22. Here's a list that maps Electron to Node versions. If Electron 16 does not support the node:-prefixes, this might be the problem.
Another theory: Electron Forge may be spawning sub-processes which, in turn, trigger its hooks. So if, for instance, you're using NVM to run a given version of Node, but you've got a different version of Node installed at the system level, the system-level Node may be triggering the error. I would assume that Node's subprocesses would inherit their parent's runtime environment… but maybe not? You could test this theory with a console.log(process.version) inside your hook to see what version of Node is running. You'll also probably want to do an export DEBUG=* to set the DEBUG env var and disable Listr in Electron Forge so you can see your console messages.
Sorry. Lots of theories. I don't have time to test right now. But this is where I'd start.

I found it's about npx.
Compiling on my Respberry Pi 4 (arm64 Debian 11), npx bytenode -c works with Node 18 installed from https://github.com/nodesource/distributions#using-debian-as-root-2.
But npx bytenode -c throws node:assert/strict if I used Node.js downloaded from https://nodejs.org/download/release/v14.21.3.
And it compiled successfully (with Node 14 above) if I invoked bytecode with Node binary directly like:
node $DIR/node_modules/bytenode/lib/cli.js -c xxx

I tried both npx bytenode -c index.js and npx bytenode index.jsc. Both worked with no errors on Node v18.17.0 and v20.5.0.
I can reproduce the error with Node v14.21.3, with and without npx.
So, I guess I figured out the reason. I will push a fix right now.


fixing tag aggregation for histograms, fixing 1.0 sample-rate

Fixing a silly issue where values with different tags were overwriting each other instead of properly merging.
Also fixing another silly issue where a sample rate of 1 wouldn't collect anything

+1


error messages to suggestions of the same source

On "Suggest Source" page, if a user suggests the same source with different comments, the error message - "Error: 409: Conflict
This source suggetion appears to conflict with a previously submitted suggestion." - comes out.
What if the user wants to add more comments, she/he can move to a user profile page and then move to the corresponding source page. However, it is not easy to find for users.
I think it would be better for the error message to include the link to the corresponding source page so that users can easily add additional comments on their previous source suggestion.

Current error message

My idea - I simply added the link to the corresponding source page (http://<IP_ADDRESS>:3001/sources/1736/summary). If you hit the link, you can move to the source page and add additional comments.

I like this idea! My only suggestion would be to change the text to something like 'This source suggestion appears to conflict with a previously submitted suggestion. [Visit the conflicting source page] to view the conflicting source's details and add further comments.'  (the brackets denote link text).
Go ahead and implement this feature and submit a pull request. Be sure to merge the latest commit to origin/master, I just now fixed the Variant Name typeahead that wasn't working properly.

I edited the error message as you suggested and committed.

https://github.com/genome/civic-client/pull/777

If we could add a warning like we find in the add evidence form when gene/variant/PMID match, that would be appreciated. Here it would be nice if it warned and showed the existing source suggestion based on PMID alone. I don't imagine this will happen that often but it would allow users to still suggest it or just navigate to that source and comment there.


📡 Problem with the Faucet

Faucet Type
Web
Problem
The AVL coins do not reach my wallet  5CSohpNpwb3Ye9ZbxXQUMtfkXfJMabvQKSBS8gCCy4DpvPFt
I tried twice already (today and yesterday) and nothing so far. I need that as soon as possible to mint NFT from  Light node Challenger.
Address
No response
Network ID
Relay Chain
Relevant log output
No response

Wrong repo: https://github.com/availproject/polkadot-testnet-faucet


MAHOUT-1704: Pare down dependency jar for h2o

This takes the dependency jar for h2o down to ~17M from~68M. Need to verify if this contains all needed deps. I have successfully tested launching {{$mahout h2o-node}} and run $mvn test in parallel on 2 nodes.

@avati, could you take a look at this?  I think that we will have to supply other mahout classes to h2o-node in bin\mahout or elsewhere.

Added scala libraries into dependency jar.  This bumps the size up to 20M. H2O Tests are passing in parallel now.

Will look into this soon
On Fri, May 1, 2015, 23:26 Andrew Palumbo<EMAIL_ADDRESS>wrote:

Added scala libraries into dependency jar. This bumps the size up to 20M.
H2O Tests are passing in parallel now.
—
Reply to this email directly or view it on GitHub
https://github.com/apache/mahout/pull/128#issuecomment-98318122.

thx.  Should be good. removed scala-reflect. this brings the dependency jar down to ~17M. Tests are passing in parallel.

this tests fine in parallel.  I'm going to clean it up and push it this afternoon if there are no objections.


Fix StanfordNeuralDependencyParser tests

WIP
Reference: #1586

This PR aims to solve StanfordNeuralDependencyParser test failures. It is supposed to be structured in two parts:

[ ] Fix java memory allocation issues in doctests
[ ] Fix test output if it is confirmed to be wrong

The StanfordNeuralDependencyParser needs a lot of memory in order to work. However, changing the default value of an argument in the constructor of a subclass is not very straightforward, especially when using *args and *kwargs (our case). I therefore decided to keep the current constructors and improve the documentation, fixing tests at the same time. This is done specifying the argument java_options='-mx3g' when instantiating the StanfordNeuralDependencyParser:
dep_parser=StanfordNeuralDependencyParser(java_options='-mx3g')

Thanks @fievelk


[oceanbase] use real charset to convert change record

fix #2114

Thanks for contribution, @whhe . Have these changes been covered by the existed tests?

Yes.


Allow terraform buildagent to support custom providers

Where can i find the instructions to configure the terraform buildagent to have custom providers that are not officially supported?

@krazineurons
I want to first clarify that the build agent is not something the task specially provisions. It uses the build agent defined in the pipeline as any other azure devops task would. If you set the pipeline to use a hosted windows agent, thats what the task uses. Therefore, you are still in complete control of the agent.
In most cases, when your build requires specific software installed on the agent, the general recommendation is to not use a hosted build agent. You could instead use your own server as a build agent. This would allow you to install the custom/third-party providers onto the build agent ahead of time without having to define steps in the pipeline for it. This is what i would recommend for a short term solution. See Self-Hosted Build Agent Docs
If running your own build agent is not an option, then the other route could be to make installing the custom provider software part of the pipeline. According to the terraform docs this is done simply by copying the compiled provider to a directory on the machine. You may be able to accomplish this fairly easily by publishing your provider as a Universal Artifact in azure devops. There is a task that allows you to download a Universal Artifact to a directory of your choice on the agent. Alternatively, if you could also write shell/powershell task that downloads the provider from a publically accessible location to the appropriate location on the agent.
There are not currently plans to add first class support for custom providers. However, I would welcome feedback on how you might expect the task to facilitate use of custom providers. For example should it have a field that accepts a list of url's to dependent custom providers?

Closing until more use cases for feature


Misalignment between cursor inside color-picker and mouse pointer

div#parent{ zoom: 1.4; -moz-transform: scale(1.4); }
When CSS-zooming the cursor inside the color-picker is misaligned with the mouse pointer.
Video demonstration

Sorry.  I think this is a  rare situation and there is no easy work around. Close this issue for now. Maybe will fix it someday.


how to tunning Latency of Send

hi sirs.
I got a new development  board， I found the Latency of Send is about 70ms on usb connection mode。
and the Latency of Send of quest2 is only 5-15ms
I had tested adb push on the development board。 push 12 G file into it, it cost 110s, speed is about 110MB/s.
and push the same file to quest2. it cost 240s, speed is about  50MB/s.
quest2 is slower than the board.
but why the Latency of Send of quest2 is faster than the development board's
I have checked the USBs on Windows 10 professional, they are all USB2.0。
Anybody can guide me how to reduce the  Latency of Send of my development  board.

I had found this issue about 3weeks ago, but cant reslove it.
on the board. it only can send about 500 packets every second. but on quest .it can send 7000 packets every second.  500 vs 7000. NOT 5000 vs 7000

development board is run on Android 12


Improved NamePlates

Issue Fixed #
Nameplates acting strange & missing options
Proposed Changes

Renamed OOR-Alpha to OOT-Alpha
Set more CVars

@Kkthnx-WoW

I plan to push a huge update before I push your PR into main.

No merge - OOR/OOT has to be checked first.


Masonite

Hey,
I will be implementing the backend with Masonite. Masonite is the Modern And Developer Centric Python Web Framework.
Repo: https://github.com/vaibhavmule/masonite-realworld-example-app

@Cameron-C-Chapman I have worked on repo and ready and passed all the tests.

@vaibhavmule could you add CI (Travis/Circle/Azure)?

Yes just updated the travis.yml.

@anishkny @Cameron-C-Chapman Just wanted to know, what can be done approved?

@vaibhavmule this looks great! Could you run API tests against your backend to ensure it is compliant? preferably in Travis CI
https://github.com/gothinkster/realworld/tree/master/api

Yeah I could do that. Thanks.

Basically you would need to spin up your backend, and then execute:
APIURL=http://localhost:8000/ run-api-tests.sh

(assuming port 8000)
See: https://github.com/gothinkster/realworld/blob/master/api/run-api-tests.sh


Switch to bbolt since bolt is no longer maintained

The author of of the bolt database states that the project is no longer maintained and that users should consider switching to bbolt instead. Repo of bbolt is https://github.com/coreos/bbolt

thanks for the issue. to be clear, the author states:

Unfortunately I no longer have the time or energy to continue this work. Bolt is in a stable state and has years of successful production use. As such, I feel that leaving it in its current state is the most prudent course of action.

we do not recommend boltdb for production installations of fn simply for the reason that it's embedded and not accessible by multiple fn servers. bolt is stable for us, especially for our needs with it (a nice 'getting started' story), and this isn't a priority to switch to bbolt as we don't need the feature set it offers over bolt in any case. That being said, if a PR opened that added support for bbolt we would be happy to adopt it in bolt's stead or alongside it if this was something someone was interested in. cheers


[AutoDiff] Not differentiate through global closures flow-sensitively.

Earlier we added a hack to differentiate global constants or variables that are initialized with a closure whose body is differentiable. However, function conversion should not be flow-sensitive. This patch removes the hack.

@swift-ci please test tensorflow


Added a new field 'infoRaw' that preserves formatting

Implementation of #5
Example output:
"info": {
      "de-DE": "Einsatz: Generiere Einhorn oder Chironex.\n",
      "en-US": "Deploy: Spawn a Unicorn or a Chironex.\n",
      ...
    },
"infoRaw": {
      "de-DE": "<keyword=deploy>Einsatz:</keyword> <keyword=spawn>Generiere</keyword> Einhorn oder Chironex.\n",
      "en-US": "<keyword=deploy>Deploy:</keyword> <keyword=spawn>Spawn</keyword> a Unicorn or a Chironex.\n",
      ...
    }

On the back of this, we could probably add another field to the dataset that is a list of keywords. That is easily obtainable now we have the full formatted description.
Would help with #4

@Zolmeister changes made. Thoughts?

Needs squashing (looks like there's a github option to do this but it's not enabled for this repo).
Unit tests would be a great addition, I'll make a new issue


Sorting and filtering for hypergrid v2.1.8?

How to achieve sorting and filtering for hypergrid v2.1.8? I saw some old code which is using local addons.
Could you provide an example using npm based packages or any available demo?

hello @sachindevtripathi yes I will post something this week

I realized documentation is not describing what and how about hypergrid features.  Could you please add some description on:

How to use features(e.g. ColumnSorting and Filtering, both are part of fin-hypergrid package), if they are reusable.
What is the segregation for behavior, properties and dataModel. Some description would help.
Creating a react hypergrid wrapper and using both sorting and filtering.

Sorting and filter are supported in the UI (i.e., in the feature chain) but are not otherwise supported by "the package." These features are entirely dependent on data model support and responsiveness to these calls.
The sorting and filtering data models for v2.x.x are archived in the old-addons repo where you will find functional examples.
For v3.0.0, there are newer (and much simpler) filtering examples for:

A global filter example which takes a javascript expression referencing columns by name
A column filters example which demonstrates filter row UI. This too takes javascript expressions which may reference other columns by name. It also takes an abbreviated expression syntax for references to its own column.

These examples are probably broken at the moment owing to active development of Hypergrid v3.0.0 upon which they depend. (They were published prematurely.) It is these two examples I was thinking of when I said I would "post something this week" above. What I meant was that I would bring them up to date with the current 3.0.0 alpha. I realize this may not be immediately useful to you inasmuch as v3.0.0 has not been released yet. However it will be released soon (definitely this month).
(There is also a combined filtering and sorting example for a "3.0.0" npm module that does not exist. I'm not sure this one will ever be updated and might be archived. The code may be instructive nevertheless.)
I must stress that all these filtering and sorting demos and data models are provided as sample code and are not part of the Hypergrid core package.
The data model interface for these features is changing in v3.0.0 (not yet released). It will be fully documented upon release. The current interface is not documented, but can be inferred from DataSourceOrigin.js and DataSourceBase.js
The "behavior" deals with UI and interfacing to the data model. Properties are described in the properties Grid Propertieswiki.
Sorry, I can't advise you regarding writing a React wrapper.

Thanks for your detailed answers
I have few more questions and follow-ups:

Any update on Hypergrid v3.0.0 release?
Did you get chance to post something on sorting and filtering for Hypergrid v2.1.8?
I am trying to show ticking data using Hypergrid. What should be the approach to do live updated to the data? any example would help.


Question: what is the endpoint link when running from python -m ?

Hi I executed the a newly generated template with dummy model, router and self-hosted API. But somehow the endpoint (including /health) is returning 404. I did not change the router settings either.
What is the url link?
http://<IP_ADDRESS>:8000/health
$ python -m main
INFO:     Started server process [4505]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:60642 - "GET / HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60642 - "GET / HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60644 - "GET /health HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60644 - "GET /dummy HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60646 - "GET //dummy HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60648 - "GET /docs HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:60656 - "GET /health HTTP/1.1" 404 Not Found

Just noticed that the file system directory is honored by the router. Meaning the URL are http://<IP_ADDRESS>:8000/api/docs http://<IP_ADDRESS>:8000/api/health


Unclear licensing descriptions

It is unclear if settings global policies would apply to all or only licensed users. In the case of a customer, they have two different licensing strategies. One for frontline workers with M365 F3 licenses and one for office workers with M365 E3 and E5 Security add-ons. What is not clear is if a global settings is configured would the F3 users be in breach of licensing or simply ignored?

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

ID: 72ac8b1f-a7cf-3487-9a3c-8eff53e4adb5
Version Independent ID: 63773389-8a4f-926f-8430-8c80b19ff2da
Content: Safe Documents in Microsoft Defender for Office 365 - Office 365
Content Source: microsoft-365/security/office-365-security/safe-docs.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@terryhugill, the protection would only apply to licensed E5 Security users. From the topic:

Safe Documents is available only to users with Microsoft 365 E5 or Microsoft 365 E5 Security licenses. These licenses are not included in Microsoft Defender for Office 365 plans.

@terryhugill Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


ref: Store tracked spans on start not finish

This matches the JS implementation, and without it we cannot use the span recorder of a span to find its parent transaction (required to implement #734).

It turns out that the test failures are due to an off-by-one difference in interpretation of what the max_spans config means.
max_spans = 3 in JS means transaction + 3 child spans.
max_spans = 3 in Python means transaction + 2 child spans.
Going to preserve the inconsistent behavior for now, with a note, since it is not part of the intended work in this PR.

Changes to get tests passing:
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py
index 9f0e197..5e9ae8a 100644
--- a/sentry_sdk/tracing.py
+++ b/sentry_sdk/tracing.py
@@ -73,7 +73,12 @@ class _SpanRecorder(object):

     def __init__(self, maxlen):
         # type: (int) -> None
-        self.maxlen = maxlen
+        # FIXME: this is `maxlen - 1` only to preserve historical behavior
+        # enforced by tests.
+        # Either this should be changed to `maxlen` or the JS SDK implementation
+        # should be changed to match a consistent interpretation of what maxlen
+        # limits: either transaction+spans or only child spans.
+        self.maxlen = maxlen - 1
         self.spans = []  # type: List[Span]

     def add(self, span):
diff --git a/tests/integrations/stdlib/test_subprocess.py b/tests/integrations/stdlib/test_subprocess.py
index ee6e7c8..e2ae005 100644
--- a/tests/integrations/stdlib/test_subprocess.py
+++ b/tests/integrations/stdlib/test_subprocess.py
@@ -140,13 +140,15 @@ def test_subprocess_basic(

     (
         subprocess_init_span,
-        subprocess_wait_span,
         subprocess_communicate_span,
+        subprocess_wait_span,
     ) = transaction_event["spans"]

-    assert subprocess_init_span["op"] == "subprocess"
-    assert subprocess_communicate_span["op"] == "subprocess.communicate"
-    assert subprocess_wait_span["op"] == "subprocess.wait"
+    assert (
+        subprocess_init_span["op"],
+        subprocess_communicate_span["op"],
+        subprocess_wait_span["op"],
+    ) == ("subprocess", "subprocess.communicate", "subprocess.wait")

     # span hierarchy
     assert (

Plus updated commit message.

And hopefully last test fix accounting for the change in order of spans.

diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py
index b3a08f5..3c26b42 100644
--- a/tests/integrations/django/test_basic.py
+++ b/tests/integrations/django/test_basic.py
@@ -518,10 +518,10 @@ def test_middleware_spans(sentry_init, client, capture_events):

     if DJANGO_VERSION >= (1, 10):
         reference_value = [
-            "tests.integrations.django.myapp.settings.TestFunctionMiddleware.__call__",
-            "tests.integrations.django.myapp.settings.TestMiddleware.__call__",
-            "django.contrib.auth.middleware.AuthenticationMiddleware.__call__",
             "django.contrib.sessions.middleware.SessionMiddleware.__call__",
+            "django.contrib.auth.middleware.AuthenticationMiddleware.__call__",
+            "tests.integrations.django.myapp.settings.TestMiddleware.__call__",
+            "tests.integrations.django.myapp.settings.TestFunctionMiddleware.__call__",
         ]
     else:
         reference_value = [


NotificationStore DeleteNotificationAsync not setting TenantId

So, currently the code inside the NotificationStore for DeleteNotificationAsync is not setting the tenantId to Null before calling delete.
Keep in mind, I am using separate databases for host / tenant.
There are two scenarios to send out Notifications, if there are 5 or more users to be notified, it sends it out via a background job (NotificationDistrubutorJob).  If there are less than 5, it notifies the users right then.  In the background job, the delete works because there is no unit of work and I am assuming the context defaults to the Host and deletes it correctly.  When the notifications run in real time, there is a UnitOfWork and the TenantId is set to a value.  When it goes to delete the Notification, it hits the TenantDB and not the HostDB since the UOW is not set to null.  In all the other methods within that class, you are setting the TenantId to Null.  I assume this was just an over site.
So I think NotificationStore DeleteNotificationAsync should be like InsertNotificationAsync:
[UnitOfWork]
public virtual Task DeleteNotificationAsync(NotificationInfo notification)
{
    using (_unitOfWorkManager.Current.SetTenantId(null))
    {
        await _notificationRepository.Delete(notification);
        await _unitOfWorkManager.Current.SaveChangesAsync();
    }
}

Thoughts?

Hi,
NotificationInfo entity is marked as HOST side. https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Notifications/NotificationInfo.cs#L15
ABP automatically switches to host when you are working with host side entities. This is why it's not need to set host explicitly (Probably, some of other methods have unnecessary code, I should check it).
Do you have any problem with that? I mean "are notifications being sent correctly?".

Let me test it one more time.  Yes, originally we were having an issue with this but for a while there was a bug in the SetCurrentTenant that was not setting the tenant back correctly.  When that was happening, we had to override the method to set it to Null.  So I could be working against another issue that was fixed so this wasn't needed.
To be honest, I think there is an issue, but let me double check.  I have a scenario I can test all setup so I will get back with you today.

Ok, it seems to all be working they way you say it should.  I will mark this as closed and if I run into the issue will repost.  Thanks for the help.