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.

Why does trying to call this external program from a Python script result in errors?

10 May 2026 @ 7:25 am

So I'm stumped. I'm trying to call Martchus' tageditor from Python and while I can use the command in a command window just fine I keep getting an error trying to call it from Python. import os import subprocess # Specify the export path and file format export_path = "C:\\Users\\lords\\Videos\\MCOC Videos\\" #file_prefix = project.GetName() file_prefix = "Untitled Project 2" file_format = "jpg" filepath = os.path.join(export_path, file_prefix + "." + file_format) cmd = [ "tageditor-cli", f'set cover="{filepath}"', f'-f "{os.path.join(export_path, file_prefix)}.mp4"' ] #cmd = f"tageditor-cli set cover=\"{filepath}\" -f \"{os.path.join(export_path, file_prefix)}.mp4\"" try: result = subprocess.run( cmd, capture_output=True, timeout=10, check=True )

Swipe project 0987654321

10 May 2026 @ 7:21 am

AI_CLINIC_BOOKING_SYSTEM/ │ ├── _pycache_/ ├── .pytest_cache/ │ ├── agents/ │ ├── _pycache_/ │ ├── _init_.py │ ├── booking_agent.py │ └── intake_agent.py │ ├── config/ │ ├── _init_.py │ └── settings.py │ ├── data/ │ └── clinic_booking.db │ ├── database/ │ ├── _pycache_/ │ ├── _init_.py │ └── connection.py │ ├── demos/ │ ├── _pycache_/ │ ├── _init_.py │ ├── .env │ ├── milestone_1_state_persistence.py │ ├── milestone_2_tools_and_routing.py │ ├── milestone_3_agent_integration.py │ ├── mile

Unity bluetooth OBD-II reader setup not working on K-Line

10 May 2026 @ 7:01 am

I got a system in unity that connects to one of those bluetooth ELM327-based adaptors that get data back, in my case for a speedometer, my problem is this, if I try it on a SEAT Ibiza Mk-4 (2008-2017), it works ok, just when I try it on an Audi A3 8L (1996-2000), which has an OBD-II port, but I'm guessing it runs on a K-Line system, not a CAN bus like newer cars, and what it does is very wierd, the adaptor starts, the moment I start reading, it gets a bit of data back, aka it gets speed, RPM, engine Load 1 or 2 times, and then it just hangs with all the signals being: XX XX NO DATA, this is what's throwing me off, the fact that it works for 2 seconds, then it fails, I tried initializing it for a K-line setup, I tried a system that waits for the response before sending another one, tried getting just speed and RPM, as some cars don't have some values like fuel level, throttle position etc., still does the exact same thing, If anybody has any idea what could be going on I'd love your

To store bootstrap folder terraform state to S3 backend with migration approach

10 May 2026 @ 6:46 am

I have been working on a project to automate the AWS infrastructure with Terraform. Initially, I created two folders (bootstrap and live). Below is the Bootstrap folder structure. enter image description here We know we need to create a backend configuration file to store Terraform state in an S3 bucket. But the backend config does not support variable interpolation, so we have to hard-code values in the backend. In addition to this, there is also a chicken-and-egg problem (the S3 backend and DynamoDB have to be created before using them). To resolve these issues, Terragrunt is a good option. But we can also create a Python script to automatically generate the backend configuration file and run the migrate command to store the Terraform state in the S3 backend. The approach is - terraform init (manual): to initialize all the modules, including S3 and DynamoDB.

Secure boot active

10 May 2026 @ 6:24 am

I would like to know what I can do if, when I activate Secure Boot on my PC, save and restart, instead of entering Windows, it returns me to the BIOS. If I disable it, it works normally. I have already tried all the configurations, a complete PC reset, reinstalling Windows from USB, and it still doesn't work.

Meta Business GraphQL: "Add Payment Method" button remains disabled after running mutation script

10 May 2026 @ 6:17 am

I am reverse-engineering the Meta Business Suite MV4B onboarding flow using GraphQL. My goal is to automate the payment method setup. The Problem: I have successfully executed the following sequence: CreateMV4BAccountMutation MV4BOnboardingViewContainerQuery (to get the paymentAccountID) useMV4BCreateBizApplicationMutation The script completes without errors, and the payment account is created. However, when I refresh the Business Suite UI, the "Add Payment Method" button is still disabled (greyed out), or the UI doesn't reflect that the account is ready for card entry. Current Script Logic: JavaScript // I am fetching the paymentAccountID from the onboarding query paymentAccountID = response.data.business.mv4b_billable_account.billing_payment_account.payment_legacy_ac

Nodemailer not sending emails after deployment on Render

10 May 2026 @ 6:15 am

The email functionality works correctly in my local environment, but after deploying the app to Render, the email service stops working. I’m using SMTP/Nodemailer, and there are no issues locally. What could be causing this problem in production? import nodemailer from "nodemailer"; import config from "../config/config.js"; const transporter = nodemailer.createTransport({ service: "gmail", auth: { type: "OAuth2", user: config.GOOGLE_USER, clientId: config.GOOGLE_CLIENT_ID, clientSecret: config.GOOGLE_CLIENT_SECRET, refreshToken: config.GOOGLE_REFRESH_TOKEN, } }) export const sendEmail = async (to, subject, text, html) => { try { const info = await transporter.sendMail({ from: `"Email" <${config.GOOGLE_USER}>`, to, subject, html, }) console.log("Message sent : %s", info.messageId); console.log("Preview URL : %s", nodema

How does the C compiler detect which function to start first?

10 May 2026 @ 6:08 am

How does the C compiler(GCC) detect which function to start first? Example : #include <stdio.h> #define MSG_1 "Hello, World!" #define MSG_2 "Gougagougagouga!" void hello_world() { printf("%s\n", MSG_1); } void gougougaga() { printf("%s\n", MSG_2); } void main() { hello_world(); gougougaga(); } How does the C compiler know which of the three functions is the starter point?

Incomplete conversion for the MySQL query

10 May 2026 @ 4:54 am

int MySQLDatabase::GetTableId(const std::wstring &UNUSED(catalog), const std::wstring &schema, const std::wstring &table, long &id, std::vector<std::wstring> &errors) { printf( "Schema in GetTableId is: %s\n\r", m_pimpl->m_myconv.to_bytes( schema.c_str() ).c_str() ); std::wstring query1 = L"SELECT st.table_id FROM information_schema.tables t, information_schema.innodb_tables st WHERE st.name = CONCAT(t.table_schema,'/',t.table_name) AND t.table_schema = ? AND t.table_name = ? AND t.engine = 'InnoDB';"; int result = 0; long tableId = 0; unsigned long str_length1 = 0, str_length2 = 0; MYSQL_RES *prepare_meta_result = nullptr; auto res1 = mysql_stmt_init( m_db ); if( !res1 ) { std::wstring err = m_pimpl->m_myconv.from_bytes( mysql_stmt_error( res1 ) ); errors.push_back( err ); result = 1; } if( !result ) { if( mysql_stmt_prepare( res1, m_pimpl->

Can a using-declaration name a public member of an indirect base class that becomes private in a direct base class?

10 May 2026 @ 1:58 am

Consider struct A { int member; }; struct B : public A { private: using A::member; }; struct C : public B { using A::member; // #1 }; Clang, EDG, and MSVC accept the snippet, while GCC rejects (demo). All compilers reject if line #1 is changed to using B::member; (demo). Is the using-declaration #1 valid?