HTTP Request Diagnostics With cURL

I had recently needed to diagnose some HTTP requests to understand where time was spent, download speeds, etc. This great post by Joseph Scott shows how to get timing info for a request using curl. I expanded on it by adding all available curl --write-out variables and HTTP headers (sample…

Read this article

True End-to-End Testing in Scala: Scalapeño 2014 Talk

Earlier this week I gave the following talk at Scalapeño 2014. Below are the slides for your convenience. The talk is also accompanied by a very detailed code example that shows how to implements all the discussed concepts. In addition to the slides, the videos from the event should be…

Read this article

Integration and End-to-End Test Configurations in SBT for Scala/Java Projects

It is common to have three levels of tests: Unit Tests – Checking if your objects do the right thing, if they work correctly. Usually tests methods/classes/small clusters of classes. Integration Tests – Testing if your code works against code that you can't change (3rd party or internal code that…

Read this article

The Default Scala Seq Is Mutable. Wait, What?!

Scala's default Seq class is mutable. Yes, you read that right. I think it's an extremely important thing to be aware of, and I'm not sure it's known widely enough. I've encountered experienced Scala devs that did not know this. I recently submitted the following addition to Twitter's Effective Scala…

Read this article

Integrating Play Framework And Maven

I recently had to integrate a Play Framework project with a Maven-based build process. This wasn't as straight-forward as I thought it would be, and so here's how I did it. TL;DR Check out this repo for a complete and working example. Requirements The integration I was after had…

Read this article

Zsh Prompt Format With Date/Time And Current Directory

I work with the command line a lot (as do/should most developers, at least if they're not running Windows). Every once in a while I happen to run a command which takes longer to complete than I expected. When that happens I want to know how long it took…

Read this article

GitHub Color Scheme For IntelliJ

I love GitHub. I use it to manage all my personal projects (see my post on multiple users with Git), as well as for browsing other libraries. I like it so much that I even sometimes prefer using it for browsing source code that's locally on my machine. Because I…

Read this article

Git: Using Different User Emails For Different Repositories

A couple of weeks ago I switched jobs. We use Git for version control at my new workplace (I was using SVN at work up until now). I also have a few public repositories of my own on GitHub (and some private ones as well). We're using a pretty advanced…

Read this article

Browser Notepad

It's very easy and convenient to use your browser as a local notepad. This is nothing I invented – it was written about and discussed before. This is my own personal jab at a local notepad, and what I've been using recently on a daily basis. It's great for when you…

Read this article

Speed Review: Patriot Supersonic Magnum 64 GB Flash Drive

I recently got the 64GB Supersonic Magnum USB 3.0 Flash Drive ($77.45 on Amazon). Before setteling on the Magnum, I did a lot of research. During which I consulted The Wirecutter which recommended the rather dated Patriot Supersonic USB 3.0 (reviewed on March 2012), but with a…

Read this article