GnuWin32 – Saving you form proprietary

As we all know all the windows user are cursed by proprietary policy. Its very difficult to find common useful tools which are available on Linux.

I [Shishir Sharma] recently needed indenting tool on Windows XP. Then obvious choice is GNU INDENT. I have used it on fedora. Thanks to GnuWin32 which provides ports of tools with a GNU or similar open source license, to MS-Windows.

GnuWin32 provides ports of tools with a GNU or similar open source license, to MS-Windows (Microsoft Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista / 2008). This is what they say about themselves.

The GnuWin32 project provides Win32-versions of GNU tools, or tools with a similar open source licence. The ports are native ports, that is they rely only on libraries provided with any standard 32-bits MS-Windows operating system, such as MS-Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista. Native ports do not rely on some kind of Unix emulation, such as CygWin or Msys, so that there is no need to install additional emulation libraries.

At present, all developments have been done under MS-Windows-XP, using the Mingw port of the GNU C and C++ (GCC) compilers. Utilities and libraries provided by GnuWin32, are used and distributed with packages such as GNU Emacs and KDE-Windows.
Continue reading “GnuWin32 – Saving you form proprietary”

Safe C++ Design Principles

This book is no longer available. You should Google or hit this book on Wikibooks here

If you want to learn software design and you are choosing the C++ language then Safe C++ Design Principles by Thomas J. Hruska, III is probably the best choice. It’s a high quality software design book.

I am member of c-prog yahoo group where Thomas is owner. I have been reading on each and every post, here and there, on his blog. I got chance to read it when he made book free for the group users. The book didn’t surprised me at all; You always expect some high quality work from him. Thanks Thomas for the book.

The book can be downloaded from here. [Not available]
He can be read on his blog from here.
You can buy his masterpiece software products form here.

Desktop Calculator

I always appreciate coding in standard C++. Desktop Calculator is a application coded in Standard C++. It is a application based on the example 6.1 in the book “The C++ Programming Language”, Third Edition by Bjarne Stroustrup. Desktop Calculator is a GPL software.

Customizing Command Prompt

Working with command prompt on windows is messy. Working with multiple version of a language/compiler on windows is a trip to hell.

Possible workarounds are:

  • Set all the paths and add tags in names of binaries
    (stupid. You would have to remember all names or you will have to use some naming convention; still you will keep guessing).
  • Create users and set different versions in each user’s paths
    (Foolish. Then changing version will be like logging as different user).
  • Use a Customized Command Prompt
    (Elegant. Developers friendly)

How to Customize Command Prompt.

Create a file Called YOURSYSTEM-VER-cofig.bat. Where YOURSYSTEM is the name of the system you are using and VER is the version of that specific system like python-2.6-config.bat.
Now put some codes in the file. Like:

Then create a new shortcut Right click on empty space or File -> New -> Shortcut.

Create new shortcut
Create new shortcut

Then type %COMPSPEC% /K "C:pathtoyourfile" in it

Creating shortcut

Then Rename the shortcut to a proper name.

Rename shorcut to a Proper name
Rename shorcut to a Proper name

Then click on Finish. Now Right click on the shortcut.

Command prompt shortcut
Command prompt shortcut

Select shortcut properties.

Shortcut properties
Shortcut properties

We can set the Fonts of the Command prompt.

Shortcut properties.
Shortcut properties.

We can set the color of the command prompt. like BACKGROUND, FOREGROUND.

Shortcut properties
Shortcut properties

We can even set the buffer and the screen layout of the shell window.

Shorcut properties
Shortcut properties


Costomized command prompt
Customized command prompt

Now you are ready to enjoy this very good feature.

I recommend you to keep all these files in one folder say with name config-all and with attribute as hidden.