xaphirecipes

recipes for all the small things in life …

Flower

FFMpeg options for Creative Zen X-Fi2

To convert videos for my new MP3/Video player Creative Zen X-Fi2 i use one of the following commands:

ffmpeg -i IN.MOV -s 320x240 -acodec libmp3lame -vcodec mpeg4 -vtag XVID -qscale 5 output.avi
ffmpeg -i IN.MOV -s 320x240 -acodec libmp3lame -vcodec mpeg4 -vtag XVID -b 1000k output1000.avi

This player is much better than the Memup K-Slim LS i used before...

TeXshade: Sequence aligments in Latex

TeXshade is alignment shading software completely written in TeX/LaTeX; it can process multiple sequence alignments in the .MSF and the .ALN file formats. In addition to common shading algorithms, it provides special shading modes showing functional aspects, e.g. charge or hydropathy, and a wide range of commands for handling shading colours, text styles, labels, legends; it even allows the user to define completely new shading modes. TeXshade combines highest flexibility with TeX output quality — all in a bundle that does not demand excessive development time of the user.

http://ftp.gwdg.de/pub/ctan/help/Catalogue/entries/texshade.html
Beitz E. TEXshade: shading and labeling of multiple sequence alignments using LATEX2 epsilon. Bioinformatics. 2000;16(2):135-9. Available at: http://www.ncbi.nlm.nih.gov/pubmed/10842735.

Seems extremely powerful...

Lightroom Video Template

Since I have been doing some time lapse photography recently, I was looking up possibilities to get Lightroom export the videos with a higher framrate than 10fps.

http://lightroom-news.com/2009/10/28/direct-timelapse-video-export-from-lightroom/

This seems to be a good way to start. Also, since the template files are just text files, you can change the 24fps to any number you want.

Green Tea White Chocolate Cream Cheese Scones(??)

Sooo, here is my latest crazy baking creation:

Basically just follow the instructions here: http://foodwishes.blogspot.com/2010/04/scone-home.html

only!

1. put in half as much sugar, but instead chop in some white chocolate chunks

2. use cream cheese instead of butter

3. use matcha+milk mix instead of the milk. (30%matcha+hot water -> let this cool and add 70% milk)

I'm not sure if you still want to call the result a scone, but it is definitely delicious! Also, you can even treat it as a cake dough and not bother splitting the dough to form scones... :D yuuummy

Linux Mint

I just updated to Linux Mint 11 (Katya) yesterday since Ubuntu 11.04 was pissing me off. I chose the upgrade option, so a couple of useful things survived from my previous ubuntu version (Matlab, Mathematica, home folder, etc.)

Everything is running smoothly, except for the update manager. (I assume it's a problem of the upgrade.) After 20 min reading around however the problem was solved.

The original error message was:
E: Malformed line 1 in source list /etc/apt/sources.list.d/local-repository.list
(dist parse)
E: Unable to lock the list directory

Then after I click "close" in the next window I get:
E: Malformed line 1 in source list /etc/apt/sources.list.d/local-repository.list
E: the list of sources could not be reached
Go to the repository dialog to correct the problem.
E: _cache -> open () failed, please report

The way around it is:

replace in in /etc/apt/sources.list.d/local-repository.list

deb file:///usr/share/local-repository katya/

by

deb file:///usr/share/local-repository binary/

Also, here is an example of my cleaned up version of my sources.list:

deb http://packages.linuxmint.com/ katya main upstream
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free
deb http://www.mendeley.com/repositories/xUbuntu_11.04 /

 

Apart from this, I really like mint. The colour theme is much more pleasing and the general look and feel is what you would expect from a linux system. Also, it might just be me, but my computer feels like it's running slightly faster than before... But bootup is definitely faster than ubuntu.