<?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>Bitboxer</title>
	<atom:link href="http://bitboxer.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://bitboxer.de</link>
	<description>Fighting bits since 1988</description>
	<lastBuildDate>Thu, 19 Aug 2010 15:41:10 +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>Check MySQL Master-Slave replication</title>
		<link>http://bitboxer.de/2010/08/18/check-mysql-master-slave-replication/</link>
		<comments>http://bitboxer.de/2010/08/18/check-mysql-master-slave-replication/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:31:06 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=269</guid>
		<description><![CDATA[A lot of guides explain that you can use MySQL master-slave replication to scale your database performance. But nobody explains how to keep the database instances in synch. MySQL replications are very shaky and tend to break and mess up &#8230; <a href="http://bitboxer.de/2010/08/18/check-mysql-master-slave-replication/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A lot of <a href="http://railslab.newrelic.com/scaling-rails">guides</a> explain that you can use MySQL master-slave replication to scale your database performance. But nobody explains how to keep the database instances in synch. MySQL replications are very shaky and tend to break and mess up stuff very easily. From my standpoint the whole replication scheme looks like a smart hack into the MySQL system.</p>
<p>Till today I used some self written scripts to check our systems. Nobody told me that there was a perfect toolchain for this problem already existing: <a href="http://www.maatkit.org/">Maatkit</a>. Maatkit offers a few commandline tools that help you to keep the slaves in synch with your master.</p>
<p>Install it using brew:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">brew install maatkit</div></td></tr></tbody></table></div>
<p>Check tables for differences :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mk-table-checksum h=HOSTMASTER,u=USERMASTER,p=PASSWORDMASTER h=HOSTSLAVE,u=USERSLAVE,p=PASSWORDSLAVE -d DATABASE | mk-checksum-filter</div></td></tr></tbody></table></div>
<p>And after you found differences you can even use Maatkit to repair those tables:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mk-table-sync --execute h=HOSTMASTER,u=USERMASTER,p=PASSWORDMASTER,d=DATABASE,t=TABLE h=HOSTSLAVE,u=USERSLAVE,p=PASSWORDSLAVE</div></td></tr></tbody></table></div>
<p>Besides repairing damaged tables Maatkit helps you to check if the slave replication is still working. <a href="http://www.maatkit.org/doc/mk-heartbeat.html">Mk-heartbeat</a> updates a heartbeat table in the master database and checks if the slave database has been updated. I have written a small script that wraps the heartbeat check and sends a mail if the slave replication has stopped.</p>
<p>More documentation can be found <a href="http://www.maatkit.org/doc/">here</a> and a few examples in <a href="http://www.scribd.com/doc/15014708/Make-Your-Life-Easier-with-Maatkit">this presentation</a>.</p>
<p>And yes, using couchdb would make this toolchain obsolete <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/08/18/check-mysql-master-slave-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Events for developers around Cologne</title>
		<link>http://bitboxer.de/2010/08/17/events-for-developers-around-cologne/</link>
		<comments>http://bitboxer.de/2010/08/17/events-for-developers-around-cologne/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 15:56:21 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Cologne]]></category>
		<category><![CDATA[Hackers]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=262</guid>
		<description><![CDATA[I was tired to search for events in Cologne that could interest me. Others might have the same problem, so I created a shared calendar: If you know events in the Cologne area (including Düsseldorf and Bonn), feel free to &#8230; <a href="http://bitboxer.de/2010/08/17/events-for-developers-around-cologne/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was tired to search for events in Cologne that could interest me. Others might have the same problem, so I created a shared calendar:</p>
<p><iframe src="http://www.google.com/calendar/embed?mode=AGENDA&amp;height=300&amp;wkst=2&amp;hl=de&amp;bgcolor=%23FFFFFF&amp;src=i6e3p8hejg84hn76plj9mk487o%40group.calendar.google.com&amp;color=%23853104&amp;ctz=Europe%2FBerlin" style=" border-width:0 " width="600" height="300" frameborder="0" scrolling="no"></iframe></p>
<p>If you know events in the Cologne area (including Düsseldorf and Bonn), feel free to leave me a <a href="mailto:bodo@bitboxer.de?subject=Events">Note</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/08/17/events-for-developers-around-cologne/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vim and I</title>
		<link>http://bitboxer.de/2010/08/07/vim-and-i/</link>
		<comments>http://bitboxer.de/2010/08/07/vim-and-i/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 08:20:50 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Textmate]]></category>
		<category><![CDATA[Vi]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=240</guid>
		<description><![CDATA[A little over a week ago I posted this on twitter: First day of switching from textmate to vim. Let&#8217;s see if I still use macvim next week . Updated my dotfiles: http://bit.ly/bFuAoi Today I am still using Vim. Am &#8230; <a href="http://bitboxer.de/2010/08/07/vim-and-i/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A little over a week ago I posted this on twitter:</p>
<blockquote><p>First day of switching from textmate to vim. Let&#8217;s see if I still use macvim next week <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Updated my dotfiles: <a href="http://bit.ly/bFuAoi">http://bit.ly/bFuAoi</a></p></blockquote>
<p>Today I am still using Vim. Am I a better developer now? Hell no. Choosing the best editor for your work is important. A craftsman has his hammer, we developers have our editor. You can hammer a nail in a wall with an average hammer. Nothing wrong with that. Maybe not as fast or as good as with the perfect hammer, but good enough. Am I a happier coder? Not quite yet. Will I stay with Vim? Yes, I think so.</p>
<p>For the last few years I used Vim only for editing stuff on my servers. It was okay, but I never thought of using it as my main editor for my desktop. A few months ago ruby developers in my twitter timeline startet to migrate to Vim. Some because Textmate2 looks like the new Duke Nukem, some because they just wanted to try out another editor. A lot of them where happy about the switch and started to advertise it very aggressively. Last week I had enough. I wanted to find out why all of a sudden everyone is happy with Vim. </p>
<p>The first thing I did was to look at my current vim configuration I had and to compare it with the configurations others where using. After two days(!!) of rewriting it and adding of a few plugins, I was able to start going. And since then I only used Textmate for a few minor things.</p>
<p>What I hate about Vim:</p>
<ul>
<li>Bad defaults, you have to rewrite tons of stuff</li>
<li>You have to add a lot of 3rd party plugins to get it usable</li>
<li>Copy and paste is hard. Even when using MacVim with it&#8217;s mac keyboard shortcuts its harder than what you are used to (But you can activate <a href="http://stackoverflow.com/questions/2129723/using-shiftarrows-to-select-text-in-vim-macvim">Shift-Selection</a>)</li>
<li>After I configured everything in MY way, nobody else is able to use my Vim and code on my desktop unless we all agree on a certain configuration</li>
</ul>
<p>What I love about Vim:</p>
<ul>
<li>You can extend nearly everything and rewire nearly everything</li>
<li>A lot can be done without the mouse. Opening files, switching directories, copying and moving files between directories</li>
<li>You use the same editor on the remote server</li>
<li>It is very fast</li>
</ul>
<p>If you want to start using MacVim, you should definitely look at my <a href="http://github.com/bitboxer/dotfiles">dotfiles</a> or at least look at my <a href="http://delicious.com/bodum/vim">vim delicious bookmarks</a>.</p>
<p>But is it the ideal editor? No. Not for me. But it&#8217;s close enough. What would my ideal editor look like? Something like this:</p>
<ul>
<li>Command line mode to open/edit files without touching the mouse</li>
<li>Everything extensible : syntax highlighting, code completion, directory browser, command line commands, shortcuts</li>
<li>Fast and easy script language for the extension system. V8 comes to my mind here <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Good default shortcuts for copy and paste and other standard operations. E.g. copy and paste should behave like in every other app</li>
<li>Good default for all other stuff. I don&#8217;t want to configure my editor for two days to get it usable.</li>
<li>Easy way to record and replay macros</li>
<li>FAST ui. Redcar feels really slow compared to Textmate and MacVim. Using the JVM is a really bad decision in my opinion.</li>
<li>A real desktop app that has an own menu and stuff. Terminal windows are okay for servers, but my editor should have its own Icon and its own menubar on my desktop.</li>
</ul>
<p>So what would it take to get my ideal editor? Sadly I am not good enough in writing Cocoa Apps, but if you are, please write a thin Cocoa editor layer and put a good V8 extension system around it. After that I would love to help you code the extensions needed!</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/08/07/vim-and-i/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Rockstar &#8211; a last.fm api v2.0 gem</title>
		<link>http://bitboxer.de/2010/07/30/rockstar-a-last-fm-v2-0-gem/</link>
		<comments>http://bitboxer.de/2010/07/30/rockstar-a-last-fm-v2-0-gem/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:03:11 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=228</guid>
		<description><![CDATA[A few weeks ago I added the possibilty to scrobble your viewed music videos to putpat. Sadly I couldn&#8217;t find a gem that could do that. John Nunemakers scrobbler gem is very outdated and does not use the new authentification &#8230; <a href="http://bitboxer.de/2010/07/30/rockstar-a-last-fm-v2-0-gem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I added the possibilty to <a href="http://www.putpat.tv/news/2010-07-06-scrobbel-dir-einen-brandneues-lastfm-feature">scrobble your viewed music</a> videos to <a href="http://www.putpat.tv">putpat</a>. </p>
<p>Sadly I couldn&#8217;t find a gem that could do that. John Nunemakers <a href="http://scrobbler.rubyforge.org/">scrobbler</a> gem is very outdated and does not use the new authentification api. After searching through all available forks I made the decision to create my own fork of the old scrobbler gem. That fork is called <a href="http://github.com/bitboxer/rockstar">rockstar</a>.</p>
<p>I tried to made it compatible with the old scrobbler gem and added a few new features. For example now it&#8217;s possible to get a list of events for a certain location:</p>
<div class="codecolorer-container ruby dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">geo = <span style="color:#6666ff; font-weight:bold;">Rockstar::Geo</span>.<span style="color:#9900CC;">new</span><br />
<br />
<span style="color:#008000; font-style:italic;"># Get events for a location</span><br />
geo.<span style="color:#9900CC;">events</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:location</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'london'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|</span>e<span style="color:#006600; font-weight:bold;">|</span> <br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">p</span> <span style="color:#996600;">&quot;#{e.title} at #{e.venue.name}&quot;</span><br />
<span style="color:#006600; font-weight:bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>If you are missing a certain api call just write me, I will add that asap.</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/07/30/rockstar-a-last-fm-v2-0-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax…</title>
		<link>http://bitboxer.de/2010/07/29/error-loading-libraryscriptingadditionsadobe-unit-types-osax/</link>
		<comments>http://bitboxer.de/2010/07/29/error-loading-libraryscriptingadditionsadobe-unit-types-osax/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 16:02:40 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Adobe]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=223</guid>
		<description><![CDATA[If you see this error: 1Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types You should update the Adobe Unit Types to a newer version that includes 64bit binaries. The latest version can be found here: http://kb2.adobe.com/cps/516/cpsid_51615.html]]></description>
			<content:encoded><![CDATA[<p>If you see this error:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types</div></td></tr></tbody></table></div>
<p>You should update the Adobe Unit Types to a newer version that includes 64bit binaries. The latest version can be found here:</p>
<p><a href="http://kb2.adobe.com/cps/516/cpsid_51615.html">http://kb2.adobe.com/cps/516/cpsid_51615.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/07/29/error-loading-libraryscriptingadditionsadobe-unit-types-osax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don’t just hate, write bug reports</title>
		<link>http://bitboxer.de/2010/06/12/dont-just-hate-write-bug-reports/</link>
		<comments>http://bitboxer.de/2010/06/12/dont-just-hate-write-bug-reports/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 13:31:59 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Communication]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=196</guid>
		<description><![CDATA[I have seen this pattern very often in the last year: someone found a bug in a product and instantly wrote a twitter message with a #fail hashtag. Or even worse: wrote a bad rating for an iPhone app just &#8230; <a href="http://bitboxer.de/2010/06/12/dont-just-hate-write-bug-reports/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have seen this pattern very often in the last year: someone found a bug in a product and instantly wrote a twitter message with a <em>#fail</em> hashtag. Or even worse: wrote a bad rating for an iPhone app just saying : &#8220;Doesn&#8217;t work. This is shit!&#8221;.</p>
<p>As a user you usually want a good experience using a service. If it wasn&#8217;t good for you, complain. It&#8217;s your right to do so. And you should. As loud as you want. But if you do, please use a way that opens the possibility for the other side to answer your problems. If you rate an app in the iphone store, the vendor of that app can&#8217;t reach you. Your complaint is lost. Never to be answered. Maybe the vendor needs some data from you to fix your issue. Or you just overlooked that important setting in the options pane. And please mention exactly what your problem is. &#8220;Doesn&#8217;t work&#8221; just shows that you&#8217;re a fucking idiot. And if the vendor helped you after you tweeted your problem, you should inform your followers that the issue is resolved. Be nice and thankful, don&#8217;t behave like the grumpy old fuck from next door. </p>
<p>I had a lot of great chats with support people after sending a short mail and explaining what the problem was. And a lot of them took my complaint seriously and fixed the problems or showed me how to get what I wanted. Sometimes you even get stuff for being nice and helpful. Early Betas to test, some goodies or information about coming features.</p>
<p>You can still rate that app in two days and say that the customer support is awful. But at least you have more to write than &#8220;this is shit&#8221; <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>And for god&#8217;s sake don&#8217;t use <em>#fail</em> for minor mistakes. I have seen a lot of &#8220;the button xy in that app is on the left, not on the right #fail&#8221;-kind of stuff in my twitter feed. That&#8217;s not even close to be a <em>#fail</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/06/12/dont-just-hate-write-bug-reports/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Moving from MacPorts to Homebrew</title>
		<link>http://bitboxer.de/2010/06/03/moving-from-macports-to-homebrew/</link>
		<comments>http://bitboxer.de/2010/06/03/moving-from-macports-to-homebrew/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:04:29 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Homebrew]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=179</guid>
		<description><![CDATA[Using MacPorts? You should really think about moving to Homebrew. Why? Homebrew installs packages into their own isolated prefixes and then symlinked into /usr/local. It uses the libs that are already installed, no need to compile another perl, openssl or &#8230; <a href="http://bitboxer.de/2010/06/03/moving-from-macports-to-homebrew/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using MacPorts? You should really think about moving to <a href="http://mxcl.github.com/homebrew/">Homebrew</a>. Why?</p>
<ul>
<li>Homebrew  installs packages into their own isolated prefixes and then symlinked into /usr/local.</li>
<li>It uses the libs that are already installed, no need to compile another perl, openssl or x11 and other stuff that can be found on your mac. Don&#8217;t waste time and disc space.</li>
<li>Way better command line user interface</li>
<li>Homebrew and it&#8217;s installation scripts are hosted at <a href="http://github.com/mxcl/homebrew">Github</a></li>
<li>The installation scripts (aka recepies) and Homebrew itself are written in ruby.</li>
</ul>
<p>Moving from MacPorts to Homebrew sounds a little bit scary. MacPorts has tons of compiled stuff on your system. But you can do this. Trust me <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>First, uninstall MacPorts:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-f</span> uninstall installed</div></td></tr></tbody></table></div>
<p>Second step: remove everything that is left from MacPorts:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>DarwinPorts<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MacPorts<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>LaunchDaemons<span style="color: #000000; font-weight: bold;">/</span>org.macports.<span style="color: #000000; font-weight: bold;">*</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>DarwinPorts<span style="color: #000000; font-weight: bold;">*</span>.pkg<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>MacPorts<span style="color: #000000; font-weight: bold;">*</span>.pkg<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>StartupItems<span style="color: #000000; font-weight: bold;">/</span>DarwinPortsStartup<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Tcl<span style="color: #000000; font-weight: bold;">/</span>darwinports1.0<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Tcl<span style="color: #000000; font-weight: bold;">/</span>macports1.0<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ~<span style="color: #000000; font-weight: bold;">/</span>.macports</div></td></tr></tbody></table></div>
<p>After that you should remove the <em>/opt/local/bin</em> from your <em>$PATH</em>.</p>
<p>Now install Homebrew:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ruby <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(curl http://gist.github.com/raw/323731/install_homebrew.rb)</span>&quot;</span></div></td></tr></tbody></table></div>
<p>Yeah! You can now start install packages like wget with</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">brew <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">wget</span></div></td></tr></tbody></table></div>
<p>There is only one little catch: if you have installed ruby gems that depend on libs from your MacPorts directory, you have to recompile them. I had to recompile my rmagick gem because it used the now deleted ImageMagick from MacPorts.</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/06/03/moving-from-macports-to-homebrew/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Redgreen and autospec</title>
		<link>http://bitboxer.de/2010/05/26/redgreen-and-autospec/</link>
		<comments>http://bitboxer.de/2010/05/26/redgreen-and-autospec/#comments</comments>
		<pubDate>Wed, 26 May 2010 06:30:54 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[autospec]]></category>
		<category><![CDATA[autotest]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[redgreen]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=172</guid>
		<description><![CDATA[I use the redgreen gem for autotest to highlight errors in another color. Sadly that broke my autospec: 123invalid option: --autospec Test::Unit automatic runner. Usage: -e &#91;options&#93; &#91;-- untouched arguments&#93; If you want to use redgreen and have a working &#8230; <a href="http://bitboxer.de/2010/05/26/redgreen-and-autospec/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I use the redgreen gem for autotest to highlight errors in another color. Sadly that broke my autospec:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">invalid option: <span style="color: #660033;">--autospec</span><br />
Test::Unit automatic runner.<br />
Usage: <span style="color: #660033;">-e</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-- untouched arguments<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div>
<p>If you want to use redgreen <strong>and</strong> have a working autospec, you should change your <em>.autotest</em> file to this:</p>
<div class="codecolorer-container ruby dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'redgreen/autotest'</span> <span style="color:#9966CC; font-weight:bold;">unless</span> ENV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'RSPEC'</span><span style="color:#006600; font-weight:bold;">&#93;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/05/26/redgreen-and-autospec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My favorite Textmate extensions</title>
		<link>http://bitboxer.de/2010/05/01/my-favorite-textmate-extensions/</link>
		<comments>http://bitboxer.de/2010/05/01/my-favorite-textmate-extensions/#comments</comments>
		<pubDate>Sat, 01 May 2010 04:02:00 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Textmate]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=156</guid>
		<description><![CDATA[If you write RubyOnRails code on your mac, you definitely have to use Textmate for it. Yeah, I know. Pay for a simple text editor? Just try the 30 day trial version and you will see it&#8217;s worth it. Railscast &#8230; <a href="http://bitboxer.de/2010/05/01/my-favorite-textmate-extensions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you write RubyOnRails code on your mac, you definitely have to use <a href="http://macromates.com/">Textmate</a> for it. Yeah, I know. Pay for a simple text editor? Just try the 30 day trial version and you will see it&#8217;s worth it.</p>
<p><strong>Railscast theme</strong></p>
<p>The theme I am using at the moment is the Railscast Theme by Ryan Bates. You can find it in the about section of his <a href="http://railscasts.com/about">Railscasts</a>. Dark background and nice font colors. When you look at the code the whole day, it should look good <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Don&#8217;t forget to download the <a href="http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/">Bitstream Vera Font</a>.</p>
<p><strong>Ackmate</strong></p>
<p><a href="http://betterthangrep.com/">Ack</a> is one of the greatest scripts I know. Grep for coders. Fast, easy to use and very good defaults when searching for code snipplets.</p>
<p>If you want to use it within Textmate, you should try <a href="http://github.com/protocool/AckMate">AckMate</a>.</p>
<p><strong>ProjectPlus</strong></p>
<p>Need better project support including features like git? Use <a href="http://ciaranwal.sh/projectplus">ProjectPlus</a>.</p>
<p><strong>Github Bundle</strong></p>
<p>Speaking about git. What about github? Yes, there&#8217;s a bundle for that <img src='http://bitboxer.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . <a href="http://github.com/drnic/github-tmbundle">DrNic&#8217;s github bundle</a>. </p>
<p><strong>Ruby On Rails Bundle</strong></p>
<p>Dr Nic&#8217;s most important Textmate bundle is the <a href="http://github.com/drnic/ruby-on-rails-tmbundle">Ruby on Rails Bundle</a>. With it you can easily navigate between controllers, models and other files. Besides that it adds tons of shortcuts. Whatever you will need for RoR development, you will find it in there.</p>
<p>If you want to keep track of all chrome extensions I use, you can subscribe to my<a href="http://delicious.com/bodum/textmate"> links on Delicious tagged as Textmate</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/05/01/my-favorite-textmate-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progressbar in Ruby console scripts</title>
		<link>http://bitboxer.de/2010/04/21/progressbar-in-ruby-console-scripts/</link>
		<comments>http://bitboxer.de/2010/04/21/progressbar-in-ruby-console-scripts/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:57:14 +0000</pubDate>
		<dc:creator>bitboxer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://bitboxer.de/?p=144</guid>
		<description><![CDATA[Yesterday I needed a little progress bar for a small ruby terminal script. Something like this: Sadly I could not find one, so I had to write it myself. You can install it with: 1gem install simple_progressbar The progressbar can&#8217;t &#8230; <a href="http://bitboxer.de/2010/04/21/progressbar-in-ruby-console-scripts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I needed a little progress bar for a small ruby terminal script. Something like this:</p>
<p><img src="http://bitboxer.de/wp-content/uploads/progress.png" alt="" title="progress" width="252" height="16" /></p>
<p>Sadly I could not find one, so I had to write it myself. </p>
<p>You can install it with:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem install simple_progressbar</div></td></tr></tbody></table></div>
<p>The progressbar can&#8217;t do very much at the moment. If you want to add more features, feel free to <a href="http://github.com/bitboxer/simple_progressbar">fork it</a>.</p>
<p>A small example for the gem:</p>
<div class="codecolorer-container ruby dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'simple_progressbar'</span><br />
<br />
SimpleProgressbar.<span style="color:#9900CC;">new</span>.<span style="color:#9900CC;">show</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Installing stuff&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">0</span>..10<span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|</span>i<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; progress i<span style="color:#006600; font-weight:bold;">*</span><span style="color:#006666;">10</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">sleep</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> &nbsp;<br />
<span style="color:#9966CC; font-weight:bold;">end</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://bitboxer.de/2010/04/21/progressbar-in-ruby-console-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
