<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Irythia - Reflections</title>
	
	<link>http://reflections.irythia.com</link>
	<description>Ramblings and ravings on technology, gaming, anime, manga, university, life, news, science, television shows and more.</description>
	<lastBuildDate>Sun, 07 Mar 2010 04:25:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Irythia-Reflections" /><feedburner:info uri="irythia-reflections" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Guild Wars Community Event: Maragon</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/V60ngDXQBjM/</link>
		<comments>http://reflections.irythia.com/2010/03/06/guild-wars-community-event-maragon/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 04:25:33 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Guild Wars]]></category>
		<category><![CDATA[Maragon]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=228</guid>
		<description><![CDATA[Last week the KISS alliance hosted its annual Maragon on Guild Wars. Basically it&#8217;s a massive riddle-solving and running event spanning over two long days.
I haven&#8217;t even been on Guild Wars for a significant period of time since last year, so this was kind of interesting. In the beginning I thought I&#8217;d be at a [...]]]></description>
			<content:encoded><![CDATA[<p>Last week the KISS alliance hosted its annual Maragon on Guild Wars. Basically it&#8217;s a massive riddle-solving and running event spanning over two long days.</p>
<p>I haven&#8217;t even been on Guild Wars for a significant period of time since last year, so this was kind of interesting. In the beginning I thought I&#8217;d be at a severe disadvantage due to the time lapse; at least I&#8217;d have Dacelo et. al. backing me up though. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In hindsight I didn&#8217;t have much to worry about. The group riddles weren&#8217;t all that hard &#8211; although there were a few &#8220;wtf&#8221; moments. I mean, how did we manage to derive Sifhalla as the endpoint three times consecutively? <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Some of the runs were definitely crazy though: the two runs in the Realm of Torment and the HM run from Arbor Bay to Gadd&#8217;s Encampment.</p>
<p>Good thing as a &#8220;PUG&#8221; I had the advantage of running in full armour. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  The change to Shadow Form last Thursday and its subsequent unbanment (I officially declare unbanment to be a real word) from the event was a godsend as well. I don&#8217;t know if it&#8217;d be possible to solo run half of those routes otherwise.</p>
<p>Anyway, some pictures:</p>
<div id="attachment_229" class="wp-caption aligncenter" style="width: 310px"><a href="http://reflections.irythia.com/wp-content/uploads/2010/03/gw017.jpg"><img class="size-medium wp-image-229" title="Maragon - Deldrimor War Camp" src="http://reflections.irythia.com/wp-content/uploads/2010/03/gw017-300x177.jpg" alt="Maragon - Deldrimor War Camp" width="300" height="177" /></a><p class="wp-caption-text">Taking a nice long break after the crazy run from Beacon&#39;s Perch to Deldrimor War Camp</p></div>
<div id="attachment_230" class="wp-caption aligncenter" style="width: 310px"><a href="http://reflections.irythia.com/wp-content/uploads/2010/03/gw018.jpg"><img class="size-medium wp-image-230" title="Maragon - Lion's Arch" src="http://reflections.irythia.com/wp-content/uploads/2010/03/gw018-300x177.jpg" alt="" width="300" height="177" /></a><p class="wp-caption-text">Starting the solo riddle for Prophecies.</p></div>
<div id="attachment_231" class="wp-caption aligncenter" style="width: 310px"><a href="http://reflections.irythia.com/wp-content/uploads/2010/03/gw019.jpg"><img class="size-medium wp-image-231" title="Maragon - Eye of the North" src="http://reflections.irythia.com/wp-content/uploads/2010/03/gw019-300x177.jpg" alt="" width="300" height="177" /></a><p class="wp-caption-text">Crowding around the leader of KISS - James - before the start of the final solo riddle of the event.</p></div>
<p>All in all it was good fun. I definitely got a lot of running practice over that weekend. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Now if only I remembered to record one of the more challenging runs on video&#8230; And congratulations to Dacelo for winning first prize (Obsidian Armour set) in the Nightfall portion of the event. It was totally worth participating just to hear Tessa&#8217;s expression. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I think my brain has fully recovered now.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=V60ngDXQBjM:OTCyNbaIR9M:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=V60ngDXQBjM:OTCyNbaIR9M:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=V60ngDXQBjM:OTCyNbaIR9M:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=V60ngDXQBjM:OTCyNbaIR9M:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/V60ngDXQBjM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/03/06/guild-wars-community-event-maragon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/03/06/guild-wars-community-event-maragon/</feedburner:origLink></item>
		<item>
		<title>Random Thought of the Day</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/cKuB6OHYErU/</link>
		<comments>http://reflections.irythia.com/2010/02/08/random-thought-of-the-day/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 06:35:59 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Thought]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=225</guid>
		<description><![CDATA[Ever had this crazy awesome vision in your head but just can&#8217;t get it down into a physical format? It could be an idea for a project, a solution to an issue, whatever. Well, that&#8217;s basically the sort of problem I&#8217;ve been dealing with for the past few weeks or so.
The problem: create a design [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had this crazy awesome vision in your head but just can&#8217;t get it down into a physical format? It could be an idea for a project, a solution to an issue, whatever. Well, that&#8217;s basically the sort of problem I&#8217;ve been dealing with for the past few weeks or so.</p>
<p>The problem: create a design for the front page of my site (and perhaps this blog too, in time). The vision: a dark theme, using fantasy and sci-fi material as inspiration (planets, stars, floating islands&#8230;). The solution: uhh&#8230;?</p>
<p>I call it &#8220;creative paralysis&#8221;. It&#8217;s something similar to <a href="http://en.wikipedia.org/wiki/Writer%27s_block">writer&#8217;s block</a> (which, incidentally, I happen to encounter constantly when I&#8217;m writing academic papers and such). I suppose it&#8217;s different in that the idea is already at hand; the issue is figuring out what to do with it.</p>
<p>For me, I&#8217;m thinking that my lack of experience in Photoshop (and artistic skills in general) is holding me back. I&#8217;ll probably end up messing around randomly and hope things work out. Who knows, I might actually learn something in the process&#8230;</p>
<p>I probably have a few hundred or so images in my head that I&#8217;d love to get on paper. Hell, my lucid dreams can probably form the basis of several short stories. Now, if only the details were a bit clearer&#8230; <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Seriously, if there was a machine that could materialize thoughts into physical matter, I&#8217;d venture to say that we&#8217;d be living in a rather interesting world. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  In the meantime, I&#8217;d be happy if virtual/augmented reality stuff went mainstream.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=cKuB6OHYErU:v4K22M88BI0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=cKuB6OHYErU:v4K22M88BI0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=cKuB6OHYErU:v4K22M88BI0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=cKuB6OHYErU:v4K22M88BI0:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/cKuB6OHYErU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/02/08/random-thought-of-the-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/02/08/random-thought-of-the-day/</feedburner:origLink></item>
		<item>
		<title>Bleach (Episode 256)</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/Bct_7CwyMGM/</link>
		<comments>http://reflections.irythia.com/2010/02/08/bleach-episode-256/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 05:30:14 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Anime]]></category>
		<category><![CDATA[Bleach]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=222</guid>
		<description><![CDATA[&#8230;and so the filler continues. I&#8217;m not entirely sure I like where this is heading; personally, I thought the last episode would have ended this arc rather nicely. However, I&#8217;m willing to give the writers the benefit of the doubt. They did manage to get a pretty intriguing storyline going after all&#8230; I&#8217;m just hoping [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;and so the filler continues. I&#8217;m not entirely sure I like where this is heading; personally, I thought the last episode would have ended this arc rather nicely. However, I&#8217;m willing to give the writers the benefit of the doubt. They did manage to get a pretty intriguing storyline going after all&#8230; I&#8217;m just hoping that it doesn&#8217;t end on a sour note. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You can watch the episode <a href="http://www.anilinkz.com/bleach/bleach-episode-256/">here</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Bct_7CwyMGM:dV9gbrkQA84:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Bct_7CwyMGM:dV9gbrkQA84:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Bct_7CwyMGM:dV9gbrkQA84:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Bct_7CwyMGM:dV9gbrkQA84:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/Bct_7CwyMGM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/02/08/bleach-episode-256/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/02/08/bleach-episode-256/</feedburner:origLink></item>
		<item>
		<title>The Hype Surrounding Apple’s iPad</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/8Zsnojx0HUw/</link>
		<comments>http://reflections.irythia.com/2010/01/28/the-hype-surrounding-apples-ipad/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 01:44:12 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Humour]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=218</guid>
		<description><![CDATA[
Geez, Apple&#8217;s hype machine is ridiculous. Pretty much every other news story and tweet I&#8217;ve been reading had some sort of reference to the iPad. Just take a look at TechCrunch and Techmeme over the last day and a bit &#8211; I&#8217;m hoping no company was stupid enough to release anything that day.  
]]></description>
			<content:encoded><![CDATA[<p><a href="http://reflections.irythia.com/wp-content/uploads/2010/01/ipadnews.jpg"><img class="aligncenter size-medium wp-image-219" title="The Hype Surrounding Apple's iPad" src="http://reflections.irythia.com/wp-content/uploads/2010/01/ipadnews-300x292.jpg" alt="" width="300" height="292" /></a></p>
<p>Geez, Apple&#8217;s hype machine is ridiculous. Pretty much every other news story and tweet I&#8217;ve been reading had some sort of reference to the iPad. Just take a look at TechCrunch and Techmeme over the last day and a bit &#8211; I&#8217;m hoping no company was stupid enough to release anything that day. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=8Zsnojx0HUw:ugQjZjOYm8U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=8Zsnojx0HUw:ugQjZjOYm8U:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=8Zsnojx0HUw:ugQjZjOYm8U:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=8Zsnojx0HUw:ugQjZjOYm8U:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/8Zsnojx0HUw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/28/the-hype-surrounding-apples-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/28/the-hype-surrounding-apples-ipad/</feedburner:origLink></item>
		<item>
		<title>Building a Web Scraper Using JavaScript and jQuery</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/dv3PnsWsyVI/</link>
		<comments>http://reflections.irythia.com/2010/01/25/building-a-web-scraper-using-javascript-and-jquery/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 08:38:43 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Scraping]]></category>
		<category><![CDATA[YQL]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=211</guid>
		<description><![CDATA[When building web applications, sometimes there&#8217;s a need to fetch data from other sources. Perhaps you&#8217;re building a custom RSS feed of news items based on your interests or you want to aggregate data from several sites. In any case, it&#8217;s not always possible to do this elegantly; you may not have direct access to [...]]]></description>
			<content:encoded><![CDATA[<p>When building web applications, sometimes there&#8217;s a need to fetch data from other sources. Perhaps you&#8217;re building a custom RSS feed of news items based on your interests or you want to aggregate data from several sites. In any case, it&#8217;s not always possible to do this elegantly; you may not have direct access to the raw data and an existing API may not exist. For these situations there&#8217;s one general (albeit fragile) solution: manually parse the end result when a page is loaded in a browser.</p>
<p>There are many different ways to build a web scraper. A server-side language such as PHP will have a much easier time as there are less limitations and existing libraries (such as cURL) to accomplish the task. I&#8217;ll be using JavaScript (with the jQuery library), however, as I want a standalone client independent of server technology.</p>
<p>Let&#8217;s start with a random snippet of code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> fetchPage<span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">,</span>
        url<span style="color: #339933;">:</span> url<span style="color: #339933;">,</span>
        error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> <span style="color: #000066;">status</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Error fetching '</span> <span style="color: #339933;">+</span> url<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            parse<span style="color: #009900;">&#40;</span>data.<span style="color: #660066;">responseText</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The above function attempts to make an AJAX call to a specified web page, fetch the HTML of said page and pass it to a parsing function. Simple enough, right?</p>
<p>Unfortunately there&#8217;s a little problem with this. Client-side programming languages have to deal with something called the <a href="http://en.wikipedia.org/wiki/Same_origin_policy">same origin policy</a> which basically restricts scripts from accessing external domains. From a security standpoint this is obviously a good thing; however it can be a headache for web app. developers (indeed, there are ideas such as the origin HTTP header to solve this). (The following bit can be ignored if the scraper is on the same domain as the data source &#8211; but in such a case why is said scraper even necessary?)</p>
<p>In this case, there are a couple of solutions (that I can think of). Both of them take advantage of the fact that JavaScript can read <a href="http://en.wikipedia.org/wiki/Json">JSON</a> even if it is located on a different domain.</p>
<ul style="text-align: left;">
<li>The first one is writing a complementary server-side script that takes a few arguments (such as the target URL), makes the call, parses the result into JSON format and passes it back to the calling function. It&#8217;s a simple idea, but I never really liked it because it introduced a major dependency (which, in my case, can be a pain to deal with). However, it&#8217;s definitely a viable solution which works extremely well.</li>
<li>The second is using an existing system such as Yahoo&#8217;s YQL to fetch the required data and return it in a structured form. This is the method that I&#8217;ll be using.</li>
</ul>
<p>YQL is an interesting little beast. From <a href="http://developer.yahoo.com/yql/">their site</a>:</p>
<blockquote><p>The Yahoo! Query Language is an expressive SQL-like language that lets you query, filter, and join data across Web services. With YQL, apps run faster with fewer lines of code and a smaller network footprint.</p></blockquote>
<p>I haven&#8217;t had too much time to look into it so I do what all programmers do: Google the living crap out of a problem to find a solution. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  In this case, <a href="http://www.wait-till-i.com/2010/01/10/loading-external-content-with-ajax-using-jquery-and-yql/">Chris Heilmann has a great post</a> on how to load external content via. various methods including YQL. To simplify things, James Padolsey <a href="http://github.com/jamespadolsey/jQuery-Plugins/tree/master/cross-domain-ajax/">wrote a plugin</a> that detects an external AJAX call and passes it to YQL automatically.</p>
<p>Anyway, that solves the problem of fetching data from an external source. All that&#8217;s left is extracting the relevant pieces for whatever application is being built. Consider the following example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> parse<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;h1&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The parse() function takes the responseText data from the earlier fetchPage() function and then proceeds to pick at it slowly and painfully. What&#8217;s really cool about it is that pretty much all of jQuery&#8217;s selectors can be used to select relevant data. In the above case, I&#8217;m trying to extract text inside the first &lt;h1&gt; tag found on a page and outputting it as an alert to the browser. Obviously there are more complex uses for this but they are outside the scope of this post. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>And&#8230;that&#8217;s it! <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Those two code blocks combined pretty much handles all of the grunt-work in extracting data from external sources. Again, this is a rather fragile solution &#8211; it can break if the target page&#8217;s HTML changes (one possible solution is to pick unique identifiers or classes). In addition, some sites may have restrictions on their data &#8211; but I&#8217;m sure everyone reads those <a href="http://en.wikipedia.org/wiki/Terms_of_service">long-winded documents</a>. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=dv3PnsWsyVI:GgekKn_MNiY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=dv3PnsWsyVI:GgekKn_MNiY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=dv3PnsWsyVI:GgekKn_MNiY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=dv3PnsWsyVI:GgekKn_MNiY:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/dv3PnsWsyVI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/25/building-a-web-scraper-using-javascript-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/25/building-a-web-scraper-using-javascript-and-jquery/</feedburner:origLink></item>
		<item>
		<title>“What’s Your Fastest Text Input Tool?”</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/-sGYRHfxk5U/</link>
		<comments>http://reflections.irythia.com/2010/01/24/whats-your-fastest-text-input-tool/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 21:58:36 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Text Input]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=208</guid>
		<description><![CDATA[Here&#8217;s an interesting post on Lifehacker: What&#8217;s Your Fastest Text Input Tool?.
I&#8217;ve been using full-sized keyboards for a *very* long time now so that blows everything else out of the water for me. When I&#8217;m motivated I can type at speeds exceeding 100 words per minute, although that&#8217;s typically not necessary with the stuff I [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an interesting post on Lifehacker: <a href="http://lifehacker.com/5455834/whats-your-fastest-text-input-tool">What&#8217;s Your Fastest Text Input Tool?</a>.</p>
<p>I&#8217;ve been using full-sized keyboards for a *very* long time now so that blows everything else out of the water for me. When I&#8217;m motivated I can type at speeds exceeding 100 words per minute, although that&#8217;s typically not necessary with the stuff I do.</p>
<p>I&#8217;d rank pen and paper as second. It&#8217;s pretty much a necessity in university when you&#8217;re taking down notes and whatnot. Although some people can get away with using laptops in class, I find that it&#8217;s extremely hard to copy out diagrams and mathematical equations. Perhaps this is some indication that I should learn <a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a> or something? <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Next up would probably be a close race between my Wacom tablet (using Window&#8217;s handwriting recognition software) and my iPod Touch. I&#8217;m still rather slow at both, although that might just be because of a lack of practice.</p>
<p>In last place is a standard phone with a three-letters-per-number keypad. Yeah. I don&#8217;t use my phone very often and I text even less. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=-sGYRHfxk5U:stj-XUGWVwE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=-sGYRHfxk5U:stj-XUGWVwE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=-sGYRHfxk5U:stj-XUGWVwE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=-sGYRHfxk5U:stj-XUGWVwE:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/-sGYRHfxk5U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/24/whats-your-fastest-text-input-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/24/whats-your-fastest-text-input-tool/</feedburner:origLink></item>
		<item>
		<title>Fairy Tail (Chapter 167)</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/LcsNJRmIVOc/</link>
		<comments>http://reflections.irythia.com/2010/01/19/fairy-tail-chapter-167/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 07:46:46 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Manga]]></category>
		<category><![CDATA[Fairy Tail]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=206</guid>
		<description><![CDATA[Looks like the latest chapter of Fairy Tail came out a day or so ago (geez, MangaStream is ridiculously fast when it comes to releasing stuff &#8211; it didn&#8217;t appear on One Manga until much later).
Links:

MangaStream
One Manga

Anyway, I really like how Gajeel is desperately looking for a cat. He must have gotten pwned pretty badly [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like the latest chapter of Fairy Tail came out a day or so ago (geez, MangaStream is ridiculously fast when it comes to releasing stuff &#8211; it didn&#8217;t appear on One Manga until much later).</p>
<p>Links:</p>
<ul>
<li><a href="http://mangastream.com/read/fairy_tail/167-30/1">MangaStream</a></li>
<li><a href="http://www.onemanga.com/Fairy_Tail/167/">One Manga</a></li>
</ul>
<p>Anyway, I really like how Gajeel is desperately looking for a cat. He must have gotten pwned pretty badly with all those scratches on his face. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Something tells me there&#8217;s more to them than meets the eye; the conversation between Charle and Happy raises a few bells.</p>
<p>We see Mystogan reveal some of his history with Wendy as well. I&#8217;m pretty sure this is the first time he&#8217;s done so in the series. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  It kind of reduces the impact of Gildarts&#8217; arrival in the previous chapter though.</p>
<p>Speaking of Gildarts, I find it interesting to see that he has Ivan Deyar listed under &#8220;dislikes&#8221; on his guild card at the beginning of the chapter. There must have been some interesting things going on between them during their time together at Fairy Tail.</p>
<p>It looks like we&#8217;re in for a new plot arc as well, although it seems kind of sudden. What&#8217;s with this &#8220;Anima&#8221; that Mystogan was talking about and how can it destroy Magnolia before everyone can escape? Eh, we&#8217;ll see&#8230;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=LcsNJRmIVOc:v6kdpfA9N-M:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=LcsNJRmIVOc:v6kdpfA9N-M:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=LcsNJRmIVOc:v6kdpfA9N-M:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=LcsNJRmIVOc:v6kdpfA9N-M:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/LcsNJRmIVOc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/19/fairy-tail-chapter-167/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/19/fairy-tail-chapter-167/</feedburner:origLink></item>
		<item>
		<title>The “A” in “AJAX”</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/Y7e_Y4D8O6Y/</link>
		<comments>http://reflections.irythia.com/2010/01/16/the-a-in-ajax/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 00:49:39 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=201</guid>
		<description><![CDATA[Consider the following code snippet using JavaScript (with the jQuery library):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function blah&#40;&#41; &#123;
    var pagedata;
    $.ajax&#40;&#123;
        type: &#34;GET&#34;,
        url: &#34;test.php&#34;,
        error: function&#40;request, error&#41; &#123;
     [...]]]></description>
			<content:encoded><![CDATA[<p>Consider the following code snippet using JavaScript (with the jQuery library):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> blah<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> pagedata<span style="color: #339933;">;</span>
    $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">,</span>
        url<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;test.php&quot;</span><span style="color: #339933;">,</span>
        error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> error<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Error: &quot;</span> <span style="color: #339933;">+</span> error<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            pagedata <span style="color: #339933;">=</span> data<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> pagedata<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Looks reasonable enough. The purpose of the function is to make a GET request to some page (&#8220;test.php&#8221; in this case), store the result in a temporary variable and return said variable (of type string).</p>
<p>However, it turns out that this doesn&#8217;t work too well. When the function is called, chances are pretty good that the returned string is empty. Why? At first I thought it was because of some weird variable scoping rules in JavaScript, but that didn&#8217;t really make too much sense.</p>
<p>It turns out that I forgot about the &#8220;A&#8221; in &#8220;AJAX&#8221; (i.e. <strong>Asynchronous</strong> JavaScript and XML). The function above doesn&#8217;t execute in a top-bottom manner; the $.ajax() call is made in parallel with the rest of the script. Generally this isn&#8217;t too much of a problem (indeed, it&#8217;s a valued property by those making web applications) but in this case it isn&#8217;t what I want.</p>
<p>Anyway, there&#8217;s a simple solution to this. What I want to do is make the call synchronous with the rest of the script. Fortunately, jQuery makes this extremely easy in the $.ajax() method by providing an option (async: false) to turn this off. Thus:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> blah<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> pagedata<span style="color: #339933;">;</span>
    $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        async<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
        type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">,</span>
        url<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;test.php&quot;</span><span style="color: #339933;">,</span>
        error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> error<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Error: &quot;</span> <span style="color: #339933;">+</span> error<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            pagedata <span style="color: #339933;">=</span> data<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> pagedata<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This locks up the browser while the call is being made so it&#8217;s probably not the best solution. It shouldn&#8217;t matter too much with small requests though (or requests made with the user&#8217;s consent via. the UI or something).</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Y7e_Y4D8O6Y:cIFUxy3gvBk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Y7e_Y4D8O6Y:cIFUxy3gvBk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=Y7e_Y4D8O6Y:cIFUxy3gvBk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=Y7e_Y4D8O6Y:cIFUxy3gvBk:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/Y7e_Y4D8O6Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/16/the-a-in-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/16/the-a-in-ajax/</feedburner:origLink></item>
		<item>
		<title>Avatar</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/yeuf_jODjWs/</link>
		<comments>http://reflections.irythia.com/2010/01/11/avatar/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 08:06:37 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Movie]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Avatar]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=198</guid>
		<description><![CDATA[Throughout the last month or so, I&#8217;ve been hearing a lot about James Cameron&#8217;s Avatar (words such as &#8220;revolutionizing&#8221;, &#8220;awesomesauce&#8221;, &#8220;epic&#8221;, etc. come to mind). So I finally got to see it last Friday at West Edmonton Mall&#8217;s Scotiabank Theatre. I&#8217;d say the movie lives up to its hype.  
The first thing I found [...]]]></description>
			<content:encoded><![CDATA[<p>Throughout the last month or so, I&#8217;ve been hearing a lot about James Cameron&#8217;s <em>Avatar</em> (words such as &#8220;revolutionizing&#8221;, &#8220;awesomesauce&#8221;, &#8220;epic&#8221;, etc. come to mind). So I finally got to see it last Friday at West Edmonton Mall&#8217;s Scotiabank Theatre. I&#8217;d say the movie lives up to its hype. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>The first thing I found out was that the <em>entire</em> movie is in 3-D. I was never a big fan of wearing those funky glasses (and indeed, they&#8217;re pretty annoying for anyone wearing actual glasses) but it&#8217;s a minor issue for me. Perhaps one day we&#8217;ll have true 3-D in the theatres (think holo-projectors). I can dream, right?</p>
<p>Anyway, the movie starts off with Jake Sully &#8211; a paraplegic (former) marine &#8211; joining the avatar program on Pandora, an Earth-like moon with its own unique environment. The goal of the program is to improve relations with Pandora&#8217;s natives so that a human mining operation can continue in peace. Throughout the movie we see Jake slowly preferring his avatar&#8217;s lifestyle to his own (Jake&#8217;s avatar is a biologically-engineered version of one of the natives, the Na&#8217;vi). One major recurring theme is how damaging human tendencies can be on an environment (in this case, making war on the natural inhabitants all in the name of profit); in this aspect I was drawing comparisons between Avatar and Princess Mononoke.</p>
<p>The visuals and animation were mind-blowing. I expected nothing less from a movie whose official budget of $237M makes it one of the most expensive ever made. The 3-D aspect was interesting and really brought out Pandora&#8217;s natural beauty; throughout the movie the atmosphere seemed realistic, the native species lifelike. I&#8217;d say Avatar is one of the few movies that can truly be comparable to a high fantasy novel. It definitely had an impact on my imagination in any case. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Most of the major characters were well-developed. They each had their own beliefs and act accordingly no matter the consequences.  Trudy &#8211; a fighter pilot &#8211; best summarizes this when she abandons the first human-Na&#8217;vi conflict with a &#8220;fuck this&#8221; and subsequently aids Jake and the rest of the avatar team in the second. It was very possible to relate to them (which adds to the emotional factor when some of them die).</p>
<p>All in all, I&#8217;d say Avatar is one of those movies that everyone should watch. Heck, I wouldn&#8217;t mind watching it a second time if I can find an IMAX theatre near me. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=yeuf_jODjWs:iCD7ii8c7G4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=yeuf_jODjWs:iCD7ii8c7G4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=yeuf_jODjWs:iCD7ii8c7G4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=yeuf_jODjWs:iCD7ii8c7G4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/yeuf_jODjWs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2010/01/11/avatar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2010/01/11/avatar/</feedburner:origLink></item>
		<item>
		<title>A New Moon in 2012</title>
		<link>http://feedproxy.google.com/~r/Irythia-Reflections/~3/jlDBrdR4t-A/</link>
		<comments>http://reflections.irythia.com/2009/12/31/a-new-moon-in-2012/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 10:48:16 +0000</pubDate>
		<dc:creator>Illianthe</dc:creator>
				<category><![CDATA[Movie]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[The Twilight Saga: New Moon]]></category>

		<guid isPermaLink="false">http://reflections.irythia.com/?p=194</guid>
		<description><![CDATA[I had the (dubious?) pleasure of watching New Moon and 2012 over the last week at West Edmonton Mall&#8217;s Scotiabank Theatre. Here are my thoughts on those two movies&#8230;  
Let&#8217;s start with New Moon. First of all, I haven&#8217;t read Meyer&#8217;s books so I can&#8217;t really do a fair comparison between the two. In [...]]]></description>
			<content:encoded><![CDATA[<p>I had the (dubious?) pleasure of watching <a href="http://www.imdb.com/title/tt1259571/">New Moon</a> and <a href="http://www.imdb.com/title/tt1190080/">2012</a> over the last week at West Edmonton Mall&#8217;s Scotiabank Theatre. Here are my thoughts on those two movies&#8230; <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Let&#8217;s start with New Moon. First of all, I haven&#8217;t read Meyer&#8217;s books so I can&#8217;t really do a fair comparison between the two. In general I much prefer doing the readings since a lot of details tend to get lost in translation &#8211; there&#8217;s only so much that can fit in a 2-3 hour movie! I did attend an early screening of <a href="http://www.imdb.com/title/tt1099212/">Twilight</a> last year however (in which my enjoyment of the movie was negatively impacted by rabid fans screaming in my ears).</p>
<p>Bella (as a character) is uninspiring. To be honest, I still don&#8217;t have a clue on how she became the love interest of two other characters. She has next-to-zero hobbies, is consistently gloomy and is melodramatic. For someone nearing adulthood, she&#8217;s emotionally weak (well past dangerous territory). It reminds me of those classical fairy tales in which we have a damsel-in-distress rescued by some random knight-in-shining-armour. Haven&#8217;t we gotten past those stereotypical views already?</p>
<p>Similar to Twilight, most of the supporting characters contributed little to the plot. They could pretty much be pulled out of the movie without seriously affecting the outcome of the story. That&#8217;s kind of disappointing since it really makes them seem two-dimensional. Of course, this is probably an artifact of the movie translation; it&#8217;s probably a lot better in the books (someone please tell me that it is). <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Some mini-arcs seem kind of redundant as well. For example, what purpose did sending Charlie et al. wolf hunting serve? I was hoping for a twist &#8211; that a heavily guarded secret would be leaked to the public. Unfortunately, nope. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>As a whole, I thought New Moon was relatively predictable and slow. In fact, I made it almost like a game, guessing the chain of events as they unfolded (and then there were some &#8211; like Jacob being a werewolf &#8211; that were too ridiculously obvious to <em>not</em> get at first sight). Perhaps it&#8217;s just the fact that I have no real interest in the romantic genre, but there&#8217;s a problem when my sister (who is clearly in the crosshairs of the series&#8217; target audience) picks up on some of these issues. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  I did enjoy the action and computer animated scenes though, few and far between as they were; Jacob in wolf form is cool. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Moving on. 2012 is one  of those oh-my-gawd-the-end-is-near-please-help-ahhh apocalyptic movies in which the world order collapses and is reborn in a new light. The basis of  the movie is the 2012 phenomenon which is essentially a conglomerate of beliefs that cataclysmic events will happen throughout that year (more details <a href="http://en.wikipedia.org/wiki/2012_phenomenon">can be found on Wikipedia</a>). Though the general theme has been recycled millions of times, the movie still provides ample entertainment and even *gasp* some things think about.</p>
<p>I thought the beginning was rather fragmented and confusing especially since it glossed over three years. It did provide a quick introduction to all the main characters though (as well as why humanity was screwed) so I&#8217;m willing to let that slide. We have Jackson (a writer-turned-driver) as the unlikely protagonist of the story along with his children (Noah and Lilly) and his divorced wife Kate. Gordon &#8211; Kate&#8217;s current boyfriend &#8211; joins the ride as the five dodge calamity after calamity. Geologist Adrian Helmsley becomes the focal character in providing a lot of background information on the impending event.</p>
<p>The action in the movie was as expected: pure awesome. The computer animation might have been overdone but it was still exciting to watch &#8211; especially if you just want to switch off your brain and see stuff explode. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Speaking of which, I still haven&#8217;t watched the latest Transformers movie&#8230;</p>
<p>Scientific explanations were reasonably adequate for those with a very basic education in geology and astronomy (i.e. knowledge of fault lines, magnetic fields, solar flares). I suspect those true geologists and astronomists would object however. <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  It&#8217;s about as close as one can get when dealing with a topic with few, if any, factual basis.</p>
<p>Character development was alright for a movie in this genre. I liked how Noah &#8211; initially portrayed as a stubborn, pessimistic kid &#8211; gradually accepted Jackson as the movie progressed. Many of the more selfish and arrogant characters like Yuri and Tamara displayed compassion in strenuous situations. It&#8217;s surprising how much people can change in a short period of time&#8230;</p>
<p>In a nutshell, the movie attempts to show collective human behaviour in the face of impending danger. I think the other message it was trying to convey is how woefully unprepared we are should we face disaster. Given, for example, how Hurricane Katrina was handled in the U.S.,  that wouldn&#8217;t be too much of a stretch. Overall, I thought 2012 was decent entertainment (me being the ooh-stuff-is-blowing-up type). <img src='http://reflections.irythia.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=jlDBrdR4t-A:0gE2gEQYh9Q:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=jlDBrdR4t-A:0gE2gEQYh9Q:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Irythia-Reflections?a=jlDBrdR4t-A:0gE2gEQYh9Q:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Irythia-Reflections?i=jlDBrdR4t-A:0gE2gEQYh9Q:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Irythia-Reflections/~4/jlDBrdR4t-A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://reflections.irythia.com/2009/12/31/a-new-moon-in-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://reflections.irythia.com/2009/12/31/a-new-moon-in-2012/</feedburner:origLink></item>
	</channel>
</rss>
