Details
-
AboutI code every now and then.... Planning to rule the web someday with my completely average skills!
-
SkillsJs, PHP, Angular 2
-
LocationZambia
-
Github
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
-
When error messages have self-awareness and fix problems by themselve the world will burn but I have less issues to care about.
-
So here I am in iceland watching Aurora with my gf, and suddenly I realized somewhere in my code at work I freaking forgot to add 1 to the denominator of a fraction. Shitty shit shit, gonna go back to work finding NaNs everywhere. Fuck fuck fuck10
-
When someone tells you they thought their iPhone 6 was water proof because they installed iOS 10. Facepalm 😖👋5
-
So, Bing has an in-search code runner.
//Just leaving this here
//GoogleDoesnt
//YesGoogleIsBetter 70%OfTheTimes
//IHatePython8 -
Autocomplete in editors is like that annoying friend that keeps interrupt();ing every singletonInstance():le thing you try{}catch(Exception e)} to say, delay(1000);ing you COUNT(*)ntless of times.3
-
Last night I had a dream about a bug and I woke up with a solution. When I got to the office and tried it out it worked...I have heard about this happening before but this is the first time I have experienced it!11
-
You have done a great job!! Thanks for delivering the project on time. It is exactly what I asked for. I will ask for no changes and I will pay you right away.
Said no client ever.3 -
I made a ridicously hilarious hack recently. My refrigerator it's broken, it has a huge leak of water, my hack was to let the water flow in a plastic box and make a circuit with two water level sensors, a relay and a PIC16F628A to activate a pump that sucks water away through a tube that I wedged intlside the gasket of the washbasin. This gave me the time to buy a newer and better one.15
-
One day my mum got a call from a man claiming to be from Microsoft. He said there is something wrong with the computer and tried to make her install TeamViewer to "fix" it, but my mum didn't manage to install it for several hours until he gave up.
Sometimes knowing even less can save your PC.7 -
First time poster here. Please be nice :)
My biggest workaround is one that's being currently deployed to 40 truck drivers (trucking company here), preventing printers being out of usage while on the road. We also have to use HP ePrint to wirelessly print documents, but that's another story for another time I guess :)
CEO asked us to install wifi printers in our 40-ish trucks which has wifi on board. However he's always picking one of the cheapest options possible, so we got consumer grade printers (Laserjet 1002w). Those printers often disconnects without getting back on the truck wifi network EVER. I have to get physically in the truck, wire the printer via USB onto my laptop and reconfigure Wifi on it with the HP Windows tool. This means lots of printer downtime, which always happens when the drivers are three timezones away from our office
Then I thought: "What if I could sniff what HP sends via USB while I (re)configure the printer, and replay whats being sent later? Our trucks all have an Android tablet with a USB type-A connector with host capability, so I could write a small app that replays the config when plugged in by the user.
Three days of hacking around later, I have a working app. By chance, HP printers (or at least those models we have) uses HTTP POST via USB, so I could easily replay the request.
Edit: the end result is that truck drivers just plug the printer to their tablet, press "reconfigure" in a home made Android app, printer is reconnected to the truck and they're good to go. They don't have access to the network nor know enough to debug themselves anyways14 -
Boss: "it's not the same font"
Me: "yes, it is"
Boss: "don't argue with me. It's a different font"
Me: "ok it's a different font" (it's not)
Boss: "change it please"
15 minutes later and I've done nothing at all to it. Boss comes back.
Boss: "see? I knew it was a different font. This looks perfect now. Why were you lying to me before? I don't like you arguing with me"11 -
Did this on my first programming exam.
int index = 0
int value = 0
try {
while true {
value += array[index]
index++
}
} catch NullPointerException {
System.out.print("Sum: " + value)
}
The task was to add together all numbers in an array.
I somehow aced the exam, but got called in to teachers office this is not the way to use exceptions.7