Authors (0)
Timeline
| Tiergarten (summer sleep)SimonRedfern 5 days, 23 hours ago, 0 Comments | ||
| Where I grew up (picture)SimonRedfern 6 days ago, 1 Comments | ||
| Dead Givaway.. (link)
http://www.youtube.com/watch?v=nZcRU0Op5P4
SimonRedfern6 days, 15 hours ago, 0 Comments | ||
| Django: Setting Headers in your Response (feed)
Today I found a interesting part in the Django
Docs
about set and remove of
headers in responses.
1
2
3
response = HttpResponse () # Created a HttpResponse
response [ 'Cache-Control' ] = 'no-cache' # Set Cache-Control Header
del response [ 'Cac timi1 month, 1 week ago, 0 Comments | ||
| Django: Pre-Validation with the URL dispatcher (feed)
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 .
POST should handle the submit request(rate count) of the item
GET should handle the template with the right item to see the current
user/ global rate
Situation timi1 month, 1 week ago, 0 Comments | ||
| Pycon 2012: Stop Writing Classes (feed)
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.
(This is an imported feed item. You can read the original item at http://Azd325.github.io/blog/2012/03 timi1 month, 1 week ago, 0 Comments | ||
| Empthy folder in Git (feed)
One of my favorite question on Stackoverflow
How do I add an empty directory to a git repository
The solution is:
1
2
3
4
# Ignore everything in this directory
*
# Except this file
!.gitignore
Stackoverflow Question
(This is an imported feed item. Youca timi1 month, 1 week ago, 0 Comments | ||
| Django: Optional ForeignKey (feed)
Do make an optional Foreignkey in Django you have set blank=True and null=True
(This is an imported feed item. You can read the original item at http://Azd325.github.io/blog/2012/06/08/django-optional-foreignkey/ )
timi1 month, 1 week ago, 0 Comments | ||
| Git: Rename a git branch (feed)
You can rename a git branch with follow command very easily
1
git branch -m old_branch_name new_branch_name
(This is an imported feed item. You can read the original item at http://Azd325.github.io/blog/2012/06/28/git-rename-a-git-branch/ )
timi1 month, 1 week ago, 0 Comments | ||
| Reinstall GRUB2 with arch linux live cd / usb key (feed)
So I had to reinstall my Windows 8 in my dual boot system with Arch Linux. After the reinstall I had the default boot manger of Windows back in place of GRUB2.
My way to fix it, was to install on my usb key the current live cd from arch linux .
Burn it to cd or copy it to you usb key with
1 timi1 month, 1 week ago, 0 Comments |

