Posted on Saturday, March 29
This is part 4 of my ongoing series about programming with Eiffel and EiffelStudio. In part 1 we installed EiffelStudio, part 2 introduced the Eiffel vocabulary, and in part 3 we wrote our first Eiffel application.
Today we are going to add a new class and use information hiding in Eiffel.
Photo credit
Continue reading...
Posted on Friday, February 29
I’m using two computers to do my work: A workstation at home and a laptop for working in the train or at University. To synchronize and backup my data, I set up a fileserver.
In this article I’d like to show you, how I replicate my home directory with the help of Unison and rsync.
Photo credit
Continue reading...
Posted on Saturday, January 05
Sille is a pretty small village just outside of Konya. The traditional village houses are mirrored by a rock-face full of cave dwellings and chapels.
If you have the chance to go to Sille, you should time your visit for a mealtime at the terraced Sille Konak. Sille Konak is a restored Greek house featuring a small museum, and providing excellent and reasonable priced home cooking.
Posted on Friday, January 04
I have been doing some web design with blueprintcss lately. If you don’t know blueprintcss, I warmly recommend reading BlueprintCSS 101.
To make certain types of links a little more fancy I was using externalLinks.css from Elements in other templates. I adapted this CSS and use it together with blueprintcss now. Writing
1
2
3
4
5
6
7
8
9
|
<h1>Fancy links</h1>
<p><a href="http://www.ikhono.net">Internal link</a></p>
<p><a href="http://www.gonedivin.net">External link</a></p>
<p><a href="mailto:zaphod@beeblebrox.net">Send E-Mail</a></p>
<p><a href="aim:goim?screenname=zaphod">Send AIM Message</a></p>
<p><a href="http://darcs.haskell.org/yaht/yaht.pdf">PDF document</a></p>
<p><a href="http://www.webbyawards.com/misc/2004WinnersList.doc">Word document</a></p>
<p><a href="http://userfriendly.org/rss/uf.rss">RSS link</a></p> |
produces the following output
Try it out yourself with the demo of fancy links.
To use fancy links with blueprintcss simply download the archive and extract it to the plugins folder. There are two stylesheets you can use in your template: fancy-links.css and fancy-links-compressed.css. fancy-links-compressed.css is the compressed version of fancy-links.css without comments and unnecessary whitespace.
Make sure to replace yoursite.com in the stylesheet with your URL to reset internal links that use absolute URLs. You can also apply the class exempt whenever you don’t want an icon to appear, e.g. for image links.
Of course this is not exclusively for blueprintcss, you can use this stylesheet for any template without using blueprintcss.
Disclaimer: I didn’t really test this with any other browsers than Epiphany 2.20 (Gecko 1.8), Firefox 2.0 (Gecko/20071204), Opera 9.24 and Internet Explorer 7. So I’m not sure how cross-browser compatible this is.
Posted on Tuesday, January 01
Kastamonu is a really nice town and an ideal place for a stopover between Anatolia and the Black Sea. It features many old Ottoman houses, a castle, and several museums and mosques.
Atatürk launched his hat reforms in Kastamonu in 1925. Mustafa Kemal regarded the fez as a symbol of backwardness and banned it.
Posted on Monday, December 31
This is part 3 of my ongoing series about programming with Eiffel and EiffelStudio. See part 1 on how to install EiffelStudio and part 2 for an introduction to the Eiffel vocabulary.
In this part we finally write our first Eiffel application.
Photo credit
Continue reading...
Posted on Sunday, December 30
Göreme is set amid towering fairy chimneys, majestic honeycomb cliffs and cave dwellings. Altough Cappadocia is one of the most visited tourist attractions in Turkey, village life in Göreme manages to happily coexist with a thriving tourism industry.
The region around Göreme was used for shooting “Dünyayı Kurtaran Adam” (Turkish Star Wars). Besides showing the beautiful landscape of Cappadocia it also contains some really hilarious dialogues:
Murat: “Begin your famous whistle which no woman can resist.”
Ali: [Whistles]
Murat: “You whistle it wrong”
Ali: “Why?”
Murat: “Skeletons came instead of women”
And my personal favourite:
Ali: “Do you think you are the man who saves the world?”
Murat: “As much as you think you are a womanizer.”
If you are into bizarre movies, you definitely have to watch “Dünyayı Kurtaran Adam”.
Posted on Saturday, December 29
This is part 2 of my ongoing series about programming with Eiffel and EiffelStudio. See part 1 on how to install EiffelStudio.
Before we start programming, I’d like to introduce some of Eiffel’s basic principles and special vocabulary.
Photo credit
Continue reading...
Posted on Friday, December 28
Sinop is a popular destination for holidaymakers from İstanbul and Ankara. The city takes its name from the legend of Sinope, daughter of the river god Asopus and was the birthplace of Diogenes.
Sinop’s main attractions are the relatively well-preserved fortification and the Tarihi Cezaevi (Old Jail).
Posted on Wednesday, December 26
The object-oriented programming language Eiffel was designed by Betrand Meyer in 1985. The name is an homage to Gustave Eiffel, who among other things built the metal scaffolding of the Statue of Liberty in New York and the Eiffel Tower in Paris.
With Eiffel, Meyer created a tool, which enables developers to construct large software systems out of reusable and easily maintainable modules. This series of articles introduces the programming language Eiffel and describes how to develop applications with EiffelStudio.
Photo credit
Continue reading...
Posted on Sunday, December 23
Anıtkabir is the mausoleum of Mustafa Kemal Atatürk. Mustafa Kemal is the founder and first president of the Republic of Turkey. The mausoleum is located in Ankara on top of Rasattepe (Observation Hill).
Posted on Sunday, December 16
I finally found some time to familiarize myself with RSpec by working through the excellent PeepCode RSpec screencasts (part 1, part 2, and part 3). In his screencasts, Geoffrey is using Growl for displaying notifications of autotest.
I wanted something similar and found a few examples explaining how to use notify-send from libnotify. While this is pretty easy to implement, it is just not flexible enough.
After some more searching I found an article by Derek Berner about ruby-libnotify doing more or less exactly what I want. The only problem was, that I couldn’t get his code working on my computer running Ubuntu 7.10. So I decided to write my own autotest configuration and now enjoy nice autotest notifications.
The status symbol in the notification area additionally shows the last autotest result as a tooltip.
Continue reading...
Posted on Saturday, December 15
Antalya is one of my favourite cities in Turkey. I especially like Kaleiçi, the historical center of the city.
Posted on Monday, December 10
Eiffel is statically typed, which means that type checking is performed during compile-time as opposed to run-time. Therefore it should be guaranteed that no execution of a valid program will ever produce a run-time type failure.
To be a little bit more precise, an Eiffel program is class-level-valid if it satisfies the following properties:
- In every assignment
x := y - either explicit or through argument passing - type of y conforms to type of x.
- In every qualified feature call
x.f(...), f is an exported feature of the class of x.
Without so-called CAT calls, any class-level-valid program would be type-safe. The acronym CAT stands for Change of Availability or Type.
Photo credit
Continue reading...
Posted on Sunday, December 09
Alanya is a seaside resort in the south of Turkey. It has in the past couple of decades been discovered and subsequently conquered by European package tourism, especially from Russia, Germany and Scandinavia.
In my opinion, unfortunately Alanya was not able to keep its identity during this process and most parts of the city look like German or Russian colonies. But there are still some really nice places like Alanya Castla, an old Seljuk fortress, or Kızılkule (Red Tower).