martes, 22 de septiembre de 2009

Changing execution attributes on svn

Sometimes a script is added to a SVN repository without execution permissions. After that, a simple chmod doesn't work for SVN.

This is what can be done to change the attributes of the file:


$ svn propset svn:executable on da_scripto.sh
$ _

lunes, 21 de septiembre de 2009

Rebuilding TeX's filenames database

I had some problems with Beamer installation (http://latex-beamer.sourceforge.net). After install this TeX class, I couldn't compile a tex file, dumping this error:

! LaTeX Error: File `beamerthemeAnnArbor.sty' not found.


The solution was simple, rebuild the TeX's filenames database

sudo texhash

viernes, 11 de septiembre de 2009

Attach a file to a mail on shell

In the old times we were able to attach a file using the mail command. Now, we can do the same thing using mutt:

$ echo "Mail body" | mutt -s "This is a mail with attachments" -a ~/mi_file.txt -a ~/mi_picture.png anne@octop.us
$ _


We can also use some pre-written file to use as the email body:

$ mutt -s "Mail with body from a file" anne@octop.us < ~/mail_body.txt
$ _