StackOverflow.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (13 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

High-quality Catalan text-to-speech voices for broadcast-style promo audio [closed]

3 February 2026 @ 9:15 am

What text-to-speech services support high-quality Catalan voices usable for broadcast-style promos

Print layout needs fixes

3 February 2026 @ 9:06 am

export const PrintPatientReport = ({ patient, labResults = [], radiologyResults = [], clinicalNotes = [], selectedSections, reportDate }) => { const headerImg = "/header.png"; const footerImg = "/footer.png"; // Convert lab.result JSON to clean table rows const formatLabResult = (lab) => { try { const data = typeof lab.result === "string" ? JSON.parse(lab.result) : lab.result; if (data.image) { return `<tr><td colspan="2"><img src="${data.image.replace(/\\/g, '/')}" style="max-width:300px;" /></td></tr>`; } return Object.entries(data) .map(([key, val]) => `<tr><td>${key}</td><td>${val}</td></tr>`) .join(""); } catch (err) { return `<tr><td colspan="2&qu

How to use ASAN with msvc in compiler explorer

3 February 2026 @ 8:55 am

I can use sanitizing with gcc and clang in compiler explorer but fail to do so with msvc. Is it possible and how? I'm testing with this simple leaking snippet: class LeakingStruct { public: LeakingStruct() : ptr{new int[42]} {} private: int* ptr; }; int main() { LeakingStruct const s; } // leaking, resource not released LIVE

Designer don't work in new Visual Sudio 2026

3 February 2026 @ 8:48 am

Design window displays errors I'm was using Visual Studio 2019 to edit source code of mission planner (winforms) and after I move to 2026 and try to open any designers I see this errors at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) I've already try to rebuild project, clean and build solution, build it on any cpu/x86, run repair of visual studio and delete .vs, obj and bin

How to fix 16 KB page size / ELF alignment error in Flutter on Android 14+

3 February 2026 @ 8:44 am

Flutter APK fails on Android 14+ with 16 KB page size error after SDK upgrade – how to fix 16 KB alignment? What are the required steps to make a Flutter app compatible with Android 14 (16 KB page size)? Specifically: Which Android Gradle Plugin and Gradle versions are required? Do I need a specific NDK version? How do I fix native .so library alignment issues coming from Flutter plugins? Is there a way to identify which dependency is causing the 16 KB error? Any guidance or best practices to fully resolve 16 KB alignment issues in Flutter would be appreciated. PS C:\abhisek\spay> flutter --version Flutter 3.32.4 • channel [user-branch] • unknown source Framework • revision 6fba2447e9 (8 months ago) • 2025-06-12 19:03:56 -0700 Engi

GNOME OSK (gjs-osk) works in main page but hides behind Chromium kiosk window when focus is inside an iframe

3 February 2026 @ 8:44 am

I’m setting up an HMI interface on Ubuntu + GNOME. The application is a web page shown in Chromium kiosk mode. I’m using this on-screen keyboard extension because it’s movable and customizable: https://extensions.gnome.org/extension/5949/gjs-osk/ Problem: On the main page, the keyboard behaves correctly. But when an <input> field is inside an <iframe>, the keyboard appears for a brief moment and then seems to go behind the Chromium kiosk window (so it’s no longer visible / usable). Question: Is there any way to prevent this and force the OSK window to stay on top (above Chromium), even when focus is inside an iframe?

SVN Git Migagration

3 February 2026 @ 8:42 am

I'm trying to migrate an SVN repository to GitLab where the SVN trunk becomes the Git master branch and a specific SVN branch becomes a Git branch. I'm using git svn clone to pull the repository from SVN. The problem is that after cloning, the trunk and branches aren't properly set up as Git branches - instead they appear as remote references that need to be converted. The trunk creates an extra branch instead of becoming master directly, and branches are under refs/remotes instead of being local branches. I need to clean up these references and properly map them before pushing to GitLab.

How to avoid ugly dependency notation in a Gradle Convention Plugin

3 February 2026 @ 8:40 am

I've successfully set up a Gradle Convention Plugin, which streamlines applying always-used dependencies for my android-library-modules: internal class AndroidLibraryConventionPlugin : Plugin<Project> { override fun apply(project: Project) { with(project) { pluginManager.apply { apply("com.android.library") } dependencies { add("implementation", libs.findLibrary("koin-core").get()) add("implementation", libs.findLibrary("androidx-core-ktx").get()) [...] } } } } internal val Project.libs get(): VersionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs") However, the notation is pretty ugly compared to a "standard" gradle dependency notation (using typesafe project accessors) like: dependencies {

Angular Capacitor Android: Making Password Manager Work with Login

3 February 2026 @ 8:37 am

I’m working on an Android app. I want to make the password manager on Android (Samsung device) usable with my login form. I’m testing the app via USB debugging on an older Samsung phone. According to the logs, autofill service starts but then aborts because no credentials are found. Also, after logging in, the password manager never asks me to save the credentials. My goal is that when I log out or exit the app, I don’t have to type everything again instead, the Samsung password manager should remember my credentials and autofill them next time I open the app. Here is my login method in TypeScript: public doLogin(param: { username?: string; password: string }) { if (this.formIsDisabled) { return; } param = LoginComponent.preprocessCredentials(param.password, param.username); this.formIsDisabled = true; this.websocket.login(new AuthenticateWithPasswordRequest(param)) .finally(() => { this.formIsDisabled = false;

"Provisioned throughput is not enabled for this workspace" [provisioned throughput, model serving endpoint

3 February 2026 @ 8:17 am

When I try to create a provisioned throughput model endpoint for a foundational model hosted by Databricks via the UI (e.g. databricks-gpt-5-mini), I get the error message "Provisioned throughput is not enabled for this workspace.". I tried going through some troubleshooting steps, namely: disable "Enforce data processing within workspace Geography for Designated Services" in Accounting settings --> Workspace --> Security and Compliance --> uncheck box check on Azure Portal that I am not running the Databricks workspace under strict compliance such as HIPAA, which is not the case [EDIT: HIPAA would actually be ok, but in any case I am not running under a strict compliance regime, hence this should not be an issue] The workspace is located in eastus2. I am the only admin / user of that Databricks account and workspace and the user account has execute / manage rights for models / model endpoint. The workspace is r