Monthly Archives: October 2009

Tweeting from PHP

Just found this, awesomely compact code! Tweeting from PHP – Fabien Potencier. function tweet($message, $username, $password) { $context = stream_context_create(array( ‘http’ => array( ‘method’ => ‘POST’, ‘header’ => sprintf(“Authorization: Basic %s\r\n”, base64_encode($username.’:’.$password)). “Content-type: application/x-www-form-urlencoded\r\n”, ‘content’ => http_build_query(array(‘status’ => $message)), ‘timeout’ … Continue reading

Posted in programming | Leave a comment

Out Run GBA Demo

This is a demo of a conversion of Out Run to GBA (just the first level). Unfortunately I didn’t get to do the full thing (it got done by a company… in London I think…) Excuse the jerky video, I … Continue reading

Posted in games, programming | Leave a comment

YouTube – Raytracer

YouTube – output. What do you do at 6am when you’ve changed the baby’s nappy and can’t get to sleep? … mess about coding a raytracer obviously!

Posted in programming | Leave a comment

Change to the directory a batch file is in

A very old blog entry… The Old New Thing : Capturing the current directory from a batch file. … but once again Raymond Chen’s fantastic blog answers a handy question (in the comments) – how do you change to the … Continue reading

Posted in programming | Leave a comment