martes, noviembre 02, 2010

New Blog

Yeah as you can read in the title, I have a new blog.

This new blog was made on GitHub with GitHub Page system (awesome :-)

Well, you can visit this new blog at


lunes, enero 11, 2010

Python & CATH

Well, long time without posting here, but I had been working and now I will try to post some codes that I wrote at job.

Some weeks ago I had to help a friend to analyze some domains from CATH, but the file related to those domains (CathDomainDescriptionFile) has a size of ~140Mb approx. So read that file by "hand" is a torture, so I wrote a little script in python which you can use it like a module in your programs.

You can download the python module and a test script for examples in:

[If you found some mistake in my English, please tell me.]

viernes, julio 31, 2009

Secure memory functions

Some weeks ago, I was looking for good practices [in C] to manage the memory -allocation and free- in a secure way. In my search I found this site, where shows several functions in C/C++ and how you should use them to ensure a correct behavior. Well I read something about realloc and memset, and I made a mini library where I wrote secure alternatives for both [memset and realloc].

I hope this be usefull for somebody =)


[Unix only]

See ya!

[DISCLAIMER: If you found some mistake in my English, please tell me.]

miércoles, abril 29, 2009

TIP 1: Make some thumbnails [or just resize some pictures]

Have you ever wanted to resize a large amount of pictures, but you don't have time to open every image with `The Gimp', well I have the solution for you. You just need to write a simple Bash script [just one line]. The only requirement is have installed `Imagemagick' on your linux box.

Example: You have 12345678 pictures [PNG, JPG, whatever] with a resolution of 3072x2304 pixels and you want convert them into a resolution of 1024x768 pixels [these new images will be saved into a new directory].

So, you are [running a terminal] where you have the pictures, you just run this:

$ for files in *.JPG; do convert -thumbnail 1024x768 $files ./lq/$files ; done

In this example I'm converting JPG images [you can choose whatever format if Imagemagick accept it] and saving the new images into the `lq' directory [of course you can choose other directory to save your new images].

Well that's it....

PS: If you found any error in my English just tell me [I need to improve it]

martes, enero 27, 2009

Cbot: an IRC bot written in the C programming language

In this month I have been working in a personal project, with the main goal to learn new things in the field of the programming in the C programming language on Linux enviroment (and all that stuff) and improve my skills =). So I decided to make an IRC bot, at start with very few and simple features (stay alive[PING/PONG], say things via IRC, etc...).

Well I started with this project in early of January, and I started a online repository for the project. If you want get involved with Cbot, or just take a look at the code, go to: (YES!, I'm learning git too ;), I accept any kind of feedback =).

Well that's it, bye ;)

ps: Remember, if you found any error in my English, please tell me!

miércoles, diciembre 31, 2008

iomega zip 250 drive on Linux

Yeah I know, the zip drives are obsoletes, but I got one of these today and I wanted to try it on my laptop, unfortunately the zip drive uses the parallel port and my laptop doesn't have one, so I used my desktop PC (which has a parallel port). When I had connected the drive into the computer, nothing happened, so I started to search in the web and I found that if you want to use the iomega zip 250 drive with linux kernel 2.6.x, you must load the follow modules:

#modprobe parport_pc // This should load the driver for parallel port
#modprobe ppa // This is the older module could work for older drives.
#modprobe imm // This is the newest --> I used this one (besides the parport_pc)

And that's it. Then you load these modules you will be able to use your zip drive on your linux box.


PS: If you found any error in my English, please tell me!!

lunes, diciembre 15, 2008

C programmers are socials!!

Click on the picture to enlarge.

Yeah, C programmers are socials!
Join to ##c-social at

Nota: - Si eres un programador (o estudiante de programación) de habla hispana y quieres conversar sobre temas de programación, te invitamos al canal #coding y #coding-social en el servidor

The Netiquette (RFC 1855)

Reading the RFC-1855[1] which talks about the netiquette I found this:

- Don't point to other sites without asking first.

How many web-masters/bloggers respect this? Or, is this point (and others) well accepted nowadays?