Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "guid"
So Python doesn't have switch-case statement... I feel so dirty having to use multiple if-elif-else
tldr; UEFI is not for assembly programmers.
So, I just found an old UEFI include file on my disk from when I was writing assembly for UEFI at some point in the last 2 years.
I almost fainted when I realised that the file I wrote (from scratch) weighs 120 kB, and has a shit load of TODOs at the end of it for parts of the spec I haven't dealt with yet. I wasn't planning on using all of it, but I thought I'd make it for anyone else who does need those things.
It's currently just over 4000 lines.
Having written code for bootloaders using both BIOS and UEFI, I can say UEFI is the most unnecessarily bloated piece of shit I've worked with.
Does UEFI really need to support Bluetooth? Fonts?
BIOS: Want output? int 0x10, ah=0x0E, al is the character. Here's your output. Put it in a 5 instruction loop.
UEFI: Output? Sure. It's got to be UTF-16 though. Because we know how you all use that. Right? You'll find a pointer to the console output protocol in the system table. In that, you'll find a pointer to the output string function. It's pointers all the way down!
BIOS: You want to load from disk? int 0x13, ah=0x42. I'll take a disk address packet from memory. Here you go, disk data.
UEFI: Disk data? Nah, we're not gonna make that easy for you. In the system table, you'll find a pointer to the boot services table.
... In that, you'll find a pointer to the 'open protocol' function.
... Give that function a GUID and we'll give you a pointer to the disk IO protocol.
... In there, you'll find a pointer to the read disk function.
... Oh, and we have 2 disk IO protocols, so you need to get the right one.
BIOS: I'll load the first 512 bytes from disk and run it at address 0x7C00.
UEFI: I'll load a portable executable (old Windows format) from a FAT (old Windows format) partition.
NASM (the assembler I use): I can't output portable executables.
Me: Fine, I'll write the headers by hand so you don't have to NASM.
Why do I do this to myself?8
My anxiety is kicking in again.
I want to build something meaningful outside of work but my mind is blank, I have no ideas to implement, and whenever one pops up in my head, I DDG it, I find that there's someone who already built something similar and I lose all interest.
I want to code, but I'm tired of solving fictional problems.
I miss being excited to learn a new tech, since I know I would ditch it if I can't find anything to build with it.
This is causing me to lose all motivation to code and learn, I really hope this is just a phase ｡ﾟ･（>﹏<）･ﾟ｡22
*while still in bed, watches couple of videos of Google presenting flutter and building apps in less than 30 minutes*
*this is freaking interesting*
*gets out of bed, opens Firefox and types: " learn React native", installs VSC, npm ....*
I don't understand how my brains works 😒7
I complained during a dev team review about the too many dev calls/meetings we have that are supposed to improve our productivity but instead feel like interrupting our work and line of thoughts when focusing on something.
I expected the team lead to bash me or say "Nooo, these meetings are important bla bla bla" but he received it quite positively and already changed how we do things.4
Me: ya hi, we integrated with your API and I'm receiving error x
Provider: ok we'll disable validation, plz check
Me: ya it works, what's the problem? I used a GUID for id and I'm sure it's unique, here is URL and request body
Provider: you have something wrong in your implementation. Fix it and it will work
Me: aaand what's the wrong part of my implementation?
Provider: id is not unique, fix it. *Hangs up*
I sometimes sit and wonder, how and why does this kind of people get hired, FOR FUCK SAKE YOU ARE THE PROVIDER AND YOU DONT KNOW WHAT THE FUCK IS WRONG!
fucking useless ...7
I'm fucking tired of this so called lead developer, lead developer my ass:
- He takes two days to complete a simple task and he dares to ask me why I extended the deadline of this freaking complex feature I need to build.
- He does a half-assed job when completes a task, no validation of data, no well informative message when exceptions are th thrown ...
- He assigns me his tasks although I already have tons and we need to release soon.
- I take care of developing and maintaining 60% of the APIs and I implemented the most complex of features and he dares to always say that my code can be optimized in a vague way, never mentioning what exactly is he talking about, and never telling me beforehand, he always does it during team meetings where another thing is being discussed.
- He presents the app to the whole company and at the end doesn't give credit where it's due, no " thank you for being part of this or helping build this" even if I built most of that shit, instead he says he's disappointed in me ... WTF! What did you fucking do to build this to be disappointed in me? I'm the fucking disappointed one here !!
- He fucking keeps preaching practices that he doesn't follow or he finds workarounds to skip them while the rest of the team follows them.
- He's like "I'm only taking care of this task to help you out?!" .... wtf! I have nothing to do with that fucking task, how are you helping me! You just keep fucking lazing around when we need to be finishing features asap.
Thank God I don't expect anything from you, I get enough credit from my boss who expresses how impressed he's with my job.11
Complains why the app is not done yet ...
Because you fucking keep coming up with new features and ask us to implement them immediately !!!??6
Pushed my first own open source project to Pypi as a python package.
Used tox and travis for the first time.
Feeling proud and super content 😊.
I'm in the process of creating another open source package, which has as dependency the first one 😅.
I love Python.6
I never had problems with punctuation marks during coding, especially the notorious semicolons because I've always used an IDE, ain't gotta time to waste on compiler errors.
But today I meet my nemesis, a fucking comma wasted an hour of my precious time, causing my unit tests to fail in Python, my unit tests where expecting a list and the actual value is a tuple, it turned out that there was this trailing comma - which I don't know where the hell it came from - at the end of a function call that returns a list.
I only noticed this freaking comma after Pycharm indicated a conflict between the returned type and the expected type and underlined the culprit, that small invisible fucker 😬.
Thank you Pycharm and type hints in Python 3.
this is why, my fellow devs, you have to use an IDE.
PS: For those of you who aren't familiar with python, a trailing comma at end of a variable turns it into a one element tuple.
1, = (1,)2
- be the most productive member in the team and everyone dumps their tasks on you.
- be the laziest person in the team and everyone sees you as a bottleneck.
- be the senior + the laziest person in the team and you can complain about others being a bottleneck and dump your tasks on the most productive member.
fml ( ︶︿︶)_╭∩╮3
I happen to be the only girl in my small dev team of 4 males plus me.
I'm freaking tired of hearing 'hey guys','how are you doing guys', 'what's the update guys' in every meeting/call when one of them is addressing the rest of us.
Yeah i know I/they can't do anything about it. I somehow grew numb to hearing it, but sometimes hearing it one thousand time in a single call is driving me crazy.
I once mentioned it to an a senior dev who happens to be the one using the g word the most during meeting.
Me: could you please stop saying guys all the time, I'm not a guy.
Him: what do you want me to say, 'hey guys and a girl?!'
Me: ... -_- (internally: seriously!!)
This is probably dumb, but I felt genuinely let down when there were no options for facial hair for my female avatar.
I actually waited for a moment, thinking maybe it was just taking a minute to load, but then it hit me :'(5
- My task is dependent on a senior's.
- I wait for him to finish it for couple of days.
- Once done I went to test it, the value doesn't get updated, it turns out the value is static ... WTFFFFF!
- I assign him a bug task to fix it.
- My task is still pending.
- After couple of days, he assigns me the task of fixing it, with the excuse that he's busy.
Are you fucking serious !!?? What have I done in my life to deserve such senior? all I want is someone I respect and learn from .·´¯`(>▂<)´¯`·. .·´¯`(>▂<)´¯`·.6
The inevitable has happened:
"please make yourself available during the weekend for any request/question." ...
My team lead be like when we're in a meeting with the boss:
He: I'll have a working session with her, we'll brainstorm on how to come up with a better design and improve such and such feature, once that's done, we would call you to have another meeting.
Boss: sounds good, I'm looking forward to it.
Me: *internally rolls eyes...*
He: thank you everyone.
couple of minutes later, I get a message from him:
He: hey, it turns out I'm busy and I can't have that session with you, do come up with a new idea/design and share it with me.
Me: .... *fuck you, like you didn't know you were busy before making that fake promise*
The fucker will take credit again for things he didn't do.8
Seriously!? You don't fucking delete or change code because you don't understand it and push it to production, it's the way it is because of reasons you airhead can't comprehend ... ffs the fucker could have asked me and saved us trouble and embarrassment.
The fucker complains when someone doesn't write unit tests, meanwhile he tops any new code he writes with a @codeCoverageIgnore annotation ... 😒😒8
I'm playing nowadays NFS Rivals, where I can be a racer or a cop. There's this fucking bug/feature that drives me crazy, so basically when I'm a racer, I'm a target for cops even if I'm just laying around, not racing nor crashing into things. My fucking mere existence triggers them.
Fuck you EA.10
La me working on a new chrome extension:
- ok, this page has some hidden divs, I need to tell the extension to make windows scroll to the bottom while there are still elements with a hidden class
- creates a while(1) loop with a condition inside it to break if no elements with hidden class are longer there.
- happy with the code
- uploads the extension
- goes to page
- brings out developer tools
- goes to console
- clicks on extension on chrome
- right clicks the extension and then inspect
- ok here we go: la me click on button inside extension popup
- console shows some logs
- nice it's still looking.
- wait! Why is the page not scrolling ???
- looks at logs, WTF nothing changes in logs .....
- OMMMMG a infinite loop .... infinite loop inside chrome ....
- OMMMMMG my pc's gonna crash .
-stop please stop stop.
- wait! how do I stop this?
- tries CTRL+C ... nothing
- tries CTRL+Z ... nothing ...
Abort abort Aboooooort.
- Deletes extension from chrome.
-..... loop still running
- clicks on X to close Chrome.....
- not closing O_o
- Oh God, i need to do something before Chrome sucks all the RAM left.
- remembers the savior...
- Task Manager heeeelp me.
- opens Task manager
- chrome is consuming ~ 2 GB of RAM.
- WTF! Kills chrome.
Thanks for reading my lil adventure 😅5
I fucking hate those apps/websites where you can create an account but there's no fucking way of deleting it by yourself, nor even by messaging a moderator...fuck, and it's even worse when they put you on their newsletter list and the unsubscribe doesn't do anything...Fuck
Please fellow devs, if you ever work on apps that require creating an account, provide a way to delete it too.
Spend two days struggling with environment variables not being available in python script running on a docker container, tried providing environment variables directly, not working, tried providing a env file, not working
Turns out I was passing variables to the wrong container fml2
Used Java for the first in a while to brush up on my advanced DS skills.
My love for Java has been restored.
I feel so satisfied.4
So I was changing some CSS, but the changes weren't showing.
Was it being cached? Nope
Was the selector wrong? Nope
Well it was the right file yeah? Yup
So after like 10min of scratching my head, restarting the server, etc it turns out I was checking prod instead of dev.
This isn't even the first time this has happened 😑
Guys just remember to keep your dev tab and your prod tab away from each other, like way away.9
Anyone here has an idea of a project to do in Java and Spring (REST stuff) ?
I'm out of ideas :/ and I really want something to build in Java and keep me busy for a while.8
I hate it when you actually buy a template and it turns out things only align when your images and text are a certain length.
Dear designer no, my images are not all 200 x 200. Screw you :)4
Story && rant && dev && linux
I was using linux mint for a while... more like 5 months for work, there's this Touchpad/mouse issue in it that was driving me crazy, so basically the mouse stops responding out of nowhere in the middle of my coding and I have to restart the fucking laptop to get it back. Yeah, I tried all the solutions I could find on the Internet and nothing works.
This issue likes to fucking mess with me so much, it seems to only happen when I absolutely mustn't restart the laptop or I'm working on a task and have a tight deadline and I don't have time to waste restarting my pc.
A couple of days ago, I had this major feature I needed to release to production and the time I estimated for it and shared with my team turned out to be insufficient, so I had to work extra hours from home to finish it ... while I was working, the mouse issue returned and I had to restart my pc like 20 times that day. It was fucking frustrating and It was already midnight and all you can hear are keyboard sounds and fucks flying.
I made a promise to myself that once i finish this task, I'm gonna fucking migrate to another distro, I'm fed up with linux mint's BS. I've been putting up with it for so long it's time to move on.
Yesterday I installed Manjaro and I'm happily working on it today xD.6
Being a junior and part of a small team at a startup, working with a new software architecture, even the team lead is a beginner in it. It feels like I'm at an echo chamber, there's nobody expert enough to look up to if stuck, decisions seem to be based on opinions rather than an architectural design kinda point of view.
Ugh, I hope I'm not the only here ever feeling this way.7
I usually find Fridays really exciting 'cause they mean the end of a long week of work and a nice weekend where I can just relax and chill or do whatever the fuck I want, And also because nothing really major happens regarding work happens on Fridays.
Till this Friday, my boss who I really respect and who I find a nice boss to work for starting complaining about the speed of an app we developed and comparing its speed with 2 other versions of that were built using different stack, different architecture and another environments. I explained that it's absurd to compare these and expect the same performance from 3 differents implementations.
He was not convinced and I just kept my mouth shut 'cause I don't want to explode in anger. Because of all Friday night sucked, felt all depressed, wanted to distract myself by watching a movie, but I didn't find anything that I liked, I remembered that a new episode of this series I watching will be coming out that night, when I went to my usual streaming website I didn't find it, and discovered that it'll be coming out on March 1st 😣.
I had no video games to play, didn't feel like coding. By then i realised that tonight will be another nigh where I would be crying myself to sleep... which happened.
I woke up this morning with a resolution that I will go out and do something fun.
Little did I know, my depression was still there, now it's 8pm, I spent the whole day in bed. I wish I had someone to talk to, I friends are all busy living and I didn't want to disturb them.
I have another chance to save this weekend by doing something on Sunday, otherwise next week will be a hard one with my current mental state.
Excuse any typos in my rant. I have no energy left.6
Daaamn! I needed to process some data simultaneously using PHP, so I thought of using Threads to make things faster, checked out SO and discovered that the available Thread class can only be used in cli environment not on a web server ... FML 😑.
It's like these moments that I remember why I hate PHP, and regret accepting this job.
I miss Java 😣😣6
ARE YOU F*CKING KIDDING ME, WINDOWS?
I finally give in and install your stupid ass update, and what happens? let's just skip the part where i sit around for 30 minutes because apparently it takes 30 fucking minutes to install 300MB - by stallman's underpants, that's 150KB per second!
and when windows FINALLY feels like it has finished fondling it's binary-balls, what is waiting for me?
about 10 stupid-ass data-consent notices straight from satans anus, more weird yes-or-maybe settings for cortana (bill gates' ex or whatever that is) which i don't even USE, my browser speed dial has been complemented by about 7 links to SHOPPING SITES and once i sort that mess out i get a notification that the german language pack has successfully been installed.
SUCK MY FUCKING D*CK MICROSOFT, the ONLY thing i want to do with that language pack is SHOVE IT UP YOUR ASS. i can't even uninstall that moronic piece of shit. FUCK YOU.2
"Dim lighting is producing dimwits, It can change your brain structure .."
I'm fucked ... we all are.
- finish that ML course I started back in June 2017
- get more experience from my job
- improve my code quality even better.
- build some cool project in Java ( there's this company I need to impress, but I haven't found any good idea to implemen 😣)
- be more active on Hackerrank
- do some stuff here and there
- use that freaking LinkedIn to create some meaningful connections
- contribute to an open source project
... yeah that's a lot ... *sigh*7
After 30 minutes of trying to figure out why a guid is empty, I realize it's because it is initialized, but not assigned.
I'm not ready for Monday.
be me, just casually watching a cs:go fragmovie. there's always 10 seconds of ads before those, so i use the time to sip some coffee. at that second, i hear the following words..
"The first ever blockchain gaming marketplace in history"
...now i need to clean my keyboard.
TMW you want to introduce a big feature that will require you to refactor the existing code, but you don't have to worry about breaking the latter since you have tons of unit tests backing you up.2
We're looking to change the domain provider we use to register new client's domains to one that has an API.
So far it looks like it'll either be namecheap or AWS's Route 53.
We're also looking for the same thing with mail inboxes.
Do you have any recommendations / experience with either of these?
I was hoping to find a solution that would provide both the domain registration and the mailboxes with no hosting and accessible via API but I've had no such luck.
(Except for maybe two, but neither looked up to date)10
in teams with backenders and frontenders, how do you guys coordinate introducing breaking changes to the API while the system is live ?15
started to rewrite one of my functional-but-horrible projects. after 2 hours i realize i'm starting to use the same kind of "if it works, great" style.
jesus, i need some sleep.
1. Led or prompted by wrong or inappropriate motives or ideals.
2. Generating a Guid and realising that it's identical to a previously generated Guid
I like the idea of it but for tech support this won’t work. Ugh I just wish they could make a GUID for every NVR model.
Been searching for an offshore data server for at least 5 fucking hours. There's nothing worse than searching for decent low-end offers outside of europe.5