2016 roundup

  • Switched jobs; Learned a lot about firewalls (BTN300), AWS and Azure
  • Continued studying (12 ECTS points) and learned a lot about TeX
  • Traveled to Turkey, Germany and Innsbruck
  • Switched the blog to WordPress
  • Migrated my Webserver to a new ISP and upgraded it from FreeBSD 9.3 to 10.3
  • Retired mchammer.arved.priv.at after 12 years of service (It was the first amd64 dedicated to FreeBSD ports work)
  • Wrote 8 Wikipedia articles
  • Finished two books in Turkish. Ustam ve Ben by Elif ┼×afak and En Uzun Gece by Ahmet Altan
  • Lost IPv6 connectity at home, thanks to sixxs.net disabling my tunnel.
  • No hardware upgrade at home. Still using computers from pre-2010
  • Not enough time for OpenSource contributions, especially FreeBSD

Ubuntu 13.10

As with every Ubuntu version, the upgrade is kind of broken.
* systemd doesn’t like hal anymore. Recommended procedurce: remove hal
* KDE has forgotten its sound configuration and preferes the HDMI port over the onboard sound.
* akonadi and apparmor don’t work together. I suggest to remove apparmor
* …to be continued.

Compiling the NXP Basic Function Library BFL on Linux

The BfL source of version 4.1/2 does not offer a build system for Linux.
Here is an automake Makefile.am:

AM_CFLAGS = -g -Wall
AM_CPPFLAGS = -I$(top_srcdir)/intfs/IphcsBflI3P4AAct/inc/ \
-I$(top_srcdir)/types \
-I$(top_srcdir)/intfs/IphcsBflI3P4/inc \
-I$(top_srcdir)/intfs/IphcsBflIo/inc \
-I$(top_srcdir)/intfs/IphcsBflRegCtl/inc \
-I$(top_srcdir)/intfs/IphcsBflBal/inc \
-I$(top_srcdir)/intfs/IphcsBflAux/inc \
-I$(top_srcdir)/intfs/IphcsBflOpCtl/inc \
-I$(top_srcdir)/intfs/IphcsBflNfc/inc/ \
-I$(top_srcdir)/intfs/IphcsBflIdMan/inc \
-I$(top_srcdir)/intfs/IphcsBflI3P3A/inc \
-I$(top_srcdir)/intfs/IphcsBflMfRd/inc/ \
-I$(top_srcdir)/intfs/IphcsBflPolAct/inc/ \
-D__int32_t_defined -D__int64_t_defined
libCBFL_la_SOURCES = \
comps/phcsBflI3P4AAct/src/phcsBflI3P4AAct.c \
comps/phcsBflOpCtl/src/phcsBflOpCtl_Hw1.c \
comps/phcsBflAux/src/phcsBflAux_Hw1.c \
comps/phcsBflIo/src/phcsBflIoHw1/phcsBflIo_Hw1.c \
comps/phcsBflNfc/src/phcsBflNfc_Target.c \
comps/phcsBflNfc/src/phcsBflNfc_Initiator.c \
comps/phcsBflIdMan/src/phcsBflIdMan.c \
comps/phcsBflI3P3A/src/phcsBflI3P3A_Hw1.c \
comps/phcsBflBal/src/phcsBflBal_Hw1SerLin.c \
comps/phcsBflMfRd/src/phcsBflMfRd.c \
comps/phcsBflRegCtl/src/phcsBflRegCtlSer/phcsBflRegCtl_SerHw1.c \
comps/phcsBflPolAct/src/phcsBflPolAct_Hw1.c \
comps/phcsBflI3P4/src/phcsBflI3P4_Pcd.c \
comps/phcsBflI3P4AAct/src/phcsBflI3P4AAct_Wrapper.cpp \
comps/phcsBflOpCtl/src/phcsBflOpCtl_Wrapper.cpp \
comps/phcsBflIo/src/phcsBflIo_Wrapper.cpp \
comps/phcsBflNfc/src/phcsBflNfc_TargetWrapper.cpp \
comps/phcsBflNfc/src/phcsBflNfc_InitiatorWrapper.cpp \
comps/phcsBflIdMan/src/phcsBflIdMan_Wrapper.cpp \
comps/phcsBflI3P3A/src/phcsBflI3P3A_Wrapper.cpp \
comps/phcsBflBal/src/phcsBflBal_Wrapper.cpp \
comps/phcsBflMfRd/src/phcsBflMfRd_Wrapper.cpp \
comps/phcsBflRegCtl/src/phcsBflRegCtl_Wrapper.cpp \
comps/phcsBflPolAct/src/phcsBflPolAct_Wrapper.cpp \

And a standard configure.ac


Beware the BfL does not work on 64bit systems.

Linux, Sound and blacklist.conf

Forget about configuring your sound device with KDE.
It is just confusing and does not work as you intended most of the time.
Here two useful blacklist.conf entries:
Disable the onboard soundcard in favor of USB soundcard:

blacklist snd_hda_intel

Disable the HDMI output of your soundcard:


pavucontrol is a useful tool to mute speakers and adjust the balance

Formatting Dates in JExcel

Jexcel has an annoying Feature: It exports Dates always as UTC.
They have published some kind of workaround for reading Excelfiles, but it does not work for Writing Excel files.
My workaround:

TimeZone tz = TimeZone.getDefault();
int offset = tz.getOffset(date.getTime());
Calendar cal = new GregorianCalendar();
cal.add(Calendar.MILLISECOND, offset);
DateTime datetime = new DateTime(j,i, cal.getTime());
WritableCellFormat cf = new WritableCellFormat(df);