Profile

Achievement

You have not received any achievements.

chrisaiv's Recent Snippets



I suspect this boilerplate code will continue to evolve while I settle in on my favorite libraries and frameworks but
6 3385 posted 14 years ago by chrisaiv
Very cool example of copying a frame from an MP4 and displaying it on the canvas or image. In order for images to be saved, the video must come from the same domain
0 7048 posted 14 years ago by chrisaiv
I started messing around with the Last.fm API and somehow just started building more and more service requests. This should be enough to get anyone started on using Last.FM's API
0 2203 posted 14 years ago by chrisaiv
Recently I needed to capture a JSON feed of the top artists from Last.fm. The script makes a request for a JSON response which I later treat as a dictionary object. You'll probably need to sign up for an API Key before using this script
0 4131 posted 14 years ago by chrisaiv
Simple test showing how to make a request to Spotify's API.
2 2244 posted 14 years ago by chrisaiv
The Blackberry AppWorld portal allows you to schedule reports which are delivered as CSV.zip files. Although the CSV file offers a lot of detail about operating system and date of download, most of the time I just want to know which users downloaded...
0 1860 posted 14 years ago by chrisaiv
If you need to do any sort of screen capturing using FFMPEG, you might need this one day
0 3895 posted 14 years ago by chrisaiv
Need to check if your device is online before sending/getting a request? Here's how.
0 1490 posted 14 years ago by chrisaiv
There are roughly three ways to do this: programatically, through stylesheets, or through the Anroid manifest.
0 1802 posted 14 years ago by chrisaiv
This is part of a much larger class but I wanted to give enough context to explain the value of GeoCoder. GeoCoder has two methods called getFromLocation() and getFromLocationName() that allow you to capture an address or coordinates.
1 1977 posted 14 years ago by chrisaiv
This two liner is powerful. It shows you how to find images on a page based on the source (src) and replace them with another image.
0 1724 posted 14 years ago by chrisaiv
I always have trouble preparing JSON to work nicely with as3corelib. Here's an example of what I do whenever the array I'm looking for is nested within more JSON. This really isn't for anyone other than myself.
0 1782 posted 15 years ago by chrisaiv
I love this script. It's perfect for anyone trying to transforms headlines into some sort of Title Case format without using CSS
0 1902 posted 15 years ago by chrisaiv
This simple example will access your GeoLocation on mobile Safari and place a marker using Google Maps.
3 2203 posted 15 years ago by chrisaiv
This mini experiment simply shows how to create a static Google Map with a Marker based on a user's Geo Location. This was designed specifically for Safari Mobile
4 3135 posted 15 years ago by chrisaiv
Adobe AIR 2.6 was just released and it includes a couple of new features for iOS such as camera, video, and keyboard support but for now, you'll need to compile using command-line ADT. Here's a simple example showing you how to compile in test-mode...
0 3303 posted 15 years ago by chrisaiv
If you are trying to solving one or both of these problems: + If the window is resized to a smaller size that was designed for - a scrollbar would be nice. + If the content is larger than the original design - a scrollbar would be nice Then use...
1 1813 posted 15 years ago by chrisaiv
I needed a way to talk to Google Calendars. here's how I was able to create a RFC 3339 timestamp
0 2268 posted 15 years ago by chrisaiv
0 3860 posted 15 years ago by chrisaiv
You did a checkout when you really wanted to do an export. Now there are tons of .svn folders in your project, and you need them to go away. Shell scripting to the rescue.
0 3370 posted 15 years ago by chrisaiv
Easy way to populate a drop-down menu
3 2950 posted 16 years ago by chrisaiv
I found this awesome function that allows you to easily remove duplicate values.
4 3058 posted 16 years ago by chrisaiv
3 2360 posted 16 years ago by chrisaiv
Handy Date/Time converter: Convert Date Object to MySQL date format, Translate minutes into an English phrase, Convert MySQL date to Actionscript Date object, Get Day name from Date, Get name of Month from a Date Object, Input the seconds and return...
1 2592 posted 16 years ago by chrisaiv
I found this awesome class by [email protected] and can't help but share it.
1 1865 posted 16 years ago by chrisaiv
See the contents within a directory and print them out.
0 1931 posted 16 years ago by chrisaiv
Handy function that allows you get some data on a file
0 1789 posted 16 years ago by chrisaiv
Here are a few examples that show how the relationship between objects and references
0 1657 posted 16 years ago by chrisaiv
Dates and Time are always important to understand in any language. PHP has some rockin' functions but here are a few that I use the most.
0 1774 posted 16 years ago by chrisaiv
0 1691 posted 16 years ago by chrisaiv