Newest Questions
24,151,741 questions
Best practices
0
votes
0
replies
3
views
Addition to Flutter .gitignore
After upgrading to Flutter
3.41.9
, the file below is now showing up in git. Am I right to assume it is safe to ignore this file since its derived data?
ios/.derived-data-log-0CA5RPJ1
*I can't find ...
0
votes
1
answer
16
views
error: root source file struct 'std' has no member named 'io'
I tried printing a hello world from zig 0.16, but I am getting an error.
My snippet is:
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
...
Tooling
0
votes
0
replies
15
views
Kotlin Multiplatform: Is there a portable way to get free disk space (like File(".").freeSpace)?
I'm working on a Kotlin Multiplatform (KMP) project and need to read the free disk space (in KB) similar to the JVM API:
// JVM-only code
actual fun getFreeDiskSpaceKb(): Long {
val file = java.io....
0
votes
0
answers
18
views
SUBDIRS and dependencies in makefiles
I've got a project with directories theme-d-intr, theme-d-intr/base, and theme-d-intr/dbus. File theme-d-intr/Makefile.am consists only of line SUBDIRS = base dbus. Some files in dbus depend on the ...
0
votes
0
answers
20
views
Best practice for --export in SLURM
I have the following situation where a script is launched with the following:
sbatch \
--job-name=<job_name> \
--array=[1-3]%3 \
--export=chromosome=chr1 \
/path/to/<script&...
Advice
0
votes
1
replies
25
views
How to compare to Dictionary objects in js
I was solving a problem, and Its important to compare both dictionary, but js doesn't support it I cant use operator like this == or === to compare 2 objects, how can I do that without using any ...
Best practices
0
votes
1
replies
35
views
Confused about React TypeScript function and functional component declarations
I'm wondering why some ways of declarations are valid while others are not and are throwing errors as shown below:
Correct
export const useDebounce = <T,>(val: T): T => {
const [...
Advice
1
vote
3
replies
46
views
Modulus of Very large Number
You are given a very large number N (which goes upto 1e10000)
and a 64 bit integer P.
How do i find N % P?
for example:
N= 8290826691135830692772803 , P = 95972011
modulus (N % P) = 60316167
obviously ...
Best practices
0
votes
0
replies
18
views
How to "sync" Prisma with sessions?
I have a node js code that authenticates with cookies and sessions:
import express from "express";
import session from "express-session";
import postgreSession from "connect-...
-4
votes
0
answers
29
views
How to programmatically detect compiled binary instruction bloat and cache regressions in a CI/CD pipeline? [closed]
I am trying to set up an automated quality gate in a GitHub Actions CI/CD pipeline to catch microarchitecture-level performance regressions (such as instruction bloat, branch mispredictions, or bad ...
Best practices
0
votes
0
replies
13
views
Best practices for clearing Class 11 backlogs while keeping up with the fast-paced Class 12 JEE syllabus?
As a JEE aspirant, I am facing a massive challenge that many seem to struggle with: a heavy backlog from Class 11 (specifically in Mechanics and Coordinate Geometry). Whenever I try to dedicate time ...
Tooling
0
votes
3
replies
33
views
Change Editor Font
Is there a way to change the editor font in StackEdit?
Some of the things I tried:
editor:
fontFamily: "Iosevka"
editor:
font: "Iosevka"
font: "Iosevka"
fontFamily:...
0
votes
0
answers
24
views
Fresh Next.js install throws createClientModuleProxy / buildId errors
Fresh Next.js install throws createClientModuleProxy / deploymentId / buildId errors on Node.js v24
I created a fresh Next.js app using:
npx create-next-app@latest my-app
Then I ran:
npm run dev
...
0
votes
0
answers
26
views
Embedded UART reception architecture in C on PIC controller
I am struggling with the basic architecture question and implementation in C language. I am using embedded C on PIC controller trying to transmit and received using UART.
My question is when ...
0
votes
1
answer
29
views
Branch not listed after creating an orphan branch
I created an orphan branch (needed it to be empty) like this:
git switch --orphan orphan-branch
Switched to a new branch 'orphan-branch'
Now I verify if the created branch exists with git branch, but ...
