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 - "utc"
-
Just remember, if someone ever makes a colony on Mars, you may have to support their timezone in your applications. And their day is longer, so a simple offset from UTC won’t do....14
-
People complaining "oh I always have trouble figuring out if the clock goes forwards or backwards in October"
Bitch please, I'm dealing with 12 databases, with SQL dates as local timezone timestamps, and an influxDB in UTC. I'm dealing with a backend server configured in CEST and a middleware layer configured in Pacific time, and a hundred functions which try to keep everything straight because no one dares to migrate it all to UTC at this point.
In the whole argument about DST you hear about sleep psychology, electricity bills and farmers.
But what about me, the poor database administrator? What about all these ugly legacy systems, what about all the UX designers trying to fix time input pickers?
I spend 2 months a year in agony having nightmares of rips and folds in the flow of time. DAYLIGHT SAVING DOESN'T FUCKING MAKE SENSE HOW CAN TIME EXIST TWICE?17 -
I accidentally sent my password to slack channel!!
I have deleted it and changed my password of course, but it still doesn't make the embarrassment go away. Especially because my password is something ridiculous like :
Materialisticbitch88$$$
Some people have already seen it!!
RIP my reputation.
:/18 -
--- GitHub 24-hour outage post mortem ---
As many of you will remember; Github fell over earlier this month and cracked its head on the counter top on the way down. For more or less a full 24 hours the repo-wrangling behemoth had inconsistent data being presented to users, slow response times and failing requests during common user actions such as reporting issues and questioning your career choice in code reviews.
It's been revealed in a post-mortem of the incident (link at the end of the article) that DB replication was the root cause of the chaos after a failing 100G network link was being replaced during routine maintenance. I don't pretend to be a rockstar-ninja-wizard DBA but after speaking with colleagues who went a shade whiter when the term "replication" was used - It's hard to predict where a design decision will bite back and leave you untanging the web of lies and misinformation reported by the databases for weeks if not months after everything's gone a tad sideways.
When the link was yanked out of the east coast DC undergoing maintenance - Github's "Orchestrator" software did exactly what it was meant to do; It hit the "ohshi" button and failed over to another DC that wasn't reporting any issues. The hitch in the master plan was that when connectivity came back up at the east coast DC, Orchestrator was unable to (un)fail-over back to the east coast DC due to each cluster containing data the other didn't have.
At this point it's reasonable to assume that pants were turning funny colours - Monitoring systems across the board started squealing, firing off messages to engineers demanding they rouse from the land of nod and snap back to reality, that was a bit more "on-fire" than usual. A quick call to Orchestrator's API returned a result set that only contained database servers from the west coast - none of the east coast servers had responded.
Come 11pm UTC (about 10 minutes after the initial pant re-colouring) engineers realised they were well and truly backed into a corner, the site was flipped into "Yellow" status and internal mechanisms for deployments were locked out. 5 minutes later an Incident Co-ordinator was dragged from their lair by the status change and almost immediately flipped the site into "Red" status, a move i can only hope was accompanied by all the lights going red and klaxons sounding.
Even more engineers were roused from their slumber to help with the recovery effort, By this point hair was turning grey in real time - The fail-over DB cluster had been processing user data for nearly 40 minutes, every second that passed made the inevitable untangling process exponentially more difficult. Not long after this Github made the call to pause webhooks and Github Pages builds in an attempt to prevent further data loss, causing disruption to those of us using Github as a way of kicking off our deployment processes (myself included, I had to SSH in and run a git pull myself like some kind of savage).
Glossing over several more "And then things were still broken" sections of the post mortem; Clever engineers with their heads screwed on the right way successfully executed what i can only imagine was a large, complex and risky plan to untangle the mess and restore functionality. Github was picked up off the kitchen floor and promptly placed in a comfy chair with a sweet tea to recover. The enormous backlog of webhooks and Pages builds was caught up with and everything was more or less back to normal.
It goes to show that even the best laid plan rarely survives first contact with the enemy, In this case a failing 100G network link somewhere inside an east coast data center.
Link to the post mortem: https://blog.github.com/2018-10-30-...6 -
Wtf Microsoft...
Found out the hard way that copying a line of code from Teams chat will sometimes convert the spaces into unrecognized ASCII char.
Spent a few hours yesterday to fix the bad chars.
🤡👍16 -
Timezones. So, general rules are:
1. If you don't store timezone, always use and assume UTC. Databases, backends, whatever you use, all time must be kept be in UTC.
2. If you store timezones, ensure you store them everywhere and don't drop them anywhere.
3. It's always better to ignore backend server time in favor of database's `now().` Having a single source of truth makes time consistent (if it's the same database, obviously). If you combine backend time and database time, you likely get a violation of causality.
I've just spent a couple of hours investigating "weird random one-hour time drifts on updates." Guys violated all three rules above:
- they didn't store the timezone;
- their servers had inconsistent timezones. Java was in +XX., while the server itself in UTC. On one host, they forgot to put JVM in the same timezone;
- they dropped the timezone because they thought it was the same everywhere, so there was no point in serializing it.13 -
We called it "Project Hindenburg".
A huge planning and logistics app with hundreds of screens and dozens of interwoven subfunctions, suddenly needed to be able to support multiple time zones. Our project was to retrofit every area that touched on dates or times, to allow the user to specify, and work in, any time zone.
At this point in the story I can tell whether you have had to work with time zones in code. People who haven't are butting in with something that begins, "that should be fairly simple, you just need to..." followed by some irrelevant noise that betrays their ignorance.
People who have worked with time zones are nodding in shared pain, like fellow attendees of a survivors meeting.
You see, programmers tend to think of time zones as arithmetic; in reality, they are confusing, ambiguous, chaotic, and individual. You can't translate everything into a central time zone (eg UTC) because you lose the user's intent. For example, if you schedule a meeting for 3pm and then move it to the next day, you want it at 3pm even if the clocks have changed.
Project Hindenburg ended up using the entire development staff of the company for well over a year. It smashed our release projections to rubble, made an already tangled code base completely unmaintainable, introduced mind-bending edge case bugs that reduced staff across the company to tears (literally), and led to most of the mid-level and senior developers eventually quitting (including me).
I am @fuckfuckityfuck, and that was the story of Project Hindenburg.11 -
I was assigned a girl that's new to the industry (but with a master's degree).
I had high hopes, as people told me she is quite a curious fellow. As I am just a junior Dev with 2 yrs of experience Ididn't know if I could handle her.
We started working on a project. Which was a change request for a previous project I had developed. I gave her 2 days to read and understand the functional requirements of previous project and this CR. Then explained everything too.
Then I gave here another 3 days to read the previous design document to learn how this code worked.
I asked her multiple times if she has any questions. She said she got everything. Cool.
One week goes by. We start to code the CR while she is shadowing me. I explained why we chose one of the two approaches. And why we are making any of the changes. She as usual nodded in agreement.
I asked her to create Unit test cases.
She couldn't write even one. So, I quizzed her, she knew nothing about the project! Nothing at all!
FUCK!
I wrote down the test cases in short hand and told her to document it (by reffering previous UTC). She wrote the test cases in short hand in the document. And she reused the previous document and did not even clean it out.
After fixing the document I asked her to execute them. But nope, she doesn't even know how the application flows for this project. FML.
It took her 3 days to write and test 8 test cases.
Now she is assigned to me in another project. This one is more complicated. And I gave her a function skeleton to complete. I figured that it will take me 15 minutes so let's give her a day. But nope. 3 days no progress.
I get it someone might not be quick to grasp something. But you know what grinds my gears? That even after this you act like a know it all! Fuck! For someone who hasn't worked with her she is the most dilligent developer.
How the fuck does someone survive masters and suck so bad!22 -
OMFG!! I just discover a fucking bug in a library used by thousand of people in scientific community!! 🤩🎉
Started when my program outputting strange result. I was in a huge fight with my supervisor about one of the function from the library. My hunch was telling me that this function is the source of the problem, but he insisted that no such bugs could exist in the library that has been used by thousands of people.
I couldn't reproduce the bug so I just stayed silent at that time,
But now, I finally got the bug showing. Yeah I am gonna shove it to his face next week.✊
I will also let the people who maintain the library know.
Feels so good being able to be a contributor PR to this famous library 😎
The downside is now I can't use this function, I have to implement by own function.5 -
I want to print this pic out in enormous size and qty, hang them in many classrooms to show my female friends that it's normal to wear cute skirt and cute shoes while wringing cables on your shoulders.
😏12 -
Falcon Heavy launch coming up!
I can't wait. That's something people should watch, fuck the superbowl!
I would say it's 60% as significant as the moon landing was, if not more; a field of technology we should really focus on, but governments rather spend money on stupid war
Make sure to tune in tomorrow, 18:30 / 06:30pm UTC, on SpaceX's YouTube channel
It's going to be spectacular, success or failure7 -
Me passing time on the weekend
Random call from unknown number
Turns out it's the manager
M: hey , how is your weekend going ...
Me: nothing much ... Whatsup ?
M : yeah well , we wanted to push some minor adhoc fixes as some clients wanted it urgently
The Devops folks need developer support . Can you pitch in and monitor
Me : I'm not aware of what changes are going , i don't think i can provide support
M : don't worry it's minor changes , it's already tested in pre prod , you just need to be on call for 30 mins
Me : ugh okay .. guess 1 hr won't hurt
M: thanks 👍🏽
Me: *logs in
*Notices the last merged PR
+ 400 lines , implemented by junior dev and merged by manager
*Wait , how is this a *minor* release...
*Release got triggered already and the CI CD pipeline is in progress
*5 mins later
*Pipeline fails , devops sends email - test coverage below 50%
Manager immediately pitches in ...
M: hey , i see test coverage is down , can you increase it ?
Me: and how do u suppose I do that ?
M : well it's simple just write UTC for the missing lines ... Will it take time ?
Me : * ah shit here we go again
Yeah it will take time , there are around 400 lines , I am not aware of this component all together
Can you ask junior dev to pitch in and write the UTC for this
*Actually junior dev is out on a vacation with his girlfriend
M : well he's out for the weekend , but
as a senior dev , i expect you to have holistic understanding of the codebase and not give excuses ,
this is a priority fix which client are demanding we need this released ASAP
Me : * wait wat ?
---
I ended up being online for next 3 hours figuring out the code change and bumping up the UTC 🤦🏾9 -
My country just changed its time zone from UTC+3 to UTC+2.
Now I have to change the server to handle requests correctly!
PS. Probably tomorrow will be a big chaos for everyone!10 -
Me thinking that getting a job in tech is easier than getting a non-tech job because we are "in demand".5
-
Well, if your tests fails because it expects 1557525600000 instead of 1557532800000 for a date it tells you exactly: NOTHING.
Unix timestamp have their point, yet in some cases human readability is a feature. So why the fuck don't you display them not in a human readable format?
Now if you'd see:
2019-05-10T22:00:00+00:00
vs the expected
2019-05-11T00:00:00+00:00
you'd know right away that the first date is wrong by an offset of 2 hours because somebody fucked up timezones and wasn't using a UTC calculation.
So even if want your code to rely on timestamps, at least visualize your failures in a human readable way. (In most cases I argue that keeping dates as an iso string would be JUST FUCKING FINE performance-wise.)
Why do have me parse numbers? Show me the meaningful data.
Timestamps are for computers, dates are for humans.3 -
Prof: "Hey, you can take a look at the source code that we used last year in this research paper"
Me :(surprise because other papers usually don't share source code), "Okay"
A few weeks later:
Me: "Prof, if you use method A instead of method B, you can get better performance by 20%. Here's the link"
Prof:"The source link that you mentioned is for another instrument, not GPU"
Me:"Yeah, but I tested in on GPU and I found it is also applied in my device"
Prof:"That's interesting."
-----------------------------------------------------
This is why folks, sharing the source code that you used in scientific papers is important.8 -
That awkward moment when you made some changes in your code and hope that it will fail so that you can confirm your theory/suspicion.
Otherwise you'll have no idea what's going on.
: /3 -
Me 2 days ago :
"I have applied to so many places, and did lots of interview for my internship. Still no result so far. Maybe I need to take some odd jobs to cover my bills while I improve my coding skills. Rent and food need to be paid, you know.
But I will keep applying to at least 40 companies before I change my strategy"
Me today :
"OMFG, they offered me a position despite my very bad interview!!"
🤩
So whoever is still looking for a job out there, don't give up man... We are in this together.👍👍3 -
Countries in UTC region have a relative advantage in debugging, as they don't have to add offset to datetime in logs,database etc to convert to localtime😂6
-
I worked on a feature that included setting a cookie to expire in an hour.
QA: The cookie’s time should be set to my local time.
Me: What the—are you kidding me?!The cookie’s exp time is in UTC. Whether you’re in NY or Singapore, that cookie will expire an hour from when it’s issued. Now stop flagging non issues and beta accept my ticket.
This is the weirdest s*** QA has pulled.8 -
Found out other team's project result about performance for uni assignment. It's that Matlab is the fastest, followed by python and C++ is the slowest.
They are gonna get roasted during presentation (by many people in the audience including me).
This is gonna be fun.
/*devilish grin*/22 -
I hate dealing with time Zones issues fucking hate it , everything should be utc and that's it , Dammit !3
-
Oooh what I hate it..... Timezones... Who really came up with that shit? GMT, UTC, CET and garbage like that. And then also the DST crap.
Whats wrong with the same time in the whole world? Without DST or timezone garbage that just makes life harder for both developers and travellers which are going to meet someone or have something booked.18 -
Is obsidian a fucking joke?
Seriously, is it a joke? Why would you ever care so much about indexing literally everything, if the entire thing crashes and/or takes >5min to LITERALLY just open the fucking directory and/or (so help you) if that directory is full of projects/repos or whatever the fuck and the total size of said directory is like >5GB.
WHY THE FUCK WOULD YOU INDEX EVERYTHING? -- "Ohh obsidian's not supposed to be used a fully fledged IDE, ohh obsidian should just handle MD files and normal sized projects, ohh the plugins and ease-of-use" -- Fuck.
There's no fucking real reason to index everything, BY DEFAULT. You open a directory with Obsidian? Doesn't matter, it's 1 byte, it's 100GB, you get indexed. Deal with it. It will use LITERALLY every resource your computer has. I'm surprised it doesn't go galaxy brain and ping if any other computers/devices are on the network and then attempt to connect and use their hardware (obsidian can be like a node!).
How shit can you be at understanding basic data structures and algorithms, where you just revert to based google-chrome brain and let the FUCKING TEXT EDITOR -- OBSIDIAN IS A FUCKING TEXT EDITOR HOLY SHIT -- hog all conceivable memory.
I swear to <some-deity> if anyone fucking says "Ohhhhhhhh actually, it's not a text editor, it has plugins and features and shit, it does all dis cool stff", OR, "Ohhhhh actually, obsidian indexes things for a very specific/rationale/apt/pragmatic/academic reason" OR "ohhhh, I have 100 iphones, 1000 ipads and a trillion desktop computers that each have 256GB of memory, why you hating on obsidian?" then go kick rocks. The fucking lot of you. Are you fucking kidding me.8 -
If I do it in python : Finish in one day!
If I do it in C++ :
1 week for installation and configuration
3 days for coding
Another 1 day for troubleshooting...
But I will still prefer do it in C++.5 -
Skills required for ML :
Math skills:
|====================|
Programming skills :
|===|
Skills required for ML with GPU:
Math skills:
|====================|
Programming skills :
|====================|
/*contemplating career choice*/
: /3 -
The guy I work with was pissed because I asked him the status of his task during the daily meeting.
He doesn't want me to embarrass him because he hasn't finished this task. He said not to push him further as he will do it soon.
Dude, the point of having a daily meeting is to give updates of all pending tasks. it's been one week, you're procrastinating on this task is delaying the progress of my task.
Mind you, this guy has a PhD but he can't even understand a simple project management like this.
Hehehe this whole team is clown world 🤪🤡7 -
I'm a noob so I was dumb enough to google 'Eyeballs' in case it's a kind of tools that I don't known yet.
😕3 -
Every project ever :
Initial plan :
||===================|| 100 %
Actual submission
||==|| 13%
- Not enough money!
- Not enough people!
- Not enough time!
- Not enough resources!
- Hardware not supported
- Software not supported
- My team are useless
- God didn't like it. :/1 -
Previously, I rant in twitter but none of my followers understand them.
So now I am gonna switch here.
Please bear with me. (^.^)d1 -
I attended a 2-days scientific conference last week which lasted from 9 AM-7 PM.
I submit my travel expenses today and the university adm got guts to tell me that
I should commute 6 hours everyday to that place instead of staying in a hotel.
Please people, I contribute making our research and name renown to the public. I don't even get paid doing that (did it for the sake of experience).
The least you can do is to support the accomodation. The penny pinching you did in the name of cost saving is embarrasing.
I didn't like every hour spent working in the uni, yet people still ask me why I won't continue to PhD.
No offence to all PhDs out there. It's just that my practical and money-oriented ass couldn't
stand all the free work I have to do if I do that.
I'd rather work in a supermarket, at least I'm getting paid of what I'm worth.
😕7 -
Our marketing just change the blacklist/whitelist terms to blocklist/allowlist to make it more "neutral" following change in github "master branch" to "main branch"
When will this end, people ?
:/11 -
S̠̪͓͓͐̑̑ͥȉ͎̦̬̱̤̣ͯ̆ͩ̃̌n̦̙̙̦͉̟̟͋ͬ̉ͫ̍̈́̚c͓̰͚͚̆̎ͦͫe ̹ͨ̚ͅt̠̟̦͍͕̑̾ͬͬ͒ͦͅǒ̪̩̑m͍̖̭o̝̬͚̦̥̺r͌̋ṙ̒̐̄ò͙͓ͭw ͩ̔̿̎ͤ̋ͮi̼̭̦ͥͣ͒s̪̰̃̂ ̲̰̮̣̮̌ͭͬ͆̔H͉̳a̠̲̟̹͓̰͎͐͆ͥ̓͋̍̎llo̱̺͖̲͑̒̿ͨw̜͓̟̺̹̹ḙ̭̳̬͇̻ê͖̼̮ͥ́n͉̺͑̽,̫̲ͪ̅ ̫̲͓̟̳̋͊̇̆̈̓ͅľ̠̰̅et̠̩̟̦͉̦͕͐̓ͦ͌ͩͥ̓s̱̓ p͔͚͈͎̰͓̘ra̰̘̥̗̲̯͓n͎̪̠̗͎̬k̈ͬ̊͛̉̅̚ ȏ̻͇̫̰̞ͣ̌̄̌uͤͭ͑ͯr͉̗ͅ ͊̊ñ͙̯͈͑͑o̗̙̍ͤn-͚̘͎̣͑͊͑̇̔ͅtͨ̽̿͑̇̚ḙ̱̾ͭc͍h ̯͖̓ͯf͓̗̥͔̥̬̎͒ͤ́͒ͯr͍͙̋̋ȉ̤en̥̻̦̥d̟̜̟ͬͩ̈́s͍͕̦̭̣͉̿̔̇ͯͥͬ ̲͛w̞̽i̥͕̙̹ͅt͖̠͕̒̍̈́h͉ ͊͐ẗ̒́̄̍͊h̗̜͔ͅi̖̟̫ͪͨ͊͊́ͅͅs ͚̩̟̐ͦͩ̔ͅz̰̫̦̹͖̙ͅḁ̗̬̪̪̰̋̐̂̈́̑͆l͂̓͐̈́g͖ŏ͓̘̳̝̩͍̯͆̈̎̈̍̚ ̫̞͕̺̣̌ͬ͛͋̿t̤̰͍̼̘͖͈́̇̄̂ͭͬͮe̘͖̠̠̓̊ͤ̅x͉͙͎͈ͩ̂̉͂t͙̞̣̖͖̀̎̽ͮ̇.͎̣̤5
-
My non-programmer friend (a mechanical engineer) has better pay doing what she loves.
I have lower pay, clocking more hours, and stress, doing a subject that I don't like.
Should I change profession?
: /10 -
Me -Hey did you run through the UTC(s) ?
Co-worker - Yeah.
Me-How many failed?
Co-worker - None!
This project is either going defect-less or Its just the calm before the storm.1 -
This guy told me that I was unprofessional because I called him reckless.
He thought that reckless is unprofessional word?!
Are you fucking kidding me?! 🤬
I was just pointing out his recklessness of wanting to delete files in our shared platform without permission from the owners.
These files may be important and he only gave us 1h to back it up. He's the one being unprofessional.🤪
Anyhow, this is not the first time I have had a fight with him, and certainly won't be the last.7 -
Me working in High Performance Computing :
CPU/GPU in full throttle ... go brrrr...
Me working on an app:
Should put sleep() in the while loop so as not to overwork the CPU
😑😑2 -
Me : "I need to stop geeking out about security because I have exams and need to write a report"
Me 2 hours later : "Ooooo.. what's this cool article about?Let's check it out 😎"2 -
My preferred stack is Rails/NginX/Postgres, or Node using the same.
I have a fair amount of material for this week's rant, but in my stack's defense, the quantity is primarily because I've been using it for so long, and I'm apparently a talented breaker. I may share other stories if the motivation arises.
However, today I ran into something definitely deserving of calling out.
The default datatype for a Date+Time column in Postgres is `datetime` which means "date+time without timezone". (while `datetimetz` instead stores the timezone).
Apparently when comparing a datetime with a datetimetz, Postgres doesn't compute the timezone difference correctly, leading to some very unexpected and confusing query results.
Today, I had a record that was both pending (expires_at > now) and expired (expires_at <= now), where now is a DateTime (with tz) literal from Rails. After half an hour's frustrated delving and baffled expressions at query results, I finally figured out that the database's math was incorrect when comparing UTC (+0) and PST (-7).
This during a semi-high-priority bugfix that's blocking for a coworker.
While Time and all of its nuances are honestly extremely difficult to handle correctly, I didn't expect Postgres to get this relatively simple part wrong.
Shame on you, Postgres.
I expected better.3 -
My mom (a single mother who had to feed 4 kids) feed me, let me stay in her house (at least until I was 21) and let me use the motorcycle.
Instead of running away and giving up her children to child institution (because that's probably what I will do being a selfish person that I am)
If that's not support, I don't know what that is anymore.
It might not be much but at least it gave me the time to grew up and be independent to pursue my dream of working in IT.
Her strength and toughness facing the hard life is also the main inspiration for me to keep going, to prove that I can do whatever I want if I put enough effort on it.1 -
this just happened a few seconds ago and I am just laughing at the pathetic site that is Facebook. xD
4 years ago:
So I was quite a noobie gamer/hacker(sort of) back then and i had a habit of having multiple gmail/fb accounts, just for gaming, like accounts through which i can log in all at once in the same poker room, so 4/5 players in the game are me, or just some multiple accounts for clash of clans for donations.
I had 7-8 accounts back then. one had a name that translated to "may the dead remain in peace "@yahoomail.com . it was linked to fb using same initials. after sometime only this and 2 of my main accs were all i cared about.even today when i feel like playing, i sometimes use those accs.
2 years ago.
My dad is a simple man and was quite naive to modern techs and used to hang around with physical button nokia phones.But we had a business change, my father was now in a partnership in a restaurant where his daily work included a lot of sitting job and and casual working. So he bought a smartphone for some time pass.
He now wanted to download apps and me to teach him.I tried a lot to get him his own acc, but he couldn't remember his login credentials.
so at the end i added one of my own fake ID's(maythedead...) so he could install from playstore, watch vids on youtube and whatever.
The Actual Adventure starts now
Today, 1 hour ago:
I had completely forgot about this incident, since my parents are now quite modern in terms of tech.
But today out of nowhere i recieved an email that someone has JUST CHAINGED MY FB PASSWORD FOR ONE OF MY FAKE ACCS!?!??
what the hell, i know it was just a useless acc and i never even check my fb from any acc these days, but if someone could login into that acc, its not very difficult to track my main accs, id's, etc so i immediately opened this fb security portal and that's where the stupidity starts:
1)To recover your account they FUCKIN ASKS FOR A PHYSICAL ID. yeah, no email, no security question you have to scan your driving license or passport to get back to your account.And where would I get a license for some person named "may the dead remain in peace"? i simply went back.
2) tried another hack that i thought that will work.Closed fb help page, opened fb again , tried to login with my old credentials, it says" old password has been changed,please enter new password", i click forget password and they send an otp. i thought yes i won, because the number and recover mail id was mine only so i received it.
when i added the otp, i was first sent to a password change page (woohoo, i really won! :)) but then it sends me again to the same fuckin physical id verification page.FFFFFFFFFuck
3)I was sad and terrified that i got hacked.But 10 mins later a mail comes ,"Your Facebook password was reset using the email address on Tuesday, April 10, 2018 at 8:24pm (UTC+05:30)."
I tried clicking the links attached, hoping that the password i changed(point<2>) has actually done something to account.NADA, the account still needs a physical license to open:/
4) lost, i just login to my main account and lookup for my lost fake account. the fun part:my account has the display pic of my father?!!?!
So apparently, my father wanted to try facebook, he used the fake account i gave him to create one, fb showed him that this id already has an fb account attached to it and he accidently changed my password.MY FATHER WAS THE HACKER THE WHOLE TIME xD.
but response from fb?" well sir, if you want your virtually shitty account back , you first will have to provide us with all details of your bank transactions or your voter id card, maybe trump will like it" -
Unpopular opinion:
- It's not a guarantee that someone who gets into tech because he/she likes gaming will be a good dev
- It's not a guarantee that someone who gets into tech because he/she likes money will be a bad dev.3 -
Here's how I describe my workplace:
- a mid dev that will stay mid forever
- a senior but with junior skill
- a mid but actually a junior
- a verbose dev, people having rough time trying to understand her because her explanation is always blown up
- a PM without enough technical skill
- a dev with personality like a moody teenager
- a contractor but acting like a customer
Did I miss anything? 🤔3 -
// Time isn't converted to Customer's timezone because it's stored in the database in the time of Customer's timezone, not in UTC
GOD WHY14 -
I have only been working with this open-source tool for 2 weeks, but already found 2 bugs. The maintainer is also nice enough answering questions quickly in the forum and submitting the issues for me.
It's nice to be able to contribute something to the open-source community. Yay for me! 💯
Too bad that next week, I will transfer to another project and stop working with this tool.3 -
Those of you who like "The Imitation Game", you probably want to check out "Hidden Figures" (2016). It's on Netflix now.
About a team of female African-American mathematicians who wanted to "break the glass ceiling" in NASA.
- Dorothy : conquered the (recently acquired) IBM frameworks using Fortran and taught her team to program it
- Mary : appealed to court to be allowed to study in a all-white school to get her qualification to be an aerospace engineer
- Katherine : her skills in analytical geometry enabled her to be the first female African-American in the Space Task Group in calculating the momentous capsule launch into orbit
My lazy ass just can't fathom how someone who deals with so much math and pressure can still smile to their family after work. My grumpiness nature will surely turn me into a monster.
And now I know what "human computers" means.5 -
Last year, my current manager promised me a significant salary increase if I transferred to his team. He said that's because his department has bigger budget. So I did.
Today I received a notification for a 5% salary increase. 😂
I am a dummy for trusting him. 🤡
There's a reason why a lot of my former colleagues are no longer in the company.
Never fully trust your company folks!3 -
Every engineer in my company seems to be passionate about the industry we're in.
For example:
If we're in a medical industry, they're excited about being able to help sick people with the medical devices that we program. They're excited about the news/progress in the medical communities. They have something more motivating beyond creating tech tools.
For me, it's just a job with a paycheck. I don't drink their kool aid. I'm occasionally excited if I managed to create new things with new software tools.
I am often jealous with them, because they seem to be already working in their dream job, instead of having cold dead eyes like mine.12 -
A tutorial app that convinces everyone to adopt UTC (so I no longer have to account for time zones and/or DST in code.)3
-
We're doing a concert with our choir representing Sweden that'll be broadcast on radio across all of Europe in 2.5h. If your local radio's broadcasting it, it's at 16.00 UTC. Search for EBU Christmas concert :)
Just felt like telling y'all!6 -
Lua is one of the stupidest languages to ever exist.
Oh, the language is easy to learn? The syntax is friendly? There's only like negative 10 functions you ever need to know? Everything is a table?
EVERYTHING IS A TABLE?! WTF CARES? WHAT ABOUT NIL?!
The arrogance this language has is extraordinary, literally. No lang, except Lua, imposes such an opinionated dichotomy. Everything is a fucking table, or, it's nil. -- That's so fucking stupid.
And look, I get it, this lang (oh sorry, scripting language (?)) CAN be good and fun and whatever... the moment you start to do IO is the literal end of days.
Everything is nil. Except, if it's defined... then it's not nil. -- OK. That sounds sensible/reasonable enough. -- What if it's not defined? You get nil. What if it's not the right data? You get nil. Do I get errors/exceptions or whatever? No, absolutely not, you get nil... unless the application you're using with Lua with has a lib that handles that.
There are so many more issues I have with this lang, but honestly... Am I fucking missing something? Is this lang like actually super dooper awesome and I'm missing something? -- I can't not look at this language as just dumb and arrogant. -- It's literally a language where you have to manage and remember ALL conceivable state at ALL times.11 -
GMT/UTC
IST
ACST
CST
PST
.
.
.
.
.
Man Fuck time zones, I don't even know where I belong anymore while keeping track of all of them at once.
Fuck You In The Ass Time Zone3 -
Because of high gas price, the government decided to lower our tax.
For me it translates to additional EUR 11/month ☹.
This is after deductions of thousands of euros each months (tax and social contribution) from my hard-earned salary. How come nobody is complaining about this?
During my yearly review, I told my manager that I expect to see significant salary increase next year (the inflation is 9% duh!).
She told me that I can expect to get 20% increase after 3-4 years. ☹
Now I know why a lot of people are leaving. How can you expect your employer to stay put if you're constantly paying them under market rate?! I have to keep switching jobs every 4-5 years to get a decent pay, right? Yet society expect me to settle down and have a stable job.
And then, how come a PM earn significantly more than a regular dev? Even the job interview is much easier. But I like the technical part too much to switch to people management.
By no means, I am starving right now working as a dev. I am happy that I even have a job, but somehow I felt like what I do is pointless just being a wage slave, and felt demotivated in a lot of ways.
P.S.: I am writing this now in front of my work computer. I have to catch up some work to do otherwise I won't have time to do it during the weekdays 😔
Pray for me guys I can get better job within next year.8 -
I've been using the Square REST API and I spent one hour thinking there was something wrong in my code until I f** found that THEY were not following OAuth 2 guidelines, which made their workflow incompatible with the OAuth lib I was using, so I had to mark an exception for Square's OAuth from the rest of my OAuths. Specifically, RFC 6749 Section 4.2.2 and 5.1.
However, after reading OAuth 2 guidelines, I became angry at THEM instead. The parameter `expires_in` should be the "lifetime in seconds" after the response. This will always be innevitably inaccurate, since we are not taking into account the latency of the response. This is, however, not a huge problem, since the shortest token lifetimes are of an hour (like f** Microsoft Active Directory, who my cron jobs have to check every ten minutes for new access tokens). Many workflows (like Microsoft, Square, and Python's oauthlib) have opted to add the `expires_at` parameter to be more precise, which marks the time in UTC. However, there's no convention about this. oauthlib and Microsoft send the time in Unix seconds, but Square does this in ISO 8601. At this point, ISO 8601 is less ambigious. Sending a raw integer seems ambiguous. For example, JavaScript interprets integer time as Unix _milliseconds_, but Python's time library interprets it as _seconds_. It's just a matter of convention, a convention that is not there yet.
Hope this all gets solved in OAuth 2.1 pleeeaasseee1 -
Annual inflation rate = 9.2%.
My annual salary increase = 5.5% (from my meager salary as junior)
Thanks management 🤡👍6 -
Other people : save money to buy car, house, etc...
Me : save money to pay for this f*cking degree where 80% of what they taught will be useless after graduation.
: /4 -
The whole dev community.
Those who have dedicated time and energy to share solutions, tricks, bug-solving ideas, codes that I can steal; teach me patiently even though I am slow, cheer me up when I am down because I'm stuck debugging for hours, brighten me up with programming jokes when I am sad.
Those who have allowed me to earn good money in the field that I really enjoy.
Yeah, including you 😘 -
If I have the same privileges (time, money, connections, environments, energy etc) that they have, I will surely achieve 3x more.
I am not trying to find an excuse, that's the reality. I already achieved way more than most people with the same background. I should be proud of myself, and other people who think otherwise can go fuck themselves.
༼ つ ◕_◕ ༽つ3 -
I am in the mood for anything at 11 PM-5 AM.
Cleaning the house, studying, coding ...
Juices of ideas, energy and focus are just overflowing.
Too bad that I have to follow "normal people" schedule which starts at 9 AM.
:/4 -
How can I make my manager understand that performance should not be measured by how many tickets we have resolved?
If the ticket is an easy one then sure 1-2 days is enough, but for some complicated shit or dealing with models that I have never touched before, I am gonna need several days just to understand the requirement.
For some fucked up reason, our story point is in hours, instead of days. So when we say 24 hours, then it's only 3 days.
Another fucked up reason is that my colleagues doesn't seem to mind. I am the most vocal one objecting when got assigned too many tickets. They just joke around and seem to accept it.
FYI, I am just 6 months in and bouncing between 3 projects.
Am I just too lazy or slow?
In my previous company, the devs seemed to be pretty chill, and the project manager only complained when an issue has been dragging on for weeks.5 -
Just had a discussion with a coworker. I noticed he was storing dates as string in mongodb, saying it was better for comparison and because he stored them in UTC. WTH, mongo already stores all dates in UTC and a string date is imposible to compare. I wasted 8 hours finding that last part out.6
-
Can someone tell me how a mid level developer with a PhD from EU country is unable to work independently, conduct investigation by himself without too much hand-holding?
Is he too allergic to use google search?
Or is it me that have too much expectation? He's been in our team for 3 months, he should be able to search docs/procedure/files by himself now. Is it me that are too workaholic nerdy and he's just a normal person?
🤔
Thankfully he's the nicest person in our team, but I am getting fed up having to answer his questions many times.12 -
Intend to help a friend to find out what's wrong with a software installation in his laptop today...
But forgot that his Windows installed in Chinese version... how am I supposed to help.... (; _ ;)
I can't read Chinese... can't even find how to open Control Panel...
_________________________________
My native language is not English, but I always have all my techies set up in English.6 -
Tips from the "oh that wasn't the best idea" category: Don't store "date of birth" as UTC date/times.1
-
I've only been here for 1 month for my new position in Ops, and I already miss software development!
All I do everyday is just typing commands on the terminal.
If I am feeling fancy, I may create a script or two (that's the closest thing I have to writing code).
I hope I can get more interesting thing to do in the future. If not I can't see myself doing this in long term. It's OK for occasional tasks or added responsibility but I don't want to do it as my main job.11 -
Today at 16:00 UTC - ICANN is going to do the first even KSK-rollover for @, lets hope that internet is not going to break.1
-
Me everytime before our daily meeting:
"Breath in Breath out ...
I am not gonna pick a fight with anyone today ..."4 -
Friends were having great and fun time last night partying after (also) last week partying.
And now someone's having friends over for dinner in the shared kitchen.
While here I am hours staring at my screen trying to break the algorithm.
: /
______________________________
Me : Enough with coding! I need social life!
5 min later :
*Checking devrant and reddit/programminghumor2 -
The reason why I like to code alone in the dark is so that people cannot see my dumb mistakes such as 'forgetting to hit run after compile and wasting 10 min wondering why my code didn't show on the console'.
: /1 -
Friends/Seniors : "Hey, you should take these courses. They are easy and you can get easily an A!"
Who the fuck decide what optional courses to take based on if it's easy or not?!
Students take them because :
a. They are interested in the subjects
b. Knowledge/skills after attending the courses will be beneficial for future career.
I put my money more on option b though, i.e I'd rather get C's in courses that I found it useful, than getting A's in useless courses.
(Btw, my avg grade is just a little above Cs)
If my sole purpose was just to get straight A's, I would enroll in liberal art courses instead of this stressing half-CS course we're in.
You're a joke to yourself, that's why I don't hang out with you.3 -
I always wonder why the IT guys seem to be short tempered when dealing with dev related issues.
Now I understand...
For a few days I have to help my colleague setting up his new project and dear Lord...
I thought I have enough patience because I am a woman...
This guy is very very junior, I couldn't get any input/ideas from him when debugging
Dear god, help us because I am the only one with enough experience in this project.11 -
What I want to write :
//TODO : Parallelized this sh*t ???
What I actually write :
//TODO : Parallelized this part later if possible (i.e after checking if overhead doesn't cost too much)
Sigh.. I want to add more of my personality in my code.
: /2 -
I just bought my laptop last year.
But I already crash it several times due to my horrendous C++ programs.
Lifespan is greatly reduced.
/*Please bear with me, sweety!
At least, until graduation!*/
: /5 -
Interviewer said that passing technical interview means that 90% of the time I will get the offer.
In the final interview with management, I can't answer some questions because I didn't study. Isn't final interview should just about getting to know each other like hobby, interest, talking about company products?
They gave me some puzzle to solve :(
After that, they wait another 1 week just to tell me I don't pass. Why the fuck they wait 1 week just to tell me that? They should just tell me 1 day after!
I still have other job openings right now, but the job searching has been very depressing.
I will give it like 1 more month. But if I can't get any leads, I will just give it up. Maybe tech is not the right job for me.
I will just go back to my old job in non-tech. It's not exactly my dream job, but at least they don't treat me like shit like this.9 -
Q: "What's your most hated programming language?"
Me: "Lisp"
**Maniacal laughter from the interviewer**3 -
I am not a US citizen or an expert in law, so my questions are:
- Do you think this RESTRICT act that will potentially ban VPN use will be passed?
- Is the restriction only applied to those who use Tiktok or general use?
- Corporates also use some kind of internal VPN, is this included in the ban?
- How much dumber the gov is trying to be?
https://beincrypto.com/vpn-users-ri...7 -
Converting server time to any given local timezone is a pain in the ass.. at least in JS.
Here's what I've got:
convertNowToTimezone = (localOffset) => {
let d = new Date();
let millis = d.getTime() + (d.getTimezoneOffset() * 60000); //convert server local time to UTC millisec
d.setTime(millis - (localOffset * 60000)); //convert UTC millisec to required local time
return d;
}
where I pass localOffset as -330 (IST offset).
Works in chrome console but gives a diff of 4min in the server side nodejs I'm running it in..
🤬🤬😡😡😡😡😡9 -
Spent 3 weeks working on an issue (raised by dev A) by following the suggested solution stated in the issue.
Pushed a PR and got told by dev B that it's not the correct solution.
Dude, I am just an intern here and following whatever they told me to do. If you have a problem with the solution, please discuss it with dev A.
Now I may have to let go of the issue completely because it turns out to be much more complicated, not for someone with intern level skill.
FML, I guess this won't be the last time I had this right?7 -
DAYLIGHT SAVING!!
Up to this point, I was indifferent to the issue if it should be kept or not. My sleep schedule is fucked and non-routine anyway so one hour plus or minus doesn't play any role.
I got to a meeting scheduling problem, when I have 2 timestamps in variable timezones and want to calculate time difference. Both can have DST active. There is no algortihmic way to figure out. I checked SO and pytz and it's just a list of hardcoded dates when DST starts and ends. WHATHTEHELL.jpg
Not only we should abolish the DST, we should force the whole world into UTC/Zulu. And those, who refuse to adapt to UTC, will be forced to work with plain integer epoch dates.3 -
My first time doing a pair-programming for uni assignment.
My partner is actually smart (a Mechanical Engineering guy), except when it comes to programming :
1. Don't know how to spell FALSE
2. Don't know how to create array in Matlab
3. Poor variable naming
4. Redundant code everywhere
5. Not using tabs
6. Stealing my idea and spit it again in my face after claiming it as his idea
7. Mansplaining every line of his code like I am a stupid person who never sees a computer before.
He said he has an experience in Matlab, wants to specialize in Robotics and taking several ML classes. What did they teach anyway in class to produce a shitty programmer like him?
Thankfully despite his being an arrogant shitty guy, he still manage to get our code to works.
That's good because if not, then I will happily push his head under water while slowly watching him drown.
🤨6 -
It sucks, when your clients live in a different timezone and they start to work and complaining about things just when you want to leave the office.
-
I was having a discussion with my Spv because I am stuck at my project, when suddenly he said :
"Hey, you seem to enjoy this subject!"
And I was just standing there speechless..
🤨
Excuse you...
I spent so much time than required in the contract because I'm getting paid and more importantly because I can put this experience in my portfolio.
Not because I enjoy this job.
I'd rather work on my personal project, preparing for job interview or playing with my cats if I have another choice.
He is a nice guy and has helped me a lot, but in the end it's all about the money.
Or maybe because I have a hard time trusting people these days.
I can't wait to start job hunting next month so that I can say goodbye to this job.1 -
In my PR :
Senior dev A : "You should change the format according to <link to coding standard>"
Me : "But it doesn't mention anywhere about that format. <senior dev who wrote the standard> also agrees with me. Other reviewers also already approved."
Senior dev A : **proceed to give me an example from a file that's not even in the PR scope**
Me : "I cannot find that file in my PR"
Senior dev A : **give me another example example from my PR**
Me : "Okay I missed that, I am gonna fix it, but other files are already using consistent format. I have already merged changes for 500 files using this format, and I still have 400 files to go.
Do you really want me to revert the changes from 500 files?" :/
Senior dev A : "I don't want to be your enemy, I just want to make our codebase better"
Me : **Mad because he took this personally.**
**I don't want to be your enemy either. I also care about the codebase. I just want to finish this ticket ASAP instead of implementing your cosmetic changes that's not even in the standard so that I can work on another ticket that will have more impact to the company**
Senior dev A : "Ok, I will approve it, just add some whitespaces"
Me : 🤦♀️
I sometimes think that some senior dev just want to flex when they're reviewing PR.
They just want to let people know they wield the power.9 -
Hey, just joining devrant and find it so much funnier than
https://reddit.com/r/...
Reddit is a funny site but I find it more and more boring..1 -
...This algo can predict new thermoelectric material discoveries years in advance...
Me to all material scientists : "Work harder or we'll replace you with AI".
https://techxplore.com/news/...
P.S : I also need to work harder as I barely know the surface of Linear Regression.1 -
I am not a PHP dev but this back end error message when accessing /notif looks weird.
Is this a security bug?7 -
I am so bored with my job in Devops, I only need a few dirty scripts to run everything...
So much so that I started to search for C++ jobs (going back to my previous background), even though I hate C++.
At least it's going to be more mentally stimulating, they also tend to be paid higher than Devops.5 -
In several occasions I run rm -rf * in the wrong folder (or wrong server!!).
No big deal so far, but I had to spent more time to redo my work since Linux has no fucking recycle bin like Win!
So I created this helper function to give my brain a few seconds to think before my finger hit Enter.
delete_all_files()
{
echo "WARNING:Delete all files? Type fluffycat to proceed"
read x
if [ "$x" = "fluffycat" ]
then
echo "Deleting all files..."
rm -rf *
fi
}
alias myrm=delete_all_files
Hehehe... I am a genius 😎18 -
These fucking calendar e-mails. Fuck. Right. Off.
They never display correctly in all clients.
If the meeting is at 1pm, just fucking say that. I don't want to pick through a load of shit only to find that the calendar app lied about UTC.
Just missed a sodding call due to this crap.4 -
semi dev related(later half)
A common and random thought I have:
A lot of units that humans use are either needlessly arbitrary or based on something weird. Like Fahrenheit. That shit is weird! 0°F is the freezing point of a water and salt solution. What a weird fucking thing to use!
But also, I like Fahrenheit more. Probably because it's what I was raised with and switching is tedious (though I'm trying. I'd like to use metric more), but also because one degree F is a smaller, more precise change. You can describe more accuracy without decimals.
On the other hand I prefer metric for length. Centimeters, and centimeters are way more precise and way less confusing than inches and .... 1/8th inches? Who the fuck decided on 1/8ths?!
Which brings me to my common thought:
If you look at a Unix timestamp, you can approximate somewhat when it happened. Knowing the current timestamp and a few reference points you can see RELATIVELY what a epoch stamp translates to. A few days ago, an hr ago, 2014ish.
This leads me to think that if we actually taught from a young age to think in epoch as a unit (not as a replacement to normal date formats but as a secondary at first) that we could just naturally read epoch time in the same manner we read dates like "28/01/2006 14:24:10 UTC"
In your brain you automatically know how old you were when that timestamp happened. What grade/job and where you lived at the time. What season it was. You know how far into the day it was, a little before lunch (or after or whatever, your time zone will vary). Now try with 1138458250. I can usually get roughly the year, and month if I really think about it, but that's it. And it takes much more effort
I'm sure there's other units we could benefit from but epoch is the one that usually brings this to mind for me.13 -
Good UTC night everyone (23:59)
which is the only way to say that I am going to stop devranting now without knowing where you live. -
I found a budget salary for dev with 4-5 YOE in 2011 in my company, digging through internal old docs.
Assuming 2% increase per year, the 2023 budget salary is now EUR 15k more than what average dev get in my company.
I remember that someone mentioned similar thing in other socmed where he found through internal docs, salary for his position 10 years ago and now are the same, totally neglecting inflation.
On the other hand house/property values has doubled within 10 years.
How can we pressure companies to give us appropriate salary?
When I ask for increase, they will just say no because it's the market rate, but the market rate sucks.5 -
This phising email I just received in my yahoo account almost got me fooled with the very convincing email design, but thankfully the culprit didn't smart enough to spoof his email address.
Ohh and they attach a suspicious pdf file too despite the message didn't say anything about attachment.
Apparently the spam detector in yahoo is not very good as this one was received in my main inbox.2 -
Bug report : date_created is wrong by one day, but only in the afternoon. Gaaah ! Why did nobody save the user's offset...
Or better yet just normalize to UTC!?!? -
from Windows host->run Ubuntu container A
-> from Ubuntu container A, run Ubuntu container B
-> from Ubuntu container B, run Ubuntu container C
-> from Ubuntu container C, run Ubuntu container D
-> ....
Recursion-mode ON16 -
Spot what's wrong with this command!
It took me 10 minutes scratching head to find it out. This is why we still need to use our brain when copy paste-ing code.
😕11 -
Pissed af at my idiot teammates for dragging down my project grades. But I believe this won't be the last time as there are more idiots out there.
I need the credits to graduate .. sigh...
: /3 -
!dev
Still haven't got a schedule for my master thesis defense after 2 months. The normal deadline is 1 month.
My professor is ignoring my follow up emails, even after the head of the program urging him to finish the review.
I feel discriminated as this didn't happen to other students that worked under him before.
I am job searching now, what if a job offer came but I still couldn't get a graduation certificate because of my delayed defense.
Will the university willing to compensate for the time loss not being able to work?
Maybe I should start finding out how to hire a lawyer in case I have to sue the uni.
😡3 -
After trying 4 different versions of installation, applying patch, digging through obscure sites, down the rabbit hole, finally
ERROR at 97%
(; _ ;)
Back-up plan : Forget everything... buy land somewhere in the in the mountain and be a farmer.1 -
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!
-
How many job applications did you send to get your first full-time job?
My friend applied for 200 jobs before he got one. I am in my 30s now, but my motivation has almost run out.
The future seems bleak.16 -
UNOFFICIAL DEVRANT CLONE JAM
Challenge at least 3 participants of this spontaneous hackathon by presenting your devRant clone until tomorrow, 4 Dec 18:00 UTC! After that, I will repost entries for public rating by people of devRant.
Don't fret and show what you're made of. Each participant gets a certificate from dR Bulletin Board - and winners receive extra artistic prizes contributed by volunteers!3 -
I just came with a problem trying to get the value of an HTML input of type date and trying to throw it into a Javascript Date object... After about an hour of searching (Google, Stackoverflow) I realized HTML5 date inputs use UTC timezone (defined by W3C) and Javascript uses your local timezone and this difference is messing with my code giving me a JS obvject 1 day before the HTML date...
Why they do this kind of thing?1 -
One of the guys were tasked to implement a button with a functionality.
When I clicked the button, I got an error. Asked the guy why, and he said that fixing the functionality was not part of the task. What? So basically he just put a nice little button that does nothing? And our team lead just approved his merge request?!
I can't comprehend this logic at all.
Another story, I overheard a different guy debugging a pointer array (C++) with a senior. I couldn't keep my face straight when he seems to struggle to dereference a pointer and iterating through an array. He can't do that and he calls himself a mid-level engineer?!
The more I stay in this company, the more I realize that many people in my teams are clowns.4 -
why the fuck is the fucking windows embedded kernel changing the utc time when changing the current daylight setting. its not supposed to change for fucks sake..per definition....its the local time that shall change...ridiculous..
-
I have forgot to store time on mysql database in UTC format, now i have to rebuild lots of application code. Damn...
-
When the framework you're using decides to work in UTC after 5 years of using default system timezone. And instead of giving you the option to change timezone, hardcore enforces it by:
os.environ['TZ'] = 'UTC'
time.tzset()
For people who don't know python.. It basically tells your code that your system time is set to UTC (ingnoring the right timezone)
Now we get one bug after another because of this undocumented shitty change without changes in how time fields behave in different client timezones.
😒🔫
(Don't get me wrong, using UTC is logical however not in an existening application and forcing devs to rewrite all code that handles time fields)1 -
Have you interacted with other devs with same level of experience and wondering about the big skill gap between you and them?
Wondering if you are actually a walking genius for having a lot more knowledge/understanding or if they are just plainly dumb and lazy.
🤷♀️9 -
iAPPLIED CS UNIVERSITY, DAY 1 (2018-09-24)
11:00 UTC+3: Arrived at the secretary's office to complete my registration. I met quite some people; I forgot the names of some. I spent some time over there, so I took the 13:00 class instead of the 11:00 one. It's still early, so we pick whichever we want.
13:00: Procedural Programming at the Computer's lab. The computers were running Windows 8.1! 😱 I might connect to my laptop via RDP. It would be very cool. The course was about C, but the first time was just an introduction. We are going to use Code::Blocks. We were also explained the (HTTP only) web platform in which we are logged in via our passwords and submit our assignments. The professor was very nice, but this day at least was very boring. I was watching CodeMinkey cartoons, trying to solve AdLitterams.
18:00: Back for Applied Mathematics I. At the same computer lab. No lesson did happen, because we have to s learn theory stuff first (every Friday I think). Back to home.
Tommorrow is going to be a hard day...:wq1 -
I overheard this mid level dev discussing a new task with a senior dev. They're discussing compile error in cmake. I realized that the mid level dev asked so many basic stuff that are easily google-able. Mind you, our codebase is cmake based, how come she didn't know even the basics and yet survive in our company for years?
I felt bad for the senior dev, as I knew he's busy with his work. He couldn't do his job because he had to do hand-holding with this dev.
My biggest mistake is often trying to solve things by myself which will take hours instead of just asking a senior. But asking other dev for every little things are also annoying. Why can't you just google shit up or RTFM?1 -
Friend : Have you take a look at this part? We will discuss it this Friday.
What I want to say :
"Don't underestimate my ability to procrastinate, sleep on my problem, run away from my responsibilities, and don't give a sh*t about everything."
What I actually said:
"Of course but I will look at it again thoroughly."
_______________________
Maybe my frustration and depression are not showing enough on my face.
: /1 -
My master thesis is in ramble.
What I thought to be an achievable task in the beginning turns out to be very challenging.
My skill is not up to it.
The assistant prof I worked with is also not very helpful. I thought he's already familiar with the lib I will work with, turns out he's not so I have to study it by myself.
Me : **Asking question A**
Him : **Explaining B, C, D that's not really related to A. My question went unanswered.
Him giving me explanation on things that I already knew**
Me : "How about this code? Can we please focus on the code?!"
Him : **Finally explains the code so I can move forward a little**
Apparently I have to grow fangs and horns to scare people to give me what I want. :/
He and my prof are not in sync about how to solve the task.
They told me that even though I was behind my deadline (30% progress at 50% time), I still have some time before the deadline of the thesis.
The truth is, if I no longer believe that I can solve it, even if they gave me a time extension, it's going to be useless.
My motivation of finishing it is fading away. It's not a subject that I enjoy, the people I work with are not helpful.
I have been in depression for 2 months, and it's taking a toll on my health.
I am seriously considering dropping it and just let go of my master degree. There are many people who can work in IT even though they don't have proper formal education eh?5 -
UNOFFICIAL DEVRANT CLONE JAM - LAST VOTING DAY
4 people have cast their votes on devRant clones with 19 points for @retoor and 3 for @SidTheITGuy. It's a huge rift, which will be hard to clamp by 12:00 UTC!
Finnegan (by @retoor): https://devrant.com/rants/9946268
ragedev (by @SidTheITGuy): https://devrant.com/rants/9946238
Despite the obviousness and overall weirdness of the end product chosen for this hackathon, I want you to give your feedback to others who want to see the best of devRant, but somewhere else. What do you think a serious devRant alternative should have and what are expectations for the design?
I'm sure all these topics will keep reappearing, so maybe this rant can be used to gather all the thoughts in one place before spreading them around.1 -
A classmate I haven't seen in 2 years popped up in my Linkedin.
I looked up her profile and it seems like she now works at SWE in okayish company after an internship in a prestigious company.
This throws me a little bit (I am jealous obviously). We've worked in the same uni project before, she's okay when it comes to theoretical courses but a bit behind when it comes to anything related to computer. I would never think of her working as SWE as she did better in traditional engineering (think Civil Eng, Mechanical Eng etc, Aerospace Eng.).
And yet I heard a lot of people online complaining about difficulty of finding graduate/junior position. If a person like her can find something, surely someone with pure CS background should find something easier. But then again, job hunting is 50% pure luck. I have concern on the quality of work that she will produce, but maybe I underestimate her a lot? 🤔6 -
FUCKING TIMEZONES. FUCKING JAVASCRIPT.
Date.parse("2019-01-01") = local time
Date.parse("2019-01-01T00:00") = UTC
Why? How's that supposed to make sense? Am I stupid? I just want UTC to be assumed for everything. Anyone? Any suggestions?4 -
I am just beating around the bush since I started this project, hoping that one day I got lucky and found the shiny solution.
/*sigh*/1 -
I was sad this morning, because my thesis supervisor being an asshole that I seriously considering to just drop out..
Then I checked my bank statement and salary of 2 months has been deposited today.
Who needs that fucking degree when I earn more than you?
Who's the joke now?! 🤜🤡🤡
I am going to give them a middle finger tomorrow.😉5 -
Saving time data with timezone in the server is really headache!
Someone says keeping server time in UTC is good practice. -_- -
for (size_t day=0; day < Inf; day++){
printf("I hate you Windows, I am switching to
Linux!");
pause (4hours);
printf("I love you Windows (=^..^=) ");
}2 -
How do you tell a senior that I don't want to be buddy-buddy with him outside of work?
He keeps trying to befriended me, inviting me to his house along with his friends. I don't think he's romantically interested in me, he's married, he's just too extroverted, has huge social circle.
Being a chronically introvert, I just want to go home and sleep after work. It's enough having him breathing down my neck for 5 days/week, don't want to see his messages during the weekend.
I have to keep the relationship cordial and polite though as my job satisfaction depends on that.6 -
Ok, can someone explain to me why the old-Unix overlords decided to use -v in 'grep -v' as flag to invert the result.
It's not fucking intuitive.
Other normal utils will use -v as abbreviation of --verbose or --volume ...
I spent some time digging around this particular script scratching my heads why it's not working.
🤔3 -
If you have messy and disgusting desk, messy and disgusting car, pretty sure your code is messy and disgusting as well.
Sincerely,
Your team who is fed up with maintaining your shitty code6 -
Why do javascript dates have to be so shitty?
Can anyone explain why 'Feb 18, 1977' is in the local timezone but '1977-02-18' is UTC?2 -
What the crap? Get this, I'm setting the timezone to UTC in PHP. All find and dandy, only that it gives me the wrong FUCKING date and time, like what is wrong with you xD I changed nothing since yesterday and yesterday it gave me the correct time xD2
-
Does anybody here knows an opening for retail job/cleaning services?
I am so fed up with this sh*t I'm working right now.
: / -
Java server faces (primefaces) needs you to define shit like "DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" or that stupid piece just assumes that every date time should be loaded as UTC timezone.
Production standard my ass nobody wants to use such verbose, outdated and logically incomprehensible piece of shit, not even at gunpoint -
"We can't install the latest Win 10 features and security improvement on your PC due to low disk space."
Time to clear up.
Should I delete my hands and feet too?
: /6 -
Join a coding boot camp and cramming myself for technical interview instead of this almost useless master degree.1
-
So, about the devRant meetup(see previous rants), I didn't really hear anything about tomorrow, so just in case, I'm continuing with my proposal, it seemed more people were up for Sunday then Friday, so post the time you are free at on Sunday, along with your time zone(or UTC/GMT for privacy)30
-
This is the first time I have a bad PM and it's much worse than having a pain in the ass colleague dev. A bad dev will mess his/work project and maybe slow down 1-2 other devs.
But a bad PM will doom the whole project, wasting lots of time of the devs working under him/her. Costing much more company's money.
PM:This task should be ready by next week.
Me : This task will require X weeks time for developing and delivery
PM: What?! That's too long, it's a simple one, should be done in a few days.
Me: **explaining the challenges, limitation, env set up, testing etc. Also because I am a junior so may take more time than experienced dev**
PM: **insist that this is important blah blah**
Me: Understand your points but X days is just too little, I don't want you to blame me for missing the deadline. Either we get a reasonable deadline or you can get more experienced dev to do it faster.
**Knowing well that I have the most experience in this task and other devs are busy with their own tasks**
In the end I have to escalate this argument to more senior manager because both of us won't budge. Not only she agreed to extend the deadline she also assigned a senior dev to help me when I am stuck.
His other mistakes I noticed during my time working under him:
- not consulting senior dev for the approach to the task (thus we have to change the design twice).
- assigning tasks to people without sufficient background (a java dev is being assigned a python task, it's doable but it's going to be faster if we assign to someone with more python experience right?)
I understand that our company is short-staffed, but I begin to wonder if the stress the devs endure is because of that or because of his incompetence.
Next time, I am going to specifically ask not to work under him again.2 -
My department just installed a new high performance GPU, so :
1. Good bye, my old laptop GPU!
2. Let's play around and break the shiny thing! 😎
(more likely I will be the one who break down due to frustration though 😬)1 -
Came into work this week after the holidays and was an email from azure saying unless we redeploy our virtual machines before next week they will do it at midnight utc - which happens to be mid-day here.
No problem I just email our client and schedule a time Friday afternoon where the servers will be unavailable and I'll do it then.
Today (Thursday) azure email and say they are going to just reboot our servers now. I check and the application is not working. Clients start phoning in saying they cant access the system.. -
I was a bit confused when my supervisor told me to use Windows VM through Vagrant for testing environment. AFAIK each VM should be treated as a single machine, so it requires a Win license.
There are several criterias for us to be able to use Win WM legally.
One of them is Qualified Multitenant Hoster (QMTH) Program from MS, it authorizes qualified 3rd-party hosting service providers to host customers’ Win VM. Other option is to check if we have on-premise dedicated use rights.
I don't know if we fulfill any of the criteria. I don't want to cause any trouble so I am not gonna ask my supervisor about it.4 -
Is it just me that would prefer to work with Senior Engineers rather than mid level engineers?
Some mid level engineers are just pain in the ass. This one guy insist on getting perfection in all of the requirements. The problem is that if you work with software/lib for so long, you realize that most if not all software are buggy or have limitations.You can't expect everything to be perfect. Sometimes something just works/don't work and nobody knows why. Need lots of shortcuts/hacks just to make it work. I would say that 80% completion is good enough, especially since we're running out of time and manpower.
I noticed that Senior Engineers tend to be less strict. If it works then it's good enough, if we found some bugs later then we'll fix it. I like this practicality so we can tackle more important issues at hand.
I hope that I don't have to work in the same project with this guy again.2 -
Why are you so slow Kaggle...
(((preparing kernel)))
(((committing)))
I have tons of data to analyze with multiple methods...
sigh...1 -
At work thres a legacy "common" DLL, which held a helper function that's incharge of creating Slugs, it takes an MD5 of the current time stamp UTC, removing non-URLable chars, and taking the first N chars that remain then
Ngl I was impressed at first at it, but then I thought, its Uniqueness isnt guaranteed
But then again I thought, the uniqueness can be tested via a call given it's indexed anyway in DB so O(1), and if non-unique, just re-call the function. Even in the worst case scenario the hits won't be that many anyway
I didnt change the code, tho at first I was inclined to given my "it isnt proven-unique" stance but am wondering, if this is a good approach
While coolish, it seems wrong in the back of my mind somehow...1 -
Quick Plesk config question...
Been getting open_basedir() notices in the WordPress logs, and frankly it's flooding the log right now. Sample below:
[24-Feb-2019 07:05:19 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-content/db.php) is not within the allowed path(s): (/var/www/vhosts/webspacedomain.com/:/tmp/) in /var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-includes/load.php on line 397
Checking the settings for open_basedir in the domain's PHP settings, it's currently set to the following default value:
{WEBSPACEROOT}{/}{:}{TMP}{/}
By my read, that **should** be granting permission to the directory. I just checked it against the setting on the dev server (which doesn't report this error), and it's configured in the same manner. Only difference between Dev environment and this one is that the one in Dev is in vhosts/webspacedomain.net/DEV instead of just vhosts/webspacedomain.net
Is there something I'm missing here?4 -
Deadline for your devRant clone: 18:00 UTC!
Help and chat: https://matrix.to//...
Posting guide: https://kbin.melroy.org/m/drbboard/...
Works in progress: https://kbin.melroy.org/m/drbboard/...
Artistic prizes for winners, certificate for everyone. -
"We'll publish critical vulnerabilities in PGP/GPG and S/MIME email encryption on 2018-05-15 07:00 UTC. They might reveal the plaintext of encrypted emails, including encrypted emails sent in the past. #efail 1/4"
https://twitter.com/seecurity/...
Let's see how this unfolds. While there is chaos I trink some tea and laugh, because I never send critical information over e-mail. 🧐🍵4 -
!rant
Are there any worthwhile jobs were you (remotely) can code part time on the weekend. Want to make some money on top of my daily job.
Maybe it would also be possible to contribute in the afternoon (since my timezone is utc+2).
Languages of choices would be Java (preferly spring boot stuff) >> Python / JS. Any idea if that is possible?4 -
Timecalculations and Datetime manipulation from UTC to locale where locale can be anything are by itself annoying but Javas Date and Calendar APIs always make me feel like "Seriously?! Fuck you! What do you want from me?! "
Argh....
Wasting so much time right now to get a fairly easy app built as showcase for new customers and continue with my life!2 -
New project consists of 3 libraries with bunch of dependencies each.
Installation script not working, so here I am combing through the haystack fixing the error messages.
I hate installing stuffs with their dependency nightmares... I just want to start developing, man...😩 -
Dad woke his son up and said
"it's 7 am, wake up and get to work, you lazy shit" .
Son shouted "Don't worry , my service runs in Utc time zone"😂😂😂 -
I am trying to extract data from the PubSub subscription and finally, once the data is extracted I want to do some transformation. Currently, it's in bytes format. I have tried multiple ways to extract the data in JSON format using custom schema it fails with an error
TypeError: __main__.MySchema() argument after ** must be a mapping, not str [while running 'Map to MySchema']
**readPubSub.py**
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
import json
import typing
class MySchema(typing.NamedTuple):
user_id:str
event_ts:str
create_ts:str
event_id:str
ifa:str
ifv:str
country:str
chip_balance:str
game:str
user_group:str
user_condition:str
device_type:str
device_model:str
user_name:str
fb_connect:bool
is_active_event:bool
event_payload:str
TOPIC_PATH = "projects/nectar-259905/topics/events"
def run(pubsub_topic):
options = PipelineOptions(
streaming=True
)
runner = 'DirectRunner'
print("I reached before pipeline")
with beam.Pipeline(runner, options=options) as pipeline:
message=(
pipeline
| "Read from Pub/Sub topic" >> beam.io.ReadFromPubSub(subscription='projects/triple-nectar-259905/subscriptions/bq_subscribe')#.with_output_types(bytes)
| 'UTF-8 bytes to string' >> beam.Map(lambda msg: msg.decode('utf-8'))
| 'Map to MySchema' >> beam.Map(lambda msg: MySchema(**msg)).with_output_types(MySchema)
| "Writing to console" >> beam.Map(print))
print("I reached after pipeline")
result = message.run()
result.wait_until_finish()
run(TOPIC_PATH)
If I use it directly below
message=(
pipeline
| "Read from Pub/Sub topic" >> beam.io.ReadFromPubSub(subscription='projects/triple-nectar-259905/subscriptions/bq_subscribe')#.with_output_types(bytes)
| 'UTF-8 bytes to string' >> beam.Map(lambda msg: msg.decode('utf-8'))
| "Writing to console" >> beam.Map(print))
I get output as
{
'user_id': '102105290400258488',
'event_ts': '2021-05-29 20:42:52.283 UTC',
'event_id': 'Game_Request_Declined',
'ifa': '6090a6c7-4422-49b5-8757-ccfdbad',
'ifv': '3fc6eb8b4d0cf096c47e2252f41',
'country': 'US',
'chip_balance': '9140',
'game': 'gru',
'user_group': '[1, 36, 529702]',
'user_condition': '[1, 36]',
'device_type': 'phone',
'device_model': 'TCL 5007Z',
'user_name': 'Minnie',
'fb_connect': True,
'event_payload': '{"competition_type":"normal","game_started_from":"result_flow_rematch","variant":"target"}',
'is_active_event': True
}
{
'user_id': '102105290400258488',
'event_ts': '2021-05-29 20:54:38.297 UTC',
'event_id': 'Decline_Game_Request',
'ifa': '6090a6c7-4422-49b5-8757-ccfdbad',
'ifv': '3fc6eb8b4d0cf096c47e2252f41',
'country': 'US',
'chip_balance': '9905',
'game': 'gru',
'user_group': '[1, 36, 529702]',
'user_condition': '[1, 36]',
'device_type': 'phone',
'device_model': 'TCL 5007Z',
'user_name': 'Minnie',
'fb_connect': True,
'event_payload': '{"competition_type":"normal","game_started_from":"result_flow_rematch","variant":"target"}',
'is_active_event': True
}
Please let me know if I m doing something wrong while parsing the data to JSON. Also, I am looking for examples to do data masking and run some SQL within Apache Beam4 -
My Snowflake Tor extension is automatically off every time I start Chrome. I have to turn it off and on for it to activate.
Works perfectly fine on Firefox though.
😕