Blog


Postcode Anywhere Address Lookup Callback

The new Postcode Anywhere configurator is easy to setup, mapping their address fields to your form fields is as easy as using a nice simple interface – the greatest of ease! Trouble is with this way, there is no way of using a callback i.e when i have successfully selected an address from the select […]

Read more...



Stop Safari auto linking numbers

To stop Safari on iPad / iPhone auto linking numbers, use this meta tag: [code] <meta name="format-detection" content="telephone=no" /> [/code]

Read more...



disable user selecting text

  • November 20, 2012
  • CSS

How to disable user selecting text using CSS. Just about every vendor prefix used here as the browsers continue to implement features from the CSS3 spec. [code] -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; [/code] Sadly, Opera doesn’t seem to support user-select. I use this on input labels to make […]

Read more...



jQuery UI slider change step above certain values

I needed a way to change the step increments on my jQuery UI slider when the value was above a certain number. For instance, I have a range slider from £0 – £2000. Steps of £10 increments are needed until the user slides up to £200, where the step should change to £100 increments. jQuery […]

Read more...



add mail alias in plesk command line

To add a mail alias to an existing user on a Plesk server using the command line. [code] /usr/local/psa/bin/mail -u stuart@domain.com -aliases add:stu,stew [/code] Done. Much quicker than using the sometimes too-slow Plesk panel.

Read more...



Get mailbox info on command line Plesk

Using the command line is sometimes a lot quicker than fannying around with a panel in the browser. So to grab a quick summary of a users mailbox, the following one-liner will show all you need: [code] /usr/local/psa/bin/mail -i user@domain.co.uk [/code] On Plesk 11 If you’re running Plesk 11 you will see: [code gutter=”false”] $ […]

Read more...



Suspend / Unsuspend domain via command line Plesk

To suspend or unsuspend a domain on a Plesk server via the command line, we use the Plesk command line tools. Most are just one liners :) Suspend a Domain Suspend domain via command line Plesk [code]/usr/local/psa/bin/domain -u stuartsdomain.co.uk -status disabled[/code] Unsuspend a Domain Unsuspend domain via command line Plesk [code]/usr/local/psa/bin/domain -u stuartsdomain.co.uk -status enabled[/code]

Read more...



Block IP address from connecting to server using iptables

To block IP address from connecting to server, i use iptables. this morning, i noticed some idiot trying to log into my server over and over, and so a quick iptables line will kick them off (until they change their IP and try again of course). [code] /sbin/iptables -I INPUT -s 74.63.223.222 -j DROP [/code] […]

Read more...



iphone disable auto capitalisation

By default, the iPad, iPhone etc will always capitalize the first letter when entering text into inputs, which is sometimes totally unwanted and a little bit annoying. We also take care of the autocorrect annoyance too. So, ghw to stop capitalizing the first letter on iphone & ipad inputs? Some non-standard attributes are required, autocapitalize […]

Read more...