Friday, September 30, 2011

A Letter to God

A letter to God

From the land of griefs
Date: we are still in mourning

Our Father in Heaven, Lord of the universe
A thousand fold we believe in you
From the fields of suffering, these words are sent to you
From the foot of the mountains that have been starved
From the peaks whence the eagle in despair hath fallen on a thorny cluster and died
From the seas which no longer have islands
Only the sails of painful memory
From an embryo with it's life shackled
That is all this letter is about

Our Father in Heaven, oh lord whose orphans are fed up with prayers
Our Father in Heaven, years it has been now and still we pray to you
Our Father in Heaven, we are still starving and naked
Our Father in Heaven, we are still the remains of refugees

S. Al Kassem

Thursday, September 01, 2011

On a lighter note....

I'm always happen when I can take....


if(!isset($category_id) || !(int)$category_id>0)
{
$category_id=0;
}

if(!isset($product_id) || !(int)$product_id>0)
{
$product_id=0;
}

if(!isset($remove))
{
$remove="";
}

if(!isset($active))
{
$active="";
}

if(!isset($inactive))
{
$inactive="";
}

if(!isset($action))
{
$action="";
}


...and condense it down too...


foreach(array('remove', 'active', 'inactive', 'action') as $v)
{ if(!isset($$v)) { $$v=''; } }


Writing code is therapeutic. :-)