Taylan Karaoğlu


İki X,Y noktası arasındaki Açı ve uzaklık hesaplaması

Tarih: 19:40 on 28/11/2009 Kategori: programming
Lise de geometri dersinde gördüğümüz şeylerin bu yaşta program yazarken gerekmesi ilginç bir konu. İlk başta nasıl ya diye düşünürken konu eski üniversite hazırlık kitaplarını bulmaya kadar gitti.

Sonuçta python ile aşağıdaki şekilde iki nokta arasındaki açı ve uzaklık bulunabilir.

import math

if __name__ == "__main__":
    x1 = 0
    x2 = 0
    y1 = 200
    y2 = 100

    X = x1 - x2
    Y = y2 - y1
    Z = round(math.sqrt(math.pow(X, 2) + math.pow(Y, 2)))
    r = math.atan2(Y, X)
    d = r * 180/math.pi
    if d < 0:
        d += math.pi * 2
    if d < 0:
        d = 360 + d
    print "degree ", d
    print "distance ", Z
    print "saat olarak: ", round(d / 30)

Yorum (yok) | Yorum yaz! | Bağlantı | Etiketler : python,açı,uzaklık,açı uzaklık hesaplaması

Eclipse PDT 2.2 ve WebTools Kurulumu

Tarih: 12:23 on 18/11/2009 Kategori: programming
Eclipse üzerinde webtools'u update ile kurmak bazen sıkıntılı olabiliyor. Archive den kurmaya uğraşmaktan ortalama yarım saatimi yedi.

Eklenmesi gereken update sitelar:

EMF : http://download.eclipse.org/modeling/emf/updates/releases/
GEF : http://download.eclipse.org/tools/gef/updates/releases/
DataTools : http://download.eclipse.org/datatools/updates
WebTools : http://download.eclipse.org/webtools/updates/

Bu Update Siteleri girildikten sonra Webtools altındaki editorler install edilirken sorun çıkarmamaktadır.

Sonrasında PHP Editor olarak PDT kurulumuna geçilebilir.

Öncelikle Update Site dan DLTK kurulur.
DLTK Update site : http://download.eclipse.org/technology/dltk/updates-dev/2.0/

PDT 2.2 Henüz düzgün bir update site sahibi olmadığından http://www.eclipse.org/pdt/downloads/ adresinden Update ile işaretli ortalama 16 MB civarında 2.2.0 Versiyonu çekilir.

Eclipse Install New Software de Add Site kısmında archive gösterilerek bu zip dosyası gösterilir.

Install etme kısmında All In One yerine (myln istemiyoruz içerisinde) Runtime ve altındaki iki PDT SDK check edilir.

PDT Kullanıma hazır duruma gelmiştir böylece.

Yorum (yok) | Yorum yaz! | Bağlantı | Etiketler : linux,eclipse,webtools,datatools,pdt

Something special for me.

Tarih: 18:36 on 15/11/2009 Kategori: hayat

All around me are familiar faces
Worn out places, worn out faces
Bright and early for the daily races
Going nowhere, going nowhere

Their tears are filling up their glasses
No expression, no expression
Hide my head I wanna drown my sorrow
No tomorrow, no tomorrow

And I find it kind of funny, I find it kind of sad
The dreams in which I'm dying are the best I've ever had
I find it hard to tell you, I find it hard to take
When people run in circles its a very, very
Mad world, mad world

Children waiting for the day they feel good
Happy birthday, happy birthday
And I feel the way that every child should
Sit and listen, sit and listen

Went to school and I was very nervous
No one knew me, no one knew me
Hello teacher tell me, what's my lesson?
Look right through me, look right through me

And I find it kind of funny, I find it kind of sad
The dreams in which I'm dying are the best I've ever had
I find it hard to tell you, I find it hard to take
When people run in circles its a very, very
Mad world, mad world, enlarging your world
Mad world


Gary Jules - Mad World

Yorum (yok) | Yorum yaz! | Bağlantı | Etiketler : mad world,gary jules,life,klip


<- Son Sayfa | Sonraki Sayfa ->

python açı uzaklık açı uzaklık hesaplaması linux eclipse webtools datatools pdt mad world gary jules life klip