Judge model seems not working

I have been using CogVLM2 run on TextVQA and I got accuracy on 4.06 while the InternVL and other models like MiniCPM got roughly 70 or 80 accuracy. I checked the model output with ground truth answer and found that most answer is correct but which too much useless description which cannot easily match the short answer. Then I use my local Qwen model to be the judge model but the acc is still the same. But the evaluation process is roughly 1 hour longer on the A40 than before. How can I check if the judge model is working correctly?

Hi, @ruifengma , the use of judge model has not been officially supported for datasets like TextVQA. If you want to adopt LLMs to help the evaluation of VQA problems, you need to implement your own logic in evaluation scripts like vqa_eval.py

Thanks @kennymckormick , now I see. Btw, where could I find the dataset supporting list for judge model?

Hi, @ruifengma , the following datasets adopt LLMs as choice extractors or judges:

Multi-choice benchmarks or Yes-or-No benchmarks: as choice extractor
Benchmarks that adopt LLMs as judges: MathVista, MMVet, LLaVABench


Document how EF and database cascade behaviors work together

This entire article is about the impact of various OnDelete behaviors, but nowhere on this page is any instruction or example of how to set up / configure this behavior!  This is essential information.  We need examples, like:
modelBuilder.Entity<BlogPost>()
.HasOne(l => l.Blog)
.WithMany(m => m.BlogPosts)
.OnDelete(DeleteBehavior.Restrict);

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

ID: 3ed1b8a1-fa32-e147-ae0f-76b3620473f9
Version Independent ID: 10ce2d9f-8284-a509-5fed-669abfb9d8ae
Content: Cascade Delete - EF Core
Content Source: entity-framework/core/saving/cascade-delete.md
Product: entity-framework
GitHub Login: @rowanmiller
Microsoft Alias: divega

I have a question regarding the necessity of using Include(), ThenInclude() while retrieving the entity to delete.
Say I have a School with many Students and Student reference School back through a Foreign Key in the DB.
If I do,
var school = context.Schools.FirstOrDefault(s => s.Id == 1);
and then try to use context.Remove(school), it fails, throwing an exception about violation of Foreign Key requirements. In other words, the Students are not cascading deleted. If on the other hand, I use
var school = context.Schools.Include(s => s.Students).FirstOrDefault(s => s.Id == 1);
it works and deletes School along with its Students.
It is not a big deal to use Include(...) but it is bothering because I may later have a Disctrict with many Schools. If I want to delete the Destrict, I have to use
var destrict = context.Destricts.Include(d => d.Schools).ThenInclude(s => s.Students).FirstOrDefault(...)
You see that this will become quickly troublesome if we start adding child relations under Student (e.g. Grade, Class, etc.)
What are my options?

@rgamage The API is documented here: https://docs.microsoft.com/en-us/ef/core/modeling/relationships#cascade-delete-1 but I agree this should be easier to find from this page.
@vmkbagci  Usually this is handled using cascade delete setup in the database. By default, Migrations will create a database that has cascade deletes configured. This means that dependents will be deleted by the database when the principal is deleted, even if the dependents are not loaded into the context.

Would it be possible to specify cascade delete on a per-transaction basis instead of at the database definition level?

@Alleno Do you know which databases support this and what the SQL looks like?

Bump.
While the page that @ajcvickers linked to explains the HOW to define the OnDelete behavior, this page really should illustrate the model builder should be for each of these scenarios. The page does do a good job explaining the effect but not the actual how for each scenario. The demo code also lacks illustrating each scenario and only covers the basic Cascade scenario.
Does the Blog or the Post get the OnDelete declaration?


Detect hidden-camera

I'm not sure that it's a question, feature request or bug report!
I am using SafeArea in flutter, But in galaxy-s10-plus my view is under camera, Both MediaQuery.of(context).viewInsets and MediaQuery.of(context).padding are zero
How can I detect camera padding in flutter?

Hi @sm2017
I'm not sure either.
Do you want to consider this as a bug? If so, can you please provide your flutter doctor -v, your flutter run --verbose and a minimal complete reproducible code sample?
Thank you

flutter doctor -v
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.18363.1256], locale en-US)
    • Flutter version 1.22.4 at C:\flutter
    • Framework revision 1aafb3a8b9 (4 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\PC\AppData\Local\Android\Sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\PC\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

flutter run --verbose
[ +138 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +68 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 1aafb3a8b9b0c36241c5f5b34ee914770f015818
[        ] executing: [C:\flutter/] git tag --points-at HEAD
[  +60 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.4
[   +7 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +38 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +70 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +49 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.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] 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.
[  +25 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +62 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:2
[   +9 ms] C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +59 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +8 ms] 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.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] 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.
[ +203 ms] Generating C:\Projects\safearea\safearea\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +21 ms] ro.hardware = ranchu
[  +24 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +20 ms] Starting incremental build...
[   +3 ms] Initializing file store
[   +9 ms] Skipping target: gen_localizations
[   +8 ms] complete
[   +4 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[   +6 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true --output-dill C:\Users\PC\AppData\Local\Temp\flutter_tools.8c60dde\flutter_tool.71b34c65\app.dill --packages .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
--initialize-from-dill build\cache.dill.track.dill
[  +17 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +36 ms] Exit code 0 from: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           12-12 10:01:44.383 E/GnssHAL_GnssInterface( 1745): gnssSvStatusCb: b: input svInfo.flags is 8
[   +1 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +35 ms] Exit code 0 from: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           12-12 10:01:44.383 E/GnssHAL_GnssInterface( 1745): gnssSvStatusCb: b: input svInfo.flags is 8
[  +14 ms] <- compile package:safearea/main.dart
[   +7 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[  +38 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +23 ms] Building APK
[  +19 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] set `android.enableR8=true` in gradle.properties
[   +9 ms] Using gradle from C:\Projects\safearea\safearea\android\gradlew.bat.
[   +1 ms] C:\Projects\safearea\safearea\android\gradlew.bat mode: 33279 rwxrwxrwx.
[   +9 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[  +86 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +2 ms] executing: [C:\Projects\safearea\safearea\android/] C:\Projects\safearea\safearea\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\Projects\safearea\safearea\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+4209 ms] > Task :app:compileFlutterBuildDebug
[  +18 ms] [ +110 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +6 ms] [  +81 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +3 ms] [        ] 1aafb3a8b9b0c36241c5f5b34ee914770f015818
[        ] [        ] executing: [C:\flutter/] git tag --points-at HEAD
[        ] [  +68 ms] Exit code 0 from: git tag --points-at HEAD
[        ] [        ] 1.22.4
[  +55 ms] [   +7 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +20 ms] [  +47 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +11 ms] [        ] origin/stable
[        ] [        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +21 ms] [  +40 ms] Exit code 0 from: git ls-remote --get-url origin
[   +5 ms] [        ] https://github.com/flutter/flutter.git
[   +4 ms] [  +72 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] [  +36 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +34 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +4 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +8 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +14 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] 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.
[        ] [        ] 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.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] 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.
[   +1 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [  +96 ms] Initializing file store
[  +18 ms] [  +18 ms] Skipping target: gen_localizations
[   +1 ms] [   +7 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +27 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\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 C:\Projects\safearea\safearea\.packages --output-dill C:\Projects\safearea\safearea\.dart_tool\flutter_build\2648b11d30023b97de0f903613a8adac\app.dill --depfile
C:\Projects\safearea\safearea\.dart_tool\flutter_build\2648b11d30023b97de0f903613a8adac\kernel_snapshot.d package:safearea/main.dart
[+6248 ms] [+7193 ms] kernel_snapshot: Complete
[ +600 ms] [ +587 ms] debug_android_application: Starting due to {}
[ +699 ms] [ +727 ms] debug_android_application: Complete
[ +700 ms] [ +611 ms] Persisting file store
[   +1 ms] [   +8 ms] Done persisting file store
[        ] [   +4 ms] build succeeded.
[        ] [  +11 ms] "flutter assemble" took 9,324ms.
[        ] [   +3 ms] ensureAnalyticsSent: 0ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +194 ms] > Task :app:packLibsflutterBuildDebug
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:checkDebugManifest
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig
[        ] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugShaders
[  +93 ms] > Task :app:compileDebugShaders
[   +1 ms] > Task :app:generateDebugAssets
[   +1 ms] > Task :app:mergeDebugAssets
[ +200 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug
[  +94 ms] > Task :app:generateDebugResValues
[   +1 ms] > Task :app:generateDebugResources
[ +503 ms] > Task :app:createDebugCompatibleScreenManifests
[ +396 ms] > Task :app:processDebugManifest
[ +110 ms] > Task :app:mergeDebugResources
[ +488 ms] > Task :app:processDebugResources
[+5300 ms] > Task :app:compileDebugKotlin
[ +105 ms] > Task :app:javaPreCompileDebug
[+1503 ms] > Task :app:compileDebugJavaWithJavac
[   +1 ms] > Task :app:compileDebugSources
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[ +160 ms] > Task :app:checkDebugDuplicateClasses
[ +441 ms] > Task :app:desugarDebugFileDependencies
[+3992 ms] > Task :app:transformClassesWithDexBuilderForDebug
[ +401 ms] > Task :app:mergeDebugJavaResource
[  +72 ms] > Task :app:validateSigningDebug
[ +115 ms] > Task :app:signingConfigWriterDebug
[ +218 ms] > Task :app:mergeDebugJniLibFolders
[ +111 ms] > Task :app:mergeExtDexDebug
[ +675 ms] > Task :app:mergeDexDebug
[ +500 ms] > Task :app:mergeDebugNativeLibs
[ +901 ms] > Task :app:stripDebugDebugSymbols
[+3097 ms] > Task :app:packageDebug
[  +98 ms] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[   +1 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 32s
[        ] 31 actionable tasks: 30 executed, 1 up-to-date
[ +351 ms] Running Gradle task 'assembleDebug'... (completed in 32.9s)
[  +21 ms] calculateSha: LocalDirectory: 'C:\Projects\safearea\safearea\build\app\outputs\flutter-apk'/app.apk
[  +22 ms] calculateSha: reading file took 21us
[ +482 ms] calculateSha: computing sha took 481us
[   +5 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[   +4 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\build-tools\29.0.2\aapt dump xmltree C:\Projects\safearea\safearea\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +16 ms] Exit code 0 from: C:\Users\PC\AppData\Local\Android\Sdk\build-tools\29.0.2\aapt dump xmltree C:\Projects\safearea\safearea\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[        ] 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)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.safearea" (Raw: "com.safearea")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="safearea" (Raw: "safearea")
                 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.safearea.MainActivity" (Raw: "com.safearea.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
[   +7 ms] Stopping app 'app.apk' on Android SDK built for x86.
[   +1 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.safearea
[  +54 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.safearea
[  +46 ms] Installing APK.
[   +1 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[  +22 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe
[        ] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +23 ms] Installing build\app\outputs\flutter-apk\app.apk...
[        ] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 install -t -r C:\Projects\safearea\safearea\build\app\outputs\flutter-apk\app.apk
[+1808 ms] Performing Streamed Install
                    Success
[        ] Installing build\app\outputs\flutter-apk\app.apk... (completed in 1.8s)
[   +1 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell echo -n 2224c7fbda5386319481d58be174d63be353e3e8 > /data/local/tmp/sky.com.safearea.sha1
[ +186 ms] Android SDK built for x86 startApp
[   +3 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 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.safearea/com.safearea.MainActivity
[ +415 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.safearea/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+2216 ms] Observatory URL on device: http://<IP_ADDRESS>:44987/yC68NG91Vc0=/
[   +1 ms] executing: C:\Users\PC\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:44987
[  +33 ms] 52542
[        ] Forwarded host port 52542 to device port 44987 for Observatory
[   +4 ms] Caching compiled dill
[  +30 ms] Connecting to service protocol: http://<IP_ADDRESS>:52542/yC68NG91Vc0=/
[   +2 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[ +226 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:52542/yC68NG91Vc0=/
[   +1 ms] Waiting for Android SDK built for x86 to report its views...
[   +7 ms] Waiting for Android SDK built for x86 to report its views... (completed in 6ms)
[  +10 ms] DevFS: Creating new filesystem on the device (null)
[  +25 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.safearea/code_cache/safeareaNLDQVG/safearea/)
[   +2 ms] Updating assets
[ +149 ms] Syncing files to device Android SDK built for x86...
[   +2 ms] Scanning asset files
[   +2 ms] <- reset
[   +1 ms] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:safearea/main.dart 4aadca56-24fe-4952-9d3c-51be1c9ce3ab
[   +1 ms] <- 4aadca56-24fe-4952-9d3c-51be1c9ce3ab
[  +48 ms] D/EGL_emulation( 6456): eglMakeCurrent: 0xd561a2a0: ver 3 0 (tinfo 0xbc38e950)
[  +49 ms] D/eglCodecCommon( 6456): setVertexArrayObject: set vao to 0 (0) 1 0
[  +14 ms] Updating files
[ +266 ms] I/OpenGLRenderer( 6456): Davey! duration=953ms; Flags=1, IntendedVsync=1362512797676, Vsync=1362512797676, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=1362518554300, AnimationStart=1362518636400,
PerformTraversalsStart=1362518664000, DrawStart=1363028310900, SyncQueued=1363029174700, SyncStart=1363095770100, IssueDrawCommandsStart=1363096312800, SwapBuffers=1363125000600, FrameCompleted=1363533062300, DequeueBufferDuration=395220000,
QueueBufferDuration=227000,
[   +6 ms] I/Choreographer( 6456): Skipped 60 frames!  The application may be doing too much work on its main thread.
[ +267 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Android SDK built for x86... (completed in 663ms)
[        ] Synced 1.8MB.
[   +1 ms] <- accept
[   +3 ms] Connected to _flutterView/0xd22d1c10.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload.
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://<IP_ADDRESS>:52542/yC68NG91Vc0=/
[  +60 ms] D/EGL_emulation( 6456): eglMakeCurrent: 0xd225aba0: ver 3 0 (tinfo 0xd227bb10)
[   +1 ms] D/eglCodecCommon( 6456): setVertexArrayObject: set vao to 0 (0) 1 0
[+791674 ms] D/EGL_emulation( 6456): eglMakeCurrent: 0xd561a2a0: ver 3 0 (tinfo 0xbc38e950)
[+5484 ms] D/FlutterSecureStoragePl( 6690): Initializing StorageCipher
[ +110 ms] D/FlutterSecureStoragePl( 6690): StorageCipher initialization complete

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.green,
        child: SafeArea(
          child: Container(
            color: Colors.red,
          ),
        ),
      ),
    );
  }
}

@pedromassango I found that when I call SystemChrome.setEnabledSystemUIOverlays([]); , Both MediaQuery.of(context).viewInsets and MediaQuery.of(context).padding become zero and the SafeArea not works
Is it a bug? or not?

@pedromassango I found that when I call SystemChrome.setEnabledSystemUIOverlays([]); , the MediaQuery.of(context).padding become zero and the SafeArea not works
Is it a bug? or not?

I'm not sure if it is a bug or not. Probably it it not a bug because, my guess is that  SystemChrome.setEnabledSystemUIOverlays([]); removes all overlays and set your app in "fullscreen" so there is no padding being applied.

How are the camera insets determined in the Java APIs?


feat: upgrade js-sdsl to v4.4.0

Does github change something about CI environment?
I didn't change anything about heap at version 4.4.0.

I had to modify the benchmark due to github modifying the CI runtime environment.


PhantomJS hangs on some "use strict" JS code

Running PhantomJS v. 2.1.1 (binary) on Windows 10. The following code causes PhantomJS to hang indefinitely:
console.log("LOADING");
function c() { };
function f() {
    "use strict";
    c({
        t: function () {
            if (true) {
                function s() { }
            }
        }
    });
};
f();
if (typeof phantom == "undefined")
    phantom = { exit: function () { } }
phantom.exit();

The code above is valid and will run with no errors on Chrome. In PhantomJS, it will hang, without even displaying the LOADING log line. It still hangs if you remove the call to f(), making it a function that's never invoked.
The problem can be further simplified in this format:
console.log("LOADING");
function f() {
    "use strict";
    c({
        t: function () {
            if (true)
                function s() { }
        }
    });
};
phantom.exit();

The code above is not valid, and I would expect it to throw a syntax error. That's what it does on Chrome. In PhantomJS, it hangs indefinitely.
Note that if you remove "use strict", then it works.

Why did this get closed? It's a pretty severe bug in phantomjs. In general this means that phantomjs is incompatible to any webapps that are using gwt framework, right? At least I couldn't access vudu.com due to this issue.

@SmaugTheGreat it got closed as it concerns 2.1.1 version which is unsupported


linux: add floorp browser

Add the linux variant of the Floorp browser (Firefox based)

Hi Pedro, thanks for the contribution!
This .toml file is only for giving special support for profiles (so in this case floorp profiles). In order to do that, it's also mandatory to specify config_dir_relative. Could you open about:profiles in Floorp and check the value of any the Root Directory of any profile, e.g I have for firefox: /home/user/.mozilla/firefox/onkvhqmt.default-esr in which case config_dir_relative is .mozilla/firefox.
Another part - the id must match the .desktop file name for floorp (usually .desktop files are under /usr/share/applications/). If the filename there is floorp.desktop then the id should be the same, but without .desktop extension, so floorp

You mentioned "profiles/containers". I do have the "Multi-Accounts containers" extension installed in both Firefox and Floopr.
How can I check if they are working with browsers? I didn't even realize they where supported

Awesome, thanks for the updates and good words!
Merging it to main, but I'm not creating a new release very soon (as there's some unrelated end-to-end test issue with Windows right now)

You mentioned "profiles/containers". I do have the "Multi-Accounts containers" extension installed in both Firefox and Floopr.
How can I check if they are working with browsers? I didn't even realize they where supported

You need this odd extension https://addons.mozilla.org/en-US/firefox/addon/open-url-in-container/ right now until (if ever) https://bugzilla.mozilla.org/show_bug.cgi?id=1726634 is resolved

Nice. I can confirm containers are showing up with that extension (your fork) installed in Floorp


Load setting files

(sorry for this newbie and probably dumb question)
I have the following project structure
.
├── ...
├── project
│   ├── src
│   │   ├── app.py
│   ├── conf.py
│   ├── __init__.py
│   ├── settings.toml
│   ├── configs
│   │   ├── config1.yaml
│   │   ├── config2.yaml

and in essence, the question is how can I load config1.yaml and config2.yaml.
I added the path to the files in settings_files at conf.py but then, when I import dynaconf in src/app.py using  from dynaconf import settings I have no access to the defined settings.
Probably I misunderstood the documentation but I would really appreciate it if you can help me :)

I added #535 PR just to ensure we dont have a bug.
from dynaconf import settings is not recommended anymore,
is you created your instance on conf.py you must import from there from conf import settings


AssetContainer.instantiateModelsToScene() has a bug

If an asset has animation, the entity created by this method has problems and some parts are not visible. See attached pictures and model files.The head of the character is out of sight.

anqier.zip

Hello please use the forum.babylonjs.com to discuss bugs or questions before opening an issue


Set default SOTA_CLIENT directly in sota.bbclass

In some use cases (etc. AGL) we don't include sota.conf.inc which will result in unset SOTA_CLIENT. Surprisingly, unset variables ARE NOT resolved to empty strings by bitbake, so the build fails in these cases.

Build tested OK on qemu/rpi/minnowmax
Review Score: 11/11


Fetch real-time prices from a provider to our chain

This ticket is to feed prices for the below assets from DIA to our chain.
Coins to be Included on Amplitude:
NGNC, AUDD, EUR, USDC, XLM, TZS, BRL, AMPE, KSM
Coins to be Included on Pendulum:
NGNC, AUDD, EUR, USDC, XLM, TZS, BRL, PEN, DOT

@ebma do I miss sth here? Shall that be the case for both Amplitude and Pendulum?

Please list down all assets that we want to have prices for on Pendulum vs Amplitude, not just these three. The list will be roughly the same for both networks, but the native and relay chain token will vary, ie. on Amplitude we want to have prices for AMPE and KSM while on Pendulum we want to have prices for PEN and DOT.

@ebma does this require a root transaction? i guess not?


WA-521 - Feature: Transaction History Service

Description
With this PR the application will retrieve txs' information from the safe-transaction-history service, avoiding save that information in localstorage. In that way, users will be able at some point in the future use different desktops and being able to retrieve that information.
Note
This PRs groups 5 smaller PRs:

PR 1 #56: Load txs' subject from localStorage (in a separate way than my mocked service, because once the service is integrated the subject will keep in the browser' storage)
PR 2 #57: On every single TX (execution or approval) send a POST message to the service
PR 3 #58: Integrate Tx-history-service's Docker image in Travis in order to execute tests against its injected ganache and also being able to use the tx-history-service inside the tests.
PR 4 WIP: Recompose the tx list pulling data from the service
PR 5: Remove mocked service, its tests and custom logic

Travis automatic deployment:
https://pr60--safereact.review.gnosisdev.com
Storybook book automatic deployment:
https://pr60--safereactstorybook.review.gnosisdev.com

Travis automatic deployment:
https://pr60--safereact.review.gnosisdev.com
Storybook book automatic deployment:
https://pr60--safereactstorybook.review.gnosisdev.com


Added Basic College Portal

Created this basic college portal to demonstrate the use of array of Objects.

Thank you

@krishnavpai
Your PR has been merged do-follow and give a star to the repository


vue will create double watcher when this Situation

Version
2.6.10
Reproduction link
http://plnkr.co/edit/aKSqM1wLkSPmgip2p0gZ?p=preview
Steps to reproduce
http://plnkr.co/edit/aKSqM1wLkSPmgip2p0gZ?p=preview
What is expected?
dont't call callHook(vm, 'beforeMount') again
What is actually happening?
double call callHook(vm, 'beforeMount')

and will created double Watcher

I think this is happening because you're using both el: '#app' and $mount('#app'), binding the instance to that element twice.

so should we add some code on file lifecycle.js  mountComponent
such as
if(vm._isMounted)return?

I think you should just pick either el: '#app' or $mount('#app').
I would go for el because it's simpler.
The docs explain what $mount is for:

If a Vue instance didn’t receive the el option at instantiation, it will be in “unmounted” state, without an associated DOM element. vm.$mount() can be used to manually start the mounting of an unmounted Vue instance.

https://vuejs.org/v2/api/#vm-mount

what @phiter said!

what @phiter said!

but isn't this a bug?
When I accidentally have both

no, you can only use one of them. As stated in the docs:

no el -> unmounted state -> can call $mount to start mounting
el -> mounts

@posva Couldn't it be the case of raising an error or warning? If you try to mount an already mounted VM instance, I mean.

I agree that you should get a warning when you mount an instance twice or on the same element twice.

Sure, feel free to create a PR 🙂


Option to use user theme

Would it be possible for this not to override the user theme?
I tried edititing my BuildX.sublime-settings fg/bg and gutter/gutter_fg to match my spacegrey eighties theme however it seems  there's some other adjustment going on as the colors still don't match.
It would be ideal if this package could match the user's active theme.

I am not sure if it's possbiel to auto match the user's active theme and I don't have much time to investigate this now 😔.
I tried spacegrey theme with "color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme". With below config you can get a decent result.
    "bg": "#2d2d2d",
    "fg": "#d3d0c8",
    "gutter": "",
    "gutter_foreground": "#747369",


ompl isn't getting installed / not findable -> can't run example code

I got this error while trying to run the example code after running the ompl installation code
ython execute.py --task_config_path example_tasks/Change_Lamp_Direction/Change_Lamp_Direction_The_robotic_arm_will_alter_the_lamps_light_direction_by_manipulating_the_lamps_head.yaml
pybullet build time: May 20 2022 19:45:31
all substeps:
  grasp the lamps head
 change the lamps light direction
all substep types:
 primitive
reward
all action spaces:
 None
delta-translation
executing for substep:
 grasp the lamps head primitive
Traceback (most recent call last):
  File "/home/stao/work/external/RoboGen/pybullet_ompl/pb_ompl.py", line 2, in <module>
    from ompl import base as ob
ModuleNotFoundError: No module named 'ompl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/stao/work/external/RoboGen/execute.py", line 272, in <module>
    execute(task_config_path, resume=args.resume, training_algo=args.training_algo, time_string=args.time_string,
  File "/home/stao/work/external/RoboGen/execute.py", line 192, in execute
    rgbs, states = execute_primitive(task_config_path, solution_path, substep, last_restore_state_file, save_path,
  File "/home/stao/work/external/RoboGen/execute.py", line 14, in execute_primitive
    env, safe_config = build_up_env(task_config, solution_path, task_name, last_restore_state_file,
  File "/home/stao/work/external/RoboGen/manipulation/utils.py", line 155, in build_up_env
    module = importlib.import_module("{}.{}".format(solution_path.replace("/", "."), task_name))
  File "/home/stao/mambaforge/envs/robogen/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/stao/work/external/RoboGen/example_tasks/Change_Lamp_Direction/task_Change_Lamp_Direction/grasp_the_lamps_head.py", line 4, in <module>
    from manipulation.gpt_primitive_api import *
  File "/home/stao/work/external/RoboGen/manipulation/gpt_primitive_api.py", line 5, in <module>
    from manipulation.motion_planning_utils import motion_planning
  File "/home/stao/work/external/RoboGen/manipulation/motion_planning_utils.py", line 2, in <module>
    import pybullet_ompl.pb_ompl as pb_ompl
  File "/home/stao/work/external/RoboGen/pybullet_ompl/pb_ompl.py", line 9, in <module>
    from ompl import base as ob
ModuleNotFoundError: No module named 'ompl'

Any idea?

There seems to also be some errors that show up upon trying to install the py bindings for ompl
/usr/local/lib/python3.10/dist-packages/pyplusplus/binary_parsers/parsers.py:7: DeprecationWarning: invalid escape sequence 'm'
  """
Traceback (most recent call last):
  File "/home/stao/work/external/RoboGen/ompl-1.5.2/py-bindings/generate_bindings.py", line 950, in <module>
    globals()['ompl_'+module+'_generator_t']()
  File "/home/stao/work/external/RoboGen/ompl-1.5.2/py-bindings/generate_bindings.py", line 878, in __init__
    code_generator_t.__init__(self, 'util', None, replacement, 1)
  File "/home/stao/work/external/RoboGen/ompl-1.5.2/py-bindings/ompl/bindings_generator.py", line 146, in __init__
    self.filter_declarations()
  File "/home/stao/work/external/RoboGen/ompl-1.5.2/py-bindings/generate_bindings.py", line 893, in filter_declarations
    self.std_ns.class_('vector< std::string >').include()
  File "/usr/local/lib/python3.10/dist-packages/pygccxml/declarations/scopedef.py", line 554, in class_
    recursive=recursive)
  File "/usr/local/lib/python3.10/dist-packages/pygccxml/declarations/scopedef.py", line 464, in _find_single
    found = matcher.get_single(decl_matcher, decls, False)
  File "/usr/local/lib/python3.10/dist-packages/pygccxml/declarations/scopedef.py", line 90, in get_single
    raise runtime_errors.declaration_not_found_t(decl_matcher)

Can you provide more details of your system?
I tested the installation of ompl 1.5.2 on Ubuntu 18.04, with system-wide python version being 3.6.9.
Another option is for us to provide a docker image that have ompl already installed. We will look into that if installing ompl is too much pain on other systems.

Can you provide more details of your system? I tested the installation of ompl 1.5.2 on Ubuntu 18.04, with system-wide python version being 3.6.9. The pyplusplus version is 1.8.5. pygccxml version is 2.4.0. Besides, I installed castxml by this (based on my system is 18.04)
       wget -q -O- https://data.kitware.com/api/v1/file/5e8b740d2660cbefba944189/download | tar zxf castxml-linux.tar.gz -C ${HOME}
        export PATH=${HOME}/castxml/bin:${PATH}

Let me know if this helps.
Another option is for us to provide a docker image that have ompl & conda env already installed. We will look into that if installing ompl is too much pain on other systems.

give us a docker image pls!!!

I will look into building a docker image and update the repo once it's done.

Hi,
If you still have trouble installing ompl python binding from source, you can try installing it from the pre-built python wheels, see the updated ReadMe for details.


Specify the number of threads for local Kingdom gRPC servers.

This updates the local deployment configuration to match the dev one.

This change is

See https://github.com/world-federation-of-advertisers/cross-media-measurement/pull/697 for past config change to dev config.


Python vspk bambou2

This is for the 6.0 Nuage timeline where we want to support Python 3.7 and we move to a new nuagenetworks/bambou2 library.
This PR updates Python VSPK generation from monolithe perspective
PR on Monolithe: nuagenetworks/monolithe#123
PR on Bambou2: nuagenetworks/bambou2#1

Closing in favor of proper solution (PR's comming)


[UI] Shipyard's login screen - Please set focus within the user field

Focus is currently elsewhere, requiring user to either use the mouse to click Tab to set the focus within the user field.

@AndreeaDora - very low priority


When standard user tries to create a cluster using a DO nodetemplate gets a forbidden message for nodepool creation in cluster namespace.

Rancher server version - v2.0.0-alpha28
Steps to reproduce the problem:
As a standard user , create a cluster.
As part of creating cluster , create a DO template.
User is presented with this error message:

By trying to create again succeeds.

@sangeethah

Created a standard user as an admin.
Logged in as standard user.
Created node template

I am unable to reproduce, am I missing anything? (or might have been fixed, could you confirm)

This issue reproduces consistently in my setup.
Tested with v2.0.0-beta3-rc1 and showed it to @kinarashah .

Backend fixed. @vincent99 can you now change to waiting on this condition on the cluster before creating the nodepool? InitialRolesPopulated

Tested with latest build from mater.
This issue is not seen anymore.

Observed this issue in v2.0.0. Created a cluster as a standard user and the error was seen. When clicked on create twice, the cluster got created.

Observed this issue in 2.0.1-rc6 too. This issue is not just for initial(first) logins.

It looks like standard users still can not create any kind of clusters in rancher/rancher:master (custom, import, node driver).
If you are trying a local setup, you can almost reproduce it every time.
UI already waits for InitialRolesPopulated condition but it doesn't help.
After UI detected InitialRolesPopulated condition, UI has to wait for another 4 or 5 seconds. Then POST /v3/nodepool will return 201 instead of 403.

@cjellick it sounds like we need to investigate this for v2.0.3 if no standard user can create clusters

Tested with latest build from master
Not able to reproduce the issue when trying to create DO cluster multiple times.
Able to create custom and import clusters as well.
Importing of cluster fails which is tracked in https://github.com/rancher/rancher/issues/14030


API Proposal: PollingWatcher

namespace System.IO.Enumeration  // was System.IO.FileSystem
{
    public class FileSystemMonitor : IDisposable  // was PollingWatcher
    {
        public FileSystemMonitor(string directory, EnumerationOptions options = null);
        public int PollingInterval { get; set; }
        // REMOVED: public PollingWatcher(string directory, bool includeSubdirectories = false, int pollingIntervalInMilliseconds = 1000);

        public FindPredicate ShouldRecursePredicate { get; set; }
        public FindPredicate ShouldIncludePredicate { get; set; }
        // REMOVED: public void AddExtension(string extension);

        public TraceSource Tracing { get; private set; }

        public void Start();
        public void Start(List<FileState> fileSystemState);
        public ReadOnlyCollection<FileState> GetSystemState();

        public Action Changed;
        public Action<FileChange[]> ChangedDetailed;
        public delegate bool FindPredicate(ref FileSystemEntry entry);

        public void Dispose();
    }

    public struct FileChange
    {
        public ReadOnlySpan<char> Path { get; }  // Full path
        // REMOVED: public string Name { get; }
        // REMOVED/REDUNDANT: public ReadOnlySpan<char> Directory { get; }

        public ChangeType ChangeType { get; }
    }

    public class FileState
    {
        public ReadOnlySpan<char> Path { get; }  // Full Path
        public DateTimeOffset LastWriteTimeUtc { get; }
        public long Length { get; }
        public override string ToString() { get; }

        public FileState(string path, DateTimeOffset lastWriteTimeUtc, long length);
    }
}

Notes:

Not a huge fan of the namespace Enumeration in general, but it seems like it belongs with FileSystemEnumerable.
Renamed to FileSystemMonitor. PollingWatcher is both not specific enough and is too similar to FileSystemWatcher, from which this is a pretty big departure.
Changed constructor to accept same parameters as FileSystemEnumerable (minus the transform).
Added similar predicate members from FileSystemEnumerable to pass through.
Added a Start overload to specify starting file set.
Add a method to retrieve file set.

The purpose of retrieving and setting the file set is so the user can decide to save state in case the system goes down, or only needs to be run on occassion. This helps prevent changes from being missed.

FileState is mutable as an internal version number changes; so it's a class

@stephentoub @JeremyKuhne @KrzysztofCwalina @ahsonkhan

Thanks for pushing this prototype forward! Some of my initial observations:

Not a huge fan of the namespace Enumeration in general, but it seems like it belongs with FileSystemEnumerable.

Common APIs stay in the root namespace (i.e. System.IO). System.IO.Enumeration was added for these advanced extensibility points, keeping the root namespace usability higher.
In that vein, you should consider a simpler, easier-to-use version of this that addresses the basic needs. Something that just takes EnumerationOptions and params of match strings would likely satisfy the vast majority of users. A more advanced, extensible version isn't precluded by having this.

Renamed to FileSystemMonitor. PollingWatcher is both not specific enough and is too similar to FileSystemWatcher, from which this is a pretty big departure.

While it does have very different characteristics they both address the same need. From a discoverability perspective having Watcher in the name would be better. PollingFileSystemWatcher is pretty wordy, but not crazily so.
    public struct FileChange
    {
        public ReadOnlySpan<char> Path { get; }  // Full path
        // REMOVED: public string Name { get; }
        // REMOVED/REDUNDANT: public ReadOnlySpan<char> Directory { get; }

        public ChangeType ChangeType { get; }
    }

The reason these were split into name and directory was for performance (notably allocation reduction). If you watch some directory structure you only have a small set of directory names and a lot of (usually much shorter) file names. Having the entire path as a string isn't always needed and can get crazy for deeply nested folders (Windows can go over 30000 characters deep!). Follow along with FileSystemEntry here for names. We can make ToFullPath() a property instead (i.e. FullPath), but that should be cached internally.
Additionally, having spans in this isn't really useful unless the struct itself was a ref struct and was being passed as files are being enumerated.

The purpose of retrieving and setting the file set is so the user can decide to save state in case the system goes down, or only needs to be run on occassion.

Why do this and not use ISerializable?
Would a Stop() cover the "run on occasion"? The current watcher has this capability by specifying a timeout and as such we should consider it.

FileState is mutable as an internal version number changes; so it's a class

I'm not following this. Why wouldn't you keep this as a struct and simply reset the _version on import?

The reason these were split into name and directory was for performance (notably allocation reduction)

There may be other good reasons for keeping them separate, but wouldn't the allocation be the same? Directory and Path separately or just Path (FullPath). My thought on removing the directory is that we already know the root directory being monitored.
I don't have much experience with ISerializable, but I'm not sure where you would want me to use this.
The _version value is changed on every cycle, so it has to allow for changes. Import/export would ignore this value.
Let me think and experiment more on the rest.

There may be other good reasons for keeping them separate, but wouldn't the allocation be the same?

If you have 100 files in a directory that is 100 characters long that is nearly 20K of extra bytes. The key is that you keep 1 directory string for each directory. It is typical for watchers that VS uses to have tens of thousands of files being watched. Think in terms of 10Ks of files and 100s of directories for scaling as a minbar. I tested my enumeration changes against directories with over 500K files. :)

I don't have much experience with ISerializable

You derive the class from it and implement the serializer methods and you can use any of the formatters to save/restore it. The doc page for ISerializable has good examples.

I just assumed that all the directory strings would end up being duplicates of each other, but I guess if done correctly, that won't be the case. 👍

Some feedback:

I don't like ShouldRecursePredicate and ShouldIncludePredicate. I think the public surface area should be just bool IncludeSubdirectories and then possibly have two virtual protected methods to do more elaborate filtering. Users who need it, would inherit from the base watcher.
I dont like public dependency on TraceSource. It's one of the many tracing technologies we have
I don't like that we expose the file system state. Do we really need it?
Why is the API using delegate fileds and not events? e.g. Changed
It's not clear what FileState.Length is
DateTime is better for UTC times (smaller). Do we need DTO?

OK, that makes sense.
Yea, that is pre-existing. Is any tracing necessary? I don't see any in FileSystemWatcher. What's the best practice here?
My concern is that the machine reboots and then changes are missed. I'm not super fond of this, but I don't know how else to ensure that all changes are detected.
Also pre-existing. You are referring to why we are using Action instead of event, right? I'm not sure why one is better than the other, but I can change that.
I was reusing property names from FileSystemEntry and FileInfo. Size is more descriptive. Length is more consistent.
@JeremyKuhne and you disagree here. DTO is consistent with FileSystemEntry, but I can't personally think of why we would need the Offset, besides consistency.
@JeremyKuhne suggested PollingFileSystemWatcher. I'm good with that.

Common APIs stay in the root namespace (i.e. System.IO). System.IO.Enumeration was added for these advanced extensibility points, keeping the root namespace usability higher.

Considering the emergence of Span<T>, I was assuming that this was the replacement to the older way of doing things (i.e. not just advanced sceanrios).

public void Start(List<FileState> fileSystemState);
public ReadOnlyCollection<FileState> GetSystemState();

This means that the output of GetSystemState and the input of Start are not compatible, i.e. I can't directly pass the output of GetSystemState as the input of Start. I think they should use compatible types.

DateTime is better for UTC times (smaller). Do we need DTO?

DateTimeOffset is safe, DateTime is not. @tarekgh can comment further if needed.

Yea, that is pre-existing. Is any tracing necessary? I don't see any in FileSystemWatcher. What's the best practice here?

If diagnosing what is going on here would be useful we can have logging. You can follow along with what ArrayPool does. It might be nice to see all results (i.e. prefiltered) when logging is turned on.

Considering the emergence of Span, I was assuming that this was the replacement to the older way of doing things (i.e. not just advanced sceanrios).

That is useful feedback.

This means that the output of GetSystemState and the input of Start are not compatible, i.e. I can't directly pass the output of GetSystemState as the input of Start. I think they should use compatible types.

I'd rather this use the existing ISerializable pattern than introducing a new one. :)

I wonder if it would not be better for the state to be an opaque type, i.e. no members
Also, it might be good to make it "serializeble"

FileSystemWatcher uses WatcherChangeTypes:
    [Flags]
    public enum WatcherChangeTypes
    {
        Created = 1,
        Deleted = 2,
        Changed = 4,
        Renamed = 8,
        All = 15
    }

But PollingFileSystemWatcher uses its own enum ChangeType:
    public enum ChangeType : byte
    {
        Deleted = 0,
        Created = 1,
        Changed = 2,
    }

I'm not sure PollingFileSystemWatcher will ever use Renamed or All, but since ChangeType is a subset of WatcherChangeTypes,I was wondering if we should just get rid of ChangeType?
Note: The values per enum field are different, so this would be a breaking change, but, for itself, PollingFileSystemWatcher doesn't use the values.

My very high-level take on this is that, if we were to add a polling watcher, I'd want to see it added with as minimal amount of ceremony as possible into the existing FileSystemWatcher, rather than creating a whole brand new set of APIs, e.g.
public class FileSystemWatcher // existing class
{
    public void Start(bool polling) { ... } // or maybe arguments or an options bag relevant to polling
    ...
}

That would make it easy to switch back and forth between one based on the OS and one based on in-memory tracking and polling, while also keeping the surface area differences to a minimum.  It would also make it easier for platforms that don't support a native OS-based watching mechanism (or don't in all cases, such as when hitting inotify limits on Linux) to have a polling-based fallback already there and waiting.  I realize there are some new APIs being proposed for efficiency, e.g. some span-based members, but presumably we'd want those as well for the existing FileSystemWatcher, not just the new polling-based one.
My $.02 as a starting place.

I initially proposed that PollingFileSystemWatcher should be in the System.IO.Enumeration namespace because that's where FileSystemEnumerable is. However, now I think it should go in the System.IO since that's where FileSystemWatcher is.
This way, someone in/using the System.IO namespace will see FileSystemWatcher and PollingFileSystemWatcher side by side.

Based on @stephentoub's previous answer, I will put them in the same namespace

@stephentoub The only mystery to me is what it might mean for a System.ComponentModel.Component to be a facade. It is just ignorance at this point- I really need to spend time looking at Component.

The only mystery to me is what it might mean for a System.ComponentModel.Component to be a facade.

I'm not sure what you mean by that.  This can entirely be an implementation detail within FileSystemWatcher.

I'm not sure what you mean by that. This can entirely be an implementation detail within FileSystemWatcher.

Like I said, ignorance. Presumably there are no caveats to how you change a MarshalByRefObject in the BCL, but I just haven't spent much time with the concepts.

1.
When I serialize, I want to know that I am not in the middle of a poll, or in other words, that the timer function is not in progress. Serializing while the timer function is in progress may lead to unexpected results.
One way to do this is to set the PollingInterval to Timeout.Infinite, which stops the polling for potential serialization. Once the serialization is finished, I can reset the PollingInterval to whatever and continue. However, if there isn't a change in the monitored directory, then the event will never trigger and then I can never be sure if the timer function is in progress or it's just waiting.
For this reason, I would like to add public event EventHandler PollCompleted, so I can know when a Timer is completed regardless of whether or not there was a change.
2.
Another scenario to consider is if someone changes the PollingInterval while the Polling is in progress. This could lead to two timer functions running side by side, instead of the desired single thread.
For these reasons, I think we need to add a setting public bool IsPolling.
3.
Another somewhat related concern is that PollingInterval accepts a long and relies on the user reading the comments to know that it is measured in milliseconds. Based on searches I've done, it seems like the more consistent approach would be to use a TimeSpan.
Recommendations:

Add: public event EventHandler PollCompleted
Add: public bool IsPolling { get; set; }
Change: public long PollingInterval to return type TimeSpan

Thoughts?

Proposed a simpler API to act as the base of PollingFileSystemWatcher. #2390


Install Folly, fbthrift, thpp and fblualib error

I get an error running the line:
curl -sk https://raw.githubusercontent.com/soumith/fblualib/master/install_all.sh | bash
Installing TH++

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

Installing FBLuaLib

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Folly: /usr/local/include
-- Found Glog: /usr/include
-- Found Torch7 in /home/soren/torch/install
-- REQUIRED_ARGS (missing:  THPP_INCLUDE_DIR THPP_LIBRARIES)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
THPP_INCLUDE_DIR
   used as include directory in directory /tmp/fblualib-build.3bErNh/fblualib/fblualib
THPP_LIBRARY
    linked by target "fblualib" in directory /tmp/fblualib-build.3bErNh/fblualib/fblualib

-- Configuring incomplete, errors occurred!
See also "/tmp/fblualib-build.3bErNh/fblualib/fblualib/build/CMakeFiles/CMakeOutput.log".

All done!

Installing on ubuntu 14.04. I did not install cuda 6.5 because if already have CUDA 7 installed in
/usr/local/cuda-7.0/bin
EDIT: full log: http://pastebin.com/sdqVWf2k

The related issue is here- https://github.com/facebook/fbcunn/issues/10
Basically, this is the problem with your certificates/restriction etc. in your server. Follow the mentioned suggestions in the post (i.e. 1 to 4 points in the question) if that still doesn't solve your problem then here is the dirty way to solve the problem,
Run your installation script then go to the directory /tmp/fb...  (current working directory of the installation script). Then, while installation script is still installing folly change following line from the thpp//thpp/build.sh,
curl -JLO https://googletest.googlecode.com/files/gtest-1.7.0.zip

to,
curl -k -JLO https://googletest.googlecode.com/files/gtest-1.7.0.zip

Hope this help.


Stage 2 criteria for available SBOM

When working on the security requirements for stage 2, I noticed that - to my knowledge - we didn't speak about SBOMs so far.
Would it make sense to ask stage 2 projects to provide sufficient SBOMs, at least for each release? Our own compliance-assistant is able to produce good results which also contain sufficiently OK licensing information.
We already have some related documentation on this for the licensing review: https://github.com/OpenRailAssociation/technical-committee/blob/main/project-handbook/license-review.md
/cc @cornelius @flomonster

What's the objective behind it?
Here we talked about having a process to detect vulnerabilities automatically. It could be done using an SBOM or other.

You raise a good point. However, more and more organisations are interested in having SBOMs for the software they use, and interest will increase with CRA and similar regulations. Thanks to OpenRail projects being Open Source, one can create this SBOM themselves. However, if the project already provided a well-crafted (and ideally tested) SBOM, this benefits at least the users.
Also see this Sonatype article:

Increasingly, SBOMs are a necessary element of deliverables. For example the recent guidance for developers from the National Security Agency (NSA), Cybersecurity and Infrastructure Security Agency (CISA), and the Office of the Director of National Intelligence (ODNI) recommended that producers of open source projects provide an SBOM as a mitigation and assurance of good development practice. Simply, by providing an SBOM in your repository, you make a good-faith gesture that helps a user efficiently verify and vet your project.

In short, dependency scanning as implemented in #174 rather works internally, while SBOM generation and publication works externally.

It's worth noting that technically we already have a SBOM for all projects we host on GitHub via the GitHub generated dependency list, e.g. https://github.com/OpenRailAssociation/osrd/network/dependencies. If this is well-crafted is up for discussion and it's certainly not tested.

Conclusion from TC meeting: Put it in the release requirements as recommendation for stage 2 and a requirement for stage 3. To be documented in #144.


Version 1.0.0 ?

Hi @dotsbb
When do you think we could release version 1.0.0 of the Android SDK?
What would you like to include in this 1.0.0 release?

We could release 1.0.0 version with introduced offline mode #16  and fixed deprecated classes #61 at least.
Nice thing to have is Android 6.0 support: example app and gradle settings should be updated.

So we should be happy with the way the API looks.
Are we happy?
#61 is not much work. After that we should be able to build against API 23 (if there is no unforseen conflict, sometimes testing libs throw weird errors when building against newer APIs). I might do that on sunday with a nice cup of coffee.
#16 Is more tricky. I'll post some my ideas in the ticket though.@dotsbb would love to hear your thoughts on them.
The example app still contains a url to a piwik instance which 404s. What do we do with that?
@mattab It would be nice to have a working piwik instance for users to play around with. Maybe the demo app could post specific events to the piwik demo instance ?

We will do 1.0.0 without offline support for now.
I'll do 2-3 PRs this week, then I would say we release 1.0.0 officially.
My TODO

Some small code polish
A few additional helper methods within the TrackHelper
Replacing the current logging mechanism with Timber

Can you think of anything else we might want to do @dotsbb ?
Offline support can still be added transparently later. I've looked into offline support of a few other analytics SDKs and got some idea what we don't want to do, coupled with the points in #16, maybe I'll submit a draft and @dotsbb could give me some feedback on it. While I don't really miss an offline mode, for competitiveness it should exist.

@d4rken sounds like a very good plan to me. Didn't know about Timber before. I look forward to see your draft.

Timber requires minApi 15 :(

v1.0.0 has been merged into master, tagged and I've pushed v1.0.0 to bintray.

@dotsbb If you have time, can you create a release entry for v1.0.0 on Github?

Awesome work on 1.0.0 release @d4rken @dotsbb :tada:
Congratulations and a big thank you from the Piwik community!


Build Failure: "Failed to scan dependencies" in Flutter iOS Project

Steps to reproduce
Encountered errors during the build process of my Flutter iOS application. Below are the error messages:
error: failed to scan dependencies for source '/Users/richa.shah/Library/Developer/Xcode/DerivedData/Runner-apjpjuxiqtqlhhcsxmvkjkauvlyt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Runner_vers.c' (in target 'Runner' from project 'Runner')
error: failed to scan dependencies for source '/Users/richa.shah/Projects/music_together/project/ios/Runner/GeneratedPluginRegistrant.m' (in target 'Runner' from project 'Runner')

Expected results
it should run as i am able to create release archive but not able to run , get this error
Actual results
Encountered errors during the build process of my Flutter iOS application. Below are the error messages:
bash
Copy code
error: failed to scan dependencies for source '/Users/richa.shah/Library/Developer/Xcode/DerivedData/Runner-apjpjuxiqtqlhhcsxmvkjkauvlyt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Runner_vers.c' (in target 'Runner' from project 'Runner')
error: failed to scan dependencies for source '/Users/richa.shah/Projects/music_together/project/ios/Runner/GeneratedPluginRegistrant.m' (in target 'Runner' from project 'Runner')

Code sample
Code sample
error: failed to scan dependencies for source '/Users/richa.shah/Library/Developer/Xcode/DerivedData/Runner-apjpjuxiqtqlhhcsxmvkjkauvlyt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Runner_vers.c' (in target 'Runner' from project 'Runner')
error: failed to scan dependencies for source '/Users/richa.shah/Projects/music_together/project/ios/Runner/GeneratedPluginRegistrant.m' (in target 'Runner' from project 'Runner')

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
error: failed to scan dependencies for source '/Users/richa.shah/Library/Developer/Xcode/DerivedData/Runner-apjpjuxiqtqlhhcsxmvkjkauvlyt/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Runner_vers.c' (in target 'Runner' from project 'Runner')
error: failed to scan dependencies for source '/Users/richa.shah/Projects/music_together/project/ios/Runner/GeneratedPluginRegistrant.m' (in target 'Runner' from project 'Runner')

Flutter Doctor output
Doctor output
System Details
Flutter Version: Channel stable, 3.24.5
OS: macOS 15.1 (24B83, darwin-arm64)
Xcode Version: 16.0
Locale: en-IN

@richanshah
What command are you running ? Can you provide verbose log by adding -v to the command and share the log here. It will be huge so you can paste it in a text file and share it here.

I’ve identified the root cause of the issue, which was related to the build settings. Specifically, it was the Optimization Level configuration. Setting the optimization level to "None" (both for general build settings and the Swift compiler) resolved the issue.
Here are the steps I followed:
Set the Optimization Level to "None" in the build settings. Set "No Optimization" in the Swift compiler settings. Performed a flutter clean. Removed the Pods and Podfile.lock. Restarted the process and reinstalled the Pods. Additionally, I reviewed the dependency versions and ensured they were updated as follows:
amplify_flutter: ^2.2.0 to 2.5.0
amplify_auth_cognito: ^2.2.0 to 2.5.0
amplify_core: ^2.2.0 to 2.5.0
Finally, I removed and re-added the required libraries in Link Binary with Libraries, which helped resolve the linking issues.


CI pipeline setup

check TS grammar
check linter + code formatting (no auto-fixes)
check tests
check that PR (original or resulting squash) commits abide with a standard
main branch becomes protected. Any new changes must come via a PR.

Result
The new CI has been set-up with:

code listing pass

against our powerful linter
will catch any offending code changes committed with git-hooks ignored

smoke test (TypeScript grammar and transpilation must succeed)
necessary preparations for future unit and E2E tests to plug right in
commit linting according to the most popular conventional commits standard

helps keep commit history clean and consistent
enables commit parsing and auto-generation of (higher quality) change logs when releasing new versions
ensures already used committing practices persist as new contributors come in and that I have some protections against accidental mistakes
Github's automatic CodeQL analysis, identifying vulnerabilities and errors (under the repo's "Code security and analysis" settings)

pr title linting according to the same "conventional commits" guidelines

helps keep pr history clean, consistent and searchable
enables us to use have the PR title automatically suggested as commit subject for when squash-merging

Additionally:

pushing code containing known secrets is now forbidden
"Private vulnerability reporting", allowing community members to privately report potential security vulnerabilities to maintainers is now enabled
"Dependabot" scanning and alerting for vulnerable dependencies is now enabled
plenty of other


Merge with parent project

Can we please use this issue to discuss cons and pros of running this binary as a standalone project vs merging it with a LagoonCLI project
LagoonCLI is already used by many users and systems to perform required tasks. Having the functionality that this package provides within LagoonCLI is something I would expect, because similar tools from other providers (Acquia, Pantheon etc) have this as a part of their cli toolkit.
Also, asking users to install a second binary feels a bit too much.
Mind that there are external tools like DDev that want to integrate with Lagoon, and they would have to use this binary and lagooncli; and then they will have to manage issues caused by different versions of the binaries.

Hi @AlexSkrypnyk
Thanks for opening up this discussion. Yeah, this is something we've discussed a lot internally.
I think the general consensus is that they'll be merged once we do a Lagoon cli rework, which shouldn't be too far off.
For completeness, I'll just mention the one major pro of having it as a separate binary - particularly if we slim it down to not include, say, the bundled rsync binary. Basically, if you favor the so-called unix philosophy, having it as a separate tool makes sense aesthetically - and, moreover, there's a way in which the two tools target different classes of use - where the cli is a general tool for mostly interacting with the lagoon api outside of a lagoon environment, lagoon-sync is currently a tool that runs inside of a lagoon environment (which makes it a good candidate for, say, shipping with the lagoon commons image in a way that, arguably, isn't the case with the lagoon-cli).
However, I think we're all in agreement that aside from the above, it makes sense to merge it into the cli.

Just to add, there are options for changing the way lagoon-sync works entirely which we also need to discuss. The platform has developed significantly since we first built sync, so there may be more interesting and/or efficient ways of achieving this functionality than wrapping a whole bunch of dump/restore/rsync commands.

I'm closing this now - we're keeping the two projects separately - there's a long term project to bring syncing that's closer to the platform to lagoon - this will replace lagoon-sync in the medium term.
For now, and for the reasons above, sync will remain a separate binary.


Review and update README.md

Directory structure in particular needs review
https://github.com/tdwg/chrono/blob/master/README.md

Completed with 1b9b3ba386c95876ba675f8b5ab8a29bee65eda8


[VTK/paraview] update to 5.12.1

Well there are already merge conflicts with that so here we go :)


svg sprite doesn't work in IE11

Phaser version(s): 2.9.1
Live example: https://codepen.io/anon/pen/bomGZB
What should happen: in IE11 svg sprite should work
What happens instead: in IE11 svg sprite doesn't work

This example works in FF and Chrome but doesn't work in IE11
and there is a warning in IE
Phaser.Frame: Frame "undefined" has a width or height of zero

Because when IE load svg in HTMLImageElement the width and height are 0
so in this Phaser code data.width and data.height are 0
    addImage: function (key, url, data) {

       ...

        var img = {
            key: key,
            url: url,
            data: data,
            base: new PIXI.BaseTexture(data, null, this.game.resolution),
            frame: new Phaser.Frame(0, 0, 0, data.width, data.height, key),
            frameData: new Phaser.FrameData()
        };

Is there any workaround? I know the sizes of svg sprites, so if only I could pass width and height in         game.load.image somehow.

Try changing
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000">
to
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1000">

@samme Thanks, but it doesn't help, neither do
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000">

Cache#addImage has a data argument but it's going to be hard to use it.
You may be able to overwrite Loader#image (to add a properties argument) and Loader#fileComplete (to modify file.data).

Closing since this seems like an IE11 issue and I can't think of any more workarounds.


json gem errors?

OK - I created a Gemfile with just this:
source 'https://rubygems.org'

# comment
gem 'octopress', '~> 3.0.0.rc'

Then I ran bundle which installed a bunch of stuff and created a Gemfile.lock file.  I am running Ruby 2.2.0 via rbenv and ran rbenv rehash.  Note I am a Ruby neophyte.
Next I ran octopress new octopress-3 and cd octopress-3 and finally jekyll serve.  The site built and I can see it at localhost:4000 but I am getting errors:
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/liquid-2.6.1/lib/liquid/htmltags.rb:43: warning: duplicated key at line 46 ignored: "index0"
WARN: Unresolved specs during Gem::Specification.reset:
      listen (~> 2.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /Users/Dan/Code/octopress-3/_config.yml
            Source: /Users/Dan/Code/octopress-3
       Destination: /Users/Dan/Code/octopress-3/_site
      Generating...
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/version.rb:3: warning: already initialized constant JSON::VERSION
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/version.rb:3: warning: previous definition of VERSION was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/version.rb:4: warning: already initialized constant JSON::VERSION_ARRAY
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_MAJOR
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MINOR
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_BUILD
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/common.rb:99: warning: already initialized constant JSON::NaN
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/common.rb:99: warning: previous definition of NaN was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/common.rb:101: warning: already initialized constant JSON::Infinity
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/common.rb:101: warning: previous definition of Infinity was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/common.rb:103: warning: already initialized constant JSON::MinusInfinity
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/common.rb:103: warning: previous definition of MinusInfinity was here
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/2.2.0/json/common.rb:128: warning: already initialized constant JSON::UnparserError
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/common.rb:128: warning: previous definition of UnparserError was here
                    done.
 Auto-regeneration: enabled for '/Users/Dan/Code/octopress-3'
Configuration file: /Users/Dan/Code/octopress-3/_config.yml
    Server address: http://<IP_ADDRESS>:4000/
  Server running... press ctrl-c to stop.

Things I have tried:

Switch to Ruby 2.1.5 -> same behavior.
gem install json -> same behavior.
Google -> https://github.com/flori/json/issues/177 (however I don't get it...)

Any ideas?

This is not an issue with Octopress, but with Liquid which Jekyll uses. This has been patched but not yet released.

Oh I should add, this isn't an error but a warning. So it shouldn't actually affect your site. Just ignore it until Liquid gets another release.

Ok - you're the boss!  ;)

I've seen this when testing a new theme.  Do a sudo bundle clean --force, then ````bundle update``` to clean out the extra cruff.

if you're using a ruby vm, you probably won't need sudo

@justinrummel - yup that cleaned up the json errors nicely.  Thanks for that!
I'm still seeing the Liquid error and awaiting the release with the fix. However I am also seeing an immediate Jekyll regeneration upon start which is puzzling:
/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/liquid-2.6.1/lib/liquid/htmltags.rb:43: warning: duplicated key at line 46 ignored: "index0"
Configuration file: /Users/Dan/Code/octopress-3/_config.yml
            Source: /Users/Dan/Code/octopress-3
       Destination: /Users/Dan/Code/octopress-3/_site
      Generating...
                    done.
 Auto-regeneration: enabled for '/Users/Dan/Code/octopress-3'
Configuration file: /Users/Dan/Code/octopress-3/_config.yml
    Server address: http://<IP_ADDRESS>:4000/
  Server running... press ctrl-c to stop.

@justinrummel thanks as well

Any fix for this yet?


fix: bump Splunk version

:tada: This PR is included in version 2.1.9 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


osr2mp4 closed after choosing osu folder and output folder

https://user-images.githubusercontent.com/77206335/104104827-0d573080-52dd-11eb-88e1-db643b6f03f1.mp4

click update before choosing osu and output folder. The update button is bottom left corner.

click update before choosing osu and output folder. The update button is bottom left corner.


Couldn't install it on my mac

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-wunoiq9a/
Thanks!!!

I didn't include an installer but I think I should. I might do so this weekend.
The way I use this library and others is by putting a link to the internal data_tools folder in a custom location that is in my PYTHONPATH.
An installer would make it simpler for people to use, though.

Thanks so much!!! Yeah, it would be easier for users to install it. I am following your amazing work on LTiS 2017 challenge. It is so helpful for me because I just start my research on medical image analysis. Thanks for sharing your clean and organized codes!!!! It is so helpful for me.

Great to hear that it's helpful :)

Hi Eugene,
If I have some questions about LiTS 2017 challenge,  may I ask them for you via email? (I am sorry I will bother you about that 😭). Now I am a first year graduate at University of Victoria (hopefully you hear about it ☺). I do love to explore the medical image analysis combined with deep learning techniques. It is a new adventure for me✌
Thanks💕💕💕
Cheers,
Crystal

On Sep 21, 2018, at 11:57 AM, Eugene Vorontsov<EMAIL_ADDRESS>wrote:
Great to hear that it's helpful :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/veugene/data_tools/issues/1#issuecomment-423638623, or mute the thread https://github.com/notifications/unsubscribe-auth/ALB4VxTdhND781MuusOEGlNhVcufUZ56ks5udTZ_gaJpZM4WzcOx.

Yes, no problem -- I'll email you.


Rewrite unstable unit test

👍  What was the bug?

The unit test wrongly assumed the log entries were outputted in a specific order.


Is there a way to set default options (hidden by default)

For example, I would like to have the hidden option by default

All the options you can set are listed here, not sure what you're referring as the 'hidden' option.


replaceWithText on a PropertyAccessExpression sometimes fails

I'm not sure if this is the exact scenario. I could just run the script on my code again to find the problem. Basically, for example for the following:
this.writer.space();

Try calling replaceWithText on this.writer to replace with writer. It should throw an error.

Unable to reproduce. I should have looked into this more when it happened.


compile error with datacollection.hpp on windows

On Windows, inside Ascent, I see the following compile error:
 C:\Users\cyrus\Documents\GitHub\ascent\scripts\build_ascent\install\mfem-4.5\include\mfem\fem\datacollection.hpp(380,11): error C2059: syntax error: 'constant'

The related code is an enum def:
https://github.com/mfem/mfem/blob/d5f46a61bc77df5692527bf827a3829f512cd28c/fem/datacollection.hpp#L381
Even though this is an enum which is inside a class and a namespace -- I suspect I have some include that brings in a macro that conflicts with one of these names. I am going to try to track the include issue down - but if you are open to using a name unique to MFEM (MFEM_NO_ERROR ?) that should solve the issue.

I pinged Kathleen Biagas (VisIt's Windows expert) and she said that she does have to change the following:
REGISTERED
NO_ERROR

To avoid compile issues.
@tzanio  @v-dobrev  -- I would be happy to add a PR to address this if we can identify the changes the MFEM team would support.
If we are worried about backward compatibility, we could keep old names for non windows case for a time.

Shouldn't this be addressed in the packages that define these un-scoped macros?

Based on what I can tell, it's system headers on windows -- I believe I asw these errors even if I included MFEM first.
I can try to confirm this again using a less complicated smoke test.

FWIW, we don't see issues with that enum in the Windows tests on Github Actions or in Appveyor CI.

See https://stackoverflow.com/questions/49237883/macro-no-error-conflict

One option for fixing this may be to add the following somewhere before our declaration of mfem::DataCollection::NO_ERROR in datacollection.hpp:
#ifdef NO_ERROR
#undef NO_ERROR
#define MFEM_REDEFINE_NO_ERROR
#endif

And then add the following after the last use of mfem::DataCollection::NO_ERROR in datacollection.hpp:
#ifdef MFEM_REDEFINE_NO_ERROR
#define NO_ERROR 0L // as defined in winerror.h
#endif

Here's one place where one can see the definition  of NO_ERROR in winerror.h: http://web.archive.org/web/20110225033028/http://msdn.microsoft.com/en-us/library/ms819773.aspx
Also, we can add another identifier (e.g. NO_ERROR_, MFEM_NO_ERROR, or something like that) in the enum with the same value as mfem::DataCollection::NO_ERROR. This way users can use the new identifier when NO_ERROR is defined as a macro, e.g. when they include both mfem.hpp and winerror.h in the same file.

Another simpler solution may be to define the enum this way:
   enum
   {
      // Workaround for use with headers that define NO_ERROR as a macro,
      // e.g. winerror.h:
#ifndef NO_ERROR
      NO_ERROR = 0,
#endif
      // Use the following identifier if NO_ERROR is defined as a macro,
      // e.g. by winerror.h:
      NO_ERROR_ = 0,
      READ_ERROR = 1,
      WRITE_ERROR = 2
   };

And also redefine:
   void ResetError(int err_state = NO_ERROR_) { error = err_state; }

Other uses of NO_ERROR inside MFEM are in .cpp files, so they should be fine.

For the second one, outside of mfem internal cpp -- users would have to change to NO_ERROR_ to do their checks?

I guess that would only impact Windows folks, so likely a small set of folks.
I think we also have to do this for Memory::FlagMask::REGISTERED, would you be ok with the same type of fix?

I think we also have to do this for Memory::FlagMask::REGISTERED, would you be ok with the same type of fix?

Yes, I think that's a reasonable solution.

I found that REGISTERED is defined in the windows header file nb30.h. Both winerror.h and nb30.h are included by Windows.h.


num_training_batches can be 0 if train_percent_check is too small

🐛 Bug
if train_percent_check is set to a tiny value, then num_training_batches can be 0. Then no training happens, and no validation either, but no warning is raised and epochs are normally iterated over.
To Reproduce
Train on any dataset using limit sufficiently small (eg 0.01).
Code sample
I think there is a simple fix, in data_loading.py, adding a line after l. 171
            (l.171) self.num_training_batches = int(self.num_training_batches * self.train_percent_check)
            self.num_training_batches = max(1, self.num_training_batches)

Expected behavior
Training at least on 1 batch to have a quick check.
Environment

CUDA:
- GPU:
- available:         False
- version:           None
Packages:
- numpy:             1.18.4
- pyTorch_debug:     False
- pyTorch_version:   1.5.0
- pytorch-lightning: 0.7.6rc3
- tensorboard:       2.2.1
- tqdm:              4.46.0
System:
- OS:                Linux
- architecture:
- 64bit
- ELF
- processor:         x86_64
- python:            3.8.2
- version:           #864-Microsoft Thu Nov 07 15:22:00 PST 2019

sounds reasonable.
btw there is also a Trainer arg "fast_dev_run" if you want to do a quick check with one batch per training/validation dataloader.

Okay, thanks for the tip, indeed that would fit my needs here!


Insta

$ node index.js                                       CANNOT LINK EXECUTABLE "node": library "libicui18n.so.66" not found
Ada solusi???

What?
Pada tanggal Kam, 28 Mei 2020 06:58, xcf23<EMAIL_ADDRESS>menulis:

$ node index.js CANNOT LINK EXECUTABLE "node": library "libicui18n.so.66"
not found
Ada solusi???
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/officialputuid/toolsig/issues/10#issuecomment-635006627,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANTNPRNMFQMFDXZC6YN2FA3RTWSKJANCNFSM4M75CR2A
.


Issue #29

Fixes Issue🛠

Closes #29
Description👨💻
I have added two more edible items section (snacks & sweets) and also implemented the smooth scroll.

Checklist✅

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added demonstration in the form of GIF/video file
[x] I am an Open Source Contributor

Video📷
https://user-images.githubusercontent.com/91181981/222984589-1081500d-0832-42ec-820c-35d6c77f91b5.mp4
@Rakesh9100 kindly review

I suppose you have commented the preloader, and it is removed. Pls rectify this @ritika728

I suppose you have commented the preloader, and it is removed. Pls rectify this @ritika728

Oh yes, I forgot to uncomment, just a minute

And @Rakesh9100 it actually took quite a lot of time and effort to download and edit all the images, so if you can consider upgrading the tag, that would be great! 😅

Don't worry about the label tag. It will definitely be upgraded or degraded as per the work @ritika728

Check this out. Use Ctrl+Shift+i to inspect and check in all screen sizes. There is too much space above after your changes. Correct it.

Done @Rakesh9100, also the class 'container' was overlapping over the vertical scrollbar on small screens, have adjusted that along with this. Kindly review

Nice, Good work. Congrats on getting your PR merged to this repo 🎉🎉 @ritika728


umap-learn[plot] extra not provided

When doing pip install "umap-learn[plot]", I get: WARNING: umap-learn 0.3.10 does not provide the extra 'plot'.
But when installing the package with pip install -e .[plot], it works.

I think you need the new umap 0.4; it is currently in release candidate stage, and hopefully will be on pip as a full release soon.

It's fixed since the release :)


CAMEL-20074 - Bump google-cloud-secretmanager-bom to version 2.29.0

Description

Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[x] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[x] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

/component-test google


Finish new RTD doc

Missing steps:

[x] Merging all remaining doc page
[x] Merging RTD branch
[x] Deleting old doc conf file like mkdocs.yml
[x] Improving CI or readme to check if RTD build failed
[x] Global review from @legau and @AMontagu

@AMontagu  and @legau,
please consider my suggestions (#206) for the next documentation release , merci. :)

@markdoerr your suggestions are merged/reviewed. Thank you !

Merci, @AMontagu,
yes, let's refine from the merged version....

No easy way to check in CI if doc passed.
Added email notification if fail + readme badge. Should be enough


Looking for new maintainer for this package

Hi, I don't have the time anymore to maintain this project.
If you ware interested in taking over the maintenance, please add a comment

Would love to work on this

Also the added issues like interesting to solve

Hi, this is Ben, I will love to be part of the maintenance of this package..
Thanks

Hi my friends,
I'm sorry for not replying earlier after asking on Twitter but unfortunately, my depression returned. It's important for me to know that someone takes over maintenance and takes it seriously because I know there are many people using this package.
Now to what is to do :-)
Actually, there is a new version already waiting for quite some time in this branch
https://github.com/escamoteur/super_tooltip/tree/v2
It uses a better way to select the target than how it is done today.
It should be reviewed and the readme updated to explain the new version.
I will add you to the maintainers but will for the moment keep the repository owner. As soon as I see that someone is taking responsibility I will hand over control completely
thanks a lot for your help

Hi, we already wrote an Twitter and I would also be happy to help maintaining this package.

Hi,
Thanks, just accepted your invitation.
I will do my very best

Hi I just want to bring up the question if we should spend much time one the current version or if we shouldn't move on the the new one.
Would like your opinions

Hi, My opinion is that we can move next version. I can move along from there..
Well, some ideas i have we can have some material rounded edges.
And secondly, I spotted some issues.. it will be nice working on them too.
Thanks

Hi @escamoteur sorry about that
Hope you are feeling much better now!!
Yeah, I have been working on something for some time now, studying what you have done on the previous version and the same time working on my skills too.

ok, so what would be your next step?

Could you put many maintainer ? Many PR are waiting and some are very awaited.


source: add cython and pyrex filetypes

I know cython filetype not supported on the vim. it's for future use.

/cc @tweekmonster

LGTM.  Will Jedi work without problems in pyrex scripts?

@tweekmonster Almost works in my environment.
Merged.


Metric units

Is it possible to set ruller units to milimeters or centimeters? If not, can it be done?

In this web app, all the length scales (coordinates, ruler, focal length, etc.) are in the same arbitrary unit, which corresponds to the CSS pixels when the zoom percentage is 100. Since the wavelength is assumed to be infinitesimal in ray optics, the absolute length scale of the optical system is irrelevant in the simulation. You can freely interpret that unit to be millimeters, kilometers, or whatever. The simulation result will always be the same.
Although It is possible to use absolute units (cm, mm, etc.) in webpages, the W3C does not recommend this usage, since the length may be inaccurate on computer screens. See https://www.w3.org/Style/Examples/007/units.en.html.


Supporting YouTube and Twitter embeds

tags: embeds, youtube, twitter, changelog
Swyxkit now supports YT and Twitter embeds, inspired by the Liquid tags from Dev.to, but extended to encourage dropping full URLs for futureproofing and markdown legibility.
The PR implementing this is https://github.com/sw-yx/swyxkit/pull/41.
YouTube
Equivalent syntax:

{% youtube https://www.youtube.com/watch?v=dQw4w9WgXcQ %}
{% youtube dQw4w9WgXcQ %}

Result:
{% youtube https://www.youtube.com/watch?v=nR8XRpin4OI %}
Twitter
Equivalent syntax:

{% twitter https://twitter.com/swyx/status/1477408277994811393 %}
{% twitter<PHONE_NUMBER>994811393 %}

Result:
{% twitter https://twitter.com/swyx/status/1477408277994811393 %}

nice!

absolutely phenomenal :)

This looks great! Any reason you went with the liquid syntax rather than something that has more of a markdown feel to it (e.g. https://www.elasticpath.com/blog/embed-external-content-markdown-files)?

was moving over from dev.to which used it