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

Set firewall rules for ports in Linux (Centos)

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

Linux

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.
*filter
:INPUT AC ... see full article

Deploy Rails 3.2 project to production.

[Author: Dingyu]   [Tue, 2014-10-14, 21:54]   [1767 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

Manual of the PigRider Global Layout Engine: PigRiderLayout

[Author: Dingyu]   [Thu, 2014-09-18, 16:08]   [2675 views]

Ruby on Rails

Six steps to hook PigRiderLayout into a new PigRider Application (click here to see how to make this PigRiderLayout engine):
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_lay ... see full article

Manual of the PigRider User Engine: PigRiderUser

[Author: Dingyu]   [Thu, 2014-09-18, 16:07]   [1998 views]

Ruby on Rails

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

pigrider.com GitHub Repositories

[Author: Dingyu]   [Thu, 2014-09-18, 15:51]   [1641 views]

HTML CSS Javascript Ruby on Rails Git

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/):
https://github.com/Superlentil/pigrider.com_blogs
Pigrider Tools Websit ... see full article

Make Oracle VM VirtualBox guests share the host's VPN connection

[Author: Dingyu]   [Fri, 2014-08-29, 15:44]   [2238 views]

Others

Make Oracle VM VirtualBox guests share the host's VPN connection (follow below settings):
Oracle VM VirtualBox Manager   -->
    Settings   -->
        Network   -->
            Adapter 1   -->
                Attached to:   -->   NAT
            Adapter 2   -->
                Attached to:   --> ... see full article

Solution: gem Paperclip "file -b --mime-type" doesn't work well in Windows.

[Author: Dingyu]   [Fri, 2014-08-22, 23:17]   [3091 views]

Ruby on Rails

Gem Paperclip "file -b --mime-type" doesn't work well in Windows.
Error messages:
[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

Google Style Guide

[Author: Dingyu]   [Mon, 2014-08-04, 23:37]   [1425 views]

Others

Google Style Guide
https://code.google.com/p/google-styleguide/ ... see full article

Rename a local Git branch

[Author: Dingyu]   [Wed, 2014-06-11, 15:01]   [1452 views]

Git

git branch -m OldName NewName
If you want to rename the current branch, you can simply do:
git branch -m NewName ... see full article

Handle Asian characters in file names in Git

[Author: Dingyu]   [Fri, 2014-06-06, 14:56]   [1504 views]

Git

git config --global core.quotepath false ... see full article
Previous 1 2 3 4 5 6 Next

Most Popular By This Author: