UPDATE: Desktop SMS
February 2, 2010 by Conor · Leave a Comment
Here is an updated version of my Desktop SMS program.
New features:
- Fixed general usability issues i.e. message and recipient clears after message sent.
- Added option to run in stealth mode. Program hides in system tray when sending message. Great for the office!
- 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
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 Conor · 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
Regular expressions in C#
October 20, 2009 by Conor · 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/
