ColdFusion 10 Run As User on Mac

Posted by & filed under ColdFusion.

During the installation of ColdFusion 10 you have the option to enable the automatic startup of the ColdFusion application server during the boot process on your machine.  On Windows, this happens via a Windows Service, but on Macintosh it happens a little different.  To change the Windows Service “Run As” user is pretty easy, but what about on the Mac?

It’s not that difficult, you just need to modify a file on your system to specify the runtime user for the ColdFusion process.  First, open up your terminal via Applications > Utilities > Terminal.  Then we need to browse to the location of the file.  Here are the commands to execute in your termanal window:

$ cd /Library/StartupItems/ColdFusion10
$ sudo nano ColdFusion

Using the nano editor (or your favorite bash editor), modify the line that sets the user. For me the line is:

RUNTIME_USER="brian"

I want to set ColdFusion to run as the root user, so I simply changed this to:

RUNTIME_USER="root"

Save the file via Ctr > O, then exit nano via Ctr > X and you’re all done. Of course, you will need to restart ColdFusion:

sudo /Applications/ColdFusion10/cfusion/bin/coldfusion restart

Creative Cloud Market Assets

Posted by & filed under Adobe.

If you wear both hats of designer and developer like me, then you will understand that you don’t have all day to work on a design.  Rather, you need to quickly prototype out a design, gather feedback from your team, and refine as necessary.  That prototype phase needs to be quick — and easy for us design & developers.  One way to make it even easier is the launch of Adobe’s Creative Cloud Market Assets.

(more…)

Mac OS X Mavericks and pdo_odbc PHP extension

Posted by & filed under MySQL, PHP.

Compiling and installing the pdo_odbc PHP extension is not for the light-of-heart.  After a couple of hours, and a lot of reading, I was able to get the pdo_odbc extension working on my Mac.  I will try to document the entire process here, including the installation of homebrew and the Xcode development tools, which are prerequisites to setting this up.  If you have already installed homebrew or the Xcode development tools, then you can skip the first two sections.

(more…)

VMWare Fusion to Virtual Box

Posted by & filed under Ubuntu, Virtual Box.

vmdkBased on reading other blogs and websites, exporting a virtual machine from VMware Fusion to Virtual Box can be accomplished into two ways:

  1. Use the VMware OVF Tool to create a .ovf file to import into Virtual Box
  2. Export a single .vmdk file from VMware Fusion that is then attached to a new machine instance in Virtual Box

We will be taking the second approach.  I did try to use the ovf file that the VMware OVF Tool creates, but I ran into several issues.  Creating a single merged .vmdk file and importing this into Virtual Box is much easier.

(more…)

Simple Tomcat7 Install on Ubuntu 10

Posted by & filed under Apache, Ubuntu.

Tomcat 7

Here’s a quick and simple install guide for Tomcat7 on Ubuntu.  I assume that you have already installed Ubuntu or have access to an Ubuntu instance.  I am running Ubuntu in VMware Fusion, which works much better than Virtual Box.  Let’s jump in.

(more…)

Add Git Composer Dependency

Posted by & filed under PHP.

It’s really easy to add a dependency to your PHP project using composer when the package is available in the packagist library.  However, sometimes you may need to include an open-source project or library that is not in the packagist library, and the project does not explicitly provide a composer.json.  For example, I wanted to try out an Open Graph meta tag parser project on GitHub.  However, Scott doesn’t have a composer.json defined in his project.

(more…)

Web Development Automation – Gruntfile Using CoffeeScript

Posted by & filed under CoffeeScript, CSS, Grunt, JavaScript, LESS.

This is the third post in a series on automation in web development.  The most common task in web development is running a series of tasks on your JavaScript and CSS source files to optimize them for a high performing website.  In general, our optimized JS and CSS files would be small in size, and small in number.

To do this, I first started using Apache Ant with the YUI compressor to create minified versions of my JavaScript and CSS source files.  We’ve come a long way since then.  We are now using CoffeeScript and LESS source files that compile to JavaScript and CSS.  This doesn’t quite fit into the legacy workflow of using Apache Ant.  So, Grunt to rescue.  To get started, I had to install and configure Grunt for my project.  At then end of the tutorial, we we able to use our package.json file to install the required plugin dependencies for my Gruntfile.

(more…)

Web Development Automation – Getting Started With Grunt Tutorial

Posted by & filed under CoffeeScript, CSS, Grunt, JavaScript, LESS.

This is the second part in my series on Web Development Automation.  In this post, we are going to move from using Apache Ant to perform our automation tasks to using Grunt.  The tasks that we want to perform are:

  1. Combine all of the CSS library source files into libs.css
  2. Compile our application’s LESS to CSS
  3. Minify and combine the application CSS into app.css
  4. Combine all of the JavaScript library source files into libs.js
  5. Lint our application’s CoffeeScript source files
  6. Compile CoffeeScript to JS
  7. Combine and uglify all application JS files into single app.js file

(more…)