Recently I got a bit fed up with my XMonad configuration and decided to add some of the missing bits. After all I made the switch with productivity in mind so it would be silly to endure even the slightest tradeoffs. If you don’t know what XMonad is – it’s an extremely customizable tiling window manager – the default configuration is, however, pretty crude, so it doesn’t really make sense to switch if you’re not going to tweak it, even if just slightly.
To the point – one of the things I was missing was the ability to open a new terminal emulator window in the same working directory as the one I had focused. I felt that existing solutions such as the WorkspaceDir extension were lacking and not exactly what I was looking for. And so I had to write one myself. Since I figured I couldn’t be the only one in need I decided I’d share my snippet.
Read more
As promised in my somewhat lengthy “Hello World” post, although much later than intended, I finally got down to writing a follow-up post.
I remember one of the very first lectures during my uni course – when assembly language was being introduced. Nothing too deep, really. However, I recall a statement being made, that probably still lives in the minds of the many that heard it (and perhaps even more that didn’t). Namely – that assembly code is not portable.
In this post we’re going to take a look at how misleading that statement is and explore writing polyglot assembly code.
Read more
Since dagger-android is fairly new, every article on the Internet shows the “old” way of incorporating Dagger 2 into your Kotlin app, which involves writing some amounts of boilerplate code (well, so does any app using dagger, but at least with the addition of dagger-android you can try to cut it down a bit).
While for seasoned veterans it may be simple, I thought that, especially for less experienced developers, a fully working example could be useful. This is an example of the most basic setup using dagger-android in Kotlin.
Update (2018-02-24): When this guide was first written it was using 2.11-rc2 version of dagger. Dagger extensions for Android have evolved since and now it’s even easier to set things up. Below you can find the updated guide using version 2.12.
Read more
It is a long honored tradition for IT texts to start with these famous words. Over the years, the languages have evolved, so did the paradigms by which we write our code – yet almost every book or tutorial, on any language, still begins with this simple piece of software.
Since I don’t want to stir things up and be some kind of a rebel this blog shall not be different – in this particular case.
Read more