Details
Joined devRant on 10/2/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
-
I thought noise cancelling headphones were a universal sign and courteous way of saying "I'm busy, fuck off" but apparently that doesn't seem to translate to my team. Every time I put these things on people start trying to talk over/through them.
How else do I let my team know to fuck off?14 -
3 years, part time, $0.
I used to volunteer my time to an old text based rpg, handling code changes, sysadmin maintenance and the likes - back when those were a thing in the mid 2000's and money wasn't my issue in life - free for them, experience for me - win win!
Was something to get my hands dirty back in the day and contribute to an active community, but since then that place has shut down and been disbanded.24 -
A few weeks ago, I was kept up until the wee hours of the morning trying to figure out how in the hell the Monty Hall problem works. After finally getting it (I'm slow, okay?), I decided to write a program to run simulations of it.
First incarnation of program took user input. User enters what door they choose (1, 2, or 3), then is told what door Monty opens, then given the decision of staying with the door they originally chose or switching, then informed how that worked out for them.
Second incarnation of program ran on a loop. At the start of each loop, a random door is picked for the user guess. Then the door Monty opens is calculated from the remaining doors (excludes user guess and prize door). Then user switches doors (choosing the door that was not their original door or the door Monty opened). At the end of each loop, if the door they switched to was the prize door, it would increment a win counter, else increment a loss counter. After running the loop 1000000000 times, it printed to console `You always switched doors, resulting in ${wins} wins and ${losses} losses`.
THEN I decided to write a variation to run a while loop on the outside of the loop to increase the number of total doors until the point where the decision to switch doors hurt more often than it helped. At this point, I decided to incorporate file I/O and write to a file rather than a console. And that was neat!
And then I decided it would be cool to go back to the three door variation, printing on each loop the original door, the door Monty opened, the door that was switched too, the result of the switch (win or lose) and what the prize door was.
But for the life of me, I couldn't seem to get the file to write properly. It would, like, always crash my terminal. I tried open + append, I tried append. I tried createWriteStream. Still just failure.
And then I changed it to an appendFileSync and happened to look at one of the files that I was writing to. "Huh, over a gig seems a lot."
"Well, how much are you writing each loop? Did you forget to keep in mind how many bytes that would be?"
TLDR: If you're going to write a program that's going to write data to a file on a loop, you might want to figure out how much it's going to end up writing .... before trying to run it. And running a loop 1000000000 times may be a little excessive.
*face palm*2 -
Just found out you can take Screenshots of a webpage right from the firefox console... neat! You can even select specific elements to screenshot.
Just throw :screenshot into the console - Ff v62 (--selector [css-selector], --fullpage, and some other params you can look up)
Have a good Monday :)3 -
Testing a raspberry pi 4 as a computer driving our 4k dashboards' screen. Temperatures are constantly 80-90C.
Me: STEP ASIDE! MAKE WAY FOR A HOTFIX!
Rpi: aaahhh, 42C -- now we're talkin!8 -
Happened when I was young, and used uTorrent. Dad called some technicians to find out why Windows was running slow. They came and after fiddling about for 20 mins, declared that uTorrent was the problem.
And then deleted the desktop icon.
:()3 -
6 months ago I sold everything, quit my job, gave up my apartment and left the country with my 11kg backpack. I booked a one way ticket to South America. I wanted to travel, get lost but also finish up some personal projects and do a little tech books challenge I came up with. I learnt so much over the past half a year, it's crazy.
Not looking back. Projects paid off and it turns out that my dream company actually found me themselves without me even applying... and so still from South America I'm in final rounds of the interview! 🤗
All my worries about a gap in CV, no employment along with other problems I thought I was gonna have... It's all BS. So if anyone here is waiting for a sign. Well, this is it now. Go!22 -
Finally finished my AMD Watercooled build 🤤
Now my code can run cooler 😂
CPU - Ryzen 3900X - stock
RAM - Corsair Vengeance 32 GB 3600 Mhz
Mobo - Asus ROG Crosshair Formula VIII
GPU - MSI GTX 1080ti 11GB GDDR520 -
Few weeks ago one guy has posted here something like: "Just started work at PornHub".
And now I see this:
(coincidence?..)17 -
Some days I just want to shoot myself.
I get why... someone might do this, but sweet mother of god!rant kill it with fire js i must have done bad in a previous life cluster fuck jquery alternative syntax php17 -
How many times I went to sleep frustrated with a problem I couldn't solve and woke up the other day with the answer in mind :P
-
And pointers in java be like: The greatest trick the Devil ever pulled was convincing the world he didn't exist.5