Gravity simulation in Haskell

Posted Wednesday, December 9th 2015 in Programming - Permalink

I have written a gravity simulator in Haskell. The language made it super easy to implement the physics. I also used a binding to the OpenGL library to render the graphics. That part turned out to be the most difficult aspect of the program.

Below is a video demonstrating the program.

Battlefield 4 Montage

Posted Wednesday, November 11th 2015 in Videos - Permalink

First lathe project

Posted Monday, November 9th 2015 in Videos, Wood Turning - Permalink

Here is a video I threw together of Jennifer doing her first project on our new Harbor Freight lathe. It works incredible so far!

All music is courtesy of the Black Twig Pickers band.

FreeBSD as a router

Posted Monday, November 9th 2015 in FreeBSD - Permalink

I had recently bought a new home router and had problems getting NAT loopback to work on it. I wasn’t able to access my server that was in the DMZ from the internal network. I decided to try setting up my FreeBSD server as my home router, as well. This turned out to be pretty easy to do. I started with two network interfaces, msk0 and dc0 The first would be my external interface, and the second would be my internal interface.

I began by installing a DHCP server, isc-dhcpd-43. You configure it using the file /usr/local/etc/dhcpd.conf. I am going to serve addresses in the range. Here is my file:

default-lease-time 600;
max-lease-time 72400;
ddns-update-style none;

subnet netmask {
  option routers;
  option domain-name "";
  option domain-name-servers,;
  option subnet-mask;

Enable the server in /etc/rc.conf:

# DHCP server

Next, I needed to configure the pf firewall to do NAT. Enable it in /etc/rc.conf:


Add the following to /etc/pf.conf:

set skip on lo
nat on $ext_if inet from !($ext_if) -> ($ext_if:0)

Finally, I configured my network interfaces in /etc/rc.conf:

ifconfig_dc0="inet netmask"

I rebooted the server, and I was in business!

List Posts Newest Posts Previous PagePage 3Next Page