15 Jun, 2009

Is there a better way waking up, than listening to your favourite music? If you're one of those guys, that leave their computer running even if they go to bed, this post may be useful for you... We'll use a script and cron to create a "really geek" alarm clock...
We'll start creating the script, that'll be responsible for playing the music files and turning up the volume gradually...
Read the rest of this entry »
7 May, 2009

Surfing round the world wide web, taking advantage of the high waves, we found a script (which we had to modify a little) that seems very useful to us. It's a script that can be used to translate texts in the command shell, to accomplish this, it queries to a Google API which translates the text, and than it changes the appearence of the text, to be able to show it to the user.
First thing we need to do, is to install the dependencies, by executing the following line in a command shell:
sudo apt-get install lynx
Now we'll need to download the script and allow the execution by executing the following lines:
- wget "http://ubuntu-blog.com/compartidos/translate"
- sudo mv translate /usr/local/bin/
- sudo chmod +x /usr/local/bin/translate
Now we'll have the script ready to use.
To translate a text in Ubuntu you'll now have to use the following syntax:
translate [text language] [desired language] [text]
For example executing the following line:
translate es en "Voy a visitar ubuntu-blog todos los días"
The command shell will answer: "I'm going to visit ubuntu-blog every day"
10 Apr, 2009

Perhaps you've received a warning like this once, executing the command sudo apt-get update:
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...
W: You may want to run apt-get update to correct these problems
Read the rest of this entry »