Saturday, January 21, 2012

How to get rid of LaTeX-beamer font size warnings

Using LaTeX Beamer I always got the following warning:

LaTeX Font Warning: Font shape `T1/cmss/m/n’ in size <4> not available
LaTeX Font Warning: Size substitutions with differences



Apparently, the compiled pdf was O.K., but the waning always made me uneasy. I just could not be reconciled. It turned out that Beamer defines \Tiny and \TINY font sizes that some fonts do not provide. Using a font package such as lmodern that provides these sizes solves the problem.


source

Tuesday, January 17, 2012

How to install packages fast from command line - updated

I prefer using command line for installing packages. I think it is easier, faster and makes me feel a geek. :) Anyway, typing always apt-get install/remove/update or aptitude install/remove/whatever is not too convenient and takes too much time. This is where aliases come into the picture. In my .bash_aliases file (/home/username/.bash_aliases), I defined the following aliases:

Monday, January 9, 2012

Search with "locate" in /media

By default, updatedb neglects partitions mounted in /media. However, it could be really useful if locate worked on those partitions as well. Especially, if you mount the partitions of your HDDs there (that is a common practice nowadays). If you want to change this behaviour, just remove /media from PRUNEPATHS settings in /etc/updatedb.conf (as a root of course). Note, however, that it is much better to mount the partitions of your HDDs into /mnt and use /media just for removable devices.

Wednesday, January 4, 2012

Mounting iPhone/iPod touch with iOS 4.3

Mounting Apple's products in Linux is not as straightforward as it should be. I have an iPod Touch 3G. It has iOS 4.3. The problem is that the libimobiledevice1 package in the Squeeze repos are too old and cannot handle that version of iOS. Forunately, the latest stable release of libimobiledevice can do that (I have not tested with iOS 5.0). In order to compile and install it you need the build dependencies of libimobiledevice1 first:

# apt-get build-dep libimobiledevice1