Sunday, October 29, 2006

Google Docs

This is a test document created by Google Docs and Spreadsheets

I also started to use Picasa. A picture from it:

From Karikatür - Yiğit Özgür

Update: Karikatür links have been fixed.

Wednesday, October 25, 2006

Programmers

DaveNet : Programmers: "I think, in some ways programmers, who live the scientific method, are better prepared for life than non-programmers, but the opposite is often assumed. We all have a visual image of the programmer, but this is just the outer package. A great programmer is a seeker of truth and beauty. Successful programmers know how to ask questions, and they know how to ask the *right* question. You can't go forward until that happens. A programmer is a rigorous scientist determined to coax the truth out of the ones and zeros. There's the beauty."

Men and women

Men and women: "'I never have quite figured out why the sexual urges of men and women differ so much. And I never have figured out the whole Venus and Mars thing. And I never figured out why men think with their head and women think with their heart. And I never yet have figured out how the sexual desire gene gets thrown into a state of turmoil when it hears the words 'I do.'

One evening last week, my wife and I were getting into bed. Well, the passion starts to heat up, and she eventually says, 'I don't feel like it. I just want you to hold me.' I said, 'WHAT???'
So she says the words that I and every husband on the planet dread. She explains that I must not be in tune with her emotional needs as a woman. I'm thinking, 'What was her first clue?' I finally realize that nothing was going to happen that night, so I went to sleep.

The very next day, we went shopping at a big, unnamed department store. I walked around with her while she tried on three different, very expensive outfits. She could not decide which one to take, so I told her to take all three of them. She then tells me that she wants matching shoes worth $200.00 a pair to which I say OK. And then we go to the jewellery department where she gets a pair of diamond earrings.

Let me tell you. She was so excited. She must have thought that I was one wave short of a shipwreck, but I don't think she cared. I think she was testing me when she asked for a tennis bracelet because she does not even play tennis. I think I threw her for a loop when I told her that it was OK. She was almost sexually excited from all of this, and you should have seen her face when she said, 'I'm ready to go to the cash register.'

I could hardly contain myself when I blurted out, 'No, honey, I don't feel like buying all this stuff now.' You should have seen her face. It went completely blank. I then said, 'Really, honey, I just want you to HOLD this stuff for a while.' And just when she had this look like she was going to kill me, I added, 'You must not be in tune with my financial needs as a man.'

I figure that I won't be having sex again until some time after the spring of 2008 but godammit it was worth it."

Search mp3, pdf etc with google

Turn Google into Napster 2000: "The following is a Google search string for searching open web directories containing downloadable Nirvana music files. Substitute the term Nirvana in the search string for any other band of your liking. You can always bookmark the search result for future use:"

-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "Nirvana"

Tuesday, October 24, 2006

Windows XP'de resim edit ve preview ayarları

Resimlerimi (bmp, jpg vb.) edit etmek için Paint'i, preview için ise Windows XP ile gelen Windows Picture and Fax Viewer'ı kullanıyorum. Picture and Fax Viwer meğersem system32 dizininde yer alan shimgvw.dll isimli bir dll'miş! Amma acaip isim...

Nasıl olduğunu bilmediğim biçimde ayarlarım değişmiş ve edit için de, preview için de Photo Editor programı açılmaya başlamıştı. E benim gibi keyfine aşırı düşkün bir n'apar? Hemen ayarları damak tadına göre tekrar düzenler. Ayarlama işini şimdi anlatmaya erindim, aşağıdaki fotodan anlayan anlasın diyorum:


Not: Eğer Advanced butonu görünmüyorsa Restore butonu vardır. Restore'a basınca Advanced butonuna dönüşür:

Üç Boyutlu Grafik

Hayatımda ilk kez anlamlı bir üç boyutlu grafik çizdirdim :P. Zaten MATLAB'da üç boyutlu çizim yaptırmak alışık olmayanlar için karın ağrısıdır, benim bir günümü aldı. Aşağıdaki grafik sayısal integral hatasının zaman adım büyüklüğü ve döngüye göre değişimini göstermektedir:

Monday, October 23, 2006

Do We Really Need Bad Reasons To Be Good?

Do We Really Need Bad Reasons To Be Good?: "Helping people purely out of concern for their happiness and suffering seems rather more noble than helping them because you think the Creator of the universe wants you to do it, will reward you for doing it, or will punish you for not doing it."

RACE - The Power of an Illusion

RACE - The Power of an Illusion: "...two random Koreans may be as genetically different as a Korean and an Italian."

Floating point multiplication

Floating point multiplication does not always have commutativity, distributivity and associativity properties which are valid for real multiplication. In other words floating point multiplication:
* might not be commutative: a*b*c ≠ b*a*c
* might not be distributive: (a+b)*c ≠ a*c+b*c
* might not be associative: a*(b*c) ≠(a*b)*c

This is an example of leaky abstraction i.e. you think you have complete abstraction of an underlying complex operation, but sometimes, the operation leaks through the abstraction and you feel the things that the abstraction can't quite protect you from. In this case you think the real world is nicely abstracted by a finite computer and now and then you are puzzled by the unexpected results like sqr error in deplhi.

I wrote a little demo in Delphi to show that a*b*c ≠ b*a*c:


You can download the source code and the executable to see the action with your own eyes.

Notes:
* The main lesson is to perform operations on numbers that have the same order of magnitude. Order of magnitude difference should be less than significant digits.
* Always try to have the smallest number at the beginning of the multiplication or addition chain to avoid loss of precision as much as possible.
* Put numbers in paranthesis: m*(a+b) is better than m*a + m*b since the latter might result in addition of two large numbers.
* Never do an equality test on floating point numbers, i.e. don’t construct conditionals like “if a==b”. A workaround might be to write a funtion like checkFloatEqual(a,b) in which you check if a and b are sufficiently close (e.g. in machine epsilon neighbourhood).
* Don’t expect that equalities like the following will be true with floating point numbers:
** (x-y) * (x+y) = x^2 + y^2
** sin^2(theta) + cos^2(theta) = 1

For more info, go to wikipedia article about floating point operations.

Sunday, October 15, 2006

Yüzmek ya da yüzmemek

Şubat 2004'ten beri ciddi ciddi yüzüyorum. Ciddi olmasam zaten devam edemezdim çünkü yüzmenin üçte biri eğlence, üçte ikisi sıkıntı. Her hafta havuzda iki tur yüzdükten sonra kendimle şöyle bir sohbet yaparım:

Tembel Şamil: Abi kasma, bu sefer olmayacak galiba, bak nefesin de yetmiyor gibi. Hem ne o her hafta her hafta, bu sefer yarıda kes, çık gez, ye iç be güzelim!

Ciddi Şamil: Bak aslanım, aynısını geçen hafta da dediydin ama bitirdik mi tüm turları? Bitirdik! Hadi canım, dükkanının önünü kapatmayalım. Hadi...

Abartısız her Allah'ın haftası bu oluyor. Varın siz hesaplayın sürekli yüzmenin gereksindiği ciddiyeti.

Peki nasıl motive oluyorum? Vücutlarımız yaklaşık 100 bin yıl önceki şartlara göre tasarlanmış. Yani bol hareket, az gıdalı ve sürekli ölüm tehlikeli zamanlar. O zamanlar bünyenin ekstradan bir de yüzmek için ne zamanı ne de enerjisi var. Peki şimdi? Hayatımızı idame ettirmek için kıçımızı hiç kaldırmasak bile oluyor! E o zaman da atlama zıplamaya göre optimize edilmiş körpe bedenler oluyor sana pörse bedenler... (pörse beden tabiri yazar tarafından uydurulmuştur)

Çeşitli sportif aktivite denemelerinden sonra (koşma, basket, fitness) yüzmenin en akıllıcası olduğuna kanaat getirdim. En büyük avantajı sakatlanma riskinin olmaması (kafayı tabana çarpmak yüzme riski değil, zeka eksikliği ile ilgili). Haftada sadece bir kez yüzüyorum. Bir seans 1 saat 15 dakka. Yani bir haftalık bakım sürem bu kadar. E haftanın %0.7'lik süresi boyunca biraz sıkıntı çekilir diyorum. Zati lay lay lom tarzında olursa pek faydalı bir spor da olmaz herhal...


Ayrıntılar: 1 saat 15 dakka içinde 1000 metre serbest, 500 metre de kurbağalama yüzüyorum. Kassam 2000 metreye çıkarım ama o zaman başım ağrıyor, iyice rezil oluyorum. Gereksiz kasış felsefesinin karşısında dimdik duran biri olarak bu 1000+500 metre bana yeter diyorum.

Kulvar 50 metre boyunda. Serbest yüzerken her üç kulaçta bir nefes alıyor ve 25 metreyi 14 nefeste geçiyorum. Kurbağalamada her kulaçta bir nefes alıyorum, 25 metre için 22 nefes gerekiyor. Nefes sayma işinin iyiliği kafanızı meşgul etmesi ve kulvarı ne zaman yarılayacağınız veya tamamlayacağınız konusunda size fikir vermesi. Özellikle serbestte işe yarıyor çünkü kulvarın yarısından sonra "niye hala kulvarın sonuna ulaşamadım, ulaşmış olmalıydım yav!" demoralizasyonunu engelliyor.

Gördüğünüz gibi sevgili okuyucularım, yüzme diyip geçmeyin, gayet komplike bir iş. Ama gözünüz de korkmasın, ben altı ay boyunca 50 m'yi, hatta 25 m'yi durmadan yüzememiş, "Allaam hiç başaramiiciim" çaresizlikleri yaşamıştım. Hayatta kıymetli herşeyde olduğu gibi çözüm niye yaptığını bilmek ve sebat etmektir.

Saturday, October 14, 2006

Meşhur insanlarla ahbaplık ederim :P

Nordatlı'mız sonunda kendisi ile ilgili Norveççe Caz haberini bloğunda yayınladı. Pek keyiflendik :)

Kitap: Thriving On Chaos

Thriving on Chaos'u 2003 Temmuz'unda okudum, altını çizdiğim bölümler:
"The 3M Rule: Tradition demands that each scientist devote 15% of his time to projects of his own selection." (p.253)

"Substitute pilots and prototypes for proposals." (p.268)

"Move forward on the basis of hard facts and quick testing, not speculation." (p.274)

"So many research methods are designed to say don't take any risks at all." (p.275)

"Put NIH (Not Invented Here) behind you - and learn to copy (with unique adaptation / enhancement) from the best! Do so by aggresively seeking out the knowledge of competitors (small and overseas, not just tired old foes) and interesting noncompetitors." (p.278)

"Any one innovation project, whether in accounting or in new-product development, has low odds of success. We must learn to cherish those with a passionate enough attachment to a new idea to push for it, though must such people will be rough around the edges and most of the projects will fail." (p.296)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man. [George Bernard Shaw, Man and Superman]" (p.297)

"Every middle manager...is not just passively 'coordinating' but is actively seeking ways to force activity that involves multiple functions to occur faster" (p.443)

"You won't reduce the paperwork in a lasting fashion until you remove the underlying cause for it - mistrust and adversarial relations" (p.458)

"In the office...you are shielded from the truth by a bewildering array of devices, prudent or malicious, all designed to 'save' you from trivia and complexity so that your mind can be clear as you confront the 'big picture' decisions. Instead, your mind is all too likely to be empty of all but prepackaged data, leading you to make uninformed decisions." (p.514)

"...if you're well liked, easy to get along with, committed to service, you're still in trouble - because the gems whom you've hired don't want to dissapoint you." (p.515)

"...it is to listen and facilitate, not give commands and inspect." (p.515)

"Only promote people whose greatest pleasure is bragging about the accomplishments of their front line troops." (p.539)

"...the real art for the manager lies in creating challenging but achievable targets." (p.602)

Sunday, October 08, 2006

İyiler ve Kötüler

Yılmaz Erdoğan'dan hoş bir yazı, İyiler ve Kötüler: "Bir iyi için en zor olan, kötüye "sen kötüsün" demektir. Çünkü iyi, utangaçtır. Hırsıza hırsız diyemez. Kötünün yerine utanır, sahtekârın yerine yüzü kızarır, hırsızın yerine yerin dibine geçer. Bu sırada kötüler, sahtekârlar, hırsızlar deli gibi eğlenmektedir. Çünkü onların yerine utanan, sıkılan, yerin dibine geçen birçok iyi insan vardır." Benim için kötülüğün en belirgin göstergesi bilerek ve isteyerek başkalarını maddi/manevi sömürmektir. Mahzuni'nin "yoksulun sırtından doyan doyana" mısrasında bahsettiği başkasını aç bırakıp doyandır. Kendi ahlak anlayışım dürüstlüğü, işini iyi yapmayı ve asıl önemlisi iyi insanlarla dayanışmayı içerir. Yılmaz Erdoğan'ın da dediği gibi iyilerin normal hali utangaçlıktır. Utangaçlığın asil bir duygu olduğuna inanırım. Ama kötüler karşısında değil... Kötülere karşı dayanışma içinde olmak, kötülere kendi yöntemleri ile cevap vermek gerekir. Yani sinsi olmak, yüze gülüp arkadan dolap çevirmek benzeri iyilerin tüylerini diken diken edecek şeyler. Türk filmlerindeki gibi yemini bozup açık hedef olmak kısa vadelidir, uzun vadede iyiyi bitirir. Allah'tan kötü diyebileceğim insan sayısı çok az. %1 gibi bir oran... Bu da zamanımızın %99'unu iyi olarak geçirebiliriz demektir :)

Saturday, October 07, 2006

Trafik Kuralları

Memleketimizde trafik kuralları laubalice uygulanır. Herkes çok akıllıdır, profesyonel şofördür ve kurallardan daha iyisini bilir. Trafik ışıkları ile ilgili her Allah’ın günü gözlemlediğim ihlaller sonucunda şunları yazma ihtiyacı hissetim:

- Kavşağa yaklaşırken hızlanılmaz, yavaşlanır. Çünkü kavşaklarda kırmızı ışıkta geçenler, ambulanslar vs. olabilir.

- Sarı veya yanıp sönen yeşil ışık hızlanma işareti değil, yavaşlama işaretidir.

- Sarı ışık "kornaya bas" manasına gelmemektedir.

Soru: Nanosaniye nedir?
Cevap: Sarı ışıktan sonra kornaya basana kadar geçen süredir :P


- Kırmızı ışık "yol boşsa geçebilirsin" demek değil, dur demektir. Durma yeri de yaya geçidinin ortası değil, yaya geçidinin öncesidir.

- Stop levhası arabanın tamamen durmasını (V = 0) söyler. Araba hareket halinde olamaz. Bu kurala Amerika’da hele hele de pek bir trafiğin olmadığı mahalle aralarında harfi harfine ve herkes tarafından uyulduğunu görünce gözlerime inanamamıştım.


Bunlar temel kurallar. Ülkemizde "akıllı", "uzman" şoförlerin çokluğundan dolayı bu kurallardan çok daha katı kendi kurallarımızın olması ve sürekli tetikte dolaşmamız gerekiyor. Trafik kurallarını musibetle öğrenmek akıllıca değil çünkü geri dönüşü yok. Biri size çarpıp bir tarafınızı kırdığında haklı olmanız sonucu değiştirmiyor.

Boşuna değil araba sahibi olmamam...

Thursday, October 05, 2006

Conference Bike!

Bunu gördüm, aklıma Nordatlı geldi niyeyse ;) Eric Staller's Conference Bike!

Swingle Singers

4 Ekim Çarşamba günü (dün) 21:00'da Anatolia gösteri merkezindeki Swingle Singers konserine gittik.


Konser güzeldi, başarılı bir çalışma olmuş. Elemanların konser programına bakınca "vay be yedi düveli geziyorlar" dedim.

Anatolia gösteri merkezini başarısız buldum. Mekan çok geniş olmasına rağmen koltuklar çok sıkışık. Büyüklüğü nedeniyle sahneden uzaktakiler pek birşey göremiyordur herhalde. Herhalde diyorum çünkü biz en önlerdeki Veri Important Patates koltuklarına konuşlanmıştık ;)

Konser öncesi hoş bir sürpriz de yurttan ayrıldığımdan beri (10 yıl) görmediğim Hakan Yücetürk'le karşılaşmam oldu. Havelsan'daymış, evlenmiş, kendilerininmiş evleri :P


Dün konserde duyup da hemen indirdiğim mp3: Albinoni - Adagio in G Minor. Duygusal bir parça. Özlerken dinlemek daha da efkarlandırıyor...

Tuesday, October 03, 2006

A Pale Blue Dot

A Pale Blue Dot: "Our posturings, our imagined self-importance, the delusion that we have some privileged position in the universe, are challenged by this point of pale light. Our planet is a lonely speck in the great enveloping cosmic dark. In our obscurity -- in all this vastness -- there is no hint that help will come from elsewhere to save us from ourselves. It is up to us. It's been said that astronomy is a humbling, and I might add, a character-building experience. To my mind, there is perhaps no better demonstration of the folly of human conceits than this distant image of our tiny world. To me, it underscores our responsibility to deal more kindly and compassionately with one another and to preserve and cherish that pale blue dot, the only home we've ever known.

Sunday, October 01, 2006

Who Writes Wikipedia?

An interesting insight to the myth that about 500 people write the majority of wikipedia articles. Well, they do a lot of editing, but they supply a tiny bit of the giant that is wikipedia! There is still hope in the masses :)

Who Writes Wikipedia? (Aaron Swartz's Raw Thought): "When you put it all together, the story become clear: an outsider makes one edit to add a chunk of information, then insiders make several edits tweaking and reformatting it. In addition, insiders rack up thousands of edits doing things like changing the name of a category across the entire site -- the kind of thing only insiders deeply care about. As a result, insiders account for the vast majority of the edits. But it's the outsiders who provide nearly all of the content."

By the way, that Aaron Swartz is 20 years old! Look at his writing syle, his productivity! I don't want to resort to genius explanations, but this is a hard case (as it is with the best engineer alive, Erdinç) ;)

Aaron

The wealth of generations - Capitalism and the belief in the future

A very interesting article answering many questions that come up when discussing capitalism and socialism. Refreshing...

JohanNorberg.Net: "if people reap the rewards of their labour, they will use and implement this, to change our world for the better. And in a world where billions are free to create, the chances of a better world are greater than ever. And therefore, we should believe in the future. Not naively, not like determinists thinking that nothing can go wrong. We know that conflicts, terrorism, disease and natural disasters can and will cause enormous damage. But as a recognition that mankind is smart, and that a free flow of information and of markets make us even smarter."