Hello and welcome to WanariLeaks.

Sharing code-love with youngsters

a.k.a. I WANT THEM TO LEARN AND NOT JUST PLAY MINECRAFT ALL DAY I’m writing my post mainly to moderately desperate parents seeing their children in front of computer screens flooded with seemingly useless games. I’m also writing my post to excited older brothers/older sisters/uncles/aunts whose lives’ are devoted (~committed, ha ha.) to making the world […]

Adventures of a First Time Junior Dev

Being on the verge of employment for me was a rather scary situation as a wannabe developer. There were so many doubts in my mind – most of which in retrospect were absolutely irrational. As of now, I’ve been working at Wanari for 3 months. Here I will write about my fears as a student, […]

Converting Your Project to Swift 3.0

Swift 3 is the first update since Apple announced Swift would be going open-source, and is packed with new features based on community direction. When converting to Swift 3, you’ll notice that practically every file needs changes! That’s largely because, all the Cocoa API names have changed. Or to be more precise, the API is […]

Working with Microservices in an Ideal World

Generally, microservices are great. In theory, they are divided up well, they are scalable, and they can be maintained easily. With one word, they are great. However, there are some challenges you will most probably encounter when working with microservices. This post will help you get a grip on the world of microservice-development, its challenges, and […]

Play Framework WebSocket in Java

What is WebSocket? When should I use it? WebSocket is an amazingly fast, easy to use and full-duplex way to communicate between client and server. WebSocket is recommended if you want a fast real-time application like a bid application, or a real time poker game. It’s easy to broadcast messages between users (or just send […]

RxMp4Parser for Android App Developers

More and more Android apps provide video editing based features. This library is not a complete wrapper for the most recent Mp4Parser library. However, it provides a few useful features that are usually used by these apps. If it does fit your application’s needs, feel free to implement those features based on the current implementation. The […]

Java8 orElse versus orElseGet – easily misused

So, the Java8 Optional has two really cool (and similar) functions: the orElse() and the orElseGet(). If we quickly read the javadoc for each, we will only see a small difference; one of them has a T type as a parameter and the other has a function which must return with T (as a parameter). […]

A Beginner’s Guide to XML Parsing in Swift

Tons of document formats using XML syntax had been developed, like RSS, Atom, SOAP and XHTML, so it’s good to know, how to work with them. If you are not familiar with XML, it’s basically a precisely formatted text or string, which can be parsed into an array of objects containing the precious information.

Rx Wrapper How-To for Critical Resource Tasks

Android contains several APIs that hold resources back. They need to be released before closing the current Activity or any other UI part. Doing things the old way, you are responsible for releasing these resources at the end of each activity. With complex tasks, it becomes quite hard to keep track of all of these resources. It is even more complicated when you use them in asynchronous tasks. A small programming overhead will eliminate this problem by replacing the async tasks with Rx streams and scheduling them on the background threads. So, Rx wrappers will ease thread handling. Here is how I use Rx wrappers to make them as awesome as possible: