Check out my lovely green padlock! If you didn’t know it already, you can now get FREE SSL certs from https://letsencrypt.org/
Author Archives: hamish
New domain name
Hooray I’ve joined the .nz revolution with my brand-spanking new domain name phpdeveloper.nz Not only is the redundant .co part gone (good riddance!) but PHP Developer is a better description than PHP Programmer. Let the good times roll. I really should write something new and interesting…
Email newsletter HTML/CSS rules
I keep forgetting this rules I made for myself, so here they are. Target platforms: gmail, hotmail, yahoo, outlook 2007, outlook express, iphone mail, android gmail Basically, dont use a stylesheet – do inline styles on divs and spans (trust me – this will reduce your cross-browser issues) Dont use h1, h2, p, etc – […]
UTF-8 setup (again) – for Debian Squeeze
This post is mostly for my own reference – but maybe you will find it useful. Here are my current Linux, Apache, MySQL, PHP settings for supporting UTF-8 properly! Linux —– # dpkg-reconfigure locales I chose: en_NZ.UTF-8 UTF-8 Apache —— edit file /etc/apache2/conf.d/charset uncomment the line: AddDefaultCharset UTF-8 MySQL —– make sure these settings are […]
Speed test: PHP vs Perl vs Python vs Go vs C
Recently I have needed to run a cron job every minute on a high load web server. As am currently most fluent in PHP I naturally wrote my script in PHP. However, as it’s running every minute, I do want it to be as fast as possible. Seeing as the script was very simple, I […]
Ubuntu for mother in law = yay!
As I wrote in previous post, my personal experience trying to use ubuntu as a php development box was very brief! However, i was impressed by the GUI side of things in Xubuntu (ubuntu but with the lightweight xfce desktop), and when my mother in law’s (really!) laptop blew up – I took the opprtunity […]
A brief flirtation with Ubuntu as development box
Recently I’ve been using this awesome persistent version of Xubuntu on my USB pen drive. It’s great for fixing computers, virus scanning, etc. Install Xubuntu 9.04 to a Flash Drive in Windows It even detected my wireless adapter with no hassles – and the awesome thing is that all your settings are saved to disk!! […]
UTF-8 checklist
Character encodings have been driving me insane lately…. – stuff pasted from word wont display properly – funny square characters in the browser – smartĀ quotes from word don’t display properly So here’ s a handy list of things i have been trying. Some things mgiht work for you, some might not. Let me know […]
How to setup hobbit/xymon, including MySQL graphs
Updated 2011-06-20 – updated for ‘xymon’ Setting up xymon client adduser –disabled-login xymon cd /usr/src wget http://downloads.sourceforge.net/project/xymon/Xymon/4.3.3/xymon-4.3.3.tar.gz tar -zxvf xymon-4.3.3.tar.gz cd xymon-4.3.3 ./configure.client (config=server) (user=xymon) (home=/home/xymon) make make install su – xymon -c “/home/xymon/client/runclient.sh start” Install MySQL/Apache Montioring on client 1. Create a mysql user ‘monitoring’, eg: CREATE USER ‘monitoring’@’localhost’ IDENTIFIED BY ‘monitoring’; 2. Install […]
Easy Setup of a CVS server on Debian Etch
I tore my hair out over this for quite a while yesterday. Hopefully this might help someone else (and as a reminder to my self if I ever need to do this again). Ideally I wanted the following scenario: – developer account ‘hamish’ who can read/write to the cvs server – an anonymous account ‘anon’ […]