Random snippets of all sorts of code, mixed with a selection of help and advice.
Device to Device(D2D) IP based Group Communication
21 February 2026 @ 4:29 am
One-to-one(O2O) is very Easy in D2D using the WebRTC technology, which provide the Connection End-to-End with the need of server. But when it Comes to the Group then there must be either a server present or in 'N' person of group, there will be 'N-1' outgoing stream which will consume the battery of device as well as bandwidth.
Considering it that network in Local i.e. all users are in the same subnet, we can send the packets over Broadcast address 255.255.255.255 but its not good practice and every one receive the packet and Proper cryptography is not used any rogue device/element is easily able to receive the packets.
I am using MANET(Mesh Network), suggest me the possible ways to achieve these using Android device.
Merge partition with C
21 February 2026 @ 4:04 am
My wife's laptop has 2 hard drives C with (80GB only...) and another one with roughly 400GB.
currently 80GB is not enough, so I'm planning to take a bit from 400 to add to the C: partition.
The first step I could do, but when merging this partition is not available. I believe it is due to be a "non-adjacent" partition from what I have read online.
I'm usingthe NIUBI tool to do this.
the parittion i want to add to C is the G partition with 50GB. I already tried to download 4DDig, Mini Tool soft but the same output.
Is there a way to merge?


VBA Macro for modifying Ribbon produces error
21 February 2026 @ 4:04 am
I am modifying the Excel ribbon to remove three items. The macro produces the "Cannot run the macro..." on load, but the commands are executed and the items are disabled. How can I prevent the error.
Custom UI code for the ribbon modification:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
onLoad="rxlRibbonUI_onload"
<commands>
<command idMso="Cut"
getEnabled = "rxshared_getEnabled"
/>
<command idMso="Copy"
getEnabled = "rxshared_getEnabled"
/>
<command idMso="Paste"
getEnabled = "rxshared_getEnabled"
/>
</commands>
</customUI>
VBA Module Code:
Public grxIRibbonUI_CutCopyPaste As IRibbonUI
Public Sub rxIRibbonUI_onLoad(ByRef ribbon As IRibbonUI)
Set grxIRibbonUI_CutCopyPaste = ribbon
End Sub
Public Sub rxshared_getEnabled(ByRef Control As IRi
This browser or app may not be secure - Google sign with Supabase Auth (Chrome Extension)
21 February 2026 @ 3:48 am
I am trying to set up Google Sign-in with Supabase Auth for my Chrome extension. I am trying to follow the workaround here: https://github.com/supabase/supabase/issues/29763#issuecomment-2994131146
I created OAuth2 client as a web application. and added my Chrome extension url https://myextensionid.chromiumapp.org as Authorized redirect URI.
Added data access scopes: ../auth/userinfo.email, .../auth/userinfo.profile, openid
Audience: External and Published the app in Google Cloud to try any gmail address
Copy-pasted client id and client secret from Google to Supabase Auth.
I triple-checked everything, extension id, url, etc everything is correct.
And here is my code:
supabase.ts
Model context protocol
21 February 2026 @ 3:43 am
I am using this in my project so I need to start mcp server for my project how can I do this mcp hosting in java. I need to monitor the traffic of the mcp server outgoing and incoming data packets how can I achieve this.
Did terminals always reopen even in another profile?
21 February 2026 @ 3:09 am
I've been having issues with my terminals inside VS Code sticking to whatever project I open even if they are in a different profile. I feel like this wasn't happening before but I can't really remember and it's a behavior that has become troublesome now.
My normal workflow has been:
Open a project with VS Code, it has its own profile.
Open a terminal in that window with "Terminal: Create New Terminal in Editor Area".
Start a long running process.
Open a totally different project, different language and different profile.
New window has this previously opened terminal with the process attached. If I close this unrelated project, now not only the terminal gets killed, the long running process too.
I feel like a few weeks back this wasn't normal behavior.
I'm launching both projects by going to their folders in a terminal and doing code .
Has someone experienced this? Is/has this been n
iOS [Transporter] - executable references an unsupported platform in the arm64 slice
21 February 2026 @ 2:51 am
When trying to deploy app with Transporter app:
Validation failed (409)
Invalid executable. The “Runner.app/Frameworks/objective_c.framework/objective_c” executable references an unsupported platform in the arm64 slice. Since your app targets the iOS platform, it should only include executables that support the iOS platform. Simulator platforms aren’t permitted. (ID: 19e59af3-e7a2-43d4-8ab9-fb6a9421a43d)
Prisma create record not working within graphql mutation while I test within graphiql
21 February 2026 @ 2:36 am
I am trying to create an app with node js, graphql, postgresql, and prisma. I have the code below and I've been trying to test my mutation within graphiql playground and it just doesn't do anything. It doesn't write to the database. Below is my type, index.ts, and then my mutation. So I don't know what is wrong with my code. Any suggestions would be helpful.
const userType = `
type Account {
id: Int
email: String
passwordHash: String
firstName: String
lastName: String
active: Boolean
joined: String
expirationDate: String
createdDate: String
updatedDate: String
}
type AccountResult {
token: String
user: Account
}
type Mutation {
register(email: String, password: String, firstName: String, lastName: String): AccountResult
}
type Query {
login(email: String, password: String): AccountResult!
}
`;
export default userType;
import express from 'express';
import { graphqlHTTP } from 'express-graphql'
How to renegotiate over TLS 1.2 using OpenSSL 3?
21 February 2026 @ 12:29 am
Using OpenSSL 3.3.0, we are having trouble with TLS 1.2 renegotiation.
We implemented C++ applications on both the server and client sides, and configured options to enable renegotiation. In practice, when the server initiates renegotiation, the renegotiation itself succeeds on both the server and client.
However, immediately afterward, the SSL_write call on the client side fails. We have the client send messages periodically, and the server is configured to perform a renegotiation after one minute has passed. However, the transmission immediately after the renegotiation completes always fails.
The client is waiting as well, so could there be an issue with how we are performing the send?
Client
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <errno.h>
#include <string.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/x509.h>
#include <o
Are GADTs only syntactic sugar?
20 February 2026 @ 3:45 pm
tl;dr
Is it always possible to desugar a GADT data type into an "ordinary" data type?
(Similar question from 2018, but the ansewer (same age) doesn't address the general case, and the comment under it only restates what the article linked in the question states.)
Full question
Consider this GADT ¹:
data Vec a (n :: Nat) where
Nil :: Vec a Zero
Cons :: a -> Vec a n -> Vec a (Succ n)
I think I can rewrite it like this, abandoning the GADT syntax, and relying on equality constraints on the constructors: