See recent comments. RSS feed of all comments. Raw dump of all comments for research purposes.
ImageMagick book
MythTV book
|
 |
|
 |
|
Thu, 19 Nov 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( )
posted at: 07:28 | path: /blather | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Wed, 18 Nov 2009
|
|
|
|
|
 |
|
 |
|
Sun, 15 Nov 2009
|
|
|
|
|
 |
|
 |
|
Wed, 11 Nov 2009
|
|
|
|
|
 |
|
 |
|
Fri, 06 Nov 2009
|
|
|
|
|
 |
|
 |
|
Thu, 05 Nov 2009
|
|
|
|
|
 |
|
 |
|
Tue, 03 Nov 2009
|
|
|
|
|
 |
|
 |
|
Sun, 01 Nov 2009
|
|
|
|
|
 |
|
 |
|
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( ) etld( )
posted at: 09:45 | path: /python/etld | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
|
|
|
|
|
 |
|
 |
|
Fri, 30 Oct 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( )
posted at: 04:48 | path: /blather | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Wed, 28 Oct 2009
|
|
|
|
|
 |
|
 |
|
|
|
|
|
|
 |
|
 |
|
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( )
posted at: 14:10 | path: /travel | permanent link to this entry
|
|
|
|
|
 |
|
 |
|

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( ) EE_Doc_Smith( ) |
posted at: 05:22 | path: /book/EE_Doc_Smith | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
|
|
|
|
|
 |
|
 |
|
Mon, 26 Oct 2009
|
|
|
|
|
 |
|
 |
|
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( ) etld( )
posted at: 06:42 | path: /python/etld | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Sat, 24 Oct 2009
|
|
|
|
|
|