After update to 63.0.3239.84 weird stuff going on

I was updating to the latest binary from AUR and it's weird, just look at the screenshots.

The player sometimes doesn't load the buttons and the colors are little different than they were before the update, without custom css it looks the same.

Also there is a image on a website I visit sometimes with src(unknown) it looks like this on the page

My friends say after updating the normal Chromium at least the weird image was gone, any idea what happened?

Interesting, but your description is too high-level with too few details to be diagnosable. Were you able to narrow down the issue any further?

I reverted back to v62, that's all I did

I don't know how to track down the issue but I can say that the issue with the videoplayer on some direct linking sites is still broken in Chromium Version 63.0.3239.108 the console doesn't give me any errors.
I will watch the future of Chromium but I will stick with last v62 build as long as it's shitty like that, btw I love your work!

I don't know how to track down the issue but I can say that the issue with the videoplayer on some direct linking sites is still broken in Chromium Version 63.0.3239.108 the console doesn't give me any errors.

That is strange. I'm out of ideas, unfortunately.

btw I love your work!

Thanks! I'd like to credit @xsmile who's been doing all the heavy-lifting for Inox as of late.


Http clients for async-task

Hey I'm currently writing the async rust book for O'Reilly. I love this crate and I generally use it for teaching the concepts async runtimes. However, I usually use crates like Tokio at work because well, that's just what industry seems to go for and I have no say in rewriting the entire stack. So When I got the opportunity to write the async rust book I was excited to put this crate into chapter three. However, I've quickly realised that although writing custom queues in this crate is a dream, the HTTP crates I usually lean on just don't work as they're looking for Tokio runtimes etc. I'd love to have a complete runtime with HTTP for the book on this crate. Are there any HTTP crates that work with async-task? If not I'm up for collaborating on a HTTP crate that can work with async-task.

You can fit hyper into smol, see this example (this uses smol::spawn but it shouldn't be too hard to replace that with a real executor).
You can also use async-h1, but it imports async-std.

thanks for the response. I'm still getting a Tokio error. I appreciate I might be doing something stupid but I've created an executor like the following:
#[derive(Clone)]
struct SmolExecutor;

impl<F: Future + Send + 'static> hyper::rt::Executor<F> for SmolExecutor {
    fn execute(&self, fut: F) {
        spawn_task!(async { drop(fut.await) }).detach();
    }
}

The spawn_task! macro is a wrap around for the following function:
fn spawn_task<F, T>(future: F, order: FutureType) -> Task<T>
where
    F: Future<Output = T> + Send + 'static,
    T: Send + 'static,
{
    static HIGH_CHANNEL: Lazy<(Sender<Runnable>, Receiver<Runnable>)> = Lazy::new(||
        {flume::unbounded::<Runnable>()}
    );
    static LOW_CHANNEL: Lazy<(Sender<Runnable>, Receiver<Runnable>)> = Lazy::new(||
        {flume::unbounded::<Runnable>()}
    );
    static HIGH_QUEUE: Lazy<flume::Sender<Runnable>> = Lazy::new(|| {
. . .

Which goes onto spawn tasks and send runnables to the queue. The spawn_task! macro works fine when called directly for async functions and structs that have implemented the Future trait. However, with the following hyper code I try and make a simple get http request:
use hyper::{Client, Uri};
. . .
    let future  = async {
        let connector = hyper::client::HttpConnector::new();
        let client = Client::builder().executor(SmolExecutor).build::<_, hyper::Body>(connector);
        let url = "http://httpbin.org/get".parse::<Uri>().unwrap();
        let response = client.get(url).await.unwrap();

        // Print the response body
        let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
        println!("Response body: {:?}", body);
    };

    let test = spawn_task!(future);
    let _outcome = future::block_on(test);

And I get the following error:
thread '<unnamed>' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'

I'm currently using the following hyper crate:
hyper = { version = "0.14.26", features = ["http1", "http2", "client", "runtime"] }

Is there something obvious I'm missing?

You're using the HttpConnector type, which uses tokio under the hood... and since you're not using the tokio runtime, it causes that panic.
What you want to do is define your own connector type using smol primitives. See here for an example of how this may be done.

thank you for pointing me in the right direction. Everything is working now as it should. I will talk to the editors and see if I can dedicate two chapters to smol as I have to guide the readers through the code and casually lumping in all the client code at the end of chapter three would not be good for readers trying to learn about async. However, not including how to implement something like HTTP into the runtime they spent a whole chapter doing would also not be a good experience. Also sorry about not checking the examples before posting here. I will check out the examples before bothering you again. really appreciate the quick feedback

No problem! Let me know if you have any other questions, I'm happy to answer them.
Closing this issue for now since I think it's been answered to satisfaction.


Add a test demonstrating initvar works with inheritance

Closes https://github.com/pydantic/pydantic/issues/5496.
~It seems that at some point since the 2.0a4 release, this got fixed, but I've added a test written from the code in the issue. (This test fails in 2.0a4.)~
This got fixed for python 3.11 after #5760, but not for other python versions..
Selected Reviewer: @adriangb

Okay nevermind, it's just resolved in 3.11 :(
For what it's worth, it started working in 3.11 after #5760.  I'll keep working through this.

please review

Please go ahead and merge


Flutter project unable to run on iOS simulator but able to run on physical phone.

Steps to Reproduce

Update 13/09/2021:
Downgrading flutter to v2.2.3 has solved my issues. Able to run on simulator with no errors.
Currently on m1 MacBook Air
Flutter on latest stable channel which is version 2.5.0

Run flutter run --flavor dev.

Expected results:
Flutter runs app on IOS simulator on dev mode.
Actual results:
flutter run --flavor dev -v
output:
                            libopencore-amrnb -framework libsndfile -framework libswresample -framework libswscale
-framework libvorbis
                            -framework libvorbisenc -framework libvorbisfile -framework libwebp -framework mobileffmpeg
-framework nanopb
                            -framework opus -framework package_info_plus -framework path_provider -framework
permission_handler -framework
                            sentry_flutter -framework share -framework shine -framework soxr -framework speex -framework
sqflite -framework
                            store_redirect -framework stripe_ios -framework tau_core -framework twolame -framework
url_launcher -framework
                            vibration -framework vo-amrwbenc -framework wavpack -framework webview_flutter -weak_framework
UserNotifications
                            -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker

/Users/brycegoh/Library/Developer/Xcode/DerivedData/Runner-ananiohtlsfwecgddlajixutvbpg/Build/Intermediates.noindex
                            /Runner.build/Debug-dev-iphonesimulator/Runner.build/Runner.app-Simulated.xcent -framework
Pods_Runner -Xlinker
                            -no_adhoc_codesign -Xlinker -dependency_info -Xlinker

/Users/brycegoh/Library/Developer/Xcode/DerivedData/Runner-ananiohtlsfwecgddlajixutvbpg/Build/Intermediates.noindex

/Runner.build/Debug-dev-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependency_info.dat -o

/Users/brycegoh/Library/Developer/Xcode/DerivedData/Runner-ananiohtlsfwecgddlajixutvbpg/Build/Intermediates.noindex
                            /Runner.build/Debug-dev-iphonesimulator/Runner.build/Objects-normal/x86_64/Binary/Runner

[ +779 ms] Could not build the application for the simulator.
[   +6 ms] Error launching application on iPhone 12.
[  +15 ms] "flutter run" took 33,546ms.
[  +12 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:669:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:92:3)
           <asynchronous suspension>

[ +216 ms] ensureAnalyticsSent: 211ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

flutter doctor -v
output:
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-arm, locale en-SG)
    • Flutter version 2.5.0 at /Users/brycegoh/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (4 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/brycegoh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.11.0

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google
    Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (1 available)
    • iPhone 12 (mobile) • FD840261-179D-4455-B369-AABBC8B653FC • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5
      (simulator)

! Doctor found issues in 1 category.

same issue on intel MacBook pro with flutter stable 2.5.0

flutter run --flavor dev

@brycegoh
I see that you are trying to run a flavor app. I tried a sample app using this article and ran it on stable 2.2.3 and on stable 2.5.0, and on both, worked properly without any issues.
I ran the command: flutter run --flavor dev -t lib/main_dev.dart and ran it on iOS simulator:

Launching lib/main_dev.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
 └─Compiling, linking and signing...                         8.7s
Xcode build done.                                           29.6s
Syncing files to device iPhone 12 Pro Max...                        77ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥

You may check that article and see if you are missing anything at your end.
If issue still persists, provide a complete verbose log of the error.

flutter run --flavor dev

@brycegoh
I see that you are trying to run a flavor app. I tried a sample app using this article and ran it on stable 2.2.3 and on stable 2.5.0, and on both, worked properly without any issues.
I ran the command: flutter run --flavor dev -t lib/main_dev.dart and ran it on iOS simulator:

Launching lib/main_dev.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
 └─Compiling, linking and signing...                         8.7s
Xcode build done.                                           29.6s
Syncing files to device iPhone 12 Pro Max...                        77ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥

You may check that article and see if you are missing anything at your end.
If issue still persists, provide a complete verbose log of the error.

I got BUILD FAILED on flutter 2.5.0, and BUILD SUCCEEDED on flutter 2.2.3
            ** BUILD FAILED **
            The following build commands failed:
            	CompileSwift normal x86_64
            	CompileSwift normal i386
            	CompileSwift normal arm64
            	Ld /Users/coin/Library/Developer/Xcode/DerivedData/Runner-bpolijzkaufkhoeymhbdjebbmltz/Build/Intermediates.noindex/Pods.build/Debug-pgy-iphonesimulator/flutter_nim.build/Objects-normal/arm64/Binary/flutter_nim normal arm64
            (4 failures)
[ +826 ms] Xcode build done.                                           75.6s
[   +1 ms] Failed to build iOS app
[        ] Error output from Xcode build:
           ↳
[        ]     ** BUILD FAILED **
               The following build commands failed:
               	CompileSwift normal x86_64
               	CompileSwift normal i386
               	CompileSwift normal arm64
               	Ld /Users/coin/Library/Developer/Xcode/DerivedData/Runner-bpolijzkaufkhoeymhbdjebbmltz/Build/Intermediates.noindex/Pods.build/Debug-pgy-iphonesimulator/flutter_nim.build/Objects-normal/arm64/Binary/flutter_nim normal arm64
               (4 failures)
[        ] Xcode's output:
           ↳
[  +84 ms]     Command line invocation:
                   /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Debug-pgy VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme pgy BUILD_DIR=/Users/coin/Documents/gits/workbench/build/ios -sdk iphonesimulator FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO
               User defaults from command line:
                   IDEPackageSupportUseBuiltinSCM = YES
               Build settings from command line:
                   BUILD_DIR = /Users/coin/Documents/gits/workbench/build/ios
                   COMPILER_INDEX_STORE_ENABLE = NO
                   FLUTTER_SUPPRESS_ANALYTICS = true
                   SDKROOT = iphonesimulator14.5
                   VERBOSE_SCRIPT_LOGGING = YES
               note: Using new build system
               note: Building targets in parallel
               note: Planning build
               note: Analyzing workspace
               note: Constructing build description
               note: Build preparation complete

[✓] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.5.0 at /Users/coin/Documents/flutter-sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (6 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/coin/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/coin/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7665

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7665

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • iPhone 11 Pro Max (mobile) • 7FEA026E-226C-4500-A4CC-00E8FA0F5E6A • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63

• No issues found!

** BUILD SUCCEEDED **
[+1181 ms] Xcode build done.                                           179.5s
[   +2 ms] executing: [/Users/coin/Documents/gits/workbench/ios/] xcrun xcodebuild -configuration Debug-pgy VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme pgy BUILD_DIR=/Users/coin/Documents/gits/workbench/build/ios -sdk iphonesimulator FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings
[        ] executing: [/Users/coin/Documents/gits/workbench/ios/] xcrun xcodebuild -configuration Debug-pgy VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme pgy BUILD_DIR=/Users/coin/Documents/gits/workbench/build/ios -sdk iphonesimulator FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings
[+3461 ms] Command line invocation:
               /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Debug-pgy VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme pgy BUILD_DIR=/Users/coin/Documents/gits/workbench/build/ios -sdk iphonesimulator FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings
           User defaults from command line:
               IDEPackageSupportUseBuiltinSCM = YES
           Build settings from command line:
               BUILD_DIR = /Users/coin/Documents/gits/workbench/build/ios
               COMPILER_INDEX_STORE_ENABLE = NO
               FLUTTER_SUPPRESS_ANALYTICS = true
               SDKROOT = iphonesimulator14.5
               VERBOSE_SCRIPT_LOGGING = YES
           Build settings for action build and target Runner:
               ACTION = build
               AD_HOC_CODE_SIGNING_ALLOWED = YES
               ALTERNATE_GROUP = staff
               ALTERNATE_MODE = u+w,go-w,a+rX
               ALTERNATE_OWNER = coin
               ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
               ALWAYS_SEARCH_USER_PATHS = NO
               ALWAYS_USE_SEPARATE_HEADERMAPS = NO
               APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
               APPLE_INTERNAL_DIR = /AppleInternal
               APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
               APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library
               APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools
               APPLICATION_EXTENSION_API_ONLY = NO
               APPLY_RULES_IN_COPY_FILES = NO
               APPLY_RULES_IN_COPY_HEADERS = NO
               ARCHS = x86_64
               ARCHS_STANDARD = arm64 x86_64 i386
               ARCHS_STANDARD_32_64_BIT = arm64 i386 x86_64
               ARCHS_STANDARD_32_BIT = i386
               ARCHS_STANDARD_64_BIT = arm64 x86_64
               ARCHS_STANDARD_INCLUDING_64_BIT = arm64 x86_64 i386
               ARCHS_UNIVERSAL_IPHONE_OS = arm64 i386 x86_64
               ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
               AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.2.3 at /Users/coin/Documents/flutter-sdk/flutter
    • Framework revision f4abaa0735 (3 months ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/coin/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/coin/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7665

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7665

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • iPhone 11 Pro Max (mobile) • 7FEA026E-226C-4500-A4CC-00E8FA0F5E6A • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63

• No issues found!

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
@Vidtion
Please file a new issue with all the details, including code sample


In the Relations view when I hover on map type, I would like to see some help

In the Relations view when I hover on map type, I would like to see some help such as a popup with a description of the mapping type

@pombredanne Can you provide the help content?


chore(Project): split out a shared project

split out a shared project
Summary of the changes (Less than 80 chars)
简单描述你更改了什么, 不超过80个字符；如果有关联 Issue 请在下方填写相关编号
Description
fixes #4760
Regression?

[ ] Yes
[ ] No

[If yes, specify the version the behavior has regressed from]
[是否影响老版本]
Risk

[ ] High
[ ] Medium
[ ] Low

[Justify the selection above]
Verification

[ ] Manual (required)
[ ] Automated

Packaging changes reviewed?

[ ] Yes
[ ] No
[ ] N/A

☑ Self Check before Merge
⚠ Please check all items below before review. ⚠

[ ] Doc is updated/provided or not needed
[ ] Demo is updated/provided or not needed
[ ] Merge the latest code from the main branch

@sourcery-ai review


Don't show OriginalCommand in help example unless specified

When defining an Example in the JSON file, if I omit the OriginalCommand entry, I don't want to see an entry for it in the final help.

This looks like a reasonable request and we will take a look.

fixed in commit 84c597f7d32605394a01a7ce3990add033aa08e1


Update default builds to run as non-root

Changes

Current dependencies on/for this PR:

main

PR #378   👈

PR #379

This stack of pull requests is managed by Graphite.


Failed to download plugin

Plugin download failing both via command prompt and Setup.

Gauge Status does not indicate any downtime: https://status.getgauge.io/778781500
Are you behind an internet proxy? Gauge requires internet connection to install plugins.
If you are behind an internet proxy, you can do one of the below:

set HTTP_PROXY via environment variables. See https://docs.getgauge.io/configuration.html#http-proxy

Download and install plugin offline.

Guess this is working now.


Alpha

Issue
https://gravitee.atlassian.net/browse/APIM-XXX
Description
A small description of what you did in that PR.
Additional context

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

1.0.0
GitHub release

Your semantic-release bot :package::rocket:


python312Packages.chex: 0.1.85 -> 0.1.86

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.chex is: Chex is a library of utilities for helping to write reliable JAX code.
meta.homepage for python312Packages.chex is: https://github.com/deepmind/chex
meta.changelog for python312Packages.chex is: https://github.com/google-deepmind/chex/releases/tag/v0.1.86
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.1.86 with grep in /nix/store/sj57h674kaj79a0cr60r3mvjmb7gx18q-python3.12-chex-0.1.86
found 0.1.86 in filename of file in /nix/store/sj57h674kaj79a0cr60r3mvjmb7gx18q-python3.12-chex-0.1.86

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

17 total rebuild path(s)

17 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.bambi
python311Packages.blackjax
python311Packages.chex
python311Packages.dalle-mini
python311Packages.distrax
python311Packages.dm-haiku
python311Packages.elegy
python311Packages.equinox
python311Packages.flax
python311Packages.jaxopt
python311Packages.optax
python311Packages.rlax
python311Packages.treex
python311Packages.vqgan-jax
python312Packages.chex
python312Packages.equinox
python312Packages.optax

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/sj57h674kaj79a0cr60r3mvjmb7gx18q-python3.12-chex-0.1.86 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.chex https://github.com/r-ryantm/nixpkgs/archive/b7715a10fed45722aec7884532b95a45d7b2e2bb.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/b7715a10fed45722aec7884532b95a45d7b2e2bb#python312Packages.chex

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/sj57h674kaj79a0cr60r3mvjmb7gx18q-python3.12-chex-0.1.86
ls -la /nix/store/sj57h674kaj79a0cr60r3mvjmb7gx18q-python3.12-chex-0.1.86/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages marked as broken and skipped:

python311Packages.elegy
python311Packages.elegy.dist
python311Packages.treex
python311Packages.treex.dist

28 packages failed to build:

python311Packages.bambi
python311Packages.bambi.dist
python311Packages.blackjax
python311Packages.blackjax.dist
python311Packages.dalle-mini
python311Packages.dalle-mini.dist
python311Packages.distrax
python311Packages.distrax.dist
python311Packages.dm-haiku
python311Packages.dm-haiku.dist
python311Packages.equinox
python311Packages.equinox.dist
python311Packages.flax
python311Packages.flax.dist
python311Packages.jaxopt
python311Packages.jaxopt.dist
python311Packages.optax
python311Packages.optax.dist
python311Packages.optax.testsout
python311Packages.rlax
python311Packages.rlax.dist
python311Packages.vqgan-jax
python311Packages.vqgan-jax.dist
python312Packages.equinox
python312Packages.equinox.dist
python312Packages.optax
python312Packages.optax.dist
python312Packages.optax.testsout

4 packages built:

python311Packages.chex
python311Packages.chex.dist
python312Packages.chex
python312Packages.chex.dist

Maintainer pings
cc @ndl for testing.

Duplicate of https://github.com/NixOS/nixpkgs/pull/297146


Edit on github button do not work in API docs

in API DOCS https://foca.readthedocs.io/en/latest/modules/foca.config.html edit on github button  link to https://github.com/elixir-cloud-aai/foca/blob/dev/docs/api/modules/foca.config.rst which give a 404 page.
A working link is need to be link to the button

Thanks @sj00coder for pointing this out. It seems like it's a common issue with Read the Docs and it may only be possible to deactivate the functionality globally. As it may still have some value (the links do work for the landing page), I will close this issue and leave this as it is, at least for now.


Phone widget does not display properly

The phone battery widget does not display properly. Multiple battery numbers are displayed on top of one another

Interesting, which app version are you using?

#response_container_BBPPID{font-family: Calibri, sans-serif; font-size:11pt; color: initial;} Thanks for looking into this. I am using phone and watch version 3.1.2.                                                                                From: @.***Sent: 4 April 2021 23:05To: @.***Reply to: @.Cc: @.; @.***Subject: Re: [boswelja/WearableExtensions] Phone widget does not display properly  (#133)
Interesting, which app version are you using?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Have you tried moving the widget? Some launchers allow layering multiple widgets on top of each other, so I'm wondering if you've just got 2 widgets on top of each other.

#response_container_BBPPID{font-family: Calibri, sans-serif; font-size:11pt; color: initial;}  Yes, i have tried moving the widget. I have also tried resizing the widget. The same problem persists.  If it helps, I am using the Microsoft Launcher.                                                                                From: @.***Sent: 5 April 2021 03:16To: @.***Reply to: @.Cc: @.; @.***Subject: Re: [boswelja/WearableExtensions] Phone widget does not display properly  (#133)
Have you tried moving the widget? Some launchers allow layering multiple widgets on top of each other, so I'm wondering if you've just got 2 widgets on top of each other.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

I've checked over my code and there shouldn't be any way battery percent can be rendered twice. I'll keep an eye on my widget and see if it occurs with a different launcher. In the mean time, are you using a beta version of Microsoft Launcher, or did you get a recent update?

I've finally seen this occur once, so it's reproducible! I'll start looking into it more soon

#response_container_BBPPID{font-family: Calibri, sans-serif;font-size: 11pt;color: initial;}  Hi Jack, I am glad that you have been able to reproduce the bug. I tried rolling back to the previous full public release and I can confirm that the bug did not exist in that version. Today I installed the latest full public release and I can confirm that sadly the bug is present. Kind regards Rob                                                                                From: @.***Sent: 16 April 2021 00:48To: @.***Reply to: @.Cc: @.; @.***Subject: Re: [boswelja/SmartwatchExtensions] Phone widget does not display properly  (#133)
I've finally seen this occur once, so it's reproducible! I'll start looking into it more soon
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

I can confirm that this bug with the widget is still present in version 4.0.11

Thanks for confirming. While I've made a few changes to how widgets are handled I'm still not sure what's causing this.

Thanks for sorting this. I can confirm this bug bas been fixed. Thank you!


[Request for comments] wil::unique_string

While trying to add support for conversion to std::string_view to unique_any_t when used to hold strings, I faced multiple issues that prevented me from correctly implementing it without creating a dependency on <string_view> or causing a static assertion/ugly basic_string_view error when trying to convert non character types to string_view. To fix this issue (and add more functionality), I have the idea of creating a unique_string type, which would look somehow like this:
template<...>
class unique_string : public unique_any_array_ptr<...>
{
    static_assert(/* that ValueType is a wchar_t or char */);

    // avoid code duplication, reuse constructors from inherited class
    using unique_any_array_ptr<...>::unique_any_array_ptr;

    // somehow enabled conditionally
    operator std::basic_string_view<value_type>() const { return { this->get(), this->size() }; }

    const_pointer c_str() const { return this->get(); }
    size_type length() const { return this->size(); }

    // maybe more string manipulation functions?
}

All the existing type aliases and string helpers would be updated to use this type instead. This would allow for things like correctly embedding null characters, bounds checked string access, and being able to pass the string RAII wrappers to functions accepting string views.
I believe that after updating everything, this shouldn't break normal usage cases, because unique_string will end up exposing the same API surface than unique_any via public inheritance of unique_array_ptr.
As a bonus some Natvis visualizers for unique_string could be made so that it shows up nicely in a debugger.
I'm submitting this as request for comments since this would be a pretty major change, so I want to get comments or check if this would even be accepted before getting to work implementing it.

Anything that has a dependency on the STL needs to be relatively isolated. This is especially true when taking a dependency on newer STL features (I don't recall exactly which STL versions are used in the Windows build, but anything newer than C++11 generally requires caution). So as its own standalone thing, likely in a separate header that nothing else depends on is probably fine. That is, if the value added is worth having yet another string type.

This is where std::string_view comes in, at least for C++17 users. It's a non-owning string type, so it allows to write functions that accept many string types without the need to be templated. Obviously would need to be properly checked for availability before being used.
void print(std::wstring_view text)
{
    std::wcout << text;
}

print(L"foo"); // ok

const std::wstring str(L"bar");
print(str); // ok

const auto costr = wil::make_cotaskmem_string(L"baz");
print(costr); // would also be ok

string_view is awesome, so if we can make wil work well with it that would be valuable.

I do see one issue with my approach: some APIs don't allow you to pass the address of a size type and instead leave the caller figuring out the size by using strlen or some other method, effectively making bounds-check ineffective or wrong on unique_array_ptr because the internal size isn't updated.
This could probably be worked around by adding a function to update the internal size based on the string's length (determined by the null-terminating character), but that function would need to be manually called after the fact. Another possible option is to use a proxy struct, not unlike size_address_ptr, that would automatically recompute the length once it's destroyed. It would require explicitely calling a function with another name (put_with_length()?) since we can't overload on return types only, and that proxy struct's behavior may not always be desired, like in the cases where a function does accept a pointer for the string size, in case there's embedded nulls.
Some also return the length of the string I believe, but this would already be workable with
*str.size_address() = LoadMyString(str.put());

As a sidenote, wil::str_raw_ptr and wil::details::string_maker would also need to be updated for unique_string.

the problem of needing to re-size strings leads to a few known bugs for string types that use a length value instead of the nul terminator. HSTRING and std::wstring for example (these types support embedded nulls, a rarely useful and in some uses not allowed). this manifests in incorrectly formed strings but often we don't suffer as the consumers take the nul terminated view.
there are cases where std::wstring::size() is out of sync with the length determined by the nul terminator (this OS bug).
this is exacerbated by some of the Win32 APIs that won't tell you the size up front before you allocate, you need to over-allocate, then get the value and at that point you know the size. RegQueryValue for REG_SZ that may or may not be null terminated (we need to add a flag to that API to tame this behavior).
to address this we need to make the wil types have a .resize() but this has to be optional as HSTRING does not support it.
perhaps using if constexp on tag types like Kenny does in C++ WinRT  to enable an optional reset() (and block use of forms that don't in APIs that don't support it).

one more thing, <wil/stl.h> can be used for STL specific stuff

Dropped the idea, this proved too complex and would probably not cover all use cases. It's easier to just use the right string length call manually to then drop it in a wstring_view and do all the manipulation using that.


fix: Fix getting PR number on pull_request_review

Test Plan

How do we know the code works?

PR number for event pull_request_review is not correctly populated withing ${{github.event.number}}.
It needs to be fetched from $GITHUB_REF

Codecov Report

Merging #1275 into master will increase coverage by 0.01%.
The diff coverage is 82.92%.

@@             Coverage Diff              @@
##             master    #1275      +/-   ##
============================================
+ Coverage     79.65%   79.67%   +0.01%
- Complexity      715      723       +8
============================================
  Files           233      233
  Lines          4399     4437      +38
  Branches        756      759       +3
============================================
+ Hits           3504     3535      +31
- Misses          496      503       +7
  Partials        399      399

@Mergifyio rebase


Opening Achievement Screen also calls API of leaderboard, contribution fragment

Click on more, then from bottomsheet open Achievements. For some reason from logs you can see even being at Achievement Screen the leaderboard api is being called?
2024-12-26 21:03:22.611 OkHttpJsonApiClient     fr.free.nrw.commons                  I  Url https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/leaderboard.py?user=Devanonymous&duration=weekly&category=upload&limit=100&offset=0
2024-12-26 21:03:22.611 OkHttp                  fr.free.nrw.commons                  V  --> GET https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/leaderboard.py?user=Devanonymous&duration=weekly&category=upload&limit=100&offset=0
2024-12-26 21:03:22.611 OkHttp                  fr.free.nrw.commons                  V  --> END GET

Unable to share full logs due to github text limit.
Take it up while working at #6063

That is intended, because in the Profile screen we use Viewpager and it has page limit of 1 by default so it instantiate neighboring fragment and fragment  does trigger a network request as it is instantiated. In this case opening Achievements fragment opens Leaderboard one too as it is next to it. and also if the fragment was in center it would have retained 1 on either side. Hope that makes sense :-)

That is intended, because in the Profile screen we use Viewpager and it has page limit of 1 by default so it instantiate neighboring fragment and fragment  does trigger a network request as it is instantiated. In this case opening Achievements fragment opens Leaderboard one too as it is next to it. and also if the fragment was in center it would have retained 1 on each (L&R) side. Hope that makes sense :-)

Yes you are correct. Apologies, my bad I didn't wrote the description clear. I think we should migrate from Viewpager to Viewpager2 since it uses RecyclerView.Adapter so it dynamically allocates and deallocates the left and right one's. Wdyt?

I don't think it would be any different besides we want to have those pre instantiated for the faster context switches.
Also, since we already are picking up Jetpack compose, I think we should use that instead.


Typed Array append_array type validation checks the argument's container type, not the contained type

Godot version
4.0.dev ()
System information
W10
Issue description
When using typed array append_array, I got a strange error.
E 0:00:06:0791   ContainerTypeValidate::validate: Attempted to append_array a variable of type 'Array' into a TypedArray of type 'Vector3i'.
  <C++ Error>    Condition "type != p_variant.get_type()" is true. Returning: false
  <C++ Source>   C:\Users\brian\Documents\GitHub\mygodot4\core\variant\container_type_validate.h:82 @ ContainerTypeValidate::validate()
E 0:00:06:0813   Array::append_array: Condition "!_p->typed.validate(p_array._p->typed.type, "append_array")" is true.
  <C++ Source>   core\variant\array.cpp:236 @ Array::append_array()

The issue that the validation done in append_array incorrectly checks the argument array's type (Variant::ARRAY) rather than the contained type (in this case, Variant::VECTOR3I).
https://github.com/godotengine/godot/blob/3e214a88380dab46a77d48863b7a6f1bc37e2885/core/variant/array.cpp#L235-L239
Steps to reproduce
var typed: Array[Vector3i] = []
var other: Array[Vector3i] = [Vector3i.ZERO]

typed.append_array(other)

Minimal reproduction project
No response

I am getting this error in 4.0.alpha3 when using find_nodes().
E 0:00:00:0707   _ready: Attempted to append_array a variable of type 'Array' into a TypedArray of type 'Object'.
  <C++ Error>    Condition "type != p_variant.get_type()" is true. Returning: false
  <C++ Source>   core/variant/container_type_validate.h:82 @ validate()
  <Stack Trace>  test.gd:12 @ _ready()

only occurs when find_nodes() finds at least one item.
nothing I can do about it since it appears to be caused by find_nodes() internally.
it still works though.

Getting this same error with find_nodes. However, in my case, it can only actually find nodes that are one level below, regardless of the value of the recursive parameter.

in 4.0.alpha4, I am now getting this error even when calling append_array() on two arrays both obtained via get_children().
var cg1 = $Node2D.get_children()
var cg2 = $Node2D2.get_children()
cg1.append_array(cg2)

E 0:00:00:0685   _ready: Attempted to append_array a variable of type 'Array' into a TypedArray of type 'Object'.
  <C++ Error>    Condition "type != p_variant.get_type()" is true. Returning: false
  <C++ Source>   core/variant/container_type_validate.h:82 @ validate()
  <Stack Trace>  test.gd:18 @ _ready()
E 0:00:00:0685   _ready: Condition "!_p->typed.validate(p_array, "append_array")" is true.
  <C++ Source>   core/variant/array.cpp:236 @ append_array()
  <Stack Trace>  test.gd:18 @ _ready()

append_array() fails.
no amount of trying to statically type or cast the arrays to the be the same type helps.

Any updates on this issue? I'm getting same errors whilst trying to fix the Physics Demo.

Also happens when double clicking a glb file to show the importer dialog:
ERROR: Attempted to append_array a variable of type 'Array' into a TypedArray of type 'Object'.
   at: (S:\repo\godot-fire\core\variant\container_type_validate.h:82)
ERROR: Condition "!_p->typed.validate(p_array, "append_array")" is true.
   at: Array::append_array (core\variant\array.cpp:263)

E 0:00:08:0370   Spawner.gd:21 @ _process(): Attempted to find a variable of type 'String' into a TypedArray of type 'Object'.   <Erro C++>     Method/function failed. Returning: false   <Origem C++>   core/variant/container_type_validate.h:97 @ validate()   <Rastreamento de Pilha>Spawner.gd:21 @ _process()
i'm checking if a string is on an array and i'm receiving the same error message. this is my code:
if !path in arr_child and path != "": 				to_respawn.append(path)


Add ability to change database location

Use settings file to store database location

This is working for Windows (mapped drives).

It works but is quite manual. That's ok for now.


Indexing status API returns 502 for nonexistent subgraph

The following request fails with a 502 error when it should return some GraphQL response:
http POST https://api.thegraph.com/index-node/graphql query='{ status: indexingStatusForCurrentVersion(subgraphName: "nobody/none") { subgraph synced }}'

Is this still an issue?
I just run the command and got  a 200 status code with a GraphQL body:
$ http POST https://api.thegraph.com/index-node/graphql query='{ status: indexingStatusForCurrentVersion(subgraphName: "nobody/none") { subgraph synced }}'

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
CF-Cache-Status: DYNAMIC
CF-Ray: 62717179bb5e51f9-GRU
Connection: keep-alive
Content-Length: 24
Content-Type: application/json
Date: Thu, 25 Feb 2021 12:31:25 GMT
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cfduid=df17e953576227563386be853c242929e1614256285; expires=Sat, 27-Mar-21 12:31:25 GMT; path=/; domain=.thegraph.com; HttpOnly; SameSite=Lax
Vary: Accept-Encoding
Via: 1.1 google
access-control-allow-headers: Content-Type, User-Agent
access-control-allow-methods: GET, OPTIONS, POST
cf-request-id: 087ac54013000051f960313000000001

{
    "data": {
        "status": null
    }
}

Then we can close this as already fixed, thanks @tilacog


wrong pidfile detection on Ubuntu + passenger package

Description
Actually, when installing nginx (1.10.1) from the Phusion Passenger package repository, the PID location is /run/nginx.pid but this is wrongly detected by the cookbook configuration recipe. We end up with a nginx service that cannot be reloaded after initial converge, because the pid file set in config file does not exist.
Issues Resolved
The nginx configuration now contains the correct PID location when installing with node['nginx']['install_method = 'package and  node['nginx']['repo_source'] = 'passenger'

Thanks for putting this change together. I'll get this released today


Nexus extension for Jupyter Lab

If we were to develop an extension, what should it do, what could be in there?
I have a first mockup proposal, see below (outdated 22/05, we should do it differently)
Tasks list:

[ ] Extension public repo, set nexus endpoint, set token: (2 SP, then we will have a better idea of the real cost)
[ ] Automatically configure Nexus Forge by inserting a cell (2 SP?)
[ ] Ability to upload your notebook to Nexus (linking it to the org/proj that you want)
[ ] Browse standard code snippets for the Forge, stored in Nexus somewhere

I have completed the initial POC, based on the Neptune AI like use cases. We have a prototype that can connect to nexus and import resources in to a notebook cell from jupyterlab.  This logic can be extended to  upload or download notebooks to nexus.

Initial mockup proposal:

@bogdanromanx said that we can use the username and password to identify the user and load the correct information in the notebook (while using the Jupyter Hub instance?).


MachSuite Tracker

This is to keep track of the status of MachSuites apps implementation. Subsequent posts will track each app.
Some translations:

C = "Something Compiles to Fuse"
T = "The Fuse program was tested with the harness"
R = "The Fuse program is a straightforward 'translation' from the original C"

App
C
T
R
Notes

gemm ncubed
✅

Yes
Simple kernel

stencil2d

gemm block

stencil3d

fft
✅

Yes

kmp
✅

Yes

radix sort
✅

Yes

merge sort

spmv
✅

Yes

bfs
✅

Yes

md
✅

Yes

backprop

nw
✅

Yes

aes

viterbi

Hi, so Rachit prefers to have specific issues listed in #23. I'll repurpose this issue to keep track of MachSuite benchmark implementation.

Language features needed for MachSuite apps
gemm/ncubed - nested loops and reductions
gemm/blocked - gemm/ncubed + tiling
tiling needs index addition to access to arrays, so views are needed
fft/strided - gemm/ncubed + exponential + serialization
stencil/stencil2d - gemm/ncubed + index addition and mismatching matmul (filtering)
views are needed to achieve complex array accesses and index addition
stencil/stencil3d - stencil/stencil2d
spmv/ellpack - gemm/ncubed + indirection
spmv/crs - spmv/ellpack + index addition
kmp - stencil/stencil2d + while loops and if conditions
fft/transpose - fft/strided + LUTs
sort/merge - stencil/stencil2d + if conditions and some method of serialization
I think this can be reasonably translated as well, if we were to do an iterative mergesort. I'm unclear on what recursion would mean in terms of writing a Seashell program (i.e. how that would be mapped to hardware is something I'm confused about.)
sort/radix - sort/merge + shifters
Bitwise operation support would be helpful for translating this; they use some shifting; I think this could be translated reasonably well though.
bfs/bulk - sort/merge
need a good way to represent nodes of a graph; maybe something like a struct? I suppose we can also use an adjacency matrix or something. But it seems like it would be generally helpful to have some kind of "and"-type
bfs/queue - bfs/bulk + queues
Next phase of apps

md
backprop
nw
aes
viterbi

Optimizations Needed
gemm/ncubed - resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
gemm/blocked - resource allocation (multiplier), memory allocation, array partitioning, loop unroll with tiling, pipeline
stencil/stencil2d -  resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
stencil/stencil3d - resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
spmv/ellpack - resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
spmv/crs - resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
kmp - memory allocation, array partitioning, loop unroll, pipeline
bfs/bulk - memory allocation, array partitioning, loop unroll, pipeline
bfs/queue - memory allocation, array partitioning, loop unroll, pipeline
fft/strided - resource allocation (multiplier), memory allocation, array partitioning, loop unroll, pipeline
fft/transpose - allocation (multiplier and adder), memory allocation, array partitioning, loop unroll, pipeline
sort/merge - memory allocation, array partitioning, loop unroll, pipeline
sort/radix - memory allocation, array partitioning, loop unroll, pipeline

Cool! Maybe a big table would be a good way to represent this information? The rows could be benchmarks, and the columns could be features. Then the cell could contain a checkmark if the benchmark needs that feature. (There could be two groups of columns: expressiveness/features and optimizations.) This way, we could easily see what will affect the most benchmarks.
Some things where I could use expanded definitions:

"Memory allocation": Do the benchmarks call malloc? If so, do they really need to do this, or is it just a convenience?
"Resource allocation (multiplier)": What does this look like? What's the effect on the generated hardware?
"Serialization": Is this like data structure serialization, or like preventing parallelism?
"LUTs": What do these look like in the code? (Presumably you don't mean FPGA LUTs?)
"mismatching matmul (filtering) views": This could use a little more explanation—is this within scope for our current thoughts on views, or beyond them?
"queues": Are these memories, accessed in a special way? Do they also do synchronization?

Okay. Sounds good.

Memory and resource allocation means just binding a resource to a particular array/ function. Examples in the user guide are very ambiguous. Still trying to tease out how to use them.
Serialization, I simply mean some way to ensure a certain block of logic happen strictly after another block. Blocking statements.
Some data structure that will be already be populated at the time of execution. For example, to get sine and cosine, it is easier to store them than implement a function to generate them.
I'm not entirely sure if it's within the scope, for instance to run a 3x1 filter on a 32 element array, inner unroll 3 should allow 32 element array access if it's banked by 3 (mismatch with 32) or larger. (we can doctor the array size for simplicity)
I need to understand how queues get implemented in HLS. HLS allows FIFOs. Maybe it'll be a simple use of that. But I'm not clear how it gets implemented in MachSuite.

Benchmarks
nested_loops
reductions
tiling
blocking_op
index_add
filter
while
if
bitwise
indirection
unroll
bank
pipeline
queues
LUTs
resource_bind
recursion

gemm/ncubed
*
*
-
-
-

*
*
*

*

spatial/fir

-
-

gemm/blocked
*
*
*
-
-

*
*
*

*

stencil/stencil2d
*
*

-
*
*

*
*
*

*

stencil/stencil3d
*
*

-
*
*

*
*
*

*

fft/strided
*

*
-

*
*
*

*

fft/transpose
*

-

*
*
*

*
*

spmv/ellpack
*

-

*
*
*
*

*

spmv/crs
*

*

*
*
*
*

*

kmp/kmp
*
*

*

*
*

*
*
*

sort/merge
*

sort/radix
*

bfs/bulk
*

bfs/queue
*

spatial/kmeans

spatial/gda

spatial/bs

spatial/pagerank

spatial/sw

spatial/tq6

md/knn

md/grid

backprop/backprop

nw/nw

aes/aes

viterbi/viterbi

I assume a combination of https://github.com/cucapra/fuse-benchmarks/issues/74 and direct issues are being used to track this now. @sa2257 reopen if you still need this.


Add function remove doubletagged images

Signed-off-by: jonahjon<EMAIL_ADDRESS>Description of changes:
Sometimes when the image details gets checked it will multiple tags.
["0.0.0.abcde", "latest"]
This would technically pass the filter requirement where we are looking for the presence of the of the prefix 0.0.0 however it might return back the tag of latest for the actual bundle.
This function will check the slice once a match has been made, and remove out an items from the slice which also don't match the prefix requirement.
var newSlice []string
newSlice = removeStringSlice(["0.0.0.abcde", "latest"] "latest")
["0.0.0.abcde", "latest"]  becomes.... ["0.0.0.abcde"]
Last PR was using *detail.ImageTags[j] which would get index out of length error, so changed function to not utilize index.

/approve
/lgtm


feat(widgets): Rename StatefulWidget::render to render_stateful

This change renames the StatefulWidget::render method to
render_stateful to avoid conflicts with the Widget::render method.
Often both the Widget and StatefulWidget traits are in scope, and
when calling the render method on a StatefulWidget the compiler
cannot determine which trait to use. This change resolves that issue by
renaming the StatefulWidget::render method to render_stateful.
The StatefulWidget::render method is still available, but it is
deprecated. A default implementation of render_stateful is provided
that calls the deprecated render method.
Callers should update their code to use render_stateful instead of
render.
implementors of the StatefulWidget trait should update their
implementations to implement render_stateful instead of render, and
provide an implementation of render that calls render_stateful.
This change is non-breaking. The deprecated render method will be
removed in a future release of Ratatui (likely 0.29.0).
Addresses part of a problem raised in
https://github.com/ratatui-org/ratatui/issues/996

Similar to the other PR, I think we could do render_with_state() instead, but I'm fine with render_stateful(). Again, worth checking in with other maintainers for a second opinion.

likewise - I'm 55/45 on stateful vs with_state here too.

Holding for resolution of discussion at https://forum.ratatui.rs/t/naming-render-traits-methods/68


Y-Axis in custom metrics doesn't behave properly

Affected module
Impacts UI
Describe the bug
When I create the custom metrics for the table profile for a bigquery table, the chart's y-axis is not correct based on the value.

The negative values are moving upwards instead of downwards
The vertical gap between two numbers is not consistent. The vertical gap was higher when the number moved by 7th decimal digit, but the vertical shift was lower when the next value was 10000x of previous value.
When my first value was 0.2119, my second value was 2119, the chart line moved upwards. On third ingestion run, my value was 21.19, but instead of downward movement, the chart is still moving upwards.

To Reproduce
Screenshots or steps to reproduce
Negative number moving upwards

The last two numbers are 381.8, while all the numbers to the left of that are 0.01 to 0.03 (many of them are actually 0.038 with variation in 7th decimal digit. The vertical gap between 0.01 to 0.03 is higher that gap between 0.03 to 381.8

On y-axis, 2.1K is lower than 21.2

Expected behavior
Expected behavior is that the y-axis should show negative values moving downwards, the scale or vertical gap between two numbers should be consistent, i.e. gap between 381 vs 0.0381 should be proportional to gap between 0.01 vs 0.0381.
Also, the values on the y-axis should be in increasing order 0.2 < 21.2 < 2119.
Version:

OS: Official Docker image used on macbook
Python version: 3.10.13
OpenMetadata version: 1.3.1
OpenMetadata Ingestion package version: docker.getcollate.io/openmetadata/ingestion:1.3.1

Additional context
More details discussed in slack here

The problem has been resolved in release 1.3.2, thanks to https://github.com/open-metadata/OpenMetadata/pull/15368. Please feel free to reopen the ticket if you encounter the issue again.


Display values outside of pie chart

Now when i hover on pie chart, the values are displayed in tooltip. But i want to display values outside of pie chart. How to do this? I've attached screenshot. Please find it.

Consolidating all doughtnut labelling issues in #78

@sajeetharan
Many thanks!


forc test assertion fail output is messy

for this test:
contract;

struct MyStruct {
  a: u64,
  b: Option<u64>
}

impl Eq for MyStruct {
    fn eq(self, other: Self) -> bool {
        __eq(self.a, other.a)
    }
}

#[test]
fn test_struct_eq() {
  let a = MyStruct { a: 1, b: Some(2) };
  let b = MyStruct { a: 5, b: None };
  assert(a == b)
}

this is the current output:
  Compiled contract "test_contract" with 1 warning.
  Finished debug in 6.477593833s
  contract test_contract
      Bytecode size: 180 bytes
   Running 1 test, filtered 0 tests

   tested -- test_contract

      test test_struct_eq ... FAILED (1.714375ms, 44 gas)

   failures:
      - test test_struct_eq, "/Users/sophiedankel/Development/sway/forc-test/test_data/test_contract/src/main.sw":14
        revert code: ffffffffffff0004 -- Failing call to `std::assert::assert`
        Logs: []

   Result: FAILED. 0 passed. 1 failed. Finished in 1.714375ms.

   Finished in 26.178083ms
Error: Some tests failed.

and here's the output with assert_eq
  Compiled contract "test_contract" with 1 warning.
  Finished debug in 6.47347625s
  contract test_contract
      Bytecode size: 228 bytes
   Running 1 test, filtered 0 tests

   tested -- test_contract

      test test_struct_eq ... FAILED (2.549917ms, 106 gas)

   failures:
      - test test_struct_eq, "/Users/sophiedankel/Development/sway/forc-test/test_data/test_contract/src/main.sw":14
        revert code: ffffffffffff0003 -- Failing call to `std::assert::assert_eq`
        Logs: [{"LogData":{"data":"000000000000000100000000000000010000000000000002","digest":"269894f16ecd3b3f63118dd743c3d95c3bf0cd103db95aa19bed2dceff54b71a","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"len":24,"pc":10512,"ptr":11144,"ra":0,"rb":1}},{"LogData":{"data":"000000000000000500000000000000000000000000000000","digest":"8a5a79e57d534996083803116c52ffb05387d9ee3de660aed251c015d01b42a7","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10344,"len":24,"pc":10532,"ptr":11168,"ra":0,"rb":1}}]

   Result: FAILED. 0 passed. 1 failed. Finished in 2.549917ms.

   Finished in 31.560208ms

Ideally when an assertion fails, it would print the location of the failed assertion in the file. Currently it prints the location of the #[test] tag, which is less useful especially when the test contains multiple assertions.
For assert_eq, it should print the left and right elements with a diff.

We need source mapping to show the line number of the assertion.
This Error: Some tests failed. should be removed.


docker command not found

Issues and Contributing
Please note that only issues related to this Docker image will be addressed here.

If you have Docker related issues, please ask in the Docker user mailing list.
If you have Jenkins related issues, please ask in the Jenkins mailing lists.
If you are not sure, then this is probably not the place to create an issue and you should use any of the previously mentioned mailing lists.

If after going through the previous checklist you still think you should create an issue here please provide:
Docker commands that you execute
Actual result
Expected outcome
Have you tried a non-dockerized Jenkins and get the expected outcome?
Output of docker version
Other relevant information

Was this an issue?  Not sure how anyone can discern what this is about.


Question: Use of import "dart:nativewrappers"?

Is import "dart:nativewrappers" needed in lib/src/oracledart_native.dart? I don't see anything that uses it and it breaks dartdocgen.

Yeah, it is needed for native extension class wrappers.
It's really unfortunate about dartdocgen. One thing you can do if you want to generate documentation - just get rid of oracledart_native.dart and references to it when you run dartdocgen.
Alexander Aprelev.

From: Austin Cummings<EMAIL_ADDRESS>Sent: Thursday, January 22, 2015 3:16 PM
To: aam/oracledart
Subject: [oracledart] Question: Use of import "dart:nativewrappers"? (#26)
Is import "dart:nativewrappers" needed in lib/src/oracledart_native.dart? I don't see anything that uses it and it breaks dartdocgen.

Reply to this email directly or view it on GitHubhttps://github.com/aam/oracledart/issues/26.


oidc-client.d.ts' is not a module with AngularCli

I've started a new Angular 4 project using latest version of angular cli (1.2.7) and lastest angular versions (4.3.3). I've try to use typescript 2.3.4 and 2.4.2, but both versions bring the error
ERROR in C:/Users/Admin/Documents/Visual Studio 2017/Projects/Xev.FrontEnd/src/$$_gendir/app/app.module.ngfactory.ts (35,22): File 'C:/Users/Admin/Documents/Visual Studio 2017/Projects/Xev.FrontEnd/node_modules/oidc-client/oidc-client.d.ts' is not a module.
ERROR in C:/Users/Admin/Documents/Visual Studio 2017/Projects/Xev.FrontEnd/src/$$_gendir/app/app.module.ngfactory.ts (35,22): File 'C:/Users/Admin/Documents/Visual Studio 2017/Projects/Xev.FrontEnd/node_modules/oidc-client/oidc-client.d.ts' is not a module.
ERROR in ./src/$$_gendir/app/app.module.ngfactory.ts
Module not found: Error: Can't resolve 'oidc-client/oidc-client' in 'C:\Users\Admin\Documents\Visual Studio 2017\Projects\Xev.FrontEnd\src\$$_gendir\app'
 @ ./src/$$_gendir/app/app.module.ngfactory.ts 33:0-47
 @ ./src/main.ts
 @ multi ./src/main.ts

It happens only in production build with enabled Ahead of Time compilation (enabled by default for production builds). The command to reproduce it is
ng build -prod
But it builds correctly if I directly disable AoT compilation with command
ng build -prod -aot=false
You can reproduce it if you clone this repo, go to 'develop' branch, and restore npm packages.
P.S. - in debug mode (ng serve) everything works ok.
P.P.S - sorry for English)

Not sure, but here's a recent blog post showing how to get it working in angular: https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client

I solve my problem.
I've create provider for UserManager class, like this
export function userManagerFactory(configuration: Configuration): UserManager {
  return new UserManager(configuration.auth.oidcConfig);
}

export const userManagerProvider: Provider = {
  provide: UserManager,
  useFactory: userManagerFactory,
  deps: [Configuration],
  multi: false
};

where configuration.auth.oidcConfig on L2 is UserManagerSettings instance.
I have a CoreModule, that contains all applicatoin-wide providers, as angular team recommeds. In my application I have a service called AuthService, that wraps UserManager methods and brings some custom logic to auth process. AuthService consumes  UserManager through constructor.
userManagerProvider was added in providers section of CoreModule and Aot compilation fails.
But when I've removed userManagerProvider from providers section of CoreModule and from AuthService constructor argument, and create it directly inside AuthService costructor - everything builds with and without AoT!
So the problem is UserManager cannot be injected to other services. If you register provider for that class - you loose AoT compilation. I think it's odd behavior.

Maybe we can close the issue and create the new one to resolve problem with Angular's IoC.

Sure... i don't know what's involved. Open a new issue and discuss.


Add links to the generated files through the config form

Please describe the task that needs to be done
After configuring the data mapper step, it would be nice to have the links to the files generated during the steps

We already have XSLT file name shown, do we also want to show schema files?


Error span when record doesn't exist in database.

My database has a customer table with ID as a primary key.
Expected behavior: When I search for a record that doesn't exist in the database, I should see an error span in the Jaeger UI.
Actual behavior: When I search for a record that doesn't exist in the database, there is no error span created.
Code:
I'm calling JPA repository from a service using:
 Customer customer = customerRepository.findByid(customerID);
findByid signature is like this:
Customer findByid(long id);

error span will be created only if there is a mistake in query, failed connection etc.
but findByID returning null is valid case and normal span will be created.


Getting: Adding a comment failed....

I am constantly getting this

with no help how to get out of this.

This error is returned from GitHub when there's already a pending review for the PR open on GitHub. We should return a better, custom error message for this case


Consider funnel metric into dashboard

Funnel metric:

[ ] Display # of tickets application_date
[ ] Display subset # of tickets that have at least one inspection (last_inspection_date)
[ ] Display subset # of tickets that have at least one successful inspection (last_approved_insp_date)
[ ] Display subset # of tickets that an official permit issued (permit_issued_date)
[ ] Display subset # of tickets that are closed and a co_cc_date field

Per conversation with @mathias-gibson we're going to put this on hold.


Cleanup species prototypes a bit

Skeletons were very stale because they didn't inherit from mobhuman but now they should have similar components as every other species.
I also added a generic abstract base species to make custom species easier (where they may not want to have humans COUGH VILOUS).

Conflicts on a PR trying to avoid the conflict bait that is species code? Well I never


Update relations.rst

just a minor typo: together is used twice

@zmijunkie thanks for the pull request! Would you mind writing a minimal entry on CHANGES.txt? Forget about the Contributors agreement (although it does not hurt to sign it if you want).

We don't need a changenote for typos and other minot changes.

The build only fails because the ssl-thing cannot deal with forks. I'll merge.

I am really sorry that the ssl-thing cannot deal with forks ....
This is on purpose since we tell travis to push after a successful build to training.plone.org with is done via a ssl hook/with a looked down key for a special user for one special task.
This key is owned by this repo and if you fork, the permissions will change, so it is completely OK that the build is failing because of wrong ssl permissions.
If it don't, it would be really scary, because that means that everyone who forks and makes sure that some basic sphinx tests are running through would be able to publish whatever they like on docs.plone.org.
Yes, I agree it is still not perfect and personally I would like to change the current setup completely, because it has its challenges and at least for me, it is still not secure enough.
The thing is I want to avoid things over and over again, so maybe it is time to thing about how to do training.plone.org in a proper and nice way, but then again hosting it, is only one small part of it.
IMHO there is way more work to do and it would be nice to have first a master plan otherwise we will keep doing things over and over again.
If you have a better solution for the current setup I am looking forward to see that !
I apologize if that was now maybe too harsh, this is not meant to be personally, but there are sometimes reasons why stuff is setup in a certain way even if it maybe not perfect.

I see no real problem with the setup, I simply try telling people to use branches instead of forks.
But: Is it be possible to change the order of the build so that the rst-build and linkcheck-test  is run before the "ssl-thing" fails? This way I will agt least have a indication if the build of the master will fail or not after merging. Currently it fails since www.zope.org is down an the link to http://www.zope.org/the-world-of-zope. Also mr.roboto always complains about missing changelogs even though that is not needed fot the training-docs. Can we disable that?


Add jest-environment-miniflare

Instead of mocking the CF environment at for example https://github.com/serlo/cloudflare-worker/blob/main/jest.setup.ts#L73-L85 we can now use https://www.npmjs.com/package/jest-environment-miniflare. See https://blog.cloudflare.com/miniflare/
Blocker

[x] https://github.com/serlo/cloudflare-worker/issues/356

Let's archive this issue for now...

We need to wait, see https://miniflare.dev/testing


some problems about FaceDetection

There're some problems when i run ’facedetection_test.cpp‘ after building shared lib.
It shows that 'Debug Assertion Failed‘& ‘Expression: vector subscript out of range’.
anyone meet the same problem ?

@nelson0707 Can you identify the specific line that causes this problem?

@nelson0707 I know this error, but I did not run into it. Have you specified the correct path of the model file?

i put the breakpoint and find this line 'cv::Rect face_rect;' that causes the problem

model路径不对

@nelson0707 Have you confirmed that the path of the model is correctly specified?

thank you .
The problem is solved.
@seeta-wushuzhe
@yzldw333


random crashes

When using osiris i seem to always get crashes after 5-10mins can anyone help me fix it

same problem it freeze

probably backtrack problem

I get those crashes, if team damage is applied by other people than me.


/usr/local/include is not added to include path of rdsn in OS X Yosemite

Reproduce Steps

follow the installation step in mac os x yosemite part of tutorials
mkdir $RDSN/mybuilddir; cd mybuilddir; cmake .. -DCMAKE_INSTALL_PREFIX=/opt/rdsn
sudo make install

Error Message
fatal error: 'boost/shared_ptr.hpp' file not found
My Analysis

boost/shared_ptr.hpp is indeed in /usr/local/include of my mac
it works fined in ubuntu 1404 LTS
it seems /usr/local/include is not add to the rdsn project's include path

My Workaround

add "include_directories(/usr/local/include" in function dsn_setup_include_path in $RDSN/bin/dsn.cmake
sudo make install and it works fine

However IMHO they are neither root cause nor solution, I do not understand those var in dsn.cmake and how are they assigned/set.

Hi duanmeng,
Appreciate your great bug report! We don't have a Mac in hand, but we suspect it is highly possible that your Homebrew is not installed in the default directory. We will try later once we get access to a Mac. Meanwhile, you may also try cmake options like INCLUDEDIR="c:\boost_1_57_0" -DBOOST_LIBRARYDIR="c:\boost_1_57_0\lib64-msvc-12.0"  to see whether it works.
Thanks,
Zhenyu

Hi Zhengyu,
"-DBOOST_INCLUDEDIR=/usr/local/include" works!
And "BOOST_INCLUDEDIR:PATH=/usr/local/include" is inserted into $RDSN/mybuilddir/CMakeCache.txt.
Thanks
DuanMeng

Great to hear it works! :) Let us know if you have more issues~


Chore/support shorthands longhands

Problem:
The useInspectorInfo hook would lie about the existence of a prop (it would return a default value instead of nothing). Furthermore, the new longhand-shorthand aware hooks will need information about the order of the property keys.
Fix:
I made a new hook, useInspectorInfoNoDefaults. I also wrote new tests. The hook is not yet used for anything in production.
Commit Details:

Added new hook, useInspectorInfoNoDefaults which is a "fork" of the original useInspectorInfo. @enidemi  already started work in replacing all usage of useInspectorInfo with useInspectorInfoNoDefaults to keep the codebase manageable and avoid having multiple "forks" of the same function laying around
wrote tests that explore padding and paddingLeft shorthands in various scenarios. this hook is just a pre-requisite for our understanding of longhands and shorthands, not full support for it
changed InspectorInfo<T> to InspectorInfo<T, P> and added a new prop: orderedPropKeys: Array<Array<P>> which contains the keys in order of appearance in the code (to be able to determine of paddingLeft shadows padding)
for InspectorInfo<T, P> I had to include some InspectorInfo<T, unknown>s in the codebase, sorry for the mess

oh my god I'm closing this PR, we realized that from this entire PR we only really need the new useMemoizedPropKeys function utilized in a clever way...


Add example for customized codecs

Thanks for the contribution.
@DeamonDev are you willing to fix the conflics here?


Error after few iteration on training

I want to train the network   --arch 7 with my custom 62k dataset that is similar to DUTS. I am using 48GB CUDA and batch size 8. After a few iteration, I am getting the following error
Traceback (most recent call last):
File "main.py", line 55, in
main(args)
File "main.py", line 35, in main
Trainer(args, save_path)
File "/root/TRACER/trainer.py", line 58, in init
train_loss, train_mae = self.training(args)
File "/root/TRACER/trainer.py", line 117, in training
loss.backward()
File "/root/TRACER/venv/lib/python3.6/site-packages/torch/_tensor.py", line 307, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "/root/TRACER/venv/lib/python3.6/site-packages/torch/autograd/init.py", line 156, in backward
allow_unreachable=True, accumulate_grad=True)  # allow_unreachable flag
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

Please change the num of batch sizes or num_workers.
It is mainly originated from CUDA, not the codes.

I have changed the batch sizes or num_workers both but get the same error. I am using Quadro RTX 8000  48GB.

Did you use a single gpu? If yes, change multi_gpu=False in config.
Then, try num_workers=0. When we tried it with the same device, we could not reproduce the error.

Now I am getting the following error
Traceback (most recent call last):
File "main.py", line 55, in
main(args)
File "main.py", line 35, in main
Trainer(args, save_path)
File "/home/user/PycharmProjects/TRACER/trainer.py", line 56, in init
train_loss, train_mae = self.training(args)
File "/home/user/PycharmProjects/TRACER/trainer.py", line 106, in training
loss1 = self.criterion(outputs, masks)
File "/home/user/PycharmProjects/TRACER/util/losses.py", line 41, in adaptive_pixel_intensity_loss
bce = F.binary_cross_entropy(pred, mask, reduce=None)
File "/home/user/PycharmProjects/TRACER/venv/lib/python3.6/site-packages/torch/nn/functional.py", line 2915, in binary_cross_entropy
return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)
RuntimeError: all elements of input should be between 0 and 1

It seems there are negative or nan values in your output or labels.
Please check the values.


Fix typo in ADD_OR_UPDATE_SAFE reducer

Fix minor typo left behind after fixing #1693
Not critical because this branch is used in very limited cases. Information is updated in case is needed but wouldn't prevent closing modals or transaction details if no update is necessary.

Travis automatic deployment:
https://pr1735--safereact.review.gnosisdev.com/rinkeby/app

Travis automatic deployment:
https://pr1735--safereact.review.gnosisdev.com/volta/app


Visualizing Streams in Qlogs

Hi,
I'm using aioquic to study the streams in qlogs. I wanted to make sure about where to study the streams in qlogs. I see the stream details in Multiplexing tab which tells me when did the stream start and when it ended.
I use aioquic client to send multiple requests within  a connection and I see that the throughput of each subsequent request keeps on decreasing. I raised an issue on aioquic regarding this
https://github.com/aiortc/aioquic/issues/239
I was trying to visualize and figure out whether the streams are actually running in parallel or they are sequential ? Is there any place other than multiplexing tab where I can see the behavior of streams and confirm whether the requests are in parallel or in sequential manner.  Secondly, if there is any feature in qlogs which can help me understand why the throughput keeps on decreasing ?
Thank You
Best,
Abhinav

Hey @abnv418,
The multiplexing tab was specifically designed to give you an idea of whether the streams are being multiplexed/round-robined or sent in sequential order... could you maybe share a screenshot of what you're seeing so I can help interpret it for you? Or better yet a qlog file?
If that's not enough, you can of course also just use the sequence diagram. That should show you for each QUIC packet for which stream it carries data. If you always see the same Stream ID in a given burst of packets before you see another Stream ID there, that would indicate sequential. If you instead see Stream ID switching each X packets (say each 1, 2, 4, 10, 20 packets for example), then you'd have round-robin/multiplexing behaviour.
In terms of throughput, that's a difficult metric to define here, and what you're seeing might just be an artefact of how aioquic is measuring it internally (e.g., if it IS multiplexing, the bandwidth is divided between different streams, causing the per-stream throughput to be lower?). You might look at the congestion diagram to get an idea of how the bandwidth was for the entire connection. If that seems to be stable, then aioquic is lying to you/you're misinterpreting what it's telling you ;) If the entire connection's bandwidth drops (e.g., lots of packet loss, low congestion window overall, use the ruler tool to measure slopes), then it's not due to multiplexing but rather failing congestion control.
I hope that helps!


How can I exit janeway?

coming from bash and Python, i'm used to exit shells w/ <ctrl>+D. that would be nice to have in janeway as well.
currently i'm stuck in a shell and i don't know how to end it from inside, a hint on that would be helpful in the README.

It's <ctrl>+C to exit the application, but maybe I can add it to the configuration file.


Compatibility check and testing for node.js 22

Notification from ioBroker Check and Service Bot
Dear Adapter developer,
Node.js 22 will become the official node.js LTS release October 2024 - see node-releases
So please check your adapter with Node.js 22.
Please add node.js 22 to the adapter testing matrix which is executed on commits. This check is normally controlled by workflow located at .github/workflows/test-and-release.yml. The recommended testmatrix is [18.x, 20.x, 22.x] now. It's ok to test node.js 20.x and 22.x only if there are any technical reasons (i.e. requirements caused by dependencies) to do so.
In any case please set the 'engines' clause in package.json according to the minimum node version used at testing. Please also do this if the adapter is not able to work with certain Node.js versions, so that ioBroker can prevent users from installing the adapter if not compatible. If you detect any incompatibility with node.js 22 please try to fix it and / or let us know if the problem seems to be located at core components.
Please close the issue after you checked it.
Feel free to contact me (@iobroker-bot) if you have any questions.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence
Note: If you added node 22 tests already, simply close this issue.

nodeJs 22 tests seem to be missing
https://github.com/arteck/ioBroker.judoisoft/blob/9542efd6982f7fe1a75f4f439f6e9377d1214d8d/.github/workflows/test-and-release.yml#L53


Error 152: The Entity Framework provider type 'EFCache.CachingProviderServices, EFCache, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=46c4868af4307d2c' did not have a static property or field named 'Instance'. Entity Framework providers must declare a static property or field named 'Instance' that returns the Singleton instance of the provider.

I've installed the EFCache package and now I get this error message:
Error 152: The Entity Framework provider type 'EFCache.CachingProviderServices, EFCache, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=46c4868af4307d2c' did not have a static property or field named 'Instance'. Entity Framework providers must declare a static property or field named 'Instance' that returns the Singleton instance of the provider.

I'm using .net 4.5.2 with EF6.1.3 and Firebird .net Provider 5.9.1.
The application runs, but I have no idea if the cache is ever used.

Are you using Model/Database First or CodeFirst?

I use DbContext API, but reverse engineer the DB into a EDMX, to have a better visual overview, rename data and later I use a t4 script to generate the Context and the classes

But do you use this edmx in any way? I believe the error is a design time error that happens because you have an edmx file open. The edmx file has a provider manifest token probably pointing to EFCache provider. Since VS can't find this provider it fails. I think that if you close the edmx file in VS the error will go away. As I pointed out, this is a I believe it is a design time and won't affect your application if you don't use this edmx.

no, the EDMX is closed. I get this each time during compile.

Did you add the edmx to the project then?

yes, the EDMX is part of the project, because there is no Fluent T4 script that supports EF6 (only EF5: https://marketplace.visualstudio.com/items?itemName=IFle.EF5xDbContextFluentGeneratorforC), I must use the EDMX at runtime for the mapping.

This is the problem. EF5 provider model was different from EF6. Can't help with your problem - it's outside EF Cache, sorry.

I'M NOT USING EF5 provider!!!!!!!!!!!!! I used this in the past with EF5!!!!!!!! Is this so hard to understand!!!

Yes. You said your T4 script is using EF5.

I never said this, learn to read.

yeah, it is totally EF5

Dependencies
    EntityFramework (>= 6.0.0)

2 weeks later, still no response.
In internal class ProviderServicesFactory you have a method private static DbProviderServices GetInstance(Type providerType) which tries to get a public static Property with name Instance

const BindingFlags bindingFlags = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;

            var instanceMember = providerType.GetStaticProperty("Instance")
                                 ?? (MemberInfo)providerType.GetField("Instance", bindingFlags);
            if (instanceMember == null)
            {
                throw new InvalidOperationException(Strings.EF6Providers_InstanceMissing(providerType.AssemblyQualifiedName));
            }

If this fails it raises an InvalidOperationException with the error EF6Providers_InstanceMissing which is defined as

The Entity Framework provider type '{0}' did not have a static property or field named 'Instance'. Entity Framework providers must declare a static property or field named 'Instance' that returns the Singleton instance of the provider.

yeah, so your wrap provider misses this Instance property, which is required for EF6 providers, but yeah, this is because I use EF5
Because you also don't have any Eventsource logging added, you can't really see what your code does. I've removed the EFCache package now, build my own Cache for the whole application (not only EF) based on MemoryCache Class and added proper Eventsource logging support and here I see statistics about the Cache hit/miss ratios and see that it actually works.


got an error Property 'getMetadata' does not exist on type 'typeof Reflect'

ERROR in node_modules/typed-reducer/index.ts(62,53): error TS2339: Property 'getMetadata' does not exist on type 'typeof Reflect'.
node_modules/typed-reducer/index.ts(77,27): error TS2339: Property 'getMetadata' does not exist on type 'typeof Reflect'.
node_modules/typed-reducer/index.ts(81,13): error TS2339: Property 'defineMetadata' does not exist on type 'typeof Reflect'.

Hi @xavierclotet,
sorry it's not specified, but you should probably try installing @types/reflect-metadata

install what? typed-reducer is already installed

ah sorry, commenting by phone cut some text. I meant @types/reflect-metadata

thx but problem persists.

Try adding it as in https://github.com/Gbuomprisco/typed-reducer/blob/master/example-app/src/tsconfig.app.json#L8

yes now is fixed! thx!


The buttons on the file view page are not aligned

Description
No response
Screenshots

Gitea Version
current main
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
No response
Browser Version
.

Did https://github.com/go-gitea/gitea/pull/30007 fix it?

Pretty sure it's fixed an try confirms it: https://try.gitea.io/silverwind/symlink-test/src/branch/master/asciicast.cast


Adding a spring component #112

Cannon.js contains a simple spring class, which could be a nice addition to the a-frame physics system 😄
I tried to maintain a similar fashion as the

src/components/constraint.js

Basically upon creation i wait for the Cannon bodies to load -> create the spring instance -> update all properties from the component's schema.
If you like it, please let me know:

which files should i attach to this PR
what tests do you want for this PR ( except my simple example with different attributes applied )

Very nice thanks! If you want to include a simple example like that, I think it'd be great. :)

Hey, I have no clue why i was sure about those "max" restrictions. I've also utilized the step() callback from the physics system. Also i've added a bool to keep the functionality of play and pause.

Nice work, thanks! :)


refactor: using angular signals

see https://github.com/matschik/component-party.dev/pull/196#issuecomment-1873293246

Closing the PR for the moment due to inactivity


Add an option for a minimum score as a percentage of upvotes per tota…

…l votes.
Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[X] Searched the bugtracker for similar pull requests
[X] Read adding new extractor tutorial
[X] Read youtube-dl coding conventions and adjusted the code to meet them
[ ] Covered the code with tests (note that PRs without tests will be REJECTED) - in progress (sorry I'm new)
[X] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[X] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[ ] New extractor
[X] New feature

Description of your pull request and other information
I would like to restrict downloads which have a minimum like_count percentage of total counts as opposed to a minimum like_count number. I added an option following the code for the option --min-views to implement the option --min-score.
For example:
youtube-dl --min-views 10000 --min-score 80 -a url-list.txt

will only download the videos which have minimum views of 10,000 and like_count/(like_count+dislike_count) >= 0.8 if the like_counts data is supported for the site.

It appears average_rating should be doing what I implemented here.


Add missing cstdint include

Some platforms need this header to be included explicitly

Thank you. If I come across any more missing headers in the future, may I add them without requesting approval?

Yes, you can do that.


updated delete document paths to use new write service

What this PR does:
Refactor of the delete document.. Simple and clean, although it was already pretty straight forward.. New feature: profile query param is available on the delete endpoints as well now.
Which issue(s) this PR fixes:
Internal.
Checklist

[ ] Unit test updates for the ReactiveDocumentService
[ ] Resolve two TODOs, @EricBorczuk please advise..
[x] Delete existing code

@EricBorczuk any chance you can review so I can merge and go forward?


Adding certbot for LIVE domains

Hi thanks for this repo is it just made EvilNginx3 a whole lot better ive been trying to do something like this for a while the scope for this is wide ranging and additional lures pages can be used far and wide as bait
Im in process of trying to automate it (once done ill throw a pull request)
could you offer a little advise where to put certbot into the mix or even better how to use a bought SSL into the mix somewhere for live engagements ??
Also im very interested in getting hold of the enhanced version you spoke of in your Vid how is this possible

Thanks a lot for the nice words and glad you like it.
For live deployments, I usually use the manual acme challenge flow (not efficient but easy and quick way):
certbot certonly --manual --preferred-challenges=dns --email [info<EMAIL_ADDRESS>--server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d '*.domain.com' -d 'domain.com'

It will ask you to manually add 2 TXT DNS records and hit enter once you confirm the records are propagated by your DNS provider.
Then it places the generated certs in /etc/letsencrypt/live/domain.com/ which is what you need to set in the apache configs for them to be picked.
To automate this, you will either have to supply your own private key and chain and point the apache configs to pick them up from a specific directory (place them both under a directory with the domain as the name).
Here is the relevant part of the apache configs you will need to change:
Before:
Define certsPathDir /etc/ssl/localcerts/
Define domain fake.com

After:
Define certsPathDir /path/to/your/certs/
Define domain domain.com

and /path/to/your/certs/ should have a subdirectory named domain.com under which you have fullchain.pem and privkey.pem
(Just make sure that you apply the correct permissions to the private key, otherwise you will face permission issues)
Hope this helps.
(Will probably add the above to the Readme soon)

what about using cloudflare for SSL is this something you have looked at ??
I have a set of old aged domains for engagements im redirecting to my EVGX server with a meta refresh in encrypted JS thats behind cloudflare "under attack" mode to get the challenge from them and to stop scanners grabbing my EVGNX link the JS also kinda acts as a load balancer as it picks a server to redirect to at random from a list of 3 different EVGNX servers (depending on engagement size) , but I keep getting issues with the SSL on my EVGNX SSL set up I cant seem to get it to work for some reason with the above repo I was thinking would it be possible to just use cloudflare to handle the SSL on the evilginx domain instead of certbot ??

I have it in my todo list, but I theoretically it should be possible. If Cloudflare allows you to get the private key and CA of the SSL certs they generate for you, you can simply add them to your server then change the paths at the very top of /etc/apache2/sites-enabled/000-default.conf to point to the new ones. (Might have to play a bit with the permissions)
To use your own SSL certs (with certbot) you will have to generate and setup the certs before adding Cloudflare to the picture. If you don't, certbot will most likely fail.

thanks ill see what i can come up with

@Xcertik-Realist @waelmas greetings champs. were you able to find an efficient way to go live with this framework? I have been trying to get my head around it. kindly assist


feat(Pointer): pass RaycastHit struct on destination marker events

The RaycastHit struct is now passed in the Destination Marker payload
and the RaycastHit.collider is also used to check if a new object is
being collided with as using RaycastHit.transform only checks the top
level rigidbody for changes and not the sub colliders.

That's great news! Thank you.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_bc6f28e5-ad6a-44a9-bcd7-891ddbfec2a3/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_bc6f28e5-ad6a-44a9-bcd7-891ddbfec2a3.git

Docs Build status updates of commit f514852:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_main_2022-03-14-02-10-34 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel