Ir al contenido principal

Common digital camera filenames

Vi esto en un foro de Fark. Lo malo es que no sé cómo hacerlo. Pero si a alguien le sirve ;) ahí va.



ArrogantGod 2007-07-13 01:02:32 PM
Every time a hot chick posts pics (of anything, ORLY owls or whatever) with a photobucket acccount I run a script that scans it for common digital camera filenames. I usually come up with a pile of noodz.

Yes, people really are that dumb.


we_hates 2007-07-13 01:07:34 PM
ArrogantGod: Every time a hot chick posts pics (of anything, ORLY owls or whatever) with a photobucket acccount I run a script that scans it for common digital camera filenames. I usually come up with a pile of noodz.

You're an idea man. Do you perchance have a newsletter?


robolobo 2007-07-13 01:10:22 PM
ArrogantGod: Every time a hot chick posts pics (of anything, ORLY owls or whatever) with a photobucket acccount I run a script that scans it for common digital camera filenames. I usually come up with a pile of noodz.

It's hard to believe you without said pictures.


Galbalin 2007-07-13 01:11:32 PM
ArrogantGod Tell me more about this script....


dramaticpause 2007-07-13 01:22:38 PM
ArrogantGod: Every time a hot chick posts pics (of anything, ORLY owls or whatever) with a photobucket acccount I run a script that scans it for common digital camera filenames.

Great. Now all the hot chicks will start renaming their files.

/suuuuuure


ArrogantGod 2007-07-13 01:29:31 PM
Wow, looks like I just made a bunch of friends...

basic script (in php) is



for ($i=1;$i
// set the leading zeros for your camera
$x = sprintf("%04s",$i);

$file = "http://img.photobucket.com/albums/v431/username123/DSC_".$x.".jpg";

echo "
";
}
?>


add file_exists checking so you dont see all the broken links and iterate through other digital camera schemes and there you are.


ArrogantGod 2007-07-13 01:30:20 PM
Fixing broken code..
Wow, looks like I just made a bunch of friends...

basic script (in php) is



";
}
?>


add file_exists checking so you dont see all the broken links and iterate through other digital camera schemes and there you are.


tonesskin [TotalFark] 2007-07-13 01:51:25 PM
For the computer impaired, how does one then go about running said script?


ArrogantGod 2007-07-13 01:54:35 PM
tonesskin: For the computer impaired, how does one then go about running said script?

google php tutorial


tonesskin [TotalFark] 2007-07-13 01:58:10 PM
Cool. Thanks. For educational purposes, of course.


Fuente: On the intarweb, private photos of your private parts aren't really private. Ric Romero reporting from his MySpace page vía Fark