Hello and welcome to WanariLeaks.

XML Drawables for Android Developers

It’s good to know what you can do in xml to draw something on the UI. I recently noticed that I and some colleagues tend to overcomplicate simple tasks, because we don’t really know the built-in possibilities. Sometimes the design requires a not too complex, but not so simple (e.g. a shape) drawing on the […]

How are Scala Implicits more explicit than Java Generics?

This blogpost will show you how implicits can solve problems arising from/because of type erasure, proving that Scala implicits sometimes are more explicit than Java generics   All of these code snippets can be copy-pasted to the REPL. Some of the require-s will fail, those are just to demonstrate the expected work without the need […]

How Can I Use WebSocket on iOS?

If you’re a mobile developer, there’s a pretty good chance that you’ve used some kind of networking. Apps most often use a REST API, and usually it’s enough, as it allows fast and easy JSON based communication (here is a JSON object converter). One of the downsides is, however, that REST communication requires the client to […]

ZeroKit and Firebase Demo App First Look

If there is sensitive data to be stored when developing a mobile app, security is of utmost importance. Developers can make hackers’ work harder, but it’s almost impossible to totally prevent a data breach if they are at it. Key and encryption handling can be a real pain-in-the-ass. Storing encrypted data is one thing, but […]

How to write cancellable http requests with Angular $http service

Inspiration The recent spread of the mobile internet connection almost completely changed the job profile of almost every frontend-developer. We steadily try to make our web pages responsive, and fearlessly fight against a wide variety of mobile browsers. But the mobile internet access has one more, a less freqently mentioned danger that causes sleepless nights […]

How to Write a Custom Protocol for Gatling?

I like to try out new tools and new things, so I decided to loadtest my newly written “simple chat” application to see how AkkaStreams handles load. Starting with load testing, there are some tools out there. The top three are JMeter, Gatling and Tsug. Tsug is written in erlang, and my half year long […]

Speed: Recommendation for Keeping and Manipulating Objects

It is often the case at Wanari that we need to convert objects of one kind to become objects of another kind. This happens because we use different models in the different levels of an application. The question obviously came up: how should we do this? Does it matter what kind of a collection we […]

A Quick Guide to Implement a Cross-Browser AngularJS Pull-to-refresh Directive

What made me do this? As a newbie in frontend development, I have to admit, a few months ago I couldn’t even imagine myself writing my own UI component. In those good days, I just carelessly included other, ready-to-use components and never thought about why and how they really work. Sometimes these plugins caused me […]

Deploying a Play! app to Azure via Jenkins

Here at Wanari, we use Play Framework for many of our projects and maintain products on our own servers. Not too long ago, a client of ours requested to move such product to Azure Cloud. After a bit of research we found 3 options: We create a Virtual Machine on which we arrange the environment we use on […]