Live data from Hacker News

Ask HN: What's your proudest hack?

news.ycombinator.com

131–140 of 414 posts

Re: Ask HN: What's your proudest hack?

#131
Anyone who was in college in the US between 2013-2016 will probably have at least heard of the app Yik Yak (https://en.wikipedia.org/wiki/Yik_Yak).

For those who weren't or haven't, it was a geofenced, anonymous message board app targeted to college students that became fairly popular over the first two years of its existence before gradually fading into obscurity and finally being shut down in 2017 (but as of 2021 was rebooted with pseudonymous accounts, IIRC). Users could see any messages within a certain radius (0.5 miles or so, I think) and messages could be upvoted and downvoted, and were sorted by their vote score. Messages with a score of -5 disappeared forever, and I think also eventually aged out.

Being a chaotic sophomore with some Android experience, I decided it would be fun to decompile the app and see how it worked. I discovered that each device was assigned an ID based on a timestamp, IMEI, and a few other pieces of information that could be easily spoofed, by calling a fixed HTTP endpoint to generate as many new IDs as I liked.

I generated ~500 or so IDs using some Java code, hardcoded them into a .class file, and added some hooks to intercept existing calls to set up the Android UI and add my own event listeners. From there I added a button to the app's menu bar with a radiation hazard icon that would use the generated IDs to nuke every message in range of the user, downvoting them all to -5 and causing them all to disappear instantly. I also added the ability to long-press the upvote and downvote buttons, which would bring up a dialog with a slider allowing the user to upvote or downvote any post up to 500 times, sending it to the top of the list (or downvoting it to oblivion). Finally, I rebuilt the app with my added .class file patch.

Needless to say, this was a source of great fun and mischief for my friends and I. The most entertaining event was attending a hackathon at our (much larger) rival university's campus, where we nuked every local post a few times a day for 72 hours and voted our own posts up 500 times.

It was fun to mess with for a few months or so. We never distributed the patched app, for obvious reasons, and we never used it for anything truly malicious beyond being a mild local nuisance denial-of-service.

Re: Ask HN: What's your proudest hack?

#132
I was a junior freelancer. Barely knew what i was doing with web development. Was given SSH credentials to a server hosting a WordPress site. Had to change a bunch of lines in a bunch of files. Hundreds of them.

Took two hours to begin learning about a sed command.

Spent a half hour testing it locally on the MacOS terminal. I didn't wanna screw it up. Made several mistakes on local. But eventually I think I got the hang of it.

Now it was time to run it on live. I'm nervous again even though I just spent a while testing. Ran the sed command to search and replace text.

Worked like a charm.

Pretty much a trial by fire moment. No mentor to show me how. Just me and my ability to read to documentation and apply it. That's all I had at my disposal.

I know server admins do this shit like in a couple of minutes but at the time this was me venturing into servers and making a change on live site and reading a man page and blog tutorial. So for me it was a big deal. It taught me not to fear to learn the shell.

I've done way harder things since but I still remember this moment of almost a decade ago.

Re: Ask HN: What's your proudest hack?

#133

After reading an inspiring story in the mid 90s about someone that collected rejection letters for jobs they weren't qualified for (CEO of a national rail carrier etc), I turned to a life built on a similar idea. I applied for jobs I thought I could do, using mostly made-up resume information. If I was scheduled for an interview I would study like mad every waking hour until the interview. My career was absurdly succ…

That's insane, what are some of the jobs that you conned your way into?

Re: Ask HN: What's your proudest hack?

#135
post #123

I have a theory that some companies have a rage meter on customers on hold. I find that if I yell expletives at the hold music before getting connected to a rep initially, I get connected faster. Usually there’s a brief ring before getting connected to compose yourself :)

I had opposite experience with a health insurance company where it hung up on me. They have so many angry callers that they filter them out when the voice menu fails instead of giving you a person.

My experience with SuddenLink was also similar. Their voice driven menu was so much accent sensitive that my English with Indian Accent was not getting recognized most of the time, & then system was simply disconnected after saying, please try again.

Re: Ask HN: What's your proudest hack?

#136
In 1978 Linotron 606 phototypesetters had an intermittent problem that sometimes a small section of text would appear as if the letters had been chopped up in a blender. Nobody could figure it out for about 6 months. Turned out to be a bug in the routine that handled disk errors when the character vector data was being downloaded from disk. The character buffer that contained the character vectors had a blank scan line used for white on black reverse video background placed at the beginning of the buffer. The routine that handled disk errors just refilled the buffer from the beginning without the blank and so all the addresses of the start of each of the characters was off. My favorite actual hack came a couple of years later at Bell Labs Naperville where I made the curses library terminal version of Space Invaders play PacMan instead.

Re: Ask HN: What's your proudest hack?

#137

After reading an inspiring story in the mid 90s about someone that collected rejection letters for jobs they weren't qualified for (CEO of a national rail carrier etc), I turned to a life built on a similar idea. I applied for jobs I thought I could do, using mostly made-up resume information. If I was scheduled for an interview I would study like mad every waking hour until the interview. My career was absurdly succ…

Did this ever backfire when it came time for the interview or was the cramming always sufficient for you to pass as qualified?

Re: Ask HN: What's your proudest hack?

#138
post #117

I was located in Sydney Australia, trying to fix a literally showstopper bug in the signal processing of the bank of Land Mobile Radio base stations that were being used to coordinate the stage management for the Opening Ceremony of the London Olympics. Less than 24 hours to go before the final dress rehearsal, and the production company was preparing to spend megabucks to pull all the radios out and replace them wit…

Noyce! This is 21st century if I ever saw it, and I tip my hat to thee.

Re: Ask HN: What's your proudest hack?

#139
A bit younger here, but back in elementary school we got chromebooks when chromebooks were barely becoming a thing (replacing the rack of netbooks that was normally wheeled into our classroom).

Two things I did that were very fun:

1. School blocked a lot of popular flash game websites. My friends and I downloaded a bunch of flash games and threw together a website that we hosted on our chromebooks using '200 OK - Webserver for Chrome' or something. It was just a bunch of janky HTML and CSS, but we got it working. The school didn't block it because it was on the local network. We handed out slips of paper to our friends with the local IP address of my laptop. At one point someone made a Google Site with a link to the local address. It was a hack, but playing RUN 2 on your chromebook during social studies in 5th grade... man, those were the days.

2. Around that time one of my friends stumbled across crouton, a way to run Linux on a chromebook in parallel with ChromeOS. After a lot of trial and error (didn't know what bash was at the time), we were able to get Ubuntu installed. I remember downloading Blender and trying to do a fluid sim, which was super slow. I was able to render the first 20 frames of a domino and fluid animation using Cycles, which frames I still have sitting on my hard-drive somewhere to this day.

Some of my first hacks, older me is surprised how much younger me was able to get done given how much younger me didn't know.

Post reply on HN