<?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/" version="2.0">

<channel>
	<title>nurasto.com</title>
	
	<link>http://www.nurasto.com</link>
	<description>Linux, MySQL, PHP and Web Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:42:18 +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/nurasto" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="nurasto" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>AdSense akhirnya mendukung Bahasa Indonesia</title>
		<link>http://www.nurasto.com/2012/02/03/adsense-akhirnya-mendukung-bahasa-indonesia/</link>
		<comments>http://www.nurasto.com/2012/02/03/adsense-akhirnya-mendukung-bahasa-indonesia/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 10:42:18 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[AdSense]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Indonesia]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=368</guid>
		<description><![CDATA[Sudah sekian lama menunggu kehadiran dukungan AdSense terhadap Bahasa Indonesia akhirnya hari ini terwujud sudah. Saya mengetahui kabar ini dari Twitter tim AdSense Indonesia (@IDadsense) beberapa jam yang lalu dan saya cukup gembira dengan kabar baik ini. Kiranya kesempatan yang diberikan kepada kita ini akan membantu publisher dan blogger Indonesia untuk membuat konten yang menarik [...]]]></description>
			<content:encoded><![CDATA[<p>Sudah sekian lama menunggu kehadiran <a href="http://adsense.blogspot.com/2012/02/adsense-now-speaks-indonesian.html" target="_blank">dukungan AdSense terhadap Bahasa Indonesia</a> akhirnya hari ini terwujud sudah. Saya mengetahui kabar ini dari <a href="http://bit.ly/wcT8Ls" target="_blank">Twitter tim AdSense Indonesia </a>(<a href="http://twitter.com/IDadsense" target="_blank">@IDadsense</a>) beberapa jam yang lalu dan saya cukup gembira dengan kabar baik ini. Kiranya kesempatan yang diberikan kepada kita ini akan membantu publisher dan blogger Indonesia untuk membuat konten yang menarik lagi, serta semakin menyemarakan dunia internet Indonesia. Mudah &#8211; mudahan kita memanfaatkan dengan baik dengan cara &#8211; cara yang tepat guna dan sesuai dengan aturan &#8211; aturan AdSense.</p>
<p>Semoga blogger Indonesia semakin bersemangat!.</p>
<p>&nbsp;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/DA_1MQpUljQElgsOiXLG7njRWCU/0/da"><img src="http://feedads.g.doubleclick.net/~a/DA_1MQpUljQElgsOiXLG7njRWCU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DA_1MQpUljQElgsOiXLG7njRWCU/1/da"><img src="http://feedads.g.doubleclick.net/~a/DA_1MQpUljQElgsOiXLG7njRWCU/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2012/02/03/adsense-akhirnya-mendukung-bahasa-indonesia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting Comments to Disqus on WordPress</title>
		<link>http://www.nurasto.com/2012/01/10/exporting-comments-to-disqus-on-wordpress/</link>
		<comments>http://www.nurasto.com/2012/01/10/exporting-comments-to-disqus-on-wordpress/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:13:06 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Disqus]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=345</guid>
		<description><![CDATA[I was wondering how to export my website comments into Disqus. It&#8217;s very easy to move all comments to Disqus because they already made a plugin to help WordPress users to move existing comments into their system. Before using Disqus WordPress Plugin, you need to sign up to disqus to get API (Application Programming Interface) [...]]]></description>
			<content:encoded><![CDATA[<p>I was wondering how to export my website comments into <a href="http://www.disqus.com">Disqus</a>. It&#8217;s very easy to move all comments to Disqus because they already made a plugin to help WordPress users to move existing comments into their system. Before using Disqus WordPress Plugin, you need to sign up to disqus to get API (Application Programming Interface) Key.</p>
<p>If you already have Disqus API Key. You need to download <a href="http://wordpress.org/extend/plugins/disqus-comment-system/" target="_blank">Disqus Comment System plugin</a> from WordPress plugin repository or direct download from your WordPress Admin interface. After installation, you&#8217;ll find Disqus Plugin menu under Comments section then you can start exporting existing comments to Disqus by pressing Export Comments. You could manage comments on Disqus inside WordPress Admin, they give an iframe interface to their site.</p>
<p>The good thing from Disqus Plugin is Sync Comments feature which allowing you to sync between Disqus and WordPress built-in comment system. So, in next feature you&#8217;re able to retrieve comments for a post. Another point that makes me want to use Disqus is their system could help me in combating spam comments.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Z8Fs7qJ9t9Q541sCv0m_UjNP5K4/0/da"><img src="http://feedads.g.doubleclick.net/~a/Z8Fs7qJ9t9Q541sCv0m_UjNP5K4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Z8Fs7qJ9t9Q541sCv0m_UjNP5K4/1/da"><img src="http://feedads.g.doubleclick.net/~a/Z8Fs7qJ9t9Q541sCv0m_UjNP5K4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2012/01/10/exporting-comments-to-disqus-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>What is SEO?</title>
		<link>http://www.nurasto.com/2012/01/06/what-is-seo/</link>
		<comments>http://www.nurasto.com/2012/01/06/what-is-seo/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 09:58:30 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=332</guid>
		<description><![CDATA[Few years a go, my client ask about SEO and what&#8217;s SEO matter to his website. I am bit surprised when he ask me that, it&#8217;s a jargon in Internet marketing and he know it. SEO stand for Search Engine Optimization. We do some organic optimization to our site involving internal and external cause to [...]]]></description>
			<content:encoded><![CDATA[<p>Few years a go, my client ask about SEO and what&#8217;s SEO matter to his website. I am bit surprised when he ask me that, it&#8217;s a jargon in Internet marketing and he know it. SEO stand for Search Engine Optimization. We do some organic optimization to our site involving internal and external cause to make it visible on search engine. There&#8217;s bunch of SEO article out there but this issue is interesting to discuss.</p>
<p>This site was extremely optimized and slump in several year because of inactivity. I am bit understand how SEO works before Google Panda applied and make the crowd screams. What the heck is google Panda? is Google has panda on its engine? Not really,<a title="Finding more high-quality sites in search" href="http://googleblog.blogspot.com/2011/02/finding-more-high-quality-sites-in.html" target="_blank"> it&#8217;s new search algorithm introduced by Google by February 2011</a>. It makes low quality content pushed down from the SERP. Hold on, man. What is SERP?. Well, I guess we need be more detail about that awesome jargon, right?</p>
<p><span id="more-332"></span></p>
<p>Before we get lost, We may agree that search engine dominated by Google and this post will narrowing the search engine provider to Google. Now, what is SERP? SERP stands for Search Engine Result Page. In general talks, it can be express like this &#8220;I want my site is visible on the first page&#8221;. So, when a user typing their keyword on search box, Google will response with search result, right? and it will come with pages. When your web site are visible in the first page then you got SERP #1 which is awesome and you will likely get clicked by visitor. A myth tell me that visitor will voluntary clicking result until SERP #10 and they will bounce out and refining their keywords.</p>
<p>We should understand that there&#8217;s two &#8220;ways&#8221; to make our site visible to the mass based on keyword they put in the mighty search box on any search engine. In Google there&#8217;s two ways, as long as I know, there are Paid Search and Organic Search.</p>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.nurasto.com/wp-content/uploads/2012/01/paidvsorganic.png"><img class="size-medium wp-image-334 " title="Paid Search vs Organic Search on Google SERP" src="http://www.nurasto.com/wp-content/uploads/2012/01/paidvsorganic-300x151.png" alt="Paid Search vs Organic Search on Google SERP" width="300" height="151" /></a><p class="wp-caption-text">Paid Search vs Organic Search on Google SERP</p></div>
<p>You can use <a title="Adwords" href="http://adwords.google.com/" target="_blank">Adwords</a> to add your site on Paid Search, as long as you have plan to market by advertising your website, you can go with it. Organic search are the opposite, your site visibility are based on organic reason and its free listing. SEO takes place on organic search, because it&#8217;s more robust than Paid Search. Your site can take place on SERP in certain amount of time, well, quite a long time.</p>
<p>There&#8217;s two kind of SEO, White Hat and Black Hat. Black Hat using techniques that violate Search Engine best practice and may lead your website vanish from SERP. Hidden text is one of black hat techniques. There&#8217;s a lot of black hat techniques, for education purpose, you can read about <a title="Black Hat SEO" href="http://www.seobesttools.com/black-hat-seo/" target="_blank">black hat seo</a>. Again, don&#8217;t ever try to do this to your awesome site.</p>
<p>White Hat SEO techniques has same complexity like black hat but you&#8217;re assure to get long-standing result on SERP. What you can do on White Hat? here&#8217;s you can do:</p>
<p><strong>Internal Optimization</strong></p>
<ol>
<li>Quality Content and Good Title</li>
<li>Treat your content as your write in word processor.</li>
<li>Add description on your meta tags</li>
<li>Put good keyword on your content</li>
<li>Avoid Duplicate Content and same page title</li>
<li>Clear navigation</li>
<li>Friendly URL preferable than hazardous URL such as http://www.mysite.com/index.php?p=article&amp;c=seo-tip&amp;id=1&amp;year=2012</li>
<li>Submit your site map to Search Engine</li>
<li>Check your grammar, Google Panda sees this aspect.</li>
</ol>
<p><strong>External Optimization</strong></p>
<ol>
<li>Link building such as post your URL or other related content to social media service like Twitter, YouTube</li>
<li>Actively engage with related community and introduce your website organically.</li>
<li>Post sincere and truthful comment on websites but don&#8217;t spam.</li>
<li>Submit your website to famous search engine.</li>
</ol>
<p>External optimization are more human than internal optimization. Internal Optimization needs geek or SEO Consultant to help you  or you may use the famous website application such as <a title="Wordpress" href="http://www.wordpress.org/" target="_blank">WordPress</a> with additional plugins which very easy to install. Remember, WordPress is not suitable for every website and not the one and only solution.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/u-vgTn8StLOkWFoZxhDezU4BNmA/0/da"><img src="http://feedads.g.doubleclick.net/~a/u-vgTn8StLOkWFoZxhDezU4BNmA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/u-vgTn8StLOkWFoZxhDezU4BNmA/1/da"><img src="http://feedads.g.doubleclick.net/~a/u-vgTn8StLOkWFoZxhDezU4BNmA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2012/01/06/what-is-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Internet Explorer</title>
		<link>http://www.nurasto.com/2012/01/04/about-internet-explorer/</link>
		<comments>http://www.nurasto.com/2012/01/04/about-internet-explorer/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 17:40:40 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Software and Web Development]]></category>
		<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=280</guid>
		<description><![CDATA[Obviously, I was grown up with Internet Explorer 6. I want to write up about Internet Explorer and why we should love this browser. Internet Explorer always be victim for browser war and no one could tear IE down from browser market share. Its still has good market share until today. We all know that [...]]]></description>
			<content:encoded><![CDATA[<p>Obviously, I was grown up with Internet Explorer 6. I want to write up about Internet Explorer and why we should love this browser. Internet Explorer always be victim for browser war and no one could tear IE down from browser market share. Its still has good market share until today.</p>
<p>We all know that IE 6, IE 7, and IE 8 has different implementation. There&#8217;s known hacks know as conditional comment, but I prefer say conditional comments are not hacking because the condition located inside HTML comments which will successfully validated by W3C Validation tool.</p>
<p>IE 9 has different story. This browser is the first browser implementing hardware acceleration using GPU on browser&#8217;s canvas. You will find smooth transition between scroll and animation on good GPU. Internet Explorer 9 not supporting HTML 5 and CSS 3 widely for good reason, both specification are still in draft until this article written.</p>
<p><span id="more-280"></span></p>
<p>Internet Explorer are easy to use for beginner despite the browser it self is automatically installed on every Windows. We often meet the same situation, Firefox preinstalled on most Linux OS based distribution such as Ubuntu or Fedora Core. Debian are using rebranding version of Firefox called Iceweasel.  For me, it&#8217;s same analogy to open source software, why not major distribution using Chromium or Midori for example. Why apple includes safari on their operating system instead of other browser?</p>
<p>If we say that our code broken in IE 9, then it&#8217;s broken to some extend. Remember when we talking about semantic, we don&#8217;t need to hack our HTML document. We should play with CSS that&#8217;s why conditional comment on IE quite handy without breaking the validation process. If you want all browser have same appearance as we intended then we just need one browser, regardless what is the best on the market.</p>
<p>Just dump IE 6 and we don&#8217;t need to over optimize to that browser. Leave PNG as is, don&#8217;t need to load htc or PNG hack. IE 6 was born more than decade a go, in computer world it could be specified as a dinosaurs browser. Microsoft it self want to dump IE 6 but the resistance of  most offices to change are another challenge. Why? because it will cost huge money to upgrade massive number of computers into new operating system.</p>
<p>If we talking about website then we shouldn&#8217;t have problem to push our user to use Firefox, Opera, Chrome, etc. But in many cases for intranet application, most of them was made to specific browser which is Internet Explorer. Using other browsers will lead to unexpected behavior which lead major business problem. This is one of many factor where management didn&#8217;t want to change their de facto browser. Remember, it&#8217;s not easy as we thought to change a browser in big organization.</p>
<p>The best bet is still use XHTML doctype if we want our website accessible for wide audience. There&#8217;s nothing wrong not to use HTML 5 doctype, HTML 5 still  working draft. Don&#8217;t take on pressure about validation when in some case we need to hack our code. HTML is HTML, it&#8217;s not special format for electronic data interchange. That&#8217;s why XML or even JSON takes place.</p>
<p>Love Internet Explorer like we love other browser. We still need Internet Explorer to grow and flourish our online business. Sadly, I use Google Chrome to write this article.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/1qGg0IWiiGDoyjsKTnNNLy-fOYE/0/da"><img src="http://feedads.g.doubleclick.net/~a/1qGg0IWiiGDoyjsKTnNNLy-fOYE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1qGg0IWiiGDoyjsKTnNNLy-fOYE/1/da"><img src="http://feedads.g.doubleclick.net/~a/1qGg0IWiiGDoyjsKTnNNLy-fOYE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2012/01/04/about-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Advertisement in The Middle of WordPress Archive Post</title>
		<link>http://www.nurasto.com/2011/12/26/show-advertisement-in-the-middle-of-wordpress-archive-post/</link>
		<comments>http://www.nurasto.com/2011/12/26/show-advertisement-in-the-middle-of-wordpress-archive-post/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 23:17:15 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Software and Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=283</guid>
		<description><![CDATA[You want to monetizing your wordpress powered blog and you pick strategic places to put your ads. One of your ads unit place is in the middle of archive posts list and you want to modify your template / theme to accomplish the task. There&#8217;s many way to edit your template but I want to [...]]]></description>
			<content:encoded><![CDATA[<p>You want to monetizing your wordpress powered blog and you pick strategic places to put your ads. One of your ads unit place is in the middle of archive posts list and you want to modify your template / theme to accomplish the task.</p>
<p>There&#8217;s many way to edit your template but I want to give an example using simple template. The template will contains index.php and style.css which is the basic requirement for creating wordpress theme. If you get the idea, you may applying this technique in any theme.</p>
<p><span id="more-283"></span></p>
<h2>Start your engine</h2>
<p>Get a dummy ad image either 728 or 480 in pixels width. if you didn&#8217;t have any dummy image then you could download  ads from<a href="http://www.iab.net/iab_products_and_industry_services/1421/1443/1452" target="_blank"> IAB Ad Unit Guidelines</a>. Choose one and right click to save the image in your computer. This is an easy task and now you have image file.</p>
<p>You also need to download your posts from your live blog, you could export from your host, You need wordpress export plugin to exporting to WXR, then import downloaded WXR file to your wordpress in localhost.</p>
<h2>Create template structures</h2>
<p>We need to create new template folder inside wp-content/themes. Let&#8217;s name it <strong>middleads</strong>. Now we have a new directory to put files on it. The file structure will like this</p>
<ul>
<li>wp-content</li>
<ul>
<li>themes</li>
<ul>
<li>middleads</li>
<ul>
<li>images</li>
<ul>
<li>ads.png</li>
</ul>
<li>style.css</li>
<li>index.php</li>
</ul>
</ul>
</ul>
</ul>
<p>Now we need to create <strong>images </strong>sub directory and copy your dummy ads inside <strong>images</strong> directory. You could rename your dummy ads to <strong>ads.png </strong>if the file is in PNG format, if you have dummy file in JPG or GIF you should use the extension. For example <strong>ads.jpg</strong> or <strong>ads.gif</strong>. I will use <strong>ads.png </strong>in this tutorial, so you can adjust / substitute with your own file.</p>
<h2>Create style.css</h2>
<p>Now we need to create the basic of <strong>style.css</strong>. WordPress could recognize your template from this file. Open your favorite text editor and copy following code to your style.css file</p>
<pre class="brush: css; gutter: true">/*
Theme Name: Ads in The Middle
Theme URI: http://www.nurasto.com/
Author: Dityo Nurasto
Author URI: http://www.nurasto.com/
Description: Put ads in the middle of archive posts list
Version: 1.0
License: GNU General Public License
License URI: license.txt
Tags: dummy
*/</pre>
<p>Now, save <strong>style.css</strong> into our new template directory . If you use notepad, please don&#8217;t forget to put &#8221; (double quotes) around the filename. For example : <strong>&#8220;style.css&#8221;</strong>. Notepad always put TXT extension in the end of filename if you don&#8217;t use double quotes.</p>
<p><strong>Create index.php</strong></p>
<p>Now we need to create <strong>index.php</strong> to implement the idea.</p>
<pre class="brush: php; gutter: true">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;Middle Ads Example&lt;/title&gt;
	&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php if(have_posts()): ?&gt;
&lt;?php $post_index = 0;  ?&gt;
&lt;?php $ads_location = ceil(get_option(&#039;posts_per_page&#039;) / 2); ?&gt;
&lt;?php while(have_posts()) : the_post(); ?&gt;

&lt;?php if($post_index == $ads_location): ?&gt;
	&lt;img src=&quot;&lt;?php echo get_template_directory_uri(); ?&gt;/images/ads.png&quot; /&gt;
&lt;?php endif; ?&gt;

&lt;div &lt;?php post_class(); ?&gt;&gt;
	&lt;h1&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
	&lt;div&gt;
		Written by &lt;a href=&quot;&lt;?php get_author_posts_url(the_author_meta(&#039;ID&#039;)); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;
	&lt;/div&gt;
	&lt;?php the_content(__(&#039;Read More ...&#039;)); ?&gt;
&lt;/div&gt;

&lt;?php $post_index++; ?&gt;
&lt;?php endwhile; ?&gt;
&lt;?php else: ?&gt;
&lt;p&gt;Sorry, you need dummy post to test this template script&lt;/p&gt;
&lt;?php endif; ?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Save those lines to <strong>index.php</strong>. So, what&#8217;s the code doing? I&#8217;ll try to explain how it works</p>
<ol>
<li>$post_index variable store how many loop occurring when posts are being read, so in every loop $post_index will be added by one. You can see $post_index++, this is when the incremental of $post_index happen.</li>
<li>$ads_location store maximum post per page and then divided by two. For example, you have 10 post in a page then the location will be 5. ceil will round decimal number into whole number, such 1.5 into 2.</li>
<li>$post_index is zero based. It will start from zero. Simply when loop #6 happen, actual $post_index value is 5. If you change to 1, then the ads will pulled up. If you change to -1, then the ads will pulled down.</li>
</ol>
<h2>Last step</h2>
<p>Activate your new template and access your wordpress blog. I hope you could understand the concept and could implement this code to your favorite themes.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/a7y68WTJudmwnDWYEIuJIPkLTN4/0/da"><img src="http://feedads.g.doubleclick.net/~a/a7y68WTJudmwnDWYEIuJIPkLTN4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/a7y68WTJudmwnDWYEIuJIPkLTN4/1/da"><img src="http://feedads.g.doubleclick.net/~a/a7y68WTJudmwnDWYEIuJIPkLTN4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/26/show-advertisement-in-the-middle-of-wordpress-archive-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transfer Domain from GoDaddy to Namecheap</title>
		<link>http://www.nurasto.com/2011/12/15/transfer-domain-from-godaddy-to-namecheap/</link>
		<comments>http://www.nurasto.com/2011/12/15/transfer-domain-from-godaddy-to-namecheap/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 21:51:13 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Domain]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=269</guid>
		<description><![CDATA[I&#8217;ve never been transfer a domain from one registrar to another registrar. This time, I would like to try to transfer one of my domain to be used on a VPS. There&#8217;s is no problem with GoDaddy anyway, this is one of my experiment sacrificing my parking domain. Namecheap offering very cheap SSL, so why not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never been transfer a domain from one registrar to another registrar. This time, I would like to try to transfer one of my domain to be used on a VPS. There&#8217;s is no problem with <a title="GoDaddy" href="http://x.co/cPDV" target="_blank">GoDaddy</a> anyway, this is one of my experiment sacrificing my parking domain. Namecheap offering very cheap SSL, so why not give a try since my VPS having dedicated IP.</p>
<p>I am bit worried since this is my first time transferring a domain. Most of time I was using move service on Directi panel and telling to my new domain provider that I push my domain into my domain panel.</p>
<p>I want to share my experience during pre domain transfer process. Maybe could be useful for people who never transfer domain before, just like me.</p>
<p><span id="more-269"></span></p>
<h2>You need to get EPP Code</h2>
<p>In <a title="GoDaddy" href="http://x.co/cPDV" target="_blank">GoDaddy</a> domain panel, you will get confused where you could get your EPP code. GoDaddy Authorization Code is your EPP. You could find it under Domain Information, then you will need to press Send by Email link.</p>
<p>Make sure you have white list for support at godaddy.com and wait for moment to receive your EPP code. If you didn&#8217;t get the email after 1 day you may doing alternative action.</p>
<p>Go to tools at the main menu and select Exportable Lists, you can create list of your domains there and check Authorization Code. Make sure you select none for format if you want plain CSV file since GZ needs to decompress using 7ZIP or equivalent software. Give reasonable time for GoDaddy system to process your request and will send you notification when its done. Now, you can download CSV file which will contains your domains EPP code.</p>
<h2>You need to unlock your domain</h2>
<p>Take a look on Domain Information whether your domain still locked, you need to release that lock before you could transfer domain to another registrar. In my case will be NameCheap.</p>
<h2>Transfer your domain to Namecheap</h2>
<p><a title="NameCheap Website" href="http://www.namecheap.com?aff=26798" target="_blank">Visit NameCheap website</a> and find domain transfer. You will be provided with large text box and type your domain there. You could add EPP code along with your domain, separated by comma. Another way, just put your domain only, you will need to fill your EPP Code when check out.</p>
<p>The next window, namecheap will show you about availability for domain transfer. Domain transfer has some rules to follow such as:</p>
<ol>
<li>Your domain must be 60 days</li>
<li>Your domain must be unlocked</li>
<li>Your domain administrative must have same address as you transfer. Just don&#8217;t change your whois information right before you want to transfer your domain.</li>
</ol>
<p>Maybe there&#8217;s others rules applied. That&#8217;s what I know so far.</p>
<p>The payment process will held, I was charged for transfer domain which included the one year domain fee. Well, that&#8217;s make a peace of mind.</p>
<p>Next step, new registrar will send you a confirmation and approval email, then you will need 5 days to wait. Some condition may happen during transfer such as old registrar denied the transfer.</p>
<p>The last thing, we wait until transfer process is done.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/h88EVXEMEyS0JcI6GcB4VzH1Yjw/0/da"><img src="http://feedads.g.doubleclick.net/~a/h88EVXEMEyS0JcI6GcB4VzH1Yjw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/h88EVXEMEyS0JcI6GcB4VzH1Yjw/1/da"><img src="http://feedads.g.doubleclick.net/~a/h88EVXEMEyS0JcI6GcB4VzH1Yjw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/15/transfer-domain-from-godaddy-to-namecheap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup 128MB VPS for website using Centos 6</title>
		<link>http://www.nurasto.com/2011/12/14/setup-128mb-vps-for-website-using-centos-6/</link>
		<comments>http://www.nurasto.com/2011/12/14/setup-128mb-vps-for-website-using-centos-6/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 13:21:29 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=234</guid>
		<description><![CDATA[Installing nginx, php, mysql on Centos 6 is tricky business. Unlike Debian or Ubuntu, some package not available on it&#8217;s default repository. I tend to use Centos or Debian as server, but this time I choose to install Centos on my 128MB VPS. My consideration because of OpenVZ which is different from XEN which has [...]]]></description>
			<content:encoded><![CDATA[<p>Installing nginx, php, mysql on Centos 6 is tricky business. Unlike Debian or Ubuntu, some package not available on it&#8217;s default repository. I tend to use Centos or Debian as server, but this time I choose to install Centos on my 128MB VPS. My consideration because of OpenVZ which is different from XEN which has it&#8217;s own kernel space and iptables. It&#8217;s recommended to use same Linux Distro on OpenVZ while XEN you could use any linux flavor regardless the container. Maybe I am out of date about OpenVZ improvement but that&#8217;s what I know.</p>
<p>I want to use latest version of <del>LAMP</del> LNMP pack. As we all know, Centos is an enterprise grade linux based operating system which means the updates will not as fast as bleeding edge distro such as Fedora Core. The situation is quite same like Debian vs Ubuntu*. We will use use third party repository to install software we need, so we don&#8217;t need to compile every software on production server. I will use EPEL and Remi&#8217;s repository in this article.</p>
<p>Disclaimer: I am not responsible for anything happen with your production server/VPS, you may test this article on your <a title="VirtualBox" href="http://www.virtualbox.org" target="_blank">VirtualBox</a> before applying into your VPS.</p>
<p><span id="more-234"></span>Before we start, you need to login as root or escalate to be root using <strong>su -</strong></p>
<h2>Get RPM from EPEL &amp; Remi</h2>
<p>Run this command one by one in your root home.</p>
<pre class="brush: bash; gutter: true">wget http://download.fedora.redhat.com/pub/epel/beta/6/i386/epel-release-6-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm</pre>
<h2>Update</h2>
<pre class="brush: bash; gutter: true">yum update</pre>
<h2>Installing MySQL</h2>
<pre class="brush: bash; gutter: true">yum install mysql mysql-server</pre>
<h2>Configuring MySQL</h2>
<p>We need to make sure that mysql runs without innodb engine, so we need to adjust my.cnf. This step would be tricky and we will use default small configuration. Run this command one by one.</p>
<pre class="brush: bash; gutter: true">cp /etc/my.cnf /etc/my.cnf.bak
cp /usr/share/mysql/my-small.cnf /etc/my.cnf</pre>
<p>There you go, we have copied the small configuration for mysql. Now, we need to tweak our my.cnf configuration because we need to skip innodb. You could use vi to edit the file.</p>
<pre class="brush: bash; gutter: true">vi /etc/my.cnf</pre>
<p>We need to add these two following line under [mysqld]</p>
<pre class="brush: text; gutter: true">default-storage-engine = myisam
skip-innodb</pre>
<p>After you done just press : (double colon) and x, it will save your changes and exit from vi editor. Now you can start the mysql server</p>
<pre class="brush: bash; gutter: true">/etc/init.d/mysqld start</pre>
<p>The initial start will create mysql table. Hopefully, it will create smoothly. You can run this command to makes mysql start on your VPS.</p>
<pre class="brush: actionscript3; gutter: true">chkconfig mysqld on</pre>
<p>It&#8217;s recommended to run <strong>mysql_secure_installation </strong>after mysql server installation.</p>
<h2>Installing PHP and PHP-FPM</h2>
<pre class="brush: bash; gutter: true">yum install php-fpm php-cli php-mysql php-pear php-apc</pre>
<p>Now we need to make PHP-FPM running in our VPS. Run these command one by one.</p>
<pre class="brush: bash; gutter: true">/etc/init.d/php-fpm start
chkconfig php-fpm on</pre>
<h2>Installing Nginx</h2>
<pre class="brush: bash; gutter: true">yum install nginx</pre>
<p>Now, we need to adjust our nginx to be able to run php in our VPS.  Run this command</p>
<pre class="brush: bash; gutter: true">vi /etc/nginx/nginx.conf</pre>
<p>Find these line in comment. Uncomment it then change as follows</p>
<pre class="brush: text; gutter: true"> location ~ \.php$ {
            root           /usr/share/nginx/html;
           fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }</pre>
<p>index.php is not yet set as root document. So, we need to add index.php in same config file.</p>
<pre class="brush: text; gutter: true">  location / {
            root   /usr/share/nginx/html;
            index  index.html index.htm index.php;
        }</pre>
<p>You see, I am adding index.php in the end of the index configuration. Now the last step is restarting nginx and make it run at the start up.</p>
<pre class="brush: bash; gutter: true">/etc/init.d/nginx start
chkconfig nginx on</pre>
<p>When server start, nginx will have delay for about a minute then it will run. We need to make sure that our configuration to LNMP is good. Run this command</p>
<pre class="brush: bash; gutter: true">echo '&lt;?php phpinfo();' &gt; /usr/share/nginx/html/info.php</pre>
<p>Try to connect to your IP, in this case I will use localhost ip, <strong>http://127.0.0.1/info.php</strong>. If you see php information then your configuration to Nginx and PHP are good.</p>
<p>One last thing before I forgot to write, if you have permission problem with wordpress when updating or installing plugin you need to change default php-fpm user from apache to nginx.</p>
<pre class="brush: bash; gutter: true">vi /etc/php-fpm.d/www.conf</pre>
<p>Find user and group whose own the php-fpm there then change to nginx. That&#8217;s it.</p>
<p>So far, I have problem with MySQL and have nightmare tweaking MySQL in such low end box, because 128MB VPS will hit swap for database driven website. In the end, I decided to upgrade my VPS to 256MB plan and the tension is gone. Booyah.</p>
<p>Thank you for reading. Please don&#8217;t hesitate to give feedback, suggestions or comment.</p>
<p>*If you have output from cat /etc/debian_version it&#8217;s mean that you are using Debian derivatives.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ZzP23Wr4uJvYpTQLXzbGbYXiCW8/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZzP23Wr4uJvYpTQLXzbGbYXiCW8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZzP23Wr4uJvYpTQLXzbGbYXiCW8/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZzP23Wr4uJvYpTQLXzbGbYXiCW8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/14/setup-128mb-vps-for-website-using-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pengalaman Pertama dengan Google Adsense</title>
		<link>http://www.nurasto.com/2011/12/14/pengalaman-pertama-dengan-google-adsense/</link>
		<comments>http://www.nurasto.com/2011/12/14/pengalaman-pertama-dengan-google-adsense/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:49:05 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=241</guid>
		<description><![CDATA[Suatu waktu, saya berpikir bagaimana caranya mendapatkan Google Adsense (GA)? saya melakukan research kecil untuk mendapatkan akun adsense, sudah sekian kali aplikasi saya ditolak dan akhirnya diterima oleh Google ketika saya sudah pasrah. Tujuan saya cuma satu, mengapa fenomena adsense begitu meluas di Indonesia, bahkan katanya ada yang menghasilkan ribuan dolar. Dari apa yang saya [...]]]></description>
			<content:encoded><![CDATA[<p>Suatu waktu, saya berpikir bagaimana caranya mendapatkan Google Adsense (GA)? saya melakukan research kecil untuk mendapatkan akun adsense, sudah sekian kali aplikasi saya ditolak dan akhirnya diterima oleh Google ketika saya sudah pasrah. Tujuan saya cuma satu, mengapa fenomena adsense begitu meluas di Indonesia, bahkan katanya ada yang menghasilkan ribuan dolar.</p>
<p>Dari apa yang saya alami dalam waktu sekitar dua tahun mencoba aplikasi ke Google Adsense ternyata banyak sekali faktor yang mempengaruhi tim Google Adsense untuk menerima aplikasi dan mengijinkannya suatu situs untuk menampilkan iklan. Dengan penuh kesadaran saya memahami maksudnya dan memang mencari konten yang orisinal sesuai standar. Saat ini saya mendengar adanya banned massal terhadap publisher yang kontennya tidak orisinil, saya tidak tahu rumor ini betul atau tidak.</p>
<p>Aplikasi GA saya diterima dengan akun email  Yahoo!, saya terheran &#8211; heran dan apa yang saya baca selama ini harus gmail namun yang saya alami lain dari apa yang saya baca. Terus terang, Saya senang sekali aplikasi saya diterima, tentu saja dengan beberapa kali penolakan juga.</p>
<p><span id="more-241"></span>Sewaktu diterima pun GA menerapkan dua kali approval, yang pertama adalah tahap approval untuk aplikasi kemudian pada saat setelah di approve, kita menaruh kode adsense di website, maka akan muncul pada panel adsense bahwa website sedang di review. Ketika saya sudah bisa melihat panel adsense saja senangnya minta ampun karena memang baru pertama kali. Di tahap ini banyak orang khawatir, ya memang khawatir setengah mati sepertinya.</p>
<p>Tidak selang berapa lama, saya mencoba untuk menerapkan kode ke situs saya yang ada sekarang ini, saya ikuti petunjuk yang ada pada halaman bantuan di sana. Nah, disinilah saya mengenal kosa kata baru ad unit. Terus terang, saya garuk &#8211; garuk kepala mengenai tujuannya, bolak &#8211; balik ke lamanan bantuan untu mencari tahu apa itu ad unit. Yang saya pelajari, GA hanya membatasi tiga ad unit dalam satu halaman. Ada lagi namanya Custom Channel di dalam Ad Unit dan saya belum eksplorasi apa gunanya. Saya mendapatkan ilmu baru bahwa peletakan banner bisa mempengaruhi pengunjung untuk mengklik suatu banner, sebelumnya saya sudah mengenal kata <a href="http://iampaddy.com/lifebelow600/">Above The Fold</a>. GA tidak tanggung &#8211; tanggung memberi informasi letak yang baik untuk banner. Wah, makin seru nih.</p>
<p>Tidak lupa saya mencoba Adsense for Domain. Kebetulan saya punya domain berbahasa inggris yang tidak saya gunakan karena Februari 2012 juga sudah jatuh tempo, jadi saya coba domain tersebut untuk diparking. Proses parking domain akan memakan waktu jika mengubah DNS sekitar 48 jam baru bisa tampil dan jika belum verified maka akan muncul 404. Kita bisa mengubah Nameserver, dihosting kita mengenal ns1.hosting.com dan ns2.hosting.com, atau mengubahnya di domain control dengan menembakan domain ke server GA dengan menggunakan A record.</p>
<p>Selain itu, saya pengguna aktif webmaster tool dan analytics untuk klien dan ingin tahu bagaimana adsense dan analytics bisa diintegrasikan. Akun saya berbeda untuk kedua layanan tersebut dan ternyata akun adsense saya harus menjadi administrator di akun analytics, jadi baru bisa diintegrasikan.</p>
<p>Yang luar biasa lagi, saya belum pernah tahu mengenai Google Custom Search dan bagi saya hal ini sangat menarik untuk dipelajari, saya mencoba terapkan di situs yang sedang  saya garap saat ini tapi saya copot karena saya tidak tahu apakah sesuai dengan kebijakannya GA.</p>
<p>Ada beberapa fitur lain seperti mobile content, games, feed dan video. Hanya saja saya belum berpikir ke arah sana, memang sudah punya konten orisinal di youtube tapi nanti dulu, untuk feed juga nanti dulu.</p>
<p>Fokus utamanya selesaikan kerjaan sama template wordpress pribadi saya dulu, saya tidak tahu kapan selesainya template untuk situs pribadi saya ini.</p>
<p>Saya juga menemukan twitter AdSense untuk publisher Indonesia, bisa di follow di <a href="http://twitter.com/idadsense">http://twitter.com/idadsense</a> agar mendapatkan update. Saya melihat ditimelinenya bahwa konten Indonesia masih dalam proses, untuk search sudah bisa. Saat ini di website ini, banner GA akan otomatis warna background jika bahasa konten tidak didukung oleh GA, ini bisa diubah pada panelnya GA, karena warnanya tidak sesuai saya ubah menjadi putih atau dalam HTML color #FFFFFF.</p>
<p>Pengalaman yang berharga dan menarik akhirnya saya petik dari Google Adsense. Thanks Google Adsense for giving me a chance to be involved in your publisher program.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/6jzRiRZagZBee8dAgzdb4AtGSOE/0/da"><img src="http://feedads.g.doubleclick.net/~a/6jzRiRZagZBee8dAgzdb4AtGSOE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6jzRiRZagZBee8dAgzdb4AtGSOE/1/da"><img src="http://feedads.g.doubleclick.net/~a/6jzRiRZagZBee8dAgzdb4AtGSOE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/14/pengalaman-pertama-dengan-google-adsense/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Post ID Huge Jumps</title>
		<link>http://www.nurasto.com/2011/12/06/wordpress-post-id-huge-jumps/</link>
		<comments>http://www.nurasto.com/2011/12/06/wordpress-post-id-huge-jumps/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 09:58:58 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Software and Web Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=226</guid>
		<description><![CDATA[I am moving from my previous linux web host to dotNet host which can handle ASP.NET pages. I am surprised the migration is relatively easy and wordpress already support IIS rewrite to maintain permalink. I was tried to check everything out and found my several latest post get HUGE ID, like this one 4.162.708.458. I never post 4 [...]]]></description>
			<content:encoded><![CDATA[<p>I am moving from my previous linux web host to <a href="http://www.dotnet-host.com/" target="_blank">dotNet host</a> which can handle ASP.NET pages. I am surprised the migration is relatively easy and <a href="http://www.wordpress.org/" target="_blank">wordpress</a> already support IIS rewrite to maintain permalink.</p>
<p>I was tried to check everything out and found my several latest post get HUGE ID, like this one <strong>4.162.708.458</strong>. I never post 4 millions article to my website even combine with my revisions. I don&#8217;t remember what the exact error but will cause error as like &#8220;You don&#8217;t have permission to edit&#8221; or some kind like that when trying to edit content. In Linux based machine this won&#8217;t lead to any problem anyway.</p>
<p>So, I drill down the data and found out interesting auto increment jump from 210 suddenly jump to that number. I don&#8217;t want my next post will have ID in <strong>4.162.708.459</strong>. Problematic post ID around 14 posts. So, I need a solution to make my next post will be 225. I am using store procedure to achieve my purpose, I know I can use PHP but mysql SP doesn&#8217;t need mysql_connect or mysqli_connect. Let&#8217;s see the code.</p>
<p><span id="more-226"></span></p>
<pre class="brush: sql; gutter: true">DELIMITER $$

CREATE PROCEDURE `wp_fix`(IN start_id BIGINT)
BEGIN
DECLARE done INT DEFAULT FALSE;
    DECLARE post_id BIGINT;
    DECLARE fix BIGINT;
    DECLARE posts CURSOR FOR SELECT id FROM wp_posts WHERE id &gt; start_id;
    DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;

    SET fix = start_id;

    OPEN posts;

    post_loop: LOOP
        FETCH posts INTO post_id;
        IF done THEN
            LEAVE post_loop;
        END IF;
        SET fix = fix + 1;
        UPDATE wp_posts SET ID = fix WHERE ID = post_id;
        UPDATE wp_comments SET comment_post_ID = fix WHERE comment_post_ID = post_id;
        UPDATE wp_postmeta SET post_id = fix  WHERE post_id = post_id;
        UPDATE wp_term_relationships SET object_id = fix WHERE object_id = post_id;
    END LOOP;

    CLOSE posts;
    set fix = fix + 1;    

    set @qry = concat(&#039;ALTER TABLE wp_posts AUTO_INCREMENT = &#039;,fix);
    PREPARE stmt from @qry;
    EXECUTE stmt;
END$$</pre>
<p>Delimiter used to ignore semicolon from being parsed by mysql server, maybe it&#8217;s like CDATA in XML.</p>
<p>wp_fix procedure have one parameter, start_id, which is the last &#8220;good and proper&#8221; id. The procedure will read each post id and updating related tables to reflect the changes. So, any comments, meta, and category will still preserved.</p>
<p>The last thing, the procedure will set the auto_increment for wp_posts table to plus one of the last generated id. For example, if the generated id ends with 410 then the auto_increment will be set to 411.</p>
<p>To use this stored procedure is easy. Just open your phpmyadmin or mysql workbench and type</p>
<pre class="brush: sql; gutter: true">CALL wp_fix(210);</pre>
<p>In this example, start_id parameter filled with 210. Hopes this will help you to regenerate post_id for wordpress post table.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/7a2-2p4CSsdg8_vhFrbSSS2xsd4/0/da"><img src="http://feedads.g.doubleclick.net/~a/7a2-2p4CSsdg8_vhFrbSSS2xsd4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7a2-2p4CSsdg8_vhFrbSSS2xsd4/1/da"><img src="http://feedads.g.doubleclick.net/~a/7a2-2p4CSsdg8_vhFrbSSS2xsd4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/06/wordpress-post-id-huge-jumps/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>USB Modem Permission on Linux</title>
		<link>http://www.nurasto.com/2011/12/03/usb-modem-permission-on-linux/</link>
		<comments>http://www.nurasto.com/2011/12/03/usb-modem-permission-on-linux/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 17:16:04 +0000</pubDate>
		<dc:creator>Dityo Nurasto</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.nurasto.com/?p=4162708721</guid>
		<description><![CDATA[I have usb modem and want to play with it&#8217;s AT Command. In Ubuntu 10.04 I could access the modem easily without problem as regular user.  I choose to install Centos 6 to test my modem. Centos 6 has no problem recognizing my usb modem which has PL2303 controller. I try to use Kannel 1.4.3 which [...]]]></description>
			<content:encoded><![CDATA[<p>I have usb modem and want to play with it&#8217;s AT Command. In Ubuntu 10.04 I could access the modem easily without problem as regular user.  I choose to install Centos 6 to test my modem. Centos 6 has no problem recognizing my usb modem which has PL2303 controller.</p>
<p>I try to use Kannel 1.4.3 which I get it from EPEL repository and successfully installed, when I try to fire up bearer box I got this</p>
<pre class="brush: text; gutter: true">DEBUG: AT2[modem1]: detecting modem type
INFO: AT2[modem1]: opening device
ERROR: AT2[modem1]: open failed! ERRNO=13
ERROR: System error 13: Permission denied
INFO: AT2[modem1]: Closing device</pre>
<p>As usual, googling the solution and most of resource I found was getting hardcore modification and adding user to a group. Specifically, adding regular user in uucp groups, still it doesn&#8217;t work.</p>
<p>I remember when I was tried to connect to the network on Debian i got same problem and the solution is</p>
<pre class="brush: text; gutter: false">usermod -a -G dialout nurasto</pre>
<p>Now, my regular user can use usb modem as sms gateway without problem. <img src='http://www.nurasto.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/2TneDH416qfXJpNz0Od06__VxZk/0/da"><img src="http://feedads.g.doubleclick.net/~a/2TneDH416qfXJpNz0Od06__VxZk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2TneDH416qfXJpNz0Od06__VxZk/1/da"><img src="http://feedads.g.doubleclick.net/~a/2TneDH416qfXJpNz0Od06__VxZk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nurasto.com/2011/12/03/usb-modem-permission-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Served from: www.nurasto.com @ 2012-02-03 17:42:34 by W3 Total Cache -->

