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.

The closing square bracket within a charlist in the Like statement in Microsoft Access

5 April 2026 @ 5:41 pm

The closing sqare bracket can't be enclosed within the square brackets and thus can't be used also within a charlist, for example: Like "*[#?]]*" Is any other way to to insert the closing square bracket into a charlist, not adding it separately, like this: Like "*[#?]*" Or Like "*]*" ?

Need to Understand how to find work after ISO certifications

5 April 2026 @ 5:28 pm

I am thinking of doing the following 9001,27001,22701,22301 and 42001 Can some one guide me where to find work after the certifications and certifications are by IRCA and Tuv Sud. Don't know more, Ai said I need to go to Registrars and get registered as Independent contractor and do shadow other Lead Auditors for 20-35 and then get Letter of Authorization . I am really new to the field of Auditing during my tenure I have helped my Teams to prepare for Audit and that all I know . If someone can guide me the process it will be a major advice.

Directory dissapeared Debian [closed]

5 April 2026 @ 5:27 pm

Is it possible for a directory to disappear on Linux due to an error, maybe in the file system? I went to access a directory that I use most days and it was gone. It's possible that I deleted it by accident but I don't remember anything. I've tried looking at logs and I can't find anything. All I can find is a record of the last file that I used in that directory in the recently-used file. I've checked smartctl for any SSD errors but it looks ok. The window manager is xfce.

The correlation between declarative and imperative programming and the complexity of abstraction in coding

5 April 2026 @ 4:49 pm

Is it possible to say that "all high-level programming languages are mostly declarative" and vice versa, "all low-level programming languages are mostly imperative" (with some degree of convention)? I mean, when you write (in a hypothetical python), you're writing a set of high-level instructions (sometimes even too high-level) for an interpreter, and it comes down to literally specifying what you want to achieve in the end (i.e., ultimately resulting in declarative programming): from operator import add items = [(0, 1), (2, 3)] print([add(*item) for item in items]) While in lower-level programming languages (C, C++, ...) you specify a set of instructions to the compiler at a low level in a predominantly imperative approach to obtain the desired result: #include <stdio.h> #include <stdlib.h

How to make changes in a .tpp template implementation file trigger recompilation in a Makefile?

5 April 2026 @ 4:23 pm

I'm using .tpp files to store template implementations. However, modifying a .tpp file does not trigger recompilation, because Make does not generate an .o file from a .tpp source. Still, these changes affect the compilation of .cpp files that include the corresponding .hpp. How can I make Make recompile when a .tpp file is changed? Minimal Reproducible Example MRE.hpp #pragma once #include <iostream> template <typename T> class MRE { T a; public: void write(std::ostream&); }; #include "MRE.tpp" MRE.tpp template <typename T> void MRE<T>::write(std::ostream& os) { os << "initial message"; } TestMRE.cpp

Is Pub/Sub a good choice for long-running async workflows (3–5 day response)?

5 April 2026 @ 3:56 pm

I’m designing a centralized platform using Google Cloud Pub/Sub serving multiple applications. 1)Client publishes request to a topic 2)Platform processes and sends to a 3rd-party system 3)3rd party responds after 3 to 5 days 4) Platform then publishes response to another topic for client consumption Looking for feedback from the community on: Correctness of this architecture Suitability of Pub/Sub for long-running workflows

`/usr/share/doc/util-linux/getopt-example.bash`: when is `Internal error!` useful?

5 April 2026 @ 3:26 pm

After finding out about getopt (and being disappointed it seems to have to work with eval no matter what, which means function inputs have to be filtered for security), I have nevertheless been using the example as suggested by man getopt: #!/bin/bash # A small example script for using the getopt(1) program. # This script will only work with bash(1). # A similar script using the tcsh(1) language can be found # as getopt-example.tcsh. # Example input and output (from the bash prompt): # # ./getopt-example.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore -b " very long " # Option a # Option c, no argument # Option c, argument 'more' # Option b, argument ' very long ' # Remaining arguments: # --> 'par1' # --> 'another arg' # --> 'wow!*\?' # Note that we use "$@" to let each command-line parameter expand to a # separate word. The quotes around "$@" a

How to send terminal errors directly to GitHub Copilot Chat in VS Code without manual copy-paste

5 April 2026 @ 2:32 pm

I am doing little bit of vibe coding in Python. I am using VS Code IDE with Github Copilot chat. When any error comes after running a code, i copy it from terminal and paste it to chat window. Is there any workaround, for the time? I read that new release .115 will solve this problem but its still not available for download.

How can i develop a fullstack android app within 6 hours?

5 April 2026 @ 2:26 pm

So we have this codefest competition, a 6 hour hackathon and there is a machine problem to follow, our development time is only 6 hours. Now currently we're using viewBinding, sqlite openhelper, java, xml, recyclerview, textinput, cardview, image view, buttons. Thats it, we're not allowed to import dependencies or anything. The team is compose of one fullstack, one database/backend, one design, three (3) members in total. Our biggest challenge is some requirements are hard to implement. some takes a lot of time to setup. Our app is always incomplete no matter what we do. We ditched components like chips, viewpager, fragments, bottom navigations, everything is just jumping from one activity to another When developing we always start with database schema, then flowchart, then thats it, we create the database via sqliteopenhelper, then develop the login and register quickly no design, the competition provides us with 2 PCs with shared folder for file transfer, How can we improve our

Get a value of non-default-constructible type `T` from a byte array without undefined behavior

4 April 2026 @ 2:02 pm

I'm messing with FFI between Rust and C++ and I happen to know that some particular array of bytes pointed by a std::byte * pointer is a valid C++ object of type T, which can be anything for what concerns this question. How do I get back a valid value of type T from this array of bytes? What does not work: reinterpret_cast does not work because of the strict aliasing rules, apparently: template<typename T> T transmute(std::byte *ptr) { return *reinterpret_cast<T *>(ptr); // UB } memcpy works but requires T to be default constructible. template<typename T> T transmute(std::byte *ptr) { T value; // requires a default constructor memcpy(&value, ptr, sizeof(T)); return value; } the latter is usually suggested (also on the