<?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; php</title>
	<atom:link href="http://blog.qrisper.com/tag/php/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>the 4th iteration of qrisper</title>
		<link>http://blog.qrisper.com/2009/04/the-4th-iteration-of-qrisper/</link>
		<comments>http://blog.qrisper.com/2009/04/the-4th-iteration-of-qrisper/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 18:13:57 +0000</pubDate>
		<dc:creator>Jung Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[disqus]]></category>
		<category><![CDATA[facebook connect]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.qrisper.com/?p=104</guid>
		<description><![CDATA[For the none of you that frequent this blog, I&#8217;m sure you&#8217;ve noticed the change to the design.  For some reason, Wordpress themes felt so foreign to me.  But I wasn&#8217;t feeling the one I had before.  So I decided to take a crack at building a theme that incorporated the look of qrisper.  Wasn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>For the none of you that frequent this blog, I&#8217;m sure you&#8217;ve noticed the change to the design.  For some reason, Wordpress themes felt so foreign to me.  But I wasn&#8217;t feeling the one I had before.  So I decided to take a crack at building a theme that incorporated the look of qrisper.  Wasn&#8217;t too bad&#8230;just had to navigate through all of the Wordpress PHP.      Actually learned a couple of things about managing browser discrepancies by looking at how theme developers dealt with them.</p>
<p>Which brings me to IE7.  At some point, qrisper got totally broken on IE7.  Ended up using the * hack in my CSS files, which now won&#8217;t validate.  To that I say fuggem.  Rules are meant to be broken.</p>
<p>The development theme for the past week was spring cleaning.  I consolidated a number of pages, modularized my CSS (as much as I could), cleaned up and moved all my js files to the footer and tidied up all of my control/view files after the redesign.  qrisper just feels lighter to me now, although there wasn&#8217;t any noticeable improvement in performance.</p>
<p>A couple of new/updated pages:</p>
<ul>
<li>created a personalized 404 page&#8230;heard it&#8217;s a good thing to have</li>
<li>redid the splash page screenshots after the layout redesign&#8230;but need to redo them yet again</li>
<li>added Disqus comments to all answer pages.  I had comments in the pre-alpha version of qrisper but took them out because of poor site.  Still kinda slow but the ability to sign in via Facebook Connect was irresistable.  Too bad that ain&#8217;t working&#8230;can&#8217;t figure out what I&#8217;m doing wrong</li>
<li>Tweaked my existing autocomplete functionality&#8230;basically made it look nicer.  Only thing missing now is to add keyboard navigation functionality.</li>
</ul>
<p>Next up on my list is security and validation.  I&#8217;m already using sanitize classes to filter out all user input but I want to add additional layers of security.  Also want to incorporate jquery into the validation process so that users have a clear sense of what&#8217;s going on.</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%2F04%2Fthe-4th-iteration-of-qrisper%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F04%2Fthe-4th-iteration-of-qrisper%2F" height="61" width="51" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.qrisper.com/2009/04/the-4th-iteration-of-qrisper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow and steady wins the race</title>
		<link>http://blog.qrisper.com/2009/02/slow-and-steady-wins-the-race/</link>
		<comments>http://blog.qrisper.com/2009/02/slow-and-steady-wins-the-race/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 04:37:48 +0000</pubDate>
		<dc:creator>Jung Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[simplepie]]></category>

		<guid isPermaLink="false">http://blog.qrisper.com/?p=60</guid>
		<description><![CDATA[Wow, lots of changes this week. First, I decided to remove all ads from qrisper.  Figured I wasn&#8217;t going to be making money that way any time soon.  So why clutter up the site?
Removing the ads gave me some room to play around with.  So I changed the content and layout a bit, primarily by [...]]]></description>
			<content:encoded><![CDATA[<p><a title="favorite nes game" href="http://qrisper.com/answers/favorite-nes-game/"><img class="alignright size-medium wp-image-62" title="favorite nes game" src="http://blog.qrisper.com/wp-content/uploads/2009/02/nes-300x181.gif" alt="favorite nes game" width="300" height="181" /></a>Wow, lots of changes this week. First, I decided to remove all ads from qrisper.  Figured I wasn&#8217;t going to be making money that way any time soon.  So why clutter up the site?</p>
<p>Removing the ads gave me some room to play around with.  So I changed the content and layout a bit, primarily by removing the leaderboard section.  I also gave search its own tab and removed the searchbar from the page.  And I moved the recent answers into the search tab and added categories to the left column.  After chewing on it for a bit, I think I&#8217;m going to bring back the search bar&#8230;just need to figure out where to put it.</p>
<p>Had a couple of duh moments.  I was maintaining duplicate files with slightly different content for logged in/not logged in users when I realized that a couple of PHP if statements could swap out the content using the session id.  Yeah, duh.  Doesn&#8217;t end there folks!</p>
<p>I was using <a href="http://simplepie.org/">Simplepie</a> to pull the latest q&amp;a&#8217;s from my database.  But then I realized, why the heck am I not pulling the data directly from my database instead of using my own RSS feed?  Umm, beats the heck out of me.  Anyway, changed that.  Progress!  Slow but tangible.</p>
<p>I didn&#8217;t forget about the non-existent logged in users out there!  The right column will become the exclusive domain for the logged in user.  Added some stats (questions answered, skipped, remaining, etc) so that users can keep track of their progress.  Gonna be adding a lot more exciting stuff so stay tuned!</p>
<p>Furthermore, the main questions page was modified to  focus is more on the users answers.  I came to the conclusion that I need build two very different qrispers &#8211; one for folks seeking answers, another for folks seeking questions.  And with that, qrisper just became a lot more complex.</p>
<p>I&#8217;ve been meaning to write a few thought pieces on where qrisper is headed.  Read a couple of interesting blog posts that I plan to respond to.  Hopefully some time next week.</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%2F02%2Fslow-and-steady-wins-the-race%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F02%2Fslow-and-steady-wins-the-race%2F" height="61" width="51" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.qrisper.com/2009/02/slow-and-steady-wins-the-race/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>With great power comes great responsibility</title>
		<link>http://blog.qrisper.com/2009/02/41/</link>
		<comments>http://blog.qrisper.com/2009/02/41/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 17:23:41 +0000</pubDate>
		<dc:creator>Jung Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[nettuts]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.qrisper.com/?p=41</guid>
		<description><![CDATA[
Decided to take a breather on the php to focus on the interface.  Actually, the php issue was interface related so I guess what I really mean is focus on making qrisper a bit flashier looking.
The landing page was getting a little noisy so I decided to put the registration into a modal window. I [...]]]></description>
			<content:encoded><![CDATA[<p><a title="best beach" href="http://qrisper.com/answers/best-beach-in-the-world/"><img class="size-medium wp-image-46 alignright" title="best beach in the world" src="http://blog.qrisper.com/wp-content/uploads/2009/02/beach-300x181.gif" alt="best beach in the world" width="300" height="181" /></a></p>
<p>Decided to take a breather on the php to focus on the interface.  Actually, the php issue was interface related so I guess what I really mean is focus on making qrisper a bit flashier looking.</p>
<p>The landing page was getting a little noisy so I decided to put the registration into a modal window. I used jquery and followed a tutorial from <a title="Popup Window" href="http://yensdesign.com/tutorials/popupjquery/">yensdesign.com</a>.  Implementation was pretty straightforward. One thing I want to tinker with is the location of the window.  It looks a bit off-center&#8230;I noticed that on the tutorial as well.  If anyone can see the reason why, please holler (code below).</p>
<pre>function centerPopup(){

        var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $j("#popupSignup").height();
	var popupWidth = $j("#popupSignup").width();

	$j("#popupSignup").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
}</pre>
<p>I&#8217;m using jquery with prototype so I needed to make sure that I included jquery&#8217;s noconflict clause and change the $ variable for all jquery scripts (hence the $j).  There&#8217;s so much information out there about jquery that it&#8217;s hard not to use it.  But now that I have the power, I need to be responsible and practice restraint.  qrisper&#8217;s getting a little large around the waist from overindulging on all of those image files. Found this site on <a title="web optimization" href="http://www.websiteoptimization.com/">web optimization</a>, telling me that qrisper needs to go on a  diet.</p>
<p>Also added a little feedback button&#8230;meh&#8230;looks alright.  The button made me realize that I&#8217;m digging myself into a trap.  I am maintaining slightly different versions of the same page.  Which version the users see depends on whether or not they&#8217;re logged in.  Decided that I could probably use a php if statement to swap out includes depending on whether or not a session id exists.</p>
<p>Wanting to trim the fat further, I went to clean up my css files and optimize them with a few new tricks I learned.  Big mistake that was.  Spent a few hours fixing all of the damage I caused.  I found the <a title="css optimization" href="http://www.thefloatingfrog.co.uk/frog-blog/2008/09/10-css-shorthand-techniques-youll-use-everyday/">tips</a> from <a title="Bone Structure" href="http://bonestructure.com/blog/">David&#8217;s</a> <a title="dbone webdev" href="http://webdevconversations.blogspot.com/">old blog</a>.  Actually found a number of good resources&#8230;a few of which I used to fix a few issue that had been bugging me.</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%2F02%2F41%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F02%2F41%2F" height="61" width="51" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.qrisper.com/2009/02/41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conjunction junction what&#8217;s your function?</title>
		<link>http://blog.qrisper.com/2009/02/conjunction-junction-whats-your-function/</link>
		<comments>http://blog.qrisper.com/2009/02/conjunction-junction-whats-your-function/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 23:04:01 +0000</pubDate>
		<dc:creator>Jung Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[affiliates]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.qrisper.com/?p=25</guid>
		<description><![CDATA[Haven&#8217;t made much progress in the ajax front.  Stuck with a couple of php issues that I need to resolve first.  Fixing those two things should drastically change how users navigate qrisper.
In the meantime, I&#8217;ve been taking care of a couple of other things:

created the first drafts for the About Us page and the Sitemap [...]]]></description>
			<content:encoded><![CDATA[<p><a title="natural disasters" href="http://qrisper.com/answers/which-natural-disaster-are-you-most-afraid-of/"><img class="size-medium wp-image-34 alignright" title="Fear natural disasters" src="http://blog.qrisper.com/wp-content/uploads/2009/02/disaster1-300x200.gif" alt="Fear natural disasters" width="300" height="200" /></a>Haven&#8217;t made much progress in the ajax front.  Stuck with a couple of php issues that I need to resolve first.  Fixing those two things should drastically change how users navigate qrisper.</p>
<p>In the meantime, I&#8217;ve been taking care of a couple of other things:</p>
<ul>
<li>created the first drafts for the About Us page and the Sitemap (plain HTML, not XML)</li>
<li>spiffed up the images in the What? tab&#8230;I might redo them still</li>
<li>changed the content in the Skipped tab.  Instead of a form listing all of the questions that users skipped, it simply becomes another pool of questions that users can choose to answer or skip again.</li>
<li>made enough changes to score a B on YSlow.  But feels like the sites actually slower&#8230;</li>
<li>added the Digg this and Yahoo buzz icons to all results pages.  But I added them only to the non-logged in pages.  I&#8217;m sure this will need to change.</li>
</ul>
<p>I&#8217;ve been playing with affiliate programs and adding a few ads here and there.  Figured out a strategy to diversify my ads portfolio.  Now all I need are users to view and click on those suckers.</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%2F02%2Fconjunction-junction-whats-your-function%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.qrisper.com%2F2009%2F02%2Fconjunction-junction-whats-your-function%2F" height="61" width="51" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.qrisper.com/2009/02/conjunction-junction-whats-your-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.248 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2009-10-04 11:16:57 -->
