Zend server php in css file not working

0

Posted by nick | Posted in Uncategorized | Posted on Jan 14 2010

Tags:

I setup a local test environment using Zend Server at my new job and copied the VirtualHosts from the live server, which is apache on linux, and put them in the httpd-vhosts.conf file that came with Apache 2.2 in Zend Server.  The simple solution to be able to use php inside of the css file is to do the following

AddType application/x-httpd-php .php .css

Unfortunately, that didn’t work.  However, after a few hours I did find a solution.  In the httpd.conf file, find the following line

AddHandler zend-enabler-script .php

And change to -

AddHandler zend-enabler-script .php .css

I restarted apache and it now works.

  • Share/Bookmark

Dreamweaver 8 crashes or shuts down on windows 7

0

Posted by nick | Posted in Development | Posted on Jan 12 2010

Tags:

I installed Dreamweaver 8 for its awesome code searching ability and every time I’d navigate to a file the program would shut down.  The problem is a conflict between Microsoft Groove and Dreamweaver 8.  You’ll have to uninstall one of them. To uninstall Groove, follow these instructions http://support.microsoft.com/kb/907504

“Dreamweaver 8 may crash when it performs file browsing actions on Microsoft Windows Vista. Some examples include:

  • Using File > Open to browse the hard drive to open a file.
  • Inserting an image and using the file browser to select the image.
  • Creating a hyperlink and using the file browser to select the target file.
  • Creating a site definition and using the file browser to select the local root folder or remote folder.

Additional reported behavior includes:

  • Crash occurs when a file browsing dialog appears.
  • Crash occurs when browsing two or more folders away.
  • Crash occurs after inserting four images.
  • Crash occurs when you leave the file browsing dialog box open for a period of time. “
  • Share/Bookmark

SVN windows post-commit update hook

0

Posted by nick | Posted in SVN | Posted on Jan 11 2010

Tags:

The environment is Windows XP running apache2 using TortoiseSVN. This is a development server that also has a copy of the repository trunk checked out and I want that checkout updated when somebody commits to the repository.

I spent hours on Google today trying to figure out how to get a hook script working on windows for SVN.

I found only one decent resource http://blog.pengoworks.com/index.cfm/2008/2/5/SVN-postcommit-for-Windows that didn’t work.  I kept getting the error ‘post-commit hook failed (exit code 1) with output: ’svn is not recognized as an internal or external command, operable program or batch file.

Finally, a friend helped me out by looking up their configuration, which was a similar setup, and pointed me in the right direction. In the post-commit.bat file you create, the only thing in the file should be this windows command:

“pathToYourSVN.exe” update –username yourSVNUserName –password yourSVNPassword pathToYourCodeCheckout

It’s a very different solution and very simple as well.  Hope this helps!

  • Share/Bookmark

Adwords Editor Tool Ambiguous Row Type

0

Posted by nick | Posted in Google Adwords | Posted on Dec 28 2009

Tags:

After a lot searching today for a solution to this error, I decided to post the solution here so it may be easier found by others. The error “Ambiguous Row Type” occurs if you upload the keywords column with the other 20+ columns of data to the Google Adword Editor.

The solution is to remove the keywords column and upload. Then, built a second spreadsheet containing the following columns:
Campaign
Ad Group
Keyword
Keyword type

This will upload and update your existing ads with the keyword. Hope that helps!

  • Share/Bookmark

Scriptaculous Ajax.autocompleter stop preselect of first option item

0

Posted by nick | Posted in JavaScript | Posted on Dec 26 2009

Tags:

I have this search feature on the search input of my sites, but was annoyed when I’d hit the enter button the keyboard to submit the search after the autocomplete items were visible. Instead of submitting the form as I desired, the first autocomplete option was entered into the input and then the form was submitted.

To disable the pre selection of the first result item in the autocomplete, do the following:

In controls.js of the Scriptaculous library, on line 286: change “this.index = 0;” to “this.index = -1;”

  • Share/Bookmark