Ask HN: What's your "it's not stupid if it works" story?
381–390 of 510 posts
Re: Ask HN: What's your "it's not stupid if it works" story?
#382Earlier quoted context omitted.
But docks work in a different way, such as XRender or just a PNG with an alpha layer. Much less expensive than copying a chunk of the backdrop and then "pasted" at your terminal background. Often docks will be able to show you the underlying windows behind it, even without compositing. But under the terminal with fake transparency you couldn't see another window behind it, just the backdrop part. I think X11 had some…
Why is it less expensive? Sounds like the exact same operation, except the OS is doing it.
Re: Ask HN: What's your "it's not stupid if it works" story?
#383Re: Ask HN: What's your "it's not stupid if it works" story?
#384Fixing a CD drive with Polish Kielbasa: The CD drive in my first computer broke. We couldn't afford to get a new one, and after almost a year of using floppies I got a bit tired of having to carry them across the mountains every time I wanted play a new game. (context: I lived in a small village in southern Poland at the time -- imagine Twin Peaks, but with fewer people and bigger hills). Sometimes getting a copy of…
Once upon a time, car transmissions used whale oil.
Re: Ask HN: What's your "it's not stupid if it works" story?
#385Earlier quoted context omitted.
> There were many posts about cats and their livelihoods and protection. Love that Turks have a wonderful relationship with cats, especially in Istanbul: https://en.wikipedia.org/wiki/Feral_cats_in_Istanbul There is a nationwide no-catch and no-kill policy for feral cats.
Would love to see that implemented here in USA. People in places like NYC love to catch and spay every cat they see, then go on to complain about too many rodents around.
Cats shit in my garden and leave dead songbirds where I grow food. No, we don’t need more cats.
Re: Ask HN: What's your "it's not stupid if it works" story?
#386...an awful one for posterity: an abomination of vim + awk as a proto-protocol plus UI editor. Basically awk would match `/^FOO / { system("foo.exe $0") }` ...you could get pretty darned far with that mechanism, for near minimal amounts of code. Any time you pressed "enter" on a line of text in vim, it'd get thrown through that awk script. If a line matched a command matched in the awk file (think GET, POST, SEARCH,…
Re: Ask HN: What's your "it's not stupid if it works" story?
#387Given that the new charts were rendered on the client, this seemed to be an impossible ask -- certainly the client didn't expect us to be able to solve it, once they realised their mistake.
I bodged together the standalone Flash player with a headless XServer and some extra logic in Flex, so it would repeatedly hit an endpoint, render a chart with the data returned, then post it back up to another endpoint. It took a couple of rounds of back-and-forth with their IT folk, but it worked! And we heard a couple of years later that it was still running happily in production.
For several years I left "Adobe Flex" off my resume, I hope it's dead enough now that I can safely admit to having known how to develop for it. I'm still quite proud of having invented the monstrosity that was "Server-side Flash".
Re: Ask HN: What's your "it's not stupid if it works" story?
#388Earlier quoted context omitted.
Fake transparency is still a thing, for desktops without compositor. Not only in terminals, but also in docks.
But docks work in a different way, such as XRender or just a PNG with an alpha layer. Much less expensive than copying a chunk of the backdrop and then "pasted" at your terminal background. Often docks will be able to show you the underlying windows behind it, even without compositing. But under the terminal with fake transparency you couldn't see another window behind it, just the backdrop part. I think X11 had some…
See https://github.com/onli/simdock/issues/11, and if there really are good alternative solutions I'd be happy for some help.
Re: Ask HN: What's your "it's not stupid if it works" story?
#389This system was built in Java and was launched using a simple shell script that used a `for` loop to build the classpath by looping over all the JARs in the lib folder and appending them to a shell variable.
With the release "process" in mind, hotfixes and patches had to be kept as simple as possible. To release a hotfix we would JAR up the one or two classes that needed to be patched and into a single JAR file, then modify the startup script to pre-pend that JAR file to the classpath so that the patched classes were found first, taking advantage of Java's classpath loading algorithm.
Re: Ask HN: What's your "it's not stupid if it works" story?
#390Earlier quoted context omitted.
As a European I'd like to know how our numbers are differently formatted to yours! (Did you mean dates? The never ending source of pain!)
To me (USA) 1,000 is one thousand and 1.000 is one, and to me (Italian) 1,000 is one and 1.000 is one thousand :)