Archive for the 'development' Category

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’

Microsoft does not support its own browser

IE5 error on microsoft.com
IE5 on microsoft.com pulls an error.
HA-ha!

Logical Operators cross languages

Heres a table of logic operators used in various languages for quick reference:
Continue reading ‘Logical Operators cross languages’

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[^>]*>

Extreamly useful for cleaning up prehistoric markup 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 tag now days and has been dropped in favor of the 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!

Social Games

I was chatting at work about how to encourage community interaction between people on a community site. I was thinking having some sort of recommendation system that would figure out who you might like and then notify you of there most recent actions. After chatting with Alex about it the idea of community games amongst people on the site came up.

I noticed that on Vibewire forum games always had the most posts, which were similar to those voluntary surveys that move around email like chain letter, the ones where you have to answer a series of unrelated personal questions. Some people love those things.

I think good interactive online games would make a big difference to a community site in terms of retention of attention. Its hard to talk about as there aren’t any ‘community metrics’ yet. Something I would like to do some work on at some stage.

The Eclipse of PHP

I’ve been using Eclipse at work for 3 months now and I’m impressed with it. It is a Java IDE but has a very flexable plugin architecture so you can get plugins for PHP (PHPEclipse) and HTML, CSS etc. The main reason I’m using it is because it comes with a Visual Source Safe (forced on us at work) plugin that makes it really easy to work with a version control system. I imagine it does even nicer for Subversion and CVS a like. Give you a panel to see a table of who has what checked out and makes it easy to checkin all your stuff in one go.

The general interface is quite nice once you get used to it. Tab panels for everything, and if you double click it makes that tab full screen. List of function in the current file. It also has a panel that lists all the warning as and errors for all the files in your whole project. If you tell it what your include path is this makes it really easy to pick up problems for large projects.

The only bitch is that its written in Java, which does mean it will run on every thing, so requires about 182megs to get going for PHP with all the extra plugin bits. Also its complicated to get it going got PHP (there is a step-by-step guild to installing that really helps, and once setup it will downlaod upgrades to all installed plugins). Also its code completion for native PHP functions is non-existent (it does do it after you have typed it in and you hover your mouse over the function name).

Overall a nice IDE. I tried to use Komodo again and found I liked Eclipse better, and it free!