My bookmarks

This is a list of Alvin Alexander's bookmarks.

The URL shown has worked out well so far for letting me add an “Image Chooser” to my current Android application.

In case that URL every goes away, this code is needed to launch the Intent:

Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(i, RESULT_LOAD_IMAGE);

The people at Lion’s Roar compiled a list of their favorite ten Buddhist books. They’re not my favorite ten books, but it’s nice to see someone else’s perspective.

I never thought of the Dalai Lama as being “relentless,” but Newsweek thinks he is:

The Dalai Lama long ago perfected a similar performance. He invariably describes himself as a “simple Buddhist monk”. But in his saintly simplicity he has not only survived more than 50 years of exile but has done more than any other individual to establish the cause of Tibetan...

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