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.
Monthly Archives: January 2014
Loading Retina Image Using SDWebImage
In a previous article I discussed the problem with loading retina images from a URL. SDWebImage is a popular library that allows asynchronous loading of images and caching. Unfortunately, it does not provide very good support for loading retina images.
Loading a Retina Image from a URL into UIImageView
Showing an image downloaded from a URL and into a UIImageView can be tricky for a retina display.
Counting Documents Using reduce in Couchebase
In SQL, we do SELECT COUNT(*) to count rows that match a query criteria. In Couchebase, we use the _count reduce. In this article, I will explain two most common use cases for counting documents.
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:
- Step 1 – Initialize the counter.
- 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.