You may find this helpful if you should find yourself using Erlang on OS X and you’ve installed it using Macports. After a default installation you’ll need to manually configure your .emacs file for erlang-mode and set your $MANPATH variable correctly, here’s how.
If you’ve installed Erlang with Macports then you may have noticed that when you edit .erl files you’re not entering into erlang-mode, nor is it available to enter into. Here’s how I got erlang-mode working on my system.
Macports will install Erlang into /opt/local/lib/erlang by default. The paths to put in your .emacs file provided in the erlang-mode documentation only need to be tweaked a slight bit to function properly. Here’s what I put in mine:
(setq load-path (cons "/opt/local/lib/erlang/lib/tools-2.6.4/emacs/" load-path)) (setq erlang-root-dir "/opt/local/lib/erlang") (setq exec-path (cons "/opt/local/bin" exec-path)) (require 'erlang-start)
Note that you may require setting “tools-2.6.4” to something else if Macports has upgraded it’s distribution of Erlang.
Setting up your $MANPATH variable is fairly simple as well. Just put the string “/opt/local/lib/erlang/man” in a file called ‘erlang’ in /etc/manpaths.d/ and make sure it ends with an empty line. Test this by opening a new terminal and running: echo $MANPATH | grep erlang. If it doesn’t come back empty then you’ve done it right.
Today abutcher and I found every way to fail to build VirtualBox OSE from source on OS X. We followed the build instructions on their web site but had some problems. I’ll post a more detailed writeup of what happened and what you need to do to build it later. Until then, here’s a link to download the most recent checkout from svn, built for OS X 10.6 (Snow Leopard). And here’s the SHA256:
Often we get Nagios alerts letting us know that your kernel is about to panic and your server is going to crash and die because read/write operations are going to FAIL MISERABLY.
Obviously being a systems administrator it becomes your job to figure out what can go, what needs to stay, et al.
I’ve found that archived logs (logrotate) on a secure server often can be quite large. And on a low-end configuration with a server with only 40G it becomes a nuisance when you have a few Gb of data…
And you all probably know this, but Tim asked when I’d blog. So… I’ll make sure!
Having 40 or 50 files is a pain to manually delete. Sure, you could probably rm -f *.1 *.2 *.3 etc etc etc but that becomes too much of a pain.
On BSD systems there is an awesome counter called ‘jot’; it works exactly the opposite of the GNU command ‘seq’; so for a rudimentary example to remove all files it becomes a simple one liner–
In Emeril fashion: BAM! You’re now out of the clear.
Shaggy and I drafted this guide to setting up your OpenGL development environment in Apple Xcode for cs470 (Introduction to Computer Graphics) at WVU. It follows you through installing Xcode and including the relevant frameworks for creating a stock C++ OpenGL project. Shaggy formatted it in DocBook and I think the result is pretty sexy. Try it out for yourself!
View the tutorial here: opengl-in-xcode