<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">benmont</title>
<subtitle type="html"><![CDATA[
this is whatever i want it to be
]]></subtitle>
<id>http://www.benmont.com/index.atom</id>
<link rel="alternate" type="text/html" href="http://www.benmont.com" />
<link rel="self" type="application/atom+xml" href="http://www.benmont.com/index.atom" />


<author>
<name>Michael</name>
<uri>http://www.benmont.com/index.atom</uri>
<email>no@way.com</email>
</author>
<rights>Copyright 2015</rights>
<generator uri="http://pyblosxom.bluesock.org/" version="1.5.3">
PyBlosxom http://pyblosxom.bluesock.org/ 1.5.3
</generator>

<updated>2012-12-06T18:45:00Z</updated>
<!-- icon?  logo?  -->

<entry>
<title type="html">Building a GCC cross compile tool chain for Linux ARM on OS X Mountain Lion</title>
<category term="/tech" />
<id>http://www.benmont.com/2012/12/06/crosscompiler</id>
<updated>2012-12-06T18:45:00Z</updated>
<published>2012-12-06T18:45:00Z</published>
<link rel="alternate" type="text/html" href="http://www.benmont.com/tech/crosscompiler.html" />
<content type="html">&lt;p&gt;If you have a Beagleboard, Pandaboard, Raspberry Pi, or other ARM hardware running Linux, and you want to compile and debug C&#x2F;C++ applications from your Windows or Linux desktop, it&#x27;s relatively straightforward: &lt;a href=&quot;http:&#x2F;&#x2F;www.mentor.com&#x2F;embedded-software&#x2F;sourcery-tools&#x2F;sourcery-codebench&#x2F;editions&#x2F;lite-edition&#x2F;&quot;&gt;download&lt;&#x2F;a&gt; a pre-built tool chain from Mentor Graphics (formerly Code Sourcery). No such luck for OS X users. You have to build it yourself, and it&#x27;s pretty painful. Hopefully, the info below will make it less painful for you. If you don&#x27;t care to build the tools yourself, &lt;a href=&quot;https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;armlinuxgccosx&#x2F;&quot;&gt;I posted the binaries on SourceForge&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Here&#x27;s what I had to do to build all the cross compile binaries:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Install the latest &lt;a href=&quot;https:&#x2F;&#x2F;developer.apple.com&#x2F;downloads&#x2F;index.action&quot;&gt;Command Line Tools for XCode&lt;&#x2F;a&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href=&quot;http:&#x2F;&#x2F;mxcl.github.com&#x2F;homebrew&#x2F;&quot;&gt;Homebrew&lt;&#x2F;a&gt; (Homebrew is awesome, by the way):&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;ruby -e &lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;&#x2F;span&gt;&lt;span class=&quot;k&quot;&gt;$(&lt;&#x2F;span&gt;curl -fsSkL raw.github.com&#x2F;mxcl&#x2F;homebrew&#x2F;go&lt;span class=&quot;k&quot;&gt;)&lt;&#x2F;span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;&#x2F;span&gt;
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Use Homebrew to install &lt;a href=&quot;http:&#x2F;&#x2F;crosstool-ng.org&#x2F;&quot;&gt;crosstool-ng&lt;&#x2F;a&gt;, mpfr, and gmp:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;brew install crosstool-ng mpfr gmp
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;homebrew-dupes&quot;&gt;Homebrew dupes&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;brew tap homebrew&#x2F;dupes
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Use Homebrew to Install grep. You already have BSD grep on your Mac, but crosstool-ng scripts use functionality that assumes you have GNU grep, which is why you need it from Homebrew dupes: &lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;brew install grep
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;You need a case-sensitive file system to work with. Fortunately, you can create one in Apple&#x27;s Disk Utility and mount it. Create one that&#x27;s at least 5 GB to start. You can increase the size later if needed.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;That was the easy part. Now we configure and build the tool chain. &lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Change the working directory to your mounted case-sensitive volume:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;&#x2F;span&gt; &#x2F;Volumes&#x2F;&lt;span class=&quot;o&quot;&gt;{&lt;&#x2F;span&gt;whatever you named it in Disk Utility&lt;span class=&quot;o&quot;&gt;}&lt;&#x2F;span&gt;
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Then load crosstool-ng with the ARM Linux preset. The way you call crosstool-ng is via &lt;code&gt;ct-ng&lt;&#x2F;code&gt; (it took me a few minutes to figure that out):&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;ct-ng arm-unknown-linux-gnueabi
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;If things were easy (e.g., if you were doing this on a Linux desktop), you could probably just run &lt;code&gt;ct-ng build&lt;&#x2F;code&gt; at this point and walk away for about 30 minutes and a shiny new cross compile tool chain would be waiting for you when you returned. Most of the remaining steps account for errors that are probably symptomatic of using OS X to run a utility that wasn&#x27;t written to run on OS X.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Update the paths that crosstool-ng uses to the case-sensitive location:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;ct-ng menuconfig
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;p&gt;This brings up a configuration tool that you can use to set all sorts of things. Start with changing paths. Rename the &quot;local tarballs directory&quot;, &quot;working directory&quot;, and &quot;prefix directory&quot; to &#x2F;Volumes&#x2F;{whatever you named it in Disk Utility}&#x2F;{somethingunique}. While you&#x27;re in there, turn off the build of Java and Fortran compilers, since you don&#x27;t need them and they&#x27;ll just cause more problems.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;If you get an error, be sure to run &lt;code&gt;ct-ng clean&lt;&#x2F;code&gt; before you try to build again. Below are errors I ran into and what I did to get past them. &lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Static linking impossible on the host system &#x27;x86_64-build_apple-darwin11.2.0&#x27;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Easy workaround: Open the hidden file named .config (this was automatically created in your working directory when you first called ct-ng) and update the line that includes &lt;code&gt;CT_WANTS_STATIC_LINK=y&lt;&#x2F;code&gt; to &lt;code&gt;CT_WANTS_STATIC_LINK=n&lt;&#x2F;code&gt;. Keep in mind that if you go back into menuconfig and save new changes, that will overwrite your change to .config and you&#x27;ll have to make your edits again.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;unknown parameter -Bstatic&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;This problem has to do with functionality differences between OS X ld and GNU ld. Building GNU ld for OS X isn&#x27;t possible AFAIK. To fix this one, either remove or comment out this line in your .config file: &lt;code&gt;CT_CC_STATIC_LIBSTDCXX=y&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Again, keep in mind that if you go back into menuconfig and save new changes, that will overwrite your change to .config and you&#x27;ll have to make your edits again.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;automatic de-ANSI-fication support has been removed&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Change the version of MPFR to a later version that doesn&#x27;t result in this error. I used 3.0.1 and it worked.&lt;&#x2F;p&gt;
&lt;p&gt;Then, if you&#x27;re lucky, you can just run &lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;ct-ng build
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;p&gt;and you&#x27;ll end up with a working cross compile tool chain. If you&#x27;ve gotten this far, I recommend downloading &lt;a href=&quot;http:&#x2F;&#x2F;www.eclipse.org&#x2F;downloads&#x2F;packages&#x2F;eclipse-ide-cc-developers&#x2F;junosr1&quot;&gt;Eclipse+CDT&lt;&#x2F;a&gt; and configuring it to use your newly-built toolchain. &lt;&#x2F;p&gt;
&lt;p&gt;I got debugging working, too. I had problems with connecting to a 32-bit gdbserver from my 64-bit gdb client. The error looked something like this in the console when trying to start debugging:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;readchar: Got EOF&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I fixed this by building a later version of GDB. Here are the changes I made to .config:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;# CT_GDB_V_6_8a=y
CT_GDB_7_0_or_later=y
# CT_GDB_VERSION=&amp;quot;6.8a&amp;quot;
CT_GDB_VERSION=&amp;quot;7.5&amp;quot;
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;p&gt;All of this took me a lot of trial and error, so it&#x27;s likely I&#x27;ve included some extraneous steps, but I left them in just in case they&#x27;re needed. Several errors were remedied by just changing to a more recent version of the tools configured in &lt;code&gt;ct-ng menuconfig&lt;&#x2F;code&gt;. Here&#x27;s the set that worked for me:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Linux kernel: 3.2.32&lt;&#x2F;li&gt;
&lt;li&gt;binutils: 2.19.1a&lt;&#x2F;li&gt;
&lt;li&gt;gcc: 4.6.3&lt;&#x2F;li&gt;
&lt;li&gt;glibc: 2.10.1&lt;&#x2F;li&gt;
&lt;li&gt;dmalloc: disabled&lt;&#x2F;li&gt;
&lt;li&gt;GMP 5.0.2&lt;&#x2F;li&gt;
&lt;li&gt;MPFR 3.0.1&lt;&#x2F;li&gt;
&lt;li&gt;PPL 0.11.2&lt;&#x2F;li&gt;
&lt;li&gt;CLooG&#x2F;ppl 0.15.11&lt;&#x2F;li&gt;
&lt;li&gt;MPC 0.9&lt;&#x2F;li&gt;
&lt;li&gt;libelf: 0.8.13&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Handy resources&#x2F;tips:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Using crosstool-NG on MacOS-X [&lt;a href=&quot;http:&#x2F;&#x2F;crosstool-ng.org&#x2F;hg&#x2F;crosstool-ng&#x2F;file&#x2F;8bb5151c5b01&#x2F;docs&#x2F;C%20-%20Misc.%20tutorials.txt#l41&quot;&gt;crosstool-ng.org&lt;&#x2F;a&gt;] -- He says you need MacPorts, but you don&#x27;t. Homebrew and MacPorts don&#x27;t always play nice. I installed crosstool-ng via Homebrew, so I avoided MacPorts.&lt;&#x2F;li&gt;
&lt;li&gt;If your build fails, find the error in build.log and search the web with the error string. If you find a response from Yann E. Morin or Titus von Boxberg, read it.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;</content>
</entry>

<entry>
<title type="html">Adium Chats in Spotlight</title>
<category term="/tech" />
<id>http://www.benmont.com/2012/09/29/Adium-Chats-in-Spotlight</id>
<updated>2012-09-30T03:28:00Z</updated>
<published>2012-09-30T03:28:00Z</published>
<link rel="alternate" type="text/html" href="http://www.benmont.com/tech/Adium-Chats-in-Spotlight.html" />
<content type="html">&lt;p&gt;This was a pain for me to get working, so I&#x27;ll explain how I did it. &lt;a href=&quot;http:&#x2F;&#x2F;www.samuelye.com&#x2F;fix-adium-spotlight-log-search&#x2F;&quot;&gt;This post&lt;&#x2F;a&gt; helped a lot. There are probably some extraneous steps below, but they won&#x27;t hurt anything.&lt;&#x2F;p&gt;
&lt;p&gt;My setup: Mac OS X 10.8.2 &amp;amp; Adium 1.5.4b1&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Move your logs to a more Spotlight-friendly location, like under your home directory. Move this:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;~&#x2F;Library&#x2F;Application Support&#x2F;Adium 2.0&#x2F;Users&#x2F;Default&#x2F;Logs
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;p&gt;to here:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;~&#x2F;Documents&#x2F;Logs
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Make a symlink (&lt;code&gt;ln -s *source target*&lt;&#x2F;code&gt;) that makes the first location point to the second. This keeps Adium happily logging to the same location without knowing you moved the files. &lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Not sure if this next step is necessary, but I did it: Go get &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;downloads&#x2F;samuelye&#x2F;AdiumSpotlightImporter&#x2F;AdiumSpotlightImporter.rar&quot;&gt;this&lt;&#x2F;a&gt; file, unzip it and put it here: &lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;&#x2F;Applications&#x2F;Adium.app&#x2F;Contents&#x2F;Library&#x2F;Spotlight
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Run this command in Terminal: &lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;mdimport -r &#x2F;Applications&#x2F;Adium.app&#x2F;Contents&#x2F;Library&#x2F;Spotlight&#x2F;AdiumSpotlightImporter.mdimporter
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Finally, force Spotlight to pick up the new files:&lt;&#x2F;p&gt;
&lt;div class=&quot;codehilite&quot;&gt;&lt;pre&gt;mdimport ~&#x2F;Documents&#x2F;Logs
&lt;&#x2F;pre&gt;&lt;&#x2F;div&gt;


&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Now you can search Adium&#x27;s chat history alongside everything else Spotlight indexes.&lt;&#x2F;p&gt;</content>
</entry>

<entry>
<title type="html">The Best iPhone 5 Case</title>
<category term="/tech" />
<id>http://www.benmont.com/2012/09/15/The-Best-iPhone-5-Case</id>
<updated>2012-09-15T23:00:00Z</updated>
<published>2012-09-15T23:00:00Z</published>
<link rel="alternate" type="text/html" href="http://www.benmont.com/tech/The-Best-iPhone-5-Case.html" />
<content type="html">&lt;p&gt;I bought an iPhone 5. I was one of the people that preordered at 2am, and it looks like I won&#x27;t get it until early next month. Oh, well. Today, I found this in my inbox from Apple:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;We would like to let you know that every iPhone comes with one 
year of hardware repair coverage through its limited warranty and 
up to 90 days of complimentary support. AppleCare+ for iPhone 
extends your coverage to two years from the original purchase 
date of your iPhone and adds up to two incidents of accidental 
damage coverage, each subject to a $49 service fee.&lt;&#x2F;p&gt;
&lt;p&gt;We noticed you weren&#x27;t given the opportunity to add AppleCare+ 
to your iPhone. If you would like to extend your coverage for only 
$99, please reply to this email by September 21st.&lt;&#x2F;p&gt;
&lt;p&gt;After that date, if you would still like to purchase AppleCare+ 
within the first thirty days of receiving your iPhone, you can call 
AppleCare at 800-MY-IPHONE or visit an Apple Retail Store.&lt;&#x2F;p&gt;
&lt;p&gt;Thank you for shopping with Apple.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I share &lt;a href=&quot;http:&#x2F;&#x2F;comediansincarsgettingcoffee.com&#x2F;joel-hodgson-a-taste-of-hell-from-on-high&#x2F;siri-vs-mr-freeze&quot;&gt;Jerry Seinfeld&#x27;s disdain for iPhone cases&lt;&#x2F;a&gt;, so AppleCare+ is a great alternative.&lt;&#x2F;p&gt;</content>
</entry>

<entry>
<title type="html">&lt;a href=&quot;http:&#x2F;&#x2F;www.theonion.com&#x2F;articles&#x2F;big-12-agrees-to-annual-bowl-loss-against-sec,28334&#x2F;&quot;&gt;Big 12 Agrees To Annual Bowl Loss Against SEC&lt;&#x2F;a&gt;</title>
<category term="/auburn" />
<id>http://www.benmont.com/2012/05/31/big-12-agrees-to-annual-bowl-loss-against-sec</id>
<updated>2012-05-31T18:07:00Z</updated>
<published>2012-05-31T18:07:00Z</published>
<link rel="alternate" type="text/html" href="http://www.benmont.com/auburn/big-12-agrees-to-annual-bowl-loss-against-sec.html" />
<content type="html"></content>
</entry>

<entry>
<title type="html">&lt;a href=&quot;http:&#x2F;&#x2F;www.telegraph.co.uk&#x2F;technology&#x2F;9231855&#x2F;Air-France-Flight-447-Damn-it-were-going-to-crash.html&quot;&gt;Air France 447&lt;&#x2F;a&gt;</title>
<category term="/news" />
<id>http://www.benmont.com/2012/04/30/crash</id>
<updated>2012-04-30T14:42:00Z</updated>
<published>2012-04-30T14:42:00Z</published>
<link rel="alternate" type="text/html" href="http://www.benmont.com/news/crash.html" />
<content type="html">&lt;blockquote&gt;
&lt;p&gt;Robert takes control and finally lowers the nose, but at that moment a new hazard warning sounds, telling them the surface of the sea is fast approaching. Robert realises the ghastly truth - that he hasn&#x27;t enough height to dive to pick up speed. The flight is doomed.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Horrifying.&lt;&#x2F;p&gt;</content>
</entry>
</feed>
