Skip to content

Why hack my block ?

This morning, i woke up with an email from a friend who tells me that my blog is hacked !?!

My blog, yep this blog which has its latest entry in September 2009, roughly two years ago.

I was initially ashamed for losing access to my blog; but seriously; who is loser enough to hack an in-active blog ?

They also put a homepage saying me that my security is 0% and they can handle it for me. Basically, they ask for money because they know how to use a public script and someone else’s code to hack my old blog. serious? 

As I was not adding blog entries, i was not updating my wordpress version too. I thought they found my ssh pasword etc. But no i was able to login, they just replaced index files. while checking file system, i found a file called wp.php . trying to open it using ‘vi’ crashed shell so i downloaded it to my computer and opened with textmate. It was a one line php script for file browsing 🙂 After a quick google session, i found out that they used an exploit in phpthumb function to upload a file browser script to my server.

So i said ok, maybe this is a sign for me to start blogging again :). moved my blog to wordpress hosted service (at least they will keep it updated 🙂 )

and my hacker friends; you are so lame but thanks for giving me a reason to go back to blogging 🙂

my multilingual posts are broken, have to fix it now :/

Need quick information? Try Aardvark

[lang_en]

Almost one year ago, with 3 friends from school; we were trying to find a promising project which can be our first startup project. We’ve checked many projects than decided on RealmCrash, which is an MMO gaming framework that is fully customizable with a simple game creator that can be used by anyone who can fill web forms. We implemented the project successfully, won the METU Computer Eng. Dept. Grad. Projects Competition 2009. But we could not continue it since we could not find a venture for it.

On those days, when we were discussing the possible projects, one of my colleagues, Atasay, suggested a project, a real time question ask & answer service. We did not think on it much concluding that this kind of problems have already been solved by offline versions like Yahoo Answers.

But a few days ago via a Techcrunch RSS feed, I’ve been introduced to Aardvark; which is a service that let’s you ask questions that will be answered asap by other online service users. When we thought about this project a year ago, we were thinking of a desktop application but Aardvark has already solved this problem with an awesome tool: IM !. So you can contact Aardvark via msn messenger, gtalk and some other popular instant messengers. Are you away from computer? Don’t worry, Aardvark has a clean and nice iPhone application.

Today I was looking for a new book to read, I’ve asked for a suggestion via Aardvark and within a few minutes, I’ve received two usable answers. This is what I call “good service”.

I think, as the user base grows, Aardvark will be an indispensable tool for our life.

Great job Aardvark team. I want to add some suggestions for the service:

* A public API. I believe this is what they MUST add to their service. For example, web developers may create a site specific Aardvark where users can ask and answer questions about their site and they can query them, display via web etc. I believe there will be many other uses of an API like this.

* A desktop AIR Application (so it can run in any computer). IM is good, but for example I generally keep my IM closed whereas a hidden desktop app may increase the usage of the service. If they provide an API, I can code the AIR app 🙂

* A popularity ranking among users. A usage similar to Yahoo Answers. Basically, question owners should be able to rate answers.

* An interface to query old answers. (it’s better if automatic answers come as I ask the question but I guess it will need a lot of scientific work)

Any other suggestion is welcome in the comments. Btw, I’m not working for Aardvark nor know anyone from the company.

I just liked the implementation of the idea !

Keep working Aardvark Team!

Update:

A post @ techcrunch about a similar service:

http://www.techcrunch.com/2009/09/24/fluther-raises-600k-from-top-valley-investors-for-crowd-sourced-answers/

[/lang_en]

[lang_tr]

Yaklaşık 1 yıl önce, okuldan 3 arkadaş, gelecek vaad eden güzel bir proje bulmaya çalışıyorduk. Bir çok seçenek üzerinde durduk ve en sonunda RealmCrash’i yapmaya karar verdik. RealmCrash, MMO oyunlarını destekleyen, tamamen kişiselleştirilebilir bir oyun çerçevesi. Üzerine yazdığımız basit oyun yaratıcı sayesinde, web’de form doldurmayı bilen herkes kendi oyununu yapabiliyor, oyunlar da Facebook’ta çalışıyor. Projeyi başarıyla hayata geçirdik, ODTÜ Bilg. Müh. 2009 Mezuniyet Projeleri yarışmasında da 1. olduk. Ancak yatırımcı bulamayınca projeye devam edemedik 😦

Projeleri değerlendirdiğimiz günlerde, ekipten Atasay, gerçek zamanlı soru & cevap ortamı sağlayan bir proje önermişti. Bu problemin Yahoo Answers gibi gerçek zamanlı olmayan servisler tarafından çoktan çözüldüğüne kanaat getirerek projenin üzerinde fazla durmamıştık.

Bir kaç gün önce bir Techcrunch RSS beslemesinde Aardvark ile tanıştım ve eski günler aklıma geldi. Aardvark, gerçek zamanlı bir şekilde sorular sorup cevaplayabildiğiniz bir servis. Sorduğunuz sorular o an çevirim içi olan servis kullanıcıları tarafından cevaplanıyor.

Bu projeyi 1 yıl önce düşündüğümüzde bir masaüstü uygulaması yapmayı düşünüyorduk ancak Aardvark takımı bu problemi çok başarılı bir şekilde çözmüş: Anlık mesajlaşma servisleri. Yani MSN Messenger, GTalk gibi servisleri kullanarak Aardvark‘a ulaşabiliyorsunuz. Bilgisayarınızdan uzak olduğunuz anlar içinse mükemmel bir iPhone uygulamaları mevcut.

Mesela bugün Dan Brown, Adam Fawer tarzı bir yazar tarafından yazılmış bir kitap önerisi istedim. Bir kaç dakika içinde 2 adet yazar ve kitap önerisi geldi.

Kullanıcı sayısı arttıkça, Aardvark‘ın hayatımızın vazgeçilemez bir parçası olacağını düşünüyorum.

Tebrikler Aardvark takımı, çok güzel iş çıkarmışsınız!

İlteyi servisle ilgili bir kaç öneriyle bitirmek istiyorum:

* Herkese açık bir API. Bence servislerine bunu MUTLAKA eklemeliler. Mesela bir web geliştirici kendi sitesine özelleşmiş bir Aardvark yaratabilmeli, bunları webde görüntüleyebilmeli.

* Masaüstü uygulaması. Bunun için en uygun seçenek Adobe AIR gibi görülüyor(her yerde çalışşsın). IM varken buna ne gerek var derseniz, mesela ben genelde messengerlarını kapalı tutuyorum ancak görünmez bir Aardvark uygulamasının bana hiç bir yükü olmayacaktır. (API’ı versinler AIR uygulamasını ben yazarım 🙂 )

* Kullanıcıların verdikleri cevapların puanlanmasını sağlayan bir rating sistemi. Yahoo Answers benzeri bir şey güzel olacaktır.

* Eski cevapların sorgulanabileceği bir arayüz. Hatta soruyu sorunca cevapları otomatik arayıp getirse daha güzel olur ancak bunun için bayağı bir bilgisayar bilimi çalışmak gerekir.

Yorumlarda öneri eklemek serbest. Bu arada ne Aardvark‘ta çalışıyorum ne de orada çalışan birini tanıyorum. Sadece servis daha önce düşündüğümüz bir servisti ve çok başarılı bir şekilde hayata geçirilmiş.

Güncelleme (25.09.09)

Benzer bir servis hakkında techcrunch’ta bir yazı çıktı:

http://www.techcrunch.com/2009/09/24/fluther-raises-600k-from-top-valley-investors-for-crowd-sourced-answers/

[/lang_tr]

[lang_tr]

Etrafımdaki bir çok arkadaşım bilir, İzmir’e karşı ciddi bir sempati beslerim. İnsanı, ortamı, denizi vs.’si ile hayatta gördüğüm en güzel şehirlerden biri. Hatta İzmir’e yerleşmeyi de çok istiyorum ancak meslek el vermiyor.

Benim de bu sempatime karşılık verircesine, İzmir’de bana jestler yapıyor sanırım.

Bugün yeğen Alp’le Ege Park’a gittim, aslında yürüyüş mesafesi ancak ufaklık küçük olduğundan taksiyle gittik. Dönüşte yürüyelim dedim ancak 500mt’den sonra bizimki kucağa çıkıp uyuyunca yol zorlamaya başladı, bir yandan yürürken; arada bir de arkaya dönüp taksi bakıyordum.

Derken bir midibüs yavaşladı, sürücünün bize baktığını gördüm; biraz ilerde durdu ve geri gelmeye başladı, ben de adımlarımı hızlandırdım. Midibüs boştu, içinde 30’lu yaşlarda bayan tombul bir şöför, “ne tarafa gidiyorsunuz” diye sordu, “Koçtaş” dedim (ev orda), “atlayın hadi” dedi.

Kadın o kadar rahat ve içtendi ki, yanımda Alp varken çok çekineceğim bir durum olmasına rağmen atladım hemen.

O sırada Alp uyandı, “oğlum bak sayende bedava ulaşım bulduk” dedim, kadın güldü. “Öyle oldu valla hayatta almazdım seni” dedi ve sonra ekledi, “yok canım o işin şakası, adı neydi yakışıklının ?”

Kısa bir sohbetten sonra, “Allah yolunu açık etsin kardeş” diyerek bizi koçtaşta indirdi.

İnsanlara yol sorduğunuzda yalan söylemeyi eğlence bilen bir şehirde (ankara) 8 yılımı geçirdikten sonra, bunların yaşandığı bir şehrin var olduğunu görmek mutlu ediyor insanı ve tabiki daha da bağlıyor.

Ah bir de İzmir memleketin silikon vadisine dönüşse, dadından yinmicek…

[/lang_tr]

[Personas | Metropath(ologies)]Your life map online

[lang_en]

Today, I’ve found sth really nice, called Personas.

You give it your name (or any name of course), it searches the web using sophisticated natural language processing, groups the result data with some clever logic and gives you your online portrait.

It’s built by Aaron Zinman @ MIT Media Lab.

Go try yours: http://personas.media.mit.edu/personasWeb.html

And here is mine:

[/lang_en]

MySql drove me crazy!

Today, I was trying to optimize some mysql query in our experiment framework.I came across to two query explains that I cannot understand.

Here are the two queries:

explain select * from TABLE_NAME where created > ‘2009-08-09 19:10:44′

explain select * from TABLE_NAME where created > ‘2009-08-09 20:10:44

′and here are the explain results:

mysql> explain select * from TABLE_NAME where created > ‘2009-08-09 19:10:44′;

+—-+————-+——————+——+—————+——+———+——+———+————-+

| id | select_type | table            | type | possible_keys | key  | key_len | ref  | rows    | Extra       |+—-+————-+——————+——+—————+——+———+——+———+————-+

|  1 | SIMPLE      | TABLE_NAME | ALL  | ou_created    | NULL | NULL    | NULL | 1226122 | Using where

|+—-+————-+——————+——+—————+——+———+——+———+————-+

1 row in set (0.00 sec)

mysql>explain select * from TABLE_NAME where created > ‘2009-08-09 20:10:44′;

+—-+————-+——————+——-+—————+————+———+——+——–+————-+

| id | select_type | table            | type  | possible_keys | key        | key_len | ref  | rows   | Extra       |+—-+————-+——————+——-+—————+————+———+——+——–+————-+

|  1 | SIMPLE      | TABLE_NAME | range | ou_created    | ou_created | 4       | NULL | 206400 | Using where |

+—-+————-+——————+——-+—————+————+———+——+——–+————-+

1 row in set (0.00 sec)when you change the parameter you search, mysql changes query plan in a wrong way,interesting, isn’t it ? (fyi, my mysql version is: 5.0.51a)

Besiktas JK's Supporters and Michael Jackson

[lang_en]Besiktas JK’s supporter group (carşı) has done yet another awesome thing.After the death of Michael Jackson, they’ve prepared a banner written that:”God forgive MJ’s soul who is a great Besiktas supporter and lived half of his life black and the other half white.”
Btw, this banner has no racist content, it’s just for fun, and really fun for a turkish person. 🙂
Fyi, the colors of Besiktas are black and white[/lang_en][lang_tr]Çarşı yine yaratıcılığını gösterdi, efsane MJ’in arkadasından güzel bir pankart hazırladı.Tebrikler![/lang_tr]Carsi & MJ

turkish newspaper headlines

[lang_tr]memlekette ucusan salak sapan gazete manşetleri üzerine güzel bir kara mizah.[/lang_tr][lang_en]a gallows humor about Turkey’s current media… Sorry, in turkish…[/lang_en]

Weird things from the history of networks

[lang_en]Last thursday, I had the last mid-term exam of my undergrad life, and first time in my life I decided to read the course book. I eventually caused my failure from the exam since reading 260 pages in 2 days was impossible. And see what I’ve focused in the book 🙂 Here are some interesting foot-prints from the history of computer networks:cell phone networks

Finding locations high in the air to place base station antennas is a major issue. This problem has led some telecommunication carriers to forge alliances with the Roman Catholic Church, since the latter owns asubstantial number of exalted potential antenna sites worldwide, all conveniently under a single management

Invention of automatic switch:

In the early days of the telephone, the connection was made by the operator plugging a jumper cable into the input and output sockets. In fact, a surprising little story is associated with the invention of automatic circuit switching equipment. It was invented by a 19th century Missouri undertaker named Almon B. Strowger. Shortly after the telephone was invented, when someone died, one of the survivors would call the town operator and say ‘Please connect me to an undertaker.” Unfortunately for Mr. Strowger, there were two undertakers in his town, and the other one’s wife was the town telephone operator. He quickly saw that either he was going to have to invent automatic telephone switching equipment or he was going to go out of business. He chose the first option.For nearly 100 years, the circuit-switching equipment used worldwide was known as Strowger gear. (History does not record whether the now-unemployed switchboard operator got a job as an information operator,answering questions such as ”What is the phone number of an undertaker?”)

Value of copper:

At one time, 80 percent of AT&T’s capital value was the copper in the local loops. AT&T was then, in effect, the world’s largest copper mine. Fortunately, this fact was not widely known in the investment community. Had it been known, some corporate raider might have bought AT&T, terminated all telephone service in the United States, ripped out all the wire, and sold the wire to a copper refiner to get a quick

payback.

Cadillacs going crazy

Sometimes omnidirectional radio is good, but sometimes it is bad. In the 1970s, General Motors decided to equip all its new Cadillacs with computer-controlled antilock brakes. When the driver stepped on the brake pedal, the computer pulsed the brakes on and off instead of locking them on hard. One fine day an Ohio Highway Patrolman began using his new mobile radio to call headquarters, and suddenly the Cadillac next to him began behaving like a bucking bronco. When the officer pulled the car over, the driver claimed that he had done nothing and that the car had gone crazy. For sure nobody believes him but in that year, it becomes a usual event in Ohio Highway. Later GM engineers realize that the wireless system that Ohio Highway Patrol use affects Cadillac’s computer controlled break system.

Were the king blessed by god?

A case could be made for redefining the foot as the distance light travels in a vacuum in 1 nsec rather than basing it on the shoe size of some long-dead king.

Does humankind have to solve any problem that he faces with an invention?

It is noteworthy that modern wireless digital communication began in the Hawaiian Islands, where large chunks of Pacific Ocean separated the users and the telephone system was inadequate.

[/lang_en][lang_tr]Geçen perşembe lisans eğitimimin son vizesini verdim ve hayatımda ilk defa da bir sınava da kitabını okuyarak çalışayım dedim. E tabiki alışmadık dötte don durmadı, 260 sayfayı 2 günde okumaya çalışınca sınav bir facia oldu. Ama bakın bilgisayar ağları tarihinde ne enteresanlıklar olmuş:cep telefonu ağları

Yüksek tepeler bulup buralara devasa antenleri yerleştirmek ciddi bir sorundu.  Bu problem bazı telekomunikasyon şirketlerinin Roman Katolik Klisesi ile işbirliği yürütmesine neden oldu. Ne de olsa dünya üzerinde bu antenlerin yerleştirilebileceği bir çok alan bu klisenin kontrolü altındaydı.

Otomatik telefon anahtarı

Telefon ağları ilk kurulduğu zamanlarda birisini aramak istediğinizde telefonu açıyordunuz, karşınıza çıkan güzel sesli bayana görüşmek istediğiniz kişiyi söylüyordunuz, o da sizden gelen hattı gerekli kişinin hattına bağlayarak konuşmanızı sağlıyordu. Ancak otomatik anahtarların icadi enteresan bir hikayeye dayanıyor. 19. yüzyılda cenazecilik yapan dostumuz Almon B. Strowger’ın yaşadığı kasabada sadece 2 cenezeci bulunuyordu ve diğer cenazecinin eşi telefon ofisinde çalışıyordu. Hal böyle olunca kim ofisi arayıp bana bir cenazeci bağlayın derse o da kocasını bağlıyordu. Almon’un otomatik anahtarı icat etmekten başka bir çaresi kalmamıştı, ya da kendisine başka bir meslek bulacaktı(ozamanlar elektronikçilik pek revaçda değilmiş sanırsam). O da oturdu otomatik anahtarı icat etti, işini kurtardı. Bu olaydan sonra yaklaşık 100 yıl boyunca otomatik anahtarlar ‘Strowger’ adıyla anıldılar. Telefon ofisinde çalışan kadının bilgi servisine mi geçtiği yoksa işini mi kaybettiği konusunda bir bilgimiz yok.

Bakırın değeri

Bir zamanlar AT&T’nin mal varlığının %80’i yerel ağ kablolarında kullandığı bakırdı. Efektif olarak bakıldığında AT&T o zamanların en değerli bakır madeni oluyor. Neyseki aç gözlü amerikan yatırımcılarıbu durumun farkında değillerdi, eğer öyle olsalardı içlerinden biri AT&T’yi satın alıp tüm telefon hatlarını iptal eder, kablolardaki bakırı bir geri dönüşümcüye satar ve AT&T’ye verdiğinden daha fazla parayı kazanabilirdi.

Çıldıran Kadillaklar

Bazen tek yönlü radyo iyidir bazen kötü. 1970’lerde General Motors yeni model Kadillak’larını bilgisayar kontrollü frenlerle donatmaya karar veriyor. Yaptığı iş basit, şöför frene bastığı zaman bilgisayar frenleri ara ara sıkıp ara ara bırakıyor böylece tekerlekler kilitlenmemiş oluyor. Günlerden bir gün, Ohio Otoban Polislerinde biri merkezi aramak için yeni yerleştirilmiş radyo sistemini kullanıyor. Polisin merkeze aramayı yapmasıyla birlikte yanında giden son model Kadillak çılgına dönüyor. Tabi hemen sağa çektiriyorlar adama, adam suçsuzum araba sapıttı diyor, gülüyorlar. Sonra bu olay Ohio Otobanında sıkça görülen bir olay haline gelince anlaşılıyor ki Polis merkezinin kullandığı radyo frekansı Kadillak’ın bilgisayar sistemini etkiliyormuş.

Kutsanmış kral

 1 foot’u yıllar önce ölen bir kralın ayak boyuyla adlandırmak yerine yeni bir tanım getirip, ışığın 1 nano saniyede aldığı yol olarak adlandırmak çok daha mantıklı olacaktır.

İnsanoğlu karşılaştığı her problemi icat yaparak mı çözmek zorunda?

Modern kablosuz iletişimin temeli Hawai Adaları’nda atılıyor. Hawai’li dostlarımız Pacific Okyanusu’ndaki bir çok adayı kablolarla birbirlerine bağlamanın imkansız olduğunu görünce bu işi kablosuz yapmaya karar veriyorlar o da mevcut kablosus iletişimi doğuruyor 🙂

[/lang_tr]

A nice shell command to diff two folders

[lang_en]

Today, while working, I had to take “diff” of each folder and found the following command. Works perfectly on macOSx shell, should work in linux shell too.

diff -qr dirA dirB | grep -v -e ‘DS_Store’ -e ‘Thumbs’ | sort

here, DS_Store and Thumbs are two folders you want to exclude. The output looks like:

Files ./dirA/File1 and ./dirB/File1 differ
Files ./dirA/File2 and ./dirB/File2 differ

[/lang_en]

[lang_tr]

Bugün çalışırken 2 farklı klasorun farkını almam gerekti ve aşağıdaki scripti buldum. MacOSx  kabuğunda düzgün çalışıyor, linuxta da çalışmalı.

diff -qr dirA dirB | grep -v -e ‘DS_Store’ -e ‘Thumbs’ | sort

burada DS_Store ve Thumbs karşılaştırmaya katmak istemediğimiz 2 dosya. Şöyle bir çıktı alıcaksınız:

Files ./dirA/File1 and ./dirB/File1 differ
Files ./dirA/File2 and ./dirB/File2 differ

[/lang_tr]

Become a different person

[lang_en]

While surfing on facebook, I found a cool website where you can very quickly put yourself in cool photos.

FACEinHole.com

it’s easy, you choose a photo where the face is blank, than upload your own photo or have a webcam shot. then you become a new person 🙂

nice and cool website to have fun, it is really easy to use which made me write this post,

good job faceInhole !

here what they do:

example

[/lang_en]

[lang_tr]

facebookta dolaşırken eğlenceli bir siteye denk geldim, faceInhole (boşluktaki yüz)

işlem çok basit, yüz kısmı boş bırakılmış yüzlerce fotoğraftan birini seçiyorsunuz, sonra bilgisayarınızdan yükleyeceğiniz bir resimle veya web-cam kullanarak oraya kendinizi yerleştiriyorsunuz.

basit ve çok kullanışlı, bir göz atın derim ben çok eğlendim 🙂

faceinhole.com

örnek

[/lang_tr]