Event Viewer Logging in C#

  • Luke Browning
  • September 19, 2012
  • .net

I spent the morning writing a Transport Agent for Exchange 2010 (another story!) to log some emails to disk. As it was on a remote server and remote debugging wasn't possible, I decided to log some details to the event log. Now this must be the first time I've had to write the logging mechanism myself because I've never come across this before. When you try to use the EventLog.WriteEntry method you need to pass the source of the message (i.e the application name). So when I did this I get the following exception… »

Changing the Selected Item Colour in Ubuntu

  • Luke Browning
  • June 12, 2012
  • Linux

First of all, this is more of a reminder for myself as to how to change the selected item colour on Ubuntu (12.04). The steps are very simple and are as follows… »

UWE Harvard Word Formatting

  • Luke Browning
  • November 6, 2011
  • Office

An implementation of the Harvard referencing style based on the description by UWE for Microsoft Word 2007 and later. The file is based on "Harvard - Anglia" by Yves Dhondt (availble from BibWord) and has been adapted by Andrew Cartwright and myself to be similar to UWE Harvard standard. If there are any issues, please get in touch… »

NT Kernel & System using Port 80

  • Luke Browning
  • August 24, 2011
  • Windows

I had been trying to set up Internet Information Services (IIS) under Windows 7 to use PHP and MySQL to save myself the trouble of having both IIS and XAMPP installed. After a short time I managed to get it running rather easily using the Web Platform Installer. This was great apart from a couple of small annoyances when developing PHP applications. After a few weeks of use, I decided it was about time to switch back to XAMPP as it removed all of the annoyances I had encountered - here, I ran into a couple of problems… »

XML Beautify

This is a small application I've built to transform unreadable, ugly XML into nice, clean, pretty, human readable XML. It is written in C# on top of the .NET framework (3.5). The software can handle multiple documents at a time (I managed to get it up to 180+ documents before giving up) and each file is syntax highlighted. All the software does is try to reformat your XML to indent your code and warn you of any structural issues with the document… »

CoffeePot (HTCPCP)

  • Luke Browning
  • March 17, 2011
  • Java

CoffeePot is based on the Hyper Text Coffee Pot Control Protocol (although slightly modified) and is used to order coffee remotely. The project is written in Java and is based on a client-server architecture. The server emulates a coffee machine, taking orders from anything that connects to it, be it the client or telnet, then reporting back to the client once the order has been completed… »

Backup and Restore a Disk Image In Linux

  • Luke Browning
  • March 11, 2011
  • Linux

Here's a simple and easy way of making a backup image of your disk. It uses dd (used for low-level copying) to copy either an entire disk or just one partition, into either a gzipped file or onto another disk… »

phpHighlighter

  • Luke Browning
  • January 10, 2011
  • php

phpHighlighter is a nice little script to output another php file with all of  the syntax highlighted and show its line numbers. Features Show the source of your php scripts! Highlight the syntax! Show line numbers! Looks the same in all browsers! Dynamically define the file to view! Valid xhtml! … »

encryptMe

  • Luke Browning
  • January 10, 2011
  • php

encryptMe is a couple php scripts designed to help developers and website  administrators protect and add security to their data. Using the built in  functions, you can encrypt and decrypt data using the encryption and decryption  algorithms as well as hash your data with over 40 different hashing algorithms… »

10" Android Tablet Boot Screen

  • Luke Browning
  • January 2, 2011
  • Android

This is my Android tablet bootscreen that I use on my Advent Vega. It is based off the bootloader image found in this thread with a few modifications. To use this boot screen on your device I have written a quick guide which applies to the Vega, but should be similar for other Android tablets… »