Content here is by:
Michael Still
mikal@stillhq.com

All my Open Source projects
Extracted view of CVS
Home
Site map

See recent comments. RSS feed of all comments. Raw dump of all comments for research purposes.

ImageMagick book
MythTV book








Thu, 19 Nov 2009



Blathering for Friday, 20 November 2009

    00:36: Mikal shared: Apple's Mistake
      Paul makes good points. Although I don't think that you need to develop on your phone -- just have a device which lets you reach in deep enough to make debugging a pleasure.



    Tags for this post: blather(S)

posted at: 07:28 | path: /blather | permanent link to this entry


Blathering for Thursday, 19 November 2009

posted at: 04:59 | path: /blather | permanent link to this entry


Wed, 18 Nov 2009



Bolo Rising




    ISBN: 0671577794
    Baen (1998), Mass Market Paperback, 400 pages
    LibraryThing
    In the distant future after the Melconians have done their thing, there is a small pocket of humans and they're having a bad day. One of things I like about the Bolo books is that their consistent in their overall direction for future human history, and that future is reasonably plausible -- its a bit like Asimov's extended Foundation Series, but written by a bunch of different authors. There must have been a huge coordination effort while producing these books.

    This book is pretty standard Bolo fair, which is well written and entertaining. It wont make you a better person, but its a fun read and makes you think.

    Tags for this post: book(S) Keith_Laumer(S)


posted at: 20:01 | path: /book/Keith_Laumer | permanent link to this entry


Blathering for Wednesday, 18 November 2009

posted at: 03:18 | path: /blather | permanent link to this entry


Sun, 15 Nov 2009



Forever Peace




    ISBN: 9780441005666
    LibraryThing
    This a very different book to The Forever War, and not really a sequel. It covers some similar territory, but there are no characters in common, and the overall plots are unrelated (and conflicting). However, this book is as well written as The Forever War, and I enjoyed it.

    Tags for this post: book(S) Joe_Haldeman(S)


posted at: 22:44 | path: /book/Joe_Haldeman | permanent link to this entry


Wed, 11 Nov 2009



The Forever War




    ISBN: 9780312536633
    LibraryThing
    I read this book mainly because multiple sites recommended it as a response to Starship Troopers. I'd actually read the start of this book already in the form of the short story "Hero", which is included in Battlefields Beyond Tomorrow. At the time, I would have described it as an ok short story, but not the best in the book. That's interesting, because the extended version in the novel is amazing. Its one of those books I had trouble putting down, and its gripping to the end. The book has a very different perspective on war from Starship Troopers and is more like some of David Drake's writing (they're both Vietnam veterans). There is also a little bit of Bill the Galactic Hero mixed in as well, without being so over the top. I strongly recommend this book.

    Tags for this post: book(S) Joe_Haldeman(S)


posted at: 14:14 | path: /book/Joe_Haldeman | permanent link to this entry


Fri, 06 Nov 2009



On Cars




    ISBN: 9781856131001
    LibraryThing
    Jeremy Clarkson isn't one of those people you can read hundreds of pages of at once. That's probably why he writes articles instead of books. This book is a collection of these articles, and it is an interesting and entertaining read. However, I couldn't read it front to back. Instead I read it over a series of take offs and landings during a trip, and that worked well. Apart from Jeremy's sense of humour, and the fact that he's mostly right, the other interesting aspect of this book is that you get to see his writing style develop over time. It helps explain how we ended up with Top Gear.

    Tags for this post: book(S) Jeremy_Clarkson(S)


posted at: 21:38 | path: /book/Jeremy_Clarkson | permanent link to this entry


Thu, 05 Nov 2009



Books read in October 2009

posted at: 15:25 | path: /book/read | permanent link to this entry


Blathering for Thursday, 05 November 2009

posted at: 00:23 | path: /blather | permanent link to this entry


Tue, 03 Nov 2009



Blathering for Wednesday, 04 November 2009

posted at: 23:54 | path: /blather | permanent link to this entry


Blathering for Tuesday, 03 November 2009

posted at: 04:03 | path: /blather | permanent link to this entry


Sun, 01 Nov 2009



Python effective TLD library update

    The effective TLD library is now being used for a couple of projects of mine, but I've had some troubles with it being almost unusable slow. I ended up waking up this morning with the revelation that the problem is that I use regexps to match domain names, but the failure of a match occurs at the end of a string. That means that the FSA has to scan the entire string before it gets to decide that it isn't a match. That's expensive.

    I ran some tests on tweaks to try and fix this. Without any changes, scanning 1,000 semi-random domain names took 6.941666 seconds. I then tweaked the implementation to reverse the strings it was scanning, and that halved the run time of the test to 3.212203 seconds. That's a big improvement, but still way too slow. The next thing I tried was then adding buckets of rules on top of those reverse matches.... In other words, the code now assumes that anything after the last dot is some for of TLD approximation, and only executes rules which also have that string after the last dot. This was a massive improvement, with 1,000 domains taking only 0.026120 seconds.

    I've updated the code at http://www.stillhq.com/python/etld/etld.py.

    Tags for this post: python(S) etld(S)

posted at: 09:45 | path: /python/etld | permanent link to this entry


Blathering for Monday, 02 November 2009

posted at: 07:34 | path: /blather | permanent link to this entry


Fri, 30 Oct 2009



Blathering for Friday, 30 October 2009

    17:44: Mikal shared: Can being laid off really make you better off? - BusinessWeek.com- msnbc.com
      Interesting article from Business Week. A recent study found that those laid off by Boeing were better off psychologically than those who remained with the company. This was mainly because of a combination of survivor guilt and continued stress about being in an insecure position.



    Tags for this post: blather(S)

posted at: 04:48 | path: /blather | permanent link to this entry


Wed, 28 Oct 2009



Blathering for Thursday, 29 October 2009

posted at: 22:41 | path: /blather | permanent link to this entry


INVOL RER DUE TO OVERSOLD LX40

    I'm not sure where to start this story. I could tell you how I've been flying around the world on a business trip, or I could tell you what I think about Swiss Air business class. Instead I'm left thinking I should mention carbon. You see, I was sitting in first class on a Swiss Air flight to New York City yesterday, and I was surrounded by tree. Big centimeter thick panels of it are all over the place. When other airlines are doing things like using lighter foam for seat cushions or asking passengers to go potty before boarding to reduce the weight of their aircraft (and therefore carbon emissions), Swiss has chosen to find a forest and cut it down to put in their brand new plane. This forest will be flying around for a couple of decades I would think.

    Sure, its only in first class (business class gets veneer), and I'm a bastard for being in first class at all. There's a story to that too though. I booked an ultra cheap around the world business ticket through Swiss Air. It was in fact cheaper than the same flights in economy with Qantas. This is despite the fact that two of the business class segments are in fact on Qantas. That's how I ended up in first class -- I was going between London Heathrow and San Francisco, but Swiss had oversold the Zurich to LA flight. So, I'm bumped to first class via NYC, which added about six hours to my total travel time yesterday.

    Being bumped wasn't all bad. I've never been in first class before, and it was very nice. I might have chocolate poisoning of some form. I also got to "experience" American Airlines business class from New York to LA, in a plane which is possibly older than me. In fact, its entirely possible this plane predates flight. The seat pitch was nice, except that my chair kept involuntarily reclining. I didn't mind too much, as I hadn't slept in about 24 hours at that point, so I nodded off. Before I nodded off, I was also forced to decide that it was in fact the chick from Gilmore Girls (the one who plays Lorelai) two rows in front of me. She dropped her bag at one point in the airport, and I am excited to report that she watched a DVD during the flight. Citizen journalism at its finest.

    I wouldn't normally mention the actress in the front of the plane, especially after TechCrunch taught me that no one gives a crap about what's happening to me (or in fact you) in real time. However, this being a stream of consciousness blog post written at 8am in LA airport while killing time for yet another flight, I think I am justified. Oh, and I also don't care if you give a crap.

    I have more to complain about. Take for example the Swiss Air business class flight that I've just taken from Narita near Tokyo to Heathrow, via Zurich. Its clear why the ticket was cheap. Swiss business class simply isn't up to the standard of Qantas'. The seats don't lie flat (when you try to sleep you slide down to the end of the footrest in a little mound), the on demand entertainment system works, but appears to have some sort of image resizing error (everything is pixelated), and the cabin service is terribly slow. Lunch has just taken about two hours to serve. It took two hours in first class as well, but that's because they were trying to shove five courses into me.

    The cabin fit out on that business class flight was the same standard as Qantas had before they went to their new lie flat configuration. To put that in perspective, that conversion was done at least ten years ago. I think the standard of the equipment being used might also explain why only half of the seats are taken in business class, where Qantas would be running at capacity. This was clearly one of the older Swiss aircraft, but even the brand new one with the forest in it had a business class which wasn't up to the same standard as Qantas.

    I can't complain too much though -- it still beats the pants of Qantas economy, and the flight did give me a chance to discover what I believe might be the most boring television program ever made. Its called "Swiss Railway Journeys", and I heartily don't recommend it. Unless you deeply care about the age of each wheel on the train.

    One last thing. While the Swiss Air staff were all much older than I am used to on other airlines, I think that's because of the vagaries of the youth of today. Each of these staff could speak four languages fluently, and would begin the conversation when you first boarded with a little protocol handshake where they said hello in all four languages and waited to see which one you replied in. Once they had you figured out, they would use the correct language from then on. Modern youth are too busy twittering to learn one language, let alone every language ever used. Oh, and if you know four words of German, don't use them at the start of a Swiss flight. You'll be stuck for the rest of the journey conveying your desires through interpretive dance.

    Tags for this post: travel(S)

posted at: 14:10 | path: /travel | permanent link to this entry


Triplanetary




    ISBN: 0425053830
    LibraryThing
    This is the first book in the EE Doc Smith Lensman series, a series which sweeps from pre-modern Atlantis all the way well into the future. Its pretty old, so some of the science is dangerously dated, but that's not its biggest flaw. This book suffers from uncontrolled hyperbole, which I guess isn't that unexpected for a space opera. I guess it was also more common at the time, before science fiction started taking itself seriously. The plot is also a little hard to believe, with both sides at one point murdering entire cities. They then of course forgive each other because "its logical".

    However, I have an emotional attachment to this book, because it is the one which interested me in reading as a young child. Despite its flaws in both science and plot, it is still an ok book. I enjoyed reading it, and it was entertaining.

    Tags for this post: book(S) EE_Doc_Smith(S)


posted at: 05:22 | path: /book/EE_Doc_Smith | permanent link to this entry


Blathering for Wednesday, 28 October 2009

posted at: 03:51 | path: /blather | permanent link to this entry


Mon, 26 Oct 2009



Python effective TLD library

    I had a need recently for a library which would take a host name and return the domain-specific portion of the name, and the effective TLD being used. "Effective TLD" is a term coined by the Mozilla project for something which acts like a TLD. For example, .com is a TLD and has domains allocated under it. However, .au is a TLD with no domains under it. The effective TLDs for the .au domain are things like .com.au and .edu.au. Whilst there are libraries for other languages, I couldn't find anything for python.

    I therefore wrote one. Its very simple, and not optimal. For example, I could do most of the processing with a single regexp if python supported more than 100 match groups in a regexp, but it doesn't. I'm sure I'll end up revisiting this code sometime in the future. Additionally, the code ended up being much easier to write than I expected, mainly because the Mozilla project has gone to the trouble of building a list of rules to determine the effective TLD of a host name. This is awesome, because it saved me heaps and heaps of work.

    The code is at http://www.stillhq.com/python/etld/etld.py if you're interested.

    Tags for this post: python(S) etld(S)

posted at: 06:42 | path: /python/etld | permanent link to this entry


Sat, 24 Oct 2009



Blathering for Sunday, 25 October 2009

posted at: 23:09 | path: /blather | permanent link to this entry