Articles in the Tutorials category

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

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

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

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

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

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

  8. Using Dockerized MySQL for Local Development

    Working with a database is pretty much a given for most of the projects I've worked on lately, which means that in order to get any work done locally, I've had to install a MySQL server, configure it, add the users and databases for each project, and grant the permissions …

Page 1 / 2 »