<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Agyuku</title>
	<atom:link href="http://agyuku.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://agyuku.net</link>
	<description>ZOMG! So Simple!</description>
	<pubDate>Sat, 17 Jul 2010 09:16:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The man who happened to have legs</title>
		<link>http://agyuku.net/2010/07/the-man-who-happened-to-have-legs/</link>
		<comments>http://agyuku.net/2010/07/the-man-who-happened-to-have-legs/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 08:37:09 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

		<category><![CDATA[ruby on rails]]></category>

		<category><![CDATA[why the lucky stiff]]></category>

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

		<guid isPermaLink="false">http://agyuku.net/2010/07/the-man-who-happened-to-have-legs/</guid>
		<description><![CDATA[One of the first strange things to ever happen was when a man was born and turned out to be nothing more than twelve legs coming from a cloud. When people saw him, they usually ended up thinking that he was David Blaine or some other magician pulling a stunt.
So David Blaine got a really [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first strange things to ever happen was when a man was born and turned out to be nothing more than twelve legs coming from a cloud. When people saw him, they usually ended up thinking that he was David Blaine or some other magician pulling a stunt.</p>
<p>So David Blaine got a really bad rap about it and people started putting a lot of pressure on him to do regular card tricks that just told a story or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/07/the-man-who-happened-to-have-legs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ajax search execution interval</title>
		<link>http://agyuku.net/2010/07/ajax-search-execution-interval/</link>
		<comments>http://agyuku.net/2010/07/ajax-search-execution-interval/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 13:28:40 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

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

		<category><![CDATA[javascript search]]></category>

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

		<category><![CDATA[server request]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=465</guid>
		<description><![CDATA[Nerd Talk
Search functionality can be done in two ways, (1) the usual form submit that reloads the page to submit the query and (2) through Ajax, doesn&#8217;t require a page reload because it sends the query in the background which is cool. If you&#8217;re working on a search functionality it is best to always optimize [...]]]></description>
			<content:encoded><![CDATA[<h4>Nerd Talk</h4>
<p>Search functionality can be done in two ways, (1) the usual form submit that reloads the page to submit the query and (2) through Ajax, doesn&#8217;t require a page reload because it sends the query in the background which is cool. If you&#8217;re working on a search functionality it is best to always optimize the process because every time the user hits the submit button your server gets hit in the head to perform the request. As we know, searching requires database query and we don&#8217;t want to request from the database that often because it&#8217;ll bite you in the ass when there&#8217;s a lot of searches going on. In this post I won&#8217;t be providing tips on how to optimize search queries or any caching methods but this is a start for an optimized search functionality. This is to help you save server requests if you&#8217;re working on a similar search functionality.</p>
<p>If you&#8217;re working on a search functionality that triggers onkeyup:</p>
<pre class="html" name="code">
<input onkeyup="Search(this)" name="search" /></pre>
<p>You know, the kind of search functionality where you submit the request to the server when the user stops typing the keyword to save them time clicking the submit button or if you don&#8217;t have a submit button at all. When doing this we must make sure that we only submit or send the request to the server once the user had stopped typing. So if the user wanted to search for &#8216;krispy kreme&#8217;, take note if you&#8217;re using <a href="http://www.w3schools.com/jsref/event_onkeyup.asp" target="_blank">onkeyup</a> event, your Search() function will get triggered every time your user lifts his finger off the keyboard key. Imagine the amount of request you&#8217;re sending to the server when searching for &#8216;krispy kreme&#8217;, that&#8217;s 12 characters, 12 Ajax requests. Code below will help to only send a request to the server when the user had stopped typing, we assume that the user already finished typing the search keyword.</p>
<pre class="js" name="code">// initial interval value
var SearchTimeOut = 0;
// how long before the execution starts; in milliseconds (1000 = 1 second)
// just the value i'm happy with, not too fast or slow
// increase value if you think users type 1 ltr (letter per second) >:)
var Interval = 333;

// stores the search keyword
var CurrentSearchKey = '';
var Search = function(obj) {
	// get the keyword from the field
	var keyword = obj.value;

	// cancel the previous search
	// SearchTimeOut contains a value more than zero when assigned with
	// a setTimeout()
	if(SearchTimeOut > 0)
		ResetSearch();

	// we only start a request when the search keyword is different from
	// the current keyword
	if(CurrentSearchKey == keyword)
		return;

	// the magic, we attach the search process to setTimeout to put in an
	// interval every time the Search() is executed
	// setTimeout() returns a value assigned to SearchTimeOut everytime
	// it's called since SearchTimeOut now holds whatever StartSearch()
	// is doing when we do a keyup event, everytime we execute Search()
	// we will cancel SearchTimeOut and start a new one, that's what makes
	// sending a request to the server lesser because we only do a request
	// to the server when we stop typing a keyword
	SearchTimeOut = setTimeout("StartSearch('"+keyword+"')", Interval);
}

// the actual search function
var StartSearch = function(keyword) {
	CurrentSearchKey = keyword;
	// here is where you put your Ajax request code, regardless if you're
	// using jQuery, Prototype JS, or the conventional way of doing Ajax
}

// cancels the previous search interval
var	ResetSearch = function() {
	// this is what cancels the setTimeout interval assigned
	// to SearchTimeOut
	clearTimeout(SearchTimeOut);
	SearchTimeOut = 0;
}</pre>
<p>There you have it, hope that helps! <img src='/simplish/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/07/ajax-search-execution-interval/feed/</wfw:commentRss>
		</item>
		<item>
		<title>So Nyuh Shi Dae</title>
		<link>http://agyuku.net/2010/07/so-nyuh-shi-dae/</link>
		<comments>http://agyuku.net/2010/07/so-nyuh-shi-dae/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 05:20:42 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

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

		<category><![CDATA[girls generation]]></category>

		<category><![CDATA[so nyuh shi dae]]></category>

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

		<guid isPermaLink="false">http://agyuku.net/?p=442</guid>
		<description><![CDATA[
The color of their shirts matches the color of my logo. I just love these girls ;p
]]></description>
			<content:encoded><![CDATA[<p><img src="/images/soshi.jpg" alt="" /><br />
The color of their shirts matches the color of my <a href="http://agyuku.net/2010/01/update-01232010">logo</a>. I just love these <a href="http://en.wikipedia.org/wiki/Girls%27_Generation" target="_blank">girls</a> ;p</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/07/so-nyuh-shi-dae/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Windows 7 Loader</title>
		<link>http://agyuku.net/2010/06/windows-7-loader/</link>
		<comments>http://agyuku.net/2010/06/windows-7-loader/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 11:08:51 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

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

		<category><![CDATA[windows 7]]></category>

		<category><![CDATA[windows 7 activator]]></category>

		<category><![CDATA[windows 7 loader]]></category>

		<guid isPermaLink="false">http://agyuku.net/2010/06/windows-7-loader/</guid>
		<description><![CDATA[Activate your Windows 7 in no time! Use this tool to activate your Windows 7 and get rid of that pesky notification that tells you to activate your OS. http://forums.mydigitallife.info/threads/8632-Program-based-Windows-7-loader. I&#8217;ve used it myself and it&#8217;s working like a charm. Kudos to Daz, freakin awesome programmer.
Sharing is caring ^_^
]]></description>
			<content:encoded><![CDATA[<p>Activate your Windows 7 in no time! Use this tool to activate your Windows 7 and get rid of that pesky notification that tells you to activate your OS. <a href="http://forums.mydigitallife.info/threads/8632-Program-based-Windows-7-loader" target="_blank">http://forums.mydigitallife.info/threads/8632-Program-based-Windows-7-loader</a>. I&#8217;ve used it myself and it&#8217;s working like a charm. Kudos to Daz, freakin awesome programmer.</p>
<p>Sharing is caring ^_^</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/06/windows-7-loader/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JavaScript prototype object not working</title>
		<link>http://agyuku.net/2010/05/javascript-prototype-object-not-working/</link>
		<comments>http://agyuku.net/2010/05/javascript-prototype-object-not-working/#comments</comments>
		<pubDate>Sat, 15 May 2010 06:46:22 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

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

		<category><![CDATA[custom object]]></category>

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

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

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

		<guid isPermaLink="false">http://agyuku.net/?p=417</guid>
		<description><![CDATA[If you happen to be working on a custom object and using the prototype property of JavaScript to add custom methods but it doesn&#8217;t seem to work, the solution is simple, you just need to instantiate your custom object by using the new keyword so all the custom methods through the prototype object are added.

// [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to be working on a custom object and using the <a href="http://www.w3schools.com/jsref/jsref_prototype_math.asp" target="_blank">prototype property</a> of JavaScript to add custom methods but it doesn&#8217;t seem to work, the solution is simple, you just need to instantiate your custom object by using the <strong>new</strong> keyword so all the custom methods through the prototype object are added.</p>
<pre class="js" name="code">
// Sample custom object
var CustomObject = function() {
	this.props = {
			property: 'value'
		}
}

CustomObject.prototype = {
	CustomMethod: function() {
		alert(this.props.property);
	}
}
</pre>
<pre class="js" name="code">
// Instantiate the custom object
var foo = new CustomObject;
</pre>
<pre class="js" name="code">
// Doing that enables you to do this
foo.CustomMethod(); // alerts 'value'

// will not work because the object is not created as a new instance
// prototype methods not yet added to CustomObject
CustomObject.CustomMethod();
</pre>
<p>HTH <img src='/simplish/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/05/javascript-prototype-object-not-working/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dress for the job you want</title>
		<link>http://agyuku.net/2010/04/dress-for-the-job-you-want/</link>
		<comments>http://agyuku.net/2010/04/dress-for-the-job-you-want/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 03:00:34 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

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

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

		<category><![CDATA[shoebox blog]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=405</guid>
		<description><![CDATA[
Credits to Shoebox Blog.
]]></description>
			<content:encoded><![CDATA[<p><img src="/images/job_you_want.jpg" alt="" /><br />
Credits to <a href="http://www.shoeboxblog.com" target="_blank">Shoebox Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/04/dress-for-the-job-you-want/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Man in red</title>
		<link>http://agyuku.net/2010/04/man-in-red/</link>
		<comments>http://agyuku.net/2010/04/man-in-red/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 11:29:27 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[man in red]]></category>

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

		<category><![CDATA[super mario]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=398</guid>
		<description><![CDATA[Hopping along was the man in red,
collecting coins and shrooms.
Stomping enemies right on the head,
from morning to dusk til noon.
Still hopping along, the man in red,
busting up blocks and turtles.
Holding down B, he dashed and he sped,
through all the pits and hurdles.
Reaching the fortress, the man in red,
caught sight of the Princess and Bowser,
Eating a [...]]]></description>
			<content:encoded><![CDATA[<p>Hopping along was the man in red,<br />
collecting coins and shrooms.<br />
Stomping enemies right on the head,<br />
from morning to dusk til noon.<br />
Still hopping along, the man in red,<br />
busting up blocks and turtles.<br />
Holding down B, he dashed and he sped,<br />
through all the pits and hurdles.<br />
Reaching the fortress, the man in red,<br />
caught sight of the Princess and Bowser,<br />
Eating a shroom, they went head-to-head,<br />
in a valiant effort to save her.<br />
Saving the Princess and with Bowser dead,<br />
victoriously stood the proud man in red.</p>
<p>~The <b>(B)</b> button</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/04/man-in-red/feed/</wfw:commentRss>
		</item>
		<item>
		<title>03.20.2010</title>
		<link>http://agyuku.net/2010/03/03202010/</link>
		<comments>http://agyuku.net/2010/03/03202010/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 15:51:30 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://agyuku.net/2010/03/03202010/</guid>
		<description><![CDATA[Hey blog, sorry I&#8217;ve been busy lately and haven&#8217;t posted in a while I hope you understand. Are we cool? Alright, cool~
]]></description>
			<content:encoded><![CDATA[<p>Hey blog, sorry I&#8217;ve been busy lately and haven&#8217;t posted in a while I hope you understand. Are we cool? Alright, cool~</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/03/03202010/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flashback: old home pages</title>
		<link>http://agyuku.net/2010/02/flashback-old-home-pages/</link>
		<comments>http://agyuku.net/2010/02/flashback-old-home-pages/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 08:30:32 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

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

		<category><![CDATA[home page]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=371</guid>
		<description><![CDATA[I was checking my files on the server and I saw my old home pages that I&#8217;ve created before and thought I have deleted them already. Here they are: (click on the image to see the actual page)

Home page when I have completely nothing setup yet.

Blog splash screen when I first used Japanese characters as [...]]]></description>
			<content:encoded><![CDATA[<p>I was checking my files on the server and I saw my old home pages that I&#8217;ve created before and thought I have deleted them already. Here they are: (click on the image to see the actual page)</p>
<p><a style="background: none" href="/_index.php" target="_blank"><img src="/images/agyuku-home-boo.png" border="0" alt="Booo! Nothing here!" width="617" height="239" /></a><br />
Home page when I have completely nothing setup yet.</p>
<p><a style="background: none" href="/splash.php" target="_blank"><img src="/images/agyuku-home-splash.png" border="0" alt="Open 24/7. Free Admission. No Hidden Charges." width="617" height="239" /></a><br />
Blog splash screen when I first used Japanese characters as main elements for design. Page will redirect to the blog after 15 seconds.</p>
<p><a style="background: none" href="/may19.index.php" target="_blank"><img src="/images/agyuku-home-brown.png" border="0" alt="Agyuku.net" width="617" height="239" /></a><br />
Home page when I decided to close my blog for a while because I got super lazy to update.</p>
<p><a style="background: none" href="/old.index.php" target="_blank"><img src="/images/agyuku-home-jap.png" border="0" alt="Hello! Welcome~" width="617" height="239" /></a><br />
Changed the home page again, I decided to make it blue this time with my in-game character in GoonZu (MMORPG) named agyuku (with his pink pet bunny). This is more like an under construction page because I planned something for my home page and make the blog just a part of it but it didn&#8217;t work out. Blog is back up when I used this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/02/flashback-old-home-pages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lost keys</title>
		<link>http://agyuku.net/2010/02/lost-keys/</link>
		<comments>http://agyuku.net/2010/02/lost-keys/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 17:46:39 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://agyuku.net/2010/02/lost-keys/</guid>
		<description><![CDATA[It&#8217;s almost 2AM and I&#8217;m stuck outside our room at the condo because I lost my keys. Not so sure if I really lost it or I just misplaced it. All I can remember is I still have it before heading home from work. We played PS3 in our lobby for a bit probably I [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost 2AM and I&#8217;m stuck outside our room at the condo because I lost my keys. Not so sure if I really lost it or I just misplaced it. All I can remember is I still have it before heading home from work. We played PS3 in our lobby for a bit probably I dropped it on the couch or I put it somewhere. This totally sucks. I even called my office mates if they have it but no luck. When I got in our unit good thing when I knocked someone is still awake in the living room. Now just to get inside our room is my problem. I hope someone I texted that collects our bills can bring extra keys.</p>
<p><strong><span style="color: #ff0000;">Update</span></strong>: Nvm I got in already xD</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2010/02/lost-keys/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
