November 6th, 2009
We host most of our client sites at Rackspace so we have a fair few servers and different accounts we need to login with whenever accessing the my.rackspace.com portal.
While the site has a cookie to remember the last entered account number and username, it doesn’t help if you have half a dozen different accounts you need to login with on a frequent basis. Switching browsers can be impractical and remembering the account IDs can just get tiring.
To solve this problem I created the My.Rackspace bookmarklet for logging in with multiple accounts. When clicked it takes you to my.rackspace.com. If you’re already there, it displays a select list of your different accounts and populates the login form once you’ve chosen.
Read the rest of this entry »
Posted in JavaScript | 1 Comment »
October 27th, 2009
In PHP, knowing what the Apache user is on your webserver is very useful. Anything that writes a file to the server for example sessions, uploading files or other temporary file operations, needs to have the destination folder writeable by Apache. If you’re developing locally that’s not usually a problem. But as soon as you’re out in the real world file permission issues can sometimes be a pain.
If you’re having difficulties finding out what the Apache user is try this simple script to help you out.
It basically writes a small temporary file, checks the owner username, gets rid of the file and prints the Apache username to the screen. It should work on PHP4 and PHP5.
$tmpFilename = tempnam('/tmp', 'TEST');
$handle = fopen($tmpFilename, 'w');
fwrite($handle, 'testdata');
fclose($handle);
$info = posix_getpwuid(fileowner($tmpFilename));
$apacheUser = $info['name'];
unlink($tmpFilename);
echo "The Apache user is $apacheUser";
There’s also a small PHP source file you can easily download and use: getApacheUser.phps
Posted in PHP, Quick tips | 1 Comment »
September 4th, 2009
After the excellent dConstruct HTML5 and CSS3 workshop on Wednesday run by Jeremy, Natalie and Richard, I wanted to try out some of the things I learnt from the day. Read the rest of this entry »
Tags: CSS, html5, web
Posted in CSS | Comments Off
September 1st, 2009
I’m in the process of rebooting my website and transferring content from the old www.srj24.co.uk website. If you’re visiting this site after picking up one of my business cards, please bear with me. Service will be resumed shortly…
Posted in Misc | Comments Off
January 23rd, 2009
Stephen Fry has quite a devious sense of humour and to celebrate over 50,000 followers came up with a challenge: to write a 140 character Twitter containing exactly 50 Ls and win a yet unknown prize.
Read the rest of this entry »
Posted in Misc | Comments Off
November 30th, 2006
Ian Lloyd has posted an article on a petition to the UK Government on better web accessibility. I’ve put my name down, if you’re a UK resident go and do the same… you know you want to.
Posted in Misc | Comments Off
October 20th, 2006
I had the pleasure of my first professional talk last week courtesty of CaMedia on the merry subject of What can XML do for you? The talk went very well, a nice group attended and I hope I managed to communicate the basics of what XML is and can be used for. Read the rest of this entry »
Tags: web
Posted in Misc | Comments Off
September 30th, 2005
37 Signals stirred things up recently when they unveiled the time tracking facility to Basecamp, their popular project management system. We at Studio 24 have been using Basecamp to help organise our hectic workload over the past few months and have found it to be an excellent tool. The time tracking feature just makes it all that much better. Read the rest of this entry »
Tags: project management, web
Posted in Misc | Comments Off