Why I Love Having 8 Gigs of RAM

I recently upgraded my primary computer from a 15″ MacBookPro with 4 GB of RAM to a 17″ MacBookPro with 8 GB of RAM. That probably sounds gratuitous. Here’s why it’s not:


I’m currently running:

  • Mac OS 10.5.6
  • Adium (IM chat client)
  • Mail.app (e-mail client)
  • iCal (calendar application)
  • iTunes (music)
  • OmniFocus (GTD todo list)
  • TextMate (text editor)
  • Preview (image viewer – for looking at screenshots, scanned requirements docs)
  • PostgreSQL (CouponEngine database)
  • pgAdmin (postgreSQL client and admin app)
  • Terminal
  • Safari 4 (primary browser)
  • Firefox 3 (for testing look and feel)
  • Eclipse (development environment)
  • Windows XP (running in Parallels-for testing and Oracle)
  • Oracle 10G (ATG database)
  • JBoss 4.0 + ATG 2006.3 with full Commerce stack
  • JBoss 4.2 + Seam application
  • ANT JVMs for running builds

This is what I need to run to do my job, and it takes more than 4 GB of RAM.

Now that I have 8 GB, I’m not longer running into swapping and paging delays, and I’m much more productive.

Having close to twice the screen real estate (~70% more I think), a faster CPU, and 8 hours of battery life don’t hurt either. This is the perfect machine for me.

Huge Logs and OS X

Another reason that I love my mac: it can handle 1.3 GB log files easily with built in tools. I recently received a huge log file in zipped form from a co-worker with the warning “good luck opening it, textpad won’t open it.”

After unzipping it to the full 1.3 GB size I was able to open it using the built in Apple log viewer Console.

I ended up mostly using the terminal and tools like cat, less, grep, etc… to quickly find what I wanted and view the log lines surrounding the events I was interested in.

No problem.

Time Machine To The Rescue

I ran an ANT task to undeploy an ATG Module, but I had my build property module location set incorrectly. As a result, I inadvertently deleted my entire ATG 7.1 installation.


I opened the containing directly in the Finder, where my ATG 7.1 USED to be, and hit TimeMachine. My laptop connected to my Time Machine over wireless, and let me browse through the last month or so of folder states for that directory. I went to the previous backup (about half an hour ago), and clicked Restore. Like magic, my entire missing ATG installation reappeared.

Pretty sweet stuff. Thanks Apple.

YouTube Gets Stuck After 2 Seconds

I recently started having an issue with YouTube playing a video without sound for 2 seconds, then stopping. This is a new laptop, so everything is fresh and new, leaving me with a ton of potential culprits: OS X, Safari 3.1.1, Flash, network, Perian, etc….

Googling showed that other people were having this issue across many OSes and browsers. Unfortunately, most of the advice was “reboot” or “change your network buffer” or “YouTube sucks!”. None of which helped me.

What did help, is downgrading from Flash Player to using the Adobe archive of Flash Players. I uninstalled the, and installed, and poof, no more problems with YouTube videos.

I hope this helps someone.

Eclipse StartOnFirstThread Error (and fix!)

This appears to be an issue with the JVM under Leopard (Mac OS X 10.5), but I started getting the following error within Eclipse when using the ResourceBundleEditor plugin:

StartOnFirstThread Error Message

It also apparently happens with other plugins/apps and is an issue with the AWT kit in the new JVM. After pouring through all of my Eclipse config files and determining that I definitely was NOT specifying StartOnFirstThread anywhere, I found this fix:

Within the Eclipse application bundle, in the file Contents/MacOS/eclipse.ini, add this line:


Save the file, and restart Eclipse. Problem solved.