VS 2010 Beta 1 includes some C# 4.0 features and though I have been reading about some of the new stuff on various blogs and forums, I only got to play with it very recently. Put simply, the dynamic keyword allows you to declare and use types that are not type-checked during compilation. They are [...]
Entries Tagged as 'General'
A quick look at the C# 4.0 dynamic type
May 22nd, 2009 · 1 Comment
Tip : Flush the keyboard buffer from C#
May 19th, 2009 · 1 Comment
Here’s another tip from an MSDN forum discussion. Someone wanted to know how to flush the keyboard buffer in a C# console application. Here’s a simple hack to do this : private static void FlushKeyboard() { while (Console.In.Peek() != -1) Console.In.Read(); } Now you can use it as follows : char x = (char)Console.Read(); FlushKeyboard(); [...]
An interesting week in Seattle
March 6th, 2009 · 5 Comments
Last week I attended the 2009 MVP Summit held at Redmond/Seattle and I’ve got to say that I had two rather peculiar experiences whilst there. The first incident was on the way to Seattle – it snowed in Atlanta of all things to happen and this resulted in dozens of cancelled and delayed flights. My [...]
Tags: General
Follow up to writing enums to a database
January 29th, 2009 · No Comments
In my previous blog entry, I had recommended storing enums using their string representations when writing them to a database. There’s a caveat there though – the enum names should be guaranteed to remain stable, because if you change the name of an enum member, it breaks the database. For my specific scenario I ended [...]
Tags: General
When the pizza guy called me Neptune
June 17th, 2008 · 12 Comments
Okay I’ve been called many things in my life, but this was a first for sure. My wife ordered pizza and I went to pick it up on my way home from work. She gave my name as Nish, and she spelled out the first letter as “N for Neptune”. I’ve heard her use “S [...]
Tags: General
Nishant is spelt with a t at the end
June 8th, 2008 · 10 Comments
I am a bit fixated on how people spell my name – for those of you who don’t know, it’s “Nishant” – 7 unrepeated letters that even a 4-year old should find it trivial to remember. Unfortunately enough, many Indian names that end in “nt” are sometimes pronounced and spelled as “nth”, so there’s a [...]
Tags: General
A singular solicitor at Target
February 12th, 2008 · 5 Comments
Smitha and I were shopping at Target this past weekend, and as is the norm these days I was pushing little Rohan around in his stroller while Smitha went through the aisles picking, unpicking and then re-picking various items that seized her interest. I was mostly bored and lost in my thoughts when I was [...]
Tags: General
Please wait as I have to reboot my PC!
January 26th, 2008 · 6 Comments
I’ve had some very interesting experiences when calling customer support, but last week a call to Comcast resulted in a whole new experience for me. After being on hold for about 5 minutes, listening to some of the most awful music you could possibly round up, a girl picks up. She greets me and then [...]
Tags: General
Really getting design patterns
January 3rd, 2008 · 3 Comments
The CEO of my first company (who was an old time assembler/C programmer even before I was born) liked to periodically quote, “you either get pointers or you don’t”. I believe I’ve seen variants of that on the web – but I just did some Googling and could not find out who made the original [...]
Tags: General
Vista rebooted during my VS Orcas beta install!
July 24th, 2007 · 4 Comments
I started an installation of Visual studio Orcas beta 1 last night just before I went to sleep and also set the alarm for 3 AM so I could wake up and hit [Next] when it prompts me to install the documentation. Well guess what? I woke up and found that Vista had rebooted and [...]
Tags: General
voidnish.com updated to ASP.NET 2
July 1st, 2007 · 1 Comment
It’s been quite a while since I blogged – I am not sure why though. There are various topics I meant to blog about but never got around to doing it. Anyway this morning I updated my website (www.voidnish.com) to ASP.NET 2. Of course, there’s not going to be any speed difference or anything like [...]
Tags: General
Got my {Josh Smith on WPF} t-shirt!
March 2nd, 2007 · 7 Comments
WPF guru and fellow-CPian Josh Smith has very kindly sent me a {Josh Smith on WPF} t-shirt which is part of the prize package for his WPF Challenge programming contest. Here’s a photo of me wearing this really cool t-shirt :- Nish wearing the {Josh Smith on WPF} t-shirt Obviously, you are gonna want this [...]
Tags: General
A third chapter excerpt from C++/CLI in Action
March 1st, 2007 · No Comments
This is the 3rd (and most likely the last) chapter excerpt that’s published on The Code Project C++/CLI in Action – Using interior and pinning pointers I am quite excited about the fact that the book will be out this month :nerd:
Tags: General
Another chapter excerpt from C++/CLI in Action
February 28th, 2007 · No Comments
A second chapter excerpt from my book C++/CLI in Action has been published on The Code Project. There’s one more coming up (later this week). C++/CLI in Action – Instantiating CLI classes I also have an update as to when the printed book will be available. The book’s going into printing phase in a week, [...]
Tags: General
IntelliTXT blocker for Internet Explorer
February 27th, 2007 · 2 Comments
While Firefox has had plugins to block IntelliTXT popup-ads for ages, Internet Explorer never really had one that worked well enough to be used consistently. And today, I was horrified to find that a few websites actually had IntelliTXT popups that showed videos! Just when you thought IntelliTXT couldn’t get any more nauseating, you get [...]
Tags: General
Chapter excerpt from C++/CLI in Action
February 27th, 2007 · 5 Comments
A chapter excerpt from my book C++/CLI in Action has been published on The Code Project. C++/CLI in Action – Declaring CLR types A couple more will be published soon (hopefully this week).
Tags: General
It’s Tagging time in Microsoft blogger land
January 20th, 2007 · 5 Comments
I got tagged by Kenny Kerr on Jan 3rd and by Kate Gregory on Jan 7th. I had to do some Googling to figure out what tagging is all about. Some people don’t seem to like this whole tagging concept as they feel it resembles chain mail. So if any of you are in that [...]
Tags: General
Lalu and ASCII 3 : One of the earliest programs I wrote
January 5th, 2007 · 5 Comments
I was reading Raymond Chen’s blog earlier today when I came across an entry where he talks about the ASCII character 7 which emits a beep on the command prompt. That brought back memories of one of the first programs I ever wrote on a computer. It was 1989 and some of us from Class [...]
Tags: General
New computer speakers
December 11th, 2006 · 4 Comments
Today I bought the Logitech X-540 computer speakers from Best Buy. The sales guy tried to dump a Best Buy reward zone credit card on me, and his sales girl friend tried to convince me to buy a 2 year service warranty which would make me eligible for a free replacement for up to 2 [...]
Tags: General
Relocated from Toronto, ON to Marietta, GA
October 22nd, 2006 · 31 Comments
Last week, we relocated from Toronto to Marietta, a suburb town of Atlanta. It was a 15 hour drive that we split into two days; we took a sleep-break in Lexington, Kentucky. The drive was mostly uneventful, though we drove through some of the most scenic and beautiful highways you could think of. Mid-October is [...]