Posts

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...

14 Important Standard Regular Expressions

Regular Expressions are mainly used for pattern matching i.e. mostly UI level validations like E-mail-Id, password, number-field validations, etc., and are language independent, concise and really interesting (when they are tough to form). I am not going to tell you how to form or use regular expression (also known as regex) as there are many really good websites available out there like - http://www.regular-expressions.info http://regexlib.com/ http://coding.smashingmagazine.com/2009/06/01/essential-guide-to-regular-expressions-tools-tutorials-and-resources/ How to use :- In Javascript, to search a pattern in a string variable, use - var stringToMatch = "this is my pattern"; if(stringToMatch.search(/pattern/i)!= -1) alert("Pattern matched."); else alert("Pattern not matched."); OR in java, make use of  java.util.regex.Pattern and  java.util.regex.Matcher OR simply String class's methods matches(), replaceAll() and split(). Fo...

Get All ChildNodes of a TreeNode in ExtJS - Deep Tree Search

***Getting All ChildNodes (including at all levels of a TreeNode) in ExtJS*** Hi friends, Here is a function which I had written to get all children of a TreeNode i.e. Both immediate (can also be obtained from TreeNode. childNodes ) and all innerNodes (grand, grand-grand, etc.) till leaf-level i.e. till the end all the nodes. As said, With TreeNode's property "childNodes" we get only first level child nodes array. Consider if you want array of all the nodes under the given node, then following function will help you. /** * Following Function recurses through all nodes under the given node, * and return an Array of AsyncTreeNode objects (containing itself) * (Note - If the given Object is not desired in returned array can be easily * removed, using splice/slice methods of JS Array methods) */ getDeepAllChildNodes = function(node){ var allNodes = new Array(); if(!Ext.value(node,false)){ return []; } ...

Hotel California And Pehla Nasha Mix - Excellent Music

Image
Here is one excellent instrumental, I think its a mix of the famous "Hotel California" by Eagles and Pehla Nasha (Hindi) from Jo Jeeta Wohi Sikandar... by the way...music is awesome and video rocks... Now watch these two videos too... The Excellent Hotel California Instrumental - Here is original - Hotel California Video - And Pehla Nasha (Hindi) Video -