<?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>qrisper &#187; mod-rewrite</title>
	<atom:link href="http://blog.qrisper.com/tag/mod-rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.qrisper.com</link>
	<description>the making of qrisper.com</description>
	<lastBuildDate>Fri, 14 Aug 2009 22:32:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>To procrastinate is to procreate ideas in your brain</title>
		<link>http://blog.qrisper.com/2009/05/to-procrastinate-is-to-procreate-ideas-in-your-brain/</link>
		<comments>http://blog.qrisper.com/2009/05/to-procrastinate-is-to-procreate-ideas-in-your-brain/#comments</comments>
		<pubDate>Mon, 25 May 2009 03:37:21 +0000</pubDate>
		<dc:creator>Jung Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod-rewrite]]></category>
		<category><![CDATA[nettuts]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[stack overflow]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.qrisper.com/?p=143</guid>
		<description><![CDATA[I don&#8217;t know if this is how it works for other people but the less I think about a problem, the faster I can find a solution for it.  It&#8217;s like anytime I try to figure out a problem through sheer will and forceful brain flexing, I&#8217;m left beaten and frustrated.  But take a game [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if this is how it works for other people but the less I think about a problem, the faster I can find a solution for it.  It&#8217;s like anytime I try to figure out a problem through sheer will and forceful brain flexing, I&#8217;m left beaten and frustrated.  But take a game break, surf the web or complete forget about the problem for a few days and the next time I approach the problem, it&#8217;s like it never was one.  Further evidence that procrastination is <em>the </em>method of creative geniuses?</p>
<p>Anyway, I made a number of breakthroughs during the past few weeks in my quest for the most frickin amazing website on the planet.  First off, I&#8217;m definitely getting more comfortable with ajax, as you can see from the registration validation that I&#8217;ve set up.  Never in my life did I think I&#8217;d be able to create a username and email check.  That was a great moment&#8230;<em>(wipes away a tear).</em> Thanks to <a title="yensdesign" href="http://yensdesign.com/2009/01/how-validate-forms-both-sides-using-php-jquery/">yensdesign.com</a>, <a title="roshans blog" href="http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html">Roshan&#8217;s Blog</a> and <a title="amos" href="http://plasticpast.com/">the professor</a>.</p>
<p>Another pain in the ass was pagination.  I tried a number of techniques found <a title="php pagination" href="http://net.tutsplus.com/tutorials/php/how-to-paginate-data-with-php/#more-2928">here</a>, <a title="jquery pagination" href="http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm">here</a> and a few others.  But either I couldn&#8217;t get it working or simply didn&#8217;t like the implementation.  Finally decided on a pretty simple version of the existing pagination code that I was using.  One thing I&#8217;d like to add is the ability to dynamically hide page links when there are too many&#8230;hoping that will come to me eventually.</p>
<p>I&#8217;m finally making some headway in using mod-rewrite to take control of my urls.  All of the user profile pages can now be access through <strong>qrisper.com/<em>username</em>/</strong>.  Shout out to <a title="one frickin great resource" href="http://stackoverflow.com/users/107427/jung">Stack Overflow</a>, one frickin great resource.  Planning to use mod-rewrite across all of qrisper.com.  One concern is what kind of performance hit I&#8217;m taking using htaccess.  Will need to move that over to the Apache config file eventually.</p>
<p>In addition, a few other minor modifications:</p>
<ul>
<li>sanitized 99% of qrisper.com&#8230; there&#8217;s one or two pages that still need a thorough scrubbing but hoping to have eliminated most of the possibility for any funny business</li>
<li>users can now change their previously submitted answers</li>
<li>a few design/nav tweaks (tweet answer link, what&#8217;s your answer link, updates to answers/skipped/index pages</li>
</ul>
<p>And lastly, I was using this <a title="php dynamic thumbnails" href="http://net.tutsplus.com/videos/screencasts/how-to-dynamically-create-thumbnails/">solution to manage thumbnail images</a> from the always helpful folks at <a title="nettuts" href="http://net.tutsplus.com/">nettuts</a>.  But at point, I broke it.  Plus, I wasn&#8217;t complete satisfied with the quality of the thumbnails.  So now I&#8217;m using the <a title="shifting pixel" href="http://shiftingpixel.com/2008/03/03/smart-image-resizer/">ridiculously awesome Smart Image Resizer by Joe Lencioni</a>.</p>
<p>That was a meaty update.  Next up, a city filter for local questions on <a title="qrisper" href="http://qrisper.com">qrisper.com</a>!</p>
<p><strong>Update:</strong> Ha, speaking of which&#8230;<a title="procrastinate yay" href="http://nymag.com/news/features/56793/?imw=Y&amp;f=most-viewed-24h5">In Defense of Distraction</a>.</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F05%2Fto-procrastinate-is-to-procreate-ideas-in-your-brain%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F05%2Fto-procrastinate-is-to-procreate-ideas-in-your-brain%2F" height="61" width="51" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.qrisper.com/2009/05/to-procrastinate-is-to-procreate-ideas-in-your-brain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.227 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2009-09-02 23:02:39 -->
