Invalid JSON Primitive when installing

I run the script Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lextm/windowsterminal-shell/master/install.ps1'))
And I get the following error:

The Windows Terminal option does then appear in the context menu but an error message pops up when clicking it saying there is no app associated with it.

Please share your settings.json file, $env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

The error happened because you were running PowerShell 5.1, not 7.0 as documented.
Just added an extra version check in 5b928f687c2dd49a88020024954f4674e1310923, as the requires statement does not work in one line execution approach.


🐛 [firebase_auth] throw PlatformException(code: errorCode, message: errorMessage, details: errorDetails);

Hello, I have a weird problem, I have an existed user in my firebase auth. so when I register a new user the code in try and catch
the code for the user registration:
AuthResult res;
    try {
      res = await _instance.createUserWithEmailAndPassword(
          email: account.getEmail(), password: account.getPassword());
      (account as User).id = res.user.uid;

      await Firestore.instance
          .collection('Users')
          .document((account as User).id)
          .setData((account as User).toJson());

      await signIn(account);
    } catch (e) {
      signOut();
      rethrow;
    }

and in the UI, I also have try and catch for firebase exception class that I already made that contains the error codes for firebase auth and firestore.
try {
  User user = new User(
    email: _email,
    password: _password,
    name: _name);
  await user.register();
  Navigator.of(context).pop();
}
on PlatformException
catch (exception) {
  String msg = FirebaseException
    .generateReadableMessage(exception);
  MyBar.customFlushBar(
    context: context,
    message: msg,
    icon: Icons.warning_amber_rounded);
}
}

But the problem is that the error is not even catched and the system stopped at this line in debug:

I just want it to display the snackbar error instead of the system stop working,
I'm sorry for my English
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.804], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.53.2)
[√] Connected device (1 available)

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.10.5
Flutter SDK 1.22.6
my_notes 1.0.0+1

dependencies:
- avatar_glow 1.2.0 [flutter]
- cached_network_image 2.5.0 [flutter flutter_cache_manager octo_image]
- cloud_firestore 0.13.4 [flutter meta firebase_core cloud_firestore_platform_interface cloud_firestore_web]
- cupertino_icons 1.0.0
- firebase_auth 0.16.1 [meta firebase_core firebase_auth_platform_interface firebase_auth_web flutter]
- firebase_storage 3.0.3 [flutter firebase_core]
- flushbar 1.10.4 [flutter]
- flutter 0.0.0 [characters
collection meta typed_data vector_math sky_engine]
- flutter_svg 0.19.0 [path_drawing xml vector_math meta
flutter]
- font_awesome_flutter 8.11.0 [flutter]
- image_picker 0.6.7+22 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- intl 0.16.1 [path]
- molten_navigationbar_flutter 0.0.1 [flutter]
- multiavatar 0.1.2 [flutter crypto]
- provider 4.3.1 [flutter nested collection]

dev dependencies:
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- archive 2.0.13 [crypto args path]
- args 1.6.0
- async 2.5.0-nullsafety.1 [collection]
- boolean_selector 2.1.0-nullsafety.1 [source_span string_scanner]
- characters 1.1.0-nullsafety.3
- charcode 1.2.0-nullsafety.1
- clock 1.1.0-nullsafety.1
- cloud_firestore_platform_interface 1.1.2 [flutter meta collection firebase_core plugin_platform_interface]
- cloud_firestore_web 0.1.1+2 [flutter flutter_web_plugins firebase http_parser meta firebase_core cloud_firestore_platform_interface js]
- collection 1.15.0-nullsafety.3
- convert 2.1.1 [charcode typed_data]
- crypto 2.1.5 [collection convert typed_data]
- fake_async 1.2.0-nullsafety.1 [clock collection]
- ffi 0.1.3
- file 5.2.1 [intl meta path]
- firebase 7.3.3 [http http_parser js]
- firebase_auth_platform_interface 1.1.8 [flutter meta plugin_platform_interface]
- firebase_auth_web 0.1.3+1
[firebase_auth_platform_interface flutter flutter_web_plugins firebase http_parser meta js]
- firebase_core 0.4.5 [firebase_core_platform_interface
flutter meta firebase_core_web]
- firebase_core_platform_interface 1.0.4 [flutter meta plugin_platform_interface quiver]
- firebase_core_web 0.1.1+2
[firebase firebase_core_platform_interface flutter flutter_web_plugins meta js]
- flutter_blurhash 0.5.0 [flutter meta]
- flutter_cache_manager 2.1.1 [flutter path_provider uuid http path sqflite pedantic clock file rxdart image]
- flutter_plugin_android_lifecycle 1.0.11 [flutter]
- flutter_web_plugins 0.0.0
[flutter characters collection meta typed_data vector_math]
- http 0.12.2 [http_parser path pedantic]
- http_parser 3.1.4 [charcode collection source_span string_scanner typed_data]
- image 2.1.19 [archive xml
meta]
- image_picker_platform_interface 1.1.6 [flutter meta http plugin_platform_interface]
- js 0.6.2
- matcher 0.12.10-nullsafety.1 [stack_trace]
- meta 1.3.0-nullsafety.3
- nested 0.0.4 [flutter]
- octo_image 0.3.0 [flutter
flutter_blurhash]
- path 1.8.0-nullsafety.1
- path_drawing 0.4.1+1 [vector_math meta path_parsing flutter]
- path_parsing 0.1.4 [vector_math meta]
- path_provider 1.6.27 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 0.0.4+8 [flutter]
- path_provider_platform_interface 1.0.4 [flutter meta platform plugin_platform_interface]
- path_provider_windows 0.0.4+3 [path_provider_platform_interface meta path flutter
ffi win32]
- pedantic 1.9.2 [meta]
- petitparser 3.1.0 [meta]
- platform 2.2.1
- plugin_platform_interface
1.0.3 [meta]
- process 3.0.13 [file intl
meta path platform]
- quiver 2.1.5 [matcher meta]
- rxdart 0.25.0
- sky_engine 0.0.99
- source_span 1.8.0-nullsafety.2 [charcode collection path term_glyph]
- sqflite 1.3.2+3 [flutter sqflite_common path]
- sqflite_common 1.0.3+1 [synchronized path meta]
- stack_trace 1.10.0-nullsafety.1 [path]
- stream_channel 2.1.0-nullsafety.1 [async]
- string_scanner 1.1.0-nullsafety.1 [charcode source_span]
- synchronized 2.2.0+2
- term_glyph 1.2.0-nullsafety.1
- test_api 0.2.19-nullsafety.2 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0-nullsafety.3 [collection]
- uuid 2.2.2 [crypto convert]
- vector_math 2.1.0-nullsafety.3
- win32 1.7.4+1 [ffi]
- xdg_directories 0.1.2 [meta path process]
- xml 4.5.1 [collection convert meta petitparser]

Pubspec.yaml
Click To Expand
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  firebase_auth: 0.16.1
  cloud_firestore: 0.13.4
  provider: 4.3.1
  intl: ^0.16.1
  flutter_svg: 0.19.0
  molten_navigationbar_flutter: ^0.0.1
  font_awesome_flutter: ^8.11.0
  avatar_glow: ^1.2.0
  cached_network_image: ^2.5.0
  image_picker: ^0.6.7+22
  firebase_storage: 3.0.3
  multiavatar: ^0.1.2
  flushbar: ^1.10.4
  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  assets:
    - assets/

Hi @SirMajed
What exactly is the problem here? Could you provide expected vs actual behavior?
For example, this works when trying to register an existing email:
  // Example code for registration.
  void _register() async {
    try {
      final User user = (await _auth.createUserWithEmailAndPassword(
        email: _emailController.text,
        password: _passwordController.text,
      ))
          .user;
      if (user != null) {
        setState(() {
          _success = true;
          _userEmail = user.email;
        });
      } else {
        _success = false;
      }
    } catch (e) {
      print(e.runtimeType);
      print("caught $e");
    }
  }

I/flutter ( 7702): FirebaseAuthException
I/flutter ( 7702): caught [firebase_auth/email-already-in-use] The email address is already in use by another account.

Thank you

Hi @SirMajed
What exactly is the problem here? Could you provide expected vs actual behavior?
For example, this works when trying to register an existing email:
  // Example code for registration.
  void _register() async {
    try {
      final User user = (await _auth.createUserWithEmailAndPassword(
        email: _emailController.text,
        password: _passwordController.text,
      ))
          .user;
      if (user != null) {
        setState(() {
          _success = true;
          _userEmail = user.email;
        });
      } else {
        _success = false;
      }
    } catch (e) {
      print(e.runtimeType);
      print("caught $e");
    }
  }

I/flutter ( 7702): FirebaseAuthException
I/flutter ( 7702): caught [firebase_auth/email-already-in-use] The email address is already in use by another account.

Thank you

Thank you for your answer, It not supposed to freeze the IDE, it supposed to gives an error and continue. because when the user trying to delete his account, he must provide his password to reauthenticate, so if I provide a wrong password it should give a snackbar with error but instead  the vscode IDE freezes

Here also didnt worked for me when user trying to delete his account, the vscode freezes and gives platform exception
Code for UI
try {
  await Authentication.deleteAccount(
    email: user.getEmail(),
    password: _password,
    userID: user.getID(),
  );
  MyBar.customFlushBar(
    context: context,
    message: 'Account deleted!',
    icon: Icons.check);
  Navigator.pop(context);
}
on PlatformException
catch (ex) {
  String msg = FirebaseException
    .generateReadableMessage(ex);
  MyBar.customFlushBar(
    context: context,
    message: msg,
    icon: Icons.check);
}

Delete account method
static Future deleteAccount(
      {String userID, String password, String email}) async {
    print(email);
    try {
      FirebaseUser user = await _instance.currentUser();
      AuthCredential credentials =
          EmailAuthProvider.getCredential(email: email, password: password);
      print(user);
      AuthResult result = await user.reauthenticateWithCredential(credentials);
      await Database.deleteUserDocuments(userID); // called from database class
      await result.user.delete();
      return true;
    } on FirebaseException catch (e) {
      print(e.toString());
      return Future.error(e);
    }
  }

Well suddenly it was from the debugging mode, I was able to solve it by unchecking the 'Uncaught Exceptions' checkbox.  it runs fine and the FirebaseException was caught. The problem is coming from VsCode debugger


Fix DialogResult

The DialogOpenResult and DialogCloseResult have their properties switched. OpenResult should return multiple file paths whereas CloseResult should only have one. Additionally, there is a typo where DialogResult has a property called cancelled with two ls instead of one.

Good catch. The official BD docs also mistakenly use the British spelling "cancelled" while the actual implementation uses the American spelling "canceled". That should be corrected.


快速搭建个人博客 - Loong的博客 | Loong Blog

https://ylcheng2022.github.io/2017/02/06/快速搭建个人博客/?
Every failure is leading towards success.

写的不错呢


False positive in "await-promise" rule for subtype of Promise (angular.IPromise)

Bug Report

TSLint version: 5.8.0
TypeScript version: 2.4.2
Running TSLint via: CLI

TypeScript code being linted
class YPromise<T> extends Promise<T> {}
async function name() {
    await new YPromise(() => {})
}

with tslint.json configuration:
{
  "rules": {
    "await-promise": { "severity": "warning" }
  }
}

Actual behavior
Invalid 'await' of a non-Promise value.
Expected behavior
Nothing.
Seniaro
This happened in my angular app. After I making angular.IPromise a Promise subtype, tslint still warning about this.
declare module 'angular' {
    interface IPromise<T> extends Promise<T> {}
}

Workaround
"await-promise": { "severity": "warning", "options": ["IPromise"] }

Duplicate of #3381, fixed by #3383, but not released yet


show host name in pdisk's tooltip

it's better to keep host name closer to path, probably right above will be the best choice


detailed reference

I want to cite your article, May I ask what is the detailed reference?

Thanks for your interest. Our paper is still under review and you may first cite it as

G. Huang, A. Jafari. "Improved balancing gan: Minority-class image generation." Accessed Oct 5, 2020. https://github.com/GH920/improved-bagan-gp/blob/master/article.pdf

If we have any updates, I will reply here for your information.

Thank you for your kindness！

Hi @daiwei9501 , here is our first arxiv version of the paper. Please view the link https://arxiv.org/abs/2011.00189.
For the updated reference,

G. Huang, A. Jafari. "Improved balancing gan: Minority-class image generation." [Online]. Available: arXiv:2011.00189

OK ！ Thank you again for your kindness！

Sure, with pleasure!

Hi, this is the published reference. I'll close this issue. Feel free to reopen it if you have any questions.

Huang, G., Jafari, A.H. Enhanced balancing GAN: minority-class image generation. Neural Comput & Applic (2021). https://doi.org/10.1007/s00521-021-06163-8


Support being a generic service wrapper

Similar to how http://stackoverflow.com/questions/10061191/how-to-add-nginx-exe-as-system-service-like-apache is being used.

Existing projects do this, not something I think we're going to tackle.


Restructuring of files tab

The paramsfile section is pretty much identical between tools and workflows and should be rewritten to be shared.
This may be true for other sections of the files tab, but I haven't looked.

Likely redundant with refactoring due to syntax highlighting.


Multi-collateral support for Rewards Distributor

update rewards distributor to work with many collateral types in same pool
cancelled amount support

would also work with pool level distribution

closing because this branch was merged into #2165


error due connecting from centos to Win10

can't connect to win10Pro from CentOS 8
xfreerdp /size:1980x1024 /u:... /p:... +clipboard /f /bpp:32 /v:<IP_ADDRESS> /log-level:trace
[21:36:19:203] [8457:8458] [DEBUG][com.freerdp.channels.cliprdr.client] - VirtualChannelEntryEx
[21:36:19:203] [8457:8458] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[21:36:19:204] [8457:8458] [DEBUG][com.freerdp.client.x11] - Searching for XInput pointer device
[21:36:19:204] [8457:8458] [DEBUG][com.freerdp.client.x11] - Pointer device: 6
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling security layer negotiation: TRUE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling restricted admin mode: FALSE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling RDP security: TRUE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling TLS security: TRUE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling NLA security: TRUE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Enabling NLA extended security: FALSE
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - state: NEGO_STATE_NLA
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core.nego] - Attempting NLA security
[21:36:19:206] [8457:8458] [DEBUG][com.freerdp.core] - connecting to peer <IP_ADDRESS>
[21:36:34:222] [8457:8458] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_CONNECT_FAILED [0x00020006]
[21:36:34:222] [8457:8458] [ERROR][com.freerdp.core] - failed to connect to <IP_ADDRESS>
This is FreeRDP version 2.0.0-rc4 (n/a)
xfreerdp /buildconfig
This is FreeRDP version 2.0.0-rc4 (n/a)
Build configuration: BUILD_TESTING=OFF BUILTIN_CHANNELS=OFF HAVE_AIO_H=1 HAVE_EXECINFO_H=1 HAVE_FCNTL_H=1 HAVE_INTTYPES_H=1 HAVE_JOURNALD_H=TRUE HAVE_MATH_C99_LONG_DOUBLE=1 HAVE_POLL_H=1 HAVE_PTHREAD_MUTEX_TIMEDLOCK=ON HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 HAVE_PTHREAD_MUTEX_TIMEDLOCK_SYMBOL= HAVE_SYSLOG_H=1 HAVE_SYS_EVENTFD_H=1 HAVE_SYS_FILIO_H= HAVE_SYS_MODEM_H= HAVE_SYS_SELECT_H=1 HAVE_SYS_SOCKIO_H= HAVE_SYS_STRTIO_H= HAVE_SYS_TIMERFD_H=1 HAVE_TM_GMTOFF=1 HAVE_UNISTD_H=1 HAVE_XI_TOUCH_CLASS=1 WITH_ALSA=ON WITH_CCACHE=ON WITH_CHANNELS=ON WITH_CLIENT=ON WITH_CLIENT_AVAILABLE=1 WITH_CLIENT_CHANNELS=ON WITH_CLIENT_CHANNELS_AVAILABLE=1 WITH_CLIENT_COMMON=ON WITH_CLIENT_INTERFACE=OFF WITH_CUPS=ON WITH_DEBUG_ALL=OFF WITH_DEBUG_CAPABILITIES=OFF WITH_DEBUG_CERTIFICATE=OFF WITH_DEBUG_CHANNELS=OFF WITH_DEBUG_CLIPRDR=OFF WITH_DEBUG_DVC=OFF WITH_DEBUG_KBD=OFF WITH_DEBUG_LICENSE=OFF WITH_DEBUG_MUTEX=OFF WITH_DEBUG_NEGO=OFF WITH_DEBUG_NLA=OFF WITH_DEBUG_NTLM=OFF WITH_DEBUG_RAIL=OFF WITH_DEBUG_RDP=OFF WITH_DEBUG_RDPDR=OFF WITH_DEBUG_RDPEI=OFF WITH_DEBUG_REDIR=OFF WITH_DEBUG_RFX=OFF WITH_DEBUG_RINGBUFFER=OFF WITH_DEBUG_SCARD=OFF WITH_DEBUG_SND=OFF WITH_DEBUG_SVC=OFF WITH_DEBUG_SYMBOLS=OFF WITH_DEBUG_THREADS=OFF WITH_DEBUG_TIMEZONE=OFF WITH_DEBUG_TRANSPORT=OFF WITH_DEBUG_TSG=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_WND=OFF WITH_DEBUG_X11=OFF WITH_DEBUG_X11_CLIPRDR=OFF WITH_DEBUG_X11_LOCAL_MOVESIZE=OFF WITH_DEBUG_XV=OFF WITH_DIRECTFB=OFF WITH_DSP_EXPERIMENTAL=OFF WITH_EVENTFD_READ_WRITE=1 WITH_FAAC=OFF WITH_FAAD2=OFF WITH_FFMPEG=OFF WITH_GFX_H264=OFF WITH_GPROF=OFF WITH_GSM=ON WITH_GSSAPI=OFF WITH_GSTREAMER_0_10=OFF WITH_GSTREAMER_1_0=ON WITH_ICU=OFF WITH_IPP=OFF WITH_JPEG=ON WITH_LAME=OFF WITH_LIBRARY_VERSIONING=ON WITH_LIBSYSTEMD=ON WITH_MACAUDIO=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO_AVAILABLE=0 WITH_MANPAGES=ON WITH_MBEDTLS=OFF WITH_OPENH264=OFF WITH_OPENSLES=OFF WITH_OPENSSL=ON WITH_OSS=ON WITH_PCSC=ON WITH_PROFILER=OFF WITH_PULSE=ON WITH_SAMPLE=OFF WITH_SANITIZE_ADDRESS=OFF WITH_SANITIZE_ADDRESS_AVAILABLE=1 WITH_SANITIZE_MEMORY=OFF WITH_SANITIZE_MEMORY_AVAILABLE=1 WITH_SANITIZE_THREAD=OFF WITH_SANITIZE_THREAD_AVAILABLE=1 WITH_SERVER=OFF WITH_SERVER_INTERFACE=OFF WITH_SHADOW_MAC=OFF WITH_SHADOW_X11=OFF WITH_SMARTCARD_INSPECT=OFF WITH_SOXR=OFF WITH_SSE2=ON WITH_THIRD_PARTY=OFF WITH_VALGRIND_MEMCHECK=OFF WITH_VALGRIND_MEMCHECK_AVAILABLE=1 WITH_WAYLAND=ON WITH_X11=ON WITH_X264=OFF WITH_XCURSOR=ON WITH_XEXT=ON WITH_XFIXES=ON WITH_XI=ON WITH_XINERAMA=ON WITH_XKBFILE=ON WITH_XRANDR=ON WITH_XRENDER=ON WITH_XSHM=ON WITH_XTEST=OFF WITH_XV=ON WITH_ZLIB=ON
Build type:          Release
CFLAGS:              -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -DWINPR_DLL
Compiler:            GNU, 8.2.1
Target architecture: x64
amd64

I´d check your firewall and see if the server and port are actually reachable from your end. this specific error occurs mostly due to dns lookup issues (which you don´t have due to using an IP) or tcp connect issues (not reachable destination)

I´d check your firewall and see if the server and port are actually reachable from your end. this specific error occurs mostly due to dns lookup issues (which you don´t have due to using an IP) or tcp connect issues (not reachable destination)

the wireshark detects incoming packets to 3389 port

@coal1231525 and outgoing? If I´m not mistaken the thing you captured are TCP retransmissions which means the reply was not received...

@coal1231525 and outgoing? If I´m not mistaken the thing you captured are TCP retransmissions which means the reply was not received...

fw settings on client (centos) is:
iptables -A FORWARD -d <IP_ADDRESS> -p tcp --dport 3389 -j ACCEPT

@coal1231525 ok, no, you need that on the server side...


Adding a local setting file not syncd

I'm using vscode with sync of settings active, but i use different platform, and on each i have differente path and some parameters in one that doesn't work on the other, is there a way to have a global setting fos vscode that are not synced with the others?

This?

yes i think that will do it, sorry i'm using the file more often then the UI i didn't see that!


spdy protocol doesn't handle HTTP/1.X requests

Steps to reproduce
Start a spdy server
Dispatch = cowboy_router:compile([
	{'_', [
		{"/", toppage_handler, []}
	]}
]),
PrivDir = code:priv_dir(spdy_test),
{ok, _} = cowboy:start_spdy(spdy, 100, [
	{port, 4433},
	{cacertfile, PrivDir ++ "/ssl/cowboy-ca.crt"},
	{certfile, PrivDir ++ "/ssl/server.crt"},
	{keyfile, PrivDir ++ "/ssl/server.key"}
], [{env, [{dispatch, Dispatch}]}]).

use curl to connect to the server
$ curl https://localhost:4433 -v
* Adding handle: conn: 0x7ff1a3003a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ff1a3003a00) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 4433 (#0)
*   Trying ::1...
*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 4433 (#0)

** ssl info snip **

> GET /api HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:4433
> Accept: */*
>

The request hangs at this point. I've identified the problem to be in the cowboy_spdy:parse_frame/2 function. I've played around with it a bit and got it working but for something more serious it would require a refactor of cowboy_protocol, as it hijacks the request in parse_request/3 and in this case the request may or may not be a HTTP/1.X request.
If this isn't fixed, the advertised http/1.x protocols should probably be removed:
$ openssl s_client -connect localhost:4433 -nextprotoneg ''
CONNECTED(00000003)
Protocols advertised by server: spdy/3, http/1.1, http/1.0

I'll close this because it has a PR for it. Cheers!


New version: charmbracelet.markscribe 0.7.2

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Automated with GoReleaser
Microsoft Reviewers: Open in CodeFlow

/azp run

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\markscribe.exe returned exit code: 1
Installation failed with exit code -1978335187
2024-07-09 16:40:09.953 [FAIL] Installer failed security check. Url: https://github.com/charmbracelet/markscribe/releases/download/v0.7.2/markscribe_0.7.2_Windows_i386.zip Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
(Automated response - build 886.)

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\markscribe.exe returned exit code: 1
Installation failed with exit code -1978335187
2024-07-09 16:40:09.953 [FAIL] Installer failed security check. Url: https://github.com/charmbracelet/markscribe/releases/download/v0.7.2/markscribe_0.7.2_Windows_i386.zip Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
(Automated response - build 886.)

/azp run

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\markscribe.exe returned exit code: 1
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\markscribe.exe returned exit code: 1

(Automated response - build 886.)

Manual Validation ended with:

2024-07-11 09:32:53.505 [FAIL] Installer failed security check. Url: https://github.com/charmbracelet/markscribe/releases/download/v0.7.2/markscribe_0.7.2_Windows_x86_64.zip Result: 0x80004005

(Automated response - build 886.)

Verify:

I coudln't find how to have the application display the version number.


General question about robotframework

Hello,
I have been looking for a way to automate an Android App that we use.  Will this framework allow us to do that?  We do not want to add any code to the app, we would like to simply have a method of launching the app if need be and then login in with supplied credentials and navigate the app based on some passed in parameters.  If this will not allow that does anyone know of another open source method to accomplish our automation?

It makes sense to ask such questions on various Robot's forums: https://github.com/robotframework/robotframework#support-and-contact
Probably, Slack is the best one.

Yeah, questions should be asked on aforementioned forums. This tracker is for bug reports and enhancement requests.


Sparse vectors: 1 representation, 2 use cases

In my opinion, sparse vectors can solve two different problems:

Text search (TFIDF, BM25, SPLADE, etc.)
Weighted-keywords search

In both cases, we can have a sparse vector representation:

Text: {'What': 0.10430284, 'is': 0.10090457, 'BM': 0.2635918, '25': 0.3382988, '?': 0.052101523}
Weighted-keywords: {"Dog": 0.4, "Cat": 0.3, "Giant panda": 0.1, "Komodo dragon": 0.05}

However, the use cases are different:
Text Search
For text search, sparse vectors like BM25 are a good representation. For example, if I look for the query:
BM25 vs SPLADE
This will be the tokens:
["BM", "25", "vs", "SPLADE"]
It is acceptable to return documents that contain a subset of these tokens, such as:
{'What': 0.10430284, 'is': 0.10090457, 'BM': 0.2635918, '25': 0.3382988, '?': 0.052101523}
Weighted-Keywords Search
Now imagine that I have a collection of documents (images or texts), each annotated with animal keywords and their corresponding probabilities:

DOC A: {"Dog": 0.43}
DOC B: {"Cat": 0.21}
DOC C: {"Dog": 0.65, "Cat": 0.11}
DOC D: {"Giant panda": 0.1}
DOC E: {"Dog": 0.33, "Cat": 0.66}

If I perform a query with the keyword ["Dog"], I want the following results (sorted by inner product distance):

DOC C: {"Dog": 0.65, "Cat": 0.11}
DOC A: {"Dog": 0.43}
DOC E: {"Dog": 0.33, "Cat": 0.66}

However, if I query with the keywords ["Dog", "Cat"], it is not acceptable to return documents with only a subset of these keywords because I want documents containing all the keywords (similar to the PostgreSQL @> operator). The sorting/ranking should then be done by inner product distance:

DOC C: {"Dog": 0.65, "Cat": 0.11}
DOC E: {"Dog": 0.33, "Cat": 0.66}

Final Notes
The plain keywords search in PostgreSQL can be achieved with the following syntax and operators:
WHERE query_keywords && ARRAY['keyword1', 'keyword2', 'keyword3'];  ---- OR between keywords
WHERE query_keywords @> ARRAY['keyword1', 'keyword2', 'keyword3'];  ---- AND between keywords

This type of data can also be accelerated with an Inverted Index in PostgreSQL: GIN.
My final question is whether we can achieve this Weighted-keywords search in pgvector; perhaps with new operators like && and @>.
Some other vector databases, like Milvus, already include Inverted Indexes for dealing with sparse vectors:

Source

Thanks for your suggestion! We're aware of the sparse index here and have some prototype at https://github.com/tensorchord/pgvecto.rs/pull/552. For the weighted keyword search, we have tried https://github.com/tensorchord/pg_bestmatch.rs. Does it work for you? We're also thinking of a better way to directly build text index for bm25 search

Thanks for aswering, i will take a look at pg_bestmatch.rs.
I think that part of storing sparse vectors are solved. However i think, the query part must be rethinked.
I honestly think that the native to_tsquery API (link1 link2) is great and can be replicated for sparse vectors (maybe to_svector_query). The to_tsquery API offers great flexibiliy (boolean operators):

SELECT to_tsquery('english', 'The & Fat & Rats');
SELECT to_tsquery('english', 'Fat | Rats');
SELECT to_tsquery('simple', 'Fat | Rats');

I think this type of API is great and can solve the previous animal keywors example, and also instead od 'english' we can add custom sparse encoders (TFIDF, BM25, SPLADE, CUSTOM)

SELECT to_svector_query('bm25', 'We begin, as always, with the text.');
SELECT to_svector_query('simple', 'Dog & Cat);
SELECT to_svector_query('simple', 'Dog | Cat');

And for compute the distances, instead of the tsvector @@ operator, we colud use the existing sparse vector operators like neg inner prod <#>
SELECT text
FROM documents
ORDER BY sparse_keywords <#> to_svector_query('simple', 'Dog & Cat)
LIMIT 50;

An implementation of bm25 would be huge for my application. What tasks remain to be done?

@jbohnslav We don't have an ETA for this. The main reason is that the algorithm is too new and we're not sure what's it's actual behavior with different data like BM25 and how to setup the config param. For bm25, have you tried paradedb? They claim to have full support of bm25


Docs: remove an outdated TypeScript-related note

Maybe this was changed at some point in TypeScript.

Do you have a reference to where this was fixed?

Nope, I couldn't find anything. I just didn't get the error. You will get the error if you create a .ts file with no imports and no exports. But as soon as the file has at least one import (but no exports) it's gone. So I'm guessing this is something that behaved differently at some point.

Thanks!


Tag braces style

Is there any way to enforce tag < /> linebreak style?
E.g. transform this

into this

Ideally only for tags with multiple lines/arguments

The feature is tracked in here: https://github.com/sveltejs/eslint-plugin-svelte/issues/590

svelte/html-closing-bracket-new-line can solve this issue.


Improve YellowBox output format

YellowBox currently assumes the first arg is a printf like format string, this adds support for any arguments so it works more like console in the browser. This also adds stringifySafe to format arguments when using printf style.
The main annoyance that this fixes is when trying to log a single object it will currently print [object Object] instead of the fully stringified version.
Test plan
Tested a bunch of different log combinations.
console.warn({test: 'a'}); // {"test":"a"} (was [object Object] before this patch)
console.warn('test %s %s', 1, {}); // test 1 {}
console.warn('test %s', 1, {}); // test 1 {}
console.warn({}, {}, {}, {}); // {} {} {} {}

This is great. Thanks (and sorry for the slow turnaround)!


Add send/recv and RFC 1918 handling to in/out macro.

What type of PR is this?

/kind cleanup

/kind rule-update

Any specific area of the project related to this PR?

/area rules

What this PR does / why we need it:
Updates the combined inbound/outbound rule to reflect changes that were made to the separate inbound or outbound rules from 6ce17d6fcbd5638a83670b45aa86a474964e984b and #470
Which issue(s) this PR fixes:
Fixes #820

Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Yes.

combined inbound_outbound now behaves like separate in/out macros

Welcome @shane-lawrence! It looks like this is your first PR to falcosecurity/falco 🎉

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: mstemm
If they are not already assigned, you can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/assign @Kaizhe

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: kaizhe
If they are not already assigned, you can assign the PR to them by writing /assign @kaizhe in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Thanks, I corrected my syntax error but some tests are failing now. The change has suppressed some alerts from network rules. This might be expected if test events used private IP ranges to trigger rules that rely on inbound_outbound.

I overlooked that traffic with fd.snet in (rfc_1918_addresses) should still trigger the inbound portion. I'll fix it!

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

e8790e3 Try filtering private address from remote IP instead of server IP.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I was hoping it would work if the remote IP was filtered instead of server IP, but it didn't. I can't run the regression tests locally (looks like the same symptoms as https://github.com/falcosecurity/falco/issues/798) so I pushed a commit with the changes to let CI run. I'll edit this to have the same logic as inbound or outbound and make sure the tests pass, and then look at making it more efficient.

@Kaizhe the tests are still failing. I think inbound_outbound should be equivalent to inbound or outbound, but modified to improve efficiency. Could you please confirm that I haven't misunderstood that before I troubleshoot?

I think this might related to our test, we may just test outbound with rfc 1918 addresses. Will confirm that.

need @mstemm 's input here, the inbound_outbound test we ran, we test as an internal env right? Not real outbound I mean

What's the state of this @shane-lawrence @Kaizhe ?
Needs a review or are we waiting on some other work to unblock this?

I think this might related to the tests.

I wasn't able to run the tests in my environment due to an unrelated issue, so instead of sending blind changes to Travis CI to see what happens, I was waiting for @Kaizhe or @mstemm to confirm the expected behaviour of the tests. I'll give it another try this week.

Ok thanks @shane-lawrence - I’m not very familiar with that part either but if this goes far I’ll happily dig with you into this.


drawio: build from source

Description of changes
This allows using drawio on other architectures, and on Darwin. The implementation is adapted from the podman-desktop package.
I only use this package through the CLI, so it would be really useful if somebody could check that all the graphical stuff is working as expected.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
23.05 Release Notes (or backporting 22.11 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

[x] Fits CONTRIBUTING.md.

Not sure why the Darwin build is failing.  I've just marked it broken for now, since it didn't work before anyway.


Router to allow force pushState.

Currently when only params change replaceState is called. This updates the the router to allow force pushState or replaceState.
router.params({x: 'y'}, {push: true});  // Use pushState
router.params({x: 'y'}, {push: false}); // Use replaceState
router.params({x: 'y'});                // Use replaceState

Note: We will need to update Centro Direct code to provide the replace option.
As we are changing the API for the second parameter, to maintain the existing functionality, a merge option is introduced for replacing all the params...
router.params({x: 'y'}, {merge: true});  // Add `x` to params
router.params({x: 'y'}, {merge: false}); // Replace all params with just `x`
router.params({x: 'y'});                 // Add `x` to current params

@stallings @burrows Ping

@peterwmwong Looks good! After thinking about it some more though I think we should attempt to maintain backwards compatibility. It should be pretty easy to update `Router#params

@burrows We might want to hold off on this.  While trying to integrate this, I notice it's easy to get into a back-button loop situation.

params({... #1 ...}, {push:true});
params({... #2 ...}, {push:true});

a. state enter function for #1 runs and has no idea it's a back button and calls params({... #1 ...}, {push:true});
4.
a. Same thing 3a.
NEVA GONA LEAVE #1...
Can't quite figure out how to break this from occurring without exposing to state enter/exit functions navigation details (isBackButtonNavigation)...


Update NearFutureElectrical for 1.1, primary moved to SpaceDock

Not sure why the build failed. JSONLint says the syntax is valid...

Same issue with B9PartSwitch now as in #3717 ...

Passes local, holding off on merging until https://github.com/KSP-CKAN/NetKAN/pull/3718 is resolved.

Merging this with my thanks.


[VIDXP-2326] Update regex for Alibaba AccessKey ID detection

The regular expression for detecting the Alibaba AccessKey ID has been updated. The previous version was capturing some false positives. The new regular expression provides a more accurate detection.
See more:

https://github.com/aquasecurity/trivy/pull/3083
https://github.com/motain/clips/actions/runs/5936287076/job/16096395009?pr=170

@caiotava can you update you gitleaks workflow? I think this is before the one setup by cloud-runtime: https://github.com/motain/backstage/blob/f0371b5c355c561378d52cdf7ff8dfdc3cb31d17/.github/workflows/of-gitleaks.yaml


Disable other keymaps ('Sublime Text Keymap and Settings Importer') to avoid conflicts between keybindings?

I get this message sporadically on opening up projects.  The thing is though I have no idea what keymaps conflict, so I have to hit "No" and then it happens again periodically.

Is there any way to suppress this?

The problem is that Keymaps are recognised by having 'Keymaps' in their category, but some extensions which are not really Keymaps have the Keymaps category set, per @chrmarti on https://github.com/Microsoft/vscode/issues/24727#issuecomment-297867450, e.g., https://github.com/HosseinAgha/vscode-open-react-component-style/issues/1

@pzelnip This should only show once when you install/enable a keymap. If you see this repeat without you installing/enabling a keymap, please open an issue for VS Code.

Filed https://github.com/Microsoft/vscode/issues/55272


.PHONY clobbering breaks file dependency management

We apply a .PHONY: * rule here.  The scope of the .PHONY target seems to be global, so by doing this the user can't use file-based dependency logic in the top-level Makefile.  That's problematic, because it makes it less likely that the user will want to use make for local work, and we want the CI pipeline to be as close as possible to the local experience.

As an example, I'm working on a django application.  I want make test-unit to be able to install the test dependencies if they're missing, so I get a oneliner that works the same in the github action as it does locally.  But I don't want to execute pip install -r... every time I run the tests locally, because that's just noise.  So I touch .venv/deps-installed and add it as a prerequisite of the dependency install task.  But that's a real file, and I'm depending on make paying attention to the mtime. With .PHONY: * the framework is saying that I can't do that.


replace words in "replace/contrib"

The replaced words are as follows.
Words:
bitcoin -> xpchain
Bitcoin -> XPChain
BITCOIN -> XPCHAIN
Websites:
bitcoin.org -> xpchain.io
bitcoincore.org -> xpchaincore.org
Repositories:
bitcoin/bitcoin -> xpchain/xpchain

LGTM.
Since it is necessary to investigate the domain, temporarily block merging.


I just ran npm update/install, a new bootstrap 4 was pulled in and now my navbar has disappeared

From Firefox I inspected the element and it says:
.collapse {
    display: none;
}

It makes no difference what resolution I set my window to
I can roll back obviously, but a bit inconvenient
Edit: Just went back to alpha6, everything is fine again

There are breaking changes from v3 to v4, and between every alpha release, and between the last alpha and our current beta. You'll need to migrate your code, or change your npm range to prevent unwanted upgrades from happening.


Query about addV1System

we use config.addV1System() to configure community string to engine
like
config.addV1System(snmpEngine, COMMUNITYSTRING, COMMUNITYSTRING)
My query is whether it possible to specify ip address of the device for which I am adding this community
Here is the example
configure "community1" for the trap source <IP_ADDRESS> and "community2" for the trap source <IP_ADDRESS>
so that traps will be processed/dropped accordingly based on trap source
for V3, we have remote engineid which can help to solve this source identification part

Has anyone come across this scenario, at engine(receiver) side, how can we manage 2 different trap sources using 2 different community string, any suggestions?, thanks

@etingof  , Would you be able to help, thanks a lot


unknow syntax error

Empire Version
Empire 2.0
OS Information (Linux flavor, Python version)
Kali Linux 2017.1  and Python 2.7.13
Unable to set any listener due to ***Unknown syntax error.
Screenshot of error, embedded text output, or Pastebin link to the error

2.0 has new syntax. check it out here http://www.harmj0y.net/blog/empire/the-empire-strikes-back/


OverflowMenuItem: Invalid roles

When using OverflowMenuItem, we're seeing the following violations in DAP:

Making the following changes to the resulting HTML fixes the violations:

You also can see this issue on the Carbon storybook here:  http://react.carbondesignsystem.com/?knob-The title (title)=Section 1 title&knob-Menu direction (Only with `floatingMenu`) (direction)=bottom&knob-ARIA label (ariaLabel)=&knob-Icon description (iconDescription)=&selectedKind=OverflowMenu&selectedStory=basic&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel


Make DNS batch get zone/changerequest return null for NOT_FOUND

This fixes #949: DnsBatch.getZone and DnsBatch.getChangeRequest now return null for NOT_FOUND. This PR also adds more tests.

Coverage decreased (-0.001%) to 85.736% when pulling a5e83e501286d59d0fcff18dee7012d7860b0421 on mziccard:fix-dns-batch into 0a6c6f703802e0c336a4158f17f178b94e74acf0 on GoogleCloudPlatform:master.

Coverage decreased (-0.006%) to 85.731% when pulling dfbfeeb5775d01dc754fa90d3383959e677c64e3 on mziccard:fix-dns-batch into 0a6c6f703802e0c336a4158f17f178b94e74acf0 on GoogleCloudPlatform:master.

LGTM

Coverage decreased (-0.001%) to 85.736% when pulling 7d9f33d733fdddbe89e6eca55f335c7cb00c002b on mziccard:fix-dns-batch into 0a6c6f703802e0c336a4158f17f178b94e74acf0 on GoogleCloudPlatform:master.


Appears to be connecting to incorrect host

Hi there,
Recently this action has stopped working for me with a Remote Host Identification warning. The fingerprint doesn't seem to have changed, and the error message reports a different fingerprint to the host that also seems to be the new GitHub fingerprint:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in /home/***/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/***/.ssh/known_hosts:1
RSA host key for github.com has changed and you have requested strict checking.
Host key verification failed.

Googling uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s. matches the fingerprint in quoted errors from when Github changed their RSA SSH host key earlier this year.

Hi Matt, thanks for reporting this. I will look into it

Hi there, I've realised this was my fault! The ssh warning was being thrown by the destination server not by the github environment. Now that I've updated the fingerprint on the destination server everything is working fine .


Our app is stuck when Payconiq makes the user re-login

The wallet keeps spinning until the server sends a confirmation that the transactions is completed or canceled.
If the Payconiq app isn't used for a while, then Payconiq makes the user login again, but then the transaction isn't shown in Payconiq. When going back to our app, the user sees a never ending spinner and can't do anything but killing the app.

FIY fixing this will require every app to be rebuild

You should now be able to dismiss the loading spinner


CONTRIBUTORS: Add Magnus Back (magnusbaeck) as maintainer.

Adding myself as maintainer as suggested by Alvin. @logstash-plugins/logstash-core, please review.

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then  say 'jenkins, test it'.

LGTM


⚠ Bofrost.at has degraded performance

In e5912fb, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1566 ms

Resolved: Bofrost.at performance has improved in 2b53cdb after 6 minutes.


14 artifact removal

Added complete preprocessing (Faster implementation possible with sklearn.decomposition.FastICA , however we would lose the ability to use MNE to conveniently plot stuff).
Conducted exploratory analysis - just in case its needed for presentations

Great work!!! Thank you for improving the filtering!! ☺🥳


[SPARK-32100][CORE][TESTS][FOLLOWUP] Reduce the required test resources

What changes were proposed in this pull request?
This PR aims to reduce the required test resources in WorkerDecommissionExtendedSuite.
Why are the changes needed?
When Jenkins farms is crowded, the following failure happens currently here
java.util.concurrent.TimeoutException: Can't find 20 executors before 60000 milliseconds elapsed
	at org.apache.spark.TestUtils$.waitUntilExecutorsUp(TestUtils.scala:326)
	at org.apache.spark.scheduler.WorkerDecommissionExtendedSuite.$anonfun$new$2(WorkerDecommissionExtendedSuite.scala:45)

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the Jenkins.

Test build #124962 has started for PR 29001 at commit 8b29c74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29568/
Test PASSed.

Test build #124962 has finished for PR 29001 at commit 8b29c74.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124962/
Test FAILed.

Retest this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29571/
Test PASSed.

Test build #124965 has started for PR 29001 at commit 8b29c74.

Test build #124965 has finished for PR 29001 at commit 8b29c74.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124965/
Test FAILed.

Retest this please.

Test build #124976 has started for PR 29001 at commit 8b29c74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29582/
Test PASSed.

Test build #124976 has finished for PR 29001 at commit 8b29c74.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124976/
Test FAILed.

Retest this please

Retest this please.

Test build #124980 has started for PR 29001 at commit 8b29c74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29586/
Test PASSed.

Test build #124980 has finished for PR 29001 at commit 8b29c74.

This patch fails to generate documentation.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124980/
Test FAILed.

retest this please

Test build #124996 has started for PR 29001 at commit 8b29c74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29603/
Test PASSed.

Test build #124996 has finished for PR 29001 at commit 8b29c74.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124996/
Test FAILed.

Thank you, @HyukjinKwon !

Retest this please.

Test build #124998 has started for PR 29001 at commit 8b29c74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29605/
Test PASSed.

Test build #124998 has finished for PR 29001 at commit 8b29c74.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124998/
Test FAILed.

LGTM, thanks for working around the crowded Jenkins env :) I think we can explore if we want to reduce it further in a follow on, but I think removing causes of test flakiness sooner rather than later is better for everyone working on Spark.

Thank you, @holdenk and @Ngone51 . I'll reduce it to 5 in the community.

+1, LGTM

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29618/
Test PASSed.

Test build #125010 has started for PR 29001 at commit 3790334.

This is a test-only PR and I verified this manually.
$ build/sbt "core/testOnly *.WorkerDecommissionExtendedSuite"
...
[info] WorkerDecommissionExtendedSuite:
[info] - Worker decommission and executor idle timeout (14 seconds, 679 milliseconds)
[info] - Decommission 4 executors from 5 executors in total (21 seconds, 740 milliseconds)
[info] ScalaTest
[info] Run completed in 38 seconds, 271 milliseconds.
[info] Total number of tests run: 2
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.

Merged to master.

Test build #125010 has finished for PR 29001 at commit 3790334.

This patch fails to generate documentation.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/125010/
Test FAILed.


jalv: 1.6.2 -> 1.6.4

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/jalv/versions.
meta.description for jalv is: '"A simple but fully featured LV2 host for Jack"'.
meta.homepage for jalv is: '"http://drobilla.net/software/jalv"

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

directory tree listing: https://gist.github.com/18a63220f81d1d12c74eb36bb311ae8b

du listing: https://gist.github.com/89000a5779364486bc8531a7f1e5da81

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
jalv

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7cyhqsp5xbnm9fqmxkr5y7yvwnvby1dw-jalv-1.6.4 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A jalv https://github.com/r-ryantm/nixpkgs/archive/c5c0e475b208d9bd680abe33278cd09a84ad482d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7cyhqsp5xbnm9fqmxkr5y7yvwnvby1dw-jalv-1.6.4
ls -la /nix/store/7cyhqsp5xbnm9fqmxkr5y7yvwnvby1dw-jalv-1.6.4/bin

cc @cillianderoiste for testing.

Could you please have a look at this, @cillianderoiste?

@cillianderoiste I'm closing for now, but it'd most likely be great if the update could be submitted to nixpkgs :)


Blank card with moon_phase

Since updating HA-Core to 0.110.0 I noticed that my card was missing.
I removed moon_phase: sensor.cc_moon_phase and the card works again, but as soon as I add this back in to the configuration the card goes blank and breaks.
I can't see any log entries and I have cleared the cache to no avail. The screenshot shows the top card without moon_phase: sensor.cc_moon_phase and the bottom one with it

Thanks, the bug is fixed in the new released version.
Bye, Renato


Samsung TV not supports remote keyControl buttons

Hello
I successfully connected to Samsung TV
Volume up/down is working via device.volumeControl()
But device.keyControl() is nil, and I cannot use "Home", "Up", "Down" and other buttons
Also there is no pairing while connecting on Samsung. It needs to appear a confirmation on TV screen, but not appears
Also for LG (webOS) all working is fine, confirmation appears, device.keyControl() exists  and I can call Home button press.
Please help, is Samsung not support key controls, or I doing something wrong?

I have another code that works good with Samsung, but it will be nice if ConnectSDK can support it

@iheart2code  @henrylevak @iadnan @jonghenhan @seokhee-lee @jlai @dung2le @oleksii-frolov @lgcast-dev

Hello I successfully connected to Samsung TV Volume up/down is working via device.volumeControl() But device.keyControl() is nil, and I cannot use "Home", "Up", "Down" and other buttons
Also there is no pairing while connecting on Samsung. It needs to appear a confirmation on TV screen, but not appears
Also for LG (webOS) all working is fine, confirmation appears, device.keyControl() exists and I can call Home button press.
Please help, is Samsung not support key controls, or I doing something wrong?

@crash481 great to hear like you able to connect with your Samsung TV. As per my research you can use SmartView SDK for Samsung TV Remote Control.
I am also working with ConnectSDK but i am not able to pair with my Android Device, Can you help me for resolve my issue?

Hello I successfully connected to Samsung TV Volume up/down is working via device.volumeControl() But device.keyControl() is nil, and I cannot use "Home", "Up", "Down" and other buttons
Also there is no pairing while connecting on Samsung. It needs to appear a confirmation on TV screen, but not appears
Also for LG (webOS) all working is fine, confirmation appears, device.keyControl() exists and I can call Home button press.
Please help, is Samsung not support key controls, or I doing something wrong?

ConnectSDK Build for only LG Device may be but not sure as per my research.
You can use
https://developer.samsung.com/smarttv/develop/extension-libraries/smart-view-sdk/ios-sender-app.html

@HarshadTechmero  I tried now only for iOS. For android I will try only when success with iOS
After I want to map this libs to Flutter and make Flutter cross platform app.
Thank you for Samsung SDK!
I want to support Samsung, Lg, Roku, Google TV, Fire TV, Android TV
With what TVs you connected already successfully and used remotes?
Did you solve problem that TVs not visible before turning them off and after on?

For the ConnectSDK i have fetch devices but not able to pair with TV so i am not continue with ConnectSDK.
For AndroidTV and GoogleTV you use this https://github.com/odyshewroman/AndroidTVRemoteControl

@crash481 great to hear like you able to connect with your Samsung TV. As per my research you can use SmartView SDK for Samsung TV Remote Control.

@HarshadTechmero thanks, but I was not able to connect to Samsung to have availability to send remote control button press. Only volume control is available and it is not a win, I need to send such buttons like "Home" "Up" and others
About Samsung SmartViewSDK, this is some Application ID, that sounds needs to be requested from Samsung?

@HarshadTechmero for iOS version I can help you with pairing LG, if you need help with it - I will do

Currently i am working on Android and GoogleTV not samsung and LG, if i need i will told you
have you try with TVRemote
?

@crash481 Can you help me with LG tv (webOS)? I can assist you with Samsung TV

@HarshadTechmero  Are you work on Amazon FireTV? If yes how to do actions of Home, menu, Back, Navigation arrows and Volume keys.

@Gopal02024 I am not worked on Amazon Fire TV

Tôi có một mã khác hoạt động tốt với Samsung, nhưng sẽ tuyệt hơn nếu ConnectSDK có thể hỗ trợ nó

can u have me to find and connect samsungtv?


Proposal: New line per chained call

Digging more and more in ESLint rules, i found some good ones which enforces good style and more readable code. This issue is for newline-per-chained-call rule - not fixable.
Suggested configuration.
{
  "newline-per-chained-call": "error"
}

In the rule page is shown great example of diff and why it is more readable and clean. It reminds me to one other rule, but can't remember what it was. I also seen discussion in some issues here about that is's better.
Invalid
d3.select("body").selectAll("p").style("color", "blue")

Valid
d3
  .select("body")
  .selectAll("p")
  .style("color", "blue")

Very good for git diffs.

Duplicate: https://github.com/feross/standard/issues/720


feat: Ability to show/hide next button on keyboard on Android

I have been searching for few days possibility to show next button on ionic application when you have form inputs in order to jump to next input. I have tried ionic Keyboard plugin but with no solution.
I would like to suggest a feature where you can simply show or hide next button on keyboard on Android. This could be some kind of method which takes boolean type parameter that will indicate whether to show or hide the next button instead of Go.

Seems to be that when you use form in ionic Android will show automatically Next button if you have more than one field.


Suggestions

The application is neat, congrats on the great job!
Here are a few suggestions, which you may take into account or disregard as you please. Some are surely subjective.
--
In the dynamic output plot, would you consider displaying the light curve in both flux and magnitude spaces, maybe using a tab menu? Many optical time-domain astronomers could find it handy to be able to rapidly switch between the two.
--
Again about the dynamic plots. Is there a way that I cannot see to pan, or go back to the original view after zooming in? Have you considered using bokeh to visualize this plot, which has a nice toolbar that could make it even easier to navigate it?
--
The idea of the PDF plot is nice, especially thanks to the dates in multiple formats. On the other hand, the result can be confusing, see for example
https://fallingstar-data.com/forcedphot/queue/3664/pdfplot/
or the magnitude axis in https://fallingstar-data.com/forcedphot/queue/3661/pdfplot/
I would find it more useful to see two separate plots, one for magnitudes and one for flux, with the plot in magnitude space showing upper limits where mag > mag5sig.
--
In the input box and the API request (and therefore in the output), it would be good to have a column (optional?) for the transient name. This can be particularly useful if one submits multiple requests for an object with slightly different coordinates, for instance because they become more precise or because of the source's proper motion.

The application is neat, congrats on the great job!
Here are a few suggestions, which you may take into account or disregard as you please. Some are surely subjective.

Much appeciated. Sorry I'm slow at getting back to you.

In the dynamic output plot, would you consider displaying the light curve in both flux and magnitude spaces, maybe using a tab menu? Many optical time-domain astronomers could find it handy to be able to rapidly switch between the two.

I will add the flux plot switcher to my to-do list. We originally were plotting in flux space before we switched to magnitudes, so it shouldn't be too difficult for me to re-enable that and make a a toggle widget.

Again about the dynamic plots. Is there a way that I cannot see to pan, or go back to the original view after zooming in? Have you considered using bokeh to visualize this plot, which has a nice toolbar that could make it even easier to navigate it?

Double tap/click on the y-axis tick numbers to reset the plot. Using Bokeh would take a more time to implement but I'll look into that for a future update. For the moment I am reusing Ken Smith's Plotly script from the ATLAS object pages.

The idea of the PDF plot is nice, especially thanks to the dates in multiple formats. On the other hand, the result can be confusing, see for example
https://fallingstar-data.com/forcedphot/queue/3664/pdfplot/
or the magnitude axis in https://fallingstar-data.com/forcedphot/queue/3661/pdfplot/
I would find it more useful to see two separate plots, one for magnitudes and one for flux, with the plot in magnitude space showing upper limits where mag > mag5sig.

PDF plots are being generated by Dave Young's script (https://gist.github.com/thespacedoctor/86777fa5a9567b7939e8d84fd8cf6a76). I can pass on the feedback, but another option is that you write your own custom plot script (that reads the text data files and makes an output plot file). I could consider adding it to the website as an alternative plot type.

In the input box and the API request (and therefore in the output), it would be good to have a column (optional?) for the transient name. This can be particularly useful if one submits multiple requests for an object with slightly different coordinates, for instance because they become more precise or because of the source's proper motion.

This is what the 'Comment' field is for - to identify the requests but something more meaningful than just the coordinates.

The application is neat, congrats on the great job!
Here are a few suggestions, which you may take into account or disregard as you please. Some are surely subjective.

Much appeciated. Sorry I'm slow at getting back to you.

In the dynamic output plot, would you consider displaying the light curve in both flux and magnitude spaces, maybe using a tab menu? Many optical time-domain astronomers could find it handy to be able to rapidly switch between the two.

I will add the flux plot switcher to my to-do list. We originally were plotting in flux space before we switched to magnitudes, so it shouldn't be too difficult for me to re-enable that and make a a toggle widget.

Again about the dynamic plots. Is there a way that I cannot see to pan, or go back to the original view after zooming in? Have you considered using bokeh to visualize this plot, which has a nice toolbar that could make it even easier to navigate it?

Double tap/click on the y-axis tick numbers to reset the plot. Using Bokeh would take a more time to implement but I'll look into that for a future update. For the moment I am reusing Ken Smith's Plotly script from the ATLAS object pages.

The idea of the PDF plot is nice, especially thanks to the dates in multiple formats. On the other hand, the result can be confusing, see for example
https://fallingstar-data.com/forcedphot/queue/3664/pdfplot/
or the magnitude axis in https://fallingstar-data.com/forcedphot/queue/3661/pdfplot/
I would find it more useful to see two separate plots, one for magnitudes and one for flux, with the plot in magnitude space showing upper limits where mag > mag5sig.

PDF plots are being generated by Dave Young's script (https://gist.github.com/thespacedoctor/86777fa5a9567b7939e8d84fd8cf6a76). I can pass on the feedback, but another option is that you write your own custom plot script (that reads the text data files and makes an output plot file). I could consider adding it to the website as an alternative plot type.

In the input box and the API request (and therefore in the output), it would be good to have a column (optional?) for the transient name. This can be particularly useful if one submits multiple requests for an object with slightly different coordinates, for instance because they become more precise or because of the source's proper motion.

This is what the 'Comment' field is for - to identify the requests but something more meaningful than just the coordinates.


Create an interface for output vendors

This is a basic implementation of the outputVendor interface that stays very high level, basically one main function of exportTransactions.
A few things I am considering and would like to get your input:

Some of the output vendor flow is common - filtering duplicate transactions, a function that formats the transaction to match what the output vendor expects. So, initially I thought we would have one common flow of exporting transactions to vendors and the output vendors would implement functions for each part of this process.
Implementing the output vendors as classes, may be cleaner.
Should the output vendor expose something for the ui of the config to work with? When we discussed this last we said that while we have only a few output vendors, we could have a ui component for managing the config of each vendor. If that is the case, is there a need to expose something related to the config from the output vendor?
Would be nice to have a unified type for the response of creating transactions for all the output vendors. Something that could be used for reporting the results. If you have any input there, would love to hear it.

Output vendors would implement functions for each part of this process: This is kind of good implementation, but what value do we get from this? I think we need to think about that after the merge, if any.
Implementing the output vendors as classes: yeah, especially I sew a call to ynab.init. we can save a state in the class. Usually, I don't like to use classes, but if we need to break the logic to multiple methods... it will be cleaner.

Agree.
Yes, will make them classes.
Lets discuss this on the phone next time we talk
Currently the response is just logged. I think we should have at the most basic something like success/failure, and number of exported transactions.

Output vendors would implement functions for each part of this process: This is kind of good implementation, but what value do we get from this? I think we need to think about that after the merge, if any.
Implementing the output vendors as classes: yeah, especially I sew a call to ynab.init. we can save a state in the class. Usually, I don't like to use classes, but if we need to break the logic to multiple methods... it will be cleaner.
Should the output vendor expose something for the ui of the config to work with? as we discussed, I also tried to work on this interface, and I found that we need to expose "list of names and requirements" just for easily bind the name of the output vendor, for example. It is like the SCRAPERS object in israeli-bank-scrapers.
But I'm not sure if your current code is supporting this requirement or not, so I think you can keep the code, and during the work, we (@Arielgordon123 and I) will see exactly if we need something more.
a unified type for the response of creating transactions for all the output vendors: I don't familiar with the current implementation of the output vendors. I guess we can start with enum for "Pass" and "Fail", and expand as needed.

Currently the response is just logged. The most basic is success/failure but I think it should be an object, not an enum, to allow extending it easily in the future without breaking the code that uses it.

So just create an object with enum, exportedTransactionsCount, and message (for error), and we will extend it if we want.
I'm approving this PR. If you want to merge without finish these comments, just remember to add them to #51 or something.


Change default-setting directory inside the container to /var/lib/longhorn-setting

If it uses /var/lib/longhorn/setting, since we will move the default to /var/lib/longhorn, the recurring mount would happen and containerd will report error like following:

Error: failed to start container "longhorn-manager": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused "rootfs_linux.go:58: mounting \"/var/lib/kubelet/pods/ae9afc3f-04ee-11ea-9ca3-f23c91575520/volumes/kubernetes.io~configmap/longhorn-default-setting\" to rootfs \"/var/lib/docker/aufs/mnt/f95f6f4a240e24e2ca9f4913dc71f564ffbfcdf577e3d1367427152495c340b1\" at \"/var/lib/docker/aufs/mnt/f95f6f4a240e24e2ca9f4913dc71f564ffbfcdf577e3d1367427152495c340b1/var/lib/longhorn/setting\" caused \"no such file or directory\""": unknown

Need to test default setting feature to make sure it works.

Validation: PASSED
Default setting feature works.


Update Orth_proj

Not much of a re-write

Fixed tests
similar
in
Using view

I am not sure I like the use of view. We can teach people to sprinkle @view macros as part of an optimization step, but using aview is a step away from the math.
Lets stick with simple matlab style slicing

I reverted to copying array slicing. For these short cases it should be fine, but for more computational intensive lectures using view would cut down the computational time considerably. It might be worth considering taking a few things from the optimization steps for those lectures.

I just added something into the style guide on the views stuff.  Basically, use matlab-style copying whenever possible, and then we can tell people to use @views where necessary.  A drop in efficiency is worth the code clarity.
I also clarified the guiding principle in the style guide:  we should maintain the direct correspondence between math and code even if the performance is lower.   If it is so much lower that it really matters (after profiling/benchmarking!) then we can make an exception and explain it to people
On that note, lets add in equation numbers for lines of code while we do the rewrites.  My comments are pretty much always going to be the same: if it looks exactly like the math, I will like it, and if it looks like code when the math was otherwise possible,, I won't :-)   We want students to do the same thing, and when teaching we need to make the connections.
On that, just a reminder (which I don't think applies here) to use out-of-place functions virtually everywhere, as in https://github.com/QuantEcon/lecture-source-jl/blob/master/style.md#general-control-structures-and-code-organization   There may be exceptions, but since inplace functions are (1) error-prone for new users who forget the .= in assignment, (2) incompatible with static arrays and many others; (3) further away from the math, I would prefer to avoid them unless it is really necessar.

Oh, I will add in a clarification on equation numbers in the style doc soon, but there is no need to add in equation numbers and the correspondence in the code if the code is clearly following a math block above it.  In that case, the correspondence is implied.
The issue is when there is a block of code which uses an equation in the middle of it, or there as a few lines of code below some math blocks that use different formulas

Ready for review.


Error when running list on new setup.

I'm getting the following errors when I attempt to run :Telescope chezmoi list-files. For context, here are the relevant dotfiles. Any ideas on what I may be doing wrong would be much appreciated!!
   Error  17:01:37 msg_show.lua_error Error executing luv callback:
cannot resume dead coroutine
stack traceback:
	[builtin#36]: at 0x56306f0f6f70
	[C]: in function 'wait'
	.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:486: in function 'wait'
	.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:453: in function 'sync'
	...e/nvim/lazy/chezmoi.nvim/lua/chezmoi/commands/__base.lua:44: in function 'list'
	...zy/chezmoi.nvim/lua/telescope/_extensions/find_files.lua:41: in function <...zy/chezmoi.nvim/lua/telescope/_extensions/find_files.lua:38>
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:183: in function 'run_command'
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
	...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	.../nvim/lazy/telescope.nvim/lua/telescope/actions/init.lua:429: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:268>
   Error  17:01:37 msg_show.lua_error Error executing luv callback:
...e/nvim/lazy/chezmoi.nvim/lua/chezmoi/commands/__base.lua:34: 'chezmoi list'command returned non 0 exit code:
chezmoi: unknown command "list" for "chezmoi"
stack traceback:
	[builtin#36]: at 0x56306f0f6f70
	[C]: in function 'wait'
	.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:486: in function 'wait'
	.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:453: in function 'sync'
	...e/nvim/lazy/chezmoi.nvim/lua/chezmoi/commands/__base.lua:44: in function 'list'
	...zy/chezmoi.nvim/lua/telescope/_extensions/find_files.lua:41: in function <...zy/chezmoi.nvim/lua/telescope/_extensions/find_files.lua:38>
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:183: in function 'run_command'
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
	...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	.../nvim/lazy/telescope.nvim/lua/telescope/actions/init.lua:429: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:268>

Hi! Thank you for having interest in my project.
Please check out that the command is :Telescope chezmoi find_files, not list-files
Also i need to handle errors that occur when the given command doens't exist.
Thank you for your bug report.

Sorry, I mistyped what I entered in my bug report. I did in fact type :Telescope chezmoi find_files, not list-files. As evidence, you can see that find_files is present in the stack trace i shared.
Additionally, this bug isn't just for the telescope command. It's also occurring when I run :ChezmoiList. The stack trace and error are the same in both cases.

Hi! Thank you for having interest in my project.

And hello to you too! I'm incredibly excited about this project. It would save me an immense amount of time once i can get it working. A major quality of life improvement for sure.

Oh I see! Can you share the output of chezmoi --version and nvim --version?

 ✘  ~  nvim -v
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info
 ~  chezmoi --version
chezmoi version v2.7.3, commit 32a15ac909ee8108d0eaeebcdbbac2305e32a9ba, built at 2021-10-23T00:31:10Z, built by goreleaser

It looks like list was introduced in v2.10.0. I updated chezmoi to the latest, 2.47.0, and this error no longer occurs.
Perhaps as an enhancement this plugin could throw an error if the user doesn't have at least 2.10.0 installed? I also like your idea of throwing an error if the user runs a command that doesn't exist.
FYI, the command run in the video on the projects readme is list-files, which believe doesn't exist.


[ST3] Can't change pygments theme

I am using Sublime Text 3 on Mac OSX 10.7.5 (Lion). I have checked out the python3 branch.
Syntax highlighting is working fine, but when I change the theme from default, nothing changes.

I have the same problem: Changing the theme makes no difference.


create /requestvoucherrequest from reach to shg-mud-controller

https://code.credil.org/issues/14883

blocked by shg_highway#4

I think that this is done now.  reopen if I'm wrong.


[Bug]

Before Reporting

[X] I found no existing issues matching my bug
[X] My issue is not caused by a plugin or theme

Describe the Bug
When installing BetterDiscord, it wont apply to discord.
Expected Behavior
Betterdiscord settings appear in settings, meaning it was installed
Steps To Reproduce
Install betterdiscord
Open discord
Operating System
Windows
Discord Version
Stable
BetterDiscord Version
v1.10.0
Anything else?
After betterdiscord normally stops working after a discord update, I went to go reinstall betterdiscord to get it to work. It simply wont apply. I've tried deleting every discord related folder in %appdata% and reinstalling after various google searches to find a solution, but no matter what I try, it simply wont apply to Discord. Has the app not been updated to support the current discord version yet?
ps, when I say it wont apply to discord, I mean that when I check settings, no Betterdiscord setting exists.

Are you on canary/ptb? Those are currently known to not work.


Fix search. Now it will only return a daemon pointer if it is live

Fix Search of Unix systems. According to the docs for os.FindProcess(pid) this will never be nil even when I process doesn't exist.

On Unix systems, FindProcess always succeeds and returns a Process for the given pid, regardless of whether the process exists.

Looks legit - https://github.com/golang/go/issues/34396


Fix Evaluator same address mapping clashes

Changes from fb1394 & fb1399 appear here too, should dissappear once the pull requests are merged.

Changed base to current master HEAD to prevent confusion.

If you really only care about theoretical complexity then
unordered_map loses to vector as its theoretical complexity is
worse. It's a notoriously bad data structure where the C++ standard
requires it be implemented in such a way that unordered_map has worst
case O(N) insert and O(N) search whereas vector has guaranteed amortized
O(1) insert and O(N) search. But in practice for our use case where we have
less than 100 generators, vector will absolutely crush
unordered_map and also provides the benefit that vector can
reuse the memory that it previously allocated so that an Evaluator
can be reused without constantly having to shuffle memory around, something
that can't be done with unordered_map.

Theoretical complexity != worst case complexity. The most valuable kind of theoretical complexity is usually expected complexity, as long as expectation is calculated over internal randomization and no collision attacks are expected. You could not argue that the expected complexity of array searches is lower than that on hash tables, could you? Nor that a vector would outperform unordered_map on reasonable sizes of, say, 1K+.
To be practical, the probability of chaining >= 7 elements in one bucket in a 1K table is less than the one of total CPU failure, provided uniform hashing distribution (a strong assumption I know, but it is somewhat approximated by most gcc/clang implementations for built-in types).
Having said that, I did not know the number of generators is expected to be < 100 all the time. Maybe one wanted to simulate a normal distribution by creating thousands of Ranges, for example. In fact, the further we go, the more I start challenging my understanding of potential use cases. Nevertheless, if the < 100 expectation is true, there is indeed no reason to replace the vector.
Regardless, I have never heard of the "notoriously bad" property of unordered_map specification. It is still the only readily available implementation of a hash table, which is in many cases necessary to achieve acceptable performance (like orders of magnitude difference). Regarding memory management, unordered_map uses the same approach for the table itself as the vector - even those allocations for bucket lists are unavoidable. System memory managers are not as inefficient; if they were, there would be no heap-based data structures to start with.


Global namespace ::System not qualified

Should you have a library that contains a namespace System, generated code can end up with a generated internal field "System.Collections.Concurrent.ConcurrentDictionary" which fails to build.
I see quite a few other things being prefixed with global:: maybe this one slipped through the cracks?

Yep, should be easy to fix.

@jamesford42 @tritao is correct, it's just a matter of typing "global::" in our code. In fact, it will be quite easy to you as well. I understand you have already set up a development environment for C++# anyway so could you please send us a pull request with the fix? You need to just search for "ConcurrentDictionary" in our Generator project and you'll find the string to change.

@jamesford42 in addition, please regenerate our parser bindings after you adding the change but before sending your pull. It's really easy, you just have to run the CppSharp.Parser.Gen project.

It's not that easy due to the needed headers for regenerating other platforms. By default it will only generate for Windows, so don't worry too much about the parser bindings, there's no need to re-generate them anyway.

@jamesford42 @tritao 's correct, we do not contain the headers in question in the repository. Perhaps we should, @tritao and I will discuss it later on. Meanwhile, please heed his advice and stick just to the fix, we'll regenerate the bindings ourselves.

Sorry guys, I got deep into deadlines. Had to halt my effort to update to most recent CppSharp, as it did not actually fix any known issues for my project.

No problem, which issues are most problematic to your project?

Exposing static classes.
Exposing types with private constructors (because they are always and exclusively allocated by C++ code).
Various options which I make use of were behaving buggy: emit individual code files per header included, only rewrite files that have changes, dont include std types, dont include system types.
Hidden private members still emitted within internal types (as previously metioned, this was particularly problematic for private constructors, but also applies to private fields that are intentionally hidden and unknown to C#.
Array types used as either arguments or fields both have significant issues.


Change imports for themis

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #25   +/-   ##
======================================
  Coverage    48.8%   48.8%
======================================
  Files          35      35
  Lines        2512    2512
======================================
  Hits         1226    1226
  Misses       1085    1085
  Partials      201     201

Impacted Files
Coverage Δ

pep/marshal.go
88.29% <ø> (ø)
:arrow_up:

pep/unmarshal.go
83.44% <ø> (ø)
:arrow_up:

pep/client.go
0% <ø> (ø)
:arrow_up:

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 544afbf...57f433a. Read the comment docs.


Reconcile merge conflicts for #85

This PR reconciles the merge pending merge conflicts to address #85 and #89.
Also includes a drive-by to add support for building with Podman.

Thanks! I didn't even realize that there was a new release and this wasn't clean to merge anymore.
In general it looks good, I'll double check everything tomorrow. The only thing I might change would be to separate the podman support to a separate PR to the main repo. It looks like a straightforward change, but will make things cleaner.

I included the Podman thing as a separate commit for that reason, feel free to revert / nix it. 🤘


Uncaught RPC error [Error: unable to find method 'invoke']

Describe the bug
Uncaught RPC error [Error: unable to find method 'invoke'] { name: undefined }
method: info/info args: []
Uncaught RPC error [Error: unable to find method 'invoke'] { name: undefined }
method: cookies/list args: []
Uncaught RPC error [Error: unable to find method 'invoke'] { name: undefined }
method: scanner/privacy args: []
Uncaught RPC error [Error: unable to find method 'invoke'] { name: undefined }
method: checksec args: []
To Reproduce
Steps to reproduce the behavior:

Connect my physical rooted Pixel to my computer.
Launch igf and then click on my Pixel.
From the list of apps, click any of them

Desktop (please complete the following information):

OS: MacOS 13.3.1 (a)
Browser: Chrome
NODEJS: V19.9.0;
NODE-FRIDA: 16.1.2

Phone (please complete the following information):

Device: Pixel 6a
OS: TQ3A.230705.001
Rooted
Frida Version: bluejay:/data/local/tmp # ./frida-server-16.1.2-android-arm64

Additional context

I ran in a virtual node environment because my system already had a Node@20 installed. Frida otherwise works.

??????


Allow to use custom text for close button

This should increase flexibility as "Skip" or some other keyword might be more appropriate than the default "Close" in some cases.

great, thanks!

@bjoernm published as v2.2.0


⚠ Bofrost.at has degraded performance

In 2341310, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2394 ms

Resolved: Bofrost.at performance has improved in 9ab3dde.


[Tabs] Tab Component Mobile Responsive Overflow Problem

Hello,
I'm reporting an issue regarding the Tabs component when used in the mobile environment. While there are no problems on laptops or tablets, the issue arises specifically in mobile environments, causing an overflow problem that disrupts the overall layout.

To resolve this problem, I'm proposing two potential options:

Adding Overflow Scrolling Effect:
Applying the overflow property to the currently overflowing element to add a scrolling effect seems like a good solution.

Adding flex-wrap Property:
Another option is to add the flex-wrap property to ensure that elements are properly wrapped, allowing for a more responsive layout.

Related issue
Thank you !!!

Hi everyone,
I have the same issue and we are starting to try to patch it in the quick-and-dirtiest way possible while waiting for an official patch in the component.
@in-ch do you have a snippet of 1 of the 2 solutions so that we can patch our responsive overflow problem please :pray: ?

@Thisisjuke
interface TabValue {
  value: string;
  title: string;
  content: JSX.Element;
}

interface FAQTabsProps {
  data: TabValue[];
}

/**
 * @param {TabValue[]} data - List of tab data
 * @description FAQTabs component
 * @returns {JSX.Element}
 */
export default function FAQTabs({ data }: FAQTabsProps): JSX.Element {
  const tabsScrollRef = useRef<HTMLDivElement | null>(null);
  const tabRef = useRef<HTMLDivElement | null>(null);

  /**
   * @param {number} index - Index of the clicked tab
   * @description Scrolls through tabs with animation when tab is clicked
   * @returns {void}
   */
  const tabScrollToIndex = (index: number): void => {
    const tabWidth = (tabRef as MutableRefObject<HTMLDivElement>).current.offsetWidth;
    const targetScrollLeft = (tabWidth * index) / 2;
    const startScrollLeft = (tabsScrollRef as MutableRefObject<HTMLDivElement>).current.scrollLeft;

    const animateScroll = (timestamp: number) => {
      const progress = Math.min(1, (timestamp - startTime) / duration);
      const newScrollLeft = startScrollLeft + progress * (targetScrollLeft - startScrollLeft);
      (tabsScrollRef as MutableRefObject<HTMLDivElement>).current.scrollLeft = newScrollLeft;

      if (progress < 1) {
        requestAnimationFrame(animateScroll);
      }
    };

    const duration = 200; // Duration of animation (ms)
    const startTime = performance.now();

    requestAnimationFrame(animateScroll);
  };

  /**
   * @param {number} index - Index of the clicked tab
   * @description Handles tab click event to scroll with animation
   * @returns {void}
   */
  const handleTabsTriggerClick = (index: number): void => {
    if (tabsScrollRef.current) {
      tabScrollToIndex(index);
    }
  };
  return (
    <ContentLayout className="mt-4">
      <Tabs defaultValue={data[0].value}>
        <TabsList scrollRef={tabsScrollRef}>
          {data.map((tab, index) => (
            <TabsTrigger
              onClick={() => handleTabsTriggerClick(index)}
              key={`tab-trigger-${tab.title}-${index}`}
              value={tab.value}
              ref={tabRef as Ref<HTMLButtonElement>}
            >
              {tab.title}
            </TabsTrigger>
          ))}
        </TabsList>
        {data.map((tab, index) => (
          <TabsContent
            className="w-full"
            key={`tab-content-${tab.title}-${index}`}
            value={tab.value}
          >
            {tab.content}
          </TabsContent>
        ))}
      </Tabs>
    </ContentLayout>
  );
}

FAQTabs.displayName = 'FAQTabs';

If the number of tabs increases, the code will need modifications. Currently, the code functions well with five tabs, but if there are more tabs, adjustments will be necessary. 😃

Hi everyone, I have the same issue and we are starting to try to patch it in the quick-and-dirtiest way possible while waiting for an official patch in the component.
@in-ch do you have a snippet of 1 of the 2 solutions so that we can patch our responsive overflow problem please 🙏 ?

@Thisisjuke
interface TabValue {
  value: string;
  title: string;
  content: JSX.Element;
}

interface FAQTabsProps {
  data: TabValue[];
}

/**
 * @param {TabValue[]} data - List of tab data
 * @description FAQTabs component
 * @returns {JSX.Element}
 */
export default function FAQTabs({ data }: FAQTabsProps {
  const tabsScrollRef = useRef<HTMLDivElement | null>(null);
  const tabRef = useRef<HTMLDivElement | null>(null);

  /**
   * @param {number} index - Index of the clicked tab
   * @description Scrolls through tabs with animation when tab is clicked
   * @returns {void}
   */
  const tabScrollToIndex = (index: number): void => {
    const tabWidth = (tabRef as MutableRefObject<HTMLDivElement>).current.offsetWidth;
    const targetScrollLeft = (tabWidth * index) / 2;
    const startScrollLeft = (tabsScrollRef as MutableRefObject<HTMLDivElement>).current.scrollLeft;

    const animateScroll = (timestamp: number) => {
      const progress = Math.min(1, (timestamp - startTime) / duration);
      const newScrollLeft = startScrollLeft + progress * (targetScrollLeft - startScrollLeft);
      (tabsScrollRef as MutableRefObject<HTMLDivElement>).current.scrollLeft = newScrollLeft;

      if (progress < 1) {
        requestAnimationFrame(animateScroll);
      }
    };

    const duration = 200; // Duration of animation (ms)
    const startTime = performance.now();

    requestAnimationFrame(animateScroll);
  };

  /**
   * @param {number} index - Index of the clicked tab
   * @description Handles tab click event to scroll with animation
   * @returns {void}
   */
  const handleTabsTriggerClick = (index: number): void => {
    if (tabsScrollRef.current) {
      tabScrollToIndex(index);
    }
  };
  return (
    <ContentLayout className="mt-4">
      <Tabs defaultValue={data[0].value}>
        <TabsList scrollRef={tabsScrollRef}>
          {data.map((tab, index) => (
            <TabsTrigger
              onClick={() => handleTabsTriggerClick(index)}
              key={`tab-trigger-${tab.title}-${index}`}
              value={tab.value}
              ref={tabRef as Ref<HTMLButtonElement>}
            >
              {tab.title}
            </TabsTrigger>
          ))}
        </TabsList>
        {data.map((tab, index) => (
          <TabsContent
            className="w-full"
            key={`tab-content-${tab.title}-${index}`}
            value={tab.value}
          >
            {tab.content}
          </TabsContent>
        ))}
      </Tabs>
    </ContentLayout>
  );
}

FAQTabs.displayName = 'FAQTabs';

If the number of tabs increases, the code will need modifications. Currently, the code functions well with five tabs, but if there are more tabs, adjustments will be necessary. 😃

Any update on this?

Yeah running into this issue as well, will patch on my end but should be default functionality

I get somewhat workable code as:
<TabsList className='flex items-center justify-start flex-wrap h-auto space-y-1'> </TabsList>

@Abubakersiddique761 thanks, that worked for me. Here what I am doing,
  <TabsList className="w-[464px] overflow-x-auto flex items-center justify-start space-y-1'">
          {toolTabs.map((t) => (
            <TabsTrigger
              key={t.link}
              value={t.link}
              onClick={() => setSelectedTab(t.link)}
            >
              {t.title}
            </TabsTrigger>
          ))}
        </TabsList>

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

To address it via horizontal scroll:
<Tabs>
    <div className="overflow-x-auto">
        <TabsList>

Applying the overflow to TabsList.className directly did not work.


can send all IA requests in a time

What's included?
Closes https://github.com/jac-uk/ticketing-system/issues/36p
Who should test?
✅ Product owner
✅ Developers
✅ UTG
How to test?
Can send all IA requests.

Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work
Additional context
Include screen grabs, video demo, notes etc.
Related permissions
Have permissions been considered for this functionality?

No permission changes required
Permissions have been added / updated. Details:

PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

@KoWeiJAC  the link to the issue doesnt work

User can manually send requests page by page.
This change needs further discussion.


Added playfair cipher decryption

Have you read the Contributing Guidelines on Pull Requests?
yes
(Write your answer here.)
Description
Added Playfair cipher decryption
(Write your answer here.)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Fixed #5601  this is a follow-up issue in neo algo docs
(Write your answer here.)

@HarshCasper please review this pr.

#4514 problem already present

@ankitaggarwal23 this is decryption not encryption

As harsh asked for decryption part also in the neo Algo docs I had to do it with the same implementation, please revisit this or its not duplicate.