Bela Lugosi's Dead, Jim Below are the 20 most recent journal entries recorded in the "Richard Kettlewell" journal:

[<< Previous 20 entries]

November 27th, 2009
10:03 pm

[Link]

What I did with my time off
  • Got a roofer to look at our loft, which has a squirrel problem. We need our eave combs (i.e. the things that block the gap at the bottom of the tiles) replacing. Quote expected next week.
  • Taught DisOrder how to use Secret Rabbit Code.
  • Added drag and drop and playlist support to Disobedience.
  • Wrote a new manual for Disobedience. It's also grown some help buttons which link into the appropriate bits of the manual.

Tags: , ,

(1 comment | Leave a comment)

November 18th, 2009
11:26 am

[Link]

Drag And Drop The Hard Way

Disobedience, DisOrder's GUI client, uses a GtkTreeView to display its current queue of tracks (and for various other purposes). It allows rearrangement of the queue by drag and drop. The high-level support for this in GtkTreeView is rather unsatisfactory for two reasons:

  1. You can only drag one track (row) at a time. It should be possible to drag the whole selection.
  2. You cannot drag between widgets. Playlist editing in particular is likely to make this important.

(Actually the model where it reports the effects of the drag and drop by inserted/deleted signals on the underlying model is also quite inconvenient for me: Disobedience has to translate it back into a move which it communicates to the server.)

Fixing this involves doing rather a lot of the drag-and-drop work yourself, and while the documentation does exist it is not always clear or even complete. There is existing code out there, and I referred to it while working some of this out; but describing it in English online seems worthwhile. In addition, while some of the code is inextricably mixed with Disobedience's internal workings, a couple of independent modules are presented, which should be usable in other C programs.

This articles assumes some familiarity with GTK+. I have tried as far as reasonably possible to remove DisOrder-specific issues from the discussion here, but note that this isn't always possible.

Read on... )

Tags: ,

(Leave a comment)

November 15th, 2009
08:06 pm

[Link]

Dr Who
I think someone has been watching Silent Running.

Tags: ,

(17 comments | Leave a comment)

November 9th, 2009
10:29 pm

[Link]

Flashforward 5-7 (spoilers)

Episode 5

Spoilers! )

Characters

Updated )

Tags: , ,

(5 comments | Leave a comment)

October 23rd, 2009
09:05 pm

[Link]

Ice, oh, one hundred!
Poll #1475390
Open to: All, detailed results viewable to: All, participants: 62

The consonant in the middle of “ISO” is:

View Answers

[s]
55 (88.7%)

[z]
4 (6.5%)

Something else
3 (4.8%)

Tags: ,

(4 comments | Leave a comment)

October 19th, 2009
10:09 pm

[Link]

Flashforward 1-4 (spoilers)
Spoilers )

Tags: , ,

(2 comments | Leave a comment)

October 18th, 2009
09:31 pm

[Link]

Photo catchup

The window display in Forbidden Planet is (or was, if they've since changed it) quite striking.

I can't remember why I took this; I think we thought the no-pregnant-women sign was rather patronizing.

Pattern here. The keys were very fiddly!

Tags: ,

(7 comments | Leave a comment)

October 17th, 2009
01:58 pm

[Link]

Timing bug somewhere-or-other
richard@araminta:~$ cat t.c
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
int main(void) {
  for(;;) {
    time_t t;
    struct timeval tv;

    assert(gettimeofday(&tv, NULL) == 0);
    assert(time(&t) != (time_t)-1);
    if(t < tv.tv_sec)
      return printf("%ld %ld.%06ld\n", t, tv.tv_sec, tv.tv_usec);
  }
}

richard@araminta:~$ gcc -o t t.c
richard@araminta:~$ ./t
1255784018 1255784019.000000
versions )

Tags:

(14 comments | Leave a comment)

October 15th, 2009
10:17 am

[Link]

Docking
Poll #1471524
Open to: All, detailed results viewable to: All, participants: 35

The dock on a Mac should be...

View Answers

on the left
10 (28.6%)

at the bottom
16 (45.7%)

on the right
4 (11.4%)

auto-hide on
10 (28.6%)

auto-hide off
20 (57.1%)

magnifying icons on
13 (37.1%)

magnifying icons off
15 (42.9%)

at the largest setting
4 (11.4%)

somewhere in the middle
14 (40.0%)

at the smallest setting
4 (11.4%)

I only have inferior computers
6 (17.1%)

Tags: , , ,

(14 comments | Leave a comment)

October 10th, 2009
05:57 pm

[Link]

Soekris so far

Steve gave me a Soekris net4501. I've been gradually getting this into shape for use as the house router. This page covers the details in case anyone else attempts something similar; some aspects were not entirely trivial.

Testing reveals that it can route data at (at least) 24Mbit/second, which is comfortably faster than the nominal speed of our Internet connection. It's much slower than the nominal speed of the house wireless but actually marginally faster than the measured speed, so I'm not worried about that either.

(“At least” 24Mbit/s because that could be a limit somewhere other than the Soekris.)

Usefully for the testing it turns out that crossover cables are no longer necessary, at least when connecting the Soekris to a modern Mac (and for all I know any other modern hardware).

Tags: ,

(9 comments | Leave a comment)

September 30th, 2009
12:51 pm

[Link]

Make a prediction
Poll #1464460
Open to: All, detailed results viewable to: All, participants: 60

What will the outcome of the next general election be?

View Answers

Labour win
2 (3.3%)

Conservative win
51 (85.0%)

LD win
0 (0.0%)

Hung parliament
6 (10.0%)

Something else
1 (1.7%)

Tags: ,

(25 comments | Leave a comment)

September 21st, 2009
09:08 pm

[Link]

Is it a bird...?

Just walking across the car park at Wimpole when I heard a noise, looked up and said “Woah!”. As chance would have it I had my camera and the right lens.

What we saw )

Tags:

(7 comments | Leave a comment)

September 19th, 2009
02:54 pm

[Link]

Stacks and better translucent windows

I recently upgraded to Snow Leopard.

Cut for wide screenshots and Diego Maradona )

Tags: ,

(4 comments | Leave a comment)

September 17th, 2009
02:22 pm

[Link]

Laptop trackball

Can anyone recommend for/against trackballs suitable for use with a laptop?

I'm looking for something that's:

  • fairly small
  • won't lose the ball if slung in a laptop bag
  • ideally, uses bluetooth (though usb might be ok)
  • ideally, that could be clipped to the side of the laptop

Tags: ,

(3 comments | Leave a comment)

September 13th, 2009
02:13 pm

[Link]

Blue screen

I was trying to get some (any) kind of network filesystem access from my Mac to a Unix box. I didn't have much luck (which is another rant entirely) but I was amused by the “it's broken a PC” icon...

Tags: , ,

(4 comments | Leave a comment)

10:30 am

[Link]

What's the point of ITV?

If the worst should happen, and ITV were dismantled or taken over by an overseas company with less of an obligation to create British programmes, it would leave a huge hole. That really is thinking the unthinkable.

Would it? Frankly I'm not sure I'd notice. The last thing I watched on ITV was Law And Order UK which they stopped showing half way through the series without any announcement as to when or whether the rest will appear. (You might think it would be a better fit on C5 anyway given that's where the US versions show.) I can't remember what would have been the previous thing, and I mostly watch C5 and (to a lesser extent) the BBC.

It would of course help if they didn't, apparently uniquely among TV stations, try to stop you finding out what they were showing.

Tags: ,

(23 comments | Leave a comment)

September 4th, 2009
09:20 pm

[Link]

Last night's moon

Tags:

(5 comments | Leave a comment)

05:43 pm

[Link]

New lenses

Canon's new 15-85mm f/3.5-5.6 lens looks interesting to me, and I'll be keen to see a proper review.

I've been using the 17-85mm f/4-5.6 for some time; its overwhelming plus point is the wide focal length range (compared to say the 18-55mm kit lens) and although I've been generally pleased with the results image quality starts to fall when it's wide open (especially when this means both focal length and aperture).

The first of the apparent advantages of the lens is 2mm more on the focal length. This amounts to about a 10% wider field of view (66° versus 73°) and since I keep running up against the 17mm stop, I'm sure I'd use the extra.

The second is another third of a stop in the diaphragm. Again doesn't sound like much but could just be enough on a dim day, and if it pushes the point where things get soft out a bit further that would help too.

It looks like it's physically shorter and fatter, but heavier, than the 17-85mm. The former is certainly good, as with a camera on the back and polarizer on the front the old lens is a tight fit in my camera bag. Fatter means that I'd need a new polarizer.

The obvious downside is the cost, even given that I expect I'll be able to sell my old lens on.

(Yes, I know perfectly well that if you really want high quality, fixed focal length is the way to go, but I have very limited tolerance for (1) carrying around lenses I'm only going to use occasionally and (2) constantly swapping between different lenses.)

In other news they've significantly upgraded their 100mm macro lens with IS and (given the L designation) presumably superior glass, not that I've detected any flaw in the existing one, which I've got a lot out of. I think this will be easier to resist but both of these lenses being announced at the same time has left me feeling like Canon have an eye on my wallet in particular l-)

Tags:

(13 comments | Leave a comment)

12:46 pm

[Link]

50 things that are being killed by the internet
50 things that are being killed by the internet (or more accurately, by modern communications technology). Which do you miss the most? The least? What have they missed?

Tags: ,

(11 comments | Leave a comment)

August 27th, 2009
11:12 pm

[Link]

Bin there done that

+another reflection )

Tags: ,

(1 comment | Leave a comment)

[<< Previous 20 entries]

I deny everything Powered by LiveJournal.com