Geeks With Blogs
Rajiv Popat blog Quick Tips And Solutions
Back To The Basics And Beyond! Generic Methods and Multiple Constraints.
A couple of days ago I was asked if there was any way by which I could overload a method to "return" more than one type. If I was in a class room, or I was teaching a programming class (I've done that for some part of my life :)) my instant answer would have been "No." And then I would have proceeded to explain why the whole idea was not valid in the Object Orientation world. However, this question was not coming from a high school student. In all probabilities it was coming based on a practical ......

Posted On Saturday, September 9, 2006 1:14 PM

Nullable Types, What does int followed by Question-mark (int?) Mean? What's with the Double Question Marks and Other Syntaxes?
I first read about Nullable Types around 6 months or so ago. Since I last heard about / used Nullable types, I had completely forgotten about the syntaxes and was completely stumped when I was asked what "int? x" meant by a couple of guys at work. I'll not Blog about the basic concepts of Nullable Types here. I think this MSDN Article does a particularly good job at it. What I'll Blog how ever is the basic syntax which is so darn confusing at times that I've read about it once, seen it getting used ......

Posted On Saturday, September 9, 2006 6:43 AM

Auto-complete in Dos (Hitting Tab to Complete Directory / File Names in CMD.EXE), Does Not Work!
Besides being a DotNet developer I've spent some part of my life (3 odd months) in the past, being a Linux Administrator. Every guy in the Linux world loves the bash Auto-complete feature. The part where you type the partial name of file or directory and hit the tab button and the console completes the typing of the entire file / directory name for you. I just think it's Natural (and super cool) for an OS to be able to reduce the number of clicks (or keystrokes, for that matter) and help you get ......

Posted On Saturday, September 9, 2006 4:41 AM

DRM! Moving you DRM Protected eBooks to Mobile Devices
If you’ve tried moving an eBook you bought on Amazon that was protected with DRM to your palm device and have been successful skip this post. However, if you’ve tried your hands at if and failed (becuase you were as confused as me) read on. Trying to the use the Acrobat Reader for Palm OS (that works for all of my other PDFs) kept throwing the following error - "This document has not been encrypted using stand security handler and therefore could not be opened" A Few minutes on Google ......

Posted On Saturday, July 29, 2006 8:14 AM

Transactions, Identity Columns and Foreign Key Constraint Errors - The Chicken Egg Situation
I faced this problem while using NetTires which I highly recommend for anyone who wants to quickly generate a Data Access Layer using Microsoft Enterprise Library without having to do the grunt work and writing boilerplate Data Access Code. In my efforts to not digress from the Topic I am going to keep some other data access mechanisms that I've used in the past out of the scope of this post and just state that NetTires is a Decent enough Data Access Mechanism I am currently in love with and am using ......

Posted On Friday, September 8, 2006 1:18 PM

Static Variables In ASP.NET - "I Didn't know this" Moment Number 42
Yet another "I didn't know this" moment - Turns out, static variables in a class in ASP.NET are pretty similar to application objects but I am going to keep my long-winded posts really short this time. Long story short: "A key reason that the Application object exists in ASP.NET is for compatibility with classic ASP code—to allow easier migration of existing applications to ASP.NET. If you are creating an ASP.NET application from scratch, you will want to consider storing data in static members ......

Posted On Wednesday, July 5, 2006 12:32 AM

Hack your Tungsten-E to improve it's Battery life!
I’ve been reading a LOT lately, mostly during my commute. I’ve been a MP3 Audio Book guy for the past few months but nothing beats reading. So, lately I’ve been accompanied by my 1.5 year old Tungsten E reading on my way home and to office. The T/E has shown some battery drain issues last week. I had nothing to do this Saturday, (practically half of my family is out holidaying) so, I decided to waste some time trying to investigate what I can do about the battery drain issue the ......

Posted On Saturday, July 29, 2006 11:58 AM

How Do I Get the Atlas Control Toolkit to Show Up On My Visual Studio.NET 2005 Toolbox?
One of the Questions I was asked on my Article on Atlas @ Code Project at http://www.codeproject.com/... was How do you make the Atlas Controls Appear on your Visual Studio toolbox once you download them. The official documentation from Microsoft states these steps: Create a new web site from the "Atlas" web site template by opening the "File" menu, clicking "New", "Web Site...", and picking ""Atlas" Web Site" under "My Templates" Right-click on the Toolbox and select "Add Tab", and ......

Posted On Thursday, June 29, 2006 9:47 AM

Minor Hiccups with TFS "Zombie" projects...
Hmmm... So, after my first encounter with TFS and some more reading on the stuff I have to say I was impressed! I did what any developer in his right mind would do - decided to take it for a ride on a small internal project which has a team size of around 5 people. But by the time I had got through the basic problems which I described in my post “Encounter with Foundation Server” I had already created for myself and my team 2 Zombie Projects which were lurching somewhere “out there”. ......

Posted On Wednesday, February 22, 2006 7:41 PM

Encounter with Team Foundation Server (Beta 3)
I've always been a HUGE promotor of using tools to drive process and when TFS Beta 3 was released I was one of the first ones who decided to lay hands on it and give it a shot. I've never been able to make it work however, untill today! I went through the whole cycle of having setup detect missing pre-requsites multiple times (the price you pay for not having the patience to read the documentation :) ). Here's the process I followed this time: I started off with installation of IIS - followed by ......

Posted On Monday, February 20, 2006 10:03 PM

Copyright © Rajiv Popat | Powered by: GeeksWithBlogs.net