Archive for the ‘IT’ Category

Dreamhost is down again

Tuesday, May 27th, 2008

Let’s see how long is going to take this time.

Tireless

Thursday, May 22nd, 2008

On May 19th, 2000, the nuclear submarine HMS Tireless had to stay in Gibraltar in order to be repaired. At that time I was studying at high school, and due to the repercussion of the new I decided to use this subject for my first videogame “Tireless”, a kind of pong, quite simple but funny. I hope I will show it soon.

Computer Vision II

Monday, May 12th, 2008

It seems I was right, using chrominance was a better way to detect a hand instead of just intensity.

Visión por computador

Sunday, May 11th, 2008

Right now I’m a little bit busy with a small project for computer vision. It’s about a program that recognizes different things through the web cam, things like circles or my hand.

For example, here, the program is successfully recognizing a circle sketched in the blackboard and the rounded shape of the camera objective. However, only some times it recognizes correctly the two small circles.

Circles recognition

And here, the program is bounding the shape of my hand. This is the first version and is not working so smoothly, but I’m sure that it will work better with a color difference than with intensity.

Computer vision

Google Speaker Series: Inteligencia Amplificada

Tuesday, April 29th, 2008

Sorry, this entry is only available in Español.

BUG 5930745: Nada de Oracle funciona.

Monday, April 28th, 2008

Ok, everything is right, you have finished your application (with a huge effort) and is running ok in your local server. Now you try to deploy to the server and… “java.lang.NoSuchMethod exception”… “error 500″… Is it possible to know what kind of information is that in order to debug a failure? What is supposed to be done now?

Codigo fuente de Windows Vista robado

Tuesday, April 8th, 2008

It seems that some source code has been stolen from Microsoft. Here is the main function of Windows Vista.

Windows vista source code

¡Feliz cumpleposting!

Wednesday, April 2nd, 2008

Happyposting to youu!

Happyposting to youu!

I have just realized that today I have reached 100 posts and soon (maybe due to some puppet manager) 450 comments. this blog is being of age.

There are currently 100 posts and 449 comments, contained within 17 categories and 4 tags.

Autobackup de la base de datos

Friday, March 28th, 2008

Since this days the server has been out for holidays I have been tempted of moving everything to another server, just until the service is back. However I have faced the problem that I didn’t have access to an updated database, so I couldn’t do anything. I wished to have at least a version of the database from the same day or the day before of the server crash.

The question is that I have founded a quite easy solution: to send myself a mail with a copy of the database dump once or twice a day (this is not possible on every server)

In order to do that you only have to create a script like this.

#!/bin/sh

mysqldump -u user -ppassword -h host.domain database | gzip > ~/database.sql.gz

echo “This is an autogenerated mail with the backup” | mutt -s “[databasebak]” -a ~/database.sql.gz miemailparabackup@servidor.com

It’s necessary to have mutt installed because this command sends an email in MIME format so we can send a binary file attached

We can call this script “~/scripts/dbbak.sh” so now we only need a “crontab.txt” looking like:

SHELL=/bin/bash

#h m dom mon dow command

35 0,12 * * * ~/scripts/dbback.sh

And then we install the crontab file with

crontab crontab.txt

I hope it will be helpful for you.

The program ‘java’ can be found in the following packages:

Sunday, March 9th, 2008

The program ‘java’ can be found in the following packages:

* cacao

* j2re1.4

* kaffe

* jamvm

* java-gcj-compat

* gij-4.1

* gij-4.2

* sablevm

Try: sudo apt-get install <selected package>

bash: java: command not found

And I have just installed. We cannot forget to do:

sudo update-alternatives –config java

sudo update-alternatives –config javac

in order to fix the problem :(.