Monday, 24 November 2014

LaTex vs WYSIWYG(Word & OpenOffice)

LaTex allows you to separate content from the format of your document. This feature gives you opportunity to focus on “What”, the creative part of your work, rather than how it is going to look printed out on paper. This is particularly helpful while writing documents which contain heavy mathematics.

Following are some of differences between LaTex and WYSIWYG editors

Latex is better at:
  1. Dealing with mathematical notations: Typing mathematical notations in equation editors looks bit easy because of its GUI interface, but layout is easy in LaTex. When there is large number of equations in document LaTex is easier than equation editor. That’s why is recommended for scientific documents.

  2. Consistent handling of intra-document references and bibliography, re-numbering, cross-reference and bibliography can be handled very easily in LaTex.

  3. Separation of content and style: This is one of the important feature of LaTex. It allows you to write your document without caring how it is formatted. That means writer can focus clearly on its writing. 

  4. Tables and illustrations. LaTex is better preparing at complex tables.

  5. Modularise document: LaTex allows you to create separate .tex file of each chapter, even for bibliography, after development you can combine the all document to form one document.


WYSIWYG is better at:

  1. Collaborative editing: Word has very good comments/annotations and edit-tracking features. When large number of authors is commenting on the writing of one file, this feature is very useful. 

  2. Spell check: This feature is better in WYSIWYG editors, although most of LaTex editors also provide spell check features.

  3. Minimum barrier to enter: If you just care about ideas written down on paper, WYSIWYG is best for you, but it makes tedious to fix formatting later on.

Sunday, 13 April 2014

Get a List of Software Installed on Your PC with a Single Line of PowerShell


Suppose someone asks you for a list of applications you have installed on your computer. To get this information, what’s the first thing you would think to use? Third-party program? Not us, we have PowerShell.

How to Get a List of Installed Software on Your PC

Getting a list of installed software is as simple as using this straightforward WMI query.



Get-WmiObject -Class Win32_Product | Select-Object -Property Name




You will probably want to export that to a file though, which is also easy enough — we’ll send the output using the > symbol and adding the path to a new text file that we want to create. Make sure that path(C:\List\) is exist in your  C drive or you can select any path you want.



Get-WmiObject -Class Win32_product | Select-Object -Property Name > C:\List\List_of_Applications.txt


What makes using Power Shell really neat is that if you do this on two different machines, you can easily compare the software installed on them.





C:\Users\Ravi> Compare-Object -ReferenceObject (Get-Content C:\a\Ravi_PC.txt) -DifferenceObject (Get-Content C:\a\Promod_PC.txt)







Any entries with a side indicator pointing to the right (=>) mean that the software is installed on my laptop but  not on my Lab PC, and any entries with a side indicator pointing to the left (<=) mean that the software is installed on my Lab PC but not on my laptop.