PigRider Blogs

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

Enable cross domain in Chrome

[Author: Dingyu]   [Tue, 2015-06-30, 21:50]   [1267 views]


1. Close all opened Chrome windows
2. Open a terminal and get into the directory for "chrome.exe"
3. chrome.exe --disable-web-security ... see full article

Good Article: Capturing Audio & Video in HTML5

[Author: Dingyu]   [Sat, 2015-06-20, 17:50]   [1260 views]

HTML Javascript

Good Article: Capturing Audio & Video in HTML5
http://www.html5rocks.com/en/tutorials/getusermedia/intro/ ... see full article

Solution for "bundle install" SSL problem on Windows

[Author: Dingyu]   [Wed, 2015-06-17, 00:21]   [1327 views]

Ruby on Rails

if you run "bundle install" on Windows and get error like:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certific ate verify failed
then the article below may help you:
https://gist.github.com/fnichol/867550 ... see full article

Nice Bash Script Tutorials

[Author: Dingyu]   [Fri, 2015-03-13, 16:25]   [1199 views]


http://linuxconfig.org/bash-scripting-tutorial ... see full article

Serving Rails pre-compressed assets through Apache

[Author: Dingyu]   [Thu, 2015-02-26, 03:07]   [1392 views]

Ruby on Rails Linux

Serving Rails pre-compressed assets through Apache
Use the below configuration template in the file /etc/httpd/conf/httpd.conf to configure a Rails application.
<VirtualHost *:80>
    ServerName mywebsite.com
    DocumentRoot /my/rails_app/public
    <Directory /my/rails_app/public>
        Al ... see full article

MySQL Data Types

[Author: Dingyu]   [Thu, 2015-01-15, 11:16]   [1319 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]   [1376 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]   [3048 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]   [1240 views]


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

Programming Standards for PigRider Developers

[Author: Dingyu]   [Mon, 2014-12-01, 21:41]   [2331 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
Previous 1 2 3 4 5 6 Next

Most Popular By This Author: