Posts

Showing posts from February, 2012

The Best Old Indian TV Serials Of All Time

Image
Here is the list of great old Indian TV Serials. Some of them were my favorite when I was a kid. The list is not in a particular order, it depends on every person's taste. Again this list is as per my view, so if someone else knows a better serial, you can put it in comments. 1) Malgudi Days -it is  based on the works of   R.K. Narayan , in total  Thirty-nine episodes of Malgudi Days were telecast on   Doordarshan. 2) Vikram and Betaal -  The series contained stories from  Indian mythology  that aim at teaching kids lessons of life while entertaining them. In total there are 26 episodes. 3) Mahabharat -  This 94-episode series originally ran from 2 October 1988 to 24 June 1990.  It was produced by  B. R. Chopra  and directed by his son,  Ravi Chopra . 4)  Bharat Ek Khoj - Discovery Of India  -   is a 53-episode  television  series that dramatically unfolds the 5000 year histo...

Google Graphs or Charts

Image
I don't know if you have noticed this new cool and very much needed feature (for those who love maths) in Google. I came to know this today. If you have studied maths at any point of time in your life, and have studied curves in mathematics, then this is for you. When we were in college, in order to realize what would be the shape of a particular linear equation graph, we had to solve it first. Now recently Google has revealed this new feature wherein Google can plot the graph for you. And major thing is, the graphs generated are interactive enough that they have different colors for different graph equations, scale can be modified, just by using mouse you can zoom-in and zoom-out to graph. So no need of specialized graph-plotting tools for simple single-variable equations. To check out - go to google.com , Type in your function for which you want to generate graph,  e.g.  cos(x) and press "Search". You will see cosine function's graph is plotted. Isn't ...

Caps Lock Key Detection in JavaScript and ExtJS

Image
Sometimes in web-pages or in standalone applications containing password fields, we need to show "CAPS LOCK" key-press alert/notification, alerting user from typing wrong password. Main logic behind detecting whether Caps-Lock is pressed or not is very simple, i) First check, what is the ASCII value of inputed character, and if SHIFT key is pressed or not, ii) then there are two conditions     a) if ASCII value of character inputed is between 65 to 90 (both inclusive as these are ASCII values of "A" to "Z") and shift not pressed     OR     b) shift is pressed and ASCII value of character is between 97 to 122 (corresponds to "a" to "z"), then for above both conditions CAPS-LOCK must be pressed, so we can give Caps-Lock Notification to user. iii) For other conditions Caps-Lock is not pressed, so we can remove Caps-Lock notification (if previously given, if any). 1) In ExtJS , How to achieve this for a simple password Text...