Previous Thread
Next Thread
Print Thread
Rate Thread
#86620 11/27/2002 1:44 PM
Joined: Nov 2000
Posts: 2,759
Pooh-Bah
Pooh-Bah
Offline
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 tipsy

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 #1
Quote
code:
Code
	my $stringification = "";    # *twitch*

$stringification .= qq!%pm_user_index = (n!;

Snippet #2
code:
[qb]
Code
	&SafeGetThreadData2($forum_from, $topic_from);
&SafeGetThreadData2($forum_to, $topic_to);
[/qb]
Snippet #3
Quote
code:
Code
	$sc->{options} = undef;
foreach my $n (1 .. $sc->{opts}) {
$in{"q$n" . "name$quest"} = &strip_lead_trail_whitespace($in{"q$n" . "name$quest"});

Snippet #4
code:
[qb]
Code
	my ($whole, $dec) = split (/./, $_[0]);
if ($dec > 49) { $whole++; }
return ($whole);
}
[/qb]
Snippet #5
Code
	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.

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I guess I'm also not allowed to participate wink

Joined: Nov 2000
Posts: 2,759
Pooh-Bah
Pooh-Bah
Offline
Joined: Nov 2000
Posts: 2,759
Sorry LK, I didn't realize that you were now an Infopop employee tipsy

Yes, you can participate

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 laugh

Good luck to the hunters laugh


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Done 'nd amailed

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
*Hunts*

Report back later. smile

Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
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
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
E-Mailed laugh

Joined: Dec 2001
Posts: 699
Member
Member
Offline
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 wink .

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. smile


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
I did this for the fun of it and I think I figured it out tipsy

Too bad I can't play frown frown

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 rockband now

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
In fact everyone can play smile The only people who are not allowed are IP people smile so you are more than welcome to send your answer to the email adress provided smile


Do you believe in love at first sight,
or should I walk by again?
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.

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
My bad for misunderstanding, sorry...

Now to go back and take another look through those files smile

Joined: Dec 2001
Posts: 699
Member
Member
Offline
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 shocked

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Quote
quote:
Originally posted by Dave2:
[dave@tc11 cgi-bin]$ mail -s codehunter -b [email protected] [email protected] < codehunter-01-12-2002.txt

OK, so I decided to play shocked
Egh, enough with your Linux showoff business tipsy wink

Joined: Dec 2001
Posts: 699
Member
Member
Offline
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

wink

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Quote
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

wink
Oh...YEAH???

...

Yeah?!

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Quote
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

wink
I've just about had it with your attitude, Da... Oh, right. tipsy Sure, I agree with the "UBBDev" part, but unfortunately I have problems understanding the first part. tipsy wink

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
laugh

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Honestly, to get the true result, you only need to omit the g and swap the names around!

wink


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)