Rerun dedup capbilities

This ticket outlines the motivation and proposed strategy behind adding in the ability to re-run the codes efficiently without restarting from scratch everytime. In the end, we should only start regenerating deleting all existing outputs from scratch when the user changes input argument (s) (i.e. different bounding box, different mask, different multilooking factor, etc.).
For each new ARIA-tools call, I propose writing a sorted dictionary of user input arguments to file (omitting the reference to the number of threads and verbose mode, which aren't relevant).
Behind this reference record, I have brainstormed a check and filter in the main ARIA_standardproduct class that is setup after the spatiotemporal sorting subfunction and behaves as outlined below for whenever a user relaunches an ARIA-tools call:

Compare new user inputs with the aforementioned record of user input arguments stored from the previous run.

If they are the same then do a walk of the output directory to get a list of products already produced, compare it with the dictionary of IFGs passed by the class and purge references to existing products. Thus, only new IFG products are to be extracted.
If certain arguments are different (e.g., mask, multilooking, etc) then regenerate all outputs from scratch.
However, if some specific arguments are different (e.g. specified layers, tropospheric corrections) then just generate new requested products. E.g. if a user wishes to now extract amplitude layers (whereas before only coherence was specified) then just extract the amplitude layers without regenerating coherence outputs. If tropospheric corrections were requested now and weren't before, just generate those corrections without regenerating anything else.

If no differences are flagged, then just print a message stating input CSV/arguments haven't changed, thus outputs have not been modified.

I envision that this routine would be a separate subfunction of the ARIA_standardproduct class that is only triggered when toggled by a separate argument in the main ariaExtract or ariaTSsetup calls, since it obviously wouldn't make sense to filter out products for ariaPlot calls which generate figures illustrating cumulative metrics.
This is the cleanest logic I could formulate at the moment, and indeed perhaps it would make more sense once I have a working version implementing such proposed changes. But if any of you have specific comments and requested features/adjustments of relevance to these efforts, please discuss them here.

Storing a physical dictionary of inputs arguments would not require much overhead. However a clean, yet less transparent alternative would be to generate a unique hash and store it to a hash file that may be referenced vis-a-vis successive user inputs.
Just as a note, from what I've seen it is recommended that such a dictionary of input arguments is to be serialized as JSON before hashing. E.g.:
import hashlib
import json

a={'intputfile':'/path/to/file', 'bbox':'-9 9 10 12'}
print(hashlib.sha1(json.dumps(a, sort_keys=True).encode()).hexdigest())

Source: https://stackoverflow.com/questions/16092594/how-to-create-a-unique-key-for-a-dictionary-in-python
Any strong feelings one way or the other? I.e. for storing hash files as opposed to a full dictionary of input arguments (which should be very small anyways). I personally prefer writing out a full dictionary as I outlined above because it is more transparent, but am open to discussion.

@sssangha Lets also dig up the discussion on ARIA-tools slack channel and make a table per layer on what are parameters that can change and which cannot.

I believe that the cutline could be translated as part of the hash. its not as transparent as it depends on many different variables. But there are scenarios where a user could take a certain bbox and then forced it with mo to still have the original cutline. Under that scenario the arguments have changed but the cutline did not.

I'm not sure why you would need to use logging for that. I would just write to a json file using dump:
if __name__ == "__main__":
    parser = create_parser()
    args = parser.parse_args()

    if args.modify_last_run:
        with open("user-inputs.json") as f:
            # Restore args to the previous state
            args.__dict__.update(json.load(f))
    else:
        with open("user-inputs.json", "w") as f:
            json.dump(f, args.__dict__)

    # Call main routine...

Note that this will only work if your args consist entirely of json serializable values (str, int, bool, float, None, list, dict). If you are doing fancier arg parsing that may store arbitrary python objects, then you can use pickle instead (although be aware than this has some security implications).
As for the discussion about using a hash, here are the main desirable properties of hashes:

They are irreversible
They are deterministic
They are small

I'll also offer some hypothetical problems for which hashing the inputs would be an appropriate solution:

Security: You want to verify that the user has access to a secret, but you don't want to be able to read the secret directly.
Data integrity: You want to verify that you have successfully obtained an exact copy of a large file.
Mapping: You want to evenly distribute some collection of input data over an output space such that input data is essentially mapped to a random node, except that the node is consistent across multiple computations of the mapping. (For example implementing a dictionary, distributed database, or load balancer).

As far as I can tell, number 1 may actually be a disadvantage to your application, and number 2 and 3 are both attainable by simply writing a JSON file. So it is my opinion, that there is no reason to do any hashing here, and I would just write the inputs to a file using the code above.

@Askaholic for one of the variables that drive if there is a change is the cutline (json polygon) which depends on the following user input options:

bbox (SNWE, shapefile), this is user driven
union/intersection, which depends on the footprints of the data being available and can this change of data is added.
minimum overlap threshold (area in km^2)

There are different combination which could map to the same cutline. How would you recommend to handle this on to see if there is a change? The cutline gets computed as part based on these variables. The polygon itself might have machine precision changes that makes it almost identical.

I'd probably save the computed polygon along with the inputs, and just recompute it each time to compare against the saved version. You'll have to build in some sort of "isclose" functionality to check if the polygons are basically the same.

Ok that sounds pretty transparent, lets go down that route instead of the hash.

closing, as it has been addressed in #454


Optimize package installation

Performance:
Look at this performance data to have an intuition of how npm install costs during dotnet build /t:GenerateCode. Take dotnet build /t:GenerateCode .\sdk\anomalydetector\Azure.AI.AnomalyDetector\src\ as an example:

Total duration: 1.67min
npm install: 1.11min
emitter (dotnet generator inclusive): 14.59sec

npm install takes 1.11 out of 1.67 min, and I haven't included the spec copy process from sparse location to project location.
Problem:
Currently npm install happens every time when user builds SDK and every time pipeline tries to regen SDK for every project. There is a lot of duplicate installation.
Solution:
The solution in this PR is moving npm install from each project to the root folder so that

For pipeline, it only needs to happen once.
For end user, it only installs when emitter upgrades.

Remaining issue:
In pipeline, we run dotnet build /t:GenerateCode in parallel. Therefore, there is a chance npm install is called from different processes simultaneously.
Solutions to this remaining issue are:

Add a file lock to protect npm install. But this solution is not recommended by engineer team.
Add a parameter like dotnet build /t:GenerateCode /p:InstallDependency. In pipeline, we install dependency at the begging and set InstallDependency false. In user case, InstallDependency is default to true.

@pshao25, did you see any pipeline failure as a result of this remaining issue?
I am trying to understand the importance of this task.

@pshao25, did you see any pipeline failure as a result of this remaining issue? I am trying to understand the importance of this task.

This issue happens in multi-process scenario. So it is a random issue. But considering such long npm install takes, it is very likely to happen.
We currently don't have any pipeline fails because we haven't got https://github.com/Azure/azure-sdk-tools/pull/5690 merged.
It takes more than 1 min to install! Our generator only takes 15 secs from end to end! Why not important?


Update live with current master

@tdykstra that PR might result in a number of warnings because it relies on new snippets in the samples repo.

@pkulikov When will the snippets be added to the samples repo?

@pkulikov When will the snippets be added to the samples repo?

They are added, already in master. The samples' master should be merged into live, first, to my knowledge of the build process.

I've kicked off a manual build of the live branch offline, When that finishes, you can rebuild this PR.


MLT-651

https://zimmermanzimmerman.atlassian.net/secure/RapidBoard.jspa?rapidView=40&projectKey=MLT&modal=detail&selectedIssue=MLT-651&assignee=5ce283a0f433c20ff1130508

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Version 1.1

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin Hi admin,
Sorry, this is my first time updating a conda-forge package. The CI checks are failing with a checksum missmatch
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=271458&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d&l=441
I don't know how this is is happening. I checked the SHA256 myself and it matches the one on PyPI (2f24516dc3933df9154916812abd250d9327ca4e5b7c4af141f872dcd0a5850d) but docker is generating something completely different. Do you have an idea how I can resolve this?
Thanks
Callum

@conda-forge-admin Hi admin,
Sorry, this is my first time updating a conda-forge package. The CI checks are failing with a checksum missmatch
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=271458&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d&l=441
I don't know how this is is happening. I checked the SHA256 myself and it matches the one on PyPI (2f24516dc3933df9154916812abd250d9327ca4e5b7c4af141f872dcd0a5850d) but docker is generating something completely different. Do you have an idea how I can resolve this?
Thanks
Callum

Sorry, ignore that comment! Critical failure to google on my part. Fixed it now
Apologies
Callum

Sorry, ignore that comment! Critical failure to google on my part. Fixed it now
Apologies
Callum


stylize timetable component

takes too much space atm
we should simply read from a json such that we can easily create other formats (e.g. ical, pdf, ...)
add timezone conversion

see #20; we're not using the program page this time so lets park this


[Rest Server] Fix auth file issue in protocol converter

Fix authentication file issue in protocol converter.

Coverage increased (+4.2%) to 55.469% when pulling 0b07e988dbaa274f46b4dc6be7531355b84df0b7 on xiongyf/fix-converter into f1c19da63993ca7e89e63d7ebb3deea3554f3c0a on master.

BREAKING CHANGE

The rest server should treat job config file as plain text, so accept header feature should not be implemented


dead code in host/cli/download.go?

The host/cli/download.go file fails to build for me (undefined: rootKeys), but it doesn't seem to be a problem on CI. It also look like it's not being used by any other packages. Can this code be removed?

I think i see what's going on: tup is generating a host/cli/root_keys.go file.


Tooling API versus native run difference

Expected Behavior
Error messages should be visible through the tooling API

Current Behavior

When I run a project that uses exec/commandLine and the exec'd external process errors (originaly it was pkg-config but is reproducible with e.g. ls foobar) then I would expect to see the error message. I can see the error if I run Gradle locally but I have (so far) not been able to reveal the error when running through the tooling api.
Context

I want to use the tooling api to execute the gradle build which allows me to inject 'actions' prior to the model being parsed and built. Secondly, when running a project through IntelliJ this problem of the errors being lost also applies.
Steps to Reproduce

Using a sample project e.g.

task foo {
    doLast {
        exec {
            commandLine("ls", "foobar")
//            ignoreExitValue(true)
//            commandLine("pkg-config", "--libs", "gtk+-2.0")
        }
        println ("### AFTER COMMAND")
    }
}

running locally I get (as expected)
 $ gradle foo
> Task :foo FAILED
ls: cannot access 'foobar': No such file or directory

FAILURE: Build failed with an exception.

* Where:
Build file '/home/rnc/Work/Gradle/error-test/build.gradle' line: 10

* What went wrong:
Execution failed for task ':foo'.
> Process 'command 'ls'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

However, if I run the project in IntelliJ I get
Build file '/home/rnc/Work/Gradle/error-test/build.gradle' line: 10

Execution failed for task ':foo'.
> Process 'command 'ls'' finished with non-zero exit value 2

If I run the project using my CLI (that uses the tooling api ) - see https://github.com/project-ncl/gradle-manipulator/blob/master/cli/src/main/java/org/jboss/gm/cli/Main.java then I get
DEBUG o.g.t.i.c.l.DefaultToolingImplementationLoader - Using tooling provider classpath: [/home/rnc/Software/gradle-4.8/lib/annotations-13.0.jar, /home/rnc/Software/gradle-4.8/lib/ant-1.9.11.jar, /home/rnc/Software/gradle-4.8/lib/ant-launcher-1.9.11.jar, /home/rnc/Software/gradle-4.8/lib/asm-6.1.1.jar, /home/rnc/Software/gradle-4.8/lib/asm-analysis-6.1.1.jar, /home/rnc/Software/gradle-4.8/lib/asm-commons-6.1.1.jar, /home/rnc/Software/gradle-4.8/lib/asm-tree-6.1.1.jar, /home/rnc/Software/gradle-4.8/lib/commons-collections-3.2.2.jar, /home/rnc/Software/gradle-4.8/lib/commons-compress-1.14.jar, /home/rnc/Software/gradle-4.8/lib/commons-io-2.4.jar, /home/rnc/Software/gradle-4.8/lib/commons-lang-2.6.jar, /home/rnc/Software/gradle-4.8/lib/fastutil-7.2.1-min.jar, /home/rnc/Software/gradle-4.8/lib/gradle-base-services-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-base-services-groovy-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-build-cache-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-build-option-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-cli-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-core-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-core-api-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-docs-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-installation-beacon-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-jvm-services-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-kotlin-dsl-0.17.5.jar, /home/rnc/Software/gradle-4.8/lib/gradle-kotlin-dsl-provider-plugins-0.17.5.jar, /home/rnc/Software/gradle-4.8/lib/gradle-kotlin-dsl-provider-spi-0.17.5.jar, /home/rnc/Software/gradle-4.8/lib/gradle-kotlin-dsl-tooling-builders-0.17.5.jar, /home/rnc/Software/gradle-4.8/lib/gradle-kotlin-dsl-tooling-models-0.17.5.jar, /home/rnc/Software/gradle-4.8/lib/gradle-launcher-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-logging-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-messaging-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-model-core-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-model-groovy-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-native-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-persistent-cache-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-process-services-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-resources-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-runtime-api-info-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-tooling-api-4.8.jar, /home/rnc/Software/gradle-4.8/lib/gradle-wrapper-4.8.jar, /home/rnc/Software/gradle-4.8/lib/groovy-all-2.4.12.jar, /home/rnc/Software/gradle-4.8/lib/guava-jdk5-17.0.jar, /home/rnc/Software/gradle-4.8/lib/jansi-1.14.jar, /home/rnc/Software/gradle-4.8/lib/javax.inject-1.jar, /home/rnc/Software/gradle-4.8/lib/jcip-annotations-1.0.jar, /home/rnc/Software/gradle-4.8/lib/jcl-over-slf4j-1.7.16.jar, /home/rnc/Software/gradle-4.8/lib/jsr305-2.0.1.jar, /home/rnc/Software/gradle-4.8/lib/jul-to-slf4j-1.7.16.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-compiler-embeddable-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-reflect-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-sam-with-receiver-compiler-plugin-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-script-runtime-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-stdlib-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-stdlib-jdk7-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kotlin-stdlib-jdk8-1.2.41.jar, /home/rnc/Software/gradle-4.8/lib/kryo-2.20.jar, /home/rnc/Software/gradle-4.8/lib/log4j-over-slf4j-1.7.16.jar, /home/rnc/Software/gradle-4.8/lib/minlog-1.2.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-freebsd-amd64-libcpp-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-freebsd-amd64-libstdcpp-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-freebsd-i386-libcpp-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-freebsd-i386-libstdcpp-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-amd64-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-amd64-ncurses5-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-amd64-ncurses6-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-i386-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-i386-ncurses5-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-linux-i386-ncurses6-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-osx-amd64-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-osx-i386-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-windows-amd64-0.14.jar, /home/rnc/Software/gradle-4.8/lib/native-platform-windows-i386-0.14.jar, /home/rnc/Software/gradle-4.8/lib/objenesis-1.2.jar, /home/rnc/Software/gradle-4.8/lib/reflectasm-1.07-shaded.jar, /home/rnc/Software/gradle-4.8/lib/slf4j-api-1.7.16.jar, /home/rnc/Software/gradle-4.8/lib/xml-apis-1.4.01.jar]
The client will now receive all logging from the daemon (pid: 2812337). The daemon log file: /home/rnc/.gradle/daemon/4.8/daemon-2812337.out.log
Starting build in new daemon [memory: 5.5 GB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Using 8 worker leases.
Starting Build
Settings evaluated using settings file '/home/rnc/Work/Gradle/error-test/settings.gradle'.
Projects loaded. Root project using build file '/home/rnc/Work/Gradle/error-test/build.gradle'.
Included projects: [root project 'error-test']

> Configure project :
Evaluating root project 'error-test' using build file '/home/rnc/Work/Gradle/error-test/build.gradle'.
All projects evaluated.
Selected primary task 'foo' from project :
Tasks to be executed: [task ':foo']
:foo (Thread[Task worker for ':',5,main]) started.

> Task :foo FAILED
Task ':foo' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Starting process 'command 'ls''. Working directory: /home/rnc/Work/Gradle/error-test Command: ls foobar
:foo (Thread[Task worker for ':',5,main]) completed. Took 0.167 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':foo'.
> A problem occurred starting process 'command 'ls''

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':foo'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
....
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'ls''
        at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:231)
        at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:209)
        at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:355)
        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:85)
        at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
        ... 3 more
Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'ls'
        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
        at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:67)
        ... 4 more
Caused by: java.io.IOException: Cannot run program "ls" (in directory "/home/rnc/Work/Gradle/error-test"): error=2, No such file or directory
        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
        ... 6 more
Caused by: java.io.IOException: error=2, No such file or directory
        ... 7 more

In the latter, I do not see ls: cannot access 'foobar': No such file or directory. I have tried with various versions (e.g. 5.6.2).
Thanks!
Your Environment

Build scan URL:

I have just tried to replicate this under Gradle 6.0.1 and I get the same results.

Given that the same issue appears in IntelliJ it would appear to be a bug in the Tooling API that it is masking error output?

This is still valid.

Sorry that you're having trouble with Gradle!
Could you please provide a minimal reproducer (with a tooling API launcher too) as a self-contained project in the archive or Github repo? A reproducer project can really help us track down and fix your problem quicker.  We may also be able to suggest workarounds or ways to avoid the problem if we can reproduce it.
I suspect that there might be two different issues. One is that the IDEA hides the command's output. The other one, as suggested by IOException in the stack trace, is that the build cannot find ls executable at all. It might be beneficial to log the content of the PATH environment variable in the reproducer to track the second problem down.
This issue will be closed after 7 days unless you can provide more information.

@mlopatkin Thanks for the reply. Obviously its been a while so I've done further testing on this with a variety of Gradle versions and with my current usage of the tooling API (See below, a rather hacked up extract from my CLI tool referenced above) then while it does print the exception Caused by: org.gradle.process.internal.ExecException: Process 'command 'ls'' finished with non-zero exit value 2  it does correctly print in the console output the cause ls: cannot access 'foobar': No such file or directory if the setStandardOutput/setStandardError are enabled correctly.
However I cannot persuade IntelliJ to display that output so my current thought is this is not a bug in Gradle as such but a bug in IntelliJ's use of the Tooling API. So apologies for the noise :-)
A more reproducible problem (with test case) also related to tooling is https://github.com/gradle/gradle/issues/15269 if you have time please :-)

apply plugin: 'java'
repositories {
    maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
dependencies {
    implementation "org.gradle:gradle-tooling-api:5.6.4"
    runtimeOnly 'org.slf4j:slf4j-simple:1.7.10'
}
import org.gradle.tooling.*

task foo {
    doLast {
        exec {
            commandLine("ls", "foobar")
//            ignoreExitValue(true)
//            commandLine("pkg-config", "--libs", "gtk+-2.0")
        }
        println ("### AFTER COMMAND")
    }
}
task bar {
    doLast {
        ProjectConnection connection = GradleConnector.newConnector()
                .forProjectDirectory(new File("${rootProject.projectDir}"))
                .useBuildDistribution()
                .connect();

        try {
            BuildLauncher build = connection.newBuild();

            build.forTasks("foo");
            build.setStandardOutput(System.out);
            build.setStandardError(System.err);

            build.run();
        } catch (BuildException e) {
            logger.error("Caught exception running build", e.getCause());
            throw new GradleException(e.toString());
        } finally {
            connection.close();
        }
    }
}

Thanks for the reply. Sorry that it took us so much time to actually get to this issue. I'm glad you've found at least a partial solution.
As you've mentioned the integration with IDEA is likely out of the scope of the Gradle project so I'm closing this issue then.
I can't promise any timeline for the other issue you've mentioned but it is on our radars.


Deleting a file in the current editor while focus is in terminal will focus the editor

VSCode Version: Code - Insiders 1.4.0-insider (4c0676ab472a92f5269ac4995cdc81db8bc94896, 2016-07-08T15:13:23.068Z)
OS Version: Linux x64 4.4.0-28-generic, Ubuntu 16.04

Steps to Reproduce:

Open and pin file bar
Open and pin file foo
Open integrated terminal
Run rm foo, notice focus is moved from the terminal to the bar editor

👍  a UI regression from having stacks because before when closing an editor we would not activate the next one in the stack, but now we do.


Updated Plane Finder client version

Thanks for the contribution; however this is already covered by pull request #331 https://github.com/jprochazka/adsb-receiver/issues/331

Specifically this pull request:  https://github.com/Romeo-Golf/adsb-receiver/commit/6ee02d5e8f8b7dca07c0d3e325f5769ee901a0bb

@jprochazka
This pull request is duplciated by #342, so if that is accepted then this can be closed.


missing '-n, --disable-notify' option from deploygate action

It would be really nice if deploygate action has --desable-notify option.
-n, --disable_notify disable notification
I'm using my shell as a workaround for now.
https://gist.github.com/toshi0383/9a56c6f3c627c4f9ffc7

hey @toshi0383! thanks for the feature request, i am going to close this for now and share the idea with the team. we will reopen the issue as we get a chance to revisit this. feel free to checkout countdown if you would like to tackle this in a pull request! thanks!

@ohwutup Thanks. What is countdown for ??

@toshi0383 it is just the repo that contains references to all the sub tools so you can do all your editing under one directory structure!


how to set Spiderfier Marker's icon

I try to use package agm-oms to implement the marker spiderfier on google map. I followed the instructions in (https://github.com/SebastianM/angular-google-maps/pull/1329) Right now, the markers in spiderfier are overlapped with each other. I hope to find a way to set the icon for the marker spiderfier so that: before clicking the marker spiderfier, the icon is like a marker cluster ( which has the number of markers in the icon). After clicking the spiderfier, each marker in the spiderfier displays their own icon.
Any ideas on how to achieve the above feature?
Thank you very much in advance for your help.

Hey, we don't support agm-oms yet, but thanks for bringing it to my attention, I destaled it and will eventually get around reviewing, merging, and publishing it


Fixes 0.13 support via using the 0.13 required_providers syntax

what

Fixes 0.13 support
Pins Terraform >= 0.12.26

why

The minimum terraform was increased due to the required_providers syntax backwards compatibility.
When running this module on 0.13, a terraform init results in the below error regardless of the fact that the correct required_providers syntax being used in the root module. I believe this is due to there never being a hashicorp/datadog provider during 0.12 as the datadog provider was just recently published as a community provider. I think this causes Terraform 0.13 to try to lookup the datadog provider as if it was previously published via hashicorp/, which blows up like below.

Error: Failed to install providers

Could not find required providers, but found possible alternatives:

  hashicorp/datadog -> datadog/datadog

If these suggestions look correct, upgrade your configuration with the
following command:

The following remote modules must also be upgraded for Terraform 0.13
compatibility:
- module.datadog_integration at
git::https://github.com/cloudposse/terraform-aws-datadog-integration.git?ref=tags/0.5.0

references

See discussion in Slack: https://sweetops.slack.com/archives/CCT1E7JJY/p1603214212249300

@Gowiem
please do the same here https://github.com/cloudposse/terraform-aws-datadog-integration/blob/master/examples/complete/versions.tf

/test all

/test all


ImportError: cannot import name '_mask' from 'pycocotools'

ImportError: cannot import name '_mask' from 'pycocotools'
how can I fix it? thanks.

a silly workaround is just comenting out

a silly workaround is just commenting out
# import pycocotools._mask as _mask
from
lib/pycocotools/coco.py
lib/pycocotools/cocoeval.py
lib/datasets/coco.py
since this repo doesn't use masks..

So ... is this indeed a feasible and correct way to solve this problem?
And why there is the code import pycocotools._mask as _mask if it doesn't use masks?

My take is that masks are used for instance segmentation tasks and not detection tasks. That's why you can simply comment out and still work frcnn😇

My take is that masks are used for instance segmentation tasks and not detection tasks. That's why you can simply comment out and still work frcnn😇

なるほど…僕の理解がずれてました…
ちなみにコメントアウトするべき
import pycocotools._mask as _maskが
lib/pycocotools/coco.py
lib/pycocotools/cocoeval.py
lib/datasets/coco.py
で見つからないです。
すみませんが何故でしょうか？

You can install pycoctools with mask module compiled via conda or pip.
In other hand, you can compile _mask module from .pyx file with cython.

@shirui-japina
pycocotools should be where you installed with pip or whatever.
you should modify the coco.py script.
Another good workaround is installing pycocotools properly.
Try:
pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
This should work for Linux.

You can install pycoctools with mask module compiled via conda or pip.
In other hand, you can compile _mask module from .pyx file with cython.

Thanks for your comment.
I tried to
pip install pycocotools
but got error as below:

Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

So then I installed Visual Studio, but it doesn't work.
Do you know what I should do now？

@shirui-japina
pycocotools should be where you installed with pip or whatever.
you should modify the coco.py script.
Another good workaround is installing pycocotools properly.
Try:
pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
This should work for Linux.

Thanks for your comment.
I'll try to install pycocotools.


feat: decode KZG trusted setup at compile time

Hm this is pretty slow, 3.8s of const-eval straight on my machine

Hm this is pretty slow, 3.8s of const-eval straight on my machine

Idea is awesome btw, but why is it so slow?

I haven't looked into individual function performance (not sure how to do this for const-eval), but I would assume it's the combination that:

const-eval code is interpreted without optimizations
the file to decode is quite big
and that we can't use &mut

every \n parsed iterates byte per byte, creating 2 new strings
every hex decode creates a new allocation for each word, then copies it into the output buffer 4000+ times, I assume this is the biggest offender

is PR worth adding, not sure what we gain here?

Perf is unacceptable, will have to think about this more

Will close PR, we can open it again if there is a change


Keyboard manager, one character backspace

Description of the new feature / enhancement
Setting a key to backspace.
Being able to delete only one character per tap on the key.
Right now you can set a key to be the backspace but it's going to delete the full word like control+backspace.
Scenario when this would be used?
When you are typing a lot, and fast, you are going to press the backspace a few times and the movement made by the wrist is not optimal (ulnar deviation).
With this feature you could give to a more reachable key, that is not used much such as AltGr (that can be made by typing control+alt), the backspace capabilities saving time and pain.
Supporting information
https://www.youtube.com/watch?v=-C5DDoIEm4s  (0.28s)
https://academic.oup.com/ptj/article/83/9/816/2805324

Right now you can set a key to be the backspace but it's going to delete the full word like control+backspace.

If i give the A key che backspace capabilities, like shown in your screenshot, when I press A I'll delete the previous word, entirely, as if i clicked control+backspace.
It would be much better to have the normal ability to delete one character with one tap on A and, if wanted, the entire word if pressed control+A.

Thanks for the clarification. I can't reproduce this though, for me it works as expected, i.e. it deletes only one character. Could you attach /bugreport? Thanks in advance.

I don't see anything wrong in the logs. Do you use some special kind of keyboard? Or some additional software related to keyboard/layouts?
Also, if you open this page https://keyboardtestt.com/ and press remapped key (e.g. A from my screenshot) does it maybe show Ctrl being pressed as well? Or only Backspace? /needinfo

I have a LENOVO NB TB13S I5-1135G7 8GB 256SSD 13.3FHD WIN10PRO that I use to work then, at home, I plug it in to a docking station and there I have a G413 Carbon keyboard from Logitech. In both keyboards the AltGR key doesn't delete one single character but the full word.
I have no additional keyboard software installed and only use PowerToys for my shortcuts (this is why I started the issue thinking it could be a new feature). Being curious I tried putting the keyboard settings in English but it still doesn't work.
I checked and the only thing that I can think (but I'm really not sure) is the Lenovo Hotkeys software that is installed on the machine. It allows me to choose some battery usage and fps settings form 2 keyboard shortcuts Fn+Q and Fn+R.

i loaded this on my surface laptop 4 and can't repro this directly with the json file.  with and without an external keyboard,  I'm running EN-US however.
alt-right does a single char, not a full work.  Something is throwing in a ctrl when hitting alt-right to you're getting a ctrl-backspace out.

It has been a while but now when I put the English Keyboard the AltGr backspace works as a normal Backspace and not as a Control+Backspace
Still does not work with the Italian Keyboard settings.

AltGr = Ctrl + Alt


Double Commander

Project description
GTK mc-like dual panel file browser ::: very nice for mc users... :)
"Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas."
Metadata

homepage URL: https://doublecmd.sourceforge.io/
source URL: https://github.com/doublecmd/doublecmd
license: https://www.gnu.org/philosophy/free-sw.html
platforms: linux, ???...

Man, this is a Pascal app! I never tried to build such a thing before...

i'm just suggesting because i'm migrating from debian where i use it... :)
... though have no idea about building or packaging... :(
debian has it, if it helps in any way....
https://packages.debian.org/search?suite=stable&section=all&arch=any&searchon=names&keywords=doublecmd
i use doublecmd-gtk

Debian rarely provides their build scripts. I am reading the ubiquitous AUR (https://archlinux.org/packages/community/x86_64/doublecmd-qt5/).
However, I have seen that the GTK they use is the old and abandoned-by-us GTK2.

i do not "depend" on gnome/gtk... and was about to eventually give a try qt software... so feel free not to oblige to my request, though i do think is a nice piece of software that deserves a chance of availability... maybe wait for them to upgrade their dependencies...
( hour after )
... i just tried krusader... and filled this bug report: https://github.com/NixOS/nixpkgs/issues/178445
O.o ... so seams there is not a nice working dual panel graphical browser available... :(

Perfect. Friday I will look at this.

It means that now the Hydra bot will build the caches in order to include this package.
You can follow the progress of it in the link below:
https://nixpk.gs/pr-tracker.html?pr=179260
When it reaches nixpkgs-unstable you can possibly call it.

... and is now available... :) ... and installed... :)
Seams to work fine, except...
When i try to "Commands" -> "Search", "New search instance..." or "Synchronize dirs...", sometimes i get a "Function not supported!" error... :( ... After opening the program, if it happens, it always happens until i close it... If does do happen, then does not happen until i close it... o.O?... And now that i'm trying to repeat the error, all seams to work fine... Have no idea what was that... The debian version never gave this error... Since i'm not being able to repeat this error, i will not report it until if it ever happens in a repeatable way... (5 min later) Yap ::: no error for several program restarts, cannot repeat it,  have no idea on what may have caused the error (maybe is just be from sharing my home (~) with both versions, of debian and /nix).
& thank you for packaging this... :)

for mere curiosity ::: do you have plans to pack also the "qt" version?

Isn't this the QT version already? Or it has support for older QT releases?

lolz ::: yes, you are right... sorry, it does look like gtk version, here in my debian, i presumed it was the same...
so then, do you have any plans to also pack the "gtk" version?...

I don't feel motivated to do it because it uses GTK2, an abandoned release of GTK.

The Free Pascal support for GTK3 is in very rough shape. GTK2 is preferred and Qt5 is getting there. @alpha-bit what problem do you have with the qt5 version that gtk2 will solve?

@peterhoeg, i have no "problem" "with the qt5 version"... :) ... it works just fine... :) ... unlike krusader ::: https://github.com/NixOS/nixpkgs/issues/178445 ... :(
I just asked "do you have any plans to also pack the "gtk" version?" out of curiosity... :)
And with the small concern that if some one only uses only gnome/gtk and installs the doublecmd (qt5) ::: will be also installing some qt5 libraries just for doublecmd, when the necessary libraries for the doublecmd (gtk) are probably already installed and being shared among other gtk programs.
For example, if i want to make a small-as-possible live CD based on gnome, and the only installed qt5 package is doublecmd (qt5) ::: some space could be spared with the doublecmd (gtk) instead...
O.o ... i presume.
So, there is not a big "problem", that i don't mind now ::: but is also not perfect... i do undersand that @AndersonTorres might rather wait for "Free Pascal support for GTK3", and agree that adding "GTK2, an abandoned release of GTK" may just be a swim against the current and a waste of time (if no one needs it for a stronger reason).

And with the small concern that if some one only uses only gnome/gtk and installs the doublecmd (qt5) ::: will be also installing some qt5 libraries just for
doublecmd, when the necessary libraries for the doublecmd (gtk) are probably already installed and being shared among other gtk programs.

Fortunately space is cheap, so it doesn’t seem like something truly worth optimizing for. Once you start dragging in graphical programs, you’re going to carry a lot of libraries.

For example, if i want to make a small-as-possible live CD based on gnome, and the only installed qt5 package is doublecmd (qt5) ::: some space could be
spared with the doublecmd (gtk) instead…

Use GNOME Commander in this case? I know it’s not packaged in nixpkgs, but that should be trivial to sort out.

"space is cheap" ... o.O?... & what does life has to do with price?...
... and sure GNOME Commander could be a solution ::: but is not in nixpgks... (as you mentioned)... and is not double-commander... maybe is better, i have not tried it ::: is also not in debian stable, that i use... by the screenshots i would presume that has less features and looks not so nice.
... on my part, for now i'm happy with having dblcmd qt ::: i have not yet decided which to choose: qt, gtk, other or none, to cross with my xmonad... and still far from any kind of release, if ever any... and just scouting for the possibility of using nixos, or debian, or both.

i do agree with Anderson ::: "the choice is obvious."
... and sorry, for bringing "life" into the subject... what i meant was ::: i don't care about "cheap" but rather well done... o.O?... a "cheaper" typical size DVD ::: costs more and takes more space than a mini-DVD, which does fit a pocked...
& yes, "This is getting off-topic"... but the thread is closed, i presume that now we are just drinking coffee, right?... :) ... "NixOS is so much nicer"... o.O?... lolz ::: at consuming hdd space and having broken packages?... i like debian because is stable, and distinguishes between "required,recommended and suggested" dependencies... i use debian since 2000, and every time i try some other distro ::: i end up getting back to debian... :) ... debian can be small, can be big, is quite stable, and others are always missing something i need... :) ... as for nix ::: i do like the one-file configuration.nix ... but still find unbearable when i bump into a "broken package" (why is it listed for install at all?), and miss the suggested/recommnended variations of packages... NixOS is yet not nice enough to replace my debian... :) ... and debian + /nix is very nice enough for now... :) ... i just run 3 personal machines ::: "so nothing big" at all... :)

This isn't particularly constructive, but I'll bite.

"NixOS is so much nicer"

at consuming hdd space

When you have multiple versions of the same package, you are bound to take up more space than on a distribution where only a single version can exist. The entire closure of bash (as an example) with all its transitive dependencies doesn't take up more space than bash and its dependencies on Debian. Complaining about NixOS using more space than traditional FHS distributions is a bit like complaining that water is wet.

and having broken packages?

Sure, we have broken packages. All distributions have broken packages (for various definitions of "broken" of course). Certain types of packages (KDE applications on !NixOS) is less likely to be tested well and as a consequence will be more likely to break, that's correct. Do we have more or less broken packages that others as a percentage of all packages? Are they more or less broken? I can't give you a quantifiable answer. In my experience broken packages has not been an issue.

but still find unbearable when i bump into a "broken package" (why is it listed for install at all?),

Because the existence of a package in the repository is orthogonal to its build status. Exactly the same way that a package in debian can also be installable but not fit for purpose due to bugs (or conflicts or pollution from the global environment and so on).

and miss the suggested/recommnended variations of packages...

Apart from overriding a given package which is of course always an option, some packages will allow you to toggle various features, but having an application's runtime environment be a product of the global environment is not something we strive for. It's pretty much the antithesis of what we're trying to do here.

NixOS is yet not nice enough to replace my debian... :)

That's fine, you do you. I was simply making the point that for my personal use-cases as well as those of the company in which I work have been a tremendous upgrade from Debian. Forget about "not even the same ballpark" - it's pretty much "not even playing the same game".

This isn't particularly constructive, but I'll bite.

O.o ... please do so... :) ... i think is constructive... i' learning about stuff... :)
... and ::: just having another coffee... :)
Debian takes me much (much, much, than with recommended) less space, because i only install required packages, never the recommend, never ever the suggested... :) ... nixos seams to do that some extent with configuration and package options... :) ... but still feel much less clear and customizable to me... :( ... or maybe just don't know, NixOS yet enough, how easy that would be... o.O?...

All distributions have broken packages

... though never seen it on debian stable... since 2000... :D

Do we have more or less broken packages that others as a percentage of all packages?

O.o ... lolz ::: & i just started now, trying to use NixOS...
https://github.com/haskell/cabal/issues/6339#issuecomment-1173811931
O.o ... & should i report this brokenness it as a bug?... (but "thanks god" ::: it worked on debian)
... seriously ::: please answer this... :)

In my experience broken packages has not been an issue.

O.o ... lolz ::: am i "experienced" or what?... (just kidding)

Exactly the same way that a package in debian can also... bla,bla,bla...

O.o ... never had packaging problems with debian since 2000... :) ... have you? ::: lolz, would be ironic... :D

... having an application's runtime environment be a product of the global environment

sorry ::: did not understand this.

... what we're trying to do here.

O.o ...  are "you" not trying to please everyone and everything possible?... is not that what "you" also want?...

... it's pretty much "not even playing the same game".

O.o ... yes ::: i'll end up using both... :) ... i'm comparing with debian and sharing my transitional experience for "you" to be aware of it... :) ... i do find the nix* approach very nice... :) ... and single file for the whole configuration is really nice... :) ... all my haskell work now goes into a nix-shell of my Debian /nix, that i test in a NixOS... o.O?... "you" do brag about good haskell support ... o.O?... and lolz ::: i bump haskell broken packages?... lolz... :D
so ::: don't brag so much just yet... :) ... & make this "bite" ::: "constructive"... :) ... better yet ::: more construct-able... :) ... and more stable when announced (by being in the NixOS channel ) as stable... :) ... and ::: i hope the "bite" tasted nice... o.O?... i have not much more food for now... :( ... with any luck (for "you") i'll just keep bumping into bugs and brokennesses and report them... :)

Just to be clear, the bokenness i mention above is also broken in NixOS, i did try both.

A bit nore spacing concerns...
I'm now upgrading NixOS... noticed all the *-doc packages passing by...
is there a way of switching them all off?
... and is there such thing like a central html index, linked to the *-doc files installed?
how can i access them?

Oh well, if you are comfortable using Debian Stable, your needs are such that NixOS won't be of use to you… NixOS is about avoiding conflicts between unrelated packages, supporting rollbacks so you can install fresh stuff with less risk, etc. If you want a minimal setup with Debian Stable, sure, that's another way of avoiding problems that Nix handles for large combinatations of fresh packages.

Oh well, if you are comfortable using Debian Stable, your needs are such that NixOS won't be of use to you…

O.o ... uau ::: not bad, for a dictator... o.O?... good thing i have a will of my own... :D
but thank you, for the more clear answer to my question:

are "you" not trying to please everyone and everything possible?... is not that what "you" also want?...

O.o ... guess not... "NixOS won't be of use to you" ... :( sorry, i had not realized that NixOS just targets a specific audience ): ... as you explain, is not good as debian ::: to make a smallest live-cd, with no repetition of packages and with no *-doc packages... :( ... ok ::: upon your advice i'll try to use debian for that... :) ... ty
And please notice ::: that you just failed in answering any of the questions i made... :( ... which would actually be even more useful to go with the coffee... :) ... suggestion ::: "get your self a cookie"...
For someone complaining about elitism and bloat in an obscure and niche distro, your text does no favor being such an obfuscated and unreadable blob.

Sorry Anderson... I also was happier when we were just 2 making the more useful dialog already closed. Also my "learning and attention problems trigger"ed when someone else when off the good interpretation of my writing...

For someone complaining about elitism and bloat in an obscure and niche distro

O.o ... lolz ... have no idea of you are talking about.
ps ::: according to you published location ::: Presumo que sejas brasileiro, e falas portugues... :) ... a minha lingua nativa ::: sempre escrevo melhor o portugues (sem acentos nem cedilhas porque o teclado nao os tem), que o ingles... e' isso ::: peco desculpa pela falta de qualidade do meu ingles nao nativo... sei e' escrever o meu codigo, e apenas aqui venho para me-vos tentar ajudar... seja ao debian, ao nixos ou whatever... :) ... mas se te estou a fazer confusao ::: ja' nao gosto... o.O?... e menos a ti ::: que empakotaste o dblcmd tao eficazmente... :) ... (lolz ::: maybe someday i'll consider inviting you for my yet non-existing crew) ... enquanto o extendido off-topic apenas esta' a deixar mais duvidas que respostas... :( ... portanto vou ficar por aqui ::: e evitar dar alento a "elitismos" maioritariamente incompreendentes... :)
[ & bom dia para ti, obrigado por tudo, ]
pode ser que nos encontremo-nos noutra thread.
For the English speaking ::: if thou have no answers to my actual questions, please don't waste our time in replying ::: i came by to learn and help a bit, even if for now if is just by complaining and asking... :) ... sorry for my noticeable lack of "social skills" ::: thanks god for that... :) ... unfortunately written words don't carry the voice of the writer, nor attitude ::: and are quite prone to miss understanding... in future threads i'll try to hold my self from expressing so at ease.
[ & have you all hopefully a nice day ]

This conversation has really veered off the original path. If you have any questions, I suggest taking them over to https://discourse.nixos.org which is a far better forum for those types of conversations. I would however recommend considering if your writing style helps or hinders the chances of constructive feedback.


introduce specialized view for rails 8 authentication generator

Dependent on https://github.com/rails/rails/pull/52442
Closes #382

@yshmarov Can you give this a try before I merge it?

We should expand this to also cover the new password reset flow that landed on rails/main.

Good to go!

@yshmarov Can you give this a try before I merge it?

Looks good

Thanks all! Merged. Will cut a release shortly.


Instruction parameters in bound, parameterized circuit are returned incorrectly

Information

Qiskit Terra version: 0.20.0
Python version: 0.15.1
Operating system: Mac OS Darwin

What is the current behavior?
I create a circuit with a parameterized gate and bind the parameters to numerical values - 1, 2 and 3, say. Then I try to acquire these parameters from the circuit data, and I get [ParameterExpression(1),ParameterExpression(2),ParameterExpression(3)].
This causes problems in creating parameterized schedules from bound, parameterized circuits as this data is fed into the scheduler in https://github.com/Qiskit/qiskit-terra/blob/1c89cc59c8ec45311748e3f4c37e843068155d51/qiskit/scheduler/lowering.py#L125.
Steps to reproduce the problem
from qiskit.circuit import import QuantumCircuit, Gate, Parameter
x = Parameter('x')
frank = Gate('frank',num_qubits=2,params=[x])
circ = QuantumCircuit(2,2)
circ.append(frank,(0,1))
bound_circ  = circ.bind_parameters({x:1})
bound_circ.data[0][0].params
What is the expected behavior?
It should output the relevant numerical values. Those could then be passed to the scheduler, and so parameterized gates could be converted into custom parameterized schedules.
Suggested solutions
I've had a look and I'm not sure where this problem is occurring exactly - it could take place when the parameterized gate is being appended to the circuit, when the parameterized circuit is bound, or when the circuit data is being extracted, but I think the first two are more likely

Can you include an example of the failing code? I believe the scheduler should be able to handle ParameterExpressions.
>>> import qiskit as qk
>>> from qiskit.circuit import Parameter
>>> from qiskit.test.mock import FakeArmonk
>>> qc = qk.QuantumCircuit(1,1)
>>> qc.rx(th, 0)
>>> qc.measure(0,0)
>>> tqc = qk.transpile(qc, FakeArmonk())
>>> sched = qk.schedule(tqc.bind_parameters({th: 0.1}), FakeArmonk())
>>> sched
Schedule((0, ShiftPhase(-1.5707963267948966, DriveChannel(0))), (0, Play(Waveform(array([0.00045668-2.45862314e-03j, 0.00100554-2.50128261e-03j,
       0.00155953-2.54421984e-03j, 0.00211868-2.58743390e-03j,
       0.002683  -2.63092411e-03j, 0.00325252-2.67468928e-03j,
       0.00382724-2.71872850e-03j, 0.00440721-2.76304106e-03j,
       0.00499242-2.80762557e-03j, 0.0055829 -2.85248109e-03j,
       0.00617868-2.89760670e-03j, 0.00677976-2.94300099e-03j,
       0.00738616-2.98866257e-03j, 0.0079979 -3.03459028e-03j,
...

I see - so perhaps the problem is how the InstructionScheduleMap or ParameterizedSchedule is handling ParameterExpressions.
Anyway, my failing code is quite long and it looks like the issue is being discussed at length in thread https://github.com/Qiskit/qiskit-terra/pull/4940. So I will close this issue and follow along there.


Fix broken link build warnings

Docs Build status updates of commit 1fe2c98:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

archived-reference/7.1/Microsoft.PowerShell.Utility/Get-Verb.md
:white_check_mark:Succeeded
View (powershell-7.1)

archived-reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-71.md
:white_check_mark:Succeeded
View (>=powershell-3.0)

archived-reference/docs-conceptual/whats-new/media/What-s-New-in-PowerShell-70/myscript-error.png
:white_check_mark:Succeeded
View (>=powershell-3.0)

archived-reference/docs-conceptual/whats-new/media/What-s-New-in-PowerShell-70/myscript-geterror.png
:white_check_mark:Succeeded
View (>=powershell-3.0)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Kontent by Kentico update

Updates the readme according to new Kontent brand guidelines.

@Sevitas - please take a look at this.

we might want to make at least some changes in Wiki as well.


Add support to enable transport encryption TLS

This PR:

Adds configurable params to enable transport encryption
Supports adding custom TLS CA cert using a configurable k8s secret
Adds a clqshrc ConfigMap file that allows cqlsh to be used without any additional configuration when TLS is enabled
Adds integration tests to check
1.1 Node-to-Node transport encryption
1.2 Client-to-Node encryption
1.3 Node-to-Node along with Client-to-Node encryption
1.4 Data read and write using cqlsh
Adds and updates documentation for enabling TLS
Bumps operator version to 0.2.0

🚢

Looks like there are two test failures:
[18:14:38][Step 5/7] Summarizing 2 Failures:
[18:14:38][Step 5/7]
[18:14:38][Step 5/7] [Fail] sanity-test [It] Configures Cassandra properties through custom properties
[18:14:38][Step 5/7] /kudo-cassandra-operator/tests/suites/sanity/sanity_test.go:151
[18:14:38][Step 5/7]
[18:14:38][Step 5/7] [Fail] sanity-test [It] Configures Cassandra JVM options through custom options
[18:14:38][Step 5/7] /kudo-cassandra-operator/tests/suites/sanity/sanity_test.go:175
[18:14:38][Step 5/7]
[18:14:38][Step 5/7] Ran 7 of 7 Specs in 1109.357 seconds
[18:14:38][Step 5/7] FAIL! -- 5 Passed | 2 Failed | 0 Pending | 0 Skipped

@shubhanilBag could you take a look when you get a chance?

The sanity test suite was running the tests in this order:

install from community repo
upgrade to local version
Node Scaling tests (3nodes -> 4nodes)
Three parameter update tests

As the result the 3 param update test were running with 4 nodes in the c* instance, so the SS took more time than the estimated 5mins of timeout and failing the tests
In https://github.com/mesosphere/kudo-cassandra-operator/pull/31/commits/c0fb3bddb918462659f96df621a102245836ea02 I moved the node scaling tests to the end. The tests are passing and the update tests are a bit faster now.
cc: @mpereira


Adding sub groups for output elements

Fixes: #1923

Thanks for the change to the "ungrouped" header. :+1:
I've merged this.


Create ExceptionTree

Pull Request summary:
With try/except block:
try:
    session.api.users.delete_user("ABC")
except vManageBadRequestError as error:
    response = error.response.text
    print(response)
>>> {"error":{"message":"Delete users request failed","code":"USER0006","details":"No user with name ABC was found"}}

Raw request
session.api.users.delete_user("ABC")
>>> vmngclient.session.vManageBadRequestError: message='Delete users request failed' details='No user with name ABC was found' code='USER0006'

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/237


Concurrent modification exceptions using CloudBigtableIO

While long running (streaming) dataflow job on our production dataset I saw some exceptions in the worker logs (about 200).
Exception: java.util.ConcurrentModificationException
java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
java.util.HashMap$ValueIterator.next(HashMap.java:1466)
com.google.bigtable.repackaged.com.google.cloud.grpc.async.RpcThrottler.awaitCompletion(RpcThrottler.java:177)
com.google.bigtable.repackaged.com.google.cloud.grpc.async.AsyncExecutor.flush(AsyncExecutor.java:330)
com.google.bigtable.repackaged.com.google.cloud.hbase.BigtableBufferedMutator.flush(BigtableBufferedMutator.java:236)
com.google.bigtable.repackaged.com.google.cloud.hbase.BigtableBufferedMutator.close(BigtableBufferedMutator.java:213)
org.apache.hadoop.hbase.client.AbstractBigtableConnection$2.close(AbstractBigtableConnection.java:181)
com.google.cloud.bigtable.dataflow.CloudBigtableIO$CloudBigtableSingleTableBufferedWriteFn.finishBundle(CloudBigtableIO.java:989)

It seems like the RpcThrottler#awaitCompletion is being called for multiple bundles at the same time from multiple worker threads. I saw there is a @GuardedBy("lock") annotation at the declaration site but looks like that's not catching the condition here.

Connector version <IP_ADDRESS>

Ugh.  I'll fix this for 0.9.6.  I'll add a lock around the iteration.

wait a second... this shouldn't happen.  There should only be one call to CloudBigtableSingleTableBufferedWriteFn.finishBundle().  How did you set up that scenario?

I should probably make CloudBigtableSingleTableBufferedWriteFn.finishBundle() final, but I'm really confused about why I need to do that.

I think RpcThrottler#awaitCompletion can handle multiple concurrent calls. But that retry code at line 177 can end up calling into onRetryCompletion and removing from outstandingRetries which would cause the exception.

I'm also experiencing this problem with 0.9.5. When will 0.9.6 be released? Until then which stable release is suggested?


Implementation optim.HingeLoss

Looks good, but can you try and add some doctests? Maybe you can reproduce the examples from sklearn: [https://github.com/scikit-learn/scikit-learn/blob/7389dba/sklearn/metrics/classification.py#L1822][https://github.com/scikit-learn/scikit-learn/blob/7389dba/sklearn/metrics/classification.py#L1822].

Codecov Report

Merging #28 into master will decrease coverage by 0.2%.
The diff coverage is 55.55%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage    77.9%   77.69%   -0.21%
==========================================
  Files          48       48
  Lines        1059     1067       +8
==========================================
+ Hits          825      829       +4
- Misses        234      238       +4

Impacted Files
Coverage Δ

creme/optim/__init__.py
100% <100%> (ø)
:arrow_up:

creme/optim/losses.py
69.44% <50%> (-6.42%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 975c617...cacd9cf. Read the comment docs.


add mobile web app support for Chrome on Android

I added support for a real webapp feeling on Android phones according to the Chrome Developer Guide.
I might later add the more recent manifest.json version of this, but this was the quicker fix and it works just like a charm. :wink:

Also, grunt-processhtml was missing as a dev-dependency in the package.json.

Awesome, good spotting! It might be worth forcing full-screen too - thoughts? For example:
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">


Is epak format still close-sourced?

Hi,
Your project looks awesome. I am trying to develop a weather application with leaflet that renders weather parameters for certain time period from netCDF file. I had tried with using vector tiles format such as GeoJSON or TopoJSON but the size of files is too large to handle in client application. I had seen your issue ".epak files vs json #30" in which you have mentioned that epak format is close-sourced. Please let me know whether the format is still close-sourced. Also, any ideas on how to handle the time-based weather parameters in leaflet application is also welcomed. Thanks.

I'm interested too into this... do you intend to make it open-source ? It would be amazing for community


iCubGenova01 Add xls file containing formulas for raw encoder calibration

As per the title.
cc @Uboldi80 @randaz81

To be integrated also w/ #297.


Pull data from GW1000 via UDP

There are a couple of python implementations I found using this more efficient method to get data from ecowitt's sensors, it relies on UDP. I found a couple of python implementations, for integrations with weewx and rainmachine (I use both of them and they work fine).
Here's the two projects:

weewx gw1000 driver: https://github.com/gjr80/weewx-gw1000
rainmachine gw1000 plugin: https://github.com/pjpeartree/rainmachine-gw1000

The weewx driver also includes support for recent sensors like the WH45. The rainmachine plugin has a nice autodiscovery mechanism to find the GW1000 without even configuring the IP address. I linked both so you can take a look at the approaches.
Like I told you in the other thread, I also have an official doc on the UDP data structure if you need it, but it's reserved and I can't publish it publicly unfortunately. Let me know if you're interested and if you need it.

Hi, sorry for the delay on this.. yeah, I'm interested in those docs.. I'm reading the weewx code right now, trying to see if I can do a simple test to make sure my device supports this


Podcast landing page on networkgoods.io

Got access to the Plasmic project for this.
According to Evan, there's a re-design that's midway and unpublished, and we'll need to fix the mobile view before publishing


right half diodes location

I noticed the right half diodes is soldered on the top side, it will have contact with low profile switches.
Is it possible to solder them on the back for the right half?
thank you!

actually... all the low profile switch has cut out for led, it fit quite well with the diodes.


⚡ Optimize FixedPointMathLib.abs

Description
Describe the changes made in your pull request here.
Saving an opcode in FixedPointMathLib.abs.
Credit: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4497
Checklist
Ensure you completed all of the steps below before submitting your pull request:

[x] Ran forge fmt?
[x] Ran forge snapshot?
[x] Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

Incredible find. Thanks!

Hmm, lemme fire up remix and see what's the bytecode like.
Some of the Abs tests seems to have gone up in gas.


Kellyroach/upgrade to xcode941

This pull request upgrades ScrollableGraphView to Xcode 9.4.1 / Swift 4.2 .

Upgrade to Xcode 9.4.1 / Swift 4.2 - All project targets build and run OK.
Fixes compilation issues: GraphView.xcodeproj = 2 yellow warnings and
graphview_example_ib.xcodeproj = 1 red build error, 1 yellow warning (can't build).
Factor Examples.swift + GraphType.swift out of ViewController.swift
Add createBlueOrangeGraph to Examples.swift
Code and IB demo apps moved into same GraphView.xcodeproj
Add AppIcon's and LaunchImage's to both demo apps

We agree to the MIT license.

This is great @kellyroach! Thanks you for cleaning all of this up. Appreciate it a lot.


error: ‘FLT_MAX’ was not declared in this scope

When I execute make on my Ubuntu machine I get the following error:
g++  -std=c++0x -I. -Icommon -Imath -Iinclude -c game/character.cpp -o game/character.o
In file included from game/game.h:26:0,
                 from game/character.h:18,
                 from game/character.cpp:18:
./math/graph.h: In constructor ‘CGraph::CNode::CNode()’:
./math/graph.h:28:17: error: ‘FLT_MAX’ was not declared in this scope
    path_weight= FLT_MAX;
                 ^
make: *** [game/character.o] Error 1

Do you happen to know where FLT_MAX comes frome?

Sorry about that, I don't always test the Linux build. Does #include  work?

Strike that, looks like you need  or <float.h>
http://www.cplusplus.com/reference/cfloat/

After adding #include "float.h" and removing the #ifdef _WIN32 check in main.cpp for #include "sys/timeb.h" I get the following error:
g++ -Llib -o mfgd common/platform_linux.o datamanager/data.o datamanager/dataserializer.o game/character.o game/game.o game/handle.o game/main.o math/collision.o math/color.o math/euler.o math/frustum.o math/matrix.o math/quaternion.o math/vector.o math/graph.o renderer/application.o renderer/image_read.o renderer/renderer.o renderer/renderingcontext.o renderer/shaders.o  renderer/gl3w.o  -lglfw -lXrandr -lGL
/usr/bin/ld: common/platform_linux.o: undefined reference to symbol 'XGetWindowAttributes'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [mfgd] Error 1

Try adding -LX11 to the makefile?

After adding some other stuff too I finally got it working and now have a mfgd file. If I try to execute it (./mfgd) nothing happens though. Do I need to give the program some kind of special command line argument?

No you shouldn't have to pass any arguments. Does it hang or immediately return?
You've caught me at a weird time because I'm between builds of my main computer and I don't have access to Linux at the moment.

No worries. At first I though, it just simply does not run at all. After I have waited for about 45 seconds I got this back:
Highest score:<PHONE_NUMBER>
Insertion sort time: 32988ms
Highest score:<PHONE_NUMBER>
Heap sort time: 73ms

Looks like it's running one of the tests and not the game.

Ah! The latest sources don't produce a window, they just run an algorithm and compare. Try checking out the sources specific to the video you're interested in. Each video where I do a code section should have an associated label in the github repo.


controller-manager panic when bootstrapping garden cluster

How to categorize this issue?

/area robustness
/kind bug
What happened:
With https://github.com/gardener/gardener/pull/4754 GCM's client for secrets is cached again.
However, when starting the clientmap here, the client map doesn't wait for the caches to be synced (see here).
That's why this list call, might cause controller-manager to panic:
$ make start-controller-manager
{"level":"info","msg":"Starting Gardener controller manager...","time":"2021-10-04T13:33:23+02:00"}
{"level":"info","msg":"Version: v1.33.0-dev","time":"2021-10-04T13:33:23+02:00"}
{"level":"info","msg":"Feature Gates: CachedRuntimeClients=true","time":"2021-10-04T13:33:23+02:00"}
{"ClientMap":"GardenClientMap","level":"info","msg":"Creating new ClientSet for key \"garden\"","time":"2021-10-04T13:33:23+02:00"}
I1004 13:33:23.156794   70721 leaderelection.go:243] attempting to acquire leader lease garden/gardener-controller-manager-leader-election...
{"level":"info","msg":"Starting new HTTP server on <IP_ADDRESS>:2718","time":"2021-10-04T13:33:23+02:00"}
I1004 13:33:23.168824   70721 leaderelection.go:253] successfully acquired lease garden/gardener-controller-manager-leader-election
{"level":"info","msg":"Acquired leadership, starting controllers.","time":"2021-10-04T13:33:23+02:00"}
panic: the cache is not started, can not read objects

goroutine 24 [running]:
k8s.io/apimachinery/pkg/util/runtime.Must(...)
	/Users/timebertt/go/src/github.com/gardener/gardener/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:171
github.com/gardener/gardener/pkg/controllermanager/controller.(*GardenControllerFactory).Run(0xc000a73ef8, {0x2e94180, 0xc0006376c0})
	/Users/timebertt/go/src/github.com/gardener/gardener/pkg/controllermanager/controller/factory.go:82 +0x1cbe
github.com/gardener/gardener/cmd/gardener-controller-manager/app.(*Gardener).startControllers(...)
	/Users/timebertt/go/src/github.com/gardener/gardener/cmd/gardener-controller-manager/app/gardener_controller_manager.go:345
github.com/gardener/gardener/cmd/gardener-controller-manager/app.(*Gardener).Run.func1({0x2e94180, 0xc0006376c0})
	/Users/timebertt/go/src/github.com/gardener/gardener/cmd/gardener-controller-manager/app/gardener_controller_manager.go:287 +0x9d
github.com/gardener/gardener/cmd/gardener-controller-manager/app.(*Gardener).Run.func2({0x15533e6, 0xc000728280})
	/Users/timebertt/go/src/github.com/gardener/gardener/cmd/gardener-controller-manager/app/gardener_controller_manager.go:299 +0xa3
created by k8s.io/client-go/tools/leaderelection.(*LeaderElector).Run
	/Users/timebertt/go/src/github.com/gardener/gardener/vendor/k8s.io/client-go/tools/leaderelection/leaderelection.go:207 +0x154
exit status 2
make: *** [Makefile:88: start-controller-manager] Error 1

What you expected to happen:
controller-manager should not panic on startup.
How to reproduce it (as minimally and precisely as possible):
Note, that this is a race condition and doesn't happen everytime.
You can provoke it, by adding time.Sleep(time.Second) before the cache.Start call here:
https://github.com/gardener/gardener/blob/a66d35ea33fa7b9d7b9a1c0d3f3b6604d78bfa25/pkg/client/kubernetes/clientset.go#L137

/assign


How do I get loss in verification「3.x」

@Dark1Forest Currently not supported, we are already working on it.


Add self-testing

It could be possible to just use the same repo to test the plans, but it would not cover different variants. Waiting on feedback from:

https://github.com/teemtee/tmt/issues/2339
https://github.com/teemtee/tmt/issues/2340

At minimum there needs to be a few plans implemented:

#4 so that we get artifacts of an example copr project
Trigger the plans with pre-defined copr build
Probably packit github actions for interfacing

Considerations:

Using packit as multi-repo instead of external projects. The issue would be that it becomes ambiguous that the main .packit.yaml is only for testing and not for packaging

Replying to @lachmanfrantisek from https://github.com/packit/tmt-plans/pull/15#pullrequestreview-1831864767:
Yeah, I was thinking again lately on how to do that.

One possibility would be to run tmt itself, but the issue is that these plans are assuming packit environment so that they have /var/share/test-artifacts/*
Second option would be to have 1 or multiple package projects in the .packit.yaml that we run the tests on. Would be tricky because we would want to store some spec files with known warning, errors, etc.
Third option would be to call packit commands on arbitrary repos. That one is almost possible with the work on https://github.com/LecrisUT/packit-actions/pulls, the only missing part is calling a packit test as the equivalent of /packit test. I am currently stuck and authentication for that step


refactor out the --model_dir flag in dual_net

will fix as part of https://github.com/tensorflow/minigo/issues/316


How to implement kong OAuth2.0 with java

Hi ,
Can anyone give some idea or suggestion how can I implement my war file (UI) and run with kong ?

This is a very specific question on Java - you can follow the doc at https://getkong.org/plugins/oauth2-authentication/ and implement it with a language of your choice. I would ask to a Java forum if they can give more specific support.
Pretty much all you need to do on your side is being able to make HTTP requests.


chore: custom batch allocation strategies

Issue #, if available:
Fixes #239
Description of changes:

added custom allocation strategies for aws batch module

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 822446baa04e66ac43935d0c2ccd744154ed048e
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 7d3618503b5bdbdccc93e83026b69dac46efd9f2
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 6e535480b8301d886d40660102cfec2bbf9e389d
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: fe12fd3ce5a27d400dd4f7330f5390a2ca19f949
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: f5c953a741c6d106c440dcf02e794af553552375
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 9946075b283c98f984d356ef29a7477a6df9fcac
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


How to prevent svgOverlay to be removed?

I'm using svgOverlay as my map, and I don't want the base map to be removed in any time. I can't find a clue to get this done, here is the jsfiddle link:
https://jsfiddle.net/falkedesign/u80dsh2j/
As you can see, after clicking the remove button and then click the map area, the whole svgOverlay is being deleted.

I found the solution in other issue.


PaliGemma 2 support

Minor changes to support PaliGemma 2.

thanks for the review, I have force-pushed a new commit including the requested changes.

The large language model 'google/paligemma2-10b-pt-896' that you are currently using has experienced inference failure.

The same mistake！

If it happens with paligemma 1 models too, please file an issue for it with the exact command to reproduce it.


raspberry pi doesn't boot without monitor attached

Describe the bug
The 19.09 and unstable aarch64 sd images won't boot on the raspberry pi 3A+ (checked myself) and 3B+ (I think I heard this) if no monitor is connected to its HDMI port.
To Reproduce
Steps to reproduce the behavior:

Write 19.09 or unstable sd image to SD card
Insert SD card in raspberry pi
Power up with no monitor attached

Expected behavior
Boots.
Actual behaviour
Boot loop, where u-boot repeatedly resets when trying to initialise the graphical console.
Additional context
This works if the firmware in the pi boot partition is replaced with raspberrypifw from 19.03.
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: raspberrypifw
# a list of nixos modules affected by the problem
module:

cc @mmahut who I believe had this issue too.

I'm facing the same issue. This can also be worked around by setting hdmi_force_hotplug=1 in config.txt.

Can confirm this on the 3B (not plus), and that the workaround above fixes it. I'll see if I can debug more, is there any upstream report?

I have a 3B (not plus), and I tried the workaround adding:
boot.loader.raspberryPi.firmwareConfig = ''
    hdmi_force_hotplug=1
  '';

But it still doesn't boot if there's no HDMI plugged in. I have to add that I'm an absolute newbie to NixOS and I just set up the machine.

What happens if you write /boot/config.txt manually, @hexop ?
I've found that firmwareConfig appears to be broken in 19.09 (see #67792 ).

What happens if you write /boot/config.txt manually, @hexop ?
I've found that firmwareConfig appears to be broken in 19.09 (see #67792 ).

Well I've tried creating /boot/config.txt manually, and it still doesn't work. I've also tried removing the boot.loader.raspberryPi.firmwareConfig from configuration.nix but it still doesn't work.
Right now I have plugged an HDMI-to-VGA converter in the HDMI port and it powers on, without the need for a real monitor.

Try mounting mmcblk0p1 and changing the config.txt that's there, instead of the one on mmcblk0p2.

Try mounting mmcblk0p1 and changing the config.txt that's there, instead of the one on mmcblk0p2.

That worked perfectly! Thank you so much.

I'm experiencing problem the same, but with NixOS installed. While there is no confix.txt file, what can I add to configuration.nix to boot my raspberry without HDMI screen attached?
HW version: Raspberry Pi 3 Model B
NixOS version: aarch64, 19.09

I just lost a couple of hours debugging this without a monitor around my RPi 4B.
The fix is still temporarily mounting /dev/mmcblk0p1 to edit config.txtand adding hdmi_force_hotplug=1 in part of the config that would be loaded (I used the RPi4-specific section).

Exact same issue with a raspberrypi 4.
Is there a fix I can add to my configuration.nix ?


feat(Variance): Add variant and css APIs [GM-184]

Overview
Adds static style methods to variance.  These eventually will support pseudo selectors but do not currently.
css
A standalone theme aware method that accepts and object of system props and returns the correct style object. Is cached after being called with theme once, preventing more expensive calculations.
Usage
const CoolStuff = styled.a(css({
  margin: [16, 24],
}))

variant
Built on top of css function but with our old variant API syntax
Usage
const Anchor = styled.a(variant({
   defaultVariant: 'interface',
   variants: {
       interface: {
           color: 'text',
       },
       inline: {
           color: 'primary',
        },
    }
})

Add standalone css and variant methods to variance.

PR Checklist

[ ] Related to designs:
[x] Related to JIRA ticket: GM-184
[x] I have run this code to verify it works
[x] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-illustrations@0.9.7-alpha.915f2d.0@codecademy/gamut-kit@0.2.43-alpha.915f2d.0@codecademy/gamut-labs@13.2.6-alpha.915f2d.0@codecademy/gamut-styles@9.1.4-alpha.915f2d.0@codecademy/gamut-system@0.6.1-alpha.915f2d.0@codecademy/gamut-tests@2.3.4-alpha.915f2d.0@codecademy/gamut@29.5.1-alpha.915f2d.0@codecademy/konamimojisplosion@0.2.4-alpha.915f2d.0@codecademy/markdown-overrides@0.5.17-alpha.915f2d.0@codecademy/styleguide@33.4.1-alpha.915f2d.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://606348539df48414aa23648d--gamut-preview.netlify.appDeploy Logs


dependencies is updated,but forms is old

could I know that when the  forms update?

work is in progress, waiting for this https://github.com/valor-software/ng2-bootstrap/pull/678 to be released

fixed in https://github.com/akveo/ng2-admin/tree/v0.4.0


Upgrade nbdev version to fix called process error

Fix #31

I ran poetry install and it seems to work` thanks for solving this!


fix: call init() before setting global state

Must inititialize global state for libgit2 before setting.

👍

👍


Inference On-Cloud for Object Detection

Hello,
I built an android app for object detection using tensorflow lite and on-Device inference. I want to make inference on-Cloud and saw that the tensorflow serving client is still unavaliable for android. Do you know a way to use cloud for inference at my object detection mobile app? Thanks an advance.

@giannisfourfouris Follow this article and it should help you in soving your problem.


The underlying connection was closed before the hub handshake could complete( with accessTokenFactory)

Hi @chenshaxuanjing
Please refer to this reported issue and fix #21 .
Thanks


How do I install packages from a file?

Latest vcpkg version here... vcpkg install didn't reveal any way to achieve this so... after saving all my packages in a vcpkg_packages.txt (1 package per line) I've tried:

cat vcpkg_packages.txt | vcpkg install
cat vcpkg_packages.txt > vcpkg install
cat vcpkg_packages.txt | xargs vcpkg install
cat vcpkg_packages.txt | xargs -l vcpkg install

And unfortunately none of them did the trick so... how would you install packages stored in a file? For instance, with python's pip you can pip install -r requirements.txt ... with npm, cargo, etc etc...
Thanks in advance.

Hi @brupelo
Thanks for posting this issue.
Since vcpkg currently doesn't support this.
You can install packages that are listed in vcpkg via the command vcpkg install port1 port2 port3 ... .

@NancyLi1013 Yeah, that's the way I did it the other day... it'd be quite handy though having the ability to install from file or stdin though... that way you could nicely store/share your list of packages across computers. One thing I didn't understand though was my attempt when using xargs didn't do the trick... :/

@brupelo
Thanks for your details about this.
I also tried this on my local.
I run cat vcpkg_packages.txt | xargs -t   but I only saw the command I write in vcpkg_packages.txt was printed on the command window.
vruil@linux003:~/vcpkg$ cat vcpkg_packages.txt | xargs -t
./vcpkg install sqlite3

Do you want to implement that those ports you listed in the file can be installed automatically?
I also tried the commands you mentioned above, unfortunately none of them can run normally.

I'm going to close this issue for now due to no response for a long time.
Please feel free to reopen this issue if this is still a problem for you.

On windows: I have no idea where I have this from, but this works for me:
path\to\vcpkg.exe --triplet x64-windows install<EMAIL_ADDRESS>with .vcpkg_deps.txt simply listing the deps, e.g.:
boost-algorithm
boost-config
boost-core
boost-heap
boost-lexical-cast
boost-property-tree
boost-variant
boost-geometry
boost-program-options
curl
protobuf

What I couldn't make work yet is to reference a dep file in another directory..

The most useful things we find are always at the depths of the internet

@elibroftw From vcpkg help:
  @response_file                  Specify a response file to provide additional parameters


Password Input Bug

When the password is entered incorrectly, and a backspace key is used, it includes that as a character and results in the wrong password (failed authentication). I know this is a low-level priority bug, but sometimes it is annoying, especially if the password is long and the user knows only the last character is misspelled. They try to correct it using the backspace key, but it results in failed authentication. Therefore, I suggest fixing this issue in the next version.

Okay, should work now, I am actually not sure why the raw mode was used and these characters not interpreted.


Some function pointers, typedefs, and OSX's stdlib.

r? @nox
The change from indexing cursors to index USRs was because in the inner_template_self test, the next pointer pointed to a clang-generated class declaration that caused us to not catch the type as already resolved.
Also, that's the recommended way to check against same symbols from different translation units, though now we don't use it yet.

 Warning

These commits modify unsafe code. Please review it carefully!

@bors-servo r+

:pushpin: Commit cc8ed87 has been approved by nox

:zap: Test exempted - status


Runepouch overlay in bank

Describe the bug
When the runepouch is filled in the bank, and you scroll past it, the overlay gets over the 'frame' of the bank screen.
To Reproduce
Steps to reproduce the behavior:

put a filled runepouch in the bank relatively low on the first tab, so you have to scroll to it
scroll towards the runepouch location and back
you will see that the overlay gets over the 'frame'

Expected behavior
The overlay has to be between of the runepouch icon, and the frame of the bank screen
Screenshots

Environment (please complete the following information):

OS: Windows 10
RuneLite version: <IP_ADDRESS>
Launcher version: 1.6.0

Additional context
It's not top priority, but in my opinion it is quite disturbing for some reason

Fixed in 9a103f8ccd4928c6da8679ace7e02f1f9f874a63


Center in screen

Hi,
There is a solution for center (horizontally and vertically) your slider in every screen ?
I tried many solution, with flexbox and other tricks, without success until now... If you have any idea how to make it, please let me know.
谢谢

Sorry, I wrote something wrong.
The problem was from my classes in bootstrap 4, and it works well now (with flexbox).


How to view 3d face landmark or 2d_dense in demo_webcam_smooth.py if there is no render import and cv_draw_landmark only creates circle which works for only 2d

The 3d option in demo_webcam_smooth.py only displays hollowed out green circles for all landmarks instead of the gray overlay. The 2d_dense option displays the same but with filled green circles for all landmarks.

It seems that the function is not called. I will fix it later.

@Yajsiburuth Fixed.


Update "Learn More" URL in sign up / sign-in flow

Business Requirements
Update the "Learn More" URL in the screen below (pre-sign-in) to the following URL:
https://docs.gooddollar.org/frequently-asked-questions/using-gooddollar

verified on QA

verified on prod


AVCaptureSession interruption event occurs when camera.startCapture(...) is called

Hi,
Before integrating Twilio into our application we have set up audio/video recording which saves 5s length video chunks to local storage and then uploads to the remote server.
Everything is classic here: first, we have var videoSession: AVCaptureSession. Then we add input and output and at the same time setting AVCaptureVideoDataOutputSampleBufferDelegate to the AVCaptureVideoDataOutput instance with setSampleBufferDelegate(...) method call.
The following is easy, we just need to handle the following delegate method:
captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)
This gives as possibility to capture and save media chunks. Optionally we have also a video preview view setup with a video session object.
The problem started to occur when we decided to integrate Twilio video into our app for video meetings. When the following Twilio method call occurs for a CameraSource object
camera.startCapture(...) then we receive session interruption event with .videoDeviceInUseByAnotherClient reason and my AVCaptureVideoDataOutputSampleBufferDelegate captureOutput() method is stoping to work. If I restart AVCaptureSession then captureOutput() is starting to work but Twilio video is stopping to cast a video. This is a pretty complex situation since we are not applicable to change our video recording code based on pure AVFoundation implementation but at the same time, we should provide a video meeting feature.
As soon as I could understand, a video session can have only one owner, and switching them drops the current owner. I am totally unable to find any solution as I have tried to find anything in Twilio documentation with no luck. Probably I miss something, maybe there is some way to use the existing session to broadcast the user's video?
Any help is really appreciated and thank you in advance.

@ceaglest maybe you can help with this ?


Tweaks to make it easier to get up and running with Backstage

This is a second round of tweaks that we've identified as part of evaluating the steps to get Backstage up and running in production over in https://github.com/Rugvip/backstage-prod-diff. Glad to say that we've so far been able to reduce the number of steps required to set up our imagined target Backstage project by 35%. Apart from these smaller tweaks we also hope that the structure proposed in #11611 will provide a another significant improvement to the initial setup experience.
High Prio (v1.3)

[x] Add example entities to production image, or remove them from production config. #11997
[x] Update SignInPage example in getting started guide. #11927
[x] Add guest resolver to auth setup in template. #11937
[x] Add org members read permission to the GitHub app CLI. #11931
[x] Add users/ownership information somewhere in the frontend. #11974
[x] Fix the inconsistent oauth2proxy/oauth2Proxy casing. #11975

Low Prio

[x] Make it easier to find the built-in resolvers in the docs. #12020
[ ] Add signal handler for node process to exit quickly in docker. #12017
[ ] Figure out how to improve relative file locations so that they are more intuitive. Create a lightweight RFC to gather feedback. #11993
[ ] Fix logout for proxy providers. #12016
[x] Stronger encouragement in the OAuth2 Proxy auth docs to point people to the proxy sign-in page docs. #12020

Closing as the remaining low prio items are captured in separate issues


Added custom node export

Small draft PR that aims to implement #4785. I've been testing it for a while and it has been quite a handy feature, here is a small demo:

Test Export node script
extends Node

@export var x : TestClass

Test Class node script
extends Node

class_name TestClass

Many other PRs have paved the way so that this feature shouldn't be too hard to implement. Currently only the selection using the scene tree popup is done here, the drag/drop of a node of a specific custom class isn't done yet. I'll update this draft once I have it implemented correctly.
Todo (let me know if you see anything missing here):

[x] SceneTree selection for custom class export
[x] Drag/Drop for custom class export
[ ] ~SceneTree selection for arrays of custom classes~
[ ] ~Drag/Drop for arrays of custom classes~

Godot 4 does not have type Dictionary hints according to this comment, so these changes should only address EditorProperty and EditorPropertyArray.

Ok drag/drop is in there as well now. The https://github.com/godotengine/godot-proposals/issues/4785 proposal wasn't really approved yet so I'll leave this PR as a draft for now. Let me know if you see anything missing here or if you want me to un-draft it.

Just realized that according to #62916 exported typed arrays are currently broken (and confirmed on beta 2 while testing these changes), so I don't think there is much more to add to this PR.
#4785 wasn't approved yet so I'll leave this PR as is, but let me know when you want me to "undraft-it" or if I should add anything else to it.

#4785 wasn't approved yet so I'll leave this PR as is, but let me know when you want me to "undraft-it" or if I should add anything else to it.

If it's ready it doesn't need to have draft status. Proposals are not always formally approved before approving a matching PR, sometimes we cut corners :)

PR review meeting: looks good at first glance, would be good if @reduz and @willnationsdev can have a look

@vnen could I get your review for this one?

Its probably ideal that @willnationsdev reviews this at this point in the current absence of @vnen.

I just checked this out now. The basic testing I've done of the feature all seems to work just fine. However, there is an edge case that isn't accounted for. Not sure if it's within the scope of this PR or not though.
Say you have a Base, DerivedA, and DerivedB, along with an initially exported property of static type DerivedA. You assign a DerivedA node to it, but then modify the script with the property so that it exports DerivedB instead. Currently, the scene retains the reference to the node despite the fact that it now violates the exported property type. How do we resolve the now conflicting inheritance hierarchy? Conceptually it's simple; it should be updated with a null value. However, implementation-wise, I'm unsure of the best way to implement it. The scene file isn't necessarily going to be open in the Godot Editor when the script's exported property's static type hint is updated, but the Editor will need to update it (and every other scene with a now-conflicting exported node) regardless.
Exported resources should've had to deal with this for a long time already I would think. How is the scene's serialized data updated in that scenario? Can that apply here?

@willnationsdev Good point, thought that is an issue already present with built-in type exports, I get that same behaviour if I export with type Camera2D, assign it then change the export type to something else like Sprite2D. I'd argue it could be done in another PR.
It does seem to be managed correctly with exported custom resources though, so we should probably be able to do the same for nodes. After taking a quick look into the editor_resource_picker code the type seems to be checked when the EditorResourcePicker is updated, the same could be done for nodes.
Let me know if you want me to do that here or on a separate PR.

@willnationsdev sounds good, I'll open an issue for that specific case then

Thanks!

It looks like this isn't quite working with @tool scripts. I'm testing this to export the initial state for a node based state machine, and it's working (launching the game has the player in the correct initial state), but I'm also using _get_configuration_warnings() to check if the initial state is set or not, and throwing a print statement in there displays the initial_state variable to be <null>, even though it's set in the editor.


Improve the dev environment for simple_discussion gem

Task

[ ] adding solargraph for better linting
[ ] cleaning testing environment

#21


Remove html of  so word is output to screen

Removed the "<" and ">" bit of the legend text as this was causing it to be represented as HTML rather than displaying the word "legend".
Alternatively it could be:
"it's important to have a <legend> element." if you want the brackets in.

Good spot! Thank you for raising a PR too 🎉


Question: Reccomended list for an 'average' user?

Hi thanks for creating this and all of the hard work that has gone into the project
I'm taking a look at this and there's a lot of choice in regards to auditing and applying different baselines. Is there a 'security for dummies' type appraoch where it is unlikely to cause (m)any issues?
E.g. I always disable SMBv1 on new installs as I'm not aware of any usecase for a typical user.
Though removing ie11 on windows 10 can cause more havok for scripts using Invoke-WebRequest so I personally leave that be
Thanks for your time

Thank you for your question, the answer is not that simple. My hardening list is not user friendly in every case, e.g. disabling biometrics can cause problems if someone is already using a fingerprint scanner.
If you want to invest a few hours of time, I suggest you start with the CIS benchmark, which describes the impact and justification for all the settings. You can download the PDF by entering an email address: https://www.cisecurity.org/cis-benchmarks

Yes I did throw caution to the wind a little there. Thank goodness for backups!
Oh great stuff, thank you. I'll do some light bedtime reading there 😀


python3Packages.google_resumable_media: v0.7.1 -> v1.0.0, python3Packages.google_crc32c: init at v1.0.0

Commit f6514b57 upgraded python3Packages.google_resumable_media and broke it:
ERROR: Could not find a version that satisfies the requirement google-crc32c<0.2dev,>=0.1.0; python_version >= "3.5" (from google-resumable-media==0.7.1) (from versions: none)
ERROR: No matching distribution found for google-crc32c<0.2dev,>=0.1.0; python_version >= "3.5" (from google-resumable-media==0.7.1)
builder for '/nix/store/diqkd6pk13ihmd5lgic98d88h0frcgv8-python3.8-google-resumable-media-0.7.1.drv' failed with exit code 1

This patch series:

upgrades python3Packages.google_resumable_media to the latest version
adds the python3Packages.google_crc32c dependency introduced in f6514b57

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This was later done and committed separately as 2468315f and 908d8c34