Archive for May, 2008

Adding “Check for update” feature to your C# application

Posted on May 29th, 2008 in c#, programming | 40 Comments »

Today I decided I would add a ‘check for update’ option to my Eyes Relax application. This is quite useful feature, especially when you host your application on many hosting servers (like download.com and others). In this case it can be difficult for the user to check if there is a newer version of your software available, because:

  • the user does not remember where he downloaded the application from
  • there is an older version on the hosting server, so the user is not aware that there is a newer version of your app available
  • simple, but very common reason: the user is too lazy to look for the new version :P; and because it’s easier to simply select the ‘update’ option in your application, it may work for lazy users

Beside those reasons this is a nice, small feature we can practice our c# programming skills on :). At least for me, because I’ve spent last two years mainly developing server modules in Python. Two major subjects are:

  • HTTP file downloading
  • simple XML parsing (XmlTextReader)

Let’s start.

Read the rest of this entry »

Eyes Relax 0.1 was released

Posted on May 19th, 2008 in Eyes Relax, Freeware tools | 6 Comments »

Finally I found time to do something useful. A few months ago started to worry about my eyes (I work as a programmer, so I spend a lot of time in front of my computer). A good exercise that can help protecting your eyes is to have a break and focus the eyes on something at a further distance. Despite I know this, I often forget about taking regular breaks when I work. So I started looking for a utility that would remind me about taking breaks. Unfortunately, all the usable tools I found were shareware. Instead of buying one of those, I thought that such simple and useful utility should be available for free for everyone. And here you go. I released the first version, which can be found here. Enjoy.