Friday, August 7, 2009

iPhone Cool Codes

iPhone Codes: Network & Phone Information

*3001#12345#*- Opens up the “Field Test” settings on your iPhone, which allows you to see many, many advanced network settings on your phone including cell site information and more.
*#06# – Displays your iPhone’s International Mobile Equipment Identity (IMEI) number (this code also works on many other phones).
Click the image to open in full size.

*#21# – Displays any call forwarding settings enabled on your iPhone.
*#43# – Shows you if call waiting for various parts of your phone are either enabled or disabled.
*#30# – Shows you if you have the call presentation (to see who is calling you) setting enabled or disabled.
*#33# – Displays call barring settings for your iPhone, and weather they are enabled or disabled.
Click the image to open in full size.

iPhone Codes: Carrier & Billing Information

*646# -View available minutes on your AT&T plan (*min#).
*777#- View available minutes on your AT&T pre-paid plan (if you get the “Account Not Found” error, you do not have a pre-paid account and you should try the code just above this one for postpaid accounts).
*3282# - View wireless data usage statistics (also *data#).
*225# – Check the bill balance on your AT&T account (also *bll#).
*729 – Makes a call to AT&T to pay your wireless bill.

Sunday, August 2, 2009

IF your PGP WDE 9.x boot disk does /NOT/ boot.

This is the step-by-step guide to recover your PGP WDE encrypted boot disk, in case it refused to boot. The article from PGP Support Forum.

Bottom line - I have my disk back. I post the steps I took below for others to read. Please comment / change anything which I may have not explained correctly. I wanted to be a little more verbose in case others had a similar issue so I have had to post this in two separate postings. Many thanks to you and the folks at PGP for your assistance.

1) After your previous post I put the laptop in Target Disk mode and connected it via firewire to the other Laptop with PGP installed.

2) Upon opening a Terminal session it was clear that the disk was not repaired as the hexdump -C -n 128 /dev/rdisk1 and hexdump -C -n 128 /dev/disk1 commands did NOT show PGPGUARD as shown here:


Musashi:~ go$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *111.8 Gi disk0

1: EFI 200.0 Mi disk0s1

2: Apple_HFS Taiko 111.5 Gi disk0s2

3: Apple_Boot Boot OSX 128.0 Mi disk0s3

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *298.1 Gi disk1

1: EFI 200.0 Mi disk1s1

2: Apple_HFS some-unreadable-characters-here

297.8 Gi disk1s2

3: Apple_Boot Boot OSX 128.0 Mi disk1s3

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: CD_partition_scheme *234.7 Mi disk2

1: CD_ROM_Mode_1 SLAX 204.4 Mi disk2s0

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *222.9 Gi disk3

1: Apple_partition_map 31.5 Ki disk3s1

2: Apple_HFS go 222.9 Gi disk3s2

Musashi:~ go$ hexdump -C -n 128 /dev/rdisk1

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

3) I then ran the following commands you provided in a previous post:

Musashi:~ go$ pgpwde --disk 1 --recover --passphrase

Searching disk for PGP WDE signature

112304128 sectors searched, 512838320 sectors to go

Found Primary BGFS record on sector 112304544

Recovery successful!

No bootable volumes found. Checks complete.

Musashi:~ go$ sync

Musashi:~ go$ hexdump -C -n 128 /dev/rdisk1

00000000 eb 48 90 50 47 50 47 55 41 52 44 00 00 00 00 00 |?H.PGPGUARD.....|

00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

*

00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 02 |................|

00000040 ff 00 a0 a1 b1 06 00 00 00 00 fa ea 50 7c 00 00 |?.???.....??P|..|

00000050 31 c0 8e d8 8e d0 bc 00 20 fb a0 40 7c 3c ff 74 |1?.?.м. ??@|

00000060 02 88 c2 52 be 6c 7d e8 2f 01 f6 c2 80 74 48 b4 |..?R?l}?/.??.tH?|

00000070 41 bb aa 55 cd 13 5a 52 72 3d 81 fb 55 aa 75 37 |A??U?.ZRr=.?U?u7|

00000080

Musashi:~ go$ hexdump -C -n 128 /dev/disk1

00000000 eb 48 90 50 47 50 47 55 41 52 44 00 00 00 00 00 |?H.PGPGUARD.....|

00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

*

00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 02 |................|

00000040 ff 00 a0 a1 b1 06 00 00 00 00 fa ea 50 7c 00 00 |?.???.....??P|..|

00000050 31 c0 8e d8 8e d0 bc 00 20 fb a0 40 7c 3c ff 74 |1?.?.м. ??@|

00000060 02 88 c2 52 be 6c 7d e8 2f 01 f6 c2 80 74 48 b4 |..?R?l}?/.??.tH?|

00000070 41 bb aa 55 cd 13 5a 52 72 3d 81 fb 55 aa 75 37 |A??U?.ZRr=.?U?u7|

00000080

Musashi:~ go$ pgpwde --disk 1 --auth-disk --passphrase


4) If the --auth-disk command worked, the suggestion was to then use unmountdisk disk1 and then try and mount the disk using mountdisk disk1


5) The trouble was that, for whatever reason, each time the "unmountdisk" command was used - it worked - BUT it also erased / removed the PGPGUARD information located by the --recover command and synced using "sync".


6) Instead, after the successful --auth-disk command above, I started DISK WARRIOR (which was installed on the laptop where I was running the pgpwde commands) and it found the disk (previously it had been able to find the disk but could NOT optimize and rebuild the directory as it was unable to access a non-authenticated disk).


7) After running DISK WARRIOR it created a replacement directory which could NOT be compared to the original as the original was too severely damaged. I previewed the new directory and decided to use it to replace the damaged one.


8) After installing the new directory - voila - disk1 and all its volumes would mount and unmount (I had fun playing with this several times). As you can see below - disk1s2 no longer had a garbled name but showed "Macintosh HD" instead (which was the disk name).


Musashi:~ go$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *111.8 Gi disk0

1: EFI 200.0 Mi disk0s1

2: Apple_HFS Taiko 111.5 Gi disk0s2

3: Apple_Boot Boot OSX 128.0 Mi disk0s3

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *298.1 Gi disk1

1: EFI 200.0 Mi disk1s1

2: Apple_HFS Macintosh HD 297.8 Gi disk1s2

3: Apple_Boot Boot OSX 128.0 Mi disk1s3

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: CD_partition_scheme *234.7 Mi disk2

1: CD_ROM_ 204.4 Mi disk2s0

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *222.9 Gi disk3

1: Apple_partition_map 31.5 Ki disk3s1

2: Apple_HFS go 222.9 Gi disk3s2

Musashi:~ go$ diskutil mountdisk disk1

Volume(s) mounted successfully

Musashi:~ go$ diskutil unmountdisk disk1

Unmount of all volumes on disk1 was successful

Musashi:~ go$ diskutil mountdisk disk1

Volume(s) mounted successfully

Musashi:~ go$ diskutil unmountdisk disk1

Unmount of all volumes on disk1 was successful


9) I then shut everything down, and tried to boot the laptop - no go - still got the spinning wheel then the "no go" icon.


10) I reconnected everything, put the laptop in Target mode again - and it popped up on the desktop and requested my PGP Passphrase. (A good sign). I entered the passphrase and disk1 mounted on the desktop (wow- two good signs).


11) After that I entered another Terminal session and - after checking to ensure the disk status showed disk1 as being instrumented by Bootguard, I started the --decrypt command. It took about 16 hours to decrypt.


12) I unmounted the disk, unplugged the firewire cable and tried to boot the laptop. Success! I chose to use Disk Warrior again to clean up the multitude of permission errors. I still have problems updating some minor programs but the data is all there.

I wrote all this out so others would know what I did. I can't thank you enough for all your efforts as it was your research that lead to the recovery of the disk. Many thanks for the great support from PGP!


AimPoint


=====END======


Saturday, August 1, 2009

How to defeat HARD LEVEL of Dungeon Defense Crypt Edition for iPhone (WITHOUT CHEATING)

Dungeon Defense Crypt Edition for iPhone

Step-by-Step guide how to defeat HARD LEVEL.


This are the positions and their order to deploy our skull force over the time. It was divided into 3 Tiers--(1)-(4) is Tier 1, (5)-(10) is Tier 2 and (11)-(14) is Tier 3.


The name of our skull army (1) Sword skull (2) Bow Skull (3) Axe Skull, each of which has 3 levels that can be upgraded when having enough gold.


[Level 1 - 10]
Step 1 : Deploy "Sword skull level 1" into (1) and (3), then upgrade them to "Sword skull level 3" ASAP.
Step 2 : Deploy "Bow skull level 1" into (2) and (4), then upgrade them to "Bow skull level 3" ASAP.
Step 3 : Withdraw (3) and Deploy "Axe skull level 1", once you have earned gold >=450, and keep upgrading (3) to "Axe skull Level 3" ASAP
Step 4 : Withdraw (1) and Deploy "Axe skull level 1", once you have earned gold >=450, and keep upgrading (1) to "Axe skull Level 3" ASAP
Step 5 : With this tactics you will win level 1 to 10 easily. NO NEED TO BUILD TIER 2 (5)-(10) TROOPS YET.


/*/*/* AFTER Level 5, keep collecting gold, you gonna earn about 30,000, wait until level 9 and 10, revive any troops (economically) that died to contain the enemy in Tier 1 only /*/*/*

***** The critical levels are 5, 9, 10, 17-20 *****

[Level 11 - 17]
Step 6 : Deploy "Bow skull Level 1" to (9) and (10)
Step 7 : Keep upgrading (9) and (10) to level 3 ASAP
Step 8 : Deploy "Axe skull level 1" to (7) and (8) and upgrade it to Level 2

See note below

Step 9 : Upgrade (7) to Level 3
Step 10 : Upgrade (8) to Level 3

***** No need to revive the troops at Tier 1, with this deployment (Step 1-7) it should be easy to pass Level 16-17
***** Note Level 12 : At almost end of Level 12, MAY (some times) need to revive "Bow" at (4), the other especially "Axe" will revive itself in timely manner
***** Note Level 13 : No need to revive any (1)-(4) will revive themselves and defeat the enemies
***** Note Level 14 : N/A
***** Note Level 15 : At almost end of Level 15, may need to revive (2) and (3)
***** Note Level 16 : After upgrade (7) to Level 3, you may let the enemies penetrate to Tier 2, it should be fine by now.
***** Note Level 17 : Upgrade (8) to Level 3


[Level 18 - 20]
Step 11 : You will need to withdraw Tier 1, then Tier 2, to build Tier 3 only. You will need to PAUSE the game, withdraw troops, then deploy new troops where the enemies penetrate your territory. This tactic will work. My last game, I only have Tier 3 troops left, the rest I sold them all.


=================================================EOF=======

Friday, July 31, 2009

Google Chrome 3.0.196.0 is still faster than Safari 4.0.2

On July 9, 2009, I've blogged about SunSpider benchmarking javascript performance of 2 browsers--Google Chrome 3.0.192.0 and Safari 4.0.2 (5530.19), the result Chrome was the winner in most areas, click here for more details. This time, Chrome has minor upgrade version 3.0.196.0, the result still pretty much the same.

TEST                   COMPARISON            FROM                 TO             DETAILS

=============================================================================

** TOTAL **: 1.13x as fast 963.0ms +/- 1.5% 852.0ms +/- 4.3% significant

=============================================================================

3d: 1.50x as fast 189.0ms +/- 4.0% 126.4ms +/- 8.5% significant
cube: 1.56x as fast 71.4ms +/- 4.5% 45.8ms +/- 4.0% significant
morph: 1.69x as fast 73.6ms +/- 7.8% 43.6ms +/- 19.8% significant
raytrace: 1.19x as fast 44.0ms +/- 0.0% 37.0ms +/- 8.6% significant

access: 1.47x as fast 112.0ms +/- 6.6% 76.0ms +/- 5.5% significant
binary-trees: 1.56x as fast 10.0ms +/- 12.4% 6.4ms +/- 22.1% significant
fannkuch: 1.24x as fast 32.8ms +/- 18.3% 26.4ms +/- 4.2% significant
nbody: 1.58x as fast 52.4ms +/- 7.0% 33.2ms +/- 11.0% significant
nsieve: 1.68x as fast 16.8ms +/- 9.6% 10.0ms +/- 0.0% significant

bitops: *1.15x as slow* 59.8ms +/- 8.4% 69.0ms +/- 3.6% significant
3bit-bits-in-byte: - 6.4ms +/- 10.6% 5.8ms +/- 17.9%
bits-in-byte: - 13.2ms +/- 7.9% 13.0ms +/- 22.4%
bitwise-and: *2.44x as slow* 8.2ms +/- 6.8% 20.0ms +/- 4.4% significant
nsieve-bits: - 32.0ms +/- 12.9% 30.2ms +/- 5.4%

controlflow: 1.38x as fast 7.2ms +/- 7.7% 5.2ms +/- 26.2% significant
recursive: 1.38x as fast 7.2ms +/- 7.7% 5.2ms +/- 26.2% significant

crypto: 1.32x as fast 70.0ms +/- 3.1% 53.0ms +/- 2.9% significant
aes: - 21.6ms +/- 10.5% 19.8ms +/- 19.0%
md5: 1.49x as fast 23.6ms +/- 2.9% 15.8ms +/- 6.6% significant
sha1: 1.43x as fast 24.8ms +/- 5.5% 17.4ms +/- 16.4% significant

date: ?? 93.6ms +/- 7.0% 98.0ms +/- 4.3% not conclusive: might be *1.05x as slow*
format-tofte: *1.16x as slow* 43.6ms +/- 13.6% 50.6ms +/- 2.2% significant
format-xparb: 1.05x as fast 50.0ms +/- 2.5% 47.4ms +/- 6.8% significant

math: 1.58x as fast 128.6ms +/- 4.8% 81.2ms +/- 8.2% significant
cordic: 1.57x as fast 50.0ms +/- 11.3% 31.8ms +/- 8.5% significant
partial-sums: 1.61x as fast 52.8ms +/- 4.5% 32.8ms +/- 9.8% significant
spectral-norm: 1.55x as fast 25.8ms +/- 12.5% 16.6ms +/- 15.5% significant

regexp: 1.32x as fast 35.4ms +/- 7.3% 26.8ms +/- 3.9% significant
dna: 1.32x as fast 35.4ms +/- 7.3% 26.8ms +/- 3.9% significant

string: *1.18x as slow* 267.4ms +/- 3.2% 316.4ms +/- 4.2% significant
base64: *1.34x as slow* 31.6ms +/- 10.3% 42.2ms +/- 2.5% significant
fasta: - 51.2ms +/- 4.3% 50.8ms +/- 9.4%
tagcloud: *1.30x as slow* 54.4ms +/- 5.5% 70.6ms +/- 4.8% significant
unpack-code: *1.23x as slow* 76.8ms +/- 3.5% 94.2ms +/- 8.7% significant
validate-input: *1.10x as slow* 53.4ms +/- 3.5% 58.6ms +/- 10.0% significant