All articles

  1. Dark Mode Aware Live Wallpaper

    Recently I’ve been playing around with an iOS device, and one of the things I found I really liked was the ability to set a wallpaper that would change depending on whether or not the device had dark mode enabled.

    A screenshot from an iPhone showing some wallpaper options that change depending on whether or not dark mode is enabled.

    I use a Pixel phone though, so this doesn …

  2. Cross Platform Apps The Hard Way - Part 3: Surrender

    I've been debating on whether or not to write this post for a few months now but I think it's time. I've decided to put the cross-platform apps with C development series on hold indefinitely. This year has of course been crazy with the covid-19 quarantine and social justice movements …

  3. PiHelper: A Native Companion App for your Pi-hole

    Ads are an unfortunate byproduct of the freemium internet that we've collectively chosen through our actions, and worse yet are the trackers they've inspired to follow everyone around our online lives. As someone who values their online privacy, I was elated to stumble upon Pi-hole, a network-wide ad blocker. Sure …

  4. 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>
    
  5. Moving to cgit

    Earlier this year I wrote a blog post on how to set up gitweb in order to be able to view your repositories in a browser. Originally my intent for using gitweb was not for my own personal use but more to be able to share my code with the …

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

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

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

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

« Page 3 / 7 »