<?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>My Planet</title>
	<atom:link href="http://blog.smronju.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smronju.com</link>
	<description>It&#039;s about me and my world</description>
	<lastBuildDate>Wed, 18 Apr 2012 16:46:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Get a UNIX timestamp using Javascript.</title>
		<link>http://blog.smronju.com/get-a-unix-timestamp-using-javascript/</link>
		<comments>http://blog.smronju.com/get-a-unix-timestamp-using-javascript/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 05:51:20 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[jQuery/Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[javascripts]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=423</guid>
		<description><![CDATA[The Javascript Date object has a number of functions for working with dates and times. The getTime() method returns the millisecond representation of the Date object. In this tiny little post I going to show you how to convert Date object to UNIX timestamp. In php we mostly use timestamp representing date and I think [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/jquery-datepickers-date-conversion-similar-to-php-time-function/' rel='bookmark' title='jQuery datepicker&#8217;s date conversion similar to PHP time() function.'>jQuery datepicker&#8217;s date conversion similar to PHP time() function.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The Javascript Date object has a number of functions for working with dates and times. The getTime() method returns the millisecond representation of the Date object. In this tiny little post I going to show you how to convert Date object to UNIX timestamp. In php we mostly use timestamp representing date and I think this will help you whenever you need to deal with both time and date functionality.</p>
<p>To convert the current date and time to a UNIX timestamp do the following:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">var timestamp = Math.round((new Date()).getTime() / 1000);</div></td></tr></tbody></table></div>
<p>getTime() returns milliseconds from the UNIX epoch, so I divide it by 1000 to get the seconds representation and rounded using Math.round() to make it a whole number. Now &#8220;timestamp&#8221; variable has the UNIX timestamp for the current date and time relevant to the user&#8217;s web browser.</p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/jquery-datepickers-date-conversion-similar-to-php-time-function/' rel='bookmark' title='jQuery datepicker&#8217;s date conversion similar to PHP time() function.'>jQuery datepicker&#8217;s date conversion similar to PHP time() function.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/get-a-unix-timestamp-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome 2012 and good bye 2011!</title>
		<link>http://blog.smronju.com/welcome-2012-and-good-bye-2011/</link>
		<comments>http://blog.smronju.com/welcome-2012-and-good-bye-2011/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 17:49:16 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[achievements]]></category>
		<category><![CDATA[new year]]></category>
		<category><![CDATA[success]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=412</guid>
		<description><![CDATA[First of all I&#8217;m grateful to my lord almighty Allah for another passing year 2011. It&#8217;s time to look behind&#8230; What I won 2011 In the beginning of the year 3rd January 2011 I joined Leevio. For me it was like my dream come true!. I won what I was planned to be in my [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>First of all I&#8217;m grateful to my lord almighty Allah for another passing year 2011. It&#8217;s time to look behind&#8230;</p>
<p><strong>What I won 2011</strong></p>
<ol>
<li>In the beginning of the year 3rd January 2011 I joined Leevio. For me it was like my dream come true!. I won what I was planned to be in my life. For the opportunity I&#8217;m thankful to Hasin Hayder.</li>
<li>Find a nice and friendly environment to work. I think that was very important for me to work with experts.</li>
<li>Later I bought my first Dell 15R Laptop.</li>
<li>Learned Zend Framework and knowledge on web development.</li>
<li>Enjoyed my professional life in Leevio and hell of fun with Leevians.</li>
<li>Played Urban Terror <img src='http://blog.smronju.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </li>
<li>Bought my first apple product MacBook Pro in 2nd May. Thanks goes to Saidur Rahman Bijon bhai for his help.</li>
<li>Contribute my knowledge in various project in Leevio. I just want to mention some of them as I learned hell of good things from those. <a title="Deploy Ninja" href="http://deployninja.com">Deploy Ninja</a>, <a title="Google Form Builder" href="http://gform.appstep.net/">Google From Builder</a>, <a title="Kuestions" href="http://kuestions.com">Kuestions</a> etc.</li>
<li>Learned mobile application development.</li>
<li>First time spoke at JSConf 2011.</li>
<li>Learned about Javascript and jQuery. Improved my knowledge in design and CSS.</li>
<li>Learned Git and started using Github.</li>
<li>First time spoke in the biggest annual phpXperts Seminar 2011 in Bangladesh.</li>
<li>Start contributing my knowledge in Open Source. Get involved in <a title="LightBulb" href="https://github.com/hasinhayder/LightBulb">LightBulb</a>.</li>
<li>Finally Happy ending of 2011.</li>
</ol>
<p>After all these achievements I forgot all of my loss and sad things. In fact 2011 was fantastic year for me. Isn&#8217;t it? Thanks Allah for blessing me such an year and I pray for your kindness for upcoming years. </p>
<p>Happy new year and wishing you all a happy and prosperous life.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/welcome-2012-and-good-bye-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get started with Zend Framework.</title>
		<link>http://blog.smronju.com/get-started-with-zend-framework/</link>
		<comments>http://blog.smronju.com/get-started-with-zend-framework/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 16:18:33 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=387</guid>
		<description><![CDATA[Hands on Zend Framework is about a year or so. But earlier of my career I was confused about Frameworks. I&#8217;ve started with CodeIgniter then Symfony and now Zend Framework (ZF). At this stage of my career I&#8217;ve now decided to go with ZF. I don&#8217;t wanna argue here about frameworks but CodeIgniter is fine [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/128/' rel='bookmark' title='Get started with symfony1.4'>Get started with symfony1.4</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hands on Zend Framework is about a year or so. But earlier of my career I was confused about Frameworks. I&#8217;ve started with CodeIgniter then Symfony and now Zend Framework (ZF). At this stage of my career I&#8217;ve now decided to go with ZF. I don&#8217;t wanna argue here about frameworks but CodeIgniter is fine for get started, ZF is like supershop where you can find anything for your cook and Symfony was a bit complex for me but it is well organized with lots of features.</p>
<p>Okay going back to the point. To get started with ZF what you need?</p>
<ol>
<li>PHP 5.2.4 or higher</li>
<li>Web server with mod_rewrite</li>
</ol>
<p>Your Apache installation must have the mod_rewrite extension installed and configured to support .htaccess files.</p>
<p>This is usually done by changing this line</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowOverride None</div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowOverride All</div></td></tr></tbody></table></div>
<p>in <em>httpd.conf</em>.</p>
<p><strong>Setting Zend_Tool</strong></p>
<p>Download latest ZF from <a title="here" href="http://framework.zend.com/download/latest">here</a>. All we are interested about the Zend Framework Minimal Package.</p>
<ul>
<li>Extract the archive.</li>
<li>Copy the contents of the folder to /usr/local/ via terminal
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo cp -r ~/Downloads/ZendFramework-1.10.6-minimal /usr/local/ZendFrameworkCli</div></td></tr></tbody></table></div>
<p><a href="http://blog.smronju.com/wp-content/uploads/2011/11/Screen-shot-2011-11-28-at-8.45.27-PM.png"><img class="aligncenter size-full wp-image-388" title="Tree" src="http://blog.smronju.com/wp-content/uploads/2011/11/Screen-shot-2011-11-28-at-8.45.27-PM.png" alt="" width="179" height="120" /></a></li>
<li>Open bash profile
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano ~/.profile</div></td></tr></tbody></table></div>
<p>from terminal and add this line</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aliaszf=/usr/local/ZendFrameworkCli/bin/zf.sh</div></td></tr></tbody></table></div>
<p>at the end of the file.</li>
<li>Save and exit (press ctrl+x then hit y).</li>
</ul>
<p>All set. Now if everything is okay, from terminal type</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zf --help</div></td></tr></tbody></table></div>
<p>. This will show all the commands available to ZF.</p>
<p><strong>Creating our first project</strong></p>
<p>We can now create project using zf command line tool as it&#8217;s easy, saves time and effort. So run this command in terminal</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zf create project kickstart</div></td></tr></tbody></table></div>
<p style="text-align: center;">The zf tool will create a directory called kickstart and populate it with the recommended directory structure as you can see below.</p>
<p><img class="aligncenter size-full wp-image-401" title="kickstart project sckeleton" src="http://blog.smronju.com/wp-content/uploads/2011/11/Screen-shot-2011-12-13-at-5.16.08-PM.png" alt="" width="232" height="286" /></p>
<p>The application/ directory is where the source code for kickstart website lives. As you can see, we have separate directories for the model, view and controller files of our application. The public/ directory is the public-facing root of the website, which means that the URL to get to the application will be http://localhost/kickstart/public/. This is so that most of the applicationʼs files are not accessible directly by Apache and so are more secure.</p>
<p>Supporting images, javascripts, css files are stored in separate directories under public/ directory.</p>
<p>As everything is accessible from public so we have to set public folder as document root by creating a virtual host. If you don&#8217;t know how to create it please follow this <a title="Create VirtualHost in your MAMP." href="http://blog.smronju.com/create-virtualhost-in-your-mamp/">post</a>. Here&#8217;s a sample code I used to create virtual host.</p>
<p>&nbsp;</p>
<p>ServerName local.kickstart.com<br />
ServerAlias local.kickstart.com<br />
DocumentRoot /Applications/MAMP/htdocs/kickstart/public<br />
DirectoryIndex index.html index.htm index.php index.php4 index.php5</p>
<p>Options -Indexes +IncludesNOEXEC +FollowSymLinks<br />
allow from all<br />
AllowOverride All</p>
<p>&nbsp;</p>
<p>Finally, we need to copy the Zend folder and paste it under our project library folder (library/Zend) or make a symbolink to /user/local/ZendFrameworkCli/library/Zend from library.</p>
<p>That&#8217;s it. Open your favorite browser any type http://local.kickstart.com if all okay you will see below picture.</p>
<p><a href="http://blog.smronju.com/wp-content/uploads/2011/11/zf-welcome-screen.png"><img class="aligncenter size-full wp-image-391" title="Zend Framework Welcome Screen" src="http://blog.smronju.com/wp-content/uploads/2011/11/zf-welcome-screen.png" alt="" width="593" height="394" /></a></p>
<p>Cheers!!! Happy coding.</p>
<p>N:B This article is tested on Mac OS X and hopefully same procedure will work on Linux server too. I will write soon about CRUD operation in Zend Framework in my next post. Stay tuned <img src='http://blog.smronju.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><script type="text/javascript"> 
clicksor_adhere_opt='left'; </p>
<p>clicksor_default_url = '';
clicksor_banner_border = '#99CC33'; 
clicksor_banner_ad_bg = '#FFFFFF';
clicksor_banner_link_color = '#000000'; 
clicksor_banner_text_color = '#666666';
clicksor_layer_border_color = '';
clicksor_layer_ad_bg = ''; 
clicksor_layer_ad_link_color = '';
clicksor_layer_ad_text_color = ''; 
clicksor_text_link_bg = '';
clicksor_text_link_color = ''; 
clicksor_enable_text_link = false;</p>
<p>clicksor_banner_text_banner = false;
clicksor_banner_image_banner = true; 
clicksorcn_enable_layer_pop = false;
</script><br />
 <script type="text/javascript" src="http://ads.clicksor.com/newServing/showAd.php?nid=1&amp;pid=217075&amp;adtype=&amp;sid=349746"></script> <noscript><a href="http://www.yesads.com">online marketing</a></noscript></p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/128/' rel='bookmark' title='Get started with symfony1.4'>Get started with symfony1.4</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/get-started-with-zend-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to change root password on MAMP</title>
		<link>http://blog.smronju.com/how-to-change-root-password-on-mamp/</link>
		<comments>http://blog.smronju.com/how-to-change-root-password-on-mamp/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 10:09:08 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=379</guid>
		<description><![CDATA[Open terminal from /Applications/Utilities/Terminal and paste the following command into it. 1/Applications/MAMP/Library/bin/mysqladmin -u root -p password YourNewPasswordHere N:B: Make sure to change YourNewPasswordHere with your new password that you want to set. Press enter. If prompt enter your mysql password. Now we need to change few more files to make sure it&#8217;s working perfectly. Open [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/forgot-root-password-of-mysql/' rel='bookmark' title='Forgot root password of MySQL ?'>Forgot root password of MySQL ?</a></li>
<li><a href='http://blog.smronju.com/create-virtualhost-in-your-mamp/' rel='bookmark' title='Create VirtualHost in your MAMP.'>Create VirtualHost in your MAMP.</a></li>
<li><a href='http://blog.smronju.com/how-to-change-mac-address-in-ubuntu/' rel='bookmark' title='How to change MAC address in Ubuntu'>How to change MAC address in Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Open terminal from /Applications/Utilities/Terminal and paste the following command into it.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/Applications/MAMP/Library/bin/mysqladmin -u root -p password YourNewPasswordHere</div></td></tr></tbody></table></div>
<p>N:B: Make sure to change <strong>YourNewPasswordHere</strong> with your new password that you want to set. Press enter. If prompt enter your mysql password.</p>
<p>Now we need to change few more files to make sure it&#8217;s working perfectly. Open following files in your favorite text editor of choice and seek for user <strong>root</strong> and <strong>proot</strong> / <strong>root</strong> (Usually states for &#8220;root, root&#8221;). Change only the <strong>root</strong> password with your new password.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php<br />
/Applications/MAMP/bin/mamp/(YOUR LANGUAGE)/mamp.inc.php<br />
/Applications/MAMP/bin/mamp/index.php<br />
/Applications/MAMP/bin/checkMysql.sh<br />
/Applications/MAMP/bin/quickCheckMysqlUpgrade.sh<br />
/Applications/MAMP/bin/repairMysql.sh<br />
/Applications/MAMP/bin/stopMysql.sh<br />
/Applications/MAMP/bin/upgradeMysql.sh</div></td></tr></tbody></table></div>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/forgot-root-password-of-mysql/' rel='bookmark' title='Forgot root password of MySQL ?'>Forgot root password of MySQL ?</a></li>
<li><a href='http://blog.smronju.com/create-virtualhost-in-your-mamp/' rel='bookmark' title='Create VirtualHost in your MAMP.'>Create VirtualHost in your MAMP.</a></li>
<li><a href='http://blog.smronju.com/how-to-change-mac-address-in-ubuntu/' rel='bookmark' title='How to change MAC address in Ubuntu'>How to change MAC address in Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/how-to-change-root-password-on-mamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get started with PhoneGap</title>
		<link>http://blog.smronju.com/get-started-with-phonegap/</link>
		<comments>http://blog.smronju.com/get-started-with-phonegap/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 19:13:39 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile application]]></category>
		<category><![CDATA[phonegap]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=365</guid>
		<description><![CDATA[Recently I started using PhoneGap for developing mobile apps. jQuery mobile and PhoneGap is pretty cool. Today I will show you how to use jQuery mobile and PhoneGap together in your application. Below is an example of jQuery mobile and PhoneGap. &#160; Fews days ago I tried titanium it&#8217;s also quite good but for building [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/jquery-datepickers-date-conversion-similar-to-php-time-function/' rel='bookmark' title='jQuery datepicker&#8217;s date conversion similar to PHP time() function.'>jQuery datepicker&#8217;s date conversion similar to PHP time() function.</a></li>
<li><a href='http://blog.smronju.com/get-started-with-zend-framework/' rel='bookmark' title='Get started with Zend Framework.'>Get started with Zend Framework.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently I started using PhoneGap for developing mobile apps. jQuery mobile and PhoneGap is pretty cool. Today I will show you how to use jQuery mobile and PhoneGap together in your application. Below is an example of jQuery mobile and PhoneGap.</p>
<p><a href="http://blog.smronju.com/wp-content/uploads/2011/06/PhoneGap-01.tiff"><img class="aligncenter size-full wp-image-367" title="PhoneGap with jQuery mobile" src="http://blog.smronju.com/wp-content/uploads/2011/06/PhoneGap-01.tiff" alt="" width="300" height="550" /></a></p>
<p><a href="http://blog.smronju.com/wp-content/uploads/2011/06/PhoneGap-01.jpg"><img class="aligncenter size-full wp-image-370" title="PhoneGap-01" src="http://blog.smronju.com/wp-content/uploads/2011/06/PhoneGap-01.jpg" alt="" width="300" height="550" /></a></p>
<p>&nbsp;</p>
<p>Fews days ago I tried titanium it&#8217;s also quite good but for building UI needs lots of coding. But with PhoneGap and jQuery mobile it&#8217;s too much easy for me.</p>
<p>&nbsp;</p>
<p>Here my code snippet for this.</p>
<div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/phonegap.0.9.5.1.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/phonegap.0.9.5.1.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery-1.6.1.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery.mobile.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>// <span style="color: #404040;">&lt;![CDATA[</span><br />
<span style="color: #404040;">&nbsp; &nbsp; function onBodyLoad() &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false); &nbsp; }</span><br />
<span style="color: #404040;">// ]]&gt;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> data-role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;page&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> data-role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Page Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #ddbb00;">&amp;nbsp;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> data-role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> data-role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;listview&quot;</span> data-inset<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;true&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List item 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List item 5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #ddbb00;">&amp;nbsp;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> data-role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>Page Footer<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #ddbb00;">&amp;nbsp;</span><br />
<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<span style="color: #ddbb00;">&amp;nbsp;</span></div></td></tr></tbody></table></div>
<p>All you need to know how to use jQuery mobile. Here in my code I just link jquery mobile js and css files and use jQuery mobile page structure. Code is pretty simple and self descriptive I think. Isn&#8217;t it cool?</p>
<p><!-- Begin: adBrite, Generated: 2011-12-26 1:47:17  --><br />
<script type="text/javascript">// <![CDATA[
  var AdBrite_Title_Color = '0000FF'; var AdBrite_Text_Color = '000000'; var AdBrite_Background_Color = 'FFFFFF'; var AdBrite_Border_Color = 'CCCCCC'; var AdBrite_URL_Color = '008000'; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
// ]]&gt;</script><br />
<span style="white-space: nowrap;"><script type="text/javascript">// <![CDATA[
  document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2071216&#038;zs=3732385f3930&#038;ifr='+AdBrite_Iframe+'&#038;ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));
// ]]&gt;</script><br />
<a href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2071216&amp;afsid=1" target="_top"><img style="background-color: #cccccc; border: none; padding: 0; margin: 0;" src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" alt="Your Ad Here" width="14" height="90" border="0" /></a></span><br />
<!-- End: adBrite --></p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/jquery-datepickers-date-conversion-similar-to-php-time-function/' rel='bookmark' title='jQuery datepicker&#8217;s date conversion similar to PHP time() function.'>jQuery datepicker&#8217;s date conversion similar to PHP time() function.</a></li>
<li><a href='http://blog.smronju.com/get-started-with-zend-framework/' rel='bookmark' title='Get started with Zend Framework.'>Get started with Zend Framework.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/get-started-with-phonegap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Symfony without pear installation</title>
		<link>http://blog.smronju.com/352/</link>
		<comments>http://blog.smronju.com/352/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 05:24:12 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=352</guid>
		<description><![CDATA[Installing symfony 1.4.6 without pear is not that difficult. In my earlier post I show you how to install symfony 1.4.6 with pear installation. That may not be helpful for those who don&#8217;t have Internet. So I insist to show you how to install symfony 1.4.6 without pear. Let&#8217;s start. Step-01. First make directory under [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/128/' rel='bookmark' title='Get started with symfony1.4'>Get started with symfony1.4</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing symfony 1.4.6 without pear is not that difficult. In my <a href="http://smronju.wordpress.com/2010/07/21/getting-started-with-symfony/">earlier</a> post I show you how to install symfony 1.4.6 with pear installation. That may not be helpful for those who don&#8217;t have Internet. So I insist to show you how to install symfony 1.4.6 without pear.</p>
<p>Let&#8217;s start.</p>
<p>Step-01. First make directory under <em>/var/www/</em> folder. Suppose a folder name &#8216;smronju&#8217;. You can do it in command line like</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo mkdir -p /var/www/smronju</div></td></tr></tbody></table></div>
<p>Step-02. As a best practice, many people install the symfony framework files in the <em>lib/vendor</em> directory. Let&#8217;s create these directory:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo mkdir -p lib/vendor</div></td></tr></tbody></table></div>
<p>Step-03. Download the symfony 1.4 project files from <a title="symfony 1.4.6" href="http://www.symfony-project.org/get/symfony-1.4.6.tgz">here </a>and after that put the archive under the freshly created <em>lib/vendor/</em> directory, un-archive it, and rename the directory to symfony</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd lib/vendor</div></td></tr></tbody></table></div>
<p>tar zxpf symfony-1.4.0.tgz</p>
<p>mv symfony-1.4.0 symfony //You can use any name instead of symfony as you want</p>
<p>rm symfony-1.4.0.tgz</p>
<p>You can check symfony version using this command.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">php lib/vendor/symfony/data/bin/symfony -V</div></td></tr></tbody></table></div>
<p>// note that capital V.</p>
<p>Step-04. Project creation</p>
<p>From the smronju directory run the symfony generate:project task to create project.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">php lib/vendor/symfony/data/bin/symfony generate:project myproject</div></td></tr></tbody></table></div>
<p>//Change myproject to your own project name.</p>
<p>Step-05. Application creation</p>
<p>Now create the frontend application by running the generate:app task</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">php symfony generate:app frontend</div></td></tr></tbody></table></div>
<p>Before trying to access our newly created project, we need to set the write permisstions on cache/ and log/ directories to the appropriate levels, so that our web server can write to them</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo chmod 0777 cache/ log/</div></td></tr></tbody></table></div>
<p>That&#8217;s it we are almost done. Finally we will create virtual host for it. Go to the <em>/etc/apache2/sites-available/</em> folder and make a file named &#8216;smronju&#8217;. Open it using text editor or medit. Paste the following code snippet in it.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;VirtualHost *:80&gt;<br />
&nbsp; ServerAdmin webmaster@smronju.com<br />
&nbsp; ServerName local.smronju.com<br />
&nbsp; DirectoryIndex index.php<br />
&nbsp; DocumentRoot /var/www/smronju/web<br />
&nbsp; &lt;Directory /var/www/smronju/web&gt;<br />
&nbsp; &nbsp; Options Indexes FollowSymLinks MultiViews<br />
&nbsp; &nbsp; AllowOverride All<br />
&nbsp; &nbsp; Order allow,deny<br />
&nbsp; &nbsp; allow from all<br />
&nbsp; &lt;/Directory&gt;<br />
&nbsp; Alias /sf /var/www/smronju/lib/vendor/symfony/data/web/sf<br />
&nbsp; &lt;Directory &quot;/var/www/smronju/lib/vendor/symfony/data/web/sf&quot;&gt;<br />
&nbsp; &nbsp; AllowOverride All<br />
&nbsp; &nbsp; Allow from All<br />
&nbsp; &lt;/Directory&gt;<br />
&nbsp; ErrorLog /var/log/apache2/smronju.error.log<br />
&nbsp; LogLevel warn<br />
&nbsp; CustomLog /var/log/apache2/smronju.access.log combined<br />
&lt;/VirtualHost&gt;</div></td></tr></tbody></table></div>
<p>Make this available to sites-available using this command</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo a2ensite smronju</div></td></tr></tbody></table></div>
<p>Finally restart or reload your apache server using</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/apache2 reload</div></td></tr></tbody></table></div>
<p>. Now test symfony by typing local.smronju.com in your browsers address bar. If everything goes well you will see below image.</p>
<p><a href="http://smronju.files.wordpress.com/2010/08/congratulations.png"></a><a href="http://blog.smronju.com/wp-content/uploads/2010/10/congratulations.png"><img class="aligncenter size-medium wp-image-268" title="congratulations" src="http://blog.smronju.com/wp-content/uploads/2010/10/congratulations-300x211.png" alt="" width="300" height="211" /></a></p>
<p>Any bug please comment and happy coding <img src='http://blog.smronju.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/128/' rel='bookmark' title='Get started with symfony1.4'>Get started with symfony1.4</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/352/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create VirtualHost in your MAMP.</title>
		<link>http://blog.smronju.com/create-virtualhost-in-your-mamp/</link>
		<comments>http://blog.smronju.com/create-virtualhost-in-your-mamp/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 12:15:02 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[virtualhost]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=316</guid>
		<description><![CDATA[Creating virtualhost on MAMP is very easy. Suppose you want to make a virtualhost named 1local.myweb.com . Just follow the steps below&#8230; Open your hosts file located in 1/etc/hosts . To open a file either you can use your favorite text editor or use nano in command line. 1sudo nano /etc/hosts . Now add the [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/how-to-change-root-password-on-mamp/' rel='bookmark' title='How to change root password on MAMP'>How to change root password on MAMP</a></li>
<li><a href='http://blog.smronju.com/create-virtual-host-in-ubuntu/' rel='bookmark' title='Creating virtual host in ubuntu.'>Creating virtual host in ubuntu.</a></li>
<li><a href='http://blog.smronju.com/get-started-with-zend-framework/' rel='bookmark' title='Get started with Zend Framework.'>Get started with Zend Framework.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Creating virtualhost on MAMP is very easy. Suppose you want to make a virtualhost named</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">local.myweb.com</div></td></tr></tbody></table></div>
<p>. Just follow the steps below&#8230;</p>
<ol>
<li>Open your hosts file located in
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/hosts</div></td></tr></tbody></table></div>
<p>. To open a file either you can use your favorite text editor or use nano in command line.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/hosts</div></td></tr></tbody></table></div>
<p>. Now add the following line</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">127.0.0.1 local.myweb.com</div></td></tr></tbody></table></div>
<p>(Save and exit. If you are using nano then press ctrl+x, press y then press enter).</li>
<li>Create a file named
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vhosts.conf</div></td></tr></tbody></table></div>
<p>in</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/Applications/MAMP/conf/apache/vhosts.conf</div></td></tr></tbody></table></div>
<p>and then open it.</li>
<li>Copy and paste following lines in it.
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;VirtualHost *:80&gt;<br />
&nbsp; ServerName local.myweb.com<br />
&nbsp; ServerAlias local.myweb.com<br />
&nbsp; DocumentRoot /Applications/MAMP/htdocs/myweb<br />
&nbsp; ErrorLog /Applications/MAMP/logs/myweb.log.txt<br />
&nbsp; DirectoryIndex index.html index.htm index.php index.php4 index.php5<br />
&nbsp; &lt;Directory /Applications/MAMP/htdocs/myweb/&gt;<br />
&nbsp; &nbsp; Options -Indexes +IncludesNOEXEC +FollowSymLinks<br />
&nbsp; &nbsp; allow from all<br />
&nbsp; &nbsp; AllowOverride All<br />
&nbsp; &lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</div></td></tr></tbody></table></div>
</li>
<li>Enable your virtualhost by adding below line in
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/Applications/MAMP/conf/apache/httpd.conf</div></td></tr></tbody></table></div>
<p>at the bottom of the file.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NameVirtualHost *:80<br />
Include /Applications/MAMP/conf/apache/vhosts.conf</div></td></tr></tbody></table></div>
</li>
<li>Restart your apache server and test it. Open your web browser and type local.myweb.com you will see<br />
<a href="http://blog.smronju.com/wp-content/uploads/2010/11/02.jpg"><img class="aligncenter size-medium wp-image-250" title="02" src="http://blog.smronju.com/wp-content/uploads/2010/11/02-300x80.jpg" alt="" width="300" height="80" /></a></li>
</ol>
<p>Tada you are done! Enjoy and correct me if I&#8217;m wrong <img src='http://blog.smronju.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/how-to-change-root-password-on-mamp/' rel='bookmark' title='How to change root password on MAMP'>How to change root password on MAMP</a></li>
<li><a href='http://blog.smronju.com/create-virtual-host-in-ubuntu/' rel='bookmark' title='Creating virtual host in ubuntu.'>Creating virtual host in ubuntu.</a></li>
<li><a href='http://blog.smronju.com/get-started-with-zend-framework/' rel='bookmark' title='Get started with Zend Framework.'>Get started with Zend Framework.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/create-virtualhost-in-your-mamp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remove GNOME Menu Icon Arrow</title>
		<link>http://blog.smronju.com/remove-gnome-menu-icon-arrow/</link>
		<comments>http://blog.smronju.com/remove-gnome-menu-icon-arrow/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 08:30:38 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=253</guid>
		<description><![CDATA[If you are linux user and using ubuntu or some other distribution then this may help you to remove menu icon arrow. Here&#8217;s how to do this. Before you do that you need some package to be in your system. If not just copy and paste these commands in terminal. &#160; &#160; &#160; &#160; 1sudo [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/delete-wine-from-main-menu-how-do-i-re-add/' rel='bookmark' title='Deleted &#8220;WINE&#8221; from Main Menu? how to re-add?'>Deleted &#8220;WINE&#8221; from Main Menu? how to re-add?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you are linux user and using ubuntu or some other distribution then this may help you to remove menu icon arrow. Here&#8217;s how to do this.</p>
<p>Before you do that you need some package to be in your system. If not just copy and paste these commands in terminal.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<pre dir="ltr">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install apt-build //if prompt, choose your options and processor type.</div></td></tr></tbody></table></div>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-build source gnome-panel<br />
sudo apt-get build-dep gnome-panel</div></td></tr></tbody></table></div>
</pre>
<p>I believe you already have gnome-panel_2.30.2.orig.tar.gz in /var/cache/apt-build/build/ folder.</p>
<ol>
<li>Now go to that folder using following
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /var/cache/apt-build/build/</div></td></tr></tbody></table></div>
</li>
<li>Then unzip the folder
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -xzvf /var/cache/apt-build/build/gnome-panel_2.30.2.orig.tar.gz -C ~/</div></td></tr></tbody></table></div>
<p>(this will extract the folder into your home folder after job you can remove it.)</li>
<li>Open
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">panel-menu-button.c</div></td></tr></tbody></table></div>
<p>for necessary changes</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd ~/gnome-panel-2.30.2/ sudo gedit gnome-panel/panel-menu-button.c</div></td></tr></tbody></table></div>
</li>
<li>Find the line
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;has-arrow&quot;, &lt;strong&gt;TRUE&lt;/strong&gt;, NULL);</div></td></tr></tbody></table></div>
<p>and change it to</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;has-arrow&quot;, &lt;strong&gt;FALSE&lt;/strong&gt;,NULL);</div></td></tr></tbody></table></div>
</li>
<li>Finally run these commands
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo ./configure</div></td></tr></tbody></table></div>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo make</div></td></tr></tbody></table></div>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo make install</div></td></tr></tbody></table></div>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo killall gnome-panel</div></td></tr></tbody></table></div>
</li>
</ol>
<p>That&#8217;s it you are done.</p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/delete-wine-from-main-menu-how-do-i-re-add/' rel='bookmark' title='Deleted &#8220;WINE&#8221; from Main Menu? how to re-add?'>Deleted &#8220;WINE&#8221; from Main Menu? how to re-add?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/remove-gnome-menu-icon-arrow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update Grub Boot Loader After Installing Windows</title>
		<link>http://blog.smronju.com/update-grub-boot-loader-after-installing-windows/</link>
		<comments>http://blog.smronju.com/update-grub-boot-loader-after-installing-windows/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 05:49:17 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=244</guid>
		<description><![CDATA[To update your grub boot loader just follow the steps below. Boot your ubuntu from live cd, mount drive where ubuntu were installed then open terminal from applications-&#62;accessories-&#62;terminal. Type 1grub-install -v . This will prompt your installed grub version. 1mount &#124; tail -1 verify that you mount the correct drive. If it&#8217;s ok then following [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/decorate-grub-2-boot-loader-using-burg/' rel='bookmark' title='Decorate Grub 2 boot loader using BURG!'>Decorate Grub 2 boot loader using BURG!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To update your grub boot loader just follow the steps below.</p>
<ol>
<li> Boot your ubuntu from live cd, mount drive where ubuntu were installed then open terminal from applications-&gt;accessories-&gt;terminal. Type
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">grub-install -v</div></td></tr></tbody></table></div>
<p>. This will prompt your installed grub version.</li>
<li>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mount | tail -1</div></td></tr></tbody></table></div>
<p>verify that you mount the correct drive. If it&#8217;s ok then following output will be shown</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)</div></td></tr></tbody></table></div>
</li>
<li>To make sure this is indeed the Ubuntu boot partition, run
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot</div></td></tr></tbody></table></div>
</li>
<li>In either case, the output should be something like this:
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">config-2.6.18-3-686 &nbsp; &nbsp; &nbsp;initrd.img-2.6.18-3-686.bak &nbsp;System.map-2.6.18-3-686<br />
grub &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lost+found &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vmlinuz-2.6.18-3-686<br />
initrd.img-2.6.18-3-686 &nbsp;memtest86+.bin</div></td></tr></tbody></table></div>
</li>
<li>Now that everything is mounted, we just need to reinstall GRUB by specifying the correct directory and the correct drive name:
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda</div></td></tr></tbody></table></div>
</li>
<li>If all went well, you should see something like this:
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Installation finished. No error reported.<br />
This is the contents of the device map /boot/grub/device.map.<br />
Check if this is correct or not. If any of the lines is incorrect,<br />
fix it and re-run the script `grub-install'.</div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p>(hd0)   /dev/sda</li>
<li>Reboot, making sure to boot to your hard drive and not to the live CD. Grub should be installed and both Ubuntu and Windows should have been automatically detected and listed in the menu.The Master Boot Record will execute Grub as the initial boot-loader. The Windows boot-loader is contained within the Windows partition and will then be chainloaded by the Grub boot-loader.</li>
</ol>
<p>Enjoy!</p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/decorate-grub-2-boot-loader-using-burg/' rel='bookmark' title='Decorate Grub 2 boot loader using BURG!'>Decorate Grub 2 boot loader using BURG!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/update-grub-boot-loader-after-installing-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making Web Server in ubuntu.</title>
		<link>http://blog.smronju.com/setup-your-ubuntu-as-web-server/</link>
		<comments>http://blog.smronju.com/setup-your-ubuntu-as-web-server/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 20:30:52 +0000</pubDate>
		<dc:creator>smronju</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.smronju.com/?p=191</guid>
		<description><![CDATA[Being as a web developer I often have to configure my Ubuntu as a web server for developing PHP projects. This is actually pretty common thing that you have to make it whether you are in windows or mac. In this tutorial I will show you how to make web server in your favorite OS [...]
Related posts:<ol>
<li><a href='http://blog.smronju.com/forgot-root-password-of-mysql/' rel='bookmark' title='Forgot root password of MySQL ?'>Forgot root password of MySQL ?</a></li>
<li><a href='http://blog.smronju.com/create-virtual-host-in-ubuntu/' rel='bookmark' title='Creating virtual host in ubuntu.'>Creating virtual host in ubuntu.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Being as a web developer I often have to configure my Ubuntu as a web server for developing PHP projects. This is actually pretty common thing that you have to make it whether you are in windows or mac. In this tutorial I will show you how to make web server in your favorite OS Ubuntu. So, let&#8217;s do it.</p>
<p><strong>First install the apache2 php5 and mysql </strong></p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install apache2 php5 php5-gd mysql-server phpmyadmin</div></td></tr></tbody></table></div>
<p>This will install all the necessary applications you need. You may be prompted  to decide on a MySQL root password (set one if you want), and to  configure PHPMyAdmin (select apache2 as the server type). After that, we need to perform some minor configuration to get PHPMyAdmin  working.</p>
<p>Open your terminal from applications-&gt;accessories-&gt;terminal and type the following line.</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo gedit /etc/apache2/apache2.conf</div></td></tr></tbody></table></div>
<p>Add this line at the bottom</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Enable PHPMyAdmin<br />
Include /etc/phpmyadmin/apache.conf</div></td></tr></tbody></table></div>
<p>Now Save and Exit then restart Apache</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/apache2 restart</div></td></tr></tbody></table></div>
<p>Everything should now be configured – go to http://localhost/your_project_folder for local webpages , and http://localhost/phpmyadmin for database administration. If everything is okay you should see</p>
<div style="float: left;"><a href="http://blog.smronju.com/wp-content/uploads/2010/11/02.jpg"><img class="size-medium wp-image-250 alignleft" title="02" src="http://blog.smronju.com/wp-content/uploads/2010/11/02-300x80.jpg" alt="" width="283" height="61" /></a></div>
<div style="float: left;"><a href="http://blog.smronju.com/wp-content/uploads/2010/11/01.jpg"><img class="size-medium wp-image-251 alignleft" title="phpmyadmin" src="http://blog.smronju.com/wp-content/uploads/2010/11/01-300x228.jpg" alt="" width="294" height="223" /></a></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Adding a virtual host to your LAMP server</strong></p>
<p>To add virtual hosts in your server follow my previous post <a title="Creating Virtual host in ubuntu" href="http://blog.smronju.com/create-virtual-host-in-ubuntu/smronju/how-to/ubuntu/" target="_blank">here</a>.</p>
<p>Now enable mod_rewrite</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /etc/apache2/mods-enabled<br />
sudo touch rewrite.load<br />
sudo gedit rewrite.load</div></td></tr></tbody></table></div>
<p>Now paste this following line</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so</div></td></tr></tbody></table></div>
<p>Then edit</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo gedit /etc/apache2/sites-available/default</div></td></tr></tbody></table></div>
<p>Find the following lines</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Options Indexes FollowSymLinks MultiViews<br />
AllowOverride &lt;strong&gt;None&lt;/strong&gt;<br />
Order allow,deny<br />
allow from all</div></td></tr></tbody></table></div>
<p>and change it to</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Options Indexes FollowSymLinks MultiViews<br />
AllowOverride &lt;strong&gt;all&lt;/strong&gt;<br />
Order allow,deny<br />
allow from all</div></td></tr></tbody></table></div>
<p>Finally restart Apache</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:635px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/apache2 restart</div></td></tr></tbody></table></div>
<p>That&#8217;s it now your PC is ready for development. Enjoy!</p>
<p>Related posts:<ol>
<li><a href='http://blog.smronju.com/forgot-root-password-of-mysql/' rel='bookmark' title='Forgot root password of MySQL ?'>Forgot root password of MySQL ?</a></li>
<li><a href='http://blog.smronju.com/create-virtual-host-in-ubuntu/' rel='bookmark' title='Creating virtual host in ubuntu.'>Creating virtual host in ubuntu.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smronju.com/setup-your-ubuntu-as-web-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

