Tuesday, June 11, 2013

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 

Assignment Operators

There are following assignment operators supported by C#:
OperatorDescriptionExample
=Simple assignment operator, Assigns values from right side operands to left side operandC = A + B will assign value of A + B into C
+=Add AND assignment operator, It adds right operand to the left operand and assign the result to left operandC += A is equivalent to C = C + A
-=Subtract AND assignment operator, It subtracts right operand from the left operand and assign the result to left operandC -= A is equivalent to C = C - A
*=Multiply AND assignment operator, It multiplies right operand with the left operand and assign the result to left operandC *= A is equivalent to C = C * A
/=Divide AND assignment operator, It divides left operand with the right operand and assign the result to left operandC /= A is equivalent to C = C / A
%=Modulus AND assignment operator, It takes modulus using two operands and assign the result to left operandC %= A is equivalent to C = C % A
<<=Left shift AND assignment operatorC <<= 2 is same as C = C << 2
>>=Right shift AND assignment operatorC >>= 2 is same as C = C >> 2
&=Bitwise AND assignment operatorC &= 2 is same as C = C & 2
^=bitwise exclusive OR and assignment operatorC ^= 2 is same as C = C ^ 2
|=bitwise inclusive OR and assignment operatorC |= 2 is same as C = C | 2

Logical Operators

Following table shows all the logical operators supported by C#. Assume variable A holds Boolean value true and variable B holds Boolean value false then:
OperatorDescriptionExample
&&Called Logical AND operator. If both the operands are non zero then condition becomes true.(A && B) is false.
||Called Logical OR Operator. If any of the two operands is non zero then condition becomes true.(A || B) is true.
!Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false.!(A && B) is true.

Relational Operators

Following table shows all the relational operators supported by C#. Assume variable A holds 10 and variable B holds 20 then:
OperatorDescriptionExample
==Checks if the value of two operands is equal or not, if yes then condition becomes true.(A == B) is not true.
!=Checks if the value of two operands is equal or not, if values are not equal then condition becomes true.(A != B) is true.
>Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.(A > B) is not true.
<Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true.(A < B) is true.
>=Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.(A >= B) is not true.
<=Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true.(A <= B) is true.