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 - "hibernation"
-
So, you start with a PHP website.
Nah, no hating on PHP here, this is not about language design or performance or strict type systems...
This is about architecture.
No backend web framework, just "plain PHP".
Well, I can deal with that. As long as there is some consistency, I wouldn't even mind maintaining a PHP4 site with Y2K-era HTML4 and zero Javascript.
That sounds like fucking paradise to me right now. 😍
But no, of course it was updated to PHP7, using Laravel, and a main.js file was created. GREAT.... right? Yes. Sure. Totally cool. Gotta stay with the times. But there's still remnants of that ancient framework-less website underneath. So we enter an era of Laravel + Blade templates, with a little sprinkle of raw imported PHP files here and there.
Fine. Ancient PHP + Laravel + Blade + main.js + bootstrap.css. Whatever. I can still handle this. 🤨
But then the Frontend hipsters swoosh back their shawls, sip from their caramel lattes, and start whining: "We want React! We want SPA! No more BootstrapCSS, we're going to launch our own suite of SASS styles! IT'S BETTER".
OK, so we create REST endpoints, and the little monkeys who spend their time animating spinners to cover up all the XHR fuckups are satisfied. But they only care about the top most visited pages, so we ALSO need to keep our Blade templated HTML. We now have about 200 SPA/REST routes, and about 350 classic PHP/Blade pages.
So we enter the Era of Ancient PHP + Laravel + Blade + main.js + bootstrap.css + hipster.sass + REST + React + SPA 😑
Now the Backend grizzlies wake from their hibernation, growling: We have nearly 25 million lines of PHP! Monoliths are evil! Did you know Netflix uses microservices? If we break everything into tiny chunks of code, all our problems will be solved! Let's use DDD! Let's use messaging pipelines! Let's use caching! Let's use big data! Let's use search indexes!... Good right? Sure. Whatever.
OK, so we enter the Era of Ancient PHP + Laravel + Blade + main.js + bootstrap.css + hipster.sass + REST + React + SPA + Redis + RabbitMQ + Cassandra + Elastic 😫
Our monolith starts pooping out little microservices. Some polished pieces turn into pretty little gems... but the obese monolith keeps swelling as well, while simultaneously pooping out more and more little ugly turds at an ever faster rate.
Management rushes in: "Forget about frontend and microservices! We need a desktop app! We need mobile apps! I read in a magazine that the era of the web is over!"
OK, so we enter the Era of Ancient PHP + Laravel + Blade + main.js + bootstrap.css + hipster.sass + REST + GraphQL + React + SPA + Redis + RabbitMQ + Google pub/sub + Neo4J + Cassandra + Elastic + UWP + Android + iOS 😠
"Do you have a monolith or microservices" -- "Yes"
"Which database do you use" -- "Yes"
"Which API standard do you follow" -- "Yes"
"Do you use a CI/building service?" -- "Yes, 3"
"Which Laravel version do you use?" -- "Nine" -- "What, Laravel 9, that isn't even out yet?" -- "No, nine different versions, depends on the services"
"Besides PHP, do you use any Python, Ruby, NodeJS, C#, Golang, or Java?" -- "Not OR, AND. So that's a yes. And bash. Oh and Perl. Oh... and a bit of LUA I think?"
2% of pages are still served by raw, framework-less PHP.32 -
I was in a public place on my laptop, and my laptop went into hibernation to save battery. I switched it back on and then the laptops BIOS came up saying that the battery was critically low, nothing bad here.
Instead of clicking continue, I decided to press "Diagnostics" instead. The diagnostics immediately began to run in the BIOS.
The screen began to show different coloured bars and patterns, obviously a screen test. Then a prompt appeared asking me if coloured bars were displayed. The options were yes and no, and a button saying "Exit" in the top right. Me, not wanting to do a full diagnostics on such a low battery, pressed exit.
The screen turned black, and then flashed red. The beeper on the motherboard began to beep at an ear-piercing volume. It sounded as if it was a bomb about to go off. Everyone around me stared and some people began to even panic. I tried switching it off by holding the power button but nothing was happening. People were just staring all around me.
After about 10 seconds, the beeping stopped and the screen displayed an error message similar to this:
"CRITICAL ERROR: Monitor test FAILED.
No user input was provided."
Moral of the story: Make your program account for all possible options.11 -
MOTHERFUCKING WINDOWS 10. YOU COCKROACH COCK SUCKING PIECE OF AQUAMAN'S LEFT NUT.
If I put you in hibernation I do NOT want you to WAKE THE FUCK UP WHEN ITS AROUND THAT TIME A NIGHT WHEN TEEN WOLF IS SPREADING HIS STD'S TO DIAMOND-SKINNED DOUCHEBAGS. (Middle of the night)
AND WAKE ME BECAUSE OF YOUR SOUND AND LIGHT.
Goddamnit how hard is it to let a computer hibernate, but no, they had to add shit functions that makes it update itself or something in the middle of the night.
I'm going to tear the functions out of your retro ass till you will fucking obey my every command. You will fucking hibernate when I say so till when I say so or I'll replace you with linux17 -
Just gotta love random hibernation wake ups, went sleep on time in like a year, fell asleep quick and then my fucking 3 monitors turn on and the fucking pc woke up, for no fucking reason, blasting equal of 4 suns into my eyes.9
-
Use Linux desktop they said.
It'll be fun they said.
So much to configure.
Such fun.
18 hours later and hibernation, Bluetooth, Sound and Nvidia Optimus still not working after countless modprobes and config changes.
Hello again, Windows. You make me feel safe.
I'll just stick to Linux on servers and nothing more.41 -
!rant
Linux just made my day. Everybody knows how Windows won't let you shutdown your hardware until it updates, right? So last night I forgot I was upgrading Manjaro in a background terminal (full distro update, tons of packages) and hibernated my rig, plugged it off, took it to a different location. Today I hooked it up - different network, IP, etc. - it woke up, finished compiling whatever it ended up on then downloaded, compiled and installed everything else, said "Thank you very much!" and dropped the mic. Someone tell me this isn't pure awesomeness! 😂
It asked again for root password but other than that... shrugged off 12 hours difference like a boss!18 -
I began my first Linux / i3 install 7 days ago when I posted my first rant... And today I'm declaring it officially *done*! (Mostly because if I don't, I'll spend another week configuring the damn thing.)
Here it is. Few minor things to edit/fix (like the fact that it sometimes randomly logs me out after coming back from hibernation... Yeah, "minor") but the functionality is mostly there. I can ("should") get back to work!16 -
Just when you walk away and hear your computer wind up its turbines again, you know, you forgot vagrant halt, before you sent it to hibernation..5
-
Weather is changing so frequently.
I'm switching since 1 1/2 weeks between being tired, no sleep, migraine.
On top of that I have to unclog a multilayer cache architecture based on varnish.
My brain poof.
Plus a lot of management tasks.... And planning.
I just want to enter a hibernation mode and sleep for 3-4 weeks.
Please?6 -
Guinea pigs are not from Guinea and they aren’t pigs
JavaScript has nothing to do with Java
Computer science is not an actual science
Lawsuit is not an actual suit that the judge wears
Siouxsie Suioux is not Native American
Sugar gliders aren’t made of sugar
People don’t drive on driveways and don’t park on parkways
Carpets have nothing to do with either cars or pets
Gunpowder actually looks like noodles and not like powder
Coca-Cola has no coconut and no cocaine in it. It also contains no cola nuts
Peanuts aren’t actually nuts
Watermelon doesn’t taste like a melon
Laptops are usually used while standing on desks, not laps
GPU, as in graphics processing unit, can process things that aren’t graphical
Silverback gorillas’ backs ain’t made of silver
Rod Steward is not a rod and not a steward
Guy Standing can sit
People who say they can’t stand something usually can actually stand up
People who call themselves woke do sleep sometimes
Hibernation mode in Windows doesn’t actually hibernate anything
Kool Aid can be served hot
Wall sockets can be used while not being attached to a wall
WC is not a closet
MrBeast is in fact human
Dodge cars aren’t better at dodging things than other cars
Some AC units can be operated using DC
Most men don’t menstruate
Pop bottles don’t always go pop
Backpack can be used while not being worn on your back
Watches don’t watch anything
Some keyboards aren’t actually a single board
Cigarettes have cigars, but cassettes don’t have cass, and Gillette doesn’t have gills
Dyson doesn’t make Dyson spheres
Hairdryers can dry things that aren’t hair
Beds aren’t usually made of bedrock
ThinkPads can’t think
MacBooks aren’t books
Ceilings don’t ceil
Platinum records aren’t made of platinum
Training doesn’t always involve trains
Great Britain ain’t that great
HDMI can carry signal that isn’t HD
Fingers do fing but autists don’t aut
American Football band doesn’t play american football
Taylor Swift is neither a taylor nor a swift
Hard disk drive doesn’t drive
Tank tops has nothing to do with the top part of a tank
Tea bags do sometimes contain herbs that aren’t tea
Tea isn’t usually teal
Jack Black isn’t black
Fingernails aren’t nails32 -
Fucking Windows.
Before everyone starts saying that I should switch to Linux, I prefer Windows as my primary OS and Linux as a secondary OS.
Anyways, I updated my Windows a few days ago and ever since, instead of fucking shutting down it acts like it goes into hibernation. If I tell you to shut down, that means to shut down, not save everything and reopen everything when I turn you back on.
Besides that, why the fuck is it trying to install some Canon printer driver, that I don't even have! Thus leading it to fail every god time I turn off my PC, and then it says "Updates failed to install."
Seriously, had no problem with Windows until a few days ago. Simple terms, fuck Microsoft right now.2 -
So I had been debugging this code for the past 2.5 days without much sleep and couldn't figure out why it wouldn't work.. Turns out I was passing the wrong variable to a method -_-
On the bright side, while debugging I was able to optimise the code and now it runs waaay faster 😎
Now, time to go into hibernation 😴1 -
Cat-warming solution when the power goes out
Problem: Your power goes out in the middle of winter. Your cat is cold and will not leave you alone. You are her only source of heat.
Step 1: Find battery-powered laptop.
Step 2: Power on laptop and turn off sleep/hibernation in the settings.
Step 3: Open up 5 instances of Minecraft and load a single-player world in each.
Step 4: Close laptop and flip it upside down
Step 5: Place cat on computer above the fan. Cat will begin to purr.
(Yes this works)2 -
What the fuck is wrong with Windows?
I put it into sleep. After a while, it just wakes up again.
I put it into hibernation. It boots up again.
I closed anything that could potentially wake it up like instant messengers etc.
Still it wakes up after a random amount of time.11 -
Time for a rant about shitstaind, suspend/hibernate, and if there's room for it at the end probably swappiness, and Windows' way of dealing with this.
So yesterday I wanted to suspend my laptop like usual, to get those goddamn fans to shut up when I'm sleeping. Shitstaind.. pinnacle of init systems.. nope, couldn't do it. Hibernation on the other hand, no problem mate! So I hibernated the laptop and resumed it just now. I'm baffled by this.
I'll oversimplify a bit here (but feel free to comment how there's more to it regardless) but basically with suspend you keep your memory active as well as some blinkenlights, and everything else goes down. Simple enough.. except ACPI and I will not get into that here, curse those foul lands of ACPI.
With hibernation you do exactly the same, but on top of that, you also resume the system after suspending it, and freeze it. While frozen, you send all the memory contents to the designated swap file/partition. Regarding the size of the swap file, it only needs to be big enough to fit the memory that's currently in use. So in a 16GB RAM system with 8GB swap, as long as your used memory is under 8GB, no problem! It will fit. After you've moved all the memory into swap, you can shut down the entire system.
Now here's the problem with how shitstaind handled this... It's blatantly obvious that hibernation is an extension of suspend (sometimes called S3, see e.g. https://wiki.ubuntu.com/Kernel/...) and that therefore the hibernation shouldn't have been possible either. The pinnacle of init systems.. can't even suspend a system, yet it can hibernate it. Shitstaind sure works in mysterious ways!
On Windows people would say it's a hardware issue though, so let's talk a bit about that clusterfuck too. And I'll even give you a life hack that saves 30GB of storage on your Windows system!
Now I use Windows 7 only, next to my Linux systems. Reason for it is it's the least fucked up version of Windows in my opinion, and while it's falling apart in terms of web browsing (not that you should on an EOL system), it's good enough for le games. With that out of the way... So when you install Windows, you'll find that out of the box it uses around 40GB of storage. Fairly substantial, and only ~12GB of it is actually system data. The other 30-ish GB are used by a hibernation file (size of your RAM, in C:\hiberfil.sys) and the page file (C:\pagefile.sys, and a little less than your total RAM.. don't ask me why). Disable both of those and on a 16GB RAM system, you'll save around 30GB storage. You can thank me later.
What I find strange though is that aside from this obscene amount of consumed storage, is that the pagefile and hibernation file are handled differently. In Linux both of those are handled by the swap, and it's easy to see why. Both are enabled by the concept of virtual memory. When hibernating, the "real" memory locations are simply being changed to those within swap. And what is the pagefile? Yep.. virtual memory. It's one thing to take an obscene amount of storage, but only Windows would go the extra mile and do it twice. Must be a hardware issue as well.
Oh, and swappiness. This is a concept that many Linux users seem to misunderstand. Intuitively you'd think that the swappiness determines what percentage of memory it takes for the kernel to start swapping, but this is not true. Instead, it's a ratio of sorts that the kernel uses when determining how important the memory and swap are. Each bit of memory has a chance to be put into either depending on the likelihood of it being used soon after, and with the swappiness you're tuning this likelihood to be either in favor of memory or swap. This is why a swappiness of 60 is default most of the time, because both are roughly equally important, and swap being on disk is already taken into account. When your system is swapping only and exactly the memory that's unlikely to be used again, you know you've succeeded. And even on large memory systems, having some swap is usually not a bad idea. Although I'd definitely recommend putting it on SSD in a partition, so that there's no filesystem overhead and so that it's still sufficiently fast, even when several GB of memory are being dumped in.6 -
Coding has absorbed my life.. I need a new side hobby for balance 😂 something hands-on, physically challenging and *social*. But I live at the most flat and boring place in germany and winter is approaching.. this will be a few boring, hazy months...4
-
Posting after a break. I'm quite unproductive these days. No OSS, no side project, I'm literally doing nothing. Before you ask, I'm not depressed or even sad, just unproductive right now. I don't know if it's because of this weird time of the year, you know. 2020 is ending and I'm just tired but I believe this is a crucial time as I'm looking for placement. I just wanna go to hibernation. FML.3
-
So I decided to install a third OS on my laptop and oh boy, I never thought I'd have to deal with so many issues!
First, I had to make space for the new OS, so I did the only feasible thing - Shrunk a windows partition (Used for gaming only), then installed the third OS into it. (For clarification, one OS was Windows, the second Debian for work and the new one was Kali for a course at school about security and ethical hacking)
Well... After I installed and tried out that the Kali worked... My Debian began to make problems. It would hang for almost a minute during start as it tried to mount a (for some reason) no longer existing Swap partition.
After it gave up and I found out... I, fortunately, fixed it after just a bit of googling. At least I learned to repack the ramfs.
It worked all fine and dandy... Only... My Debian now shared the swap with Kali.
Few weeks forward, last friday, I tried to boot up Kali at class... Only for it to... Stop at a black screen, weird.
Some minor detective work later, I found out nothing was... Wrong really.
But... For some mysterious reason, my complete GDM just.... No longer worked.
One LightDM and XFCE instal later (Thanks god that at least TTY still worked fine), it finally worked again, and this time, I booted back into Debian, shrunk the Kali partition a little more and dedicated it's own swap there. Setting and resetting everything, and finally had a working triple-boot laptop...
My only question is... Why?
Does sharing Swap really affect the system so much, besides hibernation ofc.3 -
Yocto is the most overly complicated shit on earth! How the fuck did i ever get my board to boot? You get so easily lost in layers and bb and bbappend and there are like 20 flavours of assignement operators and to configure the kernel you need to run one command for menuconfig and then another right after to pull a diff out of the .config into your project. otherwise noone else will have your changes. TrY the same thing with the bootloader and the whole thing shits its pants. Also there are like four devicetree that are required for boot. And if you specially fuck up here, your hardware will be an expensive paperweight. Also there are like featuresets that enable shizz like wayland or ethernet but good luck finding out what in the actual genderbent jesus the thing you just configured does. And there is like no way to visualize any of it as its just a cockblock of text and files. Also if you use search the results are most likely useless. As the thing you are looking for is a filename and vscode does a text search only. Also you can add layers but whatever the fuck that means as a bsp is like a layer but so can also be a kernel patch or some rando variable change. And good luck fugurig out to which dir $PWD points to. As it could just be on the Elon Musk nazi base on the dark side of the moon. Also every folder starts with meta for some dumb reason. And if it starts compiling you could just aswell build a coffin and go into winter hibernation. It takes fucking forever. I have a 3800x and the build takes 1.5h. Why? Because, BECAUSE, B E C A USE! There is a require package called optee. Which need a python package. That package depends on a crypto lib thats written in rust. And since its all from source, it downloads the FUCKING rust compiler source and compiles the compiler to compile a lib that only takes like 5 seconds to compile. Also good luck figuring that out without constantly staring at the compile log. As there is some compilation time info but you need to write a parser for that first as there is no included anal -lyzing tool for it. I could keep on yappin' waaay longer about why dantes inferno is kindergarten compared to yocto, but i dont have enough alcohol in the house to fuel that.1
-
oh god, wake up snappy as a lubed tomato, ready for battle. Gotta take my adhd stimulant, namely Vyvanse or else it'd be cokedbenz-like, annoying the f*ck out of everyone cuz me wouldn't even manage to keep still.
So I take those 70mg punch and
my brain takes it like a sissy! It slows to a crawl, surprise, surprise motherf*cker, it's bed time, AGAIN!
Can't keep my peepers open. Why god, why that med gets me into hibernation mode??
No trouble, no trouble, son, pop some Ritalin and you'll be ready to go!
Alright, alrighty! Take a couple of those and it's like a coffin's final nail, Thanatos roundhouse kick to Dreamland! Wtf 😒
If I hadn't gone thru the "I don't need it", "better off without it" phase so many, many! times before, I'd consider not taking those, but I know, I know that even tho those first few days would be great, by week's end I'd find me self rampaging life and crashing like thunder, with a big bang7 -
Searched on various forums, everyone seems to have conflicting opinions.
If I want hibernation to work correctly on my laptop , do I need to allocate swap equal to RAM (some are also saying double 😥) I have 16 gigs of RAM, so allocating 32 gigs (or 16 gigs) swap seems like a waste of space. Will do only if absolutely necessary.
I am running manjaro KDE by the way7 -
Yet another Windows 10 rant:
Since hibernation is broken (just locks the screen), I put my computer to sleep and went to bed. After a few minutes, IT STARTS UP.
So I disable hybrid sleep, wake timers, Update, etc. Same thing.
I try again... This time, it starts up too, but DOESN'T EVEN RESTORE!!
And this is a month-old install with latest update and no fishy drivers.
Windows really does hate me.1 -
I like Firefox a lot.
But it isn't very nice with WPAs, an area of my interest, and downloads PDFs instead of showing them...
Plus I have seen Vivaldi is pretty good for quite some things, like tabs groups and tabs hibernation, has notes, a cool calendar...
But Chrome's console...
It's the only reason I stay with Firefox. (I not only use it at work, but I also use the command line as a pocket JS engine for little scripting and parsing.)
If only I could get selection bracket wrapping and a multiline editor... is it that hard?4 -
Finishing a week long moonlighting rampage burning the candle at both end. Feeling like I need to go into hibernation!
-
So few days ago I've installed Mojave from clean setup (Hackintohsh) and works smooth as butter, and today I woke up in the morning and sat down to work, my pc was running on windows so I restarted it, there was some updates to be installed but what a heal will install them later, so the pc started booting in Mojave, usually takes few seconds but this time it got stuck on the loading screen, so rebooted again and this time added -v boot parameter to clover to see whats going on, got some errors about IGPU (had to use intel's gpu.. thanks Nvidia .!.), did few googling some suggested using -disablegfxfirmware but that didn't work, so rebooted again.. hoping I would get more info, guess what? windows 10 was in hibernation (possibly because there were updates to be installed on boot) and that somehow prevented mojave from using the ssd i guess? not sure exactly, so In the end I got very lucky cause if I didn't read the message I would have reinstalled the mojave and loose a day at work... politely f*** you windows updates!
-
Want to change distro and wanted your advice. I'm moving away from Kubuntu mostly due to tons of issues on power management (hibernation either not actually hibernating and depletes battery or not waking up afterwards)
I'm thinking of Pop OS or MXLinux, mostly for checking out something new. Do you have any experience of these?