Clear the DNS cache in OS X Leopard
on Tuesday 18th March, 2008 Gabe speculated thusly…dscacheutil -flushcache
Posted in HowTo, Information, Leopard, OS X
dscacheutil -flushcache
Posted in HowTo, Information, Leopard, OS X
One of the things I grew to like about Linux was the /home directory. Any data for a user was always stored there. Furthermore, you could easily have that home directory on a different disc so when you deleted your system, you didn’t lose your user data too.
Posted in Information, Leopard, OS X, Operating System, Tiger
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
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, OS X, Operating System, Tiger
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…)
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…)
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…)
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…)
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…)