python’ Entries

  • Switching Themes in Gnome Shell

    Update: I originally wrote this app to help changing themes, when there was no other simple way to do this. There are however much better solutions being built atm.

    As many of you may know, Gnome3 is due for release later this year, and with it's release, we will see Gnome-Shell become the new window manager for many Linux distributions based on Gnome. I have played around with Gnome-Shell and I have to say that I really like how it's making everyday tasks something that feels natural and simple. I really look forward to the end …

    Read More …


  • Block comenting python code in vim

    Recently, I find myself wanting to do block commenting for my python scripts more and more often. Sometimes just to hide a piece of code, or disable it while I'm debugging etc.

    Of course, in python the best way to do this is by putting a `#` at the start of the line, but this process can be quite tedious if you have lots of code you wish to comment. I decided to let vim do the work for me.

    I placed the script in my vim plugins folder, and then mapped F6 to the BlockComment() call, …

    Read More …


  • Spam bots halted with Akismet

    Up until the start of this week, I was not really concerned about spam bots finding my site. In my naivity, I believed that my site is small enough to go completely un-noticed by them. I also thought that should any bot find my site, they still have to get past the django forms honeypot.

    A couple of days ago, I found that I was very wrong. Luckilly I caught it early, and quickly disabled comments on by blogs and videos, and deleted the spam. Next my search started for a solution. I read up on Django's comment …

    Read More …