Category Archives: internet

A WordPress flaw: no paged comments

A snag with the most wonderful WordPress is that comments to a post are not broken down into pages. With over eighty comments and climbing fast, this post on slow Outlook 2007 is getting slow to load. Fitting, I guess, but I’d rather it performed better. I looked in vain for a WordPress option to split the comments into pages. I did find this plugin, but although it works it looks bad with the theme I’m using. I suppose a few hours hacking would fix it. I reckon a paging option should be built into WordPress as it will always be a problem on heavily commented posts.

 

Technorati tags: ,

Microsoft Soapbox uses Flash

Took a quick look at Microsoft Soapbox which seems to be a me-too version of YouTube.

The first thing I noticed was the absence of any content I wanted to view, whereas YouTube is really dangerous if you want to avoid distraction. That will change if the service is popular; but I’m not clear why someone would use Microsoft’s service instead of YouTube which gets the traffic.

The second thing I noticed is that Microsoft is using Flash for these videos, as does YouTube. I gave it a cross-platform test, and was able to use the site on the Mac with Safari and on Linux with FireFox, so kudos to Microsoft for that. I’m puzzled though, because the system requirements state Windows Media Player 9 as well as Flash 8, and Windows Media Player 9 isn’t available for Linux. Nevertheless, it works.

That said, I’m surprised that Microsoft isn’t using SoapBox to show off WPF/E. I appreciate that this is still in beta, but then so is Soapbox. Does Microsoft not intend to use its cross-platform, video-capable solution for its own site? Or will it transition in future?

 

Technorati tags: , , ,

Why Microsoft’s search share is declining

Internet Explorer is the dominant browser, Windows the dominant desktop, yet Microsoft’s share of internet search is apparently declining. Here’s why. I’m researching Yahoo Pipes; I forget the exact url for the Pipes home page so I type the search into the IE7 search box, where Microsoft’s “Live search” is the default.

The page I want is not on the first page of results. The ads are irrelevant. Some of the search results are at least relevant, but they are not what I would call top tier results.Even the O’Reilly link is a page for all articles tagged Yahoo, not one of the actual Pipes articles.

So I switch to Google search. The page I want is top of the search results. The other entries are more relevant. Even the ad is moderately relevant (at least it is about software Pipes not metal tubes).

This is of course anecdotal. It was also a tough test, considering Yahoo Pipes is new. Perhaps there are hundreds of other searches where Live Search gets better results. All I can say is that I rarely discover them, whereas I frequently find Google’s results much better. This just struck me as a good example.

Microsoft will never improve its share of search unless it can deliver at least equally good results.

See also my IT Week comment.

Technorati tags: , ,

Google Maps puzzler

Ran into this puzzler today:

Google Maps showing Mansfield on the map, but unable to find it for directions.

I could not persuade Google Maps that it knew where Mansfield is. I mean Mansfield in Nottinghamshire; but even when I typed in “Mansfield, Nottinghamshire, UK”, Google Maps professed ignorance – although I could easily scroll to the actual location on the map itself by the strategy of searching for another place first. No doubt there are other Mansfields in the world – but why not a disambiguation menu?

Eventuall I tried Mansfield, UK and it worked. Except that the position is miles out:

I guess Google Maps just doesn’t like Mansfield. Microsoft’s local.live.com had no problems.

I’m sure a postcode would have worked; but these are not always conveniently at hand.

Technorati tags: , ,

IE7 script madness

Ever seen this guy?

Stop running this script dialog in IE7

I’m writing a piece on Javascript. In the new world of AJAX, web applications may run large amounts of client-side code in the browser. I’m having a look at performance issues, so I wrote some code that does some processing in a tight loop and tested it in IE7, FireFox 2.0 and Flash 9.

Getting timings was difficult, because IE7 pops up this “Stop running this script” dialog when my code is running. Nor will it let go. You click “No”, and 1 second later the dialog pops up again. And again. And again.

I’ve trawled through the IE7 options looking for a way to switch this thing off, but cannot find one. I’m hoping I’ve missed it, or that there is a secret registry key I can change, because it is really annoying.

I don’t understand why there is no option for “don’t ask me again”, or “allow long-running scripts at this site”. After all, this scenario is going to get increasingly common. Neither FireFox nor Flash suffers from this problem.

I appreciate that IE7 is trying to be helpful here. There is though a fine line between helpful and annoying. Without any obvious way to prevent it, this falls in the latter category.

That said, I did find a way to get my timings, because of my experience with the htmleditor.  If you host Mshtml in an application, you can implement the COM interface IDocHostShowUI. This has a ShowMessage function which IE calls when it wants to show a dialog. This enables you to catch the over-helpful “stop this script” message and not show it.

Unfortunately this solution isn’t something users can easily apply. It requires creating your own customized version of IE. There must be some easier way and I look forward to learning what it is.

One last comment: why does Microsoft still come up with poorly thought-out UI elements like this? It is easy to think of better ways than a brutal modal dialog. How about a “stop script” toolbar button that appears only when scripts are taking too long or grabbing too much CPU?

Update

FireFox does exactly the same thing, also with a modal dialog, “A script on this page may be busy” …

Still, two benefits to FireFox. First, the timeout is set to a more reasonable 10 seconds. Second, you can easily amend it. Navigate to about:config. Find the entry dom.max_script_run_time. Change it from 10 to whatever you like. 

Further update

A comment has pointed me to this knowledgebase article.

Here’s the fix:

  1. Using a Registry Editor such as Regedt32.exe, open this key:
    HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Styles

    Note If the Styles key is not present, create a new key that is called Styles.

  2. Create a new DWORD value called “MaxScriptStatements” under this key and set the value to the desired number of script statements.

    By default the key doesn’t exist. If the key has not been added, Internet Explorer 4 defaults to 5,000,000 statements executed as the trigger for the time-out dialog box.

Technorati tags: , , ,

Steve Jobs on DRM: sense and nonsense

Kudos – mostly – to Steve Jobs for his remarks on Apple and DRM. I like his closing comments:

Convincing [big music companies] to license their music to Apple and others DRM-free will create a truly interoperable music marketplace.  Apple will embrace this wholeheartedly.

Yes please. But while I applaud these remarks, I have to note some curious logic in the rest of his defence of Apple’s DRM policy. Remember, the essence of the complaint against Apple is that it will neither license its FairPlay DRM to others, nor support other DRM schemes in its iTunes store. The consequence is that iTunes customers are locked to Apple’s software, and for portable devices, largely to its hardware as well.

Jobs says Apple doesn’t license FairPlay because it could compromise its “secrets”:

The most serious problem is that licensing a DRM involves disclosing some of its secrets to many people in many companies, and history tells us that inevitably these secrets will leak.

However, Jobs has already stated that such secrets often get cracked anyway. The intransigent problem is that the keys reside on the user’s own machine:

In other words, even if one uses the most sophisticated cryptographic locks to protect the actual music, one must still “hide” the keys which unlock the music on the user’s computer or portable music player.

This is a greater impediment to FairPlay’s security than licensing it would be. Further, any iTunes purchase can be burned to CD and ripped to unprotected files, albeit with loss of quality if you choose a compressed format. I also note that DVD Jon (as far as I’m aware) achieved his success at cracking DRM by reverse engineering, not industrial espionage.

So this statement makes no sense:

Apple has concluded that if it licenses FairPlay to others, it can no longer guarantee to protect the music it licenses from the big four music companies.

Apple has actually concluded that it can’t “guarantee to protect the music” anyway, irrespective of whether it licenses FairPlay.

Further quibbles: Jobs sees a “a very competitive market”, where others see Apple’s unhealthy dominance, particularly in portable music players.

Another. Jobs says:

Since 97% of the music on the average iPod was not purchased from the iTunes store, iPod users are clearly not locked into the iTunes store to acquire their music.

No Mr Jobs, they are not locked into the iTunes store (yet). They are locked into the iPod to play this music back. Well, subject to the caveats already discussed. And what about iTunes exclusives?

Finally, Jobs notes that “The music companies sell the vast majority of their music DRM-free”, referring to the continuining importance of CD sales, which greatly exceed online sales.

Yet CD sales are declining and will continue to do so. We are having this discussion because we know that those figures will swing, probably quite fast, and that online or subscription sales will dominate the music business.

Users would love to see more legal, DRM-free downloads. In the meantime, Apple’s refusal to interoperate its DRM with others remains anti-competitive.

Technorati tags: , , ,

Windows web server market share grows

Netcraft reports that Windows/IIS has a growing share of the web server market:

Microsoft-IIS gains 935K sites, continuing an advance that has seen Microsoft steadily chip away at what once seemed an insurmountable lead for Apache. In our Feb. 2006 survey, Apache held 68% market share, giving it lead of 47.5% over Windows (20.5% share). In this month’s survey, Microsoft’s share has improved to 31.0%, narrowing Apache’s advantage to 27.7%.

Netcraft counts sites, which means that its monthly figures are hugely influenced by the actions of a few big players in the web hosting market; many “sites” are no more than parked domains. It’s also worth noting that the total number of sites is constantly increasing. Apache probably has more users than ever before, despite the above “decline”. Other web servers have a miniscule market share.

Even with these caveats, it seems that Microsoft is at least holding its own in the web server market. My hunch is that this has to do with the high quality of ASP.NET, and the fact that Windows Server 2003 has won a decent reputation for security as a web server. I am not saying it is more secure than say Linux-Apache; just that security isn’t the deal-breaker that it tends to be on the desktop.

Congratulations to Scott Guthrie and his team.

Technorati tags: , ,

MySpace, Microsoft and scalability

I was impressed when I learned at Mix06 last year that MySpace runs on Microsoft’s platform. After all, MySpace is one of the top 10 busiest sites on the web (currently 6 according to Alexa), and stuffed with dynamic content. So it makes a great case study for Microsoft.

Or does it? The downside of being so prominent is that problems with MySpace reflect badly on Microsoft’s platform. Thus you get articles like Larry Dignan’s MySpace: IT On a Wing and Microsoft Prayer.  

The article Dignan references describes how MySpace has coped, just about, with unexpected and explosive growth. It’s been a ragged evolution, and sounds more like a desperate attempt to keep pace than smooth upscaling. That said, this is more a characteristic of the particular scenario – web site copes with unexpected growth – than a characteristic of the Microsoft platform as such. However it is apparent that 32-bit SQL Server 7.0 was really not up to this level of scalability, and by all accounts even 64-bit SQL Server 2005 is being pushed to its limits.

Two bits of context here. First, the majority of software projects have far more modest requirements than MySpace. Second, there are other scalability examples, such as Microsoft’s favourite case study the London Stock Exchange, which runs smoothly enough as far as I know. Smaller than MySpace, of course, but business-critical in a way that MySpace will never be. On balance it seems that Microsoft’s platform is scalable enough for most of us. That does not mean that it is the best choice, or the most cost effective, or the more reliable. It just means that muttering “it doesn’t scale” is not the potent argument that perhaps it used to be.

Technorati tags: , , ,

Elementary error breaks Outlook 2007 POP3 mail, say users

Users are reporting that Outlook 2007 is immensely slow for POP3 email retrieval, because of an elementary error in the way it negotiates with email servers.

Specifically, it sends AUTH as the first command after connection. The server rejects this with an error response. The ensuing time-outs and consequent errors result in much slower mail retrieval, though it does arrive eventually.

I have 8 POP3 accounts that OL 2003 used to query in a minute or two (with 80 spams downloaded). OL 2007 takes 6 minutes. Plus I reckon there are other problems in the UI threading…..

says CW in a comment to an earlier blog post about Outlook 2007 performance. Corroboration comes from user Ken in a comment to this post.

I’ve not yet tested this myself, but will do shortly. It has a kind of horrific plausibility, since everyone at Microsoft uses Exchange for email, not POP3. Therefore POP3 performance will receive much less scrutiny, though you would have thought that the wider beta testing would have picked it up.

I think we will here a lot more about Outlook 2007 performance issues in the coming months, unless Microsoft comes up with a speedy fix for this and other problems.

Update

I’ve run some tests of my own and looked up some RFCs, with a little help from the microsoft.public.outlook.general newsgroup.

I tried Outlook 2007 with two POP3 servers. One is dovecot; the other is also running on Linux though I’m not sure which POP3 daemon it is. With dovecot, my ethernet trace does show a sequence similar to the one the above users are complaining about, something like:

Server: +OK dovecot ready.”

Client: AUTH

Server: -ERR Unsupported authentication mechanism

However, there is no significant delay introduced; it goes right ahead with user and password.

On the other POP3 server AUTH is again sent, but this time does not trigger an error.

There is something that puzzles me though: according to RFC 1734 AUTH should be followed by an authentication mechanism, not left without an argument. And there doesn’t appear to be any need to send AUTH at all in the standard plain setup.

The lack of an argument would explain the error the other users saw:

Server: -ERR An authentication mechanism MUST be entered

May be an email guru can tell me definitively whether Outlook is in the wrong here. However, it strikes me that the problem is only making a minor contribution to the poor performance. Even the timeout of 3 seconds which the user CW refers to is hardly going to make a huge difference.

That said – the fact remains that Outlook 2007 does have performance issues.

What you’re reading

The new year beckons, so here’s a quick look back at my web stats.

I’m surprised by the most popular search phrase. Believe it or not, it’s vb.net database. I wrote a short article on getting started with a vb.net database app. This was in .NET 1.1 days. My presumption was that when you fire up VB.NET with the intention of writing a simple database application, it is not particularly obvious how to go about it. I wasn’t altogether happy with the piece; yet the number of hits suggests that this is indeed a common source of puzzlement.

Next up is dreamweaver 9. Back in June I picked up some information about the next version of Adobe’s web design tool. There’s clearly keen interest out there.

Other bit hits are .net mac (are you listening Microsoft?), htmleditor (looking for this) and wpfe, attracting more interest now that the CTP is out (here’s the interview on the subject).

The list in full:

  1. vb.net database
  2. dreamweaver 9
  3. jbuilder
  4. htmleditor
  5. .net mac
  6. private bytes
  7. tablet pc
  8. wpfe
  9. sqlite delphi
  10. msi editor

What about pages retrieved? At the top is the blog, of course, with twice as many hits to the blog home page than there are RSS retrievals. When you consider that each RSS subscriber typically creates several hits per day, that’s surprising.

Here are the other most read articles:

  1. The htmleditor phorum, now a useful archive of information on mshtml, and the c# htmleditor download page.
  2. Why does my dot net app use so much memory? – lot of people shocked to see what Task Manager is telling them 
  3. Wrestling with the Windows installer – reflecting your frustrations with MSI
  4. Notes on Sqlite – out of date now
  5. ipodphoto.php – also out of date, though I gather these older iPods are sought-after for things like the firewire port and according to some, superior audio quality
  6. wpfe.php – as mentioned above 
  7. Sqlite wrapper for Delphi
  8. Running .NET on a Mac – very out of date, but reflects the interest in this subject 
  9. VB.NET Database sample as mentioned above 
  10. Why Microsoft froze VB 6.0 – a subject of enduring interest

Other points of interest:

Browsers: 79% Windows but only 60% Internet Explorer, 14% Firefox. I reckon the figures are distorted somewhat by bots that awstats is failing to detect.

Search engines: 93% Google. 2.1% MSN, 1.6% Yahoo. This is not only an indicator of Google’s market dominance. For some reason Google tends to rank pages on this site higher than the other search engines. This makes a big difference to the hits.

How many visits? Around 1 million, from 250,000 unique visitors.

Finally, tons of spambots, mostly trying to post comments, but some just trying to get into referral stats (as far as I can tell). It is a huge and offensive problem. Very little muck actually gets posted, but some of it gets into the stats, so don’t take the figures above too seriously.

Technorati tags: , , , , , ,