Noah Finkelstein's coworker Dave was a strange fellow. When he wasn't mumbling to himself in his cubicle, he could be found in deep thought at the snack machine, pondering whether to get animal crackers or Lorna Doones. He'd always get the Lorna Doones, but swear that next time, he'd go for the animal crackers. And everyone was well aware of this, as it was one of the few things the socially-awkward programmer would talk about.

One day, Dave approached Noah with a rather odd question: he wondered if there was a way to un-commit a file in subversion. Puzzled at the request, Noah explained that he could just rollback to a previously committed version, which would effectively un-commit the change. "No, no, no," Dave said in a more-flustered-than-usual tone, "I know that, but I need to get rid of the old version."

Noah learned that, with Dave, it was best to not ask why, so he simply shrugged his shoulders and said that deleting a previous version was not possible, as it would defeat the whole purpose of version control. After Dave left, Noah couldn't help but wonder why Dave so desperately wanted a previous version deleted. After a quick call to svn log, he saw that a file called Dave.cpp was recently added and then deleted. And the contents explained why.

//Remeber the f*cking appointment at 5 PM today
//ONLY EDIT WHEN NOBODY ELSE IS IN THE OFFICE
//ONLY EDIT WHEN NOBODY ELSE IS IN THE OFFICE

double Square(double m)
{
    return m*m;
}

double Cube(double m)
{
    return m*m*m;
}

double NthPower(double m, int n)
{
    double cum = 1.0;
    for(int i = 0; i < n; ++i)
        cum *= m;

    return cum;
}

int GetHundreds(int h)
{
    return h % 1000;
}

int GetTens(int h)
{
    return h % 100;
}

int GetOnes(int h)
{
    return h % 10;
}

struct Girl
{
    char * name;
    short face;
    short body;
    short legs;
    bool wouldIDoHer;
};

int CompGirl(Girl g1, Girl g2)
{
    double g1_score = Square(g1.face) 
      + Square(g1.body) + Square(g1.legs);
    double g2_score = Square(g2.face) 
      + Square(g2.body) + Square(g2.legs);

    if (g1_score == g2_score)
        return 0;
    if (g1_score > g2_score)
        return 1;
    if (g1_score < g2_score)
        return -1;
}

void AddGirls()
{
    Girl AllGirls[3];

    AllGirls[0].name = "Lauren";
    AllGirls[0].face = 4;
    AllGirls[0].body = 5;
    AllGirls[0].legs = 4;
    AllGirls[0].wouldIDoHer = true;

    AllGirls[1].name = "Darcy";
    AllGirls[1].face = 6;
    AllGirls[1].body = 5;
    AllGirls[1].legs = 7;
    AllGirls[1].wouldIDoHer = true;

    AllGirls[2].name = "Hashini";
    AllGirls[2].face = 1;
    AllGirls[2].body = 4;
    AllGirls[2].legs = 4;
    AllGirls[2].wouldIDoHer = false;

    //add sorting routine later
}

//good game sites
// http://www.newgrounds.com/game/
// http://www.playtowerdefensegames.com/
// http://www.techcult.com/the-150-best-online-flash-games/

//good books
// http://www.amazon.com/Quiet-War-GollanczF-Paul-McAuley/dp/0575079320

/*
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*    F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     F*CK KENDRICK     
*
* TO DO: BLACKMAIL KENDRICK/GET HIM FIRED
*/
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!