Posts

Showing posts from 2008

My First ASP.Net MVC Appliacation

While developing my first ASP.Net MVC application, I faced many problems which has no solution on the web. There were problems with ViewData, Primary Key etc. and the solutions  I finally found were very simple... Read More Technorati Tags: ASP.net , MVC

Scott Guthrie's ASP.net MVC Tutorial Links

Technorati Tags: MVC , ASP.net ASP.NET MVC Framework One of the things that many people have asked for over the years with ASP.NET is built-in support for developing web applications using a model-view-controller (MVC) based architecture. Last weekend at the Alt.NET conference in Austin I gave the first... ASP.NET MVC Framework (Part 1) Two weeks ago I blogged about a new MVC (Model View Controller) framework for ASP.NET that we are going to be supporting as an optional feature soon. It provides a structured model that enforces a clear separation of concerns within applications, and... ASP.NET MVC Framework (Part 2): URL Routing Last month I blogged the first in a series of posts I'm going to write that cover the new ASP.NET MVC Framework we are working on.  The first post in this series built a simple e-commerce product listing/browsing scenario.  It covered the high... ASP.NET MVC Framework (Part 3): Passing ViewData from Controllers to Views The last f

Microsoft’s New Operating System - Midori

Microsoft’s New Operating System "Microsoft is incubating a componentized non-Windows operating system known as Midori, which is being architected from the ground up to tackle challenges that Redmond has determined cannot be met by simply evolving its existing technology. Midori is an offshoot of Microsoft Research’s Singularity operating system, the tools and libraries of which are completely managed code. Midori is designed to run directly on native hardware (x86, x64 and ARM), be hosted on the Windows Hyper-V hypervisor, or even be hosted by a Windows process. According to published reports, Eric Rudder, senior vice president for technical strategy at Microsoft and an alumnus of Bill Gates’ technical staff, is heading up the effort. Rudder served as senior vice president of Microsoft’s Servers and Tools group until 2005."

My Rajasthan Visit

My Rajasthan Visit In last winter I visited Rajasthan with my family. It was a unofficial official vacation tour. I planned the trip with my team mates and their family. It was a five day trip in desert. We rented an luxury Tempo Traveler which had a bed at the back side.

Predicting Market Direction Using Put Call Ratio (PCR) « Yanesh Tyagi writes …

Predicting Market Direction Using Put Call Ratio (PCR) "Not sure where the market will head tomorrow? Tired of all those technical analysts? Do your technical analysis in seconds. Predict market sentiments yourself using PCR. Put Call Ratio commonly called PCR is a simple ratio. This is calculated by dividing total number of put traded by the total number of calls traded on a particular day."

Share, Explore and Learn: Future hybrid System

Share, Explore and Learn: Future hybrid System The new concept car coming from the automobile giant Peugeot Design Competition is surely a sophisticated design

Programmer Cost Calculator (for Programmers)

Programmer Cost Calculator (for Programmers) : "How much do senior-level software developers really cost? When you consider the hidden costs associated with hiring employees, outsourcing to a services firm becomes an attractive alternative — especially for projects that are outside your company's core competence."

How To Create A Podcast

Podcasting is a method of giving out media files over the Internet. But how exactly is a podcast created? Read on and this article will tell you all you need to know. First of all you will need a domain name. This will give your subscribers the location of where they can obtain your media files. If you can, choose a name which is easy to remember and describes the type of podcast you are publishing. Use a domain register such as eNom or GoDaddy to register your domain name. The next thing you will need is a web host. There are many companies you can use, for example, Host Gator or StartLogic. As you will be storing a large amount of media files it is best to think about getting a big disk space when you are looking for a web host. For instance, a 2-minute mp3 file may be 2 MB in size. Quite a few web hosting companies offer several GB in disk space at an extremely low monthly cost. Apart from the disk space, you should also consider the amount of bandwidth the company is providing.

VB.net to c# converter

Many times we need to convert VB.net code to c#. There are many utilities to do this. but none of these is perfect as these have one or other shortcomings. Most of these utilities are the windows apps written in c# language. The draw back of windows app is that you need to upgrade the app at times. I was looking for an online app for the conversion. And after some googling I found a cool online tool from the Developer Fusion Lab. This conversion tool is quite accurate in conversion and if it could not convert any code then it inserts the error message into the code. So one can easily identify the error message and do the manual conversion. Link: Convert VB.NET to C# - A free code conversion tool from Developer Fusion

Microsoft's New Operating System - Midori

Microsoft is incubating a componentized non-Windows operating system known as Midori, which is being architected from the ground up to tackle challenges that Redmond has determined cannot be met by simply evolving its existing technology. Midori is an offshoot of Microsoft Research’s Singularity operating system, the tools and libraries of which are completely managed code. Midori is designed to run directly on native hardware (x86, x64 and ARM), be hosted on the Windows Hyper-V hypervisor, or even be hosted by a Windows process. According to published reports , Eric Rudder, senior vice president for technical strategy at Microsoft and an alumnus of Bill Gates' technical staff, is heading up the effort. Rudder served as senior vice president of Microsoft’s Servers and Tools group until 2005. “That sounds possible—I’ve heard rumors to the effect that he [Rudder] had an OS project in place,” said Rob Helm, director of research at Directions on Microsoft. He noted that it is

Money Manager Ex - SQL Query

Image
Money Manager Ex is a personal finance management software. It lets you manage your personal faineance. You can manage  your expenses, investments and stocks using Money Manager Ex. The most appealing feature of this software is custom reports. It lets you run custom queries against its Sqlite database. In my previous post on Money Manager, I explained its different features. In this post, I will explain how you can get category wise report of your expenses. Money manager manages your accounts in categories and sub-categories. It has many pre-defined categories. Each category is further classified into subcategories. Usually these are sufficient for the general use. However you can create new category or subcategory easily. One lacking feature of this software is that it does not provide category-wise report of your transactions. You can see transactions summed up by sub-categories however. To overcome this shortcoming, I wrote a simple SQL statement that allowed me to see the

Phillips Go Gear SA-31 Media Player - Repairing Firmware

Image
I purchased Phillips Go Gear SX 31 Device on 14th Feb 2008 from the Next's store. This is a beautiful black device with easy interface. This was working fine up to Tuesday last week when it started to misbehave. Any song I tried to play was being played in the fast forward mode. It was producing strange sound in the earphones. Thinking that any key might not have released, I pressed all the keys. But that doesn't work. I switched the device off and then switched it on again. Hopefully, I tried to play the song. But again it was running like a jet plain - skipping 4 seconds at a time. The seconds count was 1...5...9...13..so on. Being a software professional (Microsoft technology), I thought of giving the device a hard boot. But the device has in-built battery and there is no way to remove its battery. Today while I was enjoying my Sunday morning (at 11:30 am!), suddenly I remembered that the software that came with the device has an option to repair its firmware. I switc

True / False in classic VB

In classic VB (and classic ASP as well), zero is considered as false and any other non-zero integer is considered as true. While debugging an asp page, I come across following line: If Not Request.Form.Count Then ... Now form count was 2 (true) so the condition should evaluate as false (Not true). But this was always evaluating as true. It took me half an hour to find the catch. What actually happening here was that Not is a bit-wise operator in VB. It flips the bits. So, 2 is 0000 0010 in binary. NOT 2 is 1111 1101 in binary. Considering that the last bit is sign bit, this becomes -3. Now our condition If NOT (2) becomes If (-3), which always evaluates to true (non-zero integers are always true in VB).   Technorati Tags: ASP , VB , Programming , Classic+ASP

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) Screen

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 /interactive cmd.exe Rep

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

Comparison Of Intel Desktop And laptop processors

  Comparison of Intel Processors for Desktop     Intel® Core™2 Extreme Processor Intel® Core™2 Quad Processor Q9550 Intel® Core™2 Duo Processor E8500 Pentium® Dual-Core Processor Pentium® 4 Processor Processor Number QX9775 Q9550 E8500 E2200 N/A Architecture 45 nm technology 45 nm technology 45 nm technology 65 nm technology 90 nm technology L2 Cache 12 MB 12M 6M 1 MB 1M L3 Cache N/A N/A N/A N/A N/A Clock Speed 3.20 GHz 2.83 GHz 3.16 GHz 2.2 GHz 2.80A GHz Front Side Bus Speed 1600 MHz 1333 MHz 1333 MHz 800 MHz 533 MHz Chipset

Unicode Tool tip

While using windows XP, I was facing a problem. I was working on a multilingual web site. we were showing tool tips to help user to understand what a particular button will do or where a link points. The tool tips were working fine for language which uses English language characters. But in case of other characters (read unicode) such as Chinese or Arabic, it showed small boxes instead of letters. I had to do lot of research on the internet (googling is my first habit) and here is what I found: To set your tooltip font to be able to display Unicode characters: Right click on the desktop, pick Properties -> Appearance -> Advanced ->Item: ToolTip, then set the font to Arial Unicode MS or other large font. This will show unicode characters in the tool tip.