The home of Joel Richards

Niagara Falls, Canada- 2007

PHP 4 Twitter Class

Posted on January 28, 2009 - Filed Under Code, Projects | 2 Comments

I say class, it’s actually just 1 function for PHP 4+ to allow sending of twitter messages really simply.
Based upon the PHP 5 twitter class by David Grudl

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function twitter_send($message, $user, $pass)
{
$url = ‘https://twitter.com/statuses/update.xml’;
$post = array(’status’ => $message);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERPWD, $user.":".$pass);
curl_setopt($curl, CURLOPT_HEADER, FALSE);
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(’Expect:’));
 
if ($post) {
curl_setopt($curl, CURLOPT_POST, TRUE);
curl_setopt($curl, [...]

Read More..>>

Anti-Meatship

Posted on January 25, 2009 - Filed Under Photos | 1 Comment

I recently came across this delicious looking vegan alternative to the Meatship, The Edible Mayflower. Inspired by the Meatship (a follow up the Meathouse), my flatmates and I created back in 2008, this vegan alternative looks much much more appetizing…
Snippet from their blog:
..my friend found the Meat Ship (insert rather obvious Gross Out Warning here). [...]

Read More..>>

Canon D2000 / Kodak DCS520

Posted on January 25, 2009 - Filed Under Photos | 4 Comments

I recently posted a blog post about this at kyanmedia’s blog so I thought I’d post a more indepth review here.
I bought a Kodak DCS 520, also branded as the Canon D2000 off eBay recently, which is the 3rd DSLR released by canon in 1998 which is the model before the Canon 1d. The camera [...]

Read More..>>