Weblog entry #44 for Steve

More site updates and progress
Posted by Steve on Fri 11 Nov 2005 at 20:21
Tags: none.
Comment Updates

The site comment handling has now been greatly improved. If you're entering comments in "plain text" then the formatting should be preserved a lot more accurately.

Some simple transformations are applied to text, such as making hyperlinks and converting from *bold* into bold. But otherwise your input should remain unmangled.

Hyperlinks will still be allowed and because people tend to put HTML in their sigs <i>, <b>, <p>, and <a href="">....</a> should work.

Article Updates

Due to some minor optimizations each article read should now be significantly faster.

Essentially the whole page content will come out of the fast memory cache of content - with only two database lookups:

  1. One to see if you're logged in.
  2. And one to update the read count for the relevent article.

There is some invalidation going one when things are editted, or new articles added. But otherwise performance should be much improved.

Code Update

More work is going on breaking up the monolithic codebase. I'm confident that this will soon be over.

I'm pleased with the progress, and the way things are shaping up. I still need to write more test cases though, to ensure I don't cause regressions.

The following perl modules are lovely:

I'm tempted to make a small article on their usage ..

 

Comments on this Entry

Posted by k2 (69.157.xx.xx) on Sat 12 Nov 2005 at 15:49
[ Send Message | View Weblogs ]

Steve, check the article Installing a Linux-2.6.14+initrd on Sarge. Its main content starts with a "<div> Until recently I used...." and then there is a closing lt;/p> without a starting <p> after <div class="body">. Then the article contains a starting <p> tag with none closing it!

Does that happen when a user simple types in the article without the HTML tags? Haa, and see what happens if you write < and > type entities in the text box and then preview it ;)

[ Parent | Reply to this comment ]

Posted by Steve (82.41.xx.xx) on Sat 12 Nov 2005 at 17:22
[ Send Message | View Steve's Scratchpad | View Weblogs ]

It looks like it was just missing an opening <p> tag. Fixed now.

Steve

[ Parent | Reply to this comment ]

Posted by Anonymous (213.164.xx.xx) on Sat 12 Nov 2005 at 17:58
> I'm tempted to make a small article on their usage ..
Bring it on!

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search