RSS - Latest postsThinkRobot

13Apr
2009

Regex for Autolinking URLs

For a recent project I was wanting to perform an exceptionally common task. Converting things that look like URLs in the text into clickable links. However wherever I’ve seen this implemented before I’ve always encountered the same annoying problem, namely the links break when the user types a URL and adds some punctuation at the end since the punctuation gets captured as part of the link.

(more…)

Categories:

12Apr
2009

Blog Revamp Complete

Finally the new design is here. Fresh, and might have a few glitches here and there (still struggling with some WP 2.7 bits and pieces).

The whole redesign process has made me swear heavily at the dreaded IE 6 browser many times. I really have to admit I holeheartedly agree with the notion of shooting it dead.

But nevertheless, enjoy the new clean design.

Categories:

22Feb
2009

Firefox ignores tabs but not spaces in a pre tag

Sometimes HTML can be so frustrating. I love tabs in my code, however while styling the new blog theme I run into a Firefox only problem – despite being in a <pre> tag tabs would be ignored.

I found references to this werid behaviour, however it seemed to affect the displayed indentation for both tabs and spaces, and not ignore one while adhering to the other.

The solution actually turned out quite simple. The only thing you needed was an element inside the <pre> tag with the display: block; property set. And you don’t even need to move the padding away from the <pre> tag.

Categories:

22Feb
2009

How To Use the Strong Ownership List

Some time ago I wrote about the idea of the Strong Ownership List approach. A recent comment on that post has made me realize that for the idea to be better understood and easier to apply I probably should describe the process it involves in more detail. (more…)

Categories:

19Feb
2009

Improving Design by Using a Grid System

When I first heard of grids for design (and frameworks for CSS as a matter of fact) I was quite sceptical. Why limit yourself to a predefined outline? Mathematical precision in a creative process? Well needless to say I was surprised with the outcome.

Obviously you do tend to repeat certain pieces of code over and over in a project, but a framework? Behind a word like that usually stands a complex set of predefined elements. Though solid and reliable, these are often not very flexible and not easily modifiable. And the last two features seem to be crucial for projects that involve html and css. (more…)

Categories: