Saturday, October 30, 2010

Günün Sözü

“An individual has not started living until he can rise above the narrow confines of his individualistic concerns to the broader concerns of all humanity.” Martin Luther King, Jr

mp3: Ernie Maresca - Shout! Shout! Knock Yourself Out!

Friday, October 29, 2010

Bir Kadın Bir Erkek

Sahne tasviri: ŞK ve DK öğle yemeği hazırlamakta, arada ceviz yemektedirler. Bu sırada ŞK saksıdaki reyhandan bir yaprak alır ve ağzına atar:


ŞK: Şu hayatta en sevdiğim şey reyhan... Bir de sarımsak!
DK: Ne yani, ben en sevdiğin şeyler arasında değil miyim?!
ŞK: (dumur vaziyette 5 saniye geçer)
ŞK: Böyle durumlarda erkeklerin aklına hiç "peki ben?" benzeri sorular geliyor mudur? Benim gelmiyor. Hatun kişilere bu anlayış hayatlarının hangi aşamasında veriliyor aceba?
DK: Cevizi uzatır mısın?
ŞK: ...

Thursday, October 21, 2010

Wolfram|Alpha

WolframMathematica'nın yaratıcısı olarak biliyorduk uzun zamandır. Chromey calculator ile Wolfram|Alpha'yı duymuştum geçenlerde. Bugün siteye girip inceledim, gördüklerimden ziyadesi ile memnun kaldım! Google'ın empatik ve zeki halini hayal edin, işte o Wolfram|Alpha oluyor.

Tabi eleştirenler de var...

Giderek cevapların değil, soruların önemli olduğu bir döneme giriyoruz çünkü internet bağlantınız varsa herşeyin cevabını bulmak mümkün hale geliyor. Eskiden kafadan hızlı artimetik işlem yapabilenler zeki insan örneği olarak gösterildi. Wolfram|Alpha çağında artık önemli olan doğru sorular sormak, yeni bağlantılar kurmak ve farklı şeyler denemek. Doğru cevaba odaklanmış kültür ve eğitim sisteminden çıkan bireylerin işi zor, zaman yaratıcıların zamanı.

mp3: MFÖ - Tam Ortasındayım

Saturday, October 16, 2010

Installing Ubuntu 10.10 Netbook Edition

I tried to install Ubuntu Netbook Edition on our Samsung N150 laptop which came with Windows 7 Starter Edition. My aim was to have a faster system. Result: After I spent a total of 6 hours, I was not able to install 10.10 but I installed 10.04 successfully. Here is how it went:

Tuesday, October 12, 2010

Regular Expressions

Since I have to parse XML files these days, I thought of this as a good opportunity to make myself familiar with regular expressions.

Regular expression syntax looks very daunting at the beginning. But if your persevere, you will get over your fears in half an hour. Here is an example string that I needed to parse:

<table><tr class="x1">2</tr><tr class="x2">-454</tr></table>

I wanted to extract the numbers 2 & -454. The pattern I used initially was <tr class=".*">(.*)</tr>. However, this returned just a single group which was 2</tr><tr class="x2">454. When I added a question mark between "*" and ")" as <tr class=".*">(.*?)</tr> I got my two groups with 2 and -454 in them.

Explanation: When you don't put the "?", it searches till the last </tr>. When you add "?", you make the string optional, so intermediate </tr>'s are taken into account.

There is a nice webapp called RegExr that you can use to quickly test your expressions (thanks to webapps.stackexchange)

Bonus tip: If you want to display HTML code inside your blog post,
1. you have click on "Post Options" (just below the post edit window) and under "Compose Settings" select "Show HTML literally"
2. use "&lt;" and "&gt;" in place of "<" and ">"

Monday, October 11, 2010

Advanced Dynamics Lecture Notes

I took Advanced Dynamics (ME502) in 1997 from Prof. Dr. M. Kemal Özgören, METU Mechanical Engineering. My lecture notes, including homeworks, exams and my own additions can be found as pdf at the following link on Google docs: Advanced Dynamics Notes and Problems - 1997

Saturday, October 02, 2010

Web tabanlı araçlar

Web tabanlı araçları (google maps, gmail vb.) kullanmakta ustalaşmak isteyenlere önerim web applications sitesindeki sorulara/cevaplara bakmalarıdır. Örneğin google maps'te bana çok lazım olan lat-lon bilgisini gösterme özelliğini aktif hale getirdim biraz önce.

Bonus: Şu uzantıları (extensions) google chrome'uma yükledim, memnunum:
* Chromey Calculator
* Google Quick Scroll
* Search Filter

mp3:
* Mylene Farmer - Innamoramento
* Julio Iglesias - Mammy Blue