Web Development Blog

Running Silverlight in Firefox 5 on OSX requires restart in 32 bit mode

I ran into the problem with Firefox 5 where when I visited a web page using Silverlight that Firefox prompted me that the plugin would not work and I would need to restart in 32 bit mode. After the restart I would work but its a pain as each time I restarted I would be prompted to again.

As it turned out all I had to do was update my version of the Silverlight plugin as the problem had been fixed. First I uninstalled Silverlight on OSX it quite straight forward. I followed the  instructions from Microsoft.

 

Removing Silverlight plugins on Macintosh

  1. Access your hard drive
    Double-click the hard drive icon on your desktop
  2. Find the plugin
    Navigate to your Internet Plug-Ins directory: /Library/Internet Plug-Ins/
  3. Remove the plugin
    Drag any of the following into your trash bin:
    • Silverlight.plugin
    • WPFe.plugin
       

Installing Silverlight

After removing the old version I went to the Silverlight install page and downloaded the latest version and ran the instalation program.


jQuery News Ticker

I wanted a typewriter news ticker that would display news items one character at a time. I had a look round and there are a few jQuery news tickers available but I just wanted something very simple that worked with jQuery 1.3.2. I couldn't find a plugin that exactly fitted my requirements so I decided to make my own.

The news ticker reads the markup which can be either an unordered list of news items or a collection of links. Getting the jQuery news ticker working is as follows, the code and documentation is here.

 
        $(document).ready(function () { 
            $("#news").newsticker(); 
        }); 
         




How to join multiple mpeg video files on OSX

Today had a video that was split into 10 smaller mpg video files. The video files were named 0001.mpg, 0002.mpg etc...

I wanted to merge these into a single mpg video file. Seems quite straight forward but I couldn't find an easy way to do this on OSX. I did however find a couple of tricks for joining multiple mpeg video files on Windows. I thought it should be possible to use the same method on OSX so I came up the the equivalent commands for OSX.

Steps to join the mpg files

  1. Ensure the separate movies are sort alphabetically in the order they should be joined 
  2. Open terminal from Applications > Utilities > Terminal
  3. At the prompt change the directory to the folder where your video files are, for example if the movie files are in a folder called 'MyMovie' on your desktop you would type ~/Desktop/MyMovie
  4. At the prompt type the command cat *.mpg > fullmovie.mpg
  5. After a few moments you will see the file fullmovie.mpg appear, if the movies are large it may take a while. With the movie files I was joining the resulting file was just over 2GB and the process took about 20 seconds.
The resulting movie file I was able to open with both VLC and Windows Media Player and watch the movie.