Random snippets of all sorts of code, mixed with a selection of help and advice.
Discovering 3rd party AUv3 instruments with AVAudioUnitComponentManager
28 December 2025 @ 6:59 pm
I'm currently using the code that Apple provided in its AudioToolbox article for finding audio units. But it only ever finds Apple manufactured audio units (like AUMIDISynth and AUSampler) and no third party instruments. I have several 3rd party AUv3 instruments (Moog Model D, AudioKit FM Player 2 etc) installed across multiple devices, which I can see and open using eg GarageBand, but am not able to find using AVAudioUnitComponentManager.
Are there extra steps I need to follow to access 3rd party AUv3?
Groovy script not working in Jenkins job, but it does on script console?
28 December 2025 @ 6:56 pm
I have the following Groovy/pipeline script I use as an "Active Choice Parameter." I run it in as a Groovy sandbox or an approved script. It gets a job's successful builds' display names and presents them in a dropdown list.
import hudson.model.*
BUILD_JOB_NAME = "my-job"
def getAllBuildNumbers(Job job) {
def buildNumbers = []
job.builds.each {
def status = it.getBuildStatusSummary().message
if ((status.contains("stable") || status.contains("normal")) && it.displayName.contains("-")) {
println it.displayName
buildNumbers.add(it.displayName)
}
}
return buildNumbers
}
Job<?, ?> job = Jenkins.instance.getItemByFullName(BUILD_JOB_NAME, Job.class)
println job
def buildNumbers = null
if (job != null) {
buildNumbers = getAllBuildNumbers(job)
}
return buildNumbers
When I run it in the console,
How to display the first slide of a web slideshow containing images AND accompanying boxed descriptions?
28 December 2025 @ 6:37 pm
This is the first image of the slideshow. All the help I've tried to find online only involved image slideshows, but my slideshow contains images AND boxed descriptions on top of the image. For example, this is the first slide:
To start, all the slides are hidden. Then after everything has loaded, the first slide is supposed to appear. But, it is NOT appearing. Here is the relevant code, what am I doing wrong?
const slides = document.querySelectorAll("slide);")
let slideIndex = 0;
let intervalId = null;
document.addEventListener("DOMContentLoaded", initializeSlider);
fu
To start, all the slides are hidden. Then after everything has loaded, the first slide is supposed to appear. But, it is NOT appearing. Here is the relevant code, what am I doing wrong?
const slides = document.querySelectorAll("slide);")
let slideIndex = 0;
let intervalId = null;
document.addEventListener("DOMContentLoaded", initializeSlider);
fuCannot get the 'influxdb-in' node working
28 December 2025 @ 6:30 pm
I have a flow in node-red with a influxdb-out node that writes sensor data to the db. This works fine. I also have a influxdb-in node that sends a query (V.2, flux language) to influx and that node just does nothing. I have a 'catch' and 'done' node connected with them and they don´t throw an error or a success message. The debug node that is connected to influxdb-in node does not receive anything.
If i copy my query into the influxdb editor it runs without problems. Since the db connection is the same as the influxdb-out node, it can´t be the configuration.
What else could I check to get this running?
How to get last inserted id in lazarus by zconnection
28 December 2025 @ 6:22 pm
I use lazarus and zeosdb with mariadb.
I want to get last inserted id after insert statement.
I tried 'select last_insert_id()' but it returns 0
Anyone can help please?
TIMETABLE making issue
28 December 2025 @ 6:18 pm
I have got html js . Now there are some errors . Classes of Saturday is not able to display (day 6).
Some people have class during lunch not able to handle that(only in table mode )
Active Class highlight not working .
I have coded necessary functions for it to work still not working . If anyone can see my repo and fix it .
My repo link https://github.com/mahitmass/CHECK and the website address where it finally works https://check-pearl-nu.vercel.app/
MISTRAL API UPLOAD
28 December 2025 @ 6:00 pm
The MISTRAL documentation indicates that text files (.txt) are accepted, as are PDF and DOCX and others. Indeed, with the CHAT function, a text file can be sent before a prompt is sended. Using the Mistral AI file API, I can easily upload a PDF file with the code shown below. However, if I try to upload a text file (the same that CHAT has accepted) I get an error message with The list of accepted formats : it does not include "text/plain," contrary to the list in documentation.
Here is my code:
public async Task<string> UploadFileAsync(string filePath, string purposeTo = "ocr")
{
// 2 lines below are done in the constructor
//_httpClient = new HttpClient();
//_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", myApiKeyMistral);
if (!File.Exists(filePath)) return ($"Erreur, fichier non trouvé: {filePath}");
FileInfo fileInfo = new FileInfo(filePath);
i
Flutter iOS: Persistent "Undefined Symbol" Linker Error with Firebase Analytics
28 December 2025 @ 3:46 pm
I am facing a persistent and seemingly unsolvable linker error when building my Flutter app for the iOS simulator on an Apple Silicon (M2) Mac air. The build consistently fails with "Undefined symbol" errors related to Firebase Analytics, even after trying a very extensive list of troubleshooting steps, including completely recreating the native iOS project.
The exact error is:
Error (Xcode): Undefined symbol: _FIRConsentStatusDenied
Error (Xcode): Undefined symbol: _FIRConsentStatusGranted
Error (Xcode): Undefined symbol: _FIRConsentTypeAdPersonalization
Error (Xcode): Undefined symbol: _FIRConsentTypeAdStorage
Error (Xcode): Undefined symbol: _FIRConsentTypeAdUserData
Error (Xcode): Undefined symbol: _FIRConsentTypeAnalyticsStorage
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_FIRAnalytics
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
What I Have Already Tried
I have tried e
Looking for ideas for a Master’s thesis topic in Data Science & AI (Banking – Fraud Detection – PDF Analysis)
28 December 2025 @ 2:33 pm
I’m a final-year Data Science & AI Master’s student, currently defining my thesis topic. I’ll be doing my research in a bank, working on fraud detection, with a focus on PDF document analysis.
I’m looking for ideas for a relevant and realistic thesis subject, ideally involving:
Machine Learning / Deep Learning
If you have suggestions for specific topics, research directions, or feedback on what works well in a banking context, I’d really appreciate it.
Thanks in advance!
How to separate variables on each line in a batch SET statement?
28 December 2025 @ 1:31 pm
I have some data fields gathered in a SET statement like this:
set "datastr=%num_cde%, %id_achat%, %modele%, %sysfam%, %serial%, %ldt%"
later echoed as an email body as:
SET "EmailBody=%datastr%"
And I would like the data to appear each on a separate line in the email text as :
%num_cde%
%id_achat%
...
I have tried several tricks, but none worked. How can I achieve this?
Thanks,