<?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>Jamalah Bryan</title>
	<atom:link href="http://www.jamalahbryan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamalahbryan.com</link>
	<description>your personal IT specialist</description>
	<lastBuildDate>Thu, 19 Aug 2010 15:22:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Link to ‘child pages’ in WordPress with ‘the_post_thumbnail’</title>
		<link>http://www.jamalahbryan.com/programming/link-to-%e2%80%98child-pages%e2%80%99-in-wordpress-with-%e2%80%98the_post_thumbnail%e2%80%99/</link>
		<comments>http://www.jamalahbryan.com/programming/link-to-%e2%80%98child-pages%e2%80%99-in-wordpress-with-%e2%80%98the_post_thumbnail%e2%80%99/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 17:04:42 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=283</guid>
		<description><![CDATA[WordPress 2.9 has been released and comes packed with some awesome new features. One of the new feature that I am loving as I have been longing for it, is the post thumbnail. This is a new feature in WordPress that allows you to upload an image to a post that you are creating and [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.9 has been released and comes packed with some awesome new features. One of the new feature that I am loving as I have been longing for it, is the post thumbnail. This is a new feature in WordPress that allows you to upload an image to a post that you are creating and attaches to the post as its thumbnail. No longer do you have to use custom fields if all you want is a image for you posts.</p>
<p>It can be used for both posts and pages so I may use both post or page interchangeable throughout this post. I’ve recently used the new ‘Post Thumbnail’ feature in 2.9 to link child pages from a ‘Parent’ page using the Post Thumbnail as an image link.</p>
<div class="wp-caption alignnone" style="width: 315px"><img class="size-full" title="post_thumbnail" src="/wp-content/uploads/2010/01/post_thumbnail.jpg" alt="" width="305" height="86" /><p class="wp-caption-text">Wordpress Post Thumbnail</p></div>
<p>The code below is an example of how to use the ‘get_the_post_thumbnail()’ to list the current page children with its content and a title.</p>
<pre class="brush:php">
&lt;?php
// get pages
$pages = get_pages("child_of=".$post-&gt;ID.'&amp;sort_column=post_title&amp;sort_order=desc&amp;parent='.$post-&gt;ID);
// loop through pages pages to get page properties
foreach($pages as $page) {
?&gt;
&lt;div class="wp-caption alignleft"&gt;
// create an hyperlink from the get_page_link method and embed the image retrieved from get_the_post_thumbnail in it
&lt;a href="&lt;?php echo get_page_link($page-&gt;ID) ?&gt;&lt;?php echo get_the_post_thumbnail($page-&gt;ID); ?&gt;</a>
// get the title and use it as the caption
&lt;?= $page-&gt;post_title ?&gt;
&lt;/div&gt;
// get the content
&lt;?php echo $page-&gt;post_content; ?&gt;
&lt;?php edit_post_link('Edit.', '', '', $page-&gt;ID); ?&gt;
&lt;?php } ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/programming/link-to-%e2%80%98child-pages%e2%80%99-in-wordpress-with-%e2%80%98the_post_thumbnail%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy Birthday My Love</title>
		<link>http://www.jamalahbryan.com/personal-note/njina/</link>
		<comments>http://www.jamalahbryan.com/personal-note/njina/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 00:00:15 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Personal Note]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=270</guid>
		<description><![CDATA[From My Heart to Yours Hi Baby, today the 19th of December not only marks the day that you get one year older, it also marks the day you become one year more beautiful. I created this section on my website just to remind you that although I am busy all the time there is [...]]]></description>
			<content:encoded><![CDATA[<h3 style="text-align: left;"><em><strong>From My Heart to Yours</strong></em></h3>
<p style="text-align: left;">Hi Baby, today the 19th of December not only marks the day that you get one year older, it also marks the day you become one year more beautiful. I created this section on my website just to remind you that although I am busy all the time there is space in my busy technological lifestyle for you. Today also marked another wonderful day that we will spend together in a lifetime where I have been blessed with you.<img title="Happy Birthday Njina Grant" src="/wp-content/uploads/2009/02/happy-birthday.jpg" alt="Happy Birthday Njina Grant" width="410" height="256" /></p>
<p style="text-align: left;">
<h3 style="text-align: left;"><em><strong>A poem from me to you</strong></em></h3>
<p style="text-align: center;"><strong>Money Poor, Love Rich</strong></p>
<p style="text-align: center;">Diamonds I can’t afford to buy<br />
For your birthday which is coming by<br />
As you know I’m just an ordinary guy<br />
With money being in short supply<br />
But I have affections that pile high<br />
And love that reaches all the way to the sky<br />
With you my love and affections will lie<br />
No matter how the years fly.</p>
<p>I really love you (but I guess you already realised that after nearly 9 years now <img src='http://www.jamalahbryan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) and wish you all the best and hope you enjoy the rest of the day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/personal-note/njina/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Removing ^M From File in Emacs</title>
		<link>http://www.jamalahbryan.com/programming/removing-m-from-emacs/</link>
		<comments>http://www.jamalahbryan.com/programming/removing-m-from-emacs/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 18:53:53 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[character]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[replace]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=249</guid>
		<description><![CDATA[If you edit a text file on Windows and you then use it in emacs under a Linux environment you will see the ^M character at the end of each lin. Do the following to remove it in emacs. ; goto top of buffer M-x replace-string C-q C-m RET The control-q will allow you to [...]]]></description>
			<content:encoded><![CDATA[<p>If you edit a text file on Windows and you then use it in emacs under a Linux environment you will see the ^M character at the end of each lin.</p>
<p>Do the following to remove it in emacs.</p>
<pre class="brush: python;">
; goto top of buffer
M-x replace-string C-q C-m RET
</pre>
<p>The control-q will allow you to type control characters into the<br />
input buffer.</p>
<p>Additionally, you could use the dos2unix command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/programming/removing-m-from-emacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>100 Open Computer Courses</title>
		<link>http://www.jamalahbryan.com/blogs/100-open-computer-courses/</link>
		<comments>http://www.jamalahbryan.com/blogs/100-open-computer-courses/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 10:32:13 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[courses]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[open]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=231</guid>
		<description><![CDATA[While doing my usual random searching through Google I stumbled across a wonderful resource. Something I think every individual not only computer savvy persons or geeks would find useful. It&#8217;s a list of 100 open computer courses. Yes, open as in FREE! The are split into the following categories: Computer Science and Engineering Computer Security [...]]]></description>
			<content:encoded><![CDATA[<p>While doing my usual random searching through Google I stumbled across a wonderful resource. Something I think every individual not only computer savvy persons or geeks would find useful. It&#8217;s a list of 100 open computer courses. Yes, open as in FREE!</p>
<p>The are split into the following categories:</p>
<ol>
<li>Computer Science and Engineering</li>
<li>Computer Security</li>
<li>Programming</li>
<li>The Web</li>
<li>Software</li>
<li>Information Technology</li>
<li>Communication Technology</li>
<li>Technology in Education</li>
<li>Tech Math</li>
<li>Technology and Society</li>
</ol>
<p>To see the full list head over to Fred Palmer&#8217;s website over at <a href="http://fredpalma.com/100-computer-open-courses/">http://fredpalma.com/100-computer-open-courses/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/blogs/100-open-computer-courses/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Converting keystores between JKS and P12</title>
		<link>http://www.jamalahbryan.com/java/converting-keystores-between-jks-and-p12/</link>
		<comments>http://www.jamalahbryan.com/java/converting-keystores-between-jks-and-p12/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:59:24 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[converting]]></category>
		<category><![CDATA[jks]]></category>
		<category><![CDATA[p12]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=238</guid>
		<description><![CDATA[Found these keytool commands that saved me some valuable time working with an already existing .p12 certificate for signing an applet. It withs in JDK6 and onwards (not in JDK5 and earlier). JKS → P12 keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12 P12 → JKS keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -deststoretype [...]]]></description>
			<content:encoded><![CDATA[<p>Found these keytool commands that saved me some valuable time working with an already existing .p12 certificate for signing an applet.</p>
<p>It withs in JDK6 and onwards (not in JDK5 and earlier).</p>
<h3>JKS → P12</h3>
<pre class="brush: python;">keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS  -deststoretype PKCS12 -destkeystore keystore.p12</pre>
<h3>P12 → JKS</h3>
<pre class="brush: python;">keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12  -deststoretype JKS -destkeystore keystore.jks</pre>
<p>Original post by tomas at <a href="http://blog.ejbca.org/2008/02/converting-keystores-between-jks-and.html">http://blog.ejbca.org/2008/02/converting-keystores-between-jks-and.html</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/java/converting-keystores-between-jks-and-p12/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful Online HTML Tools</title>
		<link>http://www.jamalahbryan.com/blogs/useful-online-html-tools/</link>
		<comments>http://www.jamalahbryan.com/blogs/useful-online-html-tools/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 14:33:02 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=234</guid>
		<description><![CDATA[Ever interested in applying all kind of stuff to text you already have, like converting csv data into a table or reversing the order of words in a sentence without reversing the letters of the words? Well, I have and it has been a nightmare to find online resources to get these quick tasks complete. [...]]]></description>
			<content:encoded><![CDATA[<p>Ever interested in applying all kind of stuff to text you already have, like converting csv data into a table or reversing the order of words in a sentence without reversing the letters of the words? Well, I have and it has been a nightmare to find online resources to get these quick tasks complete.</p>
<p>As a programmer it is tempting to bake a script to do the trick but sometimes when time is not on your side these tools may come in handy.</p>
<p>Follow this link <a href="http://www.textfixer.com/html/csv-convert-table.php" target="_blank">http://www.textfixer.com/html/csv-convert-table.php</a> to access the tools on the <strong>Text Fixer</strong> website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/blogs/useful-online-html-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Automatic Update Issues</title>
		<link>http://www.jamalahbryan.com/linux/wordpress-automatic-update-issues/</link>
		<comments>http://www.jamalahbryan.com/linux/wordpress-automatic-update-issues/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 10:48:17 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=226</guid>
		<description><![CDATA[When trying to use WordPress automatic update I got this error &#8216;Error: There was an error connecting to the server, Please verify the settings are correct.&#8217;, after trying multiple attempts to rid myself of the problem I had a eureka moment. I thought to myself, &#8220;what if it Apache wasn&#8217;t seeing the right permissions of [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to use WordPress automatic update I got this error &#8216;Error: There was an error connecting to the server, Please verify the settings are correct.&#8217;, after trying multiple attempts to rid myself of the problem I had a eureka moment. I thought to myself, &#8220;what if it Apache wasn&#8217;t seeing the right permissions of the folders?&#8221;, and low and behold that was the problem.</p>
<p>Apache was expecting the owner of the folders in the document root to be www-data, I figured this is for some form of security purposes.</p>
<h2>How I got rid of the problem</h2>
<p>I got rid of the problem by changing the group and owner of my WordPress install folder in apache root to www-data by executing the following command:</p>
<pre class="brush: python;">cd /yourwordpress_dir/</pre>
<pre class="brush: python;">sudo chown -R www-data:www-data *</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/linux/wordpress-automatic-update-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount a USB drive in Linux</title>
		<link>http://www.jamalahbryan.com/linux/how-to-mount-a-usb-drive-in-linux/</link>
		<comments>http://www.jamalahbryan.com/linux/how-to-mount-a-usb-drive-in-linux/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 14:28:34 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[flash drive]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb drive]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=160</guid>
		<description><![CDATA[Most Linux distribution such as Ubuntu automatically mounts your usb drive when it is plugged in. Sometimes we take this for granted and if for some reason the drive doesn&#8217;t load we tend to pull our hair out trying to figure out why. If you&#8217;re like me then this is a sad reality that you [...]]]></description>
			<content:encoded><![CDATA[<p>Most Linux distribution such as Ubuntu automatically mounts your usb drive when it is plugged in. Sometimes we take this for granted and if for some reason the drive doesn&#8217;t load we tend to pull our hair out trying to figure out why. If you&#8217;re like me then this is a sad reality that you have to overcome perhaps every week.</p>
<p>The other day I was locked out of my Ubuntu after upgrading from Intrepid to Jaunty and GDM decided to take a break. The real problem occurred when I urgently needed my CV to be sent off that day and the most up-to-date CV was on my Ubuntu login, sigh.</p>
<h1>What I did</h1>
<p>After launching the recovery mode from GRUB I was able to get to a root console. This was good because my girlfriend had her laptop so I could send the CV from her Windows XP system (don&#8217;t laugh).</p>
<p>Anyway, here goes&#8230; <strong>but remember before accessing root you should consider backing up your important files so any mishap wont have you eating your heart out</strong>.</p>
<p><em><span style="color: #ff0000;">Please be careful when running commands under Linux as root, if you are unsure then ask someone before making any changes as root.</span></em></p>
<h2>Detecting USB hard drive</h2>
<p>After you plug in your USB device to your USB port, linux add new device into /dev/ folder. At this stage you are not able to use this device. You need to mount it to your system first in order to be able retrieve any data. To find out what name your device have you can run fdisk command:</p>
<pre class="brush: python;"># fdisk -l</pre>
<p>You will get output similar to this:</p>
<pre class="brush: python;">Disk /dev/sda: 60.0 GB, 60060155904 bytes 255 heads, 63 sectors/track, 7301 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1        7301    58645251   83  Linux</pre>
<h2>Creating the mount point</h2>
<p>Create directory where you want to mount your device:</p>
<pre class="brush: python;">mkdir /mnt/sda1</pre>
<h2>Edit /etc/fstab</h2>
<p>To automate this process you can edit /etc/fstab file and add line similar to this:</p>
<pre class="brush: python;">/dev/sda1       /mnt/sda           vfat    defaults        0       0</pre>
<p>Run mount command to mount all not yet mounted devices. <em>Keep in mind that if you have more different USB devices in you system, device name can vary!!!</em></p>
<pre class="brush: python;"># mount -a</pre>
<p><strong>Original article:</strong> <a href="http://www.linuxconfig.org/Howto_mount_USB_drive_in_Linux" target="_blank">http://www.linuxconfig.org/Howto_mount_USB_drive_in_Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/linux/how-to-mount-a-usb-drive-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taming Ubuntu : Access shared Ubuntu folders from Windows XP</title>
		<link>http://www.jamalahbryan.com/linux/taming-ubuntu-access-shared-ubuntu-folders-from-windows-xp/</link>
		<comments>http://www.jamalahbryan.com/linux/taming-ubuntu-access-shared-ubuntu-folders-from-windows-xp/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 13:31:20 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[shared]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=178</guid>
		<description><![CDATA[Ubuntu is a wonderful system especially for those who want to be in control of their operating system. On the other hand, sometimes you just want something to work without the hassle. Here is how to overcome one of those hassle if you or your friends want to share files across an Ubuntu installation. On [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu is a wonderful system especially for those who want to be in control of their operating system. On the other hand, sometimes you just want something to work without the hassle. Here is how to overcome one of those hassle if you or your friends want to share files across an Ubuntu installation.</p>
<h2>On Ubuntu</h2>
<p>Run the following command on your Ubuntu machine as root.</p>
<p><em><span style="color: #ff0000;">Please be careful when running commands under Linux as root, if you are unsure then ask someone before making any changes as root.</span></em></p>
<pre class="brush: python;">sudo smbpasswd -a 'yourusername'</pre>
<p>Add a password when prompted (can be different from pc password).</p>
<h2>On Windows</h2>
<p>Simply access \\xxx.xxx.xxx.xxx\. Where xxx.xxx.xxx.xxx can either be the machines&#8217; IP address or name.</p>
<p>When asked for credentials, provide user name, password for samba.</p>
<p>That&#8217;s it, you now have access to your Ubuntu system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/linux/taming-ubuntu-access-shared-ubuntu-folders-from-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating Cforms 2 to Production Server</title>
		<link>http://www.jamalahbryan.com/wordpress-blog/migrating-cforms-2-to-production-server/</link>
		<comments>http://www.jamalahbryan.com/wordpress-blog/migrating-cforms-2-to-production-server/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:40:28 +0000</pubDate>
		<dc:creator>jaibeee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[cforms 2]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[migrating]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jamalahbryan.com/?p=163</guid>
		<description><![CDATA[Cforms II is one of the most popular plug-ins considered by WordPress. I recently started using this plug-in for the contact form on any website that I create and it works like a charm. The only problem arise when you want to migrate your local development install to your production server. Here I am presenting [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Cforms II</strong> is one of the <a title="Most Popular WordPress Plug-in" href="http://wordpress.org/extend/plugins/browse/popular/" target="_blank"><strong>most popular plug-ins</strong></a> considered by <a title="WordPress" href="http://wordpress.org/" target="_blank"><strong>WordPress</strong></a>. I recently started using this plug-in for the contact form on any website that I create and it works like a charm. The only problem arise when you want to migrate your local development install to your production server. Here I am presenting a nice little script that I put together to help with fixing the form references after migration.</p>
<h3>The Problem</h3>
<p>When you migrate your cforms plugin from server to server, cform apparently keeps reference to the initial install which for me caused a lot of problem. For instance, when the website was loading I realise that a file was being referenced from my local server. huh!!! I was curious which plugin was doing this and went straight to the database only to find out that the culprit (with no fingers pointing) was cforms.</p>
<p>These are the references that it keeps:</p>
<pre class="brush: php;">$cformsSettings['global']['cforms_root']
$cformsSettings['global']['tinyURI']
$cformsSettings['global']['cforms_root_dir']
$cformsSettings['global']['cforms_upload_dir']</pre>
<p>Because the cforms data is being saved in the database as serialised data changing these from the database would cause the data to be corrupted and in some instances cause your cforms install useless.</p>
<p>For me, I had both problems, I initially tried to update the data from the database and it got corrupted and I tried using the methods prescribed by cforms to fix this problem but that didn&#8217;t work. Cforms method is to disable and enable the plugin or edit the data in the little form that the corrupt data page gives you.</p>
<p><strong>Remember, always backup your wordpress install, both database and files before messing around, especially in production environments.</strong></p>
<p><strong>Also, in cforms, go to global settings and backup all settings.</strong></p>
<h3>The Solution to Updating the References</h3>
<p>After finding that the problem was with cforms I went into cforms code and found what they were doing and here is the final result. Use this method if you have moved over your installation and want to update the references to your production server.</p>
<pre class="brush: php;">/**
 * Updates cforms data to reflect the current host that it is on
 *
 * @return
 */
function update_cforms_data() {
	if($cformsSettings['global']['cforms_root'] != WP_PLUGIN_URL . '/cforms') :
		$cformsSettings['global']['cforms_root'] = WP_PLUGIN_URL . '/cforms';
		update_option('cforms_settings',$cformsSettings);
	endif;

	if($cformsSettings['global']['tinyURI'] != get_option('siteurl') . '/wp-includes/js/tinymce') :
		$cformsSettings['global']['tinyURI'] = get_option('siteurl') . '/wp-includes/js/tinymce';
		update_option('cforms_settings',$cformsSettings);
	endif;

	if($cformsSettings['global']['cforms_root_dir'] != WP_PLUGIN_DIR . '/cforms') :
		$cformsSettings['global']['cforms_root_dir'] = WP_PLUGIN_DIR . '/cforms';
		update_option('cforms_settings',$cformsSettings);
	endif;

	if($cformsSettings['global']['cforms_upload_dir'] != WP_PLUGIN_DIR . '/cforms$#$') :
		$cformsSettings['global']['cforms_upload_dir'] = WP_PLUGIN_DIR . '/cforms$#$';
		update_option('cforms_settings',$cformsSettings);
	endif;
}</pre>
<h3>The Solution to Remove Cforms Totally and Reinstall</h3>
<p>Use this method to totally remove cforms data from the database, especially if cforms constantly reports that its data is corrupt and doesn&#8217;t give you the option to remove it.</p>
<pre class="brush: php;">$wpdb-&gt;query("DELETE FROM `$wpdb-&gt;options` WHERE option_name LIKE 'cforms%'");
$wpdb-&gt;query("DROP TABLE IF EXISTS $wpdb-&gt;cformssubmissions");
$wpdb-&gt;query("DROP TABLE IF EXISTS $wpdb-&gt;cformsdata");</pre>
<p><strong>Remember to backup your website before messing around.</strong></p>
<ul>
<li>WordPress version: WordPress 2.8.1</li>
<li>Cforms version: Cforms 2 10.5.2</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jamalahbryan.com/wordpress-blog/migrating-cforms-2-to-production-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
