Tech and Stuff

  1. Deploying Scala/Spray App on Cloud Foundry

    A few months ago I was playing with Scala/Spray on Bluemix (Cloud Foundry). Deploying it wasn’t as straight forward as I thought, here is what I learnt.


  2. Reagent - ClojureScript and React made easy

    Recently I’ve started reading into Clojure and came across something really interesting. Clojure is a JVM based functional programming language, based on Lisp. React is a recent web frontend framework from Facebook that has been everywhere lately. React a reactive Javascript framework, similar to AngularJS, but takes a different approach in component management to make it much faster and more scalable. Now this is where it gets interesting - Clojure can be compiled to Javascript via the ClojureScript plugin. Combine the two and you get Reagent, a framework that integrated them together nicely.


  3. Generating Java Spring-MVC code from Swagger Spec

    (Edit, July 2017: This Async Spring template in Swagger codegen is deprecated and no longer maintained. Please use the normal Spring template or use a custom template instead. You’ll probably want the newer streaming API oriented convention in Spring 5.x anyway. The plugin and configuration example should still work with other available templates. Keeping this post for reference purposes) REST services skeleton code generation is a quick way to get started in implementing the service from popular Swagger spec describing the interface. In this post we’ll look at generating Java Spring MVC code from Swagger spec. There are a few frameworks out there, but at the time I couldn’t find the one that I want - and so I’ve created a new template for my needs. Here is a quick walkthrough on setting up code-gen for Java Spring MVC project.


  4. Things You Should Know Before Choosing Bluemix

    About Bluemix. Bluemix is a cloud service provider that let will host your web app for you on the cloud. Similar to Amazon’s AWS, Microsoft’s Azure, Google’s Cloud Engine, Saleforce’s Heroku, Redhat’s Openshift, etc.


  5. Magnet Pattern in Scala

    Continuing from the previous post on Scala’s Cake Pattern, here is a quick explaination of the Magnet pattern. Magnet Pattern You are probably familiar with method overloading (ie. multiple method with the same name, but different parameter). This is very popular in Java, but is still not available in some modern languages like GoLang because designer to argue it clutters up the language.


Gogs Git + Drone Ci for small teams

8 3

7 8

In-Memory GeoIndex for Go (Lang)

5 0

Cloudant/CouchDB Spring Boot Starter

5 3

Lightweight tool to collect remote syslogs in-memory and display on web console

3 1

Aggregated Status Monitoring Tool

2 0

Standalone TOTP Auth for Android Wear (Nougat)

2 1