Linux, Apache, Nginx, MySQL, Javascript and PHP
Use exim and exiqsumm to show mail queued by domain
There are a number of exim commands to see what’s in the mail queue etc; sometimes you need to
Access an element’s attributes with PHP’s SimpleXML extension
The PHP SimpleXML extension makes it easy to work with XML files by creating an object from the XML
Show indexes for a table with the MySQL INFORMATION_SCHEMA
I’ve previously posted how to get the indexes for a MySQL table using a "SHOW
How to use letters and roman numerals instead of numbers in an HTML ordered list
HTML ordered lists <ol> use normal numbers by default but it’s also possible to use lower or
Get MySQL status information from the command line
This post shows how to get some MySQL status information from the command line on a Linux/Unix machine
Use jQuery’s select() function to automatically select text in an input field
By default, when a user clicks a text input field in an HTML form the cursor is positioned in
Get the Feedburner original link with PHP
Many websites use Feedburner to serve their RSS feed. The link from the Feedburner feed to the article is
Wifi drops when plugging in MiniPort-DVI Monitor to MacBookPro Thunderbolt port
We’ve just bought a new MacBookPro Retina 13" Late 2013 and when plugging in an external monitor to the thunderbolt
Get the mouse co-ordinates with jQuery when an element is clicked
My last jQuery post looked at how to get the mouse co-ordinates with jQuery as
Get the mouse co-ordinates with jQuery
jQuery’s mousemove function can be used to track the mouse x and y co-ordinates either for an entire document
BigCommerce – The Easiest Way to Sell Online
BigCommerce is an all-in-one, feature rich ecommerce platform that allows even the most novice of user to create a
Get all variables assigned to Smarty – Part 1
I’ve been working with the PHP templating engine Smarty at a new job and needed to be able to
How to use static variables in a Javascript function
There may be times when a static variable is needed in a Javascript function; static variables maintain their value
Extract domain, path etc from a full url with PHP
PHP’s parse_url function makes it easy to extract the domain, path and other useful bits of information from
MySQL CONVERT_TZ returns null
MySQL’s CONVERT_TZ function converts datetime values from one timezone to another. If the timezones haven’t been set up
Style an HTML input field by name and type
If a form has a number of input fields they can each be styled using the element’s "name&
Minify Javascript and CSS with YUI Compressor
I’ve previously posted about minifying Javascript using a PHP port of Douglas Crockford’s JSMin Javascript
Calling $(document).ready multiple times with jQuery
jQuery’s $(document).ready() function runs the code within that function after the DOM is loaded (I’ve written about this