Posts

Automatic Formatting of Markup (HTML) in ASP.NET

Image
Daniel at dimebrain did a really fantastic work writing a plug-in for VS that can format the markup in asp.net. When you build a web page using the VS designer, it auto generates the markup. But the auto generated code so clustered and impossibly hard to read.  You have to manually format the markup (HTML) code by hand. This is always very tiresome and boring job. Also this is wastage of time. Daniel also felt the same. After being inspired by the Joe Stagner , he developed this plug-in. It provides an additional Edit menu item and hotkey (Ctrl+K, Ctrl+Z) to automatically line up attributes in a selection of text, or format the entire document if no text is selected. The meat of the add-in is a handful of regular expressions that parse tags (XAML, HTML, and ASP.NET directives) and a few IDE tools to line them up according to their indent level. Download Links: Download the code (rar file) Download VS2005 Setup (msi file ) Download VS2008 Setup (msi file) Scr...

InstallShield Error: 5004 : 0x80070005

Image
  While Installing driver for my Sonix PC camera, I was welcomed with the followng error. I was trying to run setup.exe. It was a setup program created with the InstallShield setup creator. Error Details The details of the error were as below: Error Code:    -5004 : 0x80070005 Error Information: >SetupDLL\SetupDLL.cpp (1924) pAPP:USB2.0 PC Camera-268 PVENDOR:Sonix PGUID:75438C0E-9925-412E-AD85-D0E71C6CE2ED $7.1.100.1248PAK @Windows XP Service Pack 2 (2600) IE 7.0.6000.16574   Solution After some Googling, I got a very unusual tip from Gonarth . I have tried other tips but they simply didn't work. I as little bit tired, but finally I decided to check this out. The tip was very simple but strange. I tried it and wow! it worked. Beloow is the step by step description of what I did: 1. Opem command window. Start -> Run -> Type cmd and press enter. 2. At Command window, type following command at time /inter...

Top 20 Programming Books

1. Code Complete   by Steve McConnell - Darn near a bible of software development goodness, Code Complete reminds us of our priorities. It's essential and everyone who writes code should read this book. 2. The Pragmatic Programmer by  Andrew Hunt and Dave Thomas - I like to read this book at least every six months or so. It's clean, clever, clear and full of concrete tips you can use to be a better, simpler, pragmatic programmer. A new classic. 3. Programming Pearls by Jon Bentley - This may feel initially like a C book, but it's really an algorithms book at its heart. It's old school with techniques and thought problems that can be applied today, even in language like Ruby and C#. 4. Refactoring: Improving the Design of Existing Code - by Fowler, Beck, Brant, Opdyke, Roberts   Although the language used is Java, the concepts are universal. This is a very linear, easy to read, learn by example book. If you think you know how to refactor, but you hav...

Birthday ... or April Fool

Image
What is the relation between birthday and april fool? Well, you may call people at a food junction telling them that today (1st of Aptil) is your birthday. Most will believe you and wait for you at the food junctions. but some will be smart enough to figure out that it's the Fool's Day. But what if somebody actually born on Fool's Day? My boss, Kiran, is one of those rare persons. He was born on the first day of April. There was a great party at our office cafetria (to make us believe!). We brought a very beautiful chocolaty cake for him. Kiran told us the same story. He used to call people for his b'day and people thought that he would be fooling them. He used to keep waiting at the cake table and nobody turns up. He then had to call them many times and turn all the stones to make them believe that it was a real party. Kiran will give us an unoffical party on Friday .............................................not to be disclosed. I have one more friend...

Money Manager EX - The Personal Money Manager

Since long time, I was wondering where my money goes. I always run out of budget at the end of every month. And I could not track where all my money goes. So I decided to use a personal money manager. After some Googling, I found a wonderful software called Money Manager Ex . This is a lightweight personal money manager software which is available free of cost. Features Money Manager provides some nice features. Below is the summary of the features, I like. Multiple Bank Account : You can manage multiple bank accounts. It supports two type of accounts - saving/checking and investment. Your investment accounts automatically becomes stock accounts. But it would be nice if I could get third account type - credit account, for my credit cards. However, you can manage credit cards by pretending them to be saving account and entering the opening balance (i.e. outstanding amount) in negative. Transactions: With Monery Manager Ex, you can enter tentative transactions. I enterd tentative transa...

Philips GoGear SA3115/97 Portable Media Player

Image
I planned to gift a portable media player to my wife on this valentine day. After little market search and product analysis, I decided to buy PhillipsGoGear SA3115/97. It has a great look. It has appealing black color with 1.8" color screen. It has simple interface with keylock feature. keylock feature is very useful when you intend to keep your player into pocket. It locks all the keys except volume keys. This Philips player has five keys on the front - 4 cursor keys and 1 multifunction key. These keys are placed in a circular keypad with soft touch. The multifuction key at the center of keypad is a dual key for playpause and onoff functionality. Press it once for playpause and press and hold for few seconds for onoff functionality. There is one key on the lefyhand side with an icon on lock. This is the keylock key. One pair of keys are at right side. These are volume keys - for V+ and V-. Below is a chart of common features of this media player: Memory Type : Flash Capac...

Google Reader - Keyboard Shortcuts

Image
Google Reader is a great application from Google Labs. This allows you to organize your blogs, manage your subscriptions and share interested posts with your blogs. All this is available online. This means you can access all your settings and blogs from anywhere. You can also access Google reader through mobile device. Keyboard Shortcuts: Google reader is popular for its keyboard shortcuts. According to The Official Google Blog "j" key is the most popular key. This is used to move to the next item. You can find a list of popular Google Reader keyboard Shortcut keys here . A complete list of keyboard shortcut is available here . However, the best keystroke is "?". This is "/" key with shift key pressed. This provides help on all other keyboard shortcuts. Google reader have a very large list of features. I will discuss these features in the next post. Technorati Tags: Google+Reader , Keyboard+Shortcuts , Google+Reader+Keyboard+Shortcuts , Blog+Management+T...