Customize Default Pelican Theme

I wanted to customize the default theme of Pelican but didn't want to copy single template files or to edit the files in the python path.

Python - Strip tags from a String

This is a little snippet to remove tags from a string to get the only raw textual content. I'm using the Beautiful Soup Library [1] for this job.

Reinstall GRUB2 with arch linux live cd / usb key

So I had to reinstall my Windows 8 in my dual boot system with Arch Linux. After the reinstall I had the default boot manager of Windows back in place of GRUB2.

Pycon 2012 - Stop Writing Classes

Classes are great but they are also overused. This talk will describe examples of class overuse taken from real world code and refactor the unnecessary classes, exceptions, and modules out of them.

Git - Rename a git branch

To rename a branch is very easy to need only the next command for it.

Django - Optional ForeignKey

Do make an optional Foreignkey in Django you have set blank=True and null=True.

Django - Setting Headers in your Response

Today I found a interesting part in the Django Docs about set and remove of Headers in responses .

Django - Reversing admin URLs in Templates

With this Code Examples you can manage to get the right url in the templates where you want.

Django - Pre-Validation with the URL dispatcher

I work currently on a rating feature, to rate some items and I want to do this in one view to handle the methods POST and GET.

Upgrading CyanogenMod or any other Android ROM on an encrypted Nexus 4 device

I got a following problem that I was not be able to update my phone from my recovery mode. I'm using ClockworkMod.

Git - Empthy folder in Git

How do I add an empty directory to a git repository