user3307719
@user3307719
Member · Member since Oct 2026
0 followers · 0 following
- Topics created
- 0
- Posts created
- 1
- Likes given
- 26
- Likes received
- 0
- Days visited
- 0
- Solutions
- 0
Days visited count across the whole community, not just this forum.
Most active topics
Nothing yet.
Most liked posts
Nothing yet.
Top categories
Top tags
Nothing yet.
- Is it possible to style the scrollbar in Firefox?
::-webkit-scrollbar does nothing in Firefox. Is there an alternative?
Likes given · 10/12/2026
- Spark: how to avoid a shuffle when joining a small table?
Joining a 2 GB fact table with a 5 MB lookup table causes a full shuffle. Any way to avoid it?
Likes given · 10/12/2026
- Embedded C: volatile still needed for memory-mapped registers?
With modern compilers and -O2, is volatile still required for hardware registers, or are memory barriers enough?
Likes given · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes given · 10/12/2026
- Async Python: run blocking code without freezing the event loop
Push it to a thread: result = await asyncio.to_thread(blocking_fn, arg) For CPU-heavy work use a process pool with loop.run_in_executor(ProcessPoolExecutor(), f
Likes given · 10/12/2026
- Vim: how do I exit without saving?
ZQ in normal mode does the same with fewer keystrokes.
Likes given · 10/12/2026
- Java: concurrent modification exception when removing from a list in a for-each loop
for (String s : names) { if (s.isBlank()) names.remove(s); } throws ConcurrentModificationException. How should I remove while iterating?
Likes given · 10/12/2026
- SQL: get the latest row per group
In Postgres the shortest form is DISTINCT ON: SELECT DISTINCT ON (customer_id) * FROM orders ORDER BY customer_id, created_at DESC; Portable SQL uses a window f
Likes given · 10/12/2026
- SQL: get the latest row per group
For each customer_id I need the most recent order from orders(id, customer_id, created_at, total).
Likes given · 10/12/2026
- Bash: loop over files with spaces in their names
Do not parse ls. Let the shell glob, and quote the variable: for f in *.txt; do printf '%s\n' "$f" done For recursive search use find … -print0 | while IFS= r
Likes given · 10/12/2026
- TypeScript: type an object whose keys come from a union
satisfies Record<Theme, string> keeps the literal types while still checking completeness.
Likes given · 10/12/2026
- TypeScript: type an object whose keys come from a union
Use Record: type Theme = 'light' | 'dark'; const bg: Record<Theme, string> = { light: '#fff', dark: '#0d1117' }; Missing a key is a compile error. Use Partial<R
Likes given · 10/12/2026
- Go: all goroutines are asleep — deadlock! with an unbuffered channel
A send on an unbuffered channel blocks until another goroutine receives. main is the only goroutine, so it blocks on the send forever. Either receive in another
Likes given · 10/12/2026
- Go: all goroutines are asleep — deadlock! with an unbuffered channel
func main() { ch := make(chan int) ch <- 1 fmt.Println(<-ch) } Why does this deadlock?
Likes given · 10/12/2026
- Docker container exits immediately with code 0
The trailing & backgrounds the process. The container's main process (the shell) then has nothing left to do, exits with 0, and Docker stops the container. Use
Likes given · 10/12/2026
- Rust: "borrowed value does not live long enough" when returning a &str from a function
s is owned by the function and dropped when it returns, so a &str pointing into it would dangle. Either borrow the input: fn first_word(s: &str) -> &str { s
Likes given · 10/12/2026
- PostgreSQL: query is slow even though the column is indexed
Wrapping the column in a function (date(created_at)) means the index on created_at cannot be used — the planner would have to compute date() for every row. Rewr
Likes given · 10/12/2026
- PostgreSQL: query is slow even though the column is indexed
This query takes ~4 s on a 30M-row table even though created_at has a B-tree index: SELECT * FROM events WHERE date(created_at) = '2026-10-01'; EXPLAIN shows a
Likes given · 10/12/2026
- Git: undo the most recent local commits
And if you only need to fix the message or add a forgotten file: git commit --amend.
Likes given · 10/12/2026