Why WordPress can’t be shared

Aim

I have about 6 different WordPress installs on my host. One for me, one for my company TSD and 3-4 for friends and family on sub domains. The issues I have with it are:

  • Upgrading is a pain
  • Sharing plugin-ins is a pain
  • Gets worse for every new blog I install

So I tried to modify the WP code so that it could be installed (and upgraded) in one place and then used for many blogs on the same server. I found out that as it stands WP‘s design doesn’t scale very well. I guess it wasn’t meant to, but when you work with it you get the feeling it could…
Continue reading “Why WordPress can’t be shared”

Regular Expression to remove HTML tables

Just figured out this regular expression to remove all tables from a HTML document:

</?table[^>]*>|</?tr[^>]*>|</?td[^>]*>|</?thead[^>]*>|</?tbody[^>]*>

Extremely useful for cleaning up prehistoric mark-up with a text editor that supports regular expression find-and-replace searches.

And to go all the way, this one removes font tags too:

</?table[^>]*>|</?tr[^>]*>|</?td[^>]*>|</?thead[^>]*>|</?tbody[^>]*>|</?font[^>]*>

Flash as a background and the object tag drama

The Mission

Use Flash as a background image.

The Problems

There are a multitude of problems with embedding Flash into valid mark-up. Basically:

  • You can’t use the EMBED tag now days and has been dropped in favour of the OBJECT tag. You actually can use the EMBED tag but its not future compatible and your page won’t validate.
  • This presents problems because IE and Netscape/Firefox based browsers handle the object tag differently. If you manage to get a single object tag to load a flash movie in both browsers then IE seems to not stream the movie anymore.

Continue reading “Flash as a background and the object tag drama”

Fun dumby text for all the kids

Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune. If you have a problem and no one else can help, and if you can find them, maybe you can hire the A-team.

Some creative dumby text for you web developers out there thanks to malevole.

Flash, HTML or both at the same time!

OpenLaszlo is mind blowing! If you don’t believe me check their demo Flash Flickr browser AND THEN check their identical DHTML Flickr browser compiled from the same code or XML as it were.

As if that wasn’t impressive enough, the concept of zero-install, or no-install, stand alone web applications (I prefer widgets) is quite a unique idea and makes it Oh-so-easy to integrate into whatever you need it for like a blog, community portal, forum, static HTML page etc.

The final clincher for me is that its Open Source. Flapping their floppies at the big boys, YEAH! We (I) here at TMI like it and award it the ‘Sh!tHot!‘ stamp of approval, look for it all good websites.

And while we’re on the Dojo subject, why not draw a picture AND THEN playback the creation process in real time! This ones just Hot!

Scrawled

Scrawled – Scrawling my thesis across the world…

Helped out Jamie the other night with his thesis project by doing what I like to call ‘Gorilla Web Development’. In the space of 2 hours I whipped up a page that takes a string of words and allows you to upload images for each word. Two pages of PHP.

Nice and easy and has fun results. Reused my FileUploader and Image class to get the files and resize them with minimum pain.

via revolution my web comrades!