<?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>dev.enekoalonso.com &#187; osx</title>
	<atom:link href="http://dev.enekoalonso.com/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com</link>
	<description>having fun with code</description>
	<lastBuildDate>Wed, 12 Oct 2011 21:40:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Uninstalling brew (so I can reinstall)</title>
		<link>http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/</link>
		<comments>http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 03:22:46 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[brew]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unistall]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=717</guid>
		<description><![CDATA[Uninstall cd `brew &#8212;-prefix` rm -rf Cellar brew prune rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew rm -rf ~/Library/Caches/Homebrew http://superuser.com/questions/203707/how-to-uninstall-homebrew-osx-packet-manager Reinstall /usr/bin/ruby -e &#34;$(curl -fsSL https://raw.github.com/gist/323731)&#34; https://github.com/mxcl/homebrew/wiki/Installation Related Posts:July 13, 2011 -- Clone your OSX terminal window (1)October 5, 2010 -- Javascript console in the terminal (command line) (1)December 5, 2008 -- Enabling PHP5 [...]]]></description>
			<content:encoded><![CDATA[<h3>Uninstall</h3>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> `brew &#8212;-prefix`</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> -rf Cellar</div>
</li>
<li class="li1">
<div class="de1">brew <span class="kw2">prune</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> -rf Library .git .gitignore bin<span class="sy0">/</span>brew README.md share<span class="sy0">/</span><span class="kw2">man</span><span class="sy0">/</span>man1<span class="sy0">/</span>brew</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> -rf ~<span class="sy0">/</span>Library<span class="sy0">/</span>Caches<span class="sy0">/</span>Homebrew</div>
</li>
</ol>
</div>
<p><a href="http://superuser.com/questions/203707/how-to-uninstall-homebrew-osx-packet-manager">http://superuser.com/questions/203707/how-to-uninstall-homebrew-osx-packet-manager</a></p>
<h3>Reinstall</h3>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">/</span>usr<span class="sy0">/</span>bin<span class="sy0">/</span>ruby -e <span class="st0">&quot;$(curl -fsSL https://raw.github.com/gist/323731)&quot;</span></div>
</li>
</ol>
</div>
<p><a href="https://github.com/mxcl/homebrew/wiki/Installation">https://github.com/mxcl/homebrew/wiki/Installation</a></p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>July 13, 2011 -- <a href="http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/" title="Clone your OSX terminal window">Clone your OSX terminal window</a> (1)</li><li>October 5, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/" title="Javascript console in the terminal (command line)">Javascript console in the terminal (command line)</a> (1)</li><li>December 5, 2008 -- <a href="http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/" title="Enabling PHP5 on Mac OS X Leopard">Enabling PHP5 on Mac OS X Leopard</a> (0)</li><li>November 28, 2008 -- <a href="http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/" title="MyGameOfLife source code">MyGameOfLife source code</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clone your OSX terminal window</title>
		<link>http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/</link>
		<comments>http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 16:13:22 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[osascript]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[scpt]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=710</guid>
		<description><![CDATA[Sometimes, when working on a terminal window I would like to open a new window on the exact same location or path. This little AppleScript will do the trick: tell app &#34;Terminal&#34; to do script &#34;cd \&#34;&#39;`pwd`&#39;\&#34;&#34; From the command line: osascript -e &#39;tell app &#34;Terminal&#34; to do script &#34;cd \&#8221;&#39;`pwd`&#39;\&#8221;&#34;&#39; You can also create [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, when working on a terminal window I would like to open a new window on the exact same location or path. This little AppleScript will do the trick:</p>
<div class="geshi no applescript">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">tell</span> app <span class="st0">&quot;Terminal&quot;</span> <span class="kw1">to</span> do <span class="kw1">script</span> <span class="st0">&quot;cd <span class="es0">\&quot;</span>&#39;`pwd`&#39;<span class="es0">\&quot;</span>&quot;</span></div>
</li>
</ol>
</div>
<p>From the command line:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">osascript -e <span class="st0">&#39;tell app &quot;Terminal&quot; to do script &quot;cd <span class="es0">\&#8221;</span>&#39;</span>`<span class="kw3">pwd</span>`<span class="st0">&#39;<span class="es0">\&#8221;</span>&quot;&#39;</span></div>
</li>
</ol>
</div>
<p>You can also create an alias in ~/.profile for easy access:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">alias</span> <span class="re2">nt=</span><span class="st0">&quot;osascript -e &#39;tell app <span class="es0">\&quot;</span>Terminal<span class="es0">\&quot;</span> to do script <span class="es0">\&quot;</span>cd <span class="es0">\\</span><span class="es0">\&quot;</span>&#39;`pwd`&#39;<span class="es0">\\</span><span class="es0">\&quot;</span><span class="es0">\&quot;</span>&#39;&quot;</span></div>
</li>
</ol>
</div>
<p>Enjoy!</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>October 5, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/" title="Javascript console in the terminal (command line)">Javascript console in the terminal (command line)</a> (1)</li><li>January 3, 2009 -- <a href="http://dev.enekoalonso.com/2009/01/03/check-your-server-status-with-email-notification/" title="Check your server status with email notification">Check your server status with email notification</a> (0)</li><li>December 5, 2008 -- <a href="http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/" title="Enabling PHP5 on Mac OS X Leopard">Enabling PHP5 on Mac OS X Leopard</a> (0)</li><li>August 9, 2011 -- <a href="http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/" title="Uninstalling brew (so I can reinstall)">Uninstalling brew (so I can reinstall)</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript console in the terminal (command line)</title>
		<link>http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/</link>
		<comments>http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 04:15:19 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[exe]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=672</guid>
		<description><![CDATA[I&#8217;ve been looking for a command line Javascript console for a while. I have even thought of creating my own one, some hybrid between my fake Linux terminal and JSFiddle.net. Lately, I&#8217;ve been working with node.js lately on a little project just for fun. Never before I had done server side Javascript and it looks [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a command line Javascript console for a while. I have even thought of creating my own one, some hybrid between <a href="http://enekoalonso.com">my fake Linux terminal</a> and <a href="http://www.jsfiddle.net">JSFiddle.net</a>. Lately, I&#8217;ve been working with <a href="http://dev.enekoalonso.com/tag/node-js/">node.js</a> lately on a little project just for fun. Never before I had done server side Javascript and it looks like it has serious potential. But still, I had no console other than Firebug or, my favorite, the one included in Webkit.</p>
<p>So I am very happy after coming across this article which shows <a href="http://webreflection.blogspot.com/2010/10/javascriptcore-via-terminal.html">how to use the JavaScriptCore.Framework included in Mac OS X on the command line</a>. Doing some Google searches, looks like people have been talking about this <a href="http://www.phpied.com/javascript-shell-scripting/">for a long time</a>. Even more! Here is <a href="http://www.phpied.com/make-your-javascript-a-windows-exe/">how to compile javascript to .exe in Windows</a>. Didn&#8217;t even thought that could be possible, being Javascript such a dynamic language.</p>
<p>One interesting thing about the jsc Javascript console is that you can load() javascript files from disk. Thus, one can get the <a href="http://mootools.net/core">Mootools core</a> (Core + Function + Array + Number + String + Hash + Class + Class.Extras + JSON) and load it to start creating awesome classes, etc.</p>
<p>This is going to be a lot of fun :)</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>October 12, 2011 -- <a href="http://dev.enekoalonso.com/2011/10/12/command-line-scripting-with-node-js/" title="Command line scripting with Node.js">Command line scripting with Node.js</a> (0)</li><li>July 13, 2011 -- <a href="http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/" title="Clone your OSX terminal window">Clone your OSX terminal window</a> (1)</li><li>September 17, 2010 -- <a href="http://dev.enekoalonso.com/2010/09/17/mootools-core-for-server-and-mobile-development/" title="MooTools Core for Server and Mobile Development">MooTools Core for Server and Mobile Development</a> (1)</li><li>July 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/07/30/titanium-developer-love-and-hate/" title="Titanium Developer: love and hate">Titanium Developer: love and hate</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling PHP5 on Mac OS X Leopard</title>
		<link>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/</link>
		<comments>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 05:07:43 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=85</guid>
		<description><![CDATA[I had done this already at work, but for some reason my MacBook Pro still didn&#8217;t &#8220;understand&#8221; PHP. Well, I&#8217;ve decided it&#8217;s time to activate it: # Use your favorite editor mate /etc/apache2/httpd.conf # Uncomment the line: #LoadModule php5_module libexec/apache2/libphp5.so # Restart apache sudo apachectl restart Done. Related Posts:January 31, 2010 -- CloudServers: Creating a [...]]]></description>
			<content:encoded><![CDATA[<p>I had done this already at work, but for some reason my MacBook Pro still didn&#8217;t &#8220;understand&#8221; PHP. Well, I&#8217;ve decided it&#8217;s time to activate it:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># Use your favorite editor</span></div>
</li>
<li class="li1">
<div class="de1">mate <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>httpd.conf</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Uncomment the line:</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#LoadModule php5_module libexec/apache2/libphp5.so</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Restart apache</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apachectl restart</div>
</li>
</ol>
</div>
<p>Done.</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/" title="CloudServers: Creating a new web server with httpd, php &#038; memcached">CloudServers: Creating a new web server with httpd, php &#038; memcached</a> (1)</li><li>July 13, 2011 -- <a href="http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/" title="Clone your OSX terminal window">Clone your OSX terminal window</a> (1)</li><li>October 5, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/" title="Javascript console in the terminal (command line)">Javascript console in the terminal (command line)</a> (1)</li><li>August 9, 2011 -- <a href="http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/" title="Uninstalling brew (so I can reinstall)">Uninstalling brew (so I can reinstall)</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyGameOfLife source code</title>
		<link>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/</link>
		<comments>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 06:11:25 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[conway]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameoflife]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[googlecode]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=40</guid>
		<description><![CDATA[Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of Conway&#8217;s Game of Life. Back then I didn&#8217;t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It&#8217;s not fully functional, since [...]]]></description>
			<content:encoded><![CDATA[<p>Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of <a href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway&#8217;s Game of Life</a>. Back then I didn&#8217;t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It&#8217;s not fully functional, since the last time I worked on it I was creating an structure editor. My idea was to create a library of structures, with drag&#038;drop and import/export options.</p>
<p>If you are interested on working on the project, let me know :)</p>
<p><a href="http://code.google.com/p/my-gameoflife">http://code.google.com/p/my-gameoflife</a></p>
<p><a href="http://www.flickr.com/photos/eneko/2142616139/" title="My Game of Life by Eneko Alonso, on Flickr"><img src="http://farm3.static.flickr.com/2104/2142616139_eed0282fca_o.png" width="500" height="359" alt="My Game of Life" /></a></p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>August 18, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/" title="Titanium Developer: love and hate (Part II)">Titanium Developer: love and hate (Part II)</a> (0)</li><li>May 12, 2011 -- <a href="http://dev.enekoalonso.com/2011/05/12/angry-birds-as-a-web-app/" title="Angry Birds as a Web App">Angry Birds as a Web App</a> (0)</li><li>August 27, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/27/link-whirlpool-js/" title="Link: Whirlpool JS">Link: Whirlpool JS</a> (0)</li><li>July 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/07/30/creating-qr-codes-with-google-charts-api/" title="Creating QR Codes with Google Charts API">Creating QR Codes with Google Charts API</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

