Verizon could share the addresses of websites you visit, app usage and location of the phone. How to Opt-Out. http://t.co/9ci5SYJW
Top 10 socially networked colleges according to http://t.co/yhRCMakb. Indiana University is #6. http://t.co/FUHWKCSq
It’s about time for the USPS to be replaced by UPS. USPS delivers nothing but junk mail and fails to deliver important letters.
Here is a guide detailing how I set up Apache with PHP enabled (both already installed) and MySQL on a new installation of OSX Snow Leopard using the 64-bit versions. This guide shows how to create multiple virtual hosts each with it’s own root directory for serving relative paths. I wanted to leave http://localhost alone, displaying just a simple phpinfo(); index page so I know it’s running smoothly. I also wanted to create a custom local domain for each site I work on, such as http://sitename.localhost.com, which points to a root folder that I specify, such as /Users/josh/Work/sitename. Here is a full guide on setting up virtual domain hosts based on a directory structure, which is complex to set-up, but easy to add new sites. I also want to set-up a complete PHP development environment based on the Eclipse IDE. Eclipse seems to be the most full featured IDE, with many plug-ins for everything you would want to do as a developer. Google supports Eclipse, so that says something, and virtually every programming language is supported, so you only need to learn a single IDE for everything. If you want to be more focused on a single project, there may be better Eclipse distros, or different editors, but I want an all around app that works on every operating system the same, so I can eventually start using Ubuntu or CentOS as a primary operating system. There must be more than a few tutorials out there that illustrate how to do this, but I just don’t know where to look. That said, I had a difficult time finding the answers using Google searches. Mostly, I found out of date versions based on older editions of OSX, all using terminal editors, and none that had everything I wanted to do in a single step-by-step guide, and that assumed that I have no prior experience. First download and install TextWrangler. This is a free, and great general tool for editing text files on Mac OSX, and it allows you to open hidden files of any extension with administrator permissions so that you can save the file, no terminal editing required. Do be sure to include the extra Terminal tools if prompted during installation. Path Finder is another handy GUI tool for file browsing, but is not free. I’m not going to copy and paste all the details in each case. Instead, I’ll just list the steps needed with some additional notes and the links to the full article containing the detailed steps and terminal commands. This document is a result of having everything running fine with MAMP installed, then wanting to actually figure it out for myself. Nothing seemed to work out of the box, I had to reinstall OSX several times to start from scratch after learning something new as to why nothing was working right. This is a really nice step-by-step guide to compiling everything from source. You install everything to a /usr/local directory structure and link the configs to each other. It may be all you need, but is also tedious, and difficult for a beginner. If you want to forgo installing MacPorts in the next steps, then here is the complete guide for installing PHP and MySQL on Snow Leopard using the pre-installed libraries. This may be a better option, but I like that MacPorts can update everything for me, and that it runs as separate installs from the base system, so if it gets hosed, it’s easy to redo. One thing you will want to do no matter how you install MySQL is avoid the 10.5 64-bit package, and compile it on your own. You’ll need XCode installed to compile, but I think it’s a necessity to have installed for any kind of development on a Mac, even if you never use the IDE. Here are some further resources for installing MySQL and configuring your system using the Snow Leopard stock modules and a more stock setup that installs to the /usr and system folders. The advantage to this method is that you’ll learn a lot more about your set-up, and be able to add more niche type features and fix strange errors. This will also lead to a more stable system since you’ll probably pick one set of versions, and leave it at that until the next major releases. You’ll likely need bits of each article to get fully functional, and probably best to go in this order, making sure that what you just compiled is actually working.
- Compile PHP, Apache and MySQL on Snow Leopard
- Compile and Install MySQL on Snow Leopard
- Configuring PHP and XDebug for MySQL
- Configuring PHP and Multiple Virtual Hosts on Apache
- Configure PHP, Virtual Hosts, and install phpMyAdmin
- Installing PEAR, PHPUnit and XDebug
- Installing PHP Extensions Imagick, Magickwand, Memcached, MCrypt
- Download and install the MacPorts Snow Leopard package.
- Run command: $ sudo port -v selfupdate
- Make sure that MacPorts is added to your PATH in the shell .profile
- export PATH=/opt/local/bin:$PATH
- Force Macports to always compile for 64-bit
- Open /opt/local/etc/macports/macports.conf
- At line 59, change #build_arch i386 to build_arch x86_64
- Ports you may want to install
- subversion +mod_dav_svn +tools
- git-core +svn
alias mysqlstart=’sudo /opt/local/bin/mysqld_safe5 &’
alias mysqlstop=’/opt/local/bin/mysqladmin5 -u root -p shutdown’
alias mysqlping=’mysqladmin5 -u root -p ping’
PATH=$PATH:/usr/local/mysql/bin; export PATH
- Install MySQL developer libraries:
- % sudo port install msyql5-devel
- % sudo port install msyql5-devel-server
- optional alternative database servers: sqlite3, postgresql
- Reboot
- Create required MySQL system databases (service must be started)
- % sudo /opt/local/lib/mysql5/bin/mysql_install_db —user=mysql
- Set the root password, since the default is blank (service must be started)
- % mysqladmin -u root password NEWPASSWORD
- Copy a config template from MacPorts and change settings as needed
- $ sudo cp /opt/local/share/mysql5/mysql/my-large.cnf /opt/local/etc/mysql5/my.cnf
- Sequel Pro (free, mac native, basic)
- MySQL GUI Tools (free, cross platform)
- MySQL 64-bit PrefPane for Snow Leopard
- DBVisualizer (cross platform, 21 day eval, $150)
- SQLGrinder (mac native, 20 session demo, $60)
- Run $ sudo port install apache2
- Set the MacPorts Apache2 to load at startup
- sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
- Activate PHP in Apache
- $ cd /opt/local/apache2/modules
- $ sudo /opt/local/apache2/bin/apxs -a -e -n “php5” libphp5.so
- $ sudo /opt/local/apache2/bin/apachectl -k graceful
- The web root is located at /opt/local/apache2/htdocs
- Use phpinfo() in index.php at the root and open http://localhost in Safari.
- Set default timezone in php.ini to Country/City
- Configure PEAR
- PHPUnit testing framework
- XDebug PHP Extension (howto)
- install optional ports: php5-xdebug, php5-curl, php5-mysql, php5-tidy, php5-web, php5-xsl
- install phpmyadmin web manager for MySQL
- install extra packages
- pecl install apc
- pecl install imagick
- Add Virtual Hosts
- PHP Development plug-ins
- Eclipse SDK items
- Mylyn Task Manager
- PDT - PHP Development Tools
- Web Tools Platform + Web Standards Tools
- Data Tools Platform
- Graphical Editing Framework
- Eclipse Modeling Framework
- Subversive or Subclipse integrated Subversion client
- Test and Performance Tools Platform (TPTP)
- Zend Debugger
- XDebug
- TracPlugin or Mylyn Trac Connector
- PHPUnit
- 3rd Party Code Plugins
- PHP Frameworks
- Zend Framework (glue framework, modular, good external API support)
- CakePHP (rigid conventions, full-stack, scaffolding, community, guides)
- Symfony (similar to Ruby-on-Rails, complex, large)
- CodeIgniter (bare bones, highly performant, simple, great docs, integrates Smarty and Zend libraries)
- Yii (newer, high performance, OO, active, Web 2.0 focused)
- PRADO
- PHP Code Components and Compiling
- Roadsend PHP Compiler
- PHC PHP Compiler
- eAccelerator runtime optimizer
- 30 Useful PHP Classes and Components
- 50 useful PHP Tools
- PHP focused community web sites
- FireFox 3.5 Web Development tools
- Firebug
- FirePHP
- YSlow
- Xdebug Helper
- Other useful free dev tools with GUI front-ends
Today I decided it was time to start looking for a more open alternative to the Microsoft .Net platform and framework. It seems that Ruby on Rails has gained a lot of traction in the web development world, primarily on web start-ups and smaller shops at the moment. I run Apple’s OSX Snow Leopard, and I want a nice and simple IDE with version control that will be easy to set-up and use for the first time. I’ll also need a database storage server, which seems easy to choose (nice article here), since most roads lead to MySQL. In addition, MAMP (Macintosh, Apache, Mysql and PHP) is a nice tool for getting everything set up using a single installer. In beginning my search, I’ve found many differing opinions on what is best, fastest, or most widely used.
This is my short list of software for developing Ruby on Rails web applications based on my perception of how often I read a recommendation for the software while searching.
MacroMates TextMate (Denmark, $60)
Aptana RadRails (Free, Open Source, based on Eclipse)
Sun Micro NetBeans (Free, Open Source)
JetBrains RubyMine ($99)
Embarcadero 3rd Rail ($99)
ActiveState Komodo ($245)
Eclipse with a Plug-in (Free, Open Source)
I’ll post a note shortly with the results of testing some trials, and working through a few examples.
Added a Wibiya toolbar to my blog, pretty nice feature. http://bit.ly/96C5g
A place to talk about permaculture, eco-building, organic practices, woodland care, and homesteading.
I subscribed to earthship’s channel on YouTube.