Some random stuff

My nodes tonight were having trouble finding peers and I was trying to figure out why. I didn't really get to the bottom of it, but I no longer thing that it's because the nodelist is mostly bad. Connection attempts seem to succeed, and then the peer gets tossed after a minute or so, perhaps less.
Maybe there is a bug in the communication code that makes it incompatible with certain versions? Seems like I'm only able to connect to v1.1.0, v1.0.0, and v1.0.1 for any lengthy period of time. Still investigating.
It might also be that all of our peers with open ports and high-propagation are saturated, having 128 peers each. Maybe we should increase the maximum? Or maybe we just announce to #contributors that it's a problem and ask people to open their ports? I don't want to do this though until we confirm that the problem is over-saturation. The errors don't help us on that front though.

nevermind I seem to be getting high enough connection diversity. So I'm not sure what exactly is causing all of the failures. But the most common error by far is just 'Session closed'

I believe Session Closed occurs when the remote peer terminates the connection without warning. Unfortunately, we don't have a good idea of why they are terminating. Even if we had access to the logs, there aren't many logging statements that would help identify the cause (I checked the bootstrap linode).


[Algorithm] Palindrome [JAVA]

This code checkes the number is palindrome or not.

@viveksdf : It would be great if you can add the description along with the issue number.
Feel free to use our contribution guidelines (https://github.com/fnplus/interview-techdev-guide/blob/master/CONTRIBUTING.md) for reference

Thanks for contributing!


Update MD file on new branch 2017-21-15_16-11-56

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


WIP: Debug CI sdk test problem

What this PR does / why we need it:
Recent days, the CI test failed in the sdk-test steps, the PR is going to debug and resolve the problem. Thanks.

This change is

W: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found [IP: 91.1
89.95.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I think the root cause is that we cannot upgrade python 3.6 from ppa repository now. please see below link for details:
http://testing-argo.kubeflow.org/workflows/kubeflow-test-infra/kubeflow-kfserving-presubmit-e2e-598-ba21cfb-9809-d616?tab=workflow
I will be removing most of my PPAs from public access due to ...

/test kubeflow-kfserving-presubmit

/cc @animeshsingh @yuzisun @pugangxa
This is ready to go, thanks.

/lgtm

/approve


empty transfers feild in fare_attributes is allowed

empty transfers field in fare_attributes is allowed, and that means Unlimited transfers are permitted
please check the specification (https://gtfs.org/reference/static#fare_attributestxt)
do you have some special technique to handle such conditions or you just treat this field as optional, https://github.com/mapsme/just_gtfs/blob/574b946dce6ee2392af91f632521633448878b75/include/just_gtfs/just_gtfs.h#L1843 here

Good point! Yes, I handle this field incorrectly.
Bugfix: #11


Enum values don't have annotations available in reflection

This test fails:
https://github.com/google/gson/blob/master/gson/src/test/java/com/google/gson/functional/EnumTest.java#L148
Enum defined here:
https://github.com/google/gson/blob/master/gson/src/test/java/com/google/gson/functional/EnumTest.java#L195
From the gson test code:
public enum Gender {
    @SerializedName("boy")
    MALE,

    @SerializedName("girl")
    FEMALE
  }

Running this in java gets a length of 1. J2objc length is 0.
public void testEnumFieldAnnotations()throws Exception {
    Field male = Gender.class.getDeclaredField("MALE");
    int length = male.getAnnotations().length;
    assertEquals(1, length);
}

Fixed in current source.


Error: Invalid for_each argument

Description
Hey, I am using the step-functions module in my application and I am having this issue:
│ Error: Invalid for_each argument │  │   on .terraform/modules/state-machine/main.tf line 76, in data "aws_iam_policy_document" "service": │   76:   for_each = local.create_role && var.attach_policies_for_integrations ? try(tomap(var.service_integrations), var.service_integrations) : tomap({}) │     ├──────────────── │     │ local.create_role is true │     │ var.attach_policies_for_integrations is true │     │ var.service_integrations is object with 2 attributes │  │ The "for_each" value depends on resource attributes that cannot be │ determined until apply, so Terraform cannot predict how many instances will │ be created. To work around this, use the -target argument to first apply │ only the resources that the for_each depends on. ╵
I am not entirely sure why this happens because I am using only standard available service integrations.
⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Terraform: ~>0.14
Provider(s): aws - v3.44.0
Module: 2.3.0

Code Snippet to Reproduce
` service_integrations = {
lambda = {
lambda = [
module.lambda1.lambda_arn,
module.lambda2.lambda_arn,
module.lambda3.lambda_arn
]
}
ecs_Sync = {
ecs    = [module.fargate.task_definition_arn]
events = ["arn:aws:events:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:rule/StepFunctionsGetEventsForECSTaskRule"]
}
}
attach_policy_json = true
policy_json        = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "iam:PassRole",
"Resource": "*",
"Effect": "Allow",
"Sid": ""
}
]
}
POLICY`
Actual behavior
Failing on:
╷ │ Error: Invalid for_each argument │  │   on .terraform/modules/state-machine/main.tf line 76, in data "aws_iam_policy_document" "service": │   76:   for_each = local.create_role && var.attach_policies_for_integrations ? try(tomap(var.service_integrations), var.service_integrations) : tomap({}) │     ├──────────────── │     │ local.create_role is true │     │ var.attach_policies_for_integrations is true │     │ var.service_integrations is object with 2 attributes │  │ The "for_each" value depends on resource attributes that cannot be │ determined until apply, so Terraform cannot predict how many instances will │ be created. To work around this, use the -target argument to first apply │ only the resources that the for_each depends on.

Unfortunately, you hit a limitation of Terraform which is described here - https://github.com/hashicorp/terraform/issues/4149
The solution is:

To work around this, use the -target argument to first apply only the resources that the for_each depends on.

@antonbabenko thanks, but it is not entirely clear for me why it happens now, because this issue is happening only when I am applying it via pipeline (bitbucket in this case). when I do a plan and apply localy everything works correctly. So it might be an issue of some library version or so?

This issue was there since the early days of Terraform. The difference you experience can be related to the fact that different environments (on CI and when running locally) starting from different bases. One environment has Lambda function already created and it succeeds.

@antonbabenko I've applied all lambdas (that are part of the service_intergrations) - also tried to add depends_on statement in the step-functions in order to wait for lambdas to create but still getting the error:
`Error: Invalid for_each argument
on .terraform/modules/state-machine/main.tf line 76, in data "aws_iam_policy_document" "service":
76:   for_each = local.create_role && var.attach_policies_for_integrations ? try(tomap(var.service_integrations), var.service_integrations) : tomap({})
The "for_each" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the for_each depends on.`

Make sure that you apply all resources/modules mentioned in service_integrations (not just Lambdas). You also have module.fargate.task_definition_arn mentioned there. depends_on won't help unfortunately.

The problem here for_each = local.create_role && var.attach_policies_for_integrations ? try(tomap(var.service_integrations), var.service_integrations) : tomap({})
is simply that terraform needs the left and right results (from the condition ... ?  : )  for maps to be with the same structure, and if you provide an empty structure for the right result you will can never skip the block.
Why we don't simply replace this line of code by the below and it will fix the problem
for_each = {
for key, value in var.service_integrations : key => value
if local.create_role && var.attach_policies_for_integrations && value != null
}

Please keep this issue open. This is a major problem using this module.

This issue has been resolved in version 2.5.2 :tada:


Cannot find WebSocketServerFactory class (Error)

I'm receiving this error when it tries to start javalin. I compile the jar using maven and it has all the dependencies it needs even the WebSocketServerFactory. But I still get this error: https://pastebin.com/H6HYx3SP
I'm using Javalin 1.7.0.
Can someone help me with this because it is driving me crazy as I've tried multiple things and I just don't know what to do anymore.

Can you please share your pom.xml and even if that is possible, just share the source code?
I'd try to run it myself and check what is happening.
This
java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.server.WebSocketServerFactory

suggests that you have some kind of class path problems, possibly libraries versions clash.

Can you post your code?

I can share my pom files but I cannot share the source code because I see the software to people who are interested. But here are the pom files the contain the stuff about dependencies and such,
Parent: https://pastebin.com/nDcqX4G8
Other: https://pastebin.com/hXLRj8zs

NetworkManagerAPI Pom: https://pastebin.com/uiWCL0EH
I use Intellij IDEA

Poms look ok and they work for me. I've setup a simple project with them and can't reproduce this issue.
I'm out of simple ideas :)

Hmm, okay. Thanks for trying!

Maybe try to clean local .m2 repo and invalidate caches & restart & rebuild project in intellij? Shooting blindly, but I've seen "Stranger Things"TM.
I still bet your classpath is somehow corrupted. Did you add any jars manually to the classpath?
What does mvn dependency:tree -Dverbose say?

That's the only class where I use Javalin.

Alright, then you have some other code somewhere that uses jetty websockets (might be something you haven't written yourself), and there is a version mismatch.
Excluding the websocket dependency from Javalin (or making sure they're in sync) should fix it.

The only thing I got that uses Jetty is Javalin and I don't understand how there can be a version mismatch as I compile the jar with all the dependencies like it says in the documentation.

Is this an Android app?

No it isn't it is a BungeeCord plugin. Don't know if you ever heard of it. But it is used for minecraft servers.

If I'm right BungeeCord only uses netty not jetty and that post is regarding Spigot not BungeeCord.

Then I'm out of ideas. Your POMs and Java code looks fine, so your best bet is to upload your project. Remove any custom code you think is sensitive, we just care about the part where it breaks.

I've created a Test plugin for BungeeCord with Javalin and its dependencies and I get the same error again. I'm uploading the source now.

https://github.com/ChimpGamer/NMJavalinTest

That's perfect, thanks. I'm currently traveling, but I'll have a look on Wednesday or Thursday if @majorpasza or someone else doesn't solve it first.

Okay, Thank you!

For what it is worth I wasn't able to get the project to compile until I updated the <repository> in the pom.xml to look like this so the dependency could be resolved:
        <repository>
            <id>md_5-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </repository>

The code provided doesn't have a typical main method since it's a plugin for something else, but I was able to write a simple main that setup a websocket handler and everything worked as expected.

@ChimpGamer did you try changing your repository tag ?

Yea, I already did but still the same issue. I'm a bit confused why this keeps happening.

I wasn't able to reproduce it either, seems to work fine with when adding a custom public static void main.  Are you seeing the conflict when trying to load the plugin inside whatever it plugs into?

@ChimpGamer since no one is able to reproduce this, I think I'll close the issue.

@ChimpGamer if you want to give this another look, there is a possible solution in https://github.com/tipsy/javalin/issues/358.


Implement 'Last updates timestamp' feature

Footer at bottom left "Last updated: [not implemented yet]"

This feature is not implemented yet.


no available "stable" tag on dockerhub

default image in "wbdev" is contactless/devenv:stable but there is no such image. You should either upload one with the tag or rename it in wbdev to "latest"

#44


Clean up Django database errors

Overview
GitHub errors for some international organizations where the parent id represents all the city organizations. Specifically Romania.
Action Items
[ ] Verify data is correct in Django for city orgs with only a country github id.
[ ] Correct any erroneous data in Django

@emecas I think we have a duplicate issue. I believe since our last talk, you said you would take a look at the issue. Perhaps I'm using the wrong URL or looking at a dated version?

@emecas can you confirm if this is a duplicate issue as mention by @connie-yu-dotcom above? If so please reference duplicate issue and close this one.

@emecas can you confirm if this is a duplicate issue as mention by @connie-yu-dotcom above? If so please reference duplicate issue and close this one.

@ladissi  I am not sure if this is a duplicated,
What other issue are you referring to @connie-yu-dotcom ?


feat: agent sse & scheduler management

Close #25

Implements

Common dto module
Scheduler manage interface and abstract class, impl class
Separate SSE Handler with multiple clients
restAPI of agent controller

/api/templates/{template_id}?action=start sse endpoint will return TestResult in every seconds

for now, it will return TestResult's stub

/api/templates/{template_id}?action=stop will complete sseEmitter and shutdown related scheduler that has id of {template_id}

이제 그만하고 주무세요,,,,ㅋㅋㅋㅋ

ㅋㅋㅋㅋㅋ 넵


Jetpack restrcitions

Restrict the jetpack functionality so that you can only hover with y-velocity of 0. Otherwise, it will be too overpowered.

Jetpack doesn't allow you to fly around anymore, it just gives you lighter gravity to fly higher


Delete older videos from archive

Checklist

[x] I'm asking a question
[x] I've looked through the README and FAQ for similar questions
[x] I've searched the bugtracker for similar questions including closed ones

Question

I am using --download-archive option from 1-2 years now to record the videos already downloaded.
Now that list has grown to more than 10000 video IDs. How do I clean it up?
Is it stored randomly? Or in order of of download time? (looks like it)
Normally I download videos of last two days only (--dateafter today-1day). So is it safe to delete first 9500 video IDs making sure that it would still not be redownloaded? (because they will be older than 2 days anyway)
Thank you

New entries are appended to the end of a file. This is all context you have.


SAK-45410 Rewrite the 'Email Template Tool UI' from RSF to Thymeleaf.

Any day that we remove lines of RSF code is a good day.   Thanks.

@ern any thoughts on this?


CamelSource should implement apis.Validatable and apis.Defaultable

cc @nicolaferraro @matzew
Then we should set up the webhooks for these source types like in this PR: https://github.com/knative/eventing-contrib/pull/1107

Looks interesting. Unfortunately we had to leave some parts of the camel source unstructured because the Camel YAML DSL is not strictly defined yet, but there are other parts that can be validated.

This is mostly about validating and defaulting what you can, exhaustiveness isn't required.


Convergence improvements

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 67.68293% with 106 lines in your changes missing coverage. Please review.

Project coverage is 77.47%. Comparing base (861d9cf) to head (d94169d).

Files with missing lines
Patch %
Lines

irtorch/utils.py
21.91%
57 Missing :warning:

irtorch/estimation_algorithms/ae.py
58.33%
25 Missing :warning:

irtorch/models/base_irt_model.py
20.00%
4 Missing :warning:

irtorch/models/three_parameter_logistic.py
94.20%
4 Missing :warning:

irtorch/estimation_algorithms/vae.py
81.25%
3 Missing :warning:

irtorch/load_dataset.py
92.30%
3 Missing :warning:

irtorch/plotter.py
25.00%
3 Missing :warning:

irtorch/models/nominal_response.py
90.90%
2 Missing :warning:

irtorch/models/generalized_partial_credit.py
75.00%
1 Missing :warning:

irtorch/models/graded_response.py
93.33%
1 Missing :warning:

... and 3 more

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   77.85%   77.47%   -0.38%
==========================================
  Files          38       37       -1
  Lines        2985     3157     +172
==========================================
+ Hits         2324     2446     +122
- Misses        661      711      +50

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


Declarative authorization/permissions with custom directives

Hi,
I'm coming from the Prisma world. Unfortunately they seem to be moving away from direct GraphQL support in Prisma 2. I also had a number of architectural issues with Prisma's design, and they were never resolved. I ended up writing quite a bit of my own code to try and fix Prisma to work as I wanted. The biggest thing being exposing all queries and mutations to the client with declarative permissions. You can see some of my initial thoughts on this here: https://twitter.com/codenmath/status/1192290679428276225?s=20
I have iterated on the design shown I that article, and in a private deployment I have advanced declarative permissions working rather well. As far as I know there are no other projects that have done declarative permissions to this level, except for maybe AWS' GraphQL project...I forgot the exact name.
Anyway, I hope declarative permissions using custom directives are on the roadmap, and I'd like to offer my insights as I've been designing what in my mind is the best solution for over a year now.

@lastmjs I twitter link is not correct. There are a couple implementations of declarative permissions using directives. AWSApp sync is one example. AeroGear community has it's own that works with keycloak (opensource OpenID server)
https://github.com/aerogear/keycloak-connect-graphql/
Which can be used in Graphback today. With new architecture, we will add those directives automatically, but it is up to the community to see what authentication/authorization solution is being used under the hood - For example acccount.js/passport.js etc.
So short answer - authentication and authorization is on the roadmap and I would love to get more insights on how the community will like to have it done. However, thanks to modular architecture authorization can be added today to any graphql-cli or graphback templates.

We going to provide this as separate package: https://github.com/aerogear/datasync


Digital Output state change does not change pin voltage

Somehow I'm unable to simply change the state of BCM26 to HIGH using the following code (already taking into account issue #137):
int pin = 26;
Context context = Pi4J.newAutoContext();
DigitalOutputConfig config = DigitalOutput.newConfigBuilder(context)
        .id("BCM" + pin)
        .name("Tester")
        .address(pin)
        .provider(RaspberryPi.DIGITAL_OUTPUT_PROVIDER_ID)
        .build();
DigitalOutput output = context.create(config);
output.state(DigitalState.HIGH);

The code runs without error. I even debugged into Pi4J - the state is changed there but voltage between BCM26 and GND remains 0V. According to https://pi4j.com/documentation/pin-numbering I measured voltage between the two last pins (37+39) in the same row as pin 1.
Initially I used a simpler code snipped based on the documentation https://pi4j.com/documentation/io-examples/digital-output with same result:
int pin = 26;
Context context = Pi4J.newAutoContext();
DigitalOutput output = context.digitalOutput().create(pin);
output.state(DigitalState.HIGH);

I have the same (very fundamental) problem.
Will there a fix/workaround be available soon?

I will try to reproduce this problem on my side. Can you confirm you have the same problem

on other pins?
with provider("pigpio-digital-input")?

Would you also be able to provide the output of
        PrintInfo.printLoadedPlatforms(console, pi4j);
        PrintInfo.printDefaultPlatform(console, pi4j);
        PrintInfo.printProviders(console, pi4j);

See https://github.com/Pi4J/pi4j-example-minimal/blob/main/src/main/java/com/pi4j/example/PrintInfo.java

BTW: I'm using Pi4J version 2.1.0.

on other pins?
Tried BCM17 (aka WPI0) and BCM11 (aka WPI14) with same result.

with provider("pigpio-digital-input")
Produces com.pi4j.provider.exception.ProviderIOTypeException: Pi4J provider IO type mismatch for [raspberrypi-digital-input(DIGITAL_INPUT)]; provider instance is not of IO type [DIGITAL_OUTPUT]

PrintInfo.printLoadedPlatforms(console, pi4j);

PLATFORMS: [1] "Pi4J Runtime Platforms" <com.pi4j.platform.impl.DefaultPlatforms>
�~T~T�~T~@PLATFORM: "RaspberryPi Platform" {raspberrypi} <com.pi4j.plugin.raspberrypi.platform.RaspberryPiPlatform> {Pi4J Platform for the RaspberryPi series of products.}

PrintInfo.printDefaultPlatform(console, pi4j);

PLATFORM: "RaspberryPi Platform" {raspberrypi} <com.pi4j.plugin.raspberrypi.platform.RaspberryPiPlatform> {Pi4J Platform for the RaspberryPi series of products.}

PrintInfo.printProviders(console, pi4j);

PROVIDERS: [6] "I/O Providers" <com.pi4j.provider.impl.DefaultProviders>
�~T~\�~T~@I2C: [1] <com.pi4j.io.i2c.I2CProvider>
�~T~B �~T~T�~T~@PROVIDER: "RaspberryPi I2C Provider" {raspberrypi-i2c} <com.pi4j.plugin.raspberrypi.provider.i2c.RpiI2CProviderImpl> {com.pi4j.plugin.raspberrypi.provider.i2c.RpiI2CProviderImpl}
�~T~\�~T~@DIGITAL_OUTPUT: [1] <com.pi4j.io.gpio.digital.DigitalOutputProvider>
�~T~B �~T~T�~T~@PROVIDER: "RaspberryPi Digital Output (GPIO) Provider" {raspberrypi-digital-output} <com.pi4j.plugin.raspberrypi.provider.gpio.digital.RpiDigitalOutputProviderImpl> {com.pi4j.plugin.raspberrypi.provider.gpio.digital.RpiDigitalOutputProviderImpl}
�~T~\�~T~@SERIAL: [1] <com.pi4j.io.serial.SerialProvider>
�~T~B �~T~T�~T~@PROVIDER: "RaspberryPi Serial Provider" {raspberrypi-serial} <com.pi4j.plugin.raspberrypi.provider.serial.RpiSerialProviderImpl> {com.pi4j.plugin.raspberrypi.provider.serial.RpiSerialProviderImpl}
�~T~\�~T~@SPI: [1] <com.pi4j.io.spi.SpiProvider>
�~T~B �~T~T�~T~@PROVIDER: "RaspberryPi SPI Provider" {raspberrypi-spi} <com.pi4j.plugin.raspberrypi.provider.spi.RpiSpiProviderImpl> {com.pi4j.plugin.raspberrypi.provider.spi.RpiSpiProviderImpl}
�~T~\�~T~@DIGITAL_INPUT: [1] <com.pi4j.io.gpio.digital.DigitalInputProvider>
�~T~B �~T~T�~T~@PROVIDER: "RaspberryPi Digital Input (GPIO) Provider" {raspberrypi-digital-input} <com.pi4j.plugin.raspberrypi.provider.gpio.digital.RpiDigitalInputProviderImpl> {com.pi4j.plugin.raspberrypi.provider.gpio.digital.RpiDigitalInputProviderImpl}
�~T~\�~T~@ANALOG_INPUT: [0] <com.pi4j.io.gpio.analog.AnalogInputProvider>
�~T~\�~T~@ANALOG_OUTPUT: [0] <com.pi4j.io.gpio.analog.AnalogOutputProvider>
�~T~T�~T~@PWM: [1] <com.pi4j.io.pwm.PwmProvider>
  �~T~T�~T~@PROVIDER: "RaspberryPi PWM Provider" {raspberrypi-pwm} <com.pi4j.plugin.raspberrypi.provider.pwm.RpiPwmProviderImpl> {com.pi4j.plugin.raspberrypi.provider.pwm.RpiPwmProviderImpl}

In my case there was a very simple solution: running the app as root with sudo solved the problem.

That's not really an option and it was not required using Pi4J 1.x with wiringpi. If it works with root usually the user is missing a group root has. I will test if it works with root.

(at this moment) sudo is indeed needed for PiGpio, I added as remark at bottom of page https://pi4j.com/getting-started/minimal-example-application
But in this case, the error message seems to be different...

Running the Java process as root did not change anything. If there are insufficiant privileges this should result in an exception. But as I already stated, the code runs without any error. I simply does not change the pin state.

I debugged it: In the EventManager there are no listeners registered - therefore the forEach in the code below is simply skipped:
   public SOURCE_TYPE dispatch(EVENT_TYPE event) {
        this.listeners.forEach((listener) -> {
            try {
                this.delegate.dispatch(listener, event);
            } catch (Exception var4) {
                this.logger.error(var4.getMessage(), var4);
            }

        });
        return this.source;
    }
}

I did not have pi4j-library-pigpio added to my project. However, even with this library added, listeners is still empty.
These are the Pi4J dependencies I inluded:
		<dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-core</artifactId>
			<version>2.1.0</version>
		</dependency>
		<dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-plugin-raspberrypi</artifactId>
			<version>2.1.0</version>
		</dependency>
		<dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-library-pigpio</artifactId>
			<version>2.1.0</version>
		</dependency>

In the meantime I found your repository pi4j-example-minimal - I was hoping for an example like this but I did not find a reference to it anywhere. I built it and transfered all files in distribution to the Raspberry Pi. The example runs without errors if started as root and BCM 22 changes periodically as announced on the console.
From the example I realized, that it contains pi4j-library-pigpio-2.0.jar - I missed this dependency as well as you can see from my last post. I don't think that Pi4J should run without errors if half of its dependencies are missing. In your reply to my first post you asked for the output of some descriptors but obviously you have been unable to conclude the missing dependencies.
After I added pi4j-library-pigpio to the dependencies I copied the digital output related code from MinimalExample.java contained in pi4j-example-minimal to my code:
                    Context pi4j = Pi4J.newAutoContext();
                    DigitalOutputConfigBuilder ledConfig = DigitalOutput.newConfigBuilder(pi4j)
                            .id("led")
                            .name("LED Flasher")
                            .address(pin)
                            .shutdown(DigitalState.LOW)
                            .initial(DigitalState.LOW)
                            .provider("pigpio-digital-output");
                    DigitalOutput led = pi4j.create(ledConfig);
                    led.high();

The code changes BCM 22 to HIGH. Obviously something is different in this code compared to the code in my initial post.
It is the provider which "magically" has to be pigpio-digital-output whereas I used RaspberryPi.DIGITAL_OUTPUT_PROVIDER_ID. The latter translates to raspberrypi-digital-output. I did not find constant with the value of pigpio-digital-output in the whole code base.
Bottom line: For Pi4J 2.x you pursued a modular approach, but now there are multiple deployment units (jars) and so many things to wire during set-up that even you are unable to point to the error in just 10 lines of code in my initial posting.

@camueller I find it really a pity you didn't find the minimal example before as it is part of the "getting started with Pi4J" of our website pi4j.com, so I clearly did something wrong with the documentation website...
Your remark about the unclarity of the newAutoContext is correct. We have taken "the modular approach" for V2 to be in sync with how the "Java world" is evolving, but we need to rethink this approach. I started a discussion for this: https://github.com/Pi4J/pi4j-v2/discussions/178. Any valuable feedback, ideas, code improvement proposals are welcome!
Sidenote: this project is an open-source "pet project" for the three main contributors. As such we can't provide any "real-time" support but do what's possible besides our professional activities to get as many people as possible interested in and started with Java on the Raspberry Pi.


Add support of Enter to authentication form

Right now the authorization form (/#/sign-in page) does not support submitting on Enter.
This is because the submit button is moved out from the form for the correct twitter bootstrap validation handling (this is an ugly hack, yeah, but bootstrap doesn't support excluding form elements from being validated. They do all or nothing).
An extra callback for the button submit should be added.

Fixed by https://github.com/geophystech/eqalert.ru/commit/50ec926f37b3006849bb997e5e0ead9e2dbf5953


dnscrypt-proxy.toml error - dnscrypt won't start

The pupup just bbriefly shows up, there is something about an error with reading dnscrypt-proxy.toml and closes again. simpledns ist not started.
Searching my computer, I found it in C:\Program Files\bitbeans\Simple DNSCrypt x64\dnscrypt-proxy there is a dnscrypt-proxy.toml but it appears green (encrypted) and I can do nothing to it.
My user folder is encrypted - it may extract there (user temp folder?) and move the file over, preserving its permissions from there. Bot those do not seem to work at the program files. - just a guess.

I installed it on my new system, got the same error. But no dnscrypt-proxy.toml can be found.
As of today, it is not useable. Is there a new path where this should be located?


Help Me Pleaze Youtube-Dl!!

Hi guys, i have a problem downloading this video and i can't get over it.
Youtube-dl manages to download only part of the video and then stops.
Could you tell me how to download everything pleaseeeeee!
Thanks a lot :)
https://ss-free.hotmovies.com/streams3/072/72605/72605.ism/72605.m3u8?ssauth=1054224!1-72605-20200417093351-cf24dbbeede2e57805c981515aa703ea

Returns empty body.

Sorry, I don't understand

sorry, I don't understand

I have also tried with ffmpeg but I get the same result, do you have any idea how I can do it? :)


Check datanode committed block height before shutting it down on protocol upgrade

Vegaconsole (VC) needs to ensure that datanode has processed all blocks that core has processed at the point of upgrade such that it can safely shut down the datanode.  This is to avoid a situation where core upgrades at block X, but datanode is shutdown having only processed block X -1 ( or X -2 etc). were this to happen, when core is restarted from snapshot at block X, datanode (after restart) would be missing blocks and would complain. There would be no easy way out of this situation other than rolling back core to a previous snapshot or getting a dump of datanode with height at X or above.  We want to avoid this.  Short term a pause between shutting down core and datanode of a few seconds to ensure all events are processed would 'probably' suffice, but is riskier.
Corresponding datanode ticket to add an API for this:
https://github.com/vegaprotocol/vega/issues/5842

a delay is already built into the the killing of the processes isn't it? @karlem

A delay is built in already. We run sigterm and they wait. Although a core node would also need to make sure that it send all the events before stopping (which I think it probably does). On the other hand the API call might be even safer the delay.....

Closing as capsule already can handle this


Timeline cropping after capture is made

Awesome tool!
A cool feature would be cropping of the timeline to remove parts of the capture that are not important to the flow you are trying to show in the gif (things like "moving your mouse to a button", "time it takes to get back to the menu bar to click to stop recording").
The use case I'm thinking about is using screen captures for blog posts that explain a new feature of a web app.  See the gif I put in here for an example.  If I would have had an easy tool for cropping off the "stall" at the end of the loop, it would have improved the quality of the gif.
Thinking from a ux-perspective, it seems it would make sense if the bar giving loop position was able to deal with user interaction to set these "time-line crop" points.  Screen shot shows this idea.

@jlmitch5 are you referring to something like "Trim" in Quicktime?

@stursby exactly 👍

Thank you @jlmitch5! We are really cautious about moving into anything related to editing, see my reply on #104. That being said trimming and cropping in the editor is something we're actively considering, tho they might be optional plugins. We've even gone as far as exploring design solutions for it!

Very nice!  Random thoughts for consideration.

should the interface allow cropping something out of the middle of the recording, instead of just at the beginning and the end?  I would assume that beginning/end crops would probably cover a large number of the cases people will want to crop.
do you need to provide the action buttons in your screenshot?  They seem like they might imply destructive editing of the recording, so if you do include them, you'll probably want to include "undo" functionality (as users will inevitably make a crop that they didn't want to do).  An alternative would be to provide the trimming handles in the editor pane you have now (not make trimming a separate "flow"), and have the trim applied only when the user clicks save.  This alternative may be more in line with the "we're not an editor" mantra.  The trade-off is that it could clutter up the interface.
Something that I think could be improved on from the quicktime screenshot @stursby posted is that when the user moves the handle, the preview window "scrubs" through the recording to show the start/end points you're about to set.  That way you can be more surgical about what you're trying to trim out.
I like that you included start/end times.  I think that provides the benefit of allowing the user to easily trim the recording to an exact length if that is a requirement for them.

Just throwing my two cents in here: This would be a tremendous feature for Kap.
I've been using Kap for a while now and it is great (really good job), but the first thing I tried to do after taking a screencap was to trim it. There is always a bit of lagtime in my gifs where I set up the scene or move the mouse into the right position.
Not turning into an editor is very wise. Kap is great for its simplicity. But trimming would be an excellent exception, and as mentioned above Quicktime is a good example of software that wouldn't be considered a video editor but does support trimming.

I believe we're going to go ahead and make this a feature for Kap 🎉
An addition to this could be that you could make multiple files out of the same recording via trimming. (Source: https://twitter.com/Stammy/status/851944793404047360)

Can I read about the latest developments on this somewhere? Would love this feature.

Started prototyping this: https://out-qksqwjehzc.now.sh/

Can’t wait! Until then, Kap isn’t very useful to me.

Hey, is there a status for this anywhere? The problem is that it is very hard to capture something currently because the shortcuts clash for example with framer and if I use the stop button it is visible in the video. While it is easy to crop mp4 with quickTime, if you want to create gifs you are at a loss as nearly no tool is capable of cropping gifs nicely.

Same @lukasopperman

@codeluggage @lukasoppermann @Hum4n01d https://twitter.com/slicknet/status/782274190451671040
This is something we also really want to see exist, but it's summer, and all of us has been busy in real life. Contributions are always welcome. Remember that this is a free open-source project. We work on it for fun when we can.

Hey @sindresorhus I did not mean in any way to suggest you are not caring or that you need to work more on the project. I was merely wondering if there is a status from which one could guess when a feature like this might be available.
I have seen other projects for example gulpjs, where more detailed road maps exist but are not easy to find.

Hi @lukasoppermann, you can follow our projects and milestones. If you'd rather get an email updates, you can sign up for those on getkap.co

Thanks @sindresorhus for sharing that tweet; never seen that one before. I'll keep that in mind for the future 😃

I've started working on this.  So far I have the UI completed, allowing you to select a portion of the kapture to keep, and the preview will only show that part.  Here's a gif of it:

The trimmer handles I currently have in there are just placeholders for now.  I'm not much of a designer, so if someone could provide SVGs for the in/out marker icons that would be fantastic.  If not, I'll do my best to make it look decent.
Next step is update the conversion to only use the selected part of the video.


Save page to include the linked references part?

is that possible to save page on the linked references it have? or does any solution for that?

I try to understand, you mean: There is a link, the content of this link is a webpage, can the content of this webpage be saved locally in the form of an image or other format, right?

yes， i mean if i right click on the page (top) and save all link assets to local, is that possible to also  automatically included my 757 linked references content?

This is not included, only for your current page.

thanks， is that possible how to save these efficiently?
Yapeng Bai @.***>于2024年11月20日 周三09:22写道：

This is not included, only for your current page.
—
Reply to this email directly, view it on GitHub
https://github.com/b-yp/logseq-link-to-local/issues/23#issuecomment-2487115006,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BM73WIT3NTNOXLC7ISI5KM32BPP63AVCNFSM6AAAAABR72L3OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXGEYTKMBQGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

It is recommended to save one page at a time, as this is more controllable. Saving with one click is theoretically possible but would require additional features, and there is a higher risk of failure.


Align spring-cloud-config with JSR 382, contribute to JCP

Guys around Eclipse MicroProfile started a JSR to standardize an API for Java Application / Micro Services Configuration recently:
JSR home: https://jcp.org/en/jsr/detail?id=382
Twitter: https://twitter.com/ConfigJSR https://twitter.com/MicroProfileIO
Google Groups JSR Status Update: https://groups.google.com/forum/m/#!topic/microprofile/LxyzVg3K2SU
Spring Cloud Config targets the same problem. I would love to see it in-line with this upcoming JSR standard, as much as feasible.
Who can participate in the JCP and provide expertise from Spring Cloud Config into that JCP?
What do you think about this?

PropertySource is from spring-framework (Dec 2011), ConfigurationProperties (and loading yaml/properties) is from spring boot (Apr 2014) and spring cloud handles the remote pieces (Mar 2015). I'm unsure of the effort across all the projects to do that would be.
What are the dependencies on CDI?
I'm also unsure what the benefit for spring users would be.


docker_entrypoint.sh: change owner of PERSIST_DIRECTORY

make chroma user owner of $PERSIST_DIRECTORY, otherwise sqlite crashes

Changed merge branch so I can fix the Chart version (need to move things into release branch at some point)

Thanks @tazarov !

No, Thank you, @rginev! I also noticed that my actions don't have perms for ghcr push, so build fails, need to fix that one too

@rginev new version is up. Thank you.

Thanks for the rapid update - it works beautifully!


Please wait for the lead moderator to look at your ban and determine the next course of action.


Border color for Reaction Roles

Add the option for border colors on reaction roles
Expected Behavior
Being able to set a border color on the left of the embed in a Reaction Role Category
Current Behavior
Not being able to do so
Possible Solution
Add an extra parameter
Context
I want nicer look and feels for the border colors

:tada: This issue has been resolved in version 0.3.0 :tada:


uppercase text

There is a way to change all text in calendar to uppercase?

Can you elaborate? Which texts do you want to change?

month, weekdays name

Without touching the package source code it is not possible


Ace.HTTP explodes on absolute URLs

See stacktrace:
Elixir.CaseClauseError

no case clause matching: {:ok, {:http_request, :GET, {:absoluteURI, :http, "localhost", :undefined, "/status"}, {1, 1}}, "User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2)\r\nConnection: close\r\nHost: localhost:3006\r\nUser-Agent: Nested-Internal-HealthChecker\r\n\r\n"}

Note:
code is here https://github.com/CrowdHailer/Ace/blob/338775da892c7aafc7959d6a7d7a3564ff8d7416/extensions/http(s)/lib/ace/http/handler.ex#L70
would need to handle the remaining cases here http://erlang.org/doc/man/erlang.html#decode_packet-3 in the case clause.

Could you open up a PR which has failing test cases that demonstrate this error

@CrowdHailer sure thing! Can you give me any guidance as to which test file it should go in?

It should go in request test https://github.com/CrowdHailer/Ace/blob/0.9.x/extensions/http(s)/test/ace/http/request_test.exs
Also please branch off the 0.9.x branch

https://hex.pm/packages/ace_http version 0.4.6 available


Question: How do Shopify products get synced to Sanity?

Hi,
Just wondering how this part works, because everything's running fine except that Sanity isn't pulling my products from Shopify. Not getting any errors regarding my Shopify creds. My guess is it's about the product meta-data?

Hey there @tmytrn!
Products get sync'd into Sanity through the following sequence:

The product update webhook is triggered in Shopify from a product being updated (either from you saving a change, or from an order being placed, reducing the inventory, etc.)
If the webhook is setup correctly (reference the setup step 3), it will send the product payload to your API endpoint: /api/shopify/product-update
The sync function at your API endpoint will do a few checks first to see if there's been a relevant change for the product between the last sync, and if so, update the product in Sanity

A few things to check if you're not seeing your products sync'ing:

Remember, you must have the webhook notifications setup to a live URL, you cannot use localhost
All shopify ENV variables must be setup on your live hosting environment
Your product on Shopify must have your Headless Storefront (private app) enabled for the sales channel

I hope that helps, but let me know if you're still having issues!

Got em sync'ed! Just didn't have the env variables on live. Thanks Nick!

Sweet, glad to hear it @tmytrn! 🤘

Remember, you must have the webhook notifications setup to a live URL, you cannot use localhost
All shopify ENV variables must be setup on your live hosting environment
Your product on Shopify must have your Headless Storefront (private app) enabled for the sales channel

Does this mean API links need to by synced between shopify, vericel, AND sanity CMS?


Update NPM Module with new PR's

Just curious if it would be possible to update the NPM module so we can get the latest pull requests in there? Would love to be able to remove the required react-multi-email class :)
Thanks for the great work here, this is super helpful!

I'm so sorry. I was late


Error GenericMask cannot handle object {} of type '{}'

Error
Visualizing Images with SparseInst yields error.
ERROR: ValueError("GenericMask cannot handle object {} of type '{}'".format(m, type(m)))
This same error occurred both on my Ubuntu laptop and also on Google Colab.
Expected Behavior
Visualizing Images with SparseInst should be successful
Error Log
/content/SparseInst
[04/27 01:39:25 detectron2]: Arguments: Namespace(confidence_threshold=0.5,
config_file='configs/sparse_inst_r50_giam.yaml', input=['datasets/coco/val2017/000000000139.jpg' ... ],
opts=['MODEL.WEIGHTS', 'sparse_inst_r50_giam_aug_2b7d68.pth', 'INPUT.MIN_SIZE_TEST', '512'],
output='results', video_input=None, webcam=False)
[04/27 01:39:28 fvcore.common.checkpoint]: [Checkpointer]
Loading from sparse_inst_r50_giam_aug_2b7d68.pth ...
  0% 0/5000 [00:00<?, ?it/s]/usr/local/lib/python3.7/dist-packages/torch/functional.py:568:
UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument.
(Triggered internally at  ../aten/src/ATen/native/TensorShape.cpp:2228.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py:402:
FutureWarning: The input object of type 'Tensor' is an array-like implementing one of the corresponding
protocols (`__array__`, `__array_interface__` or `__array_struct__`); but not a sequence (or 0-D).
In the future, this object will be coerced as if it was first converted using `np.array(obj)`.
To retain the old behaviour, you have to either modify the type 'Tensor', or assign to an empty array
created with `np.empty(correct_shape, dtype=object)`.
  masks = np.asarray(predictions.pred_masks)
/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py:402:
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
(which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated.
If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  masks = np.asarray(predictions.pred_masks)
  0% 0/5000 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "demo.py", line 96, in <module>
    img, args.confidence_threshold)
  File "/content/SparseInst/sparseinst/d2_predictor.py", line 69, in run_on_image
    predictions=instances)
  File "/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py", line 403,
in draw_instance_predictions
    masks = [GenericMask(x, self.output.height, self.output.width) for x in masks]
  File "/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py", line 403, in <listcomp>
    masks = [GenericMask(x, self.output.height, self.output.width) for x in masks]
  File "/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py", line 96, in __init__
    raise ValueError("GenericMask cannot handle object {} of type '{}'".format(m, type(m)))
ValueError: GenericMask cannot handle object tensor([[False, False, False,  ..., False, False, False],
        [False, False, False,  ..., False, False, False],
        [False, False, False,  ..., False, False, False],
        ...,
        [False, False, False,  ..., False, False, False],
        [False, False, False,  ..., False, False, False],
        [False, False, False,  ..., False, False, False]]) of type '<class 'torch.Tensor'>'

Possible Solution
Change PyTorch to specific version?
Steps to Reproduce
Use Link below:
https://colab.research.google.com/drive/1EdzVwbXKsIGDFyQtb92Ppo22oQ4rChnL#scrollTo=VtxB2v--pPZA

Git Clone SparseInst
Install Dependencies (timm)
Download model
Download COCO Datasets (val2017 Only)
Run
python demo.py --config-file configs/sparse_inst_r50_giam.yaml --input datasets/coco/val2017/* --output results --opt MODEL.WEIGHTS sparse_inst_r50_giam_aug_2b7d68.pth INPUT.MIN_SIZE_TEST 512

Context (Environment)
Environment 1

Using Google Colab
CUDA Version: 11.2
Install Detectron2 using pip install
!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'

Environment 2

Using Ubuntu 20.04
GPU: NVIDIA GeForce RTX 3060 Laptop GPU
CUDA Version: 11.4
Install Detectron2 from source on newly created conda environment

It's the bug of detectron2/
Try this way:
"/usr/local/lib/python3.7/dist-packages/detectron2/utils/visualizer.py", line 403,
modify the code from
masks = [GenericMask(x, self.output.height, self.output.width) for x in masks]
to
masks = [GenericMask(x.numpy(), self.output.height, self.output.width) for x in masks]

Excellent. I confirmed the above solution works!
Check it out here: https://colab.research.google.com/drive/1EdzVwbXKsIGDFyQtb92Ppo22oQ4rChnL#scrollTo=VtxB2v--pPZA


radar42585636-demangling requirements

Cherry picks from the upstream LLVM required for https://github.com/apple/swift-lldb/pull/812

Thanks, no conflicts here only in LLDB

One more thing: LLDB's stable branch uses the swift-5.0-branch for LLVM. So you should cherry-pick these commits on that branch. You can create a new PR or directly push them to that branch.

Ok good to know, you mean here? https://github.com/apple/swift-llvm/tree/swift-5.0-branch

Yep, that's it!

Thks! Here we go: https://github.com/apple/swift-llvm/pull/107

This PR should not be merged (and hopefully cannot be merged due to restricted branch permissions). The stable branch is intended to be a "branch alias" that tracks the current release branch (swift-5.0-branch). When you merge your other PR (#107), it will get automatically merged to stable.

Oh thanks for the info. Haven't worked much with the swift-lldb repo yet.


[BUG] Fix pull_chunk size overflow error

As reported and corrected in https://github.com/labstreaminglayer/pylsl/pull/61

Codecov Report

Merging #85 (2b5cee9) into main (33a636b) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   61.23%   61.23%
=======================================
  Files          44       44
  Lines        3421     3421
  Branches      463      463
=======================================
  Hits         2095     2095
  Misses       1220     1220
  Partials      106      106

Flag
Coverage Δ

unittests
61.23% <100.00%> (ø)

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

Impacted Files
Coverage Δ

bsl/stream_player/stream_player.py
57.14% <ø> (ø)

bsl/stream_receiver/stream_receiver.py
88.68% <ø> (ø)

bsl/lsl/stream_inlet.py
77.61% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Improve Handling Multiple OpenMV Cams on Connect

Right now, you just get the port name, which isn't the best. Unfortunately, all OS-accessible info is basically the same. You need to query the arch string to get better data.
Given this, a function should be created to query each filtered camera's arch string using the debug protocol and return that and populate the list instead with that info versus the COM port.

Fixed


Add kathut.de

This PR is:

[x] Adding a new domain
[ ] Updating existing domain size
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (512kb.club site)
[ ] Other not listed

[x] I used the uncompressed size of the site
[x] I have included a link to the GTMetrix report
[x] The domain is in the correct alphabetical order
[x] This site is not a ultra lightweight site
[x] The following information is filled identical to the data file

I confirm that I have read the FAQ section, particularly the two red items around minimal pages and inappropriate content and I attest that this site is neither of these things.

[x] Check to confirm

- domain: kathut.de
  url: https://kathut.de/
  size: 3.92
  last_checked: 2023-04-16

GTMetrix Report: https://gtmetrix.com/reports/kathut.de/n5fUrlth/

Sorry, this site comes under "super minimal", so we can't add it.


[lit-next] Create AsyncTask controller

Description
An AsyncTask is a generic controller for performing a task which tasks time to complete and is connected with a host Reactive/LitElement. The task should accept a task function which might perform a fetch, for example an a dependency function which returns a list of dependency values. If one of the dependencies changes when the element updates, the task runs. When the task completes, the value returned is stored and the task controller prompts the element to update. The element can then use the task value in its rendering. While the task is pending the isPending flag will be true.
Acceptance criteria
PR landed including AsyncTask controller.

Fixed via https://github.com/Polymer/lit-html/pull/1489.


Add day_of_year and week_of_year

Description
Closes: https://github.com/elixir-explorer/explorer/issues/714
This PR adds the following date functions:

Explorer
Polars
Description

day_of_year
ordinal_day
Day of year from 1 to 366

week_of_year
week
Week of year from 1 to 53

Notes
Rather than matching Polars exactly, I chose to follow the x_of_y pattern established by day_of_week.

Beautifully done, thank you @billylanchantin! :green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
I just changed the docs to keep the first paragraph a short sentence, as that is used as a summary by the docs.

I just changed the docs to keep the first paragraph a short sentence, as that is used as a summary by the docs. :)

Noted! I'll remember that for the future.


KeyError: '32' when running a skims scan

Hello! I have run a skims scan on my project. I am using Docker on Windows 11. However, it ends with the following error:
KeyError: '32'
Error log:
[ERROR] '32'
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/lib_root/f211/javascript.py", line 47, in regex_injection
    return get_vulnerabilities_from_n_ids(
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/sast/query.py", line 125, in get_vulnerabilities_from_n_ids
    return tuple(
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/sast/query.py", line 125, in <genexpr>
    return tuple(
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/lib_root/f211/javascript.py", line 44, in n_ids
    if is_argument_vuln(graph, n_id, method):
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/lib_root/f211/common.py", line 24, in is_argument_vuln
    evaluation = evaluate(method, graph, path, n_id)
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/symbolic_eval/evaluate.py", line 142, in evaluate
    return generic(
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/symbolic_eval/evaluate.py", line 130, in generic
    return evaluator(args)
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/symbolic_eval/cases/method_invocation.py", line 157, in evaluate
    d_expression = evaluate_method_expression(
  File "/nix/store/2f4g00km4sbgnf1668fsvlzaskg4pjzs-skims/symbolic_eval/cases/method_invocation.py", line 112, in evaluate_method_expression
    if args.graph.nodes[expr_id].get("symbol") in MODIFYING_METHODS:
  File "/nix/store/z7nyrfrrazvymg3ms6q6mdfkxjd1qbr8-skims-runtime/lib/python3.8/site-packages/networkx/classes/reportviews.py", line 187, in __getitem__
    return self._nodes[n]
KeyError: '32'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/nix/store/z7nyrfrrazvymg3ms6q6mdfkxjd1qbr8-skims-runtime/lib/python3.8/site-packages/reactivex/observable/fromfuture.py", line 28, in done
    value: Any = future.result()
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
KeyError: '32'
[INFO] An output file has been written: /usr/scan/Fluid-Attacks-Results.csv
[INFO] Value missing to add:
...

[INFO] Success: True
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/concurrent/futures/process.py", line 102, in _python_exit
    thread_wakeup.wakeup()
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/concurrent/futures/process.py", line 90, in wakeup
    self._writer.send_bytes(b"")
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/multiprocessing/connection.py", line 183, in send_bytes
    self._check_closed()
  File "/nix/store/mbsng5p51yxdpkf53v91i6ck8fdg4w9b-python3-3.8.13/lib/python3.8/multiprocessing/connection.py", line 136, in _check_closed
    raise OSError("handle is closed")
OSError: handle is closed

Any help would be appreciated!

This is not a makes specific issue, skims belongs to the universe repository. Instead, see the associated issue for this bug.


Remove depend tag.

The comment here about using depend is completely irrelevant and wrong when only describing how to use FormAPI as a virion.

Yes your right about that, thats why I am rewriting plugin.yml


feat: add all types

This PR is adding all the types, so in favour of https://github.com/wswebcreation/wdio-image-comparison-service/pull/26.
It will now even give warnings on the options, see

and on the output

@balukov and @mvgiacomello
Can you please verify this one, I added all the types and I think it should work now

@balukov and @mvgiacomello
Can you please verify this one, I added all the types and I think it should work now

I think it's a good idea to use interfaces from "webdriver-image-comparison"
I already thank about this.
I can check later how good it works for return object/numbers, because in my case almost this construction should return just numbers.

[0-0] 2020-03-10T14:11:17.676Z ERROR @wdio/runner: TSError: ⨯ Unable to compile TypeScript: specs/visual/base.spec.ts(14,25): error TS2339: Property 'checkScreen' does not exist on type 'BrowserObject'.
I use async mode, but I tried in sync mode too.

[0-0] 2020-03-10T14:11:17.676Z ERROR @wdio/runner: TSError: ⨯ Unable to compile TypeScript: specs/visual/base.spec.ts(14,25): error TS2339: Property 'checkScreen' does not exist on type 'BrowserObject'.
I use async mode, but I tried in sync mode too.

Hmm, need to look into this further. The sync was working on my machine, I haven't thought about the async one because I never use it 🤣

I use async mode, but I tried in sync mode too.

My mistake: of course, I use sync mode.
If it's work for you - merge it and I'll test it.

Ok, will release it

Released version https://github.com/wswebcreation/wdio-image-comparison-service/releases/tag/v1.12.2


dataset

Hello, I am glad that you can share your great work. As a beginner, I have a request: Could you provide a Google Drive link to the BEAT dataset you used, and indicate where the dataset should be placed? The main reason is that I couldn't find some of the facial weights (.bin) you used in the BEAT dataset and other works are usually like this.
Thank you very much!

I have the same question. Have you solved it already?

hi，i have the same question ,have you finished it?


FileExistsError

Describe the bug
when one tries to create logs shortly after each other, the renaming does not work
To Reproduce
Steps to reproduce the behavior:

log to HTML file
(change some code)
log again to HTML file
log.image(log.Level.INFO, img)

FileExistsError: file could not be created, because it already exists: 'log\cvlog.html' -> 'log\cvlog_20-06-08.163919.html'
Expected behavior
rename file so there's no error or overwrite it
Desktop (please complete the following information):

OS: Windows 10
Python 3.8 32bit
opencv-python <IP_ADDRESS>
opencv-log 1.2.2

Thanks for logging the issue. This is windows specific issue in getting the file modified time. This issue will be fixed in 1.3.0 release.

@simon376  What do you mean 'log to HTML file' in steps 1 & 3? is 1 & 3  not the same as 4?

I created a test case to reproduce this issue in windows. But it is not able to reproduce manually in real-time. Thinking how to you reproduce these steps.
def test_log_rotation():
    remove_dirs('log/')
    html_logger = hl.HtmlLogger()
    html_logger.log_image('error', 'image', "dummy string", None)
    assert os.path.exists('check/cvlog.html') is True
    assert len(os.listdir('log/')) == 1
    html_logger = hl.HtmlLogger()
    html_logger.log_image('error', 'image', "dummy string", None)
    assert os.path.exists('check/cvlog.html') is True
    assert len(os.listdir('log/')) == 2
    html_logger = hl.HtmlLogger()
    html_logger.log_image('error', 'image', "dummy string", None)
    assert os.path.exists('check/cvlog.html') is True
    assert len(os.listdir('log/')) == 3

when I run my script, logging to the HTML file, multiple times within some time, your library tries to rename the file from cvlog to cvlog_date.time.html.
it seems to me the time_stamp variable gets cached or not changed correctly (I have no idea about OS file IO functions), which leads to it reusing a timestamp it used to rename before, so it fails renaming the file because it already exists.

now I got it.
it seems like the creation time of the HTML file is not set properly.
if there is no cvlog.html file, the file creation timestamp is still the one used "last time" (which leads to the duplicates), while the last-changed timestamp is the correct one.

Are you removing  cvlog.html? Is it possible to share the script which reproduces these issues?

For every new python run, it backup the old HTML file as part of log rotation. It takes the file created time for renaming the old file.

Given the file exists error in windows
https://github.com/navarasu/opencv-log/pull/42

@simon376 Spun the new version release with this fix and lot more features.


Update install instructions

incompatible versions:

ntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions.
PyTorch has CUDA version 10.2 and torch_sparse has CUDA version 11.4.
Please reinstall the torch_sparse that matches your PyTorch install.

Instructions can improve, e.g., see code block https://github.com/JDACS4C-IMPROVE/TGSA/blob/documentation/README.md
Missing install for candle: ModuleNotFoundError: No module named 'candle'

Steps:
git clone
cd TGSA
conda create -n TGSA python=3.6
conda activate TGSA
conda install -c rdkit rdkit
pip install \
	fitlog \
	torch==1.6.0 \
	torch-cluster==1.5.9 \
	torch-scatter==2.0.6 \
	torch-sparse==0.6.9 \
	torch-spline-conv==1.2.1 \
	torch-geometric==1.6.1
chmod a+x candle_glue.sh
sh ./train.sh 1 ./tmp

Taking this issue. Will update with info from https://github.com/JDACS4C-IMPROVE/Singularity/blob/TGSA/definitions/TGSA.def

Updated the defintion file. This problem is solved.

Testing:
conda create -n TGSA python=3.7.10
conda activate TGSA
conda install pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 cudatoolkit=11.3 -c pytorch -c conda-forge
pip install git+https://github.com/ECP-CANDLE/candle_lib@develop
pip install torch-geometric==1.7.1

wget https://data.pyg.org/whl/torch-1.9.0%2Bcu102/torch_cluster-1.5.9-cp37-cp37m-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-1.9.0%2Bcu102/torch_scatter-2.0.9-cp37-cp37m-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-1.9.0%2Bcu102/torch_sparse-0.6.12-cp37-cp37m-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-1.9.0%2Bcu102/torch_spline_conv-1.2.1-cp37-cp37m-linux_x86_64.whl
pip install *.whl

pip install rdkit
pip install fitlog

pip install dgllife==0.3.2
pip install dgl==0.9.0
pip install numpy==1.21.5
pip install pandas==1.3.5
pip install scikit-learn==1.0.2
pip install scikit-image==0.16.2
pip install networkx==2.6.3
pip install h5py==3.8.0


Login issues

Users that don't login before attempting to add the widget to their home screen see an error. Users believe the app to be bugged because of this. It is not obvious that the app should be first opened and logged into Trello. The login error should instead redirect the user to login to Trello

The error currently says:  <string name="board_load_fail">Could not load board data. Please make sure you are logged in and try again.
Do you have a suggestion for better wording?

I agree. I've fixed it here c85423b77a43f14bb5721b888a539e2078c7cadf
Thanks.


dts: x86: remove mem.h

patch removes the mem.h and marcos used in that file are
moved appropriate board files.
Signed-off-by: Savinay Dharmappa<EMAIL_ADDRESS>

please rebase


flutter page crash when click frequent the button

Steps to Reproduce

use Channel stable, v1.5.4-hotfix.2
use mobile HuaWei frd-al00
run the app,go to the flutter page
4.close the network,the the flutter page appears a button
5.click the button can reload the data by methodchannel,which means the load data operation is in native
6.click the button frequency and quickly as fast as you can
7.then the app crash

Logs
backtrace:
    r0 00000001  r1 0000018d  r2 00000005  r3 00000000
    r4 0000018d  r5 00000002  r6 626f520c  r7 00000001
    r8 00000001  r9 00000000  sl b41cbf00  fp 00000000
    ip aaa6e9b1  sp ff8d2030  lr aaa6e9ef  pc aaa6d030  cpsr 600f0030
    #00 pc 0001a030  /data/app/packagename-ygdyZh6X8vuDh9izLep-tA==/lib/arm/libflutter.so
    #01 pc 0001b9eb  /data/app/packagename-ygdyZh6X8vuDh9izLep-tA==/lib/arm/libflutter.so
    #02 pc 00000cd7  /data/app/packagename-ygdyZh6X8vuDh9izLep-tA==/oat/arm/base.odex
    io.flutter.embedding.engine.FlutterJNI.nativeInvokePlatformMessageResponseCallback(Native Method)
    io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:520)
    io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:129)
    io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:204)
    io.flutter.embedding.engine.systemchannels.PlatformChannel$1.onMethodCall(PlatformChannel.java:50)
    io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
    io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88)
    io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:219)
    android.os.MessageQueue.nativePollOnce(Native Method)
    android.os.MessageQueue.next(MessageQueue.java:379)
    android.os.Looper.loop(Looper.java:144)
    android.app.ActivityThread.main(ActivityThread.java:7529)
    java.lang.reflect.Method.invoke(Native Method)
    com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

flutter doctor -v
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.13.4 17E199, locale
    zh-Hans-CN)

[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor
      --android-licenses
[✗] iOS toolchain - develop for iOS devices
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    ✗ libimobiledevice and ideviceinstaller are not installed. To install with
      Brew, run:
        brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    ✗ ios-deploy not installed. To install:
        brew install ios-deploy
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS platform side's plugin code that
        responds to your plugin usage on the Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work
        on iOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        brew install cocoapods
        pod setup
[✓] Android Studio (version 3.4)
[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

any one can help?

anyone there?

@PingShen is it the same while using current flutter stable v1.9.1+hotfix.4? Please provide  a small self-contained app that demonstrates the problem. You can include small examples inline if they're enclosed by backticks, or just provide a public link to a github "gist" - https://gist.github.com/.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Suggestion: more clear UI

Hi there
Small suggestion today. At "Show stats dashboard to additional user roles" the Administrator is missing.
While this confuses (less roles then above, admin missing) it actually makes sense as it always needs to be shown to the administrator.
I would suggest though to show the Administrator role and check it by default. As we dont want the user to deselect the admin we could make it disabled, see quick design:

Maybe with a lightgrey background to the checkbox it shows it even better - but up to the designers ;)
Greets

Gotcha! It's a small tweak, but a relevant one. I'll add this in the next release! Thanks!


fix scope parameter for kafka token request

Description
Fix the scope parameter of Event Hubs token requests via kafka protocol. The scope should be https://<namespace>.servicebus.windows.net/.default, refering to the event hubs scope
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.

/check-enforcer override


Only consider changes when selected and latest are non-blank strings

Also:

Gather changes and print a nice table rather than printing as differences are found
Print a message if no changes can be found

I found that if I used a dep that had no 'latest' version due to there only being SNAPSHOT versions available (viz com.bhauman/figwheel-main {:mvn/version "0.1.0-SNAPSHOT"}), depot would throw a NullPointerException and exit.
I also felt that it would be nice to show the output clearly separated from all the Maven network traffic, so that the eye doesn't have to work to discern changes.
By example, here's what the  looks like on /robert-stuttaford/bridge:
|                     Dependency |         Current |     Latest |
|--------------------------------+-----------------+------------|
|              cider/cider-nrepl | 0.17.0-SNAPSHOT |     0.17.0 |
|              clj-time/clj-time |          0.14.3 |     0.14.4 |
|                cljsjs/showdown |         1.4.2-0 |    1.8.6-0 |
|          org.clojure/tools.cli |           0.3.5 |      0.3.7 |
|   org.clojure/tools.deps.alpha |         0.5.417 |    0.5.435 |
| org.eclipse.jetty/jetty-server | 9.3.7.v20160115 | 9.4.10.RC1 |
|              re-frisk/re-frisk |           0.5.3 |      0.5.4 |
|                reagent/reagent |           0.8.0 |      0.8.1 |

:heart_eyes: this is fantastic, thank you so much!
I love the use of pprint and decomplection (adds to browser dictionary) of gather/print. Elegantly fixes the maven output issue too. I was considering capturing everything using with-out-str or something but this is much nicer.
Let's get this published!

(I didn't even know pprint could do this, you learn something every day)


feat(wip): properties panel component

Fixes: #8
Tasks to be done :-

[x]  Seperate the Properties panel into its own component.
[x]  Move the logic from showProperties() function inside Vue component to display the panel accordingly.
[ ]  There are 3 types of Properties Panel Body

[ ]  1. Properties of elements in Layout Mode
[ ]  2. Properties Panel showing Project Properties  [WIP]
[x]  3. Properties Panel showing Circiut Element Properties

[ ]  Link each of the options in the properties panel to their functionality
[ ]  Refactoring of CSS

@abstrekt @ayan-biswas0412
I have completed the panel body when circuit elements are selected.
Can you please check once if all the properties panel functionality wrt circuit elements are working properly?
Also, can you review the code so far

@ayan-biswas0412

The Testbench is not draggable
I experimentally applied the drag functiontionality just to the elements panel by coding the function myself. In the meet, it was decided that we might use the drag functionality logic from VueUse, if we don't find a proper library, hence haven't applied drag to any other component.

The 5f and 0 both elements become same element when importing to the simulator panel
Can you please describe the bug? I compared it with the current simulator and it seems to work the same.

@ayan-biswas0412

The Testbench is not draggable

I experimentally applied the drag functiontionality just to the elements panel by coding the function myself. In the meet, it was decided that we might use the drag functionality logic from VueUse, if we don't find a proper library, hence haven't applied drag to any other component.

The 5f and 0 both elements become same element when importing to the simulator panel

Can you please describe the bug? I compared it with the current simulator and it seems to work the same.
icons.mp4

ok no issues then.
I re-checked that and it is not a bug 🎉
Good work @devartstar 🚀

There are 2 things that I need to fix -

The CircuitName in the panel doesn't change on switching circuits
After canceling layout mode the panel doesn't reappear

Functionality issue -

Delete Circuit is not functional
When exiting layout mode, properties panel is no longer accessible

Fixed them.


IE8 support

This is the only function preventing from using in IE8

Is addEventListener not working on the latest version of notie.JS on ie8? I PR'd a polyfill that got merged recently but wondering if its been put under the event listener which is causing the issue.
Also this PR isn't actually doing anything, as you are declaring the variable but not using it.

#49 #30

oh yeah, that should fix it, this was before that was in place I guess, and apparently I messed up the code, not adding the next line to use the fix
I'll test the latest again on IE8

I don't think this should have been closed as:

The polyfill for addEventListener is still below the first time this is used, so this doesn't work in IE8 as it throws an error on the first use.

There's also a reference to (capital W) Window.addEventListener here: https://github.com/jaredreich/notie.js/blob/master/notie.js#L135 -- As this doesn't get properly polyfilled this also throws an error in IE8 even after the polyfill in (1) has been moved to the right place.

You have un-polyfilled use of Function.prototype.bind() for the 'resize' events in 4 places I think (here's one: https://github.com/jaredreich/notie.js/blob/master/notie.js#L198). This obviously doesn't work in IE8.

Could you re-open please. I can prepare a PR as I just fixed these things today. There is also a CSS issue in IE8 with the split-button as well though (the 2 buttons wrap onto 2 lines) which I'm yet to look at.


//@ sourceURL' and '//@ sourceMappingURL' are deprecated

Hello, I think the sourcemap library must to be upgraded to use the new sourceUrl format. In Chrome, I have this warning :
'//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.

Duplicate of https://github.com/floridoo/gulp-sourcemaps/issues/182

@shinnn since the dupe is closed, can this be closed?


Azcopy sync option for file share is not supported

Which version of the AzCopy was used?
10.24.0 (latest)
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What command did you run?
azcopy sync [local file share] [Azure files share]
What problem was encountered?
The customer found the data loss issues when they used "Azcopy sync" to sync their on-premises files (millions of files) to Azure files. They detected few thousands of files are corrupted, but the metadata-information (filename, filesize, timestamp) is the same as original files for these files. Also, Azcopy completed successfully without any error.
How can we reproduce the problem in the simplest way?
Haven't confirmed yet, but it can be reproduced, since this is documented.
https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-files#synchronize-files
https://learn.microsoft.com/en-us/azure/storage/files/storage-files-migration-overview

AzCopy sync is supported but not fully recommended for Azure Files. AzCopy sync doesn't support differential copies at scale, and some file fidelity might be lost. To learn more, see [Migrate to Azure file shares](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-migration-overview#file-copy-tools).

Have you found a mitigation/solution?
Given the circumstances, detecting corruption is very difficult, and then we should consider limiting the functionality of the tool or issuing strong warnings upon execution until the issue is resolved.

Hi @yamorish, thanks for reporting this! We are discussing this internally within the team and will get back on this thread.

Hi @yamorish, we will add warnings for this case to the logs and console output, we are targeting this for our September release.

Hi @seanmcc-msft do you know if the fix for this issue is still targeting the September release?
Are there any options to mitigate such as using md5 hashing rather than metadata comparisons and running a sync multiple times?

Hi, does this means that this https://github.com/Azure-Samples/azure-files-samples/tree/master/SyncBetweenTwoAzureFileSharesForDR is not valid anymore ?
This is used in this link https://learn.microsoft.com/en-us/azure/storage/files/files-disaster-recovery


Create game

methods:

game >> isOver
Game >> winner
game >> whereIs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

22 of 22 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
80

Relevant Lines:
80

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

22 of 22 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
80

Relevant Lines:
80

💛  - Coveralls


How to  close ts validate?

Hello,
I want to know how to close ts validate.
When I use some syntax constructs like the proposed pipeline (|>) operator in javascript.I got a error display like the  screenshot:

and I set 'javascript.validate.enable' false. But Still unable to work correctly, js mistake disappeared
but ts mistake exists like this

This is my settings.json
{
  "javascript.validate.enable": false,
  "typescript.validate.enable": false,
  "javascript.implicitProjectConfig.experimentalDecorators": true
}

How can i resolve it?

VSCode Version: 1.23.1
OS Version: mac os 10.13.2

Oh,this problem caused by a extension 'JavaScript and TypeScript IntelliSense'.I will close this issue.


Installing Valid Certificate for an OSS application/web service running on Azure VMSS

I have deployed Moodle instance using the ARM template provided herein this post. The FQDN of my Moodle server is : “<Azure_load-balancer_label>.<Azure_Region_name>.cloudapps.azure.com”.
Issue:
After deployment, when this Moodle server is accessed with the above FQDN, there is a invalid certificate warning, and use has to opt to proceed inspite of system generated caution. (see picture attached)
Purchasing a SSL certificate and installing on NGINX does not seem feasible in this situation as the domain ownership proving methods include editing Azure.com DNS zone or receiving email at a azure.com email address, which is not permitted/accessible. The SSL certificate vendor permits editing website as a third way to prove ownership of the above domain, but as this Method also may not be doable as Moodle is a PHP application and the web service root directory does not permit installing any host static HTML files, that could be loaded with the verification code provided by the SSL certificate provider. The application dynamically generates the HTML that are served to the users accessing the application

Request/Ask:
If some of us have faced and resolved this issue, I would like to learn from them the ways of resolving this situation. The desired outcome is installing a Valid certificate for this service so the caution message does not come up.
Thanks in advance ...
Regards

See https://github.com/Azure/Moodle/blob/master/docs/SslCert.md


yuv420p10le的HDR视频（tv,bt2020）软解播放，颜色失真

HDR is not supported currently.

pls provide a local file(mp4 or ts). thanks.

I'd like to close this opening issue accordingly because no active/positive response. it will be re-opened in the future.


Rectangle plugin

Is your feature request related to a problem? Please describe.
Seems like there is no way to add rectangles from within the code but only using the ui with the rectangle drawing tool.
Describe the solution you'd like
Adding a simple rectangle plugin similar to the trend line plugin would solve this.
Additional context
I have the plugin code. If the moderators are interested let me know. Otherwise you can close this issue.

If you want a simple rectangle plugin without needing to have the user draw the rectangle then you can use the Rectangle plugin class in our example: https://github.com/tradingview/lightweight-charts/blob/de75f8174c04b3358b241006fd27199a9f94bb6b/plugin-examples/src/plugins/rectangle-drawing-tool/rectangle-drawing-tool.ts#L267
The starting point for the Primitive plugin template on create-lwc-plugin is a simple rectangle plugin if you want to start building your own version.


Added and made few changes.

Added some new changes like the concept of JS Engine, CallStack, Task of JS Engine etc and also update a very few changes to it.

Description 📜
Here, I have added and update  some changes to the about the execution context .
The following changes should be made:

Concept of callstack is introduced.
About Javascript Engine.
About javascript Runtime.
Fixes #897

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[x] Java#Script
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@paramsiddharth Sir, please review my pr i have made some changes to execution context topic.

Add Image to show the process inside the runtime.

Ok Sir will do that. Should i have to explain the workflow of JS runtime also.

Sir, i added the image for showing the process inside runtime and also include the working mechanism of it. Sir, Please have a look.

@paramsiddharth Sir, please review this pull request.

@Shishiranjan The PR is pointing to the Javascript branch of your "fork" and not the parent repository. This PR doesn't have a merge option for the parent repository. Please make a fresh PR for the base repository!

@paramsiddharth Sorry for the misunderstanding sir but i don't get it actually.

It means that i have to edit the readme file again of issue 897 and then make a new pr right.

It means that i have to edit the readme file again of issue 897 and then make a new pr right.

No, you just need to create a new PR except this time, make sure the base repository is pointing at girlscript not Shishiranjan.

@Shishiranjan Please close this PR. It is not relevant anymore.


Fix issue #4119: automatically re-render 'PS1' in place upon you changing your docker-machine env.

Scenario details:

Use Unix builtin function bind to bind one function __update_shell_prompt to Enter key: \C-M;

Upon any enter key hitting, the function __update_shell_prompt will be invoked, then based on whether you changed the 'docker-machine env' or not the function would try to re-render the PS1;

Since any executed command will be echoed back in the terminal, it is a bit annoying, so here I just use the Unix builtin function tput to omit the echoed __update_shell_prompt line, to make it looks like nothing ever happened;

Also since by default any executed command will be recored in the history(so you can use the up and down key to switch between them conveniently), so the above 2 will pollute your history, but as you can see the command  __update_shell_prompt which is bind to the Enter key: \C-M is prefixed with one space, so put export HISTCONTROL=ignorespace into your ~/.bash_profile or ~/.bashrc, then you can prevent this potential commands history pollution;

Then it works perfectly, enjoy 🙂

Give up to bind the function to Enter Key, coz if like that then will break the copy paste multiple lines commands to terminal behaviour, like if you try to copy and paste the follow commands:
docker-machine \
  create \
  --driver generic \
  --generic-ip-address <IP_ADDRESS> \
  --generic-ssh-user leonard \
  --generic-ssh-key ~/.ssh/id_rsa \
  --engine-opt dns=<IP_ADDRESS> \
  --engine-insecure-registry <IP_ADDRESS>:7777 \
  xxx.xxxx.com

then all the backslash \ will trigger the function __update_shell_prompt , everything will be in messy...
So I decided to bind it to the F12 Key, so now after you run the eval "$(docker-machine env dev)", then press the F12 on your keyboard, then the shell prompt will be re-rendered.
Guess this will never be merged, so if you need just copy from here...


[EventEngine] Windows Listener iomgr shims

Exercised with the //test/core/end2end:h2_full_test@* set of tests, using the event_engine_listener experiment.

Test import succeeded, merging.


Pwsh and powershell example use wrong syntax

In the examples for the "pwsh" and "powershell" tasks, it's using
echo Hello $(name)
That does not seem like a powershell command to me.
Maybe instead let's use:
Write-Host "Hello $(name)"

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

ID: 7458d5b2-1bb7-7d87-7ce6-2b0c430b0155
Version Independent ID: edf5bbd3-a3f0-5426-e985-31290f8afd05
Content: YAML schema - Azure Pipelines
Content Source: docs/pipelines/yaml-schema.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@steved0x -- please review private PR 1351.


Meta-issue: requests for ALP/SparseBLAS support

Since PR #11 , a proof-of-concept for a SparseBLAS interface with an implementation generated by ALP is introduced. This by far, however, does not support all standard functions. As adding new functions in the majority of cases is rather straightforward (modulo testing-- see #12 and #13 ), if you indeed have specific requests for support, please don't hesitate to request it here.

Update: crossref sptrsv #59. Also sptrsm was recently requested: so on the not-so-long term, it would be great to add support for SpMM, SpTrSV, and SpTrSM.

Crossref #258

Crossref #309 -- preconditioning was requested with some urgency


Add logging to java-nats-streaming

We are using java-nats-streaming in version 2.1.6 in our Java Gradle project.
Unfortunately our program freezes when running integration tests on our CI server. It freezes at this code line:
        return streamingConnectionFactory.createConnection();
Now I wanted to turn up logging to see where exactly it freezes inside the StreamingConnectionFactory. Unfortunately I haven't found any log statements in the source code.
Please add logging statements to make hunting down errors easier.

The latest Nats library has some tracing you can turn on for connections, i will look at adding something similar here.


strings.trimEnd

Removes the whitespace from the end of a string
Checklist

[ ] implementation
[ ] tests
[ ] jsdoc

Details
console.log(strings.trim('   Hello world!   '));
>'   Hello world!'

References

_.trimEnd

Closed as 'invalid' b/c this method is already built-in to JS

Added back in because the operator is not supported in IE

Added in 0.77


feat(provider/googleads): configurable conversion labels

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 10 (0.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.008%) to 12.125%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/tagmanager/tagmanager.go
0
1
0.0%

pkg/provider/googleads/server.go
0
2
0.0%

pkg/provider/googleads/server/tag/googleadsconversiontracking.go
0
2
0.0%

pkg/config/googleadsconversion.go
0
5
0.0%

Totals

Change from base Build<PHONE_NUMBER>0:
-0.008%

Covered Lines:
372

Relevant Lines:
3068

💛  - Coveralls


"Install" anserini-eval submodule

I've created: https://github.com/castorini/anserini-eval
Someone "install" in this repo, per https://github.com/castorini/anserini/issues/1216 ?
ref: https://github.com/castorini/pyserini/pull/145

Closed by #45


missing thirdparty, cannot use matchers like lightglue/superglue

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
Usually when I install hloc from source to use it I have to do a recursive clone to get things like the superpoint/superglue/lightglue network
File "/home/pablo/0Dev/personal/forked-repos/nerfstudio/.pixi/envs/default/lib/python3.10/site-packages/hloc/matchers/lightglue.py", line 2, in
from lightglue import LightGlue as LightGlue_
ModuleNotFoundError: No module named 'lightglue'

it seems like the third-party folder is missing.
Installed packages
I'm using pixi (which uses conda under the hood). this is what `pixi list` looks like

[dependencies]
python = "3.10.*"
pip = ">=24.0,<25"
cuda = {version = "*", channel="nvidia/label/cuda-11.8.0"}
pytorch-cuda = {version = "11.8.*", channel="pytorch"}
pytorch = {version = ">=2.2.0,<2.3", channel="pytorch"}
torchvision = {version = ">=0.17.0,<0.18", channel="pytorch"}
pyarrow = ">=15.0.2,<15.1"
colmap = ">=3.9.1,<3.10"
hloc = ">=1.4,<2"

### Environment info

```shell
pixi info

(nerfstudio) pablo@pablo-ubuntu:~/0Dev/personal/forked-repos/nerfstudio$ pixi info
      Pixi version: 0.19.1
          Platform: linux-64
  Virtual packages: __unix=0=0
                  : __linux=6.5.0=0
                  : __glibc=2.35=0
                  : __cuda=12.2=0
                  : __archspec=1=zen
         Cache dir: /home/pablo/.cache/rattler/cache
      Auth storage: /home/pablo/.rattler/credentials.json

Project
------------
           Version: 1.0.3
     Manifest file: /home/pablo/0Dev/personal/forked-repos/nerfstudio/pixi.toml
  Config locations:
      Last updated: 06-05-2024 19:19:20

Environments
------------
       Environment: default
          Features: default
          Channels: nvidia/label/cuda-11.8.0, nvidia, conda-forge, pytorch
  Dependency count: 9
      Dependencies: python, pip, cuda, pytorch-cuda, pytorch, torchvision, pyarrow, colmap, hloc
 PyPI Dependencies: nerfstudio
  Target platforms: linux-64
             Tasks: tcnn-install

In conda-forge, we shouldn't add third-party dependencies. Instead, we should package them separately and add them as dependencies. You can open an issue in https://github.com/conda-forge/staged-recipes or better add a PR that adds lightglue in that repo :)

Thank you for the quick reply! Let me see if I fully understand, In order for me to use the reconstruction/keypoint detection/matching functions in hloc with light glue via conda (assuming only lightglue and not any other third-party matcher/extractor dependencies) I would need to
Lightglue PR

Replace the current lightglue @ git+https://github.com/cvg/LightGlue in the requirements.txt with a packaged version (I think this would also mean I would need to get the authors of lightglue to create a pip wheel that is available via pypi?) or potentially with the kornia implementation since kornia is already a dep
Have the PR accepted + get a version bump of hloc so that the condafeedstock can get updated?

I'm fairly new to the packaging world outside of just being a user, so apologies if I'm asking the wrong questions!

Hi @pablovela5620 - sorry, I completely forgot to get back to you about this.
1.1 Yes, correct, ideally we would need to package lightglue here on conda-forge. This will not necessarily need a pypi release, but a release on GitHub. I created an issue: https://github.com/cvg/LightGlue/issues/129
1.2 I am not sure what you mean with the kornia implementation. Do they include lightglue? kornia is already packaged on conda-forge, that would simplify things.
2. That's correct
I'm happy to help/provide input, but currently don't have the capacity to take the lead on this.
Best, Tobi

I'd be happy to lead this, once there's a github release for lightglue I'll make a PR to use the Kornia lightglue matcher (they do indeed have lightglue already included) https://kornia.readthedocs.io/en/stable/feature.html#kornia.feature.LightGlueMatcher

Hi @pablovela5620 - I've had a closer look at this. kornia implements its own version of LightGlue, which is independent (but based on) the original authors' code. I've also started a pull request to get the original LightGlue to conda-forge: https://github.com/conda-forge/staged-recipes/pull/27052

I've added a dependency to LightGlue in https://github.com/conda-forge/hloc-feedstock/pull/4
The other third_party things are not trivial to add; if you need them, you can follow similar steps as for LightGlue.

Awesome, Thank you for the help!


get_tap_service  - DP02_01_Introduction

Hello!
In section 2.1 of the notebook, the code is

service=get_tap_service("tap")

This raises an error
TypeError                                 Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 service = get_tap_service("tap")
TypeError: get_tap_service() takes 0 positional arguments but 1 was given
We removed "tap" from the argument and it appears to be working, however.

Hi! Thank you for your report. Are you running this at data.lsst.cloud? if so, which version of the LSST Science Pipelines are you using? I just checked with version w_2024_04  ("recommended") and it seems to work.

Yes! Two of us are using it through data.lsst.cloud. Can you let us know how to check which version of the pipeline we are running?
thanks!

In the lower part of the notebook, you can see that information:

But you could also try to log out and then log back in again to the RSP, and then you will be prompted to choose an image for the Notebook aspect (you can choose "recommended" at that point). Let me know if it works!

@kcdage Did the notebook work for you when changing the pipeline version? Please let us know so we can assist you further or close this issue. Thank you!


DEMO_PDM_RECORD_PLAYBACK-MONO

I run the DEMO_PDM_RECORD_PLAYBACK but want to record MONO pdm data and play MONO pcm data on the codec.
I am trying to do this by defining AUDIO_CHANNEL_MONO in the structs in audio_task.c (see attached image)

Everything is built correctly and the demo starts but when I press the button to start recording the code gets stuck in
qspi_check_and_suspend_operations(); (see attached image)

problem is solved if in "static audio_quality_t _memory_recording" I leave the channels as AUDIO_CHANNEL_STEREO but I do not think that this is the correct way.
Also, have defined "prepare_pdm(&_audio.pdm_in, AUDIO_CHANNEL_MONO);" inside audio_task.
Is there something I am missing?

Hello,
Τo record PDM mono you should change
in audio_task.c:audio_task() (line 325):
prepare_pdm(&_audio.pdm_in, AUDIO_CHANNEL_STEREO); =>
prepare_pdm(&_audio.pdm_in, AUDIO_CHANNEL_MONO);
The _codec_mic struct  is for  configuration of the analog microphones that are coming from the CODEC.
The PDM interface is a separate interface on the DA14690 where you can directly
connect your digital microphones. There is no special configuration struct for it because the only thing there is to configure is whether it is STEREO or MONO.
However even in the way you have implemented it now  there is no harm done, i think.
I hope this helps


No easy way to pause/resume an animation controller

RenderToggleable really wants to be able to just pause/resume a controller during a detach/attach cycle.

Very few people have asked for this in practice, and generally it can be solved by moving the controller to a widget instead. So we're just going to close this for now.