My First Contribution to Django

Comments   4   Date Arrow  December 10, 2008 at 3:50pm   User  by Harry Kalogirou

Hola!

about 2 weeks ago I created a multilingual version slugify for django! You can find the code here.

What is slugify? It the function that gets us from “This is my post” to “this-is-my-post” and its used widely on the web to make human friendly URLs, where the data are not accessed by their numerical ID but by the human readable “slug”.

Django provides a function to automatically create the slug from a phrase. However that only worked for English characters. Any extended character in unicode was ignored, which resulted in empty slugs if the language was other than English.

The “downcode” function I provided maps characters in other languages to English ones. Which allows to use the slygify function that comes with Django!

Technorati Tags: , , , , ,

Tagged   UncategorizedComments   Comments: 4  Add Your Comment



GMail Themes

Comments   0   Date Arrow  November 21, 2008 at 2:40pm   User  by Harry Kalogirou

Google, Inc.Google added themes to GMail! You can access it under the tab “Themes” in the settings.

(It might not be enabled yet for some users)

Very nice! :D

Tagged   UncategorizedComments   Comments: 0  Add Your Comment

Symfony, Ruby on Rails and Django : The unsual review (Part 2)

Comments   4   Date Arrow  November 13, 2008 at 10:40pm   User  by Harry Kalogirou

[This is the second part of this post]

django logo

Getting back from Symfony to Ruby-on-Rails was a big relief! There is no comparison between Ruby and PHP. Anything said on the matter is wasted. Anyway since I had my troubles solved by the hosting company, now I had my first RoR application running on the server. Then I tried to elaborate it, and like immediately found a problem. The problem was internationalization(i18n)! It seems that Rails was not developed with i18n in mind from the beginning and its current version does not support it! You have to hack your way to it. In my mind i18n is a big and necessary feature for web. After all it is the World Wide Web! It turns out that Rails has a major problem with i18n what goes down to the language itself. Ruby does not support unicode for string representation. (actually it does but with the use of a module, not natively). However in version 2.2 of Rails, which is currently the edge version, they included basic i18n support. This meant that I had to use the “unstable” branch of Rails - which I did! Checked out the way i18n support was implemented and found it very basic. This is by design. The developers of Rails want Continue Reading →

Tagged   UncategorizedComments   Comments: 4  Add Your Comment

Symfony, Ruby on Rails and Django : The unsual review (Part 1)

Comments   4   Date Arrow  November 1, 2008 at 10:57pm   User  by Harry Kalogirou

Ruby on RailsI spent the last week trying out web frameworks. I thought it was time to move on from my own hacked PHP scripts to something more elaborate. The first framework I was really eager to checkout was ofcourse the under every stone Ruby on Rails! The main reason was all the talks about it, along with the fact that I was very interested in the Ruby language.

I started by installing Ruby and then Rails on my system, and started following the famous Rails screencasts. I was going to create a Weblog application in 15min! So exciting! Unfortunately it just didn’t happen. Things started to get a bit hairy. It seems that there was a huge difference in the version the screencaster was using the version I was using. In version 2.0 of Rails the creators decided to change the scaffolding technique completely. So now you can’t follow the screencast. It is also very hard to find a tutorial to get you started, not to mention a good tutorial!

All in all I also completely scanned the internet for information but I didn’t find very good sources of info. The main site , other that the screencasts, has the Rails API documentation which is obviously not the way to start! I turned to books. The “Agile Web Development with Rails” I learned about Rails through that, even if that is also for the old version of Rails.

But going all over the internet, I got to find out about Zed Shaw. Continue Reading →

Tagged   UncategorizedComments   Comments: 4  Add Your Comment

The Google When it All Started

Comments   0   Date Arrow  September 26, 2008 at 1:39pm   User  by Harry Kalogirou

Google 1998

I was looking for older versions of my home page in the web archive when it occurred to me that I can’t remember how the Google search page looked when the project started! So I hit www.google.com and traveled back to 1998!

I had forgot how the web looked back in 1998… No CSS, no fancy layouts, images and graphics. Just simple HTML with a few images. Continue Reading →

Tagged   UncategorizedComments   Comments: 0  Add Your Comment

Hackers attack Large Hadron Collider

Comments   3   Date Arrow  September 13, 2008 at 12:48pm   User  by Harry Kalogirou

It seems that hackers started to attack the everywhere-in-the-news-collider! According to this article they successfully managed to crack the cmsmon.cern.ch web site!

The headline of the site sponsored : “GST: Greek Security Team”, which advertises Continue Reading →

Tagged   UncategorizedComments   Comments: 3  Add Your Comment

Picasa with Facial Recognition

Comments   3   Date Arrow  September 2, 2008 at 5:51pm   User  by Harry Kalogirou

According to this post at CNET Google has implemented facial recognition in to the latest version of their photo management software Picasa!

Finally! I always loved to be able to search photos by people, but tagging all of your photos can bring you close to madness!

p.s. Only wait until they use this technology on the search engine… it will be too powerful, and will cause a lot of talking, I think..

Tagged   UncategorizedComments   Comments: 3  Add Your Comment

Videoclip for Goddess released

Comments   0   Date Arrow  September 1, 2008 at 4:04pm   User  by Harry Kalogirou

I am so excited to inform you that the video clip I was talking about earlier was released! As I said the video clip was created to accommodate the release of the song “Goddess” as a single. This single is the first taste from the upcoming album “The Universe Expands” from Dol Theeta.

The whole thing was done in my beloved Blender3D with lots of hard work and patience!

Here is the Vimeo version, but make sure you enjoy the DVD quality version that is included in the actual CD single!

Enjoy!

Continue Reading →

Tagged   Personal · MusicComments   Comments: 0  Add Your Comment

Trying out Twitter

Comments   0   Date Arrow  August 1, 2008 at 10:19am   User  by Harry Kalogirou

Hola, my dear friends! I’m going to give Twitter a try after all… care to follow?

Tagged   PersonalComments   Comments: 0  Add Your Comment

Python Easter Egg

Comments   1   Date Arrow  April 19, 2008 at 1:14am   User  by Harry Kalogirou

Since Easter is coming, here is an easter egg for you :

If you type from __future__ import braces in Python..

You get :

SyntaxError: not a chance

:D :D :D

Tagged   ProgrammingComments   Comments: 1  Add Your Comment