Playlab.net || Mark Rochefort

My name is Mark Rochefort and this is my website - a place where I like to play and learn. Are you still searching? I doubt you'll find it here but you might find some other guff - sometimes with photos.
Or you could try looking down here ↓

Displaying posts filed as 'Technology'

Sleepy Statistics 01Feb10

Filed under: Random, Science, Technology

As you move differently in bed during the different phases of sleep, Sleep Cycle uses the accelerometer in your iPhone to monitor your movement to determine which sleep phase you are in. Come morning and it plots out a graph of your nocturnal activity. Here’s mine from the last couple of nights:

Sleep statistics for 30 – 31 Jan
Went to bed / woke up: 01:18 / 08:27 | Total time: 7h 08m

Sleep statistics for 31 – 01 Feb
Went to bed / woke up: 23:21 / 06:30 | Total time: 7h 08m

Can you guess when I woke to tend to our son? :) Now I *know* when I woke at night…

A thing called Phing 04Mar09

Filed under: Technology

Agile web app deployment with svn, rsynch, phing and more…

We are a small development team, at Harvest Digital, handling multiple tasks throughout the day, across different environments and projects. It makes for an exciting challenge. Our roles/ skills are clearly defined and our small size means we can react quickly to change, with little margin for communication errors and so on (see Getting Real and Less is more: Jumpstarting Productivity with Small Teams). But, when it comes to deploying to a staging or production server, I am ashamed to admit that we had often introduced a huge potential for human error by doing much of the work manually. Each project is different and so there is no consistent deployment process across the board.

Deployment is often the last step in the process to get any attention and it is one that can be unnecessarily tedious and prone to error. With more agile development projects, where deployments may be required several times a day, we obviously cannot afford the time nor the potential mistakes that may be made by manually deploying a project.

At its simplest level, deployment may just involve making sure that the target server (i.e. staging or production) has the latest revision of files from the project’s source control repository (we use SVN). But factor in tests and database migration and you can see how easily things can go wrong. Especially if you are deploying several times a day. You need to automate as many steps in the process as possible, thereby eliminating any manual tasks that introduce potential error and duplication.

Whenever we reach a point in a project where the code can be considered stable, we should tag it in SVN as a release. This gives you the ability to deploy a particular release based on its tag, instead of just the latest revision in the repository. By convention you never create revisions in the tag folder – tags are simply named snapshots of the source repository. We typically use version numbers as tags with some scheme based on feature-set or milestone and release date that can be ordered alpha-numerically e.g. “rel_belfast_2.04″. This allows us to say with certainty what is deployed at any one time, without having to scan logs etc. Tags give context to a release name (you can easily associate the release with project milestones) that revision numbers and timestamps do not. Tags are usually kept in a ‘tags’ subfolder, in the top level of the repository.

For a while now at Harvest, we’ve been working with symfony – an excellent PHP framework – that includes a few tools to help simplify the deployment process (such as Pake). These tools allow for remote syncronisation of files with rsync (the benefits of synchronisation over standard FTP are much touted elsewhere) via SSH (with the shell command: e.g. symfony sync staging) and semi-automate the build process (including database schema changes, data dumps etc: e.g. symfony propel-build-all myApp) by using Pake on the target machine.

But there is still a lot of room for improvement, particularly when it comes to database migrations and SVN integration. Plus, symfony is not our only set-up. We need an automated deployment process that can be applied across all our projects. This is where I’ve previously seen shell scripts being used but Phing can do much of this heavy lifting work for us, as it has many standard deployment tasks built-in to it. According to the Phing blurb:

Features include file transformations (e.g. token replacement, XSLT transformation, Smarty template transformations), file system operations, interactive build support, SQL execution, CVS operations, tools for creating PEAR packages, and much more.

Phing (PHing Is Not GNU make) is a project build system based on Apache Ant and is available through the PEAR installer. If you use --alldeps on Phing, it’ll grab, funnily enough, all the dependencies. But most are good packages (e.g. PHPUnit, PHPdoc and VersionControl_SVN). It can be used in a multitude of ways, including unit testing, creating docs, running SQL – which allows us to keep database schema changes in version control. The beauty of Phing is everything can be configured easily through the build.xml file (and then further with properties files) – so that the project’s deployment configuration can be kept in version control too.

In short, we love this thing called Phing!

For more detail on advanced tasks such as database migration take a look at these posts from Federico Cargnelutti and Dave Marshall.

The return of the platform game: From Jet Set Willy to LittleBigPlanet 02Dec08

Filed under: Media, Random, Technology

I’m not much of a “gamer”, although I have to admit I am able to reference my life by what computer game I was playing since I was about 10 years old (for the record – Jet Set Willy, on the trusty ZX Spectrum) – maybe before then, if you include the clunky Radio Shack games I played on my Dad’s computers.

Jet Set Willy (1984: ZX Spectrum), Sonic the Hedgehog (1991: Sega Megadrive), Monkey Island (1990: PC), Doom (1993: PC), Worms (1995: PC), Abe’s Oddysee (1997: PS1), Grand Theft Auto (1997: PC), Rainbow Six (1998: PC) and many more; they all chart a certain personal view of the evolution of console and computer gaming. And it’s incredible to think how things have changed.

I can mark eras of my life in the same way you might signpost your autobiographical memory with where you were living. Sad but true. It tends to be just the one game as I don’t devote masses of time to gaming – when I find a game that I like, I stick with it.

Recently, I persuaded my wife that a PS3 would be a great addition to our family because “a PS3 is so much more than just a games console – you can use it to view all those digital photos and videos of our son”. And I’m glad I did as I think I’ve found the game to mark the next era - LittleBigPlanet. This game is incredible. It has brought the traditional platform game into the future with a fun, creative and collaborative online world that is constantly changing and ever evolving. Irrespective of what it represents in terms of amazing media and technological innovation, it also represents a return to pure and simple platform based game-play, with a few twists. And, possibly most importantly, it is impossible not to feel happy playing this game. It looks like we’re going to have some fun with this one…

Stephen Fry on free software 08Sep08

Filed under: Technology

Happy birthday to GNU!

Google Chrome – first look 02Sep08

Filed under: Technology

Last night Google “mistakenly” released a comic book presentation of a their new Chrome browser application. Well it certainly got the buzz going and has whetted my appetite to give it a whirl. Less than an hour ago, Google made the download available and I’ve just been in a live walk-through (that hung my Firefox – oh the irony!), looking at some of its major features. In a nutshell – it is quick. More later…
[UPDATE: The verdict - it is fast. Much more screen space. Ideal for web apps. Won’t replace Firefox/ IE / Safari. Yet.]

Open source: utopian-dreams, recession-proofing and socialism… 19Aug08

Filed under: Media, Politics, Technology

Those who know me will undoubtedly have at some point had the pleasure of listening to me ranting on about the power of the open source movement – or, more generally, social collaboration online. On the bus yesterday I read an editorial piece – “Collaboration is the new revolution” – in the Guardian newspaper that certainly struck a few chords. Here’s a few extracts, by way of a summary:

1) Open source paves the way for the odd utopian dream:

Sir Thomas More’s description of Utopia as a place where “nobody owns anything, but everyone is rich” is not a bad way to describe the open source movement in which people around the world collaborate with each other to produce services that anyone can use – or improve on – for nothing.

2) Open source is recession proof:

One of the interesting things about the collaborative movement is that it is probably recession-proof, though you won’t see it in economic statistics because it mostly does not involve cash transactions.

3) Open source is robust and well-trusted by large successful organisations:

Big corporations, such as IBM, Google and Amazon, are devourers of open source software because they find it cheap, efficient, low-maintenance and reliable. But UK government departments, including health and the foreign office, have proved risk-averse with hardly any open source in their infrastructure.

4) Open source is socialism (well, social collaboration at least):

…open source combines the cooperative spirit that was at the heart of the Labour party in the past with the entrepreneurial skills needed today.

And with nothing more to add to that summary, I’m off to join the revolution (well, okay, I’m off down the pub to carry on ranting to anyone who’s too polite to stop me).

No more mobile tweets? 14Aug08

Filed under: Media, Technology

Twitter has announced they will cut outbound SMS alerts for users in the UK because it was costing too much!

Whatever you say about Twitter, I was enjoying the ability it gave me to receive updates via SMS. In fact, it was this feature that won me over to using it and helped demonstrate what it was all about to mates. I figured that the initial free SMS alerts that appeared in my Twitter account would run out one day and then I’d have to pay for more credits – easy business model. I’d happily have paid too. So why pull it? Maybe its all part of some ploy by Twitter to gather a crowd reaction – so that when they announce payment plans for SMS alerts, they already have the crowds’ support. Yeah – okay, that may be a tad cynical but I do hope they listen to their UK users (and, in fact, anyone who used the UK based SMS alerts). The reaction is already gathering pace – with comments and tweets a plenty – and now a Facebook group. SMS is huge here and it seems to be a glaringly obvious way to actually turn Twitter into a revenue making business, in the UK at the very least.

SWO: Semantic Web Optimisation? 09May08

Filed under: Media, Technology

It looks like the semantic web is about to gain traction with the Yahoo! Search open platform that was announced last month. In summary, Yahoo! is hoping to spread the use of semantic web standards by supporting microformats and RDF – promising enhanced search results for content adhering to such standards.

And with this promise of an enhanced search presence will come the marketing need for publishers to create content that capitalises on this. Just as SEO emerged as an industry all of its own, I expect Semantic Web Optimisation to emerge as an industry all of its own in the very near future.

[Before submitting this post, I quickly searched on the topic (yes - I appreciate the irony of having used Google!) and came across this article - essentially saying the same thing as me above. But please can we not fall into the trap of applying version numbers after "Web" for every evolution in web technology that occurs!]

The rise and rise of websites 08May08

Filed under: Media, Technology

Another graph. This time showing how the number of websites has grown since 1990. Actually, things only really started to grow about ten years ago in 1998, a year or two after I first played about on the Internet at university. It took six years (1990-1996) for the number to reach 100,000. In 2008, it is now 162 million! While the numbers have risen and risen, what is also interesting to note is the dip in numbers during 2002. Post dot-com bubble slump? Anything to do with 9/11? Or was it simply that a lot of domain names, bought during the dot-com boom years – with little more than a holding page to show, expired at this time? This little blip aside – it seems the upwards curve is un-stoppable. Will it ever reach saturation point?

Websites (1990 - 2008)

The rise and rise of Google’s advertising revenue 24Apr08

Filed under: Media, Technology

The rise and rise of Google’s advertising revenue

Scary or exciting?

Google App Engine 08Apr08

Filed under: Technology

Google has just releasedGoogle App Engine” – which will let you run your web applications on Google’s infrastructure. It sounds similar to Amazon’s offerings (S3, EC2 and SimpleDB) and the ill-fated Zimki:

  • Dynamic webserving
  • Persistent storage
  • Automatic scaling and load balancing
  • APIs for authenticating users and sending email
  • Fully featured local development environment

Python is the only language supported at the moment but they say more languages will be supported in the future. With the weight of Google behind it, this service looks set to provide an excellent all-in-one route to rapid web-app development. So long as you are happy using Python and all of Google’s Web services.

another web service fails – this time it is GMail 25Mar08

Filed under: Technology

server-error_1206440595761.png

Yet another critical web app has a brief spell offline…

Again – while annoying – I do find a slight comfort in the fact that even the big boys have bad days.

tsk tsk tiscali – my internet is still down 21Feb08

Filed under: Random, Technology

Bit of a random rant this one but I seem to be caught in a perpetual loop with Tiscali and BT support. Over the last couple of weeks, there has been no ADSL connection at home – which affects both our internet and TV, as we receive Homechoice (aka Tiscali TV). So we’ve called support, they’ve gone through the standard questions and then sent out an engineer. The engineer, when at our house, then blames the company that they are not from (i.e. Tiscali or BT). Rinse and repeat, ad infinitum. I’ve heard from a couple of other people that their ADSL connection with Tiscali is also down. Is this an issue with the ADSL line supplied by Tiscali TV then? Bring back Homechoice!

(day) streaming our lives away 10Feb08

Filed under: Friends, Media, Random, Technology

I’ve just taken a quick look at friendfeed.com – it’s basically a lifestream service, where people can aggregate and publish their web-lives. It’s done rather nicely – enabling you to quickly create your own lifestream from various feeds (here’s mine) and not too different in look to the lifestream I quickly hacked together with pipes – but done way better and on a grand scale! You can also track friends’ feeds easily too, making it a much more two-way tool than others out there – say Tumblr, for example, which publishes your combined feeds. There’s definitely a need for this – with the whole micro-blogging/twitter/lifestream thing, it is useful to show this data in one place and provides an excellent way for potential stalkers to gather all their up-to-the-minute information on a particular target in one easily digestible feed ;)

Microsoft to buy Yahoo!? 01Feb08

Filed under: Media, Technology

This could be huge

37signals System Status 18Jan08

Filed under: Technology

“Basecamp, Backpack, Highrise, Campfire, Writeboard, Ta-da List, and our blogs are all offline” – Ouch.

37signals System Status, originally uploaded by markrocky.

One reason why you shouldn’t rely on all this fancy web 2.0 stuff for your business…

Although I do get a certain reassurance from seeing that even people like 37signals can have bad days (sorry 37signals)!

Facebook fatigue 15Jan08

Filed under: Media, Random, Technology

I’ll admit I’m quite a fan of Tom Hodgkinson’s work (being an avid reader of the Idler and having read both his recent books – “How To Be Free” and “How To Be Idle”), so I might be more inclined to understand where his rants and raves are coming from. But his latest outburst in the Guardian concerning Facebook certainly seems to have generated a bit of a maelstrom in the murky waters of the social media world (more than 500 del.icio.us bookmarks after one day and counting). While a little conspiratorial, there’s a certain weight to what he’s saying.

Lately there’s been a spate of negative blog entries and articles slating Facebook – and the furore surrounding Mr Scoble’s recent quarrel with Facebook pushed things even further. [Although some may argue that this simply served as an excellent PR pre-cursor to last week's announcement that Facebook (along with Google) were to join the Data Portability initiative.]

Is this the beginning of Facebook fatigue? In 2008, will Facebook go the way that Second Life went in 2007? Or is this simply the natural media/ public reaction to “hype”, as described in Gartner’s Hype Cycle, and we’re now in the “Trough of Disillusionment“? I have to admit that the tedious slew of unanswered invites in my inbox from zombies, pirates and vampires has sent me sliding down my own trough of Facebook disillusionment. Although, rather lazily, I do find it handy to have friends’ details in one place on the web – I use Facebook to arrange meeting after work or even to message someone, for example, as it is easier than digging around for their contact details. Will I still be doing this in 12 months? I certainly wasn’t a year ago, so who knows? Maybe Gartner does.

Using Google Spreadsheets as a database 20Dec07

Filed under: Technology

While not exactly something I’d advise for your critical web apps, I’m still intrigued to see this in action…

zimki dies 18Dec07

Filed under: Technology

Got a web app that relies on a 3rd party service? Well, I hope you selected that service well! A year or so ago I was evaluating Zimki and nearly selected it to provide a platform for some web app development at work. I’m rather glad I didn’t now…

Please note that this is your final notification of the withdrawal of the Zimki service, which will occur on the 24/12/2007.

All user applications and data remaining on the Zimki service will be deleted and the servers decommissioned shortly after this date.

It certainly highlights the importance of building your fancy-pants web 2.0 application on solid and reputable services.

impressed? 12Dec07

Filed under: Friends, Technology

24 ways to impress your friends is back for the third year running. It’s like a web geeks advent calendar and I’m impressed.

Social Graphs and Portable Social Networks 22Nov07

Filed under: Media, Technology

The “social graph” is a global mapping of everybody and how they’re related. I had a play with a visualisation tool for Facebook relationships last night and it was great. Slightly scary but fun nonetheless. However, our weblives are not just about Facebook (although Facebook does provide a platform to bring them all together). Google’s OpenSocial is promising to provide another way to pull them together but, as Brad Fitzpatrick points out, a centralized “owner” of the social graph is a dangerous thing. Social networks need to be made open and portable. And they can be.

Tim Berners-Lee stated in a post yesterday that

…we have the technology — it is Semantic Web technology…

In other words, the connections and relationships made possible by the semantic web (or social graph – use interchangeably from hereon). He goes on:

Now, people are making another mental move. There is realization now, “It’s not the documents, it is the things they are about which are important”. Obvious, really.

and on opening up this data:

It is about getting excited about connections, rather than nervous.

So, yes – I am excited but how are we going to do this? Think data feeds, microformats and openID – things that would tend to be met with blank stares if I were to suggest them to clients. But show a client how you could remove barriers (such as log-in/ sign-up) to that all important “conversion” (with openID or microformats – here’s an excellent microformat implementation doing just that) and show how this person would be able to instantly tell all their friends about it (via their social graph) and then they’ll be interested.

LifeStream 20Nov07

Filed under: Technology

With all the feeds available from the various apps that make up my weblife these days, there’s a wealth of data that can be brought together into a single data stream – or “lifestream“, if you will. Using Yahoo! Pipes to mash up these feeds, I’ve hacked together something that displays all this fantastic data on one page – with the idea of this eventually being displayed on a timeline. I don’t expect the hordes will be rushing to view my aggregated weblife in a single life stream but there are some rather nice applications for this in a wider micro-blogging context.
[Read more...]

Mozilla Prism, Adobe Air, Google gears – what next? 30Oct07

Filed under: Technology

Rich Internet Applications (RIA) are gaining credibility as a buzzword in the interweb playground right now and there’s a new kid in class.
[Read more...]

joost beta 09May07

Filed under: Media, Technology

Some of you will have already heard about Joost (formerly known as The Venice Project) – an IPTV thingy from the folks who brought us Kazaa and Skype. There has been much speculation about its implications for the media, advertising and marketing industries – bringing together the wonders of the internet and TV in one glorious multimedia dream (well – that’s what the hype will have us believe anyway). Find out more over at Wired and MIT.

Anyway – I’ve have been having a bit of a play and it looks rather nice indeed. Not that I’ll be watching TV all day – it’s all purely in the name of research, of course!

I’ve also got a bunch of beta invites for anyone who wants to check it out for themselves – just let me know your email that you want to use for your Joost account…

MS Photosynth: 3D browsing and web2.0 photo data = web3pointD? 28Feb07

Filed under: Technology

MS Photosynth is an app or a Firefox plugin (and yes – this is a Microsoft product!) that connects to geo-coded photo sites like Flickr and enables you to browse through similar pictures in 3D. The tech preview is visually very impressive but I’ve not yet seen a real-life demo so the verdict is still open. The video of the demo does look good though.

In my mind, this represents an interesting step forward in the cross-overs between web 2.0 apps and 3d browsing. It also raises interesting questions about where Microsoft might be headed in the 3d browsing space (aka “3pointD”). Particularly considering the rumours around Google’s developments in this field – where Google Earth and SketchUp could be brought together to create a “Google Planet” – a virtual-real-world Second Life, if you will. As has been suggested – maybe, in the not-to-distant future, “every Google Account [will] include a plot of land on Google Planet?”