<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Christopher Shennan's Blog</title>
	
	<link>http://www.chrisshennan.com</link>
	<description>A day in the life of...</description>
	<lastBuildDate>Wed, 01 Sep 2010 13:00:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ChristopherShennansBlog" /><feedburner:info uri="christophershennansblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Method Signatures – Pass values as individual parameters or an option array?</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/deVAobGQZ3I/</link>
		<comments>http://www.chrisshennan.com/2010/08/25/method-signatures-pass-values-as-individual-parameters-or-an-option-array/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 11:07:47 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[method signatures]]></category>
		<category><![CDATA[options array]]></category>
		<category><![CDATA[parameter passing]]></category>
		<category><![CDATA[parameters vs option array]]></category>
		<category><![CDATA[parameters vs options]]></category>
		<category><![CDATA[symfony options array]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=330</guid>
		<description><![CDATA[Over the last few months I have been working with Symfony and have got used to passing values to methods via an options array but I have recently had to pick up an older project in which the values are passed to the methods by individual parameters. 
This has given me a good opportunity to [...]]]></description>
			<content:encoded><![CDATA[<h4><span style="font-weight: normal;">Over the last few months I have been working with Symfony and have got used to passing values to methods via an options array but I have recently had to pick up an older project in which the values are passed to the methods by individual parameters. </span></h4>
<h4><span style="font-weight: normal;">This has given me a good opportunity to evaluate both techniques and determine my personal preference for working.</span></h4>
<p>The more traditional technique is to pass values to methods using individual parameters as in the example below:-</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> someMethod<span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$age</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// do something</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The benefit I have found with this method is that you can clearly identify what needs to be passed to the method, however, if you need to change the method to include an additional parameter it means that you have to update every call to this method so that every parameter is specified.<br />
<span id="more-330"></span><br />
An alternative (and my personal preference) is to used an option array like in the following example</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> someMethod<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #666666; font-style: italic;">// do something</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>In this case, if you need to add an extra parameter to the method you can simply add the value to the options array and update the functionality within the method.  You do not necessarily need to update the calls to this method that are already in place  because they should still work fine provided the updated functionality is defined in such a way that it allows for the new parameter to be optional.</p>
<p>In addition, I feel that if you provide decent documentation regarding the options array (which should include a list of all the options values allowed), especially if it can be picked up via auto-completion in IDEs such as <a href="http://www.netbeans.com/" target="_blank">Netbeans</a>, then this is just as easy to use as methods which are defined to accept individual parameters.</p>
<h4>References</h4>
<p><a href="http://weblogtoolscollection.com/archives/2010/02/25/passing-parameters-as-variables-vs-passing-parameters-as-an-array/" target="_blank">http://weblogtoolscollection.com/archives/2010/02/25/passing-parameters-as-variables-vs-passing-parameters-as-an-array/</a></p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/deVAobGQZ3I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/08/25/method-signatures-pass-values-as-individual-parameters-or-an-option-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/08/25/method-signatures-pass-values-as-individual-parameters-or-an-option-array/</feedburner:origLink></item>
		<item>
		<title>VPN Issues with O2 Wireless Box II</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/L1IBmCy3G40/</link>
		<comments>http://www.chrisshennan.com/2010/04/16/vpn-issues-with-o2-wireless-box-ii/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 01:50:47 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Computer Maintenance]]></category>
		<category><![CDATA[o2]]></category>
		<category><![CDATA[o2 broadband]]></category>
		<category><![CDATA[o2 vpn issues]]></category>
		<category><![CDATA[o2 wireless box II]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=312</guid>
		<description><![CDATA[For the last few months I have been connecting to the VPN at work via my O2 Wireless Box II quite happily until it suddently stopped working about 2 weeks ago which has caused me no end of headaches (tight deadlines looming etc).  Each time I tried to connect I got presented with a [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few months I have been connecting to the VPN at work via my O2 Wireless Box II quite happily until it suddently stopped working about 2 weeks ago which has caused me no end of headaches (tight deadlines looming etc).  Each time I tried to connect I got presented with a &#8220;Error 619 &#8211; Disconnected&#8221;</p>
<p><img class="aligncenter size-full wp-image-313" title="VPN Error - Caused by Firmware Version 8.2.23.0" src="http://www.chrisshennan.com/wp-content/uploads/2010/04/VPN-Error-20100413-2020.jpg" alt="VPN Error - 20100413 - 2020" width="401" height="170" /></p>
<p>I have had my laptop checked out by the IT guy and everything connected fine when it was in at the office and even my iPhone could connect to the VPN when using 3G but this Error 619 kept appearing each time I tried to connect to the work VPN via my O2 Wireless Box II using either the laptop or iPhone.<br />
<span id="more-312"></span></p>
<p>I had a sneaky suspicion that O2 had been in and done one of their remote updates so I logged into the router administration pages, noted the firmware number (8.2.23.0) currently running on my O2 Wireless II box and had a quick look around in Google for VPN issues with this firmware version.  There were a number of people with a similar issue to mine but it seems that the VPN issues are only related to PPTP VPN connections, which is the type of VPN connection I was using.</p>
<p>I have managed to resolve this and get everything back up and reverting back to the older firmware version (7.4.20.4) and now I can connect to the work VPN again through my O2 Wireless II box.</p>
<p>The steps I took to sort this VPN connection issues are as follows:-</p>
<ul>
<li>Take a note of any static IP details (I did not actually do this step so I had about 30 minutes of paper rummaging as O2 Customer Services has closed by 2.30am)</li>
<li>Follow the steps outlined in <a href="http://www.o2help.co.uk/router-upgrade-firmware/" target="_blank">http://www.o2help.co.uk/router-upgrade-firmware/</a></li>
<li>At step 4 run RT-585v7_74K4EJ.exe to revert to the 7.4.20.4 firmware version.  Note this will result in a factory reset of your router and all configuration settings will be lost.</li>
<li>Run router setup and get connected to internet again.</li>
<li>Check VPN works</li>
<li>Configure and secure LAN / WLAN</li>
</ul>
<p>&nbsp;</p>
<p>In addition to this I thought it would be a wise idea to stop O2 from coming back in and updating the firmware automatically again which would give me the same problems so I opted to <a href="http://www.o2help.co.uk/router-close-port-7547/" target="_blank">disabled the port O2 use to do their automatic updates</a>.</p>
<h2>References</h2>
<p><a href="http://www.o2help.co.uk/" target="_blank">O2 Help</a> &#8211; Lots of useful help regarding O2 broadband</p>
<p><a href="http://www.o2help.co.uk/router-upgrade-firmware/" target="_blank">O2 Help &#8211; How to upgrade the firmware on the O2 Wireless Box II/III</a></p>
<p><a href="http://www.o2help.co.uk/router-close-port-7547/" target="_blank">O2 Help &#8211; How to close port 7547 on the O2 Wireless Box II/III</a></p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/L1IBmCy3G40" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/04/16/vpn-issues-with-o2-wireless-box-ii/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/04/16/vpn-issues-with-o2-wireless-box-ii/</feedburner:origLink></item>
		<item>
		<title>Sony VGN-FE21B Memory Stick fix for Windows XP</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/kU6hiOKQga0/</link>
		<comments>http://www.chrisshennan.com/2010/03/31/sony-vgn-fe21b-memory-stick-fix-for-windows-xp/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 22:54:24 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Computer Maintenance]]></category>
		<category><![CDATA[sony laptop]]></category>
		<category><![CDATA[sony memory stick fix]]></category>
		<category><![CDATA[sony vgn-fe21b]]></category>
		<category><![CDATA[vgn fe21b]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=305</guid>
		<description><![CDATA[My Sony VGN-FE21B laptop has been having problems with performance over the last few months, applications were taking a long time to load and the hard drive was getting cluttered with obsolete files, so at the weekend I decided to re-install Windows XP Pro onto my Sony VGN-FE21B laptop.
The original operating system was Windows XP [...]]]></description>
			<content:encoded><![CDATA[<p>My Sony VGN-FE21B laptop has been having problems with performance over the last few months, applications were taking a long time to load and the hard drive was getting cluttered with obsolete files, so at the weekend I decided to re-install Windows XP Pro onto my Sony VGN-FE21B laptop.</p>
<p>The original operating system was Windows XP Home but since the laptop has been bought primarily for work purposes, I had also bought a copy of Windows XP Pro but each time I install Windows XP Pro on my Sony VGN-FE21B laptop it always has a missing icon for the memory stick in My Computer.  I imagine this is because the hardware is specific to Sony and not a generic Windows XP driver.<br />
<span id="more-305"></span></p>
<p>Fortunately this is really easy to solve (although I have to look it up online every time I re-install Windows XP Pro) as you can download the <a href="http://www.sony-asia.com/support/download/216997/sectionfirst?subpage=detail" target="_blank">memory stick hotfix from Sony</a> (When the page loads scroll down to &#8220;14. To install Memory Stick Hotfix&#8221;).  Run this file and voila!</p>
<p>This article is mainly to help me (although I like to think it will help others) when I come to re-install Window XP Pro onto my Sony VGN-FE21B laptop in the future and will hopefully help me <a href="/2009/08/24/why-you-should-answer-your-own-posts/">answer my own question</a>.</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/kU6hiOKQga0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/03/31/sony-vgn-fe21b-memory-stick-fix-for-windows-xp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/03/31/sony-vgn-fe21b-memory-stick-fix-for-windows-xp/</feedburner:origLink></item>
		<item>
		<title>mysqldump on Windows gives “Access is Denied”</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/WEK04ZUA7KM/</link>
		<comments>http://www.chrisshennan.com/2010/03/24/mysqldump-on-windows-gives-access-is-denied/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 22:17:26 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[database migration]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=294</guid>
		<description><![CDATA[I recently had to back up a MySQL database on a windows server so I could restore it to my local MySQL server for analysing the structure of an existing site which we are going to be rebuilding.  I have done this hundreds of times on linux server but the usual command did not [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to back up a MySQL database on a windows server so I could restore it to my local MySQL server for analysing the structure of an existing site which we are going to be rebuilding.  I have done this hundreds of times on linux server but the usual command did not appear to work on this windows server.  I was using:-</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqldump <span style="color: #660033;">-uroot</span> <span style="color: #660033;">-pPASSWORD</span> database <span style="color: #000000; font-weight: bold;">&gt;</span> c:\database.sql</pre></div></div>

<p>but when I ran this I was presented with an &#8220;Access Denied&#8221; message.<br />
<span id="more-294"></span><br />
My first thought was that the MySQL database username and password that I was using was incorrect, however this message refers to not having permissions to create the file c:\database.sql.</p>
<p>Once I realised this was a file permissions problem and not a database permissions problem I changed the path to one I knew I had write access on and the database exported without any problems.</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/WEK04ZUA7KM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/03/24/mysqldump-on-windows-gives-access-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/03/24/mysqldump-on-windows-gives-access-is-denied/</feedburner:origLink></item>
		<item>
		<title>Wordpress wp_redirect() shows a blank page</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/U6TphBedK3Q/</link>
		<comments>http://www.chrisshennan.com/2010/02/27/wordpress-wp_redirect-shows-a-blank-page/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 21:04:31 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[output_buffering]]></category>
		<category><![CDATA[php_flag]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wp_redirect]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=278</guid>
		<description><![CDATA[Over the last few weeks I have been working on my first wordpress plugin and I am quickly getting to grips with how it all pieces together but I ran into a problem with a rather basic piece of functionality that pretty much rendered the plugin useless until I figured out the issue.
The section I [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few weeks I have been working on my first wordpress plugin and I am quickly getting to grips with how it all pieces together but I ran into a problem with a rather basic piece of functionality that pretty much rendered the plugin useless until I figured out the issue.</p>
<p>The section I was working on was a form submission (within the wordpress administation) which saved the form values into the database and then redirected the user upon success to another page (using wp_redirect) but this resulted in a blank content pane.</p>
<p>This seems very strange to me as it showed some of the page contents i.e. the header and left navigation but the content pane was completely blank.<br />
<span id="more-278"></span></p>
<p>I searched around for a few hours trying various suggestions to similar problems, downloading other wordpress plugins and examining how they used the wp_redirect function to see if the authors of these other wordpress plugins had done anything different, only to find that there was no difference.</p>
<p>I eventually managed to figure out the issue after I read a post regarding a problem another user was having where they were getting a completely blank screen and another member suggested the problem could be due to whitespace which was sent to the browser before the redirect was called resulting in a &#8220;headers already sent&#8221; problem.</p>
<p>This got me thinking that I did not have output buffering enabled which was strange as I usually have output buffering enabled to resolve this issue, however, in this case I did not have output buffering turned on and this turned out to be exactly the problem.  I added the following line to my .htaccess file and the redirection now works perfectly.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">php_flag output_buffering on</pre></div></div>

<p>I was glad to get this one resolved as I had to spend far too much time on something that I have resolved time and time again.  Certainly one I&#8217;ll be aware of should there be a next time!</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/U6TphBedK3Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/02/27/wordpress-wp_redirect-shows-a-blank-page/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/02/27/wordpress-wp_redirect-shows-a-blank-page/</feedburner:origLink></item>
		<item>
		<title>Happy New Year 2010</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/6_IkxIRpWlM/</link>
		<comments>http://www.chrisshennan.com/2010/01/01/happy-new-year-2010/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 15:33:44 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[new year]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=269</guid>
		<description><![CDATA[I just wanted to wish everyone a Happy New Year and all the best for 2010.  I hope that it proves to be a productive and successful year for you all.
I hope to get myself more motivated in 2010 and make 2010 a good year and work for me.  In this aim I hope to [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to wish everyone a Happy New Year and all the best for 2010.  I hope that it proves to be a productive and successful year for you all.</p>
<p>I hope to get myself more motivated in 2010 and make 2010 a good year and work for me.  In this aim I hope to post a good few new blog entries on here over the next year and I&#8217;ve got a few in the pipeline already including a wordpress plugin I&#8217;m developing and moving <a href="http://www.managemyalerts.com" target="_blank">Manage My Alerts</a> over to Symfony 1.3/1.4 and I hope the entries I post are of use to you.</p>
<p>Once again I would like to wish you a Happy New Year and all the best for 2010.</p>
<h2>References</h2>
<p><a href="http://www.managemyalerts.com" target="_blank">Manage My Alerts</a> &#8211; An online reminder service</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/6_IkxIRpWlM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2010/01/01/happy-new-year-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2010/01/01/happy-new-year-2010/</feedburner:origLink></item>
		<item>
		<title>User Profile Service Failed the Logon</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/8rccgncXL_0/</link>
		<comments>http://www.chrisshennan.com/2009/12/29/user-profile-service-failed-the-logon/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:52:40 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Computer Maintenance]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=248</guid>
		<description><![CDATA[This Christmas was the quietest Christmas I have had in years in terms of the obligatory &#8220;if you have got the time&#8221; IT jobs as I only had 1 request for fixing a computer this year (instead of the 4 computers and a DVD player I had a few years back&#8230; all requested within 2 [...]]]></description>
			<content:encoded><![CDATA[<p>This Christmas was the quietest Christmas I have had in years in terms of the obligatory &#8220;if you have got the time&#8221; IT jobs as I only had 1 request for fixing a computer this year (instead of the 4 computers and a DVD player I had a few years back&#8230; all requested within 2 hours of arriving home).</p>
<p>Luckily this one turned out to be relatively simple and only took 5 minutes to fix although when I first heard about it I thought it was going to take a few hours.  My aunt and uncle reported a problem with logging into their laptop (running Windows Vista Home Premium) on my uncle&#8217;s profile where it would give an error message &#8220;The User Profile Service failed the logon&#8221;, after which it would simply return them to the profile selection screen.<br />
<span id="more-248"></span></p>
<p>I did a quick search using Safari on my <a href="/go/iphone" target="_blank">iPhone</a> and the first result which came up for &#8220;The User Profile Service failed the logon&#8221; sorted out my problem.</p>
<p>Seemingly the cause of the problem was that the profile had managed to enter a backup state and a registry amendment was needed to resolve the issue.  The registry amendment to fix my uncle&#8217;s issues with &#8220;The User Profile Service failed the logon&#8221; was as follows:-</p>
<ul>
<li style="text-align: left;">Log in to Windows using an alternative profile</li>
<li style="text-align: left;">Open regedit and go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\</li>
<li style="text-align: left;">Within the ProfileList key you should see 2 keys with almost identical names except one will have a suffix of .bak (i.e. S-1-5-21-1209794152-539799901-2903691368-1010 and S-1-5-21-1209794152-539799901-2903691368-1010.bak)</li>
<li style="text-align: left;">Delete the key <strong>WITHOUT</strong> the &#8220;.bak&#8221; suffix</li>
<li style="text-align: left;">Rename the other key and remove the &#8220;.bak&#8221; suffix</li>
<li style="text-align: left;">Edit the &#8220;State&#8221; DWORD within the renamed key and set to &#8220;0&#8243; (zero)</li>
</ul>
<p>After that we were able to restart the computer and log back in under my uncle&#8217;s profile without any more problems and no more &#8220;The User Profile Service failed the logon&#8221; messages.</p>
<h2>Sources</h2>
<p><a href="http://forums.techarena.in/vista-help/692126.htm" target="_blank">TechArena Community &#8211; The User Profile Service failed the logon</a></p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/8rccgncXL_0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2009/12/29/user-profile-service-failed-the-logon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2009/12/29/user-profile-service-failed-the-logon/</feedburner:origLink></item>
		<item>
		<title>New Website:  The Weekly Whinge</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/R9J6Q_mgmEQ/</link>
		<comments>http://www.chrisshennan.com/2009/12/08/new-website-the-weekly-whinge/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:16:20 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[complain]]></category>
		<category><![CDATA[complaint]]></category>
		<category><![CDATA[new site]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[whinge]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=243</guid>
		<description><![CDATA[Over the weekend I launched our newest site, The Weekly Whinge, which was set up as a place for me to vent my frustration and generally just rant and complain about life.  As it has only just been launched my whinge list is relatively small so far but I&#8217;m finding ideas all over the [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I launched our newest site, <a href="http://www.theweeklywhinge.com" target="_blank">The Weekly Whinge</a>, which was set up as a place for me to vent my frustration and generally just rant and complain about life.  As it has only just been launched my whinge list is relatively small so far but I&#8217;m finding ideas all over the place, on the way to work, out doing the Christmas shopping (it is probably best that I do not start on that one or I will never end), even with just updating this blog so I am sure there will be many more additions to <a href="http://www.theweeklywhinge.com" target="_blank">The Weekly Whinge</a> before long.<br />
<span id="more-243"></span></p>
<p>Currently the whinge list consists of:-</p>
<ul>
<li><a href="http://www.theweeklywhinge.com/2009/12/change-of-domain-because-of-cyber-squatter/" target="_blank">Change of Domain because of a Cyber Squatter</a> &#8211; The domain I originally wanted was already taken so I was forced to chosen an alternative.</li>
<li><a href="http://www.theweeklywhinge.com/2009/12/wordpress-snow-effects/" target="_blank">Wordpress Snow Effects</a> &#8211; Silly visual effects on Wordpress blogs making me question my vision.</li>
</ul>
<p>I have decided to allow visitors to <a href="http://www.theweeklywhinge.com/" target="_blank">The Weekly Whinge</a> to submit their own whinges via the <a href="http://www.theweeklywhinge.com/have-your-whinge/" target="_blank">Have Your Whinge</a> page and I will endeavour to put these whinges up on <a href="http://www.theweeklywhinge.com/" target="_blank">The Weekly Whinge</a> along with my own.</p>
<p>So do not bottle it all up inside.  Share your whinge and see it posted on <a href="http://www.theweeklywhinge.com/" target="_blank">The Weekly Whinge</a>!</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/R9J6Q_mgmEQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2009/12/08/new-website-the-weekly-whinge/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2009/12/08/new-website-the-weekly-whinge/</feedburner:origLink></item>
		<item>
		<title>Raw SQL from Doctrine Query Object – Revised</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/x1-ftO18Hwo/</link>
		<comments>http://www.chrisshennan.com/2009/12/07/raw-sql-from-doctrine-query-object-revised/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 19:47:21 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[doctine]]></category>
		<category><![CDATA[doctrine query object]]></category>
		<category><![CDATA[raw sql]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=232</guid>
		<description><![CDATA[A few months ago I posted an article taking about how to get the raw SQL from a Doctrine Query Object but with the release of Symfony 1.3 and Symfony 1.4 it would appear that the code no longer works.  As a result I&#8217;ve updated the code to work with Symfony 1.2 &#8211; 1.4 and [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I posted an article taking about how to get the <a href="/2009/09/22/raw-sql-from-a-doctrine-query-object/" target="_self">raw SQL from a Doctrine Query Object</a> but with the release of <a href="http://www.symfony-project.org/installation/1_3" target="_blank">Symfony 1.3</a> and <a href="http://www.symfony-project.org/installation/1_4" target="_blank">Symfony 1.4</a> it would appear that the code no longer works.  As a result I&#8217;ve updated the code to work with Symfony 1.2 &#8211; 1.4 and you can find the updated source below:-<br />
<span id="more-232"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_raw_sql<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span> instanceof Doctrine_Query<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        throw <span style="color: #000000; font-weight: bold;">new</span> sfException<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Not an instanse of a Doctrine Query'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_callable</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'buildSqlQuery'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$queryString</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buildSqlQuery</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$query_params</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getParams</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$params</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query_params</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'where'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$queryString</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSql</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$params</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getParams</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$queryStringParts</span> <span style="color: #339933;">=</span> <span style="color: #990000;">split</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\?'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$queryString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$iQC</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$queryString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$params</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$param</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_numeric</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$param</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$queryString</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$queryStringParts</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$iQC</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$param</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_bool</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$param</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$queryString</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$queryStringParts</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$iQC</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$param</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$queryString</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$queryStringParts</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$iQC</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'\''</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$param</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'\''</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000088;">$iQC</span><span style="color: #339933;">++;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$iQC</span><span style="color: #339933;">;</span><span style="color: #000088;">$iQC</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$queryStringParts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$iQC</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000088;">$queryString</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$queryStringParts</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$iQC</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$queryString</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>I hope that it proves useful.</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/x1-ftO18Hwo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2009/12/07/raw-sql-from-doctrine-query-object-revised/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2009/12/07/raw-sql-from-doctrine-query-object-revised/</feedburner:origLink></item>
		<item>
		<title>csNews Pro</title>
		<link>http://feedproxy.google.com/~r/ChristopherShennansBlog/~3/sNp-1uhkJsA/</link>
		<comments>http://www.chrisshennan.com/2009/11/22/csnews-pro/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 19:01:32 +0000</pubDate>
		<dc:creator>Christopher Shennan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cNews pro]]></category>
		<category><![CDATA[design2host]]></category>
		<category><![CDATA[v-desk]]></category>
		<category><![CDATA[v-desk newsletter system]]></category>
		<category><![CDATA[v-desk.com]]></category>
		<category><![CDATA[vdesk]]></category>

		<guid isPermaLink="false">http://www.chrisshennan.com/?p=225</guid>
		<description><![CDATA[It&#8217;s taken me a while but I&#8217;ve finally managed to create the &#8220;My Projects&#8221; section started although in all likelyhood I&#8217;ll not have much time to devote to my projects.
I&#8217;ve started off by resurrection an old project that I worked on while I was self employed as Design2Host Ltd.  csNews Pro (formerly V-Desk Newsletter System [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s taken me a while but I&#8217;ve finally managed to create the &#8220;<a href="/my-projects/">My Projects</a>&#8221; section started although in all likelyhood I&#8217;ll not have much time to devote to my projects.</p>
<p>I&#8217;ve started off by resurrection an old project that I worked on while I was self employed as Design2Host Ltd.  <a href="/my-projects/csnews-pro-formerly-v-desk-newsletter-system-pro/">csNews Pro (formerly V-Desk Newsletter System Pro)</a> has had a few cosmetic details changed (changed the name, removed the licence key limitions) but it&#8217;s exactly the same project and it is compatible with the paid version that was original available so you can easily convert from the previous paid version across to the free version when any updates become available.</p>
<p>Feel free to download and play with <a href="/my-projects/csnews-pro-formerly-v-desk-newsletter-system-pro/">csNews Pro</a> and feel free to give my any feedback on it.</p>
<img src="http://feeds.feedburner.com/~r/ChristopherShennansBlog/~4/sNp-1uhkJsA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrisshennan.com/2009/11/22/csnews-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chrisshennan.com/2009/11/22/csnews-pro/</feedburner:origLink></item>
	</channel>
</rss>
