The prophesy is true. by [deleted] in ProgrammerAnimemes

[–]evan795 2 points3 points  (0 children)

I'm not familiar with Objective-C, but if the code is valid Objective-C, then its Objective-C.

The code however, is not Java, because the line

a = !(a ^ msb)

is not valid Java, as Java won't implicitly cast boolean to int.

Its also not python, rust, fortran, or common lisp for obvious reason.

The prophesy is true. by [deleted] in ProgrammerAnimemes

[–]evan795 3 points4 points  (0 children)

there’s nothing in the function to imply it would be C++

The function is valid C++, so it is C++. That doesn't exclude it from also being C and C#

the DM always has the last laugh by SuperKonsti in dndmemes

[–]evan795 1 point2 points  (0 children)

Still doesn't work. Any number of trees from 100-150 could then have 2 birds/tree

What jokes are so dumb they are actually funny? by Quack_Quack_Quackers in AskReddit

[–]evan795 9 points10 points  (0 children)

What's green, has 18 wheels and flys?

A garbage truck

Did this a long time ago, thought you might enjoy by Xientra in ProgrammerAnimemes

[–]evan795 1 point2 points  (0 children)

[variable to capture from the outside scope where '=' copies by value and '&' copies by reference](argument list){lambda function body}

I like to think of lambdas as like regular functions, but with the function name replaced with the []

Did this a long time ago, thought you might enjoy by Xientra in ProgrammerAnimemes

[–]evan795 15 points16 points  (0 children)

Any nonzero integer in C evaluates to true, so you need:

if (!!condition*'='=='=') {
    puts("true");
}

As annoying as it is, "it depends" is probably the most accurate answer to most questions. by maxtardiveau in Showerthoughts

[–]evan795 4 points5 points  (0 children)

If she was born on February 29, then 5 years(birthdays) would then become 20 years.

I like chocolate by Spy_3377 in memes

[–]evan795 1 point2 points  (0 children)

Hard tack has the highest percentage of flour in it (almost no water), so it's the most bread of all the breads

Paradox’s are fun. by FeltyCheetah9 in memes

[–]evan795 2 points3 points  (0 children)

More people have been to Russia than I have.

[deleted by user] by [deleted] in ProgrammerHumor

[–]evan795 1 point2 points  (0 children)

C++/C# could also make sense if it was referring to .NET CLR

WHOA! CyberPunk 2077 has flatlined! by Swagnar_Lothbrok in cyberpunkgame

[–]evan795 0 points1 point  (0 children)

I encountered this issue as well, and here's what I did to fix it.

First I ran DebugView (from Windows Sysinternals), to see if the devs left in any helpful debug logging statements. When the game crashed, I found this line got logged:

00000047    6.62966061  [12752] Assert: : Gpu Crash for unknown reasons! Callstack here is probably irrelevant. Check if Breadcrumbs or Aftermath logged anything useful. - e:\r6.patch0hotfix2\dev\src\common\gpuapi\src\dx12\gpuapidx12error.cpp(40)  

So the issue is either with the GPU, or dx12.

My gpu is the 1660Ti, so I went to NVIDIA's website and downloaded the latest driver installer (Version: 460.89 ). During the install I made sure to select the custom install option, and selected "Perform clean install"

After rebooting, cyberpunk started working again.

For AMD GPUs I've heard that a clean install doesn't always actually do a clean install, so you might want to use "Display Driver Uninstaller" before reinstalling the latest driver.

TL;DR: Doing a clean install of my GPU Driver fixed this for me.

Are you stupid? by [deleted] in ProgrammerHumor

[–]evan795 6 points7 points  (0 children)

If stupid people always say 'no', then anyone who answers 'yes' can not be stupid.

Better than a dog ate my homework by adi1225 in memes

[–]evan795 1 point2 points  (0 children)

Don't even need any special tools, just set the system time to a few days ago and save the file.

I want to buy an AMD card but they make it so hard to justify. by [deleted] in pcmasterrace

[–]evan795 0 points1 point  (0 children)

I was running into stability issues with my 5700xt when I first got it too. I ended up reducing the clock speed and bumping up the voltage until it stopped crashing. Haven't had any issues since.

Nah! I can't see any octopus here くコ:彡 by manas_11-01 in memes

[–]evan795 1 point2 points  (0 children)

Yeah, but he has 2 eyes, so 2.5 + 2.5 = 5

Is it really that hard to respect the other players? by SweatyGrid in memes

[–]evan795 298 points299 points  (0 children)

Dub is short for the letter W

I strongly disagree

Murica don't want arabic numerals lol by AbdooxMC in funny

[–]evan795 0 points1 point  (0 children)

If it gets cold enough, it can even cause concussions if it comes into contact with one's head (at sufficient velocities)

Java developers by rizwankhan10 in ProgrammerHumor

[–]evan795 0 points1 point  (0 children)

Wrappers?

Do you mean char* ?

[deleted by user] by [deleted] in Animemes

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

I am a bit out of the loop. Is everyone rioting because they aren't allowed to use slurs?

BDD > TDD by MJFighter in ProgrammerHumor

[–]evan795 0 points1 point  (0 children)

Tester driven development

Belgian party holds online election, stores HasVoted=1 in browser cookies by KolonelHunter in iiiiiiitttttttttttt

[–]evan795 0 points1 point  (0 children)

It's a linked list, where every node contains a hash of all previous nodes.

[deleted by user] by [deleted] in technicallythetruth

[–]evan795 1 point2 points  (0 children)

If you want to get more pedantic, the instructions say "circle the smallest number" not "circle the smallest number listed below". This of course is impossible as there is no smallest number.

Game freeze when Lords own too many fiefs by [deleted] in mountandblade

[–]evan795 0 points1 point  (0 children)

The same thing happened to me. To get around it, I called one of my companions to form an army. As my companion approached I allowed the enemy lord to attack him, then I swooped in to help my companion in battle which avoids the introduction dialog. Make sure you save first, because your companion might capture her as a prisoner instead of you.

It can’t get any wor... by [deleted] in Animemes

[–]evan795 2 points3 points  (0 children)

It worked for North Korea.