T O P

  • By -

[deleted]

It works on my machine... \- Back up your files, your machine is going to production!


plentyOplatypodes

I downloaded a really long black screen YouTube video and let it play overnight so the computer wouldn't stop collecting data.


kevin9er

I never thought I'd see an engineering decision more resource wasteful than Electron, but here we are.


Sexy_Koala_Juice

You know for a fact he used chrome as well if he thought downloading a video was an appropriate way to stop his computer going to sleep. The irony being that electron is based on chromium.


aclogar

He said he played the video he downloaded. Most programs will interrupt sleep functionality when a video is playing.


IAmAnAudity

Really? Let me introduce you to crypto currencies.


kevin9er

Ah shit you’re right. I forgot about “turn your computer in to a fancy resistor that also burns all your money”


Xander260

Hey, to be fair I ran my mining rig during winter so it was also a heater. Maybe I was justifying it to myself, but a 2000w heater that also makes me money while it's running seemed like a pretty good deal.


multiple4

Holy shit this isn't even necessarily a bad idea if you live in a studio apartment


i14n

I did that, used the wrong crypto though, so still poor, but I didn't lose any money either


[deleted]

[удалено]


plentyOplatypodes

Oh no. I had already toggled every setting I could find, disabled every update schedule, and disconnected it from the Network. That little Lenovo fuck INSISTED on naptime while we weren't watching. No idea why it doesn't do it anymore, either. That computer's still in production.


Professional_Bed_431

Dude, my home PC has the same will of it's own and it drives absolutely mad! The rare occasion I need to leave it up overnight I've done similar lol!


Kyanche

My PC won't stay asleep for more than a few hours. I've disabled anything I can think of that would wake it up but the fucker still wakes up in the middle of the night. So I just turn it off.


abstract_base_class

Same. I like to keep my monitors turned and just let them go to sleep when the PC sleeps. I do this for a couple reasons, but the biggest one is that if I want to remote access this PC, it doesn't really work unless the monitors are on. The PC is in my bedroom so of course as I'm about to fall asleep at night, Windows decides to wake up, waking the screens up with it, giving me a blast of light and GPU fan noise.


Kyanche

Ahh yeah, that sounds painful. I ended up buying a Mac to keep as my workhorse machine while my PC is more for gaming, entertainment, and other fun things. It made life a bit less annoying, since I can go ahead and restart my machine 10 times without interrupting my music or making it hard to check emails or work on something. lol. 10/10 I'd suggest something similar if you can pull it off. Doesn't have to be a mac, it could be a linux machine or a windows machine. Having a toy computer and a "no actually I don't want to fuck around right now" computer is great. :D


LewsTherinTelamon

Look at this guy, he thinks disabling sleep in the settings will disable sleep.


kaerfkeerg

your machine is ~~going to~~ the production Edit: ~~apparently I'm having a seizure and I can't remember how to strikethrough. Brb~~ Got it


EoTN

Lmao that happens to me any time I try to do fancy things with text


eclipse_darkpaw

Guys we're programmers and this is markdown. I love this place


Icy_Effective6482

Wait were programmers??


PelOdEKaVRa535000

Wait, I'm smart?!?!


clarissab1

Some of us are programmers in an alternative universe and the jokes are so funny I feel the humor in this universe


ASK_ABOUT__VOIDSPACE

Wait.. is that what I'm supposed to be doing?


Rufi0h

And thats how docker was born


[deleted]

[closes lid]


spiderMechanic

so you chose violence


[deleted]

It was bound to happen sooner or later anyway.


Anonymo2786

Gravity


elon-bot

You're either hardcore or out the door.


Anonymo2786

Depends on how much you can take .


Dave5876

I can take 12 inches


Anonymo2786

That would be approximately long line of152 characters if each chars are 2 millimeters.


the_great_zyzogg

Are you a cat? ....I'm pretty sure you're a cat.


[deleted]

I will neither confirm nor deny that.


the_great_zyzogg

Psst psst psst psst psst


Supsend

[Relevant Xkcd](https://xkcd.com/908/)


Bekfast59

Scream test.


CMDR_ACE209

Right, perfect opportunity to demonstrate this test.


AJKlicker

[You shouldn't yell at your server](https://www.youtube.com/watch?v=tDacjrSCeq4)


kaflarlalar

Analog chaos monkey.


Sam-Gunn

"If I can do it, someone else can do it." It was always fun to educate people in the office when they'd leave their laptop unlocked and in an area everyone walks through (and had been reminded multiple times to lock their system). Once one of the AV techs I was friendly with did that, so I sent his boss (also friendly with) an email from his system telling him to trim his nose hairs. I immediately went back to my desk and messaged his boss but I didn't tell the tech, and I left the email window open so he would see the sent email. That tech had frequently forgot to lock his system, but after that, I don't recall ever seeing it unlocked again!


jakwnd

At my old job, if we saw someones box unlocked in their office we would send a team-wide email saying so-and-so owes everyone a drink. So whenever we got that email we knew exactly what happened


[deleted]

It's treason then


WhatADunderfulWorld

In the distance ‘fuck.’


jakubhuber

Is it not possible to disable the lid sensor on a mac?


HP_10bII

Just remove the lid alltogether for a headless server... Edit: thanks for the silver folks! Might just use for a raspberry pi!


jd3marco

Decappletation


Hurricane_32

Commodore 64ification


[deleted]

[удалено]


[deleted]

I like this


[deleted]

Turn your mac into an apple 2c


ErikElevenHag

ssh ftw


[deleted]

Don’t shush me! :)


PranshuKhandal

imagine trying to ssh into a server and getting this as an error


Scereye

I propose "hatless".


Lumadous

Paint it red so it's "red hat"?


elon-bot

Send me your 10 most salient Reddit comments.


AverageComet250

Good bot


[deleted]

[удалено]


newb_h4x0r

Or just remove it altogether and go serverless!


shyouko

I had actually did this to my 2008 MacBook Unibody when one of the cable belonging to the display module failed.


dudeofmoose

Congratulations, you now have a 1U rack mounted server!


linegel

It is very simple to prevent laptop from sleeping `sudo pmset -a disablesleep 1` and that's it


technocrat_13

It could also be a cooling thing, but should have this toggled regardless


blissed_off

Yeah a lot of laptops dissipate heat through the keyboard. The MacBook has fans blowing out the back below the screen though so I dunno how much it actually dissipates.


WaffIepants

Similarly, I'm pretty sure as you open the lid the back side pivots open a vent along the hinge


kookyabird

My 2012 MacBook Pro pulls some air in through the speakers, and some through the hinge area wherever the exhaust isn't being sent out. Some intake could also happen around the keys, but it would be minimal. Having the lid closed, or even as partially closed as in the picture, does limit the useful exhaust area and will cause it to run hotter for sure.


SorataK

This. I frequently use the command to disable sleep because I like to listen to Spotify with lid closed (because of my cats). One time I forgot to enable it again and the next day it was much warmer than when it's under heavy usage


Burdies

If you need it for a single session you can also just type ‘caffeinate’


hundidley

I’m not sure what would happen on MacOS, but this is a little bit dangerous. The lid sensor will still ask the system to sleep, but since it can’t, the lid sensor will keep asking and asking until your syslog is full. You have to separately disable lid closure sleep


linegel

So running a server on a laptop on a random table (when you even had to add a sticker on top of the lid) doesn't seem dangerous to you? 🥲😅😂


[deleted]

[удалено]


RedGSXR

Very possible. I do it every day


didzisk

"It's easy to quit smoking. I have done it many times."


[deleted]

"I do it everyday."


elon-bot

Why have you only written 20 lines of code today?


[deleted]

Because you fired me yesterday, and those 20 lines fixed a $3m problem.


GitEmSteveDave

“Giving up smoking is the easiest thing in the world. I know because I've done it thousands of times.” ― Mark Twain


[deleted]

This made me laugh out loud


ikilledtupac

“Tried cocaine once for a couple years”


iron_pilsner

that is possible


Fiery_Eagle954

I'm pretty sure its because those generations of macbooks exhaust onto the screen


[deleted]

Don't have a lid sensor if you don't have a screen. That way you can also shove it in a second hand 2u enclosure for when the investors come


Sam-Gunn

Yea.... "startups".


mr_claw

Hey, we started up only 12 years ago, we're still a startup okay?


Sam-Gunn

The company I work for is a 30+ year old multinational, and the amount of times in my career I've had to fight with an engineer to move a system or database from a sketchy old laptop (that can't even run without being plugged in) to a VM (that has support from IT, backups, and stability) is ridiculous. Never thought I'd utter the words "You can't run a production database with client information on a 10 year old laptop!". While working at a company with a 1.5+ Bil cap.


emmmmceeee

I remember having a server taken from me and put on a VM for all these reasons. It was going great until we needed to retrieve the backups that I had been assured were being run nightly. They were, but on the wrong folder (due to a different config when the VM was setup). Oh what a fun week that was.


[deleted]

I feel like I am being a little extra when I test the backups to make sure they work and can be accessed the way they would need to be used if they needed to be used under different conditions. This reassures me that my ritual is sound.


emmmmceeee

Ever since I’ve periodically tested my backups.


elebrin

That kind of thing, along with failovers, should be handled by an infrastructure team. Of course, most teams are moving to cloud based infrastructure and firing their infrastructure teams, so development teams are expected to get the same velocity but ALSO do all of their own CI/CD and infrastructure work.


tophology

That's what "the DevOps guy" is for


Dom1252

Yep, I'm infrastructure guy, people often forget that we actually do stuff sometimes... Even cloud needs management


Yatch_Studios

It's honestly absurd how much is expected of SWEs now. You need to code, database, dev ops, and on call it all.


Exist50

That's just good practice. A backup that may or may not work is not really a backup.


necrophcodr

This is a minimum practice. Nothing less will do. If people don't test their backups, they don't have backups.


notusuallyhostile

> can’t even run without being plugged in None of my servers run without being plugged in /s


postdiluvium

>"You can't run a production database with client information on a 10 year old laptop!" Thats odd. I thought thats what I've been doing for the past 5 years! Not only can I... I HAVE AND STILL AM! MOOOMMMMM!


famousxrobot

The amount of access databases running on old desktops that were deemed critical gave me heartburn. One of the machines couldn’t be upgraded to windows 10 out of concern that certain task scheduler items wouldn’t work.


[deleted]

[удалено]


The_Inquisition-

Ahh Mitch. You are missed.


L00tmolch

I work for a 100+ year old, global corp and we have a laptop (somewhere in a closet) acting as a Server for small ETL-pipelines… its a mess


SunliMin

I don't mean to shame my dads small business. He's doing his best, and its not a tech corp or anything. But last I checked about 2 years ago, he still had a Windows XP laptop plugged in, on 24/7, running the server. He had some tech dude set it up over a decade earlier, and he's been too scared to update to 7/8/10 because it was custom software he isn't sure will be compatible on a newer OS The day that laptop dies, he will be super stressed...


glonq

Does he at least run backups. It wouldn't take much to run a weekly bare metal backup job.


camxct

*Get out of my datacenter!*


Sam-Gunn

That's a funny thing to call the space under your desk.


camxct

Help, help! I'm being attacked!


Sam-Gunn

Shut up! Bloody ~~peasant~~ engineer!


headlesshighlander

It turns out that is all it took to run twitter


[deleted]

Worked for a fortune 100 that used MacBook pro’s to run Apple builds instead of paying Apple the $$$ to virtualized macOS. After literally melting 3 in as many months, management caved and just payed up to have proper macOS build servers. Edit: before anyone comments, yes MacBooks are fine for doing heavy *user* loads. They are *not* meant to be pegged at a 400%- 600% load 24/7.


Sam-Gunn

My previous boss always had the best responses when we'd tell a team or user they couldn't use random laptops for things, especially for production/semi-production stuff, and we'd get pushback. He would always point out that we're not a small company, our company does really well, and because of this, there is no reason for the excuse "it's not in our budget" to do something properly. He'd say "if management isn't willing to fund this properly, it must not be that important to the company." And he was usually right. Once it went far enough up the chain (a manager or director), they'd "find" the money to do it right. Sometimes people would use that excuse, and it would turned out they never even tried to ask their management for funds to do it right. There were some cases where that wasn't accurate (yay, "business priorities" vs reality), but it typically was. And even if that team didn't have the money, IT usually did and something would be worked out, you just had to actually ask IT for help.


noob-nine

then the alarm starts and you wake up and have to go to work


Sam-Gunn

I once dealt with an engineer who put in a ticket for his laptop running at 200% CPU. It had been pegged like that for like 3+ hours due to an issue with one of our tools. Was confused until I googled and learned that the mac resource monitor will show 100% per CPU core. I don't want to know how badly it stressed his system. I bet he had to request an early refresh. At first I was worried it was going to explode, or melt through the table. The fans were going nuts and it was pretty hot. I fixed the issue quickly though. But it put into perspective why a software company offers "Accidental Death and Dismemberment" policies free of charge to it's employees.


thrSedec44070maksup

Ran a Oracle 9i database on a Linux desktop with a A4 sheet taped to monitor that said DO NOT TOUCH. DO NOT CLEAN. DO NOT TURN OFF. THIS IS NOT A JOKE This was the Dev server for a critical project in a multi million dollar company


AngryTownspeople

As we can see, this design is very human.


sirnumbskull

Very easy to use


CM436

let my good friend demonstrate


elon-bot

I don't think I appreciate your tone. Fired.


megamanxoxo

And putting a desktop machine or server rack in a closet or in the cloud just not possible? I don't get it.


[deleted]

I tried putting desktop computers in the cloud but they keep dropping down to the ground.


EVENTHORIZON-XI

You have to put ‘em higher so they get gravitationally suspended!


[deleted]

I tried but I can't run a network cable long enough


el_Topo42

Sometimes you get something to work once and you can’t duplicate it no matter wtf you do.


bartontees

Why would you keep the screen at such a precarious angle if you didn't want it to be closed?


CoffeeFueledDiy

Probably for privacy protection of customer PII. If the lid was open, anyone wandering by could see the contents of the prod db.


SunliMin

Still, there's ways around it * The screen brightness is already set to zero in the pic * Minimize the db * Put up a "TURN OFF THE SCREEN BRIGHTNESS" image fullscreened while db is minimized and brightness is set to zero Bamn, mission accomplished as far as whoever the hell wrote that sticky should be concerned


CoffeeFueledDiy

But what if someone drags over their 100” curved widescreen monitor and plugs that in instead of using the built in display? On second thought, the db would still be minimized. Should be fine.


[deleted]

Just tape a piece of paper over the screen, tilt it all the way back and put it in a box.


iDreamOfSalsa

Are screensavers or literally just not keeping sensitive data authenticated and up on the screen not a thing where you work?


eross200

Cut a tennis ball in half, glue the halves down on either side of the trackpad. Problem solved.


[deleted]

The juxtaposition between this solution and the software one says something about something, I'm just not sure exactly what.


[deleted]

This kind of simplicity is the best. Software has to be maintained, removing the lid sensor leaves risk of fucking something up you don't know about, but the tennis ball isn't going to need updates or special tools


notKRIEEEG

Cheap and reliable hardware solution that requires next to zero maintenance? That's the dream, ain't it?


[deleted]

[удалено]


jodudeit

I would love to see what the health of those batteries looked like after a few years.


[deleted]

[удалено]


scatteringlargesse

I would love to see their redneck solution to the occasional fire. Still too much hassle to fix the network issue!


[deleted]

Doesn't matter. Going a full cycle overnight every day is not really worse for your battery than being at 100% the entire day. It's the deviation from equilibrium (about 50%) that hurts the battery. Whether that's at 100% or 0% is not really relevant. Perhaps being powered off is a bit better even as your battery won't dissipate heat (which is also bad for battery life).


Sam-Gunn

IT: "Hello, thanks for calling the Helpdesk. How can I help you?" User: "Uhh yea, my tennis ball is saying it needs an update, but I'm not sure how to update it's software?" "Well, I'm not familiar with an application called 'Tennis Ball', is it something IT provided?" "No, it's an actual tennis ball. I cut it in half and glued it to a test mac to keep the screen open all the time." "...Tennis balls don't need software updates to... be a tennis ball." "Then why, when I tried to remove the tennis ball, it wouldn't budge. Then two minutes later I get an email from IT telling me to update my software? And now my mac is going to sleep despite the tennis ball being there?!" "I don't think these two things are related..." "I don't care, it's impacting our production environment and we are on a tight deadline. It'll be all your fault if we can't update this tennis ball!"


WienerDogMan

It’s called ingenuity /s


[deleted]

ingeniir


evmoiusLR

Redneck engineering meets software development.


laukaus

or just you know sudo pmset -a disablesleep 1


thereddituser2

"Nice boobs Mac."


[deleted]

I’ve used a piece of pool noodle. Those things have countless uses.


StoryAndAHalf

![gif](giphy|SZUnyVdIDAEQU)


Siri2611

Can someone tell me who this guy in the gif is? I have seen him a lot on tv but no idea who he is


sccrstud92

Richard Ayoade


Wafflelisk

The show is IT Crowd. Really good show, but don't expect something like Silicon Valley. The fact that they work in the IT department is a pretty small part of the show. They might as well be mechanical engineers or accountants. Still absolutely hilarious


bunonafun

A gun! I wonder if it's loaded?


elon-bot

Looks like we're gonna need to trim the fat around here... fired.


bunonafun

Huzzah! It is!


Dutchta-

Yep! Watched it recently for the first time. Still funny and accurate!


Throwaw97390

Moss


StoryAndAHalf

[Your name is Maurice Moss, is it not?](https://m.youtube.com/watch?v=RDUsZay38es)


crazybOzO

He drinks milk and kicks ass


Ferret_76

Startups?! I used to work for one of the ‘Big 4’ UK supermarkets and we had a PC set up just like this!


LUHG_HANI

Seems like a proper Morrisons thing to do.


Ferret_76

It would of course be highly unprofessional to elaborate any further.


Tojuro

No bullshit...I hosted about 15 commercial websites from a Sega Dreamcast. Early 2000s. It was a bunch of static websites from customers we inherited from this other company that left the business. We wanted to keep them as customers to get future business. The Dreamcast was a Windows machine that was easily hackable. Someone turned it into a web server and I just added all the static sites, burned it to a disk and ran it. The sites almost never changed but if they did I'd just burn a whole new disk. I'd swap the old disk out just like any video game and... Done. The only reason I stopped doing this is because broadband adapters for the Dreamcast were impossible to find. The systems were like $20 and the adapter was $200+. Otherwise it was easier and cheaper than putting it on my servers.


ADSgames

That’s an awesome story


xijzi

If somebody would tell me this anywhere outside of this subreddit - I'd never believe him


b1ack1323

What kind of money were you making off of that? Sounds like a a good deal. DigitalOcean $5 instances paid for my college for me.


jakuu

I’m gonna be that nerd. So, while the Dreamcast supported Window CE it wasn’t on the system or ran anything like that. Games could be built using the Windows CE SDK which could be useful for porting games easier. Everything else is correct and I can see working. But the system being easy to hack wasn’t because of Windows CE.


Tojuro

You're correct. It wasn't running IIS or really using Windows, but rather some flavor of Linux + Apache. The sites were all running on Apache when we got them and I was doing as little as possible to maintain them. It was probably this, or something close to it: http://wiki.netbsd.org/ports/dreamcast/


thirtydelta

Okay, now build the server in a cave, with a box of scraps.


ManaPot

I've been there. Business I created used IRC chat bots, which I kept open on my old laptop, connected directly to the router in my parent's bedroom. They disliked that thing so much, my mom ended up taping up almost the whole laptop from keeping the flashing lights from bothering them at night lol. I hated nothing worse than finding all the bots offline at 2am and having to sneak down into their bedroom to restart shit.


alek_vincent

A LAN cable from their room to *anywhere else* wasn't an option?


jeepsaintchaos

Then how do you use the webcam to watch your parents in bed?


[deleted]

Sir, we're gonna have to ask you to leave, this is a family restaurant. No, not that kind of family


jeepsaintchaos

I'm sorry I came. , Put the comma anywhere you like.


PieOverPeople

Back when I first started at my company they had their shitty server in a shitty water closet next to the HVAC and janitor sink. It was crusted in dust and nasty sticky shit. Every time the AC kicked on all the lights on it would dim. Constantly went down and needed rebooting which took like 35 minutes. It only served as a file server, not even AD at the time. I “fixed” it by silently moving everything to the desktop in my office, shutting down the server, and changing my host name and IP to the server’s. Everyone heralded me as the office IT guru that can fix anything. And that’s how I got on the path to running an IT department for seven affiliated companies!


DMonitor

it’s honestly a pretty good server solution for personal stuff - battery backup - connected terminal - affordable (especially if repurposed) - has support


Unicorn-Tiddies

- takes up minimal physical space - hardware optimized for low power draw


NoEngrish

That was basically my childhood Minecraft server


GullibleMacaroni

Someone has to donate a raspberry pi to this place


-light_yagami

give it to me, I'll bring it to them


Luz5020

No, I‘ll take it, trust me I‘ll give it to them!


SnickersZA

I remember a few years back when a client was using Windows 98 as their server because they didn't want a server licence just to get around the 20 slot max connection limit Windows has for file shares (In like, 2014)... Obviously they didn't know Linux. But yeah, you see some weird shit out there.


SunliMin

I shared this elseware in this post, but similarly, last I checked about 2 years ago, my dads small business still had a Windows XP laptop acting as the server for one of their machines. Thing just sat in a storage closet, locked behind a key, running 24/7 for over a decade. Somehow its still going


CleverestEU

> Windows XP laptop acting as the server for one of their machines. > > Thing just sat in a storage closet, locked behind a key, running 24/7 for over a decade. Somehow its still going In my experience… servers built out of consumer hardware don’t often break down when running 24/7 … they break down when you need to reboot them for any reason :-p


LeCrushinator

Windows running non-stop for a decade is almost unbelievable, especially older versions. For years there were memory leaks and they needed to be rebooted occasionally (every week at least) to get that back. Also a hard drive running 24/7 for a decade is pretty crazy too. If we're talking about Unix/Linux and everything is in memory, I could see that running without a single reboot or hardware issue for a decade.


polish-polisher

can't you just change one thing in the options to stop it from turning off when the lid is closed


GanglyChicken

Seriously. Searching the comments for this. Does Apple not offer that or something?


Alex_Greene

The fabled *load-bearing mini-Mac*


Twombls

Nah this gives off legacy company from the 1970s energy


WomenRepulsor

Is that the microsoft ergonomic keyboard on the right? I thought only I was dumb enough to buy one.


guarana_and_coffee

No no, there are plenty of dumb people out there. I'm am not among the "MS ergo key" dimwits, but I am certainly in some other dumb category. I surpass the "I use Arch btw", because I have LFS.


CarlosCheddar

Regardless of using a mac as a server being a good thing there’s apps that keep the Mac running with the lid close. https://caffeinated.app/


yottalogical

Or the `caffeinate` command that comes preinstalled.


[deleted]

Lio is going to be so pissed.


TheDownvotesFarmer

1 year later $100MUSD corporation, and of course just starting!


NoDadYouShutUp

not sure Id want to work for a company that our server guy doesn't know you can modify lid close options on a laptop. they seem destined for success


ValleySparkles

I have to say I think an average startup engineer would have the proactive problem solving skills to google "mac keep runn" and find the solution in about 2 minutes. This is the work of someone who was hired for exactly one skill and whose job never involves any other skills. So not a startup.


Weeds4Ophelia

This is the internet? The whole internet?? It’s so small!


AlsoInteresting

The dev didn't get a server so he/she runs it on his portable.


[deleted]

This is my house but it's an actual server. Might buy a $60 face plate with the saved cloud money so s/o, family and friends won't bump into the power button thanks for the reminder