Hi, I am facing an issue, while generating a build.

    Hi, I am facing an issue, while generating a build.

.gradle/caches/transforms-2/files-2.1/e4fbec57f89d7c92a4c08621897ece3f/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
Originally posted by @amitsigo in https://github.com/facebook/react-native/issues/35210#issuecomment-1305840028

Can you fill in the issue template?

i got error like this , when i try to build assembleRelease
Task :@react-native-async-storage_async-storage:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':@react-native-async-storage_async-storage:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/fachrighiffary/.gradle/caches/transforms-2/files-2.1/96030fe37e408c8834bdf940dc4540a5/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

this is my build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 22
compileSdkVersion = 28
targetSdkVersion = 31
googlePlayServicesAuthVersion = "16.0.1" // <--- use this version or newer
}
repositories {
    google()
    jcenter()
}
dependencies {
    // classpath("com.android.tools.build:gradle:3.5.3")
    classpath 'com.android.tools.build:gradle:4.0.1'
    classpath('com.google.gms:google-services:4.3.3')
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}
allprojects {
repositories {
mavenLocal()
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()
    maven { url 'https://www.jitpack.io' }
}

}

:@react-native-async-storage_async-storage:verifyReleaseResources'.

It seems like this issue is actually unrelated to React Native core. Please open this issue against react-native-async-storage
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

this is my android/app/build.gradle
apply plugin: "com.android.application"
apply plugin: 'com.google.gms.google-services' // <- Add this line
import com.android.build.OutputFile
/**

The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
and bundleReleaseJsAndAssets).
These basically call react-native bundle with the correct arguments during the Android build
cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
bundle directly from the development server. Below you can see all the possible configurations
and their defaults. If you decide to add a configuration block, make sure to add it before the
apply from: "../../node_modules/react-native/react.gradle" line.

project.ext.react = [
// the name of the generated asset file containing your JS bundle
bundleAssetName: "index.android.bundle",

// the entry file for bundle generation. If none specified and
// "index.android.js" exists, it will be used. Otherwise "index.js" is
// default. Can be overridden with ENTRY_FILE environment variable.
entryFile: "index.android.js",

// https://reactnative.dev/docs/performance#enable-the-ram-format
bundleCommand: "ram-bundle",

// whether to bundle JS and assets in debug mode
bundleInDebug: false,

// whether to bundle JS and assets in release mode
bundleInRelease: true,

// whether to bundle JS and assets in another build variant (if configured).
// See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
// The configuration property can be in the following formats
//         'bundleIn${productFlavor}${buildType}'
//         'bundleIn${buildType}'
// bundleInFreeDebug: true,
// bundleInPaidRelease: true,
// bundleInBeta: true,

// whether to disable dev mode in custom build variants (by default only disabled in release)
// for example: to disable dev mode in the staging build type (if configured)
devDisabledInStaging: true,
// The configuration property can be in the following formats
//         'devDisabledIn${productFlavor}${buildType}'
//         'devDisabledIn${buildType}'

// the root of your project, i.e. where "package.json" lives
root: "../../",

// where to put the JS bundle asset in debug mode
jsBundleDirDebug: "$buildDir/intermediates/assets/debug",

// where to put the JS bundle asset in release mode
jsBundleDirRelease: "$buildDir/intermediates/assets/release",

// where to put drawable resources / React Native assets, e.g. the ones you use via
// require('./image.png')), in debug mode
resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",

// where to put drawable resources / React Native assets, e.g. the ones you use via
// require('./image.png')), in release mode
resourcesDirRelease: "$buildDir/intermediates/res/merged/release",

// by default the gradle tasks are skipped if none of the JS files or assets change; this means
// that we don't look at files in android/ or ios/ to determine whether the tasks are up to
// date; if you have any other folders that you want to ignore for performance reasons (gradle
// indexes the entire tree), add them here. Alternatively, if you have JS files in android/
// for example, you might want to remove it from here.
inputExcludes: ["android/", "ios/"],

// override which node gets called and with what additional arguments
nodeExecutableAndArgs: ["node"],

// supply additional arguments to the packager
extraPackagerArgs: []
]
*/

project.ext.react = [
enableHermes: true,  // clean and rebuild if changing
]
apply from: "../../node_modules/react-native/react.gradle"
/**

Set this to true to create two separate APKs instead of one:

An APK that only works on ARM devices

An APK that only works on x86 devices

The advantage is the size of the APK is reduced by about 4MB.
Upload all the APKs to the Play Store and people will download
the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false

/**

Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false

/**

The preferred build flavor of JavaScriptCore.

For example, to use the international variant, you can use:
def jscFlavor = 'org.webkit:android-jsc-intl:+'

The international variant includes ICU i18n library and necessary data
allowing to use e.g. Date.toLocaleString and String.localeCompare that
give correct results when using with locales other than en-US.  Note that
this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'

/**

Whether to enable the Hermes VM.

This should be set on project.ext.react and mirrored here.  If it is not set
on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
and the benefits of using Hermes will therefore be sharply reduced.
*/
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 "id.co.bni.bnicall"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 10
    versionName "2.1.1"
    multiDexEnabled true
    missingDimensionStrategy 'react-native-camera', 'general' // <--- insert this line
    vectorDrawables.useSupportLibrary = true
}

// Add this to build app release
signingConfigs {
    release {
        if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
            storeFile file(MYAPP_UPLOAD_STORE_FILE)
            storePassword MYAPP_UPLOAD_STORE_PASSWORD
            keyAlias MYAPP_UPLOAD_KEY_ALIAS
            keyPassword MYAPP_UPLOAD_KEY_PASSWORD
        }
    }
}

splits {
    abi {
        reset()
        enable enableSeparateBuildPerCPUArchitecture
        universalApk false  // If true, also generate a universal APK
        include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
}
signingConfigs {

    debug {
        storeFile file('debug.keystore')
        storePassword 'android'
        keyAlias 'androiddebugkey'
        keyPassword 'android'
    }
}
buildTypes {
    debug {
        signingConfig signingConfigs.debug
    }
    release {
        // Caution! In production, you need to generate your own keystore file.
        // see https://reactnative.dev/docs/signed-apk-android.
        signingConfig signingConfigs.debug
        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:
        // https://developer.android.com/studio/build/configure-apk-splits.html
        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
        }

    }
}

}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"  // From node_modules
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
  exclude group:'com.facebook.fbjni'
}

implementation 'com.android.support:multidex:2.0.1'

debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
    exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
}

if (enableHermes) {
    def hermesPath = "../../node_modules/hermes-engine/android/";
    debugImplementation files(hermesPath + "hermes-debug.aar")
    releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
    implementation jscFlavor
}
//gif
implementation 'com.facebook.fresco:fresco:2.0.0'
// For animated GIF support
implementation 'com.facebook.fresco:animated-gif:2.0.0'
// For WebP support, including animated WebP
implementation 'com.facebook.fresco:animated-webp:2.0.0'
implementation 'com.facebook.fresco:webpsupport:2.0.0'
//add this for firebase
implementation project(':react-native-push-notification')
implementation platform('com.google.firebase:firebase-bom:30.3.2')
implementation 'com.google.firebase:firebase-analytics:17.3.0'
//get sim data
implementation 'com.google.android.gms:play-services-gcm:+'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' // <-- add this; newer versions should work too
implementation(project(":react-native-google-signin"))

}
// 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 from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

I am experiencing the same problem

I am experiencing the same problem too

This was fixed by upgrading to the latest patch release (e.g: 0.64.4) for me (released yesterday)

This was fixed by upgrading to the latest patch release (e.g: 0.64.4) for me (released yesterday)

i use react-native(0.63.3),and i upgrading to 0.63.5 .
it's working

Updating from 0.64.0-rc.4 to 0.64.4 fixed the problem for me.
Thanks @ogizanagi


Rename :build keyword to :pre-build?

As mentioned here: https://github.com/raxod502/straight.el/pull/535#issuecomment-657144652
The term "build" is overloaded at the moment. We have the :build and :post-build recipe keywords and the notion of building an elisp package. Can't believe I didn't think of this at the time, but we could rename :build to :pre-build. It would clearly complement :post-build and distinguish the keyword from the symlink/byte-compile/autoload notion of "build".

See #655


Workspace folders bug in develop

The workspace list of projects no longer shows any folders (so you can't access projects within existing folders). If you try to create a new folder you get an 'error creating folder' message and no folder appears. It looks like the folder is created in database but doesn't show in workspace. Probably one for you @torinfo!
I first saw this in xampp but it's also a problem on https://xot310beta.dlearning.nl/ so likely to be something broken recently in develop (it's ok in 3.10)

@FayCross Is this better? I think it is still broken for import pages.

See https://github.com/thexerteproject/xerteonlinetoolkits/commit/654a43702ff7c9ee487e7f980749011ced03b256

@torinfo yes - that's fixed in Workspace but it doesn't show folders when importing pages in the editor. I do also still see the error creating folder message when creating a folder but the folder does appear anyway

@FayCross Thank you. I'll check the other issues early next week.

@FayCross @torinfo I've only just noticed that this applies to 3.10.5 too? So installations upgraded to 3.10.5 aren't showing folders in the workspace! Or am I using an earlier 3.10.5 and the fix was added later?

@torinfo @FayCross I noticed the other day that my local develop wasn't loading any longer but didn't have time to investigate at the time. I don't know if this is due to these changes in display_library.php and I don't know why you aren't getting the same problem? With debugging on I get a blank screen but with debugging on I get the following error:
Parse error: syntax error, unexpected ':', expecting '{' in \website_code\php\display_library.php on line 365
Any ideas? Why aren't you getting this?

@torinfo is this perhaps a PHP compatibility issue? My local xammp is PHP 5.6.8 and in our release notes we say PHP v5.1.2 or later.

Yep. This function (on line 365) specifies a return type, which is supported, starting PHP 7.0. I would suggest to just remove the
': bool'.
Can you test and commit, or do you want me to do it.

@torinfo was offline but just got back in and tested and although that removes the error and I now get further with the header and footer loading the left and middle panes of the workspace are completely empty.

@ronm123 Could be caused by other compitibility issues with PHP 5.6. To be honest, would be easiest to drop support for that.
No errors in the PHP log?

@torinfo do we need to add something to release notes ASAP about requiring a higher version of php or are these changes only affecting develop and not released code at the moment?

@FayCross @torinfo I think it's only affecting develop installs at the moment but I agree if we are having to change the minimum compatibility then we need to make that known prominently and not just in the release notes but on the download page and set up screens too. Obviously it's long overdue that we specify and move to a later minimum version of PHP and even 7.0-7.3 are EOL. But I guess we could at least say that PHP 7.0 is the new minimum?
Tom - if I remove ': bool' as I said although that removes the error and I now get further with the header and footer loading the left and middle panes of the workspace are completely empty. I don't get anything useful in the console or the Apache error log although at the end of the apache error log I get The system cannot find the path specified. But nothing telling me what path.
I have local xammp that is PHP 8 but I've deliberately kept the xampp I use by default at 5.6 and until now that has always worked. So is there a solution to this current issue or do we now have to say PHP 7.0 is the minimum and test that to be sure?

@FayCross @torinfo I'm adding this here rather than starting a new issue because I think it might be a related bug... I just noticed that there is something strange when trying to import pages from one Bootstrap project into another and you can see this in develop as well as 3.10.4+ e.g. on our xot.xerte install e.g. I was trying to import pages from a project that exists in a folder but when I select import pages I don't see that project. If I make a copy or move it out of the folder into the workspace then it shows when trying to import pages. In fact on my local develop I don't see any folders in the list when trying to import but on 3.10.4x I see folders and some projects but not all projects in a folder. Again you can see that on xot.xerte

@ronm123 Yes, It's a known issue. I broek this when merging part of the folder sharing functionality intto develop. I am working on a fix. The issue is that content in subfolders is not shown.

I've tested and folders now show in workspace and when importing projects in the editor. The one outstanding issue here is that if you select a folder in the workspace and click duplicate, the folder and all its contents should be duplicated (as mentioned in issue https://github.com/thexerteproject/xerteonlinetoolkits/issues/1093)

As stated in de commit comment:
This never worked properly before.

If the temlates were a mix of Nottingham and site, the current code would
not have worked.
If One of the templates did not have valid access permissions, none of the
templates would have been copied
Subfolders were not copied
develop


Don't require cljs-ajax' API wholesale

About this PR
This PR changes the day8.re-frame.http-fx ns definition to only require the namespaces within cljs-ajax that are essential to the fx, rather than the whole API. It doesn't impact functionality in any way.
Why?
Short answer: to avoid pulling in cognitect.transit.
Longer answer: cljs-ajax's formats include transit-request-format and transit-response-format, to facilitate efficient sending of Clojure/Script data structures over the wire. That's all well and good, but consumers of re-frame-http-fx may not need it.
Now, Closure Compiler is normally quite efficient in optimizing it away if it's not needed. However, a complication might arise when some other part of the code does need it, and ClojureScript's code splitting facility is in use.
Consider this scenario:

Module A uses re-frame-http-fx, but never uses the transit-*-formats
Module B depends on A, and uses transit for something else altogether

Without this PR, transit will be compiled into A even though it's never used when B is not loaded. With it, the compiler is able to lift transit out of A and into B.
This is exactly what we do at WorksHub. In our case, enabling this change causes our main JS code (advanced optimizations, uncompressed) to weigh 25 KiB less.

Thanks for this, rationale makes sense. Do we need the ajax.xhrio require though?

Would be great to merge this!

The advantage is pretty minimal, but measurable and there are conceivable benefits based on the scenario described by the OP.
As measured in my build report after resolving merge conflicts, master on left and this PR on right:

From this we can confirm that transit is optimised out with the change, and it drops a few KB.

Conflicts resolved on local machine and pushed to master.
Thanks @nathell 👍 😃

Conflicts resolved on local machine and pushed to master.
Thanks @nathell 👍 😃


drilldown issue: TypeError: g.doDrilldown is not a function

Ever since updating to 8.0.2 from 7.x, I get this error when doing drilldowns: TypeError: g.doDrilldown is not a function
This is the code in the module that imports everything:
import React, {Component, PropTypes} from 'react'
import Highcharts from 'highcharts'
import ReactHighcharts from 'react-highcharts'
import HighchartsData from 'highcharts-data'
import HighchartsDrilldown from 'highcharts-drilldown'

HighchartsData(ReactHighcharts.Highcharts)
HighchartsDrilldown(ReactHighcharts.Highcharts)

Try doing the same without react-highcharts, and let me know if that works

@kirjs it seems like it only happens when two different modules use drilldown.
So like say i have a 2 components. One that makes a column chart and one that makes a pie chart. if both of them run the code above, it gives the error. If only one loads the drilldown stuff it runs fine. Am I supposed to be doing the import of Highcharts and the HighchartsData/HighchartsDrilldown at a higher level so that it only happens once?

That could be the reason.
There probably should be a way to register drilldown for a particular Highcharts instance

var HighchartsMore = require('highcharts-more');
HighchartsMore(ReactHighcharts.Highcharts);

This is how more does it, see if you can do the same for the drilldown

@kirjs doing it that was, it still gives the error when there is more than one chart that wants drilldowns. So I went into the App component, loaded the drilldown and data modules and ran them once and it seems to work.
Can you think of the reason this would happen? It seems like I would want to be able to choose per module?

Also confusing because it seems like you don't need to import highcarts even though the readme/examples says you have to

Requiring highcharts directly is not needed anymore, I revomed it from the readme, please let me know where it is in examples so that I could remove it as well.

@kirjs maybe its just me, but this is confusing: https://github.com/kirjs/react-highcharts/blob/master/demo/src/more.jsx#L2
Saying Note that Highcharts has to be required separately means to me that I need to include it or import it or something. I believe this comment appears in almost all of the examples/demos.

Thanks, I changed the wording

This helped me:
HighchartsDrilldown(ReactHighcharts**.Highcharts**);

I am using highcharts and meteor. There are two different charts on different pages where using highcharts drilldown module. Had to remove importing drill-down from the second module and the error was gone.
So I had to import highcharts in both the places but import drilldown module only once.


Text generation fails on --devices 2

Hi, I am trying to generate text predictions using falcon-7b-instruct on machine with two A10-24GB gpu, when I run generate with default --devices option which is 1, it runs successfully while it fails with --device 2
python generate/base.py --prompt "Hello, my name is" --checkpoint_dir checkpoints/tiiuae/falcon-7b-instruct

default --devices
Loading model 'checkpoints/tiiuae/falcon-7b-instruct/lit_model.pth' with {'block_size': 2048, 'vocab_size': 50254, 'padding_multiple': 512, 'padded_vocab_size': 65024, 'n_layer': 32, 'n_head': 71, 'n_embd': 4544, 'rotary_percentage': 1.0, 'parallel_residual': True, 'bias': False, 'n_query_groups': 1, 'shared_attention_norm': True}
Time to instantiate model: 0.15 seconds.
Time to load the model weights: 15.32 seconds.
Global seed set to 1234
Hello, my name is Jack.
Some people think that having a blog is a great way to make money online and others insist that it is not. In my own view, I do agree with the latter one.
But in the end, it will have to depend
Time for inference 1: 2.13 sec total, 23.47 tokens/sec
Memory used: 14.56 GB

python generate/base.py --prompt "Hello, my name is" --checkpoint_dir checkpoints/tiiuae/falcon-7b-instruct --devices 2

--devices 2
Initializing distributed: GLOBAL_RANK: 0, MEMBER: 1/2
Initializing distributed: GLOBAL_RANK: 1, MEMBER: 2/2
----------------------------------------------------------------------------------------------------
distributed_backend=nccl
All distributed processes registered. Starting with 2 processes
----------------------------------------------------------------------------------------------------

Loading model 'checkpoints/tiiuae/falcon-7b-instruct/lit_model.pth' with {'block_size': 2048, 'vocab_size': 50254, 'padding_multiple': 512, 'padded_vocab_size': 65024, 'n_layer': 32, 'n_head': 71, 'n_embd': 4544, 'rotary_percentage': 1.0, 'parallel_residual': True, 'bias': False, 'n_query_groups': 1, 'shared_attention_norm': True}
Time to instantiate model: 1.33 seconds.
Time to load the model weights: 16.37 seconds.
Traceback (most recent call last):
  File "/home/ubuntu/llm-repos/lit-parrot/generate/base.py", line 204, in <module>
    CLI(main)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/jsonargparse/cli.py", line 85, in CLI
    return _run_component(component, cfg_init)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/jsonargparse/cli.py", line 147, in _run_component
    return component(**cfg)
  File "/home/ubuntu/llm-repos/lit-parrot/generate/base.py", line 156, in main
    model = fabric.setup_module(model)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/lightning/fabric/fabric.py", line 265, in setup_module
    module = self._strategy.setup_module(module)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/lightning/fabric/strategies/ddp.py", line 121, in setup_module
    return DistributedDataParallel(module=module, device_ids=device_ids, **self._ddp_kwargs)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 805, in __init__
    self._ddp_init_helper(
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 1095, in _ddp_init_helper
Traceback (most recent call last):
  File "/home/ubuntu/llm-repos/lit-parrot/generate/base.py", line 204, in <module>
    CLI(main)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/jsonargparse/cli.py", line 85, in CLI
    self.reducer = dist.Reducer(
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 13.44 GiB. GPU 1 has a total capacty of 22.05 GiB of which 7.74 GiB is free. Including non-PyTorch memory, this process has 14.31 GiB memory in use. Of the allocated memory 13.49 GiB is allocated by PyTorch, and 49.67 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
    return _run_component(component, cfg_init)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/jsonargparse/cli.py", line 147, in _run_component
    return component(**cfg)
  File "/home/ubuntu/llm-repos/lit-parrot/generate/base.py", line 156, in main
    model = fabric.setup_module(model)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/lightning/fabric/fabric.py", line 265, in setup_module
    module = self._strategy.setup_module(module)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/lightning/fabric/strategies/ddp.py", line 121, in setup_module
    return DistributedDataParallel(module=module, device_ids=device_ids, **self._ddp_kwargs)
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 805, in __init__
    self._ddp_init_helper(
  File "/home/ubuntu/miniconda3/envs/litpar/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 1095, in _ddp_init_helper
    self.reducer = dist.Reducer(
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 13.44 GiB. GPU 0 has a total capacty of 22.05 GiB of which 7.74 GiB is free. Including non-PyTorch memory, this process has 14.31 GiB memory in use. Of the allocated memory 13.49 GiB is allocated by PyTorch, and 49.67 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Thanks for reporting this! I can repro and see that devices=2 requires 39.80 GB.
I'll investigate :microscope:

Thanks @carmocca, with --strategy fsdp it is able to use both the gpus & run successfully. I notice significant degradation in the tokens/sec for the multi gpu (2 in this case) Time for inference 1: 31.87 sec total, 1.57 tokens/sec Memory used: 12.45 GB which is slower compared to a single device run Time for inference 1: 2.15 sec total, 23.30 tokens/sec Memory used: 14.56 GB.

Yes, the speed degradation is expected as you are trading it off for lower memory requirements


Update README.md

small grammar and capitalization fix

Thanks :-)

You are welcome and thank you :smile:


[Twinkle-0003] Migrate Swing App from JDBC to Hibernate

A/C

[ ] Read getting started guide;
[ ] Prepare small Proof of Concept with hibernate plus PostgreSQL;
[ ] Start reading book about Hibernate;
[ ] Create some DTO (Data Transfer Object);
[ ] Mark these DTO with hibernate annotations;
[ ] Try to received some information from database with hibernate;
[ ] Use new approach with hibernate;
[ ] Remove all code related from JDBC;
[ ] Make it buildable

I have decided to simplify the database schema because I assume that the schema will be updated a lot of times.


docs: create documentations for ibisml and api usage

Can you be more specific about what's needed here? We already have (limited) documentation (mostly API docs) in https://github.com/ibis-project/ibisml/tree/main/docs, rendered here.

Can you be more specific about what's needed here? We already have (limited) documentation (mostly API docs) in https://github.com/ibis-project/ibisml/tree/main/docs, rendered here.

I will update the title, add new steps to the documentation, and include them in the API reference. I am unsure whether these changes are automatically detected or if human involvement is required.


Don't create a baseline file if there are no issues

An attempt to fix #3024
Open points:

Is the Appendable the right way to output things to console? I noticed Detektion also has an add(notification) API, but its hard to get a reference to Detektion into a ReportingExtension.
Is it ok to tell people to get rid of their existing baselines if no issues are found? Projects might share baseline files (Detekt does!), as multiple modules have no issues, but the baseline they reference is non-empty. Personally I think each (sub)module should have it's own baseline file, to avoid eventual file name / signature clashes, even if these should be very, very rare.
I don't see how baseline updates can actually work in a shared-baseline-file world. The BaselineFacade always overwrites currentIssues with the newly reported ones, so if I understand this correctly a baseline creation / update in some module will always overwrite any previous baseline updates, no?
Lastly, I know, a test is still missing, would have added one if the class would have already be tested, but this one isn't yet :)

An attempt to fix #3024
Open points:

Is the Appendable the right way to output things to console? I noticed Detektion also has an add(notification) API, but its hard to get a reference to Detektion into a ReportingExtension.
Yep ^^
Is it ok to tell people to get rid of their existing baselines if no issues are found? Projects might share baseline files (Detekt does!), as multiple modules have no issues, but the baseline they reference is non-empty. Personally I think each (sub)module should have it's own baseline file, to avoid eventual file name / signature clashes, even if these should be very, very rare.

You are right, lets not report this case.
Agree on a baseline file per module with #1589 to get a merged top level version.
In our repo we use the workaround to have one task detektProjectBaseline to create a baseline for the whole project and each module uses it read-only.

I don't see how baseline updates can actually work in a shared-baseline-file world. The BaselineFacade always overwrites currentIssues with the newly reported ones, so if I understand this correctly a baseline creation / update in some module will always overwrite any previous baseline updates, no?
You are right - #1589.

Lastly, I know, a test is still missing, would have added one if the class would have already be tested, but this one isn't yet :)
You can take a look at

https://github.com/detekt/detekt/blob/c45791768df8fbae19be04f2b0fe69e9f83b7aa7/detekt-rules-documentation/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/documentation/AbsentOrWrongFileLicenseSpec.kt#L63-L72
on how to stub the SetupContext and use a StringBuilder to assert the new output.

I think that we could merge this as soon as #3429 is merged.

I think that we could merge this as soon as #3429 is merged.

This was merged in #3450

Thanks for taking care!


NullReferenceException in ImageProcessor.Web.Helpers.ExtendedColorTypeConverter

I can't reproduce this locally :rage:  but keeps happening on an azure website instance.
Not 100% sure the issue is at your end, but you probably know more about the type converters and can shine some light on it.
ImageProcessor.Web.Helpers.ExtendedColorTypeConverter in ConvertFrom at line 66:0
The line number doesn't seem to be accurate.
When creating a spreadsheet using ClosedXml, the InitializeTheme method makes some calls to XLColor.FromHtml
It is using 8 character hex codes :anguished: Examples:
    Text1 = XLColor.FromHtml("#FF000000"),
    Background1 = XLColor.FromHtml("#FFFFFFFF"),
    Text2 = XLColor.FromHtml("#FF1F497D"),
    Background2 = XLColor.FromHtml("#FFEEECE1")

It looks like XLColor.FromHtml(string htmlColor) is calling ColorTranslator.FromHtml(htmlColor) which is finding your type converter and calling that.
Stacktrace:
    Module "Usercontrols.FormDataViewerPages.List", line 6, in DataTableToExcelByteArray
        Byte[] DataTableToExcelByteArray(System.Data.DataTable, System.String)
    Module "ClosedXML.Excel.XLWorkbook", line 245, in .ctor
        Void .ctor(ClosedXML.Excel.XLEventTracking)
    Module "ClosedXML.Excel.XLWorkbook", line 0, in InitializeTheme
        Void InitializeTheme()
    Module "System.Drawing.ColorTranslator", line 297, in FromHtml
        System.Drawing.Color FromHtml(System.String)
    Module "ImageProcessor.Web.Helpers.ExtendedColorTypeConverter", line 66, in ConvertFrom
        System.Object ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)

A quick local test with ColorConverter seems to return a valid color from the 8 character codes.

Packages
Versions

DocumentFormat.OpenXml
2.5.5631.0

ClosedXml
<IP_ADDRESS>

ImageProcessor
<IP_ADDRESS>

ImageProcessor.Web
<IP_ADDRESS>

Hmmm... This is interesting. They must be using the TypeDescriptor to look for converters.
Ignoring the line number as I think you're right and it is probably wrong, I wonder whether the issue is caused by a lack of culture getting passed through? That's the only place I could imagine a null reference exception occurring.
https://github.com/JimBobSquarePants/ImageProcessor/blob/d4171429ce470e890f76b0f2000120bf779791f2/src/ImageProcessor.Web/Helpers/QuerystringParser/ExtendedColorTypeConverter.cs#L77
I'll see if I can knock up some time to put a test for this. If you can in the interim it would be very much appreciated.

I've added a test to call the ExtendedColorTypeConverter directly, these are all failing with the null reference exception at the moment.
https://github.com/AndyA13/ImageProcessor/blob/fix/8-digit-hex-color-codes/src/ImageProcessor.Web.UnitTests/ExtendedColorTypeConverterTests.cs
Should the setting of culture to a default maybe be handled by the converter itself? As it might not always be called from QueryParamParser.
https://github.com/JimBobSquarePants/ImageProcessor/blob/V2/src/ImageProcessor.Web/Helpers/QuerystringParser/QueryParamParser.cs#L101
It'll probably be tomorrow before I can take another look at this.

Yeah, you're correct, they should be able to be used independently. I overlooked someone else calling them directly. If you can have a look tomorrow that would be great. I'm swamped.

This regex matches 8 character hex codes, but the following code assumes that if it's not a 6 character code then it must be 3 characters.
So at the moment this test case is failing as it is returning yellow. #ff0000ff is just taking the first 3 chars so it gets #ff0
So do you want to handle that case or should it just be passed to the base ColorConverter. Not sure if ColorTranslator comes into it, but this works fine in Linqpad.
System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#ff0000ff");
c.Dump();

Looking at the source for ColorTranslator it looks like it passes off the translation of 8 digit hex codes to another converter. I guess that must be happening in Linqpad somehow.
What I shall most likely do is steal a bit of code from ColorConverter.ConvertFromString() to deal with 8 digit codes.


Improve on "Add Windows to the mix"

Closes #51. Also closes #50.

support more OTP+Windows versions; try to bridge the gap with gleam-lang/setup-erlang, that seems to support pre-21 versions
merge ci.yml with test.yml (and tweak output text) - tweaking the titles is not particularly helpful (GitHub still adds the matrix variables to it, so it makes for a less readable output)
add Elixir to Windows builds

Moving away from draft.

Let me add some self-review comments, for clarity. FWIW, this pull request closes two outstanding issues: #50 and #51, but created recently.

I split the CI files into three different files. Rationale: easier to see where an error comes from, easier to have more inspectable job names.

@starbelly, I'm going to ask for your review here. There's nothing special in the pull request but some extra eyes are always nice. You could probably also run this over that project you have with multiple rebar3 versions and whatnot, even using Windows, maybe (?)

Tests are failing because 22.3 is getting converted to 22.3.0 (ranges, again!) which doesn't exist; we might want to tackle this with #52 soon (potentially even merge that into this pull request).

I believe there might be some more getVersionFromSpec -related changes on the way. It's working, sure, but that's because the input is dynamic. As-is, this is a time-bomb. Let me think on it further.

Added "Also closes #53. Also closes #46." as a consequence of testing Windows version ranges.

I'm pushing an update to the way we find non-semver stuff in the versions we have. I've recently introduced the strict-version option which allows for a more repeatable use (the version is picked as-is - or otherwise errors out if it's not found).

This is ready for general review.

Stellar work as usual @paulo-ferraz-oliveira  ❤💛💚💙💜

I'm going to test this in some repo.s that use Windows and then, based on those results, will either merge or perform smaller fixes.

This is working here:

https://github.com/paulo-ferraz-oliveira/relx/runs/3018108059

22 became 22.3
23 became <IP_ADDRESS>

https://github.com/paulo-ferraz-oliveira/lager/runs/3018214786

23.2 became 23.2.7
24 became 24.0.3

https://github.com/paulo-ferraz-oliveira/rebar3_format/actions/runs/1011384268 (tests fail but that's a whole other issue)

21 became 21.3
22 became 22.3
23 became <IP_ADDRESS>
24 became 24.0.3

@starbelly, based on the previous message and your approval, could you unblock the merge so I can squash + merge?

I'm going to try to close and reopen this to see if the workflow issue goes away.

It's merged. Thanks for all the help, Bryan.


Package is breaking Pod file

I am attempting to install this package into my react native app (non-expo). After installing and attempting to install pods, I get this strange error:
fkv@fkvs-MBP react % npm install react-native-video-trim

added 1 package, and audited 1786 packages in 2s

134 packages are looking for funding
  run `npm fund` for details

13 vulnerabilities (12 moderate, 1 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
fkv@fkvs-MBP react % npx pod-install ios
Scanning for pods...
1.11.3
> pod install

[!] Invalid `Podfile` file: unexpected token at 'info Run CLI with --verbose flag for more details.
'.

 #  from /Users/fkv/Documents/Recap/react/ios/Podfile:9
 #  -------------------------------------------
 #  target 'Recap' do
 >    config = use_native_modules!
 #    use_frameworks! :linkage => :static
 #  -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
> pod install --repo-update

[!] Invalid `Podfile` file: unexpected token at 'info Run CLI with --verbose flag for more details.
'.

 #  from /Users/fkv/Documents/Recap/react/ios/Podfile:9
 #  -------------------------------------------
 #  target 'Recap' do
 >    config = use_native_modules!
 #    use_frameworks! :linkage => :static
 #  -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: unexpected token at 'info Run CLI with --verbose flag for more details.
'.

 #  from /Users/fkv/Documents/Recap/react/ios/Podfile:9
 #  -------------------------------------------
 #  target 'Recap' do
 >    config = use_native_modules!
 #    use_frameworks! :linkage => :static
 #  -------------------------------------------

However, once I remove this package, all works completely fine. Any idea what the issue can be here?

what is version of react native that you're using?

what is version of react native that you're using?

Hey, @maitrungduc1410  why we can't use expo for video trim using this library?

what is version of react native that you're using?

Hey, @maitrungduc1410  why we can't use expo for video trim using this library?

because in expo it requires to expose APIs using different format, I'll work on this to support expo


Seperate student name column into fore- and surname

Currently we can only sort by forename in the submissions view, by seperating the column we could choose how we want to sort.

Fixed by #583


Add the Excel-DNA project to list

Can you include your GitHub URL as the primary URL? Feel free to also include the other one.

Thanks @govert. Appreciated.


Have a session parameter in the pResponse? The code snippet below will throw a 403 error if you don't submit a session.

import requests
url2 = "http://t6.tianditu.com/DataServer?T=img_w&x=3&y=1&l=2&tk=05093c0e36be0186ad13f6932e7a2be7"
cookies = {
"HWWAFSESID": "46b47823c75d40bfa6",
"HWWAFSESTIME": "1688638937327"
}
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
response = requests.get(url2, headers=headers, cookies=cookies)
print(response.status_code)
if response.status_code == 200:
with open("ewewewewewewee.jpg", 'wb') as file:
file.write(response.content)
print("图片下载成功！")
else:
print("下载失败，错误代码:", response.status_code)

cesium-native already allows HTTP headers to be specified. Cookies are just a particular HTTP header.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies


Apple Mach-O Linker (id) Error

I get the Macho-O error when I try to archive the app, everything else works fine though, no matter what I try I couldn't resolve that, Kindly help, additionally I get this warning which I believe the cause for the error.
Thanks,
ld: warning: ignoring file /Users/dev/Documents/test/ATSketchKit.framework/ATSketchKit, file was built for arm64 which is not the architecture being linked (armv7): /Users/dev/Documents/test/ATSketchKit.framework/ATSketchKit

Try linking the whole project so that it gets built with your app on the same architecture.

ah thanks for your quick reply, yes, now I did importing my files into your demo and it worked just fine,

ah thanks for your quick reply, yes, now I did importing my files into your demo and it worked just fine,


HTML ReferenceFilter Based On Anchor Attributes

Can the crawler of html documents filter references by attributes of the anchor  tag? Instead of the typical regex ReferenceFilter that basically works off of the href attribute, I'd like to filter by the class attribute value (or even ID) of that tag based on a regex. Any ideas?

Instead of filtering them out, one solution could be to avoid extracting them in the first place. Have a look at HtmlLinkExtractor and DOMLinkExtractor. They both offer ways to define CSS-style selectors to have more control on what gets extracted.
Taking DOMLinkExtractor for example, it could look like the following (not tested).  Assuming this tag:
click here

 <linkExtractors>
    <extractor class="DOMLinkExtractor">
        <linkSelector extract="attr(href)">a:not(id='exclude_me')</linkSelector>
    </extractor>
  </linkExtractors>

Remove the not: if you want only those that match. You should look at other configuration options for these link extractors.  Adapt to your needs.

Thank you for the suggestion. I appreciate it.  I will definitely look at that if I can get past another issue.


Add indicators dependency for C++ version of MonitorStage

Description

Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.

/ok to test


Revert "Revert "Test credentials provider update""

Reverts grpc/grpc#8901

@nicolasnoble This touches build.yaml. Does it need to be held?
@rjshade FYI

@nicolasnoble @yang-g ping - what's the status of this?

Replaced by #9317. I will try to remember what I did there and add manual fixes.


SparkAnalyticsCheck is failing on Daint

Check here for more information.

After the fix in the shifter configuration, the test passes:
[----------] waiting for spawned checks to finish
[       OK ] SparkAnalyticsCheck on daint:gpu using PrgEnv-cray
[       OK ] SparkAnalyticsCheck on daint:mc using PrgEnv-cray
[----------] all spawned checks have finished

[  PASSED  ] Ran 2 test case(s) from 1 check(s) (0 failure(s))
[==========] Finished on Tue Oct 30 15:47:56 2018


ditambahkan aturan berkontribusi

Menambahkan Aturan kontibusi di file "CONTRIBUTING.md" dan mecoba sesuatu kontribusi

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


allow game owner to adjust settings dynamically

front end will be admin commands given in the text box

msg-types similar to create game

Changing the blinds.

adding/removing bots

booting players?

set player money?

must only apply at the end of the current hand

if not the end, then the game can just ignore. (front end could yell?)

javascript parse into json for the back end

important: this should only be allowed for private games!

booting players or setting money todo? can see if ever want or need


Styling for "Error" page

Done when

[ ] The "Error" page is fully styled

Related Issues

https://github.com/civiform/civiform/issues/8873
https://github.com/civiform/civiform/issues/8874

Blocked on #8873


Feature: change output directory for server build to "analog" instead of "server"

Which scope/s are relevant/related to the feature request?
platform
Information
When a server build is produced, a few directories are created

dist

.nitro
client (Client build)
server <-- changed to analog

public
server

ssr (SSR build)

Describe any alternatives/workarounds you're currently using
No response
I would be willing to submit a PR to fix this issue

[ ] Yes
[ ] No

@brandonroberts I can work on this one


Could not find Observation.specimen error but specs say otherwise (FI-2312)

Hello. We're testing our FHIR server against the newly released inferno US Core v6.1 and getting an error for observation lab result profile specifically for element Observation.specimen. The FHIR USCv6.1 spec states, "The specimen type can be communicated in the mandatory Observation.code (e.g., Blood Glucose), or the Must Support Observation.specimen element, or through both elements."
Issue:
Inferno test 10.18.07 does not align with USC 6.1 FHIR specifications for Lab Result Observation Profile.
Error message:
"Could not find specimen in the 9 provided Observation resource(s)" specifically for test 10.18.07. We tested on the public inferno server, https://inferno.healthit.gov/suites/g10_certification/d8JwNeABhI7#10

Hello @ivanquan8
I had a discussion with US Core author, Eric Haas, today. Can you create a JIRA ticket for US Core v6.1.0 so that US Core authors and other community members could weigh in the correct interpretation. You can find the link "propose a change" at the bottom of US core profile page:

or you can go to https://jira.hl7.org directly.

Ok @yunwwang . Just did that and the JIRA ticket link is here https://jira.hl7.org/browse/FHIR-43171

This ticket was rejected / "Not Persuasive" by HL7 CGP work group today. Attendees asserted that Server implementation must support Observation.specimen for this profile.
Ticket closed.


Hyperlinks on first page of each paper take an offset

Update Question asked at tex.stackexchange: https://tex.stackexchange.com/q/420090/9075
Update 2: Question deleted (because of 0) votes. I learned that I should use trim which should also solve the issues

We are using pax to keep hyperlinks in the final proceedings. They are working correctly with the exception of the first page of each paper. This is an issue of the pax package.
It happens, because we use an x offset in the viewport.
Minimal example
A viewport with 1cm offset is used.

Reproduce it:
pax-demo.tex
\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage{pax}
\makeatletter
\def\PAX@viewport#1 #2 #3 #4\\{%
  \PAX@defaultbp\PAX@vllx{#1}%
  \PAX@defaultbp\PAX@vlly{#2}%
  \PAX@defaultbp\PAX@vurx{#3}%
  \PAX@defaultbp\PAX@vury{#4}%
  \edef\PAX@page@llx{\the\dimexpr\PAX@page@llx+\PAX@vllx\relax}%
  \edef\PAX@page@lly{\the\dimexpr\PAX@page@lly+\PAX@vlly\relax}%
  \edef\PAX@page@urx{\the\dimexpr\PAX@page@llx+\PAX@vurx\relax}% FIXED
  \edef\PAX@page@ury{\the\dimexpr\PAX@page@lly+\PAX@vury\relax}%
}
\makeatother
\begin{document}
\includegraphics[page=1, viewport=0 1cm 21cm 23.628cm]{pax-include.pdf}
\end{document}

pax-include.tex
\documentclass{scrartcl}
\usepackage{hyperref}
\begin{document}
\section{Section}
\label{sec}
This is Section~\ref{sec}.
\end{document}

demo.bat
pdflatex pax-include
pdflatex pax-include
perl C:\MiKTeX\scripts\pax\pdfannotextractor.pl pax-include
pdflatex pax-demo

Could possibly be solved by switching to lualtex and newpax packge: https://github.com/u-fischer/newpax

Please use trim instead of viewport (adapt the values accordingly). And use crop.

Fixed by https://github.com/gi-ev/LNI-proceedings/pull/13

pax is now fixed, too: https://github.com/bastien-roucaries/latex-pax/issues/1


tsearch should be replaced

tdelete kept returning dangling pointers, and reduce the reliability of our bots.
I propose we replace tsearch with this https://github.com/etherealvisage/avl

This is done as of 90e6cad.

Great. Thanks

On May 6, 2021, at 10:42 AM, Lucas Müller @.***> wrote:

Closed #623.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


api: fix wrong java_package option in a proto file

Signed-off-by: Penn (Dapeng) Zhang<EMAIL_ADDRESS>Description:
The java_package option in api/envoy/config/common/tap/v2alpha/common.proto was wrong and conflicts with the other file api/envoy/service/tap/v2alpha/common.proto.
Risk Level: Low
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

fix_format didn't catch this?

Yes. It was copied from the other file, so it has that option when the file was created. check_format only checks if the option is there. fix_format was not triggered.
We could add a check, which will disallow custom value.


Is this method generalizable?

Hi, thanks for your great work.
As far as I know, NeuS is optimized per scene and is not generalizable. Thus, I wonder if the NeuS used in your work is adapted to a generalizable form. If yes, could you explain the implementation briefly?
It could help me save a considerable amount of time. Looking forward to your reply.

Yes, SelfOcc is generalizable to novel scenes. At the core of the implementation is a feed-forward TPV encoder self-supervised by depth reprojection loss and neural rendering loss.


[TypeScript?] Pass props to used components

Hi,
i searched through the issues but most were just about (not) passing props to html elements. What I'm wondering is if there's a more elegant way to pass some props of a component to a used component inside:
I'm using typescript but I imagine this could also be an issue without it.
const Link: React.FC<{someFlag: boolean; } & MarginProps> = props =>{
    return (
      <Box {...margin}>
        {props.someFlag && Text}
      </Box>
    );
}

My issue is in how to properly get margin out of the props and not passing on someFlag.
Currently I'm using a custom function, but that doesn't seem to be a very nice solution, especially if I want to use other props too.
function extractMarginProps(props: any & MarginProps): MarginProps {
    return {
        m: props.m,
        margin: props.margin,
        mt: props.mt,
        marginTop: props.marginTop,
        mr: props.mr,
        marginRight: props.marginRight,
        mb: props.mb,
        marginBottom: props.marginBottom,
        ml: props.ml,
        marginLeft: props.marginLeft,
        mx: props.mx,
        my: props.my,
    };
}

My solution seemed to work initially, but aparently doesn't even work now (maybe it never did?).
If I only set mr it is aparently overwritten by marginRight undefined and no margin is set.

You could expose some api to allow customization of the internally used component? Would that be an option for you.
https://eng.uber.com/introducing-base-web/

Rebass does something like this where margin props are picked and omitted, you can create a similar utility based on it here https://github.com/rebassjs/rebass/blob/master/packages/forms/src/index.js#L23

That seems to be the best solution so far. Thanks


Fix bad example signature

@reflectronic : Thanks for your contribution! The author(s) have been notified to review your proposed change.


[SDC-9316] - systemd fix

Looks good to me, let me run the change via our internal CI and merge it if it will be sucessful @zlosim .

The patch has been merged, thank you for your contribution @zlosim !


Add is_bash in SshShell to flag the posix system without bash support

Rack manager server doesn't support bash. When try_connect, the stdout_content has "Unknown syntax: cmd" string. So, I add is_bash in SshShell to flag the system like Rack manager server.
When it needs minimal shell type, if not is_bash, the function generate_run_command needs to be overridden. This part change can refer to https://github.com/microsoft/lisa/pull/2908

This works for the Overlake case, can we merge.


Move Windows tests to nightly

Currently, Windows tests will take ~16 minutes to run while the linux tests will take ~12 minutes.  We can save a little bit more time and Github Action compute by moving our Windows CI checks over to the nightlies.

RE discussion with the team today, we decided to leave this alone for now.


Bug in Nested Loop Join (Found by SQLancer-NoREC)

Describe the bug
Run following statements in datafusion-cli to reproduce:
CREATE TABLE t1 (v0 BIGINT);
CREATE TABLE t2 (v0 DOUBLE);
CREATE TABLE t3 (v0 DOUBLE);
INSERT INTO t1 (v0) VALUES (-503661263);
INSERT INTO t2 (v0) VALUES (-1.6635639473878496E308);
INSERT INTO t3 (v0) VALUES (0.05112015193508901);

select t3.v0, t2.v0 from t1,t2,t3 where t3.v0 >= t1.v0;

Error Message:
Execution error: Fail to build join indices in NestedLoopJoinExec, error:Arrow error: Invalid argument error: column types must match schema types, expected Int64 but found Float64 at column index 0

To Reproduce
No response
Expected behavior
No response
Additional context
This issue seem to report similar error message, I'm not sure if they are related https://github.com/apache/datafusion/issues/9254
Found by SQLancer https://github.com/apache/datafusion/issues/11030

I’d like to take it.


Task - otu/character - image matrix

A new task is needed to quickly populate the matrix of OTU x characters

[x] Create a subclass of characters to work with images only (no character states)
[x] generate a matrix table (characters as headers of the columns, taxa as headers for rows)
[x] Each cell of the matrix should have a drag-and-drop box to quickly add an image from a folder.
[x] Image brought to the cell is stored to the database as a depiction for this cell.
[x] Each cell may have multiple characters (variations).
[x] Each image get a radial annotator to add label, citation, etc. Preferably the citation is added automatically if the source is selected as default.

advanced features

[ ] images could be cropped, rotated and mirrored (minimal editing).
[x] images could be moved from one cell to another within a row if it was placed into a cell by mistake.
[ ] images should have. Publick vs. private option, to be able to disable images, but do not remove them from the cell.

@proceps Blocker has a specific meaning- see https://github.com/SpeciesFileGroup/taxonworks_doc/blob/master/CONTRIBUTING.md

Landed in development.  Closing this for more specific issues.


Prevent oidc_token from being written to agent logs

A better solution to prevent accidental token leaks.
Fixes: https://github.com/microsoft/azure-pipelines-terraform/pull/194

What happens next to get this released? @jmyersmsft

What's needed to get this released?
@tkasparek @martinmrazik


JEI Items not hide when we login in server !

If add this code un kubejs !
In solo the items unified is hide but, when i'm login in server that he has the server script, the unified items is not hide

I also noticed such a problem. Someone knows how to fix it?

It's possible that on a live server, the client doesn't have access to the server tags, and so they cannot be hidden from JEI. I'm not exactly sure though.

Use the most recent version of the script and enable the cache. Make sure everyone has the same copy of the cache, client and server. See the readme for more information about the cache.


fix: make stats args global

make args global so
cargo r --bin reth -- db stats --datadir ../goerli works

Codecov Report

Merging #2610 (af18d0e) into main (d9993c4) will decrease coverage by 46.17%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main    #2610       +/-   ##
===========================================
- Coverage   60.09%   13.92%   -46.17%
===========================================
  Files         496      496
  Lines       62571    62582       +11
===========================================
- Hits        37601     8715    -28886
- Misses      24970    53867    +28897

Flag
Coverage Δ

integration-tests
13.92% <0.00%> (-3.99%)
:arrow_down:

unit-tests
?

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

Impacted Files
Coverage Δ

bin/reth/src/db/mod.rs
0.00% <0.00%> (ø)

bin/reth/src/dirs.rs
0.00% <0.00%> (-50.39%)
:arrow_down:

... and 350 files with indirect coverage changes


Update python requirments

As of python 3.11, enum module doesn't have a '_decompose'  attribute. Forcing python 3.10 on install will fix the problems.

#129 is a work in progress from what I saw.
I proposed this as a temporary fix to keep the tool working properly out of the box.

Think this is obsolete now since #129 has been merged.


output for extract by point

need output for extract by point to a csv, not just writing out to the shapefile (because some input will be a geodatabase and can't write to it)

this issue can be closed, extract by point will write to csv


PDF File - Some backgrounds not rendered in PDFJS Demo Viewer

Attach (recommended) or Link to PDF file here:
Test2.pdf
Configuration:

Web browser and its version: Chrome Version 89.0.4389.90 (Official Build) (64-bit) (and Firefox 86.0.1)
Operating system and its version: Windows 10
PDF.js version: ?? Whatever Is Used by the site mozilla.github.io/pdf.js today - I think it is 2.8.240
Is a browser extension: NO

Steps to reproduce the problem:

Open attached file
Goto Page 6 - half the page is white when it should black

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Check whether it is related to the maximagesize property

SVG rendering fail for all pages with
Error: Invalid SVG dimensions
    at unreachable (pdf.min.js:22)
    at assert (pdf.min.js:22)
    at DOMSVGFactory.create (pdf.min.js:22)
    at SVGGraphics._makeTilingPattern (pdf.min.js:22)
    at SVGGraphics._makeColorN_Pattern (pdf.min.js:22)
    at SVGGraphics.setStrokeColorN (pdf.min.js:22)
    at SVGGraphics.executeOpTree (pdf.min.js:22)
    at SVGGraphics.group (pdf.min.js:22)
    at SVGGraphics.executeOpTree (pdf.min.js:22)
    at SVGGraphics.group (pdf.min.js:22)

It does not work with with Firefox 88 but seems to fixed now with master.


doc: Modify ALTER CATALOG PROPERTIES SQL

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Write test cases for budget view

Please add test cases for budget view functionality.

Looks like 0e6d1e45033b08a51970660904028937fb7be491 failed the Build. Some flake8 errors. Try to run a test locally before pushing the code. Thanks!

Sure, looking into it now. Thanks

Fixed in Commit 45411263b0dfdc67764089fc183c7ee6d11b0668

The tests work fine and PR has been approved and merged to main.
0a155cc - Merged with main


PhantomJS has crashed

When running the tool I keep getting the following error when running the tool through a list of urls in the config file, is this something we should be concerned about or maybe it's just my set up and I just need to run it a few times until it behaves?
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/21621846-E11A-4306-BB9D-E4B46C67B9E4.dmp
/Users/greenc05/.gem/ruby/2.0.0/gems/poltergeist-1.6.0/lib/capybara/poltergeist/server.rb:33:in `send': PhantomJS client died while processing {"name":"visit","args":["http://pal.sandbox.dev.bbc.co.uk/news/uk-england-london-32395047"]} (Capybara::Poltergeist::DeadClient)
	from /Users/greenc05/.gem/ruby/2.0.0/gems/poltergeist-1.6.0/lib/capybara/poltergeist/browser.rb:316:in `command'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/poltergeist-1.6.0/lib/capybara/poltergeist/browser.rb:31:in `visit'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/poltergeist-1.6.0/lib/capybara/poltergeist/driver.rb:95:in `visit'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/capybara-2.4.4/lib/capybara/session.rb:227:in `visit'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/linter.rb:8:in `lint'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/runner.rb:34:in `check_standards_for'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/runner.rb:23:in `block in run'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/runner.rb:22:in `each'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/runner.rb:22:in `run'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/lib/bbc/a11y/cli.rb:18:in `call'
	from /Users/greenc05/.gem/ruby/2.0.0/gems/bbc-a11y-0.1.2/bin/a11y:6:in `<top (required)>'
	from /Users/greenc05/.gem/ruby/2.0.0/bin/a11y:23:in `load'
	from /Users/greenc05/.gem/ruby/2.0.0/bin/a11y:23:in `<main>'

Hi @greenc05 -- I'm not seeing that error, but I probably haven't tested against so many URLs as you have. Are you using Windows?
I'd say, if it happens against the same URLs every time, then we should try to reproduce it and work around it. If it happens randomly, perhaps we can't do much about it.
FWIW there is a troubleshooting guide: http://phantomjs.org/crash-reporting.html

@joshski Nope using a Mac, we have lot of urls in News/World Service with 28 websites...
I will add more details to this issue if it keeps happening...

Closing this until we can reproduce consistently.


Implement pipeline to publish TFX CLI automatically

Description of issue
Need to implement pipeline to publish TFX CLI automatically
Description of fix
Implemented YAML-pipeline .azure-pipelines/azure-pipeline.yml which builds and publishes TFX CLI. If publishing failed it will create pipeline-level warning.

/azp where


S3 Backup size indefinitely growing

Background
Kubernetes server version: EKS 1.25.10
Cloudnative-pg version:

The following manifest is deployed:
apiVersion: v1
data:
  password: *****************************************
  username: *****************************************
kind: Secret
metadata:
  name: app-superuser-secret
type: kubernetes.io/basic-auth
---
apiVersion: v1
kind: Secret
metadata:
  name: backup-creds
data:
  ACCESS_KEY_ID: *****************************************
  ACCESS_SECRET_KEY: *****************************************
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: app-prod
spec:
  description: "app Production database"
  imageName: ghcr.io/cloudnative-pg/postgresql:15.2
  instances: 1

  postgresql:
    pg_hba:
      - "host all all all md5"

  superuserSecret:
    name: app-superuser-secret

  storage:
    size: 300Gi

  backup:
    barmanObjectStore:
      destinationPath: "s3://dest-bucket/db_bak/"
      s3Credentials:
        accessKeyId:
          name: backup-creds
          key: ACCESS_KEY_ID
        secretAccessKey:
          name: backup-creds
          key: ACCESS_SECRET_KEY
    retentionPolicy: "30d"

  resources:
    requests:
      memory: "12Gi"
      cpu: "3"
    limits:
      memory: "12Gi"
      cpu: "3"

The disk space used in the container is the following (running df -h inside the container) is barely 28 GB as you see in the following screen:

Issue
The bucket size is inexorably increasing as you can see from this screen (done over 2 months of monitoring):

Even though the retention period is set to 30d the S3 bucket is unexpectedly increasing and has arrived to more than 3TB
Do you have any suggestion to avoid this issue and how to save some space by not losing the ability to restore the database?
Thanks.

Thanks @MichaluxPL, even though the activity is very high, I should see some decreasing pattern in the S3 bucket, no?

I guess that depends :) If You do not still have 30 days worth of backup on S3, that it will still grow. The best way to verify that would be to look at S3 bucket to see what actually is growing and if files older than +/- 30 days are being removed (according to retention policy).

Do you have scheduled backups enabled for this cluster? Or in alternative, are you running on demand backups periodically? I'm asking because the retention policy enforcement is done when backups are deleted, and only at that point WALs associated with backups that have been removed are also removed.
If you do have backups instead, you should check the begin_wal value of your oldest backup, which should also be the oldest WAL file you have in the S3 bucket.

Do you have scheduled backups enabled for this cluster? Or in alternative, are you running on demand backups periodically? I'm asking because the retention policy enforcement is done when backups are deleted, and only at that point WALs associated with backups that have been removed are also removed. If you do have backups instead, you should check the begin_wal value of your oldest backup, which should also be the oldest WAL file you have in the S3 bucket.

I don't have any more than what I specified in the issue's description, also if I look for kubernetes object of type: backups.postgresql.cnpg.io I see an empty list.

Check out number of WALs generated. With 30d retention set and a busy DB, You can have a lot of WALs generated and backed up on S3 storage.

I have WAL older then 30 days as you can see from this screen:

Regardless of if it's busy or not I should not see WAL older than 30 days no?
I'm also keen to empty the bucket (to free all that space) and start backing up from today, but I'm afraid I'll end up in the same situation

It looks like You do not have scheduled backup configured, so what You probably have in S3 store is only WALs.  I'm not sure if retention policy works as expected when there is no actual backup (base backup) stored on S3 (You'll have to read barman docs to check it out).
First configure scheduled backup (i.e. once a day) - that should enable correct retention for WALs as well.

Yeah that's the issue, you are not actually backing up your cluster by just archiving the WAL files. A PostgreSQL physical backup is composed by a Base Backup + the associated WALs. You need to set up scheduled backups, and on the next backup execution the retention policy will be enforced and all the unused WALs in the bucket will be removed. If you don't want to wait for the cron you can trigger a new backup via the cnpg plugin (or create one via the Backup CRD).

@NiccoloFei Now it's much clearer! Thanks 🙏
Tomorrow I'll setup the scheduled backups and trigger a new backup to see if the old WALs get deleted.
I might also contribute, if you think it's worth, to explain better this point in the doc.

Yeah that's the issue, you are not actually backing up your cluster by just archiving the WAL files. A PostgreSQL physical backup is composed by a Base Backup + the associated WALs. You need to set up scheduled backups, and on the next backup execution the retention policy will be enforced and all the unused WALs in the bucket will be removed. If you don't want to wait for the cron you can trigger a new backup via the cnpg plugin (or create one via the Backup CRD).

After creating a scheduled backup and running one on demand I still see older WAL (2nd of June). Do you know why the procedure didn't delete the unused WALs?

Update on the issue: the automatic triggered backup has run but still I can see older WAL with respect to the begin_wal attribute of the backup.info.

From barman 3.7.0 release notes:
•	The barman-cloud-* scripts now correctly use continuation tokens to page through objects in AWS S3-compatible object stores. This fixes a bug where barman-cloud-backup-delete would only delete the oldest 1000 eligible WALs after backup deletion.
Maybe You hit this issue ?

From barman 3.7.0 release notes: • The barman-cloud-* scripts now correctly use continuation tokens to page through objects in AWS S3-compatible object stores. This fixes a bug where barman-cloud-backup-delete would only delete the oldest 1000 eligible WALs after backup deletion. Maybe You hit this issue ?

Might be. How am I able to updae barman, do I need to update the operator?

From barman 3.7.0 release notes: • The barman-cloud-* scripts now correctly use continuation tokens to page through objects in AWS S3-compatible object stores. This fixes a bug where barman-cloud-backup-delete would only delete the oldest 1000 eligible WALs after backup deletion. Maybe You hit this issue ?

Might be. How am I able to updae barman, do I need to update the operator?

Barman binaries are included in postgres images, so I guess You'll have to wait for the updated image versions.

I've just checked - latest 15.3-8 image already contains barman 3.7.0 :)

I've just checked - latest 15.3-8 image already contains barman 3.7.0 :)

Sweet, so I'll try to update the version and let you know if I see any effect. Thank you very much for the support.

With all the comments and update applied I'm still facing an indefinitely growth of the S3 Bucket. I will try to investigate better with Barman. I think this is a critical point for the operator.

I also seem to be facing this issue, but perhaps it's because of scheduled backup objects not being deleted automatically? e.g. I have retentionPolicy set to 14 days and have daily scheduled backups, but I don't believe there is a system in cloudnative-pg to delete scheduled backups automatically, so I've still got more than 14 days of WALs.

@sxd @NiccoloFei  If you can give me some insight about the code base I could also create a PR and try to patch this bug.

I also seem to be facing this issue, but perhaps it's because of scheduled backup objects not being deleted automatically? e.g. I have retentionPolicy set to 14 days and have daily scheduled backups, but I don't believe there is a system in cloudnative-pg to delete scheduled backups automatically, so I've still got more than 14 days of WALs.
Deleting a backup resource doesn't seem to do anything either, it hasn't removed it from S3.
EDIT: Retention policy seems to be working now, it was quietly failing to remove things due to a bad S3 API implementation that is now resolved on my end.

Did you change something to solve the issue?

I also seem to be facing this issue, but perhaps it's because of scheduled backup objects not being deleted automatically? e.g. I have retentionPolicy set to 14 days and have daily scheduled backups, but I don't believe there is a system in cloudnative-pg to delete scheduled backups automatically, so I've still got more than 14 days of WALs.
Deleting a backup resource doesn't seem to do anything either, it hasn't removed it from S3.
EDIT: Retention policy seems to be working now, it was quietly failing to remove things due to a bad S3 API implementation that is now resolved on my end.

Did you change something to solve the issue?

I was using Google Cloud Storage's S3 interoperability which lacked a S3 API endpoint that barman seemed to be using after looking into the logs. I switched to GCS support that is natively in barman/CloudNativePG and it seems to work now.


will it work on Windows 10?

will it work on Windows 10?

There's no reason it shouldn't. The code only uses some basic numpy/scipy commands


Setup logging and plugin log helper

The terraform-plugin-log package exposes a nice context based logging solution. We should do the same to make it easy to configure and shuttle around log messages from plugins to the the client.

Fixed in #13


Processing Images with TensorRT: listDir('/usr/bin/=models/fruit/labels.txt') - found no matches

Hi Dusty,
I'm trying to run this part -> "Processing Images with TensorRT" of the repository.
This is my input:
nvidia@nvidia-desktop:~/jetson-inference/python/training/detection/ssd$ detectnet.py --model=models/fruit/ssd-mobilenet.onnx --labels =models/fruit/labels.txt --input-blob=input_0 --output-cvg=scores --output-bbox=boxes "data/images/fruit_*" data/fruit/test/fruit_%i.jpg
And this is the error:
listDir('/usr/bin/=models/fruit/labels.txt') - found no matches
[image] imageLoader -- failed to find '=models/fruit/labels.txt'
Traceback (most recent call last):
  File "/usr/local/bin/detectnet.py", line 54, in <module>
    input = jetson.utils.videoSource(opt.input_URI, argv=sys.argv)
Exception: jetson.utils -- failed to create videoSource device

Maybe i just made a mistake with the path i entered. But i don't know.
Can you help me with that? Or maybe somebody else?
If you need more informatione please let me know.
BR chris
EDIT:
I can run the Live Camera Program without any problem so the labels.txt file should be in the correct directory. Or am i wrong?
I used this command to run the Live Camera Program:
detectnet.py --model=models/fruit/ssd-mobilenet.onnx --labels=models/fruit/labels.txt \
          --input-blob=input_0 --output-cvg=scores --output-bbox=boxes \
            csi://0

Hi @chrisTopp84 , I think the issue in your original command line is that there is a space between --labels and =models/fruit/labels.txt:    --labels =models/fruit/labels.txt
Remove that space and I think it should run then:
detectnet.py --model=models/fruit/ssd-mobilenet.onnx --labels=models/fruit/labels.txt --input-blob=input_0 --output-cvg=scores --output-bbox=boxes "data/images/fruit_*" data/fruit/test/fruit_%i.jpg

Thanks a lot! It is running now :)


PageView shouldn't crash in zero-size container

Previously, we were dividing by zero.
Fixes #8281

@Hixie @HansMuller @chinmaygarde


Transcation reverted.

I am getting this error on every attempt : error while simulating
FrontrunTx and BackrunTx contains error : reverted,  and value : null.
How can I resolve this?

skill issue


Not Correctly Linting Blobs

Given this basic gulp setup:
gulp.src('src/css/scss/**/*.scss')
	.pipe(stylelint({
		failAfterError: true,
		reportOutputDir: "reports/",
		reporters: [
			{ formatter: 'verbose', console: true},
			{ formatter: 'json', save: 'report.json'}
		],
		debug: true
	}));

and this folder structure:
src
├── css
│   └── scss
│       ├── base
│       │   ├── bourbon
│       │   └── libs
│       ├── legacy
│       ├── modules
│       │   └── pages
│       ├── style-guide
│       └── styles.scss
└── js

and ever folder within src/css/scss has at least one _file.scss within it, gulp-stylelint does not go more than one level deep to find files to lint. So, in this case it only lints styles.scss rather than allt he files within the scss/ directory.

I should also note that the CLI consumes the same blob correctly and outputs linting results for all the files within the director.

I'm unable to reproduce.

I can offer a screen recording if that is helpful

Can you create a small reproducible example? You can fork this one: https://github.com/olegskl/gulp-stylelint-test

@olegskl Here ya go: https://github.com/chryton/stylelint-test

Okay, I see. What you need to do is return the gulp.src stream in your task function. The gulp-stylelint library collects and lints all files that pass through the stream until the stream is closed. This is how it knows that there are no more files to process. If you never return the stream, it will never close.
Also, because the linting is asynchronous, you need to gutil.log() when the 'end' event is called.
So you should try something like this:
gulp.task('css:postsass', function () {
  gutil.log(gutil.colors.blue('--> LINTING SCSS'));
  return gulp.src('src/css/scss/**/*.scss')
    .pipe(gulpStylelint({...}))
    .on('end', function () {
      gutil.log('--> THE PAIN OF LINTING IS COMPLETE');
    });
});

Ah, interesting. Some of the other hinting/linting plugins don't require returning the stream so I assumed it wasn't required here. Thanks for the help!


[question] Section feature is not available on latest npm

Hello,
Not sure if the section feature is a work in progress?
Checking the docs, it explains the section feature, but 2.1.0, which is latest from npm, does not have this feature yet.
Could you tell us the status?

There are quite a lot of changes since 2.1.0:
https://github.com/sapegin/react-styleguidist/compare/2.1.0...master
But I’d like to wait for #124 before a new release.


Sync API changes from 1.25 -> 1.24

commit 79e1d3877a1b1697028399b8ce39c4ee27b60a96
updated the v1.25 API with changes in SwarmKit,
but these changes should apply to v1.24.
This updates the 1.24 API with the same changes.
for references, see https://github.com/docker/docker/pull/23737
/cc @cpuguy83 PTAL

LGTM 🐮


Help using torchsynth for training

I would like to use a synthesizer as a network layer, such that parameters come from a network layer before this and we use the audio obtained for other postprocessing.

Hi @VenkatSBitra -- are you hoping to pass gradients through the synthesizer and train the network layer based on some audio loss? Unfortunately this is not easily supported with torchsynth as all the parameters are internal to the synth modules. There was a discussion about this a little while ago you might be interested to check out: https://github.com/torchsynth/torchsynth/discussions/457
If you use torchsynth as a dataset generator and train your network using parameter loss then it shouldn't be too difficult to pass parameters from your network layer into torchsynth post-training.


Custom keyboard layout

Hi,
First of all thank you for this awesome piece of software! Having all the possible keyboard layouts is great too.
However, I've remapped some of my keyboard keys to some other functions thanks to xmodmap, so showmethekey doesn't get the actual input.
Would it be possible to give this layout to the software? I'm not sure about the way it works, but that would be just fantastic.
Have a great day!

Currently it is not able to do this, but I suggest to remap keys using udev (https://wiki.archlinux.org/title/Map_scancodes_to_keycodes#Using_udev) instead of X-related tools, this works not only under Xorg, but also Wayland and tty and others, it's in a deeper level.

Wow thanks for the fast reply! Would this make showmethekey show the actual input?

Wow thanks for the fast reply! Would this make showmethekey show the actual input?

Yes

Thanks, have a good day!


Only transaction entries are relevant

Use filter_txns to only read transaction entries and ignore all the other entries (e.g. balance, custom, open, close).

Will look at the unit test, I think predict_payees should be fine as it's not modifying training_data except the loading and the loading has logic that it only loads from string/file the first time and afterwards just returns the result.

yes, right. thank you for adding the test case!


[ASK] How To Change Url

Laravel Version: 5.5
Voyager Version: 1.0
PHP Version: 7
Database Driver & Version: php my admin 4.7.0

Description:
I wanna change the url oh my blog post from localhost:8000/blog/1
to localhost:8000/blog/slug-name e.g localhost:8000/blog/the-control-group
Can somebody teach me please :)
Steps To Reproduce:

You could accomplish this by adding the following method to your model and change slug to whatever column you wish to use in your URL
public function getRouteKeyName()
{
    return 'slug';
}

You can checkout the Laravel documentation for more details and options https://laravel.com/docs/5.5/routing#route-model-binding


Please remove STD-CI

This library no longer uses STD-CI as code generation is switched to GitHub Actions, please remove it from this repository.

@janosdebugs  can you please provide more details on that ?


fix https://github.com/LeaVerou/contrast-ratio/issues/10

On Safari:

https://www.browserstack.com/screenshots/ff6d1ccc2c5463ba43c498b5c191d8d4f796320e
(can check yourself at https://chrisjshull.github.io/contrast-ratio/)

Thanks, this seems ok!


docs: adding contributing guidelines info

Adding contributing guidelines to what will now be the canonical contributions info page on the website, per Issue #82.

@LauraLangdon may I nitpick and ask that we make the main category url contribute (instead of contributing-guide) so that we can use it as an umbrella category of future content?
LGTM otherwise!

@LauraLangdon may I nitpick and ask that we make the main category url contribute (instead of contributing-guide) so that we can use it as an umbrella category of future content? I would also make that page direct to this new document by default, so that would make:

from: docs.suborbital.dev/contributing-guide/contributing-to-suborbital
to: docs.suborbital.dev/contribute

LGTM otherwise!

Sure, I didn't change the category url, just kept was already there, but that makes sense. :)


'Barcode is not available' error

At first, I used angular-barcode module as 1.2.5 version.
Today, I update as 1.4.2 version, I can see below error sentence in console

Module 'barcode' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

So. I down-graded it as 1.2.5. That version is working well.
I use this module by using below step.
npm install --save angular-barcode
angular.module('MyExampleApp', ['barcode']);

Please check about it.
If you want to know other informs. Please comments.
Thanks.

Hey,
I'm sorry, I made a mistake when publishing the latest version, it should have been a major version since it includes a breaking change.
The new version 2.0.0.
Please check out the readme and the example/index.html file, there have been some changes. I renamed the package to angular-barcode to be more consistent with the different names.
So you can use this module like this:
angular.module('MyExampleApp', ['angular-barcode']);

I also added a demo at: https://isonet.github.io/angular-barcode/

@isonet
Thank you for your help.
I can use this 1.4.2 version by using 'angular-barcode' instead of 'barcode'.

No problem!


Connected flag for sampling

Have a flag to return samples, that are as connected as possible, i.e. less lonely unconnected entites in the graph.

Might as well use this: https://github.com/benedekrozemberczki/littleballoffur


Swappable models

Arctic introduces 2 models:
Role - a list of roles with name and is_enabled fields
UserRole - the connection between a User and a Role
These models should be swappable, which means someone using arctic should be able to replace these models with their own if needed.

fixed


Missing dependencies?

Am i missing some dependencies or?
I am getting this error
Uncaught Error: A dynamic link library (DLL) initialization routine failed.
\\?\C:\Electron\font-manager-knockout\node_modules\font-manager\build\Release\fontmanager.node

http://i66.tinypic.com/209t0lg.png
Thanks!

Hmm, not sure. What Windows version are you on?

I'm on Windows 10 pro 64bit

@AlexanderYW : What are you using for the compiling? Are you using node-gyp? If so, are you adding the headers?

I dont think i am, will you provide a small guide with the details on the project
Sorry for the trouble im new at this!

I've never used Electron before, but I use NW (formerly Node Webkit). Because it is not regular Node, I needed to use nw-gyp rather than node-gyp which is what most people using Node would use. I was reading about using native Node modules in Electron and I see you have a few options for building native modules. I would suggest you try those three methods and see if one works.
Like NW, Electron uses its own version of V8, so it's important to build it specifically for that. What I do for the application I am using font-manager in is I build each version (32 & 64 bit for Win, OSX, and Linux) separately, outside of the build process of my application. Then I drop in the built packages and have Node check the OS and select the right package at runtime.
My point is, rather than build the native font-manager module as part of your Electron build, you might want to try building it (or them) outside of Electron (with the proper headers or whatever is required) then put the pre-compiled modules into your application.

Thanks i will look into it, I will get back in a week if it worked!

Hey @rBurgett, Not sure what ended up fixing it.... but i think what you wrote made me find the solution
But what i do know was that my config was wrong... i needed this to get it working
set npm_config_disturl=https://atom.io/download/atom-shell
set npm_config_target=0.36.0
set npm_config_arch=x64
set npm_config_runtime=electron

But great help thanks!


[1.18.2] Field projectors don't return block

Field projectors take forever to break and once broken do not drop the field projector item. This is true of any tool and with no tool at all.
Currently have a "dirty" fix for this by adding to the minable/pickaxe tag of Minecraft, but this does not solve the issue entirely as they do not drop the block inherently when broken with no tool like (I'm assuming) they should.
Minecraft version: 1.18.2
Forge version: 40.1.84
Compact Crafting version: 2.0.0
Compact Machines version: 4.5.0

It seems like these should be breakable & give the block back!

this affects all blocks (rescan, match proxies and field projector), is still valid for 1.19.2 and fixed by adding the correct tags to the blocks


Settings sync - Map modifier keys between platforms

I use the built-in Settings Sync with "settingsSync.keybindingsPerPlatform": false to sync between a Mac and a Linux machine.
I get the following key mapping:
# Mac -> Linux
cmd -> super (windows key)
ctrl -> ctrl
alt (option) -> alt

However, I would expect the following mapping:
# Mac -> Linux
cmd -> ctrl
ctrl -> super (windows key)
alt (option) -> alt

I think the majority of users would also prefer the 2nd option. This is the common understanding, because of cmd + C -> ctrl + C is true in most applications.
Would it be possible to do such mapping (search&replace) in keybindings.json before (or after) syncing?

Changing keybindings according to platform while syncing is not feasible. Instead you can use when conditions like isMac to define platform specific keybindings - https://github.com/microsoft/vscode/issues/8962


Stream Stop after 15 seconds

I have some streams that start and stop after 15 seconds , if i reload and restart , play only 15 seconds again.

Solved adjusting stream parameters

Solved adjusting stream parameters

where can i get the settings page ?


ci: Downgrade Docker

Work around incompatibility between old Podman and new Docker.

coverage: 84.527%. remained the same
when pulling fd587165a95bf80429e6560b8358320ecba48f4b on fix-build
into dd91cae573c11053519f1b8096ab90053f252aba on main.


[Unhandled promise rejection: Error: The package 'react-native-document-scanner-plugin' doesn't seem to be linked. Make sure:

[Unhandled promise rejection: Error: The package 'react-native-document-scanner-plugin' doesn't seem to be linked. Make sure: ]
at node_modules\react-native-document-scanner-plugin\src\index.tsx:null in
at node_modules\react-native-document-scanner-plugin\src\index.tsx:null in
at http://19000/node_modules\expo\AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in ?anon_0_
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep
at node_modules@babel\runtime\helpers\asyncToGenerator.js:null in _throw
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in queueReactNativeMicrotask
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer

... 8 more stack frames from framework internals

If you're using an emulator try switching to a physical device.


Fix akumuli data generation

The data generator for akumuli crashes due to assignment to nil map, which can be simply fixed by calling the constructor to the serializer.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Changed the sdk include similar to mocap4ros2_vicon

Changed the sdk include similar to mocap4ros2_vicon
Made it easier to install the sdk using a python script.
Updated the readme accordingly

Thanks, @aarsht7
LGTM. The only comment is in the review

Thanks @aarsht7 !!


Fix the e2e tests in CI

The e2e tests last forever and fail.

locally, the e2e tests pass in 104 seconds

The actions: https://github.com/huggingface/datasets-server/actions/workflows/e2e.yml?query=branch%3Amain
When they work, they take about 17 minutes.

They seem to fail on /hub-cache; we don't need it anymore since we use SSE to update the Hub's cache, so let's remove /hub-cache.

I think the e2e tests are slower since SSE because we now create a replica set on the MongoDB database.

I think the e2e tests are slower since SSE because we now create a replica set on the MongoDB database.

we could prepare a docker image where the replica set already exists.


Generate resolved schema from data

Is your feature request related to a problem? Please describe.
This is a nice-to-have idea that I have not seen any other validators do, yet I imagine would be quite useful.
The OpenApi schema is useful for describing an API, but less useful for describing a given instance of data due to the use of 'discriminators'. Discriminators make it impossible to traverse the schema and map it directly to the data.
It would be great to have a way to calculate a resolved schema for a given data object, stripped of all discriminators. Thus you could iterate through the resolved schema to navigate your data without having to re-do and re-invent the discrimination code.
I believe this would be a very useful set of functionality. The particular use I have for it is to make it easier to iterate the data to convert 'strings marked as dates' into actual Java Dates. I also need to identify integers that need to be converted to booleans etc for marshalling from another system.
Describe the solution you'd like
Evaluating 'validate' would also return the resolved schema, with 'anyOf', 'oneOf' etc discriminators stripped from the schema and replaced with the calculated properties. The 'resolved schema' may not be a true OpenApi schema, but something similar.
The net result should allow you to iterate the new 'resolved schema' against the data without having to perform any validation/discrimination yourself.
Describe alternatives you've considered
I am currently using a 'format' custom validator to store 'INFO' validation results. I then iterate these validation results and use the 'crumbs' of the validation messages to determine where in the data the date/date-times exist.
This is perhaps a long-term feature that you may not be interested in supporting immediately. However I do think it is a useful bit of functionality that is above what other projects are offering.

Your request is described very clearly, thanks for that.
Unfortunately, we are far from validation processing here.
This would require assignements (which are seriously avoided when possible) during validation process for obvious overhead regarding performance.
This could be only useful when a discrimator is setup.
If I understand well, your final goal is to know how to deserialize your input content in such case. Does the discriminator propertyName not enough to achieve this?
Here're a sample which should do it nicely:
@JsonTypeInfo(
  use = JsonTypeInfo.Id.NAME,
  include = JsonTypeInfo.As.PROPERTY,
  property="YOUR_DISCRIMINATOR_PROPERTY_NAME",
  visible = true /* important if you need to keep the property */)
@JsonSubTypes({
  @JsonSubTypes.Type(value = Dog.class, name = "Dog"),
  @JsonSubTypes.Type(value = Cat.class, name = "Cat")})
class Animal {
  public String name;
  public Date birthDate;
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy_MM_dd")
  public LocalDate birthDay;
  public String YOUR_DISCRIMINATOR_PROPERTY_NAME; // may be optional
  protected Animal() { }
}

class Dog extends Animal {
  public double bark;
  public Dog() { }
}

class Cat extends Animal {
  public int lives;
  public Cat() { }
}

For booleans, you can use setters or custom deserializer and/or Boolean object (0 and 1 recognized).
All in all, this much more deserialization coding than schema need in my opinion.

Unfortunately I am working with generic objects against generic schemas - they are not known ahead of time. It is essentially a 'proxy' that sits between the raw http requests and the resulting end points. The system marshals requests to the APIs, with the intent to use openapi spec to convert data types as needed.
The proposal wouldn't need to create a full schema or modify it on the fly. It could simply record the outcome of all 'decision points', such that the schema can be iterated in correctly by using this 'decision point' structure.
One workaround could be to support adding a customer validator of "." that is called for every node (or possibly only the 'anyOf', 'oneOf' etc nodes).
I could then exploit this to store INFO validation results using the 'crumbs' + type info then delegate to the next/core validator. These hooks are quite powerful and can be exploited. I could then reconstruct the decision points by iterating the info validation results . Although I won't necessarily need the entire schema of the data - I only need a record of where certain data types and formats are.

Related to #79


Prepare your CTF article

Status

[ ] In progress

Related Issues
fixes: N.A
Description
Adding an article about how to prepare your XSOAR tenant for the XSOAR's Capture The Flag challenge.
Screenshots
N.A.

@ssokolovich Doc review completed.


Update plugin readme key aress

[ ] area shown when searching WP plugins site

closed circa 2.7/2.8


Implement oracle pools v2

Implementation according to EIP-23 - https://github.com/ergoplatform/eips/blob/eip23/eip-0023.md
and tests in https://github.com/scalahub/OraclePool

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 48 (0.0%)  changed or added relevant lines in 7 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.7%) to 3.862%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core/src/api.rs
0
1
0.0%

connectors/connector-lib/src/connector.rs
0
2
0.0%

core/src/main.rs
0
7
0.0%

core/src/state.rs
0
7
0.0%

core/src/oracle_state.rs
0
9
0.0%

core/src/actions.rs
0
11
0.0%

core/src/commands.rs
0
11
0.0%

Files with Coverage Reduction
New Missed Lines
%

connectors/connector-lib/src/connector.rs
1
0%

Totals

Change from base Build<PHONE_NUMBER>:
0.7%

Covered Lines:
29

Relevant Lines:
751

💛  - Coveralls


A question about model.plot() method

When I run examples of code (like from hellokan) method model.plot() didn't plot figures (however parts of it saved inside .figures) but matplotlib running in the same environment produce figures correctly.

When I run examples of code (like from hellokan) method model.plot() didn't plot figures (however parts of it saved inside .figures) but matplotlib running in the same environment produce figures correctly.

I am having the same issue. Only activation function figures are saved as separate images inside the figures folder. I cannot see the whole plot anywhere. How can I plot that?

I have similar problem with matplotlib==3.6.2'.I upgraded to3.8.4` and I have this same. But I using terminal environment. When I use notebook/google collab this same code works correctly and save whole figure.

I could solve the issue by adding plt.show() to the end of plot() method in KAN class. This is why it's only working in notebooks.

I think we should add this method call for more consistent behavior in both local and collab environments.

Yes, this should be definitely added to.