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.

Web Components in Scheme interpreter in JavaScript?

20 January 2026 @ 12:20 am

I have a Scheme interpreter written in JavaScript called LIPS, and I have a define-class macro which is using the ES5 prototype system. But I have a problem in creating super(). I'm trying to create a PoC of super inside a class. So I can create Web Components: This is my code: <script src="https://cdn.jsdelivr.net/npm/lips@beta/dist/lips.js"></script> <script type="text/x-scheme" bootstrap> ;; MODIFICATION OF define-class MACRO FROM STANDARD LIBRARY (define (%class-constructor expr parent) "(%class-constructor expr) Version of %class-lambda that is used as constructor." (let ((args (gensym 'args))

Memory management strategies for local LLM inference in a Chromium-based browser fork

20 January 2026 @ 12:20 am

We are currently developing Cronos Browser, a Chromium fork that integrates a local LLM (UIKI) for offline assistance. We are noticing that keeping the model loaded in VRAM affects the rendering process of heavy WebGL tabs. We are currently using a shared memory buffer between the inference process and the renderer. Question: Has anyone successfully implemented a "lazy unloading" strategy for WebGPU contexts in Chromium C++ source code to free up VRAM when the browser tab needs priority? We are looking into gpu::SharedImageInterface but documentation is scarce.

BigQuery Standard SQL: UPDATE to convert incorrect 0 values to NULL returns an error

20 January 2026 @ 12:19 am

I’m using Google BigQuery (Standard SQL) to clean 2023 weather data. Missing values were mistakenly stored as 0, but 0 is a valid value for some rows, so I only want to convert the incorrect zeroes to NULL before analyzing the relationship between wind_speed and visibility. My UPDATE query returns an error; here’s the query and the exact error message.

Error: Session invalidated unexpectedly on NFC call Codename iOS

20 January 2026 @ 12:18 am

I am trying to implement NFC on iOS. (I have already done that on Android successfully). On button action to start a session, I get an error: "Session invalidated unexpectedly". I found out by this video that the problem is entitlements and Capabilities: https://www.youtube.com/watch?v=SD6Rm4cGyko I do not know what build hints would be required to enable NFC capability FULLY. I did not see any .entitlements file in the Codenameone Build Server generated source code. The build hints I used: The build hints I used: ios_add_libs=;CoreNFC.framework ios.entitlements.nfc.readersession.formats=NDEF,TAG ios.infoPlist.NFCReaderUsageDescription=NFC tag to read NDEF messages into the application ios.objC=true ios.plistInject=

Win32 kiosk app not working with virtual keyboard

20 January 2026 @ 12:05 am

I have a Win32 kiosk app that replaces the Windows shell (explorer.exe) with itself and acts as a login gatekeeper. It may let the user in after logging in (executes explorer.exe) or log the user out. It's working perfectly with physical keyboard but not with virtual keyboards. explorer.exe does something to initialize the virtual keyboards and as soon as it's not started, the virtual keyboards stop working. I'm aware of Shell Launcher v1 and v2 as being recommended by Microsoft for kiosk apps but this isn't a typical kiosk app as it gives the user full access to the system. Shell Launcher restricts access to a preset of apps and disallows access to system settings, etc. What are my options to get the virtual keyboard working using my shell replacement app?

Copilot marks Figma MCP tool as "disabled by the user" after failure with no way to re-enable in same chat

19 January 2026 @ 11:59 pm

I'm using the Figma MCP (Model Context Protocol) server with GitHub Copilot in VS Code to access design context (e.g., via mcp_figma_get_design_context). It works well initially, but after any failure (e.g., network issue, timeout, or Figma API error), Copilot permanently disables the tool in that chat session. The error I receive is: "All attempts to call mcp_figma_get_design_context failed" Error: "Tool is currently disabled by the user" This is misleading as I never disabled the tool manually. Once this happens: The Figma tool stops working entirely in that chat. Restarting the MCP server, reloading VS Code, or waiting does not restore functionality. However, opening a brand new Copilot chat immediately works the Figma tool functions normally again. This forces me to abandon chats with valuable context (e.g., app architecture, component decisions) and restart from scratch, which is inefficient and disrupts

I'm having a bit of trouble with visual studio 2026 not finding a specified file

19 January 2026 @ 11:52 pm

My code is: #include <iostream> int main() { std::cout << "I like shrimp tempura"; std::cout << "It's really good!" return 0; } And my error message says: unable to start program '(Im not saying name of file for privacy reasons)' The system cannot find the file specified. I've saved the file, though, and I've made sure that the file is in the file location it said in the error message.

assets from a .tmx file is not loading and get a blank screen

19 January 2026 @ 11:31 pm

When I ran my code i keep getting a blank screen. When I tried using a try and catch to see if they were linked. I found out the sprite sheet was stating its not found when I loaded my first map, a .tmx file from tiled. I checked my assets/images folder and its there along with the .tmx file in assets/tiles. I get the following errors: √ Built build\windows\x64\runner\Debug\break_out.exe Warning: fullScreen is not supported on desktop platforms. It will be a no-op. [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Unable to load asset: "assets/images/Breakout_Tile_Free.png". The asset does not exist or has empty data. #0 PlatformAssetBundle.load.<anonymous closure> (package:flutter/src/services/asset_bundle.dart:332:13) <asynchronous suspension> #1 Images._fetchToMemory (package:flame/src/cache/images.dart:185:18) <asynchronous suspension> #2 Future.wait.<anonymous closure> (dart:async/fut

Making a link clickable in Azure Pipelines YAML

19 January 2026 @ 11:30 pm

I have a YAML job where I want the link in the ManualValidation@0 task instructions to appear as clickable. Here is the job definition: job: Manual_CreatePR displayName: 'Manual: Open GitHub PR for sync branch' dependsOn: Sync_Ado_To_GitHub condition: succeeded('Sync_Ado_To_GitHub') variables: prLinkFromSync: $[ dependencies.Sync_Ado_To_GitHub.outputs['SetPrLink.prLink'] ] pool: server steps: - task: ManualValidation@0 displayName: 'Create PR on GitHub' timeoutInMinutes: '60' inputs: instructions: | A new sync branch was pushed to GitHub. Create a pull request using this link: "https://github.com/test" onTimeout: 'reject' How can I make the link clickable in the approval UI?

How do you solve "Unable to import 'cx_freeze'" - E0401:import-error?

19 January 2026 @ 11:13 pm

I am using cx_freeze for the first time, and ran the quickstart command to begin working on the package. However, upon opening the setup file in VSCodium I received the error message: Unable to import 'cx_freeze' Pylint(E0401:import-error) I had not modified the setup file when the message first appeared. I've only found one similar post to this; however, it didn't have any definite fixes. I'm on an M2 MacBook Air running MacOS 26.1, Python 3.14.2, cx_Freeze 8.5.3, and working in VSCodium 1.107.18605 using Pylint as a linter. The line causing the error message is below. from cx_Freeze import setup, Executable