My 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);

This method isn’t what I need for my purposes, but I’m using it as a starting point:

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:

“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 to external services, testing with mocking of external services.”

“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 reprinting what remained of the old.

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:

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.

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 with fixed focus lens. It can shoot still images with a maximum resolution of 2592×1944 as well as Full HD 1080p video @ 30 FPS and 720p video @ 60 FPS.

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 my takeaway.

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 skills will keep getting better and better.

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:

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: