<?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>the blog of david dean &#187; howto</title>
	<atom:link href="http://www.davidbdean.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidbdean.com</link>
	<description>currently not blogging much at all</description>
	<lastBuildDate>Sat, 21 Jun 2008 15:30:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Code: Create Prototype HTK HMM</title>
		<link>http://www.davidbdean.com/2006/11/16/code-create-prototype-htk-hmm/</link>
		<comments>http://www.davidbdean.com/2006/11/16/code-create-prototype-htk-hmm/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 02:09:25 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[htk]]></category>
		<category><![CDATA[speech]]></category>

		<guid isPermaLink="false">http://www.davidbdean.com/2006/11/16/code-create-prototype-htk-hmm/</guid>
		<description><![CDATA[One of the things that can be annoying about using HTK is creating the prototype HMM files. I think the first thing any researcher probably does is write a quick little program to generate a prototype from a number of parameters. So here&#8217;s my version to save you &#8212; the person who found this page [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that can be annoying about using <a href="http://htk.eng.cam.ac.uk/">HTK</a> is creating the prototype HMM files. I think the first thing any researcher probably does is write a quick little program to generate a prototype from a number of parameters. So here&#8217;s my version to save you &#8212; the person who found this page on google &#8212; the trouble.</p>
<pre>
MakeHMMPrototype, written by David Dean, 2004

Generates a forward only, diagonal covariance HMM prototype

usage:
   MakeHMMPrototype name parameterkind vectorsize numberstates mixturesperstate \
                [ streamcount vecsize1 ... vecsizeN ]

   name             : name of hmm (eg. prototype)
   parameterkind    : parameter kind (eg. MFCC_0_D_A)
   vectorsize       : size of feature vector
   numberstates     : total number of states
   mixturesperstate : number of mixtures per state
   streamcount ...  : multiple-stream support
                      (vecsize1 + ... + vecsizeN = vectorsize)
</pre>
<p>You can download the c code to compile to your favorite platform <a href="http://www.davidbdean.com/wp-content/uploads/makehmmprototype.c">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/11/16/code-create-prototype-htk-hmm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Now at davidbdean.com</title>
		<link>http://www.davidbdean.com/2006/10/17/now-at-davidbdeancom/</link>
		<comments>http://www.davidbdean.com/2006/10/17/now-at-davidbdeancom/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 04:13:47 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.davidbdean.com/2006/10/17/now-at-davidbdeancom/</guid>
		<description><![CDATA[Look up at the URL, you are now at www.davidbdean.com (unless you are reading this in syndication). If you go to any URL at cebidae.com you will be permanently redirected to the same location here. You can also get to here from www.dbdean.com too. Hopefully nothing will break. I&#8217;m hoping this will look a little [...]]]></description>
			<content:encoded><![CDATA[<p>Look up at the URL, you are now at <a href="http://www.davidbdean.com">www.davidbdean.com</a> (unless you are reading this in syndication). If you go to any URL at cebidae.com you will be permanently redirected to the same location here. You can also get to here from <a href="http://www.dbdean.com">www.dbdean.com</a> too. Hopefully nothing will break. I&#8217;m hoping this will look a little more professional, and get me a bit higher on Google for <a href="http://www.google.com.au/search?&#038;q=david%20dean">david dean</a>. </p>
<p>It was really simple to do:</p>
<ol>
<li>Point davidbdean.com at this website</li>
<li>Create a <em>redirection</em> website with only a <code>.htaccess</code> file containing &#8216;<code>RedirectPermanent / http://www.davidbdean.com/</code>&#8216;</li>
<li>Point cebidae.com and dbdean.com to the redirection website</li>
</ol>
<p>And it all just, hopefully, works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/10/17/now-at-davidbdeancom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I read ebooks</title>
		<link>http://www.davidbdean.com/2006/08/19/how-i-read-ebooks/</link>
		<comments>http://www.davidbdean.com/2006/08/19/how-i-read-ebooks/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 12:55:47 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[fiction]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sf]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/08/19/how-i-read-ebooks/</guid>
		<description><![CDATA[Well, it appears the link from Boing Boing to my article about locating DRM-free ebooks may have brought a little bit more traffic here than normal (click on the thumbnail for a close-up). As a result there are a lot of good comments about other places to get your scifi than the 5 I mentioned. [...]]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" href="http://www.cebidae.com/wp-content/uploads/boingboinged.png" title="Boing-boinged traffic chart"><img style="float: right; padding-left: 1em" id="image366" src="http://www.cebidae.com/wp-content/uploads/boingboinged.thumbnail.png" alt="Boing-boinged traffic chart" /></a>Well, it appears the link from <a href="http://www.boingboing.net/2006/08/17/where_to_get_drmfree.html">Boing Boing</a> to my article about locating <a href="http://www.cebidae.com/2006/07/27/5-excellent-places-to-find-drm-free-science-fiction/">DRM-free ebooks</a> may have brought a little bit more traffic here than normal (click on the thumbnail for a close-up). As a result there are a lot of good comments about other places to get your scifi than the 5 I mentioned. I&#8217;ll wait a little longer and write up a summary to get all the links in the one spot.</p>
<p>But, in the meantime, I thought I&#8217;d point out how I go about actually reading ebooks rather than just aquiring them. I&#8217;ll start with the reading software, and work back to ebook formats.</p>
<p><img style="float:left; padding-right:1em" id="image368" src="http://www.cebidae.com/wp-content/uploads/accelerando.PNG" alt="Accelerando" /><strong>μBook</strong></p>
<p>If you want to read ebooks comfortably then (in my opinion) <a href="http://www.gowerpoint.com/uBook_main.html">μBook</a> the best choice, and the only software you should need. It has support for the most formats, runs on Windows, Pocket PC and now has a &#8216;lite&#8217; Palm version (Sorry no *nix/OSX &#8211; any alternative suggestions in the comments?). It&#8217;s not free, but at $15 US I think it is worth it.</p>
<p>In my experience, the main differentiating factor with ebook software is support for formats. <a href="http://www.microsoft.com/reader/">Microsoft Reader</a> and <a href="http://www.ereader.com/">eReader</a> only appear to support their own, proprietary formats, which are normally DRMed. Does this seem silly to you? An ebook reader prorgam that cannot even open a text file for reading? Crazy.</p>
<p><a href="http://www.mobipocket.com/">Mobipocket</a> has support for a few more formats, such as RTF, HTML and TXT, but μBook has support for many more:</p>
<blockquote><ul>
<li>Renders .TXT, .RTF, .HTML, .PML, .PDB and .PRC (Non-Secure), files book-like.</li>
<li>Extracts text out of .PDF (Non-Secure) files.</li>
<li>Displays PRC, RTF and HTML images, .JPG, .GIF, .PNG, .WMF (in RTF) or .BMP.</li>
<li>Opens text inside .ZIP, .CHM and .RB files, uncompressing paragraphs on the fly, limiting the amount of memory required (except CHM).</li>
</ul>
</blockquote>
<p>It&#8217;s that last point that seems most important to me. I think ebooks should be in the most open format that can support all the features required. To me, that would probably be HTML, but with multiple pages, images and style sheets you can end up with a few files per ebook. Μbook (Μ is a capital μ) allows you to zip them up so they can be in a single file.</p>
<p>So, anyway, on to ebook formats.</p>
<p><strong>Ebook Formats</strong></p>
<p>First off the bat, <a href="http://en.wikipedia.org/wiki/Portable_Document_Format">Adobe PDF</a> (as an ebook format) is evil. Very evil. No good unless you want to read them on a screen that is at least as big a sheet of paper. I normally read ebooks on my Pocket PC or my Tablet PC so I need my ebooks to be in a format that can be read on any size screen, and PDF does not cut it in this regard. I normally use Adobe Acrobat to convert the PDFs to something more useful, normally RTF or text. If the PDF is locked so I cannot save it as something else then I don&#8217;t read it &#8211; too much trouble.</p>
<p>If I&#8217;m buying an ebook from somewhere online, like <a href="http://www.fictionwise.com/">Fictionwise</a>, I normally get (unsecure, DRM-free) Palm Doc (pdb) or Mobipocket (prc) versions, as they work well in uBook.</p>
<p>If I&#8217;m getting some short fiction from the web somewhere, I normally try and find a &#8216;printer-friendly&#8217; format and save the HTML file. If the story has important images, then I use Firefox&#8217;s &#8217;save as -> web page, complete&#8217; option to save the page to a folder, and zip that up.</p>
<p>One final suggestion if a website has too much junk around the fiction: Use the <a href="http://amb.vis.ne.jp/mozilla/scrapbook/">Scrapbook</a> extension for firefox. It allows you to save a selection to a file, including all the images.</p>
<p>To the future: <a href="http://openreader.org">OpenReader</a> maybe? Sounds good, but <strike>so far its been mostly vaporware</strike> its been a long time coming &#8211; <a href="http://www.cebidae.com/2006/08/19/how-i-read-ebooks/#comment-2159">David&#8217;s comment below</a> has details. I really think there needs to be a free and open standard in this space, and I hope it&#8217;s not too far away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/08/19/how-i-read-ebooks/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to plot a 2D histogram using matlab</title>
		<link>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/</link>
		<comments>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 11:50:25 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/</guid>
		<description><![CDATA[So, I wanted to plot a 2D histogram in matlab, but the pickings were slim. I really just wanted something that worked as much like hist as possible. So I wrote my own:

HIST2D calculates a 2-dimensional histogram

     N = HIST2D(X,Y) bins the X and Y data into 10 equally spaced bins [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; padding-left:1em" id="image363" src="http://www.cebidae.com/wp-content/uploads/hist2d.png" alt="hist2d" />So, I wanted to plot a 2D histogram in matlab, but the pickings <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1487&#038;objectType=file">were</a> <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9896&#038;objectType=file">slim</a>. I really just wanted something that worked as much like <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/hist.html"><code>hist</code></a> as possible. So I wrote my own:</p>
<blockquote><p>
HIST2D calculates a 2-dimensional histogram</p>
<blockquote><p>
     N = HIST2D(X,Y) bins the X and Y data into 10 equally spaced bins in both dimensions </p>
<p>     N = HIST2D(X,Y,M), where M is a scalar, bins the data into M equally spaced bins in both dimensions</p>
<p>     N = HIST2D(X,Y,B), where B is a vector, bins the data with centers specified by B </p>
<p>     The number of bins or centers can be specified individually for either dimension using N = HIST2D(X,Y,NX,NY) or N = HIST2D(X,Y,BX,BY)</p>
<p>     [N,BX,BY] = HIST2D(&#8230;) also returns the positions of the bin centers as two matrices in BX and BY</p>
<p>     HIST2D(&#8230;) without output arguments produces a colormapped image plot of the 2d histogram
</p></blockquote>
<p>EXAMPLE</p>
<pre>
yin = randn(1,1000);
xin = randn(1,1000);
[n,x,y] = hist2d(xin,yin,11);
imagesc(x(1,:),y(:,1),n);
hold on;
plot(xin,yin,'y.'); colorbar
</pre>
</blockquote>
<p>You can download it here: <a href="http://www.cebidae.com/wp-content/uploads/hist2d.m"><code>hist2d.m</code></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/08/17/how-to-plot-a-2d-histogram-using-matlab/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>How to write a CRPIT paper in lyx</title>
		<link>http://www.davidbdean.com/2006/08/05/how-to-write-a-crpit-paper-in-lyx/</link>
		<comments>http://www.davidbdean.com/2006/08/05/how-to-write-a-crpit-paper-in-lyx/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 14:19:37 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[conference]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[lyx]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/08/05/how-to-write-a-crpit-paper-in-lyx/</guid>
		<description><![CDATA[How to write a CRPIT (Conferences in Research and Practice in Information Technology) paper in lyx:

Make sure the harvard package is installed in Latex.
Copy the CRPITStyle.cls class file available here to your localtexmf/tex/latex, and make sure you refresh the Latex database
Copy CRPITStyle.layout into Lyx&#8217;s layout folder (C:\Program Files\LyX141\Resources\layouts for me)
Open Lyx, Run Tools -> Reconfigure [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; padding-left:1em" id="image357" src="http://www.cebidae.com/wp-content/uploads/lyx.PNG" alt="Lyx" />How to write a CRPIT (<a href="http://crpit.com/index.html">Conferences in Research and Practice in Information Technology</a>) paper in <a href="http://www.lyx.org/">lyx</a>:</p>
<ol>
<li>Make sure the harvard package is <a href="http://www.google.com.au/search?hl=en&#038;safe=off&#038;q=install+additional+package+miktex&#038;btnG=Search&#038;meta=">installed</a> in Latex.</li>
<li>Copy the <code>CRPITStyle.cls</code> class file <a href="http://crpit.com/Authors.html">available here</a> to your <code>localtexmf/tex/latex</code>, and make sure you <a href="http://www.google.com.au/search?hl=en&#038;safe=off&#038;q=refresh+miktex+filename+database&#038;btnG=Search&#038;meta=">refresh the Latex database</a></li>
<li>Copy <a href="http://www.cebidae.com/wp-content/uploads/CRPITStyle.layout">CRPITStyle.layout</a> into Lyx&#8217;s layout folder (<code>C:\Program Files\LyX141\Resources\layouts</code> for me)</li>
<li>Open Lyx, Run Tools -> Reconfigure (you may also need to use Tools -> Tex Information -> Rescan)</li>
<li>Unzip <a href="http://www.cebidae.com/wp-content/uploads/CRPITPaper.zip">this file</a> somewhere</li>
<li>Open <code>CRPITPaper.lyx</code></li>
<li>Modify the file to your hearts content (this one is setup for <a href="http://users.rsise.anu.edu.au/~vishci/">VisHCI 2006</a>)</li>
</ol>
<p>Let me know if this doesn&#8217;t work for you, as it took me some mucking with refreshing Latex and Lyx to get it to work, so I may have missed something in my re-telling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/08/05/how-to-write-a-crpit-paper-in-lyx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Viewing transcribed video with WaveSurfer</title>
		<link>http://www.davidbdean.com/2006/07/26/viewing-transcribed-video-with-wavesurfer/</link>
		<comments>http://www.davidbdean.com/2006/07/26/viewing-transcribed-video-with-wavesurfer/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 05:40:51 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[WaveSurfer]]></category>
		<category><![CDATA[freedback]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[speech]]></category>
		<category><![CDATA[transcription]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/07/26/viewing-transcribed-video-with-wavesurfer/</guid>
		<description><![CDATA[
Did you know that you can use WaveSurfer to view transcribed (or to perform transcription on) videos as well as audio? I do now: just install the plugin available here.
Word of warning tho: It says
Web-based install: In WaveSurfer, select Plug-ins from the File menu. Under Plug-ins available for installation, select video and click install.

I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image346" src="http://www.cebidae.com/wp-content/uploads/wavesurfer.PNG" alt="WaveSurfer" /><br />
Did you know that you can use <a href="http://www.speech.kth.se/wavesurfer/">WaveSurfer</a> to view transcribed (or to perform transcription on) videos as well as audio? I do now: just install the plugin <a href="http://www.speech.kth.se/wavesurfer/video/video.html">available here</a>.</p>
<p>Word of warning tho: It says</p>
<blockquote><p><em>Web-based install</em>: In WaveSurfer, select Plug-ins from the File menu. Under Plug-ins available for installation, select video and click install.
</p></blockquote>
<p>I don&#8217;t know where that is. I have the latest version of Wavesurfer (I just downloaded it) and no such option exists in the file menu. Just follow the manual install instructrions (which I have edited slightly &#8211; in bold)</p>
<blockquote><p><em>Manual installation (Windows)</em>: Download and open <a href="http://www.speech.kth.se/wavesurfer/video.zip">http://www.speech.kth.se/wavesurfer/video.zip</a> . Put the files video.plug and QuickTimeTcl.dll the WaveSurfer plugins directory %HOMEDRIVE%%HOMEPATH%\.wavesurfer\<strong>1.8</strong>\plugins for WaveSurfer <strong>1.8.*</strong>, where HOMEDRIVE and HOMEPATH are Windows environment variables (in most cases the directory will be <strong>C:\Documents and Settings\<em>username</em></strong>\.wavesurfer\<strong>1.8</strong>\plugins). Optionally, also put Video.conf in your configurations directory.</p></blockquote>
<p>UPDATE: I guess this is an example of <a href="http://chris.pirillo.com/2006/06/23/freedbacking/">freedback</a>, so I&#8217;ve added that category/tag. (<a href="http://www.technorati.com/search/freedback">More freedback here</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/07/26/viewing-transcribed-video-with-wavesurfer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a Lyx layout file for IEEE&#8217;s spconf.sty</title>
		<link>http://www.davidbdean.com/2006/07/13/making-a-lyx-layout-file-for-ieees-spconfsty/</link>
		<comments>http://www.davidbdean.com/2006/07/13/making-a-lyx-layout-file-for-ieees-spconfsty/#comments</comments>
		<pubDate>Thu, 13 Jul 2006 05:49:22 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[conference]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[lyx]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/07/13/making-a-lyx-layout-file-for-ieees-spconfsty/</guid>
		<description><![CDATA[Here is a quick howto for writing a Lyx layout file for spconf.sty, a latex style file released by IEEE suitable for most signal processing conferences.
First Create a new layout file called spconf.layout in your Lyx layouts folder (in my case &#8220;C:\Program Files\LyX141\Resources\layouts&#8221;) with the following contents:

#% Do not delete the line below; configure depends [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick howto for writing a <a href="http://www.lyx.org/">Lyx</a> layout file for spconf.sty, a latex style file released by <a href="http://www.ieee.org/">IEEE</a> suitable for most signal processing conferences.</p>
<p>First Create a new layout file called <code>spconf.layout</code> in your Lyx layouts folder (in my case &#8220;C:\Program Files\LyX141\Resources\layouts&#8221;) with the following contents:</p>
<pre>
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article,spconf.sty]{article (spconf)}

Input article.layout

Preamble
        \usepackage{spconf}
EndPreamble
</pre>
<p>This will create a new document layout in lyx called &#8220;article (spconf)&#8221; that will be identical to article, but adds <code>\usepackage{spconf}</code> in the document preamble.</p>
<p>Now we need to fix up some of the header information. spconf uses <code>\name</code> instead of <code>\author</code>, so we&#8217;ll add that to our file:</p>
<pre>
Style Author
        LatexName       name
End
</pre>
<p>And finally, we need to add an affiliation section that uses <code>\address</code> in LaTex, and is used when the <code>\maketitle</code> command is used:</p>
<pre>
Style Affiliation
        LatexType       Command
        LatexName       address
        InTitle         1
End
</pre>
<p>There, that should work. Make sure that <code>spconf.sty</code> is stored where latex can find it (normally the same folder as your lyx file). If you want to download the entire <code>spconf.layout</code> file it is <a href="http://www.cebidae.com/wp-content/uploads/spconf.layout">available here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/07/13/making-a-lyx-layout-file-for-ieees-spconfsty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Redirecting a blogspot blog to Wordpress</title>
		<link>http://www.davidbdean.com/2006/02/24/redirecting-a-blogspot-blog-to-wordpress/</link>
		<comments>http://www.davidbdean.com/2006/02/24/redirecting-a-blogspot-blog-to-wordpress/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 12:41:29 +0000</pubDate>
		<dc:creator>David Dean</dc:creator>
				<category><![CDATA[blogger]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cebidae.com/2006/02/24/redirecting-a-blogspot-blog-to-wordpress/</guid>
		<description><![CDATA[UPDATE: An alternative method that moves more of the smarts to wordpress is available here from Tom Sherman of underscorebleach.net.
In case you haven&#8217;t noticed this blog used to be at cebidae.blogspot.com, but I decided to move it to my own server so I had more control over what I could do, now, and in the [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: An alternative method that moves more of the smarts to wordpress is <a href="http://underscorebleach.net/jotsheet/2006/05/move-blogger-to-wordpress">available here</a> from Tom Sherman of <a href="http://underscorebleach.net/jotsheet/">underscorebleach.net</a>.</p>
<p>In case you haven&#8217;t noticed this blog used to be at cebidae.blogspot.com, but I decided to move it to my own server so I had more control over what I could do, now, and in the future.</p>
<p>Importing the old blog&#8217;s entries was a trivial task as it is build into the wordpress software these days. The main difficulty I was having is how to get people arriving at the old site to come over here.</p>
<p>The main advice appears to be that you should leave your blogspot site there, but redesign so it is clear that you have moved to a new site. I wasn&#8217;t really happy about this, because people are lazy, so I wanted to automatically redirect them to the new site.</p>
<p>There are basically three types of pages you want to redirect from your blogspot address to wherever it is you are going:</p>
<ol>
<li>The main page (/)</li>
<li>Archive pages (/2004_12_01_cebidae_archive.html)</li>
<li>Item pages<br />
(/2004/10/gadget-price-searching-use-staticice.html)</li>
</ol>
<p>I wanted to redirect these three types of pages to the same pages on this site. I managed to get the main page and the item pages working but not the archive pages. Seeing as how most external links either point to the main page or a particular item page, the archive pages are unlikely to be landed on too often, so I chose to just redirect them to the new main page here. If anyone can help me redirect the archive pages correctly, that&#8217;d be great.</p>
<p><strong>Redirecting the main page (and the archive page)</strong></p>
<p>To set up a redirect to &#8220;http://www.cebidae.com&#8221; you need to use the following tags between the &lt;head&gt;  and &lt;/head&gt; in your blogger template</p>
<p><code>&lt;MainOrArchivePage&gt;<br />
&lt;META http-equiv="refresh"<br />
content="3;URL=http://www.cebidae.com"&gt;<br />
&lt;/MainOrArchivePage&gt;</code></p>
<p>MainOrArchivePage makes sure this only happens on  the main or archive pages and the meta tag tells whoever lands here to redirect to http://www.cebidae.com in 3 seconds.</p>
<p><strong>Redirecting the item pages</strong></p>
<p>Obviously if you are going to redirect your visitors to a new site, you need to know the url that they should be going to. This was easy with the main pages, but a bit harder with the item pages. I decided that the best option was to use the built in search on this site to search for entries matching the title of the old entry. To do this you need to insert the following tags after   &lt;/MainOrArchivePage&gt; but still within the  &lt;head&gt;  and &lt;/head&gt; tags:</p>
<p><code>&lt;ItemPage&gt;<br />
&lt;Blogger&gt;<br />
&lt;META http-equiv="refresh"<br />
content="3;URL=http://www.cebidae.com/index.php?s=&lt;$BlogItemTitle$&gt;"&gt;<br />
&lt;/Blogger&gt;<br />
&lt;/ItemPage&gt;</code></p>
<p>ItemPage makes sure this only happens on item pages, and this time the redirection is to a search on the new site for the title of the item on the old. the Blogger tags are required or blogger won&#8217;t evaluate &lt;$BlogItemTitle$&gt;.</p>
<p>I also put a small body section in my template that has a link to the new site in case their browser doesn&#8217;t support redirection:</p>
<p><code>&lt;body&gt;<br />
&lt;br/&gt;&lt;br/&gt;<br />
&lt;MainOrArchivePage&gt;<br />
&lt;p&gt;This page has moved. You can find the new page<br />
&lt;a href="http://www.cebidae.com"  &gt;here&lt;/a&gt;.<br />
You should be redirected in 3 seconds.&lt;/p&gt;<br />
&lt;/MainOrArchivePage&gt;<br />
&lt;Blogger&gt;<br />
&lt;ItemPage&gt;<br />
&lt;p&gt;This page has moved. You can find the new page<br />
&lt;a href="http://www.cebidae.com/index.php?s=&lt;$BlogItemTitle$&gt;"  &gt;here&lt;/a&gt;.<br />
You should be redirected in 3 seconds.&lt;/p&gt;<br />
&lt;/ItemPage&gt;<br />
&lt;/Blogger&gt;<br />
&lt;/body&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidbdean.com/2006/02/24/redirecting-a-blogspot-blog-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
