Overheard snippet of mobile phone conversation on the train this evening:
“Of course the thing that he hates is the marriage proposal that comes with every cup of coffee…”
Obviously I’ve been going to the wrong branch of Starbucks.
Overheard snippet of mobile phone conversation on the train this evening:
“Of course the thing that he hates is the marriage proposal that comes with every cup of coffee…”
Obviously I’ve been going to the wrong branch of Starbucks.
Trying to teach myself some programming again, I thought I’d give Apple’s XCode a whirl. After all, last week I found myself bemoaning the fact that when I were a lad all computers came with a programming language built-in or bundled for free, and generations of youngsters grew up capable of writing simple but useful software. Nowadays, I grumbled, you don’t get that nowadays, you have to spend shed loads of cash on programming environments.
Not true, of course. Apple bundle XCode with their OS. Trouble is, it’s not exactly Sinclair Basic. Or even RealBasic.
Take the usual first step – get your program to say “Hello World!” on the screen. In RealBasic this would go something like:
MsgBox"Hello World!"
In XCode’s Cocoa (Objective C) environment, however, it looks a bit like this:
- (void)drawRect:(NSRect)rect
{
NSString* hws = @"Hello World!";
NSPoint p;
NSMutableDictionary* attribs;
NSColor* c;
NSFont* fnt;
p = NSMakePoint( 10, 100 );
attribs = [[[NSMutableDictionary alloc] init] autorelease];
c = [NSColor redColor];
fnt = [NSFont fontWithName:@"Times Roman" size:48];
[attribs setObject:c forKey:NSForegroundColorAttributeName];
[attribs setObject:fnt forKey:NSFontAttributeName];
[hws drawAtPoint:p withAttributes:attribs];
}
Yikes. Not quite a fair comparison, I admit. And it is free, and although it won’t compile Windows or Linux apps like RealBasic will, I’m guessing it’ll generally make leaner, faster code.
The example of code above comes from a rather good tutorial for beginners:
http://en.wikibooks.org/
wiki/Programming_Mac_OS_X_with_Cocoa_for_beginners
Oh well, they say brain-stretching work is good for you. Beats Sudoku.
In a, frankly rare, moment of solipsism, I googled myself and discovered that there was a settler in a place called Southold in colonial New York called Giles Booth. (There was also an Obadiah Booth and a Mehitophel Booth too – I bet they were just a couple of crazy guys.)
Then the other night the good people at BBC Four showed a Play for Today called The Flip-side of Dominic Hide, which I first saw when I was precisely one third the age I am today. It made a big impression on me all those years ago, and evidently made a big impression on the composer Michael Tippett too, as he pinched the plot for one of his operas.
It’s a lovely story about a man who travels back in time to the present (1980) to collect information on London Transport. But he discovers that there was a man in London in 1980 with the same name as him – Dominic Hide – and he resolves to find him. It turns out that he fathers a child in 1980, the Dominic Hide of 1980 is in fact his son.
So as I fell asleep I wondered if I, or my descendents, be travelling back to colonial New York to trace the other Giles Booth..?
A while ago I read in “The Photoshop Book for Digital Phtographers” by Scott Kelby that the default colour space used by Photoshop (and lots of other things) sucks. It’s called sRGB and seems to have been cooked up by Hewlett-Packard (who should know their stuff) and Microsoft (who manifestly don’t).
Scott Kelby says sRGB is ‘arguably the worst possible colour space for professional photographers’ and recommends Adobe RGB instead. So I’ve been using Adobe RGB when I tweak the colours in my pictures, mainly to post on Flickr.
But as this photo shows, most web browsers don’t use embedded colour profiles – in Mac OS X for example, Apple’s Safari does, but Firefox and Opera do not. Heaven only knows what Internet Explorer does on any platform, but I bet that it too uses sRGB regardless of any embedded profile in the original image.
Also, I get some of my photos printed at Photobox.co.uk – I just studied their site and their Fuji printers ignore embedded profiles. Only their large-format poster printers use them.
So I guess I’ve been wasting my time – if I want most people to see my images the way I do, I probably should be using sRGB after all.
I take it all back. Screen rotation does work in OS 10.4.4 – I just needed an external display on my PowerBoook for the option to show up. A humble telly sufficed. Thanks to westy48 for setting me on the right track here.