Archive for the ‘HowTo’ Category

Resize all images in current directory using ImageMagick

on Tuesday 11th March, 2008 Gabe speculated thusly…

find . -iname "*.jpg" -print0|xargs -0 -I {} convert -quality 60 -resize 461x317 {} {}

Posted in HowTo, Information

No Comments »

Rails Production Environment Using Mongrel Cluster, Apache 2.2 mod_proxy, and Capistrano on Ubuntu Gutsy

on Wednesday 13th February, 2008 Gabe speculated thusly…

Recently, I had to setup a production environment for Rails applications at work. I encountered many difficulties, including problems with permissions on client/server computers, and not least because the documentation I had was out of date (Agile web dev and The Rails Way). Online tutorials were helpful but incomplete. I have compiled all that I discovered here. (more…)

Posted in Development, HowTo, Linux, Operating System, Programming, Ruby, Server

8 Comments »

Installing MySQL native extensions on OS X using existing MacPorts MySQL

on Saturday 8th December, 2007 Gabe speculated thusly…

Getting these native extensions from Ruby gems to build and install has been a bit of a nightmare. Especially since MySQL, Apache, Ruby, etc were compiled from source using MacPorts (which I heartily recommend).

The answer was as simple as:
sudo gem install mysql -- --with-mysql-config=/path/to/your/mysql/bin/mysql_config

Posted in HowTo, Information, Operating System, OS X, Tiger

No Comments »

Apache 2 with SSL on FreeBSD 6

on Monday 15th October, 2007 Gabe speculated thusly…

It wasn’t exactly trivial installing and configuring Apache 2 on FreeBSD. Much of the configuration had to be done manually, which depending on your point-of-view is good or bad. This describes how I went about getting Apache 2 with SSL support up and running on FreeBSD 6. I did this on 6.2 but it should equally apply to  6.x. (more…)

Posted in FreeBSD, HowTo, Server

No Comments »

Introduction to DNS

on Sunday 30th September, 2007 Gabe speculated thusly…

If you are a beginner with DNS then you might find this quick article useful. Recently I have had to play with various DNS records to get mail servers and web servers working. (more…)

Posted in HowTo, Server

No Comments »

MySQL 5 Server on FreeBSD

on Friday 28th September, 2007 Gabe speculated thusly…

MySQL is a very popular relational database. It can be used by many different applications and thankfully the installation procedure is a snap. For this tutorial we will be compiling MySQL 5.0.45 from ports with some custom options. I did this on FreeBSD 6.2 release but it should work on FreeBSD 6.3 and 6.x. (more…)

Posted in FreeBSD, HowTo, Server

No Comments »

Getting Lighttpd 1.4 and PHP 5 to work on FreeBSD

on Wednesday 26th September, 2007 Gabe speculated thusly…

Firstly let me just say that I had quite a few problem with Lighttp (aka Lighty), and some of them related to PHP. However, I now have Lighty, PHP, and MySQL playing nicely and… it’s fast! This was tested with: Lighty 1.4.18 and PHP 5.2.3_1 on FreeBSD 6.2. (more…)

Posted in FreeBSD, HowTo, Server

No Comments »

Installing and configuring Netatalk AFP on FreeBSD

on Wednesday 26th September, 2007 Gabe speculated thusly…

I have recently had a hard time getting FreeBSD to ‘play ball’ by sharing it’s resources via AFP. I have compiled this guide to help others through the traumatic experience. I was using FreeBSD 6.2 release and Netatalk 2.0.3 from ports. Though I have heard it works on 6.1 and 6.3. (more…)

Posted in FreeBSD, HowTo, Server

6 Comments »

Mounting A Directory in Two or More Places without copying (for Linux)

on Saturday 1st September, 2007 Gabe speculated thusly…

Have you ever wanted to show the contents of another user’s directory in a folder of your own? Or perhaps for whatever reason wanted to have the contents of a directory in two places at once, but without copying across? Well in Linux there is a way. Directories can be bound to other directories. The contents of one directory shows up in another, change one, and you change them both. Say for example you had the following directory /usr/home/fred but you wanted it to appear in Tom’s home directory also. (more…)

Posted in HowTo, Linux

No Comments »