Sunday, February 17, 2008

Compare two word documents using MS Word

Compare two word documents using MS Word
1. Open a document.
2. On the Tools menu, click Compare and Merge Documents.
3. Select the document that you want to compare to the copy that is currently open.
4. Click the arrow next to Merge, and then do one of the following:
* To display the results of the comparison in the selected document, click Merge.
* To display the results in the document that is currently open, click Merge into current document. * To display the results in a new document, click Merge into new document.

The differences will be displayed as comments in the new document.





For example here the Last updated date has been changed from 13-04-07 to
11-05-07.

Speed up the start of Acrobat Reader

Opening PDF files are taking time, then

Method 1:
Every time you run Adobe Acrobat, up to 20 plugins are loaded
unnecessarily - most users do not need even a fraction of them!
To disable unneeded plugins and make them optional instead, follow these
instructions:
1. Browse to the plugins folder: C:\Program Files\Adobe\Acrobat
7.0\Reader\plug_ins
2. Create a new folder named Optional
3. Move all files from the plug_ins folder to Optional, except
EWH32.api, print*.api, and Search*.api

Method 2:
Download the software Adobe Reader SpeedUp software from
http://www.tnk-bootblock.co.uk/software/, which does the same thing
specified in Method 1, but in a nice GUI friendly option.

Method 3:
Install a light weight PDF reader (other than Acrobat). The best free
PDF reader is Foxit Reader. No need to install, just copy the executable
and run from your system. This is very light and extremely fast.

Foxit reader is available at
http://us01.foxitsoftware.com/foxitreader/foxitreader.zip (just 1.8 MB
size).


Threading libraries in C++

Here is the list of Threading libraries in C++

Pthread (POSIX threads)
http://en.wikipedia.org/wiki/POSIX_Threads
pthread won't work fine on windows, because windows won't support POSIX standards - but there are some implementations of pthreads api on windows also!
Note: pthread is a c library not a c++ library, hence you can use it in c applications also.

Boost::thread - supports many compilers and architectures include Linux
and Windows.

Check these links: http://www.ddj.com/cpp/184401518,
http://www.boost.org/doc/html/thread.html

The problem with Boost libraries is that it requires good knowledge on STL, and learning is not very easy.

Glib::thread - Glib supports multi-threading, it can run on Windows and Linux but I don't think it supports VC++ compiler.

Check these:
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Th
read.html, http://inti.sourceforge.net/tutorial/libinti/threads.html

Qt: Qt library (not the Quick Time player from Apple) also have threading support (both 3.x and 4.x versions). Qt 4.x is released under GPL for Windows also.

http://doc.trolltech.com/3.3/threads.html

Note: Nokia recently acquired TrollTech (the company behind Qt)

Intel threading library:
One more library from Intel (open source library, GPL2 with the runtime
exception). But only works on x86 or x86_64 (Intel or AMD; 32 or 64 bit)
architectures.
http://www.intel.com/software/products/tbb/
http://threadingbuildingblocks.org

wxWidgets also have a threading library.

And it is easy to write own threading library too!

Win32 is also having a thread api - but who is using win32 or MFC these days?

However I bet on either PThreads or Boost::Threads.

Anyhow in next version <http://en.wikipedia.org/wiki/C%2B%2B0x> of C++, standard library will support threading - API very similar to boost::thread library!

Copyright (c) 2008 - Suresh