Davide Muzzarelli

Two template filters for Django

I want to signal two new template filters for Django. Precise truncate words by chars It truncates the text when it exceeds a certain number of characters and deletes the last word. Adds ‘…’ at the end of the text, only if truncated. The difference between other similar filters is that this deletes the last [...]

New Smarty plugin for highlighting PHP code

pubblicato it 21.02.2011 in # in english, * livello intermedio, PHP, script completi

I want to signal a new plugin for highlighting PHP code. I wrote this modifier for Smarty, a template engine for PHP that I am using for a long time. The plugin can be downloaded from here. The license is the New BSD. The usage is very simple: {$php_code|highlight}

Apache mod_rewrite and directories protected by password

As a web site developer, when I use a server side script (like a FCGI, PHP, ASP ecc.) I activate the mod_rewrite in order to convert the urls in a pretty format. So, an url like this: http://www.foobar.it/index.php?page=articles …could be converted like this: http://www.foobar.it/articles/ This is very good for SEO and just for the simplicity [...]

Python client for the Nirvanix API

pubblicato it 29.07.2008 in # in english, * livello avanzato, python

I released a Python client for Nirvanix. The project page is: https://www.hosted-projects.com/trac/Design/pub/wiki/Nirvanapi It include the most important API calls, is light (one file and less of 400 lines of code) and have not dependences. The client support right now the following API calls: LoginLogoutCreateFoldersDeleteFoldersDeleteFilesCopyFilesCopyFoldersMoveFilesMoveFoldersRenameFileRenameFolderSideuploadListFolderCreateHostedItemExtractFrames The login is automatic also when the connection drop. List a [...]

GTD in a text file, the Muzzarelli’s version – part 3

pubblicato it 23.01.2008 in # in english, * livello base, GTD, organizzazione

The first and the second parts are available here and here. For dates I’m sticking with Paul Allen‘s recommendation: appointments and milestones goes in your agenda, the things to do that starting at a certain date goes in your tickler file or in your electronic agenda. For the items, in order to remember certain dates, [...]

GTD in a text file, the Muzzarelli’s version – part 2

pubblicato it 14.12.2007 in # in english, * livello base, GTD, organizzazione

Wellcome to the second part of this guide to my GTD system. The first part is available here. In the first part you saw how to write todo items and check them. In this part I talk about projects. A short description: for GTD, a project is a work to do which require more than [...]

GTD in a text file, the Muzzarelli’s version – part 1

pubblicato it 07.12.2007 in # in english, * livello base, GTD, organizzazione

I’m starting to use GTD (Getting Things Done) since September 2006 reading 43 Folders. Before that I read a lot of organization books, tips and articles on internet. When I discovered GTD of David Allen I changed my mind and now I see the results, the best results. I’m a fan of simplicity and I [...]