Day: June 19, 2011

Status Single

Ini dia imajinasi coffe freak seperti saya #bukan iklan lho ya Status single     rasanya tau si dia single kaya ngebelah atmosfir berlapis lapis habis  itu meluncur bareng paus akrobatis terus ngebut menuju rasi bintang paling manis   bagi coffe freak seperti saya ini kabar jos, begaimana dengan anda?

Through Struggle

Only through struggle have I found rest With a piece of me taken away I begin to understand Hollow out this machine like chest With it’s gears that turn to make me feel assembled As I fade away Only through struggle have I found rest Remove from me This deception that I called love That […]

Python Url Shortener using Google URL Shortener API

Udah lama maen twitter, dan baru sekarang butuh url shortener, dan ini url shortner python memanfaatkan Google URL Shortener API. enjoy import httplib, json   conn = httplib.HTTPSConnection(’www.googleapis.com’) conn.connect();   url = raw_input("masukin urlnya \n") short = ‘"’+url+’"’   body = ‘{"longUrl": %s}’ % short header = {’content-type’:’application/json’}   conn.request(’POST’, ‘/urlshortener/v1/url’, body, headers)   response […]