Friday, February 29, 2008

Stranded In Laguna Niguel

This is the price if I fall asleep in the train and miss the Tustin station. I took off at Laguna Niguel station, and it took 1.5 hours of bus (OCTA 91-83-59) to get myself to the office.

Morale of the story: don't fall asleep at all cost.

Thursday, February 28, 2008

Send In Event 9 - Advance

Done in 15 minutes.

Send In Event 7 & 8 - Advance

I'll be damn - I am using this medium as twitter now.

Wednesday, February 27, 2008

Sprint EVDO Coverage Is Spotty

Take Metrolink #689 from Tustin to LA-Union Station today (Orange County line) and chat with Freeman along the way. Apparently Sprint's EVDO coverage is fairly spotty since I lost connection a couple of times.

Working from the train is going to be tricky, unless you are playing with stateless protocol.

Note: the little bugger sucked half of the juice of the laptop to top itself off.

Back To Working on Java Again

Section.java from Freeman is killing me.

Windows Desktop Search 3.01 Is Draining The Juice

This morning, my D400 died on me after 45 minutes, it is highly unusual since it was not hooked to the BB unit (that little thing sucks - not leech - the juice).

Back in the office, I:
  1. started intelppm service - but it didn't help much.
  2. un-installed WDS 3.01 - which helped a lot.

Tuesday, February 26, 2008

Relaunching Process(es)

Time server on SMURF keeps dying for no reason and it prevents the NGS test from starting. Write a quick script that checks and launches the time server process if it is not found every 15 minutes.

WR License Server Backup

For an odd reason, Dan is sweating about the license server and he wants it to be backed up.

Apparently it is using Sentinel LM from Rainbow Technologies.

This is the plan:
  1. Backup the content of lsdecode.exe -s lservrc
  2. Backup lservrc file,
  3. Just to be sure: I'll image the partition and make the current drive configuration RAID 1 (mirrored).

Dashboard PP

There is no memory leak - the script run for 24 hr without any problem.
Fixing the 24 hr log roll.

Write instruction to Poore and Rapin.

Send In Event 5 - Advance Only

Damn laptop ran out of juice this morning when I was finishing #5.

Sent it out at 8:03PT from the office, dunno if Jan accepts this.

Monday, February 25, 2008

Going Wireless Via USB

Sprint has an installer that setup USB data connection from your PC/laptop to BB 8703e, so you don't have follow this instruction.

EVDO is sweet, with 3 bars (out of five) I could browse gmail without problem, vpn to SSH and RDP with minor lag too.

Deploy Dashboard PP

Twist the code to log the performance time in 24 hr time period, and run the script to see if there is memory leak and other snafu(s).

The script doesn't shut down properly, fix it.

While the script is running, I am looking into running RFT scripts without RFT being installed.

Troubleshooting RFT With IBM Support

Woke up 3:00AM in the morning and in the office by 4:30.

It was a good session since IBM team managed to solve the problem.

Sunday, February 24, 2008

Cold Boot Disk Encryption Attack

There goes pointsec - it is hacked.

Green BS

Another potential green bs from Honda. Q to the all mighty:
  1. What is the saving if the car is traveling on the average of 25mpg (LA scenario)?
  2. How much weight this system adds?
  3. Any additional services?
  4. How long will this system last without service?
I don't want to bus additional 30lb of dead weight when the system is out of commission (since the repair might cost more than the car itself).

Friday, February 22, 2008

Thursday, February 21, 2008

Sick

Wednesday, February 20, 2008

Send In Event 3 - Advance

Send In Event 1 & 2 - Advance

I read about 2008 Winter Scripting Games when skimming through RSS from usePerl.org.

Tuesday, February 19, 2008

Raising The White Flag

I gave up on fixing RFT on SGADSH-SPQINT04, let IBM slaves through this.

BB 8703e

I am going to get BB 8703e from Sprint instead of the 8830. The reason is simple: cheap.

But I believe it is better to have 8830 since it has microSD socket, and those units only have 64MB of memory.

FISA Stalled In The House

Finally, the Representatives' inaction is actually beneficial, FISA law lapsed in the House.

Thursday, February 14, 2008

Bush, House Democrats Face Off on Wiretapping Bill

From NPR: Now, it is up to House Democrats to stop this craziness.

FISA - Dodd Amendment

From senate.gov as pointed out by zulchzulu:

These traitors voted 'No' on Dodd's amendment to strike the provisions providing immunity from civil liability to electronic communication service providers for certain assistance provided to the Government.

NAYs ---67
Alexander (R-TN)
Allard (R-CO)
Barrasso (R-WY)
Bayh (D-IN)
Bennett (R-UT)
Bond (R-MO)
Brownback (R-KS)
Bunning (R-KY)
Burr (R-NC)
Carper (D-DE)
Chambliss (R-GA)
Coburn (R-OK)
Cochran (R-MS)
Coleman (R-MN)
Collins (R-ME)
Conrad (D-ND)
Corker (R-TN)
Cornyn (R-TX)
Craig (R-ID)
Crapo (R-ID)
DeMint (R-SC)
Dole (R-NC)
Domenici (R-NM)
Ensign (R-NV)
Enzi (R-WY)
Feinstein (D-CA)
Grassley (R-IA)
Gregg (R-NH)
Hagel (R-NE)
Hatch (R-UT)
Hutchison (R-TX)
Inhofe (R-OK)
Inouye (D-HI)
Isakson (R-GA)
Johnson (D-SD)
Kohl (D-WI)
Kyl (R-AZ)
Landrieu (D-LA)
Lieberman (ID-CT)
Lincoln (D-AR)
Lugar (R-IN)
Martinez (R-FL)
McCain (R-AZ) <- Double freak!
McCaskill (D-MO)
McConnell (R-KY)
Mikulski (D-MD)
Murkowski (R-AK)
Nelson (D-FL)
Nelson (D-NE)
Pryor (D-AR)
Roberts (R-KS)
Rockefeller (D-WV)
Salazar (D-CO)
Sessions (R-AL)
Shelby (R-AL)
Smith (R-OR)
Snowe (R-ME)
Specter (R-PA)
Stabenow (D-MI)
Stevens (R-AK)
Sununu (R-NH)
Thune (R-SD)
Vitter (R-LA)
Voinovich (R-OH)
Warner (R-VA)
Webb (D-VA)
Wicker (R-MS)

Senate Passes FISA Bill with Immunity for Telecoms

From NPR and senate.gov:

Blame these traitors when corporation dares to fuck with people's right again.
YEAs ---68
Alexander (R-TN)
Allard (R-CO)
Barrasso (R-WY)
Baucus (D-MT)
Bayh (D-IN)
Bennett (R-UT)
Bond (R-MO)
Brownback (R-KS)
Bunning (R-KY)
Burr (R-NC)
Carper (D-DE)
Casey (D-PA)
Chambliss (R-GA)
Coburn (R-OK)
Cochran (R-MS)
Coleman (R-MN)
Collins (R-ME)
Conrad (D-ND)
Corker (R-TN)
Cornyn (R-TX)
Craig (R-ID)
Crapo (R-ID)
DeMint (R-SC)
Dole (R-NC)
Domenici (R-NM)
Ensign (R-NV)
Enzi (R-WY)
Grassley (R-IA)
Gregg (R-NH)
Hagel (R-NE)
Hatch (R-UT)
Hutchison (R-TX)
Inhofe (R-OK)
Inouye (D-HI)
Isakson (R-GA)
Johnson (D-SD)
Kohl (D-WI)
Kyl (R-AZ)
Landrieu (D-LA)
Lieberman (ID-CT)
Lincoln (D-AR)
Lugar (R-IN)
Martinez (R-FL)
McCain (R-AZ) <- I can't believe he did this.
McCaskill (D-MO)
McConnell (R-KY)
Mikulski (D-MD)
Murkowski (R-AK)
Nelson (D-FL)
Nelson (D-NE)
Pryor (D-AR)
Roberts (R-KS)
Rockefeller (D-WV)
Salazar (D-CO)
Sessions (R-AL)
Shelby (R-AL)
Smith (R-OR)
Snowe (R-ME)
Specter (R-PA)
Stevens (R-AK)
Sununu (R-NH)
Thune (R-SD)
Vitter (R-LA)
Voinovich (R-OH)
Warner (R-VA)
Webb (D-VA)
Whitehouse (D-RI)
Wicker (R-MS)

Tuesday, February 12, 2008

Super Sensitive RFT

Something is really wrong with RFT, it is easily broken. I spend the whole day figuring out what is wrong with SGADSH-SPQINT04 without knowing what's wrong.

I really need IBM's help now.

Monday, February 11, 2008

Official Reserves

From The Economist:
China is by some distance the world's largest holder of foreign-exchange 
reserves. Its currency hoard passed the $1.5 trillion mark at the end
of last year, little more than a year after it reached $1 trillion.

Thursday, February 7, 2008

AWS

Just signed up as AWS dev, let the hacking commence.

Thank You God... None Of Your Moronic Administrator Is Our Law Maker

From NPR: British Archbishop: Law Must Accommodate Muslims.

We are having shit loads of problem with a law released several years ago (PATRIOT), yet some one feels alright with 600 years old law.

Perl Will Be Y2038 Safe

From use Perl: the code is tested and will be deployed to 5.10.

BOO!

Fished this out from Engadget. Love the subversive value of the picture accompanying the article.

Wednesday, February 6, 2008

Handling Objects

Starts writing code to handle the objects properly:
  1. Browser: invoke(URL). Handles IE's security alerts window.
  2. Editbox: set(data). Set the value of data to input, textarea or password object.
  3. Button: press. Handles IE's security alerts window.
Enough to handle login.

Tuesday, February 5, 2008

Republican National Delegates

According to AP:

NATIONAL DELEGATE TOTALS

Needed to nominate:1191
Total delegate votes:2380



Pledged
Candidate Total*
To Date Feb 5
McCain 504
495 402
Romney 200
184 107
Huckabee 142
139 99
Paul 9
9 5
Uncommitt. 23
1 0

*Includes pledged delegates plus party and elected officials.

Chinese Leapfrog

From The Economist:

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.

Monday, February 4, 2008

MainScript

Writing MainScript, the script that will control it all (KWDT or vanilla flavoured).

Start with consolidating the properties of test into properties file, and branch the execution on KWDT or else (...).

Update the KWDT class to accept the test properties for further report.

Start dabbling in the object handling class - thinking about using class dynamic loading, based on the type of application under test.

Friday, February 1, 2008

Functional Tester Mess

Today, I start tackling the project of cleaning up the mess (RFT scripts). Apparently the spring arrives early this year.

This project has been going on and off for more than a year now. It began when the company bought unlimited RFT license for us to use, but the implementation was limited to little projects since we had legacy scripts (WinRunner) in production.

From the technical stand point, I would like to start porting the legacy scripts to RFT ASAP since: RFT is architecturally superior. Since it is basically Java using RFT classes, RFT offers extensibility by importing 3rd party classes/libraries. It is painful to import libraries in WinRunner, instead of writing dll, I opted to use Perl.

But there were several problems:
  1. RFT 6 wasn't very stable - yet.
  2. I didn't have time.
With the downturn of real estate business, it was prudent for us to terminate the WinRunner support, and we have been pretty lucky with the subsequent WinRunner releases since we are flying solo without ground support so far. To eliminate the possibility of us needing WinRunner support, it is time for to port the WinRunner script to RFT.

Started looking for what I have been missing and apparently what I have written one year ago is looking back at me. omg!