Sammy

Sammy is a tiny javascript framework built on top of jQuery. It’s RESTful Evented JavaScript. Not only does it allow you to respond to specific URLs, but utilizing the URL hash (#) you can create single page applications that still respond to the back button in your browser (ala Gmail).

 

The disposable academic - Why doing a PhD is often a waste of time

This article from the Economist is a must for all involved in academic work. With sentences like "universities have discovered that PhD students are cheap, highly motivated and disposable labour" or "Writing lab reports, giving academic presentations and conducting six-month literature reviews can be surprisingly unhelpful in a world where technical knowledge has to be assimilated quickly and presented simply to a wide audience" critics compare research doctorates to Ponzi or pyramid schemes

Spark

Spark is a MapReduce-like cluster computing framework written in Scala and running on top of the Mesos cluster manager, it makes it easy to write parallel jobs.

Estimating Pi with Spark:

val spark = new SparkContext(<Mesos master>)
var count = spark.accumulator(0)
for (i <- spark.parallelize(1 to 10000, 10)) {
  val x = Math.random * 2 - 1
  val y = Math.random * 2 - 1
  if (x*x + y*y < 1) count += 1
}
println("Pi is roughly " + 4 * count.value / 10000.0)

Travel Budget

We've been playing with Scala + Akka for a while and Tiago had too much fun with actors and STM so he put together Travel Budget

Travel Budget is a web application for discovering travel possibilities. It works with a budget and a time-frame to maximize travelling tours and options.

It goes through tens of millions of possible solutions and gives you those that are within your budget and other constraints.

We hope you like it. Feel free to send us your comments/suggestions.