Monday, November 16, 2009

Dr. SMS – a m-Health Information System for Kerala

I just saw information about this useful service from Kerala Government.
Dr. SMS – a m-Health Information System for Kerala
You can send SMS to 9495949000 in the following format to get information about hospital facilities.

More details are on the original link of Kerala IT Mission (Click here). I tried the link for Dr.SMS and it was not working. So thought of posting this in my blog.

The format for SMS are :
1. Find Hospital : Input - > Health <Pincode> <facility>
     Output : <Hospital Name, Address, phone>
2. Hospital Facilities : Input - > Health <Hospital name>
     Output: <Hospital phone No, Major facilities>

and send SMS to 9495949000.

Of course, the facility is working but only during day I assume. My SMS at 10 P.M was replied at 9 A.M next morning.

Wednesday, November 11, 2009

Location-Aware Browsing in Firefox 3.5

     Firefox 3.5 have incorporated the facility to let the websites identify the location of the site visitor. The technique is that, when the user browse a site that use location-aware browsing, Firefox will ask for user consent and send details like IP address to Geolocation service providers and get the location. This may not be accurate in India, but they were able to point out my location accurately to the city :-)

     More details are in Firefox site http://en-us.www.mozilla.com/en-US/firefox/geolocation/ where you can also see the demo.

    I will do a demo and post the code on my site later.

Friday, October 9, 2009

Gartner Research note on Adobe ColdFusion

See the research note by Gartner on Adobe ColdFusion Past, Present and Future.
http://www.adobe.com/enterprise/pdfs/Adobe3112.pdf

Tuesday, October 6, 2009

Adobe released ColdFusion 9 at Adobe Max

Folks, for your information, Adobe has officially released Adobe ColdFusion 9 at Adobe MAX today.
http://www.adobe.com/products/coldfusion/

Tuesday, September 8, 2009

Create a twitter reader using JQuery

  The year of JavaScript has come and JQuery is one of the powerful JavaScript libraries out there. We could perform a multitude of tasks using these libraries. I have created a twitter reader that displays a user's timeline using JQuery. The implementation is very simple.
See the code below.  
 
<html>
<head>
<title>Twitter Reader</title>
<script src="jquery.js" language="javascript"></script>
</head>
<body align="center" bgcolor="#181C21">
<script language="javascript" type="text/javascript">
$(document).ready(function(){
var twitterURL = 'http://twitter.com/users/show/prasanthkumars.json';
$.getJSON("http://twitter.com/statuses/user_timeline/prasanthkumars.json?callback=?",
function(data){
$.each(data,function(i, item){
$("<div style='color:#865833'>"+item.text+"</div>").appendTo("body");
});
$("div").filter(function(index){
return (index % 2 == 0);
}).css("background","#1FC8FE").css("width","30%");
$("div").filter(function(index){
return (index > 0 && index % 2 != 0);
}).css("background","#CBF2FF").css("width","30%");
});
});
</script>
<div id="twitterResponseDiv" name="twitterResponseDiv" style="font-family:verdana;color:green;background-color:#CBF2FF;width:30%">
Twitter Response Div
</div>
</body>
</html>
I have included the jquery.js file to the page and then used the getJSON method to load JSON data using an HTTP GET request. On receipt of data, it is looped and the text is displayed in different divs which is attached to the body element.

For showing different colors for alternating divs. I have used the filter function available with JQuery.

References :
  1. http://docs.jquery.com/Getjson
  2. http://apiwiki.twitter.com/Twitter-API-Documentation

Thursday, August 13, 2009

Remove unnecessary blank lines from the ColdFusion output

ColdFusion outputs blank lines on the data sent to the browser which can sometimes get higher that it will be many times higher than actual output lines. In some cases this will eat into the bandwidth. To avoid this, check the 'Enable Whitespace Management' under 'Settings' in ColdFusion Administrator. This will remove many of the extra spaces, tabs, and carriage returns that ColdFusion might otherwise persist from the CFML source file. Enabling this could lead to a minor performance issue with the CF Server, but compare with the bandwidth gain and decide to use this feature.

Friday, July 17, 2009

OpenSearch - enabling your site with OpenSearch

You must have seen list of search engines in mozilla search bar (usually to the right end after address bar). There are a list of sites like Google, Yahoo, Wikipedia on the list from which we can choose the default search engine. These sites are OpenSearch enabled. The Mozilla browser can directly send search queries from the search bar to these sites. There are lot of sites which are OpenSearch enabled. We can easily identify a site is OpenSearch by looking at the arrow icon on the search bar in Mozilla.
If the site is OpenSearch enabled, there will be glow for the arrow icon
You can click the arrow to see the option "Add " so that the search the site will also get listed in the search engine list. You can search that site by directly entering the search term on the mozilla browser search box and selecting the site from the list of search engines.
More details, the demo and how to enable OpenSearch on the following link http://www.prasanthkumars.com/searchdemo.asp.