Articles in the Tutorials category

  1. Reviewing Pull Requests Locally

    When reviewing a pull request, I often like to pull the code and actually run it, because sometimes code that looks fine at first glance doesn't actually work. If you're reviewing PRs on GitHub, then you can use the GitHub CLI to quickly check out a PR locally, but that …

  2. 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 …

  3. 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>
    
  4. 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 …

  5. 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 …

  6. 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 …

  7. 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 …

  8. 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 …

Page 1 / 2 »