<?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>Ian Purton</title>
	<atom:link href="http://ianpurton.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianpurton.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 08 Mar 2010 14:42:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby SSH Example With Error Handling</title>
		<link>http://ianpurton.com/ruby-ssh-example-with-error-handling/</link>
		<comments>http://ianpurton.com/ruby-ssh-example-with-error-handling/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 14:42:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ianpurton.com/?p=10137</guid>
		<description><![CDATA[The following ruby snippet takes an array of commands as a parameter then runs all those commands via SSH.

You get back either a string containing an error or a hash that contains the results for each command, where the command is the key.






		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Post this on Diigo
		
		
			Share this on Reddit
		
		
			Stumble upon something [...]]]></description>
			<content:encoded><![CDATA[<p>The following ruby snippet takes an array of commands as a parameter then runs all those commands via SSH.</p>
<p><span id="more-10137"></span></p>
<p>You get back either a string containing an error or a hash that contains the results for each command, where the command is the key.</p>
<p><script src="http://gist.github.com/325091.js?file=Ruby+SSH+processing"></script></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling&amp;desc=The%20following%20ruby%20snippet%20takes%20an%20array%20of%20commands%20as%20a%20parameter%20then%20runs%20all%20those%20commands%20via%20SSH.%0D%0A%0D%0A%0D%0AYou%20get%20back%20either%20a%20string%20containing%20an%20error%20or%20a%20hash%20that%20contains%20the%20results%20for%20each%20command%2C%20where%20the%20command%20is%20the%20key.%0D%0A%0D%0A" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/ruby-ssh-example-with-error-handling/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;title=Ruby+SSH+Example+With+Error+Handling" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Ruby+SSH+Example+With+Error+Handling+-+http://b2l.me/jg37j+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/ruby-ssh-example-with-error-handling/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/ruby-ssh-example-with-error-handling/&amp;bm_description=Ruby+SSH+Example+With+Error+Handling&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/ruby-ssh-example-with-error-handling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clouds and paper airplanes</title>
		<link>http://ianpurton.com/clouds-and-paper-airplanes/</link>
		<comments>http://ianpurton.com/clouds-and-paper-airplanes/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 14:47:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[brush]]></category>
		<category><![CDATA[clouds]]></category>
		<category><![CDATA[dream]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[paper]]></category>
		<category><![CDATA[pen]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://ianpurton.com/?p=10087</guid>
		<description><![CDATA[
In this tutorial I will show you how to create the image above, together with the puffy clouds, paper airplanes and stars and whistles. Note that the final effect will be better if you use a pen tablet. So, let&#8217;s get started.

Open a new document

Choose File&#62;New…
Type in the following Width and Height dimensions and press [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-large wp-image-10089 aligncenter" title="Clouds&amp;Airplanes" src="http://ianpurton.com/wp-content/uploads/2010/02/CloudsAirplanes-1024x89.jpg" alt="Clouds&amp;Airplanes" width="649" height="56" /></p>
<p>In this tutorial I will show you how to create the image above, together with the puffy clouds, paper airplanes and stars and whistles. Note that the final effect will be better if you use a pen tablet. So, let&#8217;s get started.</p>
<p><span id="more-10087"></span></p>
<p><strong>Open a new document</strong></p>
<ol>
<li>Choose File&gt;New…</li>
<li>Type in the following Width and Height dimensions and press OK.</li>
</ol>
<p><img class="aligncenter size-full wp-image-10086" title="New" src="http://ianpurton.com/wp-content/uploads/2010/02/1.jpg" alt="New" width="555" height="342" /></p>
<p><strong>Draw the gradient</strong></p>
<ol>
<li>Select the Gradient Tool (Shortcut G) .</li>
<li>Select Radial Gradient <img class="alignnone size-full" title="gradientOptions" src="http://ianpurton.com/wp-content/uploads/2010/02/gradientOptions.jpg" alt="gradientOptions" width="90" height="22" /> from the upper left Gradient Options.</li>
<li>Click the gradient in order to open the gradient editor. Set the following colors in the Gradient Editor:</li>
</ol>
<p style="text-align: center;">RGB (111, 223, 235) for the Dark Blue</p>
<p style="text-align: center;">RGB (13,53,108) for the Light Blue</p>
<p>Then move the sliders as shown in the picture. Leave everything else as shown.<br />
<img class="aligncenter size-full wp-image-10092" title="2" src="http://ianpurton.com/wp-content/uploads/2010/02/2.jpg" alt="2" width="443" height="505" /></p>
<p>4. Draw the gradient as shown in the picture, with the centered of the circle outside of the working area, for a nice, delicate effect.</p>
<p><img class="aligncenter size-medium wp-image-10093" title="gradient" src="http://ianpurton.com/wp-content/uploads/2010/02/gradient-300x202.jpg" alt="gradient" width="300" height="202" /></p>
<p><strong>Create the Rays of Light</strong></p>
<ol>
<li>Select the Gradient Tool (Shortcut G) .</li>
<li>Select Angle Gradient <img class="alignnone size-full wp-image-10095" title="gradientOptions2" src="http://ianpurton.com/wp-content/uploads/2010/02/gradientOptions2.jpg" alt="gradientOptions2" width="90" height="22" /> from the upper left Gradient Options.</li>
<li>Click the gradient in order to open the gradient editor. Select <em>Noise</em> as gradient type and click the “Randomize” button to get a balanced gradient (any hue does the trick). Try to match the gradient below as closely as possible.</li>
</ol>
<p><img class="aligncenter size-full wp-image-10096" title="3" src="http://ianpurton.com/wp-content/uploads/2010/02/3.jpg" alt="3" width="443" height="505" /></p>
<p>4. Create a new layer <img class="alignnone size-full wp-image-10097" title="layer" src="http://ianpurton.com/wp-content/uploads/2010/02/layer.jpg" alt="layer" width="27" height="25" /> on top of the one with the radial gradient.</p>
<p>5. Now draw the gradient so as to look similar to the one below:</p>
<p><img class="aligncenter size-full wp-image-10098" title="raygradient" src="http://ianpurton.com/wp-content/uploads/2010/02/raygradient.jpg" alt="raygradient" width="628" height="61" /> 6. Select Image&gt;Adjustments&gt;Desaturate  (Shortcut: Shift+Ctrl+U)</p>
<p>7. Choose the Soft Light blending mode for the Light layer. Use Overlay mode for a stronger effect.</p>
<p><img class="aligncenter size-full wp-image-10099" title="4" src="http://ianpurton.com/wp-content/uploads/2010/02/4.jpg" alt="4" width="328" height="872" /></p>
<p>8. Apply Gaussian Blur for an even more delicate effect.</p>
<p><img class="aligncenter size-full wp-image-10100" title="5" src="http://ianpurton.com/wp-content/uploads/2010/02/5.jpg" alt="5" width="336" height="347" /></p>
<p><strong>Creating the Clouds</strong></p>
<ol>
<li>Select the Brush Tool (shortcut B)</li>
<li>Choose the Brush Tip Shape to be <img class="alignnone size-full wp-image-10102" title="17" src="http://ianpurton.com/wp-content/uploads/2010/02/17.jpg" alt="17" width="29" height="29" />. Use a spacing of 17% and leave the Opacity and Flow at 100%</li>
<li>Open the Brushes Palette (Window&gt;Brushes or Shortcut: F5)</li>
<li>Tick the Scattering checkbox. If you have a pen tablet, let the scattering and count jitter be controlled by the pen pressure. Otherwise choose some values that best suit your intended effect.<img class="aligncenter size-full wp-image-10101" title="6" src="http://ianpurton.com/wp-content/uploads/2010/02/6.jpg" alt="6" width="507" height="601" /></li>
<li>Create new layers for the clouds (as many as you wish), then draw the clouds shape with the color RGB (111, 223, 235) or darker. Using a pen tablet would guarantee a unique shape and feel. The secret here is to use small brush sizes (1 and 2). It takes more time to create the composition this way, but it will give the composition that intended sketchy feeling, with a lot of lines composing the cloud shape.</li>
</ol>
<p><img class="aligncenter size-full wp-image-10103" title="7" src="http://ianpurton.com/wp-content/uploads/2010/02/7.jpg" alt="7" width="624" height="62" /></p>
<blockquote><p><strong>NOTE: for a more dramatic effect you could also use a texture.</strong></p>
<p><strong>Tick the Texture checkbox and the click on the word Texture to configure the options</strong><strong>. The use texture is &#8220;Wax Crayon on Charcoal Paper&#8221; , which can be found in the Artist Surfaces Library which comes with Adobe Photoshop. (To access it click the drop-down arrow for Contents, then the dropdown arrow to the top right and choose Artist Surfaces.)</strong></p>
<p><strong>Choose the Brush Tip Shape to be Sampled Tip 58</strong><strong>. Use a spacing of 17% and leave the Opacity and Flow at 100%<span style="font-weight: normal; "><strong>.</strong></span></strong></p></blockquote>
<p><strong><span style="font-weight: normal; "><strong> </strong> 6. Experiment with the opacity of the cloud layers until you are satisfied with the effect</span></strong></p>
<p><strong><span style="font-weight: normal; "> 7.<strong> </strong>Create a new layer under the cloud layers, and call it White. Using a solid brush this time, paint under the clouds with white, wherever you want to highlight them. Crosshatch the clouds with the pen if you want to dim out the whiteness.</span></strong></p>
<p><strong>Creating the Airplanes</strong></p>
<ol>
<li>Select the line tool (Shortcut U). Give it a weight of 2 px.</li>
<li>Use the line tool to create the following shape.<img class="aligncenter size-full wp-image-10105" title="airplane" src="http://ianpurton.com/wp-content/uploads/2010/02/airplane.jpg" alt="airplane" width="309" height="215" /></li>
<li>Once satisfied with the shape, merge down the line layers.</li>
<li>Create a new layer under the airplane layer. Paint it with white, with the brush tool.<img class="aligncenter size-full wp-image-10106" title="airplane2" src="http://ianpurton.com/wp-content/uploads/2010/02/airplane2.jpg" alt="airplane2" width="292" height="157" /></li>
<li>Convert the Airplane Layer and the White layer into a smart object.</li>
<li>Copy the smart object layer 6 times. Rotate and scale each airplane until the image looks like below</li>
</ol>
<p><img class="aligncenter size-full wp-image-10104" title="8" src="http://ianpurton.com/wp-content/uploads/2010/02/8.jpg" alt="8" width="628" height="61" /></p>
<p><strong>Final touches: The stars</strong></p>
<ol>
<li>Create a new layer. Call it Stars.</li>
<li>Using the same brush as for the clouds, start drawing stars across the canvas, wherever you think the composition is not consistent enough.</li>
</ol>
<p><img class="aligncenter size-full wp-image-10107" title="9" src="http://ianpurton.com/wp-content/uploads/2010/02/9.jpg" alt="9" width="628" height="61" /></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+&amp;desc=%0D%0A%0D%0AIn%20this%20tutorial%20I%20will%20show%20you%20how%20to%20create%20the%20image%20above%2C%20together%20with%20the%20puffy%20clouds%2C%20paper%20airplanes%20and%20stars%20and%20whistles.%20Note%20that%20the%20final%20effect%20will%20be%20better%20if%20you%20use%20a%20pen%20tablet.%20So%2C%20let%27s%20get%20started.%0D%0A%0D%0A%0D%0A%0D%0AOpen%20a%20new%20document%0D%0A%0D%0A%09Choose%20File%26gt%3BNew%E2%80%A6%0D%0A%09Type%20in%20the%20fol" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/clouds-and-paper-airplanes/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;title=Clouds+and+paper+airplanes+" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Clouds+and+paper+airplanes++-+http://b2l.me/jg4qr+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/clouds-and-paper-airplanes/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/clouds-and-paper-airplanes/&amp;bm_description=Clouds+and+paper+airplanes+&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/clouds-and-paper-airplanes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Ruby on Rails, Apache, MySQL, Passenger and more on a bare Debian install</title>
		<link>http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/</link>
		<comments>http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 14:56:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ianpurton.com/?p=10073</guid>
		<description><![CDATA[This is what I use to setup up a server, hope it helps someone.
Setup IPTables
Your server will initially have all ports blocked so you need to edit /etc/iptables and add
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 [...]]]></description>
			<content:encoded><![CDATA[<p>This is what I use to setup up a server, hope it helps someone.</p>
<h2>Setup IPTables</h2>
<p>Your server will initially have all ports blocked so you need to edit /etc/iptables and add</p>
<pre>-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT</pre>
<p><span id="more-10073"></span></p>
<h2>Setup MySQL</h2>
<pre>aptitude update
aptitude upgrade
aptitude dist-upgrade
shutdown -r now
aptitude install build-essential -y
aptitude install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby -y
mysqladmin -u root password yourpassword</pre>
<h2>Setup Ruby</h2>
<pre>aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby -y
ruby -v
ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
ln -s /usr/bin/ri1.8 /usr/local/bin/ri
ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
ln -s /usr/bin/irb1.8 /usr/local/bin/irb
mkdir sources
cd sources/
wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
tar xzvf rubygems-1.2.0.tgz
cd  rubygems-1.2.0
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem
gem -v
gem update
aptitude install imagemagick librmagick-ruby1.8 librmagick-ruby-doc libfreetype6-dev xml-core -y</pre>
<h2>Update RubyGems to 1.3+</h2>
<pre>gem install rubygems-update -v=1.3.4
update_rubygems</pre>
<h2>Install Rails</h2>
<pre>bc. gem install rails</pre>
<h2>Apache</h2>
<pre>aptitude install apache2 apache2-mpm-prefork apache2-utils libexpat1 ssl-cert</pre>
<h2>Phusion Passenger</h2>
<pre>gem install passenger
passenger-install-apache2-module
apt-get install apache2-prefork-dev
apt-get install libapr1-dev
passenger-install-apache2-module</pre>
<p>Add the following to /etc/apache2/httpd.conf</p>
<pre>LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5
PassengerRuby /usr/bin/ruby1.8</pre>
<h2>Configure a site into Apache</h2>
<p>Create a file in /etc/apache2/sites-available such as</p>
<pre>&lt;VirtualHost *>
ServerName serverpulsehq.com
ServerAlias www.serverpulsehq.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
DocumentRoot /home/serverpulsehq.com/application/public
RailsEnv    development
&lt;/VirtualHost></pre>
<p>To switch rewrite on and enable a site</p>
<pre>a2ensite serverpulsehq.com
a2enmod reload</pre>
<h2>Webmin</h2>
<pre>apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.470_all.deb
dpkg --install webmin_1.470_all.deb</pre>
<h2>Webmin via proxy</h2>
<p>Need to be able to switch off SSL for webmin this is done via the UI. </p>
<p>Enable some apache modules</p>
<pre>a2enmod proxy
a2enmod proxy_http</pre>
<p>Add the following directives to the Apache configuration file: /etc/apache2/httpd.conf</p>
<pre>ProxyRequests Off
ProxyPreserveHost On
&lt;Proxy *>
Allow from all
&lt;/Proxy>
ProxyPass /webmin/ http://localhost:10000/
ProxyPassReverse /webmin/ http://localhost:10000/
</pre>
<p>Add the following lines to /etc/webmin/config</p>
<pre>webprefix=/webmin
webprefixnoredir=1
referer=apachehost</pre>
<p>Switch off SSL</p>
<p>Edit /etc/webmin/miniserv.conf and disable ssl redirect ssl_redirect=0 and ssl=0</p>
<pre>/etc/init.d/apache2 reload</pre>
<h2>Astrails-safe (For backups to S3)</h2>
<p>Create the astrails conf file in /root. </p>
<pre>apt-get install libxml2-dev
apt-get install libxslt-dev</pre>
<pre>gem install aws-s3
gem install archive-tar-minitar
gem install nokogiri
gem install hoe
gem install rcov
gem install net-sftp
gem install astrails-safe --source http://gems.github.com/</pre>
<h2>PHP5</h2>
<pre>aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl php5-cli</pre>
<h2>Install Git</h2>
<pre>aptitude install build-essential libcurl3-gnutls-dev gettext
wget http://kernel.org/pub/software/scm/git/git-1.6.5.1.tar.gz
tar xvzf git-1.6.5.1.tar.gz
cd git-1.6.5.1
./configure
make prefix=/usr
make install prefix=/usr
</pre>
<h2>Zip and Unzip</h2>
<pre>apt-get install zip
apt-get install unzip</pre>
<h2>Configure Email</h2>
<pre>aptitude install exim4
/etc/init.d/exim4 restart
dpkg-reconfigure exim4-config</pre>
<p>Use the following options
<pre>No
internet site; mail is sent and received directly using SMTP
OK
Take all the default</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install&amp;desc=This%20is%20what%20I%20use%20to%20setup%20up%20a%20server%2C%20hope%20it%20helps%20someone.%0D%0A%0D%0ASetup%20IPTables%0D%0A%0D%0AYour%20server%20will%20initially%20have%20all%20ports%20blocked%20so%20you%20need%20to%20edit%20%2Fetc%2Fiptables%20and%20add%0D%0A%0D%0A-A%20INPUT%20-p%20tcp%20-m%20tcp%20--dport%2080%20-j%20ACCEPT%0D%0A-A%20INPUT%20-p%20tcp%20-m%20tcp%20--dport%20443%20-j%20ACCEPT%0D%0A-A%20INPUT%20-p%20tcp%20-m%20tcp%20--dpor" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;title=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install+-+http://b2l.me/jg4qs+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/&amp;bm_description=Setup+Ruby+on+Rails%2C+Apache%2C+MySQL%2C+Passenger+and+more+on+a+bare+Debian+install&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/setup-ruby-on-rails-apache-mysql-passenger-and-more-on-a-bare-debin-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Experience Buying a $10,000 Website on Sitepoint (Part 1)</title>
		<link>http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/</link>
		<comments>http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:43:27 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Web Marketing]]></category>
		<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://ianpurton.com/?p=10054</guid>
		<description><![CDATA[
I recently purchased Status2k on a sitepoint auction. It&#8217;s the first time I&#8217;ve ever bought a site and it&#8217;s definately a learning experience. After my winning bid was excepted the sale proceeded very rapidly (a lot quicker than I was expecting) over msn chat.

Getting some reassurance
Before sending $10,000 to someone I&#8217;d never met I wanted [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ianpurton.com/wp-content/uploads/2008/10/sitepoint-auction.png" alt="" title="sitepoint-auction" width="557" height="157" class="alignnone size-full wp-image-10057" /></p>
<p>I recently purchased <a href="http://www.status2k.com">Status2k</a> on a sitepoint auction. It&#8217;s the first time I&#8217;ve ever bought a site and it&#8217;s definately a learning experience. After my winning bid was excepted the sale proceeded very rapidly (a lot quicker than I was expecting) over msn chat.</p>
<p><span id="more-10054"></span></p>
<h2>Getting some reassurance</h2>
<p>Before sending $10,000 to someone I&#8217;d never met I wanted to get a feel for who the seller was and that they were genuine. This explains the first part of the interaction.</p>
<pre>
Ian: Hi.
Vlad: Hello Ian
Ian: So how do you think we should do this ?
Vlad: Well i did a lot of similar deals and it's pretty easy
Vlad: You pay us 50% we transfer the files
Vlad: Pay the other 50% and we transfer the domain
Vlad: So this way you are protected and we are too
Ian: OK, that seems fair...
Vlad: Great
...
Ian: I would also like to get contact details so that I know where
my money is
going i.e. a telephone no.
Vlad: You will pay via paypal right ?
Ian: If I can, I don't know what there upper limit is.
Vlad: Doesn't have for me , but depends from account to account yeah
Ian: I'll take a look, can you provide contact details ?
Vlad: what kind of details you need ?
Ian: I'll need your address and a phone number, if that's ok ?
Vlad: I'm not sure i d enjoy giving out the personal stuff online
Ian: I can't send that kind of money without knowing exactly
who it's going too.
Vlad: I understand
Vlad: But take it like this
Vlad: How could you verify
Vlad: If i wanted to scam you, I'd get a prepaid card, invent an address and
how could you verify if it's legit or not
...
Ian: Let me have a think about it, not feeling comfortable sending the money.
...
Vlad: Would you like to see my trader profile
...
Ian: It would be good to see trader profiles, yes. Sorry Vlad
but I just need to be sure.
Vlad: I perfectly understand you Ian .
...
Vlad: here hxxp://
Vlad: one of them
Ian: I'm feeling a bit better about this now, a good profile.
Vlad: Thank you
Vlad: I'm a member of hxxp:// too
Vlad: You can type in my email to lookup for my profile
Vlad: Or at
...
Vlad: Feeling more comfortable now Ian ?
Ian: Definately, shall I make paypal payment to &lt;removed>
</pre>
<h2>Sending the first half of the payment and receiving the files</h2>
<p>As a buyer this is a difficult part as you&#8217;re just receiving a bunch of files without really knowing if they&#8217;re going to work when you get them. However Vlad offers to keep the site hosted whilst I get set up, so the sale proceeds.</p>
<pre>
Vlad: No
Vlad: My paypal is &lt;removed>
Vlad: Yeah only thing is we have to pay fees
Vlad: Usually buyer pays fees
Vlad: but we can do 50/50 i guess
...
Ian: OK, I'll pay fees this time you next ?
Vlad: Yeah
Vlad: Let me know when you paid i'll transfer you the files and
then the domain
Ian: It'll take me a while to get the site up and running is that ok ?
Vlad: Well i'll give you everything, you can take your time
we'll still host it
Ian: payment has been sent.
...
Vlad: Great
Vlad: Okay
Vlad: You have a server with cPanel ?
Ian: I use webmin, put I'm pretty techy so getting it
setup shouldn't be a problem.
Vlad: Okay
Vlad: So if i provide cPanel logins and ftp you can handle ?
Ian: I think so yes.
Ian: What's the url for cpanel ?
...
Ian: OK, how do domains get sent ?
Vlad: Create an domainsite account
Ian: creating it now.
Ian: OK, account is created.
...
Vlad: Uploading now the archieve
Ian: Thanks.
Vlad: Meanwhile get your Account Code from your domainsite account
Ian: &lt;domain site account code removed&gt;
Vlad: Sweet
Ian: How's it going ?
Vlad: it's done
...
Ian: OK, I'll send the money now.
Vlad: Nice
Ian: Sent.
Vlad: Received
Vlad: Domain has been sent
Ian: Cool, will it just appear, let me check.
Vlad: Yah
Ian: Will it still point to the same ip ?
...
Ian: Right.
Ian: Lot's for me to do.
Vlad: Yep
Ian: I hope not to bother you too much in the next couple of days.
Vlad: It's okay
Vlad: I don't mind helping
...
</pre>
<h2>And the good news</h2>
<p>In part 2 I&#8217;ll write up more of my experiences of transferring the site to another server, email problems, dns problems and a few other suprises I wasn&#8217;t expecting. However the screenshot below shows the sales coming in, a huge sigh of relief.</p>
<p><img src="http://ianpurton.com/wp-content/uploads/2008/11/paypal-proof.png" alt="Paypal Proof" title="paypal-proof"  /></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29&amp;desc=%0A%0AI%20recently%20purchased%20Status2k%20on%20a%20sitepoint%20auction.%20It%27s%20the%20first%20time%20I%27ve%20ever%20bought%20a%20site%20and%20it%27s%20definately%20a%20learning%20experience.%20After%20my%20winning%20bid%20was%20excepted%20the%20sale%20proceeded%20very%20rapidly%20%28a%20lot%20quicker%20than%20I%20was%20expecting%29%20over%20msn%20chat.%0A%0AGetting%20some%20reassurance%0A%0ABefore%20sendi" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;title=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29+-+http://b2l.me/jg4qt+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/&amp;bm_description=My+Experience+Buying+a+%2410%2C000+Website+on+Sitepoint+%28Part+1%29&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/my-experience-buying-a-10000-website-on-sitepoint-part-1/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Graffiti on the Regents Canal</title>
		<link>http://ianpurton.com/graffiti-on-the-regents-canal/</link>
		<comments>http://ianpurton.com/graffiti-on-the-regents-canal/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 14:21:27 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://ianpurton.com/?p=10047</guid>
		<description><![CDATA[
Urban Commuting
To get to work a cycle along the Regents Canal. There&#8217;s a lot of graffit most of it pretty unsightly, but I like some of the new Banksy inspired art that&#8217;s appearing. I&#8217;ve collected a few examples and put them into a regents canal flickr set.





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Post this on Diigo
		
		
			Share this [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ianpurton.com/wp-content/uploads/2008/10/2949257943_181a040eb7_b_scaled.jpg" alt="" title="2949257943_181a040eb7_b_scaled" width="557" class="alignnone size-medium wp-image-10048" /></p>
<h2>Urban Commuting</h2>
<p>To get to work a cycle along the <a href="http://en.wikipedia.org/wiki/Regents_Canal">Regents Canal</a>. There&#8217;s a lot of graffit most of it pretty unsightly, but I like some of the new <a href="http://en.wikipedia.org/wiki/Banksy">Banksy</a> inspired art that&#8217;s appearing. I&#8217;ve collected a few examples and put them into a <a href="http://www.flickr.com/photos/purton/sets/72157608334977089/">regents canal flickr set</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal&amp;desc=%0A%0AUrban%20Commuting%0A%0ATo%20get%20to%20work%20a%20cycle%20along%20the%20Regents%20Canal.%20There%27s%20a%20lot%20of%20graffit%20most%20of%20it%20pretty%20unsightly%2C%20but%20I%20like%20some%20of%20the%20new%20Banksy%20inspired%20art%20that%27s%20appearing.%20I%27ve%20collected%20a%20few%20examples%20and%20put%20them%20into%20a%20regents%20canal%20flickr%20set." rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/graffiti-on-the-regents-canal/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;title=Graffiti+on+the+Regents+Canal" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Graffiti+on+the+Regents+Canal+-+http://b2l.me/jg4qv+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/graffiti-on-the-regents-canal/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/graffiti-on-the-regents-canal/&amp;bm_description=Graffiti+on+the+Regents+Canal&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/graffiti-on-the-regents-canal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating Gravatars into PunBB forums</title>
		<link>http://ianpurton.com/integrating-gravatars-into-punbb-forums/</link>
		<comments>http://ianpurton.com/integrating-gravatars-into-punbb-forums/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 14:29:36 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ianpurton.com/integrating-gravatars-into-punbb-forums/</guid>
		<description><![CDATA[PunBB already has it&#8217;s own Avatar system however I wanted to use the Gravatar  site which is a central place to store avatar images.

To add gravatar functionality to PunBB you need to edit your viewtopic.php and look for the following line.

And replace it with..

This will automatically slect the graviatar based on the users email [...]]]></description>
			<content:encoded><![CDATA[<p>PunBB already has it&#8217;s own <a href="http://en.wikipedia.org/wiki/Avatar_(computing)">Avatar</a> system however I wanted to use the <a href="http://en.gravatar.com/">Gravatar</a>  site which is a central place to store avatar images.</p>
<p><span id="more-10038"></span></p>
<p>To add gravatar functionality to PunBB you need to edit your <strong>viewtopic.php</strong> and look for the following line.</p>
<p><script src="http://gist.github.com/319758.js?file=gistfile1.php"></script></p>
<p>And replace it with..</p>
<p><script src="http://gist.github.com/319757.js?file=gistfile1.php"></script></p>
<p>This will automatically slect the graviatar based on the users email address.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums&amp;desc=PunBB%20already%20has%20it%27s%20own%20Avatar%20system%20however%20I%20wanted%20to%20use%20the%20Gravatar%20%20site%20which%20is%20a%20central%20place%20to%20store%20avatar%20images.%0D%0A%0D%0A%0D%0A%0D%0ATo%20add%20gravatar%20functionality%20to%20PunBB%20you%20need%20to%20edit%20your%20viewtopic.php%20and%20look%20for%20the%20following%20line.%0D%0A%0D%0A%0D%0A%0D%0AAnd%20replace%20it%20with..%0D%0A%0D%0A%0D%0A%0D%0AThis%20will%20automa" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/integrating-gravatars-into-punbb-forums/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;title=Integrating+Gravatars+into+PunBB+forums" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Integrating+Gravatars+into+PunBB+forums+-+http://b2l.me/jg4qw+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/integrating-gravatars-into-punbb-forums/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/integrating-gravatars-into-punbb-forums/&amp;bm_description=Integrating+Gravatars+into+PunBB+forums&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/integrating-gravatars-into-punbb-forums/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Minimal Gray Wordpress Theme</title>
		<link>http://ianpurton.com/minimal-gray-wordpress-theme/</link>
		<comments>http://ianpurton.com/minimal-gray-wordpress-theme/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 09:13:15 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Web Marketing]]></category>
		<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://ianpurton.com/minimal-gray-wordpress-theme/</guid>
		<description><![CDATA[
Based on my SEO Wordpress Sandbox Theme I&#8217;ve created a minimal gray theme.

Features

Supports widgets
Has an embedded digg this button
Includes gravatar support

Download

Minimal Gray Wordpress Theme






		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Post this on Diigo
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Share this on Mixx
		
		
			Tweet This!
		
		
			Subscribe to the comments for this post?
		
		
			Add this [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ianpurton.com/wp-content/uploads/2008/10/minimal-and-gray.jpg" alt="" title="Screenshot" width="460" height="250" class="aligncenter size-full wp-image-10041" /></p>
<p>Based on my <a href="http://ianpurton.com/seo-wordpress-sandbox-theme/">SEO Wordpress Sandbox Theme</a> I&#8217;ve created a minimal gray theme.</p>
<p><span id="more-10034"></span></p>
<h2>Features</h2>
<ol>
<li>Supports widgets</li>
<li>Has an embedded digg this button</li>
<li>Includes gravatar support</li>
</ol>
<h2>Download</h2>
<div class="download">
<p><a href="http://ianpurton.com/wp-content/uploads/2008/10/minimal-and-gray2.zip">Minimal Gray Wordpress Theme</a></p>
</div>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme&amp;desc=%0A%0ABased%20on%20my%20SEO%20Wordpress%20Sandbox%20Theme%20I%27ve%20created%20a%20minimal%20gray%20theme.%0A%0AFeatures%0A%0A%0ASupports%20widgets%0AHas%20an%20embedded%20digg%20this%20button%0AIncludes%20gravatar%20support%0A%0A%0ADownload%0A%0AMinimal%20Gray%20Wordpress%20Theme" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/minimal-gray-wordpress-theme/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;title=Minimal+Gray+Wordpress+Theme" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Minimal+Gray+Wordpress+Theme+-+http://b2l.me/jg4qx+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/minimal-gray-wordpress-theme/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/minimal-gray-wordpress-theme/&amp;bm_description=Minimal+Gray+Wordpress+Theme&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/minimal-gray-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to make really sexy buttons with CSS</title>
		<link>http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/</link>
		<comments>http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:24:01 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/</guid>
		<description><![CDATA[I&#8217;ve been using the How to make sexy buttons with CSS technique for easily adding good looking buttons to a web application and found I could Jazz them up a little by using the free icons from FamFamFam Silk.

Below are the old style buttons.

And next are the new buttons.

Basically all I&#8217;m doing is adding a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the <a href="http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html">How to make sexy buttons with CSS</a> technique for easily adding good looking buttons to a web application and found I could Jazz them up a little by using the free icons from <a href="http://famfamfam.com/lab/icons/silk/">FamFamFam Silk</a>.</p>
<p><span id="more-10030"></span></p>
<p>Below are the old style buttons.</p>
<p><a href='http://ianpurton.com/wp-content/uploads/2008/09/old-buttons.PNG' title='Old Buttons'><img src='http://ianpurton.com/wp-content/uploads/2008/09/old-buttons.PNG' alt='Old Buttons' /></a></p>
<p>And next are the new buttons.</p>
<p><a href='http://ianpurton.com/wp-content/uploads/2008/09/new-buttons.PNG' title='New Bottons'><img src='http://ianpurton.com/wp-content/uploads/2008/09/new-buttons.PNG' alt='New Bottons' /></a></p>
<p>Basically all I&#8217;m doing is adding a relevant icon against the link and pushing the text a little more to the left.</p>
<h2>The HTML Markup</h2>
<p>The HTML markup is similar to oscars with the addition of an image tag pointing to a famfamfam icon.</p>
<p><script src="http://gist.github.com/319631.js?file=gistfile1.htm"></script></p>
<h2>The CSS Styling</h2>
<p>This is directly copied over from Oscar&#8217;s implementation with a couple of changes.</p>
<p><script src="http://gist.github.com/319630.js?file=gistfile1.css"></script></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS&amp;desc=I%27ve%20been%20using%20the%20How%20to%20make%20sexy%20buttons%20with%20CSS%20technique%20for%20easily%20adding%20good%20looking%20buttons%20to%20a%20web%20application%20and%20found%20I%20could%20Jazz%20them%20up%20a%20little%20by%20using%20the%20free%20icons%20from%20FamFamFam%20Silk.%0D%0A%0D%0ABelow%20are%20the%20old%20style%20buttons.%0D%0A%0D%0A%0D%0A%0D%0AAnd%20next%20are%20the%20new%20buttons.%0D%0A%0D%0A%0D%0A%0D%0ABasically%20a" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;title=How+to+make+really+sexy+buttons+with+CSS" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+to+make+really+sexy+buttons+with+CSS+-+http://b2l.me/jg4qy+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/&amp;bm_description=How+to+make+really+sexy+buttons+with+CSS&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/how-to-make-really-sexy-buttons-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create Javascript Catfish Sliding Promotions</title>
		<link>http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/</link>
		<comments>http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 14:40:53 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Marketing]]></category>

		<guid isPermaLink="false">http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/</guid>
		<description><![CDATA[An effective way to advertise or promote a product is the Catfish pop-up, so
called because it lies on the bottom of the browser. Less annoying than fullblown pop-ups and to me much better than adverising embedded within content. I&#8217;ve mocked up two example pages a transparency example and an example form.

Sitepoint
As far as I know [...]]]></description>
			<content:encoded><![CDATA[<p>An effective way to advertise or promote a product is the Catfish pop-up, so<br />
called because it lies on the bottom of the browser. Less annoying than fullblown pop-ups and to me much better than adverising embedded within content. I&#8217;ve mocked up two example pages a <a href="http://ianpurton.com/catfish/transparency-test.html" title="transparency example">transparency example</a> and an <a href="http://ianpurton.com/catfish/form-test.html" title="example form">example form</a>.</p>
<p><span id="more-10029"></span></p>
<h2>Sitepoint</h2>
<p>As far as I know catfish pop-ups were first implemented on <a href="http://www.sitepoint.com" title="Sitepoint">Sitepoint</a> and detailed in <a href="http://www.sitepoint.com/blogs/2005/10/18/the-catfish-part-1/" title="The Catfishâ€”Part 1">The Catfishâ€”Part 1</a> and <a href="http://www.sitepoint.com/blogs/2005/10/21/catfish-ads-part-2/" title="Set Us Up The Catfishâ€”Part 2: SlideMe">Set Us Up The Catfishâ€”Part 2: SlideMe</a> articles.
</p>
<h2>My Implementation</h2>
<p>I&#8217;ve enhanced (re-written) the implementation to use an <a href="http://www.w3schools.com/tags/tag_iframe.asp" title="iframe">iframe</a> so instead of embedding the promotion within your main content (The Sitepoint implementation uses a <em>div</em> at the bottom of the markup), you can place the promotion code in a separate HTML file.</p>
<p>An iframe will also help the page load faster and the javascript is light at &lt;5kb (&lt;3kb for non IE6) not including the size of your iframe content.</p>
<p>The <em>iframe</em> will allow you to use forms within your promotion which will act independently of your main content; your promotion could be on another site altogether.</p>
<h2>Usage</h2>
<p>The <a href="http://ianpurton.com/catfish/catfish.zip">download</a> (zip) contains the examples from above and implementing your own catfish should be fairly straight forward. I&#8217;ve tried to make the amount of markup you need to add to a page as lightweight as possible but the minimum I&#8217;ve been able to get it down to is the code example below. IE6 does not support the CSS style <a href="http://www.cssplay.co.uk/layouts/fixed.html" title="position:fixed">position:fixed</a>, so a workaround had to be introduced.</p>
<h2>The Markup</h2>
<p>Place the following between your &lt;head&gt; tags.</p>
<div class="code">&lt;!&#8211;[if lt IE 7]&gt;&lt;script defer type=&#8221;text/javascript&#8221; src=&#8221;catfish/iehack.js&#8221;&gt;&lt;/script&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;catfish/iehack.css&#8221; type=&#8221;text/css&#8221;/&gt;&lt;![endif]&#8211;&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;catfish/catfish.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;catfish(&#8217;form-test/popup.html&#8217;,100);&lt;/script&gt;</div>
<p>There&#8217;s some conditional code here to get it to work in IE also note the use of the <a href="http://www.websiteoptimization.com/speed/tweak/defer/" title="script defer">script defer</a> which is a way of getting IE to delay script execution until the DOM has formed.</p>
<h2>Calling catfish()</h2>
<p>You can call catfish and configure all the options (from the 4th line in the markup above).</p>
<div class="code">catfish(url, height_in_px, start_delay_in_ms, speed_in_ms, increment_in_px);</div>
<p>or, allow the script to default the scrolling speed and delay for you.</p>
<div class="code">catfish(url, height_in_px);</div>
<table>
<tr>
<th width="50%">Parameter</th>
<th width="50%">Description</th>
</tr>
<tr>
<td>
        url
      </td>
<td>
        The url of the content you wish to display.
      </td>
</tr>
<tr>
<td>
        height_in_px
      </td>
<td>
        The height of the content.
      </td>
</tr>
<tr>
<td>
        start_delay_in_ms
      </td>
<td>
        The number of milliseconds before the content starts to scroll into<br />
        view. (default is 2000ms)
      </td>
</tr>
<tr>
<td>
        speed_in_ms
      </td>
<td>
        The time in milliseconds before the content is moved increment_in_px<br />
        pixels. (default is 25ms).
      </td>
</tr>
<tr>
<td>
        increment_in_px
      </td>
<td>
        The number of pixels the content is moved every speed_in_ms<br />
        milliseconds. (default is 5px)
      </td>
</tr>
</table>
<h2>Closing options</h2>
<p>You have two options when allowing the user to close the catfish temporary or permanent, temporary will re-open the catfish when the user refreshes the page or goes to another page with a catfish.</p>
<p>Permanent will set a cookie and not re-open the catfish for that user (unless they clean out their cookies).</p>
<p>Temporary close markup for your catfish :-</p>
<div class="code">&lt;a href=&#8221;#&#8221; onclick=&#8221;parent.document.catfish_close();return false;&#8221; id=&#8221;closeme&#8221;&gt;Close this&lt;/a&gt;</div>
<p>Permanent close markup :-</p>
<div class="code">&lt;a href=&#8221;#&#8221; onclick=&#8221;parent.document.catfish_lock();parent.document.catfish_close();return<br />
false;&#8221; id=&#8221;closeme&#8221;&gt;Don&#8217;t show me this again&lt;/a&gt;</div>
<h2>And Finally</h2>
<p>I&#8217;ve only been able to test the implementation on IE6 and Firefox, if someone could let me know how well it runs on Safari and Opera that would be great.</p>
<p>If you do implement some catfish pop-ups please let me know so I can add a few more examples to this article.</p>
<div class="download">
<p><a href="http://ianpurton.com/catfish/catfish.zip">Download catfish.zip</a></p>
</div>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions&amp;desc=An%20effective%20way%20to%20advertise%20or%20promote%20a%20product%20is%20the%20Catfish%20pop-up%2C%20so%0Acalled%20because%20it%20lies%20on%20the%20bottom%20of%20the%20browser.%20Less%20annoying%20than%20fullblown%20pop-ups%20and%20to%20me%20much%20better%20than%20adverising%20embedded%20within%20content.%20I%27ve%20mocked%20up%20two%20example%20pages%20a%20transparency%20example%20and%20an%20example" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;title=How+to+Create+Javascript+Catfish+Sliding+Promotions" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+to+Create+Javascript+Catfish+Sliding+Promotions+-+http://b2l.me/jg4qz+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/&amp;bm_description=How+to+Create+Javascript+Catfish+Sliding+Promotions&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/how-to-create-javascript-catfish-sliding-promotions/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Helper to Display Rails Flash Messages</title>
		<link>http://ianpurton.com/helper-to-display-rails-flash-messages/</link>
		<comments>http://ianpurton.com/helper-to-display-rails-flash-messages/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 14:30:19 +0000</pubDate>
		<dc:creator>Ian Purton</dc:creator>
				<category><![CDATA[Webmastering]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://ianpurton.com/helper-to-display-rails-flash-messages/</guid>
		<description><![CDATA[A simple code snippet for displaying your flash[:warning] = "Warning Message" messages in rails.

Add the following to your application_helper.rb.

To show all messages place this code in your view (rhtml).

Also here&#8217;s some CSS to style the messages.






		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Post this on Diigo
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on [...]]]></description>
			<content:encoded><![CDATA[<p>A simple code snippet for displaying your <code>flash[:warning] = "Warning Message"</code> messages in rails.</p>
<p><span id="more-6"></span></p>
<p>Add the following to your application_helper.rb.<br />
<script src="http://gist.github.com/319607.js?file=gistfile1.rb"></script></p>
<p>To show all messages place this code in your view (rhtml).</p>
<p><script src="http://gist.github.com/319610.js?file=gistfile1.rhtml"></script></p>
<p>Also here&#8217;s some <strong>CSS</strong> to style the messages.</p>
<p><script src="http://gist.github.com/319611.js?file=gistfile1.css"></script></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages&amp;desc=A%20simple%20code%20snippet%20for%20displaying%20your%20flash%5B%3Awarning%5D%20%3D%20%22Warning%20Message%22%20messages%20in%20rails.%0D%0A%0D%0A%0D%0A%0D%0AAdd%20the%20following%20to%20your%20application_helper.rb.%0D%0A%0D%0A%0D%0ATo%20show%20all%20messages%20place%20this%20code%20in%20your%20view%20%28rhtml%29.%0D%0A%0D%0A%0D%0A%0D%0AAlso%20here%27s%20some%20CSS%20to%20style%20the%20messages.%0D%0A%0D%0A" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://ianpurton.com/helper-to-display-rails-flash-messages/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;title=Helper+to+Display+Rails+Flash+Messages" rel="nofollow" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Helper+to+Display+Rails+Flash+Messages+-+http://b2l.me/jg4q2+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://ianpurton.com/helper-to-display-rails-flash-messages/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://ianpurton.com/helper-to-display-rails-flash-messages/&amp;bm_description=Helper+to+Display+Rails+Flash+Messages&amp;plugin=sexybookmarks" rel="nofollow" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://ianpurton.com/helper-to-display-rails-flash-messages/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
