Selective sharing and user blocking?

I realize I may be asking for the sun, moon, and stars here, but it would spectacular if Fritter had the option of selectively sharing content and blocking users.  Right now, of course, Fritter has the model that I don't have to follow others but anyone that follows anyone else following me can also find and follow me.
My idea for this is almost certainly either fundamentally flawed or else already under consideration.  But I figure I'll share it anyway.  Selective sharing and user blocking:

'Public' Fritter sharing works as it does today.
Fritter accounts generate a short-lived symmetric key for decrypting their selectively shared content.
Fritter accounts publish one message per each permitted follower with that symmetric key encrypted using the follower's public key.  Other followers read something in the key-distribution message to indicate it's not meant for them and ignore it.   OR the account publishes one giant message that is some kind of delimited string of follower public keys and follower public key encrypted symmetric keys.
Then the account publishes the actual content, and the followers use the symmetric key to decrypt.  Anyone can download and anyone can even help distribute the person's content using dat, but without the symmetric key the data is useless.
When a new follower is added, the Fritter account just distributes their symmetric key to new followers.  When a follower is removed, the Fritter account generates and distributes a new symmetric key that will be used for all subsequent posts.
When the Fritter account wants to share a message with only a few followers, a new symmetric key is generated and shared with those recipients.  Then when the user returns to sharing with their entire set of followers, a new symmetric key is generated and shared again.

Thoughts?  I mean the ugly side is that a busy account with lots of activity would be generating thousands of tiny messages for key exchanges just to post "OMG the dog just stole a slice of pizza off the table!"   But despite the high volume of symmetric key exchange messages the key exchange message size would be tiny.
I ask for this because I think a p2p social network is wonderful, but me and most of the people I know want a p2p Facebook/Instagram, not a p2p Twitter.

SSB does something similar for private messages, see https://github.com/auditdrivencrypto/private-box. Basically when you see one of these encrypted messages, you try to decrypt. If you're a recipient, decryption will succeed. Otherwise, you can just ignore it. (IIRC it has up to 8 recipients so you try 8 times.)
I think you're right that encryption schemes are needed because private sharing is a huge use-case. I don't have the resources to dedicate to that yet but I welcome folks to try out all kinds of schemes!

Thank you for your response.  I'll play around with the idea a bit - but don't hold your breath.

I don't follow how that change would facilitate this feature.  Would you please explain in a little more detail?

As pfrazee mentioned, you could use private-box to encrypt messages so that only the people the message are destined for can decrypt and read them.
WebDB, the thing that Fritter uses for indexing posts currently only support JSON, so you'd need a way to attempt to decrypt messages before they get indexed with WebDB.
The change I linked to could be used in combination with a file extension for encrypted messages to have WebDB automatically attempt to run the decryption on them.
After that you'd just need to add something for tracking people's public keys for private-box (probably a field in the profile.json?) and something for generating these private messages.

I see, thanks for the answer.  There is enough of dat and Fritter's architecture I don't grasp that my own mental model of the solution was at a very high level.  The change you're describing is, as far as I can tell, more on the order of layering additional features and behavior on top of what Fritter already does.  My rough, hand-wavy idea was to mess around with Fritter's guts.

Well, you could simplify it further, actually. You can just encrypt the text field within the messages with secret-box and add a new field marking it as encrypted.
Then you'd just need to track people's public keys for secret-box from their profile.json, and would need to modify the fritter UI for rendering the message.
You'd still have the metadata on when it was posted and what the post might be replying to, though.

It would be nicer if the metadata could be inside the encrypted payload.  But I'm in serious danger of planning feature enhancement 42 when feature 1 never gets written.  Let me fork this and start playing games.


Users are redirected because payment can't be created

Expected behavior
Users should be able to pay
Actual behavior
Some users aren't able to create payments. They tried different computers but all seem to fail.
Steps to reproduce the behavior
It is hard to reproduce. I'm able to create payments from different environments. But as said the users aren't. Nothing appears in my log file, even when loggin is enabled and set to Everything. The error happens when the user want to go to the payment page. If i check the ps_mollie_payments table i can't find the cart. So something is going on after the payment button.
Environment

PrestaShop version: <IP_ADDRESS>.
Mollie module version: 4.0.9.
PHP version: 7.2.34

Hey thanks for your message @jacob-v-dam sorry to hear this we believe that it is very annoying.
First thing, did you try to reset the module? I guess you did major upgrade from 3.5?
Second, is your order status set correctly to "Awaiting Mollie Payment"?

Best Regards.

First I upgraded from the earlier version, but this gave some unexpected behavior, then we removed the module and reinstalled it. This is installation is uploaded 2020-10-21, so it is new.
I don't have the option "Send mails when Awaiting". To be sure I was running the latest version I downloaded the latest version from Github a second ago.

Hey @jacob-v-dam so you downloaded Mollie 4.0.9 and now the users can do Orders?
Can you go to module Advanced Settings tab, and switch the Debug Levels

And then please try to checkout and let us know what error do you get when redirected to the Mollie Payment page?
Thanks.
Best Regards.

I already enabled this option. But nothing else then mollie webhooks appears in my log file. Even the files var/logs/ are not filled with mollie errors.

Hey @jacob-v-dam ok, thanks for your information.
When you enable the Debug level, you can actually see what errors are appearing from API side when you click the final payment CTA button from Prestashop and when the module redirects the user to the Mollie payment 3D screen. Sometimes it is an essential part of many errors.
Could you please give us some video screen capture how the order is being made?
Or in order to investigate your issue and help you efficiently, can you send us an access to your backoffice with its url and a FTP access to your store:
URL back office:
login back office:
password back office:
FTP host:
FTP login:
FTP password:
FTP port:
Send everything to<EMAIL_ADDRESS>We will replicate the issue and provide you a conclusion.
Best Regards.

After some more testing I found the error. It is the same as #227. When the user enters his mobile phonenumber in the number field the error raises by the Mollie API. This shouldn't be a problem.
On the other hand. I would expect this error to show up in the PrestaShop logs with error code 3 or 4. But this error is never logged! And yes I have enabled the debug info and logging set to everything:

I created a video due to privacy reasons this is send to your e-mail.

@jacob-v-dam assuring that we got your video reproduction. Thanks.
Best Regards.

Successfully fixed the phone issue for the client.


Add socket communication function

Hi authors, should you contemplate the adoption of sockets for the implementation of all send and receive functions for MPSI?

Thanks for the suggestion! I'm happy to merge such a PR but this is not a personal priority at the moment.


RKE2 and K3S - KDM Update for K8s September 2024 patch release for Rancher 2.8

KDM Updates

New Kubernetes Version
Min Rancher Version
Max Rancher Version

v1.28.14+rke2r1
v2.8.3-alpha1
v2.8.99

v1.28.14+k3s1
v2.8.3-alpha1
v2.8.99

KDM Branch
dev-v2.8
Chart Changelog

Chart Name
New Version
Affected Kubernetes Version(s)

TBD
Argument Changelog

Argument Name
Server/Agent Arg
Arg Type
Affected Kubernetes Version(s)

TBD

Additional Notes

k3s version: v1.28.14-rc2; rancher version: 2.8.6-rc3(installed from 2.8-head) using https://raw.githubusercontent.com/rancher/kontainer-driver-metadata/866a9fc3d11df58a24cd21f4c46d490cbb7c0029/data/data.json
UI displays: v1.28.14-rc2+k3s1 as expected:

rke2 version: 1.28.14-rc3+rke2r1; rancher version 2.8.6-rc3(installed from 2.8-head)
driver data.json link: https://raw.githubusercontent.com/rancher/kontainer-driver-metadata/193bb7457249dda77101f29f20917f0a10d77684/data/data.json

UI displays: 1.28.14-rc3+rke2r1 as expected:


Question: Can't login with grafana with Microk8s 1.25

Hi,
I have enabled the following:   microk8s.enable observability
I have port forwarded the service:
microk8s.kubectl port-forward -n observability service/kube-prom-stack-grafana --address <IP_ADDRESS> 3000:80
When I navigate to http://localhost:3000  and use username: admin and password: admin the website says: invalid username or password.
Any ideas what the default username/password could be?
Regards,

Nevermind: retrieved it using
microk8s.kubectl get secrets/kube-prom-stack-grafana -n observability -o jsonpath="{.data.admin-password}" | base64 --decode;echo

It should also be printed in the output on microk8s enable prometheus.


Not able to create device context for client in wfreerdp-server.

In wf_mirage.c -> createDC function returns NULL where wfi->deviceName = \.\DISPLAYV1
Check with GetLastError() which returns 0 means no error.

but when I change the value to "DISPLAY" it gives me following values but null check is bypassed as of now (which gives me error in future code discussed at end).

I have installed Mirage Driver and using it is as mirror driver.

I am not sure if this is a bug or problem at my side (if yes, what's that).

[Similar to] ContextNew callback failed. Failed to create new peer context #4675

There is no problem with security like firewall, defender or an antivirus (all are disabled).

On client side I am able to see only a black screen with no error as follows :

Here's the error that i got and not able to solved this as this referenced to creaeDC()

Commented a bit of code to see if this is working or not which is as below because it always returns me '0'.

@dashingvik sorry, can´t help much there. It has been broken for some time but not much has been fixed (and currently mostly linux/mac devs are providing pr)
That aside, happy to help out on IRC or the mailing list as well as we can, but here you need to debug yourself :/

@akallabeth Is it working your side ? If yes, can you let me know the value of following variable in wf_mirage.c so that I can do some R&D ?

wfi->changeBuffer & status in [ ExtEscape(wfi->driverDC, dmf_esc_usm_pipe_map, 0, 0, sizeof(GETCHANGESBUF), (LPSTR) wfi->changeBuffer); ]
-wfi->deviceName in CreateDC();

@dashingvik no, did not test it, we currently have not many people reporting/fixing windows side bugs.

@akallabeth Is there any one who can help me with this issue as I am struggling here for so many days and I am not able to find any work around :/

@dashingvik Is this open issue resolved? if not, we might be able to assist. We are just users but we will try to reproduce this issue the best we can. There are still a lot of outstanding issues since last year that no one seems to know how to fix them. Please post here or email us how to reproduce this issue and we will take it from there. Cheers.

@dashingvik Is this open issue resolved? if not, we might be able to assist. We are just users but we will try to reproduce this issue the best we can. There are still a lot of outstanding issues since last year that no one seems to know how to fix them. Please post here or email us how to reproduce this issue and we will take it from there. Cheers.

@sfhacker Hey, your reply brings back some hope for me. I am still stuck at that issue and finding some work around for it. I am providing my email ID so that we can be in touched for further communication :)
Email-ID =><EMAIL_ADDRESS>

The problem of not connecting to wfreerdp server in Windows 7 system,
The solution I found is to first install the VNC dfmirage-setup-2.0.301 driver, compile and install the service segment of tightvnc. After using the client connection, and after tightvnc initializes and activates the driver, win7's wfreerdp server can be connected successfully

I tested and changed the wf_mirage.c file to realize the connection of the windows 7 system
BOOL wf_mirror_driver_update(wfInfo* wfi, int mode)
{
HDC dc;
BOOL status;
DWORD* extHdr;
WORD drvExtraSaved;
DEVMODE* deviceMode;
LONG disp_change_status;
DWORD dmf_devmodewext_magic_sig = 0xDF20C0DE;
if ((mode != MIRROR_LOAD) && (mode != MIRROR_UNLOAD))
{
	WLog_DBG(TAG, "Invalid mirror mode!");
	return FALSE;
}

deviceMode = (DEVMODE*)malloc(sizeof(DEVMODE) + EXT_DEVMODE_SIZE_MAX);

if (!deviceMode)
	return FALSE;

deviceMode->dmDriverExtra = 2 * sizeof(DWORD);
extHdr = (DWORD*)((BYTE*)&deviceMode + sizeof(DEVMODE));
extHdr[0] = dmf_devmodewext_magic_sig;
extHdr[1] = 0;
drvExtraSaved = deviceMode->dmDriverExtra;
memset(deviceMode, 0, sizeof(DEVMODE) + EXT_DEVMODE_SIZE_MAX);
deviceMode->dmSize = sizeof(DEVMODE);
deviceMode->dmDriverExtra = drvExtraSaved;

if (mode == MIRROR_LOAD)
{
	wfi->virtscreen_width = GetSystemMetrics(SM_CXVIRTUALSCREEN);
	wfi->virtscreen_height = GetSystemMetrics(SM_CYVIRTUALSCREEN);

	EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, deviceMode);
	/*
	deviceMode->dmPelsWidth = wfi->virtscreen_width;
	deviceMode->dmPelsHeight = wfi->virtscreen_height;
	deviceMode->dmBitsPerPel = wfi->bitsPerPixel;
	deviceMode->dmPosition.x = wfi->servscreen_xoffset;
	deviceMode->dmPosition.y = wfi->servscreen_yoffset;
	*/
}

deviceMode->dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT | DM_POSITION;
_tcsncpy_s(deviceMode->dmDeviceName, 32, wfi->deviceName, _tcslen(wfi->deviceName));
disp_change_status =
    ChangeDisplaySettingsEx(wfi->deviceName, deviceMode, NULL, CDS_UPDATEREGISTRY, NULL);
status = (disp_change_status == DISP_CHANGE_SUCCESSFUL) ? TRUE : FALSE;

if (!status)
	wf_mirror_driver_print_display_change_status(disp_change_status);

return status;

}

It seems that the reason is  bitsPerPixel==0
and apply the follow diff code:
extHdr = (DWORD*)((BYTE*)&deviceMode + sizeof(DEVMODE));
change to
extHdr = (DWORD*)((BYTE*)deviceMode + sizeof(DEVMODE));
can prevents stack overwrite when the client exits.

This open issue is from 2019! Wow!


PonyBench has minor bias

Because of the way the lambda function for the benchmarking is passed around (e.g. in _Bench.apply), the benchmarked code will be executed through a virtual call. This introduces a minor overhead as the function call is included in the measurement. I'm not sure how to fix this.

It looks like perhaps we could parameterise apply on a concrete type that fulfils the lambda, which would give us a non-virtual call. Talking on the sync, we may need an _AutoBenchAsync to eliminate the match statement in _AutoBench.

When we have #1184 it should be possible for the type argument to be inferred to be the concrete anonymous lambda type, avoiding the need for a named type.


[1.0] CASE session establishment fails after sending Sigma1

Reproduction steps
We are developing on top of Matter SDK v1.0 attempting to work with ESP devkit.

Using Android chip-tool logic pair with ESP lighting app.

Bug prevalence
all the time
GitHub hash of the SDK that was being used
1.0 head
Platform
android
Platform Version(s)
No response
Type
Platform Issue
Anything else?
From the controller(android) , here are the relavent logs when CASE session establishment starts:
08-01 23:31:50.056 19571 19616 D DIS     : Node ID resolved for A377CD260F42F699:0000000000000001
08-01 23:31:50.056 19571 19616 D DIS     : 	Hostname: espressif.lan
08-01 23:31:50.056 19571 19616 D DIS     : 	IP Address #1: <IP_ADDRESS>
08-01 23:31:50.056 19571 19616 D DIS     : 	Port: 5540
08-01 23:31:50.056 19571 19616 D DIS     : 	Mrp Interval idle: not present
08-01 23:31:50.056 19571 19616 D DIS     : 	Mrp Interval active: not present
08-01 23:31:50.056 19571 19616 D DIS     : 	TCP Supported: 1
08-01 23:31:50.056 19571 19616 D DIS     : Lookup clearing interface for non LL address
08-01 23:31:50.056 19571 19616 D DIS     : UDP:<IP_ADDRESS>:5540: new best score: 2
08-01 23:31:50.056 19571 19616 D DIS     : Checking node lookup status after 1014 ms
08-01 23:31:50.056 19571 19616 D DIS     : OperationalSessionSetup[1:0000000000000001]: Updating device address to UDP:<IP_ADDRESS>:5540 while in state 2
08-01 23:31:50.057 19571 19616 D CTL     : OperationalSessionSetup[1:0000000000000001]: State change 2 --> 3
08-01 23:31:50.057 19571 19616 D IN      : SecureSession[0xb40000732fcb8368]: Allocated Type:2 LSID:64894
08-01 23:31:50.057 19571 19616 D SC      : Initiating session on local FabricIndex 1 from 0x000000000001B669 -> 0x0000000000000001
08-01 23:31:50.078 19571 19616 D SC      : Including MRP parameters
08-01 23:31:50.079 19571 19616 D EM      : <<< [E:22343i M:24509042] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
08-01 23:31:50.079 19571 19616 D IN      : (U) Sending msg 24509042 to IP address 'UDP:<IP_ADDRESS>:5540'
08-01 23:31:50.079 19571 19616 D SC      : Sent Sigma1 msg
08-01 23:31:50.079 19571 19616 D CTL     : OperationalSessionSetup[1:0000000000000001]: State change 3 --> 4

On the devkit:
I (45034) chip[DIS]: Advertise operational node A377CD260F42F699-0000000000000001
I (45044) chip[DIS]: CHIP minimal mDNS configured as 'Operational device'; instance name: A377CD260F42F699-0000000000000001.
I (45054) chip[DIS]: mDNS service published: _matter._tcp
I (45234) wifi:<ba-add>idx:1 (ifx:0, 38:8b:59:d7:95:0d), tid:0, ssn:0, winSize:64
I (45234) chip[EM]: >>> [E:22343r S:0 M:24509042] (U) Msg RX from 0:29504484862350DE [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
I (45254) chip[IN]: CASE Server received Sigma1 message . Starting handshake. EC 0x3fc9bc78
I (45264) chip[IN]: CASE Server disabling CASE session setups
I (45264) chip[EM]: <<< [E:22343r S:0 M:159881757 (Ack:24509042)] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:10 (SecureChannel:StandaloneAck)
I (45274) chip[IN]: (U) Sending msg 159881757 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
I (45284) chip[SC]: Received Sigma1 msg
I (45294) chip[SC]: CASE matched destination ID: fabricIndex 1, NodeID 0x0000000000000001
I (45814) chip[EM]: <<< [E:22343r S:0 M:159881758 (Ack:24509042)] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:31 (SecureChannel:CASE_Sigma2)
I (45824) chip[IN]: (U) Sending msg 159881758 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
I (45824) chip[SC]: Sent Sigma2 msg
I (45824) chip[DL]: IP_EVENT_GOT_IP6
I (45834) chip[DL]: IPv6 addr available. Ready on WIFI_STA_DEF interface: fe80:0000:0000:0000:5acf:79ff:fe1e:e098
I (45854) app_main: Interface IP Address changed
I (45854) chip[DIS]: Updating services using commissioning mode 0
I (45854) chip[DIS]: CHIP minimal mDNS started advertising.
I (45874) chip[DIS]: Advertise operational node A377CD260F42F699-0000000000000001
I (45884) chip[DIS]: CHIP minimal mDNS configured as 'Operational device'; instance name: A377CD260F42F699-0000000000000001.
I (45894) chip[DIS]: mDNS service published: _matter._tcp
E (45894) chip[SVR]: Server initialization complete
I (45904) chip[DIS]: Updating services using commissioning mode 0
I (45914) chip[DIS]: CHIP minimal mDNS started advertising.
I (45934) chip[DIS]: Advertise operational node A377CD260F42F699-0000000000000001
I (45934) chip[DIS]: CHIP minimal mDNS configured as 'Operational device'; instance name: A377CD260F42F699-0000000000000001.
I (45944) chip[DIS]: mDNS service published: _matter._tcp
I (45954) chip[IM]: No subscriptions to resume
I (46204) chip[IN]: (U) Sending msg 159881758 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
I (46604) chip[IN]: (U) Sending msg 159881758 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
I (47244) chip[IN]: (U) Sending msg 159881758 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
I (48134) chip[IN]: (U) Sending msg 159881758 to IP address 'UDP:<IP_ADDRESS>%st1:5541'
E (49634) chip[EM]: Failed to Send CHIP MessageCounter:159881758 on exchange 22343r sendCount: 4 max retries: 4
E (59074) chip[BLE]: ack recv timeout, closing ep 0x3fca2160
I (59074) chip[BLE]: Releasing end point's BLE connection back to application.
I (63014) ROUTE_HOOK: Ignore invalid ICMP packet
E (80034) chip[SC]: CASESession timed out while waiting for a response from the peer. Current state was 2
E (80034) chip[IN]: CASE Session establishment failed: 32
I (80044) chip[IN]: CASE Server enabling CASE session setups
I (98164) chip[FS]: Fail-safe timer expired
E (98164) chip[SVR]: Failsafe timer expired
I (98164) chip[SC]: SecureSession[0x3fc9a3c0]: Moving from state 'kActive' --> 'kPendingEviction'
E (98174) chip[SVR]: Commissioning failed (attempt 1): 32
I (98184) chip[DIS]: Updating services using commissioning mode 1
I (98184) chip[DIS]: CHIP minimal mDNS started advertising.
I (98194) chip[DIS]: Advertise operational node A377CD260F42F699-0000000000000001
I (98194) chip[DIS]: CHIP minimal mDNS configured as 'Operational device'; instance name: A377CD260F42F699-0000000000000001.
I (98214) chip[DIS]: mDNS service published: _matter._tcp
I (98214) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
I (98224) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 365AD393A71F97FC.
I (98254) chip[DIS]: mDNS service published: _matterc._udp
E (98254) chip[ZCL]: OpCreds: Got FailSafeTimerExpired
E (98254) chip[ZCL]: OpCreds: Proceeding to FailSafeCleanup on fail-safe expiry!
E (98264) chip[FP]: Reverting pending fabric data for fabric 0x1
E (98284) chip[FP]: Warning: metadata not found during delete of fabric 0x1
I (98294) chip[FP]: Fabric (0x1) deleted.
I (98294) chip[ZCL]: OpCreds: Fabric index 0x1 was removed
I (98294) chip[DIS]: Updating services using commissioning mode 1
I (98304) chip[DIS]: CHIP minimal mDNS started advertising.
I (98334) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
I (98334) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 365AD393A71F97FC.
I (98354) chip[DIS]: mDNS service published: _matterc._udp
I (98374) chip[TS]: Pending Last Known Good Time: 2023-06-12T05:01:25
I (98374) chip[TS]: Previous Last Known Good Time: 2023-06-12T05:01:25
I (98384) chip[TS]: Reverted Last Known Good Time to previous value
E (98394) chip[FP]: Warning: metadata not found during delete of fabric 0x1
E (98394) chip[ZCL]: OpCreds: failed to delete fabric at index 1: d8
I (98404) esp_matter_attribute: ********** W : Endpoint 0x0000's Cluster 0x00000030's Attribute 0x00000000 is 0 **********
I (98414) app_main: Commissioning failed, fail safe timer expired
I (98414) chip[FS]: Fail-safe cleanly disarmed
I (98434) app_main: Commissioning window opened
I (98434) app_main: Fabric will be removed
I (98444) app_main: Fabric removed successfully
I (98444) app_main: Fabric will be removed

As seen in the logs, Devkit claims to have sent the sigma2 message, however the controller has'nt received it. Is this a known issue in the branch ?

Any pointers to further root cause the problem ?
Does the log message 'E (49634) chip[EM]: Failed to Send CHIP MessageCounter:159881758 on exchange 22343r sendCount: 4 max retries: 4
' mean that the device put the pkt on the radio ? Or it failed in some other way ?

Same problem here with connectedhomeip v<IP_ADDRESS>-1004-g5b4f800466:
I (340055) chip[DMG]: Registered a ReadHandler that will schedule a report between system Timestamp: 340057 and system Timestamp 340057.
I (340065) chip[IM]: Resuming subscriptionId<PHONE_NUMBER>
I (340265) chip[DIS]: Checking node lookup status after 200 ms
I (340575) chip[DIS]: UDP:<IP_ADDRESS>%en1:5540: new best score: 2  <--- THIS IS GOOGLE NEST HUB
I (340575) chip[DIS]: UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121%en1]:5540: new best score: 4
I (340585) chip[DIS]: UDP:[2001:1708:2580:DD01:215F:5313:96E5:B383%en1]:5540: score has not improved: 4
I (340595) chip[DIS]: UDP:[2001:1708:2580:DD01:313E:CF5E:3D31:90D0%en1]:5540: score has not improved: 4
I (340605) chip[DIS]: UDP:[2001:1708:2580:DD01:7DA1:14F9:A889:64AE%en1]:5540: score has not improved: 4
I (340615) chip[DIS]: Checking node lookup status after 545 ms
I (340615) chip[SC]: Initiating session on local FabricIndex 1 from 0x000000001D16B0FB -> 0x00000000E34EC3E0
I (340685) chip[EM]: <<< [E:52478i S:0 M:73105355] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
I (340685) chip[IN]: (U) Sending msg 73105355 to IP address 'UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121]:5540'
I (340695) chip[SC]: Sent Sigma1 msg
I (341045) chip[IN]: (U) Sending msg 73105355 to IP address 'UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121]:5540'  <--- THIS IS GOOGLE NEST HUB
I (341405) chip[IN]: (U) Sending msg 73105355 to IP address 'UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121]:5540'
I (342005) chip[IN]: (U) Sending msg 73105355 to IP address 'UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121]:5540'
E (342015) chip[EM]: Ignoring transient send error: 3000001 on exchange 52478i
I (342905) chip[IN]: (U) Sending msg 73105355 to IP address 'UDP:[2001:1708:2580:DD01:104E:1640:A26B:D121]:5540'
E (342905) chip[EM]: Ignoring transient send error: 3000001 on exchange 52478i
E (344525) chip[EM]: Failed to Send CHIP MessageCounter:73105355 on exchange 52478i sendCount: 4 max retries: 4
E (346905) chip[SC]: CASESession timed out while waiting for a response from the peer. Current state was 4
E (346905) chip[DMG]: Failed to establish CASE for subscription-resumption with error '32'

I have validated with tcpdump that there are packets coming from the devkit to the android device controller. however these dont seem to make it up the application on the controller. How can i debug this further ?

The problem has been root caused to not starting up IO thread that processes the events.

@vineelasmile  hi guy, I run into the same problem, what do you mean don't start up IO Thread that process the events, I don't catch that , can you provide more detail for me?

Resetting network of the android phone can resolve the problem. But why?

i am using Android with Matter SDK1.3 for commissioning and faced this similar problem some of the time. By rebooting the phone and /or wifi router the issue will be gone. Can anyone share what is the root cause and how to fix it?
APP log:
17:49:49.929  E  Failed to Send CHIP MessageCounter:25176658 on exchange 6916i sendCount: 4 max retries: 4
17:49:52.151  D  null.onCharacteristicChanged: 18ee2ef5-263d-4559-959f-4f9c429f9d12
17:49:54.655  D  Received SendWriteRequest
17:49:54.735  D  null.onCharacteristicWrite: 18ee2ef5-263d-4559-959f-4f9c429f9d11 -> 0
17:49:55.668  I  onMethodCall() -> method=discoverCommissionableNodes, arguments={fabricId=FAB909644871269F}
17:49:55.670  D  Starting service discovery for '_matterc._udp' with callbackHandle:<PHONE_NUMBER>68
17:49:55.674  I  Started service '_matterc._udp'
17:49:55.681  I  Found service '138DC0C25BA49FCE'
17:49:55.681  I  Found service '420729C9E124DCB9'
17:49:57.291  E  CASESession timed out while waiting for a response from peer <DEDEDEDE52808217, 8>. Current state was 1
17:49:57.292  D  SecureSession[0xb40000722d54fa70]: Released - Type:2 LSID:39992
17:49:57.292  D  OperationalSessionSetup[8:DEDEDEDE52808217]: State change 4 --> 2
17:49:57.292  D  OperationalSessionSetup[8:DEDEDEDE52808217]: State change 2 --> 1
17:49:57.292  D  OperationalSessionSetup:attempts done: 1, attempts left: 2, retry delay 1s, status src/system/SystemLayerImplSelect.cpp:214: Success
17:49:57.292  D  OperationalSessionSetup[8:DEDEDEDE52808217]: State change 1 --> 6
17:49:57.292  E  Session establishment failed for <DEDEDEDE52808217, 8>, error: src/protocols/secure_channel/CASESession.cpp:599: CHIP Error 0x00000032: Timeout.  Next retry expected to get a response to Sigma1 or fail within 11 seconds
17:49:57.292  D  Skipping arming failsafe: new time (71 seconds from now) before old time (861 seconds from now)
Device log (ESP matter: ICD_APP):
I (270814) chip[EM]: >>> [E:6917r S:0 M:25176659] (U) Msg RX from 0:1B87127A5F8F137E [0000] to<PHONE_NUMBER>000000 --- Type 0000:30 (SecureChannel:CASE_Sigma1) (B:196)
I (270866) chip[EM]: <<< [E:6917r S:0 M:250376573 (Ack:25176659)] (U) Msg TX from<PHONE_NUMBER>000000 to 0:1B87127A5F8F137E [0000] [UDP:[FD0E:9B1F:4691:66F9:ABC8:CA2E:3728:628B]:52781] --- Type 0000:10 (SecureChannel:StandaloneAck) (B:26)
I (349372) chip[EM]: >>> [E:6918r S:0 M:25176660] (U) Msg RX from 0:40270046C6F28D40 [0000] to<PHONE_NUMBER>000000 --- Type 0000:30 (SecureChannel:CASE_Sigma1) (B:196)
I (349424) chip[IN]: CASE Server received Sigma1 message . Starting handshake. EC 0x4081b530
I (349427) chip[EM]: <<< [E:6918r S:0 M:250376574 (Ack:25176660)] (U) Msg TX from<PHONE_NUMBER>000000 to 0:40270046C6F28D40 [0000] [UDP:[FD0E:9B1F:4691:66F9:ABC8:CA2E:3728:628B]:52781] --- Type 0000:10 (SecureChannel:StandaloneAck) (B:26)
I (349448) chip[SC]: Received Sigma1 msg
I (349461) chip[SC]: CASE matched destination ID: fabricIndex 1, NodeID 0xDEDEDEDE52808217
I (349528) chip[EM]: <<< [E:6918r S:0 M:250376575 (Ack:25176660)] (U) Msg TX from<PHONE_NUMBER>000000 to 0:40270046C6F28D40 [0000] [UDP:[FD0E:9B1F:4691:66F9:ABC8:CA2E:3728:628B]:52781] --- Type 0000:31 (SecureChannel:CASE_Sigma2) (B:855)
I (349544) chip[EM]: ??1 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 in 1382ms [State:Active II:500 AI:300 AT:4000]
I (349553) chip[SC]: Sent Sigma2 msg
I (350932) chip[EM]: <<1 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000
I (350984) chip[EM]: ??2 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 in 1380ms [State:Active II:500 AI:300 AT:4000]
I (352375) chip[EM]: <<2 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000
I (352427) chip[EM]: ??3 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 in 1555ms [State:Active II:500 AI:300 AT:4000]
I (353991) chip[EM]: <<3 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000
I (354043) chip[EM]: ??4 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 in 1876ms [State:Idle II:500 AI:300 AT:4000]
I (355930) chip[EM]: <<4 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000
I (355981) chip[EM]: ??5 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 in 2471ms [State:Idle II:500 AI:300 AT:4000]
I (356192) chip[EM]: >>> [E:6918r S:0 M:25176660] (U) Msg RX from 0:40270046C6F28D40 [0000] to<PHONE_NUMBER>000000 --- Type 0000:30 (SecureChannel:CASE_Sigma1) (B:196)
I (356202) chip[EM]: <<< [E:6918r S:0 M:250376576 (Ack:25176660)] (U) Msg TX from<PHONE_NUMBER>000000 to 0:40270046C6F28D40 [0000] [UDP:[FD0E:9B1F:4691:66F9:ABC8:CA2E:3728:628B]:52781] --- Type 0000:10 (SecureChannel:StandaloneAck) (B:26)
E (358465) chip[EM]: <<5 [E:6918r S:0 M:250376575] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)


Check if the Signature is empty

Hi David,
would it be possible to provide information about whether changes has been made to the signature? Right now I cannot determine if there is a signature or not as I always get a picture by calling getImageBase64().
Would really appreciate this feature :)
thanks, Holger

Small Update:
I added a method isEmpty() which returns a boolean to see if the signature is empty or not.

https://vaadin.com/directory/component/signature-widget/2.0.0

Hello David,
that would be great. Thanks a lot.
A good day for u 2,
Holger
Von: David Dodlek @.>
Gesendet: Montag, 29. März 2021 15:20
An: F0rce/signature-widget @.>
Cc: Holger Hähnel @.>; Mention @.>
Betreff: Re: [F0rce/signature-widget] Check if the Signature is empty (#44)
Hello @HHA-Abacushttps://github.com/HHA-Abacus,
I am currently working on a new release for the signature widget, due to Polymer 3 going end of life. I am using Lit-Element for the frontend from now on.
I will try to maybe make a custom event listener, so you could "see" when the signature changes. Would that be fitting for your request/needs?
Have a great day,
David
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/F0rce/signature-widget/issues/44#issuecomment-809371194, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APYCPGGQAJSHXMDBN7FKS3DTGCECVANCNFSM4Z35KINA.


Only set RestartTimestamp when restarting started optimizer

Description
In initial implementation I was treating the RestartTimestamp as an informational StartedAt field. Thanks to clarifications from  @kekssw (Vlad), it was pointed out that updating this field on a stopped optimization creates non-sensical directive for the optimizer to restart an optimization that is already stopped. This change ensures updates to an existing optimizer only sets the RestartTimestamp when that optimizer is in a "started" state.
Type of Change

[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

[ ] I have read the contributing guidelines
[ ] Existing issues have been referenced (where applicable)
[ ] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[ ] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

Codecov Report

Merging #118 (4b9d729) into main (5dcc004) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   32.34%   32.34%
=======================================
  Files          27       27
  Lines        3568     3568
=======================================
  Hits         1154     1154
  Misses       2323     2323
  Partials       91       91


Prefetch doesn't seem to work

...or I don't know how to use it.
I have a track that I want to load to memory before playing so it doesn't stop for loading randomly in the middle. What I do is:
session.player.prefetch(track);
session.player.load(track);
session.player.play()

where track is a loaded Track object.
Is it possible to check if track has been pre-fetched? Does it require some preparations (cache settings for example)?

https://pyspotify.mopidy.com/en/latest/api/player/#spotify.player.Player.prefetch doesn't tell too much, so I checked the libspotify docs at https://developer.spotify.com/docs/libspotify/12.1.51/group__session.html#gaf42e30a1f430ac7c436c7d9f0485368d:

Instruct libspotify to start loading of a track into its cache. This could be done by an application just before the current track ends.

In other words, prefetch() will just hint to libspotify that we'll be playing this trakc soon, so you might as well start loading it. It will however not block further execution until the entire track is prefetched, so calling prefetch() and then immediately load() and play() will have almost zero effect.

I'll need to create some kind of buffer then. Thanks for help!
Also great library, made my life much easier :)


Notification callback not called

Hello !
With Permission 1.4, Notification callback is not called. Neither the Permission callback, nor the UIApplicationDelegate one.
To reproduce, put this in your appDidFinishLaunching :
 let perm = Permission.Notifications(categories: nil)
        perm.request { (status) in
            print("push callback with status: \(status)")
        }

and this:
    func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError) {
        print("⛔ Failed registering to push: \(error)")
    }

    func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
        print("📢 Token Push: : \(deviceToken)")
    }

Hi @DimDL , thanks for the issue.

Permission callback:

I can't reproduce it. The callback is always triggered (either in the simulator or on a device).
Can you give me more details please? What's the status of the permission before you request it etc.

UIApplicationDelegate callback:

Permission doesn't register for remote or local notifications but only configures the User Notification Settings (via registerUserNotificationSettings(_:)). See the source.
Thus only application(_:didRegisterUserNotificationSettings:) will be called, but not application(_:didRegisterForRemoteNotificationsWithDeviceToken:).

Hi @delba, thanks for your input.
I've tested a little bit more, and issue reproduces, but only the first time, when status == .NotDetermined.

Delete the app (thus status == .NotDetermined) => Callback not called.
After you've been presented the native permission dialog, Callback is called whether status is .Authorized or .Denied

Issue seems to be with the Permission/callback lifetime. A workaround is to hold on to the perm variable, by making it a member:
class AppDelegate: UIResponder, UIApplicationDelegate  {
    var window: UIWindow?
    let perm = Permission.Notifications(categories: nil)

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
    {
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        if let win = self.window {
            let tabs = UITabBarController()
            tabs.viewControllers = [MyVC()]
            win.rootViewController = tabs
            win.makeKeyAndVisible()
        }

        perm.request { (status) in
            print("push callback with status: \(status)")
        }

Thanks for letting me know about permission/UIApplicationDelegate relationship, perusing the source should have made it clear. May be an example in the README could help clarify that ? Something along:
        let perm = Permission.Notifications(categories: nil)
        perm.request { (status) in
            print("Received Notifications permission: \(status)")
            // Note: following call will be made only if the application has successfully registered for user notifications with registerUserNotificationSettings:, or if it is enabled for Background App Refresh.
            UIApplication.sharedApplication().registerForRemoteNotifications()
        }

Hmmm strange. I'm already holding the Notifications permission in the notifications internal var (see here and here) and it worked just fine (for me at least). I'll store it in a static var again... Btw you might want to read #13
I don't think it's necessary to add a note in the README as registering for local/remote notifications and allowing notifications (this lib's purpose) are quite distinct:

If you want your app’s remote notifications to display alerts, play sounds, or perform other user-facing actions, you must call the registerUserNotificationSettings: method to request the types of notifications you want to use. If you do not call that method, the system delivers all remote notifications to your app silently.  source

I'm gonna ping you when for the static var stuff 😄
Thanks for the issue!

Hi @DimDL,
I just push the v1.5 and the Notifications permission is now retained as a static var. It will hopefully solve your issue (that I didn't manage to reproduce btw). Let me know if you find the time!
Also I added additional granularity for the notification types:
let notifications: Permission = .Notifications
// the types are [.Badge, .Sound, .Alert] and the categories are nil

let notifications: Permission = .Notifications(types: [.Badge], categories: categories)
// the type is [.Badge] and the categories are nil

let notifications: Permission = .Notifications(types: [.Badge, .Alert])
// the types are [.Badge, .Alert] and the categories are nil

let notifications: Permission = .Notifications(categories: ...)
// ...


Uncaught Exception: The request timed out.: (null)

An uncaught exception was reported.
Info:
OS: darwin
Arch: x64
GPMDP Version: 3.0.0
Time: Tue Mar 08 2016 13:11:41 GMT-0700 (MST)
Error:
The request timed out.: (null)
Error: The request timed out.: (null)
    at Error (native)

This issue was created automatically inside the uncaughtException handler

Client side network issues, error will not be reported next version


Random Seed Settings for all Sampling and Initialization calls

It would be nice to be able to set random seeds for all of the places where random number generators are used so that we can have reproduceable (to numerical precision) results for our tests.

Yes this is there , please create relevant jira also in our internal system


Update v1 branch with current develop

You mean no PRs as in do it from local and push or no PRs as is in no approval needed?
I did the PR as I was not sure about the process. But I'm ok with either options.

You mean no PRs as in do it from local and push or no PRs as is in no approval needed?
I did the PR as I was not sure about the process. But I'm ok with either options.

I think that when we are just updating the branch, there is no need for PR, maybe just a heads up on our telegram group is already enough.


refactor: allow specifying stacktrace callback instead of boolean enable

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.71%. Comparing base (0c7f83e) to head (5da0505).
Report is 173 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #972      +/-   ##
==========================================
+ Coverage   81.43%   81.71%   +0.27%
==========================================
  Files          97       98       +1
  Lines       23877    25625    +1748
==========================================
+ Hits        19445    20940    +1495
- Misses       4432     4685     +253

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

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests
JS Bundle Analysis - Avoid shipping oversized bundles


Update the documentation > PHP extension  : socket is needed

Updating the documentation:
The php extension sockets is needed for doing composer install

Thanks!


[CXF-9023] Increase unit test coverage on org.apache.cxf.bus

@jgoodyear thanks for working on tests, I believe we should spend a bit more time on crafting more or less realistic test cases, may be under systests/* even if needed. The ones here clearly use too much mocking (sometimes it is useful) but really shouldn't, plus there is quite large overlap with systests/* that I think we should take into account. Hope it makes sense, thank you.

Relevant code coverage: https://sonarcloud.io/component_measures?metric=coverage&selected=cxf%3Acore%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fcxf%2Fbus%2Fmanagers&id=cxf


chore(main): release awesome-jekyll-theme 0.3.1

:robot: I have created a release beep boop
0.3.1 (2024-08-15)
Bug Fixes

blog category links was not using the baseurl variable (11fe344)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

awesome-jekyll-theme/v0.3.1
:sunflower:


Update barometer_fromidasync_1322863552.md

whitespace

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


Tag not shown if not in tagGroup

When using the x-tagGroups feature, tags that are not in a tagGroup are not shown at all. I would at least expect a warning. But perhaps it is even better to create a default tagGroup automatically, where all ungrouped tags are added to implicitly.

@bartkummel there should be a warning in browser console saying which tags are not shown at all

Regarding default tagGroup, I do not thing it is a good solution because it it is not clear e.g. how to name it, where to put it (on the beginning or at the end). And I don't want to introduce options like defaultGroupTitle, defaultGroupPosition.
I will add warning not only to console but also to the top of the page. Do you think it would be an appropriate solution?

I think adding a warning to the page is an appropriate solution. Perhaps it's a good idea to add a warning to the documentation as well, such as: "If you are going to use x-tagGroups, please make sure you add all tags to a group, since a tag that is not in a group, will not be displayed at all!"


registry.replace examples wrong?

Reading the Wiki, it says that you can replace a component like this:
registry.replace<position>(entity, [](auto &pos) { pos.x = pos.y = 0.; });

This doesn't compile in my examples, though, and the code doesn't really indicate that replace takes a function. Is that old code, maybe?

The wiki refers to master and I've pushed this change an hour ago or so.
Maybe a pull can solve the problem. This is the documentation for the last stable release instead.

Ah, I see, so replace doesn't exist in that form yet, thanks!


SecurityException?

The explanation for why the WebRequest.CreateHttp() call would throw a SecurityException currently states: "The caller does not have permission to connect to the requested URI or a URI that the request is redirected to."  Is that thrown if and only if the server returns a 401 HTTP status?  No, that can't be right because the request hasn't even executed yet.  What security is this referring to?

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

ID: 68ae6a59-0996-d889-16f5-a9fb589acbe8
Version Independent ID: 293c2a47-b75c-0a39-9ccf-0d5d912ad481
Content: WebRequest.CreateHttp Method (System.Net)
Content Source: xml/System.Net/WebRequest.xml
Product: dotnet-api
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

@davidsh, can you comment on this issue?

SecurityException
The caller does not have permission to connect to the requested URI or a URI that the request is redirected to.

A "Security Exception" is thrown only if this application is running on .NET Framework and is using less than "full-trust" security profile.
CAS (Code Access Security) is a concept that allows for applications to be hosted that don't have full privileges on the machine.  This was frequently used for web hosting scenarios.
See: https://docs.microsoft.com/en-us/dotnet/framework/misc/code-access-security
The WebRequest APIs require an application to have WebPermission.
By default, applications will run with "full-trust".  So, this exception wouldn't normally be seen.

Thanks!


Issue 43009: Backport dataiterator fixes

Rationale
Backporting PRs from develop branch with dataiterator updates handling participantId, key column and column matching.  Revert ETL only fix.
Changes

Backport https://github.com/LabKey/platform/pull/2271
Backport https://github.com/LabKey/platform/pull/2268
Backport https://github.com/LabKey/platform/pull/2263
Revert https://github.com/LabKey/platform/pull/2222

This backport requires https://github.com/LabKey/labbook/pull/107 as well.


getting sendEmail() error when calling

jenkins file

output of jenkins

try manually first then write a script because manually I think you are not configure correctly. once manually is success then write a groovy script.

i have configure and ran it's working fine.


[demo/cart] simplify resource configuration

after upgrade to .NET OTel 1.5.0

Corresponding PR: https://github.com/open-telemetry/opentelemetry-demo/pull/935

Oh, oops, accidentally hit merge without @open-telemetry/demo-approvers taking a look.
If anyone objects, let me know and I'll revert.


Will webchat v4.1 be compatible with botbuilder NodeJS SDK v3 ??

@stevengum do you have any insight here?

Yes, the version of WebChat is not tied to the functionality within the BotBuilder SDKs, so v3 Node.js SDK will work with WebChat v4.1.

Thank you.


Log reqmgr2 assignment parameters

Should be useful for debugging mysterious reqmgr2 request issues.

@ticoann good to be merged

Alan, What was the error?

One of the cases was with the Trust flag being used during creation and NOT during assignment.
I'm certain there will be other problems where these parameters (from the logs, not from what operator says) will be useful.


Add Granny's World Tour (8-bit) by Christopher Heral

Song Name
Granny's World Tour (8-bit)
Artist Name
Christopher Heral
Source
Youtube
Youtube Link
PO2POF5BsIs
Direct File Link
No response
Song ID
1
Start Offset [ms]
No response
Extra
Created from Auto Nong.
Created for level: 98869798

reject


bias stability or random walk parameter

Hi All:
By comparing the content in README with the IMU noise model described in https://github.com/ethz-asl/kalibr/wiki/IMU-Noise-Model , it seems that the parameters Gyroscope/Accelerometer "bias Instability" (in the README) are the same with the Gyroscope/Accelerometer "random walk" (in the link). Since the unit 1/(s^2*sqrt(HZ)) = 1*sqrt(HZ)/(s). Correct me if I make any mistake.
If these two parameters are the same, according to the README,  the Gyroscope/Accelerometer "bias Instability" are estimated by the minimum value of the Allan variance.
On the contrary, the link identifies the Gyroscope/Accelerometer "random walk" as the value of the (fitted) "random walk" diagonal (with slope +1/2) at an integration time of t=3 second.  Which is the same approach used in the paper "The TUM VI Benchmark for Evaluating Visual-Inertial Odometry" (displayed by Fig. 5).
So, which is right? Any suggestion or correction is greatly appreciated, thanks in advance.

The Kalibr wiki page is right, and the code here and the documentation is wrong. Check out my fork of this repo where I fixed this and many other problems:
https://github.com/mintar/imu_utils


path of undefined

Issue Details
Type of Issue  (check one with "X")
[ X] Bug Report => Please search GitHub for a similar issue or PR before submitting
[ ] Feature Request => Please ensure feature is not already in progress
[ ] Support Request => Please do not submit support requests here, instead see: https://discourse.oss.antheminc.com/

Current Behavior
Browser console error 'path of undefined'
Expected Behavior
No browser console errors
Environment Details

Nimbus Version:
1.3.1.M1

Browser:
Chrome
@sandeepmantha @lopezton-anthem

Thanks for your issue request.
In order to address the issue you're facing, please provide the more details on how to recreate the issue. If you're unsure of which details to provide, we've provided a handy issue template here.

@sandeepmantha or I will fill the issue in with the necessary details. Please ignore the previous request for more detail. This is for our tracking.

This change is in 1.3.x, will either go to 1.3.1.M3 if requested, or else 1.3.2.M1 (next scheduled release)

Please merge this in 1.3.1.M3. Thanks


Use the first token of hostname for generating static pod names

This increases the readability of pods by avoiding long names.
This fixes #5936

/cc @thockin

LGTM


Refinement of the type of an integer variable based on comparison operators

Simplified if_refine:
-spec bar(integer()) -> 1.
bar(X) ->
    if X < 1 -> 1;
       X > 1 -> 1;
       true -> X
    end.

my_test() ->
    ?assertEqual(1, bar(-1)).

Tally for
[{csubty, 7:5, {}, $5},
 {csubty, 7:5, $6, $1},
 {csubty, 8:8, $5 /\ {}, {}},
 {csubty, 7:12, 1, $8},
 {csubty, 6:1, $0, {any()} /\ {any()}},
 {csubty, 6:1, $0 /\ ({any()} /\ {any()}), {$4}},
 {csubty,
  7:10,
  fun((a@0 /\ any(), a@0 /\ any()) -> boolean()),
  fun(($7, $8) -> $9)},
 {csubty, 7:8, $4, $7},
 {csubty, 8:12, 1, $11},
 {csubty, 6:1, $0 /\ ({any()} /\ {any()}), {$3}},
 {csubty, 9:16, $4, $6},
 {csubty, 6:1, {$2}, $0},
 {csubty, 9:8, $5 /\ {}, {}},
 {csubty, 9:8, true, boolean()},
 {csubty, 6:1, integer(), $2},
 {csubty, 7:5, $5, {} | {} | {}},
 {csubty, 8:17, 1, $6},
 {csubty, 7:8, $5 /\ {}, {}},
 {csubty,
  8:10,
  fun((a@1 /\ any(), a@1 /\ any()) -> boolean()),
  fun(($10, $11) -> $12)},
 {csubty, 7:10, $9, boolean()},
 {csubty, 7:17, 1, $6},
 {csubty, 8:10, $12, boolean()},
 {csubty, 6:1, $1, 1},
 {csubty, 8:8, $4, $10}]

These constraints are conflicting:
    integer() <: $2
         {$2} <: $0
$0 /\ {any()} <: {$4}
           $4 <: $6
           $6 <: $1
           $1 <: 1

$1 can either be empty or 1, which conflicts with integer() <: $2. Bad constraints?

The constraint integer() <: $2 is for argument X, the constraint $1 <: 1 for the result.
Currently, there is no implementation of refinement of the type of an integer variable based on comparison operators such as < and >.
Hence, the behavior is expected as X has type integer() everywhere in the body of bar.
It's not a bug but a missing feature.


[Icon Request]: postcss.config.mjs and patches folder

Housekeeping

[X] I'm sure this issue is not a duplicate

Icon Type

[X] File Icon
[X] Folder Icon

Icon Type

[ ] Extension
[X] Filename
[ ] Language ID

Original Icon
postcss.config.mjs: Simply reuse the postcss.config.js icon.
patches folder: Maybe a new icon needs to be created? I am not sure, but there is an icon for *.patch file.
Icon Information
postcss.config.js has the icon, but postcss.config.mjs does not.
The patches folder is automatically generated after running pnpm patch <package_name>.
More Information:
No response

Other issues related to the patches folder: https://github.com/vscode-icons/vscode-icons/issues/2992

also need to link postcss.confg.mts with postcssconfig icon to handle cases, when postcss-load-config and typescript for typing config object are used


Fix CephOSDFlapping alert

[!warning]
This is a public repository, ensure not to disclose:

[x] personal data beyond what is necessary for interacting with this pull request, nor
[x] business confidential information, such as customer names.

What kind of PR is this?
Required: Mark one of the following that is applicable:

[ ] kind/feature
[ ] kind/improvement
[ ] kind/deprecation
[ ] kind/documentation
[ ] kind/clean-up
[x] kind/bug
[ ] kind/other

Optional: Mark one or more of the following that are applicable:

[!important]
Breaking changes should be marked kind/admin-change or kind/dev-change depending on type
Critical security fixes should be marked with kind/security

[ ] kind/admin-change
[ ] kind/dev-change
[ ] kind/security
[ ] kind/adr

What does this PR do / why do we need this PR?

Fixes Thanos not being able to evaluate the CephOSDFlapping alert rule.

Fixes #

Information to reviewers
Error:
many-to-many matching not allowed: matching labels must be unique on one side\"}\n" query="(rate(ceph_osd_up[5m]) * on (ceph_daemon) group_left (hostname) ceph_osd_metadata) * 60 > 1"
As an OSD with the same name can exist on SC and WC.
Checklist

[x] Proper commit message prefix on all commits

Change checks:

[x] The change is transparent
[ ] The change is disruptive
[ ] The change requires no migration steps
[ ] The change requires migration steps
[ ] The change upgrades CRDs
[ ] The change updates the config and the schema

Documentation checks:

[ ] The public documentation required no updates
[ ] The public documentation required an update - [link to change](set-me)

Metrics checks:

[ ] The metrics are still exposed and present in Grafana after the change
[ ] The metrics names didn't change (Grafana dashboards and Prometheus alerts are not affected)
[ ] The metrics names did change (Grafana dashboards and Prometheus alerts were fixed)

Logs checks:

[ ] The logs do not show any errors after the change

Pod Security Policy checks:

[ ] Any changed pod is covered by Pod Security Admission
[ ] Any changed pod is covered by Gatekeeper Pod Security Policies
[ ] The change does not cause any pods to be blocked by Pod Security Admission or Policies

Network Policy checks:

[ ] Any changed pod is covered by Network Policies
[ ] The change does not cause any dropped packets in the NetworkPolicy Dashboard

Audit checks:

[ ] The change does not cause any unnecessary Kubernetes audit events
[ ] The change requires changes to Kubernetes audit policy

Falco checks:

[ ] The change does not cause any alerts to be generated by Falco

Bug checks:

[ ] The bug fix is covered by regression tests

Found some more alerts that have this type of issue, will add fixes.


Aggregate metric series

LGTM other than the nit and as long as StyleCI and Travis get happy.

It's fitting that on the eve of dropping support for pgsql and sqlite in the tracker I had to deal with a db compatibility issue.

:panda_face:

@cpatrick
PT one last look

lgtm.


Define interfaces & make TextToSpeech service outofprocess

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


Remove umlauts

Fixes #7

Ugh, looks like I need to clean this up. I'll try again when I get chance.

i fixed this with the last branch - thanks for your work.


Onedrive Uniattack not allowing large file download.

Hello, I'm trying to replicate the Uniattack benchmark, As such, I wanted to download the data however onedrive is not allowing for larger files to be downloaded:

The file size exceeds the allowed limit.

CorrelationId: a9d1721f-ecd4-4459-b85e-ec270bb81304,

UTC DateTime: 08/30/2024 08:27:09

Faceforensics, hq wmca and oulu are not being dowloaded.
I think this link might be helpfull:
https://community.fabric.microsoft.com/t5/Service/Sharepoint-error-the-file-size-exceeds-the-limit-allowed-and/m-p/1198887
Thanks in advance!

Hi, sorry for the late reply.
I just now tried downloading these files (e.g., UniAttack/FaceForensics++/lmdb/FaceForensics++/data.mdb, UniAttack/Oulu_NPU/lmdb/Oulu_NPU/data.mdb) using Chrome and succeeded. Could you also try this way?


About deploying multi-model endpoints

After deploying multi-model endpoints, how can I consume a specific model by inputting relevant data?
For the sample code on https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/deploy-multi-model/multi-model-register-and-deploy.ipynb, can I define test_sample data [1,2,3,4,5,6,7,8,9,10] goto use 'my_first_model' and [10,9,8,7,6,5,4,3,2,1] consume 'my_second_model'?

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

ID: 38e267fb-efa2-dab5-aa83-4a4addc39ee8
Version Independent ID: e1d506d0-c6bf-47ed-a12c-7bb50416c865
Content: How and where to deploy models - Azure Machine Learning
Content Source: articles/machine-learning/how-to-deploy-and-where.md
Service: machine-learning
Sub-service: core
GitHub Login: @jpe316
Microsoft Alias: jordane

@gary918 Thanks for the question. We are investigating the issue and will update you shortly.

@gary918, the entry script provides the logic for consuming your registered models. In the example you provided, the entry script makes predictions using both "my_first_model" and "my_second_model", that is why the webservice call returns values for prediction1 and prediction 2.
Take a look at the entry script. It does the following:

Initializes global variables for both model paths.
Deserializes both models in sklearn models.
Calls predict() on both sklearn models using the input data.

If you wanted to only use "my_first_model" or "my_second_model", you would need to update the entry script for the web service.

@gary918 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Thank you, @PeterCLu @ram-msft ! This is very helpful.

https://github.com/MicrosoftDocs/azure-docs/issues/110549#issue-1744440452


Filter icon size

The filter icon is significantly smaller than the other icons. They should all be the same size.

Actually… looking at the search icon it seems different yet again.


Promote AddTodo to proper container component

Thanks for this, but we don't need to add more complexity to this example. More files == more someone has to think about when reading through the code.


feat(): traffic light icons on hover

Attempt to Add Feature #63
Changes Made:
Fix the Traffic Lights Name with sync to Scss
Fix this Linting Error:

Adding Feature of Traffic-Light Icons:
Svgs are TypeScript Components so that you can customize them further by passing React.SVGProps<SVGSVGElement>
props.
Things you Might need to Consider in Future

Perfect!!! Merging!!


Re-evaluate UBSan for integer overflow

Perf/regression will likely need to be measured.

It's likely we'll use the minimal runtime suitable for production environments,


pyproject.toml fixes pip installation

Hello,
Thanks for the project. Its very neat. However, it was a little difficult to install (note, I don't use conda). I also noticed most tickets are about installation problems and I think I was able to fall into nearly every one of them and more. So, I've rewritten how the build is done to be more compliant with the newer pyproject.toml and less reliance on distutils. Python packaging seems to be in a transition period where distutils is being deprecated and setuptools is dis-favoring setup.py, and there aren't a lot of useful example for how to write a pyproject.toml.
However, with the changes made here, I was able to install on macOS, Ubuntu, and Redhat via pip install pywfa/.
The main thing to note is that I had to always turn off -fopenmp. It just didn't seem to work right and judging from some of the more recent commits on WFA2-lib, it's a known problem. I don't know if it'll be missed though since I'm not sure if/how openmp is used by the parts of WFA2-lib binded here.
This should probably be tested on a few more machines.
The final thing to note is I do not know if this will affect the conda distribution. Presumably not, but I can't say for sure as I don't know conda.

Thanks @ACEnglish, this is great! The build issues have been a pain. I've not tried using toml recipie before, so this is new to me. I don't see any issues with using this on conda. I'll test this on a few systems anyhows. Thanks again!

I tested on BigSur and Redhat, and both worked fine. Happy to merge, thanks!


expose solarish's SFV_FD_SELF for sendfilev purpose

I am not sure that this is quite right.  Have you been able to get the test suite to pass on an illumos machine?

oddily enough, the test fail for me locally for native_getpwent_r/native_getgrent_t but the linkname setting should prevent that.

test pass now with last test fixes.

@bors r+

:pushpin: Commit 6fb545a7939ff6f243cceece87897893cf517333 has been approved by JohnTitor
It is now in the queue for this repository.

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing 78079f5effb6338a08f715fea899633b6c7d4e0b to main...


fix setting GH_xxx git data..

Signed-off-by: Miguel Quintero<EMAIL_ADDRESS>due to the // in the remote url config data, the index for user and repo was wrong

@miqui im confused why this would be 4 and 5 on your computer.   On mine the origin appears as follows:
╰─ git config --get remote.origin.url | sed -e 's/.:(.).git/\1/'
HewlettPackard/docker-machine-oneview
What does it look like for you?

agreed the first sed call should be fixed to eliminate the extra '//' prefix

 Sorry to hear it's been breaking for you.
[14:58:25]  miqui: Yeah, I think the custom git parsing stuff we do in Makefile is a bad idea
[14:58:36]  Working with dmp42 to try and make it safer
[14:59:21]  My preference would be to just hardcode those values since I don't see a lot of point in doing it the way it is done now


fix bug where you back out of game and can still hear the engine running.

resolved in 449879274ab5dc89ffc96f4b55f750ed47a3e4f1


[add-resource] New Plugin/Theme

I would like to add my new plugin/theme to the Grav Repository.
Here are the project details: user/repository

i dont see a link to the plugin?

No information provided.


fix: enable retention on the loki compactor component

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

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


WIP - Alban/autotools no dbus

This is based on @krnowak's PR  #1100 with some patches from @tixxdz and me. I am doing a separate PR to avoid overwriting @krnowak's branch.
It fixes a couple of issues related to Semaphore that I mentioned on https://github.com/coreos/rkt/pull/1100#issuecomment-118313707
Semaphore goes a bit further but it still does not work:
https://semaphoreci.com/alban/rkt/branches/alban-autotools-no-dbus/builds/14

Closing, #1100 has those fixes and was merged.


Authorize simple click to edit field when it already has the focus

Hello,
Some users have no reflex to use the double click to edit a field. So, they make a lot of simple clicks without being able to change the field value. After understanding they have to double click, they double click sometimes on the formulas or on the toggle fields.

Suggestion :

We could authorize to edit field on card when we click on a field that has already the focus, or maybe at the first simple click.

What is your opinion ?

Entering edit mode if clicking on a field that already has focus could work - what do you think @anaisconce @dsagal ?
If this is specifically for card widgets, there's also been some discussion of having an explicit edit/draft button for them that lets you make a set of changes and then save them as a whole. One-click editing could be a benefit of such a mode.

It was a tiny change to try a simple single-click to edit (even on a field that's not selected), so I put up a preview here: https://grist-detail-view-single-click.fly.dev/8t9BkLQbwCx7/Lightweight-CRM. Got a few points of feedback already for this approach:

Single-click feels nice.
Can't click and copy the whole text.
In particular, makes it harder to select a formula field to copy it.
Can't click in the URL without triggering the edit.
Maybe it should be only on Card View (single card). With Card List, there is no way to switch a record without clicking on some field. Especially important on mobile view.

It might indeed be better, as you suggested, to enter edit mode on a single-click of a field that already has the cursor. I haven't had a chance to try that.

I try your preview and in fact the single-click of a field that already has the cursor can be better.
Can we authorize the single-click only on certain field types ? A lambda user may want to change easily a text or number field but not a formula.

I agree, @CamilleLegeron.  A single-click in the already selected field is better. Protecting formula fields in this way makes sense too.
Would this be only for card widgets, or also for tables?

Ok nice, I will work on it
@anaisconce  The issue is only about card widgets


GBFR Logs 0.0.13 stuck on Waiting..

Hi,
I've been using the meters with no issues until today after I downloaded the GBFR Mod Manager and Reloaded II along with the following mod for silver centrum exchange items in the knickknack shop:
https://www.nexusmods.com/granbluefantasyrelink/mods/33?tab=files&file_id=806
I noticed GBFR Logs no longer working with the mods on so I turned them off in Reloaded II and opened the game through Steam and then opened GBFR Logs but I still had the same issue. I've tried re-installing but the issue persists.

Is there a workaround or a possible solution? Ideally I would like to use both at the same time but I don't mind turning off the mods in Reloaded in order to access GBFR Logs. Any suggestions would be appreciated thank you.

Closing this as we resolved on Discord: https://discord.com/channels/1218833963032776774/1219008077718622389/1227882371546615808
Basically, a good clean restart of GBFR Logs seemed to have made it work again 👍


[Feature Request]: add support for laravel 10

Feature Description
please add support for laravel 10 updating in "or" illuminate contracts, illuminate configs and php version
Is this feature valuable for other users as well and why?
No response

+1

Merged the PR . Thanks .


npm WARN cannot run in wd<EMAIL_ADDRESS>node -e 'process.exit(0)' (wd=/Users/adrian/Downloads/electron-starter-master)

When I do sudo npm install I get
npm WARN cannot run in wd<EMAIL_ADDRESS>node -e 'process.exit(0)' (wd=/Users/adrian/Downloads/electron-starter-master)
what's this?
ps. I'm a newbie

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use electron-prebuilt and electron-packager instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


ComplexDouble error when using for DiffSinger

Hello, I've trained a ddsp model and put it in the diffsinger checkpoints folder. At the validation step it errors:
Traceback (most recent call last):
File "/content/DiffSinger/run.py", line 15, in
run_task()
File "/content/DiffSinger/run.py", line 11, in run_task
task_cls.start()
File "/content/DiffSinger/basics/base_task.py", line 242, in start
trainer.fit(task)
File "/content/DiffSinger/utils/pl_utils.py", line 497, in fit
self.run_pretrain_routine(model)
File "/content/DiffSinger/utils/pl_utils.py", line 573, in run_pretrain_routine
self.evaluate(model, self.get_val_dataloaders(), self.num_sanity_val_steps, self.testing)
File "/content/DiffSinger/utils/pl_utils.py", line 1193, in evaluate
output = self.evaluation_forward(model,
File "/content/DiffSinger/utils/pl_utils.py", line 1317, in evaluation_forward
output = model.validation_step(*args)
File "/content/DiffSinger/src/naive_task.py", line 85, in validation_step
self.plot_wav(batch_idx, sample['mels'], model_out['mel_out'], gt_f0=gt_f0, pred_f0=pred_f0)
File "/content/DiffSinger/src/diffspeech_task.py", line 120, in plot_wav
gt_wav = self.vocoder.spec2wav(gt_mel, f0=gt_f0)
File "/content/DiffSinger/src/vocoders/ddsp.py", line 163, in spec2wav
signal, _, (s_h, s_n) = self.model(mel.to(self.device), f0.to(self.device))
File "/usr/local/lib/python3.9/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
RuntimeError: Unsupported value kind: ComplexDouble

@yxlllc Thank you! It's working now! 😊


Switching scenes removes all of the linked objects in the SDK Manager

Load up 001_CameraRig_VR_PlayArea and then switch scenes at runtime by pressing
Trigger + Grip + Touchpad on the right controller
The scene will switch to 002_Controller_Events but the SDK_Manager has no linked objects.
This is because (I believe) the new SDK Manager force sets things to null and tries to find things in the scene itself. However on scene load these things aren't being found even though they're already pre-set in the script.
@bddckr it affects the following:

Actual Boundaries
Actual Headset
Actual Left Controller
Actual Right Controller

I'm guessing we shouldn't be setting them to null if one already exists in the parameter.

Also as a side note. Line 643 of the SDK Manager does a check to see if the actualLeftController exists but no check is done for actualHeadset or actualRightController
I'm guessing this check was hiding a previous error, I would say it should be consistent.

@thestonefox

The SDK Manager is set up by default to auto-populate the object references now. The example scenes weren't updated to use SteamVR and default to the Fallback SDK instead. The thought was "force the user to specify his SDK because we support many SDKs now".
So to fix your use case: Load every scene, click on the SDK manager and set it to SteamVR via the quick select button. Save the scene.

There is no forcing to null. It's just that the manager isn't set up the way you want it to be to allow for the scene switching. I leave the decision to reverse my idea of forcing the user to specify the used SDK instead of defaulting to SteamVR (which may not be installed and therefore throw errors when loading the example scenes) to you 😛.

That change wasn't introduced by me, it was introduced by the Daydream PR. I think it was done because Daydream only supports one controller which the VRTK Daydream SDK assigns as the right controller instead of the left one, so the left one is null all the time in that case.
I don't think we should handle a null right controller because that would hide issues.

How to save position of the player when switching the scenes and when I return to that previous scene it should return to the same position back???


Update TetheredLaunch.md

Apps with the Debugging Tool Entitlement can call task_for_pid() to retrieve a valid task port for unsigned and third-party apps with the Get Task Allow entitlement set to true. However, even with the debugging tool entitlement, a debugger can’t get the task ports of processes that don’t have the Get Task Allow entitlement, and that are therefore protected by System Integrity Protection.

System Integrity Protection is not relevant on iOS

System Integrity Protection is not relevant on iOS

https://github.com/osy/Jitterbug
Launch fails with "Failed to get the task for process xxx"

This application does not have the get-task-allow entitlement. Or this is not a development app.

Jitterbug will output an error if No get-task-allow is checked.


Gitflow: Main to Develop

As #843  was a hotfix, pull main into develop

Need a new review on this due to the update to main


[Feature Request] Filter by database name

Hello Guys,
I think would be good on explorer page a way to filter by database, for example in my case we use Glue(Hive) our tables are organized by database.

On the middle, would be good to know which database the tables belongs.
Thank you

@darth-coder00 @Sachin-chaurasiya here is the backend change https://github.com/open-metadata/OpenMetadata/pull/1580


Typescript named parameters for method invocation

Status: proposal
In order to achieve positional independence of the method parameters, this proposal adds a configuration flag that changes the current behavior
    test(a: number, b: number | null | undefined): Promise<string | null> {

where const a = 2; const b = 3; test(b,a); is compiling just fine while not doing what would be expected.
This may in reality become a problem if the OAS changes, e.g. due to some refactoring of the backend code.
By changing to a structure like
    test(parameters: {
            a: number; b: number | null | undefined
        }): Promise<string | null> {
        const { a, b } = parameters;

the above code will have to change to test({a,b}), but is now invariant to changes in the position.
If this is something that you would accept for the code generation, I would love to continue working on this approach.

@RicoSuter could you please give a short feedback if you'd accept the proposal?
BR Daniel

ping (@RicoSuter )


Update .clabot

Purpose of this pull request
add arkhitektor

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions, .clabot
[ ] Update Content - Revisions, updating sections
[ ] New Content - New features, sections, pages, tutorials
[x] Site and Tools - Updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Note: "arkhitektor" is the GitHub name for Sumo Logic employee Eric Pawlyshyn.


Hook GetVolumeInformation in 32bit app failed to modify StringBuilder?

I made a simple 32bit app in which the function GetVolumeInformationA is called, here is the declaration:
[DllImport("kernel32")]
static extern int GetVolumeInformation(string root, StringBuilder volumeName, int volNameSize, ref int serial, ref int maxComponentLength, int flags, StringBuilder fileSystemName, int fileSystemNameSize);

And here is the code calling GetVolumeInformation, it succeeds getting the information:
int serial = 0;
int maxCLen = 0;
var volName = new StringBuilder(260);
var sysName = new StringBuilder(260);
GetVolumeInformation("d:\\", volName, volName.Capacity, ref serial, ref maxCLen, 0, sysName, sysName.Capacity);

Then I tried creating another app using EasyHook to hook GetVolumeInformationA, the hook in fact succeeds. But when I tried to modify the passed-in argument volumeName (a StringBuilder) by simply appending some suffix to the actual volume name like this:
volumeName.Append("_tail");

Then it failed with an exception:
System.ArgumentOutOfRangeException: capacity was less than the current size.

I inspected the passed-in argument volumeName and knew that its MaxCapacity is just 0. With the same code calling GetVolumeInformation but if built as x64 then the hook succeeds to modify the returned volumeName (with a suffix of "_tail" appended). So looks like it's not an easy problem to me. I also wonder if this may be an issue of EasyHook? And if it is possible to achieve what I want (hooking against 32bit app and modify the volumeName)? I've tried building my app including my test app, the injected dll,... (used to hook GetVolumeInformation) as both x86 and x64 but they both failed to give the desired result.
There are many 32bit apps out there, if this is impossible then we cannot enjoy EasyHook in many cases. BTW the "serial" (a ref int) can be modified well, just StringBuilder arguments are not able to be modified (with the exception I mentioned).

I doubt this is an EasyHook issue, but is rather a Marshalling issue. I'm unable to look at anything for a week or so.

@wpfpro did you sort out this issue in the end?

sorry that problem is out of my knowledge. I think it involves C++ and some core understanding of Win32 as well as Windows OS while I'm not good at those. My programming language is C# and I just have some basic understanding about using p/Invoke to use Win32 API in my C# programs. I hope you or someone else could solve/fix that bug.

@wpfpro I did a quick repro and it is working for me. Here is my output after hooking into a 32-bit process (notepad++.exe) and my code (I just butchered one of the test projects). Can you please check if you have referenced the GetVolumeInformationA correctly (I had to use the "A" in the name).
Message from client: GetVolumeInformation: C:\
Message from client: Windows_tail:NTFS

Code:
    [DllImport("kernel32")]
    static extern int GetVolumeInformationA(string root, StringBuilder volumeName, int volNameSize, ref int serial, ref int maxComponentLength, int flags, StringBuilder fileSystemName, int fileSystemNameSize);

    delegate int GetVolumeInformationDelegate(string root, StringBuilder volumeName, int volNameSize, ref int serial, ref int maxComponentLength, int flags, StringBuilder fileSystemName, int fileSystemNameSize);
...
    volInfoHook = LocalHook.Create(
                LocalHook.GetProcAddress("kernel32.dll", "GetVolumeInformationA"),
                new GetVolumeInformationDelegate(GetVolumeInformation_Hook),
                this);
....
new Thread(new ThreadStart(new Action(() =>
{
    Thread.Sleep(1000);
    int serial = 0;
    int maxCLen = 0;
    var volName = new StringBuilder(260);
    var sysName = new StringBuilder(260);
    GetVolumeInformationA("C:\\", volName, volName.Capacity, ref serial, ref maxCLen, 0, sysName, sysName.Capacity);

    _interface.SendMessage("GetVolumeInformation results:");
    _interface.SendMessage(String.Format("{0}:{1}", volName, sysName));

}))).Start();
...
    public static int GetVolumeInformation_Hook(string root, StringBuilder volumeName, int volNameSize, ref int serial, ref int maxComponentLength, int flags, StringBuilder fileSystemName, int fileSystemNameSize)
    {
        TestInjection Self = (TestInjection)HookRuntimeInfo.Callback;

        Self.SendMessage("GetVolumeInformation: " + root);

        var result = GetVolumeInformationA(root, volumeName, volNameSize, ref serial, ref maxComponentLength, flags, fileSystemName, fileSystemNameSize);
        volumeName.Append("_tail");
        return result;
    }


What is the intended way to page results?

Suppose I have this code
var config = new Config("myapikey");
var factory = new ClientFactory();
var discovery = factory.Create<DiscoveryApi>(config);

// Prepare request
var req = new SearchEventsRequest();
req.AddQueryParameter(SearchEventsQueryParameters.countryCode, "NL");
req.AddQueryParameter(SearchEventsQueryParameters.size, "200");
req.AddQueryParameter(SearchEventsQueryParameters.sort, "date,name,asc");
req.AddQueryParameter(SearchEventsQueryParameters.classificationId, "KZFzniwnSyZfZ7v7nJ");

// Retrieve result
var result = await discovery.Events.SearchEventsAsync(req);

// Dump some data
foreach (var e in result._embedded.Events)
    Console.WriteLine(e.Name);

// What is the best way to retrieve page 2?

What is the best way to retrieve page 2? And 3? How would I iterate all pages? One way I tried is:
var result = await discovery.Events.SearchEventsAsync(req);
while (result.Page.Number < result.Page.TotalPages)
{
    foreach (var e in result._embedded.Events)
        Console.WriteLine(e.Name);
    req.AddQueryParameter(SearchEventsQueryParameters.page, (result.Page.Number + 1).ToString());
}

But this is ugly (requiring the (result.Page.Number + 1).ToString() and also requires me to create a new request each iteration, since for the next page it will throw an exception that the "Page" argument is already in the request.
What would be the correct / preferred / best / intended way to do paging?
Also: Maybe you could consider adding a few overloads on AddQueryParameter so that integers, date(time)s etc. are also accepted and converted to a string internally? (That would also save me from having to find out which date(time)format the API expects ('YYYY-MM-DD' or 'MM-DD-YYYY' or 'YYYY-MM-DDTHH:mm:ss' or... Why would I care, let this SDK handle it for me?).
Finally: What's up with the _embedded in result._embedded.Events ? Why not result.Events or something?

Do you see a problem here?

No, to be honest, I'm a bit confused. I'll try to see if I can find in the docs what you're saying. Thanks for looking into it anyway! 👍

Hi Rob (@RobThree) , take a look into this: https://github.com/SerhiiVoznyi/Ticketmaster-SDK/blob/functionality/develop/src/Ticketmaster.Discovery.Tests/V2/Extensions/SearchEvents.cs
try to debug fetching process you will see what I mean.


seresye:stop/1 implementation is incorrect

Needs to send stop instead of  {stop} and also since the handler is stopping the server, it would make sense to wrap the call into a catch

Fixed in #21


WIP: Update version of Mbed TLS

This is based on https://github.com/fortanix/rust-mbedtls/pull/278.

The upgrade to bindgen version 0.65.1 brings additional dependency changes. It would be interesting to see if we can downgrade to 0.64 to avoid that version bump on syn. I think there is an issue with psa-attestation if we try to upgrade bindgen in that crate.

I can confirm that mbedtls-sys does not work with bindgen 0.64, and psa-attestation does not work with bindgen 0.65.1. (I haven't tried to make sense of the errors generated in either case.) The semantic versioning of Rust crates treats the left-most non-zero number as major, so we can't expect compatibility between these versions of bindgen, unfortunately. I hope Cargo keeps build-dependencies separate from ordinary dependencies so the damage is at least limited.

Your new branch of mbedtls did not pick those changes:
veracruz-project/rust-mbedtls@7cac229
veracruz-project/rust-mbedtls@0b62e75

I've rescued those two: just the Cargo.toml changes as the Cargo.lock changes would get in the way of the merging and rebasing that I will have to do.
Are the following commits still of interest?
veracruz-project/rust-mbedtls@7a72ec0
veracruz-project/rust-mbedtls@394e7ae

Your new branch of mbedtls did not pick those changes:
veracruz-project/rust-mbedtls@7cac229
veracruz-project/rust-mbedtls@0b62e75

I've rescued those two: just the Cargo.toml changes as the Cargo.lock changes would get in the way of the merging and rebasing that I will have to do.
Are the following commits still of interest?
veracruz-project/rust-mbedtls@7a72ec0 veracruz-project/rust-mbedtls@394e7ae

We need to test on AArch64 to see if those are still needed.

Since the change made by veracruz-project/rust-mbedtls@7cac229 is in a section called [target.x86_64-fortanix-unknown-sgx.dependencies], presumably it makes no real difference to us, so the only purpose of the change is to keep Dependabot happy?

Looking at the branch in rust-mbedtls there is some back and forth (things done and then reverted), maybe some squashing would be helpful.

I've rebased, squashed and improved the log messages.
We could wait for the upstream branch to get merged or released or for development of the upstream branch to slow down before merging this, or we could not wait for that.

We should merge your work into main branch of rust-mbedtls.

We've been using the veracruz branch, though it's not mentioned in veracruz/.gitmodules: perhaps it should be and I could add that in this PR?

We've been using the veracruz branch, though it's not mentioned in veracruz/.gitmodules: perhaps it should be and I could add that in this PR?

Good idea. Based on today's discussion, I think we should not wait for an upstream merge and/or release.

Can you remove the Remove unused features "icecap-lkvm" and "icecap-qemu". commit from the PR, this might create an issue for #555?

Can you remove the Remove unused features "icecap-lkvm" and "icecap-qemu". commit from the PR, this might create an issue for #555?

OK. By the way, there seems to be an "approved" on the upstream PR (https://github.com/fortanix/rust-mbedtls/pull/278). I don't know if that means an imminent merge. I might rebase again on Monday.

The upstream PR has just been merged into master, 49 minutes ago, but it's been rebased so the commit I'm basing this on is not in master. So I think it's worth me rebasing this again before we merge.

Done. Almost nothing changed: git diff --submodule=diff 81be98c..e11872e
@mathias-arm, if you can approve again I'll merge this time.

I've just rebased again.


ZERO3 + Offload CPU Error when fine-tuning InternLM-XComposer2

Hi, Thanks for your great work! When I fine-tune InternLM-XComposer2(unfreeze the proj and the whole LLM, freeze vit). In order to avoid OOM, I use zero3 and offload the optimizer to CPU(by modifying the https://github.com/InternLM/InternLM-XComposer/blob/main/InternLM-XComposer-2.0/finetune/ds_config_zero2.json#L17 to cpu). I find an error as following. The original ds_config_zero2.json will not raise this. How can I solve it. Thanks for your advice and reply!
Error Message:
Traceback (most recent call last):
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/ChartLLM/InternLM-XComposer/finetune/finetune_smoe.py", line 396, in <module>
    train()
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/ChartLLM/InternLM-XComposer/finetune/finetune_smoe.py", line 297, in train
    model = transformers.AutoModelForCausalLM.from_pretrained(
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/miniconda3/envs/intern_clean/lib/python3.9/site-packages/transformers/models/auto/auto_factory.py", line 558, in from_pretrained
    return model_class.from_pretrained(
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/miniconda3/envs/intern_clean/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2966, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/miniconda3/envs/intern_clean/lib/python3.9/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 506, in wrapper
    f(module, *args, **kwargs)
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/cache/huggingface/modules/transformers_modules/internlm-xcomposer2-vl-7b/modeling_internlm_xcomposer2.py", line 67, in __init__
    self.vit = build_vision_tower()
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/cache/huggingface/modules/transformers_modules/internlm-xcomposer2-vl-7b/build_mlp.py", line 11, in build_vision_tower
    return CLIPVisionTower(vision_tower)
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/miniconda3/envs/intern_clean/lib/python3.9/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 506, in wrapper
    f(module, *args, **kwargs)
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/cache/huggingface/modules/transformers_modules/internlm-xcomposer2-vl-7b/build_mlp.py", line 59, in __init__
    self.resize_pos()
  File "/data/FinAi_Mapping_Knowledge/qiyiyan/qbw/cache/huggingface/modules/transformers_modules/internlm-xcomposer2-vl-7b/build_mlp.py", line 85, in resize_pos
    pos_tokens = pos_tokens.reshape(-1, orig_size, orig_size,
RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 24, 24, 0] because the unspecified dimension size -1 can be any value and is ambiguous

I got a similar error, did you manage to fix this?

I found this is due to ZERO3, both ZERO3 and ZERO3-offload


Access Denied on mounted folder

Hi, Waldek:
I probably have an unique issue. I tried to use your image, however I can't share my drive directly in docker settings due to enterprise policy. I suspected GPO disabled SMB V1.
Through some research, I tried to manually map my D drive to docker host.

Share D drive
net share D=D:\ /grant:"{domain}{user}",FULL /CACHE:None

Map D drive to docker host, and force SMB V2
docker run --rm -it --privileged --userns=host --pid=host --network=host --ipc=host --uts=host osexp2000/nsenter-dockerd sh
/# mnt=/var/lib/docker/D
/# [ -e $mnt ] || mkdir $mnt
/# mount -t cifs //<IP_ADDRESS>/D $mnt -o user={user}, dom={domain}, vers=2.0

Run container with mapped folder
docker run -it --rm --name SPXProjects -v /var/lib/docker/D/SPXProjects/1.6.0:/usr/app/spfx -p 5432:5432 -p 4321:4321 -p 35729:35729 waldekm/spfx:1.6.0
spfx@1a1f69103ec0:/usr/app/spfx$ ls
test.txt
spfx@1a1f69103ec0:/usr/app/spfx$ mkdir test
mkdir: cannot create directory 'test': Permission denied
spfx@1a1f69103ec0:/usr/app/spfx$

As you can see, in the container, I can view the folder, but can't change anything inside it. I am wondering if there is a way to elevate user spfx's permission.
When I mapped a folder to a container based on image ubuntu, I don't see any issue.
docker run -it --rm -v /var/lib/docker/D/Docker/learningLinux:/learningLinux ubuntu
root@2cc90e2287f0:/# cd learningLinux
root@2cc90e2287f0:/learningLinux# ls
test1.txt  test2.txt  test3.txt  test4.txt
root@2cc90e2287f0:/learningLinux# mkdir test
root@2cc90e2287f0:/learningLinux# ls
test  test1.txt  test2.txt  test3.txt  test4.txt
root@2cc90e2287f0:/learningLinux#
Thanks
Tony Huang

Sorry, I'm afraid I don't have any suggestions for you. Is this the only image you have encountered this problem with?

Yes. I spent way too much time to try to use your docker image, but I couldn't share my drive with docker on windows 10. In corporate environment, I suspect it will happen a lot. So far I still can't figure out why docker can't mount the drive.
I tracked the docker settings through process monitor. It will fail at "nc -zv -w1 <IP_ADDRESS> 445", which means my host's IP <IP_ADDRESS> is not listening 445. Firewall looks fine, so I don't know what I can do.
I do have a workaround, which is mounting the drive through host.docker.internal (<IP_ADDRESS>:445) manually. When I mapped a folder in the drive to your image, it seems the user spfx only can have read permission to the folder. When I mapped the folder to some other images I pull from docker hub, it seems to be fine. Of course, the users usually are root. I guess I am stuck.

Thanks, I am good now.


Again.. going through the list of dependencies and I find RSA.

Its part of the AWS sdk. Where we have our cloud code database and license key logic.
Our google drive solution is used until we can scale up to aws storage.


[top/dv] Fix handling of unpacked dimensions in Ibex lockstep glitch test

The unpacked dimension of glitched I/O ports are defined by parameters in ibex_pkg.sv and thus directly available to the test. Thus, there is no need to probe the design to retrieve these values. While the probing works for VCS it doesn't for Xcelium where the package parameters don't show up as module parameter in the hierarchy.

I agree with the change, but I think the value assigned to unpacked_dim_width when it's unused should be 0 instead of "".

 Thanks for catching this. I've now updated the PR.


can't set the value of a string if it includes an escaped bracket ([)

Environment data
dotnet --info output:
.NET Command Line Tools (1.0.0-preview3-003716)
Product Information:
Version:        1.0.0-preview3-003716
Commit SHA-1 hash: bbf9fe92cf
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
VS Code version: 1.10.1
C# Extension version: 1.7.0
Steps to reproduce

set the value of a string to file\[wc\].txt whilst debugging
Expected  behavior
I can set the value of the string
Actual behavior
got an error message Unrecognized escape sequence

@JamesWTruher this is 'by design'. Typeing in expressions in the debugger is just like typing it into the source file. Your expression isn't valid C#. You need to escape those back slashes. So you want file\\[wc\\].txt.

thanks


Update readme and add some functions

Changes:

Update README.md to group function arguments.
Supplement some shortcuts, such as len, gt and lt etc..
Add sub and not equal operations.
Add test cases.

Fantastic! Thank you very much.
It would be cool if we could maybe add a new decorator (or expand @register) to categorize the different commands into categories:
@category("filesytem")
@register("basename")
@typed(T_PATH, T_PATH)
def basename(inp):
    return os.path.basename(inp)

This, in turn, would allow us to use ft-functions to output something similar to your Markdown table.

@sharkdp Yeah, that would be very helpful to remind someone who need to find a proper function.
We should categorize all the functions when -h parameter is using.


HiveMQ Debugging CI

Don't merge, this is just for debugging the failing CI of #4797 and iterating faster on it.

Can be closed, since the original issue got resolved, thanks to looking into the build scans from these CI runs.


TabularEditor_AddFalseWhereClause

Hi, can you explain how the new feature really works? When I add this as an annotation on  DataSource (SQL) level

I think this appeared because of what I have already in my query statement:
For example:
WHERE fsd.issue_date >= '2010-01-01'
AND fsd.issue_date < '2011-01-01'
OPTION(USE HINT('ENABLE_PARALLEL_PLAN_PREFERENCE'))
below my own code that I use to AddFalseWhereClause
`foreach(var part in Model.AllPartitions)
{
if(part.Query.ToUpper().Contains("WHERE 1=0"))
{
}
else
{
    if(part.Query.ToUpper().Contains("WHERE"))
    {
     //   part.Query.Output();
        part.Query = part.Query.Replace(";","").Replace("WHERE", "WHERE 1=0 and ");
    }
    else
    {
        if(part.Query.ToUpper().Contains("OPTION("))
        {
            part.Query = part.Query.Replace("OPTION(","WHERE 1=0 OPTION(");
        }
        else
        {
        part.Query = part.Query.Replace(";","") +" WHERE 1=0";
        }
     //part.Query.Output();
    }
}

}`

Are you using table-values functions in your SQL query? If not, then you shouldn’t need to use this annotation at all, since Tabular Editor sets the FMTONLY flag on all SQL queries that it executes. However, this flag is not sufficient to prevent the SQL Server from actually executing the query and returning the result when there’s a table-values function involved. This flag can be used in such cases since @KoenVerbeeck found in issue #736 that adding a false where-clause solved the problem.
However, the implementation right now is pretty simple, since it adds the WHERE 1=0 without considering the existing query. So if your existing partition query already has a where-clause you would have to wrap everything in a SELECT * FROM (<original query>) AS T or something like that - otherwise the resulting SQL would be invalid (you can’t have 2 where clauses on a single statement).

You have right i don't use the table-values function in my queries, but I wonder if adding some more complex logic behind this annotation may improve metadata refresh on the model level.
In some of tables/partitons we have ";" at the end (or OPTION as mentioned above). I have test this with table-valued function an I get an error.
Refresh should be faster with this "FalseWhere" ?

I'm not aware that the SET FMTONLY flag which Tabular Editor uses by default, should cause issues other than when using table-valued functions. So adding the False Where should not improve the refresh metadata operation in your case. To verify this, could you try to copy your SQL query from the problematic partitions over to SSMS, and encapsulate it in a SET FMTONLY like so:
SET FMTONLY ON;
SELECT * FROM ... -- Your partition query goes here
SET FMTONLY OFF;

Then execute it and evaluate how fast it returns. The SET FMTONLY ON should make it return almost instantly, without any data - this is the technique used by Tabular Editor, to prevent the loading of any data when checking the metadata.
If it returns instantly, then using the FalseWhere technique will not help you. If it still takes a long time to return, then you might benefit from the FalseWhere technique, provided Tabular Editor can actually construct a valid SQL statement by appending  WHERE 1=0. But again - you should probably test it to make sure.
If the SET FMTONLY ON option returns instantly, and if metadata refresh operations in Tabular Editor still takes a long time to complete, then the issue might be bad connectivity / timeout issues - especially if you have many tables in your model, and you are trying to refresh metadata on all of them at once.