Archive

Archive for the ‘Wordpress’ Category

My RSS Feed fixed at last

May 8th, 2007 Sean 2 comments

For a few weeks now my rss feed on this blog was not working and it took me a while to track down the problem. When I ran the feed through the feed validator it reported that the feed was being returned as text/html as opposed to text/xml.

After alot of testing and trying to track the issue down, it eventually turned out to be due to a wordpress plugin that I installed a while back to do syntax highlighting called WP-dp.SyntaxHighlighter. It did the trick with the syntax highlighting for code snippets but it totally messed up my rss feed. In order to fix the feed I deactivated the plugin and began the search for a similar plugin which wouldn’t mess up the rss feed. I have just installed the WP-Syntax plugin as a replacement code syntax highlighter plugin and it works a treat without breaking my rss feed.

If this post has helped you please consider making a donation.

Categories: Blogging, Wordpress Tags:

Code Syntax Highlighting in WordPress

March 22nd, 2007 Sean No comments

Since this blog is of a technical nature I plan to be posting more code snippets as time goes on. I obviously want the source code to appear pretty on my blog with all the syntax highlighting that one is used to in modern IDEs (including Visual Studio .NET 2003/2005). I run this blog using WordPress and I have just installed a plugin to take care of the Syntax highlighting called WP-dp.SyntaxHighlighter. It supports many languages and I’ll be interested mainly in the .NET languages. Below is an example of a code snippet in C#

using System; 

public class ReverseArraySort
{
   public static void Main()
   {
      string[] strings = {"beta", "alpha", "gamma"};
      Console.WriteLine ("Array elements: ");
      DisplayArray  (strings);
      Array.Sort    (strings); // Sort elements
      DisplayArray  (strings);
   }

   public static void DisplayArray (Array array)
   {
      foreach (object o in array)
      {
         Console.Write ("{0} ", o);
      }
      Console.WriteLine();
   }
}

If this post has helped you please consider making a donation.

Categories: .NET, Blogging, Wordpress Tags:

Setting up a CronJob with CPanel

February 7th, 2007 Sean No comments

For hosting this site and many others I work with CPanel (hosting control panel). I needed to find out how to set up a Cron Job. A Cron Job is nothing more than a job that runs on a schedule. So you could call a script at a specified time every week or send an email report at the same time every day automatically.

I googled for it and I came across this little show video tutorial of how to set up a cronjob using cpanel

In fact after hunting around a bit I found many more cpanel video tutorials on the same site.

If this post has helped you please consider making a donation.

Categories: Blogging, Wordpress Tags: