HOW TO delete an email address from GMail auto-complete list without deleting Contact

Supposedly friendly features like spell-check & auto-completion can be a bane sometimes. Imagine if your boss & best friend share the same name & you excitedly send a very private message to the boss instead of the friend because GMail cleverly fills the email address while you type a few characters of the name. If such a scenario rings a bell, here is one option to prevent GMail from supplying names you don't want to see in the email auto-complete list that appears while composing a mail.

The easy way is to delete the contact. But if you want to prevent an email address from showing up in GMail auto-complete list when you try names in the To:, CC: or BCC: fields, then you can consider moving the email address from the Email field in the form for that Contact to the Notes field.
click on image to enlarge

Read More

HOW TO compare HTML5 features supported by versions 8, 9 & 10 of IE

This page on the Browserscope website lets you choose versions of the same or different browsers & see how they stack up in supporting HTML5 features. Click on the "Compare UAs" link on that page, select User Agents you want to compare & then hit the Compare button.

I chose versions 8, 9 & 10 of Internet Explorer to see what's new with respect to HTML5 in IE9 & IE 10
click to enlarge image

You can copy the table data to Excel & transpose the columns to rows to view the tabular data vertically as a list (in Excel2010, click on Paste dropdown in Ribbon & select Transpose).

So here is the list of HTML5 supported features in IE9 as detected by Browserscope by utilizing Modernizer 2.0.4 -
  1. audio:m4a 
  2. audio:mp3 
  3. backgroundsize 
  4. borderradius 
  5. boxshadow 
  6. canvas 
  7. canvastext 
  8. csstransforms 
  9. draganddrop 
  10. fontface 
  11. generatedcontent 
  12. geolocation 
  13. hashchange 
  14. hsla 
  15. inlinesvg 
  16. localstorage 
  17. multiplebgs 
  18. opacity 
  19. postmessage 
  20. rgba 
  21. sessionstorage 
  22. smil 
  23. svg 
  24. svgclippaths 
  25. video:h264 
 IE10 additionally supports the following HTML5 features -
  1. applicationcache 
  2. cssanimations 
  3. csscolumns 
  4. cssgradients 
  5. csstransforms3d 
  6. csstransitions 
  7. history 
  8. indexeddb 
  9. input:autofocus 
  10. input:list 
  11. input:max 
  12. input:min 
  13. input:multiple 
  14. input:pattern 
  15. input:placeholder 
  16. input:required 
  17. input:step 
  18. inputtypes:email 
  19. inputtypes:number 
  20. inputtypes:range 
  21. inputtypes:search 
  22. inputtypes:tel 
  23. inputtypes:url 
  24. textshadow 
  25. websockets 
  26. webworkers 
Also see:
Comparison of layout engines (HTML5)
HTML5 compatibility across major mobile and tablet browsers

Read More
Scott Allen's 10 favorite C# rules for developing software

Scott Allen's 10 favorite C# rules for developing software


From Scott Allen's C# Fundamentals Part 2 course on Pluralsight -

Rule #10: Avoid Regions - as they are typically used to hide ugly code or classes that've exploded in size or responsibility. Think if you should break the regions into seperate classes
Rule #9: Use exceptions for errors..instead of status code or booleans...but not for control flow
Rule #8: Avoid boolean parameters
Rule #7: Avoid too many parameters - beyond 4, consider grouping
Rule #6: Warnings are errors - Go to a Project's Properties and in the Build tab of the dialog box that opens up, change "Treat warnings as errors" to All from the default None
Rule #5: Encapsulate complex expressions - Instant recognition is good
Rule #4: Try to avoid multiple exits - have just one
Rule #3: Try to avoid comments - A meaningful method name is more effective than comments. Triple slash comments in VS are ok as they help in documentation of an API. Other developers can see your comments through Intellisense when they reference your assembly.
Rule #2: Keep methods short - general rule of thumb: 1 to 10 lines
Rule #1: Keep classes small

+ The foundation for most C# coding standards is Microsoft's "Design Guidelines for Developing Class Libraries"
+ ReSharper VS Plugin & StyleCop can help you enforce naming conventions
+ Names contain meaning & adding meaning to code is what readability is all about - use meanigful names
+ Embedding type in the name of a variable is not a good idea especially for primitive types. Name should indicate what an variable or object can do & what it represents.
+ How to improve readability of your code - read other people's code to figure what is good & what is bad. Be introspective.
Read More
Looking for internship or job? Check Microsoft's Students to Business program

Looking for internship or job? Check Microsoft's Students to Business program

Microsoft's Students to Business website connects graduating students with  Microsoft, Microsoft Partners and its customers. This program is open to graduating students in India. The enrollment process is simple and does not require any fees.

Microsoft's DreamSpark program gives students Microsoft professional tools at no charge.

For students passionate about software development, there are also other avenues where they can publish their original projects or contribute to ongoing open-source projects and get noticed. Here is a list of popular project hosting sites -

Read More
Trivia: Smiley & "Frowny" Emoticons

Trivia: Smiley & "Frowny" Emoticons

In its Events That Shaped The Wired World section, Wired magazine credits Scott Fahlman with first using the Smiley :-) & "Frowny" :-( emoticons in electronic messages.

On Sept. 19th, 1982, he had proposed on the computer-science department bulletin board at Carnegie Mellon University that the smiley be used as a joke marker & "frowny" to mark things that are NOT jokes.

Scott came up with the idea after reading “lengthy diatribes” from people on the message board who failed to get the joke or the sarcasm in a particular post.


Read More

HOW TO block images/image ads originating from a specific domain in Firefox 4 & above

Firefox 3.x used to have an option to block pesky images that were not part of the context of page that you were viewing - like image ads. You just had to right click on the image, & select "Block images from {domain serving the image}" to never see any images from that domain again. That context menu option is missing from Firefox 4  & above.

It turns out that it is still there but there are some additional steps to reach it. Right click on the image on the page you are viewing in Firefox & from the context menu, you have to select View Image Info & click on the checkbox "Block images from {site name}".
Thanks RalphB


Also see:
HOW TO block IFRAME based ads
Read More
Trends & Reference Tables that every Web Developer should track

Trends & Reference Tables that every Web Developer should track

A web developer's education is never finished. Here is a list of trends & reference tables that, in my opinion, every web developer should track -


work in progress...
Read More

Find Windows System info with Windows key + Pause/Break shortcut

If you need to find hardware details of your Windows PC, like any of the following -

  • Version including Service Pack used
  • Window Experience Index
  • Processor
  • RAM
  • System type (32-bit or 64-bit OS)
  • Computer name, domain & workgroup settings
  • Windows Product Id & whether Windows is activated

... there is a easy keyboard shortcut to reach for this info rather than going for it through Control Panel - Windows key + Pause/Break


I discovered this shortcut in this Scott Hanselman article that has other great tips for maintaining your PC
Read More
Interesting USB accessories

Interesting USB accessories


I follow the Personal Technology page of "Economic Times" with interest for their India-centric coverage of gadgets & IT topics.

This week ET listed 10 useful USB accessories. Among them, although a USB-based Hub & Mug Warmer, Cooler, paper shredder, Vaccum Cleaner have some novelty, they didn't appeal to me as much as these -

Jabra Speak 410 - USB powered speakerphone ... with integrated cable managment system. Weighing a mere 250g, this speakerphone also has a headset port where you can plug-in any 3.5mm headphones in case you want the call to be private. (Rs 8,000 from www.jabra.com)
USB Display  - This little monitor is completely powered off USB – just one cable is needed for both the video signal and power. The 7-inch 800 x 480 pixel panel is touchscreen enabled too – you can move certain items onto it to clear space from your primary display.
The best part is that since the display connects via USB, your regular VGA/HDMI out is unused and can be used to output to another device simultaneously. ($229.99 from www.thinkgeek.com)
ASUS CrossLink Cable - Thanks to Asus' Crosslink USB cable and adapter, you can quickly connect and transfer data at high-speeds between two computers.The adapter is shaped like a USB drive, has 2GB storage and a miniUSB port on the other side to connect using the Crosslink cable. You can even share an internet connection and optical drive between two PCs. (Rs 4,000 from eBay Global EasyBuy)
USB Foldable keyboard - If your netbook's keyboard proves too small for you or you just prefer to carry your own keyboard around, this flexible USB keyboard is ideal. Since the keys and base material are made of silicon, it is completely silent.
Even though it has the full 104 keys, you can roll it up into a small package. The added advantage is that the keys are completely waterproof and dustproof. ($23.99 from www.thinkgeek.com)
USB Phone2PC - This handly little device is great if you want to keep a record of all your voice calls. It can be connected to most phones using an analog or digital connection and then it connects to the PC using USB.
A software is required to be installed which provides an easy-to-use interface to record incoming/outgoing calls. It includes an external microphone for recording meetings and interviews directly to the PC as well. (Rs 10,000 from www.ebay.in)

I'm surprised that such phone recording/tapping tools are easily available despite recording/tapping being illegal in several countries including India.

In the same technology section, ET gives Reliance 3G Tab a favorable review & 4 stars (out of 5). Reliance 3G Tab (Specs: 7-inch touchsceen,800 x 480 pixels,1.2Ghz processor,512MB RAM,4GB+microSD slot, 2MP rear camera, 2MP front camera, 3G, Wi-Fi, Bluetooth, GPS, FM, accelerometer, Android 2.3, 380 g) sells for 12,990 INR.

The review points out three areas where the Reliance 3G Tab doesn't match up to something like the original 7-inch Samsung Galaxy Tab (P1000).

Firstly,the screen has a resolution of 800 x 480 pixels the same as what a high-end smartphone offers and lower than the Galaxy's 1024 x 768.This means that the number of pixels per square inch (pixel density) is low.Secondly,the 800Mhz processor is a bit of a step down and it is noticeable at times with certain apps or when you scroll between screens too fast.Finally,the device is locked to the Reliance network,so you can't just use any SIM card you want.

In the end, they offer a nice suggestion -
If you'd rather not spend the extra,you can choose to buy the 3G Tab without a plan and pay just 12,999 upfront.You'll be using it just like a Wi-Fi tablet and later,you can opt for one of the discounted 3G advance rental or monthly plans.
Read More

Website to track weather in Indian cities - imd.gov.in

Weather isn't a hot topic in India (as it is in the US) & forecasts aren't taken seriously.

Possibly to promote awareness, the Indian Meteorological Department has put out an ad in today's Times of India (with a glaring typo -Meteorological is misspelt as Meteorogical right at the beginning) to publicize the features if its site - IMD.GOV.IN



click image to enlarge

Besides a host of services & forecasts, the site publishes 3-day city forecast for 100 cities. Unfortunately, neither this nor the information from other weather forecasts are accessible as RSS feeds or through widgets as on the US National Weather Service website. As such, there is no easy means by which other websites or individuals can consume useful weather information.

There is a toll free number (1800 180 1717) to get city weather forecasts & observations but the site lacks services that have a "push" mechanism

A better designed site with interactive features (better maps, email alerts, easier accessibility on mobile phones) can boost the utility of India's official Weather tracking service by sharing its wealth of information among the general public.

Also see:
India - Know your elected government representatives
State of Internet in India
Browser Usage Stats for India
Jago Grahak Jago
E-Commerce in India
India IT - facts, numbers & trivia
Discover public transport in India with Google Transit
Read More

Compare ASP.NET Hosting Providers

Microsoft's Web Hosting Gallery has a neat tool to let you search for hosting providers based on parameters like type of server (shared, dedicated, virtual server) cost, technologies supported (Frameworks, Databases, Publishing protocols), storage, number of SQL Databases, number of e-mail accounts, bandwidth per month, support, uptime.


Also see:
Tips on ASP.NET Hosting & Deployment

Read More
Types of ASP.NET MVC View Engines

Types of ASP.NET MVC View Engines


A view engine provides Controllers with the ability to translate views into HTML. There are multiple reasons why you may choose one view engine over another. Here is a list of different types of ASP.NET MVC View Engines, the first two are available with ASP.NET MVC 3 -
  • WebForms /ASPX – classic ASP.NET MVC views

  • Razor (CSHTML)

  • Spark

  • NHAML -  (pronounced enamel) is a pure .NET implementation of the popular Rails Haml view engine.

  • NVelocity 

  • Brail

It is possible to use multiple view engines in the same project

Related reading:
ASP.NET MVC View Engine Comparison
Spark and NHaml - Crazy ASP.NET MVC ViewEngines

Read More
Search Engine for Comics

Search Engine for Comics

A relevant comic strip introduced into an article or presentation can make a topic more appealing & livelier (assuming you have permission to use if it's not your own). Finding the image of a strip on the web that you remember reading in a Sunday newspaper may not be easy. Don't you wish there was a comics search engine that could get you cartoons for a keyword you submit?

Here are a few that I found -
  • Calvin and Hobbes Search Engine by Michael "Bing" Yingling

  • Dilbert Strip Finder by BF Martin

  • XKCD - use this search filter on Google: [keyword -site:*.xkcd.com site:xkcd.com]. The first filter is to exclude searches within subdomains of xkcd.com. The content is indexed by Google because each strip has hidden text. 

Related:
Read More

DuckDuckGo shows why Google may not be good for you


To show that DuckDuckGo, a search engine site winning rave reviews, doesn't "filter bubble" or track you, they have illustrated guides to demonstrate how Google may not be as saintly or good as it may appear. The facts they present are something to ponder on.

On a different note, DuckDuckGo provides a great API alongwith other goodies like the easily configurable Karma Widget that displays your online karma (e.g. twitter follower count, facebook fans, etc.), for your blog, profiles or other Web sites.

Here's how a sample Karma Widget looks -

Related:
Say Goodbye to Privacy
Read More

Print stylesheet - Best Practices


Using a Print stylesheet is a more convenient way to generate a printer-friendly page than creating such a page through server-side coding. Tim Connell has a nice CSS tip in his article on things to note while coding a stylesheet meant for printer output.

At some point, you have probably found yourself reading a printed article when you get to an engrossing section that includes a link for more information. A link that sits there teasing you with its blue underline. Without a mouse or Apple’s latest interfacing doo-​​hicky you have no chance of finding out where that link goes unless you return to the original article on screen.
The solution to unclickable links is an easy one to deploy. Use some CSS to print out the location of the link that would otherwise be hidden:

#content a:link:after,
content a:visited:after {
content: ” (“ attr(href) ”) “;
font-​​size: 80%;
text-​​decoration: none;
}

As a result of using the above CSS content property setting in the stylesheet meant for the printer, the actual link will appear next to a hyperlink in a printed page.

So content like this -

will show up like this in a printed page -


Read More
Mobile Web Trends - 2011

Mobile Web Trends - 2011


Interesting points from BuiltWith.com's Mobile Web Technology Report 2011 -

  • The growth of the mobile web is staggering, with approximately 726 million people having access to a 3G mobile subscription

  • The viewport meta tag was originally designed by Apple to resize the layout viewport of a website, a requirement for the mobile device to understand how the website designer has defined how the content should be displayed to the end user. Android, Windows Phone, BlackBerry and iPhone all support the viewport meta tag

  • Close to 3% of the top 10,000 sites use the viewport meta tag 

  • Of the top 100 sites most visited on the internet, 71 of them have content specifically designed for mobile devices. The remaining 29 either do not support mobile devices or, depending on the device, prompt the user about a device specific application.

  • jQTouch is currently the most used mobile JavaScript library (38%) in the top million sites, shortly followed by JQuery Mobile (32%), both of which are extensions of JQuery, the most popular JavaScript library used on the web.


Read More

Summaries of Google Webmaster Central YouTube videos

There are currently close to 400 videos on Google Webmaster Central YouTube channel featuring Matt Cutts who answers questions posted to the Webmaster Help Forum or to the Twitter handle @googlewmc. Occasionally, some Google secrets slip out in these videos. You can also pick up some tips & tricks on SEO by watching these typically 2-minute videos.

If you are SEO inclined, the videos have some interesting titles that draw you to find out the answers. I track updates through their YouTube channel RSS feed. I sometimes wish the answer was part of the intro that comes with the feed so that I can find the answer immediately. For future reference, I plan to jot down summaries of these videos while I watch a few of them every week. Here goes the list -

Do spelling and grammar matter when evaluating content and site quality? (Aug 17, 2011)
No.
Reputable sites tend to spell better and the sites that are lower page rank tend not to spell as well, so "that's the sort of content analysis that would be pretty interesting to explore as a potential quality signal"

Why do Amazon.com pages tend to rank well for product queries? (May 25, 2011)
If there's an official homepage for a product, it will rank very well & sometimes number one. Not every book or product has an home page. Amazon has a relatively good user experience in general and lots of links to it due to which it tops the result list.

How does Google handle pages with content that changes on each page load? (asked on Apr 22, 2011)
If you really want Googlebot to see & follow, make sure that the important links are always on your root page.

Can I tell Google about links to my site? (Apr 19, 2011)
Better let Google find the links. You can upload a sitemap which is a list of all URLs on your site but Google doesn't guarantee that uploading a sitemap will get all of your pages indexed.

Can coding errors affect how a page is indexed? (asked on Apr 19, 2011)
Check the web page in a text browser or the popular browsers, if you can see the text. "If all that text is visible, then it should, for the most part, be able to be indexed by Google."

How can I make sure that Google knows my content is original? Apr 4, 2011
Google tries hard but is not perfect at identifying who is the original author of an article. To let Google index your original article faster before a deceptive site like a scraper, claims it is its own (by showing a manipulated timestamp), let the world know about it by, for example, tweeting about it or hook up thinks like Pub Subhubhub which will ping various places to asynchronously say that there's a new article or blog post.
Alternatively, you can do a DMCA (Digital Millenium Copyright Act) notice or a spam report

Is serving Googlebot a transcript in place of a video considered to be cloaking? (asked on May 5, 2011)
Yes, that would be considered cloaking and is not recommended. Show the video & transcript as well.

How do you rate links from sites like Twitter and Facebook? (asked on Jan 14, 2010)
Google treats links the same. It looks at how reputable the links are. It doesn't matter whether they come from a .gov or .edu or Twitter or Facebook...they don't automatically carry weight.

How much weight does the number of years a domain is registered for have on your ranking? (asked on May 7, 2009)
Don't "worry about that very much"

How can new pages get indexed quickly (besides using Google Webmaster Tools)? (May 27, 2009)
Get more links. Google can index a page within seconds.

Does the position of keywords in the URL affect ranking? (Mar 5, 2009) Is example.com/keyword/London is better than example.com/London/keyword?
Not a lot. Having four or five keywords maybe good

All videos have a transcript (hidden by default) but they may not work every time (the trouble could be with the JavaScript to show-hide the panel). To view transcript, click on the button to the right of the flag below the video (if you hover over it it, it will say "Interactive Transcript") and it will open up the transcript.

Read More
Cross-Browser Testing Tools

Cross-Browser Testing Tools


I've used cross-browser testing tools like Adobe BrowserLab, Browsershots & Expression Web SuperPreview but didn't know there were a dozen more.

Smashing Magazine has done an exhaustive review of all available cross-browser testing tools with a nice tabular summary at the end for easy comparison. It covers the following list of tools -

Free:
  • Adobe BrowserLab

  • Browsershots

  • Expression Web SuperPreview (free and commercial)

  • Lunascape 6

  • IETester

  • IE NetRenderer

  • Spoon

  • Sauce Labs (free and commercial) - 200 free minutes/month

  • Browsera (free and commercial)

  • Browserling (free and commercial)

Commercial:
  • Mogotest

  • Cloud Testing

  • BrowserCam

  • Multi-Browser Viewer

  • CrossBrowserTesting


Read More
Learning with Pluralsight videos gets even better with course assesments

Learning with Pluralsight videos gets even better with course assesments


If you are Pluralsight subscriber, you can try out the course assesment beta feature to test yourself on what you've learnt. Pluralsight is currently seeking feedback on the Q & A and intends to make this feature available in the future along with the course with score tracking after community vetting.

For those fond of quizzies, the current limitation of allowing only 10 beta test assessments every 30-days may be a little stifling.

I hope Pluralsight  also start a Forums section soon to let its users discuss topics covered in the courses.
Read More
Free JavaScript & jQuery learning resources

Free JavaScript & jQuery learning resources

Read More

Learn IIS 7 - IIS 7.x's Configuration System


Notes from Scott Forsyth's session "IIS 7.x's Configuration System" in his 52-week video lesson series  -

- IIS 7.x drastically different from IIS 6

- IIS 6 - IIS path (Metabase.xml) & .NET path (machine.config, web.config (root, site, app))

- Metabase.xml - app pools, site config, mime types, compression, various settings like default document

- 2 paths have merged & .NET becomes a first class citizen in IIS 7.x


- IIS 7.x - Distributed & Delegated Config system

- applicationHost.config (kind of replaces metabase.xml, guts of IIS) & administration.config (IIS Manager related settings) host most of the settings of IIS. Both files are in the %windir%\System32\inetsrv\config\ folder

- lot of settings related to not just .NET but also IIS config settings can live in the web.config or app web.config files

- Settings managed by IIS admin can also be managed by the development team as well.

- Feature Delegation - what settings are allowed to be applied in the config files vs. what has to be set at the global level. Every setting or config section has a decision on whether it is Read/Write- can't be delegated or whether it's read-only.

+ Benefits of Distributed Config
- Developers have more control of IIS settings - delegated management
- IIS configuration saved in source control
- Easier to maintain when migrating
- Websites packaged for consistent deployments - some settings may not work as they are not delegated

+ Gotcha's of Distributed Config
- Easy to overwrite existing settings
- AppDomain recycle
- Configuration is "all over the place" (aplicationHost.config, web.config files of site)
- Not replicated with shared config

- Lines are blurred between IIS & ASP.NET

Related: Getting Started with IIS Manager
Read More
Older ASP.NET Starter Kits

Older ASP.NET Starter Kits

The current ASP.NET Starter Kits page does not show older Starter Kits built on ASP.NET 2.0 & links to them that you may find in old articles may be broken. When I have to refer these useful oldies to folks in need, I keep going back to the search engine. Rather than waste time searching, I thought I'll place them all at one place. So here goes -

Read More
Why formatting of a ASP.NET page looks different when rendered through VWD & IIS

Why formatting of a ASP.NET page looks different when rendered through VWD & IIS

A puzzled ASP.NET developer asked on the ASP.NET Forums why the formatting of the same ASP.NET page looked different in Internet Explorer when rendered by Visual Web Developer & IIS seperately. When the entire source code is the same, why should they look different?

Dave Sussman has this insightful answer -
It's possible the application is running on IIS under a v4 application pool, meaning it will be run as though it were a v4 application, so the control rendering might be different. Two things to do:


1. On IIS machine, select the application and from the Actions tab on the right, select "Basic Settings ...". From the dialog that pops up, select the appropriate application pool (Classic .NET AppPool for an ASP.NET 2.0 application).


or


2. In Web.Config, in the <system.web> section add:


<pages controlRenderingCompatibilityVersion="3.5" />


That will ensure the controls are rendered as though the application was ASP.NET 3.5, so should be consistent on both machines.

A standard ASP.NET control may render a different kind of source depending on which Framework it targets.  For instance, ASP.NET 4 brings the following major rendering changes:

  • The Image and ImageButton controls no longer render a border="0" attribute.
  • The BaseValidator class and validation controls that derive from it no longer render red text by default.
  • The HtmlForm control does not render a name attribute.
  • The Table control no longer renders a border="0" attribute.
  • Controls that are not designed for user input (for example, the Label control) no longer render the disabled="disabled" attribute if their Enabled property is set to false (or if they inherit this setting from a container control).

Also see:

Read More

HTML5 at work

I plan to look out for & compile interesting, practical, real-world examples of HTML5 features that popular websites have started implementing. I hope all the browser manufacturers quickly agree on a common minimum set of HTML5 features & get HTML5 rolling.

* Google Docs now supports uploading an entire folder.

There is a nice explanation on StackOverflow about how this is achieved  by setting up an attribute "webkitdirectory" on a file input element.

Unfortunately as this attribute is proprietary, this feature doesn't work on all browsers.

* The Windows Live team recently released a faster new version of SkyDrive that incorporates HTML5 features.
"We’re using HTML5 for CSS animations, reflow animations and other features. We’re using local storage for various parts of our caching support. We’ve also worked on making our HTML more standards compliant, so that everything you see works in as many modern browsers as possible."

HTML5 versions of Hotmail & Bing are believed to be on the cards

6 of the world's top 10 websites currently use LocalStorage on the mobile while Bing & Google use it on the desktop browser as well. Twitter uses App cache.

(to be continued....)
Read More

Discover public transport in India with Google Transit

I first tried Google Transit in Seattle in 2008 for help with bus routes and wished it came to India as well. I was happy when it started covering local trains of the Hyderabad Multi Modal Transit System (MMTS) in 2010(it seems to discontinued now) and then wished it worked with bus routes as well. Being a believer in public transport as a way to protect the environment, I was glad to find out that Google Transit provides help with bus routes in Hyderabad, Bangalore, Chennai, Mumbai, Delhi.

It'll be great if they also show the cost & distance involved in different bus routes and bus types (buses in Bangalore & Hyderabad have multiple types of services with varying ticket costs)
Read More

Adobe BrowserLab vs Browsershots.org: online services for cross browser testing

Adobe BrowserLab is an online cross browser testing  service (free till April 12, 2012) that has more features than Browsershots.org, the other free online cross browser testing service. However, BrowserLab currently covers a smaller set of browsers & platforms than Browsershots -
  • Chrome 10 - Windows
  • Chrome 11 - Windows
  • Firefox 3.0  - OS X
  • Firefox 3.0 - Windows
  • Firefox 3.6 - OS X
  • Firefox 3.6 - Windows
  • Firefox 4.0 - Windows
  • Internet Explorer  - Windows
  • Internet Explorer  - Windows
  • Internet Explorer  - Windows
  • Internet Explorer  - Windows
  • Safari 4.0 - OS X
  • Safari 5.0 - OS X
Unlike Browsershots, BrowserLab requires registration. The screenshots are shown using Flash so Flash Player plugin 10.0.0 or higher is required and Javascript needs to be enabled in the browser.

Opening screen showing BrowserLab generate screenshots for a chosen Browser Set
Some unique features of BrowserLab:
- Preview full screenshots with multiple view options and customizable test settings.
- Rulers & Guides - pinpoint the exact location of any area within a screenshot.
- Adjust screen shot alignment - to compare specific page elements to each other, you can adjust the alignment of screen shots individually. This helps you account for shifts caused by different browsers, which align page content differently
- Screenshot delay - you can preview content that needs time to generate by pausing the rendering of a screenshot by up to 10 seconds. This lets you capture Ajax data, interface animations that occur after the page loads, and Flash movies after their initial loading process.
- BrowserLab for Firebug add-on - lets you preview temporary changes you've made to a page with Firebug. BrowserLab can be launched directly from Firefox to show how the page looks in Firefox & other browsers.
- Active Links in screenshots - Links in screenshots can be activated by holding down the Control or Command keys & clicking. BrowserLab will open the link & generate a screenshot, replacing the current screenshot.

Related:
HOW TO make web pages "cross browser"
Read More

Overview of Pluralsight course "A Beginner's Guide to the Microsoft Web Platform"

This video course by Michael Palermo is useful for beginners to ASP.NET and ASP.NET developers who are yet to try MVC & WebPages. The seasoned presenter explains the difference between Web Forms, MVC and WebPages. He demonstrates how to create a new site, a new page, a simple input form, a data-driven list with each of the models.

Some notes from the video -
- A modern definition of ASP.NET – "Microsoft’s family of technologies to enable web development"; includes Web Forms, MVC, Web Page models
- The Web Page model is a page-centric execution model, similar to PHP. Markup and code are both contained in the page itself, with helpers being leveraged to keep the code succinct.
- If you have VS 2010 SP1, you should be able to see MVC3 options
- A WebPage can be built with Web Matrix or VS 2010
- Site built with WebMatrix can be opened through VS
- WebPage has the extension .cshtml. Works even without extension in the URL.
- CASE methodology – Copy Always Steal Everything. Bazinga!

I found that the presenter speaks slower than most other Pluralsight instructors and this is actually good as non-native English speakers can follow it more easily.

Trivia: For fun, I increased the Playback speed  in the Windows Media Player (this option is available when you open the site in Internet Explorer) and was able to complete watching the video in slightly lesser time than the actual duration of 1 hour 47 minutes.

I like the fact the Pluralsight specifies the overall duration as well as duration of individual sections of a course as it helps in planning how you would want to watch a long course.
Read More

You can now use an actual image as Google Image search argument

There are times when you just have a picture (of a monument, person etc) but can't frame a keyword for Google to search on.

The search box on Google Images now sports a camera icon on the text box as an indicator that you can use to either upload an image from your computer (by just dragging & dropping with browsers supporting HTML5) or specify an url of an image that you want more info on. This image is then used as an search argument and the web is searched.

This kind of visual search is already available with the Google Goggles mobile app. Although the results are not perfect in all cases, this is a remarkable development in terms of bringing complex computer science topics to practical use.
Read More

HOW TO check what HTML5 features a browser supports

Now that I'm getting my feet wet in HTML5, I thought I should spend more time with features that are supported by all popular browsers rather than digging into HTML5 features that are implemented by only one or two browsers.
Table showing browser support for HTML5 Input types from W3Schools.com
I noticed a nice demo by Craig Shoemaker in the Pluralsight HTML5 Fundamentals course on feature detection with Modernizr that lists all supported features. Not finding any readymade sample similar to his script after some googling and lazy to write it on my own, I tweeted him to ask if could share his code.

I appreciate that he did and I got it working locally after tweaking the CSS a bit to ignore a few images that he had used in his slightly old (it uses Modernizr 1.6) original code. I hope to work on it further while I learn more about HTML5 & Modernizr.

Meanwhile, here is the HTML5 Feature detection script using Modernizr 1.6 (red indicates a feature is 'not supported' while green means 'supported')

Update: haz.io & the Modernizr Test Suite  show a much larger list of HTML5 features supported by a browser opening their test page.

Browserscope compares all browsers on supported HTML5 features in a single page. I wish the first row & column of the table there were frozen for better readability.
Read More

Online database of medicines used in India - MedGuideIndia.com

No matter how big or small your ailment, you should never try to play doctor. However, there may be times when you want to verify details of medicines you are consuming. Typically, Indian doctors scribble names of medicines that are almost illegible but surprisingly understandable by the pharmacist.

MedGuideIndia lets you check details of commonly used drugs in India by their brand name. Their search feature also shows brand names for a specified generic drug and you can find out which manufacturers sell that drug and at what cost. Composition of brands and comparative prices of various brands of same composition are shown as well.

This website, aimed mainly at medical professionals, is not an alternative for an actual doctor but it helps consumers to be well-informed.
Read More

HOW TO see how your web pages are ranking in realtime

Google tells us not to focus on PageRank or “PR”, the famous part of their ranking algorithm, as a metric for success. It acknowledges that PageRank being a number is easier to measure than relevance which is what actually counts. Google removed PageRank distribution data from Webmaster Tools but if you still want to see in real-time how your web pages are faring, use StatCounter analytics.

Note that the Search Rankings vary when searches are conducted from different parts of the world and at different times. The ranking you see displayed in your StatCounter account is the actual rank position that your visitor saw (for your web page) from the location they are in, at the time they did the search.


Currently, this information is only available for some Google searches so you will not see a ranking beside every Google query or beside non-Google queries.


In Google AJAX SERPs (Search Engine Results Page), when you click on a link Google redirects you to the search page and also passes some referrer information that analytics providers can use to track rank. For example, the cd= parameter contains the exact ranking position of the search listing within the SERP -
http://www.google.co.uk/search?sa=t&source=web&cd=4&ved=0CEk.... [trimmed]

This is possibly the method that StatCounter uses to identify the rank of a page.

Related:
Comparison of free Web Analytics tools
Read More

Learn IIS7 with Scott Forsyth's 52-week video lesson series


IIS expert Scott Forsyth has been running a video lesson series where he shares best practices, technical processes, tools of the trade, and occasional stories from working in the trenches. 25 of the planned 52 weekly, roughly 10 minute sessions are hosted on YouTube and currently available for free viewing. I checked out the "AppDomain - What it is and Why it's Important" & "IIS Virtual Directory vs. Application" sessions & found them very informative. I've jotted down some material from there & I'll add more as I finish watching the rest -

* When to use Virtual Directory vs Application -
- Use Virtual Directory when you want to point to a different physical path, when you want to share a physical folder across sites.
+ Use Application when you want:
- New application root or
- AppDomain isolation or
- Subfolder to be in new application pool (2 folders of same site targetting different .NET Framework versions can be set to different app pools)

- A vDir pointing to a single physical path can be shared by 2 sites. While accessing files under that shared folder, it appears as if this vDir appears physically under it.

+ 4 types of IIS Folders (note the icons in the image)
- Normal Folder
- Application Folder - use "Convert to Application" in the context menu. Lets you change Application pool but not physical path
- vDir only Folder - shares same app domain & app pool as root site
- vDir with Application - vDir with seperate application boundary

- On removing an Application, physical path remains but references are lost.

- AppDomains are a boundary set up by ASP.NET; they are controlled by IIS

- Usually there is a 1:1 mapping between app & app pool

+ AppDomain recycle consequences -
- First hit perf penalty when
- Any info in that appdomain (like inproc sessions) is lost

+ AppDomain Recycle causes -
- App Pool Recycle/server reset/reboot
- Touching or modifying web.config
- Touching anything in an application folder (bin folder or any of the 7 ASP.NET special folders - App_Code etc)
- Adding/deleting folders
- IIS settings that affect app pool
- IIS settings that affect web.config (change to Default Document in IIS causes app recycle as this file is referenced in web.config)
- Root machine.config & web.config changes (but modifying applicationHost.config will have no impact)
- Some failures at AppPool or AppDomain level
Read More
India IT - facts, numbers & trivia

India IT - facts, numbers & trivia

Numbers tell a story. Interesting tidbits about India IT from the newspapers (work in progress) -
  • Tata Consultancy Services has emerged as the largest recruiter over the last year, followed by Infosys and Wipro Technologies. Cognizant Technology Solutions India Pvt. Ltd. is ranked four in the list, while HCL Technologies Ltd came fifth. The other players who found place in the top 10 list are: Mphasis Ltd, Genpact Ltd, Capgemini India Pvt Ltd, Tech Mahindra Ltd, Aegis Ltd. .....women as a percentage of total new hires have reached more than 40 per cent over the last 3 years - NASSCOM rankings of top 20 IT-BPO employers. CIOL, 28-Jul-2011
  • Onshore software services (often derogatorily called 'body shopping') account for close to 45% of TCS' $8-billion revenues - ET, 1-Jul-2011
  • Telecom Regulatory Authority of India reported that at the end of March (2011) the country had just 8.8m broadband connections. By contrast, it boasts some 812m mobile subscribers. - Economist, 28-Jun-2011
  • "..cloud-services form 3 per cent of Infosys' income, and over 10 per cent if cloud- products are included."  - 25-Jun-2011
  • TCS's headcount stood at 1,60,429 as on April 1, 2010, which increased to 1,98,614 as on March 31 this year. - ET, 21-Jun-2011
  • Infosys had 130,820 employees during 2010-2011, from 88 nationalities. Of this, the number of software professionals stood at 123,811, while the rest were sales and support staff....the average age of its employees in 2011 stood at 27 years. The trend is similar with other IT service providers, including Wipro and TCS. - BS, 4-Jun-2011
  • Tata Consultancy Services is the largest private sector employer in the country. It had 1,63,700 employees as on June 30. But guess who's number 2? ....The fact that IBM has over one lakh people on its rolls (global workforce is about 400,000) in this country is one of India Inc's best-kept secrets.  ToI, 18-Aug-2010
  • Wipro .. "the first company in the world to achieve a level 5 CMM certification" ET, 8-May-2010
Also see: Indian software product start-ups that are making news
Read More

Florida Primary : The billionaire businessman Jeff Greene,



Florida Primary : The billionaire businessman Jeff Greene, who ran as a Democrat for the U.S. Senate, and multi-millionaire health care executive Rick Scott, who ran the Republican nomination for governor, have positioned as newcomers fresh ready to take on the establishment candidate, Democrat Kendrick Meek and Republican Bill McCollum, respectively.


Ordered List
  1. Polls predict "no", but the last word belongs to voters.
  2. Polls predict "no", but the last word belongs to voters.
  3. Polls predict "no", but the last word belongs to voters.
  4. Polls predict "no", but the last word belongs to voters.
Unord--
  • Polls predict "no", but the last word belongs to voters.
  • Polls predict "no", but the last word belongs to voters.
  • Polls predict "no", but the last word belongs to voters.
  • Polls predict "no", but the last word belongs to voters.
Quotes
Polls predict "no", but the last word belongs to voters. Polls predict "no", but the last word belongs to voters. Polls predict "no", but the last word belongs to voters. Polls predict "no", but the last word belongs to voters.

Polls predict "no", but the last word belongs to voters.

Polls predict "no", but the last word belongs to voters.

Polls predict "no", but the last word belongs to voters.

Polls predict "no", but the last word belongs to voters.

Polls predict "no", but the last word belongs to voters. Polls predict "no", but the last word belongs to voters.

Read More
Notes from Tech-Ed session "Team Foundation Server for Everyone"

Notes from Tech-Ed session "Team Foundation Server for Everyone"


The video recording of Martin Woodward's two sessions at Tech-Ed, NA 2011, Team Foundation Server for Everyone & The Accidental Team Foundation Server Admin provide an overview of TFS 2010 in about 2 hours. Some notes -

  • TFS installation choices - Basic, Advanced
  • TFS Basic Wizard - most compact TFS installation possible, provides only Source Control, WorkItem Tracking & Build services; can even work with SQL Server Express
  • No requirement for Windows SharePoint Services, SQL Server Reporting Services
  • Supports client installations - Windows 7, Windows Vista
  • Grows when you grow - Client OS, Single server, Multi-server farms
  • x64 Support
  • Supports Java development
  • Team Foundation VSSConverter command-line tool can migrate projects, files, version history, labels, and user information from your Visual SourceSafe database to your server for Team Foundation version control. This tool is included with TFS.
  • Helps with Build Automation & Continuous Integration
  • Work Item Tracking enables you track everything you need to manage: Tasks, Bugs, User Feedback, Feature requests
  • Rich integration in Visual Studio / Eclipse
  • Full featured synchronization lets you work in Microsoft Excel or Microsoft Project
  • Web Access lets you get to your work items
  • CodePlex uses TFS 2010 to manage 2.5 million users & 15000 Team Projects. Involves 4 Virtual Machine Application-Tier Farm with 10 Team Foundation Server Instances on 2 physical servers
  • Developer Division at Microsoft uses TFS - 42 instances, 19,700 unique users, 6,154 team projects, 7.9 million work items

Read More