My bookmarks

This is a list of Alvin Alexander's bookmarks.

“Simple (micro)service which demonstrates how to accomplish tasks typical for REST service using Akka HTTP. Project includes: starting standalone HTTP server, handling simple file-based configuration, logging, routing, deconstructing requests, unmarshalling JSON entities to Scala's case classes, marshaling Scala's case classes to JSON responses, error handling, issuing requests...

“But by 1940, all of his books had gone out of print in war-torn England, and all remaining copies in Japan were destroyed in the great fire of 1945, which consumed three quarters of Tokyo. In 1946, Christmas Humphreys, president of London’s Buddhist Society, set out to undo the damage and traveled to Tokyo, where he began working with Suzuki on translating his new manuscripts and...

This link contains a list of Android Fragment class lifecycle methods. See that link, but here are the key notes:

The core series of lifecycle methods that are called to bring a fragment up to resumed state (interacting with the user) are:

  1. ...

There’s a good Cloud Atlas infographic at the URL I linked to, showing the struggler, villain, and savior in each story line.

Realmac Software has been schooling developers on how to make great apps since 2002. So when they brought Typed to OS X back in December, I couldn’t wait to get my hands on it. Two months on, I’m convinced it’s the best Markdown editor you can get on the Mac, so I spoke with Realmac founder Dan Counsell to find out how he and his team built it.

“Products always...

Song Meanings is a website where users can comment on what they think the lyrics of a song mean. I linked here to the song Clocks by Coldplay. If this site doesn’t have the exact/correct meaning of a song, at least it gives you different interpretations of what other people think it means, and it can also have pointers to other resources where you can learn more.

This link shows a lot of Scala foldLeft examples, including sum, product, reverse, average, encode, decode, and more.

Although people have been toying with USB webcams on the Raspberry Pi for some time now, the release of the official camera module has reinvigorated interest in video related projects.

The official Raspberry Pi camera module is a Full HD camera that plugs into the Raspberry Pi via the Camera Serial Interface (next to the Ethernet port) on the device. The sensor on the camera is a 5MP...

If you happen to be looking for the best songs of the 1970s, this list of “List of Billboard Hot 100 number-one singles of the 1970s” is very helpful.

From the article:

  1. You are what you make
  2. Great ideas start in conversations
  3. Stop rendering and start making
  4. If you’re not failing, you’re not making

There are eight other “ideas”, but that’s make take-away.

Philosopher Dan Dennett makes a compelling argument that not only don't we understand our own consciousness, but that half the time our brains are actively fooling us.

This is an interesting piece where a person writes “advice to their younger self”, in this case regarding design school. “Give yourself permission to screw up” is a good one for me.

Something I’d add to this is that your knowledge builds up over time, like a snowball rolling down a snowy mountainside. If you stick with it and get better every day, your...

Lisperati looks like an interesting website. It apparently has only a few tutorials, and those are about Lisp and Haskell.

I started using my 2013 MacBook Pro which is now running OS X Yosemite, and it very consistently crashes after (a) I use it with the lid closed and connected to an external monitor, and then (b) disconnect it from the external monitor and attempt to use it as a laptop again. It also crashes when I put it to sleep while still connected to the external monitor and then attempt to wake it up....

From their website:

“ScalaCheck is a library written in Scala and used for automated property-based testing of Scala or Java programs. ScalaCheck was originally inspired by the Haskell library QuickCheck, but has also ventured into its own.”

From the Typesafe website:

“Today, we're pleased to announce the open source availability of dbuild, a tool we use within Typesafe to test Scala's ecosystem. dbuild is a tool which can take a disparate set of projects and compile them against each other, ensuring that modifications to code in one project does not break code in another project. dbuild was instrumental in...

The link is an article that discusses how to implement algebraic data types in Scala. In short, Haskell defines ADTs like this:

data Bool = False | True

In Scala you implement ADTs like this:

sealed abstract class Bool
case object True extends Bool
case object False extends Bool

which lets you do things like this:

val not : Bool => Bool  =  ( b...

ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2 and JavaFX 8. Every ScalaFX application is also a valid Scala application. It supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX2 or JavaFX8 are supported.

ScalaFX uses a simple, hierarchical pattern for creating new objects and building up the scene...

Magic Leap is a company that’s creating an “augmented reality” device, possibly/probably a pair of glasses. Google just gave them $542M.

There’s an old story that Kekule dreamed of a snake swallowing its tail (an Ouroboros), and from that he made the creative jump that benzene is formed in the shape of a ring. There are quite a few articles on this, but the link shown at least attempts to put a little research behind this in the first few paragraphs.

I was reminded of this when reading...