Warning this article may contain opinions of the author that you and iTWire don't agree with.
Visit the last page to have your say in our forum.
PDFPrintE-mail

Build better blogs with Linux

Opinion and Analysis

Chances are you have some sort of web site. Linux has a rich history of text processing which can be used to turbo-boost your blogs. In fact, blogging goes to Linux like a hand to a glove.

free hit counter
The theme for this month is “I didn’t know you could do that in Linux,” and today I’ll show you how Linux can really help your blog take off, both in terms of improving its performance as well as giving you a much greater handle on what’s happening.

The magic behind these items is the native text processing capabilities that Linux has long enjoyed. These capabilities will crunch through log files and web pages extracting data or making changes in a flash.

To start, consider the way images are used on your site. Within the HTML <img> tag you can specify the height and width of the image to be displayed but often these tags are missing. This might be because the content is generated dynamically, or because the HTML has been hand-coded or because a tool did not add those tags when an image was inserted.

Whatever the reason, the HEIGHT and WIDTH attributes are important. A web browser can render a page much more quickly if it knows these values in advance. It can leave an appropriate space for the image while it is still loading it, but with the text and other elements all in the right place.

By contrast, if these attributes are missing the browser must load the image completely before it can display the page in the way it ought to look. Not only is this more aesthetically pleasing but it gives a better experience to your web site visitors. It means they don’t have the page refreshing itself, moving things around, while they’re trying to read it. They can get straight into the content even if not all the pictures are visible.

There’s an extremely handy command – written by none other than Eric S Raymond – called imgsizer. Simply run imgsizer over a HTML file, eg imgsizer index.html – or a series of HTML files, using wildcards like imgsizer *.html – and it will read through the entire page, find every image reference, inspect the image file itself, and then rewrite the page with all the height and width attributes filled in.

This is powerful in its simplicity. Your site will be improved by doing this. Your visitors will appreciate it. And best of all it’s effortless to do especially given the payback.

Ok, it’s one thing to have a web site that’s being read. It’s another to know it’s being read. Let’s see what we can do to help out with that.

CONTINUED





buy viagra online viagra prescription cialis daily sales



SPONSORED ANNOUNCEMENTS

Top Five Tips for Securing your Business Reputation from AVG (AU/NZ)

Wednesday, 10 March 2010

There have been recent reports of how a Twitter scam has affected some well known UK politicians, issuing embarrassing Tweets from their personal accounts. Whilst these headlines may seem amusing, Lloyd Borrett, the Marketing Manager at AVG (AU/NZ), says it is worth considering the potential impact of this type of scam on your business reputation.

Featured IT jobs

BI/DW Analyst (S9) BI/DW Analyst <...
Skills Tags:   Crystal Reports  Development  Reporting  SAS  SQL  SQL Server
Senior Systems Engineer - Melbourne Senior Linux Systems Engineer Opportunity wor...
Skills Tags:   Agile  IT  Linux
A large Federal Government organisation with offices in Adelaide is seeking a SAS Pr...
Skills Tags:   IT  SAS  Scripting  Support
My client is a large Investment Bank with offices in Sydney's CBD. </...
Skills Tags:   IT  Security  Sybase  Unix

Editors Picks

Stories you may have missed 

What iTWire offers for free

E - mail News SMS Headlines Desktop Alerts News Feeds Job Alerts Technology Events Press-Releases