I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their TapeEquilibrium exercise. import scala.math.{min, abs} object Solution { def solution(A: Array[Int]): Int = { if (A.size < 2 || A
Read More

I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their MinAvgTwoSlice exercise. object Solution { def solution(A: Array[Int]): Int = { (A.foldLeft[(Int, Option[Double], Int)]((0, None, -1)) { (t, item
Read More

I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their Missing Integer exercise. When I did A.filter(_ > 0).sorted, which would be more clear, I got only 75% in
Read More

I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their Distinct exercise. I could also have sorted the input and then go through each element to save some space. Or better
Read More

I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their PermCheck exercise. import java.util.BitSet object Solution { def solution(A: Array[Int]): Int = { val bitz = new BitSet(A.size + 1
Read More

This is a step-by-step to setup Jenkins to build, test and report status on Github pull requests and to deploy builds of a production branch, usually master, to multiple environments. This is a continuation of the previous post which went
Read More

This was written mostly as a reference for myself, it's a step-by-step to setup a basic Jenkins instance running on AWS, authenticating users through Github, building/testing/deploying Scala projects. I hope it's helpful to you in anyway. In an
Read More

Klout had an incredible 2011, and as the end of the year approached I felt so proud to be part of such an amazing team! We accomplished a lot, so the holidays came at a great time; it was a
Read More

At Klout, we love data and as Dave Mariani, Klout’s VP of Engineering, stated in his latest blog post, we’ve got lots of it! Klout currently uses Hadoop to crunch large volumes of data but what do we
Read More

Capistrano is a Ruby-based deployment tool that you’ve probably heard about unless you’ve been living under a rock these past few years. There are plenty of Capistrano-specific tutorials and blog posts out there so I won’t waste
Read More