Interview Questions Headline Animator

Wednesday, September 27, 2006

VSS Create Database Problem...

This is going to be a little boring for the Non Microsoft source control product users (CVS et al)
 
Operating System: Windows XP Professional

Microsoft Product: Visual Studio 6.0c

Objective: Create a new Source code repository database, add users, change password.

Process: Open Visual Source Safe Admin, it will ask you for an already existing database. It creates a dummy database during installation. Choose that which should usually be in the "C:\Program Files\Microsoft Visual Studio\Common\VSS" directory. Or choose any other existing database and  Log in using proper credentials open VSS Admin.
 
Now Click on tools and create database. It should ask you for a location. Choose desired location by clicking on browse and geeks may type in the memorized location. keep the (New 6.0 database) option checked if you have VSS 6.0 installed on your machine. Click Ok.
 
Problem: It should look like it created some database. But nothing really happens. The dialog box just closes. I thought after creation it would open up the database. So what I did was Clicked on Users menu and clicked on Open Source Safe Database and pointed to the newly created database and clicked open. Gives me an error saying "Invalid DOS Path: C:\Temp\users\admin\ss.ini". Temp is the directory I was creating the database in.
 
So I opened Explorer and browsed to the mentioned location. What I saw was that the entry for the default users guest and admin were there in the users.txt. but the folders that should have been created for guest and admin were not created. So I copied the folders from an existing VSS database and tried to open the VSS. surely it opened. but when I tried to add a user, same error message.
 
I googled for it and searched for a solution pretty long and then found out that if you create a file template.ini and add the following text into it, and store it into the users directory, it would work. I tried it and it did work... I thought I should blog this. So next time I or someone else falls into the same pit, It could be found on my blog itself.
 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Text in the template.ini stored into the users directory
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 ; ss.ini
   ;
   ; This file contains all the variables that "customize" Visual
   ; SourceSafe to your particular needs. The ss.ini variables are
   ; documented in the Visual SourceSafe User's Manual. Only a few of them
   ; are placed in this file by default.
   ; Visual C++ programmers should remove the semicolon from the following
   ; line, to uncomment it.  Other programmers REPLACE the line with
   ; different masks.
   ; Relevant_Masks = *.c, *.h, *., *.asm
   ; The following line prevents you from being asked for a checkout
   ; comment.
   Checkout_Comment = -
   ; The following lines force Visual SourceSafe not to execute certain
   ; file types.
   .reg (Win) = notepad.exe
   .vbp (Win) = notepad.exe
   .vcp (Win) = notepad.exe
   .mak (Win) = notepad.exe
   .bat (Win) = notepad.exe
   ; Your current Visual SourceSafe project.
   Project = $/
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Wednesday, September 20, 2006

For gadget junkies...!!!

Microsoft, days after Apple unveiled its new line of iPods, revealed new details about its Zune digital media player, which will debut in time for the holidays.

The portable device will store 30 GB of songs, photos and video, which they'll be able to buy from the Zune Marketplace (separate from URGE, the online music service developed in partnership with MTV that was launched earlier this year with Windows Media Player 11).

The Zune will come in three colors: black, white and brown. Yup, brown. Not pink.

The Zune will also have wireless technology to let users swap music, an FM tuner and a 3-inch screen. Microsoft will offer accessories such as a car pack and travel pack and is working with folks like Digital Lifestyle Outfitters and Palo Alto's Speck Products, known for their iPod accessories. And the Zune will come pre-loaded with stuff from Virgin Records and other labels.

for Details check http://www.sfgate.com/cgi-bin/blogs/sfgate/detail?blogid=19&entry_id=8891

 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Monday, September 18, 2006

FW: Dr. Dobb's Agile Newsletter September 2006

Hello all intelligent guys,

 

I get this newsletter on Agile… This edition was pretty interesting… thought of sharing it with all the intelligent people I know… ok not all the intelligent people I know... but all the intelligent people I can share it with...

 

It also has a little section on funding... which is always a big question with agile processes... check it out...

 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 


From: Dr. Dobb's Agile Newsletter [mailto:ddj@newsletters.sdmediagroup.com]
Sent: Tue 9/19/2006 2:24 AM
To: Nilotpal M. Das
Subject: Dr. Dobb's Agile Newsletter September 2006


Dr. Dobb's Portal   Agile Newsletter

Scott W. Ambler

In This Issue:

  • The Implications of Agile Requirements Management
  • Book Review: Agile Java Development
  • Hot Links

The Implications of Agile Requirements Management

Agile software development teams embrace change. An agile team will work down "a stack" of prioritized and estimated requirements which need to be implemented--Extreme Programmers will literally have a stack of user stories written on index cards, whereas Rational Unified Process (RUP) teams are a bit more sophisticated and will write use cases with a word processor. Regardless, the development team takes the highest priority requirements from the top of the stack which they believe they can implement within the current iteration. Iterations are typically one to four weeks in length. At the end of each iteration, including the early ones, you should produce working software which you can demo to people and better yet deploy into your pre-production testing environment.

The decision to take an agile approach to requirements management ripples through your software process. Gone are the days of detailed schedules early in the project which you would onerously keep up to date throughout the project. Gone are the days of detailed estimating early in the lifecycle, only to go hat in hand throughout the project begging for additional funding. Gone are the days of creating a detailed design up front, getting it reviewed and accepted, only to discover that the technology changed while you were doing all this and/or the developers ignored the design anyway. Gone are the days of reporting "earned value" throughout the project, only to cancel the project when senior management discovered that the team didn't have a hope of actually delivering, which really implied that you had never actually earned any value at all.

So how does an agile approach to requirements management affect the rest of the lifecycle? In several ways. First, you create a high-level plan early in the lifecycle and maybe perform detailed planning on a just-in-time (JIT) basis. Because you're taking an evolutionary approach to requirements elicitation you must now take an evolutionary approach to project planning as well.

Second, you should take a staged approach to funding. We've known for decades that you need to give ranges early in the lifecycle because of the range of unknowns, and that's never going to change. When forced to give an "accurate" up front estimate a good project manager will pad it, but in doing so you're effectively lying both to yourself and to your stakeholders. A truly agile approach would be to provide funding a bit at a time, perhaps provide sufficient funding for a single quarter or even a single month. At the end of a funding period you would determine whether good value has been received for your IT investment, which should be the case if the team is producing working software on a regular basis and is working on requirements in priority order. This approach enables the business to both control the budget and to maximize their return on investment by funding the project teams which are most effective.

Third, you should design your system in a JIT manner. You can't do design until you understand the requirement(s) that you're designing to, so an evolutionary approach to requirements implies you must also take an evolutionary approach to design. This doesn't mean that you have to shoot yourself in the foot. With an Agile Model Driven Development (AMDD) approach you still identify an architecture model which addresses the "big issues" early in the lifecycle, thereby addressing major risks, but the "little issues" are addressed on a JIT basis.

Fourth, accept the fact that the delivery date will vary (this is pretty much the case with traditional projects as well). The stakeholders are in complete control of the delivery date, so if there is a hard date to meet then they must vary the scope and budget accordingly to meet that date.

Fifth, measure true "earned value" through delivery of working software, not through delivery of documentation. I'm sure that you've seem project teams deliver lots of documentation, make their milestones, claim "earned value" throughout the effort, yet fail to deliver anyway. The so-called "earned value" wasn't, and should more accurately have been called "justified bureaucracy". The only accurate measure of progress on a software development project is the delivery of working software.

Book Review: Agile Java Development

Agile Java Development, by Anil Hemrajani, is one of those rare books which teach you skills that you will use throughout your career. Yes, it does cover the fundamentals of Spring, Hibernate, Ant, and a bunch of other stuff that you need to succeed today. But, more importantly, it goes beyond the technology to describe agile techniques, adopted from Extreme Programming (XP) and Agile Modeling (AM), which enable you to succeed at modern software development. These are the skills that you'll be using years from now, long after the really cool technologies have evolved and/or disappeared completely.

Most Java developers have heard about XP and many have adopted some of its techniques such as test driven design (TDD), refactoring, and even pair programming. This is a good start, but it's not enough. In this book Hemrajani brings his years of experience to the table, describing what actually works in practice; this is different from other books which often share a vision of what the author thinks will work in theory, but as we all know theory and practice are often two completely different things.

An interesting feature of this book is that it is one of the few where the author appears to describe what he actually does on real-world projects. For example, his diagrams are similar to what you develop yourself on actual projects, a refreshing change from the advice presented in many of the modeling books available today. More importantly, he describes how to move from those simple models to the often complex code that you write on a daily basis. This I think represents the greatest strength of this book: it presents real-world advice which reflects what top-notch developers actually do in practice.

Hemrajani also shows how many of the common tasks that we perform, such as acceptance testing, unit testing, object/relational mapping, system integration, and refactoring fit into the software development picture. The book starts with the "5000 foot" process point of view, but dives down to ground level and describes how to use the tools in practice. Most books focus on one view but not the other; this one doesn't make that mistake.

Agile Java Development with Spring, Hibernate, and Eclipse
By Anil Hemrajani
SAMS Publishing, 2006
http://newsletters.sdmediagroup.com/cgi-bin4/DM/y/hzPq0Iuxou0OlZ0El3o0Ey
--SWA

Hot Links

The Agile Alliance homepage is the best starting point for anyone interested in learning more about agile software development.

Agile requirements change management is described in detail at www.agilemodeling.com/essays/ changeManagement.htm

The article "Examining the Big Requirements Up Front (BRUF) Approach" overviews and discusses evidence as to why comprehensive modeling up front puts your project at risk.

For project teams creating use cases, you'll find that "Driving Iterative Development With Use Cases" by Kurt Bitner provides wonderful information for taking an evolutionary approach to development.

I present a collection of agile project planning tips at http://www.ambysoft.com/ essays/agileProjectPlanning.html

The principles of Agile Modeling v2 are described at www.agilemodeling.com/principles.htm.

The practices of Agile Modeling v2 are described at www.agilemodeling.com/ practices.htm.

Check out the Agile Modeling mailing list.



ADVERTISING INFORMATION
For more information on advertising in Dr. Dobb's Portal newsletters, contact our account managers:
www.ddj.com/advertise


Copyright © 2006, CMP Media LLC.
600 Harrison Street, San Francisco, CA 94107
CMP Media's Privacy Policy
http://www.cmp.com/delivery/privacy.html

Your Email Address: [nmdas@kanbay.com]
is on our mailing list.
To unsubscribe, forward this message to:
unsub_ddj_agile-ctgzPq0Iuxou0A0A0Cq@newsletters.sdmediagroup.com

**ADVERTISEMENTS**

.NET 3.0 2006 ROADSHOW - Coming to a City Near You This October!
Brought to you by Dr. Dobb's, the .NET 3.0 2006 Roadshow is a two-day, multi-city event that will focus on the Microsoft .NET Framework 3.0. In-depth sessions taught by industry-leading experts.
Register today at: www.net3roadshow.com
Online Project Management Certificates from Boston U.
Project Mgmt was recently cited as one of the hottest professional skills. Enhance your project management skills with Boston U'?s PMI-certified Project Mgmt Certificates in as little as 8 weeks, 100% online via The College Network. Skills apply in the IT industry
Sign up today!
Dr. Dobb's Newsletters
Don't miss out on other essential Dr. Dobb's newsletters! Topics include Eclipse & Open Source, Java, Embedded Systems, Mobility, Security, Architecture & Design, and more. Go to ddj.com to view a complete list of free newsletters for software developers, architects and managers.
Sign up today!
FREE TUTORIAL
Automatically Prevent, Test and Analyze your Java Applications. Learn how in this
FREE Parasoft Tutorial.
OVER 1200 DEVELOPERS RANK THE FEATURES OF THE TOP IDES
Evans Data asked over 1200 developers worldwide to rate the features and capabilities of the top eleven IDEs. Find out how they ranked IDEs such as Visual Studio, Eclipse, and others.
Download the free Developers' Choice IDE Scorecard today!
Are C# and Java fast enough for Numerically Intensive Applications?
Which is faster? Are there limitations? Find out... Join Visual Numerics for a Free Web Seminar: Performance of C#.NET Compared to Java for Numerically Intensive Applications Now available on-demand.
Register Today!


Friday, September 15, 2006

http://www.agilearchitect.org/agile/principles.htm

Hello,

This was sent to me by a good friend of mine... I am sending it back to everyone... Vivek, you gotta ignore this...

Check it out... for details go to

http://www.agilearchitect.org/agile/principles.htm

The Principles for the Agile Architect are grouped under seven guiding "Golden Rules":

  1. Value People
  2. Communicate!
  3. Less is More
  4. Embrace Change: Plan It, Manage It!
  5. Choose the Right Solution for the Enterprise
  6. Deliver Quality
  7. Model and Document in an Agile Fashion
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Thursday, September 14, 2006

A test ain't a test if...

Hello,
 
Had gone to gujarat for a vacation so didn't have much coming in last couple of days...
 
Just read a good article on Tests... check it out guys...
 
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Wednesday, August 30, 2006

Some Geeky and extremely useless stuff...

Today I have some really geeky stuff... most of the information on this one... I am not sure where I would be using them... But we have been working with Microsoft technologies and windows operating systems for long... and I thought we ought to look into some of this stuff and at least know about them...
 
These are just compilations of stuff that I have come up over the years mostly during those frantic surfing sessions... they were lying somewhere in the corner of my machine... I was cleaning up my machine... looking for disk space in my 120 gig machine (can you believe it...!!!) and found them...
 
Too many software installed... and I still have that collection of games that Binoy gave me... I am working on it dude... working real hard... I wish I worked on my design patterns that hard.. anyways...
 
If you have .Net framework installed on your machine and if you go to C:\WINDOWS\assembly, what you see there is a lie. That directory isn't really a directory. look at the headings you have version, culture and public key token. Yeah it shows what's inside the GAC. its a shell extension. But it doesn't show you everything that's inside the GAC. If you really want to see what's inside the GAC in the explorer environment, fire up the command line and type in Subst G: C:\Windows\Assembly. This creates a new drive that maps to the mentioned directory path. Then instead of visiting the C:\Windows\Assembly, if you visit the G:\ you will see what's really in the GAC. The system doesn't really know that you enough to hide the real stuff that's inside the gac... stuff that's usually concealed... Talk about cheating the system... Har har...!!!
 
Now I don't really know how you can use this knowledge... But I am sure someone will find a way to use it... and let me know about it...!
 
There are some windows hot keys that we all know like the Windows + E keyboard button fires up the windows explorer and Windows + F fires up Search files and folders and so on. But there is more. There is a whole list here at http://www.codinghorror.com/blog/archives/000378.html check it out guys. Not only that if you go to http://www.softpedia.com/progDownload/WinKey-Download-887.html using winkey you might even be able to customize a couple of windows hot keys.
 
if you press Windows + R and type in wmic and hit enter you will see the windows management and instrumentation shell. it looks like the command line utility. WMIC is based on aliases. Aliases make the primary data provided by WMI available without having to understand WMI-specific concepts. For example, the processes running on the current system are available from the PROCESS alias. To view all of the processes that are currently running on the computer, type PROCESS in the WMIC utility. To list a specific process, type a command such as PROCESS WHERE (Description="explorer.exe"). To receive specific properties for the processes, type a command such as PROCESS GET Name, Handle, PageFaults. More information at http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx?mfr=true
 
if you press Windows + R and type in netsh and hit enter you see the Netsh. This is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Details at http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx?mfr=true and some fun stuff at http://www.hanselman.com/blog/UninstallingIPv6SupportOnWindowXP.aspx also for networking geeks. Didn't make much sense to me though... I was just on one of those surfing sprees...
 
Some more crazy commands in the windows command line environment that I didn't know about. Not giving much details... Everybody should definitely check it out once though...
 
click Windows + R and type in the following commands and hit enter.
 
"fsutil" - file system manager
"eudcedit" - font building tool
"sfc" - scans system files and can repair or install the proper microsoft versions if corrupt
"driverquery" - list of all the device drivers running on your machine with their properties
"diskpart" - disk partitioning utility. Should be used extremely carefully
"openfiles" - lists all open files
"sc" - lets you manage services from the command line
"getmac" - gets the mac addresses
More commands at http://www.networkclue.com/os/Windows/commands/ this is real interesting stuff...
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Tuesday, August 29, 2006

Smart clients to Browser based...

Hello,
 
Microsoft has been web centric since the beginning of Studio .Net. It decided that there would be validation controls on the web forms. Controls that can be dropped on the web page, a few properties set and they would magically work...
 
Now this should be an easier task to implement on windows forms... with no restrictions such as statelessness. Windows forms is a desktop environment. You can do whatever you want to. And it would have taken a much lesser effort for Microsoft to provide such smart controls on windows forms. Then Why didn't Microsoft do so?
 
To add a column that has combo boxes, why do we have to go through a long process of creating a control that inherits from the textBoxColumn populate it with a populated combo box, then add it to tablestyles and then add the tableStyles to the grid. While there is a nice cool feature of a template column in web forms.
 
Microsoft has no way of knowing what you are going to put in the template column and yet it has given a model so simple that you can put whatever you want to into any of the columns of the datagrid. Hell I have seen Datagrids inside a column of a datagrid. And trust me the simplicity freaks you out.
 
I wonder why...!
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Software (I) Ltd.., Cell Phone: +91-98600-59190
 

Wednesday, August 23, 2006

RE: Do you understand code better than people..?

I am sure when Binoy said that, he didn’t mean that I don’t have to understand people if I want to be an architect… I am sure he agrees and surely has some really strong feelings about bridging the geek gap… It was never either this or that… its never really either this or that… the world isn’t black and white…

 

The subject that I was trying to touch upon is that all isn’t lost if you ain’t a geek… J

 

Well the fun part is you don’t even have to be a domain expert to be an architect…

 

IMHO, Architects minds need to be more extensive then intensive… they need to be deep but at the same time wide… they need to know about businesses, people and technology… the deeper they go the better but they definitely have to have a wide reach… the deeper you are the better architect you become… otherwise everyone who has knowledge about the business, people and technology is a potential architect…

 

One big thing that I noticed this time in my US trip is that previously I used to think that I am pretty good with people and not that good with code… But this US Trip changed everything… I mean I think I am much better with code than I am with people… I mean code is complex and there is a lot of book keeping involved some times… and its always intellectually very challenging… but they can never be as complex as people can be… code throws back at you what you give it… but people on the other hand can be extremely unpredictable at times…

 

Regards,

 

Nilotpal

Phone: +91-9860059190


From: vivek [mailto:vivek.oswal@c-sam.co.in]
Sent: Thursday, August 24, 2006 11:13 AM
To: Nilotpal M. Das
Cc: 'Binoy Shah'
Subject: RE: Do you understand code better than people..?

 

A damn good question!! :)

But I take that question as a probe to investigate about and within myself....and not a binary decision making trump...

 

However, I think you could become both...because you better hope that you keep evolving...keep getting better....

 

Geekdom is know nothing more than a vestigeal residue which perhaps belongs to a set of concepts from the past era of computing....I am surely beginning to believe so...

 

You always need to understand people better, it is a prerequisite to living a good life...perhaps know thyself is equally important...unfortunately neither of this is innate, but something you only learn over the course of your life...

 

The bottom line is, perhaps,  to not create this option...and get better at what you love doing more...which could be either of them! Find your own truth....!

 

Vivek

 

 


From: Nilotpal M. Das [mailto:nmdas@kanbay.com]
Sent: Thursday, August 24, 2006 9:34 AM
Subject: Do you understand code better than people..?

One day before I was returning from the US, I met Binoy... we were discussing something about whether I should take the technical path (architecture) or should I take the path where I am more involved with people (management)... and Binoy asked me... Do you think you understand code better than you understand people?

 

Binoy was perhaps implying that I have to understand code better than people to become an architect... basically be a geek first... As much as I would like to be one... I am not... But again... the question is... Do I really have to be a geek to be an architect...

 

Read on...

 

 

Regards,

 

Nilotpal Das

Consultant - Microsoft Technology Practice

_____________________________________________________________________________________________________________________________________________________________
Kanbay Inc., Cell Phone: +1-516-582-7746

 

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 8/23/2006

Do you understand code better than people..?

One day before I was returning from the US, I met Binoy... we were discussing something about whether I should take the technical path (architecture) or should I take the path where I am more involved with people (management)... and Binoy asked me... Do you think you understand code better than you understand people?
 
Binoy was perhaps implying that I have to understand code better than people to become an architect... basically be a geek first... As much as I would like to be one... I am not... But again... the question is... Do I really have to be a geek to be an architect...
 
Read on...
 
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Inc., Cell Phone: +1-516-582-7746
 

Offshore and agile... Martin Fowler...

Offshore development and agile... thoughts by Martin Fowler...
 
Offshore development seems opposed to agile development in a couple of ways. For a start it immediately goes against the notion of physical proximity, since by definition offshore developers are a long way away. Secondly most offshore organizations favor the plan-driven approach where detailed requirements or designs are sent offshore to be constructed.
 
 So the fundamental question is whether agile techniques can be used in an offshore setting. If so how does it compare to using an plan-driven methodology (the term I'll use here for non-agile)?
 
 - Continuous Integration
 - Send Ambassadors
 - Contact Visits
 - Do not underestimate the culture change
 - Use WIKIs
 - Use Test Scripts
 - Regular builds for feedback
 - Regular short status meetings
 - Short iterations
 - Iteration planning meeting
 - Start with bug fixes when moving codebase
 - Separate terms by functionality not activity
 - Expect to need more documents
 - Get multiple communication modes working early
 
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Inc., Cell Phone: +1-516-582-7746
 

NHibernate...

I just read about NHibernate at 1.20 in the night... I couldn't really research it because it was too late in the night, I had already uninstalled the studio 2005 because its a 180 day trial version and my other CDs for Studio 2003 from my MVP days are in the closet in the other room... and I didn't really want to wake the whole house digging through the closet in the middle of the night...

And besides Even if i did find the cds i wouldn't be able to research it today considering the amount of time the installation would take... So I am going to research this subject one of these days... Thought you guys would also be interested... So here goes...

NHibernate is a .NET based object persistence library for relational databases.

NHibernate handles persisting your .NET objects to and from an underlying relational database. Rather than you having to write SQL to get your objects in and out of the database, NHibernate takes care of this for you. Your code only needs to be concerned with your objects, NHibernate generates the SQL and makes sure that things end up in the correct tables and columns.

Given an XML description of your entities and relationships, NHibernate automatically generates SQL for loading and storing the objects. Optionally, you can describe your mapping metadata with attributes in your source code.

NHibernate supports transparent persistence, your object classes don't have to follow a restrictive programming model. Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented idiom.

For more details... refer: http://www.hibernate.org/

Regards,

 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Inc., Cell Phone: +1-516-582-7746
 

Wednesday, August 16, 2006

Good read...

Hi,

 

Good read…

 

Vicissidude writes "Teachers in sports, music, and other fields tend to believe that talent matters and that they know it when they see it. In fact, they appear to be confusing ability with precocity. There is usually no way to tell, from a recital alone, whether a young violinist's extraordinary performance stems from innate ability or from years of Suzuki-style training. The preponderance of psychological evidence indicates that experts are made, not born. In fact, it takes approximately a decade of heavy labor to master any field. Even child prodigies, such as Gauss in mathematics, Mozart in music, and Bobby Fischer in chess, must have made an equivalent effort, perhaps by starting earlier and working harder than others. It is no coincidence that the incidence of chess prodigies multiplied after László Polgár published a book on chess education. The number of musical prodigies underwent a similar increase after Mozart's father did the equivalent two centuries earlier."

 

Regards,

 

Nilotpal

Thursday, August 03, 2006

WWF...

Nice piece of information on the Windows workflow foundation.
 
 
 
Nilotpal Das
Consultant - Microsoft Technology Practice
_____________________________________________________________________________________________________________________________________________________________
Kanbay Inc., Cell Phone: +1-516-582-7746
 

Friday, July 28, 2006

Cached dependancy...

During my interview for the next project, I was asked a question. How would you refresh the UI on a page or a cache as soon as the data in the back end database changes (seems to be a very common interview question these days). The best answer that I could come up with at the spur of the moment was the observer pattern.
Since there is no way that one could send back a signal from the database to an application saying "I have changed", the only thing I could think of at that moment was to implement the subject in the application itself. I thought at that moment that the subject would be something like a windows service that would keep an eye on the database and when the data changes, it would notify all the observers which in turn would either refresh the cache / UI or ask the right component to do so.
I was not convinced though that this is the best solution and did a little research. Well it seems that they have come up with a cleaner solution in ASP.Net 2.0. In fact Dr. Dobb's Jounal had an article about it. ASP.Net 2.0 supplies a class called the SQLCacheDependancy that inherits from the CacheDependancy. Check it out...

Thursday, July 27, 2006

Smart People

I have been thinking that it is kinda impossible to work on something intellectually challenging in a consulting company... There are no. of factors that work here. But mostly it is because they treat the product like someone else's product. Like you are driving someone else's car. You would take care of it because you don't want to damage it when you return it. But you wouldn't love it the way you would love your own car that was bought out of your own hard earned money. Usually the focus is on profitability and even though they understand at the higher level of management that quality is going to get them more deals, at the lower levels (tech lead, developer and manager) the focus is mostly on on-time delivery and profitability by faster returns.

Also there is always a dearth of people and so they recruit below par people and then the below par people stick around for so long that they eventually get promoted and since they are promoted and expensive the company wants them to work on high risk and responsible stuff like architectures and management. See where I am going with this...?

What happens in the process is that quality suffers. I have literally heard people ridicule writing test cases in code, saying, "Writing code to test my code is a waste of time. If I have that kind of bandwidth I should write more production code instead".

There is this great article that says that smart people hate non intellectual work. It is extremely difficult to get a smart person do a mundane job. And a smart person doing a stupid job actually makes him stupid. Smart people usually like to work with the best tools and technologies and they like to do something that is intellectually challenging.

For once I would like to work with really smart people on a project that is really intellectually challenging.

Tuesday, June 27, 2006

I wish I wouldn't test...

Have you ever noticed, as a software project comes to an end, you will see all the developers in the same state. You will see long beards, long faces and long groans... All the developers would be in the same state for one reason. They would be doing the thing that they hate the most. Testing. The QA team would be breathing down upon their necks, the client would bebreathing down upon the necks of the delivery guys / engagement manager, there would be a lot of fatigue because all the developers have been working on the same project for a year or so depending upon the complexity of the project. Defects keep appearing on modules that were developed over a year ago… Some of the developers are even new who are providing maintenance to code that has been written by someone else… And they complain that the guy who wrote the code was an imbecile… And eventually everyone just keeps praying as to how you can get over this project, get released and start off something new…

What do you do about it? I have been wondering… how do you make the last couple of months’ experience interesting? Well most of the last few months of any project are dependant on QA. Now that’s what the developers hate the most. And that’s what they are expected to do towards the end. Wouldn’t it be great if all the dirty testing would just go away…? Well it wouldn’t go away, but we could surely automate it… when I say automate, I do not mean the automated testing tools that are available… that’s the QA’s work to use automated testing tools to test the build. I am talking about automating the testing that the developer has to go through before releasing it to QA… One thing that developers do not mind doing is code. So why not do something in a good way so that the entire QA Experience in the end becomes pleasant.

Build an NUnit framework right from the beginning. Doing this from the beginning is a very good idea. Reasons? The energy level is high, the deadlines are not very tight and everyone has enough bandwidth to just do it. Once we have completed 1/3rd of the project, things start getting a little tight… this is the time when the team lead should kick in some discipline. A module shouldn’t be considered complete until the test cases are written. The leads should also consider the time to write test cases in their estimates.

By the time 2/3rd of the project is done, most of the unit test framework is ready. Now where this helps is that once you have changed some code or added some component, you can run the tests and make sure that nothing that has already been written and was previously working has not broken. That way we don’t have to test every little piece of code that has been written since God created the heaven’s and the earth… well 10 months into the same code and it does feel like that…

Last 1/3rd of the project, three things happen… one people will realize the merits of writing tests. Second people will get habituated to writing tests and third the frequency of new tests would decrease.

There is more automation that can be brought into development. But this would involve writing utilities and using over the team… utilities which are custom… like to test a particular scenario you require a specific set of data in the database. And there are so many such “scenarios” that you need to test. We could broadly classify these scenarios, and write SQL Scripts to generate a set of data that would enable the testing. Write a simple crude utility that could give you a choice to choose a classification and create the required environment.

In fact I was thinking could I create a generic framework that would enable me to automate such mundane tasks across projects and make software development exciting… If work is exciting, quality would most definitely follow…

Friday, June 16, 2006

End of revolution...?

Last whole week I haven’t been doing anything much significant. The project status is pretty healthy. We have not had any slippages, all the modules have been delivered on time. There have been some small defects, but none of them have been major issues. We have quickly pinned the down and resolved them. I have set up a beautiful communication process between the onsite and offshore team and all the communication gaps have been filled. We have been successful in setting up the architecture at offshore and also the VSS connectivity. Previously the offshore team was sending in the source code in small modules and the integration was done onsite by me. But now they are working directly on the central code repository so the integration process has also been set up successfully and is efficiently operational.

I think I have displayed outstanding performance as an onsite coordinator. Initially we had some problems with resources. But I was successful in resolving them very quickly and efficiently too. Besides what’s a job without a couple of challenges.

But lately I have realized that my work as an onsite coordinator has been mostly accomplished. I am still involved in writing documents that are related to routine process compliance and code reviews and testing. But those are the things that are beyond my role as an onsite coordinator. Since the process has been set up so well, there is not much coordinating that I am required to do these days. But since I cannot sit around doing nothing, the engagement manager is keeping me busy by giving me this insignificant work, which even a fresher, would be able to do efficiently. In fact I think a fresher would be able to do this work much more efficiently than I can.

So I have started to think as to whether I am required here any more? Is there a point in sticking around doing nothing for another 4 and a half months or should I move? What are the options that I have in front of me? Wouldn’t it be better to get released from this project so I could be more productive somewhere else? Do something that is more significant than what I am doing? Well I could either join some other project in the US itself or I could move back to India.

Of course the down side is that if I move to India, I wouldn’t be able to save the money that I thought I would in the US… I would have to leave and I wouldn’t be paid in dollars. But is money that important that I linger around being managed by a junior just because he has more system knowledge? And for what? I do not mind doing it as long as I am doing something significant. But testing, code reviews and routine process compliance under a junior is not quite fascinating.

The up side is that I might not have to move back to India. After the Kanbay – Adjoined acquisition, there have been a lot of projects coming in and loads of onsite opportunities are there according to Henry (My manager). I had a talk with him and he was interested in keeping me here coordinating with off shore. But I haven’t talked formally about it. This just came up during a conversation I had with him once. He is pretty happy with my performance in my current project and the previous projects. It seems he has been monitoring me over the past few months.

As of now what I am thinking is that I am going to be a senior consultant very soon. And I should be doing things that designate me as a senior consultant. I went through an industry depression during the initial stages of my career and didn’t get enough significant work and every time I am wasting my time doing insignificant things, I remember how I wasted the initial stage of my career working on projects that either would never get implemented because of some reason like lack of funds or projects that didn’t have a good business model. I have to make up for that loss. And I think it is very important that I keep an eye on where I am going at all times.

Wednesday, June 14, 2006

Mens locker room...

I joined a gym here... the gym is pretty big... its expensive too... but I have to workout you know and that's the closest... Once I had a discussion with a friend and I was telling her about how I like to take a shower in Endurance (my gym in India) because it is so nice... that's when she told me that she doesn't like to take a shower there because she thinks that there is no privacy...

News Flash... people here take a shower in the open... There are no cabins... like we have them in Endurance... and they all take a shower in the nude... yeah in the nude... with there private parts hanging around... and it is disgusting... they roam around in the locker room in the nude with nothing on... I have even seen people covering their backs when they have a towel and leaving their penises hanging around in the open... I mean come on.. you have a towel at least tie it around the waste... they wouldn't do that... they would hang the towel on their back and leave their lower disgusting hairy parts hanging around in the open...

I have stopped taking showers in the gym here... and there is no point anyways because i go on the bicycle and sweat when i am coming back... so i would have to take a shower when i reach home anyways... so why bother... and besides who wants to see that sight out there.. I don't even enter the mens locker room here...

Tuesday, June 13, 2006

Microsoft...!

I think it is time that I start preparing for the next level... It has been 2 years and I have grown from the role of being a senior developer... (Development, design, unit tests kinda role) to Onsite coordinator (managing offshore team, requirement analysis, technology pioneering, process compliance)... I have had so many experiences… web services windows services, windows mobile, writing utilities that automate a lot of menial tasks, etc. I have hardly spent any time on the bench or doing nothing during the last few years. Come to think of it listing down all those experiences would take an entire separate blog…

It has been a fascinating journey… Kanbay is a great organization in so many different ways… I have realized this after I have come to the US… two main reasons… One is I have noticed many companies working here… and second reason is that I have encountered and had first hand experience with the acquisition of Adjoined. I have helped Kanbay in integrating Adjoined by being the onsite coordinator of the first Kanbay – Adjoined project.

I have learnt a lot working here… and truly realized how good the Kanbay culture is. It is quite difficult to maintain the culture when the environment is competitive and there are so many different people of different kind of mentalities involved… And I think Kanbay has done a commendable job in maintaining a good people culture.

But the question is? What next? Well I know that I would love to do something that is closely related to technology. And even after 10 years or 20 for that matter, I would want to see myself exploring new technologies, facing bigger challenges. I would love to work on a product based company on Microsoft Technology. In fact the best thing would be to hop on to the mother ship and make a bigger impact.

Monday, June 05, 2006

Entry for June 05 2006

The problems I am facing here… in the United States… the dream country for every other country in the world.

The company that was taken over by Kanbay has some funny people working here. A few days back the manager of the project made some funny comments about the Kanbay culture in public. The comments were so rude that he had some team members coming to me and asking me as to how really Kanbay was.

I had to take him into the “Kitchen”. Now a “kitchen” is a place where someone takes someone to give a thrashing. It is actually a kitchen here. And whenever someone wants to talk something personal, or give a thrashing of some kind one on one… he is taken to the “Kitchen”…

This manager has about 10 years of more experience that me and I had to take him to the kitchen to tell him not to pass rude and inappropriate comments in public.

The two days later I had another problem… Henry my manager told me that one of the good senior consultants offshore, Madhu is being released… Now resource was a problem right from the beginning… first we didn’t get enough resources… later we had then one of the guys had faked his resume and he was fired… and now Madhu… so that was a problem… Henry and I discussed and the resolution that was supposed to be suggested was that Madhu Stay and Prajyoth leave. The reason being Prajyoth is just billing half of his time and is not a technical guy… Prajyoth could shadow him for a couple of days while Madhu gets trained…

So the next day I talked to the manager… suggesting him regarding Prajyoth’s release… He sent out a mail to everyone making the same suggestion, and suggesting in the mail that it was his idea… and basically suggesting that the Kanbay management is slow and lousy with the resource management… Henry wrote a very simple single line mail to him telling him that this was already discussed and he didn’t understand where the confusion was…

Sunday I was coming back from a nice piano concert I switched on my cell phone and saw a voice mail… Kevin Moore had called me… Jonathan had written some really awful things about Kevin in the review that happens in Adjoined every year or so… awful and untrue… now Kevin asked some of the adjoined senior management guys to call me up and ask…

I called Henry to tell him the whole thing and ask for advice… well I didn’t get him… but left a very detailed voice mail…

All day I heard Jonathan talking with the senior management about stuff and nobody really called me up… I think Henry, Will Hardy and everyone in the senior management handled it and things didn’t come to me…

Damn I am facing some new problem every day… God knows what’s next…