Posts from September 2009
New Iphone Screen
The home button stopped working on my iphone. We had to wait two hours to get it fixed but they had to replace the whole LCD.

While we were there someone left the concierge service thing logged in on one of the table top macs and we could see all the info about who was up and what they needed, contact info, etc. Luckily we are not data bandits.



While we were there someone left the concierge service thing logged in on one of the table top macs and we could see all the info about who was up and what they needed, contact info, etc. Luckily we are not data bandits.


Music is art
Here are some left over pics from music is art. Someone was painting
what I think is the jet fuel tanker that tipped the day before. There
were also a whole slew of star wars characters and mike looking
serious for once.





I hope I never get one of these boxes

We tried to save it
But it died anyways.

Coop Canadian crab
It was so freaking good. The claw was so awesome. It was as big as a
lobster claw.

Consent to record
I want a teeshirt that says this.

Toxic waste recycle day
I participated in the Erie county hazardous waste drop off day over on
putnam st. I was so happy to get rid of the rest of the nasty
chemicals in various states of decomposion that were in my garage and
basement.
Look what happend to the container from the leakage. Considering how
much leaking was going on, it's a miracle my garage did not start in
fire.




You can tramp all day for $1.00
This was also found in the pics from @paul #49751 I don't think this invention had much of a future, unless this is the predecessor to the jock strap. Has anyone seen one of these before?


Robots and Men
I love writing robots that collect pictures of men, this one was not much of a challenge but resulted in a net gain of 30,000 pics for my robot library.
This one was very simple. It basically loops through, visits the pages, checks to see if there is a photo on the page and then saves the photo based on the category if it exists. Sometimes the robots are much more elaborate. It wasn't even worth writing a class because the code required wasn't more than could go in one method.
There are two photo examples down below the code are of au naturel vintage men, although they are no more offensive than the statue of david. Don't scroll if you don't want to see it.
<?
$dir = 'xpics/';
if(!is_dir($dir)){
mkdir($dir);
}
foreach(range(1, 30423) as $x){
//grab html
$html = file_get_contents('http://SOMEWEBSITE/postcontent/showfull.php?photo='.$x);
if(strstr($html, "Photo not found in the database!")){
echo "Pic ".$x.' not found';
continue;
}
//get photo name
preg_match("~http://SOMEWEBSITE/postcontent/data/(d+)/(.*?)"~", $html, $data);
$src = str_replace('"', '', $data[0]);
$category = $data[1];
$name = $data[2];
$category_dir = $dir.$category.'/';
if(!is_dir($category_dir)){
mkdir($category_dir);
}
$jpeg = file_get_contents($src);
file_put_contents($category_dir.$name, $jpeg);
echo "Saved pic #".$x;
}
?>

What is the story behind this one?

This one was very simple. It basically loops through, visits the pages, checks to see if there is a photo on the page and then saves the photo based on the category if it exists. Sometimes the robots are much more elaborate. It wasn't even worth writing a class because the code required wasn't more than could go in one method.
There are two photo examples down below the code are of au naturel vintage men, although they are no more offensive than the statue of david. Don't scroll if you don't want to see it.
<?
$dir = 'xpics/';
if(!is_dir($dir)){
mkdir($dir);
}
foreach(range(1, 30423) as $x){
//grab html
$html = file_get_contents('http://SOMEWEBSITE/postcontent/showfull.php?photo='.$x);
if(strstr($html, "Photo not found in the database!")){
echo "Pic ".$x.' not found';
continue;
}
//get photo name
preg_match("~http://SOMEWEBSITE/postcontent/data/(d+)/(.*?)"~", $html, $data);
$src = str_replace('"', '', $data[0]);
$category = $data[1];
$name = $data[2];
$category_dir = $dir.$category.'/';
if(!is_dir($category_dir)){
mkdir($category_dir);
}
$jpeg = file_get_contents($src);
file_put_contents($category_dir.$name, $jpeg);
echo "Saved pic #".$x;
}
?>

What is the story behind this one?


