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

OpenGL matrix stacks and current matrix

There are 3 major matrix stacks in OpenGL, the modelview, projection and texture matrix ... of the stacks. And the result becomes the current matrix. Repeat this operation you get a matrix stack ... stacks. There is also a color matrix stack, but it's for advanced use. How the stacks grow? At first ... it was an identity matrix at the bottom of the stack, it's the only one matrix and also the current

How to compress content with mod_deflate in Apache

Compress data is beneficial both in the delivery speed and saving bandwidth. Most modernnow web browser support the compressed transfer encoding.

The mod_deflate in Apache 2.x can help you here. Its now a standard module in Apache. You can find the module in {Apache_Home}\modules\mod_deflate.so.

Apache RewriteEngine url rewrite tutorial

The mod_rewrite is one of the most powerful feature in Apache server. It allows you change the request to anything you like. And is one of my favorite toy about Apache.

A block of rewriting rule should look like this:

Perl: Difference between list and array

In Perl, array and list are different thing, list is an ordered collection of scalars, array is a variable that contains a list, but array is not a list.

But in a dynamic language, array and list should not has any difference. Language like PHP, there is only one thing: associate array. In some strongly typed language , list and array indeed are different. A list usually linked with pointer, don't support random access, an array is an array of element can be randomly accessed by index.

But in a dynamic language, array and list should not has any difference. Language like PHP, there is only one thing: associate array. In some strongly typed language , list and array .

Previous Page 1 ... 10 11 12 Next Page