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
khaledh#
I've written a quick and dirty Django app to organize computer history literature (papers, manuals, books, etc). Every document includes an embedded pdf and is tagged with authors, institutions, and topics. It supports cross-references between documents. I also added a feature to mark a document as read and when it was read.

It has helped me wrap my head around certain areas of computing without getting lost in a pile of pdfs.

verit1 reply#
Every so often I want to derive a fraction from a decimal value, such as 0.571 => 4/7. The key point is I want good approximations, not exact values. That is, I rather get 4/7 than 571/1000. I had found a tool at one point that did it, but it stopped working, so I made my own.

https://voces.github.io/dec2fract/

kragen1 reply#
You seem to be sort of doing this by brute force; a non-brute-force way to do this is with Aryabhata's Pulverizer Algorithm to get a continued fraction you can then truncate to get convergents.

571/1000 = 0 + 1/(1000/571) = 0 + 1/(1 + 429/571).
429/571 = 1/(1 + 142/429).
142/429 = 1/(3 + 3/142).
3/142 = 1/(47 + 1/3).
So 571/1000 = 0 + 1/(1 + 1/(1 + 1/(3 + 1/(47 + 1/3)))), or, in the notation that is conventional for continued fractions, [0; 1, 1, 3, 47, 3]. The truncated convergents are [0], [0; 1], [0; 1, 1], [0; 1, 1, 3], [0; 1, 1, 3, 47], and the full fraction. These convert back to rational numbers respectively as 0, 1, 1/(1 + 1/1) = 1/2, 1/(1 + 1/(1 + 1/3)) = 4/7 (your desired approximation), and 1/(1 + 1/(1 + 1/(3 + 1/47))) = 189/331. Except for 0, these are exactly the same ones your program finds, but the Pulverizer only required four divisions. (The difference in efficiency is insignificant for manually entered fractions with a modern computer, though.)
This is explained in places like HAKMEM, the Machinery's Handbook, and I think the Aryabhatiya. But I don't read Sanskrit, so I've never read the Aryabhatiya.

Matumio#
I always get a sense of achievement when I side-step the analysis of a problem with a stupid, straight-forward simulation script (usually probability questions).

It may burn several seconds of CPU and still get me only 3 significant digits, when a one-step solution exists. But I'm more confident in the result because the script is near-impossible to get wrong, compared to some theory I just learned, or a probability distribution that turns out to have conflicting definitions what its parameters mean.

jms#
I made a command line music playing frontend. It has a list of all my music as a flat text file, then if I run "music" it shuffles randomly, or I can add a regex as an argument to pick the files from the list. It works surprisingly well - given my folder structure I can just type in "music " or "music " or "music " and it just does it. It also has a flag for turning shuffle mode on or off.

Very simple, but very comfortable for me.
I also created my own TODO / dashboard app, where all tasks are on a schedule (do this every x days) and I can enter a value each time I complete a task. These then show up as graphs on my dashboard - helpful for tracking weight etc. I also graph a bunch of random things automatically in the same system (how many unread emails I have).
It also tracks how many tasks are overdue so I can measure my general ability to get stuff done, and if it gets overwhelming I can tweak the settings so it just shows me a few things (or more realistically I tweak the task to either not need doing/tracking, or I slow down it's cadence).

wink#
Several, but not many that I actually used daily/weekly for an extended period of time.

I am not a huge fan of podcasts but I do listen to a select few. I am also weird and only listen to them on my main machine at home while doing something else.
I was a huge fan of Juice[0] but it hadn't been updated in ages and at some point its TLS parts were too old and I gave up updating it to Python 3 after a quick try. So I wrote my own Podcast library thing in C++/Qt which talks to a backend, where the data is stored.
[0]: http://juicereceiver.sourceforge.net/
And I wrote a soup.io clone in Clojure that I use mostly for song bookmarking via youtube (but so I can play them). Then I stripped nearly all of the soup features and now it's just a tumblelog I guess. Then after many years I rewrote it and didn't open source the rewrite.
And as you mentioned, the odd metrics/scraping/whatever job that's being run every night and where I actually look at the output several times per week, in one case it's an actual program, yeah.

Load more comments