My code keeps throwing CthulhuRlyehWgahnaglFhtagnExceptions
- Gilberreke
- Posts: 4486
- Joined: Thu Jul 14, 2011 3:12 pm
- Location: Belgium
My code keeps throwing CthulhuRlyehWgahnaglFhtagnExceptions
Sometimes we want to laugh, but Stack Overflow is just so very serious.
Come join us at Vioki's Discord! discord.gg/fhMK5kx
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
And normal techspeak seemed eldritch enough...
-
- Posts: 33
- Joined: Fri Oct 04, 2013 1:50 pm
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
I guess he should have used
People tend to abuse the regex engine a lot ;) understand the requirement first, after that the pattern isn't such a big deal (if it is - yeah, don't use it...)
filed under: nerdy and offtopic
//edit: actually messed up, negation is annoying.
Code: Select all
<([a-z]+)[^>]+?(?<!/)>
filed under: nerdy and offtopic
//edit: actually messed up, negation is annoying.
- Gilberreke
- Posts: 4486
- Joined: Thu Jul 14, 2011 3:12 pm
- Location: Belgium
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
I don't think you get the joke :(
Come join us at Vioki's Discord! discord.gg/fhMK5kx
-
- Posts: 33
- Joined: Fri Oct 04, 2013 1:50 pm
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
I do, and i laughed the first time i read it.
Especially since i have been asked exactly this kind of questions plenty times.
But it wouldn't have happend with linux anyway.
</cthulhu>
Especially since i have been asked exactly this kind of questions plenty times.
But it wouldn't have happend with linux anyway.
</cthulhu>
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
Must have been a miscalculation of "Dho-Nha" curve...
- Gilberreke
- Posts: 4486
- Joined: Thu Jul 14, 2011 3:12 pm
- Location: Belgium
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
Not sure what Linux has to do with a cthulu joke, but okay...garrak_x86 wrote:I do, and i laughed the first time i read it.
Especially since i have been asked exactly this kind of questions plenty times.
But it wouldn't have happend with linux anyway.
</cthulhu>
For reference, this comment is the main source of humor:
Don't listen to these guys. You actually can parse context-free grammars with regex if you break the task into smaller pieces. Your pattern needs to do each of these in order:
Solve the Halting Problem.
Square a circle (use the "ruler and compass" method for this).
Work out the Traveling Salesman Problem in O(log n). It needs to be fast or your regex engine will hang.
The results will be pretty big, so make sure you have another algorithm that losslessly compresses random data.
Almost there - just divide the whole thing by zero. Easy-peasy.
I haven't figured out the last part yet, but it shouldn't be hard. My code keeps throwing CthulhuRlyehWgahnaglFhtagnExceptions lately, so I'm setting up an empty catch block to just consume those and keep parsing. I'll update with the code once I investigate this strange door that just opened in the wall. Hmm.
Pierre de Fermat also figured out how to do it, but the margin he was writing in wasn't big enough for the code.
Come join us at Vioki's Discord! discord.gg/fhMK5kx
- FlowerChild
- Site Admin
- Posts: 18753
- Joined: Mon Jul 04, 2011 7:24 pm
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
Do I get a cookie for at least knowing that I don't know enough about the subject matter to get the humor? ;)
- Gilberreke
- Posts: 4486
- Joined: Thu Jul 14, 2011 3:12 pm
- Location: Belgium
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
Sure, but it's only a cookie in non-Euclidean dimensionsFlowerChild wrote:Do I get a cookie for at least knowing that I don't know enough about the subject matter to get the humor? ;)
Come join us at Vioki's Discord! discord.gg/fhMK5kx
-
- Posts: 33
- Joined: Fri Oct 04, 2013 1:50 pm
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
Well, there are multiple jokes for me in that topic, depends on the view you take. And sure, given the topic the one you referenced is the one that pops to mind :)
Linux has nothing to do with the joke you quoted, it's just another common rant which by now has been brought to the point of ridicule, a reference to the background why the quoted answer even exists - that's why the cthulhu tag is closed now ;). I don't think i can pull a clear response at this hour :D
My first answer was somewhat intended as a pun to the "serious" part of the thread, by now i realised that's not something i can use at random. I just assumed you wanted to start some sort of discussion about something and i guessed the topic - which is madness anyway... Right now it seems more of a "lol, have a laugh at this stuff" thing which suits off-topic anyways. How do i forum again? I forgot.
Linux has nothing to do with the joke you quoted, it's just another common rant which by now has been brought to the point of ridicule, a reference to the background why the quoted answer even exists - that's why the cthulhu tag is closed now ;). I don't think i can pull a clear response at this hour :D
My first answer was somewhat intended as a pun to the "serious" part of the thread, by now i realised that's not something i can use at random. I just assumed you wanted to start some sort of discussion about something and i guessed the topic - which is madness anyway... Right now it seems more of a "lol, have a laugh at this stuff" thing which suits off-topic anyways. How do i forum again? I forgot.
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
I'm pretty sure those are all unsolvable problems... but that's the joke, right?Solve the Halting Problem.
Square a circle (use the "ruler and compass" method for this).
Work out the Traveling Salesman Problem in O(log n). It needs to be fast or your regex engine will hang.
The results will be pretty big, so make sure you have another algorithm that losslessly compresses random data.
Almost there - just divide the whole thing by zero. Easy-peasy.
I haven't figured out the last part yet, but it shouldn't be hard. My code keeps throwing CthulhuRlyehWgahnaglFhtagnExceptions lately, so I'm setting up an empty catch block to just consume those and keep parsing. I'll update with the code once I investigate this strange door that just opened in the wall. Hmm.
- jorgebonafe
- Posts: 2714
- Joined: Mon Sep 19, 2011 3:22 am
- Location: Brasil
Re: My code keeps throwing CthulhuRlyehWgahnaglFhtagnExcepti
I just found this article that explains this whole thing pretty well...
Better Than Wolves was borne of anal sex. True Story.