[Author: Dingyu] [Thu, 2014-09-18, 16:07] [1817 views]
Six steps to hook PigRiderUser into a new PigRider Application:
I have created GitHub repositories for pigrider.com website, please click here to see more details.
1. Edit Gemfile in the new application and add this line:
gem 'pigrider_user', :path=>'../pigRiderUser'
Then run bundle install to insta ... see full article
[Author: Dingyu] [Thu, 2014-09-18, 15:51] [1384 views]
pigrider.com is our early project for learning Ruby on Rails. Its source code may be somewhat native. However, it is a very good resource.
Here are GitHub repositories for it:
Pigrider Blogs Website (http://blogs.pigrider.com/):
Pigrider Tools Websit ... see full article
[Author: ming.lian] [Tue, 2014-09-02, 11:09] [1205 views]
Here is the scenario:
If you have 50 private property data with 50 getters in your class, and you do not know which getter you need to call at the run time. For example: getName(), getSex(), getAddress(), etc. You may need to call some of those 50 but not all, to fill your data fields, then you have ... see full article
[Author: Dingyu] [Fri, 2014-08-29, 15:44] [1865 views]
Make Oracle VM VirtualBox guests share the host's VPN connection (follow below settings):
Oracle VM VirtualBox Manager -->
Adapter 1 -->
Attached to: --> NAT
Adapter 2 -->
Attached to: --> ... see full article
[Author: Dingyu] [Fri, 2014-08-22, 23:17] [2719 views]
Gem Paperclip "file -b --mime-type" doesn't work well in Windows.
[paperclip] Error while determining content type: No such file or directory - file -b --mime ...
[paperclip] Content Type Spoof: ... (["image/jpeg"]), content type discovered from file command: . See documentation to a ... see full article
[Author: Dingyu] [Mon, 2014-08-04, 23:37] [1244 views]
Google Style Guide
https://code.google.com/p/google-styleguide/ ... see full article
[Author: Dingyu] [Wed, 2014-06-11, 15:01] [1260 views]
git branch -m OldName NewName
If you want to rename the current branch, you can simply do:
git branch -m NewName ... see full article
[Author: Dingyu] [Fri, 2014-06-06, 14:56] [1304 views]
git config --global core.quotepath false ... see full article
[Author: Dingyu] [Mon, 2014-05-26, 22:37] [1536 views]
git rm -r --cached .
git add .
git commit -m ".gitignore is now working" ... see full article
[Author: lzhang] [Wed, 2014-04-09, 15:21] [2119 views]
1 Java connection to MySQL
To start, let us work on a simple java application(no web) connected to MySQL database(other database will be similar).
MySQL http://dev.mysql.com/down ... see full article