Thursday, 23 August 2012
Posted by Craig Wright at Thursday, August 23, 2012
Wednesday, 22 August 2012
System scanner (available from http://www.codeproject.com/w2k/system_scaner.asp) 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.
Posted by Craig Wright at Wednesday, August 22, 2012
Monday, 20 August 2012
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’
- To convert a file from MAC OS X
$ tr ‘\r’ ‘\n’
- To convert from Unix to MAC
$ tr ‘\n’ ‘\r’
Posted by Craig Wright at Monday, August 20, 2012