This was… not straightforward. There’s a couple of Python modules out there for this. I ended up using
sqlalchemy. I needed to edit some files in
/usr/local/etc, and then symlink them to
In this post I’ll discuss how to make simple flowcharts in LaTeX using TikZ. Probably the best collection of TikZ examples can be found at TeXample.net, but there are other helpful examples like these two PDFs, here and here. In case you’re wondering, TikZ is a recursive acronym “TikZ ist kein Zeichenprogramm,” a reminder (in German) that it is not an interactive drawing program.
In this post I’ll describe how to get LaTeX up and running on a Mac. First of all, it’s not as easy as just going,
brew install latex, and then saying,
pdflatex kapow.tex, but it’s not as hard as doing literally anything on Windows either.
Quick Note: When you’re bash scripting and you need to pipe some text into some process, you can use
echo with the
-n flag to suppress the
echo‘s complimentary endline , or you can use
printf, but using
printf is more portable. Some machines implement
echo differently and don’t support the
-n flag. I found this advice and a longer explanation at this message board.
I got the following error when trying to use
package ‘gstat’ is available as a source package but not as a binary
Warning in install.packages :
package ‘gstat’ is not available (for R version 3.1.1)
This is more of a personal note regarding the
- To create a sparse image:
$ hdiutil create NAME -volname NAME -type SPARSE -fs hfs+j
$ hdiutil attach NAME.sparseimage
- To add data to the drive:
$ mv data.txt /Volumes/NAME
$ hdiutil detach /Volumes/NAME
Then, if we delete the
NAME.sparseimage file, it’s gone forever and ever.
This morning I installed, compiled, and ran a simple example program using the GNU Scientific Library. This took me a while to figure out, so I’ll share the process here. I am assuming that the reader, like the author, has only vague familiarity with C.
In this post I’ll talk about how to set up your Scipy stack on a Mac, and make some recommendations for other tools: Homebrew for general package management, iTerm2 for a terminal, Solarized for a text editing color scheme, and pathogen for vim package management.