-
Recent Posts
- Problems connecting to unix:///var/mysql/mysql.sock
- Using rails and respond_to to include nested data
- Handle different environments with PHP
- MySQL 5.5, Mac OS X and startup item security error
- Rails plugin development using WebMock
- Read more, continue reading, and how to easily fix it using WP
- Windows clients with CUPS and Samba
- Making a Cafe Latté without a “do it all” machine
- Using form_tag and collection_select with Rails3
- Switching coffee and PHP testing
Tags
ajax apache api authentication cakephp coffee configuration cups cxf daily365 design firebug gedit hibernate history java javascript jcs job language linux mac mvc mysql non-tech opensource paginate php plugin projects prototypejs quick tip rails ror ruby samba smashingmag snapopen spring terminal test twitter usability wordpress wpml
Monthly Archives: May 2010
WPML, what is the current language?
While building a wordpress theme that has multilingual support, I needed to know what the current language was for fixing some static parts of my template. After searching a bit on the WPML site, I found a code example where …
Continue reading “WPML, what is the current language?” »
Using link_to in rails with :confirm and :method
Every time i’m going to use the link_to method in rails, I always seem to get a lot of errors. The documentation states: link_to(name, options = {}, html_options = nil) link_to(options = {}, html_options = nil) do # name end …
Continue reading “Using link_to in rails with :confirm and :method” »
Fixing symlinks in Mac OS 10 + built in Apache
The other night I was fiddling about with my macbook, trying to setup a “MySQL-Apache-PHP” server on my system. Digging a bit about the system and googling a bit, it seems that the system comes with a built in apache server and php installation.
I thought to myself, why not use the built in server instead of installing a MAMP package?
Anyways, seconds went by and I found the option in the system preferences, turned on “web sharing” and excitedly headed on to localhost. It worked perfectly, now I just needed to set it up as it was on my linux desktop.
The apache’s httpd.conf file is located in the folder: /private/etc/apache2/httpd.conf
(I used textmate to edit the file.)
What I wanted to do was, since I’m the only user on this laptop, I wanted my Sites folder to have a www “folder”, which was a symlink to a folder in my Documents folder. The symlink would then point to the webapp I was currently coding.
Continue reading “Fixing symlinks in Mac OS 10 + built in Apache” »
Tagged apache, configuration, mac
3 Comments