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 - "doofus"
-
*has a great company name idea*
*tries to register domain*
*domain taken*
*looks at whois*
*i already own it*
i don’t know how to feel11 -
I bricked my Manjaro install by interrupting a kernel update like a fucking doofus.
After two hours of painstaking troubleshooting using a live image I finally resolved the issue. And man is that a good feeling. Solving complex problems (at least to me) on Linux is just such an amazing feeling ♥️12 -
A few years i had wrote a little script as a proof of concept for remote injection via torrent files.
Yesterday, some doofus bruteforced into my seedbox and tried to install a miner using the same script🤦🤦🤦
Did some digging, found my way back to him and wiped the drives on his system as a gesture of thank you. Anyways, I hope he didn't have anything important on his 16TB volume, cause good luck recovering that10 -
“Like herding cats.” I’ve heard this out of the mouths of PMs and other management types. No shit that’s what it’s like because cats aren’t herd animals. It’s what happens when you put some of the smartest people in your company at the bottom of a hierarchy, and then have some doofus manage us that reads inspirational leadership blogposts all day.
We will undermine the shit out of your shit, and you won’t even know it’s happening.
We will make every single reprimand of yours into a joke while you’re not in the building. “Hey Joe, I’m pretty sure what you’re doing right now is spreading negativity. Don’t you know it’s contagious?”
We will game every single metric you try to use on us. We will game every single one of your leadership agendas.
When I think of these things, I laugh in my heart like Skeletor.3 -
css quick maffs
so you did this:
.foo:hover {
transform: scale(1.1);
}
and now ugly scrollbar is there when the element is scaled.
No, don't do overflow: hidden. There's a better way. Instead, do this:
.container {
padding: 1rem;
box-sizing: border-box;
}
the element total width is calculated based on the width of its content. That's true unless you specified width and height explicitly (if you did so, you're a doofus, I'm sorry).
Scaling makes content somewhat larger. With border-box, paddings work differently with the total width.
By default, if you set width to say 100px, and paddings are 20px, total width will be 140px — it's your 100px of content plus two paddings of 20px. width property set the width of the content, not the total width.
With border-box, width property sets the total width. So if you set width to 100px and paddings to 20px, total width would be 100px, just like you set it, and content will be 60px wide — it's 100px minus 20px times two.
The key part is it doesn't end with explicit width. The algorithm remains. When some node is rendered, its total width is calculated. When you use border-box, the total width will stay the same even if your content grows by some value that is less than your paddings. So, your content was 100px, you scaled it, and it became 110px. Well, then that extra 10px will be subtracted from your paddings, and they will be 15px each instead of 20px.
No more ugly scroll bar. Yaaay!
aight bye8 -
Who the flying fuck thought this was a good idea?
Could you not have used rails c/equivalent??
Doofus.1 -
Pet peeve #3984 - when managers / salespeople anyone else pretends it's just appropriate to "add up" years of experience.
"I'm sure we can solve this, the team have over 100 years of coding experience between them"
...yeah, that's not how experience works, doofus. Unless you'd really trust 20 people with 6 month's experience over a single person with 10 year's experience.6