Reverse Engineering the MOS 6502

This is the first part of a great presentation given by Michael Steil at 27C3 last year. The 6502 was the CPU used on many 8 bit computers of the eighties like the Commodore 64, Apple I and II and NES.

It’s an hour long presentation split into 6 parts, I’ve only watched the part above but it brings me back 20 years when I used to code in assembler using an Action Replay cartridge on my C64.

Check out this post for the rest of the presentation. I’ll be watching them later tonight.

cSprites for PHP 5.3.1/2

Joost posted a great article on reducing http requests on WordPress sites recently and one comment caught my attention. Nabil mentioned cSprites. It’s a WordPress plugin that merges the images in your posts into one file and uses CSS to position the single merged file in place of the original images. Here’s a good post explaining how this technique works.

Unfortunately it hasn’t been updated in over a year, and the current version doesn’t work if you have PHP 5.3.2 (and probably 5.3.1) as it trips over this PHP bug. The fix is simple, get rid of call_user_func_array() and call the functions directly.

I had it installed here and it worked well enough but not perfectly. Here’s the post I made on the plugin’s support forum if anyone’s interested.

I don’t think the author will update the plugin again and in fact he’s looking for someone else to take over. Anyone?

The plugin has been running on my photoblog for the last hour ago and I haven’t noticed any problems yet. As a bonus, it also stops people right clicking and stealing saving my photos for their own use. I’ve since removed it as visitors were only seeing blank images. Oh well.

So, want to give a “fixed version” a go? Grab csprites-for-wordpress.zip and install it in the usual way. Support queries should be directed towards the plugin support forum. 😉

Oh yeah, there’s also the SpriteMe bookmarklet if you don’t want to go fiddling with WordPress plugins!

Bad Company 2: new site and YT commenter

I’m glad to see Paul finally posted a BfBC2 video on his blog. It’s a great montage of clips from the Vietnam expansion (hell of a lot better than my unlisted first commentary!) Go leave a comment and give the video a thumbs up!

And in other news, a new WordPress.com blog called In Bad Company has been launched by Chris! Expecting good things from him as he did the guest commentary on my last video.

On a personal note, it’s great to see the Bad Company 2 community grow stronger on WordPress.com!

I joined Dvotee and TheFingersHurt on Xb…

I joined Dvotee and TheFingersHurt on Xbox tonight for Bad Company 2 Vietnam but unfortunately TheFingersHurt got kicked off by his lousy Internet connection after about 5 minutes of play.

After that it was Dvotee and myself for a while, and every single game we joined was a losing one! They were games of conquest and our team would almost always be down to it’s last legs:

Starting Tickets Ending Tickets
18-101 0-48
69-157 0-56

So we helped turn the tide but not fast enough and we were out manned a number of times and never had a full game.

Our final game was rush and we were 8 against 10 with 5 members of the SNV clan on the other side. I was defending one crate when I was literally bombarded with bullets and grenades. It’s recorded, hopefully it’ll make a good and hectic clip!
Thanks Coyno for joining us for that game. Sorry we lost!

Finally, after reading this I decided to try marksmen LMG training and the same perk on the engineer’s kit and I think it helped. The “infinite ammo” of LMGs helped too! 🙂

I joined a private match organised by Ni…

I joined a private match organised by Nick and others last night. Boy, were they tough games! Nick was a busy bee doing admin work but I have no excuse. I was simply outplayed by Cards and everyone else. Even Conor, who normally does quite well felt the pressure and we departed our last game, me with a KDR of 0-9. Ouch. I appreciate the invite, but I probably shouldn’t have joined!

Still, got some good clips, hope to have them uploaded in the next few days.