Trevor Burnham

Sure, it works in practice…

Entries Tagged as 'web 2.0'

Maps as Virtual Reality

February 15th, 2010 No Comments

I’m not normally very excited about aug­mented reality apps. Typical use cases tend to go some­thing like: “So, if I point my iPhone camera at that Star­bucks, you’ll tell me that there’s a Star­bucks there? Awesome.

But the work the Pho­to­synth team has been doing since their acqui­si­tion by Microsoft is truly mind-​​blowing. I had to check my watch during this 8-​​minute TED talk by Blaise Aguera y Arcas to make sure that it was still 2010, not 2100.

Tags:    

Boycott www!

January 14th, 2010 1 Comment

There was a dark chapter in the early history of the Internet when, any time you wanted to go to a website, you had to painstak­ingly type “www.” in front of its domain name. This served a purpose of sorts: It told the server, in no uncer­tain terms, that you wanted to surf the World Wide Web. Never mind that the http:// prefix already said as much; Internet con­fig­u­ra­tion was a dark and untested art, and it just seemed safest to use sub­do­mains like www and ftp to be clear about which of your servers people were con­nect­ing to.

But then, as the mil­le­nium came to a close, and non-​​protocol related sub­do­mains like webmail and blog began to pro­lif­er­ate, the www prefix began to fade away. To be sure, it remained on many sites as a ves­ti­gial reminder of the days of dial-​​up and Netscape Nav­i­ga­tor, but most of the web’s denizens had learned that it could be safely for­got­ten. As hip new­com­ers like Twitter and foursquare dropped the prefix alto­gether, the augurs seemed clear: www was going gently into that good night.

Or was it?

Yes­ter­day, someone posted to Hacker News that the domain nasa​.gov is broken. You have to put www in front of it, or it won’t work. (Note that many browsers, like Firefox, auto­mat­i­cally put www. in front of the domain you enter if it can’t reach it without it. But the most popular browser, Internet Explorer, doesn’t.) I replied that it had to be a tem­po­rary glitch—some idiot added a new sub­do­main to their DNS records and acci­den­tally deleted the root!—but no, someone else pointed out, army​.mil and navy​.mil suffer from the same issue. It’s like they don’t want recruits who don’t habit­u­ally triple-​​tap ‘w’ before every web address!

Look: www has got to go. It’s a waste of bytes and time, our nation’s two most valuable resources. If you own a domain, here’s how to fix the problem:

  1. Find your name­server settings, specif­i­cally your A records. Make sure that your root domain is pointing to the same IP address as your www subdomain.
  2. Redirect www.yourdomain.com/whatever to yourdomain.com/whatever. If you’re using Apache, you just need to add the fol­low­ing to either your con­fig­u­ra­tion or a .htaccess file in the domain’s document root:


    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com.* [NC]
    RewriteRule ^(.*)$ http://yourdomain.com$1 [R=301,L]

That’s it! Now if anyone tries to use www, even in a link to a specific page, they’ll still get to the right place. It’s so easy, even a rocket sci­en­tist could do it.

P.S. If you absolutely must keep www, at the very least allow those who omit it get where they’re trying to go. To do this, just modify the instruc­tions above by using these lines in your Apache config instead:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com.* [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com$1 [R=301,L]

This is what Facebook does, for instance. But just as they dropped their super­flu­ous “The” (remember?), rest assured that there will come a time when Facebook​.com will truly stand alone.

Tags:  

Re-​​Freshing

December 31st, 2009 Comments Off

Posterous makes blogging ridiculously simpleThe con­ven­tional wisdom says that winning a micro VC com­pe­ti­tion like Y Com­bi­na­tor or Tech­Stars takes a bold new idea, some­thing no one else is doing (or, at least, not doing well). And that’s usually the case. But if you look closely, many of the projects they’ve funded—in fact, many of the most suc­cess­ful ones—are almost iden­ti­cal in concept to well-​​established rivals with massive brand recog­ni­tion and deep pockets. The trick is that those older rivals aren’t just old; they’ve gone stale.

Pos­ter­ous is a poster child for this category. Their idea: hosted blogs. Their biggest rival: Google’s Blogger, which has been around for more than a decade now—and barely changed in that time. In a way, it can’t: Blogger is one of the most popular websites around. Mess with the formula, and they might get New Coke’d. So Pos­ter­ous comes in with their hip, clean, fresh design, seamless inte­gra­tion with Facebook and Twitter (and, yes, Blogger), and an emphasis on mobile devices, and they’re attract­ing users like crazy.

But Pos­ter­ous didn’t just succeed with the same idea as the dod­der­ing, decrepit Blogger. They were also fol­low­ing the popular Tumblr by a meager two years, and the sites are in close com­pe­ti­tion for new features. But Pos­ter­ous’ bor­der­line pre­pos­ter­ous devotion to sim­plic­ity dis­tin­guishes them from everyone else in a crowded field. Tumblr seemed fresh when it started, but guess what? It’s not 2007 anymore. If you don’t watch your back, stal­e­ness can catch up quick.

Pos­ter­ous’ pitch is three words: “Dead simple blogging.” I’d cut it down to two: Blogger, fresher.

[Update, 1/​19/​10: A pre­cisely contrary opinion may be found here. We fun­da­men­tally agree that design is extremely impor­tant, but disagree over which of the two top-​​notch sites has the better design. I believe that Tumblr’s pop­u­lar­ity is mainly due to first-​​mover advan­tage. The truth will out.]

Tags:    

Bridging the Web

December 27th, 2009 Comments Off

Python is a much, much better language than JavaScriptI’ve been reading a lot about pro­gram­ming lan­guages lately. Many exciting new lan­guages have come out in recent years, and the use of multiple spe­cial­ized lan­guages within a single project has become much more common, thanks largely to the polyglot JVM and .NET plat­forms. It’s an exciting time to be a programmer.

Unless, of course, you’re pro­gram­ming user inter­faces for the web. Which everyone is.

As Jeff Atwood has said, “Every­thing that can be pro­grammed in JavaScript will be.” That’s because the browser is the most popular oper­at­ing system on the planet, and JavaScript is its lingua franca. But no one likes JavaScript. Or, more pre­cisely, no one falls in love with JavaScript the way that people fall in love with Ruby or Python or (my favorite of late) Scala.

I never fully under­stood why JavaScript was so kludgy and inel­e­gant until I read the (highly rec­om­mended) inter­view col­lec­tion Coders at Work. Long story short, one guy at Netscape (Brendan Eich) threw the language together in ten days, with the stated goals of creating some­thing seman­ti­cally Scheme–like but syn­tac­ti­cally Java-​​like. Good god!

So why are we still, 14-​​odd years later, still using the same language for all of our webapps? Because even if some backwards-​​incompatible NewScript were intro­duced, stan­dard­ized and embraced by Microsoft, Mozilla, Google and Apple tomorrow, most people would take years to update to a browser suf­fi­ciently new­fan­gled to run it. Heck, most people don’t even know what a browser is. Thus, new webapps have to be written in a half-​​baked language to be run through decade-​​old interpreters.

But there is a solution. And for all I know, Sergey Brin and Larry Page are already plotting its exe­cu­tion from their orbital bat­tlesta­tion. (Where did you think those Google Earth pics come from?) What we need is a new language for web browsers (or, better yet, a virtual machine standard that could support multiple lan­guages), along with a compiler that can generate JavaScript for the benefit of old-​​timers. The project would be insanely dif­fi­cult, but it’s half-​​done already. Look at GWT, which lets you write Java that compiles to JavaScript. Now suppose that a browser (say, Chrome 5) could run GWT’s Java bytecode directly, bypass­ing JavaScript alto­gether. Chrome 5 users would enjoy a much smoother and poten­tially richer web expe­ri­ence. Mean­while, older browsers would still present a per­fectly usable webapp. And pro­gram­mers every­where would rejoice.

That, I hope, is the future of the web. So please, Google, I urge you: Don’t let my children grow up in a world that runs on JavaScript.

Tags: