Tuesday, January 10, 2012

Copy paste tracked changes from one document to another in MS Word

If you need to copy paste some text in document together with tracked changes to a new document, just follow this simple steps:
1. Turn off track changes in both documents
2. Copy text from the source document and paste to the destination document. You should be able to see all the tracked changes/comments etc in the new document now.
3. Turn on the tracking again, if you want to go to the old state.

_________
Ref:
How does Track Changes in Microsoft Word work? | ShaunaKelly.com
http://www.shaunakelly.com/word/sharing/howtrackchangesworks.html
An excellent article of tracking changes in documents

Wednesday, December 28, 2011

Android: INSTALL_FAILED_INSUFFICIENT_STORAGE error in ADB shell

I came across  INSTALL_FAILED_INSUFFICIENT_STORAGE error when I tried to batch install about 50 apps in sd card directory using adb shell after a full ROM update.
 
$ su
# cd /sdcard/batchInstall
# for x in *.apk; do pm install -r $x; done
 
Some of them installed, but many failed with the error INSTALL_FAILED_INSUFFICIENT_STORAGE. But I had plenty of space in both internal and sdcard. I noticed that all the failed apps had space in their name. I batch renamed them to remove space with '_' and tried again. It all worked this time. Hope this info will help someone with the same problem.

Tuesday, December 27, 2011

F8 key fail: Recover PC to factory state without a backup recovery disc

So I did something stupid. I installed Windows 8 Developer preview on Dell Inspiron Duo tablet PC. I mean, it was not the stupid thing (Windows 8 looks awesome on Duo), but installing it as 'Upgrade' replacing system Win7 OS and without backing up was the stupid thing. I could have done back up with Dell Datasafe Local backup, but I was lazy or daring or stupid or whatever; I didn't do that. Eventually something went wrong; Windows 8 took over the boot process and now I do not have a recovery disc and F8 key one rebooting doesn't work. The Windows recovery environment got really messed up since Windows 8 wrote files on my laptop's recovery partition.


Well, finally I got the system back to the Factory state and F8 is now working. Even better, I've Windows 8 Developer preview on a separate partition and separate recovery environment happily dual booting. I can now precisely control which OS to load and which recovery environment to boot. Some of the tool I found useful are Windows 7 bootable USB, RMPrepUSB, imagex, Minitools partition wizard, Windows Disk Management utility, Hirens Boot CD, 7-zip, Unstoppable copier and Visual BCD.

If you are also in such a situation, what you want to do is  to use imagex in recovery environment, take the Factory.wim in the recovery partition ([Recovery]:\dell\Image\Factory.wim ) and apply it to the C drive. You just need that one file in recovery partition to completely get back to your factory state.


If you need, you can open Factory.wim using 7-zip. You will need to show hidden files and system files to see those files in Windows. If you mount the drive in Windows 7/8, it is not possible to access most of the folders in Recovery partition. (Shows Dell logo and warning )

Learning about these things below helped me on the process
  1. Hard disk partition structure: MBR, partition table, boot sector
  2. Windows boot process and tools: boot manager, BCD, bcdedit.exe, bootrec.exe
  3. Windows Recovery Environment and images: WIM files, ImageX, ReAgen.xml, ReAgetC.exe

It's a too long story to write now, but I would post it sometime for documentation purpose for my future use. I'm planing to make latest OS image and backup to separate partitions and access it by say F5 or something on boot if needed.  I mean, I'll still have access to Factory image by F8, but you know, it'll take a few days to install all the updates over updates and your software etc after factory reset to get the system up and running, (if the system was bought several months back). Well, Dell Datasafe will do that if you upgrade the software. But then, where's the fun of learning?