Errr, some catchy title.... RSS 2.0
 Wednesday, February 28, 2007

I’ve just finished writing a small application for myself. It’s called Application Launcher and yes, it does launch applications…..

 

There were two reasons for writing this small app:

  1. It takes forever to start my system since there are over 10 applications that are invoked at startup. What is ever more annoying all of them start at the same time! This leads to 1-2 minutes after system starts when I cannot use the system since everything is stating up.
  2. I needed a sort of like a Startup utility for my USB key. When I put it in, I want to be able to start my email client, calendar, and RSS reader with least amount of clicks and of course I want to avoid the ‘Startup freeze’.

 

Welcome the application launcher.

 

Features:

  • Launches applications (duh)
  • After each launch there is a configurable delay before the next application launches
  • When closing the application it tries to close all the started applications.
  • When needed it uses relative path (which is great when you’re using USB key)
  • If you want, you can have various configurations of what applications are starting even in one directory, simply rename the application and for each name it will have different configuration.

 

Here is the exe (ApplicationLauncher.zip (74.87 KB)) and the source code (ApplicationLauncher - source.zip (181.58 KB)) of the application. It has been written in .NET v2.0.

 

 

 

Wednesday, February 28, 2007 4:20:15 PM (GMT Standard Time, UTC+00:00)  #    Comments [2] -
Tools | Application Launcher
 Wednesday, February 14, 2007

For most situations we want the users, not the computers to be the audience of our websites. Therefore, there are situations when we must protect ourselves from automated bots that obtain information from our website, eat the bandwidth or just consume our services (create new email accounts, send text messages to cell phones and so on). The tool for this job is called CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart). If you’re interested how it came into being go to CAPTCHA on Wikipedia.

 

Below is a list of three CAPTCHA solutions that vary from easiest to implement and of course least secure to the safest one (which also involves most work).

 

Hidden input

 

The simplest of the techniques is to embed in the page a HTML input element.

 

<input name="address2" type="text" runat="server" />

 

Next, we make it invisible on a page by applying CSS style (just one of the possibilities). On the submit, we check if the value has been filled. If it has, then that means a bot was going through the page, not the user (as user could not see the textbox). This solution is very easy to implement and should work if the bot is completely automated (there was no recording of what type of fields should be filled in).

 

NoBot from AJAX Control Toolkit

 

One security level higher is the NoBot from ASP.NET AJAX. It is again, a solution that does not need user interaction; therefore it is not very reliable. Also, as it is part of ASP.NET AJAX it will only work in AJAX enabled environment. On the plus side, the user is not bugged by filling out some extra fields.

 

NoBot employs several techniques to prevent bot attacks:

  • Forcing the client's browser to perform a configurable JavaScript calculation and verifying the result as part of the postback. (Ex: the calculation may be a simple numeric one, or may also involve the DOM for added assurance that a browser is involved)
  • Enforcing a configurable delay between when a form is requested and when it can be posted back. (Ex: a human is unlikely to complete a form in less than two seconds)
  • Enforcing a configurable limit to the number of acceptable requests per IP address per unit of time. (Ex: a human is unlikely to submit the same form more than five times in one minute)

 

If you want to see a live demo, go to NoBot Sample from Ajax Control Toolkit

 

CAPTCHA Image Control

 

Safest on the list is CAPTCHA Image Control. Since everyone has used these CAPTCHAs as user it’s best to just show how this solution looks.

 

 

The image displayed is distorted not to allow machine to find out the text on a picture. There are a lot commercial solutions that offer these controls for ASP.NET, however there is also a bunch of them free. I particularly like the one written by Jeff Atwood, author of the brilliant www.codinghorror.com blog. He published this control on CodeProject, it is located here. Go check it out!

 

Note:

 

Last solution is not suitable for blind or visually impaired users. Therefore, sometimes you can find sound CAPTCHAs for these scenarios.

Wednesday, February 14, 2007 4:15:46 PM (GMT Standard Time, UTC+00:00)  #    Comments [3] -
Other
 Friday, February 09, 2007

I stumbled upon an amazing explanation of Web 2.0. Not only it's highly entertaining, but also shows what Web 2.0 is all about. Now, if anybody asks what is Web 2.0 I'll point them towards this clip.

Friday, February 09, 2007 12:07:57 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Other
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Marcin Waligora
Sign In
All Content © 2008, Marcin Waligora
DasBlog theme 'Business' created by Christoph De Baene (delarou)