Category Archives: Software Development

Remove white spaces using regular expression [t ]+

The correct expression to remove white spaces using regular expression is [t ]+ — Make sureĀ  you select Regular Expression in Search Criteria I used the following which id not quite work [t ]*. The problem with this one is … Continue reading

Posted in Regular Expressions | Leave a comment

Undefined index select

You can get Notice: Undefined index: *name* on line xx if you are using select input box but there are not option inside it. In other words, it is empty. This can happen if a script populates the options which … Continue reading

Posted in MYSQL, Software Development | Leave a comment

Copy and Past in Visual Studio and Fix IDs

When you copy a big chunk of ASP.NET code the chances are you are going to run int IDs problem. IDs from the new code is wiped as soon as you past them. Here is a solution to fix it. … Continue reading

Posted in Regular Expressions, Software Development, Tutorials/Tips | Leave a comment

set up new website in iis7

Setting up new site in IIS can be tricky. Actually the process is easy most of the time it may not work for you mainly because of Application pool setting or for other unknown reason. I had similar issue setting … Continue reading

Posted in IIS | Tagged , , , | Leave a comment

directory is already under version control SmartSVN

I was getting this error while adding my project in SmartSVN and I had no clue whatsoever *directory* is already under version control SmartSVN The reason I was getting this error was because I had select the root folder andĀ the … Continue reading

Posted in Software Development, Troubeleshoot | Tagged , | Leave a comment

regex-greedy

Greedy means it will go towards the end of line and will NOT stop at first match if there are other matches available. ‘.*’ = Greedy ‘.*?’ = Lazy Lazy has extra character (?) in the regex syntax. Similarly you … Continue reading

Posted in Regular Expressions | Tagged | Leave a comment

List all worker processess in IIS

If you hit ctrl+alt+del, you will notice one ore many w3wp process. Each of these correspond to a different site (or Application Pool). In Windows Task Manager, you cannot judge which process is associated with which site. You can issue … Continue reading

Posted in IIS, Tutorials/Tips | Leave a comment

Contact Hammad

Hammad Khan is an experienced software engineer with 10+ years of experience in desktop application, web application, databases and websites. You may contact him for technical expertise or hire him for your project on contract or perm basis. [contactform2]

Posted in Software Development | Leave a comment

Quartz.net Working Example

I could not find a working example for Quarts.net. The examples at Quart.net site, does not compile. Found out they are build against Quartz.net version 1.0. The following is a working Quartz.net example that is built against Quartz.net 2.0 (Latest). … Continue reading

Posted in Software Development, Tutorials/Tips | Tagged , , , , | 16 Comments

Debug C# Application without running code

You can debug/test your code without running the application itself. There is a neat feature in Visual Studio (I am using VS 2012) where you can go to Debug menu -> Windows -> Immediate. In this window, you can type … Continue reading

Posted in Software Development | Tagged , | Leave a comment