[1] https://imgur.com/a/sN8om7u [2] https://en.wikipedia.org/wiki/Steven_M._Bellovin
Ask HN: What's your proudest hack?
91–100 of 414 posts
Re: Ask HN: What's your proudest hack?
#92Re: Ask HN: What's your proudest hack?
#93The testing office was in LA. The audio and metadata was in Ireland. The lag across the public internet consistently failed their tests.
So I deployed a small read-only copy of the API in an LA data centre which tunnelled inside the cloud provider back to Ireland. I used DNS geo tools to ensure the tester transparently hit the local LA data centre.
We passed their tests with ease and landed a 6-figure contract.
The hardware customers probably had a terrible experience though...
Re: Ask HN: What's your proudest hack?
#94Re: Ask HN: What's your proudest hack?
#95When Web Sockets were still not finalized, I was writing a C# program using them but there wasn't a functional library available. There was however a nice open-source Java implementation. I copied it into Visual Studio, changed all the file extensions, and spent half an hour hitting build then fixing syntax and import red squigglies. It eventually built successfully and happily sent data to a NodeJS front end for yea…
Re: Ask HN: What's your proudest hack?
#96Re: Ask HN: What's your proudest hack?
#971. I created a static List of "jobs"
2. The Discord user sends a command to render some colored text
3. We create a SadConsole.Console instance; draw the text onto the Console; and push a job to the job list.
4. When the MonoGame instance enters the "Render" call, it runs each job in the job list.
5. The job we pushed then saves the Console to a PNG in a memory stream (file operations were substantially slower in thread for some reason), and then calls Discord API to send the response.
I'm personally proud of this because I used MonoGame in a way that it was not intended for.
The code worked at the time it was written. Unfortunately, it does not work anymore at this time (likely due to some API update).
The code is available here: https://github.com/INeedAUniqueUsername/Colorbot/blob/master...
Re: Ask HN: What's your proudest hack?
#98Re: Ask HN: What's your proudest hack?
#99Re: Ask HN: What's your proudest hack?
#100One time I accidentally overwrote my hard drive with dd while making an installation thumbdrive. While unfortunate, it was only the first 8GB or so. This nuked the partition table, bootloader, and start of the Windows partition, but fortunately my daily-driver, still-running Linux system partition was unaffected. I kept my cool and figured it was recoverable. I ended up recovering the partition table from RAM and wri…
How did you get it out of RAM so cleanly?