Welcome to blogs.surmise.co.uk, the place for random technical ramblings. Enjoy.
David's Blog
Started sorting out my email today, I am quite the hoarder keeping 3 copies of every email I've received for over a decade. It turns out that Thunderbird isn't up to the task of deleting quite so many emails in one go, so I ran Mutt on the server to do the job. Thanks to https://wiki.engr.illinois.edu/display/~mussulma/mutt+and+Exchange for this tip:
Mutt tricks
Tag messages in a folder older than 30 days and then delete tagged messages, then purge deleted messages
T
~d >30d
;d
$
Also useful: http://www.mutt.org/doc/manual/manual-4.html I particularly like the look of ~z [MIN]-[MAX] messages with a size in the range MIN to MAX *) for deleting old, large attachments.
MattF's ramblings
So, I'm finally going to take the plunge; first with a test, local site, and then with mattbirgit.de. Only found one point to watch out for, in addition to the clear advice at: http://drupal.org/node/570162: It really is important to update to the current Drupal 6 before upgrading; that isn't just 'in case' some assumptions are not fulfilled; the update script refuses to even start without it.
MattF's ramblings
I received this phone in order to test the Deutsche Bahn "Touch and Travel" system (the phone has NFC, and lets you buy tickets by touching little masts when you enter and leave various trains). By now, they figured out that not everyone will ever have NFC, and embraced QR codes in addition. Quite an expensive experiment. But in any case I have a free phone which I don't actually need for calling anyone. I use it to take videos and photos when on the move, and I wanted to use it to listen to music (since I'm carrying it all the time anyway and my iPod was stolen in 2010, and the iRiver we had is a brick and has some weird power issues). Occasionally, I even buy a train or subway ticket. Any music you put in the phone's or SD card's memory (up to 8GB is supported) will be indexed by the MP3 player. It uses the tagging information. But it ignores the track numbers. They are not and cannot be used to sort the music (as far as I could tell). The songs are sorted by alphabetical order. I generally listen to albums, so this was a real pain. The solution I found is a bit of workaround, but works. I use iTunesAgent to sync a selection of iTunes music to the phone. Then I use mp3tag (yes, it deals with MP4 tags aswell) to batch remove all Title Tags from all files. As iTunes names its files with the track number first, and (as you might expect), the phone is forced to use the filename instead of the Title Tag, I end up with tracks in track order. mp3tag can also batch rename files based on the tag information, so if your music isn't named this way you should be able to fix that too. The only tiny disadvantage is that the name of the track includes a number when displayed.
David's Blog
I'm currently trying to set up mallard with a proper ssl certificate (free ones are available from www.startssl.com). The authority requires some sort of client certificate form of authentication to login to their site. Unfortunately Chrome from Linux doesn't yet support this properly. After much googling I found that I could export my certificate from Chrome and then import it into Firefox:
pk12util -o certfile.p12 -d sql:$HOME/.pki/nssdb -n
The certificate's name is obtained running
certutil -d sql:$HOME/.pki/nssdb -L
(Source: serverfault)
MattF's ramblings
I thought I'd go for a provocative title, but let's say from the outset that the iPhone is clearly better in many, many ways than the device I'm about to 'ramble' about... My girlfriend, Birgit, has an iPhone. What's more, she has a contract where you can pay €30 once, and you get a second SIM card. A second sim card, with unlimited data plan!? Now this seems like too good an opportunity to miss. My original motivation for this was receiving a new laptop that had a sim card slot, for mobile internet (my workplace is not quite so kind as to put something in it...). Part of the motivation too was the length of time it took to get internet in my apartment (its hard when there's no telephone socket...). At first I put the sim card in and had a lot of fun. A little too much fun: T-Mobile SMS'd Birgit to say her usage was unreasonable and they were reducing her bandwidth. Of course, seeing this iPhone all the time got me thinking... in America I could use a little bit of free WAP from T-Mobile, but I'd inherited Birgit's old American Nokia which claimed to do real web browsing. Also, knowing a tiny bit about phones, I knew there were these things called data cables and that maybe I could get mobile phone internet and mobile laptop internet all at once. This had the slight disadvantage that I had to use another phone/sim card to actually phone, otherwise I'd be calling on Birgit's number. I'll spare you the fun of how this all worked out, suffice to say:
- The Nokia web browser was unbelievably slow
- It was missing the radio band that T-Mobile use outside of cities... so it wasn't much good for my frequent train journeys
- Don't underestimate how capable your old phone might be with a data cable and a data plan - if it hadn't have been for this band issue I might have been happy
- The main topic of this post: I can run software, any software that someone cares to write, such as a JVM. It sounds like SUN have a JVM ready for the iPhone, but they are prohibited from releasing it.
- Apps run in the background automatically, so I can tune in to the radio on Windows Media Player and then go do something else
- Syncing with Outlook is easy
- Tethering is easy, in fact it will now be prohibited on Birgit's phone on iPhone OS 3.1, even though she is one of the early customers who are actually allowed to do it (and getting it working on OS 3.0 wasn't easy either)
- I can access any part of the file system
- I can insert SD cards
- I can access Bluetooth access points (though this is hardly an advantage when you consider I can't access wifi access points without a plug in card...!)
- I have a REAL keyboard as well as a touchscreen (though not multitouch, of course)!
David's Blog
There is a bug in the f-spot facebook extension included with Ubuntu Gutsy and Intrepid (F-Spot crashes during authorization exporting to Facebook if friend IDs are large). Didn't want to wait until Jaunty to upload pictures to Facebook, so I've compiled FacebookExport.dll using the upstream patch and copied it over /usr/lib/f-spot/extensions/FacebookExport.dll (making a backup of course!). Works for me, but no gaurentees.
Matt's Blog
Simple Answer Use Right-ALT + 3 to type a # on Linux using a UK Apple Mac Keyboard. The Slightly Longer Answer The UK Apple keyboard layout does not have a Hash (#) key on it, and in mac it is typed by pressing ALT+3. This didn't appear to work in Xubuntu, until I ended up mashing the keyboard with anger and found out that you need to use the right alt key, then it works. No, it's not that interesting, but if someone is as silly as me, and googling for an answer, I hope they find this :)
David's Blog
ntpd is now working on mallard (so the clock is nolonger 3min slow). Apparently
restrict -4 default ignore
was to strict to actually synchronise with other servers, but
restrict -4 default noquery nomodify nopeer notrap
seems to work.
Max's Blog
Guitar geeks might be interested in this. Finally finished my first all valve amp. It's basically a 70s Marshall 2204 JMP Master Volume (which then became the original JCM800 in the early 80s) with a couple of tweaks to the tone stack and a power amp direct in so I can use my JMP1 pre amp with it if i ever desire to.
The wooden box was made from an old door that was kicking about my dads garage. Not sure if i'm going to leave it pure wood or paint it/tolex it. I'll have to see. The mains transformer is a weird one and seems to be giving pretty high B+ and heater voltages on its output (about 7.2V rather than 6.3). From what I can tell, it warms the tubes up alot more than usual, which means more electrons will be dissipated from the cathode which will either mean earlier saturation or MORE VOLUME! It will mean a shorter tube life, but I think I can live with it.
Can't really do a thorough test as my neighbors and house mates are sleeping but watch this space for sound clips..
In a bit..
M

Max's Blog
After poking about on the net for a bit, I was amazed to find no free drum replacement software for Intel OSX. I decided to make my own audio unit but got put off by the learning curve I would need to undertake for such a simple threshold->play sample effect. It's something I fully intend to do, but in the mean time - here is a little ditty i threw together in Reaktor. I have no idea why I didn't make this months ago. V simple concept but might save some of you ten of fifteen mins if your kick drums suck and you'd like a quick fix. Max Drum Replacer