UPDATE: Desktop SMS

February 2, 2010 by · Leave a Comment 

Here is an updated version of my Desktop SMS program.

New features:

  1. Fixed general usability issues i.e. message and recipient clears after message sent.
  2. Added option to run in stealth mode. Program hides in system tray when sending message. Great for the office!
  3. Non outlook users can choose to use the internal contacts system to store contacts. This probably needs more work.

Download: here

Store code snippets with Code Warehouse

December 15, 2009 by · 1 Comment 

Code Warehouse Screenshot

Code Warehouse Screenshot

Have you ever found yourself browsing the net and finding some code that you know is useful and you’d like to store it for future use? You then proceed to save it in a text file and save it in a random location. Not only will you forget about it but even if you remembered it you probably wouldn’t be able to find it!!

Thats where Code Warehouse comes in. It is a handy little utiliy that lets you create your own categories for storing code snippets for reference later on. For each code entry you can specify the language to enable syntax highlighting, item type (function, class, interface etc.) plus the usuals like name, description etc. You are also able to save notes about each entry and and upload files associated with the entry. This would be handy if you needed DLL files or other to support the code you are writing.

Code Warehouse really is a once stop shop for code management and gone are the days when I had to flick through various old projects to double check how something was done. It has support for lots of languages and I am a particular fan of the database support (MySQL, SQL Server, Access + more) which means I could develop a web interface to make my code available to me on the go or provide access to other users.

My setup is as follows: Main categories by programming language then sub categories in each for various areas e.g. Text, File IO, web, security etc..

Link: here

Check your Eircom stats for your desktop

November 22, 2009 by · Leave a Comment 

A while back I showed you how to automatically login to the Eircom stats page.

That was handy, right? But now you can check your stats right from your desktop with a simple little program I put together over the weekend. All you need to do is provide your phone number and account number (you only need to enter these once) to get your downloads, uploads, allowance and remaining downloads for the month.

I plan to turn this program into a universal program with support for all ISPs that support checking your stats online. I am nearing completion of support fo BT broadband as I type so leave a comment if your interested and i’ll speed up development..

Download link: here

Eircom DSL Stats from your desktop!

Web Crawler demo available.

October 28, 2009 by · Leave a Comment 

Crawler Demo Screenshot

Crawler Demo Screenshot

Here is a demo of the web crawler i’ve been talking about in my last two posts. It has three functions at the minute. Once you provide a URL you can get the HTML of the page at that URL, grab all links on the page or else just grab any rapidshare.com links that may be on that page. There are two links provided in the demo, one is to the root of my site and the other is a random page with some rapidshare links on it.

You may notice on the second page that if you grab the links there is some extra text in there. I must go back and refine the regular expressions so that these extra link attributes aren’t included.

The main aim of this project is that I can type in the name of a file that I am looking to download, say Dexter s04e01. My crawler will then Google this and crawl each page that google returns in the results page for rs.com links. I must also come up with a way of checking if the RS links are still alive. That should be a piece of cake compared to everything else though!!

Just try it and see what you think. I’ve attached the demo program on it’s own along with the complete VS 2008 (C#) project file.

Program File
Source Files

Regular expressions in C#

October 20, 2009 by · Leave a Comment 

Before I started my Web Crawler project I used always wonder how you’d go about pulling data from raw html. After reading up on the inner workings of a web crawler it became clear that I should be using Regular Expressions and quit fooling around with String functions such as indexOf and subString.

So basically, a regular expression is an ‘expression’ that is used to find patterns in text that are of interest to the user. I’m not going to go into specifics here as I am still learning the basics and don’t want to misinform anybody. If you’re interested you should visit the links below or if you’re already familiar with them and would like to see how to use them in C# read on.Here is a link to the MSDN documentation on the RegularExpression class.

The example below is a simplified version of the example on the MSDN site. It finds anchor tags in html and print the matches to the screen.

using System.Text.RegularExpressions;

String html = "<a href=\"http://www.conorhackett.com\">Conor Hackett</a>";

Regex expression = new Regex("<a\\s*[^<]+\\s*</a>");

// Run expression on html and store all matches in matches.
// MatchCollection stores all found matches in a collection of objects of type Match.
MatchCollection matches = expression.Matches(html);

// Print out all the found matches.
foreach (Match match in matches)
{
	Console.WriteLine(match.Value + "\n");
}

The above snippet should output

<a href="http://www.conorhackett.com">

Links:
http://www.ultrapico.com/Expresso.htm
http://www.codeproject.com/KB/dotnet/regextutorial.aspx
http://regexlib.com/