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.

UUID Files on Android phone security concern

7 June 2026 @ 12:21 am

I'm finding UUID Files on my Android phone in the internal storage space. Any information on why these are found. I haven't created or placed these files or file types at all. Is this a concern for the security of the phone?

Data Not Being Copied To Another Tab Sheet

7 June 2026 @ 12:18 am

it's me again! I'm having issues transferring data from one sheet to another tab sheet. ClosedRow15 should copy the data ("dataToCopy" and "myDataToCopy" and paste it to "My Data" tab and "var ConsolidatedSheet" but the function only pastes it to "var ConsolidatedSheet". I've already removed the coding below because I suspected that it has already cleared the row before it copies the data, but this is certainly not the case. myDataToCopy.clear({contentsOnly:true}); Here's the full code: function ClosedRow15() { var sheet = SpreadsheetApp.getActiveSpreadsheet() var ConsolidatedSheet = SpreadsheetApp.openById('REDACTED').getSheetByName('Closed Cases'); var source = sheet.getSheetByName('Tracker'); var value = source.getRange('F15').getValue(); var dataToCopy = source.getRange(15,3,1,14); var cellData = source.getRange('F15').getValue(); //SAVES SAME CASE TO &quo

Azure Image Builder Fails to Start Container Instance

6 June 2026 @ 11:51 pm

I created an Azure Image Builder template with two flavors. And I am facing the issue where container instance is inconsistently not getting into running state. The first case is when I create a template with only customization and distribution steps (and no validation). This works well the first time and shares the customized image to image gallery. However, the same template when triggered again, fails to get the customization container instance in the Running state. Hence the image template fails eventually with "internal error occured" The second case is when I create a template with customization, validation, and distribution phases. The customization is successful the first time. However, the validation container instance never goes in Running state. Hence the image template run fails eventually with "internal error occured" Both the cases are using the same source image and settings. I am not providing an

How do I use a function which only returns a promise?

6 June 2026 @ 11:43 pm

I am using the function processOffline exactly as it is defined here: https://github.com/cutterbl/SoundTouchJS/blob/master/packages/formant-correction-worklet/src/processOffline.ts#L102 I assign the return "value" to an object inside an object for ease of access (essentially making it part of the global scope, like so): FX.processors[identifier] = processOffline(options) I look in the console and see that each FX.processors[identifier] has a promise assigned to it. I'm new to promises and can't figure this one out. Can anyone help? What do I want to do, you ask? I have 3 processOffline sources defined, and I want to store them in a variable within the global scope. Ultimately, I want to play all 3 of these so

Next.js build fails at closing </Layout> tag

6 June 2026 @ 11:26 pm

I am deploying a Next.js project to Vercel and the build fails during next build. The error points to the closing </Layout> tag in pages/index.js and shows "Expression expected" and "Unterminated regexp literal". I checked for missing JSX tags, duplicate closing tags, and dependency issues. The component returns JSX inside a Layout component and appears valid. I also removed "use client" since I am using the pages router. Could someone help identify what syntax issue might cause Vercel to report an error at the closing </Layout> tag even when the JSX looks correct? Is there a way to locate hidden syntax errors elsewhere in the file that could trigger this build failure?

How can I add srcset to Blogger featured images without JavaScript?

6 June 2026 @ 11:17 pm

I have a blogger blog and a free domain. I wanted to add the srcset feature to the distinctive images at the beginning of the article, in order to become responsive and give the browser options to choose the right size for each ready. To adjust it from the server side without JavaScript for the speed of the LCP, but why did his grandfather find it out of <Data:post.body/> after that I made this code <img expr: src='data:post.featuredimage' expr: srcset='sourceset(data:post.featuredimage,[256,512,945,1684],)' expr:title='data:post.title' fetchpriority='high' height='720' loading='eager' sizes='(min-width: 1024px) 725px, (min-width: 768px) 70vw, 60vw' width='1280'/> He answers the featured photos and made them separate from <data:post.body/> and put the code above <data:post.body/> Now I downloaded two pictures, the first from our code and the second, in order to prevent the dual loading, the original enveloped between <template> </template>, but th

In Embeddable Common Lisp, how to statically compile code that uses quicklisp libraries?

6 June 2026 @ 11:16 pm

I am using Embeddable Common Lisp and need to compile and statically link my code to produce a standalone executable. This in itself is not a problem. By compiling ECL on Alpine Linux and calling (c:build-program) I can obtain a statically-linked output. I have verified this by creating a basic Hello World program and statically compiling it. I will need to use various Common Lisp libraries in my code, such as iterate. Normally I would use quickload to achieve this. However, when I do this, I get errors in the compiled binary, and/or in the code I use to perform the compilation. How can I import libraries like iterate and still be able to compile my source into a statically-linked standalone binary? test.lisp: (format t "Hello!~%") build-test.lisp: (require 'cmp) (setf c::*user-linker-flags* "-static -static-libgcc -Wl,--no-w

My iOS app was rejected by Apple under: Guideline 4.2 - Design - Minimum Functionality

6 June 2026 @ 10:32 pm

My iOS app was rejected by Apple under: Guideline 4.2 - Design - Minimum Functional... My iOS app was rejected by Apple under: Guideline 4.2 - Design - Minimum Functionality. The app still provides a limited user experience as it is not sufficiently different from a web browsing experience. As such, the experience it provides is similar to the general experience of using a web browser. Including features such as push notifications, Core Location, or sharing do not provide a robust enough experience to be appropriate for the App Store.

How should I grab raw pixel data from a .png file (using Bash)?

6 June 2026 @ 9:17 pm

I've been looking into making a script that grabs the raw pixel data from a .png file & writes it directly to the framebuffer, but how would I actually grab the data? I know PNG files have a bunch of compression, so to my knowledge I cannot just simply grab pixel data, so how would I go about doing this? What's the best way to do so?

I have issues jumping to my kernel in my bootloader

6 June 2026 @ 7:31 pm

I'm having trouble jumping to my kernel in my bootlloader, i read the second sector of the disk and loaded it at 0x8000 after setting up the GDT i far jumped into Protected Mode, then i set up the sement registers again and my stack pointer to 0x90000, but when I tried far jumping to my kernel, it doesn't work it just makes QEMU enter a loop, even a near jump too didnt work, please can anyone help, Here's my code for clarification bits 16 org 0x7c00 KERNEL equ 0x8000 global _start section .text _start: xor ax, ax mov ds, ax mov es, ax mov ss, ax mov sp, 0x6000 mov ax, 0x0003 int 0x10 mov si, msg call print call enable_a20 call rdisk lgdt [gdt_desc] mov si, pm call print mov eax, cr0 or eax, 1 mov cr0, eax jmp 0x08:protected_mode [bits 32] protected_mode: cli mov eax, 0x10 mov ds, eax mov es, eax mov ss, eax mov fs, eax mov gs, eax mov ebp, 0x90000 mov