<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Roshan Bhattarai's Blog -  A blog about PHP, Ajax, JavaScript, CSS and Web 2.0</title>
	
	<link>http://roshanbh.com.np</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Thu, 10 Jun 2010 11:38:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/phpajaxguru" /><feedburner:info uri="phpajaxguru" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-sa/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>phpajaxguru</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/phpajaxguru" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpajaxguru" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>Please choose the appropriate feed reader.</feedburner:browserFriendly><item>
		<title>Sleek and Smooth animated menu using jQuery</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/YKNWS1uBnkQ/sleek-smooth-animated-menu-jquery.html</link>
		<comments>http://roshanbh.com.np/2009/07/sleek-smooth-animated-menu-jquery.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 09:54:55 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=332</guid>
		<description><![CDATA[Today, I&#8217;m going to show you something interesting with jQuery. Yesterday I was thinking something to post something programming related stuff  in blog after long time and I came across a website, whose menu impressed me a lot. But checking it in a while, I found it it was built using mootools.  Since it was [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I&#8217;m going to show you something interesting with jQuery. Yesterday I was thinking something to post something programming related stuff  in blog after long time and I came across a website, whose menu impressed me a lot. But checking it in a while, I found it it was built using mootools.  Since it was in mootools, I thought of replicating it in jQuery. I have two example of similar menu, first using jQuery core and CSS and another uses <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">jQuery easing plugin</a> to give bounce effect to the same menu.And I&#8217;ve added one more example which I though would be nice menu to show you guys.<span id="more-332"></span></p>
<p><strong><a title="sleek and smooth jquery menu" href="http://roshanbh.com.np/examples/sleek-smooth-hover-menu/" target="_blank">VIEW DEMO</a></strong></p>
<p>First of let me start, with the images which i&#8217;ve used in the background to create the first two menus.</p>
<p><img class="alignnone" style="border:none;" title="smooth jquery menu" src="http://roshanbh.com.np/examples/sleek-smooth-hover-menu/bg.png" alt="smooth jquery menu" width="192" height="25" /> and <img class="alignnone" style="border:none;" title="sleek jquery menu" src="http://roshanbh.com.np/examples/sleek-smooth-hover-menu/bg-right.png" alt="sleek jquery menu" width="8" height="25" /></p>
<p style="text-align: justify;">Please note that the please keep the left image as big as possible if you&#8217;re menu text can be long.</p>
<p style="text-align: justify;">Now, let&#8217;s look at the html code</p>
<h4>Html code for the animated jquery menu</h4>
<pre class="prettyprint" style="overflow:auto">&lt;ul class="nav" id="nav1"&gt;
   &lt;li class="first"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="#"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="#"&gt;About us&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt;
   &lt;li class="last"&gt;&lt;a href="#"&gt;Tutorials&lt;/a&gt;&lt;/li&gt;
   &lt;li class="bg"&gt;&lt;div class="left"&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p style="text-align: justify;">All the list elements are fairly simple and the list with class &#8220;<strong>bg</strong>&#8221; is the one which holds the background image for the menu. The code is same for the first and second example but for the third example we use list with class <strong>ybg </strong>instead of bg.</p>
<pre style="border: 1px solid #888888; padding: 2px;"> &lt;li class="ybg"&gt;&lt;/li&gt;</pre>
<h4>CSS code for the smooth jQuery menu</h4>
<pre style="border: 1px solid #888888; padding: 2px"><span style="color: #ff00ff;">ul.nav {</span> <span style="color: #000080;">list-style:none;  overflow:hidden;</span>  <span style="color: #ff00ff;">}

ul.nav li {</span> <span style="color: #000080;">float:left; height:39px; background-color:#000;  padding:0 5px;</span> <span style="color: #ff00ff;"> }

ul.nav li.first {</span>
  <span style="color: #000080;">-moz-border-radius-topleft:9px; -webkit-border-top-left-radius:9px;
  -moz-border-radius-bottomleft:9px;  -webkit-border-bottom-left-radius:9px;</span>
<span style="color: #ff00ff;">}

ul.nav li.last {</span>
<span style="color: #000080;">-moz-border-radius-topright:9px; -webkit-border-top-right-radius:9px;
-moz-border-radius-bottomright:9px; -webkit-border-bottom-right-radius:9px;</span>
<span style="color: #ff00ff;">}

ul.nav li.bg {</span>
  <span style="color: #000080;"> margin:7px 0px 0px 3px; padding-right:8px; position:absolute;
   z-index:50; left:155px; width:60px; background:url(bg-right.png) no-repeat right top;</span>
<span style="color: #ff00ff;">}

ul.nav li .left {</span><span style="color: #000080;"> background:url(bg.png) no-repeat left top; height:39px; </span> <span style="color: #ff00ff;">}

ul.nav li a {</span>
  <span style="color: #000080;">padding:8px 20px;  color:#FFF; font-size:18px; font-weight:bold; display:block;
  text-decoration:none; z-index:100; position:relative;</span>
<span style="color: #ff00ff;">}

ul.nav li.ybg {</span>
  <span style="color: #000080;">background-color:#FB0; position:absolute; z-index:50;
  left:165px; width:55px; height:4px; margin-top:6px;</span>
<span style="color: #ff00ff;">}</span></pre>
<p style="text-align: justify;">As you can see there, I&#8217;ve used CSS3 rounded corners for the first and last elements of list(obviously doesn&#8217;t work IE). Furthermore, the list with class <strong>bg</strong> is used for the first and second menu examples where the image is used in the background and which moves around on mouse hover on menu with sleek effect. Please note that this list must be positioned <span style="color: #800000;">absolutely</span>.</p>
<p style="text-align: justify;">The <strong>ybg</strong> class is used for the background effect for the third menu in the example, which first moves to the menu which has current mouse position and then starts sliding down.<br />
After this, let&#8217;s get into jQuery code for providing the sleek effect for the hover menu.</p>
<h4>jQuery code for animation in the  on menu</h4>
<pre class="prettyprint" style="overflow:auto">$('#nav1 li a').hover(function()
{
  var offset=$(this).offset();
  var thiswidth =$(this).width()+13;
  $('#nav1 li.bg').stop().animate({left:offset.left+"px",width:thiswidth+"px"},600);
},
function()
{
  $('#nav1 li.bg').stop().animate({left:"155px",width:"60px"},600);
});</pre>
</p>
<p style="text-align: justify;">The above is the code for the first menu. You can see that on the hover effect of anchor, first we&#8217;ve calculated the offset of menu and also width of the anchor element. Then, finally used animate function of jQuery to move the menu and increse the width of the background to create the nice and sleek effect.</p>
<p style="text-align: justify;">As you can see the second function of hover menu, which is called when mouse is released from the anchor, just reset back the menu to it&#8217;s original position.</p>
<p style="text-align: justify;">The code is exactly same for the second menu except the following line,</p>
<pre class="prettyprint" style="overflow:auto">$('#nav3 li.bg').stop().animate({left:"155px",width:"60px"},600,'easeOutBounce');</pre>
<p style="text-align: justify;">You can see the difference easily where I&#8217;ve used <strong>easeOutBounce</strong> easing effect for the bounce out effect when mouse is released form the menu.</p>
<pre class="prettyprint">$('#nav2 li a').hover(function()
{
  var offset=$(this).offset();
  var thiswidth =$(this).width()+13;
  $('#nav2 li.ybg').stop().animate({left:offset.left+9+"px",width:thiswidth+"px"},400,function(){
     $(this).animate({height:"28px"},150);
  });
},
function()
{
   $('#nav2 li.ybg').stop().animate({height:"4px"},150,function(){
      $(this).animate({left:"165px",width:"55px"},600,'easeOutBounce');
   });
});</pre>
<p style="text-align: justify;">And you can see in the above code of the third menu, first of all the menu gets slided to the current position of menu and then the height of the background gets increased to 28px, giving a nice effect. And when mouse is released from the menu, the same things happens but in the reverse order.</p>
<p style="text-align: justify;"><strong><a title="sleek and smooth jquery menu" href="http://roshanbh.com.np/codes/sleek-smooth-hover-menu.zip">DOWNLOAD SOURCE CODE</a></strong></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=332&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=YKNWS1uBnkQ:xYgTycHG7JQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=YKNWS1uBnkQ:xYgTycHG7JQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=YKNWS1uBnkQ:xYgTycHG7JQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=YKNWS1uBnkQ:xYgTycHG7JQ:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/YKNWS1uBnkQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2009/07/sleek-smooth-animated-menu-jquery.html/feed</wfw:commentRss>
		<slash:comments>50</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2009/07/sleek-smooth-animated-menu-jquery.html</feedburner:origLink></item>
		<item>
		<title>Back to blogging after 7 months</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/Gd7s4Mkl31o/back-to-blogging.html</link>
		<comments>http://roshanbh.com.np/2009/07/back-to-blogging.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 10:35:50 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=330</guid>
		<description><![CDATA[Hello friends, I&#8217;m extremely sorry for being away for a long time from this blog. I was missing this blog a lot but due to many circumstances I hadn&#8217;t had time to update this blog. There were many things happened to my life. But Finally, I&#8217;m back to the track and will start updating this [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hello friends, I&#8217;m extremely sorry for being away for a long time from this blog. I was missing this blog a lot but due to many circumstances I hadn&#8217;t had time to update this blog. There were many things happened to my life. But Finally, I&#8217;m  back to the track and will start updating this blog regularly.</p>
<h4><span id="more-330"></span>What I&#8217;ve been doing??</h4>
<p style="text-align: justify;">First of all, let me tell you one thing, I&#8217;ve been a married man now so there are a lot of responsibilities ahead for me. On the other hand, I&#8217;d been in Bangalore for last six months working for a start-up company there. And Finally, I&#8217;ve moved back to Kathmandu  and started a joint venture with <a rel="nofollow" href="http://www.linkedin.com/pub/haico-duisters/10/a91/43b" target="_blank">Haico Duisters</a> called <strong>Proshore Nepal</strong>. It is a Dutch-Nepali company, which has a <a href="http://www.proshore.eu" target="_blank">head office in the Netherlands</a> and  development office in Kathmandu.</p>
<p style="text-align: justify;">Apart from personal stuffs,  let&#8217;s talk about technical stuffs.<br />
I&#8217;ve written 5 series of articles about web widgets, how to create them and use them on Packt Publishing . You can check those articles here.</p>
<ol>
<li><a href="http://www.packtpub.com/article/development-of-ajax-web-widget" target="_blank"><strong>Development of Web Widget</strong> </a>- Introductory article</li>
<li><a href="http://www.packtpub.com/article/developing-wiki-seek-widget-using-javascript" target="_blank"><strong>Developing a wiki-seek Widget</strong> </a> (a widget to search in wikipedia.org)</li>
<li><strong><a href="http://www.packtpub.com/article/pop-up-image-widget-using-javascript-php-css" target="_blank">Pop-up Image Widget</a></strong> &#8211; a widget to show the pop-up image on mouse over event</li>
<li><a href="http://www.packtpub.com/article/rss-web-widget" target="_blank"><strong>RSS Web Widget</strong> </a>-  A widget to display the titles with link from specified RSS feed</li>
<li><strong><a href="http://www.packtpub.com/article/delicious-tagometer-widget" target="_blank">Delicious Tagometer Widget</a></strong> &#8211; A widget to display Tagometer from delicious.com</li>
</ol>
<p style="text-align: justify;">Furthermore, this blog has also been considered as a <strong><a rel="nofollow" href="http://www.ajaxline.com/10-interesting-php-blogs" target="_blank">10 Interesting PHP blogs</a></strong> by <strong>AjaxLine</strong>.A great thank to them for considering this blog to that level.</p>
<h4>What&#8217;s Next??</h4>
<p style="text-align: justify;">Well in the last six months, I&#8217;ve been contacted by many people asking what happened to you,  when you&#8217;ll start updating your blog etc. First of all, I would like to thanks those people who has much interest to this blog.  My plan will be to post 2 or 3 articles a week and I&#8217;ll be focusing more on the quality than quantity in upcoming days.</p>
<p style="text-align: justify;">If you really want to be in touch with me then you can follow me on twitter where I post useful web development related stuffs which I find on the web. Believe me, I don&#8217;t post stuffs like what I&#8217;m eating now, what i had for breakfast and what I&#8217;ll be having for dinner and when I&#8217;ll be heading for the dinner.</p>
<p><a href="http://twitter.com/roshanbh"><img title="Follow Roshan Bhattarai on twitter" src="http://roshanbh.com.np/images/Twitter-5.png" border="0" alt="Follow Roshan Bhattarai on twitter" width="108" height="65" /></a></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=330&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Gd7s4Mkl31o:rvJ3O-b0m80:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Gd7s4Mkl31o:rvJ3O-b0m80:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Gd7s4Mkl31o:rvJ3O-b0m80:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Gd7s4Mkl31o:rvJ3O-b0m80:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/Gd7s4Mkl31o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2009/07/back-to-blogging.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2009/07/back-to-blogging.html</feedburner:origLink></item>
		<item>
		<title>Some of Confusing English</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/QkJrfMB2B9Q/some-of-confusing-english.html</link>
		<comments>http://roshanbh.com.np/2008/12/some-of-confusing-english.html#comments</comments>
		<pubDate>Sun, 14 Dec 2008 19:38:14 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[humor]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=327</guid>
		<description><![CDATA[Sorry friends for irregularity.I&#8217;m back to Sunday Fun after after a two weeks break.Here goes the Sunday fun of today taking some rest from  programming. Today I&#8217;m going to talk about English language. It&#8217;s become one of the most essential language for me and hope for many people as well. But here are some of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Sorry friends for irregularity.I&#8217;m back to Sunday Fun after after a two weeks break.Here goes the Sunday fun of today taking some rest from  programming. Today I&#8217;m going to talk about English language. It&#8217;s become one of the most essential language for me and hope for many people as well. But here are some of CONFUSING ENGLISH terms that makes me headache, would u help me?</p>
<p><span id="more-327"></span><span style="color: #008000;"><strong>1. If Fed Ex and UPS were to merge, would they call it Fed UP?</strong></span></p>
<p><span style="color: #008000;"><strong>2. Do Lipton Tea employees take coffee breaks?</strong></span></p>
<p><span style="color: #008000;"><strong>3. If olive oil comes from olives, where does baby oil come from?</strong></span></p>
<p><span style="color: #008000;"><strong>4. If people from Poland are called Poles, why aren&#8217;t people from Holland called Holes?</strong></span></p>
<p><span style="color: #008000;"><strong>5. Do infants enjoy infancy as much as adults enjoy adultery?</strong></span></p>
<p><span style="color: #008000;"><strong>6. Why the man who invests all your money called a broker?</strong></span></p>
<p><span style="color: #008000;"><strong>7. If horrific means to make horrible, does terrific mean to make terrible?</strong></span></p>
<p><span style="color: #008000;"><strong>8. Why is it called building when it is already built?</strong></span></p>
<p><span style="color: #008000;"><strong>9. If a book about failures doesn&#8217;t sell, is it a success?</strong></span></p>
<p><span style="color: #008000;"><strong>10. If you&#8217;re not supposed to drink and drive, then why do bars have parking lots?</strong></span></p>
<p><span style="color: #008000;"><strong>11. If you take an Oriental person and spin him around several times, does he become disoriented?</strong></span></p>
<p><span style="color: #008000;"><strong>12. If vegetarians eat vegetables, what do humanitarians eat??   Human ??</strong></span></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=327&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=QkJrfMB2B9Q:7Rw0igfnTQo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=QkJrfMB2B9Q:7Rw0igfnTQo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=QkJrfMB2B9Q:7Rw0igfnTQo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=QkJrfMB2B9Q:7Rw0igfnTQo:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/QkJrfMB2B9Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/12/some-of-confusing-english.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/12/some-of-confusing-english.html</feedburner:origLink></item>
		<item>
		<title>CodeIgniter : A recommendation for PHP Programmer</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/vxyUsi7cpxA/codeigniter-programmer-php.html</link>
		<comments>http://roshanbh.com.np/2008/12/codeigniter-programmer-php.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 19:12:25 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[coding technique]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=324</guid>
		<description><![CDATA[I was thinking to publish this post way before but between my irregularity and busy schedule I couldn&#8217;t do that. Today, I would like to tell you that Why I choose CodeIgniter for my current project and recommend it for other programmers? I&#8217;ve used CakePHP for my one previous project in which I&#8217;ve used the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I was thinking to publish this post way before but between my irregularity and busy schedule I couldn&#8217;t do that. Today, I would like to tell you that Why I choose CodeIgniter for my current project and recommend it for other programmers? I&#8217;ve used CakePHP for my one previous project in which I&#8217;ve used the version 1.1.7 of Cake. I must admit that CakePHP is a great MVC framework with but there are many performance issues in the related to CakePHP and I decided not to use it until the final version of 1.2.0 of CakePHP which is still in RC phase while writing this post.</p>
<p><span id="more-324"></span></p>
<h4>Why I recommend PHP Programmers to use CodeIgniter?</h4>
<p style="text-align: justify;">Yes I&#8217;ve decided to use it along with this I&#8217;ve asked my programmer friends out there in office to use it. You&#8217;re wondering why I choose CodeIgniter rather than using Zend Framework, which  add more values in PHP programmer&#8217;s career.Let&#8217; me answer them all in the reasons below.</p>
<ol>
<li>The main issue which I got attracted with CodeIgniter is its performance. CodeIgniter is faster than other popular PHP MVC frameworks. Take a look at these Benchmark test done by <a href="http://en.wikipedia.org/wiki/Rasmus_Lerdorf" target="_blank">Rasmus Lerdorf</a>(creator of PHP programming), <a href="http://talks.php.net/show/froscon08/25">here</a> , <a href="http://talks.php.net/show/froscon08/29">here</a> in <a href="http://talks.php.net/show/froscon08/25">here</a>. And also take a look at <a href="http://www.avnetlabs.com/php/php-framework-comparison-benchmarks">another benchmark test</a> . So it&#8217;s clear that CI is faster than other Framework. Rasmus also told that he liked <a href="http://codeigniter.com/">CodeIgniter</a> because it is faster, lighter and the least like a framework.</li>
<li>Another main reason behind recommendation, it has very low learning curve. CodeIgniter Downloads come with a tremendous user guide which is  a great documentation like PHP Manual to begin with. And from my personal experience, CodeIgniter has very low learning curve compared to CakePHP and Zend Framework. If you&#8217;re a beginner for PHP frameworks then I recommend to go with CodeIgniter at begining.</li>
<li>The coding conventions are flexible and simple. Ironically, CakePHP has very strict coding conventions so you must be very careful about cases of characters while coding.</li>
<li>Why not Zend Framework and why CodeIgniter? Ok, one question goes here what is so good about Zend Framwork ? Eventual answer is ZF contain huge set of libraries and classes compared to any other framework. OK I agree, but another great news is that You can use <a href="http://www.4webby.com/freakauth/tutorials/using-zend-framework-components-in-code-igniter" target="_blank">Zend Framework&#8217;s classes in the CodeIgniter </a>using hooks in CI. So you can use huge amount of Zend&#8217;s libraried in CI as well.</li>
</ol>
<p style="text-align: justify;">These are the main reason why I recommend for using CodeIgniter for PHP programmers.But I still believe that I&#8217;ll be using CakePHP for once I get final version of 1.2.0 because I still believe that it is robust,  has a  great design patters and great tool for group development .</p>
<p>If you recommend any other PHP framework, please let us know why you recomment that framework.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=324&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=vxyUsi7cpxA:FxRRlHIOuQo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=vxyUsi7cpxA:FxRRlHIOuQo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=vxyUsi7cpxA:FxRRlHIOuQo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=vxyUsi7cpxA:FxRRlHIOuQo:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/vxyUsi7cpxA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/12/codeigniter-programmer-php.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/12/codeigniter-programmer-php.html</feedburner:origLink></item>
		<item>
		<title>How did I reduce CPU overhead problem caused by MySql?</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/u5xwQByOVP8/reduce-cpu-overhead-problem-by-mysql.html</link>
		<comments>http://roshanbh.com.np/2008/12/reduce-cpu-overhead-problem-by-mysql.html#comments</comments>
		<pubDate>Tue, 02 Dec 2008 17:58:22 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[coding technique]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=320</guid>
		<description><![CDATA[From last day, We were having problem with a project which was shut down in the middle due to heavy traffic. As a technical manager, I was the person who to take charge over the project bring it down to the track. After doing few benchmark test, I came to know that the MySql access [...]]]></description>
			<content:encoded><![CDATA[<p>From last day, We were having problem with a project which was shut down in the middle due to heavy traffic. As a technical manager, I was the person who to take charge over the project bring it down to the track. After doing few benchmark test, I came to know that the MySql access from a PHP file was creating the overhead to the CPU of the server.<br />
<span id="more-320"></span></p>
<h4>Problem of CPU Overhead with MySql</h4>
<p>Let me explain the problem clearly first,</p>
<p style="text-align: justify;">We&#8217;re working on a website which was similar to <a rel="nofollow" href="http://www.swoopo.co.uk/" target="_blank">http://www.swoopo.co.uk/</a> and as you can see clearly in that website the most recent data should be fetched form MySql database in each second. in the PHP page, which was being called from Ajax every second, had around 5 SQL queries to retrieve data from server.</p>
<p>First of all, I optimized that page reducing the 5 queries into single query by using left outer joins among 3 tables. And then, I did benchmark test by using <a href="http://httpd.apache.org/docs/2.0/programs/ab.html" target="_blank">Apache benchmark tool</a>(ab) 50 request with concurrency of 50 with the following command.</p>
<blockquote><p><span style="color: #993300;">ab -n 50 -c 50 http://xyz.com/ajax_page.php</span></p></blockquote>
<p>And then in another SSH shell prompt, I run the <a href="http://linux.about.com/od/commands/l/blcmdl1_top.htm">top</a> command to view the CPU usages parallelly.</p>
<p>I was still horrified that the CPU usages by mysql after 50 concurrent user was going out of control(100%) despite of optimized query. But many joins have been used in that single query and lots of data were there in those tables so the database overhead was high even though it was a single query.</p>
<h4>How did I reduced the CPU overload drastically caused by MySql?</h4>
<p>Now, the first challenge was to reduce the database access. It was clear that it was caused by concurrent database overhead in the PHP page which was being called in every second. Here is the simple steps what I did to reduce the database overhead.</p>
<ol>
<li>I created another PHP file in which I&#8217;ve transferred the mysql query causing CPU overhead and called it from Cronjob.</li>
<li>Created a temporary table for storing the output given by  PHP page called from CronJob.</li>
<li>Then, I scheduled the CronJob in every second, don&#8217;t tell me that CronJob can&#8217;t be run less than a minute, <a href="http://www.macosxhints.com/article.php?story=20070516060214429" target="_blank">take a look at this post before saying this</a>.And from each call, the output data was stored in the temporary table.</li>
<li>And, finally from the Ajax the a new PHP page was called which was only accessing the data from temporary table with single row.</li>
</ol>
<p>I did the same benchmarking again to the newly made page(which is accessing data only from temporary table) and saw that CPU usages after the this process reduced drastically.</p>
<p>I know I can further reduce the CPU overhead by storing the temporary data in a text file. You guyz know that I&#8217;m lazy so that part is left for another day.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=320&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u5xwQByOVP8:MrM4s729RU4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u5xwQByOVP8:MrM4s729RU4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u5xwQByOVP8:MrM4s729RU4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u5xwQByOVP8:MrM4s729RU4:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/u5xwQByOVP8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/12/reduce-cpu-overhead-problem-by-mysql.html/feed</wfw:commentRss>
		<slash:comments>40</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/12/reduce-cpu-overhead-problem-by-mysql.html</feedburner:origLink></item>
		<item>
		<title>Urgently upgrade your wordpress to version 2.6.5</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/-x18dGD2Grc/upgrade-wordpress-now-265.html</link>
		<comments>http://roshanbh.com.np/2008/11/upgrade-wordpress-now-265.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 10:01:35 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=319</guid>
		<description><![CDATA[Today, I was working on the on backend of this blog for the more customization of the new theme which I&#8217;ve just installed in the blog, I got a message in backend saying that wordpress 2.6.5 is available upgrade now. It is the urgent security released by WordPress and if you&#8217;re running a WordPress powered [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Today, I was working on the on backend of this blog for the more customization of the new theme which I&#8217;ve just installed in the blog, I got a message in backend saying that wordpress 2.6.5 is available upgrade now. It is the urgent security released by WordPress and if you&#8217;re running a WordPress powered blog then upgrade it to version 2.6.5. It is a <a href="http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html" target="_self">XSS exploit</a> discovered in the 2.6.5 release.</p>
<p style="text-align: justify;"><span id="more-319"></span>If you are not a programmer or tech savvy person, and worried about possible damage to upgrade of files then don&#8217;t worry there is a great plugin of wordpress for doing this which is developed by techiebuzz.  This <a href="http://techie-buzz.com/wordpress-plugins/wordpress-automatic-upgrade-12-release.html" target="_blank">wordpress automatic upgrade</a> plugin is damn good and I&#8217;m using it for updating the version of this blog. I upgraded the wordpress in just two minutes just following few instruction given by this plugin.</p>
<p style="text-align: justify;">So friends don&#8217;t be late before somebody started exploiting your wordpress blog , upgrade it now.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=319&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=-x18dGD2Grc:Ignx6Tn7Quc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=-x18dGD2Grc:Ignx6Tn7Quc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=-x18dGD2Grc:Ignx6Tn7Quc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=-x18dGD2Grc:Ignx6Tn7Quc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/-x18dGD2Grc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/upgrade-wordpress-now-265.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/upgrade-wordpress-now-265.html</feedburner:origLink></item>
		<item>
		<title>roshanbh.com.np got a new look….</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/d_zNM7rKQbE/roshanbhcomnp-got-a-new-look.html</link>
		<comments>http://roshanbh.com.np/2008/11/roshanbhcomnp-got-a-new-look.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 19:38:13 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=315</guid>
		<description><![CDATA[It was a long run and I&#8217;ve waited for this moment. As the information  and post was growing, I always wanted to change the previous theme of this blog and today finally the moment has come. Here goes the new theme of this blog. Please let me know what do  you think about this theme. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It was a long run and I&#8217;ve waited for this moment. As the information  and post was growing, I always wanted to change the previous theme of this blog and today finally the moment has come. Here goes the new theme of this blog. Please let me know what do  you think about this theme. Which one is better this one or previous one ?</p>
<p><span id="more-315"></span>I would like to hear the honest response from you guyz and let me know any feedback and Improvement I&#8217;ve to do if there is any. Here is the some of the feeback from my twitter friend quickly after changing the theme.</p>
<pre><a href="http://twitter.com/roshanbh"><img class="alignnone size-full wp-image-316" title="twitter-roshanbh" src="http://roshanbh.com.np/wp-content/uploads/2008/11/twitter-roshanbh.gif" border="0" alt="twitter roshanbh" width="471" height="189" /></a></pre>
<p>Hope to hear some honest comment from you.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=315&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=d_zNM7rKQbE:2cnP_Tni6ow:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=d_zNM7rKQbE:2cnP_Tni6ow:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=d_zNM7rKQbE:2cnP_Tni6ow:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=d_zNM7rKQbE:2cnP_Tni6ow:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/d_zNM7rKQbE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/roshanbhcomnp-got-a-new-look.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/roshanbhcomnp-got-a-new-look.html</feedburner:origLink></item>
		<item>
		<title>Height of various stuffs in IT peoples…</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/sxiZ1E7m2Hs/height-of-various-stuffs-in-it-people.html</link>
		<comments>http://roshanbh.com.np/2008/11/height-of-various-stuffs-in-it-people.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 07:16:50 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=313</guid>
		<description><![CDATA[Another weekend, time to take break form coding stuffs and enjoy the holiday with some fun.So If you&#8217;re a regular reader then you might have remembered that I just try to post something funny in the Sunday, taking break from coding stuffs.Today, I&#8217;ve come up with the height of stuffs in the IT peoples hope [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Another weekend, time to take break form coding stuffs and enjoy the holiday with some fun.So If you&#8217;re a regular reader then you might have remembered that I just try to post something funny in the Sunday, taking break from coding stuffs.Today, I&#8217;ve come up with the height of stuffs in the IT peoples hope you will like it.read on and enjoy&#8230;<br />
<span id="more-313"></span><br />
<strong>HEIGHT OF ISOLATION:</strong><br />
Two persons sitting side by side using emails to communicate with each other.</p>
<p><strong>HEIGHT OF HELPLESSNESS:</strong><br />
Receiving no emails for a week.</p>
<p><strong>HEIGHT OF COWARDICE:</strong><br />
Two persons fighting through emails.</p>
<p><strong>HEIGHT OF CARELESSNESS:</strong><br />
Writing a love mail and doing a &#8216;Send All.&#8217;</p>
<p><strong>HEIGHT OF FRUSTRATION:</strong><br />
The email server being down.</p>
<p><strong>HEIGHT OF TIMEPASS:</strong><br />
A person sending email to himself</p>
<p><strong>HEIGHT OF REPETITION:</strong><br />
Forwarding an email to someone and receiving the same email forwarded back to you By some one in the receiving chain.</p>
<p><strong>HEIGHT OF BROWSING:</strong><br />
U r swimming in the water tank and shout &#8216;F1 F1 F1 &#8216; instead of shouting &#8216;HELP&#8217; when u are unable to swim&#8230;</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=313&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=sxiZ1E7m2Hs:ct5NqF7ttsQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=sxiZ1E7m2Hs:ct5NqF7ttsQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=sxiZ1E7m2Hs:ct5NqF7ttsQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=sxiZ1E7m2Hs:ct5NqF7ttsQ:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/sxiZ1E7m2Hs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/height-of-various-stuffs-in-it-people.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/height-of-various-stuffs-in-it-people.html</feedburner:origLink></item>
		<item>
		<title>Get the book “The Art &amp; Science of CSS” at free of cost</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/JvoKHik_Xcc/free-css-book-sitepoint.html</link>
		<comments>http://roshanbh.com.np/2008/11/free-css-book-sitepoint.html#comments</comments>
		<pubDate>Fri, 21 Nov 2008 19:50:04 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=312</guid>
		<description><![CDATA[Are you a web developer ? Are you a web designer? The you must not leave this offer. I don&#8217;t know weather you know about this offer or not. Sitepoint is giving the book The Art &#38; Science of CSS at free of cost. I think you&#8217;re might interested in getting this book, just follow [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Are you a web developer ? Are you a web designer? The you must not leave this offer. I don&#8217;t know weather you know about this offer or not. Sitepoint is giving the book <a href="http://www.sitepoint.com/books/cssdesign1/" target="_blank">The Art &amp; Science of CSS</a> at free of cost. I think you&#8217;re might interested in getting this book, just follow the simple instruction and that great book will be yours.<br />
<span id="more-312"></span><br />
Here is the steps you&#8217;ve to do to get that book at free of cost&#8230;</p>
<p>1) Follow <a rel="nofollow" href="http://twitter.com/sitepointdotcom" target="_blank">sitepointdotcom</a> at twitter and they will send you the direct message to you at twitter.</p>
<p>OR</p>
<p>2) If  you don&#8217;t have twitter account the, go here  <a rel="nofollow" href="http://twitaway.com/" target="_blank">http://twitaway..com/</a> and enter your email address. They will send you the download link of that book in your email address.</p>
<p>If you have twitter account then follow me on twitter <strong><a href="http://twitter.com/roshanbh">@roshanbh</a></strong>. We can stay in touch to share our experiences.Believe me twitter is great place for sharing messages.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=312&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JvoKHik_Xcc:pHOHhzNEYIc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JvoKHik_Xcc:pHOHhzNEYIc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JvoKHik_Xcc:pHOHhzNEYIc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JvoKHik_Xcc:pHOHhzNEYIc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/JvoKHik_Xcc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/free-css-book-sitepoint.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/free-css-book-sitepoint.html</feedburner:origLink></item>
		<item>
		<title>PHP Framworks !! Why , when and which ?</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/wJ0RvGlSatM/php-framworks-why-when-and-which.html</link>
		<comments>http://roshanbh.com.np/2008/11/php-framworks-why-when-and-which.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 10:57:51 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[coding technique]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[php framework]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=311</guid>
		<description><![CDATA[Well!! I know it&#8217;s been a long time, but what to do so many things to do and I&#8217;m having hard time to maintain this blog these days.Hope I will be regular like I was before. Today, I&#8217;m going to talk about some of the popular MVC PHP frameworks. A few people has asked me [...]]]></description>
			<content:encoded><![CDATA[<p>Well!! I know it&#8217;s been a long time, but what to do so many things to do and I&#8217;m having hard time to maintain this blog these days.Hope I will be regular like I was before. Today, I&#8217;m going to talk about some of the popular MVC PHP frameworks. A few people has asked me what is CakePHP, or What is CodeIgniter? How to to use them ? When to use them ? Today, I&#8217;m going to talk about PHP frameworks which I&#8217;ve used. Please note that the choice of choosing a framework is personal preference and the statement and this post is not going to say that this framework is better than this framework.<br />
<span id="more-311"></span></p>
<h4>What are the benefits of using MVC PHP frameworks ?</h4>
<p>Well there are many benefits of using PHP frameworks, let&#8217;s see some of the main benefits of using them.</p>
<ol>
<li>They PHP frameworks follows some <a href="http://en.wikipedia.org/wiki/Design_pattern_(computer_science)" target="_blank">design pattern</a>, so when you use these framework you&#8217;ve to follow their coding convention which makes your code clean and extensible for future purpose.</li>
<li>The Popular PHP frameworks like <a href="http://www.cakephp.org" target="_blank">CakePHP</a>, <a href="http://www.codeigniter.com">CodeIgniter</a>, <a href="http://framework.zend.com" target="_blank">Zend Framework</a> , <a href="www.symfony-project.org" target="_blank">Symfony</a> follows <a href="http://en.wikipedia.org/wiki/Model-view-controller">Model View Controller(MVC) design pattern</a> which separates business logic from user interface making the code cleaner and extensible.</li>
<li>As everybody can guess, these frameworks contains   a lot of libraries to make your job easier. For example, to validate a from you don&#8217;t have write much code as you&#8217;ve to in normal coding scenario, just few lines of code calling the library might be enough for it.</li>
<li>While working on a large project in a team, these MVC PHP framework will be a great tool for development as you can assign a developer to develop MVC part of a module for a developer and integration will be quite easy of these developed module at final level.</li>
<li>These MVC framework will really helps you to develop the project rapidly, if you know one framework well then you&#8217;ll never worry about the project deadline.</li>
<li>Most of these MVC frameworks uses clear url approach making your web project SEO friendly.</li>
</ol>
<p>Furthermore, if you want charge money to visitors who download or access  content of your website then this software is highly useful.</p>
<h4>What are disadvantage of using MVC PHP frameworks?</h4>
<p>A coin has two parts similarly a bright stuff always have dark part as well .</p>
<ol>
<li>Different framework have different coding convention, Depending upon the the framework, you&#8217;ll have to learn coding convention for the framework you want to follow. So depending upon the framework, it might to struggle at the beginning.</li>
<li>While coding  using these framework, sometime you&#8217;ll not find any library or helpers which might be useful for you so you&#8217;ll have to struggle bit at that time.</li>
<li>If you don&#8217;t have OOP experience then PHP MVC framework are not you. First build a solid knowledge of OOP with PHP then only think about choosing any framework.</li>
<li>PHP frameworks are not for the small projects from my point of view, because in a very simple project custom coding will work faster than setting up a framework.</li>
</ol>
<h4>Which framework should I choose?</h4>
<p>This is the one of the most discussed question about the PHP framworks.  So it depends upon particular person and project which framework will best suit for you. But depending upon my experience, I can show you some way to choose the framework.</p>
<ol>
<li>If you&#8217;re just want to use MVC framework for your next project, then I suggest you to go for <a href="http://www.codeigniter.com"><strong>CodeIgniter</strong></a>. It is very easy to learn and well-documented.Furthermore, it&#8217;s very flexible because it is not so strict on naming conventions etc. Furthermore, Model is optional while coding in codeIgniter so it is not necessary to use model for each controllers.</li>
<li>If you&#8217;re coding architecture savvy, then I suggest you to go with <a href="http://www.cakephp.org" target="_blank"><strong>CakePHP</strong></a>, probably the most popular PHP framework but I must admit. This framework&#8217;s coding style is similar to Ruby on Rails and naming conventions are strict in this framework.So if you&#8217;re working on a huge project in a team then this project will be the right choice for you.</li>
<li>If you&#8217;ve to use a lot web services external APIs in your project then<strong> <a href="http://framework.zend.com" target="_blank">Zend Framework</a></strong> will be right choice for you, it contains huge libraries for external APIs compared to any other PHP MVC framework. The main benefits of this framework is that you can use them as components(without using MVC) in your project or you can follow Zend framework&#8217;s MVC architecture to develop your project. The other benefits of this framework is that you can use it inside any of the above two MVC frameworks. And, this framework one of the most favourite of people when I conducted the poll for the <strong><a href="roshanbh.com.np/2008/06/which-is-the-best-php-framework.html">best PHP framework</a></strong> ?</li>
</ol>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=311&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=wJ0RvGlSatM:ppfv--pfusA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=wJ0RvGlSatM:ppfv--pfusA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=wJ0RvGlSatM:ppfv--pfusA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=wJ0RvGlSatM:ppfv--pfusA:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/wJ0RvGlSatM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/php-framworks-why-when-and-which.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/php-framworks-why-when-and-which.html</feedburner:origLink></item>
		<item>
		<title>Cool out of Office Auto Replies</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/JG-NH5gCRYA/cool-out-of-office-auto-replies.html</link>
		<comments>http://roshanbh.com.np/2008/11/cool-out-of-office-auto-replies.html#comments</comments>
		<pubDate>Sun, 02 Nov 2008 12:12:27 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[humour]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=308</guid>
		<description><![CDATA[I know I&#8217;ve been much irregular these days and what to do I&#8217;m going through some busy schedule these days. Sorry for that but today I&#8217;m here with another fun post of Sunday. I think the auto responders I&#8217;ve posted here are very useful if you&#8217;re going for holiday and looking for the best auto [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I know I&#8217;ve been much irregular these days and what to do I&#8217;m going through some busy schedule these days. Sorry for that but today I&#8217;m here with another fun post of Sunday. I think the auto responders I&#8217;ve posted here are very useful if you&#8217;re going for holiday and looking for the best auto responder for the holiday then I recommend to use any of the auto replies of below.</p>
<p><span id="more-308"></span><span style="color: #000080;"><br />
1. I am currently out at a job interview and will reply to you if I fail to get the position. Be prepared for my mood.</span></p>
<p><span style="color: #008000;">2. You are receiving this automatic notification because I am out of the office.</span></p>
<p><span style="color: #008000;">If I was in, chances are you wouldn&#8217;t have received anything at all.</span></p>
<p><span style="color: #000080;">3. I will be unable to delete all the unread, worthless emails you send me until I return From holiday on 4 April. Please be patient and your mail will be deleted in the order It was received .</span></p>
<p><span style="color: #008000;">4. Thank you for your email. Your credit card has been charged Â£5.99 for the first ten Words and Â£1.99 for each additional word in your message.</span></p>
<p><span style="color: #000080;">5. The e-mail server is unable to verify your server connection and is unable to deliver This message. Please restart your computer and try sending again.</span></p>
<p><span style="color: #008000;">6. Thank you for your message, which has been added to a queuing system&#8230;</span></p>
<p><span style="color: #008000;">You are Currently in 352nd place, and can expect to receive a reply in approximately 13 weeks.</span></p>
<p><span style="color: #000080;">7. I&#8217;ve run away to join a different circus.</span></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=308&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JG-NH5gCRYA:6v_T4k18OLE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JG-NH5gCRYA:6v_T4k18OLE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=JG-NH5gCRYA:6v_T4k18OLE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=JG-NH5gCRYA:6v_T4k18OLE:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/JG-NH5gCRYA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/11/cool-out-of-office-auto-replies.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/11/cool-out-of-office-auto-replies.html</feedburner:origLink></item>
		<item>
		<title>How to ralax in office ?</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/u1zAKIIwiKU/how-to-ralax-in-office.html</link>
		<comments>http://roshanbh.com.np/2008/10/how-to-ralax-in-office.html#comments</comments>
		<pubDate>Sun, 26 Oct 2008 12:02:55 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=306</guid>
		<description><![CDATA[Sorry friends&#8230;.I couldn&#8217;t post the doze for sunday in past two weeks. But I&#8217;m with with the sunday fun again this week. Everybody knows that Sunday is fun-day and developers don&#8217;t want to go through coding on this day. Now, take a look a picture below and you&#8217;ll get idea what to do when you [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry friends&#8230;.I couldn&#8217;t post the doze for sunday in past two weeks. But  I&#8217;m with with the sunday fun again this week. Everybody knows that Sunday is fun-day and developers don&#8217;t want to go through coding on this day. Now, take a look a picture below and you&#8217;ll get idea what to do when you get bored at your office tomorrow so enjoy &#8230;<br />
<span id="more-306"></span><br />
<span style="color: #003366;"><strong>This is how not-tech people survives a day in office.</strong></span></p>
<pre><img class="alignnone size-full wp-image-305" title="office1" src="http://roshanbh.com.np/wp-content/uploads/2008/10/office1.gif" alt="how to survice in office" width="536" height="191" /></pre>
<p><span style="color: #003366;"><strong>But this the way tech people survives a day in office!!!!</strong></span></p>
<pre><img class="alignnone size-full wp-image-305" title="office2" src="http://roshanbh.com.np/wp-content/uploads/2008/10/office2.gif" alt="how to survice in office" width="540" height="180" /></pre>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=306&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u1zAKIIwiKU:DdZx7HONV2g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u1zAKIIwiKU:DdZx7HONV2g:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=u1zAKIIwiKU:DdZx7HONV2g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=u1zAKIIwiKU:DdZx7HONV2g:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/u1zAKIIwiKU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/10/how-to-ralax-in-office.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/10/how-to-ralax-in-office.html</feedburner:origLink></item>
		<item>
		<title>Model File upload overlay box using jQuery and Thickbox</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/28FxK8tE5YY/model-file-upload-overlay-box-jquery.html</link>
		<comments>http://roshanbh.com.np/2008/10/model-file-upload-overlay-box-jquery.html#comments</comments>
		<pubDate>Sat, 25 Oct 2008 18:17:02 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[thickbox]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=303</guid>
		<description><![CDATA[Few times back, sNare asked me how do display wordpress like overlay box where you can pass the variables when you click on the link and manipulate simultaneous actions in the overlay until user choose to close it. Today, I&#8217;ve come up with the solution of this with model upload overlay box using thickbox, a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Few times back, sNare asked me how do display wordpress like overlay box where you can pass the variables when you click on the link and manipulate simultaneous actions in the overlay until user choose to close it. Today, I&#8217;ve come up with the solution of this with model upload overlay box using <a href="http://jquery.com/demo/thickbox/">thickbox</a>, a jquery plugin. I&#8217;ve used the Iframe content of thickbox while displaying the box as modal box.</p>
<p><span id="more-303"></span><br />
<strong><a href="http://roshanbh.com.np/examples/file-upload-overlay-jquery" target="_blank">LIVE DEMO </a></strong></p>
<h4>How to use the thickbox as modal overlay box?</h4>
<p>Let&#8217;s look at the step by step to use thickbox for passing variables.</p>
<p>First of all, we have to include jQuery JavaScript Library to our page,</p>
<pre class="prettyprint" style="overflow:auto">&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;</pre>
<p>After this, include the <a href="http://jquery.com/demo/thickbox/">thickbox</a> plugin of jQuery,</p>
<pre class="prettyprint" style="overflow:auto">&lt;script type="text/javascript" src="thickbox-compressed.js"&gt;&lt;/script&gt;</pre>
<p>There is a CSS for using thickbox which also need to linked to the current page,</p>
<pre class="prettyprint" style="overflow:auto">&lt;link rel="stylesheet" href="thickbox.css" type="text/css" media="screen" /&gt;</pre>
<p>Now, let&#8217;s look at the anchor tag which passes the variables to overlay box and keep the overlay at top no matter how many simultaneous accesses occur in the box.</p>
<pre class="prettyprint" style="overflow:auto">&lt;a href="file_upload.php?post_id=5&amp;TB_iframe=true&amp;height=200&amp;width=300&amp;modal=true" class="thickbox" &gt;&lt;strong&gt;Upload Files&lt;/strong&gt;&lt;/a&gt;</pre>
<p>If you want to know how to use the thickbox, then you can checkout their home page which contains good documentation. The main point is, <span style="color: #000080;">class=&#8217;thickbox&#8217; </span>must be used for the displaying the content in overlay.</p>
<h4>How to pass variables to overlay box (thickbox)?</h4>
<p>If you look at the href attribute of anchor tag, you can see clearly that I&#8217;ve passed <span style="color: #003366;">post_id</span> variable with value <span style="color: #003366;">5</span> to <span style="color: #000080;">file_upload.php</span>, which can be easily fetched from PHP using <span style="color: #000080;">$_GET['post_id']</span>.</p>
<h4>How to make overlay box stay opened on simultaneous access?</h4>
<p>Now this is part which many people has asked me how to do it. To use thickbox in this fashion, you&#8217;ve to use it in iframe content mode.The following property of thickbox make it remained open on simultaneous access,</p>
<pre class="prettyprint" style="overflow:auto">TB_iframe=true</pre>
<p>Furthermore, We&#8217;ve used the following property to display the overlay box as modal box.</p>
<pre class="prettyprint" style="overflow:auto">modal=true</pre>
<p><strong><a href="http://roshanbh.com.np/codes/file-upload-overlay-jquery.zip">DOWNLOAD SOURCE CODE </a></strong></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=303&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=28FxK8tE5YY:AOnhjbFTfCI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=28FxK8tE5YY:AOnhjbFTfCI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=28FxK8tE5YY:AOnhjbFTfCI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=28FxK8tE5YY:AOnhjbFTfCI:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/28FxK8tE5YY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/10/model-file-upload-overlay-box-jquery.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/10/model-file-upload-overlay-box-jquery.html</feedburner:origLink></item>
		<item>
		<title>Opencrypt: A useful memembership management Software</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/uijm763ejyU/opencrypt-useful-memembership-management-software.html</link>
		<comments>http://roshanbh.com.np/2008/10/opencrypt-useful-memembership-management-software.html#comments</comments>
		<pubDate>Wed, 22 Oct 2008 10:16:33 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[website review]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=301</guid>
		<description><![CDATA[Today, I would like to talk about OpenCrypt, a useful membership software which has impressed me a lot at the first glance with it&#8217;s features. If you go through their online demonstration page you will see how this software works. If you&#8217;re building a website based on membership then you can consider using this software [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I would like to talk about <a href="http://demo.opencrypt.com/" target="_blank">OpenCrypt</a>, a useful membership software which has impressed me a lot at the first glance with it&#8217;s features. If you go through their online demonstration page you will see how this software works.  If you&#8217;re building a website based on membership then you can consider using this software in your project for security and robustness which is built using <strong>Perl</strong> and <strong>PHP</strong>.<br />
<span id="more-301"></span></p>
<h4>Why membership software is needed?</h4>
<p>As the name specifies, if you are building a website which may have different members like free members, paid members (such as monthly subscription) etc.  Furthermore, if you want to allow access to certain content to paid members and block access for free members to these areas then this software is very useful for security and flexibility.</p>
<p>Furthermore, if you want charge money to visitors who download or access your website content then this software is highly useful.</p>
<h4>Features of OpenCrypt</h4>
<p>Here are some of the main features of the <a href="http://www.opencrypt.com/" target="_blank">OpenCrypt membership software</a>:</p>
<p>1) Manage membership subscriptions and member&#8217;s areas</p>
<p>2) Automated membership renewal and billing system</p>
<p>3) Intregrated shopping cart</p>
<p>4) In built point system and download manager for allowing you to charge for accessing your content and downloads.</p>
<p>5) Template based front-end for easy customization.</p>
<p>6) Helpdesk, article management and affiliate systems.</p>
<p>These are the main feature of this software.  For full feature detail you can check their <a href="http://www.opencrypt.com/features.php" target="_blank">membership software features page</a>.</p>
<p>But one small suggestion, when I logged in inside the user management area there was still the link for login which I think should not have been there if a user is logged in. Please take this as my suggestion part.</p>
<p>But overall, this software has impressed me a lot while looking at their online demonstration and I&#8217;ll suggest you to give this software a try if your website is mainly focused on the membership subscriptions.</p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=301&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=uijm763ejyU:o5BN9AcibrI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=uijm763ejyU:o5BN9AcibrI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=uijm763ejyU:o5BN9AcibrI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=uijm763ejyU:o5BN9AcibrI:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/uijm763ejyU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/10/opencrypt-useful-memembership-management-software.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/10/opencrypt-useful-memembership-management-software.html</feedburner:origLink></item>
		<item>
		<title>jQuery plugin: word-counter for textarea</title>
		<link>http://feedproxy.google.com/~r/phpajaxguru/~3/Ys6JwuMdi_s/jquery-plugin-word-counter-textarea.html</link>
		<comments>http://roshanbh.com.np/2008/10/jquery-plugin-word-counter-textarea.html#comments</comments>
		<pubDate>Mon, 20 Oct 2008 11:43:50 +0000</pubDate>
		<dc:creator>Roshan</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[jquery plugin]]></category>

		<guid isPermaLink="false">http://roshanbh.com.np/?p=299</guid>
		<description><![CDATA[Sorry friends on the way of move to new home I&#8217;ve been lost from the blog as I didn&#8217;t have internet connection for few last weeks. Now, I&#8217;m back and I try to be regular as much as I can. Inspired from the new feature of wordpress 2.6.x which displays word count of each post, [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry friends on the way of move to new home I&#8217;ve been lost from the blog as I didn&#8217;t have internet connection for few last weeks. Now, I&#8217;m back and I try to be regular as much as I can. Inspired from the new feature of wordpress 2.6.x which displays word count of each post, I&#8217;ve developed jQuery plugin to display word-count of Textarea. Please note that it is <span style="color: #000080;">word count plugin</span> not <span style="text-decoration: line-through;">character counter</span>.<br />
<span id="more-299"></span><br />
<a href="http://roshanbh.com.np/examples/jquery-word-count-plugin/" target="_blank"><strong>LIVE  DEMO </strong></a></p>
<h4>Jquery plugin: Word-count code</h4>
<pre class="prettyprint" style="overflow:auto">jQuery.fn.wordCount = function(params)
{
   var p =  {
   counterElement:"display_count"
   };
   var total_words;

  if(params) {
      jQuery.extend(p, params);
   }

  //for each keypress function on text areas
  this.keypress(function()
  {
    total_words=this.value.split(/[\s\.\?]+/).length;
    jQuery('#'+p.counterElement).html(total_words);
   });
};</pre>
<p><a href="http://roshanbh.com.np/codes/jquery.wordcount.js" target="_blank"><strong>VIEW PLUGIN&#8217;S CODE</strong></a></p>
<p>As you can in the above code, I assume that each words of a paragraph are separated by the either spaces or dots(.) . Please have your suggestion if i can more characters to improve this plugin.</p>
<h4>How to use this plugin?</h4>
<p>Well, you can guess that a Textarea is needed of whose words are counted and another element like div or span needed to display the word count.</p>
<p>For example, the below HTML code contains Textarea (whose total word is counted) and span (for displaying counted word).</p>
<pre class="prettyprint" style="overflow:auto">&lt;textarea name="word_count" id="word_count" cols="30" rows="6"&gt;&lt;/textarea&gt;
Total word Count : &lt;span id="display_count"&gt;0&lt;/span&gt;</pre>
<p>Remember that the id of text area is &#8220;<span style="color: #000080;">word_coun</span>t&#8221; and &#8220;<span style="color: #000080;">display_count</span>&#8220;.</p>
<p>Now, let look at the jQuery code for displaying word count of text area , note that we are calling the function wordCount() which we&#8217;ve just developed in the plugin of jQuery.</p>
<pre class="prettyprint">$('#word_count').wordCount();</pre>
<p><strong>Note: </strong>display_count  is default id of element which is already defined in the plugin if you want to use the different id of elment then you&#8217;ve to override the value of variable <strong>counterElement</strong> which contains the <span style="color: #000080;">id</span> of element displaying word count.</p>
<pre class="prettyprint">$('#word_count').wordCount({counterElement:"word_counter"});</pre>
<p><a href="http://roshanbh.com.np/codes/jquery-word-count.zip"><strong>DOWNLOAD EXAMPLE CODE </strong></a></p>
<img src="http://roshanbh.com.np/?ak_action=api_record_view&id=299&type=feed" alt="" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Ys6JwuMdi_s:E14VDttwyXU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Ys6JwuMdi_s:E14VDttwyXU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/phpajaxguru?a=Ys6JwuMdi_s:E14VDttwyXU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/phpajaxguru?i=Ys6JwuMdi_s:E14VDttwyXU:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/phpajaxguru/~4/Ys6JwuMdi_s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://roshanbh.com.np/2008/10/jquery-plugin-word-counter-textarea.html/feed</wfw:commentRss>
		<slash:comments>45</slash:comments>
		<feedburner:origLink>http://roshanbh.com.np/2008/10/jquery-plugin-word-counter-textarea.html</feedburner:origLink></item>
	</channel>
</rss>
