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.

Parsing escaped quotes in a string

4 May 2026 @ 12:41 am

I am trying to parse a language with strings like: " embedded quote \" embedded expression \(1+2) " The first \ escapes the quote, but the second \ is literal. Based on my understanding QuotedString I tried: string_literal = pp.QuotedString('"',esc_char='\\',convert_whitespace_escapes=False) which handles the escaped quote as expected, but swallows the second \. Printing the parsed tokens in the parse action gives [' embedded quote " embedded expression (1+2) '] How can I retain the second\. Note that while putting \\( in the input string gives the desired result, it has a different interpretation in the underlying language. The same issue occurs with other escaped characters, e.g. \n becomes n etc.

How can I ensure that a continuous 24/7 health-monitoring service on Wear OS remains running?

4 May 2026 @ 12:24 am

I am working on a Wear OS app, which monitors the users data 24/7. The app is made for Samsung devices as part of a study. The data includes some health data and location data. My current setup works okay, but I run into consistency problems. Sometimes the data collection stops or slows down. When the app opens, a monitoring foreground service is started: class MainActivity: ComponentActivity() { override fun onStart() { checkForegroundPermissions() // When permissions are given launchForegroundService is run } private fun launchForegroundService() { val serviceIntent = Intent(this, ForegroundMonitoringService::class.java) startForegroundService(serviceIntent) bindService(serviceIntent, foregroundOnlyServiceConnection, BIND_AUTO_CREATE) } } I launch it as a bound service, so I have access to the services methods Within the service I

How to Uninstall oracle 21c database manually on windows

4 May 2026 @ 12:24 am

While installing oracle 21 setup, the process got stuck with an error that says failed installation, see log details below Cause - Refer to the logs for additional information. Action - Refer to the logs or contact Oracle Support Services. Additional Information: Execution of C:\windows\system32\cmd.exe script is failed/unexecuted on nodes : [MyPCName ] Execution status of failed node: MyPCName Standard output : [WARNING] [DBT-10328] Specified GDB Name (orcl) may have a potential conflict with an already existing database on the system. , ACTION: Specify a different GDB Name that does not conflict with existing databases on the system. , [FATAL] [DBT-10317] Specified SID Name (orcl) already exists. , ACTION: Specify a different SID Name that does not already exist.

Screen time passcode I need to turn it off

4 May 2026 @ 12:04 am

Please figure out my screen time passcode it’s 4 digits Plsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssddssssssssssssssssssssssssssssssssssssssssssssssssssdddddddddddssssssssssssssssssssssssssssssssssssssssssssssssssssssddsssssssssssss

Why x86 haven't instructions such instructions?

3 May 2026 @ 11:58 pm

For example, ARM has conditional execution IT(if-then) blocks that allow the next few instruction to be executed conditionally. Also ARM have an LR (link register) which allows leaf functions to be implemented without touching the stack as opposed to x86. I've heard about instructions like cmove and conditional forms of imul, but they aren't very helpful if i just need a simple ITT (if-then-then) instruction.

Request for Review of "Random" Driver Failures Report

3 May 2026 @ 11:51 pm

Request for Review of "Random" Driver Failures Report I'm looking for feedback from people who work with Windows drivers, UMDF, HVCI/Core Isolation, or platform security. Summary We’ve been seeing seemingly random but "virtually permanent" failures with biometric fingerprint readers (WBF) on Windows 10 and 11. Once a modern driver is installed on a "hardened" ("Zero Tolerance") Windows OS, older drivers often become inoperable — even on the same OS build. I’ve documented the testing, background, and analysis here: https://www.reddit.com/r/windowsdev/comments/1t1lqgw/observation_os_build_number_no_longer_reliably/ Note - it is long; I had to cover many bases. Request If you have experience in this area, I’d greatly appreciate your persp

How to pause pygame.time.get_ticks?

3 May 2026 @ 11:17 pm

Ive been trying to figure out how to pause the game time in pygame, but it never really worked. while running: timemultiplier = 1000 timepassed = pygame.time.get_ticks() // timemultiplier if timepaused == 1: pygame.time. if timepaused == 0: timepassed = pygame.time.get_ticks() // timemultiplier

How does HTTPS circumnavigate ISP [closed]

3 May 2026 @ 10:24 pm

How does HTTPS circumnavigate ISP? Doesn't the ISP record all relationships? How does the website decrypt the data? Doesn't it request the ISP for it? How does the ISP differ from the website?

Знания, достаточные для поиска первой работы game developer на unity

3 May 2026 @ 10:06 pm

Хотел бы узнать у кого-то, кто разбирается в этом какие щас знания требуют от человека на должности junior game developer? Какие основные темы затрагивают, так ли важно портфолио, насколько важен чистый код, сильно ли влияет умение пользоваться github и sqlite, насколько актуальны/не актуальны разрабы 2д игр и возможно ли найти работу изучая только 2д вообще не затрагивая 3д, у меня очень много вопросов, но переписываясь с ребятами на различных площадках получал лишь комментарии о том, что в геймдеве делать нечего, работу никогда не найдешь, свои проекты попу

`PostAsJsonAsync` returns 500 Internal Server Error from Azure Functions while Postman and `PostAsync` with `StringContent` succeed

3 May 2026 @ 9:23 pm

I'm calling an Azure Functions HTTP trigger (v4, Node.js, consumption plan) from an ASP.NET Core 8.0 application using IHttpClientFactory. The function has authLevel: 'function' and the key is passed as a query parameter. Using PostAsJsonAsync consistently returns 500 with an empty response body: var client = _httpClientFactory.CreateClient("MyClient"); var payload = new object(); var response = await client.PostAsJsonAsync("api/myfunction", payload, ct); // response.StatusCode == 500, response.Content has Content-Length: 0 The same request made from Postman or PowerShell's Invoke-WebRequest returns 200 OK. I've tried the following: HTTP version: Postman is also using HTTP/2, it still works Content-Type: tried application/json and application/json; charset=utf-8, both