Posts

  • Augmented Reality devices = Broadcast narcissism

    Long ago, Ivan Sutherland created a head-mounted display for pilots. It was clunky and bulky, but for shooting your enemies it got the job done. Fast-forward 50 years and we’re now talking about using similar tech to shoot pool or possibly pick out the best hotties at the bar. It can’t be long before some reasonably OK-looking AR glasses are available on the open-market.

  • Me: "We terrified engineers into secrecy"

    A lazy article to be sure, since it's all taken from Quora. There's some variation in the perspectives, because different people worked in different parts of the company. If you were in engineering, you had individual power even as a lowly coder. In any other department, not really.

  • xRIM: The Virtuous Cycle

    What would happen if a handful of ex-RIM employees started up new companies? Food for thought. Thousands have been laid off, we could get dozens of new startups. The groups would be experienced, knowledgeable, compatible, the ideal for a founding team. They would be connected to former colleagues wealthy from stocks from RIM's early days, making it easy to raise seed capital.

  • How to interview well at Google

    Some friends of mine have been interviewing at Google and I’ve been helping them prepare. After some practice interviews, I drew up this flowchart for them to take with them (mentally) to the interviews.

  • Scientific American infographics or chartjunk?

    This data graphic isn’t just crazy, it’s misleading.

  • Amazing comment spam

    I got some really awesome comment spam recently. Here’s an example, from my post on Nerdcore music (I deleted the comment because it contained a spam link):

  • How to buy speakers

    A friend just asked me for some advise on buying speakers – should she get Bose or Paradigm? Well, I had a few words to about that, so here’s my response:

  • How to embed a 480p YouTube video

    Google doesn’t provide any “official” way to embed a YouTube video in 480p. It always drops you down to 360p by default, and that just looks crap. You can embed in HD so why not 480p? No one knows. But don’t despair, there is a way!

    Here’s some code for you:

    <object width="853" height="505">
      <param value="http://www.youtube.com/v/MOVIE_ID&amp;hl=en_US&amp;fs=1&amp;rel=0" name="movie">
      <param value="true" name="allowFullScreen">
      <param value="always" name="allowscriptaccess">
      <embed width="853" height="505" allowfullscreen="true"
        allowscriptaccess="always"
        type="application/x-shockwave-flash"
        src="http://www.youtube.com/v/MOVIE_ID&amp;hl=en_US&amp;fs=1&amp;rel=0">
    </object>

    That will give you an “HD width” 480p video. Just change “MOVIE_ID” to the ID of your video (e.g. “J-lHxxToCfo”) in both places. The width of the embed will be 853px, which is 16:9 for HD video.

    What if your video is 4:3, i.e. 640x480? I can’t find any clean way to embed at exactly that size, if you use the above code you’ll get black bars on either side. However you can use a negative margin to get a box of the right shape. Just wrap your object like this:

    <div style="width: 640px; overflow: hidden;">
      <div style="margin-left: -107px;">
        <object etc ... ></object>
      </div>
    </div>

    The controls will go off the screen but at least the user will still be able to click the centre of the video to start and stop it. Here’s an example:

    My column width is less than 640px but hopefully you get the idea.

  • CS Rap / Geeksta Rap / Nerdcore

    I’m not convinced by gamer nerdcore but good CS Geeksta Rap is cool. Finally some street beats that talk to me!

    Monzy’s Kill -9 (video) is pretty entertaining. Check out Dale Chase Coder Girl. “She’s not another shallow copy I can sudo” heheh.

    I found a few new lines in a dream recently. Don’t know if they’ll ever fit into a rap though.

    Java or Scala it doesn't matter to me
    If you want I'll even write your app in PHP
    
    10 PRINT "HELLO"
    20 GOTO ONE-OH
    
    Your bytecode is subject to my interpretation
    
    Use my RJ-45 I'll put a packet right into your ass
    
    If you don't do what I want then I will fork your git
    I'm fully dedicated but you just can't commit
  • Why condition your battery once when you can do it three times?

    MacBook users have started to discover over the last few years that their batteries can take a total nosedive into uselessness in just a few months. The first battery on my 2008 MacBook Pro was dead by the end of 2009, flat dead, and out of warranty too. Damn. Cause of death? Lack of “battery conditioning” also known as “calibration”.

    If you want to know how to calibrate your battery, you can refer to this hard to find guide from Apple:

    To calibrate the battery:

    1. Plug in the MagSafe power adapter and fully charge the MacBook or MacBook Pro battery until the light on the MagSafe connector changes to green and the Battery icon in the menu bar indicates that the battery is fully charged.
    2. Allow the battery to rest in the fully charged state for two hours or longer. You may use your computer during this time as long as the power adapter is plugged in.
    3. Disconnect the power adapter with the computer on and start using it with battery power. When the battery's charge gets low, you’ll see the low battery warning dialog on the screen.
    4. Continue to keep your computer turned on until it goes to sleep. Save your work and close all applications when the battery's charge gets low and before the computer goes to sleep.
    5. Turn off the computer or allow it to sleep for five hours or longer.
    6. Reconnect the power adapter and leave it connected until the battery is fully charged. You may use your computer during this time.

    Pretty easy to understand, right? Yeah, the only problem is that even though you’re supposed to this every month or two, there’s no facility on the mac that actually, you know, prompts you to do it. Nothing, nada, zap diddly doo. You’d think that Apple with their vaunted usability standards would pop up a message at the right time saying “hey, now would be a good time to condition the old battery, here’s how to do it”.

    Also, Apple’s instructions are missing two other key pieces of information. The first is that you should immediately download a wonderful app called Coconut Battery. Go ahead, I’ll wait. It will tell you how crap your battery is and you can save the data to get a history over time.

    Second is that that condition is not something you can overdo. Don’t just do it once. Do it twice, three times even. Keep doing it until you stop seeing  capacity gains in coconut battery. Most recently, my first condition went from 71% to 76%, and the second brought me up to 80%. I’m going to see how high I can get.

    All in all this is a bit of a failure on Apple’s part, and it makes you wonder if perhaps they are making a load of money from selling replacement batteries. It doesn’t seem in character for the company. More likely, they just haven’t put the time into designing a proper monitoring system that detects when you need to condition. Hopefully we’ll get that soon.