Codeistry

Archive for the ‘Technical’ Category

9 Steps to Improve your small business website

Thursday, March 26th, 2009

As a web designer & developer, I see a lot of websites, many of them belonging to small businesses. I’m also an independent, running my own business – my website is my shop window, so this subject is close to my wallet heart. There are some common things missing in a lot of the websites that I look at, things that would really improve the website and make it work harder for its owner. Fortunately, most of the missing bits are fairly easy to add.

This list is intended to make you think about your own website and give you practical, actionable steps that you can take right now to improve things. None of these things are difficult and most of them can easily be done in an hour or two. Print this off, mark the ones that you think you need to work on, and tick off one a week.

See the 9 Steps to Improve your small business website article for the steps!

Pasting from Microsoft Word into WordPress or MODx

Monday, February 16th, 2009

I’ve put a new article up in the Codeistry Help section which covers troubleshooting and fixing issues you get copying & pasting code into WordPress, MODx or other web based systems from Microsoft Word. Just in case anyone else gets caught out by this, here’s the deal:

When you copy & paste from Microsoft Word, into web-based systems like WordPress or MODx, MS Word tries to bring it’s internal formatting along for the ride. All text in MS Word is styled in some way – fonts, font sizes, alignment, etc… so when you copy & paste it into your CMS, blog or whatever, this formatting comes along too, like an invisible hitch-hiker… See the article for the rest!

MODx Snippet: New version of Wayfinder

Wednesday, January 7th, 2009

Good news everyone! During my development travails, I’ve created an updated version of Wayfinder that fixes two issues and adds two handy new features!

Fixes

I’ve incorporated this fix which makes the hereClass work properly with weblinks in the menu and I’ve fixed the SQL query to work around the MySQL 5.0.51 sorting bug.

New Features

lastRowTpl

I’ve also added a new parameter called lastRowTpl which allows you specify a chunk to be used for the last menu item output. It works the same way as all the other wayfinder tpl’s and defaults to using rowTpl is it isn’t specified.

It’s very useful for little menu’s that currently look like this if you do them with Wayfinder:

item1 | item2 | item3 | lastitem |

and should look like this:

item1 | item2 | item3 | lastitem

Odd & Even classes

Finally, I’ve added support for even & odd classes on rows. These work like all the other wayfinder classes – you specify a class name in the parameter and this will be added to the wf.classes placeholder. These ones are only output on the appropriate rows, though – and you don’t have to specify both if you don’t want to – it’ll still work with just one.

These are really useful for menu’s which are supposed to be stripey, with every other item a different colour.

To implement this, I’ve modified both Wayfinder files. You can download the new versions from here (.zip) or here (.tar.gz).

I’m using these on live sites, because I’m a crazy fool, but if we can get some more testing from everyone, maybe this can be added to the repository as a new version and maybe then into the main MODx distribution, so that everyone can share the love.

What do you think – let me know in the MODx forum thread.

New version of MODx CMS out – 0.9.6.3

Sunday, January 4th, 2009

Another pretty sizeable release, despite the small version increment. There are over 100 changes but my personal highlights from the changelog are:

  • Updated AjaxSearch to version 1.8.1
  • Update eForm to version 1.4.4.5
  • Update Jot to version 1.1.4
  • Duplicate TV associations when duplicating a template
  • Allow ‘.’,'-’,’ ‘ and ‘_’ in TV names
  • Amend the top username link to explicitly state a ‘change password’ link instead of just linking the username
  • Added database version to MySQL DBAPI class and to the System Information report
  • File manager can now handle files with illegal url characters (added urlencode escaping).

The latest version of MODx can be downloaded here.

Flexible working

Saturday, December 20th, 2008

Looking down Jones Street, San Francisco, towards Alcatraz islandI’ve been working from San Francisco, CA this week, as opposed to my normal Birmingham, UK. My wife was attending the ASCB conference here, so we decided to make a holiday of it and come together.

Unfortunately, there hasn’t been as much holiday as we’d hoped – as I’ve suddenly got more work than expected – but for me, it’s proved to be a very useful and successful experiment in flexible working.

While I’ve been sitting in our apartment on Sutter Street, I’ve been continuing some web development work for clients in Memphis, TN & done some consulting for a client in London, followed up with a transatlantic training session via Skype.

My wife had a job interview in beautiful and (unusually) snowy Vancouver after the conference, so we spent a day there too. I ended up doing a couple of hours work there, including a Skype call to Memphis, all on my little laptop – which I bought last time I was in Vancouver.

Back in San Francisco now for a few days of proper holiday and then back to the UK for Christmas Eve – it’s been a pretty busy couple of weeks!

Tools for flexible working

There were a load of bits of software that helped to make seamlessly working on the road possible, even easy. My laptop is a HP NC6400 that’s been upgraded to 4Gb of Ram and runs the excellent Ubuntu Linux (Intrepid 8.10). This setup is easily capable of running a full LAMP stack, so I can develop websites on the go. I generally use gedit for code editing, setup basically like textmate as explained here, minus the ruby specific bits.

Screenshot of SpiderOak window, showing device list.I keep a copy of everything – the contents of my /home folders from my desktop and laptop – in the cloud using SpiderOak. This means that I have rolling versioned backups of everything, automatically kept, all the time – this is very handy on its own. It also means that I can download anything from any of my computers, wherever I am, given internet access. This is very useful when you’re away from home, as you know that you can’t really forget anything – if it’s available on your desktop PC at home, then you can access it via SpiderOak.

As a last resort, Ubuntu ships with remote desktop support built in, so I can also just connect to my desktop PC over the internet and use it like I was at home, albeit rather slowly.

I also use Basecamp for project management which means that my clients and I can manage projects together and keep in touch, wherever I happen to be.

Those are the bits of software that really shone on this trip – but all the other little ones that I use everyday, most of which are open source, were also just as useful as they always are: gmail, pidgin/empathy, dropbox, firefox + firebug, tomboy, GnoTime, bazaar, etc…

Codeistry blog is proudly powered by WordPress Entries (RSS) and Comments (RSS).