SAAS

SAAS Problem of the Week Quiz Decoder

Script that figures out the answers to SAAS POTW Quiz’s. As a note, this is only the processing end. In order for the script to work, you will need to build a front end.

<?
error_reporting  (E_ERROR | E_WARNING | E_PARSE);
$httpfile = $_POST['httpfile'];
$userfile = $_POST['userfile'];
if($httpfile != NULL){
$textarea = file_get_contents($httpfile);
}
else{
$textarea = file_get_contents($_FILES['userfile']['tmp_name']);
} 
    echo "1. ";
    $t = 2;
    $length = strlen($textarea);
    for($i = 0; $i < $length; $i++){
        if(($textarea[$i-1].$textarea[$i]) == "l["){
            while($textarea[$i+1].$textarea[$i+2] != ",#"){
                $i++;
                echo $textarea[$i];
            } 
            $i++;
            if($t > 10){
            die();
            }
            echo "$t. ";
            $t++;
        } 
    } 
?>

Note: This was code that I originally had in a ‘Code’ page, but I’m moving it to a post now. This code is probably really old (years and years old). I enjoy laughing at myself and so should you.

0

The Davos Question (and my Answer)

The 2008 Davos Question asks:
“What one thing do you think that countries, companies or individuals must do to make the world a better place in 2008?”

Be social responsibility. Looking back on places I’ve gone to school, places I’ve worked and things I’ve done, I’ve noticed how many of them have always had some program that was designed to help someone other then themselves. At SAAS, there was a program to help less well off families at TT Minor. At Boeing, there’s a Books & Backpacks program that collects books, backpacks and other school supplies for children who can’t afford it. At Billings, we would spend time cleaning up the environment.

The idea, at least for me, is to do something that does not benefit you directly and probably even requires you to go out of your way to accomplish. In doing this, you end up making society a better place (at least in your local area or the area you choose to affect).

What do you think? What one thing do you think that countries, companies or individuals must do to make the world a better place in 2008?

via Matt Cutts

0