- ARCHIVE / Tips and Tricks
- Editing PDF metadata on OSx (ie: having the Kindle display the right title/author with pdfs)
One of the cool things you get to do with a Kindle is being able to access your pdf library on the go; however soon enough I ran into the problem of getting all the pdf files to show up with the right metadata, e.g. name, author, creator etc.. I thought that was a simple […]
- Python debugging and Textmate
I’ve never realized that among the many things Textmate does well there’s also python debugging. Well, to be precise Textmate doesn’t do much as it just relies on python’s default debugger, called PDB. Ok, probably PDB isn’t the cutting edge debugger you’re looking for, but it’s worth a try imho. Nothing to install in order […]
- MacBook: getting the backlight to behave the way you want
Ever wanted to switch the keyboard’s backlight on even if there’s daylight? Or to have it dance at the rhythm of your itunes playlist? These applications will solve your problems : and they’re all free! LabTick : allows you to turn on your PowerBook, MacBook or MacBook Pro’s illuminated keyboard in the daylight. iSpazz: plugin […]
- Installing PyGraphviz [tested on OSx Leopard]
PyGraphviz is a Python interface to the Graphviz graph layout and visualization package. With PyGraphviz you can create, edit, read, write, and draw graphs using Python to access the Graphviz graph data structure and layout algorithms. [I was doing this in order to benefit from some of the django-command-extension functionalities] 1. Get graphviz here and […]
- Using jquery’s autocomplete in django admin: how about inlines?
I still haven’t solved this problem entirely, and I’ll tell you why. Well the issue has been addressed by many, and among them probably the first and most influential solution is Jannis Leidel’s ‘An autocomplete form widget for ForeignKey model fields’. Leidel says: [..] my question is, if this could be done on a more […]
- Weird ‘example.com’ urls appearing on my django site…
It all started when I added the get_absolute_url method on my model objects: # includes a mysterious example.com ????? @models.permalink def get_absolute_url(self): return (‘person_detail’, [str(self.id)]) When you do that, the admin site automatically picks it up and adds some nice ‘view on site’ buttons on all of your individual object pages…: The problem is, the […]
- MySQL-Python and Apple OSX 10.5 (Leopard)
UPDATE 30/12/09 : Snow Leopard and most recent versions of MySQL-python have broken the recipe below: you’d better check this blog post for an updated version (it worked for me). In a nutshell, the new method involves using the Macports installation if you’re on Leopard, or specifying your 64-bit architecture during the compile process if […]
- Document.designMode trick..
Here’s a neat trick I got from my friend Geoffroy: open up your preferred Javascript console and type in this command: document.designMode=’on’ Et voila’: your page is directly editable in your browser! Useful for quick visual testing/modifications when giving a demo, for example….
- Bug: OSx 10.5.7 – Macbook sleeps once, freezes second time
Quite a disturbing surprise finding out that your laptop doesn’t work anymore after an OS update. And it makes you think – why the hell haven’t I waited for the rest of the world to test it out first? But the desire to be up-to-date and on top of things is too strong, I suppose. […]
- How to get the iPhone to stop automatic back ups
This is a problem that irritated me so many times – i’m so glad I found a solution now, thanks to this blog post. Basically the issue is that every time you link up your iPhone for syncing contacts or songs the whole damn application library gets backed up automatically. Which obviously takes longer and […]