99% of Gargoyles ...
look like Bob Todd
 

 


 
 

 Wednesday, 16 January 2002


I can never resist a quote from Steven Wright, he is one of my favourites. So, today you get;

Steven Wright. "When I woke up this morning my girlfriend asked me, 'Did you sleep good?' I said 'No, I made a few mistakes.'" [Quotes of the Day]


2:46:00 PM    

OK, the template has gone south. I was getting broken image links when rendering this page from my domain [ http://www.halfcooked.com/radio ] so I changed the FTP entries on the prefs page so that I switched back to http://radio.weblogs.com/0100917 . No joy I'm afraid. Hmm.
12:53:35 PM    

Here is some quality code that Alex Martelli posted on comp.lang.python [ post here ];

class fifo:
    def __init__(self):
        self.data = []
        self.first = 0
    def head(self):
        return self.data[self.first]
    def pop(self):
        self.first += 1
        if self.first > len(self.data)/2:
            self.data = self.data[self.first:]
            self.first = 0
    def append(self, value):
        self.data.append(value)

I'm posting it here as a note to myself to use this class whenever I need a first in, first out stack. If you look at the whole thread you will notice lots of other suggestions to solve the original problem. I've copied this one because it is simple, clean, easy to understand and just plain great. All good reasons to program in Python.


10:56:43 AM    

Some more places for me to look at opinions on digital cameras;

This may take some time. I'll get back to you when I've waded through all of these sites


9:21:33 AM    



© Copyright 2002 Andy Todd.
Last update: 16/01/2002; 2:46:02 PM.


 

January 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Dec   Feb