Add ferrad.as domain

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 Cloudflare report
[x] This site is not an ultra minimal 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:
  url:
  size:
  last_checked:

Cloudflare Report: https://radar.cloudflare.com/scan/dc9d995f-feb4-465c-9f9a-d315c25d521c/summary

Thanks!


Add failing test about translate lazy lookup

Add failing case to help investigate this issue: https://github.com/phlex-ruby/phlex-rails/issues/95

This test should fail even when the issue is fixed because allow(I18n).to receive(:translate).with("temp.translation_key") , we do not know what is the prefix before ".translation_key" because we are using a temp class without path.
But the error will be different.

@joeldrapper I added some specs in this old PR and fixed Translate module to use translation path too.


remove redundant "replace this" command

"replace this" was defined twice (the same way) by accident.

Thanks, looks like I submitted a fix this just before you submitted this PR hehe. 🥇
I went with this to consolidate them:
replace this [<user.text>]: user.replace(text or "")
https://github.com/knausj85/knausj_talon/commit/ca20e96c65fb3644c65e90617d85eb0510c7226d


Caddy & PHP-FPM

Hi Everyone :)
I've been trying to get Caddy working with PHP-FPM on a fresh Digital Ocean droplet with Ubuntu 14.04 and honestly can't figure it out. I'm pretty sure this should be really simple but I'm just oblivious to some weird Linux things.
Here are the exact steps I'm following:
1. Log in to Digital Ocean
2. Create Droplet using the default settings

$10/mo
1GB/1CPU
New York 3
Ubuntu 14.04.3 x64
Add SSH key

3. Update local ~/.ssh/config
host <IP_ADDRESS>
  User root
  IdentityFile ~/.ssh/foo

4. SSH
ssh<EMAIL_ADDRESS>
5. Install Things
5.1 PHP & Git
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install git php5-cli php5-fpm -y

5.2 SCP Caddy
scp -r ~/Downloads/caddy_linux_amd64_custom root@<IP_ADDRESS>:/root/caddy

5.3 Clone Project
git clone https://github.com/wayneashleyberry/caddy-test.git
cd caddy-test

6. Run Caddy
/root/caddy/caddy
Activating privacy features... done.
<IP_ADDRESS>:2015
Warning: File descriptor limit 1024 is too low for production sites. At least 4096 is recommended. Set with "ulimit -n 4096".

7. Test
Visting http://<IP_ADDRESS>:2015/ returns a 502 Bad Gateway error.
Here's the error log:
root@caddy:~/caddy-test# cat error.log
14/Dec/2015:01:13:39 -0500 [ERROR 502 /] dial tcp <IP_ADDRESS>:9000: connection refused

8. Debugging
root@caddy:/etc/php5/fpm# git --version
git version 1.9.1

root@caddy:/etc/php5/fpm# php -v
PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

root@caddy:/etc/php5/fpm# /root/caddy/caddy -version
Caddy 0.8

root@caddy:/etc/php5/fpm# ps aux | grep php-fpm
root      5139  0.0  1.2<PHONE_NUMBER>4 ?        Ss   01:02   0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data  5168  0.0  0.4 140264  4096 ?        S    01:02   0:00 php-fpm: pool www
www-data  5169  0.0  0.4 140264  4096 ?        S    01:02   0:00 php-fpm: pool www
root      6632  0.0  0.0  11712   668 pts/0    S+   01:21   0:00 grep --color=auto php-fpm

Firstly, share your Caddyfile.
Then, since this is the default Ubuntu php-fpm settings, it will be listening on a unix socket, not port. Change <IP_ADDRESS>:9000 to /var/run/php5-fpm.sock

Oh, sorry @abiosoft, I thought it was clear in the git clone section :)
The test project + Caddyfile is here: https://github.com/wayneashleyberry/caddy-test

Error logs now look like this @abiosoft
14/Dec/2015:01:34:47 -0500 [ERROR 502 /] malformed MIME header line: Primary script unknown
14/Dec/2015:01:34:49 -0500 [ERROR 502 /] malformed MIME header line: Primary script unknown

Change this line in your Caddyfile
fastcgi / /var/run/php5-fpm.sock

to
fastcgi / /var/run/php5-fpm.sock php

php is missing. :blush:

Whoops! Haha, sorry it's still early here
Added php and restarted Caddy, didn't make a difference as far as I can tell.

Still getting the following errors:
14/Dec/2015:01:38:54 -0500 [ERROR 502 /] malformed MIME header line: Primary script unknown
14/Dec/2015:01:40:13 -0500 [ERROR 502 /] malformed MIME header line: Primary script unknown

The issue has been found.
The source file is created in the home directory of root user /root and php-fpm's www-data cannot read from there.
Solution:
Create a new user.
adduser <username>

Add user to www-data to enable it read php-fpm's unix socket file at /var/run/php5-fpm.sock. Useful if you will start caddy in the user session.
adduser <username> www-data

Login as <username>, clone the source repo and start caddy. Everything should be fine.

@wayneashleyberry feel free to close this issue when you're satisfied.

Working perfectly, thanks so much for all of your help @abiosoft


Added Power Set  Algorithm for a set of elements in C, C++, Java , Python programming languages.

Issue no #1339
👨💻 Changes proposed
Added Power Set algorithm for a set of elements in C, C++, Java, Python programming languages.
✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

a human programmer would never repeat std:: so many times, instead they would go for using namespace std


Highlighting doesn't work for time column (Python)

Highlighting doesn't work for time column.
code:
table = TableDisplay(pd.read_csv('../../resources/data/interest-rates-small.csv'))
table.addCellHighlighter(TableDisplayCellHighlighter.getHeatmapHighlighter("m3", TableDisplayCellHighlighter.FULL_ROW))
table

result:

#8026

We won't highlight String type or datetime columns, will only do numerical columns.

In case we use TableDisplayCellHighlighter.FULL_ROW constant we expect that whole row will have the same color as base column.
Let's see example above. We add highlighting for whole row by values from column m3. See column y30 that have string type (because NaN value) but works correctly.

the issue was fixed in https://github.com/twosigma/beakerx/issues/8072


InfluxDB Enterprise 1.9.6 release notes

Closes https://github.com/influxdata/docs-v2/issues/3478

LGTM, but note there are a couple bugfixes coming down the pipe for SunPower before a final release of 1.9.6.


WIP: Integrate travis CI

Changes Unknown when pulling 8191f902ded6c63c530d260323abc47a48b162dd on travis-integration into ** on master**.

Changes Unknown when pulling 2bb6e5fb65427691bf30257a5dba9990fab6ffa3 on travis-integration into ** on master**.


[User Story] As a systems engineer, I would like to know the network usage of processes on my remote device

Is your user story related to a problem? Please describe.
As a systems engineer, I am frustrated by the steps needed to retrieve a processes' network port and protocol information running on my remote rasberryPi.
Describe the solution you'd like
I would like to see the network port and protocol information (if available) of all the processes running on my remote device  viewable in my database so that I may quickly refer and retrieve the information.
Describe alternatives you've considered
Obtaining the information from a shell-only method is tedious and is not convenient.
Additional context
The information can be sent to either SQL-style tables or as part of a MongoDB document.
Related to issue #1

Could not find command line arguments to get network by process -- went with overall network usage

Issue is closed with #158.


Question: What are some recommended better alternatives for RBP ?

First of all, thank you for providing this library.
I want to move a 2D Swin image->image model to neighbourhood attention. So for, I have been using the relative positional embeddings as in the original Swin repo.
Both in issues as well as the documentation of the fused attention, you mention that there will most likely never be an implementation of RBP in the fused kernels, and that there are better alternatives.
... Could you maybe give me some pointers to techniques that work in you experience well with neighborhood attention?
Cheers
Felix

I moved this issue here since this issue is more related to NAT/DiNAT as opposed to NATTEN.
We'll be updating this thread soon.


NFT mint cost not propagating

I believe I've done everything correct, all I did was edit the mint price and change to Polygon testnet yet no price is coming up at all when I go to mint. Tried on Rinkeby too. It just wants to charge the gas fee but no NFT cost at mint. Any tips? Any thing I couldve forgot to edit?

Did you make sure that you are trying from a wallet/address that is NOT the owner of the contract?


test(sample): update sample application images and configs

test(sample): update sample application image
test(sample): set up Agent sample application with new image and TLS config

Welcome to Cryostat! 👋
Before contributing, make sure you have:

[x] Read the contributing guidelines
[x] Linked a relevant issue which this PR resolves
[x] Linked any other relevant issues, PR's, or documentation, if any
[x] Resolved all conflicts, if any
[x] Rebased your branch PR on top of the latest upstream main branch
[x] Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
[x] Signed all commits: git commit -S -m "YOUR_COMMIT_MESSAGE"

See https://github.com/cryostatio/test-applications/issues/1
See https://github.com/cryostatio/test-applications/issues/7
Related to https://github.com/cryostatio/cryostat-agent/issues/139
Description of the change:
This change adds allows the users to provide...
Motivation for the change:
This change is helpful because users may want to...
How to manually test:

Insert steps here...
...

@mwangggg could you help figure out the new TLS setup to use here? Using the current configuration in this PR:
    env:
        - name: KEYSTORE_PASS
          valueFrom:
            secretKeyRef:
              key: KEYSTORE_PASS
              name: cryostat-sample-keystore
        - name: JAVA_OPTS_APPEND
          value: |-
            -Dquarkus.http.host=<IP_ADDRESS>
            -Djava.util.logging.manager=org.jboss.logmanager.LogManager
            -Dcom.sun.management.jmxremote.port=9097
            -Dcom.sun.management.jmxremote.ssl=false
            -Dcom.sun.management.jmxremote.authenticate=false
            -javaagent:/deployments/app/cryostat-agent.jar
            -Dcryostat.agent.webclient.tls.truststore.cert[0].path=/var/run/secrets/myapp/truststore.p12
            -Dcryostat.agent.webclient.tls.truststore.cert[0].type=X.509
            -Dcryostat.agent.webclient.tls.truststore.cert[0].alias=cryostat-sample
        image: quay.io/redhat-java-monitoring/quarkus-cryostat-agent:latest
...
        volumeMounts:
        - mountPath: /var/run/secrets/myapp/truststore.p12
          name: truststore
          subPath: truststore.p12
      volumes:
      - name: truststore
        secret:
          secretName: cryostat-sample-tls

I get an Agent startup failure with logs like this:
Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
INFO exec -a "java" java -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -Dquarkus.http.host=<IP_ADDRESS> -cp "." -jar /deployments/quarkus-run.jar
INFO running in /deployments
2024-08-08 18:59:56:263 +0000 [cryostat-agent-main] INFO io.cryostat.agent.Agent - Cryostat Agent starting...
2024-08-08 18:59:57:961 +0000 [cryostat-agent-main] ERROR io.cryostat.agent.Agent - Agent startup failure
java.lang.RuntimeException: java.security.cert.CertificateParsingException: signed fields invalid
	at io.cryostat.agent.MainModule.provideClientSslContext(MainModule.java:249)
	at io.cryostat.agent.MainModule_ProvideClientSslContextFactory.provideClientSslContext(MainModule_ProvideClientSslContextFactory.java:54)
	at io.cryostat.agent.MainModule_ProvideClientSslContextFactory.get(MainModule_ProvideClientSslContextFactory.java:43)
	at io.cryostat.agent.MainModule_ProvideClientSslContextFactory.get(MainModule_ProvideClientSslContextFactory.java:13)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at io.cryostat.agent.MainModule_ProvideHttpClientFactory.get(MainModule_ProvideHttpClientFactory.java:55)
	at io.cryostat.agent.MainModule_ProvideHttpClientFactory.get(MainModule_ProvideHttpClientFactory.java:14)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at io.cryostat.agent.MainModule_ProvideCryostatClientFactory.get(MainModule_ProvideCryostatClientFactory.java:64)
	at io.cryostat.agent.MainModule_ProvideCryostatClientFactory.get(MainModule_ProvideCryostatClientFactory.java:15)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at io.cryostat.agent.MainModule_ProvideRegistrationFactory.get(MainModule_ProvideRegistrationFactory.java:83)
	at io.cryostat.agent.MainModule_ProvideRegistrationFactory.get(MainModule_ProvideRegistrationFactory.java:13)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at io.cryostat.agent.DaggerAgent_Client$ClientImpl.registration(DaggerAgent_Client.java:299)
	at io.cryostat.agent.Agent.accept(Agent.java:225)
	at io.cryostat.agent.Agent.lambda$agentmain$0(Agent.java:159)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.security.cert.CertificateParsingException: signed fields invalid
	at java.base/sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1774)
	at java.base/sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:178)
	at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
	at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
	at io.cryostat.agent.MainModule.provideClientSslContext(MainModule.java:187)

I wonder if I just have the wrong alias, or something.

^ maybe the Agent should have some other config property to allow it to import a whole truststore as well? Like cryostat.agent.webclient.tls.truststore.path=/path/to/init/truststore, cryostat.agent.webclient.tls.truststore.pass=changeit. I think this could be used in conjunction with the new configs from https://github.com/cryostatio/cryostat-agent/pull/448  - if these properties aren't specified then it does the same thing as https://github.com/cryostatio/cryostat-agent/pull/448, but if they are specified then probably just this bit of code needs to be adjusted to start with the provided truststore?

We could do that, or we could add the cryostat's cert to the quarkus-cryostat-agent container with a volume mount instead of the "keystore" truststore volume mount

^I'll test that method out and see if it works- although giving users the option of importing a whole truststore is also a good idea.

Ah, right, there's already a Secret that contains the bare cert we need, isn't there. That sounds like it should work well with your existing Agent work.
I think the init-truststore idea is still something worth considering - I can see that being useful for some users in the future. It'd be nice to allow specifying the whole truststore as a starting point instead of requiring users to "unwrap" it into its individual certs, if that isn't the form they already have available.


Allow kleene star without a space

Fixes #146
Related PR: https://github.com/cwida/duckdb-pgq/pull/205
This PR fixes the bug that required a space between the (* or +) and ->.

Waiting for https://github.com/duckdb/extension-ci-tools/pull/116, which should fix the failing tests before merging this PR


Problem when using the agent for deploying code that symlinks are gone and get files with zero length

When you use the agent to deploy, he untars the package but the symlinks in that package are gone and are files with zero lenght now

Thanks for reporting this! A fix for this issue should be available in a few days.
Greetings,
Pascal

@rvanhoudt Sorry for the late reply! :-/ The fix will be available for tomorrow morning. I'll keep you updated.
Greetings,
Pascal

@rvanhoudt Just published version 0.1.3 of the deploy agent with the fix for the symlinks. Sorry again for the delay!
Greetings,
Pascal


Validate VK_KHR_zero_initialize_workgroup_memory

Validate that workgroup variables can now have an initializer that is restricted to OpConstantNull.

I will merge this with #4118 and validation for explicit workgroup layout.

I will merge this with #4118 and validation for explicit workgroup layout.


make ADTetrAMM consider point duration and a exposure dead time

This change resolves jira issue I22-1027.
As tetrAMM AD driver is not a standard one (it misses a few expected PVs), the following tricks were used:

exposure attribute is using the averaging time PV, which is a good approximation, as it is the time in which the device will be taking samples
The acquire period was added as a Float64Part in order to bypass the error in which the parent class (DetectorDriverPart) tries to set it.
Another approach could be modifying the DetectorDriverPart class, but because the tratrAMM is probably the only exception needing it, I thought it was better to have a 'dummy' part and keep the code as it is.

I've marked this PR as WIP because it hasn't been tested for python3 Pymalcolm, but it will be done next shutdown.

This was already tested in I22 using python3, a new attribute was added in order to have some control over the number of samples in each frame


How do I reference the 'Azure-Kinect-Sensor-SDK' library

Hello, I have used some methods of 'Azure-Kinect-Sensor-SDK' library in my academic paper. How should I quote them in my paper?

@zhaocheng-hub Please refer to the library as the "Azure Kinect DK Sensor SDK".


Issues with JSON Array Handling and Double-Encoding in Morph-KGC

Hello,
I am using Morph-KGC for a university project, and I've encountered a couple of issues that are preventing me from achieving the desired results.

JSON Arrays with Null Values Causing Errors

I'm working with a simplified example of a JSON input file:
[
  {
    "father": {
      "id": "1",
      "name": "John Doe",
      "properties owned": [
        {
          "type": "residential property",
          "location": "Italy"
        },
        {
          "type": "commercial property",
          "location": "UK"
        }
      ],
      "uri": "https://example.com/"
    },
    "mother": {
      "id": "2",
      "name": "Sarah Doe",
      "properties owned": [
        {
          "type": "residential property",
          "location": "Spain"
        }
      ],
      "uri": "https://another_example.com/"
    }
  },
  {
    "father": {
      "id": "3",
      "name": "James Smith",
      "properties owned": null,
      "uri": "https://example.org/"
    },
    "mother": {
      "id": "4",
      "name": "Jessica Garcia",
      "properties owned": [
        {
          "type": "industrial property",
          "location": "Italy"
        }
      ],
      "uri": "https://example.com/"
    }
  }
]

and using the following RML file to map it to RDF:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@base <https://example.org/> .

<father> a rml:TriplesMap;
rml:logicalSource [
rml:source "data3.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$[*]"
];
rml:subjectMap [
rml:template "{father.uri}{father.id}";
];
rml:predicateObjectMap [
rml:predicate rdfs:label ;
rml:objectMap [
rml:reference "father.name" ;
rml:datatype xsd:string
]];
rml:predicateObjectMap [
rml:predicate <properties> ;
rml:objectMap [
rml:reference "father.properties owned.type" ;
rml:datatype xsd:string
]];
rml:predicateObjectMap [
rml:predicate <hasSpouse>;
rml:objectMap [
rml:template "{mother.uri}{mother.id}"
]].
<mother> a rml:TriplesMap;
rml:logicalSource [
rml:source "data3.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$[*]"
];
rml:subjectMap [
rml:template "{mother.uri}{mother.id}";
];
rml:predicateObjectMap [
rml:predicate rdfs:label ;
rml:objectMap [
rml:reference "mother.name" ;
rml:datatype xsd:string
]];
rml:predicateObjectMap [
rml:predicate <properties> ;
rml:objectMap [
rml:reference "mother.properties owned.type" ;
rml:datatype xsd:string
]];
rml:predicateObjectMap [
rml:predicate <hasSpouse>;
rml:objectMap [
rml:template "{father.uri}{father.id}"
]].

However, I’ve noticed that JSON arrays containing null values cause errors in the mapping process.
Specifically, this is the result I obtain:
<https://another_example.com/2> <http://www.w3.org/2000/01/rdf-schema#label> <"Sarah Doe">
<https://another_example.com/2> <https://example.org/properties> <"residential property">
<https://example.com/4> <http://www.w3.org/2000/01/rdf-schema#label> <"Jessica Garcia">
<https://example.com/4> <https://example.org/properties> <"industrial property">

All objects with the key "father" are not processed.
If I remove the "properties owned" field, which has a null value, then all objects with the key "father" are processed except the one that should have the null value.
<https://example.com/1> <http://www.w3.org/2000/01/rdf-schema#label> <"John Doe">
<https://example.com/1> <https://example.org/properties> <"residential property">
<https://example.com/1> <https://example.org/properties> <"commercial property">
<https://example.com/1> <https://example.org/hasSpouse> <https://another_example.com/2>
<https://another_example.com/2> <http://www.w3.org/2000/01/rdf-schema#label> <"Sarah Doe">
<https://another_example.com/2> <https://example.org/properties> <"residential property">
<https://another_example.com/2> <https://example.org/hasSpouse> <https://example.com/1>
<https://example.com/4> <http://www.w3.org/2000/01/rdf-schema#label> <"Jessica Garcia">
<https://example.com/4> <https://example.org/properties> <"industrial property">

It appears that Morph-KGC does not process objects that are not structurally identical.
To temporarily work around this issue, I pre-processed the input by creating separate TriplesMaps. However, this significantly worsens processing times.

Double-Encoding Issue

Additionally, I want to report a problem with double-encoding. Due to the need to use different URIs, I can't manually insert them into the template. However, doing so results in an output containing URIs with double encoding, which forces me to manually process the output to correct it.
Is there a way to prevent Morph-KGC from performing double-encoding?

Array Indexing Support
As a bonus question, I would like to know if Morph-KGC supports referencing elements of JSON arrays by their index, similar to how it can be done in other RML versions using arrayName[*] for iterating over each element or arrayName[index] to reference a specific index. This would greatly simplify certain mappings in my project.

Thank you for your assistance.

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Hi @larasormani21 ,
Regarding your points 1. and 3., unfortunately JSON support in Morph-KGC is limited. This is already reported in the more general issue #269.
In regard to point 2., I am not seeing how your data is being double-encoded, can you provide an example mapping for this issue?

jsonpath-python is the JSONPath library used by Morph-KGC. The supported syntax is that of that library.

I see point 2. AFAIK, the behaviour of Morph-KGC in this case is correct.
In any case having an option to customize this would be great. This was pointed out in #79, we use that issue to track this.


TLS security between Cloudbreak and the provisioned cluster's gateway

@biharitomi @akanto

TLS security is 2-way: a client side certificate is needed for Cloudbreak and server side certificates are needed for the provisioned clusters
The client side certificate's location can be set in an environment variable, it will be generated by cbd
The server side certificates are generated on the gateway nodes and retrieved by Cloudbreak through temporary SSH (will be removed later if the console output can be retrieved from Azure, or when a workaround is implemented)
The client side certificate is also transferred via temporary SSH to the gateway node
The SSH fingerprint is validated through calls to the cloud provider
The temporary SSH key is written in the authorized keys in the user-data script and removed immediately after the TLS setup is done
Certificate files are stored in the CB_CERT_DIR directory (can be changed through an env variable), and also saved to the database
No ports are shut in this PR, they are still opened to the world in the security groups
Updated consul-client to be able to handle TLS

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1366/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1367/

Images are created for AWS, Azure and Google Cloud. It still needs to be created for OpenStack but it should work without it as well - in that case 2 small (6MB + 14MB) docker images are pulled during TLS setup.

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1371/

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1372/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1373/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1376/

LGTM

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1385/


Treeview folder infinite loop

Hey there,
Quite a basic issue. My tree view has a strange problem where it seems to have an infinite loop of the same folder. Example:

Thanks

One the latest version, does this issue still happen?


Implement example: 7GUIs Flight Booker

The implementation must be integrated in this Markdown file:

https://github.com/tbreuss/mithril-by-examples/blob/main/examples/7gui-flight-booker.md

And the content should be formatted like here for example:

https://github.com/tbreuss/mithril-by-examples/blob/main/examples/routing.md

If you have any question, leave a message in the comments.

Released with #70


build on ros2-foxy-ubuntu20.04 x86

Description
colcon build
Expected Behavior
support colcon build with no error
Actual Behavior
colcon build
Processing: rosbag2_storage_mcap]
--- stderr: rosbag2_storage_mcap
conanfile.py (mcap/0.0.1): ERROR: Invalid ID: Current cppstd (gnu14) is lower than the required C++ standard (17).. Trying to install dependencies, but this configuration will fail to build a package
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:48:36: error: ‘StorageOptions’ in namespace ‘rosbag2_storage’ does not name a type
   48 |   void open(const rosbag2_storage::StorageOptions& storage_options,
      |                                    ^~~~~~~~~~~~~~
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:48:8: error: ‘void rosbag2_storage_plugins::MCAPStorage::open(const int&, rosbag2_storage::storage_interfaces::IOFlag)’ marked ‘override’, but does not override
   48 |   void open(const rosbag2_storage::StorageOptions& storage_options,
      |        ^~~~
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:128:47: error: ‘StorageOptions’ in namespace ‘rosbag2_storage’ does not name a type
  128 | void MCAPStorage::open(const rosbag2_storage::StorageOptions& storage_options,
      |                                               ^~~~~~~~~~~~~~
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp: In member function ‘void rosbag2_storage_plugins::MCAPStorage::open(const int&, rosbag2_storage::storage_interfaces::IOFlag)’:
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:132:40: error: request for member ‘uri’ in ‘storage_options’, which is of non-class type ‘const int’
  132 |       relative_path_ = storage_options.uri;
      |                                        ^~~
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:148:40: error: request for member ‘uri’ in ‘storage_options’, which is of non-class type ‘const int’
  148 |       relative_path_ = storage_options.uri + FILE_EXTENSION;
      |                                        ^~~
In file included from /opt/ros/foxy/include/class_loader/class_loader_core.hpp:57,
                 from /opt/ros/foxy/include/class_loader/class_loader.hpp:55,
                 from /opt/ros/foxy/include/pluginlib/class_list_macros.hpp:40,
                 from /home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:427:
/opt/ros/foxy/include/class_loader/meta_object.hpp: In instantiation of ‘B* class_loader::impl::MetaObject<C, B>::create() const [with C = rosbag2_storage_plugins::MCAPStorage; B = rosbag2_storage::storage_interfaces::ReadWriteInterface]’:
/opt/ros/foxy/include/class_loader/meta_object.hpp:216:7:   required from here
/opt/ros/foxy/include/class_loader/meta_object.hpp:218:12: error: invalid new-expression of abstract class type ‘rosbag2_storage_plugins::MCAPStorage’
  218 |     return new C;
      |            ^~~~~
/home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:42:7: note:   because the following virtual functions are pure within ‘rosbag2_storage_plugins::MCAPStorage’:
   42 | class MCAPStorage : public rosbag2_storage::storage_interfaces::ReadWriteInterface {
      |       ^~~~~~~~~~~
In file included from /home/david/Documents/rosbag2_storage_mcap/rosbag2_storage_mcap/src/mcap_storage.cpp:19:
/opt/ros/foxy/include/rosbag2_storage/storage_interfaces/read_write_interface.hpp:36:8: note: 	‘virtual void rosbag2_storage::storage_interfaces::ReadWriteInterface::open(const string&, rosbag2_storage::storage_interfaces::IOFlag)’
   36 |   void open(const std::string & uri, IOFlag io_flag = IOFlag::READ_WRITE) override = 0;
      |        ^~~~
/opt/ros/foxy/include/rosbag2_storage/storage_interfaces/read_write_interface.hpp:36:8: note: 	‘virtual void rosbag2_storage::storage_interfaces::ReadWriteInterface::open(const string&, rosbag2_storage::storage_interfaces::IOFlag)’
make[2]: *** [CMakeFiles/rosbag2_storage_mcap.dir/build.make:63: CMakeFiles/rosbag2_storage_mcap.dir/src/mcap_storage.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/rosbag2_storage_mcap.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< rosbag2_storage_mcap [34min 19s, exited with code 2]

Summary: 0 packages finished [34min 19s]
  1 package failed: rosbag2_storage_mcap
  1 package had stderr output: rosbag2_storage_mcap

To Reproduce
** Steps to reproduce the behavior, e.g.

git clone repo
sudo pip install conan
cd repo && colcon build

System (please complete the following information)

OS: [e.g. Ubuntu Bionic]
ROS 2 Distro: [e.g. foxy]

** For ROS 2 bugs - please attach a VCS.repos or Dockerfile if possible to help us reproduce the environment **

@jtbandes closed by https://github.com/ros-tooling/rosbag2_storage_mcap/pull/34?


Refactor Cadence packaged solution

Given the challenges posed by enabling updates for clusters with the BundledUseOnly option, we have encountered difficulties in efficiently updating and tracking individual cluster specifications within the Cadence manifest. As a result, we decided to refactor the flow and functionality of the Cadence provisioning cluster using a selected packagedProvisioning approach, as is done in the Instaclustr console.
This issue caused by https://github.com/instaclustr/operator/issues/718

https://github.com/instaclustr/operator/pull/726


npm error @langchain/community v3.0.0 "Cannot read properties of null (reading 'edgesOut')"

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
fails on
npm install @langchain/community -dd
and
npm install<EMAIL_ADDRESS>-dd
but, succeeds on
npm install<EMAIL_ADDRESS>-dd
Error Message and Stack Trace (if applicable)
npm http fetch GET 200 https://registry.npmjs.org/typeorm 27ms (cache hit)
npm verbose stack TypeError: Cannot read properties of null (reading 'edgesOut')
npm verbose stack     at #loadPeerSet (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1286:38)
npm verbose stack     at async #buildDepStep (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:901:11)
npm verbose stack     at async Arborist.buildIdealTree (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:181:7)
npm verbose stack     at async Promise.all (index 1)
npm verbose stack     at async Arborist.reify (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
npm verbose stack     at async Install.exec (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/lib/commands/install.js:150:5)
npm verbose stack     at async Npm.exec (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/lib/npm.js:207:9)
npm verbose stack     at async module.exports (/opt/nvm/versions/node/v20.17.0/lib/node_modules/npm/lib/cli/entry.js:74:5)
npm error Cannot read properties of null (reading 'edgesOut')
npm verbose cwd /home/...
npm verbose os Linux 6.9.3-76060903-generic
npm verbose node v20.17.0
npm verbose npm  v10.8.3
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /home/vindex10/.npm/_logs/2024-09-14T09_53_23_240Z-debug-0.log

Description
I'm trying to install @langchain/community. The latest release fails, but the previous one works OK.
Possibly related issue:
https://github.com/langchain-ai/langchainjs/issues/5673
System Info
linux Linux 6.9.3-76060903-generic
node version v20.17.0
npm version v10.8.3

closed as duplicate of: https://github.com/langchain-ai/langchainjs/issues/6789


Add command to move between opened projects

would be awesome to have a command to switch between the opened projects.  After select the project, switch to last opened buffer of this project OR run Telescope projects.  i really miss this feature from emacs

This would be the best feature ever!

although you can set up a keybind to open up telescope project and select the first project that shows up :)


Operation is not valid due to the current state of the object

Problem Statement
There is a problem (bug?) in PQ around re-using function argument names on local variables (immutable though they are) within the function.  This is not a problem if you invoke directly, but if you are invoking as a parameter in a host function, the above error is thrown.  The problem occurs in...

Value.ToText
Type.ToText
Value.TypeToText

Resolution
All of these have an optional argument signifying recursive types and the same name is recycled in the function body.  Simply change the name of the local variable and all is OK.
e.g. in Value.TypeToText change Recurs to _Recurs
let
    Source = (Value as any, optional Recurs as logical) as text =>
    let
        Recurs = if (Recurs<>null) then Recurs else false,
        Type.ToText = #"Load"("Type.ToText"),

        Type = Value.Type(Value),
        ToText = if Value.Is(Value, type type) and Recurs then
            "type " & Type.ToText(Value, Recurs)
        else
            Type.ToText(Type, Recurs),
        Return = ToText
    in Return
in
    Source

To
(Value as any, optional Recurs as logical) as text =>
let
    _Recurs = if (Recurs<>null) then Recurs else false,
    Type.ToText = Load("Type.ToText"),

    Type = Value.Type(Value),
    ToText = if Value.Is(Value, type type) and _Recurs then
        "type " & Type.ToText(Value, _Recurs)
    else
        Type.ToText(Type, _Recurs),
    Return = ToText
in Return

Took me a while to figure this out but, much shorter than writing it myself: thanks for the share!
I won't be using the dynamic loading, but it's the closest I've seen to a build tool in PQ.

looks good! would you mind sending a PR? ditto for the other one.


Can't find MSDN-style Socket class documentation

Can't find documentation on Socket class (i.e. all members, methods, potential throws, …) only code examples.

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

ID: 54ee13e4-2078-cd89-81cd-165b72f41688
Version Independent ID: 55552032-181e-9830-f3b3-8f942ca4f130
Content: Socket Code Examples
Content Source: docs/framework/network-programming/socket-code-examples.md
Product: dotnet-framework
GitHub Login: @mcleblanc
Microsoft Alias: markl

Managed to find it here: https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.socket?view=netcore-2.1 through random walk across the docs.microsoft site. Googling didn't yield any results (tried netcore socket class, .NET socket class docs, and a few more).

Thanks @petrroll. We're looking into this. When we redirected the content from MSDN, search authority should have been preserved. Different than #7548 where I could find the API on Google, I can't find this one except if I use the API browser.

Our engineering team checked and Google is still indexing our multiple dotnet sitemaps. We've requested them to reindex the Socket page. Thanks!


fix jarjar dependency

So that the project can be compiled.

This should be merge with master.

fixed, sorry just noticed


Differ between server.log and request.log in prettyPrint.formatter

Hey guys,
is it possible to detect if logs are created with server.log or with request.log?
Is it enough to check if the logged message contain a req property?
Thanks.

Yes, I think the main difference would be a req property.

I disable mergeHapiLogData so it might be enough..hmm..let's try 👍
Thanks @mcollina


How to save a gif to file system

Hi!
Im creating a RGBA frame from a RGBA image generated with the image module:
    let mut img = generateRgbaImage();

    // Create frame from data
    let frame = gif::Frame::from_rgba(N as u16, M as u16, &mut *img);
    // Create encoder
    let mut image = Vec::new();
    let encoder = gif::Encoder::new(&mut image, N as u16, M as u16);
    // Write header to file
    let mut encoder = encoder.write_global_palette(&[]).unwrap();
    // Write frame to file
    encoder.write_frame(&frame).unwrap();

This compiles ok, but it keeps running without an end.
And also I dont know how to write the resulting gif into a file.
Thanks a lot!
Fran

As you are using image anyway: There are convenient methods on the image buffer. Probably called save or so, I don't recall the name.
Concerning speed, depending on the size of the image it could take a while, did you build with optimizations on i.e. using --release? If it still doesn't work I'll need to look further into it. Could you then please a more complete example such that I can reproduce the issue?
For writing to a file just replace the output-Vec with a file, I agree the example given in the docs should be adapted.

Thanks @nwin , this is how I managed to make it work:

// Create frame from data
let frame = gif::Frame::from_rgba(N as u16, M as u16, &mut *img);
// Create encoder
- let mut image = Vec::new();
+ let ref mut fout = File::create(&Path::new("fractal.gif")).unwrap();
- let encoder = gif::Encoder::new(&mut image, N as u16, M as u16);
+ let encoder = gif::Encoder::new(&mut *fout, N as u16, M as u16);
// Write header to file
let mut encoder = encoder.write_global_palette(&[]).unwrap();
// Write frame to file
encoder.write_frame(&frame).unwrap();

Navigating through the docs is kind of confusing until you get used to them, and this include the image package as well.
Thanks for your help!
Fran


fix(btformat): fixes an issue where btformat was not detected

closes #169

looks like the string you were checking was for 'headset' etc, monitor seems to include the bluez a2dp profile name so it should be fine with the existing string check. (tested with my crappy free BT speaker lol)

Thanks!


fix(ui): support other common SQLite file extensions (like .sqlite)

Fixes #36.

Please LMK if I did the changesets thing properly. It created a new file and I didn't find any other .changesets/ file like that but maybe I'm just the use it since you set it up for the repo?

Good job 🎉
You only need to create the changeset file, as you have done, and the workflow will handle the rest.
Otherwise, LGTM 🚀

@all-contributors please add @dbarnett for code

Let me explain the workflow in detail:

you create a PR with the changes you have made

at the end of your work you create a changeset file by running pnpm changeset add, which will create a changeset file with a dummy name under .changesets/
What are the situations where you don't add an acutall changeset?
If you are updating the docs and/or making changes to the website ( at apps/web ), we don't manage the versions of the website, but in either case, the changesets bot which I have installed in the repo will always check if there is a changeset file or not.
So to make the bot happy you add an empty changeset file, by running pnpm changeset add --empty which will be automatically deleted when the PR is merged.

when I merge your PR, the changeset action will detect a change in the .changesets folder and will automatically create a PR adding the contents of your generated file to the main Changelog file and then delete that generated file.

I hope this explains a bit, if you have any other questions LMK.

I hope this explains a bit, if you have any other questions LMK.

Excellent, thanks! If it helps, I sent #41 to clarify several of those things in the docs.


Can't load devices

I'm able to authenticate to smartthings and when I'm done I get a message that says:
Success
Stopping embedded HTTP server - none.
After this I can't seem to access any of my devices via the "st" prefix. The device.txt file is also empty.
I have a v2 hub and am using the latest version of Alfred.

I'm getting the same issue too.

I'll make that a 3rd person, no more devices listed and same error.

Similar situation with Alfred 3 and v2 hub

Migrate to new hub v2, everything working fine from mobile app
alfred st_logout (seems to work)
afred st_login (seems to work)
alfred st_update fails

[2016-06-05 05:55:53][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "device_collector.py", line 18, in device_collector
    command = args[-2]
IndexError: list index out of range
[2016-06-05 05:55:57][ERROR: action.script] Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "refresh_devices.py", line 28, in refresh_devices
    response = urllib2.urlopen(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

Update.
There is one problem in the workflow, but I don't think it is the source of the problem.
In the OSA Script at the end of st_login,
set temp to "{query}"
set temp to do shell script "echo " & quoted form of temp & "| tr -d '\\r\\n' "

if temp is "" then
	tell application "Alfred 2" to search "st_login "
else
	do shell script "python get_endpoints.py"
end if

It needs to be changed to "Alfred 3"
But this is just internal notification.

Update 2
There seems to be something strange taking place in the cloud infrastructure.
When I just go visit https://graph.api.smartthings.com and log in, I see a different set of smart apps than I do if I look at the smart apps when I arrive at the OAuth page during the st_login process.

During st_login I arrive at the auth page
Instead of trying to auth, click on "My Smart Apps"  This lands me at https://graph.api.smartthings.com/ide/apps
In a separate "incognito" window, visit https://graph.api.smartthings.com and log in
Click on "My Smart Apps", This lands me at https://graph-na02-useast1.api.smartthings.com/ide/apps

The apps in these locations are different, so I deleted everything and started over.  My Smart Apps at https://graph-na02-useast1.api.smartthings.com/ide/apps now only contains a new instantiation of the Alfred smart app, with OAuth turned on and published for myself.
Now, starting from scratch on Alfred

st_login
Arrive at https://graph.api.smartthings.com/oauth/confirm_access?...

Click on "My Smart Apps", forcing it to load in a new tab.
Arrive at https://graph.api.smartthings.com/ide/apps, which contains NO apps.

Return to the tab that has the auth page
select my location and tick two switches

Hit "Authorize" button
I now get (after making the applescript change mentioned earlier) a notification center "success" message, and I'm returned to the Afred workflow's success page

At this moment, I have a token.txt,  with a token string, an endpoints.txt
/api/smartapps/installations/8d0c50d2-e5ce-4812-a6b9-449e7c38d0f0

and an empty devices.txt, as expected.

st_update

2016-06-05 07:46:44][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "device_collector.py", line 18, in device_collector
    command = args[-2]
IndexError: list index out of range
[2016-06-05 07:46:45][utility.debug] '', {}
[2016-06-05 07:46:46][ERROR: action.script] Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "refresh_devices.py", line 28, in refresh_devices
    response = urllib2.urlopen(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

It's been a while, but I managed to hack it. It has to do with the cloud URIs that alfred is trying to use. Essentially it appears that smart things may have changed the URIs you need to hit and the app can't get to them anymore. If my recollection is correct it was something to do some extra subdomains that were likely there for load balancing.
I'm not at home with my hub to be able to figure out what exactly was going on, but I can definitely issue commands to ST bulbs using alfred after fixing the URI issue.

@daveismith This matches up with what I'm seeing.
But I have to say that this URL https://graph-na02-useast1.api.smartthings.com does not look permanent to me.  Is it the right one?

@kastork That's it exactly. To me that looks like it's coming from some sort of load balancer or something. That's why I didn't publish my hack when I did it. That said, I've got a REST endpoint set up for flick buttons and it's been working reliably for 2 months with the same sort of URI so I don't really know. Maybe there's some more redundancy that could be built in to go find that URI again if the operation fails?

The docs for web services SmartApps give this example:
# This is the URI we will use to get the endpoints once we've received our token
endpoints_uri = 'https://graph.api.smartthings.com/api/smartapps/endpoints'

options = {
  site: 'https://graph.api.smartthings.com',
  authorize_url: '/oauth/authorize',
  token_url: '/oauth/token'
}

The URLs will be different per location potentially the external service can hit the one endpoints URL to get the correct URL bases to call.
If this app is self published you have to make sure publish it in each shard and when starting the oauth flow you need to use the correct client id for the shard matching your location. If you log into the ide and click a location it will direct you to the correct shard for that location.

@beckje01
We're just trying to get your smart app to work under new the conditions.  Looks like we'll need to hack on it quite a bit if it isn't going to be made available officially.

Yeah I was just trying to provide more info to help you along. I don't know the long term plans on this app.

Appreciate it...
Thought it would just be some tweaks, but with your pointer and some motivation to read how to build one of these things from scratch it looks like a bigger effort, but still very do-able.  And a good excuse to learn something new.

If you're up for rebuilding this or just tweaking it to work, we'd be happy to publish whatever you come up with. I would love to see someone pick it up and run with it. Otherwise, it will probably get deprecated and pulled since it's broken.

Bump for a working Alfred 3 SmartThings Workflow!
I'll PayPal $20 to anybody that wants to fix it back to 100% working order and give it to vlaminck to publish. It's not a lot but it's better than nothing ☺

I made a PR (https://github.com/PhysicalGraph/SmartThings-Alfred/pull/4) on this. Simply changing references Alfred 2 to Alfred 3 seems to have brought this workflow to life for me. Give it a try!

After merging PR #4, this is working for me. I'm closing this issue and can reopen it if others are still experiencing this.


[colmap] Build error

Host Environment

OS: Window10
Compiler: VS2019

To Reproduce
./vcpkg install colmap[cuda,tests]:x64-windows
Failure logs
Installing 1/1 colmap:x64-windows...
Building colmap[core,cuda,tests]:x64-windows...
-- Using cached colmap-colmap-29a1e3642a3b00734a52b21e597ea4d576485fe6.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/colmap/src/d576485fe6-7dd36362d1.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/colmap-colmap-29a1e3642a3b00734a52b21e597ea4d576485fe6.tar.gz
-- Applying patch fix-dependencies.patch
-- Using source at F:/vcpkg/buildtrees/colmap/src/d576485fe6-7dd36362d1.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:129 (message):
    Command failed: F:/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: F:/vcpkg/buildtrees/colmap/x64-windows-dbg
    See logs for more information:
      F:\vcpkg\buildtrees\colmap\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/colmap/portfile.cmake:53 (vcpkg_cmake_install)
  scripts/ports.cmake:146 (include)

install-x64-windows-dbg-out.log
I think the bug is from the wrong directory path, but how to fix it, pls help!

Thanks for posting this issue. My local test blocked by metis:x64-windows installed failed, the reason is download failed. I will confirm this issue soon.

I'm experiencing the same issue. I notice METIS is available on github. Is there a way to install metis from another source and skip it in the vcpkg install?

I'm experiencing the same issue. I notice METIS is available on github. Is there a way to install metis from another source and skip it in the vcpkg install?

Could you please provide the related URL of METIS on github?

https://github.com/KarypisLab/METIS

any updates here?

Now colmap block by a Visual Studio bug, the ticket submitted on Developer Community can effectively increase the priority of this bug being fixed.
Closed as duplicate of #25303.


dragend isn't resizing the pages on resize event

When I resize my browser dragend won't resize the pages, resulting in two pages beeing visible at once or the page beeing too large for the window.

The solution is to call _sizePages() on resize:
var dragend = new Dragend(document.getElementById("content"));
window.addEventListener('resize', function() {
	dragend._sizePages();
});

It is. Sorry.


ROS1 -> ROS2 migration doc: Sections on services etc.

ping @esteve @fred-apex-ai – I have removed the section on dynamic_reconfigure since https://github.com/tier4/AutowareArchitectureProposal/pull/78 deals with that in more detail


acre presets

I made these channel name/label/descriptions for the acre radios, but I'm not quite sure how to implement them. I can't find where in the liberation files it currently names the channels, but, these match the current 1BN Electronics Operating Instructions.

added call for sqf in client init.


Remove usage of PHP alias in the Python client

Closes #1285.
Summary:
Removes all references to the api.php compatibility endpoint in src/client/delphi_epidata.py, instead redirecting all requests to their respective endpoints.
This has some implications on the outputs of the client, as it is taken out of "compatibility mode", which would normally be set by the call to the api.php endpoint. This means:

outputs in general are slightly different, e.g., adding an empty "epidata": [] field on missing rows
several extra columns are always included in the covidcast endpoint

Those changes are reflected in the integration tests.
Prerequisites:

[x] Unless it is a documentation hotfix it should be merged against the dev branch
[x] Branch is up-to-date with the branch to be merged with, i.e. dev
[x] Build is successful
[x] Code is cleaned up and formatted

outputs in general are slightly different, e.g., adding an empty "epidata": [] field on missing rows
several extra columns are always included in the covidcast endpoint

Good point!  Can you create src/client/packaging/pypi/CHANGELOG.md (perhaps using this template) and note that as of this version, returned results will now always have the epidata key in the root dict, and the other field keys at the appropriate locations?

@melange396 @dshemetov fixed the issues you've mentioned, and also created two PRs to fix the compatibility changes which will be caused by this being merged:
https://github.com/cmu-delphi/covidcast-indicators/pull/1899
https://github.com/cmu-delphi/covidcast/pull/663

This is a breaking change to the Python client API; we'll want to make sure we update the version number on release accordingly.

from https://github.com/cmu-delphi/covidcast/pull/663#discussion_r1334455733
@capnrefsmmat said:

since the next version has a breaking API change, shouldn't we be incrementing more than the minor version number?

and i said:

In even a fairly loose interpretation of the semantic versioning rules: yeah, we probably should be.
At the same time, bumping the major number would belie the fact that this is a relatively tiny change in the scope of the rest of the repository... Theres no new functionality and the only real effective change is to the signature of one public method, Epidata.async_epidata(). I would also argue that method is probably very rarely used, though thats just based on a hunch -- i find it hard to believe that many (if any?) people are actually using it because it is poorly documented and it doesnt appear in established call chains, but i have no demonstrable evidence for this. [It IS used once in covidcast-indicators, but we have full control over that code & execution.]
Still, your point stands and this change is worth more than a single increment of the patch-level version.
This would be a lot easier if the client and its versioning were decoupled from the rest of the API code, but we wont truly get that until we release and get adoption of epidatpy, which lives in its own repo.

We COULD decouple the python client version from the repository version by changing the PyPI metadata here and here, removing those files from the automatic version bumping here, and then changing the version in the client code here.
That would require us to remember to update the version number by hand in all those places if/when the python client code changes again (or come up with an automatic solution).  On the plus side, that would stop us from a ridiculous practice we have been doing pretty frequently in the past: changing the client version number when there are changes elsewhere in the repository even though the client code is literally identical.

On the separate automatic solution for the client: we could probably have another bumpversion.cfg somewhere in the client folder. Unfortunately all the clients are in the same folder, so I think that means only one can have automated version bumping with this approach. If we are open to restructuring that folder somewhat (e.g. R, Py, JS folders), then we could automate them separately.

TODO: look for code in the system that depends on the client package version number being coupled to the repo version. Probably need to check version-specifying config files in this repo (and in other repos).

It looks like our github action for publishing to PyPI will no-op if the version in setup.py isnt changed, thanks to the option skip_existing: true (i did a good bit of research to come to that conclusion but didnt actually test it).  Perhaps we should switch the automatic client release GH actions into manually triggered steps anyway?
Going with a new hand-coded client version of >=5.* seems excessive to me.  What if we went with 4.1001.10?  Then the python client version would be the same as the next repository version modulo 1000 on the minor part, and the two versioning paths should be distinct until they realign with v5 (presuming we get to v5 before ~1k revisions of v4).  The one thousand point difference should convey the sentiment that this is a potentially significant upgrade.
Or we could sweep it under the rug by leaving the repository version linked to the python client version and just increment the patch number, and hope that nobody experiences untoward effects.  If some user's code breaks when they update to version 4.1.10, they will either roll back to the previous version or fix their code.  ...But they will go through the exact same thing if we release the same changes as version 5.0.0 instead.  Strict semantic versioning makes more sense for projects that might introduce a new major or minor version but still perform follow-up updates to the lesser version branch -- for us, regardless of whether we move to 4.1.10 or 4.1001.10 or 5.1.1, we arent going to fill in any intermediate versions between that and the current 4.1.9.
In the past, we've done some potentially "breaking" changes with just a patch-level version bump -- thats not exactly justification for doing it again, but it is a precedent.

TODO: look for code in the system that depends on the client package version number being coupled to the repo version.

Im not sure what you mean; I dont think anything DEPENDS on the client version being tied to the rep version, but rather they simply happen to be tied together as a consequence of the client and server code existing in the same place with a shared bumpversion config.

The situation I was thinking of would be if some setup file somewhere asks for delphi-epidata repo version and buries the assumption that the client has the same version number. And vice versa.

Should we mark functions downstream of async_epidata deprecated too? I'm thinking mostly of _async_fetch_epidata in the Python client, probably don't need to be concerned about nowcast.


Display script in a UITextView, enabling copying

#114 - Editing and scrolling disabled, and I transferred the styling from the previous label; seems to do the trick

Thanks that's perfect!


[LOC]"コグニティブ 検索" needs to be replaced with "Cognitive Search"

ja-jp:https://docs.microsoft.com/ja-jp/rest/api/searchservice/lookup-document

en-us:https://docs.microsoft.com/en-us/rest/api/searchservice/lookup-document

Closed. #4334


Add video link for youtube playlist

Adding a link to the playlist of the videos I've recently released.
More videos will follow in the playlist I linked.
I'm not sure about the creation date. Or the timezone. Is that generated somehow?

oops just saw a mistake...

could you mark it as v7?

Fixed.

thank you!


Loading class as script to test

I have a class that i am trying to load in and write tests for but am getting a casting error, org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'com.example.Example@28f36e9d' with class 'com.example.Example' to class 'groovy.lang.Script'
Example.groovy
package com.example

class Example implements Serializable {
    Utils utils = new Utils()

    def execute() {
        return "Has executed"
    }
}

This class is throwing the error above.

However if i switch the class to something more like:
package com.example

def execute() {
    return "Has executed"
}

return this

The test does not throw the error above

This is how i am testing the class:
ExampleSpec.groovy
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification

class ExampleSpec extends JenkinsPipelineSpecification {
    def  example = null

    def setup() {
        example = loadPipelineScriptForTest("../../src/com/example/Example.groovy")
    }

    def "[Example] will return a string" () {
        when:
           def string = example.execute()
        then:
           assert string == "Has executed"
    }
}

Would you have any ideas on this problem? Not sure if there is something about the class itself of maybe something in the loadPipelineScriptForTest that doesn't allow for that type of class to be loaded in. Thanks!

A Groovy class is not a Groovy script - you indeed cannot load a Groovy class with loadPipelineScriptForTest since it isn't a pipeline script.
Just write a normal unit test class for your Groovy script, instead:
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification

class ExampleSpec extends JenkinsPipelineSpecification {

	Example example = null

	def setup() {
		Example = new Example()
	}

	def "[Example] will return a string" () {
		when:
		   def string = example.execute()
		then:
		   assert string == "Has executed"
	}
}

However, in the provided Example.groovy, there are no Jenkins Pipeline steps used. If this reflects your actual code - that is to say, if you've got a plain vanilla Groovy class - you don't even need jenkins-spock! Just use vanilla Spock:
import spock.lang.Specification

class ExampleSpec extends Specification {

	Example example = null

	def setup() {
		Example = new Example()
	}

	def "[Example] will return a string" () {
		when:
		   def string = example.execute()
		then:
		   assert string == "Has executed"
	}
}

See the ExamplePipelineClassSpec and ExampleVanillaClassSpec in the shared-library example on the issue-36 branch for working examples of these two approaches.

Please let me know if this works for you.

Ah yes, i didn't even think about loading in the Class and testing it normally without using loadPipelineScriptForTest. I did have pipeline steps in my actual code and the first example worked perfectly for me. Thanks for the help!


Jeremyds/113/scan pypi and archive

This PR adds 2 new commands to be able to scan:

python package (wheel),
archive.

#113

@CharlesB2 good point, fixed!


♿ Work on responsiveness for the AppShelf

Title says it all baby

Which issues would this PR solve?

#1, #42, #82, #85 right?

Not #42 but the other yes


Create an easy and consistent Exception base class

I am requesting a more simple base class for Exceptions in the dart:core lib, making it easy to create application specific exceptions that require a simple message.
The dart:core lib has an Exception interface, but no base exception class (the coreimpl has an ExceptionImplementation, but coreimpl is off limits). Creating a custom exception requires too much boilerplate if you want to capture a message. Some of our exceptions have a message field, some don't. Some of our exceptions take a _s, some take a _message, some take a message in their constructor.

Please reconsider this.  I'm writing a mobile app that must capture and log stack traces.  Currently this requires a lot of confusing boilerplate and third-party modules.  Please enhance.

Exceptions are not errors. It makes not sense to require an exception to have any of:

Message
Cause
Stack trace
because some exception classes may not need some, or any, of those.

Generally reusable exceptions, like FormatException, usually have a message, because they are used in multiple situations, and integer.parse and Uri.parse may want to report who is throwing the exception.
Application specific exceptions will hold application speciifc data. They usually don't need a message field, they just override toString and use the data stored on the object. The message is for debugging or logging, so it should be in a consistent format, and allowing each throw-point to pick its own message is conuter-productive.
So, when we won't make the Exception class carry those values, this would mean having utility classes for some combination of features.
It's easy to write all of those combinations, but it's harder to determine which ones are actually needed.
abstract class ExceptionWithCause extends Exception {
  final Object cause;
  ExceptionWithCause(this.cause);
  String get message;
  String toString() => "$message\nCaused by:\n$cause";
}
class ExceptionWithCauseAndMessage extends ExceptionWithCause {
  final String messagge;
  ExceptionWithCauseAndMessage(this.message, Object cause) : super(cause);
}

Here the cause is typed as Object because it's unclear whether it's always an Exception, or it might be an Error. Are these classes actually what somebody need for their exception classes? Probably some, likely not everybody.
I think a consistent framework for creating exceptions or errors is fine as a package, and I'd help write one, but the use-cases are not consistent enough that putting one particular solution in the platform libraries is a good idea.

Hi lrhn,
I am preparing a commercial application for hundreds of thousands of users.  At that scale, anything that can go wrong will go wrong.  How shall we investigate errors?  I would hope to see consistent stack traces, and chained exceptions with useful error messages at each throw.  How could you do it without those things?
Michael


Merging reaction game branch into main, closes issue #8

This branch implements the reaction game on a separate routed url, it also adds a card that can be changed in the future that leads to the reaction game url on the home page.

looks good to me!


Code health: Remove another VAX C-ism, globaldef and globalref

I'd say that it would be more appropriate to remove the comment altogether and put modified comment to commit message instead.

Not so sure about that...  In a year or so, how far will we dig in commit logs to find documentation on how to use those macros?

Yeah, I like the comment.  approved.

Right. Sorry. What I rather meant was that it would be appropriate to remove mention of VAX C from commentary. I mean modified commentary opens with "OPENSSL_GLOBAL had some meaning for VAX C, which isn't supported any more", and if you were looking at it for "first time" you would wonder "what does it have to do with anything?"

Ah, that...  well, OPENSSL_GLOBAL is still defined, to nothing.  Someone is bound to wonder why...

But sure, I can remove that line.

Actually, OPENSSL_GLOBAL can be removed entirely.  I was afraid the change would be massive, but found that this wasn't true.

and then get rid of OPENSSL_IMPLEMENT_GLOBAL as well.

Errr, no.  That's a totally different deal.

Or, well, not totally, but still...

Ok, added a commit that removes OPENSSL_GLOBAL entirely.

Cool! I'd like to see what CI says and possibly run some tests myself. A bit later today though...

Yup.  I'm running tests on VMS as well, right now.

This seems to build and test fine on VMS

Cool, thanks!  Merged.


Install fails

When running npm install ng2-bs3-modal I get the following error.
Is there anything I'm doing wrong?
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ng2-bs3-modal"
npm ERR! node v5.6.0
npm ERR! npm  v3.7.2
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `npm run peer`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'npm run peer'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-bs3-modal package,
npm ERR! not with npm itself.

npm-debug.log.zip

I'm getting the same thing, weird. Looking into it now.

Ah I see, thank you!

@julia-string should be good now. Give it a try and let me know how it goes.

 Thank you!

:+1:

Sorry, one more thing: I get UNMET PEER DEPENDENCY<EMAIL_ADDRESS>but I'm running on<EMAIL_ADDRESS>

I've recently added the peer dependency and I may have botched the semver syntax. Lemme take look into that as well.

Oh man... I fat fingered bootstrap... had it in there as bootsrap. Thanks for catching my mistakes! Should be good to go in v0.1.3.
Thanks again!

Cool! That worked now, thank you!
Sorry to be such a bugger. The import path still seems wrong, it doesn't find the correct file when using import { MODAL_DIRECTIVES } from 'ng2-bs3-modal'; but instead returns ng2-bs3-modal:1 Uncaught SyntaxError: Unexpected token <. I tried different paths also.

hmm... try import { MODAL_DIRECTIVES } from "ng2-bs3-modal/dist/ng2-bs3-modal";

Yeah, I tried that too, but then it throws the same error (likely a different cause), when including the directive MODAL_DIRECTIVES.

@julia-string how are you transpiling/loading your scripts? systemjs?

I might be having the same issue as @julia-string . I have import {MODAL_DIRECTIVES} from 'ng2-bs3-modal/dist/ng2-bs3-modal'; and am using SystemJS, but I am getting a 404 when the browser looks for http://localhost:12345/ng2-bs3-modal/dist/ng2-bs3-modal

@rsnider19 it sounds like I need to take a better look and the npm install flow.

Thanks! In the meantime, I think I'll just add the components to my project so that I can start using them.

:+1:

Nice share dude... love the way you manhandled (implements) that interface deep within angular2 like a JAVA PRO. Time to step into the fast lane...   : )

@dougludlow Any progress on the "SyntaxError: Unexpected token < " when using the following import... import {MODAL_DIRECTIVES} from 'ng2-bs3-modal/dist/ng2-bs3-modal';??

@Flea505 none, yet... I'm on a family vacation right now. But I'll probably have some time to look into it this weekend.

This should be fixed now in 0.1.4. Please give it a go and let me know if you have any issues.
You'll need to change the import path to the following:
import { MODAL_DIRECTIVES } from "ng2-bs3-modal/ng2-bs3-modal";

Also, if you're loading your scripts manually (not using something like systemjs), I've added bundles/ng2-bs3-modal.js which you can include directly from node_modules, if desired.
<script src="/node_modules/ng2-bs3-modal/bundles/ng2-bs3-modal.js"></script>

Thanks! I'll give it a go on Monday.
Felicia Chavez
Tempus Nova
Cell<PHONE_NUMBER>
Google Voice<PHONE_NUMBER>
<EMAIL_ADDRESS>
On Mar 5, 2016, at 8:38 AM, Douglas Ludlow<EMAIL_ADDRESS>wrote:
This should be fixed now in 0.1.4. Please give it a go and let me know if you have any issues.
You'll need to change the import path to the following:
import { MODAL_DIRECTIVES } from "ng2-bs3-modal/ng2-bs3-modal";
Also, if you're loading your scripts manually (not using something like systemjs), I've added bundles/ng2-bs3-modal.js which you can include directly from node_modules, if desired.

—
Reply to this email directly or view it on GitHub.


Snowpack integration readme advocating installing prefresh as a production dependency

:wave: wondering why the readme shows the install command with the -s flag, which as far as I know is the shorthand of --save-prod.
Since I'm using snowpack with this as a plugin I would expect the --save-dev flag, is the expected usecase for development tooling?

Sounds right, feel free to PR was an oversight.


Fix python import issue

Traditionally bazel created init files in the root of the build folder of python packages, this causes confusion during python import when the build folder name is the same as the package name. See this discussion. So you end up with:
- my_package
  - __init__.py <==== created by bazel
  - my_package <==== copy of the source code
     - __init__.py <==== from the actual source code

legacy_create_init=False will prevent this __init__.py from being created.

Thanks for the contribution. Which Bazel version are you using btw?
I use 5.2 on daily basis and until yesterday I haven't had any problems using --incompatible_default_to_explicit_init_py option (which is also in .bazelrc of this repo and I hope you use it as well). And then I found a Bazel bug, see https://github.com/bazelbuild/bazel/issues/16388. Looks like you have the same issue here. Extra flags won't harm. LGTM!

Thx, currently bazel 5.3.1.


Column Offsets Needed

Need to implement quick and easy classes to make column offsets.

Will be released with 1.1.0


Add support for background color

adds support for specifying background color when converting images

Ugh sorry didn't mean to make the pull request :(


Feb 22 1:44pm - Testing CWU Opportunities work

Value: $1,500.00Closes: Friday, February 23, 2018Location: Victoria Some in-person work requiredOpportunity DescriptionasdfasdfAcceptance CriteriaDo this
Do that
 How to ApplyGo to the Opportunity Page, click the Apply button above and submit your proposal by 16:00 PST on Friday, February 23, 2018.We plan to assign this opportunity by Friday, February 23, 2018 with work to start on Thursday, February 22, 2018.Proposal Evaluation Criteriaasd;lkjf

Link from Opp detail page works

This opportunity has been assigned

This was a test


Add update-only flag to upload endpoint

Adds new query param for /api/upload/uid called update-only:
  queryParameters:
    update-only:
      type: boolean
      required: false
      description: If true, it will only upload to containers that already exist

Endpoint will return status code 404 if containers do not exist. For more info see raml docs in diff.

@coltonlw I added you to the review as well so you can review any raml and abao changes I made as part of this PR.

Rebased, testing now :)

This has been reworked into a new endpoint. Query param is no longer required, there is a new json schema and raml doc. The new endpoint is /api/upload/uid-match.

Tested; LGTM


cmdline cursor goes backwards one character when using auto completion

Environment
Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version 0.5.2762.0

Any other software?
WSL with Ubuntu 18.04.2 LTS

Steps to reproduce

open terminal on WSL with ubuntu
start typing a command
use tab for auto-completion
cursor goes back 1 place in the cmdline (visually - not really, meaning if i continue typing cmd can be executed successfully)

Expected behavior
auto completion should not redraw the cursor
Actual behavior
cursor seems to go back 1 place and when trying to continue typing the command it ends up in disorder.

It's probably due a misunderstanding between the terminal and bash on the width of the cloud symbol.

Yeah, that sounds about right. Thanks @egmontkob!
I'm wondering if this got better with 0.6? We changed how character widths are figured out. Maybe we'll agree with bash?

I just installed version 0.6.2951.0 and it seems to work better in regards to this bug report.
I will continue evaluating and close this in a day or two if issue seems resolved.
Thanks @DHowett-MSFT @egmontkob

Issue seems to be resolved with version > 0.6


fix(watch-command): return watch commands in consistent order

Related to https://github.com/netlify/cli/issues/1252#issuecomment-708618270 and I also noticed this impacts the svelte detector.
We should return the same result if script order is different.
We should also find a way to sort https://github.com/netlify/framework-info/blob/26a3b71c04d02c0a1d1baa3dbbc69745adc6683d/src/watch.js#L27 but I'm not sure how to do it (yet).

Just realized this requires an additional fix for scripts in the format *:start


Long segmentation time on large microscopy images

Disclaimer
This issue is based on preliminary observations and does not contain a lot of details/examples at the moment.
Issue description
I noticed that the segmentation time on large microscopy images is quite long in ivadomed compared to what I was used to in ADS.
To this effect, I fixed a bug in image reconstruction in PR #956.
In addition, we found that using the .pt version of the model (on GPU) and the .onnx version (on CPU) help with segmentation time as described in issue #961.
Nevertheless, for a microscopy image of ~8000x6000 pixels, the segmentation time with my ivadomed model (.pt on GPU on rosenberg) is around 2.5 minutes.
In comparison, an ADS model (on GPU on bireli) would take less than 30 seconds to segment the same image.
I investigated a little bit and the bottleneck seems to come from this for loop. More specifically, there is a delay between the return of reconstruct_3d_object and the beginning of the next iteration of the loop (is it the time to fetch the batch in DataLoader?)
I could use some help here, thanks!

Oh you could also try this!
python3 -m cProfile -s cumulative your-training-script.py

That will tell you what's eating your time. If it lists _MultiProcessingDataLoaderIter._next_data() near the top then that will reinforce this diagnosis.

Update:
I fixed an issue in PR #982 where the transforms were applied on the entire image for each patch instead of on each individual patch.
So the next step will be to revisit the changes made in PR #806 regarding deepcopy.

Update: I fixed an issue in PR #982 where the transforms were applied on the entire image for each patch instead of on each individual patch. This reduce the segmentation time from 171 sec to 118 sec.

Wow! Congratulations that's already an amazing performance boost. :tada: :tada:


request help: The same configuration fails to execute in the test, and executes normally through curl

When the dynamic-upstream plugin configures multiple rules, an error occurs in the execution of the test case, and the execution of the curl is normal.
for example:
=== TEST 17: Use two plugins related to upstream configuration at the same time. (Here is a test from another plugin)
--- config
    location /t {
        content_by_lua_block {
            local t = require("lib.test_admin").test
            local code, body = t('/apisix/admin/routes/1',
                ngx.HTTP_PUT,
                [[{
                    "upstream": {
                        "nodes": {
                            "<IP_ADDRESS>:1980": 1
                        },
                        "type": "roundrobin"
                    },
                    "plugins": {
                        "dynamic-upstream": {
                            "rules": [
                                {
                                    "match": [
                                        {
                                            "vars": [
                                                [ "arg_pageNum","==","aa" ]
                                            ]
                                        }
                                    ],
                                    "upstreams": [
                                        {
                                            "upstream": {
                                                "name": "upstream_A",
                                                "type": "roundrobin",
                                                "nodes": {
                                                    "<IP_ADDRESS>:1981":50
                                                },
                                                "timeout": {
                                                    "connect": 60000,
                                                    "send": 10000,
                                                    "read": 10000
                                                }
                                            },
                                            "weight": 700
                                        },
                                        {
                                            "upstream": {
                                                "name": "upstream_B",
                                                "type": "roundrobin",
                                                "nodes": {
                                                    "<IP_ADDRESS>:1982":50
                                                },
                                                "timeout": {
                                                    "connect": 60000,
                                                    "send": 10000,
                                                    "read": 10000
                                                }
                                            },
                                            "weight": 300
                                        }
                                    ]
                                },
                                {
                                    "match": [
                                        {
                                            "vars": [
                                                [ "arg_pageSize","==","11" ]
                                            ]
                                        }
                                    ],
                                    "upstreams": [
                                        {
                                            "upstream": {
                                                "name": "upstream_A",
                                                "type": "roundrobin",
                                                "nodes": {
                                                    "<IP_ADDRESS>:1983":50
                                                },
                                                "timeout": {
                                                    "connect": 60000,
                                                    "send": 10000,
                                                    "read": 10000
                                                }
                                            },
                                            "weight": 1000
                                        }
                                    ]
                                }

                            ]
                        },
                        "gbop-params-rewrite": {
                            "convert": [
                                {
                                    "from": ["QUERY", "name"],
                                    "to": ["PATH", "name"]
                                }
                            ],
                            "new_uri":"/server_port"
                        }
                    },
                    "uri": "/hello"
                }]]
            )
            if code >= 300 then
                ngx.status = code
            end
            ngx.say(body)
        }
    }
--- request
GET /t
--- response_body
passed
--- no_error_log
[error]

The error is as follows：
prove ./t/plugin/dynamic-upstream.t
./t/plugin/dynamic-upstream.t .. 37/? nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/my_workspace/apisix-routex/apisix/t/servroot/conf/nginx.conf:133
nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/my_workspace/apisix-routex/apisix/t/servroot/conf/nginx.conf:133
nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/my_workspace/apisix-routex/apisix/t/servroot/conf/nginx.conf:133
nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/my_workspace/apisix-routex/apisix/t/servroot/conf/nginx.conf:133
nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/my_workspace/apisix-routex/apisix/t/servroot/conf/nginx.conf:133

curl executes normally：
curl http://<IP_ADDRESS>:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
    "upstream": {
        "nodes": {
            "<IP_ADDRESS>:1980": 1
        },
        "type": "roundrobin"
    },
    "plugins": {
        "dynamic-upstream": {
            "rules": [
                {
                    "match": [
                        {
                            "vars": [
                                [ "arg_pageNum","==","aa" ]
                            ]
                        }
                    ],
                    "upstreams": [
                        {
                            "upstream": {
                                "name": "upstream_A",
                                "type": "roundrobin",
                                "nodes": {
                                    "<IP_ADDRESS>:1981":50
                                },
                                "timeout": {
                                    "connect": 60000,
                                    "send": 10000,
                                    "read": 10000
                                }
                            },
                            "weight": 700
                        },
                        {
                            "upstream": {
                                "name": "upstream_B",
                                "type": "roundrobin",
                                "nodes": {
                                    "<IP_ADDRESS>:1982":50
                                },
                                "timeout": {
                                    "connect": 60000,
                                    "send": 10000,
                                    "read": 10000
                                }
                            },
                            "weight": 300
                        }
                    ]
                },
                {
                    "match": [
                        {
                            "vars": [
                                [ "arg_pageSize","==","11" ]
                            ]
                        }
                    ],
                    "upstreams": [
                        {
                            "upstream": {
                                "name": "upstream_A",
                                "type": "roundrobin",
                                "nodes": {
                                    "<IP_ADDRESS>:1983":50
                                },
                                "timeout": {
                                    "connect": 60000,
                                    "send": 10000,
                                    "read": 10000
                                }
                            },
                            "weight": 1000
                        }
                    ]
                }

            ]
        },
        "gbop-params-rewrite": {
            "convert": [
                {
                    "from": ["QUERY", "name"],
                    "to": ["PATH", "name"]
                }
            ],
            "new_uri":"/server_port"
        }
    },
    "uri": "/hello"
}'

The result of execution：
{"node":{"key":"\/apisix\/routes\/1","value":{"priority":0,"plugins":{"dynamic-upstream":{"rules":[{"upstreams":[{"upstream":{"timeout":{"send":10000,"connect":60000,"read":10000},"name":"upstream_A","nodes":{"<IP_ADDRESS>:1981":50},"type":"roundrobin"},"weight":700},{"upstream":{"timeout":{"send":10000,"connect":60000,"read":10000},"name":"upstream_B","nodes":{"<IP_ADDRESS>:1982":50},"type":"roundrobin"},"weight":300}],"match":[{"vars":[["arg_pageNum","==","aa"]]}]},{"upstreams":[{"upstream":{"timeout":{"send":10000,"connect":60000,"read":10000},"name":"upstream_A","nodes":{"<IP_ADDRESS>:1983":50},"type":"roundrobin"},"weight":1000}],"match":[{"vars":[["arg_pageSize","==","11"]]}]}]},"gbop-params-rewrite":{"convert":[{"from":["QUERY","name"],"to":["PATH","name"]}],"new_uri":"\/server_port"}},"uri":"\/hello","id":"1","upstream":{"pass_host":"pass","hash_on":"vars","nodes":{"<IP_ADDRESS>:1980":1},"type":"roundrobin"}}},"header":{"raft_term":"54","cluster_id":"14841639068965178418","member_id":"10276657743932975437","revision":"26907"},"action":"set"}

your test case is wrong. please make a try with this style:
=== TEST 17: Use two plugins related to upstream configuration at the same time. (Here is a test from another plugin)
--- config
    location /t {
        content_by_lua_block {
            local t = require("lib.test_admin").test
            local code, body = t('/apisix/admin/routes/1',
                ngx.HTTP_PUT,
                [[{    --> change to [==[{
                "uri": "/hello"
                ... ...
                }]]    --> change to }]==]

your test case is wrong. please make a try with this style:
=== TEST 17: Use two plugins related to upstream configuration at the same time. (Here is a test from another plugin)
--- config
    location /t {
        content_by_lua_block {
            local t = require("lib.test_admin").test
            local code, body = t('/apisix/admin/routes/1',
                ngx.HTTP_PUT,
                [[{    --> change to [==[{
                "uri": "/hello"
                ... ...
                }]]    --> change to }]==]

Ok, thank you very much for answering.

If you know how to resolve this issue, please close this issue.

If you know how to resolve this issue, please close this issue.

ok.


Merge pull request #2634 from BackSlasher/repair-subversion-command

Subversion failes with "option ':command' is not a valid option for Mixlib::ShellOut"

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.


Add overlay with ruff configuration

ruff is a very fast and flexible python linter, written in rust.
Provide an overlay with ruff configuration settings. Preferably, the configuration file is stored in $HOME/.config/ruff/ruff.toml.
Contents of the configuration file:
# Same as Black.
line-length = 80
indent-width = 4

[lint]
select = ["E", "F", "W", "N", "D", "UP", "PL"]
ignore = ["D400", "D415"]

[format]
# Like Black, use double quotes for strings.
quote-style = "single"

# Like Black, indent with spaces, rather than tabs.
indent-style = "space"

The ruff linter configuration shouldn't be part of the general recipe repository.
Users should rather include this into their personal setups.
Closing.


Fix setDate with '1970-01-01 00:00' UTC timestamp

Can't set date "1970-01-01T00:00:00.000Z" with timestamp (0).

Coverage decreased (-0.01%) to 84.752% when pulling 9a9b277aad80f442407e948481cc7dbca1c695b4 on Odrin:patch-1 into 57b66029409d06b02b8d746990b91ed6e5b38ea9 on chmln:master.

Coverage decreased (-0.8%) to 83.937% when pulling da515868935d3cd74604207929ee5af8b9f0c0ac on Odrin:patch-1 into 57b66029409d06b02b8d746990b91ed6e5b38ea9 on chmln:master.

Coverage remained the same at 83.937% when pulling 4ab12842c6595c0deeb95e02c6afc2ac9db534b6 on Odrin:patch-1 into 8ff6b00057716545e8d831d340a832b1d64d4b2d on chmln:master.


How much do we care about scraping candidate committees?

Scraping each candidate page to get info on their candidate committees is taking a LOT of time. As far as I remember, this is something that we wanted to confirm the links in the raw data, and isn't adding any new information. We can save time and complexity by killing this; we'd still be able to assemble a list of certified candidates and the offices for which they ran. Thoughts?

James and I discussed it on the call this morning. You're right that the committee links are not necessary to verify the certified candidate list.
However, we'd still like to collect each candidates list of committees as at least a one-time pull so that we can confirm that the links we're making "internally" from the database dump are accurate.

Got it. Then I think I’ll break that scrape into a separate command.

On Nov 28, 2016, at 9:16 AM, Ben Welsh<EMAIL_ADDRESS>wrote:
James and I discussed it on the call this morning. You're right that the committee links are not necessary to verify the certified candidate list.
However, we'd still like to collect each candidates list of committees as at least a one-time pull so that we can confirm that the links we're making "internally" from the database dump are accurate.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/california-civic-data-coalition/django-calaccess-processed-data/issues/21#issuecomment-263332614, or mute the thread https://github.com/notifications/unsubscribe-auth/AB223IKgw0enxVUoLxyYOWJxBZW9Ml5Pks5rCwyLgaJpZM4K9fLr.