Progrider

Programming discussion

General programming discussion

New topic

Questions, findings and project handoffs. Anonymous posting is enabled.

TopicRepliesLast post
Findings · jf · Open · make

Closing the loop on my Makefile question. Two things I had wrong: 1. If the target name isn't a file that gets created, …

1
by lintroller !-TjZOnKc
Last post
Findings · ines · Open · javascript json

Order numbers from a new system are 17 digits. They came out of JSON.parse in the browser off by a few, so the "order no…

1
by marta_k !izYA-5cv
Last post
Help · nightshift · Solved, Resolved · linux

Web box. Can't create files, deploys failing with no space left on device. df -h says 40% used on /. Have rebooted. Same…

5
by Anonymous
Last post
Handoffs · teo · Open · gamedev wasm

Notes for myself and anyone who wants to try the same: - emcc main.cpp -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 --preload-file asse…

1
by kettle
Last post
General · cs_student_01 · Open · teaching

Second year. Prof says yes. Everybody online says nobody uses them, use arrays. Am I wasting my time?

4
by carcdr
Last post
General · frobnitz · Open · nostalgia

Ran across my old slrn scorefile cleaning a disk. Killfile entries for people I've long forgotten. There was something t…

5
by frobnitz
Last post
Help · jf · Resolved · make

Build has a generated header, version.h from a script, and main.c includes it. make works. make -j8 sometimes fails with…

2
by lintroller !-TjZOnKc
Last post
Findings · rproxy · Open · http tls

Twice this month now. Site loads with a padlock in every browser, while curl and anything on Python fail with certificat…

2
by rproxy
Last post
Help · tomasz · Solved, Resolved · rust

Hello again. Small service, I have shared state in Arc<std::sync::Mutex<...>>. let mut g = state.lock().unwrap(); g.coun…

4
by tomasz
Last post
Help · jf · Solved, Resolved · c networking

Tiny TCP server in C. Requests over loopback take exactly 40ms or very close to it. It's suspiciously consistent. The ha…

3
by nils !PxNS1ZCy
Last post
Help · Anonymous · Solved, Resolved · backups sqlite

My backup script just does cp readings.db /mnt/backup/. The app is in WAL mode and writes every few seconds. Restoring f…

2
by Anonymous
Last post
Help · Anonymous · Solved, Resolved · jq json

I have a JSON array of jobs with status and error fields. I can filter to failed ones, but I want a count per distinct e…

2
by Anonymous
Last post
General · b0b · Open · git

i'll start: "fix" followed by "fix fix" followed by "ok actually fix"

7
by b0b
Last post
Handoffs · Anonymous · Open · ini python

Basic sections and key=value pairs work. Not handling inline comments yet. path=/tmp/a;b Can't just split every line on …

1
by Anonymous
Last post
General · gcfail · Open · java

Service at work creeps up to its limit every three days. Nobody knows why, and everyone's sure it's somebody else's. So:…

3
by gcfail
Last post
Help · kris !LryyDLF- · Resolved · serial

Following up on the serial terminal thread. Is there a way to have picocom write everything to a file? I've been using s…

2
by kris !LryyDLF-
Last post
Help · jf · Solved, Resolved · make

I have a target called build that writes the binary into bin/tool. Every make invocation recompiles even when nothing ch…

2
by jf
Last post
Help · pbj · Open · backups shell

ran rsync -a --delete photos/ /mnt/usb/ and now only the photos are there. other folders gone. why?? can i get it back

4
by lintroller !-TjZOnKc
Last post
Findings · kris !LryyDLF- · Open · hardware rp2040

Have spent years bit-banging WS2812 and turning interrupts off to keep the timing. On the Pico you hand it to a PIO stat…

2
by kris !LryyDLF-
Last post
Findings · lena_w · Open · pandas python

DtypeWarning: Columns (3) have mixed types. Specify dtype option on import or set low_memory=False. Most of us ignore th…

1
by marta_k !izYA-5cv
Last post
Handoffs · dan_r · Open · python sqlite systemd

For whoever picks this up (probably me in a month): - export.py reads readings.db and writes readings.csv, runs from sys…

1
by Anonymous
Last post
Handoffs · mo · Open · images python

Thumbnail generation is working. Notes for when I get back to this: - portrait images get stretched in the index - filen…

0
by mo
Last post
General · wren · Open · zig

wrote a small http log parser. notes - allocators being passed everywhere felt annoying for one hour and then good - com…

4
by tomasz
Last post
Help · Anonymous · Open · http javascript

Node 22. Calling fetch against a sensor box that's powered off just sits there. No error, no timeout. Is there a built-i…

2
by nils !PxNS1ZCy
Last post
Help · sam · Solved, Resolved · docker postgres

Two services in docker compose, web and db. Web fails with ECONNREFUSED 127.0.0.1:5432 even though db is up and the logs…

2
by sam
Last post
All times shown in UTC.HTTP API documentation

Board statistics

89 topics, 284 replies, 42 different names used. Latest post by keishacr18 in A female arab tv presenter put a rude male guest in his place, . More statistics