Details
-
AboutCS/Mathematics Undergraduate
-
SkillsJava, Python
Joined devRant on 9/18/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
The three most dangerous things in the world are a programmer with a soldering iron, a hardware engineer with a software patch, and a user with an idea 😐6
-
*Now that's what I call a Hacker*
MOTHER OF ALL AUTOMATIONS
This seems a long post. but you will definitely +1 the post after reading this.
xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that.
xxx: So we're sitting here, looking through his, uhm, "legacy"
xxx: You're gonna love this
xxx: smack-my-bitch-up.sh - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login.
xxx: kumar-asshole.sh - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time".
xxx: hangover.sh - another cron-job that is set to specific dates. Sends automated emails like "not feeling well/gonna work from home" etc. Adds a random "reason" from another predefined array of strings. Fires if there are no interactive sessions on the server at 8:45am.
xxx: (and the oscar goes to) fuckingcoffee.sh - this one waits exactly 17 seconds (!), then opens an SSH session to our coffee-machine (we had no frikin idea the coffee machine is on the network, runs linux and has SSHD up and running) and sends some weird gibberish to it. Looks binary. Turns out this thing starts brewing a mid-sized half-caf latte and waits another 24 (!) seconds before pouring it into a cup. The timing is exactly how long it takes to walk to the machine from the dudes desk.
xxx: holy sh*t I'm keeping those
Credit: http://bit.ly/1jcTuTT
The bash scripts weren't bogus, you can find his scripts on the this github URL:
https://github.com/narkoz/...53 -
Website design philosophies:
Apple: "...and a really big picture there, and a really big picture there, and a really big picture there, and..."
Microsoft: "border-radius:0 !important;"
Google: "EVERYTHING MOVES!!! And most websites get material design. Most."
Amazon: "We're slowly moving away from 2009"
Wix: "How can we further increase load times?"
Literally any download site: "Click here! No, click here! Nononono!! Click here!!..."
Facebook: "We can't change anything because our main age demographic is around 55"
University websites: "That information isn't hard enough to find yet. Decrease the search accuracy and increase broken links."32 -
- Free app:
"5 stars - OMG this app is awesome!!!"
- Add new feature with In-app purchase:
"1 star - App sucks balls. Why we must pay? Make free and I rate 5 stars"
I call them The Rating Terrorists.8 -
//Long rant
[Boss man]: Hey, we need you to build us a web app.
[Me]: Okay, what do you need it to do?
[Boss man]: We need staff to be able to login from anywhere, create new appointments, check room availability, display live times for the rooms, schedule future appointments, record all the data as stats and export the stats to (email address).
[Me]: Okay, sounds useful, anything else?
[Boss man]: we also need it to send all relevant data to a calendar where certain staff will be notified by email of events.
[Me]: Okay... I'll get right on starting this.
[Boss man]: So you can have it done by the end of the day? (4 hours from this time)
[Me]: *Internal screaming* *WHAT THE FUCK* Uhm, no, I don't think that is possible to complete in a four hour period by myself.
[Boss man]: Okay, well by tomorrow then, I'm leaving for the day though, have a good one.
[Me]....
//End long rant12 -
What devrant taught me:
Everyone hates java
Everyone hates php
Everyone hates spaces
Everyone hates tabs
Everyone hates vim
Everyone hates windows
Everyone hates linux
Everyone hates clients
Everyone hates PMs
Everyone hates every language they're not working with
Everyone loves devrant 😊36 -
"If it wasn't for this glaring error, this other guy's method would be perfect, not this simple fucking thing you gave me that I can't get to work because binary operations scare me"
I might just stop helping this person. -
Really devRant? Really? The blondie is the only one without anything in her mind?!
A little too sexist, isn't it?! Triggered!
P.S. please leave it this way!17 -
Dealing with a client that won't pay:
Add opacity to the body tag and increase it every day until the site completely fades away...17 -
Every semester at my university I must grade my teachers with a poll of about 30 questions and 5 choices each with 1 question beign a negative one.
So I looked at the HTML and made a small JS script to fill out the poll with semi-random choices and adding the exception for that one particular question.7 -
For robotics I decided to write a program that would automatically tune a PID loop (a loop with three magic constants that tells you how much power to give the motors).
Being a high school student who hasn't been taught anything about the theory of PID loops or the right way to tune them, I had no clue what I was doing. So instead of actually learning the calculus to do it, I just made an evolutionary tuner that keeps guessing slight variations of the last-best three constants.
Basically, you press start and the robot spins in circles until you come back in 15 minutes.3