Thursday, July 12, 2012

BBC Proms 2012 round-up


Here's my annual guide to all the Proms that might be of interest to musical theatre and film music fans.


All Proms are broadcast live on BBC Radio 3 and Online. You can also listen online later on BBC iPlayer.
TV broadcasts are interspersed with the live dates in chronological order. Proms with TV broadcasts are marked with a *. TV broadcast times are not yet available, so check nearer the time.

SCHEDULE

Saturday 14th July - 7pm
Lerner and Loewe: My Fair Lady (semi-staged)
Conductor: John Wilson
Orchestra: John Wilson Orchestra
Orchestrations by Andre Previn from the 1964 film
Cast: Annalene Beechey, Anthony Andrews, James Fleet, Alun Armstrong, Julian Ovenden

Sunday 29th July - 3.30pm
* The Wallace & Gromit Prom: Musical Marvels!
Music inspired by and taken from the Wallace and Gromit films.
Conductor: Nicholas Collon
Orchestra: Aurora
Recorded for later TV broadcast (date tba).

Monday 6th August - 7pm
* Bernstein's Mass
Conductor: Kristjan Jarvi
Cast: Soloists & assembled Welsh choirs

Thursday 9th August - 10.15pm
* Glamorous Night: A Celebration of Ivor Novello
Conductor: Sir Mark Elder
Orchestra: Halle
Cast: Sophie Bevan, Toby Spence, Simon Callow narrates

Saturday 11th August
TV: Glamorous Night: A Celebration of Ivor Novello
BBC Two

Sunday 19th August - 7.30pm
* Gilbert & Sullivan - The Yeoman of the Guard (semi-staged)
Conductor: Jane Glover
Orchestra: BBC Concert
Cast: Leigh Melrose, Andrew Kennedy, Lisa Milne, Victoria Simmonds, Felicity Palmer, Mary Bevan

Friday 24th August - 7pm
Britten: Peter Grimes
Conductor: Edward Gardner
Orchestra: ENO
Cast: Stuart Skelton, Amanda Roocroft, Iain Paterson

Saturday 25th August
TV: Gilbert & Sullivan - The Yeoman of the Guard (semi-staged)
BBC Two

Monday 27th August - 8pm
* The Broadway Sound
Conductor: John Wilson
Orchestra: John Wilson Orchestra
Cast: Soloists tba, Maida Vale Singers

Tuesday 28th August - 6.30pm
Mozart: The Marriage of Figaro (in Italian)
Conductor: Robian Ticciati
Orchestra: Age of Enlightenment
Cast: Soloists, Glyndebourne Festival Opera

Wednesday 29th August - 10.15pm
Eric Whitacre is the brains behind the internet-based Virtual Choir. He presents his own pieces and others in this late night event. Includes several premieres.
Conductor: Eric Whitacre

Saturday 1st September
TV: The Broadway Sound
BBC Two

Wednesday 5th September - 7pm
John Adams: Nixon in China
One of the iconic work of our times with a mix of Broadway, rock, Minimalism and Stravinsky.
Conductor: John Adams
Orchestra: BBC Symphony

Thursday 6th September
TV: Bernstein's Mass
BBC Four

Saturday 8th September - 7.30pm
* The Last Night of the Proms
The usual mix of traditional programming and other songs including You'll Never Walk Alone (Carousel) and Olympic Fanfare and Theme (John Williams)
Conductor: Jiri Belohlavek
Orchestra: BBC Symphony
TV: Broadcast Live on BBC Two, then BBC One

Tuesday, July 10, 2012

Photoshop CS6 too dark?

I switched from CS5 to CS6 and was promptly depressed by the default dark colour scheme of CS6.
I thought I was stuck with it, but then I found the setting!

From the top menu, do Edit->Preferences->Interface and then change the 'Color Theme' at the top of the window.

Only a quick blog post, but I can't imagine I'm the only one who isn't feeling dark today!

Friday, July 06, 2012

Matching a word / characters outside of html tags « Adventures in PHP / DHTML / CSS and MySQL

Matching a word / characters outside of html tags « Adventures in PHP / DHTML / CSS and MySQL:

'via Blog this'

Cut-n-pasted from there:


So in English, the regEx I came up with, word(?!([^<]+)?>), could be interpreted as:

Match the characters "word" literally word
Assert that it is impossible to match the regex below starting at this position (negative lookahead) (?!([^)
Match the regular expression below and capture its match into backreference number 1 ([^<]+)? Between zero and one times, as many times as possible, giving back as needed (greedy) ? Match any character that is not a "<" [^<]+ Between one and unlimited times, as many times as possible, giving back as needed (greedy) + Match the character ">" literally >

Tuesday, June 26, 2012

Calibrating your monitor for CMYK print jobs

I'm currently preparing print jobs for saxoprint.co.uk. Part of their service is offering templates to use when creating artwork. So, I want the print job to reflect what's on the screen. Of course, monitors display using RGB and printing is done CMYK.
So, I'm using this guide to try and do that.
Calibrate Your Monitor:

Friday, June 22, 2012

HTML5 and jQuery and the audio tag

I wanted to play a notification sound when something had completed, just for fun. I didn't want to show anything onscreen that said it was playing a sound, I just wanted it to play in the background.

This is how I did it:

<audio src="/includes/audio/fanfare.mp3" preload="auto" id="fanfare" autobuffer></audio>


<script type="text/javascript">
  $(document).ready(function() {
    $('#fanfare').trigger('play');
  })
</script>


Now, obviously, you can call that trigger('play') on any condition you like. I just wanted it to play as soon as it appeared as it was a through-Ajax part of the page. So, as soon as the process in question finished, it loaded, through $.ajax, the page containing the fanfare content above. Thus loaded, the fanfare played.

Tuesday, June 19, 2012

Eclipse - slow near angled bracket

Just a quick note.
Finally found out what was causing the immense slow-down in Eclipse when editing large files.

What was happening was every time I opened an angled bracket, keyboard repeat onto the screen lagged. i.e., you'd press a key and then have to wait a second or two for the character to appear.

What you need to do to fix this is to get rid of any View in your Perspective that you are not using. In particular, the Outline view from the General perspective. It seems that every time you open an angled bracket, that line becomes part of the file Outline and it has to move everything in the Outline to insert your new element.

So, just get rid of the Outline view from your Workspace and Restart Eclipse (very important!).

The Amazing Spider-Man (James Horner)

My occasional foray into reviewing film scores/soundtracks continues anew with James Horner's score to the new Spiderman movie.

First impressions 

As all film score fans will know, James Horner plagiarises himself. This is sometimes no bad thing as he has created a lot of fantastic scores in the past, and sometimes it's a bad thing where he lifts entire sections from one score and drops them unceremoniously into another (see Aliens and Patriot Games and a lot of others).

There is a fair amount of this in The Amazing Spider-Man, but it is done so well, and mixed with so much exciting new material that I couldn't help but be pulled along for the ride.

First 'Live' listen

First of all, we have the Main Title. Horner lays out his pieces immediately by mixing live orchestra with  synthetic electronic flourishes and undercurrents. He is clearly going for brass-led orchestrations, which of course is entirely appropriate for a super-hero movie. There is a theme here, but it's more of a style motif. In a way, it's similar to Elfman's score for Sam Raimi's version of the character. There are some influences, both stylistically and through instrumentation, of Avatar here and there, a score I am not over-fond of, despite the accolades heaped upon it. So far, based on the substantial first track, I am reminded a little of Ottman's Superman Returns, which is one of my favourite superhero scores, so I'm pretty happy at this point!

Also introduced in the first track is a choir (possibly synth, possibly not) and I'm pleased to hear straight away the old Horner style of overlaid piano, so hopefully there'll be some piano solos in this album.

In the second track, Becoming Spider-Man, the theme is used again, as well as the instrumentation from the Main Title, but this time it is expanded upon with a full-on choir and string statement. After that, we're briefly into Superman/Rocketeer territory with what I hope is a reference to the humour in the film.

So far, this is easily beating most of Horner's recent output, all the way back to before Titanic.

At the end of this second track, more electronics are brought in and give the music a bit of a retro edge... will be interesting to see if this continued. Oh dear, a little plagiarism at the end (see next section).

We're treated to some light-hearted brass and string (and, yay! piano) for track 3...

In track 4, "Hunting for Information", we get some 'messing about' background music, as befits the track title. It has a lot of rich texture, something common to all the tracks so far. Never boring or Media Ventures-like.

Track 5 starts with some ponderous piano. Very mysterious and 'I have found something revealing!' Again, this music is never boring even when it's not going anywhere, and this is definitely a background track. The piano continues and becomes... sadder, I think.

The next track is "Spider Room / Rumble in the Subway" - quite promising as track titles go and the start of the track gives the impression of the lead-in to an action sequence. Lots of low string stings. Ah. Here we go, swirling discordant strings, electronic stings and clicking fingers... Okay, didn't expect that. We're back into electro-retro land, very 70s. Perhaps not an action sequence, then? Probably Spidey slapping down a mugger or something.

Track 7 is called "Secrets" clearly involved the discovery of something sinister or shocking... it's just that sort of music. There seems to be something of an ascending 6-note motif behind a lot of the tracks, which ties things together. A change now... what the heck is that, sounds like an echo chamber... Now we're onto a glockenspiel, which is, again, unexpected. A bit dull... First time for that thought.

Track 8 brings us some guitar for "The Equation". It's quite tranquil and is clearly going to be quite subtle behind whatever is happening on screen. Heh. Just seen Empire magazine's Spider-Man review... Have to read that at some point, I suppose! Back to the score... I swear I just heard Babylon 5's synths in there! Oooh obscure plagiarism alert, barely! That piano solo is a bit... a bit like Silvestri's Contact, not plagiarism really, just gives that impression.

The Ganali Device... an intriguing name for track 9, and probably a plot McGuffin as well. Typical Horner instrumentation, but in a good way.

Track 10 begins in a very sinister fashion. Again, the strings with an electronic pulse. I won't mention the track title as it is a HUGE SPOILER for those fans who thought that this was a very different take on the story. It's tear-jerking stuff, really. Strings against piano is very reminiscent of Contact, but a touch more delicate and interesting. Oh, terrific, my heart just skipped a beat around 4:33 as the percussion drops in, probably to clue us in to Peter's anger at this point. Very exciting action music here, desperation in the air for Spidey, methinks. We even get a little Horner 'despairing brass' lick for good measure.

Track 11 is Metamorphosis. I would guess that this isn't anything to do with Spidey's physical changes. It's sinister to start with then blossoms into a string-led theme with either triangle or glock ripples. A pity this isn't expanded on some more in this track as it seems something has 'gone wrong' in the metamorphosis because we are in terror mode now, with chasing strings and brass wails. Then, after some clashes and percussion, the music returns to a more heroic statement of the 'pretty' bit of the track. Perhaps not Spidey's theme.

Track 12, Rooftop Kiss is from Deep Impact... I mean, that's what it sounds like. Now, most Horner fans liked the Wedding cue from that other movie and will probably agree at this point that this is a very nice modification of that theme. I love piano solos, so this is lovely for me!

Track 13 is full-on action mode with strings, wailing Matrix-style brass, synth and percussion. It's called The Bridge. Why is there always a bridge sequence in Spidey films? Another, great statement of the Spidey hero theme before the action takes over again. The driving electric bass and synth is becoming a strong thematic element, giving a definite retro character to the piece. Solo voice is used in this track, not sure why, but it's very distinctive. Another, creepy child's voice, has come in now. It's very Lord of the Rings, but used differently.

The rest of the tracks will have to wait until I finish work and get time to finish the review!

References and Plagiarism (by track)

  1. None that I could detect.
  2. Sneakers-like choir. Rocketeer percussion/brass. Rocketeer brass runs towards the end of the track.
  3. None.
  4. Sneakers.
  5. None.
  6. Star Trek II, in the way the strings rise and fall, but nothing major.
  7. None.
  8. Spitfire Grill (told you it was obscure!)
  9. A Beautiful Mind.
  10. Avatar (barely). Titanic (the brass ripples).
  11. None.
  12. Deep Impact

Sunday, June 03, 2012

Tangy Gammon with Red Wine (first recipe post!)

I thought I'd start a new series of blog posts with some the 'make it up as you go along' recipes I cook for my family! So, here we go. We'll call this Tangy Gammon with Red Wine. Cos that's what it was. *ahem*

No picture of the food, I'm afraid as we just ate it. But, suffice to say it looks like what it sounds like. It tastes... well, tangy. Like it has a bit of lemon juice in it, except it doesn't. Chinese-y without knocking your socks off.

Gammon with Red Wine and Spices (feeds 4, should take 30 minutes to prep and cook)

Ingredients

Main part
2 large gammon steaks, cubed
2 courgettes, sliced
1 orange pepper, chopped
2 cups of rice

Sauce
250ml red wine
Splash of worcester sauce
2 tsp hot curry powder
2 tsp ground cumin
2 tsp paprika
1 tbsp mixed herbs
1 tbsp flour
50ml water

Method
Rice
  1. Boil water in a saucepan for the rice.
  2. Once it's boiled, add the rice and boil for 10 minutes.
  3. Once cooked to your taste, drain the rice into a sieve and then put it back in the saucepan.
  4. Cover and leave on the side. It won't cool down so much that it will taste cold.
Main part
  1. Hit 2 tbsp of olive oil in a wok.
  2. Add the gammon cubes, stir fry for about 5 minutes.
  3. Add the veg. Stir fry for another 5 minutes.
  4. Cover and leave to cook in the juices for 5-10 minutes while you do the sauce (and probably drain the rice).
Prepare the sauce
  1. Put the red wine, worcester sauce, water, curry powder, cumin, paprika and mixed herbs into a jug.
  2. Stir it all together. Be careful, remember red wine stains!
  3. Add the flour and stir.
  4. Use a whisk to mix vigourously and to get rid of the lumps that will now be there!
  5. Put the sauce into the wok with everything else.
  6. Cover and cook for 10-15 minutes, stirring occasionally.
Serve the rice in a bowl first then spoon the meat etc on top. I recommend a slotted spoon so that you don't end up with loads of sauce in the bowl at the end, but make sure you get some in there as it tastes quite nice!

Feedback welcome!

Thursday, May 31, 2012

Website template layout editor with jQuery

This is just a project announcement. As part of my Glacier CMS, I will be creating a website template layout editor using jQuery for the front end and ColdFusion on the back end to save the layout in an XML format.
This XML format will then be read by the CMS to generate the edit-page interface with multiple wysiwygs.
My hope is that it will be generic enough for others to use.
Now... to research drag-and-drop with jQuery!

Ah... here we go. Good old jQuery UI. At least it's basically standard! Draggable, droppable AND resizeable. Perfect!

And to find a name!

Improving VPN connection speed

Just a quick blog. My work VPN is slow... but the worst thing is I cannot get on the Internet through it. I can use Google, but if I try and follow the links, the page never loads.

So... I did a search and found this page:
http://www.richard-slater.co.uk/archives/2009/10/23/change-your-mtu-under-vista-or-windows-7/

It's a great how-to guide on how to change the MTU of a Windows 7 network connection to an optimum value.

I did, however, have to lower the MTU that I discovered using this method by 100 in order for the wider Internet to be available. This might have something to do with the network configuration on the work end, but either way it worked!

Thanks Mr Slater for your post - 3 years old and it still works!

Saturday, May 26, 2012

Eurovision... Live Blog!

Well, the curtain, if they had one, has gone up.

20:02 - It's the camp version of Tron.

20:03 - Graham Norton doing his best Terry Wogan impression.

20:04 - Oooo. They're all fast and spinny...

20:05 - Oh. Eh-oh. Oh. Oh. Eh-oh. Yep, sounds like last year's entry to me. Nice dress, though.

20:07 - They got a job lot of white fabric for the (very attractive) hosts. Except not quite enough for the one on the right... Look at that flesh coming over. Will she make the end of the programme without popping out? Stay tuned!

20:08 - Oooh. Time-lapse construction. Please go faster... it's not exactly the Olympic village...

20:10 - Do we need the smarmy bloke in white? Can't we just stick with the girls? Seriously... three hosts is overkill, right?

20:11 - Ahhhh. There he is. The man-whose-face-shall-be-forever-the-same. The incredibly well-preserved Englebert Humperdink. If that's how you spell it.

20:12 - The venue is very nicely lit - country flags, sweeeet.

20:12 - Here we go... So Graceful and Pure... Lurrrrrrve comes once, apparently.

20:14 - Choreographed pigeon steps? Check. More interesting dancers than singer? Check. Only Lev can set you free? Ooooooh. Pitchy! It's a lovely song, very musical theatre... But more like an Irish entry than our usual Brit-pop. Oh, dear God, the falsetto...


20:15 - No-one has ever won from second in the running order. Hungary, we pity you. Away you go.
Clothes by Jean-Paul Gautier? Or clever rip-off anyway. They appear to have phallic shaped springs projected onto the floor... At least it's got a bit of 'go' to it!

20:17 - I quite like this... Be even nicer if I could hear the lyrics. Annunciate, darlings... Unfortunately, better than ours!


20:19 - Next is "Suss" from Albania. Suss? Soos? Seuss? Dr Seuss? A song I like, it makes me smile. How I wish I could clean the tiles...

20:20 - Kudos to the lighting designer... narrow spot, red wash. And this is NOT in English. Incredible outfit, looks like the wicked queen from Snow White.

20:21 - What up with hair?!??!?!

20:22 - Arrrrrrrrrrrrrrrrgh. Pitchy warbles! Neuuuuuuuuuu! She really BELIEVES those flat notes, though. Such conviction... Ooooo! Top B flat flat flat flat.

20:23 - What's she muttering? An apology? Well, you're forgiven, dear.

20:24 - Okay "Love is Blind" from Lithuania... High concept, apparently. He's wearing a blindfold... Why is that? The Albanian woman has already gone... Oh, right... Love is BLIND. Gotcha.

20:26 - Oh, no. He's trying to dance. Thought he'd shown the world "the finger" for a moment, but no, he was just making an exciting POINT.

20:26 - Well, he's moderately talented, but that song is a DOG.

20:28 - Shit, my laptop is getting hot. Can't keep up with this! Will try to though.

20:28 - Ah. B&H. I like a self-accompanying singer-songwriter. Gives me the feeling that she will sing it with conviction. Nice tune so far.

20:30 - Oooh. That's daring. She's stood up... Ah, they have a flute as well. That's nice. Where the _hell_ did those shoulders come from? Great teeth, though. I wonder if she has had work? Oh, wait, I'm supposed to listen to the song... must be a bit boring... It was nice... A bit bland, but a nice little ballad.

20:31 - Russian Granny Time!!! They're doing it to rebuild their church... That's lovely :-) Oh, please let them sing decently.

20:32 - Nope. Too much to hope for. Here's hoping for no fatalities.

20:33 - Oh, that's just WRONG. Grannies asking us to dance to a rap beat.

20:34 - Can't believe I haven't had any comments yet! No comments before 8:45 and I stop! C'mon and dance... I mean... contribute! Damn it's catchy!

20:34 - Tracey, wife, hit the nail on the head... "They're going to bloody win, aren't they!"

20:35 - They're asking so politely, I'm going to have to get up and dance now! I liked it. Damnit. Too bloody catchy!


20:36 - Iceland. This singer has had too much caffeine. Doesn't blink! Cute violinist, though... Oh, maybe not. Close-up!


20:37 - Sounds like Bombay Dreams... It's very catchy, they're snappily dressed, but... Ooooh. Acapella! For 1 bar. Shame.

20: 39 - Slickly produced, that. Black outfits on typical Icelandic blonds. Nicely done. Probably finish in top 5. NEXT!


20:40 - Cyprus. La La Love. On a stage made of books. Catchy pop song, apparently. Let's see.... Oh, dear not a promising start...

20:41 - Heavy on the uh-uh-ohs, less on the decent lyrics. Pretty singer, though. But, the costumes mean they are fading into the background and the projections...

20:42 - Bit trance/dancy. Tracey's bobbing her head, though, so must be quite catchy. They'll probably be in the top 10. They haven't won for at least 30 years, though... She's looking a bit laboured now, too, like she's rehearsed it too much. You can't fault the enthusiasm, though.

20:43 - France. My favourite country. NOT. Cmon then... If we have to...

20:44 - One for the ladies... look at them thar pecs. Gymnastic team, apparently. Probably means the song is rubbish...

20:45 - The tune is boring, and it's in French... which is just typical of the French. Oh, no, there is some English in there... The half-naked men are far more interesting than the song... And I'm _straight_! I'm sure I've seen those blocks somewhere before though... in the local school drama department, in fact...


Okay... alas only 15 views and no comments, so, that's all folks.

Friday, May 04, 2012

Eclipse / CFEclipse Cheat Sheet


I knocked this up for some guys at work and thought it might interest users of CFEclipse and Eclipse.

Eclipse / CFEclipse Cheat Sheet

Editing

What does it do?
Key combo
Next file editor
Ctrl-PageDown or Alt-LeftArrow
Previous file editor
Ctrl-PageUp or Alt-RightArrow
Maximise editor pane
Ctrl-M
Switch to editor pane
F12
Save all open files
Ctrl-Shift-S
Close all editors
Ctrl-Shift-W
Go-to line
Ctrl-L
Move current line up/down
Alt-UpArrow / Alt-DownArrow
Delete current line
Ctrl-Delete
Indent
Tab
Unindent
Shift-Tab
Uppercase selected
Ctrl-Shift-U
Lowercase selected
Ctrl-Shift-L
Scribblepad / CFDocs
F8

ColdFusion

What does it do?
Key combo
CF Comment
Ctrl-Shift-M
Hash marks pair
Ctrl-Shift-H
Single quotes pair
Ctrl-‘
Double quotes pair
Ctrl-“
<cfoutput> pair
Ctrl-Shift-O
<cfdump>
Ctrl-Shift-D
<cfabort>
Ctrl-Shift-A
Add pair of dynamic matching tags
Ctrl-Shift-W
Find next matching tag
Ctrl-K
Find previous matching tag
Ctrl-Shift-K

HTML

What does it do?
Key combo
<br/>
Ctrl-Enter
&nbsp;
Ctrl-Shift-Space
<p> pair
Ctrl-Shift-P
<em> pair
Ctrl-I
<strong> pair
Ctrl-B

Saturday, April 28, 2012

Web to Kindle clipping - service comparison

Background

So, you want that web-page article on your Kindle, do you?

There are a few services out there that enable you to 'clip' parts of a web-page and have them sent automatically to your Kindle. This post is going to review all the ones I can find, both bookmark-based and plugin/extension based. I will only be looking at extensions for Google Chrome (as that's the browser I use. If you haven't tried it, you should - it's the fastest, cleanest experience for viewing the web).
I have a Kindle 4 (I think). It's the WiFi, but not 3G, enabled version without the keyboard and no touch.

The Article

For these tests, I will be using the following web-pages:


I will admit, this is only a limited test, but I believe represents a good selection. The 29th Infantry page is an independent website with a fairly typical layout. The Blog is, of course, a blog, but is slightly customised. The blogspot page (which is a page on this site) should, in theory, be the easiest as it is standards compliant (I think!) and is representative of all blogspot pages.
When conducting the tests, I will always try and clip these documents in this order, to save confusion. I will refer to them by the letters indicated.

The Tests!

Method 1 - Tinderizer (http://tinderizer.com/ - previously "Kindlebility")

Installation

Well, this is very easy. Tedious, but easy. The tedious part is in using their website. You are presented with a somewhat patronizing (though nicely designed) page asking you about how cool it would be to send web pages to your Kindle. Anyway, three clicks later and you are presented with a 'bookmarklet' (is this name even standard? Ah, it's on Wikipedia, so it must be!). Another couple of clicks and you're onto the instructions page.
This is a multi-step process, but the process is stepped-through very nicely with simple, clear English, explanations. The process:
  • Go to the Amazon Kindle Management page.
  • Login.
  • Go to the Personal Document Settings page and add the required email address to those authorised to send to your Kindle.
  • Enter your Kindle email address on Tinderizer to make your bookmarklet. (Could be clearer - ought to have a submit button but instead relies on the user clicking the What's Next? link)
  • Drag the generated bookmarklet to your browser bookmarks bar. (Could be clearer - the bookmarklet link isn't actually labelled as the thing you need to drag. Also, the bookmarklet has a title of "Send to my Kindle" which, if you have lots of bookmarks on the bar comes out as "Send to my Kin").
Using it
You basically visit a web page and click on the bookmarklet. A small tooltip comes up showing the progress of the Tinderizer process. Again, kind of patronizing - they ask you to "Hold tight!" Per-lease.
The only major problem with it is that it is a bookmarklet, on your bookmarks bar. So, when you add more shortcuts to the bar, you may end up losing track of where the Send to Kindle bookmark is.

Results
In general - Excellent delivery time - at least as quick as an Amazon book would arrive. Images are not transferred. A footer is added which contains the original URL, an acknowledgement for Tinderizer and a timestamp. The main title is a bit large in comparison to the rest of the text. Author information, where present, is honoured.
Document A - Very good. Title was a bit large, but okay.
Document B - Not bad. The multi-font experience for the code etc didn't carry over. Instead, each line of code was turned into a bullet-point, which is not ideal. Comments were also clipped, which you either want or not, but they're not presented well. The "Post a comment" section was also clipped, but not the form.
Document C - Very good. Bulletted lists were carried over. Font differences were not kept. Comments section was not imported, so no junk at the end.

Method 2 - Klip.me (http://www.klip.me)

Installation

There are two methods of installation. One, a Chrome Extension, is far more convenient, as it installs to your little App Icon tray at the top-right of the browser.
The second is as a bookmarklet. Both options are found by clicking the obvious Kindle link on the front page.
For the app install:
  • You click the Chrome icon on the subsequent Klip.me web-page. This is not clear and you are far more likely to use the bookmarklet below.
  • Installing the app from the Chrome Web Store is simple, as all Chrome Extensions are.
  • You are taken to the options page which is very clear.
  • You need to add an email address to your Personal Document Settings page on Amazon.
  • You enter your Kindle email address in the box.
  • There are a couple of options such as the ability to keep images and the option to enable a 1-Click send.
  • You can sign into 'the Cloud' using your Google login as it runs on the Google App Engine. It's quite handy.
  • When you've finished and clicked Save, a small confirmation message is your only sign that something has happened. Not all that clear what to do now!
For the bookmarklet:
  • You drag the clearly labelled 'button' to the bookmarks bar.
  • It is given the clear title of Send to Kindle.
  • The first time, you are taken to the options page (as for the App)

Using it

You either click the bookmarklet or the App icon (a nice, attractive K in an orange box.)
A confirmation tooltip appears briefly.

Results

In general - Excellent delivery time. Author information not honoured - the base URL is used instead. A footer is added with the URL of the page.

Document A - The image came through fine, however the rest of the page was black, probably the background colour was transferred over. A nice touch was the use of the first image on the page as the cover of the 'book'.

Document B -  Disappointingly, not all of the page was sent. Code was handled well, albeit in the same font as the rest of the document. Comments also did not make it over.

Document C - Much better than document B. Comments not transferred over.

Notes

They also provide Google Reader-to-Kindle and Google Calendar-to-Kindle options, which is cool.

Method 3 - SendToReader (http://www.sendtoreader.com)

Installation

  • You have to register first for this one. I should say that this is not immediately clear - they could do with a larger emphasis on Register Now!
  • You can use Facebook to 'connect' to register, which is cool. The process for this involves a pop-up and a couple of clicks.
  • After that, registration is pretty simple. You can do it without Facebook and this is the same as a Wordpress registration with a confirmation email etc. I prefer the Facebook way - you get a seamless login integration that way.
  • You are taken to the Account page. The next step is not clear.
  • You have to go into 'Settings' to get the bookmarklet.
  • You will also need to add an email address to Amazon's Personal Document Settings. Again, this is not clear - it's a bit lost on the page.

Using it

It's a bookmarklet, so you click it. A slightly rubbish tooltip appears to say you've done it.

Results

In general - Delivery time excellent.No images are brought over. It adds the date that the page was clipped to the top. The original URL, an acknowledgement, a timestamp and a small piece of advert text is added to the bottom. A nice touch is that pages you've clipped appear on your account homepage. This lets you resend it and even edit the document if you need to fine-tune it. You can also assign keyword metadata.
Document A - Pretty good except for some reason, it misses some of the content at the top of the page, possibly because of proximity to the image.
Document B - Alright I suppose. The multi-font experience for the code etc didn't carry over. Instead, each line of code was turned into a bullet-point, which is not ideal. Comments were also clipped, which you either want or not, but they're not presented well.
Document C - Very good, no problems.

Notes

There are some paid services on the site, such as page subscriptions and periodical subscriptions. I didn't try this as I don't like the thought of paying for something I could program myself!

Installation

  • This is a Chrome Extension so it's fairly seamless. Find it in the webstore and add it to Chrome.
  • This installs an icon in the app bar. It's a bit dull, but does look like a mini Kindle.

Using it

  • Go to your webpage, click the icon.
  • It's not as seamless as most, but you do get a preview of the content to be sent across. This gives you the option to alternatively use Pastepad (see Notes)
  • You enter your Kindle email address.
  • You can specify a different 'from' email address, which is cool as it means you don't have to add another email address to the Personal Document Settings if you already have one there that you want to use instead.
  • You click Send and it does it's business. What would have been nice is to have the window close afterwards and return you to the original page, but you can't have everything!

Results

In general - Delivery time excellent. Author info not honoured, the domain name is used. Images not brought across. Original URL added as footer. Now the bad: regardless of whether you choose @kindle.com or @free.kindle.com, it sends it to the @free address. This gives you pause for thought as, hey, email addresses are unique so it won't get to my Kindle, will it! Actually, it will, but they like to suck you in to a 'Sustainer' membership which costs a one-off 5 Euros. Don't be sucked in. With a Kindle Wi-Fi, the @free address works the same as the normal one.
Document A - Average. No problems except it loses the text near the image.
Document B - Bullet pointed code and comments.
Document C - Very good. no probs

Notes

They also provide 'Pastepad' where you can literally paste anything into a box to be converted and sent to your Kindle. It then shunts you to the same process as the normal Kindle It click.

Do not use this one. It does nothing. Absolutely NOTHING. Moving on!

Installation

  • A typical Chrome web store install.
Aaaand another one that does nothing. Well, it converts the page into a 'readable' form, but apart from that... Does nothing for the Kindle!

Method 6 - ClipDo (http://clipdo.com/)

Installation

  • Go to the http://clipdo.com/ website and click the Signup tab.
  • You'll need a decent-length password.
  • You are taken through to the set-up wizard. Which you can skip. Not sure why you'd want to!
  • You will need to add their email address to the Personal Document Settings page. Very clear instructions from clipdo at this point.
  • One thing I should say is that the forms are grey text on a grey background... Not exactly what you'd call accessible!
  • There is a choice of a bookmarklet and a Chrome extension. I went for the extension.

Using it

  • Visit a webpage, click on the app icon.
  • Stunningly quick tooltip comes up.
  • ClipDo has an account page which shows the pages you have clipped. Which is great. It even shows a progress indicator to show how the conversion is going. Nice job, guys. You can delete/resend a bit like Klip.Me.

Results

In general - No images. Author information not honoured (in fact, replaced by clipdo.com, which is just terrible!). Adds the URL to the bottom of the book, but not hyperlinked. Bad show. And then worst of all - they add ADVERTS to the bottom of your document. This is not acceptable!
Document A - Misses the near-image text. 
Document B - The same problems again. Bullet points. Comments included.
Document C - Not bad. Strange spacing issues - too many carriage returns?

Method 7 - ReKindleIt (http://www.rekindle.it/) - cute name

Installation

  • Very clear website to get it from.
  • There's an email to add to the Personal Doc Settings page.
  • It's a bookmarklet, so you know what to do! Badly named - "Read with Rekin" on my full bookmarks bar. You can rename it, of course.
  • That's it for installation - there are some more options which you set on your first use.

Using it

  • Go to a webpage, click the bookmarklet.
  • A pop-up appears (for EVERY document) and asks you how you want it delivered and what your Kindle email address is. I chose Email Delivery as this is the way to do it for my type of Kindle. If you have a 3G-enabled one, use Wireless Delivery. Slightly confusing, but you get no sympathy if you don't read instructions, which are very clear here. It doesn't remember the delivery option, but it does keep the email address.

Results

In general - Slower than most to deliver. Didn't even deliver two of the documents!
Document A - 
Document B - 
Document C - Rubbish. Just gives you the title linked to the web browser.

Method 8 - Readability (http://www.readability.com/)

Installation

  • Go to their website (which is pretty gorgeous!). The most obvious button is Download Now (It's Free! - always nice to see).
  • It's a Google Chrome extension, usual installation. You get a lovely little Armchair icon in your app dock.
  • You are taken to a sign-up page. So, fill that in.
  • Pretty clear instructions on what to do now.
  • A confirmation email is sent to your real email account, so make sure you do that.

Using it

  • You click the armchair icon and get a little menu. You can choose to save it to your Readability reading list or send it to the Kindle. As nice as the reading list screen is, let's choose Send to Kindle.
  • Now, of course, we haven't put our Kindle email address into Readability... so why weren't we asked? Never mind. So, we go back to the Readability website.
  • We'll take a punt and go for 'My Account'.
  • Big form dominates screen. Okay, fill that out... no Kindle details.
  • Ah! Kindle Settings on the left hand menu.
  • There is an email address to add to the Personal Doc Settings.
  • Okay, we try again. Go to a webpage, click the armchair. Choose Send to Kindle.
  • No confirmation that we've done anything. Great. So, let's see if the documents arrive...
  • The reading list doesn't appear to be updating with my selections... Weird.
  • Okay, so the Chrome Extension doesn't work.
  • So, we go into Apps on the Readability site and use the bookmarklets at the bottom of the page. Fine.
  • Go to the page, click the bookmarklet. Ah! A confirmation tooltip comes up. Better. The articles now appear in the Readability archive.

Results

In general - Excellent fast delivery. No images, but then no footers at all. Nice title display - shows the title and the website domain. No timestamps.
Document 1 - No first image or attached text. Apart from that, lovely.
Document 2 - Bullet points and comments again.
Document 3 - Excellent, no problems.

Other services not covered here

Instapaper (www.instapaper.com) - Apparently they have some kind of Kindle service but the site is generally unhelpful and no mention is made apart from a thumbnail on the homepage.
DotEPub (http://dotepub.com/) - clips webpages into .mobi or .epub files. Useful, but manual transfer to the Kindle is required.

Comparison





Results
Service Installation Using it General Doc A Doc B Doc C Overall
Tinderizer 4 3 3 5 3 5 23
Klip.Me 4 5 4 1 2 4 20
SendToReader 3 4 4 4 3 5 23
Kindle It 5 5 4 4 3 5 26
Clip.Do 4 5 2 4 3 4 22
ReKindleIt 4 3 2 0 0 1 10
Readability 3 4 4 4 3 5 23

Although this was a pretty subjective investigation, I believe my scores compare well to one another.
Overall, these were the rankings:

  1. Kindle It
  2. Tinderizer
    SendToReader
    Readability
  3. Clip.Do
  4. Klip.Me
  5. ReKindleIt
So, Kindle It seems to clinch it on the points. I think I'd go along with that. It's a Chrome Extension, so you get that the app icon (okay, it's dull, but it's okay!) in the top right tray, so much more usable than a moving-feast bookmarklet. The preview, I think, is a plus point as you'll see immediately if there's going to be a problem. Being able to add a 'from' email address is fantastic. The Amazon Personal Document Settings page is not great, after all. There is slight confusion from the Sustainer part... But if you just ignore it, it works very well. The conversions were great, above average. The only bad point was the code conversion on Ben Nadel's post (Doc B) having bullet points, but it was a fairly common problem in most of the tests.

And the addition of the PastePad is a nice feature - this lets you collate from several different articles if you want, and even paste in content from 'local' web-pages that would not normally be accessible (all these services assume that they can reach the pages from their servers).


I think I'll be using that from now on, then!

Wednesday, April 25, 2012

Optimising the JVM/JRE for Eclipse Indigo

I've found these resources for optimizing the Java JRE/JVM for Eclipse.




I've also got a fair bit of experience tuning the JVM myself. This post will detail my current settings and the work-in-progress changes.

I'm looking for:

  1. Performance
  2. Stability
  3. Getting rid of the Java abnormal workbench condition thing that munges and reverses cut-and-paste text!
  4. Ability to do other stuff at the same time!

Specs of development machine:

  • Dell Studio XPS 1470
  • CPU: Intel i5 M540 @ 2.53Ghz
  • 4GB memory
  • 64-bit
  • Windows 7 Ultimate
  • Fairly new, clean OS install

My current Eclipse configuration is:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.javascript.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

Frankly, this just doesn't cut it...

Download a new JRE

Java 7 is not supported for Eclipse Indigo as far as I have been able to tell.
So, we'll download the latest JRE version 6. This is JRE 6u31 as of 25th April 2012.
I downloaded from here:

For the purposes of this blog post, I have created a folder called 'other_jres' inside the main Eclipse folder. This is because I want to keep the portability of Eclipse and it's convenient!
Then, I installed the JRE in eclipse\other_jres\jre-6u31.

Change Eclipse start-up options


For validations: on Eclipse menu Windows -> Preferences -> Validation, click “Disable All”, and then select the validator which you need. I selected “Classpath Dependency Validator” only. (MDH: for me, this was just Disable All and don't re-enable anything)
For startup action: on eclipse menu Windows -> Preferences, type “startup”, select “Startup and Shutdown”, untick the options you don’t need. (MDH: I've left CFEclipseCall and the Equinox Provisioning ones checked) 
(paraphrased) Exclude the Eclipse app folder and your workspace folder from your antivirus.

Change the configured JVM

I want to make damn sure that I don't run the pre-existing one, so rename the eclipse\jre folder to _old_jre. When you try and start Eclipse now, it should fail.

Now, open up the eclipse.ini file. Add the following line to the top:
-vm
C:\......\eclipse\other_jres\jre-6u31\bin

Run Eclipse just to make sure it works. If it doesn't, you need to check the path and also make sure you've installed the JRE, not any other type of Java. There are a lot of them!

Here's where the experiments start.

Experiment 1

I changed the -vmargs section to:
-vmargs
-server
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC

The -server option seems to improve things a lot, according to other posts. I have gone for a higher memory usage because I edit quite large code files.
The other options I am NOT explaining as I often get it wrong! Look for JVM options on Google!

Result 1

Still had the same problem with pasting causing the current page editor to munge the pasted content and make the file non-editable until re-opening.

Experiment 2

-vmargs

-server
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+ScavengeBeforeFullGC
-XX:-UseParallelOldGC
-XX:+UseCompressedOops
-XX:MaxGCPauseMillis=10


Let's see what that gives us!

Notes

Remember - you can use # marks to comment things out so don't be afraid to experiment.
Other options I will be trying:
# Other options to try
#-XX:+UnlockExperimentalVMOptions
#-XX:+UseG1GC
#-XX:+UseFastAccessorMethods

#-XX:+ScavengeBeforeFullGC
#-XX:-UseParallelOldGC

#-XX:+UseCompressedOops
#-XX:MaxGCPauseMillis=10

The search continues...