Monday, August 8, 2011

What is happening in Javascript multiplication?

I am just surprised by the output returned by the multiplication in Javascript.

Try 15.95 * 3 = ?.

It really works for all the other values. Why I am getting these kind of things?

Friday, November 20, 2009

How to download video's from youtube.com

In this section i'll be explaining how to download video from you tube.

For downloading you need Firefox, Firefox add-on tamper data.
  1. Goto Youtube.com
  2. Now activate tamperdata from Firefox tools menu.
  3. Play the video you want to download
  4. Now open the tamper data opened window.
  5. There apply a filter "get".
  6. then you will get a link.
  7. right click on that link and go to open in new tab.
  8. Copy the url to notepad.
  9. Remove all the non-necessary parameters from the URL and the needed parameters are the following - video-id, t, fmt
Next you need to specify the video format and i am listing the available formats here. you need to specify this in fmt parameter.
  1. [nothing] = flv
  2. 17 = 3gp
  3. 18 = mp4
  4. 22 = High Definition[if available]
Now copy the modified url and paste this in address bar, then navigate. you'll get the video.

Tuesday, July 28, 2009

A simple Quote

ചക്ഷു ശ്രവണ ഗലസ്തമാം ദര്ടുരം
ബക്ഷനതിന്നപെക്ഷിക്കുന്ന പോലെ
കാലഹിനാ പരിഗ്രതസ്ഥമാം ലോകവും
ആലോല ചെതസ്സാ ഭോഗങ്ങള്‍ തേടുന്നു

Tuesday, July 7, 2009

Religion And Leadership

Not so long ago (and maybe still in some parts of the world) religious, political and scientific power was held by the samepeople. Their goal was simple: to hold the truth. The Spiritualleaders were the deciders regarding just about everything. It was a time when new ideas coming out of new genius minds were set aflame… literally… at the take. Fear from losing control was present in the leader’s minds, as they used every possible means to keep the population away from thinking on their own. Their goal was to propagate a set of beliefs that encouraged us to behave along with the group, using what I like to call persuasive armed marketing”. The fundamental goal seemed to be good at the time, since it is important to maintain a good social structure. The difficulty arose when the individual feeling of freedom was hindered for the greater good of a few leaders, instead of the greater good of the entire group.

Thursday, December 4, 2008

What is Ajax?

Ajax (Asynchronous JavaScript and XML) is a method of building interactive applications for the Web that process user requests immediately. Ajax combines several programming tools including JavaScript, dynamic HTML (DHTML), Extensible Markup Language (XML), cascading style sheets (CSS), the Document Object Model (DOM), and the Microsoft object, XMLHttpRequest. Ajax allows content on Web pages to update immediately when a user performs an action, unlike an HTTP request, during which users must wait for a whole new page to load. For example, a weather forecasting site could display local conditions on one side of the page without delay after a user types in a zip code.

Google Maps is one well-known application that uses Ajax. The interface allows the user to change views and manipulate the map in real time. Ajax applications do not require installation of a plug-in, but work directly with a Web browser. Because of the technique's reliance on XMLHttpRequest, early applications worked only with Microsoft's Internet Explorer browser, but most other browsers now support Ajax.

Applications created with Ajax use an engine that acts as an intermediary between a user's browser and the server from which it is requesting information. Instead of loading a traditional Web page, the user's browser loads the Ajax engine, which displays the page the user sees. The engine continues to run in the background, using JavaScript to communicate with the Web browser. User input or clicking on the page sends a JavaScript call to the Ajax engine, which can respond instantly in many cases. If the engine needs additional data, it requests it from the server, usually using XML, while it is simultaneously updating the page.

Ajax is not a proprietary technology or a packaged product. Web developers have been using JavaScript and XML in combination for several years. Jesse James Garrett of the consultancy firm Adaptive Path is credited with coining the name "Ajax" as a shorthand way to refer to the specific technologies involved in a current approach.

Wednesday, November 26, 2008

Vision - Is this an illusion?

what makes us to feel that we are seeing, hearing, touching, smelling etc?

xmlHttpObject

function getRequestObject() {
if (window.ActiveXObject) {
return(new ActiveXObject("Microsoft.XMLHTTP"));
} else if (window.XMLHttpRequest) {
return(new XMLHttpRequest());
} else {
return(null);
}
}