<?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>Blog Of &#039;Dean Williams&#039;</title>
	<atom:link href="http://dean.resplace.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://dean.resplace.net/blog</link>
	<description>Life Progress: [----&#124;------------]</description>
	<lastBuildDate>Fri, 18 May 2012 13:29:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Tutorial: Using FCKEditor FileManager in the new CKEditor</title>
		<link>http://dean.resplace.net/blog/2012/05/tutorial-using-fckeditor-filemanager-in-the-new-ckeditor/</link>
		<comments>http://dean.resplace.net/blog/2012/05/tutorial-using-fckeditor-filemanager-in-the-new-ckeditor/#comments</comments>
		<pubDate>Fri, 18 May 2012 13:29:47 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Guides / Tutorials / How-To's]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Useful Things]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[FCKEditor]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=345</guid>
		<description><![CDATA[Recently I decided to upgrade a clients administration panel from the old FCKEditor to the new CKEditor – however after installation I realised the FileManager was missing… So I started trawling the internet looking for an alternative. I came across &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/05/tutorial-using-fckeditor-filemanager-in-the-new-ckeditor/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Recently I decided to upgrade a clients administration panel from the old FCKEditor to the new CKEditor – however after installation I realised the FileManager was missing… So I started trawling the internet looking for an alternative.</p>
<p>I came across <a href="http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/" target="_blank">this very useful guide</a> which I followed step-by-step and it was so easy!! I successfully got the old FileManager from FCKEditor to CKEditor!</p>
<p>There was 2 problems with the guide though… Firstly instead of this code:</p>
<pre class="prettyprint">CKEDITOR.replace( 'editor1',
                {
                    filebrowserBrowseUrl :'js/ckeditor/filemanager/browser/default/browser.html?Connector=http://www.mixedwaves.com/filemanager_in_ckeditor/js/ckeditor/filemanager/connectors/php/connector.php',
                    filebrowserImageBrowseUrl : 'js/ckeditor/filemanager/browser/default/browser.html?Type=Image&amp;amp;Connector=http://www.mixedwaves.com/filemanager_in_ckeditor/js/ckeditor/filemanager/connectors/php/connector.php',
                    filebrowserFlashBrowseUrl :'js/ckeditor/filemanager/browser/default/browser.html?Type=Flash&amp;amp;Connector=http://www.mixedwaves.com/filemanager_in_ckeditor/js/ckeditor/filemanager/connectors/php/connector.php'}
             );</pre>
<p>I had to use the following, note that instead of relative paths I used full paths and all <strong>&amp;amp;</strong> had to be changed to just <strong>&amp;</strong> else it breaks the scripts:</p>
<pre class="prettyprint">filebrowserBrowseUrl :'&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/browser/default/browser.html?Connector=&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/connectors/php/connector.php',
filebrowserImageBrowseUrl : '&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/browser/default/browser.html?Type=Image&amp;Connector=&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/connectors/php/connector.php',
filebrowserFlashBrowseUrl :'&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/browser/default/browser.html?Type=Flash&amp;Connector=&lt;?=CMS_SITE_URL?&gt;assets/ckeditor/filemanager/connectors/php/connector.php'
					</pre>
<p>&#160;</p>
<p>The second problem stumped me for 20 minutes until I spotted it, the following code is incorrect:</p>
<pre class="prettyprint">function GetUrlParam( paramName )
{
	var oRegex = new RegExp( '[\?&amp;]' + paramName + '=([^&amp;]+)', 'i' ) ;
	var oMatch = oRegex.exec( window.top.location.search ) ;

	if ( oMatch &amp;&amp; oMatch.length &amp;gt; 1 )
		return decodeURIComponent( oMatch[1] ) ;
	else
		return '' ;
}</pre>
<p>Notice the <strong>&amp;gt;</strong> in the if statement? Well the correct code should be:</p>
<pre class="prettyprint">function GetUrlParam( paramName )
{
	var oRegex = new RegExp( '[\?&amp;]' + paramName + '=([^&amp;]+)', 'i' ) ;
	var oMatch = oRegex.exec( window.top.location.search ) ;

	if ( oMatch &amp;&amp; oMatch.length &gt; 1 )
		return decodeURIComponent( oMatch[1] ) ;
	else
		return '' ;
}</pre>
<p>&#160;</p>
<p>Other than that the guide is brilliant! So good I had to share it with my blog <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://dean.resplace.net/blog/wp-content/uploads/2012/05/wlEmoticon-smile1.png" /></p>
<p>&#160;</p>
<p><a href="http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/">http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/05/tutorial-using-fckeditor-filemanager-in-the-new-ckeditor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why trust your PC after a virus!</title>
		<link>http://dean.resplace.net/blog/2012/05/why-trust-your-pc-after-a-virus/</link>
		<comments>http://dean.resplace.net/blog/2012/05/why-trust-your-pc-after-a-virus/#comments</comments>
		<pubDate>Wed, 16 May 2012 08:37:42 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[trust]]></category>
		<category><![CDATA[uninstall]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=342</guid>
		<description><![CDATA[I see this time and time again – someone gets a virus on their PC, calls their “techie” friend who immediately goes “oh yeah – I can remove this…”. The “techie” removes some start-up program entries that run the offending &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/05/why-trust-your-pc-after-a-virus/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I see this time and time again – someone gets a virus on their PC, calls their “techie” friend who immediately goes “oh yeah – I can remove this…”. The “techie” removes some start-up program entries that run the offending EXE – runs some slightly more suspicious “.bat” files that apparently help remove the root of the virus, does a system restore and/or uses a virus scanner to remove the virus…</p>
<p>Okay, my problem with this is… Why trust your machine after a virus has infected it? Especially when that virus is advanced enough to route itself into your explorer.exe, hide itself amongst system files and even INSIDE system files – probably tampered with your firewall / virus scanner / boot sector and is probably wrapping itself all over your Operating System.</p>
<p>The point I’m trying to make is, how to do you know the virus has gone? Just because you no longer get the FBI warning or the weird popups does not mean the virus isn’t still lurking in your system or that your system is not compromised ready for future viruses.</p>
<p>Why is it such a daunting task to just wipe the Operating System and start again? This is the practice I have been accustomed to for almost 10 years now, if I get a virus I immediately boot a Linux OS from a CD – recover anything important and scan it externally (not with the infected computer!), and then re-install the whole Operating System which takes less than 3 hours and gives me complete piece of mind. </p>
<p>Not only does it give you complete piece of mind, but also my computer is “as new”, and it’s nice to have everything clean and fresh – also fixes any weird problems the system picks up over the months/years you have been using it.</p>
<p>I always follow these simple rules:-</p>
<ol>
<li><strong>Never trust your virus scanner to fix your problems</strong> – It’s software too and is just as vulnerable as the Operating System (in fact viruses purposely look for them and target them so they could be seen as MORE vulnerable).      </li>
<li><strong>Even if you can stop the virus, don&#8217;t trust your machine</strong> – Viruses are programmed to be smart, they can lay dormant and re-initialize themselves very easily by hooking into other software or even files such as images. Not only this they may have altered your virus software and/or firewall leaving you vulnerable.&#160; </li>
<li><strong>Backup your system externally</strong> – Don&#8217;t use system restore for recovery after a virus, it is really easy for a virus to infect these “backups” and it is just not worth relying on them for this situation, use it for software installations and upgrades which is what is it meant for. Instead use some backup software (you can find free ones on the internet), backup your operating system onto an external drive.      </li>
<li><strong>Watch for weird behaviour</strong> – Just because you have a virus scanner or malware scanner, does not mean it will tell you instantly when something bad is on your machine, use your initiative and look out for the signs of an infection, such as:-</li>
<ul>
<li>Weird software appearing on your machine.</li>
<li>New programs appearing in the process list that you did not install or run (CTRL + ALT + DEL)</li>
<li>System becoming sluggish randomly or taking forever to boot (this could also be a hardware / software issue).</li>
<li>Network lights flash even when your sat looking at the desktop with no software running.</li>
</ul>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/05/why-trust-your-pc-after-a-virus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JavaScript: Basic, Multi-Dimensional &amp; Associative Arrays</title>
		<link>http://dean.resplace.net/blog/2012/05/javascript-basic-multi-dimensional-associative-arrays/</link>
		<comments>http://dean.resplace.net/blog/2012/05/javascript-basic-multi-dimensional-associative-arrays/#comments</comments>
		<pubDate>Thu, 10 May 2012 09:18:12 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Code Snippets / Functions]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Useful Things]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[associative]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[define]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[multi-dimensional]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[vars]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=339</guid>
		<description><![CDATA[Arrays are an amazingly useful variable in all programming languages, they allow you to store vast amounts of organised data in just one reference. This helps not only on software memory usage and speed – But also on program complexity &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/05/javascript-basic-multi-dimensional-associative-arrays/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Arrays are an amazingly useful variable in all programming languages, they allow you to store vast amounts of organised data in just one reference. This helps not only on software memory usage and speed – But also on program complexity and code neatness.</p>
<p>I’m going to explain by example many different ways you can define and read an array in JavaScript, and believe me, there are a number of methods.</p>
<h3>Arrays &#8211; Basics</h3>
<p>To define an ordinary array in JavaScript is very simple. There is no fancy attributes or methods you need to call, it’s as simple as defining a normal variable:</p>
<pre class="prettyprint">var myArray = [];</pre>
<p>You will notice that you have not had to tell JavaScript how many items are going to be in your array, unlike other languages, JavaScript automatically expands the array as needed and you never need to worry about defining or extending the size of the array.<br />
  <br />However you can use the “old” method which allows you to define the arrays initial size, but it is recommended that you use the above method:</p>
<pre class="prettyprint">var myArray = new Array(10); //Creates an empty array with 10 elements</pre>
<h4></h4>
<p>If you need to define a pre-populated array then this is also really simple:</p>
<pre class="prettyprint">var myArray = [12, 24, 48];</pre>
<p>And if you need to use strings in the array…</p>
<pre class="prettyprint">var myArray = [&quot;London&quot;, &quot;Cannock&quot;, &quot;Scotland&quot;];</pre>
<p>You can even mix the types in the array, as JavaScript doesn&#8217;t care about type casting <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://dean.resplace.net/blog/wp-content/uploads/2012/05/wlEmoticon-smile.png" />:</p>
<pre class="prettyprint">var myArray = [&quot;London&quot;, 32, &quot;Cannock&quot;, 845];</pre>
<h3>Arrays – Multi-Dimensional</h3>
<p>Sometimes you need to use more complex arrays, arrays within arrays are a very common practice in programming and they are just as useful as arrays themselves. Such arrays are referred to as multi-dimensional arrays, and can be defined in JavaScript like this:</p>
<pre class="prettyprint">var myArray = [&quot;hello&quot;, [&quot;stuff&quot;, &quot;grouped&quot;, &quot;together&quot;], &quot;world&quot;];</pre>
<p>Above is a very basic example of a multi-dimensional array, only going deep by one level – basically you group values into [ ] brackets to define an array within the array, say you wanted to get “grouped” from the above example, it is located at index 1 of the main array, and index 1 of the inner array – so you would access it as follows:</p>
<pre class="prettyprint">alert(myArray[1][1]);</pre>
<p>To get “world” is even simpler:</p>
<pre class="prettyprint">alert(myArray[2])</pre>
<p>Here is a final example of a much more complex multi-dimensional array – with example outputs to hopefully show how it works (note how I have also laid out the array so that it is easy to read):</p>
<pre class="prettyprint">var myArray = 	[
			&quot;hello&quot;,
			[&quot;berries&quot;, &quot;grouped&quot;, 88, &quot;frozen&quot;],
			[
				&quot;stuff&quot;,
				[
					&quot;mash&quot;,
					[&quot;melon&quot;, &quot;freeze&quot;, 12, &quot;together&quot;],
					&quot;people&quot;
				],
				&quot;car&quot;
			],
			[
				&quot;orange&quot;,
				&quot;code&quot;,
				84,
				[&quot;mate&quot;, &quot;women&quot;, &quot;man&quot;]
			],
			[&quot;bus&quot;, &quot;car&quot;, 345, &quot;lorry&quot;],
			&quot;world&quot;
		];

alert(myArray[0]); //hello
alert(myArray[1][2]); //88
alert(myArray[2][1][1][1]); //freeze
alert(myArray[2][2]); //car
alert(myArray[3][3][1]); //woman
alert(myArray[5]); //world</pre>
<h3>Arrays – Associative</h3>
<p>Sometimes it can be a real pain drilling through your array using index numbers, they are meaningless and can make referencing into multi—dimensional arrays difficult and somewhat confusing. So to give your array some meaning you can define “keys” for your arrays so that accessing them is more meaningful to yourself and to your fellow programmers, this is done by using the { } brackets and defining an index name. <strong>Note:</strong> These are in fact called objects and officially JavaScript does not support associative arrays, however using objects emulates this pretty well and as such is referred to as associative arrays.</p>
<p>A simple Associative array is defined and used as follows:</p>
<pre class="prettyprint">var myArray = 	{
			customer :
				[&quot;tom&quot;, &quot;dick&quot;, &quot;harry&quot;],
			age :
				[23, 42, 18]
		};

alert(&quot;First customer '&quot; + myArray['customer'][0] + &quot;' is &quot; + myArray['age'][0] + &quot; years old.&quot;); //first customer
alert(&quot;First customer '&quot; + myArray['customer'][1] + &quot;' is &quot; + myArray['age'][1] + &quot; years old.&quot;); //second customer
alert(&quot;First customer '&quot; + myArray['customer'][2] + &quot;' is &quot; + myArray['age'][2] + &quot; years old.&quot;); //third customer</pre>
<p>If you are really into complex arrays then how about a multi-dimensional associative array? Ugghhh yesss that is a turn on…</p>
<pre class="prettyprint">var myArray = 	{
			customer :
				[
					{
						firstname : &quot;tom&quot;,
						lastname : &quot;smith&quot;,
						age : 23
					},
					{
						firstname : &quot;dick&quot;,
						lastname : &quot;head&quot;,
						age : 42
					},
					{
						firstname : &quot;tom&quot;,
						lastname : &quot;thumb&quot;,
						age : 18
					}
				],
			location :
				{
					england :
						{
							main : &quot;Warwick&quot;,
							second : &quot;Cannock&quot;,
							third : &quot;London&quot;
						}
					france :
						{
							main : &quot;Alsace&quot;,
							second : &quot;Corsica&quot;,
							third : &quot;Provence&quot;
						}
				}
		};

alert(&quot;First customer '&quot; + myArray['customer'][0]['firstname'] + &quot; &quot; + myArray['customer'][0]['lastname'] + &quot;' is &quot; + myArray['age'][0]['age'] + &quot; years old.&quot;); //first customer
alert(&quot;First customer '&quot; + myArray['customer'][1]['firstname'] + &quot; &quot; + myArray['customer'][1]['lastname'] + &quot;' is &quot; + myArray['age'][1]['age'] + &quot; years old.&quot;); //second customer
alert(&quot;First customer '&quot; + myArray['customer'][2]['firstname'] + &quot; &quot; + myArray['customer'][2]['lastname'] + &quot;' is &quot; + myArray['age'][2]['age'] + &quot; years old.&quot;); //third customer

//locations
alert(myArray['location']['england']['main']); //Warwick
alert(myArray['location']['england']['third']); //London
alert(myArray['location']['france']['third']); //Provence</pre>
<p>If that doesn&#8217;t make your heart stop then you are a brave programmer, but to be fair, once you get to grips with how JavaScript defines arrays it’s probably the easiest language for arrays around.</p>
<h3></h3>
<h3>Functions + Regular Expressions in arrays</h3>
<p>I will leave this post with one final bombshell – functions in arrays! omg omg omg:</p>
<pre class="prettyprint">var myArray = 	[
			3,
			'hello!',
			function() {return 5},
			{
				color : 'blue',
				budget : 25
			},
			/[ell]/i
		];
document.writeln('0&gt;'+myArray[0]+'&lt;BR&gt;');                  // Will output: 0&gt;3
document.writeln('1&gt;'+myArray[1]+'&lt;BR&gt;');                  // Will output: 1&gt;hello!
document.writeln('2&gt;'+myArray[2]()+'&lt;BR&gt;');                // Will output: 2&gt;5
document.writeln('3&gt;'+myArray[3].color+'&lt;BR&gt;');            // Will output: 3&gt;blue
document.writeln('3&gt;'+myArray[3].budget+'&lt;BR&gt;');           // Will output: 3&gt;25
document.writeln('4&gt;'+myArray[4].test(myArray[1])+'&lt;BR&gt;'); // Will output: 4&gt;true </pre>
<p>&#160;</p>
<p>Please feel free to leave feedback / comments / suggestions and/or ask for support using the comment box below.</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/05/javascript-basic-multi-dimensional-associative-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Only variable references should be returned by reference</title>
		<link>http://dean.resplace.net/blog/2012/05/php-only-variable-references-should-be-returned-by-reference/</link>
		<comments>http://dean.resplace.net/blog/2012/05/php-only-variable-references-should-be-returned-by-reference/#comments</comments>
		<pubDate>Fri, 04 May 2012 12:31:32 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Code Snippets / Functions]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Useful Things]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[notice]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[references]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=334</guid>
		<description><![CDATA[Pulling your hair out over this Notice message? Well here is an explanation for why you are getting this and how you can avoid it. Take a look at the following code: &#60;?php class myClass { public $var = 1; &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/05/php-only-variable-references-should-be-returned-by-reference/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Pulling your hair out over this Notice message? Well here is an explanation for why you are getting this and how you can avoid it.</p>
<p>Take a look at the following code:</p>
<pre class="prettyprint">&lt;?php
class myClass {
    public $var = 1;

    public function &amp;getVar() {
        return($this-&gt;var);
        }
}

$obj = new myClass;
$value = &amp;$obj-&gt;getVar();
?&gt;</pre>
<p>Now this code works completely fine, apart from every time it hits the “return” statement it chucks out a weird Notice error: <strong><em>Only variable references should be returned by reference.</em></strong></p>
<p>But what does that actually mean? … Basically the return statement is returning the result of the variable and not the reference because of the () brackets around the variable.</p>
<p>so to return correctly by reference you would do this instead:</p>
<pre class="prettyprint">&lt;?php
class myClass {
    public $var = 1;

    public function &amp;getVar() {
        return $this-&gt;var;
        }
}

$obj = new myClass;
$value = &amp;$obj-&gt;getVar();
?&gt;</pre>
<p>Kicking yourself now? Yes it is that easy…</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/05/php-only-variable-references-should-be-returned-by-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downtime :O</title>
		<link>http://dean.resplace.net/blog/2012/05/downtime-o/</link>
		<comments>http://dean.resplace.net/blog/2012/05/downtime-o/#comments</comments>
		<pubDate>Fri, 04 May 2012 10:55:55 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[resplace news]]></category>
		<category><![CDATA[apology]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=332</guid>
		<description><![CDATA[Apologies for the downtime, I’m officially a dumbass… Changed the MySQL database username/passwords last night and forgot to update the WordPress connection information. On another note, we did experience some downtime Monday also, this was due to a technical fault &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/05/downtime-o/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Apologies for the downtime, I’m officially a dumbass… Changed the MySQL database username/passwords last night and forgot to update the WordPress connection information.</p>
<p>On another note, we did experience some downtime Monday also, this was due to a technical fault with the MySQL server itself, which was playing up all morning…</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/05/downtime-o/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ampersand Design (designampersand.com)</title>
		<link>http://dean.resplace.net/blog/2012/04/ampersand-design-designampersand-com/</link>
		<comments>http://dean.resplace.net/blog/2012/04/ampersand-design-designampersand-com/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 16:33:23 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=328</guid>
		<description><![CDATA[http://www.designampersand.com/ A guy named James Shirley, is A very nice guy at first, but then he uses your skills and time and then decides not to pay you what you have both agreed. yup… This is what has happened to &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/04/ampersand-design-designampersand-com/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designampersand.com/">http://www.designampersand.com/</a></p>
<p>A guy named James Shirley, is A very nice guy at first, but then he uses your skills and time and then decides not to pay you what you have both agreed.</p>
<p>yup… This is what has happened to me recently, converted a PSD design into a website with javascript interaction recently for Mr James Shirley, we both agreed £150 in total and he said he was more than happy with the work I had carried out for him…</p>
<p>Over a month later and I have still not seen the £120 still owed to me, I have received £30 only due to the fact it was a deposit made to PeoplePerHour.com and they kindly released it to me.</p>
<p>The cheeky cunt even tried to threaten me with legal action if I contacted his client (he was building the site for someone else)… Threat noted but hasn&#8217;t deterred me <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style: none;" src="http://dean.resplace.net/blog/wp-content/uploads/2012/04/wlEmoticon-winkingsmile1.png" alt="Winking smile" />.</p>
<p>Lets see what your client thinks of this.</p>
<p><strong>I discourage anyone from using this company for any website design and/or coding.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/04/ampersand-design-designampersand-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>National &quot;cc all your e-mails to Theresa May&quot; Day</title>
		<link>http://dean.resplace.net/blog/2012/04/national-cc-all-your-e-mails-to-theresa-may-day/</link>
		<comments>http://dean.resplace.net/blog/2012/04/national-cc-all-your-e-mails-to-theresa-may-day/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 10:58:24 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[day]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[forward]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[national]]></category>
		<category><![CDATA[political]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[theresa may]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=323</guid>
		<description><![CDATA[Normally I would not support such an activity as this, as it is obviously going to cause some serious downtime, but because it’s the government and also because I completely agree with the reasons behind doing it! I will make &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/04/national-cc-all-your-e-mails-to-theresa-may-day/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Normally I would not support such an activity as this, as it is obviously going to cause some serious downtime, but because it’s the government and also because I completely agree with the reasons behind doing it! I will make an exception….</p>
<p>So the government want to store everyone’s emails in one huge, dirty, big database somewhere so they can snoop on all our private activity for the purpose of “national security” – because hey were overrun with terrorism over here in Britain…</p>
<p><em>/sarcasm/*bang*…. shit there goes another bomb!! that one was close… /sarcasm/</em></p>
<p>What really infuriates me even more is I just know its going to be a PostgreSQL or AODB … gah, I can barely take talking about it…. ugghh!</p>
<p>But yeah humour aside, check out this facebook group and in 4 days forward all your incoming / outgoing (or as someone suggested just your SPAM) to Theresa May and other government bodies, to save them the trouble of having to scrap emails from us <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://dean.resplace.net/blog/wp-content/uploads/2012/04/wlEmoticon-winkingsmile.png" /></p>
<p><a href="https://www.facebook.com/pages/National-cc-all-your-e-mails-to-Theresa-May-Day/155277607840980?sk=info">https://www.facebook.com/pages/National-cc-all-your-e-mails-to-Theresa-May-Day/155277607840980?sk=info</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/04/national-cc-all-your-e-mails-to-theresa-may-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linesave, Quantum Web solutions, Quantum Network &amp; Promotions, Twipple</title>
		<link>http://dean.resplace.net/blog/2012/04/linesave-quantum-web-solutions-quantum-network-promotions-twipple/</link>
		<comments>http://dean.resplace.net/blog/2012/04/linesave-quantum-web-solutions-quantum-network-promotions-twipple/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 14:09:04 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=319</guid>
		<description><![CDATA[Right, so I’ve had a MASSIVE response to my blog posts about Quantum Web Solutions going into liquidation and I must thank everyone who has come forward to share their stories and especially for contributing information to help others. So &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/04/linesave-quantum-web-solutions-quantum-network-promotions-twipple/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Right, so I’ve had a MASSIVE response to my blog posts about Quantum Web Solutions going into liquidation and I must thank everyone who has come forward to share their stories and especially for contributing information to help others.</p>
<p>So for those that are not aware and/or have not read my other blog posts, let me just give you a quick story / history on the companies in the title.</p>
<p><strong>Linesave</strong> started as a small Web Development company in Shrewsbury, unfortunately it went into liquidation and was “bought” out by <strong>Quantum Web Solutions</strong>, which resided in the same office building with the same staff and the same management until it too had an unfortunate demise, also liquidating, and again being “bought” out by a company called <strong>Quantum Network &amp; Promotions</strong>…</p>
<p>This in itself looks a little fishy, but it’s not until you speak with clients / ex staff of these companies you begin to realise how many people they have let down over the years. From unfulfilled promises, badly coded / rushed websites, half the features that were promised and way way way past the original deadline, I have heard many stories, and I believe I have only scratched the surface…</p>
<p>For those that do not know, I worked at Quantum Web Solutions for over 9 months, witnessing there highly unprofessional approach to Web Development, lack of organisation, and many many unhappy customers. At least three quarters of the company was dedicated to new customers / sales. With the final quarter actually working on existing websites. What was most worrying was the MASSIVE amount of bug reports and other general problems clients had which the company barely spent time working on.</p>
<h3></h3>
<h3>The Update…</h3>
<h2></h2>
<p>As I said in the opening paragraph, such a huge response from people, some have been waiting months / years without their website being completed, where as others have been charged for services and not received anything thanks to the liquidation of the company after purchase. Others have in fact got their website functioning with Quantum but are not happy due to bad service, buggy websites and missing features, and yet more customers have reported how Quantum have contacted them asking if they wish to upgrade to the new Tovuti system offered by Quantum Network &amp; Promotions, even though there old sites are incomplete / unsatisfactory and the company they are with are liquidated!!</p>
<p>Take a look at the overwhelming response from people on my previous blog posts:</p>
<p>&gt; <a href="http://dean.resplace.net/blog/2012/03/quantum-web-in-liquidation/" target="_blank">Quantum Web In Liquidation!</a><br />
&gt; <a href="http://dean.resplace.net/blog/2011/10/quantum-web-solutions-the-art-of-misleading-clients-and-the-resulting-damage-its-causing/" target="_blank">Quantum Web Solutions – The art of misleading Clients and the resulting damage it’s causing!</a></p>
<p>It looks to me like Quantum Umbrella have a new company in full swing, the only thing I and many other people are worried about is: <strong>Will they do the same as they did with the previous 2 companies!?!</strong></p>
<p>I can confirm that the company is:</p>
<ol>
<li>At the same address as the previous companies.</li>
<li>Has EXACTLY the same management.</li>
<li>Office didn&#8217;t even close / lose furniture or anything.</li>
<li>Has EXACTLY the same staff.</li>
<li>Is selling the SAME website system just with ‘improvements’.</li>
</ol>
<h3>Should I?</h3>
<p>If your thinking of spending money with Quantum Web then you do not need me to tell you what my personal opinion is. I think it is quite clear and if you do decide to have your website with them, then all I can say is <em>Good Luck!</em>.</p>
<p>BEING FAIR: There HAS been some good websites emerge from Quantum Web, yes I know that is surprising, and it wasn’t an easy achievement for the client or the employee’s (lets not forget most of the employees at Quantum really do work hard to try and meet the clients requirements and expectations and all the problems stem from management). One of which I worked on in the past, was featured on Dragons Den and is doing pretty good for itself (although I have heard that the site is being re-built by another company for reasons that are not disclosed).</p>
<h3></h3>
<h3>Twipple??</h3>
<p>I’ve been informed by a close friend today that a “spin off” company has been setup by Quantum called Twipple – A SEO company that boasts about how great their services are?</p>
<p>I would also like to point out (don&#8217;t know whether to be amused or shocked), that in the fader as you scroll down the page they have a heading that reads “Step 1: Test the foundations” – the photo in the background is the foundations of the World Trade Centre??? I’m pretty sure it is… How sick is that?</p>
<h3>Your Stories</h3>
<p>Again just like on the other blog posts, I’m looking for your opinions and stories, just post your details in the comment box below, make sure you give me a legitimate email address if possible (this will not feature on the site and only to me) – you can give a bogus name and not provide a website URL if you wish.</p>
<p>Oh and if you don&#8217;t want your comments to appear to anyone else at all and only to me then please put “IN CONFIDENCE” as the first line of the comment, or just email me directly at: <a href="mailto:deano@resplace.net">deano@resplace.net</a></p>
<p>I’m particularly looking for people who have worked with or are in the process of working with the new Quantum Network &amp; Promotions company, and those who need advice etc. are also welcome.</p>
<h3>Moving from Quantum</h3>
<p>As I said in my last blog post, you can easily leave Quantum if you are unhappy/unsure with their services, email me if you are thinking of doing this and need help doing so, or help hosting your Quantum Web website.</p>
<p>And finally to those who have moved there website from Quantum, perhaps you need hosting or bug/fixes or coding work, contact me in the comments and perhaps I can help.</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/04/linesave-quantum-web-solutions-quantum-network-promotions-twipple/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Google Analytics on AJAX Requests</title>
		<link>http://dean.resplace.net/blog/2012/04/using-google-analytics-on-ajax-requests/</link>
		<comments>http://dean.resplace.net/blog/2012/04/using-google-analytics-on-ajax-requests/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 15:59:42 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Code Snippets / Functions]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Useful Things]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=317</guid>
		<description><![CDATA[Google Analytics is a great way to track the visitors on your websites, however what if you are using AJAX for website navigation? Fortunately Google have everything under control, you can easily tell Analytics that the user is loading another &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/04/using-google-analytics-on-ajax-requests/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Google Analytics is a great way to track the visitors on your websites, however what if you are using AJAX for website navigation? Fortunately Google have everything under control, you can easily tell Analytics that the user is loading another page by using <em>_trackPageView</em>.</p>
<p>You should already have the latest Google Analytics tracking code called in the head/body of your website:</p>
<pre class="prettyprint">&lt;script type=&quot;text/javascript&quot;&gt;
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-xxxxxxxx-x']);
	_gaq.push(['_setDomainName', 'xxxxxxxx.xxx']);
	_gaq.push(['_trackPageview']);

	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
&lt;/script&gt;</pre>
<p>So lets say you have the following code to identify URL clicks and use AJAX to load the page content:</p>
<pre class="prettyprint">$(&quot;a&quot;).on(&quot;click&quot;, function(event) {
	$.ajax({
		type: &quot;GET&quot;,
		url: url,
		dataType: &quot;html&quot;,
		success: function(data) {
			$(&quot;#content&quot;).html(data);
		}
});</pre>
<p>It is really simple to now add the Google Analytics code into your AJAX request:</p>
<p><pre class="prettyprint">$(&quot;a&quot;).on(&quot;click&quot;, function(event) {
	$.ajax({
		type: &quot;GET&quot;,
		url: url,
		dataType: &quot;html&quot;,
		success: function(data) {
			$(&quot;#content&quot;).html(data);
			_gaq.push(['_trackPageview', url]);
		}
});</pre>
<p>You should try and get URL so that it is a relative link from the root of your website, for instance <em>/homepage/</em> for<em> </em><a href="http://mysite.com/homepage/" class="broken_link"><em>http://mysite.com/homepage/</em></a>.</p>
<p>If you are sending a full url to your AJAX request, you could perhaps use this solution to get a relative URL:</p>
<p><strong></p>
<pre class="prettyprint">$(&quot;a&quot;).on(&quot;click&quot;, function(event) {
	$.ajax({
		type: &quot;GET&quot;,
		url: url,
		dataType: &quot;html&quot;,
		success: function(data) {
			$(&quot;#content&quot;).html(data);

			//get relative path
			nohttp = url.replace(&quot;http://&quot;,&quot;&quot;).replace(&quot;https://&quot;,&quot;&quot;);
			firstsla = nohttp.indexOf(&quot;/&quot;);
			pathpos = url.indexOf(nohttp);
			path = url.substring(pathpos + firstsla);
			_gaq.push(['_trackPageview', path]);
		}
});</pre>
<p>Tip:</strong> Put in plenty of <em>alert()</em> debug into the code to make sure you are reporting links / paths correctly to Google Analytics.</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/04/using-google-analytics-on-ajax-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX loaded content not visible in IE7 + IE8 with jQuery</title>
		<link>http://dean.resplace.net/blog/2012/04/ajax-loaded-content-not-visible-in-ie7-ie8-with-jquery/</link>
		<comments>http://dean.resplace.net/blog/2012/04/ajax-loaded-content-not-visible-in-ie7-ie8-with-jquery/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 08:39:45 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Code Snippets / Functions]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Useful Things]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[peakaboo]]></category>
		<category><![CDATA[pure]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[renderer]]></category>
		<category><![CDATA[rendering]]></category>

		<guid isPermaLink="false">http://dean.resplace.net/blog/?p=315</guid>
		<description><![CDATA[Recently I have had a nightmare of a problem with an apparent rendering bug in IE7 + IE8 which had all the hallmarks of the “peakaboo bug”. Firstly, here is a quick explanation of my problem: AJAX fetches content into &#8230;<p class="read-more"><a href="http://dean.resplace.net/blog/2012/04/ajax-loaded-content-not-visible-in-ie7-ie8-with-jquery/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Recently I have had a nightmare of a problem with an apparent rendering bug in IE7 + IE8 which had all the hallmarks of the “peakaboo bug”. Firstly, here is a quick explanation of my problem:</p>
<p>AJAX fetches content into an element on the page, in ALL other browsers this content appears and works normally as I would have expected, however in Internet Explorer 7 and Internet Explorer 8 the content would not appear in the page at all.   <br />However upon debugging using the IE9 developer tools (having IE in 7/8 mode), the content still does not appear but when inspecting the DOM, you can see the content IS there but is somehow “hidden”, I quote hidden because no CSS property is controlling this state, and trying to show the content using various CSS tags does not make the content appear.</p>
<p>So after searching tirelessly for a solution and trying the well documented “zoom:1”, “position:relative” and many other possible solutions, only for nothing to work for me, I eventually came to the solution that it would never work… And added a clause to STOP IE7 and IE8 from using AJAX on my site.</p>
<p>BUT THEN…</p>
<p>FINALLY! I have found a solution, a very strange and weird solution I must admit!</p>
<p>I found out that changing:</p>
<pre class="prettyprint">$('#' + AAPL_content).html(output);</pre>
<p>So that instead we use PURE JavaScript like this:</p>
<pre class="prettyprint">document.getElementById(AAPL_content).innerHTML = output;</pre>
<p>Fix’s the problem and now IE7 and IE8 are functioning as expected, ALL of the time.</p>
<h3></h3>
<h3>Moral of the story… </h3>
<p>Never completely trust a JavaScript library to dig you out of the shit, always debug your code and try the impossible solutions as they can sometimes, surprisingly, be a possible cause.</p>
<p>Oh… And… DONT USE .html() to change content… EVER!!</p>
]]></content:encoded>
			<wfw:commentRss>http://dean.resplace.net/blog/2012/04/ajax-loaded-content-not-visible-in-ie7-ie8-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

