Sunday, September 30, 2012

Daly Tripper

It's been a few weeks now in our new city! We took advantage of the weekend and made a trip to Golden Gate Park.

While we waited for the Muni at the Daly City BART, an elderly Asian lady tried talking to us, but we couldn't understand her. Finally she pointed to something behind us.  Turns out we were waiting at the wrong stop; she must have noticed we were waiting for the 28-bus after seeing us rush to catch the one that just left.  I was impressed that she put in the effort to let us know!

We ate and picked up some random necessities at different shops.  We even dropped by an estate sale along the way.  It turned out to be a really nice, sunny day, which was a huge contrast for me, being cooped up in gloomy, foggy Daly City all week.  Here's a picture of us waiting for the bus again, enjoying our first (quite cheap) "self-serve boba" milk tea:
Public transportation gluttons

Friday, October 14, 2011

Hitched

photo:  Alan Harris

Wow.  It really happened!  I put in my share of time and effort, but really Vicki gets all the credit.  Somehow we managed to pull it off in these past three months.

I'd like to give a very heartfelt thanks to everyone who went out of their way to attend.  If it wasn't the most complicated ceremony/reception arrangement possible, it must have been close to it.  It meant so much to us to be able to see all of your faces.  Friends and family came from as far north as Seattle, as far south as Texas, as far west as Taiwan, and as far east as France.  As much as Vicki and I dislike being the center of attention, we are so moved by the love and support you all have shown us.

And as if coming out all that way wasn't enough, everyone gave us so much!  Thank you all for your kind generosity.

It would be impossible to adequately thank everyone who helped make this happen.  We definitely could not have done it without the help of: Vicki's mom, aunts and uncles; her sisters Karen, Mimi, and Betty; and her bridesmaids Joanne and Ann.  A special thanks to groomsmen Ben and Joel (and their wives, Claire and Joanne) for throwing me a blast of a party and as well as staying so on top of things throughout the entire marathon of a day.

And a heartfelt apology to all those we couldn't invite.  Hopefully we will get to see all of you in the near future.

Thanks again, everyone!

P.S. I also deeply apologize for the band at the reception.  Yikes.

Sunday, September 4, 2011

DropboxDiff Chrome Extension


2014-01-05 update (version 1.0.2.13) - Inline diff implemented.
2014-01-04 update (version 1.0.2.12) - Account for "sjid" parameter in any position.  Distinguish Diff button better.
2013-06-23 update (version 1.0.2.11) - Switch from background page to event page.
2013-01-05 update (version 1.0.2.10) - Fixed to support 64-bit linux.  Added a Test button to the options page.
...


I've written DropboxDiff, a Chrome extension which allows you to compare different versions of text files you have on Dropbox.  It basically triggers a diff tool you have installed on your local machine already, which you must configure.
  1. On the Dropbox website, browse to the "Previous versions" page of any text file.
  2. A "Diff" column has been added where you can select which two versions to compare.
  3. Click the "Diff" button.
    1. If a diff tool is not yet configured, the options page opens where you can specify one. If you don't have one installed already, I recommend kdiff3. The setting is accessible from Tools > Extensions > DropboxDiff > Options.
    2. Otherwise, your diff tool should open.
This should run on Windows, Mac, and Linux.  Please let me know if any issues come up.

Thursday, September 1, 2011

Blame it on the Tron

I watched old school Tron the other night. So much awesome kitch in that movie, I couldn't stop grinning during the whole thing.

Some things I noticed, since last time I watched it, a few decades ago:

The "Watseka" street sign sounded really familiar. Lo and behold:


View Larger Map

I live within 10 miles of Flynn's! We'll have to pay homage some time. Here's the wider shot.

I don't think they used the same spot for Tron: Legacy, though.

I also don't remember this blatant Easter egg:

They even sampled the Pac-Man sound effects. I remember Pac-Man being such an incredible craze at the time (we sang the "Pac-Man Fever" song in school once, badly), but somehow I never caught it here.

The Messianic overtones of the movie were pretty interesting too — Flynn being the User/god, come to inhabit the world of programs in order to save them. I certainly didn't pick that up as an 8-year old. Then again, it's only these days that I spend any time wondering whether our reality is just a computer simulation.

Here's a bit of dialogue I liked quite a bit.  Flynn has just revealed to Tron that he is actually a User, and not just a program, like the rest of them.
Tron: "If you are a User, then everything you've done has been according to a plan, right?
Flynn: "You wish! You guys know what it's like; you just keep doing what it looks like you're supposed to be doing, no matter how crazy it seems."
Tron: "That's the way it is with programs, yes..."
Flynn: "I hate to disappoint you pal, but most of the time that's the way it is for Users, too."
Tron: "Stranger and stranger."
Wise words.

Sunday, July 10, 2011

Facebook Dis

Have you ever been alone, minding your own business, and suddenly realize that someone has been following you, watching your every move, for the past two hours?

That's what it feels like when I'm visiting different websites and I suddenly see:


"[various friends] like this."

The scary thing is that the stalker metaphor is quite appropriate – Facebook really is stalking you, keeping track of wherever you go whenever you see one of these.

So I really liked a Chrome extension called Facebook Disconnect.  Unfortunately, it tends to break some sites (Scrabble, in particular).  So I extended the extension to allow whitelisting certain sites.

Presenting:  Facebook Dis.

If you really want to get fancy you can read the whitelist from a specific URL, say a website or public Dropbox file.  This lets you to configure several installations of Facebook Dis in a single place; all instances will stay up to date automatically the next time you open your browser or click "refresh" from the options page.

Thanks to Brian Kennish for the original Facebook Disconnect.

Thursday, March 31, 2011

Fast Make for Vim

I wasn't really satisfied with Vim's :make behavior so I wrote a script to do what I wanted.
  • Saves buffer first
  • If there are errors, show them in the quickfix window
  • Success is reported in the status bar
  • Saves some keystrokes, especially if mapped to F5
Here it is. You can put it in ~/.vim/plugin/Make.vim, or if you are using pathogen, ~/.vim/bundle/Make/plugin/Make.vim.

This is basically my first Vim plugin so please let me know if there are things I could improve.
"=============================================================================
" File: Make.vim
" Author: Victor Shih
" Last Change: 3/30/2011
" Version: 0.01
" WebPage: http://blog.vicshih.com/2011/03/fast-make-for-vim.html
" Description:
" Custom Make command:
" - if results are a single line, echo;
" - otherwise output to quickfix buffer
"
" Usage:
"    :Make [<target(s)>]
"
" Trigger via F5 by specifying:
"
"   if exists('g:make_loaded')
"     map <buffer> <F5> :Make<CR>
"     imap <buffer> <F5> <ESC>:Make<CR>
"   endif
"
" in any desired ftplugin scripts.
"
" g:make_loaded is set when this script is run
"
function! Make(args)
  " Close quickfix
  cclose

  " Compile arguments
  let l:args = strlen(a:args) ? ' ' . a:args : ''
  let l:title = expand('%') . ' - Make' . l:args

  " Force write
  silent write!

  " Move to current directory
  lcd %:p:h

  " Make
  let l:out = split(system('make' . l:args), "\n")
  let l:len = len(l:out)

  " Output to quickfix
  cgetexpr l:out
  let w:quickfix_title = l:title

  " If no output, just report success
  if l:len == 0
    redraw
    echo l:title . ' succeeded'
  " If output is a single line, echo it
  elseif l:len == 1
    cc 1
    redraw
    echo l:out[0]
  else
    execute 'copen' l:len + 1
    cc 1
  endif
endfunction

command! -nargs=? Make call Make("<args>")

let g:make_loaded = 1