<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:addthis="http://www.addthis.com/help/api-spec" lang="en-US">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CodePie</title>
<link rel="shortcut icon" href="http://codepie.org/wp-content/themes/lightword/favicon.ico" />
<link rel="pingback" href="http://codepie.org/xmlrpc.php" />


<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=hvtuananh"></script>
<link rel="alternate" type="application/rss+xml" title="CodePie &raquo; Feed" href="http://codepie.org/feed" />
<link rel="alternate" type="application/rss+xml" title="CodePie &raquo; Comments Feed" href="http://codepie.org/comments/feed" />
<link rel='stylesheet' id='lightword_stylesheet-css'  href='http://codepie.org/wp-content/themes/lightword/style.css?ver=2.0.0.6' type='text/css' media='all' />
<link rel='stylesheet' id='lightword_stylesheet_wider-css'  href='http://codepie.org/wp-content/themes/lightword/wider.css?ver=2.0.0.6' type='text/css' media='all' />
<link rel='stylesheet' id='jetpack-widgets-css'  href='http://codepie.org/wp-content/plugins/jetpack/modules/widgets/widgets.css?ver=20121003' type='text/css' media='all' />
<script type='text/javascript' src='http://codepie.org/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>
<script type='text/javascript' src='http://codepie.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://codepie.org/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://codepie.org/wp-includes/wlwmanifest.xml" /> 
<link rel='shortlink' href='http://wp.me/1ljCI' />
<link rel="stylesheet" href="http://codepie.org/wp-content/plugins/deans_code_highlighter/geshi.css"  type="text/css" />		<style type="text/css">
		img#wpstats {
			position: absolute !important;
			width: 0px !important;
			height: 0px !important;
			overflow: hidden !important;
			display: none !important;
			visibility: hidden !important;
			position: absolute !important;
			clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
			clip: rect(1px, 1px, 1px, 1px);
		}
		</style>
	
<!-- Jetpack Open Graph Tags -->
<meta property="og:type" content="blog" />
<meta property="og:title" content="CodePie" />
<meta property="og:description" content="Coding for fun" />
<meta property="og:url" content="http://codepie.org/" />
<meta property="og:site_name" content="CodePie" />
<meta name="twitter:site" content="@jetpack" />
<style type="text/css">
#content-body,x:-moz-any-link{float:left;margin-right:28px;}#content-body, x:-moz-any-link, x:default{float:none;margin-right:25px;} 
</style>

<script src="http://codepie.org/wp-content/themes/lightword/js/cufon-yui.js" type="text/javascript"></script>
<script src="http://codepie.org/wp-content/themes/lightword/js/vera.font.js" type="text/javascript"></script>
<script type="text/javascript">/*<![CDATA[*/Cufon.replace(['h1','h2','h3#reply-title'], { fontFamily: 'Vera' });/*]]>*/</script>
<!--[if IE 6]><style type="text/css">#header{background-image: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://codepie.org/wp-content/themes/lightword/images/wider/content_top.png',sizingMethod='scale'); }#footer{background:transparent url(http://codepie.org/wp-content/themes/lightword/images/wider/content_bottom.gif) no-repeat;height:8px;}.comm_date{background-image: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://codepie.org/wp-content/themes/lightword/images/date_comm_box.png',sizingMethod='scale'); }</style><![endif]-->
</head>

<body class="home blog">
<div id="wrapper">

<div id="top_cufon"><h1 id="logo"><a name="top" title="CodePie" href="http://codepie.org">CodePie</a> <small>Coding for fun</small></h1></div>

<div id="header">
<a id="rss-feed" title="Syndicate this site using RSS" href="http://codepie.org/feed">Subscribe via RSS</a>

<div id="top_bar">
<div class="center_menu">
<ul id="front_menu" >
    <li><a class="s" title="Home" href="http://codepie.org"><span>Home</span></a></li>
<li class="page_item page-item-2"><a href="http://codepie.org/about"><span>About</span></a></li>
</ul>
</div>
<form method="get" id="searchform" action="http://codepie.org"> <input type="text" value="" name="s" id="s" /> <input type="submit" id="go" value="" alt="Search" title="Search" /></form>
</div>

</div>
<div id="content"><div id="content-body">

<div class="post-121 post type-post status-publish format-standard hentry category-linux tag-extract tag-pdf" id="post-121">
<div class="comm_date"><span class="data"><span class="j">2</span>May/13</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/extract-pages-from-pdf-in-linux.html#comments">0</a></span></div>
<h2><a title="Extract pages from PDF in Linux" href="http://codepie.org/extract-pages-from-pdf-in-linux.html" rel="bookmark">Extract pages from PDF in Linux</a></h2>
<p>I am not usually have to extract pages from a pdf file, but when I do, I used Adobe(R) Acrobat 7.0 that resides on my old Windows XP machine (believe me, it's still work at this time). Today one friend asked me to extract a page from his pdf file, and I only have my MAC and Linux workstation with me. Fortunately, I figured out I can just use a single command to do this. Kudos to <code>pdftk</code>. For example:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">pdftk <span class="re2">A=</span>inputfile.pdf <span class="kw2">cat</span> A1<span class="nu0">-10</span> output outputfile.pdf</div>
</li>
</ol>
</div>
<p>This command will extract page 1 to 10 from inputfile.pdf to outputfile.pdf</p>
<p>Very handy. Happy extracting!</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/extract" rel="tag">extract</a>, <a href="http://codepie.org/tag/pdf" rel="tag">pdf</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/extract-pages-from-pdf-in-linux.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-112 post type-post status-publish format-standard hentry category-linux tag-rtorrent tag-rutorrent tag-torrent tag-utorrent" id="post-112">
<div class="comm_date"><span class="data"><span class="j">3</span>Feb/13</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-install-rtorrent-and-rutorrent.html#comments">0</a></span></div>
<h2><a title="How to install rtorrent and rutorrent" href="http://codepie.org/how-to-install-rtorrent-and-rutorrent.html" rel="bookmark">How to install rtorrent and rutorrent</a></h2>
<p>In order for <a href="http://code.google.com/p/rutorrent/">rutorrent</a> to work, <a href="http://libtorrent.rakshasa.no/">rtorrent</a> must be compiled with <a href="http://xmlrpc-c.sourceforge.net/">xmlrpc-c</a> support. Here is the full instruction.</p>
<p>1. First, check to make sure the following libraries are installed on your system. At any step below, if you cannot run <code>./configure</code> script correctly, you might have to install <code>-dev</code> or <code>-devel</code> packages of these libraries</p>
<ul>
<li>gcc</li>
<li>ncurses</li>
<li>libsigc++-2.0</li>
<li>libssl</li>
<li>xmlrpc-c</li>
<li>subversion</li>
</ul>
<p>2. Download and install xmlrpc-c if your distro does not support it</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">svn <span class="kw2">co</span> http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> xmlrpc-c</div>
</li>
<li class="li1">
<div class="de1">./configure</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">make</span></div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">make</span> <span class="kw2">install</span></div>
</li>
</ol>
</div>
<p>3. Download and install libtorrent and rtorrent</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://libtorrent.rakshasa.no/downloads/libtorrent<span class="nu0">-0.13</span><span class="nu0">.3</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://libtorrent.rakshasa.no/downloads/rtorrent<span class="nu0">-0.9</span><span class="nu0">.3</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">tar</span> xzfv libtorrent<span class="nu0">-0.13</span><span class="nu0">.3</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">tar</span> xzfv rtorrent<span class="nu0">-0.9</span><span class="nu0">.3</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li2">
<div class="de2"><span class="kw3">cd</span> libtorrent<span class="nu0">-0.13</span><span class="nu0">.3</span></div>
</li>
<li class="li1">
<div class="de1">./configure</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">make</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">make</span> <span class="kw2">install</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> ../rtorrent<span class="nu0">-0.9</span><span class="nu0">.3</span>/</div>
</li>
<li class="li2">
<div class="de2">./configure --with-xmlrpc-<span class="re2">c=</span>/usr/<span class="kw3">local</span>/bin/xmlrpc-c-config</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">make</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">make</span> <span class="kw2">install</span></div>
</li>
</ol>
</div>
<p>4. Execute this line to copy rtorrent config to your home directory</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">cp</span> /usr/share/doc/rtorrent/examples/rtorrent.rc .rtorrent.rc</div>
</li>
</ol>
</div>
<p>5. Add the following line to the end of your .rtorrent.rc</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">scgi_port = <span class="nu0">127.0</span><span class="nu0">.0</span><span class="nu0">.1</span>:<span class="nu0">5001</span></div>
</li>
</ol>
</div>
<p>6. Create download and session directories as pointed out in .rtorrent.rc. You might also change these directory as desired.</p>
<p>7. Download, extract rutorrent and plugins and placed them anywhere under your web root so that you can access it via HTTP</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://rutorrent.googlecode.com/files/rutorrent<span class="nu0">-3.5</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://rutorrent.googlecode.com/files/plugins<span class="nu0">-3.5</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">tar</span> -xf rutorrent<span class="nu0">-3.5</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> rutorrent</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">tar</span> -xf ../plugins<span class="nu0">-3.5</span>.<span class="kw2">tar</span>.gz</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> ..</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mv</span> rutorrent /var/www/</div>
</li>
</ol>
</div>
<p>8. Delete /var/www/ruttorrent/.htaccess to disable htaccess authentication (you can always enable it in the future)</p>
<p>9. Fire up your web browser and open http://yourdomain.com/rutorrent. You will see the GUI very similar to uTorrent.</p>
<p>Happy torrenting. Download responsibly.</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/rtorrent" rel="tag">rtorrent</a>, <a href="http://codepie.org/tag/rutorrent" rel="tag">rutorrent</a>, <a href="http://codepie.org/tag/torrent" rel="tag">torrent</a>, <a href="http://codepie.org/tag/utorrent" rel="tag">utorrent</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-install-rtorrent-and-rutorrent.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-106 post type-post status-publish format-standard hentry category-css category-facebook category-programming tag-facebook-2 tag-like" id="post-106">
<div class="comm_date"><span class="data"><span class="j">1</span>Jun/12</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-disable-comment-box-from-facebook-like-widget.html#comments">2</a></span></div>
<h2><a title="How to disable comment box from Facebook like widget" href="http://codepie.org/how-to-disable-comment-box-from-facebook-like-widget.html" rel="bookmark">How to disable comment box from Facebook like widget</a></h2>
<p>It have been a long time since the last time I used Facebook like widget on my blog. At that time, I feel that Facebook scripts take a lot of time to load, hence slowdown my site and affect its performance. Today, I changed my mind and add it back. With just 2 pieces of code (one load all.js at bottom and one load the like button), Facebook like button appears again on my site. Sweet and simple!</p>
<p>But wait. When I test by click on Like button, an ugly comment box appear:</p>
<p><a href="http://codepie.org/wp-content/uploads/2012/06/facebook-like.png"><img src="http://codepie.org/wp-content/uploads/2012/06/facebook-like.png" alt="" title="facebook like" width="199" height="117" class="aligncenter size-full wp-image-107" /></a></p>
<p>As this is unexpected, I want to disable it. But Facebook Developer page does not give me any information about this. Fortunately, with just one simple CSS trick, I can hide that ugly comment box so the Facebook like become beautiful (like it should)</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re1">.fb_edge_widget_with_comment</span> span<span class="re1">.fb_edge_comment_widget</span> iframe<span class="re1">.fb_ltr</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">display</span>: <span class="kw2">none</span> !important;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Happy hacking!</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/facebook-2" rel="tag">facebook</a>, <a href="http://codepie.org/tag/like" rel="tag">like</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-disable-comment-box-from-facebook-like-widget.html#comments">2 Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-100 post type-post status-publish format-standard hentry category-linux tag-find tag-size" id="post-100">
<div class="comm_date"><span class="data"><span class="j">21</span>May/12</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-find-all-files-of-a-particular-size-in-a-particular-directory.html#comments">0</a></span></div>
<h2><a title="How to find all files of a particular size in a particular directory" href="http://codepie.org/how-to-find-all-files-of-a-particular-size-in-a-particular-directory.html" rel="bookmark">How to find all files of a particular size in a particular directory</a></h2>
<p>Last weekend, I worked on a Linux malware cleaning project. After 30 minutes of finding, I found 2 suspected scripts that are not included in Drupal by default. I soon realized that there are many of them, and I have a very limit access to his website (just normal account SSH access). Fortunately, after doing some research, I found that I can easily find all files of a particular size in his home directory. Simple like that: Suppose we want to find all files that has size = 1234 bytes and in /home/codepie directory, just type the following command</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">find</span> /home/codepie -<span class="kw3">type</span> f -<span class="kw2">size</span> 1234c -<span class="kw3">exec</span> <span class="kw2">ls</span> <span class="br0">&#123;</span><span class="br0">&#125;</span> \;</div>
</li>
</ol>
</div>
<p>You might wonder what does 'c' in command mean. As units you can use:</p>
<ul>
<li>b – for 512-byte blocks (this is the default if no suffix is used)</li>
<li>c – for bytes</li>
<li>w – for two-byte words</li>
<li>k – for Kilobytes (units of 1024 bytes)</li>
<li>M – for Megabytes (units of 1048576 bytes)</li>
<li>G – for Gigabytes (units of 1073741824 bytes)</li>
</ul>
<p>Additionally, you can also search for bigger (+) or smaller (-) files. Just add a plus (+) or minus (-) for bigger and smaller files, respectively.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">find</span> /home/codepie -<span class="kw3">type</span> f -<span class="kw2">size</span> +1234c -<span class="kw3">exec</span> <span class="kw2">ls</span> <span class="br0">&#123;</span><span class="br0">&#125;</span> \;</div>
</li>
</ol>
</div>
<p>Have fun finding!</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/find" rel="tag">find</a>, <a href="http://codepie.org/tag/size" rel="tag">size</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-find-all-files-of-a-particular-size-in-a-particular-directory.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-98 post type-post status-publish format-standard hentry category-linux tag-keygen tag-ssh" id="post-98">
<div class="comm_date"><span class="data"><span class="j">20</span>Apr/12</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-generate-ssh-public-key-from-private-key.html#comments">0</a></span></div>
<h2><a title="How to generate SSH public key from private key" href="http://codepie.org/how-to-generate-ssh-public-key-from-private-key.html" rel="bookmark">How to generate SSH public key from private key</a></h2>
<p>Normally you will generate and store a pair of SSH public and private key. But do you know you can generate public key from private key with ease? Here is the trick:</p>
<p>1. For OpenSSH key: Open terminal and type:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">ssh-keygen</span> -y</div>
</li>
</ol>
</div>
<p>2. For PuTTY key: Open PuttyGen program and choose Load key. Public key will show up.</p>
<p>Have fun.</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/keygen" rel="tag">keygen</a>, <a href="http://codepie.org/tag/ssh" rel="tag">ssh</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-generate-ssh-public-key-from-private-key.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-94 post type-post status-publish format-standard hentry category-php category-programming tag-bytes tag-kilobytes tag-megabytes tag-php-2" id="post-94">
<div class="comm_date"><span class="data"><span class="j">12</span>Apr/12</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-format-bytes-to-kilobytes-megabytes-gigabytes-in-php.html#comments">0</a></span></div>
<h2><a title="How to format bytes to kilobytes, megabytes, gigabytes in PHP" href="http://codepie.org/how-to-format-bytes-to-kilobytes-megabytes-gigabytes-in-php.html" rel="bookmark">How to format bytes to kilobytes, megabytes, gigabytes in PHP</a></h2>
<p>This is the best function I found on StackOverflow:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">function</span> formatBytes<span class="br0">&#40;</span><span class="re0">$bytes</span>, <span class="re0">$precision</span> = <span class="nu0">2</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$units</span> = <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">'B'</span>, <span class="st0">'KB'</span>, <span class="st0">'MB'</span>, <span class="st0">'GB'</span>, <span class="st0">'TB'</span><span class="br0">&#41;</span>; </div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$bytes</span> = <a href="http://www.php.net/max"><span class="kw3">max</span></a><span class="br0">&#40;</span><span class="re0">$bytes</span>, <span class="nu0">0</span><span class="br0">&#41;</span>; </div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="re0">$pow</span> = <a href="http://www.php.net/floor"><span class="kw3">floor</span></a><span class="br0">&#40;</span><span class="br0">&#40;</span><span class="re0">$bytes</span> ? <a href="http://www.php.net/log"><span class="kw3">log</span></a><span class="br0">&#40;</span><span class="re0">$bytes</span><span class="br0">&#41;</span> : <span class="nu0">0</span><span class="br0">&#41;</span> / <a href="http://www.php.net/log"><span class="kw3">log</span></a><span class="br0">&#40;</span><span class="nu0">1024</span><span class="br0">&#41;</span><span class="br0">&#41;</span>; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$pow</span> = <a href="http://www.php.net/min"><span class="kw3">min</span></a><span class="br0">&#40;</span><span class="re0">$pow</span>, <a href="http://www.php.net/count"><span class="kw3">count</span></a><span class="br0">&#40;</span><span class="re0">$units</span><span class="br0">&#41;</span> - <span class="nu0">1</span><span class="br0">&#41;</span>; </div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="co1">// Uncomment one of the following alternatives</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="co1">// If 1 kilobytes = 1024 bytes</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="co1">// $bytes /= pow(1024, $pow);</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="co1">// If 1 kilobytes = 1000 bytes</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="co1">// $bytes /= (1 &lt;&lt; (10 * $pow)); </span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">return</span> <a href="http://www.php.net/round"><span class="kw3">round</span></a><span class="br0">&#40;</span><span class="re0">$bytes</span>, <span class="re0">$precision</span><span class="br0">&#41;</span> . <span class="st0">' '</span> . <span class="re0">$units</span><span class="br0">&#91;</span><span class="re0">$pow</span><span class="br0">&#93;</span>; </div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/bytes" rel="tag">bytes</a>, <a href="http://codepie.org/tag/kilobytes" rel="tag">kilobytes</a>, <a href="http://codepie.org/tag/megabytes" rel="tag">megabytes</a>, <a href="http://codepie.org/tag/php-2" rel="tag">php</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-format-bytes-to-kilobytes-megabytes-gigabytes-in-php.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-90 post type-post status-publish format-standard hentry category-linux tag-distro tag-linux-2 tag-version" id="post-90">
<div class="comm_date"><span class="data"><span class="j">18</span>Sep/11</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-know-exactly-which-linux-distribution-you-are-using.html#comments">0</a></span></div>
<h2><a title="How to know exactly which Linux distribution you are using" href="http://codepie.org/how-to-know-exactly-which-linux-distribution-you-are-using.html" rel="bookmark">How to know exactly which Linux distribution you are using</a></h2>
<p>I myself usually have to connect to a lot of Linux server to troubleshot. As you know, different Linux distribution has different config file location. For example, Apache config file in CentOS server is <code>/etc/httpd/httpd.conf</code> but in Ubuntu/Debian is <code>/etc/apache2/apache2.conf</code></p>
<p>It would be easier for us if we know exactly the distribution name from the beginning. Here are several solutions:</p>
<p><strong>1. From the boot time message</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">dmesg</span> | <span class="kw2">head</span> <span class="nu0">-1</span></div>
</li>
</ol>
</div>
<p>You might see something like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">Linux version <span class="nu0">2.6</span><span class="nu0">.31</span><span class="nu0">-14</span>-generic <span class="br0">&#40;</span>buildd@crested<span class="br0">&#41;</span> <span class="br0">&#40;</span><span class="kw2">gcc</span> version <span class="nu0">4.4</span><span class="nu0">.1</span> <span class="br0">&#40;</span>Ubuntu <span class="nu0">4.4</span><span class="nu0">.1</span>-4ubuntu8<span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="re3">#<span class="nu0">48</span>-Ubuntu SMP Fri Oct <span class="nu0">16</span> <span class="nu0">14</span>:<span class="nu0">05</span>:<span class="nu0">01</span> UTC <span class="nu0">2009</span></span></div>
</li>
</ol>
</div>
<p><strong>2. Using /proc/version</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> /proc/version</div>
</li>
</ol>
</div>
<p>You might see something like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">Linux version <span class="nu0">2.6</span><span class="nu0">.31</span><span class="nu0">-14</span>-generic <span class="br0">&#40;</span>buildd@crested<span class="br0">&#41;</span> <span class="br0">&#40;</span><span class="kw2">gcc</span> version <span class="nu0">4.4</span><span class="nu0">.1</span> <span class="br0">&#40;</span>Ubuntu <span class="nu0">4.4</span><span class="nu0">.1</span>-4ubuntu8<span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="re3">#<span class="nu0">48</span>-Ubuntu SMP Fri Oct <span class="nu0">16</span> <span class="nu0">14</span>:<span class="nu0">05</span>:<span class="nu0">01</span> UTC <span class="nu0">2009</span></span></div>
</li>
</ol>
</div>
<p><strong>3. Using /etc/issue</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> /etc/issue</div>
</li>
</ol>
</div>
<p>You might see something like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">Debian GNU/Linux <span class="nu0">6.0</span> \n \l</div>
</li>
</ol>
</div>
<p><strong>4. Using /etc/*-release</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> /etc/*-release</div>
</li>
</ol>
</div>
<p>You might see something like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">Gentoo Base System release <span class="nu0">1.12</span><span class="nu0">.9</span></div>
</li>
</ol>
</div>
<p><strong>Disclaimer</strong>: The results are different because I'm using different machine when testing. have fun :)</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/distro" rel="tag">distro</a>, <a href="http://codepie.org/tag/linux-2" rel="tag">linux</a>, <a href="http://codepie.org/tag/version" rel="tag">version</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-know-exactly-which-linux-distribution-you-are-using.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-85 post type-post status-publish format-standard hentry category-css category-programming tag-anchor tag-block tag-css-2 tag-height tag-inline tag-width" id="post-85">
<div class="comm_date"><span class="data"><span class="j">17</span>Sep/11</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/css-how-to-add-width-and-height-attributes-to-anchor-tag.html#comments">0</a></span></div>
<h2><a title="CSS: How to add width and height attributes to anchor tag" href="http://codepie.org/css-how-to-add-width-and-height-attributes-to-anchor-tag.html" rel="bookmark">CSS: How to add width and height attributes to anchor tag</a></h2>
<p>You might face this problem sometimes: You want to add width and height to an anchor instead of giving these attributes to its container. Surprisingly, width and height attribute are not works. For example, consider the following codes:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">a<span class="re1">.ansok</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; width<span class="re2">:<span class="re3">86px</span></span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; height<span class="re2">:<span class="re3">41px</span></span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; line-height<span class="re2">:<span class="re3">41px</span></span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="kw1">background-image</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">../images/layout/button<span class="re1">.png</span></span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>And here is what you will get (instead of beautiful buttons):</p>
<p><img src="http://codepie.org/wp-content/uploads/2011/09/before1.png" alt="" title="before" width="286" height="235" class="aligncenter size-full wp-image-86" /></p>
<p>So, what is the reason and how to fix it?</p>
<p>Well, anchor tags are not block level HTML elements but rather inline elements. So what is the difference between the two? Here is the definition of the two items:</p>
<p>Inline Element definition:</p>
<ul>
<li>Inline elements typically may only contain text and other inline elements. When rendered visually, inline elements do not usually begin on a new line.</li>
</ul>
<p>Block Element:</p>
<ul>
<li>Block-level elements typically contain inline elements and other block-level elements. When rendered visually, block-level elements usually begin on a new line.</li>
</ul>
<p>So, all you have to do is just add <code>display:block</code> to CSS class of anchor. And here is the result:</p>
<p><img src="http://codepie.org/wp-content/uploads/2011/09/after1.png" alt="" title="after" width="292" height="225" class="aligncenter size-full wp-image-87" /></p>
<p>Some useful links:</p>
<p><a href="http://htmlhelp.com/reference/html40/inline.html">HTML inline elements</a><br />
<a href="http://htmlhelp.com/reference/html40/block.html">HTML Block Elements</a></p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/anchor" rel="tag">anchor</a>, <a href="http://codepie.org/tag/block" rel="tag">block</a>, <a href="http://codepie.org/tag/css-2" rel="tag">css</a>, <a href="http://codepie.org/tag/height" rel="tag">height</a>, <a href="http://codepie.org/tag/inline" rel="tag">inline</a>, <a href="http://codepie.org/tag/width" rel="tag">width</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/css-how-to-add-width-and-height-attributes-to-anchor-tag.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-81 post type-post status-publish format-standard hentry category-linux tag-ant tag-java tag-jdk tag-jre" id="post-81">
<div class="comm_date"><span class="data"><span class="j">17</span>Sep/11</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-install-ant-correctly-on-ubuntu.html#comments">1</a></span></div>
<h2><a title="How to install Ant correctly on Ubuntu" href="http://codepie.org/how-to-install-ant-correctly-on-ubuntu.html" rel="bookmark">How to install Ant correctly on Ubuntu</a></h2>
<p>When using Ant the first time, you might notice that it return errors</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">ant -version</div>
</li>
<li class="li1">
<div class="de1">Unable to <span class="kw2">locate</span> tools.jar. Expected to <span class="kw2">find</span> it <span class="kw1">in</span> /usr/lib/jvm/java<span class="nu0">-6</span>-openjdk/lib/tools.jar</div>
</li>
</ol>
</div>
<p><img src="http://codepie.org/wp-content/uploads/2011/09/ant-error.png" alt="" title="ant-error" width="675" height="424" class="aligncenter size-full wp-image-82" /></p>
<p>Is it because of wrong <code>jdk</code> version? You probably tried to locate tools.jar and found this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">locate</span> tools.jar</div>
</li>
<li class="li1">
<div class="de1">/usr/lib/jvm/java<span class="nu0">-6</span>-sun<span class="nu0">-1.6</span><span class="nu0">.0</span><span class="nu0">.06</span>/lib/tools.jar</div>
</li>
</ol>
</div>
<p>Is it the same tools.jar required by ant? How can you point to this file so ant will not return any error? Here is the solution:</p>
<p>1. Make sure you have the "multiverse" repository </p>
<p>2. Install all Sun Java 6 packages</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apt-get clean</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apt-get update</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> sun-java6*</div>
</li>
</ol>
</div>
<p>This process might take a while, so you might need to grab a cup of coffee and wait.</p>
<p>3. Check that you are using the newly installed jdk</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">javac -version</div>
</li>
</ol>
</div>
<p>The output should be something like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">javac <span class="nu0">1.6</span>.0_06</div>
</li>
</ol>
</div>
<p>4. Check that you are using the correct jre</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">java -version</div>
</li>
</ol>
</div>
<p>The output should be something like...</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">java version <span class="st0">&quot;1.6.0_06&quot;</span></div>
</li>
<li class="li1">
<div class="de1">Java<span class="br0">&#40;</span>TM<span class="br0">&#41;</span> SE Runtime Environment <span class="br0">&#40;</span>build <span class="nu0">1.6</span>.0_06-b02<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">Java HotSpot<span class="br0">&#40;</span>TM<span class="br0">&#41;</span> Client VM <span class="br0">&#40;</span>build <span class="nu0">10.0</span>-b22, mixed mode, sharing<span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>If you find you are not using the correct Sun Java 6 jre you can fix it by:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> update-alternatives --config java</div>
</li>
</ol>
</div>
<p>The above command will let you choose which jre to make default if you have multiple jre installed.</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/ant" rel="tag">ant</a>, <a href="http://codepie.org/tag/java" rel="tag">java</a>, <a href="http://codepie.org/tag/jdk" rel="tag">jdk</a>, <a href="http://codepie.org/tag/jre" rel="tag">jre</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-install-ant-correctly-on-ubuntu.html#comments">1 Comment</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>


<div class="post-72 post type-post status-publish format-standard hentry category-javascript category-programming tag-cufon tag-ie9 tag-microsoft" id="post-72">
<div class="comm_date"><span class="data"><span class="j">16</span>Sep/11</span><span class="nr_comm"><a class="nr_comm_spot" href="http://codepie.org/how-to-make-cufon-works-in-ie9.html#comments">0</a></span></div>
<h2><a title="How to make Cufon works in IE9" href="http://codepie.org/how-to-make-cufon-works-in-ie9.html" rel="bookmark">How to make Cufon works in IE9</a></h2>
<p>IE, and probably Microsoft, has a lot of surprises for you. As you know, each IE version has its own behavior. And don't surprise if <strong>IE9 does not render <a href="http://cufon.shoqolate.com/generate/">Cufón</a> at all</strong></p>
<p>Meaning that every beautiful things you see in Firefox, Chrome, ... will not even show up in IE9. Nothing. You will only see a blank space. </p>
<p><img src="http://codepie.org/wp-content/uploads/2011/09/before.png" alt="" title="Before" width="600" height="400" class="aligncenter size-full wp-image-74" /></p>
<p>Then, how to fix it?</p>
<p>First, you need to download the latest version of Cufón. It's 1.09i, which has support for IE9. Download <a href="http://cufon.shoqolate.com/js/cufon-yui.js?v=1.09i">here</a></p>
<p>Second, add the following lines to your code:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&lt;!--<span class="br0">&#91;</span><span class="kw1">if</span> gte IE <span class="nu0">9</span><span class="br0">&#93;</span>&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=<span class="st0">&quot;text/javascript&quot;</span>&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cufon.<span class="me1">set</span><span class="br0">&#40;</span><span class="st0">'engine'</span>, <span class="st0">'canvas'</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</div>
</li>
<li class="li2">
<div class="de2">&lt;!<span class="br0">&#91;</span>endif<span class="br0">&#93;</span>--&gt;</div>
</li>
</ol>
</div>
<p>And it works. Combination of the two method will give you a great look of your website in IE9.</p>
<p><img src="http://codepie.org/wp-content/uploads/2011/09/after.png" alt="" title="After" width="600" height="400" class="aligncenter size-full wp-image-75" /></p>
<p>Have fun.</p>

<div class="cat_tags clear">
<span class="category">Tagged as: <a href="http://codepie.org/tag/cufon" rel="tag">cufon</a>, <a href="http://codepie.org/tag/ie9" rel="tag">ie9</a>, <a href="http://codepie.org/tag/microsoft" rel="tag">microsoft</a></span>
<span class="continue"><a class="nr_comm_spot" href="http://codepie.org/how-to-make-cufon-works-in-ie9.html#comments">No Comments</a></span><div class="clear"></div>
</div>
<div class="cat_tags_close"></div>
</div>




<div class="newer_older">
<span class="newer">&nbsp;</span>
<span class="older">&nbsp;<a href="http://codepie.org/page/2" >Older Entries &raquo;</a></span>
</div>

</div>
<div class="content-sidebar">
				<h3>Recent Posts</h3>		<ul>
					<li>
				<a href="http://codepie.org/extract-pages-from-pdf-in-linux.html">Extract pages from PDF in Linux</a>
						</li>
					<li>
				<a href="http://codepie.org/how-to-install-rtorrent-and-rutorrent.html">How to install rtorrent and rutorrent</a>
						</li>
					<li>
				<a href="http://codepie.org/how-to-disable-comment-box-from-facebook-like-widget.html">How to disable comment box from Facebook like widget</a>
						</li>
					<li>
				<a href="http://codepie.org/how-to-find-all-files-of-a-particular-size-in-a-particular-directory.html">How to find all files of a particular size in a particular directory</a>
						</li>
					<li>
				<a href="http://codepie.org/how-to-generate-ssh-public-key-from-private-key.html">How to generate SSH public key from private key</a>
						</li>
				</ul>
		<h3>Categories</h3>		<ul>
	<li class="cat-item cat-item-3"><a href="http://codepie.org/category/linux" title="View all posts filed under Linux">Linux</a> (10)
</li>
	<li class="cat-item cat-item-9"><a href="http://codepie.org/category/programming" title="View all posts filed under Programming">Programming</a> (10)
<ul class='children'>
	<li class="cat-item cat-item-18"><a href="http://codepie.org/category/programming/c" title="View all posts filed under C#">C#</a> (1)
</li>
	<li class="cat-item cat-item-41"><a href="http://codepie.org/category/programming/css" title="View all posts filed under CSS">CSS</a> (2)
</li>
	<li class="cat-item cat-item-57"><a href="http://codepie.org/category/programming/facebook" title="View all posts filed under Facebook">Facebook</a> (1)
</li>
	<li class="cat-item cat-item-33"><a href="http://codepie.org/category/programming/javascript" title="View all posts filed under Javascript">Javascript</a> (1)
</li>
	<li class="cat-item cat-item-10"><a href="http://codepie.org/category/programming/php" title="View all posts filed under PHP">PHP</a> (4)
</li>
	<li class="cat-item cat-item-26"><a href="http://codepie.org/category/programming/wordpress" title="View all posts filed under WordPress">WordPress</a> (2)
</li>
</ul>
</li>
		</ul>
<h3>Archives</h3>		<ul>
			<li><a href='http://codepie.org/2013/05'>May 2013</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2013/02'>February 2013</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2012/06'>June 2012</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2012/05'>May 2012</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2012/04'>April 2012</a>&nbsp;(2)</li>
	<li><a href='http://codepie.org/2011/09'>September 2011</a>&nbsp;(4)</li>
	<li><a href='http://codepie.org/2011/08'>August 2011</a>&nbsp;(5)</li>
	<li><a href='http://codepie.org/2011/04'>April 2011</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2011/03'>March 2011</a>&nbsp;(1)</li>
	<li><a href='http://codepie.org/2011/02'>February 2011</a>&nbsp;(2)</li>
	<li><a href='http://codepie.org/2011/01'>January 2011</a>&nbsp;(1)</li>
		</ul>
<h3>Tags</h3><div class="tagcloud"><a href='http://codepie.org/tag/access-denied' class='tag-link-24' title='1 topic' style='font-size: 8pt;'>access denied</a>
<a href='http://codepie.org/tag/anchor' class='tag-link-43' title='1 topic' style='font-size: 8pt;'>anchor</a>
<a href='http://codepie.org/tag/ant' class='tag-link-37' title='1 topic' style='font-size: 8pt;'>ant</a>
<a href='http://codepie.org/tag/array' class='tag-link-12' title='1 topic' style='font-size: 8pt;'>array</a>
<a href='http://codepie.org/tag/block' class='tag-link-47' title='1 topic' style='font-size: 8pt;'>block</a>
<a href='http://codepie.org/tag/bluehost' class='tag-link-5' title='2 topics' style='font-size: 16.4pt;'>bluehost</a>
<a href='http://codepie.org/tag/bytes' class='tag-link-52' title='1 topic' style='font-size: 8pt;'>bytes</a>
<a href='http://codepie.org/tag/c-2' class='tag-link-19' title='1 topic' style='font-size: 8pt;'>c#</a>
<a href='http://codepie.org/tag/centos' class='tag-link-14' title='1 topic' style='font-size: 8pt;'>centos</a>
<a href='http://codepie.org/tag/count' class='tag-link-29' title='1 topic' style='font-size: 8pt;'>count</a>
<a href='http://codepie.org/tag/css-2' class='tag-link-42' title='1 topic' style='font-size: 8pt;'>css</a>
<a href='http://codepie.org/tag/cufon' class='tag-link-34' title='1 topic' style='font-size: 8pt;'>cufon</a>
<a href='http://codepie.org/tag/date' class='tag-link-30' title='1 topic' style='font-size: 8pt;'>date</a>
<a href='http://codepie.org/tag/distro' class='tag-link-48' title='1 topic' style='font-size: 8pt;'>distro</a>
<a href='http://codepie.org/tag/django' class='tag-link-7' title='1 topic' style='font-size: 8pt;'>django</a>
<a href='http://codepie.org/tag/eval' class='tag-link-31' title='1 topic' style='font-size: 8pt;'>eval</a>
<a href='http://codepie.org/tag/field' class='tag-link-21' title='1 topic' style='font-size: 8pt;'>field</a>
<a href='http://codepie.org/tag/find' class='tag-link-55' title='1 topic' style='font-size: 8pt;'>find</a>
<a href='http://codepie.org/tag/git' class='tag-link-4' title='1 topic' style='font-size: 8pt;'>git</a>
<a href='http://codepie.org/tag/height' class='tag-link-45' title='1 topic' style='font-size: 8pt;'>height</a>
<a href='http://codepie.org/tag/ie9' class='tag-link-35' title='1 topic' style='font-size: 8pt;'>ie9</a>
<a href='http://codepie.org/tag/inline' class='tag-link-46' title='1 topic' style='font-size: 8pt;'>inline</a>
<a href='http://codepie.org/tag/instance' class='tag-link-22' title='1 topic' style='font-size: 8pt;'>instance</a>
<a href='http://codepie.org/tag/java' class='tag-link-40' title='1 topic' style='font-size: 8pt;'>java</a>
<a href='http://codepie.org/tag/jdk' class='tag-link-39' title='1 topic' style='font-size: 8pt;'>jdk</a>
<a href='http://codepie.org/tag/jre' class='tag-link-38' title='1 topic' style='font-size: 8pt;'>jre</a>
<a href='http://codepie.org/tag/keygen' class='tag-link-54' title='1 topic' style='font-size: 8pt;'>keygen</a>
<a href='http://codepie.org/tag/kilobytes' class='tag-link-50' title='1 topic' style='font-size: 8pt;'>kilobytes</a>
<a href='http://codepie.org/tag/linux-2' class='tag-link-25' title='2 topics' style='font-size: 16.4pt;'>linux</a>
<a href='http://codepie.org/tag/listdir' class='tag-link-15' title='1 topic' style='font-size: 8pt;'>listdir</a>
<a href='http://codepie.org/tag/megabytes' class='tag-link-51' title='1 topic' style='font-size: 8pt;'>megabytes</a>
<a href='http://codepie.org/tag/microsoft' class='tag-link-36' title='1 topic' style='font-size: 8pt;'>microsoft</a>
<a href='http://codepie.org/tag/mysql' class='tag-link-23' title='1 topic' style='font-size: 8pt;'>mysql</a>
<a href='http://codepie.org/tag/output' class='tag-link-32' title='1 topic' style='font-size: 8pt;'>output</a>
<a href='http://codepie.org/tag/perl' class='tag-link-17' title='1 topic' style='font-size: 8pt;'>perl</a>
<a href='http://codepie.org/tag/php-2' class='tag-link-11' title='3 topics' style='font-size: 22pt;'>php</a>
<a href='http://codepie.org/tag/private' class='tag-link-20' title='1 topic' style='font-size: 8pt;'>private</a>
<a href='http://codepie.org/tag/python' class='tag-link-6' title='1 topic' style='font-size: 8pt;'>python</a>
<a href='http://codepie.org/tag/search' class='tag-link-28' title='1 topic' style='font-size: 8pt;'>search</a>
<a href='http://codepie.org/tag/squid' class='tag-link-13' title='1 topic' style='font-size: 8pt;'>squid</a>
<a href='http://codepie.org/tag/ssh' class='tag-link-53' title='1 topic' style='font-size: 8pt;'>ssh</a>
<a href='http://codepie.org/tag/version' class='tag-link-49' title='1 topic' style='font-size: 8pt;'>version</a>
<a href='http://codepie.org/tag/width' class='tag-link-44' title='1 topic' style='font-size: 8pt;'>width</a>
<a href='http://codepie.org/tag/wordpress-2' class='tag-link-27' title='2 topics' style='font-size: 16.4pt;'>wordpress</a>
<a href='http://codepie.org/tag/yum' class='tag-link-16' title='1 topic' style='font-size: 8pt;'>yum</a></div>
<h3>Blogroll</h3>
	<ul class='xoxo blogroll'>
<li><a href="http://codex.wordpress.org/">Documentation</a></li>
<li><a href="http://wordpress.org/extend/plugins/">Plugins</a></li>
<li><a href="http://wordpress.org/extend/ideas/">Suggest Ideas</a></li>
<li><a href="http://wordpress.org/support/">Support Forum</a></li>
<li><a href="http://wordpress.org/extend/themes/">Themes</a></li>
<li><a href="http://wordpress.org/news/">WordPress Blog</a></li>
<li><a href="http://planet.wordpress.org/">WordPress Planet</a></li>

	</ul>

<h3>Meta</h3>			<ul>
						<li><a href="http://codepie.org/wp-login.php">Log in</a></li>
			<li><a href="http://codepie.org/feed" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://codepie.org/comments/feed" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>						</ul>
</div><div class="clear"></div>
</div>
<div id="footer">
<span class="text">
Copyright &copy; 2013 <a href="http://codepie.org">CodePie</a> &middot; Powered by WordPress <br/>Lightword Theme by Andrei Luca<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20366715-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script><a title="Go to top" class="top" href="#top">Go to top &uarr;</a>
</span>
</div>
<script type="text/javascript" src="http://codepie.org/wp-content/themes/lightword/js/menu.js"></script>
</div>
	<div style="display:none">
	</div>

<script type="text/javascript">/* <![CDATA[ */ Cufon.now(); /* ]]> */ </script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201345'></script>
<script type='text/javascript' src='http://s.gravatar.com/js/gprofiles.js?ver=2013Novaa'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var WPGroHo = {"my_hash":""};
/* ]]> */
</script>
<script type='text/javascript' src='http://codepie.org/wp-content/plugins/jetpack/modules/wpgroho.js?ver=3.7.1'></script>

	<script src="http://stats.wordpress.com/e-201345.js" type="text/javascript"></script>
	<script type="text/javascript">
	st_go({v:'ext',j:'1:2.5',blog:'19856660',post:'0',tz:'0'});
	var load_cmc = function(){linktracker_init(19856660,0,2);};
	if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc);
	else load_cmc();
	</script></body>
</html>