Install Ruby Mysql adapter and connect to Mysql server

First, intall mysql and activerecord.

Then establish a connection to mysql server.

Test ruby with Rspec

Here is a ruby program that accept credit card number and return the type of the credit card.

The creditcard gem can be installed with the command

How to install rails on Win32

My ruby version is 1.8.6, when I run "gem install rails", it said "ERROR, HTTP Response 302".

The problem is that the gem version is too old to install any software. Download new ruby with the url.

How to use Git stash

When you have suspending changes, but you don't want to commit because the changes are not finished. But you need a clean working copy right now.

This is a situation you can use stash. It saves the unfinished changes and gives you a clean working copy to do the emergency job. After the problem is resolved , you can reload the unfinished changes and go on working on it.

This is a situation you can use stash. It saves the unfinished changes and gives you a clean working copy to do the emergency job. After the problem is resolved , you can reload the .

Git Tree Objects

There are four types of objects in Git: blob, tree, tag, commit. Git stores content like UNIX file system, the blob is the normal files, and tree is the directory.

Normal files like txt, png, source code etc.

Understand the git diff output

Type the following command to print the diff between the HEAD version and the version two commits ago.

Basic commands of Git

The very first command you will use is "git init". You can type it at anytime, no matter whether it is an uninitialized project or its already initialized. Just run it.

This command creates a new repository, strictly speaking, the command is creating a private repository. You do all the works in the private repository and share code in public repository.

This command creates a new repository, strictly speaking, the command is creating a private repository. You do all the works in the private repository and share code in public .

Introduction to Git

Git is a distributed version control system. First written by Linux Trovalds for linux source code management after break down between Linux and BitKeeper.

It was designed to manage the Linux kernel source code, but its also a powerful tool to track change history of any document, like the configuration files, the system managers will appreciate it, or a folder of documents, a writer may like this.

It was designed to manage the Linux kernel source code, but its also a powerful tool to track change history of any document, like the configuration files, the system managers will appreciate it, or a folder .

What is Git file lifecycle

When you works with files in Git, the states of the files is important.

Let first init a git directory

Using ack search source code

ack is a source code searching tool written in perl. Its a grep like tool designed specially for searching source code. You can get it from the home page ack.

ack home page

Previous Page 1 ... 10 11 12 13 Next Page