The only blog not featuring an ipod.

Installing ctrax on Ubuntu 11.04 Natty OR Debian jessie / wheezy [Updated 2014.07.14]

Ctrax is a video tracking software developed specifically to track trajectories of fruit flies.

Currently (Jan 2012), there are packages available for Ubuntu 10.04. If you want to install it in 11.04 you can't use those packages, you will get an error. My solution is the following.

NOTES:
This solution also works "as is" on debian whezzy, using ctrax version 0.5.0-1_amd64.deb (July 2014).
If you are running debian jessie, you might run into a couple of problems, whose workarounds are marked in bold below.

1. First some prerequisites and one package you Can install:
sudo apt-get install equivs python-setuptools python-dev python-matplotlib python-scipy python-wxgtk2.8 libavbin0

     Note: If you are trying this in debian Jessie, libavbin0 is not available for this version of the distro. You have to1. set up the sid repositories on your apt sources and run apt-get update2  install ONLY libavbin0, (apt-get install libavbin0)3. remove the sid repositories from your apt sources4. install the rest of the packages with sudo apt-get install equivs python-setuptools python-dev python-matplotlib python-scipy python-wxgtk2.8 


2. Get the latest version of ctrax from here. I tried this on 0.3.0-1_amd64 and 0.3.2-1_amd64.deb and 0.5.0-1_amd64.deb
Place it in a certain folder, say ~/ctraxinst and

cd ~/ctraxinst

3. Now, since this package depends on some python packages which are not available (or not in the correct version) for 11.04, it is necesary to install them by hand:

sudo easy_install motmot.wxvideo
sudo easy_install motmot.wxglvideo
sudo easy_install motmot.wxvalidatedtext
sudo easy_install motmot.imops
sudo easy_install pygarrayimage
sudo easy_install pyglet

4. This installs the python packages, the problem is that since they were not installed using the packaging manager, when we try to install ctrax it will report unmet dependecies. Here comes the dirty part, we will make some dummy packages and trick the packaging system into thinking this python modules are installed, well, not tricking because they actually are, lets call it, informing it of their installation.

mkdir fakes
cd fakes
equivs-control python-motmot-wxvideo
equivs-control python-motmot-wxvalidatedtext
equivs-control python-motmot-wxglvideo
equivs-control python-motmot-imops
equivs-control python-pygarrayimage
equivs-control python-pyglet

This will create six files named as the packages, in side each of them is the information on the respective fake package, we just need to edit one line in each of them. For example

nano python-motmot-imops

and make sure the 8th line says:

Package: python-motmot-imops

(this means you have to replace the defaults with line

Now you can actually build the packages



equivs-build python-motmot-wxvideo

equivs-build python-motmot-wxvalidatedtext
equivs-build python-motmot-wxglvideo
equivs-build python-motmot-imops
equivs-build python-pygarrayimage
equivs-build python-pyglet


this makes six .deb files which can be installed

sudo dpkg -i python-motmot-wxvideo_1.0_all.deb
sudo dpkg -i python-motmot-wxglvideo_1.0_all.deb
sudo dpkg -i python-motmot-wxvalidatedtext_1.0_all.deb
sudo dpkg -i python-motmot-imops_1.0_all.deb
sudo dpkg -i python-pygarrayimage_1.0_all.deb
sudo dpkg -i python-pyglet_1.0_all.deb


5. And now you can install the ctrax file you downloaded

sudo dpkg -i ../python-ctrax_0.5.0-1_amd64.deb


That should do the trick :)

NOTE:  In Debian jessie you might get an error, when running Ctrax, about matplotlib not finding one of its libraries. 
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/tkagg.py", line 2, in
    from matplotlib.backends import _tkagg
ImportError: cannot import name _tkagg

I don't fully understand what the backends of matplotlib are, but one workaround for this is to use another backend. This can be done by editing matplotlib's config 
  sudo nano /etc/matplotlibrc
and changing the line backend      : TkAgg so that it reads:
   backend      : QT4Agg


This should do the trick.

50 años.

De vivir en el futuro.

Xeon 5620 lm-sensors, problems with coretemp

I post this here because of lack of a better place to get it visible to search engines.

If you are trying to get lm-sensors to work on Debian with a E5620 Xeon or two, you will probably get an error about no sensors found (even after going trough sensors-detect). If you try to manually load the modules required, you will see that an error pops up when trying to load the coretemp module. Something about "devide not found".

The solution is simple, you must install kernel 2.6.37-2-amd64. This cannot be done if you are running either stable or testing. You must use the unstable repositories (http://jaqque.sbih.org/kplug/apt-pinning.html for a how-to) and from there install with apt-get install -t unstable linux-image-2.6-37-2-amd64

This new kernel has a new version of the coretemp module which is capable of dealing with these (not-so-)new intel models.

This might also be necessary for the newer high-end i7 as well as other 5600 series Xeon cpus.

Regards.

Life, it seems, is not with out a sense or irony.

Las indentaciones son importantes

La noche de ayer fue una buena noche:
__Soñe que entraba a una celda acompañado de dos personas, que se veian amables.
__Despues de un rato me daba cuenta de que se trataba de Mahmoud Ahmadinejad y Rosa Otunbajewa.
__Me ponia a contarles la siguiente historia, que pacientemente escuchaban mientras comiamos los tres galletas de avena.
____Soñe que entraba a una celda acompañado de dos personas, que se veian amables.
____Despues de un rato me daba cuenta de que se trataba de Mahmoud Ahmadinejad y Rosa Otunbajewa.
____Me ponia a contarles la siguiente historia, que pacientemente escuchaban
________Jocabed y Laura, dos amigas, eran presidenta y vicepresidenta de México, respectivamente.
________Había un atentado en su contra y a mi me acusaban de conspirador

Me llamaba la atención que Ahmadinejad fuera tan buena persona y tratara tan respetuosamente a Otunbajewa. En general, se veia un buen tipo, con su chaqueta sport y su barba, comiendo una gran galleta de avena.

Nuclear Dream

En la facultad de ciencias de la UNAM hay esta escultura de Prometeo que, supuestamente, los estudiantes movieron de la vieja localización a la actual a mano. De cualquier fora, está en un lugar donde la gente se reune y seguro ha visto muchas cosas. Recuerdo por ejemplo haber visto a una chica quitarse el bra por abajo de la blusa, una competencia por ver quien factorizaba más rápido en primos unos números (auxiliados de unas calculadoras de bolsillo), simultaneas de ajedrez, obras de teatro, discuros políticos y lecturas del origen de las especies, desde un banquito, en una combinación entre misa y discurso de caja de jabón, todo a los ojos de Prometeo. Algunas de estas cosas estaba recordando feliz hace unos días.

También hace unos días estaba leyendo la descripción que hace Feynman de la primera explosión nuclear hecha por el hombre, que observó a veinte millas de distancia. Gracias a un muy buen amigo, tengo un pedazo de arena cristalizada por esa misma explosión, el cual, hace unos días también, le mostré a una visita.

Soñe anoche que había gran alboroto alrededor de la fuente del Prometeo, la gente salia de los edificios y se paraba ahí, al atardecer, pero volteando más bien al sureste.

La luz de la explosión llenaba de blanco todo el campo visual por unos segundos, como si le hubieran puesto a uno una hoja blanca frente a los ojos, y despues una nube cambiando rápidamente de forma, morada sobre ese cielo azul obscuro, y poco despues un golpe de aire que levantaba el polvo y hacia que algunos nos arrojaramos al suelo.

El fuego de los dioses... en manos de los hombres.




Alguien me habló todos los días de mi vida al oido, despacio, lentamente. Me dijo: ¡vive, vive, vive! Era la muerte. (JS)