Author Archives: Emad Alashi

Beware of Static Constructors

By | February 25, 2009

In Bunian we needed to use a static constructor for some reason, it was all going good; we tested the code and it ran smoothly…excellent (Code Coverage anyone?!).But when I came across this situation, it appeared that the static constructor wasn’t invoked!even when “Class.Method();” is called! so lets examine it. I have two simple classes… Read More »

default ASP.NET Membership provider on different database

By | January 26, 2009

Every ASP.NET developer should already know about the Membership Provider that ships with ASP.NET 2.0. Configuring it is as easy as opening Visual Studio > select the Web project file > navigate to the Project menu item > and select “ASP.NET Configuration”. Follow the wizard and you are up and running now. But the problem… Read More »

Get On With It!

By | January 16, 2009

When we started gathering requirements from the charity organizations for Bunian, it appeared that there are other kinds of people who benefit from the charity organization; there are “needy families” whose father is still alive but can’t sustain their families, and “students” who can’t afford their study.  So Bunian needs to support all these Beneficiaries… Read More »

Gaza, Starvation For 18 Months And a Massacre Today!

By | December 27, 2008

Update: death toll rate reaches 470 and 2400 injuries, and I will stop counting. After a 20 months siege during which there was no water, food, medicine, gas, oil, and electricity…today Israel thinks that’s not enough…and starts a massacre; 160 dead, 200 wounded by 40 rockets hit Gaza and still going. Photos From the Massacre… Read More »

Importance of Documentation

By | December 26, 2008

  Lately we have decided in Bunian to move on to NHibernate 2.0, and the contributor assigned to the move started out, only to send an email one day after: “THERE IS NO DOCUMENTATION!’.We had errors as a result to the move which couldn’t be fixed without a documentation explaining why this happened. After searching… Read More »

HttpApplication EndRequest Event Invoked Many Times In Single Request?

By | December 14, 2008

The other day I was putting the last touch of a temporary way to manage the NHibernate session (ISession) in Bunian. So part of the task was to bind a method to the HttpApplication EndRequest event (in the Global.asax.cs file) like the following: public override void Init() {        this.EndRequest += WorkContext.NHibernateSessionManager.Instance.HttpRequestEnded; } By doing… Read More »

Travians be Warned…Rapacious is Rising

By | December 12, 2008

I don’t know whether thank or scold my good friend Omar Qadan for introducing me to Travian, a strategy game played online. It’s amazing how a simple,  web-based, HTML-front game can be so rich and vast entertainment wise! It’s a real strategy game where you build villages, resources, armies, embassies, and conduct trading, diplomacy, wars,… Read More »

Introduction to NHibernate Session at Jordev Was Good

By | December 5, 2008

The feedback was very good, and I was glad that everybody liked it. Jordev is really moving ahead, and I am very excited being part of it 🙂 Below is the slide show (it’s an enhanced version from my previous one): [slideshare id=821222&doc=introductiontonhibernate-1228487480885456-9&w=425] Code is the same of the previous one which you can download… Read More »