Fix the iOS code signing issue using Jenkins

This week I configure the Jenkins to work with Mac and try to build iOS applications. Unfortunately, I got the code signing issues, either I use Xcode plugin or Xcode command line tool. 

The core reason is Jenkins is running as daemon mode in Mac, just assume it is a different user – "Jenkins", so it will not have access to the keychain or provision profile as you log in using your credentials, which cause the code signing issue.

[Read more…]

Change and Update WordPress URLS in Database

After migrating a WordPress site to a new URL either to a live production or a testing development server, the new URL strings in the mysql database need to be changed and updated in the various mysql database tables.

This method just uses the whole mysql database rather than a WordPress export/import from within, and is best suited for a straight swap. So you would copy all the WordPress files/folders to the new destination, set the correct ownership to those files,  then do the database switcheroo.

[Read more…]

Solving npm error: Cannot find module ‘are-we-there-yet’


# npm install cordova-ios

module.js:340 throw err; ^ Error: Cannot find module 'are-we-there-yet'

at Function.Module._resolveFilename (module.js:338:15) at

Function.Module._load (module.js:280:25) at Module.require

(module.js:364:17) at require (module.js:380:17) at Object.<anonymous>


at Module._compile (module.js:456:26) at Object.Module._extensions..js

(module.js:474:10) at Module.load (module.js:356:32) at

Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

[Read more…]

How to install Python 2.7.6 on CentOS 6.3

How to install Python 2.7.6 on CentOS 6.3

(6.2 and 6.4 okay too, probably others)

CentOS 6.2 ships with Python 2.6.6 and depends on that specific version. Be careful not to replace it or bad things will happen. If you need access to a newer version of Python you must compile it yourself and install it side-by-side with the system version.

Here are the steps necessary to install Python 2.7.6. Execute all the commands below as root. Either log in as root temporarily or use sudo.

[Read more…]

Restart Unicorn with Capistrano

The following tasks is what I use for starting  , stopping, restarting and my unicorn server:


desc "Start unicorn"
task :start, :except => { :no_release => true } do
  run "cd #{current_path} ; bundle exec unicorn_rails -c config/unicorn.rb -D -E production"

desc "Stop unicorn"
task :stop, :except => { :no_release => true } do
  run "kill -s QUIT `cat #{shared_path}/pids/`"

desc "Zero-downtime restart of Unicorn"

task :restart, :except => { :no_release => true } do

run "kill -s USR2 `cat #{shared_path}/pids/`"


Configuring Cisco on Mac Os through the console port

You'll need to get a usb-serial adapter and then connect with a console cable. 

Connecting to the Console Port with Mac OS X. To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps:
Step 1. Use the Finder to go to Applications > Utilities > Terminal.

Step 2. Connect the OS X USB port to the router.

Step 3. Enter the following commands to find the OS X USB port number:

[Read more…]