ewengcameron.com

programming

jQuery bug when using the change() event on a checkbox in IE

by necrobutcher on Apr.02, 2009, under programming, true

in jQuery on IE, the change() event doesn’t fire until you click out of the box after changing the value.

work around is to use click() instead of change().

hopefully this will get fixed with the new version. its been an issue for 2 years now …

2 Comments :, , , more...

number one result for the UK and global in well under 6 hours

by necrobutcher on Mar.31, 2009, under programming, true

not bad at all

That’s using the wordpress SEO extra and using a long but competitive search term.

Leave a Comment :, , , more...


MySQL – Error Invalid parameter for CSV import: Lines terminated

by necrobutcher on Mar.26, 2009, under programming, true

If you’re in the same position as me and stuck with a big CSV file thats needing imported into a MySQL database, you’ll probably have seen this error.

Error Invalid parameter for CSV import: Lines terminated

The way to get round this is to put a space instead of a “/” in the Fields Escaped By box and you should be sorted.

Replace “auto” with “\n” and you’ll be able to import.

Hopefully saves someone some time.

Leave a Comment :, , more...

having problems resizing multiple images in codeigniter?

by necrobutcher on Mar.13, 2009, under programming, true

weird problem with codeigniter where we were trying to resize an image and then create a thumbnail for it too.

turns out that the $config array only gets initialized once when you call the image_lib library.

fix is to call

$this->image_lib->initialize($config);

before every resize() function.

Leave a Comment :, more...

cannae find it? you are probably too fat!

try looking here:

if that doesn't work, pay a midget to go look for it.

what happened last month