<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Naqoosh</title>
	<atom:link href="http://www.naqoosh.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.naqoosh.com</link>
	<description>Software Development</description>
	<lastBuildDate>Wed, 20 Jan 2010 11:09:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>June / July 2010 Expedition ?</title>
		<link>http://www.naqoosh.com/june-july-2010-expedition/</link>
		<comments>http://www.naqoosh.com/june-july-2010-expedition/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:09:07 +0000</pubDate>
		<dc:creator>Shujaat Ali</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[northern areas]]></category>
		<category><![CDATA[pakistan]]></category>
		<category><![CDATA[trekking]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=136</guid>
		<description><![CDATA[Asslamoaliqum Brothers,
In these days i am feeling so tired because of a lot of work so lets have some fun to go far away from

Work
Traffic
News
House
Mobile
Computer
A bed for rest
Wife  

===================
کُج اُنج وی راہواں اوکھیاں سن
کُج گل وچ غم دا طوق وی سی
کُج شہر دے لوک وی ظالم سن
کُج مینوں مرن دا شوق وی سی
===================
کچھ یوں [...]]]></description>
			<content:encoded><![CDATA[<p>Asslamoaliqum Brothers,</p>
<p>In these days i am feeling so tired because of a lot of work so lets have some fun to go far away from</p>
<ul>
<li>Work</li>
<li>Traffic</li>
<li>News</li>
<li>House</li>
<li>Mobile</li>
<li>Computer</li>
<li>A bed for rest</li>
<li>Wife <img src='http://www.naqoosh.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>===================<br />
<span style="font-size: medium">کُج اُنج وی راہواں اوکھیاں سن<br />
کُج گل وچ غم دا طوق وی سی<br />
کُج شہر دے لوک وی ظالم سن<br />
کُج مینوں مرن دا شوق وی سی</span><br />
===================<br />
<span style="font-size: medium">کچھ یوں بھی راہیں مشکل تھیں<br />
کچھ گلے میں غم کا طوق بھی تھا<br />
کچھ شہر کے لوگ بھی ظالم تھے<br />
کچھ مرنے کا مجھے شوق بھی تھا</span><br />
===================</p>
<p>So what do you people say, any expectation or idea to go for Traveling, Tracking etc in June or July 2010 to Northeren Areas?<br />
I need your recommendations and who is going?</p>
<p>Ragards,<br />
- Shujaat Ali</p>
<p><strong>=========================MERAJ said===============================</strong><br />
Walaikumsalam wrbr,</p>
<p>I pray and hope you are doing fine.</p>
<p>I am quite amazed to see you you get tired from work only in a few days? You have been going to some day trips from the last few months (In Dec to Hub and in Jan to Haleji Lake). You still feeling tried?</p>
<p>If so then I think you need to look for a job at wild life <img src='http://www.naqoosh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://pakistanwetlands.org/" target="_blank">http://pakistanwetlands.org/</a><br />
<a href="http://www.wildlifeofpakistan.com/" target="_blank">http://www.wildlifeofpakistan.com/</a></p>
<p>Prepare a plan for Kaghan and surrounding area treks this year.</p>
<p>Wsalam<br />
-Meraj</p>
<p><strong>=========================</strong><strong>Sheraz Sohail Awan</strong><strong><strong> said</strong>======================<br />
</strong>AOA,<br />
Dear All,</p>
<p>yes i think June or July will be fine with me. infact i will also visit Kaghan and Naran valley this year with my friends and our families.<br />
we have a program set for May or June and for three days on our own transport.<br />
so you now better decide which way to go. we also discussed about Naltar Pakora Trek once. or it could be some where else.<br />
Shujaat you plz give us two or three options, then we will see which one is better for this year.</p>
<p>Regards,<br />
Sheraz</p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/june-july-2010-expedition/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Backtrace in PHP</title>
		<link>http://www.naqoosh.com/backtrace-in-php/</link>
		<comments>http://www.naqoosh.com/backtrace-in-php/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 04:42:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[backtrace]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=119</guid>
		<description><![CDATA[I have been developing in PHP from the last 4-5 years. Since the introduction of OOP concepts in PHP5, the language is getting matured and more ready for large applications.
While working with large projects, one can not avoid logging for error / debug to later diagnose the issues one might face in production. So beside [...]]]></description>
			<content:encoded><![CDATA[<p>I have been developing in PHP from the last 4-5 years. Since the introduction of OOP concepts in PHP5, the language is getting matured and more ready for large applications.</p>
<p>While working with large projects, one can not avoid logging for error / debug to later diagnose the issues one might face in production. So beside logging some general information and simple errors which PHP throws and we could get from PHP we could also capture the whole backtrace for the code we are running in such case.</p>
<p>It could be easily incorporated in your application. Follow are some modified examples from PHP&#8217;s documentation <a href="http://www.php.net/debug_print_backtrace">debug_print_backtrace</a>:</p>
<pre name="code" class="php">
//This is backtrace_include.php

//This function modifies the output which PHP provides for debug_print_backtrace
//by dany dot dylan at gmail dot com
function debug_string_backtrace()
{
	ob_start();
	debug_print_backtrace();
	$trace = ob_get_contents();
	ob_end_clean();

	// Remove first item from backtrace as it's this function which
	// is redundant.
	$trace = preg_replace ('/^#0\s+' . __FUNCTION__ . "[^\n]*\n/", '', $trace, 1);

	// Renumber backtrace items.
	$trace = preg_replace ('/^#(\d+)/me', '\'#\' . ($1 - 1)', $trace);

	return $trace;
}

function a()
{
    return b();
}

function b()
{
    return c();
}

function c()
{
    return debug_string_backtrace();
}

$trace = a();
echo $trace;
</pre>
<p>Save the above file as backtrace_include.php and call in the following file:</p>
<pre name="code" class="php">
//This is backtrace_test.php
include 'backtrace_include.php';
</pre>
<p>This will print the following:</p>
<pre name="code" class="php">
#0  c() called at [/home/www/backtrace_include.php:29]
#1  b() called at [/home/www/backtrace_include.php:24]
#2  a() called at [/home/www/backtrace_include.php:37]
#3  include(/home/www/backtrace_include.php) called at [/home/www/backtrace_test.php:3]
</pre>
<p>Usually in production websites, we don&#8217;t print such trace on screen and log this in a file. We will also log such information only in a situation when an error occurs while executing the code. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/backtrace-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array comparison in PHP</title>
		<link>http://www.naqoosh.com/array-comparison-in-php/</link>
		<comments>http://www.naqoosh.com/array-comparison-in-php/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 04:27:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=107</guid>
		<description><![CDATA[While working on a recent project, I had to do some array comparison. I did array comparison by doing the following:
$firstArr = array(2,4,8);
$secondArr = array(2,8,4);
According to my requirements the above two arrays are same but if we compare it in PHP, it would not think so due to the presence of value on different indexes. [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a recent project, I had to do some array comparison. I did array comparison by doing the following:</p>
<pre name="code" class="php">$firstArr = array(2,4,8);
$secondArr = array(2,8,4);</pre>
<p>According to my requirements the above two arrays are same but if we compare it in PHP, it would not think so due to the presence of value on different indexes. To solve that, I first sorted and then compared these arrays, which gave me the required result.</p>
<pre name="code" class="php">//sort the arrays using php's sort function
sort($firstArr);
sort($secondArr);

//compare the arrays
if ( $firstArr === $secondArr)
{
	echo "Yes. They are equal";
}
else
{
	echo "No. They are not.";
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/array-comparison-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incremental backup using Rdiff-Backup</title>
		<link>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/</link>
		<comments>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:05:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[incremental]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rdiff-backup]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=103</guid>
		<description><![CDATA[Backup. No one can deny the fact that it is a very core requirement of IT businesses. We had been using a script to backup data to a specified folder on our Linux server and then from Linux server we used to write CD weekly or bi weekly basis. Due to lack of time, we [...]]]></description>
			<content:encoded><![CDATA[<p>Backup. No one can deny the fact that it is a very core requirement of IT businesses. We had been using a script to backup data to a specified folder on our Linux server and then from Linux server we used to write CD weekly or bi weekly basis. Due to lack of time, we couldn&#8217;t improve this for quite sometime.</p>
<p>Recently, when due to some extremely busy schedule I couldn&#8217;t take backups on CDs, I thought to improve our backup process. Our requirements were really simple, we needed a backup process which could copy our required folders to a remote server and then later on keep doing some incremental backups there. Upon some research, I found two software being used for this purpose one is <em>rsync</em>, the other one <em>rdiff-backup</em>, I chose to go with <em>rdiff-backup</em> software as it was purely written for this purpose of backup and it also uses the libraries of rsync.</p>
<p>I studied and evaluated it and found it worth trying. After a few days of trying on this on my local machine, I installed this both on our local server and online server to start backup using this. Following are some of the steps which would help anyone setup this on their machines:</p>
<ul>
<li>To use rdiff-backup for remote backup of local servers. Both servers need to have rdiff-backup installed. rdiff-backup is available from apt-get on a debian system and for Redhat based systems it could be downloaded from <a title="rdiff-backup home page" href="http://rdiff-backup.nongnu.org/">http://rdiff-backup.nongnu.org/</a></li>
<li>After installing rdiff-backup on both servers to start taking backup issue the following command:<br />
rdiff-backup /home/www/ root@192.168.0.103::/home/meraj/backup/ (whhere /home/www/ is my local source folder to taken backup of and root@192.168.0.103::/home/meraj/backup/ is server address and destination folder)</li>
</ul>
<p>Now my next step is to automate this stuff. I don&#8217;t want do this every day manually so now will try to get some time and automate this by writing a shell script and then run it through <em>crontab</em>.</p>
<p>While setting up and running rdiff-backup, I noticed the following issues:</p>
<ol>
<li>To make sure that <em>rdiff-backup</em> is working correctly, before trying to start backup run &#8216;<em>rdiff-backup &#8211;version</em>&#8216; on both servers and make sure that it returns version correctly, which would mean that <em>rdiff-backup</em> is correctly configured and running.</li>
<li>Make sure that on the destination server we have SE (on redhat machines) not running or if running, then make it permissive mode.</li>
<li>In case running SE in permissive mode also doesn&#8217;t help then try to relabel the _librsync.s using &#8216;<em>chcon -t texrel_shlib_t /usr/lib/python2.4/site-packages/rdiff_backup/_librsync.s</em>&#8216;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rakaposhi Base Camp Trek</title>
		<link>http://www.naqoosh.com/rakaposhi-base-camp-trek/</link>
		<comments>http://www.naqoosh.com/rakaposhi-base-camp-trek/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 13:24:27 +0000</pubDate>
		<dc:creator>Shujaat Ali</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[base camp]]></category>
		<category><![CDATA[northern areas]]></category>
		<category><![CDATA[pakistan]]></category>
		<category><![CDATA[rakaposhi]]></category>
		<category><![CDATA[trekking]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=93</guid>
		<description><![CDATA[I have done the following trek last year so if any one needs more information, then please comment below.
PROPOSED PLAN

Day 1 – Saturday 21st June 08: Start from Lahore at early in the morning from Daewoo Bus and reach at Pindi at 1:00 PM and go to Peer Vedai Bus Stand and get the seats [...]]]></description>
			<content:encoded><![CDATA[<p>I have done the following trek last year so if any one needs more information, then please comment below.</p>
<h3>PROPOSED PLAN</h3>
<ul>
<li><strong>Day 1 – Saturday 21<sup>st</sup> June 08:</strong> Start from Lahore at early in the morning from Daewoo Bus and reach at Pindi at 1:00 PM and go to Peer Vedai Bus Stand and get the seats of NATCO Ac and at 4:00 Pm bus will start for Gilgit</li>
<li><strong>Day 2 – Sunday 22<sup>nd</sup> June 08:</strong> Reach Gilgit in the morning and immediately get seated for MINAPIN so that we will reach MINAPIN. It takes almost 3 to 4 hrs from Gilgit to MINAPIN. At MINAPIN we will try to stay at <strong>DIRAN Guest House </strong>or we will camp at the campsite of <strong>DIRAN Guest House</strong>. So that is the day we will have to search for a Guide, Porters + Dockey &amp; a Cooker.</li>
<li><strong>Day 3 – Monday 23<sup>rd</sup> June 08:</strong> Today is our 1<sup>st</sup> day to Trek by foot from <strong>MINAPIN to HAPAKUN</strong> 3 ~ 4 Hours, 5.8km, 792m ascent (See Detail + Map &amp; camp at night at <strong>HAPAKUN</strong>.</li>
<li><strong>Day 4 – Tuesday 24<sup>th</sup> June 08:</strong> Today our destination is <strong>HAPAKUN to TAGAPHARI </strong>2 ~ 3 Hours, 3km, 457m ascent (See Detail + Map) &amp; Camp at <strong>TAGAPHARI</strong>.</li>
<li><strong>Day 5 – Wednesday 25<sup>th</sup> June 08:</strong> At TAGAPHARI we will see our health + body condition &amp; decide that will we go to <strong>KACHELI LAKE (See Detail + Map)</strong> OR Way back to <strong>MIAPIN via GUTUMERUNG &amp; ASKORESHUNG (See Detail + Map)</strong>.</li>
</ul>
<hr />
<h4>If KACHELI LAKE:</h4>
<p>If we decided to go to KACHELI LAKE then we will Trek on 5<sup>th</sup> Day to <strong>KACHELI LAKE</strong> via <strong>DIRAN BASE CAMP</strong> and stay night at <strong>KACHELI LAKE</strong>.</p>
<ul>
<li><strong>Day 6 – Thursday 26<sup>th</sup> June 08:</strong> Today we will try to come back to <strong>HAPAKUN</strong> via <strong>TAGAPHARI.</strong></li>
<li><strong>Day 7 – Friday 27<sup>th</sup> June 08:</strong> Today we will try to reach <strong>GILGIT</strong> via <strong>MINAPIN.</strong></li>
</ul>
<hr />
<h4>If way back to MIAPIN via GUTUMERUNG &amp; ASKORESHUNG:</h4>
<p>If we decided to go to <strong>GUTUMERUNG &amp; ASKORESHUNG</strong> then on 5<sup>th</sup> day we can see both places in a day and at night camp at <strong>HAPAKUN</strong>.</p>
<ul>
<li><strong>Day 6 – Thursday 26<sup>th</sup> June 08:</strong> Today we will try to come back to <strong>MINAPIN</strong> &amp; do rest a night at <strong>Diran Guest House.</strong></li>
<li><strong>Day 7 – Friday 27<sup>th</sup> June 08:</strong> Get a van early in the morning for GILGIT &amp; do shopping at Gilgit whatever you like and try to get the seats for Pindi at NATCO.</li>
<li><strong>Day 8 – Saturday 28<sup>th</sup> June 08:</strong> Reach <strong>INSHA ALLAH</strong> at Pindi and get the seats for Lahore and at night we will be at Lahore &amp; Sunday will be for a rest day for you to start to go to office on Monday and live in the memories + dreams of this Trek for a year and next year INSHA ALLA for our program will be of <strong>K – 2 Base Camp.</strong></li>
</ul>
<h4>IMPORTANT NOTE</h4>
<p>So brother this is the plan, but it is an ideal plan. I haven&#8217;t counted for certain uncertainties like</p>
<ul>
<li>Weather factor, landslide</li>
<li>Health problem</li>
<li>May be Trek is more tough than we think so then we shall have to add at least a day for trekking.</li>
</ul>
<h4>THINGS TO TAKE</h4>
<p>Following is the list of things that each person has to bring along:</p>
<ul>
<li>Hiking bag (must be reliable and shoulder strips must be strong enough)</li>
<li>Sleeping bag (preferably light weight but more warm)</li>
<li>Shoes preferably like army shoes or something that have designed pattern in its sole so to facilitate walking on slopes and snow. Slipper must also be taken along because after a tough trekking in the day, u needs to relax your feet after reaching the camping place. You cannot wear long shoes all the time.</li>
<li></li>
<li>Sunglasses are also very necessary item. because there is immense sunshine around glaciers that can have adverse effect on eyes.</li>
<li>Personal things like shaving kit, towel, spare under garments, spare socks etc</li>
<li>Other optional things may include camera, Walkman, note book (for taking some notes), torch etc.</li>
</ul>
<p>Now I am noting down the things which we need to take as a group (you don&#8217;t have to worry about these as we will share them)</p>
<ul>
<li>Tent: I have a tent for 6 persons.</li>
<li>Eatable items; Although I hope that in that season we can have some help from summer settlements all along the trek, but we shall keep our ration in any case). I shall buy tinned food and some dry ration like biscuits etc from Karachi / Lahore so please tell me that what will you like to eat &amp; can I buy all from Karachi or at Lahore with you people.</li>
<li>Milk powder, tea bags, coffee, sugar, egg powder, corn  flake.</li>
<li>Noodles, Taftans</li>
<li>Certain other instantly cooks able things like Haleem in Tin, Fish in Tin, Beans in Tin, Biryani in Tin.</li>
<li>Packets of something like TANGS, Toffees, Pineapples Tins.</li>
<li>Utensils: we shall buy some (2 or 3) aluminum bowls for heating water which shall be used for tea, noodles as well as for warming tinned food. Anther things include plates, spoons, disposable or plastic cups etc.</li>
<li>Medicines, mosquito repellent, desprine, panadol.</li>
</ul>
<h3>EXPENDITURE</h3>
<p>The estimated cost of our trip is about rs.10000/head. It is from Lahore to Lahore and include:</p>
<ul>
<li>Bus fare from Lahore to Pindi &amp; Pindi to Gilgit and back.</li>
<li>All meals plus food items purchasing</li>
<li>Charges of guide and porters.</li>
<li>Expenditure of hotel (if any night spent)</li>
<li>I must mention that these are not the charges like travel agencies that you have to pay. You will see we shall have a transparent accounting of all the expenditure daily. Whatever will be the expenses shall be equally shared by all of us. Rs.10000/head are the roughly estimated charges, as we don&#8217;t know rates of many things. So safely we must carry some extra money with us. There may be chance that if we get porters / guide at lesser rates, the overall charges drop to 8000/- but nothing can be said at this stage.</li>
</ul>
<h4>INFORMATION ABOUT THE RAKAPOSHI BASE CAMP</h4>
<h4>RAKAPOSHI BASE CAMP</h4>
<ul>
<li>Duration 3 ~ 4 Days</li>
<li>Distance 17.6 km</li>
<li>Standard Easy</li>
</ul>
<h4>STAGES</h4>
<p>It&#8217;s four stages total round trip from <strong>MINAPIN</strong></p>
<ol>
<li>HAPAKUN</li>
<li>2 TAGAPHARI</li>
<li>&amp; 3-4 tow stages to return via the same route.</li>
</ol>
<h4>PLACES TO STAY &amp; EAT</h4>
<p><strong>MINAPIN&#8217;s</strong> ground zero is <strong>DIRAN Guest House</strong>. The gracious hosts, well prepared food and peaceful grassy compound with orchard – shaded gardens distinguish this as one of the Northern Area&#8217;s most tranquil places to stay. The dorm cost Rs. 70, and single/doubles cost Rs.400/600, all with hot running water. The camping fee is Rs. 100. If you need a place to really rest and hang out for a few days between treks, this is it. It also rent tents, sleeping bags and kitchen equipment and sell limited food but it&#8217;s advisable to bring all trek food and supplies from GILGIT or KARIMABAD.</p>
<h4>GETTING THERE AND AWAY</h4>
<p>Public vans to PISAN and MINAPIN depart <strong>GILGIT&#8217;s Khazana</strong> (Bank) Rd new Golden Peak Inn, usually between 1and 2pm. they&#8217;re unmarked and can be hard to find. The three-hour ride cost Rs.50, plus Rs 10 per backpack or duffel bag. The 4km long road to MINAPIN leaves the KKH at <strong>PISAN</strong>, just east of <strong>GHULMET</strong>. From <strong>PISAN</strong>, it takes 45 minutes to walk to <strong>MINAPIN</strong>. The same public vans depart <strong>PISAN</strong> and <strong>MINAPIN</strong> daily for GILGIT at 6.15am.</p>
<p>When the <strong>MINAPIN</strong> vans are full, try <strong>PISAN</strong> and <strong>MIACHAR</strong> vans. The <strong>PISAN</strong> vans depart <strong>GILGIT</strong> before the <strong>MINAPIN</strong> vans, usually between noon and 1pm. The <strong>MIACHAR</strong> vans depart <strong>GILGIT </strong>about an hour after the <strong>MINAPIN</strong> vans. <strong>GILGIT</strong> – bound <strong>MIACHAR</strong> vans pass the <strong>DIRAN Guest House</strong> about 7am, but are usually already full.</p>
<p>No direct transport links <strong>MINAPIN</strong> with <strong>KARIMABAD</strong>, so just get to the <strong>KKH</strong> and jump on any passing vehicle. <strong>KARIMABAD – MINAPIN</strong> special hires cost Rs.1000.</p>
<h4>THE TREK</h4>
<ul>
<li>Day 1: MINAPIN to HAPAKUN</li>
<li>3 ~ 4 Hours, 5.8km, 792m ascent</li>
</ul>
<p>From <strong>DIRAN Guest House</strong> (2012m), follow the road two minutes east. Then turn south (right) onto a dirt lane and follow it five minutes to the canal along the village&#8217;s south end. Turn west (right) and follow the path along the canal 15 minutes towards the <strong>MINAPIN</strong> River. Walnut trees shade the path and provide a home for nesting orioles <strong>(MAIUN).</strong> The trail turns south into the canyon and crosses a footbridge (2103m) over the rushing to the river&#8217;s true left bank after 10 minutes.</p>
<p>The trail rises 183m on switchbacks for 30 minutes then eases of and enters an open, aromatic juniper forest. Continues along the broad, shaded trail, rising gradually in one to 1 ½ hours to the huts at Bang – i – das, long a clear stream that tumble over a cascade at the head of this pleasant side valley. The trail follows the stream 30 minutes to the base of waterfall, where it forks. The right fork, which crosses the stream over a footbridge, leads to <strong>GUTUMERUNG</strong> (alternate route). Follow the smaller left fork and climb 90m in 15 minutes to the grassy, tiered meadows of <strong>HAPAKUN (2804m)</strong> bordered by stands of mature fir trees. The <strong>BURUSHASKI</strong> name <strong>HAPAKUN</strong> is given to a place (kun) within a day walk of a main village, which is defined as &#8216;close enough to carry child&#8217; <strong>(HAPA)</strong>.</p>
<p>Camping is free in the open meadows, with northern views of <strong>HACHINDAR</strong> and <strong>MAIUN</strong> Peaks above the <strong>HUNZA</strong> River. <strong>DIRAN</strong> and <strong>RAKAPOSHI</strong> remain hidden from view. Ibex inhabit the steep cliffs to the east high above MINAPIN Glacier. A small, sometimes silty stream flows near the herder&#8217;s huts <strong>HAPAKUN</strong>, but a clear spring lies behind and five minutes below the huts. It cost Rs.40 – 50 to camp on private land near the spring.</p>
<ul>
<li>Day 1: HAPAKUN to TAGAPHARI</li>
<li>2 ~ 3 Hours, 3km, 457m ascent</li>
</ul>
<p>Crossing the canal between the two huts, the trail (the one perpendicular to the canal, not parallel to it) heads south, rising across rock-strewn open ground beyond <strong>HAPAKUN&#8217;s </strong>largest hut – for a minute or two – and then climbs immediately west up dusty switchbacks through fir forest for 14 minutes. The trail eases off and contours the rocky slopes foe 30 minutes to a verdant bowl where wildflowers and colorful songbirds thrive. Sweeping gently through the meadows, the trail enters scattered juniper stands and climb switchbacks to the windy ridge top, where <strong>DIRAN, RAKAPOSHI</strong> and their interconnecting ice wall finally come into full view.</p>
<p>The trail thins and traverses a rocky cliff above the spectacularly broken <strong>MINAPIN</strong> Glacier 15 minutes to <strong>TAGAPHARI (3261m).</strong> Once a muddy <strong>(TAGA</strong>) lake <strong>(PHARI),</strong> as its <strong>BURUSHASKI</strong> name indicates, it&#8217;s now a level pastures where cows and oxen graze. A herder&#8217;s hut is next to the rocky hillside, with plenty of good grassy campsites along the meandering stream. A small seasonal spring lies at the base of rocky slope towards the head of this small valley. The lateral moraine above the valley is a fun place to watch avalanches crashing down from the ridge between RAKAPOSHI and DIRAN, and to catch the sunset on <strong>DIRAN</strong>. <strong>RAKAPOSHI</strong> itself is mostly hidden from view behind the obvious snow down of <strong>RAKAPOSHI Eat</strong> (7010m).</p>
<ul>
<li>Side Trip: ASKORESHUNG</li>
<li>3 Hour, 5.8km, 1319m ascents, 1319m descents</li>
</ul>
<p><strong>ASKORESHUNG</strong> (<strong>ASKOR</strong> means a &#8216;flower&#8217;; <strong>SHUNG</strong>, a &#8216;narrow path&#8217;) is a view point (3780m) atop the second ridge west of <strong>TAGAPHARI </strong>from where the <strong>BATURA, SHISHPER and ULTER</strong> peaks above <strong>HUNZA </strong>are visible. From <strong>TAGAPHARI,</strong> ascend steeply west to the first ridge (3650m), descend and cross the intervening <strong>GUTUMERUNG</strong> stream, reaching the second ridge on two hours. Return to <strong>TAGAPHARI</strong> in one hour.</p>
<ul>
<li>Side Trip: DIRAN Base Camp</li>
<li>7~8 hours, 12km, 389m ascent, descent</li>
</ul>
<p>DIRAN base camp is locally known as <strong>KACHELI,</strong> a <strong>BURUSHASKI</strong> word meaning &#8216;the best grazing grass&#8221;. <strong>MINAPIN</strong> and <strong>MIACHAR</strong> villagers share these birches – dotted pastures. The area, along the <strong>MINAPIN</strong> Glacier&#8217;s north – east margin, is similar to <strong>TAGAPHARI </strong>with good campsite and a small spring nearby. Visiting <strong>KACHELI </strong>Lake as a day hike from TAGAPHARI is a more strenuous, but less expansive option than camping at <strong>KACHELI</strong> and paying porters for two additional stages (one there, one back).</p>
<p>From <strong>TAGAPHARI</strong>, follow the crest of the lateral moraine south 20 to 30 minutes to the small cairn (3510m) marking the route onto the glacier. It takes three hours to cross the broad <strong>MINAPIN Glacier</strong> and reach <strong>DIRAN Base Camp (3650m).</strong> The unmarked route north – east across the glacier&#8217;s alternating bands of rock and ice near many Seracs is difficult to follow and changeable, so take a local guide or porter who knows the way. Carry a rope for safety. Watch marginal crevasses when existing the glacier.</p>
<p>From <strong>DIRAN Base Camp</strong>, trekking south – east up the ablation valley towards the rocky bend (4040m) in the glacier brings you to the point where the route to camp 1 moves onto the glacier, close beneath <strong>DIRAN</strong>. Enjoy the view, but don&#8217;t continue onto the heavily crevassed glacier. Experienced climbers can attempt <strong>PHEKER (5465m)</strong> from base camp.</p>
<ul>
<li>Side Trip: KACHELI Lake</li>
<li>3 hours, 8km, 300m ascents, 300m descents</li>
</ul>
<p>It takes two hour to climb steeply to the small <strong>KACHELI Lake</strong> above DIRAN Base Camp, and half that to return.</p>
<ul>
<li>Day 3: TAGAPHARI to MINAPIN</li>
<li>3 ~ 3 ½ hours, 8.8km, 1249m descent</li>
</ul>
<p>Retrace your steps down valley to <strong>MINAPIN</strong> via <strong>HAPAKUN</strong>.</p>
<ul>
<li>Alternative Day 3: TAGAPHARI to MINAPIN</li>
<li>4 ~ 4 ½ hours, 8.4 km, 389 ascent, 1639m descent</li>
</ul>
<p>Ascend the ridge (3650m) immediately west of <strong>TAGAPHARI</strong> for sweeping views and descend steeply to <strong>GUTUMERUNG</strong>, a pasture (rung) in this deep <strong>(GUTUM)</strong> valley where sheep and goats graze. Follow the trail steeply downstream (north) until it passes the waterfall at the head of the <strong>Bang – i – Das</strong> Valley and joins the rail between <strong>HAPAKUN</strong> and <strong>MINAPIN.</strong></p>
<p>I am sending you the Rakaposhi_Base_Camp_Map so 1<sup>st</sup> read the Maps at Attachment then 2<sup>nd</sup> read Plan &amp; then read the above detail information.</p>
<h4>PROBLEMS IN ACCOMPLISHMENT OF TRIP</h4>
<ul>
<li>June is rainy season, so if we come to know about closing of KKH before starting the trip we may have to re-think of our trip.</li>
</ul>
<p><img class="aligncenter size-medium wp-image-94" src="http://www.naqoosh.com/wp-content/uploads/2009/06/rakaposhi_base_campmap-300x233.jpg" alt="Rakaposhi Base Camp Map" width="300" height="233" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/rakaposhi-base-camp-trek/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mysql backup and delete older files</title>
		<link>http://www.naqoosh.com/mysql-db-backup-and-delete-older-files/</link>
		<comments>http://www.naqoosh.com/mysql-db-backup-and-delete-older-files/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:00:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=83</guid>
		<description><![CDATA[We were taking mysql backups using a very simple shell script which was using mysqldump as below.
#!/bin/sh
#echo "Starting the script";
HOST=localhost
USER=myDBUser
PASSWD='myPassword';

# create directory if it doesn't exist
OLDBACKUP=/home/my_backup/sql_files
if [ ! -d "$OLDBACKUP" ]; then
# create direcotry
mkdir /home/my_backup/sql_files
fi

# set file names by appending date to each file
dbName=dbName-`date -I`.sql;

# take db backups
mysqldump -u $USER -p$PASSWD -n -c myDbName &#62;  [...]]]></description>
			<content:encoded><![CDATA[<p>We were taking mysql backups using a very simple shell script which was using <em>mysqldump</em> as below.</p>
<pre name="code" class="python">#!/bin/sh
#echo "Starting the script";
HOST=localhost
USER=myDBUser
PASSWD='myPassword';

# create directory if it doesn't exist
OLDBACKUP=/home/my_backup/sql_files
if [ ! -d "$OLDBACKUP" ]; then
# create direcotry
mkdir /home/my_backup/sql_files
fi

# set file names by appending date to each file
dbName=dbName-`date -I`.sql;

# take db backups
mysqldump -u $USER -p$PASSWD -n -c myDbName &gt;  $dbName;

# move the file to sql_files directory
mv $dbName $OLDBACKUP</pre>
<p>We were keeping old backup files but we knew that we would need to remove the backup files older than two weeks or a month. I was thinking what to do and after some studying I found the following one line, would help us remove files older than x number of days.</p>
<pre name="code" class="python">find /home/my_backup/sql_files -type f -mtime +15 | xargs rm</pre>
<p>Where 15 could be changed to any number of days and it will remove all the files older than that number of days recursively, using this command. This command won&#8217;t delete any special files or sub directories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/mysql-db-backup-and-delete-older-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sahi Helped Us</title>
		<link>http://www.naqoosh.com/sahi-helped-us/</link>
		<comments>http://www.naqoosh.com/sahi-helped-us/#comments</comments>
		<pubDate>Thu, 07 May 2009 17:45:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sahi]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=61</guid>
		<description><![CDATA[Sahi helped us automate our web application testing by 60%-70%. Till now I am quite happy with it. 
]]></description>
			<content:encoded><![CDATA[<p>Sahi helped us automate our web application testing by 60%-70%. Till now I am quite happy with it. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/sahi-helped-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing Tools</title>
		<link>http://www.naqoosh.com/testing-tools/</link>
		<comments>http://www.naqoosh.com/testing-tools/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 06:35:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[qa]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://nimblecare.wordpress.com/?p=55</guid>
		<description><![CDATA[For our testing automation and testing environment, some time ago I did some research on the available tools and also evaluated some of them.
I thought, that the tools of list I found during the research (though I didn&#8217;t try all of them) would be worth sharing with readers:

App Perfect
Bugzilla Testopia
J Meter
Loadrunner
Sahi
Selenium
Test Complete
Test Director
WAPT
Winrunner/QTP
Zephyr

I will try [...]]]></description>
			<content:encoded><![CDATA[<p>For our testing automation and testing environment, some time ago I did some research on the available tools and also evaluated some of them.</p>
<p>I thought, that the tools of list I found during the research (though I didn&#8217;t try all of them) would be worth sharing with readers:</p>
<ul>
<li><a title="App Perfect" href="http://www.appperfect.com/">App Perfect</a></li>
<li><a title="Bugzilla Testopia" href="http://www.mozilla.org/projects/testopia/">Bugzilla Testopia</a></li>
<li><a title="JMeter" href="http://jakarta.apache.org/jmeter/">J Meter</a></li>
<li><a title="Loadrunner" href="https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&amp;cp=1-11-126-17^8_4000_100__">Loadrunner</a></li>
<li><a title="Sahi" href="http://sahi.co.in/">Sahi</a></li>
<li><a title="Selenium" href="http://seleniumhq.org/">Selenium</a></li>
<li><a title="Test Complete" href="http://automatedqa.com/products/testcomplete">Test Complete</a></li>
<li><a title="Test Director" href="https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&amp;cp=1-11-127-24^1131_4000_100__">Test Director</a></li>
<li><a title="WAPT" href="http://www.loadtestingtool.com/">WAPT</a></li>
<li><a title="Winrunner/QTP" href="https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&amp;cp=1-11-127-24^1074_4000_100__">Winrunner/QTP</a></li>
<li><a title="Zephyr" href="http://getzephyr.com/">Zephyr</a></li>
</ul>
<p>I will try to add a small description for each of the testing tool in the above list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/testing-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP&#8217;s empty and isset function</title>
		<link>http://www.naqoosh.com/phps-empty-and-isset-function/</link>
		<comments>http://www.naqoosh.com/phps-empty-and-isset-function/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 05:11:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://nimblecare.wordpress.com/?p=45</guid>
		<description><![CDATA[The best way to check if a variable consists any value or is empty is to use empty function from PHP itself.
$myVar = 0;
if (empty($myVar))
{
echo '$myVar is either 0, empty, or not set at all';
}
Though, while coding in PHP it shouldn&#8217;t be confused with isset which checks if a variable is set or not set, whether [...]]]></description>
			<content:encoded><![CDATA[<p>The best way to check if a variable consists any value or is <a title="empty() documenation" href="http://www.php.net/empty">empty</a> is to use empty function from PHP itself.</p>
<pre name="code" class="php">$myVar = 0;
if (empty($myVar))
{
echo '$myVar is either 0, empty, or not set at all';
}</pre>
<p>Though, while coding in PHP it shouldn&#8217;t be confused with <a title="isset() documenation" href="http://www.php.net/isset">isset</a> which checks if a variable is set or not set, whether that variable is empty.</p>
<pre name="code" class="php">$myVar = 0;
if (isset($myVar))
{
echo '$myVar is set even though it is empty';
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/phps-empty-and-isset-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prayers and Hope</title>
		<link>http://www.naqoosh.com/prayers-and-hope/</link>
		<comments>http://www.naqoosh.com/prayers-and-hope/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 09:36:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[hope]]></category>
		<category><![CDATA[prayers]]></category>

		<guid isPermaLink="false">http://nimblecare.wordpress.com/?p=42</guid>
		<description><![CDATA[I was thinking to write something here but always couldn&#8217;t write. I am thinking of many things at the moment and I don&#8217;t know if I would be able to implement even one from them.
Let&#8217;s pray and hope that I could write a bit reqular here and continue on the projects I have started working [...]]]></description>
			<content:encoded><![CDATA[<p>I was thinking to write something here but always couldn&#8217;t write. I am thinking of many things at the moment and I don&#8217;t know if I would be able to implement even one from them.</p>
<p>Let&#8217;s pray and hope that I could write a bit reqular here and continue on the projects I have started working on.</p>
<p>I have changed the theme so that it feels a bit fresh on my blog <img src='http://www.naqoosh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/prayers-and-hope/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
