Archive

Archive for September, 2009

Tab Bar Twosdays, the sequel!

September 29th, 2009 Dave No comments

Hi and welcome to this, the second installment of Tab Bar Twosdays. If you saw last week’s post then you know the drill. These icons are free to use, however you please, in whatever iphone app project you have. You can use em in other stuff, too. Regardless, if you do use em, let us know where!

Anyhow, on with the icons.

Camera Icon

Camera Icon

Chat Balloon Icon

Chat Icon

Enjoy! If you’ve got any requests for future icons, let us know!

Categories: Uncategorized Tags:

Introducing… Tab bar Twosdays with Dave!

September 22nd, 2009 Dave No comments

Hey guys/gals

Dave here, and welcome to our newest gig with our blog. Me being the resident design-guy at our nifty little iphone dev shop, I spend quite a bit of time developing (drumroll) iphone tab bar icons! I know! Shocking eh?

Anyhoo, we’ve decided to kick off a new feature as a help to the rest of the dev community; Tab Bar Twosdays. Here’s the deal:

1) I’ll release 2 iphone tab icons each week (hopefully on tuesday, that’s kind of the deal, right?). They’re optimized with alpha transparency and should be simple, plug-and-play-easy for you to drop in your xcode project.

2) You can download and use it free and shamelessly in any of your iphone projects. No payment necessary, though tweet and blog mentions are always cool.

3) Profit. Make millions on your app. ALL because of those nifty icons. You’re welcome.

That being said, here are the introductory two icons.

Spyglass

Spyglass

Folder Icon

Folder Icon

Thanks again for reading, and happy coding!

Collective Labs

September 22nd, 2009 aaron No comments

Hey, what’s this? Who put that there? ;)

More info coming soon!

Categories: Uncategorized Tags:

Urban Airship and RESTful Puts with Python

September 8th, 2009 jeremy 2 comments

This will be a quick post with a bit of code.  I wanted to share this since I had an awful time finding some working code snippets to communicate with Urban Airship to do Push notifications to Apple for  iPhones.

This code snippet will register a new device with Urban Airship that can then receive Push notifications.

import urllib2
from simplejson import dumps as json_dumps

user   = UAPUSH_USER
passwd = UAPUSH_PASS
base_url = UAPUSH_BASE_URL

# push_payload = {
    # 'aps': { 'badge': 2 },
    # 'device_tokens': [ 'devToken01', 'devToken02', etc ]
    # }

def _http_request(url,payload,is_put=False):
    headers = {"Content-type": "application/json" }
    authinfo = urllib2.HTTPBasicAuthHandler()
    authinfo.add_password("API", url, user, passwd )
    opener = urllib2.build_opener(authinfo)
    req  = urllib2.Request(url, payload, headers)
    if is_put: req.get_method = lambda: 'PUT'
    data = opener.open(req)
    return data.read()

def register_device(dev_token, tags):
    # dev_token is a string of hex returned from
    #     registerForRemoteNotificationTypes:
    # tags is a list of string based tags
    content = {"tags": tags}
    url = "%sdevice_tokens/%s" % (base_url, dev_token)
    print _http_request(url, json_dumps(content), is_put=True)

There’s nothing magical here. I just found it a bit interesting to have an HTTP base authenticated PUT request to a restful service and figured I’d show how to tie these all together.

Categories: iPhone creation Tags: , , ,