Today, the app is no longer online (and I don't plan to put it back online), so I'm just releasing the source code in the wild.
From the original app
tWeekPic - It's Morphin' Time! Every day of the Week!
tWeekPic is a Twitter application that allows you to set up different profile pictures for each day of the week. Once you've set up your schedule, our application will automatically use the Twitter API to update your profile picture according to your wishes.
I wrote tWeekPic in november of 2011. I was on "holiday" and spending a lot of time on Twitter and HackerNews. I wanted to build a web app after a full year of learning C (and coding my own RayCaster, CoreWar, Shell,...). All I had was knowledge of HTML, CSS, JS, PHP and OAuth but no idea. Graham Grafx provided the idea of an app which would change his Twitter profile picture every day of the week and the idea seemed fun enough so I went with it.
Some months later, I forgot to renew the hosting where this app was hosted and decided to end the experiment there.
It kinda looked like this
(Screenshot courtesy of Ballajack)
How stuff works
- Connect with tWeekPic using OAuth.
- Save user OAuth information in a MySQL database.
- Upload a picture for the day you want it to change (IE: sad face on monday, TGIF-face on friday, at the beach on sunday,...).
- Everyday, a cron job runs a script that checks profile pictures that require change.
- If the day requires a change, the new picture is changed using OAuth.
If you want to run it
- Clone the repo
- Grep "mysql_connect" and "mysql_select_db" in the .php files and replace the connection info.
- Grep "consumer" in the .php files and replace the Twitter OAuth info.
- Figure out how the database was built
- Host it and ping me so I can see how you fare.