Monday, January 17, 2011

Mule|error when using java64bit

Starting Mule...
/home/togaprod/apps/mule-standalone-3.0.0/lib/boot/exec/wrapper-linux-x86-64: 1: Syntax error: "(" unexpected

The solution is to rename wrapper-linux-x86-32 to sth else, eg wrapper-linux-x86-32___, so that it will allow mule to continue to load x86_64 wrapper

Wednesday, January 5, 2011

cron job in ubuntu

stephen@hosta:~$ cat /etc/cron.d/cronjoba
* * * * * usera /bin/bash /home/usera/scripa.sh
>/dev/null 2>>/home/usera/logs/error.log

In ubuntu, this is recommended way of using cron job rather than using crontab

Monday, January 3, 2011

source code control|Install git using Macports

Install git using Macports

001.#
002.# Git setup and configuration on Mac
003.# adapted from: http://arthurkoziel.com/2008/05/02/git-configuration/
004.#
005.
006.# first install macports if you don't have it installed
007.#
008.# http://guide.macports.org/#installing.macports
009.
010.# make sure your local ports tree is up-to-date
011.
012.sudo port selfupdate
013.
014.# find out what version of git is available
015.
016.port search git-core
017.
018.# list the port variants available for git
019.
020.port variants git-core
021.
022.# install git and add the variants git-svn and git bash completion scripts
023.
024.sudo port install git-core +svn+bash_completion
025.
026.# you can add "+doc+gitweb" to get the html form of the documentation
027.# and the web application that will serve git
028.
029.# Install bash completion:
030.
031.cp /opt/local/etc/bash_completion.d/git ~/.git-bash-completion.sh
032.echo "[ -f ~/.git-bash-completion.sh ] && . ~/.git-bash-completion.sh" >> ~/.profile
033.. ~/.profile
034.
035.# If you've already installed git using ports and want to know if there
036.# is a newer version of git available
037.
038.sudo port selfupdate
039.port outdated git-core
040.
041.# Installing a newer version of git
042.# The old version is de-activated but will stay installed so it is
043.# easy to deactivate the newer version and activate the older version
044.# if that proves necessary.
045.
046.sudo update git-core +svn+bash_completion
047.
048.# Git configuration
049.
050.# List of configuration variables:
051.
052.git config --help
053.
054.# list your current global git config properties
055.
056.git config --global -l
057.
058.# Global ignore file:
059.
060.echo ".DS_Store" >> ~/.gitignore
061.git config --global core.excludesfile ~/.gitignore
062.
063.# SVN-like shortcuts for often used commands:
064.
065.git config --global alias.st status
066.git config --global alias.ci commit
067.git config --global alias.co checkout
068.git config --global alias.br branch
069.
070.# Information about the author/commiter:
071.
072.git config --global user.name "Your Name Comes Here"
073.git config --global user.email you@yourdomain.example.com
074.
075.# If you want git to send patches via mail from git:
076.
077.git config --global sendemail.smtpserver smtp.my-isp.com
078.
079.# Colorized output:
080.
081.git config --global color.branch auto
082.git config --global color.diff auto
083.git config --global color.interactive auto
084.git config --global color.status auto
085.
086.# TextMate as the default editor:
087.
088.git config --global core.editor "mate -w"
089.
090.# Opendiff (FileMerge) to resolve merge conflicts:
091.
092.git config --global merge.tool opendiff
093.
094.# Change the font in gitk:
095.# Open ~/.gitk and add:
096.
097.set mainfont {Monaco 12}
098.set textfont {Monaco 12}
099.set uifont {Monaco 12}