Details
-
About- I can solve the rubik's cube - Fountain Pen Enthusiast - Love Traveling - Low levels of OCD
-
SkillsC++
Joined devRant on 6/14/2018
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
-
TOP 10 PROGRAMMING BEST PRACTICES
#1 Start numbering from 0.
#10 Sort elements in lexicographic order for readability.
#2 Use consistent indentation.
#3 use Consistent Casing.
#4.000000000000001 Use floating-point arithmetic only where necessary.
#5 Not avoiding double negations is not smart.
#6 Not recommended is Yoda style.
#7 See rule #7.
#8 Avoid deadlocks.
#9 ISO-8859 is passé - Use UTF-8 if you ▯ Unicode.
#A Prefer base 10 for human-readable messages.
#10 See rule #7.
#10 Don't repeat yourself.12 -
We were talking about harddrives at work when someone was wondering if filling them with helium would make them spin faster... Then imagination took over!
"But helium balloons float, right... So would helium filled hard drives float..? Probably not due to weight but imagine dropping a hard drive and seeing it float towards the ceiling.."
"John, the delivery guy has a box with new harddrives downstairs, could you go get them?
*shouts* John did you get them? Just don't open the box outside!! No, no, NOOO DON'T OPEN IT OUTSIDE! JOHN, THE HARDDRIVES, BE CAREFUL, DON'T OPEN THE BOX OUTSI.....
*harddrives floating by the window into the air*
NOO, JOHN, WHAT DID YOU DO?!
"*walks into the office, harddrives floating against the ceiling* goddammit John, not again"
"John, why are you putting one kilometer long cables on those harddrives?
*John let's them float into the air towards the clouds*
We offer cloud storage!"
(We have a usual office building ceiling)
"John, I need a 1tb harddrive, where are those?
Uhm... C12!
*takes a ladder and walks towards c12 to pluck one from the ceiling*"
😆7 -
Dear Microsoft,
Thanks for not completely fucking up Github. At least you didn't integrate Office365, allow only Azure deployments, or force downloading repos through OneDrive or something.
But like most developers, I don't deal well with changes to familiar interfaces.
So please.... STOP FUCKING TWEAKING THE BUTTON PLACEMENTS AND TEXTS ALL OVER THE WEBSITE.
(or at least send me a bottle of cognac and a box of chocolates before every UI experiment, so I can deal with it emotionally. I'm a very sensitive boy, you know).21 -
In an effort to deal with the number of “top priority” tickets, management has come up with a new priority level, “urgent”, to help differentiate between tickets that are “top priority” and tickets that are actually “top priority”.
So as you can guess all tickets are now codified as “urgent”.
I’ve suggested management downgrade some tickets back to merely “top priority” as we’re clearly right back where we started with it being difficult to determine which order to do tickets in.
They’ve ignored my request as the bletherings of a clearly unenlightened peon, and have instead came up with a new priority, “mission critical” which will be reserved for the most hallowed of emerg— oh no wait everything is now “mission critical” who would have guessed?
So “Top priority” is the now lowest priority a ticket can have…Naturally.16 -
!dev
Just for fun, during meetings I look up “toxic workplace checklist” (and variants) and then score my employer.
So far they’ve scored 80% and higher on all lists except one.
Now that I’ve decided to leave, none of it bothers me anymore. It’s so freeing.8 -
People who buy firecrackers can be best crypto investers because they dont fear their money turning to zero in an instant2
-
Me at an interview...
interviewer: can u solve a 3-sum problem
me: sir, a threesome is not a problem
interviewer: not threesome, 3-sum
me: OOOOO! that makes sense6 -
Haven't used dR for long so Idk how many people have already ranted about this...but here goes nothing.
ANDROID 10 NAVIGATIONS
Fucking irritating piece of shit !!!
Ughhh!
I can get understand the swipey swipe for back etc. But the "swipe up + hold " for recent apps just makes me cringe !!!!!
Ok, Some how you manage to open the recent apps by precisely fingering your phone.
You gotta go back to home screen from recents ??
Open a recent app then swipe up for home.
Two fucking gestures to go back to home screen !
Or click the close all apps button for home screen.
This is non sense.
Pls enlighten me if I am missing something.
I want the two button navigation back 😭13 -
Back here after ages... V2.0
So this happened last year, but I feel it's worth sharing :P
I was at an internal hackathon-sorta event at the place was interning at and teamed up with a bunch of co-interns almost randomly.
While working we had some issues with the wifi so one of the guys suggested we use the mobile hotspot, I offered mine.
My hotspot ID was "cee"
The guy : Cee ? Wait are you ceee from devrant ??
Loss of anonymity, but it was pretty cool XD
What a small world :p38 -
Thoughts on "questions".
As a junior Dev, I understand asking too many simple questions is irritating and usually not welcome, but, is not asking any questions at all considered a sign of disinterest or "zoning out" or lack of curiosity etc etc ?
Do people think that much ??16 -
When is prime videos going to fix it's search engine....
Not a single one of the 22 results found for "Harry Potter 5th part" was even close to Harry Potter :)13 -
Let's talk a bit about CA-based SSH and TOFU, because this is really why I hate the guts out of how SSH works by default (TOFU) and why I'm amazed that so few people even know about certificate-based SSH.
So for a while now I've been ogling CA-based SSH to solve the issues with key distribution and replacement. Because SSH does 2-way verification, this is relevant to both the host key (which changes on e.g. reinstallation) and user keys (ever replaced one? Yeah that's the problem).
So in my own network I've signed all my devices' host keys a few days ago (user keys will come later). And it works great! Except... Because I wanted to "do it right straight away" I signed only the ED25519 keys on each host, because IMO that's what all the keys should be using. My user keys use it, and among others the host keys use it too. But not by default, which brings me back to this error message.
If you look closely you'd find that the host key did not actually change. That host hasn't been replaced. What has been replaced however is the key this client got initially (i.e. TOFU at work) and the key it's being presented now. The key it's comparing against is ECDSA, which is one of the host key types you'd find in /etc/ssh. But RSA is the default for user keys so God knows why that one is being served... Anyway, the SSH servers apparently prefer signed keys, so what is being served now is an ED25519 key. And TOFU breaks and generates this atrocity of a warning.
This is peak TOFU at its worst really, and with the CA now replacing it I can't help but think that this is TOFU's last scream into the void, a climax of how terrible it is. Use CA's everyone, it's so much better than this default dumpster fire doing its thing.
PS: yes I know how to solve it. Remove .ssh/known_hosts and put the CA as a known host there instead. This is just to illustrate a point.
Also if you're interested in learning about CA-based SSH, check out https://ibug.io/blog/2019/... and https://dmuth.org/ssh-at-scale-cas-... - these really helped me out when I started deploying the CA-based authentication model.19 -
My mom died when I was 7, after which my dad bought me a Commodore 64 so I had something to lose myself in during the mourning process.
I learned everything about that system, from my first GOTO statement to sprite buffers, to soldering my own EPROM cartridges. My dad didn't deal with the loss so well, and became a missing person 5 years later when I was 12.
I got into foster care with a bunch of strict religious cultists who wouldn't allow electronics in the house.
So I ran away at 14, sub-rented a closet in a student apartment using my orphan benefits and bought a secondhand IBM computer. I spent about 16 hours a day learning about BSD and Linux, C, C++, Fortran, ADA, Haskell, Livescript and even more awful things like Visual Basic, ASP, Windows NT, and Active Directory.
I faked my ID (back then it was just a laminated sheet of paper), and got a job at 15-pretending-to-be-17 at one of the first ISPs in my country. I wrote the firmware and admin panel for their router, full of shitty CGI-bin ASP code and vulnerabilities.
That somehow got me into a job at Microsoft, building the MS Office language pack for my country, and as an official "conflict resolver" for their shitty version control system. Yes, they had fulltime people employed just to resolve VCS conflicts.
After that I worked at Arianespace (X-ray NDT, visualizing/tagging dicom scans, image recognition of faulty propellant tank welds), and after that I switched to biotech, first phytogenetics, then immunology, then pharmacokynetics.
In between I have grown & synthesized and sold large quantities of recreational drugs, taken care of some big felines, got a pilot license, taught IT at an elementary school, renovated a house, and procreated.
A lot of it was to prove myself to the world -- prove that a nearly-broke-orphan-high-school-dropout could succeed at life.
But hey, now I work for a "startup", so I guess I failed after all.23 -
Since Microsoft is racist and is trying to remove the "master" term on GitHub to "fix the World" I hope they won't forget about the "master" volume in the audio settings of Windows.12
-
A web developer has started working on my windows.
How should I communicate with it that I don't want a website outside my windows? Will this be considered a covid layoff if I just throw it off the said window? 🤔
P. S. I'm talking about a spider, icymi.12 -
java --version
FATAL: Unknown parameter
java -v
FATAL: Unknown parameter
*googles get java version*
java -version
openjdk version "1.8.0_252"
FUCK YOU20 -
On Slack
Me: I can't access the VPN
Network team: You have to create a user incident
My browser: 403
Network team: Yeah you need to be on the VPN to access the incident system
Me: 😐18