generic viagra

PHP, Regular Expressions »

[ 24 Sep 2009 | No Comment | ]

Problem
I have a ton of date strings in the stupid US style dd/mm/yy format. i.e. 12/24/09 being 24th September 2009. I need to convert them to the UK style dd/mm/yy.
Solution 1
As a string in PHP is really just an array of characters, the simplest fix was to address the individual number characters by their positions within the sting, and rearrange them into the format I wanted:

$d = “12/24/09″;
$d = $d[3].$d[4].”/”.$d[0].$d[1].”/”.$d[6].$d[7];
echo $d; // displays “24/12/19″.

Solution 2
I posted my solution on twitter (@hutchings) and asked for comments and @londonhackspace organiser Jonty came …

Flash »

[ 13 Aug 2009 | No Comment | ]

Problem
I’m doing some freelance Flash development, and it’s been a while. I have just created a dynamic text field that I wanted to fill via actionscript, then fade in via an alpha tween. This wasn’t working, even if I set _alpha = 0 on the movieclip containing the text field.
Solution
You can only set _alpha on a Dynamic Text field if the font has been embeded (with the embed button).
Works now! wohoo! Simple stuff that I’ve known in the past, but forgot.

Networking »

[ 22 Jul 2009 | No Comment | ]

Problem
We’re building a website in Business Catalyst and need to provide the client with a test site during the design, build and testing phases. This test site needs to be accessible on a sub-domain of the client’s main domain. At the same time we want to retain DNS control of the parent domain, and stick a small holding site there.
For example:
‘mydomain.com’ has a small holding site on it, and mail services etc work as usual for that domain.
‘test.mydomain.com’ needs to be delegated to the Business Catalyst nameservers.
Solution
Turns out this is …

Joomla!, Windows »

[ 22 Jul 2009 | 2 Comments | ]

Problem
When trying to add a Plugin, Component or Module in Joomla’s Extension Manager, you might get the following error:
JFolder::create: Could not create directory
Warning! Failed to move file.
Shown here:

This is likely – but not definitely – to be after the site has been moved from location to another, a change of directory, or server.
Solution
When a Component, Plugin or Module is added, the Joomla system attempts to copy the installable zip to a temporary directory, called ‘tmp‘. From there, PHP extracts the files and installs them. The error above usually occurs for …

Mechanics »

[ 16 Jul 2009 | No Comment | ]

Problem
My Fabia’s temperature indicator light started flashing and beeping at me a few minutes after the engine was started, each time I used the car. The coolant level was fine, and the car seemed to get up to temperature quickly and stay there, never overheating. A quick search of the Briskoda forum revealed that this is a common fault, caused by faulty terminals and/or electrodes in the expansion tank vessel.
Solution
On the VRS models, and possibly others, the electrodes that measure coolant level cannot be replaced or cleaned, so a complete …