Monthly Archive for December, 2004

Executive Hammock!

Brilliant!

Sue bought me possibly the greatest gift an office working bloke can receive: the gift of somewhere to sleep. She got me an executive hammock! And I thought they were the stuff of executive dreams. It’s true though, they exist, and they work!

With a bit of help from Adam and Lisa for structural support (and knot tying) the hammock was set up this morning by my desk. It’s very comfortable. Adam and David have already had a go, although David looked less than elegant. :)

See the BOfH in his Executive Hammock:
Howard relaxes in his executive hammock

…here’s Ray enjoying a rest:
A Director's privilege?

and Chris, almost falling out:
Chris, almost falling out...

…Terry having a go:
Terry having a go.

and Sue relaxing:
Sue relaxing.

Diablo 2 has me…

It didn’t take long. Chris picked up Diablo 2 and the expansion pack in a special offer on Saturday. I played for a little while Saturday afternoon, then we tried a multiplayer game that evening. His Sorceress and my Necromancer are now both level 11. We both have our own mercenary girlies following us around, and I have a golem and three skeleton warriors. Nice!

Oh yeah…

Thanks to the Slashdot crowd, who came up with lots of ideas for special effects shots. Not that I think we’ll use them all, but nice to have a big pile of ideas to look through.

Also amusing to see a debate over if my lightsaber should cast a shadow or not, and a telling off for getting Goa’uld wrong! :)

Pointers

As I was asked today exactly how I achieved the various effects (Hello Sean!), I thought I’d post links to my cheat sheets. These are the tutorials I’ve followed to render lightsabers and laser blasts:

Once I’ve written it up, I’ll talk about how I vapourised Chris.

Oooh, screaming!

Still missing one saber in the middle, but now wit hphaser blast, and screaming Teech!

Step by Step

Here’s a very quick look at the compositing process for the video I’m editing at the moment…

Starting with a frame of Chris after he’s been shot: Untreated
This shows the original frame as we recorded it. Nothing has been processed yet.

First, I apply a diffuse glow effect to show that the ray gun I shot him with is taking effect: Ray Gun Effect

Then I needed to create the lightsaber blade. I’ve just done one here to show you:
On a new layer, draw a white line over the top of the blade. In this case the blade is fanning slightly, so I use the polygon tool to draw an area of white: Untreated Blade Then turn down the colour on the background layer to get white on black.

Then, applying the nifty glow effect (this includes multiple layers and blurs) it ends up looking like this: Treated Blade

Then, composite the treated blade into the second image (the one where Chris is starting to dissolve): Composited Image

This gets done for every frame in the video! In the 10 second clip I’m working on, there are 250 frames. I’m using about 1.36Gb of storage for it already! Obviously, when I get round to finishing this sequence I’ll render Chris’ saber and a pulse from the gun to show it shooting too.

Why you shouldn’t rely on MS Access security…

We’re working on taking a horrible Access database and moving it to SQL with a pretty web front end. This means pulling apart the forms based Access database they’ve provided to see what it does. All well and good, except the database they gave us had an auto run macro that presented a log on prompt instead of letting you see the tables/queries/forms.

No problem you might think, hold down shift when it loads to suppress the macro, and get in that way. Good idea, but in this case, not so! Unfortunately some wise-ass in their dev team had set the AllowBypassKey property of the database to False. That disables the shift key so you can’t get around the macro. Disaster!

Unless you’re a sneaky bastard. Which, by popular consensus, I am. Here’s how to get round it…

I created a new empty .mdb, for the sake of argument call it RemoveProtection.mdb. In this new database, create a new module, again I called this RemoveProtection. You might as well call them foo and bar for all it matters. Inside your shiny new module, paste the following code:

Function DisableShiftKeyBypass(strDBName As String) As Boolean

   Dim ws As Workspace
   Dim db As Database

   Set ws = DBEngine.Workspaces(0)
   Set db = ws.OpenDatabase(strDBName)

   Dim prp As DAO.Property

   db.Properties.Delete “AllowBypassKey”
   Set prp = db.CreateProperty(”AllowBypassKey”, dbBoolean, True, True)
   db.Properties.Append prp

   db.Properties.Refresh

   Set prp = Nothing
   Set db = Nothing

End Function

Then hit Ctrl-G to bring up the Immediate window. In that, type:

DisableShiftKeyBypass(”C:\PathToDatabase\ProtectedDB.mdb”)

and hit enter.

Voila! The database is now unprotected and you can hold down shift to get to the tables.

And that, ladies and gentlemen, is why you shouldn’t rely on MS Access security to protect your data!

Less Rough

Still missing sabers in the middle, still no visible phaser blast, but super-cool sound effects!

[youtube fhnia1LWceU 320 240]

I’m surprisingly awake given the time of my last post, and the fact that I was in the office before 9am today!

I’ll complete the video tonight, hopefully.

Rough Cut

No sound effects, missing sabers in some bits, and no visible phaser blast, but it’s getting there.

For your amusement, Chris losing his battle with the forces of darkness. (Who, it would appear, cheat!)

[youtube 19TU2Fz8lcY 320 240]

Anyway, that’s enough SFX for tonight. Time to sleep!

Liars and Thieves…

Well, I’d heard rumours about this around the time the first Matrix movie was released, but it would appear that it’s true. The Wachowski brothers are a pair of lying, thieving bastards, having ripped off Sophia Stewart’s manuscript - written in 1981. Apparently she’s due a pay off for the Terminator movies too. Does that make Cameron a thief too, or just Warner Bros?

In other news, I commented out a potentially lethal line in some WordPress code today, to stop people being able to screw the site over. Richard (who brought it to my attention) has blogged on it more extensively.




Bad Behavior has blocked 422 access attempts in the last 7 days.