Friday, September 4, 2009

Upgraded to Snow Leopard (OSX 10.6)

Got Snow Leopard today and decided to upgrade. Install went smoothly and took about 30 minutes. The only glitch was after it was done I got that strange blue tinge screen, but a reboot corrected that. Here are the steps to upgrade:

Insert DVD and run the Upgrade installer.
Once upgrade, go to www.adobe.com to install the latest flash player since the one with Snow Leopard has a security hole.

--- The next are optional ---
Install XCode from the installer disc.
Install macport 1.8 for Snow Leopard
Follow the instructions to update macport packages: https://trac.macports.org/wiki/Migration

Tracking status of macports on Snow Leopard: http://trac.macports.org/wiki/snc/snowleopard

Saturday, August 29, 2009

Using ctrl-c/v/x on OSX for copy/paste/cut

Three very common keyboard function that I use is to copy/paste/cut. For my hands, I found it more comfortable to use the CTRL key instead of the COMMAND (apple) key along with c/v/x. To change the key binding:

create/modify the file: ~/Library/KeyBindings/DefaultKeyBinding.dict

with the following:

/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
{
"^z" = "undo:";
"^x" = "cut:";
"^v" = "paste:";
"^c" = "copy:";
"^a" = "selectAll:";
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"\UF72C" = "pageUp:"; /* PageUp */
"\UF72D" = "pageDown:"; /* PageDown */

}


Applications that uses the Cocoa AppKit text edit objects (i.e. TextEdit). However, not every application will necessarily support this. I noticed that Firefox does not which is very annoying.

For more details, http://xahlee.org/emacs/osx_keybinding.html is very useful.

To swap ctrl and command in Firefox/Thunderbird edit 'ui.key.accelKey' to 17 (about:config in Firefox, advance config in Thunderbird). Specifically, you can use one of the following:

17 Control (windows style)
18 Alt (unix style)
224 Meta (Mac OS command).

Thursday, July 2, 2009

Tuesday, June 30, 2009

Firefox 3.5 icon with version number

4965

Download the image here.

Firefox 3.5 is out and since those of us working on the web usually have multiple versions of the browser installed, having an icon with the version number on it makes it easier to identify the instance we're loading.

This is inspired by http://browserversionicons.com/firefox/

With the icon from Mozilla.

Instructions for running multiple instances of Firefox are here.

Tuesday, June 16, 2009

Red Cooked Pork

Found original recipe here: http://www.redcook.net/2008/01/18/hong-shao-rou-red-cooked-pork/

Ingredients:

* 1 1/2 lb. pork belly meat cut into two inch cubes
* 2 tablespoons sugar
* 3 cloves of garlic peeled
* 1-2 whole star anise
* 2 tablespoons soy sauce (老抽)
* 1/4 cup rice wine (紹興酒)
* 1 1/2 cups water

Preparation:

* Melt the sugar with some water in a small pot over medium high heat. Continue heating until the sugar is slightly brown.
* Brown the cubed pork in the pot
* Add brown it with the caramelized sugar. About 8 minutes.
* Put the garlic, star anise,soy sauce, rice wine and clear stock into the pot. Cover the pot and simmer over low heat. Cook for about 40 minutes. Stir the meat every 10 minutes to make sure the bottom of the pot does not get burnt. Remove the cover and turn the heat to medium high. Cook the meat for another 10 minutes until the sauce reduces to a smooth consistency.
* This dish, like most stew dishes, is better if left overnight and reheated the next day.

Sweet Green Bean Soup

This is a popular Chinese summer time treat.

1.5 cup green beans (mung beans)
10 cups water.
5 T sugar.

Wash the beans.
Bring water to boil.
Add beans and simmer at low heat for 45 minutes or until bean is soft.
Add sugar and stir.

Can be served hot or cold.

Monday, June 15, 2009

2009 NBA Champion: LA Lakers!!!

Every post-game interview last night asked how this championship is different from the 3 Shaq-Kobe ones. As a fan, this one was different then those three since this one came after a loss in the previous finals that led to an entire season where the focus is just on winning the championship. Maintaining the focus throughout an entire season must be so difficult that it should set this one apart from the others.

Thursday, June 11, 2009

Lakers vs Magic Game 4

A couple of observations from Game 4.

Beyond D-Fish's clutch 3s was how much energy and effort he brought to the game. He out hustled everyone in that 3rd quarter. Everyone, go watch him again. That's heart.

Kobe showed a little frustration when Howard had his arms wrapped around him during a foul, but it was through a complaint to the ref. He must have the patience of a saint because to have people draped over him on every play like that would piss most everyone off. I would guess that most players would've retaliated under that kind of foul and harassment.

A company is the people who work for it.

I ran across this article through Hacker News by an entrepreneur who had sold his previous company and realized that he needed to start a new company. The author definitely has that entrepreneur spirit of wanting to take action on ideas, but a few of his statements are also examples of the negatives views adopted by many who are in management and leadership positions.

"I hated having 85 employees. It had become a little hell. I needed to get away and clear my mind."


How sad to hear from their leader that he hated having to deal with them. Being in management and leadership positions means having a degree of power over the employees, but it also comes with a responsibility for those employees. Employees are people and not just pawns to fulfill the manager's whims.

Before accepting the job of a manager, think about what that position means because it can be very different from what your existing role is.