Search results for: “”

  • The Zend Framework – part 1

    I’ve been playing with the Zend Framework and have started a little How-To mostly for my own benefit. http://bealers.com/how-to/using-the-zend-framework-part-1/

  • WordPress PHP syntax highlighting

    I’ve been writing code in my spare time again and have been wanting to blog little snippets but WordPress munges any code that I add into the post body. I googled for wordpress plugins and most didn’t support WP 2 or were a bit tame but then look what I found. The iG:Syntax Hiliter by…

  • PHP Perl Compatible Regular Expressions cheat sheet

    A great one page cheat sheet for PCRE’s can be found over on the PHP Guru website. http://www.phpguru.org/article.php?ne_id=67

  • Building a PHP Development server from scratch

    ***This post is very out of date. See here for a newer version written in 2013.*** Following these instructions will get you a Debian based PHP/MySQL development server set-up with the ability to have multiple developer sandboxes that are accessible from a remote machine on the local network, using Samba. Time needed < 1hr INSTALL OPERATING SYSTEM…

  • Creating a Subversion repository

    This item assumes that you already have svn installed and this is the first time you’ve created a repository for this server (else leave out certain bits) All items here worked for me on my local development server where I’d already installed subversion but up to now had only been using it as a client to check…

  • Piano music from the 2nd episode of 2nd series of Battlestar Galactica

    I’m hooked on the Battlestar Galactica remake. To date, I’ve seen everything up to the 2nd Episode of the 2nd series. This episode is called the Valley of Darkness, not to be confused with the Valley of the Shadows by Origin Unknown, which is slightly different. In this episode, Starbuck drops by her apartment in…

  • Akai M-8 Reel to Reel Tape Recorder

    I write this listening to my Akai M-8 valve powered reel to reel tape recorder. It’s playing a random tape that I bought on eBay for a fiver entitled ‘Genesis: And Then There Were Three’. Luckily for me that was obviously recorded over and it contains Jean Michel Jarre’s Concerts in China which I’ve not…

  • Firefox on my PDA

    I’ve a Dell Axim x30i and occaisionlly I use it to look at things on the int3rweb. Windows 2003 Mobile Edition comes with IE (suprise suprise) but I’d rather use something else. Minimo, sounds like the perfect replacement, though it’s still heavily in development (I guess) and on my first install seemed to be slow…

  • Windows 2003 Mobile edition and Orange GPRS via Bluetooth

    I have a Dell Axim x30 and a Motorola v3 and I want to connect to the int3rweb using the PDA via the phone sometimes. I was missing the modem string, so it didn’t work. Anway, mostly for my own future reference, here’s a quick list when I need to do it again (e.g. on…

  • Self employed for 3 years

    Exponetic was three years old this week. Originally Acksys Ltd, it was set up after Vardus – the company that I worked at for 3 years as a developer and Sysadmin – went bust. I managed to persuade around 20 clients to come with me and serviced them independently from the spare bedroom. It was…

  • Using rsyc to mirror a subversion repository

    At work we use subversion to manage our code, we also use Trac to manage bugs which has handy hooks into subversion. Unfortunately they are on different (internal) servers. This is quick What I DidTM to get the live svn server (taipan) to sync with the Trac server (apu) taipan: svn server (Debian 3.0 woody)apu:…

  • Getting a PHP CLI on Windows

    I want to do some scripting to parse the contents of the iTunes XML library and ultimitely transfer the contents to a remote server. For my desktop I use Windows XP because It Just Works most of the time and I reckon that doing what I want under DOS is probably impossible, I don’t know…

  • WP-ShortStat: wordpress analytics plugin

    A very easy to install WP plugin that gives you good range of basic stats in your admin screen http://jrm.cc/archives/blog/wp-shortstat/

  • PHP backwards compatibility

    Today I was writing some code – which is actually suprisingly rare these days – and I was getting an error about a particular function not existing in PHP5, array_diff_key() Luckily some body already thought about this and has ported a lot of the older functions into PHP classes that get bundled with Pear (which…

  • MySQL: master’s binary log is corrupted

    At work I’ve a MySQL 4.1 Master -> Slave set-up over our VPN as a backup and for local data processing. Today we realised that it’d not been replicating for days, @rse. Running “SHOW SLAVE STATUS G” on the slave showed: mysql> show slave status G *************************** 1. row *************************** Slave_IO_State: Master_Host: 10.0.2.136 Master_User: replicate…

  • PHP XML-RPC timeout

    If you’re using PHP to do XML-RPC and are getting odd issues with a timeout of around 60 seconds then you may want to look at the PHP.ini setting: default_socket_timeout this is by default set to 60 seconds, no-where near enough time for what I was using it for. Note: I’m using the PEAR XML-RPC…

  • Google Maps

    Easily the best web application I’ve ever seen: http://maps.google.co.uk For starters type in ‘Curry E1’, when that’s loaded, type in ‘Curry E2’, also note that the map is draggable at all times This is what I call a web application, I’m glad I don’t have shares in Streetmap or Multimap!

  • Global server load balancing

    I need to make sure that a particular host is available 24-7/365 for an application that my company is building. There is loads of information on local clustering but not much on balancing over networks in various physical locations My posting to GLLUG has been the best source of information so far: This looks good…

  • Mozilla Extension writing

    I’m going ot have a go at writing a Firefox extension. The upside is that I have an idea, the downside is that it looks like after 6+ years being a web developer I’ll actually have to know more than 10 JavaScript methods. I have some time off over Xmas so I’ll have a pop…

  • WP wishlist

    (I will keep re-editing this post and resetting the timestamp) I assume (and hope) that some of these will be solved by using pugins. 1) Description per category 2) Breadcrumbs for the embedded categories 3) Gallery and random image showing on the LHS or RHS 4) Decent email -> post script 5) Recent posts list…

  • Fix code posting

    1) needs greater margin and to stand out 2) Source code highlighter would be excellent 3) Seems a bit dodgy parsing, some tags get eaten.

  • XML-RPC joy

    I need to hack wp-keitaimail to work with wordpress 1.3 as it seems the WP 1.3 uses a newer XML-PRC library, Incutio XML-RPC Library IXR It looks as if I’m not the only person to have had to reverse engineer something similar, a quick google came up with http://www.bbcity.co.uk/entry/1585 I’ll write a few example scripts…

  • PHP::mysqli_*

    http://uk2.php.net/mysqli The mysqli extension allows you to access the functionality provided by MySQL 4.1 and above. More information about the MySQL Database server can be found at http://www.mysql.com/ This is news to me! I wonder if the PEAR DB_MYSQL that we are using is taking all of these new functions into account? Although I can't…

  • ~/.vimrc

    I was playing around with a virgin DSVR (vs300) account for a few hours during the week, just getting php and MySQL ready for use. Vi was really annoying, giving me the dreaded A B C D routine when the arrow keys were pressed in insert mode. vim in compatible mode, I could’nt find a…

  • Sharp Zaurus, Bluetooth, GPRS and a Nokia 6310i

    The document describes the steps that I took (minus all the wrong ones, and there were many) to get a successful GPRS data connection using my Sharp Zaurus PDA, a Nokia 6310i, a Socket Bluetooth card and an O2 (UK mobile phone operator) GPRS data account, I hope it helps you. I’m assuming that you…

  • Get your Palm III talking to your phone by Infrared

    This article was first published in mid-2000 on Bealers.com, but this is a few years before a blog existed here. [Nokia 7110, Palm III and a BTCellnet SIM with Data enabled] What I did: 1) Upgraded to OS 3.3 2) Upgraded my IrDA stuff from Palm 3) Followed these steps 4) On phone 5) On…

  • File uploads made easy.

    Every time I’ve written some code to upload a file, either to send it off as an email attachment or as an image for some dynamic content piece, I’ve always meant to write a few functions so I don’t have to write the code again. Well, people on the Back-end.org support board have been asking for the…