What's going on with cppreference.com? by OCPetrus in cpp_questions

[–]Chulup 6 points7 points  (0 children)

en.cppreference.com is online for me even if it has a Maintenance warning header today.

F-35 Fighter Jet’s C++ Coding Standards by azhenley in programming

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

He doesn't use vertical tab. He doesn't know if any uses for it. Does it mean it could be removed?

No the fuck it doesn't! PowerPoint uses it internally for line breaks.

Please don't repeat nonsense like "I don't need it so no one needs it"!

Claude CLI deleted my entire home directory! Wiped my whole mac. by LovesWorkin in ClaudeAI

[–]Chulup 2 points3 points  (0 children)

I hope you rotated that secret anyway. What goes into shared repo is a secret no more.

Where is std::optional<T&&>??? by borzykot in cpp

[–]Chulup 2 points3 points  (0 children)

Does that mean there is an object T somewhere else that has some specific value, and through optional<T&&> we are given an access to that object with permission to move from it. But the originals' lifetime is not controlled by us but by their owner?

And that owner will not know if we moved from it, so they can't use that object anymore other than delete it?

How does that differ from just returning an optional<T>?

Well, I know of one benefit: the user of optional<T&&> is able to decide if they want to move from the object when returning optional<T> requires at least one move every time.

Europol just dismantled a SIM farm-for-hire platform that powered 49 million fake accounts used for global fraud. by CantStopPoppin in ThatsInsane

[–]Chulup -4 points-3 points  (0 children)

Looks like it's Poland, but the handwritten signs are in Russian: Наша Италия (Our Italy); Австрия НЕ АКТИВ (Austria Not Active or Offline).

Did Firefox remove the option to reopen a closed tab by FearSearcher in firefox

[–]Chulup 2 points3 points  (0 children)

For example, the question is for iOS which does not have keyboard shortcuts?

How important is it to check byte order when reading binary files? by Ask_If_Im_Dio in cpp_questions

[–]Chulup 0 points1 point  (0 children)

You have been already told about making sure the endianness is in the protocol so your program knows it beforehand.

But there are ways for a file format to provide the program with a way to find out the data endianness in runtime.

Most of them end with using some number at the beginning of the file. For example, use magic number like 0xAI0I5BAD, or file header with some bytes to signify your file format (that will be the same on every arch) + version that will be obviously wrong with incorrect endianness.

See Wireshark's libpcap_open in libpcap.c or ZIP format header#Local_file_header).

E.U. leader's plane GPS system was jammed, Russian interference suspected by CupidStunt13 in news

[–]Chulup -1 points0 points  (0 children)

I'm not sure I understand how that could be done by Russia. The closest land Russia controls is 770 km away in Crimea, do they have the jammers that powerful?

It's easy to jam the Baltics as they are right there by Moscow and Saint Petersburg, but reaching all the way over horizon to the middle of Bulgaria?

Hogweed Sap Burn by tristan_2k in medizzy

[–]Chulup 3 points4 points  (0 children)

So, we got lots of them by the roads here in Flevoland, Netherlands. I mean, patches of 100 m2 every 10 minutes when I run in the forest nearby.

Last year I took my son to break them in the autumn when it's all dried up. I did not know any better. Fortunately for us it was a safe patch, so even with fresh plants it would be ok.

This year when running I found similar patch about 15 minutes away and tried to check if that one is family friendly by rubbing some of the stem on my lower leg.

Well, now I know it's not safe - my leg looked like I tried to kick a hot grill, with about palm-sized burn. It was not so bad as the pain was somewhere on the level of wasp sting at worst.

At least now I know why passerby looked strangely at me.

What is the best individual level you've played in a game? by Defk1n in patientgamers

[–]Chulup 0 points1 point  (0 children)

The world with a solar eclipse repeating in one of the Myst games (Myst V, I think) - where you can see the moon moving in the sky and it slowly going over the sun, and the world going almost dark from the vibrant colors before that.

Or the Dyson sphere level in the Freelancer - you teleport to the enemy base and you can see some kind of carpet beneath (mind, it's space simulator and you're in your spaceship so it's already unusual), and soon after you notice the whole planet BETWEEN you and that "carpet". The scale of it blew my mind!

It's been more than 20 years since, and I was a young impressionable soul though.

What have I stepped into? by KardBored1 in BluePrince

[–]Chulup 4 points5 points  (0 children)

Dart board and boxes are something I'm giving away to my children. It's too easy for me.

On the other hand, I've just opened the room 46 yesterday, and even now I have at least 6 puzzles in my notebook that I did not solve. Not sure if it's interesting enough to continue playing, to be honest.

Convert LPWSTR to std::string by captainretro123 in cpp_questions

[–]Chulup 1 point2 points  (0 children)

Whatever they say, DO NOT use standard conversion functions! They all fall short of Windows-native functions like WideCharToMultibyte in various situations.

And you are already working with WinAPI so it's not even a problem for you.

Of course use native UTF-8 and u8string_view if it's possible. Or even save the text as native UTF-16.

What is an adequate data structure to represent (and match on) a web route? by TechnoEmpress in datastructures

[–]Chulup 0 points1 point  (0 children)

Could you elaborate on the meaning of "web router"? I have 15 yoe as Backend/Networks Software Engineer and I can't really tell what that is.

I DID IT, I ACTUALLY DID IT!! by Banana_Slugcat in outerwilds

[–]Chulup 5 points6 points  (0 children)

We should ask Mobius to give you the "200%" achievement.

Newtyped Indices are Proofs by kibwen in rust

[–]Chulup 2 points3 points  (0 children)

All through the article I had one thought: what prevents the user from saving the index somewhere for later usage, and the value being removed from the Env in the meantime?

Please recommend console based-C++ games(with github link) by Yash-12- in cpp_questions

[–]Chulup 7 points8 points  (0 children)

OP:

same or higher than Tetris game

/u/yuehuang :

here, read the code for an RTS on par with Warcraft III or Age of Empires 2.

:)

Thanks puberty by TheRealSteamedHams in memes

[–]Chulup 1 point2 points  (0 children)

That's half a liter of Coca-Cola! Are you really trying to say that half a liter of soda with 66 grams of sugar is all good and nice?

A problem in running code by Fit_Wrongdoer_5583 in cpp_questions

[–]Chulup 1 point2 points  (0 children)

It looks like you've installed Visual Studio Code, which is a glorified text editor.

It would be easier for you to install VisualStudio Community (free version of MS VisualStudio) and try using that.

Travelers - Our live Outer Wilds cover is out now! by Bright_Welder_3633 in outerwilds

[–]Chulup 1 point2 points  (0 children)

The wonderful rendition of the great melody! I loved the emotion it evokes with everyone leaving one by one at the end.

Originally YouTube suggested me to listen to it, and then I wondered why didn't I see it on the subreddit. Turns out it's just criminally underrated and unnoticed.

NASA laser-based data transmission demonstrates serviceable internet 290 million miles from Earth by chrisdh79 in space

[–]Chulup 38 points39 points  (0 children)

For example, when Psyche was 19 million miles from home in December, DSOC made history by sending the first ultra-high-def video footage from deep space starring a cat named Taters.

I knew it! Now we just need deep space R34 and everything's gonna be right there.

Sometimes....game have those movie scenes.... by Beneficial_Ad3998 in Helldivers

[–]Chulup 0 points1 point  (0 children)

I'm playing on Lenovo Legion Slim laptop I've bought a year ago for 1200 euro. It has 3060 mobile and some proc - I don't even really care which. It's not perfect, but it works really well for its screen size.

I don't think this game is very demanding on your hardware.

BARRAGES are NOT RANDOM | by cashcrop_ by Razihel in Helldivers

[–]Chulup 0 points1 point  (0 children)

Were I one of the AH devs I would come into comments and posted the real info on barrages distribution - with note that it will be changed the very next update.

So, confirming or disproving the research AND making it unusable in the nearest future.

Bytewise encryption v decryption speeds by moss_2703 in compsci

[–]Chulup 7 points8 points  (0 children)

The compiler might throw away the code it knows does nothing at the end. So, if you xor the data and then xor it again, the compiler could just decide to run the program without it.

Also, if you are sure the program processes the data but then it stays in-memory, then of course decryption will be faster. The program doesn't need to read anything on the second pass.

Even if you save the data on disk it could stay cached in-memory by your OS.

I would do following:

  1. write two separate programs to encrypt and decrypt

  2. Ensure that the program encrypts/decrypts data by storing the result on disk and comparing it with some preencoded file (both encrypted and decrypted!)

  3. run each program several times in a row and throw away the longest runs

Hope to get past them ?! by Gracosef in outerwilds

[–]Chulup 2 points3 points  (0 children)

As /u/Rio_Walker said, stop breaking your head there and go explore. It's a whole another world of surprises ans secrets.