Category: Dev & Systems

  • Fix Virtualbox Symlinks in Guest share on Windows host

    Note to self In my [[Windows 10 dev environment]] I have a shared folder between the host machine (my laptop) and the guest VM. The ability to create symlinks within the guest is disabled by default in Virtualbox because security. These steps work to fix that. Add this to Vagrantfile Set gitbash to run as…

  • Dear OneNote API dev team

    Hi, I’m only writing this publicly as I don’t know how to get hold of you, and that’s kind of the point. Sure there are many official channels including your website, Uservoice, Stack Overflow and even Twitter, but none of these seem suitable for certain circumstances. If the API goes down, how do we find out…

  • Serious Bash exploit & fix

    There’s a bash exploit doing the rounds that is drop-everything serious. The short version is that it is: related to how environment variables are processed: trailing code in function definitions was executed, independent of the variable name So, a correctly formed command can be used to execute arbitrary code on an affected system; anything running bash.…

  • Anonymise personal data in a WordPress database

    Are you about to get a freelancer to work on your existing WordPress site for you or one of your clients? Here’s a simple SQL script you can run against your dev database to randomise all the user information EXCEPT a test login before you send it over to them. It will also set that test…

  • Tip: keep Vagrant guest additions up to date

    I found a handy plugin this weekend for keeping my PHP development Vagrant VM VirtualBox guest additions in sync: vagrant-vbguest Every time you do a vagrant up it’ll do a check, which might occasionally get annoying if you’re in a hurry, so there’s a config option to disable it on a per-vm basis:

  • Halt all Vagrant/VirtualBox VMs one-liner

    If you’re using Vagrant to control your dev VMs on a headless server it’s easy to lose track of the number of running machines. Here’s a one-liner to gracefully shut-down all of them to free up some resources.

  • Phonegap Android development environment for Windows

    Assuming you want to develop HTML5 apps to run on mobile devices using Phonegap/Cordova then the easiest place to start is Android if you’re a Windows user as you don’t need a separate Mac, you don’t even need a device to test on as there’s an emulator. Anyway, I’ve had to do this three times…

  • OneNote API and PHP

    Recently Microsoft released an API for my brain indexer favourite tool, OneNote. To say I’m excited by the opportunities presented with this API, especially when it has some more features, would be an understatement. What’s really promising is how open the dev team are being about the API’s progress and out how quickly they are rolling new stuff out. The API is…

  • Add item to Windows 8 “Send To” context menu

    Type: Win + R Type: shell:sendto Copy an app/folder shortcut here. Done.

  • Default changes to Vim

    Quick post for future reference. Just installed Debian or Ubuntu, need Vim back to what you’re used to? edit /etc/vim/vimrc uncomment add Tabs are now always two spaces and you can actually see the text. Don’t forget to add export EDITOR=vim to .bashrc either.

  • MySQL one-liner to obfuscate live user details

    Problem: you need to get someone else to set up your web application on another server. Even with a signed NDA it’s not really a good idea to be sending over MySQL dumps containing real people’s details and it is almost certainly against data protection rules. If so, and you need to do it right…

  • Building a PHP development server from scratch

    The other day my dev server completely died, this was rather inconvenient to say the least. 24 hrs later and my new (excellent, very quiet, powerful but only consuming 150w) HP 54L Proliant Microserver was sitting on my desk ready for building. I’ve done a server build so often that I can do it with…

  • Quick access to Windows start-up folder

    Want to find your Windows start-up folder to add a new shortcut? Win+E then clicking through Computer -> C: -> Users -> AppData -> iforgetwhereitisthesedays /a> too much of a drag? Try: Win+R then type shell:startup I found a huge list here, most are a bit pointless but cialis online I can see a use…

  • Keeping your Dropbox secured

    I was building a shared work laptop the other day, something that I would primarily use on building sites for system commissioning. As part of the install I had automatically installed Dropbox along with other useful utilities and then suddenly had the thought. “I won’t be the only person using the laptop. All my stuff is on here in Dropbox. Also,…

  • Windows 8, where did Programs go?

    Just installed Windows 8? Looking for Notepad? Powershell? Windows+R still works, so you could just run the command. Ditto Windows+E to navigate the file system and find it, but in either case that’s not really what you’re after is it?. You want a menu of everything installed, right? You need the search interface. This brings up a…

  • Launchy is awesome

    Mention Quicksilver and the more techie OSX users out there will wax lyrical about its ease of use and its powerful features. They have a point! Windows has always been a bit rubbish when it comes to the CLI, even adding Powershell isn’t a huge improvement. So, enter stage left Launchy. Launchy is fantastic. It’s…

  • ‘svn add’ one-liner

    Simple one-liner that I use when I’ve lots of files to add to a subversion repository:

  • Installing bitcoin on Debian ‘squeeze’

    Instead of being outdoors I geeked out indoors this weekend and amongst other things installed a Bitcoin daemon on a public facing server so I could have a play with the API/RPC features. Below I document the steps I followed as it turned out to be slightly more taxing than the usual apt-get install bitcoind Step 1)…

  • Debugging with PhpED and DBG

    As a long-term PhpED user, I’ve always been well aware that I was not making the most of some of the more powerful features of my IDE, particularly the debugging capabilities. Well this week I finally got debugging set-up properly and as per most of my other blog posts I’m listing what I did here…

  • Multiple project Trac set-up

    I’ve already installed Trac and I now want to be able to set-up multiple projects with the minimum of fuss. My requirements are: The most important job is to get Apache set-up properly. I’m using mod_python so:apt-get install libapache2-mod-python I then set-up a VirtualHost for http://my.trac.url, thus: Note the LocationMatch. From the docs: This will…

  • Vim auto indenting

    I used to get annoyed when pasting text into a Vim window as each line would indent one more tab than the last line. To fix it I used to add set noautoindent in /etc/vimrc, however this unsurprisingly turns off auto indenting, which is a useful feature for normal typing. Today I came up with…

  • Subversion over ssh

    My background task over the Christmas holidays was to ensure that I could give read/write access to a subversion repository situated on a machine within our corporate network so that staff or external contractors can access it via the interweb but without me needing to open up additional ports on our firewall. The server running…

  • Installing Trac on Debian etch

    The following is a no-frills install guide for getting Trac up and running on a Debian ‘etch’ Linux system. The assumption is that you’ve already got mysql and subversion working and have created a subversion repository (tip: apt-get install mysql-server subversion). The first thing that we need to do is install Python, easy_install and the…

  • MySQL replication

    More brain dumping, this time after setting up MySQL on my test server to replicate offsite as the data on there is becoming important. Both machines are running fully updated and upgraded Debian Etch and MySQL 5 as a Debian package with identical copies of the MySQL databases in /var/lib/mysql/. On the master I: I…

  • Search and replace multiple files with sed

    Ok, if you ‘do’ Linux, then you’ll probably already know this one. I did, kind of, but had to Google to remind myself of the exact chain of commands. So here I am writing it down so it’s easier to find next time. In my case, I had a load of Apache conf files where…

  • Moving multiple subversion repositories

    I needed to migrate all of our subversion repositories from an overworked machine onto a new dedicated machine. As I had about 30 repositories to copy over, I didn’t fancy doing each dump -> copy -> create -> import manually, so I came up with the following. Which, amazingly, worked the first time. I’d say…

  • A Blank WordPress Theme

    I’ve just uploaded a blank WordPress theme called Naked that I built to assist those (like myself in the past) who have a need to quickly roll-out a WordPress theme with a custom look and feel but may not necessarily have the time to start from scratch. It is purposely very simple and basic, but…

  • Removing DOS linebreaks from your files using Vim

    This morning I’m debugging an issue on a script that gets cronned every minute. I’ve a shell open on the server and the file in question open using Vim and I notice each line has a trailing ^M…. Aargh the dreaded DOS linebreak. Dusting off my rusty vim-foo I simply do a search and replace…

  • The Bristol Digital Media Scene

    I was in Bristol for a few days earlier this week for Skillswap (which my company sponsored) and the UWE Web Developer Conference; both were excellent events so kudos to Laura and Dan & team respectively. Being at these events and rubbing shoulders with many smart people passionate about their particular corner of our industry…

  • Setting PHP error reporting from a vhost or .htaccess

    Here on our dev servers, we turn PHP error reporting full on so we get to know of any issues with our code well before it hits production (where errors are turned off). This does, however, cause problems with older legacy sites that generate reams of warning errors because the developers were slack and –…

  • Symfony’s most popular plugins

    Francios a core member of the Symfony team recently blogged about the 20 most popular plugins of the Symfony project based upon page views. That list is: I find it very interesting that the ‘simple’ ones are all in the top 6 with the CMS one – which is very new – already taking up…

  • installing the Symfony plugin sfSimpleCMS

    I was recently asked if I’d sucessfully got the Symfony plugin sfSimpleCMS working and I’m afraid my answer was no. I had tried briefly when preparing for my talk, but something didn’t work and I carried on with other things. Being reminded of it and having an hour to kill before I head off to…

  • Superb Javascript lectures

    As someone doing more and more frontend development using javascript I’m trying to shore up my knowledge a bit. For example some of the shortcut syntax I wasn’t sure about and I knew I could do with more backgound on how the language deals with objects. With this is mind I’m half way through Douglas…

  • Things that suck about Mac OS X

    I recently bought a Mac, and today was the first day that I only had a Mac on my desk (as I took the Windows PC to use at home). After a week or so of build-up to today, using it more and more, I think I’m turning the corner and whilst I did manage…

  • Updated: PHP Debian development server how-to

    With the recent release of Debian Etch to stable I’ve updated my aged Building a PHP development server article. In it I finally admit that Apache 2 exists plus I fix an embarrassingly large amount of typos. Hopefully it will be useful to someone.

  • Simple hack to get PHP to install on Etch with Apache 2

    I was stuck for a few mins just now when trying to do a ‘make install’ for php 5.2.1. I was getting the following error: apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file.. apxs:Error: At least one `LoadModule’ directive already has to exist.. make: *** [install-sapi] Error 1 As you can see the assumption is that…

  • Debugging Javascript in IE7

    Broken Javascript in IE *really* sucks as one gets really obscure error messages and alert(); becomes your only friend, or so I thought. I've recently done quite a lot of javascript DOM work for a site including some AJAX stuff and whilst it was a pleasure to develop in Firefox using Firebug, I'm now getting…

  • Flush the qmail queue

    My secondary mail server (that runs qmail) had a load of email queued up today that I needed to flush. Googling comes back with people saying run qmail with daemontools then you can use on of the nice qmailctl scripts to do a 'doqueue'. Needless to say I'm not running with daemontools (my primary is),…

  • Display PNGs with Alpha Transparency in IE6

    I've been working on a site that'll be launching in the new year that contains its share of contemporary web technologies (look, roll your eyes if you want but I managed to avoid the W2 word); it also has its fair share of subtle drop shadows which have to work over a stripy background. Initially…

  • Symfony and AJAX

    I've been playing with the AJAX support in Symfony this weekend and I'm blown away by how easy it is. Today I put together a detailed/summary view switcher for a list of items coming from a database with a (script.aculo.us) fade in/out effect and I didn't need to write one line of JavaScript. Now that's…

  • Subversion repository creation shell script

    I've updated my svn repository creation script, it now copies and imports the code. Works for me, etc. [code]#!/bin/sh # Darren Beale – siftware.co.uk # bealers@gmail.com # Oct 06 # v0.2 # This simple script creates a folder structure # containing /trunk /tags and /branches. It then places the # contents of a folder specified…

  • SEO considerations for a Flash website

    In 1997/8 (whenever it was) I got really excited by Flash 3 coming out; I even went to a do at the Islington Design centre (UK/London) where Macromedia pimped it (showing eye4U and Gabocorp, remember them?) and I got a free pen, woo. I played with it for a while, writing a cartoon strip called…

  • Remote PHP debugging

    After 8 or so years of being a professional web developer I today finally cracked using a debugger with PHP. I’ve been a long suffering PHPEdit user from since it was open source and into having to pay (twice) for a licence. Unfortunately I started getting very irritated by some annoying and performance degrading bugs…

  • My PHP application directory structure

    Rob Allen, who is on PHPWM and who I met at the recent PHPWM meeting in Worcester posted something on his blog detailing his prefered directory structure recently. Here's mine, seemingly nicked straight from FHS: /home/$USER/www/$PROJECT: /codebase /bin // anything with a shebang in /etc // config files /htdocs // document root /lib /class /function…

  • Nightmare MySQL migration

    I've been migrating a large number of websites over from one server to another, always an enjoyable task. So I get to the last one, copy the database over and do the normal mysql import along the lines of: [code]mysql -ufoo -pbar database_name < database_name.sql[/code] Errors++ Turns out the Donke^H^H^H^HDeveloper who built the application didn't…

  • Excluding folders when creating a tarball

    When creating a tarball, to exclude folders one simply uses the –exclude= flag: For example to tar up the contents of /var/log but to exclude /var/log/apache & /var/log/mail/ tar -jcvf logfiles.tar.bz2 /var/log/* –exclude=/var/log/apache/* –exclude=/var/log/mail/* Just in case you didn't already know then the 'j' flag in the 'jcvf' tells tar to use bzip2 compression.

  • Perl MySQL backup script.

    I’m in the middle of migrating a lot of websites from one server to another. Here’s a small script I knocked up to take a dump of all the MySQL databases on that machine: [perl]#!/usr/bin/perl -w use strict; my $dumpDir = “/tmp/foo”; my $dumpUser= “root”; my $mysqlBin = “/usr/local/mysql/bin”; my $mysqlPassword = “bar”; foreach (`ls…

  • Emulating PHP’s substr() with Smarty [sort of]

    Today I had a requirement to strip off the first 9 digits from a string from within a Smarty template. The system using Smarty is *totally* locked down so no access to plugins or using php functions as modifiers so I could not simply do $string=substr($string,9); or even {assign var=”shorterThing” value=$thing|substr:9} In the end I…

  • RSS to Email

    I can’t be arsed with RSS feeds; they are too high maintenance and I just don’t have the time to read them any more, especially so since I became a freelance web developer again and all my time is spent working or trying to get work. I thought the Google Reader might work for me…

  • BASH for loop

    [code]#!/bin/sh for FOO in a b c d e f; do echo $FOO done[/code] Outputs a b c d e f

  • WordPress spam plugin

    After getting over 200 comment spams in 2 days I decided to implement an automatic spam blacklist system as manual parsing wasn't cutting it any more. Akismet seems good: We can’t stand spam. Who can? You have better things to do with your life than deal with the underbelly of the internet. Automattic Kismet (Akismet…

  • Installing Ruby on Rails onto Debian Sarge with Apache 1.3

    After quite a bit of resistance on my part I'm afraid that it's time to get down with the kids, hence: Install ruby [code]apt-get install irb1.8 libreadline-ruby1.8 libruby libruby1.8 rdoc1.8 ruby ruby1.8 ruby1.8-dev[/code] Install gems [code] cd ~bealers/build/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz cd .. tar zxf src/rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb[/code] Install Rails [code]gem install rails –include-dependencies[/code]…

  • Global search and replace using Vi

    to replace all instances of – say – 127.0.0.1 with 10.0.0.1 in a file then using vi you can do: [code]:%s/127.0.0.1/10.0.0.1/g[/code] if you mess it up then press u for undo. Of course if it's an important file then back it up first.

  • ssh logins without a password

    Share ssh keys: client: [code]cd ssh-keygen -t rsa[/code] the copy ~/.ssh/id_rsa.pub over to server server: [code]mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys[/code] Job done

  • MySQL Workbench

    I just downloaded MySQL workbench 1.06 beta. I stumbled across it after finding this message on the DBDesigner forum page: Dear DBDesigner4 users, Due to several attacks against the DBDesigner4 forum it has now been closed down.We simply cannot understand the sick motivation of people to attack Open Source projects.So please understand that we will…

  • Enabling spell checking within FCKeditor

    CMS Made Simple uses the great GPL WYSIWYG editor FCKeditor and I noticed this morning that it has a spell checking facility. To get it to work, I: Installed aspell on my dev server: [code]apt-get install aspell Reading Package Lists… Done Building Dependency Tree… Done The following extra packages will be installed: aspell-bin aspell-en dictionaries-common…

  • Adding arbitrary PHP to a CMS Made Simple website

    CMS made simple (CMSms) is great as it does what it says on the tin e.g. it's a CMS and it's easy to use and configure. Most importantly for me, it's easy to skin and modify. It uses Smarty as a template engine and I have to admit that I was dubious when I saw…

  • Clone a VMWare virtual machine

    Simple one, you have a windows virtual machine and you want to copy it: Copy the folder the VM is in (assuming you use a folder per virtual machine) and rename it to the new host name Click on the .vmx icon (you can rename this file first so it's new-host-name.vmx) Select “Edit this virtual…

  • debian start-up script tip

    If you've just installed something and want to make sure it starts on boot then the init.d script needs adding to the various run level folders as a symlink. It's a bit of a drag and it can be sometimes forgotten. Never mind, Debian comes with a handy script: Lets assume that we have a…

  • WordPress Widgets

    I'm a developer, I don't mind – in fact, no, I *like* – coding but when it comes to doing stuff on my own site I'm rather hesitant and I prefer things that Just Work out of the box. I installed a new theme K2 last night and whilst it looks good I did have…

  • Creating a separate VMWare hard disk for a Linux virtual server

    A mini How-To detailing how I created a separate virtual partition for my local dev server: I halted the virtual machine and then under VMWare settings I select Hard Disks then add. Once the disk is created and saved out I re-start the machine. Initally we have to partition the disk and make it a recognised file system. Once…

  • Using the Zend Framework – Part 1

    Edit: Sorry I never got around to finishing this, there’s only 2 parts of 3. For the past few years I’ve not really learnt anything new PHP dev-wise, mainly because I’ve been getting on with the task of running a business. Anyway, recently I’ve been bringing myself back up-to-speed with what’s happening at the leading edge…

  • Installing a new WordPress theme, K2

    If you’ve installed WordPress in the past then you will have seen the Kubrick theme. A lot of people who use WP end up keeping the original theme as it looks good, for example Cathie has done just this on her blog: http://ackers.bealers.com/. Bealers.com has been annoying me recently, the way it looks and the…

  • The Zend Framework – part 2

    I’ve added a second part to my of my Using the Zend Framework over in my How-To section. http://bealers.com/how-to/using-the-zend-framework-part-2/ Related: Part 1

  • Creating a subversion repository

    I wanted to add my Zend Framework example code to subversion but to do that I needed a local Subversion repository 🙂 As I had to figure out some of the bits how to this, I decided to put all of my steps into a mini How-To. Here it is: http://bealers.com/how-to/creating-a-subversion-repository/

  • Creating a second virtual hard disk for a linux server with VM Ware

    On my virtual Debian Sarge development server running within VMWare I wanted to create a separate virtual disk so that if I ever want to use the data on it with another virtual machine I can. Here’s the mini How-To: http://bealers.com/how-to/creating-a-separate-vmware-hard-disk-for-a-linux-virtual-server/

  • Installing CMS Made Simple

    Grab the code Option 1 – Subversion [code] cd ~bealers/www svn co http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk cmsmadesimple [/code] This checks out the entire project including a lot of modules into a folder called cmsmadesimple which may not be what you want, but it’s what I’ve done. Option 2 – Tarball Instead you could grab the tarball and extract…

  • Vim: Enough tabs already

    Scenario: You are connected to a Linux webserver via a Windows terminal client such as PuTTy. You copy some text to paste into a Vim document open on the remote machine and you get tab hell: Here’s an example of something I pasted in tonight: [code] ServerAdmin webmaster@host.some_domain.com DocumentRoot /home/bealers/www ServerName bealers.com ErrorLog /var/log/apache/bealers.com-error.log CustomLog…

  • 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…

  • 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…

  • 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…