John Ballinger
I make things like:
hurl.ws
tweet-r.com
tw3t.com

and some iPhone
applications.
Skatebowl to footpath traverse. Super awesome

Skatebowl to footpath traverse. Super awesome

My AT&T SIM card collection from the old jail break days.

My AT&T SIM card collection from the old jail break days.

Giant Apple logo found in space.

Giant Apple logo found in space.

WareWolf dog - last dog photo for the month.

WareWolf dog - last dog photo for the month.

Tilda at 12 weeks, I dont think it gets much cuter than this.

Tilda at 12 weeks, I dont think it gets much cuter than this.

Configure Ruby to run on Apache on Windows

This is really easy to run ruby. Follow this page.

http://www.editrocket.com/articles/ruby_apache_windows.html

The only extra information I had to do was add is my directory permissions on the virutal host.  

<Directory “c:/webserver/yoursite/”>

   Options FollowSymLinks ExecCGI

Now you ruby file should work, dont forget that it must have #!/ruby/bin/ruby at the top otherwise Apache doesn’t know how to execute this file on Windows.

To add different hosts so you can run more than 1 web site.
Install this. http://clickontyler.com/virtualhostx/
Vitualhostx will create the hosts file and reconfigure your builtin Apache.Then in VirtualHostx &gt; file &gt; Run setup wizard. Step 1, step 2.  This configures your Apache install.
Create a new site. eg mysupertest.site and select the folder for this site.
You will need to allow access to the folder, so in the big blox add this. Make sure you change johnb to your name. Or just copy the text above and now you will not get 403 errors.
&lt;Directory &#8220;/Users/johnb/Sites/mytest/&#8221;&gt;  AllowOverride allAllow from allOrder allow,deny	   &lt;/Directory&gt;
Finally, File &gt; Apply Changes to Server.
Now you can type in your browser mysupertest.site and it will work. Lovely.
If you are curious how it configures you vhost, then run this command from the terminal, it assumes you have textmate installed on your system.
mate /etc/apache2/extra/httpd-vhosts.conf

To add different hosts so you can run more than 1 web site.

Install this. http://clickontyler.com/virtualhostx/

Vitualhostx will create the hosts file and reconfigure your builtin Apache.Then in VirtualHostx > file > Run setup wizard. Step 1, step 2.  This configures your Apache install.

Create a new site. eg mysupertest.site and select the folder for this site.

You will need to allow access to the folder, so in the big blox add this. Make sure you change johnb to your name. Or just copy the text above and now you will not get 403 errors.

<Directory “/Users/johnb/Sites/mytest/”>  AllowOverride all
Allow from all
Order allow,deny   
</Directory>

Finally, File > Apply Changes to Server.

Now you can type in your browser mysupertest.site and it will work. Lovely.

If you are curious how it configures you vhost, then run this command from the terminal, it assumes you have textmate installed on your system.

mate /etc/apache2/extra/httpd-vhosts.conf

Get PHP running on OSX very quickly.

First enable PHP, from the terminal.
mate /etc/apache2/httpd.conf 

Edit this line, remove the # at the front so it looks like this. PHP5 done.

LoadModule php5_module        libexec/apache2/libphp5.so

John Bama

John Bama

My Crazy Dog should not sleep in my shoes

My Crazy Dog should not sleep in my shoes