<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Ask Bjørn Hansen</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/" />
    <link rel="self" type="application/atom+xml" href="http://www.askbjoernhansen.com/atom-feedburner-2.xml" />
    <id>tag:www.askbjoernhansen.com,2009-01-27://1</id>
    <updated>2009-03-19T00:02:47Z</updated>
    <subtitle>oh make some big jumps, big jumps</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.25</generator>

<entry>
    <title>100 reasons to use git: Better commit/log messages</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2009/03/18/100_reasons_to_use_git_better_commitlog_messages.html" />
    <id>tag:www.askbjoernhansen.com,2009://1.2354</id>

    <published>2009-03-18T23:51:01Z</published>
    <updated>2009-03-19T00:02:47Z</updated>

    <summary>I have more to write about using git; but here&#8217;s one small thing I&#8217;ve noticed using git: You get better commit messages. There&#8217;s no difference in the interface to writing the commit messages, but they just tend to be more useful when using git (rather than subversion). A subtle difference is that many of the git tools only shows the first line of the commit message. You&#8217;d think that&#8217;d be worse, but it actually works out to be better because...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>I have more to write about using <a href="http://git-scm.com/">git</a>; but here&#8217;s one small thing I&#8217;ve noticed using git:</p>

<p>You get better commit messages.</p>

<p>There&#8217;s no difference in the interface to writing the commit messages, but they just tend to be more useful when using git (rather than subversion).</p>

<p>A subtle difference is that many of the git tools only shows the first line of the commit message.  You&#8217;d think that&#8217;d be worse, but it actually works out to be better because it encourages you to truly summarize the change in a way that&#8217;s useful for quick browsing.  &#8220;Alright, you only have ~60 characters &#8212; what really changed?&#8221;</p>

<p>Git also encourages you to review and allows you to edit the commit message before you share it with others. </p>

<p>With subversion browsing the history is at best clunky and a bit slow.  With git it is super fast, and the tools are awesome (on OS X I recommend <a href="http://gitx.frim.nl/">GitX</a>).  Other than being super fast a big difference is that the client side tools lets you see the actual diff instantaneously, so browsing a long list of patches is easy.</p>

<p>All these things adds up to the commit history being genuinely useful in your day-to-day development work.  With subversion I&#8217;d browse the log to make a change history and occasionally to assist tracking down a bug.  With git I use the commit log ALL DAY.  In turn this encourages you to write better commit messages, because more likely than not you are going to read them again.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>perl.org domain back - suspended &quot;by mistake&quot;</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2009/02/21/perlorg_domain_back_-_suspended_by_mistake.html" />
    <id>tag:www.askbjoernhansen.com,2009://1.2330</id>

    <published>2009-02-21T19:25:18Z</published>
    <updated>2009-02-21T19:27:43Z</updated>

    <summary>They unsuspended perl.org now (~11:30PST). Apparently it was a mistake (no kidding). This is what they wrote: Firstly, I would like to inform you that the domain name perl.org has been unsuspended. We had received phishing complaints on several hundred domain names belonging to a particular network. Since we need to act on these complaints immediately, the domain name perl.org was accidentally suspended as well. We have now verified that this site does not contain any phishing material and have...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>They <a href="http://www.askbjoernhansen.com/2009/02/21/perlorg_suspended_by_directicom_resellerclub.html">unsuspended perl.org now</a> (~11:30PST).  Apparently it was a <em>mistake</em> (no kidding).  This is what they wrote:</p>

<blockquote>
  <p>Firstly, I would like to inform you that the domain name perl.org has been unsuspended. </p>
  
  <p>We had received phishing complaints on several hundred domain names belonging to a particular network. Since we need to act on these complaints immediately, the domain name perl.org was accidentally suspended as well. We have now verified that this site does not contain any phishing material and have thus unsuspended the domain name. </p>
  
  <p>I understand the consequences faced by you and you clients/people using the site due to this suspension. I sincerely apologize for this on behalf of ResellerClub. Be assured that this was a one-off case and we have made sure such a thing is not repeated. </p>
  
  <p>Apologies once again. </p>
</blockquote>

<p>This is even worse than if they had been overzealous with an abuse complaint actually on perl.org.  Excuse me while I go look for my jaw on the floor.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>perl.org &quot;suspended&quot; by directi.com / resellerclub</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2009/02/21/perlorg_suspended_by_directicom_resellerclub.html" />
    <id>tag:www.askbjoernhansen.com,2009://1.2328</id>

    <published>2009-02-21T17:49:20Z</published>
    <updated>2009-02-21T19:28:45Z</updated>

    <summary>Earlier this morning the registrar for perl.org - DirectI/ResellerClub - decided to suspend the domain. They got one(!) report that it was &#8220;involved in phising activities&#8221;; which sounds like a spammer sent a mail pretending to be from perl.org. This is the mail I got a few hours ago: We received a complaint about your domain name perl.org being involved in phishing activities. Using domain names for any such activity, is strictly against Registrar PublicDomainRegistry.com&#8217;s AUP. On account of the...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>Earlier this morning the registrar for <a href="http://www.perl.org/">perl.org</a> - DirectI/ResellerClub - decided to suspend the domain.  They got one(!) report that it was &#8220;involved in phising activities&#8221;; which sounds like a spammer sent a mail pretending to be from perl.org.</p>

<p>This is the mail I got a few hours ago:</p>

<blockquote>
  <p>We received a complaint about your domain name perl.org being involved in phishing activities. Using domain names for any such activity, is strictly against Registrar PublicDomainRegistry.com&#8217;s AUP.</p>
  
  <p>On account of the breach of the PublicDomainRegistry.com DomainRegistrant Agreement (available within your Control Panel at Help -> Legal Agreements) we have Suspended this domain name. </p>
</blockquote>

<p>Very clever.  In particular doing it on a Saturday morning!  Also note the exquisite details that allows us to respond (that&#8217;s sarcasm, there obviously was no detail).  In particular it&#8217;s insane because if it actually was happening we&#8217;d want to stop it, but they give us no help for that. Lots of DNS resolver will have the domain cached for a day or two, so just turning off the domain wouldn&#8217;t protect people.  Did I mention incompetence?</p>

<p>They actually did this stunt with the xrl.us domain (the short domain for the <a href="http://metamark.net/">metamark service</a>) some time ago. That time they also didn&#8217;t communicate anything or seem to care much about the disruption they caused.  Foolishly thought they&#8217;d be able to manage the other domains.</p>

<p>I&#8217;ve recommended DirectI in the past, but obviously no more.  They have very good pricing and a decent web interface, but clearly they are useless for anything more important than parked &#8220;to be used later&#8221; domains.  If you want to turn off one of their customers, just open a free email account and send some abuse complaints.  It sounds like you just need to include your targets email address in the abuse complaint.  Works out well if your competitors are using them for their business! </p>

<p>I&#8217;ve opened a ticket with them which is the only sort of contact they allow.  Being the weekend now I don&#8217;t know when they&#8217;ll respond, much less fix it.  Anyone have a contact at DirectI / Resellerclub?</p>

<p>Also - anyone have tips for how to as automatically as possible transfer a bunch of domains from them to OpenSRS?</p>

<p><strong>Update</strong> - it&#8217;s <a href="http://www.askbjoernhansen.com/2009/02/21/perlorg_domain_back_-_suspended_by_mistake.html">back now</a> - they say they suspended it by mistake while suspending other domains.  Unbelievable. </p>
]]>
        

    </content>
</entry>

<entry>
    <title>Photo printing from Mpix</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/12/05/photo_printing_from_mpix.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2264</id>

    <published>2008-12-05T18:29:57Z</published>
    <updated>2008-12-05T18:49:40Z</updated>

    <summary> On recommendation from Duncan I tried to print some photos from Mpix. The technical quality is great. I printed about a hundred 4x6es and some bigger ones and they all look really good (well; as good as the photos allow them to be). By default they print matte; but you can add a &quot;lustre&quot; coating. It&apos;s not quite glossy, but gives colorful photos a little extra boost. On a black and white photo where I tried the coating I...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="photo" label="photo" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="prints" label="prints" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><a href="http://www.flickr.com/photos/ask/3085377444/" title="Yosemite view by ask, on Flickr"><img src="http://farm4.static.flickr.com/3041/3085377444_58fc035aec.jpg" width="500" height="326" alt="Yosemite" /></a></p>

<p>On recommendation from <a href="http://duncandavidson.com/2008/05/the-store-is-open.html">Duncan</a> I tried to print some photos from <a href="http://www.mpix.com/">Mpix</a>.</p>

<p>The technical quality is great.   I printed about a hundred 4x6es and some bigger ones and they all look really good (well; as good as the photos allow them to be).</p>

<p>By default they print matte; but you can add a "lustre" coating.  It's not quite glossy, but gives colorful photos a little extra boost.  On a black and white photo where I tried the coating I think it was a mistake.  On most of the color photos where I tried it, the lustre version is better.</p>

<p>On a 16x20" print I tried their <a href="http://mpix.com/Mounting.aspx">mounting</a> (double weight matboard) and it's much more impressive than I expected.</p>

<p>Likewise I had some 8x12 photos framed and the frames and beautiful and well done - much much better than their website makes it look.   The framing (with non-glare glass) was about $30 which seemed like a lot for a small frame, but it's high quality so the price is about right.</p>

<p>However, the neatest thing is that they package my $3 prints like it's an expensive piece of art.   And don't even get me started on how well they packaged the framed photos.  You know how it's neat to open an Apple product?  Yeah - between the excitement of seeing the photos and how nicely they packaged them, that's about how it's been to open the boxes they sent.    Shipping is $7 per order or $11 for overnight shipping.   That's somewhere between very reasonable and insanely cheap all things considered.</p>

<p>So, Mpix: Highly recommended so far.  I'm looking forward to trying them again.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>It would be hard to overstate ...</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/11/05/it_would_be_hard_to_overstate.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2246</id>

    <published>2008-11-05T14:34:27Z</published>
    <updated>2008-11-05T17:54:04Z</updated>

    <summary> &#8220;It would be hard to overstate how fervently vast stretches of the globe wanted the election to turn out as it did&#8221; (New York Times on The Promise - For Many Abroad, an Ideal Renewed) Yup, here too! TPM have a full transcript of Obama&#8217;s speech. The new American president sure is setting himself up with some high expectations. Awesome! Enough with pandering to the regular guy. Let&#8217;s have smart people govern instead. What a concept! (Update - If...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<blockquote>
  <p>&#8220;It would be hard to overstate how fervently vast stretches of the globe wanted the election to turn out as it did&#8221;</p>
</blockquote>

<p>(<i>New York Times on <a href="http://www.nytimes.com/2008/11/05/us/politics/05global.html">The Promise - For Many Abroad, an Ideal Renewed</a></i>)</p>

<p>Yup, here too!  <a href="http://www.talkingpointsmemo.com/">TPM</a> have a <a href="http://tpmelectioncentral.talkingpointsmemo.com/2008/11/obama_my_election_demonstrates.php">full transcript of Obama&#8217;s speech</a>.</p>

<p>The new American president sure is setting himself up with some high expectations.  Awesome!  Enough with pandering to the regular guy. Let&#8217;s have smart people govern instead.  What a concept!</p>

<p>(<b>Update</b> - If you have a BitTorrent client then I have a .torrent for a <a href="http://i.askask.com/2008/11/election_obama_2008_720.mp4.torrent">high resolution (1280x720) version of the victory speech</a>.  Right now there are about 60 seeders, so it should be pretty fast).</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.flickr.com/photos/ask/3005460478/" title="A small canyon in Los Angeles by ask, on Flickr"><img  align="right"  class="mt-image-right" style="float: right; margin: 0 0 20px 20px;"src="http://farm4.static.flickr.com/3011/3005460478_b56fa84fcb.jpg" width="500" height="332" alt="A small canyon in Los Angeles" /></a></span></p>

<p>Immensely disappointing (and <a href="http://www.latimes.com/news/local/la-me-gaymarriage5-2008nov05,0,1545381.story">frustrating to many</a>) on the other hand is that the voters seem to be <a href="http://xrl.us/owc79">passing prop 8</a>.  Yikes.</p>

<p>On one of the news programs earlier they had interviews with some supporters.  The best arguments they had was some hand-waving about their children.  That&#8217;s even more offensive than them voting yes on the proposition!  Don&#8217;t attribute political opinions or labels to your children - and much less sexuality.  Look lady, your kid is <em>5 years old</em>.  I promise that other than your indoctrination he has absolutely no opinion or judgement on the matter.</p>

<p>In the mall the other day I walked by a stand with baby clothes.  One had a text on it saying &#8220;Lifelong Democrat&#8221;. It&#8217;s the same thing: Not cool.  While our children are overwhelmingly likely to grow up with the political leanings of their parents, it&#8217;s completely unfair to label them as such until they at least have had a chance of forming their own opinions.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Today is the day</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/11/04/today_is_the_day.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2242</id>

    <published>2008-11-04T08:42:21Z</published>
    <updated>2008-11-04T08:44:52Z</updated>

    <summary>Oh man. Nervous with crossed fingers, knocking on wood. Less than 24 hours and this should be over. Fivethirtyeight.com. says there&apos;s a 98.1% chance Obama will win tonight. But at least in this household we&apos;re nervously biting our nails all the same. Here in California there&apos;s of course not any suspense over where the electoral votes will go, but there are a couple of looney awful propositions on the ballot. In particular prop 4 and prop 8. Both are basically...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
        <category term="Politics" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>Oh man. Nervous with crossed fingers, knocking on wood.   Less than 24 hours and this should be over.</p>

<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/cfjQujYrfEk&amp;hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/cfjQujYrfEk&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<p><a href="http://www.fivethirtyeight.com/">Fivethirtyeight.com</a>. says there's a 98.1% chance Obama will win tonight.  But at least in this household we're nervously biting our nails all the same.</p>

<p>Here in California there's of course not any suspense over where the <a href="http://en.wikipedia.org/wiki/U.S._Electoral_College" rel="nofollow">electoral votes</a> will go, but there are a couple of looney awful propositions on the ballot.  In particular <a href="http://ballotpedia.org/wiki/index.php/California_Proposition_4_(2008)">prop 4</a> and <a href="http://ballotpedia.org/wiki/index.php/California_Proposition_8_(2008)">prop 8</a>.   Both are basically too close to call in the latest polls.   Unbelievable, but true.  Please vote no.</p>

<p>(Of course the better solution is to not have to government marry people but rather just recognize unions and leave the marrying stuff to peoples personal lives - but in the US we're pretty far from there).</p>

<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/J-lOh6Qni_g&amp;hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/J-lOh6Qni_g&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<p>Anyway - hopefully early tonight it'll be clear that the next president won't be the one who's energy/security policy includes the illusion that there are no global markets and oil isn't a fungible commodity.  Hopefully early tonight it'll be clear that the next president won't be the one who spent the last few weeks of his campaign talking about taxes with a guy who doesn't understand the tax system (and didn't get it explained).  Someone please bring Joe the "plumber" to an accountant who can explain to him about how you don't pay income taxes on money that your business spends on salaries for employees. The number of weird and stupid things McCain and his campaign says is just amazing.</p>

<p>Or leave that alone and say McCain would make a decent president.  I don't agree, but sure - whatever.  Hello bad vice presidential choice.  It's a joke!  It's offensive.  As Josh Marshall <a href="http://www.talkingpointsmemo.com/archives/242294.php">wrote today</a>:</p>

<blockquote> The woman is an ignoramus of almost unprecedented magnitude in the annals of national politics. It's not just that virtually every-non-Republican has a negative view of her. I just don't see a national party getting behind someone like that. And before you snark, "What about George Bush?" Sorry but there's no comparison. Whatever else I think of him, he's not a moron. And while he appears to be astoundingly incurious, there's simply no comparison to Palin.</blockquote>

<p>The number of sane conservative thinkers who's endorsed Obama in the last week is incredible.  How come there's even a contest anymore?</p>

<p>I can't imagine I'll ever be a republican, but I sure hope that after this the <span class="caps">GOP </span>will get it together and 1) kick out the looney evangelical christians out of "people we pay attention to", 2) quit with the Karl Rove inspired hate and fear mongering and 3) pick the smartest and most mentally alert guy in the room for their candidate for once.  What's with electing the folksy "regular" folks?  It's not a regular job!</p>

<p><embed src="http://services.brightcove.com/services/viewer/federated_f8/1185304443" bgcolor="#FFFFFF" flashVars="videoId=1797097875&amp;playerId=1185304443&amp;viewerSecureGatewayURL=https://console.brightcove.com/services/amfgateway&amp;servicesURL=http://services.brightcove.com/services&amp;cdnURL=http://admin.brightcove.com&amp;domain=embed&amp;autoStart=false&amp;" base="http://admin.brightcove.com" name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></p>]]>
        
    </content>
</entry>

<entry>
    <title>It&apos;s a girl!</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/09/05/its_a_girl.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2158</id>

    <published>2008-09-06T04:09:21Z</published>
    <updated>2009-02-07T23:39:25Z</updated>

    <summary> In late June, three weeks after my birthday, I got the most amazing birthday present you can imagine. My wonderful wife gave birth to our amazing now two month old daughter. She sure keeps us busy. There are many awesome things to tell - about how cute, clever and strong she is already - but most of all then I am so grateful to Vani who by far is going through the most and doing the most. Whenever I...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.askbjoernhansen.com/images/2008/08/DSC_0363.jpg"><img alt="DSC_0363.jpg" src="http://www.askbjoernhansen.com/images/2008/08/DSC_0363-thumb-750x498.jpg" width="750" height="498" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span></p>

<p>In late June, three weeks after my birthday, I got the most amazing birthday present you can imagine.  My wonderful wife gave birth to our amazing now two month old daughter.</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.askbjoernhansen.com/images/2008/08/DSC_0375.jpg"><img alt="DSC_0375.jpg" src="http://www.askbjoernhansen.com/images/2008/08/DSC_0375-thumb-350x232.jpg" width="350" height="232" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>She sure keeps us busy.  There are many awesome things to tell - about how cute, clever and strong she is already - but most of all then I am so grateful to Vani who by far is going through the most and doing the most. Whenever I play with Saffron, give her a bath or a bottle of breastmilk it is just such a joy.</p>

<p>Right now she is sweetly asleep upstairs and I have to fight the urge to go check on her or just see and listen  every five minutes.</p>

<p>The spouse-unit has a (now less) <a href="http://www.littlefeetbigsky.com/">secret weblog</a>, which if you had followed you would have known long ago that <a href="http://spice.littlefeetbigsky.com/2008/07/03/its-a-girl/">it's a girl</a>.  :-)</p>

<p>If you have a flickr account (and are listed as friend &amp; family) then we have a few <a href="http://www.flickr.com/photos/ask/collections/72157605994701092/">photos from July there</a>.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>JavaScript: The Good Parts</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/05/16/javascript_the_good_parts.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2082</id>

    <published>2008-05-17T00:11:37Z</published>
    <updated>2008-05-17T00:22:46Z</updated>

    <summary>Douglas Crockford of JSON fame has written a beautiful book about JavaScript. First of all - at only 170 pages it is short. Even though some of the key points are repeated through the book it&apos;s dense with information. You don&apos;t need any JavaScript experience, but it&apos;s not a &quot;beginning programming&quot; book so if you haven&apos;t been programming before this is not the right book for you. Reading this book a couple of times will give you an appreciation for...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.amazon.com/o/ASIN/0596517742/webchic-20"><img alt="javascript_cover" src="http://www.askbjoernhansen.com/images/2008/05/javascript_cover.jpg" width="240" height="240" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>Douglas Crockford of <a href="http://www.json.org/">JSON</a> fame has written a <a href="http://www.amazon.com/o/ASIN/0596517742/webchic-20">beautiful book about  JavaScript</a>.</p>

<p>First of all - at only 170 pages it is short. Even though some of the key points are repeated through the book it's dense with information. You don't need any JavaScript experience, but it's not a "beginning programming" book so if you haven't been programming before this is not the right book for you. </p>

<p>Reading this book a couple of times will give you an appreciation for the JavaScript language that you almost certainly didn't have before. It'll give you tools to write better programs that you and others will actually be able to maintain over time. </p>

<p>I've learned lots of little things that I maybe knew from experience, but now I <em>know</em> and I know why. </p>

<p>This book will help you battle with JavaScript rather than against it.</p>

<p>(this review was also <a href="http://www.amazon.com/review/R2XPWE2CEP5FAN/ref=cm_cr_rdp_perm">posted on amazon.com</a>)</p>

<p>After reading half the book I went and bought a bunch of extra copies and had them sent to people I work with who are working with JavaScript.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Slides from &quot;Real World Web: Performance &amp; Scalability, MySQL Edition&quot;</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/04/15/real_world_web_performance_scalability_slides.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2022</id>

    <published>2008-04-15T19:27:13Z</published>
    <updated>2008-04-15T21:05:59Z</updated>

    <summary>The slides from my tutorial yesterday are up at develooper.com. 189 slides this year! A handful of people have told me today (and more yesterday obviously) that they learned a lot and got new ideas for how to build things - yay! I&#8217;m considering putting up a version of the slides with sound. Would anyone want a 3 hour quicktime movie of that? Well, maybe split up into smaller bits, but you get the idea. You wouldn&#8217;t get the hand...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="conferences" label="conferences" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mysql" label="mysql" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="scalability" label="scalability" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tutorial" label="tutorial" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><a href="http://www.flickr.com/photos/x180/2415106176/"><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="mysql_audience.jpg" src="http://www.askbjoernhansen.com/images/2008/04/mysql_audience.jpg" width="500" height="332" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></a>The slides from my tutorial yesterday are up at <a href="http://develooper.com/talks/">develooper.com</a>.  189 slides this year!   A handful of people have told me today (and more yesterday obviously) that they learned a lot and got new ideas for how to build things - yay!</p>

<p>I&#8217;m considering putting up a version of the slides with sound.  Would anyone want a 3 hour quicktime movie of that?</p>

<p>Well, maybe split up into smaller bits, but you get the idea.  You wouldn&#8217;t get the <a href="http://www.flickr.com/photos/x180/2414281659/">hand</a> <a href="http://www.flickr.com/photos/x180/2414281577/">waving</a>, but you would get a bunch more detail, obviously.</p>

<p>I actually had audio recorded, but I haven&#8217;t checked how it came out, yet, and I&#8217;d have to make a synchronized movie version of the slides (and likely be tempted to just redo the audio anyway).  Thoughts?  Would it be a worthwhile effort?</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Dash Express: Living in the future</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/04/13/dash_express_living_in_the_future.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2020</id>

    <published>2008-04-13T15:12:34Z</published>
    <updated>2008-04-13T06:22:00Z</updated>

    <summary>Nelson mentioned the marvel of checking traffic on the iPhone. Nelson, I&apos;m sorry - that&apos;s so last months future. Freeway traffic flows? Boring! I&apos;ve only driven about 5000 miles the last year, and almost none of it were on freeways. A couple weeks ago I ordered a Dash Express. Let me tell you: that is the future. The essence of the Dash is that it tracks your speed as your drive and uploads it to the Dash servers (anonymously, supposedly...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
        <category term="Technology" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="dash" label="dash" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="gps" label="GPS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="navigation" label="navigation" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="Dash Express" src="http://www.askbjoernhansen.com/images/2008/04/de_ondash_3route_270px.jpg" width="270" height="270" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></span>Nelson mentioned the marvel of <a href="http://www.somebits.com/weblog/tech/iphone/maps-and-traffic.html">checking traffic on the iPhone</a>.  Nelson, I'm sorry - that's so last months future.  Freeway traffic flows?  Boring!  I've only driven about 5000 miles the last year, and almost none of it were on freeways.</p>

<p>A couple weeks ago I ordered a <a href="http://dash.net/">Dash Express</a>.  Let me tell you: <em>that</em> is the future.   The essence of the Dash is that it tracks your speed as your drive and uploads it to the Dash servers (anonymously, supposedly - they don't explain what they do to keep it that way) <em>as you drive</em>.  Of course it also downloads traffic data from other drivers and historical data when no Dash owner has driven on a particular street recently.</p>

<p>It is so cool to watch.   Entirely accurate?  Not yet.  Pretty darn good already?  Check.  A glimmer of the future?  Definitely.</p>

<p>The Dash has wifi, but most of the time it uses GPRS for communication via <a href="http://www.jasperwireless.com/">Jasper Wireless</a>.  As a user you don't know that or even care, but as a geek it was fun to find out that there's a wireless carrier that doesn't do anything else than GPRS for mobile gadgets.</p>

<p>Since it's always connected they have built in local search via Yahoo local (not as good as <a href="http://www.yellowbot.com/">YellowBot</a>, of course, but pretty neat all the same ;-) ).  They're working on giving you more "online data".  For example there are gas prices and movie showtimes available, but the UI for that isn't very useful.</p>

<p>Dash are suggesting that the Dash Express will be the first GPS for "daily use" rather than just to be used when you are going somewhere new.  it <a href="http://dash.net/product/traffic-routing.php">suggests multiple routes</a> with distance and time based on current traffic.  Pretty darn neat; but as I mentioned earlier - at least for my short-ish city-only stretches it's still not entirely accurate.  I'm sure they'll improve on it though.  The wonder of automatic software updates and constantly improved traffic data.  I've noticed a big improvement in available traffic information just over the last two weeks since they started selling units to non-beta testers.</p>

<p>So to get better data it is of course in my interest to tell you to go <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FDash-Express-Internet-Connected-Portable-Navigator%2Fdp%2FB0014CIBWC%3Fie%3DUTF8%26s%3Delectronics%26qid%3D1208066139%26sr%3D8-1&amp;tag=webchic-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=932">buy one</a>.   In particular if you live in Los Angeles.  :-)</p>

<p>If you are driving a lot and a lot to new places where you don't know the regular flow of traffic then I'm sure it's worth getting the first generation unit.</p>

<p>However, there's a lot to improve before I'm going to recommend it to "regular drivers" and non-early-adopter types.  The physical form factor is, well, not really sleek.  It's GIGANTIC compared to a modern <a href="http://www.amazon.com/gp/search?ie=UTF8&amp;keywords=Garmin%20Nuvi&amp;tag=develooper&amp;index=blended&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">Garmin Nuvi</a><img src="http://www.assoc-amazon.com/e/ir?t=develooper&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  They say it's to have room for the wifi and GPRS antennas (huh? The iPhone fits both a fraction of the space) and for the battery (which still only lasts a couple of hours; keep that 12v outlet available).  The screen is a well working touch-screen, but the "hardware buttons" on top are crazy annoying when it's not mounted in the window or on the dash board.</p>

<p>Speaking of the screen - My first unit had a slightly defective screen, but Dash were great about getting it fixed and I could see that they had already improved their process on the replacement unit so it won't be an issue again.  My second unit has been flawless so far.</p>

<p>Other than the issues mentioned above, it's mostly software improvements that are missing and those will hopefully be updated over time.  It's done a bad job telling us a quick sequence of directions on freeways.  It doesn't zoom in to show how clearly to navigate intersections or freeway interchanges.  The UI is somewhat inconsistent (for example some buttons disappear when not usable, others stay on the screen and just "don't work").  It seems very slow at updating the screen at times.  As I mentioned above the UI needs some work for some of the features to work better. Etc etc.</p>

<p>All that being said though - if you are in the market for a new GPS, give it a serious look.  It's lots of fun and I trust the software will get better month for month.  It will be interesting to see if or when Garmin catches up with the traffic data system or if one of the big players just goes and buys Dash.   A device built with the Dash traffic data and with Garmins long UI, navigation and hardware expertise: <em>drool</em>.  I guess if the Dash is the future; then that device is the future of the future.</p>

<p>Dash has a great <a href="http://dash.net/help.php">help section</a> that answers lots of questions in addition to their <a href="http://dash.net/product/traffic.php">general feature overview</a>.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Tax season</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/04/12/tax_season.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.2018</id>

    <published>2008-04-13T03:35:18Z</published>
    <updated>2008-04-13T03:25:40Z</updated>

    <summary>I was preparing to do our taxes last week. Every year in late March or early April I realize that there&apos;s an account or two (or three) that I never got around to reconcile or maybe even download activity for, so lots of tedious work ensues. Vani&apos;s been scanning lots and lots of documents into PDF files; I can&apos;t recommend getting a scanner enough. I use QuickBooks for my corporate accounting and like I only sheepishly admit that I really...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
        <category term="Technology" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>I was preparing to do our taxes last week.  Every year in late March or early April I realize that there's an account or two (or three) that I never got around to reconcile or maybe even download activity for, so lots of tedious work ensues.</p>

<ul>
<li><p>Vani's been scanning lots and lots of documents into PDF files; I can't recommend getting a <a href="http://www.amazon.com/o/ASIN/B000WJCX18/webchic-20">scanner</a> enough.</p></li>
<li><p>I use QuickBooks for my <a href="http://develooper.com">corporate</a> accounting and like I only sheepishly admit that I really like the new Radiohead album I'm also reluctant to admit that QuickBooks works pretty darn well for me.</p></li>
<li><p>Personal finance software though.  Geez.  Is <a href="http://moneydance.com/">Moneydance</a> really the leading Quicken alternative?  I tried it briefly and it seemed even more painful to use and I use a ~3 year old Mac version of Quicken!</p></li>
<li><p>Some of the banks are really awesome with letting you download activity from a long time back and having the statements in easily downloaded PDF files.  Bank of America (who I otherwise generally loathe) and American Express are in this category.  Chase (Amazon Visa) are notoriously not.  Oh man, don't get me started on Chase.</p></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>Reclaim space from a sparse OS X disk image</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/03/25/reclaim_space_from_the_idisk_diskimage.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.1833</id>

    <published>2008-03-26T00:42:43Z</published>
    <updated>2008-03-26T00:43:04Z</updated>

    <summary>In 10.5 and 10.5.1 there was a bug that&#8217;d make my iDisk explode to take all available space, yikes. Fortunately that has been fixed now (not that I use the iDisk much anymore - hello JungleDisk!). It doesn&#8217;t seem like the iDisk disk images get compacted automatically to take less space if you delete files, so what I learned from the bug is generally useful. You can compact a &#8220;sparse&#8221; disk image manually from the Terminal application. The iDisk can&#8217;t...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="osx" label="os x" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>In 10.5 and 10.5.1 there was a bug that&#8217;d make my <a href="http://www.apple.com/dotmac/idisk.html">iDisk</a> explode to take all available space, yikes.  Fortunately that has been fixed now (not that I use the iDisk much anymore - hello <a href="http://www.jungledisk.com/">JungleDisk</a>!).</p>

<p>It doesn&#8217;t seem like the iDisk disk images get compacted automatically to take less space if you delete files, so what I learned from the bug is generally useful.</p>

<p>You can compact a &#8220;sparse&#8221; disk image manually from the Terminal application.</p>

<p>The iDisk can&#8217;t be in use, so close any files opened on it.  Then open a terminal and run:</p>

<pre><code>hdiutil unmount ~/Library/FileSync/*/*.sparsebundle
hdiutil compact ~/Library/FileSync/*/*.sparsebundle
</code></pre>

<p>The <code>hdiutil compact</code> feature also works on old fashioned sparse disk images (all data in one file versus the &#8220;sparsebundles&#8221; that are really directories with lots of smaller files).  I used it to reclaim a few gigabytes from some old disk images, yay.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>MySQL conference tutorial almost sold out</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/03/06/mysql_conference_tutorial_almost_sold_out.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.1956</id>

    <published>2008-03-07T01:25:04Z</published>
    <updated>2008-03-07T01:27:54Z</updated>

    <summary>It looks like my tutorial is almost sold out (and so are several of the others already!) So if you&apos;re planning to go to the MySQL conference, don&apos;t delay - go sign up!...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="conferences" label="conferences" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mysql" label="mysql" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>It looks like <a href="http://www.askbjoernhansen.com/2008/02/14/real_world_web_scalability_mysql.html">my tutorial</a> is <a href="http://www.jpipes.com/index.php?/archives/217-Register-for-MySQL-Conference-and-Expo-Tutorials-Are-Selling-or-Sold-Out.html">almost sold out</a> (and so are several of the others already!)</p>

<p>So if you're planning to go to the <a href="http://en.oreilly.com/mysql2008">MySQL conference</a>, don't delay - go sign up!</p>]]>
        
    </content>
</entry>

<entry>
    <title>Servers are too fast!</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/03/04/servers_are_too_fast.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.1952</id>

    <published>2008-03-04T23:44:29Z</published>
    <updated>2008-03-05T00:31:11Z</updated>

    <summary>We got a couple of new servers at Solfo recently which showed me one of the reasons virtualization is so popular now: Servers are too fast! The &quot;standard issue&quot; CPU is now a quad-2.5GHz CPU, so in each server we have 20 GHZ CPU and 32GB ram (at less than $50 per gigabyte it&apos;s too cheap to not just fill it up and be done upgrading). Just a few years ago the CPUs we were getting were &quot;only&quot; dual 2GHz,...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="intel" label="intel" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="scalability" label="scalability" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="servers" label="servers" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p>We got a couple of new servers at <a href="http://www.solfo.com/">Solfo</a> recently which showed me one of the reasons virtualization is so popular now: Servers are too fast!</p>

<p>The "standard issue" CPU is now a quad-2.5GHz CPU, so in each server we have <em>20 GHZ</em> CPU and 32GB ram (at less than $50 per gigabyte it's too cheap to not just fill it up and be done upgrading).  Just a few years ago the CPUs we were getting were "only" dual 2GHz, for ~8GHz CPU per box.  That's a big increase!</p>

<p>In each "tier" of the application (app servers, db servers, search servers) our main reason for having more than one or two servers is redundancy / high availability - never lack of CPU and rarely because we need more memory.</p>

<p>Here's from one of our webservers (virtualized with Xen with 6 of the 8 CPUs on the "real" hardware).</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="cpu-year.png" src="http://www.askbjoernhansen.com/images/2008/03/cpu-year.png" width="495" height="336" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></p>

<p>The big exception is the MySQL servers where we get constrained by I/O so we need a single chassis with lots of disks (the $$ version would be to get external enclosures or SAN boxes with disks) and of course in the MySQL servers we can easily use all 32GB ram.</p>

<p>Anyway, the conclusion: Please give us cheaper, lower power CPUs.   More memory, sure - we'll figure out to use it.  More disk I/O: yes, please!  More more more!  Faster CPUs makes sense at scale, of course, but for a <a href="http://www.yellowbot.com/">smaller website</a> with just a handful of million visitors a month we just can't make a dent in the available CPU.  Maybe if we used Ruby instead of Perl.  ;-)   (just kidding).</p>

<p>(I realize that AMD and Intel makes plenty "slow" CPUs, but they don't come in server boxes with fast I/O and all that).</p>
]]>
        

    </content>
</entry>

<entry>
    <title>When you program open source, ...</title>
    <link rel="alternate" type="text/html" href="http://www.askbjoernhansen.com/2008/02/24/when_you_program_open_source.html" />
    <id>tag:www.askbjoernhansen.com,2008://1.1948</id>

    <published>2008-02-24T21:59:23Z</published>
    <updated>2008-02-25T05:56:37Z</updated>

    <summary> Flickr sure has some passionate users!...</summary>
    <author>
        <name>Ask Bjørn Hansen</name>
        <uri>http://askask.com/</uri>
    </author>
    
    <category term="flickr" label="flickr" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="funny" label="funny" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="microsoft" label="microsoft" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="opensource" label="open source" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="yahoo" label="yahoo" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.askbjoernhansen.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image"><a href="http://www.flickr.com/photos/knasclass/2235238048/in/pool-659837@N23"><img alt="microsoft-communism.jpg" src="http://i.askask.com/2008/02/microsoft-communism.jpg" width="373" height="500" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;"/></a></span></p>

<p>Flickr sure has some <a href="http://www.flickr.com/groups/microsoft-keep-your-evil-grubby-hands-off-our-flickr/">passionate users</a>!</p>]]>
        
    </content>
</entry>

</feed>

