Tuesday, March 17, 2009

Adelaide: More than OK, Actually

My mum's visiting Australia for the first time in her life, spending the majority of her three weeks wandering around Sydney (it's a big place!). She traveled with me last weekend to only one city outside of Sydney: Adelaide, in South Australia. When I told Aussies where we were going, the question was always "why?" - Adelaide doesn't exactly have the greatest reputation. The Melbourne mayor went so far as to effectively recommend that Adelaide be shut down, due to its uselessness. So I went to Adelaide prepared for a city of churches and dull-dom, but I actually encountered amazing natural sights and a vast array of entertainment options. Check out my description of the highlights below, or if you're a visual sort, just go through my Adelaide Flickr collection.

Faulty Towers Interactive Dinner

My mum is British, so when I saw the advert for a dinner in the style of this classic British comedy, I knew it'd be perfect for our first night in Adelaide. Our hosts were Basil, Sybil, and Manuel, and the dinner was a series of well orchestrated haphazards and improvised arguments with us, the guests. And as much as they tried to make the dinner service disruptive, the food was still delicious - my first stone grilled steak, but definitely not my last.

Glenelg Town Hall Museum

Yes, yes, a town's museum. But, this museum contained more than the usual "bla bla discovered X and settled Y and then war happened and stuff". It had *2* special exhibits dedicated to retro arcades - machines that you'd either wind or put a coin in, and you'd see some puppet animation - like a monkey's eyes moving, or 2 sharks boxing. Though we've moved way beyond such simple mechanics these days, it's still very satisfying to think "hmm, what's going to happen?", do some winding, and then, "oo! the arms moved!". One of the coin-operated arcades was a skeleton fortune teller - I asked it if I should ever get a PhD, and it responded back with exactly my thoughts (below). Oh, well...

Kangaroo Island

Most people know this as the "only good reason" for visiting Adelaide, and it is indeed a good one. During the guided bus tour of the island, you visit Seal beach, Remarkable Rocks (aptly named, trust me), Birds of Prey park, and Admiral's Arch. The most memorable moment was at the seal beach, when the guide was telling us we had to keep atleast 10 meters away from any seals at all times, and then suddenly realized that a seal was walking in front of us. We patiently followed 10 meters behind the seal as he led us to the beach, and at that point, I think we were all sufficiently in love with seals. Seeing 2 baby seals scampering on the beach "sealed" the deal. :)

Coorong River

In this tour, you spend much of the day on a boat with about 30 other people, and stop to take walks among the sand dunes. It's a lesser known tour, and that's a good thing - it's still got an intimacy/charm that the commercialized Kangaroo Island tour is lacking. Everything was a highlight: hunting for "cockles" (clams) in the ocean and swallowing them raw, eating deliciously fried cockles, rolling down a sand dune, accidentally stumbling upon an aboriginal skeleton, digging for (and drinking) freshwater from the ground, and spotting a koala on the ride back.

Botanical Gardens

Adelaide has an impressive set of gardens - cacti, roses, giant freaking Amazon water lilys, and more. It was a great place to wander around with a camera and a nose, and I was thrilled that a butterfly finally rested on a flower long enough for me to take a close-up.

Wednesday, March 4, 2009

World-Wide Developer Events & Groups: Let's Map This Shit!

After my travels around Asia and Australia for the past few months, I've seen that there are local developer groups and events *everywhere* - but it's not always easy to find a full list of all of them in one place. Wouldn't it be nifty if you could just consult a map of the world to see what was happening in your neck of the woods? Well, I think so, cuz I think maps solve everything. :)

So, let's see how big of a list (or how crowded of a map) we can make. If you know of a user group, local event (e.g. BarCamp Sydney), or local events aggregation site/calendar, then please submit it here. Then, check out all the contributions either in map form or spreadsheet form.

As a teaser, I've embedded a screenshot of the map with just some Australia data that I added. Keep reading below if you're curious how I've whipped up this mashup...

The whole system is built using Google Spreadsheets and the Google Maps API. There are two spreadsheets used: the first has rows of places with latitude/longitude coordinates, the second has rows of events/groups with their website and place. Both of them are contributed to using (modified) Google Spreadsheets Forms, which is one of the damn niftiest consumer features ever. The greatest thing about forms is that after you create a form using the spreadsheets UI, you can then copy the HTML, add whatever JavaScript/CSS/HTML you want, and host a new snazzy form on your server - as long as you retain the form input name attributes the same as the original and the form action set to the spreadsheet POST URL, then the form will continue working.

For the places form, I created it in spreadsheets and then added a map + geocoder to it so that I could get the latitude/longitude to store in the spreadsheet. More details on that hack are in this blog post. For the events/groups form, I created it in spreadsheets and then created the place dropdown by pulling in the JSON feed of the other spreadsheet and creating option elements for each row in the feed. More details on the JSON Spreadsheets feed are in this sample.

For the map of everything, I pull in the places spreadsheets feed, create a hash based on the location names, then pull in the events/groups spreadsheets feed, and push each row into an array in the matching location. Then I iterate through all the locations and plot them on the map with the associated stuff in the sidebar. To get the sized/labeled markers that represent the amount of stuff for each location, I use the Google Charts API (yep, it has a marker output). Oh, and finally, I set notification rules for each spreadsheet so that I know when anyone's contributed to them - it excites me! :)

((PLUG)): If you want to learn more about the Google Spreadsheets APIs, attend next week's talk at Google Sydney.

Sunday, March 1, 2009

Webstock 2009: Client Killed the Server Star

After Anthony Baxter told me that he never repeats the same talk twice, I've challenged myself to do the same thing. It's disrespectful to your audience to give them a talk that wasn't custom tailored for them, and it's doing a disservice to your own personal learning - atleast for me, part of the fun of giving a talk is doing the research for the slides and content.

So, when I was asked to present on behalf of Google at Webstock 2009, I proposed a new talk called "Client Killed the Server Star: The New Client/Server Model". The talk was inspired by Brett Morgan's spiel about App Engine + Gears at the OSDC Hackathon, particularly his beginning slides about how the architecture for the web was changing from server-centric to client-centric, and it was motivated by my desire to research more about the traditional client/server model, and various HTML5/Gears APIs. Here's the talk abstract:

"Most modern websites still place a large burden on the server, constantly sending it requests and asking it to do heavy computations. In the brave new world, the client is king and the server is its faithful shadow. In this talk, we'll look at how cutting-edge technology like Gears, HTML5, and Google App Engine can be used to create websites where the caching, storage, and computing is done primarily in the browser/desktop and the server is used merely as a backup store."

You can check out the slides below, read a great write-up of the talk from one of the attendees, and watch the talk. Oh, and right, the talk title is clearly a parody of an 80s song, and if you're sharp, you'll notice other 80s references in the slides... I couldn't resist.

Here are some interesting links that I read while researching for this talk . Most of these are about the server aspect, as I was trying to imagine the ideal setup of the server/database for my proposed smart client:

The talk went well, and it got me thinking about web development as it realistically stands now. Right now, we have places where we have really strong, smart clients - iPhone/Chrome/Safari/Google Earth (Webkit), Firefox, etc. But then we still have "dumb" clients lying around - IE6, Blackberry, etc. If we only had to cater to smart clients, we could design our applications to have dumb servers and most of the complexity in the client (as the talk shows). But, given the current state of things, we have to design our applications to replicate complexity in both the client and the server, and just figure out when it can safely pass off responsibility for complexity to the client and save our server effort. And that kinda sucks, because we all know redundant code in multiple languages is error-prone and messy. The solution right now is perhaps: 1) use frameworks that smartly export functionality to either the client or server as it sees fit (not sure if those exist), 2) decide that we don't care about dumb clients, or decide that we're content to send a very pared down version of the application to them, 3) get cryogenically frozen and wake up in 10 years when the world is awesome.

Read through the slides, and take this challenge: when writing your next web app, put all of the complexity in the client. See how far you can go. I dare you. ;)

Friday, February 27, 2009

Advertising Developer Events in Australia

One of the really fun parts of my role is getting to organize events for developers. For the past few weeks, I've been doing a series of talks/workshops on various APIs/tools, and I've been pleased with the turnout - about 20-30 people from different startups and companies, including Google. For other people who are organizing developer events in Australia (particularly Sydney), here are some tips about advertising:

To give you an idea of the effect of various types of advertising, here's a graph from the AppEngine talk registration that shows how people found out about the event.

Most reported that a friend told them about the event, and presumably their friends were one of the people that found out from one of the original sources. Of the original sources, the biggest referrer was "Google Calendar" - the calendar embedded on the Startup Australia website mentioned above. But basically, as you can see from the chart, every little advertising source counts - so be thorough. (Note: I didn't email any startups or user groups for this talk, but when I have, they've also contributed to the turnout).

Saturday, February 21, 2009

Coding in a Big Place

Usually, I give talks about our developer tools and how to use them. But recently, I was asked to give a very different talk - about how we enforce good coding practices at Google. The talk was for another large company that finds themself in the position of growing larger and larger, but with increasingly disparate and ghetto* coding standards across the company. I put together a presentation about how the Google codebase is organized and managed, based on my own experiences working on Google Maps and Google Code, 2 fairly different servers that are subject to the same cross-Google standards.

You can check out the slides below, and try to imagine what I said while talking over them :)

One of the slides talks about coding conventions. For people wondering about coding conventions for their own projects, check out our published style guides for C++, Objective C, Python, Java (kind of), and JavaScript (super-mini-version). We have style guides for a few other languages internally; I'll try to bribe my colleagues into publishing those.

Another slide talks about versioning. For people who need to teach colleagues how to use version control, this SVN lesson may be helpful.

By the way - all the screenshots are from public sites that simply look like internal tools, like Google Code Search and Google Code Project Hosting.

*"ghetto" is a technical term. Attend college in downtown LA, and you'll figure out what it means.

Friday, February 20, 2009

Encouraging Interaction at Conferences

As Stephen says whenever he welcomes everyone to Ignite Sydney, people often say that the best part of a conference is the networking (and unfortunately sometimes say the worst part is the talks). It's true -- if we simply wanted to learn a new topic or be inspired, we could read a book or torrent some TED talks. The reason we go to conferences (or developer events, generally) is so that we can learn together with a group of people, and make connections that are either social, business, or both. We don't know exactly what we're hoping will happen when we form these links, but oftentime a random connection at a conference will lead to some amazing collaboration a year after the conference.

But, there's a problem. We're all ridiculously shy. Okay, well, atleast I am, and I assume everybody else is atleast a bit intimidated by the thought of striking up conversations with relative strangers. So, how do we get people interacting at conferences, and leaving satisfied with the networking aspect of the event? Here are some tips, based on events I've been to recently (mostly Webstock, which rocked!):

Seating

Avoid rows of chairs at all costs. It is the least interaction-inducing option for seating, as it enforces the idea that the audience is there only to watch and interact with the speaker - not with everyone else in the room. Yes, you might strike up a conversation with the person sitting next to you, but it's unlikely. First of all, people don't sit next to eachother unless the room is packed - that's a violation of personal space (think of the urinal-picking game). Second, there's just something awkward about turning your head completely to explicitly start a conversation with your stranger-neighbor. And even if you do get chatting (perhaps through some forced interaction by the speaker, like a meet-your-neighbor thing), there's a max of 2 people (one on each side) that you'll interact with. The best seating I've seen was in the Webstock main room, which was filled with oval tables. Round, but not too round - perfect. It felt natural to chat with the people around these tables in between speakers, and to heckle together :). The only enhancement I'd make is to add some sort of centerpiece or objects at the table that people can treat as conversation pieces. It could be little toys, a box full of relevant facts/quizzes, etc.

Games

Webstock had a couple established games - a trading card game where people tried to collect speaker trading cards to get the best hand (for awesome prizes like a Weta ray gun), and an online game where people submitted ideas about space. The trading card game was a cool idea because the cards themself were awesome, and because it gave people an excuse to approach speakers for both cards and autographs. However, I'm not sure everyone was aware of this game from the beginning - I was rarely asked for a card, I just offered them out after my talk. I think they could spend more time at the beginning of the conference talking about the game and how it worked, and maybe include the card's cartoon avatar in the conference brochure next to the speaker's actual photo. Anyway, atleast a portion of people got super into-it, and even made a collaborative Google Spreadsheet to cheat the rules system. So that kind of game has huge potential, it just needs a bit more in terms of publicity and ease-of-play.

Besides the trading card game and the online game (which I didn't participate in), Jane spontaneously decided to hold a "scavenger hunt" at the after party. In the hunt, the leader would declare what object we needed to find, we'd have 5 minutes to do so, and then meet back in a location and compare our results. We were only allowed to ask for the object from people we'd never met before, so this gave us all a legitimate excuse to meet anyone that we hadn't yet (and to ask them absurd questions). We played a few rounds: "most bizarre object", "most purple object", "best dancer" - the last was the best as it turned into a dance-off with spectators joining in. After that, we were still in the games mood, so we invited our newfound friends to play a game of duck-and-goose on the bar floor. I feel bad for the bartenders who put up with us nearly running into their wineglasses half the time, but thankfully, there were no serious injuries and the game was a lot of fun. So, have a few established games, have a few on-the-spot games. Not everyone will get into them, but those who do will absolutely love it.

Mailing Lists

OSDC had a mailing list for all the attendees, and Webstock had a mailing list for just the speakers. At OSDC, people used the attendees mailing list to do things like arrange post-parties or meetups, or find out info about the local area. Here at Webstock, we've been using the speakers mailing list for arranging speakers-only events (mostly the dinner), and just hanging out together. Most of us are from out of town and we're all staying in the same hotel, so we're an obvious group of people to hang out together. I do wish there was also a Webstock-wide mailing list so that we could potentially meet up with non-speaker attendees. There's a giant carnival outside today, and if we had a Webstock-wide mailing list, people might email it and decide to meet at the various concerts. So, set up both an attendees and speakers mailing lists for an event - people will find uses for both.

Twitter

It's probably somewhat obvious that you should use Twitter, but there are a couple things you should do to maximize the twitter conference experience:

  1. Establish a twitter hashtag before the event starts - preferably something not too long, so that people don't have to sacrifice precious characters (#webstock09 was a bit long)
  2. Create an official twitter account for the event (e.g. @webstock) and start using this long before the event
  3. Embed the live tweets on the event webpage, or if you're pimp like Webstock, project them as the screensaver in-between speakers.

Questions

For me, the questions portion can be a really enlightening part of a talk. They reveal the audience's immediate reaction, and help you realize what big ideas you might have forgotten in your talk. At Webstock, they pretty much discouraged us from leaving time for questions, since time was at a premium. Of course, people could approach the speakers after, but there's something different about the questions that people ask you individually and the ones they pose in front of the audience, and I wonder if we would have gained from having a few live questions. If you do want to encourage live questions and you have the time for it, here are a few tips:

  1. Setup microphones throughout the venue that people can approach
  2. Don't dim the lighting after the talk ends - speakers should be able to see the people asking questions
  3. Use Google moderator or a similar app to let people submit questions during the talk, and then have the speaker answer them at the end - this eliminates the anxiety of question-asking, and lets you see what questions are the most popular in an audience (particularly important if you're time-limited).

At DevFest, we even set up a live chat so that people could ask questions while the talk was going on, and the non-speaking Googlers would moderate it. This was particularly important when we were talking to non-native-English speakers, as they often wanted clarification on what the speaker was saying (particularly the ones with thick French accents!), but it was also just a way to let people ask more minor questions, links for topics mentioned, etc. So, let people ask questions, and give them multiple ways to do so.

Speakers

The mo' speakers, the betta'. A speaker is the one person at a conference that everyone has an excuse to approach, as they can say stuff like "What will your talk be on?", "I see you're talking on X. I also work on X.", "Great talk! I just had one question.." This is why I'd recommend that most events try to have lightning talk or Ignite sessions (5 minutes each), as you can fit about 10 speakers in an hour - and thus encourage the # of people that attendees have an excuse to talk with. It also helps to either introduce speakers at the beginning, or identify them via special badges or clothing in a very obvious way. I always get sad if I'm one of the last to present at a conference, because then I'll suddenly have all these people who'd like to chat with me for a few minutes when they realize my areas overlap with theirs - but there'll be no time left in the conference to do so. So, have more speakers, and make them identifiable.

Breaks

Don't do a continuous stream of talks all day. After every hour or two, have a 15-30 minute break, ideally with snacks. It gives people a chance to discuss what they just saw, and possibly meet new people - my usual strategy during a break was to approach a group of people where I knew one person, and then got introduced to the others there. Networking is all about the network effect.

Alcohol + After-parties:

You can't go too wrong with this combination. A few tips:

  1. Have an after-after-party that's not too far from the original venue - you'll often have to kick people out of the fancy venue around midnight, and they'll still be buzzed and want to continue socializing
  2. Have some non-beer alcohol like wine, champagne, or Smirnoff ice (this is purely for my benefit, I hate beer)
  3. Hold the after-party in a venue where people can see eachother's faces - it's awkward to approach people if you can't see what they look like
  4. Have some entertainment during the party - a band (Webstock had a robot band), a game, a magician, etc. People like to watch things together, and comment on them.

Ask-the-Audience

At our first DevFest in Singapore, we were in desperate need of a stall tactic as we waited for the first speaker to arrive. So, I put on my MC-hat and surveyed the audience for a good 15 minutes, cracking a few jokes and telling childhood stories along the way. I asked them questions like favorite programming language, favorite browser, favorite music genre, student/professional, etc. It was both a great way to get to know our audience so that we could target our talks accordingly, and a great way to start off the event with an interaction vibe, instead of just starting with some person talking at an audience of strangers. So, even if you don't need to stall - take a few minutes to get to know your audience better.

What other recommendations do people have? If we can accumulate our experiences together and learn from them, we'll leave every conference feeling that we got what we actually came for.

Update: I added "Ask-the-Audience", as JR's Wifi comment reminded me of more DevFest experiences.

Wednesday, February 4, 2009

GeoWeb 2009 Proposal: "GeoWeb Standards: How far they've come, How far they need to go"

Ok, I've never been to GeoWeb, but it's in Vancouver and I've been told Vancouver is a nice city with great boba (milk tea). So I've proposed a technical session about the current GeoWeb standards (KML, GeoRSS, GeoJSON), and about what I think their future together should entail. I've played around a lot with both these formats over the past few years, written parsers and generators, and now I've got a fairly good sense of what I still need from these formats, both as a developer and a consumer. If this talk is selected, it will give me an excuse to further articulate those needs, and my personal vision. I'd be interested to hear other's opinions about the state of the GeoWeb standards.

Here's the abstract:

GeoWeb Standards: How far they've come, How far they need to go

The GeoWeb is growing up rapidly. KML, or Keyhole Markup Language, was invented by Google five years ago and became an OGC standard last year. GeoRSS, an extension of RSS, was invented by Harvard around the same time, and is now a defacto standard. There are now tens of thousands of KML files out there, popular sites like Blogger outputting GeoRSS files, and there are numerous parsers, generators, and validators for both of these formats.

But we're still really in the infancy of being able to truly share and track geo data on the web. We can't subscribe to updates for a KML file with a GeoRSS feed, we can't do CRUD operations on a KML file, we can't settle on a "flavor" of GeoRSS, and more importantly, we can't figure out how these two formats should co-exist in perfect harmony. In this talk, we'll examine the progress the current standards have made and discuss how they could work better with eachother and with the rest of the web - covering topics like syndication, collaboration, searchability, and unification. We'll conclude with suggestions about how the attendees can help.