OutOfMemoryException in long running NANT build (AKA StringBuilder is broken)
On my current project we have experienced an interesting problem with our build. There's nothing particularly strange about our setup:
Labels: .NET OutOfMemory
On my current project we have experienced an interesting problem with our build. There's nothing particularly strange about our setup:
Labels: .NET OutOfMemory
Setting the JAVA_HOME on the Mac has become a lot easier over the years... Apple introduced the GUI version (Java Preferences) which will let you specify the version of JDK to use. However there are still a number of command line tools that expect (or at least work better with) the JAVA_HOME environment variable, and now Apple has provided a way to do this as well with:
Note to self: If you ever get the following error when you try to execute a clean ant install:
The syntax of the command is incorrect.
This is due to an issue with the CLASSPATH env. variable. The rule is that if the last entry in the classpath finishes with double quotes (") you HAVE TO add a semi-colon after it.
Apple has a very peculiar strategy with their AirPort Extreme product, they are now allowing you to download software for it, so if you lose or damage your original CD you may find it hard to manage your AirPort Base Unit.
This happened to me as well and I have spent numerous hours trying to find a solution to my problem; in the end I found this blog post that outlines the steps required to allow you to install the AirPort extreme update 5.1 even if you don't have 5.0 already installed.
Just in case the above mentioned blog disappears I'm listing the steps required to achieve this task bellow:
It's been a while since my last post. Here are a few links to interesting blogs/articles around testing, TDD and BDD.
Testing articles:
http://blog.daveastels.com/articles/2005/07/05/a-new-look-at-test-driven-development
http://pezra.barelyenough.org/blog/2007/06/mocking/
BDD documentation:
http://tuples.us/2007/06/12/r-s-p-e-c-4-me/
http://behaviour-driven.org/Introduction
Behaviour frameworks:
http://jbehave.org/
http://dannorth.net/2007/06/introducing-rbehave
I've found another nice Dell D600 FC setup page here. Among other things it has the instructions for setting up S3 mode (suspend to RAM). You can refer to the original page for the instructions, I'm also including my version of these same instructions here for completeness.
To get Hibernate to work you you'll need log in as root (su -) a create a new file /etc/acpi/events/sleep.conf with the following content:
event=button/sleep *You'll also need to create the file /etc/acpi/actions/sleep.sh with:
action=/etc/acpi/actions/sleep.sh
#!/bin/tcshMake sure that the file is executable (to do this run chmod 700 /etc/acpi/actions/sleep.sh). Finally you'll need to restart the acpi system: service acpid restart.
# Script to drive the system to S3
# suspend-to-ram
#
# JRA Jan 2005
# Step 1: preparing sleep
if (-e /suspending) then
echo "already in the process of suspending. Please be patient."
else
/bin/touch /suspending
/usr/bin/killall -s SIGUSR1 cpuspeed
/usr/bin/chvt 1 # necessary to make DRI work
/sbin/service anacron stop
# USB doesn't suspend without unloading first
/sbin/rmmod ehci_hcd
/sbin/rmmod uhci_hcd
#save the system time
/sbin/hwclock --adjust
/sbin/rmmod wacom # only necessary of you have wacom stylus
/sbin/rmmod -as
/bin/sync
# Step 2: send sleep command via ACPI
echo mem > /sys/power/state
# Step 3: wake-up and reload
/sbin/hwclock --hctosys
/sbin/modprobe ehci_hcd
/sbin/modprobe uhci_hcd
# initialise X
xinit /bin/false -- :1
/usr/bin/chvt 7
/sbin/service anacron start
/sbin/service cpuspeed restart
rm /suspending
endif
I have finally managed to get the Lotus Notes to work under Linux. I'm hoping that the following instructions will help someone solve this problem with less pain and frustration then I had to experience.
The good news is that it is possible to get Notes working under FC4, the bad news is that you need to install it under Windows first and then copy the files across. This was not a problem for me as I'm using a dual boot laptop, but it may be a problem for others.
In hindsight the majority of my problems were with Wine and the fact that there are a number of different recommendations on the web about which version people should use. Basically there are 3 different recommendations:
I've just upgraded to the latest kernel (2.6.12-1.1398_FC4) and thought I'd use it as a guide for what needs to be done to set up FC4 on a Dell Latitude D600 laptop.
FC4 should install without any problems and should recognize all hardware except for the wireless network card. After the install I strongly recommend that you do the following:
1. Run 'yum update' to get the latest versions of the installed packages. As far as I know the stock standard FC4 install CDs/DVD come with 2.6.12-1.1369_FC4 kernel which is already getting a bit old so you'll probably want to update to the new version.
2. Once the upgrade has been completed you can set up your wireless network card by following the instructions from this link. The simplest thing would be to use the driver that is shipped with the kernel and just install the firmware v2.2. I have personallyhpersonallyole decided to go with the full install approach and have installed firmware v2.3 and driver v1.04. As I am writing this I have just noticed that a new version of the driver (v1.06) is available and I might try that later on tonight.
3. If you've followed the instructions from the website and have rebooted at the end of the install you should have a working wireless connection except if you are running a network that uses WPA for security (as is the case with me). To get the WPA authentication to work you'll need to install the wpa_supplicant. Either Google for a recent FC3/4 RPM or download the source and compile it. Personally I had problems compiling it on FC4 so I opted for a slightly older version for which I was able to find an RPM. Once you install it all you will need to do is configure it ,edit /etc/wpa_supplicant.conf, and set it up to run at startup:
echo wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -wB >> /etc/sysconfig/network-scripts/ifup-wireless
echo killall wpa_supplicant > /etc/sysconfig/network-scripts/ifdown-wireless
chmod +x /etc/sysconfig/network-scripts/ifdown-wireless
As most of you already know FC4 was released on Monday (actually Tuesday early morning Brisbane time). I have made the decision to switch to (primarily) using Linux on my laptop so to that end I was eagerly awaiting this release.
As I've promised to a number of people, over the next few days I will blogg the steps I'm taking to setup my Dell D600 laptop with the new OS.
Watch this space.
Vlad
Over the last 8 - 10 years I have been a constant Windows user. During this time I made a number of half-hearted attempts to switch or Linux but every time I would hit a road block and would retreat back to the comfort of Windows.