Where is God?
6th May 2008 by randomguy3Old Testament Idol
26th April 2008 by randomguy3This Means War
15th April 2008 by randomguy3Well, I though something a bit more light-hearted was needed. This comic amuses me, although it doesn’t really make a lot of sense on its own. If you’re intrigued, this might be a good place to enter the story arc.
Mmm… Tasty…
10th April 2008 by randomguy3The wolf is looking mighty good. There are obviously still quite a few missing features, rough edges and things that make it crash (it is pre-alpha software, after all). But it plays music, and it looks good.
Edit: I’m not an Amarok dev. My entire contribution to Amarok has been a single three-line patch (and that was to the Plasma-based part of it). I’m just a bleeding-edge junkie.
Vim helper script
9th April 2008 by randomguy3I decided to post this after reading Adriaan’s blog on licensing.
My editor of choice is vim. It has a steep learning curve, but once passed it allows speedy editing. It has more features than I have any hope of discovering, let alone mastering. I’ve more than once wished I had a simple way of doing something, then accidentally stumbled across just such a feature in vim.
All this is besides the point, however. I’m not here to convince you to use vim if you are currently happy with Kate or Emacs (or any of the dozens of other editors out there). For those that do use vim, however, kdesdk has a very handy vim script: kde-devel-vim.vim. Simply copy it (or create a link) from kdesdk/scripts/kde-devel-vim.vim to ~/.vim/plugin. Or put a line like source ~/src/KDE/kdesdk/scripts/kde-devel-vim.vim in to your ~/.vimrc.
After this you get several neat features. One of them is that spaces at the end of lines, and all tabs, are marked with a dot, so you can see excess whitespace or tabs where there should be spaces (if you are following the KDE coding style). It has a few helper functions that automatically adjust spaces around parentheses and insert braces in the correct place depending on the coding style of the module you are working on.
All this is very useful, but why did Adriaan’s post trigger this one? Well, I discovered a few more useful features it provides recently. If you type ,i, for example, it inserts include guards in the file you are editing based on the file name. ,h will switch between the header and the main cpp file, and ,p will do the same for the private header and the implementation file. And, incredibly usefully, there are similar keysequences that insert license headers.
You need to do a little bit of set-up for this. You need to create some files in your home directory. GPLHEADER should contain the text to insert for a GPL header. Such as the following:
/* * Copyright 2008 Name <email@domain.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA */
This will be inserted at the top of the file when you type the sequence ,lg. Likewise ,ll will insert the contents of ~/LGPLHEADER, and ,lm will insert ~/MITHEADER. The script is trivial to extend to do the same for BSD headers, for instance.
Armageddon Days
1st April 2008 by randomguy3Bit political, bit religious. Armageddon Days are Here (Again).
Spamalot
13th March 2008 by randomguy3I went to see Spamalot last night in London. It was an amazing show, happily sending up everything, especially itself. I would happily go and see it again. And again. And again.
Nina Söderquist made a fantastic Lady of the Lake, the petulant diva of the show (well, along with Lancelot…). Steven Kynman (Historian, Not Dead Fred, lead Minstrel and Prince Herbert) was also excellent, as was Andrew Spillett, who played Patsy (King Arthur’s “horse”). Alan Dale, who played King Arthur, was a little wooden. He was fine, but didn’t blow me away.
A special mention has to go to Ian Waller (”Swing”, which I think means dancers), who was the only person to write his biography in the spirit of the show (it starts “Ian started dancing at 7 but by 8.45 was back in bed thinking up a new career”). Everyone else is far to serious.
The programme also contains a joke based on the subtitles of the original film. Buy it and find out…
You Won’t Succeed In Broadway (If You Haven’t Any Jews) was, I’m sure, a hilarious statement about musical theatre in New York. However, it doesn’t translate very well to the West End of London. It’s still a good song, but the joke isn’t that funny.
That said, I had an excellent time (right in front of the stage, on row A in the stalls!). Go and see it!
The Heaven and Earth Show
29th February 2008 by randomguy3Preacher of Atheism
17th February 2008 by randomguy3An afternoon with Reverend Zero, the atheist vicar.
