Monday 22 July 2013

Basic ROR Installation packages

echo "Using apt-get to install OS packages so let's update it first ..."
sudo apt-get update -y

echo "Using apt-get to install git ..."
sudo apt-get install git -y

echo "Installing OS packages. You will be prompted for your password ..."
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev -y

echo "Installing OS packages. For Apache and passenger ..."
sudo apt-get install libcurl4-openssl-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev

echo "Install Postgres, a great open source relational database ..."
sudo apt-get install libmysqlclient15-dev mysql-server -y

echo "Install Redis, a key-value database ..."
sudo apt-get install redis-server -y

echo "Installing ImageMagick, good for cropping and re-sizing images ..."
sudo apt-get install imagemagick --fix-missing -y

echo "Installing RVM ..."
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm

echo "Installing ruby 1.9.3 p194"
rvm install ruby-1.9.3-p194

echo "Updating Rubygems ..."
gem update --system

echo "Installing Bundler Gem ..."
gem install bundler --no-rdoc --no-ri

echo "Installing Passenger Gem ..."
gem install passenger --no-rdoc --no-ri

echo "Installing Passenger apache2-module ..."
passenger-install-apache2-module -y

echo "Installing JAVA..."
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update && sudo apt-get install oracle-jdk7-installer -y

How to Install and use GIT (Some Very important and useful commands)

How to Install Git

Type the following commands in the terminal

  1.     sudo apt-get install git

How To Use Git

Type the following commands in the terminal

  • Adding a repository and initial committing
  1. git remote -v
  2. rm -rf .git
  3. git init
  4. git remote add origin ssh:<origin-path>
  5. git status
  6. git add .
  7. git status
  8. git commit -m “<message>”
  9. git push origin master

  • Pushing in the git after initial commit (Here I have mentioned the basic and most important commands needful while push in the repository)
  1. git status
  2. git add .
  3. git status
  4. git commit -m “<message>”
  5. git fetch
  6. git branch
  7. git rebase origin/master
  8. git push origin master

Few Commands to Install Ruby and Rails on your Ubuntu Machine and get ready to work within 15 minutes

How To Install Ruby

Write the following commands in the terminal one by one and follow the procedure.

  1. sudo apt-get install curl
  2. source /etc/profile
  3. source ~/.rvm/scripts/rvm
  4. type rvm | head -n 1
  5. curl -L get.rvm.io | bash -s stable
  6. source ~/.rvm/scripts/rvm
  7. rvm install 1.9.3
  8. rvm use 1.9.3

After completing step 9 restart the terminal



How To Run Ruby :

Type “irb” in the terminal



How To Install Rails :

Type the following commands in the terminal

  1. sudo -s chmod -R 777 /usr/lib/ruby/gems/1.9.1
  2. sudo -s chmod -R 777 /usr/bin
  3. gem install rails

    And Yes you are ready to field now.

    Don't forget to comment if you found this blog helpful. I will keep updating the basic short-cuts on technology we use in our day to day life.. Keep in touch and stay happy.

The Easiest Process to Install Rails in Windows

The Most and Easiest process to install total package of Ruby on Rails is to install railsinstaller. 
http://railsinstaller.org/

You can download the installation file of your convenient version from the given link and install it just by following some next next Procedure. And yes you are ready to jump to your work.
The Package Includes are


  • Ruby 1.9.3/1.8.7
  • Rails 3.2
  • Bundler
  • Git
  • Sqlite
  • Tiny TDS
  • SQl Server Support
  • Devkit

You can also use the same link to start working with your Mac OSX.
So start working now itself. http://railsinstaller.org/ .
and after that

After installing the kit, check out the Rails Guides for information about developing Ruby on Rails applications.
Another great resource is the Ruby on Rails Tutorial by Michael Hartl. While the tutorial is Mac-focused, it does provide great value and insight for Windows users as well. Additionally, there is about 15 hours of accompanying video to in case you're more visually-oriented.
If you need assistance with RailsInstaller, please see our Google Group where you can view posts from other users as well as ask questions. Any bugs with the installer should be reported on Github in the respective repositories ( railsinstaller-windows or railsinstaller-nix ). There is also a #railsinstaller room on Freenode where you can get help in real-time chat.

What is Scrum? (A Small Introduction)

SCRUM is a ordered formation of players in which the forwards of each team push against up against each other with arms interlocked and heads.
           SCRUM is a loose set of guidelines that govern the development process of a product, from its design stages to its completion. It aims to cure some common failures of the typical development process, such as:
  • Chaos due to changing requirements - the real or perceived requirements of a project usually change drastically from the time the product is designed to when it is released. Under most product development methods, all design is done at the beginning of the project, and then no changes are allowed for or made when the requirements change.
  • Unrealistic estimates of time, cost, and quality of the product - the project management and the developers tend to underestimate how much time and resources a project will take, and how much functionality can be produced within those constraints. In actuality, this usually cannot be accurately predicted at the beginning of the development cycle.
  • Developers are forced to lie about how the project is progressing - When management underestimates the time and cost needed to reach a certain level of quality, the developers must either lie about how much progress has been made on the product, or face the indignation of the management.
SCRUM has been successfully employed by hundreds of different companies in many different fields, with outstanding results.
You will find many similarities between SCRUM and Extreme Programming, but one of the major differences is that SCRUM is a fairly general set of guidelines that govern the development process of a product. For this reason, it is often used as a "wrapper" for other methodologies, such as XP or CMM (Capability Maturity Model) - that is, it is used to guide the overall process of development when using these other methodologies.

SCRUM VALUES

Scrum values generally are derived from the Agile values of Software Development.
  1. Individuals and interactions over processes and tools - processes and tools are helpful, but they will do you no good if the team does not communicate and collaborate in a constructive fashion.
  2. Working software over comprehensive documentation - documentation is important, but what's most important is to have working software.
  3. Customer collaboration over contract negotiation - you are not just looking to get a contract and get money that way - you are solving the customer's problem.
  4. Responding to change over following a plan - if the requirements or perceived requirements changed, so should the plans and design.
HOW DOES SCRUM WORK?

Building complex products for customers is an inherently difficult task. Scrum provides structure to allow teams to deal with that difficulty. However, the fundamental process is incredibly simple, and at its core is governed by 3 primary roles. 
  1. Product Owners determine what needs to be built in the next 30 days or less.
  2. Development Teams build what is needed in 30 days (or less), and then demonstrate what they have built. Based on this demonstration, the Product Owner determines what to build next.
  3. Scrum Masters ensure this process happens as smoothly as possible, and continually help improve the process, the team and the product being created.
While this is an incredibly simplified view of how Scrum works, it captures the essence of this highly productive approach for team collaboration and product development.
THE SCRUM GROUP
The SCRUM team mostly consists of 2 groups - the interested team, which consists of people who are interested, but who will not be doing the work, and the working team - people who are interested, and will be doing the work on the project.
A team typically has 6-9 working members, although SCRUM has been successfully used with more members. If there are more members than manageable, the project should be broken into multiple sub-projects, each focusing on one, self-contained area of work (one for QA, one for documentation, etc.). There should be people to act as bridges - that is, to attend the meetings of more than one SCRUM team, and act as a communication bridge between the teams. Members of teams that are closely related/involved with each other should sit in on the other teams' SCRUM meetings.

The Scrum Master

The team's leader is called the Scrum Master. He should be one of the members of the working team - that is, he should be one of the people who is actually doing the work on the project. The SCRUM Master measures progress, removes impediments, and leads the team meetings.

THE SCRUM TERMS

Daily Scrum
The Daily Scrum is a 15-minute time-boxed event for the Development Team to synchronize activities and create a plan for the next 24 hours. This is done by inspecting the work since the last Daily Scrum and forecasting the work that could be done before the next one.

Defintion of Done
Shared understanding of what it means for work to be complete, to ensure transparency. 
Development Team
The Development Team are the professionals who do the work of delivering a potentially releasable Increment of “Done” product at the end of each Sprint. Development Teams are structured and empowered by the organization to organize and manage their own work.
Increment
The Increment is the sum of all the Product Backlog items completed during a Sprint and all previous Sprints.
Product BacklogThe Product Backlog is an ordered list of everything that might be needed in the product and is the single source of requirements for any changes to be made to the product. The Product Owner is responsible for the Product Backlog, including its content, availability, and ordering.
Product Owner
The Product Owner is the person responsible for maximizing the value of the product, the work of the Development Team, and management of the Product Backlog.

Scrum
Scrum is a framework structured to support complex product development. Scrum consists of Scrum Teams and their associated roles, events, artifacts, and rules. Each component within the framework serves a specific purpose and is essential to Scrum’s success and usage.

Scrum Master
The Scrum Master is a servant-leader for the Scrum Team responsible for ensuring Scrum is understood and enacted. Scrum Masters do this by ensuring that the Scrum Team adheres to Scrum theory, practices, and rules.

Sprint
The heart of Scrum is a Sprint, a time-box of one month or less during which a “Done”, useable, and potentially releasable product Increment is created. Sprints have consistent durations throughout a development effort. A new Sprint starts immediately after the conclusion of the previous Sprint.

Sprint Backlog
The Sprint Backlog is the set of Product Backlog items selected for the Sprint plus a plan for delivering the product Increment and realizing the Sprint Goal. The Sprint Backlog is a forecast by the Development Team about what functionality will be in the next Increment and the work needed to deliver that functionality.
Sprint Goal
The Sprint Goal gives the Development Team some flexibility regarding the functionality implemented within the Sprint.

Sprint Planning Meeting
The work to be performed in the Sprint is planned at the Sprint Planning Meeting. This plan is created by the collaborative work of the entire Scrum Team.

Sprint Retrospective
The Sprint Retrospective is an opportunity for the Scrum Team to inspect itself and create a plan for improvements to be enacted during the next Sprint. The Sprint Retrospective occurs after the Sprint Review and prior to the next Sprint Planning Meeting. This is a three-hour time-boxed meeting for one-month Sprints. Proportionately less time is allocated for shorter Sprints.

Sprint Review
A Sprint Review is held at the end of the Sprint to inspect the Increment and adapt the Product Backlog if needed. During the Sprint Review, the Scrum Team and stakeholders collaborate about what was done in the Sprint. Based on that and any changes to the Product Backlog during the Sprint, attendees collaborate on the next things that could be done. This is an informal meeting, and the presentation of the Increment is intended to elicit feedback and foster collaboration.

The Scrum Guide
Scrum is a framework for developing and sustaining complex products. The Scrum Guide contains the definition of Scrum. This definition consists of Scrum’s roles, events, artifacts, and the rules that bind them together. Ken Schwaber and Jeff Sutherland developed Scrum; the Scrum Guide is written and provided by them. Together, they stand behind the Scrum Guide.
The Scrum Team
The Scrum Team consists of a Product Owner, the Development Team, and a Scrum Master. Scrum Teams are self-organizing and cross-functional. Self-organizing teams choose how best to accomplish their work, rather than being directed by others outside the team.

RESOURCES:

Sites

1.ControlChaos

SCRUM tutorial, XP with SCRUM, case studies, SCRUM certification
http://www.controlchaos.com/ 

2.SCRUM Alliance

Part of the Agile Alliance site family, and has a large article base on SCRUM.
http://www.scrumalliance.org/ 

3.Mountain Goat Software's SCRUM section

A good introduction to SCRUM.
http://www.mountaingoatsoftware.com/scrum/ 

Articles

1.The SCRUM Development Process

A detailed and definitive paper on SCRUM.
http://www.jeffsutherland.com/oopsla/schwapub.pdf 

2.Introducing an Agile Process

Covers the issues involved with introducing an agile methodology to a development team or company.
http://www.mountaingoatsoftware.com/articles/IntroducingAnAgileProcess.pdf 

3.Comparing RUP, XP, and SCRUM: Mixing a Process Cocktail for Your Team

Compares different agile methodologies, and helps you determine what methodology or mix of methodologies is right for your team.
http://www.netobjectives.com/events/download/rup_xp_scrum_pc_030326_ppt.pdf 

Books

1.Agile Software Development With SCRUM

A close look at SCRUM, with numerous case studies. A must-read for managers and developers alike.

2.Agile Software Development Ecosystems

A look at various Agile software development systems, including SCRUM. Numerous case studies, and interviews with some of the leaders in the Agile development arena.

SCRUM In Practice

1.The Upside of Downsizing

A case study on a situation where SCRUM helped to make a development project a success even though the development company was downsizing.
http://www.mountaingoatsoftware.com/articles/UpsideOfDownsizing.pdf 

2.Does Agility Work?

3.Agile Meetings

This is an article on agile meetings, with a large section on how agile meetings helped real-life teams to prevent problems by communicating with each other.
http://www.intp.us/risingl1/articles/STQE.pdf 

Tools

1.XProgramming Unit Testing Downloads Section

Links to downloads of unit testing software for most common languages.
http://www.xprogramming.com/software.htm 

Hi Friends, I Collected this little information from different resources and placed here the important ones. Its helpful for me, hope you will also find this helpful. I will definitely write more about Scrum after digging dipper. And Yes, Don't forget to give comments. 

How Can you Delete your Facebook Account Permanently

Sometime back one of my friend asked me “How can I delete my Facebook account permanently, whenever I am trying to delete, it is getting activated again”. So this post will answer that question and will explain why it was getting reactivated again.

Facebook allows you to temporarily deactivate your account which will hide all your information on Facebook from others that means no one will be able to access your information on Facebook. But this does not permanently delete your Facebook account, whenever you want you can again re activate your account and you can see all your data as it was. But what if you want to delete your Facebook account permanently?

This article will guide you on how to permanently delete a Facebook account with some other tips that need to be taken care before and after deleting your Facebook account. 

Steps to delete Facebook account permanently


There are some important things that you need to double check before deleting your Facebook account.
Recheck the below points before deleting Facebook account
  1. Take a backup of your Facebook data before deleting the account; it may be useful in future.
  2. Make sure that you check all services wherever you use Facebook Connect to login to the account, wherever possible try to create your login account with that service and avoid using Facebook Connect to login.
  3. Check all the plugins for your browser which auto login to your Facebook account, if possible disable or uninstall them.
  4. Check all your mobile devices apps wherever you use your Facebook account. If possible uninstall them or disable them so that they cannot use your Facebook account.
  5. Remove all of your linked account with Facebook one could be the Twitter. This will prevent you from accidental to your Facebook account after deleting the account.
Here is a link from Facebook Official Website regarding how to Delete Facebook Account Permanently.
Check it out here

Google Surveys Can make you professional Pollsters

Nate Silver and I are big fans of Google’s Consumer Surveys tool. “Perhaps it won’t be long before Google, not Gallup, is the most trusted name in polling,” wrote Silver, on how Google conducted one of the most accurate polls of the 2012 election cycle.
But I didn’t know how useful they’d be for media outlets until I was able to identically replicate a non-election Gallup poll for a fraction of the cost. Last week, Gallup released an important poll on the (relatively) anti-immigration attitudes of Americans, which was one of the best pieces of evidence I had seen demonstrating why immigration reform has been so difficult to pass.
It turns out that no one needed to wait for Gallup or any professional outfit to conduct these very important barometers of public opinion. It took me about 10 minutes to recreate Gallup’s own poll with Google’s Surveys wizard tool.
For the question “In your view, should immigration be kept at its present level, increased, or decreased?”, Google was within a few percentage points for every single answer, except for two (it was off 15 percent for Republicans who wanted to decrease immigration and 12 for Republicans who wanted to keep them at the “present level”).
chart_1
And, here’s the detailed table
GallupGoogle
Increase (Republicans)1616
Increase (Democrats)2928
Increase (Independent)2221
Decrease (Republicans)4661
Decrease (Democrats)2728
Decrease (Independent)3541
Present level (Democrats)3638
Present level (Republicans)4220
Present level (Independent)4134
It’s not clear whether Google was wrong for the answer on Republicans. Internet and phone surveys naturally have different responding populations, since the Internet skews younger and the phones skew older (people still have phones?). And some people may have an aversion to saying they want to decrease immigration over the phone, whereas they’re perfectly willing to let their inner xenophobe fly at a faceless computer screen.
There’s still a lot more testing needed to see when Google can replace professional polling operations. But it looks very promising enough to start using it now.
Every journalism school in the country should be teaching students the (very difficult) science of survey methods, so they can all start adding more objective evidence to their stories — because, thanks to Google, all of them have the capacity to be pollsters.
Color this writer excited, more deliciously informative stats to come.

Some Important Tips to Secure your Facebook Account

Online security has become the most important thing in today’s date may it be for security for your online banking, mail or Facebook account. Facebook is the top social networking site today and most of us are having account in Facebook. So it is important for all of us to know about the security of our Facebook accounts. Here is a list of tips to secure your Facebook accounts to protect yourself from being hacked. Everybody should learn these tips to secure Facebook accounts.

Create strong password for your Facebook account

Passwords are the gateway to your any online accounts so you should be careful while choosing your password. Password can be easily broken by brute-force and hit and trial method if it is simple and weak. So you should always choose a strong password with a combination of letters, numbers, special characters and mix of lower and upper case letters. As much as possible create a complex password and remember not to create passwords from common words and names. Always remember if you do not have a strong password chances of being hacked is more irrespective of whatever security guidelines you follow. Strong and Complex password rule is applicable for any online account.

Enable Secure Https Connection for your Facebook account

Always use the https connection for your Facebook account. Https connections are tightly secured and cannot be tracked over network trace as the data sent and received are encrypted and no one can read those data. If you would like to know more about https you can also readwhat is Https, which will clarify all your doubts about https connection. If you don’t know how to enable https on Facebook you can also read this article How to enable Https on Facebook.

Enable one time password in login approval

One time passwords are more secured way to access your online accounts. Facebook also provides the feature of one time password. One time password is used only once and the next time if you would like to login to Facebook you will get another password. This one time password is valid only for 20 minutes. You need to register your mobile number with your Facebook account to use this feature.

Enable Login Notification for your Facebook account

Enable login notification for your Facebook account so that you will be notified whenever a successful login is made to your Facebook account. This is really useful if at any point of time your account is hacked, you can take a quick action if you are notified.

Log out of Facebook

Make sure that you log out of your Facebook session after every login. Most of the people close the browser instead of logging out of Facebook. But this may lead to your account being hacked because just by closing the browser may not end your session if you have clicked remember me check box while logging in. So always make sure to log out of Facebook after completing your work.

Set security question properly

If you have not set a security question for your account then you must set it now from the account settings page. While choosing the security question be careful that you remember the question and answer to the security question. A tip for setting security answer: Never set a correct answer for the security question. This will make sure that no one will be able to answer your security question. 

Never click on “Remember me” on the login page when you are using Facebook from other’s computer

Remember me functionality enables the feature of one time login so that you need not login every time to Facebook. This will only work if you do not log out from Facebook and just close the browser, so next time when you open Facebook you will be directly logged in to your account. This is useful if you use FB on your personal system only. But make sure not to select the “Remember me” check box on login page when your use Facebook on others computer or at net cafĂ©.

Adjust your privacy settings properly on Facebook

Facebook gives you the option to customize your privacy settings. So always set the proper privacy settings to protect yourself from being abused online.

Read the Facebook Guidelines carefully and understand them

Read carefully the privacy policy of Facebook and understand them. These policies help you in setting proper privacy for your account. You can read Facebook’s privacy policy for more detail.

Be careful in adding a person to your friend list

Carefully accept any friend request as once you accept the friend request they will have access to all your information which you share with your friends. So be careful while accepting any friend request and verify the person first. Be careful while you are sharing any information and double check with whom you are sharing information.
These are some useful tips and bet practices that you should follow to protect your Facebook account. If you know any other tips please share them with your comments.