#86620
11/27/2002 1:44 PM
|
Joined: Nov 2000
Posts: 2,759
Pooh-Bah
|
Pooh-Bah
Joined: Nov 2000
Posts: 2,759 |
Think you know your UBB™ code? Prove it! Code Hunter is a new UBBDev Contest/Game. Here are the rules. Below are 5 snippets of code from random UBB files. It is your job to identify them. You will have 1 week to get you guesses in. The person who gets the most right, first is the winner for the week and will receive a special avatar. Entries must be mailed to codehunter@ubbdev.com. DO NOT post responses in the forums, they will be deleted and you will be ineligible to participate in future games. Moderators and Administrators are welcome to play, however, Charles Capps, Ted O'Neill and Dave Dreezer are not In your entry you must identify the following: - The file name
- where it can be located (i.e. subroutine, module, line number)
- what you think it does
Good luck...this code is based on version 6.3.1.2. If you are not running that version, you can still play by downloading a clean copy from the Infopop members area. Same goes for those with modified boards...a clean copy might be easier to use. Deadline to participate is Wednesday, December 4, 12:01am UBBDev time. One entrant per registered user. Good luck! Snippet #1code:
my $stringification = ""; # *twitch*
$stringification .= qq!%pm_user_index = (n!; Snippet #2code: [qb] &SafeGetThreadData2($forum_from, $topic_from); &SafeGetThreadData2($forum_to, $topic_to); [/qb] Snippet #3code:
$sc->{options} = undef; foreach my $n (1 .. $sc->{opts}) { $in{"q$n" . "name$quest"} = &strip_lead_trail_whitespace($in{"q$n" . "name$quest"}); Snippet #4code: [qb] my ($whole, $dec) = split (/./, $_[0]); if ($dec > 49) { $whole++; } return ($whole); } [/qb] Snippet #5 if (&FileExists("$vars_config{MembersPath}/user_posts/$in{u}.cgi")) { @posts = &OpenFileAsArray("$vars_config{MembersPath}/user_posts/$in{u}.cgi"); } Note: all code is Copyright Infopop Corporation, 2002 and is used here with permission.
|
|
|
#86621
11/27/2002 1:52 PM
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I guess I'm also not allowed to participate 
|
|
|
#86622
11/27/2002 1:55 PM
|
Joined: Nov 2000
Posts: 2,759
Pooh-Bah
|
Pooh-Bah
Joined: Nov 2000
Posts: 2,759 |
Sorry LK, I didn't realize that you were now an Infopop employee Yes, you can participate
|
|
|
#86623
11/27/2002 6:10 PM
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm... anything with *twitch* in it is probably in the ubb_search.cgi file Good luck to the hunters 
|
|
|
#86624
11/27/2002 6:34 PM
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
|
|
|
#86625
11/28/2002 1:41 AM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
*Hunts* Report back later. 
|
|
|
#86626
11/28/2002 11:59 AM
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
[whisper]grep is your friend[/whisper]
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
#86627
11/30/2002 11:54 AM
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
E-Mailed 
|
|
|
#86628
11/30/2002 4:41 PM
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Hmm... by the time I saw this a few days ago I was sure that people would have got it before... so I think I'll let grep rest today  .
|
|
|
#86629
11/30/2002 6:23 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Sorry, Allen, that twitch is nowhere near the search. 
UBB.classic: Love it or hate it, it was mine.
|
|
|
#86630
11/30/2002 8:30 PM
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
Joined: Jun 2001
Posts: 729 |
I did this for the fun of it and I think I figured it out Too bad I can't play Why did you want to limit it to "Moderators and Administrators" only and not the entire community??? This was actual a good exercise for some of us to actualy learn something and let the experienced correct and explain where we might have gone wrong in our answer. Many want to be able to code and contribute to the community. Stuff like this while fun for "Moderators and Administrators" and making them better does not help the long term issue of needing to revitalize the community as a whole. Hope future games are more inclusive. Just my .02 I will get off my  now
|
|
|
#86631
11/30/2002 8:47 PM
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
In fact everyone can play  The only people who are not allowed are IP people  so you are more than welcome to send your answer to the email adress provided 
Do you believe in love at first sight, or should I walk by again?
|
|
|
#86632
11/30/2002 8:47 PM
|
Joined: Feb 2001
Posts: 817
Moderator / Kingpin
|
Moderator / Kingpin
Joined: Feb 2001
Posts: 817 |
Steven, anyone can play except Charles Capps, Ted O'Neill and Dave Dreezer. So go ahead and enter.
He was pointing out that UBBDev Moderators and Administrators can also play which is irregular for these types of games.
|
|
|
#86633
11/30/2002 11:13 PM
|
Joined: Jun 2001
Posts: 729
Coder
|
Coder
Joined: Jun 2001
Posts: 729 |
My bad for misunderstanding, sorry... Now to go back and take another look through those files 
|
|
|
#86634
12/01/2002 12:06 PM
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
[dave@tc11 cgi-bin]$ mail -s codehunter -b [email protected] [email protected] < codehunter-01-12-2002.txt OK, so I decided to play 
|
|
|
#86635
12/01/2002 4:18 PM
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Egh, enough with your Linux showoff business 
|
|
|
#86636
12/01/2002 4:25 PM
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
[dave@tc11 cgi-bin]$ echo "Dave2 sucks, UBBDev sucks" | sed s/sucks/is good/ig > whatareyoutalkingabout.txt; cat whatareyoutalkingabout.txt Dave2 is good, UBBDev is good 
|
|
|
#86637
12/01/2002 8:00 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by Dave2: [dave@tc11 cgi-bin]$ echo "Dave2 sucks, UBBDev sucks" | sed s/sucks/is good/ig > whatareyoutalkingabout.txt; cat whatareyoutalkingabout.txt Dave2 is good, UBBDev is good
Oh...YEAH??? ... Yeah?!
|
|
|
#86638
12/02/2002 12:37 PM
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
quote: Originally posted by Dave2: [dave@tc11 cgi-bin]$ echo "Dave2 sucks, UBBDev sucks" | sed s/sucks/is good/ig > whatareyoutalkingabout.txt; cat whatareyoutalkingabout.txt Dave2 is good, UBBDev is good
I've just about had it with your attitude, Da... Oh, right.  Sure, I agree with the "UBBDev" part, but unfortunately I have problems understanding the first part. 
|
|
|
#86639
12/02/2002 1:24 PM
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
[lk@tc1337 usr/bin/perl]$ echo "Dave2 sucks, UBBDev sucks" | sed s/v sucks/v rocks/ig > whatareyoutalkingabout.txt; cat whatareyoutalkingabout.txt Dave2 sucks, UBBDev rocks 
|
|
|
#86640
12/02/2002 2:22 PM
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Honestly, to get the true result, you only need to omit the g and swap the names around! 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|