Live data from Hacker News

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

news.ycombinator.com

591–600 of 671 posts

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

#591
I made a sleep timer for closing tabs. I couldn't find one so I made it. It bothers me that streaming services will keep playing after I fall asleep and wake me up with a blaring action or musical scene. So with this script I can set how tired I am and after I fall sleep, the program will close the current tab and blank the display to keep the light down.

I don't consider it a program nor do I consider myself a programmer. But man, it was so satisfying to have completed it.

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

#593
post #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 c…

Really clever idea - thank you for sharing!

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

#594

Yes. Scratching your own itch is one of the funnest parts of scripting. I made simple script that converts DB ids output per line that you'd get from a query into a comma separated line with a one line bash script. e.g. converts: 1 2 3 to: 1, 2, 3 Since I do a lot of querying it is very helpful. To achieve the same thing in Excel is a fucking nightmare. The cool part is when I feed it like 50000 lines of input how re…

On MySql I used group_concat function to do the same thing.

It works alright on a few hundred lines but not on thousands. It truncates the output. Or at least my SQL client (Sequel Pro) does.

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

#595
I've been writing programs for myself since I started programming on a Tandy Level I. I'm always working on some project or other. Most of them are too big for me, but I do them so I can learn how the real things work. Currently writing an html user agent, but it's not even off the ground yet. I have a program that uses something like genetic algorithms to play go, but it's not doing very well relatively speaking. I wrote a program to resize files using an underlying floating point grid whose size you can specify that tends to work okay. It's slow, but I use it for resizing files for smaller displays and just to tinker with.

There are staples I keep coming back to. I'm always trying to write a reverse ray tracer that shoots photons from light sources and tracks them around to see if they hit a pinhole camera, but they are of course way too slow. I've played with some ideas for compressing images, and I've taken a few runs at the hutter prize (compressing wikipedia). Writing a massive text-based old-school rogue-like is something I keep coming back to.

I used to mod games, and have played with some programs designed to edit different file types I was trying to reverse engineer. I've played around with trying to optimize sha-256 hashing, but haven't gotten anywhere. I also have tons of shells scripts that do various things.

I usually write in straight C these days, though I've tried various programs in D, Free Pascal, Ada, Java, assembly, Perl, BASIC (back in the day) and probably others I've forgotten. I remember in high school writing a game with a friend for one of the early Tandy machines in assembly on paper and then hand-assembling it to machine code and using poke in BASIC to put it in memory and then executing it. We didn't have access to an assembler.

I haven't ever given out any of my code, I just use it to play with ideas and to keep my skills up.

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

#598
post #576

Earlier quoted context omitted.

ok typo on my part... anyhoo - does "correct" go at the front or back?! Because the way I read it, the speech bubble saying 'correct' is after the horse and the other two words.

"Correct" goes at the front; see panel 4. You remember the order along with the words, and the imagery is a cue to aid memory, not a script.

Maybe it's because I'm a visual learner that I stored panel 6 and not panel 4.... Even though I clearly stored it incorrectly regardless.

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

#599

Earlier quoted context omitted.

Sounds like an interesting challenge although I’ll admit on this one I would have just went to fiver and hired someone to edit the existing text. My guess is under and week and a couple hundred bucks at most and you’d be set.

I think this is a case of "chop your wood and it will warm you twice"... ie. the value derived from this exercise was not just from the outcome, but also the journey there!

Totally agree and get it, I do it selectively as well - and on this one, I don't think I would have enjoyed the challenge of it so I would have just outsourced the work to be done manually. It's such a straight forward thing to explain to someone else, I think most gig workers that spoke english reasonably well could quickly knock it out. Actually, so much so that since most of these stories are fairly short and you probably end up proofreading them dozen of times as you tweak the code and/or review the outsourced work for accuracy/completion... so I might have just done it myself manually and it would have taken probably less than a dozen hours without the communication overhead of going through fiver or similar. It's more of a do things that don't scale approach I suppose as myself with a toddler that loves reading stories I value my time above all else and could find a dozen more interesting things to hack on in my limited free time (highly subjective I know, just my hot take on the topic at hand).

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

#600

I have a couple but the first that comes to mind is a tiny little mac app I wrote that "jumps" my mouse between monitors. I use it because I have 2 monitors in vertical orientation, one in horizontal between them, and another smaller monitor above the center monitor. Here is some ascii art of it: +----------------+ | | +------------+ | | +------------+ | ! | | ! !| | ! | | ! | | ! !| | ! | | ! | +----------------+ |…

Would you be willing to share the source for this one? Or at least how it works (i.e. what apis were used)

Absolutely, I just pushed up all the code here https://github.com/joshstrange/mousejump -- I can't make any support promises but it's been working for me really well.
Post reply on HN