Easy and secure VPN alternative

Having lived for a year in a flat that is owned by a University, I was using their internet connection, of course - and damn, will I miss having sustained 8 megabytes/sec downstream (yes, that’s megaBYTES, not megaBITS). But not everything was roses: there were lots of restrictions in place, which I could understand, since it’s a university network with several thousands of users and there are always those who like to misbehave. »

Author image Raúl Santos

JPEG, Zlib and Freetype not available for PIL in a virtualenv in Ubuntu

When installing PIL, the Python Imaging Library, in a virtualenv in Ubuntu with pip install PIL, the installer reports that there’s no JPEG, Zlib or Freetype2 support available, even though I had installed all the corresponding packages. It turns out that the PIL installer looks for the libraries in /usr/lib/ but in Ubuntu they are in /usr/lib/i386-linux-gnu/ or /usr/lib/x86_64-linux-gnu/, depending on the architecture you use. A quick and dirty solution for this is to create symlinks to those libraries in /usr/lib/, like this: sudo ln -s /usr/lib/i386-linux-gnu/libfreetype. »

Author image Raúl Santos

JPEG, Zlib e Freetype indisponíveis ao instalar a PIL num virtualenv no Ubuntu

Ao instalar a PIL, a Python Imaging Library, num virtualenv no Ubuntu com pip install PIL, o script de instalação diz que não tem suporte para JPEG, Zlib e Freetype2, apesar de eu ter instalado todas as bibliotecas correspondentes. Acontece que o script de instalação da PIL procura as bibliotecas em /usr/lib/ mas no Ubuntu elas estão em /usr/lib/i386-linux-gnu/ ou /usr/lib/x86_64-linux-gnu/, dependendo da arquitectura usada. Uma solução rápida e não muito elegante é criar symlinks para as bibliotecas em /usr/lib/, assim: sudo ln -s /usr/lib/i386-linux-gnu/libfreetype. »

Author image Raúl Santos

Como adicionar "applets" ao painel do Gnome clássico no Ubuntu 12.04

Após recuperar o Gnome clássico no Ubuntu 12.04, ainda tinha que recuperar outra coisa crucial para a minha utilização do dia-a-dia do Gnome: a possibilidade de adicionar/remover ao/do painel “applets” e atalhos para programas. Carregar com o botão direito do rato no painel não faz aparecer um menu como fazia - mas há uma forma de o obter: super + alt + botão direito (a tecla “super” também é conhecida como a tecla do windows) Já agora, isto é também como se podem mover ou remover elementos do painel. »

Author image Raúl Santos

Como recuperar o Gnome clássico no Ubuntu 12.04

Após muita resistência, lá acabei por ceder e instalar o Ubuntu 12.04 no meu computador. Até agora tinha o 11.04 porque odeio o Unity e o Gnome 3 com um ódio muito especial mas ao mesmo tempo estava a começar a sentir necessidade de ter bibliotecas e programas mais actuais. Felizmente descobri que posso evitar ficar louco, tendo a interface do Gnome “clássico” com um aspecto e comportamento muito semelhantes àquilo a que estava habituado no Gnome 2, com uma mudança muito simples: »

Author image Raúl Santos

Getting Gnome classic back in Ubuntu 12.04

So I finally gave in and installed Ubuntu 12.04 on my desktop computer. Until now it was running Ubuntu 11.04, because I loathe Unity and Gnome 3 but I was starting to feel the need to have more up-to-date libraries and programs. Fortunately I found out that I can avoid going insane, having the “classic” Gnome interface with pretty much the same look-and-feel as I was used to from Gnome 2, with a very simple change: »

Author image Raúl Santos

How to add applets to the Gnome classic panel in Ubuntu 12.04

After getting Gnome classic back in Ubuntu 12.04 I was missing something crucial for my every-day use of Gnome: the ability to add/remove panel applets and program launchers. Right-clicking on the panel doesn’t bring up a menu like it used to - but there is a way to get it: super-key + alt + right-click (the “super-key” is also called the windows-key) This is also how you move or remove items from the panel, by the way. »

Author image Raúl Santos

Template overrides for specific panel panes

So after some time bashing my head against the wall, I finally figured out how to override specific panel panes in Drupal. Panels comes with a template file called “panels-pane.tpl.php” but you can’t simply create a “panels-pane–my-pane.tpl.php” to override it, like you can with core template files or views. This means you have to use a <a href=“http://drupal.org/node/223430"preprocess function to override the theme suggestion. So let’s say you create a template file for your panel pane called “panels-pane–my-pane. »

Author image Raúl Santos

Os argumentos contra geradores eólicos

Espanta-me que algumas pessoas sejam contra geradores eólicos, utilizem argumentos ridículos contra os mesmos, e ainda achem que têm uma opinião formada com base em factos. O argumento mais comum é, de longe, que não querem que os geradores estraguem a paisagem do terreno. Será que estas pessoas conseguem ver a ironia nisto? Querem proteger a paisagem, impedindo algo que a iria proteger. Isto só pode significar uma de duas coisas: ou são completamente ignorantes no que toca a este assunto mas acham que estão informados, ou então estão de facto informados mas mesmo assim escolhem ser contra geradores eólicos, o que faz deles egoístas e completamente idiotas. »

Author image Raúl Santos

The arguments against wind farms

It amazes me that some people are against wind farms, give out ridiculous arguments for it, and still think they have an informed opinion. The most common argument - by a long margin - is that they don’t want the wind farms to spoil the view of the land. I wonder if they can see the irony in this - they want to protect the view of their landscapes by preventing it from being protected. »

Author image Raúl Santos