Testing Security.Authenticated in Play 2.0 and 2.1

You have a Play application and let's say you want to add some simple authentication logic to restrict access to your actions. You want all your users to provide a ticket (e.g cas proxy ticket) in a request header, so you can use the ticket to authenticate them. Play's Security.Authenticated to the rescue! »

Camel and Scala 2.10

Camel and Scala is a good combination, but if you like to be on the bleeding edge and almost done converting your scala app to 2.10 you can find that camel still doesn't have a stable release supporting scala 2.10. So SNAPSHOT will do the trick in this case, but you know... it's »

Helper functions for building streams in Racket

In Racket you can define streams which are kind of lazy lists. So here are a couple of helper functions for easier stream creation: ; returns stream (define (stream-builder seed current-element next-element) (letrec ([lazy-seq (lambda (x) (cons (current-element x) (lambda () (lazy-seq (next-element x)))))]) (lambda () (lazy-seq seed)))) ; returns stream built sequentially (define (seq-stream-builder seed current-element) (stream-builder seed »

Root Application Context in Play 2.1

So Play 2.1 is officialy out and one of the new features it brings is the ability to configure root application context. It have been in 2.1 branch for a long-long time and I don't see this mentioned in highlights section, but nevertheless it's there and it works. To assign a root context »