Jack, Josh & Meg rocked my Wireless Festival

We went to the Wireless Festival in Hyde Park yesterday to see Modest Mouse (sadly they didn’t play), Queens of the Stone Age (they rocked) and White Stripes. White Stripes were magnificent – one of the best times I’ve seen them and they’ve always been good. To come on after a full on rock band like QotSA, with just a guitar, keyboard and drums, and to make a bigger sound was frankly amazing.

We managed to catch another band – a New Zealand band we’ve never heard of called Connan and the Mockasins who were absolutely bonkers but who turned in a great performance. Very entertaining and I’d very much like to see them again.

I managed to record a teeny tiny clip of the White Stripes playing “Jolene” on my camera. I can’t say as the audio is that great but it gives you a great feel for the atmosphere at the festival. Enjoy.

Rock Drill

I had the pleasure of visiting Walsall’s New Art Gallery at the weekend (to go and see an exhibition about the art of the graphic novel) and was stunned into submission to see a lifesize replica – it’s about 12 feet tall – of this amazing piece of work by Jacob Epstein.

Rock Drill

The story goes that Epstein sculpted this in 1913 as a celebration of man’s embracing of technology and the bold optimism of the future.

As he became drawn into the Vorticist movement and with the onset of the First World War, Epstein’s opinions changed; he saw that technology was being bent to the purposes of war, cruelty, abuse and destruction and this lead to his destroying his own piece of work.

I can’t explain what kind of impression this piece made on me, save to say that an image does it no justice. It really is awe-inspiring.

Update: I’ve just noticed the similarity between this and the battle droids in the last three Star Wars films. I guess Jacob wouldn’t have been too impressed with his creation being armed with laser rifles and told to Kill on Sight.

Photoshop CS3 / Dell Monitor colour profiling issue (Mac OSX)

my good friend Dan has been exploring the quirkier side of Photoshop CS3 recently. It seems that when he hooked up his shiny new Dell monitor to his MacPro that it reset the CS3 Colour space to a Dell RGB one… that then forces all images and colours to be converted when they are saved out for web. Here’s the lowdown:

The problem I was having with PS CS3 web export was to do with the color profiling set up.

The Dell monitor(s) installed automatically impose a Dell RGB color space on PS leading to a color shift when you go to ‘save for web’. This is because the default profile (Dell) is automatically converted to sRGB when you select ‘Save for web/devices’. The shift in tone, gamma and saturation levels means that the colours become lighter and quite obviously different to the original.

To ensure this doesn’t happen (and that your colours are correct when they are exported out as GIFs, JPEGs and PNGs etc.) go to:

1) Edit > Colour Settings

2) Change your RGB space to ‘sRGB IEC61966-2.1′

This seems to fix the issue that I was experiencing and sets a precedent for future set ups.

my new friend

Over the last few weeks I’ve been entertaining a new boat guest.

This is Dame Margot Fontaine and she’s very curious. She likes to drop in during the day to see what I’m up to.

She officially belongs to my neighbour Beth.

Margot Fontaine

Update: Beth’s been away for a month now, getting her boat replated and I haven’t seen little Margot for ages… =(

Old Man River

This is a video clip from 2005 that I took of a very talented musician: Ohad Rein. He’s a solo artist who is also a member of an Australian band called ‘Nations By the River’ and has played with the likes of the Sleepy Jackson and Gomez.

His MO is a little peculiar – he travels round the world, stops off for short periods and then assembles a band to play his music. Everywhere he goes, it sounds different.

I was fortunate enough to see OMR in late 2005 – I saw them by accident at a gig at the Rock Garden in Covent Garden, where my friend Arda was playing, and they were so good that we all went to see them again the same day. We saw them one more time, for their final gig at the 12 Bar club in Denmark Street, before Ohad left for warmer climes.

The gig was amazing – a tiny venue, about 30 people there and the band managed to rouse us into a frenzy by the end with a stunning Bob Marley cover. The band’s own songs were great and I’ve spent the last couple of years trying to get hold of the album they recorded whilst in London (you can only buy it in Australia). I’ve received a copy in the post today and I can’t wait to listen to it.

Anyway here’s the clip. It might give you the slightest clue as to what’s so special about this man and his music

Host spoofing in Mac OS X

This is a handy way to test sites that are in the process of being moved from one domain to another, or even to create your own “invisible” internet.
Normally when a user requests something from a web-based domain, their computer will connect to a Domain Name Server (DNS) and request the correct IP address for that domain. As you can see for everything that is requested on a web site you will have at least one and possibly two net requests (one for the domain translation to ip and one for the asset itself) taking place. This can slow the whole process down.

What you can do is log a set of special domains (frequently used, personal, etc) in your /etc/hosts file. This is a kind of static file DNS server if you like. This is always consulted first and you can in fact use this technique to override any web address. By creating a web site that responds to requests on a certain domain (even if it’s not registered to that server) and by “spoofing the host,” you can create extremely secret / secure web servers as they have no visible presence on the internet, except to those users who have manually set their host files up.

We’ll be using vim which is a slightly nicer version of vi the linux/unix text editor. It’s a little unwieldy at first – all keyboard commands and odd-shortcuts but it’s a doddle to use once you’re comfortable with it.

Anyway, here’s how to do it:

1. open Terminal

2. type

sudo vim /private/etc/hosts

3. press I (for Insert)

4. scroll to the bottom

5. hit return to enter a space

6. type the following line

# TEMPORARY SPOOFED IP FOR TESTING

7. hit return to enter a space

8. type the following line

123.456.789.101 www.example_domain.com

where the ip address and the example domain are those that you wish to use

9. hit return to enter another blank line

it should look like this

# SPOOFED HOST
123.456.789.101 www.example_domain.com

10. hit escape

11. type

!wq

to save the file

¡IMPORTANT! You will have to re-start your mac to refresh it’s internal dns

Windows Users: It’s pretty much the same process, with the hosts file living in c:\windows\system32\etc\ (on WinXP) usually and you can edit the file notepad.

How to configure Dreamweaver CS3 (OS X) to render non-standard file extensions in Design View

If you do a lot of work with template based systems, as I sometimes do, you may find that Dreamweaver refuses to allow you to render some of the files in the Design view. This makes it incredibly difficult to find the correct template by loading it and viewing it.

The Dreamweaver documentation is not terribly clear on how to make the program recognise these files as HTML, or PHP type files. It seems to hint that you can go into your personal Library settings and edit a file called Extensions.txt - this will not work.

So here’s how to do it:

1) Browse to your ‘Applications’ folder

2) Open Adobe Dreamweaver CS3
3) Open Configuration / DocumentTypes

4) Edit the file MMDocumentTypes.xml

5) Find the section you wish to update – in my case it’s the PHP section

6) Edit this line:

documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5″ macfileextension=”php,php3,php4,php5,ihtml,pml” file=”Default.php” writebyteordermark=”false”

and add the other extensions that you wish Dreamweaver to interpret as displayable PHP files into the macfileextension section. I think it’s safe to assume that updating winfileextension will do the same for Windows Dreamweaver users.

7) Save the file

8) Restart Dreamweaver and voila!

How to customise the Unit Converter Widget in Mac OS X Dashboard

Dashboard! What a cool app - there when you need it, gone when you don't. That's my idea of usefulness.

Now one of the Widgets I use the most is the Unit Converter widget. It's very handy indeed and saves me having to browse through half a dozen Google results to find the conversion that I need.

However, for one reason or another, I was brought up to measure my weight in Stones - these don't seem to relate to anything real except bodyweight and unfortunately I can only appreciate my weight in these terms (Kg mean nothing to me, though suffice it to say I have a lot of them!).

Unit Converter doesn't have a facility for converting between Stones and Kilograms at present but actually adding one is very simple - all the information is contained in one script file that's part of the widget and in fact the hardest part of the operation is changing the permissions on the file. This should work for any other type of conversion you wish to add as well.

Here's how to do it:

This operation will require you to restart Dashboard (I think), which could mean you having to restart your mac. Ideally the best time to make this change is after you've booted up and before you start Dashboard up. That way, you can save your change, hit F12 and see it working straight away.

1) Launch Finder and browse to the Library folder on your hard disk

2) Browse to the Widgets folder

3) Ctrl-click the Unit Converter widget and choose Show Package Contents from the options

4) Now make a copy of Conversions.js to be on the safe side (you will need to enter your password to do this)

5) Highlight Conversions.js and Get Info on it

6) Here you will need to change the Ownership & Permissions on the file so that you can Read & Write it. You will need to enter your password again

OK, here's the fun bit

7) Open up Conversions.js in a text editor.
You will see it's made up of blocks for each of the conversion types, which look something like this

JavaScript:
  1. var Weight = [
  2. {name:'Short Ton (US)', toBase:linearForm(907.18474), fromBase:invLinForm(907.18474)},
  3. {name:'Pound (US)', toBase:invLinForm(2.204622622), fromBase:linearForm(2.204622622)},
  4. {name:'Ounce (US)', toBase:invLinForm(35.2739619), fromBase:linearForm(35.2739619)},
  5. {name:'Long Ton (UK)', toBase:linearForm(1016.0469088), fromBase:invLinForm(1016.0469088)},
  6. {name:'Metric Ton', toBase:linearForm(1000), fromBase:invLinForm(1000)},
  7. {name:'Kilogram', toBase:linearForm(1.0), fromBase:invLinForm(1.0)},
  8. {name:'Gram', toBase:invLinForm(1000), fromBase:linearForm(1000)}
  9. ];

so you can see, all we need to do is add another line in there with our conversion in it. Now the way that the Unit Converter appears to work is that for each set of units, it has a base unit - in this case it is Kilograms and you can see that the conversion ratio for Kilograms is 1.0. Whenever a conversion is made, the unit is first converted to the base unit, and then converted to the required unit.

Looking at an entry, for example

{name: 'Gram', toBase:invLinForm(1000), fromBase:linearForm(1000)}

you can see that the key information we need to put in to create a new entry is a name and a single figure, that being the amount of the new unit (Gram) per one of the base unit (Kilogram), that is, 1000.

To create a new conversion, we need to get that ratio. I went here and retrieved the following information:

1 kilogram is equal to 0.15747304441777 stones.

so all we have to do now, is go to the bottom of the weights block and:

1) Add a comma, after the final conversion (Grams), so the end of the line looks like this

... fromBase:linearFrom(1000)},

2) Put in the following line after the last entry but before the closing square bracket
{name:'Stones', toBase:invLinForm(0.15747304441777), fromBase:linearForm(0.15747304441777)}

3) Save the file and fire up Dashboard

Here's a copy of the complete and working file:

Conversions script updated to include Stones

Troubleshooting

You will know if it has worked because Unit Converter will run the way it always does and Stones will now be an option to choose from. If you find that you can't select any units and the image across the top does not look right, then there's something wrong with your update to the script: you've missed a comma, a quote or a bracket or brace or square bracket. Go back and look at it. In the worst case scenario, you can copy your original backup of conversions.js over the new one but you will need to restart Dashboard and possibly your Mac for it to work again.