Tuesday, June 11, 2013

Pigeon's Rock in Beirut Lebanon

You can't visit Lebanon without checking on that Pigeon Rocks in Raouche (also known as the Raouché Rock). This is one of the lebanese natural icons. The bay of Rachoue is very crowded during the day and the night. A large choice of restaurants is available especially lebanese one.


Süleymaniye Mosque - Istanbul, Turkey

The Süleymaniye Mosque is an Ottoman imperial mosque located on the Third Hill of Istanbul, Turkey. It is the largest mosque in the city, and one of the best-known sights of Istanbul.
 
The Süleymaniye was ravaged by a fire in 1660 and was restored by Sultan Mehmed IV. Part of the dome collapsed again during the earthquake of 1766. Subsequent repairs damaged what was left of the original decoration of Sinan (recent cleaning has shown that Sinan experimented first with blue, before turning red the dominant color of the dome).

Bosphorus Bridge - in Istanbul, Turkey

The Bosphorus Bridge, also called the First Bosphorus Bridge is one of two suspension bridges spanning the Bosphorus strait in Istanbul, Turkey; thus connecting Europe and Asia The bridge is located between Ortaköy and Beylerbeyi.


Bosphorus Bridge,  in the night




Sultan Ahmed Mosque - Blue Mosque in Istanbul, Turkey

The Sultan Ahmed Mosque (Turkish: Sultanahmet Camii) is an historic mosque in Istanbul. The mosque is popularly known as the Blue Mosque for the blue tiles adorning the walls of its interior.
It was built from 1609 to 1616, during the rule of Ahmed I. Its Külliye contains a tomb of the founder, a madrasah and a hospice. While still used as a mosque, the Sultan Ahmed Mosque has also become a popular tourist attraction.

Opened: 1616
Address: Sultan Ahmet Mh., Torun Sk No:19, 34400 Istanbul, Turkey
Phone: +90 212 458 4983
Architectural styles: Islamic architecture, Ottoman architecture
Function: Monument, Mosque
 

Monday, May 27, 2013

Friendship

 ختم ہوجاتی ہے اگر بات نہ ہو Friendship  .
فاصلے بھڑ جاتے ہیں تو دوریاں ختم ہوجاتی ہیں.
اہمیت کا اندازہ ددوری سے  ہوتا ہے..


Friendship khattem ho jati hay ager baat na ho.
faslay bhar jatay hain to dooriyan khattem hojati hain.
Ahmeyat ka andaza doori sa hi hota ha.

Wednesday, May 22, 2013

My Fev County / City

I wish I could see

Turkey / Istanbul
Greece / Greek Island
italy/ venice
Italian / Rome
Spain / Madrid
Spain / Barcelona
Turkey / Izmar
Germany / Berlin
Lebanon / Beirut
Egypt / Cairo
France / Paris
UK/ London
Canada /Ottawa
Canada / Toronto
Bosnia / Mostar Old Town


Turkey / Istambol

Istambol in winter




Turkey Izmir
Germany / Berlin

Sunday, May 19, 2013

Javascript Validation for Email

<script type='text/javascript'>
function emailValidator(elem, helperMsg){
    var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
    if(elem.value.match(emailExp)){
        return true;
    }else{
        alert(helperMsg);
        elem.focus();
        return false;
    }
}
</script>
<form>
Email: <input type='text' id='emailer'/>
<input type='button'
    onclick="emailValidator1(document.getElementById('emailer'), 'Not a Valid Email')"
    value='Check Field' />
</form>


SQL Server 2000/2005 show all tables in a Database


This Query gives you all the Tables in Database.


Select table_name FROM Information_Schema.Tables

Javascript Validation isNumeric

<script type='text/javascript'>
function isNumeric(elem, helperMsg){
    var numericExpression = /^[0-9]+$/;
    if(elem.value.match(numericExpression)){
        return true;
    }else{
        alert(helperMsg);
        elem.focus();
        return false;
    }
}
</script>
<form>
Numbers Only: <input type='text' id='numbers'/>
<input type='button'
    onclick="isNumeric(document.getElementById('numbers'), 'Numbers Only Please')"
    value='Check Field' />
</form>
...

Display:


Numbers Only:

Operators Precedence in C#

Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition operator:
For example x = 7 + 3 * 2; Here x is assigned 13, not 20 because operator * has higher precedence than + so it first get multiplied with 3*2 and then adds into 7.
Here operators with the highest precedence appear at the top of the table, those with the lowest appear at the bottom. Within an expression, higher precedence operators will be evaluated first.
Category Operator Associativity 
Postfix () [] -> . ++ - -  Left to right 
Unary + - ! ~ ++ - - (type)* & sizeof Right to left 
Multiplicative  * / % Left to right 
Additive  + - Left to right 
Shift  << >> Left to right 
Relational  < <= > >= Left to right 
Equality  == != Left to right 
Bitwise AND & Left to right 
Bitwise XOR ^ Left to right 
Bitwise OR | Left to right 
Logical AND && Left to right 
Logical OR || Left to right 
Conditional ?: Right to left 
Assignment = += -= *= /= %=>>= <<= &= ^= |= Right to left 
Comma , Left to right