QUnit: JS Unit Test framework

QUnit is a powerful, easy-to-use JavaScript unit test suite. It’s used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself!
QUnit: A JavaScript Unit Testing framework

This is used by the jQuery projects, so probably worth a look. Javascript has found new niches, with all the extensibility available now to develop effective web front-ends in a more secure and efficient manner. Javascript detractors have long predicted demise of Javascript, but that’s a way off yet and perhaps now irrelevant, given the previous accusation centred around it’s limitations.

Interactive Fiction Programming

Worth a look – I was searching around for different examples of programming lanmguages and came across Inform. Inform is “A Design System for Interactive Fiction Based on Natural Language”.

An example of its implementation is here http://www.inform-fiction.org/I7Downloads/Examples/glass/index.html. And here is a list of others you can have a look at – http://inform7.com/learn/complete-examples.

Before trying to actual program file, you will need to download an interpreter to use it, if you don’t want to commit to entire Inform http://www.logicalshift.demon.co.uk/unix/zoom/

WordPress MU – Video Embedding Issues

viperI had recent problems on both WordPress and WordPress MU, embedding video.   I tried embedding videos from Vimeo, Youtube, Vodpod … all with same result – the object and/or embed code was stripped.    The forums threads lead into black holes, spattered with the usual annoying “works for me!” comments (without actually saying why they thought it works). They might as well add “nyah nyah!” on the end of their comments.

All the standard fixes, such as disabling the Visual Editor, did nothing to solve my problem, and as WordPress themeselves have been quiet on this subject,  I assume its work in progress.    I do not have this problem with standalone WordPress, but I would rather stick with MU as it is more progressive application, so the following seemed like a better solution all round.

I got round this issue using a plugin – and I think I might stick with it. the one I am using very successfully is Viper’s Video Quicktags, which supports most of the major and a few obscure video bookmarking sites. It has good history and is a popular download. The presentation is customisable, and the plugins get sround the issue of embnedding code directly into wordpress pages/post by using a shortcode to call a function, rather than scripts running within the page itself. These are inserted by buttons added to editor toolbar, when you install the plugin.  Video below is short demo, and was also inserted into this post using the plugin.

One of the solutions on the forums may work for you (such as outlined on here An example here http://wordpress.org/support/topic/233745/) – but in my testing experience, there is usually a fundamental flaw that causes issues like this – my own theory is the editor itself (either TinyMCE and FCKEditor). But life is short, so Viper Videotags is good solution – both short and long term.

Currently supported videos:-

  • YouTube (including playlists)
  • Google Video
  • DailyMotion
  • Vimeo
  • Veoh
  • Viddler
  • Metacafe
  • Blip.tv
  • Flickr videos
  • Spike.com/IFILM
  • MySpaceTV

And generic video support too!

  • Flash Video Files (FLV)
  • QuickTime (MOV, etc.)
  • Generic video files (AVI, MPEG, WMV, etc.)