cache always returns null if using heap + MemoryUnit

Hi
If I create a cache with a MemoryUnit limit it always returns empty (aka nothing get's stored).
So this does not work:
CacheManager cacheManager
                = CacheManagerBuilder.newCacheManagerBuilder()
                .withCache(FRMLAB_CACHE_ALIAS,
                        CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, Map.class,
                                ResourcePoolsBuilder.newResourcePoolsBuilder()
                                        .heap(10L, MemoryUnit.MB))).build();
        cacheManager.init();

But this works just fine
CacheManager cacheManager
                = CacheManagerBuilder.newCacheManagerBuilder()
                .withCache(FRMLAB_CACHE_ALIAS,
                        CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, Map.class,
                                ResourcePoolsBuilder.newResourcePoolsBuilder()
                                        .heap(10L))).build();
        cacheManager.init();

The test is simple
store with
cache.put();

and test if it's there with:
if (cache.containsKey(formId)) {}

What am I doing wrong?
Regards

In general, we ask to discuss issues on the mailing list before filing a bug.
Anyway, I looked at you issue and the answer is: I don't know. Which Ehcache version are you using? I tried with 3.3.1 and it worked perfectly.
BTW, these two methods are not doing the same thing. The one with a single parameter is limiting the cache to 10 entries. The other is limiting the cache to 10MB.
Here is my full test:
  @Test
  public void test() {
    CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
      .withCache(FRMLAB_CACHE_ALIAS,
        CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, Map.class,
          ResourcePoolsBuilder.newResourcePoolsBuilder()
            .heap(10L, MemoryUnit.MB))).build();
    cacheManager.init();

    Cache<String, Map> cache = cacheManager.getCache(FRMLAB_CACHE_ALIAS, String.class, Map.class);
    cache.put("allo", Collections.emptyMap());
    assertThat(cache.containsKey("allo")).isTrue();
  }

Hello
First, I'm sorry about the mailing list.. did not know... I will move this there but just to clarify with you a couple of things:

The idea was to user the memory limit not the count limit, this is why I'm attempting to set the cache up using MemoryUnit.MB
This actually works fine (as in your test) i f I query the cache right after I insert the data. The problem is this is part of a service that is used to store database data for faster access and is called from a REST service and the problem is between invocations. In the second invocation the cache is empty.

This is my full cache class
@Named("formLabelCache")
@ApplicationScoped
public class FormLabelCache {

    Logger logger = Logger.getLogger(FormLabelCache.class.getCanonicalName());

    Cache<String, Map> cache;

    private static final String FRMLAB_CACHE_ALIAS = "dmfas.cache.formLabel";

    @PostConstruct
    public void init() {

        logger.info("Starting module group rels cache..");

        CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
                .withCache(FRMLAB_CACHE_ALIAS,
                        CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, Map.class,
                                ResourcePoolsBuilder.newResourcePoolsBuilder()
                                        .heap(10L, MemoryUnit.MB))).build();
        cacheManager.init();

        // get the cache
        cache = cacheManager.getCache(FRMLAB_CACHE_ALIAS,String.class, Map.class);

    }

    public void addLables(String formId, List<FormLabel> labels) {

        Map<Integer, List<FormLabel>> labelMap = new HashMap<Integer, List<FormLabel>>();

        for (FormLabel label: labels) {
            if (!labelMap.containsKey(label.getLaId()))
                labelMap.put(label.getLaId(), new ArrayList<FormLabel>());
            labelMap.get(label.getLaId()).add(label);
        }
        logger.log(Level.FINE, "Adding labels for form {0}", formId);
        cache.put(formId,labelMap);

        if (cache.containsKey(formId)) {
            logger.log(Level.FINE, "FOUND {0}", formId);
        }
    }

    public  List<FormLabel> getCodes(String formId, int laId) {

        if (cache.containsKey(formId)) {
            Map<String, List<FormLabel>> data = (Map<String, List<FormLabel>>) cache.get(formId).get(laId);
            return data.get(laId);
        }

        return null;
    }

}

Again
Sorry for the mailing list.
Regards

I still can't reproduce it locally.
However, I see two things here:

I'm a bit frightened by the CacheManager being a local variable. Can you please put it as an attribute of FormLabelCache? You can call close on it in a @PreDestroy method
Are you sure you never get above 10MB? Because that would discard your entries

Well.. it definitely has something to do with size since i'm getting
2017-04-09 01:10:13,884 INFO  [org.unctad.dmfas.service.i18n.cache.FormLabelCache] (default task-2) Adding labels for form frmDebtServices .. added: 363 labels
2017-04-09 01:10:13,894 WARN  [org.ehcache.impl.internal.store.heap.OnHeapStore] (default task-2) Max Object Graph Size reached for the object : [C@614ce1e

I'm pretty sure I'm not reaching the 1GM limit I gave it for test purposes so the problem must be with storing a List in the cache (and it's size).
I will read a bit more and try and figure out whats happening.
Thanks for your help!

Oh! I get it.  This is the "Max Object Size reached" warning you see. By default it is 1000. You can read more about it here. We do this because sizing has a performance hit on big objects.
In your case, you can decide to size in entries (so no sizing occurs) or to set the max graph a bit higher.

I will close this has "Not a bug" since the issue seems to be the object graph size. I've create #1956  to mention the defaults in the documentation.

Yes..
Sorry I was caught up with something else.. I read through the doc you sent me and will try and figure out if my approach is correct, If I have any more questions on this I will go through the email list first!!
Thank you very much for your help!
Regards


UX review change

After reviewing by UX member, do some change follow by the UX suggestion.
Display the recommended list
The recommended list should display in the default. The user will be confused and didn't notice there is a recommended list.
Give default search key

Some users might not notice how to use this search function. The user might input search keywords with a comma because they didn't know he/she need to enter to separate the keywords
It will help the user if we have some sample keys already on the search bar.

Display view

It could have more columns to display the result since there are some users using the desktop.
Have more space in a display card will be better.
Have a suggestion or go back to search when the user in the bottom of the display.

To reduce the task size, separate Display view to #36


"make bench" fails the first time

I'm not sure what happened here, but after a make clean and a make index, I then ran make bench and got this:
[mike@raptorlake search-benchmark-game]$ make bench
--- Benchmarking ---
======================
BENCHMARKING tantivy-0.19 TOP_10_COUNT
/s0/l/search-benchmark-game/engines/tantivy-0.19
--- Warming up ...
- Warm up Run #1 of 1
Traceback (most recent call last):
  File "/s0/l/search-benchmark-game/src/client.py", line 96, in <module>
    for _ in drive(queries_shuffled, search_client, command):
  File "/s0/l/search-benchmark-game/src/client.py", line 50, in drive
    count = client.query(query.query, command)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/s0/l/search-benchmark-game/src/client.py", line 39, in query
    cnt = int(recv)
          ^^^^^^^^^
ValueError: invalid literal for int() with base 10: b"--- Building tantivy's binary ---"
make: *** [Makefile:58: bench] Error 1
[mike@raptorlake search-benchmark-game]$    Compiling tantivy-bench v0.1.0 (/s0/l/search-benchmark-game/engines/tantivy-0.19)
    Finished release [optimized] target(s) in 13.16s
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1019:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[1]: *** [Makefile:17: serve] Error 101

I think we need to fix client.py to be resilient to some errant make output building things, the first time?
When I ran make bench again, it seems to be succeeding (running now).

I pushed the above fix.


feat: compiled class hash calculation

This PR implements (again) the compiled casm class hash calculation.
Great thanks to @ArielElp for taking the feedback and changing the algo! It's much much much cleaner and easier to implement now.

@tarrencev FYI this should now give you the correct casm hash.


ipinfo: 2.10.1 -> 3.0.1

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 252669 run on x86_64-linux 1

1 package built:

ipinfo

Hey @aaronjheng Thank you very much for making the PR! I work for IPinfo, and I really appreciate it, dude!! 🙏


add paiv/uxn-ios

Last commit July 2021.
I noticed they didn't include uxn as a submodule, so I could fork and fix that, seems like a better idea right? I will go through and review how complete it is and update this entry.

@neauoire this port looks pretty good. I'd be happy to fork it and improve it as needed and submit those upstream and see if the original author is interested. Eventually I'd like to make this iOS app where I nudge in my natural'char language using varvara :) Cheers!

Thanks for the PR! There has been quite a few people wanting to run roms on their iOS devices on the Lines forum in the past, it'd be nice if you could bring it up to specs :)

Thanks for the PR! There has been quite a few people wanting to run roms on their iOS devices on the Lines forum in the past, it'd be nice if you could bring it up to specs :)

Cool. Will do that work (slowly most likely). I am getting a usb camera adapter today so I can plugin a keyboard, mouse, midi adapter to my iphone 6. Will see what I can nudge!


🔥 Error: Program type already present: com.reactnativecommunity.netinfo.BroadcastReceiverConnectivityReceiver$1

Environment
System:
    OS: macOS 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 34.59 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 8.9.4 - /usr/local/bin/node
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
      API Levels: 23, 25, 26, 27, 28
      Build Tools: 26.0.2, 26.0.3, 27.0.2, 27.0.3, 28.0.2, 28.0.3
      System Images: android-28 | Google Play Intel x86 Atom, android-P | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.4 AI-183.6<IP_ADDRESS>92245
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.4 => 0.60.4
  npmGlobalPackages:
    create-react-native-app: 1.0.0
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

Platforms
Android
package.json
{
  "name": "moodPixel",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "postinstall": "npx jetify",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-community/netinfo": "^4.1.4",
    "axios": "^0.19.0",
    "chroma-js": "^2.0.2",
    "moment": "^2.23.0",
    "react": "16.8.6",
    "react-native": "0.60.4",
    "react-native-chart-kit": "^3.0.0",
    "react-native-clean-project": "^3.2.4",
    "react-native-color-picker": "github:FrederickEngelhardt/react-native-color-picker",
    "react-native-device-info": "^2.3.2",
    "react-native-easy-toast": "^1.2.0",
    "react-native-firebase": "^5.5.6",
    "react-native-fs": "^2.13.3",
    "react-native-google-drive-api-wrapper": "^1.1.2",
    "react-native-google-places": "^3.1.1",
    "react-native-google-signin": "^1.2.3",
    "react-native-image-crop-picker": "^0.25.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-localization": "^2.1.5",
    "react-native-location": "^2.3.0",
    "react-native-router-flux": "^4.0.6",
    "react-native-sentry": "^0.43.2",
    "react-native-sortable-grid": "^2.0.0",
    "react-native-splash-screen": "^3.2.0",
    "react-native-svg": "^9.5.1",
    "react-native-svg-charts": "^5.3.0",
    "react-native-swiper": "^1.5.14",
    "react-native-text": "0.0.8",
    "react-native-vector-icons": "^6.1.0",
    "react-native-video": "^5.0.0",
    "react-redux": "^6.0.0",
    "recyclerlistview": "^1.3.4",
    "redux": "^4.0.1",
    "redux-persist": "^5.10.0",
    "redux-thunk": "^2.3.0",
    "rn-fetch-blob": "^0.10.16",
    "unsplash-js": "^5.0.0"
  },
  "devDependencies": {
    "@babel/core": "7.5.5",
    "@babel/runtime": "7.5.5",
    "@react-native-community/eslint-config": "0.0.3",
    "babel-jest": "^24.8.0",
    "eslint": "^6.1.0",
    "jest": "^24.8.0",
    "jetifier": "^1.6.3",
    "metro-react-native-babel-preset": "0.54.1",
    "react-test-renderer": "16.8.6"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "src/assets/fonts/Poppins"
    ]
  }
}

Description
When running ./gradlew assembleRelease does not let me compile.
I get the following error:
> Task :app:transformClassesWithMultidexlistForRelease FAILED
D8: Program type already present: com.reactnativecommunity.netinfo.BroadcastReceiverConnectivityReceiver$1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForRelease'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list:
  Error while merging dex archives:
  Program type already present: com.reactnativecommunity.netinfo.BroadcastReceiverConnectivityReceiver$1
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

I have npx jetify in my post-install scripts and have migrated several libs to AndroidX. However, this lib has thrown this new error.
Furthermore, when inspecting using Android Studio I can see the following error:
ERROR: The modules ['@react-native-community_netinfo', 'react-native-community-netinfo'] point to the same directory in the file system.
Each module must have a unique path.

I think this might be the cause of the error.
android/settings.gradle
rootProject.name = 'moodPixel'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

include ':react-native-community-netinfo'
project(':react-native-community-netinfo').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/netinfo/android')
include ':react-native-image-crop-picker'
project(':react-native-image-crop-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-crop-picker/android')
include ':react-native-google-places'
project(':react-native-google-places').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-places/android')
include ':react-native-location'
project(':react-native-location').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-location/android')
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')
include ':react-native-firebase'
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
include ':react-native-linear-gradient'
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-splash-screen'
project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
include ':react-native-device-info'
project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
include ':react-native-localization'
project(':react-native-localization').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-localization/android')
include ':rn-fetch-blob'
project(':rn-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/rn-fetch-blob/android')
include ':react-native-fs'
project(':react-native-fs').projectDir = new File(settingsDir, '../node_modules/react-native-fs/android')
include ':react-native-google-signin', ':app'
project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-signin/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-svg/android')

include ':app'

android/build.gradle
buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
        googlePlayServicesAuthVersion = "15.0.1"
        googlePlayServicesVersion = "16.+"
        firebaseVersion = "17.3.4"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.2'
        classpath 'com.google.gms:google-services:4.3.0'
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven { url "https://jitpack.io" }
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        google()
        jcenter()
    }
}

android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true

android/app/build.gradle
apply plugin: "com.android.application"

import com.android.build.OutputFile

project.ext.react = [
    enableHermes: true,
    entryFile: "index.js",
    //bundleCommand: "ram-bundle",
]

apply from: "../../node_modules/react-native/react.gradle"

def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = false

def jscFlavor = 'org.webkit:android-jsc:+'

def enableHermes = project.ext.react.get("enableHermes", false);

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.moodpixel"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 35
        versionName "3.2"
        multiDexEnabled true
    }
    dexOptions {
        jumboMode true
        incremental true
        javaMaxHeapSize "4g"
    }
    signingConfigs {
        release {
            if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
                storeFile file(MYAPP_RELEASE_STORE_FILE)
                storePassword MYAPP_RELEASE_STORE_PASSWORD
                keyAlias MYAPP_RELEASE_KEY_ALIAS
                keyPassword MYAPP_RELEASE_KEY_PASSWORD
            }
        }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }

    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }

    packagingOptions {
        pickFirst '**/armeabi-v7a/libc++_shared.so'
        pickFirst '**/x86/libc++_shared.so'
        pickFirst '**/arm64-v8a/libc++_shared.so'
        pickFirst '**/x86_64/libc++_shared.so'
        pickFirst '**/x86/libjsc.so'
        pickFirst '**/armeabi-v7a/libjsc.so'
    }
}

dependencies {
    // enabling multiDex for minSdkVersion below 20 (current is 16)
    implementation 'androidx.multidex:multidex:2.0.1'

    // react-native
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.facebook.react:react-native:+"  // From node_modules

    // 3rd party
    implementation project(':rn-fetch-blob')
    implementation project(':react-native-fs')
    implementation project(':react-native-svg')
    implementation project(':react-native-video')
    implementation project(':react-native-location')
    implementation project(':react-native-device-info')
    implementation project(':react-native-vector-icons')
    implementation project(':react-native-localization')
    implementation project(':react-native-splash-screen')
    implementation project(':react-native-google-signin')
    implementation project(':react-native-google-places')
    implementation project(':react-native-linear-gradient')
    implementation project(':react-native-community-netinfo')
    implementation project(':react-native-image-crop-picker')

    // react-native-firebase
    implementation project(':react-native-firebase')
    implementation "com.google.android.gms:play-services-base:16.0.1"
    implementation 'com.google.firebase:firebase-analytics:17.0.1'
    implementation 'com.google.firebase:firebase-core:17.0.1'
    implementation 'com.google.firebase:firebase-auth:18.1.0'
    implementation 'com.google.firebase:firebase-firestore:20.2.0'
    implementation "com.google.firebase:firebase-ads:18.1.1"
    implementation "com.google.firebase:firebase-messaging:19.0.1"
    implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
    implementation "com.google.android.gms:play-services-location:16.0.0"

    if (enableHermes) {
      def hermesPath = "../../node_modules/hermesvm/android/";
      debugImplementation files(hermesPath + "hermes-debug.aar")
      releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
      implementation jscFlavor
    }
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

apply plugin: 'com.google.gms.google-services'

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

android/app/src/main/java/your/package/name/MainApplication.java
package com.moodpixel;

import java.util.List;
import android.util.Log;
import android.app.Application;
import androidx.multidex.MultiDexApplication;

// react native
import com.facebook.react.PackageList;
import com.facebook.soloader.SoLoader;
import com.facebook.react.ReactPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactApplication;
import com.facebook.react.bridge.JavaScriptExecutorFactory;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;

// react-native-firebase
import io.invertase.firebase.auth.RNFirebaseAuthPackage;
import io.invertase.firebase.admob.RNFirebaseAdMobPackage;
import io.invertase.firebase.firestore.RNFirebaseFirestorePackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage;

public class MainApplication extends MultiDexApplication implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      @SuppressWarnings("UnnecessaryLocalVariable")
      List<ReactPackage> packages = new PackageList(this).getPackages();

      // Packages that cannot be autolinked yet can be added manually here, for example:
      packages.add(new RNFirebaseAuthPackage());
      packages.add(new RNFirebaseAdMobPackage());
      packages.add(new RNFirebaseFirestorePackage());
      packages.add(new RNFirebaseMessagingPackage());
      packages.add(new RNFirebaseNotificationsPackage());

      return packages;
    }

    @Override
    protected String getJSMainModuleName() {
      return "index";
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

👋 Thanks for submitting this issue. It sounds like you're linking the project twice. Can you please provide the full contents of these files:

android/settings.gradle
android/build.gradle
android/gradle.properties
android/app/build.gradle
android/app/src/main/java/your/package/name/MainApplication.java

I updated my initial comment with the requested info. I am pretty sure I didn’t add the library twice.

@wmonecke It looks like your issue is that you have "auto-linking" enabled, while also linking some projects manually. In theory this should work with the auto-linking system just ignoring the ones you are manually linking, however, my guess is that because of the special characters in this libraries module name (@react-native-community/netinfo) the name it's checking for is different to the one you are using.
To test this theory, you can do one of two things:

Remove this library from your manual linking and leave it to the auto-linking system to handle for you.
Change the name of the linked library from react-native-community-netinfo to @react-native-community_netinfo.

My preference would be to number 1 as this is the cleanest solution. I would recommend moving as many of your dependencies to being automatically linked rather than manually linked to avoid any confusion.
Let me know if that doesn't work for you and I will reopen the issue to investigate further.

@matt-oakes Thanks for the hint! It works now. I removed references from:

android/settings.gradle
android/app/build.gradle
android/app/src/main/java/your/package/name/MainApplication.java

for anyone else with this issues.

For those who for some reason need manual linking (e.g using https://github.com/wix/react-native-navigation), create a react-native.config.js at the root of your project folder with these contents :
module.exports = {
  dependencies: {
    '@react-native-community/netinfo': {
      platforms: {
        android: null, // disable Android platform, other platforms will still autolink if provided
      },
    },
  },
};

For those who for some reason need manual linking (e.g using https://github.com/wix/react-native-navigation), create a react-native.config.js at the root of your project folder with these contents :
module.exports = {
  dependencies: {
    '@react-native-community/netinfo': {
      platforms: {
        android: null, // disable Android platform, other platforms will still autolink if provided
      },
    },
  },
};

dependencies: {
    '@react-native-community/netinfo': {
      platforms: {
        android: null, // disable Android platform, other platforms will still autolink if provided
      },
    },
  },

Thank bro. It help me <3

im having this kind of problem too..
R8: Program type already present: com.reactnativecommunity.netinfo.BroadcastReceiverConnectivityReceiver$1

@eskiesirius cd android && ./gradlew clean and make sure you don't have multiple references to netinfo in your project anywhere. Might be two somehow, either in package.json or your gradle stuff your java stuff

@eskiesirius cd android && ./gradlew clean and make sure you don't have multiple references to netinfo in your project anywhere. Might be two somehow, either in package.json or your gradle stuff your java stuff

I checked my package.json and gradle.. there are no duplicates.. im using the<EMAIL_ADDRESS>

Why you would be on old version I can't understand? Troubleshooting old versions of things is typically a waste of time, chasing issues already closed 🤷
You might also make sure your gradle is up to date. plugin 4, gradle 6.5.1 are current I think. They work fine with react-native 0.62.2

Why you would be on old version I can't understand? Troubleshooting old versions of things is typically a waste of time, chasing issues already closed 🤷 (5.9.4 is current, not 5.0.0, maybe you just did not specify precisely? precision is important for troubleshooting)
You might also make sure your gradle is up to date. plugin 4, gradle 6.5.1 are current I think. They work fine with react-native 0.62.2

if i will use the new version.. i got this error rncnetinfo.getcurrentstate got 3 arguments

@eskiesirius sounds like javascript and netinfo aren't in sync. Maybe you're trying to upgrade but you have some Expo-related thing pinning your version, that happens to some netinfo users and results in that. Otherwise it's npx react-native-clean-project to blow out your state and make sure your javascript and native are in sync with current version. If you're on expo you'll be pinned to an old version and should work with expo support

@eskiesirius sounds like javascript and netinfo aren't in sync. Maybe you're trying to upgrade but you have some Expo-related thing pinning your version, that happens to some netinfo users and results in that. Otherwise it's npx react-native-clean-project to blow out your state and make sure your javascript and native are in sync with current version. If you're on expo you'll be pinned to an old version and should work with expo support

im not using expo.. im using the onesignal sdk.. everything is fine in debug but in release.. i got this problem..

Anyway I fixed my problem so for those who are having this kind of problem.. What I did was, first i typed this command gradelw app:dependencies to check if there is a duplicate dependency.. so what happened was the Jitsi Package is using the old version of netinfo so i just add this inside my app/build.gradle..
implementation(project(':react-native-jitsi-meet')) {
        exclude group: 'com.facebook.react',module:'react-native-community-async-storage'
        exclude group: 'com.facebook.react',module:'react-native-community_netinfo'
}

then viola! everything went ok..

Anyway I fixed my problem so for those who are having this kind of problem.. What I did was, first i typed this command gradelw app:dependencies to check if there are duplicates in dependencies.. so what happened was the Jitsi Package is using the old version of netinfo so i just add this inside my app/build.gradle..
implementation(project(':react-native-jitsi-meet')) {
        exclude group: 'com.facebook.react',module:'react-native-community-async-storage'
        exclude group: 'com.facebook.react',module:'react-native-community_netinfo'
}

then viola! everything went ok..

I love you

👋 Thanks for submitting this issue. It sounds like you're linking the project twice. Can you please provide the full contents of these files:

android/settings.gradle
android/build.gradle
android/gradle.properties
android/app/build.gradle
android/app/src/main/java/your/package/name/MainApplication.java

Yes, as you said there're some libs that will auto-link but if we try manual linking then this error will be thrown. Anyways thank you for giving an idea about the linking of libs.


Add Elm

Elm tutorials, libraries and software list.

Thanks. Looks good. Would be cool if you could link back here in your list so users can easily discover more awesome lists ;)

Sure, thanks for idea, added more awesome section :)


Feature/045 one hot encoding

To me, it looks like this does what it is supposed to, but filter is really a bad word for a function that adds columns, maybe a better place for this would be as a transformer related to machine learning.
If you want to merge it, go ahead, as this does what It's supposed to.


Spike: Success and Usage Metrics

Backlog Task
This is a spike to determine what metrics we need to gather to evaluate the impact of ReportStream ETOR.
Who is the audience of this information?

CDC leadership
Current partners
Potential future partners
Our own team for identification and prioritization of future work

What is the purpose of the metrics?

Show the value our work is having
Attracting new partners
Track improvements/changes over time

Completion Criteria

[ ] We've created backlog items to cover any work we may need to do to support the ETOR metrics previously discussed with the CDC, CA, and LA.
[ ] We've documented an initial set of aggregate ETOR usage metrics to provide to the CDC and/or partners.

Tasks

[ ] What tasks need to be done to fulfill the completion criteria?

Other Notes
Potential stats to consider:

Turn-around time for NBS results
Frequency of transcription errors
Time to onboard a new hospital

Also see:

https://aphlinformatics.atlassian.net/wiki/spaces/EPI/pages/2318139509/2024-03-19+Meeting+Notes
https://aphlinformatics.atlassian.net/wiki/spaces/EPI/pages/2369781762/APHL+Detor+Evaluation+Metrics
https://aphlinformatics.atlassian.net/wiki/spaces/ERI/pages/2332164122/4+11+24+SME+Working+Session
https://aphlinformatics.atlassian.net/wiki/pages/viewpageattachments.action?pageId=2083651778&preview=%2F2083651778%2F2092400732%2FCDC ETOR via Intermediary Draft Evaluation Plan_10.06.23.docx

See https://www.newsteps.org/media/26/download?inline -- specifically quality indicators 2 and 5

What did we agree to during the AL and LA kickoffs?

What metrics are important to the labs, hospitals, Flexion, CDC?

@JohnNKing @scleary1cs I'd be happy to be assigned to this

Rebecca is leading this effort from the CDC side. Luther will be reaching out to see if there's anything she needs from our side and if she could share the progress.

@kwright-bio can you please provide some JMC contacts that attended the NBS conference.

How do we know when we've picked the right metrics?
How will we know when this story is complete?

Do we have a sense of the folks who will work on this?
@kwright-bio

IR-Intermediary Agnostic Evaluation Plan-111224-204744.pdf

Leaving in product backlog till we determine how it should strucutred (epic or ticket)

Latest update can be found here:
https://www.notion.so/flexion-cdc-ti/California-Dashboard-Requirements-13e5955365f580ca9be9f4bb1b8bab15?pvs=4#1625955365f580b5ac9cf914f8e0a5ac

https://artkai.io/blog/north-star-framework


Goals: Continuous integration and code review

It would be really nice to have continuous integration that clones the repo, builds it for a small city and at least does health checks for all the services we bring up. There's a lot of churn happening right now but when the dust settles that seems like a good goal.
I also want to do more code review. I've sworn off committing directly to main because it's clear that other people actually care about this project now, but just now with #23 I realized there isn't really anyone around to review anything except one person, and I don't want to shove all the review work onto one person. So if you want to help out with that leave a comment here!

Mkay, I'm going to look at getting you added as a collaborator, but apparently a lot of the features I want (restricting both of our abilities to push directly to main, etc) are for organization accounts only so I might port the repo out of my personal account at some point to get those.


Fix constrained bits ordering

Fix the issue https://github.com/icicle-emu/icicle-emu/issues/22

The underlying issue seems like it may be more complex (See: https://github.com/icicle-emu/icicle-emu/issues/22#issuecomment-1585617566)


update ignorePaths logic

According to the hapi 18 release notes, request.url.path has gone away in favor of request.path or request.url.pathname. The same release notes also state that request.url.pathname has not changed.
Refs: https://github.com/hapijs/hapi/issues/3871

Coverage increased (+0.003%) to 98.81% when pulling 266c3e23c7afaea9afb02845acd7a9469d848612 on cjihrig:ignores into 11a62356d9c4cb81a73bc65073469384c859d8a1 on pinojs:master.

Coverage increased (+0.003%) to 98.81% when pulling 266c3e23c7afaea9afb02845acd7a9469d848612 on cjihrig:ignores into 11a62356d9c4cb81a73bc65073469384c859d8a1 on pinojs:master.

@cjihrig tests are failing with Hapi@17: https://travis-ci.org/pinojs/hapi-pino/jobs/490787436.

@mcollina pushed up something that should fix it

Thanks!


The db connection can not close and reopen

What steps will reproduce the problem?
After the db connection established,  if you close the connection manually, and open this db connection again. You'll not get a correct db connection.
I found that the close function of Connection class set _master to null,
    public function close()
    {
        if ($this->_master) {
            if ($this->pdo === $this->_master->pdo) {
                $this->pdo = null;
            }

            $this->_master->close();
            $this->_master = null;
        }

but getMaster function use  === false
    public function getMaster()
    {
        if ($this->_master === false) {
            $this->_master = ($this->shuffleMasters)
                ? $this->openFromPool($this->masters, $this->masterConfig)
                : $this->openFromPoolSequentially($this->masters, $this->masterConfig);
        }

        return $this->_master;
    }

to check if it should make a db connection. So, If you close the connection, and reopen it, getMaster will return an null which makes getMaster only work for the first time it is called.
What is the expected result?
Just set $this->_master = false in the close function, like what do in clone.  And this makes getMaster work correctly
   public function __clone()
   {
       parent::__clone();

       $this->_master = false;

What do you get instead?
Additional info

Q
A

Yii version
2.0.12

PHP version
7.1.4

Operating system
Ubuntu 14.04.4 LTS

Yii version 	2.0.12?

please try again with current master, I believe we fixed something like this recently, it will be released in 2.0.13.

Yes. It's fixed in master: https://github.com/yiisoft/yii2/issues/14165

@cebe
I have tried master version. It just works. Thank U


CRITICAL PROCESS BSOD

When I install install service 64, this screen meets why?

There is a similar issue reported a few days ago. Can you tell from the EventViever, which process was injected with the rootit that caused the crash? Winlogon may show up in EventViewer, because it initialized the shutdown. But what's the first process that crashed? Can you show the first eventviewer log?

EventViewer:Kernel Power Problem
DUMPSTACK RESULTS:
DumpStack.log

This issue is fixed in 1.0.1. It was also reported in issue #5. Please feel free to re-open the issue, if it hasn't resolved on your testing environment.


Finish ECMPS Responsiveness

Compete the design for ECMPS responsiveness
Developer Assets

Responsive Screens
Icons Used
Little Menus

ATTN @Qb10 @tdavydets @jwhitehead77
ECMPS Responsiveness and Layout Updates
Here are the screens for ECMPS responsiveness.
Notes
There are a couple menus introduced in these updated medium-fi wireframes.

☝ The first menu should use the Utility Menu design pattern from the CAMPD side

☝ The second menu should use the Main Menu design pattern from the CAMPD side

☝ The other two menus (Profile and Tabs) can use the new "Little Menu" pattern—which I tried to model off of the React Menu component.
Please let me know if you have any questions.
Best,
Alex
CC @JorjaComer @MoAdeyoju


Update fronius-wattpilot to 4.6.3

updated wattpilot from 4.6.2 to 4.6.3

RE-CHECK!

4.6.3. created 24.12.2023
32 user
OK

Tests for node 18 and 20 are missing. Node 18 is mandatory
Std tests need a check - I'll do today and note wether an update is recommended. As I need to run tests locally anyway I will provide a PR if suggested.

Tests with node 16/18/20 pass with updated workflow.
Please merge PR https://github.com/tim2zg/ioBroker.fronius-wattpilot/pull/49 whenever you find time to do so.

done


Add Docker Support and other features

Hello,
I have been working on a fork of ezXSS that makes it even easier to setup and adds some additional features.
I am creating this pull request to offer to merge the changes into your project if you would like. Let me know what you think.
Main changes

ezXSS is now deployed through docker and docker-compose (Thanks in part to @hack2012 and @redex557)
Added msmtp support to allow external SMTP servers (Thanks to @hack2012)
Defined From email as the users email to prevent emails bouncing
Added SVG payloads
Added IMG payloads (Thanks to @qweqwe1212 c9dd423 )
Changed 404 to redirect to payload for better coverage
Moved stylesheets to local repository / server

Hi @GlitchWitchSec
Thanks for your contribution! I would love a docker support for ezXSS but I would still like it to work without.
Also some features you've added I already added to the new release in a bit other but more custom way.
Could you check the new release and if you would like update your pull request so that docker can be an option, but is not mandatory? Also check my comments. Thanks!

Hi @ssl, I just saw the new release v3.5 you posted today.
I will work to implement the changes you suggested and update the PR to work with and without Docker as you suggested.

@ssl I have created a new PR #54 from another branch that addresses the comments you provided. As such I am closing this PR.


The connection to the ARM Template Language Server got closed.

Does this occur consistently?
Repro steps:

Action: Language Server Error
Error type: Error
Error Message: The connection to the ARM Template Language Server got closed.
Version: 0.15.5
OS: win32
OS Release: 10.0.19044
Product: Visual Studio Code
Product Version: 1.64.2
Language: en

Call Stack
extension.bundle.js:239:61746extension.bundle.js:239:61746
Object.callWithTelemetryAndErrorHandlingSync extension.bundle.js:16:143366
WrappedErrorHandler.closed extension.bundle.js:239:61592
LanguageClient.handleConnectionClosed vscode-languageclient/client.js:2044:55
LanguageClient.handleConnectionClosed vscode-languageclient/main.js:127:15
closeHandler vscode-languageclient/client.js:2023:18
CallbackList.invoke vscode-jsonrpc/events.js:62:39
Emitter.fire vscode-jsonrpc/events.js:120:36
closeHandler vscode-jsonrpc/main.js:226:26
CallbackList.invoke vscode-jsonrpc/events.js:62:39
Emitter.fire vscode-jsonrpc/events.js:120:36
StreamMessageReader.fireClose vscode-jsonrpc/messageReader.js:111:27
Socket.<anonymous> vscode-jsonrpc/messageReader.js:151:46
Socket.emit events.js:327:22
Pipe.<anonymous> net.js:673:12

@leftoverrice79 Can you please follow the steps I outlined in https://github.com/microsoft/vscode-azurearmtools/issues/1393 to provide more info so that I can try to figure out what's going wrong?  Thanks!


Create notebook template for pytorch for different AI problems

Seems like a lot of work to use torch correctly. Templates could be a help here.
/cc @claudiaregio

Closing this as we haven't received any upvotes on this feature request.


Got strange durations

Thanks for the job, I am trying to make this project on another dataset, which are also 22.05Khz samples,  But during traning, the generated speech in evaluation are strange in duration,  the speech speed is very slow then the "gt" conterpart,  the GT audio is about 5 seconds while the generated audio from evaluating are about 10 seconds.  My config is exactly the same with  the ljs_mb_istft_vits.json,  except for my own filelist and  text_cleaner,  This kind of config show no such problem in the VITS training, can any body give some suggestion?
and, I had also tried to set "add_blank" to false in config,  things get better,  but still not good enought. and in the original VITS, the add_blank option did not make any trouble in my dataset, true or false.

Thanks for the job, I am trying to make this project on another dataset, which are also 22.05Khz samples, But during traning, the generated speech in evaluation are strange in duration, the speech speed is very slow then the "gt" conterpart, the GT audio is about 5 seconds while the generated audio from evaluating are about 10 seconds. My config is exactly the same with the ljs_mb_istft_vits.json, except for my own filelist and text_cleaner, This kind of config show no such problem in the VITS training, can any body give some suggestion? and, I had also tried to set "add_blank" to false in config, things get better, but still not good enought. and in the original VITS, the add_blank option did not make any trouble in my dataset, true or false.

Is the DDP cost less then the SDP? it seems that the duration with DDP is worse then that from SDP.


Campus formativo de la cámara de comercio de Sevilla

This is an entry for the domain used by teachers and administrative personnel of the campus.
The official domains for the university are:

www.eusa.es

www.fpnuevasprofesiones.es

The course were I teach game development using Unity can be seen here:

Animación 3D, Juegos y Entornos Interactivos

Finally, here's a photo of my card, were you can see the domain I'm adding on my email address, the school URL and the school name (Campus Cámara Comercio Sevilla):
Card
Thanks!

I forgot to mention that this is the same institution as the "campuscamara.txt" domain which is already added but, as I said, this is a domain used by teachers and other personnel emails.


Manage session id using random int for gradio local mode

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
There is a related issue https://github.com/InternLM/lmdeploy/issues/503, right now the solution using host ip will make the session break randomly if the gradio service is behind a stateless load balancer.
Modification
Add a session_id State in gradio, the State will bind with current page which will not be influence by host ip from gradio.Request.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

This PR have great conflict with #544 ...

Yes, could you also make a support to api_server mode?

@aisensiy community is first :)
@AllentDan Let's leave the conflicts to ourselves 😺

state_session_id seems equal for every session. I think use a global variable is a better idea.
# global session id
global_session_id = [0]

async def chat_stream_local(
    instruction: str,
    state_chatbot: Sequence,
    cancel_btn: gr.Button,
    reset_btn: gr.Button,
    session_id: int,
):
    if session_id == -1:
        session_id = global_session_id[-1] + 1
        global_session_id[-1] += 1

with gr.Blocks(css=CSS, theme=THEME) as demo:
    # state_session_id = gr.State(random.randint(0, 100000))
    state_session_id = gr.State(-1)

其实 app.py 里也有类似 global 的全局变量管理，你如果不适应，也可以放一个 session_id 变量到 InterFace 统一管理
https://github.com/InternLM/lmdeploy/blob/186bfd2eb9ee44db129d1dac70dcabe01461227b/lmdeploy/serve/gradio/app.py#L149

Hi, @aisensiy, sorry for keeping you waiting for such a long time.
We finally finished the review of PR #544
Let's work on this PR.
Please resolve the conflicts before we moving on

@aisensiy Hi, we finally merged #544 into main. Could you help resolve conflicts?

@aisensiy Could you fixed it this week? We plan to release a new version next Monday. And we hope to merge this PR before the release.
If you are not available, @AllentDan can take it over.
Do worry about your credit. Your commits history will not be overwritten

I made some changes to this PR. Please review them.

api_server_backend.py、triton_server_backend.py 这俩文件里面docstrings可以更新一下，比如：
request (gr.Request): the request from a user -> session_id (int): the session id


Update instruction with correct flag

Minor fix for https://molecule.readthedocs.io/en/latest/getting-started.html with incorrect information when init a new role dir
Old: $ molecule init role my-new-role
Should be: $ molecule init role --role-name my-new-role

Docs Pull Request

This is because you read the documentation from latest but used outdated versions 2.22. You either switch to the old documentation or better use the newer versions.

As I can see from your release versions, 2.22 is the "latest version", 3.X are all marked as pre-release
I installed molecule from pip, 2.22 is the  latest one I can get, following documentation.
In my opinion,  the best way to not confuse someone newly start using molecule is to have >2.22 official released.

@zdtsw install latest using pip install --pre molecule, or wait a couple of hours and the 3.0.0 release will appear, it needs to finish last CI/CD pipelines.
Most of the time the differences in documentation are not observable but in that particular case we delayed a release for too long.


Debugging is challenging, can I access the entire response?

Could use some help with debugging functionality. I found the [undocumented?] debug flag, and that helped a little. But now I'm getting Zod errors like this:
[Instructor:ERROR] 2024-02-29T01:48:45.045Z: IdeaArray Error:  Validation error: Required at "ideas[11].catchyYoutubeTitle"
/Users/greg/code/aurite-consulting-client/bird-apps/node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/types.js:43
                const error = new ZodError_1.ZodError(ctx.common.issues);
                              ^

ZodError: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "ideas",
      11,
      "catchyYoutubeTitle"
    ],
    "message": "Required"
  }
]

I'm running a prompt that is expecting this schema:
const IdeasSchema = z.object({
  gameName: z.string(),
  ideas: z.array(z.object({
    catchyYoutubeTitle: z.string(),
    description: z.string(),
    requiredTags: z.array(z.string()),
    optionalTags: z.array(z.string())
  }))
})

The prompt contains information about using that:
<snip>
4. Output the ideas like so:
        NUMBERED_BULLET. **CATCHY YOUTUBE TITLE**
        - Idea Description: IDEA DESCRIPTION
        - Required Tags: REQUIRED TAGS IN LIST FORM
        - Optional Tags: OPTIONAL TAGS IN LIST FORM, IF NO OPTIONAL TAGS, SAY 'None'

Remember, you will repeat Step 2 20x, yielding 20 ideas. Once you have completed this step, call the IdeaArray function and pass it *only* these 20 ideas.

I see in the code  private async chatCompletionStandard<T extends z.AnyZodObject>({
on line 140 const completion = await this.client.chat.completions.create(resolvedParams) and it would be helpful to get that text. I'm trying to make a local tweak and I can submit a PR if that makes sense to you all.

good call - we should log out the raw completion debug is on - Ill add a few more in here for the main release - and throw something in the docs for debugging


update python3-ubi docker image

Description
was asked by server to add the following flags,
the addition will create libpython3.10.so which is the shared library of python that is required by the native runner since server will be compiling python into the native runner

Docker Image Ready - Dev
Docker automatic build at CircleCI has deployed your docker image: devdemisto/python3-ubi:<IP_ADDRESS>713
It is available now on docker hub at: https://hub.docker.com/r/devdemisto/python3-ubi/tags
Get started by pulling the image:
docker pull devdemisto/python3-ubi:<IP_ADDRESS>713

Docker Metadata

Image Size: 106.28 MB

Image ID: sha256:206c451b34bb57ae7b6adce8595e46c12b31c704370b28bccf7dc1474b766c41

Created: 2022-11-23T08:46:37.988139037Z

Arch: linux/amd64

Command: ["python3"]

Environment:

PATH=/usr/local/bin:/home/python/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
container=oci
DOCKER_IMAGE=devdemisto/python3-ubi:<IP_ADDRESS>713

Labels:

architecture:x86_64
build-date:2022-11-01T04:29:09
com.redhat.component:ubi8-container
com.redhat.license_terms:https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI
description:The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.
distribution-scope:public
io.buildah.version:1.26.2
io.k8s.description:The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.
io.k8s.display-name:Red Hat Universal Base Image 8
io.openshift.expose-services:
io.openshift.tags:base rhel8
maintainer:Red Hat, Inc.
name:ubi8
org.opencontainers.image.authors:Demisto<EMAIL_ADDRESS>org.opencontainers.image.revision:3b21fdee720b5324f1b4809dd6141ada0db0eea5
org.opencontainers.image.version:<IP_ADDRESS>713
release:929
summary:Provides the latest release of Red Hat Universal Base Image 8.
url:https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.7-929
vcs-ref:a995512a05037e3b60bbb1bf9fa6e394063131c3
vcs-type:git
vendor:Red Hat, Inc.
version:8.7


Use python -m pytest with xvfb-action

Description
After running a bunch of tests on a fork of the xvfb-action, it looks like it wasn't the version of actions/core or actions/exec that mattered, but something seems to have changed with regards to how the pytest command on the command line finds the proper python environment.  Changing to python -m pytest fixed it in my tests... lets see if it fixes here as well.
also, taking the opportunity to use setup-qt-libs here as well
closes #4031
Type of change

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

References

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

windows tests are passing.  @sofroniewn, @alisterburt ... once the rest pass this is ready and we can get our tests passing again


Problem with nullpointer exception with butterknife 8.0.1

Hello,
I have decided to switch version from 7.0.1 to 8.0.1 in my app.
My dependencies in build.gradle are:
dependencies {     compile fileTree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:23.4.0'     compile 'com.squareup.picasso:picasso:2.5.2'     compile 'com.jakewharton:butterknife:7.0.1'     compile 'de.greenrobot:eventbus:2.4.1' }
But after switch I got nullpointer exception (I have changed Bind to BindView):
`@BindView(R.id.offers) ListView offers;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
    setContentView(R.layout.activity_offers);
    EventBus.getDefault().registerSticky(this);
    ButterKnife.bind(this);

    offers.requestFocus(); // Here I got NullPointerException

    offer_row_adapter = new Offer_Row_Adapter(offers.getContext(), offerModels);
    offers.setAdapter(offer_row_adapter);
}

`
With version 7.0.1 without problems.
Thank you
Radek

Please see the readme for correct build configuration.
On Sat, May 21, 2016, 4:35 PM darius1706<EMAIL_ADDRESS>wrote:

Hello,
I have decided to switch version from 7.0.1 to 8.0.1 in my app.
My dependencies in build.gradle are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'de.greenrobot:eventbus:2.4.1'
}
But after switch I got nullpointer exception (I have changed Bind to
BindView):
`@BindView(R.id.offers) ListView offers;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
setContentView(R.layout.activity_offers);
EventBus.getDefault().registerSticky(this);
ButterKnife.bind(this);
offers.requestFocus(); // Here I got NullPointerException

offer_row_adapter = new Offer_Row_Adapter(offers.getContext(), offerModels);
offers.setAdapter(offer_row_adapter);

}
`
With version 7.0.1 without problems.
Thank you
Radek
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/JakeWharton/butterknife/issues/588


Font smoothing

[x] I made sure this command is not in the commands list
[x] I searched and didn't find this command in the listed issues
[x] I know this defaults command exists
[ ] I know this command works on macOS current version
[ ] I know this command is deprecated on macOS current version

Folder:
Command: defaults -currentHost write -g AppleFontSmoothing -int 0
Argument type (if applicable): int

See https://www.fontsmoothingadjuster.com/

It looks like just change the font-weight,not really smooth


Add queue options to producer

Hi Jose!
This is the first day that I play around with rabbitMQ and so I´m not finally sure if I´m using the service provider wrong or wether this is a bug. By using your version all messages are sent to rabbit in anonymous channels (amq.gen-foobar). When I add my options via setQueueOptions to the producer (like it is done for the consumer) all messages are sent to the channel from my options as expected.

I'm having exactly the same issue here,
When you publish a message it's creating a new queue every time and it's publishing to all queues.
I came up with the exact same solution as udotelaar by setting queue options in the provider.
But we would also need to register the queue that has been created if no queue options were defined. That way it would create one and only one queue.
I also don't get why you can't decouple the providers and consumers? if you doing direct exchange you should know where to write (queue and key) and where to read no?

+1 !

Ahhhhh so that's why I have like a zillion anonymous queues :c

Same problem, I had to use one of the several forks to fix this bug.
It would be great to say that this repo is no longer maintained. I still don't understand how this provider could be useful with such a bug

Based on https://github.com/videlalvaro/rabbitmqbundle#setting-up-the-rabbitmq-fabric, you can set this attribute: auto_setup_fabric => false, for a producer such that the php rabbitmq library won't try to create a random queue for each published msg.

I would say this was fixed with this PR: https://github.com/fiunchinho/rabbitmq-service-provider/pull/7
But it's only in dev-master, no release tag created since then.
Still I think you can close this PR!?
I'm thinking of forking or cloning this repository as it seems it's not maintained for quite a while.

Please, fork it and I'd add the link to your fork in the README

So, flunchinho, you really abondoned this repository?
Could you at least build a new release from dev-master? For me it works fine.
If you could additionally add the callback fixes from: https://github.com/fiunchinho/rabbitmq-service-provider/pull/5 it would be excellent!

Yep, I have no time to maintain it, sorry.
If you update the PR to fix conflicts I'll merge it and release a v1.0. Yay?

Guess I can't change this PR, it's not mine.
I found another little bug, I'll see what I can do in the evening. Family time now. ;-)


ModuleNotFoundError: No module named 'diffusers.models.unets'

After installing X-adapter, I started comfyui and encountered this issue
I have tried the following methods currently, but none of them have solved this problem
pip install diffusers
conda install -c conda-forge diffusers
pip install --upgrade diffusers
Does anyone know how to solve it? Thank you so much

that means the diffusers is too old in the portable comfyui, you should try:
python_embeded\python.exe -m pip install -U diffusers


Add new option to record all json-wire actions and fix error when no json-wire action is present

Enhancement: Add option to record all json-wire actions
Bug-fixes: Fix error when no jsonWire endpoint is present
Fixes: #45

Hey @presidenten , would it be possible for you to review this 😄?

Sorry, I just wrapped up a couple of certification exams, and now Im on vacation. Ill check it out when I get back.

Hey @presidenten just checking if you are back from vacation ;-)

Im away on a long vacation this year. Ill be back the 24th of August.
Sorry for the inconvenience...

Sorry for the long wait. Finally back after 2 months of much needed vacation :-)
The code looks good. What is missing in the PR is a mention in the readme as well as full coverage of unit tests.
Fix those and Ill merge. Now Im back behind a computer, so I can fix it kind of quickly and bundle it for a new release.

You know what? Your issue was super duper nice. So Ill fix the tests and update the readme.

Now available in v3.1.0

You know what? Your issue was written super duper nice. So Ill fix the tests and update the readme.

I am glad you're back...hope you had fun in your vacation. This was so sweet of you. Thank you so much 😄


old issue on old test?

I ran into an old test, and decided to make some small adjustments to it. Unfortunately, I got an issue that appears to be #236.
This test is from 2016, so perhaps that old issue still affects it because it was created back then?
Test is this one.

Same here, it gives me a captcha every time, but never lets me post a change.

I am having the same problem when editing this test

same problem trying to edit https://jsperf.com/typed-array-fast-filling/4
I get a 400 response with the error: Not all tests inserted.
Please fix, and please reopen #236 as it is not fixed atm.

#236 was fixed with apparent "fixes" but I still get the issue "Not all tests inserted" as described there


Nuget error

I've just created a simple empty dll project. When I add nuget reference it tells me:
'NGettext' already has a dependency defined for 'Microsoft.CSharp'.

What Visual Studio version are you using?

VS2013

It seems like you have an outdated NuGet Package Manager.
What version currently installed in your Visual Studio (Tools menu → Extensions and Updates...)?
Try to update it and then reinstall NGettext package.

Solved.

Hello. I'm sorry for re-opening this issue but I met the same problem within MonoDevelop 5.10 (where NuGet add-in uses NuGet 2.8.1 and no later release is available).
What can I do?

@zipgenius You can try standalone NuGet CLI. It works fine on Mono.
Another option is to manually download and unzip library files from NuGet package and manually add them to project references.

Thank you very much, it worked fine. I used NuGet CLI.


[AnVIL DX] Persist entity column sort when changing tabs

Currently, if we sort by a column on an entity tab if we leave the tab and come back the sorting is lost.
Remember the last sort on a table when changing tabs.

Complete


Problems with detecting local video using the detectnet command

When I use the detectnet . /1.mp4 command, the following problem occurs:
[gstreamer] gstreamer message warning ==> qtdemux1
[gstreamer] gstreamer qtdemux1 ERROR Internal data stream error.
[gstreamer] gstreamer Debugging info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux1:
streaming stopped, reason not-linked (-1)
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer ...

The encoding format of this video is mpeg4, so I tried to use detectnet ./1.mp4 --input-codec=mpeg4, and got the same results.
The complete error is as follows:
(rgzy5) root@rgzy:/rg/8fusion-cpp/gst-cv-detect/videos# detectnet ./1.mp4 --input-codec=mpeg4
[gstreamer] initialized gstreamer, version <IP_ADDRESS>
[gstreamer] gstDecoder -- creating decoder for ./1.mp4
Opening in BLOCKING MODE
[gstreamer] gstDecoder -- discovered video resolution: 2560x720  (framerate 25.000000 Hz)
[gstreamer] gstDecoder -- discovered video caps:  video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800cd50045a1463000001b24c61766335382e35342e313030, width=(int)2560, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true
[gstreamer] gstDecoder -- pipeline string:
[gstreamer] filesrc location=./1.mp4 ! qtdemux ! queue ! mpeg4videoparse ! nvv4l2decoder name=decoder enable-max-performance=1 ! video/x-raw(memory:NVMM) ! nvvidconv name=vidconv ! video/x-raw ! appsink name=mysink
[video]  created gstDecoder from file:///rg/8fusion-cpp/gst-cv-detect/videos/./1.mp4
------------------------------------------------
gstDecoder video options:
------------------------------------------------
  -- URI: file:///rg/8fusion-cpp/gst-cv-detect/videos/./1.mp4
     - protocol:  file
     - location:  ./1.mp4
     - extension: mp4
  -- deviceType: file
  -- ioType:     input
  -- codec:      MPEG4
  -- codecType:  v4l2
  -- width:      2560
  -- height:     720
  -- frameRate:  25
  -- numBuffers: 4
  -- zeroCopy:   true
  -- flipMethod: none
  -- loop:       0
------------------------------------------------
[OpenGL] glDisplay -- X screen 0 resolution:  2560x1440
[OpenGL] glDisplay -- X window resolution:    2560x1440
[OpenGL] glDisplay -- display device initialized (2560x1440)
[video]  created glDisplay from display://0
------------------------------------------------
glDisplay video options:
------------------------------------------------
  -- URI: display://0
     - protocol:  display
     - location:  0
  -- deviceType: display
  -- ioType:     output
  -- width:      2560
  -- height:     1440
  -- frameRate:  0
  -- numBuffers: 4
  -- zeroCopy:   true
------------------------------------------------

detectNet -- loading detection network model from:
          -- model        networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff
          -- input_blob   'Input'
          -- output_blob  'NMS'
          -- output_count 'NMS_1'
          -- class_labels networks/SSD-Mobilenet-v2/ssd_coco_labels.txt
          -- threshold    0.500000
          -- batch_size   1

[TRT]    TensorRT version 8.5.2
[TRT]    loading NVIDIA plugins...
[TRT]    Registered plugin creator - ::BatchedNMSDynamic_TRT version 1
[TRT]    Registered plugin creator - ::BatchedNMS_TRT version 1
[TRT]    Registered plugin creator - ::BatchTilePlugin_TRT version 1
[TRT]    Registered plugin creator - ::Clip_TRT version 1
[TRT]    Registered plugin creator - ::CoordConvAC version 1
[TRT]    Registered plugin creator - ::CropAndResizeDynamic version 1
[TRT]    Registered plugin creator - ::CropAndResize version 1
[TRT]    Registered plugin creator - ::DecodeBbox3DPlugin version 1
[TRT]    Registered plugin creator - ::DetectionLayer_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_Explicit_TF_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_Implicit_TF_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_ONNX_TRT version 1
[TRT]    Registered plugin creator - ::EfficientNMS_TRT version 1
[TRT]    Could not register plugin creator -  ::FlattenConcat_TRT version 1
[TRT]    Registered plugin creator - ::GenerateDetection_TRT version 1
[TRT]    Registered plugin creator - ::GridAnchor_TRT version 1
[TRT]    Registered plugin creator - ::GridAnchorRect_TRT version 1
[TRT]    Registered plugin creator - ::GroupNorm version 1
[TRT]    Registered plugin creator - ::InstanceNormalization_TRT version 1
[TRT]    Registered plugin creator - ::InstanceNormalization_TRT version 2
[TRT]    Registered plugin creator - ::LayerNorm version 1
[TRT]    Registered plugin creator - ::LReLU_TRT version 1
[TRT]    Registered plugin creator - ::MultilevelCropAndResize_TRT version 1
[TRT]    Registered plugin creator - ::MultilevelProposeROI_TRT version 1
[TRT]    Registered plugin creator - ::MultiscaleDeformableAttnPlugin_TRT version 1
[TRT]    Registered plugin creator - ::NMSDynamic_TRT version 1
[TRT]    Registered plugin creator - ::NMS_TRT version 1
[TRT]    Registered plugin creator - ::Normalize_TRT version 1
[TRT]    Registered plugin creator - ::PillarScatterPlugin version 1
[TRT]    Registered plugin creator - ::PriorBox_TRT version 1
[TRT]    Registered plugin creator - ::ProposalDynamic version 1
[TRT]    Registered plugin creator - ::ProposalLayer_TRT version 1
[TRT]    Registered plugin creator - ::Proposal version 1
[TRT]    Registered plugin creator - ::PyramidROIAlign_TRT version 1
[TRT]    Registered plugin creator - ::Region_TRT version 1
[TRT]    Registered plugin creator - ::Reorg_TRT version 1
[TRT]    Registered plugin creator - ::ResizeNearest_TRT version 1
[TRT]    Registered plugin creator - ::ROIAlign_TRT version 1
[TRT]    Registered plugin creator - ::RPROI_TRT version 1
[TRT]    Registered plugin creator - ::ScatterND version 1
[TRT]    Registered plugin creator - ::SeqLen2Spatial version 1
[TRT]    Registered plugin creator - ::SpecialSlice_TRT version 1
[TRT]    Registered plugin creator - ::SplitGeLU version 1
[TRT]    Registered plugin creator - ::Split version 1
[TRT]    Registered plugin creator - ::VoxelGeneratorPlugin version 1
[TRT]    detected model format - UFF  (extension '.uff')
[TRT]    desired precision specified for GPU: FASTEST
[TRT]    requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT]    [MemUsageChange] Init CUDA: CPU +220, GPU +0, now: CPU 260, GPU 7369 (MiB)
[TRT]    Trying to load shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    Loaded shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    [MemUsageChange] Init builder kernel library: CPU +302, GPU +419, now: CPU 585, GPU 7821 (MiB)
[TRT]    native precisions detected for GPU:  FP32, FP16, INT8
[TRT]    selecting fastest native precision for GPU:  FP16
[TRT]    found engine cache file /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.1.1.8502.GPU.FP16.engine
[TRT]    found model checksum /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.sha256sum
[TRT]    echo "$(cat /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.sha256sum) /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff" | sha256sum --check --status
[TRT]    model matched checksum /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.sha256sum
[TRT]    loading network plan from engine cache... /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.1.1.8502.GPU.FP16.engine
[TRT]    device GPU, loaded /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff
[TRT]    Loaded engine size: 33 MiB
[TRT]    Trying to load shared library libcublas.so.11
[TRT]    Loaded shared library libcublas.so.11
[TRT]    Using cublas as plugin tactic source
[TRT]    Trying to load shared library libcublasLt.so.11
[TRT]    Loaded shared library libcublasLt.so.11
[TRT]    Using cublasLt as core library tactic source
[TRT]    [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +534, GPU +690, now: CPU 873, GPU 8453 (MiB)
[TRT]    Trying to load shared library libcudnn.so.8
[TRT]    Loaded shared library libcudnn.so.8
[TRT]    Using cuDNN as plugin tactic source
[TRT]    Using cuDNN as core library tactic source
[TRT]    [MemUsageChange] Init cuDNN: CPU +83, GPU +99, now: CPU 956, GPU 8552 (MiB)
[TRT]    Deserialization required 1407332 microseconds.
[TRT]    [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +32, now: CPU 0, GPU 32 (MiB)
[TRT]    Trying to load shared library libcublas.so.11
[TRT]    Loaded shared library libcublas.so.11
[TRT]    Using cublas as plugin tactic source
[TRT]    Trying to load shared library libcublasLt.so.11
[TRT]    Loaded shared library libcublasLt.so.11
[TRT]    Using cublasLt as core library tactic source
[TRT]    [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +3, now: CPU 956, GPU 8566 (MiB)
[TRT]    Trying to load shared library libcudnn.so.8
[TRT]    Loaded shared library libcudnn.so.8
[TRT]    Using cuDNN as plugin tactic source
[TRT]    Using cuDNN as core library tactic source
[TRT]    [MemUsageChange] Init cuDNN: CPU +0, GPU +4, now: CPU 956, GPU 8570 (MiB)
[TRT]    Total per-runner device persistent memory is 9216
[TRT]    Total per-runner host persistent memory is 159632
[TRT]    Allocated activation device memory of size 7000064
[TRT]    [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +7, now: CPU 0, GPU 39 (MiB)
[TRT]
[TRT]    CUDA engine context initialized on device GPU:
[TRT]       -- layers       106
[TRT]       -- maxBatchSize 1
[TRT]       -- deviceMemory 7000064
[TRT]       -- bindings     3
[TRT]       binding 0
                -- index   0
                -- name    'Input'
                -- type    FP32
                -- in/out  INPUT
                -- # dims  3
                -- dim #0  3
                -- dim #1  300
                -- dim #2  300
[TRT]       binding 1
                -- index   1
                -- name    'NMS'
                -- type    FP32
                -- in/out  OUTPUT
                -- # dims  3
                -- dim #0  1
                -- dim #1  100
                -- dim #2  7
[TRT]       binding 2
                -- index   2
                -- name    'NMS_1'
                -- type    FP32
                -- in/out  OUTPUT
                -- # dims  3
                -- dim #0  1
                -- dim #1  1
                -- dim #2  1
[TRT]
[TRT]    binding to input 0 Input  binding index:  0
[TRT]    binding to input 0 Input  dims (b=1 c=3 h=300 w=300) size=1080000
[TRT]    binding to output 0 NMS  binding index:  1
[TRT]    binding to output 0 NMS  dims (b=1 c=1 h=100 w=7) size=2800
[TRT]    binding to output 1 NMS_1  binding index:  2
[TRT]    binding to output 1 NMS_1  dims (b=1 c=1 h=1 w=1) size=4
[TRT]
[TRT]    device GPU, /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff initialized.
[TRT]    W = 7  H = 100  C = 1
[TRT]    detectNet -- maximum bounding boxes:   100
[TRT]    loaded 91 class labels
[TRT]    detectNet -- number of object classes:  91
[TRT]    loaded 0 class colors
[TRT]    didn't load expected number of class colors  (0 of 91)
[TRT]    filling in remaining 91 class colors with default colors
[gstreamer] opening gstDecoder for streaming, transitioning pipeline to GST_STATE_PLAYING
Opening in BLOCKING MODE
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1
[gstreamer] gstreamer changed state from NULL to READY ==> vidconv
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[gstreamer] gstreamer changed state from NULL to READY ==> decoder
[gstreamer] gstreamer changed state from NULL to READY ==> mpeg4vparse1
[gstreamer] gstreamer changed state from NULL to READY ==> queue0
[gstreamer] gstreamer changed state from NULL to READY ==> qtdemux1
[gstreamer] gstreamer changed state from NULL to READY ==> filesrc0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1
[gstreamer] gstreamer changed state from READY to PAUSED ==> vidconv
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[gstreamer] gstreamer changed state from READY to PAUSED ==> decoder
[gstreamer] gstreamer changed state from READY to PAUSED ==> mpeg4vparse1
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> queue0
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer stream status CREATE ==> sink
[gstreamer] gstreamer changed state from READY to PAUSED ==> qtdemux1
[gstreamer] gstreamer changed state from READY to PAUSED ==> filesrc0
[gstreamer] gstreamer stream status ENTER ==> sink
[gstreamer] gstreamer message warning ==> qtdemux1
[gstreamer] gstreamer qtdemux1 ERROR Internal data stream error.
[gstreamer] gstreamer Debugging info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux1:
streaming stopped, reason not-linked (-1)
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer
[gstreamer] gstDecoder::Capture() -- a timeout occurred waiting for the next image buffer

@bladetin can you try running this with --input-decoder=cpu or transcode your video first to H264 using ffmpeg/ect


Fga doesn't work on my redmi note 11

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
1908
Describe the bug
Fga doesn't work on my redmi note 11, specifically battle mode, lotto does work but it just keeps clicking and ignoring  the command to prevent box reset. But in battle mode it just doesn't, cant even pick the support.
Video
https://youtu.be/zG_pF6gyQ00
Device model
Xiaomi Redmi note 11
Android version
12
Screen size
1080 x 2400
RAM
6gb + 2gb

Are you using the custom game area option?

Are you using the custom game area option?

Nope, default

Take a screenshot ingame, make sure it's of a bright screen and post it here https://github.com/Fate-Grand-Automata/FGA/issues/1347 to get the values for your screen then input those values into the custom game area option in the advance section of the more options menu in fga

Still dont work https://youtu.be/YCBvrnXn5I8

What's that white thing in the top left?

Still dont work https://youtu.be/YCBvrnXn5I8

What's that white thing in the top left?

A performance booster for games, somethin like that

If not, post another video.


Change how doc commands work

%d now links to the documentation
%s acts as the previous %d command did, linking to the source code.

Looking good, awesome! 👍


Include location state in LOCATION_CHANGE payload

[x] Add code
[x] Add test
[x] Run all tests to check for regression

Closes #301

Is there anything I can do to help this PR to be merged?

bump, can you please merge this PR?

would also like the sanity introduced with this feature 🙏 at the moment you need to hard code your param matching or find an extremely over-engineered/coupled way to do that with view.

@supasate would it be possible release this fix soon?

Released in 6.7.0.


[Paper] Update hyperref color scheme.

Changing colors following https://github.com/google/BIG-bench/pull/734#issuecomment-1086959711
Note: since there are a lot of links used in the paper (mostly to the tasks), maybe better differentiating between link color and citation color could be used.

Thanks! And +1 on different colors for links back to the BIG-bench repository and for citations.


Add container-runtime and cni endpoints

Depends on:

https://github.com/charmed-kubernetes/charm-lib-kubernetes-snaps/pull/5
https://github.com/charmed-kubernetes/charm-lib-interface-container-runtime/pull/1
https://github.com/charmed-kubernetes/charm-lib-interface-kubernetes-cni/pull/1

This adds the container-runtime and cni relation endpoints to the kubernetes-control-plane charm. We still can't run Calico, since we're not running kubelet yet, but we can at least test with Flannel.

This is ready for review, but will need to have its requirements.txt updated after the dependency PRs are landed.


Make cg-uaa-audit PyPI package owned by a cloud-gov user

The package in question: https://pypi.org/project/cg-django-uaa/
Source: https://github.com/cloud-gov/cg-django-uaa
See @jameshochadel or @markdboyd for details.

One clarification, right now the package is not owned by the 18f org, but the 18f user.
From what I can tell, PyPI doesn't have any support for organizations:
https://discuss.python.org/t/pypi-organization-account-roadmaps/14699
So probably the best thing we can do is add individual team members to have access for now. Since I currently have the ability to log in as the 18f user, I can add people

Per @markdboyd's comment, we want to create a new PyPI user based on an email associated with a google group we own, like<EMAIL_ADDRESS>and remove access from the 18F account.


Labels and placeholders aren't translatable

Could you please take advantage of Craft's static translation support by running all text through "*|t" or Craft::t()? We see that some strings are translatable and other strings aren't.
Linkit is in English and we want to translate it to Dutch for a customer. Especially the select options (Email Address, Telephone Number, etc.) and field placeholders.
Thanks!

I have the same problem here. I would also appreciate it if you guys could make the static text translatable.
Thanks in advance

We have completely rewritten the plugin which is due to be released shortly, no major changes to functionality, just improvements to the code base and the way data is stored and accessed, everything should be translatable now.
Once release please let us know if we have missed anything!

@samhibberd Do you have an ETA on the rewritten Linkit plugin?

Do you have an ETA for the new version of the plugin?

Fixed in the latest release, please make sure you backup and test out pre launch!


No image for Raspberry Pi 4 64bit

The problem
Can't update to 0.105

Environment
Raspberry Pi 4

Home Assistant release with the issue:
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Integration causing this issue:
Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs
ERROR (SyncWorker_7) [hassio.docker.interface] Can't install homeassistant/raspberrypi4-64-homeassistant:0.105.0 -> 404 Client Error: Not Found ("no such image: homeassistant/raspberrypi4-64-homeassistant:0.105.0: No such image: homeassistant/raspberrypi4-64-homeassistant:0.105.0").

Additional information

It's there https://hub.docker.com/layers/homeassistant/raspberrypi4-64-homeassistant/0.105.0/images/sha256-f76a395418c1a74eea69dd47ce5035e55c71fb5f134fa468b98d5e6fe139b406
Make sure that you have enough space to download the image.


[setup] selective features and imports for hooks and operators

@mistercrunch
I am not exactly sure how to install Airflow using the setup.py with the extras, but one can use pip install -e .[key_in_extras_require] for instance pip install -e .[all] for installing everything.
This was inspired by the setuptools docs and the ipython setup.py

Merge it!
![img] (http://i.imgur.com/DZNOo3h.gif)
So all we need to do is update the install docs. I'll try to push it to pypi tomorrow and play with it to learn how to document it right.


What is the release cadence of this repo(if any)?

Hi,
Some of the commits in the master branch are of interest to me.
I would like to know when the next release going to be.
Thanks

@sebinjohn,
The release is planned for early next week. We may be able get the release out sooner.

Thanks @eyalbe4


[Bug]: Fields Misplaced When Inserting New Row in Google Sheets That Contains an Empty Column

Is there an existing issue for this?

[X] I have searched the existing issues

Description
In Google Sheets, if we have an empty column and insert a new row, the fields of the new row get shifted after the empty column.

It gets inserted correctly if we delete the empty column or add a header to it. So the workaround is to use a header such as _ if we want to keep the empty column.
Steps To Reproduce

Connect to a Google Sheets Datasource.
Make sure you use a sheet that contains an empty column.
Create a query that inserts a new row into the sheet.
Note that the fields are not getting inserted correctly.

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
v1.9.58
 Front conversations

@ame-appsmith This is not a bug and actually expected for Google Sheets that there are no gaps in the columns.


Increase 'pack register content' timeout

Our AWS pack ballooned into 3581 actions which sometimes results in st2 pack install aws failures on slower systems (reported in #community).
For now "temporary" increasing pack register timeout.
The proper fix is to investigate the performance and research the pack content registration optimizations
StackStorm by design should handle big packs.
Also there is a related cosmetic enhancement https://github.com/StackStorm/st2/issues/3586 which helps to additionally signalize if there is a huge amount of content in a pack.

There may be a difference in behavior between CentOS & Ubuntu here. Needs more testing to confirm, but initial indications are that these timeouts are more likely to occur on CentOS systems.


Example for docker-compose based configuration

As a Docker novice, I was a little bit confused about what is the relationship between command-line commands and docker-compose. For the clarification, I added an example of what docker-compose.yml service would look like.

We have release a new version with new automation. Please check if this applies to the new project. Thanks!


Extract persistence base class from Aggregate and Saga actors

AggregateActor and SagaActor have many similar functionality related to aggregate persistence and now code is duplicated. Need to extract base class for this.

done in 1.9.2


docs(guide/Component Router): Add missing backtick

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs fix
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change?
Please check if the PR fulfills these requirements

[y] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
Other information:

I signed it!


Slow prefetched load

Describe the bug
I noticed that load request that has fetch request that has been already prefetched (either using sveltekit:prefetch or prefetch function) takes much more time(around 30-60ms difference, not that much but still) than when I just hardcoded values that are returned as props, and I don't understand why would that happen, cause when I check in the network monitor, it shows that those requests are indeed prefetched, and only requested once.
Thanks
Reproduction
No need, literally any repo.
Logs
No response
System Info
System:
    OS: Linux 5.13 Manjaro Linux
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 2.79 GB / 7.65 GB
    Container: Yes
    Shell: 5.1.12 - /bin/bash
  Binaries:
    Node: 17.2.0 - /usr/local/bin/node
    npm: 8.1.4 - /usr/bin/npm
  Browsers:
    Chromium: 96.0.4664.93
    Firefox: 95.0.1
  npmPackages:
    @sveltejs/adapter-node: next => 1.0.0-next.55
    @sveltejs/kit: ^1.0.0-next.202 => 1.0.0-next.202
    svelte: ^3.44.3 => 3.44.3

Severity
annoyance
Additional Information
No response

Is this related to #2929? (Fix unreleased yet) sveltekit:prefetch hasn't been working recently on desktop. Otherwise I don't really see any call-to action here and it may be working as intended. I'd suggest providing a repro to make a comparison and potentially provide an analysis on what you think makes it slow.

@PH4NTOMiki out of curiosity, does this approach improve latency on your end?

Link

Closing this as #2929 has been released, and there was no response from OP.

out of curiosity, does this approach improve latency on your end?

This should already be done by SvelteKit out-of-the-box. I don't think it'll improve the prefetch performance.


Rename /dataset-info endpoint to /info

Question: do we want to show results of steps that have pending and failed keys? I assume it might be not clear for users what that means, they also sound a bit too technical. Should we explain in the docs or just don't allow access to the dataset-level aggregations (but if so, why do we even need these cache entries).

Codecov Report
Patch coverage: 100.00% and project coverage change: -2.82 :warning:

Comparison is base (812df76) 90.15% compared to head (a81eb58) 87.33%.

:exclamation: Current head a81eb58 differs from pull request most recent head 79208d5. Consider uploading reports for the commit 79208d5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1468      +/-   ##
==========================================
- Coverage   90.15%   87.33%   -2.82%
==========================================
  Files         191       22     -169
  Lines       11477     1406   -10071
==========================================
- Hits        10347     1228    -9119
+ Misses       1130      178     -952

Flag
Coverage Δ

jobs_cache_maintenance
?

jobs_mongodb_migration
?

libs_libcommon
?

services_admin
?

services_api
87.33% <100.00%> (ø)

services_worker
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

services/api/src/api/config.py
100.00% <ø> (ø)

services/api/tests/routes/test_endpoint.py
100.00% <100.00%> (ø)

... and 169 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Question: do we want to show results of steps that have pending and failed keys? I assume it might be not clear for users what that means, they also sound a bit too technical. Should we explain in the docs or just don't allow access to the dataset-level aggregations (but if so, why do we even need these cache entries).

100% agree with you. This part of the API is not clear. Let's discuss it in a new issue?


ownProps not populated in mapDispatchToProps

I have the following interfaces:
interface EditUserContainerProps
  extends RouteComponentProps<EditUserParams>,
  EditUserStateProps,
  EditUserDispatchProps { }

interface EditUserParams {
  id: number;
  history: any;
}

interface EditUserStateProps {
  isLoading: boolean;
  isSubmitting: boolean;
  userFields: UserField[];
  User: User;
}

interface EditUserDispatchProps {
  load: (id: number) => void;
  updateUser: (User: User) => any;
  parseFile: (file: File, replace: boolean) => any;
  addRecords: (records: any[]) => any;
}

And I have the following mapDispatchToProps function:
export class EditUserContainer extends React.Component<EditUserContainerProps> {
....
function mapDispatchToProps(dispatch: Dispatch<ActionTypes>, ownProps: EditUserContainerProps): EditUserDispatchProps {
  return {
    parseFile: (file: File, replace: boolean) => {
      return fileParsingsApiActions
        .parseFile(file)(dispatch)
        .then((data: any) => {
           ownProps.addRecords( data.data);
        })
        .catch(reason => {
          alert("An error occurred parsing your file.");
        });
    }
  };
}

export const EditUser = connect(mapStateToProps, mapDispatchToProps)(EditUserContainer);

In the callback for parseFile, ownProps is defined, but ownProps.addRecords is undefined.  ownProps only has the following properties:

history
location
match
staticContext

What am I not understanding?

Where is addRecord supposed to be coming from?  I'm not seeing it in that example.  Can you post the rest of your code to show how you're using this?
Remember that ownProps is explicitly props that are passed to the connected wrapper component.

It sounds like you're using React Router and not passing through that prop correctly. I would check your usage of that library.
Nonetheless, this is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!

@markerikson I updated my post to include the class definition.  There is no addRecord.  There is addRecords which you can see is another mapDispatchToProps function defined in the EditUserDispatchProps interface which my class extends.

@im1dermike : sorry, I meant addRecords.
I'm not concerned with what your interface definition is - I want to see where and how you are actually passing in addRecords as a prop, and to which component.

@markerikson addRecords is not passed to this component (container); it only exists in that class.  My belief is, since I've added it to my mapDispatchToProps, it should be available in ownProps.

That's not how it works. TypeScript will strip out the typing information at compile time. ownProps operates on what's provided at runtime. It cannot "see" the typings.

@timdorr So there is no way to access items from state and dispatch that have been mapped to props?

@im1dermike : I think you're confused on what ownProps represents.
Per my comment earlier, for both mapState and mapDispatch, ownProps is all props that were passed to the connected wrapper component.

@markerikson  Got it.  Thanks for clarifying. Now I need to figure out how to get access to "local" (??) props in mapDispatchToProps...

@im1dermike : you can't. The values returned from mapState are not accessible in mapDispatch.
I personally recommend writing separate action creator functions, and using the "object shorthand" for mapDispatch to bind them.  This is a great candidate for a thunk:
function parseFile(file, replace, addRecords) {
    return (dispatch, getState) => {
		return fileParsingsApiActions
			.parseFile(file)(dispatch)
			.then((data: any) => {
				ownProps.addRecords( data.data);
			})
			.catch(reason => {
				alert("An error occurred parsing your file.");
			});
    }
}

const actions = {parseFile};

export const EditUser = connect(mapStateToProps, actions)(EditUserContainer);

// later, inside of EditUserContainer

this.props.parseFile(file, replace, this.props.addRecords);

To me, there's never a reason to write an explicit mapDispatch function ever again.
For more info, see my post Idiomatic Redux: Why use action creators?.

@markerikson Thanks a lot for dropping some knowledge.