Random snippets of all sorts of code, mixed with a selection of help and advice.
Tauri v2 bundling does not produce any metadata for tauri-updater / latest.json missing
16 December 2025 @ 6:37 pm
Tauri v2.9.1, private GitHub repo with build-action.
I'm trying to get the tauri updater to work, which currently fails, since I can't manage to create a latest.json. The guides and documentation around bundling with tauri v2 is very confusing. Most guides are written for v1, and the guides I found for v2 just don't produce any metadata. I tried the following two approaches:
1) GitHub-action with npx tauri signer sign
...
- name: Build Tauri app
run: npm run tauri build
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
- name: Sign app and generate updater metadata
run: npx tauri signer sign src-tauri/target/release/*.exe
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
How to get the active monitor count in Delphi VCL?
16 December 2025 @ 6:29 pm
I'm trying to get the count for the amount of monitors on my computer using VCL and Delphi.
For my purposes, it only needs to work on Windows 11 and Delphi 13. I don't care about older versions.
Is there an easy and simple way to get the amount of monitors a computer has?
Arduino Nano Every no longer detects my industrial laser sensor (LED won’t turn on, input always HIGH)
16 December 2025 @ 6:26 pm
I have been using an industrial laser/photocell sensor with an Arduino Nano for weeks without any issue. The sensor has 3 wires:
Brown → Vcc, Blue → GND and Black → Signal
On my breadboard I connect them this way:
Brown → 5V on the Arduino Nano, Blue → GND and Black → D2
The Nano is powered via USB from my computer.
This setup has always worked before. I didn’t change the wiring since last week, but today the sensor no longer powers on (its LED doesn’t light up), and the Arduino always reads HIGH (1) on pin D2, no matter what I do.
Here's the code i always used :
const int sensorPin = 2; // Broche numérique où est connecté le capteur
int sensorState = 0; // Variable pour stocker l'état du capteur
void setup() {
pinMode(sensorPin, INPUT); // Définir le capteur comme entrée
Serial.begin(9600); // Initialiser la communication série
}
void loop() {
sensorState = digitalRead(sensor
How to confirm landing when using DJI PSDK?
16 December 2025 @ 6:26 pm
The sample code here: https://developer.dji.com/onboard-sdk/documentation/sample-doc/flight-control.html, in step 5 says that : After aircraft land on the ground, flight mode will be MODE_P_GPS or MODE_ATTITUDE . and provides the following landing finished check:
if (vehicle->subscribe->getValue<TOPIC_STATUS_DISPLAYMODE>() !=
VehicleStatus::DisplayMode::MODE_P_GPS ||
vehicle->subscribe->getValue<TOPIC_STATUS_DISPLAYMODE>() !=
VehicleStatus::DisplayMode::MODE_ATTITUDE) {
DSTATUS("Successful landing!");
} else {
DERROR(
"Landing finished, but the aircraft is in an unexpected mode. "
"Please connect DJI Assistant.");
teardownSubscription(vehicle, pkgIndex, timeout);
return false;
}
But this if condition will always
Spring Data JPA - How to find Fragment Interface Generic Type
16 December 2025 @ 6:19 pm
I am trying to create a Custom Generic Repository using fragment interface approach as described in this article- https://docs.spring.io/spring-data/jpa/reference/repositories/custom-implementations.html
I want to use EntityManager inside that custom repository which requires Class object for some methods-
@Repository
public class LockingRepositoryImpl<T, ID> implements LockingRepository<T, ID> {
@PersistenceContext
private EntityManager em;
@Override
public Optional<T> findByIdForUpdate(ID id) {
return Optional.ofNullable(em.find(getEntityClass(), id, LockModeType.PESSIMISTIC_WRITE));
}
@SuppressWarnings("unchecked")
private Class<T> getEntityClass() {
Class<?>[] obj = GenericTypeResolver.resolveTypeArguments
Is ScyllaDB self-hosted really free if Enterprise is limited to 10TB and 50 vCPU?
16 December 2025 @ 6:18 pm
I’m trying to understand the licensing and limitations of ScyllaDB self-hosted.
On the official website (https://www.scylladb.com), I can only see ScyllaDB Enterprise and ScyllaDB Cloud offerings. I don’t see a clearly labeled “free self-hosted” edition anymore.
From the documentation and Docker images, it looks like ScyllaDB Enterprise self-hosted is available but limited to 10TB of data and 50 vCPU.
My questions are:
Is ScyllaDB self-hosted still considered completely free to use if it is capped at 10TB storage and 50 vCPU?
Are these limits hard-enforced technically, or are they part of the license terms?
Is there any unlimited self-hosted option today (for exampl
Apache Beam update of the source table
16 December 2025 @ 6:15 pm
I'm new to Apache Beam running on GCP, but my question is more theoretical than practical.
I have a source spanner table and a destination spanner table and I'm fetching data from source table to destination with a pipeline. But I need to update the source table column called processingStatus from "New" to "Used" or "Rejected". Is this possible?
Azure AI PermissionDenied Microsoft.CognitiveServices
16 December 2025 @ 6:14 pm
I'm trying to use an Azure Agent on AWS Lambda but I'm getting this error relate with Permission Denied but I tried to set up all the permission the de project need.
"errorMessage": "(PermissionDenied) The principal `uuid` lacks the required data action `Microsoft.CognitiveServices/accounts/AIServices/agents/read` to perform `GET /api/projects/{projectName}/agents/*` operation. For instructions on granting the necessary permissions, see https://aka.ms/FoundryPermissions.\nCode: PermissionDenied\nMessage: The principal `uuid` lacks the required data action `Microsoft.CognitiveServices/accounts/AIServices/agents/read` to perform `GET /api/projects/{projectName}/agents/*` operation. For instructions on granting the necessary permissions, see https://aka.ms/FoundryPermissions.",
"errorType": "ClientAuthenticationError",
WebSocket SockJS Connection Blocked by Duplicate CORS Headers in Spring Cloud Gateway + Nginx Setup
16 December 2025 @ 6:12 pm
Problem
I'm getting a CORS error when connecting to a WebSocket endpoint through Spring Cloud Gateway with Nginx as a reverse proxy (it works on my local env without nginx):
Access to XMLHttpRequest at 'https://dev.api.website.app/ws/chat/info?t=1765896639374'
from origin 'https://dev.website.app' has been blocked by CORS policy:
The 'Access-Control-Allow-Origin' header contains multiple values
'https://dev.website.app, https://dev.website.app', but only one is allowed.
Architecture
Browser → Nginx → Spring Cloud Gateway → Chat Microservice (WebSocket)
Current Configuration
1. Spring Cloud Gateway CORS Configuration
@Bean
public CorsWebFilter corsWebFilter() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.setAllowedOrigins(List.of(
"http://localhost:4200",
"https://de
Performance: Efficiently Serving Laravel's Public Assets through Nginx/Go Proxy within a Dockerized Environment
16 December 2025 @ 5:57 pm
I am running a Laravel application containerized with Docker (using a PHP-FPM image) that sits behind Nginx as a reverse proxy.
Since the project features numerous public assets (images, CSS, JS) and requires the lowest possible latency, I am considering replacing the traditional Nginx asset serving with a dedicated custom microservice written in Go to handle only the static files, aiming for resource efficiency and speed.
My questions focus on the optimal production architecture:
Best Approach for Asset Separation: What is the best architectural pattern in a Dockerized environment to efficiently isolate the serving of static assets (from the public folder) without requiring a complete image rebuild every time assets are updated?
Go Microservice vs. Nginx: If using a Go sta