Saturday, 23 February 2013

Improve your Programming Skills.

Follow Naming Conventions

The naming conventions are guidelines that focus on the program's physical structure and appearance. They make the code easier to read, understand and maintain.

As you know that variables, constants etc. make an important part of a application be it made in any programming language like VB, Ruby, JavaScript, Java etc. you must follow naming conventions while naming them. 

Most common guideline that you get is objects should be named with consistent prefix that makes it easy to identify the type of object. 



Ensure Clarity of Expressions

Expressions carry out the specified actions. Thus they must be clearly understood by the users. There should not be any compromise with the clarity of Expressions.

a) Avoid programming skills/tricks whose intent is not clear to the reader.

b) Never sacrifice clarity of expressions even if changed  code.

Use Commands and Indentation  

Comments play a very important role as they provide internal documentation of a program. Indentation makes the statements clear and readable. Sometimes, comments and indentation are not used to save on program writing time , but remember there should not be any compromise on readability and understandability. Comments are described in different ways in different languages.

a) Insert explanatory comments wherever applicable since they explain  the role and purpose of the other identifiers, variables, constants and statements.

b) Use comments to help identify programming constructs  (such as If...End If, Select.....End Select, Loops etc. ) greatly enhance program understanding.

c) Always indent statements to highlight nesting of groups of control statements.

 Insert Blank Lines and White Spaces

VB script learn
The insertion of blank lines and blank spaces at appropriate spaces also enhance the program readability. The blank lines are inserted to separate declaration blocks, comment, boxes and procedures. Normally, blank lines are inserted before labels, variables declaration.

Though formatting style does not make a difference  for the compiler but the reader face difficulty in understanding the program. Therefore, use of free formatting should be avoided and indentation and blank lines, spaces will be used while writing a program.      

"When program formatting is done to make a program more readable , it is called Prettyprinting.

Friday, 22 February 2013

RVM Installation on Ubuntu

Ruby Version Manager (RVM) makes it ridiculously easy to install and switch between multiple Ruby versions on OS X and Linux.

This tutorial  is only for Ubuntu

Set up Git
Download and install the latest version of Git with Synaptic.

I suggest you install git-core, git-gui, and git-doc.

sudo apt-get install git-core








Install RVM

You could go out and install Ruby from source yourself, but I recommend installing it instead using the Ruby Version Manager (RVM), for installing RVM first you have to install curl

sudo apt-get install curl

Then, install RVM following the instructions on the RVM website. Or follow our instructions.

bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)



echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc


source ~/.bashrc

Now you can see the rvm version by typing

rvm -v

Wooohoo ! RVM is installed.


Install Ruby


Before installing Ruby, first you have install the dependencies by typing the following command

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion

Now you can use use rvm to download, compile, and install Ruby by the command.

rvm install 1.9.3

rvm use 1.9.3 -default

The first command (rvm install) triggers the download/compile/install process, and installs Ruby and its gems under ~/.rvm, safely away from everything else on your system. The second command (rvm use) sets the 1.9.3 version of Ruby as the active default.

You can verify 1.9.3 is available by typing

ruby -v

Install Rails

After setting up ruby, we have to install Rails framework by typing

gem install rails -v 3.2.6

After setting up ruby, we have to install Rails framework by typing

rails -v










Thursday, 21 February 2013

Ubuntu for Android

Canonical is about to launch Ubuntu for Android. Now Carry just the phone, and connect it to any monitor to get a full Ubuntu desktop with all the native apps you want, running on the same device at the same time as Android. Magic. Everything important is shared across the desktop and the phone in real time. isn't it fun ?




It’s a lightweight way to be – everything seamlessly available with the right interface for the right form factor, with no hassles syncing. It just works, the way Ubuntu should. Lots of work behind the scenes to make both systems share what they need to share, but the desktop is a no-compromise desktop.

This isn’t the “Ubuntu Phone”. The phone experience here is pure Android. This announcement is playing to a different story, which is the convergence of multiple different form factors into one most-personal device. Naturally, the most personal device is the phone, so we want to get all of these different personalities – phone, tablet and desktop – into the phone. When you need a desktop, you connect up to a screen and a keyboard. When you need a tablet, you dock to some very elegant glass.




Just for fun, Canonical integrated the Ubuntu TV experience too – so this isn’t just a desktop in your pocket, it’s a media centre too.

Monday, 11 February 2013

The Parable(Story) of Pencil.-- Inspirational

The Emotional Story of Eraser and Pencil  


Pencil: I'm sorry.

Eraser: For What? You didn't do anything Wrong.

Pencil: I'm sorry because you get hurt because of me. Whenever I made a mistake, you are always there to erase me. But as you remove my mistakes, you loose a part of yourself and you become smaller and smaller each time.

Eraser:  That's true. But I really don't mind, I was created to do this. I was made to help you when you make any mistake. Even though one day i will be gone and you will replace me with a new one. I am happy with my job, you don't worry, just can't hate seeing you sad.

There are 5 things you need to know, "Always remember them and never forget and you will become the best pencil you can be."

1. You will be able to do many great things in life, only if you allow yourself to be held in someone Else's hand.

2. You will experience a painful sharpening from time to time, but you will need that in order to become a better pencil.

3. You will be able to correct any mistakes you might make.

4. The most important part of you will be what's inside you.

5. On each and every surface you are used on, you must leave a mark. No matter what the condition   is you must continue to write.

The pencil understood, promised to remember and went into the box with a purpose in the heart.

I found this conversation between pencil and eraser very inspirational. Parents are like erasers and their children are like pencils. They're always there for their children cleaning up their mistakes.

Sometimes, along the way they get hurt, become older ans pass on. Though their children will find someone new (spouse) but they are always happy with what they can do for their children and become sad when they see their loved ones sad or in trouble.

Relate the above 5 points with your life, Allow this Parable of Pencil to encourage you to know that you are a very special person and only you can fulfill the purpose you were born to accomplish. Never get discouraged in life and feel you are useless and your life is insignificant only you can change it.


Thank you very much Guys.

Friday, 8 February 2013

Future concept -- Transparent iPad.

The future concept is ipad really has a mysterious look to it. The future ipad is supposed to be transparent. The new look of the ipad is designed by artist Ricardo Afonso.


Afonso designed/created a digital 3D model of what he calls a "futuristic tablet concept based on
the Apple iPad," and is selling his files on digital media supply company Turbo Squid's website.


We have seen already in lot of techno fairs about the new inventions to be made and how technology has reached, so nothing is impossible and we also believe that this future concept iPad will will the market may be when iPad 11 rolls out in the market.

So, guys what do you say? Can we Have your comments?

Thursday, 7 February 2013

How to reduce weight.

We all want to shed off some pounds from our body, and we want to see instant results...Don't we. So, the big question is HOW TO REDUCE WEIGHT. Well, you can loose upto 3 pounds or more in a week's time by having this healthy diet. Mentioned below are some of the foods that will help you not only to reduce weight but also stay healthy.

citrus fruits


Citrus Fruits: Citrus fruits include oranges, lemons, limes and grapefruits, in addition to tangerines and pummelos. Not only are the citrus fruits are delicious and refreshing, they contain high concentrations of Vitamin C (ascorbic acid) that has a fat burning quality and reduces the effectiveness of fat or dilute fat by which it is easier to flush out of your system. Vitamin C also works on cholesterol deposits. By adding Citrus Fruits to your daily diet, you will increase your ability to get rid of fat, and also control your cholesterol levels.


Apple

Apple: The most famous phrase heard about apple is that an apple a day keep doctor's away, Well the phrase has changed to an apple a day keep fat away. Eating an apple before your meals can lower your intake of calories, this is all because a nutrient present in apple 'pectin' that extracts your body's bad fat and flushes out of your system.

Cucumber


Cucumber: Cucumber is the forth most cultivated vegetable in the world ans is a well known fat reducing agent,
because of the rich contentof water present in cucumber it is very good for your hair and skin.
Researchers found that a compound called sterols present in cucumbers may help reduce cholesterol levels.

Papaya


Papaya: Papaya is a well known fruit that is known to solve most of the digestion problems through its enzyme content known as papain, which is commercially used as meat tenderizer. Papaya has a rich fiber content makes you A Guaranteed Loser(ofcourse talking about weight). By having a Papaya diet you are guaranteed to lose weight. papaya is single-handedly responsible for melting literally kilos off the body.

Garlic


Garlic: Garlic is well known over the years for its health benefits. Garlic provides a significant protective quality to cells which help to reduce fatty deposits. When taken, it brings down the levels of fat. Garlic has an antibiotic property to it and can be used to cure many ailments. It is supposed to stimulate the nervous system to release the adrenalin hormone – thereby increasing the metabolism. High metabolism can in turn help you to burn calories and lose weight.