• You are currently viewing our forum as a guest which gives you limited access.

    By joining you will gain full access to thousands of Videos, Pictures & Much More.

    Membership is absolutely FREE and registration is FAST & SIMPLE so please, Register Today and join one of the friendliest communities on the net!



    You must be at least 18 years old to legally access this forum.
  • Hello Guest,

    Thanks for remaining an active member on GayHeaven. We hope you've enjoyed the forum so far.

    Our records indicate that you have not posted on our forums in several weeks. Why not dismiss this notice & make your next post today by doing one of the following:
    • General Discussion Area - Engage in a conversation with other members.
    • Gay Picture Collections - Share any pictures you may have collected from blogs and other sites. Don't know how to post? Click HERE to visit our easy 3-steps tutorial for picture posting.
    • Show Yourself Off - Brave enough to post your own pictures or videos? Let us see, enjoy & comment on that for you.
    • Gay Clips - Start sharing hot video clips you may have. Don't know how to get started? Click HERE to view our detailed tutorial for video posting.
    As you can see there are a bunch of options mentioned in here and much more available for you to start participating today! Before making your first post, please don't forget to read the Forum Rules.

    Active and contributing members will earn special ranks. Click HERE to view the full list of ranks & privileges given to active members & how you can easily obtain them.

    Please do not flood the forum with "Thank you" posts. Instead, please use the "thanks button"

    We Hope you enjoy the forum & thanks for your efforts!
    The GayHeaven Team.
  • Dear GayHeaven users,

    We are happy to announce that we have successfully upgraded our forum to a new more reliable and overall better platform called XenForo.
    Any feedback is welcome and we hope you get to enjoy this new platform for years and years to come and, as always, happy posting!

    GH Team

A REALLY Quick Nerd Test

gb2000ie

Super Vip
Joined
Dec 19, 2010
Messages
4,522
Reaction score
419
Points
0
If you either get what this means, or why it's funny, you're definitely a Nerd :)

/bb|[^b]{2}/

B.
 
Last edited:
Etre ou ne pas etre tel est la question... but I'm not sure - wrote it in French not to give away the answer. Let me know if I'm right :)

Assuming I remember as much French as I think I do, then yes, it is a Perl-style regular expression for that famous quotation.

B.
 
Assuming I remember as much French as I think I do, then yes, it is a Perl-style regular expression for that famous quotation.

B.
I do quite a lot of PHP programming so when I checked it I found it funny for some reasons and yes it is a funny one :)
 
Well I guess I am a nerd too...

btw.... There are only 10 kinds of people in the world - those who understand binary, and those who don't.
 
Last edited:
I know now what it means (because my French is good enough to understand Jake), but I don't know how to read it... I get the bb, but the rest...
 
It's what's called a "regular expression", a fancy name for a limited type of pattern definition, and it's in the syntax of the Perl programming language. Perl Regular expressions were the best way of specifying patterns for a long time, so other languages 'stole' the Perl syntax, including PHP (hence slimjim getting it), and JavaScript.

Lets break it down:

the / on each end just denotes the start and end of the pattern, so you can mentally strip those away to leave just:

bb|[^b]{2}

the first bit is easy, bb is the patern of the letter b followed by the letter b - i.e. two bees, or "to be".

The vertical bar is the symbol for 'OR', so we get "to be or ".

Then things get a bit messier, anything inside [] defines a list of allowed characters, and ^ means that the list should be inverted, so [^b] means "anything that's not a b", or 'not b'.

Finally, a number inside {} denotes how many of what ever came before should be in the pattern, so {2} means two of what ever came before, which in this case is [^b], so 'not to be'.

Put it all together and you get "to be or not to be" as a Perl regular expression.

If you were to use the code for real it would match any piece of text that contained two b characters followed by two of anything else.

Yes, it's very very nerdy, and you can spot a Perl programmer a mile away because it'll take him a second at most to get what that means :)

BTW - regular expressions are very useful, if you want to validate that someone entered a social security number into a text field and not something else, you could use this RE:

/^\d{3}\-\d{2}\-\d{4}$/

which means "the start of the string (^), followed by three digits (\d{3}), followed by a dash (\-), followed by two digits (\d{2}), followed by a dash (\-), followed by four digits (\d{4}), followed by the end of the string ($)".

You use the same to check email addresses, URLs, time, date, and so on and so forth.

B.
 
Last edited:
Have to confess I was ready to google it but fortunately you had posted an answer :D I'm completely hopeless with anything like this, being dyslexic the characters just swirl and it takes me a long time to grasp what is there :p
 
No, it seems I'm not a nerd but from Jake's reply I could understood it, so at least there's little bit left from my French "skills" :p
 
No, it seems I'm not a nerd but from Jake's reply I could understood it, so at least there's little bit left from my French "skills" :p
Oh you guys cheated LOL :rofl::rofl::rofl: I understand pearl programming because I program in PHP and have been programming C++ years ago... you guys cheated so badly hahahaha. if you actually put that expression anywhere in a script it does pretty much nothing LOL
 
Oh you guys cheated LOL :rofl::rofl::rofl: I understand pearl programming because I program in PHP and have been programming C++ years ago... you guys cheated so badly hahahaha. if you actually put that expression anywhere in a script it does pretty much nothing LOL

How I was supposed to know that you had put the answer to your reply, yep, it is actually your fault *trying to look innocent*
Really Jake, it is... evil (oh I just couldn't resist, I really tried) to say we cheated :p :)) :)) :))

:rofl::rofl::rofl::rofl:
 
Last edited:
Oh you guys cheated LOL :rofl::rofl::rofl: I understand pearl programming because I program in PHP and have been programming C++ years ago... you guys cheated so badly hahahaha. if you actually put that expression anywhere in a script it does pretty much nothing LOL

Like your the ONLY person here who speaks French...:duh:
 
My Quick Nerd Test would be a lot Simpler...

'Horace goes _______'?

This tests for a different kind of nerd :D
 
My Quick Nerd Test would be a lot Simpler...

'Horace goes _______'?

This tests for a different kind of nerd :D

:D

I guess that depends how old the person is too... I used to... you know, but never really became this kind of a nerd :D
 
I didn't get it. I don't understand computer language!
 
Top