Random snippets of all sorts of code, mixed with a selection of help and advice.
Debian 12 Pixelbook Go Audio Issues
10 June 2026 @ 5:50 pm
Pixelbook Go (2019?)
Debian 12 (installed via https://docs.mrchromebox.tech/docs/getting-started.html)
Issue: No Audio through speakers/headphone jack (I understand this OS is not supported on device, however trying to find solution)
Only getting Dummy Audio
Workaround: USB interface does work.
Troubleshooting:
Per https://docs.chrultrabook.com/docs/installing/installing-linux.html#fixing-audio
# git clone https://github.com/WeirdTreeThing/chromebook-linux-audio.git
# cd chromebook-linux-audio
# ./setup-audio
Error: recieving multiple Warning: Kernel is missing module 'SND_SOC_INTEL_AVS' messages
main.h doesn't appear in preprocessed file
10 June 2026 @ 5:44 pm
First, let me show you the file structure before asking the question:
directory:
main.h
main2.h
main.c
main2.c
check.c
main.c:
int add(int a, int b){
return a + b;
}
main.h:
#pragma once
int add(int a, int b);
------------------------------------------------------------------------------------------------------------
main2.c
#include "main.h"
int addTwice(int a , int b){
return 2*add(a, b);
}
main2.h
#pragma once
int addTwice(int a, int b);
-------------------------------------------------------------------------------------------------------------
check.c:
#include <stdio.h>
#include "main2.h"
int main(){
printf("%d\n", addTwice(1,2));
}
When I generate the preprocessed file of check.c
JMS Listener Threads slowly Decline over time
10 June 2026 @ 5:39 pm
I have a Spring Boot Java application using JMSListeners with the DefaultJmsListenerContainerFactory with a maximum concurrency of 300 using AutoAcknowledge
When the application is started, processing proceeds quickly, but beings to tail off after an hour or so. I've added an Aspect over the Listeners that tracks the number of threads in flight and interrupts any thread that's been running for too long. I can see the number of threads in Flight reduces steadily over that hour.Restarting the application causes a surge back to the expected 300 concurrent threads and then another slow reduction back down to single digits.What could be causing the application to run down the number of concurrent listeners?
join_by() where key in x can match two keys in y
10 June 2026 @ 5:32 pm
I want to match two dataframes where a key in dataframe A can be matched to either key 1 or key 2 in dataframe B:
a<-tibble(key=as.character(c(1:4)), else1=c("cup", "plate", "bowl", "jug"))
b<-tibble(key1=c(1,"","",""), key2=as.character(c(5, 2, 3, 4)), else2=c(rep("banana",3), "pear"), else3=c("blues", "jazz", "reggae", "ska"))
# A tibble: 4 × 2
key else1
<chr> <chr>
1 1 cup
2 2 plate
3 3 bowl
4 4 jug
# A tibble: 4 × 4
key1 key2 else2 else3
<chr> <chr> <chr> <chr>
1 "1" 5 banana blues
2 "" 2 banana jazz
3 "" 3 banana reggae
4 "" 4 pear ska
I tried a left_join() with dplyr so that whenever a value in a$key can't be matched to anything i
C++ code won't compile because of a problem with std::sort [duplicate]
10 June 2026 @ 5:30 pm
Here's the relevant piece of the code which won't compile:
#include<iostream>
#include<vector>
#include<algorithm>
int nadjiNajmanjuRazliku(const std::vector<int> &a, const std::vector<int> &b){
std::sort(a.begin(), a.end());
std::sort(b.begin(), b.end());
int i=0;
int j=0;
Here's the error message:
In file included from /usr/include/c++/11/algorithm:62,
from mi24088_Najblizi_par.cpp:3:
/usr/include/c++/11/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’:
/usr/include/c++/11/bits/stl_algo.h:1866:25: required from ‘void std::__final_insertion_sort(_RandomAcc
Running web hosts sequentially in a .NET Windows service
10 June 2026 @ 3:09 pm
I have a .NET 9 application that runs either as a Systemd service or a Windows service. It's an ASP.NET Core application, so I create a web host and add UseWindowsService() and UseSystemd() when configuring the host.
But before this web host runs, there is some stuff to do like migrations. While that is running I create a different web host showing a minimal status UI. The problem now is that this doesn't fit to the way the Windows Service integration in .NET works.
I see only choices here that cause problems:
If I add UseWindowsService() to my temporary Web Host for migrations, once I shut that down it seems to also shut down the Windows service. This doesn't happen with systemd on Linux.
If I remove this I risk that Windows kills my service as unresponsive if the migrations take a bit longer.
I cannot run the migration code inside the main web host, the code inside assumes all
How to create an NVDA-accessible multi-line text editor in PyQt6/PySide6?
10 June 2026 @ 2:05 pm
I am a blind Python developer building a PyQt6/PySide6 application.
QTextEdit has serious NVDA screen reader issues:
Content announced twice during navigation
Cannot distinguish current line from new line
No reliable cursor position feedback
QLineEdit is accessible but single-line only.
What is the technical approach to implement a fully NVDA-accessible multi-line text widget in PyQt6 or PySide6?
Matching multiple pairs of values between two tables; looking for an efficient maintainable method
10 June 2026 @ 2:00 pm
I have the following two tables:
Table article_description:
article_code
locale
article_description
0001
EN
SAMPLE DESCRIPTION THAT MAY CONTAIN A KEYWORD ASC
0001
NL
DUMMY OMSCHRIJVING MET KEYWOORD ASC
1234
EN
SAMPLE DESCRIPTION ASC THAT MAY CONTAIN A KEYWORD
1234
NL
DUMMY OMSCHRIJVING ASC MET KEYWOORD
4567
EN
SAMPLE DESCRIPTION WITHOUT A KEYWORD
5678
EN
DESCRIPTION WITH OTHER KEYWORD FT
Table article_labels:
article_code
locale
label_code
0001
Why is my training loss not decreasing while fine-tuning Qwen with Unsloth?
10 June 2026 @ 12:57 pm
I'm guys training AI here, but the loss isn't decreasing. What should I do? Here's the notebook I'm using. I would appreciate your help. "
==((====))== Unsloth - 2x faster free finetuning | Num GPUs used = 1
\\ /| Num examples = 99,895 | Num Epochs = 1 | Total steps = 2,082
O^O/ \_/ \ Batch size per device = 48 | Gradient accumulation steps = 1
\ / Data Parallel GPUs = 1 | Total batch size (48 x 1 x 1) = 48
"-____-" Trainable parameters = 42,467,328 of 4,581,732,864 (0.93% trained)
[ 417/2082 1:59:07 < 7:57:56, 0.06 it/s, Epoch 0.20/1]
Step Training Loss
10 0.593481
20 0.581336
30 0.580326
40 0.580277
50 0.595143
60 0.616264
70 0.618593
80 0.613083
90 0.622422
100 0.619343
110 0.625608
120 0.615276
130 0.625236
140 0.628931
150 0.624372
160 0.615979
170 0.618827
180 0.617866
190 0.621115
200 0.612743
210 0.614142
220 0.612816
230 0.613416
240 0.618401
250 0.621099
260 0.626098
270 0.613715
280 0.618084
290 0.62
Chrome vs Firefox Developer Edition
10 June 2026 @ 6:29 am
I'm a web developer trying to decide between Google Chrome and Firefox Developer Edition as my primary development browser. I use DevTools frequently for debugging HTML/CSS/JS, inspecting network requests, and performance profiling.
What are the key differences between Chrome DevTools and Firefox DevTools in daily development workflows? Are there specific use cases where one clearly outperforms the other? I'd also appreciate insights from developers who have switched from one to the other and their experience.