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
Search - "cn"
-
Anyone else used Stack Overflow for many years without ever asking or answering a single question?21
-
Will the bug in my code please stand up?
I repeat
Will the bug in my code please stand up?
I think we have a problem here.
*music intensifies*11 -
!rant
I was in a hostel in my high school days.. I was studying commerce back then. Hostel days were the first time I ever used Wi-Fi. But it sucked big time. I'm barely got 5-10Kbps. It was mainly due to overcrowding and download accelerators.
So, I decided to do something about it. After doing some research, I discovered NetCut. And it did help me for my purposes to some extent. But it wasn't enough. I soon discovered that my floor shared the bandwidth with another floor in the hostel, and the only way I could get the 1Mbps was to go to that floor and use NetCut. That was riskier and I was lazy enough to convince myself look for a better solution rather than go to that floor every time I wanted to download something.
My hostel used Netgear's routers back then. I decided to find some way to get into those. I tried the default "admin" and "password", but my hostel's network admin knew better than that. I didn't give up. After searching all night (literally) about how to get into that router, I stumbled upon a blog that gave a brief info about "telnetenable" utility which could be used to access the router from command line. At that time, I knew nothing about telnet or command line. In the beginning I just couldn't get it to work. Then I figured I had to enable telnet from Windows settings. I did that and got a step further. I was now able to get into the router's shell by using default superuser login. But I didn’t know how to get the web access credentials from there. After googling some and a bit of trial and error, I got comfortable using cd, ls and cat commands. I hoped that some file in the router would have the web access credentials stored in cleartext. I spent the next hour just using cat to read every file. Luckily, I stumbled upon NVRAM which is used to store all config details of router. I went through all the output from cat (it was a lot of output) and discovered http_user and http_passwd. I tried that in the web interface and when it worked, my happiness knew no bounds. I literally ran across the floor screaming and shouting.
I knew nothing about hiding my tracks and soon my hostel’s admin found out I was tampering with the router's settings. But I was more than happy to share my discovery with him.
This experience planted a seed inside me and I went on to become the admin next year and eventually switch careers.
So that’s the story of how I met bash.
Thanks for reading!10 -
My sister in law got me this guy for Christmas after I told her about devrant!
She found it in a rubber duck shop in Amsterdam.
Best sister in law!11 -
. _ _ _ /\/|
/ \ _
| [ o]-[ o] l l
\ ¬ / l l
////////// l l
/ \ \ / l_l
/ \ \ _ _ _ _ l
/ \ _ _|_ |- -| \ /\
| ===== |_ |
D E V E L O P E R
A T
N I G H T4 -
Well.. I'm a front end developer and this quote is my favourite.
"A user interface is like a joke. If you have to explain it, it's not that good. "4 -
I now know another person's password without even wanting to.
He was sitting in the row in front of me, logging into our course page and then *brrrrraaaaapppp* - ran his index finger along the top number row and hit enter.
1234567890
I don't even know what to say.13 -
Yo.
His palms are sweaty
Knees weak arms are heavy
Bugs littering his code already
Cold spaghetti 🍝
He’s nervous but on the surface he looks calm and ready to git push
(Hit a blank with thinking of code-related lyrics, anyone got ideas?)16 -
My school stores everyone's username and passwords (including admins) in plain text on a Windows 2007 server that they remote desktop into.8
-
A common scenario strikes again today:
- Blocked on a problem at the end of the day
- Tell my wife I'm headed home
- Inspiration strikes
- time flies by coding in the zone
- realize I'm super late
- run out the door like a crazy person1 -
So many developer that does not know how to generate a simple .csr file. Here you go:
$DOMAIN=www.yourdomain.com
$STATE=State
$CITY=The city
$COMPANY=Company Name Gmbh
openssl req -utf8 -nameopt multiline,utf8 -new -newkey rsa:2048 -nodes -sha256 -out $DOMAIN.csr -keyout $DOMAIN.key -subj "/C=Your CountryCode/ST=$STATE/L=$CITY/O=${ORG:-$COMPANY}/OU=${ORG:-IT}/CN=$DOMAIN"11 -
If I changed girlfriends as often as I changed JavaScript libraries, I'd still be looking for a girlfriend.
Cuz I try and avoid using JavaScript.7 -
@dfox should split devrant into categories.
-rants
-advice/help
-weekly rants (already there)
-dev memes
Then people can just read rants or whatever they want without other things getting in the way.
Down vote can also be used if something is in the wrong category9 -
The number of tabs opened in the browser is directly proportional to the completely of the problem! :p9
-
What is this ?
U call this wireless security??
Anyway what is the best way of securing hotspots in the airports , hotels , ... ?10 -
Night before flying internationally includes the following checklist:
- check VPN works, can access frontend sites and hit the backend
- git push4 -
This morning I kept falling back asleep after the alarm went off, drifting in and out of a dream about programming.
My wife finally said "no more sleeping".
Still mostly sleep, I replied very confidently "you can't sleep in a sandbox!".
I was dreaming I was in a code sandbox. Obviously sleeping is not allowed.
Jeez, my head has been really full of programming since this conference. (One of the talks was on codesandbox). -
My wife is complaining that am spending too much time on devRant. I just told her, am coming here only when windows is updating :p ;)1
-
Just tested my GPU code vs my non-GPU code.
Its a simple game of life implementation. My test is on a 80 x 40 grid running for 100,000 cycles.
The normal code took 117 seconds.
The CUDA code took 2 seconds.
Holy fuck this is terrifying.3 -
Successful startup message on my friends discord bot:
Yo
His palms are sweaty, knees weak, arms are heavy
There's vomit on his sweater already, mom's spaghetti.
Bot Ready.
😂
https://github.com/nbd9/PastaBot -
Let me tell you a story.
Our company has a homegrown monitoring solution. Keeps track of our deployments and alerts us when something is broken. Really nice for the most part, except a little issue where we get up to 25 alerts PER DAY that our PRODUCTION ENVIRONMENT IS DOWN. Including weekends.
With this many false positives, we quickly learn to ignore the alerts and miss real incidents.
So we approached this team, remember its our own tool, and told them about the problem. Turns out it is a known issue. And here's the kicker: they aren't planning on fixing it!
It gets better. Rather than fix this glaring issue, their solution is to make ANOTHER ALERT that lets us know the monitoring is misbehaving.
To recap, we can now expect to get up to 25 false positive alerts per day that our production is down, followed immediately by more alerts that the monitor is broken, which means we can ignore the previous alert.
As our PM said when he heard this: fuck that noise. We are escalating the shit out of this!7 -
I'm such an idiot.
Spilled water on my MacBook today. Not that much water, but the cup landed right in the middle of my keyboard.
Worst part is I was gaming with my sister and didn't want to stop. So I wiped it off and shook it out a bit and kept playing. A bit later the screen started flickering and eventually went black.
Finally my brain turned on and I switched it off, shook out some more water, and set it up to dry. Just hoping it's not too late.
At least the drying setup recommended by the internet is pretty hilarious looking.
Now we play the waiting game. They say 72 hours before turning it on again. Seems a bit extreme. Will there still be moisture evaporating 3 days later? Not sure I can wait that long to see if it's toast.
Such an idiot.14 -
*spends a long time crafting a huge eBay post (we're moving)
* tries to drag and drop first picture
* page navigates to the picture without warning
* loses everything
WHYYYYYYYYYYYYYYY
WHEN DRAGGING A PICTURE INTO A WEB PAGE I NEVER WANT TO NAVIGATE TO A PAGE WITH JUST THAT IMAGE. WHY NO WARNING BEFORE LEAVING THE PAGE. WHY DON'T YOU SAVE TEXT LOCALLY. WHY DOES THE WEB SUCK SO HARD. AAAGGGHHHH.
* feels better
* starts over7 -
Netflix, why is your loading spinner so horrible!
Do you know what a percentage is??? 99% means you are ALMOST done. Just a tiny fraction to go. I should not see 99% for seconds or even minutes on end. Much less after the first 98% took only a couple seconds!!
Stop the lies!!!5 -
import datetime
age=19
while not dead:
today=datetime.datetime.today()
if today.day == 1 and today.month == 4:
age+=1
print("🎉")11 -
me: I will major in CS so I can work with computers, not people
narrator: But little did he know...4 -
I don't know why quiting vim is such a challenge for new users.
While Quit starts with q , so q is very logical for quiting 😬4 -
My new fitbit reminds me take 250 steps each hour. When I do stop and take a walk, I find it helps my productivity, and I feel better. However, I'm not good at keeping to it.
It's always the same story.
"Quiet you, I'll get up and walk once I finish this one thing".
...
Another hour goes by.
If only I could keep to my own convictions.4 -
I spent more than an hour trying trying to debug why two functions were always returning undefined. I even put in conditional breakpoints and executed the statements to confirm the logic was correct.
I forgot return.4 -
Connect a pen drive, format it successfully. Connect to a new machine to copy data and see the data exists.
Crap! which drive did I formatted :(1 -
I think my productivity at work seriously went up when I discovered this site with custom noise generators. Blocks out my coworkers, and I can pretend it's raining all the time. Perfect for coding!
http://mynoise.net/NoiseMachines/...2 -
<!DOCTYPE html>
<head>
<title>hiCloudflare</title>
<link rel="stylesheet" src="main.css" />
</head>
<body>
<h1> Don't mind me, just taking my buffers for a walk</h1>
<script type=2 -
We're digital plumbers.
90% of this job is figuring out what thing to connect to what thing and then figuring out how to connect them.
Writing the code that goes in-between both ends of the pipe is easy if not trivial 90% of the time.
Meaningful change in this industry is centered around endpoints: contracts, deployments, etc. Nobody needs yet another way to organize and import their leftpad().10 -
Can i train myself to think like a computer?
Means I wont to the best thing i can do in each second without even thinking ! Just like what a computer does13 -
Coding has given me the ability to turn my favorite hobby into a career. This in turn gave me the chance to take jobs in three countries so far (US, Germany, UK). So, I can explore the world with lovely wife while doing something I'm really passionate about and constantly learning. It also allows me to relate more to my dad, a software engineer of about 30 years who got me started when I was a kid.
In short, coding changed everything for me.
PS: I met my wife in intro to CS, though she's not a developer. -
When your company buys a third party solution and you spend all your time emailing them about bugs in their system.
Seriously, I even sent you the exact line of the bug in your JavaScript with a suggested solution, and deployed a new stack with your latest (broken) fix so you can test out that solution. Then you email back saying it is fixed but it is clearly still broken. If I email you a fixed version of your file will you deploy it? OMG!1 -
After being live multiple years supporting only Safari, Firefox, and Chrome, one customer wanted IE support. After taking a close look at the usage numbers, and discussing with us front-end devs, our product guy shot it down. Pop the champagne!2
-
Wanted to kick off my causine from the network (he keeps downloading and eats all the traffic) with my kali.
Guess what?
I forgot to bring my wifi adapter and my kali was installed on vm which means no chance to send deauth packets!
Allright! Maybe next time 😬 -
Expectation: I'm going to spend today debugging my app
Reality: adds 10 new features, 30 got commits and some Easter eggs. No bugs fixed. -
21 lines of business logic (including whitespace and comments)
9 lines of build config
386 lines of tests (and tests for the tests)9 -
I sometimes watch dutch pov ambulance videos on YouTube. It just turns my mind off.
https://youtube.com/channel/...
+ coffee ☕9 -
POV: You fixed a hairy bug at a FAANG as a:
L3: "You're a technical wizard!"
L4: "Good job."
L5: "Why did you allow this into your team's code base?"
L6: "Why didn't you delegate that?"1 -
So... as a follow-up to my previous rant (https://www.devrant.io/rants/899731)
I happened across this today and started giggling internally.
Enjoy1 -
Gah gets me every time I open an image I want to share with friends on messages later.
Share dialog ain't cutting it.1 -
I was trying to understand the source code of aircrack-ng which is written in C today.
Suddenly I saw sth strange !
WTF !! what is #ifdef ??? I've never seen that before !
So I told myself : hey ! You have to download a complete C programming course!
so I did , but when I skimmed through the titles , again:
WTF ! I know all of them! So why the fuck I could not fully understand the code ? Where can I find anything I missed ?
So... I'm asking U :)14 -
How many programmers does it take to screw in a lightbulb?
It doesn't matter. Its a hardware problem not a software problem...1 -
I was wondering all day:
Can machine learning really teach a machine how to think?
I mean in a real unexpected situation that even a human may be confused , how a trained bot would react?17 -
OKAY
WHO THE FUCK DESIGNED THIS STUPID ANDROID EMULATOR.
ALL I WANT TO DO IS LISTEN TO MY MUSIC WHILE PROGRAMMING
BUT NOOOOOOO
WHENEVER THE FUCKING EMULATOR IS OPEN THE QUALITY OF THE MUSIC IN MY BLUETOOTH HEADPHONES GOES TO aBsOluTe SHIT.
CMON GUYS. GET YOUR HEADPHONES OUT OF YOUR ASS AND TEST YOUR FUCKING SOFTWARE12 -
In the worls of coding what matters is the algo and it's optimization
Any recommandation for proving my skills?
👑
Thank a LOT. 😊4 -
Some programmer forget to put ; at the end of their commands,
My problem is that i forget not to put ; while coding in python :/4 -
Have u ever thought 24h is not enough?
I wish i 48h or even more but wishing won't change anything :(8 -
When you make a mistake and try to fix it, but you can't remember how to spell amend...
git commit --ammend
error: unknown command `amend'
git commit -ammend
[branch-name] mend
Huh?
git log
commit #
mend
Created a new commit with message 'mend'. Now to clean this all up and go get some sleep!2 -
!rant
Super awesome day today.
1. Got up early to do a risky production deploy and it worked!
2. Three PRs approved before lunch.
3. Got some time to continue learning scala.
4. Coffee and cupcakes with some refugees and discussed work as a software engineer.
5. Tried virtual reality for the first time. Really fun.
6. Helped prepare our goals for this quarter and present them to the department.
7. Department meeting had free local craft beer and pretzels.
8. Went bouldering after work and flashed a 6c.
9. Curled up with my wife watching Netflix.
I really love my life sometimes.5 -
Changing the native browser scrollbar should warrant the death penalty.
Do not make it narrower. Do not make the colors blend with the background. Do not hijack it its functionality. Do not minimize it until I hover.
I am so fucking tired of websites that think they are in charge of my browsing "experience" and hide or otherwise marginalize the single most useful part of the page's UI.4 -
Watched an action hack movie
Then designed a scenario to sniff around a bank and get the encrypted key and finally extract the key and omg!
I've broke into the bank !!!
But seriously, is it worth trying?
I'm not going to do any thing stupid like even taking a dollar , but is it just the way I thought it is?
Will anything unexpected happen?16 -
My code be like:
Call the method cronk...
WROOOONG MEEETTTTTTTHHHOOOOOOOOOOOOOODDDDDDDDDDD!!!
*climbs out of alligator pit*
Why do we even have that method -
Sprint 0: This design is the appropriate amount of engineering abstraction.
Sprint 2: This is over-engineered, too much work
Sprint 5: This is under-engineered, too many edge cases
Sprint 10: This is over-engineered, component Foo could be replaced by a bash script
Sprint 42: Foo is now the cornerstone of half our business logic2 -
PSA: negate your tests and make sure they fail!
I have what I thought was a weird and slightly paranoid habit. When I write tests sometimes just as a sanity check negate the assertion to make sure the test fails and isn't a false positive. Almost always fails as expected.
But not today! Turns out I had forgotten to wrap my equality check in an assertion so it would always pass. It freaks me out to imagine pushing a test that always passes not just because it doesn't do its job, but could also obscure a bug and trick me into thinking it works differently than it does. Broken tests are the worst!
But it pays to be paranoid. -
I think I can learn English here.
HAHAHA
I can also learn professional knowledge.
**I am a Korean.**
And...
Succeed!
Android studio AVD powered pictures4 -
Years ago, one of my friends in college was taking an intro to CS class. He asked me for help on one of his assignments. It was a simple Python program, but it wasn't running as expected. I go in figuring it will be easy to fix. But everything looks exactly right. An hour later I'm tearing my hair out! It isn't even entering the function although it's clearly called. I'm beginning to feel very self conscious, as a CS major who can't even debug a 15 line program for a friend.
Then it hit me. This is Python. I used an editor macro to convert all indentation to tabs, lined them up, and it ran on the first try. Turns out, he had somehow ended up with a mixture of tabs and spaces.
I'm not sure what the takeaway is, but I think he got a surprisingly honest introduction to the life of a developer...2 -
A developer said to me: developers may hurry to finish the project before deadline that they might miss many security bugs specially in the updates. That a creative hacker will later take his time and exploit them.
Is it correct ?3 -
Me: *adds a shiny new graph to our foos web app showing player ratings*
Fred: Can I please have a button to see just my scores?
Me: *adds "JUST FRED" button*
Fred: perfect, thanks4 -
Can anyone recommend a nice set of DnD dice for a gift? It's for my boyfriend's younger sister. She's just getting into it and we're all playing on her birthday.
There's cheap sets everywhere and I'd like to get her something of nice quality.8 -
Project deadline = 7 days
Day 0: start coding
Day 1: few bugs and crashes
Day 2: fixed those bugs project is 30% done
Day 3: ok I have time... sleep
Day 4: sleep
Day 5: sleep
Day 6: 48h coding to finish the project on time.4 -
FUCKING HELL!
I just shutdown my computer after deciding to leave the unfinished feature that I started a couple hours ago for tomorrow.
Not 5 fucking minuets later I had found a solution in my head but now don’t want to spend the time to turn my computer on to fix it. Ugh1 -
Working at least 12 hr a day is in my daily routine.
Each minute must have an exact purpose and should not be wasted
(That is just a theory and does not mean that I actually manage to do it everyday) -
That feeling when you spend hours trying to fix something, only to give up.
Then you come back he next day and find you were missing a comma...1 -
sudo rm -rf *
Just started out on linux, learning the ins and outs. All I wanted to do was remove two directories. Thankfully it was a fresh install, didn't lose anything important.
A valuable lesson was learned that day. 😂2 -
When you offer to help out a fellow coworker on the top priority feature he is developing and he just sends you the branch and stops working on it.undefined one way to avoid merge conflicts paired programming would be more efficient welp guess it's mine now happy to help2
-
Yesterday my tests caught more typos in copy/paste test cases than in actual logic.
'twas was a decent day.2 -
Fuck me why do my unit tests pass with garbage input.
I can't go into a long weekend with this shit in my head rent free.3 -
I get home today and my wife says:
"Just finished some chores and really want to play stardew valley, but the computer has been updating for an hour!"
Windows 10 anniversary update strikes again.3 -
I've caught cold yesterday and I've slept for more than 6hr today :/
Going to sleep agsin just wanted to tell it to someone -
I was wondering !
As a computer geek I would like to know everything from mathematics to programming , robotics and machine learning but as I go , new technologies appear and it's
just like an endless while loop!
I don't mean I wanna stop learning new things but just looking for a more effitient way for doing this!
Any idea about this?1 -
I 'm working with python 3:
Was about to make my app print a text letter by letter (same as somebody's typing the text) and read it at the same time.
I wrote a method for typing and works fine but cannot find a solution for the tts and make them run at the same time.
Can U halp me please ?
Thanks in advance 😊2 -
Haha ! Can't balive i fanally broke this chain and joined a group for statistics final project !
It was soooo difficult but i did it 😎2 -
WHAT COCKSUCKING LUNATICS DECIDED TO MAKE A PDF ONLY ABLE TO DOWNLOAD WITH JAVASCRIPT.
I CANT DOWNLOAD YOUR FUCKING PDFS TO SIGN BY TONIGHT BECAUSE ALL I HAVE IS MY IPad. WHICH DOESNT FUCKING HAVE JAVASCRIPT
THERE IS A TIME AND A PLACE TO USE JAVASCRIPT AND THIS IS NOT ONE OF THEM. GO CASTRATE YOURSELF WITH A RUSTY KNIFE5 -
So, I'm looking into something and end up on Stack Overflow. Someone posted the question:
"Does minified javascript improve performance?"
This question was old as shit, all they way from 07/25/09, and about an Adobe Air application. (Remember that? Me neither...) It had a great, accepted, and still accurate answer, posted the same day the question was asked. Now, fast forward 8 years and on 12/08/17 (A mere 7 months ago...) the following answer was posted. I don't know what they were thinking, but here it is, complete and unabridged, with my comments in square brackets:
"I'd like to post this as a separate answer as it somewhat contrasts the accepted one: [Somewhat contrasts? More like completely contradicts...]
Yes, it does make a performance difference as it reduces parsing time - and that's often the critical thing. For me, it was even just simply linear in the size and I could get it from 12s to 4s parse time by minifying from 3MB to 1MB. [First off, your parse time should NEVER be THE critical thing, but secondly, and more importantly, WHO THE FUCK HAS 1MB OF MINIFIED JS ON A PAGE!!!]
It's not a big app either, it just has a couple of reasonable dependencies. [THERE IS ABSOFUCKINGLUTELY NOTHING REASONABLE ABOUT ANYTHING HE JUST SAID! What dependancies is he using?! You could use minified and not even gzipped jQuery, AngularJS, Vue, Ember, React, AND Dojo libraries on the SAME PAGE, AND have 118k of application code, AND STILL NOT HAVE HIT 1MB QUITE YET!!!]
So the moral of the story here is: Yes, minifying is important for performance - and not because of bandwidth, but because of parsing. [Javascript should NEVER take longer to parse then to download, even on a low powered device...]"
So, yeah, I'm at a loss for what this guy was thinking, but the thought the people like this exist, and that my browser might one day be subjected to their horrific nightmare of code terrifies me...2 -
We've been using private GitHub repos as a distribution method for our personal npm packages at work for years.
I finally got sick of it and did the work to publish them to artifactory yesterday. Today, I worked out the remaining kinks, fixed the CI builds, and wrote a wiki page explaining the change with step by step migration instructions and sent it around to the rest of the devs. And it's working great!
I feel simultaneously like a hero for finally getting this fixed and an idiot for putting up with it for so long.
Also thankful for my devops friend who helped a bunch.1 -
I was searching for an optimized daily timetable which includes programming , learning new stuff , etc.
It would be great if you share your daily routine with me so I can maximize my performance.
Thanks 👍10 -
I was working on a simple notebook project in java (console app)
But I think I need a little help :
When user wants to edit a note , he should write the note all over again!
How can insert the current note in console(like user input) so that the user can iterate and modify the text ?
Thanks3 -
I want to buy a beer for everyone who developed the mobile pass app. Just breezed through immigration and customs without waiting in the 1 hour+ line. Technology wins. Cheers!1
-
So, apparently, in 2015 our webhost (ixwebhosting) was purchased by Site5... This week, they finally migrated us to Site5 servers without warning, taking my email down in the process...
Today, after following the instructions in their own KB article (that tells you to click an icon that doesn't exist,) and chatting with support for over an hour, I was told that the new system they migrated us to doesn't support catch-all email accounts... At all... It's simply not possible to receive an email that was sent to your domain, unless the email address exists in the system somewhere... Despite the fact that it's a standard cPanel feature, that the old and new systems both use cPanel, that every other webhost I have ever seen that uses cPanel has this feature available, AND the fact that this is an important feature for a lot of websites, because they pipe all of their emails to a script for processing... It's simply not possible... They won't be providing that feature anymore. Nor for that matter is it possible to be migrated back...
They migrated accounts to a system that has a basic email function intentionally disabled, without warning... And we can't afford to open an account with someone else ATM... So I can't get any email until we get migrated... FML9 -
Just attended my first conference and it was awesome! So many new ideas, but also tired and overloaded. Can't decide if I should code tonight, go to bed early, or just do something mindless.1
-
So, if I was to emigrate, should I come to your country?
I'll finish my bachelors in Comp Sci next May and Ireland isn't really livable right now with property rental prices. Time to look elsewhere I think.18 -
Just moved countries and started a new job at an awesome company, which is so great I have nothing yet to rant about.
Oh here goes: almost three weeks with no internet at home and no end in sight.2 -
Fuck Salesforce to oblivion and back. I hope all it's buildings, servers and backups fucking burn down. Never has there been anything more frustrating, confusing, over-fucking-complicated and over-fucking-glorified in all history.8
-
I feel fucking proud of myself.
I spent the better part of three days trying to figure out how to compile source code on Linux using ./configure and stuff and best place to put the compiled source after running make and it all works. It's such a small thing but seeing as I've been tarnished with Windows this is a great accomplishment to me.
Also because I wasted days figuring this out, jumping to multiple topics, progressing deeper and deeper into different topics to figure it out... abstraction would've been nice... -
Things you should not say on your last day of work:
If I broke it, I think it would be pretty obvious. -
I had an interesting mystery the other day. I work in the UK, but I'm working remotely from the US for a while. First day, I made some changes, ran the tests and they failed. Weird part was the failing test was for a component I hadn't touched. I took a closer look, and realized it was a date off by several hours. The test was checking that a passed in date appears in the output. But it was creating the date by parsing a string. The library I was using defaults to local time, but the component uses UTC. So, I had inadvertently created a unit test that only passes when run from UTC. But I had never noticed before because my work is in that timezone. Yikes!
-
So my current PC is named the tesseract for its power and squareish case shape.
I just had a thought that if I ever seriously upgrade it or build a new PC, I should name it Thanos...2 -
The later I Stay up, the more wrappers appear next to my computer in the morning...
Funny how that works....1 -
Currently working on a GUI config generator using MFC in VS.
Firstly, fuck sake Microsoft. Why can't I just use a normal string? The amount of times I've had to do god awful conversions to/from CString using their numerous typedefs L, _T and don't even get me started on LPCTSTR, LPCWSTR... It's just ugly and tedious. I've gotten used to it and all but still, ugh.
Secondly, some of the functions are just stupid. Want to disable a control? Hmm, we'll there's a function called EnableWindow, but no DisableWindow. How did I do it before? Oh, so to disable the control it's EnableWindow(FALSE). Of course it is, duh. Why am I so stupid?
Let's use the GetWindowText function. Simples. CString something_txt = GetWindowText().
Nope, it takes the CString as a parameter and copies it into that rather than just returning the text. Now one line becomes two. I get that this is a really small semantic thing but it irks me.
I just want to go back to my fedora partition. Wah.
PS: I'm sure there's good reasons for what I'm ranting about, but I really don't care. I just need to rant about my frustrations. 😂1 -
Me those days:
- Comes home from work, lots of motivation to work on personal projects
- Sits down in front of the PC and starts coding
- Stops coding after 5 because sweat is dripping into eyes
- Lays down in bed completely dead and sleeps until the next day
- Goes to work
Fucking love those temperatures...1 -
A shitty internet connection and visual studio make the best of fucking friends. This is going on a half hour now.
Had to switch to my windows partition for a project and I'm not happy.
Cry for me Fedora. -
Why is so Fitbit so bad at multiple time zones??
Guess what, people get on planes and travel.
Every time, my Fitbit gets so screwed up, including things like changing previous step counts, or duplicating an entire day of steps.
I understand MTZ is a tough problem, but this is just unacceptable. I'm not obsessed with my steps, but when your product is all about counting something, seems like you should be more careful to avoid double counting or not counting at all. Seriously, how much R&D have they invested in their hardware and apps, but it completely fails when you travel. Get it together!1 -
Had a little fight with my elder cousin, and he said just because I can Code , does not mean I know everything( made me feel like I'm a genius 😄 ')
We weren't even fighting about coding or related to it...
Then where the hell did that come from !? -
When you put bread in the toaster then start programming and forget about it.
*finds it 6 hours later*
Ooh! Free food! -
!rant
I'm a designer and just found out about a hackathon by Deutsche Bank hosted at the end of October in Berlin. Are some devs out there interested in forming a team (and brainstorming about an idea, obviously)? Preferably from around Germany, since one has to pay travel costs on his/her own, but I'm open, really.
More information: https://api-open.db.com
Just hit me up if you're interested!
P.S. I'm not bad at getting some front-end development done...8 -
Best tip for getting unstuck? If it's after your usual leaving time, GO HOME.
So many times I solved the problem right away the next morning. Only wish I followed my own advice more often... -
I was always interested in computers. My dad was a big computer geek and a programmer to boot. Usually had a couple old PCs in the basement to play with.
In middle school, I took tech ed and we made simple web sites with html and css. I remember the struggle of nested tables.
In high school, I couldn't fit any CS into my schedule. But someone gave me a learning to code book in ruby. I loved it, and have been hooked ever since. -
It drives me crazy when there are unclosed parens or quotes anywhere.
Is it too much to ask for people to run their Facebook posts through a compiler first? -
When everyone thinks FE is easier, quicker, and less important than BE. Just because our fantastic UX people made you a high fidelity mockup in a day does not mean we can build the whole FE in a week.
This is why I'm returning to full stack. -
Computer does a BSOD right at the end of a tiebreaker competitive overwatch match where the enemy is about to cap the point and win. I'm one of the tanks. Hard reboot and back in the game within 45s. Just barely hold them off in overtime and win the match. Epic!
Thank God for SSDs!4 -
Fucking group projects fuck them oh so much fucking fuck fuck fuck.
What's that? You want to basically ignore the spec and do something else? Fuck.
Wait, let's not use the great resources given to us? Fucking fuck.
Oh, you're just going to ignore the fact that everyone else disagrees with you? Fuckity fuck fuck.
I am so angry. You don't get to railroad your team.
You fucker. Ugh. -
Current Mac and Windows user here looking to get back into Linux. Any distro suggestions?
Looking for something not too high maintenance.7 -
Recently briefed a manager that we need to adjust Q2 plans to address the institutional knowledge lost during layoffs.
Yes, I know, write documentation, etc. This is reality, all our shit ain't documented.2 -
!rant
Avatar request: separate colour choice for beard.
... I'm not exactly in the 99%, but my beard hair isn't the same colour as my head hair. 😂5 -
36 Tb Of Cloud storage?
Ref: http://1mtb.com/how-to-get-36-tb-fr...
Ref: https://en.wikipedia.org/wiki/...
https://www.360.cn/
Hey guys
was browsing on Cloud storage and found this Pearl...
Virtually unlimited storage.
I know It's a Chinese service (so privacy = null) but to place huge files...
Who knows or uses this service that can provide us with some info?
Thanks20 -
Not learning to unit test as I was embarrassed that'd I'd missed it in college.
Now, thanks to a great ruby module I've taken this year, I'm leaning towards TDD. I really enjoy it. -
Definitely Android 8.0 is neat.
And it's faster.
I think Android has developed a lot.
Isn't that right? -
If I made a website that was like a fill-in-the-blank for writing documentation, would anyone use it?
I'm trying to justify spending my time doing this.5 -
!rant with a l'il rant at the end.
Anyone have any Android games they would recommend? I just want something to help me unwind, without being baited every 10 minutes into buying upgrades or coins or whatever.
In app transactions have ruined Android games for me. It drives me insane, but, I still would like something for when I'm not bothered to boot up my ps4 and spend hours living in The Witcher.4 -
Trying to add money to a prepaid SIM card today. Their website is a mess. Plus and minus buttons were not functioning, so my only option was to add 15 euro. Checked the console, no errors. Tried triggering the buttons jQuery, no luck. Found a data value attached to the submit button set to 15. Changed to 10, clicked submit, and BOOM, it worked! You just got engineered!
After I paid, I was curious, went back and set it to -15, and tried it again. Unfortunately, they know about backend validation. -
Any recommendations for moving a blog?
My wife and I just cancelled our account with siteground hosting a WordPress blog. Looking for a cheaper alternative. Willing to get my hands dirty as a web dev, but would like a nice CMS experience for my wife. Also want to keep our existing content. If we can keep our custom domain somehow that would be a win.
Thanks!7 -
It's been a few months I became a freelancer, the cool thing is I still have no sleep but this time it's not for deadlines! ... XD
It's for ...
You complete the rant !2 -
Question for all the security/privacy nerds here. What is your opinion of the social network called Minds that pays you for your information basically.
(This is a very brief probably inaccurate summary but yeah, it’s basically reverse Facebook)1 -
So our software clubs discord bot went rogue and deleted a metric ass ton of messages
This is what I get for testing in production. Fml1 -
Hi guys! We are still searching for another dev to join our team for the hackathon hosted by Deutsche Bank in Berlin (late october). We're currently a team of 2: @ginjikoibito as iOS-/Backend-Dev and me as Designer.
So far the idea we want to apply with goes in this direction: Real-time evaluation of social structures through analyzing wealth & transactions provided by anonymized user-data of the API. It will also incorporate recognizable networks between users.
Sounds interesting? Please leave a comment, we're happy to share more with you :-)2 -
Ok, I'm curious to know, who is the person who has been in devrant the longest?
Comment the date that you joined if it is earlier than the last person who commented.5 -
Statically linking to qt5 is quickly driving me fucking insane.
I've a list of unresolved dependencies during linking longer than a really long fucking list. Ugh.
Cmake, why can't you save me?
Think I'll just go back to dynamic and build on each needed system.1 -
!rant
Tablet recommendations? I know this isn't really the place to ask but I trust you devs.
I'm just about to start back college and I'd like to have a light carry around for days I don't need my laptop. I love my 17" Dell, it's a beast and that's why I bought it but damn it's overkill for taking notes and running little things through a bash terminal. A tablet and keyboard seems like a nice idea.
Ideally, I wanna run Linux. But I'm not sure if there's a commercial tablet that facilitates OS changes easily out of the box.
No iPad. Not an apple fan, and it's just not what I'm after.
The MS surface seems pretty good, but I haven't looked too deeply into replacing the OS.
I just want a nice Linux tablet. I dunno.
Thanks!5 -
Difference between security threat and programming bug ?
Found a cool paper about format string attacks which mentioned buffer Overflow is a security threat while format string is a programming bug.
Had no idea what that really meant.
Tnx1 -
Has anyone heard of pretotyping? I recently read the PDF on their website (www.pretotyping.org I think) and it seems to make sense for small indie apps.
Thoughts?4 -
Got a new idea in mind...by the time idea reaches pen and paper and computer ( I hear a voice back of my head...."Is that what you were think of, think of something NEW it's already implemented!")
-
Was using an open source piece of software for data storage and visualisation to work with the loggers my company makes. When importing old data for historical views, some of the csv imports would fail without any specific error messages.
It took me a couple of hours but after looking at their csv parser and making my own little one to test with, I eventually found out that it was all down to the way datatime (I think it was?) in java deals with DST, which apparently was to just fuck shit up.
Anyhow, a few simple lines added into the parser later and it all works just fine.
Was super proud of that one as it was the first time I actually looked somewhat good in front of my senior dev. -
I walk by our devops dashboard several times per day. It keeps track of key metrics for all our live services. I noticed an interesting trend the last few weeks.
3 weeks ago: all metrics green
2 weeks ago: 1 metric red
1 week ago: 1 metric still red
this week: 1 metric still red but covered with a post it note -
Our #bigtech repo is like 19 billion LOC so how am I the first one to try to do simpleThing with obviouslyRelatedThing?
My search foo yields nothing and I fear its not supported yet.
fml4 -
Is the current humble book bundle of any use? Dev ops by Packt. Lots of docker and kubernetes stuff.
https://humblebundle.com/books/...1 -
I work so hard to name things well and yet last year's code is always full of esoteric and misleading nonsense.2
-
When you are tearing you hair out trying to figure out why the PR you're reviewing isn't working. Then you realize you forgot to pull the latest changes!
-
!rant
Soooo, badges. They seem to have some prevalence in the open source community. I'd love to earn some from fedora. One day!
Anyone have any fun ones to show off?2 -
!rant
Just did some really satisfying refactoring. Much happier with my work now. Its a little cli app to poll M-bus devices and write the data to file if the user wants. Can scan the whole range, search for specific devices and VIFE codes, parse an input file for lots of the previous data and one or two other things.
How's everyone's else's weekend? -
What is the best build/dependency manager? I've used gradle before but is there anything else that anyone would recommend ?6
-
In those learning days the universal solution to all systems issues -
'restart and see if that fixes' -
Effective 1:1s are perhaps the most important soft skill that no one teaches you.
The HR onboarding section for 1:1s is only chapter one. But your manager won't teach you, your skip level won't teach you, and your mentor won't teach you. At best one of them even has an effective 1:1 skill set.
90% of 1:1s become operations: What went wrong this week and what needs to happen next week. Basically a private standup.
You attend 1:1s all year and yet somehow your manager doesn't know the difficulties you overcame, what you'd like to change, or how you're pushing yourself to grow. Then you get re-orged to a new manager.
If like to meet someone with effective 1:1s *and* low job satisfaction.3 -
You know it's Friday afternoon when your interface is broken because you tried to set the type to the string 'string' instead of the keyword string.
Interface IEnvironment {
name: 'string',
...
} -
Time complexity doubt
How can you say T(n) ≤ 3T(floor(n/4)) + cn²
Given that T(n) =3T(floor(n/4)) +Θ(n²)
Won't it imply Θ(n²) ≤ cn², which seems incorrect (or am i wrong to think its incorrect?)4 -
https://m.facebook.com/story.php/...
WATCH NOW THANK LATER. (It’s rubber duck related)
Sorry about the Facebook video4 -
Recent Software engineering graduate. (NO RELEVANT JOB EXPERIENCE also not a great programmer)
Most of the software engineers I have met are working in web development and mobile dev, I understand web and mobile I understand they are hard and require a lot more with APIS CLI and all the other things but I don't understand where is the engineering part in them. I also don't know what am I supposed to do as a software engineer.3 -
I started solving codechief but I cN only solve beginner level that to some problem. Can any one help me to improve my skills and knowledge.1
-
Im working as a software testing engineer with 2years of experience, I want to change my domain...I have some options infront of me..like Data Science, SAP HANA, Android app development, Full stack developer..I'm at intermediate level in java programming...please guide me to pick one from them