error while run android in(Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.)

hi
i install react native map and when i run-android i get this error

how can i fix this??

I was facing same issue. Just follow this guide.
https://gist.github.com/nazrdogan/87c63e89a2bfd4cefee24990e4e7ed0e

same here. I have the same issue

@nazrdogan I did all the steps but i get error

@ariya94
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Did you add google() ?

Do https://github.com/react-community/react-native-maps/issues/2188#issuecomment-380757839
Make sure your gradle-wrapper.properties has
distributionUrl = https://services.gradle.org/distributions/gradle-4.1-all.zip
and your app/build.gradle has
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'

Okay I got it. The problem is that, the latest react-native-maps is using syntax for Gradle 3.
So we get that error. to fix it, either **Update gradle 3 ** or hack the react-native-maps package inside ./node_modules. Yup, inside ./node_modules and change the build.gradle  and replace:
compileOnly -> provided
implementation -> compile

Yes. Personally I'd prefer if we moved back to Gradle 2. Because most of the other packages are on Gradle 2. I'll have to generate an APK and put it through testing to see if anything is breaking.

Does anybody know how to fix this for the examples that come bundled with react-native-maps?

@nazrdogan
yes add it but still i have an error for google ()

@deorukhkarchaitanya
i done those but get this error

@nazrdogan
@deorukhkarchaitanya
thanks guys
my problem solved
i change the build tools to 26.0.2 and solve
but build tools 26.0.2 can be a problem for other components like (nativebase , ...)

@ariya94  I think its not problem for nativebase, but can be problem other native plugin. I added my app react-native-camera  its makes problem for me and I used this guide.
https://medium.com/@suchydan/how-to-solve-google-play-services-version-collision-in-gradle-dependencies-ef086ae5c75f

I created an empty project to test the official instruction for Android, it didn't work. I tried every solution listed here but they don't work for me.

@stevemu
did add implementation method in app/build.gradle?

Does anybody know step by step add react-native-maps in android?
its working in mu ios app but lot of effort in android  but not successful.

my app working fine with this steps.
https://gist.github.com/nazrdogan/87c63e89a2bfd4cefee24990e4e7ed0e

I may have found a solution. In my test project, the newest version of the map (^0.21) with newest react native (0.55.2) works under iOS. But under Android, I had to use map 0.20.1 with newest react native version. So what I had to do is have the Android side use map 0.20.1, while the iOS can use the newest map version.
To that, I copied the map 0.20.1 to an separate folder. eg /older_modules/react-native-maps_0.20.1, then in settings.gradle, reference this older version:
rootProject.name = 'androidMapTest'

include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../older_modules/react-native-maps_0.20.1/lib/android')

include ':app'

So after researching, trial and error I was able to make my maps work, with updated gradle version 3 and building a signed apk successfully.
So I wrote a tutorial on how to install and use the latest react-native-maps on your project.
Follow the guide/tutorial here: https://medium.com/@lukeses09/install-react-native-maps-with-gradle-3-on-android-44f91a70a395

@moseslucas aren't the installation docs accurate? if so maybe you can participate with a PR ? 🤗

@rborn  the installation doc is accurate but there wasn’t any note to upgrade grade to version 2 in order for react-native-maps to work.
It’s aso worth noting that in the docs, using react-native link is discouraged. But actually we can still use it, then just add just the few remaining configs that wasn’t included in the link instead. That way, tha installion/setup is faster.

I agree we can use link, however it breaks if you wanna use google maps on ios. If anybody can fix this I'm all for it

I agree, since the tutorial I made is only for Android, using react-native link might not be advisable if you're also developing for iOS. I hope react-native update it's out of the box gradle version to 3 in the future.

@raktec I made a step-by-step guide installation of react-native-maps with the fix for gradle 3 here.

@moseslucas I followed your step-by-step guide, but now when I assemble my app to make an apk, the build is successfull but when I install the apk it says : "App Not Installed".
(I don't have this app already installed on my smartphone, and I tried with others smartphones same thing)

You can fix this by navigating to node_modules/react-native-maps/lib/android/build.gradle and changing these lines
compileOnly "com.facebook.react:react-native:+"
implementation "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
implementation "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"
implementation "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"

to
provided "com.facebook.react:react-native:+"
compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
compile "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"
compile "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"

Didn't fix anything :/ Cannot build the app ... Only working in dev mode ...
my build.gradle /app :
dependencies {
    implementation(project(':react-native-onesignal'))
    implementation(project(':react-native-intercom'))
    implementation "io.intercom.android:intercom-sdk:3.+"
    implementation(project(':react-native-linear-gradient'))
    implementation(project(':react-native-i18n'))
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:23.0.1"
    implementation "com.facebook.react:react-native:+"
    implementation(project(':react-native-maps')){
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    implementation 'com.google.android.gms:play-services-base:+'
    implementation 'com.google.android.gms:play-services-maps:+'
}

android {
    lintOptions {
        abortOnError false
    }
    compileSdkVersion 26
    buildToolsVersion "26.0.1"

    defaultConfig {
        applicationId "com.xxx"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
...

I attempted to follow the many links/guides to updating to gradle v4 + android gradle plugin v3 only to find gradle then blows up attempting to pull in my other react-native dependencies which are still targeting the android gradle plugin v3 syntax.

@RyanThomas73 follow @KarimFereidooni suggestion, worked for me!

@RyanThomas73 follow @KarimFereidooni , it works for me too!

Building hack-script:

run $ yarn add replace-in-file --dev
create a file scripts/react-native-maps-hack.js with the content:

const replace = require('replace-in-file')
const file = './node_modules/react-native-maps/lib/android/build.gradle'
const options1 = {
  files: file,
  from: /compileOnly/g,
  to: 'provided'
}

const options2 = {
  files: file,
  from: /implementation/g,
  to: 'compile'
}

replace(options1)
  .then(changedFiles => {
    console.log('modified compileOnly:', changedFiles)
  })
  .catch(error => {
    console.error('Error occurred:', error)
  }).then(
    () => {
      replace(options2)
        .then(changedFiles => {
          console.log('modified implementation:', changedFiles)
        })
        .catch(error => {
          console.error('Error occurred:', error)
        })
    }
  )
console.log('react-native-maps is fixed!')

run $ node scripts/react-native-maps-hack.js at the root of the project.

Optional:
You can add the previous hack to scripts to feel the luxury that node grant.
in package.json in scrpits add:
"react-native-maps-hack": "node scripts/react-native-maps-hack.js",

run $ yarn run react-native-maps-hack to get the code running.

Then you much help me please ?

There are two working solution for this issue
solution 1.
easily update gradle version to 3
solution 2.
change ./node_modules/react-native-maps/lib/android/builg.gradle
compileOnly  --> provided
implementation --> compile

@KarimFereidooni I tried doing this but after trying to build my project I get:
Conflict with dependency 'com.android.support:support-v4' in project ':react-native-maps'. Resolved versions for compilation (26.1.0) and packaging (24.0.0) differ. This can generate runtime errors due to mismatched resources.
:react-native-maps:prepareDebugDependencies FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-maps:prepareDebugDependencies'.
> Dependency Error. See console for details.

You can see the forked react-native-maps repo I'm using here: https://github.com/jamesone/react-native-maps/tree/rm-airgooglemaps - I forked off of @mikemorris PR which adds support for using react-native link so we don't need to use Carthage (note: The fork contains the most recent rn-maps changes).
Sidenote: iOS works flawlessly

@jamesone You could try excluding the com.android.support:support-v4 library from react-native-maps like to default to using the version supplied by what I'm guessing is another package.
compile(project(':react-native-maps')){
      exclude group: 'com.android.support', module: 'support-v4'
})

Alternatively, you could try something like https://github.com/react-native-community/react-native-camera/issues/1532#issuecomment-392081796 to force resolution to a particular version of com.android.support:support-v4 for all packages.

@mikemorris I tried adding:
compile(project(':react-native-maps')){
      exclude group: 'com.android.support', module: 'support-v4'
})

but it didn't work. It threw the exact same error as listed here: https://github.com/react-community/react-native-maps/issues/2188#issuecomment-413134041

Here is my build.gradle:
// Tried this, but it doesn't work same v4- support error
    compile (project(':react-native-maps')) {
        exclude group: 'com.android.support', module: 'support-v4'
    }

    // 1. ALSO TRIED THIS:
    //    compile(project(':react-native-maps')) {
    //        exclude group: 'com.google.android.gms', module: 'play-services-base'
    //        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    //    }
    // 2. ALSO TRIED THIS:
    // compile project(':react-native-maps');

    // Tried this, but it doesn't work same v4- support error
    compile ("com.android.support:support-v4:26.0.1") {
        force = true //<-- force dependency resolution to 26.0.1 in my case
    }

    compile fileTree(dir: "libs", include: ["*.jar"])
    compile ("com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}")

    // From previous RN version (0.55) - Tried this, but it doesn't work same v4- support error
    // compile('com.android.support:appcompat-v7:23.0.2') {
    //     exclude group: 'com.google.android.gms', module: 'play-services'
    // }

    compile('com.google.android.gms:play-services-base:+') {
        force = true;
    }
    compile('com.google.android.gms:play-services-maps:+') {
        force = true;
    }

    // compile "com.facebook.react:react-native:+" // RN 0.56 upgrade line
    // from node_modules
    compile('com.facebook.react:react-native:+') {
        exclude group: 'com.google.android.gms', module: 'play-services'
    }
    compile 'com.android.support:multidex:1.0.1'

Hi, any news?

Here's a patch-package patch
https://gist.github.com/epeli/f7a518f22c485d0cb9c7eb1b12d63631
from the node_modules/gradle.build workaround https://github.com/react-community/react-native-maps/issues/2188#issuecomment-385420099

Here is what my native android files look like:
app/Build.gradle -> dependencies {:
....
  compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"
    compile(project(':react-native-maps')){
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
....

build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.

task wrapper(type: Wrapper) {
    gradleVersion = '4.4' //version required
}

buildscript {
    repositories {
        /**
         * Must stay in this order
         */
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}

subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
            }
        }
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
        maven { url "$rootDir/../node_modules/react-native/android" }
        mavenCentral()
    }
}

ext {
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

Once this in place, you'll need to:

Install gradle (if you haven't already) (you can do this via brew)
cd android
gradle wrapper
Once gradle wrapper has successfully ran
./gradlew assemble

This is what I had todo to get mine working
Check this answer here for more details: https://stackoverflow.com/a/27982996/4140346

I got this error among others that were similar, I just changed compile to implementation in the apps build.gradle and it suddenly started building again. I'd suggest to start with that

Best Solution --
https://github.com/react-native-community/react-native-camera/issues/1490#issuecomment-381852316


give it a better id

I kept getting a console error from plugin 'obsidian-latex' ...took me a long time to figure out it was this plugin. Is it possible to change the id to something more identifiable?

@ksdavidc Sorry for the late reply! I'd like to change the id of this plugin, but doing so could break automatic updates for existing users. Given that this plugin is largely stable and unlikely to change much (unless MathJax integration becomes more flexible), I prefer to avoid any such breaking changes.


New labels created

Hi all,
I have created some new labels for our repository. Please let me know if you have some suggestions for more new labels.

Thank you.


Provide training commands for DAM, REM, and baselines

Work in progress.
This pull request will provide commands for training.

Training a separate DAM to adapt to a certain domain
Training the REM on supervised data.
Training a DR baseline.

Commands are all available. Some results are still missing. But it looks good enough. We will add those results in a later time. Merge now.


Return old values in set (and potentially other methods)

Potential performance optimization for a pattern like this:
if !received[id] {
  received[id] = true;
  // Do other stuff
}

// Could be this instead
if !received.set(id, true) {
  // Do other stuff
}

It would need some benchmarking to make sure the bounds checking and division is actually slow enough to warrant a memory read on every set call.

FixedBitset::put exists now which does exactly this.


Update logits processor with tensor caching

Re-adds caching for tensor lookup on top of latest vllm and outlines changes.

outlines.processors are compatible with vllm with no changes: https://github.com/outlines-dev/outlines/blob/main/outlines/processors/structured.py
We have benchmark tests for torch cpu / gpu use of these logits processors and integration tests with vLLM to ensure performance and compatibility.
Is there any reason to not just have this module run from outlines.processors import RegexLogitsProcessor, JSONLogitsProcessor?

I like where your head's at :)
I don't see any reason to maintain the additional abstraction any more.
I'll do up a separate PR based on that and make sure we've got a perf test in for these scenarios specifically.
Is there a slash command or similar that will run the benchmarks on PRs?

I like where your head's at :)
I don't see any reason to maintain the additional abstraction any more. I'll do up a separate PR based on that and make sure we've got a perf test in for these scenarios specifically. Is there a slash command or similar that will run the benchmarks on PRs?

That's great to hear, thanks so much for making this change!
Here is documentation on using asv within outlines https://github.com/outlines-dev/outlines/blob/main/docs/community/contribute.md#benchmarking
Here's how we test torch logits in with outlines.processors

module https://github.com/outlines-dev/outlines/blob/main/benchmarks/bench_processors.py
command (in outlines repo directory) asv run --config benchmarks/asv.conf.json -b bench_processors.LogitsProcessorStructuredBenchmark.time_structured_generation

Please let me know if you have any other questions or if there's any other way I can help!


Add maintenance operator config api

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

9 of 156 (5.77%)  changed or added relevant lines in 4 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+1.8%) to 2.948%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/controller/maintenanceoperatorconfig_controller.go
6
11
54.55%

cmd/maintenance-manager/main.go
0
7
0.0%

api/v1alpha1/zz_generated.deepcopy.go
0
135
0.0%

Files with Coverage Reduction
New Missed Lines
%

api/v1alpha1/zz_generated.deepcopy.go
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
1.8%

Covered Lines:
12

Relevant Lines:
407

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

9 of 156 (5.77%)  changed or added relevant lines in 4 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+1.8%) to 2.948%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/controller/maintenanceoperatorconfig_controller.go
6
11
54.55%

cmd/maintenance-manager/main.go
0
7
0.0%

api/v1alpha1/zz_generated.deepcopy.go
0
135
0.0%

Files with Coverage Reduction
New Missed Lines
%

api/v1alpha1/zz_generated.deepcopy.go
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
1.8%

Covered Lines:
12

Relevant Lines:
407

💛  - Coveralls


Metadata store -XML/Harvestor

Essentially I'm trying to figure out how to preserve my metadata store when I shutdown my Geoportal running on AWS.
Related to #9, I'm struggling to figure out where the uploaded metadata is stored (via Catalog and brokers via Harvester). I currently have a AWS EC2/ EFS hosting a docker file that installs Elasticsearch/Tomcat/GeoPortal. I have several metadata files uploaded, and I'm trying to search through  the file structure (from root) for anything that resembles "clob",  "item", relevant "xml", "index" or, anything resembling the name of the uploaded metadata. Note -only an "index" search comes with anything that even looks worthwhile.
The best I come up with is possible preserving the "nodes" subfolder

Otherwise, I'm lost. Any suggestions? When I stop my EC2 all ephemeral data is lost.

So - I'll just go ahead and answer my own question here. I'm no sure why my first 2 searches for my named metadata didn't come up, but when I uploaded a "SSURGO" metadata file, I was able to find 2 directories with info based on a keyword search:
root@2fbcd74b284e:/# grep -nr 'SSURGO*' .Binary file ./var/lib/elasticsearch/nodes/0/indices/pTtLMnKYRvSYSpCz9m5UEQ/4/translog/translog-3.tlog matchesBinary file ./var/lib/elasticsearch/nodes/0/indices/pTtLMnKYRvSYSpCz9m5UEQ/4/index/_1.cfs matches
When I opened the top file (vim translog/translog-3.tlog), the results looked familiar:

So, it looks like entire "node" subfolder needs to be stored and then references in the docker file. I'll do some more checking where the Harvester brokers are stored, and bug the Harvester Github if I can't find an answer.
Thanks!


[webgl] Removal of GPGPU example

Just wondering why this code example (or the GPGPU class in general) has been removed from the current build:
https://github.com/thi-ng/umbrella/blob/161b4f8afaef0df742a8e2c7776993b828662589/examples/webgl-gpgpu-basics/src/index.ts
This seems a very useful abstraction (especially the jobrunner), but I can understand if it has since been superseded by a newer version. If that is these case, could you point me to a recent example that demonstrates GPGPU capabilities?

Fret not, @dleeftink! The feature is still there (and actually expanded in scope). Here're a few examples showing the new approach (fundamentally the same, just reading the results from FBOs/textures back is currently a out-of-scope and must be handled separately (see below):

Demo
Source

https://demo.thi.ng/umbrella/webgl-game-of-life/
https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-game-of-life/src/index.ts

https://demo.thi.ng/umbrella/webgl-texture-paint/
https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-texture-paint/src/index.ts

https://demo.thi.ng/umbrella/webgl-multipass/
https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-multipass/src/index.ts

https://demo.thi.ng/umbrella/webgl-float-fbo/
https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-float-fbo/src/index.ts

For an example of how to read back a texture, hava a look here:
https://github.com/thi-ng/umbrella/blob/86e43da88d87fa291f32ce4d3ee2ca06ae0723a4/examples/webgl-texture-paint/src/index.ts#L160-L189
Hth! :)

Thank you for pointing me to these, and the webgl layer in general!
In regards to IO via readPixels, I wonder whether using Dataview + transform feedback would prove more performant for data IO? The use case I am envisioning is parallel reduction on the GPU, and out of many Webgl packages I've tested, not many (if any) provide parallel reduction out of the box. Would be cool to try and implement this using the @thi.ng/webgl package.
For instance, here's an older example using regl:
https://github.com/regl-project/regl/blob/gh-pages/example/reduction.js

hi @dleeftink - this has tickled my interest and I've just uploaded a new example showing a version of this kind of reduction (using thi.ng/webgl & thi.ng/shader-ast):
Demo:
https://demo.thi.ng/umbrella/gpgpu-reduce/
Source code:
https://github.com/thi-ng/umbrella/blob/develop/examples/gpgpu-reduce/src/index.ts
Readme w/ benchmark results:
https://github.com/thi-ng/umbrella/tree/develop/examples/gpgpu-reduce
Ps. Can you please explain your "DataView w/ transform feedback" comment/approach? Not sure how this fits into this picture here... 😉

Thank you for taking the time, will have a bit of a play around to see how<EMAIL_ADDRESS>compare in terms of setting up a parallel reduction pipeline. The performance profile of the example you provided seems promising enough!
Re; the dataview/transform feedback approach: see this cell on Observable which is part of a notebook where I compare various GPGPU libraries. Beware that you may have to hit the 'profile' button after all libraries have run once to get a proper comparison (I will have to clean up the examples some more, isolate the gl contexts and add proper cooldowns and disposal between runs).
In any case, the approach in the linked cell uses the forked WebGP library to write a sizeable array to an array of N by N textures, which are processed using a transform feedback mechanism. Instead of readPixels, you can construct a TypedArray directly from the result buffer, after which the max is found on the CPU and pushed to an output array. Here, reduction is thus applied in CPU rather than GPU land, but afaik the transform feedback mechanism allows you to run multiple passes on the bound buffer before passing the data back to the CPU to reduce to a final result.
Both the 'subgpu' and 'supgpu' cells show that quite a fast turnaround can be achieved from the CPU > GPU > CPU using this approach. My thinking is to do as much work on the GPU (e.g. map/reduce) before handing over a relatively small array to the CPU to apply final processing (e.g., deriving an array of centroids from a large N x N matrix).

Thanks for this, I only just now realized that you were talking about the built-in WebGL2 transform feedback feature, whereas I previously assumed you meant some generic/custom mechanism 🤦 Alas, I have not yet had a need to use this feature and so also don't have any direct experience with it...
So I'm still trying to wrap my head around how this would be working here & I know I'll have to do more reading about this (and reading some of the code you linked to)... From the little understanding I have about createTransformFeedback(), my hunch is that you're proposing to perform all GPU processing in the vertex shader stage, rather than in the fragment shader as I've been doing so far? And then you'd use getBufferData() on a still bound vertex array instead of readPixels() on an FBO? Hmmm, if that is what you're talking about, then the approach would involve a major restructuring (or really a full rewrite) ... 🤔
FWIW for texture sizes upto 64x64 (aka up to 4096 result values) the process of binding and reading a FBO takes on my M1 0.04-0.09ms (avg of 1000 iterations)... I'd say that's absolutely acceptable in relation to main computation time...

Yes, you summarised it better than I did. If major restructuring is required, than please ignore! I think the example is more than serviceable to demonstrate an important
GPGPU use case.
Re; transform feedback, the following gist provides a concise example: https://gist.github.com/CodyJasonBennett/34c36b91719171c45ec50e850dc38a34
Although I haven't been able to get instancing to work fully yet for the above gist, this would theoretically allow you to achieve even greater speed-ups as described here:
https://webgl2fundamentals.org/webgl/lessons/webgl-instanced-drawing.html
Beyond that, I do see value in providing a Dataview to a vertex buffer, as there is less copying involved. For 4096 values the difference might be negligible compared to readPixels(), but I am investigating how to quickly process 2**24/31 array elements on a first pass with an optional reduction on a second pass (TextEncoder() on CPU -> BytePair encoding on GPU -> BytePair frequency tables on GPU -> Sorting frequency tables on CPU).
Shader-ast seems of great help to implement this functionality.

Again, thank you! I will try to take a look at these links over the weekend. Just some side notes here:

Instancing is fully supported by thi.ng/webgl, also (individually configurable) for passes in a multi-pass pipeline. You can find some instancing examples here (still have to extract some more interesting ones from other projects):

https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-grid/
https://github.com/thi-ng/umbrella/blob/develop/examples/webgl-ssao/

Re: 4096 values: with that I mean that if it's a proper (full) reduction, then you'd only ever have to read a single pixel (vec4), all other data would stay on the GPU and wouldn't have to be read back. But I'll try do some experiments with that other approach too... 👍


Disable everything except restore / hard delete in trash

Pull Request Description
Closes: enso-org/cloud-v2#1084
Tl;dr: This PR disable almost all actions in trash folder, except restore/hard delete.
Context:
Currently, we can do a lot of actions it trash folder: arrange files in folders, create new folders, edit files and so on. We want to disable most of these actions.
This Change:

Disables d&d support within trash folder, but leaves the ability to drag thigs back to home folder.
Disables most of the keyboard shortcuts(copy,paste,new...etc) except hard delete/restore
Disables launching projects
Disables rename
Disables assigning labels
Disabled editing the description & sharing

https://github.com/enso-org/enso/assets/61194245/35c6532d-719f-46b2-a2f7-b54b54856bbd
Test Plan:
This PR expects thorough testing to make sure we have disabled everything except hard delete/restore and the same way we didn't break the home folder :)
Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[ ] The documentation has been updated, if necessary.
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[ ] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[ ] Unit tests have been written where possible.
[ ] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

Very minor thing probably not related. The project icon in the trash is weird. It should be the same play button but not clickable

@PabloBuchu

Very minor thing probably not related. The project icon in the trash is weird. It should be the same play button but not clickable

I can't entirely agree, on the one hand, the play button is smth that is associated with a project, but on the other hand, we might confuse our users when they see the play button, which does nothing. I think it is worth distinguishing between projects users can launch and those they can't launch.
Also, I agree that the icon isn't the best.

Approved we can disagree on an icon somewhere elese


Fix the test for Gaussian

if you can't see why it is flaky, reassign to me.

In a recent PR #187  I have doubled the number of samples used in this test, and increased the epsilon tolerance. Perhaps this will eliminate this issue. Let's observe.

I check changes and everything seems fine, however, I don’t understand how it solved the Gaussian test issue.
Should I test it on some examples or merge it?
Mohsen
From: Andrzej Wąsowski @.>
Date: Friday, 23 December 2022 at 13.51
To: itu-square/symsim @.>
Cc: Mohsen Ghaffari @.>, Assign @.>
Subject: Re: [itu-square/symsim] Fix the test for Gaussian (Issue #175)
In a recent PR #187https://github.com/itu-square/symsim/pull/187 I have doubled the number of samples used in this test, and increased the epsilon tolerance. Perhaps this will eliminate this issue. Let's observe.
—
Reply to this email directly, view it on GitHubhttps://github.com/itu-square/symsim/issues/175#issuecomment-1363928294, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASQKWRMMT64SBUV2DXLOU63WOWN6PANCNFSM6AAAAAAR3T3N3A.
You are receiving this because you were assigned.Message ID: @.***>


add displayName for repository

Add this into annotations . Take https://github.com/kubebb/components/tree/main/repos as the 1st

add displayName into annotations.

closed


does not importing any images

Describe the bug
I download .json file from Chrome extension. But when I imported it to Figma all the images on the web page is displayed as a grey box.
Screenshots

Thanks for reporting @MiaCCA, we're on it!

This should now be fixed @MiaCCA! We tested and images are back


Question: which line number should an 'outdent' return?

@ForbesLindesay: While looking at the reporting columns for tokens I noticed an difference in the line reporting of 'outdent' tokens depending on where they occur and was wondering whether this was intentional?
Take the following jade as an example:
foo
  bar
foz
  baz

Which yields the following tokens:
[ { type: 'tag', line: 1, val: 'foo', selfClosing: false },
  { type: 'indent', line: 2, val: 2 },
  { type: 'tag', line: 2, val: 'bar', selfClosing: false },
  { type: 'outdent', line: 3 },
  { type: 'tag', line: 3, val: 'foz', selfClosing: false },
  { type: 'indent', line: 4, val: 2 },
  { type: 'tag', line: 4, val: 'baz', selfClosing: false },
  { type: 'outdent', line: 4 },
  { type: 'eos', line: 4 } ]

The first outdent is reported as being on line 3, essentially before foz. However the final outdent is reported as being on line 4, essentially after baz, which is correct as there is no line 5.
So it this intentional, or should the first outdent be reported as being on line 2?

Having thought about this further it makes sense for it to be how it currently is

What's there currently is very probably inconsistent/buggy because those specific tokens are highly unlikely to be used to emit error messages (which is currently the only place that line numbers are used).
If you feel like making a decision as to how it should be, and auditing the test cases to check they are all correct, then documenting how it should be in the readme, that would be awesome.

Ok cool, if I see the need for any changes as part of the column reporting work I'm doing, I'll bundle them together and document them in the readme

@benedfit are you still working on this?

@TimothyGu I decided not to change anything regarding the line numbers for outdents, but I am still working on returning column numbers, however I've been away for 2 weeks, so will be ramping back up on it over the next few days


Add Eventsub handlers for Polls and Predictions

Pull request summary
Adds Eventsub handlers for Polls and Predictions
Checklist

[x] If code changes were made then they have been tested.

[x] I have updated the documentation to reflect the changes.
[x] I have updated the changelog with a quick recap of my changes.

[ ] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

Done.
Additional testing was also done and those bugs are now fixed.

Thanks this will be released with 2.2.0.


Bower Support

fix #30
fix #28

Has this been integrated yet? I can't find package named "html5-device-mockups" in the bower repo

That's right - you can not find it until this pull request is merged. Bower needs the config file in the repository. Unfortunately the owner does not maintain his repo that often.

Not to be that guy, but bower themselves are now suggesting using yarn as a package manager. Is there willingness to include a package.json as well?


Investigate android com.facebook.jni.CppException crash

There seems to be crash occurring on some android devices coming from reanimated, anyone able to investigate?

Fatal Exception: com.facebook.jni.CppException: [Reanimated] Data type not recognized by value unpacker.

Error: [Reanimated] Data type not recognized by value unpacker.
    at valueUnpacker (WorkletRuntime::WorkletRuntime:1:1477)
       at com.swmansion.reanimated.AndroidUIScheduler.triggerUI(AndroidUIScheduler.java)
       at com.swmansion.reanimated.AndroidUIScheduler$1.run(AndroidUIScheduler.java:24)
       at com.swmansion.reanimated.AndroidUIScheduler$2.runGuarded(AndroidUIScheduler.java:43)
       at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:29)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8663)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

@tienifr
crashes related to android com.facebook.jni.CppException. The root cause appears to stem from a known issue, as reported. To address it, upgrading the library to the latest version seems like a viable solution.

@tienifr feel free to go ahead to prepare the bump PR

Ooof, sorry for that, I think I could make you a C+ here if you want, seems like you know how to replicate this, would you live to do a C+ work here on the PR?

Gonna do that than, @tienifr please notify the C+ that will get autoassigned to the PR review

@tienifr is there an ETA for the PR here?

@tienifr is the testing issue resolved?

Awesome. TY! PR still in review

PR still in review

I don't think BZ checklist is needed here.

Payment needed here is:

@tienifr - $250 for PR via upwork.
@ShridharGoel - $250 for C+ via upwork

offers sent to both of you!

Upwork job closed

All set. Thanks everyone!


Chrome version problem in docker

I tried the Docker command and it immediately crashed. Is there any workaround?
Environment:
Docker version 20.10.12, build 20.10.12-0ubuntu4
Stacktrace:
Traceback (most recent call last):
  File "/usr/local/bin/gppt", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/gppt/main.py", line 148, in main
    args.func(args)
  File "/usr/local/lib/python3.10/site-packages/gppt/main.py", line 57, in func_loginh
    res = g.login(headless=True, user=ns.username, pass_=ns.password)
  File "/usr/local/lib/python3.10/site-packages/gppt/_selenium.py", line 65, in login
    self.driver = webdriver.Chrome(
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
    super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 277, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 370, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 435, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 107
Current browser version is 103.0.5060.114 with binary path /usr/bin/google-chrome

Selenium has introduced Selenium Manager, which installs correct selenium-driver automatically. Please try gppt v4.0.0 and report again :bow:


Bug with Custom Serializer (new versions)

A situation similar to [1], regarding the versions
In Emmett-Rest I have a Custom Serializer similar to the following
class MySerializer(Serializer):

    def myfield_name(self, row):
        if row.myfield:
            return row.myfield.name
        return ''

When I make a post row.myfield is considered an integer

return row.myfield.name
AttributeError: 'int' object has no attribute 'name'

In cases when I do get works fine
This fails with these versions:

emmett 2.4.5
emmett-rest 1.4

and works fine whit:

emmett 2.3.1
emmett-rest 1.2.0

[1] https://github.com/emmett-framework/emmett/issues/428

Error also with

emmett 2.4.5
emmett 2.3.1

@josejachuf this is confirmed, gonna work out a fix for a 2.4.6

Thanks

@josejachuf should have been fixed with current master. Gonna release 2.4.6 later today/tomorrow


Cert manager unable to update certs

We are using the Kubernetes cert manager, version 2.4.2, along with Let's Encrypt.
Our cert expires in the next few days, and cert-manager is unable to update.
These logs are from the cert-manager-webhook pod.
I am seeing this vague error but I am not sure where to go next for further debugging.
2023-03-15T04:43:55-04:00 I0315 08:43:55.000294       1 dynamic_source.go:169] cert-manager/webhook "msg"="Serving certificate requires renewal, regenerating"
2023-03-15T04:43:55-04:00 I0315 08:43:55.035562       1 dynamic_source.go:267] cert-manager/webhook "msg"="Updated serving TLS certificate"
2023-03-15T20:43:54-04:00 I0316 00:43:54.473908       1 authority.go:312] cert-manager/webhook "msg"="Root CA certificate is nearing expiry. Regenerating..."
2023-03-15T20:43:54-04:00 I0316 00:43:54.519234       1 dynamic_source.go:160] cert-manager/webhook "msg"="Detected root CA rotation - regenerating serving certificates"
2023-03-15T20:43:54-04:00 I0316 00:43:54.551889       1 dynamic_source.go:267] cert-manager/webhook "msg"="Updated serving TLS certificate"
2023-03-16T06:43:57-04:00 W0316 10:43:57.028777       1 reflector.go:442] external/io_k8s_client_go/tools/cache/reflector.go:167: watch of *v1.Secret ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding
2023-03-20T12:43:54-04:00 I0320 16:43:54.001357       1 dynamic_source.go:169] cert-manager/webhook "msg"="Serving certificate requires renewal, regenerating"
2023-03-20T12:43:54-04:00 I0320 16:43:54.035635       1 dynamic_source.go:267] cert-manager/webhook "msg"="Updated serving TLS certificate"

The cert is 89 days old since that was when I made the namespace. It was being updated correctly.
We are running into an issue with Azure AppGateway. The terraform module, and cert-manager pod are all working correctly.
Sorry to bother you!


official raspberrypi handbook added to the list under Raspberry Pi

What does this PR do?
Add official Raspberry Pi Handbook resource.
For resources
Description
Latest guide book from the raspberry pi foundation
Why is this valuable (or not)?
Provides latest information.
How do we know it's really free?
Magpi book series have always been available for free as pdf. You can check it out by visiting the link all the books they published to date is available as pdf
For book lists, is it a book? For course lists, is it a course? etc.
It's a book
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Please, resolve conflicts.

Broken links was resolved in #6276.
scope your PR: your branch is 189 commits outdated.

:writing_hand: TIP: Making an upstream merge should be enough. Follow this steps in your local environment:
git fetch --all
git checkout master
git merge upstream/master
... take your time to resolve conflicts, if any ...
... ensure add changed files to stage area (`git add [filename]`) ...
git commit -m "Solve conflicts EbookFoundation/free-programming-books#6311"
git push origin

This push into your fork makes this PR to be synchronized automatically :wink:
Or start witha new fresh branch


Training time & Nums of GPUs used

Hi!
Wondering the traing time for UHDM and TIP 2018 dataset, since in the paper it was mentioned that only a single 3090 GPU was used for training?
Or, I misunderstood the paper's statement. How many 3090s were used for training?
Thanks a lot.

Hi! Wondering the traing time for UHDM and TIP 2018 dataset, since in the paper it was mentioned that only a single 3090 GPU was used for training?
Or, I misunderstood the paper's statement. How many 3090s were used for training?
Thanks a lot.

We only use one GPU for both training and inference. You can find the detailed training configuration in our papers.


Cannot parse response as JSON: Invalid multipart request with 0 mime parts.

Environment details

OS: Win 10
Node.js version: 13.3
npm version: 6.13.1
@google-cloud/storage version: 4.1.3

creating a new upload script as per the docs, uploading a '.kml' file (and many other file types results in the following error:
Cannot parse response as JSON: Invalid multipart request with 0 mime parts.

@sachaw could you provide a bit of code that demonstrates how you are performing the upload?

this.bucket.upload(filePath, (err, file, apiResponse) => {
  console.dir(apiResponse)
})

the input filePath can be a number of files, I tried: kml, dll, ico and a heap more, however I tried uploading a jpeg and it works as intended

@sachaw not able to re-produce it. can you provide more info like:
Any Options are you using while uploading file?
is it failing every time or irregular?
Could you post the complete stack trace?

Quoting Justin Beckwith:
https://stackoverflow.com/questions/48526185/google-drive-upload-api-invalid-multipart-request-with-0-mime-parts?noredirect=1&lq=1
"Please, please make sure that you do not install your own version of google-auth-library along side googleapis"


StaticRb backed by a static variable?

Is something like this safe?
static mut rb: StaticRb<u8, BUFFER_LEN> = StaticRb::<u8, BUFFER_LEN>::default();
let (mut prod, mut cons) = unsafe { rb.split_ref() };

My use-case is I want to have a ring buffer on a no std environment, and I would prefer not to use dynamic allocation if possible. The producer would be used by an interrupt handler, and the consumer used by the main task.

Yes, using statically-allocated ring buffer is safe. But I'd like to add a few points:

StaticRb::default is not const so you may need to use something like lazy_static (example).
But you cannot get mutable reference from lazy_static so you need to create producer and consumer manually insted of splitting (example).

Great, thank you!


[5.4] Make Arr::random($array, 1) return an array of one item

Follow-up to #19818.
A bit of proofreading would be welcome. For example I nearly forgot adding a count(func_get_args()) in the array_random() helper, which was necessary before I make the optional parameter no more "magical".

ping @calebporzio

also ping @sebastiandedeyne


routing.build: Allow multiple values for the same field

This allows to construct urls like
'http://example.com/?multi=1&multi=2&multi=3' which have multiple
values for the same field. This is common practice for most web
frameworks. The reverse operation is allready supported, i.e. multiple
values get aggregated into a MultiDict.

Thanks, please add a testcase and a changelog entry!

I updated the commit in place (I hope github doesn't barf on this).

Thanks!


Bug: Navigation is randomly hitting fatal COM error (0x8000FFFF)

We don't have proper steps to reproduce and this might be a WinUI issue but we're tracking on GitHub as it's a blocking issue in Files.

Note that this issue only happens while using DetailedLayout.
The crashing is happened at BaseLayout.NotifyPropertyChanged for ColumnsViewModel:

Not sure whether it's a WinUI bug or not.

https://github.com/microsoft/microsoft-ui-xaml/issues/7695

An answer has been provided by the microsoft-ui-xaml about this issue with a possible solution :

Agree it looks like a bug in WinUI3. Thanks for providing the debug info. In response to the property change notification, it's trying to reach back and get the new value, and it looks like the pointer it has to the internal ICustomProperty reflection object is bad.
In the interest of getting unblocked, maybe you could switch this binding to an {x:Bind}, or otherwise add some code to replace it. If it's happening for all of the bindings on this object, then that would be interesting to know too.

Should we go down this path ?

I don't think the solution works. We are using TemplatedBindings, not Bindings, and they cannot just be replaced with x:Bind.

I have an idea about working around this issue (but don't have time to implement and verify).
How about removing the xaml code that binds ListView columns to the ViewModel, instead, manipulate the columns in the code behind manually?


Implement textToSpeech() Appwrite Function ⚡

Introduction
Appwrite Functions allow you to extend and customize your Appwrite server functionality by executing your custom code 🤩 You can learn more at our official Appwrite Functions docs.
Your task is to implement textToSpeech function. You can look at the existing Appwrite Functions demo in the coding language you prefer to see how it works.
This function should take text as an input, generate an MP3 file using Google Text-to-speech API and save it into Appwrite Storage.

Please make sure to store all configurable parameters as environment variables, so others can start using your script without having to edit it. If some data is different for each execution, make sure to use APPWRITE_FUNCTION_EVENT_DATA or APPWRITE_FUNCTION_DATA environment variable.

Tasks summary:

[ ] Fork & clone this repository
[ ] Create feat-implement-text-to-speech-X branch where X is programming language you used
[ ] Write code for the function
[ ] Test the function using Appwrite
[ ] Write a README.md explaining what function does, how to use and customize it. Here is an example.
[ ] Submit pull request

If you need any help, reach out to us on our Discord server.
Are you ready to work on this issue? 🤔 Let us know, and we will assign it to you 😊 There are 9 languages in which you can implement this function. When requesting to be assigned, please mention which language would you like to use.
Assignees table
✅ = Done - This language has already been finished
⚒ = In progress - Someone is already working on this language
❌ = Unassigned yet - This language can be assigned to you

Function / Language
Deno
NodeJS
PHP
Python
Ruby
Dart
.NET
Java
Kotlin

textToSpeech
❌
❌
❌
❌
❌
❌
❌
❌
❌

Happy Appwriting!

I'd like to work on this one!

can i work on this issue ? i want to participate in hactoberfest .
i will write the code in kotlin

Hey, I am working on implementing this in python. Please assign me for the same. Thanks.

I would like to work on this ?
I will code in python

@Rishavgupta12345 @avats-dev @ssm0801 Looks like you have some issues assigned to you already. We request you to complete those before requesting assignments on new ones. Also, please consider picking a different type of issue so other contributors can try this one.

@Meldiron Can I work on this using NodeJs?

Hello @Meldiron 👋🏻, I could work on this in python

Hi, can you assign this to me for python? I have already created a PR for this.

@Jaideep07  All the best :rocket:

@rajatkeshri We would love you to check out some of our other open issues and join us on Discord if you need help finding some.

Hey i Would like to work on this in  Dart

Hi. I am interested in being assigned for PHP and/or Ruby, thanks.

@Rishabh-Negi @R055A  Assigned it to you! All the best 🚀

Hi ! I would like to work on this in Java.

@JeevaSaravanan Assigned java to you. All the best 🚀


feat: add checking warnings to the workflow

The workflow will now fail on any warning in compile time.

it's more chore or ci than feat imho


Sidebar reorder

Summary
Move specific user documentation to a single (last) node in the user documentation.

@enolfc , @glarocca can you please formally review/approve (or not) this PR?


I cant open the launchmod_eldenring.bat

The issue is that i open it and cmd runs and then its close it self but elden ring wont start
This is what log says :
2022-08-18 08:31:27.615] [modengine] [info] ModEngine version 2.0.0-preview3-2144572dce7257d2cc477db78036e70dcd136b5a initializing for Elden Ring
[2022-08-18 08:31:27.615] [modengine] [info] Local settings loaded: true, Global settings loaded: false
[2022-08-18 08:31:27.615] [modengine] [info] Main thread ID: 15764
[2022-08-18 08:31:27.618] [modengine] [info] Enabling extension base
[2022-08-18 08:31:27.618] [modengine] [info] Enabled extension base
[2022-08-18 08:31:27.618] [modengine] [info] Enabling extension mod_loader
[2022-08-18 08:31:27.618] [modengine] [info] Installing mod location mod
[2022-08-18 08:31:27.618] [modengine] [info] Resolved mod path to E:\ModEngine-2.0.0-preview3-win64\mod
[2022-08-18 08:31:27.618] [modengine] [info] Enabled extension mod_loader
[2022-08-18 08:31:27.688] [modengine] [info] Applied 3 hooks
[2022-08-18 08:31:27.689] [modengine] [info] Starting worker thread
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
[2022-08-18 08:31:27.843] [modengine] [info] Destroying
For any advice i will be greatfull

did anyone find a fix for this or was it closed for no reason??


migrate wine-devel to cask/versions

https://github.com/caskroom/homebrew-versions/pull/3567

https://github.com/caskroom/homebrew-cask/pull/30079

Can’t reopen, for some reason. Mind resubmitting?

Ah, I see you already did. Thank you.

@vitorgalvao #31775


Transfer 2024 roadmap from internal github

Actively work on the open-sourcing Greenhouse considering codebase dependencies, documentation, removal of all internal references, etc. and migrate to this repository.

Transferred to upstream github organization and working on 1st official release incl. announcement.


Express multer with openapi 3

Hi, I want to use openapi/swagger version 3 and I have couple of endpoints using multipart/form-data.
Not sure if this is a bug or I'm doing something wrong.
My setup:
const inputValidationOptions = {
    expectFormFieldsInBody: true
};
swaggerValidator.init('src/openapi/api.schema.yml', inputValidationOptions);

const multerMiddleware = multer({ ... });

router.put(
  '/:id',
  multerMiddleware.single('photo'),
  swaggerValidator.validate,
  async (req: Request, res: Response) => {
    // ...
  }
);

Swagger:
requestBody:
  content:
    multipart/form-data:
      schema:
        type: object
        properties:
          photo:
            type: string
            format: binary

Getting this error:
TypeError: validator.validate is not a function

Checked the source code and in src/middleware.js -> _validateBody is this const validator = methodSchema.body[contentType] || methodSchema.body;. So it's using content-type header to get the validator. In my case the value is multipart/form-data; boundary=--------------------------517000622299074484111234, but it's expecting only multipart/form-data. Thus it can't access the validator.
Did I miss something or it's issue in middleware?

@mmacai Yeah, this is an edge-case that is not handled correctly now.
Take a look at this PR: https://github.com/Zooz/api-schema-builder/pull/29/files (api-schema-builder is a dependency for express-ajv-swagger-validation)
Probably we need same thing for request validation as well. If you can submit a PR with test for this, I would be more than happy to review.

@kibertoad sure, I'll put something together.

@kibertoad The change should be in this library or api-schema-builder? Going through api-schema-builder codebase and I'm a bit lost.


Bug fix in nn.feedforward

Description
Fix bug of in_place dropout application that makes backprop fail and in batchnorm option, see #118
Also adds a backward call in test for nn.feedforward
Status

[x] Ready to go

Thank you! Could you also fix batchnorm?
Replacing self.in_features with (1,self.in_features)  in https://github.com/luigibonati/mlcolvar/blob/main/mlcolvar/cvs/cv.py#L61 worked for me.

Thank you!


Wishlist: Remember latest used project

When working on several issues from the same project, it would be very convenient if toggl button remembered the last project used, so that one doesn't need to look it up again.
Possible algorithm would be: If the current timer is being started while another one is running, preselect the same project as the currently running timer.
Also the logic could be extended to also pick up the timers started in the past x minutes: Apply the above logic if there is a current timer, else pick the last timer from the past 5 minutes.

+1.
Even better solution would be remembering selection of project with relation to URLs. Example. Asana has URL structure like /%project-id%/%task-id%. So when I have selected once specific project from Toggl for URL asana.com/%project-id%, it is essential to remember my choice. And select same project for same URL as a default.

+1

Similar to this after the timer stopped there should be an option to restart the previous Toggl task. Not only from the Notification box.
For example you work for 25min, you take a 5 min break, you press one button to restart the previous time/Toggl task.

@gianpaj the "continue latest" functionality is already implemented and will be available in the next version.

Similar functionality (See latest tracked projects) will be implemented with #673


Building IO documentation

We do have the quickbook documentation here:
https://github.com/boostorg/gil/tree/develop/io/doc
Does someone know how to build this into html?

There is Jamfile, so isn't enough to run?
cd  io/doc
b2

I don't know what standalone means. Boost.Geometry does not use it, https://github.com/boostorg/geometry/blob/develop/doc/Jamfile.v2#L32

By the way, the docs is a whole separate area that deserves some love, converting to .qbk (or markdown, whatever is accepted by Boost) would improve the library experience a lot :)
If there is plan, before or after the grand merge, we could discuss it

Yes, you're correct. Docs are important and need a lot of attention to detail. For the time being I suggest we combine gil's html with the already built io's html.

OK, I'll follow your and @stefanseefeld's lead. There is already a lot of tasks to complete.

The entire documentation build process has been reworked in https://github.com/boostorg/gil/commit/e38fe881c82644f162bbf0d6fdae5b4a7fb1c854.


Support for protobuf 4.x

Protobuf 4.x removed GeneratedMessageV3 class (https://github.com/grpc/grpc-java/issues/11015), https://protobuf.dev/news/2023-12-05/
This is causing
public final class RequiredValidation {
    private RequiredValidation() {
    }

    public static void required(String field, GeneratedMessageV3 value) throws ValidationException {
        if (value == null) {
            throw new ValidationException(field, "null", "is required");
        }
    }
}

This class to break as its using GeneratedMessageV3, but my code no longer uses GeneratedMessageV3 but uses GeneratedMessage
Can we modify this to simply use Message interface? I didn't understand why we used GeneratedMessage*? AFAIK they are supposed to be internal protobuf classes which are not supposed to be used outside of protobuf code.

When is the next planned release?


NTR: [proposed new term label] negative  regulation of metaphase/anaphase transition of meiosis II

Please provide as much information as you can:

Suggested term label:
negative  regulation of metaphase/anaphase transition of meiosis II

Definition (free text)
standard of parents

: regulation of metaphase/anaphase transition of meiosis II (GO:1905189)
: negative regulation of metaphase/anaphase transition of meiotic cell cycle (GO:1902103)

Reference, in format PMID:#######

https://www.pombase.org/gene/SPAC5D6.08c
(will replace all existing annotations with a single specific term.)
note to self, also connect MF-BP

Gene product name and ID to be annotated to this term
for mes1

Also
negative regulation of mitotic metaphase/anaphase transition
positive regulation of mitotic metaphase/anaphase transition

@val can you provide references?

PMID:18331722 pombe
a review here for mammalian  https://pubmed.ncbi.nlm.nih.gov/16146756/

bizarre, this already exists
GO:1905190    JSON
negative regulation of metaphase/anaphase transition of meiosis II


Bullet list item deleted

I have seen this 20+ times, but not sure I can reproduce it every time:
Open a doc that already has a bulleted list in it
Place cursor at the end of a bulleted list item
Press Enter (to drop down a line and start a new bullet)
Result: The line you're on is completely deleted.
Note: The line is NOT highlighted / selected.

Should be fixed in the v5. If not, please open a new ticket.

Sweet. Keep up the great work. Looking forward to V5


Fix code sample in Readme

@lukencode ping
If you have an issue of time, would you consider an offer of help in maintaining this project?


need help

can you tell how to build it?? using xcode

should i clone it in xcode and build it??

Yes, that's the main idea, once you clone it and open the BetaOS.xcworkspace file you should select the Kernel target. It's the main target the Kernel.xcodeproj file. This should build the whole project, however the last version of Xcode that I used to build this and have tested was Xcode 10. I suspect that there might be a few issues, which would have to be fixed to make the project compile under newer versions of Xcode and newer macOS SDKs.

so after building the project how to boot it??

You need to have a properly prepared disk, which you can restore from the images attached to the releases 0.30, 0.31 or 0.31.1 or by copying the contents of one of the available zip files. There you can also find more detailed explanations about booting the project. Once you have restored the image or copied the contents of a zip file. You can replace the Kernel executable with the one you build yourself.

thank you for the clear explanation


RFE: Support for inclusion on Compiler Explorer

Given the popularity of Compiler Explorer, it sure would be nice if this were available there.

@bryceschober , cool idea.
How exactly do you envision this? What exactly would we have to do for this?

I'm not sure of the precise details, but the top-level docs for the process are at https://github.com/compiler-explorer/compiler-explorer/blob/main/docs/AddingALibrary.md, and for the live site, it seems to include PRs against the https://github.com/compiler-explorer/infra/blob/main/bin/yaml/libraries.yaml file.

Actually, my motivation for wanting this is to hack around with the intersection of reflect-cpp and other strong-type or libraries, like mp-units.

Sound great. I will take a look.


Code is barely able to use 20% of the full botometer-pro API

I have a huge amount of data to collect therefore I created 4 botometer pro APIs. For all 4 of them I am using consumer keys from different twitter users. However, when I am trying to track per day API calls it is barely touching 4k (approx 12% usage of pro quota) calls which is less than even the freemium version. What is the possible reason for this? How should I change the code so that I can use the 100% of botometer pro API?
My code looks like this:
# Pro API endpoint
botometer_api_url = 'https://botometer-pro.p.mashape.com'
twitter_app_auth = {
	    'consumer_key': "xxxxxxxxxxxxxxxxxxxxx",
	    'consumer_secret': "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
}
api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
bom = botometer.Botometer(botometer_api_url=botometer_api_url,
                          mashape_key=api_key,
                          wait_on_ratelimit=True,
                          **twitter_app_auth)
for id in list_of_ids:
        result = bom.check_account(id)
        # save result

I have been downloading with this code for days now and it seems that I am able to only get ~30% of the users per day. That is equivalent to the Freemium version of the Pro API. How can I speed up this process? Kindly help!

Hello, I have the same problem.
How to change the code so that botometer understands I am using the pro version of the API and not the free version ?
Additionally, if somebody could help me set up a limit and an automatic relaunch every 24 hours, that'd be great. I have a looot of accounts to check...
Thanks in advance for your help !
Please find attached my code:
`
error_accounts = ['error accounts']
#loop with botometer
rapidapi_key = "XXX"
twitter_app_auth = {
'consumer_key': 'XXX',
'consumer_secret': 'XXX',
'access_token': 'XXX',
'access_token_secret': 'XXX',
}
bom = botometer.Botometer(wait_on_ratelimit=True,
rapidapi_key=rapidapi_key,
**twitter_app_auth)
#check a sequence of accounts
for i in range(len(column_usernames_corrected)):
try:
result = bom.check_account('@' + column_usernames_corrected.loc[i, 'username'])
with open(column_usernames_corrected.loc[i, 'username'] +'.json', 'a', encoding='utf-8') as js:
json.dump(result, js, ensure_ascii=False, indent=4)
except botometer.TweepError:
error_accounts.append(column_usernames_corrected.loc[i, 'username'])
pass
`

We think it's a combination of Internet IO and slow server. Not much we can do with the IO part. For the server part, we are having higher than usual daily request volume lately and our server is overloaded. As a result, it takes longer for the server to respond and timeout rate is increased (10% now). We just got a new and much more powerful server, but it might take weeks before we can migrate the service.
We are also working on updating the machine learning model, and our plan is to deploy the new model directly to the new server. But we can't guarantee when this will be done, because there are lots of research and tests we need to do to make sure the new model is better and reliable.
In short, we are sorry, but the situation is unlikely to improve in the next a couple of weeks. But once we are done with the upgrade, it will be faster and generate more accurate/informative results.

For check_accounts_in, perhaps we can use asyncio, concurrent, or simply threading?
e.g. https://stackoverflow.com/a/46144596/2593536

We ended the free API to relieve the heavy load on our server. Should be better now.


Document flatmap filtering

Supported operations:

Delete by matching pattern
Move from src pattern to dst pattern

Pattern rules:

Keys are separated by .
* is a wildcard and matches any kind of key (property name or collection element)

Sample backend definition with flatmap filter:
 {
    "host": [ "http://<IP_ADDRESS>:8081" ],
    "url_pattern": "/collection/{id}",
    "is_collection": true,
    "extra_config": {
        "github.com/devopsfaith/krakend/proxy": {
            "flatmap_filter": [
                {
                    "type": "move",
                    "args": ["collection", "paths"]
                },
                {
                    "type": "del",
                    "args": ["paths.*.i"]
                },
                {
                    "type": "move",
                    "args": ["paths.*.path", "paths.*.url"]
                }
            ]
        }
    }
}

notice: when the flatmap filter is enabled, the withelist, blacklist and mapping attributes are ignored (group and target are still in use).
Move patterns (src => dst):

src
dst
allowed

"a.*.b.*.c"
"a.*.b.*.d"
👍

"a.*.b.*.c"
"a.*.c"
👎

"a.b.c"
"c"
👍

"a.*.b.c"
"c"
👎

"a.*.b.c"
"a.*.b.*.d.*.e"
👎

"a.*.b.*.c"
"a.*.b.*.c.d.e.f.g"
👍

"a.*.b.*.c"
"a.*.x.*.c.d.e.f.g"
👎

"a.*.b.*.c"
"a.*.x.*.c"
👎

https://www.krakend.io/docs/backends/flatmap/


Allocated stock appears twice in the stock item search

Please verify that this bug has NOT been raised before.

[X] I checked and didn't find a similar issue

Describe the bug*
When a stock item is partially allocated to 2 different build orders, they appear twice in the stock item search list if the filter for "is allocated" is set to true.

Steps to Reproduce

Create a stock item
Create 2 build orders of that include the part of which you created a stock item
Assign half of the stock item to each build order
Go to stock
Go to stock items
Apply the filters "in stock = true" and "is allocated = true"

Expected behaviour
I expect to only see each stock item once in this list OR if they are shown multiple times (for each build order it is assigned to) also show the build order it is assigned to in this list.
Deployment Method

[X] Docker
[ ] Bare metal

Version Information
Version Information:
InvenTree-Version: 0.12.7
Django Version: 3.2.19
Commit Hash: 6563b4c
Commit Date: 2023-09-16
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.4.0-165-generic-x86_64-with-glibc2.36
Installer: DOC
Active plugins: False
Please verify if you can reproduce this bug on the demo site.

[X] I can reproduce this bug on the demo site.

Relevant log output
No response

@HannesMorre thanks for reporting. A pretty simple fix, surprised that this has gone unnoticed for so long!


Assignment 01

Rubric for Assignment 1: Ownership and Borrowing
Submission
Canvas
1: The link submitted on Canvas is for the pull request containing the
assignment submission.
0: The link submitted on Canvas is not for the pull request containing the
assignment submission.
Git Branch
1: The branch includes only changes for this assignment.
0: The branch includes commits or changes outside this assignment.
0.5/1 - the commits themselves are fine, but there are class session changes within assignment files
Git Commit Message
1: All commit messages for the branch are reasonably clear.
0: One or more commit messages for the branch are reasonably clear.
GitHub Pull Request
1: The pull request is made to the main branch of the student's fork of the
course repository.
0: The pull request is made to a branch other than main or to a repo that is
not the student's fork of the course repository.
Points
Submission Score: 3.5/4
Correctness
1. Ownership
Unit Tests
For each of the 4 functions takes_ownership and prints, first_letter, get_name, and slice_sum
2: All unit tests for this function pass
1: One or more unit tests fail due to a minor error
0: The code fails one or more unit tests due to a major error, or the test fails to compile
find_in_string
2: An appropriate explanation is given in analysis.md for why the compiler needs more information on this function
1: An explanation is given, but there is at least one error within or it fails to identify what information the compiler requires
0: No attempt at an explanation is made
1/2 - explanation is given; implementation is so closeee (don't comment it out in the future)
2. Working with Mutable References
Unit Tests
For each of the 3 functions increments, swap and strip_vowels_and_digits:
2: All unit tests for this function pass. Additionally, for strip_vowels_and_digits, the helper functions must be used and called correctly.
1: One or more unit tests fail due to a minor error
0: The code fails one or more unit tests due to a major error, or the test fails to compile
3. Singly Linked Stack
Unit Tests
5/6 - Swap unit test is failing
1 point for each passing test case (so up to 3 in total)
4. Doubly Linked Stack
2: An appropriate explanation is given in analysis.md for why implementing a doubly-linked list is difficult using safe Rust, along with another example of something that would be difficult to implement.
1: An explanation is given, but there is at least one error within, it fails to articulate which ownership or borrowing rule is being violated, or fails to give a secondary example
0: No attempt at an explanation is made
Points
Correctness Score: 19/21
Code Quality
Code Cleanliness
RustFmt
2: RustFmt produces no warnings when run on the changed files
1: RustFmt produces a few minor warnings when run on the changed files
0: RustFmt produces many warnings when run on the changed files
Clippy
2: Clippy produces no warnings when run on the changed files
1: Clippy produces a few minor warnings when run on the changed files
0: Clippy produces many warnings when run on the changed files
Points
Code Quality Score: 4/4
Summary
Add up the points in the three totals here.
Total Score: 26.5/29


add example response for oauth v2

New slack apps will use oauth v2 by default, we can explain the discrepancy to help devs get up and running faster.

Excellent! Included in the next release -> #1929


fix: marks calculation when boolean or number is passed

Hi, I have found that marks property does not work correctly when min is not zero. You can open demo page and adjust the min property of "Slider with marks" example. In that case all marks are out of tracks. Of course I can calculate numbers by myself and pass an array of numbers but I think it is a good adjustment.

Also added tests for marks prop and covered marks logic by checking key property.

Try with adjusting the step property to match the min value of the Slider. This will ensure that the marks are aligned with the track. Additionally, consider using the included property to determine if the marks should be displayed inside or outside the track.

@msf-caesar Why do you think that displaying marks outside is an expected behavior? For me it seems that marks should be inside the track and it should be the default behavior. If user wants to display them outside he would pass an array of numbers:
<ReactSlider
  min={10}
  max={20}
  marks={[-10, 0, 10, 20]}
/>

I don't want to overcomplicate this logic with additional prop included.

Would love to see this get merged


barplot color

Hi,
how to customize the color of Barplot in the function? I did not find the relevant parameters. thanks!
chens

Which plotting function are you trying to use? There is no barplot() in popcorn. However, I can tell you that most of the plotting functions in popcorn return a ggplot object, so you should be able to use any of the discrete color scales in ggplot2 to get the result you want. It would help if you can provide a snippet of the code you're trying to use.

I want to use plot_admixture to plot Q matrix, but I can't customize the
group color.
code:
library(popcorn)
library(ggplot2)
pops <- read_fam("test.fam")
Q <- read_Q_matrix("test.3.Q")
so <- sort_by_cluster(Q)
QQ <- tidy(Q, pops)
p<-plot_admixture(QQ, label = TRUE, sort.order = so)
ggsave(p,filename="test.pdf",width=10,height=3)
Andrew Parker Morgan<EMAIL_ADDRESS>于2020年8月13日周四 上午11:14写道：

Which plotting function are you trying to use? There is no barplot() in
popcorn. However, I can tell you that most of the plotting functions in
popcorn return a ggplot object, so you should be able to use any of the
discrete color scales in ggplot2 to get the result you want. It would
help if you can provide a snippet of the code you're trying to use.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andrewparkermorgan/popcorn/issues/2#issuecomment-673224437,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGJZOEA522PHBU7VHHOUUZLSANLABANCNFSM4P4LAMBA
.

The object p in your code is a ggplot object, so you can just change
the fill colors for the bars with a discrete color scale as you would with
any other plot. For example:
library(popcorn)
library(ggplot2)

p <- plot_admixture(QQ, label = TRUE, sort.order = so)
p + scale_fill_brewer(palette = "Set1")

On Wed, 12 Aug 2020 at 23:30, Sh1ne<EMAIL_ADDRESS>wrote:

I want to use plot_admixture to plot Q matrix, but I can't customize the
group color.
code:
library(popcorn)
library(ggplot2)
pops <- read_fam("test.fam")
Q <- read_Q_matrix("test.3.Q")
so <- sort_by_cluster(Q)
QQ <- tidy(Q, pops)
p<-plot_admixture(QQ, label = TRUE, sort.order = so)
ggsave(p,filename="test.pdf",width=10,height=3)
Andrew Parker Morgan<EMAIL_ADDRESS>于2020年8月13日周四 上午11:14写道：

Which plotting function are you trying to use? There is no barplot() in
popcorn. However, I can tell you that most of the plotting functions in
popcorn return a ggplot object, so you should be able to use any of the
discrete color scales in ggplot2 to get the result you want. It would
help if you can provide a snippet of the code you're trying to use.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/andrewparkermorgan/popcorn/issues/2#issuecomment-673224437
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AGJZOEA522PHBU7VHHOUUZLSANLABANCNFSM4P4LAMBA
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/andrewparkermorgan/popcorn/issues/2#issuecomment-673230478,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRZBEM3FLGBVVTFI6XT22LSANM5XANCNFSM4P4LAMBA
.

thanks for your reply!


[Issue] panic: runtime error: invalid memory address or nil pointer dereference | ACA Deployment

Output from azd version
azd version 1.10.2
Describe the bug
This has two aca deployments and after it finishes the second deployment, it shows a failure. However, the app is deployed.
To Reproduce
Run azd up on this repo or run the gh action: https://github.com/Azure-Samples/contoso-creative-writer/
Expected behavior
The deployment completes without errors.
Additional context
gh action failure here: https://github.com/Azure-Samples/contoso-creative-writer/actions/runs/11374746532/job/31644084161
Run azd deploy --no-prompt
Deploying services (azd deploy)
Deploying service api
Deploying service api (Packing remote build context)
Deploying service api (Uploading remote build context)
Deploying service api (Updating container app revision)
Deploying service api (Fetching endpoints for container app service)
(✓) Done: Deploying service api

Endpoint: https://agent-api.canadaeast.azurecontainerapps.io/
Deploying service web
Deploying service web (Packing remote build context)
Deploying service web (Uploading remote build context)
Deploying service web (Updating container app revision)
Deploying service web (Fetching endpoints for container app service)
(✓) Done: Deploying service web
Endpoint: https://agent-web.canadaeast.azurecontainerapps.io/
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x88 pc=0x560353df1d1f]
goroutine 1 [running]:
github.com/azure/azure-dev/cli/azd/pkg/ext.(*HooksManager).filterConfigs(0xc000125e20, 0xc0005d6ea8?, 0xc0005d6e08)
/mnt/vss/_work/1/s/cli/azd/pkg/ext/hooks_manager.go:92 +0x1bf
github.com/azure/azure-dev/cli/azd/pkg/ext.(*HooksManager).GetByParams(0xc000125e20, 0xc0002850e0, {0x56035417ee13, 0x4}, {0xc0005d7098, 0x1, 0x560353650fa5?})
/mnt/vss/_work/1/s/cli/azd/pkg/ext/hooks_manager.go:66 +0x1fa
github.com/azure/azure-dev/cli/azd/pkg/ext.(*HooksRunner).RunHooks(0xc0001b4de0, {0x560354aa5b48, 0xc000284750}, {0x56035417ee13?, 0x1?}, 0x0, {0xc0005d7098, 0x1, 0x1})
/mnt/vss/_work/1/s/cli/azd/pkg/ext/hooks_runner.go:89 +0x7b
github.com/azure/azure-dev/cli/azd/pkg/ext.(*HooksRunner).Invoke(0xc0001b4de0, {0x560354aa5b48, 0xc000284750}, {0xc0005d7098, 0x1, 0x1}, 0xc0000bb0b8)
/mnt/vss/_work/1/s/cli/azd/pkg/ext/hooks_runner.go:74 +0xf5
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*HooksMiddleware).registerCommandHooks(0xc00011b7c0, {0x560354aa5b48, 0xc000284750}, 0xc0002854a0, 0xc00002f700, 0xc0003d4dc0)
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/hooks.go:105 +0x2d5
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*HooksMiddleware).Run(0xc00011b7c0, {0x560354aa5b48, 0xc000284750}, 0xc0003d4dc0)
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/hooks.go:66 +0x1be
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x560354aa5b48, 0xc000284750})
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:109 +0x2b8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*TelemetryMiddleware).Run(0xc000124dc0, {0x560354aa5b48, 0xc0000256e0}, 0xc0003d4dc0)
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/telemetry.go:78 +0x8ee
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x560354aa5b48, 0xc0000256e0})
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:109 +0x2b8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*UxMiddleware).Run(0xc0000127b0, {0x560354aa5b48, 0xc0000256e0}, 0xc0003d4dc0)
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/ux.go:32 +0xa9
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x560354aa5b48, 0xc0000256e0})
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:109 +0x2b8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*DebugMiddleware).Run(0xc000012780, {0x560354aa5b48, 0xc0000256e0}, 0xc0003d4dc0)
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/debug.go:48 +0x382
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x560354aa5b48, 0xc0000256e0})
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:109 +0x2b8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction(0xc00046d520, {0x560354aa5b48, 0xc0000256e0}, 0xc0001b4ba0, {0xc0001300c0, 0x11})
/mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:130 +0x137
github.com/azure/azure-dev/cli/azd/cmd.(*CobraBuilder).configureActionResolver.func1(0xc0004cd8c8, {0xc000124b80, 0x0, 0x1})
/mnt/vss/_work/1/s/cli/azd/cmd/cobra_builder.go:130 +0x386
github.com/spf13/cobra.(*Command).execute(0xc0004cd8c8, {0xc000124b70, 0x1, 0x1})
/home/cloudtest/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:856 +0x68a
github.com/spf13/cobra.(*Command).ExecuteC(0xc000490dc8)
/home/cloudtest/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:974 +0x38d
github.com/spf13/cobra.(*Command).Execute(...)
/home/cloudtest/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/home/cloudtest/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:895
main.main()
/mnt/vss/_work/1/s/cli/azd/main.go:65 +0x24b
Error: Process completed with exit code 2.

@cassiebreviu , this looks like an issue with azd not handling an empty hook: https://github.com/Azure-Samples/contoso-creative-writer/blob/main/azure.yaml#L29
Try commenting the name of the hook as well (or removing it if you don't need it)


train error: after a time,  NaN or Inf found in input tensor.

Hello,
executing
python train.py --dataset owndataset --vit_name R50-ViT-B_16 --batch_size 12 --max_iterations 1000 --max_epochs 350
Any idea for the reasons for this?
iteration 755 : loss : 0.232612, loss_ce: 0.031451
iteration 756 : loss : 0.235377, loss_ce: 0.039011
iteration 757 : loss : 0.235090, loss_ce: 0.031103
iteration 758 : loss : 0.234754, loss_ce: 0.035912
iteration 759 : loss : 0.242864, loss_ce: 0.030254
iteration 760 : loss : 0.243939, loss_ce: 0.029230
11%|███▍                            | 38/350 [04:56<41:17,  7.94s/it]iteration 761 : loss : 0.232332, loss_ce: 0.029950
iteration 762 : loss : 0.236290, loss_ce: 0.032639
iteration 763 : loss : 0.239043, loss_ce: 0.029412
iteration 764 : loss : 0.223232, loss_ce: 0.036379
iteration 765 : loss : 0.227415, loss_ce: 0.031555
iteration 766 : loss : 0.228688, loss_ce: 0.030908
iteration 767 : loss : 0.246761, loss_ce: 0.032261
iteration 768 : loss : 0.230575, loss_ce: 0.029101
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 769 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 770 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 771 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 772 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 773 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 774 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.
NaN or Inf found in input tensor.
iteration 775 : loss : nan, loss_ce: nan
NaN or Inf found in input tensor.

Hello, thanks for your questions. May I kindly ask what's the learning rate you used in batch_size=12?

The following is the start message
(base) user@pc1:~/project_TransUNet/TransUNet$ python train.py --dataset owndataset --vit_name R50-ViT-B_16 --batch_size 12 --max_iterations 1000 --max_epochs 350
Namespace(base_lr=0.005, batch_size=12, dataset='Owndataset', deterministic=1, exp='TU_Owndataset224', img_size=224, is_pretrain=True, list_dir='./lists/lists_Owndataset', max_epochs=350, max_iterations=1000, n_gpu=1, n_skip=3, num_classes=2, root_path='../data/Owndataset/train_npz', seed=1234, vit_name='R50-ViT-B_16', vit_patches_size=16)
The length of train set is: 234
20 iterations per epoch. 7000 max iterations
0%|                                         | 0/350 [00:00<?, ?it/s]iteration 1 : loss : 0.541960, loss_ce: 0.527893
I realized that I changed the train.py file in order to match the test.py
I added the following lines:
<     if args.batch_size != 24 and args.batch_size % 6 == 0:
<         args.base_lr *= args.batch_size / 24
=> Maybe it would be better if you didn't have to specify all the individual parameters for training again during the test, but only the checkpoint directory for the specific model values? My starting point was that due to the different LR treatment, the same command line arguments did not allow me to run a training and then a test.


Allow an execution policy of "Bypass"

Boxstarter sets the execution policy to Bypass but utils.checkExecutionPolicy() only accepted RemoteSigned and Unrestricted, which lead npm-windows-upgrade to refuse to run when triggered by Boxstarter.
Seeing as Bypass is less restrictive than Unrestricted, it would be great if it were supported.
In the meantime, we are using --no-execution-policy-check and it would be great to not need that.
What do you think?
Thanks!
- Oli

There's a test failure at https://ci.appveyor.com/project/felixrieseberg/npm-windows-upgrade/build/151/job/eryplrnkcaqq9143#L406:
actual:
   [ '-ExecutionPolicy',
     'Bypass',
     '-NoProfile',
     '-NoLogo',
     '& {& \'C:\\projects\\npm-windows-upgrade\\powershell\\upgrade-npm.ps1\' -version \'v1.0.0\' -NodePath \'C://test//path\' }' ],
  expected:
   [ '-NoProfile',
     '-NoLogo',
     '& {& \'C:\\projects\\npm-windows-upgrade\\powershell\\upgrade-npm.ps1\' -version \'v1.0.0\' -NodePath \'C://test//path\' }' ]

...which appears to be because the change in src/powershell.js at e09fade2489d45f2cff2da8bfec77be53039beff wasn't matched with a change in the expectedArgs in test/lib/powershell.js.
Would you like me to fix that as part of this pull request?

Thank you so much! As for the linting error: Nah, I can take that later.


Fixup ondemand pipeline branch

Currently we use default branch, but we should use input.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.96%. Comparing base (9998ac3) to head (ac230bb).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3793   +/-   ##
=======================================
  Coverage   64.96%   64.96%
=======================================
  Files         394      394
  Lines       21311    21311
=======================================
  Hits        13844    13844
  Misses       6140     6140
  Partials     1327     1327

Flag
Coverage Δ

unittests
64.96% <ø> (ø)

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

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


2 lines blocking from use in .NET 3.5

Stuck on an old version of .NET and Unity is throwing an error for two lines in Array2D.cs -- I'm not super great with code (artist brain!), so I don't know how to rewrite these in a 3.5 friendly way. Is this something you could help me with?
17 public Vector2Int GridSize => gridSize;
and
45 public T this[int i] => row[i];
Thank you!

Fixed! I replaced all the of
=>
with
{
get { return #; }
}

throughout the package

Hi, first of all, thanks for your comment and sorry for the issue!
I should've expected that someday, someone would have a compatibility issue with this new syntax...
This is from C# 7.0 and for the record, that feature is called expression-bodied member.
From Unity's website, it seems the first version that supports C# > 7.0 is 2018.3.
So, I assume you have a Unity version < 2018.3: if that is the case, and you are able to upgrade to the latest 2018 LTS version of Unity (2018.4.32), this will probably not break your project and you will be able to support the new syntax.
Otherwise, you did very well by changing this => syntax to good ol' { get { return ; } }.
This is exactly what I would've done to get you up and running.
Kudos to you and thanks for using Array2DEditor!
Any suggestion/improvement/issue submitted is welcome! :)

Thank you!! We're on 2018.4.1f, and that issue's been driving me nuts but we're a little stuck as far as versions go. I'll try the next step up and see if it helps.
I have a weird question regarding the Editor files though, is it possible to have 3 different arrays in the same ScriptableObject? I'm trying to replace our random LabyrinthAlgorithm with premade ScriptableObject blueprint assets for level layouts, and would like to have 3 tethered arrays (Floorplan, Door nodes, Decor nodes) that can all be edited from the same file.
Something like this:
https://imgur.com/Qq9PfwN
I've been trying to get just two in one file, but am starting to think there might be some reason I'm unaware of that this isn't possible? Or should I be able to do this?

That's actually not a weird question at all, and something that would be much more convenient to work with I guess.
In programming, we more often ask how much time will be needed to do this, not if that's possible :>
I'll try to make it possible, I have a few ideas in mind to try to achieve what you want.
I'll keep you posted as I progress! Meanwhile, good luck with your game :) Interesting look!

Oh dude, that's amazing. If you have an idea for how it can be done... I was just going to fumble around copy and pasting more. Thank you so much! Do you have a tip jar somewhere?

Hello again,
I've made some progress during the weekend.
I still have a weird bug in build where the app is crashing at execution for an odd reason.
I also need to figure out some other details about serialization, but so far, here's how it looks:

You can also directly use the arrays in a script, you're not limited to ScriptableObjects anymore:

This smells good but I'm still missing the key feature :) I'll comeback when I have more!

This is great! Exactly what I had been trying to do. It also seems like being able to repurpose individual arrays into a script could be a huge plus for anyone using this package, especially for one-off type scripts. Thank you so much for making this!

Hey!
The plugin is ready! You can pull from the master branch :) Hope you'll like it!
Please note that it currently doesn't display very well with arrays of Array2D's, but I don't think you'll need it really soon. I'll try to fix it in the meantime.
If you have any other suggestion, feel free! :) And thanks again for using the plugin, it's really great to see that it's useful to people!

Incredible. I will be implementing this as best I can this evening/weekend and will let you know how it goes! No worries at all about the syntax, just the price of working in one project for so many years D:


Lambda Release March 2022 - Update sample layers and existing versions

This PR updates the published layer ARNs and the updated versions to links

Are we standardizing the term ADOT Collector for Lambda? I am just a little confused if this is semantically correct.

yeah, it was standardized since we are using the components from the ADOT collector.


Components types not recognized by volar unplugin-vue-components >=0.19

Hello,
From version 0.19 onward, volar doesn't seem to recognize the component typing.  The version working for me is 0.18.5.
I created my project with create-vue.

After looking into it further, it seems it was an issue specifically with pnpm and mentioned in #355.
I will close this issue.


DartPad site doesn't open without the "www" subdomain

What happened?
Upon navigating to https://dartpad.dev , I either get a timeout error in my browser, or the site keeps loading for eternity.

https://www.dartpad.dev opens properly though.

I expected both URLs to redirect to the same webpage.

Steps to reproduce problem

Just navigate to https://dartpad.dev
Additional info
Browser
Browser: Microsoft Edge on Windows 10, Mozilla Firefox on Android 7
Version:
Are you using any extensions/plugins that affect website behavior
(particularly those that affect iframes, such as ad blockers)?
No
Are there any warnings or errors in your browser's JavaScript console?
If so, paste them below:
[paste warnings or errors here]

Machine
Operating system: Android
Version: 7
Your code
What code was in the editor, if any, when the failure occurred? You
can paste it in below:
// Paste code here.

DartPad's output
Did DartPad print anything to the console pane? If so, paste it below:
[paste console output here]

If you were running Flutter code, you can also paste an image of the
Flutter output directly into this bug report.

Seems both links are working for me. Did you close this as it is working for you now?

Yes, I did. They're working now, thank you.


How to set traget temperatures?

Hi guys,
before buying a panasonic climate: does this integration support setting the target temperature for a Panasonic Etherea Z Series?

This sales document suggests it uses the Comfort Cloud app, so yes. Worthwhile asking your salesperson which app it uses. This integration only works with Comfort Cloud.


if there are multiple licenses per component, these can be conjuctive or disjunctive

closes #2
 Szymon Lis<EMAIL_ADDRESS>Daimler TSS GmbH, legal info/Impressum

hi @matthewb66 could you please review / comment this PR? Thanks!


[NT-1942] Display Empty State on Table View

📲 What
This is just the base of what will be the complete empty state view for the main threaded comments page. Things still missing (to come in another PR):

Updates to empty view once the comments are refreshed and not empty.
Updates to empty view once comments are posted.
Styling updates, as there might be some blocking issues with design

🤔 Why
The main comments thread needs some form of empty state if their are no comments.
🛠 How
Initially fooled around with using the tableView.backgroundView to display empty state as the default table view background, which the user should only see if their are no cells to present. This was not simple when it came to styling and the table view cell approach offers more commonly used conventions and a datasource ready solution.
👀 See

Before 🐛
After 🦋

♿ Accessibility
🏎 Performance
✅ Acceptance criteria

[ ] Simply display an empty state when there are no comments.

⏰ TODO
In another PR:

[ ] Style the empty state
[ ] Fix issue with empty state not disappearing when new comment added and table is refreshed.
[ ] Wait for @tobitech 's PR on posting the comment to the table view to update empty state.

SwiftFormat found issues:

File
Rules

Kickstarter-iOS/DataSources/CommentsDataSource.swift:22:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/DataSources/CommentsDataSource.swift:25:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:51:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:55:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:56:1
warning: (redundantSelf) Insert/remove explicit self where applicable.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:57:1
warning: (redundantSelf) Insert/remove explicit self where applicable.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:57:1
warning: (wrap) Wrap lines that exceed the specified maximum width.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:57:1
warning: (wrapArguments) Align wrapped function arguments or collection elements.

Kickstarter-iOS/DataSources/CommentsDataSourceTests.swift:58:1
warning: (wrapArguments) Align wrapped function arguments or collection elements.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:13:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:43:1
warning: (blankLinesAroundMark) Insert blank line before and after MARK: comments.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:47:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:53:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:54:1
warning: (blankLinesAroundMark) Insert blank line before and after MARK: comments.

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:56:1
warning: (redundantSelf) Insert/remove explicit self where applicable.

Kickstarter-iOS/Views/Controllers/CommentsViewController.swift:90:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/Views/Controllers/CommentsViewControllerTests.swift:93:1
warning: (indent) Indent code in accordance with the scope level.

Kickstarter-iOS/Views/Controllers/CommentsViewControllerTests.swift:102:1
warning: (indent) Indent code in accordance with the scope level.

KsApi/models/templates/CommentsEnvelopeTemplates.swift:33:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/CommentsViewModel.swift:30:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/CommentsViewModel.swift:89:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/EmptyCommentsCellViewModel.swift:23:1
warning: (redundantSelf) Insert/remove explicit self where applicable.

Library/ViewModels/EmptyCommentsCellViewModel.swift:31:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/EmptyCommentsCellViewModelTests.swift:22:1
warning: (redundantSelf) Insert/remove explicit self where applicable.

  Generated by :no_entry_sign: Danger

@justinswart @singhhari  Is it possible to merge in this guy, and I'll open a separate PR for the styling/addition of composer view/updates to empty state?

SwiftFormat found issues:

File
Rules

Kickstarter-iOS/Views/Cells/EmptyCommentsCell.swift:41:1
warning: (unusedArguments) Mark unused function arguments with _.

  Generated by :no_entry_sign: Danger