Sponsored Links

WordPress: Increasing memory allocated to PHP

WordPress logo

If on your WordPress Dashboard you are seeing an error something like this:

Fatal error: Allowed memory size…

try adding the following to the wp-config.php file in the root directory of your blog:

define(‘WP_MEMORY_LIMIT’, ’64M’);

WordPress and the “Add to foursquare” button

foursquare logo

I have been enjoying playing with foursquare lately, and wanted to add the “Add to foursquare” button to my Cape-hike.co.za [...]

Skype Message editing

Skype logo

I always try and keep my spelling tidy: when using any IM application, I usually retype words I mis-spell, prefixed by ** to indicate a correction.

So if you are a Skype user, and hate watching your spelling errors travel slowly up the IM window hanging their serifs in shame, help is at hand!

Skype message [...]

Embedding a PDF in a web page

I recently did some work for a friend who wanted to display a PDF on a website. Rather than display a link to download the PDF, or open it in a separate browser window (or tab), I used the <embed> tag.

Simply use the embed tag to embed the pdf as an object in the page. [...]

Create a Twitter Feed Widget for your blog or website

Twitter logo

I recently implemented this handy, easy-to-use, configurable Twitter feed Widget on www.clearer .co.za

Its real simple:

Log in to your Twitter account at www.twitter.com
Click on the Goodies link in the footer
Click on Widgets
Select the “MyWebsite” option on the left, and click on “Profile Widget“
Your Username should appear in the relevant input field – change it if you [...]

PHP email address validation

PHP logo

I discovered today that the PHP email validation in my User class was not allowing dashes…

A quick search on the internet came up with:

function is_valid_email($email)
{
$result = TRUE;
if (!eregi(“^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$”, $email))
{
$result = FALSE;
}
return $result;
}

Thanks http://snippets.dzone.com/posts/show/1504

Stop the Skype plugin from breaking your design

Skype logo

It took me a bit of searching to find this line of code to stop the Skype browser plug-in from automatically styling all the telephone numbers in your [...]

MySQL sub-query

I have blogged before about simplicity in code – how the simplest solutions are usually the best, and I normally put it down to [...]

MySQL simplicity

MySQL logo

I love the fact that the best solutions are almost always the simplest!

I spend a lot of time sanitising data. I use Excel a lot of the time to perform most of the work – but I am slowly starting to use more and more SQL in my MySQL databases to do the work.

 

Today after [...]

favicon generator

I am usually really quick to share links to cool sites and utilities, but I am somehow hesitant to share this one… it is just too cool!

A “favicon” is the little icon that you will see appear in various places in your browser – if it is available it will replace the standard Firefox / [...]