<?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>avn8</title>
	<atom:link href="http://avn8.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://avn8.com</link>
	<description>the web designer&#039;s resource</description>
	<lastBuildDate>Fri, 27 Aug 2010 02:06:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Checking and displaying the user&#8217;s IP with PHP</title>
		<link>http://avn8.com/?p=150</link>
		<comments>http://avn8.com/?p=150#comments</comments>
		<pubDate>Fri, 27 Aug 2010 01:49:19 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=150</guid>
		<description><![CDATA[This quick, yet very useful snippet harnesses the power of PHP and it&#8217;s superglobals. &#160; &#60;?php &#160; $ip = $_SERVER&#91;'REMOTE_ADDR'&#93;; &#160; echo &#34;&#60;p&#62;Your IP address is: &#60;strong&#62;$ip&#60;/strong&#62;&#60;/p&#62;&#34;; &#160; ?&#62; View Demo]]></description>
			<content:encoded><![CDATA[<p>This quick, yet very useful snippet harnesses the power of PHP and it&#8217;s superglobals.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Your IP address is: &lt;strong&gt;<span style="color: #006699; font-weight: bold;">$ip</span>&lt;/strong&gt;&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><a href="http://avn8.com/ip.php">View Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=150</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using .animate() in jQuery</title>
		<link>http://avn8.com/?p=143</link>
		<comments>http://avn8.com/?p=143#comments</comments>
		<pubDate>Tue, 17 Aug 2010 15:30:26 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=143</guid>
		<description><![CDATA[jQuery FTW. It&#8217;s easy to use, functional, and well documented. I could go on for days, jQuery is my favourite framework. Let&#8217;s see if we could create a simple navigation bar with only HTML, CSS and jQuery. First we need to load jQuery, referring to it&#8217;s Google URL. http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js We&#8217;re now making sure that when [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery FTW. It&#8217;s easy to use, functional, and well documented. I could go on for days, jQuery is my favourite framework. Let&#8217;s see if we could create a simple navigation bar with only HTML, CSS and jQuery.</p>
<p>First we need to load jQuery, referring to it&#8217;s Google URL.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js</pre></div></div>

<p>We&#8217;re now making sure that when the nav is hovered over, it&#8217;s margin changes, at a rate of 400 milliseconds:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;nav ul li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'margin-top'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;10px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><span id="more-143"></span><br />
This now works fine, although nothing happens when you mouse out of the navbar, the margin of 10px is still there. To make it look normal again we have to add a little more:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav ul li a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'margin-top'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;10px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'margin-top'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>We now have to obviously create the navbar using some CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> ul li <span style="color: #00AA00;">&#123;</span>	
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> ul li a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">800</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#1a1a1a</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-0.05em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Now that we have the navbar, we have to make a simple fallback, just in case the user has Javascript disabled:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> ul li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0094ff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Now all we have to do is render the nav with some HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;nav&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p>And there you have it, a normal yet sleek navigation bar using only a couple of lines of jQuery.</p>
<p><a href="http://avn8.com/jquerynav.html">View Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=143</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a PHP captcha system</title>
		<link>http://avn8.com/?p=140</link>
		<comments>http://avn8.com/?p=140#comments</comments>
		<pubDate>Sat, 31 Jul 2010 01:07:52 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=140</guid>
		<description><![CDATA[This is a very useful, yet simple PHP script which keeps the spambots away from your information. Firstly, create a file called captcha.php, and insert this code: &#60;?php header&#40;&#34;Content-type: image/png&#34;&#41;; $string = &#34;abcdefghijklmnopqrstuvwxyz0123456789&#34;; for&#40;$i=0;$i&#60;6;$i++&#41;&#123; $pos = rand&#40;0,36&#41;; $str .= $string&#123;$pos&#125;; &#125; &#160; $img_handle = ImageCreate &#40;60, 20&#41; or die &#40;&#34;Cannot Create image&#34;&#41;; //Image size (x,y) [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very useful, yet simple PHP script which keeps the spambots away from your information.</p>
<p>Firstly, create a file called <em>captcha.php,</em> and insert this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: image/png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;abcdefghijklmnopqrstuvwxyz0123456789&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">36</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$str</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$img_handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ImageCreate</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">60</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Cannot Create image&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//Image size (x,y)</span>
<span style="color: #000088;">$back_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ImageColorAllocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//Background color RBG</span>
<span style="color: #000088;">$txt_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ImageColorAllocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//Text Color RBG</span>
<span style="color: #990000;">ImageString</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">31</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #000088;">$txt_color</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">Imagepng</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'img_number'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span id="more-140"></span><br />
We&#8217;ve now created an image, using PHP, to display random letters and numbers.</p>
<p>Now create a file called <em>verify.php,</em> and insert this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'img_number'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'num'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'Error!&lt;br&gt;
    &lt;a href=&quot;form.php&quot;&gt;Try Again&lt;/a&gt;&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'Success!&lt;br&gt;
    &lt;a href=&quot;form.php&quot;&gt;Go back&lt;/a&gt;&lt;br&gt;;
}
?&gt;</span></pre></div></div>

<p>Now we&#8217;ve just made the script that verifies what the user has just entered and tells them whether it worked.</p>
<p>Here&#8217;s the simplest part, the HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form action=&quot;verify.php&quot; method=&quot;post&quot;&gt;
    &lt;img alt=&quot;Random Number&quot; src=&quot;image.php&quot;&gt; 
    &lt;input type=&quot;text&quot; name=&quot;num&quot;&gt;&lt;br&gt;
    &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Check&quot;&gt;
&lt;/form&gt;</pre></div></div>

<p>Hope this helped. <img src='http://avn8.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=140</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11 Questions With Kitty Gallannaugh</title>
		<link>http://avn8.com/?p=129</link>
		<comments>http://avn8.com/?p=129#comments</comments>
		<pubDate>Tue, 13 Jul 2010 23:57:49 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=129</guid>
		<description><![CDATA[Kitty Gallannaugh is a professional photographer based in London UK. She is a unique photographer, and hopes to bring a fresh, modern and innovative ideas into the modern photography world. You can view her website or visit her Flickr. 1. What inspired you to take up photography? I wanted to be able to capture the [...]]]></description>
			<content:encoded><![CDATA[<p>Kitty Gallannaugh is a professional photographer based in London UK. She is a unique photographer, and hopes to bring a fresh, modern and innovative ideas into the modern photography world. You can view <a href="http://kittygallannaugh.com">her website</a> or <a href="http://www.flickr.com/photos/kitty_kleyn/">visit her Flickr</a>.<br />
<strong><br />
1. What inspired you to take up photography?</strong><br />
I wanted to be able to capture the quiet moments we forget. We always<br />
photograph the important events &#8211; birthdays, Christmas etc. But what about<br />
the normal day-to-day happiness too? I wanted to take photographs so I could<br />
remember every little moment in my life and others too.<span id="more-129"></span><br />
<strong><br />
2. What camera do you use?</strong><a href="http://avn8.com/wp-content/uploads/2010/07/kittyg.jpg"><img src="http://avn8.com/wp-content/uploads/2010/07/kittyg-300x200.jpg" alt="" title="kittyg" width="300" height="200" class="alignright size-medium wp-image-152" /></a><br />
I use the Canon 450D. It&#8217;s an amazing camera.</p>
<p><strong>3. How many photos, on average, do you think you&#8217;ve taken?</strong><br />
Probably too many to count. I&#8217;d probably say somewhere around the 10,000<br />
mark, I just never stop.<br />
<strong><br />
4. What football team do you support?</strong><br />
Chelsea!</p>
<p><strong>5. What tips would you give an aspiring photographer?</strong><br />
Always take photographs and never ever give up. It&#8217;s frustrating and at<br />
times you just want to pack it in. The more you give out, the more you will<br />
receive. Never let a day go by when you feel you haven&#8217;t worked to your<br />
fullest potential. If you go to bed thinking you could&#8217;ve done better, then<br />
that&#8217;s a day wasted.<br />
<strong><br />
6. PC or Mac?</strong><br />
I use a PC but I know Mac&#8217;s are probably so much better for the design side<br />
of life. One day, maybe one day I&#8217;ll own one!<br />
<strong><br />
7. Are you going to carry on photography for the rest of your life?</strong><br />
Absolutely, I don&#8217;t seem myself ever stopping. It&#8217;s become a big part of<br />
who I am, asking me to stop shooting would be like asking someone which<br />
sense they&#8217;d like to give up.</p>
<p><strong>8. What music do you like?</strong><br />
I like a bit of everything, it really depends what kind of mood I&#8217;m in.<br />
Some days I&#8217;ll want to relax and edit photographs to indie music and other<br />
days I&#8217;ll be dancing around to rock.</p>
<p><strong>9. What characteristics and skills do you think it takes to become a successful photographer?</strong><br />
The main skill one needs is organisation &#8211; without that you&#8217;re like a human<br />
without a head. You need to learn how to act confident and think quickly in<br />
shoots, it&#8217;s constantly moving very fast and you need to know how to keep<br />
up. Being friendly is the main characteristic I would say there is &#8211; the<br />
industry is full of amazing people and getting to know them is always<br />
incredible.</p>
<p><strong>10. Are you ever gonna take up web design?</strong><br />
I would absolutely love to. I designed my online portfolio myself, I<br />
definitely find it heaps of fun as the possibilities for design are endless.<br />
As for the coding side? That&#8217;s a whole other world.<br />
<strong><br />
11. What editing software do you use?</strong><br />
I use Photoshop CS4, it&#8217;s like a partner in crime.</p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=129</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fading images with jQuery</title>
		<link>http://avn8.com/?p=125</link>
		<comments>http://avn8.com/?p=125#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:29:47 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=125</guid>
		<description><![CDATA[All you have to do to implement this jQuery, is put an image inside a div with an ID of someImage. $&#40;&#34;#someImage&#34;&#41;.hover&#40;function&#40;&#41;&#123; &#160; $&#40;this&#41;.find&#40;&#34;img&#34;&#41;.fadeOut&#40;&#41;; &#160; &#125;, function&#40;&#41; &#123; &#160; $&#40;this&#41;.find&#40;&#34;img&#34;&#41;.fadeIn&#40;&#41;; &#160; &#125;&#41;]]></description>
			<content:encoded><![CDATA[<p>All you have to do to implement this jQuery, is put an image inside a div with an ID of someImage.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#someImage&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=125</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password protecting a page with PHP</title>
		<link>http://avn8.com/?p=123</link>
		<comments>http://avn8.com/?p=123#comments</comments>
		<pubDate>Fri, 21 May 2010 18:57:26 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=123</guid>
		<description><![CDATA[This password protects a single page whereas the use of .htaccess only protects folders. &#60;?php &#160; &#160; &#160; // Define your username and password &#160; $username = &#34;someuser&#34;; &#160; $password = &#34;somepassword&#34;; &#160; &#160; &#160; if &#40;$_POST&#91;'txtUsername'&#93; != $username &#124;&#124; $_POST&#91;'txtPassword'&#93; != $password&#41; &#123; &#160; &#160; &#160; ?&#62; &#160; &#160; &#160; &#60;h1&#62;Login&#60;/h1&#62; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>This password protects a single page whereas the use of .htaccess only protects folders.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// Define your username and password</span>
&nbsp;
<span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;someuser&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;somepassword&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'txtUsername'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$username</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'txtPassword'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&nbsp;
&lt;h1&gt;Login&lt;/h1&gt;
&nbsp;
&nbsp;
&nbsp;
&lt;form name=&quot;form&quot; method=&quot;post&quot; action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PHP_SELF'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
&nbsp;
    &lt;p&gt;&lt;label for=&quot;txtUsername&quot;&gt;Username:&lt;/label&gt;
&nbsp;
    &lt;br /&gt;&lt;input type=&quot;text&quot; title=&quot;Enter your Username&quot; name=&quot;txtUsername&quot; /&gt;&lt;/p&gt;
&nbsp;
&nbsp;
&nbsp;
    &lt;p&gt;&lt;label for=&quot;txtpassword&quot;&gt;Password:&lt;/label&gt;
&nbsp;
    &lt;br /&gt;&lt;input type=&quot;password&quot; title=&quot;Enter your password&quot; name=&quot;txtPassword&quot; /&gt;&lt;/p&gt;
&nbsp;
&nbsp;
&nbsp;
    &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Login&quot; /&gt;&lt;/p&gt;
&nbsp;
&nbsp;
&nbsp;
&lt;/form&gt;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&nbsp;
&lt;p&gt;This is the protected page. Your private content goes here.&lt;/p&gt;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force files to download using .htaccess</title>
		<link>http://avn8.com/?p=120</link>
		<comments>http://avn8.com/?p=120#comments</comments>
		<pubDate>Mon, 17 May 2010 15:19:43 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=120</guid>
		<description><![CDATA[This snippet comes in handy if you are tired of putting things in .zip formats for people to download. AddType application/octet-stream .csv AddType application/octet-stream .xls AddType application/octet-stream .doc AddType application/octet-stream .avi AddType application/octet-stream .mpg AddType application/octet-stream .mov AddType application/octet-stream .pdf Add other file types accordingly.]]></description>
			<content:encoded><![CDATA[<p>This snippet comes in handy if you are tired of putting things in .zip formats for people to download.</p>

<div class="wp_syntax"><div class="code"><pre class="htaccess" style="font-family:monospace;">AddType application/octet-stream .csv
AddType application/octet-stream .xls
AddType application/octet-stream .doc
AddType application/octet-stream .avi
AddType application/octet-stream .mpg
AddType application/octet-stream .mov
AddType application/octet-stream .pdf</pre></div></div>

<p>Add other file types accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=120</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learning jQuery &#124; #2 &#124; Using .css()</title>
		<link>http://avn8.com/?p=36</link>
		<comments>http://avn8.com/?p=36#comments</comments>
		<pubDate>Wed, 05 May 2010 19:40:16 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=36</guid>
		<description><![CDATA[Digging a little deeper, we&#8217;re going to jump straight into animating elements of a web page, one of jQuery&#8217;s primary uses. Let&#8217;s start off by making a div: #aDiv &#123; background-color: #0094ff; width: 400px; height: 400px; &#125; We now have made a div with the id of &#8220;aDiv&#8221; and there are a lot of cool [...]]]></description>
			<content:encoded><![CDATA[<p>Digging a little deeper, we&#8217;re going to jump straight into animating elements of a web page, one of jQuery&#8217;s primary uses. Let&#8217;s start off by making a div:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#aDiv</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0094ff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We now have made a div with the id of &#8220;aDiv&#8221; and there are a lot of cool plugins and effects you could use to animate the div. But what if you want to edit the background color of the div? Well background color is a CSS property, therefore we should use .css()</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#aDiv&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;background-color&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;green&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Explained:</strong></p>
<ol>
When the DOM has fully loaded.
</ol>
<ol>
When aDiv is clicked.
</ol>
<ol>
Make aDiv&#8217;s background-color change to green.
</ol>
<p>You can edit CSS with jQuery! Part 3 will be exploring .animate()!<br />
<a href="http://avn8.com/jquery/demo2.html"><br />
Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=36</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking if an image has loaded</title>
		<link>http://avn8.com/?p=114</link>
		<comments>http://avn8.com/?p=114#comments</comments>
		<pubDate>Sat, 01 May 2010 01:19:36 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=114</guid>
		<description><![CDATA[$&#40;'#theImage'&#41;.attr&#40;'src', 'theimage.png'&#41;.load&#40;function&#40;&#41; &#123; alert&#40;'Image Has Loaded!'&#41;; &#125;&#41;;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#theImage'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'theimage.png'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Image Has Loaded!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=114</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make an entire div clickable with jQuery</title>
		<link>http://avn8.com/?p=109</link>
		<comments>http://avn8.com/?p=109#comments</comments>
		<pubDate>Mon, 26 Apr 2010 09:10:30 +0000</pubDate>
		<dc:creator>avn8</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://avn8.com/?p=109</guid>
		<description><![CDATA[jQuery $&#40;&#34;someDiv&#34;&#41;.click&#40;function&#40;&#41;&#123; window.location=$&#40;this&#41;.find&#40;&#34;a&#34;&#41;.attr&#40;&#34;href&#34;&#41;; return false; &#125;&#41;; HTML &#60;div id=&#34;someDiv&#34;&#62; This is some of the div's content. &#60;a href=&#34;http://google.com&#34;&#62;The Link&#60;/a&#62; &#60;/div&#62;]]></description>
			<content:encoded><![CDATA[<p><strong>jQuery</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;someDiv&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     window.<span style="color: #660066;">location</span><span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong><br />
HTML</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;someDiv&quot;&gt;
     This is some of the div's content.
    &lt;a href=&quot;http://google.com&quot;&gt;The Link&lt;/a&gt;
&lt;/div&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://avn8.com/?feed=rss2&amp;p=109</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
