Building an AppBundle using archivesBaseName fails.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Create a new project, for example using the flutter create bug command.
Open projectRoot/android/app/gradle.
Look for the following section:

android {

........

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.bug"
        // You can update the following values to match your application needs.
        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

......

}

Add archivesBaseName="abc" inside the defaultConfig section.
Build the AppBundle using the flutter build appbundle command.

Expected results

The abc-release.aab file is created in projectRoot/build/app/outputs/bundle/release.
The log shows that the build was successful.

Actual results

The abc-release.aab file is created in projectRoot/build/app/outputs/bundle/release.
But the terminal log shows Gradle build failed to produce an .aab file..

Code sample
Code sample
.....
android {
    namespace "com.example.bug"
    compileSdkVersion flutter.compileSdkVersion
    ndkVersion flutter.ndkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.bug"
        // You can update the following values to match your application needs.
        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName

        archivesBaseName = "abc"
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
}

......

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
It was too long, so I uploaded it as a txt file.
Here is the link.
https://pastebin.com/0E3wYXVb

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.22621.1555], locale ja-JP)
• Flutter version 3.10.0 on channel stable at C:\Users\xxxx\AppData\Local\flutter_windows_3.10.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 84a1e904f4 (7 days ago), 2023-05-09 07:41:44 -0700
• Engine revision d44b5a94c9
• Dart version 3.0.0
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Users\xxxx\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Users\xxxx\AppData\Local\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.9)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.32106.194
X The current Visual Studio installation is incomplete. Please reinstall Visual Studio.
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• 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.15+0-b2043.56-9505619)
[√] Android Studio (version 2022.2)
• Android Studio at C:\Users\xxxx\Downloads\android-studio-2<IP_ADDRESS>-windows\android-studio
• 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 17.0.6+0-b2043.56-9586694)
[√] Android Studio (version 2022.1)
• Android Studio at C:\Users\xxxx\Desktop\android-studio-2<IP_ADDRESS>-windows\android-studio
• 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.15+0-b2043.56-8887301)
[√] VS Code (version 1.74.1)
• VS Code at C:\Users\xxxx\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1555]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 113.0.5672.93
• Edge (web)        • edge    • web-javascript • Microsoft Edge 112.0.1722.58
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.

This is because archivesBaseName renaming is not considered in File findBundleFile(FlutterProject project, BuildInfo buildInfo, Logger logger, Usage usage) in flutter/packages/flutter_tools/lib/src/android/gradle.dart, which checks whether the app bundle is generated after the generation is completed.
.childFile('app-${buildInfo.modeName}.aab'),

Here, use regular expressions to clear any aab.
.childFile('/*/-${buildInfo.modeName}.aab'),

Or、like on apk, create new directory like  flutter-bundle, and copy appbundle flie in here by fixed file name.
Like this :
in flutter/packages/flutter_tools/gradle/flutter.gradle
 variant.outputs.all { output ->
                    assembleTask.doLast {
                        // `packageApplication` became `packageApplicationProvider` in AGP 3.3.0.
                        def outputDirectory = variant.hasProperty("packageApplicationProvider")
                            ? variant.packageApplicationProvider.get().outputDirectory
                            : variant.packageApplication.outputDirectory
                        //  `outputDirectory` is a `DirectoryProperty` in AGP 4.1.
                        String outputDirectoryStr = outputDirectory.metaClass.respondsTo(outputDirectory, "get")
                            ? outputDirectory.get()
                            : outputDirectory
                        String filename = "app"
                        String abi = output.getFilter(OutputFile.ABI)
                        if (abi != null && !abi.isEmpty()) {
                            filename += "-${abi}"
                        }
                        if (variant.flavorName != null && !variant.flavorName.isEmpty()) {
                            filename += "-${variant.flavorName.toLowerCase()}"
                        }
                        filename += "-${buildModeFor(variant.buildType)}"
                        project.copy {
                            from new File("$outputDirectoryStr/${output.outputFileName}")
                            into new File("${project.buildDir}/outputs/flutter-apk");
                            rename {
                                return "${filename}.apk"
                            }
                        }
                    }
                }
            }

add like this :
variant.outputs.all { output ->
                    bundleTask.doLast {

and
           project.copy {
                            from new File("$outputDirectoryStr/${output.outputFileName}")
                            into new File("${project.buildDir}/outputs/flutter-bundle");
                            rename {
                                return "${filename}.aab"
                            }
                        }

and in File findBundleFile(FlutterProject project, BuildInfo buildInfo, Logger logger, Usage usage)  function , change checking path so.

Thanks for the report @kkkkan
Can you check this related issue and see if it resembles your case ?

@darshankawar
Thank you for checking.
The issue #73919 you pointed out seems to be about building apks.
This issue is similar, but slightly different.
Currently, even if you add archivesBaseName, the apk build is successful, but  app-<buildtype>.apk is created in the ${baseBuildDir}/flutter-apkdirectory. ${baseBuildDir}/apkdirectory contains ${archivesBaseName}-<buildtype>.apk.) The issue you pointed out seems to be about creating ${archivesBaseName}-<buildtype>.apk in ${baseBuildDir}/flutter-apk directory as well.
This issue I raised is that the build fails when archivesBaseName is added to the appBundle build, so it is slightly different. (The method that #73919 said should be fixed in the issue you pointed out seems to be a method that can only be used for apk builds, if I understand correctly.)
I hope this is helpful! Let me know if you have any other questions.

I apologize for the error in the previous part. The code I provided earlier probably won't work.

add like this :
variant.outputs.all { output ->
                    bundleTask.doLast {

and
           project.copy {
                            from new File("$outputDirectoryStr/${output.outputFileName}")
                            into new File("${project.buildDir}/outputs/flutter-bundle");
                            rename {
                                return "${filename}.aab"
                            }
                        }

There is no function such as bundleTask , and I think we need to do the following in order to achieve the same goal.
I think it would be better to do the following instead of the above.
Change
 variant.outputs.all { output ->
                    assembleTask.doLast {
                        // `packageApplication` became `packageApplicationProvider` in AGP 3.3.0.
                        def outputDirectory = variant.hasProperty("packageApplicationProvider")
                            ? variant.packageApplicationProvider.get().outputDirectory
                            : variant.packageApplication.outputDirectory
                        //  `outputDirectory` is a `DirectoryProperty` in AGP 4.1.
                        String outputDirectoryStr = outputDirectory.metaClass.respondsTo(outputDirectory, "get")
                            ? outputDirectory.get()
                            : outputDirectory
                        String filename = "app"
                        String abi = output.getFilter(OutputFile.ABI)
                        if (abi != null && !abi.isEmpty()) {
                            filename += "-${abi}"
                        }
                        if (variant.flavorName != null && !variant.flavorName.isEmpty()) {
                            filename += "-${variant.flavorName.toLowerCase()}"
                        }
                        filename += "-${buildModeFor(variant.buildType)}"
                        project.copy {
                            from new File("$outputDirectoryStr/${output.outputFileName}")
                            into new File("${project.buildDir}/outputs/flutter-apk");
                            rename {
                                return "${filename}.apk"
                            }
                        }
                    }
                }
            }

to  like this :
            variant.outputs.all { output ->
                    assembleTask.doLast {
                        // `packageApplication` became `packageApplicationProvider` in AGP 3.3.0.
                        def outputDirectory = variant.hasProperty("packageApplicationProvider")
                            ? variant.packageApplicationProvider.get().outputDirectory
                            : variant.packageApplication.outputDirectory
                        //  `outputDirectory` is a `DirectoryProperty` in AGP 4.1.
                        String outputDirectoryStr = outputDirectory.metaClass.respondsTo(outputDirectory, "get")
                            ? outputDirectory.get()
                            : outputDirectory
                        String filename = "app"
                        String abi = output.getFilter(OutputFile.ABI)
                        if (abi != null && !abi.isEmpty()) {
                            filename += "-${abi}"
                        }
                        if (variant.flavorName != null && !variant.flavorName.isEmpty()) {
                            filename += "-${variant.flavorName.toLowerCase()}"
                        }
                        filename += "-${buildModeFor(variant.buildType)}"
                        project.copy {
                            from new File("$outputDirectoryStr/${output.outputFileName}")
                            into new File("${project.buildDir}/outputs/flutter-apk");
                            rename {
                                return "${filename}.apk"
                            }
                        }

                        **
                        // replace "apk" to "aab" because AGP make bundle same prefix between apk and aab
                        // (I don`t know how to write replace substring , so belows is just image. actual working code is maybe not like this.)
                        def bundleName = output.outputFileName.replace(".apk",".aab")

                        // replace "apk" to "bundle" because AGP make appbundle in `bundle` directory. (apk in `apk` directory.)
                        // (I don`t know how to write replace substring , so belows is just image. actual working code is maybe not like this.)
                        // I think the directory name might be in output.outputFileName, so it might be better to replace it there.
                        // However, I think it is in outputDirectoryStr.
                        def bundleOuputDir = outputDirectoryStr.replace("apk","bundle")
                        project.copy {
                            from new File("$bundleOuputDir/${bundleName}")
                            into new File("${project.buildDir}/outputs/flutter-bundle");
                            rename {
                                return "${filename}.aab"
                            }
                        }
                        **
                    }
                }
            }

Thanks for the update. Seeing the same behavior as reported.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.10.0, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.10.0 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (2 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.11.0-6.0.pre.134, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.11.0-6.0.pre.134 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f31dae2a80 (5 hours ago), 2023-05-17 17:18:51 -0700
    • Engine revision d970370779
    • Dart version 3.1.0 (build 3.1.0-118.0.dev)
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

+1 I have faced the same issue too. The build failed when build appbundle with archivesBaseName modified in build.gradle


Char pointer array parameter data

I cannot get to retrieve the data from a function I am calling. The C function is as follows:
int GetImage(void* ImageData, unsigned int reqLen, unsigned int*pRetLen );

And my JS code looks like this:
var ffi = require('../../');
var ref = require("ref");

var uintPtr = ref.refType(ref.types.uint);
var voidPtrType = ref.refType(ref.types.void);
var cam = ffi.Library('./camLib', {
  'GetImage': ['int', [voidPtrType, 'uint', uintPtr]]
})

On my C code, I send the variable imageData as:
uint8 *temp_image = NULL;
int imageSize = 1280 \* 960 \* 3;
temp_image = (uint8 \*)malloc(imageSize\*sizeof(uint8));

I am trying to access it like this:
var retLen = ref.alloc('uint');
var buf = new Buffer(1280\*960\*3);
buf.type = ref.types.char;
var imageValue = cam.VcGetImage(buf, buf.length, retLen);
console.log(buf);
console.log(buf.deref());
console.log(buf.toString());

And the output shows:
<Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... >
0

Not sure why I am not getting any data. Are there any other ways to approach this?
Thanks in advance!

It seems correct to me at first glance. What does retLen.deref() return after the VcGetImage() call?

Did you solve it? I'm dealing with a very similar problem. Thanks


feat: Initialize gh-page branch for hosting Helm charts

What this PR changes/adds
Initialize the gh-pages branch that will static web content. Especially this will be used to hosting the Helm charts that will be published to ArtifactHub.
Why it does that

Introduced REAME.md file
Introduce charts folder with empty index.yaml file in it (this file will later be updated by CICD).

Linked Issue(s)
Contributes to #1994
Checklist

[ ] added appropriate tests?
[ ] performed checkstyle check locally?
[ ] added/updated copyright headers?
[ ] documented public classes/methods?
[ ] added/updated relevant documentation?
[ ] assigned appropriate label? (exclude from changelog with label no-changelog)
[ ] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

First, from the changed files, I cannot see where you want to link the Helm charts so that are publicly available via our GitHub pages. Second, we cannot link .yaml Charts. How (visually) should these charts be provided? @bscholtes1A

Did I miss something? The GitHub pages within this repository are not for serving any static web content anymore. Therefore, we have the docs repository.

There are two ways to serve static content from a GithubRepository. Either by relying on the docs/ folder or by configuring a project to serve a particular branch. See here https://helm.sh/docs/topics/chart_repository/#github-pages-example
Here we use the second approach to have a dedicated folder in a dedicated branch that will contain the packaged Helm charts. Once the gh-pages branch will be setup as a Github Pages in the repo setting, the packaged helm charts will be publicly available through the internet, which will allow to reference them in ArtifactHub.
This approach is detailed here: https://leeyoongti.medium.com/helm-in-kubernetes-part-4-publish-helm-chart-to-artifact-hub-using-github-pages-ab7f55904faa

Just checked with @paullatzelsperger : it seems a repository cannot have more than 1 Github Page active at the time.
So as DataspaceConnector repository already uses /docs, a dedicated repository will have to be created for hosting the Helm charts.
Closing this PR.


Remove PublishProvisionedDevice/PublishUnprovisionedDevice from Disco…

…very_ImplPlatform.h since they seems unused
Problem
While working on Tests_OptionaInterfaceIdArgument I stumble on those 2 methods that seems old leftovers.
Change overview

Remove them

Fast-track dead code removal.


Take postcss dir-dependencies into account

Thanks for this great plugin 🙏
Using tailwind and watch mode, I realised there would not be any rebuild when changing my html files.
This PR is a WIP aiming to add complete PostCSS dependency support to this plugin.
Some gotchas :

No tests yet
At the moment I only take care of dir-dependency, I guess we could also look at regular dependencies and stop passing getFilesRecursive(sourceDir) to watchFiles ?
For dir dependencies, I don't respect the glob pattern and just send every file to the watched files (I think postcss-loader for webpack does the same), mostly for performance reasons and to avoid adding a glob library

WDYT ? I'll be glad to improve this PR and add tests following your guidance

Hi @martonlederer, had any chance to look at this ? I'm using it in production for months now and it runs smoothly :)

Hey merging it today :)


Test the trigonometry routing on remarkable angles

[x] Compare the remarkable angles to Vector._trig, and not cos, sin, in test_remarkable_angles.
[x] Tighten-up the tolerances on that test.
[x] Modify utils.isclose to be usable outside Hypothesis.
[x] Modify rotate/remarkable_angles to use the same convention as Vector._trig.

I mentioned on Discord that Vector._trig was producing values that were off (when compared to remarkable_angles).  The initial test was actually buggy: remarkable_angles contained (sin, cos) pairs, whereas Vector._trig returns (cos, sin) pairs.

I should note that if we have imprecision/inconsistency in these angles, I think we should take the answer that gives us smooth curves than what's 100% correct.
bors r+

@astronouth7303 What do you mean by “smooth curves“ here ?
In any case, rotations should be “smooth” for whatever reasonable meaning of it; I can probably write a test to check they are 1-Lipschitz.

I just mean, I don't want any perturbances or "bumps" or jitter caused by certain angles being hardcoded or whatever.

@astronouth7303 Oh, yes; only the test uses known values, not the implementation.


TTD: Updates to support innerloop TTD.

Update modes to allow debugging while recording.
JSRT to emit log (that knows about final BP) from debugger.

If we want this to land in node-chakracore soon, you'll want to rebase it against release/1.9.

Closing and retargeting release/1.9 (PR #4636)


The issue I'm having is that one of the models has an attribute called "first_name" and the other model doesn't, so what I think I need to be doing is checking if that property exists before trying to print it, but I can't figure out the correct way to do that.
I've tried the following:
@if ($event->getExtraProperty('attributes.first_name') != NULL)
@if ($event->getExtraProperty('attributes.first_name'))
@if (isset($event->getExtraProperty('attributes.first_name')))
but none of them trigger like I'd expect them to.
Can someone tell me what I'm missing?

Hi,
Have you tried dumping the $event->getExtraProperty('attributes.first_name') output to see what's actually being returned?
Normally when the extra property doesn't exist null should be returned so your approach is correct.

There are many ways but I find myself using laravel array_get to check and print the properties.
@if( $first_name = array_get($event->properties, 'first_name') )
   First Name:  {{ $first_name }}
@endif


"Update Available" still showing

This isn't much of a bug, but it's still a small annoyance.
http://prnt.sc/cjb43v
I'm on GIT-1693188 and it's still showing that.

Hi @Theepwner
can you please check git workspace and make sure your VERSION file is properly updated?
git status

I can't reproduce that issue on my end:

I got:
On branch master
nothing to commit (working directory clean)
And for some reason out of the blue by bans page isn't functioning, like cloudflare on my site is saying it's a host error. Any ideas?

Can you bypass CloudFlare and check if it works by requesting the upstream directly?
For server errors In general, check your error.log please. Maybe we can find something useful in there.

Ahhh, figured it out. Just put up a new firewall and forgot to whitelist the mysql port... All is well.

👌


Windows opengl problem

extern crate gl;
extern crate sdl2;

fn main() {
    let sdl_context = sdl2::init().unwrap();
    let video_subsystem = sdl_context.video().unwrap();

    let window = video_subsystem.window("Toyunda Player", 800, 600)
        .resizable()
        .position_centered()
        .opengl()
        .build()
        .unwrap();

    gl::load_with(|name| video_subsystem.gl_get_proc_address(name) as *const _);
    unsafe{gl::BindVertexArray(0);}
}

It works on Linux, but crashes on Windows 7 and 10 64bit. Output:
     Running `target/debug/pote`
thread '<main>' panicked at 'gl function was not loaded', /tmp/pote/target/debug/build/gl-6607a19d5bffafaf/out/bindings.rs:23202
Process didn't exit successfully: `target/debug/pote` (exit code: 101)

We have the same problem with a binding we are making with libmpv. gl_get_proc_address("glGetString") returns a non-null pointer, but when the pointer is called by mpv, it always returns null. The problem is not present on linux, only windows.

You have to set up your renderer to use opengl as well, like so :
extern crate gl;
extern crate sdl2;

fn find_sdl_gl_driver() -> Option<u32> {
    for (index, item) in sdl2::render::drivers().enumerate() {
        if item.name == "opengl" {
            return Some(index as u32);
        }
    }
    None
}

fn main() {
    let sdl_context = sdl2::init().unwrap();
    let video_subsystem = sdl_context.video().unwrap();

    let window = video_subsystem.window("Toyunda Player", 800, 600)
        .resizable()
        .position_centered()
        .opengl()
        .build()
        .unwrap();
	let renderer = window.renderer()
        .present_vsync()
        .index(find_sdl_gl_driver().unwrap())
        .build()
		.expect("Failed to create renderer with given parameters");
    gl::load_with(|name| video_subsystem.gl_get_proc_address(name) as *const _);
	renderer.window().unwrap().gl_set_context_to_current().unwrap();
    unsafe{gl::BindVertexArray(0);}
}

Since there doesn't seem to be any more information about this, as of 5/15/2017 window (VideoSubsystem) does not have a renderer function. How else can we set up the renderer?

Dont have much time rn but you should use Canvas instead.

Figured it out, code is below. Would it be worth updating the README?
extern crate sdl2;

use sdl2::render::CanvasBuilder;

fn find_sdl_gl_driver() -> Option<u32> {
    for (index, item) in sdl2::render::drivers().enumerate() {
        if item.name == "opengl" {
            return Some(index as u32);
        }
    }
    None
}

fn main() {
    let sdl_context = sdl2::init().unwrap();
    let video_subsystem = sdl_context.video().unwrap();

    let window = video_subsystem.window("Window", 800, 600)
        .resizable()
        .position_centered()
        .opengl()
        .build()
        .unwrap();

    let renderer = window.into_canvas()
        .index(find_sdl_gl_driver().unwrap())
        .present_vsync()
        .build();

    gl::load_with(|name| video_subsystem.gl_get_proc_address(name) as *const _);

    unsafe{gl::BindVertexArray(0);}
}

Definitely!


<Leader> key doesn't work

Version of NVim
NVIM v0.10.0
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Packet manager
Lazy Vim
Config
{
        "folke/which-key.nvim",
        event = "VeryLazy",
        init = function()
          vim.o.timeout = true
          vim.o.timeoutlen = 300
        end,
        opts = {
            -- your configuration comes here
            -- or leave it empty to use the default settings
            -- refer to the configuration section below
        }
    },

Checkhealth

OS
Fedora 40
Problem
While other keys, (like z),  work fine, the <leader> key (space) doesn't work at all!
I'm new to NVim, so, maybe, i haven't configured some key at the NVim config (haven't touched it, only worked with lazy), but i don't really know what's the issue here.
Please help!

This is a vscode extension. Are you sure you are in the right repository?

This is a vscode extension. Are you sure you are in the right repository?

Oh, sorry!


Add a sample application to show read-only behaviors

Ref 3276
A sample app is needed to show off the different read-only features.
Elyra Canvas issue: https://github.com/elyra-ai/canvas/issues/919

Implemented


Possible to remove html elements ?

@felixaime Hi, is it possible to remove html btn ? I'm trying t delete a button from reports.vue on frontend directory but nothing happens.

just install required packages for npm


Fix translations

The previous implementation of translations didn't have the ability to support multiple languages because it did not specify the language anywhere in the translation method calls.
By moving the translations to middleware we can make use of built-in Accept header parsing to determine the user's desired language and translate accordingly (although we don't currently have content for any language other than en).
Additionally by automatically mounting translations from hof-template-partials we can simplify translation compilation in implementing projects as we remove any need to compile that content into translation files.
In particular this removes any need to define common translations in order to be able to load content for error pages and cookie/terms pages.
This is dependent on new versions of hof-template-partials and hof-middleware with the following merged:

[x] https://github.com/UKHomeOfficeForms/hof-middleware/pull/24
[x] https://github.com/UKHomeOfficeForms/hof-template-partials/pull/17
[x] https://github.com/UKHomeOfficeForms/hof-template-mixins/pull/10

Posting now for early review.

This isn't WIP anymore. I've tested with npm link into firearms and I can get it to display different "langauges" based on browser settings.


Why VS CODE does not provide a history of search and replacement.

Why VS CODE does not provide a history of search and replacement.
Because we often have to repeat the same search.
There are historical records. We can call them out immediately without having to re-enter them.
I know that Emediator has this function, which is very convenient.
Thank you.

It does. Simply press the UpArrow key when you are in the field.

I've just seen it. It's already there.
However, it is inconvenient and needs to be searched one by one.
And only the search has a history, the search and replacement content should be paired together.
There should be a list (like this ∨)to quickly select what you need

https://github.com/microsoft/debug-adapter-protocol/issues/146


Search hit rectangle makes highlighting text impossible

VSCode Version: 1.36.1 (1.36.1)
OS Version: 10.14.6

Steps to Reproduce:

perform a global search with cmd+shift+f
click on a search result in the side pane (a specific line, not just the file name)
When it takes you to the line in the file where the search hit was found, observe the rectangle around the hit.
attempt to highlight the text inside the rectangle. It is not possible. There is absolutley no UX indication that anything is happening. Further, it is not possible to get the rectangle to go away unless you literally close the search box or of course change the search query to break the match. Escape key should cancel out the global search or at least the rectangle.

Does this issue occur when all extensions are disabled?: Yes

What color theme are you using?

@willashley23 The decorations are rendered on top of the selection? Have you done any color customizations where you define non-transparent colors?

@gjsjohnmurray I am using the default Material Theme


CF-StatsUnavailable(200002)

when i get app instances info,i get this error.
CF-StatsUnavailable(200002): Stats unavailable: Stats server temporarily unavailable

Hi, @ybshen,
This sounds like it's the same problem as the other issue you filed, #179. I'm going to close this out in favor of concentrating the discussion on that issue.
Thanks,
Eric, CF Runtime Diego PM


Docker-compose up fails due to Microsoft/aspnet images

Hi,
a recent change in Microsoft/ASPnet image makes the deployment of the application fail.


Coverall.io integration with MOxUnit tests (#209)

Changes:

Moved core qMRLab folders into the folder src/

"Addons/", "Common/", "Models", and "Models_Functions".
Needed so to give seperate code to include in the test coverage analysis, and what we don't want to test (e.g. External depedencies, testing files, etc.)

Added MOcov package to External folder.

Fixed a bug related to the file-exclusion feature for Octave, see this issue

Renamed default diffusion protocol files ("Protocol.txt") to unique model-specific names (e.g. "CharmedProtocol.txt"), so they can be loaded without specifying the full path to the file.

In the course of the MOcov analysis, relevant *.m files are copied to a tmp folder and added to Matlab's path, but not other files (e.g. *.txt). Specifying the full path to load certain files caused issues because of this.

Removed the full path generator for "version.txt" in qMRLabver.m.

Same issue as above, and "version.txt" is unique in the repo.

Removed the full path generator for SimTest* models loading and in loadModelTest.

The saved model names were already unique, and is related to the issue two points above.

Added JSONlab  package to External folder.

Needed to combine MOcov JSON reports

Create mocov_combine.m function to combine MOcov JSON reports/

Needed because our tests in Travis are separated into several jobs.

Separated out the qMT methods from BatchExample_Test.m into new individual Batch_Example_*_Test.m files

Due to how MOCov works (adds a tracking function call before each line that gets executed), BatchExample was going over the 30 minute limit due to these additional function calls.
There's some repetition now between the BatchExample_*_Tests that could be simplified by creating a new function that each of them calls with the names of the models it will execute, but haven't done it yet because I thought these would be easier to review in their current state.

Changed relative path generator for list_models.m and GenerateDocumentation.m from pointing relative to (dir of qMRLab.m)/ to )dir of qMRLab.m)/src/
Added Coveralls-related ignore rules
Added coverage badge to README
Implemented MOcov calls coverage analysis in .travis.yml, and sends reports to coveralls.io.

Now includes three tests stages: "Test", "Test (no coverage)", and "Send combined coveralls.io report"
"Test (no coverage)" includes the tests that do not call MOcov, due to their being wayyy too long, because of the high number of repetition for steady-state.
Coverage reports (json files) are generated in each jobs, and sent to a AWS S3 bucket I created (qmrlab). This is needed because each Travis job runs on seperate virtual machines, and the data within it doesn't survive past the job.
Added MOcov exclusion rule for any filename that has "GUI" within it, as we don't test for those. More exclusion rules would likely be useful, and would increase our reported coverage % (currently at 42 %)

After the branch is pulled, we'll need to add change the branch name in the badge to master, after Coveralls.io does it's first report in this branch.

@agahkarakuzu Sorry for the high number of commits, they were needed while debugging Travis-related issues with AWS authentication. That's why I turned up the verbose volume to 11 in the PR description, so you can decypher the changes better.

@agahkarakuzu Yes you're right – I mentioned this in one of my points. I think we will have to find a structured way to split them, yes, as even if these weren't too long to run together (they are now), as we add more models, BatchExamples_Test.m would eventually go beyond the Travis time limit. We could raise this as another issue.


Usage: add GitLab, Bitbucket sections

[x] add tabbed usage sections per CI/CD provider (fixes #116)
[x] resuscitate deleted images from core CML repo & text from wiki
[x] update text
[ ] depends on add #id support for tabs (#123)

remove dublicate headings

[ ] (post-merge) redirect wiki pages to website

rotating_light I have seen a few occurrences of repo_token (lowercase) in the wild.

yes but I believe in all cases they are GL/BB variables so do not appear in any code.
We really should change everywhere to CML_TOKEN (more explicit & avoids namespace clashes)


Loading Schedule A contributions from Form 460 into OCD transactions table

I believe this ticket is dependent on at least #219 but I have not yet fully wrapped my head around the roadmap beyond that.


This page doesn't really makes sense because the entire guide is actually for Linux

It seems that this guide is the same as the Linux version, but uses the Windows SIG from SIG template json:
curl https://raw.githubusercontent.com/azure/azvmimagebuilder/master/quickquickstarts/8_Creating_a_Custom_Win_Shared_Image_Gallery_Image_from_SIG/helloImageTemplateforSIGfromWinSIG.json

But sadly this JSON is for powershell. It simply doesn't work in bash.

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

ID: 857bf4ae-1292-aa67-8a6d-9b128bf8a824
Version Independent ID: d14a3e3a-fdc9-94c6-ee43-3fcce43246ed
Content: Create a new Windows image version from an existing image version using Azure Image Builder - Azure Virtual Machines
Content Source: articles/virtual-machines/windows/image-builder-gallery-update-image-version.md
Service: virtual-machines
GitHub Login: @kof-f
Microsoft Alias: kofiforson

@skyline75489 Thank you for your feedback!  We are investigating this and will get back to you shortly.

@skyline75489 This appears to be working in Bash.  What are you seeing when you run the command?

@skyline75489 We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

Hi @kobulloc-MSFT , the curl command is good. The problem is the JSON file itself won't work with the rest of the guide. Please reopen this so that we can continue the discussion. Thanks!

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary based on resourcing. We are closing this issue for now, but feel free to comment here as necessary. #please-close


Untangle confusion regarding POP source tagging.

in the pop-sources.yaml file an MQTT source has a bunch of metadata that describes format and where it is coming from. In particular the fields (and their current values):
source: mqtt
format: tapir-msg-v1
are what we have right now. We don't really use the "format" tag anywhere (but I think we should, to make it possible to in the future if needed change the JSON that is sent from Core).  And the "source" tag is used initially (to detect this as an MQTT source and send it into the right source parsing code. But then we lose the source (and the format) in the resulting structs.
This is a problem, because in the debugging end there is a command ("tapir-cli debug colourlists") that shows the contents of the various "WBGlists" that POP uses internally. That command produces mostly unreadable output. To be able to present the contents of each list in an understandable manner we must know the format, i.e. we need the "source" and "format" data which was lost somewhere.
It would be great if that could be fixed asap, as that is rather important in preparation for the next demo.

Attempted to address this in https://github.com/dnstapir/cli/pull/18. Let me know what you think. Is it enough?


[Event Request] Update OnBeforeSetGLAccGLEntryFilters in codeunit 8 AccSchedManagement

Hey all,
I am missing GLEntry parameter for OnBeforeSetGLAccGLEntryFilters publisher in AccSchedManagement, currently it is:
[IntegrationEvent(false, false)]
local procedure OnBeforeSetGLAccGLEntryFilters(var GLAcc: Record "G/L Account"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; UseBusUnitFilter: Boolean; UseDimFilter: Boolean; var IsHandled: Boolean)
begin
end;

and it should be:
[IntegrationEvent(true, false)]
local procedure OnBeforeSetGLAccGLEntryFilters(var GLAccount: Record "G/L Account"; var GLEntry: Record "G/L Entry"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; UseBusUnitFilter: Boolean; UseDimFilter: Boolean; var IsHandled: Boolean; var AccountScheduleLine: Record "Acc. Schedule Line")
begin
end;

Also it is missing IncludeSender which is needed here since most of the local functions inside this codeunit are using global variables.
I am looking at the insider build: Platform 21.0.40380.0 + Application 21.0.40423.0

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 40908.


155798781 Add merge logic for language and last_accessed_at

What's this PR do?

Adds merge logic for language

Takes language from account that has most recent last_accessed_at

Adds merge logic for last_accessed_at

Takes most recent one

Adds tests for both of these mergers

How should this be reviewed?
Do the two merge logics make sense? Is last_accessed_at the field that should be used when choosing language, or should it be last_authenticated_at or another field?
Relevant Tickets
Card
Checklist

[ ] Documentation added for changed endpoints.
[ ] Tests added for new features/bug fixes.
[ ] Post a message in #api if this includes something that causes a rebuild!

@DFurnes updated! I did not make the chooseByLastAccessedAt helper because I'm not sure there is another use case for it yet


How to run OpenFortranParserXML-0.6.1.jar successfully

I use the command: java fortran.ofp.FrontEnd --class fortran.ofp.XMLPrinter \ --output output.xml --verbosity 0~100 input.f torun,
but failed. Can it run successfully with only Java environment and no Python environment?Is this a separate command?
I ran this command successfully ：java fortran.ofp.FrontEnd --verbose main.f90

Yes, it can be ran independently. Indeed, in the readme in https://github.com/mbdevpl/open-fortran-parser-xml#how-to-run I wrote --verbosity 0~100 but also below that it is explained that it is a value between 0 and 100. 0~100 in this case means correct value range. If you provide a number between 0 and 100 inclusive, it will work as expected.
If you'd find some bits of the readme confusing and would like those bits to be clarified, I'd welcome a PR :)

Thanks！Now I can run it successful. I read this program's code,find that  FortranParser2008_FortranParserBase.java as the concrete file to achieve AST. For Example main_program() ,we can find it in this  FortranParser2008_FortranParserBase.java.But I can't find this java file in this github program. This only is find in  OpenFortranParse-0.8.5.jar. So I want to know how to achieve this file, Or How to override OpenFortranParse to modify this function？ Or How to use the Github program to create the jar?
Thank you very much!


Add support for New Jersey join form requests

Adding to the launch tracker for visibility, though I expect this is controversial. I am willing to move this back to after launch if others feel strongly

Yeah I don't think this is blocking. I think it's fair (for now) to say, "if you're in NJ, contact us and we'll sort you out."

We should take New Jersians' info at face value and make an install. Probably drop a message in Slack about it.
We could also log it to S3?

Current UX for reference


feat: added bigint multiformatting

Related: https://github.com/libp2p/js-libp2p-logger/pull/37

I'm not convinced this is a good idea.  I think we lose the ability to see that it's a bigint that's being logged, not a number and we lost the ability to simply copy/paste the value, we'd have to remove the formatting this PR adds.
Going to close this for now.


Ubuntu Install Guide Issue, deadsnakes:ppa

Package Python3.5 is NOT being found in the deadsnakes PPA. Where else can I get it?

http://askubuntu.com/questions/682869/install-python-3-5-on-vivid-using-apt-get

Actually, I've originally tried Ubuntu 15.10 but the bot wont install properly. If you are using Ubuntu 15.10, try switching to Ubuntu 14.04, if you can.

Running bot flawlessly on 14.04. :)

Hmm, I'm running it perfectly on 15.10, just had to install the dependencies and it worked fine.

Closed due to inactivity


runner: Create liveportrait pipeline container

The main goal for this PR was to create the liveportrait pipeline docker image.
On the way to that, ended up doing a couple improvements also to the streamdiffusion pipeline:

Now we mount the directory where streamdiffusion lib builds the TensorRT models, so we don't need to do it on every boot
Created a mode for the dl_checkpoints.sh --tensorrt script to already pre-build the live pipelines as TensoRT models

@leszko implemented the ComfyUI stuff here if you could take a look: https://github.com/livepeer/ai-worker/pull/284


Azure - Set the event :vm_ems_ref key for DB lookup of the VM.

Sets the event :vm_ems_ref key to allow for a DB lookup of the VM. Once DB changes are permitted this can be expanded to pin events to ResourceGroups and Stacks also.

@miq-bot add_label darga/yes


LD4

If I want to use L4UDP to attack <IP_ADDRESS> and it lasts for 60 minutes, what kind of command should I enter?

layer 4 doesnt work. you can try if you want: http://:port and then the rest of the format like how it is with l7

ok now script updated, fixed

python3 start.py <method> https://<ip>:<port> 5 <thread> socks5.txt <multi> <time>

time in seconds
1m = 60s
60 * 60 = 3600
python3 start.py tcp https://<IP_ADDRESS>:80 5 1000 socks5.txt 100 3600


Add modern tick counter to plugin registry

Looking to revive the dead Tick Counter plugin by updating it with the missing weapons.

I am a javascript/typescript developer so any help with debugging builds would be appreciated.


SmaCC: Test view has a 500-line limitation

@syrel fixed this for the Source view but the Test view seems to have the same limitation.

@joelreymont This is already fixed and will make it in the new release.

Do releases make it to the website automatically, after being built by CI?
This is the release I was using when reporting this issue

I downloaded the release that was published 2-3 hours after @syrel reported the bug as fixed. He said the release makes it though CI in about an hour.

Encoding commit hashes into the version should help troubleshoot.

This specific issue is not actually related to 500 lines limit :) It is a separate issue I fixed recently (we had a degradation not caught by tests)


A11y_AzureDataStudioSQLMigration_MigratetoAzureSQL_MigrationAssessment_Keyboard:There is no visible indication of focus on the OK button.

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11yMAS;#A11yTCS;#A11ySev2;#SH_AZUREDATASTUDIOSQLMigration_June2021;#SQL Azure Data Studio;#Win10;#FTP;#DesktopApp;#WCAG2.4.7;#AINotInScope;#Keyboard;#Focusvisible;#Closed
Environment Details:
Application Name: SQL Azure Data Studio
Windows Version: Win10
Repro Steps:

Launch the application-Azure Data Studio-Insiders and install extension Azure SQL Migration.
Connect to any sql server.
Tab till Azure SQL migration Tab and press enter.
Tab till Migrate to azure sql and press enter.
Add azure account and tab till next button and press enter.
Select SQL server on azure virtual machine radio button and tab till view/select button and press enter.
Tab till Ok button.

Actual:
There is no visible indication of focus on the OK button.
Similar issue is observed throughout the app where OK button is present.
Expected:
The OK button should have a proper visible indication of focus.
User Impact:
Keyboard only users will not be able to see where the focus is situated at.

Closing as duplicate.

Github tags:#Closed;


Pmod rename

This renames the pmod pins to be conformant with the digilent specification.

Have you chatted to @AlexJones0 about this?

I briefly told him this in person and it seemed like he's on board. He hasn't seen the code though.

Alex had suggested this before. I was originally trying to stick to the names on the sonata board schematic and I was apprehensive about having another set of pin names, but I think you all are right. We should breaking from the schematic names for a nicer user experience.
While I was changing the top config in https://github.com/lowRISC/sonata-system/pull/326, I've removed the inconsistent spi suffixes from the Pi Hat pins and changed to the standard physical pin numbering for Pmod.

Closed as it is replaced in #326


plot_graph raises an MPL error while running in a remote Linux machine

Contributing guidelines

[X] I understand the contributing guidelines

Documentation

[X] My problem is not addressed by the documentation or examples

Existing issues

[X] My problem does not appear in an existing issue

What operating system and Python version are you using?

Pip
Problem description
I visualized a road network and emissions in google colab with no problem. When I tried to use the same code in a remote machine , I got an error:
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(gaussian_dispersion.py:1176585): Gdk-CRITICAL **: 14:24:19.013: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
DISPLAY:
MPLBACKEND: Agg
Matplotlib path: /usr/lib/python3/dist-packages/matplotlib/__init__.py
Matplotlib backend before setting: agg
Matplotlib backend after setting: agg
Matplotlib imported successfully.
OSMnx version: 1.4.0
/home/galiyev/.local/lib/python3.8/site-packages/osmnx/utils_graph.py:85: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
  gdf_edges["geometry"] = np.nan
There are 44 road segments with emission in the map
The number of emission points is 1101
Traceback (most recent call last):
  File "gaussian_dispersion.py", line 195, in <module>
    fix, ax = ox.plot_graph(road, ax=plt.gca(), node_color='none', bgcolor='w',
  File "/home/galiyev/.local/lib/python3.8/site-packages/osmnx/plot.py", line 207, in plot_graph
    _verify_mpl()
  File "/home/galiyev/.local/lib/python3.8/site-packages/osmnx/plot.py", line 977, in _verify_mpl
    raise ImportError(
ImportError: matplotlib must be installed as an optional dependency for visualization

Additional Information:
I am running this code on a remote Linux machine.
DISPLAY environment variable is set to :0.
Matplotlib backend is set to agg.
Any insights or suggestions to resolve this issue would be greatly appreciated.
Complete minimal reproducible example
import osmnx as ox
import matplotlib.pyplot as plt

# Define the location and network type
location = "Pisa, Italy"
network_type = "drive_service"

# Fetch the road network graph from OSM
G = ox.graph_from_place(location, network_type=network_type, simplify=True)

# Plot the road network graph
fig, ax = ox.plot_graph(G, node_color="tab:blue", node_size=5, edge_color="gray", bgcolor="white")

# Add title and labels
ax.set_title("Road Network in Pisa, Italy")
ax.set_xlabel("Longitude")
ax.set_ylabel("Latitude")

# Show the plot
plt.show()

Your error message says:
ImportError: matplotlib must be installed as an optional dependency for visualization

And as you can see in your pasted list of environment packages, you do not have matplotlib installed. It's an optional dependency of OSMnx needed only for its visualization functionality, as the error message states.
See also the installation guide: https://osmnx.readthedocs.io/en/stable/installation.html


record kafka_message already defined

env:
Centos7
Linux 10-205-40-77 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
kafka_protocol: master
brod: master
I'm developing a emq kafka plugin with erlang , and my project  use brod and kafka_protocol dependency,
In the kafka_protocol project, it has define a record named kafka_message.
and in brod ,
brod also have a record named kafka_message
when I use both of them, this will cause a problem in compile time,  record kafka_message already defined.
I have tried a way to fix that, bug failed!
1). I forked the brod project, add the ifndef, but  not worked.
-ifndef(KPRO_PUBLIC_HRL_).
-define(KPRO_PUBLIC_HRL_, true).

%% For applications on top of kafka client (brod).

-record(kafka_message,
        { offset :: kpro:offset()
        , magic_byte :: kpro:int8()
        , attributes :: kpro:int8()
        , key :: kpro:bytes()
        , value :: kpro:bytes()
        , crc :: non_neg_integer() %% not kpro:int32() because it's unsigned
        , ts_type :: kpro:timestamp_type()
        , ts :: kpro:int64()
        }).

-endif.

and the exception message show that:
 ERLC   brod.erl brod_auth_backend.erl brod_cli.erl brod_cli_pipe.erl brod_client.erl brod_consumer.erl brod_consumers_sup.erl brod_group_coordinator.erl brod_group_member.erl brod_group_subscriber.erl brod_kafka_requests.erl brod_producer.erl brod_producer_buffer.erl brod_producers_sup.erl brod_sock.erl brod_sup.erl brod_topic_subscriber.erl brod_utils.erl
src/brod.erl:504: argument mismatch for macro 'incomplete_message'
src/brod.erl:471: type kpro_MetadataResponse() undefined

the brod is compiled after kafka_protocol.
Can anybody give me some idea to solve this problem, Very thanks.

Hi @liang0-0, https://github.com/klarna/brod/pull/219 should solve it.
We hope to have it ready soon.

make sure kafka_protocol is resolved from brod's dependency.
for example, brod 2.x should use kakfa_protocol 0.9
kafka_protocl 1.0 (current master branch) is to be used by brod 3.0


Fatal Exception: FlutterError Exception: Invalid image data

When the network connection is spotty using GifView.network() to load a GIF from the web throws this error.
I'm not sure if this causes the app to crash but it is recorded as a Fatal error in Firebase Crashlytics.
Can we please fail gracefully when this happens?
Please see the attached image for the strack trace:

Hi @orkun1675 !
The version 0.4.1 is available. Try pass a widget in onError and always happen error when load your gif will show it and not throw error.

Thank you @RafaelBarbosatec !
I released a beta build of my app after updating this plugin to 0.4.1 and started seeing these crashes:

Could you take a look?

Hi @orkun1675 !
Try on version 0.4.2


Chinese Font Creation from Handwriting

Would it be plausible to use this method to create a font from one's handwriting?  If I created a dataset of (2K-3K?) handwritten characters, would you expect it to learn my handwriting style and be able to produce arbitrary characters (my handwriting is pretty neat)?  Has anyone tried this?  Also, if you have any tips on how to accomplish this (e.g. how to integrate my own images into the workflow), that would be quite helpful!
Edit: after reading some of the recent papers on GANS, I assume this subsequent point is trivial, it should be the default behaviour already.  [After learning one's handwriting style, I'm wondering if some part of the model is capable of receiving small amounts of randomness, so that instead of having a font in which every instance of a character is identical, you are able to create many subtly different versions of each characters.]
I think that if these two objectives could be accomplished, the results would be quite fascinating.  Furthermore, one could experiment with mixing one's handwriting style with a standard font, or even mixing different people's handwriting styles!

Calling @sungjunyoung and @pcgreat to join in on the issue.


docs(rest): Update README

Closes #12.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.00%. Comparing base (6250703) to head (da4eb43).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #39   +/-   ##
=======================================
  Coverage   80.00%   80.00%
=======================================
  Files          16       16
  Lines         275      275
  Branches       66       66
=======================================
  Hits          220      220
  Misses         48       48
  Partials        7        7

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


sap.m.UploadCollection: uploadComplete event parameters typo

OpenUI5 version: 1.44.9
Browser/version (+device/version): Chrome
Any other tested browsers/devices(OK/FAIL): -
URL (minimal example if possible): -
User/password (if required and possible - do not post any confidential information here): -
Steps to reproduce the problem:

Use the uploadComplete listener on the sap.m.UploadCollection
Check the files parameter of the corresponding event
See attached screenshot

What is the expected result?
response :)
What happens instead?
reponse
Any other information? (attach screenshot if possible)

Hello @larsilus ,
Thank you for sharing this finding. I've created a internal incident<PHONE_NUMBER>. You can check its status on GitHub.
Regards,
Diana

Hello @larsilus,
I'm Oli from the responsible development team. I fixed the spelling. It will be included in 1.48.0 release.
Thanks and best regards,
Oli..


Ensure that running wasm-pack build in two crates in the same workspace works

Follow up to https://github.com/rustwasm/wasm-pack/issues/252
We want test coverage that ensure that if we have
workspace/
  |- crate_a/
  `- crate_b/

running wasm-pack build in crate_a works, and running wasm-pack build in crate_b right afterwards also works.

I believe this was added in https://github.com/rustwasm/wasm-pack/pull/430!


The requestAsync and LoadAsAsync do not appear to be in OpenLibraryUtility or exposed there.  Is this an issue?

The requestAsync and LoadAsAsync do not appear to be in OpenLibraryUtility or exposed there.  Is this an issue?
Requests
Provides basic methods for making web requests. Uses private static HttpClient.
Also provides method to request and then parse data.
public async static Task RequestAsync(string url);
public async static Task LoadAsAsync(string url, string path = "");
// Examples
string response = OpenLibraryUtility.RequestAsync("https://openlibrary.org/authors/OL274606A.json");
OLWorkData[] workData = OpenLibraryUtility.LoadAs("https://openlibrary.org/authors/OL274606A/works.json", "entries");
// Note: The work collection is the "entries" variable in the json response of the given url.
// The path parameter in LoadAsAsync is the path within the json structure.

Yes that would work I believe.
I was looking for away to call https://openlibrary.org/people/mekBot/books/want-to-read.json
I was thinking that the request and load methods might work here.
I did take your code and build locally and exposed the session cookie so I could make these calls after logging in.
I could make these two methods public as well and see if that works on my own.
Thanks

I see, just saw they added a MyBooks API since I last checked openlibrary.
Seems very small and simple, so will most likely add support for that tomorrow.
I'll still make Request and Load public for flexibility's sake

Thanks for the quick response.  I exposed loadasync in my copy and it worked fine for the my books api.   This is great library.   I had started to work on one but must say your code structure is far superior that what I was starting.   Thanks Agin!

Ill be updating the Nuget package later tonight with these changes, if you want to switch to that.

Updated the package now, sorry for the delay


Updating growl due to security fixes.

See: https://www.versioneye.com/nodejs/growl/1.9.2

👍

Anyone gonna merge this?

Switch to selenium webdriver. The stack is simpler and more robust, as well
as not ridden with security holes.
On Wed, Feb 7, 2018, 4:55 PM Kreig Zimmerman<EMAIL_ADDRESS>wrote:

Anyone gonna merge this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nightwatchjs/mocha-nightwatch/pull/11#issuecomment-363923969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHvgE_E4qhIKMTynx3HWzQOwfY5XWjZks5tShvOgaJpZM4PvYnN
.

Pretty please merge this PR and put out a new version. This should resolve security warnings in many downstream projects.
:shipit:
cc: @beatfactor @boneskull

For everyone trying to update old, scaffolded projects:
Readme says: Since Nightwatch v1.0 this is no longer used.


Playing game in html5 crashes 99% of time time either instantly, or after a few seconds

Godot version:
3.1.1.stable.custom_build
Docker barichello/godot-ci:3.1.1
OS/device including version:
NixOS 19.03
Firefox 68.0.1
Issue description:
Unable to play a html5 compiled version of the game.
When opening the game it usually just has a black screen with audio playing.
Few times it will play for a second
One time it played for a whole game, until the scene got respawned, crashing it again.
with the error code:
OpenGL ES 2.0 Renderer: Mozilla index.js:7:32213
Error: WebGL warning: framebufferRenderbuffer: bindRenderbuffer must be called before attachment to 8d00 2 index.js:7:260673
uncaught exception: abort(27). Build with -s ASSERTIONS=1 for more info. index.js:7:320859
**ERROR**: Method/Function Failed, returning: RES() index.js:7:32482
   At: core/io/resource_loader.cpp:285:_load() - Method/Function Failed, returning: RES() index.js:7:32482
27 index.js:7:320776
27 index.js:7:320786

https://matrix.to/#/!hiFyysvSNAREQyJdCG:matrix.org/$156957004523477lNtks:dodsorf.as?via=matrix.org&via=amorgan.xyz&via=dodsorf.as
I can confirm GLES2 is on, and Physics mode is set to single-safe
Steps to reproduce:
Unsure
https://dandellion.pages.dodsorf.as/fossekleiva-ks-hackathon-demo/
Minimal reproduction project:
https://git.dodsorf.as/Dandellion/fossekleiva-ks-hackathon-demo

The issue is that the stuff you load from code won't get exported with the Export selected scenes (and dependencies)  option.
By the way I've also tested it on master, it doesn't hang there.

That does make sense, thank you.
I see now that the only other platform I tested was not set to load only the dependencies.
I assume export resources and then selecting all those  would work.
Thank you very much it works now

Sorry for the noise


Windows script for running all unittests from a console added for those who do not have ReSharper

Simple script for running all unittest that also handles the problem with some tests that can't run in parallel. Just makes it easier for running all the tests :)

Would mind to re-open the PR to 1.1 instead. Sorry, I just discussed with my collea, and we think this is a nice new feature to have, but not belongs to bug-fix only 1.0 now.

Sure, no problem! :)

Done, see #34 :)


import/extensions: does not complain about .vue file

Hey, I was trying to set up import/extensions rule. I wanted to make it so that only .vue files require an extension in the import.
This is similar to #583 , just for .vue
Test case:
{
  'import/extensions': ['error', 'never', { vue: 'always', js: 'always'}]
}

import HelloWorld from '../components/HelloWorld' //vue file, no error
import a from '../components/stuff' //js file, errors correctly

My package.json and .eslintrc.js when testing

Same behavior for
"import/extensions": ["error", "ignorePackages", { "vue": "always", js: "always" }],

and for the two imports from the above questions.

See the test case that closes that similar issue: https://github.com/benmosher/eslint-plugin-import/pull/1010/files
you need to also configure the import/resolve extension for .vue.


Fix shows:insert_track rake task

Currently the audio file is not properly processed - it ends up with no duration. Need to run process_audio_file at least.

Fixed by https://github.com/jcraigk/phishin/commit/14a7dae2a1f7ce9ae7404e829de4d28ba7ff7858


Change order of operations in Makefile

The idea is to put the lint tools that actually edit the code at the end, and the things more likely to fail at the start.
Ideas are solicited.

Codecov Report
Patch coverage has no change and project coverage change: -0.04% :warning:

Comparison is base (afec211) 79.24% compared to head (75ccfe6) 79.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #928      +/-   ##
==========================================
- Coverage   79.24%   79.21%   -0.04%
==========================================
  Files          97       97
  Lines        5975     5975
==========================================
- Hits         4735     4733       -2
- Misses       1240     1242       +2

see 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Branding] Add a mock-up logo

Adds a mock-up logo for Madoguchi. Two variants, one for dark backgrounds and one for light backgrounds.
Also adds them to the readme.md file.

Sorry for the 7 commits. New to git >.<


Connection reset by peer

Hi there, i am running into this issue when sending a notification to multiple APNS devices using commit fcebfc1a3c66e761f46641977106a1caee7291b0:
Traceback (most recent call last):
  File "/opt/backoffice/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/opt/backoffice/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/backoffice/core/tasks.py", line 121, in send_push_notifications
    None, extra=kwargs)
  File "/opt/backoffice/venv/local/lib/python2.7/site-packages/push_notifications/models.py", line 110, in send_message
    return apns_send_bulk_message(registration_ids=reg_ids, alert=message, **kwargs)
  File "/opt/backoffice/venv/local/lib/python2.7/site-packages/push_notifications/apns.py", line 268, in apns_send_bulk_message
    res = _apns_send(registration_id, alert, identifier=identifier, socket=socket, **kwargs)
  File "/opt/backoffice/venv/local/lib/python2.7/site-packages/push_notifications/apns.py", line 193, in _apns_send
    socket.write(frame)
  File "/usr/lib/python2.7/ssl.py", line 272, in write
    return self._sslobj.write(data)
error: [Errno 104] Connection reset by peer

Any ideas on what this could be or how to fix it?? I don't really have any more apns information to debug..

I think this issue needs a serious review, but you might want to take a look at your APNS_ERROR_TIMEOUT (check https://github.com/jleclanche/django-push-notifications/issues/95)
Also, lots of other people are sharing workarounds to solve this: https://github.com/jleclanche/django-push-notifications/issues/242

We since switched to pyapns which means this probably either doesn't happen anymore, or if it does, it's an upstream issue.


Added tests for chunked encoding

add tests for POST using chunked encoding over HTTP/1.1 and HTTP/2
add test to exercise HTTP/1.1 GET with chunked encoding

[approve ci]

[approve ci]

Looks ok to me.  Might be nice to have a big commit at the top of the file, explaining your cases and expectations of each.  Actually Jason probably has some description field on the test cases.
Actually most of our existing autests could benefit from such comments as well.

[approve ci autest]


[Bug] Section title obscures setting

Platform

Device: Desktop
Browser: Edge
Browser Version: 109
Better xCloud Version: <IP_ADDRESS>

Describe the bug
The stream section title is too large (perhaps in other sections in other languages too) and therefore obscures the setting itself.
Screenshots/Videos
image

Thanks for reporting

Fixed: https://github.com/redphx/better-xcloud/raw/main/better-xcloud.user.js

Thanks.


Error Display (std::error::Error::fmt_error)

Rendered

I haven't fully read the RFC, but wanted to drop some additional prior art. snafu::report recognizes that many errors in the ecosystem basically implement Display as write!(f, "My unique error text: {source}"), which looks terrible when trying to format a nested error as you end up with:
1: C: B: A
2: B: A
3: A

Report post-processes those error messages to remove the duplicated content, producing:
1: C
2: B
3: A

cc @yaahc, whose eyre crate has an extensive reporting mechanism.

I like the concept but I don't like much the limitation of current Display and Debug trait, you can't really do any sort of user configuration, like for example, carry information like if NO_COLOR is set in the environnement (you need to use static) thus I got no idea how we could solve this.
The fmt argument I mostly ignore all its features and just use it cause it has the write item.
I asked something very similar to tracing crate https://github.com/tokio-rs/tracing/issues/2226

Thanks to everyone for the review and comments.  I've updated the RFC.  Some more detailed reponses:
@shepmaster

I haven't fully read the RFC, but wanted to drop some additional prior art. snafu::report [addresses this problem]

Thanks for the reference, indeed.  I wasn't aware of that.  I think that this textual deduplication approach has been independently invented (at least) twice shows it's a viable strategy.
@Stargateur

I like the concept but I don't like much the limitation of current Display and Debug trait, you can't really do any sort of user configuration, like for example, carry information like if NO_COLOR is set in the environnement (you need to use static) thus I got no idea how we could solve this.

Indeed, this RFC won't eliminate the desire to do that, and it doesn't help with it very much.  For example, if you want coloured error messages, you'll still need to write a reporter that prints errors in colour, and arrange to call it everywhere you print an error.
But it does make it marginally easier: at least, with this RFC, you will (eventually) be able to reliably format the individual errors without their sources being mixed in.
@oxalica

I doubt that if this can be achieved by the alternative flag {:#}

I have added a new section about this to Alternatives.  As you will see from my text, I think there are serious downsides to that approach.
@joshtriplett

cc @yaahc, whose eyre crate has an extensive reporting mechanism.

Yes.  One way of looking at eyre is provides errors with a better  Display,  by wrapping them up.  I have added a reference.  eyre makes printing sources depend on {} vs {:?}, so I mention that too.

GH isn't highlighting the code, could you change the fences to  ```rust?

I am glad to hear of a plan to make it easy and automatic to show source chains, thus relieving the tension between showing sources in Display (DWIM for printing and logging; makes it harder for error handling code to neglect to show the sources) and not showing sources in Display (enables clean structured chain printing). I don't like the result that nearly every error will automatically have the same default Display implementation, and that that implementation will have to choose some chain formatting (the standard library mostly does not put choices of syntax into Display, except for things like integers being base 10). But, an application can always introduce its own top-level error type with choice of Display, which is already common practice with e.g. anyhow.


Does 1811 have custom image support?

https://docs.microsoft.com/en-us/azure/azure-stack/user/azure-stack-managed-disk-considerations mentions that the custom image is not supported. Is it supported in 1811?

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

ID: 59a27271-21e7-da9c-2fc4-dfa8b1c1bdca
Version Independent ID: 21fccb06-b91b-66cb-261d-0906697b6f19
Content: Azure Stack 1811 update
Content Source: articles/azure-stack/azure-stack-update-1811.md
Service: azure-stack
GitHub Login: @sethmanheim
Microsoft Alias: sethm

@bingosummer Thanks for the Comment. We are actively investigating and will get back to you soon.

@bingosummer Custom images are supported, just not with managed disks. I am following up to check on the status of 1811 and managed disks with custom images.

@bingosummer This is correct, custom images with managed disks is not supported, but it will be soon, most likely with the next update.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


No such file to load -- fog

I'm installing a fresh copy, following the rickrockstar guide
Setting up your development database..
Running: cd "/Users/benjaminmoss/code/rickrockstar" && "/Users/benjaminmoss/.rvm/rubies/ruby-1.9.2-p180/bin/ruby" -S  bundle exec rake -f "/Users/benjaminmoss/code/rickrockstar/Rakefile" db:migrate
rake aborted!
no such file to load -- fog

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Thanks guys, that really helped!

That's right @robyurkowski !


Convert Calculate Agricultural Holiday Entitlement flow tests

Trello: https://trello.com/c/Z33RyIY5
What's changed and why?
Converts the Calculate Agricultural Holiday Entitlement flow tests to use the node based testing approach introduced in ADR-3.
Also removes the existing flow integration and unit tests as they are no longer needed.
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

@kevindew Thanks for your review. I've addressed your comments and fixed up.


Create Widgets for AI APIs in Analytics Dashboard

Problem
We have a new set of widgets (charts, tables, and cards) that has to be created for use in the AI analytics dashboard.
Solution
Implement the widgets
Wire up with the backend
Affected Component
APIM
Version
4.4.0
Implementation

[ ] Implement the filters for vendors and models
[ ] Implement the missing chart types

[ ] Heatmap
[ ] Donut chart

Related Issues
This is a sub issue under https://github.com/wso2/api-manager/issues/3318
Suggested Labels
No response

2024/10/30 Update:

Implemented the Vendor filter and Model filter (https://github.com/Piumal1999/choreo-apim-analytics-portal/commit/312ed198044b1370520a917ab45133a1b83053fe)

2024/10/31 Update:

Implemented VendorUsageOverTime chart (https://github.com/Piumal1999/choreo-apim-analytics-portal/commit/fb416ee9c9ddacfd381ae702c102b3b6f60372a1)

Update:

Implemented the latency page chart (https://github.com/Piumal1999/choreo-apim-analytics-portal/commit/ef9837c71cf1aabb1f927f9db185365d96fda7c6)

2024/11/04 Update:

Opened PR for overview page with the new tab layout (https://github.com/Jithmi004/choreo-apim-analytics-portal-jithmi/pull/2)

Todo: Need to decide the best approach to handle the state changes in 3 types of pages (Ingress, Egress General, Egress AI)

2024/11/06 Update:

Got a suggestion from the choreo team to restructure the directories to prevent conflicts with the existing components
Opened a draft PR for the directory restructure (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607).
Having an issue with the routes. Working on to fix it

2024/11/07 Update:

Completed the basic structure with the navigation, tabs and the new directory structure.
Next step: working on the main pages

2024/11/10 Update:

Updated the UI designs with the new changes. (Tab views for inbound, outbound and AI analytics)
Updated the code structure accordingly

2024/11/12 Update:

Implemented the overview pages (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/b81c86769a67786a2ce01816ca948c149fe0ea67)

2024/11/14 Update:

Implemented the filters and the traffic pages with the general widgets (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/9f417a3644e4a5fbd984216de2dc148fda9dd2de)

2024/11/15 Update:

Implemented the latency pages for AI and Outbound analytics (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/41bba20221e5be4eb6012d5fab71a82d0868a875)

2024/11/18 Update:

Implemented error pages (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/6676fbe9b79fe411fd06c835bce4cec872c1316b)

2024/11/20 Update:

Updated the overview page and filters' API mocks based on the correct API payloads (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/99a7076daa046ec5bbf1f5fed2a9742de234bd33)

2024/11/21 Update:

Add model filter to vendor latencies widget (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/cb888eab2323b6bf24d1a6f9a7210ef32f14d931)

2024/11/22 Update:

Updated the UI designs based on the new tab layout. Updated the design document
Implemented the new inner tab layout (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/50574c7691359a37e326473e1d049a15b96bea8d)

2024/11/25 Update:

Implemented the Average Token Usage bar chart (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/690300cd01a654f446ac07e685dee314bc937d2b)
Updated the remaining API mocks based on the correct API payloads (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/ccbe1c241f95108243947e010f6f4ddaa7d6926e)

2024/12/02 Update:

Redesigned the Select components based on the new suggestions (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/8ad5f75d8c7b655273edaf758a462f746b16333b)
Created token usage over time chart (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/a93d2648493a756980105ffdeb216999bdaa88e6)

2024/12/04 Update:

Created vendor usage pie chart (https://github.com/wso2-enterprise/choreo-apim-analytics-portal/pull/607/commits/2394833fed69867572eeda0086fb19f6967d4f30)

2024/12/18 Update:

Had the Design review call and recieved suggestions for improvements
Next steps:

Get the backend PR merged
Do the required changes
Get the frontend PR merged as a feature preview

2024/12/19 Update:

Replaced the secondary tabs with the left nav bar design in Option 4
Fixed the dropdown menu design
Did minor UI improvements suggested by choreo team


prefix_is_current_class: does not detect me->attribute or me->type

REPORT zfoobar.

CLASS lcl_test DEFINITION.
  PRIVATE SECTION.
    DATA i TYPE i.
    METHODS m.
ENDCLASS.

CLASS lcl_test IMPLEMENTATION.
  METHOD m.
    me->m( ).  "<<< error
    me->i = 1. "<<< no issue
  ENDMETHOD.
ENDCLASS.

Finds first me but not the second one me->i.
/zfoobar.prog.abap[11, 5]: Omit 'me->' in instance calls(prefix_is_current_class)

thanks

probably as a new parameter, "omitMeInstanceCalls" is only for calling instance methods

same issue for types:
CLASS lcl_test DEFINITION.
  PRIVATE SECTION.
    TYPES ty_i TYPE i. "<<< unused
    METHODS m.
ENDCLASS.

CLASS lcl_test IMPLEMENTATION.
  METHOD m.
    DATA lv_1 TYPE me=>ty_i. "<<< no issue
    DATA lv_2 TYPE me->ty_i. "<<< no issue
  ENDMETHOD.
ENDCLASS.

also the type is marked as not used when prefixed with me:
/zfoobar.prog.abap[4, 11]: Type "ty_i" not used(unused_types)

https://rules.abaplint.org/prefix_is_current_class/

Note that omitting me when accessing attributes can be potentially dangerous if  a method or local variable shadows the attribute name

yea, but thats also bad design IMHO

That's another matter, I'm just saying that it can happen 🙂
In other languages this is fairly common to use in at least constructors, something like:
public Customer(int customerNumber){
 this.customerNumbeer = customerNumber;
}

false positive example where attribute and importing parameter have the same name:
CLASS lcl_test DEFINITION.
  PUBLIC SECTION.
    METHODS constructor
      IMPORTING
        val TYPE i.
  PRIVATE SECTION.
    DATA val TYPE i.
    METHODS test
      RETURNING
        VALUE(result) TYPE i.
ENDCLASS.

CLASS lcl_test IMPLEMENTATION.
  METHOD constructor.
    me->val = val.     "<<< no error, correct
    me->val = 1.       "<<< no error, correct
    me->val = test( ). "<<< false positive, cannot omit me here
  ENDMETHOD.

  METHOD test.
    result = 1.
  ENDMETHOD.
ENDCLASS.


Disconnection - Question

Disconnection works well, if i restart the server, but if i try to unplug the network cable, i do not get any disconnect from client side. I wan't to detect when the connection dropped at home. (Ex. Internet provider disconnects).
Setup:

Node server on VPS
Python3.5  socketIO-client on a RaspberryPi
Websockets transport
Using socketIO.wait()
Same issue on ws or wss

Waiting for a response,
Szilard

Fixed in 4f7c959 by #136 thanks to @astrikos


ci: run on 12,14,16,18 node versions and run tests once linting is success

Just like graphql-yoga we should probably ensure this on all the Node versions we support.
To avoid running too many CI tasks ensure that linting and prettier passes. Since if they fail we wouldn't merge PR anyways so no point running tests since user will have to push again.

could/should we share parts of .github/workflows/main.yml between our libraries?

could/should we share parts of .github/workflows/main.yml between our libraries?

Yeah we should create composite actions I think with new bob we will be able to simplify more scripts cc @n1ru4l


Github Actions: Cannot find module '@napi-rs/canvas-linux-x64-gnu'

Hello,
I'm using @napi-rs/canvas (v0.1.44) with Node 20 in Jest tests and it works perfectly fine locally (MacOS 13.6 x64), but once I run the tests in Github Actions (ubuntu-latest) it fails with Cannot find module '@napi-rs/canvas-linux-x64-gnu' from<EMAIL_ADDRESS>I've seen some suggestions about removing package-lock.json and adding it to .gitignore, but it doesn't solve the issue in my case as well as it doesn't look like the best solution.
Any ideas on how to solve this?

See https://github.com/npm/cli/issues/4828


Fix patch version logic

Follow-up to #32 to fix a bug where Strings and Ints were being compared in the pattern guard causing the case handling patch versions to never match.

Argh, universal equality strikes again!

Argh, universal equality strikes again!


Would you help me?

Good evening,
I've been trying for some time to configure lucene with couchdb with this image of yours.
I don't understand how the integration works, but after a lot of searching I managed to set up an environment with his image.
But, I'm not sure it's working. Lucene is opening, but I can't do any tests. leaving me in doubt if the integration is really working.
VIEW
function (doc) {
  if (doc.$typedoc === 'module') {
    emit(doc.nome.toLowerCase() + " - " + doc.descricao, null);
  }
}

INDEXES
{
  "_id": "_design/modules",
  "fulltext": {
    "by_nome": {
      "index": "function(doc) { var ret=new Document(); ret.add(doc.nome, { field: 'nome', store: 'yes'}); return ret }"
    }
  }
}

lucene-proxy.ini
[httpd_global_handlers]
_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://couchdb-lucene:5985">>}

DOCKER COMPOSE
couchdb:
    container_name: couchdb-dev
    image: couchdb:latest
    environment:
      - COUCHDB_USER=admin
      - COUCHDB_PASSWORD=admin
    ports:
      - '5984:5984'
    volumes:
      - couchdb_data:/opt/couchdb/data
      - ./.docker/dev/couchdb/lucene-proxy.ini:/opt/couchdb/etc/local.d/lucene-proxy.ini
    networks:
      - interna
      - externa

couchdb-lucene:
    container_name: couchdb-lucene-dev
    image: toniher/couchdb-lucene:2.1.0
    restart: always
    environment:
      - COUCHDB_PORT=5984
      - COUCHDB_SERVER=couchdb
    ports:
      - '5985:5985'
    volumes:
      - ./.docker/dev/couchdb/indexes/:/opt/couchdb-lucene/indexes/
    links:
      - couchdb
    networks:
      - interna
      - externa

I managed to solve.
You cannot call lucene queries through the couchdb server (http://localhost:5984).
For that, it is necessary to configure authentication in the couchdb-lucene configuration file click here
Then you can use lucene through your door 5985
http://localhost:5985/local/[database]/_design/[name]/[index]?q=texto


To make the better interface for snake game

Is your enhancement request related to a problem? Please describe.➕
actually the background of snake game was not that good i want to improve that using css , i will make it look better so that user can get a better experiance while playing the game.  @kunjgit
I want to do this project
so kindly assign me this :)

Describe the solution you'd like
I want to give good background for this game and i will make some changes in font of sanke game so that my backgreound and font will be of same theme. actually now it is very  vibrant so that user cannot concentrate on that game . so by making a new good background the problem will be resolved :)
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @charan-1303 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @charan-1303! 🙂
It seems like you are not following proper guidelines !! 👀
Read documentation properly !!🙏
If you have any queries reach out to us on Discord🕹 .

Hey @charan-1303 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


fix(taglist): better visualize component tags

Before:

After:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Prefect Agent] Error from server (BadRequest): container "prefect-agent" in pod "prefect-agent-xxx" is waiting to start: CreateContainerConfigError

I tried to deploy Prefect Agent to the Kubernetes. Here is my steps:
helm install \
  prefect-agent \
  prefect/prefect-agent \
  --namespace=hm-prefect \
  --create-namespace

After running above command, it prints
NAME: prefect-agent
LAST DEPLOYED: Thu Dec 29 00:09:13 2022
NAMESPACE: hm-prefect
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Check Prefect agent connections in the prefect UI at "https://api.prefect.cloud/api/accounts//workspaces/"

However, when I check the pod log by
kubectl logs --namespace=hm-prefect prefect-agent-768c7844b4-b2frc

It shows

Error from server (BadRequest): container "prefect-agent" in pod "prefect-agent-768c7844b4-b2frc" is waiting to start: CreateContainerConfigError

I found

Error: secret "prefect-api-key" not found

in the pod events.
Based on
https://github.com/PrefectHQ/prefect-helm/blob/a7c6dc8dcc9d25482bb730c0ca39d3efb8dda6cf/charts/prefect-agent/values.yaml#L48-L62
I am not using cloud, so I need set apiConfig: "cloud". 😃


Update keycloak-adapter-core, ... to 23.0.1

About this PR
📦 Updates

org.keycloak:keycloak-adapter-core
org.keycloak:keycloak-admin-client
org.keycloak:keycloak-core

from 21.1.2 to 23.0.1 ⚠
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.keycloak" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.keycloak" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #785.


Added a shell dependency manager

Instead of using ansible-galaxy one can use the command specified.
Useful, since ansible-galaxy blows.

Awesome. :+1:


[TE/TIR] Fix create_prim_func to properly handle rank 0 tensors.

We handle lowering rank 0 tensors by lowering them to rank 1 buffers with a single element.
@junrushao1994 @Hzfengsy @vinx13 @MasterJH5574 @tqchen

@Hzfengsy would you like to take a look at this corner case? Basically it is due to the fact that 0-dimension tensor in Relay is lowered to a block with 0 IterVars, which causes ambiguity with the "opaque" block.

Perhaps we should think about proper rank 0 buffer support instead to change to rank 1

@tqchen The main problem is the ambiguity introduced by the definition of an opaque block. An alternative approach is that we just add a dummy iter-var in the block with unit extent. What do you think?

I still think it would be great to have first-class 0-rank buffer and compute support, so we do not need to do special casing to handle the items. Such first-class support will bring a lot of benefit later, for example, in the cases such as adding a batching to the entire loop computations

Suggest close this for now and instead move to a tracking issue that tracks the 0-rank support in various places of tensorIR.

Given this PR does help some workloads (some subgraphs in BERT) temporarily, and doesn't introduce new problems, let's merge it in and start a tracking issue


Trying to make a unique copy of images, with minor change.

What are you trying to achieve?
Make unique copies of an image. I have a picture with a black border on it. I'm currently using jimp to make multiple unique copies of this image, by setting a different bit along the border to red. jimp is slow and seems to use more memory than it needs. I want to try Sharp instead, and looking to see if there's any way I can accomplish this.
Have you searched for similar questions?
I've been reading through the documentation. Seems like most operations work on the entire image at once.
Are you able to provide a standalone code sample that demonstrates this question?
This is what I'm currently doing with jimp:
async function setRedPixel(orinalPath, dupPath, index, completeMsg) {
    return await new Promise((resolve, reject) => {
        try {
            Jimp.read(orinalPath)
            .then(image => {
                image.scan(0, index, 1, 1, function(x, y, idx) {
                        this.bitmap.data[idx] = 255;
                        image.quality(90)
                    }
                ).write(dupPath, () => {
                    console.log(completeMsg);
                    resolve();
                });
            })
            .catch(err => { reject(err) });
        } catch (err) { reject(err) }
    });
}

Are you able to provide a sample image that helps explain the question?
Example of a copy made by jimp.

I figured it out! And boy is Sharp fast. I ended up using the composite function, and a red 1x1 png. This is now my function:
async function setRedPixel(orinalPath, dupPath, index, completeMsg) {
	return sharp(orinalPath)
		.composite([{ input: 'misc/redDot.png', blend: 'over', top: index, left: 0 }])
		.toFile(dupPath)
		.then( () => {
			console.log(completeMsg)
			resolve();
		})
		.catch(err => {
			console.log(err)
		});
}

Great, glad you worked it out, this would be my suggested approach also.


ObsDetails test error: viewedUpdates not called

Error while running test suite
FAIL  tests/integration/ObsDetails.test.js
  ● ObsDetails › with an observation where we don't know if the user has viewed comments › should make a request to observation/viewedUpdates

    expect(jest.fn()).toHaveBeenCalledTimes(expected)

    Expected number of calls: 1
    Received number of calls: 0

      66 |         await screen.findByText<EMAIL_ADDRESS>)
      67 |       ).toBeTruthy();
    > 68 |       expect( inatjs.observations.viewedUpdates ).toHaveBeenCalledTimes( 1 );
         |                                                   ^
      69 |       // Expect the observation in realm to have been updated with comments_viewed = true
      70 |       expect( observation.comments_viewed ).toBe( true );
      71 |     } );

      at Object.toHaveBeenCalledTimes (tests/integration/ObsDetails.test.js:68:51)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

I do not get this error on main. Maybe it is already fixed?