# set the version of postgresql for future commands
PG_VER=95
# install from ports
sudo port install postgresql$(PG_VER)-server
# initialize the database -> described in ports output
sudo mkdir -p /opt/local/var/db/postgresql$(PG_VER)/defaultdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
names = ["Pablo", "Dan", "Andrew", "Tom", "Rob", "Jay", "Norm", "Yev"] | |
def make_pairs_from_perms perms | |
full_set = [] | |
perms.each do |x| | |
z = [] | |
x.each_slice(2){|y| z << y} | |
full_set << z | |
end |