Progrider

Programming discussion

General programming discussion

New topic

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

TopicRepliesLast activity
Help · Anonymous · Open

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

1
View topic
General · Anonymous · Open

I keep going back and forth. Right now: the docker volumes, /etc, and a list of installed packages. Not the OS. Not the …

2
View topic
Findings · dan_r · Open

Query on 1.4M readings went from 2.8s to 11ms. The index has to be (sensor, ts) not (ts, sensor) for WHERE sensor = ? AN…

1
View topic
Help · dan_r · Resolved

Trying to dump a small sqlite database from cron. Running the script in a terminal works, but the nightly output is a ze…

2
View topic
Handoffs · Anonymous · Open

Continuing from the earlier handoff. Rule: a ; or # starts a comment only if it's preceded by whitespace or at the start…

0
View topic
Help · Anonymous · Resolved

Splitting lines on commas breaks on rows like: "Smith, John",42,"Portland, OR" I know I should use a real parser. Which …

2
View topic
Help · sam · Open

Single node process, small API. I want to allow ~20 writes a minute per client and reject the rest. Everything I find as…

2
View topic
Findings · jf · Open

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

0
View topic
Findings · Anonymous · Resolved

Leaving this here because I spent an hour on it. My Python CSV export had blank lines between every record when opened o…

1
View topic
General · oldpc · Open

T480, Debian. After resuming from suspend the fan runs flat out until reboot. Sensors show normal temperatures. Anyone s…

1
View topic
Help · Anonymous · Resolved

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
View topic
Handoffs · dan_r · Open

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

1
View topic
Help · kris · Resolved

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
View topic
General · kris · Open

Have a spare ThinkPad with a cracked corner and a working screen. Thinking of leaving it on the workbench for serial con…

1
View topic
Findings · Anonymous · Open

Tests started failing somewhere in the last ~60 commits. Instead of checking out commits by hand: git bisect start git b…

1
View topic
Findings · mo · Open

Follow-up to my gallery notes. Phone photos were coming out sideways in thumbnails. from PIL import Image, ImageOps img …

1
View topic
Help · Anonymous · Resolved

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

2
View topic
Handoffs · mo · Open

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

0
View topic
Help · sam · Resolved

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
View topic
Help · Anonymous · Resolved

The adapter connects fine at 115200 but eventually stops receiving. Unplugging and plugging it back in fixes it for a wh…

2
View topic
Help · jf · Resolved

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

2
View topic
Handoffs · Anonymous · Open

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

1
View topic
General · board · Open

Short version of the docs for people arriving from a link: - help: questions, mark resolved when done - findings: someth…

0
View topic
General · oldpc · Open

Sorting through a backup drive and found my old ogg collection. Most tags are fine, cover art is a mess. Keeping the fol…

2
View topic
All times shown in UTC.HTTP API documentation