<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>llynix.com &#187; Photos</title>
	<atom:link href="http://llynix.com/category/photos/feed/" rel="self" type="application/rss+xml" />
	<link>http://llynix.com</link>
	<description>Code, Rants and Ramblings</description>
	<lastBuildDate>Mon, 15 Feb 2010 00:17:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Inspiring Advertisement</title>
		<link>http://llynix.com/photos/inspiring-advertisement/</link>
		<comments>http://llynix.com/photos/inspiring-advertisement/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 17:00:16 +0000</pubDate>
		<dc:creator>Llynix</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://llynix.com/photos/inspiring-advertisement/</guid>
		<description><![CDATA[I always loved this advertisement for Qualcomm&#8217;s BREW.  When I first saw it I immediately ripped it out and stapled it to my wall.  Many years and several moves later it was finally found in a box of old knick knacks and I just had to share.
]]></description>
			<content:encoded><![CDATA[<p><a href='http://llynix.com/wp-content/uploads/2008/07/science_imagination-resize.jpg' title='Science and Imagination'><img src='http://llynix.com/wp-content/uploads/2008/07/science_imagination-resize.thumbnail.jpg' alt='Science and Imagination' style="float:left" /></a>I always loved this advertisement for <a href="http://brew.qualcomm.com/brew/en/">Qualcomm&#8217;s BREW</a>.  When I first saw it I immediately ripped it out and stapled it to my wall.  Many years and several moves later it was finally found in a box of old knick knacks and I just had to share.</p>
]]></content:encoded>
			<wfw:commentRss>http://llynix.com/photos/inspiring-advertisement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lego Thumbdrive Slideshow</title>
		<link>http://llynix.com/photos/lego-thumbdrive-slideshow/</link>
		<comments>http://llynix.com/photos/lego-thumbdrive-slideshow/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 15:58:00 +0000</pubDate>
		<dc:creator>Llynix</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://llynix.com/photos/lego-thumbdrive-slideshow/</guid>
		<description><![CDATA[I&#8217;ve seen Lego pen drives around on the net and decided to make one for myself.  Overall it was a fairly simple operation.  Gut out some Lego&#8217;s, gut out a pen drive, and super glue it all together.
So without further ado,  I introduce to you my Lego Thumb Drive.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen Lego pen drives around on the net and decided to make one for myself.  Overall it was a fairly simple operation.  Gut out some Lego&#8217;s, gut out a pen drive, and super glue it all together.</p>
<p>So without further ado,  I introduce to you my <a href="http://llynix.com/examples/PenDriveMod/">Lego Thumb Drive</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://llynix.com/photos/lego-thumbdrive-slideshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photo Slideshow &#8211; Part One &#8211; Batch Resize</title>
		<link>http://llynix.com/code/photo-gallery-part-one-batch-resize/</link>
		<comments>http://llynix.com/code/photo-gallery-part-one-batch-resize/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 05:14:30 +0000</pubDate>
		<dc:creator>Llynix</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://llynix.com/code/php/photo-gallery-part-one-batch-resize/</guid>
		<description><![CDATA[The idea is simple, I want to be able to upload a directory full of pictures and have a slideshow.   I have a few groups of photos to share with the world and more and more I&#8217;m keen on the idea of coding it myself rather then use a service like flickr or [...]]]></description>
			<content:encoded><![CDATA[<p>The idea is simple, I want to be able to upload a directory full of pictures and have a slideshow.   I have a few groups of photos to share with the world and more and more I&#8217;m keen on the idea of coding it myself rather then use a service like <a href="http://flickr.com/">flickr</a> or <a href="http://picasa.google.com/">Picasa</a>.</p>
<p>The first step was to upload my photos.  I created a directory &#8216;images&#8217; and inside that directory I created &#8216;originals&#8217; and &#8216;700w&#8217;.  I then uploaded all my pictures to the originals directory.</p>
<p>I then created a script to automatically resize all the images in my directory.</p>
<pre>
&lt;?php
//it can take a bit to resize a bunch of images..
//php will by default only run for 30 seconds
//this removes that limitation
set_time_limit(0);

//open our directory
if ($handle = opendir('images/originals')) {
    //go through our directory filenames one by one
    while (false !== ($file = readdir($handle))) {
        //ignore our . and .. directories
        if ($file != "." &#038;&#038; $file != "..") {
            //open our image
            $image = imagecreatefromjpeg('images/originals/'."$file");
            if ($image === false) { closedir($handle); die ('Unable to open image'); }

            //get our original image dimensions
            $owidth = imagesx($image);
            $oheight = imagesy($image);

            //our new dimensions, hardcoded for a 700 width
            //second line adjusts the height to keep the same aspect ratio
            $nwidth = 700;
            $nheight =  $newheight=($oheight/$owidth)*$nwidth;

            //create a new blank image the right size
            $tmpimg=imagecreatetruecolor($nwidth,$nheight);
            //and resize/resample our original into it
            imagecopyresampled($tmpimg,$image,0,0,0,0,$nwidth,$nheight,$owidth,$oheight);

            //write to file
            $filename = "images/700w/". $file;
            imagejpeg($tmpimg,$filename);

            //clean up
            imagedestroy($image);
            imagedestroy($tmpimg);
        }
    }
    closedir($handle);
}
?&gt;
</pre>
<p>I saved this as &#8216;resize.php&#8217; and ran it with &#8216;php resize.php&#8217;.  After about a minute my 700w directory was full of resized images, and I&#8217;m all set up for the slideshow I want.</p>
]]></content:encoded>
			<wfw:commentRss>http://llynix.com/code/photo-gallery-part-one-batch-resize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proof Reading or GoDaddy Goes Worng</title>
		<link>http://llynix.com/photos/proof-reading-or-godaddy-goes-worng/</link>
		<comments>http://llynix.com/photos/proof-reading-or-godaddy-goes-worng/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 07:16:35 +0000</pubDate>
		<dc:creator>Llynix</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://llynix.com/photos/other/proof-reading-or-godaddy-goes-worng/</guid>
		<description><![CDATA[I think the picture and my excellent Photoshop skills say it for me.  GoDaddy&#8217;s editor apparently didn&#8217;t have their Wheaties.
]]></description>
			<content:encoded><![CDATA[<p><a href='http://llynix.com/wp-content/uploads/2007/06/godaddy_opps.jpg' title='Godaddy Error' class="imagelink"><img src='http://llynix.com/wp-content/uploads/2007/06/godaddy_opps.thumbnail.jpg' alt='Godaddy Error' /></a>I think the picture and my excellent Photoshop skills say it for me.  GoDaddy&#8217;s editor apparently didn&#8217;t have their Wheaties.</p>
]]></content:encoded>
			<wfw:commentRss>http://llynix.com/photos/proof-reading-or-godaddy-goes-worng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is Borked!</title>
		<link>http://llynix.com/photos/this-is-borked/</link>
		<comments>http://llynix.com/photos/this-is-borked/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 21:11:21 +0000</pubDate>
		<dc:creator>Llynix</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://llynix.com/new/wordpress/?p=5</guid>
		<description><![CDATA[Read carefully.  Does it really need to be said twice?
And of course, we all want a pillow named The Rock!
]]></description>
			<content:encoded><![CDATA[<p><a href='http://llynix.com/wp-content/uploads/2007/05/redundant_rice.jpg' title='redundant_rice.jpg' class='imagelink'><img src='http://llynix.com/wp-content/uploads/2007/05/redundant_rice.thumbnail.jpg' alt='redundant_rice.jpg' /></a>Read carefully.  Does it really need to be said twice?</p>
<p><a href='http://llynix.com/wp-content/uploads/2007/05/rock_pillow.jpg' title='rock_pillow.jpg' class='imagelink'><img src='http://llynix.com/wp-content/uploads/2007/05/rock_pillow.thumbnail.jpg' alt='rock_pillow.jpg' /></a>And of course, we all want a pillow named The Rock!</p>
]]></content:encoded>
			<wfw:commentRss>http://llynix.com/photos/this-is-borked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

