Who’s There

Ingredients: Android Device with cameras and internet access and accelerometer Android Device with internet access Webserver for storing pictures Free Urban Airship Account Google Account (for using Google Cloud Messaging for Urban Airship) Wifi Something to attach the android device to the peep hole Problem: When I’m at home I’m usually in the living room. Due to the odd shape …

Angel Hack

Team Fashion Metric launched their first website during Angel Hack. It was an intense weekend for us as we got only a few hours of sleep. It was awesome. We had an amazing team. I had the pleasure of working with the talented programmerAzat Mardanov. While we weren’t selected as winners we were stoked that we got a first working …

Lean Startup Los Angeles

I attended Lean Startup Machine Los Angeles 2012. The purpose of lean startup is essentially to validate before building. The rational is that many startups fail to succeed because they don’t validate that their product/service solves a pain point for their target customers. As a developer I had to step back and resist the urge to start building. The class …

Motodev localization tool

I came across a post about a useful motorola localization tool for eclipse. First you have to download the MOTODEV studio. To install follow these directions: To Install (On OS-X): 1) Help > Install New Software 2) Paste this URL 3) Enter your free Motodev username and password 4) Select the Moto Dev Studio(As pictured) To Use: 1) First make …

Views and Animation Tips

I was working on some animations today and had a few problems. The first was an interesting scenario where I needed to get the height of an item that wasn’t going to be displayed when the screen first loaded. The problem was that any time I called the getHeight method I always got zero returned to me. After some hunting …

JS.LA Thumbnails from Videos using JS and HTML5

I was giving a lightning talk at the last JS.LA meetup. I was going to demo how to take a screen shot from a very clip. Unfortunately there was no audio so I didn’t get to show the Very Mary Kate presentation clip. The presentation was going specifically cover how to get a thumbnail from a video in html5 using …

SECURITY_ERR; DOM Exception 18

I was working with HTML5 and Javascript when I started getting this error from calling toDataURL on a canvas object. Turns out that browsers aren’t supposed to let you convert a movie to an image if the movie is considered dirty[source]. Movies are considered origin-dirty if they are coming from another server. For example this is origin-dirty: <video> <source src=”http://someotheraddress.com/video.mp4″ …

ViewServer

So the other day I was working on a project. I looked at the xml and thought that it could use some refactoring. I went to use the hierarchyviewer in the android sdk. Unfortunately the tool wasn’t working with my phone. Turns out that it doesn’t work with production phones! You need root for it to work. Fortunately there is …

Copying Intent Data

There is some confusion from an earlier tutorial I wrote about using urban airships push notifications. On one of the steps I have a function call to copyIntentData. This is a method I wrote. I glossed over it because I was focusing on urban airship configuration and felt that this topic fell outside the scope of tutorial. I have had …