Details
-
AboutUndergrad student of Engineering trying to understand how this universe works.
-
SkillsC/C++, Python, Embedded Sys
-
LocationChandigarh
-
Github
Joined devRant on 10/13/2019
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
-
It's my 2nd week into my new job. I asked people what they think they are doing.
The summary:
Senior dev: we fix bugs
Junior dev: we write code
Intern: we create the future
It depends how you look at it. They are all called software engineer or developer.9 -
Heck yes!
I implement a stack trace in my embedded systems!
Whenever a device crashes, it makes a stack dump in an unused part of ram.
After it has rebooted and is connected to the server again, it uploads the stack dump.
The server then opens the correct firmware elf file, walks the stack and associates the debug info from the elf.
The result? A beautiful stack trace with file names, function names and line numbers.
No more guessing where random crashes come from.12 -
'rona virus working from home thug life.
MS Teams, several people including my PM, my company's sales lead, and the top brass from the client.
Sharing my center monitor with some technical documents etc.
A wild messenger message appears from my wife with the contents, "I'm gonna come home for lunch and fuck you sideways."
I'd put the amount of time it took me to mouse up there and flick that thing off the screen at about 900 miliseconds.
How fucked (in addition to sideways) am I?
Tl;dr ~ Fucked my wife. Fucked my life.11 -
Had to put down my dog today. I've felt real shitty before but this is my closest experience of loss I've had.
I miss her so much you guys. I'm sorry for bringing it down. You guys all feel like a real community so help me feel my feels and not just push it down.12 -
Marketing: it's not working...
Me: *fixes bug and pushes changes in less than 5 mins*
Me: Well it's working for me
Marketing: strange... it wasn't working 5 minutes ago...
I love their faces of confusion haha11 -
Someone on a C++ learning and help discord wanted to know why the following was causing issues.
char * get_some_data() {
char buffer[1000];
init_buffer(&buffer[0]);
return &buffer[0];
}
I told them they were returning a pointer to a stack allocated memory region. They were confused, didn't know what I was talking about.
I pointed them to two pretty decently written and succinct articles, the first about stack vs. heap, and the second describing the theory of ownership and lifetimes. I instructed to give them a read, and to try to understand them as best as possible, and to ping me with any questions. Then I promised to explain their exact issue.
Silence for maybe five minutes. They disregard the articles, post other code saying "maybe it's because of this...". I quickly pointed them back at their original code (the above) and said this is 100% an issue you're facing. "Have you read the articles?"
"Nope" they said, "I just skimmed through them, can you tell me what's wrong with my code?"
Someone else chimed in and said "you need to just use malloc()." In a C++ room, no less.
I said "@OtherGuy please don't blindly instruct people to allocate memory on the heap if they do not understand what the heap is. They need to understand the concepts and the problems before learning how C++ approaches the solution."
I was quickly PM'd by one of the server's mods and told that I was being unhelpful and that I needed to reconsider my tone.
Fuck this industry. I'm getting so sick of it.26 -
Me:
* I wanna make a website
* I'm good at backend
* I suck at frontend
Friend:
* I wanna make a website
* I suck at backend
* I'm good at frontend
Initial though: Match made in heaven
Now: FFS Wordpress is not the kind of frontend I had in mind.
git commit suicide.txt -m "It was a nice thought before it was put into action"4 -
Christmas lights were blinking randomly IN SECTIONS without any sort of "control brick", just with a plain wall plug and TWO wires coming out of it.
In this house we obey the laws of physics, I immediately called magic on this and started digging. I found out that was like five chains of lights wired in parallel, and every chain contained one special lamp that had a thin plate of some thermal-sensitive material inside. It heats up which makes it go straight, thus breaking its chain until it cools down enough to curl again and make the contacts touch.
Brilliant and really cheap way of making randomly blinking Christmas lights without any kind of controller, with just two wires and some physics. That's what I call "nocode".11 -
some dickweed changed his MBR to GPT without reading anything about it cus someone (falsely) claimed that GPT was faster.
dickweed lost his data and is whining that he doesn't want to spend even 50 euros to get his data back (but he does want it back)...5 -
To my ex manager
you left to berlin, and left me to rot
my new lead sucks, i kid you not
it was ok if I slacked off, You used to be chill
But my new lead is uptight, he's on my list to kill
I wanna run errands in work hours, is that so bad?
was doing so for years, now i lost what i had
I cant drive in peace, coz i know he'd call
so i had to cancel plans to go to the mall
its like 10 to 6 is now constant work
I hate my new lead, he is such a jerk17 -
Fucking bruteforce man. Was supposed to go sleep when got few messages from my gameserver players that their accounts have been hacked.
Checked their logs, all of their accounts have been accessed from Russia. Told them to change their passwords and they told me their previous passwords which were easy af to guess.
Digged deeper and found hundreds of thousands failed logins in the last few hours and all of them from different ips.
Since I cant modify gamefiles on client side, the solution for now was to disable in-game registration and force player registration through the website form with captcha and also where each players login name gets appended with a random suffix chosen by player from a random list..
Fuck you bruteforce scriptkiddies, good luck guessing accounts now. At least I can sleep now.18 -
There's no such thing as an expert programmer. With time you just get different kinda errors. As long as you're not getting same error, you're making progress.1
-
So Windows XP source allegedly got leaked... And a bunch of other MS's OS (and other) files
https://limetorrents.info/Microsoft...
```
ms_dos_3_30_oem_adaptation_kit_source_code.7z - 591.99 KB
ms_dos_6_0_source_code.7z - 10.7 MB
nt5src.7z - 2.37 GB
torrent description.txt - 6.63 KB
windows_10_shared_source_kit.7z - 74.76 MB
windows_2000_source_code.7z - 122.35 MB
windows_ce_3_platform_builder_source_code.7z - 638.69 KB
windows_ce_4_2_081231.7z - 3.44 MB
windows_ce_5_121231.7z - 4.92 MB
windows_embedded_7_2014M12.7z - 12.9 MB
windows_embedded_ce_6_r3_170331.7z - 8.11 MB
windows_embedded_compact_2013_2015M09.7z - 93.17 MB
windows_nt_3_5_source_code.7z - 101.76 MB
windows_nt_4_source_code.7z - 106.22 MB
windows_source_bg.png - 134.83 KB
windows_source_bg.svg - 55.03 KB
```17 -
Dafuq... My new position label is Senior Software Developer.
I do not identify myself as a senior even in my wet dreams.
I'm confused.19 -
Some managers think if one woman can deliver a baby in 9 months, then two can deliver a baby in 4 and a half...1
-
Something that I'm utterly ashamed of.
Had to add text message and call communication functionality in one of the products.
Boss shrunk the deadline to two days ETA.
Didn't know jackshit about twilio.
Meeting with client:
Client - So the communication thing is done right?
Me - Yyeahhh
Client - Let's try it then. *Calls himself*
Me - *Calls the API directly from my phone*
Client got out happy. Nobody knows what actually happened there. I didn't even talk to my colleagues about this. Boss gave me bonus to pull of the impossible. I added the feature after a week of the incident.8 -
Waaaay too many but let's go with this one for now.
At my previous job there was a web application which was generating about 1gb of log data a second. Server was full and the 'fullstack engineers' we called had zero clue about backend stuff and couldn't fix it.
Me and another engineer worked our asses off to figure this out but eventually the logging stopped and it went back to normal.
Great, right?
For that moment. I was the on-call server engineer and at like 3am I got called awake because this shit was happening again.
Sleep drunk with my phone I ssh'd into the server, not sure about what to do at first but then suddenly: let's chattr the goddamn log file...
$ chattr +i /var/log/logfile
Bam, worked, done, back to sleep.
(this comment + param marks the file in a way that it can only be read until the mark is removed, so you can't write to it or move it or remove it or whatever)13