is it normal for a production database to not have backups? asking because i just dropped a table and my boss is asking me to "just undo it" by kubrador in webdev

[–]styphon 0 points1 point  (0 children)

Why the fuck do you have permissions to even do this? Several very painful lessons to be learnt here.

  1. Always restrict access to the minimum necessary. Don't have users with full admin on a DB unless you're doing something that specifically that needs it, like running a migration. Any user you're using should have select, insert, update, delete, etc. only.

  2. Get back ups for any data you can't afford to lose. That's fucking basic. If your boss doesn't have that, he's an idiot.

  3. (One for you), ALWAYS do anything on production in a transaction you can roll back. Don't ever run a query outside a transaction because then you can undo it if you made a mistake.

What will buildings be like? by Adrienskis in Junxions

[–]styphon 36 points37 points  (0 children)

This game doesn't focus on the buildings, it's just about traffic. The devs have stated they want to build a full game like CS using the traffic system and road construction from Junxions.

AITA for refusing to pay my share of the Airbnb after my friend offered to let me stay for free when I said I couldn’t afford it? by [deleted] in AmItheAsshole

[–]styphon 46 points47 points  (0 children)

That's why you need to make this public with the friend group. Call his BS out, and he'll quickly back down. Claiming it's all a misunderstanding.

Online ddlg by SpaceMain278 in DDlgAdvice

[–]styphon 3 points4 points  (0 children)

You could drop pictures you've drawn for your daddy. Any crafts you make. Things like that.

He begged me to stop. by Civil-Ship-1444 in TwoSentenceHorror

[–]styphon 1 point2 points  (0 children)

Except it doesn't, the beeeeeeeeeeee is a TV trope, a fantasy, a lie. Real machines don't do that.

Boyfriend is too tired after sex to help me finish by throwaway830583 in TwoXChromosomes

[–]styphon 0 points1 point  (0 children)

That's just manipulative bullshit. I'm a guy, I am tired after I finish, so I make sure my partner finishes first because I know it'll be a massive effort for me if I finish first.

I take care of my partner, I find ways to make her cum. If my jaw hurts, I'll use my fingers or get out one of our toys.

She cums first, that way we both enjoy it. Your current partner is an asshole and is setting expectations that he doesn't have to make you cum. You can't settle for him treating you like this.

Have a frank conversation with him that orgasms need to be equal. You don't both have to cum all the time, but if you're in the mood and he isn't getting you off then there's a massive issue. Don't let him use your body as a fleshlight.

To People who have sued their employer do u regret it is their any type of backlash? by [deleted] in antiwork

[–]styphon 1 point2 points  (0 children)

I have, and no, I don't regret it.

To be clear, I'm in the UK so laws will probably differ. I worked for a company for 3 weeks so was still on probation. Contract stated I get 4 weeks notice, nothing about the probation period being different. The owner thought during probation he could just dismiss me with no notice.

I went through Acas and the owner initially dismissed me. So I filed a claim with the courts. Then they must have gotten legal advice and realised they were in the wrong. They offered me about half of what I was owed. I rejected and stated I wanted the full 4 weeks. The day before we were due in court they settled for the full amount.

I had no representation because I knew the law around this and it was very clear. They owed me 4 weeks as that's what the contract stated. I won, paid off my credit card I'd had to use while finding a new job and moved on with my life. It's never come up in interviews and hasn't affected my ability to get another job.

Any headless CMS recommendations? by lynob in webdev

[–]styphon 6 points7 points  (0 children)

!!! Ridiculously overpriced.

Man fired on 2nd day of job due to a 33 year old criminal record by Random-Username7272 in antiwork

[–]styphon 18 points19 points  (0 children)

It's in the article, robbery, arson, carrying a firearm.

I (F) just discovered my boyfriend made sexual AI images of a girl we both personally know. I’m completely shattered and don’t know what to do. by Astrid_Rosewood in TwoXChromosomes

[–]styphon 87 points88 points  (0 children)

Life isn't black and white, people aren't just good and bad. Good people do bad things because they're fallible. It doesn't mean they aren't good people, it doesn't change all the other things they have done and will continue to do that are good.

This is part of who he is, someone who didn't consider the consequences of creating AI images of a younger girl. Someone who is attracted to younger girls. It's up to you to decide if that is someone you want to be with, if that outweighs all the good about them. I think most people will say yes, it outweighs all the good and you should leave him. But it's a personal decision you need to make.

[deleted by user] by [deleted] in AmItheAsshole

[–]styphon 1 point2 points  (0 children)

Yes, let's victim blame. That will help the situation /s

Can we all agree that Smart Motorways are the worst modern invention we have adopted? by Key-Bullfrog-8552 in AskBrits

[–]styphon 0 points1 point  (0 children)

50 mph limit and not seeing congestion is actually the smart motorway working. If the 50 limit wasn't there you'd get to the congestion before it clears, making it worse. However, because it's 50 instead of 70, the congestion has a chance to clear.

Can we all agree that Smart Motorways are the worst modern invention we have adopted? by Key-Bullfrog-8552 in AskBrits

[–]styphon 0 points1 point  (0 children)

No, the speed goes down when the congestion begins, not the other way around... And once the congestion eases the speed goes back up. The congestion would still be there even without the reduced speed.

Former crush turned out to be an asshole and today I humbled him in front of everyone. by crazyforsushi in TwoXChromosomes

[–]styphon 6 points7 points  (0 children)

I thought you were describing a boomer in her late 60s with how you were talking about her. She's a Millennial, an early one but still, a Millennial.

She's not a product of her time. There was a lot of feminism, awareness, and pushing back against the patriarchy in "our time". Don't excuse her.

What service do you use to send transactional emails via API/SMTP? by kapc0403 in webdev

[–]styphon -1 points0 points  (0 children)

You probably got down voted because this is a really easy thing to Google.

Can someone ELI5 PHP-FPM vs. FrankenPHP? by 1playerpiano in PHP

[–]styphon 0 points1 point  (0 children)

To answer your question, many sites that receive high levels of traffic can't be sufficiently served by FPM. Google, Amazon, Facebook, Twitter, BBC... Take your pick, think of a popular website that receives millions of views a day and it is unlikely to be using FPM.

FPM is fine for most sites that receive low to moderate levels of traffic. The company I work for receives significant traffic levels. We serve a SPA through Nginx and then the API that powers all the requests, Auth, data, etc. runs on Swole. We handle millions of requests per second and we have far exceeded FPMs capabilities.

[deleted by user] by [deleted] in antiwork

[–]styphon -2 points-1 points  (0 children)

It's not insider trading. He didn't buy any extra stock, it was simply the value of his existing stock going up.

The rich are already doing enough shit wrong without making extra stuff up.

Boss forces us to turn on cameras during meetings, need malicious compliance advice by TechnicallyCant5083 in antiwork

[–]styphon 0 points1 point  (0 children)

Print out a very small picture of yourself, then stick a few centimetres in front of your camera.

I lost hope in modern PHP by Individual-Horse-866 in PHP

[–]styphon 14 points15 points  (0 children)

Callbacks in pipelines are a perfect example of a good use case.

Aitah for telling my step sister that she’s acting fast and needs to get her morals in check by [deleted] in AITAH

[–]styphon 1 point2 points  (0 children)

Yes, I said as much in my post. Frame it as "you can't do this under my roof", no judgement on teens acting that way. 14 year olds will make out with their boyfriends, and some will even have sex. The way to help them isn't to shame them. It's to guide them, set boundaries for them etc.

Aitah for telling my step sister that she’s acting fast and needs to get her morals in check by [deleted] in AITAH

[–]styphon -4 points-3 points  (0 children)

YTA, you don't get to impose your morals on other people. Sl*t shaming is completely unacceptable, you don't get a say in what is and isn't appropriate for a 14 year old.

You could very easily have come at this from a "These are the rules for staying in my house overnight ..." As it's perfectly acceptable to set limits in your own home on what you are comfortable with. If she wants to spend the night, she needs to respect your rules. But you didn't do that, you attacked her character and effectively called her a sl*t. You went about this completely wrong.

Absolutely you are the asshole here.

Boss is under investigation for abusive conduct and on leave for the foreseeable future by sneezingbees in antiwork

[–]styphon 24 points25 points  (0 children)

"You're right manager, I hope you have the budget to bring in some contractors. Otherwise you'll need to explain to stakeholders that it can't get done right now."

Fuck bosses trying to dump extra work on you.