♫ Nat King Cole – I’m In The Mood For Love

I’m In The Mood For Love by Nat King Cole W/ Lyrics – YouTube.

Found this to complement the following quote today on IRC at Automattic, by yourself truly .

♫ I’m in the mood to ship, simply because you’re near ready ♫ (to the tune of http://www.youtube.com/watch?v=Gg7OUG9V_cw)

To which Andy replied:

I was thinking more like “It’s time to ship!!!” http://www.youtube.com/watch?v=Ue3F3isiCvQ

Works too! Now, let’s ship that code! :)

.vimrc Tweaks

I’ve recently made the plunge and standardized all my text editing needs around vim. That is to say vim when in local or remote terminal sessions and macvim when editing local files.

Since this has lead me to tweak my .vimrc file, I figured I’d post its current incarnation for posterity.

set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
set nowrap
set ruler
syntax on
filetype indent on
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType c set omnifunc=ccomplete#Complete

Here’s what it means:

  • tabs config: I like my tabs to be real tabs, but show as 4 columns/spaces wide, not 8
  • nowrap: most of my edits involve code and I don’t like soft text wrapping in that context. I just use set wrap when I need it instead
  • ruler: displays the current cursor’s position (line/col) at the bottom right, which means I don’t need line numbers displayed and save some screen real-estate
  • syntax: I like pretty colors when editing code :)
  • filetype indent: cursor remains at the same tab stop when editing indented code and going to a new line.
  • autocmd: sets code completion (AKA: Omni Completion) via ctrl-xo for PHP, Javascript, HTML, CSS, XML, Python and C

Those are the only configs I’ve found myself needing at the moment, but they made a huge difference in my daily productivity. Maybe they will for you too.

2011 Facebook Hacker Cup

Check out Facebook’s worldwide coding competition:

The 2011 Facebook Hacker Cup is the first annual Facebook programming contest where hackers compete against each other for fame, fortune, glory and a shot at the coveted Hacker Cup. […] Many will enter, but only one will claim title as champion and take home the $5,000 USD cash prize and be immortalized on the Hacker Cup.

Registration opens on December 20th 2010.

On a side note, I love that poster design. :)

Gmail Address Variants

Did you know Google ignores dots in your Gmail address username?

Sometimes you may receive a message sent to an address that looks like yours but has a different number or arrangement of periods. While we know it might be unnerving if you think someone else’s mail is being routed to your account, don’t worry: both of these addresses are yours.

I knew. Good thing I remembered when asked by a previous Plinky user about why he was still receiving weekly emails despite having deleted his account prior to Automattic‘s acquisition of the product. This was in fact the source of the issue.

Developers should also keep this in mind when programming a user and authentication system, as it can lead to support conundrums. This is also another example of why it’s always a great idea to go through an email validation step during your signup/activation process.