Category Archives: PHP

Smart Searching Using Anonymous Scopes

I really like how Lovetastic’s search works.  Instead of a plethora of select boxes, users can simply use expressions to create searches.  We did something similar with Tryst’s searching.  One text field and you enter stuff like age ranges (30-45), things like smoke-yes or smoke-no, cities, zipcodes, etc. To make this whole thing more Rails like, [...]
Also posted in Geeky, Hosting, Ruby, Ruby On Rails, Seattle, Vacations | 1 Comment

Mongrel + Nginx: Deploying to a subdirectory

Though using subdomains is all the rage right now, there are certianly instances where you may want to deploy your rails application to a subdirectory such as: http://www.johnyerhot.com/myrailsapp Of course Nginx makes it super easy to do so. If you need to get your webserver ready with Nginx, PHP running as a FCGI instance, and Rails [...]
Also posted in Geeky, Ruby On Rails, nginx | Tagged , , , , , | 1 Comment

Drupal | Front Page Module + Nice Menus = Headache

I’ve spend all morning trying to get this to work.  I am using nice menus and the frontpage modules in Drupal for a project at work and I could not for the life of me get the nice menu to work on the newly created frontpage I set up using “full” type of front page. After [...]
Also posted in Drupal, Programming | Tagged , , , | Leave a comment

How to: Nginx, FCGI, PHP, MySQL, Ruby On Rails, Rewrite

In a previous post I talked about how I just set up my new Slicehost account using Nginx to power this blog (Wordpress – PHP) and some Rails Apps. Here’s a mini how to on how I got the whole thing working, as its not quite as easy as it sounds. First though – Why [...]
Also posted in Linux, Ruby On Rails, nginx | Tagged , , , , , , , , | 15 Comments

Moved Hosts

Well I’ve finished consolodating my two hosting accounts, one at Godaddy (cheap Linux hosting) and my shared Rails hosting at OcsSolutions (which was very good for shared Rails host) to a 512 mb Ubuntu 7.10 ’slice’ at Slicehost.  Was gonna go straight Debian, but figured what the hell.  For any of you who don’t know, [...]
Also posted in Linux, Royner, Ruby On Rails, Slicehost, nginx | Tagged , , , , , , | Leave a comment