Why I hate Hotmail

I hate a million things about Hotmail, but I find this particullary annoying:

hotmail

I have a decent monitor, and still between the sidebar, the email list and the mother fucker advertisement you only have this small space for reading the actual email.

Why I still use them? Because I’ve had that email account for years and years and there’s no easy way to migrate all my emails to GMail, or adding the account to gMail so I can read them from there.

I have the fastest internet connection in Guadalajara, Mexico :)

Speed Test

How to install curl for PHP5 under Ubuntu/Debian

You need to run this commands from the root account, or using sudo.

1
2
apt-get install php5-mcrypt
/etc/init.d/apache2 restart

Installing an XServe

I just started working on a new project, installing an XServe. Here are some pictures of it, and I will keep posting all the neat tricks and issues that I encounter over here. It looks awful right now, but keep in mind I just started working on it.

24022009280

24022009279

24022009278

How to install mcrypt for PHP under Ubuntu/Debian

You need to run this commands from the root account, or using sudo.

1
2
apt-get install php5-mcrypt
/etc/init.d/apache2 restart

Sometimes you might get the message “php5-mcrypt is already the newest version“. If so, install with:

1
2
apt-get --reinstall install php5-mcrypt
/etc/init.d/apache2 restart

How to see the size of a file or directory from bash

Simple, use du.

1
du -h somefile

How to start/restart/stop a MySQL server

Each distribution comes with a shell script to manage the MySQL server.

To start/restart/stop your MySQL server, first login as root user via SSH (Or sudo all the commands) and then execute the following command as your linux distribution:

For RedHat/Fedora Core/CentOS:

1
/etc/init.d/mysqld start
1
/etc/init.d/mysqld restart
1
/etc/init.d/mysqld stop

For Debian/Ubuntu:

1
/etc/init.d/mysql start
1
/etc/init.d/mysql restart
1
/etc/init.d/mysql stop

Code Quality Measurment

wtfm

From OSNews comic.

Rapidshare Trick

If you don’t want to wait to start downloading a file from Rapidshare, just open the download and when the counter starts type this on your URL (Or your Firebug console if you’re a geek)

1
javascript:alert(c=1);

Thanks to Michoacano for finding it.

Tunneling Firefox traffic over SSH under Mac OS X

If you don’t trust the network you’re on and you don’t want to send your unencrypted HTTP traffic through it or if there’s a firewall preventing you to connect to certain websites, you might need to tunnel your web traffic through a SSH connection to a remote machine.

To achieve that, you need to establish an SSH connection with certain parameters that allow you to tunnel traffic through it and then configure Firefox to use the tunnel.

Randomly select a port that is currently unused in your client machine. If you don’t know which port to pick, pick a random number between 10.000 and 20.000, chances are it won’t be in use in your client machine.

Establish your SSH connection to your server as you usually would, but pass a -fND option. For example:

1
ssh -fND localhost:randomport username@remotehost

Make sure to change the randmport and user@remotehost options to suit your configuration. Once you log in, the SSH process will go into the background and the tunnel will be established.

In Firefox click on the menus Edit > Preferences. Pick the Advanced tab and click on Settings next to Configure how Firefox connects to the internet. Select Manual proxy configuration, enter localhost in the SOCKS Host text field and enter the port you used for your tunnel. Close the dialog to apply the settings.

At this point most the traffic from Firefox will go to the port selected, where the SSH process will pick it and send it encrypted to your SSH server, which will in turn establish the actual connections to the web servers.

You may want to have Firefox send DNS traffic through the Tunnel instead of sending DNS requests through the local network. To do that, enter about:config in the URL text field and double click on the network.proxy.socks_remote_dns to set it to true.