Category Archives: Erlang
Handling Multipart Uploads with MochiWeb
An explanation of how to handle file uploads with the MochiWeb Erlang library. The article includes a brief introduction to setting up MochiWeb and an explanation of how to handle file uploads and save them to the /tmp directory. I’ve also put together a very simple photo gallery system to show how to make use of this feature. Continue reading
Deploying an Erlang Appliance with SUSE Studio
An introduction to the newly released SUSE Studio, and method for setting up an Erlang application to run on an appliance. The process involves using an Erlang script to automatically setup a release file and boot script with the appropriate application dependencies and version numbers. Continue reading
Estimating Pi with Monte Carlo Methods
This article demonstrates how to use a Monte Carlo simulation to calculate a value for Pi. An example program is given, written in Erlang, which can be run in a parallel environment. As well as the theory behind the method, we will look at how random numbers can be generated in Erlang and how to time Erlang programs. We will also perform an informal analysis of the results. Continue reading