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.

RealityKit blinking magenta artifacts in post-processor due to race condition

4 January 2026 @ 7:33 pm

I am working on a "glowing effect" post processor. Basically, it has 4 passes: render selected entities (that I wan to apply glow effect) to a "mask texture" blur the mask texture horizontally blur the mask texture vertically composite the double-blurred mask with the original texture It worked well on my large screen phones (e.g. iPhone 15 Pro): enter image description here However, it shows a grid of magenta square artifacts on my iPhone 13 mini: enter image description here My post processor code looks like this: public func processFrame(context: ARView.PostProcessContext) -> Bool { guard let commandBuffer = commandQueue.makeCommandBuffer() else { return false } // Pass 1: Render selected enti

Tkinter does not display Frames correctly after grid_remove() under macOS

4 January 2026 @ 7:21 pm

I have the following problem. I created a desktop application to generate invoices for my dad's company. The machine I wrote this application for is an iMac from 2011 running macOS High Sierra (10.13.6). Because I have no Mac to test on and the age of the target system, I choose tkinter to implement the GUI mainly for its cross-platform compatibility (and because i taught that tkinter is kind of old so it has good chances to run on an old osx). Now that my application is nearly finished and I had a chance to test it under OS X, I found a bug regarding the display of pages. My application has several pages that the user can select from. The pages are implemented as frames with the corresponding contents placed on top. For switching between pages, I wrote a widget called "pageSwitcher". This widget stores the current page object in a class variable (self.currentlyDisplayedPage), and if a page switch is triggered, .grid_remove() the current pa

Angular SSR doesn't serve HTML

4 January 2026 @ 7:19 pm

I added the Angular SSR boilerplate code to my existing Angular 21 project by using the schematics ng add @angular/ssr which generated the following files: server.ts main.server.ts app.module.server.ts app.routes.server.ts It also added these entries to the angular.json: "browser": "src/main.ts", "server": "src/main.server.ts", "outputMode": "server", "ssr": { "entry": "src/server.ts" } So ng build now creates both a /browser and a /server directory within /dist. After building, I tried node dist/tabula/server/server.mjs, however, the content is still served dynamically and not static as html. server.ts: import { AngularNodeAppEngine, createNodeRequestHandler, isMainModule, writeResponseToNodeResponse, } from '@angula

Undefined reference to string constructor with a particular compiler and flags

4 January 2026 @ 7:06 pm

Completely minimal source: #include <string> int main() { std::string S; } When I try to compile it with GCC 15.2.1 and flags -std=c++17 -fconcepts -fsanitize=undefined -O2, I get an undefined reference to the symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EvQ26is_default_constructible_vIT1_E (whole error, nothing more from the linker). As I understand, that's the mangled form of the constructor std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string() [with T = char, std::is_default_constructible_v<T> = true], though c++filt can't demangle it. The linker error goes away when removing the sanitizer, switching to -O0 (but not -O1), removing -fconcepts or switching to C++14 or C++20. I can't try to replicate it on Compiler Explorer since it doesn't have this GCC version y

Snowflake undrop temporary table with DATA_RETENTION_TIME_IN_DAYS=0 successful

4 January 2026 @ 7:04 pm

I am preparing for the snowflake exam and I tested setting DATA_RETENTION_TIME_IN_DAYS=0 and works for Permanent table and transient table. but when I tried it on temporary table I get this message: “Table EMPLOYEES_TEMPO successfully restored.”. so is it safe to answer this question with yes in the snowflake exam. "A user sets retention to 0 for a temporary table and drops that table. Can they Undrop it? CREATE temporary TABLE employees_tempo( employee_id NUMBER, name STRING, department STRING, salary NUMBER(10,2) ); INSERT INTO employees_tempo VALUES (1, ‘Alice’, ‘HR’, 65000), (2, ‘Bob’, ‘IT’, 80000), (3, ‘Carol’, ‘Finance’, 90000); select * from employees; ALTER TABLE employees_tempo SET DATA_RETENTION_TIME_IN_DAYS = 0; drop table employees_tempo; undrop table employees_tempo;

SwiftData - limit to one of each matching query

4 January 2026 @ 7:00 pm

I have a SwiftData model. For the sake of simplicity, the model looks a bit like this: class LogItem { var timestamp: Date = Date() var itemName:String = "" var itemValue:Int = 0 } This is, as you likely guessed, an activity log. There are many itemNames. The "items" generate log entries several times within a date range in unpredictable intervals and order. I have a SwiftUI view that shows all the logged activity in a SwiftUI List, including filtering options, and that's all working fine. I would like to have a user-facing filter option to only display the most recent log entry for each item. Is this possible to do, either within the FetchDescriptor predicate or the List filter? I'm aware of fetchDescriptor.fetchLimit to limit the total results. Of course setting that to 1 just gives me one total result. If I have 25 distinct itemNames, I want the list to only include 25 items, one f

elementor off-canvas is not visible on webview

4 January 2026 @ 6:09 pm

I have a wordpress/elementor website for which I'm developing an android app. the website uses an off-canvas widget for the main menu and it works great on commercial browsers on pc or smartphones, but when it comes to the webview, the off canvas container is not visible. I need help.

Is GetMixFormat() obsolete?

4 January 2026 @ 5:44 pm

According to this; WAVEFORMAT is obsolete and is not supported by the WDM audio subsystem in any version of Microsoft Windows The website also has a category called "Legacy Use of WAVEFORMATEX". GetMixFormat() only returns a WAVEFORMATEX and for the WAVEFORMATEXTENSIBLE website (which I presume holds the WAVEFORMATEX object pointer) it says this; The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by

How do I add coverage gains from dependent projects with gradle and jacoco?

4 January 2026 @ 3:29 pm

I have a multi-module gradle project with the following structure: Eclipse project structure The files at the project root are: settings.gradle: include "SayHello.Core", "SayHello.Driver" build.gradle: apply plugin: 'java' apply plugin: 'maven' allprojects { apply plugin: 'java' apply plugin: 'maven' apply plugin: 'jacoco' jacoco { toolVersion = '0.8.14' } buildDir = rootDir.canonicalPath + "/build/" + rootProject.relativePath(projectDir.canonicalPath) version = '1.0.0' group 'com.example.sayhello' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 repositories { mavenCentral() } dependencies { testCompile 'junit:junit:4.13.2' } }

Recent calls list recover

4 January 2026 @ 2:28 pm

I need to recover the “recent calls list” in iphone 15 for the last six months in 2025 its not backedup in icloud and tried to delete the last call to appear the call befor it so its going to need a harder way to recover like a computer app or jail braek or what ever it need?