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 3481 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 7148 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 2278 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 4212 posted 14 years ago by chrisaiv
Simple test showing how to make a request to Spotify's API.
2 2329 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 1958 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 3984 posted 14 years ago by chrisaiv
Need to check if your device is online before sending/getting a request? Here's how.
0 1560 posted 14 years ago by chrisaiv
There are roughly three ways to do this: programatically, through stylesheets, or through the Anroid manifest.
0 1886 posted 15 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 2042 posted 15 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 1787 posted 15 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 1846 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 1982 posted 15 years ago by chrisaiv
This simple example will access your GeoLocation on mobile Safari and place a marker using Google Maps.
3 2281 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 3245 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 3408 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 1897 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 2357 posted 15 years ago by chrisaiv
0 3957 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 3477 posted 15 years ago by chrisaiv
Easy way to populate a drop-down menu
3 3040 posted 16 years ago by chrisaiv
I found this awesome function that allows you to easily remove duplicate values.
4 3143 posted 16 years ago by chrisaiv
3 2447 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 2669 posted 16 years ago by chrisaiv
I found this awesome class by [email protected] and can't help but share it.
1 1932 posted 16 years ago by chrisaiv
See the contents within a directory and print them out.
0 2024 posted 16 years ago by chrisaiv
Handy function that allows you get some data on a file
0 1858 posted 16 years ago by chrisaiv
Here are a few examples that show how the relationship between objects and references
0 1717 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 1837 posted 16 years ago by chrisaiv
0 1751 posted 16 years ago by chrisaiv