techno surprises

July 19, 2007

Translating domain_name to ip_address

Domain names can be translated its related ip addresses.

In windows getting ip_address from domain_name

  1. Click on START menu
  2. Click on RUN and type ‘ cmd
  3. then write ping yahoo.com
  4. and get the ip addres of yahoo

In any UNIX based system getting ip_address from domain_name

  1. Run SHELL client of operating system
  2. type command : ping yahoo.com
  3. and get the ip addres of yahoo

In PHP(web based programming language) getting ip_address from domain_name

<?php
$ip = gethostbyname(‘yahoo.com’);

echo $ip;
?>

July 11, 2007

types of numbers

There are 5 basic types of numbers avaliable. Here is some examples about numbers and their limitations.

Natural Numbers

They are also known as counting numbers. They are starting with 1 and goes to infinity…

Examples: 1, 2, 3, 4, 5, … , 10, 11, 12, … , 10000, … , 123123123123, and so on

In C/C++/C#/ JAV# : they can be expressed as short int, int, long int types.

Integers

They do not include commos. These numbers can be both negative and positive. So they could be as negative integers like -5, – 9,-123, … -infinity and some of them called as positive integers like 1, 3, 5, … , 12132129. Moreover integers include number ZERO(0).

So as a genereall example: -999999….999999999, ……….., -3, -2, -1, 0 , 1, 2, 3, 4, ……………., 9999999999…9999999

In C/C++/C#/ JAV# : they can be expressed as short int, int, long int types.

Rational Numbers

They should be expressed as a fraction with an integer and non-zero(we do not have to mention non-zero actually because natural numbers should be non-zero) natural numbers denominator.

Examples: 6/4, 7/4, 3/1 , 12123/43

In C/C++/C#/ JAV# : denominator and numerator both can be expressed as short int, int, long int types but result should be expressed with double or float type.

Real Numbers

They includes all measuring numbers such number pi, sequare root of any positive number, and so on…

They can generally used with decimal notation and when you want pronounce it we say to ‘.’ point. Forexaple, 7.53 : Seven point fifty three.

Example: 7.3, 5.2, -12132.3412, -39.4, -23.44, 992.32

In C/C++/C#/ JAV# : real numbers should be expressed with double or float type. You can also use both short and long prefixes.

Complex Numbers

Some negative numbers have a square root, or if a number is expressed like a+bi which has ‘i‘ an imaginary unit.

Example: 5+2i, -5+2i, -5-2i, 5-2i, 9+7i, 1+3i, 4-6i

Also, you can searc wiki pedia as numbers or number. Thank for reading…

July 7, 2007

What a day, 7 7 7, what does it mean

Filed under: 2007-07-07, 777, today — Mustafa Turan @ 5:32 pm

Yes, you are right I am talking about todays date 2007/07/07.

What 777 means for unix users!!

777 is chmod which gives permission for reading and writing for both group users and public users to directory.

What 777 means for who born today!!

It is a memorical birthday. Happy birthday for them :).

What 777 means for wedding!!

They are just married 🙂 Good day for wedding who always forgetting dates espicially wedding dates for woman 😀

What 777 means for today!!

it is just a classical date format.

What 777 means for 666!!

it comes after 666 which means devil 🙂

Using Google Translate is smart idea

Google Translate: A very usefull tool for webmasters, internet surfer and people who wants to translate some article or a word, a phrace to another language.

Before Reading my article firstly please discover yourself http://www.google.com/translate_t

Now I can write for anyone returns back 🙂

If you know English, we can say you know Arabic, Chineese, French, German, Italian, Japanese, Korean, Portuguese, Russian and Spanish too with GOOGLE TRANSLATE. May be new translations will be added for other language.

Now, lets consider what can we do with google translate.

First of all, as a webmaster we need some documents for reading espicially German and Russian documents, we are just clicking smart google transtlate buttons and now it is in English. Moreover who wants to design a web page in multi language it is very smart idea using google translate tools.

For students, it is very very very usefull tool for making researches, translations, and prepering documents in other languages. Ofcourse, after translation somebody should check grammer.

After search engine results, we can see some unknown words and sentences, now we have a chance to translate it to English or to our local language and seeing result more clearly.

Now lets see this article in different languages:

Spanish : http://www.google.com/translate?u=http%3A%2F%2Fmustafaturan.wordpress.com%2F2007%2F07%2F07%2Fusing-google-translate-is-smart-idea%2F&langpair=en%7Ces&hl=en&ie=UTF8

Russian : http://www.google.com/translate?u=http%3A%2F%2Fmustafaturan.wordpress.com%2F2007%2F07%2F07%2Fusing-google-translate-is-smart-idea%2F&langpair=en%7Cru&hl=en&ie=UTF8

German :  http://www.google.com/translate?u=http%3A%2F%2Fmustafaturan.wordpress.com%2F2007%2F07%2F07%2Fusing-google-translate-is-smart-idea%2F&langpair=en%7Cde&hl=en&ie=UTF8

July 4, 2007

font style became suddenly italic

Filed under: answers, control panel, font style, fonts, questions, technology, windows, windows xp — Mustafa Turan @ 7:31 pm

Today, I had a problem about my font style. When I open web pages I saw that all web pages are viewing ITALIC with both IE6.0 and Firefox 2.2.

I thought that I have a configuration problem. Then I checked IE setting from control panel and I set default fonts.

Internet Properties Window

Then I applied the following settings.

Internet Properties - Fonts Section Window

But appling this setting could not solve my problem, Then I seeked the web but I could not find answer, I espicially checked microsoft.com support pages, but there is not really. Just http://www.microsoft.com/windowsxp/using/accessibility/nospectextfont.mspx is smiliar what I have done.

Then I opened a new windows user account, and I had still the same problem about fonts.

After 9 hours passed, I remembered that I had changed the ‘FONTS’ folder, seeing italic fonts. And I found the font type Arial and Times News Roman on the web, and re add it to FONTS folder. Then I saw that everythings is OK, my fonts are normal.

Hope, this will help others having the same problem.

Create a free website or blog at WordPress.com.