Wednesday, December 18th, 2013
edoc is Erlang’s answer to javadoc and can be easily added to an existing Jenkins  Erlang build job leveraging the Jenkins javadoc plugin to generate and display documentation. Generate edoc Generate edoc for a rebar enabled project by invoking the following command ./rebar doc skip_deps=true This automatically creates creates a doc dir which will be […]
Tuesday, December 3rd, 2013
escript: bad_central_directory escript is packaged as part of the erlang otp and essentially executes uncompiled erlang code. Rebar delegates alot of work to it. Recently, I was getting the following error when trying to run the webmachine project files from the excellent book, ‘7 webservers in 7 weeks‘. I’m running R16B02 on OS X $ […]
Tuesday, October 22nd, 2013
Here’s an end-to-end REST implementation in Chicago Boss. Not sure has anyone a nice concise guide out there so hope this is useful. Overview A very simple model (Book[title, author, insertTimestamp, updateTimestamp]) CRUD implementation where       Create is a POST request       Read is a […]
Tuesday, October 15th, 2013
I wasted a lot of time with the above exception. Editing the routes file to no avail. The problem here is most likely with the controller. The problem in my case was that IntelliJ added below by default %% API -export([]). where it should have been %% API -compile(export_all). Simple one, but wasted a lot […]
Wednesday, September 18th, 2013
Vagrant is a great tool for getting a virtualized server up and running The following is a cookbook and Vagrantfile for setting up a 64bit ubuntu box. I had a lot of workarounds to get an environment successfully set up, hopefully this will ease the pain Install Vagrant and VirtualBox Create cookbook folder for chef Clone […]