Archive for July, 2007

My best Wordpress plugins

Monday, July 30th, 2007
No Gravatar

Here are a few of my Wordpress plugins that I can’t do without. It is by no means conclusive, just my personal preference.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


bash - Argument List Too Long

Sunday, July 29th, 2007
No Gravatar

I’ve got several scripts that have been failing recently due to the high number of files in a directory.

Say for example, my site wide spamassassin Bayes learning script that runs nightly, it has started failing sometimes when a lot of spam has been caught by users.

I’d see

bash: /bin/rm: Argument list too long

A fix would look like this

for i in /your/directory
do
rm -rvf $i
done

find would probably also do the same job.

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


KB_CAPTCHA - CAPTCHA Image Generation in PHP

Saturday, July 21st, 2007
No Gravatar

Introduction

KB_Captcha is a simple PHP script to generate reasonably safe CAPTCHA image to secure any public facing web application.

KB_Captcha offers the user a whole selection of options;

iCalendar Generation

Friday, July 20th, 2007
No Gravatar

One of my clients requested that the CRM applicationI wrote should interact with Outlook Calender.
For example, when adding a “Next Call Date” on the web based CRM application, the user’s calendar is updated in Outlook so they are reminded even when not using the CRM application.

It should work for any VCalendar aware application, like Thunderbird & Lightning or Sunbird.
Heres how I did it, (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Protoculous - Prototype and script.aculo.us

Friday, July 20th, 2007
No Gravatar

An unknown Frenchman did a great job at combining and compressing Prototype & script.aculo.us into one ultra-small single Javascript file.

At the time of writing he is on version 1.0.2 which includes Prototype 1.5.1 and Scriptaculous 1.7.1 beta 3
The Protoculous file size is 54.6KB

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Web 2.0 Summarised.

Thursday, July 19th, 2007
No Gravatar

fos Web 2.0 Summarised.

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Angry Heron @ Sale Water Park

Thursday, July 19th, 2007
No Gravatar

dsc_1945.JPG

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


CAPTCHA Image Generation Part 2

Thursday, July 19th, 2007
No Gravatar

A quick morning hack - I added some random lines to try and confuse the automated processes. Its probably still not very secure but it’s a start!

Add the following code below the last imagettftext() line.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


CAPTCHA Image Generation

Wednesday, July 18th, 2007
No Gravatar

I couldn’t find a very good CAPTCHA generation script in PHP, all the ones I looked at were ugly, over complicated or just rubbish! So I decided to write my own.

They may not be the most secure but at least they look decent!
I will progress this code over time to make the images and code more robush and secure. For now, it is just my ramblings scribbled down.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


JPGraph Part 1

Wednesday, July 18th, 2007
No Gravatar

I really like JPGraph now. For too long I hated it as a clunky, bloated rather useless graphing library (Sorry!), but now I like it. Really like it.

Over the next few months I’ll be doing a series of articles on using JPGraph.

For now, heres my favourite feature at the moment.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo