Thursday, 23 August 2012

A reminder on choice

“Man in any complex society,” F. A. Hayek wrote in “Individualism: True and False,” “can have no choice but between adjusting himself to what to him must seem the blind forces of the social process and obeying the orders of a superior. So long as he knows only the hard discipline of the market, he may well think the direction by some other intelligent human brain preferable; but, when he tries it, he soon discovers that the former still leaves him at least some choice, while the latter leaves him none, and that it is better to have a choice between unpleasant alternatives than being coerced into one.”

Wednesday, 22 August 2012

System scanner

System scanner (available from is designed as a replacement to the Task manager.

System Scanner (in the figure below) provides a visual map of a systems Virtual Memory.


The Windows task manager lacks the ability to fetch more specific info about the processes that is supplied using the System Scanner (such as the IDs of all the threads, handles to DLLs, ability to suspend specific threads of a specific process and, finally, an ability to view a process’ virtual memory map – see figure above).

When a program is started, you are shown the main window which shows all the currently running processes in your system, the number of threads per process and the executable path. The status bar will show you the overall number of running processes. The list will be updated (by default) every 5000 milliseconds. Pressing Enter will force the update of the list.

From the main menu it is possible to force an update of the process list and enter Options where you can customize the refresh time, turn hot track on\off (on by default) and customize the colors of the memory regions in the virtual memory map.

Right-clicking on any of the processes brings up a context menu which will uncover all the features of the program. This uncovers information about the process’ threads, DLLs, virtual memory, set process’ priority and offers a kill process function.

Monday, 20 August 2012

Converting File Formats Using the tr Command

Converting File Formats Using the tr Command
- Simple commands or a script can be used to convert a text file either before or after transfer to make its end of line characters compatible with the destination OS.
- In some versions of *nix, unix2dos and dos2unix can be used
- If the above are not available, the *nix tr command can be used
- To convert a Windows text file so that it is suitable for Unix:
$ tr –d ‘\r’ unixfile.txt
- To convert a file from MAC OS X
$ tr ‘\r’ ‘\n’ unixfile.txt
- To convert from Unix to MAC
$ tr ‘\n’ ‘\r’ macfile.txt