<?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>Bubble Foundry &#187; OS X</title>
	<atom:link href="http://www.bubblefoundry.com/blog/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bubblefoundry.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 18:23:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.bubblefoundry.com/?pushpress=hub'/>
		<item>
		<title>Displaying Unicode Characters in the Scala REPL on OS X</title>
		<link>http://www.bubblefoundry.com/blog/2010/10/displaying-unicode-characters-in-the-scala-repl-on-os-x/</link>
		<comments>http://www.bubblefoundry.com/blog/2010/10/displaying-unicode-characters-in-the-scala-repl-on-os-x/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 20:19:18 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[REPL]]></category>
		<category><![CDATA[Scala]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://www.bubblefoundry.com/?p=507</guid>
		<description><![CDATA[So simple but unforuntately I missed it until now: scala -Dfile.encoding=&#34;UTF-8&#34; Now you can go to town with characters like ø and ∫! Oh, and you may want to alias this command in your ~/.profile: alias scala='scala -Dfile.encoding=&#34;UTF-8&#34;']]></description>
			<content:encoded><![CDATA[<p>So simple but unforuntately I missed it until now:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">scala -Dfile.encoding=<span style="color: #ff0000;">&quot;UTF-8&quot;</span></pre></div></div>

<p>Now you can go to town with characters like ø and ∫! Oh, and you may want to alias this command in your <code>~/.profile</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">scala</span>=<span style="color: #ff0000;">'scala -Dfile.encoding=&quot;UTF-8&quot;'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bubblefoundry.com/blog/2010/10/displaying-unicode-characters-in-the-scala-repl-on-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tweaking iTunes Settings</title>
		<link>http://www.bubblefoundry.com/blog/2010/10/tweaking-itunes-settings/</link>
		<comments>http://www.bubblefoundry.com/blog/2010/10/tweaking-itunes-settings/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 21:23:47 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.bubblefoundry.com/?p=504</guid>
		<description><![CDATA[Over the last few iTunes revisions there have been several changes that, in my opinion, have made the iTunes user interface slightly less usable. Luckily, almost all the changes can be reversed by changing the right property values. Here&#8217;s the Bash function I wrote today so I can toggle the settings without remembering the special [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few iTunes revisions there have been several changes that, in my opinion, have made the iTunes user interface slightly less usable. Luckily, almost all the changes can be reversed by changing the right property values.</p>
<p>Here&#8217;s the Bash function I wrote today so I can toggle the settings without remembering the special commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tweak iTunes</span>
iTunes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        open <span style="color: #660033;">-a</span> iTunes
    <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">in</span>
            <span style="color: #ff0000;">&quot;buttons&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
                    <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">in</span>
                        <span style="color: #666666; font-style: italic;"># the standard OS X (ie pre-iTunes 10) layout</span>
                        <span style="color: #ff0000;">&quot;horizontal&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes full-window <span style="color: #660033;">-1</span><span style="color: #000000; font-weight: bold;">;;</span>
                        <span style="color: #666666; font-style: italic;"># iTunes 10 layout</span>
                        <span style="color: #ff0000;">&quot;vertical&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes full-window <span style="color: #660033;">-0</span><span style="color: #000000; font-weight: bold;">;;</span>
                    <span style="color: #000000; font-weight: bold;">esac</span>
                <span style="color: #000000; font-weight: bold;">else</span>
                    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Additional parameter required.&quot;</span>;
                <span style="color: #000000; font-weight: bold;">fi</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
            <span style="color: #ff0000;">&quot;arrows&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
                    <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">in</span>
                        <span style="color: #666666; font-style: italic;"># arrows go to entries in the iTunes Music Store (default)</span>
                        <span style="color: #ff0000;">&quot;store&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes invertStoreLinks <span style="color: #660033;">-bool</span> FALSE<span style="color: #000000; font-weight: bold;">;;</span>
                        <span style="color: #666666; font-style: italic;"># arrows go to entries within the local iTunes library</span>
                        <span style="color: #ff0000;">&quot;library&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes invertStoreLinks <span style="color: #660033;">-bool</span> TRUE<span style="color: #000000; font-weight: bold;">;;</span>
                        <span style="color: #666666; font-style: italic;"># show arrows next to songs, artists, albums (ie pre iTunes 10.0.1)</span>
                        <span style="color: #ff0000;">&quot;on&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes show-store-link-arrows <span style="color: #660033;">-bool</span> TRUE<span style="color: #000000; font-weight: bold;">;;</span>
                        <span style="color: #666666; font-style: italic;"># don't show arrows (ie iTunes 10.0.1)</span>
                        <span style="color: #ff0000;">&quot;off&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.iTunes show-store-link-arrows <span style="color: #660033;">-bool</span> FALSE<span style="color: #000000; font-weight: bold;">;;</span>
                    <span style="color: #000000; font-weight: bold;">esac</span>
                <span style="color: #000000; font-weight: bold;">else</span>
                    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Additional parameter required.&quot;</span>;
                <span style="color: #000000; font-weight: bold;">fi</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
            <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Invalid option.&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Just drop it into your <code>~/.profile</code>, save, and reload from the Terminal (<code>source ~/.profile</code>) and you&#8217;re good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bubblefoundry.com/blog/2010/10/tweaking-itunes-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the Google App Engine SDK and Django 1.0.2</title>
		<link>http://www.bubblefoundry.com/blog/2009/05/installing-the-google-app-engine-sdk-and-django-102/</link>
		<comments>http://www.bubblefoundry.com/blog/2009/05/installing-the-google-app-engine-sdk-and-django-102/#comments</comments>
		<pubDate>Wed, 06 May 2009 16:38:49 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[App Engine]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Django 1.0]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google-app-engine-django]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://www.bubblefoundry.com/?p=199</guid>
		<description><![CDATA[This was quite tricky for me, so I&#8217;m writing this down to share it with others. Install the SDK Simply download the SDK and install it. On Mac OS X that meant that I mounted the disk image, dragged the SDK app to my applications directory, and launched it. Make sure to give the app [...]]]></description>
			<content:encoded><![CDATA[<p>This was quite tricky for me, so I&#8217;m writing this down to share it with others.</p>
<ol>
<li>
<h4>Install the SDK</h4>
<p>Simply <a href="http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python">download</a> the SDK and install it. On Mac OS X that meant that I mounted the disk image, dragged the SDK app to my applications directory, and launched it. Make sure to give the app the necessary permission to create symlinks.</li>
<li>
<h4>Get the latest version of google-app-engine-django</h4>
<p>Use SVN to export the latest version of <a href="http://code.google.com/p/google-app-engine-django/">google-app-engine-django</a>: <code>svn export http://google-app-engine-django.googlecode.com/svn/trunk/ your-app-dir</code></p>
</li>
<li>
<h4>Get the latest stable version of Django</h4>
<p>Download from <a href="http://www.djangoproject.com/download/">http://www.djangoproject.com/download/</a>. Decompress it.</p>
</li>
<li>
<h4>Zip up Django</h4>
<p>Google Apps currently uses version 0.96 of Django and they do not plan to switch in the near future. Thus, you need to put a <code><a href="http://code.google.com/appengine/articles/django10_zipimport.html">django.zip</a></code> file in your App Engine app directory, <code>your-app-dir</code>. You create the file by, from the Terminal, going to the directory of the new version of Django you downloaded and typing:</p>
<ol>
<li><code>zip -r django.zip django/__init__.py django/bin django/core django/db django/dispatch django/forms django/http django/middleware django/shortcuts  django/template django/templatetags  django/test django/utils django/views</code></li>
<li><code>zip -r django.zip django/conf -x 'django/conf/locale/*'</code></li>
<li><code>zip -r django.zip django/contrib/__init__.py django/contrib/formtools django/contrib/auth django/contrib/sessions</code>
<p>Note there is an oversight in the <a href="http://code.google.com/appengine/articles/django10_zipimport.html">App Engine article about zipping Django 1.0</a>; the <a href="http://markmail.org/message/tx5nf4ynvktah2du">last two directories are necessary</a>.</li>
</ol>
</li>
<li>
<h4>Edit settings</h4>
<p>Open <code>app.yaml</code> in your App Engine app directory and change the application name on line 1 to the name of your application. Then, open <code>settings.py</code> and uncomment line 83 so that <code>django.contrib.sessions.middleware.SessionMiddleware</code> is included.</p>
</li>
<li>
<h4>Launch the default app</h4>
<p>From your App Engine app directory, launch the server: <code>python manage.py runserver</code>. If everything went correctly you should see the server mention using zipimporter and then announce that your app is running at http://localhost:8000. Open the URL and your should see a simple welcome message.</li>
<li>
<h4>Build your app!</h4>
<p>Now you can get started building a Django app on App Engine. Make sure to read the <a href="http://code.google.com/appengine/articles/appengine_helper_for_django.html">article on using the Django App Engine helper</a> to see how to start building your app.</p>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.bubblefoundry.com/blog/2009/05/installing-the-google-app-engine-sdk-and-django-102/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

