Archive for the ‘web development’ Category

2009

Wednesday, December 31st, 2008

Now that 2009 is very nearly upon us, I thought I’d scribble down some things I’m hoping to do in the coming year:

Work and related stuff

  • Get a few more Plone 3 sites under my belt
  • Finish off my User Interface Design and Evaluation course (well, I’ve got to do this, I’ve not got a huge amount of choice in the matter) and really get to grips with all those HCI concepts
  • Roll up my sleeves with Flash again
  • Get another theme or two out for the Out of the Box Plone themes project
  • Go to the Plone conference in Budapest this year

Non-work stuff

  • Do my ‘52 photos’ project — a photo a week for 2009
  • Maybe release Hamnavoe or any other Plone theme I design for Wordpress
  • Get better at Photoshop
  • Get through my German course
  • Do some more writing in some form or other

Plone and Flash Player 10

Friday, October 17th, 2008

Another pyrrhic victory maybe, but something that has made me exceptionally happy this afternoon. Basically, yesterday I upgraded my version of Flash Player to version 10 only to find that the Flash files on our Plone-powered site no longer worked.

The lovely folks at SWFObject helped to identify why this was happening — nothing to do with SWFObject at all but the fact that Flash Player 10 implements some new security “features”. I managed to isolate it to the fact that Plone serves up ATFiles with the header, “Content-Disposition: attachment”. Flash Player 10 ignores files served up with this header, so you need to override this and set it to “Content-Disposition: inline;”.

I came up with this solution which may not be overly elegant but at least it works. I created a skin-level Python script that sets response headers before returning the file:

showflash.py

request = container.REQUEST
RESPONSE =  request.RESPONSE
flashvid = request['flashvid']
cd = 'inline; filename=%s' %(context.id)
RESPONSE.setHeader('Content-Disposition', cd)
return context[flashvid]

Then, when I embed the video with SWFObject I call it thus,

<script type="text/javascript">
   swfobject.embedSWF("&dtml-portal_url;/path/to/flash/showflash?flashvid=myflash.swf", "my-dom-id", "435", "290", "9.0.115");
</script>

This may be better handled by a product like Plone4Artists Video but it certainly works as a fix for us.

Chrome even makes it to the Today Programme

Wednesday, September 3rd, 2008

Wow, there was even an article on Google Chrome on the Today Programme this morning.

I’ve downloaded Chrome and am playing around with it at the moment (all in the name of work obviously).  I’m pretty impressed so far, and am particularly enjoying the “Application shortcuts” which allow you to create shortcuts to websites on your desktop. OK, nothing new in that, but they open in self-contained minimal windows which make them seem more like desktop applications. I’ve set one up for Gmail, which I have to say is also running very fast. Nice work.

Let’s hope we get a Mac version soon.