Uniqueness constraints in Parse Database

Parse is a great service for quickly getting an app out without getting into too much backend/server/database details. Its really easy to quickly set up your database schema and start saving and querying data. However, one of the most important things that it currently misses is the ability…

Store image dimensions in Parse with Cloud Code

Say you have a large number of images of different sizes on Parse. You're downloading them for display in a table or any other type of view. Of course, you definitely need the size of each image, while you are waiting for the download of each image. Something like this…

Nested Sections in UITableView

Sometimes, there might be cases where you would like to display nested sections in a UITableView. For example, consider an app organizing groups taxonomically like so Sports Bat-and-ball Baseball Softball Cricket Hockey Field Hockey Ice Hockey Roller Hockey Engineering Computer Science Software Engineer Electrical Engineer A UITableView really isn't designed…

Streaming Youtube Videos and Loading Thumbnails in Android

The only "official" way of streaming videos from Youtube in a mobile app is to use an iframe. Since the WebViews on mobile devices aren't as good as their desktop counterparts, this is filled with bugs and isn't very easy to operate on. Fortunately, Google has a YouTube Android Player…

Eval JavaScript Code in Chrome Packaged App

Chrome packaged apps don't allow using eval or alternative expressions like new Function() to evaluate arbitrary JavaScript code at runtime. Chrome allows adding an unsafe-eval content security policy to its extensions to enable this, but for packaged apps, that is not an option. If you really need a way to…

Securely send files using makesends.com

With the revelation about PRISM (NSA's surveillance program), there has been a lot of talk about the protection and security of the communications that you make online. Services like Gmail are no longer safe for communicating important peices of information and people are becoming more and more cautious about security…