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.

Is it possible to add additional information to an already signed executable? If so, what approaches can be used to do this?

25 December 2025 @ 6:07 am

I have a requirement to add some data to an already signed executable without invalidating its signature. I’m not able to ship any additional files along with the executable. Is there a way to embed or append the required data into the signed EXE itself? If such an approach is possible, I’d like to explore it.

Why Tailwind extension "Tailwind CSS IntelliSence" does not work in tailwind v4.1.18(React js vite)

25 December 2025 @ 6:05 am

"Recently, I started styling my website using Tailwind CSS. Since I wasn't familiar with most of the styles, I began using the 'Tailwind CSS IntelliSense' extension, which suggests styles in a pop-up window. However, the extension is not working."

How to obfuscate object properties?

25 December 2025 @ 6:01 am

I've tried several npm libraries, namely uglify-js, terser, and javascript-obfuscator. Almost all of them have the same problem: only one property is renamed, while the subsequent ones remain the same. Example: var testobject = { gravity: 43, speed: 15, }; Task for javascript-obfuscator: const JavaScriptObfuscator = require('javascript-obfuscator'); const code = ` var testobject = { gravity: 43, speed: 15, }` const obfuscatedCode = JavaScriptObfuscator.obfuscate(code, { compact: true, controlFlowFlattening: true, propertyObfuscation: true, renameProperties: true, numbersToExpressions: true }).getObfuscatedCode(); console.log(obfuscatedCode); Result javascript-obfuscator: function _0x3acb(){var _0x1ac351=['2760280IEzvOn','42271920mbSknR','6237585fiycOv','4GrwPHf','1DTjXQq','8424680oYutVC','2462139fWvfDb','51846AmwgQS','2486766AEKKog','637CGOPon'];_0x3acb=function()

MenuAnchor children Semantic is not reachable by Web Element inspector when inside a Horizontal Scrollable widget

25 December 2025 @ 5:17 am

I'm using https://watermelon.us for writing automation tests for my Web app. When a test case starts, Watermelon will start the web app and then automatically record my actions when I interact with it, based on the Semantics node. But here comes the issue. In my app, I have a Navigation bar with a list of MenuAnchor widget that will show a pop-up when I hover over it, and somehow I can't select the Semantics node of the Menu pop-up item and the whole screen is selected instead Have you guys faced a similar issue before? I've a workaround by set physics: const NeverScrollableScrollPhysics() of the Scrollable and it works like a charm but it seems not a good way to resolve the issue I've also raised an Issue to Flutter team as well: https://

Valid regular expression pattern validation in XML

25 December 2025 @ 5:12 am

I have a string element in an XML schema that I would like to restrict to the extended Latin character set plus numbers, punctuation, whitespace, etc. I have tried the following: <xsd:pattern value="[\p{Latin}\p{Common}]+"/> This works as expected on regex101, but I understand that XML's regex features are somewhat limited. I assume that's why I receive the following error in VS Code: InvalidRegex: Pattern value '[\p{Latin}\p{Common}]+' is not a valid regular expression. The reported error was: 'Unknown property.'. If I switch out the character classes for plain ol' [A-Za-z0-9]+ then my schema validates. But according to this article, it seems like XML is capable of handling character classes. Perhaps only certain characters

TensorFlow.js failing to compile fragment shader on some slice calls

25 December 2025 @ 4:55 am

When calling a tensor's slice method in TensorFlow.js, some combinations of tensor shapes and parameters cause the error Failed to compile fragment shader, as well as a log of the full shader with the offending line ERROR: 0:162: 'start' in undeclared identifier ivec2(start[0],start[1]); For example: const a = tf.zeros([64, 3]); a.slice([0, 0], [2, 1]) causes the error. For this tensor shape, I can't find any slice that doesn't fail with nonzero size values, but for other shapes it depends on the size. I was not able to test this across devices. Why are these seemingly innocuous slices causing an error that isn't even caught by the normal bounds error checking?

CLion Bundled Mingw Broken [closed]

25 December 2025 @ 4:24 am

I have recently decided to move from VS Code over to CLion after seeing all that comes with it. It looked like a simple process to set up, given it includes MinGW bundled with it. After attempting to run the sample program however, it provided me with some errors. I left the toolchains settings to all the default bundled options. I also reinstalled CLion multiple times, and has uninstalled all other versions of MinGW. The errors that I have recieved are (truncated a little): "C:\Program Files\JetBrains\CLion 2025.3.1\bin\cmake\win\x64\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2025.3.1/bin/ninja/win/x64/ninja.exe" -G Ninja -S C:\Users\joshu\OneDrive\Documents\C++\test1 -B C:\Users\joshu\OneDrive\Documents\C++\test1\cmake-build-debug -- The C compiler identification is GNU 13.1.0 -- The CXX compiler identification is GNU 13.1.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - fai

Do restrictions on statements in the global module fragment only apply to BEFORE preprocessing and not AFTER?

25 December 2025 @ 3:21 am

I think it's common knowledge that you can't have statements in the global module fragment, and that the global module fragment is restricted to "preprocessor" directives only. With: module; int a = 3; export module my_module; Clang 22 still doesn't give a warning (at least with default settings), but MSVC says: C5202 a global module fragment can only contain preprocessor directives. OK, this is fair enough. But, if I include a header file with: // my_header.h int a = 2; And do: module; #include "my_header.h" export module my_module; And no warning is given anymore. So the requirement that the global module fragment may only contain preprocessor directives and not statements or types seems to apply only BEFORE the preprocessing is done, and so: /* PROHIBITED */ module; int a = 3; export module my_module; /* THI

Do SQL databases apply WHERE filters before joins?

24 December 2025 @ 7:23 pm

from a in xx join b in yy on a.someprop equals b.someprop join c in zz on a.someprop1 equals c.someprop where a.someprop2.Contains(strval) I’m trying to understand how SQL query execution works with joins and WHERE filters. From my current understanding, when a query includes multiple tables, the database first joins all the tables and only applies the WHERE clause afterward. That sounds inefficient, since it means unnecessary rows are processed before filtering. However, I’ve read that modern SQL optimizers may reorder operations — for example, by applying filters early (predicate pushdown) so fewer rows are joined, which should be more efficient. How can I verify the actual execution order (e.g., whether filtering happens before or after joins)?

WebView Flutter localhost:8888 redirect not working on iOS Version 26.2 with webview_flutter 4.13.0

24 December 2025 @ 5:42 pm

I'm implementing OAuth authentication in my Flutter app using webview_flutter: ^4.13.0. The OAuth flow redirects to http://localhost:8888 for the callback, but this is only failing on iOS Version 26.2 devices. The redirect works fine on Android and all previous iOS versions. Environment Flutter: Latest stable webview_flutter: 4.13.0 iOS: Version 26.2 (Build 23C54) - Latest iOS release Issue: Localhost redirect callbacks are not being intercepted only on iOS Version 26.2 Expected Behavior User completes OAuth login in WebView OAuth provider redirects to http://localhost:8888/callback?code=xyz App intercepts the URL and processes the auth code Actual Behavior Works fine: All iOS versions prior to 26.2, Android Fails only on: iOS Version 26.2 (Build 23C54) On iOS Version 26.2, the localhost redirect is completely ignored. Neither onNavigationRequest nor onWebResourceE