brunotavares.net: ScrapBook

Notes. tech and a few thoughs

Entries in the ‘Tips’ Category:

Raspbmc and Edimax EW-7811Un wifi dongle

Just bough a Edimax EW-7811Un wifi dongle to use on my RaspberryPi. It´s a media center so its running Raspbmc ( which is based on rasbian ). First of all, from my experience, raspberry needs to be powered by an ( at least ) 1A power source for the dongle to work as expected. No drivers needed [...]

Tags: ,

Comments (1)

Quick http server for static files ( for development )

If you have python installed, change to your static file directory and $ cd /files/html/ $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 … This will start an http server on port 8000 that serves all files in the current directory. All the debug is written to console including incomming requests and the [...]

Tags:

Leave a Comment

Test network throughput between two machines

Recently i needed to test the network troughput between my file server and one of the file server clients. I came across iperf, its a client-server command line utility that sends data between the server ( one of the machines of the pair you want to test ) and the client ( the other machine [...]

Tags: ,

Leave a Comment

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:

Comments (1)

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: [...]

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 [...]

Tags:

Leave a Comment