• Magento: Object __tostring() cannot take arguments

    I came up against this issue in Magento earlier.

    Method Varien_Object::__toString() cannot take arguments

    There's quite a lot of documentation about this on the net, so really this post is more for my own reference should I hit up against it again!

  • mod CatImplode

    mod_CatImplode is a Joomla module designed to display all articles within a com_content category as one indexed article. It was designed to increase the manageability of API documentation for VehicleFuelTracker.

    This article forms the user documentation for the module

  • mod_btwitter

    mod_BTwitter is a simple module designed to embed a users timeline into Joomla based sites.mod_BTwitter logo At the core of it's design is the principle that there should be no un-necessary chrome and page load speed should not be adversely affected.

    This documentation details how to use mod_BTwitter

  • Mod_GoogPlusFeed

    mod_GoogPlusFeed logoGoogle+ Feed (Mod_GoogPlusFeed) is a module designed to embed your Google+ posts into a Joomla site in the way that mod_btwitter does for Twitter. The core principle of the design is that it shouldn't contain un-necessary chrome and shouldn't slow page load.

    The module can also display all posts within a Google Community - Simply specify the community ID instead of a user ID!

    This documentation details how to configure mod_GoogPlusFeed

     

  • mod_lotto

    mod_lotto (AKA LottoPredict) is a module for Joomla 2.5 onwards. It fulfils a range of functions including the display of recent results.

    This documentation details how to configure the module to suit your needs

  • Multi-homing a Joomla site between the WWW and a Tor Hidden Service

    I did some work recently on making BenTasker.co.uk available via both a Tor Hidden Service (otherwise known as a .onion) and via the WWW.

    The reasons for doing this are published elsewhere, but this documentation summarises the steps I had to take (and why) in order to have the site safely accessible via both routes of access.

    For those who are interested, there's a far higher level of detail over on Projects.bentasker.co.uk.

  • MySQL Cheatsheet

    I started an article on basic MySQL Tips and Tricks a little while ago, but never quite finished it. This documentation contains those tips as well as some additional techniques I've picked up

  • OpenVPN on CentOS 6

    Setting up OpenVPN is seldom complicated nowadays, but on CentOS it's far more straightforward than I've experienced on most other distro's.

    This documentation details how to install and configure OpenVPN on CentOS 6

  • OpenVPN on CentOS 6 (Updated) - With HMAC

    I've previously documented how to install and configure OpenVPN on CentOS 6, but the steps appear to be outdated.

    In this documentation, we'll (very quickly) detail how to configure OpenVPN on CentOS 6. We're also going to enable TLS Authentication so that OpenVPN won't even respond unless the connecting client provides the right pre-shared key.

    You'll need the EPEL repos installed and enabled.

  • OpenVPN on Windows 2003

    We all know that Microsoft probably couldn't organise an orgy in a brothel, so I'm not sure why I was so surprised that their "Routing and Remote Access" service was interfering with other applications that may wish to add a route (in this case OpenVPN).

    This tutorial will show you how to install and configure OpenVPN on Microsoft Windows 2003 (including Small Business Server).

  • Performance Power 1Kva Generator has no output

    Performance Power 1Kva Generator

    Although this isn't technically a vehicle, there isn't a more appropriate category, and it is basically just a petrol engine and stator, after all.

    My Performance Power 1Kva (label reads as Ikva though!) petrol generator failed in service, and I've just got around to stripping it down to look into why and whether it can reasonably be repaired.

    This documentation details the process I've followed.

  • PGP Encrypted Text Chat Via DNS

    In a recent post, I alluded to having given a little bit of thought to ways in which clandestine communications could be achieved.

    Having given a little more thought to the idea, I was unable to resist the temptation to build a small proof of concept - if only to see whether there were any obstacles that I hadn't considered.

    This post is the documentation for DNSChat - a small proof of concept enabling PGP encrypted text chat using DNS Queries as a transport mechanism

  • PHP Changed Binaries

    PHPChangedBinaries is a simple server monitoring script. It's designed and exists to do one thing - detect and notify when system files change. 

    I've been running a very similar script for years, but in the wake of CDorked/DarkLeech decided it needed a refresh. The script works by generating checksums for all files within pre-configured paths (you can add more through the configuration file). These are then checked against a stored hash to see if anything has changed - if it has, the system admin is alerted. 

  • PHP GPX Ingest

    GPS eXchange format files (GPX's) allow you to record data from your Global positioning system for processing/import into other systems.

    The PHP GPX-Ingest class allows you to import basic GPX files and converts them into an object for easy data retrieval. In the process of doing so, it also generates basic statistics such as average speed, number of track points and journey length.

    The resulting object can be exported as a JSON string for easy storage and re-import back into the class at a later date (perhaps to extract more information).

    This documentation details how to include and use the class in your project.

    PHP GPX-Ingest is licensed under the GNU GPL V2 License.

  • Recovering from corrupted InnoDB Pages

    I recently encountered an issue with various InnoDB pages becoming corrupted on the database that plays host to my JIRA install. It was - to some extent - a mess of my own making for mixing production and development databases (or more precisely, for hosting that production database on a dev machine).

    Lesson learnt, sure, but I still needed to address the issue so that I could get JIRA up and running again.

    This documentation details the steps to follow - it won't resolve every case of corruption, but it resolved the issues I was seeing

  • RemoteHashStore Documentation

    RemoteHashStore is an API designed for use by the PHP Changed Binaries monitoring script. It's function is to simply maintain a database of file hashes and compare those hashes against those submitted when checking files. This documentation relates to the client included in the PHP Changed Binaries system. See the relevant documentation if you're attempting to build a client for the RemoteHashStore API (Coming Soon!).

  • Removing index.php from SEF URLs

    So you set up your Joomla! site, made it live, and later realised that you'd forgotten to enable the HTAccess file for SEF URL's.

    The end result being that all your URLs contain /index.php/ What to do?

    You could just enable the HTAccess file, but all the old URL's will then return a 404. Not great if your site has already been indexed by search engines, even worse if others have linked to you too.

    In fact, on newer sites, it might even be worse - the old link will still be valid, but there'll be a 'new' link too, so you'll end up with two URLs for the same content.

    It's actually incredibly simple to resolve, and this documentation details the two steps you need to take to resolve it, without breaking the old URLs.

  • Republished: Manual Database Retrieval Script for ZoneAlarm

    Originally published on Benscomputer.no-ip.org Jun 2008 (Note: Attached Script still works at time of Republishing)

     

    I was browsing the net earlier to try and find an answer to whether it is possible to manually download the ZoneAlarm Anti-Virus signatures. For those wondering why you would want to, standalone machines can't access the net to download the signatures, but are still subject to users with CD's and USB sticks. The easy way would be to update ZoneAlarm on a net connected PC and then copy the files from C:\Windows\System32\Zonelabs\avsys\base\ but if you don't have access to one, but do have a Linux Box then the script I have written will fetch the files for you (there are a lot, but they only add up to about 30 megs at time of writing).

     

  • RPC Ping Plugin

    The RPC Ping plugin is a simple Joomla! Extension designed to tell search engines when your sitemap is updated. By default, the plugin triggers whenever you save a com_content item (or a K2 item), but can also be configured to only send an update when new items are added.

    This post is the documentation for the plugin.

  • Saab 9-3 Door Lock Unit Repair

    The central locking door lock mechanisms on Saab 9-3s (and 9-5s) are known to occasionally malfunction/stop working. When you hit the central locking button on the remote, the affected door often won't lock (or won't unlock if it was already locked). The issue tends to start out intermittent and then worsen with time.

    A new unit is currently around £140 (without labour), but they can be obtained second hand on ebay for around £30. Replacing them is incredibly easy.

    It is also possible to strip the unit down to repair it, however, it's not without it's risks. While the door lock unit is removed the door won't latch closed (and certainly won't lock), so if you damage the unit trying to repair it, you're going to be in a tricky position. The route I took was to buy a second hand unit from ebay, fit that and then look at repairing the original (so I've got it on the shelf if the replacement starts exhibiting the same symptoms).

    This documentation details how to dismantle and repair the locking unit mechanism