PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 2 3 4 5 6 7 8 Next

MySQL Data Types

[Author: Dingyu]   [Thu, 2015-01-15, 11:16]   [1348 views]


Please click below link to see details:
http://dev.mysql.com/doc/refman/5.7/en/storage-requirements.html ... see full article

Git: squash multiple commits into one

[Author: Dingyu]   [Mon, 2015-01-05, 14:51]   [1402 views]


b {color: blue;}Simply say, use git rebase -i to squash multiple commits into one:
Here is an example to explain details:
Step 1.
in the git branch "new_dev"
git log
commit a34f7353afc3c26945011d4d307f7d6d73101293
 ... New Development Step 03
commit a9fc95a625d830437fdf8d67f2cbeecd7d98933e
 ... New ... see full article

Make Git ignore mode changes (chmod).

[Author: Dingyu]   [Mon, 2015-01-05, 14:31]   [3129 views]


Use the command below to make Git ignore the mode changes:
git config core.filemode false
Or git config --global core.filemode false set globally
More details from git-config(1):
If false, the executable bit differences between the index and the working tree are ignored; useful on bro ... see full article

Git: dealing with line endings

[Author: Dingyu]   [Mon, 2015-01-05, 13:52]   [1267 views]


git config --global core.autocrlf true
git rm -r --cached .
git add -A
git commit (if neccessary) ... see full article

How to start Haigy

[Author: pengfeiw]   [Fri, 2015-01-02, 18:27]   [1421 views]


Haigy is using Ruby on Rails technology. Here is the steps to start Haigy on local machine.
How to ssh github repo
Step 1. Create a ssh key on your machine
ssh-keygen -t rsa -C "GitHub email"
Step 2. Add your ssh key to Github
cd ~/.ssh // go to ssh key path
pycopy < ~/.ssh/id_rsa.pub   // copy publ ... see full article

Programming Standards for PigRider Developers

[Author: Dingyu]   [Mon, 2014-12-01, 21:41]   [2362 views]


Self Documenting CodeOur goal as a team is to write our code in a programming style such that the code itself provides the bulk of the documentation. Any member of the team should be able to pick up a piece of code and immediately begin to understand its purpose just by reading the code. 
As you wri ... see full article

Set firewall rules for ports in Linux (Centos)

[Author: Dingyu]   [Thu, 2014-11-20, 13:22]   [1264 views]


vi /etc/sysconfig/iptables
service iptables restart
A setting example for /etc/sysconfig/iptables :
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
:INPUT AC ... see full article

Intro to R

[Author: lzhang]   [Wed, 2014-10-15, 12:26]   [1844 views]


Common command for R: 
Clear all objects in R:  rm(list=ls())
Find frequency of a vector:
table(v)  ## v is the vector 
Find a memory size of a object
object.size(o)   ## o is an object
Find common elements in two vectors
intersect(x,y)   # x,y are two vectors
Tell whether a string is a substri ... see full article

Deploy Rails 3.2 project to production.

[Author: Dingyu]   [Tue, 2014-10-14, 21:54]   [1830 views]

Ruby on Rails

This is a memo for the process to deploy Rails 3.2 project to production.
Step 1:
open the file /config/environments/production.rb
You should see # config.assets.precompile += %w( search.js ) in this file. Uncomment it and change the content in parenthesis to what you need. This configuration tells ... see full article

Selected java questions

[Author: lzhang]   [Tue, 2014-09-23, 11:18]   [1680 views]


The difference between abstact class and interface: 
Abstract class: Abstract class should be inherited to be used with the key word "extends" and relation is "is-a". A class can only inherits one abstract class. The fields in abstract class has no restriction. The methods in abstract class can be a ... see full article
Previous 1 2 3 4 5 6 7 8 Next

Recent Most Popular Blogs: