If you’re half way through setting up Android SDK on Fedora 14 (and I imagine all other versions apply) on a 64bit install you’ll get some fairly vague messages back from Ant. Fortunately, they’re quite easy to fix once you know how.
Read the rest of this entry »
Android SDK on 64bit Fedora 14
May 23rd, 2011wordpress rewrite rules for lighttpd
April 6th, 2011I recently tried to tidy up my hand crafted rewrite rules for wordpress/lighttpd and after a very quick google I was taken to an article titled “URL rewriting for wordpress and lighttpd“. Clearly, I thought my search was over. However, I couldn’t help but notice that one of my previous ramblings PHP was resulting in a blank page being rendered.
Combining Zend_Db_Select and Propel 1.3
April 18th, 2010Propel 1.3 has served me very well over the past few years and I’m absolutely confident that recent projects would not have been delivered so quickly without it. However, when stuff gets a little crazy, you need to hydrate your objects using hand-crafted SQL. Building up a SQL in a variable and passing it between functions can be a nightmare to get right. Since I was already using Zend Framework, I decided to try and get Propel objects back from a Zend_Db_Select generated query. The Relational API in the upcoming 1.5 release of Propel would make this possible without the need for hacks and workarounds…
Avoiding temporary array assignment in PHP
September 3rd, 2009Even though I’ve been developing with PHP for a number of years, I still enjoy discovering new ways of working. Even though the stdClass object is about as basic as you can get, it’s never struck me as being a worthwhile tool. Read the rest of this entry »
MySQL Replication and disappearing relay logs
September 3rd, 2009A recent reboot of a server highlighted an issue with MySQL 5.045 on CentOS 5.3. On this particular setup, MySQL seems to place relay logs in /var/run/mysqld/. Unfortunately, this will mean that when the machine is rebooted, the relay log will get deleted. Read the rest of this entry »
Quick guide to Linux daemons in PHP
July 6th, 2009This guide was originally written for a PHPNW meetup – more information on the group is available here
Whenever we want to carry out lengthy tasks or process large batches of data, we should consider executing that process in the background. The most typical way of doing this is through “cron jobs” – tasks which are scheduled to be executed at regular intervals; every 2 minutes, or at 6am every Sunday. Alternatively, you can have the web browser instigate the task by using something like shell_exec(). This guide presents a third alternative, system level daemons.
Read the rest of this entry »
Centos 5.3 net install on VirtualBox
July 1st, 2009I wanted to install CentOS 5.3 as my new development platform (upgrading from 5.2) and I thought I’d take the lazy route and use the net-install ISO. Although the 5.2 net-install worked flawlessly, the 5.3 failed at the same point time everytime (while downloading “minstg2.img”).
MySQL Replication over SSL
June 19th, 2009A new project requires MySQL replication to be carried out over the internet. My first thought was to use stunnel, which I quickly implemented. This appeared to work perfectly (after some iptables configuration). However, I found out later that MySQL supports replication over SSL natively. I have made the assumption (perhaps mistakenly) that a native solution would be better (more reliable?) than a wrapped solution. Getting MySQL replicating over SSL was perhaps about 30 minutes work in total. This could’ve been cut down to about 10 minutes if it wasn’t for some documentation-related issues.
Read the rest of this entry »
wordpress, ahoy
June 19th, 2009For the past 7 years I have had good intentions for this domain. All I wanted was to fill it with useful stuff. Unfortunately, I was always busy playing games with work to actually put in enough time to develop a full CMS with useful tools and a nice user interface.
Along comes wordpress and very deftly puts to shame any half-baked CMS I ever came up with.
Hopefully, wordpress will bolster my rather stop-start blogging career.