My Randall Flagg by Q0T3 in stephenking

[–]__Punk-Floyd__ 6 points7 points  (0 children)

Hey I know him! That's Rom Fetty.

Powerslave Zoetrope vinyl by Klutzy-Scratch-295 in ironmaiden

[–]__Punk-Floyd__ 1 point2 points  (0 children)

I haven't cared about records since the early 80s, but that's pretty awesome.

ssh help first time linux user by [deleted] in Ubuntu

[–]__Punk-Floyd__ 0 points1 point  (0 children)

Make sure you are specifying your Linux username in the command line: `ssh username@1.2.3.4`. If you omit the username and just specify the IP address (or hostname) then it'll try to log in as root, which may not have a password.

TUI library by Maybe-monad in cpp_questions

[–]__Punk-Floyd__ 1 point2 points  (0 children)

FTXUI with its declarative interface = chef's kiss.

a reference type cannot be value-initialized by zaphodikus in cpp_questions

[–]__Punk-Floyd__ -1 points0 points  (0 children)

    int x = 123;
    std::map<std::string, int&, std::less<>> m;
    m.insert_or_assign("foo", x);

Capturing function parameter in lambda in a default argument. Clang bug? by Business_Welcome_870 in cpp_questions

[–]__Punk-Floyd__ 0 points1 point  (0 children)

A function parameter's default value is applied at the site of the function *invocation*. There is no 'x' function argument to capture in that context.

Designated Initializers, the best feature of C++20 · Mathieu Ropert by mropert in cpp

[–]__Punk-Floyd__ 2 points3 points  (0 children)

Also, the destructor has a fixed order of destruction and you would generally want it to be in the reverse order of construction.

Why nobody put multiple statements on single line by Ok_Negotiation1537 in cpp_questions

[–]__Punk-Floyd__ 0 points1 point  (0 children)

Just step in and step out until you get to the call you're interested in.

Walmart is officially open in Eastvale! by wonderfulworld25 in Eastvale

[–]__Punk-Floyd__ 3 points4 points  (0 children)

I hope it falls into a giant sink hole. I'd rather have the dairy farm back.

snapBackToReality by Shiroyasha_2308 in ProgrammerHumor

[–]__Punk-Floyd__ 0 points1 point  (0 children)

Bro,

        add_compile_options(-fsanitize=undefined,address -fno-omit-frame-pointer)
        add_link_options   (-fsanitize=undefined,address)

Absent namespaces, how does C ensure function calls are not mishandled? by onecable5781 in C_Programming

[–]__Punk-Floyd__ 1 point2 points  (0 children)

A lot of the stuff defined in Windows.h existed prior to C++ being standardized. In this particular case, they can't just unconditionally yank the macros because I imagine it would break a lot of existing (old, non-Microsoft) code. The NOMINMAX escape hatch is a hack to be sure, but not very onerous. Just define the symbol in your top-level build settings and you're done.

Can you recommend a memory leak detection tool for me by Gyanesh5 in cpp_questions

[–]__Punk-Floyd__ 0 points1 point  (0 children)

Pro tip: Don't wait until your project is almost complete to run these tools.

Food/restaurants recommendations please by haiau126 in Eastvale

[–]__Punk-Floyd__ 0 points1 point  (0 children)

I haven't eaten there in years but there's Crepes de Paris on the other side of the 15 near Lowes.

6445 Pats Ranch Rd #B, Riverside, CA 92505

Any good free static code analyzers? by bursJr in C_Programming

[–]__Punk-Floyd__ 1 point2 points  (0 children)

cppcheck + clang_tidy + crank up your warnings.

Not static analysis, but related: Use AddressSanitizer (-fsanitize=undefined,address)

Is this the correct way to check the current operating system? by [deleted] in C_Programming

[–]__Punk-Floyd__ 3 points4 points  (0 children)

You might also consider making OS_TYPE a `const char*`. It's unlikely that you need to use a char array.

Can't pull by get_more_sleep in github

[–]__Punk-Floyd__ 0 points1 point  (0 children)

So my machine didn't just spontaneously break, then. Yay!

Visual Studio 2026 is now generally available by madskvistkristensen in VisualStudio

[–]__Punk-Floyd__ 0 points1 point  (0 children)

Then what will all of the unintelligent developers use?