test(NODE-5069): move and improve FLE prose 14 test

Description
What is changing?

Moves prose test 14 to new file in Typescript
Changes try/catch to our .catch(error=>error) pattern
Add WC majority to ensure writes can be read

What is the motivation for this change?
Easier to manager modularized testing
Double check the following

[x] Ran npm run check:lint script
[x] Self-review completed using the steps outlined here
[x] PR title follows the correct format: type(NODE-xxxx)[!]: description

Example: feat(NODE-1234)!: rewriting everything in coffeescript

[x] Changes are covered by tests
[x] New TODOs have a related JIRA ticket

Finally it reproduced. and that is with w: majority
https://evergreen.mongodb.com/task_log_raw/mongo_node_driver_next_rhel80_large_node_latest_test_socks5_csfle_patch_10146a42fcc8d84cd07fb26bde9b2926deee6f1e_63f667437742ae619b17e06f_23_02_22_19_04_36/0?type=T#L4172


Disabling proguard to restore Roboguice integration.

Fixes #99

@amouly care to try it and let me know?

@amouly care to try it and let me know?

@pires yes, now it's working. Just FYI, on the build.gradle file, we have "proguard-rules.pro", but the file is named "proguard-android.txt" on the local path. You have to rename it. The system-default file it's "proguard-android.txt" (called with getDefaultProguardFile)  and that's ok.

Fixed @amouly? Been a couple years since I last used Proguard on Android.

Yes, it works fine for me. And yes, the Proguard system changed a little on Studio. Thanks.

Thank you for reporting and helping with the fix.


Only Attempt to set the AppName property of MockForm

This eliminates the annoying IllegalArgumentExceptions that litter the
OdeLog :-)
Change-Id: Ib7a0ab5f0dce578cf13d5020ee4840a9cdc26bfe

@halatmit @afmckinney Please Review
We've been seeing these warnings in the logs since the AppName property was added. This fixes it.


Flutter code running on DartPad but throws exception when run on local machine

Steps to Reproduce

The code runs fine on DartPad online but throws an unhandled exception when running on my machine.

Run flutter run.
main.dart

import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'dart:async';

final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
String time = "00:00";

void main() {
  runApp(MyApp());
}

void runTimer(_MyWidgetState obj) {
  Stopwatch st = Stopwatch();
  st.start();
    Timer timer;
  timer = Timer.periodic(Duration(seconds: 1), (Timer t) {
      int ms = st.elapsedMilliseconds;
      int sec = (ms ~/ 1000) % 60;
      int min = (ms ~/ 1000) ~/ 60;
      if (ms >= obj.msVal.inMilliseconds) {
        st.stop();
        st.reset();
        timer.cancel();
      } else {
        // ignore: invalid_use_of_protected_member
        obj.setState(() {time = strFormat(min)+":"+strFormat(sec);});
      }
    });
}

String strFormat(int val) {
    String res = "";
    if (val < 10)
      res = "0" + val.toString();
    else
      res = val.toString();
    return res;
  }

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),
      debugShowCheckedModeBanner: false,
      home: MyWidget(),
    );
  }
}

class MyWidget extends StatefulWidget {
  @override
  _MyWidgetState createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  Duration msVal;
  @override
  void initState() {
    super.initState();
    msVal = Duration(seconds: 5);
    compute(runTimer, this);
    Timer(Duration(seconds: 6), () {
      msVal = Duration(minutes: 5);
    compute(runTimer, this);
    });

  }

  @override
  Widget build(BuildContext context) {
    return Text(time);
  }
}

...

Expected results: 00:00 -> 00:04 ->00:01 -> 04:59
Actual results: 00:00 (the timer doesn't run and an unhandled exception is thrown)

Logs

flutter run --verbose
[  +21 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +80 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[   +3 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git tag --contains HEAD
[ +373 ms] Exit code 0 from: git tag --contains HEAD
[   +2 ms] 1.17.5
[  +11 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +42 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[   +1 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git ls-remote --get-url origin
[  +58 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +122 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git rev-parse --abbrev-ref HEAD
[  +51 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +47 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +13 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +13 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[  +15 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +73 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +65 ms] List of devices attached
           3499a0009904           device product:mido model:Redmi_Note_4 device:mido transport_id:1
[   +8 ms] C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell getprop
[ +102 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +221 ms] Generating D:\flutter\save_the_planet\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +38 ms] ro.hardware = qcom
[  +53 ms] Launching lib\main.dart on Redmi Note 4 in debug mode...
[   +9 ms] C:\flutter_windows_1.17.0-stable\flutter\bin\cache\dart-sdk\bin\dart.exe
C:\flutter_windows_1.17.0-stable\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter_windows_1.17.0-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
-Ddart.developer.causal_async_stacks=true --output-dill C:\Users\JAYANT~1\AppData\Local\Temp\flutter_tool.a340d5e3-bc87-11ea-945f-9885675d3a14\app.dill --packages
D:\flutter\save_the_planet\.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation--filesystem-scheme org-dartlang-root
[  +41 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree D:\flutter\save_the_planet\build\app\outputs\apk\app.apk AndroidManifest.xml[  +46 ms] Exit code 0 from: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree D:\flutter\save_the_planet\build\app\outputs\apk\app.apk
AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.save_the_planet" (Raw: "com.example.save_the_planet")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="save_the_planet" (Raw: "save_the_planet")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.save_the_planet.MainActivity" (Raw: "com.example.save_the_planet.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +21 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell -x logcat -v time -t 1
[ +202 ms] Exit code 0 from: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           07-02 22:45:36.612 E/MetadataRetrieverClient(  741): offset (0) bigger than file size (0)
[  +25 ms] <- compile package:save_the_planet/main.dart
[  +11 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[  +50 ms] Android Debug Bridge version 1.0.41
           Version 30.0.1-6435776
           Installed as C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +4 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +59 ms] Building APK
[  +30 ms] Running Gradle task 'assembleDebug'...
[   +5 ms] gradle.properties already sets `android.enableR8`
[   +8 ms] Using gradle from D:\flutter\save_the_planet\android\gradlew.bat.
[  +20 ms] D:\flutter\save_the_planet\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +37 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +170 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
           OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[  +13 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +113 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
           OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[   +5 ms] executing: [D:\flutter\save_the_planet\android/] D:\flutter\save_the_planet\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=D:\flutter\save_the_planet\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+4463 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [  +23 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [  +85 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +33 ms] [        ] 8af6b2f038c1172e61d418869363a28dffec3cb4
[  +48 ms] [        ] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git tag --contains HEAD
[  +18 ms] [ +293 ms] Exit code 0 from: git tag --contains HEAD
[  +33 ms] [   +1 ms] 1.17.5
[   +1 ms] [  +11 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [  +51 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +7 ms] [        ] origin/stable
[   +1 ms] [        ] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git ls-remote --get-url origin
[        ] [  +43 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[   +1 ms] [ +121 ms] executing: [C:\flutter_windows_1.17.0-stable\flutter/] git rev-parse --abbrev-ref HEAD
[   +1 ms] [  +55 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[   +5 ms] [  +20 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +24 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +15 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[  +30 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +5 ms] [  +28 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[  +10 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +13 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +4 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +11 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +10 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +15 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +4 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +10 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [ +124 ms] Initializing file store
[        ] [  +18 ms] kernel_snapshot: Starting due to {}
[  +15 ms] [  +15 ms] C:\flutter_windows_1.17.0-stable\flutter\bin\cache\dart-sdk\bin\dart.exe
C:\flutter_windows_1.17.0-stable\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter_windows_1.17.0-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts--track-widget-creation --no-link-platform --packages D:\flutter\save_the_planet\.packages --output-dill
D:\flutter\save_the_planet\.dart_tool\flutter_build\4f8ae2f40ad4ac25a6f869621dab3c2b\app.dill --depfile
D:\flutter\save_the_planet\.dart_tool\flutter_build\4f8ae2f40ad4ac25a6f869621dab3c2b\kernel_snapshot.d package:save_the_planet/main.dart
[+9198 ms] [+9847 ms] kernel_snapshot: Complete
[+2301 ms] [+2338 ms] debug_android_application: Starting due to {}
[ +998 ms] [ +985 ms] debug_android_application: Complete
[ +601 ms] [ +578 ms] Persisting file store
[   +1 ms] [  +26 ms] Done persisting file store
[        ] [   +4 ms] build succeeded.
[ +195 ms] [ +228 ms] "flutter assemble" took 14,284ms.
[ +899 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[  +10 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:checkDebugManifest UP-TO-DATE
[ +285 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[+1600 ms] > Task :app:cleanMergeDebugAssets
[   +1 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:compileDebugShaders UP-TO-DATE
[   +5 ms] > Task :app:generateDebugAssets UP-TO-DATE
[   +3 ms] > Task :app:mergeDebugAssets
[ +586 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +6 ms] > Task :app:generateDebugResources UP-TO-DATE
[+2490 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[   +9 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +8 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[ +776 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +9 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +130 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[   +1 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +53 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[+1498 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDexDebug UP-TO-DATE
[   +1 ms] > Task :app:validateSigningDebug UP-TO-DATE
[   +1 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ +295 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[   +1 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[   +1 ms] Compatible side by side NDK version was not found.
[+3597 ms] > Task :app:packageDebug
[ +153 ms] > Task :app:assembleDebug
[   +1 ms] BUILD SUCCESSFUL in 30s
[   +1 ms] 31 actionable tasks: 6 executed, 25 up-to-date
[ +399 ms] Running Gradle task 'assembleDebug'... (completed in 31.4s)
[  +59 ms] calculateSha: LocalDirectory: 'D:\flutter\save_the_planet\build\app\outputs\apk'/app.apk
[  +99 ms] calculateSha: reading file took 94us
[ +844 ms] calculateSha: computing sha took 842us
[ +166 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[ +313 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree D:\flutter\save_the_planet\build\app\outputs\apk\app.apk AndroidManifest.xml[+1187 ms] Exit code 0 from: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree D:\flutter\save_the_planet\build\app\outputs\apk\app.apk
AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.save_the_planet" (Raw: "com.example.save_the_planet")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="save_the_planet" (Raw: "save_the_planet")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.save_the_planet.MainActivity" (Raw: "com.example.save_the_planet.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +36 ms] Stopping app 'app.apk' on Redmi Note 4.
[  +11 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell am force-stop com.example.save_the_planet
[ +848 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell pm list packages com.example.save_the_planet
[ +921 ms] package:com.example.save_the_planet
[   +3 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell cat /data/local/tmp/sky.com.example.save_the_planet.sha1
[  +69 ms] 6f6cb68c22165979e9ca183534367471b1b8aeb9
[   +1 ms] Installing APK.
[   +3 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[  +42 ms] Android Debug Bridge version 1.0.41
           Version 30.0.1-6435776
           Installed as C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +1 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +38 ms] Installing build\app\outputs\apk\app.apk...
[   +1 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 install -t -r D:\flutter\save_the_planet\build\app\outputs\apk\app.apk
[+10400 ms] Performing Streamed Install
                     Success
[   +1 ms] Installing build\app\outputs\apk\app.apk... (completed in 10.4s)
[   +2 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell echo -n fec6a87f0d20e89e935e66b47dc50f8c7e8abeba >
/data/local/tmp/sky.com.example.save_the_planet.sha1
[ +116 ms] Redmi Note 4 startApp
[   +3 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.save_the_planet/com.example.save_the_planet.MainActivity
[+1608 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.save_the_planet/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+2664 ms] Observatory URL on device: http://<IP_ADDRESS>:37275/ENT1PI782vc=/
[   +2 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward tcp:0 tcp:37275
[  +40 ms] 62511
[        ] Forwarded host port 62511 to device port 37275 for Observatory
[  +11 ms] Connecting to service protocol: http://<IP_ADDRESS>:62511/ENT1PI782vc=/
[ +613 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:62511/ENT1PI782vc=/
[   +4 ms] Sending to VM service: getVM({})
[  +21 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc MSM8953, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3
12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsa...
[   +5 ms] Sending to VM service: getIsolate({isolateId: isolates/941578420986407})
[   +5 ms] Sending to VM service: _flutter.listViews({})
[  +64 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7f77a50620, isolate: {type: @Isolate, fixedId: true, id: isolates/941578420986407, name:
main.dart$main-941578420986407, number:<PHONE_NUMBER>86407}}]}
[   +7 ms] DevFS: Creating new filesystem on the device (null)
[   +8 ms] Sending to VM service: _createDevFS({fsName: save_the_planet})
[  +29 ms] Result: {type: Isolate, id: isolates/941578420986407, name: main, number:<PHONE_NUMBER>86407, _originNumber:<PHONE_NUMBER>86407, startTime:<PHONE_NUMBER>678, _heaps: {new: {type:
HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis: 0...
[  +55 ms] Result: {type: FileSystem, name: save_the_planet, uri: file:///data/user/0/com.example.save_the_planet/code_cache/save_the_planetPLITRZ/save_the_planet/}
[   +1 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.save_the_planet/code_cache/save_the_planetPLITRZ/save_the_planet/)
[   +3 ms] Updating assets
[ +103 ms] Syncing files to device Redmi Note 4...
[   +2 ms] Scanning asset files
[   +4 ms] <- reset
[   +5 ms] Compiling dart to kernel with 0 updated files
[   +4 ms] <- recompile package:save_the_planet/main.dart ed2dfb13-186b-4ded-9f37-1d69d2756ac4
[   +1 ms] <- ed2dfb13-186b-4ded-9f37-1d69d2756ac4
[ +129 ms] Updating files
[ +839 ms] DevFS: Sync finished
[   +2 ms] Syncing files to device Redmi Note 4... (completed in 987ms)
[   +9 ms] Synced 1.2MB.
[   +3 ms] Sending to VM service: _flutter.listViews({})
[   +8 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7f77a50620, isolate: {type: @Isolate, fixedId: true, id: isolates/941578420986407, name:
main.dart$main-941578420986407, number:<PHONE_NUMBER>86407}}]}
[   +3 ms] <- accept
[        ] Connected to _flutterView/0x7f77a50620.
[   +1 ms] Flutter run key commands.
[   +3 ms] r Hot reload.
[   +9 ms] R Hot restart.
[   +1 ms] h Repeat this help message.
[   +1 ms] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[   +1 ms] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Redmi Note 4 is available at: http://<IP_ADDRESS>:62511/ENT1PI782vc=/
[ +847 ms] E/flutter (24367): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Invalid argument(s): Illegal argument in isolate message : (object is a closure - Function
'_handleBuildScheduled@392399801':.)
[   +2 ms] E/flutter (24367): #0      Isolate._spawnFunction (dart:isolate-patch/isolate_patch.dart:541:55)
[   +1 ms] E/flutter (24367): #1      Isolate.spawn (dart:isolate-patch/isolate_patch.dart:381:7)
[   +8 ms] E/flutter (24367): #2      compute (package:flutter/src/foundation/_isolates_io.dart:21:41)
[   +1 ms] E/flutter (24367): #3      _MyWidgetState.initState (package:save_the_planet/alternate.dart:60:12)
[   +1 ms] E/flutter (24367): #4      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4640:58)
[   +1 ms] E/flutter (24367): #5      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
[   +1 ms] E/flutter (24367): #6      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[        ] E/flutter (24367): #7      Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[   +1 ms] E/flutter (24367): #8      SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
[   +9 ms] E/flutter (24367): #9      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[   +2 ms] E/flutter (24367): #10     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[   +1 ms] E/flutter (24367): #11     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
[        ] E/flutter (24367): #12     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
[        ] E/flutter (24367): #13     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
[        ] E/flutter (24367): #14     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
[   +1 ms] E/flutter (24367): #15     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[  +10 ms] E/flutter (24367): #16     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[   +2 ms] E/flutter (24367): #17     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
[   +1 ms] E/flutter (24367): #18     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[   +1 ms] E/flutter (24367): #19     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[  +15 ms] E/flutter (24367): #20     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
[   +2 ms] E/flutter (24367): #21     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[  +12 ms] E/flutter (24367): #22     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[   +1 ms] E/flutter (24367): #23     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
[        ] E/flutter (24367): #24     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
[   +2 ms] E/flutter (24367): #25     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
[  +10 ms] E/flutter (24367): #26     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
[   +2 ms] E/flutter (24367): #27     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
[        ] E/flutter (24367): #28     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
[        ] E/flutter (24367): #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[        ] E/flutter (24367): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[   +1 ms] E/flutter (24367): #31     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
[  +10 ms] E/flutter (24367): #32     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[   +2 ms] E/flutter (24367): #33     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[        ] E/flutter (24367): #34     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
[   +1 ms] E/flutter (24367): #35     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[   +1 ms] E/flutter (24367): #36     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[  +11 ms] E/flutter (24367): #37     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
[   +2 ms] E/flutter (24367): #38     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
[   +1 ms] E/flutter (24367): #39     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
[        ] E/flutter (24367): #40     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
[   +1 ms] E/flutter (24367): #41     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
[   +9 ms] E/flutter (24367): #42     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
[   +2 ms] E/flutter (24367): #43     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
[        ] E/flutter (24367): #44     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
[        ] E/flutter (24367): #45     ComponentElement.performRebuild (p
[+5722 ms] E/flutter (24367): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Invalid argument(s): Illegal argument in isolate message : (object is a closure - Function
'_handleBuildScheduled@392399801':.)
[   +2 ms] E/flutter (24367): #0      Isolate._spawnFunction (dart:isolate-patch/isolate_patch.dart:541:55)
[   +1 ms] E/flutter (24367): #1      Isolate.spawn (dart:isolate-patch/isolate_patch.dart:381:7)
[   +8 ms] E/flutter (24367): #2      compute (package:flutter/src/foundation/_isolates_io.dart:21:41)
[   +2 ms] E/flutter (24367): #3      _MyWidgetState.initState.<anonymous closure> (package:save_the_planet/alternate.dart:63:14)
[   +2 ms] E/flutter (24367): #4      _rootRun (dart:async/zone.dart:1180:38)
[   +1 ms] E/flutter (24367): #5      _CustomZone.run (dart:async/zone.dart:1077:19)
[   +1 ms] E/flutter (24367): #6      _CustomZone.runGuarded (dart:async/zone.dart:979:7)
[   +2 ms] E/flutter (24367): #7      _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
[   +1 ms] E/flutter (24367): #8      _rootRun (dart:async/zone.dart:1184:13)
[   +1 ms] E/flutter (24367): #9      _CustomZone.run (dart:async/zone.dart:1077:19)
[        ] E/flutter (24367): #10     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1003:23)
[        ] E/flutter (24367): #11     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
[   +1 ms] E/flutter (24367): #12     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
[  +10 ms] E/flutter (24367): #13     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
[   +2 ms] E/flutter (24367): #14     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[   +1 ms] E/flutter (24367):
[  +48 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.save_the_planet/code_cache/save_the_planetPLITRZ/save_the_planet/)
[   +1 ms] Sending to VM service: _deleteDevFS({fsName: save_the_planet})
[  +26 ms] Result: {type: Success}
[   +1 ms] DevFS: Deleted filesystem on the device (file:///data/user/0/com.example.save_the_planet/code_cache/save_the_planetPLITRZ/save_the_planet/)
[   +9 ms] Sending to VM service: ext.flutter.exit({isolateId: isolates/941578420986407})
[ +345 ms] Service protocol connection closed.
[+1663 ms] Application finished.
[   +3 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward --list
[  +39 ms] Exit code 0 from: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward --list
[   +1 ms] 3499a0009904 tcp:62511 tcp:37275
[   +1 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward --remove tcp:62511
[  +30 ms] executing: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward --list
[  +35 ms] Exit code 0 from: C:\Users\Jayant Jeet Tomar\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 3499a0009904 forward --list
[   +1 ms] "flutter run" took 63,084ms.

flutter analyze
Analyzing save_the_planet...
No issues found! (ran in 18.4s)

compute should not be considered an exposed API.
from packages/flutter/lib/src/foundation/isolates.dart
// Remove when https://github.com/dart-lang/sdk/issues/37149 is fixed.
// ignore: prefer_const_declarations
final _ComputeImpl compute = _isolates.compute;

and since https://github.com/dart-lang/sdk/issues/37149 is already closed. We should have removed it.
@jonahwilliams

This is not caused by dart-lang/sdk#37149 , the issue is that on the web compute runs on the same isolate (there are no isolates on the web)., so you can only send static functions though, and definitely not functions that close over widget state.
Help and support questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community .


[Hydrogen docs]: Clarify usage of the Metafield component

This PR:

Clarifies how to use the Metafield component to render a default output (by passing an unparsed object to the data prop), or a different output (using the useParsedMetafields hook)

Closing this down as @frehner is tackling some big changes in a different PR. 😄


Expand runtime logic

We need to expand the runtime logic now that we support Bun and plan to support Deno and Cloudflare workerd.
We should probably turn this into a package because we need it across a variety of packages in the SDK monorepo.

This was completed by #871


What does the cycle stand for

Dear Author:
I looked at the code several times and I don't understand what cycle means.I debug the code and found that there was only one image in training stage(function train_one_epoch) instead of batch_size:4.
I know my question is easy,however i still can't understand after I debug the code,could you please anwer me?
Thanak you!!!

Hey @liul-ing , I am sorry about the confusion. Let's see, when one trains with cyclical learning rate scheduling, what we do is to decide on a number of epochs that compose a single cycles, for example 10. Then, we start with an initial learning rate that slowly decays during the entire cycle, this is, during the 10 epochs, until it reaches a very low value, 0 or similar. Once this happens, the learning rate is reset to its initial value and a new cycle starts over.
I don't really understand what could be happening with the batch-size in your execution. I recenlty refactored this implementation to simplify it, and I might have messed things up. Can I ask what value do you see if you add in line 93 here a print of the shape of the inputs, print(inputs.shape)?
Thanks for using this code. Cheers,
Adrian


Fix typo in CredentialIssuer ytt template.

This typo wasn't caught in testing because 1) the Kubernetes API ignores the unknown field and 2) the type field defaults to LoadBalancer anyway, so things behave as expected.
Even though this doesn't cause any large problems, it's quite confusing.
See #659 for more details.
Release note:
Fixed an incorrect field name in the default CredentialIssuer YAML in the installation manifest.

Can we run our code with validation turned on so we catch these in the future?

I thought we used to validate the schema of the deployment manifest in CI like we do here, but it seems like if we did its not in the scripts anymore.


CFP: Support JWT Verification for HTTPRoute of Gateway-API

Cilium Feature Proposal
Thanks for taking time to make a feature proposal for Cilium! If you have usage questions, please try the slack channel and see the FAQ first.
Is your proposed feature related to a problem?
Currently, we are using gateway-api to provide external services, but now Cilium seems not to support JWT verification. Similar to other gateway-api providers, they all provide such functionality.
istio:
https://istio.io/latest/docs/tasks/security/authentication/authn-policy/#end-user-authentication
envoy gateway:
https://gateway.envoyproxy.io/docs/tasks/security/jwt-authentication/
https://github.com/envoyproxy/gateway/blob/main/examples/kubernetes/jwt/jwt.yaml
contour:
https://projectcontour.io/docs/1.23/config/jwt-verification/
Describe the feature you'd like
Hope that Cilium can also provide similar functionality.
(Optional) Describe your proposed solution
It can be implemented through the jwt_authn HTTP filter.

@sayboras How do you think?

At least a ciliumclusterwideenvoyconfig example would be perfect on the documentation.
@chaunceyjiang did you manage to get that working? I am currently working on implementing it myself

My idea is to design a new CRD, similar to the following
apiVersion: cilium.io/v1
kind: CiliumRequestAuthentication
metadata:
  name: "jwt-example"
  namespace: foo
spec:
  targetRef:
    kind: Gateway
    group: gateway.networking.k8s.io
    name: httpbin-gateway
  jwtRules:
  - issuer<EMAIL_ADDRESS>    jwksUri: "https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json"


Client Handshake failed

Please help me solve the problem.
Steps to reproduce the problem:

Key and certificate concatineted to file hostname.pem
Started mitmproxy:

$ mitmdump --listen-host <IP_ADDRESS> --listen-port 60808 --mode upstream:http://<host_upstream_proxy>:<port_upstream_proxy> --certs <path_to_certs>/hostname.pem --scripts <path_to_scripts>/handler.py --set upstream_cert=false --set ssl_insecure=true --set allow_remote=true -v
Loading script <path_to_scripts>/handler.py
Proxy server listening at http://<IP_ADDRESS>:60808

When prompted, an error occurs:

...
<IP_ADDRESS>:35708: Client Handshake failed. The client may not trust the proxy's certificate for download.sonatype.com.
<IP_ADDRESS>:35708: ClientHandshakeException("Cannot establish TLS with client (sni: download.sonatype.com): TlsException("",)",)
...

System information
$ mitmproxy --version
Mitmproxy: 4.0.4
Python: 3.6.3
OpenSSL: OpenSSL 1.1.0i 14 Aug 2018
Platform: Linux-3.10.0-86.el7.x86_64-x86_64-with-redhat-7.5-Maipo

Thanks for the help!

👍

Any update here?

got same issue. Any hint ?

We just merged a brand new protocol implementation - if you can repeat the problem with the latest version from git-master, please re-open this issue.


feat: Support multiple nodes configuration in upstream

It should be a low priority feature.

I think this feature is useful, the upstream does contain multiple nodes in real

ok, let us do it


[REQUEST] Add being able to apply Proton\Wine\ProtonGE to downloaded installers

Is your feature request related to a problem? Please describe.
Steam Deck requires Proton/Wine/Proton GE to be able to run Windows .exe files, which makes the adding installer to Steam and then launching it there process pretty long. It would be nice being able to launch installers right in the launcher using Proton
Describe the solution you'd like
Add being able to right click the game and select Proton version to use while launching the installer/game
Describe alternatives you've considered
Adding to Steam directly, going into there, selecting compatibility version and launch it from there

Have the ability to run game installers using Wine/Lutris but is not working properly (#299). There is nothing about running the games though.

@gylli251did some progress at #155 where it uses Lutris to run the game. It's a good start.

I've a open PR that fixes the current implementation of running installer on Linxus using Lutris or Wine. It's a start, but I assume we will need something more flexible to really meet the hole Linux ecosystem, like allow users to select what they to use use to install/launch each game.

You can run it using Proton like this:
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${HOME}/.local/share/Steam"
# export STEAM_COMPAT_MOUNTS="${STEAM_COMPAT_CLIENT_INSTALL_PATH}/steamapps/common/Proton - Experimental:/home/pc/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper"
export STEAM_COMPAT_MOUNTS="${STEAM_COMPAT_CLIENT_INSTALL_PATH}/steamapps/common/Proton - Experimental"
export STEAM_COMPAT_DATA_PATH="${PWD}/prefix"
export WINEPREFIX="${STEAM_COMPAT_DATA_PATH}/pfx"
mkdir -p "${STEAM_COMPAT_DATA_PATH}"
"${STEAM_COMPAT_MOUNTS%%:*}/proton" run "${EXE}"

import { exec } from "node:child_process";
import fs from "node:fs";

const filePath = "/home/pc/Games/_VLADiK BRUTAL/game_info/data/VLADiK_BRUTAL/Binaries/Win64/VLADiK_BRUTAL-Win64-Shipping.exe";
const STEAM_COMPAT_CLIENT_INSTALL_PATH = `${process.env.HOME}/.local/share/Steam`;
if (fs.existsSync(STEAM_COMPAT_CLIENT_INSTALL_PATH)) {
	const [ ver ] = fs.readdirSync(`${STEAM_COMPAT_CLIENT_INSTALL_PATH}/steamapps/common/`).filter(proton => proton.startsWith('Proton '));
	if (ver) {
		const STEAM_COMPAT_MOUNTS = `${STEAM_COMPAT_CLIENT_INSTALL_PATH}/steamapps/common/${ver}`;
		const STEAM_COMPAT_DATA_PATH = `${process.env.PWD}/prefix`;
		const WINEPREFIX = `${STEAM_COMPAT_DATA_PATH}/pfx`;
		if (!fs.existsSync(STEAM_COMPAT_DATA_PATH))
			fs.mkdirSync(STEAM_COMPAT_DATA_PATH);
		exec(`"${STEAM_COMPAT_MOUNTS}/proton" run "${filePath}"`, {
			env: {
				...process.env,
				STEAM_COMPAT_CLIENT_INSTALL_PATH,
				STEAM_COMPAT_MOUNTS,
				STEAM_COMPAT_DATA_PATH,
				WINEPREFIX
			}
		});
	}
}


grails: 5.1.7 -> 5.1.9

Description of changes
https://nvd.nist.gov/vuln/detail/CVE-2022-35912
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

[x] 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/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@risicle: Can you please link to the CVE in the commit message?

I guess we want to backport this to release-22.05, so in preparation for that I added the backport label to grails: 5.1.6 -> 5.1.7.

Auto-backport won't work on this PR as I've added a grails: mark as sourceProvenance binaryBytecode commit which 22.05 won't like. I think it'd be best to manually cherry-pick this PR's first commit onto the 5.1.6 -> 5.1.7 PR that gets produced.

Manually created backport PR: https://github.com/NixOS/nixpkgs/pull/182637.


Does the navigation work in sail based environments?

Hi. Does it also work with apps that are running using laravel sail? I get an issue when running the health check:
blade-nav: require("blade-nav.health").check()

Blade Nav health check started ~
- OK Neovim version: 0.9.5
- OK Operating System: Darwin
- OK PHP 8.3.10 (cli) (built: Jul 30 2024 13:44:37) (NTS)
- OK    Illuminate\Contracts\Filesystem\FileNotFoundException
- ERROR Cannot run artisan
- WARNING Blade command components-aliases cannot be checked
- OK composer.json
- OK resources/views
- OK vendor/composer/autoload_psr4.php
- WARNING Git repository not found

When trying to navigate using gf I get the following error:
E5108: Error executing lua: ...im/0.9.5/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 172 for language php
stack traceback:
        [C]: in function '_ts_parse_query'
        ...im/0.9.5/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'parse'
        ...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:80: in function 'seek_for_function_and_name'
        ...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:243: in function 'find_name'
        ...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:403: in function 'get_component_name_and_prefix'
        ...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:636: in function 'gf'
        ...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:718: in function <...ocal/share/nvim/lazy/blade-nav.nvim/lua/blade-nav/gf.lua:717>

Hi @vivere-dally, I see two different issues here, first is sail support and the second is invalid node type.
Sail
Since I'm not using it blade-nav is not aware of it. PR are welcome
Node type
This have nothing to do with blade-nav, there is an issue when treesitter queries the tree. Can go deeper since in all my code is working well. If you can provide a minimal snippet where it fails I can check it.

@vivere-dally I was thinking about this; It works for me with Sail, because I'm able to run artisan (or at least commands used by blade-nav) without starting Sail.
I have PHP 8.3 installed and sail projects are using 8.3 as well.
But indeed, currently the commands are not ran with Sail and I presume it could be a nice PR.


Remove redundant Hashable conformance

This is a new warning in Swift 3.2 on Xcode 9

Thanks for merging promptly! 🙇
When it's convenient for you, we'd also appreciate it if a new release with the fix can be cut for CocoaPods. Thanks again!

@simonyangme No problems! 👍 Will make a new release shortly, but since it's a breaking change for Swift 3.1 I need to make it Wrap 3.0, so want to have a little think if there's something else that should be bundled with that release (while we're breaking the API anyway).

@JohnSundell Any updates on a new release?


Runtime Error on main site

Here is what to include in your request to make sure we implement a solution as quickly as possible.
1. Description
Describe the issue or propose a feature.
Runtime Error / YSOD on https://entityframework-plus.net/ and https://entityframework-extensions.net/
2. Exception
If you are seeing an exception, include the full exception details (message and stack trace).
Exception message:
Stack trace:

Hidden behind YSOD

3. Fiddle or Project
Load either URL in browser
4. Any further technical details
Add any relevant detail can help us.

Site now working


Add Thai translation.

Here is the Thai translation for the plugin!
I'll update the translation when new version is released, thanks!

This needs to be in a different branch ;)
Added to 2.5.0 (81b9a9a345e2067da164b1f8c31946c83a8d927e)


Historical data representation

Summary
We tend to think of historical data as time series and we represent them accordingly in QL. But is this really a good fit for all kinds of historical data we collect? It surely works well for measurements taken at regular intervals, but not so well for tracking state changes. We need to do some brainstorming to figure out how to store data in a way that's then easy to query. So let's get the ball rolling...
Detail
Ideally each time series we collect should be a time-indexed sequence of device data observed at regular intervals, e.g. every 5 seconds. This is akin to sampling in signal processing and makes it easy to write queries for feeding data into visualisation tools like Grafana.
While this may be true of data collected from devices that send measurements at regular intervals (think temperature sensor), it's definitely not the case for some other kind of devices that only send out data when the device state changes. For example, a parking sensor may only send a notification message when a car enters or leaves a parking bay which makes it tricky to write queries to sample device state---e.g. how many bays were free between 2 and 3pm in the past week? It could be that some bays freed up before 2pm and so we have no corresponding data points between 2 and 3pm which will cause the query to return bogus results.
We have to figure out how to represent this kind of data with a time series or come up with an alternative arrangement that makes it easy to query device state.
How to cope with missing data?
The problem here boils down to how we interpret the data. The conceptual model we have in mind when we think of a time series is that of a sequence of data points d[t[n]] indexed by a sequence t[n] where:

t[n] is a point in time.
t[n] < t[n+1]
t[n+1] - t[n] = c for some constant c, i.e. the time points are equally spaced in time.

We then write queries against data collected for a time period of interest P by making a number of implicit assumptions:

c is "reasonably" small
we can partition P into "sufficiently" large intervals [p[n], p[n+1]] so that each interval will contain some data points---e.g. c = 5 secs and p[n+1] - p[n] = 1 min.

The trouble is that in practice we can't be sure (3) holds true and as a result (4) and (5) go out of the window. So there will be situations when some or even most of the intervals [p[n], p[n+1]] contain no data points. How are we supposed to interpret the absence of data? Well it depends on the kind of device that's sending us data and/or software errors. If the device is measuring a continuous, time-varying quantity (e.g. temperature) at periodic intervals m[k], then it's tempting to say that lack of data for an [p[n], p[n+1]] implies a software error---e.g. Orion didn't notify QL. But that assumes for each n there exist k such that m[k] ∈ [p[n], p[n+1]]. Perhaps a fair assumption if (3), (4), and (5) hold true. On the other hand, if the device is only notifying us of state changes (e.g. parking sensor), lack of data typically means that the state in the most recent notification is still the current state.
Example
Here's a visual representation of the parking lot example where it's easier to see how trying to represent discrete dynamical systems with time series may lead to bogus results when querying the data.

For example, how would we write a query to figure out what is the free to occupied ratio for the given period of interest? Or to find out how many bays were free/occupied on average? In the diagram above there happens to be just one data point of the same kind (free/occupied) in each interval [p[n], p[n+1]] but if we partitioned the period of interest in intervals double the size, then the interval [p2, p4] would contain two "occupied" data points as well as two "free" data points. How would that affect the previous queries?

Here's an algebraic "interpretation" of what it means to keep a historical record of device data. It'll come in handy later when discussing this issue further.

Here's another example where interpreting the data as a "plain" time series could result in misleading analytics. Say we have a waste container with a sensor that sends us periodic waste level measurements in kilograms:

How would we go about answering basic questions like: how much waste did the container collect from time point p0 to p1? The first thing that springs to mind is writing a query to sum waste level data in the QL time series, something along the lines of:
SELECT sum(waste_level)
FROM waste_container_entity
WHERE p0 <= time_index AND time_index <= p1
  AND entity_id = 'device:25'

which would bring back 440kg. But a closer look at the diagram above reveals the right answer is actually 130kg---well, or close to that. The problem with the query is that just looking at the data points in the time series without considering waste container state (empty/full) isn't enough to get the right answer...

So we'll have to be able to query device data not only in relation to time but also to device state and location. While location shouldn't be too much of a problem (well, at least if we can assume devices are immovable), state is trickier. So let's start with a conceptual model of devices, observations, time and state. Then we'll build on this to come up with a possible solution for the kind of dashboard queries we'd like to support initially.
Conceptual model
Devices collect data about physical resources or systems and may reflect their state---e.g. an occupied parking bay, an empty waste container, current temperature at some place. So devices give us information about how some system evolves over time. Things of interest typically include:

state of a set of resources at a specified time point or interval
tracking of data points over time in relation to state changes
partitioning of data points by state over time

For example:

How many parking bays are currently free?
How many were free two hours ago?
How did bay occupancy vary over the weekend?
What was bay availability (free vs occupied ratio) for the past week?
What are the load measurements received since a waste container was
last emptied?

To answer such questions we have to be able to relate data points to the resource state at the time when they were collected. If we model resources as automatons, then a device collects data about an automaton so each data point has an associated automaton state and the order in which data points are collected has to agree with the automaton evolution over time. Since the queries we'll have to support only involve automaton state (events and transitions aren't relevant), we can "squeeze" the automaton into a simpler system were there are no self-transitions and all transitions from a state to another get collapsed into one. Here's a diagram to sum up the conceptual model.

The state evolution map tracks how the system evolves in response to events that trigger transitions to new states: starting from an initial state at 0, when an event results in a transition out of this state,
the evolution step count becomes 1 and gets associated to the new state. So the state evolution map records a path in the automaton graph. On the other hand, the step map ties observations to state evolution: it tells you which data points were collected in which state. Finally, the time index records when an observation was made so that if we take the three maps together we're able to tell that e.g. data point d[5] was collected at 10:55 while the system was in the x state.
Note: Algebraic model
@taliaga @chicco785 A bit of a handwavy explanation, let me know if I should add more detail and/or make it clearer. For the record, there's a precise and more concise way of saying all this, namely that those maps are functors among prosets, but I don't think we need to get bogged down with the mathematical details? Also note this model came about as a simplification of the initial one I sketched out in a previous comment since I felt we don't need that level of generality at this stage?
Worked example
Here's an example of how to put all that abstract nonsense to good use to write relatively simple SQL queries for seemingly hairy scenarios. Suppose we want to know the availability ratio (available vs unavailable) of an EV charging station over a given period of time (e.g. a week) and each data point comes with time and state (free, occupied, charging) attributes as shown in the upper half of this diagram:

Then, as shown in the bottom half of the diagram, it's relatively easy to figure out how to compute the wanted ratio. In pseudo-SQL:
SELECT sum(delta) / (p1 - p0)
FROM (
    SELECT (max(t) - min(t)) AS delta
    FROM entity
    WHERE id = $entity_id
      AND (state = O ∨ state = C)
    GROUP BY step
)
WHERE t ∈ [p0, p1]

Also we can easily extend this to work across entities to get the availability ratio for the whole parking lot:
TODO: explain how and why it works whereas averages would be wrong.
Proposed solution
We could extend Quantum Leap to store an additional two attributes for each entity:

State label: string to identify each of the automaton states.
Step counter: long to count transitions from the initial state.

While some devices provide an indication of the current state (e.g. parking sensor) others apparently don't (e.g. waste sensor) in which case we'll have to fill this in before inserting a data point into the
DB. @taliaga made a very good point that this shouldn't happen in QL if we want to keep generality! On the other hand, the step counter can be computed in a totally application-agnostic way simply by adding 1 to the last stored counter value if the state label is different---but be mindful of concurrency here!
How to query the time series though? One option would be to implement a simple plugin architecture whereby QL makes provisions for registering modules implementing arbitrary queries and exposing them as REST endpoints. For example,
GET /queries/parking/availability?from=xxx&to=yyy&...

would be routed to the Python script availability.py in the parking directory within a configured plugin directory. This should be quite a straightforward thing to do and would save us from having to think about generic queries.
In fact, another option would be to come up with a (semi-)generic way of querying time series by partitioning them by state and time and then apply aggregate functions to those partitions---e.g. think of generalising the query in the above worked example. Then we'll need a way to encode that in a URL. While it can be done, I'm not entirely sure yet how to get a good level of generality here since we only have a handful of examples to look at. On the other side of the spectrum, we could go full-on generic, concoct a REST API that lets you encode almost arbitrary SQL queries (possibly an extension of the NGSI Simple Query Language?), use ASTs to represent, analyse, and translate them, etc. This approach also has the welcome side effect of killing two birds with one stone: refactor our Crate translator and avoid SQL injection...

@c0c0n3 there must be a simpler way than representing directly the state in ql for each entity.
consider that the same entity, for different parameters may have a different concept of state. as a matter of fact, you can define "a function" to compute the state and steps dynamically.
o maybe you want to change (for whatever reason) the way state is computed (and hence steps defined)

@chicco785 yah, perhaps there's an even simpler way of doing this. But keep in mind that not storing the state info and computing it dynamically could have a huge negative impact on performance---e.g. how to group data point by step efficiently?

i am thinking of using views. but at the moment is suspect there is no way given the limitations of crate supported SQL. but i may 100 % wrong :)


model.S not sparse double

Description of the issue:

Right now, model.S is double instead of sparse double. Should fix that.

I hereby confirm that I have:

[X] Tested my code with all requirements for running the model
[X] Done this analysis in the master branch of the repository
[X] Checked that a similar issue does not exist already
[X] If needed, asked first in the Gitter chat room about the issue

@feiranl is this for performance reasons only, or are there any COBRA/RAVEN functions that error because of this format? If only the former, maybe we should first show a performance comparison to see if it's worth it (as having S as double makes operations much less verbose)

model.S in our model right now is double, I don't know when this happens, should we changed back to sparse double?

I'm not familiar with any benefits of having the matrix as sparse (maybe someone can weigh in here). If it is significant, we could try to see how to change it.

this issue will be closed as it is not an issue with the model, but rather cobratoolbox changing their parsers at some point to load the model with S as a double matrix instead of sparse.


Osei-b4: Separation-Of-Concerns: 3 Weeks

u## Learning Objectives

Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)

There is a lot to learn in this repository. If you can't master all the material
at once, that's expected! Anything you don't master now will always be waiting
for you to review when you need it. These 4 emoji's will help you prioritize
your study time and to measure your progress:

🥚: Understanding this material is required, it covers the base skills you'll
need to move on. You do not need to finish all of them but should feel
comfortable that you could with enough time.
🐣: You have started all of these exercises and feel you could complete them
all if you just had more time. It may not be easy for you but with effort you
can make it through.
🐥: You have studied the examples and started some exercises if you had time.
You should have a big-picture understanding of these concepts/skills, but may
not be confident completing the exercises.
🐔: These concepts or skills are not necessary but are related to this module.
If you are finished with 🥚, 🐣 and 🐥 you can se the 🐔 exercises to push
yourself without getting distracted from the module's main objectives.

[ ] 🥚 event-driven programming: identify the concept in a JS program via listeners & handlers
[ ]🥚 entry points: describe what an entry point is, there are 2 kinds in the programs for this module - initialization & interaction. identify them in a program
🥚 function roles: describe what function roles are and why they're important. they can identify a function's role given checklists for each role covered in this module:

[x] listeners: functions that attach event listeners to the DOM
[ ] 🥚 handlers: entry point for user interactions
[ ] 🥚 utils (utilities): pure functions to help do things with data
[ ] 🐣 components: render data into DOM elements to display for the user
[ ] 🐥 custom events: create custom events events in your components, passing useful data between components and handlers

[x] 🥚 DOM access: You read and write values from the DOM in an event handler
[ ] 🥚 es5 vs. es6: You can demonstrate the change in developer-experience pre and post es6 by stepping through in the debugger and explaining differences in scoping (global vs. script, block vs. local, modules) between two programs with identical user experience but different implementations.
[ ] 🥚 Scope Hierarchy: You is comfortable navigating different scopes in the browser's debugger to understand an existing application (script, module, closure, local, block)
[ ] 🥚 Code Splitting: You can use ES Modules to split your code into multiple files & folders according to function role, data, listeners and initialization. They can use generated dependency diagrams and documentation to understand and navigate this folder structure.
[ ] 🥚 Dependency Graphs: You can use a project's dependency graph to understand how it is organized and to navigate the source code.
[ ] 🥚 Development Strategies: You can write development strategies that have all of the program's state defined at the beginning, and separate each user story into interface and interaction tasks.
[ ] 🐣 Naming Functions: You can come up with clear and helpful names for the functions in your program. A good function name will take into account the function's role and the program's domain, like in the /naming-variables exercises from Debugging.
[x] 🐣 DOM manipulation: You can manipulate the DOM when implementing level-appropriate user interactions
[x] 🐣 Isolating Components: You can use a test.html file to render your components with different inputs
[ ] 🐣 Forms: You can do basic handling of form data via event.target.form
[ ] 🐣 Handling events: You can use the event argument to process user interactions, including bubbled events using event.target
[ ] 🐣 Passing Component Unit Tests: You can write vanilla DOM component functions to pass provided unit tests
[ ] 🐣 refactoring: refactor a single-script tutorial-style web page into multiple files using imports and exports
[ ] 🐥 reverse-engineering: You can incrementally reverse-engineer a level-appropriate user interaction following these steps:

init
Listeners
Handlers
(possibly): Utils, Components, Custom Events

[ ] 🐔 From Spec: given user stories, You can develop a site from scratch using a template repository.
[ ] 🐔 Writing Component Unit Tests: You can write unit tests to validate your component functions using BDD syntax

Week 1

[x] I have pushed my progress to my fork of exercises repo

I Need Help With:
The DOM so I can understand how to work around it and get good insights into it.
What went well?
Understand some parts of DOM such as the APPEND.CHILD etc.
What went less well?
Have to arrange the CHILDREN in a good form for it to work in the DOM
Lessons Learned:
Separation-Of-Concerns

[x] DOM MANIPULATION
[x] DOCUMENTS.GETELEMETBYID ()
[x] DOCUMENTS.QUERYSELEVTOR ()
[ ] ETC

Sunday Prep Work for the next Adventure in Separation-Of-Concerns

You also need to paste here the link to your fork.


Add nunique_approx

This follows on to #1358 cc @mikegraham
Mike if you check the "allow edits from maintainers" box I'll push these to your branch instead.
cc @jcrist @jreback I'm trying to push this in both for #1288 and #1796

I think that this came up before, but I'm tempted to change this API to add an approx= keyword to nunique rather than have a separate method.  We would rename keywords like b= to approx_b=.

This appears to fail for series with low cardinality.  cc @mikegraham

@mrocklin Thanks for returning to this. I checked the box.

https://github.com/pandas-dev/pandas/pull/14729

@jcrist thanks also for your review here.  I've fixed many of the issues, but skipped a bit on some of the hashing things, which have since moved to pandas and are here only as a stopgap.

I'm not confident that the algorithm can combine intermediate results.

You can, it's just the maximum value at each index.
The reason I hard-coded split_every, IIRC, was that originally aca didn't have it, so I wrote it without, then when I rebased a newer master I just did the easiest thing to get it running.

I'd like to merge this soon.

Closing in favor of #1358 , which I intend to merge soon


Cards of the Same Type but different values being dealed equally

Whenever two cards of the same type, say a yellow snow card with a value of 7 and a maybe another card that's yellow/snow but it's value is 2, those two cards will be dealed as if they are the same exact cards and will not count as a move which is incorrect.

This issue is inconsistent and will not always appear after I have tested various times,
 but here's what the console looked like when it did occur.

explain more? That console o/p doesn't support your theory.


WiFi.reconnect() is used but doesn't work if no initial connection

If the WiFi client doesn't make an initial connection, the .reconnect() function can't work. This might need to be replaced with a WiFi.begin()

closing based on refactored code


clean notebook IDs

Changes
adds a small function util._clean_notebook_ids to remove the autogenerated JuypterLab ID field from notebooks for better diffs when needed.
Also fixed broken black action

Maybe we should put this into the scripts folder and add a script that automatically clears all our notebooks

Maybe we should put this into the scripts folder and add a script that automatically clears all our notebooks

good idea :)

Maybe we can also execute
jupyter nbconvert --clear-output --inplace NOTEBOOKNAME.ipynb

per notebook to clear the cells too

I like it, I removed the outputs (and execution_count) manually so that there would be no need for nbconvert as a dependency

nbdime will be your friend in terms of pre-commit hooks (and notebook diffs etc.)


Feature/reblog screen

What does this PR?
Where should the reviewer start?
Steps to reproduce
Issue number
Screenshots/Video

@ue updated


UX/UI Rework

Let's chop it up a little different:
Common thread: research, with or without contextual understanding of department functions.
Brainstorm:

[ ] Categorize departments by function
[x] Streamline department and demographic search function (tag-esque build-a-search)
[x] Rework the layout to make graphics easier to consume (whitespace, typography, simple section borders)
[ ] Replace highchart with d3, allowing for animated transitions of data (using motion design to help lead people through the data)
[x] Move big blob of text out into "About" section/page

Sections:

"Search"y section
Simple listing (tabs? Grid of lists with categories for headers?)

Flow of steps (perhaps lightly animated a la healthcare.gov forms):

Hello and prompt
Devise department search (type in keyword, category, dept name; full text dropdown suggests dept you may be looking for)
Select demographic you'd like to see viz of (gender, race, both)
Viz generated as you pick your options, UI slides down to see it

Good stuff @enlore Thanks for the contribution


Sine wave signal denoising using Convolutionauto-encoders

Pull Request for DL-Simplified 💡
Issue Title: Denoising a simple sine wave using Convolutional Autoencoders

Info about the related issue (Aim of the project): The goal of this project is to denoise a simple sine wave using Convolutional Autoencoders. The noisy sine wave is cleaned up by reconstructing the signal through feature extraction and noise reduction.

Name: Spandana A P

GitHub ID: https://github.com/spandana2004

Email ID<EMAIL_ADDRESS>

Identify yourself: contributor @ GSSoC 2024 Extd, Hacktoberfest 2024 Contributor

Closes: #918
Describe the add-ons or changes you've made 📃
In this PR, I have added a new feature that denoises a sine wave using a Convolutional Autoencoder. The steps include:

Preprocessing the noisy sine wave
Training a 1D Convolutional Autoencoder
Visualizing the denoised signal along with the noisy and original signals

Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested? ⚙

The code was tested using synthetic noisy sine wave data, and the model was trained on it.
The output was visually compared by plotting the original, noisy, and denoised signals, showing effective noise reduction.

Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

@abhisheks008 will do the required changes. Can i implemented the other 2 models by creating a new issue?

@abhisheks008 will do the required changes, I had a doubt about what to be given in the images? is it the results? Can i implemented the other 2 models by creating a new issue?

In the Images folder, you can put the EDA results, model accuracy heatmaps and so on.
No you need to create other two models inside this same .ipynb file.

@spandana2004


force render after candace adjusted jhudsl-robot

Trying again, see https://github.com/jhudsl/OTTR_Template/issues/400

🎉


Use jenkins utility function to print stack trace : printThrowable(e)

To debug #1834

https://javadoc.jenkins.io/hudson/Functions.html#printThrowable-java.lang.Throwable-
https://github.com/jenkinsci/jenkins/pull/1485

https://bugs.openjdk.java.net/browse/JDK-6507809

inspired by https://issues.jenkins-ci.org/browse/JENKINS-44808


trimLeft and trimRight's doc comments are swapped

TypeScript Version:  3.5.1-

Search Terms:
trimLeft
Code
Comment issue. there is no code to reproduce it.
Expected behavior:
trimLeft is alias of trimStart. trimRight is alias of trimEnd.
Actual behavior:
trimLeft has a same comment of trimEnd and trimRight has a same comment of trimStart.
Playground Link:
Related Issues:
None

Thank you @shibukawa!


Webhook not injecting Env Vars or Volumes/VolumeMounts on initial deployment to a new cluster

What happened:
Deploying multiple services on my cluster such as cluster-autoscaler, external-dns, ebs-csi-drivers.  On initial deployment the pods do not receive the environment vars, volumes, and volumeMounts.
When I manually delete the affected pods after automated deployment, I get everything as expected from the webhook.
I've followed every possible AWS document on troubleshooting IRSA.  I initially thought it could be a race condition post cluster instantiation, but I tested delaying the deployments as long as 10 minutes and the results are the same.
What you expected to happen:
Environment vars, volumes, and volumeMounts are injected into the deployment's pod specs without need for manual deletion of the pods.
How to reproduce it (as minimally and precisely as possible):
Create an EKS cluster, create an IAM OIDC provider, Create a IAM Policy, Create a Role, Attach the Policy to the Role, Create a trust relationship in the role referring to the OIDC provider and the Kubernetes service account, and finally do a helm release with appropriate values to specify the corresponding namespace, service account name, and annotations required for the roleARN to tie it all together.
Anything else we need to know?:
Not that I can think of, but feel free to ask for more :).
Environment:

AWS Region: us-east-1 (have tested in many with same result)
EKS Platform version (if using EKS, run aws eks describe-cluster --name <name> --query cluster.platformVersion): eks.3
Kubernetes version (if using EKS, run aws eks describe-cluster --name <name> --query cluster.version): 1.24 (also tested 1.23 with same result)
Webhook Version: ? whatever comes with EKS 1.24.8

I am experiencing the same issue. Our cluster is a Kops managed cluster. We deployed a service that had two replicas. We noticed that one of the pod was able to access the s3 bucket but the other wasn't. On investigation, the pod that was not able to access the bucket didn't have AWS_ROLE_ARN AWS_WEB_IDENTITY_TOKEN_FILE environment variables. The pod that was able to access the s3 bucket had these environment variables. I checked both pods had the same service account. When I deleted the pod with the missing environment variables, the new pod created had these two environment variables.
My kubernetes version is v1.22.5.  The amazon-eks-pod-identity-webhook version is as follows
Image:         amazon/amazon-eks-pod-identity-webhook:latest     Image ID:      docker-pullable://amazon/amazon-eks-pod-identity-webhook@sha256:4a3ff337b6549dd29a06451945e40ba3385729c879f09f264d3e37d06cbf001a
Any information will be highly appreciated.

This looks very similar to an issue we are hitting. Here was our conclusion (courtesy of @strongmonkey):

When diving deep, this is because a race condition in aws-identity pod where serviceaccount and pod get created at the same time. It uses cache to fetch serviceaccount, which might not be ready when the pod was created.

@jsilverio should be able to share a WIP PR soon.

In our case, we are probably exacerbating the problem by:

creating the deployment before we create the serviceAccount (Its programatic and very close together, so there isn't a long delay, but maybe just enough for a race)
Using this webhook in k3s, which might make it worse because in an HA setup in k3s watch events could get delayed 2 seconds

In my case, I'm running on EKS, however I'm performing my deployments via Helm charts, where the ServiceAccounts and related annotations are being deployed via the values at the same time (using the charts).
I also tried pre-provisioning the ServiceAccount with the annotations, but it did not change the behavior, and lead me to believe it was something else altogether.
In a similar situation to @cjellick , my entire cluster provisioning process is being done programmatically via Crossplane.  Just to reiterate, I do not believe it's a problem with my configurations, because when I delete the pods after their first instantiation everything works fine, but the initial deployment of the pods do not pick up their IRSA privileges.

This is a blocker for us to adopt pod identity (as a switch from IRSA). We create IAM Role (using ACK controller), PodIdentityAssociation, ServiceAccount and Deployment in the same helm chart. On initial install, pods come up without the identity mutation, winning a race we want them to lose. This occurs even hardcoding roleARN in the PodIdentityAssociation, ie we are not waiting for status on the Role.
Installing PodIdentityAssociation in a helm pre-install hook does not help: the resource comes up and is ready very quickly, but our pods still come up before mutation is ready.
Waiting a minute and restarting Deployment gives us new pods with correct mutations.

We are use using Argocd to deploy our services and are also looking at pod identity. Our services are deployed using a Helm chart and we added a PodIdentityAssociation custom resource to our Helm chart so the ACK EKS controller can create the association for us (the IAM role is created with Terraform before the service is deployed).
To try and solve the race condition, we added an Argocd preSync hook on the PodIdentityAssociation customer resource (source). But even with the preSync hook, the race condition still exists like @rlister mentioned.
In an effort to solve this issue, we added a customisation to Argocd and only mark the PodIdentityAssociation custom resource as Healthy when an associationId is filled out in the status field of the PodIdentityAssociation custom resource (source). With this in place, the pod identity association is created before the deployment is created but the necessary environment variables on the pods are still not injected and we still have to restart our pods for it to work.
We verified that the Argocd customisation works by downscaling the ACK EKS controller to zero before creating the Argocd application of the service. When the Argocd application of the service is added to Argocd, all the resources are out of sync and Argocd is waiting for the PodIdentityAssociation to be Healthy. Argocd shows the message waiting for completion of hook eks.services.k8s.aws/PodIdentityAssociation/<service-name> until the pod identity association is created. When ACK EKS controller is scaled up, the pod identity association is created and the rest of the Argocd application is synced but the pods still don't have the necessary environment variables injected until the pods are restarted.


ionic run android -lc build failed

`/home/bishoy/Desktop/Patients-app/platforms/android/src/plugin/google/maps/PluginMap.java:122: error: cannot access AbstractSafeParcelable
  Builder builder = CameraPosition.builder();
                                  ^

class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.

What went wrong:

Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
`
I don't know why this error keeps coming up after I try to run : ionic run android -lc

https://github.com/killerkarnikel

https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1200#issuecomment-263515708


Depends on 2.4.0 version of moment.js

Currently the version in the bower package relies on version 2.4.0 of moment.js but they are up to 2.8.4.  Can this be fixed?

This repository seems to be defunct but this plugin is very useful.  Since @c-trimm has not touched it in 6 months I have made some updates and moved it to: https://github.com/bramski/moment-recur-js
Please revisit your issue there, thanks!
This specific issue is fixed there.

Please see: https://github.com/c-trimm/moment-recur/releases/tag/v1.0.1


SGSSB: Nerf VXN

I have no idea on how I made a useless mon so OP...

Hey can you remove some of the animations on your C move? Theres way too many.

Aww ok

Tell me if you want me to remove more

Limit it to 4 please

Ok

@HoeenCoder ready to merge


Fancy new github issue templates?

I just realized that github has these cool new issue templates thingy that make opening a bug look like this:

This comes down to modifying the issue template to become many.

There's an extra indirection, but the issue template becomes much cooler.

nice, i think we should use it


[PE-D] The constraints for task description are inaccurate

The constraints for task descriptions are that it should not be blank or start with white spaces, and the length should be less than 256 characters:
However, I cannot create descriptions with foreign language characters, as in the example below:

Labels: severity.Low type.FunctionalityBug
original: muraddurrani/ped#2

Can say that we only allow "Alphanumeric and special characters only".


MM-20027 - Reporting > Statistics showing 'Loading...' when value is zero

Summary
Statistics widget checked for 'loading/undefined' state by using !count instead of actually checking if it's undefined
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-20027

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-4301.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

New commit detected. SpinWick will upgrade if the updated docker image is available.

Test server creation failed. See the logs for more information.

Test server destroyed

ooops. merged by mistake 😢

No worries @reflog - we can test post-merge


Add ddl to cli

Enables the below which i think is pretty cool. Testing for this will be included in my config testing PR - i was just quite excited about this after i realized how easy it would be so wanted to get it in quick.

@alamb FYI

Maybe --run-ddl would be a better parameter name for this

Yes, it runs .config/dft/ddl.sql before running the provided command or file. It goes towards the objective of having local DB experience.

I was excited about it because i know it will be useful for me in my day-to-day using dft. But its really not a big deal.
What would make it really cool is having a persistent catalog to use so that if you have a lot of DDL defined that you dont spend a long time running that.


zip command not found

If the zip command is not present this code will return an error but packageResult.stderr is empty and the publish stage will be triggered anyway.
Then it shows an error on the screen that is not easily understandable.
https://github.com/semantic-release/wordpress/blob/e8b42e55b94b8431fcc90048c2cad167357511f3/lib/publish.ts#L18-L35
It would be a good idea to check whether the zip command is already present during the verify stage.

Since the publish stage is meant to be run in a CI environment, and as far as I know, all of CI environments have some semblance of a zip command - I thought the check is unnecessary.
@travi - Thoughts?

@seebeen in my CI I had to configure like this to make it work
release:
  image: node:20
  stage: release
  before_script:
    - apt-get update
    - apt-get install -y zip
  script:
  ...

I'll czech 😞

@travi - Thoughts?

sounds like youre already landing here, but i supposed i'd check in verifyConditions if it is a required condition


Showcase Request: Optimized Tendermint ZK Light Client

Right now, the Tendermint example program verifies all signatures in a block. However, it's performance can significantly improved by early exiting from the verification of signatures once enough of the stake weight has been verified (2/3).
This would involve modifying the Tendermint-rs library to early exit and also creating a utility method for retrieving the signatures from top-validators by stake weight.

I am new to this, but I know rust can you please point out which part of code I need to modify and what changes are required and some resources to help me do it would be great. @puma314

i will take on this


Unfortunate channel naming can lead to mixed up hyperparameters in budget allocator

Issue
When running the budget allocator on our internal data, the gamma / inflexions parameters of some channels got mixed up due to unfortunate variable naming and implicit sorting logic in the code.
Internally, one of our media channels is called fb_value_opt (FB value opt campaign) and another is called fb_value_opt_ads (FB value opt campaign that also optimizes for ad revenue).
In the budget allocator the hill parameters are fetched from the model results here.
The get_hill_params() function is defined here.
In this function is a part where the inflexion points are calculated. The following code assumes that the chnAdstocked columns are sorted identically as the gammas vector.
inflexions <- unlist(lapply(seq(ncol(chnAdstocked)), function(i) {
    c(range(chnAdstocked[, i]) %*% c(1 - gammas[i], gammas[i]))
  }))

However, as the below example shows, this is unfortunately not the case if the variables are named as above. In our case, this meant that inflexion points for these campaigns were calculated wrong which had a very drastic impact on the budget allocator. No error was raised, we only identified this issue because we independently ran the robyn_response on these channels and got back different results.
Provide reproducible example
sort(c("fb_value_opt", "fb_value_opt_ads"))
[1] "fb_value_opt"     "fb_value_opt_ads"

sort(c("fb_value_opt_gammas", "fb_value_opt_ads_gammas"))
[1] "fb_value_opt_ads_gammas" "fb_value_opt_gammas"

Potential fix
In our case, we fixed the issue by changing the sorting of the gammas vector inside the get_hill_params() function. We also changed the sorting of the alphas vector to be safe.:
...
names(gammas) <- stringr::str_remove(names(gammas),"_gammas")
gammas <- gammas[names(chnAdstocked)]
names(gammas) <- paste0(names(gammas), "_gammas")

names(alphas) <- stringr::str_remove(names(alphas),"_alphas")
alphas <- alphas[names(chnAdstocked)]
names(alphas) <- paste0(names(alphas), "_alphas")

inflexions <- unlist(lapply(seq(ncol(chnAdstocked)), function(i) {
    c(range(chnAdstocked[, i]) %*% c(1 - gammas[i], gammas[i]))
  }))
...

There may be more elegant solutions to this.
I know this may rather be an edge case problem due to our channel naming, but it had quite a drastic impact on our results.

thanks very much for raising this! we didnt consider this case and will include a fix soon. will keep you updated.

Hi! Thanks for looking into this. I now ran different iterations to check on the consistency of the results:

Running the same model with "standard naming", i.e. no varname is a substring of another varname.
Running the same model with "unfortunate naming", i.e. some varnames are substrings of other varnames.
Running the same model with "standard naming" but with minor changes to the initial varnames.

Version 1 and 2 produce different model results. This indicates that the sorting issue also occurs somewhere in the modeling and/or output generation process.
Version 1 and 3 produce identical results. This was expected, but I wanted to rule out that changing names, in general, can produce different results.
For now, I will continue using standard names to rule out any issues for my project.

Please reopen if necessary.


Ble fix

Description: Bugfix for devices to track and improved configuration for the scan duration
Related issue (if applicable): Initial module did not read devices correctly from know_devices.yaml
Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

🐬

:dolphin:

Looks good :dolphin:

It would be good if this could be merged in the 0.27.2 release as it is a bug fix for the new BLE presence detection module introduced in 0.27

@robbiet480 can we add this to 0.27.2?


Can't select specific file in dropdown

Details
Hi and thank you for the awesome plugin firstly. I'm having an issue with not being able to choose the desired file for my homepage in the options menu. Is there any way to force it if the dropdown can't find the page I'm looking for? Even if I type it correctly it doesn't work unless I successfully click/choose something from the drop down.
In the picture I'm trying to make the root file My.md the homepage, however it keeps looking deeper into the "My" folder structure, if that makes sense. Basically I'm unable to make that root file the homepage at the moment.

Steps to reproduce
No response
Debug information
{"version":4,"homepages":{"Main Homepage":{"value":"My","kind":"File","openOnStartup":true,"openMode":"Replace all open notes","manualOpenMode":"Keep open notes","view":"Reading view","revertView":true,"openWhenEmpty":true,"refreshDataview":false,"autoCreate":false,"autoScroll":false,"pin":false,"commands":[],"alwaysApply":false,"hideReleaseNotes":true}},"separateMobile":false,"_defaultViewMode":"source","_livePreview":"default","_focusNewTab":"default","_plugins":["todoist-sync-plugin","tray","mrj-text-expand","obsidian-banners","obsidian-view-mode-by-frontmatter","dataview","obsidian-local-rest-api","templater-obsidian","obsidian-sort-and-permute-lines","obsidian-collapse-all-plugin","obsidian-copy-block-link","better-search-views","rendered-block-link-suggestions","buttons","links","link-favicon","obsidian-underline","table-editor-obsidian","obsidian-style-settings","quickadd","obsidian-admonition","obsidian-hider","OA-file-hider","hide-folders","pin-enhancer","shrink-pinned-tabs","obsidian-text-format","homepage"],"_internalPlugins":["file-explorer","global-search","switcher","graph","backlink","canvas","outgoing-link","tag-pane","page-preview","daily-notes","templates","note-composer","command-palette","editor-status","bookmarks","outline","word-count","file-recovery","sync"],"_obsidianVersion":"1.7.7"}

Operating systems
Windows
Checklist

[X] I updated to the latest version of the plugin.

I think I have a workaround which is just to append a dot (.) to the desired filename and then select it from the dropdown.

If you enter something into the field, by default that will be chosen instead of anything in the dropdown. The dropdown options only take effect if you press Enter, and you can dismiss the dropdown by clicking outside the field.
This is the same behaviour as other settings fields (i.e. in the Daily Notes plugin). Think of it as more of a list of suggestions instead of mandatory options.