Blog Archives

Raspberry Pi on iMac G4

I finally managed to give an old (broken) iMac G4 I acquired a few years ago, a new lease of life: Following the guide here I was able to use the original PSU to run the monitor and a Raspberry Pi.

Posted in Raspberry Pi Tagged with:

WordPress – fixing wp_options array

You may have noticed that when transferring between your development and production environments, your finely-crafted WordPress site will completely break. The fact that the url for the site has changed forces you to run a good old find-and-replace on the

Posted in PHP Tagged with: ,

Random Name Generator

Over the holiday period I was working on a bespoke CRM management system. I found myself in need of a list of random names. Once again a generic search engine came to my aid. The pick of the generators I

Posted in General Tagged with: , ,

A batchfile to check the status of Windows services and start them automatically if they have stopped

I deal with several applications on a day to day basis, and I was having problems with one in particular it’s associated windows services stopping for no tangible reason. I therefore devised a batchfile to check the status of each

Posted in General Tagged with: ,

New look Chocolate Hedgehog website

Haven’t posted for a few days because I’ve been busy developing a new look for the website. I’ve tried to give it a more striking and memorable appearance using some jQuery and CSS elements. http://www.chocolatehedgehog.co.uk

Posted in General, HTML/CSS, JavaScript Tagged with: , ,

Scrolling div using jQuery

I’m in the process of redesigning the chocolatehedgehog.co.uk website to make it a bit more quirky and interesting. I found some cool effects in that can be done with jQquery – particularly getting a html div object to follow your

Posted in JavaScript Tagged with: , ,

Adding line breaks to a push button

Have you ever wanted to force the text on an <input> button onto an other line? So did I today, and this is how: Simples!

Posted in HTML/CSS Tagged with: , ,

Converting stored MySQL dates into UK format

You will no doubt be aware that when you save a date in a MySQL database, it must be in the form of Y-m-d. I had some difficulty wrestling with the date() section of the PHP manual , and experimented for

Posted in PHP, SQL Tagged with: , ,

Batch file to perform SSH commands and transfer files from Windows to Linux

At my place of work, I routinely have to update firmware and database files from our office Windows PCs to ARM linux devices. This used to involve connecting to the mini PC using PuTTY, killing a process, then logging in

Posted in General Tagged with: , , , ,

Curved DIV borders

This is so easy!  I used to use a complex set images for top-right, top-left, bottom-right, bottom-left etc. Granted these 2 lines of CSS will not produce shadow effects or anything fancy, but the results are pleasing nevertheless. -moz-border-radius: 20px;

Posted in HTML/CSS Tagged with: , , ,