New website finally online
This website has changed a lot. Today I want to show you which techniques and programs I used to create it. I also want to introduce you to some people, who really inspired me very much during creation.
Software
Of cause, this website is fully based on Python, which I use in combination with the best website framework out there: Django.
External Apps
Django provides the ability to use plugable applications. Hence, this website uses some third party applications. Some third party applications are so common that I just want to shortly name them: typogrify, comment_utils (latest version by jezdez ...
form.onsubmit isn't called by form.submit()
I tried to use a link as submit button, to ensure that the user have JavaScript activated. But onsubmit wasn't executed when clicking the link. First I thought that this misbehaviour was caused by the behaviours.js library. But it didn't take long to see that this awesome lib didn't have anything to do with the problem.
Explanation
After googling a little, I found the reason for this behaviour: the onsubmit-handler is only called, when the user directly interacts (in case you are interested in the why and wherefore take a look at this).
So a ...
Ubuntu on Widescreen, AMD64 as dual-boot
I had a lot of trouble installing Ubuntu (additionally) on my new HP Compaq 6715b- Notebook. I got a lot of help by a friend. He solved that the main problem is the wide-screen of this laptop. Wide-screens aren't supported by the default graphic driver versa. So here is a little How To, to solve this and other problems, like getting Wireless LAN running.
Preparing your Windows PC to dual-boot
Some steps must be taken before you can start installing Ubuntu.
Partitions
First of all, use a partitioning program of your choice to create two (additional) Linux partitions you ...
Freelancers and Django (DRY-Principle)
In Django you are able to write websites in a minimum of time with a great result. Some developers, nevertheless, don't care about structuring their source as good as Django does. This will cost time and nerves. This entry is meant to show how especially freelancers can save time by thinking before programming, what is a good overall rule. ;)
Two main kinds of Django developers
There are developers, who work only on one project. They use Django to be able to concentrate on the real programming and not too boring stuff, like creating comments and so on. I'll ...
Django Development Version on Windows
I work with the Django development version on my (linux) server. But I work with a Windows Operation System, which is very dump when it comes to SVN Checkouts. There are some solutions for the command line. Hey, honestly the windows command line is annoying, isn't it?
TortoiseSVN
TortoiseSVN is a very easy to use tool for windows, which enables you to download the current Django Development Version.
Installing TortoiseSVN
Go to the TortoiseSVN Download page and select the MSI-file, which fits your windows. Installing is very easy:
- Click "Next >" twice
- Deselect "Additionally Icon set", "..(GB)..", "..(US).." by clicking ...
Table of Contents: Django Template Filter
I always loved being able to link back a certain chapter of a webpage. Sometimes it is great to just link to the source code of a weblog entry or any other part of it. To enable the visitors of my weblog to do that I wanted to set up some kind of Table of Contents.
I wanted it to be flexible, so that I can adjust whether the table of contents is shown or not. This makes sense, because some articles have just two headlines and a table of contents with two points looks pathetic. So the users would ...
Django signals vs. custom save()-method
The more I read about Django signals (didn't set up one yet), the more I wonder where the difference between a post_save or pre_save signal and the redefinition of the save-method is.
Background Knowledge
In case you know what signals are and you know what I mean with the redefinition of the save-method, skip the following paragraphs.
Sorry, but what are signals?
Signals are actions, which you can listen to. When you, for example, want to get an email the next time someone writes a comment (commonly some spam-robot, but anyway), then you can write a small piece ...
Adding archives information via Django templatetag
It is quite typical for Wordpress-blogs to have all archives in the sidebar. For example "August 2005, September 2005", all linked back to the archives pages. Django, sadly, doesn't have something by default to generate these archive links dynamically.
There is another reason, why people, should want this ability, even though they don't want these links in their sidebar: the <link rel="archives" />-tags. In case you're not interested in this HTML-tag, just ignore the following paragraphs and skip directly to the source code.
<link rel="archives" />-HTML-Tag
I love one special little HTML-Tag, which isn ...
Markdown with syntax highlighting in Django
These days I wrote my first Django project (you are currently browsing it). Of course I wanted to post entries into this blog with code snippets. To make the reading experiance better for my readers I decided to use a syntax highlighter. You find thousands of them around the WWW.
The first try: syntaxhighlighter with tiny_mce
I decided to use syntaxhighlighter, which is purly JavaScript-based, so I didn't need to anything. (I was glad, because I was, and still am a Django and Python newbee.) The only thing I had to do was to use either of this to ...
Breadcrumbs in Django with Templates
One great feature of a well-structured website is the navigation bar or location bar, better known as breadcrumbs. It always tells the user, where exactly s/he is currently on the website. (On the website you are currently browsing it is located above the footer, called 'Your way'.)
As a matter of fact, this bar never was easy to create. But when you use Django you don't need one single line of code to achieve your own breadcrumb navigation bar.
A Good Template Structure is the Key
Like everything in Django, you have to consider before you do something ...
Problems installing (easy_install) PIL
One very basic Python library is PIL (Python Imaging Library). It is used for image manipulation.
To install packages, I usually use easy_install, but installing PIL using this tool, I got an error:
:~#easy_install PILSearching for PILReading http://cheeseshop.python.org/pypi/PIL/Reading http://www.pythonware.com/products/pilReading http://effbot.org/downloads/#ImagingReading http://cheeseshop.python.org/pypi/PIL/1.1.6No local packages or download links found for PILerror: Could not find suitable distribution for Requirement.parse('PIL')Fortunately, I found someone, who shared my problem, so this is the way ...
My Graduation
ABITUR! This is the German word for diploma. After 13 years of school we finally graduated. Of course we had a big celebration called Abiturball. And yes I just uploaded a lot of pictures of that event. During the Abiturball I held a small speech about the passed 13 years and about our future. I just want to upload this speech here, so everybody can read it:
13 Jahre ist es jetzt her: Die Lese-Fibel, das Schönschreiben, Poesiealben und viiiel Freizeit.
Vor 7 Jahren trafen wir uns dann als Fremde auf dem Immanuel-Kant-Gymnasium. Wir waren auf unsere Klassen gespannt -- wussten ...
All Grown up... Emma Watson.
When I released Emma Watson Empire in February 2002 I had no idea which size it once will have. But due to it's present size I know Emma very good, at least I think so. I kind of watched her growing to the present state. But what is this present state?
I don't know whether you saw Emma lately on TV or on EWE. She really looks grown up. But what I was surprised most of was that she actually is grown up, as she proves in some interviews. She isn't the little eleven year young One ...
American Dream -- A Nightmare?
This poem was written by me for my English class... But I think you'llenjoy it as well.
American Dream - A Nightmare?
— by Martin GeberEvery girl dreams of being one of them,Every boy dreams of being the boyfriend of one of them,Every parent dreams of having them as their children.They live in a huge apartment in New York,They are students of the NYU,They work as producers, actors, managers and authors,They own their own multimillion business.Each talk master loves to interview them,Each TV channel loves them as host of a show ...
Graduation... Just a speech.
My English teacher asked us to write a speech, which we would hold on our Graduation... Of course I loved this idea, and made many people think about the passed years... As it was written as a speech I marked some stressing's, I used while speaking.
Graduates, at first I want to ask you something: How do you feel? I mean, we've been together for seven years -- about half of our life's so far. We went through happy times and through not that happy times. How do you feel?
We met as strangers and leave as friends ...

