Showing posts with label 2update. Show all posts
Showing posts with label 2update. Show all posts

Thursday, March 13, 2008

Orchid Restaurant

3033 Bristol St # B
Costa Mesa, CA 92626
(714) 557-8070

We went here to treat Leakna since it is her birthday. It has good food and the service is reasonably prompt.

I wonder why people hate this place [link to google]

Tuesday, February 5, 2008

Woke Up Late Today

Suffering from reading lots of material about dynamic class loading and interfaces, so instead of taking 682, I am taking 600 - looks like everyone is in the late mood today since the train arrived late at Tustin too.

[write what the boyos have done]

Gluing the KWDT class and the code that Freeman and Latisha have written ... and in the end I decided not to use dynamic class loading.

This is the basic of KWDT [link to the implementation of kwdt].

In nutshell, to handle pressing of button object.
String AUT = "app";
String objtype = "button";
...
Class c = Class.forName("com.fnis.application."+AUT+".object."+objtype);
button uiObj = (button) c.newInstance("login");
uiObj.press();
But, a problem arises since the code needs to handle the object based on the type of action:
String action = "validateenabled";
...
if (action.eq("press")) {
uiObj.press();
}
else if (action.eq("validateenabled")) {
uiObj.validateenabled();
}
else {
// action not handled yet
throw ...
}
It is apparent that the code needs to have a lot of "if .. else ..." statements to cover each action, and to minimize the branch statement, I settled for Reflection. It cuts the "if ... else ..." statements down to nothing.
import java.lang.reflect.*;

String AUT = "app";
String objtype = "button";
String action = "validateenabled";

Class c = Class.forName("lib.applications."+AUT+".object."+objtype.toLowerCase());
Constructor ct = c.getConstructor();

Object arglist[] = new Object[6];
arglist[0] = window;
arglist[1] = objName;
arglist[2] = data;
arglist[3] = expectedResult;
arglist[4] = timeout;

Object obj = ct.newInstance(arglist);
Method m =c.getDeclaredMethod(action);
Hopefully, using Reflection won't kill the performance of the test code.

Thursday, January 17, 2008

XML::SAX for Comparison Report

Toying with XML::SAX again since the comparison report has to reflect the original XML.

[Insert sample here]

Currently I am writing a script to mimic XML::Tidy.

Friday, January 11, 2008

Magellan CrossOverGPS (Preliminary)

I couldn't remember exactly when I decided to settle with Magellan CrossOverGPS, after thumbing through numerous user guide books and online stores. I believe I decided to purchase this unit after reading the review by GPS Magazine on Dec 11 (timestamp is provided by del.icio.us).

This unit met several of my criteria:
  1. SiRF III chipset.
  2. Tracking
  3. Turn-by-turn voice directions with street name
  4. Custom POIs.
[Post picture]

Who cares about integrating GPS with data network? I'll wait until someone fix the coolest hack of 2007.

And I receive my unit today, I could have had it yesterday, but I was out of commission and couldn't function half of the day.

The problem with this unit is immediately noticed when it is fired up: satellite lock is taking too long (~5 min on open air, impossible in the building).

Then the unit presents me with 6 applications:,
  1. Vehicle Nav
  2. Marine
  3. Outdoor
  4. System
  5. Music
  6. Photos
Since I will be sitting in a vehicle most of the time when using the unit, I give Vehicle Nav a try. The review by GPS Magazine is correct, it mentioned the unit's processor being under-powered. Indeed, the application takes a while to be fully loaded.

First, try the street address, it could search a street by city and zip code. The strong point of using this unit: it eliminates wrong entry by disabling the key and auto complete features.

Taking the unit to the street, the rerouting calculation is prompt, other people give bad reviews on the re-routing recalculation time, but I don't have a problem with it. Maybe it is easier to detour in Southern California?

On the way home, I turned on the tracking feature via outdoor application. The resulting log was exported to SD card, converted to KML format using Perl, and uploaded to Google Map.
Checking the map, I found that it is fairly accurate, since it tracked the movement of the car at the correct lane of 605 freeway (north bound instead of south bound or out of the freeway).

I couldn't wait to take the unit to the trails and uploading the results.

Tuesday, January 8, 2008

New Year Resolution

With the craziness at the closing of 2007, this topic is:
[under construction]

Thursday, January 3, 2008

Install NDISWrapper For Wireless Access

I attempt to install NDISWrapper for wireless access following this instruction: http://ubuntuforums.org/showthread.php?t=201902.

Apparently something is not right, since it doesn't work.

Wednesday, December 12, 2007

Goat Hill Tavern

1830 Newport Blvd
Costa Mesa, CA, 92627
Tel: (949) 548-8428

It is called tavern but it is really a beer joint, well known for the weird selection of beers, e.g:
  1. Turbo Dog from New Orleans, LA
  2. Murphy's
  3. ... [will update as I remember/revisit the place]

Sunday, December 9, 2007

No Country For Old Men

Didn't do much today, Ida and I had a late breakfast and we went to watch No Country For Old Men.

[write more]

I missed a lot of good lines, especially the last Tommy Lee Jones' monologue.

And then ate some ramen at Halu.

We finished the day by watching Gosford Park at home. Saw Kelly Macdonald again.

Friday, November 23, 2007

Mì La Cay

I couldn't find the address using Google, need to go back and get it.
Cross street: Westminster and Brookhurst, Garden Grove, CA

Place is a bit ghetto but the food is great. The menu is simple: on the left, egg noodles and the various sides, on the right white flat noodles with the same sides. Middle section is reserved for the non-fanatics.

I guess I am a commie since I love the egg noodles with duckling or bbq duck.

Thursday, August 9, 2007

Teo Chew Noodle Place

Brookhurst and Westminster - Danny brought me here.

Need to find out the detail once I am back.

Com Tam place

1st and Harbor Blvd. Favorite lunch place, relayed by Danny

Korean restaurant @ Culver Dr

Brent took me to this Korean restaurant in Culver Dr. 5S, exit Culver and turn right, the restaurant is on the immediate strip mall left hand side).

I forgot the name but they are the only one that sell pickled crab, which I haven't had since ... I was a kid.
On the side: they have a killer kalbi too....