Archive for July, 2010

UIS PHP53, DOM Parsing, PHPUnit, Puppet Config Solution

Wednesday, July 21st, 2010

I'm using PHP53 package from the IUS Community repository. I've been trying to get phpunit to install, but it gives an error that it needs DOM install. It took me a little bit to figure this out, but I finally got it working. What you need is ...

Debugging with Erlang

Thursday, July 15th, 2010

First, make sure you have the compile flag (+debug_info) set when compiling your source, then fire up the debugger: 1> i:im(). My Erlang Makefile: EBIN_DIR := ebin SRC_DIR := src EXAMPLES_DIR := examples INCLUDE_DIR := include ERLC := erlc ERLC_FLAGS := +debug_info +native -W -I $(INCLUDE_DIR) -o $(EBIN_DIR) all: @mkdir -p $(EBIN_DIR) $(ERLC) $(ERLC_FLAGS) $(SRC_DIR)/*.erl clean: @rm -rf $(EBIN_DIR)/* @rm -f erl_crash.dump Read up ...

Headless Virtual Box

Thursday, July 15th, 2010

I like running VirtualBox headless on my Mac. It doesn't show up in the Dock, and feels like it's a remote server. First, figure out which VMs you have on your machine. haddad-work:~ jhaddad$ VBoxManage list vms Oracle VM VirtualBox Command Line Management Interface Version 3.2.6 (C) 2005-2010 Oracle Corporation All rights reserved. "WebServer" {2c61a180-e098-4926-b09a-27e431791c88} Then ...

Running Erlang Code from the Command Line

Friday, July 9th, 2010

This was really useful for me in scripting TextEdit to run my unit tests, as Erlide has been crashing every time I use it. erl -run mymodule myfunc -run init stop -noshell http://www.trapexit.org/Running_Erlang_Code_From_The_Command_Line