CSS System Colour Names (css system color names)

I’m building myself a new admin interface for use on my projects, and wanted to use css system color names so that I could design a more “native” looking admin area. Note: The colours are actually rather boring… So I looked up this HTML table of CSS2 System Color Names, as per, I know […]

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 […]

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]

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 […]

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 […]

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 -aliases add:stu,stew [/code] Done. Much quicker than using the sometimes too-slow Plesk panel.

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 [/code] On Plesk 11 If you’re running Plesk 11 you will see: [code gutter=”false”] $ […]

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 -status disabled[/code] Unsuspend a Domain Unsuspend domain via command line Plesk [code]/usr/local/psa/bin/domain -u -status enabled[/code]

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 -j DROP [/code] […]