Command line Fu

Playing with GraphViz and MathGenealogy data

Math in Genealogy is a great project (donate online). Sven Köhler from Potsdam, Germany has written a python script for visualizing the database, which I’m going to try. First step is to clone the git repo: $ git clone git@github.com:tzwenn/MathGenealogy.git His instructions are quite simple: $ ./genealogy.py –search 38586 # 30 seconds $ ./genealogy.py –display […]

Playing with GraphViz and MathGenealogy data Read More »

Hello GNU profiling

The profiling tool in GNU is called gprof. Here is a short, boring example of how to use it. 1) Write hello world in C (hello.c) #include int foo() { int b = 54324; int j; for (j=0; j < 1000000; j++) { b = b^j; } return b; } int main() { int a

Hello GNU profiling Read More »

How to manage PATH in Mac OS X

I use two ways to manage paths in Mac OS X: ~/.profile /etc/paths.d I use the first option when trying things out, and the second for managing the path more permanently. Example And example of the using /etc/paths.d to include the git executable in PATH: edit /etc/paths.d/git Add line: /usr/local/git/bin When you start a new

How to manage PATH in Mac OS X Read More »