Apache, PHP and MongoDB on Mac OS X 10.6 Snow Leopard

MongoDB (from “humongous”) is a scalable, high-performance, open source, schema-free, document-oriented database.

There’s a lot of buzz brewing about it, so I wanted to give it a try with PHP on my development Mac. The following is how I went about installing Apache, PHP and MongoDB on Snow Leopard. You must have installed the Xcode developer tools (found on the Snow Leopard install DVD) and MacPorts for this to all work.

(more…)

2010-01-02 [, , , , , , ] 2 Comments

Remove startup scripts on Ubuntu

sudo update-rc.d -f script_name remove
2009-10-20 [, , ] No Comments

Convert git repository to mercurial

Ensure that the mercurial convert extension is enabled:

nano ~/.hgrc

Inside that file add:

[extensions]
hgext.convert=

Save. Now do:

hg convert my-git-repo

This will create a new directory called my-git-repo-hg. This will appear empty at first, so do this:

cd my-git-repo-hg
hg checkout

All of your files will appear and you’re ready to go.

2009-10-17 [, , ] No Comments