Shirt Design

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

ptrpan wrote:Saw this somewhere. A bit of UNIX

who | grep -i blond |
date; cd̃̃̃̃̃̃ ; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep
You missed the fsck :)
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
http://www.ee.ryerson.ca/~elf/hack/ugvs.html
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

that one's awesome :lol:
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

ha ha superb
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I had seen the cd /pub one and the Unix one before. I like that flowchart, that is some good stuff. What about something like:

Code: Select all

<?php
switch ($status) {
  case 'sober':
    fopen($throat); fputs($beer);
    continue;

  case 'drunk':
    fseek($females); fopen($pants); fgets($asskicked); fputs($injail);
    break;

  case 'really_drunk':
    fopen($toilet); fputs($barf); fflush(); fclose($toilet); ftell($nobody);
    break;
}
?>
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

That made me laugh! :lol: :lol: :lol:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Glad I could help :wink:
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Everah wrote:I had seen the cd /pub one and the Unix one before. I like that flowchart, that is some good stuff. What about something like:
<snip>
Minor alteration :)

Code: Select all

<?php

function drinking() {
 return $something funny; //too lazy to think of funnies right now 
}

while (drinking() === true) {
  switch ($status) {
    case 'sober':
      fopen($throat); fputs($beer);
      continue;

    case 'drunk':
      fseek($females); fopen($pants); fgets($asskicked); fputs($injail);
      break;

    case 'really_drunk':
      fopen($toilet); fputs($barf); fflush(); fclose($toilet); ftell($nobody);
      break;
  }
}
?>
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Code: Select all

<?php
$beers = 0;

function drinking($max = 10) {
  static $beers;
  if ($beers == $max) { // or less for the lightweights
    return false;
  }
  ++$beers;
  return true;
}

function notAsThinkAsYouDrunkIAm($beers) {
  if ($beers < 3) return 'sober';
  if ($beers < 10) return 'drunk';
  return 'really_drunk';
}

while (drinking()) {
  switch (notAsThinkAsYouDrunkIAm($beers)) {
    case 'sober':
      fopen($throat); fputs($beer);
      continue;

    case 'drunk':
      fseek($females); fopen($pants); fgets($asskicked); fputs($injail);
      break;

    case 'really_drunk':
      fopen($toilet); fputs($barf); fflush(); fclose($toilet); ftell($nobody);
      break;
  }
}
?>
Totally untested, though I might volunteer to test this :P
User avatar
OasisGames
Forum Commoner
Posts: 26
Joined: Mon Apr 23, 2007 3:24 pm
Location: Ohio

Post by OasisGames »

I'm waiting for your life to ; } ?>
Or for the shorter version (which is more general to programming)
I'm waiting for your life to ;
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post by the_last_tamurai »

Code: Select all

if ($you=="PHPer")
{
 $con = mysql_connect('buddy', 'tamer', '****')
    or die('Could not connect: ' . mysql_error($con));
}
else // I don't discriminate
{
  die("Away From Here");
}
User avatar
ptrpan
Forum Commoner
Posts: 81
Joined: Tue Apr 03, 2007 5:09 am
Location: Cape Town, South Africa

Post by ptrpan »

Everah, that classic! It really made me laugh out loud. Brilliant! :lol:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I thought it was kinda cool too. Amazing the stories PHP can tell when you use its built in functions.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

d3ad1ysp0rk wrote:http://www.zazzle.com/product/235415960272004495

I like that shirt.. :D
Isn't that copyright infringement? :D
Post Reply