Tuesday, 26 February 2013

Apache2 + Passenger Installation for rails on Ubuntu

There are some steps to install and configure apache2 & phusion passenger

To install Apache web server and its documentation & utilities on Linux machine using following commands

sudo apt-get install apache2




To Check the installation, Open web browser and type localhost or 127.0.0.1
It will look like this.

If you are using rvm, goto appropriate ruby version using rvm use 1.9.2(i'm having ruby version 1.9.2) and install passenger gem


gem install passenger

To install apache2 module in passenger type

passenger-install-apache2-module



If all depandencies are fullfilled, it will install otherwise it will give list of command you have to install to run passanger.

Snapshot of asking for dependencies. There are following dependencies.




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

Tuesday, 5 February 2013

Learn German --- Part 2

After our last session on the German alphabets lets move on to the Zahlen i.e Numbers. Well without numbers our conversation remains incomplete. So let's get started.


0- null
1- eins
2- zwei
3- drei
4- vier
5- funfe
6-  sechs
7-  sieben
8-  acht
9-  neun
10- zehn
11- elf
12- swolf
13- dreizehn
20-zwanzig
40- vierzig
100- hundert
1000- ein tousend

I am waiting till the time you learn all the numbers from 0 to tausend. I have given you the hint and the first step of the ladder now I am waiting till the time you learn them all. All the best. :)

BCCI 'Ban' English Players for cricket in India.

The Board Of Cricket Control Of Indian has reacted angrily to the Indian loss in the test series to England 1-2 earlier this winter, by banning a group of country players to practice in India.

English Players used to come to India to practice on spinning tracks and learn the skill used to play spin bowling. There trips are organized by Sachin Bajaj, The founder of Global Cricket School.  Around 30 players from Yorkshire, Durham, Kent, Hampshire, Glamorgan, Gloucestershire and Nottinghamshire were due to fly to India in the coming weeks.

But BCCI officials had other thoughts on their mind, they have instructed all ground authorities in Pune, where the GCS is based, that no foreign players must use their facilities without official permission. They seem to be very upset with how England Middle order Batsman Joe Root made his International debut on the spinning tracks on India. Joe Root had the experience of playing in Indian conditions  before he made his debut for England.

This is an extension of a row that arose before Christmas when the BCCI considered the England Performance Programme’s tour, running alongside the Test tour, as unsanctioned. Steven Finn bowled 23 overs in that match and Joe Root made 166 in that particular unofficial match.

But one doesn't really understand  that by employing so many foreigners in its IPL India has been
helping its international opponents for many years.


Monday, 4 February 2013

Rajnikant Jokes and Sms..


1. Dear Rajnikanth,
    Please switch off your AC.
    Regards.
    North Indians.

2. Rajinikanth in Tamil remake of Aamir Khan's Ghulam:
    Rajini runs on a railway track. The train is at a distance of one meter.
    So what happens?
    Obviously the train jumps off the track!

3. Breaking News:
    Rajinikanth died in the morning.
    However, he is fine now.

4. "Gangnam Style" is the result of Rajinikanth once practising horse riding for a shot in the movie, without a   horse.

Why Shahrukh is the best..

Must read this..Why ShahRukh Khan is the best :

1. Most number Of blockbusters with less number of flops.

2. Most number Of fan follwing in the world in Billions.

3. Most number Of brands endorsed by Shahrukh is approximately 50.

Sunday, 3 February 2013

Top 5 'Free' games on Android.


1. Temple Run 2 :  With over 11 lakh downloads from Google play Temple Run redefined mobile gaming. In mid January the sequel to 170+ million downloaded game was introduced into the market. And within 24 hours of the Launch of Temple Run 2,  it's downloaded figure was more than 6 million. The game was launched on Android  Google Play Store and Amazon marketplace for the Kindle about a week later after the release was made on IOS. Temple run 2 collectively has broken the record for downloads over 50 million across all categories breaking the record of Angry Birds.

Download Link: Click Here to download for free.


2. Zynga Poker: With over 38 million players playing this game Zynga Poker is the largest Poker site in this world. Play hands of Texas Poker with millions of real players on Zynga Poker the #1 social Texas Hold’em game on Facebook, Android, iphone .