Posts about "Linux"

Ubuntu 8.04 ("Hardy") quick review

Publication date
04/25/2008
Categories
,
Comments
3 comments
I've just upgraded to the last version. I haven't tested it deeply but I think I can give a first impression: I don't know if its X.org, Gnome or something else but new I feel it more responsive; but maybe I'm simply fooling myself ;-) Finally it seems I'll can use my iPod with so... (more)

Remove directory contents but not directory itself

Publication date
07/30/2007
Categories
, ,
Comments
No comments (comment it)
$ find directory_name -mindepth 1 -maxdepth 1 -exec rm -rf {} \; where -maxdepth 1 -exec rm -rf {} \; deletes the directory files while -mindepth 1 avoids deleting the directory itself. (more)

Batch file encoding conversion with Vim

Publication date
03/27/2007
Categories
, ,
Comments
1 comment
$ ex filename '+set fenc=utf-8' '+x' It's basically the same to opening the file using vim, change its encoding (set fenc=utf-8), save (if needed) and quit (x). The advantage over using other methods (like iconv) is that vim will try to detect automatically the current file encoding. ... (more)

Learn to pronounce using Festival

Publication date
03/15/2007
Categories
, ,
Comments
No comments (comment it)
Install Festival. $ sudo apt-get install festival (this command is for Debian based Linuxes) Create an easy to use script (at /usr/local/bin/pronounce, for example) to do the pronunciations. #!/bin/bash TEXT=`cat /dev/stdin` ... (more)

Modificar fitxers des de la consola

Publication date
10/09/2006
Categories
, , ,
Comments
4 comments
A l'hora de modificar fitxers des de la consola sovint em trobo que si redirigeixo els canvis que hi faig directament al propi fitxer... $ sort fitxer > fitxer ...doncs resulta que me l'acabo carregant (que queda buit, per ser més exactes). Així que em veig obligat a redirigir el nou c... (more)

Extreure l'àudio de qualsevol arxiu

Publication date
09/28/2005
Categories
, , ,
Comments
No comments (comment it)
Avui estava buscant per Internet alguna utilitat per convertir arxius Real Audio a MP3 per poder-los escoltar al reproductor MP3. Per sort m'he trobat un article que explica com fer-ho amb l'mplayer i el lame, dues eines que es poden trobar a qualsevol Linux. Doncs estava fent proves quan m'he... (more)

SSH utilitzant clau pública

Publication date
02/20/2005
Categories
, ,
Comments
3 comments
Pels que no el coneguin, el SSH és un protocol que permet connectar-se a una altra màquina de forma segura. S'utilitza principalment per treballar en una consola remota i com a substitut de l'FTP. Un dels inconvenients és que cada cop que ens hi connectem hem d'introduïr la contrasenya per... (more)