Category Archives: Software Development

Post-build Event Command Line

How to write a command line argument in Post Build event in Visual Studio? To get to the setting, right click on project, select properties, then go to the third entry on left “Build Events”. Mostly like you will need … Continue reading

Posted in Software Development | Leave a comment

Useful regular expression in Visual Studio

This is for Visual Studio 2012. VS 2012 uses a more standard RegEx rather than earlier version. This may not work in earlier version of VS. Match images tags  Regular Expression: <imageurl>.*</imageUrl>   Remove blank lines from Code Regular Expressoin: … Continue reading

Posted in Regular Expressions | Leave a comment

Error loading player: Offline playback not supported : JWPlayer

Funny I did not get this error on my local html file with jw player, but when I copied it to another server, I got this error. I copied the whole directory so there wasn’t anything missing. I coped that … Continue reading

Posted in Software Development, Troubeleshoot | Leave a comment

How to add Local Database to Visual Studio 2012 Express Project

If you try to click on project and select add, the option for local database does not appear. To add local database, select View > Database Explorer. Then right click on database and click add. This allows you to add … Continue reading

Posted in Software Development | Leave a comment

Spring.NET XML Configuration File

A sample Spring.net configuration file looks like this <?xml version=”1.0″ encoding=”utf-8″ ?> <object id=”Pen” type=”Spring4.Pen, Spring4″ /> <object id=”Pencil” type=”Spring4.Pencil, Spring4″ /> </objects> Lets decompose it It must start with <?xml version=”1.0″ encoding=”utf-8″ ?> because it is a standard xml file. … Continue reading

Posted in Software Development | Leave a comment

Spring.NET Constructor Injection Example

The following Console Application (C#) represents Constructor injection using Spring.NET. To use the code in as it is form, create a console application using C# in Visual Studio 2012 and name it Spring4. Copy the content of program file from … Continue reading

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

Date Calculator

This is a simple data calculator between two dates. Start Date (mm-dd-yyyy): End Date (mm-dd-yyyy): [date_difference]

Posted in Software Development | Leave a comment

How to ask questions at job?

You are new to the job and you didn’t how how something works. Or may be you were suppose to know something and you don’t know. How would you ask questions? Asking questions in bad way can jeopardize your career … Continue reading

Posted in Software Development | Leave a comment

Spring.net basic example

So Spring.NET is used for Dependency Injection among other things. Can you show us an example? Spring.net Example Create two class Rectangle and Triangle, both must be derived from Abstract Shape class which has a method call Draw(). If I … Continue reading

Posted in Software Development | Leave a comment

Accessing Local Resources in MVC

You want to localized your resource or in other words put them in a resource file in the local folder, how do you access it in MVC?   Here is how you will access it     public class Student     {       // Constuctor … Continue reading

Posted in Software Development | Tagged , | Leave a comment