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 - "coffee to not sleep"
-
Long rant ahead. Should take about 2-3 minutes to read. So feel free to refill your cup of coffee and take a seat :)
It turns out that the battery in my new Nexus 6P is almost dead. Well not that I didn't expect that, the seller even explicitly put that in the product page. But it got me thinking.. why? Lithium batteries are often good for some 10k charges, meaning that they could last almost 30 years when charged every day! They'd outlive an entire generation of people!
Then I took a look at the USB-C wall charger that Huawei delivered with this thing. A 5V 3A brick. When I saw that, I immediately realized.. aah, that's why this battery crapped out after a mere 2 years.
See, while batteries are often advertised as capable of several amps (like 7A with my LiitoKala 18650 batteries that I often use in projects), that's only the current that they can safely take or deliver without blowing up. The manufacturer doesn't make this current rating with longevity in mind. It's the absolute maximum in current that a given battery can safely handle.
The longevity on the other hand directly depends on the demand that's placed on the battery. 500mA which is standard USB 2.0 rating or 1A which is standard USB 3.0 rating, no sweat. The battery will live for at least a decade of daily charges and discharges like that no problem.
But when you start shoving 3A continuous into a battery, that's when it will suffer. Imagine that your current workload is 500mA and suddenly you get shoved 6 times that work upon you. How long would you last?
Oh and not only the current is a problem, I suspect that it also overvolts the battery to maintain a constant current all the way till the end. When I charged my lithium cells with my lab bench power supply, the battery would only take a few milliamps when it got close to the supply voltage. Quick bit of knowledge: lithium cells are charged at constant current first, then when the current drops below that, it continues at constant voltage - usually 4.2 or 4.35V depending on the battery. So you'd set your lab bench power supply at 4.2V 500mA. But in that constant voltage mode, as the battery's voltage and the supply's voltage equalize, the current drops because the voltage difference becomes lower. Remember, voltage is what causes current to flow. Overvolting at the supply to stay in constant current mode all the way till the end speeds this process up but can be dangerous and requires constant monitoring of the battery voltage.
So, why does Huawei and a bunch of other manufacturers make these 3A power chargers? Well first it's because consumer demands ever more, regardless of the fact that they can just charge at 500mA for the night (8h of sleep) and charge a 4000mAh battery from 0 to 100% no problem. Secondly it's because sometimes you need that little bit of extra juice fast, like when you forgot to plug the damn thing in and you've got only 30 minutes in the morning to pour some charge into it.
But people use those damn fucking things even when they go to bed, making that 3A torture a fucking standard process!! And then they complain that their batteries go to shit?!
Hopefully this now made you realize that the fast charger shouldn't be used as a regular charger ^^29 -
FUCK YOU TOO COFFEE MACHINE!
HANDING ME YOUR STUPID FUCKING SHITTY WATER BACK. YOU'RE SUPPOSED BREW SOME FUCKING COFFEE TO FUCKING MAKE ME AWAKE WITH ONE FUCKING HOUR OF SLEEP NOT PISS IN MY CUP!
I'll just go back to bed...5 -
I am done with people, I just want one single room, with good internet, dual monitor setup... And I can spend my whole life like that... Being social, fuck that shit... I have devRant for that... and rest, I just want to code, listen to music, drink coffee and sleep like hell...
Why is it that I can understand some other dev's code faster that understanding someone's feelings. Why is it that I am good with principles of Programming Languages, but not the basic Principles of Humanity... Yes, I agree I don't have feelings, but is it wrong not to have feelings, I am a dev, I am supposed to be good with Codes, not humans... I want to be in my small space of close people. (My family), and that's it... I am no good with others. I hate Facebook, but love devRant, I spend more time on StackOverflow than that on WhatsApp. Why is it so... Why29 -
So there it fucking goes.
Hi. I'm WillibertXXIV.
I'm not a programmer by trade; I have a more than fulltime job as a cook. As for the last year, I spent pretty much all my free time, overlapping my sleep time, to learn how to code.
All that so I can create a game that I started working on the same day I started my learning process. So far it's shit and it's going to stay that way for a long time. Only I can say this. It's my baby. It's fucking ugly and shit but it's mine.
Yesterday I broke it. I broke my baby. I don't know how it fucking happe. When I went to sleep I had a steady 175fps, nice realtime lightning and player / enemy that flowed like running water. I worked really hard to make that happened. Profiling, writing better code, profiling, etc. It's still not good, it's less shit.
I woke up, beautiful day. Not too warm, not too cold, that sweet spot right in the middle. Girlfriend already made the coffee. Perfect. Woke up, sat down to start my morning time work before going to my realjob and
BAM
Everything is shit, 20fps max. That one thing, gfx.waitforpresent, showing up in the profiler eating everything as the game run. Movements are now of stroboscopic nature. Light is still ok but what good does it do now fucking piece of shit. I'm not qualified enough for this shit.
Fuck,
Fuck this,
Fuck this shit,
Fuck this shit i'm out of here.26 -
On call: part 2... WHY THE HELL ARE YOU GOING TO ASK US TO STOP RESTORING *YOUR* SERVICES SO *YOUR* CUSTOMER HAS ACCESS TO *YOUR* STUFF BECAUSE YOU WANT TO SLEEP. If you call me because shits down, I'm going to fucking fix it. Idgaff if you're tired because it's been an 8 hour day, I've been working for 15 hours and I am contractually obligated to get this shit up asap and you needing your fucking beauty sleep is not a damn good reason to fuck up my contact...
(They got my boss' boss' boss' boss' boss' boss on the line who told them that but nicer -its why she gets paid more- and they still insisted. But at least they owe US more money to cover some *legal contractual mumbled jargon* it makes it better, and it's documented so they can't turn it around on us)
Will someone please send coffee? I have 2 more days of this.7 -
When I'm tired, I can't do a damned thing. If it takes effort or concentration, I'm useless. Games are just frustrating. If it's something enjoyable, I simply can't care enough to enjoy it. If I read a book, I can't focus on the words, and won't remember anything I read. If its mindless like watching Netflix, I won't remember the next day, or rather I'll remember just enough to ruin it for myself.
So why not sleep?
Because I've been feeling like this every day, all day long for months. No, that vile liquid called coffee doesn't help. If I rest my eyes and stop thinking for a few minutes, I wake up a little and can function normally for a minute or two before passing out again. I'm not depressed, or at least I don't think I am. I feel like my brain died or got replaced with a lizard's.
And this sucks because I'm still during the probation period at work, and learning the sprawling and intricate codebase is actually challenging. And they're giving me large tickets because I was a dummy and impressed them too much.
Idk what's wrong with me, but I hope it stops soon.
I miss being able to think and plan and do anything besides just struggle to stay awake. 😞16 -
- Go to sleep early
- Get up at 5-6
- Drink quality coffee
- Work at your desk not from the bed or couch
- Don't start new projects until the last one is done
- Have a good and healthy diet
- Excercise frequently
Essentially don't be like me... Be like anyone else but me and you'll do fine...15 -
My Perfect Day : Assumption
Woke up at 6. Went for morning walk or do yoga or some sort of stuff.
Came back at 7. Went for daily routine, like bathing and all.
Went to prepare breakfast at 7:45. Prepared some eggs and bread and coffee.
It is 8:15 now. Reading news papers or watching tv and doing breakfast.
At 9 check mails and prepare some stuff.
At 9: 30 went for office. Reached office 5 minute before 10, safe and sound.
Came back at 7 by evening. Did some rest. Prepare dine till 9. Take a bath. Complete the dine.
At 10:30 ready to sleep.
Actual Scenario :
Woke up at 8:30. No time for yoga or morning walk. No time for preparing breakfast as well. Went straight to bathroom. Came back in 20 minutes. Made a cup of coffee. No time for newspaper or tv.
Feeling lazy and tired already. At 9:10 went for office. Before reaching office stopped at fast food joints. buy some junk food. Eat them. Got traffic jam and reached office late.
Started working but feeling lazy. Boss asked twice about the project status and i am unable to think a single line of code.
However, days passed. Boss scolded me. I promised him to finish the work after reaching home.
Reached home at 7:30. Late for no reason. Went straight to bed. Sleeps a hour. But took 20 minutes to leave bed.
Started working on projects i did not complete in the office.
Time fly and it is already 1 in morning. No dinner. Tired as fuck but hungry as well. So made some eggs and eat. Wrapped the task but it is 3:30 in morning and i jumped to bed for sleep.
Loop.3 -
The wife and I decided (together) to change our daily habits and get up early again (together).
It's 6am now, I was rudely awakened by overtly excited dolphin noises (the alarm I set), crawled out of bed towards my coffee machine (for an intravenous pick-me-up) and now sit here, in the kitchen, half an hour later and alone, all while she's sleeping like a beautiful perfect little angel.
I am contemplating whether or not I should powerbomb back into bed to wake her up or just brush my teeth and leave for work, letting her sleep.
Which would be worse, because she'd sleep till, like, 10am, be late and all that.
Well guess what.21 -
I'm a DevOps engineer. It's my job to understand why this type of shit is broken, and when I finally figure it out, I get so mad at bullish players like AWS.
It's simple. Install Python3 from apt.
`apt-get update && apt-get install -y python3-dev`
I've done this thousands of times, and it just works.
Docker? Yup.
AWS AMI? Yup.
Automation? Nope.
WTF? Let's waste 2.5 hours and figure out why this morning.
In docker: `apt-cache policy python3-dev` shows us:
python3-dev:
http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
But in AWS instance, we see we're reading from "http://us-east-1.ec2.archive.ubuntu.com/... focal/main" instead!
Ah, but why does it fail? AWS is just using a mirror, right? Not quite.
When the automation script is running, it's beating AWS to the apt mirror update! My instance, running on AWS is trying to access the same archive.ubuntu.com that the Docker container tried to use. "python3-dev" was not a candidate for installation! WTF Amazon? Shouldn't that just work, even if I'm not using your mirror?
So I try again, and again, and again. It works, on average, 1 out of every 5 times. I'm assuming this means we're seeing some strange shit configuration between EC2 racks where some are configured to redirect archive.ubuntu.com to the ec2 mirror, and others are configured to block. I haven't dug this far into the issue yet, because by the time I can SSH into the machine after automation, the apt list has already received it's blessed update from EC2.
Now I have to build a graceful delay into my automation while I wait for AWS to mangle, I mean "fix up" my apt sources list to their whim.
After completely blowing my allotted time on this task, I just shipped a "sleep" statement in my code. I feel so dirty. I'm going to go brew some more coffee to be okay with my life. Then figure out a proper wait statement.7 -
Programming made me addicted to coffee
So here I am at 4am ranting about not being able to sleep after having drank some at 26 -
1. Keep your rythm: 7/8 hours of sleep each day and DON'T take your work home. Unless you have your own business ofcourse. Still: don't wear yourself out!
2. Put on music. Me personally like fast punk when i'm struggling with a deadline. Makes you want to go faster.
3. Close ALL communication like chats, mail etc. Hell i even thought of a sign "do not disturb"
4. Coffee. Lot's of coffee
5. Use a time tracking method like pomodoro5 -
Unfortunately, "developer brain" does not respond. You have the following options:
Option A
Refill coffee-mug, drink and keep on waiting for a response.
Option B
Go to sleep.1 -
God I wish it was legal to kill people... Taxi driver stopped outside the building.. on the street, not even parked, bur there are many empty spaces that he is also blocking - which would be another issue with these assholes during the day time..parking in the street, going to get some coffee, not the takeaway.. they sit on their fat asses and watch you struggle to park a car cuz it's a narrow street..
And now he's blasting music at full volume.. It's fucking 4 am!! 04:04!! Friggin birds aren't even up yet!!
Fuck you!! One day that it's not extremely hot here and I could actually sleep..and now I can't cuz this asshole woke me up with music.
Just die you sad excuse of a human being!!12 -
*Drinks a jug of coffee*
*Falls right back into a coma-like sleep*
Fuck my sleep schedule.
Lucky to not have a meeting today.12 -
I have adhd and anxiety which means I cant smoke, drink coffee or drink alcohol because that fucks up my sleep and short term and long term memory badly for few days in a row. ADD symptoms become unmanageable. Fuck my life. I guess I will have to cut all stimulants if I want to be abe to function as a decent dev. I will have to cut most of my social circle because they wont understand me not going out for drinks... Fuck my life....14
-
Time for late night coding, debugging, thinking..been busy since I woke up, work, college, exams, work..work while waiting for an exam..
Coffee - check
Cigarettes - check
Music to keep me motivated - check
Laptop still not lagging - check
Will probably want to sleep in couple of hours - check -
So you all think that coffee is the best energy brewage? I can say that it isnt! At least for me...
I ate a dark chocolate bar a.p. 10pm yesterday and i couldnt even go to sleep. In the morning i have never felt so awake before and i managed to get to the lecture not on a tram but by foot...
Also my depression is gone and i want to fix my life4 -
Mornings. Not just the run of the mill “I’m not a morning person” but I legitimately would be more productive if I could work night shift. It’s easier to think at night, and easier to sleep during the day. Not just a night owl, but it’s hard to breathe laying down at night sometimes. Sometimes I randomly can’t sleep. I’ve never had this trouble during the day during the occasions I get to sleep for long periods during the day. The morning is prime sleeping time IMO. Not wanting to wake up is one reason, but the changing weather helps and it just feels right.
I also don’t feel awake til the afternoon usually. Even if I get enough sleep and coffee. Code churns slow in the a.m.
I dream of night time being work time with long, restful naps durning the day. I feel more creative at night, and it’s easier to focus. There’s less thought of “oh it’s a nice day I should do x”
Just sucks that it’s not largely accepted and there’s not enough other night hawks to hang out with on my off days. And my work won’t let me do such a schedule. Everyone is an insufferable morning person.
Early to bed early to rise is a load of shit. We should be allowed to sleep at times it makes us happy.3 -
I think I need to cut back on coffee. Maybe yesterday's was extra poyent but don't think I got much sleep last night... And now I'm taking a sick afternoon cuz I think I just crashed...
I need to sleep now... But then tonight.... hopefully it's not going into a loop... -
while(isProgramming){
If(hasCoffee){
Destroy(sleep);
}
wait(Date.timeOfHr*5);
//Never stop coding
isProgramming=true;
}7 -
Log 1:
Day 10 of crunch time. I have entered a sleepless zen state. Lord willing, I will be able to get 7 hours of sleep Saturday night. The building is terrifying at night, as there are a lot of noises. Security guards are nice, but curious to see me all alone. Must not show weakness in case they think numbers will give them an advantage over me.
Supplies are low. Only one type of energy drink left in the machine, and coffee gone for the night. My phone is out of fast data so Pandora is spotty at best. I have battery to get me through the night at least.
Tomorrow and Saturday decide the fate of the project. My team lead has not slept in at least 2 days. I feel guilty napping when I do, but she is driven like Ahab so I will let her obsession carry her.
If I am alive tomorrow I will report in.1 -
https://devrant.com/rants/1936381/...
Another day, another comment that just wont fucking post.
On Camping:
Rain IS camping weather.
All miserable weather is camping weather.
The function of camping is to remind you how great it is that you get to go home when you're done, and sleep in a warm, dry, comfy bed and not a canvas roof that leaks in the wrong place in a poorly insulated napsack on uneven ground while sleeping with thin canvas walls, on the ground, like a living human size lump of jerky for a hungry bear to wander by and gobble up.
Also waking up in the morning after being cold and miserable is amazing, because your body forcibly readjusts it's expectation of 'comfortable' just to fall asleep, and you just want to go back to bed instead of going into the cold and being awake where you have to experience the cramp in your neck you had from trying to get to sleep in an awkward attempt to get comfortable.
And after that, you cook bacon on the fire and drink black coffee, and feel like KING of the homeless people. King for a day.
And then you go home and THANK SWEET MARY'S TITTIES you do.3 -
Maslow's Hierarchy breaks down five human needs. You need to meet the lower numbers in order to feel fulfilled in higher levels (i.e. You likely don't feel like you belong to a community when you're struggling to find food & water.) :
1. Physiological (Foods, Water, Clothes, Sleep)
2. Safety & Security
3. Love & Belonging
4. Esteem
5. Self Actualization
The company I'm at is struggling financially so nobody received raises. There were no promotions to celebrate this year. There was diminishing pride in working here. Multiple re-organizations shatter my view that I belong to a team. Multiple rounds of layoffs shattered my feeling of job security. Multiple meetings start with my co-workers buying time to brush their teeth, scarfing down what food they can eat quickly, brewing another cup of coffee.
I firmly believe it's a manager's job to watch out for the culture and build up their employees through this process, but the managers are watching out for their own backs, and probably struggling with the same things we are as individual contributors.
Hey corporate management, while you were off at your executive off-site, your employees are failing to meet some basic needs. You wonder why we bitch about 4-day work weeks and needing less meetings. You think we're entitled when we ask for food and snacks delivered to our door.
We're not entitled. We're broken.
We're not lazy. We're burnt out.
You say we get unlimited time off, but you frequently comment about how much time we're taking off in public forums.
You say you pay us competitively, but that was last year, and shit costs 60% more now.
You say we're responsible for the success of the company, but you're responsible for the morale of the company.1 -
Yesterday, I performed an experiment on myself.
I have heard pretty much that a cup of strong black coffee at night keeps you awake the entire night. Newbie here when it comes to staying up all night ( I mean I stay up late but never all night) so I decided to give it a go.
I'm unsure about the results though.
First off, how strong is a strong coffee? One teaspoon coffee per cup? Am I allowed to add a teaspoon of sugar?
Next, I think it kinda also have to do with me. I mean, I have heard it doesn't give me sleep so my personal bias affected it. I wanted it to be true. To be a life hack for that huge ass paper due by tomorrow.
Maybe it does work. At around 4 in the morning I was too tired with the shit I was doing so I decided to finally lay down. I recall this brief moment when I was in my bed all ready to sleep and the sleep wouldn't come. Maybe that's the coffee working. But again, it could just be normal.
Does it not work? If it does, how do I make it work? 😣9 -
What is keeping you up at nights?
I'm not a coffee person. I can drink it and go to sleep :)
For me it's Pepsi. Fast shugar for energy, I guess. Strong green tea on 2nd place.3 -
Whenever I see the name @CoffeeBoy come up I think to myself:
-Umm hey I think we just ran out of coffee,
-Aw shit and we are working overtime till we finish.
-Are you thinking what I'm thinking ?
-Are you thinking about how good it would be to be a cat.
-Uuh no why do you want to be a cat ?
-Well duuh cat's sleep all day. It's great !
-They also live for only 15 years so I would think in total you will sleep more than cats do.
-You like to ruin things for me don't you.
-I call it productive refactoring. But getting back on topic. I hear we have a new intern ?
-Yeah, that's Jim over there.
-Well lets tell him to get us coffee.
-Oh yeah that's a good idea, because interns already have the bare minimum of expectations from their life anyways !
-Hey Jim, yeah you Jimmie buddy can you get us a few cups of coffee we really need those to stay functioning right now.
-Yeah sure, what do you need.
-George drinks cappuccino, you can get me whatever. Thanks man here is the money. Buy yourself a cup too it's on me.
-Oh thanks.
*Jim walks out of the room*
30 minutes has passed...
-Dude where is Jim at ? It shouldn't be that hard to get 3 cups of coffee from just a few blocks away.
-I hope he didn't get robbed or something he has MY money on him.
*22 minutes ago, jim walks out of the coffee shop carrying the 3 cups securely held under his arm *
-I thought he was just gonna use me as an errand boy or a coffee boy to be exact in this case. But it's nice of him to also pay for my cup. Maybe they are not such bad--
His sentence got cut off by the sudden impact with a metal surface at high velocity. He got hit by a car while he was crossing the street, too deep in thought to notice the speeding car in time.
After hitting Jim the car suddenly come to a halt with a screech noise from it's tires.
But it was too late the impact shattered his lower spine. Leaving a blodied body on the ground. Coffee from the smashed cups merged with his blood. Little did anyone know that day would be the birth of a new hero.
He,he,he he is the COFFEE BOY,
Fighting the evil villain Sleep Deprivation day and night, but mostly night. And his sidekick Mugatron always covering for Coffee Boy !!! -
Workflow? More like chasing answer from a community that is not, and never has been, famous for its pedagogical skills. So hand me some coffee, weed and/or some snacks because I'll still search high and low, skip sleep and build up a few hundred pages browsing history so that in the end, I'll reach the understanding I'm looking for anyways. Even if whatever person trying to help me - in their delusion that I already know everything, except for that thing I'm asking about of course - really, REALLY just failed at saying "that goes there because of that" instead of "did you try insertSomeAppropriateRandomNameOfAThingYouAssumeEveryoneKnowsHere..?".
But who am I kidding? The tools are better than ever (IDE'S). The pedagogical skills are getting its own arenas to build on and its coming along greatly (coding block apps, treehouse and the likes etc. etc).
And no matter the struggle, I can't escape that I love coding and learning more than anything else.
Now how do I.. Where.. When.. Why the.. -
How do all you other devs deal with sleep? Because I am losing my fucking mind I work for myself so I don't go to work at 9am leave at 6pm.
I normally work until 6am and then sleep till 12 drink 3 strong coffee to start functioning again try and do something productive which at the moment involves catching up on the NBA playoffs and then starting work at 6pm.
Due to resent baby I thought shit my life is fucked I haven't left the house in 3 days I need structure routine I need to work 9am to 6pm become human again but I just can't FUCKING sleep it's now 1:30am and I'm trying to sleep.
I know what your thinking why are you on devRant but I've been trying to sleep for the past 3 hours but all I can think about is work code, refactoring, new languages, security, support shit that can wait but I can't get it out my head, keep thinking "ah your not tired you could work", and YES I have a list which get bigger every day wish I had a drug dealer or was still in contact with my old mates so I could get some Valium but it's hot milk and sleeping tablets for me, life is so much easier when you can just fuck of home at the end of the day and forget about work, not having your laptop next to you trying to trick you into opening it. How do other people who work for theirselves deal with the life work balance?4