Monday, January 28, 2008

Sud-less Web Services

Remember the no-more-tears baby shampoo? This article is actually the equivalent for web services in ASP.NET. Standard ASP.NET web services convert their return types into SOAP objects thus making them a bit painful for developers from other platforms to work with. To go the way of the crowd making the paradigm shift toward RESTful interfaces, you can get your web services to return plain ol' XML by simply specifying the return type of your method to an XmlDocument. I know, it seems like that little trick you were always looking for. Now, the next part of it is to enable the Get protocol for the web services which is easily added to the webServices-protocols section of the web.config file using Visual Studio Intellisense.

And there you go - you can now code regular RESTful web services in ASP.NET. The downside is that you have to manually build an XmlDocument object in each method but that's easily abstracted by writing a couple of helper classes.

Tuesday, January 22, 2008

Voice Captcha beats humans too

The voice Captcha (called the "audio challenge") used by Twitter obfuscates the confirmation code so well that humans can't figure it out either. The voice Captcha system is an alternative to the visual Captcha (the "visual challenge") but it is pointless if an average human being is unable to recognize the eight digits and enter them into the provided text box.

Instead of trying to obfuscate a phrase or a number, why don't we just get the user to answer a couple of simple logic questions such as "Who was president of the USA in 1999?" or "What color is a cricket ball?". Sure, someone would develop natural language processing systems to identify words such as president-USA-1999 and color-cricketball, but with carefully selected questions, it would be indeed very difficult.

So, tell me, human... "If A is greater than B, and B is less than C, which is the smallest?"

Captcha stands for Completely Automated Public Turing test to tell Computers and Humans Apart

Sunday, January 20, 2008

Types of Testing

-=[ Black-box Testing ]=-

Black-box testing refers to the testing of a system or component without knowledge of the internal structure. This can be as simple as performing a button click and waiting for a dialog box.

Also known as: Behavioral testing, Functional testing, Opaque-box testing, Closed-box testing

Advantages: Low cost
Disadvantages: Doesn’t find many bugs

-=[ White-box Testing ]=-

White-box testing refers to using the source code for testing the system or component. Although there are several different methods to perform white-box testing, this can be performed by using a debugger and stepping through code.

Also known as: Structural testing, Glass-box testing, Clear-box testing

Advantages: Finds a larger number of bugs
Disadvantages: Increases cost and time required for testing

-=[ Grey-box Testing ]=-

Grey-box testing tries to find a middle ground between black-box testing and white-box testing by giving testers just enough visibility into the system to perform testing. In many systems this form of testing is incorporated by performing an action and checking for the updated value in the database.

Also known as: Translucent-box testing

Advantages: Achieves a good balance between quality and cost
Disadvantages: You tell me!

Thursday, January 17, 2008

eSATA goes power-cable-less

The Serial ATA international organization is working toward a new specification that will do away with a separate cable for power and instead deliver power over the eSATA cable. This ought to reduce the advantage that some USB and FireWire disks have on convenience. SATA 3.0 (3000 Mbps) still does better on speed than USB 2.0 and FireWire 800, though USB 3.0 (4800 Mbps) and FireWire 3200 (3144 Mbps) would catch up soon.

Note: USB 2.0 works at 480 Mbps and FireWire 800 works at 786 Mbps.

Wednesday, January 16, 2008

MS Office 2008 for Mac

Microsoft Office 2008 for Mac was released on the 15th January 2008. It seeks to replace Office 2004. With support for the MS Office Open XML format, it can work with the Office 2007 file formats however it doesn't support VBA macros.

You can get more information about it along with a demonstration video at:

George Bush visits Dubai

George Bush visited Dubai on Monday (14th January 2008). The parts of the city he was visited was entirely shut down. This includes the I.T. and media firms located at the Dubai Internet City and the Dubai Media City because they fall along the road between Abu Dhabi and Dubai (since President Bush was arriving from Abu Dhabi).

You can find pictures of his visit at:

Tuesday, January 8, 2008

Alienware Crysis Curved Monitor

With monitors getting larger and cheaper every year, Alienware has introduced the best thing yet since flat screen displays - it's a curved screen! The display surrounds the user with almost 4 subpanels that fit together almost seamlessly in one large package. It runs at the 2880*300 resolution, which is not common yet.

Tuesday, January 1, 2008

Oracle 11g Web SQL client

Oracle 11g does not provide the iSQLPlus interface or the GUI SQL*Plus client (sqlplusw). Instead, it provides SQL Developer and APEX (Application Express).

To get a web interface for typing in SQL and getting the results, you can use the Oracle Enterprise Manager (OEM) web interface, accessible at: https://localhost:1158/em (assuming you've got Oracle installed on your computer).

To log into the OEM web interface, you need to have the SELECT ANY DICTIONARY privilege (or you can use the SYSTEM account :-P ). When you're logged in, click on the Data Movement 'tab' and click the SQL Worksheet link (under the related links section). You'll now have the iSQLPlus-like interface for executing SQL queries.

EDIT: If you're using Quest SQL Navigator, you will need version 5.5.4 or later to work with Oracle 11g; this version also supports Microsoft Windows Vista.

The End for Netscape Navigator

Netscape has announced the end of development on the Netscape web browser with the last of the patches being available till 1st February 2008.

After the acquisition of Netscape by AOL, development branched off to form the open-source Mozilla foundation leaving Netscape to be a little more than Mozilla with skins and extensions. Finally, the retirement of the Netscape browser has been announced, leaving Mozilla to continue development on the browser.

Happy New Year

I would like to wish you all a Happy New Year with many more blog articles coming up on .NET, Java and technology in general. Looking forward to much better times ahead.