<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My Other Blog is a Ferrari</title>
	<atom:link href="http://richpav.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://richpav.wordpress.com</link>
	<description>This is my work notebook. It's as unorganized as my desk.</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='richpav.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My Other Blog is a Ferrari</title>
		<link>http://richpav.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://richpav.wordpress.com/osd.xml" title="My Other Blog is a Ferrari" />
	<atom:link rel='hub' href='http://richpav.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Freezing Rails to a Previous version</title>
		<link>http://richpav.wordpress.com/2009/12/08/freezing-rails-to-a-previous-version/</link>
		<comments>http://richpav.wordpress.com/2009/12/08/freezing-rails-to-a-previous-version/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 04:33:27 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/?p=39</guid>
		<description><![CDATA[When you do rake rails:freeze:gems it will copy the most recent version of rails to your project&#8217;s vendor/rails directory. But what if you&#8217;re developing with an older version of rails? rake VERSION=2.2.2 rails:freeze:gems<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=39&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you do rake rails:freeze:gems it will copy the most recent version of rails to your project&#8217;s vendor/rails directory. But what if you&#8217;re developing with an older version of rails?</p>
<p>rake VERSION=2.2.2 rails:freeze:gems</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=39&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2009/12/08/freezing-rails-to-a-previous-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Drawing a square in Java</title>
		<link>http://richpav.wordpress.com/2007/10/01/drawing-a-square-in-java/</link>
		<comments>http://richpav.wordpress.com/2007/10/01/drawing-a-square-in-java/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 05:07:26 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[head first java]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2007/10/01/drawing-a-square-in-java/</guid>
		<description><![CDATA[O&#8217;Reilly&#8217;s Head First Java is a good book, but it doesn&#8217;t do enough hand holding for my tastes. I need more repetition before something sinks in. For example, on page 364, basically  it says, &#8220;It&#8217;s easy to add a square to a screen, just make your own widget!&#8221; Then it shows you how to make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=38&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>O&#8217;Reilly&#8217;s Head First Java is a good book, but it doesn&#8217;t do enough hand holding for my tastes. I need more repetition before something sinks in. For example, on page 364, basically  it says, &#8220;It&#8217;s easy to add a square to a screen, just make your own widget!&#8221; Then it shows you how to make a widget:</p>
<p>import java.awt.*;<br />
import javax.swing.*;</p>
<p>//OK, that part I understand.</p>
<p>class MyDrawPanel extends JPanel {</p>
<p>//JPanel is a widget that can be added to a frame just like the button in a previous example in the book.</p>
<p>public void paintComponent(Graphics g) {</p>
<p>//Here&#8217;s what I&#8217;m guessing this means. We&#8217;re overriding the paintComponent method in JPanel, and we&#8217;re passing it a Graphics method as an argument. Where this comes from, I don&#8217;t know, somewhere in java.awt.* or javax.swing.*</p>
<p>g.setColor(Color.orange);<br />
g.fillRect(20,50,100,100);</p>
<p>}</p>
<p>}</p>
<p>So that will compile as javac MyDrawPanel.java.</p>
<p>But, what the book doesn&#8217;t explain in big red crayon so an idiot like me can understand is that you have to create another class to make the window that contains the frame that you&#8217;ll stick this widget into. The authors assume that if they explain something once, hell, you ought to be able to figure it all out by now, and the lack of explanation in cases like this makes me wish I could take a course in Java in a real school where I could ask my stupid questions to a real live brainy (but patient) person and get answers.</p>
<p>To get the above code to do anything useful, you have to create this other class too, as a separate file:</p>
<p>import javax.swing.*;<br />
import java.awt.*;</p>
<p>public class SimpleGuiRectangle {</p>
<p>//You can call this class anything you want. It&#8217;s not part of the Java library, you&#8217;re creating it using bits and pieces from awt and swing.</p>
<p>public static void main (String[] args) {</p>
<p>//You know what, either they never explain what that (String[] args) means or I was sleeping when I read it. It&#8217;s so that you can call arguments when you run the class like &#8220;java SimpleGuiRectangle -v -h &#8211;chuckyoufarley&#8221;</p>
<p>MyDrawPanel rectangle;</p>
<p>// You&#8217;re setting up the variable that will contain an instance of the MyDrawPanel class you made up there.</p>
<p>SimpleGuiRectangle gui = new SimpleGuiRectangle();</p>
<p>// This is a recursive thing? Inside the class you&#8217;re making, you&#8217;re creatubg a instance of it. Confuses the heck out of me still.</p>
<p>JFrame frame = new JFrame();</p>
<p>// The JFrame is the outer part of a Java window. The actual guts are in the contentPane that&#8217;s inside the JFrame.</p>
<p>rectangle = new MyDrawPanel();</p>
<p>//OK, this is an instance of that class you copied from page 364 and complied. Now you&#8217;re actually going to do something useful with it.</p>
<p>frame.getContentPane().add(rectangle);</p>
<p>//What this means (I think) is getContentPane is a method in the JFrame class. It has a method called &#8220;add&#8221; which takes an object and adds it to the pane. So instead of adding a bigass button like they showed in the book, you&#8217;re adding an instance of thar rectangle class you made.</p>
<p>frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</p>
<p>//You have to put that in so you&#8217;ll be able to actually close the damn window</p>
<p>frame.setSize(300,300);<br />
frame.setVisible(true);</p>
<p>}</p>
<p>}</p>
<p>So you compile &#8220;javac SimpleGuiRectangle.java&#8221; then run &#8220;java SimpleGuiRectangle and for all your trouble you get a 300 x 300 window with an orange square in it. Seems like a lot of frikkin&#8217; work to do something so simple, and it makes me wonder why Java is described as being supposedly so quick and easy. Or maybe I&#8217;m just a really slow learner.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=38&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2007/10/01/drawing-a-square-in-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>SOBI and JoomFish</title>
		<link>http://richpav.wordpress.com/2007/08/29/sobi-and-joomfish/</link>
		<comments>http://richpav.wordpress.com/2007/08/29/sobi-and-joomfish/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 07:00:35 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2007/08/29/sobi-and-joomfish/</guid>
		<description><![CDATA[SOBI is the directory plugin I found. To be able to translate the categories, download the JoomFish extension and copy the file to /administrator/components/com_joomfish/contentelements/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=36&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SOBI is the directory plugin I found.</p>
<p>To be able to translate the categories, download the JoomFish extension and </p>
<p>copy the file to /administrator/components/com_joomfish/contentelements/</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=36&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2007/08/29/sobi-and-joomfish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Joomla 1.0.13 and JoomFish to work in Japanese</title>
		<link>http://richpav.wordpress.com/2007/08/29/getting-joomla-1013-and-joomfish-to-work-in-japanese/</link>
		<comments>http://richpav.wordpress.com/2007/08/29/getting-joomla-1013-and-joomfish-to-work-in-japanese/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 03:45:55 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2007/08/29/getting-joomla-1013-and-joomfish-to-work-in-japanese/</guid>
		<description><![CDATA[I forget how I installed JoomFish, nor did I document the process, but it&#8217;s working. The two problems I encountered were: Japanese translated text that I inputted was displaying properly, but when I viewed the source of the page I could see that it was actually encoded in escape characters, like #1234#4758#2847. Every single, goddamn [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=35&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I forget how I installed JoomFish, nor did I document the process, but it&#8217;s working. The two problems I encountered were:</p>
<ol>
<li>Japanese translated text that I inputted was displaying properly, but when I viewed the source of the page I could see that it was actually encoded in escape characters, like #1234#4758#2847.</li>
<li>Every single, goddamn time I entered a new translation via the administrator interface, the administrator session would be lost and I&#8217;d have to log back in again.</li>
</ol>
<p>Here&#8217;s the solution to the first problem:</p>
<p><a href="http://www.joomfish.net/how-to-.../joom-fish-encodings-and-utf-8.html" title="http://www.joomfish.net/how-to-.../joom-fish-encodings-and-utf-8.html">http://www.joomfish.net/how-to-&#8230;/joom-fish-encodings-and-utf-8.html</a></p>
<p>Namely, to set the charset meta tag in the HTML header.</p>
<p>The second problem was caused by a bugfix in version 1.0.13 apparently causing some problems with backwards compatibility. I found the solution in this thread:</p>
<p><a href="http://joomlacode.org/gf/project/joomfish/forum/?action=ForumBrowse&amp;forum_id=755&amp;_forum_action=ForumMessageBrowse&amp;thread_id=6282" title="http://joomlacode.org/gf/project/joomfish/forum/?action=ForumBrowse&amp;forum_id=755&amp;_forum_action=ForumMessageBrowse&amp;thread_id=6282">http://joomlacode.org/gf/project/joomfish/forum/?action=ForumBrowse&amp;forum_id=755&amp;_forum_action=ForumMessageBrowse&amp;thread_id=6282</a></p>
<p>In that forum thread there&#8217;s a link to a new administrator/index2.php file to replace the broken one in the core.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=35&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2007/08/29/getting-joomla-1013-and-joomfish-to-work-in-japanese/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>One year from now</title>
		<link>http://richpav.wordpress.com/2006/08/28/one-year-from-now/</link>
		<comments>http://richpav.wordpress.com/2006/08/28/one-year-from-now/#comments</comments>
		<pubDate>Mon, 28 Aug 2006 05:48:16 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">https://richpav.wordpress.com/2006/08/28/one-year-from-now/</guid>
		<description><![CDATA[To create a date one year from now: require &#8216;date&#8217; next_year = Date.today &#62;&#62; 12<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=33&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To create a date one year from now:</p>
<p>require &#8216;date&#8217;<br />
next_year = Date.today &gt;&gt; 12</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=33&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/08/28/one-year-from-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>fixing FCGI on Dreamhost</title>
		<link>http://richpav.wordpress.com/2006/08/23/fixing-fcgi-on-dreamhost/</link>
		<comments>http://richpav.wordpress.com/2006/08/23/fixing-fcgi-on-dreamhost/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 06:12:08 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://richpav.wordpress.com/2006/08/23/fixing-fcgi-on-dreamhost/</guid>
		<description><![CDATA[To get rid of the 500 server errors: http://convergentarts.com/pages/fastcgi There&#8217;s also this but I didn&#8217;t use it. http://work.alexyoung.org/archives/102/dreamhost-and-rails-500-errors<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=32&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To get rid of the 500 server errors:</p>
<p>http://convergentarts.com/pages/fastcgi</p>
<p>There&#8217;s also this but I didn&#8217;t use it.</p>
<p>http://work.alexyoung.org/archives/102/dreamhost-and-rails-500-errors</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=32&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/08/23/fixing-fcgi-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Handy rake commands</title>
		<link>http://richpav.wordpress.com/2006/05/29/handy-rake-commands/</link>
		<comments>http://richpav.wordpress.com/2006/05/29/handy-rake-commands/#comments</comments>
		<pubDate>Mon, 29 May 2006 03:55:24 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2006/05/29/handy-rake-commands/</guid>
		<description><![CDATA[rake db:schema:dump Create a db/schema.rb file that can be portably used against any DB supported by AR rake log:clear Truncates all *.log files in log/ to zero bytes There&#8217;s an excellent cheat sheet here: http://blog.nanorails.com/pages/rails_1.1_cheat_sheet<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=31&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>rake db:schema:dump Create a db/schema.rb file that can be portably used against any DB supported by AR</p>
<p>rake log:clear Truncates all *.log files in log/ to zero bytes</p>
<p>There&#8217;s an excellent cheat sheet here:</p>
<p><a href="http://blog.nanorails.com/pages/rails_1.1_cheat_sheet">http://blog.nanorails.com/pages/rails_1.1_cheat_sheet</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=31&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/05/29/handy-rake-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Formatting time strings</title>
		<link>http://richpav.wordpress.com/2006/05/22/formatting-time-strings/</link>
		<comments>http://richpav.wordpress.com/2006/05/22/formatting-time-strings/#comments</comments>
		<pubDate>Mon, 22 May 2006 03:17:05 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2006/05/22/formatting-time-strings/</guid>
		<description><![CDATA[http://www.rubycentral.com/ref/ref_c_time.html#strftime<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=30&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">http://www.rubycentral.com/ref/ref_c_time.html#strftime</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=30&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/05/22/formatting-time-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Localization</title>
		<link>http://richpav.wordpress.com/2006/05/19/localization/</link>
		<comments>http://richpav.wordpress.com/2006/05/19/localization/#comments</comments>
		<pubDate>Fri, 19 May 2006 10:12:15 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2006/05/19/localization/</guid>
		<description><![CDATA[http://www.ruby-forum.com/topic/64948#74373 Here is a sample of application.rb: require 'gettext/rails' class ApplicationController &#60; ActionController::Base prepend_before_filter :default_locale def default_locale if (cookies["lang"].nil? or cookies["lang"].empty?) GetText.locale = "zh_CN" else GetText.locale = cookies["lang"] end end init_gettext "yourapp" end<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=29&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://www.ruby-forum.com/topic/64948#74373</p>
<pre>Here is a sample of application.rb:

require 'gettext/rails'
class ApplicationController &lt; ActionController::Base
  prepend_before_filter :default_locale
  def default_locale
    if (cookies["lang"].nil? or cookies["lang"].empty?)
      GetText.locale = "zh_CN"
    else
      GetText.locale = cookies["lang"]
    end
  end
  init_gettext "yourapp"
end


</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=29&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/05/19/localization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
		<item>
		<title>Reorganizing Schools &amp; Courses</title>
		<link>http://richpav.wordpress.com/2006/05/15/reorganizing-schools-courses/</link>
		<comments>http://richpav.wordpress.com/2006/05/15/reorganizing-schools-courses/#comments</comments>
		<pubDate>Mon, 15 May 2006 08:12:22 +0000</pubDate>
		<dc:creator>richpav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richpav.wordpress.com/2006/05/15/reorganizing-schools-courses/</guid>
		<description><![CDATA[After seeing how schools organize their programs, it looks like I need to re-organize how I store the relevant data 1. Schools: In the school table I&#8217;ll keep track of: what languages taught (language_id) what kinds of courses taught (course_type_id) These two columns will actually be join tables, since each school will not have a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=28&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After seeing how schools organize their programs, it looks like I need to re-organize how I store the relevant data</p>
<p>1. Schools: In the school table I&#8217;ll keep track of:</p>
<ul>
<li>what languages taught (language_id)
</li>
<li>what kinds of courses taught (course_type_id)
</li>
</ul>
<p>These two columns will actually be join tables, since each school will not have a set number of languages or course types they teach, and also because the total number of languages and course types across all schools will change. By using join tables it&#8217;ll be easier to add new languages and course types.</p>
<p>A second benefit will be that the it&#8217;ll become easier to implement the pull-down search menus that are giving me so much trouble, since now all the data needed to create the pull-down menus will be in only one table instead of being spread between the schools &amp; courses tables.</p>
<p>The drawback will be that the meta-information about what languages and types of courses each school offers will not be directly linked to the actual courses the school offers. For example, it might be possible for a school to say they offer courses in, say, Chinese and/or business conversation, but not actually offer any such courses. But the chances of that happening are slim. I&#8217;ll make sure that when school administrators log in, they&#8217;ll see an overview of their school&#8217;s info, and hopefully they&#8217;ll notice anything outdated.</p>
<p>2. Courses table will have:</p>
<ul>
<li>id
</li>
<li>school_id</li>
<li>language_id</li>
<li>title_en</li>
<li>title_ja
</li>
<li>description_en</li>
<li>description_ja</li>
<li>
</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richpav.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richpav.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richpav.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richpav.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richpav.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richpav.wordpress.com&amp;blog=7300&amp;post=28&amp;subd=richpav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richpav.wordpress.com/2006/05/15/reorganizing-schools-courses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56dbd1b50ccb0b2544da6c57cd95f04f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richpav</media:title>
		</media:content>
	</item>
	</channel>
</rss>
