Tuesday, August 31, 2010

Common Wealth Games

Please don’t cheer the 2010 loot-fest

Last sunday 29th August, Sunday's Time. Chetan bhagat's Influensive article about common wealth games and it's impact was really touching. we need think wisely before cheering CWG or neglect it. only around 35 days remaining. Let see what happens.

Read Complete Article

CWG website

CWG theme song

Wednesday, August 4, 2010

eLearning - new Way of Learning

After Long time on eleganceweb, Finally day has come, and make me think differently ans write some some thing and make this one as elegant.

In our blog we are scattered in every topics, some time new post come for elearning, than good SQL, than optimize your website or say Regular Expressions. So rather than writing on different topic, I decide to focus on eLearning,

In our one post, we have discusses basic information about many open source eLearning projects, which includes Moodle, Atutor, Calroline, Efront,Dokeos, open SIS(Student Information System) This all elearning projects covers many of elearning required features. But all reuqired features are not available in one project, So one has to intergrate with other system, to make eLearning perfect.

But Moodle is best to start, which has many plugin available, so simply installing moodle add-ons we can implement many features, like time table, attendance and many others.

Next post we will discuss moodle features available in moodl1 1.9 and available plugin/add-ons.

Saturday, May 1, 2010

How to write Concise Regular Expression ?

Hello every one!!!

Let's explore the power of regular expression.  As we are aware with that to validate many fields in the forms with specified format  regular expression is great option available with us.
i.e.
  • Phone number(XXX-XXX-XXXX)
  • Email Address
  • URL
  • Date format(dd-MMM-yyyy)
  • Field contains only alpha numerical characters
  • and many more.
 Regular Expression(RE) contains Quantifiers
  • "*" Matches Zero or More
  • "?" Matches Zero or One
  • "+" Matches One or More
"^" & "$" are start and end symbols of RE.
w ----> matches any word character, equivalent to [a-zA-Z0-9]
\W ----> matches any non word character, equivalent to [^a-zA-Z0-9].
\s ----> matches any white space character, equivalent to [\f\n\r\v]
\S----> matches any non-white space characters, equivalent to [^\f\n\r\v]
\d ----> matches any decimal digits, equivalent to [0-9]
\D----> matches any non-digit characters, equivalent to [^0-9]
{4} Specify Number of characters 

Examples:
a) There should not be “1” as first digit,?
^[^1]\d*$ ? this will exclude 1 as first digit.

b) There should not be “1” at any place?
^\d[^1]*$ ? this will exclude the 1 at any place in the sequence.  

c) Date
04-Jan-2010 --> ^\d{2}\-[A-Z][a-z]{2}\-\d{4}