Wednesday, December 14, 2011

Friday, November 11, 2011

Daddy to Daughter

One girl intended to getting married to a very prominent person. But her father had reservations.

She said...Dad; you know what… he is a lawyer. And he has this qualification. He has this expertise. And these are his degrees.

And the father said listen my daughter... If he loves you, all these abilities are in your favor..
But the day things go wrong…All this goes against you.. His legal muscle, his financial muscle, his social well-being, recognition in community, his know-how, his contact with the hierarchy … all these things play out against you…So make a CONSCIOUS DECISION on what you want to do!

- Sheikh Sulaiman Moola

Friday, June 17, 2011

SQL Profiler For Express Edition

Microsoft SQL Server family includes free Express edition, that is fully functional, however has some disappointing limitations which prevent from using it in development process. One of them is absense of profiling tools, standard SQL profiler is not included. However, now you have an ability to use express edition for tuning your system.
SQL Server Express Edition Profiler provides the most of functionality standard profiler does, such as choosing events to profile, setting filters, etc. By now there are no analogue free tools.

https://sites.google.com/site/sqlprofiler/

Friday, May 20, 2011

Wednesday, April 6, 2011

Detect if Clicked Inside of a Div Container


// Following code will enable you to detect if a click occurred inside of a particular div through JavaScript.
// An example scenario would be a calander control being displayed as a popup. we need to close the
// calendar when the user clicks outside of the calendar area. If the user clicks somewhere inside the calender
// area the calendar would remain without being closed.

function EscapeClick(e)
{
var divContainer = document.getElementById('id_of_the_containerdiv');
var target = (e && e.target) || (event && event.srcElement);

if( checkParent(target,divContainer)!= true)
{
return false;
}
else
{
//Perform the hiding function , if its a calendar control.
// OR whatever you wish.
}
}

function checkParent(t,parentContainer){
while(t.parentNode)
{
if(t==parentContainer)
{
return false;
}
t=t.parentNode
}
return true
}
document.body.onclick = EscapeClick;