This tablet looks cool!

Posted in Gadgets on May 14th, 2009 by Kedar – Be the first to comment

Nokia N800.. http://www.nseries.com/n800. Priced at $399. Cool device.

How to CAPTCHA?

Posted in Web Development on May 14th, 2009 by Kedar – Be the first to comment

Web forms are vulnerable to abuse. An automated agent can create hundreds of logins. Some web services like Yahoo! have implemented a new way to stop this. A dynamically generated image (with some obfuscation) is shown and the user enters the text as he sees it in a form text item. This is validated every time an account gets created. These images are not easily recognizable by a computer program that may maliciously try to simulate a human requesting a userid.

Try ImageMagick at http://www.imagemagick.com. This is a set of open source libraries in C, Perl, Java, PHP, VB and other languages which can be run as a CGI script as /make_image?key.

How to Add a Shortcut Icon to a Web Page

Posted in Web Development on May 14th, 2009 by admin – Be the first to comment

Creating a Shortcut Icon for a Web Page

The required size of a shortcut icon is 16×16 pixels. Use the following HTML code to enable this:

<HEAD>
<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">
</HEAD>

The only way a shortcut icon appears on a user’s Favorites menu and Address bar is if the user chooses to add your page as a favorite.

This is how you can add a button or a link that prompts user to add your page to favorites. Use the following Javascript code:

<SCRIPT>
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4)) {
var sText = "<u><span style='color:blue;cursor:hand;'";
sText += "onclick='window.external.AddFavorite(location.href,";
sText += "document.title);'>Add this page to your favorites</span></u>";
document.write(sText);
}
//-->
</SCRIPT>

Fix DSL Stall

Posted in Networking on May 14th, 2009 by admin – Be the first to comment

These instructions are for PPPoE software users only. If you have DHCP or PPPoE through a router this can make things much worse. If your computer has to logon to access the internet ands you notice delays/freezes/stalls while the OS boots up or when browsing or at seemingly random times. The following will likely cure it:

  1. Open Control Panel.
  2. Open Network.
  3. Look for the first entry in the scroll box marked TCP/IP, that is associated with a hardware ethernet card (ignore dialup, especially Enternet or NTS and VPN type bindings). Note: If you have a 4060 USB modem, select TCP/IP-> Efficient Networks SpeedStream 4060 CIP/1483
  4. Select it and press properties
  5. Select IP address from the tab
    Is Obtain IP address automatically checked? If so, change that to Specify an IP address and enter 192.168.1.10, and 255.255.255.0, into IP address and subnet mask fields respectively.

  6. Click OK and OK, and the computer will build a driver information database and will require a reboot for the changes to take effect.

This assignment of a harmless local IP address to the TCP/IP settings bound (connected) to your network adapter, will stop the in-built DHCP services from waking up every 10 minutes to look for a DHCP server so that it can “fill in the blanks”.

Hosting PFR Fonts and required software from Bitstream

Posted in Web Development, iPhone on May 14th, 2009 by admin – Be the first to comment

Host the WebFont Player on your server. The Javascript file you link on the first html page of your site lets the users download this player. This player is installed in Windows dir / Downloaded Program Files folder -> TDServer Control. It can be removed by right clicking on this file and choosing Remove from the menu.

Hello world!

Posted in Uncategorized on May 14th, 2009 by admin – Be the first to comment

Just migrating my old blog on Blogger to Wordpress. The first 12 postsĀ  are old – dated 2003 – 2006 or so. My first post on this blog is about the Ubuntu install on external hard drive.