<?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>without-brains.net</title>
	<atom:link href="http://www.without-brains.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.without-brains.net</link>
	<description>A software developer&#039;s blog</description>
	<lastBuildDate>Wed, 17 Feb 2010 20:56:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using VirtualBox as your personal server</title>
		<link>http://www.without-brains.net/archives/247</link>
		<comments>http://www.without-brains.net/archives/247#comments</comments>
		<pubDate>Wed, 17 Feb 2010 20:55:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Software development]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=247</guid>
		<description><![CDATA[VirtualBox is an open source virtualization program (for those of you that don&#8217;t know what that means: simply put it is a computer program that can emulate other computers within your own computer). One of the things that I use it for is to run my personal development and testing servers within my own workstation [...]]]></description>
			<content:encoded><![CDATA[<p><a title="VirtualBox website" href="http://www.virtualbox.org/">VirtualBox</a> is an open source virtualization program (for those of you that don&#8217;t know what that means: simply put it is a computer program that can emulate other computers within your own computer). One of the things that I use it for is to run my personal development and testing servers within my own workstation that don&#8217;t exist to the outside world. You don&#8217;t have the mess of dual boot, nor do you have the need for lots of additional hardware for your development and testing setups!<span id="more-247"></span></p>
<p>To be able to develop and test on such a VM I generally require it to be available as if it is on the network (per example via SSH, or my browser). Assuming that you have installed VirtualBox and that you know how to setup a VM already, I&#8217;ll briefly explain the specifics of setting up a VM that you can access as if it were on the network:</p>
<ul>
<li>When creating the VM give it two network adapters.
<ul>
<li>Adapter 1 setup as &#8220;NAT&#8221;, this gives the VM access to whatever network your computer is connected. This includes the internet if you&#8217;re connected to it, which can be useful to download OS updates or applications inside your VM (I often have VMs running Ubuntu, and the NAT adapter allows me to use apt painlessly).</li>
<li>Adapter 2 setup as &#8220;VirtualBox Host-Only Ethernet Adapter&#8221;. This gives the VM an IP address within a private range, that only exists within your own computer.</li>
</ul>
</li>
</ul>
<p>When installing an OS on your VM, it is useful to give the it a static IP address for adapter 2. Having a static IP for each VM will allow you to connect to it using bookmarks instead of having to check what the IP of each VM is after it has started. Note that you do have to adhere to the IP range defined in the VirtualBox preferences for the host only adapter. You can find this information via the menu: go to &#8220;File&#8221; -&gt; &#8220;Preferences&#8221;, go to the &#8220;Network&#8221; section and double-click on the host only adapter entry to get a popup where you can see/configure the network range and the DHCP server settings (you probably want to ensure that your static IPs cannot be given out by the host only adapter&#8217;s DHCP server).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/247/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgraded to WordPress 2.9.2</title>
		<link>http://www.without-brains.net/archives/279</link>
		<comments>http://www.without-brains.net/archives/279#comments</comments>
		<pubDate>Wed, 17 Feb 2010 20:12:05 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=279</guid>
		<description><![CDATA[I have upgraded without-brains.net to WordPress 2.9.2  
]]></description>
			<content:encoded><![CDATA[<p>I have upgraded without-brains.net to <a title="WordPress website" href="http://www.wordpress.org">WordPress</a> 2.9.2 <img src='http://www.without-brains.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/279/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text editors, Emacs vs Vim</title>
		<link>http://www.without-brains.net/archives/259</link>
		<comments>http://www.without-brains.net/archives/259#comments</comments>
		<pubDate>Tue, 16 Feb 2010 21:02:34 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Text editors]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=259</guid>
		<description><![CDATA[Over the years I have used numerous programming editors and IDE (integrated development environment) programs. At the beginning of this year I decided that it was time to pick one text editor and master it. I decided to take a look at two long time players on the text editing field that are available on most platforms [...]]]></description>
			<content:encoded><![CDATA[<p>Over the years I have used numerous programming editors and IDE (integrated development environment) programs. At the beginning of this year I decided that it was time to pick one text editor and master it. I decided to take a look at two long time players on the text editing field that are available on most platforms and then choose one to master&#8230; I am talking about <a title="Emacs" href="http://www.gnu.org/software/emacs">Emacs</a> and <a title="Vim" href="http://www.vim.org">Vim</a>. <span id="more-259"></span></p>
<p>I started by reading online resources on both editors, and buying and reading a PDF book on each editor from<a href="http://oreilly.com"> O&#8217;Reilly</a>. The books I bought are: <a href="http://oreilly.com/catalog/9780596006488/">Learning GNU Emacs</a> and <a href="http://oreilly.com/catalog/9780596529833/">Leaning the Vi and Vim Editors</a>. I found both books informative and pleasant reads.</p>
<p>As I went on I found that both editors more or less have the same capabilities (and extremely extensible, Vim through Vimscript and Emacs through Lisp), and that choosing between them really is a matter of personal preference. I settled for Vim as my editor of choice, below are a couple of reasons why:</p>
<ul>
<li>I prefer Vim&#8217;s modal editing (It is possible to achieve this in Emacs as well, if you really want it&#8230;)</li>
<li>Vim has less things that I don&#8217;t need than Emacs does (Emacs has a calendar and a set of mini games per example).</li>
<li>One of my colleagues at work also uses Vim (and because we both use it, we can share Vimmy things, such as Vim scripts and macros)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/259/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgraded to WordPress 2.9.1</title>
		<link>http://www.without-brains.net/archives/260</link>
		<comments>http://www.without-brains.net/archives/260#comments</comments>
		<pubDate>Tue, 05 Jan 2010 20:27:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=260</guid>
		<description><![CDATA[I have upgraded without-brains.net to WordPress 2.9.1  
]]></description>
			<content:encoded><![CDATA[<p>I have upgraded without-brains.net to <a title="WordPress website" href="http://www.wordpress.org">WordPress</a> 2.9.1 <img src='http://www.without-brains.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/260/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Upgraded to WordPress 2.9</title>
		<link>http://www.without-brains.net/archives/254</link>
		<comments>http://www.without-brains.net/archives/254#comments</comments>
		<pubDate>Mon, 21 Dec 2009 15:28:18 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=254</guid>
		<description><![CDATA[I&#8217;ve painlessly upgraded without-brains.net to WordPress 2.9, kudos to WordPress team for providing such an easy upgrade procedure.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve painlessly upgraded without-brains.net to WordPress 2.9, kudos to WordPress team for providing such an <a title="WordPress upgrading procedure" href="http://codex.wordpress.org/Upgrading_WordPress">easy upgrade procedure</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/254/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linode expands into Europe!</title>
		<link>http://www.without-brains.net/archives/200</link>
		<comments>http://www.without-brains.net/archives/200#comments</comments>
		<pubDate>Tue, 08 Dec 2009 11:04:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linode]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=200</guid>
		<description><![CDATA[Good news for Linode customers that want their data hosted in Europe, as Linode announced that they&#8217;ve opened a datacenter in London. Read their blog article here for more information  
]]></description>
			<content:encoded><![CDATA[<p>Good news for <a title="Linode website" href="http://www.linode.com">Linode </a>customers that want their data hosted in Europe, as Linode announced that they&#8217;ve opened a datacenter in London. Read their <a title="Linode blog" href="http://blog.linode.com/2009/12/07/linode-expands-into-europe/">blog article here</a> for more information <img src='http://www.without-brains.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/200/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Ubuntu server to Karmic on Linode</title>
		<link>http://www.without-brains.net/archives/189</link>
		<comments>http://www.without-brains.net/archives/189#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:16:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=189</guid>
		<description><![CDATA[Upgrading Ubuntu server 9.04 (Jaunty) to 9.10 (Karmic) on Linode is a breeze. Simply change the kernel to the latest available version in the Linode manager, reboot your Linode, logon to the Linode shell (to get console access to your Linode), update your packages to the latest versions (apt-get update and apt-get upgrade) and install [...]]]></description>
			<content:encoded><![CDATA[<p>Upgrading <a title="Ubuntu website" href="http://www.ubuntu.com/">Ubuntu</a> server 9.04 (Jaunty) to 9.10 (Karmic) on <a title="Linode" href="http://www.linode.com">Linode</a> is a breeze. Simply change the kernel to the latest available version in the Linode manager, reboot your Linode, logon to the Linode shell (to get console access to your Linode), update your packages to the latest versions (apt-get update and apt-get upgrade) and install the update-manager-core package (apt-get install update-manager-core) and then perform do-release-upgrade (as described <a title="Ubuntu website" href="http://www.ubuntu.com/getubuntu/upgrading#Network Upgrade for Ubuntu Servers (Recommended)">here</a>).<span id="more-189"></span></p>
<p>Before you attempt such an upgrade yourself, be sure to make a backup of your Linode. If you have enough diskspace left with Linode, the easy way is to resize the image that you&#8217;re using for your server and then duplicate it. Alternatively you can download a copy of the image (which can be quite time consuming, depending on the size).</p>
<p>The Linode manager makes it easy to use different disk images with your Linode, so if you mess up then you can switch to the backup image and revert to the situation before the upgrade. Kudos to Linode for offering such an excellent service with such excellent tools!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/189/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Issue while upgrading Rails from 2.1.2 to 2.3.4</title>
		<link>http://www.without-brains.net/archives/157</link>
		<comments>http://www.without-brains.net/archives/157#comments</comments>
		<pubDate>Sun, 29 Nov 2009 18:34:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=157</guid>
		<description><![CDATA[At work we recently upgraded from Rails 2.1.2 to Rais 2.3.4. Lots of good improvements in 2.3.4, my compliments to everyone who made the new release possible!
The upgrade was relatively problem free, the only real issue that we ran into was that somewhere in between 2.1.2 and 2.3.4 the *_tag helpers (text_field_tag and such) have [...]]]></description>
			<content:encoded><![CDATA[<p>At work we recently upgraded from Rails 2.1.2 to Rais 2.3.4. Lots of good improvements in 2.3.4, my compliments to everyone who made the new release possible!</p>
<p>The upgrade was relatively problem free, the only real issue that we ran into was that somewhere in between 2.1.2 and 2.3.4 the *_tag helpers (text_field_tag and such) have started behaving slightly different in relation to element ids. These helper methods now call the undocumented sanitize_to_id method, which cleans up the element ids by getting rid of characters such as [ and ] and putting in underscores instead.<span id="more-157"></span> While this is a good change (the form_for helpers were already converting the field names to such element ids, so this change makes the helpers more consistent), it was unexpected (I have not seen any documentation referencing it, not in the 2.2 or 2.3 release notes). This changed a lot of ids in web forms that we were using, and it broke a fair bit of custom Javascript which we had to repair.</p>
<p>So, if you&#8217;re upgrading Rails from 2.1.2 or older to 2.3.4 ensure that you check your views for custom Javascript to ensure that any fields generated by the *_tag helper methods that are being referenced with Javascript are referenced properly.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/157/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPN in Ubuntu 9.10</title>
		<link>http://www.without-brains.net/archives/165</link>
		<comments>http://www.without-brains.net/archives/165#comments</comments>
		<pubDate>Sun, 29 Nov 2009 14:22:08 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=165</guid>
		<description><![CDATA[To access my work&#8217;s network from any location outside the office my employer requires me to use a VPN. In Ubuntu this does not work by default. While the network manager does have a VPN tab, all it&#8217;s buttons are greyed out. Depending on the type of VPN that you need to access you need [...]]]></description>
			<content:encoded><![CDATA[<p>To access my work&#8217;s network from any location outside the office my employer requires me to use a VPN. In Ubuntu this does not work by default. While the network manager does have a VPN tab, all it&#8217;s buttons are greyed out. Depending on the type of VPN that you need to access you need to install additional software packages.<span id="more-165"></span></p>
<p>In my case I needed to access a PPTP VPN, the package that Ubuntu has to do so is pptp-linux (if you need another type of connection you should search for the word vpn in the package manager). Installing that package does not add options to the network manager. While you could configure the VPN by hand (by editing configuration files somewhere in /etc, depending on the installed VPN client), an easier way is to install a plugin for the network manager, and then use the network manager&#8217;s GUI to configure your VPN connections and to control use of to those VPN connections. For the pptp-linux the network manager plugin package is network-manager-pptp.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/165/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making SQLite 3 work with JRuby and Rails</title>
		<link>http://www.without-brains.net/archives/132</link>
		<comments>http://www.without-brains.net/archives/132#comments</comments>
		<pubDate>Thu, 26 Nov 2009 20:49:19 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Derby]]></category>
		<category><![CDATA[JRuby]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=132</guid>
		<description><![CDATA[In my previous post I indicated that I am using Ruby on Rails and JRuby for my new blogging tool. As underlying database I have decided to go with the Rails default: SQLite. SQLite has the advantage that it is an embeddable database, so you don&#8217;t need a separate database server to use it (which [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post I indicated that I am using <a title="Ruby on Rails" href="http://www.rubyonrails.org">Ruby on Rails</a> and <a title="JRuby" href="http://www.jruby.org">JRuby</a> for my new blogging tool. As underlying database I have decided to go with the Rails default: <a title="SQLite" href="http://www.sqlite.org">SQLite</a>. SQLite has the advantage that it is an embeddable database, so you don&#8217;t need a separate database server to use it (which is very convenient when developing software). Note that when you are using JRuby you can also use <a title="Apache Derby" href="http://db.apache.org/derby/">Apache Derby</a> (which is an embeddable database written in Java) instead of SQLite if you want to.<span id="more-132"></span></p>
<p>When you use the standard version of Ruby getting SQLite support is easy, you just install the sqlite3-ruby gem (gem install sqlite3-ruby) and you&#8217;re done (you need to have the SQLite libraries and dev headers installed on your system already of course). This does not work for JRuby because the sqlite3-ruby is a native gem (containing C code with extensions on standard Ruby).</p>
<p>So how do you get SQLite to work with JRuby and Rails? Get the gems for JRuby! Assuming that you have SQLite installed on your system, you simply need to install the activerecord-jdbcsqlite3-adapter gem (this will automatically try to install the activerecord-jdbc-adapter and jdbc-sqlite3 gems if you don&#8217;t already have them). In your Rails project edit config/database.yml and change the adapter type to jdbcsqlite3 and you&#8217;re done <img src='http://www.without-brains.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There are a number of activerecord-jdbc gems available (just type &#8220;gem search &#8211;remote activerecord-jdbc&#8221; in your shell to see them), including connectors for Apache Derby, <a title="MySQL" href="http://www.mysql.com">MySQL</a> and <a title="PostgreSQL" href="http://www.postgresql.org">PostgreSQL</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
