tag:blogger.com,1999:blog-131872182024-02-20T07:45:39.784-06:00Pickscrape's MeanderingsRandom comments about various things, from life in general to computing and music.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-13187218.post-37508060648785642192009-07-13T11:33:00.008-05:002009-07-21T17:34:35.011-05:00Things that kate needs before I can really use itI currently use <a href="http://www.jedit.org/">jedit</a> for my PHP development, but I'm always looking at other options. Jedit doesn't look great, and suffers from java oddities, as well as having an uncertain future.<br /><br />I've tried <a href="http://www.eclipse.org/">eclipse</a>, but it's even more of a hog than jedit is, and with the laptop I currently use for work it's simply not feasible.<br /><br />Since I'm on something of a <a href="http://kde.org/">KDE</a> thing at the moment I have of course looked at <a href="http://kate-editor.org/">kate</a>, and have done a number of times in the past. One I will say, is that kate has made great leaps since I first looked at it a number of years ago, and in a number of ways it is better than jedit. However, it is not quite yet at the point where I could really think about switching to it as it is missing a few things that I find crucial to my work.<br /><br />I'm going to write about what those things are here, both as a baseline to compare against in the future to see how much further kate has come, and also to put my thoughts out there in the hope that these things get addressed (and I'm not opposed to looking into them myself if I get the time).<br /><br />My first problem is the management of open files. In jedit I make use of the sessions plugin along with the "buffer list" plugin. This gives me a list of files arranged in their hierarchy on disk. Note that this is distinct from the filesystem browser that kate already has, because it only shows open files (and directories that contain those files). Also supported are options to show the list flat or in a hierarchy, crop the start or end off long paths and filenames, and intelligently use the home directory metacharacter ~ when possible. Of course the files in the list are all right-clickable though which they can be closed and reloaded etc, and directories can also be right-clicked which allows operations to be performed on all files beneath it.<br /><br />Having said that, kate's sessions support appears to be more robust than jedit's, and also integrates very nicely into krunner (try bringing up krunner and type in a kate session name).<br /><br />Another thing (and this is missing from Eclipse too) is vertical block selection support. kate is ahead of Eclipse in this regard in that it does have this feature, though it is incomplete when compared to jedit's support. Missing from kate is support for a modifier key for temporarily enabling vertical selection mode, and more importantly being able to edit within a vertical selection. jedit allows you to select a zero-width column of text and then start typing, and what you type is reflected in all rows you have selected. This is a big time saver when reformatting code, and is something that I use a lot.<br /><br />Another detail is more configurable visible whitespace. kate already shows tabs, which is great, but I would also like to be able to see spaces too, and configure when they are visible. The jedit whitespace plugin allows you to independently configure the visibility of tabs and spaces at the start, end and middle of the line.<br /><br />jedit has a very useful PHP parser plugin which is extremely useful for spotting errors in the current file. Though it does have a few problems with false positives, it is very good at spotting things that even PHP itself will not. Something similar for kate would be excellent.<br /><br />Something that may really help to entice new users is some sort of plugin/extension manager. Again, jedit has a very good extension manager which allows me to browse, install and update extensions from within jedit itself. kate has a few plugins bundled, but I've not been able to find many more than that. Other parts of kde seem to have very good integration with online repositories for things like themes and plasma widgets, so it would be nice to see similar integration here too.<br /><br />Something that drives me nuts is not being able to switch documents quickly. kate gets off to a good start with the Quick Document Switcher plugin, which mirrors a similar jedit plugin. However, it does not appear to be able to work in a case insensitive fashion, which slows you down since you need to worry about getting the case exactly right when trying to switch to a file. My biggest problem is that there seems to be no way to cycle the documents in most recently viewed order (usually via the CTRL+TAB and SHIFT+CTRL+TAB shortcuts), which is something I use very often.<br /><br />When saving a new file, I will often copy and paste an existing file both as a template, and also so that the Save dialog box will open up in the same directory as the last file I edited. However, in kate it seems to open up in the directory of the last file that I opened, which results in more directory navigation.<br /><br />Opening files also seems to be more of a pain than it should be, mainly because the open dialog box shows the backup files (*~) as well, which makes selecting a range of files harder than it should be.<br /><br />The search and replace dialog box could, in my opinion, do with a little adjustment from the point of view of tab ordering. I want to be able to enter the search term, enter the replacement term, and hit ALT+A to replace all. However, currently I have to tab through a number of other controls between the search and replace boxes.<br /><br />I would also like to have the search and replace history easily accessible. In jedit, the search and replace text boxes have a drop-down feature that allows you to access the most recently used strings.<br /><br />Another search oddity (to me at least) is that the search term appears to be local to the file. So I can't search for something in file A, switch to file B and hit F3 to continue searching. I have to bring up the find tool and enter the search text again. I'm sure that some people like it that way, so I think an option to choose between the two methods would be nice.<br /><br />kate is also missing the configurable column line feature that many editors have, which allows a vertical line to be drawn at a set number of columns. This allows easier conformance to a coding standard. Bonus points if it allows for multiple lines to be defined and drawn too.<br /><br />Well, I think that will do for now. I plan to see if any of these issues have bugs/wishes raised for them already in <a href="http://bugs.kde.org">bugs.kde.org</a>: if not I'll create them myself so at least the requests are in.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-43446693139617925492009-07-04T09:33:00.003-05:002009-07-04T10:12:24.661-05:00Help! I'm being sucked in!!!So I have blogged previously about KDE <a href="http://pickscrape.blogspot.com/2008/11/why-i-cant-use-kde-4-yet.html">4.0 and 4.1</a>, and how they weren't there yet (though 4.1 was a definite improvement), and how impressed I was with 4.2.<br /><br />A week ago I tried to install a PPA so I could try Amarok 2.1, but the PPA also happened to contain the latest beta version of KDE 4.3 as a whole. Oops. So anyway, I went with it, and aside from the odd crash now and again it has actually been pretty stable.<br /><br />With the first release candidate I got the new <a href="http://ubuntulife.wordpress.com/2009/06/22/instalar-air-en-kubuntu-jaunty-con-kde-4-3-beta-2/">Air theme</a>, and very nice it is too! A far fresher and brighter look.<br /><br />Also included is the ability to connect to a hidden wireless network: a quite shocking deficiency in previous versions, but better late than never I suppose.<br /><br />The fade desktop switcher is also quite nice, though I still can't decide whether I prefer that over the spinning cube or not. The thing I like about the spinning cube is that it enhances the impression of my desktops bring physically adjacent in the 3d world, while other switchers don't.<br /><br />Desktop effects now automatically suspend if things become too much for the system, which makes sense and should help out if you have a runaway process that you need to kill, or if you are doing something like running a game.<br /><br />Another new feature is a panel spacer, which is the solution to the problem I commented on earlier about widgets wanting to occupy lots of space. Unfortunately, I find it quite fiddly to use. I also still don't understand why the clock widget needs to try to occupy so much space either. Shouldn't it just use what it needs to show the longest time string possible with the current settings and leave it at that?<br /><br />The system tray has also had some attention: there is now an expand/contract widget that I hadn't noticed before to allow you to see hidden icons, and icons can be manually configured to be hidden based on category.<br /><br />There is a new launcher menu called Lancelot, which has an interesting "no-click" user interface feature. I'm trying it now, and it seems to be pretty useful.<br /><br />There are <a href="http://kde.org/announcements/announce-4.3-rc1.php">quite a few</a> other changes, but these are the ones that I've noticed the most. In general, there is just a sense of greater polish than 4.2, which suggests a very welcome trend in increasing quality.<br /><br />The reason for my title post though, is that I've now found myself being drawn a little bit more into the KDE world. After the upgrade to RC1, my GTK apps lost their widget theme and reverted to the very ugly standard GTK look. I fiddled a little bit but could not fix it.<br /><br />I hate ugly user interfaces, it makes me sad to use them. :) So I thought I'd try <a href="http://kontact.kde.org/kmail/">kmail</a> again. I have tried kmail a number of times in the past (indeed my accounts were all set up already when I fired it up as a result), but it has never grabbed me and I have always ended up back with Thunderbird.<br /><br />However, this time I have found myself sticking with it. It's hard to say why, but it's probably more to do with it doing what I would miss in Thunderbird if it didn't do it. Things like sorting threads by the most recent message in the thread: I couldn't cope without that.<br /><br />But there is also a feature that it has that I don't think Thunderbird does have. You can exclude folders from being acted upon when new mail arrives in them. This means you don't get any notification, and the folder doesn't count towards the unread messages total that sits in the system tray.<br /><br />I've never used an unread message icon with thunderbird before (if one is even possible) because the nubmer would be meaningless: it would include folders that I don't want to read often (such as mailing lists) and some that I keep unread as the number of unread is actually what I'm most interested in. I have a folder which contains exception emails from work which I have filtered to keep only the last 24 hours of emails unread. So if the number of unread goes up, it is an indication that something is going wrong.<br /><br />So the total number of unread is basically meaningless. But with kmail I can exclude those folders from consideration, so I end up with a smaller count that represents email that I actually want to check.<br /><br />Aside from that, kmail just seems a lot more snappy than Thunderbird (KDE 4 as a whole seems really snappy, so this just continues the impression). The memory usage also seems to be quite a bit lower too.<br /><br />The downside is contact integration with gmail: I have seen example of people getting this (and Google calendar synchronisation) working, but so far have not figured out how to do it myself. Hopefully soon!<br /><br />So another KDE app draws me in. What's next?Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-27496217414719340652009-06-27T17:43:00.000-05:002009-06-27T23:43:19.399-05:00Making Music: what software?When I was in my second year of university I bought a <a href="http://www.harmony-central.com/Events/WNAMM96/Tascam/424.html">Tascam 424 MkII</a> portastudio. Mark and I had recorded our two albums using his Fostex 4-track and I had long wanted to have a 4-track recorder of my own.<br /><br />This turned out to be a very expensive mistake, as just after that computer-based digital recording was just starting to take off, making my new purchase pretty much redundant. From that point it functioned simply as a mixing desk, and I used it to mix the output from my computer, keyboards and mic and route them to the appropriate places (i.e. the computer line in or monitoring amp input).<br /><br />Back then I was using software that I, erm, shouldn't have been using (a well-known commercial <a href="http://en.wikipedia.org/wiki/Digital_Audio_Workstation">DAW</a> package). However, this time I don't want to go that route and would rather stick with the open source world, where I can hopefully be sure of having access to everything I need without either paying out Big Cash on commercial software and/or obtaining it illegally.<br /><br />So in looking around this subject, it seems to be considered wise to use a Linux distribution that is dedicated to media production. This is for a number of reasons, but from what I can tell the key ones are:<br /><ol><li>Real-time kernel</li><li>Low-latency sound pathways</li><li>No bloat from unrelated software<br /></li></ol>I haven't really looked into why normal distributions can't use a real-time kernel, but I suppose there must be good reasons. It would be good if they could be worked out though at some point in the future.<br /><br />The second reason appears to be related to the fact that most professional-grade software for Linux is written for the <a href="http://en.wikipedia.org/wiki/JACK_Audio_Connection_Kit">Jack</a> sound server, rather than using ALSA or PulseAudio. Jack is a very clever system which acts like a patch bay for both audio and MIDI streams of data between software and hardware sources and destination. This sets up a very UNIX-like system of small components doing one job well rather than the windows-style approach of one monolothic application that does everything itself.<br /><br />The obvious choice would be <a href="http://ubuntustudio.org/">Ubuntu Studio</a>, since I use Ubuntu on the desktop already. However, I have heard that they are having trouble, and have even considered shutting down the project completely. The distribution that I see recommended the most for audio recording is <a href="http://www.64studio.com/">64 Studio</a>. So unless I get any other suggestions, I intend to use that.<br /><br />So 64 Studio will go in its own partition, keeping my audio stuff separate from everything else. I'll not talk about hardware at this point because I think it warrants its own post (and this one is getting long enough as it is!)<br /><br />So the next decision to make really is about the core recording software itself: what will actually record the audio and MIDI and allow me to sequence, edit and mix everything?<br /><br />Well, there appear to be a number of choices on this front, but unfortunately none of them appear to be quite what I am really looking for... yet:<br /><ol><li><a href="http://ardour.org/">Ardour</a>. This appears to be the leading package when it comes to handling audio. However, the current stable version does not support MIDI at all, meaning that I would have to handle that in a separate application which I am not keen on doing at all. I want to be able to see all of my tracks in one place. Having said that though, the in-development Ardour 3.0 will apparently have MIDI functionality added. Hopefully it will be decent: it could make this the obvious choice.<br /></li><li><a href="http://www.rosegardenmusic.com/">Rosegarden</a>. This has excellent MIDI support (including a full score editor), and does also support audio tracks, but the audio features seem to be quite basic at the moment.</li><li><a href="http://qtractor.sourceforge.net/qtractor-index.html">QTractor</a>. I just came across this today, and it looks very interesting. It is relatively young, but looks to be very clean and already very well featured (it supports both audio and MIDI tracks, for example).</li><li><a href="http://muse-sequencer.org/index.php/Main_Page">MusE</a>. Does both audio and MIDI. I haven't read so much about this so I'll need to read into it a bit more and experiment.<br /></li></ol>At the end of the day, I'm going to need to spend some time with all of them experimenting with how they work and what they can do. One thing I can say though is that it is quite a delight to have such choice available to me: I'm certain that I will find something that will fit the bill.<br /><br />Phew, that lot was just about the distro and DAW package, and there's plenty more software to talk about. That then will be for another post. :)Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-71032403388941002402009-06-20T22:03:00.003-05:002009-06-20T22:17:10.880-05:00Getting back into making musicI've been mulling over in my head for some time now the idea of getting back into making music.<br /><br />For the few of you who read this blog and didn't know this already: I used to be very much into making music around my latter school and university years. I recorded a couple of albums with my good friend Mark in that time which I really enjoyed doing (and which we still reminisce about to this day). Mark and I generally shared all roles (guitar, keyboards, programming, producing, writing and arranging) other than singing (of which Mark did 99%).<br /><br />It all pretty much stopped when I left university and got a job doing "real" work. Then I got married, started a family and moved to the US. Aside from the time aspect of all of these factors, the latter had a more practical impact in that it involved my selling a large chunk of my music-making equipment, which turns out to be pretty expensive to replace, especially since so much of it is required to do the things I want to be doing.<br /><br />So it's going to take a while to get to the point where I can actually start recording again as I once knew it (sure, I could just sit down with a guitar and strum some chords into a mic and call it a day, but I've always been into far more elaborate stuff than that, and it has to be interesting to me if I'm going to stick with it). So in the meantime, I'm going to blog about it: both about the gear I'm going to need to collect, and the process of making music itself.<br /><br />I'll be doing this both because it might actually be interesting to some people, but also as a sounding board so I can get some of my thoughts down in the hope that it helps me along the way.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-23805000088372966782009-06-08T11:15:00.001-05:002009-06-08T11:15:45.261-05:00It's "true" and "false", not "TRUE" and "FALSE"!!!<div xmlns='http://www.w3.org/1999/xhtml'><p>One thing that bugs me is seeing PHP code like this:</p><p/><p>$somevar = FALSE;</p><p/><p>or</p><p/><p>if ($somevar == TRUE)</p><p/><p>Why? Because in very common convention, UPPERCASE is reserved for constants. This follows on from the languages on which PHP is syntactically based, such as C and C++, and most code that I have seen (and written) continues this convention.</p><p/><p>The thing is though, true and false are *not* constants: they are keywords.</p><p/><p>As a different way of explaining that, consider how one would write the define statement for TRUE and FALSE, without being recursive. The best I can come up with is:</p><p/><p>define('TRUE', (bool)1);</p><p>define('FALSE', (bool)0);</p><p/><p>It's like saying that in order to be able to use 1 in your code you need a define like this:</p><p/><p>define('1', 4-3);</p><p/><p>Which is clearly insane.</p><p/><p>Happily, we don't have to jump through such hoops to get at the boolean values, and it is not via some pre-defined constant; it is via the keywords "true" and "false", which given that they are keywords and not constants, should be written in lower case.</p><p/><p>Or as a friend one put it "But... they're blue!" - Referring to the fact that his editor hilighted them as blue along with all other keywords.</p><p/></div>Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-14319951779041969782009-03-25T17:28:00.004-05:002009-03-25T18:01:28.831-05:00Linux and suspend/hibernateAs is often the case, when you remove the layers of faux hatred and loathing from Linux Hater's <a href="http://linuxhaters.blogspot.com/2009/03/das-boot.html">most recent post</a>, you find a great deal of truth.<br /><br />He speaks of the goal of quickening boot times in Ubuntu 9.04. I can vouch that the boot time is indeed far quicker, but he argues that it's the wrong thing to be focusing on. What they should really be looking at is suspend and hibernate support: on <span style="font-weight: bold;">all</span> platforms. To a large extent I agree with this: I don't think you could ever say that a faster boot is a bad thing, but you could quite legitimately argue that suspend and hibernate are far more pressing issues.<br /><br />I've heard plenty of talk about getting these working properly on laptops, but not on desktop machines. This needs to stop: this feature is important on all machines. I would love to be able to sleep my desktop machine overnight, but it currently doesn't work: I end up having to do a hard reset on it. Contrast that with my Vista dual boot which handles it just fine, and wakes up really quickly (albeit sometimes with the DHCP client down which I need to manually fix each time: so M$ can't get it completely right either).<br /><br />That's what they really need to be concentrating on, and I really hope they do soon.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-14180299357861771342009-02-02T17:15:00.004-06:002009-03-27T16:48:35.848-05:00KDE 4.2 is much more like itA while back I <a href="http://pickscrape.blogspot.com/2008/11/why-i-cant-use-kde-4-yet.html">outlined</a> why I wasn't able to use KDE yet, which at the time was at version 4.1. Since then, KDE 4.2 has been released and is being much touted as the first version in the 4.x series that is truly suitable for end users.<br /><br />Well, the short story is that I'm extremely pleasantly surprised!<br /><br />Here's the long story. Having just upgraded to 6GB of ram, I needed to upgrade to 64-bit in order to take advantage. With jaunty in alpha 3 and offering KDE 4.2, I decided to go ahead and install that, using ext4 too. This other stuff is for another post though: now I'll go through my previous complaints and see where we're at now...<br /><ol><li>Taskbar entries are now movable: this is configurable in the widget's properties, which allows position to be set to 'manual'. Grouping is also in place and can also be set to manual.</li><li>The taskbar height is now fully resizable, and works very well.</li><li>There is still no applet for tomboy notes: I don't expect this to change any time soon, if ever.</li><li>It looks like KDE's choice of desktop search service is one called <a href="http://strigi.sourceforge.net/">strigi</a>, which is itself a part of the larger <a href="http://nepomuk.semanticdesktop.org/xwiki/bin/view/Main1/">nepomuk</a> semantic desktop system. This all looks very interesting, but there appears to be some problems with strigi performance.<br /></li><li>I have no problems with picking up and dragging around windows now. In fact, this seems to be extremely smooth, and it is very noticeable that there is no tearing as things are being moved around.</li><li>As with Tomboy, I don't see this happening any time soon, if ever.</li><li>This has been fixed: the system tray now displays very nicely.</li><li>I now have no problems assigning keys to switch desktops and move windows from one desktop to the other. In fact, this seems to have come on in leaps and bounds. I wanted to assign something the other day and there it was, exactly where I expected it.<br /></li><li>This one still persists, and is probably what bugs me the most. The problem affects the system tray and digital clock widgets, and is documented in <a href="https://bugs.kde.org/show_bug.cgi?id=164317">this bug</a>.</li><li>I still get this, particularly in Thunderbird and Prism. I did find a nice theme for firefox which makes it fit right in with the default KDE theme, and that helped a great deal. Does need more work.<br /></li><li>This seems to have disappeared completely, which is obviously very welcome indeed. :)<br /></li><li>kopete still doesn't do IRC. However, I really do need to have a look at <a href="http://quassel-irc.org/">quassell</a>, which has a very interesting client/server architecture which I think I will find extremely useful.</li></ol>So from that list we see a considerable improvement over KDE 4.1, enough that I'm going to be sticking with it for the time being.<br /><br />The main problem for me is the way in which the clock and system tray widgets want to soak up all usable space on the panel, which is horribly messy.<br /><br />Still, heck of a job. I'm going to be very interested when 4.3 comes along to see what else they've done...Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-15835521754401125742008-11-22T08:41:00.003-06:002008-11-22T08:47:37.853-06:00New Rule for registration processesI just signed up for a site that asked for a password. Like most people, I don't create a different password for every site I visit I'd never be able to remember them.<br /><br />Instead, I have a set of them, for differing levels of importance or required security. It works well, and so far I don't think I've ever had any security breaches.<br /><br />The problem though is knowing which password you should use beforehand. This is a problem because some sites will email include your password in plain text in the welcome email after registration.<br /><br />We all know that as soon as a password is emailed in plain text is can no longer be considered secure. These sites will no doubt also email it in plain text if you use the "Forgot Password" link too, which of course makes it worse.<br /><br />I'm actually ok with this: some sites simply aren't that important and if you account gets hacked then meh. But I would like to know beforehand that they are going to be treating my password in this way before I decide which password I'm going to use.<br /><br />So, New Rule: registrations should disclose if they are going to be sending the password via email in plain text prominently on the registration form itself.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com2tag:blogger.com,1999:blog-13187218.post-37669603963831875542008-11-11T21:29:00.005-06:002008-12-08T14:17:27.390-06:00Why I can't use KDE 4 (yet)I've always been a flip-flopper when it comes to desktop environments. When I first started with Linux I think I was using KDE. Spent a bit of time playing with things like Enlightenment and black blox before settling for quite a while on <a href="http://www.xfce.org/">XFCE4</a>.<br /><br />After a while I got itchy feet and tried gnome again, and I've been a gnome user ever since.<br /><br />KDE3 just didn't do it for me, for many reasons that I mostly can't remember now. I do remember that its default themes were as ugly as hell, and I could never for the life of me get other themes to work well at all. They required weird contortions like compiling (for a <span style="font-weight: bold;">theme</span>?!?!), and never looked as good as the screenshots would have you believe.<br /><br />So I stuck with gnome. Simple, clear and crisp. Compiz has given it a really nice boost, and I think the combination works really well.<br /><br />But, I'm still a flip flopper, so I'm always on the lookout for something new. Unfortunately, <a href="http://www.enlightenment.org/">E17</a> appears to have become to Duke Nukem Forever of desktop environments, so it was in the end KDE4 that got my interest.<br /><br />I tried KDE 4.0 shortly after it first came out, and quickly switched back. It was unstable, and didn't have everything in place. I figured I'd try again with 4.1.<br /><br />That I did, and this time it fared better. I decided to give it a week and make notes on what bugged me about it so I wouldn't forget. This way, when 4.2 comes out I'll be able to see if they've sorted any of the issues that bug me...<br /><br />My work environment involves a desktop machine and a laptop, both of which are running (k)ubuntu Intrepid Ibex. I use the keyboard and mouse of the desktop machine and control the laptop via synergy. My KDE4 experiment has been run on the desktop machine (with the laptop continuing to run gnome).<br /><br />So, without further ado, here is my list:<br /><ol><li>Taskbar entries don't appear to be movable. That is, I can't change their order. This bugs the hell out of me: I like to have specific things on the far left, and if they aren't there I get lost.<br /></li><li>The taskbar is too chunky. Having just one at the bottom is nothing like enough space, so I opt to have one above and below in the gnome style, but the size of the taskbar means that quite a significant amount of vertical screen space disappears.</li><li>No applet for Tomboy Notes. Yes, I know that KDE has its own note-taking application, but it's not as good, and I'd rather be able to use the same notes whichever desktop environment I'm using. It doesn't even have to use the same backend: just standardise on the file formats and that should do the trick.<br /></li><li>Is there any decent integration with <a href="http://projects.gnome.org/tracker/">MetaTracker</a>? If there is I can't find it mentioned anywhere...</li><li>Grabbing windows seems to be a bit sluggish. I'll point click and drag, and find that the window was never grabbed. So I'll have to go back and do it more slowly.<br /></li><li>There is no applet for the <a href="http://oss.codepoet.no/revelation/">Revelation</a> password manager</li><li>Many applications appearing the notification area have a horrible white box around them. Something nasty going on with transparency I'd imagine. It only seems to affect non-KDE native icons too...<br /></li><li>Trying to assign CTRL+ALT+Left/Right to allow me to cycle through desktops doesn't work. They keys assign, but they don't actually do anything when pressed.</li><li>Created a new panel, added a clock and System Tray to it. I can't get them to align to the right. The clock insists on taking up about a quarter of the panel's horizontal space, while the System Tray does even worse. Can't see any way to force them to behave.</li><li>It is worth pointing out that gnome hosts KDE apps far better than KDE hosts Gnome apps. Not in terms of look and feel integration, but in terms of things actually working properly. Gnome apps in KDE seem to have weird quirks such as scroll bars disappearing.<br /></li><li>It makes really horrible things happen with the clipboard on the Gnome machine that this KDE machine is controlling (via <a href="http://synergy2.sourceforge.net/">synergy</a>). I simply cannot paste sometimes: it just keeps pasting things I copied previously (and yes, I am trying both methods of pasting). Clearing Klipper seems to work around the problem, and it seems that this happens when Klipper's list gets full, which is rather annoying...</li><li>Kopete doesn't do IRC.<br /></li></ol>There were other minor things too that I just forgot to write down.<br /><br />And it is interesting to find that a number of the complaints above (such as the window grabbing issue) transferred to the laptop machine too. I wonder if this is indicative of it being a simple configuration issue?<br /><br />Anyway, KDE 4.2 is now in beta, so it won't be much longer before I'll be able to give it another go...Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-10440745009698295072008-11-02T12:55:00.003-06:002008-11-02T13:24:05.270-06:00Thoughts about Ubuntu 8.10 - Intrepid IbexI've not posted about a Linux distro before, but I figured I would this time... just because!<br /><br />Last week my Gentoo-based work laptop (IBM Thinkpad T43p) encountered a package blockage when updating. As usual, I tried to fix it myself, failed, and then discovered via the forums that this was a particularly tricky one to navigate that was probably going to require things like booting into recovery mode and doing manual surgery.<br /><br />I decided that enough was enough, and that it was time to move on. It was a day before Intrepid's release, so I just went with the release candidate: I had done the same thing with the previous Ubuntu release on my desktop machine so I knew it would be ok.<br /><br />And it was. Installation was as easy as it usually is, and the grub installation correctly picked up on the Windows XP dual boot partition which came with the laptop.<br /><br />The first thing that has really impressed me is the networking and wireless support. This worked flawlessly straight away. Connecting to and disconnecting from the wireless network is handled properly authatically. Very impressed with this.<br /><br />I was also impressed that hibernation support appears to works too. This is something that I had got working in the past but only by using the <a href="http://www.tuxonice.net/">TuxOnIce</a> kernel. This again appears to work out of the box, which is fantastic.<br /><br />It's a shame that OpenOffice 3 didn't make it, but it can be installed pretty easily using a <a href="https://launchpad.net/%7Eopenoffice-pkgs/+archive">PPA</a>.<br /><br />I'm also a fan of the new "FUSA applet" which sits in the top right corner on the panel and provides one place from which to switch users, shutdown/restart/hibernate/suspend and also affect IM online presence. I'm not really one to manually mess with my online presence, but I do much prefer this to the previous shotdown window popup: it just seems cleaner and faster.<br /><br />The only problem I have had is a keyboard repeat problem which I think is represented in Launchpad in the form of bug <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/278078">#278078</a>. This only happens when I am controlling the intrepid system over synergy, not when using the machine's keyboard directly. Hopefully it will be fixed soon, becasue it is really quite annoying!<br /><br />So all in all, I'm impressed. The next thing for me to look at is KDE 4: but that's another post. :)Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com1tag:blogger.com,1999:blog-13187218.post-48318043054212904302008-09-13T14:36:00.003-05:002008-09-13T14:45:36.328-05:00Its name is...<a href="http://planet.ubuntu.com/">Planet Ubuntu</a> just ran a <a href="http://en.wikipedia.org/wiki/Internet_meme">meme</a> on the subject of computer naming: i.e. how you choose names for your computers.<br /><br />Mine are named after <a href="http://en.wikipedia.org/wiki/Musical_mode">musical modes</a>, so currently I have:<br /><ul><li>aeolian</li><li>dorian</li><li>mixolydian<br /></li></ul>I used to have locrian too, but that machine died and I decided to not reuse the name until I ran out of other modes. I seriously doubt that I'll ever have as many machines as there are modes anyway! There are (basically) seven of them, so I should be fine. :)Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-60415541006375044662008-09-13T12:25:00.005-05:002008-09-13T16:12:27.920-05:00My next guitarI've recently found myself wondering what guitar I'd like to get next. This is a little weird, because I really don't play the guitars I already have anywhere near enough, but lately I've found myself thinking about it more and more, so it might be time to get started again.<br /><br />My current guitars are:<br /><ul><li>A <a href="http://images9.speurders.nl/images/41/4125/41251779_1.jpg">blue Les Paul Studio Lite M-III</a>, which is lovely and has an extremely flexible pickup arrangement that allows it to be played as a strat-style 5-combination single coil guitar, as well as a standard double-humbucker Les Paul.<br /></li><li>A Charvel Model 3 (I think. It looks like <a href="http://www.jcfonline.com/gallery/char-strats-pics/char-strat-mutt-pete.jpg">this</a> in red, but I see so many pictures of Charvels with the same name that look completely different, it's hard to know) , which is unfortunately in need of a bit of love. The bridge's fine-tuners aren't well at all, the locking nut doesn't lock any more and the pickups sound very lifeless (especially the bridge). On the other hand, it has a <span style="font-weight: bold;">lovely</span> neck, and also features a self-performed customisation in the form of an additional switch which reverses the connections to the middle pickup, adding an extra two pickup combinations.</li><li>A Washburn <a href="http://www.washburn.com/products/acoustics/dreadnoughts/d10s12.aspx">D10S12</a> 12-string acoustic, which I actually bought brand new last year.</li></ul>Now I'm not a guitar collector: I have little interest in spending money on and storing lots of instruments that are minor variations on the same model. So I won't be buying another Les Paul any time soon. When I look for a new guitar I want it to give me something new that the ones I already have doesn't.<br /><br />Looking at that list, some sort of Fender immediately jumps out as a possibility, but the Les Paul does the three single coil job already, and while it won't really sound like a proper Strat, it's close enough for the time being.<br /><br />As I was reading <a href="http://pickscrape.blogspot.com/2008/09/celebrating-10th-anniversary-of-mansuns.html">Paul Draper's emails</a> about the recording of Six, I was reminded of the <a href="http://en.wikipedia.org/wiki/Gibson_ES335">Gibson ES335</a> (as played by Mansun's Dominic Chad), which is a double-humbucker instrument like the Les Paul, but with the distinction of being semi-hollow. This gives it a quite different sound to other solid-body electrics, and so nicely fits the bill of adding something new to what I already have.<br /><br />Unfortunately, the ES335 is <a href="http://www.americanmusical.com/Item--i-GIB-ES335S-LIST">very expensive</a>. Yes, that's $1,999, and that is the cheapest model I could find on that site (the most expensive was <a href="http://www.americanmusical.com/Item--i-GIB-HB0012M">$3,849</a>). This is far more than I am willing to pay.<br /><br />Fortunately, there is an alternative in the form of the <a href="http://www.americanmusical.com/Item--i-EPI-DOTG-LIST">Epiphone Dot</a>, which is <span style="font-weight: bold;">significantly</span> cheaper at $459 including case ($399 without a case, but I see the case as being essential, and $60 isn't bad anyway).<br /><br />I have read very positive reviews of this model, and looking around youtube there are a number of videos of people reviewing it and even comparing it to the more expensive Gibson model, with positive results. It's definitely on my list now.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-65719346264932354112008-09-07T16:52:00.004-05:002008-09-13T12:29:31.249-05:00Celebrating the 10th anniversary of Mansun's "Six"Today I had the very pleasant surprise of two rather long emails in my inbox, from Paul Draper (formerly of Mansun) regarding the recording of the album "Six" (two because there were supposed to have been two "sides" to be album).<br /><br />I have many memories of this album from the time I first bought it, going to see one of the gigs on the Six tour (at the Leeds Town and Country Club), and enjoying it with friends.<br /><br />One of the things I always appreciated it was the way in which it pushed boundaries and broke from convention in so many ways, and yet remained a really enjoyable collection of musical moments. The emails Paul wrote about its recording reveals a lot about how all of this came about, the reasons why things were done a certain way and what some things mean. It also shows a number of details that you might not notice: for example, "Special/Blown It" was written as an attempt to create a song based on one giant chord sequence: it in fact ends up being based on a 32-bar sequence repeated five times. This is similar to what Radiohead did with their song "Just", which came about following a competition between Tom Yorke and Jonny Greenwood to get as many chords into a song as possible. Little musical jokes like this that most people simply won't notice are one of the things I love about great music.<br /><br />Some of Paul's commentary is simply hilarious. Take for example his story on how "Witness to a Murder (Part 2)" was devised with the goal of creating :<br /><blockquote>...something so off the wall, so fucking wacky that when people listened to it they think: "FOR FUCKS SAKE, WHAT THE FUCK IS THAT?"</blockquote>Following a brainstorming session they came up with this plan:<br /><blockquote> An 18th century baroque harpsichord movement featuring one male and one female opera singer singing how miserable they were in Italian with Dr Who playing a dead Brian Jones in a swimming pool in East Sussex.</blockquote>And that is <span style="font-weight: bold;">exactly</span> what they recorded. Brilliant.<br /><br />Then there's an <span style="font-weight: bold;">extremely</span> long section about how the "Muttley" laugh in Shotgun was recorded that is, shall we say, perhaps exaggerating a touch? Wacky.<br /><br />I was really sad when Mansun broke up. This was a band that was creating genuinely good music that was clever, had depth and rewarded repeated listens. They weren't just about creating hit after hit, and there aren't many bands like them.<br /><br />The whole thing reminded me of how much I enjoyed making music years ago, with my friend Mark and friends from university, and how I would like to get back into doing it again. it's just a question of time and equipment really.<br /><br />Maybe someday...<br /><br />(I've held this post back for a few days in the hope that I could link to Paul's writings about Six, but it appears that it is currently for mailing list subscribers only. I'll add a link once it is published somewhere public.)Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-66150345403323154942008-08-10T20:35:00.003-05:002008-08-10T20:59:16.353-05:00In search of a new gaming mousebout three years ago (I think), I treated myself to a really good gaming mouse: the <a href="http://www.logitech.com/index.cfm/mice_pointers/mice/devices/163&cl=us,en">Logitech G7</a>. It had a frikkin' lazer, adjustable DPI (which I actually never used and just ended up reprogramming the buttons for other purposes), and most importantly was cordless with a very clever battery charge and change system.<br /><br />It was great. But a couple of weeks ago my son managed to break the radio receiver of my brother in law's G7, and so I was left with the burden of having to replace it. I decided that the best thing to do would be to let him have mine, and get myself a new one.<br /><br />Now, I figure it would be foolish of me to simply go out and buy another G7, since it has been three years since I bought that mouse, and things could have come a long way in the meantime.<br /><br />So I have been looking around, and to be honest really haven't seen anything of interest at all.<br /><br />Logitech have the new <a href="http://www.logitech.com/index.cfm/mice_pointers/mice/devices/3053&cl=us,en">G9</a> which looks interesting with its interchangable grips, but it has a cord. I <span style="font-weight: bold;">really</span> don't like a cord when I'm playing games as they always tend to snag on things at the most inopportune time.<br /><br />Razer are a well-known gaming mouse brand, but they don't seem to have any cordless options at all. Microsoft are a company I'd rather avoid, but in any case they don't have a cordless gaming option either.<br /><br />It is starting to look like the G7 really is still the mouse for me, but just in case there is something out there I have missed, I thought I'd see if anybody out there has any recommendations?Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-1573991422576784392008-08-02T17:52:00.004-05:002008-08-02T18:39:41.381-05:00How not to give helpful criticismOne of the things that people often struggle with it taking criticism.<br /><br />Professional criticism though is part of the job. In software development we have code reviews, and the person doing it the reviewing is supposed to point out things that are either wrong, or could be improved upon. It is then up to the author of the code being reviewed to take this information as it should be: as constructive criticism where constructive is the operative word.<br /><br />It has been pointed out <a href="http://blog.red-bean.com/sussman/?p=96">before</a> that programmers are insecure folk who don't like their work to be criticised, but the fact is that programming is a complicated task; one that is practically impossible for anyone to get right all the time every time with no mistakes.<br /><br />This is what reviews are for, after all.<br /><br />It is true though that people struggle with this: I have performed many reviews myself, and it is interesting to see the differing reactions from person to person. Some just get on with fixing what I point out, while others get very defensive about it. Of course, the reviewer isn't always right either, and sometimes you'll get a bit of debate between the reviewer and author on a particular point. This is all healthy, and the end result is better code, which is better for everyone.<br /><br />Now, when I do code reviews I try very hard to be respectful of the person I am reviewing and of his work. I don't like to be offensive, or make the author feel like an idiot: as I say, people will always make mistakes, and may not know as much as I do about the particular item in question that I am pointing out. Again, this is to be expected: nobody knows everything.<br /><br />But what if the criticism, while perfectly valid, is presented in an offensive way? How should one respond to that?<br /><br />Recently I took over maintainership of a small <a href="http://bazaar-vcs.org/">bazaar</a> plugin called <a href="https://launchpad.net/bzr-diffstat">diffstat</a>. It is written in python, a language which I like but have little experience in. I figured this would be an excellent opportunity for me to learn more about python, and get involved in the open source community in some way in one go.<br /><br />Today I was notified of a new <a href="https://bugs.launchpad.net/bzr-diffstat/+bug/254128">bug</a> against the plugin which I have to say got my back up a bit.<br /><br />The report was not really a bug since the functionality was not broken. Rather it was pointing out how one part of the code could be improved. The diff is <a href="http://launchpadlibrarian.net/16489137/diffstat.patch">attached</a> to the bug report, but in essence it replaces nine lines of code with two that work exactly the same.<br /><br />It is a perfectly valid and good improvement that makes use of a feature of the python libraries that I was not previously aware of.<br /><br />The subject: "<span style="font-size:100%;">Silly code for popping kwargs".<br />The message: "</span>The code in "cmd_diff.run()" for popping the "stat" and "stat_diff" parameters is convoluted and silly. The optional default parameter to "dict.pop()" is a better solution."<br /><br />Erm, what was that? Silly???<br /><br />I immediately felt offended and even unsulted, hit the reply button and, hands poised over the keyboard, thought for a moment.<br /><br />The criticism was valid: the existing code was, while not 'silly', definitely convoluted in light of the better way of doing it that the reporter provided. Furthermore, despite the poor way in which this was communicated in the bug report, this was a good improvement to the code that the reporter was providing in his own time. The bug report was in effect a code review, and I should deal with it as such.<br /><br />So I thought about toning down my response a bit: while the review was valid, the approach was not, so perhaps making it civil while writing "silly" in quotes to make the point passively would do.<br /><span style="font-size:100%;"><br />Another moment of thought put rest to that. It was childish, and furthermore anything I write will become part of the project's permanent record in the form of the commit log and bug comments for all to see for ever more.<br /><br />So in the end I sucked it up, thanked the reporter for pointing out the improvement, and made the change to the code he suggested. I did throw in there that I was quite new to python, to attemt to explain away why the code was like that, but that's as far as it went.<br /><br />I have no interest in making myself look like an ass online. The things is though, others might have no problem with it. Those people would have reacted differently to how I did in the end, resulting in the bug reporter taking his attention elsewhere to the detriment of the project. Of course, this could all be avoided by people giving their criticism in a better way in the first place...<br /><br />Before reacting to anything on the Internet it is worth thinking for a minute about the consequences of doing so. The bug reporter reacted to the code he saw by calling it silly. I chose to react to his reaction by thanking him.<br /><br />Some people are just rude, some don't speak your native language and might not mean to be rude. Others will go out of their way to be polite. Whatever, if they are trying to help, let them.<br /><br />Don't let pride be a barrier to collaboration.<br /></span>Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-6978133060449624312008-07-30T08:35:00.002-05:002008-07-30T08:53:06.466-05:00Health insurance: it's all clear nowI'm not going to go over the whole health insurance debate that is going on in the US at the moment: it will make me angry.<br /><br />Instead I'm going to write about something I just realised about how it all "works".<br /><br />We've had to have our own insurance lately because my company doesn't provide it (though hopefully they will be shortly). When we got our insurance (itself a debacle of a process), our agent warned us that in six months time the price will go up significantly and we'll have to go through it all again.<br /><br />Well, sure enough, we've just been informed the our premiums are going up significantly. By 26% in fact. So surely this is justified? Surely we've put such a great burden on them that they can only afford to keep us if they bump their rates to account for the massive losses we are causing?<br /><br />Well, no actually. We've hardly used them. I haven't worked it out, but they've clearly made off like bandits with us, taking in hundreds of dollars more than we have used.<br /><br />As I said, our agent said this is common practice, and it was because we were put into a group and certain people in the group got ill and that pushed up the premiums of everyone in the group. But it doesn't seem to make sense, because all it does it push everyone to cancel their insurance and take their business elsewhere.<br /><br />But today I think I've got it figured out. They <span style="font-weight: bold;">want</span> us to leave. They've successfully made a profit out of us. "Thanks for the money, now go and take your risk elsewhere. We'll have no problem finding other people to milk for six months instead". The less time they keep us for, the less chance of us getting sick while they're covering us. And if we do get sick, well, they'll try their hardest to deny the claims, and if that fails they'll pay as little as they can, after which they will cancel you as soon as you can, with a pre-existing condition so you'll never be insured again.<br /><br />You're out of the system.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-83428758797062273102008-07-02T15:23:00.003-05:002008-07-10T08:18:19.156-05:00T-Mobile massively increase text messaging ratesToday I happened to notice a notice on the my.t-mobile.com about text messaging rate increases. I was astounded to see that they are going up from an already too high 0.15 each to 0.20. That's a third, 33.33333% increase for a service that must surely cost them practically nothing to provide on an ongoing basis. Each message probably doesn't even occupy 1k.<br /><br />It's worse though. Here in the US you get charged to <span style="font-weight: bold;">receive</span> them, as well as send them. So anybody could cost you money simply by sending you a joke text message they think you'll appreciate. Then there's the spam that we're not supposed to get but do anyway.<br /><br />I suppose this is designed to push me into what they want me to do all along: buy a messaging bundle. My cheapest option is 400 a month for 4.99. If you use them all up, this works out at 0.012 per message, which is obviously a lot more like it. At the other end of the scale, I have to send or receive at least 25 a month in order to avoid end up paying more than 0.20 per message.<br /><br />Given that my normal usage pattern generally puts me at about that mark, I'm basically screwed. I either stick with what I have and hope I don't go over 25 messages in a month, or just buy the bundle and feel compelled to send more messages than I would otherwise want to.<br /><br />Last month my messaging usage came to 4.80, or 32 messages. At the new rate that would be $6.40. Definitely worth it. The month before though I only sent 13.<br /><br />Sigh.<br /><br />Alright, T-Mobile, you win. I've added the messaging bundle to my service.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com2tag:blogger.com,1999:blog-13187218.post-77322877742235809362008-06-29T22:44:00.005-05:002008-06-29T22:58:06.803-05:00F-Spot's Import RollsI discovered F-Spot quite a while back and it immediately became my replacement for Adobe Photo Album: one of the last Windows applications to go in my complete move to the Linux desktop.<br /><br />F-Spot continues to develop and improve with each release, and one of my favourites has to the the Import Roll feature.<br /><br />I tend to import photos into F-Spot in a bit of a rush when I really don't have time to properly vet, delete, edit and tag them. I get around to doing that later.<br /><br />The basic idea is that every time you import any photos, the application remembers when this happened. Photos with the same import time are grouped into the same import roll. You can easily filter on import roll either by selecting a specific one, choosing all after a given roll or all between two that you select.<br /><br />Import rolls make it easy to come back to these photos later as a cohesive set without worrying about which photos mark the start and end of the import. The problem would be even worse if the dates of the photos imported overlap the photos you already have: properly distinguishing them would be very tricky indeed. Import rolls make it easy.<br /><br />The only thing I would like to see added is the ability to add a short name or description to the roll. That would allow me to note things like "From Mum's camera" or "after holiday" etc. I could also shove some character in at the start of the name to tell me that I need to go through them, and remove it later when done. That would make it even better...Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-75193014478543878732008-06-24T09:04:00.003-05:002008-06-24T09:10:36.744-05:00AIM == Site usability FAILSo I find myself needing to use AIM again: something I've not used for years.<br /><br />I used to have an account, so I go to the site and go to the 'forgot password' section, enter my email address and it tells me they've sent me an email.<br /><br />30 minutes later and no sign of it (and yes, I have checked my spam folder).<br /><br />FAIL.<br /><br />So I figure I'll create an account, which I always hate doing because all of the good usernames have already gone. The signup form has a kaptcha imagse for fraud defense. Fair enough.<br /><br />So my chosen username is taken, and guess what? I have to do the kaptcha thing again. And again. For every username I try, I have to do it AGAIN!<br /><br />FAIL.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-28847555872331316512008-06-12T16:14:00.003-05:002008-06-12T16:41:05.687-05:00Thunderbird + GMail IMAP == "Almost great"Yes, it's almost great.<br /><br />Almost.<br /><br />Most of the time it's brilliant: labels appear as folders, starring things in TB stars them in GM too, creating a folder in TB creates a label in GM etc.<br /><br />The problem is that sometimes authentication fails. I'm not sure where the problem is, but it's most likely a server-side problem (i.e. GMail).<br /><br />Now, I'm certainly not going to complain that the free GMail service has the occasional outage with its IMAP server. As I say, most of the time it is fine. The problem is how Thunderbird deals with it.<br /><br />It pops up a window prompting me for my password, with my password already pre-populated. So I hit enter, and it appears again. And again. So I decide to hit escape to get out of it, and it pops up again, and again.<br /><br />While this is going on TB is of course completely unusable for other purposes.<br /><br />Anyway, after a short while of banging away at escape it finally gives up and goes away for a while.<br /><br />Then it tries to check my email again and decides that it has forgotten about my password, so I have to type it in again. And more often than not IMAP is still down so I get the box back again, leading to more escape pounding.<br /><br />Grrrr....<br /><br />It's not ideal, so what would be better? Well, I'm no HID expert, but for me TB should account for the possibility that your password is actually fine, it's just the remote server that is playing up a bit. Perhaps it would be better to do this non-modally for a start so the user can continue to do things like use lightening, or other mail accounts. A non-modal alert could tell the user that it is unable to access the account, and provide an option to enter alternative credentials.<br /><br />Without any further input from the user, TB should continue to try with the credentials it already has stored in the background, without interrupting anything else.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com4tag:blogger.com,1999:blog-13187218.post-18276559772352782342008-04-23T11:06:00.003-05:002008-04-23T11:35:40.659-05:00Another thing happening on Thursday<a href="http://pickscrape.blogspot.com/2008/04/all-go-on-thursday.html">Yesterday</a> I posted about a few things that were going on on Thursday. I'd actually forgotten another thing going on that day that is significant for us and also leads on to something of a rant.<br /><br />On Thursday our fridge/freezer gets repaired.<br /><br />Now, this is nothing unusual really, but the thing is, this is a unit that we bought less than two years ago that cost us about $2500 (including fitting parts and delivery etc). Apparently pretty much all new units come with a very basic 1 year warranty these days, and this is no exception.<br /><br />So much for having confidence in your products...<br /><br />The unit in question is a <a href="http://maytag.com/catalog/product.jsp?src=Refrigerators&cat=14&prod=107">Maytag Ice2O</a> one that has a French door door fridge at the top with in-door water and ice, and a pull-out freezer at the bottom. It works very well: when it's not broken.<br /><br />What happened was a couple of weeks ago the freezer started to warm up. The temperature alarm allowed us to save the food by moving it to another freezer. A while after that the fridge went the same way.<br /><br />We called an engineer out, but he couldn't find anything wrong because we'd turned it off in the meantime (the noises it was making were worrying us) and when he turned it back on again it started cooling properly.<br /><br />Then on Friday the same thing happened. This time we left it on, and called out the engineer again (on Monday). Unfortunately, we weren't as fortunate as my colleague <a href="http://www.thesprocket.org/index.php/2008/02/20/freezers-that-dont-freeze-when-its-freezing-outside/">Chris</a> who merely had to replace a bulb in his freezer. For us, it was that the compressor had shorted out, and needed replacing.<br /><br />I'm very grateful to the engineer who then went on to call Maytag himself to try and see what they could do. They first told him that it was a one year warranty and that was it. The engineer then continued to fight our cause, pointing out that this would be something like a $650 repair on a $2500 unit that is less than two years old, and Maytag finally said they would give the part for free, though they would not help out at all with the labour.<br /><br />Firstly, I'm grateful to Maytag for giving the part for free: it is something they are no legally bound to do. I'm even more grateful to the engineer who did a great job at representing us to the company.<br /><br />However, I would say that refridgerators are appliances that people purchase expecting to be able to keep them for like ten years. These aren't things we just throw away after a year.<br /><br />I am new to this country (and Maytag isn't a brand I'd heard of before in the UK), but since I've moved here I've heard about the "Maytag Repairman" commercials which document the sad existence of the poor Maytag Repairman who is bored out of his mind because Maytag products never break down. What's happened to that? Why do your products (which are supposed to be long-life) carry only one-year warranties? Do you really have that little faith in your products these days?<br /><br />Or maybe the situation is that you're quite fond of the income stream you get from selling extended warranties?<br /><br />Hmm, this is getting personal, and I could go on ranting. but I think I've made my point.<br /><br />I'm off to get a cold drink out of the cool box filled with ice in my garage...Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-41078801021094830362008-04-22T17:15:00.001-05:002008-04-22T17:16:41.145-05:00All Go on thursday<div xmlns='http://www.w3.org/1999/xhtml'>A couple of things are launching on Thursday that are of relevance to me.<br/><br/>First of all there's the release of <a href='http://www.ubuntu.com/'>Ubuntu Hardy Heron</a>: I've just come into the Ubuntu world having decided to install it on my new machine's replacement hard drive (couldn't be bothered to install Gentoo again, and fancied a change anyway).<br/><br/>I installed a beta version of Hardy Heron anyway when I installed, so the launch on Thursday won't actually have that much of an effect on me. Still a big event anyway for those who use Ubuntu or Linux in general (or are thinking of doing so).<br/><br/>The other thing that happens on Thursday is the opening of the new <a href='http://www.quiktrip.com/'>QuikTrip</a> just up the road from where we live (it will be on Justin Rd, FM407 in Lewisville, TX). At least, it will be Thursday if the "open in X days" signs outside are being properly kept up to date. :)<br/><br/>It will be nice to have a QT so close for a number of reasons: we don't currently have a competitive place to buy fuel from, especially when heading north. QT is also an excellent place to get drinks from (fountain drinks, slushies etc), which will be very welcome in the appraoching summer. Also (and to tie this loosely into the previously blogged theme of weight loss), it's going to be close enough to walk to. which will provide us with a way to get some exercise. Walk up there, buy a drink and walk back.<br/><br/>I wonder if anything else of interest to me is happening on Thursday that I'm not aware of?<br/></div>Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-59045370364064231792008-04-18T16:54:00.003-05:002008-04-18T17:13:49.631-05:00=== null is faster than is_nullI hate using more than one method to do the same thing in my code: it makes it read inconsistently in my opinion. I try to keep it uniform so there are no surprises.<br /><br />Lately I've been struggling to decide which of the following is the 'best' way to check if a given variable is null or not in PHP:<br /><blockquote style="font-family: courier new; color: rgb(51, 51, 51);">is_null($v)<br /><br />$v === null</blockquote>So I figured I'd try a rough and ready script to benchmark the two. The following will do:<br /><span style="font-family: courier new; color: rgb(51, 51, 51);"></span><blockquote><span style="font-family: courier new; color: rgb(51, 51, 51);"><?php</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $c = 1000000; // Iterations</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"></span><span style="font-family: courier new; color: rgb(51, 51, 51);"> $v = null; // Value to use in comparison</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $d</span><span style="color: rgb(51, 51, 51);"><span style="font-family: courier new;"> = null; // Dummy variable for assignment</span></span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $i = 0; // Counter</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $s = microtime(true);</span><br /><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> for ($i = 0; $i < $c; ++$i)</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> {</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $d = is_null($v);</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> }</span><br /><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> $s2 = microtime(true);</span><br /><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> echo $s2 - $s . "\n";</span><br /><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> for ($i = 0; $i < $c; ++$i)</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> {</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> </span><span style="font-family: courier new; color: rgb(51, 51, 51);">$d = </span><span style="font-family: courier new; color: rgb(51, 51, 51);">$v === null;</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> }</span><br /><br /><span style="font-family: courier new; color: rgb(51, 51, 51);"> echo microtime(true) - $s2 . "\n";</span><br /><span style="font-family: courier new; color: rgb(51, 51, 51);">?></span></blockquote>A million iterations of each should be sufficient. Everything is initialised before the loops so neither has an unfair advantage. I also tried running the script with $v set to numerous other types and values with no effect on the result, and finally tried swapping the loops around to ensure that running order was not a factor.<br /><br />The result? Well, on my machine <span style="font-family: courier new;">=== null</span> turns out to be roughly four times faster than <span style="font-family: courier new;">is_null</span>. <br /><br />I find this quite surprising: === is a generic operator while is_null is a very specific function. The only cause I can think of is that the function call adds overhead.<br /><br />So, there you go. If you need to check if a variable is null or not, <span style="font-family: courier new;">=== NULL</span> is the faster way to go.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com0tag:blogger.com,1999:blog-13187218.post-65938885498648415282008-04-16T10:04:00.007-05:002008-04-16T15:11:24.517-05:00Thanks for the tip, Vista InstallerRecently my hard drive died, and while it's been in the RMA process I've been running Linux only off an old IDE drive of mine.<br /><br />I've got my replacement now and started putting things back on to it last night. The first task was partitioning it (which I did using Linux tools so I could get everything just the way I wanted it). This includes a 250GB partition for Vista, which I use for games and games alone. Nothing but games...<br /><br />So when it came to installing Vista it asked me to pick where I wanted to install it, to which I selected the aforementioned 250GB partition.<br /><br />Upon clicking install, I got this error message:<br /><blockquote>Windows is unable to find a system volume that meets its criteria for installation</blockquote>Frikkin fantastic! Not only is the vista installer too brain dead to install to the partition I created for it (and explicitly pointed out to it), it won't tell me why. How's about telling me which criteria it's not meeting? That would be an excellent start.<br /><br />In the end I did two things that fixed it (not sure if one or both was required, couldn't be bothered to do it scientifically).<br /><br />The first thing was to delete the 100MB partition I'd created for the linux /boot mount. This was the only partition before the Vista one on the drive. If this was the problem I'd like to ram a rusty nail into the left eye of the developer that decided that was something that could prevent an installation. The partition is invisible to Windows anyway.<br /><br />The second thing was to mark the Vista partition as 'bootable'. If this was the problem I'd like to ram a rusty nail into the <span style="font-weight: bold;">right</span> eye of the developer that decided that was something that could prevent an installation. The Vista installer can't mark a partition as bootable itself? Is it really that shit?<br /><br />There is plenty on the net about other people having this same problem. More than one person had to <a href="http://blogs.msdn.com/psiman/archive/2007/06/26/windows-is-unable-to-find-a-system-volume-that-meets-its-criteria-for-installation.aspx">unplug their card reader</a> in order to get around this. Seriously, why the hell should the presence of a card reader prevent Vista from finding a partition to install on <span style="font-weight: bold;">especially</span> since the installer allows you to explicitly select the partition yourself.<br /><br />The mind boggles.<br /><br />Game developers: please get your finger out and start writing games that are cross-platform so I can finally wipe this chaff off my hard drive and out of my life for good...Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com1tag:blogger.com,1999:blog-13187218.post-12639489910651700632008-03-06T14:55:00.004-06:002008-03-06T17:55:12.298-06:00Snow in TexasSnow is something of a headline news event in Texas. It hits the new and they stay with it for hours. The radar map is shown continually with the meteorologist showing how things are moving, what they think is going to happen and showing at-the-scene reports from out and about showing how the weather is playing havoc with traffic.<br /><br />We had snowfall here a couple of days ago (up to a couple of inches) but it went away quickly the next morning.<br /><br />Today it's snowing again, and it's looking like being a lot heavier. They reckon it could get up to four inches thick.<br /><br />I've taken a couple of photos from my front doorway to show how things are going:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm3.static.flickr.com/2187/2314582431_40cd349638_m.jpg"></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm3.static.flickr.com/2187/2314582431_40cd349638_m.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://farm3.static.flickr.com/2187/2314582431_40cd349638_m.jpg" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm3.static.flickr.com/2071/2314581847_86e84035ee_m.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://farm3.static.flickr.com/2071/2314581847_86e84035ee_m.jpg" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm3.static.flickr.com/2404/2315391406_3d310601d8_m.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://farm3.static.flickr.com/2404/2315391406_3d310601d8_m.jpg" alt="" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />I'm not entirely sure why snow is such a big deal here compared to the UK. One reason could be that it's very flat around here quite a bit, so there is little cover. To add to that there are a large number of bridges and overpasses that have little cover too which ice over very quickly in cold wind when wet, even without snow.<br /><br />The other problem is that many cars here are automatics with no option to move into a higher gear. my CX-9 has an auto gearbox but has a sequential manual shift mode that allows me to select second gear for setting off, and this helps a great deal. I feel sorry for drivers who can't do that.<br /><br />Fortunately it's supposed to be clear and warmer on Sunday, so my flight shouldn't be delayed.Pickscrapehttp://www.blogger.com/profile/16316421877878482537noreply@blogger.com1