Use the modern save file dialog

As said here, the currently used select download folder dialog is long past its expiration date.
Also, it is impossible to paste the full folder path into the folder text box, meaning that you are forced to use this outdated dialog to find the folder you are looking for every single time you want to download something from Twitch.
Comparison of the dialogs:
The outdated dialog:

Pros:

Nothing

Cons:

You can’t Ctrl + V or type in the path, instead, you have to painstakingly navigate there.
The window is small and can’t be resized.

The modern dialog:

TortoiseGit uses the modern dialog.
Pros:

You can Ctrl + V or type in the path.
The window can be resized to any arbitrary size.
Fully compatible with Aero Glass.

Cons:

Nothing.

TL is a software piece developed by me to fix a bug in my streaming software (was not able to save streams locally while streaming). That's the history of it and you will still find some "fuck it but it works"-parts in it. It was not planned to be released to the public.
TL is implemented if .NET/WPF. WPF itself does not provide an OpenFolderDialog. That's why I use the Windows Forms dialog (that redirects to the old native one) from the good old days. The given dialog you suggest is a native dialog that has to be integrated into TL first because it is not part of .NET or in other words there's no wrapper for it (the reason why I didn't do it in the first place because I wanted to get stuff done quick). I needed a folder dialog and the old one did it for me.
Why would you select a dowhnload folder for every VOD you download? The preferences provide a default download folder that is used by default for every download. Usually you set it once and never touch the download folder again. That's at least how 99% of the users do it. Maybe you missed this option?
I agree that the new dialog is better in terms of navigation and size. But you have to admit that "piece of shit" and "needs desperate replacement" is a little bit off the scale. Like I said, normally you use the dialog once in TL and that's it.
To sum this up: I have limited free time to spend on TL right now (building a house) and I definitely feel the pain but TL has bigger issues that have to be addressed first. But feel free to contribute.


Refactor nytimes

More refactoring!
https://replay.io/view?id=bf02ed22-136a-4d5e-96d1-2f4aa18ac1b9

Nice!
On Fri, Apr 16, 2021, 11:04 AM Ryan Duffy @.***> wrote:

Merged #47 https://github.com/RecordReplay/playwright-tests/pull/47
into main.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/RecordReplay/playwright-tests/pull/47#event-4606201738,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB6EYQKFOMMWHY22IYYDVLTJB3ZLANCNFSM43AVMLKA
.


Check gofmt in Travis

Signed-off-by: Gábor Lipták<EMAIL_ADDRESS>

Hm, I'm not sure what you're trying here, we already check for gofmt in run_integration_tests.go :)
And I'd like to switch from Travis/Appveyor to Azure Pipelines, see #2237, for that I've reworked the whole integration test suite. So it's not a good idea to spend time in this area right now.
What are you trying to do?

@fd fail the build if gofmt fails. I missed the current implementation.closing

Ok, I understand ;)


Website is down

Your website appears to be down:

https://www.shogun.ml
https://www.shogun-toolbox.org

Yes! We are doing some work on it. Thanks!


Support scoped modules

Reapply functionality in https://github.com/alexanderGugel/ied/blob/fde1311d495bb935fd926189d13523c3c5fd35a4/lib/resolvers/npm-registry.js#L50
Based on some testing and a browse through the linking code in rebirth, it should handle scoped modules just fine with this addition (and the folder structure in my tests is looking good).

Loving it.


custom query parsing error :

Hello,
I'm trying to add custom metric to get the list of queries currently executed and there execution duration using -extend.query-path and yaml file.
Here is the detail of my yaml file:

pg_query_statement:

query: "select pid, datname, now()-pg_stat_activity.query_start AS duration, query, state, waiting FROM pg_stat_activity WHERE datname not in ('rdsadmin') order by duration desc"
metrics:
- pid:
usage: "LABEL"
description: "Pid of the query"
- datname:
usage: "GAUGE"
description: "Name of the table"
- duration:
usage: "COUNTER"
description: "duration in seconds"
- query:
usage: "COUNTER"
description: "Query executed"
- state:
usage: "GAUGE"
description: "State of the query"
- waiting:
usage: "GAUGE"
description: "Waiting time"

When executed I get the following error :

INFO[0000] Unexpected error parsing column:  pg_query_statement query [82 79 76 76 66 65 67 75]
source=postgres_exporter.go:877
INFO[0000] Unexpected error parsing column:  pg_query_statement state [105 100 108 101]
source=postgres_exporter.go:877
INFO[0000] Unexpected error parsing column:  pg_query_statement waiting false
source=postgres_exporter.go:877
INFO[0000] Unexpected error parsing column:  pg_query_statement datname [99 51 101 110 103 105 101 103 114 105 100 111 112 115]

Thank you by advance.

You can't parse text columns as metrics. You need to specify them as either LABEL or DISCARD types.

Ok thank you
Get Outlook for iOShttps://aka.ms/o0ukef

From: Will Rouesnel<EMAIL_ADDRESS>Sent: Friday, September 1, 2017 5:05:08 PM
To: wrouesnel/postgres_exporter
Cc: Matthieu Rolla; Author
Subject: Re: [wrouesnel/postgres_exporter] custom query parsing error : (#99)
You can't parse text columns as metrics. You need to specify them as either LABEL or DISCARD types.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/wrouesnel/postgres_exporter/issues/99#issuecomment-326707433, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdNP5UBKi5rKE6MPCE2C9VFvpiX8kwZpks5seJuzgaJpZM4PKcvk.
© 2017 C3 IoT. Confidential Information.
© 2017 C3 IoT. Confidential Information.


Could not open input BAM file: freebayes

Hi, all
I can run freebayes successfully like this "freebayes -f genome.fa -C 200 -i -u -X possorted_genome_bam.bam > SNP.vcf".
But when I try to run freebayes in a parallel way it always told me cannot open input BAM file "./freebayes-parallel <(/fasta_generate_regions.py /genome.fa.fai 100000) 16 freebayes -f /genome.fa -C 200 -i -u -X /possorted_genome_bam.bam > SNP.vcf".
I'm sure the path to the bam file is right. Why I get this?
The error information like this "[E::hts_open_format] Failed to open file freebayes
ERROR(freebayes): Could not open input BAM file: freebayes"

Is there a .bai index alongside the BAM?

Hi Erik,
Thanks for your quick reply. Let me re-format my question.
When I run freebayes like below
freebayes -f genome.fa  input.bam > output.vcf
it works well.
But when I run it in a parallel way
freebayes-parallel regions_file ncpu freebayes -f genome.fa  input.bam > output.vcf
it gives the error like this
ERROR(freebayes): Could not SetRegion to 1:0..100000 Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index ERROR(freebayes): Could not SetRegion to 1:100000..200000 Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index
I'm sure I have the corresponding .bai index alongside the BAM, but I donnot have multiple index files for each of the region.

Rebuild samtools index

Try to rebuild the index.
On Mon, Jul 22, 2019 at 5:20 PM SiwenX<EMAIL_ADDRESS>wrote:

Hi Erik,
Thanks for your quick reply. Let me re-format my question.
When I run freebayes like below
freebayes -f genome.fa input.bam > output.vcf
it works well.
But when I run it in a parallel way
freebayes-parallel regions_file ncpu freebayes -f genome.fa input.bam >
output.vcf
it gives the error like this
ERROR(freebayes): Could not SetRegion to 1:0..100000 Failed to load index
for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild
samtools index ERROR(freebayes): Could not SetRegion to 1:100000..200000
Failed to load index for
/N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild
samtools index
I'm sure I have the corresponding .bai index alongside the BAM, but I
donnot have multiple index files for each of the region.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ekg/freebayes/issues/553?email_source=notifications&email_token=AABDQEPQ4MUZGV2KZVNQT7DQAXF5VA5CNFSM4IFTJ532YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QIX2I#issuecomment-513838057,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABDQEIQRFI44UILSSNE3MTQAXF5VANCNFSM4IFTJ53Q
.

Hi erik,
I rebuild the index of bam file using 'samtools index', but the situation is the same. What puzzles me is that the command 'freebayes -f genome.fa input.bam > output.vcf' works well. But once I add the freebayes-parallel option at the front of them, the command 'freebayes-parallel regions_file ncpu freebayes -f genome.fa input.bam > output.vcf' can not work.
I got the regions_file using 'fasta_generate_regions.py ref.fa.fai 100000' and the format of regions_file likes below
'1:0-100000
1:100000-200000
1:200000-300000
1:300000-400000
1:400000-500000
1:500000-600000
1:600000-700000
1:700000-800000
1:800000-900000
1:900000-1000000'

It looks to me that something is confused with your installation.
Try running one region with freebayes. If this works, run more using
parallel.
On Mon, Jul 22, 2019, 23:51 SiwenX<EMAIL_ADDRESS>wrote:

Hi erik,
I rebuild the index of bam file using 'samtools index', but the situation
is the same. What puzzles me is that the command 'freebayes -f genome.fa
input.bam > output.vcf' works well. But once I add the freebayes-parallel
option at the front of them, the command 'freebayes-parallel regions_file
ncpu freebayes -f genome.fa input.bam > output.vcf' can not work.
I got the regions_file using 'fasta_generate_regions.py ref.fa.fai 100000'
and the format of regions_file likes below
'1:0-100000
1:100000-200000
1:200000-300000
1:300000-400000
1:400000-500000
1:500000-600000
1:600000-700000
1:700000-800000
1:800000-900000
1:900000-1000000'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ekg/freebayes/issues/553?email_source=notifications&email_token=AABDQEKNL7OCCUB237XF5WTQAYTU3A5CNFSM4IFTJ532YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2RIVAQ#issuecomment-513968770,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABDQEME5OO72YDIUYD6BVTQAYTU3ANCNFSM4IFTJ53Q
.

Hi erik,
I can run one region with freebayes using option -r; but when I run parallel, it still told me
Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index ERROR(freebayes): Could not SetRegion to 1:0..100000 Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index ERROR(freebayes): Could not SetRegion to 1:100000..200000 Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index ERROR(freebayes): Could not SetRegion to 1:200000..300000 Failed to load index for /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes. Rebuild samtools index ERROR(freebayes): Could not SetRegion to 1:300000..400000
I noticed the path to load index is strong. It is not point to my data, it point to freebayes. Is there sth wrong with my code?
freebayes-parallel <(fasta_generate_regions.py /N/dc2/projects/ngs/users/siwxu/database/10X/genome.fa 100000) 4 /N/dc2/projects/ngs/users/siwxu/tool/freebayes/bin/freebayes -f /N/dc2/projects/ngs/users/siwxu/database/10X/genome.fa /N/dc2/projects/ngs/users/siwxu/projects/scRNA/data/2/CD138plus/possorted_genome_bam.bam > /N/dc2/projects/ngs/users/siwxu/projects/scRNA/data/2/CD138plus/SNP2.vcf

I have figured out this issue.

How did you fix it?
On Thu, Jul 25, 2019, 23:54 SiwenX<EMAIL_ADDRESS>wrote:

Closed #553 https://github.com/ekg/freebayes/issues/553.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ekg/freebayes/issues/553?email_source=notifications&email_token=AABDQEK2B4HBB6PHKF4O6DTQBIOIRA5CNFSM4IFTJ532YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSWU42CY#event-2510933259,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABDQEMJBP35BMDVATFWWFTQBIOIRANCNFSM4IFTJ53Q
.

The format of freebayes-parallel should be like this freebayes-parallel <(fasta_generate_regions.py ref.fa.fai 100000) 36 \     -f ref.fa aln.bam >var.vcf
instead of freebayes-parallel <(fasta_generate_regions.py ref.fa.fai 100000) 36 \     freebayes -f ref.fa aln.bam >var.vcf


How to get the precise point-cloud models of the non-players?

Dear Carla Developers
Through lidar simulation, I got the cloud-point models of non-players in Carla. However, I found that the models in point cloud are too simple, the vehicles are simplified into rectangles, and pedestrians are simplified into cylinders. This simplified model is not suitable for training samples. I want to know how to get the accurate non-player point-cloud models.
Thank you!

Hi @YlugeR.
This is a duplicated question #423.

Dear @Marc Garcia Puig
I'm sorry for my duplicated question.In addtion, I have another question: how could I get the reflected intensity of lidar in the carla?

Also another duplicated :) #327


Fix typos

Hello,
This tiny PR will fix :

1 typo in content/projects/b2evolution.md
1 typo in content/projects/directus.md
1 typo in content/projects/troglio.md

Ciao! :robot:

Thank you 🙏


TestActorFeatures e2e test intermittent failure.

In what area(s)?

/area test-and-release
Actor failover tests are failing in the Windows CI pipeline. They are working without issue in the Linux e2e tests. We need to understand why and fix this test.
Expected Behavior
Actor tests should pass.
Actual Behavior
=== RUN   TestActorFeatures/Actor_reminder.
=== RUN   TestActorFeatures/Actor_timer.
=== RUN   TestActorFeatures/Actor_concurrency_same_actor_id.
=== RUN   TestActorFeatures/Actor_concurrency_different_actor_ids.
=== RUN   TestActorFeatures/Actor_fails_over_to_another_hostname.
=== RUN   TestActorFeatures/Actor_rebalance_to_another_hostname.
    actor_features_test.go:294:
        	Error Trace:	actor_features_test.go:294
        	Error:      	Received unexpected error:
        	            	Post "http://<IP_ADDRESS>:3000/test/testactorfeatures/1006Instance8/method/hostname": dial tcp <IP_ADDRESS>:3000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
        	Test:       	TestActorFeatures/Actor_rebalance_to_another_hostname.
=== RUN   TestActorFeatures/Get_actor_metadata
    actor_features_test.go:309:
        	Error Trace:	actor_features_test.go:309
        	Error:      	Received unexpected error:
        	            	Get "http://<IP_ADDRESS>:3000/test/metadata": dial tcp <IP_ADDRESS>:3000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
        	Test:       	TestActorFeatures/Get_actor_metadata
--- FAIL: TestActorFeatures (295.81s)
    --- PASS: TestActorFeatures/Actor_reminder. (20.87s)
    --- PASS: TestActorFeatures/Actor_timer. (25.68s)
    --- PASS: TestActorFeatures/Actor_concurrency_same_actor_id. (10.28s)
    --- PASS: TestActorFeatures/Actor_concurrency_different_actor_ids. (5.25s)
    --- PASS: TestActorFeatures/Actor_fails_over_to_another_hostname. (89.23s)
    --- FAIL: TestActorFeatures/Actor_rebalance_to_another_hostname. (42.04s)
    --- FAIL: TestActorFeatures/Get_actor_metadata (31.21s)

Steps to Reproduce the Problem
Reproduces easily with /ok-to-wintest. I have yet to be able to reproduce it locally.

After running the tests many times, this issue seems to be intermittent. It also has appeared at least once on Linux:
https://github.com/dapr/dapr/runs/1022512845?check_suite_focus=true

It looks like the test is trying to reach endpoints on the test container / dapr container before the Pod is ready or the webservers are responsive.

@wcs1only how often did you see this?

On windows, it fails more than it passes.
On linux, I've only seen it fail once.

Working on a patch to dump the logs on a e2e test failure to see if that shows us anything.

On a hunch, I upped the default TCP connect timeout values on windows. The tests have now passed 3x in a row: https://github.com/dapr/dapr/pull/2000
In at least one case, the test took in excess of 200s. Looking through the test history, I can see that the windows versions of these two tests are consistently taking longer than their linux counterparts. The default TCP connect timeout is 21s on Windows, which it seems we exceed with some consistency.
Now to deep dive and understand what this test is doing and why it is taking longer on windows.

On a hunch, I upped the default TCP connect timeout values on windows. The tests have now passed 3x in a row: #2000
In at least one case, the test took in excess of 200s. Looking through the test history, I can see that the windows versions of these two tests are consistently taking longer than their linux counterparts. The default TCP connect timeout is 21s on Windows, which it seems we exceed with some consistency.
Now to deep dive and understand what this test is doing and why it is taking longer on windows.

Or: do we care for 200s?

Reopening, because we're still getting the Linux failure observed. I have a hunch on that one (it looks like we're now beating the kafka config job because we've made the e2e-test-app build that much faster).

Finally getting a somewhat consistent repo. Have to tear down the whole namespace and run everything from scratch to get it to fail about half the time (or perhaps it was that I rebased on master).
When we fail, we have a completely empty action log in the actorapp.
=== RUN   TestActorActivation/Actor_deactivates_due_to_timeout.
getting logs, the current time is 2020-09-09 18:19:55.994633 -0700 PDT m=+52.526221921:
Logs:
[]

    actor_activation_test.go:121:
                Error Trace:    actor_activation_test.go:121
                Error:          Should be true
                Test:           TestActorActivation/Actor_deactivates_due_to_timeout.
=== RUN   TestActorActivation/Actor_does_not_deactivate_since_there_is_no_timeout.
Logs:
[]

    actor_activation_test.go:151:
                Error Trace:    actor_activation_test.go:151
                Error:          Should be true
                Test:           TestActorActivation/Actor_does_not_deactivate_since_there_is_no_timeout.
--- FAIL: TestActorActivation (40.32s)

Finally caught the daprd logs from a failed run.
time="2020-09-10T19:49:45.490102278Z" level=info msg="starting Dapr Runtime -- version edge -- commit v0.10.0-56-g98caa97" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490143281Z" level=info msg="log level set to: info" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490400997Z" level=info msg="metrics server started on :9090/" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.metrics type=log ver=edge
time="2020-09-10T19:49:45.490538305Z" level=info msg="loading default configuration" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490567207Z" level=info msg="kubernetes mode configured" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490576008Z" level=info msg="app id: actorapp" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490588408Z" level=info msg="mTLS enabled. creating sidecar authenticator" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.490750919Z" level=info msg="trust anchors and cert chain extracted successfully" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.security type=log ver=edge
time="2020-09-10T19:49:45.490761919Z" level=info msg="authenticator created" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.502055821Z" level=info msg="application protocol: http. waiting on port 3000.  This will block until the app is listening on that port." app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.520753082Z" level=info msg="application discovered on port 3000" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.524977345Z" level=info msg="application configuration loaded" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.525016547Z" level=info msg="Initialized name resolution to kubernetes" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.585921731Z" level=info msg="successful init for output binding test-topic (bindings.kafka)" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.586465565Z" level=warning msg="actors: state store must be present to initialize the actor runtime" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.actor type=log ver=edge
time="2020-09-10T19:49:45.586532369Z" level=warning msg="failed to init actors: state store does not support transactions which actors require to save state - please see https://github.com/dapr/docs" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.586597473Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-10T19:49:45.586616874Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-10T19:49:45.586654677Z" level=info msg="API gRPC server is running on port 50001" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.586680578Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-10T19:49:45.586692279Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-10T19:49:45.58670058Z" level=info msg="sending workload csr request to sentry" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-10T19:49:45.606218892Z" level=info msg="certificate signed successfully" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-10T19:49:45.606398704Z" level=info msg="internal gRPC server is running on port 50002" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.606557213Z" level=info msg="enabled cors http middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.http type=log ver=edge
time="2020-09-10T19:49:45.606577915Z" level=info msg="enabled metrics http middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.http type=log ver=edge
time="2020-09-10T19:49:45.606587515Z" level=info msg="enabled tracing http middleware" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.http type=log ver=edge
time="2020-09-10T19:49:45.606600516Z" level=info msg="http server is running on port 3500" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.606613217Z" level=info msg="dapr initialized. Status: Running. Init Elapsed<PHONE_NUMBER>0000001ms" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:49:45.606786028Z" level=info msg="starting workload cert expiry watcher. current cert expires on: 2020-09-11 20:04:45 +0000 UTC" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-10T19:51:01.896652819Z" level=info msg="dapr shutting down. Waiting 5 seconds to finish outstanding operations" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
time="2020-09-10T19:51:01.896689421Z" level=info msg="stop command issued. Shutting down all operations" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime type=log ver=edge
rpc error: code = Unknown desc = Error: No such container: ed3ed8c48a4551dc41abb4c7457434861548e6b66e9ba0723f3f4c507ab90f75

And the app logs:
2020/09/10 19:49:44 Actor App - listening on http://localhost:3000
2020/09/10 19:49:45 Processing dapr request for /dapr/config
2020/09/10 19:51:01 indexHandler is called
2020/09/10 19:51:01 Processing POST test request for /test/testactor/100/method/actormethod
2020/09/10 19:51:01 Invoking http://localhost:3500/v1.0/actors/testactor/100/method/actormethod
2020/09/10 19:51:01 Processing dapr request for /test/logs
2020/09/10 19:51:01 Processing POST test request for /test/testactor/5a37b141-9952-4d19-ba5a-626dfd70a0aa/method/actormethod
2020/09/10 19:51:01 Invoking http://localhost:3500/v1.0/actors/testactor/5a37b141-9952-4d19-ba5a-626dfd70a0aa/method/actormethod
2020/09/10 19:51:01 Processing dapr request for /test/logs

This feels like our smoking gun:
time="2020-09-10T19:49:45.586465565Z" level=warning msg="actors: state store must be present to initialize the actor runtime" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.actor type=log ver=edge

This feels like our smoking gun:
time="2020-09-10T19:49:45.586465565Z" level=warning msg="actors: state store must be present to initialize the actor runtime" app_id=actorapp instance=actorapp-fd85bf985-vlb6n scope=dapr.runtime.actor type=log ver=edge

Indeed. This means the Redis component is not applied in the cluster by the time the sidecar is starting.

kubectl get pods -n dapr-tests
NAME                                     READY   STATUS      RESTARTS   AGE
dapr-dashboard-6c6c45df7b-xw5sj          1/1     Running     0          47s
dapr-kafka-0                             1/1     Running     2          3m30s
dapr-kafka-config-f68c87c2-zlzpd         0/1     Completed   0          3m30s
dapr-kafka-zookeeper-0                   1/1     Running     0          3m30s
dapr-kafka-zookeeper-1                   1/1     Running     0          3m3s
dapr-kafka-zookeeper-2                   1/1     Running     0          2m16s
dapr-operator-6f98c6686b-qkws5           1/1     Running     0          47s
dapr-placement-fddb6b5-qvs98             1/1     Running     0          47s
dapr-redis-master-0                      1/1     Running     0          3m39s
dapr-sentry-79875f85bb-8t7t9             1/1     Running     0          47s
dapr-sidecar-injector-69f89d74d5-4kqc6   1/1     Running     0          47s

kubectl get pods -n dapr-tests
NAME                                     READY   STATUS      RESTARTS   AGE
dapr-dashboard-6c6c45df7b-xw5sj          1/1     Running     0          47s
dapr-kafka-0                             1/1     Running     2          3m30s
dapr-kafka-config-f68c87c2-zlzpd         0/1     Completed   0          3m30s
dapr-kafka-zookeeper-0                   1/1     Running     0          3m30s
dapr-kafka-zookeeper-1                   1/1     Running     0          3m3s
dapr-kafka-zookeeper-2                   1/1     Running     0          2m16s
dapr-operator-6f98c6686b-qkws5           1/1     Running     0          47s
dapr-placement-fddb6b5-qvs98             1/1     Running     0          47s
dapr-redis-master-0                      1/1     Running     0          3m39s
dapr-sentry-79875f85bb-8t7t9             1/1     Running     0          47s
dapr-sidecar-injector-69f89d74d5-4kqc6   1/1     Running     0          47s

I meant the component, not the pod.

# Show the installed components
kubectl get components --namespace dapr-tests
NAME         AGE
messagebus   1s
statestore   1s
test-topic   1s

Subsequent runs of the same test on the same cluster and namespace, do pass. So whatever this condition is it clears by the next run.

From just before the test run:
# Show the installed components
kubectl get components --namespace dapr-tests
NAME         AGE
messagebus   1s
statestore   1s
test-topic   1s

The condition is very clear: the component is not applied when the sidecar comes up.

The condition is very clear: the component is not applied when the sidecar comes up.

Does not the above indicate that it was applied before the start of the sidecar?

The condition is very clear: the component is not applied when the sidecar comes up.

Does not the above indicate that it was applied before the start of the sidecar?

Not completely.
You can reliably reproduce the error code from the sidecar by starting it with the component missing from the cluster.

Yes, but the get components command indicates that the component was not missing from the cluster? That was run prior to the start of the tests.

There's something I suspect may cause this. I've added a generally useful log in this PR to let users know when a component was successfully loaded.
We now need to get the same logs in a failure case with this latest change.

Got a repro with the new log:
time="2020-09-11T00:22:09.132252712Z" level=info msg="starting Dapr Runtime -- version edge -- commit v0.10.0-58-gd762a23" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132296312Z" level=info msg="log level set to: info" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132492813Z" level=info msg="metrics server started on :9090/" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.metrics type=log ver=edge
time="2020-09-11T00:22:09.132671713Z" level=info msg="loading default configuration" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132712814Z" level=info msg="kubernetes mode configured" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132724214Z" level=info msg="app id: actorapp" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132745414Z" level=info msg="mTLS enabled. creating sidecar authenticator" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132921514Z" level=info msg="trust anchors and cert chain extracted successfully" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.security type=log ver=edge
time="2020-09-11T00:22:09.132945314Z" level=info msg="authenticator created" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.147878357Z" level=info msg="application protocol: http. waiting on port 3000.  This will block until the app is listening on that port." app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.1628036Z" level=info msg="application discovered on port 3000" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.163910103Z" level=info msg="application configuration loaded" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.163938503Z" level=info msg="Initialized name resolution to kubernetes" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.165157206Z" level=info msg="component loaded. name: kubernetes, type: secretstores.kubernetes" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.192847186Z" level=info msg="component loaded. name: messagebus, type: pubsub.redis" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.209723834Z" level=info msg="successful init for output binding test-topic (bindings.kafka)" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210138035Z" level=info msg="component loaded. name: test-topic, type: bindings.kafka" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210341636Z" level=warning msg="actors: state store must be present to initialize the actor runtime" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.actor type=log ver=edge
time="2020-09-11T00:22:09.210393536Z" level=warning msg="failed to init actors: state store does not support transactions which actors require to save state - please see https://github.com/dapr/docs" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210458636Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-11T00:22:09.210483136Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-11T00:22:09.210532836Z" level=info msg="API gRPC server is running on port 50001" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210571736Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.210589536Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.210600136Z" level=info msg="sending workload csr request to sentry" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.216379653Z" level=info msg="component loaded. name: statestore, type: state.redis" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.2329418Z" level=info msg="certificate signed successfully" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.233115401Z" level=info msg="internal gRPC server is running on port 50002" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233278501Z" level=info msg="enabled cors http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233297301Z" level=info msg="enabled metrics http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233306501Z" level=info msg="enabled tracing http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233319801Z" level=info msg="http server is running on port 3500" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233332002Z" level=info msg="dapr initialized. Status: Running. Init Elapsed 100.624187ms" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233499802Z" level=info msg="starting workload cert expiry watcher. current cert expires on: 2020-09-12 00:37:09 +0000 UTC" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:23:34.479815823Z" level=info msg="dapr shutting down. Waiting 5 seconds to finish outstanding operations" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:23:34.479855723Z" level=info msg="stop command issued. Shutting down all operations" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
rpc error: code = Unknown desc = Error: No such container: c7bc5d9940fc32cfc7bfd5509176cfe20e715ac330a48f32f9482fff4b959ff1

Got a repro with the new log:
time="2020-09-11T00:22:09.132252712Z" level=info msg="starting Dapr Runtime -- version edge -- commit v0.10.0-58-gd762a23" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132296312Z" level=info msg="log level set to: info" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132492813Z" level=info msg="metrics server started on :9090/" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.metrics type=log ver=edge
time="2020-09-11T00:22:09.132671713Z" level=info msg="loading default configuration" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132712814Z" level=info msg="kubernetes mode configured" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132724214Z" level=info msg="app id: actorapp" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132745414Z" level=info msg="mTLS enabled. creating sidecar authenticator" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.132921514Z" level=info msg="trust anchors and cert chain extracted successfully" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.security type=log ver=edge
time="2020-09-11T00:22:09.132945314Z" level=info msg="authenticator created" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.147878357Z" level=info msg="application protocol: http. waiting on port 3000.  This will block until the app is listening on that port." app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.1628036Z" level=info msg="application discovered on port 3000" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.163910103Z" level=info msg="application configuration loaded" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.163938503Z" level=info msg="Initialized name resolution to kubernetes" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.165157206Z" level=info msg="component loaded. name: kubernetes, type: secretstores.kubernetes" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.192847186Z" level=info msg="component loaded. name: messagebus, type: pubsub.redis" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.209723834Z" level=info msg="successful init for output binding test-topic (bindings.kafka)" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210138035Z" level=info msg="component loaded. name: test-topic, type: bindings.kafka" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210341636Z" level=warning msg="actors: state store must be present to initialize the actor runtime" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.actor type=log ver=edge
time="2020-09-11T00:22:09.210393536Z" level=warning msg="failed to init actors: state store does not support transactions which actors require to save state - please see https://github.com/dapr/docs" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210458636Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-11T00:22:09.210483136Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.api type=log ver=edge
time="2020-09-11T00:22:09.210532836Z" level=info msg="API gRPC server is running on port 50001" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.210571736Z" level=info msg="enabled gRPC tracing middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.210589536Z" level=info msg="enabled gRPC metrics middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.210600136Z" level=info msg="sending workload csr request to sentry" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.216379653Z" level=info msg="component loaded. name: statestore, type: state.redis" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.2329418Z" level=info msg="certificate signed successfully" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:22:09.233115401Z" level=info msg="internal gRPC server is running on port 50002" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233278501Z" level=info msg="enabled cors http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233297301Z" level=info msg="enabled metrics http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233306501Z" level=info msg="enabled tracing http middleware" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.http type=log ver=edge
time="2020-09-11T00:22:09.233319801Z" level=info msg="http server is running on port 3500" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233332002Z" level=info msg="dapr initialized. Status: Running. Init Elapsed 100.624187ms" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:22:09.233499802Z" level=info msg="starting workload cert expiry watcher. current cert expires on: 2020-09-12 00:37:09 +0000 UTC" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime.grpc.internal type=log ver=edge
time="2020-09-11T00:23:34.479815823Z" level=info msg="dapr shutting down. Waiting 5 seconds to finish outstanding operations" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
time="2020-09-11T00:23:34.479855723Z" level=info msg="stop command issued. Shutting down all operations" app_id=actorapp instance=actorapp-fd85bf985-dp9jr scope=dapr.runtime type=log ver=edge
rpc error: code = Unknown desc = Error: No such container: c7bc5d9940fc32cfc7bfd5509176cfe20e715ac330a48f32f9482fff4b959ff1

This validates what I suspected. The state store is loaded after the actors pass init.


Reconnection errors

Hello,
First of all, thank you and congratulation for the great KNX library !
I'm facing an issue to reconnect after loosing the connection to the KNX IP Interface in tunnel mode. If I disconnect the KNX Gateway from the network, the status of the Client changes to disconnected but after plugging back the Gateway to the network and calling the KNXUltimateClient.Connect() function again, i keep getting the following errors :
[error] 1/12/2024, 3:37:41 PM.847 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running

[error] 1/12/2024, 3:37:47 PM.168 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running

Log file :
log.txt
I would really appreciate your support to solve this problem.
Thanks a lot,
Nicolas

Hi
I’m on holiday now and cannot check. Please try to close the connection first with KNXUltimateClient.close() or KNXUltimateClient.disconnect ().
I cannot recall yet the right one. The reconnection shouldn’t really an issue for the library.
Or try to setup again the connection from scratch, by instantiating the lobrary with another “new” call.

Hi
have you tried to close and disconnect?

Thanks.

Hi
Here https://github.com/Supergiovane/node-red-contrib-knx-ultimate/blob/master/nodes/knxUltimate-config.js there is a fully working code.
What it does, is to call .Disconnect(), then instantiate again the connection with node.knxConnection = new knx.KNXClient(node.knxConnectionProperties); where node.knxConnectionProperties contains all the parameters to pass to the KNXClient.

Hi,
I'm basically doing the same logic, you see attached the source code of the two functions that handles the connection.
checkAndTryConnectWithKnx checks the connection state and repeat the connect by calling the function initKNXConnection.
source.txt
I attach the complete log here as well.
server-out.log
I performed a few connect/disconnect and logged the results.
See below the times and lines in the log where the events occur.
After each new connection, the connection is established, but all previous instances keep of creating errors.
I have also tried to set KNXUltimateClient = null before creating a new instance without succes.
See below the details :

Disconnect : 9:48 (Line 199)

2 ) Connect : 9:52 (Line 340)
Connection is etablished but the previous instance keeps sending errors :
Error at 9:54 at line 4707 (KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running)
[error] 1/20/2024, 9:54:40 AM.794 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1
KNX Error Error: Connection dead with <IP_ADDRESS>:3671
******************   KNX Disconnected <IP_ADDRESS>:3671 Connection dead with <IP_ADDRESS>:3671

Disconnect : 9:57 at line 4818

Connect : 10:01 at line 5000

Connection is etablished but the two previous instances keeps sending errors :
[error] 1/20/2024, 10:03:21 AM.219 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
[error] 1/20/2024, 10:03:30 AM.864 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
[error] 1/20/2024, 10:03:31 AM.219 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1
KNX Error Error: Connection dead with <IP_ADDRESS>:3671
******************   KNX Disconnected <IP_ADDRESS>:3671 Connection dead with <IP_ADDRESS>:3671
[error] 1/20/2024, 10:03:40 AM.862 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1

Disconnect : 10:07 at line 9705

Connect : 10:12 at line 10075

Connection is etablished but the three previous instances keeps sending errors :
[error] 1/20/2024, 10:14:21 AM.238 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
[error] 1/20/2024, 10:14:21 AM.289 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
[error] 1/20/2024, 10:14:30 AM.950 KNXUltimate-KNXEngine: Sending KNX packet: Send UDP Catch error: Not running object seqCounter:undefined
KNX Error Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
[error] 1/20/2024, 10:14:31 AM.237 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1
KNX Error Error: Connection dead with <IP_ADDRESS>:3671
[error] 1/20/2024, 10:14:31 AM.288 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1
KNX Error Error: Connection dead with <IP_ADDRESS>:3671
[error] 1/20/2024, 10:14:40 AM.949 KNXUltimate-KNXEngine: KNXClient: getConnectionStatus Timeout 0 out of 1
KNX Error Error: Connection dead with <IP_ADDRESS>:3671
Thank you in advance for your support.
Best Regards,

I’ll return to office monday, but in the meantime, i saw this:
knxUltimateClient.Disconnect();
                initKNXConnection(true, true);

.Disconnect is async
You sbould call the initKNXConnection in the “disconnect” event, not directly below the .disconnect() command.

Hi,
Actually the logs i sent before was without the Disconnect();
When i add the Disconnect() before the initKNXConnection, there is an additional event that says it is already disconnected :
knxUltimateClient Connect Error Error: KNX Socket is already disconnected     at KNXClient.Disconnect (/projects/hv_server/server/utils/knx/KNXClient.cjs:656:13)     at Timeout.checkAndTryConnectWithKnx [as _onTimeout] (file:///projects/hv_server/server/utils/socketio/index.js:607:35)
And then it does not reconnect.
See complete log attached.
log (2).txt

Hi
have you tried to put the initKNXConnection, into the "disconnected" event?
You also need to remove all listeners you created, prior to instantiating a new instance, using the command KNXClient..removeAllListeners();
The code i pointed you out to, is something like this:
KNXClient.removeAllListeners();
KNXClient = new knx.KNXClient({...JSONobject with the connection properties});
KNXClient.on(knx.KNXClient.KNXClientEvents.disconnected, (info) => {
    if (KNXClient !== null) KNXClient.Disconnect();
 });

When calling .Disconnect(), all timers, watchdog and probes are stopped and destroyed.

Hi,
Yes, I added both now and previous instances continue to send these errors :

Hi, anything else I should check to fix this issue ? Thanks

Hi
There should be something in you code, not allowing the instance to be nullified.
You could try to downloadthe latest knxultimate version, but you should revise your code. I cannot help muchfrom here.

Hi
have you solved the issue?

If you wish, i can take a look at your code...

Let me see your code. I may be able to help you.

Sure, thanks a lot. Tomorrow I can provide you a remote access in private so you can view the code.

Hi,
Can we plan to do this ? Thanks a lot

Hi
I'm out of home!! We can try Monday!

OK, thank you, let me know when you are available.

Hi,
Are you still willing to take a look at the code ?
When would you be available ?
Thanks a lot

Ops... Sorry, i forgot that.
Can i access your code now?

Hi,
You can connect on AnyDesk 689892438

I'm downloading anydesk...

sorry i don't know whats going on with the keyboard. If you want i can reboot.

Hi,
have you had issues again?
I can connect to you, at about 14.30.' o clock.
I will use again the anydesk number 689892438

i did not make any disconnect because it already shows some errors after startup, so you can see it first.
OK perfect.

Hi,
I'm ready.


Add LogModule configuration options for the Operator

Description
K8S-10533
(Re)introduce the LogModule spec in the DynaKube.
Only adds the type and update/generate the necessary files (api-ref, deepcopy, crd)
How can this be tested?
Check the naming/descriptions.
Run the api-ref/deepcopy/crd generation locally, if you really want to 😅

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

Project coverage is 64.85%. Comparing base (412d14c) to head (b2a0b22).

Files with missing lines
Patch %
Lines

pkg/api/v1beta3/dynakube/zz_generated.deepcopy.go
11.62%
33 Missing and 5 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3760      +/-   ##
==========================================
- Coverage   64.96%   64.85%   -0.11%
==========================================
  Files         387      387
  Lines       21170    21213      +43
==========================================
+ Hits        13753    13758       +5
- Misses       6100     6133      +33
- Partials     1317     1322       +5

Flag
Coverage Δ

unittests
64.85% <11.62%> (-0.11%)
:arrow_down:

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

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


Remove-SPOContentTypeFromList: Not Removing CT when List created on SubSite

This was reported before out in PnP but it was never commented on and as eventually closed. It also didn't mention that the issue occurs on subsites.
$web = Get-SPOWeb -Identity "Subweb"
New-SPOList -Title "Test" -Url "Test" -Template "GenericList" -Web $web
Add-SPOContentTypeToList -List "Test" -ContentType "Issue" -DefaultContentType -Web $web
Remove-SPOContentTypeFromList -List "Test" -ContentType "Item" -Web $web

The Content Type is not removed.

I just checked with the latest version of the cmdlets and cannot reproduce this issue. I will close this issue, but if you feel the issue is still valid, do not hesitate to reopen it.


Localized doc out of date strings

What's changed, or what was fixed?

Adds a widget to identify an article is out of date

Target Live Date: ASAP

[ ] This has been reviewed and approved by (NAME)
[X] I have run gulp test locally and all tests pass.
[X] I have added the appropriate type-something label.
[X] I've staged the site and manually verified that my content displays correctly.

Whoops!
There were 4 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/resources/widgets.md#L90 - '

:tada: This has been pushed live to https://developers.google.com/web/


Add API for pod status, start, stop, and kill

This was originally going to include Init() as well, but that has spiralled off into a lot more work, so I'm going to get this out for review without it.

@rhatdan What do you think about making each start/stop/kill independent, and returning a map[string]error - mapping container ID to error encountered when starting/stopping. We don't necessarily need to use threads for this - we can just continue with the loop if an error is encountered

Note to self: need to add ability to handle container dependencies in Start. As of right now, we'd need to call it twice in a CRI-O style pod, once to make sure the infra container started, once to get every other container running.

I am fine with saving the error states and returning a list of errors.

Came to the conclusion that dependencies issues are better handled in Init(). There are still issues with that, but it matches what we're doing for individual containers

@rhatdan Updated to run operations in parallel, PTAL

Well, not in parallel, but independently

Good catch @rhatdan - fixed

@rh-atomic-bot r+


Add getPolicyIDFromNavigationState method

Details

This PR introduces a new method getPolicyIDFromNavigationState. Thanks to this method, it's possible to get the currently selected policyID without any delay.
App behaviour after fixing:
https://github.com/Expensify/App/assets/47774969/e23414d8-f88c-450f-8c76-afa7461ea21d
Fixed Issues

$ https://github.com/Expensify/App/issues/38281
PROPOSAL: N/A
Tests

[ ] Verify that no errors appear in the JS console

Select any workspace from the switcher.
Open Account Settings from the bottom tab.
Open the workspaces list.
Open a workspace that contains members who aren't added to the currently selected workspace.
Open the workspace members list.
Click on the member who doesn't belong to the currently selected workspace
Click on the message button.
Verify that transition between workspaces wasn't delayed.

Offline tests

N/A
QA Steps

Same as tests
PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/47774969/f5020475-a6b6-42d6-9f1a-c9542c5dabbc

MacOS: Desktop

https://github.com/Expensify/App/assets/47774969/81d7e65b-bdc1-418a-8f82-3a49f2cbeacc

@techievivek Could you take a look at it when you have time?

Reviewer checklist is done by @parasharrajat not sure why it is failing. Also, not an emergency merge, all tests were green.

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/techievivek in version: 1.4.59-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


"Detect connection quality automatically" = No RemoteFX

If I set "Detect connection quality automatically" on MSTSC, RemoteFX does not engage.
When connecting to Windows RDP, it does engage with the same settings.

Dup of #843


add MESG endpoint to the service container

close #105

this one is quite easy but unfortunately the communication between the core and the service doesn't work.
The container cannot have access to the host.
from what I looked it's not supported by swarm
https://github.com/moby/moby/issues/25873
https://github.com/docker/swarmkit/issues/989
I see two solutions for this :

We remove swarm and the docker services and we just create normal containers that all have access to the same network 👎
We might use a file with an IPC / socket connection like that it's a file to share between the host and the docker service and this is definitely possible we just have to see if we can use grpc with an unix socket or something like that

Any ideas ?

for information, if I use a system like ngrok to bind your localhost to outside, my service can reach the api and submit events with no problems, it's really just the localhost

That's not cool...
I'm pretty sure gRPC works fine over socket. It uses default net lib that are also compatible with socket.

Created a socket that is stored in the ~/.mesg/server.sock file, everything is fine if we use it directly but not inside docker, the socket is accessible in the container but we cannot dial anything
Maybe a permission problem, a folder sharing problem or something like that
Any idea ?

problem with the rebase so new pull request https://github.com/mesg-foundation/core/pull/117


how do I run real-time development locally

Hello, how do I run real-time development locally?
do not need to build and upload to the device. You can directly debug vscode in windows and see the web page for interactive development 。

Hi,
I don't use any local real-time development feature like in angular, react or vuejs. Its plain written HTML5 in combination with Bootstrap and jquery. Some page content is injected by the target itself, some other is requested via websocket or REST API.
Jumping on e.g. vuejs is not an option right now considering the 4 MB modules, because the filesystem has only 150000h byte for the filesystem itself.
For the development you can use the online editor provided via webserver, see menu "Development -> File Editor". Use CTRL + S to save your changes.


Can't lock to launcher Ubuntu

When I try to lock the Javcoin client to the launcher on Ubuntu, it disappears when I close it :(

Nevermind, it seems to be working now :)


Edge - update configuration page

PR description
The documentation updated for Edge configuration page. Added edge and edge-pe for generating_config_pages.
Link checker
The links will be checked by the build agent automatically once you create or update your PR.
You can use the following command to check the broken links locally.
docker run --rm -it --network=host --name=linkchecker ghcr.io/linkchecker/linkchecker --check-extern --no-warnings http://<IP_ADDRESS>:4000/

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


Folders

I have some folders in my dotfiles, like .ssh, .tmux, .config and so on. Right now these are ignored, and I have to manually recreate them in $HOME, after which dit works fine. Except of course if there are subdirectories...
Would it be possible to simply create symlinks for the directories as well?

Pushed dit 0.3 about ten minutes ago, which fixes the issue. See issue #4 for discussion.
(It should at any rate - do folders still not symlink in 0.3?)

Okidoki! Seems to work fine, but I don't have a chance to check right now. I rehashed, but a proper test would have to include a fresh install.
Is there any reason to create an issue about the error messages "failed to symlink" when the symlinks are already generated and working just fine? I assume you know about them, but they're only a problem if you're allergic to errors.

Yeah, that's something I need to work on. I'll open an issue for that - I have a line that's supposed to prevent attempts to symlink files that are already symlinked to the working directory but it's clearly not working as intended.
return if (File.symlink?(b) && File.readlink(b).include(Dir.getwd))


Why remove pre-trained word embedding?

Hi jiegzhan,
Thanks for contributing this great project. I saw you removed pre-trained word embedding? Did it make accuracy drop down?

I've use pre-trained word embedding which from wiki, the score is 66.85%.


fix: color by expression for pseudo dimensions

Fixes an issue where the color by expression (text and/or background) for a measure would not be properly applied if the PVT had pseudo dimensions.
If would happen if the following condition was true:

Pseudo dimensions where not on the last row or column
One or more measures before a measure with color by expression can not have color by expression.

The fix
The old logic to get measure info index via layoutService.getMeasureInfoIndexFromCellIndex() would only work IF the pseudo dimensions where leaf nodes in either the left or top grid. The reason is that  the number of pseudo dimension nodes might not evenly match the number of measure nodes.
To get the correct measure info index we need to look at the dimension nodes coming from qLeft and qTop in the pivot data pages. They have a qElemNo number which will match the index of the measure info. But this means that the DataCell component needs to resolve the measure info index at rendering time from the dimension cells in TopDimensionData and LeftDimensionData.
Before/After
In the screenshots below there are 3 measures called =0, =1 and =2 where =2 have color by expression set to green(). Notice how measure cells for =2 does not get the correct background color in the before screenshot.
Before:

After:

tbh, it took me a while to understand this PR (or maybe i'm not sure if i understood it fully yet), but code and idea looks solid.
Just a side note on getMeasureInfoIndexFromCellIndex(...) where also you have comment on, maybe we can have a unified way of finding index info for measures in future in a hook?

Yeah maybe, I did not really wanted to restructure both useDataModel and useColumnWidth for a case that was already working for them. But in the long term the current solution might be a bit confussing.


Unable to add double quotes to HTTPS monitor receive string

Environment

Application Services Version: 3.40
BIG-IP Version: 15.1.10

Summary
Unable to add double quotes into monitor
Steps To Reproduce
Steps to reproduce the behavior:
I have this declaration for a monitor:
"check_monitor": {
"class": "Monitor",
"monitorType": "https"
"interval": 5,
"timeout": 16,
"send": "GET /site/health HTTP/1.1\r\nHost: myhost.example.com\r\nConnection: Close: \r\n\r\n",
"receive": ""status":"UP"",
"clientTLS": {"bigip": "/Common/Shared/mysslprofile"}
},
I am trying to set receive string to: "status": "UP"
If I try to single escape the quotes, I get: status: UP
If I try to double-escape the quotes, I get a 500 error from app svcs.
How do I properly escape the quotes in my declaration so I can have them appear in my monitor?

By the way I notice you are missing a comma after "monitorType": "https".
This example below seems to accomplish what you are looking for.
{
  "class": "ADC",
  "schemaVersion": "3.37.0",
  "controls": {
    "class": "Controls",
    "trace": true,
    "logLevel": "debug",
    "traceResponse": true
  },
  "Tenant": {
    "class": "Tenant",
    "Application": {
      "class": "Application",
      "check_monitor": {
        "class": "Monitor",
        "monitorType": "https",
        "interval": 5,
        "timeout": 16,
        "clientTLS": {
          "bigip": "/Common/serverssl"
        },
        "send": "GET /site/health HTTP/1.1\r\nHost: myhost.example.com\r\nConnection: Close: \r\n\r\n",
        "receive": "\\\"status\\\": \\\"UP\\\""
      }
    }
  }
}

The triple-escape worked, thank you!

@pedley-f5 While it is not ideal, if we change the current escaping behavior now, we are likely to break some user's configurations. Is the current behavior and workaround proposed by @RobCupples acceptable for you?

Yes! Actually we deployed that workaround awhile ago and are in good shape.
On Thu, Jan 11, 2024, 15:27 Daniel Stokes @.***> wrote:

@pedley-f5 https://github.com/pedley-f5 While it is not ideal, if we
change the current escaping behavior now, we are likely to break some
user's configurations. Is the current behavior and workaround proposed by
@RobCupples https://github.com/RobCupples acceptable for you?
—
Reply to this email directly, view it on GitHub
https://github.com/F5Networks/f5-appsvcs-extension/issues/773#issuecomment-1888068859,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKCJLUB45GQZSWBLNGCLBBDYOBRNRAVCNFSM6AAAAAA6V6FZ66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGA3DQOBVHE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Include a deep link to AkamaiProperty nodes to the console

Expand the deep link to property config nodes in the graph.

#56

Completed and merged.


fix #1455 __newReference设置成不可枚举

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

The PR fulfills these requirements:

[ ] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[ ] All tests are passing
[ ] New/updated tests are included

解决 #1455


Parameter Question

How are you?
First of all, thank you for the open source.
I wonder if there is a performance comparison with Python during the practice.

Also, I am not sure about the functions of the above parameters in the picture among the Regression parts in the Tutorial.
I would like to ask you what these parameters are actually used in Python and if RNG is the Random Number Generator.
I'm sure you're busy, but I'd appreciate it if you could answer the questions.
Have a good day and thank you again for the good code release. :D

I'm not sure what Python library you are comparing to? If you mean scikit-learn, then the LinearSGDTrainer for regression models is most similar to this one - https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.SGDRegressor.html. Tribuo's allows you to choose the gradient descent algorithm while scikit-learn's has regularisation support. As Tribuo allows you to supply a gradient optimizer then some of the parameters in the scikit-learn implementation live on Tribuo's optimizers (e.g. learning rate, learning rate schedule, parameter averaging etc). The epochs parameter in Tribuo is the same as max_iters in scikit-learn. The logging interval is Tribuo specific, the RNG seed is the seed used for the random number generator, which is roughly equivalent to scikit-learn's random_state argument.
The parameters are described in the Javadoc for that class - https://tribuo.org/learn/4.0/javadoc/org/tribuo/regression/sgd/linear/LinearSGDTrainer.html#LinearSGDTrainer-org.tribuo.regression.sgd.RegressionObjective-org.tribuo.math.StochasticGradientOptimiser-int-int-int-long- It's always worth checking the Javadoc, it's fairly complete and has references to the academic papers.

Thank you, I want to compare to Tribuo and python library.
So I want to know same parameter value and environment.
For example... Which is faster or accurate... No matter what you use the library in python.
I just know What kind of code you use that when you show on tutorial.
Always appreciate your answer.
Spelling and grammar may be strange because it is not an English-speaking country.
Although Thank for your answer.
Have a nice day. 😀😀

There are lots of python libraries which perform linear regression, so without picking a specific one it's difficult to know how to make a useful comparison. Faster is moderately objective (though still hardware dependent), but more accurate will depend on the dataset and hyperparameters chosen. Machine Learning has several "No Free Lunch" theorems which state that it's not possible for one learning algorithm (or hyperparameter set) to be universally better than all others for all datasets.


ENH: Wrap CompositeTransform for float32 parameters

For the use case of a float32 displacement vector field.

Re: https://discourse.itk.org/t/itk-python-image-of-itk-d-vectors-for-composite-transform/5122

Build failing with warning message:
itkCompositeTransform: warning(4): ITK type not wrapped, or currently not known: itk::MultiTransform< float, 2 >

I amended it with addition for MultiTransform.


TypeError: Cannot read property 'id' of undefined

with<EMAIL_ADDRESS>on OSX
github token and clubhouse tokens previously saved in ~/.github-clubhouse
$ gh2ch https://github.com/EtherCasts/state-of-the-dapps/issues/24 state-of-the-dapps
TypeError: Cannot read property 'id' of undefined
    at _callee$ (/Users/mids/.node/lib/node_modules/github-clubhouse/lib/index.js:46:43)
    at tryCatch (/Users/mids/.node/lib/node_modules/github-clubhouse/node_modules/regenerator-runtime/runtime.js:64:40)
    at Generator.invoke [as _invoke] (/Users/mids/.node/lib/node_modules/github-clubhouse/node_modules/regenerator-runtime/runtime.js:355:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/mids/.node/lib/node_modules/github-clubhouse/node_modules/regenerator-runtime/runtime.js:116:21)
    at step (/Users/mids/.node/lib/node_modules/github-clubhouse/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/mids/.node/lib/node_modules/github-clubhouse/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13

Turns out this is because I used the name state-of-the-dapps from the URL, rather than the human name State of the Dapps (which includes spaces). After using the human name it worked.


Fixed the problem that occurs when using multiple plug-ins

Summary
Fix #20

When using multiple plugins, the instance of PluginPass will be newly updated and the instance of BabelFile will be reused,
so we fixed it accordingly.
Add test about using multi plugins

Test
I know the cause of the test failure in jest running in parallel
Related to this issue #19
$ yarn test
yarn run v1.19.0
$ jest
(node:6321) ExperimentalWarning: The fs.promises API is experimental
(node:6322) ExperimentalWarning: The fs.promises API is experimental
 PASS  src/__tests__/error.test.ts
 FAIL  src/__tests__/basic.test.ts
  ● addUDFHelper › basic › multi plugins

    TypeError: unknown: Cannot read property 'body' of undefined

      43 |       const exportNode = path.get(iExportPath) as NodePath;
      44 |       const importPaths = iImportPaths.map((p) => path.get(p));
    > 45 |       const importBindingRefs = iImportBindingsReferences.map((p) => path.get(p));
         |                                                                           ^
      46 |
      47 |       const declar = exportNode.get('declaration') as NodePath;
      48 |       if (currentId.type === 'Identifier') {

      at NodePath._getKey (node_modules/@babel/traverse/lib/path/family.js:178:25)
      at NodePath.get (node_modules/@babel/traverse/lib/path/family.js:170:17)
      at NodePath._getPattern (node_modules/@babel/traverse/lib/path/family.js:210:21)
      at NodePath.get (node_modules/@babel/traverse/lib/path/family.js:172:17)
      at Program.iImportBindingsReferences.map (src/builder/plugins/ProgramBuild.ts:45:75)
          at Array.map (<anonymous>)
      at Program (src/builder/plugins/ProgramBuild.ts:45:59)
      at NodePath._call (node_modules/@babel/traverse/lib/path/context.js:55:20)
      at NodePath.call (node_modules/@babel/traverse/lib/path/context.js:42:17)
      at NodePath.visit (node_modules/@babel/traverse/lib/path/context.js:90:31)
      at TraversalContext.visitQueue (node_modules/@babel/traverse/lib/context.js:112:16)
      at TraversalContext.visitSingle (node_modules/@babel/traverse/lib/context.js:84:19)
      at TraversalContext.visit (node_modules/@babel/traverse/lib/context.js:140:19)
      at Function.traverse.node (node_modules/@babel/traverse/lib/index.js:84:17)
      at Object.traverse [as default] (node_modules/@babel/traverse/lib/index.js:66:12)
      at Object.ProgramBuild (src/builder/plugins/ProgramBuild.ts:132:11)
      at Object.build (src/builder/index.ts:71:9)
      at Object.buildProgram (src/builder/index.ts:100:27)
      at File.addUDFHelper (src/core_ext/file.ts:42:38)
      at File.addUDFHelper (src/core_ext/file.ts:39:30)
      at programFuncs (src/__tests__/basic.test.ts:49:44)
      at PluginPass.Program (src/__tests__/printer/plugin.ts:22:11)
      at newFn (node_modules/@babel/traverse/lib/visitors.js:179:21)
      at NodePath._call (node_modules/@babel/traverse/lib/path/context.js:55:20)
      at NodePath.call (node_modules/@babel/traverse/lib/path/context.js:42:17)
      at NodePath.visit (node_modules/@babel/traverse/lib/path/context.js:90:31)
      at TraversalContext.visitQueue (node_modules/@babel/traverse/lib/context.js:112:16)
      at TraversalContext.visitSingle (node_modules/@babel/traverse/lib/context.js:84:19)
      at TraversalContext.visit (node_modules/@babel/traverse/lib/context.js:140:19)
      at Function.traverse.node (node_modules/@babel/traverse/lib/index.js:84:17)
      at traverse (node_modules/@babel/traverse/lib/index.js:66:12)
      at transformFile (node_modules/@babel/core/lib/transformation/index.js:107:29)
          at transformFile.next (<anonymous>)
      at run (node_modules/@babel/core/lib/transformation/index.js:35:12)
          at run.next (<anonymous>)
      at Object.<anonymous> (node_modules/@babel/core/lib/transform-ast.js:28:41)
      at evaluateSync (node_modules/gensync/index.js:244:28)
      at Object.sync (node_modules/gensync/index.js:84:14)
      at Object.printer (src/__tests__/printer/index.ts:22:20)
      at Object.test (src/__tests__/basic.test.ts:51:27)

Test Suites: 1 failed, 1 passed, 2 total
Tests:       1 failed, 15 passed, 16 total
Snapshots:   15 passed, 15 total
Time:        2.096 s, estimated 3 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Single execution is possible
$ yarn test -t "multi plugins"
yarn run v1.19.0
$ jest -t 'multi plugins'
(node:6439) ExperimentalWarning: The fs.promises API is experimental
(node:6440) ExperimentalWarning: The fs.promises API is experimental
 PASS  src/__tests__/basic.test.ts

Test Suites: 1 skipped, 1 passed, 1 of 2 total
Tests:       15 skipped, 1 passed, 16 total
Snapshots:   1 passed, 1 total
Time:        2.252 s
Ran all test suites with tests matching "multi plugins".
✨  Done in 3.90s.

It is acceptable to fail the test
Resolve with this issue #19


Add Config download

I'm always frustrated when I need to manually copy and paste config on the demo.
It will be super cool if I can just click 'Download' config.
Also in Chrome if you try to CTRL+A in textarea on Export Config modal - all page will be selected, not only config's textarea content.
ps
Thank you for the great library!

Added Download and Copy buttons


OSError: [Errno 22] Invalid argument: 'C:\Users\Russell\AppData\Roaming\ElectronCash\config'

Crash Report
This crash report was reported through the automatic crash reporting system 🤖
Traceback
  File "site-packages\electron_cash-3.1.6-py3.5.egg\electroncash_gui\qt\main_window.py", line 2912, in closeEvent
  File "site-packages\electron_cash-3.1.6-py3.5.egg\electroncash_gui\qt\main_window.py", line 2925, in clean_up
  File "site-packages\electron_cash-3.1.6-py3.5.egg\electroncash\simple_config.py", line 131, in set_key
  File "site-packages\electron_cash-3.1.6-py3.5.egg\electroncash\simple_config.py", line 140, in _set_key_in_user_config
  File "site-packages\electron_cash-3.1.6-py3.5.egg\electroncash\simple_config.py", line 205, in save_user_config

OSError: [Errno 22] Invalid argument: 'C:\\Users\\Russell\\AppData\\Roaming\\ElectronCash\\config'

Reporter
This issue was reported by 1 user(s):

Electrum Version
Operating System
Wallet Type
Locale

3.1.6
Windows-7-6.1.7601-SP1
standard
en_AU

Additional Information
The reporting user(s) did not provide additional information.

Is it possible for someone's roaming folder to be deleted or renamed?
    def save_user_config(self):
        if not self.path:
            return
        path = os.path.join(self.path, "config")
        s = json.dumps(self.user_config, indent=4, sort_keys=True)
        with open(path, "w") as f: # <-----------------HERE
            f.write(s)
        os.chmod(path, stat.S_IREAD | stat.S_IWRITE)

Same traceback as #624

https://msdn.microsoft.com/en-us/library/yeby3zcb.aspx

Each of these functions returns a pointer to the open file. A null pointer value indicates an error. If filename or mode is NULL or an empty string, these functions trigger the invalid parameter handler, which is described in Parameter Validation. If execution is allowed to continue, these functions return NULL and set errno to EINVAL.

What the italicised section means, I have no idea.

Hmm... It really seems like the file was removed/permissions changed or a filesystem error

I have decided to treat this as a special case and suppress these likely "device unmounted" errors.  If the wallet gets closed, and the file is no longer accessible, it should suppress the error and let the rest of the logic close down.  Maybe it can save the config if it can't save the wallet, and vice versa.  In the event we add handling to detect device removal
Now, it is arguable whether the Roaming case is the same as a removed USB device, but in this situation they should be treated the same IMO.


Handle mes:Department, mes:Role

Closes #78.

The codecov/patch check failure is acceptable: lines are added in a network test that is only run on main/scheduled jobs, not for PR jobs.


Update kr.json translation

Translation for https://github.com/jdm-contrib/jdm/issues/1282

Thanks for your contribution!


Need to add CORS filter for REST API swagger docs

Description:
The REST APIs don't generate a response and causes an error in swagger UI without the following cors filter configuration. To resolve this issue this config needs to be added into the <IS_HOME>/repository/deployment/client/webapps/WEBINF/web.xml file.
    <filter>
      <filter-name>CORS</filter-name>
      <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
      <init-param>
          <param-name>cors.allowOrigin</param-name>
          <param-value>http://<IP_ADDRESS>:8000</param-value>
      </init-param>
       <init-param>
          <param-name>cors.supportedMethods</param-name>
          <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS, PATCH</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>CORS</filter-name>
      <url-pattern>/*</url-pattern>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
  </filter-mapping>

Additionally, the following resource needs to be added to the identity.xml and identity.xml.j2 files.
<Resource context="(.*)/api/users/v1/me/(.*)/(.*)/(.*)" secured="true" http-method="GET,POST,PUT,PATCH,DELETE">
<Permissions>/permission/admin/login</Permissions>
</Resource>

Affected Product Version:
5.9.0

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Login a native mobile app with IdentityServer4

Is there a library to login a native mobile app (ios swift) similar to IdentityModel in .Net?
What the process to authenticate a native mobile app (ios swift) using an existing IdentityServer4?

That's the recommended one
https://github.com/openid/AppAuth-iOS/blob/master/Examples/README-IdentityServer.md


Fix typo

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


Update linux-whatsnew.md

Relnotes for 2211-2 release

Learn Build status updates of commit 757e20b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/linux-whatsnew.md
:white_check_mark:Succeeded

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


composer.json must require dev-master of phergie/phergie-irc-bot-react

Resolves #5.

Closed, since this breaks other plugins. IMO we need to wait for a new tag, see #5.


Backup not complete (IMAP server returns multiple responses for search)

Just installed and tried a local backup for my imap-account.
Resulted in 700+ emails only being 9 locally.
After debugging with double --verbose I identified that UID SEARCH ALL returns multiple responses and only the last one is handled.
S: * SEARCH 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745
S: * SEARCH 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784
S: * SEARCH 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823
S: * SEARCH 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836

Is this the intended behavior? Is the server not allowed to split response?

Hi @skilltryck
The info you included was a part of the IMAP response. Please post the full log.
What is in the .imap metadata file? Does it contain just 9 ids?


Clarification on metric semantic convention instrument naming

instrument-naming suggests that

an instrument that measures passage of time should be called entity.time. For example, system.cpu.time

That seems to contradict already established conventions like http.server.request.duration.
We also say

Use count Instead of Pluralization for UpDownCounters

But then there's lots of counters which don't follow that advice elsewhere in the spec e.g. http.server.active_requests or system.network.connections
Appreciate it's experimental and guideline not a hard rule, and I generally like the advice, but I also find the contradictions confusing.

Agreed, the contradiction is not great. Luckily both are experimental and we can fix them still 👍

The difference between system.cpu.time and http.server.request.duration is that system.cpu.time is a counter / async counter, measuring the monotonically increasing cpu time. In contrast, http.server.request.duration is a histogram where each measurement is the duration of time passed.
I think we can update the guidance to reflect this difference:

*.time is used to measure monotonically increasing total time
*.duration is used to measure discrete durations

From *.time you can compute things like the rate, but there's no notion of individual measurements contributing to the total time, since that information is erased when you observe something like system.cpu.time asynchronously. From *.duration you can compute the rate as well, but can also see the number of total measurements (or rate) and do things with the distribution. So *.duration is a superset of *.time from a user's perspective. Good to call out this difference with conventions.

Agree on the items related to *.time and *.duration. Specific to UpDownCounters, http.server.active_requests is experimental (as well as the general guidance), but considering other HTTP instrument names are stable, we should probably decide if we want to go for 1 or 2 below:

Follow the general advice in instrument naming and change http.server.active_requests (and other pluralised UpDownCounters) to http.server.active_request.count.
Change the general advice related to UpDownCounters to remove the recommendation for using count instead of pluralisation (http.server.active_requests and other could remain untouched).

IMO, I think the advice regarding the use of count could be scoped more generally to reflect it's usage to count concepts within a namespace. E.g. using system.process.count instead of system.processes makes sense semantically, but I don't think *.count gives any more indication that this instrument refers to an UpDownCounter. For instance, could I have a namespace like com.mycompany.search and a Counter like com.mycompany.search.count that reflects the count of searches while also having com.mycompany.search.results as a Counter of all results returned.
Effectively, the advice could be to use count instead of pluralisation of namespaces when the instrument is counting of concepts represented in that namespace.


[Feature Request] Keypad entry codes as sensors in HA

Briefly discussed with @iranl in Discord on directions.
As part of trying to reproduce the Nuki App core functionalities in Home Assistant, I do think it makes sense to include an option to "Add entry codes as sensors in HA". This can most likely be done by publishing the entry codes to the Home Assistant MQTT discovery topic (perhaps leveraging the keypad/json MQTT topic for this). The idea is to create a sensor as a toggle / switch (input boolean) so that each entry code can be published in an entities list lovelace card and can be easily enabled - disabled.
I was personally thinking about:

<name> - <code> as friendly name
all other entry code objects as arguments of the sensor

This way we could also potentially create a search object in a HA lovelace card to search for an entry code, and perform an action based on the selected entry (such as delete and enable / disable).
The only thing I'm struggling with to find a solution for is to remove sensors of deleted entry codes.
Attached an example entities HA lovelace card.

One way to go about it is perhaps creating "sensor slots" for each entry code and disable the ones that are not used. By default, if I'm not mistaken, the nuki_hub allows the creation of 10 entry codes meaning that 10 sensors will be initially created through the HA MQTT autodiscovery. If there are 5 entry codes programmed it would use sensor_1 till sensor_5 and disable sensor_6 till sensor_10.
To dynamically display the active sensors (non-disabled) in a HA entities card we could use for example the https://github.com/thomasloven/lovelace-auto-entities card to dynamically filter on the active entry codes sensors.


"Security warning: an embedded

This error makes me crazy:
routes.rb
get 'books/category/:category', to: 'books#chosen_category', as: :chosen_category

books_controller.rb
def index
  #some codes for retrieve params[:category] and params[:tag]
  @books = Book.all
  @categories = Category.all
end

def chosen_category
  redirect_to books_path({category: params[:category], tag: params[:tag]}), turbolinks: true, change: 'categorydiv'
end

views
<%= link_to "Something", controller: "books", action: "chosen_category", category: category.name, tag: tag, remote: true %>

and everything works good.
But when I try to navigate with browser (or with some old links) to something like this: "books/category/FooBar" it shows this error:
Security warning: an embedded <script> tag on another site requested protected JavaScript. If you know what you're doing, go ahead and disable forgery protection on this action to permit cross-origin JavaScript embedding.
Why?

Remove , turbolinks: true. The option's primary purpose is to turn off Turbolinks responses in certain actions. Here you're forcing the response to be Turbolinks.visit(...) for all types of requests (not just XHRs / remote: true, which is the default), which means if you enter that URL in the address bar you'll see the JS response instead of being redirected.

Ok, but if i remove , turbolinks: true Chrome says me in the "Network" tab that the queste is well completed and everything ok, but on my page nothing change.
With , turbolinks: true it works, but not with navigation with old link.
Why this?

Or mayb in the controller:
def chosen_category
  redirect_to books_path({category: params[:category], tag: params[:tag]}), turbolinks: true, change: 'categorydiv'
end

I have to check if the request is by remote: true or by address bar direct? It's a good way?

Try again without turbolinks: true ;)

Thanks. Now it works.

Is there a way to not reload all queries in controller if I just want to "replace" with this new Turbolinks 3.0 just one part of the page and so just one part of the controller query?
Like unobtrusive way of partial render in ajax...


samples["text_output"] for COCO fine-tuning key error

Hi,
I've seen the existing issues (issue #139) regarding the text_output key for prefix LM pretraining. However, this error also comes up during fine-tuning with COCO as well when run with the blipt5 flanxl model. Some questions:

Do you use the same splitting strategy as discussed in issue #139 when finetuning? Or is just the prompt "a photo of" supposed to be the text_input?
Where is the prompt "a photo of" piped into the LLM inputs?

Thank you!

Thanks for your question.

For finetuning BLIP2-T5 on image caption, "a photo of" is the text_input and the caption is the text_output
text_input will be concatenated with the Q-Former's output as the input embedding to the LLM: https://github.com/salesforce/LAVIS/blob/59273f651b9bffb193d1b12a235e909e9f826dda/lavis/models/blip2_models/blip2_t5.py#L145

Thank you!

Thanks for your question.

For finetuning BLIP2-T5 on image caption, "a photo of" is the text_input and the caption is the text_output
text_input will be concatenated with the Q-Former's output as the input embedding to the LLM: https://github.com/salesforce/LAVIS/blob/59273f651b9bffb193d1b12a235e909e9f826dda/lavis/models/blip2_models/blip2_t5.py#L145

From the code, it looks like '' (empty prompt) is used in the pretrain config file "lavis/configs/models/blip2/blip2_pretrain_flant5xl.yaml" but 'a photo of' prompt is used in the coco fine-tune config file "lavis/configs/models/blip2/blip2_caption_flant5xl.yaml".
Can you please tell why fine-tune is different from pretrain?

@ldfandian "a photo of" often appears in the pretraining data, not on COCO. Adding it as a prompt during fine-tuning reduces the gap between pretrain and finetuning.

@ldfandian "a photo of" often appears in the pretraining data, not on COCO. Adding it as a prompt during fine-tuning reduces the gap between pretrain and finetuning.

I was confused because blip2_pretrain_flant5xl.yaml has an empty prompt. Should I added it by myself for training ?