Monday, August 2, 2010

Merging Git with SourceGear DiffMerge

I develop in PHP and C#, switching between OSX (Native Bash) and Windows (Cygwin), so I try to make my solutions as DRY and cross-OS simple as possible. For a great solution for Cygwin checkout Alexander Grob post on the same issue, mine is a slight variation of Alex's.

$ nano ~/.bash_profile
DiffMerge_Path="/cygdrive/c/Program Files/SourceGear/DiffMerge"
if [ -d $DiffMerge_Path ]

In order to make everything cross-OS, I add the DiffMerge binaries to the Path, above is an example on how to add it to Cygwin, adding it to the .bash_profile will ensure that it gets added automatically every time I log in.

Sunday, July 18, 2010

PEAR and PECL in Dreamhost Shared

I decided to use MongoDB for one of my PHP projects, you can follow Phillip Napieralski instructions for a fast build and setup. But I wanted a little more, I wanted to do it directly from PECL, nothing beats seeing your packages listed when you type $pecl config-show.

For starters you need to connect to your server via SSH, I have both a Mac and a PC so I guess am I hybrid. In windows I recommend you download Cygwin, don't forget to select the ssh package. And get ready to start typing into a black console. I'll assume that you haven't install anything in your account.