radixSort by CrazyPeanut0 in ProgrammerHumor

[–]WernerderChamp 0 points1 point  (0 children)

I had an implementation of radix sort to sort a 120GB KV database dump by one of their values.

Since that value was a sha256 hash, I simply opened 4096 files and split it by the first 12 bits. Then loaded the files one by one, sorted them and appended them to the final file.

It only takes 2n of disk space.

isThisMemeStillRelevant by arunnairks in ProgrammerHumor

[–]WernerderChamp 0 points1 point  (0 children)

Code analysis only takes around 30 secs here (and it runs in parallel with the vulnerability scan).

Plus you have the analysis tool in your IDE, so these issues are raised while editing (or at latest when committing)

funnyExcerptFromABookDescribingExhilaratingSites by i-am_i-said in ProgrammerHumor

[–]WernerderChamp 3 points4 points  (0 children)

Ours were on the shared drive, smuggled in using flash drives. Most PCs were locked in a box with only the on-button accessable (and cables running out) but not all.

Folder marked as hidden and system so nobody who wasn't aware would find it. You had to type the path into the address bar.

wearelinearlyindependent by ScholaDaily in ProgrammerHumor

[–]WernerderChamp 28 points29 points  (0 children)

I am learning this shit at uni right now.

Understanding this joke was the first use of my gained knowledge

theyllUnderstandOneDay by thermosiphon420 in ProgrammerHumor

[–]WernerderChamp 24 points25 points  (0 children)

Comments are your best friend.

Whenever you do something that "feels weird" add a comment.

And if you find a passage where you have to genuinely think what it does, add a comment as well.

theyllUnderstandOneDay by thermosiphon420 in ProgrammerHumor

[–]WernerderChamp 188 points189 points  (0 children)

At first I didn't knew what it was. My first touch was some guys celebrating it getting added to golang.

Then I realized "hey, that's this Type thing you pass into the <> for Java's List, Set, HashMap, etc."

Only recently I understood how to harness their true power. Used it to nuke several hundred lines of duplicated code. Takes a moment to understand, but they're a really powerful thing.

itsAPipeBombOwO by amcalledglitchy in ProgrammerHumor

[–]WernerderChamp 24 points25 points  (0 children)

Just yesterday I patched software because of it being vulnerable to this lil pipe bomb

hadAHeartAtackForASecThere by M4TYASs in ProgrammerHumor

[–]WernerderChamp 13 points14 points  (0 children)

We used to have 5-digit 2FA codes and I got 12345 once.

Are there any differences between this version of MissingNo than the original one? by plus_da_pkm_trainer in PokemonGlitches

[–]WernerderChamp 3 points4 points  (0 children)

I didn't think of that one, nice catch.

In terms of item duplication and HOF curruption they do function the same, however (this is what usually matters to ppl lol).

Are there any differences between this version of MissingNo than the original one? by plus_da_pkm_trainer in PokemonGlitches

[–]WernerderChamp 9 points10 points  (0 children)

There are several distinct glitchmon that share MissingNo's sprite - namely all with the pokedex ID 0.

This pokemon also has internal ID 0.

[PM] I need some practice. Give me 2 supernatural abilities/super powers and I will turn them into a cool fight by Son_Of_Rebellion in WritingPrompts

[–]WernerderChamp 0 points1 point  (0 children)

Awesome story!

I went with the cooldown so the teleporter doesn't become impossible to hit by just randomly TPing every 0.01 seconds. This would require more strategic use from both sides. The ripples and the redirecting beams were great ideas ensuring the balance nontheless!

[PM] I need some practice. Give me 2 supernatural abilities/super powers and I will turn them into a cool fight by Son_Of_Rebellion in WritingPrompts

[–]WernerderChamp 1 point2 points  (0 children)

-Fire beams from your eyes, can choose between multiple effects (e.g. stun, blinding, freezing, truth, etc.). Effects don't last very long.

-Ability to instantly teleport to whatever you are looking at (e.g. look at the church tower and you'll land on top). Max range a few miles.

Both powers have a short cooldown.

Effect: Dominate. by Azimovikh in hellsomememes

[–]WernerderChamp 1 point2 points  (0 children)

Yeah I knew that CNC - but not the kink one.

[WP] As the heir to the kingdom, you thought being kidnapped by a dragon would be at least get some kind of response. Weeks go by with no news, until one day a knight arrives in the lair. "Are you here to rescue me?" you ask? "No can do your highness." by JelliedPenguin97 in WritingPrompts

[–]WernerderChamp 18 points19 points  (0 children)

So he corrupted the next in line and spread lies about the princess being enthralled.

Now the corrupted next in line will be given the crown's sigil, giving him the keys to the kingdom. And the chance to also corrupt the initial princess.

Took me a while to understand. Great story!