Posts

Showing posts from March, 2015

WhatsApp Calling feature now Available on Android, coming soon for iOS and WP users

Image
If you've been sitting, wishing and waiting for your Android handset to let you make free data-based calls, then today's your lucky day. Android users can finally make voice calls on WhatsApp . The feature was there from the version 2.11.528 but thanks to a quiet but major internal update which made it possible for all users to get the most awaited feature. The feature has been teased for months, with the update hitting select users a month ago. Now, however, it seems it's available to all, with the latest version of WhatsApp offering a new, cleaner layout, with three tabs for Calls, Chats, and Contacts. As you'd expect, you simply click the Calls tab and select a contact to start talking. The company has not yet confirmed about the Update officially. I think WhatsApp will let everyone know about the feature through their official blog . Voice calling for the app should also be coming to iOS and Windows Phone in the near future. It should also be noted that these are ...

Red Layered Hibiscus

Image
Red Layered Hibiscus  Hibiscus is a genus of flowering plants in the mallow family, Malvaceae. It is quite large, containing several hundred species that are native to warm-temperate, subtropical and tropical regions throughout the world. Member species are often noted for their showy flowers and are commonly known simply as hibiscus, or less widely known as rose mallow. The genus includes both annual and perennial herbaceous plants, as well as woody shrubs and small trees. The generic name is derived from the Greek word ἱβίσκος (hibískos), which was the name Pedanius Dioscorides gave to Althaea officinalis. Text via: Wikipedia

Black and White Shadow

Image
In the beginning it was all black and white. But now things are not always quite so simple. Some people like to say one thing and mean another. And me being who I am, I'm very straightforward. Everything is very black and white for me. I don't really like playing mind games...

Fibonacci Range [Shell Program]

echo "Enter the range" read r a = 0 b = 1 c = 1 echo "Fibonacci series:\n" echo "$a $b \c" while [ $c - lt $r ] do c = `expr $a + $b` if [ $c - le $r ] then echo "$c \c" fi a = $b b = $c done echo "\n"

Fibonacci Series generator [Shell Program]

echo "Enter the Number of Terms" read n a = 0 b = 1 count = 1 n1 = `expr $n - 2` if [ $n - eq 1 ] then echo "The Fibonacci series is:" $a elif [ $n - eq 2 ] then echo "The Fibonacci series is:" $a $b else echo "The Fibonacci series is:" echo "$a $b \c" while [ $count - le $n1 ] do c = `expr $a + $b` echo "$c \c" a = $b b = $c count = `expr $count + 1` done fi echo "\n"

Factorial of a Number [Shell Program]

echo "Enter a number" read n f = 1 if [ $n - eq 0 ] then echo "Factorial is: 1" else while [ $n - ge 1 ] do f = `expr $f \* $n` n = `expr $n - 1` done echo "Factorial is:" $f fi

To the Power [Shell Program]

echo "Enter the Value of x" read x echo "Enter the Value of y" read y r = 1 while [ $y - gt 0 ] do r = `expr $x \* $r` y = `expr $y - 1` done echo "The value of x^y is:" $r

Frequency of a Character in a String [Shell Program]

clear echo "Enter the String:\c" read str echo "Enter the character:\c" read ch n = 0 i = `expr "$str" : ".*"` while [ $i - ne 0 ] do  m = `echo $str|cut -c $i`   if [ "$m" = "$ch" ]; then   n = `expr $n + 1`   fi  i = `expr $i - 1` done echo "The frequency is :" $n  

Calculator [Shell Program]

clear ans = Y while [ "$ans" = "Y" ] do clear echo "*****MENU*****" echo "1.ADD" echo "2.SUBSTRACT" echo "3.MULTIPLY" echo "4.DIVIDE" echo "5.MOD" echo "0.EXIT" echo "Enter your Choice" read ch case $ch in 1 ) echo "Enter the 1st number"    read num1    echo "Enter the 2nd number"    read num2    s = `expr $num1 + $num2`    echo "The result:" $s ;; 2 ) echo "Enter the 1st number"    read num1    echo "Enter the 2nd number"    read num2    s = `expr $num1 - $num2`    echo "The result:" $s ;; 3 ) echo "Enter the 1st number"    read num1    echo "Enter the 2nd number"    read num2    s = `expr $num1 \* $num2`    echo "The result:" $s ;; 4 ) echo "Enter the 1st number"    read num1    echo "Enter the 2nd number"    read num2    s = `expr $num1 /...

Display the Calendar [Shell Program]

clear echo " Enter the Year: \c" read year echo " Enter the Month: \c" read month m = 0 case "$month" in 1 | jan ) m = 1 ;; 2 | feb ) m = 2 ;; 3 | mar ) m = 3 ;; 4 | apr ) m = 4 ;; 5 | may ) m = 5 ;; 6 | jun ) m = 6 ;; 7 | jul ) m = 7 ;; 8 | aug ) m = 8 ;; 9 | sep ) m = 9 ;; 10 | oct ) m = 10 ;; 11 | nov ) m = 11 ;; 12 | dec ) m = 12 ;; *) echo $month   "is not a valid Month! Showing Calendar for " $year ;; esac if [ $m - ne 0 ] then cal $m $year else cal $year fi

Find a Pattern from a File [Shell Program]

echo "Enter pattern to be searched:\c" read pname echo "Enter file name :\c" read fname echo "Search for $pname from file $fname:" grep "$pname" $fname

Resource Test [Shell Program]

echo "Enter the Resource name" read fname if ( test -s $fname ) then ls -l $fname if ( test -d $fname ) then echo "It is a directory" else echo "It is a file" fi if ( test -r $fname ) then echo "It is a readable" fi if ( test -w $fname ) then echo "It is writable" fi if ( test -x $fname ) then echo "It is executable" fi else echo "No such resource present" fi