the corner office : tech blog

a tech blog, by Colin Pretorius

2008.11.26

http://archive.ubuntu.com/ has only the most recent Ubuntu releases. Older versions are available at http://old-releases.ubuntu.com/.

{2008.11.26 07:21}

There can be only one

There are 3 C++ equivalents to log4j:

  1. log4cxx - recently became an Apache project, active after looking dormat for a while.
  2. log4cpp - dormant for ages but it looks like it's active again this year
  3. log4cplus - looks like it hasn't been touched for years. Something like 4 users subbed to its mailing list.

I'm using log4cxx, mainly because I read some comments that it's closer to log4j's API and supports log4j-style config files etc. Its connection to Apache is also a plus. I have no idea which is best, though.

{2008.11.21 17:54}

2008.08.30

Playing with wxWidgets on Linux. Following suggestions from this page in wxWiki, I added apt.wxwidgets.org to sources.list. But an apt-get update was reporting the following error:

W: GPG error: http://apt.wxwidgets.org hardy-wx Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E0BCE7F53B087BC

To fix (per this thread):

wget -q http://apt.wxwidgets.org/key.asc -O-  | sudo apt-key add -

{2008.08.30 14:24}

2008.08.19

The fancy installer isn't available for 1.36.0 yet, so tried compiling boost myself. I was getting errors along the lines of:

compile-c-c++ bin.v2\libs\system\build\msvc-8.0express\debug\link-static\runtime-link-static\error_code.obj
error_code.cpp
libs\system\src\error_code.cpp(31) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Problem is VS Express 2005 has a separately installed SDK, and you need to set up envvars from both in order for things to work. I created a batch file with

call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.cmd"

... after which boost seems to be compiling just fine.

Links: Boost 1.36.0 Getting Started and this forum discussion.

{2008.08.19 16:18}

2008.08.10

.bash_profile vs .bashrc.

Somewhat related, invoking sudo update-alternatives --config java will allow you to take care of various JDKs in Ubuntu (all of which are in /usr/lib/jvm if you install using apt). This doesn't set JAVA_HOME, though. The best way to do that (eg. discussion here) is to have JAVA_HOME=/usr/lib/jvm/java-6-sun or the like appended to /etc/environment.

{2008.08.10 03:17}

2008.07.11

Setter injection versus constructor injection and the use of @Required. I'm glad the Spring folks are in favour of constructor injection for mandatory dependencies - I far, far prefer it to setter injection.

{2008.07.11 22:35}

2008.06.22

wxWindows and Visual Studio tips & tricks

JavaWorld: Understanding the closures debate

{2008.06.22 12:43}

2008.06.17

Unison file sync tool.

{2008.06.17 23:23}

2008.05.15

Install XMMS on Ubuntu ( 8.04 ) Hardy Heron

{2008.05.15 12:07}

2008.05.14

Eclipse MAT: The Power of Aggregation: Making sense of the Objects in a Heap Dump

{2008.05.14 07:36}

« Older | Newer »