kieranbarnes Independent PHP, WordPress & CubeCart Programmer

DatePicker using Prototype and Scriptaculous

Posted on August 31, 2007

Posted by Kieran

The French have come up with something I've been looking for a long time - a Prototype/Scriptaculous based DatePicker.

665+ Ajax/Javascript/Dhtml examples and demos to download

Posted on August 25, 2007

Posted by Kieran

There is a new resouce called AjaxRain that offers 665+ Ajax/Javascript/Dhtml examples and demos.

The best feature is you can filter results using the tag cloud for examples the just use your library of choice.

SpamAssassin: How to protect against current spam attacks

Posted on August 21, 2007

Posted by Kieran

Christopher J. Buckley has posted a good article on protecting against current spam attacks. Go on, take a look.

Filed under: Geeky, Linux No Comments

Setting up awstats

Posted on August 17, 2007

Posted by Kieran

I recently setup awstats on two Intranet servers for a client. Local web server log analysis software seems to be going the way of the Big-eared Hopping Mouse.

  • Analog hasn't been updated in forever.
  • Webalizer hasn't been updated in forever.
  • Firestats is fantastic, I use this on Internet based sites with Google Analytics
    * It's AJAX just doesn't like mod_auth_ntlm or the other way round.

PHP Geo-IP Location in 4 lines

Posted on August 16, 2007

Posted by Kieran

Want to look up IP addresses to a geographical location? Firstly, download maxmind_geoip.php and GeoIP binary database from MaxMind. I copied them to a universal location on a server so I can use it across applications.

Tagged as: , , , Continue reading

SpamAssassin site wide spam learning

Posted on August 13, 2007

Posted by Kieran

SpamAssassin is great. I wouldn't run a mail server without it. Obviously it isn't 100% from day one, thats where Bayes learning comes in. Yes, it auto-learns, but some times we want to convince it a little more.

140 Named Colo(u)rs

Posted on August 13, 2007

Posted by Kieran

The ColorSchemer guys have done a great job at listing all the browser-supported colo(u)rs by their name, rather than their Hex or RGB value.
If you are a coder, like me, it is a great reference for quickly picking colours when mocking up a web application.

Tagged as: Continue reading

Anonymous apache & PHP

Posted on August 9, 2007

Posted by Kieran

Like to be conspicuous? Like me.

Then use the  ServerTokens and expose_php options. On a production web server I generally set these two options, pretty much stops and zero day hack attempts and other such nonsense

Cheat Sheet – Seconds to real time

Posted on August 4, 2007

Posted by Kieran

Caching stuff? Expiring stuff? Crap at math(s)? Too lazy to boot up a calculator?
Here's a cheat sheet of seconds to a more readable time!

Filed under: Geeky Continue reading

ADOdb’s GetMenu() function moreAttr bug

Posted on August 2, 2007

Posted by Kieran

I'm sure there is a bug with ADOdb's GetMenu() function

The documentation suggests 'use $moreAttr to add additional attributes such as javascript or styles.'

Page 1 of 212