<?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>BytesiteWeb Development</title>
	<atom:link href="http://www.bytesite.co.uk/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bytesite.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 12 Mar 2010 09:26:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Plesk Site Preview</title>
		<link>http://www.bytesite.co.uk/plesk-site-preview</link>
		<comments>http://www.bytesite.co.uk/plesk-site-preview#comments</comments>
		<pubDate>Fri, 12 Mar 2010 09:25:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=304</guid>
		<description><![CDATA[Parallel&#8217;s Plesk server control panel is pretty faultless.  We have however experienced problems testing a domain using the &#8217;site preview&#8217; facility.
We use the site preview to test a site on the new server before a DNS change points an existing server to the new one, onwhich Plesk is running.  It should allow the developer [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/plesk-site-preview/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking if an object is empty &#8211; PHP</title>
		<link>http://www.bytesite.co.uk/checking-if-an-object-is-empty-php</link>
		<comments>http://www.bytesite.co.uk/checking-if-an-object-is-empty-php#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:26:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=289</guid>
		<description><![CDATA[As of PHP 5, objects with no properties are no longer considered empty.  Therefore is you use empty() to test if an object is empty will always return true.
The easiest way to check for an empty object is to cast it to an array:

$objAsArray = &#40;array&#41;$object;
if &#40; empty&#40; $objAsArray &#41; &#123;...&#125;

Incidently there are a [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/checking-if-an-object-is-empty-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Batch Adding Attributes to Attribute Sets</title>
		<link>http://www.bytesite.co.uk/magento-batch-adding-attributes-to-attribute-sets</link>
		<comments>http://www.bytesite.co.uk/magento-batch-adding-attributes-to-attribute-sets#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:36:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=277</guid>
		<description><![CDATA[I have a Magento installation, with around 60 attribute sets.  I needed to add a new attribute, and then add it to all the attribute sets.  Doing this manually would take ages, and there didn&#8217;t seem to be a way of doing it through the API. I therefore created a PHP script to [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/magento-batch-adding-attributes-to-attribute-sets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling Abbr Tag in IE &#8211; JavaScript Fix</title>
		<link>http://www.bytesite.co.uk/styling-abbr-tag-in-ie-javascript-fix</link>
		<comments>http://www.bytesite.co.uk/styling-abbr-tag-in-ie-javascript-fix#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:06:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=261</guid>
		<description><![CDATA[Internet Explorer for Windows does not support the &#60;abbr&#62; tag.  This makes it hard to style in CSS.
Marek Prokop posted a fix for this in the post Styling &#60;abbr&#62; in IE which has been very helpful.  However, it seems to prevent JavaScript functioning properly.
It works by grabbing the body HTML, replaces all &#60;abbr&#62; [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/styling-abbr-tag-in-ie-javascript-fix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Drupal Theme on the Fly</title>
		<link>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme</link>
		<comments>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:32:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=245</guid>
		<description><![CDATA[I encountered an issue within Drupal with regards to admin and frontend themes.  Specifically I needed to ensure that when a user creates or edits a particular type of content, it would remain in the frontend theme, and if they created or edited a different type, it would show in the admin theme.

A bit of background [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 6 &#8211; Views, programmatically set arguments</title>
		<link>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments</link>
		<comments>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:33:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=238</guid>
		<description><![CDATA[It is sometimes useful to programmatically load a view in Drupal, to execute it and then utilise the results.  This is all straightforward and well documented.  A little less documented is how to set the view arguements.

As with a lot of things, once you know it is easy:

$view = views_get_view&#40;$view_name&#41;;
$view-&#62;set_arguments&#40;$args&#41;;
$view-&#62;execute&#40;&#41;;
return $view-&#62;result;

Where $args is an array, [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento FCKEditor Product Validation</title>
		<link>http://www.bytesite.co.uk/magento-fckeditor-product-validation</link>
		<comments>http://www.bytesite.co.uk/magento-fckeditor-product-validation#comments</comments>
		<pubDate>Tue, 24 Mar 2009 21:24:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[FCKEditor]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=194</guid>
		<description><![CDATA[Implementing WYSIWYG editing is fairly straightforward in Magento using either TinyMCE or FCKEditor.  However, a known issue means that TinyMCE doesn&#8217;t work within the CMS section.  So FCKEditor is the only real option at the moment.
There is however one issue to sort out.  The product description field is mandatory; when you enter text into this [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/magento-fckeditor-product-validation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Migration</title>
		<link>http://www.bytesite.co.uk/migrating-magento</link>
		<comments>http://www.bytesite.co.uk/migrating-magento#comments</comments>
		<pubDate>Mon, 23 Mar 2009 08:57:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=185</guid>
		<description><![CDATA[As with most things Magento, it isn&#8217;t too straightforward moving an installation from one domain to another.
I have provided this post as an outline on how to approach migrating your Magento installation.
The Magento site does have a migration guide, but essentially it means re-installing Magento with a new version, which is impractical for a number [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/migrating-magento/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selenium &amp; TinyMCE</title>
		<link>http://www.bytesite.co.uk/selenium-tinymce</link>
		<comments>http://www.bytesite.co.uk/selenium-tinymce#comments</comments>
		<pubDate>Fri, 13 Mar 2009 15:42:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[TinyMCE]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=180</guid>
		<description><![CDATA[Selenium&#8217;s &#8216;type&#8217; command will not work with forms using TinyMCE for WYSIWYG markup.  To test TinyMCE forms, you need to use &#8216;runScript&#8217; to fire off some JavaScript to set the value.

First use mceFocus to get the textarea you wish to alter, in this case id=&#8221;body&#8221;:

tinyMCE.execCommand&#40;'mceFocus',false,'body'&#41;;

Next, set the text by using mceInsertContent:

tinyMCE.execCommand&#40;&#34;mceInsertContent&#34;, false, &#34;body text&#34;&#41;;

In [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/selenium-tinymce/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Alternative Syntax for UI</title>
		<link>http://www.bytesite.co.uk/php-alternative-syntax-for-ui</link>
		<comments>http://www.bytesite.co.uk/php-alternative-syntax-for-ui#comments</comments>
		<pubDate>Thu, 12 Feb 2009 11:58:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Syntax]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=160</guid>
		<description><![CDATA[PHP has a slightly underused alternative syntax for control structures, which generally is more effective in template files than the standard block-style code.

If

if &#40;$a == 5&#41;:
    statement
    …
elseif &#40;$a == 6&#41;:
    statement
    …
else:
    statement
    …
endif;

While

while &#40;expr&#41;:
  [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/php-alternative-syntax-for-ui/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
