Posts

Showing posts from September, 2010

HOW TO monitor performance and availability status of public APIs & websites

If you use Public APIs (like Bing Search, Google Maps APIs) in your applications, it helps to be aware of performance and availability issues that those services may face. Thankfully, there are some free tools that monitor popular APIs & websites - Api-status.com  tracks 40+ Public APIs every five minutes from one of its 49 global monitoring stations. Social Down Or Not tracks uptime and performance status of social networks Neustar Webmetics Lab project Crowdsourced Monitoring tracks the health of popular services by monitoring Twitter for mentions of downtime or performance problems.  (broken) Google Apps Status Dashboard shows performance information of its consumer services as well as services for organizations using Google Apps. Facebook has a Platform Live Status page that shows current status & reports issues that arise. Amazon Web Services Service Health Dashboard shows up-to-the-minute information on service availability & also RSS feeds for its multi

India ranks fourth in Internet usage

Image
Deepak Shenoy informs that as per Telecom Regulatory Authority of India (TRAI) data, India has nearly 10 million Broadband connections in India (not just users). As per current TRAI norms, a broadband connection should have a speed of 256 kbps. According to World Bank data , only 4.5% of the total Indian population has access to the Internet (as of 2008) while the world average is 24% India is however, the  fourth-largest country in terms of internet users and is turning out to be an important market. Also see: Browser Usage Stats for India

Discover patterns with Wordle

Image
Wordle is a fun web application for generating “word clouds” from text that you provide. It can also be considered a “information visualization” or a text-analytics tool. The clouds give greater prominence to words that appear more frequently in the source text. You can tweak your clouds with different fonts, layouts, and color schemes. The images you create with Wordle are yours to use however you like. You can print them out, or save them to the Wordle gallery to share with your friends. Wordle is implemented as a Java applet. It’s popularity can be gauged by the fact that its users have over 2,000,000 word clouds to  Wordle's public gallery . The tool’s creator Jonathan Feinberg built it while he was at IBM Research and he now works for Google. He has authored a chapter for the book Beautiful Visualization , where he explains how Wordle came to be & how it works. Below is the “tag cloud” of labels/tags (click to enlarge) that I’ve used on my blog, created with Wor

jQuery on CDN - Usage Stats

Image
Dave Ward has done an informal study on the top 200,000 sites identified by Alexa to find which of those sites use a public jQuery CDN. His findings : 47 of the Alexa top 1,000 include a Google CDN reference. 99 of the Alexa top 2,000 reference jQuery on the Google CDN. 6,953 of the top 200,000 sites include a script reference to some version of jQuery hosted on Google’s CDN. 989 of the Alexa top 200,000 sites reference jQuery UI on the Google CDN. Dave recommends keeping your site’s CDN reference updated to the latest compatible version of jQuery for more performance gains. This is because popular sites generally upgrade to the latest stable version & sites must reference exactly the same CDN URL in order to obtain the cross-site caching benefit . Google CDN hosts: jQuery (versions 1.2.3, 1.2.6, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1) jQuery UI (versions 1.5.2, 1.5.3, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0, 1.8.1, 1.8.2, 1.8.4)  File to reference looks like this

Your digital camera can land you in trouble

Some "smart" digicams can store location data in the photos you shoot. When you publish these photographs on public websites, this information can get into wrong hands. Computer World explains how - ..the Exchangeable Image File format (EXIF) specification adds metadata to common JPG and TIFF image files. Along with a thumbnail image of the photo, EXIF data stores details about aperture, shutter speed, focal length, metering mode, and ISO settings....There's also room for other information, such as the camera's make, model, and registration number, and in some cases, location data. ...many newer digital cameras and mobile phone cameras have built-in GPS receivers. The geotagging features in these newer devices are integrated and seamless, and your EXIF files may store latitude, longitude, time (in the form of Coordinated Universal Time or UTC readings), and even altitude data (which can be helpful for reconstructing a family vacation on a map). ..once you st

Using ASP.NET? You MUST read this

A security vulnerability (dubbed as 'Padding Oracle' Crypto Attack) has been identified in ASP.NET. Scott Guthrie has a detailed blog post that you must read & implement the advice in it to keep your ASP.NET applications safe. Excerpts - This vulnerability exists in all versions of ASP.NET ...all versions of ASP.NET are affected, including ASP.NET MVC. An attacker using this vulnerability can request and download files within an ASP.NET Application like the web.config file (which often contains sensitive data). At attacker exploiting this vulnerability can also decrypt data sent to the client in an encrypted state (like ViewState data within a page). ..it also impacts Sharepoint. This vulnerability impacts ASP.NET resources (not just ASPX pages).  You shouldn't need to make any changes to the custom error pages of IIS. When we issue a patch the workaround won't be required.  The workaround right now is a temporary one that can be used until the pat

Job ad in HTML source code

Image
While looking at the HTML source code of a page on The Register , I noticed a link to a job opening - Talk about targeted advertising!

AJAX is like steriods for web apps

An ever increasing number of web apps are utilizing AJAX to deliver an addictive user experience. Here's a list of apps/mash-ups I like that leverage AJAX - * YouTube Instant Messaging - developed by Stanford University student, Feross Aboukhadijeh, this is a predictive search results feature for YouTube that is inspired from Google Instant . This has in turn inspired Google Maps Instant . * Google Scribe - This Google Labs product provides autocomplete suggestions while you type, like the free desktop tool PhraseExpress After you install & activate the Scribe bookmarklet, it will start offering suggestions to complete sentences whenever you type within textareas or textboxes in any site. work in progress...

Think Mobile First

Image
Summary of the advice from the "Rethinking the Mobile Web" presentation on developing for the mobile web - 1. mobile first 2. use well structured, meaningful markup 3. the absence of support for @media queries is in fact the first @media query... 4. progressively enhance using JavaScript and @media queries 5. adapt content (especially images) appropriately for each device 6. compress content where possible, and don’t include unnecessary data This very creative presentation has floored even the inimitable PPK so much that he wants you to learn it by heart. A slide from Bryan Rieger's presentation

See what Google is suggesting - II

Image
I don't how Google's auto suggest algorithm works exactly but if it shows the most queried results matching the initial keywords without filtering those with negative connotations, its a time to worry, especially for parents & teachers . What impact can it have on teenagers & younger kids? SafeSearch screens only for sites that contain explicit sexual content leaving other sensitive topics. Displaying an auto-suggestion like "how to hack gmail password" when a teenager begins typing "how to" is sure to misdirect innocent minds & put ideas into their head. Autocomplete is on by default & disabling this under Preferences is the alternative for those who are concerned. Thank God, a suggestion like "how to make a bomb" (returns 81,700,000 results in 0.05 seconds, BTW) doesn't feature in the suggestion list...yet. Also see: See what Google is suggesting Look what Google Goggles visual search can do

HOW TO prevent 3rd-party browser extensions from being installed in IE

Image
There can be some sneaky programs that install not just what they explicitly claim to do but also things like toolbars & add-ons within IE. As most people agree to a software publisher's Terms & Conditions without reading them, they may have deviously add a line that says one of your kidney & your PC are their property. These add-ons known as browser helper objects may contain flaws such as buffer overruns which impact Internet Explorer's performance or stability. If you wanted to play safe & prevent any 3rd-party browser extensions from being installed at all in IE8, there is a setting, I came across on IEBlog , that you can use. Open GPEdit.msc (Local Group Policy Editor) using the Run option in XP or the Search bar in the Start menu. Open Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Advanced Page, and set the policy "Allow 3rd-party browser extensions" to DISABLED. Under the Intern

15 years of Internet Explorer

Image
Last month, Internet Explorer turned 15. Here's a timeline of IE releases based on excerpts from seattlepi's article on the history of IE - IE1 was born when Microsoft got a license from Spyglass Inc. for the source code of Mosaic -- the first graphical Web browser technology. Microsoft launched IE1 in August 1995 as part of the Windows 95 Plus! pack, a $49 add-on for the landmark operating system. IE2 came in November 1995, and by April 1996 it also was available for Windows NT, Windows 3.1 and Macintosh. Users could buy it as part of the Internet Starter Kit for Windows, which cost $20. It wasn't until Internet Explorer 3.0, in August 1996, that Microsoft introduced the "blue E" logo we all know now. IE4 was the Big Mama. Released in September 1997, Microsoft soon bundled it with Windows 98 -- a practice that took IE's market share from less than 20 percent in late 1997 to about 60 percent by 1999. IE4 introduced Microsoft's Trident layout e

Microsoft SharedView - free document & screen sharing software

SharedView lets you connect, share, review, and update documents with up to 15 people in a session in real time. Anyone can share, and the person sharing can give control to anyone else as long as they have  downloaded the current release of this program. Audio support is not currently available, so a telelphone call or an instant messaging program that supports Voice over IP (VoIP) can be used . Microsoft SharedView &  Dimdim  are yet to be listed on Wikipedia's article on comparison of remote desktop software .

HOW TO perform mouse actions with the keyboard

Image
Computer hardware can go wrong anytime. If your mouse ever conks out, your keyboard can turn a saviour. Mouse Keys is an accessibility feature present in a various Windows versions that can let you control the mouse pointer with the keyboard. You can press left ALT + left SHIFT + NUMLOCK keyboard shortcut to turn on or off  this feature. Once activated, the Mouse Keys icon will appear on the taskbar. You can then navigate in different directions using the numeric keypad's arrow keys. If it feels too slow at first, that's because most of us use the mouse so extensively that it makes us handicapped without it. As this Microsoft Support article informs almost all keys in the numeric keyboard can mimic some feature of the mouse Press the 5 key for a single mouse click and the plus sign key (+) for a double-click. To drag an object, place the pointer on the object and press the INSERT key to begin dragging. Press DELETE to release the object. To drag an object, place the

HOW TO dynamically generate a Word document with custom header & footer

Image
Way back in 2004, a project I was working on required a web page to be exported as a Word document (.DOC). Without relying on any components, I utilized the Office XML & HTML technique to implement this feature. I posted my sample on CodeProject to seek feedback. Over the years, I've received some generous comments & feature requests. Many wanted to know how to add a header & footer to the dynamically generated Word document. With the help of the Microsoft Office HTML and XML Reference , I devised a hack to add a lacklustre header and/or footer . Some folks wanted to customize the contents of the header & footer but when they tried with my hack that offered limited functionality, the header/footer text showed up in the document body to their annoyance. This July, an ingenious developer posted a hack that can overcome this problem, in the Comments section of my CodeProject article. His practical workaround was to pack the duplicating header/footer text inside a t

Web apps in less than 10 KB

There have been over 350+ submissions to the  10K Apart contest conducted by Microsoft & Event Apart that has a prize money of over $10K. The important rule was that participants should build a web app whose total file size including images, scripts & markup, shouldn’t be over 10K. All code must run client-side although 3rd-party Web services & JavaScript libraries like jQuery, Prototype & Typekit are allowed. The code must be standards compliant & usage of HTML5 is encouraged. The submissions are good learning material for developers who value speed & standards. They are listed on the home page. Sort on the Highest Rating & Most Comments options (generally good indicators of popularity) in the dropdown box there, to get started with viewing the apps & their source. Update (14-Sep-2010) - Hakim El Hattab's game measuring a measly 6.9KB has won him the grand prize of $3000 & other goodies. The entries of the other 3 Runners-Up are addictiv