March 2009

You are currently browsing the monthly archive for March 2009.

Our Love Language

The following is an actual email that I sent to my wife today.  It’s talking about a coding function that I’ve been using that I find very handy.  Please feel privileged that I am sharing such personal, lovey-dovey material.

Subject:
FFOTD - Favorite Function of the Day

Body:
http://www.php.net/manual/en/function.array-diff-key.php

array array_diff_key ( array $array1 , array $array2 [, array $... ] )

Here’s the situation:

  • I’m checking to see if the currently logged in user has certain roles to access a page
  • I have 2 arrays, 1) the roles the user has, 2) the roles that they should have for access <= key’s set to the role_id

Instead of running a nested loop to see if the user has those roles, I just use array_diff_key to see what the deltas of the array keys are in both arrays. If there’s a delta, then NO ACCESS. If there’s no delta, then they are all good!

woot!

Anyone wanna go on a double-date with us?

Tags: ,

I have not one drop of Irish blood in my system, and like many others on this day, I am “celebrating” St. Patrick’s day.  In Chigago, they dye the Chicago River green every year, and I do a micro-version of that in spirit - a mint-chip Guinness float! After consuming this (and a few more Guinness’), I pseudo-physically inherited some Irish blood :)

Tags:

Boutique Brew

My sister-in-law Helen knows the way to my heart - a 6′er from a boutique brewery.  Sudwerk is a microbrew out in Davis.  She picked some up on the way home from a daytrip to Tahoe for some boarding action (note the beanie).  

Here we have the Marszen which is a darker brew with a nice nutty and malty flavour (that’s right, I put a “u” in flavor).

Since moving up to the Bay Area on January 28th, 2009, I’ve eaten at a variety of places (to say the least). In the OC, you turn the corner and there’s yet another TGI McFunsters* in a brand new plaza (no offense, it has it’s own charm and sense of security we all need).  Up here, turn the corner and you find a place that you’ve always wanted to go to that’s on your list of 100 places to go to before leaving the Bay Area.  Having said that, 28 days passed before I went back to a place the 2nd time around - the “Taco Truck” on the corner of Polk and Hayes.

BTW, for those of you who have given up (good) food for Lent, I didn’t write this post to rub it in :p

Here’s my list of places I have eaten in the last 40 days - yelp links provided:

* phrase coined by Anthony Bourdain, my foodie hero

** yumm!

Sunday Night Dinner

Tonight’s menu was requested by my mom herself.  She had a whole bunch of fresh fish fillets sitting in the fridge and thought fish ‘n chips would be a good way to dispose of them.

Nothing super fancy here, just meat and potatoes, so to speak and literally.  I also made some yellow and green squash along with some eggplant and mushrooms, sauteed in garlic chunks and olive oil.

For the fish batter, I used some flour, salt, pepper, and the secret ingredient, a bottle of New Castle.  A bunch of sauces also came to the party.

Parking In SF

This is dedicated to those of you out in The OC (Orange County):

We went to go have dinner in the city with some friends on a Friday nite (at the club), which became an eventful evening before we even got to the restaurant.

After 30 minutes of circling, U’ing, and broken-heartedness, we finally found parking far far away.  In the image on the left, the green pin denotes where we parked, and the red pin denotes where the restaraunt was.

I’m not complaining about the parking.  I share this situation for those of you who do complain about parking at a “far spot” in a nice parking lot, with the destination a whopping 100 yards away :p

Weekend Cooking

Living with the parents definitely has it’s perks, namely, built in babysitting.  Another great perk is that my mom loves to cook us dinner.  Needless to say, she’s a great cook since it has been her profession for the last 30 years.

To give her a break, Susan and I cook dinner for the weekends - not a bad deal for us, a 5:2 ratio.  This Sunday, I cooked a few dishes I’ve been cooking and refined many times over since college (the mid 90’s).  Here we have a Chinese food trinity - starting on the left going clockwise: garlic chicken, hot braised string beans, and eggplant.  I’ll leave you with the ingredients:

Garlic Chicken:

  • chicken (duh)
  • garlic (double duh)
  • water chestnut
  • bamboo shoots
  • soy sauce
  • ginger
  • green onions
  • Tuong Ot Toi Viet Nam Chili Garlic Sauce (but of course)
  • sugar
  • salt/pepper

Hot Braised String Beans:

  • String beans (duh)
  • garlic
  • ginger
  • sesame seed oil
  • Tuong Ot Toi Viet Nam Chili Garlic Sauce
  • soy sauce

Saucy Egg Plant:

  • Eggplant (duh)
  • Mr. Yoshida’s Original Gourmet Sauce (I cheated)
  • garlic
  • ginger
  • salt/peper

BTW, no MSG added.