What to do if biber stops working on MacOS X

Yesterday evening I ran into a bit of a problem when I tried building my latex document that uses biblatex/biber. For some reason, biber would not generate any output but fail with

Olivers-MacBook-Air:~ porten$ biber
data source /var/folders/5c/y7ssnfgj2fz1fnx1gz_z7ng80000gn/T/par-porten/cache-5a7f3069e2a4d51fd3557003fc55ec74c554c947//inc/lib/Biber/LaTeX/recode_data.xml not found in .
Compilation failed in require at Biber/Utils.pm line 21.
BEGIN failed--compilation aborted at Biber/Utils.pm line 21.
Compilation failed in require at Biber/Internals.pm line 8.
BEGIN failed--compilation aborted at Biber/Internals.pm line 8.
Compilation failed in require at (eval 22) line 2.
...propagated at /opt/local/lib/perl5/5.14.1/base.pm line 94.
BEGIN failed--compilation aborted at Biber.pm line 5.
Compilation failed in require at script/biber-darwin line 20.
BEGIN failed--compilation aborted at script/biber-darwin line 20.

Now, what fixes this is simply deleting the par cache:

sudo rm -rf /var/folders/5c/y7ssnfgj2fz1fnx1gz_z7ng80000gn/T/par-porten/

Sources:

Setting default applications in Ubuntu 10.10

After installing Adobe Reader into my Ubuntu installation I noticed that the Adobe Reader was actually making itself at home as the default viewer for PDF files. However, I do only rarely use it because I feel that the Ubuntu Document Viewer (aka evince) is the quicker and better solution most of the time.

Now, I could change the default for double-clicking by going through any PDF file’s Properties->Open With and selecting Document Viewer there. Firefox and Thunderbird for one thing did not really seem to care at all about this, though. Both kept using Adobe Reader to open PDF files when double-clicking in the download window and only offered the reader as the default in the file save dialog.

To work around this problem, I came up with a solution using xdg-mime.

In a terminal, I did

1
2
3
4
5
6
7
porten@lx-porten:~$ xdg-mime query default application/pdf
acroread.desktop
porten@lx-porten:~$ sudo xdg-mime default evince.desktop application/pdf
porten@lx-porten:~$ xdg-mime query default application/pdf
evince.desktop

Obviously the important part is the xdg-mime default. I would actually have expected setting the default via the file properties to have the same effect, but alas, it does not.

References:
https://bbs.archlinux.org/viewtopic.php?pid=732724
http://manpages.ubuntu.com/manpages/maverick/man1/xdg-mime.1.html

Making Bugzilla run on Windows with XAMPP

I was struggling a bit with making Bugzilla 2.2 work on my Windows XAMPP. I kept getting error about child processes not being able to start. The logs said this:

[Mon Jul 05 09:04:38 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn’t create child process: 720003: index.cgi
[Mon Jul 05 09:04:38 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn’t spawn child process: C:/xampp/htdocs/bugzilla/index.cgi

Continue reading

Installing Ubuntu 10.04 Server 64bit via USB Pendrive

After struggling with installing Ubuntu Server 10.04 from a bootable usb stick, here are some hints in case anyone else ever wants to do this. My problem was that the Server Installer kept trying to load files from the CD and could not find them, which made the installation fail. I actually wonder why it could not find anything because it was apparently looking in the right places (i.e. the USB stick mounted under /cdrom). Feel free to enlighten me.
Continue reading

Flashing PR 1.2 to the N900 from Ubuntu 10.04 64bit

To install flasher, do

Shell
1
sudo dpkg -i --force-architecture maemo_flasher-3.5_2.5.2.2_i386.deb

afterwards, install ia32-libs from multiverse:

Shell
1
sudo apt-get install ia32-libs

Before installing ia32-libs flasher kept telling me this:

Shell
1
2
ubuntu@ubuntu:~/Desktop$ flasher-3.5
bash: /usr/bin/flasher-3.5: No such file or directory

Now, to flash PR1.2 and the vanilla eMMC content, issue the following two commands:

Shell
1
2
sudo flasher-3.5 -F RX-51_2009SE_10.2010.19-1_PR_COMBINED_MR0_ARM.bin -f
sudo flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -f -R

This will flash and reboot after flashing the eMMC contents.

CUnit Tests in Hudson

Since I needed to parse the results of some CUnit tests in Hudson in a recent project, I came up with the following transformation which I apply to the cunit xml result file.
Hudson can then evaluate the results as if they were generated by JUnit. The same approach is basically used in the CppUnit Plugin for Hudson – which is where I got the idea.
Since I’m too lazy at the moment to write my own plugin for Hudson, I figured running xsltproc after running my tests will be good enough:

1
xsltproc-win32\xsltproc.exe --stringparam suitename testall -o testall_results.xml cunit-to-junit.xsl cunit_testall-Results.xml

To make CUnit produce XML results, you have to do something like this:

C
1
2
3
CU_set_output_filename( "cunit_testall" );
CU_list_tests_to_file();
CU_automated_run_tests();

You can download the cunit-to-junit.xsl here.

Continue reading

Slipstreaming SP3 into XP from Vista

Since I ran into this just now and spent about an hour installing (the btw rather cool) Windows 7 Beta to be able to google for my problem,
here is a solution for all of those who have trouble integration SP3 into XP running Vista as their host OS doing the integration.
Don’t use the /integrate switch of the SP. That’s buggy, see KB950722 for details.
Follow this guide: Paul Thurrott’s SuperSite for Windows.
That is, extract you SP package to a temporary folder like this:

windowsxp-kb936929-sp3-x86-deu.exe -x:d:\software\xp\sp3

Then create a shourtcut to this:

D:\software\xp\sp3\i386\update\update.exe -s:d:\software\xp\de_winxp_pro_with_sp2

and run that shourtcut as administrator, an voilá, it works.

Capture card config for MediaCenter and HVR-1100

As I am trying to setup my TV tuner for use with MediaPortal right now I had to write a configuration file for my card. Here is what I added to CaptureCardDefinitions.xml. The digital part actually seems to work, the analog however does not until now but I’m working on that one.
Here is what I’ve got so far:

XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<capturecard commercialname="Hauppauge HVR-1100 (67xx) Digital" capturename="Hauppauge WinTV-HVR 713X BDA Digital Capture" devid="ven_1131&amp;dev_7133&amp;subsys_67010070&amp;rev_d1">
<capabilities tv="true" radio="true" mpeg2="false" mce="true" sw="true" bda="true"/>
<tv>
<interface cat="capture" video="2" audio="3" mpeg2="1" sectionsandtables="5"/>
<filters>
<filter cat="networkprovider" name="Microsoft DVBT Network Provider"         checkdevice="false"/>
<filter cat="tunerdevice" name="Hauppauge WinTV-HVR 713X BDA DVBT Tuner"         checkdevice="true"/>
<filter cat="capture" name="Hauppauge WinTV-HVR 713X BDA Digital Capture" checkdevice="true"/>
</filters>
<connections>
<connection sourcefilter="networkprovider" sourcepin="0" sinkfilter="tunerdevice"    sinkpin="0"/>
<connection sourcefilter="tunerdevice" sourcepin="0" sinkfilter="capture"        sinkpin="0"/>
</connections>
</tv>
</capturecard>
<capturecard commercialname="Hauppauge HVR-1100 (67xx) Analog" capturename="Hauppauge WinTV-HVR 713X BDA Analog Capture" devid="ven_1131&amp;dev_7133&amp;subsys_67010070&amp;rev_d1">
<capabilities tv="true" radio="true" mpeg2="false" mce="true" sw="true" bda="true"/>
<tv>
<interface cat="encoder" video="0" audio="1" mpeg2=""/>
<filters>
<filter cat="tvtuner" name="Hauppauge WinTV-HVR 713X BDA Analog TV Tuner"            checkdevice="true"/>
<filter cat="tvaudio" name="Hauppauge WinTV-HVR 713X BDA Analog TV Audio"        checkdevice="true"/>
<filter cat="crossbar" name="Hauppauge WinTV-HVR 713X BDA Analog Xbar"        checkdevice="true"/>
<filter cat="capture" name="Hauppauge WinTV-HVR 713X BDA Analog Capture" checkdevice="true"/>
        <filter cat="encoder" name="MainConcept (MCE) MPEG Encoder"    checkdevice="true"/>
        <filter cat="mux" name="MainConcept (MCE) MPEG Encoder"    checkdevice="true"/>
</filters>
<connections>
<connection sourcefilter="tvtuner"    sourcepin="0"    sinkfilter="crossbar"    sinkpin="0"/>
<connection sourcefilter="tvtuner"    sourcepin="1"    sinkfilter="tvaudio"    sinkpin="0"/>
<connection sourcefilter="tvaudio"    sourcepin="0"    sinkfilter="crossbar"    sinkpin="3"/>
<connection sourcefilter="crossbar"    sourcepin="0"    sinkfilter="capture"    sinkpin="0"/>
<connection sourcefilter="crossbar"    sourcepin="1"    sinkfilter="capture"    sinkpin="1"/>
<connection sourcefilter="capture"    sourcepin="0"    sinkfilter="encoder"    sinkpin="0"/>
<connection sourcefilter="capture"    sourcepin="2"    sinkfilter="encoder"    sinkpin="1"/>
</connections>
</tv>
</capturecard>