Monthly Archives: August 2013

Writing your first NHibernate Application

This tutorial writing your first nhibernate is a good tutorial but it misses out certain steps. Here are the missing steps. 1. In shareLib folder, copy Nhibernate (download first) and NUnit(download first). Then add references to nhibernate.dll and nunit.framework.dll to … Continue reading

Posted in Uncategorized | 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

Conditional Formatting in Excel – One column based on another

[table] Match1, Match2 A, B D, A E, E F, D K, K [/table] Rule: COUNTIF($B$2:$B$6,C2) Read: If cell c2 value exists in the range B2:B6, then highlight the cells that I have selected in step 1. The above will … Continue reading

Posted in Tutorials/Tips | Tagged , | 1 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