Wednesday, May 5, 2010

Yellow Beauties of University of Peradeniya



University of Peradeniya is the heir to the oldest university tradition in Sri Lanka. It's great culture amazing beauty make it one of a kind. Most of the times photos can describe the beauty. Sometimes it enhances the beauty. But this is not true with Pera beauty. There is no photograph which can catch the entire beauty of the University of Peradeniya.
 Yellow Flowers" (I don'tknow the scientific name) as we call it is a special feature in Peradeniya. During the time of February to May it starts to blossom.

Friday, February 19, 2010

AJAX

Ajax is something interesting and also the new trend. It is not another programming language but, a way to change the content of a web page without reloading it. JavaScript contains some objects relevant to working with AJAX.
ajax.js
function getXMLHttp()
{
var xmlHttp

try
{
//Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}
catch(e)
{
//Internet Explorer
try
{
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
alert("Your browser does not support AJAX!")
return false;
}
}
}
return xmlHttp;
}
function MakeRequest()
{
var xmlHttp = getXMLHttp();

xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState == 4)
{
HandleResponse(xmlHttp.responseText);
}
}

xmlHttp.open("GET", "ex1.php", true);
xmlHttp.send(null);
}


function HandleResponse(response)
{
document.getElementById('ResponseDiv').innerHTML = response;
}

Sunday, November 8, 2009

Today I started to use addsense in my Blog. I hope it'll be nice. Visit my blog and see whether there is something in your interest. :)

Thursday, November 5, 2009

මගේ බ්ලොග් පිටු‍ව

සිංහල ලියන එකත් හරි අපුරු ‍වැඩක්. හැබැ‍යි ඉ‍ගෙන ගන්නකම් ටිකක් අමාරුයි.

LATEX

What is LATEX?

LaTeX is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.
LaTeX is not a word processor! Instead, LaTeX encourages authors not to worry too much about the appearance of their documents but to concentrate on getting the right content. For example, consider this document:

Welcome to LaTeX World
November 2009

This is my first LaTeX Program.

To produce this in most typesetting or word-processing systems, the author would have to decide what layout to use, so would select (say) 18pt Times Roman for the title, 12pt Times Italic for the name, and so on. This has two results: authors wasting their time with designs; and a lot of badly designed documents!

LaTeX is based on the idea that it is better to leave document design to document designers, and to let authors get on with writing documents. So, in LaTeX you would input this document as:

           \documentclass{article}
\title{Welcome to LaTeX World}
\date{November 2009}
\begin{document}
\maketitle
This is my First LaTeX program.
\end{document)