[BUG] How fix Connection Terminate?

{"level":30,"time":"2024-04-16T02:19:58.982Z","pid":8720,"hostname":"klikdigitaldev","class":"baileys","trace":"Error: Connection Terminated\n    at WebSocketClient. (/home/klikdigitaldev/KLIKDIGITAL/JOB/csai_backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:439:30)\n    at WebSocketClient.emit (node:events:518:28)\n    at WebSocketClient.emit (node:domain:488:12)\n    at WebSocket. (/home/klikdigitaldev/KLIKDIGITAL/JOB/csai_backend/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n    at WebSocket.emit (node:events:518:28)\n    at WebSocket.emit (node:domain:488:12)\n    at WebSocket.emitClose (/home/klikdigitaldev/KLIKDIGITAL/JOB/csai_backend/node_modules/ws/lib/websocket.js:260:10)\n    at TLSSocket.socketOnClose (/home/klikdigitaldev/KLIKDIGITAL/JOB/csai_backend/node_modules/ws/lib/websocket.js:1272:15)\n    at TLSSocket.emit (node:events:530:35)\n    at TLSSocket.emit (node:domain:488:12)","msg":"connection errored"}
DISCONNECT REASEON: 401

Update your Baileys into latest

my Baileys is already latest, but this error still occured, why is that?


Extend spo sp grant revoke with scope

Extends spo sp grant revoke with scope so that it's possible not only to remove the whole grant but also a specific scope.
Originally posted by @waldekmastykarz in https://github.com/pnp/cli-microsoft365/issues/5055#issuecomment-1784024542

The underlying CSOM API SPOWebAppServicePrincipalPermissionGrant.DeleteObject() only supports removing the whole grant, rather than a specific scope. To remove just a specific scope, we'd have to look into the ability of updating scopes

The Scope property of a grant seems to be only a getter. With that, it seems that we won't be able to use CSOM to update scopes. We'd have to look some more into other options that we could potentially use for this.

OK, the following code seems to be working:
var ctx = new ClientContext("https://contoso-admin.sharepoint.com");
ctx.ExecutingWebRequest += (sender, e) => {
    e.WebRequestExecutor.RequestHeaders["Authorization"] = "Bearer " + accessToken;
};
var grantId = "abc";
var scopeToRevoke = "Mail.Read";

var sp = new SPOWebAppServicePrincipal(ctx);
var grantMgr = sp.GrantManager;
var grant = sp.PermissionGrants.GetByObjectId(grantId);
ctx.Load(grant);
ctx.ExecuteQuery();
grantMgr.Remove(grant.ClientId, grant.Resource, scopeToRevoke);
ctx.ExecuteQuery();


dada2_ASV: Tibble columns must have compatible sizes.

Error:
! Tibble columns must have compatible sizes.
• Size 372: Existing data.
• Size 199: Column at position 2.
ℹ Only values of size one are recycled.
Backtrace:
    ▆
 1. └─tibble::tibble(rejects.rev.seq, abundance_r)
 2.   └─tibble:::tibble_quos(xs, .rows, .name_repair)
 3.     └─tibble:::vectbl_recycle_rows(res, first_size, j, given_col_names[[j]])
 4.       └─rlang::cnd_signal(error_incompatible_size(n, name, size, "Existing data"))
There were 50 or more warnings (use warnings() to see the first 50)
Execution halted

Fixed in https://github.com/iobis/PacMAN-pipeline/commit/754dc90c317807046b644142a08ed8d8f3adc39f.


docs.rs - generates not working links for module documentation

For example...
https://docs.rs/rqlite_client/0.0.1-alpha.10/rqlite_client/response/index.html
Most of the links in the left menu bar are based on
https://docs.rs/rqlite_client/0.0.1-alpha.10/rqlite_client/response/
So the link for the same module is there
https://docs.rs/rqlite_client/0.0.1-alpha.10/rqlite_client/response/response/index.html
and so not found.
Also crate-level structs are based wrong...
https://docs.rs/rqlite_client/0.0.1-alpha.10/rqlite_client/response/struct.Connection.html
Should be https://docs.rs/rqlite_client/0.0.1-alpha.10/rqlite_client/struct.Connection.html

initially I thought this it related to some builder-issues we had, but looking deeper it seems like that we generate broken links here.
@Nemo157 @GuillaumeGomez was / is there a known rustdoc issue about this?

@GuillaumeGomez do you have any insight here?

Completely forgot about it. Seems like all links are generated correctly in the 0.0.1-alpha.15 version, so maybe it was an old rustdoc bug which has been solved in the meantime?


Refactor Seek.page_loads to be a metric.

Originally posted by @gabriele-0201 in https://github.com/thrumdev/nomt/pull/307#discussion_r1729013796

Moved to Linear


fix(esl-scrollbar): fix incorrect at-start/at-end handling whrn browser creates dimentions with the floating point

Resolved by adding 1px tolerance of position boundary values

:tada: This PR is included in version 4.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: batch publish

Description

Add batch option to publish() api and GossipSub option
When it's true, encode messages once and send to all peer, ignore cached control messages

cc @wemeetagain
Closes #344

Codecov Report
Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (eb53ea9) 81.38% compared to head (9be54e7) 81.40%.

Files
Patch %
Lines

src/index.ts
79.54%
9 Missing :warning:

test/floodsub.spec.ts
86.20%
4 Missing :warning:

src/stream.ts
88.23%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #480      +/-   ##
==========================================
+ Coverage   81.38%   81.40%   +0.01%
==========================================
  Files          48       48
  Lines       12275    12334      +59
  Branches     1292     1302      +10
==========================================
+ Hits         9990    10040      +50
- Misses       2285     2294       +9

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


add support for dimmer switch

Smart Dimmer Switch, TESSAN WiFi Light Switch
name: New Device Support
about: New device that wants to be supported
title: ''Smart Dimmer Switch, TESSAN WiFi Light Switch"
labels: enhancement, help wanted
assignees: ''

{"active_time":1614289067,"biz_type":0,"category":"tgkg","create_time":1614288716,"icon":"smart/icon/ay1536047723331OpdLN/de9484c22e590e3a0d55a150aea76082.png","id":"eb7093013e4c564ce5az9w","ip":"<IP_ADDRESS>","lat":"26.13265833402834","local_key":"7a2612dd0e28ac8b","lon":"-80.40450293441359","name":"Kitchen light","online":true,"owner_id":"33646384","product_id":"zcn1sye3spbycifv","product_name":"智能双控调光器 (Wi-Fi) plus","status":[{"code":"switch_led_1","value":false},{"code":"bright_value_1","value":710},{"code":"brightness_min_1","value":10},{"code":"led_type_1","value":"led"},{"code":"work_mode","value":"light_white"},{"code":"light_mode","value":"pos"}],"sub":false,"time_zone":"-05:00","uid":"az1611536221746t4iLR","update_time":1626788331,"uuid":"5161ae6ec6c0c99c"}],

Hi @adorabletechguy ,Sorry for taking so long to reply.
Please submit an Issue in the Issue Template format so that we can better help you solve the issue.

name: New Device Support
about: New device that wants to be supported
title: ''
labels: enhancement, help wanted
assignees: ''

{"active_time":1614289067,"biz_type":0,"category":"tgkg","create_time":1614288716,"icon":"smart/icon/ay1536047723331OpdLN/de9484c22e590e3a0d55a150aea76082.png","id":"eb7093013e4c564ce5az9w","ip":"<IP_ADDRESS>","lat":"26.13265833402834","local_key":"7a2612dd0e28ac8b","lon":"-80.40450293441359","name":"Kitchen light","online":true,"owner_id":"33646384","product_id":"zcn1sye3spbycifv","product_name":"智能双控调光器 (Wi-Fi) plus","status":[{"code":"switch_led_1","value":false},{"code":"bright_value_1","value":710},{"code":"brightness_min_1","value":10},{"code":"led_type_1","value":"led"},{"code":"work_mode","value":"light_white"},{"code":"light_mode","value":"pos"}],"sub":false,"time_zone":"-05:00","uid":"az1611536221746t4iLR","update_time":1626788331,"uuid":"5161ae6ec6c0c99c"}],

Any plans to add support?

Hi @adorabletechguy , Details of the device have been received and we will support category "tgkg" in the next version.

Awesome!!!
This finally fixes the issue with MOES dimmers too!
Seems to be working flawlessly.


Headers policy: allow templating using liquid

Closes #708

@davidor might be good as a verification to try to replicate https://github.com/nmasse-itix/3scale-apicast/blob/34a01da49ddb90dcbb85027b0d54be503d8ed236/gateway/src/custom/policy/explode_oidc_token_as_http_headers.lua with this.

@mikz I added an integration test with jwt tokens as you suggested. Check the last 2 commits.
@nmasse-itix : you might be interested in the example. It's based in one of the custom policies of your apicast fork.


Favicon Error!

Hello @brillout, I am really impressed by progress of this project. Well done sir!
So, I cloned git@github.com:brillout/vite-plugin-ssr, and everything seems to work well so far. However, I am getting a error on the console concerning favicon.ico
Please, how do I resolve this?

Fixed!
I had to clear my browser history.

👍


Game crashes on auto craft.

Issue description:
What happens: Start auto craft for thermal foundation cryotheum items get pushed in to a chest then the game crashes. Unknown if it happens when autocrafting other items.
What you expected to happen:
Steps to reproduce:

...
Version (make sure you are on the latest version before reporting):

Minecraft:1.12.2
Forge:<IP_ADDRESS>65
Refined Storage:1.6.5

Does this issue occur on a server? unknown.
If a (crash)log is relevant for this issue, link it here:
https://pastebin.com/UMYskaAV

This has been fixed in the dev builds. Coming soon to a RS release near you.


Add addc, deletec, listc, assign and unassign commands to TA Assist

This closes #57, closes #58, closes #14, closes #60, closes #7.
To facilitate progress of the project, the following commands are added to TA Assist. Testing for the methods are yet to be automated. This might cause possible reduction in test case coverage. Previous test cases should also be updated to change the original tags to classes. However, there are currently no conflicts with past test cases.

Codecov Report
Base: 69.29% // Head: 60.26% // Decreases project coverage by -9.02% :warning:

Coverage data is based on head (318a457) compared to base (1b8bf2e).
Patch coverage: 15.47% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #80      +/-   ##
============================================
- Coverage     69.29%   60.26%   -9.03%
- Complexity      408      414       +6
============================================
  Files            74       86      +12
  Lines          1283     1505     +222
  Branches        133      166      +33
============================================
+ Hits            889      907      +18
- Misses          352      553     +201
- Partials         42       45       +3

Impacted Files
Coverage Δ

...ain/java/seedu/taassist/commons/core/Messages.java
0.00% <ø> (ø)

...ava/seedu/taassist/logic/commands/AddcCommand.java
0.00% <0.00%> (ø)

...a/seedu/taassist/logic/commands/AssignCommand.java
0.00% <0.00%> (ø)

.../seedu/taassist/logic/commands/DeletecCommand.java
0.00% <0.00%> (ø)

...va/seedu/taassist/logic/commands/ListcCommand.java
0.00% <0.00%> (ø)

...seedu/taassist/logic/commands/UnassignCommand.java
0.00% <0.00%> (ø)

...seedu/taassist/logic/parser/AddcCommandParser.java
0.00% <0.00%> (ø)

...edu/taassist/logic/parser/AssignCommandParser.java
0.00% <0.00%> (ø)

...du/taassist/logic/parser/DeletecCommandParser.java
0.00% <0.00%> (ø)

...va/seedu/taassist/logic/parser/TaAssistParser.java
66.66% <0.00%> (-17.55%)
:arrow_down:

... and 13 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Notification fixes and other code cleanup

Summary

Setup notifications properly. We now keep track of a pageToken for each user so we know the last change they fetched and we also keep track of the last activity time for each user per file. This allows us to surface more accurate notifications besides a few edge cases. If we don't have a last activity time for a user with a file we just fetch the latest activity for that file because we don't want to grab all the activities from the beginning of time for the file.
Added a token check to the notifications webhook to verify the request came from Google.
Added a per user mutex lock to the notifications webhook to avoid race conditions which was causing duplicate messages.
Moved some files into packages to improve readability and code stability: config, model, utils and kvstore. I moved all kv calls to the kvstore for easier tracking/readability.

TODO in another PR

Rate limit calls to Google Drive API to avoid being rate limited
Catch rateLimit errors and add logic to back off
Move Google Drive calls/logic into it's own package

/update-branch

@BenCookie95 you probably need to manually rebase with the recently merged PRs.  update-branch doesn't work in community.

@wiggin77 It's fixed up now


Zeus fixes for sunxi platform

In this PR are fixes which was verified on orange-pi-zero and orange-pi-pc-plus. Both board boots fine.

Awesome. I think this looks good.
One small thing, please update the README.md in meta-mender-sunxi to reflect the zeus bump.

@mirzak updated. When merged I'll update topics for sunxi to be compatible with zeus. Thanks.


Combine "get Xday forecast in location" method

Currently, we have two differents methods to get the forecast for the current day and to get the forecast for the following 3 days. Both methods could be combined into a more generic method that returned the forecast for the following X days (where X is a parameter).

Solved


Speed up slow unit tests

The tests currently take around 40s to complete, however it doesn't seem like there's anything in here that requires it. Clean up slow unit tests for a better developer experience.
$ time ./test -v > test.log

real    0m38.730s
user    1m32.845s
sys 0m2.796s
$ cat test.log | grep 'PASS:' | awk '{ print $4, $3 }' | sort -r
(9.81s) TestServerRefreshToken
(4.67s) TestResendEmailInvitation
(4.54s) TestCreateClient
(3.76s) TestGetUser
(3.15s) TestCreateUser
(2.62s) TestListUsers
(2.21s) TestSendResetPasswordEmailHandler
(2.19s) TestHandleRegister
(1.79s) TestHandleAuthFuncResponsesSingleRedirectURL
(1.60s) TestResetPasswordHandler
(1.58s) TestHandleVerifyEmailResend
(1.57s) TestHTTPClientCredsToken
(1.53s) TestResendEmailInvitation
(1.37s) TestSendEmailVerificationEmail
(1.34s) TestSendResetPasswordEmail
(1.17s) TestServerTokenFail
(1.11s) TestEmailVerificationParseAndVerify
(1.08s) TestRefreshTokenEndpoints
(1.05s) TestDisableUser
(1.03s) TestDisableUsers
(1.03s) TestCreateUser
(1.02s) TestRefreshTokenRepoRevokeForClient
(1.02s) TestListUsers
(1.01s) TestInvitationHandler
(0.95s) TestRefreshTokenRepoCreateVerify
(0.93s) TestServerLogin
(0.91s) TestClientRegistration
(0.89s) TestServerCodeTokenCrossClient
(0.76s) TestGetUser
(0.75s) TestRefreshTokenRepoClientsWithRefreshTokens
(0.70s) TestHTTPExchangeTokenRefreshToken
(0.62s) TestPasswordResetParseAndVerify
(0.49s) TestInvitationParseAndVerify
(0.45s) TestCreateAdmin
(0.44s) TestServerCrossClientAuthAllowed
(0.44s) TestHandleAuthCrossClient
(0.40s) TestServerCodeToken
(0.37s) TestValidateScopes
(0.34s) TestNewPasswordFromHash
(0.34s) TestGetClientIDFromAuthorizedRequest
(0.33s) TestHandleTokenFunc
(0.33s) TestClientToken
(0.26s) TestRevokeRefreshToken
(0.26s) TestRegisterWithPassword
(0.26s) TestRefreshRepoVerifyInvalidTokens
(0.25s) TestConnectors
(0.24s) TestRefreshRepoRevoke
(0.24s) TestAuthenticate
(0.23s) TestServerTokenUnrecognizedKey
(0.19s) TestGetState
(0.18s) TestChangePassword

unit tests are faster than ever.

$ time make test
=== RUN   TestGlideYAMLPinsAllDependencies
--- PASS: TestGlideYAMLPinsAllDependencies (0.00s)
=== RUN   TestRemoveVersionControl
--- PASS: TestRemoveVersionControl (0.01s)
PASS
ok  	github.com/coreos/dex	0.014s
?   	github.com/coreos/dex/api	[no test files]
=== RUN   TestUnmarshalConfig
--- PASS: TestUnmarshalConfig (0.00s)
PASS
ok  	github.com/coreos/dex/cmd/dex	0.025s
?   	github.com/coreos/dex/cmd/example-app	[no test files]
?   	github.com/coreos/dex/connector	[no test files]
?   	github.com/coreos/dex/connector/github	[no test files]
=== RUN   TestEscapeFilter
--- PASS: TestEscapeFilter (0.00s)
PASS
ok  	github.com/coreos/dex/connector/ldap	0.016s
?   	github.com/coreos/dex/connector/mock	[no test files]
?   	github.com/coreos/dex/connector/oidc	[no test files]
=== RUN   TestPassword
--- PASS: TestPassword (0.00s)
=== RUN   TestHandleHealth
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17.017329056 -0800 PST
--- PASS: TestHandleHealth (0.00s)
=== RUN   TestNewTestServer
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17.018430494 -0800 PST
--- PASS: TestNewTestServer (0.00s)
=== RUN   TestDiscovery
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17.019408516 -0800 PST
--- PASS: TestDiscovery (0.00s)
=== RUN   TestOAuth2CodeFlow
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17 -0800 PST
--- PASS: TestOAuth2CodeFlow (0.06s)
=== RUN   TestOAuth2ImplicitFlow
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17.082917137 -0800 PST
--- PASS: TestOAuth2ImplicitFlow (0.01s)
=== RUN   TestCrossClientScopes
2016/11/09 00:04:17 keys expired, rotating
2016/11/09 00:04:17 keys rotated, next rotation: 2116-10-16 00:04:17.090834656 -0800 PST
--- PASS: TestCrossClientScopes (0.01s)
=== RUN   TestPasswordDB
--- PASS: TestPasswordDB (0.00s)
=== RUN   TestKeyCacher
--- PASS: TestKeyCacher (0.00s)
=== RUN   TestNewTemplates
--- PASS: TestNewTemplates (0.00s)
=== RUN   TestLoadTemplates
--- PASS: TestLoadTemplates (0.00s)
PASS
ok  	github.com/coreos/dex/server	0.100s
?   	github.com/coreos/dex/storage	[no test files]
?   	github.com/coreos/dex/storage/conformance	[no test files]
=== RUN   TestIDToName
--- PASS: TestIDToName (0.00s)
=== RUN   TestNamespaceFromServiceAccountJWT
--- PASS: TestNamespaceFromServiceAccountJWT (0.00s)
=== RUN   TestLoadClient
--- SKIP: TestLoadClient (0.00s)
	storage_test.go:23: test environment variable "DEX_KUBECONFIG" not set, skipping
=== RUN   TestURLFor
--- PASS: TestURLFor (0.00s)
=== RUN   TestStorage
--- SKIP: TestStorage (0.00s)
	storage_test.go:23: test environment variable "DEX_KUBECONFIG" not set, skipping
PASS
ok  	github.com/coreos/dex/storage/kubernetes	0.006s
?   	github.com/coreos/dex/storage/kubernetes/k8sapi	[no test files]
=== RUN   TestStorage
=== RUN   TestStorage/AuthCodeCRUD
=== RUN   TestStorage/AuthRequestCRUD
=== RUN   TestStorage/ClientCRUD
=== RUN   TestStorage/RefreshTokenCRUD
=== RUN   TestStorage/PasswordCRUD
=== RUN   TestStorage/KeysCRUD
=== RUN   TestStorage/GarbageCollection
--- PASS: TestStorage (0.00s)
    --- PASS: TestStorage/AuthCodeCRUD (0.00s)
    --- PASS: TestStorage/AuthRequestCRUD (0.00s)
    --- PASS: TestStorage/ClientCRUD (0.00s)
    --- PASS: TestStorage/RefreshTokenCRUD (0.00s)
    --- PASS: TestStorage/PasswordCRUD (0.00s)
    --- PASS: TestStorage/KeysCRUD (0.00s)
    --- PASS: TestStorage/GarbageCollection (0.00s)
=== RUN   TestStaticClients
--- PASS: TestStaticClients (0.00s)
PASS
ok  	github.com/coreos/dex/storage/memory	0.024s
=== RUN   TestSQLite3
=== RUN   TestSQLite3/AuthCodeCRUD
=== RUN   TestSQLite3/AuthRequestCRUD
=== RUN   TestSQLite3/ClientCRUD
=== RUN   TestSQLite3/RefreshTokenCRUD
=== RUN   TestSQLite3/PasswordCRUD
=== RUN   TestSQLite3/KeysCRUD
=== RUN   TestSQLite3/GarbageCollection
--- PASS: TestSQLite3 (0.02s)
    --- PASS: TestSQLite3/AuthCodeCRUD (0.00s)
    --- PASS: TestSQLite3/AuthRequestCRUD (0.00s)
    --- PASS: TestSQLite3/ClientCRUD (0.00s)
    --- PASS: TestSQLite3/RefreshTokenCRUD (0.00s)
    --- PASS: TestSQLite3/PasswordCRUD (0.00s)
    --- PASS: TestSQLite3/KeysCRUD (0.00s)
    --- PASS: TestSQLite3/GarbageCollection (0.00s)
=== RUN   TestPostgres
--- SKIP: TestPostgres (0.00s)
	config_test.go:75: test environment variable "DEX_POSTGRES_HOST" not set, skipping
=== RUN   TestDecoder
--- PASS: TestDecoder (0.00s)
=== RUN   TestEncoder
--- PASS: TestEncoder (0.00s)
=== RUN   TestMigrate
--- PASS: TestMigrate (0.00s)
=== RUN   TestTranslate
--- PASS: TestTranslate (0.00s)
PASS
ok  	github.com/coreos/dex/storage/sql	0.021s
?   	github.com/coreos/dex/version	[no test files]

real	0m3.064s
user	0m7.211s
sys	0m0.941s


feature: add daemon update API

Signed-off-by: Allen Sun<EMAIL_ADDRESS>Ⅰ. Describe what this PR did
This PR adds POST /daemon/update API to make daemon be able to be updated.
Currently we can only update daemon's labels and image proxy. I encapsulate both two into a DaemonUpdateConfig struct and use this to pass through daemon and client.
This API has not a command line implementation yet.
Ⅱ. Does this pull request fix one issue?

fixes #983
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
see the integration test in code change api_daemon_update_test.go
Ⅴ. Special notes for reviews
none

Codecov Report

Merging #987 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #987      +/-   ##
==========================================
- Coverage   13.73%   13.72%   -0.02%
==========================================
  Files         124      124
  Lines        8358     8367       +9
==========================================
  Hits         1148     1148
- Misses       7111     7120       +9
  Partials       99       99

Impacted Files
Coverage Δ

daemon/mgr/system.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM


Fix: Cluster deletion is skipped if timeout happens in WaitUntilClusterIsReady

What does this PR do?
Whenever a test times out at WaitUntilClusterIsReady, it returns a nil cluster, due to which the cluster is not deleted. This PR should fix this.
------------------------------
• [FAILED] [1800.626 seconds]
P0Provisioning when a cluster is created [BeforeEach] should successfully provision the regional cluster & add, delete, scale nodepool
  [BeforeEach] /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:68
  [It] /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:96

  Captured StdOut/StdErr Output >>
  Skipping downstream cluster deletion:  auto-gke-hp-ci-hzloh
  << Captured StdOut/StdErr Output

  Timeline >>
  "level"=0 "msg"="Using K8s version 1.31.3-gke.1162000 for cluster auto-gke-hp-ci-hzloh"
  [FAILED] in [BeforeEach] - /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:85 @ 12/16/24 09:24:19.455
  << Timeline

  [FAILED] Expected
      <*errors.errorString | 0xc0006a60d0>:
      timeout waiting on condition
      ***
          s: "timeout waiting on condition",
      ***
  to be nil
  In [BeforeEach] at: /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:85 @ 12/16/24 09:24:19.455

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Checklist:

[ ] Squashed commits into logical changes
[ ] Documentation
[x] GitHub Actions (if applicable) -  https://github.com/rancher/hosted-providers-e2e/actions/runs/12350788310

Special notes for your reviewer:

Excerpt from https://github.com/rancher/hosted-providers-e2e/actions/runs/12350788310/job/34464410095.
The test case timed out at WaitUntilClusterIsReady, but the cluster deletion was not skipped.

S
------------------------------
• [FAILED] [1800.842 seconds]
P0Provisioning when a cluster is created [BeforeEach] should be able to upgrade k8s version of the zonal provisioned cluster
  [BeforeEach] /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:68
  [It] /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:96

  Timeline >>
  "level"=0 "msg"="Using K8s version 1.30.7-gke.1136000 for cluster auto-gke-hp-ci-chmuw"
  [FAILED] in [BeforeEach] - /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:85 @ 12/16/24 11:11:33.938
  << Timeline

  [FAILED] Expected
      <*errors.errorString | 0xc000aa8070>:
      timeout waiting on condition
      ***
          s: "timeout waiting on condition",
      ***
  to be nil
  In [BeforeEach] at: /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/gke/p0/p0_provisioning_test.go:85 @ 12/16/24 11:11:33.938
------------------------------

I thought this is somehow related to the existing GKE cluster, isn't it?

If so I guess it won't delete the cluster anyway but the change should not harm anything.

It will delete the cluster when it fails/timeout at WaitUntilClusterIsReady, which is true for the issue that we are facing.


text wrapping for sidebar

https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/3ea87be1-1aba-40f9-94e3-54235bf572fa/download/&dandisetId=000409&dandisetVersion=draft

This is a pretty minor gripe, but can we fix the text wrapping on table of the sidebar to respect spaces?

This has been fixed. LMK if it causes issues elsewhere in the UI.


CI: Build using cabal-install and provide Travis CI build

What

Switch to cabal new-build for CI instead of stack
Provide a Travis CI build

Why

While stack is convenient for development, and to build applications, it is less suitable for libraries, as it discourages maintenance of dependency version bounds. Since this repo contains mostly libraries, we should increase confidence that they build against Hackage, and not just specific stackage snapshots.
Google Cloud Build doesn't offer a way for contributors to see the build results / logs. In lieu of a better alternative, I chose Travis for now.

Caveats

weeder does require stack. It is currently disabled on CI.
Likewise, ghcid users will still want to use stack, as, for some reason, cabal chokes on loading all packages in a monorepo at once.

Future Work

If we decide to publish precompiled binaries using this repo's GH releases, we may want to produce them against a stackage snapshot for reproducibility. This would entail curling the corresponding cabal.config from stackage (e.g. https://www.stackage.org/lts-13.5/cabal.config)
The (lower) version bounds of the packages will need to be reviewed

One minute for cabal v2-update is annoying though

It definitely is. I'm not sure why it is that slow, doesn't seem to be like that on the cabal build proper. However, it seems like to add the package index to the cache, we'd have to keep the (uncompressed) 01-index.tar, which is at over 500MiB and has a lot of churn.


GRIN General fund page outdated, again

The general fund page has not been updated.

Probably nothing is going to happen. Closed.


WYSIWYG with custom vue component

Hi! How i can customize and insert other content  in slots on vue component?
For example, insert a tabs component (vuetify v-tabs) in editor, how edit content of tab? And how to save content in database for output to the page and for further editing?

Hey @profyt , I don't think it's a good idea to add tabs to an editor. Maybe then it would be better to add an editor to each tab.


Is there a way to place master window on the left?

Not yet, but I'll add an option to (hopefully soon)

Try installing the beta version (npm install yabai-master-stack-plugin@beta) and add "masterPosition": "left" in your ymsp config and let me know if it works for you!

unfortunately it didnt work for me


Requesting Features: overlay for Heat Map, and Hot Spot Map

Requesting Features: overlay for Heat Map, and Hot Spot Map.
I am work on a project that related to represent map datas as Heat map or Hot spot map by customized the overlay render delegate in MKMap. Currently I am using image for specific region, the problem is the quality of image, if too large the app crush, if too small after zoom in many times the image become blur. It would be great if anyone could help suggest me some options. Thanks.

Hi, your issue is not related to GEOSwift, that deals with the model layer, but with the representation layer. You should delve into MKMapView. One way could be to recreate your hot spot map with vectorial overlays instead of using bitmaps, but you can do it if you have access on the data used to generate such map. Good luck


Depth Images are generated in advance or during training?

Thanks for your great work!
I have a question: May I ask if the depth images are generated before training or generated by depth-anything during training?
Thank you!

Hi, we pre-generate the depth data before training to speed up the overall process. As mentioned in the README, we use the following function to save the output from DepthAnything:
def save_raw_16bit(depth, fpath, height, width):
  depth = F.interpolate(depth[None, None], (height, width), mode='bilinear', align_corners=False)[0, 0]
  depth = (depth - depth.min()) / (depth.max() - depth.min()) * 255.0
  depth = depth.cpu().numpy().astype(np.uint8)
  colorized_depth = np.stack([depth, depth, depth], axis=-1)

  depth_image = Image.fromarray(colorized_depth)
  depth_image.save(fpath)

Thanks for your prompt reply!

Dear authors,
Thank you! It seems that this work adopts the depth images as input to a frozen image encoder that was pretrained on RGB data, and I wanna ask for some clarification on the preprocessing steps.
In particular, how should I normalize depth images? Since the encoder is frozen and designed for RGB inputs, is it important for the depth image values to be within a similar range as RGB images? Or is there a specific normalization strategy for depth data in this case?
Thanks!

Hi,
Yes, you’re right. We need to normalize the depth to match the RGB range, as shown in the save_raw_16bit function from the previous response:
depth = (depth - depth.min()) / (depth.max() - depth.min()) * 255.0


sick_scan2: 0.1.1-1 in 'dashing/distribution.yaml' [bloom]

Increasing version of package(s) in repository sick_scan2 to 0.1.1-1:

upstream repository: https://github.com/SICKAG/sick_scan2.git
release repository: https://github.com/SICKAG/sick_scan2-release.git
distro file: dashing/distribution.yaml
bloom version: 0.9.0
previous version for package: null

It looks like the release repository is missing information:
08:11:35 Invoking 'git clone --branch debian/ros-dashing-sick-scan2_0.1.1-1_bionic --depth 1 --no-single-branch https://github.com/SICKAG/sick_scan2-release.git /tmp/sourcedeb/source'
08:11:35 Cloning into '/tmp/sourcedeb/source'...
08:11:35 fatal: Remote branch debian/ros-dashing-sick-scan2_0.1.1-1_bionic not found in upstream origin

from http://build.ros2.org/job/Dsrc_uB__sick_scan2__ubuntu_bionic__source/2/console


Bump spotless-plugin-gradle from 6.11.0 to 6.12.1

Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure correct labels applied
[ ] Ensure any appropriate documentation has been added or amended

Coverage: 98.315%. Remained the same when pulling 02864c9ddf88fe218eab78c9848c278bd0d32451 on spotless into 39d63cb321beba0b39cc24a01dcc1dfd7f6bbde8 on main.


move tickets and close all PRs

It is finally alive again!
https://github.com/scala-ide/scalariform/
Once everything is moved over, we can close the issue tracker and wiki here.
Your master branch should probably be updated to include a single README containing a note that upstream is the active repo again.

btw do you mind adding myself and @sschaef as contributors on this repo, so we have rights to close the tickets as we move them over, e.g. with https://github.com/google/github-issue-mover

@fommil @sschaef you guys should now have push access to this branch

cool, thanks! I think Simon has more time dedicated to this at the moment. I basically have about 10 seconds to myself each day before...

PRs are all reviewed. Now I'm going to have a look at the issues.

All issues are moved!

:fireworks:


data source issue with Lat/Lng and province

Hi,
thanks for implementing the Lat/Long data in your data source, but I am having some issues with it.
I am almost done with a dashboard which I can share with you to implement it in the next build.
I am now trying to implement some maps, but I have troubles with to get the lat/long fields, I doesn't get them correctly tagged on the world map.
example:
cov19_world_infected{country="Austria",continent="Europe",latitude="47.516231",longitude="14.550072"} 1016
Query: metrics - cov19_world_infected > 0
Error on world map:
Invalid LatLng object: (undefined, undefined)
I am getting back the following if I take a look to the data panel:
Time
name
continent
country
instance
job
Value
I am missing the province, latitude and longitude.
This error can occur because some records are not delivering all fields.
Any idea how I can solve this?
Thanks JO!

From here I can see that the austria deaths statistics lack lat/long attributes. But you are querying a different time series.
Can you share a dashboard json export to reproduce this?

Please check if https://github.com/cinemast/covid19-at/commit/fe58de1b88fe0565b8c65b70f1e96057f92a129e fixes the problem

I will try it.
In the world map settings under “map data options” I have selected location data “table”.
I will create a sample dashboard and share it with you.
Thanks!

Hi again,
looks good for now.
I will finish the dashboard tomorrow. How should I share it with you?
BR/JO!

A gist would be fine. Looking forward to it.

Hi,
all done. :)
I have made two dashboards (INIT release): GER and ENG version.
You can find the json files here:
https://gist.github.com/jostrasser/4b21babc89987b33c3091b98ef2ce11d
Sample screenshots:
https://snipboard.io/rCqgmf.jpg
https://snipboard.io/FZHdYM.jpg
https://snipboard.io/1tXzGO.jpg
I will have some fine tunings the next few days and keep you posted.
I can see some breaks in different stats / lines. They are related to some changes on the backend (prometheus, coordinates,.... )... If you want to fix it you have to do this on the database side.
BR/JO!

This looks really great! Thanks for sharing, I will include some of it.

This looks really great! Thanks for sharing, I will include some of it.

Thanks ;)
You can use the full dashboards if you want, I will inform you when I update something on it.
BR/JO!

I have added now the Infection Rate for AT, updated Gist.
BR/JO!

Thanks! I included it in https://github.com/cinemast/covid19-at/commit/435598578faf8980a47185efb5b68e0dc7c97c8e
It also contains fixes for the duplicate data (you need max(<metric>) without(instance,job,latitude,longitude).

Feel free to open a PR if you want it to be updated. It is available here: https://covid19.spiessknafl.at/d/eS-fSwXWz/covid-19-global-overview?orgId=1&refresh=1m

Great!
I have changed the behavior for mobile devices (mouse well issue).
For now all looks fine with REV3... I think the easiest way is that you subscribe the Gist ;)
Thanks!
BR/JO!

...and Revision 4 now merges your fix with "max()..." and my changes in REV3 (Infection Ratio for Austria).
I think this version is the best for now ;)
Thanks JO!

Another info... sometimes I can see "No Data" in some "Stats Fields".
Right now we have no data in "Deaths in Austria".
Could you check this on your side please?
Thanks JO!

I just saw it, yes I am on it.
https://www.sozialministerium.at/Informationen-zum-Coronavirus/Neuartiges-Coronavirus-(2019-nCov).html removed the details for deaths. I will at the summarized value though.

ECDC data is also not very good at the moment. I tried to make the best out of it by normalizing the country names in a defined way.
The summarized deaths in austria value is also defined now: cov19_dead

I think the Sozialministerium will bring the deaths back. Have seen this sometimes the last few days. It will be a cool workaround to keep the last value and overwrite it if a newer death value is coming. Is that possible on the database side?

Do you think I should switch on the Stats from "sum(cov19_detail_dead{country="Austria"})" to "cov19_dead" ?

Ok, there is maybe an official one with much more details.
See
https://info.gesundheitsministerium.at/d/87BA8__Wk1/covid-19-offentlich-zugangliche-information?orgId=1&refresh=5m
BR/JO!

Thanks! I just saw. I guess we are out of business :D Thanks for your help.

Do we get this data also, or is there no way? Thanks

On the other side U‘re right. ;)
Do you know, is there a way to „link“ dashboard into my own Grafana instance?
Do you plan to shutdown your Prometheus DB for the dashboard?
Thanks!
BR/JO!

It appears via the grafana datasource API it is possible:
curl 'https://info.gesundheitsministerium.at/api/tsdb/query' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0' -H 'Accept: application/json, text/plain, */*' --compressed -H 'X-Grafana-Org-Id: 1' -H 'Content-Type: application/json;charset=utf-8' -H 'X-TS-AJAX-Request: true' -H 'Origin: https://info.gesundheitsministerium.at' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://info.gesundheitsministerium.at/d/87BA8__Wk1/covid-19-offentlich-zugangliche-information?orgId=1&refresh=5m'  --data '{"from":"1582498800000","to":"1584557020522","queries":[{"refId":"A","intervalMs":10800000,"maxDataPoints":148,"datasourceId":3,"rawSql":"select Bezirk, count(*) as Anzahl from GRAFANA_Covid_Faelle group by Bezirk order by Bezirk","format":"table"}]}'

No, I will keep it running for now, since I still enjoy the project.

Great!
I love the combination Austria / Europe and worldwide. A really good overview.
If we can get also the details which they are using will be great. Any ideas to get them into the database?


SQLVirtualMachinesClient.Get returning 500

Bug Report

import path of package in question: azure-sdk-for-go/services/preview/sqlvirtualmachine/mgmt/2017-03-01-preview/sqlvirtualmachine/sqlvirtualmachineapi/
SDK version: github.com/Azure/azure-sdk-for-go v44.0.0

What happened?
We are using the azurerm_mssql_virtual_machine terraform provider which recently got a dependency update to azure-sdk-for-go v44.0.0 in this commit and PR. Since then we have been getting a 500 error from the
SQLVirtualMachinesClient.Get call that happens at the end of provisioning the resource. This results in the resource being provisioned but terraform thinks this has failed.
We have tried accessing the same provisioned resource using this API call and it is successful so believe it might be a bug in the go sdk
As reference we have also opened an issue https://github.com/terraform-providers/terraform-provider-azurerm/issues/7747 on the terraform/provider/azurerm repo.

What did you expect or want to happen?
The call to the SQLVirtualMachinesClient.Get is supposed to return 200 to indicate the resource is successfully provisioned.

Anything we should know about your environment.
We are using Terraform v0.12.25 and azurerm provider v2.11.0 (also tried with latest v2.18.0)

cc @yutyang

@mayurid @jhendrixMSFT - Thoughts on who could have a look at this?

As an update we have also tried with azurerm provider version 2.10.0 but we are getting the same error.

A service rest api issue got filed: https://github.com/Azure/azure-rest-api-specs/issues/10144. Per investigation this is not something abnormal on Terraform or GO SDK, but at the service behavior.

We have continued our investigation on this to understand the exact API calls being made by the go sdk. This is the exact GET request being made
GET /subscriptions/<subscription>/resourceGroups/rpt-db-yutyang5/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/rpt-db-yutyang5?%24expand=%2A&api-version=2017-03-01-preview

The "expand" query params are being incorrectly encoded as %24expand= instead of $expand=. Running the above API call directly returns a 500 error {    "error": {        "code": "InternalServerError",        "message": "An unexpected error occured while processing the request. Tracking ID: 'd0e68047-b036-4f32-b1c3-2743af943759'"    }}
Additionally the specs state that $expand= should work correctly, however we also get a 500 error when using $expand, removing the $ fixes the problem and we get a 200 OK with proper payload.
This looks like a bug in both the go sdk and the spec itself. Please let me know your thoughts - it is urgent we get this addressed.
logs.txt
cc @yutyang @briangottfried

@ArcturusZhang - Looks like this is not service issue, can you try to repro with @fnocera steps above?

As an update on the above @jongio and @ArcturusZhang: We have realized that the API call works correctly if the params are: $expand="*" but does not work if it is $expand=* ie without the expand being passed as a string.
Perhaps then it is an issue with the sdk not converting this to a string. Let me know your thoughts.
We used this to repro https://docs.microsoft.com/en-us/rest/api/sqlvm/sqlvirtualmachines/get#code-try-0

Hi @fnocera the special symbol $ is encoded to %24 when sending the request and it should be decoded when reach the service. (actually go SDK is doing this in every package)
And I also tried to reproduce by using this https://docs.microsoft.com/en-us/rest/api/sqlvm/sqlvirtualmachines/get#code-try-0. But I could get 200 either use $expand=* or $expand="*" and if the I use a random sql vm name it gave me 404 in both cases.

And I also wrote following simple code to reproduce this:
func getSQLVM(authorizer autorest.Authorizer) {
	client := sqlvirtualmachine.NewSQLVirtualMachinesClient(subsID)
	client.Authorizer = authorizer
	_, err := client.Get(ctx, resGroup, "non-exist", "*")
	if err != nil {
		panic(err)
	}
}

And I just normally get a 404
{"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.SqlVirtualMachine/SqlVirtualMachines/non-exist' under resource group 'test' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}

The request:
REQUEST: GET https://management.azure.com/subscriptions/85b3dbca-0000-0000-0000-67a141095a76/resourceGroups/test/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/non-exist?%24expand=%2A&api-version=2017-03-01-preview
User-Agent: Go/go1.13 (amd64-windows) go-autorest/v14.0.0 Azure-SDK-For-Go/v44.0.0 sqlvirtualmachine/2017-03-01-preview

I believe this is resolved

@fnocera thanks, we'll close this issue now


Remove the ability to set some hyperparameters in the test suite

At the moment, the test suite currently accepts Fock basis cutoff dimension as a test hyperparameter. However, I've noticed that this is something very rarely used, and every single test in the test suite is written to pass with a cutoff dimension of 6 (the current default).
I suggest we remove this as a test parameter/fixture, and simply use 6 as the global default, while allowing tests to override this default if needed. This is better for three reasons:

It removes any confusion from a user passing a specific cutoff parameter to the test suite, and not realising that some tests override this

it is better practice to write tests for a particular fixed cutoff value

It is near impossible to write tests that will pass for any cutoff value. Tests which we know work could fail simply by passing --cutoff=5 rather than the default of 6, which is poor UX for a user.

every single test in the test suite is written to pass with a cutoff dimension of 6 (the current default)

Except for the ones that don't :smiley_cat:

Anyway, I think this is a good change, will make things much more clear, and is pretty easy to do (just remove the user's ability to change this)

Closing obsolete issue. Fixed when porting test suite to pytest in v0.10.0.


⚠ GLDDNS Server (ns2.glddns.com) has degraded performance

In 6559450, GLDDNS Server (ns2.glddns.com) (ns2.glddns.com) experienced degraded performance:

HTTP code: 200
Response time: 467 ms

Resolved: GLDDNS Server (ns2.glddns.com) performance has improved in 27745ad after 6 minutes.


Karma Car Ownership Token

[ ] Need to move the TS into the example folder @JamesSmartCell
[ ] we cover the Rinkeby gas for MagicLink free transfer @James-Sangalli
[ ] Need a better layout for the Karma Car Ownership Token @tomekalphawallet
then,
[ ] Need to implement the new TS design @tomekalphawallet
[ ] article from @JamesSmartCell

Don't need date and time.
it should have all the parts in below,

@zhangzhongnan928 @JamesSmartCell still don't have the karma files...

@zhangzhongnan928 @JamesSmartCell still don't have the karma files...

Working on it.

@zhangzhongnan928 @James-Sangalli
Need more screenshots (I don't have Karma Car token):

Start
Sell
Transfer

Already have:

Market
Attestations

What is the screenshot with "Challenge: No device found"?

@zhangzhongnan928 @James-Sangalli
Need more screenshots (I don't have Karma Car token):

Start
Sell
Transfer

Already have:

Market
Attestations

What is the screenshot with "Challenge: No device found"?

Start
This action is receiving a challenge from the IoT server on the car, and ask user to sign the challenge. If pass, the user will be granted access to the car.

Sell and transfer are just standard TokenScript NFT screen like FIFA.

Karma Token

Additional Menu

Market

Attestations

Challenge - I need a better copy.

Zeplin:
https://app.zeplin.io/project/5d0356be2f25b319dcc5944b/dashboard?seid=5e5f99b73b032a134317c8c7

Please add Make and VIN in token view

ok

Committed few more tokens.

@tomekalphawallet can we use real car pictures instead of cartoon ones?
as cartoon makes it feels not real, not good for demo.
something like below

We can, but the real picture is usually not a vector. So it will not be saved as a scalable vector graphics (svg).

https://adobe.ly/3aVSnDF
Any of these?

https://adobe.ly/3aVSnDF
Any of these?

Better with a real Karma Car
https://www.google.com/search?q=karma+car&rlz=1C5CHFA_enSG814SG814&sxsrf=ALeKk03Fo7xqYkjwlAAuwRHlQo8V3L929Q:1584340855411&source=lnms&tbm=isch&sa=X&ved=2ahUKEwie447PsZ7oAhX38XMBHTKRDzAQ_AUoAXoECBUQAw

Ok, my bad. I thought that this is a token to control James Brown's toy car that I saw in the office. So this is why I made it look like a toy.
Updated look.
SVG Background (iOS) -
https://www.dropbox.com/s/cgz77y1xktqcnas/karma_background_ios.svg?dl=0
SVG Background (Android):
https://www.dropbox.com/s/yp499t8i61e9v6e/karma_bg_android.svg?dl=0
SVG Icon:
https://www.dropbox.com/s/wxxkl8gta0opmxk/karma_icon.svg?dl=0
Zeplin (iOS):
https://zpl.io/brQm9jD
Zeplin (Android):
https://zpl.io/aRdonde
Holden Year: 2019
Colour: Red
VIN: KL3TA4342DFFC21C2CC
Font:
SourceSans Pro Light Line: 14pt $323232

Preview:

Moved the rest of the work assignment here: https://github.com/AlphaWallet/TokenScript-Examples/issues/32


Shipping MeOH

Adding synthetic fuels, biofuels and ft fuels in navigation as meoh demand. However, this seems to be drastic and leads to 100 % meoh shipping in 2045. Not realistic especially considering the current fleet of ships and their lifetime.
sector:
    shipping_methanol_share:
      2020: 0.0966
      2025: 0.1187
      2030: 0.1357
      2035: 0.175
      2040: 0.4558
      2045: 1.0

In the unravel_oilbus() meoh was missing which is needed for industry and shipping. It is following now the same logic as for the oil and added to the boundary condition restricting the import of H2 derivatives (which also missed the import of CH4 on purpose?).

Open discussion:

Import of CH4 added to the boundary condition restricting H2 derivatives import?
100 % shipping methanol realistic?

I just use the default values for shipping now @lindnemi

Looks good to me


Fix #39 Credential and DomainName params were being ignored

Credential and DomainName params were being ignoed when using New-ADSIDirectoryEntry. The splat object was being nulled out when removing ContextType.

Thanks @gerane ! Very Appreciated!


Node-RED default flows not working

Expected Behavior
_000_commonConfig:
  dataprocessing:
    nodered:
      defaultFlows: true
      enabled: true

Therefore, there should be default flows
Current Behavior
There are not default flows and an error message appears
Relevant log output
create Pod united-manufacturing-hub-nodered-0 in StatefulSet united-manufacturing-hub-nodered failed error: Pod "united-manufacturing-hub-nodered-0" is invalid: spec.initContainers[0].volumeMounts[1].name: Not found: "united-manufacturing-hub-nodered-flows"

Steps to Reproduce
Set _000_commonConfig.dataprocessing.nodered.defaultFlows=true
Context (Environment)
Testing v0.8.0
Possible Solution
No response
Version
v0.8.x
Anything else?
No response

Fixed, but the mqtt connector insider nodered won't send any data, since flows don't seem to save credentials.


Package request: Passbolt

Project description: Passbolt is an open source password manager for teams. It allows you to securely share and store credentials. For instance, the wifi password of your office, the administrator password of a router or your organization's social media account passwords, all of them can be secured using passbolt.
Metadata
homepage URL: https://www.passbolt.com/pricing/pro
source URL: https://github.com/passbolt/passbolt_api
license:  AGPL-3.0 license
platforms: Linux, Cloud Providers

Hi @stnert I've started packaging Passbolt however I will probably need some time in order to make it well polished, right now the package is more an unusable draft rather than something that can be used.
I'm still figuring things out.

I also added https://github.com/NixOS/nixpkgs/pull/304480, if someone wants to test.

@AkechiShiro any update on this? i see you do have a draft here:
https://github.com/AkechiShiro/nixpkgs/blob/079aaa342e5a089cf9a5b17f7427881f394ec762/pkgs/by-name/pa/passbolt/package.nix
I haven't packaged a service for nixpkgs with options before so I am not sure how to do that.
I am just making the link to your work available for others to try out and review as I would hate to see your work go to waste. I hope you don't mind. Thanks

@adam248 Hello,
I didn't PR it because the package doesn't build, I haven't figured out how to fix the build, afterwards adding options would be writing a nix module, I haven't done any yet too.

I have reached out to the passbolt community to see if any dev is willing to come over here and discuss.

@AkechiShiro
Could you explain a bit what problems occur during building?
I tried to build your package using nix-build -E 'with import <nixpkgs> {}; callPackage ./passbolt.nix {}' and it worked.
It produced some warnings along the way but the the build finished and created a result directory with a bunch of binaries and php files.
WARNING: composer files validation failed

The validation of the composer.json and composer.lock failed.
Make sure that the file composer.lock is consistent with composer.json.

This often indicates an issue with the upstream project, which can typically be resolved by reporting the issue to the relevant project maintainers.

To address the issue efficiently, follow one of these steps:
  1. File an issue in the project's issue tracker with detailed information (run 'composer update --lock --no-install' to fix the issue), and apply any available remote patches as a temporary solution with (with fetchpatch).
  2. If an immediate fix is needed or if reporting upstream isn't suitable, develop a temporary local patch.

This check is not blocking, but it is recommended to fix the issue.

You are correct, this was however failing before I believe, I've just tried using 4.9.1 and the package does build

I did a bit more testing. For me both 4.5.2 and 4.9.1 build after only changing the version number. Not even the hashes had to be changed. How is that even possible?!

Hm not sure but on my side I had to change the hashes @DasenB
Maybe build using an empty hash and you should see it will fail with a new hash.
Currently (after patching the logs and cache directories), the main error seems to be about a missing plugin EmailQueue (trace from strace -f when running cake :
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../cakephp/authentication/src/Plugin.php", {st_mode=S_IFREG|0444, st_size=998, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/cakephp/authentication/src/Plugin.php", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0444, st_size=998, ...}, AT_EMPTY_PATH) = 0
read(4, "<?php\ndeclare(strict_types=1);\n\n"..., 998) = 998
close(4)                                = 0
access("/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../lorenzo/cakephp-email-queue/src/Plugin.php", F_OK) = -1 ENOENT (No such file or directory)
access("/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../lorenzo/cakephp-email-queue/src/EmailQueuePlugin.php", F_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../cakephp/cakephp/src/Core/App.php", {st_mode=S_IFREG|0444, st_size=8178, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/cakephp/cakephp/src/Core/App.php", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0444, st_size=8178, ...}, AT_EMPTY_PATH) = 0
read(4, "<?php\ndeclare(strict_types=1);\n\n"..., 8178) = 8178
close(4)                                = 0
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/plugins/EmailQueue", 0x7ffe56553f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../cakephp/cakephp/src/Core/Exception/MissingPluginException.php", {st_mode=S_IFREG|0444, st_size=736, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../cakephp/cakephp/src/Core/Exception", {st_mode=S_IFDIR|0555, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/cakephp/cakephp/src/Core/Exception/MissingPluginException.php", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0444, st_size=736, ...}, AT_EMPTY_PATH) = 0
read(4, "<?php\ndeclare(strict_types=1);\n\n"..., 736) = 736
close(4)                                = 0
newfstatat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../cakephp/cakephp/src/Core/Exception/CakeException.php", {st_mode=S_IFREG|0444, st_size=3634, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/cakephp/cakephp/src/Core/Exception/CakeException.php", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0444, st_size=3634, ...}, AT_EMPTY_PATH) = 0
read(4, "<?php\ndeclare(strict_types=1);\n\n"..., 3634) = 3634
close(4)                                = 0

The file :
/nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../lorenzo/cakephp-email-queue/src/EmailQueuePlugin.php does not exist but /nix/store/jwir61h9zrpascrp6wqxznzcrsdyyz1f-passbolt_api-4.9.1/vendor/composer/../lorenzo/cakephp-email-queue/src/EmailQueue.php does.
I have no idea how to fix this, I've checked a few of the paths defined in config/paths.php and they look alright.


What should I set the "free_joints" in IKFastInfo for my Fetch robot?

Hi,
I'd like to build an ikFast module for a Fetch robot and use it in pybullet env.
Based on what you have for the franka_panda robot:

I created the ikfast solver for my fetch's arm via "ikmodel.autogenerate()" and get the files "ikfast.h, ikfast_fetch_arm.cpp, ikfast_fetch_arm.so";
I copied the python bindings stuff (line 12835 - 12995) in "ikfast_panda_arm.cpp" into my "ikfast_fetch_arm.cpp";
I also copied all relevant files into my workspace;
After running "compile_ikfast", it shows "ikfast module ikfast_fetch_arm imported successful"

I noticed you set a free_joint for panda in ik.py, I was wondering what this free_joint means?
If I leave it as an empty list, I got an error saying "get_ik function takes exactly 3 arguments (2 given)" for line 26 shown below:

If I set the free_joint as "wrist_roll_joint", I always get none solution. Is this because I didn't set correct free_joints?  if so do you have any idea what the correct joint to be set? Thank you very much!
I also attached the output of dump_body(robot) below:

I noticed that there was a comment saying the free joint is for a circular joint. Fetch arm has three circular joints "upperarm_roll_joint", "forearm_roll_joint" and  "wrist_roll_joint", so I guess I can set all of them as free joints. And, finally I got ik solver work!


Open in new window

Hello,
first of all thanks this module is very usefull.
I've got a weird behaviour when I select on a tab "Open In New Window" and upload the file in the new window. The file is always uploaded on root remote folder. It seems not bond on its tree view.

If I know this, several projects are open. Unfortunately, multi-project mod has not been supported yet.


Youtube Clipper

Script Title - We have utility for downloading the whole video #159 but now we something to download a small clip from the video based on time
what will change - Adding script
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Please add/delete options that are not relevant.

[x] Adding New Code
[x] Improving Code
[x] Improving Documentation
[x] Bug Fix

Programming Language

[x] Python

Happy Coding,

Can I take this issue?
Till now I have written a script that is able to download the whole video
So I can also complete the issue #159
Also there have been some changes in hacktoberfest
Now maintainers need to add "hacktoberfest-accepted" label
So please do so (link: https://hacktoberfest.digitalocean.com/hacktoberfest-update)

PR should be labelled with hacktober-accepted. Add you can check that in accepted prs, I include that in every accepted one (It should not be random else tagged with spam)

And go ahead with that, please raise an error if the clip is trying to go beyond the length of video

hey man I have written a python script and that works on windows but I don't know whether this script will run on linux systems

That's perfect for now @vibhorkrishna We now backed up with testers, they will review it later

PR should be labelled with hacktober-accepted. Add you can check that in accepted prs, I include that in every accepted one (It should not be random else tagged with spam)

Hey man this will be my first ever pull request. I don't know how to label my pull request with hacktober-accepted.
And how do I fill this template??
Pull Request Template
script name - Youtube Clipper
What have you Changed
I added the code for youtube clipper
What you changed in the codebase. Write here
I used youtube_dl library for getting the duration of youtube video and getting the download link of the youtube video
I used ffmpeg library to download the video from a starting point to ending point
Issue no.(must) - #200
Self Check(Tick After Making pull Request)
I have to fill this after I make a pull request??
Will I be able to do that?
And how to tick??

[ ] This issue was assigned to me.
[x] One Change in one Pull Request
[ ] My file is in proper folder (Name of folder should be in lowercase with no space in between)
[x] I am following clean code and Documentation and my code is well linted with flake8.
[ ] I have added README.md and requirements.txt with my script

If issue was not assigned to you Please don't make a PR. It will marked as invalid.

Vibhor go to pull Hey @vibhorkrishna  just look at how do we create a pull request, you don't need to copy that here

ok

PR should be labelled with hacktober-accepted. Add you can check that in accepted prs, I include that in every accepted one (It should not be random else tagged with spam)

But how do I label my pull request with hacktober-accepted??

I Label that after merging, no need to worry


Fix broken link to Control Spy 2.0

The original 'fwlink' points at https://www.microsoft.com/downloads/details.aspx?FamilyID=19d4294d-0531-4ec2-8b27-2e463b315f16 which is a dead link.

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


Php 7.x support

Hi there,
I was wondering if boxbilling will support php version 7.x soon.
Thanks

Hi @Kasper2040
I kindly invite you to participate in contribution of this open source software to keep it up to date.

@fordnox Well I'm ready to contribute in a few ways if you'd like to.

I hope boxbilling will support php 7+ soon,
My cPanel MultiPHP Manager says:
Warning: PHP versions PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, and PHP 7.1 are deprecated. We recommend that you update to a supported version of PHP.
I have a cms set up to use the latest php 7+
Installed boxbilling on the same hosting account,
Maybe I shoulda used a subdomain for boxbilling.
I got a warning in boxbilling admin about my site using php 7+
If I want to enable php 5.6 for my boxbilling installation, I ticked yes .
Should we really be using php versions that are not supported/deprecated?

Any news?

please upgrade to php 7

There seem to be two issues about this subject.
Most of the discussion is happening on #592 and there is an active PR about PHP 7.2 on #602.

@samapraku: It is has been merged!

https://github.com/boxbilling/boxbilling/pull/602

Guys can you test the master?
Linked to:

https://github.com/boxbilling/boxbilling/issues/592

Closed by PHP 7.4 Compatibility Update #645


[bug] auto wrap and auto format will destroy the file

Describe the bug
If you find an auto wrapped line end with a whitespace, it will be removed by auto-formatter
Expected behavior
That shouldn't happen
Desktop (please complete the following information):

OS: MacOS
Version: 1.1.1

Additional context(or any ideas)
No

I think we can disable auto-wrap for now


fix(components): Fix state warning errors

Closes #1243
A few components are giving the following error in the console:
Did not properly initialize state during construction.
Expected state to be an object, but it was undefined.

Changelog
The following components were fixed:
AccordionItem
ComposedModal
ContentSwitcher
FileUploader
NumberInput
OverflowMenu
PaginationV2
ProgressIndicator
RadioButtonGroup
SearchLayoutButton
TimePicker.js
Tooltip.js
Notes
A few components were checking is the state variable was defined. I had to change this now to check if state is an empty object. This is the instances were you see this:
let emptyState =
      Object.keys(state).length === 0 && state.constructor === Object;

There's also this https://github.com/facebook/react/issues/12523
Personally, I would rather have it explicitly defined, so I wouldn't rely on gDFSP setting up initial state for me.
I don't expect React to add a fallback for when state is null on first instance and gDFSP, rather they'll probably suppress the error at some point with a warning. But that doesn't fix the initial issue.
That being said, I'm with @zerostatic on this one.

Weighing in - My earlier comment is not about coding preference, but about not breaking existing code. This PR need more work in this regard. Thanks!

Rewind - Looking at gDSFP() logic again I see a breakage won’t happen. My apologies for the false alarm. @zerostatic Do you want to update gDSFP() logic to remove the obsolete code handling undefined state? If not that’s fine and I can do that afterwards. Thanks!

Rewind - Looking at gDSFP() logic again I see a breakage won’t happen. My apologies for the false alarm. @zerostatic Do you want to update gDSFP() logic to remove the obsolete code handling undefined state? If not that’s fine and I can do that afterwards. Thanks!

@asudoh I'm not sure I understand,
Now that I've added an empty state object: state = {}
I replaced the code that checks for undefined state with code that checks if state is an empty object, like:
I replaced this:
if (!state) {...
with this:
 if (Object.keys(state).length === 0 && state.constructor === Object) {....
Is there a cleaner way to handle this?

@zerostatic Thank you for asking and my apologies for the confusion. Let’s take your change to AccordionItem.js as an example - Given you removed “undefined state” condition, we can remove the logic handling that condition in gDSFP(), like:
--- AccordionItem.js.orig	2018-09-03 06:36:01.000000000 +0900
+++ AccordionItem.js	2018-09-03 06:36:13.000000000 +0900
@@ -51,8 +51,8 @@
   };

   static getDerivedStateFromProps({ open }, state) {
-    const { prevOpen } = state || {};
-    return state && prevOpen === open
+    const { prevOpen } = state;
+    return prevOpen === open
       ? null
       : {
           open,

Don’t hesitate to ping me if you have any further questions - Thanks!

@asudoh Thanks for the explanation! I've made the updates. Let me know if I can do anything to improve it.

Thanks @zerostatic for your updates! Would you want to make similar changes to gDSFP() in files where you added empty initial states? If you don’t feel like it it’ll be no problem - Let us know. Thanks!

@asudoh No problem...the other gDSFP's have been updated.


casadi: 3.5.5-1 in 'noetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository casadi to 3.5.5-1:

upstream repository: https://github.com/casadi/casadi.git
release repository: https://github.com/yakunouyang/casadi-release.git
distro file: noetic/distribution.yaml
bloom version: 0.11.2
previous version for package: null

New package review:

[x] At least one of the following must be present

[x] Top level license file: https://github.com/casadi/casadi/blob/master/LICENSE.txt
[ ] Per package license files

[x] License is OSI-approved: LGPL-3.0
[x] License correctly listed in package.xmls

[x] casadi (release repo): https://github.com/yakunouyang/casadi-release/blob/master/noetic/package.xml#L11

[x] Public source repo: https://github.com/casadi/casadi
[ ] Source repository contains ROS packages and each package meets REP-144 naming conventions

The packaged software is not a native ROS package and has a package.xml included in the release repository.
Foxy and Dashing have a casadi_vendor package: https://github.com/ros/rosdistro/blob/b5fef677134a551953178b7d9290bafb3d4ef884/foxy/distribution.yaml#L540-L554

Thank you for your thorough review! I've added <exec_depend>catkin</exec_depend> to noetic/package.xml according to your comment.

I noticed that the release inc was set to 3 before because of several incautious bloom-release run, I've reset the release inc back to 1 and re-bloomed the release repository, hopefully this won't cause any problems. smile

I would recommend not modifying that value at all. Most packages released via bloom that do anything other than very standard ROS releases will require a few revisions and package revisions are a normal part of the workflow. You cannot change that value without changing the contents of the release which means that fixes made since the first revision will no longer be present.
If you make a follow up release, please preserve the release increment as-is. Failing to do so will likely create broken packages.

I noticed that the release inc was set to 3 before because of several incautious bloom-release run, I've reset the release inc back to 1 and re-bloomed the release repository, hopefully this won't cause any problems. smile

I would recommend not modifying that value at all. Most packages released via bloom that do anything other than very standard ROS releases will require a few revisions and package revisions are a normal part of the workflow. You cannot change that value without changing the contents of the release which means that fixes made since the first revision will no longer be present.
If you make a follow up release, please preserve the release increment as-is. Failing to do so will likely create broken packages.

Will do, thank you for your kind reminder.

Tag ending in deb inc of 1 seems to have the exec_depend on catkin now, so this looks good to me if it looks ok to @nuclearsandwich too
https://github.com/yakunouyang/casadi-release/blob/ros-noetic-casadi_3.5.5-1_focal/package.xml#L13

The above link has an apparent typo but likely refers to https://github.com/yakunouyang/casadi-release/blob/debian/ros-noetic-casadi_3.5.5-1_focal/package.xml#L13 (permalink)
I agree that it looks alright there but I think that it would be best for @yakunouyang to close this PR and run a full bloom-release without changing the release increment to make sure that bloom is configured correctly for this repository.


Issue/destination fix

Description
Remove iso7 from the desitination in the changelog in task 5949 as it could not be merged due to the missing properties in Th component- also the warning doesn't affect iso7

Merged into branches master in 777da8e20d73a6001e2cfb27ec3ffdb31802a627


fix admission controller's podsInitContainerPatch

Admission Controller can't succesfully patch the pods spec in case you deploy deployments  sequence with mixed initContainers definition: some of them has initContainers, some not. In this case admission controller successfully apply patch to pods without initContainer and then never apply patch to pods with initContainers defined.
It produce next error in ReplicaSet:
Warning  FailedCreate  13m (x19 over 24m)  replicaset-controller  Error creating: Internal error occurred: invalid character '}' after array element

This MR avoid overriding global variable podsInitPatch after first patch applying
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@amit0701 didn't you already update the code to inject secrets into init containers? From what I recall, you iterate through and patch all of the init containers if the length of the array/slice is not 0. Can you have a look at this PR?

@jicowan Yes, there was a patch to start secret injector as a first initContainer: https://github.com/aws-samples/aws-secret-sidecar-injector/pull/51
But my MR fixes advanced issue, when you have multiply Deployments with initContainers and without ones.


How can I use natural language queries to retrieve the source image？

In your paper,your dense captioning model can support image retrieval using natural language queries, and can localize these queries in retrieved images. How can I do the retrieval work?

We don't have code for that in this repo, but it's relatively simple.
First use the extractFeatures method to get boxes and features for the database images:
https://github.com/jcjohnson/densecap/blob/master/densecap/DenseCapModel.lua#L285
Next run the LanguageModel (https://github.com/jcjohnson/densecap/blob/master/densecap/DenseCapModel.lua#L285) and LanguageModelCriterion (https://github.com/jcjohnson/densecap/blob/master/densecap/DenseCapModel.lua#L120) forward using the features and the query to compute the log-likelihood for the query on the extracted boxes.
Finally use these log-likelihoods to sort all boxes on all images.

@jcjohnson can open-world object detection be done in a similar way?
Also, how do use the boxes and features from extractFeatures in language_model:forward() (the function expects image vectors and gt labels) and self.crits.lm_crit:forward()?

Has anyone got a working demo of this by chance?


unstable version bump to 2.19.54

Hi, is it possible bump the unstable version to current 2.19.54?

The zipped deploy package is about 52 MB, just over the 50 MB limit. Need to figure out how to reduce its size.

Done now. zip --symlink got rid of a bunch of duplicate files and brought the zip file size down.


live hosts

This pack scans live hosts on a given network using nmap. It returns total number of live hosts and a list of IP's of the live hosts on a network. It takes one argument that is the network, which is mandatory
Usage:
st2 run get_live_hosts.get_live_hosts network=<<IP_ADDRESS>/1> # give the network(a subnet) for listing the live hosts

Same here - this action also fits better in the existing linux pack.


Windows within Remote Desktop sessions do not remain in FancyZones.

I figured this may be a separate issue than the one I commented this in previously as that was specifically RDP session windows themselves not working within FancyZones on the local host.  My issue is running FancyZones within a remote host accessed via RDP.
When I RDP to my system I have to continually reset my running applications back to their zones.  It seems whenever my RDP window is affected in some way (e.g. resized, disconnected/reconnected, or remote session is locked/unlocked), all of my windows fall out of their respective zones and must be manually re-tethered.
I even find the setting to "remember zone on newly created windows"  is also not always obeyed.  It seems it works as soon as I lock a window to a zone, but when the issue surfaces above the remembered zone is forgotten.
Originally posted by @mcdonamw in https://github.com/microsoft/PowerToys/issues/9040#issuecomment-847333034

Thank you for reporting!
It looks like the issue is similar to https://github.com/microsoft/PowerToys/issues/758


Android Class 3 resources and README

Fixes #.
Changes proposed in this PR

If urgent please add the urgent label.

Android Class 3 resources


AutoSave Feature

Please add autosave feature to bracket. It will help a lot to me and other developers.

See extension  Autosave Files on Window Blur or Brackets Backup  from extension manager.
That should fix your use case.
Closing as extension available.

Thanks I did'nt see it :+1:


Fix/remove unsupported option

Please provide your name and company
Ray Harris, Fivetran Product Manager
Link the issue/feature request which this PR is meant to address
https://github.com/fivetran/dbt_salesforce_formula_utils/issues/100
Detail what changes this PR introduces and how this addresses the issue/feature request linked above.
Removes mention of "options 2 and 3" from the Readme.
Did you update the CHANGELOG?

[x] Yes

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

[x] Yes

Provide an emoji that best describes your current mood
:surfer:
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.
PR Template

Community Pull Request Template (default)

Maintainer Pull Request Template (to be used by maintainers)

@raymondgh See Slack for my review!


User can choose different tracking service

[x] Add third party service column in users tables
[ ] change code to fetch from user and pass to thirdPartyService.serviceFactory
[ ] fix testing

[ ] 前端介面選擇服務


ssh keys confusion

Hi,
Why would we want to copy our whole ~/.ssh folder content into data/ssh ? I mean, the keys in ~/.ssh on my laptop are MY keys, especially id_rsa which is the private key. Why would we want to add them in the virtual machine ? If I distribute the virtual machine to coworkers, everyone would have my SSH key. What am I missing ? Wouldn't it be better to let the virtual machine generate SSH keys, and then adding the public key in GitHub, BitBucket, ... ?
A little bit lost here... Thank you !

Well I think I got it now : you should have some SSH keys dedicated to the virtual machine before running vagrant up with your whole config including your apps repositories. If you don't have any, like if it's the first time you create your VM, you'll have to generate some - different from your laptop ones of course !


Attempting to get this working

When running minty login --help I get:
[user@machine minty]$ minty login --help
/home/user/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/pstore.rb:315:in transaction': undefined method locked?' for nil:NilClass (NoMethodError)
from /home/user/prog/minty/lib/minty/credentials.rb:56:in save' 	from /home/user/prog/minty/lib/minty/credentials.rb:14:in rescue in load'
from /home/user/prog/minty/lib/minty/credentials.rb:11:in load' 	from /home/user/prog/minty/lib/minty/cli/command.rb:11:in initialize'
from /home/user/prog/minty/bin/minty:9:in new' 	from /home/user/prog/minty/bin/minty:9:in <top (required)>'
from /home/user/.rvm/gems/ruby-1.9.3-p448/bin/minty:23:in load' 	from /home/user/.rvm/gems/ruby-1.9.3-p448/bin/minty:23:in '
from /home/user/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in eval' 	from /home/user/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in '
Is there a place I'm suppose to put my login information?
Thanks.

I had this same problem with ruby-1.9.3 on my own application (ruby-2.1.0 works fine).
The problem is that YAML::Store will not call the PStore initialize method if you don't throw a String into YAML::Store.new.
In this case (https://github.com/mattdbridges/minty/blob/master/lib/minty/credentials.rb#L55) a Pathname object is given which causes YAML::Store not to initialize the backend (PStore).
Therefor the required Mutex @lock in the PStore code is nil.
Change https://github.com/mattdbridges/minty/blob/master/lib/minty/credentials.rb#L55 to:
store = YAML::Store.new self.class.file.to_s
I know this is old, but google brought me here and I hope this helps people that will get here in the future.


feat(freertos): add os_cond_broadcast for pthread wrapper

I would like to build pthread but missing this one, when I try to put it into platform.c out side of the repo but it including some structure at here, so better to add to common part.

there is 1 failing, so how to re-trigger the CI, I think may be CI environment issue

there is 1 failing, so how to re-trigger the CI, I think may be CI environment issue

@tkernelcn yes, I re-ran the CI and merged this PR.


Tab completion issues on Jupyter notebook for a GEMPRO object

Seem to be having some issues when doing a tab complete for a GEMPRO object. Interrupting the kernel will kill the process unfortunately..need to hunt down the bug.

Not sure if related to https://github.com/jupyter/notebook/issues/2435

This is most likely the reason, especially when large dataframes exist in a GEMPRO object: https://github.com/ipython/ipython/issues/10493
Updating jedi from 0.10.2 to 0.11.1 (pip install jedi --upgrade) fixed the issue.


[Question]Any documents for the feature "prefix caching?"

Hi, thanks for your great job. According to the issue: #620 , prefix caching is supported in TensorRT-llm. I'd like to know is there any documents for the feature? Thanks !

Here are some document https://github.com/NVIDIA/TensorRT-LLM/blob/3d56a445e8ebf888e78be638faf6beec0a78f3c2/docs/source/batch_manager.md?plain=1#L137.

@byshiue  Hi, i tested here.
https://github.com/NVIDIA/TensorRT-LLM/blob/3d56a445e8ebf888e78be638faf6beec0a78f3c2/tensorrt_llm/runtime/model_runner_cpp.py#L166
and i add enable_block_reuse=True, for KvCacheConfig building process, but the profiles shows that it's same between enable_block_reuse=True and enable_block_reuse=False.
I tested the same prompt for 10 times, and warmup is also into consideration. The model is Yi-6B-Chat and the script i use is run.py.
Can you help to have a look? Thanks!

@byshiue Hi, i tested here.
https://github.com/NVIDIA/TensorRT-LLM/blob/3d56a445e8ebf888e78be638faf6beec0a78f3c2/tensorrt_llm/runtime/model_runner_cpp.py#L166
and i add enable_block_reuse=True, for KvCacheConfig building process, but the profiles shows that it's same between enable_block_reuse=True and enable_block_reuse=False.
I tested the same prompt for 10 times, and warmup is also into consideration. The model is Yi-6B-Chat and the script i use is run.py.
Can you help to have a look? Thanks!

Does prefix caching need to be combined with a specific kv chunking method? For example, if I want add enable_block_reuse=True，I should also set  enable paged_kv_cache when building.

@byshiue Hi, i tested here.
https://github.com/NVIDIA/TensorRT-LLM/blob/3d56a445e8ebf888e78be638faf6beec0a78f3c2/tensorrt_llm/runtime/model_runner_cpp.py#L166
and i add enable_block_reuse=True, for KvCacheConfig building process, but the profiles shows that it's same between enable_block_reuse=True and enable_block_reuse=False.
I tested the same prompt for 10 times, and warmup is also into consideration. The model is Yi-6B-Chat and the script i use is run.py.
Can you help to have a look? Thanks!

I have same situation, and the profiles shows that it's same prefill time between enable_block_reuse=True and enable_block_reuse=False.

To enable enable_block_reuse, you need to enable paged_kv_cache and use_paged_context_fmha.

do you know how to use system prompt caching in qwen1.5?

any follow up

@littletomatodonkey  Could you also share the scripts to run inference?

I think the above is happening because we need to set enableBlockReuse as True explicitly but the flag is not exposed for the user to toggle.
Python binding
cpp runtime
@byshiue can you confirm if this is the case

I think the above is happening because we need to set enableBlockReuse as True explicitly but the flag is not exposed for the user to toggle.
Python binding cpp runtime
@byshiue can you confirm if this is the case?

Hi, @ekagra-ranjan I fix the code in TensorRT-LLM, which is as follows. But the QPS does not change, seems that it's a problem but not the key-point.
        session_config.kv_cache_config = KvCacheConfig(
            free_gpu_memory_fraction=free_gpu_memory_fraction,
            max_attention_window=max_attention_window_size,
            sink_token_length=sink_token_length,
            enable_block_reuse=True)

@littletomatodonkey Could you also share the scripts to run inference?

@byshiue Hi, this is my inference code.
class TRTModel090(object):
    def __init__(self, config, *inputs, **kwargs):
        import tensorrt_llm
        from tensorrt_llm.runtime import ModelRunnerCpp as ModelRunner
        super().__init__()

        self.world_size = tensorrt_llm.mpi_world_size()
        self.runtime_rank = tensorrt_llm.mpi_rank()

        runner_kwargs = dict(engine_dir=config.name_or_path,
                             rank=self.runtime_rank)
        self.runner = ModelRunner.from_dir(**runner_kwargs)

    def get_sample_config(self, batch_size: int, **kwargs):
        import tensorrt_llm
        from tensorrt_llm.runtime import SamplingConfig
        kwargs = {
            **self.config.__dict__,
            **kwargs,
        }
        sampling_fields = SamplingConfig.__annotations__
        if kwargs.get('do_sample', False):
            seed = np.random.randint(
                low=0, high=2**31, size=(batch_size,))
            if self.world_size > 1:
                tensorrt_llm._utils.mpi_comm().Bcast(seed, root=0)
            seed = torch.tensor(seed)
        else:
            if "top_p" in kwargs:
                kwargs["top_p"] = 0.0
            if "top_k" in kwargs:
                kwargs["top_k"] = 0
            seed = None

        sampling_config = SamplingConfig(
            **{k: v for k, v in kwargs.items() if k in sampling_fields},
            end_id=kwargs['eos_token_id'],
            pad_id=kwargs['pad_token_id'],
        )
        sampling_config.random_seed = seed
        return sampling_config

    def generate(self, *args, **kwargs):
        input_ids = kwargs['input_ids']
        attention_mask = kwargs['attention_mask'].type(torch.bool)
        batch_input_ids = [input_ids[idx][attention_mask[idx]]
                           for idx in range(input_ids.size(0))]
        sampling_config = self.get_sample_config(input_ids.size(0), **kwargs)

        import time
        st = time.time()
        with torch.no_grad():
            outputs = self.runner.generate(
                batch_input_ids,
                sampling_config=sampling_config,
                max_attention_window_size=None,
                sink_token_length=None,
                output_sequence_lengths=True,
                return_dict=True)
            torch.cuda.synchronize()
        # return outputs
        output_ids = outputs["output_ids"]
        seq_lens = outputs["sequence_lengths"]
        ct = time.time() - st
        print(f"cost time: {ct :.4f} s")
        output_ids = [
            output_id[0][len(batch_input_ids[idx]):seq_len.item()] for idx, (output_id, seq_len) in enumerate(zip(output_ids, seq_lens))]
        outputs = {
            "input_ids": input_ids,
            "output_ids": output_ids,
        }
        return outputs

Hey, this looks like the right set of changes. Would you be able to re-try with a longer input and shorter output length (ideally a gen length of 1 to isolate)?
Reuse only applies to the context (prefill) phase, and it could be that your runtime is dominated by the generation phase, so any gains are not noticable.

Hey, this looks like the right set of changes. Would you be able to re-try with a longer input and shorter output length (ideally a gen length of 1 to isolate)? Reuse only applies to the context (prefill) phase, and it could be that your runtime is dominated by the generation phase, so any gains are not noticable.

@schetlur-nv Thanks for your reply, I tried output len=1, input len=400(same prefix 200), but the qps seems same when i open the prefix cache setting. (140 qps vs 139 qps)

@schetlur-nv - I have an application where given a context ABC and output_len as 3, I want to generate one token at a time and then call the llm with a fresh prompt with the new token for 5 times, i.e.,
request(ABC) -> llm -> D
request(ABCD) -> llm -> E
request(ABCDE) -> llm -> F
This is a bit different than the normal execution where ABC is a single request with 3 output token. In my case, I am calling llm 3 times each with new request prompt. Without block reuse, the kv has to be computed again for each new request. But with block reuse the new request will reuse the previous ones.
But since you said that only the prefill phase is saved, it means that in the 1st step when ABC was the reuqest, the llm computed the KV for D but only ABC is cached. So in the next request when the request is ABCD, the KV of D has to be computed again along with that of E. So each llm request has to generate 2 tokens in my case. Is this correct understanding?

@ekagra-ranjan - that is the behavior you'd see, but not because D's KV cache isn't saved from step 1 to 2, it is because of another restriction - we currently only reuse precomputed KV caches at the granularity of a cache block, so a single token will not be reused.
However, for a long enough ABC (that is at least one cache block), you should see substantial improvement in time to first token going from step 1 (first computation) to 2 & 3 (reuse).
The default KV cache page size is 128 tokens, so @littletomatodonkey 's example should actually work. Let us take a look at what may be happening.

@ekagra-ranjan - that is the behavior you'd see, but not because D's KV cache isn't saved from step 1 to 2, it is because of another restriction - we currently only reuse precomputed KV caches at the granularity of a cache block, so a single token will not be reused. However, for a long enough ABC (that is at least one cache block), you should see substantial improvement in time to first token going from step 1 (first computation) to 2 & 3 (reuse). The default KV cache page size is 128 tokens, so @littletomatodonkey 's example should actually work. Let us take a look at what may be happening.

Hi @schetlur-nv @ekagra-ranjan prefix cache worked for me finally, GptManager or executor must be used rather than ModelRunner or ModelRunnerCpp interface. enable_block_reuse also needs to be set. You may refer to: link

@ekagra-ranjan - that is the behavior you'd see, but not because D's KV cache isn't saved from step 1 to 2, it is because of another restriction - we currently only reuse precomputed KV caches at the granularity of a cache block, so a single token will not be reused.
However, for a long enough ABC (that is at least one cache block), you should see substantial improvement in time to first token going from step 1 (first computation) to 2 & 3 (reuse).
The default KV cache page size is 128 tokens,

@schetlur-nv - so for Draft Model approach in speculative sampling where the draft model outputs max_draft_len  number of tokens and it goes to the Target model, if kv cache block size = 128 and max_draft_len = 5 then the Target model will recompute the KV cache of tokens until the size of kv cache becomes 128, right?
So it we were reusing cache on token level then the Target model would run for 128/5 = 25.6 times but now with block level reuse the Target model runs for 5 + 10 + 15 + 20 + 25 + 30 + .... + 128/5 = 66.04 times. Is this correct?

@ekagra-ranjan - that is the behavior you'd see, but not because D's KV cache isn't saved from step 1 to 2, it is because of another restriction - we currently only reuse precomputed KV caches at the granularity of a cache block, so a single token will not be reused. However, for a long enough ABC (that is at least one cache block), you should see substantial improvement in time to first token going from step 1 (first computation) to 2 & 3 (reuse). The default KV cache page size is 128 tokens, so @littletomatodonkey 's example should actually work. Let us take a look at what may be happening.

Hi @schetlur-nv @ekagra-ranjan prefix cache worked for me finally, GptManager or executor must be used rather than ModelRunner or ModelRunnerCpp interface. enable_block_reuse also needs to be set. You may refer to: link

how much throughput gain do you observe?

Hi @schetlur-nv - in addition to this can you also share more detail on the working of enable kv cache reuse including the following plus anthing that might be of interest which is not mentioned in doc:

In the doc it was not mentioned that cache is preserved on "block level" and not "token level", i.e. each token is not guaranteed to be cached but rather a block of tokens. We get to know this from the github issue.
What is the cache eviction policy of the kv cache reuse approach?

@ekagra-ranjan - that is the behavior you'd see, but not because D's KV cache isn't saved from step 1 to 2, it is because of another restriction - we currently only reuse precomputed KV caches at the granularity of a cache block, so a single token will not be reused. However, for a long enough ABC (that is at least one cache block), you should see substantial improvement in time to first token going from step 1 (first computation) to 2 & 3 (reuse). The default KV cache page size is 128 tokens, so @littletomatodonkey 's example should actually work. Let us take a look at what may be happening.

Hi @schetlur-nv @ekagra-ranjan prefix cache worked for me finally, GptManager or executor must be used rather than ModelRunner or ModelRunnerCpp interface. enable_block_reuse also needs to be set. You may refer to: link

how much throughput gain do you observe?

Hi @renjie0 After using gptmanager rather than gptsession object, the prefix cache speedup finally works for me.

@schetlur-nv How can this be enabled through launch_triton_server.py? Is this enabled by default?

Yes it's in the config file. Please refer to https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/kv_cache_reuse.md for more details.

@schetlur-nv, thank you very much. Regarding the info on that page, consider a prompt structured as:
"Please ask [user] how their day is going. Be sure to greet them by name".
If [user] changes every request, will the entire prompt after [user] be thrown out and regenerated, or if, supposing for sake of example, blocks contain of 2 tokens and each word is one token, would everything except "[user] how" be kept, and only that block reloaded?

The former - "Please ask" will be reused, and everything after regenerated. This is because mathematically, activations for all tokens after [user] will attend to [user] and therefore will depend on it.


Common package not found

Search before asking

[X] I had searched in the issues and found no similar issues.

Question
Hi,
I created an app that relies on Apache EventMesh. I prepared the build with Maven and I found the packages at mvnrepository.com.
I included java-sdk, common and  connector-api, but when launching ./mvnw clean package it gives me many errors reporting that it cannot find symbols (for example it says package org.apache.eventmesh.common.protocol.tcp does not exist). It is related to package org.apache.eventmesh.common, sdk seems not to be the problem.
Here my pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com</groupId>
	<artifactId>myapp</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>MyApp</name>
	<description>Description</description>
	<packaging>jar</packaging>
	<properties>
		<java.version>1.8</java.version>
		<maven.compiler.source>1.7</maven.compiler.source>
    	<maven.compiler.target>1.7</maven.compiler.target>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.apache.eventmesh</groupId>
			<artifactId>eventmesh-sdk-java</artifactId>
			<version>1.4.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.eventmesh</groupId>
			<artifactId>eventmesh-common</artifactId>
			<version>1.4.0</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.eventmesh</groupId>
			<artifactId>eventmesh-connector-api</artifactId>
			<version>1.4.0</version>
			<scope>runtime</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<shadedArtifactAttached>true</shadedArtifactAttached>
							<transformers>
								<transformer implementation=
								"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
									<mainClass>com.myapp.MyApp</mainClass>
							</transformer>
						</transformers>
					</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>

What could be the problem?

I re-made the entire project using built-in vscode maven tool and it seems to work now.


Cannot patch the 'httpx' requests while unit testing

Sanic-testing uses httpx under the hood, which makes monkeypatching httpx requests hard to implement.
For example if we have and endpoint which makes external requests, and if we monkeypatch this request, then it patches an actual request to endpoint:
# views.py
import httpx
...
@app.get('/test')
async def view_test(request):
    async with httpx.AsyncClient() as client:
        api_response = await client.get(
            'https://jsonplaceholder.typicode.com/todos/1',
            timeout=10,
        )
        resp = api_response.json()
        resp['foo'] = 0
        return HTTPResponse(json.dumps(resp), 200)

Test function:
# test_views.py
import httpx, pytest
...
# The `client` parameter is the fixture of web app
def test_view_test(client, monkeypatch):
    async def return_mock_response(*args, **kwargs):
        return httpx.Response(200, content=b'{"response": "response"}')

    monkeypatch.setattr(httpx.AsyncClient, 'get', return_mock_response)
    _, response = client.test_client.get('/test')
    assert response.json == {'response': 'response', 'foo': 0}
    assert response.status_code == 200

Here, we replace our request _, response = client.test_client.get('/test') with the patched one. Which makes us customize the patch by excluding the host address.

This might be as simple as exposing a fixture like this:
@pytest.fixture
def httpx():
    orig = AsyncClient.request
    mock = AsyncMock()

    async def request(self, method, url, **kwargs):
        if "<IP_ADDRESS>" in url:
            return await orig(self, method, url, **kwargs)

        return await mock(method, url, **kwargs)

    AsyncClient.request = request
    yield mock
    AsyncClient.request = orig

Then ...
def test_outgoing(app: Sanic, httpx: AsyncMock):
    httpx.return_value = Response(201, json={"foo": "bar"})

    _, response = app.test_client.post("")
    assert response.status == 201
    assert response.json == {"foo": "bar"}
    httpx.assert_awaited_once_with(
        "POST",
        "https://httpbin.org/post",
        content=ANY,
        files=ANY,
        data=ANY,
        json=ANY,
        cookies=ANY,
        params=ANY,
        headers=ANY,
        auth=ANY,
        follow_redirects=ANY,
        timeout=ANY,
        extensions=ANY,
    )


"stopAll" ends debugging after the second "attach" config is disconnected

Start the "VS Code" compound config
Detach "Attach to Main Process"
Everything else is still attached
Detach "Attach to Shared Process"
All the remaining configs are stopped

Same thing if I do the 2 in the opposite order so I don't think it's anything special about the Shared Process. Is it all supposed to shut down after one attach config is detached, or should it only shut down when a launch config is stopped?

I believe this is because the "main process" you have selected is actually the child session of the main process. Terminating that causes the parent session to exit, but I've set it up so that stopAll only bubbles explicit exits from the user.
For attachment, though, it should be totally safe to forego the parent session. I'll look at getting rid of that.

I've since modified stopAll to tell all targets to stop whenever any target, not just a parent, is stopped.