Playing Video from a URL in iOS7

Here are a few quick notes about how to play video from a URL in iOS7. We will discuss usingĀ MPMoviePlayerController for embedded video andĀ MPMoviePlayerViewController for standalone full screen playback. These two classes have very similar names. So, please be careful about that.

Continue reading

Advertisements

Couchbase Atomic Counter and Java Client

The atomic counter feature of Couchbase has been discussed extensively. But, a few crucial issues seem to have been glossed over. Most tutorials, such as this, as well as the official document, go as follows:

  1. Step 1 – Initialize the counter.
  2. Step 2 – Increment the counter.

There are a few crucial issues left out in this discussion. You are likely to encounter these issues on day one if you try to use atomic counter in a real application. I hope this post will answer those questions for you.

Continue reading