GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • craigrussell Technical blog from Craig Russell.
  • About me

This view

  • Original page
  • New address

GeezerVison is showing craigrussell.io — Craig Russell Technical Blog

Latest Posts

  • Should Android Repositories expose suspend functions? (Mar 20, 2022)

    Discusses whether the Repository layer should expose `suspend` functions or not.

  • Comparing StandardTestDispatcher and UnconfinedTestDispatcher (Jan 19, 2022)

    Describes the two provided coroutine test dispatchers, standard and unconfined, the difference between them and when to use each

  • Creating Markdown Links (Jan 18, 2022)

    How to create links in markdown, both those which display just the URL and those which display custom text

  • Apple Shortcut Finder Integration (Jan 13, 2022)

    Apple Shortcut which integrates with Finder, for an easier way of adding images to a blog post

  • Getting the day of the week in an Apple Shortcut (Jan 10, 2022)

    How to get the day of the week when using Apple Shortcuts

  • Easier git commands using git-number (Jan 07, 2022)

    Easier git commands using git-number, which can be used to number each file listed in git commands for a quicker way to choose files

  • Lightweight Journal Built on Apple Shortcuts (Jan 07, 2022)

    Building a journaling tool using Apple Shortcuts and Notes

  • Testing Android Coroutines using runTest (Dec 07, 2021)

    The latest tooling to help test Android Coroutines, provided as part of the kotlinx.coroutines test libraries, which aim to “provide utilities for efficiently testing coroutines”.

  • Preventing coroutine cancellation for important actions (Mar 11, 2020)

    A pattern for launching coroutines which cancel when the Activity or ViewModel is destroyed, but support allowing important parts of the coroutine to run uncancelled.

  • Unit Testing Coroutine Suspend Functions using TestCoroutineDispatcher (Nov 08, 2019)

    Kotlin coroutines provide an elegant way to write asynchronous code, but sometimes coroutines make it difficult to write unit tests. This post describes how to use TestCoroutineDispatcher to write efficient and stable unit tests for code written with coroutines.

  • Code Confessions (Jul 25, 2019)

    Code Confessions; openly confessing your coding sins to your team. Involve your team and absolve yourself.

  • A WorkManager Pitfall: Modifying a Scheduled Worker (Apr 23, 2019)

    A potential WorkManager pitfall when refactoring or deleting your Worker subclasses.

  • Installing Fathom Analytics on Amazon EC2 (Mar 15, 2019)

    How to install the privacy-focussed Fathom website analytics on an Amazon EC2 instance.

  • Adding Author tag to RSS Feed using Hugo static site generator (Mar 14, 2019)

    How to include the author tag in the generated RSS feed for a Hugo-generated site.

  • Send Firebase FCM Push Notification from AWS Lambda (Mar 06, 2019)

    An example of how to configure an Amazon AWS Lambda to send a push notification to Firebase FCM, written with the Node.js 8.10 runtime.

  • Coroutine Support in ViewModels using the new ViewModelScope Extension Property (Mar 05, 2019)

    How to use Coroutines in ViewModels, making use of the new ViewModelScope extension property. This allows coroutines to be cancelled automatically when the ViewModel is being cleared.

  • Shooting Yourself in the Foot While Adding an Element to a Kotlin List (Mar 02, 2019)

    The functions `add()` and `plus()` which are available on some Kotlin collections, and how despite their similar looking names, their underlying implementations can make a big difference.

  • Scripting with Kotlin - Kscript (Feb 26, 2019)

    kscript, an easy way to write and execute scripts in Kotlin. This post covers what kscript is, how to install it on a Mac, and offers some kscript examples.

  • Breaking Up With Medium (Feb 26, 2019)

    Medium. We need to talk. 💔

  • Launching a Kotlin Coroutine for immediate execution on the Main thread (Feb 15, 2019)

    If you launch a coroutine using launch(Dispatchers.Main) while already on the main thread, will the code execute immediately?

  • Kotlin — Measure and Execute a block of code (Feb 14, 2019)

    Kotlin utility function to execute code and measure how long that took

  • Android Magellan Web SQL Vulnerability and WebViews (Dec 18, 2018)

    Are Android WebViews vulnerable to Magellan vulnerability?

  • RecyclerView — More Animations with Less Code using Support Library ListAdapter (Mar 21, 2018)

    ListAdapter is a new class bundled in the 27.1.0 support library and simplifies the code required to work with RecyclerViews

  • Android WebView — Downloading Images (Feb 18, 2018)

    How to download an image from a WebView triggered by the user long pressing the image

  • Be Careful What You Log — It Could Crash Your App (Jan 30, 2018)

    Diving into a crash caused by a log statement with mixed parameter styles

  • Android 3rd party keyboards and the done button (Jan 25, 2018)

    Exploration of a bug report about a third party keyboard not submitting when done button pressed

  • Defining a Live Template for Unit Tests (Dec 29, 2017)

    How to define a live template in Intellij/Android Studio which can be used to quickly add a unit test in the exact style you prefer.

  • Representing View State with Kotlin Data Classes (Nov 30, 2017)

    Using Kotlin data classes to represent view state

  • Stripping log statements using Proguard (Oct 30, 2017)

    Stripping log statements using Proguard

  • Kotlin - Beware the Silent Cast (Aug 08, 2017)

    Beware a silent cast that can cause unexpected behavior

  • Disable Crashlytics Crash Reporting (Fabric) on DEBUG Builds (Jul 03, 2017)

    How to disable crash reporting for your BuildConfig.DEBUG builds when using Crashlytics, part of the Fabric tool suite.

  • Android MVP: Keeping Presenters Alive (Aug 15, 2016)

    This article outlines a solution for allowing Presenters to survive a View’s configuration change in an MVP architecture.

  • SSH Keys with Multiple GitHub Accounts (Aug 10, 2016)

    How to manage multiple SSH keys for different GitHub.com accounts so that you can access multiple accounts and projects, each with different credentials.

  • Unit Testing Asynchronous Tasks from Bolts-Android (Jun 02, 2016)

    How to write unit tests for asynchronous code using Bolts

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.