Web Development

My Favorite Firefox Plugins

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

Here is a list of addons I use for my Firefox:

  • Live HTTP Headers: Can’t live without this one
  • Google Toolbar
  • Web Developer
  • DOM Inspector
  • InspectThis
  • JSView
  • Map This: Excellent integration with Google Maps (allows you to select multiline addresses!)
  • FoxyProxy: Allows you to configure many proxies and switch between proxies easily from the status bar!
  • lori: Life-Of-Request-Info.. nifty.. shows time to first byte, response times, etc.
  • ViewSourceWith: View source with say TextPad
  • …more…

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>

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.