Personality Test
Filed Under (Personal) by edy on 25-04-2008
Tagged Under : jungian, myers-briggs, personality test
Recently I took Myers-Briggs test, a famous personality test, and Jungian test, a personality test tailored more for programmer. Interestingly since Jungian is actually based on Myers-Briggs, I got 2 different results that is actually very close and related to each other (of course both tests were taken by me). It turns out that I have ENTJ (Extroverted iNtuitive Thinking Judging) personality on the Myers-Briggs test and ESTJ (Extroverted Sensitive Thinking Judging) personality on the Jungian test
Based on the test, the following is the recommended career path for me for both ENTJ and ESTJ
ENTJ - Business executives, CEOs, organization founders, business administrators, managers, entrepeneurs, judges, lawyers, computer consultants, university professors, politicians, credit investigators, labor relations worker, marketing department manager, mortgage banker, systems analysts, scientists. They are born to lead and can steer the organization towards their vision, using their excellent organizing and understanding of what needs to get done.
ESTJ - Military, business administrators, managers, police/detective work, judges, financial officers, teachers, sales representatives, government workers, insurance agents, underwriters, nursing administrators, trade and technical teachers, mafia dons. Natural leaders, they work best when they are in charge and enforcing the rules.
Woahh.. both ENTJ and ESTJ are cool. If I really have ENTJ personality, I will be a CEO or else if I really have ESTJ personality, I will be a MAFIA DONS. Hahahahaha I can’t stop laughing. What is yours?
Dell Inspiron 530 and eVGA 8800GT
Filed Under (Tips and Tricks) by edy on 24-04-2008
Tagged Under : 8800gt, dell, nvidia, Tutorial
Finally my dell inspiron 530 quadcore has arrived. Fortunately for me the minimum PSI required for quadcore is 350 w, which makes it compatible with eVGA 8800GT PCIe card without replacing the standard PSI. However the standard PSI is using only sata 15-pin power and 8800GT is using two 4-pin molex to power its GPU. In addition to that, if you order your spec like me, 1 DVD rom + 1 Harddisk, you will only have 2 sata power left that you can use.
The following is the extra cables/extentions I bought to make it work:
A1. SATA 15-pin M molex to 4-pin F power adapter
http://microcenter.com/single_product_results.phtml?product_id=0281713
A2. 4-pin Molex Y Power Cable
http://microcenter.com/single_product_results.phtml?product_id=0260708
After you got everything setup, do the following to install your 8800GT to Inspiron 530
1. Turn off your computer and unplugged it from the wall
2. Disconnect all connections from your desktop, then open the case.
3. Plug the 8800GT to the only PCIe slot (#25 on the diagram below)
http://support.dell.com/support/edocs/systems/inspd530/EN/OM/parts.htm#wp1184332
4. Connect the 15-pin molex to 4 pin converter (A1) to the one of the SATA power either from harddrive or dvd rom
5. Connect A1 to A2 and then connect A2 to the Y cable from your 8800GT
6. Close the case, connect the monitor cable to the new card, plug it back in, and boot up. The system should see the new hardware.
7. Install all of the driver that came from the CD, or download the latest version fron nvidia website
http://www.nvidia.com/object/winvista_x86_169.25_whql.html

DHL Guy: Oh shoot the package arrived at Wilmington, OH one day early. This package should be delivered tomorrow 4/22. Let me ship this back to Lousville, KY so that when the other guys at Kentucky realized that it was wrong shipment, they will surely ship this back to Ohio. That way I can ensure the delivery to the cusomer is ontime tomorrow
Finding distances between 2 coordinates
Filed Under (Programming) by edy on 02-04-2008
Tagged Under : coordinate, geomapping, latitude, longitude
Have you ever wondered how to calculate distance between 2 coordinates in map? It turns out that the calculation is not that simple. There is a formula called Haversine and this formula will give you the exact precision to the meter unit. So what is the formula?
Haversine Formula:
R = earth’s radius (mean radius = 6,371km)
?lat = lat2? lat1
?long = long2? long1
a = sin²(?lat/2) + cos(lat1).cos(lat2).sin²(?long/2)
c = 2.atan2(?a, ?(1?a))
d = R.c
(Note that angles need to be in radians to pass to trig functions).
Looks very complicated isn’t it? If you don’t need the exact distance up to meter unit precision, there is a lot simpler formula that you can use. It’s called Spherical Law of Cosines.
Spherical Law of Cosines:
d = acos(sin(lat1).sin(lat2)+cos(lat1).cos(lat2).cos(long2?long1)).R
Or even better, in MySQL it can be translated to:
SELECT id, place_name,
ROUND( SQRT( POW((69.1 * (#Val(arguments.latitude)# - latitude)), 2) + POW((53 * (#Val(arguments.longitude)# - longitude)), 2)), 1) AS distance
FROM places
ORDER BY distance ASC
I hope this is useful for those who are interested in geomapping.

