brunotavares.net: ScrapBook

Notes. tech and a few thoughs

Entries in the ‘Tips’ Category:

Google Analytics data from multiple profiles

If you ever need to get a integrated data report for multiple profiles you can get one here: http://gaevolution.appspot.com
Simple webinterface that aggregates multiple profiles from your GA account and produces a tabular report.
.. or you can always script arround the Data API

Tags:

Leave a Comment

Finding your Ubuntu version

$ cat /etc/lsb-release

Tags: , ,

Leave a Comment

Cloning VirtualBox disk images

If you hope that a simple copy will make it.. it doesn’t. Apparently the unique disk indentifier (UUID) is embbeded in the image file.

$ VBoxManage clonevdi sourceimage.vdi destimage.vdi

Leave a Comment

Visual Diffs

For some time now i started to notice the amount of time i wasted in solving version conflicts. The GNU diff works great with small change sets, but having a visual diff tool helps a lot when you’re dealing with long files with lots of diffs.
I used several visuall-diff-editors whit the several version-control software [...]

Tags: , ,

Leave a Comment

Maintaining your namespace clean in Perl

Some modules like XML::Simple export some functions by default into your namespace. Normally you don’t want this functions since the module has a OO interface; so, how to avoid the auto-export from taint your namespace ?
You can, at include time, be careful and explicitly tell the module not to export anything by doing this:

use XML::Simple [...]

Tags:

Leave a Comment

If you use Live HTTP Headers for Firefox …

… you really should ckeck out HttpFox : https://addons.mozilla.org/en-US/firefox/addon/6647
It provides all the information that Live HTTP Headers do (and more, like request time tracking ) but with better organization.

Leave a Comment

svn and python

I still use svn for some projects, some of them are python.
Python pre-compiles the python files, so, the first time i run one of this projects i end up with a bunch of .pyc files that i don’t want to add to the repository.
Since svn doesn’t know this files the svn status generates a [...]

Tags:

Leave a Comment

Isolated Python environments.

I’ve a lot of code that depends on different versions of the same library, its quite hard to maintain the different versions installed in their specific dirs along with all their dependencies without tainting anything else.
To be able to run all of this code in one machine i’ve to make a lot of manipulation to [...]

Tags:

Leave a Comment