A Programmer's Treasure Hunt

alfiejohn on 2007-06-01T12:22:28

Nobody has yet manage to find it. Some were close but others were just way off.

www.share-house.com.au

(hint: view page source)


Hm?

VSarkiss on 2007-06-01T13:51:23

You mean 31415962532718281828.html? It just throws an error -- I thought the puzzle would be a JAPH or something. What am I missing?

Re:Hm?

alfiejohn on 2007-06-01T14:21:22

Looks like you were off by one

Re:Hm?

runrig on 2007-06-01T17:56:36

I get the same thing. I even tried rounding pi up (though it just says 'first 10 digits', not, e.g., 'accurate to 10 digits').

Re:Hm?

bart on 2007-06-01T22:20:23

Yeah, me too. Independently.

Re:Hm?

sedmonds on 2007-06-05T09:33:21

I wrote a quick script to brute force all the combinations based on VSarkiss number being "off by one". Every single one returns the same page as a 500 error. (not a 404 which indicates a problem with the server or a poor implementation)

I repeated using the correct numbers (pi containing 2653 instead of 6253) and got the same response.

So Alfie, what's the deal? Hamish said that you admitted that you had rounded instead of truncated.

What kind of treasure hunt has clues and solutions that don't match?

Re:Hm?

alfiejohn on 2007-06-05T11:51:43

ohh well... I was really bored one night and remembered Hamish telling me recently about a job advert he saw in a website's page source.

So to play on that, I added a joke in my page source since I knew it would egg him on towards getting on with his skunkworks.

If you're really bored, I found this:

  http://www.pythonchallenge.com/

Just pick up the challenges using Perl instead of Python :)
Anyway the solution to the first one was something along the lines of:



#!/usr/bin/perl

use strict;
use warnings;

# first 10 digits (after rounding)
my $pi = 3141592654;
my $e = 2718281828;

my $filename = ( $pi + $e ) . '.html';
print $filename, "\n";

Re:Hm?

sedmonds on 2007-06-05T12:11:44

Now I get a different response :)

I did actually try addition in case you were being ambiguous about the meaning of '+', but I didn't try it with the rounded values...

Re:Hm?

alfiejohn on 2007-06-05T12:39:42

Finally... we have a winner :)