Thursday, 2 April 2009

DevWeek 2009 Demos

Are now available on the Rock Solid Knowledge site. I've upload the 'So you think you now JavaScript', 'Design for Testing' and Day of 'Ruby and Rails' talks. Andy's already put up the 'Day of Patterns' and 'Patterns Dartboard' talks

Posted by kevin at 2:19 PM in General

Sunday, 4 May 2008

More Ubuntu Settings

I was going to call this entry "More Ubuntu Woes" and maybe I should have.

Ubuntu makes certain things that should be difficult, easy and some things that should be easy, difficult, like assigning keys to commands. I'm a keyboard jockey, I'm way happier using the keyboard than the mouse> I tell my self this is because the keyboard is quicker, but it's probably because I cut my teeth in the days before mouse, and and in Emacs where key chords are king!

This means I am lost without my keyboard shortcuts, in Windows such things as W+L to lock (where W is the Windows key). I use Windows a lot, and if I'm using Ubuntu I'd like the same keys to work. This should be easy, however it appears that having Compiz enabled, Compiz and Gnome clash!. Gnome has dialogs to set up keybindings, but you have to jump through hoops to get it to work.

First hoop is getting Ubuntu to recognise the Windows key (called the Super key in Linux) as a key modifier, like Control and Alt. To do this go to System..Preferences..Keyboard, select the Layouts tab and then Layout Options. From here select Alt/Win key behavior and then choose "Super is mapped to the Win-keys"

Once you've done this you can now edit the Gnome keyboard preferences. From System..Preferences..Keyboard Shortcuts, scroll down to Desktop. Here you can click on the "Show the panel run application dialogue", select this and hit WindowsKey + r on the keyboard. Do the same for Run a terminal, but select WindowsKey + t. You may think you can do the same thing for the Search, Home Folder and Lock screen commands (assign them to Windows + f, Windows + e and Windows +l respectively), however, those commands cannot be assigned from here and if you try, not only will the commands not work but you may have trouble re-assigning the keys elsewhere. Instead to assign these key you will need to you the Compiz Configuration Manager

Select System..Preferences..Advanced Desktop Effects Settings. In the dialog box select General and then Commands. I have my first three commands set to "beagle-search", "nautilus" and "gnome-screensaver-command --lock" respectively and the key bindings set to f, e and l. And this all works.

There's more here on this.

Now, if only I can get Ctrl+Esc to bring up the main menu!

Posted by kevin at 12:21 PM in General

Sunday, 21 October 2007

Ubuntu Suspend

Suspend was was working in Feisty but when I updated to 7.10 (Gutsy) it stopped. When I resumed all I'd get a blank screen.

This post seems to have fixed things for me.

Having played with these settings it looks like I only need
POST_VIDEO=false
from the
/etc/defaults/acpi-support
file

.

Posted by kevin at 5:18 PM in General

Friday, 5 October 2007

Books I've Read Recently

Somebody was asking about books on an in internal DevelopMentor listserver.

This is a list of recent books that I've read (and these are just the ones within the last three months)

  • Revelation Space series by Alastair Reynolds. Hard Science Fiction. First two books are great, the third was slightly disappointing.
  • Harry Potter an the Deathly Hallows I'm sure you all know this one. It's unremittingly dark
  • Slaughterhouse5 by Vonnegut
  • Occupational Hazards by Rory Stewart. Required reading if you're interested in Iraq and what will happen there
  • Salmon Fishing in the Yemen. Because I'd run out of books on holiday, and yes, it is a novel, and it's actually quite good.
  • God is not Great by Christopher Hitchens. For all us non-believer's out there.
  • This Book Will Save Your Life. Another Novel. Get the doughnuts instead!
  • A Short History of Tractors in Ukranian by Maria Lewycka. Very funny. You'll like all the characters by the end
  • The Life and Times of the Thunderbolt Kid by Bill Bryson. This is laugh-out-loud funny. If you haven't read it, treat yourself and go and buy it. On holiday I read it, my wife read it and the kids read it.
And that was just on holiday Since then it's been

Posted by kevin at 3:10 PM in General

IgNobels

The IgNobels were awarded this week

I especially loved this one:

Literature - Glenda Browne of Blue Mountains, Australia, for her study of the word "the", and how it can flummox those trying to put things into alphabetical order.

Sounds like the sort of thing Douglas Adams or Terry Pratchet would write.

Posted by kevin at 12:34 PM in General

Wednesday, 12 September 2007

Drumming Gorilla

Made me smile

Posted by kevin at 11:26 AM in General

Thursday, 8 March 2007

No Comments

I've disabled comments for the time being as I'm getting stuffed by spam (bastards!). I'll re-enable when I get a good solution

Posted by kevin at 4:39 PM in General

Friday, 23 February 2007

Still Alive

Just to prove I'm still alive I'll be at DevWeek next week.
See you there.

Posted by kevin at 8:44 PM in General

Thursday, 31 August 2006

Security Engineering

Just picked this up on Schneier's blog. You can now download Security Engineering free and legal.

It's a great book, go get it!

Posted by kevin at 2:29 PM in General

Monday, 21 August 2006

SpeedTest

This is very cool

speedtest.net

Posted by kevin at 1:29 PM in General

Tuesday, 6 December 2005

Being on boats!

This week I'm attending a Microsoft "VSTS Proof of Concept" training course in Paris. The course is here.

All I can say is: Never have your training on a boat!!

Posted by kevin at 2:16 PM in General

Friday, 11 November 2005

Drawing - how do they do that?

This animation amazed me because I've always wanted to be able to draw and I'm completely useless.

Posted by kevin at 5:58 PM in General

Friday, 4 November 2005

DRM and Rootkits

As my friends would tell you I really hate DRM. I like to buy CDs and I also think that the CDs I buy belong to me, I'm not licensing the content, I've paid and I own it. I like to rip the CDs to my PC at home and then onto my IPod. I don't give copies of the CDs to my friends, I don't use Kazaa or other file sharing software, and I don't sell bootlegs on street corners. I like to think I am an honest person and from this point of view DRM hurts me. DRM also has the bizarre side effect of making honest people dis-honest.

For example, myelf and my family are fans of Lost, but, being in the UK, we can't follow series 2. I bought a copy of the series 1 DVD in the US when I was there in September, and we watched the DVDs inside a week a so. My kids wanted to watch Series 2, so I thought I'd be go get the episodes on-line. I go to the Apple music store and try and download the episodes, turns out I need a US billing address to get the episodes, as I'm in the UK they're not available to me.

I have lots of friends in the US and I ask one of them to download the first episode for me, which they do, so I grab the episode and of course it's DRM'd and I can't unlock it on my PC. This is an episode that I've paid for and only my family will watch. At the moment nothing is available to remove this DRM so I have to either wait until Lost Series 2 becomes available in the UK, or I have to get an illegal copy of Lost using BitTorrent or something similar!

Which brings me to the real point of the post. Sony have released a DRM'd CD which installs a root kit on your PC when you install the software on the CD. This was brought to the world's attention by Mark Russinovich here, and has been discussed in many places. I just wanted to point at this excellent Inquirer article which starts

SONY SCREWED UP WITH its rights removal to protect its profit margins philosophy and there is no way the use of rootkits can be justified.

Caught with its pants down, what did it do? Make things right? Heck no, it blamed the user, and doesn't do anything more than window dressing to deflect what are valid criticisms.

Being an optimist by nature I hope that the furore surrounding this will bring companies like Sony to their senses, but realistically I doubt it!

Posted by kevin at 7:45 AM in General

Friday, 14 October 2005

So you want to be a DevelopMentor Instructor

A colleague of mine lives in LA and was going to teach in Austin Tx. He arrived 30 minutes late on the first day of his class and this is his story:

I had missed my flight from LAX leaving 5:00 pm to arrive 11:30 pm in Austin. I missed it because I'm an hour from LAX, and one of my lovely daughters removed my wallet from the bag it was in, so by the time I realized it I knew I'd miss my flight. No other flights in to Austin from LAX would arrive on time -- time to panic. I ended up taking a 9:00 pm flight to Las Vegas, sitting in a lounge for an hour with a bunch of drunk Minnesotan college students, then getting on a plane to Houston. Arrived in Houston 4:00 am local time. Took a taxi to the *other* Houston airport (there are 2, about 30 miles between them). Rented a car -- literally the *only one* left in Houston because at that time all the Louisiannans have grabbed anything that can get to take them back to the battered Gulf Coast -- and drove 197 miles straight to Austin. Actually I did stop at my hotel to check in and change my ripe clothing, but then went straight to teach.

And we lead such a glamorous life!

Posted by kevin at 7:21 AM in General

Thursday, 6 October 2005

Guiness Advert

I hadn't seen this ad on TV yet. Very clever, especially the mud skipper at the end!

Posted by kevin at 7:24 AM in General

Tuesday, 4 October 2005

Terrorism Laws

After the outrage of 9/11 the US and UK governments decided that one way to fight the terrorists was to introduce new 'Anti-Terror' laws. One aspect of these laws is to curtial the freedoms that we enjoy.
These freedoms include the right to free speech and free assembly

At the time these laws were mooted, and in the intervening years some people (including me) have worried about the impact of these laws. The governments assure us that these laws won't be used against "ordinary" citizens, however it seems obvious to me that once these laws are put in place it is very hard to stop the police from using them.

Two stories recently have highlighted this. The first of these was widely reported, as was the fact that he was held under UK anti-terrorist laws.

The second story about a student at Baylor is almost comical, except for the fact he was questioned by police about committing a "terrorist act."

I fear that these incidents are going to be the thin end of the wedge. We cannot afford to give up our freedoms, if we do then terrorism wins!

Posted by kevin at 8:31 AM in General

Sunday, 11 September 2005

Blojsom and Apache Virtual Server

I've finally got this to work the way I wanted to although there are still some things in the setup I need to fix. I want to document the setup I have here in case anybody else tries to do the same thing.

As Blojsom is a Java web app I needed a Java web server, and being very familiar with Tomcat I chose to use that server (currently 5.5.9). The machine that hosts this blog is running Apache and I can't remove Apache just to run Tomcat so I had to get them both working together

The simplest solution was to use mod_proxy and just for giggles I decided to go with the VirtualHost approach. I found this Document and used that as the basis for setting up my server. Initially my VirtualHost entry looke like this

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName blogs.advantaje.com

  ProxyRequests Off

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass        /  http://localhost:8081/blojsom/
  ProxyPassReverse /  http://localhost:8081/blojsom/

  ErrorLog /etc/httpd/logs/blogs_error.log
  LogLevel warn
  CustomLog /etc/httpd/logs/blogs_access.log combined

</VirtualHost>
i.e. forwarding any call to http://blogs.advantaje.com to http://localhost:8081/blojsom/
However this failed when I tried to adminsiter the site. I kept getting asked to log-in whenever I tried to perform any administrative task, so I'd log in, try the task again and be asked to login,a nd go round and round that loop!

In the end I went with a different solution. I create another instance of Tomcat, made Blojsom the default (ROO) app, changed the ports in TC from the default values and changed the VirtualHost to look like

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName blogs.advantaje.com

  ProxyRequests Off

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass        /  http://localhost:48081/
  ProxyPassReverse /  http://localhost:48081/

  ErrorLog /etc/httpd/logs/blogs_error.log
  LogLevel warn
  CustomLog /etc/httpd/logs/blogs_access.log combined

</VirtualHost>
Blojsom's happy and I'm happy!

Posted by kevin at 11:39 PM in General

Friday, 9 September 2005

New Blog

I've been meaning to do this for a while, move to a new blogging engine. This is Friday night and I'm off to the PDC at 6 o'clock tomorrow so I've just got this working I think!

It needs to be tested a lot more and the home page(s) needs to be fixed, but I'll get there.

Why move? Several reasons, the blog I currently have was originally written by Ted Neward and then re-written by me and there are several features missing such as categories. I was working on another re-write but simply don't have the time to do what I want so I figured it's time to move on. I've chosen blojsom as the blog engine. I wanted a Java engine and I liked blojsom having seen poor reports of JRoller. Hopefully here I'll blog more often but it will be on other things as well as Java.

Posted by kevin at 7:02 PM in General