Tinkering with Code.

Simon Ström

Written by Simon Ström as a way to remember. It's a dev log of thinks I want to remember.

Working with Universal and App links

27 February, 2018·2 minute read.

Apple and Google provide a way to deep link into the application via a normal web url, call Universal links and Applink respectively. It is…

Add methods to a Ruby class

16 January, 2018·3 minute read.

We can always extend classes in Ruby. Both predefined and classes we create ourself. We say that classes are always open . If you want to…

Add support for drafts in gatsby

14 January, 2018·5 minute read.

Adding support for drafts in Gatsby. I started out with a blog starter for Gatsby. Pretty handy. Easy to get started. But it felt like magic…

Resources for starting with iOS and Swift

07 January, 2018·3 minute read.

I got a new job and here our main platform is iOS. Im a web developer so this should be interesting. Will try to document what and how I…

Installed Gatsby

06 January, 2018·1 minute read.

Started a gatsby blog. Will migrate old blog posts here later.

Deploy to Kubernetes running on Google Container Engine

04 December, 2016·3 minute read.

We will setup a small cluster of 3 n1-standard-1 instances. They cost around $25 per month. So the cluster will cost you somewhere above $7…

Tag tests that uses network - ExUnit

22 October, 2016·1 minute read.

Tag tests as tests that require network, and only run them when needed. We do this to speed up that test suite. Ideally you should not rely…

Working with Ecto in tests

19 October, 2016·2 minute read.

Working with our application and writing all those needed tests are great in the beginning of the project when everything is simple. Writing…

Grouping tests with ExUnit (Elixir)

22 July, 2016·1 minute read.

In an old post I talked about tags in elixir and how we could use them to fake grouping of tests. See Elixir testing - Tag tests in…

Working Ecto embeds in Phoenix

15 May, 2016·3 minute read.

I was playing around with a small phoenix app and wanted to embed some data in the model instead of of having an additional table. I want…

Elixir - Phoenix: Simple Authentication

02 January, 2016·8 minute read.

A simple Phoenix authentication flow for an JSON api. Using JSON Web Tokens via Joken and Mellon for access controller. The basics…

Angular: Caching of remote data in services.

08 November, 2015·3 minute read.

Often data displayed to the user doesn’t change that often. And when that is the case caching is vital. Not only so your site doesn’t make…

Playing around with Elixir Process

25 October, 2015·7 minute read.

Elixir and Process In Erlang and Elixir we talk about process the way you would talk about threads in some other language. They are not…

Elixir: A simple server with Plug

25 October, 2015·5 minute read.

If you want to build a web service with Elixir, you are probably using some framework such as Phoenix . And that is all fine. You probably…

Build Bomberman Game in Elm

29 September, 2015·1 minute read.

To learn something I often need an entire project. It’s not very nice to just read docs, and APIs etc. We all need to code. So this is me…

Start from zero with Elm

29 September, 2015·2 minute read.

Elm is a functional front end language that compiles down to javascript. It looks neat so let’s start from scratch by building something…

Start from scratch with React/Redux

16 September, 2015·3 minute read.

Using a javascript front end framework is very nice. You might start with tools like Yeoman for scaffolding out everything you need. However…

React with Bourbon

28 August, 2015·2 minute read.

What will we do? We will create a simple react/flux application using yeoman. Then we will install Bourbon and Neat and configure gulp to…

Setting up a S3 bucket for file upload

30 July, 2015·4 minute read.

Amazon has great products, and S3 is definitely one great product. However, the administration console is confusing at best. You can do…

Setup logging in JBOSS with jboss cli.

22 July, 2015·1 minute read.

Logging in JBOSS. Let us setup some logging rules for JBoss. We want our log to be split between two files. A server.log that contains…

Change file encoding in the terminal.

14 July, 2015·2 minute read.

The problem We have a large legacy project that we are converting from an ant build to maven and from SunAS to JBOSS. We had some problems…

Goolge map directive - Angular

08 May, 2015·1 minute read.

A simple way to add a Map to your webapplication. This example uses a directive in which we pass two paramters: city and address. To include…

Postfix - Redirect all outgoing mails to local user

22 April, 2015·1 minute read.

While developing an application I often have to test, and use the email feature. Either I register and use my normal email, or a dump…

Elixir testing - Tag tests in ExUnit

21 April, 2015·3 minute read.

Scope tests in ExUnit to reduce code duplication and have cleaner code. Update July 2016! This blog post is old, and things change. ExUnit…

Problems deploying Phoenix to Heroku

17 April, 2015·1 minute read.

I tried to deploy a sample Phoenix application to Heroku so I read some blogposts about it etc. Didn’t get it to work. There were…