<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ratbagash.co.uk/blog</title>
	<atom:link href="http://ratbagash.co.uk/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://ratbagash.co.uk/blog</link>
	<description>somewhere to keep my web brain</description>
	<lastBuildDate>Thu, 04 Nov 2010 15:47:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Ubuntu LAMP</title>
		<link>http://ratbagash.co.uk/blog/drupal/ubuntu-lamp</link>
		<comments>http://ratbagash.co.uk/blog/drupal/ubuntu-lamp#comments</comments>
		<pubDate>Thu, 04 Nov 2010 08:46:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=288</guid>
		<description><![CDATA[Having spent the day setting up a Ubuntu dev box I figured i would record what I did some where, it may be of use to others. This dev box is a replica of our Web environment, will be used to develop our new environment, will host Confluence and Jira also. What I did install [...]]]></description>
			<content:encoded><![CDATA[<p>Having spent the day setting up a Ubuntu dev box I figured i would record what I did some where, it may be of use to others.</p>
<p>This dev box is a replica of our Web environment, will be used to develop our new environment, will host Confluence and Jira also.</p>
<p>What I did</p>
<p>install Apache<br />
Using the terminal</p>
<p><code><br />
sudo apt-get install apache2<br />
</code></p>
<p>install PHP and Restart Apache</p>
<p><code><br />
sudo apt-get install php5 libapache2-mod-php5<br />
sudo /etc/init.d/apache2 restart<br />
</code></p>
<p>Created a test.php file</p>
<p><code><br />
sudo gedit /var/www/testphp.php<br />
<?php phpinfo(); ?><br />
</code></p>
<p>Go to</p>
<p>http://localhost/testphp.php</p>
<p>Install MySQL</p>
<p>To finish this guide up we will install MySQL.</p>
<p>Open Terminal and then copy/paste this line:</p>
<p>sudo apt-get install mysql-server</p>
<p>Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the &#8220;Bind Address&#8221;. Begin by opening up Terminal to edit the my.cnf file.</p>
<p>gksudo gedit /etc/mysql/my.cnf</p>
<p>Change the line</p>
<p>bind-address = 127.0.0.1</p>
<p>And change the 127.0.0.1 to your IP address.</p>
<p>Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:</p>
<p>mysql -u root</p>
<p>Following that copy/paste this line:</p>
<p>mysql> SET PASSWORD FOR &#8216;root&#8217;@'localhost&#8217; = PASSWORD(&#8216;yourpassword&#8217;);</p>
<p>(Make sure to change yourpassword to a password of your choice.)</p>
<p>Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:</p>
<p>sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin</p>
<p>After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:<br />
Click here to find out more!</p>
<p>gksudo gedit /etc/php5/apache2/php.ini</p>
<p>Now we are going to have to uncomment the following line by taking out the semicolon (;).</p>
<p>Change this line:</p>
<p>;extension=mysql.so</p>
<p>To look like this:</p>
<p>extension=mysql.so</p>
<p>Now just restart Apache and you are all set!</p>
<p>sudo /etc/init.d/apache2 restart</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/drupal/ubuntu-lamp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP error handling via htaccess</title>
		<link>http://ratbagash.co.uk/blog/php/php-error-handling-via-htaccess</link>
		<comments>http://ratbagash.co.uk/blog/php/php-error-handling-via-htaccess#comments</comments>
		<pubDate>Mon, 11 Oct 2010 22:44:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=280</guid>
		<description><![CDATA[Recently I had a staging website running on our production box. 1 of our external supplier wanted me to put php display-error on But die to this showing the very few (ah hum) errors on our production websites I had to find way to do this per domain. Turns out it&#8217;s very easy and can [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had a staging website running on our production box. 1 of our external supplier wanted me to put php display-error on But die to this showing the very few (ah hum) errors on our production websites I had to find way to do this per domain.</p>
<p>Turns out it&#8217;s very easy and can be don ein the .htaccess file</p>
<p>in a nutshell this is what you want</p>
<p><code><br />
# PHP error handling for production servers<br />
php_flag display_startup_errors off<br />
php_flag display_errors off<br />
php_flag html_errors off<br />
php_flag log_errors on<br />
php_flag ignore_repeated_errors off<br />
php_flag ignore_repeated_source off<br />
php_flag report_memleaks on<br />
php_flag track_errors on<br />
php_value docref_root 0<br />
php_value docref_ext 0<br />
php_value error_log /home/path/public_html/domain/PHP_errors.log<br />
php_value error_reporting 999999999<br />
php_value error_reporting -1<br />
php_value log_errors_max_len 0</p>
<p><Files /home/path/public_html/domain/PHP_errors.log><br />
 Order allow,deny<br />
 Deny from all<br />
 Satisfy All<br />
</Files><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/php/php-error-handling-via-htaccess/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>6 applications that are always open</title>
		<link>http://ratbagash.co.uk/blog/technology/6-applications-that-are-always-open</link>
		<comments>http://ratbagash.co.uk/blog/technology/6-applications-that-are-always-open#comments</comments>
		<pubDate>Tue, 07 Sep 2010 18:01:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Aptana]]></category>
		<category><![CDATA[BBEdit]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Navicat]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[VMware fusion]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=264</guid>
		<description><![CDATA[Eclipse While spending a couple of years writing learning and writing enterprise Java I was introduced to eclipse. I actually now use Aptana but essentially they are the same. If you are using a source space the Subversive plugin is excellent and I can definitely recommend it I like it because Refactoring is genius Dreamweaver [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse<br />
While spending a couple of years writing learning and writing enterprise Java I was introduced to eclipse. I actually now use Aptana but essentially they are the same. If you are using a source space the Subversive plugin is excellent and I can definitely recommend it<br />
I like it because<br />
Refactoring is genius</p>
<p>Dreamweaver<br />
Possible quite topical &#8211; but I actually use it to write all my CSS. Basically I have always used dreamweaver since I started Web development in 2000. For all my non SVN sites the &#8216;Sites&#8217; functionality is great and you can ftp up and down easily<br />
Don&#8217;t ever use<br />
Don&#8217;t ever use dreamweaver to built your site visually #fail </p>
<p>BBEdit<br />
BBedit is always open, I basically paste stuff in. Use it for search and replace and general use<br />
I like it because<br />
It&#8217;s fast and simple</p>
<p>Photoshop<br />
Not really much to say here, where would the web developer be without Photoshop. Constantly adapting images for use on the web provided by people who don&#8217;t understand aspect ratio or 73dpi vs 300dpi<br />
I like it because<br />
I grown up with it since 2000</p>
<p>VMware fusion<br />
As a mac user IE is my biggest problem, specifically IE6 and VMware fusion allows me to run windows and all the IE browsers.<br />
I like it because<br />
I couldn&#8217;t upgrade to service pack 2 windows in parallels</p>
<p>Navicat<br />
Navicat is just awesome. Again it is an application I have been using for some time. It just makes using databases very simple. Fast to query and visualise your data. I especially like the ability to create an SSH tunnel for your connections.<br />
I like it because<br />
PHPMyAdmin just isn&#8217;t good enough</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/technology/6-applications-that-are-always-open/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress automatic update problems</title>
		<link>http://ratbagash.co.uk/blog/wordpress/wordpress-automatic-update-problems</link>
		<comments>http://ratbagash.co.uk/blog/wordpress/wordpress-automatic-update-problems#comments</comments>
		<pubDate>Tue, 17 Aug 2010 16:03:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=239</guid>
		<description><![CDATA[Find out what user apache is running as and change ownership of the entire WordPress directory to that user. ]]></description>
			<content:encoded><![CDATA[<p>When recently trying to upgrade to the latest version of wordpress on one our of company websites I decided to get the automatic update working. I had had no problem with this on my own person site.</p>
<p>But in the connection information I kept getting this:</p>
<p>&#8220;To perform the requested action, connection information is required.&#8221;</p>
<blockquote><p>To perform the requested action, connection information is required.</p></blockquote>
<p><a href="http://ratbagash.co.uk/blog/wp-content/uploads/2010/07/connection_info_needed.jpg"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2010/07/connection_info_needed.jpg" alt="Wordpress error connection info needed" title="Wordpress error connection info needed" width="470" height="262" class="aligncenter size-full wp-image-244" /></a></p>
<p>After some searching around the web I found the answer. The scripts that run to write to the file system need to be owned by the same user that apache is running as.</p>
<p>Find out what user apache is running as and change ownership of the entire WordPress directory to that user. </p>
<p>So if apache is running as &#8216;httpd&#8217;, use the following commands on your WordPress installation directory:</p>
<p><code># chown -R httpd: wordpress</code></p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/wordpress/wordpress-automatic-update-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</title>
		<link>http://ratbagash.co.uk/blog/mysql/got-a-packet-bigger-than-max_allowed_packet-bytes</link>
		<comments>http://ratbagash.co.uk/blog/mysql/got-a-packet-bigger-than-max_allowed_packet-bytes#comments</comments>
		<pubDate>Wed, 07 Jul 2010 09:52:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[MAMP]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=223</guid>
		<description><![CDATA[Every time i changed the my.cnf file to 32M when I restarted the server the 'max_allowed_packet' variable was defaulted back to 1M]]></description>
			<content:encoded><![CDATA[<p>Recently I came across an error with my MAMP Drupal installation where I was getting the error</p>
<p>got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</p>
<p>I new I needed to change the my.cnf file yo up the &#8216;max_allowed_packet&#8217; variable.</p>
<p>Every time i changed the my.cnf file to 32M &#8211; in many different locations &#8211; when I restarted the server it was defaulted back to 1M</p>
<p>The solution is simple</p>
<p>In MAMP Pro choose</p>
<p>File<br />
Edit Template<br />
MySql my.cnf</p>
<p>Make the change here &#8211; restart &#8211; and hey presto problem solved</p>
<div id="attachment_232" class="wp-caption aligncenter" style="width: 310px"><a href="http://ratbagash.co.uk/blog/wp-content/uploads/2010/07/mamp.max_allowed_packet.png"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2010/07/mamp.max_allowed_packet-300x292.png" alt="mamp.max_allowed_packet" title="MAMP max allowed packet" width="300" height="292" class="size-medium wp-image-232" /></a><p class="wp-caption-text">MAMP max_allowed_packet</p></div>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/mysql/got-a-packet-bigger-than-max_allowed_packet-bytes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Select Yesterday from Unix Timestamp in MySql &amp; PHP</title>
		<link>http://ratbagash.co.uk/blog/php/select-yesterday-from-unix-timestamp-in-mysql-php</link>
		<comments>http://ratbagash.co.uk/blog/php/select-yesterday-from-unix-timestamp-in-mysql-php#comments</comments>
		<pubDate>Wed, 19 May 2010 13:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=221</guid>
		<description><![CDATA[$yesterday = date('Y-m-d', mktime (0,0,0,date('m'),(date('d')-1),date('Y'))); WHERE var BETWEEN UNIX_TIMESTAMP('$yesterday 00:00:00') AND UNIX_TIMESTAMP('$yesterday 23:59:59')]]></description>
			<content:encoded><![CDATA[<p><code>$yesterday = date('Y-m-d', mktime (0,0,0,date('m'),(date('d')-1),date('Y')));</code></p>
<p><code>WHERE var BETWEEN UNIX_TIMESTAMP('$yesterday 00:00:00') AND UNIX_TIMESTAMP('$yesterday 23:59:59')</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/php/select-yesterday-from-unix-timestamp-in-mysql-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with multiple iPhoto Libraries and Comic Life</title>
		<link>http://ratbagash.co.uk/blog/technology/problems-with-multiple-iphoto-libraries-and-comic-life</link>
		<comments>http://ratbagash.co.uk/blog/technology/problems-with-multiple-iphoto-libraries-and-comic-life#comments</comments>
		<pubDate>Mon, 22 Mar 2010 15:20:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Comic life]]></category>
		<category><![CDATA[iPhoto]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=212</guid>
		<description><![CDATA[I recently downloaded Comic Life to have a play around and quickly got frustrated by the fact it wasn't picking up my iPhoto libraries. It turned out that it wasn't the fact I had multiple iPhoto Libraries. The problem is caused by Slideshows in your iPhoto library specifically by music with "&#038;" in the title.]]></description>
			<content:encoded><![CDATA[<div id="attachment_216" class="wp-caption aligncenter" style="width: 334px"><a href="http://ratbagash.co.uk/blog/wp-content/uploads/2010/03/comic-life-iphoto-error.jpg"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2010/03/comic-life-iphoto-error.jpg" alt="comic life iphoto error" title="comic life iphoto error" width="324" height="263" class="size-full wp-image-216" /></a><p class="wp-caption-text">comic life iphoto error</p></div>
<p>I recently downloaded Comic Life to have a play around and quickly got frustrated by the fact it wasn&#8217;t picking up my iPhoto libraries.</p>
<blockquote><p>
Comic Life cannot find your iPhoto Library<br />
Perhaps you are not using iPhoto or your iPhoto Preferences are out of date?
</p></blockquote>
<p>After much digging around I found this thread on the <a href="http://plasq.com/">http://plasq.com/</a> forum</p>
<p><a href="http://plasq.com/component/option,com_joomlaboard/Itemid,0/func,view/catid,8/id,12539/#12539">http://plasq.com/component/option,com_joomlaboard/Itemid,0/func,view/catid,8/id,12539/#12539</a></p>
<p>It turned out that it wasn&#8217;t the fact I had multiple iPhoto Libraries.</p>
<p>The problem is caused by Slideshows in your iPhoto library specifically by music with &#8220;&#038;&#8221; in the title.</p>
<p>There is a bug in iPhoto which generate illegal XML for these cases&#8230;</p>
<p>iPhoto should put some &#8220;&#038;&#8221; in the string but it is just putting &#8220;&#038;&#8221;. And in these cases, Comic Life cannot read the file because it&#8217;s invalid XML.</p>
<p>An Apple discussion link here: <a href="http://discussions.apple.com/thread.jspa?threadID=2020829&#038;tstart=0">http://discussions.apple.com/thread.jspa?threadID=2020829&#038;tstart=0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/technology/problems-with-multiple-iphoto-libraries-and-comic-life/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Special Characters in a HTML select option Drupal Form</title>
		<link>http://ratbagash.co.uk/blog/drupal/special-charaters-in-a-html-select-option-drupal-form</link>
		<comments>http://ratbagash.co.uk/blog/drupal/special-charaters-in-a-html-select-option-drupal-form#comments</comments>
		<pubDate>Wed, 24 Feb 2010 13:54:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[ä]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Special Characters]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=190</guid>
		<description><![CDATA[So if you are creating a Drupal form and want to have special charaters like &#38;uuml;, &#38;ouml;, &#38;auml; etc make sure your Drupal module is encoded UTF-8 and use the characters as is - &#252;, &#246;, &#228;]]></description>
			<content:encoded><![CDATA[<div id="attachment_191" class="wp-caption aligncenter" style="width: 492px"><a href="http://ratbagash.co.uk/blog/wp-content/uploads/2010/02/drupal-form-special-charaters.png"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2010/02/drupal-form-special-charaters.png" alt="Drupal form special charaters" title="Drupal form special charaters" width="482" height="202" class="size-full wp-image-191" /></a><p class="wp-caption-text">Drupal form special charaters</p></div>
<p>While recently translating a website I cam across this problem in 1 of my Drupal modules.</p>
<h3>This was my form object</h3>
<p><code><br />
  $form = array();<br />
  $form['title_'] = array(<br />
   '#type' => 'select',<br />
   '#title' => t('Anrede'),<br />
   '#default_value' => "Herr",<br />
   '#options' => array("Herr"=>"Herr", "Frau"=>"Frau", "Fr&amp;auml;ulein"=>"Fr&amp;auml;ulein", "Dr"=>"Dr"),<br />
   '#required' => true,<br />
   );<br />
</code></p>
<p>I kept getting this</p>
<p><code></p>
<option value="Fr&auml;ulein">Fr&amp;auml;ulein</option>
<p></code></p>
<p>After some digging around I found this<br />
Extended characters (as select options in a form)<br />
<a href="http://drupal.org/node/102043">http://drupal.org/node/102043</a></p>
<p>Turns out to be a very simple problem &#8211; my file wasn&#8217;t being encoded as UTF-8</p>
<p>If I encoded the file as UTF-8 and used the actual character ä the problem went away</p>
<h3>This was my form object that worked</h3>
<p><code><br />
  $form = array();<br />
  $form['title_'] = array(<br />
   '#type' => 'select',<br />
   '#title' => t('Anrede'),<br />
   '#default_value' => "Herr",<br />
   '#options' => array("Herr"=>"Herr", "Frau"=>"Frau", "Fr&auml;ulein"=>"Fr&auml;ulein", "Dr"=>"Dr"),<br />
   '#required' => true,<br />
   );<br />
</code></p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 532px"><a href="http://ratbagash.co.uk/blog/wp-content/uploads/2010/02/drupal-form-special-charaters-utf8.png"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2010/02/drupal-form-special-charaters-utf8.png" alt="Drupal form special charaters utf8" title="Drupal form special charaters utf8" width="522" height="191" class="size-full wp-image-192" /></a><p class="wp-caption-text">Drupal form special charaters utf8</p></div>
<p>So if you are creating a Drupal form and want to have special charaters like &amp;uuml;, &amp;ouml;, &amp;auml; etc make sure your Drupal module is encoded UTF-8 and use the characters as is &#8211; &uuml;, &ouml;, &auml;</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/drupal/special-charaters-in-a-html-select-option-drupal-form/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Creating a node while creating it&#8217;s parent node</title>
		<link>http://ratbagash.co.uk/blog/featured/drupal-creating-a-node-while-creating-its-parent-node</link>
		<comments>http://ratbagash.co.uk/blog/featured/drupal-creating-a-node-while-creating-its-parent-node#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:10:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[CCK]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=188</guid>
		<description><![CDATA[My content type needed pictures, copy items and many attributes but also it needed extra child nodes (content types).]]></description>
			<content:encoded><![CDATA[<p>I recently started down the path of creating a complicated content type in Drupal. My content type needed pictures, copy items and many attributes but also it needed extra child nodes (content types).</p>
<p>The content type was Themepark &#8211; as in Alton Towers. The exta nodes I need while creating this content item was Rides. Rides also have pictures, copy items and attributes. </p>
<p>After a short time digging around on the internet I found <a href="http://drupal.org/project/noderelationships">Node Relationships</a> which does exactly what I wanted it to do.</p>
<p>Node Relationships can</p>
<ul>
<li>Search and reference (single and multiple value selection)</li>
<li>Create and reference</li>
<li>Translate and reference</li>
<li>View referenced node on new window</li>
</ul>
<p>And the Create was basically what I was looking for.</p>
<p>The presentation isn&#8217;t currently great &#8211; but that is what I am going to look into now.</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/featured/drupal-creating-a-node-while-creating-its-parent-node/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opening Drupal .module and .install PHP Files in Dreamweaver with Code Coloring</title>
		<link>http://ratbagash.co.uk/blog/drupal/opening-drupal-module-and-install-php-files-in-dreamweaver-with-code-coloring</link>
		<comments>http://ratbagash.co.uk/blog/drupal/opening-drupal-module-and-install-php-files-in-dreamweaver-with-code-coloring#comments</comments>
		<pubDate>Tue, 08 Dec 2009 21:00:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://ratbagash.co.uk/blog/?p=160</guid>
		<description><![CDATA[I use Adobe Dreamweaver to code all my websites because of the code highlighting site organisation, upload, SVN setting and mainly because I have spent my entire 10 year doing web work using Dreamweaver as my editor. When working with Drupal, Dreamweaver doesn’t open .module and .install files automatically. The solution is pretty easy so [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_173" class="wp-caption alignleft" style="width: 299px"><img src="http://ratbagash.co.uk/blog/wp-content/uploads/2009/12/dreamweaver-289x300.png" alt="Dreamweaver CS 4 Logo" title="Dreamweaver CS 4 Logo" width="289" height="300" class="size-medium wp-image-173" /><p class="wp-caption-text">Dreamweaver CS 4 Logo</p></div>I use Adobe Dreamweaver to code all my websites because of the code highlighting site organisation, upload, SVN setting and mainly because I have spent my entire 10 year doing web work using Dreamweaver as my editor.<br />
<br />
When working with Drupal, Dreamweaver doesn’t open .module and .install files automatically. The solution is pretty easy so this is just a quick post to get Dreamweaver opening .module and .install files. </p>
<h4>In Dreamweaver</h4>
<ol>
<li>Go to the Preferences dialogue.</li>
<li>Open file types/editors.</li>
<li> Add the following list of file types to Dreamweaver&#8217;s open in code view field:</li>
</ol>
<div id="home_featured">
.engine<br />
.info<br />
.module<br />
.install<br />
.theme
</div>
<h4>Modifying Dreamweaver configuration files</h4>
<p>Navigate folder that you installed Dreamweaver,<br />
/Applications/Adobe Dreamweaver CS4/configuration<br />
Using your favorite text editor &#8211; mine is BBedit &#8211; open “Extensions.txt” at the end of the first line at add MODULE, INSTALL etc separated by commas, so the line should read: </p>
<div id="home_featured">
&#8230;&#8230;&#8230;.,JSF,VB,VBS,VTM,VTML,INC,SQL,JAVA,EDML,MODULE,INSTALL:All Documents
</div>
<p>also add the  extensions to the “:PHP Files” line. </p>
<div id="home_featured">
PHP,PHP3,PHP4,PHP5,TPL,MODULE,INSTALL:PHP Files
</div>
<p>Next navigate to<br />
/Applications/Adobe Dreamweaver CS4/configuration/DocumentTypes<br />
Open “MMDocumentTypes.xml” Search for the line which has an id “PHP_MySQL add the &#8216;module&#8217; &#038; &#8216;install&#8217; file extensions to both the “winfileextension” and “macfileextension” so the line should read:</p>
<div id="home_featured">
 winfileextension=&#8221;php,php3,php4,php5,module,install&#8221; macfileextension=&#8221;php,php3,php4,php5,module,install&#8221;
</div>
<p>Finally Navigate to<br />
/Applications/Adobe Dreamweaver CS4/configuration/Extensions.txt<br />
and repeat the first step</p>
<p>Restart Dreamweaver and hey presto &#8211; your files will open in Code mode and will be color coded</p>
]]></content:encoded>
			<wfw:commentRss>http://ratbagash.co.uk/blog/drupal/opening-drupal-module-and-install-php-files-in-dreamweaver-with-code-coloring/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

