<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming on Evan Hoffman</title><link>https://evan.wtf/tags/programming/</link><description>Recent content in Programming on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Fri, 21 Oct 2011 14:48:42 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Displaying currently-playing iTunes track in the Mac menu bar</title><link>https://evan.wtf/2011/10/21/displaying-currently-playing-itunes-track-in-the-mac-menu-bar/</link><pubDate>Fri, 21 Oct 2011 14:48:42 +0000</pubDate><guid>https://evan.wtf/2011/10/21/displaying-currently-playing-itunes-track-in-the-mac-menu-bar/</guid><description>&lt;p&gt;In an attempt to teach myself Objective C, and because I couldn&amp;rsquo;t find anything that did what I wanted, I wrote a little utility to display the currently-playing iTunes track in the Mac taskbar. Originally I had it display the full track name right in the taskbar but it was too much text for such a small space (especially on a 1440x900 screen), so now you click a little musical note and it shows you the info in a menu.&lt;/p&gt;</description></item><item><title>Benchmarking DNS servers with Java</title><link>https://evan.wtf/2011/09/26/benchmarking-dns-servers-with-java/</link><pubDate>Mon, 26 Sep 2011 12:33:28 +0000</pubDate><guid>https://evan.wtf/2011/09/26/benchmarking-dns-servers-with-java/</guid><description>&lt;p&gt;I&amp;rsquo;m currently in the process of moving our DNS over to another provider and I was curious as to whether the old or new provider offers faster lookups. &lt;code&gt;dig&lt;/code&gt; shows query times, but I didn&amp;rsquo;t want to just run that over and over. I decided to write something to do this, in Java since I like Java. I found &lt;a href="http://mowyourlawn.com/blog/?p=8"&gt;this post,&lt;/a&gt; which has the meat of the work done already. I also read some of Sun&amp;rsquo;s &lt;a href="http://download.oracle.com/javase/1,5.0/docs/guide/jndi/jndi-dns.html"&gt;JNDI/DNS&lt;/a&gt; lookup info, which was pretty dense. All I want to do is specify the name server&amp;rsquo;s IP and do the lookup. I don&amp;rsquo;t even really care about the result, just how long the query takes.&lt;/p&gt;</description></item><item><title>Teaching myself node.js: Part 3</title><link>https://evan.wtf/2011/06/23/teaching-myself-node-js-part-3/</link><pubDate>Thu, 23 Jun 2011 17:39:59 +0000</pubDate><guid>https://evan.wtf/2011/06/23/teaching-myself-node-js-part-3/</guid><description>Notes on MongoDB&amp;rsquo;s ObjectID vs sequential identifiers.</description></item><item><title>JavaScript regex for stripping leading &amp; trailing whitespaces</title><link>https://evan.wtf/2011/06/22/javascript-regex-for-stripping-leading-trailing-whitespaces/</link><pubDate>Wed, 22 Jun 2011 00:09:51 +0000</pubDate><guid>https://evan.wtf/2011/06/22/javascript-regex-for-stripping-leading-trailing-whitespaces/</guid><description>&lt;code&gt;str.replace(/^(\s*)((\S+\s*?)&lt;em&gt;)(\s&lt;/em&gt;)$/,&amp;quot;$2&amp;quot;);&lt;/code&gt;</description></item><item><title>Teaching myself node.js: Part 1</title><link>https://evan.wtf/2011/06/14/teaching-myself-node-js-part-1/</link><pubDate>Tue, 14 Jun 2011 00:50:59 +0000</pubDate><guid>https://evan.wtf/2011/06/14/teaching-myself-node-js-part-1/</guid><description>In which I try to learn node.js by building a Quora-like site (since it seems everyone is building a blog).</description></item><item><title>Java Code: searching a Binary Search Tree for the largest value strictly less than X</title><link>https://evan.wtf/2010/05/09/java-code-searching-a-binary-search-tree-for-the-largest-value-strictly-less-than-x/</link><pubDate>Sun, 09 May 2010 13:43:17 +0000</pubDate><guid>https://evan.wtf/2010/05/09/java-code-searching-a-binary-search-tree-for-the-largest-value-strictly-less-than-x/</guid><description>Java code for creating and searching a Binary Search Tree of any element implementing the Comparable interface.</description></item><item><title>House</title><link>https://evan.wtf/2009/06/29/house/</link><pubDate>Mon, 29 Jun 2009 23:23:26 +0000</pubDate><guid>https://evan.wtf/2009/06/29/house/</guid><description>&lt;p&gt;Guess we&amp;rsquo;re moving.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m &lt;a href="http://www.amazon.com/exec/obidos/ASIN/193398886X/ref=nosim/evanhoffmasho-20"&gt;reading about iPhone development&lt;/a&gt;. Doesn&amp;rsquo;t look terrible.&lt;/p&gt;</description></item></channel></rss>