November 9, 2004

Is it me, or is it Zope?

Some software installations can make you feel really stupid, just by not providing specific instructions.

I was pleased to see that Zope 3 had been published, so I downloaded a copy of the Windows installer and went through the (very simple) installation. Fine. Then I began to wonder just how the heck I'm supposed to run this amazing new piece of software I've just downloaded.
netstat -a
doesn't appear to tell me anything, so I assume that Zope isn't running.

Funny, nothing on the Start menu, which is where you'd logically expect the new items to appear. Nothing new has appeared in the C:\Program Files directory (hardly surprising, since I wasn't asked where the stuff was supposed to be installed). So, over to C:\Python23\Lib\site-packages\zope, and lo! - there is everything that's been installed.

Only there isn't, as far as I can see, anything to run. There is a server directory, but nothing obvious to run. There are a few README files, none of which contain instructions for how to start the software. Clearly this is just me being incompetent, right?

Well, Google is your friend, so I run a search for "How to start Zope". This gives me a huge amount of stuff related to Zope 2.everything. Most of it obviously doesn't apply, and much of it contains dead links that are clearly not being spidered on a regular basis.

I've noticed in the past that Zope documentation tends to be less than complete. Should we say "confusing"? It's surprising that an industry can be spawned on the basis of something that is so far from intuitively obvious. How steep can a learning curve be?

Here's an example from Zope 2.7, which Zope enthusiasts have told me to stick with for a while. So I'm noodling around and I decide to try to create a bunch of pages whose content comes from a database. Seems like what I need is a "Zope SQL method". So I select "Zope SQL Method" in the management drop down and click the "Create" button, to be presented with the message "There are no SQL database connections. You need to add a Zope SQL database connection before you can create a Zope SQL Method."

Now, can anyone guess where to find the information about how to create a Zope SQL database connection? Can I find it in the Zope web site? Can I find it using Google? Does the Z SQL Methods FAQ tell me how to create a Zope SQL database connection? What gives with this software? Do I have to be psychic?

We are talking about one of the flagship products of the Python world, and while I may not be Superman I do have quite enough experience to be able to run a program. Come on, people, let's have a few simple instructions that will give me the basic satisfaction of seeing a Zope web page served from my machine. As I write this I am feeling disillusioned with Zope, even though I know that there's some superb stuff in there. If only I could unlock the magic. Instead I'm left feeling slightly stupid, not a good place for a new uiser to be.

November 3, 2004

Bush Steals it Again

For someone who claimed to want to unite the country, Bush has been an incredibly divisive president, as the election result predictions today clearly show. The most interesting demographic to date is that had the women been in charge we'd now be talking about President Kerry's first term, but the men preferred Bush by a significant majority.

As I write it looks like Bush will squeak in unless there are major surprises in the absentee and uncounted ballots. I just hope that all the poor male Bush voters hoping to get rich will remember the next four years. There is little doubt in my mind that Bush's second term will, to misquote former Chancellor of the Exchequer Denis Healey, "squeeze the poor until the pips squeak". The American dream is about to become the American nightmare, since clearly Bush feels no necessity to act moderately despite the slimness of his majority.

This is feeling like a bad day for America and a bad day for the world. I just can't believe that anything but voter self-interest has given the Prez the support he needs to get re-elected, nor how people can delude themselves into thinking that Bush cares the hell about them. The best description I've heard from anyone was Ralph Nader's "He's a corporation disguised as a man". The next four years will be good for corporate profits and exceptionally bad for anyone without a high net worth.The American right, ably assisted by a media completely dominated by big business has long ago persuaded much of the world that "socialism" is a dirty world, and "liberal" is also teetering on the brink. It seems that The Ragged Trousered Philanthropists still has plenty to teach the world.

November 1, 2004

Why Do You Have to Know This Stuff?

Well, things are certainly changing in Blogdom, or whatever this strange "place" we all "inhabit" is called. I really like the way that blogging has taken off - it's almost becoming a new "killer app" layered on top of the web. For a while blogging was just something that a few random geeks did, but now we have journalists blogging, and bloggers journalising, and the boundaries between profession and spare-time occupation are rapidly blurring. This is indeed the way the information age was predicted, but it's interesting to see it become a reality.

Time was when the doctors would be bothered by people at parties: "I've got this pain in my knee, can you tell me what it is?" Nowadays computer knowledge, once safely obscure, has become a magnet for the general public, and I get people asking me questions about their computers that five years ago would have been impossibly abstruse. Many of them still should be outside the bounds of lay knowledge even today if computers would only work properly, but of course Microsoft's operating systems have historically been of such poor quality that every user has been forced to absorb the basics of computing simply to retain a little sanity.

This in itself is an interesting phenomenon from the point of view of someone like me, who's been fascinated by computers since 1967. Many times I have observed that I am incredibly lucky to be able to earn my living doing something I find so enjoyable. My early employment, in a television factory and as a bus conductor among other things, was enough to teach me that very few get this opportunity. Yet I am forced to the conclusion that many casual computer users must also find this technology fascinating, or they would simply refuse to use the bloody things. I can't for the life of me understand how the average computer user is prepared to learn as much as they do just to get a bit of wrod processing done. People will laugh in fifty years about the dicsussions we are currently having on "ease of use".

There have been several jokes along the lines of "if Microsoft built cars", but I really can't see the average car user being prepared to learn what went on under the hood simply to be able to have the pleasure of driving around. I imagine, however, that this would indeed have been the case in the 1920s, when the "early adopters" were able to fix their own breakdowns. Perhaps the 21st century has brought us to the Model T stage of computing, and in fact many of the people who drove around in early Fords hated their cars but couldn't face a return to the inconvenience of riding around on a horse.

Anyway, I thought that this blog might be a good place to start recording random notes and jottings once more. Artima.com is a more organized place, but seems to me better suited to essays and completed thoughts than my own little blog on a site that's pretty much under my control. So here it will be.

August 26, 2004

Maybe I'll start using Blogger again

Time I was a bit more communicative, I suppose.

January 3, 2003

Happy New Year to All My Reader

A recent thought on blogging generally (and this blog in particular). I list this as an "occasional weblog" because,
unlike many other bloggers, I use it only as an occasional output channel. Seems to me that it's less like a journal or a diary and more like a
DisplacementActivity sometimes. Why am I doing this? Who knows. Perhaps when I am dead the world will appreciate better what a wonderful person
I was. This seems rather unlikely on the basis of my ramblings so far, even to me. The blog certainly isn't at the level I achieved with
Python Web Programming, for example. I can write, but it's more effort than a solitary activity
like blogging truly deserves.



Anyway, Blogger.com seems to have got the archiving thing sorted out now, and indeed appears to have made the whole process a little more usable. I still
prefer Wikis to blogs, largely due to their more collaborative nature, I suspect. Ultimately either the information in these things has value to others (and I'm well aware that there are blog sites with content syndication from a thousand sources) or it can be classed as masturbatory. Most of the blogs I have read are tedious descriptions of the lives and thoughts of others at least as sad as me, which don't inspire me to greater achievements. While there's a whole world out there blogging, I can't escape a certain Groucho-ness about the whole thing: if it makes me a Blogger then I might not want to blog! Enough, already.

December 18, 2002


Bugger Blogger!

For some reason I have not yet been able to fathom, I was for quite a while completely unable to post blogs, and the last archive entry was a broken link.



All attempts to get any kind of support from the www.blogger.com team lead to either more error messages or an email black hole. What gives, guys?


All appears to be well now, but where have my archives gone? Guess this is just more WebFlakiness. Ah well, on to more interesting things. When can I blog in StructuredText?


November 6, 2002

WikiBrowser

Seems to me that what I need is a proxy between me and the web. What will it do? Scan each page for WikiWords, and when it finds one add dynamic menus offering links to the same
word in various other Wikis that I'm aware of. The advantages of this strange system? Well, mostly it would allow me to use WikiWikiWebs as a context for the various pieces of
information that come at me over the web, dynamically cross-referencing incoming information with what I already know, or know about.

November 1, 2002

Frameworks and Toolsets

I've been doing a lot of work with DreamWeaver - UltraDev mostly, though I have now dipped a toe into the MX waters - and have been impressed with its capabilities. Like most such tools, however, you sometimes end up having to stomp all over it to do what you want. It's good for some thing, but not others. This can be frustrating because after such changes the DW functionality doesn't work, or doesn't work as well. Typically DW will put a red exclamation mark next to something it no longer feels is correct, but usually this simply means "you're on your own from here on in, I can't parse this".



What I'd like is a framework that lets me do all the clever programmed things I want to do, but helps me rather than getting in my way. This might be a pipe dream (after all, it's expecting a bit much for a tool to parse arbitrary code it didn't write), but I'd like to investigate it. I suspect it will take a lot longer than I thought.


May 29, 2002


Travelling in Style

Well, travelling, anyway. California, Kentucky and Michigan all rear their heads for the coming month. Like you care ... this is a blog, after all, so what does it matter, there's OnlyMeReading. Anyway, time to work on the support infrastructure while I'm away from RealLife for a while. Ah, the joys of flying, room service and cable television (not) all at the same time. Despite my apparent tired cynicism I actually enjoy teaching very much. Otherwise why put up with the joys of ...



Minimalist experiments with DreamWeaver Ultradev persuade me that it's a useful tool. Do you want your own record in this four-page web? Easy, just think of a unique key ... but not index.html. It would be neat if there were a
Python backend as well as ASP, JSP, PHP and others. There are hooks ...


May 10, 2002

Blogging is Back

Well, blogging certainly hasn't been at the top of my priority list lately. This is probably not that surprising given the amazing amount of reorganization that's been taking place on the home front (moving bedroom furniture, working in the garden, etc).

There's also been a certain amount of network reorganization (because the basement has also had to be turned upside down), and the self-built Linux server, headrat, now has a 160 gigabytes of extra storage. This was added in the form of two Seagate Barracudas. I've used this series of drives for a long time, off and on, and have to say they are remarkably good value for money (I picked them up for $165 each at my local computer store). This will make it easier to back up the laptop, leaving me wondering what to do with the three 5" double-height SCSI drives that used to be my main storage system, They're even too heavy to ship anywhere!

I've been playing with the wxPython GUI a bit recently as it seems to support one of the more promising GUI-builder tools, Boa Constructor. The software is undergoing a lot of development right now, and it's great to see the new features coming in, but less great to have to modify my code to updates APIs. One of the problems with being at the bleeding edge, I suppose. It is finally becoming possible to build good-looking GUIs in a reasonable amount of time, though, which is nice. I think a really good RAD tool (like Delphi) would help increase Python's popularity a lot.

March 13, 2002

Teaching the Government to be Secure

This week I'm teaching a Unix and Linux security class for DISA, the Defense Intelligence Systems Agency. It's conventional, for some reason, to badmouth this Agency, but they have some incredibly smart people. As one friend said, "the longer you stand next to them, the dumber you feel".


So far we've covered the Unix basics and an overview of security. We spent this morning talking about TCP/IP security, a difficult subject to cover in a single morning, but Bob Cromwell, the course author, has done a great job of keeping the material at a high level but including useful references for those who want to understand in greater depth.


The new laptop is slowly getting fit to travel, though the DISA network doesn't seem to be as cooperative as it was the last time I was here, and that could be something to do with Internet settings. Certainly everything looks to be satisfactory. Not a matter needing urgent attention.

March 5, 2002

Those "Where Was That Disk Again" Blues

Moving information from one laptop computer to the next is a slow and painful operation when dozens of applications have to be carried forward, each with its data complete. I'll have to be more careful next time and not drop the laptop on the floor. I'm just happy the disk survived.


If only life weren't so complicated.

March 1, 2002


As the Sun Slowly Sinks in the West...

Back at AJ's for a quick goodbye, not as joyous as anticipated due to family circumstances. But good to see the Fardellas again.

The class seemed to go well, and the students appeared satisfied when they left. We shall see in a couple of weeks what they really thought, felt and knew about TCP/IP.



Now back to Dulles on a red-eye via Atlanta, benefiting yet again from the JoysOfBusinessTravel.



Do you know what a WikiWord is? See [2/19/2002 12:28:27 PM | Steve Holden]
Wiki meets Blogger, for example
. Many people have become familiar with the Wiki
aftter meeting the work of Cunningham and Cunnigham, Inc., at www.c2.com,
and in particular their Portland Pattern Repository's Wiki.

February 25, 2002

Say hello to the Readers, Tony

In Pittsburgh, CA coincidental to teaching class for a government agency. I've just spent the day setting up a two-server ten workstation network, and now I'm visiting my buddy AJ and his son Tony to deliver AJ's promised copy of the the book

February 19, 2002

Wiki meets Blogger

I just got an e-mail from Bill Seitz, who has managed to integrate two technologies which both make the web much more of a two-way medium. I wouldn't say I'm yet a convinced blogger, but obviously (since I do have a blog) I'm interested in the technology. I'm also interested in WikiWiki webs, which allow anybody to modify the content of just about any page. The resulting web can be found at http://webseitz.fluxent.com/wiki.


It's an interesting fusion of these two technologies. This will probably make Wikis more interesting to those of a paranoid mindset, too :-), because you can add comments to a page rather than editing the whole content. I'm presuming that Bill uses standard Zope protection mechanisms to stop me from completely editing his pages, because (contrary to the Wiki philosophy) this function requires login.


But, effectively, each page in the Wiki has become an individual blog. This means that the site owner (or others who have been granted appropriate login privileges) can modify the structure, and the regular day-to-day users can blog content. Nice one, Bill!

February 15, 2002

When your laptop is in pieces on the floor ...

Well, it's been an interesting couple of days. The "interest" coming mostly from tripping over the power cord of my laptop, resulting in its rather sudden demise. Aaarrrggghhh. Then I discovered that the home insurance policy we took out wasn't the all-risks policy we thought it was, so guess what: I'm not covered.


This gave me two problems: first, what am I going to use for a laptop? I've carried the [eventually] trusty ThinkPad with me just about everywhere I've been the last three years, and I wouldn't have been able to write the book without it, not to mention completing a number of paying contracts. Second, given that I have my usual two-week old backups, how do I carry everything both recent and important across to whatever replaces the seriously-defunct ThinkPad.


The first question was answered by a visit to Dell's web site, where I quickly configured a high-powered replacement for the demised thinker. 512 MB RAM, 48GB disk and a 1.13 GHz Pentium III processor, it's going to put all my other equipment in the shade. I'll also pass on a useful tip: since this machine will be tax-deductible I ended up facing a screen that asked me for the details of my incorporated entity. I don't have one, so I called Dell and spoke to a very helpful sales assistant who managed to get me fixed up with exactly the configuration I wanted and saved me $100 (I don't know how, I just challenged him to beat the price the web site had given me).


The second question has been partly answered by Symantec's wonderful Ghost program, which can copy disks and partitions like magic. For some reason (perhaps because of the fall, perhaps because of the disk's having been accidentally plugged in to a machine that was actively running Win2k (!) the system partition was badly damaged. I finally found a program by Steve Gibson (of Spin-Rite fame) origiannly written to fix up Chernobyl virus damage. After I insisted several times that I wanted it to continue, that finally managed to effect a complete repair to the FAT32 partition. If I hadn't put FAT32 on the system partition all would have been lost, including several years of email which I suddenly realised I hadn't been backing up at all -- by default OutOf:Luck Express stores mail somewhere down under the /WINDOWS directory. I might even figure out how to build a bootable SCSI from an IDE master if I'm extra lucky (and get extra help).


I'm just relieved to be able to not lose a couple of weeks work.


Interestingly none of my clients have had any problems (except that I'm repairing disks instead of working on their contracts) thanks to CVS with some and FTP with others. Everything I have delivered or am working on existed somewhere other than the laptop. I shall make this a formal practise after the week's somewhat narrow escape.


Next question: what the hell do you use to back up a 48 GB disk drive?

February 12, 2002

Trying to get a directory set up for these blogs, with proper archiving and all. I also need to change the setup to go to the right web page when I view the blog! Problems with templates seem to be over for now, anyway.
Not really sure whether blogging's for me. I see other people using it, but that doesn't necessarily signify. There's enough of my writing out there with the book plus my regular verbal diarrhoea (sorry, I can't even begin to guess how American will mangle that word) on comp.lang.python. Let's just see now, shall we?