all that jazz

james' blog about scala and all that jazz

2024

Orion Nebula

This is the Orion Nebula also known as M42 It’s a diffuse nebula containing a mixture of neutral clouds of dust and gas ionised gas regions and reflection nebulae It’s approxmiately 1350 lightyears away Telescope Skywatcher Classic 250P 10 Dobsonian…


Jupiter

This is Jupiter and its moon Io Telescope Skywatcher Classic 250P 10 Dobsonian 1200 FL Tracking Home built 2 circle segment equatorial platform Camera ZWO ASI533MM Pro CMOS monochrome 3008x3008 3 76μm pixels 250 gain Integration 10000x1ms exposures in each…


Sculptor Pinwheel Galaxy

This is the Sculptor Pinwheel Galaxy also known as NGC 300 It’s a galaxy in the constellation of Sculptor roughly 6 million lightyears away It’s a little smaller than the Milky Way Telescope Skywatcher Classic 250P 10 Dobsonian 1200 FL…


C/2023 A3 Tsuchinshan ATLAS

This is the comet C 2023 A3 Tsuchinshan ATLAS It became unexpectedly bright as it got closer to the Sun This image was taken after it emerged from the other side of the Sun Telescope Skywatcher Classic 250P 10 Dobsonian…


Saturn

This is Saturn Telescope Skywatcher Classic 250P 10 Dobsonian 1200 FL Tracking Home built 2 circle segment equatorial platform Camera ZWO ASI533MM Pro CMOS monochrome 3008x3008 3 76μm pixels Integration 3000x1ms exposures in each of red green and blue Image…


Trifid Nebula

This is the Trifid Nebula also known as M20 and NGC 6514 It’s an H II region plus a reflection nebula and a dark nebula It’s roughly 21 lightyears across and is about 4100 lightyears away Telescope Skywatcher Classic 250P…


Barnard's Galaxy

This is Barnard’s Galaxy also known as NGC 6822 It’s the closest non satellite galaxy to the Milky Way very similar to the Large Magellanic Cloud I accidentally had the gain set to 600 max so it came out very…


Pavo Galaxy

This is the Pavo Galaxy also known as NGC 6477 It’s a galaxy in the constellation of Pavo Peacock roughly 23 million lightyears away It’s notable for being a Milky Way mirror it’s very similar in structure to the Milky…


Dumbbell Nebula

This is the Dumbbell Nebula also known as Messier 27 or NGC 6853 It’s a planetary nebula roughly 1360 lightyears away At its centre is a hot white dwarf which is showering the gasses it shed while it was a…


2022

A sad day for open source

This month is a month of mixed emotions for me It is my 10 year anniversary of working at Lightbend then Typesafe I’ve loved working for Lightbend I certainly would not still be working here if I didn’t I almost…


2021

Securing Akka cluster communication in Kubernetes

A feature of Akka that we’ve been using in production for some time now but haven’t made a big deal about is Akka remoting’s support for using mTLS certificates that are frequently rotated This support is designed to work with…


2020

Rotating secrets in Kubernetes

I’m building a multitenant SaaS on top of Kubernetes at the moment and one principle we’ve gone with is that all secrets should be rotated regularly I’m surprised by the distinct lack of documentation on best practices for how to…


2017

Testing sbt 1.0 cross builds

sbt 1 0 is now released and everyone in the sbt community is hard at work upgrading their plugins Because many sbt plugins depend on each other there will be a short period of time that we’re in now where…


socket.io - The good, the bad and the ugly

I have recently finished an implementation of socket io server side support for Play Framework Naturally I’ve become intimately familiar with the protocol and I’ve formed a few opinions of it during the course of my efforts which I’m going…


Is abuse grounds for divorce?

This post is a little off topic compared to the rest of my blog but it’s a topic that is close to my heart and I feel I have to share it I am disheartened in the leadership of the…


2016

CQRS increases consistency

The problem with CQRS is that it makes things more complex because it decreases consistency I hear this argument a lot As the author of a framework that strongly encourages CQRS I obviously am biased against this opinion and disgaree…



Semantic discoverability security

A well known security issue in HTTP is that if you return 404 Not Found for a resource that doesn’t exist but return 401 Unauthorized or 403 Forbidden for a resource that you’re not allowed to access then you might…


Open Source - it's not about free as in beer or speech

I’ve been thinking a bit about open source software and why I’m so attracted to it Often when people talk about the thing that makes open source so great they use the phrase ldquo it’s free as in speech rdquo…


Eventual Consistency is not safe and that's ok

A number of years ago Peter Bailis wrote an excellent post titled Safety and Liveness Eventual Consistency Is Not Safe This post is short and to the point and is a very salient reality check for anyone that is using…


2015

The Noop Monad - doing nothing safely

If you’re a fan of functional programming as I am you’ll know that one of the great things about it is how useful it is But that isn’t the only great thing about functional programming functional programming is also great…


sbt - A declarative DSL

This is my second post in a series of posts about sbt The first post sbt A task engine looked at sbt’s task engine how it is self documenting making tasks discoverable and how scopes allow heirarchical fallbacks In this…


sbt - A task engine

sbt is the best build tool that I’ve used But it’s also the build tool with the steepest learning curve that I’ve ever used and I think most people would agree that it’s very difficult to learn When you first…


2014

OSS diversity - A thought experiment

On the topic of diversity in open source software I have a thought experiment what if an open source project was structured more like a company This is only a thought experiment I’m definitely not advocating that we structure open…


Women in tech - It's a mans problem

A few days ago a panel of four men showed the world that they had no clue about the issues that women in tech faced and how they should be solved The overwhelming theme that I picked up from the…


Introducing ERQX

Today I migrated my blog to a new blogging engine that I’ve written called ERQX Now to start off with why did I write my own blog engine A case of not invented here syndrome Or do I just really…


2013

Fun doesn't mean compromising scalability

Today I read an interesting piece on InfoWorld about Meteor Meteor aims to make JavaScript programming fun again It is an interview with Matt DeBergalis a co author of Meteor about Meteor and why a developer would choose it The…


A practical solution to the BREACH vulnerability

Two weeks ago CERT released an advisory for a new vulnerability called BREACH In the advisory they say there is no practical solution to this vulnerability I believe that I've come up with a practical solution that we'll probably implement…


100 Continue support in Play

The 100 Continue status code in the HTTP spec is one that most people know very little about You kind of read it don't really understand what it's talking about and then just skip over it I didn't know what…


How to write a REST API in Play Framework

A very common question that we get on the Play mailing list is how do you write a REST API using Play Framework There's no explicit documentation on it you won't find a page in the Play documentation titled Writing…


Call response WebSockets in Play Framework

I got a question from a Play user about implementing call response WebSockets in Play Framework This is not something that comes up that often since it means using WebSockets to do basically what AJAX does for you so what's…


What is wrong with Monads?

Nothing is wrong with Monads What is wrong is how people communicate them There are people out there that learn abstract concepts first and then work out how to apply them to solving their every day problems Then there are…


SBT per version global plugins

I'm an IntelliJ user so I have the SBT idea plugin permanently in my global SBT plugins This is fine until I start working across versions of SBT and particularly with milestone builds of unreleased SBT versions because in that…


Advanced routing in Play Framework

We frequently get questions about how to meet all sorts of different routing needs in Play Framework While the built in router is enough for most users sometimes you may encounter use cases where it's not enough Or maybe you…


Java 8 Lambdas - The missing link to moving away from Java

I learnt functional programming but then I decided I liked imperative programming better so I switched back Nobody ever Moving from imperative programming to functional programming is a very common thing to do today Blog posts on the internet abound…


Understanding the Play Filter API

With Play 2 1 hot off the press there have been a lot of people asking about the new Play filter API In actual fact the API is incredibly simple trait EssentialFilter def apply next EssentialAction EssentialAction Essentially a filter…


2012

Comments complement code

Today I read this quote Good code is its own best documentation As you’re about to add a comment ask yourself How can I improve the code so that this comment isn’t needed I just want to say it's a…


Iteratees for imperative programmers

When I first heard the word iteratee I thought it was a joke Turns out it wasn't a joke in fact there are also enumerators that's ok and enumeratees you're killing me If you're an imperative programmer or rather a…


Scaling Scala vs Java

In my previous post I showed how it makes no sense to benchmark Scala against Java and concluded by saying that when it comes to performance the question you should be asking is How will Scala help me when my…


Passing common state to templates in Play Framework

This question comes up very frequently on the Play mailing list so I thought I'd document a quick example of how to pass common state to shared templates in Play Framework when using Scala The use case is typically that…


Benchmarking Scala against Java

A question recently came up at work about benchmarks between Java and Scala Maybe you came across my blog post because you too are wanting to know which is faster Java or Scala Well I'm sorry to say this but…


Why does Chrome consider some ports unsafe?

Today in my Twitter feed I noticed a frustrated tweet from Dan North complaining about why Chrome seems to arbitrarily block connections to some ports giving the confusing error code net ERR_UNSAFE_PORT I've encountered this before and have also been…


My complaint against Haskell

I have nothing against Haskell I've been getting my teeth stuck into some Scala over the recent months and I am loving functional programming immutable types and am even starting to see what's so good about monads So Haskell with…


Hashbangs on the new Google Groups

Hash bang URLs have been a contentious issue at my work over the past week so much so that we completely got rid of them in the project that I'm working on Coming out of the experience I'm not convinced…


ScalaFlect: Statically typed query DSLs

I've been hard at work over the past few weeks redesigning my Mongo object mapper the Mongo Jackson Mapper to support Jackson 2 0 be simpler to use and be far more powerful with less surprises to users Something that…



Open Source Developers

Since everyone's doing it I thought I'd do it too My contribution to the What people think I do meme


2010

Cracking Random Number Generators - Part 4

In Part 3 of this series we investigated the Mersenne Twister and saw how with 624 consecutive integers obtained from it we can predict every subsequent integer it will produce In this part we will look at how to calculate…


Cracking Random Number Generators - Part 3

In Part 1 and Part 2 of this series we focussed on one of the simplest PRNG's the linear congruential PRNG We looked at detail into Java's implementation and then wrote algorithms to crack the seed and to calculate previous…


Cracking Random Number Generators - Part 2

In Part 1 of this series we saw how simple it is to predict future values generated by a linear congruential PRNG In this part we will look at how to calculate past values generated by a linear congruential PRNG…


Cracking Random Number Generators - Part 1

This is the first in a series of posts I'm going to give on how to crack common random number generators Since first posting this series I have lost count of how many people have contacted me asking if I'll…


Facebook OpenID integration in Pebble

I've taken a shot at implementing Facebook OpenID integration into Pebble To see the results at the bottom of this page click Add Comment and then click the Facebook Login link Implementing this has been pretty simple All the magic…


Cocoa Petition

If you've been following my Facebook Twitter or Google Buzz updates you may have noticed I've asked for feedback from beta testers to check that a website I've been developing displays in all browsers This has been a project I've…


Configuring Tomcat to use Apache SSL certificates

In a typical SSL configuration for a Tomcat web server Apache sits in front of Tomcat as a reverse proxy and does the SSL This was the configuration of some systems I work with There are a number of reasons…


2009

Java Concurrency and Volatile

The volatile keyword is a keyword that very few Java developers know the meaning of let alone when they should use it The reason for this I believe is that the reason why it's needed is such a complex topic…


Atlassian Stimulus Package

For five days only you can buy 5 user licenses of the full versions of JIRA and Confluence for only 5 This includes full support for a year and renewal will only ever cost you 5 Furthermore all revenue raised…


Copy and paste between Firefox and the iPhone

Today I decided to have a go at diagnosing why the reversing lights on my car weren't working I quickly worked out that the bulbs were fine so I jumped on Google to see if I could find some information…


2008

The method of proposal

To save explaining a hundred times over how I proposed to Beth I've decided to put it in a blog post much easier that way For those of you that aren't aware I proposed to Beth my girlfriend of 15…


List of SuppressWarnings arguments

I hate compiler warnings showing in my IDE It's messy and it usually indicates that something is bad But not always Sometimes when working with third party libraries you can't avoid warnings like unchecked assignments These are easy to get…


Chrome - a new rich client platform?

Just when I finally got a mobile device that was just powerful enough to use most websites without pain what does Google do They bring out a new browser which raises the bar for the minimum requirements needed to run…


Google Chrome

When I first heard about Google Chrome I was very skeptical Why does this world need another browser to contend with in producing cross browser websites If open source is what you want what's wrong with Firefox So I had…


RIP #herring

herring the long standing meeting place for many of ANU's 2004 software engineering graduates has passed away Born in 2002 on the Australian IRC network oz org herring has been a lively channel for keeping in contact arguing about meaningless…


JPA 2.0 - Early Review

A few days ago JSR 317 the specification request for JPA 2 0 released an early draft review of the specification Today I had the chance to skim through it to see what new things it had to offer Something…


Fair Trade Coffee in the Sydney CBD

I've chosen the title of this blog post very deliberately because I want people who are looking for fair trade coffee in the Sydney CBD to be able to find something when they search Google for it I started working…


JSR-666 Extension: Significant whitespace

In many software development teams that I've worked on code reviews are done by printing out the code to be reviewed This is in turn read and scribbled on with red ink by developers suffering from a delusion that their…


JPA 2.0 - New features - Part 1

In my previous blog post I wrote about asking the JPA presenter at the Sun Tech Days if JPA will support collections of basic types I've now done some research of my own and found that most of the features…


Sun on JPA

A few weeks ago I attended the Sun Tech Days in Sydney I was pretty impressed with the breakfast they provided In fact all the food was great The whole place had a really geeky feel to it and I…


Facebook authentication in Java

If you're a web developer who likes writing practical quick and simple utility applications for yourself and others to use then Facebook is the dream platform You don't have to write any user management sign in password change pages etc…


A new blog

Welcome to my new blog This blog is going to contain everything from personal posts about my life which probably won't interest many people to technical articles about Java and related Java frameworks


2006

Back to Bangkok

My trip is now starting to come to an end After my last blog entry I spent a night in Mai Sai took a bus to Chiang Rai and then stayed there the night Chiang Rai was kinda boring I…


Thai Cooking

One of the best experiences I've had so far on this trip was doing a Thai cooking course No one from my tour wanted to do it instead I ended up doing it with an Intrepid group there were 6…


Chiang Rai and the Golden Triangle

How does deep friend silk worms bamboo worms and crickets sound Well last night I tried them all for about 60c I got a platter of them with chilli sauce mmm The taste was ok but the texture A taste…


The Trek

Well 4 days of trekking through the hilltribes do I have something to blog about Day 1 The first day started with a stop off at the markets to buy food for the journey then we headed up into the…


The Thailand Coup

Rather than saying bits and pieces about the Coup in my blog entries I thought I'd make one blog entry that I'll graduatally add to with all my thoughts on the Coup that way the rest of my blog can…


Chiang Mai

Well what a cool trip this is turning out to be I can say that I was in a country which was a constitutional monarchy one day and a dictatorship the next That sounds all very exciting but really it's…


Kanchanaburi

Well today I spent most of the day in the area surrounding Kanchanaburi To start off with I had a traditional Thai breakfast of rice soup with prawns It was quite weird to be eating rice in soup I don't…


New friends

Well I'm now on my tour and so finally have people to hang out with and talk to I spent most of yesterday wandering around the malls I'm amazed at how American these malls are more American than Australia One…


Day 2

Well today was kinda a laid back day I could have gone and visited lots of temples or seen the sights but the thing is the thing I'm really here for is to see other cultures Temples and touristy stuff…


Thailand

Well today is my first day in Thailand I can say that I've definitely been ripped off already but as the day has gone along I've become more aware of how not to be ripped off and how to bargain…


About

Hi! My name is James Roper, and I am a software developer with a particular interest in open source development and trying new things. I program in Scala, Java, Go, PHP, Python and Javascript, and I work for Lightbend as the architect of Kalix. I also have a full life outside the world of IT, enjoy playing a variety of musical instruments and sports, and currently I live in Canberra.