Showing posts with label christmas. Show all posts
Showing posts with label christmas. Show all posts

Wednesday, December 24, 2008

The Facebook Status Updater

So... I made a little script to calculate the time till Christmas and automatically update your Facebook status...

Requires Python and PyFacebook.

(This is a great way to annoy your friends if you change the wait time to .5 or some ridculously small number to flood their feed...) 

#! /usr/bin/env python

import facebook
import time
import string

def update():
    difference = 1230181201 - round(time.time())
    return "%.0f Hours and %.0f minutes till Christmas" %(round((difference/3600)-.5), round((difference%3600)/60-.5))

if __name__=="__main__":
    api_key = 'YOUR API KEY'
    secret_key = 'YOUR SECRET KEY'

    facebook = facebook.Facebook(api_key, secret_key)

    facebook.auth.createToken()

    # Show login window
    # Set popup=True if you want login without navigational elements
    facebook.login()

    # Login to the window, then press enter
    print 'After logging in, press enter... '
    raw_input()
    
    #Uncomment to following block if this is the first time
    #print 'Now you will need to authorize this script to update your status'
    #facebook.request_extended_permission("status_update", popup=False)
    #raw_input()
    
    facebook.auth.getSession()
   
    while (time.time() <1230181201) :
        facebook.users.setStatus(update() , False)
        time.sleep(58)
    
    facebook.users.setStatus("CHRISTMAS!!!" , False)
    






-runiteking1

Got comments? Post them below!

Wednesday, December 10, 2008

The Eight Days of Christmas

My little brother tries to sing the 12 Days of Christmas but he still didn't learn some of them yet...



-runiteking1

Got comments? Post them below!

Saturday, December 29, 2007

My Vacation in a few hundred words...Part 1: The GPS story

Our vacation started by a trip to Tampa to visit my dad's long lost friends. Apparently, they never saw each other for more than 20 years! So basically for the first whole day, I just sat there and smiled...except that our GPS and a hotel person sort of, uh, misled us.

The GPS story or the Story of the Lost:

For Black Friday this year, we went and bought a Mio GPS for the price of 150 bucks. It was a pretty good deal as it included a 4.3'' wide screen and MP3 player. On the next day, we went to Jacksonville and it worked it's magic pretty well, that's where it all went down hill...

Our hotel on the first day is a La Quinta on US 19 NORTH (this is very important) in Clearwater. So we followed the GPS:

Turn right in a hundred yards. Keep right. Arrive at destination...
and when we got to the place the GPS guided us, there was no La Quinta Inn. We thought we got to the middle of US 19 so we started driving north as the street names all said US19 South. We then called the hotel and the hotel receptionist told us to keep driving (but never which direction), so we kept driving. An hour later, we reached Tarpon Springs, a small city north of Clearwater, we got worried and called the hotel again. Now they said we drove too far...but we never saw a La Quinta. We finally got to the hotel by following our friends car.

From hindsight, I found out that we there are TWO US19 North... when we got to US19, we were on the South sandwiched between them so we thought traveling north was right. Turned out going south may lead you north.