<?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>Dan Murphy&#039;s Blog &#187; Codeing/Development</title>
	<atom:link href="http://www.danieltmurphy.com/category/codeingdevelopment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danieltmurphy.com</link>
	<description>You have to grow up, but you can be immature your whole life</description>
	<lastBuildDate>Thu, 10 Jun 2010 03:09:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Add iFrame to WordPress</title>
		<link>http://www.danieltmurphy.com/add-iframe-to-wordpress/</link>
		<comments>http://www.danieltmurphy.com/add-iframe-to-wordpress/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 03:08:02 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1486</guid>
		<description><![CDATA[


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Wow I finally figured out how to get an iframe into a wordpress post:</p>
<p>First edit your functions.php file for your theme and add this code snippet:</p>
<pre><em><strong><code>function field_func($atts) {
   global $post;
   $name = $atts['name'];
   if (empty($name)) return;
   return get_post_meta($post-&gt;ID, $name, true);
}
add_shortcode('field', 'field_func');
</code></strong></em></pre>
<p>Then when writing your post put a custom field in with the title of iframe and for the value put the whole iframe code!  This will save me tons of headaches</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/add-iframe-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting Stubborn Windows Folders</title>
		<link>http://www.danieltmurphy.com/deleting-stubborn-windows-folders/</link>
		<comments>http://www.danieltmurphy.com/deleting-stubborn-windows-folders/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 18:17:09 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1479</guid>
		<description><![CDATA[Every try to delete a windows folder only to find out that its path is too long and Windows NTFS<a href="http://www.danieltmurphy.com/deleting-stubborn-windows-folders/" class="searchmore">Read the Rest...</a><div class="clr"></div>


Related posts:<ol><li><a href='http://www.danieltmurphy.com/vbs-script-to-delete-old-files/' rel='bookmark' title='Permanent Link: VBS Script to Delete Old Files'>VBS Script to Delete Old Files</a> <small>I have setup my web hosting service to FTP my...</small></li>
<li><a href='http://www.danieltmurphy.com/microsoft-windows-7-for-students/' rel='bookmark' title='Permanent Link: Microsoft Windows 7 for $30 for students'>Microsoft Windows 7 for $30 for students</a> <small>This is just like the Windows Office for $59 only...</small></li>
<li><a href='http://www.danieltmurphy.com/windows-dreamspark-free-software-for-students/' rel='bookmark' title='Permanent Link: Windows DreamSpark &#8211; Free Software for Students'>Windows DreamSpark &#8211; Free Software for Students</a> <small>Well looks like Windows is all about getting their software...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1480" title="mbm-SYSTEM-s-CMD.icon" src="http://www.danieltmurphy.com/wp-content/uploads/2010/04/mbm-SYSTEM-s-CMD.icon_.gif" alt="" width="32" height="32" />Every try to delete a windows folder only to find out that its path is too long and Windows NTFS doesn&#8217;t understand how to delete it?  Well I just had this happen to me as I was unzipping the latest backup of my site to test some stuff out.  What I ended up doing was opening a command prompt window and going to the parent directory and then typing:</p>
<p><em>rmdir /s &#8220;really long folder path name&#8221;</em></p>
<p>This will securely delete all sub folders and files and delete the directories regardless of what ISO standards you make have broken with how long the path ends up getting.  I was afraid I was going to have to jump to Linux and use that to delete the folder but this was much easier</p>


<p>Related posts:<ol><li><a href='http://www.danieltmurphy.com/vbs-script-to-delete-old-files/' rel='bookmark' title='Permanent Link: VBS Script to Delete Old Files'>VBS Script to Delete Old Files</a> <small>I have setup my web hosting service to FTP my...</small></li>
<li><a href='http://www.danieltmurphy.com/microsoft-windows-7-for-students/' rel='bookmark' title='Permanent Link: Microsoft Windows 7 for $30 for students'>Microsoft Windows 7 for $30 for students</a> <small>This is just like the Windows Office for $59 only...</small></li>
<li><a href='http://www.danieltmurphy.com/windows-dreamspark-free-software-for-students/' rel='bookmark' title='Permanent Link: Windows DreamSpark &#8211; Free Software for Students'>Windows DreamSpark &#8211; Free Software for Students</a> <small>Well looks like Windows is all about getting their software...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/deleting-stubborn-windows-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows x64 Access Database Connections</title>
		<link>http://www.danieltmurphy.com/windows-x64-access-database-connections/</link>
		<comments>http://www.danieltmurphy.com/windows-x64-access-database-connections/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 00:21:53 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Reference]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1473</guid>
		<description><![CDATA[I have spent many hours dealing with this on my own so I figured I would write down the solution<a href="http://www.danieltmurphy.com/windows-x64-access-database-connections/" class="searchmore">Read the Rest...</a><div class="clr"></div>


Related posts:<ol><li><a href='http://www.danieltmurphy.com/microsoft-windows-7-for-students/' rel='bookmark' title='Permanent Link: Microsoft Windows 7 for $30 for students'>Microsoft Windows 7 for $30 for students</a> <small>This is just like the Windows Office for $59 only...</small></li>
<li><a href='http://www.danieltmurphy.com/windows-dreamspark-free-software-for-students/' rel='bookmark' title='Permanent Link: Windows DreamSpark &#8211; Free Software for Students'>Windows DreamSpark &#8211; Free Software for Students</a> <small>Well looks like Windows is all about getting their software...</small></li>
<li><a href='http://www.danieltmurphy.com/deleting-stubborn-windows-folders/' rel='bookmark' title='Permanent Link: Deleting Stubborn Windows Folders'>Deleting Stubborn Windows Folders</a> <small>Every try to delete a windows folder only to find...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2010/03/Video_SQLLink_ODBC.gif" rel="lightbox[1473]"><img class="alignleft size-full wp-image-1474" title="Video_SQLLink_ODBC" src="http://www.danieltmurphy.com/wp-content/uploads/2010/03/Video_SQLLink_ODBC.gif" alt="" width="64" height="64" /></a>I have spent many hours dealing with this on my own so I figured I would write down the solution so I wouldn&#8217;t have to research everything again.  If you are running a 64 bit system and need to use *.MDB drivers you need to make sure the following is set:</p>
<p>run: &#8220;regsvr32 odbcconf.dll&#8221; from c:\windows\Syswow64\</p>
<p>Edit ODBC using: C:\WINDOWS\SysWOW64\odbcad32.exe</p>
<p>That will save you many hours of frustration with x64 systems</p>


<p>Related posts:<ol><li><a href='http://www.danieltmurphy.com/microsoft-windows-7-for-students/' rel='bookmark' title='Permanent Link: Microsoft Windows 7 for $30 for students'>Microsoft Windows 7 for $30 for students</a> <small>This is just like the Windows Office for $59 only...</small></li>
<li><a href='http://www.danieltmurphy.com/windows-dreamspark-free-software-for-students/' rel='bookmark' title='Permanent Link: Windows DreamSpark &#8211; Free Software for Students'>Windows DreamSpark &#8211; Free Software for Students</a> <small>Well looks like Windows is all about getting their software...</small></li>
<li><a href='http://www.danieltmurphy.com/deleting-stubborn-windows-folders/' rel='bookmark' title='Permanent Link: Deleting Stubborn Windows Folders'>Deleting Stubborn Windows Folders</a> <small>Every try to delete a windows folder only to find...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/windows-x64-access-database-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test post with wptogo</title>
		<link>http://www.danieltmurphy.com/test-post-with-wptogo/</link>
		<comments>http://www.danieltmurphy.com/test-post-with-wptogo/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 05:53:39 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/test-post-with-wptogo/</guid>
		<description><![CDATA[I am just testing wptogo android app for wordpress No related posts. Related posts brought to you by Yet Another<a href="http://www.danieltmurphy.com/test-post-with-wptogo/" class="searchmore">Read the Rest...</a><div class="clr"></div>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I am just testing wptogo android app for wordpress</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/test-post-with-wptogo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBS Script to Delete Old Files</title>
		<link>http://www.danieltmurphy.com/vbs-script-to-delete-old-files/</link>
		<comments>http://www.danieltmurphy.com/vbs-script-to-delete-old-files/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 20:07:18 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[automation]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1427</guid>
		<description><![CDATA[I have setup my web hosting service to FTP my full backup of my website every Monday.  While this automation<a href="http://www.danieltmurphy.com/vbs-script-to-delete-old-files/" class="searchmore">Read the Rest...</a><div class="clr"></div>


Related posts:<ol><li><a href='http://www.danieltmurphy.com/automated-cpanel-full-backups/' rel='bookmark' title='Permanent Link: Automated CPanel Full Backups'>Automated CPanel Full Backups</a> <small>Looks like I finally figured out how to automate cpanel...</small></li>
<li><a href='http://www.danieltmurphy.com/mysql-dump-and-load-commands/' rel='bookmark' title='Permanent Link: MySQL Dump and Load Commands'>MySQL Dump and Load Commands</a> <small>I have had to do this a lot lately with...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/10/scripts.png" rel="lightbox[1427]"><img class="alignleft size-full wp-image-1429" title="scripts" src="http://www.danieltmurphy.com/wp-content/uploads/2009/10/scripts.png" alt="scripts" width="48" height="48" /></a>I have setup my web hosting service to FTP my full backup of my website every Monday.  While this automation is great I forgot about one thing to maintain.  With each one of these backup files being about 1GB it can start to take up a lot of space if you do not clean up your older files!</p>
<p>So after searching around I came around the .vbs script that looks at the directory and deletes any file older than a specified number of days.  In this case I have chosen 60 days.  Now a few things to remember, make sure you keep backing up your site if you are running this file otherwise you will delete all of your backups if it is long than 60 days since your last backup!  Using Windows scheduler I have made this run shortly after I receive my latest backup file from my web host.  This makes my backup process totally automated now even for maintaining files!</p>
<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/10/Delete-Files-Older-than-60-Days.zip">Delete Files Older than 60 Days</a></p>


<p>Related posts:<ol><li><a href='http://www.danieltmurphy.com/automated-cpanel-full-backups/' rel='bookmark' title='Permanent Link: Automated CPanel Full Backups'>Automated CPanel Full Backups</a> <small>Looks like I finally figured out how to automate cpanel...</small></li>
<li><a href='http://www.danieltmurphy.com/mysql-dump-and-load-commands/' rel='bookmark' title='Permanent Link: MySQL Dump and Load Commands'>MySQL Dump and Load Commands</a> <small>I have had to do this a lot lately with...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/vbs-script-to-delete-old-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated CPanel Full Backups</title>
		<link>http://www.danieltmurphy.com/automated-cpanel-full-backups/</link>
		<comments>http://www.danieltmurphy.com/automated-cpanel-full-backups/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 00:09:45 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1330</guid>
		<description><![CDATA[Looks like I finally figured out how to automate cpanel backups.  Since most of my sites are all hosted on<a href="http://www.danieltmurphy.com/automated-cpanel-full-backups/" class="searchmore">Read the Rest...</a><div class="clr"></div>


Related posts:<ol><li><a href='http://www.danieltmurphy.com/mysql-dump-and-load-commands/' rel='bookmark' title='Permanent Link: MySQL Dump and Load Commands'>MySQL Dump and Load Commands</a> <small>I have had to do this a lot lately with...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/09/cpanel_logo.jpg" rel="lightbox[1330]"><img class="alignleft size-full wp-image-1332" title="cpanel_logo" src="http://www.danieltmurphy.com/wp-content/uploads/2009/09/cpanel_logo.jpg" alt="cpanel_logo" width="150" height="71" /></a>Looks like I finally figured out how to automate cpanel backups.  Since most of my sites are all hosted on the same account backup was a sinch with cpanel full backup.  Only issue was that I could not automate the task until now!</p>
<p>First I setup my own local FTP so I had a remote place to put the files.  Then using the script below edited it put in my cpanel variables and then created a cron job to run the file.  The issue wasn&#8217;t finding this script, I have had it for a while, the issue was getting the darn thing to work.  Looks like what I was missing was changing the $skin parameter to &#8216;lp&#8217;&#8230;thank you Lunar Pages Forum (yes should have looked there a long time ago but didn&#8217;t).  Lunar Pages would be my host and looks like they have their own skin for cpanel.  Once I got that in place everything worked perfectly and then I just scheduled the cron job below.</p>
<p>Here is the script <a href="http://www.danieltmurphy.com/wp-content/uploads/2009/09/cpanel_backup.zip" target="_blank">cpanel_backup.php</a></p>
<p><strong>Update</strong>: I had to make some minor changes to the file to include the remote directory and FTP port as I was getting errors saying all the forms were not filled out. Here is the latest version <a href="http://www.danieltmurphy.com/wp-content/uploads/2009/09/cpanel_backup-1.1.php_.zip">cpanel_backup.php Version 2</a></p>
<p>Then schedule the script job via Cron<br />
 <span style="color: #800000;"><em><strong>0 0 * * 1 /usr/bin/env php cpanel_backup.php</strong></em></span></p>


<p>Related posts:<ol><li><a href='http://www.danieltmurphy.com/mysql-dump-and-load-commands/' rel='bookmark' title='Permanent Link: MySQL Dump and Load Commands'>MySQL Dump and Load Commands</a> <small>I have had to do this a lot lately with...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/automated-cpanel-full-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Scheme Design Picker</title>
		<link>http://www.danieltmurphy.com/color-scheme-design-picker/</link>
		<comments>http://www.danieltmurphy.com/color-scheme-design-picker/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 17:13:20 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Web Sites]]></category>
		<category><![CDATA[Colors]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1326</guid>
		<description><![CDATA[Not that you could ever have enough websites to help you choose color schemes that actually match here is another<a href="http://www.danieltmurphy.com/color-scheme-design-picker/" class="searchmore">Read the Rest...</a><div class="clr"></div>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/09/Color-Scheme-Designer-Screen-Shot.jpg" rel="lightbox[1326]"><img class="alignleft size-full wp-image-1327" title="Color Scheme Designer Screen Shot" src="http://www.danieltmurphy.com/wp-content/uploads/2009/09/Color-Scheme-Designer-Screen-Shot.jpg" alt="Color Scheme Designer Screen Shot" width="320" height="231" /></a>Not that you could ever have enough websites to help you choose color schemes that actually match here is another one to add to the list!</p>
<p><a href="http://colorschemedesigner.com/" target="_blank">Color Scheme Designer</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/color-scheme-design-picker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Dump and Load Commands</title>
		<link>http://www.danieltmurphy.com/mysql-dump-and-load-commands/</link>
		<comments>http://www.danieltmurphy.com/mysql-dump-and-load-commands/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 17:09:56 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1323</guid>
		<description><![CDATA[I have had to do this a lot lately with all the database work I have been doing so I<a href="http://www.danieltmurphy.com/mysql-dump-and-load-commands/" class="searchmore">Read the Rest...</a><div class="clr"></div>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/09/logo-mysql.jpg" rel="lightbox[1323]"><img class="alignleft size-full wp-image-1324" title="logo-mysql" src="http://www.danieltmurphy.com/wp-content/uploads/2009/09/logo-mysql.jpg" alt="logo-mysql" width="96" height="70" /></a>I have had to do this a lot lately with all the database work I have been doing so I figured I would write this down before I forgot about it.</p>
<p>If you need to restore a database from a .sql file here is the command:</p>
<p><strong><span style="color: #800000;"><em>mysql -h hostname -u username -pthepassword databasename &lt; dumpfile.sql</em></span></strong></p>
<p>If you need to dump a database to a file (for automated backup purposes) you can use this command:</p>
<p><span style="color: #800000;"><em><strong>mysqldump </strong></em></span><strong><span style="color: #800000;"><em>-h hostname -u username -pthepassword databasename</em></span></strong><span style="color: #800000;"><em><strong> &gt; backup-file.sql</strong></em></span></p>
<p>These can be very helpful when doing database work</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/mysql-dump-and-load-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular Expressions Find and Replace</title>
		<link>http://www.danieltmurphy.com/regular-expressions-find-and-replace/</link>
		<comments>http://www.danieltmurphy.com/regular-expressions-find-and-replace/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 14:58:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Reference]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1308</guid>
		<description><![CDATA[Dealing with databases and SQL I run across a lot of lists that are usually broken by either excel or<a href="http://www.danieltmurphy.com/regular-expressions-find-and-replace/" class="searchmore">Read the Rest...</a><div class="clr"></div>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/07/2009-07-22_085637.jpg" rel="lightbox[1308]"><img class="alignleft size-full wp-image-1309" title="2009-07-22_085637" src="http://www.danieltmurphy.com/wp-content/uploads/2009/07/2009-07-22_085637.jpg" alt="2009-07-22_085637" width="319" height="212" /></a>Dealing with databases and SQL I run across a lot of lists that are usually broken by either excel or line breaks.  Well when you need a quick way to convert that to a single line comma separated list the fastest way to do it is a find and replace on regular expressions.  This can be easily done with Notepad++ or just about any text editor</p>
<p>For example if you had a list like:</p>
<p>1<br />
 2<br />
 3<br />
 4</p>
<p>A find of <strong><em>\r\n</em></strong> and replace with<em> <strong>,</strong></em> will give you the output of</p>
<p>1,2,3,4</p>
<p>This can save a whole bunch of time!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/regular-expressions-find-and-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL &#8211; Find and Replace Statement</title>
		<link>http://www.danieltmurphy.com/mysql-find-and-replace-statement/</link>
		<comments>http://www.danieltmurphy.com/mysql-find-and-replace-statement/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 16:05:30 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Codeing/Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.danieltmurphy.com/?p=1301</guid>
		<description><![CDATA[The other day I had to move a blog from one server to another and found out that WordPress sometimes<a href="http://www.danieltmurphy.com/mysql-find-and-replace-statement/" class="searchmore">Read the Rest...</a><div class="clr"></div>


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danieltmurphy.com/wp-content/uploads/2009/07/50px-Edit-find-replace.svg.png" rel="lightbox[1301]"><img class="alignleft size-full wp-image-1302" title="50px-Edit-find-replace.svg" src="http://www.danieltmurphy.com/wp-content/uploads/2009/07/50px-Edit-find-replace.svg.png" alt="50px-Edit-find-replace.svg" width="50" height="50" /></a>The other day I had to move a blog from one server to another and found out that WordPress sometimes likes to hard code the server address into things like links and images.  I found this handy little SQL statement you can run to find and replace anything that you need changed:</p>
<p><span style="color: #800000;"><em><strong>update [Table] set [Column] = replace([column],&#8217;[old text]&#8216;,&#8217;new text&#8217;);</strong></em></span></p>
<p>This can save you a lot of heart ache dealing with moving servers and find out that you have a lot of broken images left after migration.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.danieltmurphy.com/mysql-find-and-replace-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
