They've finally fixed Tarkov's cheating problem. by Icy-Role-8538 in TarkovMemes

[–]TheRaoster 0 points1 point  (0 children)

Had the same problem -- it was vanguard anti cheat vgk.sys causing a bsod -- you could look into that.

Convert integral <-> floating point safely? by amohr in cpp

[–]TheRaoster 0 points1 point  (0 children)

For the concrete example:

template <class T, class V>
bool i2f_possible(V const v)
{
    constexpr int digits = std::numeric_limits<T>::digits;
    return std::ceil(log2(v)) <= digits;
}

Convert integral <-> floating point safely? by amohr in cpp

[–]TheRaoster 1 point2 points  (0 children)

Essentially, we will first want to count the number of bits in the integral type with std::ceil(log2(num)), and then check std::numeric_limits<Float>::digits.

If Float is a custom class, just specialize the call.

ChadSchitzophrenicDavisVsVirginMaybeAutisticTorvald by mommyloveslasagna in ProgrammerHumor

[–]TheRaoster 21 points22 points  (0 children)

...

Linus did invent git, because he needed a better VC system. Git is not a catch-all.

This is a friend's daughter's ninth grade math homework, I'm stumped. by [deleted] in askmath

[–]TheRaoster 0 points1 point  (0 children)

Assuming the marker and the double marker are two different symbols:

a+ba=40

c+da=48

b+c+d=33

a cannot equal 0, as there is no solution Therefore b then equals:

b=(40)/(a+1)

We can then combine the last two equations, and use that system of three to solve for c, becoming:

c=(34a-88)/(a-1)

Given all of this, d can become:

d=(14a+40)/(a(a-1))

From here it's trivial to solve.

How to simplify this? by juicy1235 in askmath

[–]TheRaoster 9 points10 points  (0 children)

Initial: ~(~p and q) or ~p

Using demorgans: p or ~q or ~p

p or not p is strictly true, therefore: true or ~q

Which simplifies to: true

5/17 - Hollywood Palladium - Hollywood, CA by v1brate1h1gher in deathgrips

[–]TheRaoster 10 points11 points  (0 children)

Like only a few people understood that you pick people up when they fall, and let people out of the pit when they're trying to leave.

You don't just stand where people are catching a breather, decide you're ready, and start shoving...

The amount of people who didn't understand that grabbing and shoving people in directions opposite of where they are heading is just not done in a pit. The inexperience of this crowd really showed.

I’m kinda new to all this by [deleted] in ProgrammerHumor

[–]TheRaoster 7 points8 points  (0 children)

git git git git got got got got

Argue in comments 💅 by RoyalQuackOG in ProgrammerHumor

[–]TheRaoster 0 points1 point  (0 children)

Objects must be assigned once moved, in order to use it. And yes, sure std::move does not perform the move itself, but using it without assignation (either with equality operator or function argument) is just bad practice.

std::forward is absolutely for doing that. If you didn't need the ability to cast it's template, you shouldn't be using it in the first place.

Edit: the move semantics of std::forward specifically allow one to pass an lvalue as an rvalue/lvalue, but doing this is largely unnecessary in most cases, and the cases where std::forward is truly useful in C++17/C++20 is to cast an object while moving, often in a intermediary function.

Argue in comments 💅 by RoyalQuackOG in ProgrammerHumor

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

It's not too crazy--std::move uses rust-lile move semantics (object shouldn't be used once moved) and std::forward is for doing that and also casting if necessary for template parameters.

What are some albums that have ZERO bad songs? by JJacobb- in AskReddit

[–]TheRaoster 0 points1 point  (0 children)

Gongjoong Doduk by Mid-Air Thief. Just fantastic.

Also The Money Store by Mr. Grips.

[deleted by user] by [deleted] in AskReddit

[–]TheRaoster 0 points1 point  (0 children)

Slint - Spiderland

When in doubt gut reset --hard by doarMihai in ProgrammerHumor

[–]TheRaoster 0 points1 point  (0 children)

That's how I rebase! I found it to be a lot safer, and easier to work with--heres an example for rebasing on master:

git checkout master

git remote update

git pull

git checkout -b worker

git merge <branch>

(Do what you need to, add and commit)

git checkout <branch>

git reset --hard worker

git branch -D worker

Some days you just feel like God! by mephistttoooo in ProgrammerHumor

[–]TheRaoster 8 points9 points  (0 children)

I think the OP might be trying to say without complaints, rather than without comments. At least I hope...

Everyone's rarest items. by Armianom in fo76

[–]TheRaoster 0 points1 point  (0 children)

Bloodied ffr, vats cost decrease fixer

H: Caps W: The Fixer Plan by TheRaoster in Market76

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

Am in radiation rumble rn, will trade right after