You can look through the SagePay website, the forums, the documentation, but try as you might, there is no statement on what character encoding SagePay uses when posting billing addresses, cart contents etc. I’ll tell you what it is: ISO-8859-1 Yes, it is an 8-bit extended ASCII encoding, from the days of DOS. If your […]
WordPress CSV Importer Plugin – Skipping Duplicates
The meat of this post (until I copy it over) is here: http://wordpress.org/support/topic/plugin-csv-importer-using-a-unique-field-to-prevent-duplicates There has been a few difficulties in making the required changes to the plugin, so I’m just going to include my version for download here. This is version 0.3.7 of “CSV Importer” for WordPress, but it has a filter hook at the […]
WooCommerce CSV Import – Some Notes
Phew! Just finished migrating 20,000 products to a new WooCommerce shop. Raised a bunch of tickets with WooThemes too, through their incredibly sucky “UserVoice” integration, pretending to be a ticket system (but that’s a winge for another day). The import was interesting, too say the least, and I thought it a good idea to post […]
PHP Backtrace on Errors and Warnings
It is sometimes useful to see back-traces of PHP execution whenever errors or warnings appear on a page. Often you would insert var_dump() statements to see what is happening and to narrow down the source of a problem (I know, not the ideal way to fix bugs, but it is a technique that is always […]
SugarCRM cache directory – it is NOT a cache directory!
SugarCRM has a difrectory called “cache”. When the application runs, PHP scripts, JavaScript, CSS, images and so on, are cached in there. This is how SugarCRM allows modules to plug into other modules; the cached PHP scripts combine together lots of smaller scripts across the full range of modules. But that is not all the […]
VM Network Issues on Moving a Virtual Machine
This issue has left me scratching my head for a while, but I think I have finally found a solution. I have been generating virtual machines (VMs) for a client to run on their laptops out in the field. The VMs run a copy of the client’s SugarCRM instance, on top of Ubuntu 12.04 32-bit […]
Virtualization: Placing a SugarCRM site on a laptop
We have set up a SugarCRM server on a cloud service for a client. This is great for the client, as they have offices around the world. The problem is that some of the locations they wanted to access the site were out in the jungle – quite literally in the jungle with not so […]
Arduino – cycling through colours of the rainbow
To demonstrate the colours of the rainbow, I wanted to knock up a quick Arduino project that allowed any colour of the rainbow to be selected. The user input was simply a potentiometer, and the output was to be three LEDs – a red, green and blue. Working out how to map the potentiometer value […]
Helping friends fix their computer, remotely using join.me
I originally saw this on BBC Click and it has been invaluable since then. The site allows you to take control of a relative’s PC (let’s face it – mum or dad’s PC) remotely. You can see what is happening, move the mouse, click in stuff and operate the keyboard, giving you full control to […]
CultureCode Hack – some project notes
I attended the CultureCode Hack run by CodeWorks on the 24/25 March 2012. I will blog about my personal experience at the event in good time. Or, when I can find some time. In the meantime I will offer some notes on the project that I worked on, specifically the technical aspects of it. The […]