<?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>Wai Yan Lin</title>
	<atom:link href="http://blog.waiyanlin.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waiyanlin.net</link>
	<description></description>
	<lastBuildDate>Wed, 11 Aug 2010 02:30:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tutorial: How to create a simple drop-down menu jQuery plugin</title>
		<link>http://blog.waiyanlin.net/2010/08/11/tutorial-how-to-create-a-simple-drop-down-menu-jquery-plugin/</link>
		<comments>http://blog.waiyanlin.net/2010/08/11/tutorial-how-to-create-a-simple-drop-down-menu-jquery-plugin/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 02:30:07 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=207</guid>
		<description><![CDATA[I&#8217;ve been using jQuery for quite a long time and simply love the power of it. It helps to speed up my development time like what they say: &#8216;write less, do more&#8217;. And I also used many jQuery plugins depending on my development&#8217;s needs. There are many great plugins which...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using jQuery for quite a long time and simply love the power of it. It helps to speed up my development time like what they say: &#8216;write less, do more&#8217;. And I also used many jQuery plugins depending on my development&#8217;s needs. There are many great plugins which will make your life much easier.</p>
<p>In this tutorial, I will share how to write a simple plugin for your drop-down navigation menu.</p>
<p><strong>Basic Structure</strong></p>
<p>Lets take a look at the basic structure of jQuery plugin. (If you wish, you can read <a href="http://docs.jquery.com/Plugins/Authoring" target="_blank">the official article</a> for writing a plugin)</p>
<blockquote><p>(function($) {</p>
<p>$.fn.yourplugin = function() {</p>
<p>this.each(function() {    <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span> //your code comes here</p>
<p>});</p>
<p>return this;</p>
<p>};</p>
<p>})(jQuery);</p>
</blockquote>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">(function($) {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$.fn.yourplugin = function() {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">this.each(function() {    <span style="white-space: pre;"> </span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span> //your code comes here</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">});</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">return this;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">};</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 16px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">})(jQuery);</div>
<p><strong>Options</strong></p>
<p><strong><span style="font-weight: normal; ">You might want to include some options to let the users to change easily without touching your plugin&#8217;s code. </span></strong></p>
<blockquote><p>(function($) {</p>
<p>$.fn.yourplugin = function() {</p>
<p>//set default values of your options</p>
<p>var config = {</p>
<p><span style="white-space:pre"> </span> &#8216;option1&#8242;: value&#8217;,</p>
<p><span style="white-space:pre"> </span> &#8216;option2&#8242;: &#8216;value&#8217;</p>
<p>};</p>
<p>var settings = $.extend(config, settings);</p>
<p>this.each(function() {</p>
<p><span style="white-space:pre"> </span> //default options. you can call your settings like &#8216;s.option1&#8242; or &#8216;s.option2&#8242;<span style="white-space:pre"> </span> <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span> var s = settings;</p>
<p>//your code comes here</p>
<p>});</p>
<p>return this;</p>
<p>};</p>
<p>})(jQuery);</p>
</blockquote>
<p>Now we know what basic plugin structure looks like. Lets create our very simple drop-down menu plugin. First of all, we need to create a navigation menu before we move on to the plugin. Here&#8217;s how it looks like:</p>
<blockquote><p>&lt;div id=&#8221;navwrap&#8221;&gt;</p>
<p>&lt;ul id=&#8221;nav&#8221;&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1&lt;/a&gt;</p>
<p>&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.1&lt;/a&gt;</p>
<p>&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.1.1&lt;/a&gt;</p>
<p>&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.1.1.1&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.1.2&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.2&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 1.3&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 2 Is Long&lt;/a&gt;</p>
<p>&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 2.1&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 3&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Menu Item 4&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;/div&gt;</p>
</blockquote>
<p><strong>CSS</strong></p>
<p>Then, we need to set some css rules for our menu.</p>
<blockquote><p>ul#nav{</p>
<p><span style="white-space:pre"> </span>list-style: none;</p>
<p><span style="white-space:pre"> </span>margin: 0;</p>
<p><span style="white-space:pre"> </span>padding: 0;</p>
<p><span style="white-space:pre"> </span>position: relative;</p>
<p>}</p>
<p>ul#nav li{</p>
<p><span style="white-space:pre"> </span>float:left;</p>
<p><span style="white-space:pre"> </span>background-color: #0088AA;</p>
<p><span style="white-space:pre"> </span>position:relative;</p>
<p><span style="white-space:pre"> </span>display:block;</p>
<p><span style="white-space:pre"> </span>margin-right:1px;</p>
<p><span style="white-space:pre"> </span>font-size:14px;</p>
<p>}</p>
<p>ul#nav li a{</p>
<p><span style="white-space:pre"> </span>color:#FFF;</p>
<p><span style="white-space:pre"> </span>text-decoration: none;<span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span>padding:5px;</p>
<p><span style="white-space:pre"> </span>display:block;</p>
<p><span style="white-space:pre"> </span>position:relative;</p>
<p><span style="white-space:pre"> </span>width:100%;</p>
<p>}</p>
<p>ul#nav ul{</p>
<p><span style="white-space:pre"> </span>margin:0;</p>
<p><span style="white-space:pre"> </span>padding:0;</p>
<p><span style="white-space:pre"> </span>position:absolute;</p>
<p><span style="white-space:pre"> </span>width:100%;</p>
<p>}</p>
<p>ul#nav li li{</p>
<p><span style="white-space:pre"> </span>position:relative;</p>
<p><span style="white-space:pre"> </span>background-color:#0077AA;</p>
<p><span style="white-space:pre"> </span>display:block;</p>
<p><span style="white-space:pre"> </span>margin:0;</p>
<p><span style="white-space:pre"> </span>border-top:solid 1px #FFF;</p>
<p><span style="white-space:pre"> </span>width:100%;</p>
<p><span style="white-space:pre"> </span>font-size:11px;</p>
<p>}</p>
<p>ul#nav ul ul{</p>
<p><span style="white-space:pre"> </span>position:absolute;</p>
<p><span style="white-space:pre"> </span>left:100%;</p>
<p><span style="white-space:pre"> </span>top:0;</p>
<p><span style="white-space:pre"> </span>margin:0 0 0 1px;</p>
<p><span style="white-space:pre"> </span>width:100%;</p>
<p>}</p>
</blockquote>
<p>Now, we will create the plugin which will use jQuery slideDown/Up effect for drop-down animation and giving one option for users to change the animation speed.</p>
<blockquote><p>(function($) {</p>
<p>$.fn.jDropDown = function(settings) {</p>
<p>//option for speed with default value of 500 milliseconds</p>
<p>var config = {</p>
<p><span style="white-space:pre"> </span> &#8216;speed&#8217;: &#8217;500&#8242;</p>
<p>};</p>
<p>var settings = $.extend(config, settings);</p>
<p>this.each(function() {</p>
<p><span style="white-space:pre"> </span> var s = settings;</p>
<p><span style="white-space:pre"> </span> var mainNav = this;    <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span> //set css to all second ul to display none</p>
<p><span style="white-space:pre"> </span> $(mainNav).find(&#8216;ul&#8217;).css({&#8216;display&#8217;:'none&#8217;});    <span style="white-space:pre"> </span> <span style="white-space:pre"> </span> <span style="white-space:pre"> </span> <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span> //hover event for each main li</p>
<p><span style="white-space:pre"> </span> $(mainNav).find(&#8216;li&#8217;).hover(</p>
<p><span style="white-space:pre"> </span>function(){</p>
<p><span style="white-space:pre"> </span>$(this).find(&#8216;ul:first&#8217;).slideDown(s.speed);    <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span>},</p>
<p><span style="white-space:pre"> </span>function(){</p>
<p><span style="white-space:pre"> </span>$(this).find(&#8216;ul:first&#8217;).slideUp(s.speed);    <span style="white-space:pre"> </span></p>
<p><span style="white-space:pre"> </span>}</p>
<p><span style="white-space:pre"> </span>);</p>
<p><span style="white-space:pre"> </span></p>
<p>});</p>
<p>return this;</p>
<p>};</p>
<p>})(jQuery);</p>
</blockquote>
<p>This is all we have to do. Now, you can use this plugin by putting the following code in your html page between &lt;head&gt; and &lt;/head&gt;</p>
<blockquote><p>&lt;script&gt;</p>
<p>$(document).ready(function(){</p>
<p><span style="white-space:pre"> </span>$(&#8216;ul#nav&#8217;).jDropDown({</p>
<p><span style="white-space:pre"> </span>&#8216;speed&#8217;: 300</p>
<p><span style="white-space:pre"> </span>});</p>
<p>});</p>
<p>&lt;/script&gt;</p>
</blockquote>
<p>It is not too difficult to create your own jQuery plugin. I hope this tutorial will help you to write some cool plugins. If you have any doubt, feel free to write in the comment section below.</p>
<p><a href="http://blog.waiyanlin.net/example/jquery/jdropdown/" target="_blank">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2010/08/11/tutorial-how-to-create-a-simple-drop-down-menu-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Easiest way to display random image using PHP</title>
		<link>http://blog.waiyanlin.net/2010/07/30/tutorial-easiest-way-to-display-random-image-using-php/</link>
		<comments>http://blog.waiyanlin.net/2010/07/30/tutorial-easiest-way-to-display-random-image-using-php/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 08:01:59 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=201</guid>
		<description><![CDATA[First of all, this tutorial is mainly for the beginners who start learning programming especially PHP. If you are building some website and sometimes, you might need to display a random image per page load. It that case, you could use this method. There might be some other ways to achieve this but I find that this is the easiest way at least, for me.]]></description>
			<content:encoded><![CDATA[<p>First of all, this tutorial is mainly for the beginners who start learning programming especially PHP. If you are building some website and sometimes, you might need to display a random image per page load. It that case, you could use this method. There might be some other ways to achieve this but I find that this is the easiest way at least, for me.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&lt;?php</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$iArr = array(&#8216;image1.jpg&#8217;, &#8216;image2.jpg&#8217;, &#8216;image3.jpg&#8217;);</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$no = sizeof($iArr)-1;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$random = mt_rand(0, $no);</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$path = &#8216;images/&#8217;;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ranImg = $iArr[$random];</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$img = $path.$ranImg;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo $img;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8216;&lt;img src=&#8221;&#8216;.$img.&#8217;&#8221; alt=&#8221;"/&gt;&#8217;;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">?&gt;</div>
<blockquote><p>&lt;?php</p>
<p>$iArr = array(&#8216;image1.jpg&#8217;, &#8216;image2.jpg&#8217;, &#8216;image3.jpg&#8217;); //create an array of image</p>
<p>$no = sizeof($iArr)-1;</p>
<p>$random = mt_rand(0, $no); //get random number between 0 and array size</p>
<p>$path = &#8216;images/&#8217;; //this is the path to your images</p>
<p>$ranImg = $iArr[$random]; //get random image from array</p>
<p>$img = $path.$ranImg; //the full image path e.g. images/image1.jpg</p>
<p>echo &#8216;&lt;img src=&#8221;&#8216;.$img.&#8217;&#8221; alt=&#8221;"/&gt;&#8217;; //display the random image</p>
<p>?&gt;</p>
</blockquote>
<p>I believe the code is quite simple and self explained. Please feel free to share your thoughts in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2010/07/30/tutorial-easiest-way-to-display-random-image-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Look</title>
		<link>http://blog.waiyanlin.net/2010/06/25/new-look/</link>
		<comments>http://blog.waiyanlin.net/2010/06/25/new-look/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 08:30:40 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=196</guid>
		<description><![CDATA[It&#8217;s been very long time I never write a single blog post. It&#8217;s needless to say that I was busy with my both work and personal stuff for the past few month. But in that time, I used some of my tiny free time to re-design my online portfolio website...]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been very long time I never write a single blog post. It&#8217;s needless to say that I was busy with my both work and personal stuff for the past few month. But in that time, I used some of my tiny free time to re-design my online portfolio website as well as this blog template.</p>
<p><a href="http://www.waiyanlin.net"><img class="alignnone size-full wp-image-197" title="Portfolio Website" src="http://blog.waiyanlin.net/wp-content/uploads/2010/06/web_sreenshot_250610.jpg" alt="Portfolio Website" width="600" height="295" /></a></p>
<p>I decided to go for a minimalist design for my both portfolio site and  blog. And I choose dark color which is my favorite as my main color  scheme. My main objective is that it should be simple, clean, minimal  usage of images but still user friendly and faster to load the content. I  use the same basic template design for my blog and portfolio website to  make it look consistent. Have a look and tell me what do you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2010/06/25/new-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Premium WordPress Theme: Featured</title>
		<link>http://blog.waiyanlin.net/2009/10/27/free-premium-wordpress-theme-featured/</link>
		<comments>http://blog.waiyanlin.net/2009/10/27/free-premium-wordpress-theme-featured/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 03:05:33 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=184</guid>
		<description><![CDATA[I am giving away another free premium wordpress theme named "Featured". This is magazine style theme with easily customizable featured post gallery on home page. Visit <a href="http://www.waiyanlin.net/wpthemes/featured/" target="_blank">here</a> to see live demo and if you like this theme, <a href="http://www.waiyanlin.net/download/wpthemes/featured.zip" target="_blank">download</a> here.</p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-185" title="featured_theme" src="http://blog.waiyanlin.net/wp-content/uploads/2009/10/featured_theme.jpg" alt="featured_theme" width="450" height="216" /></p>
<p>I am giving away another free premium wordpress theme named &#8220;Featured&#8221;. This is magazine style theme with easily customizable featured post gallery on home page. Visit <a href="http://www.waiyanlin.net/wpthemes/featured/" target="_blank">here</a> to see live demo and if you like this theme, <a href="http://www.waiyanlin.net/download/wpthemes/featured.zip" target="_blank">download</a> here.</p>
<h3>Theme Features</h3>
<ul>
<li>Widgetized sidebar</li>
<li>Featured Post Gallery on Home Page</li>
<li>Compatible with all major browsers (Firefox, IE6/7/8, Safari)</li>
<li> Theme Options Admin Panel ( to manage easily your theme settings )</li>
<li>Create thumbnail automatically using <a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/" target="_blank">timthumb.php</a></li>
<li>Fixed Layout</li>
<li>Tested With WordPress 2.8</li>
<li>Valid XHTML &amp; CSS</li>
</ul>
<p><a href="http://www.waiyanlin.net/wpthemes/featured/" target="_blank">demo</a> | <a href="http://www.waiyanlin.net/download/wpthemes/featured.zip" target="_blank">download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2009/10/27/free-premium-wordpress-theme-featured/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Free WordPress Theme: CodeF</title>
		<link>http://blog.waiyanlin.net/2009/10/05/free-wordpress-theme-codef/</link>
		<comments>http://blog.waiyanlin.net/2009/10/05/free-wordpress-theme-codef/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 07:43:34 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=177</guid>
		<description><![CDATA[This is a simple and clean 2 column wordpress theme releasing free for everyone. This theme is most suitable for those who want a simple design for personal blogging.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-181" title="codef_pic" src="http://blog.waiyanlin.net/wp-content/uploads/2009/10/codef_pic1.jpg" alt="codef_pic" width="450" height="201" /></p>
<p>This is a simple and clean 2 column wordpress theme releasing free for everyone. This theme is most suitable for those who want a simple design for personal blogging.</p>
<ul>
<li>WordPress version: 2.8</li>
<li>Column: 2</li>
<li>Widget Ready: Yes</li>
<li>Layout: Fixed</li>
<li>Browsers: Firefox 3+, IE6/7/8, Safari</li>
<li>Valid XHTML/CSS: Yes</li>
</ul>
<p><a href="http://www.waiyanlin.net/wpthemes/codef/" target="_blank">Demo</a> | <a href="http://www.waiyanlin.net/download/wpthemes/codef.zip" target="_blank">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2009/10/05/free-wordpress-theme-codef/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Flying Text With Fade Effect</title>
		<link>http://blog.waiyanlin.net/2008/12/17/jquery-flying-text-with-fade-effect/</link>
		<comments>http://blog.waiyanlin.net/2008/12/17/jquery-flying-text-with-fade-effect/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 17:01:00 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=154</guid>
		<description><![CDATA[<p>With this great javascript framework, jQuery, you can create some flash like effects. In this post, I will show how to create very simple flying and fading text effect using jQuery. Here is live <a href="http://blog.waiyanlin.net/example/jquery/flyingtext.html" target="_blank">demo</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>With this great javascript framework, jQuery, you can create some flash like effects. In this post, I will show how to create very simple flying and fading text effect using jQuery. Here is live <a href="http://blog.waiyanlin.net/example/jquery/flyingtext.html" target="_blank">demo</a>.</p>
<p><code><span style="color: #000000;"></p>
<p></span></code></p>
<p><span style="color: #000000;">javascript:</span></p>
<blockquote><p>$(&#8216;.container .flying-text&#8217;).css({opacity:0}); //set all text opacity to 0</p>
<p>$(&#8216;.container .active-text&#8217;).animate({opacity:1, marginLeft: &#8220;350px&#8221;}, 4000); //animate first text</p>
<p>var int = setInterval(changeText, 5000); // call changeText function every 5 seconds</p>
<p>function changeText(){</p>
<p>var $activeText = $(&#8220;.container .active-text&#8221;); //get current text</p>
<p>var $nextText = $activeText.next();  //get next text</p>
<p>if($activeText.next().length == 0) $nextText = $(&#8216;.container .flying-text:first&#8217;); //if it is last text, loop back to first text</p>
<p>$activeText.animate({opacity:0}, 1000); //set opacity 0 to animated text</p>
<p>$activeText.animate({marginLeft: &#8220;-100px&#8221;}); //set animated text position to default</p>
<p>//animate next text</p>
<p>$nextText.css({opacity: 0}).addClass(&#8216;active-text&#8217;).animate({opacity:1, marginLeft: &#8220;350px&#8221;}, 4000, function(){</p>
<p>$activeText.removeClass(&#8216;active-text&#8217;);</p>
<p>});</p>
<p>}</p>
</blockquote>
<p>HTML:</p>
<blockquote><p>&lt;div class=&#8221;container&#8221;&gt;</p>
<p>&lt;h3 class=&#8221;flying-text active-text&#8221;&gt;I believe&lt;/h3&gt;</p>
<p>&lt;h3 class=&#8221;flying-text&#8221;&gt;I can&lt;/h3&gt;</p>
<p>&lt;h3 class=&#8221;flying-text&#8221;&gt;Fly&lt;/h3&gt;</p>
<p>&lt;/div&gt;</p>
</blockquote>
<p>CSS:</p>
<blockquote><p>body{</p>
<p>background-color:#000;</p>
<p>}</p>
<p>.container{</p>
<p>background-color:#000;</p>
<p>width:500px;</p>
<p>margin:0 auto;</p>
<p>color:#FFF;</p>
<p>overflow:hidden;</p>
<p>}</p>
<p>.flying-text{</p>
<p>margin-left:-100px;</p>
<p>}</p>
</blockquote>
<p>Check this live <a href="http://blog.waiyanlin.net/example/jquery/flyingtext.html" target="_blank">demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2008/12/17/jquery-flying-text-with-fade-effect/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Run Linux Live CDs Inside Windows With MobaLiveCD</title>
		<link>http://blog.waiyanlin.net/2008/09/26/run-linux-live-cds-inside-window-with-mobalivecd/</link>
		<comments>http://blog.waiyanlin.net/2008/09/26/run-linux-live-cds-inside-window-with-mobalivecd/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 17:21:14 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[emulation]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=149</guid>
		<description><![CDATA[Read this post in:[ English &#124; Burmese ] If you are thinking of trying Linux OS on your PC, MobaLiveCD will make it easier for you. It is a free tool that allows you to run your favorite Linux Live CD inside your Windows without installing or rebooting your PC....]]></description>
			<content:encoded><![CDATA[<div class="language-box">Read this post in:<br/>[ <a href="" class="eng">English</a> |	<a href="" class="bur">Burmese</a> ]<br />
<br/></p>
<div class="english">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/mobalivecd1.jpg" alt="" title="mobalivecd1" width="400" height="188" class="aligncenter size-full wp-image-151" /></p>
<p>If you are thinking of trying Linux OS on your PC, <a href="http://mobalivecd.mobatek.net/en/" target="_blank">MobaLiveCD</a> will make it easier for you. It is a free tool that allows you to run your favorite Linux Live CD inside your Windows without installing or rebooting your PC. It is very light (1.6MB) and you can run it from your thumb drive.<br />
It is simple enough that you just get any ISO image of your favorite Live CD, run MobaLiveCD and point to ISO image. But you are running two OS at the same time and don&#8217;t expect it will be fast. I tested with Ubuntu 8.04.1 and it took more than 5 mins to load. If you are testing it on Vista, don&#8217;t forget to run MobaLiveCD as an Administrator (Right Click and Run as Administrator) to make it work.</p>
<p>(via &#8211; <a href="http://www.lifehacker.com.au/tips/2008/09/22/mobalivecd_runs_linux_live_cds_inside_windows-2.html" target="_blank">Lifehacker</a>)<br />
<br/></p>
</div>
<div class="burmese">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/mobalivecd1.jpg" alt="" title="mobalivecd1" width="400" height="188" class="aligncenter size-full wp-image-151" /></p>
<p>တကယ္လို႔ PC ေပၚမွာ Linux OS တစ္ခုကို အစမ္းသေဘာအေနနဲ႔ သံုးၾကည့္ခ်င္တယ္ဆိုရင္ေတာ့ <a href="http://mobalivecd.mobatek.net/en/" target="_blank">MobaLiveCD</a> ဆိုတာနဲ႔ အလြယ္တကူပဲ စမ္းႏိုင္ပါတယ္။ သူကေတာ့ PC ကို reboot သို႔မဟုတ္ install လုပ္စရာမလိုပဲနဲ႔ ႀကိဳက္ရာ Linux Live CD တစ္ခုကို ခ်က္ခ်င္းေကာက္ run ေပးပါတယ္။ size အေနနဲ႔လဲ အေတာ္ေပါ့ပါးၿပီးေတာ့ thumb drive ထဲကေနလဲ run လို႔ရပါတယ္။<br />
လုပ္ရမွာကလဲ လြယ္ပါတယ္။ ႀကိဳက္တဲ့ Linux Live CD တစ္ခုကို download လုပ္လိုက္ေပါ့။ ၿပီးရင္ MobaLiveCD ကိုဖြင့္ၿပီး Live CD ရဲ႕ ISO image ကို point လုပ္ေပးလိုက္ရံုပါပဲ။ ဒါေပမယ့္ OS ႏွစ္ခုကို တစ္ၿပိဳင္ထဲ run ေနတာဆိုေတာ့ သံုးရတာ ျမန္မွာေတာ့ မဟုတ္ပါဘူး။ ကၽြန္ေတာ္ Ubuntu 8.04.1 နဲ႔စမ္းၾကည့္တာေတာ့ load လုပ္ေနတာ ၅ မိနစ္မကၾကာပါတယ္။ Vista ေပၚမွာစမ္းေနတာဆိုရင္ေတာ့ MobaLiveCD ကို run တဲ့အခါမွာ Administrator အေနနဲ႔ (Right Click and run as Administrator) run ဖို႔ကိုမေမ့လိုက္နဲ႔ဦး။ </p>
<p>(via &#8211; <a href="http://www.lifehacker.com.au/tips/2008/09/22/mobalivecd_runs_linux_live_cds_inside_windows-2.html" target="_blank">Lifehacker</a>)<br />
<br/></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2008/09/26/run-linux-live-cds-inside-window-with-mobalivecd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FormatFactory: Another Media Converter</title>
		<link>http://blog.waiyanlin.net/2008/09/26/formatfactory-media-converter/</link>
		<comments>http://blog.waiyanlin.net/2008/09/26/formatfactory-media-converter/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 16:34:52 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[converter]]></category>
		<category><![CDATA[freeware]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=147</guid>
		<description><![CDATA[Read this post in:[ English &#124; Burmese ] FormatFactory is a free media converter as well as a DVD ripper. It supports a large number of file formats that can be converted. You can convert all popular audio, video, picture and even mobile devices format such as iPhone or PSP....]]></description>
			<content:encoded><![CDATA[<div class="language-box">Read this post in:<br/>[ <a href="" class="eng">English</a> |	<a href="" class="bur">Burmese</a> ]<br />
<br/></p>
<div class="english">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/formatfactory.jpg" alt="" title="formatfactory" width="400" height="285" class="aligncenter size-full wp-image-148" /></p>
<p><a href="http://www.formatoz.com/download.html" target="_blank">FormatFactory</a> is a free media converter as well as a DVD ripper. It supports a large number of file formats that can be converted. You can convert all popular audio, video, picture and even mobile devices format such as iPhone or PSP. It allows you to zoom, rotate or flip the image before you convert these. The interface is very simple and straight forward. It has 4 default skins that you can choose and also supports 30 different languages. FormatFactory is only for Windows.<br />
<br/></p>
</div>
<div class="burmese">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/formatfactory.jpg" alt="" title="formatfactory" width="400" height="285" class="aligncenter size-full wp-image-148" /></p>
<p><a href="http://www.formatoz.com/download.html" target="_blank">FormatFactory</a> ကို media converter အေနနဲ႔သံုးႏိုင္သလို DVD ripping tool အေနနဲ႔ သံုးမယ္ဆိုရင္လဲ ရပါတယ္။ သူ႕မွာ file format အေတာ္မ်ားမ်ားကို ေျပာင္းႏိုင္ေအာင္ လုပ္ေပးထားပါတယ္။ လူသံုးမ်ားတဲ့ audio, video နဲ႔ picture ဖိုင္အမ်ိဳးအစားေတြသာမက iPhone ဒါမွမဟုတ္ PSP စတဲ့ mobile device ေတြမွာသံုးတဲ့ ဖိုင္အမ်ိဳးအစားေတြကိုပါ ေျပာင္းလို႔ရပါတယ္။ ရုပ္ပံုေတြကို ေျပာင္းတဲ့အခါမွာလဲ zoom တို႔ rotate ဒါမွဟုတ္ flip တို႔ကိုလည္း လုပ္လို႔ရပါတယ္။ သူ႕ရဲ႕ inteface ကအေတာ္ေလးကို ရိုးရွင္းၿပီး အသံုးျပဳရတာလဲ လြယ္ကူပါတယ္။ Skin ၄ခုကုိေရြးခ်ယ္သံုးႏိုင္တဲ့အျပင္ ဘာသာစကားေပါင္း ၃၀ ကိုလည္း ေျပာင္းသံုးႏိုင္ပါတယ္။ ဒါေပမယ့္ ထံုးစံအတုိင္း ကၽြန္ေတာ္တို႔ ျမန္မာဘာသာေတာ့ မပါဘူးေပါ့ဗ်ာ။<br />
<br/></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2008/09/26/formatfactory-media-converter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Start++: Make Vista Start Menu More Useful</title>
		<link>http://blog.waiyanlin.net/2008/09/18/start-make-vista-start-menu-more-useful/</link>
		<comments>http://blog.waiyanlin.net/2008/09/18/start-make-vista-start-menu-more-useful/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 17:13:28 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[start menu]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=142</guid>
		<description><![CDATA[Read this post in:[ English &#124; Burmese ] Start++ adds a number of useful functions to Windows Vista start menu. By using this, web search can be done in your start menu. If you want to search in Google, just type g (space) followed by your search input and it...]]></description>
			<content:encoded><![CDATA[<div class="language-box">Read this post in:<br/>[ <a href="" class="eng">English</a> |	<a href="" class="bur">Burmese</a> ]<br />
<br/></p>
<div class="english">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/start1.jpg" alt="" title="start1" width="250" height="331" class="aligncenter size-full wp-image-144" align="left" style="padding-right:10px;"/><a href="http://brandontools.com/content/StartPlusPlus.aspx" target="_blank">Start++</a> adds a number of useful functions to Windows Vista start menu. By using this, web search can be done in your start menu. If you want to search in Google, just type g (space) followed by your search input and it will show the Google search result. Google, Yahoo and Wikipedia are supported by default. And if you want your own function, you can set up new custom keywords.<br />
Another useful function is that if you need to run a command with admin privileges, type &#8216;sudo&#8217; followed by your command and it will run that with admin privileges. It also has a few list of <a href="http://brandontools.com/files/5/default.aspx" target="_blank">plug-ins</a> to extend it.</p>
<p>(via &#8211; <a href="http://www.downloadsquad.com/2008/09/16/start-makes-vistas-start-menu-wicked-useful/" target="_blank">downloadsquad</a>)<br />
<br/></p>
</div>
<div class="burmese">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/start1.jpg" alt="" title="start1" width="250" height="331" class="aligncenter size-full wp-image-144" align="left" style="padding-right:10px;"/><a href="http://brandontools.com/content/StartPlusPlus.aspx" target="_blank">Start++</a> ဆိုတာေလးက Windows Vista ရဲ႕ start menu ကိုပိုၿပီး အသံုး၀င္ႏိုင္တဲ့ function ေလးေတြထည့္ေပးတဲ့ free application တစ္ခုျဖစ္ပါတယ္။ အဲဒါကိုသံုးၿပီး web search ေတြကို start menu ထဲမွာပဲ ရွာႏိုင္ပါတယ္။ ဥပမာ &#8211; Google မွာတစ္ခုခုရွာခ်င္ရင္ g နဲ႔ space ရိုက္ၿပီး အဲဒီေနာက္မွာ ရွာခ်င္တဲ့ဟာ ရိုက္ထည့္လိုက္။ search result ေတြ start menu ထဲမွာ ေပၚလာပါလိမ့္မယ္။ Google, Yahoo နဲ႔ Wikipedia စတာေတြက အစတည္းက default ပါၿပီးသားပါ။ တျခားကုိယ္ႀကိဳက္တာ ထပ္ထည့္ခ်င္ရင္လဲ ကိုယ္ပိုင္ custom keyword ေတြထပ္ေပးလို႔ရပါတယ္။<br />
ေနာက္ထပ္ အသံုး၀င္ႏိုင္တာတစ္ခုကေတာ့ admin privileges လိုတဲ့ command ေတြ run ခ်င္ရင္ &#8216;sudo&#8217; ဆိုတဲ့ဟာကိုရိုက္ၿပီး ေနာက္ကေန ကိုယ္ရိုက္ခ်င္တဲ့ command ရိုက္လိုက္တာနဲ႔ အဲဒီ command ကို admin privileges နဲ႔ run ပါတယ္။ ေနာက္ၿပီး <a href="http://brandontools.com/files/5/default.aspx" target="_blank">plug-ins</a> ေတြကိုလဲ ထပ္ထည့္လို႔ရပါေသးတယ္တဲ့ဗ်။</p>
<p>(via &#8211; <a href="http://www.downloadsquad.com/2008/09/16/start-makes-vistas-start-menu-wicked-useful/" target="_blank">downloadsquad</a>)<br />
<br/></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2008/09/18/start-make-vista-start-menu-more-useful/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VLC media player 0.9.2 is Released</title>
		<link>http://blog.waiyanlin.net/2008/09/17/vlc-media-player-092-is-released/</link>
		<comments>http://blog.waiyanlin.net/2008/09/17/vlc-media-player-092-is-released/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 17:27:29 +0000</pubDate>
		<dc:creator>waiyan</dc:creator>
				<category><![CDATA[freeware]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://blog.waiyanlin.net/?p=139</guid>
		<description><![CDATA[Read this post in:[ English &#124; Burmese ] The latest version of popular open source media player has been released a few days ago. This new version, VLC 0.9.2, adds a new user interface which looks better. Many new inputs and codecs are supported in this version, and one big...]]></description>
			<content:encoded><![CDATA[<div class="language-box">Read this post in:<br/>[ <a href="" class="eng">English</a> |	<a href="" class="bur">Burmese</a> ]<br />
<br/></p>
<div class="english">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/vlc-092.jpg" alt="" title="vlc-092" width="400" height="166" class="aligncenter size-full wp-image-141" /></p>
<p>The latest version of popular open source media player has been released a few days ago. This new version, <a href="http://www.videolan.org/" target="_blank">VLC 0.9.2</a>, adds a new user interface which looks better.<br />
Many new inputs and codecs are supported in this version, and one big improvement is that we can see the controls when we are watching video in full screen mode. It has live search feature in the playlist and also support YouTube, Google Video or Dailymotion videos playback by just entering their URLs. </p>
<p><br/></p>
</div>
<div class="burmese">
<img src="http://blog.waiyanlin.net/wp-content/uploads/2008/09/vlc-092.jpg" alt="" title="vlc-092" width="400" height="166" class="aligncenter size-full wp-image-141" /></p>
<p>လူသံုးမ်ားၿပီး open source media player တစ္ခုျဖစ္တဲ့ <a href="http://www.videolan.org/" target="_blank">VLC media player</a> ကသူ႔ရဲ႕ေနာက္ဆံုး version အသစ္ကို ထုတ္လိုက္ပါတယ္။ အဲဒီ <a href="http://www.videolan.org/" target="_blank">VLC 0.9.2</a> မွာပိုေကာင္းတဲ့ interface အသစ္ကိုျမင္ရမွာျဖစ္ပါတယ္။<br />
ေနာက္ၿပီး inputs ေတြ codecs အသစ္ေတြကိုလည္း ဒီ version မွာ support လုပ္လာပါတယ္။ ကၽြန္ေတာ္ႀကိဳက္တာတစ္ခုကေတာ့ full screen mode မွာ controls ေတြထည့္ေပးထားတာပါ။ playlist မွာလဲ live search ရွာလို႔ရလာပါတယ္။ ၿပီးေတာ့ YouTube, Google Video ဒါမွဟုတ္ Dailymotion  စတဲ့ site ေတြက video ေတြကို သူတို႔ URL ထည့္ေပးၿပီး တိုက္ရိုက္ၾကည့္လို႔ရပါတယ္။<br />
<br/></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waiyanlin.net/2008/09/17/vlc-media-player-092-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

