Live data from Hacker News

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

news.ycombinator.com

561–570 of 671 posts

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

#561
post #150

Earlier quoted context omitted.

I'd be curious to see the first script, if it's shareable?

Sure! It is very rudimentary and some values are still hardcoded, but I could do bit of clean-up and then upload it. EDIT: Here it is – https://github.com/flobosg/journalert

Thanks! On the fence about whether to use as an excuse to try something small in python for the second time in my life... or just steal the idea and pretty much copy it line by line into something my non-programmer mind will find easier (php). Though maybe it'll be so simple to run and not need future tweaking that it won't even force me into learning by keeping it in python.

Though also, I was hoping for the interesting sources too :P

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

#562
Yes, two.

- An Android notes app - just the way I wanted - I never implemented sync and it was not really polished but I didn’t feel like using anything else

- An Android app that does the counting and countdown thingie and relaxation time gap between two sets or even repetitions - with voice over of course (I needed when my trainer was no longer available) - I used to set it one and then there was start/pause/finish. I could tweak the presets.

Then I started using iPhone. It was quite sometimes back.

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

#563
post #533

I have the feeling I am creating one every two weeks. If you tolerate windows, C# is a great multi-purpose language to develop quickly tools across desktop GUI, CLI and websites. A UI over ffmpeg to look into downloaded movies and add/remove/rename/change default tracks without recompressing (or re compressing certain tracks only). And to autorename files with imdb titles and ids. And another one to collect timestamp…

Also under the "If you tolerate windows" umbrella, PowerShell.

I've been a die-hard Linux user since the middle of high school, but during some work recently, I was pleasantly surprised by how quickly I could get a basic GUI for a PowerShell script I was writing.

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

#564

I have a few homegrown tools, the most notable is one I use to record narration for an audiobook-like podcast. I paste my script into the software, then it will go through the script one sentence at a time. I record and re-record it until I am happy with the take, then it moves on to the next sentence. When I'm done, I can download the audio as one merged WAV file. I occasionally think about sprucing it up to offer f…

Doubleplus cool idea. What's the podcast?

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

#565
post #533

I have the feeling I am creating one every two weeks. If you tolerate windows, C# is a great multi-purpose language to develop quickly tools across desktop GUI, CLI and websites. A UI over ffmpeg to look into downloaded movies and add/remove/rename/change default tracks without recompressing (or re compressing certain tracks only). And to autorename files with imdb titles and ids. And another one to collect timestamp…

Also under the "If you tolerate windows" umbrella, PowerShell. I've been a die-hard Linux user since the middle of high school, but during some work recently, I was pleasantly surprised by how quickly I could get a basic GUI for a PowerShell script I was writing.

Do you mean building a UI from powershell or some sort of UI wrapper for powershell?

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

#566
post #312
post #234

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/

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…

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.

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

#567
I wrote a fairly large and involved desktop app in Python and PyQt5 to enable me to execute a project I was on where I the functional safety engineer for some fairly serious industrial Burner Management Systems, for a lithium processing plant.

The app enabled me to define the behavior of the BMS system as a state machine represented by a table (using PyQt tableview). It also simulated execution of the code as would be implemented, one scan at a time.

Once there, I added a bunch of tools to print out reports/documentation, run diff against models, extract transition comments where certain tags or similar existed (eg show all transitions with a comment that include "IEC 61511"), version tracking, etc etc etc.

It might sound slightly a trivial problem on first description, but one of the systems had ten burners and it ended up being a hierarchical set of 15 state machines 3 deep and it would have been almost impossible to define the behavior on paper - simulation picked up heaps of minor sequencing issues and allowed us to correct them before actual software was written and tested.

Basically, I ended up with an executable specification (not far off the IEC 61499 dream) that self documented. I could have made it write the core PLC code and export it as XML for import to the PLC programming tool, but it was sort of break even to go that far on SIL 2 systems, so I did not go the full distance on that. At one stage it looked like we might go SIL 3, so this would have been useful in that case.

In the end, I put in maybe 1200 hours to build this, in my spare time. Lots of late nights for well over a year, but I don't think we could have really done the project well without it, or something like it.

I looked at it, and decided to actually commercialize it in the form where I could maybe sell/give it to random punters was whole new level of effort. Plus it seemed to be the sort of software that people go broke trying to sell and support, so I just use it for my own purposes now.

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

#568
post #517

Earlier quoted context omitted.

For ages I remembered this as 'battery-horse-staple-correct' but then I see loads of people saying 'correct-battery-horse-staple' so now I think I'm the one who is wrong. I wonder which way round is actually the right way to say it?

Neither? As the linked comic says, it's "correct horse battery staple".

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.

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

#570
post #383
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…

I was about to make something just like your light bulb system for my own home (minus the vacuum part anyway). Any chance that code is open source? Very interested in any other details you’d be willing to share.

It's not open source, but the good news is it's relatively simple. My bulbs are Hue bulbs which use their bridge/hub, which just plugs into ethernet and provides a REST API.

The basic loop, run once per minute is:

- Make one API call which returns the id/on/off/brightness of every bulb

- For each bulb that is on, set its color temperature (this has to be one API call per bulb because there is no way to bulk update a list of bulbs. Bulbs can be put into at most one "room" and you can bulk set a whole room but not a subset of bulbs in that room)

As far as scheduling color temperature goes - I just define a few keyframes based on minutes since midnight local time, and then linearly interpolate to get the color temp. Over 24 hours the steps are so small that the change is basically imperceptible.

Post reply on HN