Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

paul’s journal

Posts from September 2009

Clubman Mustache Wax

· · 🌡️ 68°F

I finally got my clubman mustache wax in the mail. Its pretty good but it is messy because it has a brown tint. It starts out really soft and then hardens up more so than the bees wax which starts out harder but tends to soften in the sunshine.

image

New Iphone Screen

· · 🌡️ 64°F

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.

image

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.

image


image

Music is art

· 🌡️ 65°F


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.
image
image
image
image
image

Toxic waste recycle day

· 🌡️ 68°F


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.
image
image
image
image

Robots and Men

· · 🌡️ 68°F

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;
}
?>

image

What is the story behind this one?
image