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
Off the top of my head, the most used ones are:
* A replacement front-end for "tar" and various compressors
* A script to synchronize my music library to a compressed version for playing in my car
* A secure-but-readable password generator
* A system to batch compress folders full of video files. (For ripped blu-ray discs, mostly.)
* A replacement front-end for "ffmpeg", see above
* A "sanity check" program for my internet connection to see if the problem is me, or Comcast
* A front-end for "rm" that shows a progress bar when deleting thousands of files. (Deletes on ZFS are unusually slow.)
And lots more tiny things.
I certainly have. Interestingly, one was the same "sanity check" program for my internet connection, because of the same ISP you mention. Amazing coincidence...I don't think. :-)
Comcast "service" has probably driven the creation of more trivial internet connection test programs than any college course in the world.
Here [0] is a screenshot of the Comcast cable connection from a year and a half ago. I have since switched to AT&T gigabit fiber. Here [1] is a screenshot from today.
[0]: https://knightoftheinter.net/img/20201102143900.png
[1]: https://knightoftheinter.net/img/Screenshot_20220413_171934....
Continue this thread — 1 reply
Continue this thread — 1 reply
I love pronounceable passwords, but there's research indicating that such generators typically produce lower than expected entropy. Do you mind sharing what algorithm you use?
Continue this thread — 2 replies
I wonder which way round is actually the right way to say it?
Continue this thread — 4 replies
Continue this thread — 7 replies
(Sorry I had to)
> Please don't use $RANDOM or $((RANDOM)) or standard `shuf` for password generation. These RNGs are not cryptographically secure. Use input from /dev/urandom instead.
Continue this thread — 2 replies
Continue this thread — 1 reply
Modulo operations like these are another thing to avoid. To get equal chances for each word, the simplest thing to do is e.g.
(Adjust if your list length is greater than 255×256+256, of course.)Further, I see that cracklib-small is 52k words. That's not good or bad, but it makes the default 4-word phrase 52e3⁴ ~ 63 bits of entropy, which isn't terrible but in my opinion on the short side as a default. It will be perfectly fine if you only ever want to defend against online attacks, but in some cases (think disk encryption or password manager) offline cracking should be kept in mind and for the rest you should usually use a password manager anyhow (so then memorability doesn't matter).
Or perhaps more succinctly: please don't roll your own crypto.
I understand that this is of course very unlikely to be abused if it's just for yourself and nobody knows of this weakness in your credentials (security through obscurity works... until it doesn't), but one day someone will use this as inspiration or it will spread somehow, say through an HN comment... just use good password generators or at least keep insecure ones secret.
Btw: many standard Debian(-based) installations have /usr/share/dict/words available so you don't need an extra install; I haven't seen cracklib used before but that might just be me.
Continue this thread — 2 replies
Continue this thread — 3 replies
Continue this thread — 1 more reply
Continue this thread — 4 more replies
Continue this thread — 7 more replies
I made a program to gender swap any text you put into it and then got a book deal to rewrite and illustrate Fairy Tales. It’s been published around the world.
https://genderswappedfairytales.com
The idea is to shine a light on the original versions but it also creates a lot of never-written-before characters. A lot of brave princesses and lady-beasts, but also men desperately wanting children and being rewarded for kindness.
I wrote the gender swap algorithm in Swift. It seemed like it would just be a simple auto replace type thing when I started but there’s some weird things in English, for example with his/him/her/hers where they don’t swap back and forth sensibly and you have to understand the context.
It was his > it was hers.
It was his sword > it was her sword
So I ended up down this rabbit hole of natural language processing to break up each sentence into verbs, nouns etc to work out the correct words to use. Even tried training an AI to do it based on the finished swapped text but a whole bunch of rules worked more reliably.
https://news.ycombinator.com/item?id=30877930
(I'm old enough to remember when Yahoo's attempt at preventing cross-site scripting, blindly replacing eval with review, resulted in such shenanigans as "Please reviewuate my CV for Professor of Medireview History". Some of the corruptions persisted outside of Yahoo mail when people emailed text to themselves as a form of file transfer. Yes, this went into production in one of the two largest email providers at the time.)
Continue this thread — 1 reply
https://chrome.google.com/webstore/detail/jailbreak-the-patr...
We’re doing a sequel this year and I’m going to redo the website with the aim of turning genderswapping into a movement and getting other people to join in. I’ll link this this for sure!
Continue this thread — 1 reply
When I hand off a build to a client, if all the red dots are gone, I know I’ve at least TOUCHED everything.
If I’m working with another engineer, we can both see the dots in our browser and collaborate to clear them all while we test.
Continue this thread — 12 replies
We noticed that we buy a lot of the same things (bananas, avocados, eggs, etc), so we implemented a system where anyone can stick a QR code onto something they want to share, and anyone else can scan it to record what they took. For example, this morning I pulled a carton of eggs out of the fridge, scanned it, recorded that I took 3, and a Splitwise expense was automatically updated between me and the person who bought the eggs (much easier and less awkward than handing someone 75 cents). Everyone is logged into the application via Splitwise OAuth, and all products/expenses/debts are automatically simplified within Splitwise and updated via the API - so the app is pretty much a wrapper over Splitwise specifically for granular sharing of food.
Continue this thread — 12 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.