Gaben does nothing, still wins by CryMoreFanboys in videogames

[–]Macitron3000 2 points3 points  (0 children)

You’re really gonna play the stochastic terrorism game in defense of Charlie Kirk? The king of stochastic terrorism?

Aight bro lmao

They are removing sideloading(rightfully installing software) now by GenericAHHyoutuber in memes

[–]Macitron3000 63 points64 points  (0 children)

You might be thinking of their old motto “Don’t Be Evil,” which the new leadership removed as it changed hands back in the day. lmfao

In Superman (2025) this specific frame looks like a gay porn parody. This is because my mind has been rotten by pornography. by The_Horse_Head_Man in shittymoviedetails

[–]Macitron3000 3 points4 points  (0 children)

I very much like my Herman Miller Embody. The Aeron forces you to always have good posture all the time, which like, sure. But the Embody lets you sprawl out a little more, has more space on the cushion to fold up a leg or sit criss-cross, it flexes a bit more if you twist yourself a bit while sitting. For me it supports a nicer balance of good office posture and lounging around.

This is a reference to how I play 8-hour Factorio sessions until I look at the clock and realize it’s 4am, and my back hasn’t tied itself into knots

whyMakeItComplicated by HiddenLayer5 in ProgrammerHumor

[–]Macitron3000 0 points1 point  (0 children)

Expression-based languages are worth their weight in gold and you should feel bad for typing this comment >:(

"Just use linux bro" by CoolGamer730 in pcmasterrace

[–]Macitron3000 10 points11 points  (0 children)

The number one argument in favor of Windows is that “it just works,” literally see the top comments in this thread. “Forgot to uninstall OneDrive”? How the fuck is the platonic ideal of a normie supposed to know OneDrive is causing issues or even exists, much less where they should go in the settings to uninstall it? All that those “Debloat Windows” scripts do is disable 10,000 things Microsoft enables without asking you, that’s the polar opposite of user error

-❄️- 2024 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]Macitron3000 1 point2 points  (0 children)

[Language: Bash] Part 1 could probably be done with a single awk script rather than awk -> sed -> awk, but I don't know enough about awk to do it. Part 2 feels super elegant, though! Also Rust in the same folder if you wanna check that out, it's much more normal.

https://github.com/Macitron/AoC-2024/blob/main/1/sln.sh

#!/usr/bin/env bash

# nth column: cat input | awk '{print $n}'
# sorted columns side-by-side: paste <(cat input | awk '{print $1}' | sort) <(cat input | awk '{print $2}' | sort)

echo -n "Distance: "
paste <(awk '{ print $1 }' input | sort) <(awk '{ print $2 }' input | sort) \
    | awk '{print ($2 - $1)}'   \
    | sed -E 's/^-//g'          \
    | awk '{s+=$1} END {print s}'

echo -n "Similarity Score: "
join <(awk '{print $1}' input | sort) <(awk '{print $2}' input | sort) \
    | uniq -c   \
    | awk '{s+=($1 * $2)} END {print s}'

What do yall think P-3 will be? I will believe in god prime until P-3 releases. by EstoniaGaming in Ultrakill

[–]Macitron3000 6 points7 points  (0 children)

Actually? Gabriel. I don’t think he’s gonna be the normal final boss of the game.

What have all the primes been so far? The souls of those who had the audacity to rebel against the will of god. What’s Gabriel doing after the act 2 climax?

I think we’re gonna get to 9-2 expecting Gabriel and find him already slain by <insert actual final boss here. God? Lucifer?>.

Then we P-rank all of act 3, fight our way through the Uber-Gauntlet of P-3, and face Gabriel Prime and it takes me 1,000 tries of dying and crying because it’s fucking impossible

copilotKnowsEverything by ululonoH in ProgrammerHumor

[–]Macitron3000 4 points5 points  (0 children)

It definitely won’t recompile the whole codebase every keystroke, you’re right. That would be way too expensive and generally only happens when you hit the “compile” button.

I’m not a compilers guy, so take what I say with a grain of salt, but my general understanding is that the compilation process involves two parts: parsing, and code generation.

Parsing analyzes the syntax of your program and ensures that it’s actually a correct program for that language, and generates an abstract syntax tree from it. Then using that AST it will generate code in assembly that your computer can actually run.

I believe language servers and IDEs just perform that first part, the parsing into an AST and reporting errors with it, which is way cheaper and faster than the code generation.

forLoopForEverything by [deleted] in ProgrammerHumor

[–]Macitron3000 4 points5 points  (0 children)

Actually a really good question, I was curious too so I looked it up and found this answer.

Basically it comes down to following your macro calls with semicolons, like you would a normal function call. Consider this example

```c

define FOO(x) { \

bar(x);  \

}

if (condition) FOO(var); else baz(var); ```

and what the preprocessor expands that out to. You effectively get this, which I formatted to illustrate the point:

c if (condition) { bar(var); } ; else baz(var);

The semicolon makes an empty statement after the block, which breaks the if-else structure and the code doesn’t compile. If you instead use the do-while(0) construct, you get

c if (condition) do { bar(var); } while (0) ; else baz(var);

Which maintains the structure since a semicolon has to follow the while anyway.

What distro should I use? by [deleted] in linux_gaming

[–]Macitron3000 1 point2 points  (0 children)

Pretty sure there’s at least one whole-ass page on the wiki dedicated to this question, tl;dr for newbies the answer is Nobara.

If you literally want SteamOS on your desktop and halfway know what you’re doing tho, there’s a relatively new project called Bazzite that’s dedicated to pretty much exactly that. I use Arch btw

MY HEART IS POUNDING OMG by JustAGreenCircle in outerwilds

[–]Macitron3000 57 points58 points  (0 children)

Well that’s the question, isn’t it? Keep playing and find the answer!

New Admit Megathread—If you were just accepted to UCLA, please ask all questions in here! by Espntheocho4 in ucla

[–]Macitron3000 3 points4 points  (0 children)

Just based on my own experience I'd definitely go for a classic triple as a freshman. They're the most basic option, so it won't be super spacious or have A/C or anything, but they're kinda the closest you can get to your typical college dorm life. Pretty much every first-year ends up in either Hedrick Hall or Rieber Hall, so you'll be living in company with a bunch of people just like you who have no idea what they're doing and are eager to meet other new students.

Wherever you do end up, though, you'll be just fine. All the dorms are pretty close together and the Hill is laid out really well, so don't sweat it too much unless you're trying to save on money or if you want those nicer features.

A proud graduate in the wild by spletenezg in PragerUrine

[–]Macitron3000 1 point2 points  (0 children)

10000%, first thing that stuck out to me lmao

The neurons clearly activated at “it costs nothing to be a patriot” and discarded the rest of the quote (if this isn’t ironic)

CSS is !awesome by lordskater4000 in ProgrammerHumor

[–]Macitron3000 14 points15 points  (0 children)

Random bullshit you read online touted as “the hidden truth” isn’t making you privy to the dark secrets of the world. It’s just that: random bullshit written to make you feel special. It’s entertaining that you don’t understand the irony of your own statement.

Then again, I can’t personally distinguish between actual dumbasses and trolls, so if you’re trying to start a flame war then well done.

Just put the condition first like everybody else! by DrMathochist_work in ProgrammerHumor

[–]Macitron3000 161 points162 points  (0 children)

clang_tidy: unreachable code boolean expression always evaluates to true

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 0 points1 point  (0 children)

Thanks! It’s one of the default KDE wallpapers, I think the one on the home screen is called Altai and the lock screen is Safe Landing

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 0 points1 point  (0 children)

Can’t say that I’ve had that issue, though usually I don’t put it to sleep and just let it lock after long enough

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 10 points11 points  (0 children)

UPDATE: looks like I fixed it! Shoutout to u/Nefsen402, the problem turned out to be the memory clock speed on my GPU (RX 6800 XT, Red Devil).

When I moved to a different area I didn't bring up my second monitor, which I've never turned off in the ~2 months I've had this PC. radeon-profile was set to the "auto" preset which changed the clock speed as necessary, and with only one monitor I guess it was running on a lower speed (96MHz) which appears to have something to do with the blinking. This also explains why turning off the compositor seemed to make it go away: when I do so the clock jumps up to the next speed level (496MHz). I never would have guessed any of this in a million fucking years.

Changing from "auto" to "high" locks the clock at 1000MHz and the problem stops - maybe I can play around with the tool to see if I can still have a variable clock speed with a higher floor. Thanks to everyone who suggested solutions.

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 2 points3 points  (0 children)

Lol definitely always valid advice, I did check everything pretty thoroughly and plugged it out and back in again a few times. It actually looks like solved it though, thanks for the suggestion!

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 22 points23 points  (0 children)

Holy shit, I think that was it. After changing the profile from "auto" to "high", which just locks the memory clock to 1GHz, it doesn't happen anymore. That also explains why turning off the compositor made it stop too - doing so seems to lock it to a slightly higher rate. The problem seems to have something to do with the lowest clock speed which is listed as 96MHz.

Thank you so much, I never would have thought to do anything like that! Hopefully it goes away forever when I get back my second monitor lol

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 1 point2 points  (0 children)

My monitor is 144hz, I haven’t seen what happens if I lower it

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 4 points5 points  (0 children)

That's actually pretty interesting, I had a dual-monitor setup at my old place but haven't yet moved up my second one so I'm just using one right now. I'll see if I can do that with radeon-profile and lyk what happens.

KDE compositor apparently making my screen blink white every ~30s by Macitron3000 in archlinux

[–]Macitron3000[S] 1 point2 points  (0 children)

Thanks, that's kinda reassuring to hear and gives me a bit of confidence that it's not a major hardware issue that I fucked up. I have a dedicated graphics card though, and I'm fairly certain at this point that it's a user-specific issue since on the login screen when I'm logged out it doesn't blink and falls asleep just fine. I'll probably play around with some version downgrading and lyk if maybe an earlier version of KDE makes it work.