Random snippets of all sorts of code, mixed with a selection of help and advice.
SWBBuildService quit unexpectedly. (in Xcode 26.2 / macOS 26.2)
22 December 2025 @ 11:08 pm
In Xcode when compiling my project after adding a file "CDExceptions.swift", I am getting this error. The file contents appear to be making a component "SWBBuildService" in Xcode crash.
When I press the "Reopen" it seems to compound the error with:
Now here is where it gets wiggy... when I remove the file from the project, the project compiles fine without Xcode tooling crashes. Add the file back in and Xcode tooling crashes happen.
I copy all the text contents of the file into a new file and add that file to the project. (different file, different name, different location) Same issue. Intellij - Can we modify the google_checks.xml to be used with Code Style Scheme's auto format?
22 December 2025 @ 11:07 pm
I'm using Intellij IDEA with CheckStyle-IDEA plugin, then import it using Code Style -> Java -> Import Scheme -> Checkstyle Configuration -> google_checks.xml.
This lets me reformat the project using the "Reformat Code" context menu. It'll reformat a lot of the code, but still leaving around 1000 violations, such as JavadocTagContinuationIndentation, Indentation, FileTabCharacter, OperatorWrap, singleLineCommentStartWithSpace, etc..etc... many of these are just removing/adding spaces or new lines, which should be handled automatically. When using the Intellij IDEA code style XML, we could modify the rules in the XML to work with the auto-format.
Now the question: is it possible to modify the rules in the google_checks.xml and have it affect Intellij's reformat feature? The only rule that seems to work is the LineLengt
How do you %include multiline in Bottle SimpleTemplate .tpl files?
22 December 2025 @ 11:01 pm
I am trying to use multiline %includes in Bottle (SimpleTemplate).
Is this actually possible?
<!DOCTYPE html>
<html>
<head>
<title>Employees</title>
<link rel="stylesheet" href="../static/base.css">
<link rel="stylesheet" href="../static/panel.css">
<link rel="stylesheet" href="../static/panel_list.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="app-container">
<!-- Topbar Area -->
<div class="topbar-area">
% include('topbar', title='Employees', logo_url='../static/logo.png', menu_items=menu_items, right_items=right_items)
</div>
<!-- Main Content Area with Collapsible Panel -->
<div class
Azure DevOps REST API (Go): How to retrieve all users with permissions on a project?
22 December 2025 @ 10:52 pm
I’m trying to retrieve all users who have permissions on a specific Azure DevOps project (i.e., the users shown in the project’s Permissions tab).
I understand how to retrieve a list of projects using the Core API in Go (golang):
organizationUrl := "https://dev.azure.com/{Organization}"
However, this only returns projects and does not include any users or permission data.
I’ve also tried querying the project directly by searching this in my browser:
https://dev.azure.com/{organization}/_apis/projects/{projectId}
This returns project metadata but still does not expose users or permissions.
After reviewing the REST API documentation, I can’t find a single endpoint that returns the users associated with a project’s permissions. I’m aware that Azure DevOps permissions are often assigned via groups, but it’s unclear which APIs are required
Programming with Threads in Java
22 December 2025 @ 10:43 pm
There are my code for trying to understand how does Thread works.
public class NT4 extends Thread {
NT4(){
start();
}
public void run(){
try{
sleep(5000);
}
catch (InterruptedException e){
}
System.out.println("Nova nit probudjena!");
}
static void main(String[] args) throws Exception {
NT4 nn = new NT4();
Thread gnit = new Thread("Glavna nit");
gnit.sleep(2000);
System.out.println("Glavna nit probudena");
nn.interrupt();
}
}
So, in main part of code where I said this NT4 nn = new NT4();
Back, in memory, new object was created. My question is, will nn point to the object of the Thread class or just call method start() and after that method run() by itself?
How to forcibly disconnect/terminate a WebSocket subscription in AWS AppSync Events API from the server side?
22 December 2025 @ 10:41 pm
I'm using AWS AppSync Events API for real-time WebSocket subscriptions. Users subscribe to channels (e.g., /activities/{userId}) and receive events.
My requirement:
When a user logs out, or their session is revoked, or the JWT token expires, I need to terminate their active WebSocket subscription from the backend — without relying on the client to disconnect.
Current setup:
AppSync Events API with Lambda authorizer
JWT token validated at connection and subscription time
Auth results cached for 10 minutes (resultsCacheTtl)
The problem:
Once a user subscribes, the connection stays open for up to 24 hours. Even if their JWT expires or they log out, they continue receiving events. There doesn't appear to be any server-side API to disconnect a specific client.
Note**:** I'm aware AppSync GraphQL has extensions.i
How to resolve .NET dependencies that use different assemblies but have the same name
22 December 2025 @ 10:38 pm
I'm working on a project that uses RFID scanners from two different vendors (Impinj and Vulcan). Impinj provides a library through Nuget called OctaneSDK, and Vulcan uses a library provided by ThingMagic that has to be downloaded and referenced manually. Both libraries depend on assemblies called LLRP.dll, but the files are different and incompatible as far as I can tell.
The LLRP.dll file from Impinj (included with its dependency libltknet-sdk) is the one that ends up being used when running the project.
Is there a way to keep the two assemblies separated, and to make the dependencies to use their respective versions?
For reference, here is an example project file (I'm using F# for this, but I don't think that should matter):
<Project Sdk=&q
Beginner JavaFX Fleet Management System (Fuhrparkverwaltung) - Architecture and Validation Review [closed]
22 December 2025 @ 9:46 pm
I am currently learning JavaFX and have written a simple "Fuhrparkverwaltung" (Fleet Management System) as a practice project. The application allows adding Trucks (LKW) and Cars (PKW) to a list, validating the input (license plates), and sorting the list.
Since I am new to JavaFX and OOP, I would like to get some feedback on my structure. Specifically:
Inheritance: Is the way I extended Fahrzeug (Vehicle) into PKW and LKW correct for this use case?
Controller Logic: I put the validation logic and the listener logic (to disable fields) directly into the initialize and addFahrzeug methods. Should this be separated?
Validation: I used a Regex for Austrian license plates. Is the implementation inside the controller efficient?
Note: The variable names and UI labels are in German (e.g.
Importing variable from python file, which is assigned by a function
22 December 2025 @ 8:34 pm
I am trying to create a global variable across multiple python files. This variable needs to be assigned a value only once. When I use from file import variable the assignment function always runs and reassigns a value to the variable.
Example:
generate.py
import random
a = random.random()
importer.py
from generate import a
print(a)
Each time I run importer.py, a has a different random value.
Even if I add b = a in generate.py and then import b into importer.py, b has a different random value each time i run importer.py
Is Stack Overflow still actively used by developers in 2025?
22 December 2025 @ 5:20 pm
I’m curious about the current state of Stack Overflow’s activity and relevance in 2025.
In recent years, many developers seem to rely more on alternatives such as AI assistants, Discord communities, GitHub Discussions, Reddit, or documentation-first approaches. At the same time, Stack Overflow has historically been the primary place for precise, well-archived technical answers.
My questions are:
Do developers still actively ask and answer questions on Stack Overflow today?
Has the volume or quality of answers noticeably changed in recent years?
In which cases do you still prefer Stack Overflow over newer platforms or AI tools?
Do you think Stack Overflow’s role has shifted rather than declined?
I’m especially interested in perspectives from people who actively contribute answers, moderate, or use Stack Overflow professionally.
Thanks for sharing your experience.