Yet another blog (hopefully a useful one though)
martin
This user hasn't shared any biographical information
Homepage: http://www.msinternet.co.uk
Posts by martin
How to get ImageMagick to Convert pdf’s with GhostScript
December 14, 2009 - 5:22 pm
Tags: Code, ImageMagick, php
Posted in Code | 2 comments
Ok, this is one for the nerds. I have spent most of today trying to figure out how to get ImageMagick to convert a pdf file to an image. First I installed ImageMagick fine: > wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz > tar xvfz ImageMagick.tar.gz > cd ImageMagick-6.5.8 > ./configure > make > make install Then I installed the [...]
How to fix PushIt WordPress plugin wp-admin 500 Error
November 14, 2009 - 8:21 pm
Tags: php, wordpress
Posted in Code | 4 comments
We had a client with a mysterious plugin related server error when they tried to access thair admin dashboard with output: /*pushit_user_row_phone_variable_define_start*/ $phone = isset($user_object->phone_number) ? get_user_mobile($user_object) : “not set”; /*pushit_user_row_phone_variable_define_stop*//*pushit_user_row_phone_variable_insert_start*/break; case ‘phone’: $r .= “$phone”;/*pushit_user_row_phone_variable_insert_stop*/ They said that the problem had happened immediately after installing the PushIt plugin. So, we took the usual action [...]
We got Sitelinks!
November 14, 2009 - 8:20 pm
Posted in General, Marketing | No comments
Go to Google and stick in “msinternet” and you will see this: Sitelinks We have miraculously acquired sitelinks after our result. This is an indication that Google sees our site as being unambiguously the most relevent page for the phrase “msinternet”. The funny thing is that we beat Microsoft Internet Explorer 8 hands down. These [...]
We won an Outstanding Achievement Interactive Media Award (Whoop Whoop)!
We are now the proud owners of an Interactive Media Award. The award was for the Trident Housing Association website at www.trident-ha.org.uk . Judged on an international standard we achieved 478 out of a possible 500 points which I think is pretty darn good!
Utility PHP Email Detection Script
November 14, 2009 - 8:17 pm
Tags: email, php, regular expression
Posted in Code | 1 comment
I wrote a little function to check the formatting of an email so I thought I would share it with the world: <?php function is_email($email) { if(eregi(“^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”, $email)){ return 1; } else { return 0; } } ?>
Ajax filled form field errors in firefox and some IE wierdness too
November 14, 2009 - 8:16 pm
Tags: ajax, html
Posted in Code | No comments
I spent ages looking for the answer to this one and it ended up really simple so I thought I would share it. We had a web form where a select field was chosen. Then a second select was populated by ajax depending on the value of the first select. All pretty standard except that [...]