Random snippets of all sorts of code, mixed with a selection of help and advice.
With Spring Boot, a kafkaTemplate.send(topic, msg).join() on Apache Kafka returns a producer record and its metadata, but no message is in the topic
4 June 2026 @ 3:56 am
I'm using Apache Kafka 4.1.2 for a test. It has to send a message in a local-health-status-v0 topic.
The topic is created from a Spring-Boot 4.0.6 @Config:
@Bean
public NewTopic healthStatusTopic() {
String healthStatusTopicName = String.format(HEALTH_STATUS_TOPIC_FMT, this.environmentService.topicEnvironment(), this.environmentService.version());
return TopicBuilder.name(healthStatusTopicName)
.partitions(this.healthTopicPartitions)
.replicas(this.healthTopicReplicas)
.build();
}
And it succeeds. I can execute:
/opt/kafka/bin/kafka-topics.sh --list --bootstrap-server localhost:9092 --topic local-health-status-v0
And it succeeds. I can execute:
/opt/kafka/bin/kafka-topics.sh --list --bootstrap-server localhost:9092 --topic local-health-status-v0
How can we use .p8 APNs on Twilio Notify/Mobile Push?
4 June 2026 @ 2:46 am
It is worth calling out that Apple introduced APNs token-based authentication back at WWDC 2016, so .p8 APNs auth keys have been available for roughly a decade now. Apple’s own APNs documentation describes token-based authentication as the modern stateless option, with benefits including use across multiple provider servers, use across multiple apps, and avoiding certificate lookup overhead.
Twilio still requiring an APNs certificate/private-key pair for mobile push credentials creates a real operational risk for production apps. APNs certificates expire and have to be renewed manually; when that renewal is missed, push delivery can fail. This is just a pain in the backside for developers.
Yes, it's once a year, but you get developers coming/going from an organisation and this can easily be missed.
A .p8 APNs auth key is a better fit for this use case: it does not expire annually, can be revoked/rotated intentionally when needed, supp
How to add a dependency to a local package
4 June 2026 @ 2:41 am
I'm working on a SwiftUI iOS app with a watchOS companion app that uses a local common package for shared data, services, and utilities. I've kept it pretty self-reliant throughout development, but one of the hard requirements is that it reports logs and errors to Sentry so I have no choice but to include the Sentry SDK. There are numerous places throughout the package as well as the apps themselves that log to the Sentry instance.
Initially, I followed the instructions to install the Sentry SDK using the wizard, and it added it to the Xcode-managed dependency list for the apps as expected. During development, everything was going fine. But when I tried to archive the project to push it to TestFlight, I started getting errors in the common package that the Sentry dependency couldn't be found.
Where can I go to get my repo and model peer-reviewed
4 June 2026 @ 2:33 am
JC Compute is a formal computational model in which execution is defined as replayable reduction over causally ordered event histories, bounded by capability authority. This repository contains:LayerContentsFormal foundations (formal/)Lean 4 machine-checked proofs (T3–T6) + TLA⁺ model-checked specs (T1–T2)Core substrate (packages/)UniStack v3 — Field, Reducer, IR, Merkle, Root, Sync, Query, Meta, RuntimeRuntime (runtime/)Fixed-point operator F_Q, oracle, CRDT consensus, compression phase spaceApplication layer (app/)CLI + HTTP server; 6 domain demos; full pipelineTests (tests/, test/)20+ unit + integration test filesBenchmarks (benchmarks/)13 benchmark suites 3 years 1 question led here
Looking for a senior Kubernetes Engineer Mentor
4 June 2026 @ 2:25 am
I am an Azure Cloud engineer looking for a senior Kubernetes engineer mentor. I love everything related to Kubernetes and would like to be specialized in it. Please let me know if you are one or know someone. Thank you
What happened to the aggresive cavemans in stack overflow?
4 June 2026 @ 2:14 am
Just prove my point, by downvoting, restricting me, banning me, whatever you want. Lol. This is what the AI gave me proving the point and without even directly asking.
Self-Inflicted Toxicity: Long before AI rose to dominance, the platform struggled with a notoriously hostile user culture. Newcomers frequently faced immediate downvotes, aggressive duplicate flags, and condescending comments from power users.
Automatic Static Date Stamp
4 June 2026 @ 1:00 am
I've been trying to figure out how to do an automatic static date stamp. I'm self-learning, and my experience with App Script is not yet solid but basically, here's one I'm trying to do:
Sheet A has "Data Received" (Column D). This is where a user will input the date of when he received the ticket. When "ClosedRow15" function is run, it will copy the data and in Sheet B, it should override the date and put a static timestamp of the day the ticket was closed. For example, I closed the ticket today: ClosedRow15 should copy the data to Sheet B but the date should be overriden in Column D with today's date.
Notes:
MoveRow15 and ClosedRow15 function are working properly.
The code below:
function MoveRow15() {
var sheet = SpreadsheetApp.getActiveSpreadsheet()
var ConsolidatedSheet = SpreadsheetApp.openById('REDACTED').getSheetByName('New starting June');
var source = sheet.getSheetByName('Tracker')
How to get VS Code "Chat" to use llama.cpp running locally?
3 June 2026 @ 11:45 pm
In version 1.122+, at least, it seems that VS Code is supposed to be able to use local models instead of GitHub Copilot. I tried to configure them using the command Manage Language Models. When I click Add in it, I see a bunch of options, including ollama, but none of them are llama.cpp. If I proceed with a Custom Endpoint, I get a JSON configuration file. And this is what I'm trying:
[
{
"name": "My Custom Endpoint",
"vendor": "customendpoint",
"apiType": "chat-completions",
"models": [
{
"id": "myllamacpp",
"name": "my llama cpp",
"url": "http://localhost:8080",
"toolCalling": false,
"vision"
WSL2 curl does nothing [closed]
3 June 2026 @ 7:11 pm
I have WSL2 installed on win 10. WSL is using ubuntu:
WSL version: 2.7.3.0
Kernel version: 6.6.114.1-1
WSLg version: 1.0.73
MSRDC version: 1.2.6676
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.6456
I rarely use it (another distro is being used by docker). I wanted to run a simple bash script and tried to run curl, but saw it hangs forever. I tried pinging some ips and domains and they all work, so ping is okay and network connections "seems" to be okay. but both curl and wget are hanging forever:
~$ curl stackoverflow.com -v
<nothing happens>>
or
~$ curl -v http://example.com
* Trying 104.20.23.154:80...
* Trying 2606:4700:10::ac42:93f3:80...
* Immediate connect fail for 2606:4700:10::ac
How can I tell if a command is available in real DOS?
3 June 2026 @ 6:49 pm
I want to create a batch program that allows me to execute a command, but only if the command is available in MS-DOS 6.22.
The command is accessible as long as it is located in any path included in the PATH.
Example:
SET COMMAND=STRINGS.COM
IF NOT EXIST %COMMAND% GOTO END
%COMMAND%
:END
"Exist" only checks if the file or directory exists in the current path; it does not search in the directories included in the PATH, so I need help finding a way to make it work.
Thanks in advance.