Lurker News
Curious to know if anyone has written programs for their own, regular, & personal use. And if so what they are? E.g. A colleague of mine tracks all of his homes energy use through a custom program which disaggregates the energy consumption per device and outputs a report to a tablet.

Comments (651) 385 threads

Earlier comments
lph1 reply#
Most recent program: I wanted time-lapse photos of some potted plants I'm trying to grow. So I stuck QR codes on the pots and take a picture of each one each day with my phone. That goes to Google Photos, and a cron job scans new photos, recognizes the QR code, and copies the photos into directories for each plant with filenames that sort chronologically. Most of the plants died. I am a better programmer than gardener.

Most used program: I keep a journal of practical daily happenings in Emacs org-mode, organized hierarchically by year/month/day. It was too much hassle to add new entries (I'm lazy), so now I have a utility that inserts journal entries in the correct place from the command line, e.g., "add-journal 'talked with roofers to get estimate'". It's turned into an ad-hoc database for recording things like my weight, also, which gets parsed and turned into a graph.

juki#
> It was too much hassle to add new entries (I'm lazy), so now I have a utility that inserts journal entries in the correct place from the command line

Wouldn't it be easier to just use org-mode's capture functionality (https://orgmode.org/manual/Capture.html)? I.e.

  (setq org-capture-templates
        '(("j" "Journal" (file+olp+datetree "~/journal.org") "* %?")) ;Add more templates as needed

  (global-set-key (kbd "C-c c") #'org-capture)
Then `C-c c j` will prompt for a new entry, `C-c C-c` to save it. The `file+olp+datetree` will automatically put them in a year/month/day hierarchy.
EvanAnderson#
Tons and tons of them over the years. I wish I'd kept better track of them because I've caught myself reinventing the wheel now and again.

- When I was a kid using a DOS PC I'd write them in Microsoft QuickBASIC or Turbo Pascal and compile them to EXEs. (I used to drag a few particularly useful ones around with me until a few years ago when the prevalence of 64-bit Windows made running them on a stock Windows machine impossible.) I had stuff there like a random password generator, dumping files to VGA mode 13h (to visually look for patterns in data), drop the DTR on a serial port (to hang up a modem from the command line), search/replace on INI files, and lots of others I've forgotten.
- I wrote a proto-Markdown text processor back in high school when I was taking notes on a vTech Laser PC4[0]. It took files from the vTech and rendered output files with Epson printer formatting codes, centered text, made headings, etc.
- I regularly use a script I wrote to import my phone backups' SMS logs and dump them into my IMAP mailbox. I love being able to search all my email and SMS communication in the same interface.
- I have a podcatcher I wrote bolted onto my (heavily forked) tt-rss[1] installation to download podcasts to a local webserver for archiving and playing.
- My father persists in using a DOS accounting package for his business. A small program I wrote ingests check printing output from the DOS app (meant for dot matrix tractor-fed checks) and reformats it for sheet-fed checks in a laser printer.
- Front-end scripts for lots of command line utilities so that I don't have to remember obscure options for common tasks.
[0] https://oldcomputermuseum.com/laser_pc4.html
[1] https://tt-rss.org/

mfarstad#
I made a headless sqlite dbms (not nearly as feature rich as the real thing) for my own embedded development. It can show the values of any table, view specific cells, update cells with a text editor interface, beautifies json, and takes in SQL queries as well.

Got some bugs with formatting complex lines of text, but it works well enough for me. I plan on porting to Rust one of these days.
https://github.com/mathaou/termdbms

ggayan#
My main group of friends with whom I play videogames on a daily basis is on Telegram. We use voicechat and stream our gameplay on discord for others to watch/comment in a more private setting (other tools are too public). I wrote a bot that notifies on the telegram group whenever someone starts a stream on discord so others jump in and join the game/stream. Discord shares which game/activity through their API so we know exactly what someone is playing. I also add some personalized randomized spice depending on who is streaming and what they are playing to the telegram bot messages so we can laugh about it.

Whenever the bot has gone down (I turned off the home server or whatever) my friends complain, so I know the bot is fulfilling its purpose :)

Load more comments