<?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 &#187; Uncategorized</title>
	<atom:link href="http://www.without-brains.net/archives/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://www.without-brains.net</link>
	<description>A software developer&#039;s blog</description>
	<lastBuildDate>Wed, 08 Sep 2010 20:26:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Upgrade done to WordPress 3.0.1</title>
		<link>http://www.without-brains.net/archives/386</link>
		<comments>http://www.without-brains.net/archives/386#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:26:37 +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=386</guid>
		<description><![CDATA[I&#8217;ve updated the website to use WordPress 3.0.1, the upgrade was fairly easy (a few plugin issues aside). Thanks for the awesome work WordPress team!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the website to use WordPress 3.0.1, the upgrade was fairly easy (a few plugin issues aside). Thanks for the awesome work WordPress team!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/386/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails 3 and UJS</title>
		<link>http://www.without-brains.net/archives/368</link>
		<comments>http://www.without-brains.net/archives/368#comments</comments>
		<pubDate>Wed, 08 Sep 2010 18:16:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[UJS]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=368</guid>
		<description><![CDATA[On August the 29th Ruby on Rails 3 was been released, the Rails team has made a series of screencasts available about the changes in Rails 3 here. Ryan Bates also made a series of screencasts about Rails 3 on &#8230; <a href="http://www.without-brains.net/archives/368">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On August the 29th <a title="Ruby on Rails" href="http://rubyonrails.org/">Ruby on Rails</a> 3 was been released, the Rails team has made a series of screencasts available about the changes in Rails 3 <a title="Rails 3 screencasts" href="http://rubyonrails.org/screencasts/rails3">here</a>. Ryan Bates also made a series of screencasts about Rails 3 on Railscasts.com <a title="Railscasts Rails 3 screencasts" href="http://railscasts.com/tags/27">here</a>. Let me start this article by thanking everyone for their hard work on Ruby on Rails 3, it&#8217;s a fantastic release!</p>
<p>Now to dive into the subject of this article, one of the new features in Rails 3 that I really like is the use of UJS (Unobtrusive JavaScript) taking away all the inline Javascript that was generated by Rails inline within your HTML. UJS has many advantages over inline Javascript, the main advantages in my opinion being that Javascript is now no longer treated as a second class citizen, more easily managed (because it isn&#8217;t all over the place anymore) and that it makes it easier to build pages that work with and without Javascript.<span id="more-368"></span></p>
<p>For those of us that have been using the existing AJAX functionality in Rails 1 and Rails 2 it involves a bit of work. Helper methods such as link_to_remote and remote_form_for have been taken away, instead you now specify :remote =&gt; true as part of the options to the helpers that they were AJAX alternates for (such as link_to and form_for). Specifying the :remote =&gt; true option adds a custom attribute to the tag: data-remote=&#8221;true&#8221;. Javascript event observing is used to properly trigger the AJAX requests on click or submit (depending on which helper it&#8217;s being used on). If you take a look at the file public/javascripts/rails.js you&#8217;ll see how it works exactly (assuming that you understand Javascript and the <a title="Prototype Javascript framework" href="http://prototypejs.org">Prototype</a> framework).</p>
<p><a title="Railscast 205" href="http://railscasts.com/episodes/205-unobtrusive-javascript"></a></p>
<p>The standard callbacks that used to exist as part of the remote functions are now gone too (you could pass in options such as :success, :failure, :before, :after, etc.), instead you will have to program them in Javascript. One of the upsides is that you can specify global behavior for all your AJAX requests by observing the &#8220;ajax:*&#8221; events (public/javascript/rails.js details which ones are fired). This can be incredibly useful per example when you want to show a spinner for your AJAX requests, you simply observe the &#8220;ajax:before&#8221; and &#8220;ajax:after&#8221; to show and hide the spinner in application.js (making this behavior available on all your pages instantly, very DRY!). You could even influence the behavior for each AJAX request with additional custom data attributes (per example the id of the spinner to show and hide).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/368/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PPTP VPN in Ubuntu 10.04</title>
		<link>http://www.without-brains.net/archives/366</link>
		<comments>http://www.without-brains.net/archives/366#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:34:33 +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=366</guid>
		<description><![CDATA[A while back I posted an article on how to setup a PPTP VPN connection in Ubuntu 9.10, in Ubuntu 10.04 these packages are available by default (and these are now supported packages).]]></description>
			<content:encoded><![CDATA[<p>A while back I posted an article on <a title="Article on PPTP VPN with Ubuntu 9.10" href="http://www.without-brains.net/archives/165">how to setup a PPTP VPN connection in Ubuntu 9.10</a>, in Ubuntu 10.04 these packages are available by default (and these are now supported packages).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/366/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim tip: Platform specific settings in your vimrc</title>
		<link>http://www.without-brains.net/archives/362</link>
		<comments>http://www.without-brains.net/archives/362#comments</comments>
		<pubDate>Sun, 30 May 2010 17:44:41 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=362</guid>
		<description><![CDATA[If you use Vim on multiple platforms like I do, you may find it convenient to know that you can detect the platform your installation Vim was compiled for in Vimscript. With this functionality you can put all your settings &#8230; <a href="http://www.without-brains.net/archives/362">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you use Vim on multiple platforms like I do, you may find it convenient to know that you can detect the platform your installation Vim was compiled for in Vimscript. With this functionality you can put all your settings for all your systems in a single vimrc file. <span id="more-362"></span>Below is a part of my vimrc file, when in Windows I have a  different backup and temp dir for Vim than I have in Linux and UNIX.  Additionally I use PuTTY&#8217;s SCP and SFTP executables (as Windows doesn&#8217;t have such commands available).</p>
<pre>if has('win16') || has('win32') || has('win64') || has('win95')
 " Windows specific settings
 " Backup and swap file directories
 set bdir=~/vimbackups
 set dir=~/Temp
 " Use PuTTY SSH programs (Must be installed separately)
 let g:netrw_scp_cmd = 'pscp.exe -q -batch -agent'
 let g:netrw_sftp_cmd= 'psftp.exe'
 " When using SCP ensure that you don't get prompting DOS windows
 let g:netrw_silent= 1
else
 " *nix specific settings
 " Backup and swap file directories
 set bdir=~/.vimbackups
 set dir=~/.vimtmp
endif
</pre>
<p>Happy Vimming!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/362/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim tip: Visual block editing</title>
		<link>http://www.without-brains.net/archives/338</link>
		<comments>http://www.without-brains.net/archives/338#comments</comments>
		<pubDate>Fri, 14 May 2010 18:32:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=338</guid>
		<description><![CDATA[One of the features I find very convenient in Vim editing in visual blocks. With CTRL+V (while in normal mode) you can activate the visual block mode, by using the standard movement keys (h, j, k, l or the arrow &#8230; <a href="http://www.without-brains.net/archives/338">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the features I find very convenient in Vim editing in visual blocks.</p>
<p>With CTRL+V (while in normal mode) you can activate the visual block mode, by using the standard movement keys (h, j, k, l or the arrow keys). You can perform various operations on visual blocks (check the help with :help v), in this article I will describe how you can prepend or append text to a block.<span id="more-338"></span></p>
<p>After selecting your block you can press SHIFT+i to start inserting before every line of the block, after you type what you want to insert hit the ESC key to apply the insert to all the lines. The below images show you how this would work:</p>
<div id="attachment_345" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim1.png"><img class="size-medium wp-image-345" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim1-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Visual mode active, selected a block</p></div>
<div id="attachment_346" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim2.png"><img class="size-medium wp-image-346" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim2-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Insert mode activated (using SHIFT+i) and typed a &quot;</p></div>
<div id="attachment_347" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim3.png"><img class="size-medium wp-image-347" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim3-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Hit the ESC key to apply the insert</p></div>
<p>To append instead you can press SHIFT+a instead of SHIFT+i, the mechanism is exactly the  same:</p>
<div id="attachment_349" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim4.png"><img class="size-medium wp-image-349" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim4-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Visual mode active, selected a block</p></div>
<div id="attachment_350" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim5.png"><img class="size-medium wp-image-350" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim5-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Append mode activated (using SHIFT+a) and typed a &quot;</p></div>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim6.png"><img class="size-medium wp-image-351" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim6-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Hit the ESC key to apply the append</p></div>
<p>As you can see in the above example white space is appended to Dog and Cat, because these words are shorter than Bird. If you don&#8217;t want that white space you can use CTRL+V $ instead of CTRL+V to activate visual mode:</p>
<div id="attachment_352" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim7.png"><img class="size-medium wp-image-352" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim7-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Visual mode active, selected a block</p></div>
<div id="attachment_353" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim8.png"><img class="size-medium wp-image-353" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim8-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Append mode activated (using SHIFT+a) and typed a &quot;</p></div>
<div id="attachment_354" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/05/vim9.png"><img class="size-medium wp-image-354" title="Vim" src="http://www.without-brains.net/wp-content/uploads/2010/05/vim9-300x53.png" alt="Vim" width="300" height="53" /></a><p class="wp-caption-text">Hit ESC to apply the append</p></div>
<p>As noted earlier in the article there are more thing that you can do with visual mode in vim, you can read about it in Vim&#8217;s help using &#8220;:help v&#8221;.</p>
<p>Happy Vimming!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Windows Vista using a USB flash drive</title>
		<link>http://www.without-brains.net/archives/332</link>
		<comments>http://www.without-brains.net/archives/332#comments</comments>
		<pubDate>Tue, 11 May 2010 17:49:09 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=332</guid>
		<description><![CDATA[It&#8217;s fairly simple to create a USB flash drive that can be used to boot a computer and install Windows Vista (assuming that the computer that you want to install on can boot from a USB flash drive). To get &#8230; <a href="http://www.without-brains.net/archives/332">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s fairly simple to create a USB flash drive that can be used to boot a computer and install Windows Vista (assuming that the computer that you want to install on can boot from a USB flash drive). To get your USB flash drive ready you need the following:</p>
<ul>
<li>USB flash drive of the appropriate size (I used a 6GB drive)</li>
<li>Windows Vista install DVD</li>
<li>Computer that has Windows Vista installed, a DVD drive and has a free USB slot (for use with the USB flash drive)</li>
</ul>
<p><span id="more-332"></span>Open the command prompt on the computer that is already running Windows Vista (cmd.exe) and start &#8220;diskpart&#8221; (Yes, Windows XP also has diskpart, however the version I had on my XP box didn&#8217;t allow me to make flash drives bootable). diskpart gives you it&#8217;s own command prompt, identify the flash drive by typing &#8220;list disk&#8221;. Once you have determined which disk is the flash drive type &#8220;select disk x&#8221;, where x is the number in the list returned by diskpart. Type the following commands:</p>
<ul>
<li>clean</li>
<li>create partition primary</li>
<li>select partition 1</li>
<li>active</li>
<li>format fs=fat32</li>
<li>assign</li>
<li>exit</li>
</ul>
<p>The above commands will remove any existing partitions from the selected disk (which is why it is important that you are absolutely certain that you selected the correct disk, if you mess this up any data that was on the drive is gone!), create a new primary partition, make it bootable, format it as a FAT32 disk, assign it a drive letter, and then exit the diskpart program.</p>
<p>Open Windows explorer to identify what drive letter the USB flash drive now has. Insert the Windows Vista installation DVD in your DVD drive. Go back to the command prompt and type the following command: &#8220;xcopy x:\*.* /s /e /f y:\&#8221; (where x is the drive letter of your DVD drive and y is the drive letter of your USB flash drive). Once the xcopy command is complete your USB flash drive is ready!</p>
<p>Note: When installing Windows Vista on a computer with multiple hard drives Windows Vista will refuse to install on any other disk than the first (in my experience at least).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/332/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing software in your home directory</title>
		<link>http://www.without-brains.net/archives/322</link>
		<comments>http://www.without-brains.net/archives/322#comments</comments>
		<pubDate>Tue, 11 May 2010 07:59:56 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=322</guid>
		<description><![CDATA[Installing software in your home directory is not an uncommon practice for Linux users. In Ubuntu 10.04 you can easily software that you installed in your home directory (or anywhere else for that matter) to your menus in Gnome, by &#8230; <a href="http://www.without-brains.net/archives/322">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Installing software in your home directory is not an uncommon practice for Linux users. In Ubuntu 10.04 you can easily software that you installed in your home directory (or anywhere else for that matter) to your menus in Gnome, by using the option &#8220;Main Menu&#8221; under System -&gt; Preferences.<span id="more-322"></span></p>
<p><a href="http://www.without-brains.net/wp-content/uploads/2010/05/Screenshot-Main-Menu.png"><img class="aligncenter size-medium wp-image-324" title="Main Menu" src="http://www.without-brains.net/wp-content/uploads/2010/05/Screenshot-Main-Menu-300x235.png" alt="&quot;Main Menu&quot; preferences screen" width="300" height="235" /></a></p>
<p>Click on any of the existing menus and then click on the &#8220;New Item&#8221; button:</p>
<p><a href="http://www.without-brains.net/wp-content/uploads/2010/05/Screenshot-Create-Launcher.png"><img class="aligncenter size-medium wp-image-325" title="Create Launcher" src="http://www.without-brains.net/wp-content/uploads/2010/05/Screenshot-Create-Launcher-300x136.png" alt="Create Launcer" width="300" height="136" /></a></p>
<p>Once you&#8217;ve filled out the above fields and have clicked on the &#8220;OK&#8221; button the option will be added to your menu. You can give the option an icon by clicking the icon on the top left of the dialog (this allows you to browse for a picture to use).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/322/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting shortcut keys for executing commands in Ubuntu</title>
		<link>http://www.without-brains.net/archives/299</link>
		<comments>http://www.without-brains.net/archives/299#comments</comments>
		<pubDate>Thu, 22 Apr 2010 17:29:22 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Metacity]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=299</guid>
		<description><![CDATA[The standard Ubuntu distro comes with the Metacity window manager (Ubuntu community documentation on Metacity can be found here). Metacity&#8217;s shortcut keys are customizable, and you can change these shortcut keys and add custom shortcut keys for commands of your &#8230; <a href="http://www.without-brains.net/archives/299">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The standard Ubuntu distro comes with the <a title="Metacity at Wikipedia" href="http://en.wikipedia.org/wiki/Metacity">Metacity</a> window manager (Ubuntu community documentation on Metacity can be found <a title="Ubuntu community documentation on Metacity" href="https://help.ubuntu.com/community/Metacity">here</a>). Metacity&#8217;s shortcut keys are customizable, and you can change these shortcut keys and add custom shortcut keys for commands of your own choosing (if you&#8217;re a Windows user and want similar functionality there is a very useful open source program named <a title="AutoHotkey homepage" href="http://www.autohotkey.com/">AutoHotkey</a> that may be of use to you). Choose System -&gt; Preferences -&gt; Keyboard Shortcuts via the menu bar to run the program to maintain the shortcut keys.<span id="more-299"></span></p>
<div id="attachment_304" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts.png"><img class="size-medium wp-image-304" title="Keyboard Shortcuts screen" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-300x173.png" alt="Keyboard Shortcuts screen" width="300" height="173" /></a><p class="wp-caption-text">Keyboard Shortcuts screen</p></div>
<p>The screen that pops up should look like the one in the screenshot above. If you look through the existing shortcut keys you&#8217;ll see some useful defaults, such as &lt;Control&gt;+&lt;Alt&gt;+L to lock your screen. The keyboard shortcuts editor is user friendly, if you choose a combination that is already taken you will be warned like so:</p>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/taken_key_warning.png"><img class="size-medium wp-image-311" title="Warning dialog" src="http://www.without-brains.net/wp-content/uploads/2010/04/taken_key_warning-300x108.png" alt="Warning dialog" width="300" height="108" /></a><p class="wp-caption-text">Warning dialog</p></div>
<p>One of the programs that I tend to use a lot is the terminal, there&#8217;s a shortcut defined to run the terminal but it has no shortcut key assigned to it by default as you can see in the screenshot below:</p>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-1.png"><img class="size-medium wp-image-312" title="Run in terminal" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-1-300x173.png" alt="Run in terminal" width="300" height="173" /></a><p class="wp-caption-text">Run in terminal is disabled</p></div>
<p>You can set the shortcut key by clicking on the row, which will change the text to &#8220;New shortcut&#8230;&#8221; and then press whichever key combination that you want to use, which in my case is &lt;Control&gt;+&lt;Alt&gt;+T:</p>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-2.png"><img class="size-medium wp-image-313" title="Run in terminal set to &lt;Control&gt;+&lt;Alt&gt;+T" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-2-300x173.png" alt="Run in terminal set to &lt;Control&gt;+&lt;Alt&gt;+T" width="300" height="173" /></a><p class="wp-caption-text">Run in terminal set to ++T</p></div>
<p>Pressing &lt;Control&gt;+&lt;Alt&gt;+T now opens up a new terminal window, very convenient!</p>
<p>In addition to setting shortcut keys for existing actions, you can add your own by clicking the &#8220;Add&#8221; button, which gives the below dialog:</p>
<div id="attachment_314" class="wp-caption aligncenter" style="width: 261px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Custom-Shortcut.png"><img class="size-full wp-image-314" title="Add custom shortcut dialog" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Custom-Shortcut.png" alt="Add custom shortcut dialog" width="251" height="113" /></a><p class="wp-caption-text">Add custom shortcut dialog</p></div>
<p>Say we want to run Firefox with a shortcut key, I&#8217;ll fill in the screen like so:</p>
<div id="attachment_315" class="wp-caption aligncenter" style="width: 261px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Custom-Shortcut-1.png"><img class="size-full wp-image-315" title="Filled in custom shortcut dialog" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Custom-Shortcut-1.png" alt="Filled in custom shortcut dialog" width="251" height="113" /></a><p class="wp-caption-text">Filled in custom shortcut dialog</p></div>
<p>After clicking the &#8220;Apply&#8221; button the action is added to the category &#8220;Custom Shortcuts&#8221;:</p>
<div id="attachment_316" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-3.png"><img class="size-medium wp-image-316" title="Custom shortcut added" src="http://www.without-brains.net/wp-content/uploads/2010/04/Screenshot-Keyboard-Shortcuts-3-300x173.png" alt="Custom shortcut added" width="300" height="173" /></a><p class="wp-caption-text">Custom shortcut added</p></div>
<p>You can set shortcut keys to these new actions like standard ones. If you want to change the name of a custom shortcut key, simply click the name to get the dialog to change the name (which looks exactly like the add dialog, but with the current values pre-populated). For custom shortcuts the &#8220;Remove&#8221; button is enabled, which allows you to delete them (the default shortcuts can&#8217;t be removed). Note that custom shortcuts are removed without warning!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/299/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gvim as your default text editor in Ubuntu</title>
		<link>http://www.without-brains.net/archives/293</link>
		<comments>http://www.without-brains.net/archives/293#comments</comments>
		<pubDate>Thu, 22 Apr 2010 05:18:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=293</guid>
		<description><![CDATA[By default Ubuntu comes with gedit as it&#8217;s text editor (if you are using the standard Ubuntu version, which comes with Gnome), I however personally prefer to use vim instead. If you don&#8217;t have gvim installed yet, you can do &#8230; <a href="http://www.without-brains.net/archives/293">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By default Ubuntu comes with gedit as it&#8217;s text editor (if you are using the standard Ubuntu version, which comes with Gnome), I however personally prefer to use vim instead. If you don&#8217;t have gvim installed yet, you can do so by installing the gvim-gnome package. To make gvim your default text editor do the following:<span id="more-293"></span></p>
<ul>
<li>Right click on a text file and choose &#8220;Open with Other Application&#8221; and select gvim from the list of applications</li>
<li>Close the file that you are editing (unless you actually wanted to edit it)</li>
<li>Open a terminal and go to ~/.local/share/applications and edit the file mimeapps.list, it will look something like this:</li>
</ul>
<pre>[Added Associations]
text/plain=gedit.desktop;gvim.desktop;openoffice.org-writer.desktop;</pre>
<p>To make gvim your default simply re-order the list and put gvim.desktop as the first entry like so:</p>
<pre>[Added Associations]
text/plain=gvim.desktop;gedit.desktop;openoffice.org-writer.desktop;</pre>
<p>For these changes to take effect you will either have to restart Nautilus yourself by executing &#8220;killall nautilus&#8221; (which has the downside that your desktop will no longer work until you log out and back in), or just log out and log back in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/293/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build and release Rubygems</title>
		<link>http://www.without-brains.net/archives/286</link>
		<comments>http://www.without-brains.net/archives/286#comments</comments>
		<pubDate>Sat, 03 Apr 2010 05:48:20 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.without-brains.net/?p=286</guid>
		<description><![CDATA[Yehuda Katz wrote up an excellent description of the procedures to build and release gems on his blog. You can find it here: http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/]]></description>
			<content:encoded><![CDATA[<p>Yehuda Katz wrote up an excellent description of the procedures to build and release gems on his <a title="blog" href="http://yehudakatz.com/">blog</a>. You can find it here: <a href="http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/">http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.without-brains.net/archives/286/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
