<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matt Brown - Journeys of a software engineer</title>
	<atom:link href="http://mattbsoftware.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattbsoftware.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 26 Jan 2012 04:51:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mattbsoftware.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Matt Brown - Journeys of a software engineer</title>
		<link>http://mattbsoftware.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mattbsoftware.wordpress.com/osd.xml" title="Matt Brown - Journeys of a software engineer" />
	<atom:link rel='hub' href='http://mattbsoftware.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Database Reverse Engineering With Spring Roo</title>
		<link>http://mattbsoftware.wordpress.com/2012/01/25/database-reverse-engineering-with-spring-roo/</link>
		<comments>http://mattbsoftware.wordpress.com/2012/01/25/database-reverse-engineering-with-spring-roo/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 04:51:34 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Spring-roo]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/?p=57</guid>
		<description><![CDATA[roo&#8217;s database-reverse command will not work out of the box because Spring doesn&#8217;t ship or make available an osgi driver for Roo due to licensing restrictions. Pre-reqs Spring Roo Reference instructions to get roo talking to oracle Roo reverse engineering on Oracle How to “OSGIfy” an Oracle jdbc driver with Spring Roo how to remove the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=57&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>roo&#8217;s database-reverse command will not work out of the box because Spring doesn&#8217;t ship or make available an osgi driver for Roo due to licensing restrictions.<br />
<strong>Pre-reqs</strong></p>
<ul>
<li><a href="http://www.springsource.com/developer/sts">Spring Roo</a></li>
</ul>
<p><strong>Reference</strong></p>
<ul>
<li>instructions to get roo talking to oracle <a href="http://saber.b2b2000.com/display/BLUE/2011/01/26/Roo+reverse+engineering+on+Oracle">Roo reverse engineering on Oracle</a></li>
<li><a href="http://nidget.wordpress.com/2011/07/21/how-to-osgify-an-oracle-jdbc-driver-with-spring-roo">How to “OSGIfy” an Oracle jdbc driver with Spring Roo</a></li>
<li>how to remove the unneeded manifest.mf entries with maven. Comment #3 <a href="http://forum.springsource.org/showthread.php?103559-Issue-with-DBRE-Oracle-JDBC">Issue with DBRE Oracle JDBC</a></li>
</ul>
<p><strong>Instructions</strong></p>
<ol>
<li>get this <a href="https://github.com/mattbsoftware/blogfiles/blob/master/oracle-drivers-pom.xml">pom</a></li>
<li>mvn install</li>
<li>start roo and run the following commands</li>
</ol>
<p><code>osgi install --url file:////javax/resource/com.springsource.javax.resource/1.5.0/com.springsource.javax.resource-1.5.0.jar<br />
osgi install --url file:////javax/transaction/com.springsource.javax.transaction/1.1.0/com.springsource.javax.transaction-1.1.0.jar<br />
osgi install --url file:////com/oracle/roo/jdbc/com.oracle.roo.jdbc.ojdbc5/11.1.0.7.0.0001/com.oracle.roo.jdbc.ojdbc5-11.1.0.7.0.0001.jar</code><br />
<code>osgi start --url file:////javax/resource/com.springsource.javax.resource/1.5.0/com.springsource.javax.resource-1.5.0.jar<br />
osgi start --url file:////javax/transaction/com.springsource.javax.transaction/1.1.0/com.springsource.javax.transaction-1.1.0.jar<br />
osgi start --url file:////com/oracle/roo/jdbc/com.oracle.roo.jdbc.ojdbc5/11.1.0.7.0.0001/com.oracle.roo.jdbc.ojdbc5-11.1.0.7.0.0001.jar</code><br />
<strong>Connect Roo to Oracle DB</strong></p>
<ul>
<li>get into roo (&#8216;roo&gt;&#8217;) and execute the following</li>
</ul>
<p><code>project --topLevelPackage --projectName --java 6<br />
persistence setup --provider HIBERNATE --database ORACLE<br />
database properties set --key database.url --value jdbc:oracle:thin:@:1526:<br />
database properties set --key database.username --value<br />
database properties set --key database.password --value</code><br />
<strong>The fun part</strong></p>
<p>Enter the following command, and lean back.</p>
<p style="padding-left:30px;">database reverse engineer &#8211;schema &#8211;package</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=57&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2012/01/25/database-reverse-engineering-with-spring-roo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>Nifty link for command line settings to customize your mac</title>
		<link>http://mattbsoftware.wordpress.com/2009/12/22/nifty-link-for-command-line-settings-to-customize-your-mac/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/12/22/nifty-link-for-command-line-settings-to-customize-your-mac/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 04:24:39 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/?p=47</guid>
		<description><![CDATA[This site has some nice command line settings changes to make your mac more &#8220;pro&#8221;.  I especially dug the ability to add spaces to the doc. http://www.snipe.net/2009/01/handy-mac-osx-command-line-tricks/ PS: the end of 65 hour work weeks is in sight, expect some posts soon<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=47&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This site has some nice command line settings changes to make your mac more &#8220;pro&#8221;.  I especially dug the ability to add spaces to the doc.</p>
<p>http://www.snipe.net/2009/01/handy-mac-osx-command-line-tricks/</p>
<p>PS: the end of 65 hour work weeks is in sight, expect some posts soon</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=47&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/12/22/nifty-link-for-command-line-settings-to-customize-your-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>Unit testing Google App Engine Task Queues and urlfetch</title>
		<link>http://mattbsoftware.wordpress.com/2009/08/01/unit-testing-google-app-engine-task-queues-and-urlfetch/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/08/01/unit-testing-google-app-engine-task-queues-and-urlfetch/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 10:51:16 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[GAE]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit Test]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/?p=11</guid>
		<description><![CDATA[My app pulls a web page (urlfetch) and uses the Google App-Engine (GAE) taskqueue API, these were hard to emulate in my tests with the mock lib. This post is about how I solved the urlfetch, and taskqueue problem in unit tests. I am writing an app that parses a web page and analyzes the data. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=11&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My app pulls a web page (<a href="http://code.google.com/appengine/docs/python/urlfetch/overview.html">urlfetch</a>) and uses the Google App-Engine (GAE) <a href="http://code.google.com/appengine/docs/python/taskqueue/overview.html">taskqueue API</a>, these were hard to emulate in my tests with the mock lib. This post is about how I solved the urlfetch, and taskqueue problem in unit tests.</p>
<p>I am writing an app that parses a web page and analyzes the data.  I needed a better/faster way to iterate my test-debug cycles, than actually hitting my data source page.  Additionally I needed predictable content for my tests.  I am getting to know TDD at the day job (props to Saad-Zilla!!).   This app seemed like a great candidate for Unit Testing.   I found the  <a href="http://code.google.com/p/gaeunit/">GAE Unit Test framework</a> and had some great results.   That framework runs all the tests and reports the red/green results at http://yourapp.appspot.com/test or http://localhost:&lt;port&gt;/test.   However I wasn&#8217;t so lucky in the mock dept.  I tried a standard mock library, but ran into troubles with the <a href="http://theblobshop.com/pymock/">mock library-pymock</a>.</p>
<p>This is how I Unit Test taskqueue and urlfetch in my GAE app.  I struggled with the pymock library, so I took advantage of Python&#8217;s dynamic language feature.  I simply created new classes that mock&#8217;d the objects needed for the test and implemented a simple proxy for urlfetch and the taskqueue.</p>
<div>
<div>
<ol>
<li>Get the GAE Unit Test framework from <a href="http://code.google.com/p/gaeunit/">Google Code</a></li>
<li>Download this zip <span style="font-family:'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, fantasy;line-height:normal;"><a title="GAEtest-taskqueue-urlfetch.zip" href="http://mattbsoftware.com/blog/GAEtest-taskqueue-urlfetch.zip">GAEtest-taskqueue-urlfetch.zip</a><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;line-height:19px;">, and lay it on top of the GAE sample project you download in step #1</span></span></li>
<li><span style="font-family:'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, fantasy;line-height:normal;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;line-height:19px;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;">Check out proxy classes for TaskQueue (<a title="TaskQueueProxy_module.py" href="http://mattbsoftware.com/blog/GAE_Test/TaskQueueProxy_module.py" target="_blank">TaskQueueProxy_module.py</a>).</span></span></span>
<ol>
<li><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;">There is small issue in the taskqueue emulator, since it calls the next task in the list immediately , code after the add to the task queue will not run as it would out of the tests (see the code for more detail).</span></li>
</ol>
</li>
<li><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;">Check out and urlfetch (<a title="UrlFetchProxy_module.py" href="http://mattbsoftware.com/blog/GAE_Test/UrlFetchProxy_module.py" target="_blank">UrlFetchProxy_module.py</a>)</span></li>
<li><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;">Check out the tests in <a title="TaskQueueSampleTest.py" href="http://mattbsoftware.com/blog/GAE_Test/test/TaskQueueSampleTest.py" target="_blank">TaskQueueSampleTest.py</a> and <a title="UrlFetchExampleTest.py" href="http://mattbsoftware.com/blog/GAE_Test/test/UrlFetchExampleTest.py" target="_blank">UrlFetchExampleTest.py</a></span></span></li>
<li><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;"><a title="UrlFetchExampleTest.py" href="http://mattbsoftware.com/blog/GAE_Test/test/UrlFetchExampleTest.py" target="_blank"></a><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;">Fix up the sample python code,  I have only been using Python for a few months.  I think the code could be made more python-like.</span></span></span></li>
<li><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, 0;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;"><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, fantasy;">red-green-refactor all the live long day <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></span></span></span></li>
</ol>
</div>
<p>PS: I am only 6 months into python, and that is only when away from the day job.  I imagine the zipped code could be a little more Python-like.  Please suggest better Python practices.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=11&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/08/01/unit-testing-google-app-engine-task-queues-and-urlfetch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>How I got a new Apple 32GB 3GS iPhone for ~$30</title>
		<link>http://mattbsoftware.wordpress.com/2009/07/18/how-i-got-a-new-apple-32gb-3gs-iphone-for-30/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/07/18/how-i-got-a-new-apple-32gb-3gs-iphone-for-30/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 20:56:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/07/18/how-i-got-a-new-apple-32gb-3gs-iphone-for-30/</guid>
		<description><![CDATA[Prereqs: Have a 3G iPhone for 12-18 months Pay AT&#38;T more than $100 per month I listed my 1 year old 3G 16GB for $300 on craiglist. Within 4 hours I had 40 offers, almost all saying &#8220;I have cash, where can we meet.&#8221; I got a little more than originally paid for the iPhone, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=10&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Prereqs:</div>
<div>
<ul>
<li>Have a 3G iPhone for 12-18 months</li>
<li>Pay AT&amp;T more than $100 per month</li>
</ul>
</div>
<p>   I listed my 1 year old 3G 16GB for $300 on craiglist.  Within 4 hours I had 40 offers, almost all saying &#8220;I have cash, where can we meet.&#8221;  I got a little more than originally paid for the iPhone, in cash, and the buyer came to me.
<div></div>
<div>Next, I went to the apple store and bought my phone for a net price of ~$30!!!!!  </div>
<div>- $299 for 3GS/32GB</div>
<div>- $~30 fees</div>
<div>+$300 cash</div>
<div>&#8212;&#8212;&#8212;&#8212;&#8212;</div>
<div>=$~30  </div>
<div></div>
<div></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=10&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/07/18/how-i-got-a-new-apple-32gb-3gs-iphone-for-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>Be Very Careful with iPhone Mobile Provisioning</title>
		<link>http://mattbsoftware.wordpress.com/2009/04/29/be-very-careful-with-iphone-mobile-provisioning/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/04/29/be-very-careful-with-iphone-mobile-provisioning/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 00:30:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile Provisioning]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/04/29/be-very-careful-with-iphone-mobile-provisioning/</guid>
		<description><![CDATA[I have a new Mac Book Pro and have screwed it up twice by not carefully following instructions. I have been developing for iPhone with my iMac and wanted to be able to do the same on the MBP. At the end of both attempts my MBP could not see the iPhone, not even in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=7&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a new Mac Book Pro and have screwed it up twice by not carefully following instructions.   I have been developing for iPhone with my iMac and wanted to be able to do the same on the MBP.  At the end of both attempts my MBP could not see the iPhone, not even in iTunes.    A reload of OS-X will bring the devices back, but may have other consequenses.   I ultimately re-imaged my system and started over.   Read on to avoid my pain.</p>
<p>The secret is to carefully, slowly follow the instructions.</p>
<p>This is super high level description,  please read the Apple links below, they have the step-by-step instructions</p>
<p><span style="color:rgb(0,0,153);">These operations in the following order worked for me:</span>
<ol>
<li>Import private key for certificate &#8211; installed private key (double click  *.p12 &#8211; add to login)</li>
<li>Import certificate &#8211; installed cert &#8211; double click on *.cer &#8211; add to login</li>
<li>Import mobile provision &#8211; drag and drop .mobileprovision file on to the xcode icon on the doc</li>
</ol>
<p>Hints: store the above three files some where safe from destruction and prying hands.  (Apple suggests an encrypted DMG)</p>
<p><span style="color:rgb(51,204,255);font-size:130%;"><span style="color:rgb(0,0,153);"><u>I followed these steps</u>:</span></span><br />1.  Get your private key:  <a href="http://developer.apple.com/iPhone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html#//apple_ref/doc/uid/TP40007959-CH4-SW8">http://developer.apple.com/iPhone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html#//apple_ref/doc/uid/TP40007959-CH4-SW8</a><br />2. Dev Certificate and Mobile provision:  <a href="http://developer.apple.com/iPhone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html#//apple_ref/doc/uid/TP40007959-CH4-SW42">http://developer.apple.com/iPhone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html#//apple_ref/doc/uid/TP40007959-CH4-SW42</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=7&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/04/29/be-very-careful-with-iphone-mobile-provisioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>Home and End keys in Eclipse 3.4</title>
		<link>http://mattbsoftware.wordpress.com/2009/04/21/home-and-end-keys-in-eclipse-3-4/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/04/21/home-and-end-keys-in-eclipse-3-4/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 19:42:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Keyboard]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/04/21/home-and-end-keys-in-eclipse-3-4/</guid>
		<description><![CDATA[Eclipse doesn&#8217;t honor the OS wide key dictionary settings. This URL has a little info &#8211; http://www.kelek.com/blog/2006/09/16/fixing_home_end.html However those instructions are for eclipse 3.2. In eclipse 3.4 do the following: In Preferences&#124;General&#124;Keys Home/End of line Find the &#8216;Line End&#8217; command (use the filter) Copy the command (copy btn) &#8211; select the new version of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=6&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;">Eclipse doesn&#8217;t honor the OS wide key dictionary settings. This URL has a little info &#8211; http://www.kelek.com/blog/2006/09/16/fixing_home_end.html</p>
<p>However those instructions are for eclipse 3.2. In eclipse 3.4 do the following:</p>
<p>In Preferences|General|Keys</span>
<div><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;"><b><span class="Apple-style-span" style="color:#3333FF;">Home/End of line</span></b>
<ol>
<li>Find the &#8216;Line End&#8217; command (use the filter)</li>
<li>Copy the command (copy btn) &#8211; select the new version of the command.</li>
<li>Click in the &#8216;Binding&#8217; edit box.</li>
<li>Hit the &#8216;End&#8217; key</li>
<li>Choose &#8216;Editing Text&#8217; in the the &#8216;When&#8217; combo-box. </li>
</ol>
<div><span class="Apple-tab-span" style="white-space:pre;"> </span><span class="Apple-style-span" style="color:#3333FF;">Fix Text </span><span class="Apple-style-span" style="color:#3333FF;">Selection</span></div>
<ol>
<li>Find the &#8216;Select Line End&#8217; command</li>
<li>Make sure it is selected and click the &#8216;Copy&#8217; btn.</li>
<li>Get focus in the &#8216;Binding&#8217; edit box.</li>
<li>Type a Shift+End</li>
<li>Change &#8216;Windows&#8217; to &#8216;Editing Text&#8217; in the the &#8216;When&#8217; combo-box. </li>
</ol>
<p></span>
<div><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;">Rinse &amp; Repeat for Home &#8211; it&#8217;s key commands are &#8216;Line Start&#8217; and &#8216;Select Line Start&#8217;</span></div>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;"><br /></span></span></div>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;"><span class="Apple-style-span" style="color:rgb(0,0,0);line-height:normal;font-family:Georgia;font-size:16px;"><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;"><b><span class="Apple-style-span" style="color:#3333FF;">Home/End of text</span></b></span></span></span></span></div>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;"><span class="Apple-style-span" style="color:rgb(0,0,0);line-height:normal;font-family:Georgia;font-size:16px;"><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;"><b><span class="Apple-style-span" style="color:#3333FF;"></span></b></span>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;"><span class="Apple-style-span" style="color:rgb(0,0,0);line-height:normal;font-family:Georgia;font-size:16px;"><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;">
<ol>
<li>Find the &#8216;Text End&#8217; command (use the filter)</li>
<li>Copy the command (copy btn) &#8211; select the new version of the command.</li>
<li>Click in the &#8216;Binding&#8217; edit box.</li>
<li>type ctrl+end</li>
<li>Choose &#8216;Editing Text&#8217; in the the &#8216;When&#8217; combo-box. </li>
</ol>
<div><span class="Apple-tab-span" style="white-space:pre;"> </span><span class="Apple-style-span" style="color:#3333FF;">Fix Text </span><span class="Apple-style-span" style="color:#3333FF;">Selection</span></div>
<ol>
<li>Find the &#8216;Select Text End&#8217; command</li>
<li>Make sure it is selected and click the &#8216;Copy&#8217; btn.</li>
<li>Get focus in the &#8216;Binding&#8217; edit box.</li>
<li>Type a Ctrl+Shift+End</li>
<li>Change &#8216;Windows&#8217; to &#8216;Editing Text&#8217; in the the &#8216;When&#8217; combo-box. </li>
</ol>
<p></span>
<div><span class="Apple-style-span" style="color:rgb(51,51,51);line-height:18px;font-family:'Trebuchet MS';font-size:13px;">Rinse &amp; Repeat for Home &#8211; it&#8217;s key commands are &#8216;Text Start&#8217; and &#8216;Select Text Start&#8217;</span></div>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;"><br /></span></span></div>
<div><span class="Apple-style-span" style="font-family:'Trebuchet MS';font-size:100%;color:#333333;"><span class="Apple-style-span" style="line-height:18px;font-size:13px;">If anybody knows where this config info is saved please comment and I&#8217;ll drop the file somewhere so people can just d/l it.  I couldn&#8217;t find it in my workspace settings.</span></span></div>
<p></span></span></span></div>
<p></span></span></span></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=6&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/04/21/home-and-end-keys-in-eclipse-3-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get the IP address of an iPhone OS v2.2.1</title>
		<link>http://mattbsoftware.wordpress.com/2009/04/05/how-to-get-the-ip-address-of-an-iphone-os-v2-2-1/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/04/05/how-to-get-the-ip-address-of-an-iphone-os-v2-2-1/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 23:35:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/04/05/how-to-get-the-ip-address-of-an-iphone-os-v2-2-1/</guid>
		<description><![CDATA[Lately I have been struggling with an iPhone OS 2.2.1 app that needs to know the WiFi IP address of the iPhone. Unfortunately at the time the app runs it does not have internet access and thus I cannot use whatismyip.com. With thanks to Erica Sadun (iPhone cookbook) and gandreas and valexa on the iPhone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=5&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately I have been struggling with an iPhone OS 2.2.1 app that needs to know the WiFi IP address of the iPhone.   Unfortunately at the time the app runs it does not have internet access and thus I cannot use <a href="http://www.blogger.com/whatismyip.com">whatismyip.com</a>.</p>
<p>     With thanks to Erica Sadun (iPhone cookbook) and gandreas and valexa on the iPhone dev forums I was able to create the following function.   The function<code class="jive-code"> </code>iterates over the IPs of the phone using<span style="font-family:monospace;"> </span><code class="jive-code">getifaddrs(&amp;addrs)</code>.  if <code class="jive-code">getWiFiIPAddress </code>finds <code class="jive-code">"en0</code><code class="jive-code">"</code> in the list interface addresses (<code class="jive-code">ifaddrs</code>) it will return the ethernet adapter zero (<code class="jive-code">en0</code>) IP address as a <code class="jive-code">NSSring*</code>.  If no address <code class="jive-code"></code><code class="jive-code"></code> is found the function will return <code class="jive-code">NULL.</p>
<p></code><code class="jive-code">//-------  includes </code><br /><code class="jive-code"><br />#include &lt;ifaddrs.h&gt;<br />#include </code><code class="jive-code">&lt;</code><code class="jive-code">arpa/inet.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">sys/types.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">sys/socket.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">net/if.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">net/if_dl.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">arpa/inet.h</code><code class="jive-code">&gt;</code><br /><code class="jive-code">#include </code><code class="jive-code">&lt;</code><code class="jive-code">ifaddrs.h</code><code class="jive-code">&gt;</code><code class="jive-code"></p>
<p>#if ! defined(IFT_ETHER)<br />#define IFT_ETHER 0x6/* Ethernet CSMACD */<br />#endif</p>
<p>//-------  Implementation</p>
<p>- (NSString*)getWiFiIPAddress<br />{</p>
<p>BOOL                  success;<br />struct ifaddrs           * addrs;<br />const struct ifaddrs     * cursor;</p>
<p>success = getifaddrs(&amp;addrs) == 0;<br />if (success) {<br />  cursor = addrs;<br />  while (cursor != NULL) {<br />      if (cursor-&gt;ifa_addr-&gt;sa_family == AF_INET &amp;&amp; (cursor-&gt;ifa_flags &amp; IFF_LOOPBACK) == 0)  // this second test keeps from picking up the loopback address<br />      {<br />          NSString *name = [NSString stringWithUTF8String:cursor-&gt;ifa_name];<br />          if ([name isEqualToString:@"en0"]) { // found the WiFi adapter<br />              return [NSString stringWithUTF8String:inet_ntoa(((struct sockaddr_in *)cursor-&gt;ifa_addr)-&gt;sin_addr)];<br />          }<br />      }</p>
<p>      cursor = cursor-&gt;ifa_next;<br />  }<br />  freeifaddrs(addrs);<br />}<br />return NULL;<br />}</p>
<p></code>PS: I need a better blog, that support snippets &#8211; comments?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=5&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/04/05/how-to-get-the-ip-address-of-an-iphone-os-v2-2-1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>
	</item>
		<item>
		<title>Doskey like tab completion and various other fixes /power user hacks for the mac console prompt (ctrl-left,right arrow)</title>
		<link>http://mattbsoftware.wordpress.com/2009/04/03/doskey-like-tab-completion-and-various-other-fixes-power-user-hacks-for-the-mac-console-prompt-ctrl-leftright-arrow/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/04/03/doskey-like-tab-completion-and-various-other-fixes-power-user-hacks-for-the-mac-console-prompt-ctrl-leftright-arrow/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 00:55:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[console]]></category>
		<category><![CDATA[Keyboard]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/04/03/doskey-like-tab-completion-and-various-other-fixes-power-user-hacks-for-the-mac-console-prompt-ctrl-leftright-arrow/</guid>
		<description><![CDATA[Want to have the same keystrokes (plus more) that are seen in M$ command/doskey or cmd on the mac console? Especially ctrl-left-arrow, ctrl-right-arrow. I did. Many years ago (Slackware v2) I started this .inputrc and have since updated and translated it for the mac console (Terminal.App). For additional help &#8220;man bash&#8221; and search for &#8220;bind&#8221;. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=4&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Want to have the same keystrokes (plus more) that are seen in M$ command/doskey or cmd on the mac console?  Especially ctrl-left-arrow, ctrl-right-arrow.   I did.   Many years ago (Slackware v2) I started this .inputrc and have since updated and translated it for the mac console (Terminal.App).</p>
<p>For additional help &#8220;man bash&#8221; and search for &#8220;bind&#8221;.    You will find the definitions of the commands in .inputrc (i.e. <span style="color:rgb(153,153,153);">menu-complete</span>).  See the links at the end of the included .inputrc for additional help.  These instructions are for the console, look here for fixing home and end in regular mac GUI applications: <a href="http://www.starryhope.com/tech/2006/mac-os-x-home-and-end-keys/">http://www.starryhope.com/tech/2006/mac-os-x-h</a><a href="http://www.starryhope.com/tech/2006/mac-os-x-home-and-end-keys/">ome-and-end-keys/</a>.   If your really curious about how all this works, &#8220;man stty&#8221;</p>
<p>This first part focuses on home and end, I put comments in the .inputrc that will explain all the other cool keystrokes.</p>
<p><span style="color:rgb(0,0,153);">Only two Steps:</span>
<ol style="color:rgb(0,0,102);">
<li>Change keybindings in Terminal.App</li>
<li>Create/add to .inputrc</li>
</ol>
<p>___________________________________________________________</p>
<p><span style="color:rgb(0,0,102);font-size:180%;">1. Change keybindings in Ter</span><span style="color:rgb(0,0,102);"><span style="font-size:180%;">minal.App</span><br /></span>   Goto Terminal&#8217;s Preferences.   Select Keyboard.  Find the <span style="color:rgb(102,102,102);">end</span> key and click Edit.  Change the <span style="color:rgb(102,102,102);">end</span> key&#8217;s action to &#8220;send to string to shell&#8221;.  You&#8217;ll notice that backspace/delete do not work properly.  Use the Delete One Character button to backspace.   Set the string to &#8220;\33[4~&#8221;
<div style="text-align:center;"><a href="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdVxFmYCLVI/AAAAAAAAAAs/W0Tvh5XzxgU/s1600/Terminal.App+settings+home+send+keystroke.png"><img src="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdVxFmYCLVI/AAAAAAAAAAs/W0Tvh5XzxgU/s320/Terminal.App+settings+home+send+keystroke.png" alt="" border="0" /></a></div>
<p>I had some issues typing the &#8220;\&#8221; character in the string to send edit box so I cut-n-pasted from some other random key and just changed the trailing end of the keycode.</p>
<p>Do the same thing for the <span style="color:rgb(102,102,102);">home</span> key, except use &#8220;\33[1~&#8221;.    When your done Terminal&#8217;s preference&#8217;s should look something like this:<br /><a href="http://3.bp.blogspot.com/_P0bX3bmjBCw/Sd1nN9G4z9I/AAAAAAAAAA0/aEHIKc8OD54/s1600/Terminal.App+-+settings+window.png"><img src="http://3.bp.blogspot.com/_P0bX3bmjBCw/Sd1nN9G4z9I/AAAAAAAAAA0/aEHIKc8OD54/s320/Terminal.App+-+settings+window.png" alt="" border="0" /></a></p>
<p><span style="color:rgb(0,0,102);font-size:180%;">2. Drop this into ~/.inputrc</span><span style="font-size:180%;"> </span> <span style="color:rgb(0,153,0);">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><span style="color:rgb(0,153,0);">&#8212;&#8212;&#8212;&#8212;BOF<br /></span><span style="color:rgb(153,153,153);">#&#8221;\e[11~&#8221;: &#8220;Function Key 1&#8243;<br />#&#8221;\e[12~&#8221;: &#8220;Function Key 2&#8243;<br />#&#8221;\e[13~&#8221;: &#8220;Function Key 3&#8243;</span><br /><span style="color:rgb(153,153,153);">#&#8221;\e[14~&#8221;: &#8220;Function Key 4&#8243;<br />#&#8221;\e[15~&#8221;: &#8220;Function Key 5&#8243;<br />#&#8221;\e[17~&#8221;: &#8220;Function Key 6&#8243;<br />#&#8221;\e[18~&#8221;: &#8220;Function Key 7&#8243;<br />#&#8221;\e[19~&#8221;: &#8220;Function Key 8&#8243;<br />#&#8221;\e[20~&#8221;: &#8220;Function Key 9&#8243;<br />#&#8221;\e[21~&#8221;: &#8220;Function Key 10&#8243;</p>
<p># For Bash, all terminals, add some Bash specific hacks.<br />$if Bash<br />&#8220;\C-xv&#8221;: show-bash-version<br />&#8220;\C-x\C-e&#8221;: shell-expand-line</p>
<p>### fix delete key<br />&#8220;\e[3~&#8221;: delete-char</p>
<p>## END key  &#8212; MAC must be remapped in Terminal options (keyboard) &#8220;33[4~&#8221;<br />&#8220;\e[4~&#8221;:end-of-line<br />## HOME key &#8212; MAC must be remapped in Terminal options (keyboard) &#8220;33[1~&#8221;<br />&#8220;\e[1~&#8221;: beginning-of-line</p>
<p>$endif</p>
<p># For FTP, different hacks:<br />$if Ftp<br />&#8220;\C-xg&#8221;: &#8220;get \M-?&#8221;<br />&#8220;\C-xt&#8221;: &#8220;put \M-?&#8221;<br />&#8220;\M-.&#8221;: yank-last-arg<br />$endif</p>
<p>&#8221; &#8220;: self-insert</p>
<p>$if Bash</p>
<p># ctrl-backspace &#8211; none of this ever worked <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   &#8212; use ctrl-w instead (default)<br />### never worked &#8211;&gt;&#8221;\e\C-[D&#8221;: backward-kill-word<br />### Control-Rubout: backward-kill-word<br />##Map control-foward-delete to F14 &#8220;33[26~&#8221;<br />##&#8221;\e[26~&#8221;: backward-kill-word</p>
<p>#### doskey like completion<br />set completion-ignore-case On<br />&#8220;\e[A&#8221;: history-search-backward<br />&#8220;\e[B&#8221;: history-search-forward</p>
<p>#### doskey like line movement<br />#ctrl-left arrow<br />&#8220;\e[5D&#8221;: backward-word<br />#ctrl-right arrow<br />&#8220;\e[5C&#8221;: forward-word</p>
<p># auto list tab completions<br />set show-all-if-ambiguous on</p>
<p># show a filetype indicator in tab completions<br />set visible-stats on</p>
<p>## tab cycles through completions  &#8212; I like the show-all-if-ambiguous instead<br />#&#8221;\t&#8221;: menu-complete<br />## shift-tab to reverse cycle complete  <a href="http://www.tikirobot.net/wp/2006/03/29/reverse-menu-complete-in-bash/">http://www.tikirobot.net/wp/2006/03/29/reverse-menu-complete-in-bash/</a><br />#\C-y: &#8220;\e&#8211;\C-i&#8221;</p>
<p>### didn&#8217;t like this<br />#Space: magic-space</p>
<p>$endif</p>
<p># Include system wide settings which are ignored by default if one has their own .inputrc<br />$include /etc/inputrc</p>
<p>##helpful sites<br />#<a href="http://codesnippets.joyent.com/tag/inputrc">http://codesnippets.joyent.com/tag/inputrc</a><br />#<a href="http://linuxart.com/log/archives/2005/10/13/super-useful-inputrc/">http://linuxart.com/log/archives/2005/10/13/super-useful-inputrc/</a><br /></span><span style="color:rgb(0,153,0);">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;EOF</span></p>
<p>If ~/.inputrc doesn’t work, then you need to add</p>
<p>export INPUTRC=~/.inputrc</p>
<p>to your .bashrc/.bash_profile<span class="label-list"></span></p>
<p>If your wondering why I am bother with home/end it&#8217;s because I use a M$ ergo keyboards on my macs.  Why doesn&#8217;t Apple make one an ergonomic keyboard?</p>
<p>PS:  Read-line keys natively work in man mac apps (ctrl+e for end / ctrl+a for end / ctrl+k for kill line, etc)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=4&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/04/03/doskey-like-tab-completion-and-various-other-fixes-power-user-hacks-for-the-mac-console-prompt-ctrl-leftright-arrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>

		<media:content url="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdVxFmYCLVI/AAAAAAAAAAs/W0Tvh5XzxgU/s320/Terminal.App+settings+home+send+keystroke.png" medium="image" />

		<media:content url="http://3.bp.blogspot.com/_P0bX3bmjBCw/Sd1nN9G4z9I/AAAAAAAAAA0/aEHIKc8OD54/s320/Terminal.App+-+settings+window.png" medium="image" />
	</item>
		<item>
		<title>Colorful ls (dircolors) on a mac console (terminal.app)</title>
		<link>http://mattbsoftware.wordpress.com/2009/04/02/colorful-ls-dircolors-on-a-mac-console-terminal-app/</link>
		<comments>http://mattbsoftware.wordpress.com/2009/04/02/colorful-ls-dircolors-on-a-mac-console-terminal-app/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 01:55:00 +0000</pubDate>
		<dc:creator>mattbsoftware</dc:creator>
				<category><![CDATA[console]]></category>
		<category><![CDATA[coreutils]]></category>
		<category><![CDATA[ls]]></category>

		<guid isPermaLink="false">http://mattbsoftware.wordpress.com/2009/04/02/colorful-ls-dircolors-on-a-mac-console-terminal-app/</guid>
		<description><![CDATA[On linux systems when I listed the contents of a directory (ls) I saw a colorful list. Different colors were used for compressed files, directories, images, etc. Install GNU coreutils Steps: Download coreutils (I used v7.2). d/l http://ftp.gnu.org/gnu/coreutils site: http://www.gnu.org/software/coreutils untar it tar xzvf coreututils-7.2.tar.gz cd into the coreutils-7.2 directory ./configure &#8211;prefix=/usr make make check [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=3&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdQbn6-CudI/AAAAAAAAAAc/vXIv5PG_u2w/s1600/mac+console+-+colorful+ls.png"><img src="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdQbn6-CudI/AAAAAAAAAAc/vXIv5PG_u2w/s400/mac+console+-+colorful+ls.png" border="0" alt="" /></a></p>
<div style="text-align:center;">
<p style="text-align:left;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-family:Georgia;font-size:16px;margin:0;">
<p style="text-align:left;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-family:Georgia;font-size:16px;margin:0;">
<p style="text-align:left;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;margin:0;"><span style="white-space:pre;"> </span>On linux systems when I listed the contents of a directory (ls) I saw a colorful list. Different colors were used for compressed files, directories, images, etc.</p>
</div>
<div style="text-align:left;"><span style="color:#000000;"><a style="text-decoration:none;" href="http://3.bp.blogspot.com/_P0bX3bmjBCw/SdQbTI3wmTI/AAAAAAAAAAU/dXGHhUQa_Ls/s1600/mac+console+-+colorful+ls.png"><br />
</a></span></div>
<div style="text-align:left;"><span style="color:#0000ee;">Install GNU coreutils Steps:</span></div>
<div style="text-align:left;">
<ol>
<li>Download coreutils (I used v7.2). d/l <a href="http://ftp.gnu.org/gnu/coreutils">http://ftp.gnu.org/gnu/coreutils</a> site: <a href="http://www.gnu.org/software/coreutils">http://www.gnu.org/software/coreutils</a></li>
<li>untar it tar xzvf  coreututils-7.2.tar.gz</li>
<li>cd into the coreutils-7.2 directory</li>
<li>./configure &#8211;prefix=/usr</li>
<li>make</li>
<li>make check &#8211; (I had 2 test failures, but no problems)</li>
<li>Install all GNU core utils by executing &#8216;sudo make install&#8217;</li>
<li>OR just install ls and dircolors, and leave everything else BSD by copying ls &amp; dircolors from ./src to /usr/bin</li>
</ol>
<div><span style="color:#000099;">Setup bash_profile</span></div>
<ol>
<li>edit .bash_profile</li>
<li>add these lines</li>
</ol>
<div style="text-align:left;">&lt;code&gt;</div>
<div style="text-align:left;">#parses .dircolors and makes env var for GNU ls</div>
<div style="text-align:left;">eval `dircolors`</div>
<p>alias ls=&#8217;ls -hF &#8211;color=auto&#8217;</p></div>
<div style="text-align:left;"><span style="color:#000099;">&lt;/code&gt;</span></div>
<div style="text-align:left;"><span style="color:#000099;">Setup .dircolors</span></div>
<div style="text-align:left;"><span style="color:#33cc00;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-BOF .dircolors</span></div>
<div style="text-align:left;"><span style="color:#33cc00;">&lt;code&gt;</span></div>
<div style="text-align:left;"><span style="color:#000099;"><span style="color:#666666;"># Configuration file for dircolors, a utility to help you set the</span><br />
<span style="color:#666666;"># LS_COLORS environment variable used by GNU ls with the &#8211;color option.</span></p>
<p><span style="color:#666666;"># The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the</span><br />
<span style="color:#666666;"># slackware version of dircolors) are recognized but ignored.</span></p>
<p><span style="color:#666666;"># Below, there should be one TERM entry for each termtype that is colorizable</span><br />
<span style="color:#666666;">TERM linux</span><br />
<span style="color:#666666;">TERM linux-c</span><br />
<span style="color:#666666;">TERM mach-color</span><br />
<span style="color:#666666;">TERM console</span><br />
<span style="color:#666666;">TERM con132x25</span><br />
<span style="color:#666666;">TERM con132x30</span><br />
<span style="color:#666666;">TERM con132x43</span><br />
<span style="color:#666666;">TERM con132x60</span><br />
<span style="color:#666666;">TERM con80x25</span><br />
<span style="color:#666666;">TERM con80x28</span><br />
<span style="color:#666666;">TERM con80x30</span><br />
<span style="color:#666666;">TERM con80x43</span><br />
<span style="color:#666666;">TERM con80x50</span><br />
<span style="color:#666666;">TERM con80x60</span><br />
<span style="color:#666666;">TERM xterm</span><br />
<span style="color:#666666;">TERM xterm-debian</span><br />
<span style="color:#666666;">TERM rxvt</span><br />
<span style="color:#666666;">TERM screen</span><br />
<span style="color:#666666;">TERM screen-w</span><br />
<span style="color:#666666;">TERM vt100</span></p>
<p><span style="color:#666666;"># Below are the color init strings for the basic file types. A color init</span><br />
<span style="color:#666666;"># string consists of one or more of the following numeric codes:</span><br />
<span style="color:#666666;"># Attribute codes:</span><br />
<span style="color:#666666;"># 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed</span><br />
<span style="color:#666666;"># Text color codes:</span><br />
<span style="color:#666666;"># 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white</span><br />
<span style="color:#666666;"># Background color codes:</span><br />
<span style="color:#666666;"># 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white</span><br />
<span style="color:#666666;">NORMAL 00    # global default, although everything should be something.</span><br />
<span style="color:#666666;">FILE 00     # normal file</span><br />
<span style="color:#666666;">DIR 01;34     # directory</span><br />
<span style="color:#666666;">LINK 01;36     # symbolic link.  (If you set this to &#8216;target&#8217; instead of a</span><br />
<span style="color:#666666;"> # numerical value, the color is as for the file pointed to.)</span><br />
<span style="color:#666666;">FIFO 40;33    # pipe</span><br />
<span style="color:#666666;">SOCK 01;35    # socket</span><br />
<span style="color:#666666;">DOOR 01;35    # door</span><br />
<span style="color:#666666;">BLK 40;33;01    # block device driver</span><br />
<span style="color:#666666;">CHR 40;33;01     # character device driver</span><br />
<span style="color:#666666;">ORPHAN 40;31;01 # symlink to nonexistent file</span></p>
<p><span style="color:#666666;"># This is for files with execute permission:</span><br />
<span style="color:#666666;">EXEC 01;32</span></p>
<p><span style="color:#666666;"># List any file extensions like &#8216;.gz&#8217; or &#8216;.tar&#8217; that you would like ls</span><br />
<span style="color:#666666;"># to colorize below. Put the extension, a space, and the color init string.</span><br />
<span style="color:#666666;"># (and any comments you want to add after a &#8216;#&#8217;)</span></p>
<p><span style="color:#666666;"># If you use DOS-style suffixes, you may want to uncomment the following:</span><br />
<span style="color:#666666;">#.cmd 01;32 # executables (bright green)</span><br />
<span style="color:#666666;">#.exe 01;32</span><br />
<span style="color:#666666;">#.com 01;32</span><br />
<span style="color:#666666;">#.btm 01;32</span><br />
<span style="color:#666666;">#.bat 01;32</span></p>
<p><span style="color:#666666;">.tar 01;31 # archives or compressed (bright red)</span><br />
<span style="color:#666666;">.tgz 01;31</span><br />
<span style="color:#666666;">.arj 01;31</span><br />
<span style="color:#666666;">.taz 01;31</span><br />
<span style="color:#666666;">.lzh 01;31</span><br />
<span style="color:#666666;">.zip 01;31</span><br />
<span style="color:#666666;">.z   01;31</span><br />
<span style="color:#666666;">.Z   01;31</span><br />
<span style="color:#666666;">.gz  01;31</span><br />
<span style="color:#666666;">.bz2 01;31</span><br />
<span style="color:#666666;">.deb 01;31</span><br />
<span style="color:#666666;">.rpm 01;31</span><br />
<span style="color:#666666;">.jar 01;31</span><br />
<span style="color:#666666;">.dmg 01;31</span></p>
<p><span style="color:#666666;"># image formats</span><br />
<span style="color:#666666;">.jpg 01;35</span><br />
<span style="color:#666666;">.png 01;35</span><br />
<span style="color:#666666;">.gif 01;35</span><br />
<span style="color:#666666;">.bmp 01;35</span><br />
<span style="color:#666666;">.ppm 01;35</span><br />
<span style="color:#666666;">.tga 01;35</span><br />
<span style="color:#666666;">.xbm 01;35</span><br />
<span style="color:#666666;">.xpm 01;35</span><br />
<span style="color:#666666;">.tif 01;35</span><br />
<span style="color:#666666;">.png 01;35</span><br />
<span style="color:#666666;">.mpg 01;35</span><br />
<span style="color:#666666;">.avi 01;35</span><br />
<span style="color:#666666;">.fli 01;35</span><br />
<span style="color:#666666;">.gl 01;35</span><br />
<span style="color:#666666;">.dl 01;35</span></p>
<p></span></div>
<div style="text-align:left;"><span style="color:#000099;"><span style="color:#666666;"><span style="color:#009900;">&lt;/code&gt;</span></span></span></div>
<div style="text-align:left;"><span style="color:#666666;"><span style="color:#009900;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;EOF .dircolors</span><br />
</span><br />
All Done, type ls at a console prompt and your golden, or purple(directories), green(executables), etc&#8230;</div>
<div style="text-align:left;"><span style="color:#000099;"></p>
<p>- mattb</p>
<p>PS: Once an Apple update, updated ls, not problems, just remake and reinstall</p>
<p></span></div>
<div style="text-align:left;"><span style="color:#000099;">PPS: A friend reminded me that if you want to keep BSD ls on your mac, you can simply alias ls=&#8217;ls- -G&#8217;  It is not as configurable that I know, but anything is better than colorless</span></div>
<div style="text-align:left;"><span style="color:#000099;"><br />
</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbsoftware.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbsoftware.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbsoftware.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattbsoftware.wordpress.com&amp;blog=7240511&amp;post=3&amp;subd=mattbsoftware&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mattbsoftware.wordpress.com/2009/04/02/colorful-ls-dircolors-on-a-mac-console-terminal-app/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fc1237773ae92bdbe27a1d143845082?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattbsoftware</media:title>
		</media:content>

		<media:content url="http://4.bp.blogspot.com/_P0bX3bmjBCw/SdQbn6-CudI/AAAAAAAAAAc/vXIv5PG_u2w/s400/mac+console+-+colorful+ls.png" medium="image" />
	</item>
	</channel>
</rss>
