<?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>Zero Mu Tech Articles &#187; Web</title>
	<atom:link href="http://www.techarticles.zeromu.net/category/programming/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techarticles.zeromu.net</link>
	<description>Solutions to computer problems that were in my way.</description>
	<lastBuildDate>Sun, 09 May 2010 03:48:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Get rid of WordPress messing with your quotes while writing code</title>
		<link>http://www.techarticles.zeromu.net/programming/get-rid-of-wordpress-messing-with-your-quotes-while-writing-code/</link>
		<comments>http://www.techarticles.zeromu.net/programming/get-rid-of-wordpress-messing-with-your-quotes-while-writing-code/#comments</comments>
		<pubDate>Fri, 02 May 2008 06:45:15 +0000</pubDate>
		<dc:creator>Jake D</dc:creator>
				<category><![CDATA[Fixes/Hacks]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.techarticles.zeromu.net/?p=28</guid>
		<description><![CDATA[<a href="http://www.techarticles.zeromu.net/programming/get-rid-of-wordpress-messing-with-your-quotes-while-writing-code/"><img align="right" hspace="5" width="96" src="http://www.techarticles.zeromu.net/wp-content/uploads/2008/05/picture-2281.png" class="alignright wp-post-image tfe" alt="" title="badcode" /></a>Problem: Recently I was writing an article where I posted some python code.  Using WordPress, I was switching between HTML/Code view and &#8220;Visual&#8221; view.  Every time that I switched, the WordPress editor would change some of my code, namely the quotes.  I ended up with something that looked like this: Solution: Not exactly sure, but<br/><br/><a href="http://www.techarticles.zeromu.net/programming/get-rid-of-wordpress-messing-with-your-quotes-while-writing-code/">Read more...</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: Recently I was writing <a href="http://www.techarticles.zeromu.net/programming/get-attributes-and-filter-out-methods-a-private-attributes/">an article where I posted some python code</a>.  Using WordPress, I was switching between HTML/Code view and &#8220;Visual&#8221; view.  Every time that I switched, the WordPress editor would change some of my code, namely the quotes.  I ended up with something that looked like this:</p>
<p><a href="http://www.techarticles.zeromu.net/wp-content/uploads/2008/05/picture-2281.png"><img class="alignnone size-full wp-image-31" title="badcode" src="http://www.techarticles.zeromu.net/wp-content/uploads/2008/05/picture-2281.png" alt="" width="500" height="30" /></a></p>
<p><strong>Solution</strong>: Not exactly sure, but it seems to have stopped.</p>
<p>There are <a href="http://en.forums.wordpress.com/tags.php?tag=sourcecode">several WordPress posts</a> that go over an issue of using the</p>
<pre class="brush: plain;">[/sourcecode]

tag to write sourcecode.

Personally, I was very frustrated because while writing in Python, where whitespace matters, my indents would all be lost when switching between the visual and HTML editor in WordPress.

My solution was to wrap my

[sourcecode]</pre>
<p>tags in &lt;pre&gt; tags.</p>
<h2>Check the plugin?</h2>
<p>I originally was using the</p>
<pre class="brush: plain;">[/sourcecode]

tag from &lt;a href=&quot;http://code.google.com/p/syntaxhighlighter/&quot;&gt;SyntaxHighlighter&lt;/a&gt;, then found another one, called SyntaxHilighter Plus.

I don't have time to go over all of this, but I disabled the Plus version, re-enabled the regular SyntaxHighlighter, and made sure to wrap my

[sourcecode]</pre>
<p>s in &lt;pre&gt; tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techarticles.zeromu.net/programming/get-rid-of-wordpress-messing-with-your-quotes-while-writing-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to split pages in WordPress 2.5 with nextpage</title>
		<link>http://www.techarticles.zeromu.net/programming/web/how-to-split-pages-in-wordpress-25-with-nextpage/</link>
		<comments>http://www.techarticles.zeromu.net/programming/web/how-to-split-pages-in-wordpress-25-with-nextpage/#comments</comments>
		<pubDate>Fri, 02 May 2008 04:50:53 +0000</pubDate>
		<dc:creator>Jake D</dc:creator>
				<category><![CDATA[HTML/XHTML]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[nextpage]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WYSIWYG]]></category>

		<guid isPermaLink="false">http://www.techarticles.zeromu.net/?p=27</guid>
		<description><![CDATA[Problem: In WordPress 2.5.1, I was trying to make a multiple-page article using the &#60;!&#8211;nextpage&#8211;&#62; quicktag, but it wasn&#8217;t working. Quick Answer: When you want a page break, switch to HTML/Code view and then type &#60;!&#8211;nextpage&#8211;&#62;. Whole Story As simple as this sounds, it took me 20 minutes to get this to work.  My problem<br/><br/><a href="http://www.techarticles.zeromu.net/programming/web/how-to-split-pages-in-wordpress-25-with-nextpage/">Read more...</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: In WordPress 2.5.1, I was trying to make a multiple-page article using the &lt;!&#8211;nextpage&#8211;&gt; quicktag, but it wasn&#8217;t working.</p>
<p><strong>Quick Answer:</strong> When you want a page break, switch to HTML/Code view and then type &lt;!&#8211;nextpage&#8211;&gt;.</p>
<h2>Whole Story</h2>
<p>As simple as this sounds, it took me 20 minutes to get this to work.  My problem was that I thought the usage was like other plugin quicktags, where you can just put it in anywhere.  But if you put in &lt;!&#8211;nextpage&#8211;&gt; while using the &#8220;Visual&#8221; or WYSIWYG editor, it will change your greater than and less than sign into the html entities.</p>
<p>The problem with having to switch to the HTML or code view is that I have to scroll down and find where my spot was in the article (if I am putting in page breaks after publishing).  It would be great if WordPress had a button on the writing toolbar, like the &#8220;More&#8221; tag, that would insert page breaks without having to switch to HTML or Code view, or worrying about whether you are in the right view or not.</p>
<p>This took me so much longer than it should have that this qualifies as a &#8220;computer problem that got in my way&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techarticles.zeromu.net/programming/web/how-to-split-pages-in-wordpress-25-with-nextpage/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Moving Your Mac Leopard Time Machine to a New Drive</title>
		<link>http://www.techarticles.zeromu.net/applemac/moving-your-mac-leopard-time-machine-to-a-new-drive/</link>
		<comments>http://www.techarticles.zeromu.net/applemac/moving-your-mac-leopard-time-machine-to-a-new-drive/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 04:57:14 +0000</pubDate>
		<dc:creator>Jake D</dc:creator>
				<category><![CDATA[Apple/Mac]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://www.techarticles.zeromu.net/2008/02/18/moving-your-mac-leopard-time-machine-to-a-new-drive/</guid>
		<description><![CDATA[<a href="http://www.techarticles.zeromu.net/applemac/moving-your-mac-leopard-time-machine-to-a-new-drive/"><img align="right" hspace="5" width="96" src="http://www.techarticles.zeromu.net/wp-content/uploads/2008/02/picture-99.png" class="alignright wp-post-image tfe" alt="Select highest parent" title="" /></a>I recently upgraded to a 1 Terabyte external hard drive and wanted to move my Time Machine backups to that drive (and start using this new drive for Time Machine). This is how I did it. Quick Solution: Use Disk Utility to Restore your old drive to your new drive, then tell Time Machine that<br/><br/><a href="http://www.techarticles.zeromu.net/applemac/moving-your-mac-leopard-time-machine-to-a-new-drive/">Read more...</a>]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded to a 1 Terabyte external hard drive and wanted to move my Time Machine backups to that drive (and start using this new drive for Time Machine).  This is how I did it.</p>
<p><strong>Quick Solution</strong>: Use Disk Utility to <em>Restore</em> your old drive to your new drive, then tell Time Machine that you want to use a different disk</p>
<h2>The Whole Story</h2>
<p>When I got the 1TB drive, it was formatted as FAT32.  I had been using Time Machine (I am running Mac OS 10.5.2) and I wanted to use my new drive for Time Machine, but I wanted to keep my current Time Machine history.  My vision was to have the exact same data, but now my external drive can hold more.  I ran into a few issues while trying to do this, so here is how I solved them.</p>
<p><em><strong>Note</strong>: The sections &#8220;Formatting the new hard drive&#8221;, &#8220;Transfer the files&#8221;, and &#8220;Transfer Problems&#8221; narrate the problems I had while trying to just copy files&#8230; see the following section, &#8220;Use Disk Utility Instead&#8221;, for enumerated instructions on how I actually solved the problem. </em></p>
<h3>Formatting the new hard drive</h3>
<p>When I first plugged in the drive, Leopard recognized it.  I thought that I might just be able to dump the files from my old external hard drive (formatted in HFS+) onto the new one (FAT32). When I selected the files to move and dragged them to the new folder, I heard the &#8220;pang&#8221; sound that Finder makes when you copy files, but nothing actually happened.</p>
<p>Since I will only use this new drive on a Mac, I thought maybe I should reformat to HFS+ (I also thought that Time Machine might require it).  Using Disk Utility, I ran into a few vague errors and the disk would never be successfully formatted.  I found the solution on the <a title="Apple Forum on reformatting large drives" href="http://discussions.apple.com/thread.jspa?threadID=1244486">Apple Discussion Forums</a> .</p>
<p>This basically says that you must select the highest parent of the drive you want to format<br />
<img src="http://www.techarticles.zeromu.net/wp-content/uploads/2008/02/picture-99.png" alt="Select highest parent" /></p>
<p>and select the &#8220;Partition&#8221; page.</p>
<p><img src="http://www.techarticles.zeromu.net/wp-content/uploads/2008/02/picture-100.png" alt="Partition Page" /></p>
<p>Then go to &#8220;Options&#8230;&#8221; and select the top option: &#8220;GUID&#8221;.</p>
<p>The formatting should only take a few seconds.</p>
<p>The next page goes over transferring your files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techarticles.zeromu.net/applemac/moving-your-mac-leopard-time-machine-to-a-new-drive/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to move WordPress to a subdomain</title>
		<link>http://www.techarticles.zeromu.net/fixeshacks/how-to-move-wordpress-to-a-subdomain/</link>
		<comments>http://www.techarticles.zeromu.net/fixeshacks/how-to-move-wordpress-to-a-subdomain/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 23:29:47 +0000</pubDate>
		<dc:creator>Jake D</dc:creator>
				<category><![CDATA[Fixes/Hacks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.techarticles.zeromu.net/2008/02/09/how-to-move-wordpress-to-a-subdomain/</guid>
		<description><![CDATA[I recently made a WordPress blog for one of our clients. Everything was setup fine in a directory similar to www.thewebsite.com/blog/. Then I decided that I wanted the blog to have its own subdirectory, www.blog.thewebsite.com. The quick answer: export your data and reinstall WordPress. The whole story: So I used the cPanel interface of the<br/><br/><a href="http://www.techarticles.zeromu.net/fixeshacks/how-to-move-wordpress-to-a-subdomain/">Read more...</a>]]></description>
			<content:encoded><![CDATA[<p>I recently made a <a title="WordPress.org" href="http://wordpress.org/">WordPress</a> blog for one of our clients. Everything was setup fine in a directory similar to <code>www.thewebsite.com/blog/</code>.  Then I decided that I wanted the blog to have its own subdirectory, <code>www.blog.thewebsite.com</code>.</p>
<p><strong>The quick answer:</strong> export your data and reinstall WordPress.</p>
<p>The whole story:</p>
<p>So I used the cPanel interface of the web hoster and created a subdomain, blog, and set the document root to <code>/www/blog/</code>.  When I would try to pull up <code>www.blog.thewebsite.com </code>, the browser would just redirect to <code>www.thewebsite.com/</code>, and no blog would appear.</p>
<p>I was going to go through all of the things that I did to try to hack-up WordPress so that I would not have to reinstall, but then I realized that none of that actually worked. I could get far enough that the page would show up and about half of the links would work, but there ended up being an issue with the permalinks.</p>
<p>What I had to do was use the Manage-&gt;Export feature of the WordPress admin area to save my categories, posts, etc.  Then, to uninstall WordPress, I deleted all of the tables in my WordPress database, then ran the <code>install.php</code> script again.  I probably could have kept the <code>users</code> table, and perhaps a few other tables with the plugin settings, but I didn&#8217;t.  So I had to reactivate my plugins and all of the other options that I had changed from the default values.</p>
<p>If you have a better fix for this, please leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techarticles.zeromu.net/fixeshacks/how-to-move-wordpress-to-a-subdomain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
