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.

ServiceM8 webhook challenge verification always returns “Invalid callback challenge key returned” in Node.js/Express

22 March 2026 @ 8:46 am

I’m registering a ServiceM8 webhook subscription and keep getting this error: {"success": false, "message": "Invalid callback challenge key returned", "detail": "Expected '29c97899930d7b3c'"} My Express server handles the challenge like this: app.all('/webhook/job-complete', (req, res) => { const challenge = req.query.challenge || req.body.challenge; const mode = req.query.mode || req.body.mode; if (mode === 'subscribe' && challenge) { return res.status(200).send(challenge); } res.sendStatus(200); }); Testing manually with curl works fine. Has anyone got ServiceM8 webhook verification working in Node.js/Express? Is the challenge sent as GET or POST?

WHQL test case failing with IPX protocol not supported ethertype

22 March 2026 @ 8:44 am

I’m facing failures in a few HLK network test cases using: HLK Server: Windows Server 2022 Client systems: Windows Server 2025 / Windows 11 Issue Summary The failures seem to be related to IPX packets being dropped, as observed via pktmon. Observations HLK is generating packets with: 802.3 + LLC/SNAP + IPX (0x8137) + payload My network driver does not modify packets, it only parses LLC/SNAP headers. In debugging (NdisProtocolTest.cpp): The test checks packet type at offset 0x14, which aligns with IPX after LLC/SNAP. If I truncate LLC/SNAP and pass: 802.3 + IPX + payload → The warning in ndistest.cpp disappears → But upper layers still drop the packet as “corrupted” Questions Why is HLK still send

How can today's Leetcode contest questions?

22 March 2026 @ 8:02 am

How was today's Leetcode contest 494. Tell me the level was it easy difficult or hard. First question was like return true which passed all the test cases.Rest of them going above the head. How about you guys? Am I the only one who felt difficult?

What is the difference between Node and Cell in NUMA system?

22 March 2026 @ 7:43 am

Can someone explain the difference between a Node and a Cell in a NUMA system? They seem to refer to the same thing.

Visual Studio 2026 tab to accept suggested code does not work

22 March 2026 @ 1:46 am

I'm using Visual Studio 2026 (Insiders 11612.153). The tab to accept suggested code does not work; stopped working a couple of release candidates ago. Similar symptoms to question here (I looked at all of the suggestions): Tab autocomplete in Visual Studio Code doesn't work I found a support ticket https://developercommunity.visualstudio.com/t/Autocomplete-stops-working-in-VS-2026/10969979 that describes the problem I am having, but MS support closed the ticket with "not enough info" (I would try to submit more info to MS support, but I have been banned for life). To reproduce (with any 100% valid code) - start with: BindingContext = _viewModel; _viewModel.SomeProperty t

Catmull-Rom not successfully implementing [closed]

21 March 2026 @ 10:40 pm

I have an issue I can't seem to figure out. I have managed to find multiple implementations of the Catmull-Rom splines but somehow no matter which one I use I cannot seem to get the right positions. My scene is in a cube from 0 to 1 so that is usually where my positions are concentrated on. //float3 Camera::CatmullRom(float t,float3 p_mi1, float3 p_0, float3 p_1, float3 p_2) //{ // float3 a4 = p_0; // float3 a3 = (p_1 - p_mi1) / 2.0f; // float3 a1 = (p_2 - p_0) / 2.0f - 2.0f * p_1 + a3 + 2.0f * a4; // float3 a2 = 3.0f * p_1 - (p_2 - p_0) / 2.0f - 2.0f * a3 - 3.0f * a4; // // return a1 * t * t * t + a2 * t * t + a3 * t + a4; //} //float3 Camera::CatmullRom(const float t, float3 p_0, float3 p1, float3 p2, float3 p_3) //{ // return ( // t * ((2 - t) * t - 1) * p_0 // + (t * t * (3 * t - 5) + 2) * p1 // + t * ((4 - 3 * t) * t + 1) * p2 // + (t - 1) * t * t * p_3) / 2; //} float3 Camera::CatmullRom(const float t, float3 p_0, float3 p

On Update Cascade not cascading in child table

21 March 2026 @ 8:50 pm

I have a parent table created by the following statement: Create Table "GL_Cash_Book" ( "y_trans_code" Integer Not Null, "trans_date" Integer Default current_timestamp, "receipt_no" Text, "amount_dr" Real, Primary Key("y_trans_code") ) I have connected it to a child table, created by the following statement: Create Table "GL_income_account" ( "trans_id" Integer Not Null, "trans_date" Integer Default current_timestamp, "receipt_no" Text, "amount_cr" Real, Primary Key("trans_id" Autoincrement), Foreign Key("trans_code") References "GL_Cash_Book"("y_trans_code") On Update Cascade ) I have also setup my PRAGMA syntax to run anytime I

Corrupt object variables in C++ for ESP32 [duplicate]

21 March 2026 @ 8:15 pm

I am creating a project for an ESP32. I'm quite new to ESP and C++ coding. I use PlatformIO inside VSCode. It's a robot that will be driving around. It has Ultrasonic sensors to detect any obstacles. The sensors. I store the pins for each sensor in an object of type ProximitySensor. I have a problem that at runtime, the values of the stored pins change, to seemingly arbitrary values. Here's the class representing the sensors: class ProximitySensor : public potbot::Sensor { private: const int pin_trig; const int pin_echo; const int16_t orientation; // degrees relative to middle axis (front = 0°) public: ProximitySensor(const int pin_trig, const int pin_echo, const int16_t orientation); void setup() override; float read() override; int16_t getOrientation(){return orientation;} }; and the corresponding implementa

Thank you stack overflow

21 March 2026 @ 4:10 pm

I started my career around 2017, started from php, JavaScript, then react nodejs and AWS. Then python and java/kotlin. I won’t make it without your help. You helped me even more than my coworkers and mentors thank you for your service, thank you stack overflow. Thank you all!

Need advice on extracting data from PV inverter loggers (Sungrow, GoodWe, Solis, Huawei) using Raspberry Pi

21 March 2026 @ 4:01 pm

I’m currently working on a fairly large-scale solar monitoring project and I could really use some guidance from people with experience in inverter communication / data acquisition. The setup involves around 110 photovoltaic (PV) sites: 60 with Sungrow inverters 30 with GoodWe 10 with Solis 10 with Huawei My goal is to install a Raspberry Pi at each site, connected directly to the existing inverter logger. The idea is for each Pi to locally collect data outputs from the logger and then forward that data to a central server for aggregation, monitoring, and analysis. What I’m trying to figure out: I’m not sure what the best (or even feasible) way is to extract data from the loggers across these different brands. Specifically: What communication protocols do these loggers typically expose? (Modbus TCP/RTU, HTTP APIs, proprietary protocols, et