Live data from Hacker News

Ask HN: Have you created programs for only your personal use?

news.ycombinator.com

321–330 of 671 posts

Re: Ask HN: Have you created programs for only your personal use?

#321

Earlier quoted context omitted.

has it been more than a year? How does Jimmy feel about going first on Dec 31 (day 365) and Jan 1 (day 1)?

I guess it could be change to count whether if the number of days since Jan 1, 1970 up to today has been odd or even...

Probably since otherwise you’d just need a calendar or somehow know the date which most people do without custom code

Re: Ask HN: Have you created programs for only your personal use?

#322
I've written a bunch of stuff that makes it easier for me to connect to cloud resources, pretty much useless for anyone else because it's tailored to my environments.

I've also written a crapload of data processing apps to scrape through or convert various data I've acquired from places.

If I can save 10 minutes of drudgery by spending an hour writing a python or go app, guaranteed I've done it

Re: Ask HN: Have you created programs for only your personal use?

#323
I made a text box that shows the unicode code points that make up the input text.

https://verhovs.ky/unicode-debugger/

https://github.com/verhovsky/unicode-debugger

It's probably not completely correct and there's probably issues stemming from the fact that text in web browsers is UTF-16 not UTF-8, but I've used it to quickly figure out that someone's input wasn't being parsed correctly because the spaces were actually non-breaking spaces for example. It can be used for noticing when some text has a letter that looks the same but is actually a different letter than you think (homoglyph attack) or to see what makes up an emoji.

Re: Ask HN: Have you created programs for only your personal use?

#324

I've created a multithreaded python daemon which every 5 minutes scrapes all currently online cammers on chaturbate and streams to file the ones I've marked as favorites. I've got a text file with tags for each favorited streamer so I can change which ones are being downloaded depending on mood.

I once wrote a fusker for a paid porn site I realised just had its shit hanging out in the open. 4 days of runtime and I had a collection that left me wondering what the hell was wrong with me.

Re: Ask HN: Have you created programs for only your personal use?

#325
Most recently, I've been building a small server for myself to track my day, todos, and just act as a frontend for some easy scripts (eg. just a direct line to running date to get timestamps). It's been a joy to use htmx and flask and just crank out features quickly.

Re: Ask HN: Have you created programs for only your personal use?

#326

Earlier quoted context omitted.

I guess it could be change to count whether if the number of days since Jan 1, 1970 up to today has been odd or even...

Probably since otherwise you’d just need a calendar or somehow know the date which most people do without custom code

Even if the decision was merely day-of-week based, that doesn't buy the key characteristic the author values (I assume): the kids will accept the Algorithm's ruling

Re: Ask HN: Have you created programs for only your personal use?

#327
post #214

Hundreds! Doesn't everyone? Most of them are just bash scripts, many of which have now reached a complexity so high that I wish I'd started writing them in a different language but it's too late now. The majority of the rest are Python. 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 play…

> * A replacement front-end for "ffmpeg", see above I have one of these too... It's kind of frightening how hard ffmpeg is to use without some kind of custom frontend. I have probably dozens of bash/python scripts to invoke ffmpeg for different common tasks. - One to extract audio - One to extract all the individual streams from a container - A couple different transcoding scripts - One specifically for gifs - One to…

ffmpeg arguments generally compose pretty well, although it's powerful enough that (as other comments have mentioned) for special use cases you do often have to look things up.

If you can remember 3 or 4 things you can do most stuff without looking anything up, however:

    -i -> input file
    -vcodec / -acodec -> video and audio codec; "copy" specifies copying the input stream
    -vn / -an / -sn -> disable the video / audio / subtitles in the output file
    -ss / -t -> specify the start time and length of the conversion from the input file
So, just by looking at the above, you can easily see how to extract audio (or any individual stream). For gifs specifically I would recommend using gifski which has much better results anyway. For cropping, I don't find the `-vf crop` syntax too bad.

Re: Ask HN: Have you created programs for only your personal use?

#328

I wrote a scraper for various dating websites that would automatically generate activity on my behalf according to several empirical criteria (very simple stuff, no ML!), so that I could minimize the amount of time spent manually fishing. It worked amazingly well, it got me hundreds (yes, 100+) of dates, incredible dating stories and a lifetime of memories, all in a semi-automated way without me requiring to “swipe r…

What kind of activity was this generating? Just swiping/liking/whatever or were you using this to automate conversations?

Re: Ask HN: Have you created programs for only your personal use?

#329
Most of my light bulbs are color-temperature-adjustable. So I wrote a small program which varies the color temperature throughout the day and night.

I started by matching it to the solar elevation, but ultimately I like it more just on a fixed schedule. I've also programmed it to make a more dramatic warm shift near bedtime, and to fade up a bedroom light when it's time to wake up.

Due to the inevitability of scope creep this system also now tracks the charging status and position of my robot vacuum, and I'm working to expand it to collect the 15-minute-interval usage data from my electric provider's website.

Re: Ask HN: Have you created programs for only your personal use?

#330
post #160

Earlier quoted context omitted.

> A secure-but-readable password generator 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?

Something like cat /usr/share/dict | shuf -n 4 | tr '\n' '-' (inb4 unnecessary use of `cat`)

I use cat like this all the time. It means I can easily change whatever program I'm using to interact with the program (e.g. switching `tr` to `sed`).
Post reply on HN