tutorial

How to use the Android 7 split screen feature (tutorial)

Android 7 comes with a cool new “split screen” feature where you can look at two apps running at the same time. This little pictorial/tutorial shows how to use this split-screen feature.

Source code for an Android AsyncTask (REST client) example

I just got back into using an Android AsyncTask, and it took me a little while to re-load the concepts in my head. I used AsyncTask’s a few years ago, but haven’t used them since.

To help remember how they work, I created a little AsyncTask example project, and I’ve included all of the source code for that project here. I’ll show all of the source code for my classes and configuration files, and then explain the code at the end.

An example Scala ‘App’ for the Cats “IO Monad” article alvin June 11, 2017 - 7:38pm

As a quick note, if you’re interested in using the IO monad described in this IO Monad for Cats article, here’s the source code for a complete Scala App based on that article:

I wonder what else I did

A strange thing about the illness I’ve gone through is that I don’t have any memory of certain events.

For example — from what I can gather — during my worst time(s) I wrote this Collection of ScalaTest BDD examples using FunSpec tutorial, but I have no memory of writing it. I know that I wrote it because (a) it’s my writing style and (b) it’s on my website, but other than that, I have no recall of it. None. Zilch.

For a little while that bothered me, but now I look at it as something that’s interesting. I think it’s weird/amazing that I could write a tutorial and have no memory of writing it (or the process of researching it), but I guess that’s how the brain can work when things are screwed up. During the same time I also wrote this note to “buy some december at the grocery store,” so I know my brain was definitely going out to lunch at times.

I can see how this can be frustrating for people with chronic memory problems, but at the moment I look at it more as a mystery, like, “Huh, well, I wonder what else I did during that time?”

“Alexa written with Akka” = Aleka alvin September 4, 2016 - 7:05pm
Table of Contents1 - Background2 - Assumptions3 - 1) Create an SBT project4 - 2) Create a Scala app5 - 3) Messages6 - 4) The brain7 - 5) The mouth8 - 6) The project directory structure9 - 7) Running the application10 - The source code11 - What’s next

As a way of demonstrating how to write code with Akka, Scala, and functional programming (FP), I started creating a new project this weekend. I named it Aleka, because it may eventually be like Amazon’s Echo/Alexa, written with Akka (and Scala).

(I suppose a better name might be “Ekko,” after Echo, but I have a niece named Aleka, so unless she objects, this works for me.)