Wednesday, June 24, 2009

Windows7 NIC on VMware

This week i tried installing Windows 7 on a Virtual Machine(VMWare) and all the installation went fine without any issue. But once the installation is complete and I tried to connect to my network and there I found that Windows 7 was not detecting the NIC. After debugging and googling a while, I found that NIC emulation is not proper. So I edited the .vmx file of the machine to have ethernet0.virtualDev = "e1000" at its end and still problem persisted. Then I found a silly mistake that i didn't install VMWareTools :( after installing that, everything started working fine :)

Tuesday, April 14, 2009


ThoughtWorks hosted Devcamp-2 last weekend and here are some interesting sessions.


This session was on web testing tool called SAHI. Ram Narayanan, Author of this tool presented this session.

This will be useful for both Dev and QA

This is an automated web testing tool. You can replace QTP, Selenium with this tool. It handles SSL also very well, the author demoed the capability of this tool on Gmail(which is on SSL and has many ajax calls).

Key features:

  • Record and Playback
  • Has easy integration with ant or cmd line scripts.

Visualization on Code Metrics

This session was on using visualization tools to maintain code. Neal ford, an architect of ThoughtWorks discussed about all the following tools.

Source Monitor

  • lets you see inside your software source code to find out how much code you have and to identify the relative complexity of your modules. For example, you can use SourceMonitor to identify the code that is most likely to contain defects and thus warrants formal review.
  • Measures metrics for source code written in C++, C, C#, VB.NET, Java, Delphi, Visual Basic (VB6) or HTML.


  • A project dedicated to making code metrics so widely understood, valuable, and simple that their use becomes ubiquitous, thus raising the quality of software across the industry.The Panopticode project provides a set of open source tools for gathering, correlating, and displaying code metrics.


Graphviz is open source graph visualization software. It has several main graph layout programs. See the gallery for some sample layouts. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings.


Vizant is an Apache Ant task to create Graphviz DOT source code from an Ant buildfile.

The image created from the DOT source code shows the targets dependency.


Configuration Visualization for Spring


CodeCrawler is a smart, web-based search engine specifically built for use by developers for searching source code. It combines ease of use, superb performance, and intelligent search capabilities in order to increase developer productivity and reduce source code learning time.


X-Ray is open-source software visualization plug-in for the Eclipse framework. Similar to codecrawler.


CodeCity is an integrated environment for software analysis, in which software systems are visualized as interactive, navigable 3D cities. The classes are represented as buildings in the city, while the packages are depicted as the districts in which the buildings reside.


Citylyzer is an open-source 3D software visualization plug- in for the Eclipse framework; it provides a visualization of a given Java Project like a city. Similar to codecity

Productive Programmer Mechanics

This article is really worth reading. It has all small and simple tools but which will improve our productive by multiple times.





Monday, March 2, 2009

How to remote debug .Net assemblies that are deployed in GAC

Usually when you want to remote debug a .Net assembly, you would just run vsmon.exe in target machine and connect to it using VS->Tools->Attach Debugger option, Which would list all the processes running under that machine and you would hook in your debugger into desired process.

But when u want to debug an assembly which is deployed as part of GAC, then its not as simple as external process, bcoz you cant load your .mdb(debug file) into GAC, you might load your mdb files files using "Load Modules" option but most of the time VS throws symbols doesnt match error in this case. To make easy there is another way, go to your target machine, open win explorer and type windir/assembly/GAC_MSIL, now this would list all folders that are deployed in GAC, search for your assembly name, open the folder, you would find your dll file. Now copy your .mdb file and paste here. Now connect your VS debugger to the process which is using this GAC assembly. You would be able to debug your GAC assemblies without any issues.

Tuesday, February 17, 2009

Openhack 2009 - Readact Mail

Last weekend I participated in Openhackday hosted by Yahoo! @ Taj residency and developed an application based on Redaction which won Best Confidential Messages award(an Ipod-touch :)).

The experience of coding continuously for 24 hr, Dance show, Bean bags all over the place, Delicious food, Redbull, Unlimited beer ;) all were good. Apart from fun part, I did learn many new things like YUI, OpenMail, JavaScript debugging, etc..

Also some unforgettable moments like working on YUI with help of Chris Heilmann ;)

What I did?

I developed a small mail application which can be integrated in to yahoo mail using Yahoo's openmail APIs.Instead of encrypting the whole mail, this application allows user to select a particular word that should be encrypted using a user's key and at receiving end other user can view those words only by providing same key.

Example use case
A Manager wants his mail to be formatted by his secretary but doesn’t want her to see all the sensitive data in that mail.

A 3 min demo on what I did is available @

Event wiki & winners list:
Other applications that were demoed :
Some pics from event :