<?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>FettesPS &#187; Programming</title>
	<atom:link href="http://www.fettesps.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fettesps.com</link>
	<description>Fettes Programming Solutions</description>
	<lastBuildDate>Sun, 22 Jan 2012 18:21:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Uninstalling Visual Studio&#8217;s Productivity Power Tools</title>
		<link>http://www.fettesps.com/uninstalling-visual-studios-productivity-power-tools/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uninstalling-visual-studios-productivity-power-tools</link>
		<comments>http://www.fettesps.com/uninstalling-visual-studios-productivity-power-tools/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 04:00:52 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[productivity tools]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[vs.net]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1750</guid>
		<description><![CDATA[Took me far too long to find this option. Powertools had some annoying quirks that I just couldn&#8217;t get passed and I wasn&#8217;t using any of it&#8217;s good features. Plus either it or the SP1 upgrade has left Visual Studio 2010 in a less than stable state, I find it crashing several times a day. [...]]]></description>
			<content:encoded><![CDATA[<p>Took me far too long to find this option. Powertools had some annoying quirks that I just couldn&#8217;t get passed and I wasn&#8217;t using any of it&#8217;s good features.  Plus either it or the SP1 upgrade has left Visual Studio 2010 in a less than stable state, I find it crashing several times a day.  So today I have removed Productivity Power Tools using the following method:</p>
<p><strong>Tools -> Extension Manager -> Productivity Power Tools -> Uninstall</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/uninstalling-visual-studios-productivity-power-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Reset a Drupal 7 Password</title>
		<link>http://www.fettesps.com/how-to-reset-a-drupal-7-password/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-reset-a-drupal-7-password</link>
		<comments>http://www.fettesps.com/how-to-reset-a-drupal-7-password/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 01:41:17 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[reset password]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1586</guid>
		<description><![CDATA[After abandoning one of my Drupal 7 sites for some time I decided to buy a domain for it and start working on it again. I immediately ran into a case of &#8220;Oops I forgot the password&#8221; and could not log in, eventually getting my account locked out. This is what happens every time I [...]]]></description>
			<content:encoded><![CDATA[<p>After abandoning one of my Drupal 7 sites for some time I decided to buy a domain for it and start working on it again. I immediately ran into a case of &#8220;Oops I forgot the password&#8221; and could not log in, eventually getting my account locked out.  This is what happens every time I try and come up with a more clever password.  Unlike in previous versions of Drupal it&#8217;s not a matter of just slapping an MD5 around a password when updating the database.  With Drupal 7 you have to make use of a salted sha512 hash, the easiest way to do that is to create a file in your installation server with the password you want to convert and when you run it you will get your encrypted password echoed out to you.  Simple enough! So here&#8217;s the code:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
// $Id: index.php,v 1.99 2009/10/15 14:07:25 dries Exp $

/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
 *
 * All Drupal code is released under the GNU General Public License.
 * See COPYRIGHT.txt and LICENSE.txt.
 */

/**
 * Root directory of Drupal installation.
 */
define('DRUPAL_ROOT', getcwd());

require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

require_once 'includes/password.inc';
echo user_hash_password('your_new_password');
die();

menu_execute_active_handler();

?&gt;</pre>
<p>Simple browse to this file in your web browser and it will output your new salted password.  Take that password and then go into PHPMyAdmin (or your favourite MySQL client) and then browse to your users table, there you can paste it in as the new password. Make sure not to use the password() or md5() functions when editing the field as it needs to be stored as plain text.</p>
<p>Thanks to <a href="http://drupal.org/node/992400">Conclusion on Drupal.org</a> for presenting this conclusion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/how-to-reset-a-drupal-7-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ajax &#8211; Post Multiple Select Values</title>
		<link>http://www.fettesps.com/ajax-post-multiple-select-values/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ajax-post-multiple-select-values</link>
		<comments>http://www.fettesps.com/ajax-post-multiple-select-values/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 11:12:41 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1557</guid>
		<description><![CDATA[So this form is pretty basic, it has a select box (list box) filled with possible values. You can select all or some of the values and then submit it to the server via Ajax. The problem was when I grabbed the value from the select box I only got the last value selected, not [...]]]></description>
			<content:encoded><![CDATA[<p>So this form is pretty basic, it has a select box (list box) filled with possible values.  You can select all or some of the values and then submit it to the server via Ajax.  The problem was when I grabbed the value from the select box I only got the last value selected, not each. Regardless of if I was using POST or GET I still had to build the parameter list since that&#8217;s how XMLHttpRequest works.  So I looped through the list and tried using the same parameter name for each, then on the PHP end I had the same result &#8212; each parameter overwrote the previous one and I saw only the last result. It wasn&#8217;t until I stumbled upon <a href="http://forums.devshed.com/javascript-development-115/ajax-posting-a-form-with-multiple-values-an-array-for-the-535164.html">this post</a> that someone gave a decent suggestion, which was to put a [] at the end of each parameter name when building the query string and PHP would automatically interpret it as an array. Since his code was somewhat over complicated I thought I&#8217;d share my version of it:</p>
<p><strong>test-utility.php</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Test Utility&lt;/title&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;test-utility.js&quot;&gt;	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;h1 align='center'&gt;Test Utility&lt;/h1&gt;

&lt;center&gt;

    &lt;p style=&quot;width:450px; text-align:justify;&lt;?php if($error) echo &quot;color:red;&quot; ?&gt;&quot;&gt;
        &lt;?php if($error) { ?&gt;
            &lt;strong&gt;Error:&lt;/strong&gt; &lt;?php echo $error; ?&gt;
        &lt;?php } ?&gt;
    &lt;/p&gt;

    &lt;form name='frmTestUtility' id='frmTestUtility' method='post' action=''&gt;
    &lt;table cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;
    &lt;tr&gt;
        &lt;td&gt;
            Listbox(s):&lt;br&gt;&lt;br&gt;
            &lt;div style=&quot;font-size:smaller&quot;&gt;(Hold CTRL to&lt;br&gt;select multiple)&lt;/div&gt;
        &lt;/td&gt;
        &lt;td align=&quot;center&quot;&gt;
            &lt;select name='listbox[]' id='listbox' multiple=&quot;multiple&quot;&gt;
                &lt;option value='123'&gt;123&lt;/option&gt;
                &lt;option value='abc'&gt;abc&lt;/option&gt;
                &lt;option value='alpha'&gt;alpha&lt;/option&gt;
                &lt;option value='beta'&gt;beta&lt;/option&gt;
                &lt;option value='gamma'&gt;gamma&lt;/option&gt;
            &lt;/select&gt;
            &lt;br&gt;
            &lt;input type=&quot;button&quot; name=&quot;all&quot; value=&quot;All&quot; onClick='javascript:select_all();'&gt;
            &lt;input type=&quot;button&quot; name=&quot;none&quot; value=&quot;None&quot; onClick='javascript:select_none();'&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td colspan=&quot;2&quot;&gt;
            &lt;input type=&quot;button&quot; name=&quot;submit&quot; onclick=&quot;javascript:run_queries();&quot; value=&quot;Run SQL&quot; /&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;/form&gt;

    &lt;div id=&quot;ajax_results&quot;&gt;
        &amp;nbsp;
    &lt;/div&gt;
    &lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><strong>test-utility.js</strong></p>
<pre class="brush: jscript; title: ; notranslate">
function select_all() {
    var d = document.getElementById(&quot;listbox&quot;);
        for(var i=0;i&lt;d.length;i++) {
            d.options[i].selected = &quot;1&quot;;
        }
}

function select_none() {
    var d = document.getElementById(&quot;listbox&quot;);

    for(var i=0;i&lt;d.length;i++) {
        d.options[i].selected = &quot;&quot;;
    }
}

// Build the query string and submit it to the next page for processing
function run_queries() {
    var xmlhttp, url;&lt;/pre&gt;

    // For modern browsers
    if(window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();

    // for IE 5/6
    } else {
        xmlhttp = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
    }

    //  Rebuild the array of selected option boxes
    lb = document.getElementById(&quot;listbox&quot;);
    for(var i=0; i &lt; lb.length; i++) {
        if(lb[i].selected) {
            // Note the [] after the name
            url += &quot;&amp;lb[]=&quot; + lb[i].value;
        }
    }

    xmlhttp.open(&quot;GET&quot;,&quot;test-utility-ajax.php&quot; + url, false);
    xmlhttp.send();

    if (xmlhttp.status == 200) {
        document.getElementById(&quot;ajax_results&quot;).innerHTML = xmlhttp.responseText;
    } else {
        return false;
    }

    return false;
}
</pre>
<p><strong>test-utility-ajax.php</strong>br></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
  // As you can see PHP displays it as an array
  if($_POST} print_r($_POST);
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/ajax-post-multiple-select-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download MSINET.OCX</title>
		<link>http://www.fettesps.com/download-msinet-ocx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=download-msinet-ocx</link>
		<comments>http://www.fettesps.com/download-msinet-ocx/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 22:07:33 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[DLLs]]></category>
		<category><![CDATA[OCX]]></category>
		<category><![CDATA[vb6]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1539</guid>
		<description><![CDATA[Have an old Visual Basic 6 legacy application that is demanding MSINET.OCX in order to run?. Here is a copy of Microsoft&#8217;s redistributable run time file for VB6: Download MSINET.OCX After you have downloaded the file, you can either place it in your C:\Windows\System32 (or C:\Windows\SysWow64 on an x64 system) and register it there or [...]]]></description>
			<content:encoded><![CDATA[<p>Have an old Visual Basic 6 legacy application that is demanding MSINET.OCX in order to run?.  Here is a copy of Microsoft&#8217;s redistributable run time file for VB6:</p>
<p><a href="http://www.fettesps.com/files/MSINET.OCX" style="font-size:larger;color:white;font-weight:bold;">Download MSINET.OCX</a></p>
<p>After you have downloaded the file, you can either place it in your C:\Windows\System32 (or C:\Windows\SysWow64 on an x64 system) and register it there or you may want to put it directly into your application&#8217;s directory and create a .local file so that the application does not look beyond it&#8217;s own folder for the file.</p>
<p>To register the file, open up command prompt (Win+R then cmd) and enter:</p>
<pre class="brush: plain; title: ; notranslate">regsvr32 &quot;C:\Windows\System32\MSINET.OCX&quot;</pre>
<p>If you are going to use the .local file, just create an empty text file in that directory with the same name as your application but a .local extension appended.  So for example if you had a file called &#8220;MyApp.exe&#8221; you would create an empty text file called &#8220;MyApp.exe.local&#8221;  Make sure if you have hidden extensions that it is not secretely adding &#8220;.txt&#8221; to the end of the file name.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/download-msinet-ocx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download MSWINSCK.OCX</title>
		<link>http://www.fettesps.com/download-mswinsck-ocx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=download-mswinsck-ocx</link>
		<comments>http://www.fettesps.com/download-mswinsck-ocx/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 23:55:53 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[DLLs]]></category>
		<category><![CDATA[OCX]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1535</guid>
		<description><![CDATA[Anyone who still works with Visual Basic 6 for legacy applications will inevitably run into an issue where a customer&#8217;s computer needs MSWINSOCK.OCX in order to run their application. You could install the entire VB6 runtime files package or you may chose to redistribute this one file with your software. In any case, I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who still works with Visual Basic 6 for legacy applications will inevitably run into an issue where a customer&#8217;s computer needs MSWINSOCK.OCX in order to run their application.  You could install the entire VB6 runtime files package or you may  chose to redistribute this one file with your software.  In any case, I wanted to make sure this file was available for those who need it.</p>
<p><a href="http://www.fettesps.com/files/MSWINSCK.OCX" style="font-size:larger;color:white;font-weight:bold;">Download MSWINSCK.OCX</a></p>
<p>After you have downloaded the file, you can either place it in your C:\Windows\System32 (or C:\Windows\SysWow64 on an x64 system) and register it there or you may want to put it directly into your application&#8217;s directory and create a .local file so that the application does not look beyond it&#8217;s own folder for the file.</p>
<p>To register the file, open up command prompt (Win+R then cmd) and enter:</p>
<pre class="brush: plain; title: ; notranslate">regsvr32 &quot;C:\Windows\System32\MSWINSCK.OCX&quot;</pre>
<p>If you are going to use the .local file, just create an empty text file in that directory with the same name as your application but a .local extension appended.  So for example if you had a file called &#8220;MyApp.exe&#8221; you would create an empty text file called &#8220;MyApp.exe.local&#8221;  Make sure if you have hidden extensions that it is not secretely adding &#8220;.txt&#8221; to the end of the file name.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/download-mswinsck-ocx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Wp-dbmanager&#8217;s Database Visibility Error</title>
		<link>http://www.fettesps.com/fixing-wp-dbmanagers-database-visibility-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-wp-dbmanagers-database-visibility-error</link>
		<comments>http://www.fettesps.com/fixing-wp-dbmanagers-database-visibility-error/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 02:51:53 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1531</guid>
		<description><![CDATA[I&#8217;ve been on a bit of a new plugin craze as of lately, started searching for people&#8217;s favourites and came up with a few good ones I had not seen. Today I tried out wp-dbmanager, which I may have never noticed due to it&#8217;s non flashy name. Despite it&#8217;s non flashiness it definitely does what [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been on a bit of a new plugin craze as of lately, started searching for people&#8217;s favourites and came up with a few good ones I had not seen.  Today I tried out wp-dbmanager, which I may have never noticed due to it&#8217;s non flashy name.  Despite it&#8217;s non flashiness it definitely does what it promised and a whole lot more than what I had expected.  In addition to automating database backups and optimizations it also gives me direct access to my WordPress database and a query editor saving me from having to log into phpMyAdmin. But despite all this plugin&#8217;s strengths I was a bit peeved by the following error popping up everywhere in my admin panel:</p>
<pre class="brush: plain; title: ; notranslate">Your backup folder MIGHT be visible to the public

To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to /wp-content/backup-db</pre>
<p>Sounded simple to me, but I got snagged when I found there was no .htaccess file in that folder.  I also was stumbling over not noticing that backup-db was two directories down from the wp-dbmanager not one, but that was my own carelessness.  What needed to be noticed was that there was an .htaccess file it just was not named .htaccess as the error message indicated.  Rather the file was called htaccess.txt, which completely slipped past my scans of the directories looking for it.  It wasn&#8217;t until I was about to give up that and just deal with the error (as the folder was not visible from the web anyways) and then I noticed it.  So the correct line you&#8217;d need to run from the wp-dbmanager folder is:</p>
<pre class="brush: plain; title: ; notranslate">mv htaccess.txt ../../backup-db/.htaccess</pre>
<p>Once that&#8217;s done, refresh your admin panel and the error should be gone!  Now you&#8217;re free to use the power of this impressive plugin without being nagged to secure that folder!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/fixing-wp-dbmanagers-database-visibility-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing WordPress&#8217; &#8220;W3 Total Cache Error: some files appear to be missing or out of place&#8221; Error</title>
		<link>http://www.fettesps.com/fixing-wordpress-w3-total-cache-error-some-files-appear-to-be-missing-or-out-of-place-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-wordpress-w3-total-cache-error-some-files-appear-to-be-missing-or-out-of-place-error</link>
		<comments>http://www.fettesps.com/fixing-wordpress-w3-total-cache-error-some-files-appear-to-be-missing-or-out-of-place-error/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 02:25:43 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[w3 total cache]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1524</guid>
		<description><![CDATA[Today I used the automated plug-in installer to install W3 Total Cache which resulted in my page doing nothing but spitting out a nasty error. Since I did not want to spend time debugging their plug-in and had immediately lost faith in them for not properly handling their errors I went ahead and nuked the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I used the automated plug-in installer to install W3 Total Cache which resulted in my page doing nothing but spitting out a nasty error.  Since I did not want to spend time debugging their plug-in and had immediately lost faith in them for not properly handling their errors I went ahead and nuked the folder in the plugins directory.  That left me staring at this nasty error:</p>
<pre class="brush: plain; title: ; notranslate">W3 Total Cache Error: some files appear to be missing or out of place [...]</pre>
<p>Hmmm&#8230; &#8220;Not cool,&#8221; I thought to myself. At least it seemed to be confined to the admin panel and my site was now back up and running from the user&#8217;s perspective I still had to try and fix this error without taking down the site again.</p>
<p>The initial suggestion made by the error description was to delete <b>advanced-cache.php</b> from your <b>wp-content</b> folder.  I went ahead and renamed it to <b>advanced-cache.php.bak</b> and was then told by the next error that I should delete <b>db.php</b>. At this point I decided to do some more research and see what my best options were, and for hte time being I reinstated the advanced-cache.php file from it&#8217;s backup.</p>
<p>My search results on disabling a plug-in through the database all told me to look in the <b>wp_options</b> table and under the <b>active_plugins</b> field.  In there was a serialized array containing each of the active plugins.  I searched for &#8220;w3&#8243; and removed everything between the semi-colons for that plugin:</p>
<p><b>Remove:</b></p>
<pre class="brush: plain; title: ; notranslate">i:12;s:33:&quot;w3-total-cache/w3-total-cache.php&quot;;</pre>
<p>At the start of the <b>active_plugins</b> field is an <b>a:</b> with a number beside it, this is your total number of enabled plugins.  None of the sites I had dug up on disabling a plugin from this table mentioned this and the typically suggested wiping the entire line out to just a:0:{} which is not necessary. </p>
<p>After updating that field I was still presented with a message suggesting I delete the cache file.  So I did the same and backed up each file it told me to (instead of deleting, as it suggested).  In the end three files needed to be backed up.</p>
<p><b>Disable and Backup Some Files:</b></p>
<pre class="brush: plain; title: ; notranslate">mv advanced-cache.php mv advanced-cache.php.bak
mv db.php db.php.bak
mv object-cache.php object-cache.php.bak</pre>
<p>After refreshing my admin panel I once was able to log in to manage the site.  Crisis averted!  After a few days when I&#8217;m confident my site is stable I will delete the backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/fixing-wordpress-w3-total-cache-error-some-files-appear-to-be-missing-or-out-of-place-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding Line Breaks to an HTML Input Button</title>
		<link>http://www.fettesps.com/adding-line-breaks-to-an-html-input-button/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-line-breaks-to-an-html-input-button</link>
		<comments>http://www.fettesps.com/adding-line-breaks-to-an-html-input-button/#comments</comments>
		<pubDate>Tue, 31 May 2011 04:36:18 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1438</guid>
		<description><![CDATA[I ran into a small little quirk today when trying to add a line break to a simple Input Button. All of the methods that immediately came to mind failed. I tried adding a &#60;br /&#62; however it literally printed that tag out between my words. I also tried forcing a new line with \n [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a small little quirk today when trying to add a line break to a simple Input Button.  All of the methods that immediately came to mind failed.  I tried adding a &lt;br /&gt; however it literally printed that tag out between my words.  I also tried forcing a new line with \n which did the same thing, spit it out literally.  I tried tweaking the CSS and had nothing but unexpected results as well.  Eventually I tried adding several extra spaces between the words, hoping that it would force it to word wrap &#8212; but instead it printed out each space literally.  Then it occurred to me, if it&#8217;s not ignoring extra white space like HTML normally does, will it not ignore a line break?  Sure enough, it was that simple.  To break the text up in your HTML Input Buttons all you have to do is tap the enter key and make sure the line of code is broken into several lines.</p>
<p>Wrong:</p>
<pre class="brush: plain; title: ; notranslate">&lt;input type=&quot;button&quot; value=&quot;Separate&lt;br /&gt;Lines&quot; /&gt;</pre>
<p>Wrong:</p>
<pre class="brush: plain; title: ; notranslate">&lt;input type=&quot;button&quot; value=&quot;Separate\nLines&quot; /&gt;</pre>
<p>Right:</p>
<pre class="brush: plain; title: ; notranslate">&lt;input type=&quot;button&quot; value=&quot;Separate
Lines&quot; /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/adding-line-breaks-to-an-html-input-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Get Your Drupal Site Out of Maintenance Mode</title>
		<link>http://www.fettesps.com/how-to-get-your-drupal-site-out-of-maintenance-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-your-drupal-site-out-of-maintenance-mode</link>
		<comments>http://www.fettesps.com/how-to-get-your-drupal-site-out-of-maintenance-mode/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 12:53:29 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[maintenance]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1391</guid>
		<description><![CDATA[After getting hit with some serious forum spam I put my one Drupal site into maintenance and forgot about it for a couple of weeks. When I came back to update it to the newest Drupal version I found that I had been logged out and no longer got a menu with it in maintenance. [...]]]></description>
			<content:encoded><![CDATA[<p>After getting hit with some serious forum spam I put my one Drupal site into maintenance and forgot about it for a couple of weeks.  When I came back to update it to the newest Drupal version I found that I had been logged out and no longer got a menu with it in maintenance. I knew that in WordPress I could add /wp-admin/ to the URL to get to a login screen but I didn&#8217;t know the equivalent for Drupal.</p>
<p>To log into your &#8220;under maintenance&#8221; Drupal site simply append /?q=user to your address</p>
<pre class="brush: plain; title: ; notranslate">http://www.yoursite.com/?q=user</pre>
<p>From there you can log in and take your site out of maintenance mode, or apply whatever tweaks you need to perform.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/how-to-get-your-drupal-site-out-of-maintenance-mode/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Converting an Array to JSON</title>
		<link>http://www.fettesps.com/php-converting-an-array-to-json/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-converting-an-array-to-json</link>
		<comments>http://www.fettesps.com/php-converting-an-array-to-json/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 13:09:01 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=875</guid>
		<description><![CDATA[Every now and then I stumble upon a tidbit of information that just makes me want to kick myself. Today was one of those days. Just by chance I ended up at an entry on PHP.net while Googling another issue. Once I realized what this function was capable of I was torn between thinking &#8220;Wow, [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then I stumble upon a tidbit of information that just makes me want to kick myself.  Today was one of those days.  Just by chance I ended up at <a href="http://php.net/manual/en/function.json-encode.php">an entry on PHP.net</a> while Googling another issue.  Once I realized what this function was capable of I was torn between thinking &#8220;Wow, this is awesome!&#8221; and &#8220;Wow, I&#8217;m a dumbass!&#8221;</p>
<pre class="brush: php; title: ; notranslate">
$array = array (
    'alpha'=&gt;4,
    'beta'=&gt;9,
    'gamma'=&gt;3
);
echo json_encode($array)
</pre>
<p>You should then see something like the following:</p>
<pre class="brush: plain; title: ; notranslate">{&quot;alpha&quot;:4,&quot;beta&quot;:9,&quot;gamma&quot;:3}</pre>
<p>If you were manually processing the array and building a JSON object like I was, assume the face palm position.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/php-converting-an-array-to-json/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

