Keep your Intents in your Activity

There is this pattern commonly used with Fragments which is having a public static Fragment newInstance() method to instantiate them. The reason behind this is, since Fragments must (or at least are recommended to) have an empty constructor, to pass your arguments through this method via a Bundle to the…

Generate Android Log Tag in Studio/Intellij

Everything I do more than once I try to automate. For example creating a static variable TAG in a class for logging. In Android Studio/Intellij you can create a live template to make this quicker. Go to Settings > Live templates > Add, enter tag in the abbreviation, a…

Inject dynamic host IP address with Gradle

If you're developing an Android app which requires any kind of server you probably have to update the IP address of your local testing server every time you start developing. Since as developers we don't want to do things more than once, we need to automate that. Luckily with the…

Adapt Phantom Ghost Theme

About 2 months ago I released this theme you're seeing for ghost. A few people asked me how to cosmosize fonts, css, etc. so I thought I'd write a brief summary of how to edit this theme. I suggest creating a fork of phantom on GitHub and clone your fork…

Phantom Ghost Theme

Finally, after about nearly 3 months of being down I took to the time to finish the Ghost theme to a point where don't need to be ashamed of publishing it. The blog is up and running again, I migrated from Wordpress to Ghost which wasn't that easy because my…