Ask HN: Have you created programs for only your personal use?
423 pointsCurious 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 commentsIt has helped me wrap my head around certain areas of computing without getting lost in a pile of pdfs.
https://voces.github.io/dec2fract/
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.
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.
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).
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.