• Python 2.5 is out!

    By Nuno Mariz, on 19 September 2006 @ 14:50
    Python 2.5 is the latest major release of Python.
    As Guido it promised, wsgiref was added to the Python 2.5 Standard Library. For those who don't know what wsgi is, read this.
    You can find what's new in Python 2.5 here
  • Pro Django: Web Development Done Right

    By Nuno Mariz, on 1 September 2006 @ 23:00
    Pro Django: Web Development Done Right
    The first book about Django was released is available for pre-order at amazon. The authors are Adrian Holovaty and Jacob Kaplan-Moss, both involved in the project. This book will definitively be my next buy.
    The first part of the book introduces Django fundamentals like installation and configuration. You’ll learn about creating the components that power a Django-driven web site. The second part delves into the more sophisticated features of Django, like outputting non-HTML content (such as RSS feeds and PDFs), plus caching and user management. The third part serves as a detailed reference to Django’s many configuration options and commands. The book even includes seven appendixes for looking up configurations options and commands. In all, this book provides the ultimate tutorial and reference to the popular Django framework.
  • Terminal colors on Mac

    By Nuno Mariz, on 23 August 2006 @ 23:33
    Trivial but useful.
    If you are using bash, just edit your .profile (explanation):
    # colors
    export CLICOLOR=1
    export TERM=xterm-color
    export LSCOLORS=gxgxcxdxbxegedabagacad  # cyan directories
    export PS1='\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;36m\\]\\w\\[\\033[00m\\]\\$ '
  • Django is the favourite of Guido van Rossum

    By Nuno Mariz, on 8 August 2006 @ 10:03
    Django Project

    Guido van Rossum said in the latest FLOSS Weekly podcast:

    My personal favorite -- and I expect that that will remain a personal favorite for a long time -- is something named Django. ... I highly recommend it.
    Django has been my tool for a new project of mine, has been worth it the time spent learning Django and Python(right now my personal favourite programming language). Django preferred setup is Apache with mod_python, this has make my choice easier because I've been always using Apache with PHP. If you want to give it a try(I recommend it), read the Part 1 of the tutorial. And if you have doubts about performance, read this.
  • Maldivas here we go...

    By Nuno Mariz, on 1 August 2006 @ 08:43
    More info/pictures.
  • Massive Attack

    By Nuno Mariz, on 18 July 2006 @ 11:59
    Love you, love you, love you...
    Massive Attack Ticket
  • Django Admin interface for a Blog in 5 mins

    By Nuno Mariz, on 13 June 2006 @ 21:16
    It's so cool with Django:
    from django.db import models
    from django.contrib.auth.models import User
    class Tag(models.Model):
        name = models.CharField(maxlength=200, core=True)
        class Admin:
            ordering = ['name']   
        def __str__(self):
        ('Draft', 'Draft'),
        ('Published', 'Published'),
    class Post(models.Model):
        author = models.ForeignKey(User)
        title = models.CharField(maxlength=200)    
        summary = models.TextField()
        body = models.TextField()
        created = models.DateTimeField(default=models.LazyDate())
        last_modified = models.DateTimeField(auto_now=True)
        enable_comments = models.BooleanField(default=True)
        tags = models.ManyToManyField(Tag)
        publication = models.CharField(maxlength=32, choices=PUBLICATION_CHOICES, radio_admin=True, default='Published')
        class Admin:
            ordering = ['-created']
            search_fields = ['title']
            list_display = ('title','author', 'created')
            list_filter = ('created','last_modified','enable_comments','publication', 'tags')
        def __str__(self):
            return self.title
    class Comment(models.Model):
        post = models.ForeignKey(Post)
        name = models.CharField(maxlength=100)
        email = models.EmailField()
        website = models.CharField(maxlength=200, blank=True, null=True)
        comment = models.TextField()
        created = models.DateTimeField(auto_now_add=True)
        last_modified = models.DateTimeField(auto_now=True)
        class Admin:
            ordering = ['-created']
            search_fields = ['name']
            list_display = ('post','name', 'created')
            list_filter = ('created','last_modified')
        def __str__(self):
  • Crazy load!

    By Nuno Mariz, on 16 May 2006 @ 22:13
    The picture says all ;)
    Crazy load
  • Busy days

    By Nuno Mariz, on 17 April 2006 @ 21:53
    I'm alive! Besides of the crazy days at my work, i've been working in a personal project that will be released in a couple of weeks. NOTE: Python rules ;)
  • Zend Framework Released

    By Nuno Mariz, on 9 March 2006 @ 21:34
    The much awaited Zend Framework was released!