<?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>Straw Dogs &#187; Category List @ Straw Dogs</title>
	<atom:link href="http://www.straw-dogs.co.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.straw-dogs.co.uk</link>
	<description>The Tao of Ruby, Python, and....Straw Dogs?</description>
	<lastBuildDate>Tue, 15 Nov 2011 06:47:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Macs Make Terrible Development Platforms</title>
		<link>http://www.straw-dogs.co.uk/09/17/macs-make-terrible-development-platforms/</link>
		<comments>http://www.straw-dogs.co.uk/09/17/macs-make-terrible-development-platforms/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 14:34:23 +0000</pubDate>
		<dc:creator>KingOfThisHereBlog</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/?p=642</guid>
		<description><![CDATA[Mac&#8217;s are not a panacea for programming/web development. There! I said it. I feel like an alcoholic finally admitting he has a problem. So desperate to cling to the ideal that Macs make the perfect development machines but I was kidding myself all along. As a web developer/coder I used Windows and Linux (mainly Debian, [...]]]></description>
			<content:encoded><![CDATA[<p>Mac&#8217;s are not a panacea for programming/web development. There! I said it. I feel like an alcoholic finally admitting he has a problem. So desperate to cling to the ideal that Macs make the perfect development machines but I was kidding myself all along.</p>
<div id="attachment_647" class="wp-caption alignnone" style="width: 330px"><a href="http://www.straw-dogs.co.uk/wp-content/uploads/2011/09/everyone-has-mac-loser-has-acer.jpg"><img src="http://www.straw-dogs.co.uk/wp-content/uploads/2011/09/everyone-has-mac-loser-has-acer-300x199.jpg" alt="Everyone Has a Mac" title="Everyone Has a Mac" width="320" height="210" class="size-medium wp-image-647" /></a><p class="wp-caption-text">Everyone Has a Mac</p></div>
<p>As a web developer/coder I used Windows and Linux (mainly Debian, Arch &#038; Mint) for everything. I switched to a Macbook Pro in 2008 (the first unibody model) while at home.</p>
<p>When I first got it, I loved it. It was the best thing since getting my first computer as a kid. It made web development easier and all the major scripting languages I used were installed by default.</p>
<p>But now &#8211; 3 years later I&#8217;m having doubts and here&#8217;s why:</p>
<h3>Cross platform GUI development is bad</h3>
<p>If you want to create something in Objective C you&#8217;re fine and there&#8217;s bindings for all the major languages. However, if you want to create, say, a GTK app or QT app then you&#8217;re screwed. Especially if you want to do them in Ruby or Python. Want to use Python&#8217;s wxWidgets? ok &#8211; as long as you use 32bit mode. But this will cause problems when you package it for distribution. GTK &#8211; you&#8217;ll need the buggy, messy X11 server running on the host system. A GTK app on Windows and Linux &#8216;just work&#8217; &#8211; to steal a favourite Apple phrase.</p>
<h3>MacPorts is a Mess</h3>
<p>I didn&#8217;t realise at first until I started getting numerous version conflicts between packages. MacPorts tries to make sure dependencies are kept in check but whenever I ran an update I hit numerous snags about active ports which required me to manually activate and deactivate things. There&#8217;s actually an FAQ entry about this but only for Perl. However, it doesn&#8217;t just affect Perl. I&#8217;ve had it happen with Python, Ruby, Lua, Perl and numerous others I&#8217;ve probably forgotten.</p>
<p>Lesson learnt &#8211; don&#8217;t fall into the trap of using MacPorts. You WILL regret it. It will take a while for you to notice the problems but they&#8217;ll come, especially if you want to do anything different and during upgrades.</p>
<h3>The MacPorts alternatives aren&#8217;t much better</h3>
<p>Although removing Macports solved a lot of problems there were still issues installing some libraries for Python and Ruby. The library would often recommend Macports because that was the easiest way to install it. Otherwise they&#8217;d provide difficult custom setup instructions that would invariably break numerous other things on your system. The whole phrase &#8211; &#8220;it just works&#8221; rapidly starts to lose its credibility after 2 hours trying to setup a Python library.</p>
<h3>Too many versions and conflicts</h3>
<p>There&#8217;s been so many times I&#8217;ve had the existing base installed software conflict with a MacPorts package or a binary install. I couldn&#8217;t understand why my dev web server wasn&#8217;t working. I was editing config files but nothing happened. After an hour of digging I discovered MacPorts had installed Apache as a dependency of some obscure library and I had that running instead of my usual web server &#8211; which died when it couldn&#8217;t use port 80. I&#8217;ve had the same issues with MySQL. I had the binary installed but it conflicted with a MacPorts install. I&#8217;ve got about 4 versions of Python and although virtualenv can make life easier its still a pain if you want to package anything. At one point I ran &#8220;python&#8221; on the terminal and it was version 2.5.5. Odd &#8211; I thought &#8211; Lion is meant to be 2.7. That explained that when I ran &#8220;easy_install xxx&#8221; I couldn&#8217;t access it on the Python shell. Because easy_install was installing to version 2.7 of &#8220;site-packages&#8221;. Not 2.5. Turns out &#8220;python&#8221; was pointing to the wrong version. Mac NEEDS the other Python versions for various internal things so you can&#8217;t get rid of them.</p>
<p>Of course I&#8217;m sure some will comment that I&#8217;m an idiot. I should have been more careful, more thoughtful, etc. However, what happened to: &#8220;it just works&#8221;? The fact is I was able to develop on a Linux box for years without having to obsessively keep track of versions and installs.</p>
<h3>Its too similar to Linux/Unix &#8211; Some simple apps just don&#8217;t work</h3>
<p>As an extension to the comments on GUI frameworks I mentioned I wanted to check out <a href="http://deluge-torrent.org/">Deluge</a> (a torrent client). Its built in Python so surely it&#8217;ll run? Oh yes &#8211; if you jump through numerous hoops, sacrifice a goat, pray to Beelzebub and eat a few virgins. The gods may allow you to run it fully. I wanted to use Deluge mainly to tinker with plugin development for it. I eventually used a Linux VM instead. The fact is, OSX is similar to Linux/Unix in many ways. Which is why so many Linux apps will run on it with very little change. But thats actually a hinderance. Its close but there&#8217;s just enough differences to make it really awkward to install many things. Unless you use Macports but as I&#8217;ve already pointed out that is a poisoned chalice destined to murder your sanity in the future.</p>
<h3>Fuse/FTPFS</h3>
<p>I&#8217;ve found it very useful to use <a href="http://en.wikipedia.org/wiki/FTPFS">FTPFS</a> which enables me to link a local directory to a remote FTP location. So I can effectively edit remote code like it was local. Yes I&#8217;m well aware using FTP is frowned upon but we don&#8217;t always get a choice.</p>
<p>This was very easy on Leopard. Its <b>extremely</b> easy on Linux. However, on Snow Leopard <a href="http://code.google.com/p/macfuse/">MacFUSE</a> broke. There&#8217;s a <a href="http://fuse4x.org/">few</a> <a href="https://github.com/osxfuse">new</a> libraries trying to fill the gaping hole but none of them support FTPFS (last I checked a month ago).</p>
<p>I still love my Mac but I&#8217;m under no illusions that if I want to do anything remotely off the beaten path its a nightmare. I find myself switching to Linux VM&#8217;s or Linux servers to do coding work now. Because more often than not &#8211; <b>Linux &#8220;just works&#8221;</b>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/09/17/macs-make-terrible-development-platforms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Best Linux Filesystem?</title>
		<link>http://www.straw-dogs.co.uk/08/02/best-linux-filesystem/</link>
		<comments>http://www.straw-dogs.co.uk/08/02/best-linux-filesystem/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 22:28:11 +0000</pubDate>
		<dc:creator>KingOfThisHereBlog</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[filesystems]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/?p=520</guid>
		<description><![CDATA[The executive summary in my own words of which filesystem to pick if you&#8217;re wondering which is best. I&#8217;m avoiding jargon or anything overly technical. I also provide some made-up* graphs to help with quick decision making. Overview Ext2 &#8211; Old. Don&#8217;t bother. Ext3 &#8211; Lacking in performance though very solid and reliable with a [...]]]></description>
			<content:encoded><![CDATA[<p>The executive summary in my own words of which filesystem to pick if you&#8217;re wondering which is best. I&#8217;m avoiding jargon or anything overly technical. I also provide some made-up* graphs to help with quick decision making. </p>
<h3>Overview</h3>
<ul>
<li><strong>Ext2</strong> &#8211; Old. Don&#8217;t bother.</li>
<li><strong>Ext3</strong> &#8211; Lacking in performance though very solid and reliable with a huge number of tools to fiddle with.</li>
<li><strong>Ext4</strong> &#8211; More reliability and a little extra speed over ext3.</li>
<li><strong>XFS</strong> &#8211; Sci-fi name and also very fast but lacks the same level of error protection as some others. Undelete is almost impossible. Doesn&#8217;t like powercuts.</li>
<li><strong>JFS</strong> &#8211; Like XFS but more reliable after a powercut. Very fast and low CPU usage making it ideal for old PCs and new alike.</li>
<li><strong>ReiserFS</strong> &#8211; Was good, but showing its age and no longer actively developed.</li>
</ul>
<h3>What do you want?</h3>
<p><strong>Speed</strong></p>
<ol>
<li>XFS</li>
<li>JFS</li>
<li>ReiserFS</li>
<li>ext4</li>
<li>ext3</li>
<li>ext2</li>
</ol>
<p><strong>Reliability</strong></p>
<ol>
<li>ext3</li>
<li>ext4</li>
<li>JFS</li>
<li>ReiserFS</li>
<li>ext2</li>
<li>XFS</li>
</ol>
<h3>Epic Graphs</h3>
<p><img src="http://chart.apis.google.com/chart?cht=bvs&#038;&#038;chtt=Filesystem+Speeds&#038;chco=4D89F9&#038;chd=t:10,50,60,80,75,55&#038;chds=0,160&#038;chbh=a&#038;chs=350x200&#038;chxt=x,y,r&#038;chxl=0:|ext2|ext3|ext4|XFS|JFS|ReiserFS|2:|Bugatti%20Veyron|Mega%20Fast|X-Wing&#038;chxp=2,10,35,95&#038;chxs=2,0000DD,13,-1,t,FF0000" alt="Linux Filesystem Speeds" /><br />
<br/><br />
<img src="http://chart.apis.google.com/chart?cht=rs&#038;chs=450x300&#038;chtt=The+Effects+of+a+Powercut&#038;chd=s:voJATd9v,MW9BA9&#038;chco=FF0000,FF9900&#038;chls=2.0,4.0,0.0|2.0,4.0,0.0&#038;chxt=x&#038;chxl=0:|0|ext2|ext3|ext4|ReiserFS|JFS|XFS|Something&#038;chxr=0,0.0,360.0&#038;chg=25.0,25.0,4.0,4.0&#038;chm=B,FF000080,0,1.0,5.0|B,FF990080,1,1.0,5.0|h,0000FF,0,1.0,4.0|h,3366CC80,0,0.5,5.0|V,00FF0080,0,1.0,5.0|V,008000,0,5.5,5.0|v,00A000,0,6.5,4" alt="The effects of a powercut on the filesystems" /><br />
<br/><br />
<img src="http://chart.apis.google.com/chart?chs=225x125&#038;cht=gom&#038;chd=t:90&#038;chl=Holy+Cow&#038;chtt=XFS%20Speed-o-meter" alt="JFS Speed-o-meter" /></p>
<p><em>* when I say made-up I mean that. They&#8217;re from my own experiences and reading various contradictary benchmarks. There are so many contradictions on speed and reliability out there that I think a rough guide is just as good as any of the other meticulously biased graphs out there. They can be argued as innacurate. But this is my blog &#8211; my goddamn rules! If I want pretty graphs I will HAVE pretty graphs!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/08/02/best-linux-filesystem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu &#8211; Fisher Price OS</title>
		<link>http://www.straw-dogs.co.uk/11/06/ubuntu-fisher-price-os/</link>
		<comments>http://www.straw-dogs.co.uk/11/06/ubuntu-fisher-price-os/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 19:19:10 +0000</pubDate>
		<dc:creator>KingOfThisHereBlog</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/?p=182</guid>
		<description><![CDATA[I wish I could take credit for this image because I&#8217;ve wanted to do something like this for a while.  The creator and some other OS images can be found at Best Techie forums.]]></description>
			<content:encoded><![CDATA[<p>I wish I could take credit for this image because I&#8217;ve wanted to do something like this for a while.  The creator and some other OS images can be found at <strong><a href="http://www.besttechie.net/forums/index.php?showtopic=14545&amp;st=0&amp;gopid=118632&amp;#entry118632">Best Techie forums</a></strong>.</p>
<p style="text-align: center;"><img class="aligncenter" title="Ubuntu - Spoon Feeding" src="http://www.straw-dogs.co.uk/wp-content/uploads/ubuntu.png" alt="" width="538" height="466" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/11/06/ubuntu-fisher-price-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate-like Vim Plugin</title>
		<link>http://www.straw-dogs.co.uk/12/02/textmate-like-vim-plugin/</link>
		<comments>http://www.straw-dogs.co.uk/12/02/textmate-like-vim-plugin/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 17:28:42 +0000</pubDate>
		<dc:creator>KingOfThisHereBlog</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/12/02/textmate-like-vim-plugin/</guid>
		<description><![CDATA[After the gushing praise I keep hearing about TextMate I installed a plugin for Vim which aims to give some of the benifits &#8211; though I&#8217;m yet to be convinced of its merits*. Today when I was looking for extra bundles for the SnippetsEmu plugin (by far the most comprehensive) I came across a brand-new [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.straw-dogs.co.uk/wp-content/uploads/gvim.png" alt="gVim Logo" align="left" border="0" height="64" width="64" />After the gushing praise I keep hearing about TextMate I installed a plugin for Vim which aims to give some of the benifits &#8211; though I&#8217;m yet to be convinced of its merits*.</p>
<p>Today when I was looking for extra bundles  for the <a href="http://www.vim.org/scripts/script.php?script_id=1318">SnippetsEmu</a> plugin (by far the most comprehensive) I came across a brand-new plugin by <a href="http://www.vim.org/account/profile.php?user_id=13526">Taku Miyakawa</a> called <a href="http://www.vim.org/scripts/script.php?script_id=2086" title="code-snippet">code-snippet</a>.  It&#8217;s not as mature or feature-rich as SnippetsEmu but as a newly released plugin its got a hell of a lot going for it.  Here&#8217;s hoping it goes from strength-to-strength.</p>
<p>* Why?  I&#8217;ll explain in a later post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/12/02/textmate-like-vim-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

