Articles in the Tutorials category

  1. Reducing the Memory Usage for my Spring Boot App

    For a couple of years now, I've been working on a self-hosted family budgeting application called Twigs. Seeing as I'm an Android developer, I spend most of my days writing Java and Kotlin. Thus, it seemed like a good idea to stick with the languages I'm most comfortable with for …

  2. Reading Files from a Tar Archive

    TIL you can quickly read files from a tar archive with this command:

    tar xOf <tar-file> <file-you-want-to-read-here>
    

    This works even if the file is compressed. You can get a list of all the files in the archive by running this:

    tar tf <tar-file>
    
  3. Adding C Code to your Android App

    Create a new project, or download the zip file/clone the repo from here. I've chosen to start with a new project targeting API 15 and up, including Kotlin support and the AndroidX libraries.

    Side note: you could just create a C++ project at the Activity selection screen. That's not …

  4. App Shortcuts in iOS 13

    App Shortcuts (also known as Home Screen Quick Actions), are the nice little popups that allow users to quickly jump into a specific section of your app, as seen in the screenshot below.

    Apple has a really nice guide on how to implement these in your own apps, but the …

  5. Quickly Sending Code as a Git Patch

    The other day at work I was helping a coworker troubleshoot something remotely, and we eventually decided to split up and troubleshoot individually to try and cover more ground. He hadn't pushed his changes from his branch and I didn't want to completely drop what I was doing on my …

  6. Swift Combine's Result.Publisher

    Coming from a background in Java/Android development, I’m fairly familiar with working in RxJava and the reactive style of programming. Without getting into the details of said style, there’s a particular operator you can use called Observable.just(), which allows you to wrap a single value in …

  7. A Simple Self-Hosted Git Server

    If you're writing code for any purpose, I sincerely hope you are using some kind of source control. I personally am only really familiar with Git, and as such it is my go-to tool for keeping track of my code. Nowadays, there are plenty of hosts for pushing your code …

  8. Spring Boot Config Priorities

    Recently, while working on a job, I ran into an interesting problem with Spring Boot: the configuration files I had defined using the @PropertySourceannotation were being overridden by the application.properties file, which I had also defined with a @PropertySource annotation. Why wasn't Spring prioritizing my configuration files correctly …

Page 1 / 2 »