I attended my first barcamp this weekend, Barcamb 3 at the superb offices of Red Gate in Cambridge. As a barcamp newbie I was a little unsure of what to expect but the whole weekend was great fun, full of an interesting, open and welcome bunch of folk, well organised and a thoroughly enjoyable experience. Continue reading “Barcamb 3”
With the launch of the iPad one of the striking things to me is its reliance on web standards. Apple’s own Technical Note on preparing websites for the iPad specifically states web developers should be using web standards for audio and video, specifically the HTML5 video and audio tags. If a large corporation like Apple is basically forcing web developers to use standards-based techniques to deliver content like video, chances are people will listen.
In this day and age you’d think standards was the assumed approach for all web agencies. From my experience, hardly so. Only last week I encountered two appalling coded sites via potential clients. One using tables for layout with no meaningful ALT text for images, the other a single image in a page with no text behind it (a 100% wide image too, which technically would work on an iPhone or iPad but be pretty much unreadable to everyone!). Both of which were from companies who claim to build websites as part of their professional services.
After following tweets from what sounded like an excellent An Event Apart, I heard about Eric Meyer’s talk on using media queries to deliver specific CSS depending on the device width or orientation. This means it’s possible to create flexible layouts for desktop and mobile simply with CSS (i.e. switching between a three column layout for desktop and a one column for mobile). Another great reason for using standards when developing for mobile or the iPad.
I’ve just got my new shiny iPhone with Orange and am of course very happy with the UI, the apps and the amazing connectivity it gives you on the move. However, pretty rapidly after installing various apps I hit the problem of all installed apps closing immediately after opening them. Not good.
Continue reading “Apps closing on the iPhone”
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.
Continue reading “Multiple accounts for my.rackspace.com”
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
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…