November 5, 2014 (No Comments) by admin

Here’s a simple javascript to limit the number of characters for the HTML editor nicEdit

placeCaretAtEnd positions the caret at the end when the max length is reached and can be found here

November 5, 2014 (No Comments) by admin

There is usually a time that you got to strip the leading or trailing slashes from a string, typically a directory or address. Deleting the trailing and leading slashes is straightforward with PHP rtrim, and/or the ltrim function(s). Strip trailing slashes

Strip leading slashes:

Strip both trailing and leading slashes:

Note: These […]

November 5, 2014 (No Comments) by admin

So if you’re using a cache on your WordPress site, but you want to make some changes to your JS and CSS files, you’re going to have to stop them being cached each time you edit them. How do you do this simply? By having the querystring on the JS and CSS files update each […]

October 10, 2014 (No Comments) by admin
Repository->Repository Settings

I got this error running sourcetree when trying to push a commit, its pretty obvious that I haven’t defined a user name in the global config or something was wrong with it. Here’s one way to fix this error, follow the steps below:

October 5, 2014 (No Comments) by admin
Example of a Wordpress Brute Force Attack

As the number of brute force attacks are on the rise, its best to protect your wordpress blog with these 2 simple pieces of advice: Use a strong password, I mean really, I could probably find your dogs name by reading your facebook, its not exactly secure is it? Use this cool plugin which restricts […]

October 1, 2014 (No Comments) by admin
Wordpress- the unavoidable web framework

There comes a time in your wordpress development that you will need to create some custom code to change an aspect of your wordpress site, (hey! you could always chuck it in the footer, right?) but if you want to do things properly, then you best make a plugin. Firstly create a folder in wp-content/plugins […]

November 5, 2014 (No Comments) by admin

Here’s a simple javascript to limit the number of characters for the HTML editor nicEdit

placeCaretAtEnd positions the caret at the end when the max length is reached and can be found here

November 5, 2014 (No Comments) by admin

There is usually a time that you got to strip the leading or trailing slashes from a string, typically a directory or address. Deleting the trailing and leading slashes is straightforward with PHP rtrim, and/or the ltrim function(s). Strip trailing slashes

Strip leading slashes:

Strip both trailing and leading slashes:

Note: These […]

November 5, 2014 (No Comments) by admin

So if you’re using a cache on your WordPress site, but you want to make some changes to your JS and CSS files, you’re going to have to stop them being cached each time you edit them. How do you do this simply? By having the querystring on the JS and CSS files update each […]

October 10, 2014 (No Comments) by admin
Repository->Repository Settings

I got this error running sourcetree when trying to push a commit, its pretty obvious that I haven’t defined a user name in the global config or something was wrong with it. Here’s one way to fix this error, follow the steps below:

October 5, 2014 (No Comments) by admin
Example of a Wordpress Brute Force Attack

As the number of brute force attacks are on the rise, its best to protect your wordpress blog with these 2 simple pieces of advice: Use a strong password, I mean really, I could probably find your dogs name by reading your facebook, its not exactly secure is it? Use this cool plugin which restricts […]

October 1, 2014 (No Comments) by admin
Wordpress- the unavoidable web framework

There comes a time in your wordpress development that you will need to create some custom code to change an aspect of your wordpress site, (hey! you could always chuck it in the footer, right?) but if you want to do things properly, then you best make a plugin. Firstly create a folder in wp-content/plugins […]