Journaling on estrip is easy and free. sign up here

Paul's Journal

paul
My Podcast Link

09/12/2009 12:08 #49751

Robots and Men
Category: web
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
jim - 09/12/09 14:54
tinypliny: the site came pre-filtered, with only images of men.
tinypliny - 09/12/09 14:03
The first bloke should totally consider donating his body to bodyworlds. Are those muscles for real?! He must work out half a day everyday.
jim - 09/12/09 12:42
Now look what you've done to me :/

09/11/2009 15:51 #49747

Christan spam from 716-536-7113

Someone at telephone number 716-536-7113 keeps spamming me texts.
It's freakin irritating.

I mean the last one could be taken as a threat depending how you read
it. I can't figure out who it is that would be close enough to get my
number but not close enough to realize this is enough for me to not be
friends with then anymore.

I tried calling but get one of those generic mailbox voicemails.

Who would think this is an appropriate message to send me. I guess
they figure i am in need of prayer and by sending me this text god
will favor them. How pathetic is that. Hopefully it's not someone
too important because I left them a mean message.
image
lilho - 09/11/09 23:08
wow, thanx a lot paul. that was me, and i am just trying to be your friend and help save you.
libertad - 09/11/09 17:52
That is so funny! I love your response.
james - 09/11/09 16:20
You can you reverse lookup. Unfortunately it is a cell phone so you can't get a name or address.

Flaming poo bags are in order.
jenks - 09/11/09 16:15
can't you reverse lookup or something?
that would really irritate me.
but at least it's from a number, and not like "40605" like the ones I get.

09/11/2009 15:06 #49745

Haze Hollow - Dancing and Camping?
Category: dancing
A music festival in Mayville next Saturday Sept 19th.

image
jim - 09/19/09 22:04
Now I don't feel bad that I spent the night getting it on, instead :)
paul - 09/19/09 21:54
This was probably the most dissapointing event ever. We drove 1.5 hours to find out the organizers had canceled and didn't bother posting about it. It makes me want to smash their faces.
libertad - 09/11/09 18:20
I like that flyer and it sounds fun. Hopefully that one won't get shut down like the outdoor music festival did here.

09/10/2009 23:58 #49742

The stache

I spent the whole day with this crazy stache. I thought I was going
to just do it for today but now I don't want to cut it off. I had to
get the wax out to make it curl right.

Now I want to go out but no one's around ;(
image
heidi - 09/11/09 15:46
That's awesome!
tinypliny - 09/11/09 15:34
Wow. I can't help coming back and reloading this again and again like a teenage japanese rabid psychotic stalkerish monkey.

  • That is the coolest moustache EVAH!* Did you mobbed on the street today???! I would have been all over had I spotted you!
dragonlady7 - 09/11/09 15:16
ZOMG AWESOME.
You must not ever remove that. Also, you must give (e:zobar) moustache lessons.
Also you must clean that mirror. Yikes.
paul - 09/11/09 15:06
Wow, I just checked this out now in full resolution - damn the mirror is gross.
mrmike - 09/11/09 08:41
Got sort of Snidely Whiplash thing going
zobar - 09/11/09 08:36
Dude that's awesome. You must keep the stache.

- Z
tinypliny - 09/11/09 01:09
With the sideburns and awesome moustache, you are most handsome man on the planet, currently. :D

WOW. Don't cut it off!!

09/10/2009 10:09 #49735

Lilho on tree
It's a little dark but I had lunch at panaro's with (e:lho)
yesterday during her layover. It was nice to catch up. She had one
crazy trip to Aruba.
image
lilho - 09/10/09 23:19
aw that was a nice lunch! so yummy too! i miss you boys already, and can;t wait to see you again, aruba for life!!!!