Posts

Showing posts from 2010

TMDB class update

I have just put my TMDB class up on github at https://github.com/jameslloyd/tmdb-class couple of updates since the last version i posted.   Lots of extra error checking and now will return search results with only one result properly.

Quake 2 Lithium 16-Bit Retro Chic

Image
Many many moons ago when my Voodoo 3DFX card was the height of PC chic. I had my first Multiplayer FPS experience with Quake2.  Up until that point, multiplayer gaming meant playing red alert with a friend and a rather shonky serial cross over cable.  Many hours were waisted and many many MB's of space taken up with extra maps and models.  Models that almost instantly got banned due to being impossible to see, and effectively making you invisible to your opponents.  And many frags were clocked up whilst grappling madly around the map with the Lithium MOD. Fun was had by all then we moved on to newer games with slightly higher resolutions and slightly better textures, that were never quite as much fun as the original Quake 2 Lithuim experience. Well <Farnsworth>Good News Everybody</Farnsworth> as is the current trend to revive all those 8-bit games, now is the time to relive the 16-bit age, after all the only decent thing to come out 8-bit was Gauntlet 2. Where this rath...

themoviedb.org PHP class

This has been superceeded by This Post This class I have written has been some time in the making, its currently the whats powering the alpha version of 2statereviews V2.    Things it will do for you: Will pull down Actor or Movie information from themoviedb.org using the API (currently defaults to V2.1) and sort info into an array i.e. $tmdb->movie_info('11'); $tmdb->actor_info('738'); Will pull down Actor or Movie Searches into an Array $tmdb->actor_search('John Cussack'); $tmdb->movie_search('the empire strikes back'); will cache the output from themoviedb.org locally with a configurable TTL so as to speed things up. Some examples have been provided. Note: you'll need to provide your own API key. Download V1 here

Iphone Restore 1604 Error

Image
[caption id="" align="aligncenter" width="479" caption="Iphone Restore EPIC FAIL!"] [/caption] Past couple of days have been a slight horror, when I rebooted my Iphone and it didn't come back. Just sat stuck on the Apple logo, with spinner on top not spinning. So I went through an horrific day without my phone. That night I frantically tried to restore the firmware 3.1.2, I kept getting the 1604 Error. Reading online there is lots of talk about deleting or moving your Iphone profile from the app settings directory, none of these solutions worked for me including the tool Ireb. I tried several USB leads, having had one previously fail, but still nothing. Solution for me was to use another machine windows 7 this time, was previously trying on XP, and It worked first time. Can only assume this is some very picky code in the usb communication.

Re Twitter your twitter feed

knocked up a quick function to put the links back into my twitter feed, after i pull it down using their API. it will take the text you input and create links around the @<username> #Hashtags and any links i.e.  twitpic's etc.  Not rocket science but could save you 30minutes of trying to get your head around regex again. function _twittertext($tweets) { $tweets = preg_replace('/http:\/\/([\\d\\w.\/]+)/', '<a href="http://$1">http://$1</a>', $tweets); $tweets = preg_replace('#@([\\d\\w]+)#', '<a href="http://twitter.com/$1">$0</a>', $tweets); $tweets = preg_replace('/#([\\d\\w]+)/', '<a href="http://twitter.com/#search?q=%23$1">$0</a>', $tweets); return $tweets; }

My XBMC Multi Room audio challenge.

Image
Recently I have successfully migrated away from SKY HD and from Freeview+ to an entirely XBMC based solution.  Most importantly this solution currently has a very high WAF .  My setup is built using XBMC live in an overly powerful PC in a rather nice silverstone media center case. My current problem is now I have relegated all of my media to the lounge,  using the ipod dock in the kitchen with a meagre 16GB Ipod seems positively lacking when, your media centre is connected directly to a 5Tb NAS.  What happens now is you play music in the lounge and turn it way up to a probably neighbour unsuitable level to be able to properly enjoy it in the kitchen.  This is why I crave multi room audio, I wrote a while back why I think XBMC is a far better and cheaper solution than the Sonos solution, though Sonos still do have the killer feature present and correct.

XBMC Gmail notifications.

I have this php script currently running on my nas to let me know if I have any new mail.  It works with gmail.com, googlemail.com and google app address’.  I simply use cron to execute the script every 15 minutes. i.e. (0,15,30,45 17-23 * * * php /var/www/checkgmail.php > /dev/null   #Check Gmail) 1: <?php 2: $emailaddress = 'someemailaddress@gmail.com' ; // i.e. bob@gmail.com or bob@bobsdomain.com if you use google apps 3: $password = 'somepassword' ; // email password 4: $xbmcaddress = '192.168.1.1' ; // IP or hostname of your xbmc 5: $xbmcport = '8080' ; // port the xbmc web server is running on. 6: 7: 8: $domain = explode( '@' ,$emailaddress); 9: if ($domain[ '1' ] == 'gmail.com' || $domain[ '1' ] == 'googlemail.com' ) 10: { 11: $use_googleapps = false ; 12: } else { 13: $use_googleapps = true ; 14: } 15: if ($use_googleapps == t...