Thursday, 4 February 2010

Using PHP sessions in a clustered HA apache setup

So you have a cluster of two or more apache servers and want your php sessions to be shared between the different apache servers?

One great solution is to use memcache. It's a Free & open source, high-performance, distributed memory object caching system and can support the mirroring of sessions to multiple memcache servers (which could be on each apache server). Also your sessions are stored in RAM so they are nice and quick too!

This blog post has a nice setup guide. php session clustering with memcache

Wednesday, 6 January 2010

SpamAssassin 2010 issue!

So it turns out SpamAssassin doesn't like the year 2010!

If your running SpamAssassin, then make sure you do this;


Thursday, 10 December 2009

movingmole.co.uk launched

A great site called movingmole launched today. It provides a service to find and compare removal companies with a free, quick and easy search.

Wednesday, 14 October 2009

v1.0.3 of JQuery lockSubmit released

Version 1.0.3 of our JQuery lockSubmit plugin has been released. It adjusts the method used to disable the submit. Improves cross browser compatibility and effectiveness

Friday, 9 October 2009

jQuery plugin : imageTickBox - Change any input checkbox to an image version

Image Tick Box

This is a small unobtrusive JQuery plugin function which allows you to change any input checkbox to an image version while retaining full functionality! It even pre-loads the images to keep it snappy.


Demo
Example 1
Example 2
Example 3
Example 4


Download
jquery.imageTickBox.js.zip


Options
"tickedImage" - Image to be used when ticked
"unTickedImage" - Image to be used when unticked
"imageClass" - CSS Class to apply to the images.


Usage
1 - Download/Extract JQuery
2 - Download/Extract our plugin

3 - Include jquery and the plugin in your page with;
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.imageTickBox.js">
4 - Include a jQuery selector function call. E.g. to apply this to all tickboxes on the page use;

jQuery(document).ready(function(){

jQuery("input:[type=checkbox]").imageTickBox({
tickedImage: "/images/checkbox_tick.png",
unTickedImage: "/images/checkbox_notick.png",
imageClass: "tickbox"
});

});



License
LGPL

Change Log
v1.0 - First Version

jQuery Plugins Project Page
http://plugins.jquery.com/project/ImageTickBox

Donate
Here is a paypal link for if you find this useful and would like to buy me a drink!

Saturday, 5 September 2009

v1.0.2 of JQuery textinput.focus.colorise plugin released

Version 1.0.2 of our JQuery textinput.focus.colorise plugin has been released. It adjusts the method of changing the colour to a CSS based solution.

Find out more

Wednesday, 2 September 2009

JQuery plugin : lockSubmit - stop submit button from allowing doubleclicks

Stop Double Clicks on form submits

...without losing the submit button's name/value in submited form data


This is a small JQuery plugin function which allows you to disable a submit button on the onClick event, while still having the button's name/value passed to the form. It also changes the value of the selected button when clicked to "Please wait..." or any text you pass over to the settings.

This pluging was created because normally if you disable a button with an onClick event, then that buttons name/value pair is not submitted with the form data. So this is useful if you have a submit button on a page which you are checking for being clicked when the form is submitted (e.g. if you have more than one button in a form) and you want to stop any double clicks on the button.


Demo



Download
jquery.lockSubmit.zip


Options
"submitText" - Sets what the new value of the submit is set to on click. This value is not submited, its the original value of the button which is submited.
"onAddCSS" - CSS class which is added to any submit effected by this plugin
"onClickCSS" - CSS which is added to the submit button upon click.


Usage
1 - Download/Extract JQuery
2 - Download/Extract our plugin

3 - Include jquery and the plugin in your page with;
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.lockSubmit.js">
4 - Include a jQuery selector function call. Below are some examples;

Examples

Basic Example
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#someid').lockSubmit();
});
</script>


Apply to all submits on a page;
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(':submit').lockSubmit();
});
</script>


Using Options
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(':submit').lockSubmit({
submitText: "Please wait",
onAddCSS: "submitButtons",
onClickCSS: "submitButtonsClicked"
});
});
</script>


License
LGPL

Change Log
v1.03 - Changed the method used to disable the submit. Improves cross browser compatibility and effectiveness
v1.02 - Add Extra options for CSS
v1.01 - Update to improve different browser compatibility
v1.0 - First Version

Donate
Here is a paypal link for if you find this useful and would like to buy me a drink!

jQuery Plugins Project Page
Lock Submit