A little corner of the Empire on the web.

10 June, 2007

LOL BOTS for teh w1n!

I never really got the whole captioned (or macro-d) kittens craze, as exemplified at I CAN HAS CHEEZBURGER, maybe its because I'm just not a cat person (the guinea pigs work for me though).

However LOL BOTS is a concept that I can totally get behind. And have. My three submissions to the site (so far) are below:

I started off by injecting a little bit of class into the proceedings:

(I feel that I really ought to apologise to Fritz Lang at this point)

Then a little bit of hungry tachikoma:

(Maybe they really do have a ghost?)

And finally some boyz from the Dwarf:

Smeeee-ee-eeeeh-eeeg heeeeaaad

And almost certainly more to come!

PS Is it just me, or does xkcd have a comic for every occasion?

21 April, 2007

Good luck Nick!

My little brother, Nick, is currently racing across Europe in the Scumball 3000 European Car Race Rally. Him and three friends have bought a sub £500 Saab car and are spending 4 days racing across at least 5 countries, waking up each morning not knowing where they're driving to that evening.

Good luck to him, I think he'll need it stuck in the same car for days on end, with 3 smelly mates, with not even loo breaks allowed as they're such serious racers!

If anyone wants to track the route they're taking (last seen in Stuttgart last night after starting in England that morning) you can track cars in the race on the official site.

He's racing on behalf of the Winston's Wish charity. Anyone wanting to sponsor him, and why wouldn't you want to? can visit his team's online sponsorship form here.

12 February, 2007

Youth, Privacy and the Modern World

Okay, I'm not even 30 yet and things have conspired to make me feel old. I thought I was in touch, a real geek and a full part of the internet generation. It turns out that I may be some of that, but I still have one foot in the old world.

I read somewhere recently where a member of the 'older generation' was talking to a 'youngster' about calendars, and the youngster couldn't understand the concept behind having an Outlook calendar saved on your PC:

Why would you want a calendar that no one else can access?

Now, I've had an electronic calendar for about ten years now. Spread across work computers (using Lotus Organizer and then Microsoft Outlook), various models of Palm handheld, two different Blackberrys (what is the plural of Blackberry?), home PCs (Palm Desktop) and online (Google Calendars and Outlook Web Access). Most of these have synchronized back and forwards with each other in various ways creating a long history. Outlook is storing it's calendar on the Exchange server and publishing my free/busy info to the rest of the company, but not the actual appointments. The Google Calendars are shareable, but not shared.

I should be right there with this, but despite my techno-geekery, I am still stuck in the dark ages of having your own calendar that is yours, and yours alone.

Apparently I'm not alone in this, and one of the symptoms is that I don't regularly bare my soul (and other things) on LiveJournal or YouTube. I have two blogs (and have been nearly writing my own blog software for years now, but as you may have noticed, there is very little personal sharing here. I don't have a MySpace page, in fact as far as I can tell its just the new GeoCities (all lurid colours, randomly placed animated pictures and scrolling text). I have a love/hate relationship with my mobile phone (But I don't always want to be contactable!).

I'm very aware of privacy and how 'big brother' is tracking me, I make conscious trade-offs between my privacy and convenience/cash. I don't have any store-cards, but I do have credit cards and an Oyster travel card. I realise that I work in the City that has more cameras per square meter than anywhere else in the world, and I'm sure they have caught an awful lot of pictures of me doing very silly things. I've never had a full-face picture of me as my MSN Messenger picture, yet I've published web pages with multiple pictures of me drunk at parties.

I do have friends that I only know online and I've never met, but they are by far outnumbered by the people I only know in real-life and wouldn't have a clue how to contact them online in any way other than email (generally just a work address).

I used to post to Usenet with my full name, location, web page, email and (later) ICQ IM address. Later on my web page I listed most of the above and had contact links on every page. These days I rarely post to Usenet (although many of my old posts are accessible via Google Groups if you know what you're looking for), I post to forums and blog comments semi-anonymously and although my web page may have my full name, it has pretty much no contact details and the CGI contact form has been disabled after it just became an easy way for spammers to send to me.

I'm cutting off much of my public online presence just as so many are sharing more and more of themselves.

This sums it all up perfectly:

There is another way to look at this shift. Younger people, one could point out, are the only ones for whom it seems to have sunk in that the idea of a truly private life is already an illusion. Every street in New York has a surveillance camera. Each time you swipe your debit card at Duane Reade or use your MetroCard, that transaction is tracked. Your employer owns your e-mails. The NSA owns your phone calls. Your life is being lived in public whether you choose to acknowledge it or not.

So it may be time to consider the possibility that young people who behave as if privacy doesn't exist are actually the sane people, not the insane ones. For someone like me, who grew up sealing my diary with a literal lock, this may be tough to accept. But under current circumstances, a defiant belief in holding things close to your chest might not be high-minded. It might be an artifact -- quaint and naive, like a determined faith that virginity keeps ladies pure. Or at least that might be true for someone who has grown up ":putting themselves out there": and found that the benefits of being transparent make the risks worth it. [...]

For anyone over 30, this may be pretty hard to take. Perhaps you smell brimstone in the air, the sense of a devil's bargain: Is this what happens when we are all, eternally, onstage? It's not as if those fifties squares griping about Elvis were wrong, after all. As Clay Shirky points out, ":All that stuff the elders said about rock and roll? They pretty much nailed it. Miscegenation, teenagers running wild, the end of marriage!": [...]

Right now the big question for anyone of my generation seems to be, endlessly, "Why would anyone do that?" This is not a meaningful question for a 16-year-old. The benefits are obvious: The public life is fun. It’s creative. It’s where their friends are. It’s theater, but it’s also community: In this linked, logged world, you have a place to think out loud and be listened to, to meet strangers and go deeper with friends. And, yes, there are all sorts of crappy side effects: the passive-aggressive drama ("you know who you are!"), the shaming outbursts, the chill a person can feel in cyberspace on a particularly bad day. There are lousy side effects of most social changes (see feminism, democracy, the creation of the interstate highway system).

From: Kids, the Internet, and the End of Privacy: The Greatest Generation Gap Since Rock and Roll -- New York Magazine. Via JWZ.

But maybe the problem is that at heart I'm just a bit too schizophrenic about this, I really have got one foot in each camp. I just feel like at times I'm both people in XKCD's "Dreams":

Dreams by XKCD

20 December, 2006

ServiceCenter/Firefox Printing Redux

Some may remember this post from back in July when I was having trouble printing from a web app after upgrading from Firefox 1.0x to Firefox 1.5. Wherein I laid out a way to fix the problem using a custom usercontent.css file, and also logged a bug on the Mozilla Bugzilla system.

Well it looks like its come to an end! Not with today's Firefox 2.0.0.1 update, as you might imagine. But the latest 'Minefield' (Firefox 3 alpha) builds have the new "reflow" changes (from Dbaron's bug 30030) in them.

And it works!!

So now we just need to wait for Firefox 3's release and the whole world can feel the love!

08 November, 2006

Tune!

Thanks are due to Colin Murray's Black Hole on his Radio 1 show just now.

He's introduced me to definitely the night's greatest song, almost certainly the week's greatest and quite possibly the year's. Well I've had it on repeat for quite a while now and haven't grown sick anyway :)

If you were lucky enough to listen to the show live, or were quick enough to listen to it from the Black Hole's web page, then you obvisouly know that I'm talking about…

Jay-Zeezer's 99 Luft Problems

Yes, that is Nena you've cunningly detected in the track name. Yes it is a mashup. Yes Jay-Z is involved (unfortunately perhaps, but hell, it works here).

Now shoo, shoo. Go download!

25 September, 2006

Active Directory Group Membership Queries

The problem with being known as the person who can pull a list of group members from AD into a text file in a few seconds, you become a "go-to guy" for other AD queries. Which wouldn’t be such a bad thing, except that there aren't pre-written scripts for them all! I received a request today to ask if I could pull out a list from AD of everyone who was a member of both a departmental group and a security group, here's how I did it.

List the Members of an AD Group

For anyone who doesn't know already, there are a couple of easy ways that I know of to print a list of the members of one active directory group to a text file:

The "Command Line One-Liner"

As always with something that looks simple you need to put in a little work first, this time it’s very easy. First download the very useful psExec utility from the Sysinternals website. This handy little tool lets you run commands on a remote machine as if you're logged directly onto it. Extract that and save it somewhere, preferably in your path.

Now all you need are a few bits of information that you should already know if you’re thinking of running this sort of query: the name of a domain controller on your network, and the username and password of an ID that has admin rights on that DC (unless your normal login account has these rights, in which case you really ought to do a security review ;-) ).

Then run the following command from a command prompt:

psexec \\domain_controller -u domain_slash_userid -p password net group "group name"

This will list all of the group members to the command prompt, to redirect this output to a text file, just add "> c:\temp\groupmembers.txt" to the end, eg:

psexec \\domain_controller -u domain_slash_userid -p password net group "group name" > c:\temp\groupmembers.txt

The VBScript (or Perl) Method

Go to the Active Directory Cookbook's Source Code page and download Script 7.2 "Viewing the direct members of a group" in VBScript format (or Perl if you have Perl installed and are more comfy reading that).

Save the script somewhere, open it up in Notepad and replace the <groupdn> bit with the path to your group. Now change to a command line and run either:
"cscript View_Group_members.vbs" (for the VBScript version) or
"perl View_Group_members.pl" (for the Perl version)

While it is possible to just double-click either file in Explorer to run them, you don’t want to do that; the VBScript version will pop up an alert box on screen for each group member (meaning if you have a group with 100 members, you’ll get 100 alerts on your screen one after the other, each one wanting you to click OK), whereas the Perl version will dump its output to the command line then close the window before you have time to read it. So drop to a command line to run them.

If you want to send the output to a text file then (as above) just append a right facing angle bracket and the name of a text file, eg: cscript View_Group_members.vbs > c:\temp\groupmembers.txt perl View_Group_members.pl > c:\temp\groupmembers.txt

Listing Everyone Who is Both a Member of Group A and Group B

(intersection of groups A and B)

Now listing everyone who is a member of both Group A and Group B is slightly more difficult, and I couldn't find a script online that pulls that out for you - so I wrote one myself. This is a Perl script as I've known Perl for years, and whilst I can read simple VBScript fairly well I wouldn't want to try writing it. So if you want to run it you’ll need to have a version of Perl installed, I can recommend ActiveState’s ActivePerl (see below for download instructions).

This is an adaptation of the above Perl script (http://rallenhome.com/books/adcookbook/src/07.02-view_group_membership.pls.txt for anyone who hasn't downloaded it yet) that pulls out the members of the two groups, hashes them, then prints the intersection to the command line.

The fine print at the bottom of the Cookbook's source code page seems to suggest that it’s ok to modify and distribute the code as long as the acknowledgement and citation are kept intact. So you can click to download my "Viewing the intersection of members of two groups".


Note 1: Downloading ActivePerl

(Note to self: see also Kbase 1027070447)

27 July, 2006

Unisys ServiceCenter Firefox printing fix

For anyone still living in Unisys-land (aren't I glad they're not filling out my wage slip any more smile ), and for anyone else forced to use their "idiosyncratic" (read shite) web tools here's a little something.

If you've been forced to use the web (ie HTML not Java) version of their (Peregrine-based) ServiceCenter tool, you'll notice that its dog-slow if you're using IE and has a whole myriad of intermittent problems. The obvious, and really quite effective, solution is to use Firefox. This speeds up ServiceCenter measurably and seems to get around most of the other problems.

Or at least it used to. Firefox v1.0 to v1.08 all work absolutely perfectly, but Firefox 1.5 introduced one teeny-weeny and yet show-stopping printing bug that stops you from being able to print any useful info from ServiceCenter (technical details here in Mozilla bug 326162 if you're interested). Unfortunately according to the recent Firefox 2 beta release it doesn't look like it'll be fixed in Firefox 2 when that's released , and checking Firefox trunk (the ongoing work to create the not even alpha yet Firefox 3) the bug actually looks even worse at the moment.

So after reading this page on creating your own "user stylesheets" in Mozilla and this page that mentions a new experimental CSS rule, I put two and two together and actually came up with four for once!

So here's how to get Unisys ServiceCenter printing correctly in Firefox versions 1.5 and newer:

  • Download a recent version of Firefox
  • Run it
  • Close it
  • Find your Firefox profile folder (see here if you can't find your profile folder, and bear in mind that your profile may be in a Windows network roaming profile, or may be on your C drive).
  • Inside your Firefox profile folder look in the "Chrome" folder
  • Do you have a file in there called "userContent.css"? If so, open that file in Notepad, if not create a new text file with that name and then open it in Notepad.
  • Paste the following text into the "userContent.css" file:
    
    /* Fix b0rked ServiceCenter printing in Firefox 1.5+
    see Mozilla Bug 326162 https://bugzilla.mozilla.org/show_bug.cgi?id=326162 */
    
    @-moz-document domain(www.sc-ps.unisys.com){
    div.labl, div.val { overflow:visible !important; } }
    
  • Save the file
  • Open Firefox
  • Re-visit ServiceCenter and try printing a ticket out
  • Send me thanks, adoration, first-born children, money or just leave me a comment below saying how it worked out for you (actually forget the first-born children I wouldn't have a clue what to do with them).

One final note, Unisys have been known to change the server these web apps are on periodically, if so you need to edit the bit that says domain(www.sc-ps.unisys.com) to reflect the new server name. This may or may not work for other company's Peregrine web interfaces, may be broken at some point in the future by an upgrade to the website or to FIrefox, YMMV). Also this Mozilla bug may be fixed at some point in the future, so at that point you can safely delete the above lines from Firefox's userContent.css.

09 May, 2006

At last they're mine!

Remember way back when when I entered the MSN World's Best App competition with my Connect Four game?

Remember just a few months back when the winners were announced?

Well... my second place prizes have (finally) arrived! I'm currently playing around with my Oakley Thump sunnies, loading them up with music and looking just slightly silly :).

Also included in the prize is a nice, shiny copy of MS Visual Studio 2005 Pro (worth more than the rest of the package put together) and every Oakley Thump accessory available (but one). Its like Christmas came in May!

Looks like I'm going to be wearing my sunnies everywhere I go for the next week or two come rain or shine.

Just gotta finish by saying W00t new goggles! Thank you Microsoft!.

06 February, 2006

Maximum w00tage!

So MSN just announced the winners of their World's Best App contest today (or maybe late yesterday, can't do these timezone calculations in my head


Have a look down the list of winners, see that game in 2nd place called Connect Four? I made that

Edit 11/2/06:
Looks like its official! The official "Inside Windows Live Messenger" blog has just posted an article on Messenger’s Worlds Best App Contest Winners.

01 February, 2006

The most useful tool ever?

Microsoft XML Diff and Patch 1.0

Alright, maybe its a bit of an exageration, but this really did save my bacon the other day, and it is very useful if its what you need and things are formatted badly enough that WinDiff can't help you.