<?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/"
	>

<channel>
	<title>Ryan Pfister &#187; Code</title>
	<atom:link href="http://www.ryanpfister.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryanpfister.com</link>
	<description>Programmer, Pontificator, Prognosticator</description>
	<pubDate>Sun, 29 Jan 2012 17:01:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding a subject to a text message sent to an e-mail address</title>
		<link>http://www.ryanpfister.com/2008/08/adding-a-subject-to-a-text-message-sent-to-an-e-mail-address/</link>
		<comments>http://www.ryanpfister.com/2008/08/adding-a-subject-to-a-text-message-sent-to-an-e-mail-address/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 02:06:41 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.ryanpfister.com/?p=28</guid>
		<description><![CDATA[Here&#8217;s a tip for text messengers that I discovering when configuring Remember The Milk for my cell phone:
If you are sending a text message to an e-mail address and put words in parentheses at the start of your message, they will show up as the subject of the e-mail.
For example:
(this is the subject) this is [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tip for text messengers that I discovering when configuring Remember The Milk for my cell phone:</p>
<p>If you are sending a text message to an e-mail address and put words in parentheses at the start of your message, they will show up as the subject of the e-mail.</p>
<p>For example:<br />
<code>(this is the subject) this is the body</code></p>
<p>I haven&#8217;t tested this on other phones, but it works on my old Samsung phone on the Verizon Wireless network. I spent quite a bit of time Googling this before I just tried sending an email to my cell phone with a subject and then copied the syntax of how it appeared.</p>
<p>This feature is especially handy when using <a href="http://www.rememberthemilk.com">Remember The Milk&#8217;</a>s &#8220;e-mail a task&#8221; feature. RTM gives you a unique e-mail address. Any e-mails sent to the address will be added to your task list. According to <a href="http://www.rememberthemilk.com/help/answers/sending/emailinbox.rtm">the documentation</a>, you&#8217;re supposed to put the task name as the subject and any other information (e.g. due date) in the body.</p>
<p>My problem was I wanted the tasks to show up as due today, rather than due anytime. So, using the text message subject syntax, I wrote:</p>
<p><code>(remember the milk) due: today</code></p>
<p>Another alternative is to use the twitter interface for RTM, but it stopped working for me recently.</p>
<p>A productivity tip: Store the RTM e-mail as &#8220;@Task&#8221; in your phone contact list. That way, you won&#8217;t have to scroll through your contacts list to get to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpfister.com/2008/08/adding-a-subject-to-a-text-message-sent-to-an-e-mail-address/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MT4 Right Fields to Custom Fields Conversion with SQL</title>
		<link>http://www.ryanpfister.com/2008/05/mt4-right-fields-to-custom-fields-conversion-with-sql/</link>
		<comments>http://www.ryanpfister.com/2008/05/mt4-right-fields-to-custom-fields-conversion-with-sql/#comments</comments>
		<pubDate>Wed, 07 May 2008 21:21:38 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[movable type]]></category>

		<guid isPermaLink="false">http://www.ryanpfister.com/blog/?p=15</guid>
		<description><![CDATA[Here&#8217;s a script to convert your Movable Type RightFields data to Custom Fields if your Right Fields data is stored in a SQL table. It is a modification of Chad Everett&#8217;s RF2CF plugin, which is designed for RightFields data stored in MT&#8217;s PluginData repository.
Download it here.
The folder in that zip file should be placed in [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a script to convert your Movable Type RightFields data to Custom Fields if your Right Fields data is stored in a SQL table. It is a modification of Chad Everett&#8217;s <a href="http://cxliv.org/2007/12/17/convert_rightfields_data_to_customfields.php">RF2CF plugin</a>, which is designed for RightFields data stored in MT&#8217;s PluginData repository.</p>
<p><a href="/experiments/rf2cf_sql.zip">Download it here</a>.</p>
<p>The folder in that zip file should be placed in your MT4 plugins directory. Then follow the instructions at the top of the rf2cf_sql.pl file to set up the conversion.</p>
<p>The code isn&#8217;t very pretty and it requires a lot of manual mapping of fields right now. However, since you only have to do the conversion once, I don&#8217;t think the lack of automation is a big deal. Of course, I recommend you back up your database before you try it. And I&#8217;m making no warranty it will actually work for you &#8212; I just hope it will set you on the right track to getting the conversion done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpfister.com/2008/05/mt4-right-fields-to-custom-fields-conversion-with-sql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting Right Fields when upgrading MT 3 to MT 4</title>
		<link>http://www.ryanpfister.com/2008/05/converting-right-fields-when-upgrading-mt-3-to-mt-4/</link>
		<comments>http://www.ryanpfister.com/2008/05/converting-right-fields-when-upgrading-mt-3-to-mt-4/#comments</comments>
		<pubDate>Wed, 07 May 2008 02:45:09 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[movable type]]></category>

		<guid isPermaLink="false">http://www.ryanpfister.com/blog/?p=13</guid>
		<description><![CDATA[Last week, the incoming Daily Collegian Web editor and I put in some very late hours upgrading our publishing system from Movable Type 3.3 to MT 4. We had a few hiccups; I&#8217;ll document them here in case any one else runs into the same thing.
Why we upgraded: MT 3.3 was getting slowwwwww. And worse, [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, the incoming Daily Collegian Web editor and I put in some very late hours upgrading our publishing system from Movable Type 3.3 to MT 4. We had a few hiccups; I&#8217;ll document them here in case any one else runs into the same thing.</p>
<p><strong>Why we upgraded: </strong>MT 3.3 was getting slowwwwww. And worse, it looked like it was getting slower the more entries we added &#8212; indicating the problem might get worse with time. I have a hunch that MT wasn&#8217;t writing the SQL queries correctly to properly leverage indexes. When I installed MT 4, our entry build times were cut almost in half.</p>
<p>The main reason we didn&#8217;t upgrade earlier was that on MT 3.3, we were using <a href="http://www.staggernation.com/mtplugins/RightFields/">RightFields</a>, which hasn&#8217;t been (and from what it looks like, might never be) upgraded for MT4. I&#8217;ve been waiting for it since September and it hasn&#8217;t happened. I recently discovered, however, that you can convert RightFields data to CustomFields, which is available for MT4. More on the conversion process later.</p>
<p><strong>How to get MT4 with CustomFields: </strong>MT 4 is open source, so we thought it wouldn&#8217;t matter that our paid support contract from MT 3.3 was almost up. <strong>Wrong. </strong>Turns out that the &#8220;CustomFields&#8221; plugin is only available with the &#8220;professional pack&#8221; (i.e. paid) version. Seems to me that an open source version of Custom Fields is definitely needed.</p>
<p>So I poked around the MT Web site and found out that the education license that we have can be upgraded for free to MT 4 as long as we have a current support contract. No word on how exactly to obtain that upgrade. So I searched around again to find the account info from when we bought MT last May. I logged onto that system and filed a support ticket. At first they told me I needed an upgraded support contract, but after I complained they added it to our account for free.</p>
<p><strong>Doing the RightFields conversion:</strong> We were storing our RightFields data in an SQL table. The only documentation I could find about migrating to CustomFields was a blog entry and accompanying script called <a href="http://cxliv.org/2007/12/17/convert_rightfields_data_to_customfields.php">RF2CF</a>. The plugin installed and showed up fine in MT 4, but it didn&#8217;t work. I think this is because the plugin was designed for RightFields that was using PluginData instead of an SQL table.</p>
<p><strong>The hack: </strong>I took out most of the code from RF2CF and wrote code to manually connect to the database. I&#8217;ve asked Chad Everett, who wrote RF2CF, for permission to post my changes. (<strong>UPDATE: </strong>I got permission. <a href="http://www.ryanpfister.com/blog/2008/05/mt4-right-fields-to-custom-fields-conversion-with-sql/">Check out the code</a>.) One problem I had was that custom fields apparently wants each blog to have its own set of fields, so you can&#8217;t reuse extra fields from one blog to the next.</p>
<p><strong>The results:</strong> While build times are much faster, MT itself is running a bit slower. Loading pages like the &#8220;New Entry&#8221; page now takes longer than it used to. Not sure why this is; perhaps a Windows thing. I tried installing MT4 on a FreeBSD server and it&#8217;s speeding along just fine.</p>
<p>Leave a comment if you&#8217;ve had any similar issues or you have questions about what I did.</p>
<p><strong>Side note: </strong>PluginData is really annoying. If CustomFields used SQL data too, I could have written a simple script &#8212; or even used an Excel Spreadsheet &#8212; to do the conversion. No MT knowledge required. But since PluginData is stored in binary, I pretty much have to use MT&#8217;s code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryanpfister.com/2008/05/converting-right-fields-when-upgrading-mt-3-to-mt-4/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

